@rive-app/canvas-lite 2.35.3 → 2.35.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.d.ts +16 -1
- package/rive.js +684 -659
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +13 -9
- package/rive_fallback.wasm +0 -0
package/rive.js
CHANGED
|
@@ -27,11 +27,11 @@ var Rive = (() => {
|
|
|
27
27
|
function(moduleArg = {}) {
|
|
28
28
|
var moduleRtn;
|
|
29
29
|
|
|
30
|
-
var k = moduleArg, aa, ba,
|
|
30
|
+
var k = moduleArg, aa, ba, da = new Promise((b, a) => {
|
|
31
31
|
aa = b;
|
|
32
32
|
ba = a;
|
|
33
|
-
}),
|
|
34
|
-
function
|
|
33
|
+
}), ea = "object" == typeof window, fa = "function" == typeof importScripts;
|
|
34
|
+
function ka() {
|
|
35
35
|
function b(m) {
|
|
36
36
|
const h = d;
|
|
37
37
|
c = a = 0;
|
|
@@ -77,7 +77,7 @@ function ja() {
|
|
|
77
77
|
this.va = function() {
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function la(b) {
|
|
81
81
|
console.assert(!0);
|
|
82
82
|
const a = new Map();
|
|
83
83
|
let c = -Infinity;
|
|
@@ -92,9 +92,9 @@ function ka(b) {
|
|
|
92
92
|
return c << b;
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
const
|
|
95
|
+
const ma = k.onRuntimeInitialized;
|
|
96
96
|
k.onRuntimeInitialized = function() {
|
|
97
|
-
|
|
97
|
+
ma && ma();
|
|
98
98
|
let b = k.decodeAudio;
|
|
99
99
|
k.decodeAudio = function(e, f) {
|
|
100
100
|
e = b(e);
|
|
@@ -156,7 +156,7 @@ k.onRuntimeInitialized = function() {
|
|
|
156
156
|
return d.call(this, e, f, m, h, l);
|
|
157
157
|
};
|
|
158
158
|
};
|
|
159
|
-
const
|
|
159
|
+
const pa = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), qa = new function() {
|
|
160
160
|
function b() {
|
|
161
161
|
if (!a) {
|
|
162
162
|
var g = document.createElement("canvas"), t = {alpha:1, depth:0, stencil:0, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:1, renderViaOffscreenBackBuffer:1,};
|
|
@@ -176,38 +176,38 @@ const oa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
q = new Proxy(q, {get(
|
|
180
|
-
if (
|
|
181
|
-
if (l || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", v), l = !0), "function" === typeof
|
|
179
|
+
q = new Proxy(q, {get(F, v) {
|
|
180
|
+
if (F.isContextLost()) {
|
|
181
|
+
if (l || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", v), l = !0), "function" === typeof F[v]) {
|
|
182
182
|
return function() {
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
} else {
|
|
186
|
-
return "function" === typeof
|
|
187
|
-
return
|
|
188
|
-
} :
|
|
186
|
+
return "function" === typeof F[v] ? function(...H) {
|
|
187
|
+
return F[v].apply(F, H);
|
|
188
|
+
} : F[v];
|
|
189
189
|
}
|
|
190
|
-
}, set(
|
|
191
|
-
if (
|
|
190
|
+
}, set(F, v, H) {
|
|
191
|
+
if (F.isContextLost()) {
|
|
192
192
|
l || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + v), l = !0);
|
|
193
193
|
} else {
|
|
194
|
-
return
|
|
194
|
+
return F[v] = H, !0;
|
|
195
195
|
}
|
|
196
196
|
},});
|
|
197
197
|
d = Math.min(q.getParameter(q.MAX_RENDERBUFFER_SIZE), q.getParameter(q.MAX_TEXTURE_SIZE));
|
|
198
|
-
function F
|
|
198
|
+
function G(F, v, H) {
|
|
199
199
|
v = q.createShader(v);
|
|
200
|
-
q.shaderSource(v,
|
|
200
|
+
q.shaderSource(v, H);
|
|
201
201
|
q.compileShader(v);
|
|
202
|
-
|
|
203
|
-
if (0 < (
|
|
204
|
-
throw
|
|
202
|
+
H = q.getShaderInfoLog(v);
|
|
203
|
+
if (0 < (H || "").length) {
|
|
204
|
+
throw H;
|
|
205
205
|
}
|
|
206
|
-
q.attachShader(
|
|
206
|
+
q.attachShader(F, v);
|
|
207
207
|
}
|
|
208
208
|
g = q.createProgram();
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
G(g, q.VERTEX_SHADER, "attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }");
|
|
210
|
+
G(g, q.FRAGMENT_SHADER, "precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }");
|
|
211
211
|
q.bindAttribLocation(g, 0, "vertex");
|
|
212
212
|
q.bindAttribLocation(g, 1, "uv");
|
|
213
213
|
q.linkProgram(g);
|
|
@@ -253,63 +253,63 @@ const oa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
253
253
|
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);
|
|
254
254
|
return t;
|
|
255
255
|
};
|
|
256
|
-
const n = new
|
|
257
|
-
this.Ma = function(g, t, q,
|
|
256
|
+
const n = new la(8), r = new la(8), w = new la(10), z = new la(10);
|
|
257
|
+
this.Ma = function(g, t, q, G, F) {
|
|
258
258
|
if (b()) {
|
|
259
|
-
var v = n.push(g),
|
|
259
|
+
var v = n.push(g), H = r.push(t);
|
|
260
260
|
if (a.canvas) {
|
|
261
|
-
if (a.canvas.width != v || a.canvas.height !=
|
|
262
|
-
a.canvas.width = v, a.canvas.height =
|
|
261
|
+
if (a.canvas.width != v || a.canvas.height != H) {
|
|
262
|
+
a.canvas.width = v, a.canvas.height = H;
|
|
263
263
|
}
|
|
264
|
-
a.viewport(0,
|
|
264
|
+
a.viewport(0, H - t, g, t);
|
|
265
265
|
a.disable(a.SCISSOR_TEST);
|
|
266
266
|
a.clearColor(0, 0, 0, 0);
|
|
267
267
|
a.clear(a.COLOR_BUFFER_BIT);
|
|
268
268
|
a.enable(a.SCISSOR_TEST);
|
|
269
|
-
q.sort((
|
|
270
|
-
v = w.push(
|
|
269
|
+
q.sort((E, V) => V.ya - E.ya);
|
|
270
|
+
v = w.push(G);
|
|
271
271
|
m != v && (a.bufferData(a.ARRAY_BUFFER, 8 * v, a.DYNAMIC_DRAW), m = v);
|
|
272
272
|
v = 0;
|
|
273
|
-
for (var
|
|
274
|
-
a.bufferSubData(a.ARRAY_BUFFER, v,
|
|
273
|
+
for (var L of q) {
|
|
274
|
+
a.bufferSubData(a.ARRAY_BUFFER, v, L.ia), v += 4 * L.ia.length;
|
|
275
275
|
}
|
|
276
|
-
console.assert(v == 4 *
|
|
277
|
-
for (var
|
|
278
|
-
a.bufferSubData(a.ARRAY_BUFFER, v,
|
|
276
|
+
console.assert(v == 4 * G);
|
|
277
|
+
for (var Q of q) {
|
|
278
|
+
a.bufferSubData(a.ARRAY_BUFFER, v, Q.Ba), v += 4 * Q.Ba.length;
|
|
279
279
|
}
|
|
280
|
-
console.assert(v == 8 *
|
|
281
|
-
v =
|
|
280
|
+
console.assert(v == 8 * G);
|
|
281
|
+
v = z.push(F);
|
|
282
282
|
h != v && (a.bufferData(a.ELEMENT_ARRAY_BUFFER, 2 * v, a.DYNAMIC_DRAW), h = v);
|
|
283
|
-
|
|
284
|
-
for (var
|
|
285
|
-
a.bufferSubData(a.ELEMENT_ARRAY_BUFFER,
|
|
286
|
-
}
|
|
287
|
-
console.assert(
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
v =
|
|
291
|
-
for (const
|
|
292
|
-
|
|
293
|
-
|
|
283
|
+
L = 0;
|
|
284
|
+
for (var ha of q) {
|
|
285
|
+
a.bufferSubData(a.ELEMENT_ARRAY_BUFFER, L, ha.indices), L += 2 * ha.indices.length;
|
|
286
|
+
}
|
|
287
|
+
console.assert(L == 2 * F);
|
|
288
|
+
ha = 0;
|
|
289
|
+
Q = !0;
|
|
290
|
+
v = L = 0;
|
|
291
|
+
for (const E of q) {
|
|
292
|
+
E.image.da != ha && (a.bindTexture(a.TEXTURE_2D, E.image.ca || null), ha = E.image.da);
|
|
293
|
+
E.$a ? (a.scissor(E.na, H - E.oa - E.ta, E.lb, E.ta), Q = !0) : Q && (a.scissor(0, H - t, g, t), Q = !1);
|
|
294
294
|
q = 2 / g;
|
|
295
295
|
const V = -2 / t;
|
|
296
|
-
a.uniform4f(e,
|
|
297
|
-
a.uniform2f(f,
|
|
296
|
+
a.uniform4f(e, E.N[0] * q * E.X, E.N[1] * V * E.Y, E.N[2] * q * E.X, E.N[3] * V * E.Y);
|
|
297
|
+
a.uniform2f(f, E.N[4] * q * E.X + q * (E.na - E.Ya * E.X) - 1, E.N[5] * V * E.Y + V * (E.oa - E.Za * E.Y) + 1);
|
|
298
298
|
a.vertexAttribPointer(0, 2, a.FLOAT, !1, 0, v);
|
|
299
|
-
a.vertexAttribPointer(1, 2, a.FLOAT, !1, 0, v + 4 *
|
|
300
|
-
a.drawElements(a.TRIANGLES,
|
|
301
|
-
v += 4 *
|
|
302
|
-
|
|
299
|
+
a.vertexAttribPointer(1, 2, a.FLOAT, !1, 0, v + 4 * G);
|
|
300
|
+
a.drawElements(a.TRIANGLES, E.indices.length, a.UNSIGNED_SHORT, L);
|
|
301
|
+
v += 4 * E.ia.length;
|
|
302
|
+
L += 2 * E.indices.length;
|
|
303
303
|
}
|
|
304
|
-
console.assert(v == 4 *
|
|
305
|
-
console.assert(
|
|
304
|
+
console.assert(v == 4 * G);
|
|
305
|
+
console.assert(L == 2 * F);
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
this.canvas = function() {
|
|
310
310
|
return b() && a.canvas;
|
|
311
311
|
};
|
|
312
|
-
}(),
|
|
312
|
+
}(), ra = k.onRuntimeInitialized;
|
|
313
313
|
k.onRuntimeInitialized = function() {
|
|
314
314
|
function b(p) {
|
|
315
315
|
switch(p) {
|
|
@@ -351,18 +351,18 @@ k.onRuntimeInitialized = function() {
|
|
|
351
351
|
return "rgba(" + ((16711680 & p) >>> 16) + "," + ((65280 & p) >>> 8) + "," + ((255 & p) >>> 0) + "," + ((4278190080 & p) >>> 24) / 255 + ")";
|
|
352
352
|
}
|
|
353
353
|
function c() {
|
|
354
|
-
0 <
|
|
355
|
-
for (const p of
|
|
354
|
+
0 < H.length && (qa.Ma(v.drawWidth(), v.drawHeight(), H, L, Q), H = [], Q = L = 0, v.reset(512, 512));
|
|
355
|
+
for (const p of F) {
|
|
356
356
|
for (const u of p.v) {
|
|
357
357
|
u();
|
|
358
358
|
}
|
|
359
359
|
p.v = [];
|
|
360
360
|
}
|
|
361
|
-
|
|
361
|
+
F.clear();
|
|
362
362
|
}
|
|
363
|
-
|
|
363
|
+
ra && ra();
|
|
364
364
|
var d = k.RenderPaintStyle;
|
|
365
|
-
const e = k.RenderPath, f = k.RenderPaint, m = k.Renderer, h = k.StrokeCap, l = k.StrokeJoin, n = k.BlendMode, r = d.fill, w = d.stroke,
|
|
365
|
+
const e = k.RenderPath, f = k.RenderPaint, m = k.Renderer, h = k.StrokeCap, l = k.StrokeJoin, n = k.BlendMode, r = d.fill, w = d.stroke, z = k.FillRule.evenOdd;
|
|
366
366
|
let g = 1;
|
|
367
367
|
var t = k.RenderImage.extend("CanvasRenderImage", {__construct:function({R:p, W:u} = {}) {
|
|
368
368
|
this.__parent.__construct.call(this);
|
|
@@ -371,47 +371,47 @@ k.onRuntimeInitialized = function() {
|
|
|
371
371
|
this.R = p;
|
|
372
372
|
this.W = u;
|
|
373
373
|
}, __destruct:function() {
|
|
374
|
-
this.ca && (
|
|
374
|
+
this.ca && (qa.Ja(this.ca), URL.revokeObjectURL(this.la));
|
|
375
375
|
this.__parent.__destruct.call(this);
|
|
376
376
|
}, decode:function(p) {
|
|
377
377
|
var u = this;
|
|
378
378
|
u.W && u.W(u);
|
|
379
|
-
var
|
|
379
|
+
var D = new Image();
|
|
380
380
|
u.la = URL.createObjectURL(new Blob([p], {type:"image/png",}));
|
|
381
|
-
|
|
382
|
-
u.Da =
|
|
383
|
-
u.ca =
|
|
384
|
-
u.size(
|
|
381
|
+
D.onload = function() {
|
|
382
|
+
u.Da = D;
|
|
383
|
+
u.ca = qa.Ia(D);
|
|
384
|
+
u.size(D.width, D.height);
|
|
385
385
|
u.R && u.R(u);
|
|
386
386
|
};
|
|
387
|
-
|
|
387
|
+
D.src = u.la;
|
|
388
388
|
},}), q = e.extend("CanvasRenderPath", {__construct:function() {
|
|
389
389
|
this.__parent.__construct.call(this);
|
|
390
390
|
this.H = new Path2D();
|
|
391
391
|
}, rewind:function() {
|
|
392
392
|
this.H = new Path2D();
|
|
393
|
-
}, addPath:function(p, u,
|
|
394
|
-
var
|
|
393
|
+
}, addPath:function(p, u, D, B, x, C, A) {
|
|
394
|
+
var I = this.H, na = I.addPath;
|
|
395
395
|
p = p.H;
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
396
|
+
const P = new DOMMatrix();
|
|
397
|
+
P.a = u;
|
|
398
|
+
P.b = D;
|
|
399
|
+
P.c = B;
|
|
400
|
+
P.d = x;
|
|
401
|
+
P.e = C;
|
|
402
|
+
P.f = A;
|
|
403
|
+
na.call(I, p, P);
|
|
404
404
|
}, fillRule:function(p) {
|
|
405
405
|
this.ka = p;
|
|
406
406
|
}, moveTo:function(p, u) {
|
|
407
407
|
this.H.moveTo(p, u);
|
|
408
408
|
}, lineTo:function(p, u) {
|
|
409
409
|
this.H.lineTo(p, u);
|
|
410
|
-
}, cubicTo:function(p, u,
|
|
411
|
-
this.H.bezierCurveTo(p, u,
|
|
410
|
+
}, cubicTo:function(p, u, D, B, x, C) {
|
|
411
|
+
this.H.bezierCurveTo(p, u, D, B, x, C);
|
|
412
412
|
}, close:function() {
|
|
413
413
|
this.H.closePath();
|
|
414
|
-
},}),
|
|
414
|
+
},}), G = f.extend("CanvasRenderPaint", {color:function(p) {
|
|
415
415
|
this.ma = a(p);
|
|
416
416
|
}, thickness:function(p) {
|
|
417
417
|
this.Ga = p;
|
|
@@ -443,32 +443,32 @@ k.onRuntimeInitialized = function() {
|
|
|
443
443
|
this.Ca = b(p);
|
|
444
444
|
}, clearGradient:function() {
|
|
445
445
|
this.P = null;
|
|
446
|
-
}, linearGradient:function(p, u,
|
|
447
|
-
this.P = {za:p, Aa:u, qa:
|
|
448
|
-
}, radialGradient:function(p, u,
|
|
449
|
-
this.P = {za:p, Aa:u, qa:
|
|
446
|
+
}, linearGradient:function(p, u, D, B) {
|
|
447
|
+
this.P = {za:p, Aa:u, qa:D, ra:B, ga:[],};
|
|
448
|
+
}, radialGradient:function(p, u, D, B) {
|
|
449
|
+
this.P = {za:p, Aa:u, qa:D, ra:B, ga:[], Wa:!0,};
|
|
450
450
|
}, addStop:function(p, u) {
|
|
451
451
|
this.P.ga.push({color:p, stop:u,});
|
|
452
452
|
}, completeGradient:function() {
|
|
453
|
-
}, draw:function(p, u,
|
|
454
|
-
let
|
|
453
|
+
}, draw:function(p, u, D, B) {
|
|
454
|
+
let x = this.Fa;
|
|
455
455
|
var C = this.ma, A = this.P;
|
|
456
|
-
const
|
|
456
|
+
const I = p.globalCompositeOperation, na = p.globalAlpha;
|
|
457
457
|
p.globalCompositeOperation = this.Ca;
|
|
458
|
-
p.globalAlpha =
|
|
458
|
+
p.globalAlpha = B;
|
|
459
459
|
if (null != A) {
|
|
460
460
|
C = A.za;
|
|
461
|
-
const
|
|
462
|
-
var
|
|
463
|
-
|
|
464
|
-
A.Wa ? (A =
|
|
465
|
-
for (let
|
|
466
|
-
A =
|
|
461
|
+
const T = A.Aa, ca = A.qa;
|
|
462
|
+
var P = A.ra;
|
|
463
|
+
B = A.ga;
|
|
464
|
+
A.Wa ? (A = ca - C, P -= T, C = p.createRadialGradient(C, T, 0, C, T, Math.sqrt(A * A + P * P))) : C = p.createLinearGradient(C, T, ca, P);
|
|
465
|
+
for (let U = 0, W = B.length; U < W; U++) {
|
|
466
|
+
A = B[U], C.addColorStop(A.stop, a(A.color));
|
|
467
467
|
}
|
|
468
468
|
this.ma = C;
|
|
469
469
|
this.P = null;
|
|
470
470
|
}
|
|
471
|
-
switch(
|
|
471
|
+
switch(x) {
|
|
472
472
|
case w:
|
|
473
473
|
p.strokeStyle = C;
|
|
474
474
|
p.lineWidth = this.Ga;
|
|
@@ -477,14 +477,14 @@ k.onRuntimeInitialized = function() {
|
|
|
477
477
|
p.stroke(u);
|
|
478
478
|
break;
|
|
479
479
|
case r:
|
|
480
|
-
p.fillStyle = C, p.fill(u,
|
|
480
|
+
p.fillStyle = C, p.fill(u, D);
|
|
481
481
|
}
|
|
482
|
-
p.globalCompositeOperation =
|
|
483
|
-
p.globalAlpha =
|
|
482
|
+
p.globalCompositeOperation = I;
|
|
483
|
+
p.globalAlpha = na;
|
|
484
484
|
},});
|
|
485
|
-
const
|
|
486
|
-
let v = null,
|
|
487
|
-
var
|
|
485
|
+
const F = new Set();
|
|
486
|
+
let v = null, H = [], L = 0, Q = 0;
|
|
487
|
+
var ha = k.CanvasRenderer = m.extend("Renderer", {__construct:function(p) {
|
|
488
488
|
this.__parent.__construct.call(this);
|
|
489
489
|
this.G = [1, 0, 0, 1, 0, 0];
|
|
490
490
|
this.u = [1.0];
|
|
@@ -503,10 +503,10 @@ k.onRuntimeInitialized = function() {
|
|
|
503
503
|
this.G.splice(p);
|
|
504
504
|
this.u.pop();
|
|
505
505
|
this.v.push(this.m.restore.bind(this.m));
|
|
506
|
-
}, transform:function(p, u,
|
|
507
|
-
const A = this.G,
|
|
508
|
-
A.splice(
|
|
509
|
-
this.v.push(this.m.transform.bind(this.m, p, u,
|
|
506
|
+
}, transform:function(p, u, D, B, x, C) {
|
|
507
|
+
const A = this.G, I = A.length - 6;
|
|
508
|
+
A.splice(I, 6, A[I] * p + A[I + 2] * u, A[I + 1] * p + A[I + 3] * u, A[I] * D + A[I + 2] * B, A[I + 1] * D + A[I + 3] * B, A[I] * x + A[I + 2] * C + A[I + 4], A[I + 1] * x + A[I + 3] * C + A[I + 5]);
|
|
509
|
+
this.v.push(this.m.transform.bind(this.m, p, u, D, B, x, C));
|
|
510
510
|
}, rotate:function(p) {
|
|
511
511
|
const u = Math.sin(p);
|
|
512
512
|
p = Math.cos(p);
|
|
@@ -514,89 +514,97 @@ k.onRuntimeInitialized = function() {
|
|
|
514
514
|
}, modulateOpacity:function(p) {
|
|
515
515
|
this.u[this.u.length - 1] *= p;
|
|
516
516
|
}, _drawPath:function(p, u) {
|
|
517
|
-
this.v.push(u.draw.bind(u, this.m, p.H, p.ka ===
|
|
518
|
-
}, _drawRiveImage:function(p, u,
|
|
519
|
-
var
|
|
520
|
-
if (
|
|
521
|
-
var C = this.m, A = b(
|
|
517
|
+
this.v.push(u.draw.bind(u, this.m, p.H, p.ka === z ? "evenodd" : "nonzero", Math.max(0, this.u[this.u.length - 1])));
|
|
518
|
+
}, _drawRiveImage:function(p, u, D, B) {
|
|
519
|
+
var x = p.Da;
|
|
520
|
+
if (x) {
|
|
521
|
+
var C = this.m, A = b(D), I = Math.max(0, B * this.u[this.u.length - 1]);
|
|
522
522
|
this.v.push(function() {
|
|
523
523
|
C.globalCompositeOperation = A;
|
|
524
|
-
C.globalAlpha =
|
|
525
|
-
C.drawImage(
|
|
524
|
+
C.globalAlpha = I;
|
|
525
|
+
C.drawImage(x, 0, 0);
|
|
526
526
|
C.globalAlpha = 1;
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
529
|
}, _getMatrix:function(p) {
|
|
530
|
-
const u = this.G,
|
|
531
|
-
for (let
|
|
532
|
-
p[
|
|
530
|
+
const u = this.G, D = u.length - 6;
|
|
531
|
+
for (let B = 0; 6 > B; ++B) {
|
|
532
|
+
p[B] = u[D + B];
|
|
533
|
+
}
|
|
534
|
+
}, _drawImageMesh:function(p, u, D, B, x, C, A, I, na, P, T, ca, U, W) {
|
|
535
|
+
let ub, vb, wb;
|
|
536
|
+
try {
|
|
537
|
+
ub = k.HEAPF32.slice(x >> 2, (x >> 2) + C), vb = k.HEAPF32.slice(A >> 2, (A >> 2) + I), wb = k.HEAPU16.slice(na >> 1, (na >> 1) + P);
|
|
538
|
+
} catch (Ya) {
|
|
539
|
+
console.error("[Rive] _drawImageMesh: failed to read mesh data from WASM heap. Mesh skipped for this frame.");
|
|
540
|
+
return;
|
|
533
541
|
}
|
|
534
|
-
}, _drawImageMesh:function(p, u, B, z, G, C, A, H, W, L, S) {
|
|
535
542
|
u = this.m.canvas.width;
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
console.assert(va <= Math.min(
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
ia >
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
N
|
|
558
|
-
|
|
559
|
-
|
|
543
|
+
x = this.m.canvas.height;
|
|
544
|
+
A = U - T;
|
|
545
|
+
I = W - ca;
|
|
546
|
+
T = Math.max(T, 0);
|
|
547
|
+
ca = Math.max(ca, 0);
|
|
548
|
+
U = Math.min(U, u);
|
|
549
|
+
W = Math.min(W, x);
|
|
550
|
+
const va = U - T, wa = W - ca;
|
|
551
|
+
console.assert(va <= Math.min(A, u));
|
|
552
|
+
console.assert(wa <= Math.min(I, x));
|
|
553
|
+
if (!(0 >= va || 0 >= wa)) {
|
|
554
|
+
U = va < A || wa < I;
|
|
555
|
+
u = W = 1;
|
|
556
|
+
var ia = Math.ceil(va * W), ja = Math.ceil(wa * u);
|
|
557
|
+
x = qa.Xa();
|
|
558
|
+
ia > x && (W *= x / ia, ia = x);
|
|
559
|
+
ja > x && (u *= x / ja, ja = x);
|
|
560
|
+
v || (v = new k.DynamicRectanizer(x), v.reset(512, 512));
|
|
561
|
+
x = v.addRect(ia, ja);
|
|
562
|
+
0 > x && (c(), F.add(this), x = v.addRect(ia, ja), console.assert(0 <= x));
|
|
563
|
+
var xb = x & 65535, yb = x >> 16;
|
|
564
|
+
H.push({N:this.G.slice(this.G.length - 6), image:p, na:xb, oa:yb, Ya:T, Za:ca, lb:ia, ta:ja, X:W, Y:u, ia:ub, Ba:vb, indices:wb, $a:U, ya:p.da << 1 | (U ? 1 : 0),});
|
|
565
|
+
L += C;
|
|
566
|
+
Q += P;
|
|
567
|
+
var oa = this.m, oc = b(D), pc = Math.max(0, B * this.u[this.u.length - 1]);
|
|
560
568
|
this.v.push(function() {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
const
|
|
566
|
-
|
|
567
|
-
|
|
569
|
+
oa.save();
|
|
570
|
+
oa.resetTransform();
|
|
571
|
+
oa.globalCompositeOperation = oc;
|
|
572
|
+
oa.globalAlpha = pc;
|
|
573
|
+
const Ya = qa.canvas();
|
|
574
|
+
Ya && oa.drawImage(Ya, xb, yb, ia, ja, T, ca, va, wa);
|
|
575
|
+
oa.restore();
|
|
568
576
|
});
|
|
569
577
|
}
|
|
570
578
|
}, _clipPath:function(p) {
|
|
571
|
-
this.v.push(this.m.clip.bind(this.m, p.H, p.ka ===
|
|
579
|
+
this.v.push(this.m.clip.bind(this.m, p.H, p.ka === z ? "evenodd" : "nonzero"));
|
|
572
580
|
}, clear:function() {
|
|
573
|
-
|
|
581
|
+
F.add(this);
|
|
574
582
|
this.v.push(this.m.clearRect.bind(this.m, 0, 0, this.ja.width, this.ja.height));
|
|
575
583
|
}, flush:function() {
|
|
576
584
|
}, translate:function(p, u) {
|
|
577
585
|
this.transform(1, 0, 0, 1, p, u);
|
|
578
586
|
},});
|
|
579
587
|
k.makeRenderer = function(p) {
|
|
580
|
-
const u = new
|
|
581
|
-
return new Proxy(u, {get(
|
|
582
|
-
if ("function" === typeof
|
|
588
|
+
const u = new ha(p), D = u.m;
|
|
589
|
+
return new Proxy(u, {get(B, x) {
|
|
590
|
+
if ("function" === typeof B[x]) {
|
|
583
591
|
return function(...C) {
|
|
584
|
-
return
|
|
592
|
+
return B[x].apply(B, C);
|
|
585
593
|
};
|
|
586
594
|
}
|
|
587
|
-
if ("function" === typeof
|
|
588
|
-
if (-1 <
|
|
589
|
-
throw Error("RiveException: Method call to '" +
|
|
595
|
+
if ("function" === typeof D[x]) {
|
|
596
|
+
if (-1 < pa.indexOf(x)) {
|
|
597
|
+
throw Error("RiveException: Method call to '" + x + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
|
|
590
598
|
}
|
|
591
599
|
return function(...C) {
|
|
592
|
-
u.v.push(
|
|
600
|
+
u.v.push(D[x].bind(D, ...C));
|
|
593
601
|
};
|
|
594
602
|
}
|
|
595
|
-
return
|
|
596
|
-
}, set(
|
|
597
|
-
if (
|
|
603
|
+
return B[x];
|
|
604
|
+
}, set(B, x, C) {
|
|
605
|
+
if (x in D) {
|
|
598
606
|
return u.v.push(() => {
|
|
599
|
-
|
|
607
|
+
D[x] = C;
|
|
600
608
|
}), !0;
|
|
601
609
|
}
|
|
602
610
|
},});
|
|
@@ -605,7 +613,7 @@ k.onRuntimeInitialized = function() {
|
|
|
605
613
|
(new t({R:u})).decode(p);
|
|
606
614
|
};
|
|
607
615
|
k.renderFactory = {makeRenderPaint:function() {
|
|
608
|
-
return new
|
|
616
|
+
return new G();
|
|
609
617
|
}, makeRenderPath:function() {
|
|
610
618
|
return new q();
|
|
611
619
|
}, makeRenderImage:function() {
|
|
@@ -620,25 +628,25 @@ k.onRuntimeInitialized = function() {
|
|
|
620
628
|
}
|
|
621
629
|
},});
|
|
622
630
|
},};
|
|
623
|
-
let
|
|
624
|
-
k.load = function(p, u,
|
|
625
|
-
const
|
|
626
|
-
void 0 !== u &&
|
|
627
|
-
|
|
628
|
-
return new Promise(function(
|
|
631
|
+
let E = k.load, V = null;
|
|
632
|
+
k.load = function(p, u, D = !0) {
|
|
633
|
+
const B = new k.FallbackFileAssetLoader();
|
|
634
|
+
void 0 !== u && B.addLoader(u);
|
|
635
|
+
D && (u = new k.CDNFileAssetLoader(), B.addLoader(u));
|
|
636
|
+
return new Promise(function(x) {
|
|
629
637
|
let C = null;
|
|
630
638
|
V = {total:0, loaded:0, ready:function() {
|
|
631
|
-
|
|
639
|
+
x(C);
|
|
632
640
|
},};
|
|
633
|
-
C =
|
|
634
|
-
0 == V.total &&
|
|
641
|
+
C = E(p, B);
|
|
642
|
+
0 == V.total && x(C);
|
|
635
643
|
});
|
|
636
644
|
};
|
|
637
|
-
let
|
|
638
|
-
k.RendererWrapper.prototype.align = function(p, u,
|
|
639
|
-
|
|
645
|
+
let qc = k.RendererWrapper.prototype.align;
|
|
646
|
+
k.RendererWrapper.prototype.align = function(p, u, D, B, x = 1.0) {
|
|
647
|
+
qc.call(this, p, u, D, B, x);
|
|
640
648
|
};
|
|
641
|
-
d = new
|
|
649
|
+
d = new ka();
|
|
642
650
|
k.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
643
651
|
k.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
644
652
|
k.enableFPSCounter = d.Na.bind(d);
|
|
@@ -649,16 +657,16 @@ k.onRuntimeInitialized = function() {
|
|
|
649
657
|
v && v.delete();
|
|
650
658
|
};
|
|
651
659
|
};
|
|
652
|
-
var
|
|
653
|
-
if (
|
|
654
|
-
|
|
660
|
+
var sa = Object.assign({}, k), ta = "./this.program", y = "", ua, xa;
|
|
661
|
+
if (ea || fa) {
|
|
662
|
+
fa ? y = self.location.href : "undefined" != typeof document && document.currentScript && (y = document.currentScript.src), _scriptName && (y = _scriptName), y.startsWith("blob:") ? y = "" : y = y.substr(0, y.replace(/[?#].*/, "").lastIndexOf("/") + 1), fa && (xa = b => {
|
|
655
663
|
var a = new XMLHttpRequest();
|
|
656
664
|
a.open("GET", b, !1);
|
|
657
665
|
a.responseType = "arraybuffer";
|
|
658
666
|
a.send(null);
|
|
659
667
|
return new Uint8Array(a.response);
|
|
660
|
-
}),
|
|
661
|
-
if (
|
|
668
|
+
}), ua = (b, a, c) => {
|
|
669
|
+
if (ya(b)) {
|
|
662
670
|
var d = new XMLHttpRequest();
|
|
663
671
|
d.open("GET", b, !0);
|
|
664
672
|
d.responseType = "arraybuffer";
|
|
@@ -672,22 +680,22 @@ if (da || ea) {
|
|
|
672
680
|
}
|
|
673
681
|
};
|
|
674
682
|
}
|
|
675
|
-
var
|
|
676
|
-
Object.assign(k,
|
|
677
|
-
|
|
678
|
-
k.thisProgram && (
|
|
679
|
-
var
|
|
680
|
-
k.wasmBinary && (
|
|
681
|
-
var
|
|
683
|
+
var za = k.print || console.log.bind(console), Aa = k.printErr || console.error.bind(console);
|
|
684
|
+
Object.assign(k, sa);
|
|
685
|
+
sa = null;
|
|
686
|
+
k.thisProgram && (ta = k.thisProgram);
|
|
687
|
+
var Ba;
|
|
688
|
+
k.wasmBinary && (Ba = k.wasmBinary);
|
|
689
|
+
var Ca, Da = !1, Ea, J, Fa, Ga, K, M, Ha, Ia;
|
|
682
690
|
function Ja() {
|
|
683
|
-
var b =
|
|
684
|
-
k.HEAP8 =
|
|
685
|
-
k.HEAP16 =
|
|
691
|
+
var b = Ca.buffer;
|
|
692
|
+
k.HEAP8 = Ea = new Int8Array(b);
|
|
693
|
+
k.HEAP16 = Fa = new Int16Array(b);
|
|
686
694
|
k.HEAPU8 = J = new Uint8Array(b);
|
|
687
|
-
k.HEAPU16 =
|
|
695
|
+
k.HEAPU16 = Ga = new Uint16Array(b);
|
|
688
696
|
k.HEAP32 = K = new Int32Array(b);
|
|
689
|
-
k.HEAPU32 =
|
|
690
|
-
k.HEAPF32 =
|
|
697
|
+
k.HEAPU32 = M = new Uint32Array(b);
|
|
698
|
+
k.HEAPF32 = Ha = new Float32Array(b);
|
|
691
699
|
k.HEAPF64 = Ia = new Float64Array(b);
|
|
692
700
|
}
|
|
693
701
|
var Ka = [], La = [], Ma = [];
|
|
@@ -699,25 +707,25 @@ var Oa = 0, Pa = null, Qa = null;
|
|
|
699
707
|
function Ra(b) {
|
|
700
708
|
k.onAbort?.(b);
|
|
701
709
|
b = "Aborted(" + b + ")";
|
|
702
|
-
|
|
703
|
-
|
|
710
|
+
Aa(b);
|
|
711
|
+
Da = !0;
|
|
704
712
|
b = new WebAssembly.RuntimeError(b + ". Build with -sASSERTIONS for more info.");
|
|
705
713
|
ba(b);
|
|
706
714
|
throw b;
|
|
707
715
|
}
|
|
708
|
-
var Sa = b => b.startsWith("data:application/octet-stream;base64,"),
|
|
716
|
+
var Sa = b => b.startsWith("data:application/octet-stream;base64,"), ya = b => b.startsWith("file://"), Ta;
|
|
709
717
|
function Ua(b) {
|
|
710
|
-
if (b == Ta &&
|
|
711
|
-
return new Uint8Array(
|
|
718
|
+
if (b == Ta && Ba) {
|
|
719
|
+
return new Uint8Array(Ba);
|
|
712
720
|
}
|
|
713
|
-
if (
|
|
714
|
-
return
|
|
721
|
+
if (xa) {
|
|
722
|
+
return xa(b);
|
|
715
723
|
}
|
|
716
724
|
throw "both async and sync fetching of the wasm failed";
|
|
717
725
|
}
|
|
718
726
|
function Va(b) {
|
|
719
|
-
return
|
|
720
|
-
|
|
727
|
+
return Ba ? Promise.resolve().then(() => Ua(b)) : new Promise((a, c) => {
|
|
728
|
+
ua(b, d => a(new Uint8Array(d)), () => {
|
|
721
729
|
try {
|
|
722
730
|
a(Ua(b));
|
|
723
731
|
} catch (d) {
|
|
@@ -728,28 +736,28 @@ function Va(b) {
|
|
|
728
736
|
}
|
|
729
737
|
function Wa(b, a, c) {
|
|
730
738
|
return Va(b).then(d => WebAssembly.instantiate(d, a)).then(c, d => {
|
|
731
|
-
|
|
739
|
+
Aa(`failed to asynchronously prepare wasm: ${d}`);
|
|
732
740
|
Ra(d);
|
|
733
741
|
});
|
|
734
742
|
}
|
|
735
743
|
function Xa(b, a) {
|
|
736
744
|
var c = Ta;
|
|
737
|
-
return
|
|
738
|
-
|
|
739
|
-
|
|
745
|
+
return Ba || "function" != typeof WebAssembly.instantiateStreaming || Sa(c) || ya(c) || "function" != typeof fetch ? Wa(c, b, a) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, b).then(a, function(e) {
|
|
746
|
+
Aa(`wasm streaming compile failed: ${e}`);
|
|
747
|
+
Aa("falling back to ArrayBuffer instantiation");
|
|
740
748
|
return Wa(c, b, a);
|
|
741
749
|
}));
|
|
742
750
|
}
|
|
743
|
-
var
|
|
751
|
+
var Za = b => {
|
|
744
752
|
for (; 0 < b.length;) {
|
|
745
753
|
b.shift()(k);
|
|
746
754
|
}
|
|
747
|
-
},
|
|
755
|
+
}, $a = (b, a) => Object.defineProperty(a, "name", {value:b}), ab = [], N = [], O, R = b => {
|
|
748
756
|
if (!b) {
|
|
749
|
-
throw new
|
|
757
|
+
throw new O("Cannot use deleted val. handle = " + b);
|
|
750
758
|
}
|
|
751
|
-
return
|
|
752
|
-
},
|
|
759
|
+
return N[b];
|
|
760
|
+
}, bb = b => {
|
|
753
761
|
switch(b) {
|
|
754
762
|
case void 0:
|
|
755
763
|
return 2;
|
|
@@ -760,13 +768,13 @@ var Ya = b => {
|
|
|
760
768
|
case !1:
|
|
761
769
|
return 8;
|
|
762
770
|
default:
|
|
763
|
-
const a =
|
|
764
|
-
|
|
765
|
-
|
|
771
|
+
const a = ab.pop() || N.length;
|
|
772
|
+
N[a] = b;
|
|
773
|
+
N[a + 1] = 1;
|
|
766
774
|
return a;
|
|
767
775
|
}
|
|
768
|
-
},
|
|
769
|
-
var a = Error, c =
|
|
776
|
+
}, cb = b => {
|
|
777
|
+
var a = Error, c = $a(b, function(d) {
|
|
770
778
|
this.name = b;
|
|
771
779
|
this.message = d;
|
|
772
780
|
d = Error(d).stack;
|
|
@@ -778,160 +786,160 @@ var Ya = b => {
|
|
|
778
786
|
return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
|
|
779
787
|
};
|
|
780
788
|
return c;
|
|
781
|
-
},
|
|
789
|
+
}, db, eb, S = b => {
|
|
782
790
|
for (var a = ""; J[b];) {
|
|
783
|
-
a +=
|
|
791
|
+
a += eb[J[b++]];
|
|
784
792
|
}
|
|
785
793
|
return a;
|
|
786
|
-
},
|
|
787
|
-
for (;
|
|
788
|
-
var b =
|
|
794
|
+
}, fb = [], gb = () => {
|
|
795
|
+
for (; fb.length;) {
|
|
796
|
+
var b = fb.pop();
|
|
789
797
|
b.g.M = !1;
|
|
790
798
|
b["delete"]();
|
|
791
799
|
}
|
|
792
|
-
},
|
|
800
|
+
}, hb, ib = {}, jb = (b, a) => {
|
|
793
801
|
if (void 0 === a) {
|
|
794
|
-
throw new
|
|
802
|
+
throw new O("ptr should not be undefined");
|
|
795
803
|
}
|
|
796
804
|
for (; b.o;) {
|
|
797
805
|
a = b.S(a), b = b.o;
|
|
798
806
|
}
|
|
799
807
|
return a;
|
|
800
|
-
},
|
|
801
|
-
b =
|
|
802
|
-
var a =
|
|
803
|
-
|
|
808
|
+
}, kb = {}, nb = b => {
|
|
809
|
+
b = lb(b);
|
|
810
|
+
var a = S(b);
|
|
811
|
+
mb(b);
|
|
804
812
|
return a;
|
|
805
|
-
},
|
|
806
|
-
var c =
|
|
813
|
+
}, ob = (b, a) => {
|
|
814
|
+
var c = kb[b];
|
|
807
815
|
if (void 0 === c) {
|
|
808
|
-
throw b = `${a} has unknown type ${
|
|
816
|
+
throw b = `${a} has unknown type ${nb(b)}`, new O(b);
|
|
809
817
|
}
|
|
810
818
|
return c;
|
|
811
|
-
},
|
|
812
|
-
},
|
|
819
|
+
}, pb = () => {
|
|
820
|
+
}, qb = !1, rb = (b, a, c) => {
|
|
813
821
|
if (a === c) {
|
|
814
822
|
return b;
|
|
815
823
|
}
|
|
816
824
|
if (void 0 === c.o) {
|
|
817
825
|
return null;
|
|
818
826
|
}
|
|
819
|
-
b =
|
|
827
|
+
b = rb(b, a, c.o);
|
|
820
828
|
return null === b ? null : c.La(b);
|
|
821
|
-
},
|
|
822
|
-
a =
|
|
823
|
-
return
|
|
824
|
-
},
|
|
829
|
+
}, sb = {}, tb = (b, a) => {
|
|
830
|
+
a = jb(b, a);
|
|
831
|
+
return ib[a];
|
|
832
|
+
}, zb, Bb = (b, a) => {
|
|
825
833
|
if (!a.j || !a.i) {
|
|
826
|
-
throw new
|
|
834
|
+
throw new zb("makeClassHandle requires ptr and ptrType");
|
|
827
835
|
}
|
|
828
836
|
if (!!a.A !== !!a.s) {
|
|
829
|
-
throw new
|
|
837
|
+
throw new zb("Both smartPtrType and smartPtr must be specified");
|
|
830
838
|
}
|
|
831
839
|
a.count = {value:1};
|
|
832
|
-
return
|
|
833
|
-
},
|
|
840
|
+
return Ab(Object.create(b, {g:{value:a, writable:!0,},}));
|
|
841
|
+
}, Ab = b => {
|
|
834
842
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
835
|
-
return
|
|
843
|
+
return Ab = a => a, b;
|
|
836
844
|
}
|
|
837
|
-
|
|
845
|
+
qb = new FinalizationRegistry(a => {
|
|
838
846
|
a = a.g;
|
|
839
847
|
--a.count.value;
|
|
840
848
|
0 === a.count.value && (a.s ? a.A.D(a.s) : a.j.h.D(a.i));
|
|
841
849
|
});
|
|
842
|
-
|
|
850
|
+
Ab = a => {
|
|
843
851
|
var c = a.g;
|
|
844
|
-
c.s &&
|
|
852
|
+
c.s && qb.register(a, {g:c}, a);
|
|
845
853
|
return a;
|
|
846
854
|
};
|
|
847
|
-
|
|
848
|
-
|
|
855
|
+
pb = a => {
|
|
856
|
+
qb.unregister(a);
|
|
849
857
|
};
|
|
850
|
-
return
|
|
851
|
-
},
|
|
858
|
+
return Ab(b);
|
|
859
|
+
}, Cb = {}, Db = b => {
|
|
852
860
|
for (; b.length;) {
|
|
853
861
|
var a = b.pop();
|
|
854
862
|
b.pop()(a);
|
|
855
863
|
}
|
|
856
864
|
};
|
|
857
|
-
function
|
|
858
|
-
return this.fromWireType(
|
|
865
|
+
function Eb(b) {
|
|
866
|
+
return this.fromWireType(M[b >> 2]);
|
|
859
867
|
}
|
|
860
|
-
var
|
|
868
|
+
var Fb = {}, Gb = {}, X = (b, a, c) => {
|
|
861
869
|
function d(h) {
|
|
862
870
|
h = c(h);
|
|
863
871
|
if (h.length !== b.length) {
|
|
864
|
-
throw new
|
|
872
|
+
throw new zb("Mismatched type converter count");
|
|
865
873
|
}
|
|
866
874
|
for (var l = 0; l < b.length; ++l) {
|
|
867
|
-
|
|
875
|
+
Hb(b[l], h[l]);
|
|
868
876
|
}
|
|
869
877
|
}
|
|
870
878
|
b.forEach(function(h) {
|
|
871
|
-
|
|
879
|
+
Gb[h] = a;
|
|
872
880
|
});
|
|
873
881
|
var e = Array(a.length), f = [], m = 0;
|
|
874
882
|
a.forEach((h, l) => {
|
|
875
|
-
|
|
876
|
-
e[l] =
|
|
883
|
+
kb.hasOwnProperty(h) ? e[l] = kb[h] : (f.push(h), Fb.hasOwnProperty(h) || (Fb[h] = []), Fb[h].push(() => {
|
|
884
|
+
e[l] = kb[h];
|
|
877
885
|
++m;
|
|
878
886
|
m === f.length && d(e);
|
|
879
887
|
}));
|
|
880
888
|
});
|
|
881
889
|
0 === f.length && d(e);
|
|
882
890
|
};
|
|
883
|
-
function
|
|
891
|
+
function Ib(b, a, c = {}) {
|
|
884
892
|
var d = a.name;
|
|
885
893
|
if (!b) {
|
|
886
|
-
throw new
|
|
894
|
+
throw new O(`type "${d}" must have a positive integer typeid pointer`);
|
|
887
895
|
}
|
|
888
|
-
if (
|
|
896
|
+
if (kb.hasOwnProperty(b)) {
|
|
889
897
|
if (c.Va) {
|
|
890
898
|
return;
|
|
891
899
|
}
|
|
892
|
-
throw new
|
|
900
|
+
throw new O(`Cannot register type '${d}' twice`);
|
|
893
901
|
}
|
|
894
|
-
|
|
895
|
-
delete
|
|
896
|
-
|
|
902
|
+
kb[b] = a;
|
|
903
|
+
delete Gb[b];
|
|
904
|
+
Fb.hasOwnProperty(b) && (a = Fb[b], delete Fb[b], a.forEach(e => e()));
|
|
897
905
|
}
|
|
898
|
-
function
|
|
906
|
+
function Hb(b, a, c = {}) {
|
|
899
907
|
if (!("argPackAdvance" in a)) {
|
|
900
908
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
901
909
|
}
|
|
902
|
-
return
|
|
910
|
+
return Ib(b, a, c);
|
|
903
911
|
}
|
|
904
|
-
var
|
|
905
|
-
throw new
|
|
912
|
+
var Jb = b => {
|
|
913
|
+
throw new O(b.g.j.h.name + " instance already deleted");
|
|
906
914
|
};
|
|
907
|
-
function
|
|
915
|
+
function Kb() {
|
|
908
916
|
}
|
|
909
|
-
var
|
|
917
|
+
var Lb = (b, a, c) => {
|
|
910
918
|
if (void 0 === b[a].l) {
|
|
911
919
|
var d = b[a];
|
|
912
920
|
b[a] = function(...e) {
|
|
913
921
|
if (!b[a].l.hasOwnProperty(e.length)) {
|
|
914
|
-
throw new
|
|
922
|
+
throw new O(`Function '${c}' called with an invalid number of arguments (${e.length}) - expects one of (${b[a].l})!`);
|
|
915
923
|
}
|
|
916
924
|
return b[a].l[e.length].apply(this, e);
|
|
917
925
|
};
|
|
918
926
|
b[a].l = [];
|
|
919
927
|
b[a].l[d.L] = d;
|
|
920
928
|
}
|
|
921
|
-
},
|
|
929
|
+
}, Mb = (b, a, c) => {
|
|
922
930
|
if (k.hasOwnProperty(b)) {
|
|
923
931
|
if (void 0 === c || void 0 !== k[b].l && void 0 !== k[b].l[c]) {
|
|
924
|
-
throw new
|
|
932
|
+
throw new O(`Cannot register public name '${b}' twice`);
|
|
925
933
|
}
|
|
926
|
-
|
|
934
|
+
Lb(k, b, b);
|
|
927
935
|
if (k.hasOwnProperty(c)) {
|
|
928
|
-
throw new
|
|
936
|
+
throw new O(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);
|
|
929
937
|
}
|
|
930
938
|
k[b].l[c] = a;
|
|
931
939
|
} else {
|
|
932
940
|
k[b] = a, void 0 !== c && (k[b].nb = c);
|
|
933
941
|
}
|
|
934
|
-
},
|
|
942
|
+
}, Nb = b => {
|
|
935
943
|
if (void 0 === b) {
|
|
936
944
|
return "_unknown";
|
|
937
945
|
}
|
|
@@ -939,7 +947,7 @@ var Ib = (b, a, c) => {
|
|
|
939
947
|
var a = b.charCodeAt(0);
|
|
940
948
|
return 48 <= a && 57 >= a ? `_${b}` : b;
|
|
941
949
|
};
|
|
942
|
-
function
|
|
950
|
+
function Ob(b, a, c, d, e, f, m, h) {
|
|
943
951
|
this.name = b;
|
|
944
952
|
this.constructor = a;
|
|
945
953
|
this.C = c;
|
|
@@ -950,35 +958,35 @@ function Lb(b, a, c, d, e, f, m, h) {
|
|
|
950
958
|
this.La = h;
|
|
951
959
|
this.wa = [];
|
|
952
960
|
}
|
|
953
|
-
var
|
|
961
|
+
var Pb = (b, a, c) => {
|
|
954
962
|
for (; a !== c;) {
|
|
955
963
|
if (!a.S) {
|
|
956
|
-
throw new
|
|
964
|
+
throw new O(`Expected null or instance of ${c.name}, got an instance of ${a.name}`);
|
|
957
965
|
}
|
|
958
966
|
b = a.S(b);
|
|
959
967
|
a = a.o;
|
|
960
968
|
}
|
|
961
969
|
return b;
|
|
962
970
|
};
|
|
963
|
-
function
|
|
971
|
+
function Qb(b, a) {
|
|
964
972
|
if (null === a) {
|
|
965
973
|
if (this.ea) {
|
|
966
|
-
throw new
|
|
974
|
+
throw new O(`null is not a valid ${this.name}`);
|
|
967
975
|
}
|
|
968
976
|
return 0;
|
|
969
977
|
}
|
|
970
978
|
if (!a.g) {
|
|
971
|
-
throw new
|
|
979
|
+
throw new O(`Cannot pass "${Rb(a)}" as a ${this.name}`);
|
|
972
980
|
}
|
|
973
981
|
if (!a.g.i) {
|
|
974
|
-
throw new
|
|
982
|
+
throw new O(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
975
983
|
}
|
|
976
|
-
return
|
|
984
|
+
return Pb(a.g.i, a.g.j.h, this.h);
|
|
977
985
|
}
|
|
978
|
-
function
|
|
986
|
+
function Sb(b, a) {
|
|
979
987
|
if (null === a) {
|
|
980
988
|
if (this.ea) {
|
|
981
|
-
throw new
|
|
989
|
+
throw new O(`null is not a valid ${this.name}`);
|
|
982
990
|
}
|
|
983
991
|
if (this.V) {
|
|
984
992
|
var c = this.fa();
|
|
@@ -988,25 +996,25 @@ function Pb(b, a) {
|
|
|
988
996
|
return 0;
|
|
989
997
|
}
|
|
990
998
|
if (!a || !a.g) {
|
|
991
|
-
throw new
|
|
999
|
+
throw new O(`Cannot pass "${Rb(a)}" as a ${this.name}`);
|
|
992
1000
|
}
|
|
993
1001
|
if (!a.g.i) {
|
|
994
|
-
throw new
|
|
1002
|
+
throw new O(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
995
1003
|
}
|
|
996
1004
|
if (!this.U && a.g.j.U) {
|
|
997
|
-
throw new
|
|
1005
|
+
throw new O(`Cannot convert argument of type ${a.g.A ? a.g.A.name : a.g.j.name} to parameter type ${this.name}`);
|
|
998
1006
|
}
|
|
999
|
-
c =
|
|
1007
|
+
c = Pb(a.g.i, a.g.j.h, this.h);
|
|
1000
1008
|
if (this.V) {
|
|
1001
1009
|
if (void 0 === a.g.s) {
|
|
1002
|
-
throw new
|
|
1010
|
+
throw new O("Passing raw pointer to smart pointer is illegal");
|
|
1003
1011
|
}
|
|
1004
1012
|
switch(this.gb) {
|
|
1005
1013
|
case 0:
|
|
1006
1014
|
if (a.g.A === this) {
|
|
1007
1015
|
c = a.g.s;
|
|
1008
1016
|
} else {
|
|
1009
|
-
throw new
|
|
1017
|
+
throw new O(`Cannot convert argument of type ${a.g.A ? a.g.A.name : a.g.j.name} to parameter type ${this.name}`);
|
|
1010
1018
|
}
|
|
1011
1019
|
break;
|
|
1012
1020
|
case 1:
|
|
@@ -1017,35 +1025,35 @@ function Pb(b, a) {
|
|
|
1017
1025
|
c = a.g.s;
|
|
1018
1026
|
} else {
|
|
1019
1027
|
var d = a.clone();
|
|
1020
|
-
c = this.bb(c,
|
|
1028
|
+
c = this.bb(c, bb(() => d["delete"]()));
|
|
1021
1029
|
null !== b && b.push(this.D, c);
|
|
1022
1030
|
}
|
|
1023
1031
|
break;
|
|
1024
1032
|
default:
|
|
1025
|
-
throw new
|
|
1033
|
+
throw new O("Unsupporting sharing policy");
|
|
1026
1034
|
}
|
|
1027
1035
|
}
|
|
1028
1036
|
return c;
|
|
1029
1037
|
}
|
|
1030
|
-
function
|
|
1038
|
+
function Tb(b, a) {
|
|
1031
1039
|
if (null === a) {
|
|
1032
1040
|
if (this.ea) {
|
|
1033
|
-
throw new
|
|
1041
|
+
throw new O(`null is not a valid ${this.name}`);
|
|
1034
1042
|
}
|
|
1035
1043
|
return 0;
|
|
1036
1044
|
}
|
|
1037
1045
|
if (!a.g) {
|
|
1038
|
-
throw new
|
|
1046
|
+
throw new O(`Cannot pass "${Rb(a)}" as a ${this.name}`);
|
|
1039
1047
|
}
|
|
1040
1048
|
if (!a.g.i) {
|
|
1041
|
-
throw new
|
|
1049
|
+
throw new O(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1042
1050
|
}
|
|
1043
1051
|
if (a.g.j.U) {
|
|
1044
|
-
throw new
|
|
1052
|
+
throw new O(`Cannot convert argument of type ${a.g.j.name} to parameter type ${this.name}`);
|
|
1045
1053
|
}
|
|
1046
|
-
return
|
|
1054
|
+
return Pb(a.g.i, a.g.j.h, this.h);
|
|
1047
1055
|
}
|
|
1048
|
-
function
|
|
1056
|
+
function Ub(b, a, c, d, e, f, m, h, l, n, r) {
|
|
1049
1057
|
this.name = b;
|
|
1050
1058
|
this.h = a;
|
|
1051
1059
|
this.ea = c;
|
|
@@ -1057,36 +1065,36 @@ function Rb(b, a, c, d, e, f, m, h, l, n, r) {
|
|
|
1057
1065
|
this.fa = l;
|
|
1058
1066
|
this.bb = n;
|
|
1059
1067
|
this.D = r;
|
|
1060
|
-
e || void 0 !== a.o ? this.toWireType =
|
|
1068
|
+
e || void 0 !== a.o ? this.toWireType = Sb : (this.toWireType = d ? Qb : Tb, this.B = null);
|
|
1061
1069
|
}
|
|
1062
|
-
var
|
|
1070
|
+
var Vb = (b, a, c) => {
|
|
1063
1071
|
if (!k.hasOwnProperty(b)) {
|
|
1064
|
-
throw new
|
|
1072
|
+
throw new zb("Replacing nonexistent public symbol");
|
|
1065
1073
|
}
|
|
1066
1074
|
void 0 !== k[b].l && void 0 !== c ? k[b].l[c] = a : (k[b] = a, k[b].L = c);
|
|
1067
|
-
},
|
|
1068
|
-
var a =
|
|
1069
|
-
a || (b >=
|
|
1075
|
+
}, Wb = [], Xb, Yb = b => {
|
|
1076
|
+
var a = Wb[b];
|
|
1077
|
+
a || (b >= Wb.length && (Wb.length = b + 1), Wb[b] = a = Xb.get(b));
|
|
1070
1078
|
return a;
|
|
1071
|
-
},
|
|
1072
|
-
b.includes("j") ? (b = b.replace(/p/g, "i"), a = (0,k["dynCall_" + b])(a, ...c)) : a =
|
|
1079
|
+
}, Zb = (b, a, c = []) => {
|
|
1080
|
+
b.includes("j") ? (b = b.replace(/p/g, "i"), a = (0,k["dynCall_" + b])(a, ...c)) : a = Yb(a)(...c);
|
|
1073
1081
|
return a;
|
|
1074
|
-
},
|
|
1075
|
-
b =
|
|
1076
|
-
var c = b.includes("j") ?
|
|
1082
|
+
}, $b = (b, a) => (...c) => Zb(b, a, c), Y = (b, a) => {
|
|
1083
|
+
b = S(b);
|
|
1084
|
+
var c = b.includes("j") ? $b(b, a) : Yb(a);
|
|
1077
1085
|
if ("function" != typeof c) {
|
|
1078
|
-
throw new
|
|
1086
|
+
throw new O(`unknown function pointer with signature ${b}: ${a}`);
|
|
1079
1087
|
}
|
|
1080
1088
|
return c;
|
|
1081
|
-
},
|
|
1089
|
+
}, ac, bc = (b, a) => {
|
|
1082
1090
|
function c(f) {
|
|
1083
|
-
e[f] ||
|
|
1091
|
+
e[f] || kb[f] || (Gb[f] ? Gb[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1084
1092
|
}
|
|
1085
1093
|
var d = [], e = {};
|
|
1086
1094
|
a.forEach(c);
|
|
1087
|
-
throw new
|
|
1095
|
+
throw new ac(`${b}: ` + d.map(nb).join([", "]));
|
|
1088
1096
|
};
|
|
1089
|
-
function
|
|
1097
|
+
function cc(b) {
|
|
1090
1098
|
for (var a = 1; a < b.length; ++a) {
|
|
1091
1099
|
if (null !== b[a] && void 0 === b[a].B) {
|
|
1092
1100
|
return !0;
|
|
@@ -1094,99 +1102,99 @@ function $b(b) {
|
|
|
1094
1102
|
}
|
|
1095
1103
|
return !1;
|
|
1096
1104
|
}
|
|
1097
|
-
function
|
|
1105
|
+
function dc(b, a, c, d, e) {
|
|
1098
1106
|
var f = a.length;
|
|
1099
1107
|
if (2 > f) {
|
|
1100
|
-
throw new
|
|
1108
|
+
throw new O("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1101
1109
|
}
|
|
1102
|
-
var m = null !== a[1] && null !== c, h =
|
|
1103
|
-
return
|
|
1110
|
+
var m = null !== a[1] && null !== c, h = cc(a), l = "void" !== a[0].name, n = f - 2, r = Array(n), w = [], z = [];
|
|
1111
|
+
return $a(b, function(...g) {
|
|
1104
1112
|
if (g.length !== n) {
|
|
1105
|
-
throw new
|
|
1113
|
+
throw new O(`function ${b} called with ${g.length} arguments, expected ${n}`);
|
|
1106
1114
|
}
|
|
1107
|
-
|
|
1115
|
+
z.length = 0;
|
|
1108
1116
|
w.length = m ? 2 : 1;
|
|
1109
1117
|
w[0] = e;
|
|
1110
1118
|
if (m) {
|
|
1111
|
-
var t = a[1].toWireType(
|
|
1119
|
+
var t = a[1].toWireType(z, this);
|
|
1112
1120
|
w[1] = t;
|
|
1113
1121
|
}
|
|
1114
1122
|
for (var q = 0; q < n; ++q) {
|
|
1115
|
-
r[q] = a[q + 2].toWireType(
|
|
1123
|
+
r[q] = a[q + 2].toWireType(z, g[q]), w.push(r[q]);
|
|
1116
1124
|
}
|
|
1117
1125
|
g = d(...w);
|
|
1118
1126
|
if (h) {
|
|
1119
|
-
|
|
1127
|
+
Db(z);
|
|
1120
1128
|
} else {
|
|
1121
1129
|
for (q = m ? 1 : 2; q < a.length; q++) {
|
|
1122
|
-
var
|
|
1123
|
-
null !== a[q].B && a[q].B(
|
|
1130
|
+
var G = 1 === q ? t : r[q - 2];
|
|
1131
|
+
null !== a[q].B && a[q].B(G);
|
|
1124
1132
|
}
|
|
1125
1133
|
}
|
|
1126
1134
|
t = l ? a[0].fromWireType(g) : void 0;
|
|
1127
1135
|
return t;
|
|
1128
1136
|
});
|
|
1129
1137
|
}
|
|
1130
|
-
var
|
|
1138
|
+
var ec = (b, a) => {
|
|
1131
1139
|
for (var c = [], d = 0; d < b; d++) {
|
|
1132
|
-
c.push(
|
|
1140
|
+
c.push(M[a + 4 * d >> 2]);
|
|
1133
1141
|
}
|
|
1134
1142
|
return c;
|
|
1135
|
-
},
|
|
1143
|
+
}, fc = b => {
|
|
1136
1144
|
b = b.trim();
|
|
1137
1145
|
const a = b.indexOf("(");
|
|
1138
1146
|
return -1 !== a ? b.substr(0, a) : b;
|
|
1139
|
-
},
|
|
1147
|
+
}, gc = (b, a, c) => {
|
|
1140
1148
|
if (!(b instanceof Object)) {
|
|
1141
|
-
throw new
|
|
1149
|
+
throw new O(`${c} with invalid "this": ${b}`);
|
|
1142
1150
|
}
|
|
1143
1151
|
if (!(b instanceof a.h.constructor)) {
|
|
1144
|
-
throw new
|
|
1152
|
+
throw new O(`${c} incompatible with "this" of type ${b.constructor.name}`);
|
|
1145
1153
|
}
|
|
1146
1154
|
if (!b.g.i) {
|
|
1147
|
-
throw new
|
|
1155
|
+
throw new O(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1148
1156
|
}
|
|
1149
|
-
return
|
|
1150
|
-
},
|
|
1151
|
-
9 < b && 0 === --
|
|
1152
|
-
},
|
|
1153
|
-
var a =
|
|
1154
|
-
|
|
1157
|
+
return Pb(b.g.i, b.g.j.h, a.h);
|
|
1158
|
+
}, hc = b => {
|
|
1159
|
+
9 < b && 0 === --N[b + 1] && (N[b] = void 0, ab.push(b));
|
|
1160
|
+
}, ic = {name:"emscripten::val", fromWireType:b => {
|
|
1161
|
+
var a = R(b);
|
|
1162
|
+
hc(b);
|
|
1155
1163
|
return a;
|
|
1156
|
-
}, toWireType:(b, a) =>
|
|
1164
|
+
}, toWireType:(b, a) => bb(a), argPackAdvance:8, readValueFromPointer:Eb, B:null,}, jc = (b, a, c) => {
|
|
1157
1165
|
switch(a) {
|
|
1158
1166
|
case 1:
|
|
1159
1167
|
return c ? function(d) {
|
|
1160
|
-
return this.fromWireType(
|
|
1168
|
+
return this.fromWireType(Ea[d]);
|
|
1161
1169
|
} : function(d) {
|
|
1162
1170
|
return this.fromWireType(J[d]);
|
|
1163
1171
|
};
|
|
1164
1172
|
case 2:
|
|
1165
1173
|
return c ? function(d) {
|
|
1166
|
-
return this.fromWireType(Ea[d >> 1]);
|
|
1167
|
-
} : function(d) {
|
|
1168
1174
|
return this.fromWireType(Fa[d >> 1]);
|
|
1175
|
+
} : function(d) {
|
|
1176
|
+
return this.fromWireType(Ga[d >> 1]);
|
|
1169
1177
|
};
|
|
1170
1178
|
case 4:
|
|
1171
1179
|
return c ? function(d) {
|
|
1172
1180
|
return this.fromWireType(K[d >> 2]);
|
|
1173
1181
|
} : function(d) {
|
|
1174
|
-
return this.fromWireType(
|
|
1182
|
+
return this.fromWireType(M[d >> 2]);
|
|
1175
1183
|
};
|
|
1176
1184
|
default:
|
|
1177
1185
|
throw new TypeError(`invalid integer width (${a}): ${b}`);
|
|
1178
1186
|
}
|
|
1179
|
-
},
|
|
1187
|
+
}, Rb = b => {
|
|
1180
1188
|
if (null === b) {
|
|
1181
1189
|
return "null";
|
|
1182
1190
|
}
|
|
1183
1191
|
var a = typeof b;
|
|
1184
1192
|
return "object" === a || "array" === a || "function" === a ? b.toString() : "" + b;
|
|
1185
|
-
},
|
|
1193
|
+
}, kc = (b, a) => {
|
|
1186
1194
|
switch(a) {
|
|
1187
1195
|
case 4:
|
|
1188
1196
|
return function(c) {
|
|
1189
|
-
return this.fromWireType(
|
|
1197
|
+
return this.fromWireType(Ha[c >> 2]);
|
|
1190
1198
|
};
|
|
1191
1199
|
case 8:
|
|
1192
1200
|
return function(c) {
|
|
@@ -1195,18 +1203,18 @@ var bc = (b, a) => {
|
|
|
1195
1203
|
default:
|
|
1196
1204
|
throw new TypeError(`invalid float width (${a}): ${b}`);
|
|
1197
1205
|
}
|
|
1198
|
-
},
|
|
1206
|
+
}, lc = (b, a, c) => {
|
|
1199
1207
|
switch(a) {
|
|
1200
1208
|
case 1:
|
|
1201
|
-
return c ? d =>
|
|
1209
|
+
return c ? d => Ea[d] : d => J[d];
|
|
1202
1210
|
case 2:
|
|
1203
|
-
return c ? d =>
|
|
1211
|
+
return c ? d => Fa[d >> 1] : d => Ga[d >> 1];
|
|
1204
1212
|
case 4:
|
|
1205
|
-
return c ? d => K[d >> 2] : d =>
|
|
1213
|
+
return c ? d => K[d >> 2] : d => M[d >> 2];
|
|
1206
1214
|
default:
|
|
1207
1215
|
throw new TypeError(`invalid integer width (${a}): ${b}`);
|
|
1208
1216
|
}
|
|
1209
|
-
},
|
|
1217
|
+
}, mc = (b, a, c, d) => {
|
|
1210
1218
|
if (0 < d) {
|
|
1211
1219
|
d = c + d - 1;
|
|
1212
1220
|
for (var e = 0; e < b.length; ++e) {
|
|
@@ -1246,19 +1254,19 @@ var bc = (b, a) => {
|
|
|
1246
1254
|
}
|
|
1247
1255
|
a[c] = 0;
|
|
1248
1256
|
}
|
|
1249
|
-
},
|
|
1257
|
+
}, nc = b => {
|
|
1250
1258
|
for (var a = 0, c = 0; c < b.length; ++c) {
|
|
1251
1259
|
var d = b.charCodeAt(c);
|
|
1252
1260
|
127 >= d ? a++ : 2047 >= d ? a += 2 : 55296 <= d && 57343 >= d ? (a += 4, ++c) : a += 3;
|
|
1253
1261
|
}
|
|
1254
1262
|
return a;
|
|
1255
|
-
},
|
|
1263
|
+
}, rc = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, sc = (b, a, c) => {
|
|
1256
1264
|
var d = a + c;
|
|
1257
1265
|
for (c = a; b[c] && !(c >= d);) {
|
|
1258
1266
|
++c;
|
|
1259
1267
|
}
|
|
1260
|
-
if (16 < c - a && b.buffer &&
|
|
1261
|
-
return
|
|
1268
|
+
if (16 < c - a && b.buffer && rc) {
|
|
1269
|
+
return rc.decode(b.subarray(a, c));
|
|
1262
1270
|
}
|
|
1263
1271
|
for (d = ""; a < c;) {
|
|
1264
1272
|
var e = b[a++];
|
|
@@ -1276,25 +1284,25 @@ var bc = (b, a) => {
|
|
|
1276
1284
|
}
|
|
1277
1285
|
}
|
|
1278
1286
|
return d;
|
|
1279
|
-
},
|
|
1287
|
+
}, tc = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, uc = (b, a) => {
|
|
1280
1288
|
var c = b >> 1;
|
|
1281
|
-
for (var d = c + a / 2; !(c >= d) &&
|
|
1289
|
+
for (var d = c + a / 2; !(c >= d) && Ga[c];) {
|
|
1282
1290
|
++c;
|
|
1283
1291
|
}
|
|
1284
1292
|
c <<= 1;
|
|
1285
|
-
if (32 < c - b &&
|
|
1286
|
-
return
|
|
1293
|
+
if (32 < c - b && tc) {
|
|
1294
|
+
return tc.decode(J.subarray(b, c));
|
|
1287
1295
|
}
|
|
1288
1296
|
c = "";
|
|
1289
1297
|
for (d = 0; !(d >= a / 2); ++d) {
|
|
1290
|
-
var e =
|
|
1298
|
+
var e = Fa[b + 2 * d >> 1];
|
|
1291
1299
|
if (0 == e) {
|
|
1292
1300
|
break;
|
|
1293
1301
|
}
|
|
1294
1302
|
c += String.fromCharCode(e);
|
|
1295
1303
|
}
|
|
1296
1304
|
return c;
|
|
1297
|
-
},
|
|
1305
|
+
}, vc = (b, a, c) => {
|
|
1298
1306
|
c ??= 2147483647;
|
|
1299
1307
|
if (2 > c) {
|
|
1300
1308
|
return 0;
|
|
@@ -1303,11 +1311,11 @@ var bc = (b, a) => {
|
|
|
1303
1311
|
var d = a;
|
|
1304
1312
|
c = c < 2 * b.length ? c / 2 : b.length;
|
|
1305
1313
|
for (var e = 0; e < c; ++e) {
|
|
1306
|
-
|
|
1314
|
+
Fa[a >> 1] = b.charCodeAt(e), a += 2;
|
|
1307
1315
|
}
|
|
1308
|
-
|
|
1316
|
+
Fa[a >> 1] = 0;
|
|
1309
1317
|
return a - d;
|
|
1310
|
-
},
|
|
1318
|
+
}, wc = b => 2 * b.length, xc = (b, a) => {
|
|
1311
1319
|
for (var c = 0, d = ""; !(c >= a / 4);) {
|
|
1312
1320
|
var e = K[b + 4 * c >> 2];
|
|
1313
1321
|
if (0 == e) {
|
|
@@ -1317,7 +1325,7 @@ var bc = (b, a) => {
|
|
|
1317
1325
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1318
1326
|
}
|
|
1319
1327
|
return d;
|
|
1320
|
-
},
|
|
1328
|
+
}, yc = (b, a, c) => {
|
|
1321
1329
|
c ??= 2147483647;
|
|
1322
1330
|
if (4 > c) {
|
|
1323
1331
|
return 0;
|
|
@@ -1338,50 +1346,50 @@ var bc = (b, a) => {
|
|
|
1338
1346
|
}
|
|
1339
1347
|
K[a >> 2] = 0;
|
|
1340
1348
|
return a - d;
|
|
1341
|
-
},
|
|
1349
|
+
}, zc = b => {
|
|
1342
1350
|
for (var a = 0, c = 0; c < b.length; ++c) {
|
|
1343
1351
|
var d = b.charCodeAt(c);
|
|
1344
1352
|
55296 <= d && 57343 >= d && ++c;
|
|
1345
1353
|
a += 4;
|
|
1346
1354
|
}
|
|
1347
1355
|
return a;
|
|
1348
|
-
},
|
|
1356
|
+
}, Ac = (b, a, c) => {
|
|
1349
1357
|
var d = [];
|
|
1350
1358
|
b = b.toWireType(d, c);
|
|
1351
|
-
d.length && (
|
|
1359
|
+
d.length && (M[a >> 2] = bb(d));
|
|
1352
1360
|
return b;
|
|
1353
|
-
},
|
|
1354
|
-
var a =
|
|
1355
|
-
return void 0 === a ?
|
|
1356
|
-
},
|
|
1357
|
-
var a =
|
|
1358
|
-
|
|
1361
|
+
}, Bc = {}, Cc = b => {
|
|
1362
|
+
var a = Bc[b];
|
|
1363
|
+
return void 0 === a ? S(b) : a;
|
|
1364
|
+
}, Dc = [], Ec = b => {
|
|
1365
|
+
var a = Dc.length;
|
|
1366
|
+
Dc.push(b);
|
|
1359
1367
|
return a;
|
|
1360
|
-
},
|
|
1368
|
+
}, Fc = (b, a) => {
|
|
1361
1369
|
for (var c = Array(b), d = 0; d < b; ++d) {
|
|
1362
|
-
c[d] =
|
|
1370
|
+
c[d] = ob(M[a + 4 * d >> 2], "parameter " + d);
|
|
1363
1371
|
}
|
|
1364
1372
|
return c;
|
|
1365
|
-
},
|
|
1366
|
-
if (!
|
|
1367
|
-
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", _:
|
|
1368
|
-
for (a in
|
|
1369
|
-
void 0 ===
|
|
1373
|
+
}, Gc = Reflect.construct, Hc = {}, Jc = () => {
|
|
1374
|
+
if (!Ic) {
|
|
1375
|
+
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", _:ta || "./this.program"}, a;
|
|
1376
|
+
for (a in Hc) {
|
|
1377
|
+
void 0 === Hc[a] ? delete b[a] : b[a] = Hc[a];
|
|
1370
1378
|
}
|
|
1371
1379
|
var c = [];
|
|
1372
1380
|
for (a in b) {
|
|
1373
1381
|
c.push(`${a}=${b[a]}`);
|
|
1374
1382
|
}
|
|
1375
|
-
|
|
1383
|
+
Ic = c;
|
|
1376
1384
|
}
|
|
1377
|
-
return
|
|
1378
|
-
},
|
|
1379
|
-
function
|
|
1380
|
-
var a = Array(
|
|
1381
|
-
|
|
1385
|
+
return Ic;
|
|
1386
|
+
}, Ic, Kc = [null, [], []], Lc = b => 0 === b % 4 && (0 !== b % 100 || 0 === b % 400), Mc = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Nc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1387
|
+
function Oc(b) {
|
|
1388
|
+
var a = Array(nc(b) + 1);
|
|
1389
|
+
mc(b, a, 0, a.length);
|
|
1382
1390
|
return a;
|
|
1383
1391
|
}
|
|
1384
|
-
var
|
|
1392
|
+
var Pc = (b, a, c, d) => {
|
|
1385
1393
|
function e(g, t, q) {
|
|
1386
1394
|
for (g = "number" == typeof g ? g.toString() : g || ""; g.length < t;) {
|
|
1387
1395
|
g = q[0] + g;
|
|
@@ -1392,12 +1400,12 @@ var Mc = (b, a, c, d) => {
|
|
|
1392
1400
|
return e(g, t, "0");
|
|
1393
1401
|
}
|
|
1394
1402
|
function m(g, t) {
|
|
1395
|
-
function q(
|
|
1396
|
-
return 0 >
|
|
1403
|
+
function q(F) {
|
|
1404
|
+
return 0 > F ? -1 : 0 < F ? 1 : 0;
|
|
1397
1405
|
}
|
|
1398
|
-
var
|
|
1399
|
-
0 === (
|
|
1400
|
-
return
|
|
1406
|
+
var G;
|
|
1407
|
+
0 === (G = q(g.getFullYear() - t.getFullYear())) && 0 === (G = q(g.getMonth() - t.getMonth())) && (G = q(g.getDate() - t.getDate()));
|
|
1408
|
+
return G;
|
|
1401
1409
|
}
|
|
1402
1410
|
function h(g) {
|
|
1403
1411
|
switch(g.getDay()) {
|
|
@@ -1420,9 +1428,9 @@ var Mc = (b, a, c, d) => {
|
|
|
1420
1428
|
function l(g) {
|
|
1421
1429
|
var t = g.J;
|
|
1422
1430
|
for (g = new Date((new Date(g.K + 1900, 0, 1)).getTime()); 0 < t;) {
|
|
1423
|
-
var q = g.getMonth(),
|
|
1424
|
-
if (t >
|
|
1425
|
-
t -=
|
|
1431
|
+
var q = g.getMonth(), G = (Lc(g.getFullYear()) ? Mc : Nc)[q];
|
|
1432
|
+
if (t > G - g.getDate()) {
|
|
1433
|
+
t -= G - g.getDate() + 1, g.setDate(1), 11 > q ? g.setMonth(q + 1) : (g.setMonth(0), g.setFullYear(g.getFullYear() + 1));
|
|
1426
1434
|
} else {
|
|
1427
1435
|
g.setDate(g.getDate() + t);
|
|
1428
1436
|
break;
|
|
@@ -1433,31 +1441,31 @@ var Mc = (b, a, c, d) => {
|
|
|
1433
1441
|
q = h(q);
|
|
1434
1442
|
return 0 >= m(t, g) ? 0 >= m(q, g) ? g.getFullYear() + 1 : g.getFullYear() : g.getFullYear() - 1;
|
|
1435
1443
|
}
|
|
1436
|
-
var n =
|
|
1437
|
-
d = {jb:K[d >> 2], ib:K[d + 4 >> 2], Z:K[d + 8 >> 2], ha:K[d + 12 >> 2], $:K[d + 16 >> 2], K:K[d + 20 >> 2], F:K[d + 24 >> 2], J:K[d + 28 >> 2], ob:K[d + 32 >> 2], hb:K[d + 36 >> 2], kb:n ? n ?
|
|
1438
|
-
c = c ?
|
|
1444
|
+
var n = M[d + 40 >> 2];
|
|
1445
|
+
d = {jb:K[d >> 2], ib:K[d + 4 >> 2], Z:K[d + 8 >> 2], ha:K[d + 12 >> 2], $:K[d + 16 >> 2], K:K[d + 20 >> 2], F:K[d + 24 >> 2], J:K[d + 28 >> 2], ob:K[d + 32 >> 2], hb:K[d + 36 >> 2], kb:n ? n ? sc(J, n) : "" : ""};
|
|
1446
|
+
c = c ? sc(J, c) : "";
|
|
1439
1447
|
n = {"%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",};
|
|
1440
1448
|
for (var r in n) {
|
|
1441
1449
|
c = c.replace(new RegExp(r, "g"), n[r]);
|
|
1442
1450
|
}
|
|
1443
|
-
var w = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
|
|
1444
|
-
n = {"%a":g => w[g.F].substring(0, 3), "%A":g => w[g.F], "%b":g =>
|
|
1451
|
+
var w = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), z = "January February March April May June July August September October November December".split(" ");
|
|
1452
|
+
n = {"%a":g => w[g.F].substring(0, 3), "%A":g => w[g.F], "%b":g => z[g.$].substring(0, 3), "%B":g => z[g.$], "%C":g => f((g.K + 1900) / 100 | 0, 2), "%d":g => f(g.ha, 2), "%e":g => e(g.ha, 2, " "), "%g":g => l(g).toString().substring(2), "%G":l, "%H":g => f(g.Z, 2), "%I":g => {
|
|
1445
1453
|
g = g.Z;
|
|
1446
1454
|
0 == g ? g = 12 : 12 < g && (g -= 12);
|
|
1447
1455
|
return f(g, 2);
|
|
1448
1456
|
}, "%j":g => {
|
|
1449
|
-
for (var t = 0, q = 0; q <= g.$ - 1; t += (
|
|
1457
|
+
for (var t = 0, q = 0; q <= g.$ - 1; t += (Lc(g.K + 1900) ? Mc : Nc)[q++]) {
|
|
1450
1458
|
}
|
|
1451
1459
|
return f(g.ha + t, 3);
|
|
1452
1460
|
}, "%m":g => f(g.$ + 1, 2), "%M":g => f(g.ib, 2), "%n":() => "\n", "%p":g => 0 <= g.Z && 12 > g.Z ? "AM" : "PM", "%S":g => f(g.jb, 2), "%t":() => "\t", "%u":g => g.F || 7, "%U":g => f(Math.floor((g.J + 7 - g.F) / 7), 2), "%V":g => {
|
|
1453
1461
|
var t = Math.floor((g.J + 7 - (g.F + 6) % 7) / 7);
|
|
1454
1462
|
2 >= (g.F + 371 - g.J - 2) % 7 && t++;
|
|
1455
1463
|
if (t) {
|
|
1456
|
-
53 == t && (q = (g.F + 371 - g.J) % 7, 4 == q || 3 == q &&
|
|
1464
|
+
53 == t && (q = (g.F + 371 - g.J) % 7, 4 == q || 3 == q && Lc(g.K) || (t = 1));
|
|
1457
1465
|
} else {
|
|
1458
1466
|
t = 52;
|
|
1459
1467
|
var q = (g.F + 7 - g.J - 1) % 7;
|
|
1460
|
-
(4 == q || 5 == q &&
|
|
1468
|
+
(4 == q || 5 == q && Lc(g.K % 400 - 1)) && t++;
|
|
1461
1469
|
}
|
|
1462
1470
|
return f(t, 2);
|
|
1463
1471
|
}, "%w":g => g.F, "%W":g => f(Math.floor((g.J + 7 - (g.F + 6) % 7) / 7), 2), "%y":g => (g.K + 1900).toString().substring(2), "%Y":g => g.K + 1900, "%z":g => {
|
|
@@ -1471,47 +1479,47 @@ var Mc = (b, a, c, d) => {
|
|
|
1471
1479
|
c.includes(r) && (c = c.replace(new RegExp(r, "g"), n[r](d)));
|
|
1472
1480
|
}
|
|
1473
1481
|
c = c.replace(/\0\0/g, "%");
|
|
1474
|
-
r =
|
|
1482
|
+
r = Oc(c);
|
|
1475
1483
|
if (r.length > a) {
|
|
1476
1484
|
return 0;
|
|
1477
1485
|
}
|
|
1478
|
-
|
|
1486
|
+
Ea.set(r, b);
|
|
1479
1487
|
return r.length - 1;
|
|
1480
1488
|
};
|
|
1481
|
-
|
|
1489
|
+
O = k.BindingError = class extends Error {
|
|
1482
1490
|
constructor(b) {
|
|
1483
1491
|
super(b);
|
|
1484
1492
|
this.name = "BindingError";
|
|
1485
1493
|
}
|
|
1486
1494
|
};
|
|
1487
|
-
|
|
1488
|
-
k.count_emval_handles = () =>
|
|
1489
|
-
|
|
1490
|
-
for (var
|
|
1491
|
-
|
|
1495
|
+
N.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
|
|
1496
|
+
k.count_emval_handles = () => N.length / 2 - 5 - ab.length;
|
|
1497
|
+
db = k.PureVirtualError = cb("PureVirtualError");
|
|
1498
|
+
for (var Qc = Array(256), Rc = 0; 256 > Rc; ++Rc) {
|
|
1499
|
+
Qc[Rc] = String.fromCharCode(Rc);
|
|
1492
1500
|
}
|
|
1493
|
-
|
|
1494
|
-
k.getInheritedInstanceCount = () => Object.keys(
|
|
1501
|
+
eb = Qc;
|
|
1502
|
+
k.getInheritedInstanceCount = () => Object.keys(ib).length;
|
|
1495
1503
|
k.getLiveInheritedInstances = () => {
|
|
1496
1504
|
var b = [], a;
|
|
1497
|
-
for (a in
|
|
1498
|
-
|
|
1505
|
+
for (a in ib) {
|
|
1506
|
+
ib.hasOwnProperty(a) && b.push(ib[a]);
|
|
1499
1507
|
}
|
|
1500
1508
|
return b;
|
|
1501
1509
|
};
|
|
1502
|
-
k.flushPendingDeletes =
|
|
1510
|
+
k.flushPendingDeletes = gb;
|
|
1503
1511
|
k.setDelayFunction = b => {
|
|
1504
|
-
|
|
1505
|
-
|
|
1512
|
+
hb = b;
|
|
1513
|
+
fb.length && hb && hb(gb);
|
|
1506
1514
|
};
|
|
1507
|
-
|
|
1515
|
+
zb = k.InternalError = class extends Error {
|
|
1508
1516
|
constructor(b) {
|
|
1509
1517
|
super(b);
|
|
1510
1518
|
this.name = "InternalError";
|
|
1511
1519
|
}
|
|
1512
1520
|
};
|
|
1513
|
-
Object.assign(
|
|
1514
|
-
if (!(this instanceof
|
|
1521
|
+
Object.assign(Kb.prototype, {isAliasOf:function(b) {
|
|
1522
|
+
if (!(this instanceof Kb && b instanceof Kb)) {
|
|
1515
1523
|
return !1;
|
|
1516
1524
|
}
|
|
1517
1525
|
var a = this.g.j.h, c = this.g.i;
|
|
@@ -1525,21 +1533,21 @@ Object.assign(Hb.prototype, {isAliasOf:function(b) {
|
|
|
1525
1533
|
}
|
|
1526
1534
|
return a === d && c === b;
|
|
1527
1535
|
}, clone:function() {
|
|
1528
|
-
this.g.i ||
|
|
1536
|
+
this.g.i || Jb(this);
|
|
1529
1537
|
if (this.g.O) {
|
|
1530
1538
|
return this.g.count.value += 1, this;
|
|
1531
1539
|
}
|
|
1532
|
-
var b =
|
|
1540
|
+
var b = Ab, a = Object, c = a.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
1533
1541
|
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,},}}));
|
|
1534
1542
|
b.g.count.value += 1;
|
|
1535
1543
|
b.g.M = !1;
|
|
1536
1544
|
return b;
|
|
1537
1545
|
}, ["delete"]() {
|
|
1538
|
-
this.g.i ||
|
|
1546
|
+
this.g.i || Jb(this);
|
|
1539
1547
|
if (this.g.M && !this.g.O) {
|
|
1540
|
-
throw new
|
|
1548
|
+
throw new O("Object already scheduled for deletion");
|
|
1541
1549
|
}
|
|
1542
|
-
|
|
1550
|
+
pb(this);
|
|
1543
1551
|
var b = this.g;
|
|
1544
1552
|
--b.count.value;
|
|
1545
1553
|
0 === b.count.value && (b.s ? b.A.D(b.s) : b.j.h.D(b.i));
|
|
@@ -1547,29 +1555,29 @@ Object.assign(Hb.prototype, {isAliasOf:function(b) {
|
|
|
1547
1555
|
}, isDeleted:function() {
|
|
1548
1556
|
return !this.g.i;
|
|
1549
1557
|
}, deleteLater:function() {
|
|
1550
|
-
this.g.i ||
|
|
1558
|
+
this.g.i || Jb(this);
|
|
1551
1559
|
if (this.g.M && !this.g.O) {
|
|
1552
|
-
throw new
|
|
1560
|
+
throw new O("Object already scheduled for deletion");
|
|
1553
1561
|
}
|
|
1554
|
-
|
|
1555
|
-
1 ===
|
|
1562
|
+
fb.push(this);
|
|
1563
|
+
1 === fb.length && hb && hb(gb);
|
|
1556
1564
|
this.g.M = !0;
|
|
1557
1565
|
return this;
|
|
1558
1566
|
},});
|
|
1559
|
-
Object.assign(
|
|
1567
|
+
Object.assign(Ub.prototype, {Ra(b) {
|
|
1560
1568
|
this.xa && (b = this.xa(b));
|
|
1561
1569
|
return b;
|
|
1562
1570
|
}, pa(b) {
|
|
1563
1571
|
this.D?.(b);
|
|
1564
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1572
|
+
}, argPackAdvance:8, readValueFromPointer:Eb, fromWireType:function(b) {
|
|
1565
1573
|
function a() {
|
|
1566
|
-
return this.V ?
|
|
1574
|
+
return this.V ? Bb(this.h.C, {j:this.ab, i:c, A:this, s:b,}) : Bb(this.h.C, {j:this, i:b,});
|
|
1567
1575
|
}
|
|
1568
1576
|
var c = this.Ra(b);
|
|
1569
1577
|
if (!c) {
|
|
1570
1578
|
return this.pa(b), null;
|
|
1571
1579
|
}
|
|
1572
|
-
var d =
|
|
1580
|
+
var d = tb(this.h, c);
|
|
1573
1581
|
if (void 0 !== d) {
|
|
1574
1582
|
if (0 === d.g.count.value) {
|
|
1575
1583
|
return d.g.i = c, d.g.s = b, d.clone();
|
|
@@ -1579,26 +1587,26 @@ Object.assign(Rb.prototype, {Ra(b) {
|
|
|
1579
1587
|
return d;
|
|
1580
1588
|
}
|
|
1581
1589
|
d = this.h.Qa(c);
|
|
1582
|
-
d =
|
|
1590
|
+
d = sb[d];
|
|
1583
1591
|
if (!d) {
|
|
1584
1592
|
return a.call(this);
|
|
1585
1593
|
}
|
|
1586
1594
|
d = this.U ? d.Ha : d.pointerType;
|
|
1587
|
-
var e =
|
|
1588
|
-
return null === e ? a.call(this) : this.V ?
|
|
1595
|
+
var e = rb(c, this.h, d.h);
|
|
1596
|
+
return null === e ? a.call(this) : this.V ? Bb(d.h.C, {j:d, i:e, A:this, s:b,}) : Bb(d.h.C, {j:d, i:e,});
|
|
1589
1597
|
},});
|
|
1590
|
-
|
|
1591
|
-
var
|
|
1598
|
+
ac = k.UnboundTypeError = cb("UnboundTypeError");
|
|
1599
|
+
var Tc = {_abort_js:() => {
|
|
1592
1600
|
Ra("");
|
|
1593
1601
|
}, _embind_create_inheriting_constructor:(b, a, c) => {
|
|
1594
|
-
b =
|
|
1595
|
-
a =
|
|
1596
|
-
c =
|
|
1602
|
+
b = S(b);
|
|
1603
|
+
a = ob(a, "wrapper");
|
|
1604
|
+
c = R(c);
|
|
1597
1605
|
var d = a.h, e = d.C, f = d.o.C, m = d.o.constructor;
|
|
1598
|
-
b =
|
|
1606
|
+
b = $a(b, function(...h) {
|
|
1599
1607
|
d.o.wa.forEach(function(l) {
|
|
1600
1608
|
if (this[l] === f[l]) {
|
|
1601
|
-
throw new
|
|
1609
|
+
throw new db(`Pure virtual function ${l} must be implemented in JavaScript`);
|
|
1602
1610
|
}
|
|
1603
1611
|
}.bind(this));
|
|
1604
1612
|
Object.defineProperty(this, "__parent", {value:e});
|
|
@@ -1606,50 +1614,50 @@ var Qc = {_abort_js:() => {
|
|
|
1606
1614
|
});
|
|
1607
1615
|
e.__construct = function(...h) {
|
|
1608
1616
|
if (this === e) {
|
|
1609
|
-
throw new
|
|
1617
|
+
throw new O("Pass correct 'this' to __construct");
|
|
1610
1618
|
}
|
|
1611
1619
|
h = m.implement(this, ...h);
|
|
1612
|
-
|
|
1620
|
+
pb(h);
|
|
1613
1621
|
var l = h.g;
|
|
1614
1622
|
h.notifyOnDestruction();
|
|
1615
1623
|
l.O = !0;
|
|
1616
1624
|
Object.defineProperties(this, {g:{value:l}});
|
|
1617
|
-
|
|
1625
|
+
Ab(this);
|
|
1618
1626
|
h = l.i;
|
|
1619
|
-
h =
|
|
1620
|
-
if (
|
|
1621
|
-
throw new
|
|
1627
|
+
h = jb(d, h);
|
|
1628
|
+
if (ib.hasOwnProperty(h)) {
|
|
1629
|
+
throw new O(`Tried to register registered instance: ${h}`);
|
|
1622
1630
|
}
|
|
1623
|
-
|
|
1631
|
+
ib[h] = this;
|
|
1624
1632
|
};
|
|
1625
1633
|
e.__destruct = function() {
|
|
1626
1634
|
if (this === e) {
|
|
1627
|
-
throw new
|
|
1635
|
+
throw new O("Pass correct 'this' to __destruct");
|
|
1628
1636
|
}
|
|
1629
|
-
|
|
1637
|
+
pb(this);
|
|
1630
1638
|
var h = this.g.i;
|
|
1631
|
-
h =
|
|
1632
|
-
if (
|
|
1633
|
-
delete
|
|
1639
|
+
h = jb(d, h);
|
|
1640
|
+
if (ib.hasOwnProperty(h)) {
|
|
1641
|
+
delete ib[h];
|
|
1634
1642
|
} else {
|
|
1635
|
-
throw new
|
|
1643
|
+
throw new O(`Tried to unregister unregistered instance: ${h}`);
|
|
1636
1644
|
}
|
|
1637
1645
|
};
|
|
1638
1646
|
b.prototype = Object.create(e);
|
|
1639
1647
|
Object.assign(b.prototype, c);
|
|
1640
|
-
return
|
|
1648
|
+
return bb(b);
|
|
1641
1649
|
}, _embind_finalize_value_object:b => {
|
|
1642
|
-
var a =
|
|
1643
|
-
delete
|
|
1650
|
+
var a = Cb[b];
|
|
1651
|
+
delete Cb[b];
|
|
1644
1652
|
var c = a.fa, d = a.D, e = a.sa, f = e.map(m => m.Ua).concat(e.map(m => m.eb));
|
|
1645
1653
|
X([b], f, m => {
|
|
1646
1654
|
var h = {};
|
|
1647
1655
|
e.forEach((l, n) => {
|
|
1648
|
-
var r = m[n], w = l.Sa,
|
|
1649
|
-
h[l.Oa] = {read:
|
|
1656
|
+
var r = m[n], w = l.Sa, z = l.Ta, g = m[n + e.length], t = l.cb, q = l.fb;
|
|
1657
|
+
h[l.Oa] = {read:G => r.fromWireType(w(z, G)), write:(G, F) => {
|
|
1650
1658
|
var v = [];
|
|
1651
|
-
t(q,
|
|
1652
|
-
|
|
1659
|
+
t(q, G, g.toWireType(v, F));
|
|
1660
|
+
Db(v);
|
|
1653
1661
|
}};
|
|
1654
1662
|
});
|
|
1655
1663
|
return [{name:a.name, fromWireType:l => {
|
|
@@ -1671,84 +1679,84 @@ var Qc = {_abort_js:() => {
|
|
|
1671
1679
|
}
|
|
1672
1680
|
null !== l && l.push(d, w);
|
|
1673
1681
|
return w;
|
|
1674
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1682
|
+
}, argPackAdvance:8, readValueFromPointer:Eb, B:d,}];
|
|
1675
1683
|
});
|
|
1676
1684
|
}, _embind_register_bigint:() => {
|
|
1677
1685
|
}, _embind_register_bool:(b, a, c, d) => {
|
|
1678
|
-
a =
|
|
1679
|
-
|
|
1686
|
+
a = S(a);
|
|
1687
|
+
Hb(b, {name:a, fromWireType:function(e) {
|
|
1680
1688
|
return !!e;
|
|
1681
1689
|
}, toWireType:function(e, f) {
|
|
1682
1690
|
return f ? c : d;
|
|
1683
1691
|
}, argPackAdvance:8, readValueFromPointer:function(e) {
|
|
1684
1692
|
return this.fromWireType(J[e]);
|
|
1685
1693
|
}, B:null,});
|
|
1686
|
-
}, _embind_register_class:(b, a, c, d, e, f, m, h, l, n, r, w,
|
|
1687
|
-
r =
|
|
1694
|
+
}, _embind_register_class:(b, a, c, d, e, f, m, h, l, n, r, w, z) => {
|
|
1695
|
+
r = S(r);
|
|
1688
1696
|
f = Y(e, f);
|
|
1689
1697
|
h &&= Y(m, h);
|
|
1690
1698
|
n &&= Y(l, n);
|
|
1691
|
-
|
|
1692
|
-
var g =
|
|
1693
|
-
|
|
1694
|
-
|
|
1699
|
+
z = Y(w, z);
|
|
1700
|
+
var g = Nb(r);
|
|
1701
|
+
Mb(g, function() {
|
|
1702
|
+
bc(`Cannot construct ${r} due to unbound types`, [d]);
|
|
1695
1703
|
});
|
|
1696
1704
|
X([b, a, c], d ? [d] : [], t => {
|
|
1697
1705
|
t = t[0];
|
|
1698
1706
|
if (d) {
|
|
1699
1707
|
var q = t.h;
|
|
1700
|
-
var
|
|
1708
|
+
var G = q.C;
|
|
1701
1709
|
} else {
|
|
1702
|
-
|
|
1710
|
+
G = Kb.prototype;
|
|
1703
1711
|
}
|
|
1704
|
-
t =
|
|
1705
|
-
if (Object.getPrototypeOf(this) !==
|
|
1706
|
-
throw new
|
|
1712
|
+
t = $a(r, function(...L) {
|
|
1713
|
+
if (Object.getPrototypeOf(this) !== F) {
|
|
1714
|
+
throw new O("Use 'new' to construct " + r);
|
|
1707
1715
|
}
|
|
1708
1716
|
if (void 0 === v.I) {
|
|
1709
|
-
throw new
|
|
1717
|
+
throw new O(r + " has no accessible constructor");
|
|
1710
1718
|
}
|
|
1711
|
-
var
|
|
1712
|
-
if (void 0 ===
|
|
1713
|
-
throw new
|
|
1719
|
+
var Q = v.I[L.length];
|
|
1720
|
+
if (void 0 === Q) {
|
|
1721
|
+
throw new O(`Tried to invoke ctor of ${r} with invalid number of parameters (${L.length}) - expected (${Object.keys(v.I).toString()}) parameters instead!`);
|
|
1714
1722
|
}
|
|
1715
|
-
return
|
|
1723
|
+
return Q.apply(this, L);
|
|
1716
1724
|
});
|
|
1717
|
-
var
|
|
1718
|
-
t.prototype =
|
|
1719
|
-
var v = new
|
|
1725
|
+
var F = Object.create(G, {constructor:{value:t},});
|
|
1726
|
+
t.prototype = F;
|
|
1727
|
+
var v = new Ob(r, t, F, z, q, f, h, n);
|
|
1720
1728
|
if (v.o) {
|
|
1721
|
-
var
|
|
1722
|
-
(
|
|
1729
|
+
var H;
|
|
1730
|
+
(H = v.o).T ?? (H.T = []);
|
|
1723
1731
|
v.o.T.push(v);
|
|
1724
1732
|
}
|
|
1725
|
-
q = new
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
return [q,
|
|
1733
|
+
q = new Ub(r, v, !0, !1, !1);
|
|
1734
|
+
H = new Ub(r + "*", v, !1, !1, !1);
|
|
1735
|
+
G = new Ub(r + " const*", v, !1, !0, !1);
|
|
1736
|
+
sb[b] = {pointerType:H, Ha:G};
|
|
1737
|
+
Vb(g, t);
|
|
1738
|
+
return [q, H, G];
|
|
1731
1739
|
});
|
|
1732
1740
|
}, _embind_register_class_class_function:(b, a, c, d, e, f, m) => {
|
|
1733
|
-
var h =
|
|
1734
|
-
a =
|
|
1735
|
-
a =
|
|
1741
|
+
var h = ec(c, d);
|
|
1742
|
+
a = S(a);
|
|
1743
|
+
a = fc(a);
|
|
1736
1744
|
f = Y(e, f);
|
|
1737
1745
|
X([], [b], l => {
|
|
1738
1746
|
function n() {
|
|
1739
|
-
|
|
1747
|
+
bc(`Cannot call ${r} due to unbound types`, h);
|
|
1740
1748
|
}
|
|
1741
1749
|
l = l[0];
|
|
1742
1750
|
var r = `${l.name}.${a}`;
|
|
1743
1751
|
a.startsWith("@@") && (a = Symbol[a.substring(2)]);
|
|
1744
1752
|
var w = l.h.constructor;
|
|
1745
|
-
void 0 === w[a] ? (n.L = c - 1, w[a] = n) : (
|
|
1746
|
-
X([], h,
|
|
1747
|
-
|
|
1748
|
-
void 0 === w[a].l ? (
|
|
1753
|
+
void 0 === w[a] ? (n.L = c - 1, w[a] = n) : (Lb(w, a, r), w[a].l[c - 1] = n);
|
|
1754
|
+
X([], h, z => {
|
|
1755
|
+
z = dc(r, [z[0], null].concat(z.slice(1)), null, f, m);
|
|
1756
|
+
void 0 === w[a].l ? (z.L = c - 1, w[a] = z) : w[a].l[c - 1] = z;
|
|
1749
1757
|
if (l.h.T) {
|
|
1750
1758
|
for (const g of l.h.T) {
|
|
1751
|
-
g.constructor.hasOwnProperty(a) || (g.constructor[a] =
|
|
1759
|
+
g.constructor.hasOwnProperty(a) || (g.constructor[a] = z);
|
|
1752
1760
|
}
|
|
1753
1761
|
}
|
|
1754
1762
|
return [];
|
|
@@ -1756,100 +1764,100 @@ var Qc = {_abort_js:() => {
|
|
|
1756
1764
|
return [];
|
|
1757
1765
|
});
|
|
1758
1766
|
}, _embind_register_class_class_property:(b, a, c, d, e, f, m, h) => {
|
|
1759
|
-
a =
|
|
1767
|
+
a = S(a);
|
|
1760
1768
|
f = Y(e, f);
|
|
1761
1769
|
X([], [b], l => {
|
|
1762
1770
|
l = l[0];
|
|
1763
1771
|
var n = `${l.name}.${a}`, r = {get() {
|
|
1764
|
-
|
|
1772
|
+
bc(`Cannot access ${n} due to unbound types`, [c]);
|
|
1765
1773
|
}, enumerable:!0, configurable:!0};
|
|
1766
1774
|
r.set = h ? () => {
|
|
1767
|
-
|
|
1775
|
+
bc(`Cannot access ${n} due to unbound types`, [c]);
|
|
1768
1776
|
} : () => {
|
|
1769
|
-
throw new
|
|
1777
|
+
throw new O(`${n} is a read-only property`);
|
|
1770
1778
|
};
|
|
1771
1779
|
Object.defineProperty(l.h.constructor, a, r);
|
|
1772
1780
|
X([], [c], w => {
|
|
1773
1781
|
w = w[0];
|
|
1774
|
-
var
|
|
1782
|
+
var z = {get() {
|
|
1775
1783
|
return w.fromWireType(f(d));
|
|
1776
1784
|
}, enumerable:!0};
|
|
1777
|
-
h && (h = Y(m, h),
|
|
1785
|
+
h && (h = Y(m, h), z.set = g => {
|
|
1778
1786
|
var t = [];
|
|
1779
1787
|
h(d, w.toWireType(t, g));
|
|
1780
|
-
|
|
1788
|
+
Db(t);
|
|
1781
1789
|
});
|
|
1782
|
-
Object.defineProperty(l.h.constructor, a,
|
|
1790
|
+
Object.defineProperty(l.h.constructor, a, z);
|
|
1783
1791
|
return [];
|
|
1784
1792
|
});
|
|
1785
1793
|
return [];
|
|
1786
1794
|
});
|
|
1787
1795
|
}, _embind_register_class_constructor:(b, a, c, d, e, f) => {
|
|
1788
|
-
var m =
|
|
1796
|
+
var m = ec(a, c);
|
|
1789
1797
|
e = Y(d, e);
|
|
1790
1798
|
X([], [b], h => {
|
|
1791
1799
|
h = h[0];
|
|
1792
1800
|
var l = `constructor ${h.name}`;
|
|
1793
1801
|
void 0 === h.h.I && (h.h.I = []);
|
|
1794
1802
|
if (void 0 !== h.h.I[a - 1]) {
|
|
1795
|
-
throw new
|
|
1803
|
+
throw new O(`Cannot register multiple constructors with identical number of parameters (${a - 1}) for class '${h.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
1796
1804
|
}
|
|
1797
1805
|
h.h.I[a - 1] = () => {
|
|
1798
|
-
|
|
1806
|
+
bc(`Cannot construct ${h.name} due to unbound types`, m);
|
|
1799
1807
|
};
|
|
1800
1808
|
X([], m, n => {
|
|
1801
1809
|
n.splice(1, 0, null);
|
|
1802
|
-
h.h.I[a - 1] =
|
|
1810
|
+
h.h.I[a - 1] = dc(l, n, null, e, f);
|
|
1803
1811
|
return [];
|
|
1804
1812
|
});
|
|
1805
1813
|
return [];
|
|
1806
1814
|
});
|
|
1807
1815
|
}, _embind_register_class_function:(b, a, c, d, e, f, m, h) => {
|
|
1808
|
-
var l =
|
|
1809
|
-
a =
|
|
1810
|
-
a =
|
|
1816
|
+
var l = ec(c, d);
|
|
1817
|
+
a = S(a);
|
|
1818
|
+
a = fc(a);
|
|
1811
1819
|
f = Y(e, f);
|
|
1812
1820
|
X([], [b], n => {
|
|
1813
1821
|
function r() {
|
|
1814
|
-
|
|
1822
|
+
bc(`Cannot call ${w} due to unbound types`, l);
|
|
1815
1823
|
}
|
|
1816
1824
|
n = n[0];
|
|
1817
1825
|
var w = `${n.name}.${a}`;
|
|
1818
1826
|
a.startsWith("@@") && (a = Symbol[a.substring(2)]);
|
|
1819
1827
|
h && n.h.wa.push(a);
|
|
1820
|
-
var
|
|
1821
|
-
void 0 === g || void 0 === g.l && g.className !== n.name && g.L === c - 2 ? (r.L = c - 2, r.className = n.name,
|
|
1828
|
+
var z = n.h.C, g = z[a];
|
|
1829
|
+
void 0 === g || void 0 === g.l && g.className !== n.name && g.L === c - 2 ? (r.L = c - 2, r.className = n.name, z[a] = r) : (Lb(z, a, w), z[a].l[c - 2] = r);
|
|
1822
1830
|
X([], l, t => {
|
|
1823
|
-
t =
|
|
1824
|
-
void 0 ===
|
|
1831
|
+
t = dc(w, t, n, f, m);
|
|
1832
|
+
void 0 === z[a].l ? (t.L = c - 2, z[a] = t) : z[a].l[c - 2] = t;
|
|
1825
1833
|
return [];
|
|
1826
1834
|
});
|
|
1827
1835
|
return [];
|
|
1828
1836
|
});
|
|
1829
1837
|
}, _embind_register_class_property:(b, a, c, d, e, f, m, h, l, n) => {
|
|
1830
|
-
a =
|
|
1838
|
+
a = S(a);
|
|
1831
1839
|
e = Y(d, e);
|
|
1832
1840
|
X([], [b], r => {
|
|
1833
1841
|
r = r[0];
|
|
1834
|
-
var w = `${r.name}.${a}`,
|
|
1835
|
-
|
|
1842
|
+
var w = `${r.name}.${a}`, z = {get() {
|
|
1843
|
+
bc(`Cannot access ${w} due to unbound types`, [c, m]);
|
|
1836
1844
|
}, enumerable:!0, configurable:!0};
|
|
1837
|
-
|
|
1838
|
-
throw new
|
|
1845
|
+
z.set = l ? () => bc(`Cannot access ${w} due to unbound types`, [c, m]) : () => {
|
|
1846
|
+
throw new O(w + " is a read-only property");
|
|
1839
1847
|
};
|
|
1840
|
-
Object.defineProperty(r.h.C, a,
|
|
1848
|
+
Object.defineProperty(r.h.C, a, z);
|
|
1841
1849
|
X([], l ? [c, m] : [c], g => {
|
|
1842
1850
|
var t = g[0], q = {get() {
|
|
1843
|
-
var
|
|
1844
|
-
return t.fromWireType(e(f,
|
|
1851
|
+
var F = gc(this, r, w + " getter");
|
|
1852
|
+
return t.fromWireType(e(f, F));
|
|
1845
1853
|
}, enumerable:!0};
|
|
1846
1854
|
if (l) {
|
|
1847
1855
|
l = Y(h, l);
|
|
1848
|
-
var
|
|
1849
|
-
q.set = function(
|
|
1850
|
-
var v =
|
|
1851
|
-
l(n, v,
|
|
1852
|
-
|
|
1856
|
+
var G = g[1];
|
|
1857
|
+
q.set = function(F) {
|
|
1858
|
+
var v = gc(this, r, w + " setter"), H = [];
|
|
1859
|
+
l(n, v, G.toWireType(H, F));
|
|
1860
|
+
Db(H);
|
|
1853
1861
|
};
|
|
1854
1862
|
}
|
|
1855
1863
|
Object.defineProperty(r.h.C, a, q);
|
|
@@ -1857,40 +1865,40 @@ var Qc = {_abort_js:() => {
|
|
|
1857
1865
|
});
|
|
1858
1866
|
return [];
|
|
1859
1867
|
});
|
|
1860
|
-
}, _embind_register_emval:b =>
|
|
1868
|
+
}, _embind_register_emval:b => Hb(b, ic), _embind_register_enum:(b, a, c, d) => {
|
|
1861
1869
|
function e() {
|
|
1862
1870
|
}
|
|
1863
|
-
a =
|
|
1871
|
+
a = S(a);
|
|
1864
1872
|
e.values = {};
|
|
1865
|
-
|
|
1873
|
+
Hb(b, {name:a, constructor:e, fromWireType:function(f) {
|
|
1866
1874
|
return this.constructor.values[f];
|
|
1867
|
-
}, toWireType:(f, m) => m.value, argPackAdvance:8, readValueFromPointer:
|
|
1868
|
-
|
|
1875
|
+
}, toWireType:(f, m) => m.value, argPackAdvance:8, readValueFromPointer:jc(a, c, d), B:null,});
|
|
1876
|
+
Mb(a, e);
|
|
1869
1877
|
}, _embind_register_enum_value:(b, a, c) => {
|
|
1870
|
-
var d =
|
|
1871
|
-
a =
|
|
1878
|
+
var d = ob(b, "enum");
|
|
1879
|
+
a = S(a);
|
|
1872
1880
|
b = d.constructor;
|
|
1873
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value
|
|
1881
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:$a(`${d.name}_${a}`, function() {
|
|
1874
1882
|
})},});
|
|
1875
1883
|
b.values[c] = d;
|
|
1876
1884
|
b[a] = d;
|
|
1877
1885
|
}, _embind_register_float:(b, a, c) => {
|
|
1878
|
-
a =
|
|
1879
|
-
|
|
1886
|
+
a = S(a);
|
|
1887
|
+
Hb(b, {name:a, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:kc(a, c), B:null,});
|
|
1880
1888
|
}, _embind_register_function:(b, a, c, d, e, f) => {
|
|
1881
|
-
var m =
|
|
1882
|
-
b =
|
|
1883
|
-
b =
|
|
1889
|
+
var m = ec(a, c);
|
|
1890
|
+
b = S(b);
|
|
1891
|
+
b = fc(b);
|
|
1884
1892
|
e = Y(d, e);
|
|
1885
|
-
|
|
1886
|
-
|
|
1893
|
+
Mb(b, function() {
|
|
1894
|
+
bc(`Cannot call ${b} due to unbound types`, m);
|
|
1887
1895
|
}, a - 1);
|
|
1888
1896
|
X([], m, h => {
|
|
1889
|
-
|
|
1897
|
+
Vb(b, dc(b, [h[0], null].concat(h.slice(1)), null, e, f), a - 1);
|
|
1890
1898
|
return [];
|
|
1891
1899
|
});
|
|
1892
1900
|
}, _embind_register_integer:(b, a, c, d, e) => {
|
|
1893
|
-
a =
|
|
1901
|
+
a = S(a);
|
|
1894
1902
|
-1 === e && (e = 4294967295);
|
|
1895
1903
|
e = h => h;
|
|
1896
1904
|
if (0 === d) {
|
|
@@ -1902,24 +1910,24 @@ var Qc = {_abort_js:() => {
|
|
|
1902
1910
|
} : function(h, l) {
|
|
1903
1911
|
return l;
|
|
1904
1912
|
};
|
|
1905
|
-
|
|
1913
|
+
Hb(b, {name:a, fromWireType:e, toWireType:m, argPackAdvance:8, readValueFromPointer:lc(a, c, 0 !== d), B:null,});
|
|
1906
1914
|
}, _embind_register_memory_view:(b, a, c) => {
|
|
1907
1915
|
function d(f) {
|
|
1908
|
-
return new e(
|
|
1916
|
+
return new e(Ea.buffer, M[f + 4 >> 2], M[f >> 2]);
|
|
1909
1917
|
}
|
|
1910
1918
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][a];
|
|
1911
|
-
c =
|
|
1912
|
-
|
|
1919
|
+
c = S(c);
|
|
1920
|
+
Hb(b, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Va:!0,});
|
|
1913
1921
|
}, _embind_register_std_string:(b, a) => {
|
|
1914
|
-
a =
|
|
1922
|
+
a = S(a);
|
|
1915
1923
|
var c = "std::string" === a;
|
|
1916
|
-
|
|
1917
|
-
var e =
|
|
1924
|
+
Hb(b, {name:a, fromWireType:function(d) {
|
|
1925
|
+
var e = M[d >> 2], f = d + 4;
|
|
1918
1926
|
if (c) {
|
|
1919
1927
|
for (var m = f, h = 0; h <= e; ++h) {
|
|
1920
1928
|
var l = f + h;
|
|
1921
1929
|
if (h == e || 0 == J[l]) {
|
|
1922
|
-
m = m ?
|
|
1930
|
+
m = m ? sc(J, m, l - m) : "";
|
|
1923
1931
|
if (void 0 === n) {
|
|
1924
1932
|
var n = m;
|
|
1925
1933
|
} else {
|
|
@@ -1935,25 +1943,25 @@ var Qc = {_abort_js:() => {
|
|
|
1935
1943
|
}
|
|
1936
1944
|
n = n.join("");
|
|
1937
1945
|
}
|
|
1938
|
-
|
|
1946
|
+
mb(d);
|
|
1939
1947
|
return n;
|
|
1940
1948
|
}, toWireType:function(d, e) {
|
|
1941
1949
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
1942
1950
|
var f = "string" == typeof e;
|
|
1943
1951
|
if (!(f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array)) {
|
|
1944
|
-
throw new
|
|
1952
|
+
throw new O("Cannot pass non-string to std::string");
|
|
1945
1953
|
}
|
|
1946
|
-
var m = c && f ?
|
|
1947
|
-
var h =
|
|
1948
|
-
|
|
1954
|
+
var m = c && f ? nc(e) : e.length;
|
|
1955
|
+
var h = Sc(4 + m + 1), l = h + 4;
|
|
1956
|
+
M[h >> 2] = m;
|
|
1949
1957
|
if (c && f) {
|
|
1950
|
-
|
|
1958
|
+
mc(e, J, l, m + 1);
|
|
1951
1959
|
} else {
|
|
1952
1960
|
if (f) {
|
|
1953
1961
|
for (f = 0; f < m; ++f) {
|
|
1954
1962
|
var n = e.charCodeAt(f);
|
|
1955
1963
|
if (255 < n) {
|
|
1956
|
-
throw
|
|
1964
|
+
throw mb(l), new O("String has UTF-16 code units that do not fit in 8 bits");
|
|
1957
1965
|
}
|
|
1958
1966
|
J[l + f] = n;
|
|
1959
1967
|
}
|
|
@@ -1963,94 +1971,94 @@ var Qc = {_abort_js:() => {
|
|
|
1963
1971
|
}
|
|
1964
1972
|
}
|
|
1965
1973
|
}
|
|
1966
|
-
null !== d && d.push(
|
|
1974
|
+
null !== d && d.push(mb, h);
|
|
1967
1975
|
return h;
|
|
1968
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1969
|
-
|
|
1976
|
+
}, argPackAdvance:8, readValueFromPointer:Eb, B(d) {
|
|
1977
|
+
mb(d);
|
|
1970
1978
|
},});
|
|
1971
1979
|
}, _embind_register_std_wstring:(b, a, c) => {
|
|
1972
|
-
c =
|
|
1980
|
+
c = S(c);
|
|
1973
1981
|
if (2 === a) {
|
|
1974
|
-
var d =
|
|
1975
|
-
var e =
|
|
1976
|
-
var f =
|
|
1977
|
-
var m = h =>
|
|
1982
|
+
var d = uc;
|
|
1983
|
+
var e = vc;
|
|
1984
|
+
var f = wc;
|
|
1985
|
+
var m = h => Ga[h >> 1];
|
|
1978
1986
|
} else {
|
|
1979
|
-
4 === a && (d =
|
|
1987
|
+
4 === a && (d = xc, e = yc, f = zc, m = h => M[h >> 2]);
|
|
1980
1988
|
}
|
|
1981
|
-
|
|
1982
|
-
for (var l =
|
|
1983
|
-
var
|
|
1984
|
-
if (w == l || 0 == m(
|
|
1985
|
-
r = d(r,
|
|
1989
|
+
Hb(b, {name:c, fromWireType:h => {
|
|
1990
|
+
for (var l = M[h >> 2], n, r = h + 4, w = 0; w <= l; ++w) {
|
|
1991
|
+
var z = h + 4 + w * a;
|
|
1992
|
+
if (w == l || 0 == m(z)) {
|
|
1993
|
+
r = d(r, z - r), void 0 === n ? n = r : (n += String.fromCharCode(0), n += r), r = z + a;
|
|
1986
1994
|
}
|
|
1987
1995
|
}
|
|
1988
|
-
|
|
1996
|
+
mb(h);
|
|
1989
1997
|
return n;
|
|
1990
1998
|
}, toWireType:(h, l) => {
|
|
1991
1999
|
if ("string" != typeof l) {
|
|
1992
|
-
throw new
|
|
2000
|
+
throw new O(`Cannot pass non-string to C++ string type ${c}`);
|
|
1993
2001
|
}
|
|
1994
|
-
var n = f(l), r =
|
|
1995
|
-
|
|
2002
|
+
var n = f(l), r = Sc(4 + n + a);
|
|
2003
|
+
M[r >> 2] = n / a;
|
|
1996
2004
|
e(l, r + 4, n + a);
|
|
1997
|
-
null !== h && h.push(
|
|
2005
|
+
null !== h && h.push(mb, r);
|
|
1998
2006
|
return r;
|
|
1999
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2000
|
-
|
|
2007
|
+
}, argPackAdvance:8, readValueFromPointer:Eb, B(h) {
|
|
2008
|
+
mb(h);
|
|
2001
2009
|
}});
|
|
2002
2010
|
}, _embind_register_value_object:(b, a, c, d, e, f) => {
|
|
2003
|
-
|
|
2011
|
+
Cb[b] = {name:S(a), fa:Y(c, d), D:Y(e, f), sa:[],};
|
|
2004
2012
|
}, _embind_register_value_object_field:(b, a, c, d, e, f, m, h, l, n) => {
|
|
2005
|
-
|
|
2013
|
+
Cb[b].sa.push({Oa:S(a), Ua:c, Sa:Y(d, e), Ta:f, eb:m, cb:Y(h, l), fb:n,});
|
|
2006
2014
|
}, _embind_register_void:(b, a) => {
|
|
2007
|
-
a =
|
|
2008
|
-
|
|
2015
|
+
a = S(a);
|
|
2016
|
+
Hb(b, {mb:!0, name:a, argPackAdvance:0, fromWireType:() => {
|
|
2009
2017
|
}, toWireType:() => {
|
|
2010
2018
|
},});
|
|
2011
2019
|
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(b, a, c) => J.copyWithin(b, a, a + c), _emval_as:(b, a, c) => {
|
|
2012
|
-
b =
|
|
2013
|
-
a =
|
|
2014
|
-
return
|
|
2020
|
+
b = R(b);
|
|
2021
|
+
a = ob(a, "emval::as");
|
|
2022
|
+
return Ac(a, c, b);
|
|
2015
2023
|
}, _emval_call_method:(b, a, c, d, e) => {
|
|
2016
|
-
b =
|
|
2017
|
-
a =
|
|
2018
|
-
c =
|
|
2024
|
+
b = Dc[b];
|
|
2025
|
+
a = R(a);
|
|
2026
|
+
c = Cc(c);
|
|
2019
2027
|
return b(a, a[c], d, e);
|
|
2020
|
-
}, _emval_decref:
|
|
2021
|
-
var d =
|
|
2028
|
+
}, _emval_decref:hc, _emval_get_method_caller:(b, a, c) => {
|
|
2029
|
+
var d = Fc(b, a), e = d.shift();
|
|
2022
2030
|
b--;
|
|
2023
2031
|
var f = Array(b);
|
|
2024
2032
|
a = `methodCaller<(${d.map(m => m.name).join(", ")}) => ${e.name}>`;
|
|
2025
|
-
return
|
|
2033
|
+
return Ec($a(a, (m, h, l, n) => {
|
|
2026
2034
|
for (var r = 0, w = 0; w < b; ++w) {
|
|
2027
2035
|
f[w] = d[w].readValueFromPointer(n + r), r += d[w].argPackAdvance;
|
|
2028
2036
|
}
|
|
2029
|
-
m = 1 === c ?
|
|
2030
|
-
return
|
|
2037
|
+
m = 1 === c ? Gc(h, f) : h.apply(m, f);
|
|
2038
|
+
return Ac(e, l, m);
|
|
2031
2039
|
}));
|
|
2032
2040
|
}, _emval_get_module_property:b => {
|
|
2033
|
-
b =
|
|
2034
|
-
return
|
|
2041
|
+
b = Cc(b);
|
|
2042
|
+
return bb(k[b]);
|
|
2035
2043
|
}, _emval_get_property:(b, a) => {
|
|
2036
|
-
b =
|
|
2037
|
-
a =
|
|
2038
|
-
return
|
|
2044
|
+
b = R(b);
|
|
2045
|
+
a = R(a);
|
|
2046
|
+
return bb(b[a]);
|
|
2039
2047
|
}, _emval_incref:b => {
|
|
2040
|
-
9 < b && (
|
|
2041
|
-
}, _emval_new_array:() =>
|
|
2042
|
-
var a =
|
|
2043
|
-
|
|
2044
|
-
|
|
2048
|
+
9 < b && (N[b + 1] += 1);
|
|
2049
|
+
}, _emval_new_array:() => bb([]), _emval_new_cstring:b => bb(Cc(b)), _emval_new_object:() => bb({}), _emval_run_destructors:b => {
|
|
2050
|
+
var a = R(b);
|
|
2051
|
+
Db(a);
|
|
2052
|
+
hc(b);
|
|
2045
2053
|
}, _emval_set_property:(b, a, c) => {
|
|
2046
|
-
b =
|
|
2047
|
-
a =
|
|
2048
|
-
c =
|
|
2054
|
+
b = R(b);
|
|
2055
|
+
a = R(a);
|
|
2056
|
+
c = R(c);
|
|
2049
2057
|
b[a] = c;
|
|
2050
2058
|
}, _emval_take_value:(b, a) => {
|
|
2051
|
-
b =
|
|
2059
|
+
b = ob(b, "_emval_take_value");
|
|
2052
2060
|
b = b.readValueFromPointer(a);
|
|
2053
|
-
return
|
|
2061
|
+
return bb(b);
|
|
2054
2062
|
}, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:b => {
|
|
2055
2063
|
var a = J.length;
|
|
2056
2064
|
b >>>= 0;
|
|
@@ -2063,9 +2071,9 @@ var Qc = {_abort_js:() => {
|
|
|
2063
2071
|
var e = Math;
|
|
2064
2072
|
d = Math.max(b, d);
|
|
2065
2073
|
a: {
|
|
2066
|
-
e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
2074
|
+
e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Ca.buffer.byteLength + 65535) / 65536;
|
|
2067
2075
|
try {
|
|
2068
|
-
|
|
2076
|
+
Ca.grow(e);
|
|
2069
2077
|
Ja();
|
|
2070
2078
|
var f = 1;
|
|
2071
2079
|
break a;
|
|
@@ -2080,79 +2088,79 @@ var Qc = {_abort_js:() => {
|
|
|
2080
2088
|
return !1;
|
|
2081
2089
|
}, environ_get:(b, a) => {
|
|
2082
2090
|
var c = 0;
|
|
2083
|
-
|
|
2091
|
+
Jc().forEach((d, e) => {
|
|
2084
2092
|
var f = a + c;
|
|
2085
|
-
e =
|
|
2093
|
+
e = M[b + 4 * e >> 2] = f;
|
|
2086
2094
|
for (f = 0; f < d.length; ++f) {
|
|
2087
|
-
|
|
2095
|
+
Ea[e++] = d.charCodeAt(f);
|
|
2088
2096
|
}
|
|
2089
|
-
|
|
2097
|
+
Ea[e] = 0;
|
|
2090
2098
|
c += d.length + 1;
|
|
2091
2099
|
});
|
|
2092
2100
|
return 0;
|
|
2093
2101
|
}, environ_sizes_get:(b, a) => {
|
|
2094
|
-
var c =
|
|
2095
|
-
|
|
2102
|
+
var c = Jc();
|
|
2103
|
+
M[b >> 2] = c.length;
|
|
2096
2104
|
var d = 0;
|
|
2097
2105
|
c.forEach(e => d += e.length + 1);
|
|
2098
|
-
|
|
2106
|
+
M[a >> 2] = d;
|
|
2099
2107
|
return 0;
|
|
2100
2108
|
}, fd_close:() => 52, fd_seek:function() {
|
|
2101
2109
|
return 70;
|
|
2102
2110
|
}, fd_write:(b, a, c, d) => {
|
|
2103
2111
|
for (var e = 0, f = 0; f < c; f++) {
|
|
2104
|
-
var m =
|
|
2112
|
+
var m = M[a >> 2], h = M[a + 4 >> 2];
|
|
2105
2113
|
a += 8;
|
|
2106
2114
|
for (var l = 0; l < h; l++) {
|
|
2107
|
-
var n = J[m + l], r =
|
|
2108
|
-
0 === n || 10 === n ? ((1 === b ?
|
|
2115
|
+
var n = J[m + l], r = Kc[b];
|
|
2116
|
+
0 === n || 10 === n ? ((1 === b ? za : Aa)(sc(r, 0)), r.length = 0) : r.push(n);
|
|
2109
2117
|
}
|
|
2110
2118
|
e += h;
|
|
2111
2119
|
}
|
|
2112
|
-
|
|
2120
|
+
M[d >> 2] = e;
|
|
2113
2121
|
return 0;
|
|
2114
|
-
}, strftime_l:(b, a, c, d) =>
|
|
2122
|
+
}, strftime_l:(b, a, c, d) => Pc(b, a, c, d)}, Z = function() {
|
|
2115
2123
|
function b(c) {
|
|
2116
2124
|
Z = c.exports;
|
|
2117
|
-
|
|
2125
|
+
Ca = Z.memory;
|
|
2118
2126
|
Ja();
|
|
2119
|
-
|
|
2127
|
+
Xb = Z.__indirect_function_table;
|
|
2120
2128
|
La.unshift(Z.__wasm_call_ctors);
|
|
2121
2129
|
Oa--;
|
|
2122
2130
|
k.monitorRunDependencies?.(Oa);
|
|
2123
2131
|
0 == Oa && (null !== Pa && (clearInterval(Pa), Pa = null), Qa && (c = Qa, Qa = null, c()));
|
|
2124
2132
|
return Z;
|
|
2125
2133
|
}
|
|
2126
|
-
var a = {env:
|
|
2134
|
+
var a = {env:Tc, wasi_snapshot_preview1:Tc,};
|
|
2127
2135
|
Oa++;
|
|
2128
2136
|
k.monitorRunDependencies?.(Oa);
|
|
2129
2137
|
if (k.instantiateWasm) {
|
|
2130
2138
|
try {
|
|
2131
2139
|
return k.instantiateWasm(a, b);
|
|
2132
2140
|
} catch (c) {
|
|
2133
|
-
|
|
2141
|
+
Aa(`Module.instantiateWasm callback failed with error: ${c}`), ba(c);
|
|
2134
2142
|
}
|
|
2135
2143
|
}
|
|
2136
|
-
Ta ||= Sa("canvas_advanced.wasm") ? "canvas_advanced.wasm" : k.locateFile ? k.locateFile("canvas_advanced.wasm",
|
|
2144
|
+
Ta ||= Sa("canvas_advanced.wasm") ? "canvas_advanced.wasm" : k.locateFile ? k.locateFile("canvas_advanced.wasm", y) : y + "canvas_advanced.wasm";
|
|
2137
2145
|
Xa(a, function(c) {
|
|
2138
2146
|
b(c.instance);
|
|
2139
2147
|
}).catch(ba);
|
|
2140
2148
|
return {};
|
|
2141
|
-
}(),
|
|
2149
|
+
}(), mb = b => (mb = Z.free)(b), Sc = b => (Sc = Z.malloc)(b), lb = b => (lb = Z.__getTypeName)(b);
|
|
2142
2150
|
k.dynCall_jiji = (b, a, c, d, e) => (k.dynCall_jiji = Z.dynCall_jiji)(b, a, c, d, e);
|
|
2143
2151
|
k.dynCall_viijii = (b, a, c, d, e, f, m) => (k.dynCall_viijii = Z.dynCall_viijii)(b, a, c, d, e, f, m);
|
|
2144
2152
|
k.dynCall_iiiiij = (b, a, c, d, e, f, m) => (k.dynCall_iiiiij = Z.dynCall_iiiiij)(b, a, c, d, e, f, m);
|
|
2145
2153
|
k.dynCall_iiiiijj = (b, a, c, d, e, f, m, h, l) => (k.dynCall_iiiiijj = Z.dynCall_iiiiijj)(b, a, c, d, e, f, m, h, l);
|
|
2146
2154
|
k.dynCall_iiiiiijj = (b, a, c, d, e, f, m, h, l, n) => (k.dynCall_iiiiiijj = Z.dynCall_iiiiiijj)(b, a, c, d, e, f, m, h, l, n);
|
|
2147
|
-
var
|
|
2148
|
-
Qa = function
|
|
2149
|
-
|
|
2150
|
-
|
|
2155
|
+
var Uc;
|
|
2156
|
+
Qa = function Vc() {
|
|
2157
|
+
Uc || Wc();
|
|
2158
|
+
Uc || (Qa = Vc);
|
|
2151
2159
|
};
|
|
2152
|
-
function
|
|
2160
|
+
function Wc() {
|
|
2153
2161
|
function b() {
|
|
2154
|
-
if (!
|
|
2155
|
-
|
|
2162
|
+
if (!Uc && (Uc = !0, k.calledRun = !0, !Da)) {
|
|
2163
|
+
Za(La);
|
|
2156
2164
|
aa(k);
|
|
2157
2165
|
if (k.onRuntimeInitialized) {
|
|
2158
2166
|
k.onRuntimeInitialized();
|
|
@@ -2163,7 +2171,7 @@ function Tc() {
|
|
|
2163
2171
|
Ma.unshift(a);
|
|
2164
2172
|
}
|
|
2165
2173
|
}
|
|
2166
|
-
|
|
2174
|
+
Za(Ma);
|
|
2167
2175
|
}
|
|
2168
2176
|
}
|
|
2169
2177
|
if (!(0 < Oa)) {
|
|
@@ -2172,7 +2180,7 @@ function Tc() {
|
|
|
2172
2180
|
Na();
|
|
2173
2181
|
}
|
|
2174
2182
|
}
|
|
2175
|
-
|
|
2183
|
+
Za(Ka);
|
|
2176
2184
|
0 < Oa || (k.setStatus ? (k.setStatus("Running..."), setTimeout(function() {
|
|
2177
2185
|
setTimeout(function() {
|
|
2178
2186
|
k.setStatus("");
|
|
@@ -2186,8 +2194,8 @@ if (k.preInit) {
|
|
|
2186
2194
|
k.preInit.pop()();
|
|
2187
2195
|
}
|
|
2188
2196
|
}
|
|
2189
|
-
|
|
2190
|
-
moduleRtn =
|
|
2197
|
+
Wc();
|
|
2198
|
+
moduleRtn = da;
|
|
2191
2199
|
|
|
2192
2200
|
|
|
2193
2201
|
|
|
@@ -2202,7 +2210,7 @@ moduleRtn = ca;
|
|
|
2202
2210
|
/* 2 */
|
|
2203
2211
|
/***/ ((module) => {
|
|
2204
2212
|
|
|
2205
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.35.
|
|
2213
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.35.4","description":"A lite version of Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
2206
2214
|
|
|
2207
2215
|
/***/ }),
|
|
2208
2216
|
/* 3 */
|
|
@@ -3017,6 +3025,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3017
3025
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3018
3026
|
/* harmony export */ Alignment: () => (/* binding */ Alignment),
|
|
3019
3027
|
/* harmony export */ DataEnum: () => (/* binding */ DataEnum),
|
|
3028
|
+
/* harmony export */ DataType: () => (/* binding */ DataType),
|
|
3020
3029
|
/* harmony export */ DrawOptimizationOptions: () => (/* binding */ DrawOptimizationOptions),
|
|
3021
3030
|
/* harmony export */ EventType: () => (/* binding */ EventType),
|
|
3022
3031
|
/* harmony export */ Fit: () => (/* binding */ Fit),
|
|
@@ -6012,6 +6021,22 @@ var Rive = /** @class */ (function () {
|
|
|
6012
6021
|
return Rive;
|
|
6013
6022
|
}());
|
|
6014
6023
|
|
|
6024
|
+
var DataType;
|
|
6025
|
+
(function (DataType) {
|
|
6026
|
+
DataType["none"] = "none";
|
|
6027
|
+
DataType["string"] = "string";
|
|
6028
|
+
DataType["number"] = "number";
|
|
6029
|
+
DataType["boolean"] = "boolean";
|
|
6030
|
+
DataType["color"] = "color";
|
|
6031
|
+
DataType["list"] = "list";
|
|
6032
|
+
DataType["enumType"] = "enumType";
|
|
6033
|
+
DataType["trigger"] = "trigger";
|
|
6034
|
+
DataType["viewModel"] = "viewModel";
|
|
6035
|
+
DataType["integer"] = "integer";
|
|
6036
|
+
DataType["listIndex"] = "listIndex";
|
|
6037
|
+
DataType["image"] = "image";
|
|
6038
|
+
DataType["artboard"] = "artboard";
|
|
6039
|
+
})(DataType || (DataType = {}));
|
|
6015
6040
|
var ViewModel = /** @class */ (function () {
|
|
6016
6041
|
function ViewModel(viewModel) {
|
|
6017
6042
|
this._viewModel = viewModel;
|