@rive-app/canvas 2.33.0 → 2.33.2
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.js +339 -291
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_fallback.wasm +0 -0
package/rive.js
CHANGED
|
@@ -176,38 +176,38 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
q = new Proxy(q, {get(
|
|
180
|
-
if (
|
|
181
|
-
if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof
|
|
179
|
+
q = new Proxy(q, {get(F, w) {
|
|
180
|
+
if (F.isContextLost()) {
|
|
181
|
+
if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof F[w]) {
|
|
182
182
|
return function() {
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
} else {
|
|
186
|
-
return "function" === typeof
|
|
187
|
-
return
|
|
188
|
-
} :
|
|
186
|
+
return "function" === typeof F[w] ? function(...M) {
|
|
187
|
+
return F[w].apply(F, M);
|
|
188
|
+
} : F[w];
|
|
189
189
|
}
|
|
190
|
-
}, set(
|
|
191
|
-
if (
|
|
190
|
+
}, set(F, w, M) {
|
|
191
|
+
if (F.isContextLost()) {
|
|
192
192
|
p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + w), p = !0);
|
|
193
193
|
} else {
|
|
194
|
-
return
|
|
194
|
+
return F[w] = M, !0;
|
|
195
195
|
}
|
|
196
196
|
},});
|
|
197
197
|
d = Math.min(q.getParameter(q.MAX_RENDERBUFFER_SIZE), q.getParameter(q.MAX_TEXTURE_SIZE));
|
|
198
|
-
function
|
|
198
|
+
function D(F, w, M) {
|
|
199
199
|
w = q.createShader(w);
|
|
200
|
-
q.shaderSource(w,
|
|
200
|
+
q.shaderSource(w, M);
|
|
201
201
|
q.compileShader(w);
|
|
202
|
-
|
|
203
|
-
if (0 < (
|
|
204
|
-
throw
|
|
202
|
+
M = q.getShaderInfoLog(w);
|
|
203
|
+
if (0 < (M || "").length) {
|
|
204
|
+
throw M;
|
|
205
205
|
}
|
|
206
|
-
q.attachShader(
|
|
206
|
+
q.attachShader(F, w);
|
|
207
207
|
}
|
|
208
208
|
l = q.createProgram();
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
D(l, 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
|
+
D(l, 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(l, 0, "vertex");
|
|
212
212
|
q.bindAttribLocation(l, 1, "uv");
|
|
213
213
|
q.linkProgram(l);
|
|
@@ -254,55 +254,55 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
254
254
|
return u;
|
|
255
255
|
};
|
|
256
256
|
const n = new ia(8), t = new ia(8), x = new ia(10), y = new ia(10);
|
|
257
|
-
this.Mb = function(l, u, q,
|
|
257
|
+
this.Mb = function(l, u, q, D, F) {
|
|
258
258
|
if (a()) {
|
|
259
|
-
var w = n.push(l),
|
|
259
|
+
var w = n.push(l), M = t.push(u);
|
|
260
260
|
if (b.canvas) {
|
|
261
|
-
if (b.canvas.width != w || b.canvas.height !=
|
|
262
|
-
b.canvas.width = w, b.canvas.height =
|
|
261
|
+
if (b.canvas.width != w || b.canvas.height != M) {
|
|
262
|
+
b.canvas.width = w, b.canvas.height = M;
|
|
263
263
|
}
|
|
264
|
-
b.viewport(0,
|
|
264
|
+
b.viewport(0, M - u, l, u);
|
|
265
265
|
b.disable(b.SCISSOR_TEST);
|
|
266
266
|
b.clearColor(0, 0, 0, 0);
|
|
267
267
|
b.clear(b.COLOR_BUFFER_BIT);
|
|
268
268
|
b.enable(b.SCISSOR_TEST);
|
|
269
|
-
q.sort((
|
|
270
|
-
w = x.push(
|
|
269
|
+
q.sort((I, aa) => aa.ub - I.ub);
|
|
270
|
+
w = x.push(D);
|
|
271
271
|
g != w && (b.bufferData(b.ARRAY_BUFFER, 8 * w, b.DYNAMIC_DRAW), g = w);
|
|
272
272
|
w = 0;
|
|
273
273
|
for (var R of q) {
|
|
274
274
|
b.bufferSubData(b.ARRAY_BUFFER, w, R.Sa), w += 4 * R.Sa.length;
|
|
275
275
|
}
|
|
276
|
-
console.assert(w == 4 *
|
|
276
|
+
console.assert(w == 4 * D);
|
|
277
277
|
for (var W of q) {
|
|
278
278
|
b.bufferSubData(b.ARRAY_BUFFER, w, W.Ab), w += 4 * W.Ab.length;
|
|
279
279
|
}
|
|
280
|
-
console.assert(w == 8 *
|
|
281
|
-
w = y.push(
|
|
280
|
+
console.assert(w == 8 * D);
|
|
281
|
+
w = y.push(F);
|
|
282
282
|
k != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), k = w);
|
|
283
283
|
R = 0;
|
|
284
284
|
for (var pa of q) {
|
|
285
285
|
b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, R, pa.indices), R += 2 * pa.indices.length;
|
|
286
286
|
}
|
|
287
|
-
console.assert(R == 2 *
|
|
287
|
+
console.assert(R == 2 * F);
|
|
288
288
|
pa = 0;
|
|
289
289
|
W = !0;
|
|
290
290
|
w = R = 0;
|
|
291
|
-
for (const
|
|
292
|
-
|
|
293
|
-
|
|
291
|
+
for (const I of q) {
|
|
292
|
+
I.image.Ia != pa && (b.bindTexture(b.TEXTURE_2D, I.image.Ha || null), pa = I.image.Ia);
|
|
293
|
+
I.fc ? (b.scissor(I.Ya, M - I.Za - I.ib, I.tc, I.ib), W = !0) : W && (b.scissor(0, M - u, l, u), W = !1);
|
|
294
294
|
q = 2 / l;
|
|
295
295
|
const aa = -2 / u;
|
|
296
|
-
b.uniform4f(e,
|
|
297
|
-
b.uniform2f(f,
|
|
296
|
+
b.uniform4f(e, I.ga[0] * q * I.za, I.ga[1] * aa * I.Aa, I.ga[2] * q * I.za, I.ga[3] * aa * I.Aa);
|
|
297
|
+
b.uniform2f(f, I.ga[4] * q * I.za + q * (I.Ya - I.bc * I.za) - 1, I.ga[5] * aa * I.Aa + aa * (I.Za - I.cc * I.Aa) + 1);
|
|
298
298
|
b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
|
|
299
|
-
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 *
|
|
300
|
-
b.drawElements(b.TRIANGLES,
|
|
301
|
-
w += 4 *
|
|
302
|
-
R += 2 *
|
|
299
|
+
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * D);
|
|
300
|
+
b.drawElements(b.TRIANGLES, I.indices.length, b.UNSIGNED_SHORT, R);
|
|
301
|
+
w += 4 * I.Sa.length;
|
|
302
|
+
R += 2 * I.indices.length;
|
|
303
303
|
}
|
|
304
|
-
console.assert(w == 4 *
|
|
305
|
-
console.assert(R == 2 *
|
|
304
|
+
console.assert(w == 4 * D);
|
|
305
|
+
console.assert(R == 2 * F);
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
};
|
|
@@ -351,14 +351,14 @@ m.onRuntimeInitialized = function() {
|
|
|
351
351
|
return "rgba(" + ((16711680 & r) >>> 16) + "," + ((65280 & r) >>> 8) + "," + ((255 & r) >>> 0) + "," + ((4278190080 & r) >>> 24) / 255 + ")";
|
|
352
352
|
}
|
|
353
353
|
function c() {
|
|
354
|
-
0 <
|
|
355
|
-
for (const r of
|
|
354
|
+
0 < M.length && (la.Mb(w.drawWidth(), w.drawHeight(), M, R, W), M = [], W = R = 0, w.reset(512, 512));
|
|
355
|
+
for (const r of F) {
|
|
356
356
|
for (const v of r.H) {
|
|
357
357
|
v();
|
|
358
358
|
}
|
|
359
359
|
r.H = [];
|
|
360
360
|
}
|
|
361
|
-
|
|
361
|
+
F.clear();
|
|
362
362
|
}
|
|
363
363
|
ma && ma();
|
|
364
364
|
var d = m.RenderPaintStyle;
|
|
@@ -376,42 +376,42 @@ m.onRuntimeInitialized = function() {
|
|
|
376
376
|
}, decode:function(r) {
|
|
377
377
|
var v = this;
|
|
378
378
|
v.va && v.va(v);
|
|
379
|
-
var
|
|
379
|
+
var G = new Image();
|
|
380
380
|
v.Va = URL.createObjectURL(new Blob([r], {type:"image/png",}));
|
|
381
|
-
|
|
382
|
-
v.Cb =
|
|
383
|
-
v.Ha = la.Ib(
|
|
384
|
-
v.size(
|
|
381
|
+
G.onload = function() {
|
|
382
|
+
v.Cb = G;
|
|
383
|
+
v.Ha = la.Ib(G);
|
|
384
|
+
v.size(G.width, G.height);
|
|
385
385
|
v.ka && v.ka(v);
|
|
386
386
|
};
|
|
387
|
-
|
|
387
|
+
G.src = v.Va;
|
|
388
388
|
},}), q = e.extend("CanvasRenderPath", {__construct:function() {
|
|
389
389
|
this.__parent.__construct.call(this);
|
|
390
390
|
this.T = new Path2D();
|
|
391
391
|
}, rewind:function() {
|
|
392
392
|
this.T = new Path2D();
|
|
393
|
-
}, addPath:function(r, v,
|
|
394
|
-
var
|
|
393
|
+
}, addPath:function(r, v, G, J, C, H, K) {
|
|
394
|
+
var L = this.T, Z = L.addPath;
|
|
395
395
|
r = r.T;
|
|
396
396
|
const S = new DOMMatrix();
|
|
397
397
|
S.a = v;
|
|
398
|
-
S.b =
|
|
399
|
-
S.c =
|
|
400
|
-
S.d =
|
|
401
|
-
S.e =
|
|
402
|
-
S.f =
|
|
403
|
-
Z.call(
|
|
398
|
+
S.b = G;
|
|
399
|
+
S.c = J;
|
|
400
|
+
S.d = C;
|
|
401
|
+
S.e = H;
|
|
402
|
+
S.f = K;
|
|
403
|
+
Z.call(L, r, S);
|
|
404
404
|
}, fillRule:function(r) {
|
|
405
405
|
this.Ua = r;
|
|
406
406
|
}, moveTo:function(r, v) {
|
|
407
407
|
this.T.moveTo(r, v);
|
|
408
408
|
}, lineTo:function(r, v) {
|
|
409
409
|
this.T.lineTo(r, v);
|
|
410
|
-
}, cubicTo:function(r, v,
|
|
411
|
-
this.T.bezierCurveTo(r, v,
|
|
410
|
+
}, cubicTo:function(r, v, G, J, C, H) {
|
|
411
|
+
this.T.bezierCurveTo(r, v, G, J, C, H);
|
|
412
412
|
}, close:function() {
|
|
413
413
|
this.T.closePath();
|
|
414
|
-
},}),
|
|
414
|
+
},}), D = f.extend("CanvasRenderPaint", {color:function(r) {
|
|
415
415
|
this.Wa = b(r);
|
|
416
416
|
}, thickness:function(r) {
|
|
417
417
|
this.Fb = r;
|
|
@@ -443,44 +443,44 @@ m.onRuntimeInitialized = function() {
|
|
|
443
443
|
this.Bb = a(r);
|
|
444
444
|
}, clearGradient:function() {
|
|
445
445
|
this.ia = null;
|
|
446
|
-
}, linearGradient:function(r, v,
|
|
447
|
-
this.ia = {wb:r, xb:v, bb:
|
|
448
|
-
}, radialGradient:function(r, v,
|
|
449
|
-
this.ia = {wb:r, xb:v, bb:
|
|
446
|
+
}, linearGradient:function(r, v, G, J) {
|
|
447
|
+
this.ia = {wb:r, xb:v, bb:G, cb:J, Pa:[],};
|
|
448
|
+
}, radialGradient:function(r, v, G, J) {
|
|
449
|
+
this.ia = {wb:r, xb:v, bb:G, cb:J, Pa:[], $b:!0,};
|
|
450
450
|
}, addStop:function(r, v) {
|
|
451
451
|
this.ia.Pa.push({color:r, stop:v,});
|
|
452
452
|
}, completeGradient:function() {
|
|
453
|
-
}, draw:function(r, v,
|
|
454
|
-
let
|
|
455
|
-
var
|
|
453
|
+
}, draw:function(r, v, G) {
|
|
454
|
+
let J = this.Eb;
|
|
455
|
+
var C = this.Wa, H = this.ia;
|
|
456
456
|
r.globalCompositeOperation = this.Bb;
|
|
457
|
-
if (null !=
|
|
458
|
-
|
|
459
|
-
var
|
|
460
|
-
const Z =
|
|
461
|
-
var
|
|
462
|
-
const S =
|
|
463
|
-
|
|
457
|
+
if (null != H) {
|
|
458
|
+
C = H.wb;
|
|
459
|
+
var K = H.xb;
|
|
460
|
+
const Z = H.bb;
|
|
461
|
+
var L = H.cb;
|
|
462
|
+
const S = H.Pa;
|
|
463
|
+
H.$b ? (H = Z - C, L -= K, C = r.createRadialGradient(C, K, 0, C, K, Math.sqrt(H * H + L * L))) : C = r.createLinearGradient(C, K, Z, L);
|
|
464
464
|
for (let Y = 0, T = S.length; Y < T; Y++) {
|
|
465
|
-
|
|
465
|
+
K = S[Y], C.addColorStop(K.stop, b(K.color));
|
|
466
466
|
}
|
|
467
|
-
this.Wa =
|
|
467
|
+
this.Wa = C;
|
|
468
468
|
this.ia = null;
|
|
469
469
|
}
|
|
470
|
-
switch(
|
|
470
|
+
switch(J) {
|
|
471
471
|
case x:
|
|
472
|
-
r.strokeStyle =
|
|
472
|
+
r.strokeStyle = C;
|
|
473
473
|
r.lineWidth = this.Fb;
|
|
474
474
|
r.lineCap = this.Fa;
|
|
475
475
|
r.lineJoin = this.Ga;
|
|
476
476
|
r.stroke(v);
|
|
477
477
|
break;
|
|
478
478
|
case t:
|
|
479
|
-
r.fillStyle =
|
|
479
|
+
r.fillStyle = C, r.fill(v, G);
|
|
480
480
|
}
|
|
481
481
|
},});
|
|
482
|
-
const
|
|
483
|
-
let w = null,
|
|
482
|
+
const F = new Set();
|
|
483
|
+
let w = null, M = [], R = 0, W = 0;
|
|
484
484
|
var pa = m.CanvasRenderer = g.extend("Renderer", {__construct:function(r) {
|
|
485
485
|
this.__parent.__construct.call(this);
|
|
486
486
|
this.S = [1, 0, 0, 1, 0, 0];
|
|
@@ -497,98 +497,98 @@ m.onRuntimeInitialized = function() {
|
|
|
497
497
|
}
|
|
498
498
|
this.S.splice(r);
|
|
499
499
|
this.H.push(this.B.restore.bind(this.B));
|
|
500
|
-
}, transform:function(r, v,
|
|
501
|
-
const
|
|
502
|
-
|
|
503
|
-
this.H.push(this.B.transform.bind(this.B, r, v,
|
|
500
|
+
}, transform:function(r, v, G, J, C, H) {
|
|
501
|
+
const K = this.S, L = K.length - 6;
|
|
502
|
+
K.splice(L, 6, K[L] * r + K[L + 2] * v, K[L + 1] * r + K[L + 3] * v, K[L] * G + K[L + 2] * J, K[L + 1] * G + K[L + 3] * J, K[L] * C + K[L + 2] * H + K[L + 4], K[L + 1] * C + K[L + 3] * H + K[L + 5]);
|
|
503
|
+
this.H.push(this.B.transform.bind(this.B, r, v, G, J, C, H));
|
|
504
504
|
}, rotate:function(r) {
|
|
505
505
|
const v = Math.sin(r);
|
|
506
506
|
r = Math.cos(r);
|
|
507
507
|
this.transform(r, v, -v, r, 0, 0);
|
|
508
508
|
}, _drawPath:function(r, v) {
|
|
509
509
|
this.H.push(v.draw.bind(v, this.B, r.T, r.Ua === y ? "evenodd" : "nonzero"));
|
|
510
|
-
}, _drawRiveImage:function(r, v,
|
|
511
|
-
var
|
|
512
|
-
if (
|
|
513
|
-
var
|
|
510
|
+
}, _drawRiveImage:function(r, v, G, J) {
|
|
511
|
+
var C = r.Cb;
|
|
512
|
+
if (C) {
|
|
513
|
+
var H = this.B, K = a(G);
|
|
514
514
|
this.H.push(function() {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
515
|
+
H.globalCompositeOperation = K;
|
|
516
|
+
H.globalAlpha = J;
|
|
517
|
+
H.drawImage(C, 0, 0);
|
|
518
|
+
H.globalAlpha = 1;
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
}, _getMatrix:function(r) {
|
|
522
|
-
const v = this.S,
|
|
523
|
-
for (let
|
|
524
|
-
r[
|
|
522
|
+
const v = this.S, G = v.length - 6;
|
|
523
|
+
for (let J = 0; 6 > J; ++J) {
|
|
524
|
+
r[J] = v[G + J];
|
|
525
525
|
}
|
|
526
|
-
}, _drawImageMesh:function(r, v,
|
|
526
|
+
}, _drawImageMesh:function(r, v, G, J, C, H, K, L, Z, S, Y) {
|
|
527
527
|
v = this.B.canvas.width;
|
|
528
528
|
var T = this.B.canvas.height;
|
|
529
|
-
const
|
|
530
|
-
|
|
529
|
+
const Yb = S - L, Zb = Y - Z;
|
|
530
|
+
L = Math.max(L, 0);
|
|
531
531
|
Z = Math.max(Z, 0);
|
|
532
532
|
S = Math.min(S, v);
|
|
533
533
|
Y = Math.min(Y, T);
|
|
534
|
-
const
|
|
535
|
-
console.assert(
|
|
536
|
-
console.assert(
|
|
537
|
-
if (!(0 >=
|
|
538
|
-
S =
|
|
534
|
+
const Ea = S - L, Fa = Y - Z;
|
|
535
|
+
console.assert(Ea <= Math.min(Yb, v));
|
|
536
|
+
console.assert(Fa <= Math.min(Zb, T));
|
|
537
|
+
if (!(0 >= Ea || 0 >= Fa)) {
|
|
538
|
+
S = Ea < Yb || Fa < Zb;
|
|
539
539
|
v = Y = 1;
|
|
540
|
-
var qa = Math.ceil(
|
|
540
|
+
var qa = Math.ceil(Ea * Y), ra = Math.ceil(Fa * v);
|
|
541
541
|
T = la.ac();
|
|
542
542
|
qa > T && (Y *= T / qa, qa = T);
|
|
543
543
|
ra > T && (v *= T / ra, ra = T);
|
|
544
544
|
w || (w = new m.DynamicRectanizer(T), w.reset(512, 512));
|
|
545
545
|
T = w.addRect(qa, ra);
|
|
546
|
-
0 > T && (c(),
|
|
547
|
-
var
|
|
548
|
-
|
|
549
|
-
R +=
|
|
550
|
-
W +=
|
|
551
|
-
var xa = this.B,
|
|
546
|
+
0 > T && (c(), F.add(this), T = w.addRect(qa, ra), console.assert(0 <= T));
|
|
547
|
+
var $b = T & 65535, ac = T >> 16;
|
|
548
|
+
M.push({ga:this.S.slice(this.S.length - 6), image:r, Ya:$b, Za:ac, bc:L, cc:Z, tc:qa, ib:ra, za:Y, Aa:v, Sa:new Float32Array(C), Ab:new Float32Array(H), indices:new Uint16Array(K), fc:S, ub:r.Ia << 1 | (S ? 1 : 0),});
|
|
549
|
+
R += C.length;
|
|
550
|
+
W += K.length;
|
|
551
|
+
var xa = this.B, od = a(G);
|
|
552
552
|
this.H.push(function() {
|
|
553
553
|
xa.save();
|
|
554
554
|
xa.resetTransform();
|
|
555
|
-
xa.globalCompositeOperation =
|
|
556
|
-
xa.globalAlpha =
|
|
557
|
-
const
|
|
558
|
-
|
|
555
|
+
xa.globalCompositeOperation = od;
|
|
556
|
+
xa.globalAlpha = J;
|
|
557
|
+
const bc = la.canvas();
|
|
558
|
+
bc && xa.drawImage(bc, $b, ac, qa, ra, L, Z, Ea, Fa);
|
|
559
559
|
xa.restore();
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
562
|
}, _clipPath:function(r) {
|
|
563
563
|
this.H.push(this.B.clip.bind(this.B, r.T, r.Ua === y ? "evenodd" : "nonzero"));
|
|
564
564
|
}, clear:function() {
|
|
565
|
-
|
|
565
|
+
F.add(this);
|
|
566
566
|
this.H.push(this.B.clearRect.bind(this.B, 0, 0, this.Ta.width, this.Ta.height));
|
|
567
567
|
}, flush:function() {
|
|
568
568
|
}, translate:function(r, v) {
|
|
569
569
|
this.transform(1, 0, 0, 1, r, v);
|
|
570
570
|
},});
|
|
571
571
|
m.makeRenderer = function(r) {
|
|
572
|
-
const v = new pa(r),
|
|
573
|
-
return new Proxy(v, {get(
|
|
574
|
-
if ("function" === typeof
|
|
575
|
-
return function(...
|
|
576
|
-
return
|
|
572
|
+
const v = new pa(r), G = v.B;
|
|
573
|
+
return new Proxy(v, {get(J, C) {
|
|
574
|
+
if ("function" === typeof J[C]) {
|
|
575
|
+
return function(...H) {
|
|
576
|
+
return J[C].apply(J, H);
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
|
-
if ("function" === typeof
|
|
580
|
-
if (-1 < ka.indexOf(
|
|
581
|
-
throw Error("RiveException: Method call to '" +
|
|
579
|
+
if ("function" === typeof G[C]) {
|
|
580
|
+
if (-1 < ka.indexOf(C)) {
|
|
581
|
+
throw Error("RiveException: Method call to '" + C + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
|
|
582
582
|
}
|
|
583
|
-
return function(...
|
|
584
|
-
v.H.push(
|
|
583
|
+
return function(...H) {
|
|
584
|
+
v.H.push(G[C].bind(G, ...H));
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
|
-
return
|
|
588
|
-
}, set(
|
|
589
|
-
if (
|
|
587
|
+
return J[C];
|
|
588
|
+
}, set(J, C, H) {
|
|
589
|
+
if (C in G) {
|
|
590
590
|
return v.H.push(() => {
|
|
591
|
-
|
|
591
|
+
G[C] = H;
|
|
592
592
|
}), !0;
|
|
593
593
|
}
|
|
594
594
|
},});
|
|
@@ -597,7 +597,7 @@ m.onRuntimeInitialized = function() {
|
|
|
597
597
|
(new u({ka:v})).decode(r);
|
|
598
598
|
};
|
|
599
599
|
m.renderFactory = {makeRenderPaint:function() {
|
|
600
|
-
return new
|
|
600
|
+
return new D();
|
|
601
601
|
}, makeRenderPath:function() {
|
|
602
602
|
return new q();
|
|
603
603
|
}, makeRenderImage:function() {
|
|
@@ -612,23 +612,23 @@ m.onRuntimeInitialized = function() {
|
|
|
612
612
|
}
|
|
613
613
|
},});
|
|
614
614
|
},};
|
|
615
|
-
let
|
|
616
|
-
m.load = function(r, v,
|
|
617
|
-
const
|
|
618
|
-
void 0 !== v &&
|
|
619
|
-
|
|
620
|
-
return new Promise(function(
|
|
621
|
-
let
|
|
615
|
+
let I = m.load, aa = null;
|
|
616
|
+
m.load = function(r, v, G = !0) {
|
|
617
|
+
const J = new m.FallbackFileAssetLoader();
|
|
618
|
+
void 0 !== v && J.addLoader(v);
|
|
619
|
+
G && (v = new m.CDNFileAssetLoader(), J.addLoader(v));
|
|
620
|
+
return new Promise(function(C) {
|
|
621
|
+
let H = null;
|
|
622
622
|
aa = {total:0, loaded:0, ready:function() {
|
|
623
|
-
|
|
623
|
+
C(H);
|
|
624
624
|
},};
|
|
625
|
-
|
|
626
|
-
0 == aa.total &&
|
|
625
|
+
H = I(r, J);
|
|
626
|
+
0 == aa.total && C(H);
|
|
627
627
|
});
|
|
628
628
|
};
|
|
629
|
-
let
|
|
630
|
-
m.RendererWrapper.prototype.align = function(r, v,
|
|
631
|
-
|
|
629
|
+
let pd = m.RendererWrapper.prototype.align;
|
|
630
|
+
m.RendererWrapper.prototype.align = function(r, v, G, J, C = 1.0) {
|
|
631
|
+
pd.call(this, r, v, G, J, C);
|
|
632
632
|
};
|
|
633
633
|
d = new ha();
|
|
634
634
|
m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
@@ -670,15 +670,15 @@ na = null;
|
|
|
670
670
|
m.thisProgram && (oa = m.thisProgram);
|
|
671
671
|
var za;
|
|
672
672
|
m.wasmBinary && (za = m.wasmBinary);
|
|
673
|
-
var Aa, Ba = !1, z, A, Ca,
|
|
673
|
+
var Aa, Ba = !1, z, A, Ca, Da, B, E, Ga, Ha;
|
|
674
674
|
function Ia() {
|
|
675
675
|
var a = Aa.buffer;
|
|
676
676
|
m.HEAP8 = z = new Int8Array(a);
|
|
677
677
|
m.HEAP16 = Ca = new Int16Array(a);
|
|
678
678
|
m.HEAPU8 = A = new Uint8Array(a);
|
|
679
|
-
m.HEAPU16 =
|
|
680
|
-
m.HEAP32 =
|
|
681
|
-
m.HEAPU32 =
|
|
679
|
+
m.HEAPU16 = Da = new Uint16Array(a);
|
|
680
|
+
m.HEAP32 = B = new Int32Array(a);
|
|
681
|
+
m.HEAPU32 = E = new Uint32Array(a);
|
|
682
682
|
m.HEAPF32 = Ga = new Float32Array(a);
|
|
683
683
|
m.HEAPF64 = Ha = new Float64Array(a);
|
|
684
684
|
}
|
|
@@ -732,7 +732,7 @@ function Wa(a, b) {
|
|
|
732
732
|
return Va(c, a, b);
|
|
733
733
|
}));
|
|
734
734
|
}
|
|
735
|
-
var Xa, Ya, bb = {
|
|
735
|
+
var Xa, Ya, bb = {489554:(a, b, c, d, e) => {
|
|
736
736
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
737
737
|
return 0;
|
|
738
738
|
}
|
|
@@ -795,11 +795,11 @@ var Xa, Ya, bb = {467490:(a, b, c, d, e) => {
|
|
|
795
795
|
}
|
|
796
796
|
window.h.ya += 1;
|
|
797
797
|
return 1;
|
|
798
|
-
},
|
|
798
|
+
}, 491732:() => {
|
|
799
799
|
"undefined" !== typeof window.h && (window.h.Ra.map(function(a) {
|
|
800
800
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
801
801
|
}), --window.h.ya, 0 === window.h.ya && delete window.h);
|
|
802
|
-
},
|
|
802
|
+
}, 492036:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 492140:() => {
|
|
803
803
|
try {
|
|
804
804
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
805
805
|
a.close();
|
|
@@ -807,7 +807,7 @@ var Xa, Ya, bb = {467490:(a, b, c, d, e) => {
|
|
|
807
807
|
} catch (c) {
|
|
808
808
|
return 0;
|
|
809
809
|
}
|
|
810
|
-
},
|
|
810
|
+
}, 492311:(a, b, c, d, e, f) => {
|
|
811
811
|
if ("undefined" === typeof window.h) {
|
|
812
812
|
return -1;
|
|
813
813
|
}
|
|
@@ -853,7 +853,7 @@ var Xa, Ya, bb = {467490:(a, b, c, d, e) => {
|
|
|
853
853
|
a == window.h.I.wa && g.Y.connect(g.K.destination);
|
|
854
854
|
g.ob = f;
|
|
855
855
|
return window.h.rc(g);
|
|
856
|
-
},
|
|
856
|
+
}, 495188:a => window.h.pa(a).K.sampleRate, 495261:a => {
|
|
857
857
|
a = window.h.pa(a);
|
|
858
858
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
859
859
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
@@ -861,13 +861,13 @@ var Xa, Ya, bb = {467490:(a, b, c, d, e) => {
|
|
|
861
861
|
a.K.close();
|
|
862
862
|
a.K = void 0;
|
|
863
863
|
a.ob = void 0;
|
|
864
|
-
},
|
|
864
|
+
}, 495661:a => {
|
|
865
865
|
window.h.zb(a);
|
|
866
|
-
},
|
|
866
|
+
}, 495711:a => {
|
|
867
867
|
a = window.h.pa(a);
|
|
868
868
|
a.K.resume();
|
|
869
869
|
a.state = window.h.fa.vb;
|
|
870
|
-
},
|
|
870
|
+
}, 495850:a => {
|
|
871
871
|
a = window.h.pa(a);
|
|
872
872
|
a.K.suspend();
|
|
873
873
|
a.state = window.h.fa.stopped;
|
|
@@ -877,7 +877,7 @@ var Xa, Ya, bb = {467490:(a, b, c, d, e) => {
|
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
879
|
function db() {
|
|
880
|
-
var a =
|
|
880
|
+
var a = B[+eb >> 2];
|
|
881
881
|
eb += 4;
|
|
882
882
|
return a;
|
|
883
883
|
}
|
|
@@ -1435,7 +1435,7 @@ var zb = {open(a) {
|
|
|
1435
1435
|
function ub(a, b) {
|
|
1436
1436
|
Fb[a] = {m:b};
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function Wb(a, b) {
|
|
1439
1439
|
var c = "/" === b;
|
|
1440
1440
|
if (c && Eb) {
|
|
1441
1441
|
throw new N(10);
|
|
@@ -1457,7 +1457,7 @@ function ac(a, b) {
|
|
|
1457
1457
|
b.root = a;
|
|
1458
1458
|
c ? Eb = a : d && (d.ua = b, d.U && d.U.dc.push(b));
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function Xb(a, b, c) {
|
|
1461
1461
|
var d = Mb(a, {parent:!0}).node;
|
|
1462
1462
|
a = ib(a);
|
|
1463
1463
|
if (!a || "." === a || ".." === a) {
|
|
@@ -1473,11 +1473,11 @@ function bc(a, b, c) {
|
|
|
1473
1473
|
return d.j.ta(d, a, b, c);
|
|
1474
1474
|
}
|
|
1475
1475
|
function cc(a) {
|
|
1476
|
-
return
|
|
1476
|
+
return Xb(a, 16895, 0);
|
|
1477
1477
|
}
|
|
1478
1478
|
function dc(a, b, c) {
|
|
1479
1479
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1480
|
-
|
|
1480
|
+
Xb(a, b | 8192, c);
|
|
1481
1481
|
}
|
|
1482
1482
|
function ec(a, b) {
|
|
1483
1483
|
if (!lb(a)) {
|
|
@@ -1535,7 +1535,7 @@ function fc(a, b, c) {
|
|
|
1535
1535
|
throw new N(20);
|
|
1536
1536
|
}
|
|
1537
1537
|
} else {
|
|
1538
|
-
e =
|
|
1538
|
+
e = Xb(a, c, 0), d = !0;
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
1541
|
if (!e) {
|
|
@@ -1736,7 +1736,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1736
1736
|
}
|
|
1737
1737
|
};
|
|
1738
1738
|
function Oc(a) {
|
|
1739
|
-
return this.fromWireType(
|
|
1739
|
+
return this.fromWireType(E[a >> 2]);
|
|
1740
1740
|
}
|
|
1741
1741
|
var Pc = {}, Qc = {}, U = (a, b, c) => {
|
|
1742
1742
|
function d(k) {
|
|
@@ -1952,22 +1952,22 @@ var ed = (a, b, c) => {
|
|
|
1952
1952
|
}, jd = (a, b, c = []) => {
|
|
1953
1953
|
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,m["dynCall_" + a])(b, ...c)) : b = hd(b)(...c);
|
|
1954
1954
|
return b;
|
|
1955
|
-
},
|
|
1955
|
+
}, kd = (a, b) => (...c) => jd(a, b, c), V = (a, b) => {
|
|
1956
1956
|
a = Q(a);
|
|
1957
|
-
var c = a.includes("j") ?
|
|
1957
|
+
var c = a.includes("j") ? kd(a, b) : hd(b);
|
|
1958
1958
|
if ("function" != typeof c) {
|
|
1959
1959
|
throw new P(`unknown function pointer with signature ${a}: ${b}`);
|
|
1960
1960
|
}
|
|
1961
1961
|
return c;
|
|
1962
|
-
},
|
|
1962
|
+
}, ld, md = (a, b) => {
|
|
1963
1963
|
function c(f) {
|
|
1964
1964
|
e[f] || zc[f] || (Qc[f] ? Qc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1965
1965
|
}
|
|
1966
1966
|
var d = [], e = {};
|
|
1967
1967
|
b.forEach(c);
|
|
1968
|
-
throw new
|
|
1968
|
+
throw new ld(`${a}: ` + d.map(Cc).join([", "]));
|
|
1969
1969
|
};
|
|
1970
|
-
function
|
|
1970
|
+
function nd(a) {
|
|
1971
1971
|
for (var b = 1; b < a.length; ++b) {
|
|
1972
1972
|
if (null !== a[b] && void 0 === a[b].L) {
|
|
1973
1973
|
return !0;
|
|
@@ -1980,7 +1980,7 @@ function qd(a, b, c, d, e) {
|
|
|
1980
1980
|
if (2 > f) {
|
|
1981
1981
|
throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1982
1982
|
}
|
|
1983
|
-
var g = null !== b[1] && null !== c, k =
|
|
1983
|
+
var g = null !== b[1] && null !== c, k = nd(b), p = "void" !== b[0].name, n = f - 2, t = Array(n), x = [], y = [];
|
|
1984
1984
|
return mc(a, function(...l) {
|
|
1985
1985
|
if (l.length !== n) {
|
|
1986
1986
|
throw new P(`function ${a} called with ${l.length} arguments, expected ${n}`);
|
|
@@ -2000,8 +2000,8 @@ function qd(a, b, c, d, e) {
|
|
|
2000
2000
|
Nc(y);
|
|
2001
2001
|
} else {
|
|
2002
2002
|
for (q = g ? 1 : 2; q < b.length; q++) {
|
|
2003
|
-
var
|
|
2004
|
-
null !== b[q].L && b[q].L(
|
|
2003
|
+
var D = 1 === q ? u : t[q - 2];
|
|
2004
|
+
null !== b[q].L && b[q].L(D);
|
|
2005
2005
|
}
|
|
2006
2006
|
}
|
|
2007
2007
|
u = p ? b[0].fromWireType(l) : void 0;
|
|
@@ -2010,7 +2010,7 @@ function qd(a, b, c, d, e) {
|
|
|
2010
2010
|
}
|
|
2011
2011
|
var rd = (a, b) => {
|
|
2012
2012
|
for (var c = [], d = 0; d < a; d++) {
|
|
2013
|
-
c.push(
|
|
2013
|
+
c.push(E[b + 4 * d >> 2]);
|
|
2014
2014
|
}
|
|
2015
2015
|
return c;
|
|
2016
2016
|
}, sd = a => {
|
|
@@ -2046,13 +2046,13 @@ var rd = (a, b) => {
|
|
|
2046
2046
|
return c ? function(d) {
|
|
2047
2047
|
return this.fromWireType(Ca[d >> 1]);
|
|
2048
2048
|
} : function(d) {
|
|
2049
|
-
return this.fromWireType(
|
|
2049
|
+
return this.fromWireType(Da[d >> 1]);
|
|
2050
2050
|
};
|
|
2051
2051
|
case 4:
|
|
2052
2052
|
return c ? function(d) {
|
|
2053
|
-
return this.fromWireType(
|
|
2053
|
+
return this.fromWireType(B[d >> 2]);
|
|
2054
2054
|
} : function(d) {
|
|
2055
|
-
return this.fromWireType(
|
|
2055
|
+
return this.fromWireType(E[d >> 2]);
|
|
2056
2056
|
};
|
|
2057
2057
|
default:
|
|
2058
2058
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
@@ -2081,15 +2081,15 @@ var rd = (a, b) => {
|
|
|
2081
2081
|
case 1:
|
|
2082
2082
|
return c ? d => z[d] : d => A[d];
|
|
2083
2083
|
case 2:
|
|
2084
|
-
return c ? d => Ca[d >> 1] : d =>
|
|
2084
|
+
return c ? d => Ca[d >> 1] : d => Da[d >> 1];
|
|
2085
2085
|
case 4:
|
|
2086
|
-
return c ? d =>
|
|
2086
|
+
return c ? d => B[d >> 2] : d => E[d >> 2];
|
|
2087
2087
|
default:
|
|
2088
2088
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
2089
2089
|
}
|
|
2090
2090
|
}, zd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, Ad = (a, b) => {
|
|
2091
2091
|
var c = a >> 1;
|
|
2092
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
2092
|
+
for (var d = c + b / 2; !(c >= d) && Da[c];) {
|
|
2093
2093
|
++c;
|
|
2094
2094
|
}
|
|
2095
2095
|
c <<= 1;
|
|
@@ -2120,7 +2120,7 @@ var rd = (a, b) => {
|
|
|
2120
2120
|
return b - d;
|
|
2121
2121
|
}, Cd = a => 2 * a.length, Dd = (a, b) => {
|
|
2122
2122
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
2123
|
-
var e =
|
|
2123
|
+
var e = B[a + 4 * c >> 2];
|
|
2124
2124
|
if (0 == e) {
|
|
2125
2125
|
break;
|
|
2126
2126
|
}
|
|
@@ -2141,13 +2141,13 @@ var rd = (a, b) => {
|
|
|
2141
2141
|
var g = a.charCodeAt(++e);
|
|
2142
2142
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
2143
2143
|
}
|
|
2144
|
-
|
|
2144
|
+
B[b >> 2] = f;
|
|
2145
2145
|
b += 4;
|
|
2146
2146
|
if (b + 4 > c) {
|
|
2147
2147
|
break;
|
|
2148
2148
|
}
|
|
2149
2149
|
}
|
|
2150
|
-
|
|
2150
|
+
B[b >> 2] = 0;
|
|
2151
2151
|
return b - d;
|
|
2152
2152
|
}, Fd = a => {
|
|
2153
2153
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
@@ -2159,7 +2159,7 @@ var rd = (a, b) => {
|
|
|
2159
2159
|
}, Gd = (a, b, c) => {
|
|
2160
2160
|
var d = [];
|
|
2161
2161
|
a = a.toWireType(d, c);
|
|
2162
|
-
d.length && (
|
|
2162
|
+
d.length && (E[b >> 2] = qc(d));
|
|
2163
2163
|
return a;
|
|
2164
2164
|
}, Hd = {}, Id = a => {
|
|
2165
2165
|
var b = Hd[a];
|
|
@@ -2170,23 +2170,23 @@ var rd = (a, b) => {
|
|
|
2170
2170
|
return b;
|
|
2171
2171
|
}, Ld = (a, b) => {
|
|
2172
2172
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
2173
|
-
c[d] = Dc(
|
|
2173
|
+
c[d] = Dc(E[b + 4 * d >> 2], "parameter " + d);
|
|
2174
2174
|
}
|
|
2175
2175
|
return c;
|
|
2176
|
-
}, Md = Reflect.construct, Nd = [],
|
|
2177
|
-
if (!
|
|
2176
|
+
}, Md = Reflect.construct, Nd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Od = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Pd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Qd = [], Rd = {}, Td = () => {
|
|
2177
|
+
if (!Sd) {
|
|
2178
2178
|
var a = {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", _:oa || "./this.program"}, b;
|
|
2179
|
-
for (b in
|
|
2180
|
-
void 0 ===
|
|
2179
|
+
for (b in Rd) {
|
|
2180
|
+
void 0 === Rd[b] ? delete a[b] : a[b] = Rd[b];
|
|
2181
2181
|
}
|
|
2182
2182
|
var c = [];
|
|
2183
2183
|
for (b in a) {
|
|
2184
2184
|
c.push(`${b}=${a[b]}`);
|
|
2185
2185
|
}
|
|
2186
|
-
|
|
2186
|
+
Sd = c;
|
|
2187
2187
|
}
|
|
2188
|
-
return
|
|
2189
|
-
},
|
|
2188
|
+
return Sd;
|
|
2189
|
+
}, Sd, Ud = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Vd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Wd = (a, b, c, d) => {
|
|
2190
2190
|
function e(l, u, q) {
|
|
2191
2191
|
for (l = "number" == typeof l ? l.toString() : l || ""; l.length < u;) {
|
|
2192
2192
|
l = q[0] + l;
|
|
@@ -2197,12 +2197,12 @@ var rd = (a, b) => {
|
|
|
2197
2197
|
return e(l, u, "0");
|
|
2198
2198
|
}
|
|
2199
2199
|
function g(l, u) {
|
|
2200
|
-
function q(
|
|
2201
|
-
return 0 >
|
|
2200
|
+
function q(F) {
|
|
2201
|
+
return 0 > F ? -1 : 0 < F ? 1 : 0;
|
|
2202
2202
|
}
|
|
2203
|
-
var
|
|
2204
|
-
0 === (
|
|
2205
|
-
return
|
|
2203
|
+
var D;
|
|
2204
|
+
0 === (D = q(l.getFullYear() - u.getFullYear())) && 0 === (D = q(l.getMonth() - u.getMonth())) && (D = q(l.getDate() - u.getDate()));
|
|
2205
|
+
return D;
|
|
2206
2206
|
}
|
|
2207
2207
|
function k(l) {
|
|
2208
2208
|
switch(l.getDay()) {
|
|
@@ -2225,9 +2225,9 @@ var rd = (a, b) => {
|
|
|
2225
2225
|
function p(l) {
|
|
2226
2226
|
var u = l.ba;
|
|
2227
2227
|
for (l = new Date((new Date(l.ca + 1900, 0, 1)).getTime()); 0 < u;) {
|
|
2228
|
-
var q = l.getMonth(),
|
|
2229
|
-
if (u >
|
|
2230
|
-
u -=
|
|
2228
|
+
var q = l.getMonth(), D = (Nd(l.getFullYear()) ? Ud : Vd)[q];
|
|
2229
|
+
if (u > D - l.getDate()) {
|
|
2230
|
+
u -= D - l.getDate() + 1, l.setDate(1), 11 > q ? l.setMonth(q + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
|
|
2231
2231
|
} else {
|
|
2232
2232
|
l.setDate(l.getDate() + u);
|
|
2233
2233
|
break;
|
|
@@ -2238,8 +2238,8 @@ var rd = (a, b) => {
|
|
|
2238
2238
|
q = k(q);
|
|
2239
2239
|
return 0 >= g(u, l) ? 0 >= g(q, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
|
|
2240
2240
|
}
|
|
2241
|
-
var n =
|
|
2242
|
-
d = {pc:
|
|
2241
|
+
var n = E[d + 40 >> 2];
|
|
2242
|
+
d = {pc:B[d >> 2], oc:B[d + 4 >> 2], Da:B[d + 8 >> 2], Qa:B[d + 12 >> 2], Ea:B[d + 16 >> 2], ca:B[d + 20 >> 2], R:B[d + 24 >> 2], ba:B[d + 28 >> 2], Nc:B[d + 32 >> 2], nc:B[d + 36 >> 2], qc:n ? n ? nb(A, n) : "" : ""};
|
|
2243
2243
|
c = c ? nb(A, c) : "";
|
|
2244
2244
|
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",};
|
|
2245
2245
|
for (var t in n) {
|
|
@@ -2251,18 +2251,18 @@ var rd = (a, b) => {
|
|
|
2251
2251
|
0 == l ? l = 12 : 12 < l && (l -= 12);
|
|
2252
2252
|
return f(l, 2);
|
|
2253
2253
|
}, "%j":l => {
|
|
2254
|
-
for (var u = 0, q = 0; q <= l.Ea - 1; u += (
|
|
2254
|
+
for (var u = 0, q = 0; q <= l.Ea - 1; u += (Nd(l.ca + 1900) ? Ud : Vd)[q++]) {
|
|
2255
2255
|
}
|
|
2256
2256
|
return f(l.Qa + u, 3);
|
|
2257
2257
|
}, "%m":l => f(l.Ea + 1, 2), "%M":l => f(l.oc, 2), "%n":() => "\n", "%p":l => 0 <= l.Da && 12 > l.Da ? "AM" : "PM", "%S":l => f(l.pc, 2), "%t":() => "\t", "%u":l => l.R || 7, "%U":l => f(Math.floor((l.ba + 7 - l.R) / 7), 2), "%V":l => {
|
|
2258
2258
|
var u = Math.floor((l.ba + 7 - (l.R + 6) % 7) / 7);
|
|
2259
2259
|
2 >= (l.R + 371 - l.ba - 2) % 7 && u++;
|
|
2260
2260
|
if (u) {
|
|
2261
|
-
53 == u && (q = (l.R + 371 - l.ba) % 7, 4 == q || 3 == q &&
|
|
2261
|
+
53 == u && (q = (l.R + 371 - l.ba) % 7, 4 == q || 3 == q && Nd(l.ca) || (u = 1));
|
|
2262
2262
|
} else {
|
|
2263
2263
|
u = 52;
|
|
2264
2264
|
var q = (l.R + 7 - l.ba - 1) % 7;
|
|
2265
|
-
(4 == q || 5 == q &&
|
|
2265
|
+
(4 == q || 5 == q && Nd(l.ca % 400 - 1)) && u++;
|
|
2266
2266
|
}
|
|
2267
2267
|
return f(u, 2);
|
|
2268
2268
|
}, "%w":l => l.R, "%W":l => f(Math.floor((l.ba + 7 - (l.R + 6) % 7) / 7), 2), "%y":l => (l.ca + 1900).toString().substring(2), "%Y":l => l.ca + 1900, "%z":l => {
|
|
@@ -2288,7 +2288,7 @@ var rd = (a, b) => {
|
|
|
2288
2288
|
Bb[a].stack = "<generic error, no stack>";
|
|
2289
2289
|
});
|
|
2290
2290
|
Ib = Array(4096);
|
|
2291
|
-
|
|
2291
|
+
Wb(O, "/");
|
|
2292
2292
|
cc("/tmp");
|
|
2293
2293
|
cc("/home");
|
|
2294
2294
|
cc("/home/web_user");
|
|
@@ -2313,7 +2313,7 @@ cc("/home/web_user");
|
|
|
2313
2313
|
cc("/proc");
|
|
2314
2314
|
var a = cc("/proc/self");
|
|
2315
2315
|
cc("/proc/self/fd");
|
|
2316
|
-
|
|
2316
|
+
Wb({U() {
|
|
2317
2317
|
var b = Ab(a, "fd", 16895, 73);
|
|
2318
2318
|
b.j = {ja(c, d) {
|
|
2319
2319
|
var e = Tb(+d);
|
|
@@ -2332,10 +2332,10 @@ P = m.BindingError = class extends Error {
|
|
|
2332
2332
|
oc.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
|
|
2333
2333
|
m.count_emval_handles = () => oc.length / 2 - 5 - nc.length;
|
|
2334
2334
|
sc = m.PureVirtualError = rc("PureVirtualError");
|
|
2335
|
-
for (var
|
|
2336
|
-
|
|
2335
|
+
for (var Xd = Array(256), Yd = 0; 256 > Yd; ++Yd) {
|
|
2336
|
+
Xd[Yd] = String.fromCharCode(Yd);
|
|
2337
2337
|
}
|
|
2338
|
-
tc =
|
|
2338
|
+
tc = Xd;
|
|
2339
2339
|
m.getInheritedInstanceCount = () => Object.keys(xc).length;
|
|
2340
2340
|
m.getLiveInheritedInstances = () => {
|
|
2341
2341
|
var a = [], b;
|
|
@@ -2432,8 +2432,8 @@ Object.assign(dd.prototype, {Rb(a) {
|
|
|
2432
2432
|
var e = Gc(c, this.i, d.i);
|
|
2433
2433
|
return null === e ? b.call(this) : this.sa ? Lc(d.i.M, {u:d, o:e, J:this, F:a,}) : Lc(d.i.M, {u:d, o:e,});
|
|
2434
2434
|
},});
|
|
2435
|
-
|
|
2436
|
-
var
|
|
2435
|
+
ld = m.UnboundTypeError = rc("UnboundTypeError");
|
|
2436
|
+
var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
2437
2437
|
eb = c;
|
|
2438
2438
|
try {
|
|
2439
2439
|
var d = Tb(a);
|
|
@@ -2481,10 +2481,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2481
2481
|
if (d.s.V.Xb) {
|
|
2482
2482
|
a = [3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,];
|
|
2483
2483
|
var e = db();
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2484
|
+
B[e >> 2] = 25856;
|
|
2485
|
+
B[e + 4 >> 2] = 5;
|
|
2486
|
+
B[e + 8 >> 2] = 191;
|
|
2487
|
+
B[e + 12 >> 2] = 35387;
|
|
2488
2488
|
for (var f = 0; 32 > f; f++) {
|
|
2489
2489
|
z[e + f + 17] = a[f] || 0;
|
|
2490
2490
|
}
|
|
@@ -2511,7 +2511,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2511
2511
|
return -59;
|
|
2512
2512
|
}
|
|
2513
2513
|
e = db();
|
|
2514
|
-
return
|
|
2514
|
+
return B[e >> 2] = 0;
|
|
2515
2515
|
case 21520:
|
|
2516
2516
|
return d.s ? -28 : -59;
|
|
2517
2517
|
case 21531:
|
|
@@ -2619,9 +2619,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2619
2619
|
var k = {};
|
|
2620
2620
|
e.forEach((p, n) => {
|
|
2621
2621
|
var t = g[n], x = p.Sb, y = p.Tb, l = g[n + e.length], u = p.jc, q = p.lc;
|
|
2622
|
-
k[p.Ob] = {read:
|
|
2622
|
+
k[p.Ob] = {read:D => t.fromWireType(x(y, D)), write:(D, F) => {
|
|
2623
2623
|
var w = [];
|
|
2624
|
-
u(q,
|
|
2624
|
+
u(q, D, l.toWireType(w, F));
|
|
2625
2625
|
Nc(w);
|
|
2626
2626
|
}};
|
|
2627
2627
|
});
|
|
@@ -2664,18 +2664,18 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2664
2664
|
y = V(x, y);
|
|
2665
2665
|
var l = Xc(t);
|
|
2666
2666
|
Wc(l, function() {
|
|
2667
|
-
|
|
2667
|
+
md(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2668
2668
|
});
|
|
2669
2669
|
U([a, b, c], d ? [d] : [], u => {
|
|
2670
2670
|
u = u[0];
|
|
2671
2671
|
if (d) {
|
|
2672
2672
|
var q = u.i;
|
|
2673
|
-
var
|
|
2673
|
+
var D = q.M;
|
|
2674
2674
|
} else {
|
|
2675
|
-
|
|
2675
|
+
D = Uc.prototype;
|
|
2676
2676
|
}
|
|
2677
2677
|
u = mc(t, function(...R) {
|
|
2678
|
-
if (Object.getPrototypeOf(this) !==
|
|
2678
|
+
if (Object.getPrototypeOf(this) !== F) {
|
|
2679
2679
|
throw new P("Use 'new' to construct " + t);
|
|
2680
2680
|
}
|
|
2681
2681
|
if (void 0 === w.Z) {
|
|
@@ -2687,20 +2687,20 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2687
2687
|
}
|
|
2688
2688
|
return W.apply(this, R);
|
|
2689
2689
|
});
|
|
2690
|
-
var
|
|
2691
|
-
u.prototype =
|
|
2692
|
-
var w = new Yc(t, u,
|
|
2690
|
+
var F = Object.create(D, {constructor:{value:u},});
|
|
2691
|
+
u.prototype = F;
|
|
2692
|
+
var w = new Yc(t, u, F, y, q, f, k, n);
|
|
2693
2693
|
if (w.C) {
|
|
2694
|
-
var
|
|
2695
|
-
(
|
|
2694
|
+
var M;
|
|
2695
|
+
(M = w.C).na ?? (M.na = []);
|
|
2696
2696
|
w.C.na.push(w);
|
|
2697
2697
|
}
|
|
2698
2698
|
q = new dd(t, w, !0, !1, !1);
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
Hc[a] = {pointerType:
|
|
2699
|
+
M = new dd(t + "*", w, !1, !1, !1);
|
|
2700
|
+
D = new dd(t + " const*", w, !1, !0, !1);
|
|
2701
|
+
Hc[a] = {pointerType:M, Hb:D};
|
|
2702
2702
|
ed(l, u);
|
|
2703
|
-
return [q,
|
|
2703
|
+
return [q, M, D];
|
|
2704
2704
|
});
|
|
2705
2705
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
2706
2706
|
var k = rd(c, d);
|
|
@@ -2709,7 +2709,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2709
2709
|
f = V(e, f);
|
|
2710
2710
|
U([], [a], p => {
|
|
2711
2711
|
function n() {
|
|
2712
|
-
|
|
2712
|
+
md(`Cannot call ${t} due to unbound types`, k);
|
|
2713
2713
|
}
|
|
2714
2714
|
p = p[0];
|
|
2715
2715
|
var t = `${p.name}.${b}`;
|
|
@@ -2734,10 +2734,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2734
2734
|
U([], [a], p => {
|
|
2735
2735
|
p = p[0];
|
|
2736
2736
|
var n = `${p.name}.${b}`, t = {get() {
|
|
2737
|
-
|
|
2737
|
+
md(`Cannot access ${n} due to unbound types`, [c]);
|
|
2738
2738
|
}, enumerable:!0, configurable:!0};
|
|
2739
2739
|
t.set = k ? () => {
|
|
2740
|
-
|
|
2740
|
+
md(`Cannot access ${n} due to unbound types`, [c]);
|
|
2741
2741
|
} : () => {
|
|
2742
2742
|
throw new P(`${n} is a read-only property`);
|
|
2743
2743
|
};
|
|
@@ -2768,7 +2768,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2768
2768
|
throw new P(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2769
2769
|
}
|
|
2770
2770
|
k.i.Z[b - 1] = () => {
|
|
2771
|
-
|
|
2771
|
+
md(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2772
2772
|
};
|
|
2773
2773
|
U([], g, n => {
|
|
2774
2774
|
n.splice(1, 0, null);
|
|
@@ -2784,7 +2784,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2784
2784
|
f = V(e, f);
|
|
2785
2785
|
U([], [a], n => {
|
|
2786
2786
|
function t() {
|
|
2787
|
-
|
|
2787
|
+
md(`Cannot call ${x} due to unbound types`, p);
|
|
2788
2788
|
}
|
|
2789
2789
|
n = n[0];
|
|
2790
2790
|
var x = `${n.name}.${b}`;
|
|
@@ -2805,24 +2805,24 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2805
2805
|
U([], [a], t => {
|
|
2806
2806
|
t = t[0];
|
|
2807
2807
|
var x = `${t.name}.${b}`, y = {get() {
|
|
2808
|
-
|
|
2808
|
+
md(`Cannot access ${x} due to unbound types`, [c, g]);
|
|
2809
2809
|
}, enumerable:!0, configurable:!0};
|
|
2810
|
-
y.set = p ? () =>
|
|
2810
|
+
y.set = p ? () => md(`Cannot access ${x} due to unbound types`, [c, g]) : () => {
|
|
2811
2811
|
throw new P(x + " is a read-only property");
|
|
2812
2812
|
};
|
|
2813
2813
|
Object.defineProperty(t.i.M, b, y);
|
|
2814
2814
|
U([], p ? [c, g] : [c], l => {
|
|
2815
2815
|
var u = l[0], q = {get() {
|
|
2816
|
-
var
|
|
2817
|
-
return u.fromWireType(e(f,
|
|
2816
|
+
var F = td(this, t, x + " getter");
|
|
2817
|
+
return u.fromWireType(e(f, F));
|
|
2818
2818
|
}, enumerable:!0};
|
|
2819
2819
|
if (p) {
|
|
2820
2820
|
p = V(k, p);
|
|
2821
|
-
var
|
|
2822
|
-
q.set = function(
|
|
2823
|
-
var w = td(this, t, x + " setter"),
|
|
2824
|
-
p(n, w,
|
|
2825
|
-
Nc(
|
|
2821
|
+
var D = l[1];
|
|
2822
|
+
q.set = function(F) {
|
|
2823
|
+
var w = td(this, t, x + " setter"), M = [];
|
|
2824
|
+
p(n, w, D.toWireType(M, F));
|
|
2825
|
+
Nc(M);
|
|
2826
2826
|
};
|
|
2827
2827
|
}
|
|
2828
2828
|
Object.defineProperty(t.i.M, b, q);
|
|
@@ -2856,7 +2856,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2856
2856
|
a = sd(a);
|
|
2857
2857
|
e = V(d, e);
|
|
2858
2858
|
Wc(a, function() {
|
|
2859
|
-
|
|
2859
|
+
md(`Cannot call ${a} due to unbound types`, g);
|
|
2860
2860
|
}, b - 1);
|
|
2861
2861
|
U([], g, k => {
|
|
2862
2862
|
ed(a, qd(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
|
|
@@ -2878,7 +2878,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2878
2878
|
Rc(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:yd(b, c, 0 !== d), L:null,});
|
|
2879
2879
|
}, _embind_register_memory_view:(a, b, c) => {
|
|
2880
2880
|
function d(f) {
|
|
2881
|
-
return new e(z.buffer,
|
|
2881
|
+
return new e(z.buffer, E[f + 4 >> 2], E[f >> 2]);
|
|
2882
2882
|
}
|
|
2883
2883
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2884
2884
|
c = Q(c);
|
|
@@ -2887,7 +2887,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2887
2887
|
b = Q(b);
|
|
2888
2888
|
var c = "std::string" === b;
|
|
2889
2889
|
Rc(a, {name:b, fromWireType:function(d) {
|
|
2890
|
-
var e =
|
|
2890
|
+
var e = E[d >> 2], f = d + 4;
|
|
2891
2891
|
if (c) {
|
|
2892
2892
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2893
2893
|
var p = f + k;
|
|
@@ -2917,8 +2917,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2917
2917
|
throw new P("Cannot pass non-string to std::string");
|
|
2918
2918
|
}
|
|
2919
2919
|
var g = c && f ? pb(e) : e.length;
|
|
2920
|
-
var k =
|
|
2921
|
-
|
|
2920
|
+
var k = Zd(4 + g + 1), p = k + 4;
|
|
2921
|
+
E[k >> 2] = g;
|
|
2922
2922
|
if (c && f) {
|
|
2923
2923
|
qb(e, A, p, g + 1);
|
|
2924
2924
|
} else {
|
|
@@ -2947,12 +2947,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2947
2947
|
var d = Ad;
|
|
2948
2948
|
var e = Bd;
|
|
2949
2949
|
var f = Cd;
|
|
2950
|
-
var g = k =>
|
|
2950
|
+
var g = k => Da[k >> 1];
|
|
2951
2951
|
} else {
|
|
2952
|
-
4 === b && (d = Dd, e = Ed, f = Fd, g = k =>
|
|
2952
|
+
4 === b && (d = Dd, e = Ed, f = Fd, g = k => E[k >> 2]);
|
|
2953
2953
|
}
|
|
2954
2954
|
Rc(a, {name:c, fromWireType:k => {
|
|
2955
|
-
for (var p =
|
|
2955
|
+
for (var p = E[k >> 2], n, t = k + 4, x = 0; x <= p; ++x) {
|
|
2956
2956
|
var y = k + 4 + x * b;
|
|
2957
2957
|
if (x == p || 0 == g(y)) {
|
|
2958
2958
|
t = d(t, y - t), void 0 === n ? n = t : (n += String.fromCharCode(0), n += t), t = y + b;
|
|
@@ -2964,8 +2964,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2964
2964
|
if ("string" != typeof p) {
|
|
2965
2965
|
throw new P(`Cannot pass non-string to C++ string type ${c}`);
|
|
2966
2966
|
}
|
|
2967
|
-
var n = f(p), t =
|
|
2968
|
-
|
|
2967
|
+
var n = f(p), t = Zd(4 + n + b);
|
|
2968
|
+
E[t >> 2] = n / b;
|
|
2969
2969
|
e(p, t + 4, n + b);
|
|
2970
2970
|
null !== k && k.push(Bc, t);
|
|
2971
2971
|
return t;
|
|
@@ -2981,7 +2981,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2981
2981
|
Rc(a, {Ic:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
2982
2982
|
}, toWireType:() => {
|
|
2983
2983
|
},});
|
|
2984
|
-
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => A.copyWithin(a, b, b + c),
|
|
2984
|
+
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => A.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
|
|
2985
|
+
throw Infinity;
|
|
2986
|
+
}, _emval_as:(a, b, c) => {
|
|
2985
2987
|
a = pc(a);
|
|
2986
2988
|
b = Dc(b, "emval::as");
|
|
2987
2989
|
return Gd(b, c, a);
|
|
@@ -3024,16 +3026,50 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3024
3026
|
a = Dc(a, "_emval_take_value");
|
|
3025
3027
|
a = a.readValueFromPointer(b);
|
|
3026
3028
|
return qc(a);
|
|
3029
|
+
}, _gmtime_js:function(a, b, c) {
|
|
3030
|
+
a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
|
|
3031
|
+
B[c >> 2] = a.getUTCSeconds();
|
|
3032
|
+
B[c + 4 >> 2] = a.getUTCMinutes();
|
|
3033
|
+
B[c + 8 >> 2] = a.getUTCHours();
|
|
3034
|
+
B[c + 12 >> 2] = a.getUTCDate();
|
|
3035
|
+
B[c + 16 >> 2] = a.getUTCMonth();
|
|
3036
|
+
B[c + 20 >> 2] = a.getUTCFullYear() - 1900;
|
|
3037
|
+
B[c + 24 >> 2] = a.getUTCDay();
|
|
3038
|
+
B[c + 28 >> 2] = (a.getTime() - Date.UTC(a.getUTCFullYear(), 0, 1, 0, 0, 0, 0)) / 864E5 | 0;
|
|
3039
|
+
}, _localtime_js:function(a, b, c) {
|
|
3040
|
+
a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
|
|
3041
|
+
B[c >> 2] = a.getSeconds();
|
|
3042
|
+
B[c + 4 >> 2] = a.getMinutes();
|
|
3043
|
+
B[c + 8 >> 2] = a.getHours();
|
|
3044
|
+
B[c + 12 >> 2] = a.getDate();
|
|
3045
|
+
B[c + 16 >> 2] = a.getMonth();
|
|
3046
|
+
B[c + 20 >> 2] = a.getFullYear() - 1900;
|
|
3047
|
+
B[c + 24 >> 2] = a.getDay();
|
|
3048
|
+
B[c + 28 >> 2] = (Nd(a.getFullYear()) ? Od : Pd)[a.getMonth()] + a.getDate() - 1 | 0;
|
|
3049
|
+
B[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
|
|
3050
|
+
b = (new Date(a.getFullYear(), 6, 1)).getTimezoneOffset();
|
|
3051
|
+
var d = (new Date(a.getFullYear(), 0, 1)).getTimezoneOffset();
|
|
3052
|
+
B[c + 32 >> 2] = (b != d && a.getTimezoneOffset() == Math.min(d, b)) | 0;
|
|
3053
|
+
}, _tzset_js:(a, b, c, d) => {
|
|
3054
|
+
var e = (new Date()).getFullYear(), f = new Date(e, 0, 1), g = new Date(e, 6, 1);
|
|
3055
|
+
e = f.getTimezoneOffset();
|
|
3056
|
+
var k = g.getTimezoneOffset();
|
|
3057
|
+
E[a >> 2] = 60 * Math.max(e, k);
|
|
3058
|
+
B[b >> 2] = Number(e != k);
|
|
3059
|
+
a = p => p.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
|
|
3060
|
+
f = a(f);
|
|
3061
|
+
g = a(g);
|
|
3062
|
+
k < e ? (qb(f, A, c, 17), qb(g, A, d, 17)) : (qb(f, A, d, 17), qb(g, A, c, 17));
|
|
3027
3063
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
3028
|
-
|
|
3064
|
+
Qd.length = 0;
|
|
3029
3065
|
for (var d; d = A[b++];) {
|
|
3030
3066
|
var e = 105 != d;
|
|
3031
3067
|
e &= 112 != d;
|
|
3032
3068
|
c += e && c % 8 ? 4 : 0;
|
|
3033
|
-
|
|
3069
|
+
Qd.push(112 == d ? E[c >> 2] : 105 == d ? B[c >> 2] : Ha[c >> 3]);
|
|
3034
3070
|
c += e ? 8 : 4;
|
|
3035
3071
|
}
|
|
3036
|
-
return bb[a](...
|
|
3072
|
+
return bb[a](...Qd);
|
|
3037
3073
|
}, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:a => {
|
|
3038
3074
|
var b = A.length;
|
|
3039
3075
|
a >>>= 0;
|
|
@@ -3063,9 +3099,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3063
3099
|
return !1;
|
|
3064
3100
|
}, environ_get:(a, b) => {
|
|
3065
3101
|
var c = 0;
|
|
3066
|
-
|
|
3102
|
+
Td().forEach((d, e) => {
|
|
3067
3103
|
var f = b + c;
|
|
3068
|
-
e =
|
|
3104
|
+
e = E[a + 4 * e >> 2] = f;
|
|
3069
3105
|
for (f = 0; f < d.length; ++f) {
|
|
3070
3106
|
z[e++] = d.charCodeAt(f);
|
|
3071
3107
|
}
|
|
@@ -3074,11 +3110,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3074
3110
|
});
|
|
3075
3111
|
return 0;
|
|
3076
3112
|
}, environ_sizes_get:(a, b) => {
|
|
3077
|
-
var c =
|
|
3078
|
-
|
|
3113
|
+
var c = Td();
|
|
3114
|
+
E[a >> 2] = c.length;
|
|
3079
3115
|
var d = 0;
|
|
3080
3116
|
c.forEach(e => d += e.length + 1);
|
|
3081
|
-
|
|
3117
|
+
E[b >> 2] = d;
|
|
3082
3118
|
return 0;
|
|
3083
3119
|
}, fd_close:function(a) {
|
|
3084
3120
|
try {
|
|
@@ -3108,7 +3144,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3108
3144
|
var e = Tb(a);
|
|
3109
3145
|
a = b;
|
|
3110
3146
|
for (var f, g = b = 0; g < c; g++) {
|
|
3111
|
-
var k =
|
|
3147
|
+
var k = E[a >> 2], p = E[a + 4 >> 2];
|
|
3112
3148
|
a += 8;
|
|
3113
3149
|
var n = e, t = f, x = z;
|
|
3114
3150
|
if (0 > p || 0 > t) {
|
|
@@ -3147,13 +3183,13 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3147
3183
|
}
|
|
3148
3184
|
q = b;
|
|
3149
3185
|
}
|
|
3150
|
-
|
|
3186
|
+
E[d >> 2] = q;
|
|
3151
3187
|
return 0;
|
|
3152
|
-
} catch (
|
|
3153
|
-
if ("undefined" == typeof lc || "ErrnoError" !==
|
|
3154
|
-
throw
|
|
3188
|
+
} catch (D) {
|
|
3189
|
+
if ("undefined" == typeof lc || "ErrnoError" !== D.name) {
|
|
3190
|
+
throw D;
|
|
3155
3191
|
}
|
|
3156
|
-
return
|
|
3192
|
+
return D.$;
|
|
3157
3193
|
}
|
|
3158
3194
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3159
3195
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3164,8 +3200,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3164
3200
|
var f = Tb(a);
|
|
3165
3201
|
hc(f, b, d);
|
|
3166
3202
|
Ya = [f.position >>> 0, (Xa = f.position, 1.0 <= +Math.abs(Xa) ? 0.0 < Xa ? +Math.floor(Xa / 4294967296.0) >>> 0 : ~~+Math.ceil((Xa - +(~~Xa >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3167
|
-
|
|
3168
|
-
|
|
3203
|
+
B[e >> 2] = Ya[0];
|
|
3204
|
+
B[e + 4 >> 2] = Ya[1];
|
|
3169
3205
|
f.Ka && 0 === b && 0 === d && (f.Ka = null);
|
|
3170
3206
|
return 0;
|
|
3171
3207
|
} catch (g) {
|
|
@@ -3180,7 +3216,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3180
3216
|
var e = Tb(a);
|
|
3181
3217
|
a = b;
|
|
3182
3218
|
for (var f, g = b = 0; g < c; g++) {
|
|
3183
|
-
var k =
|
|
3219
|
+
var k = E[a >> 2], p = E[a + 4 >> 2];
|
|
3184
3220
|
a += 8;
|
|
3185
3221
|
var n = e, t = k, x = p, y = f, l = z;
|
|
3186
3222
|
if (0 > x || 0 > y) {
|
|
@@ -3207,17 +3243,17 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3207
3243
|
}
|
|
3208
3244
|
var q = n.m.write(n, l, t, x, y, void 0);
|
|
3209
3245
|
u || (n.position += q);
|
|
3210
|
-
var
|
|
3211
|
-
if (0 >
|
|
3212
|
-
var
|
|
3246
|
+
var D = q;
|
|
3247
|
+
if (0 > D) {
|
|
3248
|
+
var F = -1;
|
|
3213
3249
|
break a;
|
|
3214
3250
|
}
|
|
3215
|
-
b +=
|
|
3216
|
-
"undefined" != typeof f && (f +=
|
|
3251
|
+
b += D;
|
|
3252
|
+
"undefined" != typeof f && (f += D);
|
|
3217
3253
|
}
|
|
3218
|
-
|
|
3254
|
+
F = b;
|
|
3219
3255
|
}
|
|
3220
|
-
|
|
3256
|
+
E[d >> 2] = F;
|
|
3221
3257
|
return 0;
|
|
3222
3258
|
} catch (w) {
|
|
3223
3259
|
if ("undefined" == typeof lc || "ErrnoError" !== w.name) {
|
|
@@ -3225,9 +3261,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3225
3261
|
}
|
|
3226
3262
|
return w.$;
|
|
3227
3263
|
}
|
|
3228
|
-
}, isWindowsBrowser:function() {
|
|
3264
|
+
}, invoke_vii:$d, isWindowsBrowser:function() {
|
|
3229
3265
|
return -1 < navigator.platform.indexOf("Win");
|
|
3230
|
-
}, strftime_l:(a, b, c, d) =>
|
|
3266
|
+
}, strftime:Wd, strftime_l:(a, b, c, d) => Wd(a, b, c, d)}, X = function() {
|
|
3231
3267
|
function a(c) {
|
|
3232
3268
|
X = c.exports;
|
|
3233
3269
|
Aa = X.memory;
|
|
@@ -3239,7 +3275,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3239
3275
|
0 == Na && (null !== Oa && (clearInterval(Oa), Oa = null), Pa && (c = Pa, Pa = null, c()));
|
|
3240
3276
|
return X;
|
|
3241
3277
|
}
|
|
3242
|
-
var b = {env:
|
|
3278
|
+
var b = {env:ae, wasi_snapshot_preview1:ae,};
|
|
3243
3279
|
Na++;
|
|
3244
3280
|
m.monitorRunDependencies?.(Na);
|
|
3245
3281
|
if (m.instantiateWasm) {
|
|
@@ -3254,10 +3290,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3254
3290
|
a(c.instance);
|
|
3255
3291
|
}).catch(ca);
|
|
3256
3292
|
return {};
|
|
3257
|
-
}(), Bc = a => (Bc = X.free)(a),
|
|
3293
|
+
}(), Bc = a => (Bc = X.free)(a), Zd = a => (Zd = X.malloc)(a), Ac = a => (Ac = X.__getTypeName)(a), Za = m._ma_device__on_notification_unlocked = a => (Za = m._ma_device__on_notification_unlocked = X.ma_device__on_notification_unlocked)(a);
|
|
3258
3294
|
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = X.ma_malloc_emscripten)(a, b);
|
|
3259
3295
|
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = X.ma_free_emscripten)(a, b);
|
|
3260
|
-
var $a = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => ($a = m._ma_device_process_pcm_frames_capture__webaudio = X.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), ab = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (ab = m._ma_device_process_pcm_frames_playback__webaudio = X.ma_device_process_pcm_frames_playback__webaudio)(a, b, c);
|
|
3296
|
+
var $a = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => ($a = m._ma_device_process_pcm_frames_capture__webaudio = X.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), ab = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (ab = m._ma_device_process_pcm_frames_playback__webaudio = X.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), be = (a, b) => (be = X.setThrew)(a, b), ce = a => (ce = X._emscripten_stack_restore)(a), de = () => (de = X.emscripten_stack_get_current)();
|
|
3261
3297
|
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = X.dynCall_iiji)(a, b, c, d, e);
|
|
3262
3298
|
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = X.dynCall_jiji)(a, b, c, d, e);
|
|
3263
3299
|
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = X.dynCall_iiiji)(a, b, c, d, e, f);
|
|
@@ -3267,14 +3303,26 @@ m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = X.dynCall_viijii
|
|
|
3267
3303
|
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = X.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3268
3304
|
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj = X.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
|
|
3269
3305
|
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj = X.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3306
|
+
function $d(a, b, c) {
|
|
3307
|
+
var d = de();
|
|
3308
|
+
try {
|
|
3309
|
+
hd(a)(b, c);
|
|
3310
|
+
} catch (e) {
|
|
3311
|
+
ce(d);
|
|
3312
|
+
if (e !== e + 0) {
|
|
3313
|
+
throw e;
|
|
3314
|
+
}
|
|
3315
|
+
be(1, 0);
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3318
|
+
var ee;
|
|
3319
|
+
Pa = function fe() {
|
|
3320
|
+
ee || ge();
|
|
3321
|
+
ee || (Pa = fe);
|
|
3274
3322
|
};
|
|
3275
|
-
function
|
|
3323
|
+
function ge() {
|
|
3276
3324
|
function a() {
|
|
3277
|
-
if (!
|
|
3325
|
+
if (!ee && (ee = !0, m.calledRun = !0, !Ba)) {
|
|
3278
3326
|
m.noFSInit || ic || (ic = !0, m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? jc("stdin", m.stdin) : ec("/dev/tty", "/dev/stdin"), m.stdout ? jc("stdout", null, m.stdout) : ec("/dev/tty", "/dev/stdout"), m.stderr ? jc("stderr", null, m.stderr) : ec("/dev/tty1", "/dev/stderr"), fc("/dev/stdin", 0), fc("/dev/stdout", 1), fc("/dev/stderr", 1));
|
|
3279
3327
|
Jb = !1;
|
|
3280
3328
|
cb(Ka);
|
|
@@ -3311,7 +3359,7 @@ if (m.preInit) {
|
|
|
3311
3359
|
m.preInit.pop()();
|
|
3312
3360
|
}
|
|
3313
3361
|
}
|
|
3314
|
-
|
|
3362
|
+
ge();
|
|
3315
3363
|
moduleRtn = da;
|
|
3316
3364
|
|
|
3317
3365
|
|
|
@@ -3327,7 +3375,7 @@ moduleRtn = da;
|
|
|
3327
3375
|
/* 2 */
|
|
3328
3376
|
/***/ ((module) => {
|
|
3329
3377
|
|
|
3330
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.33.
|
|
3378
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.33.2","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3331
3379
|
|
|
3332
3380
|
/***/ }),
|
|
3333
3381
|
/* 3 */
|