@rive-app/canvas-advanced 2.33.1 → 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/canvas_advanced.mjs +338 -290
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_fallback.wasm +0 -0
package/canvas_advanced.mjs
CHANGED
|
@@ -155,38 +155,38 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
q = new Proxy(q, {get(
|
|
159
|
-
if (
|
|
160
|
-
if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof
|
|
158
|
+
q = new Proxy(q, {get(F, w) {
|
|
159
|
+
if (F.isContextLost()) {
|
|
160
|
+
if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof F[w]) {
|
|
161
161
|
return function() {
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
} else {
|
|
165
|
-
return "function" === typeof
|
|
166
|
-
return
|
|
167
|
-
} :
|
|
165
|
+
return "function" === typeof F[w] ? function(...M) {
|
|
166
|
+
return F[w].apply(F, M);
|
|
167
|
+
} : F[w];
|
|
168
168
|
}
|
|
169
|
-
}, set(
|
|
170
|
-
if (
|
|
169
|
+
}, set(F, w, M) {
|
|
170
|
+
if (F.isContextLost()) {
|
|
171
171
|
p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + w), p = !0);
|
|
172
172
|
} else {
|
|
173
|
-
return
|
|
173
|
+
return F[w] = M, !0;
|
|
174
174
|
}
|
|
175
175
|
},});
|
|
176
176
|
d = Math.min(q.getParameter(q.MAX_RENDERBUFFER_SIZE), q.getParameter(q.MAX_TEXTURE_SIZE));
|
|
177
|
-
function
|
|
177
|
+
function D(F, w, M) {
|
|
178
178
|
w = q.createShader(w);
|
|
179
|
-
q.shaderSource(w,
|
|
179
|
+
q.shaderSource(w, M);
|
|
180
180
|
q.compileShader(w);
|
|
181
|
-
|
|
182
|
-
if (0 < (
|
|
183
|
-
throw
|
|
181
|
+
M = q.getShaderInfoLog(w);
|
|
182
|
+
if (0 < (M || "").length) {
|
|
183
|
+
throw M;
|
|
184
184
|
}
|
|
185
|
-
q.attachShader(
|
|
185
|
+
q.attachShader(F, w);
|
|
186
186
|
}
|
|
187
187
|
l = q.createProgram();
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
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 }");
|
|
189
|
+
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 }");
|
|
190
190
|
q.bindAttribLocation(l, 0, "vertex");
|
|
191
191
|
q.bindAttribLocation(l, 1, "uv");
|
|
192
192
|
q.linkProgram(l);
|
|
@@ -233,55 +233,55 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
233
233
|
return u;
|
|
234
234
|
};
|
|
235
235
|
const n = new ia(8), t = new ia(8), x = new ia(10), y = new ia(10);
|
|
236
|
-
this.Mb = function(l, u, q,
|
|
236
|
+
this.Mb = function(l, u, q, D, F) {
|
|
237
237
|
if (a()) {
|
|
238
|
-
var w = n.push(l),
|
|
238
|
+
var w = n.push(l), M = t.push(u);
|
|
239
239
|
if (b.canvas) {
|
|
240
|
-
if (b.canvas.width != w || b.canvas.height !=
|
|
241
|
-
b.canvas.width = w, b.canvas.height =
|
|
240
|
+
if (b.canvas.width != w || b.canvas.height != M) {
|
|
241
|
+
b.canvas.width = w, b.canvas.height = M;
|
|
242
242
|
}
|
|
243
|
-
b.viewport(0,
|
|
243
|
+
b.viewport(0, M - u, l, u);
|
|
244
244
|
b.disable(b.SCISSOR_TEST);
|
|
245
245
|
b.clearColor(0, 0, 0, 0);
|
|
246
246
|
b.clear(b.COLOR_BUFFER_BIT);
|
|
247
247
|
b.enable(b.SCISSOR_TEST);
|
|
248
|
-
q.sort((
|
|
249
|
-
w = x.push(
|
|
248
|
+
q.sort((I, aa) => aa.ub - I.ub);
|
|
249
|
+
w = x.push(D);
|
|
250
250
|
g != w && (b.bufferData(b.ARRAY_BUFFER, 8 * w, b.DYNAMIC_DRAW), g = w);
|
|
251
251
|
w = 0;
|
|
252
252
|
for (var R of q) {
|
|
253
253
|
b.bufferSubData(b.ARRAY_BUFFER, w, R.Sa), w += 4 * R.Sa.length;
|
|
254
254
|
}
|
|
255
|
-
console.assert(w == 4 *
|
|
255
|
+
console.assert(w == 4 * D);
|
|
256
256
|
for (var W of q) {
|
|
257
257
|
b.bufferSubData(b.ARRAY_BUFFER, w, W.Ab), w += 4 * W.Ab.length;
|
|
258
258
|
}
|
|
259
|
-
console.assert(w == 8 *
|
|
260
|
-
w = y.push(
|
|
259
|
+
console.assert(w == 8 * D);
|
|
260
|
+
w = y.push(F);
|
|
261
261
|
k != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), k = w);
|
|
262
262
|
R = 0;
|
|
263
263
|
for (var pa of q) {
|
|
264
264
|
b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, R, pa.indices), R += 2 * pa.indices.length;
|
|
265
265
|
}
|
|
266
|
-
console.assert(R == 2 *
|
|
266
|
+
console.assert(R == 2 * F);
|
|
267
267
|
pa = 0;
|
|
268
268
|
W = !0;
|
|
269
269
|
w = R = 0;
|
|
270
|
-
for (const
|
|
271
|
-
|
|
272
|
-
|
|
270
|
+
for (const I of q) {
|
|
271
|
+
I.image.Ia != pa && (b.bindTexture(b.TEXTURE_2D, I.image.Ha || null), pa = I.image.Ia);
|
|
272
|
+
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);
|
|
273
273
|
q = 2 / l;
|
|
274
274
|
const aa = -2 / u;
|
|
275
|
-
b.uniform4f(e,
|
|
276
|
-
b.uniform2f(f,
|
|
275
|
+
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);
|
|
276
|
+
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);
|
|
277
277
|
b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
|
|
278
|
-
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 *
|
|
279
|
-
b.drawElements(b.TRIANGLES,
|
|
280
|
-
w += 4 *
|
|
281
|
-
R += 2 *
|
|
278
|
+
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * D);
|
|
279
|
+
b.drawElements(b.TRIANGLES, I.indices.length, b.UNSIGNED_SHORT, R);
|
|
280
|
+
w += 4 * I.Sa.length;
|
|
281
|
+
R += 2 * I.indices.length;
|
|
282
282
|
}
|
|
283
|
-
console.assert(w == 4 *
|
|
284
|
-
console.assert(R == 2 *
|
|
283
|
+
console.assert(w == 4 * D);
|
|
284
|
+
console.assert(R == 2 * F);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
};
|
|
@@ -330,14 +330,14 @@ m.onRuntimeInitialized = function() {
|
|
|
330
330
|
return "rgba(" + ((16711680 & r) >>> 16) + "," + ((65280 & r) >>> 8) + "," + ((255 & r) >>> 0) + "," + ((4278190080 & r) >>> 24) / 255 + ")";
|
|
331
331
|
}
|
|
332
332
|
function c() {
|
|
333
|
-
0 <
|
|
334
|
-
for (const r of
|
|
333
|
+
0 < M.length && (la.Mb(w.drawWidth(), w.drawHeight(), M, R, W), M = [], W = R = 0, w.reset(512, 512));
|
|
334
|
+
for (const r of F) {
|
|
335
335
|
for (const v of r.H) {
|
|
336
336
|
v();
|
|
337
337
|
}
|
|
338
338
|
r.H = [];
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
F.clear();
|
|
341
341
|
}
|
|
342
342
|
ma && ma();
|
|
343
343
|
var d = m.RenderPaintStyle;
|
|
@@ -355,42 +355,42 @@ m.onRuntimeInitialized = function() {
|
|
|
355
355
|
}, decode:function(r) {
|
|
356
356
|
var v = this;
|
|
357
357
|
v.va && v.va(v);
|
|
358
|
-
var
|
|
358
|
+
var G = new Image();
|
|
359
359
|
v.Va = URL.createObjectURL(new Blob([r], {type:"image/png",}));
|
|
360
|
-
|
|
361
|
-
v.Cb =
|
|
362
|
-
v.Ha = la.Ib(
|
|
363
|
-
v.size(
|
|
360
|
+
G.onload = function() {
|
|
361
|
+
v.Cb = G;
|
|
362
|
+
v.Ha = la.Ib(G);
|
|
363
|
+
v.size(G.width, G.height);
|
|
364
364
|
v.ka && v.ka(v);
|
|
365
365
|
};
|
|
366
|
-
|
|
366
|
+
G.src = v.Va;
|
|
367
367
|
},}), q = e.extend("CanvasRenderPath", {__construct:function() {
|
|
368
368
|
this.__parent.__construct.call(this);
|
|
369
369
|
this.T = new Path2D();
|
|
370
370
|
}, rewind:function() {
|
|
371
371
|
this.T = new Path2D();
|
|
372
|
-
}, addPath:function(r, v,
|
|
373
|
-
var
|
|
372
|
+
}, addPath:function(r, v, G, J, C, H, K) {
|
|
373
|
+
var L = this.T, Z = L.addPath;
|
|
374
374
|
r = r.T;
|
|
375
375
|
const S = new DOMMatrix();
|
|
376
376
|
S.a = v;
|
|
377
|
-
S.b =
|
|
378
|
-
S.c =
|
|
379
|
-
S.d =
|
|
380
|
-
S.e =
|
|
381
|
-
S.f =
|
|
382
|
-
Z.call(
|
|
377
|
+
S.b = G;
|
|
378
|
+
S.c = J;
|
|
379
|
+
S.d = C;
|
|
380
|
+
S.e = H;
|
|
381
|
+
S.f = K;
|
|
382
|
+
Z.call(L, r, S);
|
|
383
383
|
}, fillRule:function(r) {
|
|
384
384
|
this.Ua = r;
|
|
385
385
|
}, moveTo:function(r, v) {
|
|
386
386
|
this.T.moveTo(r, v);
|
|
387
387
|
}, lineTo:function(r, v) {
|
|
388
388
|
this.T.lineTo(r, v);
|
|
389
|
-
}, cubicTo:function(r, v,
|
|
390
|
-
this.T.bezierCurveTo(r, v,
|
|
389
|
+
}, cubicTo:function(r, v, G, J, C, H) {
|
|
390
|
+
this.T.bezierCurveTo(r, v, G, J, C, H);
|
|
391
391
|
}, close:function() {
|
|
392
392
|
this.T.closePath();
|
|
393
|
-
},}),
|
|
393
|
+
},}), D = f.extend("CanvasRenderPaint", {color:function(r) {
|
|
394
394
|
this.Wa = b(r);
|
|
395
395
|
}, thickness:function(r) {
|
|
396
396
|
this.Fb = r;
|
|
@@ -422,44 +422,44 @@ m.onRuntimeInitialized = function() {
|
|
|
422
422
|
this.Bb = a(r);
|
|
423
423
|
}, clearGradient:function() {
|
|
424
424
|
this.ia = null;
|
|
425
|
-
}, linearGradient:function(r, v,
|
|
426
|
-
this.ia = {wb:r, xb:v, bb:
|
|
427
|
-
}, radialGradient:function(r, v,
|
|
428
|
-
this.ia = {wb:r, xb:v, bb:
|
|
425
|
+
}, linearGradient:function(r, v, G, J) {
|
|
426
|
+
this.ia = {wb:r, xb:v, bb:G, cb:J, Pa:[],};
|
|
427
|
+
}, radialGradient:function(r, v, G, J) {
|
|
428
|
+
this.ia = {wb:r, xb:v, bb:G, cb:J, Pa:[], $b:!0,};
|
|
429
429
|
}, addStop:function(r, v) {
|
|
430
430
|
this.ia.Pa.push({color:r, stop:v,});
|
|
431
431
|
}, completeGradient:function() {
|
|
432
|
-
}, draw:function(r, v,
|
|
433
|
-
let
|
|
434
|
-
var
|
|
432
|
+
}, draw:function(r, v, G) {
|
|
433
|
+
let J = this.Eb;
|
|
434
|
+
var C = this.Wa, H = this.ia;
|
|
435
435
|
r.globalCompositeOperation = this.Bb;
|
|
436
|
-
if (null !=
|
|
437
|
-
|
|
438
|
-
var
|
|
439
|
-
const Z =
|
|
440
|
-
var
|
|
441
|
-
const S =
|
|
442
|
-
|
|
436
|
+
if (null != H) {
|
|
437
|
+
C = H.wb;
|
|
438
|
+
var K = H.xb;
|
|
439
|
+
const Z = H.bb;
|
|
440
|
+
var L = H.cb;
|
|
441
|
+
const S = H.Pa;
|
|
442
|
+
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);
|
|
443
443
|
for (let Y = 0, T = S.length; Y < T; Y++) {
|
|
444
|
-
|
|
444
|
+
K = S[Y], C.addColorStop(K.stop, b(K.color));
|
|
445
445
|
}
|
|
446
|
-
this.Wa =
|
|
446
|
+
this.Wa = C;
|
|
447
447
|
this.ia = null;
|
|
448
448
|
}
|
|
449
|
-
switch(
|
|
449
|
+
switch(J) {
|
|
450
450
|
case x:
|
|
451
|
-
r.strokeStyle =
|
|
451
|
+
r.strokeStyle = C;
|
|
452
452
|
r.lineWidth = this.Fb;
|
|
453
453
|
r.lineCap = this.Fa;
|
|
454
454
|
r.lineJoin = this.Ga;
|
|
455
455
|
r.stroke(v);
|
|
456
456
|
break;
|
|
457
457
|
case t:
|
|
458
|
-
r.fillStyle =
|
|
458
|
+
r.fillStyle = C, r.fill(v, G);
|
|
459
459
|
}
|
|
460
460
|
},});
|
|
461
|
-
const
|
|
462
|
-
let w = null,
|
|
461
|
+
const F = new Set();
|
|
462
|
+
let w = null, M = [], R = 0, W = 0;
|
|
463
463
|
var pa = m.CanvasRenderer = g.extend("Renderer", {__construct:function(r) {
|
|
464
464
|
this.__parent.__construct.call(this);
|
|
465
465
|
this.S = [1, 0, 0, 1, 0, 0];
|
|
@@ -476,98 +476,98 @@ m.onRuntimeInitialized = function() {
|
|
|
476
476
|
}
|
|
477
477
|
this.S.splice(r);
|
|
478
478
|
this.H.push(this.B.restore.bind(this.B));
|
|
479
|
-
}, transform:function(r, v,
|
|
480
|
-
const
|
|
481
|
-
|
|
482
|
-
this.H.push(this.B.transform.bind(this.B, r, v,
|
|
479
|
+
}, transform:function(r, v, G, J, C, H) {
|
|
480
|
+
const K = this.S, L = K.length - 6;
|
|
481
|
+
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]);
|
|
482
|
+
this.H.push(this.B.transform.bind(this.B, r, v, G, J, C, H));
|
|
483
483
|
}, rotate:function(r) {
|
|
484
484
|
const v = Math.sin(r);
|
|
485
485
|
r = Math.cos(r);
|
|
486
486
|
this.transform(r, v, -v, r, 0, 0);
|
|
487
487
|
}, _drawPath:function(r, v) {
|
|
488
488
|
this.H.push(v.draw.bind(v, this.B, r.T, r.Ua === y ? "evenodd" : "nonzero"));
|
|
489
|
-
}, _drawRiveImage:function(r, v,
|
|
490
|
-
var
|
|
491
|
-
if (
|
|
492
|
-
var
|
|
489
|
+
}, _drawRiveImage:function(r, v, G, J) {
|
|
490
|
+
var C = r.Cb;
|
|
491
|
+
if (C) {
|
|
492
|
+
var H = this.B, K = a(G);
|
|
493
493
|
this.H.push(function() {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
494
|
+
H.globalCompositeOperation = K;
|
|
495
|
+
H.globalAlpha = J;
|
|
496
|
+
H.drawImage(C, 0, 0);
|
|
497
|
+
H.globalAlpha = 1;
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
}, _getMatrix:function(r) {
|
|
501
|
-
const v = this.S,
|
|
502
|
-
for (let
|
|
503
|
-
r[
|
|
501
|
+
const v = this.S, G = v.length - 6;
|
|
502
|
+
for (let J = 0; 6 > J; ++J) {
|
|
503
|
+
r[J] = v[G + J];
|
|
504
504
|
}
|
|
505
|
-
}, _drawImageMesh:function(r, v,
|
|
505
|
+
}, _drawImageMesh:function(r, v, G, J, C, H, K, L, Z, S, Y) {
|
|
506
506
|
v = this.B.canvas.width;
|
|
507
507
|
var T = this.B.canvas.height;
|
|
508
|
-
const
|
|
509
|
-
|
|
508
|
+
const Yb = S - L, Zb = Y - Z;
|
|
509
|
+
L = Math.max(L, 0);
|
|
510
510
|
Z = Math.max(Z, 0);
|
|
511
511
|
S = Math.min(S, v);
|
|
512
512
|
Y = Math.min(Y, T);
|
|
513
|
-
const
|
|
514
|
-
console.assert(
|
|
515
|
-
console.assert(
|
|
516
|
-
if (!(0 >=
|
|
517
|
-
S =
|
|
513
|
+
const Ea = S - L, Fa = Y - Z;
|
|
514
|
+
console.assert(Ea <= Math.min(Yb, v));
|
|
515
|
+
console.assert(Fa <= Math.min(Zb, T));
|
|
516
|
+
if (!(0 >= Ea || 0 >= Fa)) {
|
|
517
|
+
S = Ea < Yb || Fa < Zb;
|
|
518
518
|
v = Y = 1;
|
|
519
|
-
var qa = Math.ceil(
|
|
519
|
+
var qa = Math.ceil(Ea * Y), ra = Math.ceil(Fa * v);
|
|
520
520
|
T = la.ac();
|
|
521
521
|
qa > T && (Y *= T / qa, qa = T);
|
|
522
522
|
ra > T && (v *= T / ra, ra = T);
|
|
523
523
|
w || (w = new m.DynamicRectanizer(T), w.reset(512, 512));
|
|
524
524
|
T = w.addRect(qa, ra);
|
|
525
|
-
0 > T && (c(),
|
|
526
|
-
var
|
|
527
|
-
|
|
528
|
-
R +=
|
|
529
|
-
W +=
|
|
530
|
-
var xa = this.B,
|
|
525
|
+
0 > T && (c(), F.add(this), T = w.addRect(qa, ra), console.assert(0 <= T));
|
|
526
|
+
var $b = T & 65535, ac = T >> 16;
|
|
527
|
+
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),});
|
|
528
|
+
R += C.length;
|
|
529
|
+
W += K.length;
|
|
530
|
+
var xa = this.B, od = a(G);
|
|
531
531
|
this.H.push(function() {
|
|
532
532
|
xa.save();
|
|
533
533
|
xa.resetTransform();
|
|
534
|
-
xa.globalCompositeOperation =
|
|
535
|
-
xa.globalAlpha =
|
|
536
|
-
const
|
|
537
|
-
|
|
534
|
+
xa.globalCompositeOperation = od;
|
|
535
|
+
xa.globalAlpha = J;
|
|
536
|
+
const bc = la.canvas();
|
|
537
|
+
bc && xa.drawImage(bc, $b, ac, qa, ra, L, Z, Ea, Fa);
|
|
538
538
|
xa.restore();
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
541
|
}, _clipPath:function(r) {
|
|
542
542
|
this.H.push(this.B.clip.bind(this.B, r.T, r.Ua === y ? "evenodd" : "nonzero"));
|
|
543
543
|
}, clear:function() {
|
|
544
|
-
|
|
544
|
+
F.add(this);
|
|
545
545
|
this.H.push(this.B.clearRect.bind(this.B, 0, 0, this.Ta.width, this.Ta.height));
|
|
546
546
|
}, flush:function() {
|
|
547
547
|
}, translate:function(r, v) {
|
|
548
548
|
this.transform(1, 0, 0, 1, r, v);
|
|
549
549
|
},});
|
|
550
550
|
m.makeRenderer = function(r) {
|
|
551
|
-
const v = new pa(r),
|
|
552
|
-
return new Proxy(v, {get(
|
|
553
|
-
if ("function" === typeof
|
|
554
|
-
return function(...
|
|
555
|
-
return
|
|
551
|
+
const v = new pa(r), G = v.B;
|
|
552
|
+
return new Proxy(v, {get(J, C) {
|
|
553
|
+
if ("function" === typeof J[C]) {
|
|
554
|
+
return function(...H) {
|
|
555
|
+
return J[C].apply(J, H);
|
|
556
556
|
};
|
|
557
557
|
}
|
|
558
|
-
if ("function" === typeof
|
|
559
|
-
if (-1 < ka.indexOf(
|
|
560
|
-
throw Error("RiveException: Method call to '" +
|
|
558
|
+
if ("function" === typeof G[C]) {
|
|
559
|
+
if (-1 < ka.indexOf(C)) {
|
|
560
|
+
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.");
|
|
561
561
|
}
|
|
562
|
-
return function(...
|
|
563
|
-
v.H.push(
|
|
562
|
+
return function(...H) {
|
|
563
|
+
v.H.push(G[C].bind(G, ...H));
|
|
564
564
|
};
|
|
565
565
|
}
|
|
566
|
-
return
|
|
567
|
-
}, set(
|
|
568
|
-
if (
|
|
566
|
+
return J[C];
|
|
567
|
+
}, set(J, C, H) {
|
|
568
|
+
if (C in G) {
|
|
569
569
|
return v.H.push(() => {
|
|
570
|
-
|
|
570
|
+
G[C] = H;
|
|
571
571
|
}), !0;
|
|
572
572
|
}
|
|
573
573
|
},});
|
|
@@ -576,7 +576,7 @@ m.onRuntimeInitialized = function() {
|
|
|
576
576
|
(new u({ka:v})).decode(r);
|
|
577
577
|
};
|
|
578
578
|
m.renderFactory = {makeRenderPaint:function() {
|
|
579
|
-
return new
|
|
579
|
+
return new D();
|
|
580
580
|
}, makeRenderPath:function() {
|
|
581
581
|
return new q();
|
|
582
582
|
}, makeRenderImage:function() {
|
|
@@ -591,23 +591,23 @@ m.onRuntimeInitialized = function() {
|
|
|
591
591
|
}
|
|
592
592
|
},});
|
|
593
593
|
},};
|
|
594
|
-
let
|
|
595
|
-
m.load = function(r, v,
|
|
596
|
-
const
|
|
597
|
-
void 0 !== v &&
|
|
598
|
-
|
|
599
|
-
return new Promise(function(
|
|
600
|
-
let
|
|
594
|
+
let I = m.load, aa = null;
|
|
595
|
+
m.load = function(r, v, G = !0) {
|
|
596
|
+
const J = new m.FallbackFileAssetLoader();
|
|
597
|
+
void 0 !== v && J.addLoader(v);
|
|
598
|
+
G && (v = new m.CDNFileAssetLoader(), J.addLoader(v));
|
|
599
|
+
return new Promise(function(C) {
|
|
600
|
+
let H = null;
|
|
601
601
|
aa = {total:0, loaded:0, ready:function() {
|
|
602
|
-
|
|
602
|
+
C(H);
|
|
603
603
|
},};
|
|
604
|
-
|
|
605
|
-
0 == aa.total &&
|
|
604
|
+
H = I(r, J);
|
|
605
|
+
0 == aa.total && C(H);
|
|
606
606
|
});
|
|
607
607
|
};
|
|
608
|
-
let
|
|
609
|
-
m.RendererWrapper.prototype.align = function(r, v,
|
|
610
|
-
|
|
608
|
+
let pd = m.RendererWrapper.prototype.align;
|
|
609
|
+
m.RendererWrapper.prototype.align = function(r, v, G, J, C = 1.0) {
|
|
610
|
+
pd.call(this, r, v, G, J, C);
|
|
611
611
|
};
|
|
612
612
|
d = new ha();
|
|
613
613
|
m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
@@ -649,15 +649,15 @@ na = null;
|
|
|
649
649
|
m.thisProgram && (oa = m.thisProgram);
|
|
650
650
|
var za;
|
|
651
651
|
m.wasmBinary && (za = m.wasmBinary);
|
|
652
|
-
var Aa, Ba = !1, z, A, Ca,
|
|
652
|
+
var Aa, Ba = !1, z, A, Ca, Da, B, E, Ga, Ha;
|
|
653
653
|
function Ia() {
|
|
654
654
|
var a = Aa.buffer;
|
|
655
655
|
m.HEAP8 = z = new Int8Array(a);
|
|
656
656
|
m.HEAP16 = Ca = new Int16Array(a);
|
|
657
657
|
m.HEAPU8 = A = new Uint8Array(a);
|
|
658
|
-
m.HEAPU16 =
|
|
659
|
-
m.HEAP32 =
|
|
660
|
-
m.HEAPU32 =
|
|
658
|
+
m.HEAPU16 = Da = new Uint16Array(a);
|
|
659
|
+
m.HEAP32 = B = new Int32Array(a);
|
|
660
|
+
m.HEAPU32 = E = new Uint32Array(a);
|
|
661
661
|
m.HEAPF32 = Ga = new Float32Array(a);
|
|
662
662
|
m.HEAPF64 = Ha = new Float64Array(a);
|
|
663
663
|
}
|
|
@@ -711,7 +711,7 @@ function Wa(a, b) {
|
|
|
711
711
|
return Va(c, a, b);
|
|
712
712
|
}));
|
|
713
713
|
}
|
|
714
|
-
var Xa, Ya, bb = {
|
|
714
|
+
var Xa, Ya, bb = {489554:(a, b, c, d, e) => {
|
|
715
715
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
716
716
|
return 0;
|
|
717
717
|
}
|
|
@@ -774,11 +774,11 @@ var Xa, Ya, bb = {467618:(a, b, c, d, e) => {
|
|
|
774
774
|
}
|
|
775
775
|
window.h.ya += 1;
|
|
776
776
|
return 1;
|
|
777
|
-
},
|
|
777
|
+
}, 491732:() => {
|
|
778
778
|
"undefined" !== typeof window.h && (window.h.Ra.map(function(a) {
|
|
779
779
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
780
780
|
}), --window.h.ya, 0 === window.h.ya && delete window.h);
|
|
781
|
-
},
|
|
781
|
+
}, 492036:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 492140:() => {
|
|
782
782
|
try {
|
|
783
783
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
784
784
|
a.close();
|
|
@@ -786,7 +786,7 @@ var Xa, Ya, bb = {467618:(a, b, c, d, e) => {
|
|
|
786
786
|
} catch (c) {
|
|
787
787
|
return 0;
|
|
788
788
|
}
|
|
789
|
-
},
|
|
789
|
+
}, 492311:(a, b, c, d, e, f) => {
|
|
790
790
|
if ("undefined" === typeof window.h) {
|
|
791
791
|
return -1;
|
|
792
792
|
}
|
|
@@ -832,7 +832,7 @@ var Xa, Ya, bb = {467618:(a, b, c, d, e) => {
|
|
|
832
832
|
a == window.h.I.wa && g.Y.connect(g.K.destination);
|
|
833
833
|
g.ob = f;
|
|
834
834
|
return window.h.rc(g);
|
|
835
|
-
},
|
|
835
|
+
}, 495188:a => window.h.pa(a).K.sampleRate, 495261:a => {
|
|
836
836
|
a = window.h.pa(a);
|
|
837
837
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
838
838
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
@@ -840,13 +840,13 @@ var Xa, Ya, bb = {467618:(a, b, c, d, e) => {
|
|
|
840
840
|
a.K.close();
|
|
841
841
|
a.K = void 0;
|
|
842
842
|
a.ob = void 0;
|
|
843
|
-
},
|
|
843
|
+
}, 495661:a => {
|
|
844
844
|
window.h.zb(a);
|
|
845
|
-
},
|
|
845
|
+
}, 495711:a => {
|
|
846
846
|
a = window.h.pa(a);
|
|
847
847
|
a.K.resume();
|
|
848
848
|
a.state = window.h.fa.vb;
|
|
849
|
-
},
|
|
849
|
+
}, 495850:a => {
|
|
850
850
|
a = window.h.pa(a);
|
|
851
851
|
a.K.suspend();
|
|
852
852
|
a.state = window.h.fa.stopped;
|
|
@@ -856,7 +856,7 @@ var Xa, Ya, bb = {467618:(a, b, c, d, e) => {
|
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
858
|
function db() {
|
|
859
|
-
var a =
|
|
859
|
+
var a = B[+eb >> 2];
|
|
860
860
|
eb += 4;
|
|
861
861
|
return a;
|
|
862
862
|
}
|
|
@@ -1414,7 +1414,7 @@ var zb = {open(a) {
|
|
|
1414
1414
|
function ub(a, b) {
|
|
1415
1415
|
Fb[a] = {m:b};
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function Wb(a, b) {
|
|
1418
1418
|
var c = "/" === b;
|
|
1419
1419
|
if (c && Eb) {
|
|
1420
1420
|
throw new N(10);
|
|
@@ -1436,7 +1436,7 @@ function ac(a, b) {
|
|
|
1436
1436
|
b.root = a;
|
|
1437
1437
|
c ? Eb = a : d && (d.ua = b, d.U && d.U.dc.push(b));
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function Xb(a, b, c) {
|
|
1440
1440
|
var d = Mb(a, {parent:!0}).node;
|
|
1441
1441
|
a = ib(a);
|
|
1442
1442
|
if (!a || "." === a || ".." === a) {
|
|
@@ -1452,11 +1452,11 @@ function bc(a, b, c) {
|
|
|
1452
1452
|
return d.j.ta(d, a, b, c);
|
|
1453
1453
|
}
|
|
1454
1454
|
function cc(a) {
|
|
1455
|
-
return
|
|
1455
|
+
return Xb(a, 16895, 0);
|
|
1456
1456
|
}
|
|
1457
1457
|
function dc(a, b, c) {
|
|
1458
1458
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1459
|
-
|
|
1459
|
+
Xb(a, b | 8192, c);
|
|
1460
1460
|
}
|
|
1461
1461
|
function ec(a, b) {
|
|
1462
1462
|
if (!lb(a)) {
|
|
@@ -1514,7 +1514,7 @@ function fc(a, b, c) {
|
|
|
1514
1514
|
throw new N(20);
|
|
1515
1515
|
}
|
|
1516
1516
|
} else {
|
|
1517
|
-
e =
|
|
1517
|
+
e = Xb(a, c, 0), d = !0;
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
if (!e) {
|
|
@@ -1715,7 +1715,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1715
1715
|
}
|
|
1716
1716
|
};
|
|
1717
1717
|
function Oc(a) {
|
|
1718
|
-
return this.fromWireType(
|
|
1718
|
+
return this.fromWireType(E[a >> 2]);
|
|
1719
1719
|
}
|
|
1720
1720
|
var Pc = {}, Qc = {}, U = (a, b, c) => {
|
|
1721
1721
|
function d(k) {
|
|
@@ -1931,22 +1931,22 @@ var ed = (a, b, c) => {
|
|
|
1931
1931
|
}, jd = (a, b, c = []) => {
|
|
1932
1932
|
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,m["dynCall_" + a])(b, ...c)) : b = hd(b)(...c);
|
|
1933
1933
|
return b;
|
|
1934
|
-
},
|
|
1934
|
+
}, kd = (a, b) => (...c) => jd(a, b, c), V = (a, b) => {
|
|
1935
1935
|
a = Q(a);
|
|
1936
|
-
var c = a.includes("j") ?
|
|
1936
|
+
var c = a.includes("j") ? kd(a, b) : hd(b);
|
|
1937
1937
|
if ("function" != typeof c) {
|
|
1938
1938
|
throw new P(`unknown function pointer with signature ${a}: ${b}`);
|
|
1939
1939
|
}
|
|
1940
1940
|
return c;
|
|
1941
|
-
},
|
|
1941
|
+
}, ld, md = (a, b) => {
|
|
1942
1942
|
function c(f) {
|
|
1943
1943
|
e[f] || zc[f] || (Qc[f] ? Qc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1944
1944
|
}
|
|
1945
1945
|
var d = [], e = {};
|
|
1946
1946
|
b.forEach(c);
|
|
1947
|
-
throw new
|
|
1947
|
+
throw new ld(`${a}: ` + d.map(Cc).join([", "]));
|
|
1948
1948
|
};
|
|
1949
|
-
function
|
|
1949
|
+
function nd(a) {
|
|
1950
1950
|
for (var b = 1; b < a.length; ++b) {
|
|
1951
1951
|
if (null !== a[b] && void 0 === a[b].L) {
|
|
1952
1952
|
return !0;
|
|
@@ -1959,7 +1959,7 @@ function qd(a, b, c, d, e) {
|
|
|
1959
1959
|
if (2 > f) {
|
|
1960
1960
|
throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1961
1961
|
}
|
|
1962
|
-
var g = null !== b[1] && null !== c, k =
|
|
1962
|
+
var g = null !== b[1] && null !== c, k = nd(b), p = "void" !== b[0].name, n = f - 2, t = Array(n), x = [], y = [];
|
|
1963
1963
|
return mc(a, function(...l) {
|
|
1964
1964
|
if (l.length !== n) {
|
|
1965
1965
|
throw new P(`function ${a} called with ${l.length} arguments, expected ${n}`);
|
|
@@ -1979,8 +1979,8 @@ function qd(a, b, c, d, e) {
|
|
|
1979
1979
|
Nc(y);
|
|
1980
1980
|
} else {
|
|
1981
1981
|
for (q = g ? 1 : 2; q < b.length; q++) {
|
|
1982
|
-
var
|
|
1983
|
-
null !== b[q].L && b[q].L(
|
|
1982
|
+
var D = 1 === q ? u : t[q - 2];
|
|
1983
|
+
null !== b[q].L && b[q].L(D);
|
|
1984
1984
|
}
|
|
1985
1985
|
}
|
|
1986
1986
|
u = p ? b[0].fromWireType(l) : void 0;
|
|
@@ -1989,7 +1989,7 @@ function qd(a, b, c, d, e) {
|
|
|
1989
1989
|
}
|
|
1990
1990
|
var rd = (a, b) => {
|
|
1991
1991
|
for (var c = [], d = 0; d < a; d++) {
|
|
1992
|
-
c.push(
|
|
1992
|
+
c.push(E[b + 4 * d >> 2]);
|
|
1993
1993
|
}
|
|
1994
1994
|
return c;
|
|
1995
1995
|
}, sd = a => {
|
|
@@ -2025,13 +2025,13 @@ var rd = (a, b) => {
|
|
|
2025
2025
|
return c ? function(d) {
|
|
2026
2026
|
return this.fromWireType(Ca[d >> 1]);
|
|
2027
2027
|
} : function(d) {
|
|
2028
|
-
return this.fromWireType(
|
|
2028
|
+
return this.fromWireType(Da[d >> 1]);
|
|
2029
2029
|
};
|
|
2030
2030
|
case 4:
|
|
2031
2031
|
return c ? function(d) {
|
|
2032
|
-
return this.fromWireType(
|
|
2032
|
+
return this.fromWireType(B[d >> 2]);
|
|
2033
2033
|
} : function(d) {
|
|
2034
|
-
return this.fromWireType(
|
|
2034
|
+
return this.fromWireType(E[d >> 2]);
|
|
2035
2035
|
};
|
|
2036
2036
|
default:
|
|
2037
2037
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
@@ -2060,15 +2060,15 @@ var rd = (a, b) => {
|
|
|
2060
2060
|
case 1:
|
|
2061
2061
|
return c ? d => z[d] : d => A[d];
|
|
2062
2062
|
case 2:
|
|
2063
|
-
return c ? d => Ca[d >> 1] : d =>
|
|
2063
|
+
return c ? d => Ca[d >> 1] : d => Da[d >> 1];
|
|
2064
2064
|
case 4:
|
|
2065
|
-
return c ? d =>
|
|
2065
|
+
return c ? d => B[d >> 2] : d => E[d >> 2];
|
|
2066
2066
|
default:
|
|
2067
2067
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
2068
2068
|
}
|
|
2069
2069
|
}, zd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, Ad = (a, b) => {
|
|
2070
2070
|
var c = a >> 1;
|
|
2071
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
2071
|
+
for (var d = c + b / 2; !(c >= d) && Da[c];) {
|
|
2072
2072
|
++c;
|
|
2073
2073
|
}
|
|
2074
2074
|
c <<= 1;
|
|
@@ -2099,7 +2099,7 @@ var rd = (a, b) => {
|
|
|
2099
2099
|
return b - d;
|
|
2100
2100
|
}, Cd = a => 2 * a.length, Dd = (a, b) => {
|
|
2101
2101
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
2102
|
-
var e =
|
|
2102
|
+
var e = B[a + 4 * c >> 2];
|
|
2103
2103
|
if (0 == e) {
|
|
2104
2104
|
break;
|
|
2105
2105
|
}
|
|
@@ -2120,13 +2120,13 @@ var rd = (a, b) => {
|
|
|
2120
2120
|
var g = a.charCodeAt(++e);
|
|
2121
2121
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
2122
2122
|
}
|
|
2123
|
-
|
|
2123
|
+
B[b >> 2] = f;
|
|
2124
2124
|
b += 4;
|
|
2125
2125
|
if (b + 4 > c) {
|
|
2126
2126
|
break;
|
|
2127
2127
|
}
|
|
2128
2128
|
}
|
|
2129
|
-
|
|
2129
|
+
B[b >> 2] = 0;
|
|
2130
2130
|
return b - d;
|
|
2131
2131
|
}, Fd = a => {
|
|
2132
2132
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
@@ -2138,7 +2138,7 @@ var rd = (a, b) => {
|
|
|
2138
2138
|
}, Gd = (a, b, c) => {
|
|
2139
2139
|
var d = [];
|
|
2140
2140
|
a = a.toWireType(d, c);
|
|
2141
|
-
d.length && (
|
|
2141
|
+
d.length && (E[b >> 2] = qc(d));
|
|
2142
2142
|
return a;
|
|
2143
2143
|
}, Hd = {}, Id = a => {
|
|
2144
2144
|
var b = Hd[a];
|
|
@@ -2149,23 +2149,23 @@ var rd = (a, b) => {
|
|
|
2149
2149
|
return b;
|
|
2150
2150
|
}, Ld = (a, b) => {
|
|
2151
2151
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
2152
|
-
c[d] = Dc(
|
|
2152
|
+
c[d] = Dc(E[b + 4 * d >> 2], "parameter " + d);
|
|
2153
2153
|
}
|
|
2154
2154
|
return c;
|
|
2155
|
-
}, Md = Reflect.construct, Nd = [],
|
|
2156
|
-
if (!
|
|
2155
|
+
}, 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 = () => {
|
|
2156
|
+
if (!Sd) {
|
|
2157
2157
|
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;
|
|
2158
|
-
for (b in
|
|
2159
|
-
void 0 ===
|
|
2158
|
+
for (b in Rd) {
|
|
2159
|
+
void 0 === Rd[b] ? delete a[b] : a[b] = Rd[b];
|
|
2160
2160
|
}
|
|
2161
2161
|
var c = [];
|
|
2162
2162
|
for (b in a) {
|
|
2163
2163
|
c.push(`${b}=${a[b]}`);
|
|
2164
2164
|
}
|
|
2165
|
-
|
|
2165
|
+
Sd = c;
|
|
2166
2166
|
}
|
|
2167
|
-
return
|
|
2168
|
-
},
|
|
2167
|
+
return Sd;
|
|
2168
|
+
}, 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) => {
|
|
2169
2169
|
function e(l, u, q) {
|
|
2170
2170
|
for (l = "number" == typeof l ? l.toString() : l || ""; l.length < u;) {
|
|
2171
2171
|
l = q[0] + l;
|
|
@@ -2176,12 +2176,12 @@ var rd = (a, b) => {
|
|
|
2176
2176
|
return e(l, u, "0");
|
|
2177
2177
|
}
|
|
2178
2178
|
function g(l, u) {
|
|
2179
|
-
function q(
|
|
2180
|
-
return 0 >
|
|
2179
|
+
function q(F) {
|
|
2180
|
+
return 0 > F ? -1 : 0 < F ? 1 : 0;
|
|
2181
2181
|
}
|
|
2182
|
-
var
|
|
2183
|
-
0 === (
|
|
2184
|
-
return
|
|
2182
|
+
var D;
|
|
2183
|
+
0 === (D = q(l.getFullYear() - u.getFullYear())) && 0 === (D = q(l.getMonth() - u.getMonth())) && (D = q(l.getDate() - u.getDate()));
|
|
2184
|
+
return D;
|
|
2185
2185
|
}
|
|
2186
2186
|
function k(l) {
|
|
2187
2187
|
switch(l.getDay()) {
|
|
@@ -2204,9 +2204,9 @@ var rd = (a, b) => {
|
|
|
2204
2204
|
function p(l) {
|
|
2205
2205
|
var u = l.ba;
|
|
2206
2206
|
for (l = new Date((new Date(l.ca + 1900, 0, 1)).getTime()); 0 < u;) {
|
|
2207
|
-
var q = l.getMonth(),
|
|
2208
|
-
if (u >
|
|
2209
|
-
u -=
|
|
2207
|
+
var q = l.getMonth(), D = (Nd(l.getFullYear()) ? Ud : Vd)[q];
|
|
2208
|
+
if (u > D - l.getDate()) {
|
|
2209
|
+
u -= D - l.getDate() + 1, l.setDate(1), 11 > q ? l.setMonth(q + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
|
|
2210
2210
|
} else {
|
|
2211
2211
|
l.setDate(l.getDate() + u);
|
|
2212
2212
|
break;
|
|
@@ -2217,8 +2217,8 @@ var rd = (a, b) => {
|
|
|
2217
2217
|
q = k(q);
|
|
2218
2218
|
return 0 >= g(u, l) ? 0 >= g(q, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
|
|
2219
2219
|
}
|
|
2220
|
-
var n =
|
|
2221
|
-
d = {pc:
|
|
2220
|
+
var n = E[d + 40 >> 2];
|
|
2221
|
+
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) : "" : ""};
|
|
2222
2222
|
c = c ? nb(A, c) : "";
|
|
2223
2223
|
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",};
|
|
2224
2224
|
for (var t in n) {
|
|
@@ -2230,18 +2230,18 @@ var rd = (a, b) => {
|
|
|
2230
2230
|
0 == l ? l = 12 : 12 < l && (l -= 12);
|
|
2231
2231
|
return f(l, 2);
|
|
2232
2232
|
}, "%j":l => {
|
|
2233
|
-
for (var u = 0, q = 0; q <= l.Ea - 1; u += (
|
|
2233
|
+
for (var u = 0, q = 0; q <= l.Ea - 1; u += (Nd(l.ca + 1900) ? Ud : Vd)[q++]) {
|
|
2234
2234
|
}
|
|
2235
2235
|
return f(l.Qa + u, 3);
|
|
2236
2236
|
}, "%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 => {
|
|
2237
2237
|
var u = Math.floor((l.ba + 7 - (l.R + 6) % 7) / 7);
|
|
2238
2238
|
2 >= (l.R + 371 - l.ba - 2) % 7 && u++;
|
|
2239
2239
|
if (u) {
|
|
2240
|
-
53 == u && (q = (l.R + 371 - l.ba) % 7, 4 == q || 3 == q &&
|
|
2240
|
+
53 == u && (q = (l.R + 371 - l.ba) % 7, 4 == q || 3 == q && Nd(l.ca) || (u = 1));
|
|
2241
2241
|
} else {
|
|
2242
2242
|
u = 52;
|
|
2243
2243
|
var q = (l.R + 7 - l.ba - 1) % 7;
|
|
2244
|
-
(4 == q || 5 == q &&
|
|
2244
|
+
(4 == q || 5 == q && Nd(l.ca % 400 - 1)) && u++;
|
|
2245
2245
|
}
|
|
2246
2246
|
return f(u, 2);
|
|
2247
2247
|
}, "%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 => {
|
|
@@ -2267,7 +2267,7 @@ var rd = (a, b) => {
|
|
|
2267
2267
|
Bb[a].stack = "<generic error, no stack>";
|
|
2268
2268
|
});
|
|
2269
2269
|
Ib = Array(4096);
|
|
2270
|
-
|
|
2270
|
+
Wb(O, "/");
|
|
2271
2271
|
cc("/tmp");
|
|
2272
2272
|
cc("/home");
|
|
2273
2273
|
cc("/home/web_user");
|
|
@@ -2292,7 +2292,7 @@ cc("/home/web_user");
|
|
|
2292
2292
|
cc("/proc");
|
|
2293
2293
|
var a = cc("/proc/self");
|
|
2294
2294
|
cc("/proc/self/fd");
|
|
2295
|
-
|
|
2295
|
+
Wb({U() {
|
|
2296
2296
|
var b = Ab(a, "fd", 16895, 73);
|
|
2297
2297
|
b.j = {ja(c, d) {
|
|
2298
2298
|
var e = Tb(+d);
|
|
@@ -2311,10 +2311,10 @@ P = m.BindingError = class extends Error {
|
|
|
2311
2311
|
oc.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
|
|
2312
2312
|
m.count_emval_handles = () => oc.length / 2 - 5 - nc.length;
|
|
2313
2313
|
sc = m.PureVirtualError = rc("PureVirtualError");
|
|
2314
|
-
for (var
|
|
2315
|
-
|
|
2314
|
+
for (var Xd = Array(256), Yd = 0; 256 > Yd; ++Yd) {
|
|
2315
|
+
Xd[Yd] = String.fromCharCode(Yd);
|
|
2316
2316
|
}
|
|
2317
|
-
tc =
|
|
2317
|
+
tc = Xd;
|
|
2318
2318
|
m.getInheritedInstanceCount = () => Object.keys(xc).length;
|
|
2319
2319
|
m.getLiveInheritedInstances = () => {
|
|
2320
2320
|
var a = [], b;
|
|
@@ -2411,8 +2411,8 @@ Object.assign(dd.prototype, {Rb(a) {
|
|
|
2411
2411
|
var e = Gc(c, this.i, d.i);
|
|
2412
2412
|
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,});
|
|
2413
2413
|
},});
|
|
2414
|
-
|
|
2415
|
-
var
|
|
2414
|
+
ld = m.UnboundTypeError = rc("UnboundTypeError");
|
|
2415
|
+
var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
2416
2416
|
eb = c;
|
|
2417
2417
|
try {
|
|
2418
2418
|
var d = Tb(a);
|
|
@@ -2460,10 +2460,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2460
2460
|
if (d.s.V.Xb) {
|
|
2461
2461
|
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,];
|
|
2462
2462
|
var e = db();
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2463
|
+
B[e >> 2] = 25856;
|
|
2464
|
+
B[e + 4 >> 2] = 5;
|
|
2465
|
+
B[e + 8 >> 2] = 191;
|
|
2466
|
+
B[e + 12 >> 2] = 35387;
|
|
2467
2467
|
for (var f = 0; 32 > f; f++) {
|
|
2468
2468
|
z[e + f + 17] = a[f] || 0;
|
|
2469
2469
|
}
|
|
@@ -2490,7 +2490,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2490
2490
|
return -59;
|
|
2491
2491
|
}
|
|
2492
2492
|
e = db();
|
|
2493
|
-
return
|
|
2493
|
+
return B[e >> 2] = 0;
|
|
2494
2494
|
case 21520:
|
|
2495
2495
|
return d.s ? -28 : -59;
|
|
2496
2496
|
case 21531:
|
|
@@ -2598,9 +2598,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2598
2598
|
var k = {};
|
|
2599
2599
|
e.forEach((p, n) => {
|
|
2600
2600
|
var t = g[n], x = p.Sb, y = p.Tb, l = g[n + e.length], u = p.jc, q = p.lc;
|
|
2601
|
-
k[p.Ob] = {read:
|
|
2601
|
+
k[p.Ob] = {read:D => t.fromWireType(x(y, D)), write:(D, F) => {
|
|
2602
2602
|
var w = [];
|
|
2603
|
-
u(q,
|
|
2603
|
+
u(q, D, l.toWireType(w, F));
|
|
2604
2604
|
Nc(w);
|
|
2605
2605
|
}};
|
|
2606
2606
|
});
|
|
@@ -2643,18 +2643,18 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2643
2643
|
y = V(x, y);
|
|
2644
2644
|
var l = Xc(t);
|
|
2645
2645
|
Wc(l, function() {
|
|
2646
|
-
|
|
2646
|
+
md(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2647
2647
|
});
|
|
2648
2648
|
U([a, b, c], d ? [d] : [], u => {
|
|
2649
2649
|
u = u[0];
|
|
2650
2650
|
if (d) {
|
|
2651
2651
|
var q = u.i;
|
|
2652
|
-
var
|
|
2652
|
+
var D = q.M;
|
|
2653
2653
|
} else {
|
|
2654
|
-
|
|
2654
|
+
D = Uc.prototype;
|
|
2655
2655
|
}
|
|
2656
2656
|
u = mc(t, function(...R) {
|
|
2657
|
-
if (Object.getPrototypeOf(this) !==
|
|
2657
|
+
if (Object.getPrototypeOf(this) !== F) {
|
|
2658
2658
|
throw new P("Use 'new' to construct " + t);
|
|
2659
2659
|
}
|
|
2660
2660
|
if (void 0 === w.Z) {
|
|
@@ -2666,20 +2666,20 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
return W.apply(this, R);
|
|
2668
2668
|
});
|
|
2669
|
-
var
|
|
2670
|
-
u.prototype =
|
|
2671
|
-
var w = new Yc(t, u,
|
|
2669
|
+
var F = Object.create(D, {constructor:{value:u},});
|
|
2670
|
+
u.prototype = F;
|
|
2671
|
+
var w = new Yc(t, u, F, y, q, f, k, n);
|
|
2672
2672
|
if (w.C) {
|
|
2673
|
-
var
|
|
2674
|
-
(
|
|
2673
|
+
var M;
|
|
2674
|
+
(M = w.C).na ?? (M.na = []);
|
|
2675
2675
|
w.C.na.push(w);
|
|
2676
2676
|
}
|
|
2677
2677
|
q = new dd(t, w, !0, !1, !1);
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
Hc[a] = {pointerType:
|
|
2678
|
+
M = new dd(t + "*", w, !1, !1, !1);
|
|
2679
|
+
D = new dd(t + " const*", w, !1, !0, !1);
|
|
2680
|
+
Hc[a] = {pointerType:M, Hb:D};
|
|
2681
2681
|
ed(l, u);
|
|
2682
|
-
return [q,
|
|
2682
|
+
return [q, M, D];
|
|
2683
2683
|
});
|
|
2684
2684
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
2685
2685
|
var k = rd(c, d);
|
|
@@ -2688,7 +2688,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2688
2688
|
f = V(e, f);
|
|
2689
2689
|
U([], [a], p => {
|
|
2690
2690
|
function n() {
|
|
2691
|
-
|
|
2691
|
+
md(`Cannot call ${t} due to unbound types`, k);
|
|
2692
2692
|
}
|
|
2693
2693
|
p = p[0];
|
|
2694
2694
|
var t = `${p.name}.${b}`;
|
|
@@ -2713,10 +2713,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2713
2713
|
U([], [a], p => {
|
|
2714
2714
|
p = p[0];
|
|
2715
2715
|
var n = `${p.name}.${b}`, t = {get() {
|
|
2716
|
-
|
|
2716
|
+
md(`Cannot access ${n} due to unbound types`, [c]);
|
|
2717
2717
|
}, enumerable:!0, configurable:!0};
|
|
2718
2718
|
t.set = k ? () => {
|
|
2719
|
-
|
|
2719
|
+
md(`Cannot access ${n} due to unbound types`, [c]);
|
|
2720
2720
|
} : () => {
|
|
2721
2721
|
throw new P(`${n} is a read-only property`);
|
|
2722
2722
|
};
|
|
@@ -2747,7 +2747,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2747
2747
|
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!`);
|
|
2748
2748
|
}
|
|
2749
2749
|
k.i.Z[b - 1] = () => {
|
|
2750
|
-
|
|
2750
|
+
md(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2751
2751
|
};
|
|
2752
2752
|
U([], g, n => {
|
|
2753
2753
|
n.splice(1, 0, null);
|
|
@@ -2763,7 +2763,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2763
2763
|
f = V(e, f);
|
|
2764
2764
|
U([], [a], n => {
|
|
2765
2765
|
function t() {
|
|
2766
|
-
|
|
2766
|
+
md(`Cannot call ${x} due to unbound types`, p);
|
|
2767
2767
|
}
|
|
2768
2768
|
n = n[0];
|
|
2769
2769
|
var x = `${n.name}.${b}`;
|
|
@@ -2784,24 +2784,24 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2784
2784
|
U([], [a], t => {
|
|
2785
2785
|
t = t[0];
|
|
2786
2786
|
var x = `${t.name}.${b}`, y = {get() {
|
|
2787
|
-
|
|
2787
|
+
md(`Cannot access ${x} due to unbound types`, [c, g]);
|
|
2788
2788
|
}, enumerable:!0, configurable:!0};
|
|
2789
|
-
y.set = p ? () =>
|
|
2789
|
+
y.set = p ? () => md(`Cannot access ${x} due to unbound types`, [c, g]) : () => {
|
|
2790
2790
|
throw new P(x + " is a read-only property");
|
|
2791
2791
|
};
|
|
2792
2792
|
Object.defineProperty(t.i.M, b, y);
|
|
2793
2793
|
U([], p ? [c, g] : [c], l => {
|
|
2794
2794
|
var u = l[0], q = {get() {
|
|
2795
|
-
var
|
|
2796
|
-
return u.fromWireType(e(f,
|
|
2795
|
+
var F = td(this, t, x + " getter");
|
|
2796
|
+
return u.fromWireType(e(f, F));
|
|
2797
2797
|
}, enumerable:!0};
|
|
2798
2798
|
if (p) {
|
|
2799
2799
|
p = V(k, p);
|
|
2800
|
-
var
|
|
2801
|
-
q.set = function(
|
|
2802
|
-
var w = td(this, t, x + " setter"),
|
|
2803
|
-
p(n, w,
|
|
2804
|
-
Nc(
|
|
2800
|
+
var D = l[1];
|
|
2801
|
+
q.set = function(F) {
|
|
2802
|
+
var w = td(this, t, x + " setter"), M = [];
|
|
2803
|
+
p(n, w, D.toWireType(M, F));
|
|
2804
|
+
Nc(M);
|
|
2805
2805
|
};
|
|
2806
2806
|
}
|
|
2807
2807
|
Object.defineProperty(t.i.M, b, q);
|
|
@@ -2835,7 +2835,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2835
2835
|
a = sd(a);
|
|
2836
2836
|
e = V(d, e);
|
|
2837
2837
|
Wc(a, function() {
|
|
2838
|
-
|
|
2838
|
+
md(`Cannot call ${a} due to unbound types`, g);
|
|
2839
2839
|
}, b - 1);
|
|
2840
2840
|
U([], g, k => {
|
|
2841
2841
|
ed(a, qd(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
|
|
@@ -2857,7 +2857,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2857
2857
|
Rc(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:yd(b, c, 0 !== d), L:null,});
|
|
2858
2858
|
}, _embind_register_memory_view:(a, b, c) => {
|
|
2859
2859
|
function d(f) {
|
|
2860
|
-
return new e(z.buffer,
|
|
2860
|
+
return new e(z.buffer, E[f + 4 >> 2], E[f >> 2]);
|
|
2861
2861
|
}
|
|
2862
2862
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2863
2863
|
c = Q(c);
|
|
@@ -2866,7 +2866,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2866
2866
|
b = Q(b);
|
|
2867
2867
|
var c = "std::string" === b;
|
|
2868
2868
|
Rc(a, {name:b, fromWireType:function(d) {
|
|
2869
|
-
var e =
|
|
2869
|
+
var e = E[d >> 2], f = d + 4;
|
|
2870
2870
|
if (c) {
|
|
2871
2871
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2872
2872
|
var p = f + k;
|
|
@@ -2896,8 +2896,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2896
2896
|
throw new P("Cannot pass non-string to std::string");
|
|
2897
2897
|
}
|
|
2898
2898
|
var g = c && f ? pb(e) : e.length;
|
|
2899
|
-
var k =
|
|
2900
|
-
|
|
2899
|
+
var k = Zd(4 + g + 1), p = k + 4;
|
|
2900
|
+
E[k >> 2] = g;
|
|
2901
2901
|
if (c && f) {
|
|
2902
2902
|
qb(e, A, p, g + 1);
|
|
2903
2903
|
} else {
|
|
@@ -2926,12 +2926,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2926
2926
|
var d = Ad;
|
|
2927
2927
|
var e = Bd;
|
|
2928
2928
|
var f = Cd;
|
|
2929
|
-
var g = k =>
|
|
2929
|
+
var g = k => Da[k >> 1];
|
|
2930
2930
|
} else {
|
|
2931
|
-
4 === b && (d = Dd, e = Ed, f = Fd, g = k =>
|
|
2931
|
+
4 === b && (d = Dd, e = Ed, f = Fd, g = k => E[k >> 2]);
|
|
2932
2932
|
}
|
|
2933
2933
|
Rc(a, {name:c, fromWireType:k => {
|
|
2934
|
-
for (var p =
|
|
2934
|
+
for (var p = E[k >> 2], n, t = k + 4, x = 0; x <= p; ++x) {
|
|
2935
2935
|
var y = k + 4 + x * b;
|
|
2936
2936
|
if (x == p || 0 == g(y)) {
|
|
2937
2937
|
t = d(t, y - t), void 0 === n ? n = t : (n += String.fromCharCode(0), n += t), t = y + b;
|
|
@@ -2943,8 +2943,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2943
2943
|
if ("string" != typeof p) {
|
|
2944
2944
|
throw new P(`Cannot pass non-string to C++ string type ${c}`);
|
|
2945
2945
|
}
|
|
2946
|
-
var n = f(p), t =
|
|
2947
|
-
|
|
2946
|
+
var n = f(p), t = Zd(4 + n + b);
|
|
2947
|
+
E[t >> 2] = n / b;
|
|
2948
2948
|
e(p, t + 4, n + b);
|
|
2949
2949
|
null !== k && k.push(Bc, t);
|
|
2950
2950
|
return t;
|
|
@@ -2960,7 +2960,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2960
2960
|
Rc(a, {Ic:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
2961
2961
|
}, toWireType:() => {
|
|
2962
2962
|
},});
|
|
2963
|
-
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => A.copyWithin(a, b, b + c),
|
|
2963
|
+
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => A.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
|
|
2964
|
+
throw Infinity;
|
|
2965
|
+
}, _emval_as:(a, b, c) => {
|
|
2964
2966
|
a = pc(a);
|
|
2965
2967
|
b = Dc(b, "emval::as");
|
|
2966
2968
|
return Gd(b, c, a);
|
|
@@ -3003,16 +3005,50 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3003
3005
|
a = Dc(a, "_emval_take_value");
|
|
3004
3006
|
a = a.readValueFromPointer(b);
|
|
3005
3007
|
return qc(a);
|
|
3008
|
+
}, _gmtime_js:function(a, b, c) {
|
|
3009
|
+
a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
|
|
3010
|
+
B[c >> 2] = a.getUTCSeconds();
|
|
3011
|
+
B[c + 4 >> 2] = a.getUTCMinutes();
|
|
3012
|
+
B[c + 8 >> 2] = a.getUTCHours();
|
|
3013
|
+
B[c + 12 >> 2] = a.getUTCDate();
|
|
3014
|
+
B[c + 16 >> 2] = a.getUTCMonth();
|
|
3015
|
+
B[c + 20 >> 2] = a.getUTCFullYear() - 1900;
|
|
3016
|
+
B[c + 24 >> 2] = a.getUTCDay();
|
|
3017
|
+
B[c + 28 >> 2] = (a.getTime() - Date.UTC(a.getUTCFullYear(), 0, 1, 0, 0, 0, 0)) / 864E5 | 0;
|
|
3018
|
+
}, _localtime_js:function(a, b, c) {
|
|
3019
|
+
a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
|
|
3020
|
+
B[c >> 2] = a.getSeconds();
|
|
3021
|
+
B[c + 4 >> 2] = a.getMinutes();
|
|
3022
|
+
B[c + 8 >> 2] = a.getHours();
|
|
3023
|
+
B[c + 12 >> 2] = a.getDate();
|
|
3024
|
+
B[c + 16 >> 2] = a.getMonth();
|
|
3025
|
+
B[c + 20 >> 2] = a.getFullYear() - 1900;
|
|
3026
|
+
B[c + 24 >> 2] = a.getDay();
|
|
3027
|
+
B[c + 28 >> 2] = (Nd(a.getFullYear()) ? Od : Pd)[a.getMonth()] + a.getDate() - 1 | 0;
|
|
3028
|
+
B[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
|
|
3029
|
+
b = (new Date(a.getFullYear(), 6, 1)).getTimezoneOffset();
|
|
3030
|
+
var d = (new Date(a.getFullYear(), 0, 1)).getTimezoneOffset();
|
|
3031
|
+
B[c + 32 >> 2] = (b != d && a.getTimezoneOffset() == Math.min(d, b)) | 0;
|
|
3032
|
+
}, _tzset_js:(a, b, c, d) => {
|
|
3033
|
+
var e = (new Date()).getFullYear(), f = new Date(e, 0, 1), g = new Date(e, 6, 1);
|
|
3034
|
+
e = f.getTimezoneOffset();
|
|
3035
|
+
var k = g.getTimezoneOffset();
|
|
3036
|
+
E[a >> 2] = 60 * Math.max(e, k);
|
|
3037
|
+
B[b >> 2] = Number(e != k);
|
|
3038
|
+
a = p => p.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
|
|
3039
|
+
f = a(f);
|
|
3040
|
+
g = a(g);
|
|
3041
|
+
k < e ? (qb(f, A, c, 17), qb(g, A, d, 17)) : (qb(f, A, d, 17), qb(g, A, c, 17));
|
|
3006
3042
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
3007
|
-
|
|
3043
|
+
Qd.length = 0;
|
|
3008
3044
|
for (var d; d = A[b++];) {
|
|
3009
3045
|
var e = 105 != d;
|
|
3010
3046
|
e &= 112 != d;
|
|
3011
3047
|
c += e && c % 8 ? 4 : 0;
|
|
3012
|
-
|
|
3048
|
+
Qd.push(112 == d ? E[c >> 2] : 105 == d ? B[c >> 2] : Ha[c >> 3]);
|
|
3013
3049
|
c += e ? 8 : 4;
|
|
3014
3050
|
}
|
|
3015
|
-
return bb[a](...
|
|
3051
|
+
return bb[a](...Qd);
|
|
3016
3052
|
}, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:a => {
|
|
3017
3053
|
var b = A.length;
|
|
3018
3054
|
a >>>= 0;
|
|
@@ -3042,9 +3078,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3042
3078
|
return !1;
|
|
3043
3079
|
}, environ_get:(a, b) => {
|
|
3044
3080
|
var c = 0;
|
|
3045
|
-
|
|
3081
|
+
Td().forEach((d, e) => {
|
|
3046
3082
|
var f = b + c;
|
|
3047
|
-
e =
|
|
3083
|
+
e = E[a + 4 * e >> 2] = f;
|
|
3048
3084
|
for (f = 0; f < d.length; ++f) {
|
|
3049
3085
|
z[e++] = d.charCodeAt(f);
|
|
3050
3086
|
}
|
|
@@ -3053,11 +3089,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3053
3089
|
});
|
|
3054
3090
|
return 0;
|
|
3055
3091
|
}, environ_sizes_get:(a, b) => {
|
|
3056
|
-
var c =
|
|
3057
|
-
|
|
3092
|
+
var c = Td();
|
|
3093
|
+
E[a >> 2] = c.length;
|
|
3058
3094
|
var d = 0;
|
|
3059
3095
|
c.forEach(e => d += e.length + 1);
|
|
3060
|
-
|
|
3096
|
+
E[b >> 2] = d;
|
|
3061
3097
|
return 0;
|
|
3062
3098
|
}, fd_close:function(a) {
|
|
3063
3099
|
try {
|
|
@@ -3087,7 +3123,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3087
3123
|
var e = Tb(a);
|
|
3088
3124
|
a = b;
|
|
3089
3125
|
for (var f, g = b = 0; g < c; g++) {
|
|
3090
|
-
var k =
|
|
3126
|
+
var k = E[a >> 2], p = E[a + 4 >> 2];
|
|
3091
3127
|
a += 8;
|
|
3092
3128
|
var n = e, t = f, x = z;
|
|
3093
3129
|
if (0 > p || 0 > t) {
|
|
@@ -3126,13 +3162,13 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3126
3162
|
}
|
|
3127
3163
|
q = b;
|
|
3128
3164
|
}
|
|
3129
|
-
|
|
3165
|
+
E[d >> 2] = q;
|
|
3130
3166
|
return 0;
|
|
3131
|
-
} catch (
|
|
3132
|
-
if ("undefined" == typeof lc || "ErrnoError" !==
|
|
3133
|
-
throw
|
|
3167
|
+
} catch (D) {
|
|
3168
|
+
if ("undefined" == typeof lc || "ErrnoError" !== D.name) {
|
|
3169
|
+
throw D;
|
|
3134
3170
|
}
|
|
3135
|
-
return
|
|
3171
|
+
return D.$;
|
|
3136
3172
|
}
|
|
3137
3173
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3138
3174
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3143,8 +3179,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3143
3179
|
var f = Tb(a);
|
|
3144
3180
|
hc(f, b, d);
|
|
3145
3181
|
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)];
|
|
3146
|
-
|
|
3147
|
-
|
|
3182
|
+
B[e >> 2] = Ya[0];
|
|
3183
|
+
B[e + 4 >> 2] = Ya[1];
|
|
3148
3184
|
f.Ka && 0 === b && 0 === d && (f.Ka = null);
|
|
3149
3185
|
return 0;
|
|
3150
3186
|
} catch (g) {
|
|
@@ -3159,7 +3195,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3159
3195
|
var e = Tb(a);
|
|
3160
3196
|
a = b;
|
|
3161
3197
|
for (var f, g = b = 0; g < c; g++) {
|
|
3162
|
-
var k =
|
|
3198
|
+
var k = E[a >> 2], p = E[a + 4 >> 2];
|
|
3163
3199
|
a += 8;
|
|
3164
3200
|
var n = e, t = k, x = p, y = f, l = z;
|
|
3165
3201
|
if (0 > x || 0 > y) {
|
|
@@ -3186,17 +3222,17 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3186
3222
|
}
|
|
3187
3223
|
var q = n.m.write(n, l, t, x, y, void 0);
|
|
3188
3224
|
u || (n.position += q);
|
|
3189
|
-
var
|
|
3190
|
-
if (0 >
|
|
3191
|
-
var
|
|
3225
|
+
var D = q;
|
|
3226
|
+
if (0 > D) {
|
|
3227
|
+
var F = -1;
|
|
3192
3228
|
break a;
|
|
3193
3229
|
}
|
|
3194
|
-
b +=
|
|
3195
|
-
"undefined" != typeof f && (f +=
|
|
3230
|
+
b += D;
|
|
3231
|
+
"undefined" != typeof f && (f += D);
|
|
3196
3232
|
}
|
|
3197
|
-
|
|
3233
|
+
F = b;
|
|
3198
3234
|
}
|
|
3199
|
-
|
|
3235
|
+
E[d >> 2] = F;
|
|
3200
3236
|
return 0;
|
|
3201
3237
|
} catch (w) {
|
|
3202
3238
|
if ("undefined" == typeof lc || "ErrnoError" !== w.name) {
|
|
@@ -3204,9 +3240,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3204
3240
|
}
|
|
3205
3241
|
return w.$;
|
|
3206
3242
|
}
|
|
3207
|
-
}, isWindowsBrowser:function() {
|
|
3243
|
+
}, invoke_vii:$d, isWindowsBrowser:function() {
|
|
3208
3244
|
return -1 < navigator.platform.indexOf("Win");
|
|
3209
|
-
}, strftime_l:(a, b, c, d) =>
|
|
3245
|
+
}, strftime:Wd, strftime_l:(a, b, c, d) => Wd(a, b, c, d)}, X = function() {
|
|
3210
3246
|
function a(c) {
|
|
3211
3247
|
X = c.exports;
|
|
3212
3248
|
Aa = X.memory;
|
|
@@ -3218,7 +3254,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3218
3254
|
0 == Na && (null !== Oa && (clearInterval(Oa), Oa = null), Pa && (c = Pa, Pa = null, c()));
|
|
3219
3255
|
return X;
|
|
3220
3256
|
}
|
|
3221
|
-
var b = {env:
|
|
3257
|
+
var b = {env:ae, wasi_snapshot_preview1:ae,};
|
|
3222
3258
|
Na++;
|
|
3223
3259
|
m.monitorRunDependencies?.(Na);
|
|
3224
3260
|
if (m.instantiateWasm) {
|
|
@@ -3233,10 +3269,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3233
3269
|
a(c.instance);
|
|
3234
3270
|
}).catch(ca);
|
|
3235
3271
|
return {};
|
|
3236
|
-
}(), Bc = a => (Bc = X.free)(a),
|
|
3272
|
+
}(), 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);
|
|
3237
3273
|
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = X.ma_malloc_emscripten)(a, b);
|
|
3238
3274
|
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = X.ma_free_emscripten)(a, b);
|
|
3239
|
-
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);
|
|
3275
|
+
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)();
|
|
3240
3276
|
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = X.dynCall_iiji)(a, b, c, d, e);
|
|
3241
3277
|
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = X.dynCall_jiji)(a, b, c, d, e);
|
|
3242
3278
|
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = X.dynCall_iiiji)(a, b, c, d, e, f);
|
|
@@ -3246,14 +3282,26 @@ m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = X.dynCall_viijii
|
|
|
3246
3282
|
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = X.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3247
3283
|
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);
|
|
3248
3284
|
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);
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3285
|
+
function $d(a, b, c) {
|
|
3286
|
+
var d = de();
|
|
3287
|
+
try {
|
|
3288
|
+
hd(a)(b, c);
|
|
3289
|
+
} catch (e) {
|
|
3290
|
+
ce(d);
|
|
3291
|
+
if (e !== e + 0) {
|
|
3292
|
+
throw e;
|
|
3293
|
+
}
|
|
3294
|
+
be(1, 0);
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
var ee;
|
|
3298
|
+
Pa = function fe() {
|
|
3299
|
+
ee || ge();
|
|
3300
|
+
ee || (Pa = fe);
|
|
3253
3301
|
};
|
|
3254
|
-
function
|
|
3302
|
+
function ge() {
|
|
3255
3303
|
function a() {
|
|
3256
|
-
if (!
|
|
3304
|
+
if (!ee && (ee = !0, m.calledRun = !0, !Ba)) {
|
|
3257
3305
|
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));
|
|
3258
3306
|
Jb = !1;
|
|
3259
3307
|
cb(Ka);
|
|
@@ -3290,7 +3338,7 @@ if (m.preInit) {
|
|
|
3290
3338
|
m.preInit.pop()();
|
|
3291
3339
|
}
|
|
3292
3340
|
}
|
|
3293
|
-
|
|
3341
|
+
ge();
|
|
3294
3342
|
moduleRtn = da;
|
|
3295
3343
|
|
|
3296
3344
|
|