@rive-app/canvas 2.35.3 → 2.35.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/rive.js CHANGED
@@ -31,7 +31,7 @@ var m = moduleArg, ba, ca, da = new Promise((a, b) => {
31
31
  ba = a;
32
32
  ca = b;
33
33
  }), ea = "object" == typeof window, fa = "function" == typeof importScripts;
34
- function ha() {
34
+ function ia() {
35
35
  function a(g) {
36
36
  const k = d;
37
37
  c = b = 0;
@@ -77,7 +77,7 @@ function ha() {
77
77
  this.ob = function() {
78
78
  };
79
79
  }
80
- function ia(a) {
80
+ function ja(a) {
81
81
  console.assert(!0);
82
82
  const b = new Map();
83
83
  let c = -Infinity;
@@ -92,9 +92,9 @@ function ia(a) {
92
92
  return c << a;
93
93
  };
94
94
  }
95
- const ja = m.onRuntimeInitialized;
95
+ const ka = m.onRuntimeInitialized;
96
96
  m.onRuntimeInitialized = function() {
97
- ja && ja();
97
+ ka && ka();
98
98
  let a = m.decodeAudio;
99
99
  m.decodeAudio = function(e, f) {
100
100
  e = a(e);
@@ -156,7 +156,7 @@ m.onRuntimeInitialized = function() {
156
156
  return d.call(this, e, f, g, k, p);
157
157
  };
158
158
  };
159
- const ka = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), la = new function() {
159
+ const la = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), ma = new function() {
160
160
  function a() {
161
161
  if (!b) {
162
162
  var l = document.createElement("canvas"), u = {alpha:1, depth:0, stencil:0, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:1, renderViaOffscreenBackBuffer:1,};
@@ -176,38 +176,38 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
176
176
  }
177
177
  }
178
178
  }
179
- r = new Proxy(r, {get(G, w) {
180
- if (G.isContextLost()) {
181
- if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof G[w]) {
179
+ r = new Proxy(r, {get(I, w) {
180
+ if (I.isContextLost()) {
181
+ if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof I[w]) {
182
182
  return function() {
183
183
  };
184
184
  }
185
185
  } else {
186
- return "function" === typeof G[w] ? function(...M) {
187
- return G[w].apply(G, M);
188
- } : G[w];
186
+ return "function" === typeof I[w] ? function(...L) {
187
+ return I[w].apply(I, L);
188
+ } : I[w];
189
189
  }
190
- }, set(G, w, M) {
191
- if (G.isContextLost()) {
190
+ }, set(I, w, L) {
191
+ if (I.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 G[w] = M, !0;
194
+ return I[w] = L, !0;
195
195
  }
196
196
  },});
197
197
  d = Math.min(r.getParameter(r.MAX_RENDERBUFFER_SIZE), r.getParameter(r.MAX_TEXTURE_SIZE));
198
- function C(G, w, M) {
198
+ function D(I, w, L) {
199
199
  w = r.createShader(w);
200
- r.shaderSource(w, M);
200
+ r.shaderSource(w, L);
201
201
  r.compileShader(w);
202
- M = r.getShaderInfoLog(w);
203
- if (0 < (M || "").length) {
204
- throw M;
202
+ L = r.getShaderInfoLog(w);
203
+ if (0 < (L || "").length) {
204
+ throw L;
205
205
  }
206
- r.attachShader(G, w);
206
+ r.attachShader(I, w);
207
207
  }
208
208
  l = r.createProgram();
209
- C(l, r.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
- C(l, r.FRAGMENT_SHADER, "precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }");
209
+ D(l, r.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, r.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
  r.bindAttribLocation(l, 0, "vertex");
212
212
  r.bindAttribLocation(l, 1, "uv");
213
213
  r.linkProgram(l);
@@ -253,63 +253,63 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
253
253
  2 == c ? (b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER, b.LINEAR_MIPMAP_LINEAR), b.generateMipmap(b.TEXTURE_2D)) : b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER, b.LINEAR);
254
254
  return u;
255
255
  };
256
- const n = new ia(8), t = new ia(8), x = new ia(10), y = new ia(10);
257
- this.Nb = function(l, u, r, C, G) {
256
+ const n = new ja(8), t = new ja(8), x = new ja(10), y = new ja(10);
257
+ this.Nb = function(l, u, r, D, I) {
258
258
  if (a()) {
259
- var w = n.push(l), M = t.push(u);
259
+ var w = n.push(l), L = t.push(u);
260
260
  if (b.canvas) {
261
- if (b.canvas.width != w || b.canvas.height != M) {
262
- b.canvas.width = w, b.canvas.height = M;
261
+ if (b.canvas.width != w || b.canvas.height != L) {
262
+ b.canvas.width = w, b.canvas.height = L;
263
263
  }
264
- b.viewport(0, M - u, l, u);
264
+ b.viewport(0, L - 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
- r.sort((J, Z) => Z.vb - J.vb);
270
- w = x.push(C);
269
+ r.sort((K, Z) => Z.vb - K.vb);
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
- for (var T of r) {
274
- b.bufferSubData(b.ARRAY_BUFFER, w, T.Ta), w += 4 * T.Ta.length;
273
+ for (var R of r) {
274
+ b.bufferSubData(b.ARRAY_BUFFER, w, R.Ta), w += 4 * R.Ta.length;
275
275
  }
276
- console.assert(w == 4 * C);
277
- for (var W of r) {
278
- b.bufferSubData(b.ARRAY_BUFFER, w, W.Bb), w += 4 * W.Bb.length;
276
+ console.assert(w == 4 * D);
277
+ for (var V of r) {
278
+ b.bufferSubData(b.ARRAY_BUFFER, w, V.Bb), w += 4 * V.Bb.length;
279
279
  }
280
- console.assert(w == 8 * C);
281
- w = y.push(G);
280
+ console.assert(w == 8 * D);
281
+ w = y.push(I);
282
282
  k != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), k = w);
283
- T = 0;
284
- for (var pa of r) {
285
- b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, T, pa.indices), T += 2 * pa.indices.length;
286
- }
287
- console.assert(T == 2 * G);
288
- pa = 0;
289
- W = !0;
290
- w = T = 0;
291
- for (const J of r) {
292
- J.image.Ja != pa && (b.bindTexture(b.TEXTURE_2D, J.image.Ia || null), pa = J.image.Ja);
293
- J.hc ? (b.scissor(J.Za, M - J.$a - J.jb, J.uc, J.jb), W = !0) : W && (b.scissor(0, M - u, l, u), W = !1);
283
+ R = 0;
284
+ for (var qa of r) {
285
+ b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, R, qa.indices), R += 2 * qa.indices.length;
286
+ }
287
+ console.assert(R == 2 * I);
288
+ qa = 0;
289
+ V = !0;
290
+ w = R = 0;
291
+ for (const K of r) {
292
+ K.image.Ja != qa && (b.bindTexture(b.TEXTURE_2D, K.image.Ia || null), qa = K.image.Ja);
293
+ K.hc ? (b.scissor(K.Za, L - K.$a - K.jb, K.uc, K.jb), V = !0) : V && (b.scissor(0, L - u, l, u), V = !1);
294
294
  r = 2 / l;
295
295
  const Z = -2 / u;
296
- b.uniform4f(e, J.ha[0] * r * J.Aa, J.ha[1] * Z * J.Ba, J.ha[2] * r * J.Aa, J.ha[3] * Z * J.Ba);
297
- b.uniform2f(f, J.ha[4] * r * J.Aa + r * (J.Za - J.cc * J.Aa) - 1, J.ha[5] * Z * J.Ba + Z * (J.$a - J.dc * J.Ba) + 1);
296
+ b.uniform4f(e, K.ha[0] * r * K.Aa, K.ha[1] * Z * K.Ba, K.ha[2] * r * K.Aa, K.ha[3] * Z * K.Ba);
297
+ b.uniform2f(f, K.ha[4] * r * K.Aa + r * (K.Za - K.cc * K.Aa) - 1, K.ha[5] * Z * K.Ba + Z * (K.$a - K.dc * K.Ba) + 1);
298
298
  b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
299
- b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * C);
300
- b.drawElements(b.TRIANGLES, J.indices.length, b.UNSIGNED_SHORT, T);
301
- w += 4 * J.Ta.length;
302
- T += 2 * J.indices.length;
299
+ b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * D);
300
+ b.drawElements(b.TRIANGLES, K.indices.length, b.UNSIGNED_SHORT, R);
301
+ w += 4 * K.Ta.length;
302
+ R += 2 * K.indices.length;
303
303
  }
304
- console.assert(w == 4 * C);
305
- console.assert(T == 2 * G);
304
+ console.assert(w == 4 * D);
305
+ console.assert(R == 2 * I);
306
306
  }
307
307
  }
308
308
  };
309
309
  this.canvas = function() {
310
310
  return a() && b.canvas;
311
311
  };
312
- }(), ma = m.onRuntimeInitialized;
312
+ }(), na = m.onRuntimeInitialized;
313
313
  m.onRuntimeInitialized = function() {
314
314
  function a(q) {
315
315
  switch(q) {
@@ -351,16 +351,16 @@ m.onRuntimeInitialized = function() {
351
351
  return "rgba(" + ((16711680 & q) >>> 16) + "," + ((65280 & q) >>> 8) + "," + ((255 & q) >>> 0) + "," + ((4278190080 & q) >>> 24) / 255 + ")";
352
352
  }
353
353
  function c() {
354
- 0 < M.length && (la.Nb(w.drawWidth(), w.drawHeight(), M, T, W), M = [], W = T = 0, w.reset(512, 512));
355
- for (const q of G) {
354
+ 0 < L.length && (ma.Nb(w.drawWidth(), w.drawHeight(), L, R, V), L = [], V = R = 0, w.reset(512, 512));
355
+ for (const q of I) {
356
356
  for (const v of q.I) {
357
357
  v();
358
358
  }
359
359
  q.I = [];
360
360
  }
361
- G.clear();
361
+ I.clear();
362
362
  }
363
- ma && ma();
363
+ na && na();
364
364
  var d = m.RenderPaintStyle;
365
365
  const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, k = m.StrokeCap, p = m.StrokeJoin, n = m.BlendMode, t = d.fill, x = d.stroke, y = m.FillRule.evenOdd;
366
366
  let l = 1;
@@ -371,47 +371,47 @@ m.onRuntimeInitialized = function() {
371
371
  this.la = q;
372
372
  this.wa = v;
373
373
  }, __destruct:function() {
374
- this.Ia && (la.Kb(this.Ia), URL.revokeObjectURL(this.Wa));
374
+ this.Ia && (ma.Kb(this.Ia), URL.revokeObjectURL(this.Wa));
375
375
  this.__parent.__destruct.call(this);
376
376
  }, decode:function(q) {
377
377
  var v = this;
378
378
  v.wa && v.wa(v);
379
- var H = new Image();
379
+ var J = new Image();
380
380
  v.Wa = URL.createObjectURL(new Blob([q], {type:"image/png",}));
381
- H.onload = function() {
382
- v.Db = H;
383
- v.Ia = la.Jb(H);
384
- v.size(H.width, H.height);
381
+ J.onload = function() {
382
+ v.Db = J;
383
+ v.Ia = ma.Jb(J);
384
+ v.size(J.width, J.height);
385
385
  v.la && v.la(v);
386
386
  };
387
- H.src = v.Wa;
387
+ J.src = v.Wa;
388
388
  },}), r = e.extend("CanvasRenderPath", {__construct:function() {
389
389
  this.__parent.__construct.call(this);
390
390
  this.U = new Path2D();
391
391
  }, rewind:function() {
392
392
  this.U = new Path2D();
393
- }, addPath:function(q, v, H, E, K, I, F) {
394
- var L = this.U, aa = L.addPath;
393
+ }, addPath:function(q, v, J, G, A, H, E) {
394
+ var M = this.U, ya = M.addPath;
395
395
  q = q.U;
396
- const R = new DOMMatrix();
397
- R.a = v;
398
- R.b = H;
399
- R.c = E;
400
- R.d = K;
401
- R.e = I;
402
- R.f = F;
403
- aa.call(L, q, R);
396
+ const T = new DOMMatrix();
397
+ T.a = v;
398
+ T.b = J;
399
+ T.c = G;
400
+ T.d = A;
401
+ T.e = H;
402
+ T.f = E;
403
+ ya.call(M, q, T);
404
404
  }, fillRule:function(q) {
405
405
  this.Va = q;
406
406
  }, moveTo:function(q, v) {
407
407
  this.U.moveTo(q, v);
408
408
  }, lineTo:function(q, v) {
409
409
  this.U.lineTo(q, v);
410
- }, cubicTo:function(q, v, H, E, K, I) {
411
- this.U.bezierCurveTo(q, v, H, E, K, I);
410
+ }, cubicTo:function(q, v, J, G, A, H) {
411
+ this.U.bezierCurveTo(q, v, J, G, A, H);
412
412
  }, close:function() {
413
413
  this.U.closePath();
414
- },}), C = f.extend("CanvasRenderPaint", {color:function(q) {
414
+ },}), D = f.extend("CanvasRenderPaint", {color:function(q) {
415
415
  this.Xa = b(q);
416
416
  }, thickness:function(q) {
417
417
  this.Gb = q;
@@ -443,48 +443,48 @@ m.onRuntimeInitialized = function() {
443
443
  this.Cb = a(q);
444
444
  }, clearGradient:function() {
445
445
  this.ja = null;
446
- }, linearGradient:function(q, v, H, E) {
447
- this.ja = {xb:q, yb:v, cb:H, eb:E, Qa:[],};
448
- }, radialGradient:function(q, v, H, E) {
449
- this.ja = {xb:q, yb:v, cb:H, eb:E, Qa:[], ac:!0,};
446
+ }, linearGradient:function(q, v, J, G) {
447
+ this.ja = {xb:q, yb:v, cb:J, eb:G, Qa:[],};
448
+ }, radialGradient:function(q, v, J, G) {
449
+ this.ja = {xb:q, yb:v, cb:J, eb:G, Qa:[], ac:!0,};
450
450
  }, addStop:function(q, v) {
451
451
  this.ja.Qa.push({color:q, stop:v,});
452
452
  }, completeGradient:function() {
453
- }, draw:function(q, v, H, E) {
454
- let K = this.Fb;
455
- var I = this.Xa, F = this.ja;
456
- const L = q.globalCompositeOperation, aa = q.globalAlpha;
453
+ }, draw:function(q, v, J, G) {
454
+ let A = this.Fb;
455
+ var H = this.Xa, E = this.ja;
456
+ const M = q.globalCompositeOperation, ya = q.globalAlpha;
457
457
  q.globalCompositeOperation = this.Cb;
458
- q.globalAlpha = E;
459
- if (null != F) {
460
- I = F.xb;
461
- const X = F.yb, S = F.cb;
462
- var R = F.eb;
463
- E = F.Qa;
464
- F.ac ? (F = S - I, R -= X, I = q.createRadialGradient(I, X, 0, I, X, Math.sqrt(F * F + R * R))) : I = q.createLinearGradient(I, X, S, R);
465
- for (let xa = 0, Ya = E.length; xa < Ya; xa++) {
466
- F = E[xa], I.addColorStop(F.stop, b(F.color));
458
+ q.globalAlpha = G;
459
+ if (null != E) {
460
+ H = E.xb;
461
+ const X = E.yb, ha = E.cb;
462
+ var T = E.eb;
463
+ G = E.Qa;
464
+ E.ac ? (E = ha - H, T -= X, H = q.createRadialGradient(H, X, 0, H, X, Math.sqrt(E * E + T * T))) : H = q.createLinearGradient(H, X, ha, T);
465
+ for (let Y = 0, aa = G.length; Y < aa; Y++) {
466
+ E = G[Y], H.addColorStop(E.stop, b(E.color));
467
467
  }
468
- this.Xa = I;
468
+ this.Xa = H;
469
469
  this.ja = null;
470
470
  }
471
- switch(K) {
471
+ switch(A) {
472
472
  case x:
473
- q.strokeStyle = I;
473
+ q.strokeStyle = H;
474
474
  q.lineWidth = this.Gb;
475
475
  q.lineCap = this.Ga;
476
476
  q.lineJoin = this.Ha;
477
477
  q.stroke(v);
478
478
  break;
479
479
  case t:
480
- q.fillStyle = I, q.fill(v, H);
480
+ q.fillStyle = H, q.fill(v, J);
481
481
  }
482
- q.globalCompositeOperation = L;
483
- q.globalAlpha = aa;
482
+ q.globalCompositeOperation = M;
483
+ q.globalAlpha = ya;
484
484
  },});
485
- const G = new Set();
486
- let w = null, M = [], T = 0, W = 0;
487
- var pa = m.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
485
+ const I = new Set();
486
+ let w = null, L = [], R = 0, V = 0;
487
+ var qa = m.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
488
488
  this.__parent.__construct.call(this);
489
489
  this.T = [1, 0, 0, 1, 0, 0];
490
490
  this.G = [1.0];
@@ -503,10 +503,10 @@ m.onRuntimeInitialized = function() {
503
503
  this.T.splice(q);
504
504
  this.G.pop();
505
505
  this.I.push(this.B.restore.bind(this.B));
506
- }, transform:function(q, v, H, E, K, I) {
507
- const F = this.T, L = F.length - 6;
508
- F.splice(L, 6, F[L] * q + F[L + 2] * v, F[L + 1] * q + F[L + 3] * v, F[L] * H + F[L + 2] * E, F[L + 1] * H + F[L + 3] * E, F[L] * K + F[L + 2] * I + F[L + 4], F[L + 1] * K + F[L + 3] * I + F[L + 5]);
509
- this.I.push(this.B.transform.bind(this.B, q, v, H, E, K, I));
506
+ }, transform:function(q, v, J, G, A, H) {
507
+ const E = this.T, M = E.length - 6;
508
+ E.splice(M, 6, E[M] * q + E[M + 2] * v, E[M + 1] * q + E[M + 3] * v, E[M] * J + E[M + 2] * G, E[M + 1] * J + E[M + 3] * G, E[M] * A + E[M + 2] * H + E[M + 4], E[M + 1] * A + E[M + 3] * H + E[M + 5]);
509
+ this.I.push(this.B.transform.bind(this.B, q, v, J, G, A, H));
510
510
  }, rotate:function(q) {
511
511
  const v = Math.sin(q);
512
512
  q = Math.cos(q);
@@ -515,88 +515,96 @@ m.onRuntimeInitialized = function() {
515
515
  this.G[this.G.length - 1] *= q;
516
516
  }, _drawPath:function(q, v) {
517
517
  this.I.push(v.draw.bind(v, this.B, q.U, q.Va === y ? "evenodd" : "nonzero", Math.max(0, this.G[this.G.length - 1])));
518
- }, _drawRiveImage:function(q, v, H, E) {
519
- var K = q.Db;
520
- if (K) {
521
- var I = this.B, F = a(H), L = Math.max(0, E * this.G[this.G.length - 1]);
518
+ }, _drawRiveImage:function(q, v, J, G) {
519
+ var A = q.Db;
520
+ if (A) {
521
+ var H = this.B, E = a(J), M = Math.max(0, G * this.G[this.G.length - 1]);
522
522
  this.I.push(function() {
523
- I.globalCompositeOperation = F;
524
- I.globalAlpha = L;
525
- I.drawImage(K, 0, 0);
526
- I.globalAlpha = 1;
523
+ H.globalCompositeOperation = E;
524
+ H.globalAlpha = M;
525
+ H.drawImage(A, 0, 0);
526
+ H.globalAlpha = 1;
527
527
  });
528
528
  }
529
529
  }, _getMatrix:function(q) {
530
- const v = this.T, H = v.length - 6;
531
- for (let E = 0; 6 > E; ++E) {
532
- q[E] = v[H + E];
530
+ const v = this.T, J = v.length - 6;
531
+ for (let G = 0; 6 > G; ++G) {
532
+ q[G] = v[J + G];
533
+ }
534
+ }, _drawImageMesh:function(q, v, J, G, A, H, E, M, ya, T, X, ha, Y, aa) {
535
+ let ac, bc, cc;
536
+ try {
537
+ ac = m.HEAPF32.slice(A >> 2, (A >> 2) + H), bc = m.HEAPF32.slice(E >> 2, (E >> 2) + M), cc = m.HEAPU16.slice(ya >> 1, (ya >> 1) + T);
538
+ } catch (sb) {
539
+ console.error("[Rive] _drawImageMesh: failed to read mesh data from WASM heap. Mesh skipped for this frame.");
540
+ return;
533
541
  }
534
- }, _drawImageMesh:function(q, v, H, E, K, I, F, L, aa, R, X) {
535
542
  v = this.B.canvas.width;
536
- var S = this.B.canvas.height;
537
- const xa = R - L, Ya = X - aa;
538
- L = Math.max(L, 0);
539
- aa = Math.max(aa, 0);
540
- R = Math.min(R, v);
541
- X = Math.min(X, S);
542
- const Fa = R - L, Ga = X - aa;
543
- console.assert(Fa <= Math.min(xa, v));
544
- console.assert(Ga <= Math.min(Ya, S));
545
- if (!(0 >= Fa || 0 >= Ga)) {
546
- R = Fa < xa || Ga < Ya;
547
- v = X = 1;
548
- var qa = Math.ceil(Fa * X), ra = Math.ceil(Ga * v);
549
- S = la.bc();
550
- qa > S && (X *= S / qa, qa = S);
551
- ra > S && (v *= S / ra, ra = S);
552
- w || (w = new m.DynamicRectanizer(S), w.reset(512, 512));
553
- S = w.addRect(qa, ra);
554
- 0 > S && (c(), G.add(this), S = w.addRect(qa, ra), console.assert(0 <= S));
555
- var $b = S & 65535, ac = S >> 16;
556
- M.push({ha:this.T.slice(this.T.length - 6), image:q, Za:$b, $a:ac, cc:L, dc:aa, uc:qa, jb:ra, Aa:X, Ba:v, Ta:new Float32Array(K), Bb:new Float32Array(I), indices:new Uint16Array(F), hc:R, vb:q.Ja << 1 | (R ? 1 : 0),});
557
- T += K.length;
558
- W += F.length;
559
- var ya = this.B, od = a(H), pd = Math.max(0, E * this.G[this.G.length - 1]);
543
+ A = this.B.canvas.height;
544
+ E = Y - X;
545
+ M = aa - ha;
546
+ X = Math.max(X, 0);
547
+ ha = Math.max(ha, 0);
548
+ Y = Math.min(Y, v);
549
+ aa = Math.min(aa, A);
550
+ const Ga = Y - X, Ha = aa - ha;
551
+ console.assert(Ga <= Math.min(E, v));
552
+ console.assert(Ha <= Math.min(M, A));
553
+ if (!(0 >= Ga || 0 >= Ha)) {
554
+ Y = Ga < E || Ha < M;
555
+ v = aa = 1;
556
+ var ra = Math.ceil(Ga * aa), sa = Math.ceil(Ha * v);
557
+ A = ma.bc();
558
+ ra > A && (aa *= A / ra, ra = A);
559
+ sa > A && (v *= A / sa, sa = A);
560
+ w || (w = new m.DynamicRectanizer(A), w.reset(512, 512));
561
+ A = w.addRect(ra, sa);
562
+ 0 > A && (c(), I.add(this), A = w.addRect(ra, sa), console.assert(0 <= A));
563
+ var dc = A & 65535, ec = A >> 16;
564
+ L.push({ha:this.T.slice(this.T.length - 6), image:q, Za:dc, $a:ec, cc:X, dc:ha, uc:ra, jb:sa, Aa:aa, Ba:v, Ta:ac, Bb:bc, indices:cc, hc:Y, vb:q.Ja << 1 | (Y ? 1 : 0),});
565
+ R += H;
566
+ V += T;
567
+ var za = this.B, rd = a(J), sd = Math.max(0, G * this.G[this.G.length - 1]);
560
568
  this.I.push(function() {
561
- ya.save();
562
- ya.resetTransform();
563
- ya.globalCompositeOperation = od;
564
- ya.globalAlpha = pd;
565
- const bc = la.canvas();
566
- bc && ya.drawImage(bc, $b, ac, qa, ra, L, aa, Fa, Ga);
567
- ya.restore();
569
+ za.save();
570
+ za.resetTransform();
571
+ za.globalCompositeOperation = rd;
572
+ za.globalAlpha = sd;
573
+ const sb = ma.canvas();
574
+ sb && za.drawImage(sb, dc, ec, ra, sa, X, ha, Ga, Ha);
575
+ za.restore();
568
576
  });
569
577
  }
570
578
  }, _clipPath:function(q) {
571
579
  this.I.push(this.B.clip.bind(this.B, q.U, q.Va === y ? "evenodd" : "nonzero"));
572
580
  }, clear:function() {
573
- G.add(this);
581
+ I.add(this);
574
582
  this.I.push(this.B.clearRect.bind(this.B, 0, 0, this.Ua.width, this.Ua.height));
575
583
  }, flush:function() {
576
584
  }, translate:function(q, v) {
577
585
  this.transform(1, 0, 0, 1, q, v);
578
586
  },});
579
587
  m.makeRenderer = function(q) {
580
- const v = new pa(q), H = v.B;
581
- return new Proxy(v, {get(E, K) {
582
- if ("function" === typeof E[K]) {
583
- return function(...I) {
584
- return E[K].apply(E, I);
588
+ const v = new qa(q), J = v.B;
589
+ return new Proxy(v, {get(G, A) {
590
+ if ("function" === typeof G[A]) {
591
+ return function(...H) {
592
+ return G[A].apply(G, H);
585
593
  };
586
594
  }
587
- if ("function" === typeof H[K]) {
588
- if (-1 < ka.indexOf(K)) {
589
- throw Error("RiveException: Method call to '" + K + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
595
+ if ("function" === typeof J[A]) {
596
+ if (-1 < la.indexOf(A)) {
597
+ throw Error("RiveException: Method call to '" + A + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
590
598
  }
591
- return function(...I) {
592
- v.I.push(H[K].bind(H, ...I));
599
+ return function(...H) {
600
+ v.I.push(J[A].bind(J, ...H));
593
601
  };
594
602
  }
595
- return E[K];
596
- }, set(E, K, I) {
597
- if (K in H) {
603
+ return G[A];
604
+ }, set(G, A, H) {
605
+ if (A in J) {
598
606
  return v.I.push(() => {
599
- H[K] = I;
607
+ J[A] = H;
600
608
  }), !0;
601
609
  }
602
610
  },});
@@ -605,7 +613,7 @@ m.onRuntimeInitialized = function() {
605
613
  (new u({la:v})).decode(q);
606
614
  };
607
615
  m.renderFactory = {makeRenderPaint:function() {
608
- return new C();
616
+ return new D();
609
617
  }, makeRenderPath:function() {
610
618
  return new r();
611
619
  }, makeRenderImage:function() {
@@ -620,25 +628,25 @@ m.onRuntimeInitialized = function() {
620
628
  }
621
629
  },});
622
630
  },};
623
- let J = m.load, Z = null;
624
- m.load = function(q, v, H = !0) {
625
- const E = new m.FallbackFileAssetLoader();
626
- void 0 !== v && E.addLoader(v);
627
- H && (v = new m.CDNFileAssetLoader(), E.addLoader(v));
628
- return new Promise(function(K) {
629
- let I = null;
631
+ let K = m.load, Z = null;
632
+ m.load = function(q, v, J = !0) {
633
+ const G = new m.FallbackFileAssetLoader();
634
+ void 0 !== v && G.addLoader(v);
635
+ J && (v = new m.CDNFileAssetLoader(), G.addLoader(v));
636
+ return new Promise(function(A) {
637
+ let H = null;
630
638
  Z = {total:0, loaded:0, ready:function() {
631
- K(I);
639
+ A(H);
632
640
  },};
633
- I = J(q, E);
634
- 0 == Z.total && K(I);
641
+ H = K(q, G);
642
+ 0 == Z.total && A(H);
635
643
  });
636
644
  };
637
- let qd = m.RendererWrapper.prototype.align;
638
- m.RendererWrapper.prototype.align = function(q, v, H, E, K = 1.0) {
639
- qd.call(this, q, v, H, E, K);
645
+ let td = m.RendererWrapper.prototype.align;
646
+ m.RendererWrapper.prototype.align = function(q, v, J, G, A = 1.0) {
647
+ td.call(this, q, v, J, G, A);
640
648
  };
641
- d = new ha();
649
+ d = new ia();
642
650
  m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
643
651
  m.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
644
652
  m.enableFPSCounter = d.Ob.bind(d);
@@ -649,16 +657,16 @@ m.onRuntimeInitialized = function() {
649
657
  w && w.delete();
650
658
  };
651
659
  };
652
- var na = Object.assign({}, m), oa = "./this.program", sa = "", ta, ua;
660
+ var oa = Object.assign({}, m), pa = "./this.program", ta = "", ua, va;
653
661
  if (ea || fa) {
654
- fa ? sa = self.location.href : "undefined" != typeof document && document.currentScript && (sa = document.currentScript.src), _scriptName && (sa = _scriptName), sa.startsWith("blob:") ? sa = "" : sa = sa.substr(0, sa.replace(/[?#].*/, "").lastIndexOf("/") + 1), fa && (ua = a => {
662
+ fa ? ta = self.location.href : "undefined" != typeof document && document.currentScript && (ta = document.currentScript.src), _scriptName && (ta = _scriptName), ta.startsWith("blob:") ? ta = "" : ta = ta.substr(0, ta.replace(/[?#].*/, "").lastIndexOf("/") + 1), fa && (va = a => {
655
663
  var b = new XMLHttpRequest();
656
664
  b.open("GET", a, !1);
657
665
  b.responseType = "arraybuffer";
658
666
  b.send(null);
659
667
  return new Uint8Array(b.response);
660
- }), ta = (a, b, c) => {
661
- if (va(a)) {
668
+ }), ua = (a, b, c) => {
669
+ if (wa(a)) {
662
670
  var d = new XMLHttpRequest();
663
671
  d.open("GET", a, !0);
664
672
  d.responseType = "arraybuffer";
@@ -672,75 +680,75 @@ if (ea || fa) {
672
680
  }
673
681
  };
674
682
  }
675
- var wa = m.print || console.log.bind(console), za = m.printErr || console.error.bind(console);
676
- Object.assign(m, na);
677
- na = null;
678
- m.thisProgram && (oa = m.thisProgram);
679
- var Aa;
680
- m.wasmBinary && (Aa = m.wasmBinary);
681
- var Ba, Ca = !1, z, A, Da, Ea, B, D, Ha, Ia;
682
- function Ja() {
683
- var a = Ba.buffer;
683
+ var xa = m.print || console.log.bind(console), Aa = m.printErr || console.error.bind(console);
684
+ Object.assign(m, oa);
685
+ oa = null;
686
+ m.thisProgram && (pa = m.thisProgram);
687
+ var Ba;
688
+ m.wasmBinary && (Ba = m.wasmBinary);
689
+ var Ca, Da = !1, z, B, Ea, Fa, C, F, Ia, Ja;
690
+ function Ka() {
691
+ var a = Ca.buffer;
684
692
  m.HEAP8 = z = new Int8Array(a);
685
- m.HEAP16 = Da = new Int16Array(a);
686
- m.HEAPU8 = A = new Uint8Array(a);
687
- m.HEAPU16 = Ea = new Uint16Array(a);
688
- m.HEAP32 = B = new Int32Array(a);
689
- m.HEAPU32 = D = new Uint32Array(a);
690
- m.HEAPF32 = Ha = new Float32Array(a);
691
- m.HEAPF64 = Ia = new Float64Array(a);
693
+ m.HEAP16 = Ea = new Int16Array(a);
694
+ m.HEAPU8 = B = new Uint8Array(a);
695
+ m.HEAPU16 = Fa = new Uint16Array(a);
696
+ m.HEAP32 = C = new Int32Array(a);
697
+ m.HEAPU32 = F = new Uint32Array(a);
698
+ m.HEAPF32 = Ia = new Float32Array(a);
699
+ m.HEAPF64 = Ja = new Float64Array(a);
692
700
  }
693
- var Ka = [], La = [], Ma = [];
694
- function Na() {
701
+ var La = [], Ma = [], Na = [];
702
+ function Oa() {
695
703
  var a = m.preRun.shift();
696
- Ka.unshift(a);
704
+ La.unshift(a);
697
705
  }
698
- var Oa = 0, Pa = null, Qa = null;
699
- function Ra(a) {
706
+ var Pa = 0, Qa = null, Ra = null;
707
+ function Sa(a) {
700
708
  m.onAbort?.(a);
701
709
  a = "Aborted(" + a + ")";
702
- za(a);
703
- Ca = !0;
710
+ Aa(a);
711
+ Da = !0;
704
712
  a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
705
713
  ca(a);
706
714
  throw a;
707
715
  }
708
- var Sa = a => a.startsWith("data:application/octet-stream;base64,"), va = a => a.startsWith("file://"), Ta;
709
- function Ua(a) {
710
- if (a == Ta && Aa) {
711
- return new Uint8Array(Aa);
716
+ var Ta = a => a.startsWith("data:application/octet-stream;base64,"), wa = a => a.startsWith("file://"), Ua;
717
+ function Va(a) {
718
+ if (a == Ua && Ba) {
719
+ return new Uint8Array(Ba);
712
720
  }
713
- if (ua) {
714
- return ua(a);
721
+ if (va) {
722
+ return va(a);
715
723
  }
716
724
  throw "both async and sync fetching of the wasm failed";
717
725
  }
718
- function Va(a) {
719
- return Aa ? Promise.resolve().then(() => Ua(a)) : new Promise((b, c) => {
720
- ta(a, d => b(new Uint8Array(d)), () => {
726
+ function Wa(a) {
727
+ return Ba ? Promise.resolve().then(() => Va(a)) : new Promise((b, c) => {
728
+ ua(a, d => b(new Uint8Array(d)), () => {
721
729
  try {
722
- b(Ua(a));
730
+ b(Va(a));
723
731
  } catch (d) {
724
732
  c(d);
725
733
  }
726
734
  });
727
735
  });
728
736
  }
729
- function Wa(a, b, c) {
730
- return Va(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
731
- za(`failed to asynchronously prepare wasm: ${d}`);
732
- Ra(d);
737
+ function Xa(a, b, c) {
738
+ return Wa(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
739
+ Aa(`failed to asynchronously prepare wasm: ${d}`);
740
+ Sa(d);
733
741
  });
734
742
  }
735
- function Xa(a, b) {
736
- var c = Ta;
737
- return Aa || "function" != typeof WebAssembly.instantiateStreaming || Sa(c) || va(c) || "function" != typeof fetch ? Wa(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
738
- za(`wasm streaming compile failed: ${e}`);
739
- za("falling back to ArrayBuffer instantiation");
740
- return Wa(c, a, b);
743
+ function Ya(a, b) {
744
+ var c = Ua;
745
+ return Ba || "function" != typeof WebAssembly.instantiateStreaming || Ta(c) || wa(c) || "function" != typeof fetch ? Xa(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
746
+ Aa(`wasm streaming compile failed: ${e}`);
747
+ Aa("falling back to ArrayBuffer instantiation");
748
+ return Xa(c, a, b);
741
749
  }));
742
750
  }
743
- var Za, $a, db = {478226:(a, b, c, d, e) => {
751
+ var Za, $a, db = {478498:(a, b, c, d, e) => {
744
752
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
745
753
  return 0;
746
754
  }
@@ -803,11 +811,11 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
803
811
  }
804
812
  window.h.za += 1;
805
813
  return 1;
806
- }, 480404:() => {
814
+ }, 480676:() => {
807
815
  "undefined" !== typeof window.h && (window.h.Sa.map(function(a) {
808
816
  document.removeEventListener(a, window.h.unlock, !0);
809
817
  }), --window.h.za, 0 === window.h.za && delete window.h);
810
- }, 480708:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 480812:() => {
818
+ }, 480980:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 481084:() => {
811
819
  try {
812
820
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
813
821
  a.close();
@@ -815,7 +823,7 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
815
823
  } catch (c) {
816
824
  return 0;
817
825
  }
818
- }, 480983:(a, b, c, d, e, f) => {
826
+ }, 481255:(a, b, c, d, e, f) => {
819
827
  if ("undefined" === typeof window.h) {
820
828
  return -1;
821
829
  }
@@ -829,7 +837,7 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
829
837
  g.Z = g.L.createScriptProcessor(d, c, b);
830
838
  g.Z.onaudioprocess = function(p) {
831
839
  if (null == g.ra || 0 == g.ra.length) {
832
- g.ra = new Float32Array(Ha.buffer, e, d * b);
840
+ g.ra = new Float32Array(Ia.buffer, e, d * b);
833
841
  }
834
842
  if (a == window.h.J.capture || a == window.h.J.Ka) {
835
843
  for (var n = 0; n < b; n += 1) {
@@ -861,7 +869,7 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
861
869
  a == window.h.J.xa && g.Z.connect(g.L.destination);
862
870
  g.pb = f;
863
871
  return window.h.sc(g);
864
- }, 483860:a => window.h.qa(a).L.sampleRate, 483933:a => {
872
+ }, 484132:a => window.h.qa(a).L.sampleRate, 484205:a => {
865
873
  a = window.h.qa(a);
866
874
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
867
875
  }, a.Z.disconnect(), a.Z = void 0);
@@ -869,13 +877,13 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
869
877
  a.L.close();
870
878
  a.L = void 0;
871
879
  a.pb = void 0;
872
- }, 484333:a => {
880
+ }, 484605:a => {
873
881
  window.h.Ab(a);
874
- }, 484383:a => {
882
+ }, 484655:a => {
875
883
  a = window.h.qa(a);
876
884
  a.L.resume();
877
885
  a.state = window.h.ga.wb;
878
- }, 484522:a => {
886
+ }, 484794:a => {
879
887
  a = window.h.qa(a);
880
888
  a.L.suspend();
881
889
  a.state = window.h.ga.stopped;
@@ -885,7 +893,7 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
885
893
  }
886
894
  };
887
895
  function fb() {
888
- var a = B[+gb >> 2];
896
+ var a = C[+gb >> 2];
889
897
  gb += 4;
890
898
  return a;
891
899
  }
@@ -926,7 +934,7 @@ var hb = (a, b) => {
926
934
  if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
927
935
  return a => crypto.getRandomValues(a);
928
936
  }
929
- Ra("initRandomDevice");
937
+ Sa("initRandomDevice");
930
938
  }, mb = a => (mb = lb())(a), nb = (...a) => {
931
939
  for (var b = "", c = !1, d = a.length - 1; -1 <= d && !c; d--) {
932
940
  c = 0 <= d ? a[d] : "/";
@@ -971,7 +979,7 @@ var hb = (a, b) => {
971
979
  127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
972
980
  }
973
981
  return b;
974
- }, sb = (a, b, c, d) => {
982
+ }, tb = (a, b, c, d) => {
975
983
  if (!(0 < d)) {
976
984
  return 0;
977
985
  }
@@ -1015,19 +1023,19 @@ var hb = (a, b) => {
1015
1023
  b[c] = 0;
1016
1024
  return c - e;
1017
1025
  };
1018
- function tb(a, b) {
1026
+ function ub(a, b) {
1019
1027
  var c = Array(rb(a) + 1);
1020
- a = sb(a, c, 0, c.length);
1028
+ a = tb(a, c, 0, c.length);
1021
1029
  b && (c.length = a);
1022
1030
  return c;
1023
1031
  }
1024
- var ub = [];
1025
- function vb(a, b) {
1026
- ub[a] = {input:[], H:[], W:b};
1027
- wb(a, xb);
1032
+ var vb = [];
1033
+ function wb(a, b) {
1034
+ vb[a] = {input:[], H:[], W:b};
1035
+ xb(a, yb);
1028
1036
  }
1029
- var xb = {open(a) {
1030
- var b = ub[a.node.ya];
1037
+ var yb = {open(a) {
1038
+ var b = vb[a.node.ya];
1031
1039
  if (!b) {
1032
1040
  throw new N(43);
1033
1041
  }
@@ -1071,7 +1079,7 @@ var xb = {open(a) {
1071
1079
  }
1072
1080
  d && (a.node.timestamp = Date.now());
1073
1081
  return e;
1074
- },}, yb = {ib() {
1082
+ },}, zb = {ib() {
1075
1083
  a: {
1076
1084
  if (!qb.length) {
1077
1085
  var a = null;
@@ -1080,27 +1088,27 @@ var xb = {open(a) {
1080
1088
  a = null;
1081
1089
  break a;
1082
1090
  }
1083
- qb = tb(a, !0);
1091
+ qb = ub(a, !0);
1084
1092
  }
1085
1093
  a = qb.shift();
1086
1094
  }
1087
1095
  return a;
1088
1096
  }, Na(a, b) {
1089
- null === b || 10 === b ? (wa(pb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
1097
+ null === b || 10 === b ? (xa(pb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
1090
1098
  }, pa(a) {
1091
- a.H && 0 < a.H.length && (wa(pb(a.H, 0)), a.H = []);
1099
+ a.H && 0 < a.H.length && (xa(pb(a.H, 0)), a.H = []);
1092
1100
  }, Yb() {
1093
1101
  return {Ac:25856, Cc:5, zc:191, Bc:35387, yc:[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,]};
1094
1102
  }, Zb() {
1095
1103
  return 0;
1096
1104
  }, $b() {
1097
1105
  return [24, 80];
1098
- },}, zb = {Na(a, b) {
1099
- null === b || 10 === b ? (za(pb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
1106
+ },}, Ab = {Na(a, b) {
1107
+ null === b || 10 === b ? (Aa(pb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
1100
1108
  }, pa(a) {
1101
- a.H && 0 < a.H.length && (za(pb(a.H, 0)), a.H = []);
1109
+ a.H && 0 < a.H.length && (Aa(pb(a.H, 0)), a.H = []);
1102
1110
  },};
1103
- function Ab(a, b) {
1111
+ function Bb(a, b) {
1104
1112
  var c = a.l ? a.l.length : 0;
1105
1113
  c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.l, a.l = new Uint8Array(b), 0 < a.v && a.l.set(c.subarray(0, a.v), 0));
1106
1114
  }
@@ -1110,8 +1118,8 @@ var O = {O:null, V() {
1110
1118
  if (24576 === (c & 61440) || 4096 === (c & 61440)) {
1111
1119
  throw new N(63);
1112
1120
  }
1113
- O.O || (O.O = {dir:{node:{Y:O.j.Y, R:O.j.R, ka:O.j.ka, ua:O.j.ua, tb:O.j.tb, zb:O.j.zb, ub:O.j.ub, sb:O.j.sb, Da:O.j.Da}, stream:{ba:O.m.ba}}, file:{node:{Y:O.j.Y, R:O.j.R}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, Ya:O.m.Ya, lb:O.m.lb, nb:O.m.nb}}, link:{node:{Y:O.j.Y, R:O.j.R, ma:O.j.ma}, stream:{}}, ab:{node:{Y:O.j.Y, R:O.j.R}, stream:Bb}});
1114
- c = Cb(a, b, c, d);
1121
+ O.O || (O.O = {dir:{node:{Y:O.j.Y, R:O.j.R, ka:O.j.ka, ua:O.j.ua, tb:O.j.tb, zb:O.j.zb, ub:O.j.ub, sb:O.j.sb, Da:O.j.Da}, stream:{ba:O.m.ba}}, file:{node:{Y:O.j.Y, R:O.j.R}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, Ya:O.m.Ya, lb:O.m.lb, nb:O.m.nb}}, link:{node:{Y:O.j.Y, R:O.j.R, ma:O.j.ma}, stream:{}}, ab:{node:{Y:O.j.Y, R:O.j.R}, stream:Cb}});
1122
+ c = Db(a, b, c, d);
1115
1123
  16384 === (c.mode & 61440) ? (c.j = O.O.dir.node, c.m = O.O.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.j = O.O.ab.node, c.m = O.O.ab.stream);
1116
1124
  c.timestamp = Date.now();
1117
1125
  a && (a.l[b] = c, a.timestamp = c.timestamp);
@@ -1148,13 +1156,13 @@ var O = {O:null, V() {
1148
1156
  }
1149
1157
  }
1150
1158
  }, ka() {
1151
- throw Db[44];
1159
+ throw Eb[44];
1152
1160
  }, ua(a, b, c, d) {
1153
1161
  return O.createNode(a, b, c, d);
1154
1162
  }, tb(a, b, c) {
1155
1163
  if (16384 === (a.mode & 61440)) {
1156
1164
  try {
1157
- var d = Eb(b, c);
1165
+ var d = Fb(b, c);
1158
1166
  } catch (f) {
1159
1167
  }
1160
1168
  if (d) {
@@ -1172,7 +1180,7 @@ var O = {O:null, V() {
1172
1180
  delete a.l[b];
1173
1181
  a.timestamp = Date.now();
1174
1182
  }, ub(a, b) {
1175
- var c = Eb(a, b), d;
1183
+ var c = Fb(a, b), d;
1176
1184
  for (d in c.l) {
1177
1185
  throw new N(55);
1178
1186
  }
@@ -1225,7 +1233,7 @@ var O = {O:null, V() {
1225
1233
  return a.l.set(b.subarray(c, c + d), e), d;
1226
1234
  }
1227
1235
  }
1228
- Ab(a, e + d);
1236
+ Bb(a, e + d);
1229
1237
  if (a.l.subarray && b.subarray) {
1230
1238
  a.l.set(b.subarray(c, c + d), e);
1231
1239
  } else {
@@ -1242,7 +1250,7 @@ var O = {O:null, V() {
1242
1250
  }
1243
1251
  return b;
1244
1252
  }, Ya(a, b, c) {
1245
- Ab(a.node, b + c);
1253
+ Bb(a.node, b + c);
1246
1254
  a.node.v = Math.max(a.node.v, b + c);
1247
1255
  }, lb(a, b, c, d, e) {
1248
1256
  if (32768 !== (a.node.mode & 61440)) {
@@ -1254,7 +1262,7 @@ var O = {O:null, V() {
1254
1262
  a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
1255
1263
  }
1256
1264
  c = !0;
1257
- Ra();
1265
+ Sa();
1258
1266
  b = void 0;
1259
1267
  if (!b) {
1260
1268
  throw new N(48);
@@ -1267,17 +1275,17 @@ var O = {O:null, V() {
1267
1275
  }, nb(a, b, c, d) {
1268
1276
  O.m.write(a, b, 0, d, c, !1);
1269
1277
  return 0;
1270
- },},}, Fb = (a, b) => {
1278
+ },},}, Gb = (a, b) => {
1271
1279
  var c = 0;
1272
1280
  a && (c |= 365);
1273
1281
  b && (c |= 146);
1274
1282
  return c;
1275
- }, Gb = null, Hb = {}, Ib = [], Jb = 1, Kb = null, Lb = !0, N = class {
1283
+ }, Hb = null, Ib = {}, Jb = [], Kb = 1, Lb = null, Mb = !0, N = class {
1276
1284
  constructor(a) {
1277
1285
  this.name = "ErrnoError";
1278
1286
  this.aa = a;
1279
1287
  }
1280
- }, Db = {}, Mb = class {
1288
+ }, Eb = {}, Nb = class {
1281
1289
  constructor() {
1282
1290
  this.h = {};
1283
1291
  this.node = null;
@@ -1294,13 +1302,13 @@ var O = {O:null, V() {
1294
1302
  set position(a) {
1295
1303
  this.h.position = a;
1296
1304
  }
1297
- }, Nb = class {
1305
+ }, Ob = class {
1298
1306
  constructor(a, b, c, d) {
1299
1307
  a ||= this;
1300
1308
  this.parent = a;
1301
1309
  this.V = a.V;
1302
1310
  this.va = null;
1303
- this.id = Jb++;
1311
+ this.id = Kb++;
1304
1312
  this.name = b;
1305
1313
  this.mode = c;
1306
1314
  this.j = {};
@@ -1320,7 +1328,7 @@ var O = {O:null, V() {
1320
1328
  a ? this.mode |= 146 : this.mode &= -147;
1321
1329
  }
1322
1330
  };
1323
- function Ob(a, b = {}) {
1331
+ function Pb(a, b = {}) {
1324
1332
  a = nb(a);
1325
1333
  if (!a) {
1326
1334
  return {path:"", node:null};
@@ -1330,17 +1338,17 @@ function Ob(a, b = {}) {
1330
1338
  throw new N(32);
1331
1339
  }
1332
1340
  a = a.split("/").filter(g => !!g);
1333
- for (var c = Gb, d = "/", e = 0; e < a.length; e++) {
1341
+ for (var c = Hb, d = "/", e = 0; e < a.length; e++) {
1334
1342
  var f = e === a.length - 1;
1335
1343
  if (f && b.parent) {
1336
1344
  break;
1337
1345
  }
1338
- c = Eb(c, a[e]);
1346
+ c = Fb(c, a[e]);
1339
1347
  d = ib(d + "/" + a[e]);
1340
1348
  c.va && (!f || f && b.hb) && (c = c.va.root);
1341
1349
  if (!f || b.gb) {
1342
1350
  for (f = 0; 40960 === (c.mode & 61440);) {
1343
- if (c = Pb(d), d = nb(jb(d), c), c = Ob(d, {Pa:b.Pa + 1}).node, 40 < f++) {
1351
+ if (c = Qb(d), d = nb(jb(d), c), c = Pb(d, {Pa:b.Pa + 1}).node, 40 < f++) {
1344
1352
  throw new N(32);
1345
1353
  }
1346
1354
  }
@@ -1348,7 +1356,7 @@ function Ob(a, b = {}) {
1348
1356
  }
1349
1357
  return {path:d, node:c};
1350
1358
  }
1351
- function Qb(a) {
1359
+ function Rb(a) {
1352
1360
  for (var b;;) {
1353
1361
  if (a === a.parent) {
1354
1362
  return a = a.V.mb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
@@ -1357,18 +1365,18 @@ function Qb(a) {
1357
1365
  a = a.parent;
1358
1366
  }
1359
1367
  }
1360
- function Rb(a, b) {
1368
+ function Sb(a, b) {
1361
1369
  for (var c = 0, d = 0; d < b.length; d++) {
1362
1370
  c = (c << 5) - c + b.charCodeAt(d) | 0;
1363
1371
  }
1364
- return (a + c >>> 0) % Kb.length;
1372
+ return (a + c >>> 0) % Lb.length;
1365
1373
  }
1366
- function Eb(a, b) {
1367
- var c = 16384 === (a.mode & 61440) ? (c = Sb(a, "x")) ? c : a.j.ka ? 0 : 2 : 54;
1374
+ function Fb(a, b) {
1375
+ var c = 16384 === (a.mode & 61440) ? (c = Tb(a, "x")) ? c : a.j.ka ? 0 : 2 : 54;
1368
1376
  if (c) {
1369
1377
  throw new N(c);
1370
1378
  }
1371
- for (c = Kb[Rb(a.id, b)]; c; c = c.fc) {
1379
+ for (c = Lb[Sb(a.id, b)]; c; c = c.fc) {
1372
1380
  var d = c.name;
1373
1381
  if (c.parent.id === a.id && d === b) {
1374
1382
  return c;
@@ -1376,19 +1384,19 @@ function Eb(a, b) {
1376
1384
  }
1377
1385
  return a.j.ka(a, b);
1378
1386
  }
1379
- function Cb(a, b, c, d) {
1380
- a = new Nb(a, b, c, d);
1381
- b = Rb(a.parent.id, a.name);
1382
- a.fc = Kb[b];
1383
- return Kb[b] = a;
1387
+ function Db(a, b, c, d) {
1388
+ a = new Ob(a, b, c, d);
1389
+ b = Sb(a.parent.id, a.name);
1390
+ a.fc = Lb[b];
1391
+ return Lb[b] = a;
1384
1392
  }
1385
- function Tb(a) {
1393
+ function Ub(a) {
1386
1394
  var b = ["r", "w", "rw"][a & 3];
1387
1395
  a & 512 && (b += "w");
1388
1396
  return b;
1389
1397
  }
1390
- function Sb(a, b) {
1391
- if (Lb) {
1398
+ function Tb(a, b) {
1399
+ if (Mb) {
1392
1400
  return 0;
1393
1401
  }
1394
1402
  if (!b.includes("r") || a.mode & 292) {
@@ -1400,26 +1408,26 @@ function Sb(a, b) {
1400
1408
  }
1401
1409
  return 0;
1402
1410
  }
1403
- function Ub(a, b) {
1411
+ function Vb(a, b) {
1404
1412
  try {
1405
- return Eb(a, b), 20;
1413
+ return Fb(a, b), 20;
1406
1414
  } catch (c) {
1407
1415
  }
1408
- return Sb(a, "wx");
1416
+ return Tb(a, "wx");
1409
1417
  }
1410
- function Vb(a) {
1411
- a = Ib[a];
1418
+ function Wb(a) {
1419
+ a = Jb[a];
1412
1420
  if (!a) {
1413
1421
  throw new N(8);
1414
1422
  }
1415
1423
  return a;
1416
1424
  }
1417
- function Wb(a, b = -1) {
1418
- a = Object.assign(new Mb(), a);
1425
+ function Xb(a, b = -1) {
1426
+ a = Object.assign(new Nb(), a);
1419
1427
  if (-1 == b) {
1420
1428
  a: {
1421
1429
  for (b = 0; 4096 >= b; b++) {
1422
- if (!Ib[b]) {
1430
+ if (!Jb[b]) {
1423
1431
  break a;
1424
1432
  }
1425
1433
  }
@@ -1427,29 +1435,29 @@ function Wb(a, b = -1) {
1427
1435
  }
1428
1436
  }
1429
1437
  a.X = b;
1430
- return Ib[b] = a;
1438
+ return Jb[b] = a;
1431
1439
  }
1432
- function Xb(a, b = -1) {
1433
- a = Wb(a, b);
1440
+ function Yb(a, b = -1) {
1441
+ a = Xb(a, b);
1434
1442
  a.m?.Fc?.(a);
1435
1443
  return a;
1436
1444
  }
1437
- var Bb = {open(a) {
1438
- a.m = Hb[a.node.ya].m;
1445
+ var Cb = {open(a) {
1446
+ a.m = Ib[a.node.ya].m;
1439
1447
  a.m.open?.(a);
1440
1448
  }, ba() {
1441
1449
  throw new N(70);
1442
1450
  },};
1443
- function wb(a, b) {
1444
- Hb[a] = {m:b};
1451
+ function xb(a, b) {
1452
+ Ib[a] = {m:b};
1445
1453
  }
1446
- function Yb(a, b) {
1454
+ function Zb(a, b) {
1447
1455
  var c = "/" === b;
1448
- if (c && Gb) {
1456
+ if (c && Hb) {
1449
1457
  throw new N(10);
1450
1458
  }
1451
1459
  if (!c && b) {
1452
- var d = Ob(b, {hb:!1});
1460
+ var d = Pb(b, {hb:!1});
1453
1461
  b = d.path;
1454
1462
  d = d.node;
1455
1463
  if (d.va) {
@@ -1463,15 +1471,15 @@ function Yb(a, b) {
1463
1471
  a = a.V(b);
1464
1472
  a.V = b;
1465
1473
  b.root = a;
1466
- c ? Gb = a : d && (d.va = b, d.V && d.V.ec.push(b));
1474
+ c ? Hb = a : d && (d.va = b, d.V && d.V.ec.push(b));
1467
1475
  }
1468
- function Zb(a, b, c) {
1469
- var d = Ob(a, {parent:!0}).node;
1476
+ function $b(a, b, c) {
1477
+ var d = Pb(a, {parent:!0}).node;
1470
1478
  a = kb(a);
1471
1479
  if (!a || "." === a || ".." === a) {
1472
1480
  throw new N(28);
1473
1481
  }
1474
- var e = Ub(d, a);
1482
+ var e = Vb(d, a);
1475
1483
  if (e) {
1476
1484
  throw new N(e);
1477
1485
  }
@@ -1480,23 +1488,23 @@ function Zb(a, b, c) {
1480
1488
  }
1481
1489
  return d.j.ua(d, a, b, c);
1482
1490
  }
1483
- function cc(a) {
1484
- return Zb(a, 16895, 0);
1491
+ function fc(a) {
1492
+ return $b(a, 16895, 0);
1485
1493
  }
1486
- function dc(a, b, c) {
1494
+ function gc(a, b, c) {
1487
1495
  "undefined" == typeof c && (c = b, b = 438);
1488
- Zb(a, b | 8192, c);
1496
+ $b(a, b | 8192, c);
1489
1497
  }
1490
- function ec(a, b) {
1498
+ function hc(a, b) {
1491
1499
  if (!nb(a)) {
1492
1500
  throw new N(44);
1493
1501
  }
1494
- var c = Ob(b, {parent:!0}).node;
1502
+ var c = Pb(b, {parent:!0}).node;
1495
1503
  if (!c) {
1496
1504
  throw new N(44);
1497
1505
  }
1498
1506
  b = kb(b);
1499
- var d = Ub(c, b);
1507
+ var d = Vb(c, b);
1500
1508
  if (d) {
1501
1509
  throw new N(d);
1502
1510
  }
@@ -1505,17 +1513,17 @@ function ec(a, b) {
1505
1513
  }
1506
1514
  c.j.Da(c, b, a);
1507
1515
  }
1508
- function Pb(a) {
1509
- a = Ob(a).node;
1516
+ function Qb(a) {
1517
+ a = Pb(a).node;
1510
1518
  if (!a) {
1511
1519
  throw new N(44);
1512
1520
  }
1513
1521
  if (!a.j.ma) {
1514
1522
  throw new N(28);
1515
1523
  }
1516
- return nb(Qb(a.parent), a.j.ma(a));
1524
+ return nb(Rb(a.parent), a.j.ma(a));
1517
1525
  }
1518
- function fc(a, b, c) {
1526
+ function ic(a, b, c) {
1519
1527
  if ("" === a) {
1520
1528
  throw new N(44);
1521
1529
  }
@@ -1532,7 +1540,7 @@ function fc(a, b, c) {
1532
1540
  } else {
1533
1541
  a = ib(a);
1534
1542
  try {
1535
- e = Ob(a, {gb:!(b & 131072)}).node;
1543
+ e = Pb(a, {gb:!(b & 131072)}).node;
1536
1544
  } catch (f) {
1537
1545
  }
1538
1546
  }
@@ -1543,7 +1551,7 @@ function fc(a, b, c) {
1543
1551
  throw new N(20);
1544
1552
  }
1545
1553
  } else {
1546
- e = Zb(a, c, 0), d = !0;
1554
+ e = $b(a, c, 0), d = !0;
1547
1555
  }
1548
1556
  }
1549
1557
  if (!e) {
@@ -1553,12 +1561,12 @@ function fc(a, b, c) {
1553
1561
  if (b & 65536 && 16384 !== (e.mode & 61440)) {
1554
1562
  throw new N(54);
1555
1563
  }
1556
- if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Tb(b) || b & 512) ? 31 : Sb(e, Tb(b)) : 44)) {
1564
+ if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Ub(b) || b & 512) ? 31 : Tb(e, Ub(b)) : 44)) {
1557
1565
  throw new N(c);
1558
1566
  }
1559
1567
  if (b & 512 && !d) {
1560
1568
  c = e;
1561
- c = "string" == typeof c ? Ob(c, {gb:!0}).node : c;
1569
+ c = "string" == typeof c ? Pb(c, {gb:!0}).node : c;
1562
1570
  if (!c.j.R) {
1563
1571
  throw new N(63);
1564
1572
  }
@@ -1568,18 +1576,18 @@ function fc(a, b, c) {
1568
1576
  if (32768 !== (c.mode & 61440)) {
1569
1577
  throw new N(28);
1570
1578
  }
1571
- if (d = Sb(c, "w")) {
1579
+ if (d = Tb(c, "w")) {
1572
1580
  throw new N(d);
1573
1581
  }
1574
1582
  c.j.R(c, {size:0, timestamp:Date.now()});
1575
1583
  }
1576
1584
  b &= -131713;
1577
- e = Wb({node:e, path:Qb(e), flags:b, seekable:!0, position:0, m:e.m, tc:[], error:!1});
1585
+ e = Xb({node:e, path:Rb(e), flags:b, seekable:!0, position:0, m:e.m, tc:[], error:!1});
1578
1586
  e.m.open && e.m.open(e);
1579
- !m.logReadFiles || b & 1 || (gc ||= {}, a in gc || (gc[a] = 1));
1587
+ !m.logReadFiles || b & 1 || (jc ||= {}, a in jc || (jc[a] = 1));
1580
1588
  return e;
1581
1589
  }
1582
- function hc(a, b, c) {
1590
+ function kc(a, b, c) {
1583
1591
  if (null === a.X) {
1584
1592
  throw new N(8);
1585
1593
  }
@@ -1592,13 +1600,13 @@ function hc(a, b, c) {
1592
1600
  a.position = a.m.ba(a, b, c);
1593
1601
  a.tc = [];
1594
1602
  }
1595
- var ic;
1596
- function jc(a, b, c) {
1603
+ var lc;
1604
+ function mc(a, b, c) {
1597
1605
  a = ib("/dev/" + a);
1598
- var d = Fb(!!b, !!c);
1599
- kc ||= 64;
1600
- var e = kc++ << 8 | 0;
1601
- wb(e, {open(f) {
1606
+ var d = Gb(!!b, !!c);
1607
+ nc ||= 64;
1608
+ var e = nc++ << 8 | 0;
1609
+ xb(e, {open(f) {
1602
1610
  f.seekable = !1;
1603
1611
  }, close() {
1604
1612
  c?.buffer?.length && c(10);
@@ -1631,14 +1639,14 @@ function jc(a, b, c) {
1631
1639
  p && (f.node.timestamp = Date.now());
1632
1640
  return n;
1633
1641
  }});
1634
- dc(a, d, e);
1642
+ gc(a, d, e);
1635
1643
  }
1636
- var kc, lc = {}, gc, gb = void 0, mc = (a, b) => Object.defineProperty(b, "name", {value:a}), nc = [], oc = [], P, pc = a => {
1644
+ var nc, oc = {}, jc, gb = void 0, pc = (a, b) => Object.defineProperty(b, "name", {value:a}), qc = [], rc = [], P, sc = a => {
1637
1645
  if (!a) {
1638
1646
  throw new P("Cannot use deleted val. handle = " + a);
1639
1647
  }
1640
- return oc[a];
1641
- }, qc = a => {
1648
+ return rc[a];
1649
+ }, tc = a => {
1642
1650
  switch(a) {
1643
1651
  case void 0:
1644
1652
  return 2;
@@ -1649,13 +1657,13 @@ var kc, lc = {}, gc, gb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
1649
1657
  case !1:
1650
1658
  return 8;
1651
1659
  default:
1652
- const b = nc.pop() || oc.length;
1653
- oc[b] = a;
1654
- oc[b + 1] = 1;
1660
+ const b = qc.pop() || rc.length;
1661
+ rc[b] = a;
1662
+ rc[b + 1] = 1;
1655
1663
  return b;
1656
1664
  }
1657
- }, rc = a => {
1658
- var b = Error, c = mc(a, function(d) {
1665
+ }, uc = a => {
1666
+ var b = Error, c = pc(a, function(d) {
1659
1667
  this.name = a;
1660
1668
  this.message = d;
1661
1669
  d = Error(d).stack;
@@ -1667,18 +1675,18 @@ var kc, lc = {}, gc, gb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
1667
1675
  return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
1668
1676
  };
1669
1677
  return c;
1670
- }, sc, tc, Q = a => {
1671
- for (var b = ""; A[a];) {
1672
- b += tc[A[a++]];
1678
+ }, vc, wc, Q = a => {
1679
+ for (var b = ""; B[a];) {
1680
+ b += wc[B[a++]];
1673
1681
  }
1674
1682
  return b;
1675
- }, uc = [], vc = () => {
1676
- for (; uc.length;) {
1677
- var a = uc.pop();
1683
+ }, xc = [], yc = () => {
1684
+ for (; xc.length;) {
1685
+ var a = xc.pop();
1678
1686
  a.g.fa = !1;
1679
1687
  a["delete"]();
1680
1688
  }
1681
- }, wc, xc = {}, yc = (a, b) => {
1689
+ }, zc, Ac = {}, Bc = (a, b) => {
1682
1690
  if (void 0 === b) {
1683
1691
  throw new P("ptr should not be undefined");
1684
1692
  }
@@ -1686,116 +1694,116 @@ var kc, lc = {}, gc, gb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
1686
1694
  b = a.na(b), a = a.C;
1687
1695
  }
1688
1696
  return b;
1689
- }, zc = {}, Cc = a => {
1690
- a = Ac(a);
1697
+ }, Cc = {}, Fc = a => {
1698
+ a = Dc(a);
1691
1699
  var b = Q(a);
1692
- Bc(a);
1700
+ Ec(a);
1693
1701
  return b;
1694
- }, Dc = (a, b) => {
1695
- var c = zc[a];
1702
+ }, Gc = (a, b) => {
1703
+ var c = Cc[a];
1696
1704
  if (void 0 === c) {
1697
- throw a = `${b} has unknown type ${Cc(a)}`, new P(a);
1705
+ throw a = `${b} has unknown type ${Fc(a)}`, new P(a);
1698
1706
  }
1699
1707
  return c;
1700
- }, Ec = () => {
1701
- }, Fc = !1, Gc = (a, b, c) => {
1708
+ }, Hc = () => {
1709
+ }, Ic = !1, Jc = (a, b, c) => {
1702
1710
  if (b === c) {
1703
1711
  return a;
1704
1712
  }
1705
1713
  if (void 0 === c.C) {
1706
1714
  return null;
1707
1715
  }
1708
- a = Gc(a, b, c.C);
1716
+ a = Jc(a, b, c.C);
1709
1717
  return null === a ? null : c.Mb(a);
1710
- }, Hc = {}, Ic = (a, b) => {
1711
- b = yc(a, b);
1712
- return xc[b];
1713
- }, Jc, Lc = (a, b) => {
1718
+ }, Kc = {}, Lc = (a, b) => {
1719
+ b = Bc(a, b);
1720
+ return Ac[b];
1721
+ }, Mc, Oc = (a, b) => {
1714
1722
  if (!b.u || !b.o) {
1715
- throw new Jc("makeClassHandle requires ptr and ptrType");
1723
+ throw new Mc("makeClassHandle requires ptr and ptrType");
1716
1724
  }
1717
1725
  if (!!b.K !== !!b.F) {
1718
- throw new Jc("Both smartPtrType and smartPtr must be specified");
1726
+ throw new Mc("Both smartPtrType and smartPtr must be specified");
1719
1727
  }
1720
1728
  b.count = {value:1};
1721
- return Kc(Object.create(a, {g:{value:b, writable:!0,},}));
1722
- }, Kc = a => {
1729
+ return Nc(Object.create(a, {g:{value:b, writable:!0,},}));
1730
+ }, Nc = a => {
1723
1731
  if ("undefined" === typeof FinalizationRegistry) {
1724
- return Kc = b => b, a;
1732
+ return Nc = b => b, a;
1725
1733
  }
1726
- Fc = new FinalizationRegistry(b => {
1734
+ Ic = new FinalizationRegistry(b => {
1727
1735
  b = b.g;
1728
1736
  --b.count.value;
1729
1737
  0 === b.count.value && (b.F ? b.K.P(b.F) : b.u.i.P(b.o));
1730
1738
  });
1731
- Kc = b => {
1739
+ Nc = b => {
1732
1740
  var c = b.g;
1733
- c.F && Fc.register(b, {g:c}, b);
1741
+ c.F && Ic.register(b, {g:c}, b);
1734
1742
  return b;
1735
1743
  };
1736
- Ec = b => {
1737
- Fc.unregister(b);
1744
+ Hc = b => {
1745
+ Ic.unregister(b);
1738
1746
  };
1739
- return Kc(a);
1740
- }, Mc = {}, Nc = a => {
1747
+ return Nc(a);
1748
+ }, Pc = {}, Qc = a => {
1741
1749
  for (; a.length;) {
1742
1750
  var b = a.pop();
1743
1751
  a.pop()(b);
1744
1752
  }
1745
1753
  };
1746
- function Oc(a) {
1747
- return this.fromWireType(D[a >> 2]);
1754
+ function Rc(a) {
1755
+ return this.fromWireType(F[a >> 2]);
1748
1756
  }
1749
- var Pc = {}, Qc = {}, U = (a, b, c) => {
1757
+ var Sc = {}, Tc = {}, S = (a, b, c) => {
1750
1758
  function d(k) {
1751
1759
  k = c(k);
1752
1760
  if (k.length !== a.length) {
1753
- throw new Jc("Mismatched type converter count");
1761
+ throw new Mc("Mismatched type converter count");
1754
1762
  }
1755
1763
  for (var p = 0; p < a.length; ++p) {
1756
- Rc(a[p], k[p]);
1764
+ Uc(a[p], k[p]);
1757
1765
  }
1758
1766
  }
1759
1767
  a.forEach(function(k) {
1760
- Qc[k] = b;
1768
+ Tc[k] = b;
1761
1769
  });
1762
1770
  var e = Array(b.length), f = [], g = 0;
1763
1771
  b.forEach((k, p) => {
1764
- zc.hasOwnProperty(k) ? e[p] = zc[k] : (f.push(k), Pc.hasOwnProperty(k) || (Pc[k] = []), Pc[k].push(() => {
1765
- e[p] = zc[k];
1772
+ Cc.hasOwnProperty(k) ? e[p] = Cc[k] : (f.push(k), Sc.hasOwnProperty(k) || (Sc[k] = []), Sc[k].push(() => {
1773
+ e[p] = Cc[k];
1766
1774
  ++g;
1767
1775
  g === f.length && d(e);
1768
1776
  }));
1769
1777
  });
1770
1778
  0 === f.length && d(e);
1771
1779
  };
1772
- function Sc(a, b, c = {}) {
1780
+ function Vc(a, b, c = {}) {
1773
1781
  var d = b.name;
1774
1782
  if (!a) {
1775
1783
  throw new P(`type "${d}" must have a positive integer typeid pointer`);
1776
1784
  }
1777
- if (zc.hasOwnProperty(a)) {
1785
+ if (Cc.hasOwnProperty(a)) {
1778
1786
  if (c.Wb) {
1779
1787
  return;
1780
1788
  }
1781
1789
  throw new P(`Cannot register type '${d}' twice`);
1782
1790
  }
1783
- zc[a] = b;
1784
- delete Qc[a];
1785
- Pc.hasOwnProperty(a) && (b = Pc[a], delete Pc[a], b.forEach(e => e()));
1791
+ Cc[a] = b;
1792
+ delete Tc[a];
1793
+ Sc.hasOwnProperty(a) && (b = Sc[a], delete Sc[a], b.forEach(e => e()));
1786
1794
  }
1787
- function Rc(a, b, c = {}) {
1795
+ function Uc(a, b, c = {}) {
1788
1796
  if (!("argPackAdvance" in b)) {
1789
1797
  throw new TypeError("registerType registeredInstance requires argPackAdvance");
1790
1798
  }
1791
- return Sc(a, b, c);
1799
+ return Vc(a, b, c);
1792
1800
  }
1793
- var Tc = a => {
1801
+ var Wc = a => {
1794
1802
  throw new P(a.g.u.i.name + " instance already deleted");
1795
1803
  };
1796
- function Uc() {
1804
+ function Xc() {
1797
1805
  }
1798
- var Vc = (a, b, c) => {
1806
+ var Yc = (a, b, c) => {
1799
1807
  if (void 0 === a[b].A) {
1800
1808
  var d = a[b];
1801
1809
  a[b] = function(...e) {
@@ -1807,12 +1815,12 @@ var Vc = (a, b, c) => {
1807
1815
  a[b].A = [];
1808
1816
  a[b].A[d.ea] = d;
1809
1817
  }
1810
- }, Wc = (a, b, c) => {
1818
+ }, Zc = (a, b, c) => {
1811
1819
  if (m.hasOwnProperty(a)) {
1812
1820
  if (void 0 === c || void 0 !== m[a].A && void 0 !== m[a].A[c]) {
1813
1821
  throw new P(`Cannot register public name '${a}' twice`);
1814
1822
  }
1815
- Vc(m, a, a);
1823
+ Yc(m, a, a);
1816
1824
  if (m.hasOwnProperty(c)) {
1817
1825
  throw new P(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);
1818
1826
  }
@@ -1820,7 +1828,7 @@ var Vc = (a, b, c) => {
1820
1828
  } else {
1821
1829
  m[a] = b, void 0 !== c && (m[a].Mc = c);
1822
1830
  }
1823
- }, Xc = a => {
1831
+ }, $c = a => {
1824
1832
  if (void 0 === a) {
1825
1833
  return "_unknown";
1826
1834
  }
@@ -1828,7 +1836,7 @@ var Vc = (a, b, c) => {
1828
1836
  var b = a.charCodeAt(0);
1829
1837
  return 48 <= b && 57 >= b ? `_${a}` : a;
1830
1838
  };
1831
- function Yc(a, b, c, d, e, f, g, k) {
1839
+ function ad(a, b, c, d, e, f, g, k) {
1832
1840
  this.name = a;
1833
1841
  this.constructor = b;
1834
1842
  this.N = c;
@@ -1839,7 +1847,7 @@ function Yc(a, b, c, d, e, f, g, k) {
1839
1847
  this.Mb = k;
1840
1848
  this.qb = [];
1841
1849
  }
1842
- var Zc = (a, b, c) => {
1850
+ var bd = (a, b, c) => {
1843
1851
  for (; b !== c;) {
1844
1852
  if (!b.na) {
1845
1853
  throw new P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
@@ -1849,7 +1857,7 @@ var Zc = (a, b, c) => {
1849
1857
  }
1850
1858
  return a;
1851
1859
  };
1852
- function $c(a, b) {
1860
+ function cd(a, b) {
1853
1861
  if (null === b) {
1854
1862
  if (this.Ma) {
1855
1863
  throw new P(`null is not a valid ${this.name}`);
@@ -1857,14 +1865,14 @@ function $c(a, b) {
1857
1865
  return 0;
1858
1866
  }
1859
1867
  if (!b.g) {
1860
- throw new P(`Cannot pass "${ad(b)}" as a ${this.name}`);
1868
+ throw new P(`Cannot pass "${dd(b)}" as a ${this.name}`);
1861
1869
  }
1862
1870
  if (!b.g.o) {
1863
1871
  throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
1864
1872
  }
1865
- return Zc(b.g.o, b.g.u.i, this.i);
1873
+ return bd(b.g.o, b.g.u.i, this.i);
1866
1874
  }
1867
- function bd(a, b) {
1875
+ function ed(a, b) {
1868
1876
  if (null === b) {
1869
1877
  if (this.Ma) {
1870
1878
  throw new P(`null is not a valid ${this.name}`);
@@ -1877,7 +1885,7 @@ function bd(a, b) {
1877
1885
  return 0;
1878
1886
  }
1879
1887
  if (!b || !b.g) {
1880
- throw new P(`Cannot pass "${ad(b)}" as a ${this.name}`);
1888
+ throw new P(`Cannot pass "${dd(b)}" as a ${this.name}`);
1881
1889
  }
1882
1890
  if (!b.g.o) {
1883
1891
  throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
@@ -1885,7 +1893,7 @@ function bd(a, b) {
1885
1893
  if (!this.sa && b.g.u.sa) {
1886
1894
  throw new P(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
1887
1895
  }
1888
- c = Zc(b.g.o, b.g.u.i, this.i);
1896
+ c = bd(b.g.o, b.g.u.i, this.i);
1889
1897
  if (this.ta) {
1890
1898
  if (void 0 === b.g.F) {
1891
1899
  throw new P("Passing raw pointer to smart pointer is illegal");
@@ -1906,7 +1914,7 @@ function bd(a, b) {
1906
1914
  c = b.g.F;
1907
1915
  } else {
1908
1916
  var d = b.clone();
1909
- c = this.jc(c, qc(() => d["delete"]()));
1917
+ c = this.jc(c, tc(() => d["delete"]()));
1910
1918
  null !== a && a.push(this.P, c);
1911
1919
  }
1912
1920
  break;
@@ -1916,7 +1924,7 @@ function bd(a, b) {
1916
1924
  }
1917
1925
  return c;
1918
1926
  }
1919
- function cd(a, b) {
1927
+ function fd(a, b) {
1920
1928
  if (null === b) {
1921
1929
  if (this.Ma) {
1922
1930
  throw new P(`null is not a valid ${this.name}`);
@@ -1924,7 +1932,7 @@ function cd(a, b) {
1924
1932
  return 0;
1925
1933
  }
1926
1934
  if (!b.g) {
1927
- throw new P(`Cannot pass "${ad(b)}" as a ${this.name}`);
1935
+ throw new P(`Cannot pass "${dd(b)}" as a ${this.name}`);
1928
1936
  }
1929
1937
  if (!b.g.o) {
1930
1938
  throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
@@ -1932,9 +1940,9 @@ function cd(a, b) {
1932
1940
  if (b.g.u.sa) {
1933
1941
  throw new P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
1934
1942
  }
1935
- return Zc(b.g.o, b.g.u.i, this.i);
1943
+ return bd(b.g.o, b.g.u.i, this.i);
1936
1944
  }
1937
- function dd(a, b, c, d, e, f, g, k, p, n, t) {
1945
+ function gd(a, b, c, d, e, f, g, k, p, n, t) {
1938
1946
  this.name = a;
1939
1947
  this.i = b;
1940
1948
  this.Ma = c;
@@ -1946,36 +1954,36 @@ function dd(a, b, c, d, e, f, g, k, p, n, t) {
1946
1954
  this.Oa = p;
1947
1955
  this.jc = n;
1948
1956
  this.P = t;
1949
- e || void 0 !== b.C ? this.toWireType = bd : (this.toWireType = d ? $c : cd, this.M = null);
1957
+ e || void 0 !== b.C ? this.toWireType = ed : (this.toWireType = d ? cd : fd, this.M = null);
1950
1958
  }
1951
- var ed = (a, b, c) => {
1959
+ var hd = (a, b, c) => {
1952
1960
  if (!m.hasOwnProperty(a)) {
1953
- throw new Jc("Replacing nonexistent public symbol");
1961
+ throw new Mc("Replacing nonexistent public symbol");
1954
1962
  }
1955
1963
  void 0 !== m[a].A && void 0 !== c ? m[a].A[c] = b : (m[a] = b, m[a].ea = c);
1956
- }, fd = [], gd, hd = a => {
1957
- var b = fd[a];
1958
- b || (a >= fd.length && (fd.length = a + 1), fd[a] = b = gd.get(a));
1964
+ }, jd = [], kd, ld = a => {
1965
+ var b = jd[a];
1966
+ b || (a >= jd.length && (jd.length = a + 1), jd[a] = b = kd.get(a));
1959
1967
  return b;
1960
- }, jd = (a, b, c = []) => {
1961
- a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,m["dynCall_" + a])(b, ...c)) : b = hd(b)(...c);
1968
+ }, md = (a, b, c = []) => {
1969
+ a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,m["dynCall_" + a])(b, ...c)) : b = ld(b)(...c);
1962
1970
  return b;
1963
- }, kd = (a, b) => (...c) => jd(a, b, c), V = (a, b) => {
1971
+ }, nd = (a, b) => (...c) => md(a, b, c), U = (a, b) => {
1964
1972
  a = Q(a);
1965
- var c = a.includes("j") ? kd(a, b) : hd(b);
1973
+ var c = a.includes("j") ? nd(a, b) : ld(b);
1966
1974
  if ("function" != typeof c) {
1967
1975
  throw new P(`unknown function pointer with signature ${a}: ${b}`);
1968
1976
  }
1969
1977
  return c;
1970
- }, ld, md = (a, b) => {
1978
+ }, od, pd = (a, b) => {
1971
1979
  function c(f) {
1972
- e[f] || zc[f] || (Qc[f] ? Qc[f].forEach(c) : (d.push(f), e[f] = !0));
1980
+ e[f] || Cc[f] || (Tc[f] ? Tc[f].forEach(c) : (d.push(f), e[f] = !0));
1973
1981
  }
1974
1982
  var d = [], e = {};
1975
1983
  b.forEach(c);
1976
- throw new ld(`${a}: ` + d.map(Cc).join([", "]));
1984
+ throw new od(`${a}: ` + d.map(Fc).join([", "]));
1977
1985
  };
1978
- function nd(a) {
1986
+ function qd(a) {
1979
1987
  for (var b = 1; b < a.length; ++b) {
1980
1988
  if (null !== a[b] && void 0 === a[b].M) {
1981
1989
  return !0;
@@ -1983,13 +1991,13 @@ function nd(a) {
1983
1991
  }
1984
1992
  return !1;
1985
1993
  }
1986
- function rd(a, b, c, d, e) {
1994
+ function ud(a, b, c, d, e) {
1987
1995
  var f = b.length;
1988
1996
  if (2 > f) {
1989
1997
  throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
1990
1998
  }
1991
- var g = null !== b[1] && null !== c, k = nd(b), p = "void" !== b[0].name, n = f - 2, t = Array(n), x = [], y = [];
1992
- return mc(a, function(...l) {
1999
+ var g = null !== b[1] && null !== c, k = qd(b), p = "void" !== b[0].name, n = f - 2, t = Array(n), x = [], y = [];
2000
+ return pc(a, function(...l) {
1993
2001
  if (l.length !== n) {
1994
2002
  throw new P(`function ${a} called with ${l.length} arguments, expected ${n}`);
1995
2003
  }
@@ -2005,27 +2013,27 @@ function rd(a, b, c, d, e) {
2005
2013
  }
2006
2014
  l = d(...x);
2007
2015
  if (k) {
2008
- Nc(y);
2016
+ Qc(y);
2009
2017
  } else {
2010
2018
  for (r = g ? 1 : 2; r < b.length; r++) {
2011
- var C = 1 === r ? u : t[r - 2];
2012
- null !== b[r].M && b[r].M(C);
2019
+ var D = 1 === r ? u : t[r - 2];
2020
+ null !== b[r].M && b[r].M(D);
2013
2021
  }
2014
2022
  }
2015
2023
  u = p ? b[0].fromWireType(l) : void 0;
2016
2024
  return u;
2017
2025
  });
2018
2026
  }
2019
- var sd = (a, b) => {
2027
+ var vd = (a, b) => {
2020
2028
  for (var c = [], d = 0; d < a; d++) {
2021
- c.push(D[b + 4 * d >> 2]);
2029
+ c.push(F[b + 4 * d >> 2]);
2022
2030
  }
2023
2031
  return c;
2024
- }, td = a => {
2032
+ }, wd = a => {
2025
2033
  a = a.trim();
2026
2034
  const b = a.indexOf("(");
2027
2035
  return -1 !== b ? a.substr(0, b) : a;
2028
- }, ud = (a, b, c) => {
2036
+ }, xd = (a, b, c) => {
2029
2037
  if (!(a instanceof Object)) {
2030
2038
  throw new P(`${c} with invalid "this": ${a}`);
2031
2039
  }
@@ -2035,85 +2043,85 @@ var sd = (a, b) => {
2035
2043
  if (!a.g.o) {
2036
2044
  throw new P(`cannot call emscripten binding method ${c} on deleted object`);
2037
2045
  }
2038
- return Zc(a.g.o, a.g.u.i, b.i);
2039
- }, vd = a => {
2040
- 9 < a && 0 === --oc[a + 1] && (oc[a] = void 0, nc.push(a));
2041
- }, wd = {name:"emscripten::val", fromWireType:a => {
2042
- var b = pc(a);
2043
- vd(a);
2046
+ return bd(a.g.o, a.g.u.i, b.i);
2047
+ }, yd = a => {
2048
+ 9 < a && 0 === --rc[a + 1] && (rc[a] = void 0, qc.push(a));
2049
+ }, zd = {name:"emscripten::val", fromWireType:a => {
2050
+ var b = sc(a);
2051
+ yd(a);
2044
2052
  return b;
2045
- }, toWireType:(a, b) => qc(b), argPackAdvance:8, readValueFromPointer:Oc, M:null,}, xd = (a, b, c) => {
2053
+ }, toWireType:(a, b) => tc(b), argPackAdvance:8, readValueFromPointer:Rc, M:null,}, Ad = (a, b, c) => {
2046
2054
  switch(b) {
2047
2055
  case 1:
2048
2056
  return c ? function(d) {
2049
2057
  return this.fromWireType(z[d]);
2050
2058
  } : function(d) {
2051
- return this.fromWireType(A[d]);
2059
+ return this.fromWireType(B[d]);
2052
2060
  };
2053
2061
  case 2:
2054
2062
  return c ? function(d) {
2055
- return this.fromWireType(Da[d >> 1]);
2056
- } : function(d) {
2057
2063
  return this.fromWireType(Ea[d >> 1]);
2064
+ } : function(d) {
2065
+ return this.fromWireType(Fa[d >> 1]);
2058
2066
  };
2059
2067
  case 4:
2060
2068
  return c ? function(d) {
2061
- return this.fromWireType(B[d >> 2]);
2069
+ return this.fromWireType(C[d >> 2]);
2062
2070
  } : function(d) {
2063
- return this.fromWireType(D[d >> 2]);
2071
+ return this.fromWireType(F[d >> 2]);
2064
2072
  };
2065
2073
  default:
2066
2074
  throw new TypeError(`invalid integer width (${b}): ${a}`);
2067
2075
  }
2068
- }, ad = a => {
2076
+ }, dd = a => {
2069
2077
  if (null === a) {
2070
2078
  return "null";
2071
2079
  }
2072
2080
  var b = typeof a;
2073
2081
  return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
2074
- }, yd = (a, b) => {
2082
+ }, Bd = (a, b) => {
2075
2083
  switch(b) {
2076
2084
  case 4:
2077
2085
  return function(c) {
2078
- return this.fromWireType(Ha[c >> 2]);
2086
+ return this.fromWireType(Ia[c >> 2]);
2079
2087
  };
2080
2088
  case 8:
2081
2089
  return function(c) {
2082
- return this.fromWireType(Ia[c >> 3]);
2090
+ return this.fromWireType(Ja[c >> 3]);
2083
2091
  };
2084
2092
  default:
2085
2093
  throw new TypeError(`invalid float width (${b}): ${a}`);
2086
2094
  }
2087
- }, zd = (a, b, c) => {
2095
+ }, Cd = (a, b, c) => {
2088
2096
  switch(b) {
2089
2097
  case 1:
2090
- return c ? d => z[d] : d => A[d];
2098
+ return c ? d => z[d] : d => B[d];
2091
2099
  case 2:
2092
- return c ? d => Da[d >> 1] : d => Ea[d >> 1];
2100
+ return c ? d => Ea[d >> 1] : d => Fa[d >> 1];
2093
2101
  case 4:
2094
- return c ? d => B[d >> 2] : d => D[d >> 2];
2102
+ return c ? d => C[d >> 2] : d => F[d >> 2];
2095
2103
  default:
2096
2104
  throw new TypeError(`invalid integer width (${b}): ${a}`);
2097
2105
  }
2098
- }, Ad = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, Bd = (a, b) => {
2106
+ }, Dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, Ed = (a, b) => {
2099
2107
  var c = a >> 1;
2100
- for (var d = c + b / 2; !(c >= d) && Ea[c];) {
2108
+ for (var d = c + b / 2; !(c >= d) && Fa[c];) {
2101
2109
  ++c;
2102
2110
  }
2103
2111
  c <<= 1;
2104
- if (32 < c - a && Ad) {
2105
- return Ad.decode(A.subarray(a, c));
2112
+ if (32 < c - a && Dd) {
2113
+ return Dd.decode(B.subarray(a, c));
2106
2114
  }
2107
2115
  c = "";
2108
2116
  for (d = 0; !(d >= b / 2); ++d) {
2109
- var e = Da[a + 2 * d >> 1];
2117
+ var e = Ea[a + 2 * d >> 1];
2110
2118
  if (0 == e) {
2111
2119
  break;
2112
2120
  }
2113
2121
  c += String.fromCharCode(e);
2114
2122
  }
2115
2123
  return c;
2116
- }, Cd = (a, b, c) => {
2124
+ }, Fd = (a, b, c) => {
2117
2125
  c ??= 2147483647;
2118
2126
  if (2 > c) {
2119
2127
  return 0;
@@ -2122,13 +2130,13 @@ var sd = (a, b) => {
2122
2130
  var d = b;
2123
2131
  c = c < 2 * a.length ? c / 2 : a.length;
2124
2132
  for (var e = 0; e < c; ++e) {
2125
- Da[b >> 1] = a.charCodeAt(e), b += 2;
2133
+ Ea[b >> 1] = a.charCodeAt(e), b += 2;
2126
2134
  }
2127
- Da[b >> 1] = 0;
2135
+ Ea[b >> 1] = 0;
2128
2136
  return b - d;
2129
- }, Dd = a => 2 * a.length, Ed = (a, b) => {
2137
+ }, Gd = a => 2 * a.length, Hd = (a, b) => {
2130
2138
  for (var c = 0, d = ""; !(c >= b / 4);) {
2131
- var e = B[a + 4 * c >> 2];
2139
+ var e = C[a + 4 * c >> 2];
2132
2140
  if (0 == e) {
2133
2141
  break;
2134
2142
  }
@@ -2136,7 +2144,7 @@ var sd = (a, b) => {
2136
2144
  65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
2137
2145
  }
2138
2146
  return d;
2139
- }, Fd = (a, b, c) => {
2147
+ }, Id = (a, b, c) => {
2140
2148
  c ??= 2147483647;
2141
2149
  if (4 > c) {
2142
2150
  return 0;
@@ -2149,52 +2157,52 @@ var sd = (a, b) => {
2149
2157
  var g = a.charCodeAt(++e);
2150
2158
  f = 65536 + ((f & 1023) << 10) | g & 1023;
2151
2159
  }
2152
- B[b >> 2] = f;
2160
+ C[b >> 2] = f;
2153
2161
  b += 4;
2154
2162
  if (b + 4 > c) {
2155
2163
  break;
2156
2164
  }
2157
2165
  }
2158
- B[b >> 2] = 0;
2166
+ C[b >> 2] = 0;
2159
2167
  return b - d;
2160
- }, Gd = a => {
2168
+ }, Jd = a => {
2161
2169
  for (var b = 0, c = 0; c < a.length; ++c) {
2162
2170
  var d = a.charCodeAt(c);
2163
2171
  55296 <= d && 57343 >= d && ++c;
2164
2172
  b += 4;
2165
2173
  }
2166
2174
  return b;
2167
- }, Hd = (a, b, c) => {
2175
+ }, Kd = (a, b, c) => {
2168
2176
  var d = [];
2169
2177
  a = a.toWireType(d, c);
2170
- d.length && (D[b >> 2] = qc(d));
2178
+ d.length && (F[b >> 2] = tc(d));
2171
2179
  return a;
2172
- }, Id = {}, Jd = a => {
2173
- var b = Id[a];
2180
+ }, Ld = {}, Md = a => {
2181
+ var b = Ld[a];
2174
2182
  return void 0 === b ? Q(a) : b;
2175
- }, Kd = [], Ld = a => {
2176
- var b = Kd.length;
2177
- Kd.push(a);
2183
+ }, Nd = [], Od = a => {
2184
+ var b = Nd.length;
2185
+ Nd.push(a);
2178
2186
  return b;
2179
- }, Md = (a, b) => {
2187
+ }, Pd = (a, b) => {
2180
2188
  for (var c = Array(a), d = 0; d < a; ++d) {
2181
- c[d] = Dc(D[b + 4 * d >> 2], "parameter " + d);
2189
+ c[d] = Gc(F[b + 4 * d >> 2], "parameter " + d);
2182
2190
  }
2183
2191
  return c;
2184
- }, Nd = Reflect.construct, Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Qd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Rd = [], Sd = {}, Ud = () => {
2185
- if (!Td) {
2186
- 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;
2187
- for (b in Sd) {
2188
- void 0 === Sd[b] ? delete a[b] : a[b] = Sd[b];
2192
+ }, Qd = Reflect.construct, Rd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Sd = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Td = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Ud = [], Vd = {}, Xd = () => {
2193
+ if (!Wd) {
2194
+ 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", _:pa || "./this.program"}, b;
2195
+ for (b in Vd) {
2196
+ void 0 === Vd[b] ? delete a[b] : a[b] = Vd[b];
2189
2197
  }
2190
2198
  var c = [];
2191
2199
  for (b in a) {
2192
2200
  c.push(`${b}=${a[b]}`);
2193
2201
  }
2194
- Td = c;
2202
+ Wd = c;
2195
2203
  }
2196
- return Td;
2197
- }, Td, Vd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Wd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Xd = (a, b, c, d) => {
2204
+ return Wd;
2205
+ }, Wd, Yd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Zd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], $d = (a, b, c, d) => {
2198
2206
  function e(l, u, r) {
2199
2207
  for (l = "number" == typeof l ? l.toString() : l || ""; l.length < u;) {
2200
2208
  l = r[0] + l;
@@ -2205,12 +2213,12 @@ var sd = (a, b) => {
2205
2213
  return e(l, u, "0");
2206
2214
  }
2207
2215
  function g(l, u) {
2208
- function r(G) {
2209
- return 0 > G ? -1 : 0 < G ? 1 : 0;
2216
+ function r(I) {
2217
+ return 0 > I ? -1 : 0 < I ? 1 : 0;
2210
2218
  }
2211
- var C;
2212
- 0 === (C = r(l.getFullYear() - u.getFullYear())) && 0 === (C = r(l.getMonth() - u.getMonth())) && (C = r(l.getDate() - u.getDate()));
2213
- return C;
2219
+ var D;
2220
+ 0 === (D = r(l.getFullYear() - u.getFullYear())) && 0 === (D = r(l.getMonth() - u.getMonth())) && (D = r(l.getDate() - u.getDate()));
2221
+ return D;
2214
2222
  }
2215
2223
  function k(l) {
2216
2224
  switch(l.getDay()) {
@@ -2233,9 +2241,9 @@ var sd = (a, b) => {
2233
2241
  function p(l) {
2234
2242
  var u = l.ca;
2235
2243
  for (l = new Date((new Date(l.da + 1900, 0, 1)).getTime()); 0 < u;) {
2236
- var r = l.getMonth(), C = (Od(l.getFullYear()) ? Vd : Wd)[r];
2237
- if (u > C - l.getDate()) {
2238
- u -= C - l.getDate() + 1, l.setDate(1), 11 > r ? l.setMonth(r + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
2244
+ var r = l.getMonth(), D = (Rd(l.getFullYear()) ? Yd : Zd)[r];
2245
+ if (u > D - l.getDate()) {
2246
+ u -= D - l.getDate() + 1, l.setDate(1), 11 > r ? l.setMonth(r + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
2239
2247
  } else {
2240
2248
  l.setDate(l.getDate() + u);
2241
2249
  break;
@@ -2246,9 +2254,9 @@ var sd = (a, b) => {
2246
2254
  r = k(r);
2247
2255
  return 0 >= g(u, l) ? 0 >= g(r, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
2248
2256
  }
2249
- var n = D[d + 40 >> 2];
2250
- d = {qc:B[d >> 2], pc:B[d + 4 >> 2], Ea:B[d + 8 >> 2], Ra:B[d + 12 >> 2], Fa:B[d + 16 >> 2], da:B[d + 20 >> 2], S:B[d + 24 >> 2], ca:B[d + 28 >> 2], Oc:B[d + 32 >> 2], oc:B[d + 36 >> 2], rc:n ? n ? pb(A, n) : "" : ""};
2251
- c = c ? pb(A, c) : "";
2257
+ var n = F[d + 40 >> 2];
2258
+ d = {qc:C[d >> 2], pc:C[d + 4 >> 2], Ea:C[d + 8 >> 2], Ra:C[d + 12 >> 2], Fa:C[d + 16 >> 2], da:C[d + 20 >> 2], S:C[d + 24 >> 2], ca:C[d + 28 >> 2], Oc:C[d + 32 >> 2], oc:C[d + 36 >> 2], rc:n ? n ? pb(B, n) : "" : ""};
2259
+ c = c ? pb(B, c) : "";
2252
2260
  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",};
2253
2261
  for (var t in n) {
2254
2262
  c = c.replace(new RegExp(t, "g"), n[t]);
@@ -2259,18 +2267,18 @@ var sd = (a, b) => {
2259
2267
  0 == l ? l = 12 : 12 < l && (l -= 12);
2260
2268
  return f(l, 2);
2261
2269
  }, "%j":l => {
2262
- for (var u = 0, r = 0; r <= l.Fa - 1; u += (Od(l.da + 1900) ? Vd : Wd)[r++]) {
2270
+ for (var u = 0, r = 0; r <= l.Fa - 1; u += (Rd(l.da + 1900) ? Yd : Zd)[r++]) {
2263
2271
  }
2264
2272
  return f(l.Ra + u, 3);
2265
2273
  }, "%m":l => f(l.Fa + 1, 2), "%M":l => f(l.pc, 2), "%n":() => "\n", "%p":l => 0 <= l.Ea && 12 > l.Ea ? "AM" : "PM", "%S":l => f(l.qc, 2), "%t":() => "\t", "%u":l => l.S || 7, "%U":l => f(Math.floor((l.ca + 7 - l.S) / 7), 2), "%V":l => {
2266
2274
  var u = Math.floor((l.ca + 7 - (l.S + 6) % 7) / 7);
2267
2275
  2 >= (l.S + 371 - l.ca - 2) % 7 && u++;
2268
2276
  if (u) {
2269
- 53 == u && (r = (l.S + 371 - l.ca) % 7, 4 == r || 3 == r && Od(l.da) || (u = 1));
2277
+ 53 == u && (r = (l.S + 371 - l.ca) % 7, 4 == r || 3 == r && Rd(l.da) || (u = 1));
2270
2278
  } else {
2271
2279
  u = 52;
2272
2280
  var r = (l.S + 7 - l.ca - 1) % 7;
2273
- (4 == r || 5 == r && Od(l.da % 400 - 1)) && u++;
2281
+ (4 == r || 5 == r && Rd(l.da % 400 - 1)) && u++;
2274
2282
  }
2275
2283
  return f(u, 2);
2276
2284
  }, "%w":l => l.S, "%W":l => f(Math.floor((l.ca + 7 - (l.S + 6) % 7) / 7), 2), "%y":l => (l.da + 1900).toString().substring(2), "%Y":l => l.da + 1900, "%z":l => {
@@ -2284,7 +2292,7 @@ var sd = (a, b) => {
2284
2292
  c.includes(t) && (c = c.replace(new RegExp(t, "g"), n[t](d)));
2285
2293
  }
2286
2294
  c = c.replace(/\0\0/g, "%");
2287
- t = tb(c, !1);
2295
+ t = ub(c, !1);
2288
2296
  if (t.length > b) {
2289
2297
  return 0;
2290
2298
  }
@@ -2292,39 +2300,39 @@ var sd = (a, b) => {
2292
2300
  return t.length - 1;
2293
2301
  };
2294
2302
  [44].forEach(a => {
2295
- Db[a] = new N(a);
2296
- Db[a].stack = "<generic error, no stack>";
2303
+ Eb[a] = new N(a);
2304
+ Eb[a].stack = "<generic error, no stack>";
2297
2305
  });
2298
- Kb = Array(4096);
2299
- Yb(O, "/");
2300
- cc("/tmp");
2301
- cc("/home");
2302
- cc("/home/web_user");
2306
+ Lb = Array(4096);
2307
+ Zb(O, "/");
2308
+ fc("/tmp");
2309
+ fc("/home");
2310
+ fc("/home/web_user");
2303
2311
  (function() {
2304
- cc("/dev");
2305
- wb(259, {read:() => 0, write:(d, e, f, g) => g,});
2306
- dc("/dev/null", 259);
2307
- vb(1280, yb);
2308
- vb(1536, zb);
2309
- dc("/dev/tty", 1280);
2310
- dc("/dev/tty1", 1536);
2312
+ fc("/dev");
2313
+ xb(259, {read:() => 0, write:(d, e, f, g) => g,});
2314
+ gc("/dev/null", 259);
2315
+ wb(1280, zb);
2316
+ wb(1536, Ab);
2317
+ gc("/dev/tty", 1280);
2318
+ gc("/dev/tty1", 1536);
2311
2319
  var a = new Uint8Array(1024), b = 0, c = () => {
2312
2320
  0 === b && (b = mb(a).byteLength);
2313
2321
  return a[--b];
2314
2322
  };
2315
- jc("random", c);
2316
- jc("urandom", c);
2317
- cc("/dev/shm");
2318
- cc("/dev/shm/tmp");
2323
+ mc("random", c);
2324
+ mc("urandom", c);
2325
+ fc("/dev/shm");
2326
+ fc("/dev/shm/tmp");
2319
2327
  })();
2320
2328
  (function() {
2321
- cc("/proc");
2322
- var a = cc("/proc/self");
2323
- cc("/proc/self/fd");
2324
- Yb({V() {
2325
- var b = Cb(a, "fd", 16895, 73);
2329
+ fc("/proc");
2330
+ var a = fc("/proc/self");
2331
+ fc("/proc/self/fd");
2332
+ Zb({V() {
2333
+ var b = Db(a, "fd", 16895, 73);
2326
2334
  b.j = {ka(c, d) {
2327
- var e = Vb(+d);
2335
+ var e = Wb(+d);
2328
2336
  c = {parent:null, V:{mb:"fake"}, j:{ma:() => e.path},};
2329
2337
  return c.parent = c;
2330
2338
  }};
@@ -2337,34 +2345,34 @@ P = m.BindingError = class extends Error {
2337
2345
  this.name = "BindingError";
2338
2346
  }
2339
2347
  };
2340
- oc.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
2341
- m.count_emval_handles = () => oc.length / 2 - 5 - nc.length;
2342
- sc = m.PureVirtualError = rc("PureVirtualError");
2343
- for (var Yd = Array(256), Zd = 0; 256 > Zd; ++Zd) {
2344
- Yd[Zd] = String.fromCharCode(Zd);
2348
+ rc.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
2349
+ m.count_emval_handles = () => rc.length / 2 - 5 - qc.length;
2350
+ vc = m.PureVirtualError = uc("PureVirtualError");
2351
+ for (var ae = Array(256), be = 0; 256 > be; ++be) {
2352
+ ae[be] = String.fromCharCode(be);
2345
2353
  }
2346
- tc = Yd;
2347
- m.getInheritedInstanceCount = () => Object.keys(xc).length;
2354
+ wc = ae;
2355
+ m.getInheritedInstanceCount = () => Object.keys(Ac).length;
2348
2356
  m.getLiveInheritedInstances = () => {
2349
2357
  var a = [], b;
2350
- for (b in xc) {
2351
- xc.hasOwnProperty(b) && a.push(xc[b]);
2358
+ for (b in Ac) {
2359
+ Ac.hasOwnProperty(b) && a.push(Ac[b]);
2352
2360
  }
2353
2361
  return a;
2354
2362
  };
2355
- m.flushPendingDeletes = vc;
2363
+ m.flushPendingDeletes = yc;
2356
2364
  m.setDelayFunction = a => {
2357
- wc = a;
2358
- uc.length && wc && wc(vc);
2365
+ zc = a;
2366
+ xc.length && zc && zc(yc);
2359
2367
  };
2360
- Jc = m.InternalError = class extends Error {
2368
+ Mc = m.InternalError = class extends Error {
2361
2369
  constructor(a) {
2362
2370
  super(a);
2363
2371
  this.name = "InternalError";
2364
2372
  }
2365
2373
  };
2366
- Object.assign(Uc.prototype, {isAliasOf:function(a) {
2367
- if (!(this instanceof Uc && a instanceof Uc)) {
2374
+ Object.assign(Xc.prototype, {isAliasOf:function(a) {
2375
+ if (!(this instanceof Xc && a instanceof Xc)) {
2368
2376
  return !1;
2369
2377
  }
2370
2378
  var b = this.g.u.i, c = this.g.o;
@@ -2378,21 +2386,21 @@ Object.assign(Uc.prototype, {isAliasOf:function(a) {
2378
2386
  }
2379
2387
  return b === d && c === a;
2380
2388
  }, clone:function() {
2381
- this.g.o || Tc(this);
2389
+ this.g.o || Wc(this);
2382
2390
  if (this.g.ia) {
2383
2391
  return this.g.count.value += 1, this;
2384
2392
  }
2385
- var a = Kc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
2393
+ var a = Nc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
2386
2394
  a = a(c.call(b, d, {g:{value:{count:e.count, fa:e.fa, ia:e.ia, o:e.o, u:e.u, F:e.F, K:e.K,},}}));
2387
2395
  a.g.count.value += 1;
2388
2396
  a.g.fa = !1;
2389
2397
  return a;
2390
2398
  }, ["delete"]() {
2391
- this.g.o || Tc(this);
2399
+ this.g.o || Wc(this);
2392
2400
  if (this.g.fa && !this.g.ia) {
2393
2401
  throw new P("Object already scheduled for deletion");
2394
2402
  }
2395
- Ec(this);
2403
+ Hc(this);
2396
2404
  var a = this.g;
2397
2405
  --a.count.value;
2398
2406
  0 === a.count.value && (a.F ? a.K.P(a.F) : a.u.i.P(a.o));
@@ -2400,29 +2408,29 @@ Object.assign(Uc.prototype, {isAliasOf:function(a) {
2400
2408
  }, isDeleted:function() {
2401
2409
  return !this.g.o;
2402
2410
  }, deleteLater:function() {
2403
- this.g.o || Tc(this);
2411
+ this.g.o || Wc(this);
2404
2412
  if (this.g.fa && !this.g.ia) {
2405
2413
  throw new P("Object already scheduled for deletion");
2406
2414
  }
2407
- uc.push(this);
2408
- 1 === uc.length && wc && wc(vc);
2415
+ xc.push(this);
2416
+ 1 === xc.length && zc && zc(yc);
2409
2417
  this.g.fa = !0;
2410
2418
  return this;
2411
2419
  },});
2412
- Object.assign(dd.prototype, {Sb(a) {
2420
+ Object.assign(gd.prototype, {Sb(a) {
2413
2421
  this.rb && (a = this.rb(a));
2414
2422
  return a;
2415
2423
  }, bb(a) {
2416
2424
  this.P?.(a);
2417
- }, argPackAdvance:8, readValueFromPointer:Oc, fromWireType:function(a) {
2425
+ }, argPackAdvance:8, readValueFromPointer:Rc, fromWireType:function(a) {
2418
2426
  function b() {
2419
- return this.ta ? Lc(this.i.N, {u:this.ic, o:c, K:this, F:a,}) : Lc(this.i.N, {u:this, o:a,});
2427
+ return this.ta ? Oc(this.i.N, {u:this.ic, o:c, K:this, F:a,}) : Oc(this.i.N, {u:this, o:a,});
2420
2428
  }
2421
2429
  var c = this.Sb(a);
2422
2430
  if (!c) {
2423
2431
  return this.bb(a), null;
2424
2432
  }
2425
- var d = Ic(this.i, c);
2433
+ var d = Lc(this.i, c);
2426
2434
  if (void 0 !== d) {
2427
2435
  if (0 === d.g.count.value) {
2428
2436
  return d.g.o = c, d.g.F = a, d.clone();
@@ -2432,29 +2440,29 @@ Object.assign(dd.prototype, {Sb(a) {
2432
2440
  return d;
2433
2441
  }
2434
2442
  d = this.i.Rb(c);
2435
- d = Hc[d];
2443
+ d = Kc[d];
2436
2444
  if (!d) {
2437
2445
  return b.call(this);
2438
2446
  }
2439
2447
  d = this.sa ? d.Ib : d.pointerType;
2440
- var e = Gc(c, this.i, d.i);
2441
- return null === e ? b.call(this) : this.ta ? Lc(d.i.N, {u:d, o:e, K:this, F:a,}) : Lc(d.i.N, {u:d, o:e,});
2448
+ var e = Jc(c, this.i, d.i);
2449
+ return null === e ? b.call(this) : this.ta ? Oc(d.i.N, {u:d, o:e, K:this, F:a,}) : Oc(d.i.N, {u:d, o:e,});
2442
2450
  },});
2443
- ld = m.UnboundTypeError = rc("UnboundTypeError");
2444
- var be = {__syscall_fcntl64:function(a, b, c) {
2451
+ od = m.UnboundTypeError = uc("UnboundTypeError");
2452
+ var ee = {__syscall_fcntl64:function(a, b, c) {
2445
2453
  gb = c;
2446
2454
  try {
2447
- var d = Vb(a);
2455
+ var d = Wb(a);
2448
2456
  switch(b) {
2449
2457
  case 0:
2450
2458
  var e = fb();
2451
2459
  if (0 > e) {
2452
2460
  break;
2453
2461
  }
2454
- for (; Ib[e];) {
2462
+ for (; Jb[e];) {
2455
2463
  e++;
2456
2464
  }
2457
- return Xb(d, e).X;
2465
+ return Yb(d, e).X;
2458
2466
  case 1:
2459
2467
  case 2:
2460
2468
  return 0;
@@ -2463,14 +2471,14 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2463
2471
  case 4:
2464
2472
  return e = fb(), d.flags |= e, 0;
2465
2473
  case 12:
2466
- return e = fb(), Da[e + 0 >> 1] = 2, 0;
2474
+ return e = fb(), Ea[e + 0 >> 1] = 2, 0;
2467
2475
  case 13:
2468
2476
  case 14:
2469
2477
  return 0;
2470
2478
  }
2471
2479
  return -28;
2472
2480
  } catch (f) {
2473
- if ("undefined" == typeof lc || "ErrnoError" !== f.name) {
2481
+ if ("undefined" == typeof oc || "ErrnoError" !== f.name) {
2474
2482
  throw f;
2475
2483
  }
2476
2484
  return -f.aa;
@@ -2478,7 +2486,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2478
2486
  }, __syscall_ioctl:function(a, b, c) {
2479
2487
  gb = c;
2480
2488
  try {
2481
- var d = Vb(a);
2489
+ var d = Wb(a);
2482
2490
  switch(b) {
2483
2491
  case 21509:
2484
2492
  return d.s ? 0 : -59;
@@ -2489,10 +2497,10 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2489
2497
  if (d.s.W.Yb) {
2490
2498
  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,];
2491
2499
  var e = fb();
2492
- B[e >> 2] = 25856;
2493
- B[e + 4 >> 2] = 5;
2494
- B[e + 8 >> 2] = 191;
2495
- B[e + 12 >> 2] = 35387;
2500
+ C[e >> 2] = 25856;
2501
+ C[e + 4 >> 2] = 5;
2502
+ C[e + 8 >> 2] = 191;
2503
+ C[e + 12 >> 2] = 35387;
2496
2504
  for (var f = 0; 32 > f; f++) {
2497
2505
  z[e + f + 17] = a[f] || 0;
2498
2506
  }
@@ -2519,7 +2527,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2519
2527
  return -59;
2520
2528
  }
2521
2529
  e = fb();
2522
- return B[e >> 2] = 0;
2530
+ return C[e >> 2] = 0;
2523
2531
  case 21520:
2524
2532
  return d.s ? -28 : -59;
2525
2533
  case 21531:
@@ -2532,7 +2540,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2532
2540
  if (!d.s) {
2533
2541
  return -59;
2534
2542
  }
2535
- d.s.W.$b && (f = [24, 80], e = fb(), Da[e >> 1] = f[0], Da[e + 2 >> 1] = f[1]);
2543
+ d.s.W.$b && (f = [24, 80], e = fb(), Ea[e >> 1] = f[0], Ea[e + 2 >> 1] = f[1]);
2536
2544
  return 0;
2537
2545
  case 21524:
2538
2546
  return d.s ? 0 : -59;
@@ -2542,7 +2550,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2542
2550
  return -28;
2543
2551
  }
2544
2552
  } catch (g) {
2545
- if ("undefined" == typeof lc || "ErrnoError" !== g.name) {
2553
+ if ("undefined" == typeof oc || "ErrnoError" !== g.name) {
2546
2554
  throw g;
2547
2555
  }
2548
2556
  return -g.aa;
@@ -2550,36 +2558,36 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2550
2558
  }, __syscall_openat:function(a, b, c, d) {
2551
2559
  gb = d;
2552
2560
  try {
2553
- b = b ? pb(A, b) : "";
2561
+ b = b ? pb(B, b) : "";
2554
2562
  var e = b;
2555
2563
  if ("/" === e.charAt(0)) {
2556
2564
  b = e;
2557
2565
  } else {
2558
- var f = -100 === a ? "/" : Vb(a).path;
2566
+ var f = -100 === a ? "/" : Wb(a).path;
2559
2567
  if (0 == e.length) {
2560
2568
  throw new N(44);
2561
2569
  }
2562
2570
  b = ib(f + "/" + e);
2563
2571
  }
2564
2572
  var g = d ? fb() : 0;
2565
- return fc(b, c, g).X;
2573
+ return ic(b, c, g).X;
2566
2574
  } catch (k) {
2567
- if ("undefined" == typeof lc || "ErrnoError" !== k.name) {
2575
+ if ("undefined" == typeof oc || "ErrnoError" !== k.name) {
2568
2576
  throw k;
2569
2577
  }
2570
2578
  return -k.aa;
2571
2579
  }
2572
2580
  }, _abort_js:() => {
2573
- Ra("");
2581
+ Sa("");
2574
2582
  }, _embind_create_inheriting_constructor:(a, b, c) => {
2575
2583
  a = Q(a);
2576
- b = Dc(b, "wrapper");
2577
- c = pc(c);
2584
+ b = Gc(b, "wrapper");
2585
+ c = sc(c);
2578
2586
  var d = b.i, e = d.N, f = d.C.N, g = d.C.constructor;
2579
- a = mc(a, function(...k) {
2587
+ a = pc(a, function(...k) {
2580
2588
  d.C.qb.forEach(function(p) {
2581
2589
  if (this[p] === f[p]) {
2582
- throw new sc(`Pure virtual function ${p} must be implemented in JavaScript`);
2590
+ throw new vc(`Pure virtual function ${p} must be implemented in JavaScript`);
2583
2591
  }
2584
2592
  }.bind(this));
2585
2593
  Object.defineProperty(this, "__parent", {value:e});
@@ -2590,47 +2598,47 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2590
2598
  throw new P("Pass correct 'this' to __construct");
2591
2599
  }
2592
2600
  k = g.implement(this, ...k);
2593
- Ec(k);
2601
+ Hc(k);
2594
2602
  var p = k.g;
2595
2603
  k.notifyOnDestruction();
2596
2604
  p.ia = !0;
2597
2605
  Object.defineProperties(this, {g:{value:p}});
2598
- Kc(this);
2606
+ Nc(this);
2599
2607
  k = p.o;
2600
- k = yc(d, k);
2601
- if (xc.hasOwnProperty(k)) {
2608
+ k = Bc(d, k);
2609
+ if (Ac.hasOwnProperty(k)) {
2602
2610
  throw new P(`Tried to register registered instance: ${k}`);
2603
2611
  }
2604
- xc[k] = this;
2612
+ Ac[k] = this;
2605
2613
  };
2606
2614
  e.__destruct = function() {
2607
2615
  if (this === e) {
2608
2616
  throw new P("Pass correct 'this' to __destruct");
2609
2617
  }
2610
- Ec(this);
2618
+ Hc(this);
2611
2619
  var k = this.g.o;
2612
- k = yc(d, k);
2613
- if (xc.hasOwnProperty(k)) {
2614
- delete xc[k];
2620
+ k = Bc(d, k);
2621
+ if (Ac.hasOwnProperty(k)) {
2622
+ delete Ac[k];
2615
2623
  } else {
2616
2624
  throw new P(`Tried to unregister unregistered instance: ${k}`);
2617
2625
  }
2618
2626
  };
2619
2627
  a.prototype = Object.create(e);
2620
2628
  Object.assign(a.prototype, c);
2621
- return qc(a);
2629
+ return tc(a);
2622
2630
  }, _embind_finalize_value_object:a => {
2623
- var b = Mc[a];
2624
- delete Mc[a];
2631
+ var b = Pc[a];
2632
+ delete Pc[a];
2625
2633
  var c = b.Oa, d = b.P, e = b.fb, f = e.map(g => g.Vb).concat(e.map(g => g.lc));
2626
- U([a], f, g => {
2634
+ S([a], f, g => {
2627
2635
  var k = {};
2628
2636
  e.forEach((p, n) => {
2629
2637
  var t = g[n], x = p.Tb, y = p.Ub, l = g[n + e.length], u = p.kc, r = p.mc;
2630
- k[p.Pb] = {read:C => t.fromWireType(x(y, C)), write:(C, G) => {
2638
+ k[p.Pb] = {read:D => t.fromWireType(x(y, D)), write:(D, I) => {
2631
2639
  var w = [];
2632
- u(r, C, l.toWireType(w, G));
2633
- Nc(w);
2640
+ u(r, D, l.toWireType(w, I));
2641
+ Qc(w);
2634
2642
  }};
2635
2643
  });
2636
2644
  return [{name:b.name, fromWireType:p => {
@@ -2652,80 +2660,80 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2652
2660
  }
2653
2661
  null !== p && p.push(d, x);
2654
2662
  return x;
2655
- }, argPackAdvance:8, readValueFromPointer:Oc, M:d,}];
2663
+ }, argPackAdvance:8, readValueFromPointer:Rc, M:d,}];
2656
2664
  });
2657
2665
  }, _embind_register_bigint:() => {
2658
2666
  }, _embind_register_bool:(a, b, c, d) => {
2659
2667
  b = Q(b);
2660
- Rc(a, {name:b, fromWireType:function(e) {
2668
+ Uc(a, {name:b, fromWireType:function(e) {
2661
2669
  return !!e;
2662
2670
  }, toWireType:function(e, f) {
2663
2671
  return f ? c : d;
2664
2672
  }, argPackAdvance:8, readValueFromPointer:function(e) {
2665
- return this.fromWireType(A[e]);
2673
+ return this.fromWireType(B[e]);
2666
2674
  }, M:null,});
2667
2675
  }, _embind_register_class:(a, b, c, d, e, f, g, k, p, n, t, x, y) => {
2668
2676
  t = Q(t);
2669
- f = V(e, f);
2670
- k &&= V(g, k);
2671
- n &&= V(p, n);
2672
- y = V(x, y);
2673
- var l = Xc(t);
2674
- Wc(l, function() {
2675
- md(`Cannot construct ${t} due to unbound types`, [d]);
2677
+ f = U(e, f);
2678
+ k &&= U(g, k);
2679
+ n &&= U(p, n);
2680
+ y = U(x, y);
2681
+ var l = $c(t);
2682
+ Zc(l, function() {
2683
+ pd(`Cannot construct ${t} due to unbound types`, [d]);
2676
2684
  });
2677
- U([a, b, c], d ? [d] : [], u => {
2685
+ S([a, b, c], d ? [d] : [], u => {
2678
2686
  u = u[0];
2679
2687
  if (d) {
2680
2688
  var r = u.i;
2681
- var C = r.N;
2689
+ var D = r.N;
2682
2690
  } else {
2683
- C = Uc.prototype;
2691
+ D = Xc.prototype;
2684
2692
  }
2685
- u = mc(t, function(...T) {
2686
- if (Object.getPrototypeOf(this) !== G) {
2693
+ u = pc(t, function(...R) {
2694
+ if (Object.getPrototypeOf(this) !== I) {
2687
2695
  throw new P("Use 'new' to construct " + t);
2688
2696
  }
2689
2697
  if (void 0 === w.$) {
2690
2698
  throw new P(t + " has no accessible constructor");
2691
2699
  }
2692
- var W = w.$[T.length];
2693
- if (void 0 === W) {
2694
- throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${T.length}) - expected (${Object.keys(w.$).toString()}) parameters instead!`);
2700
+ var V = w.$[R.length];
2701
+ if (void 0 === V) {
2702
+ throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${R.length}) - expected (${Object.keys(w.$).toString()}) parameters instead!`);
2695
2703
  }
2696
- return W.apply(this, T);
2704
+ return V.apply(this, R);
2697
2705
  });
2698
- var G = Object.create(C, {constructor:{value:u},});
2699
- u.prototype = G;
2700
- var w = new Yc(t, u, G, y, r, f, k, n);
2706
+ var I = Object.create(D, {constructor:{value:u},});
2707
+ u.prototype = I;
2708
+ var w = new ad(t, u, I, y, r, f, k, n);
2701
2709
  if (w.C) {
2702
- var M;
2703
- (M = w.C).oa ?? (M.oa = []);
2710
+ var L;
2711
+ (L = w.C).oa ?? (L.oa = []);
2704
2712
  w.C.oa.push(w);
2705
2713
  }
2706
- r = new dd(t, w, !0, !1, !1);
2707
- M = new dd(t + "*", w, !1, !1, !1);
2708
- C = new dd(t + " const*", w, !1, !0, !1);
2709
- Hc[a] = {pointerType:M, Ib:C};
2710
- ed(l, u);
2711
- return [r, M, C];
2714
+ r = new gd(t, w, !0, !1, !1);
2715
+ L = new gd(t + "*", w, !1, !1, !1);
2716
+ D = new gd(t + " const*", w, !1, !0, !1);
2717
+ Kc[a] = {pointerType:L, Ib:D};
2718
+ hd(l, u);
2719
+ return [r, L, D];
2712
2720
  });
2713
2721
  }, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
2714
- var k = sd(c, d);
2722
+ var k = vd(c, d);
2715
2723
  b = Q(b);
2716
- b = td(b);
2717
- f = V(e, f);
2718
- U([], [a], p => {
2724
+ b = wd(b);
2725
+ f = U(e, f);
2726
+ S([], [a], p => {
2719
2727
  function n() {
2720
- md(`Cannot call ${t} due to unbound types`, k);
2728
+ pd(`Cannot call ${t} due to unbound types`, k);
2721
2729
  }
2722
2730
  p = p[0];
2723
2731
  var t = `${p.name}.${b}`;
2724
2732
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2725
2733
  var x = p.i.constructor;
2726
- void 0 === x[b] ? (n.ea = c - 1, x[b] = n) : (Vc(x, b, t), x[b].A[c - 1] = n);
2727
- U([], k, y => {
2728
- y = rd(t, [y[0], null].concat(y.slice(1)), null, f, g);
2734
+ void 0 === x[b] ? (n.ea = c - 1, x[b] = n) : (Yc(x, b, t), x[b].A[c - 1] = n);
2735
+ S([], k, y => {
2736
+ y = ud(t, [y[0], null].concat(y.slice(1)), null, f, g);
2729
2737
  void 0 === x[b].A ? (y.ea = c - 1, x[b] = y) : x[b].A[c - 1] = y;
2730
2738
  if (p.i.oa) {
2731
2739
  for (const l of p.i.oa) {
@@ -2738,27 +2746,27 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2738
2746
  });
2739
2747
  }, _embind_register_class_class_property:(a, b, c, d, e, f, g, k) => {
2740
2748
  b = Q(b);
2741
- f = V(e, f);
2742
- U([], [a], p => {
2749
+ f = U(e, f);
2750
+ S([], [a], p => {
2743
2751
  p = p[0];
2744
2752
  var n = `${p.name}.${b}`, t = {get() {
2745
- md(`Cannot access ${n} due to unbound types`, [c]);
2753
+ pd(`Cannot access ${n} due to unbound types`, [c]);
2746
2754
  }, enumerable:!0, configurable:!0};
2747
2755
  t.set = k ? () => {
2748
- md(`Cannot access ${n} due to unbound types`, [c]);
2756
+ pd(`Cannot access ${n} due to unbound types`, [c]);
2749
2757
  } : () => {
2750
2758
  throw new P(`${n} is a read-only property`);
2751
2759
  };
2752
2760
  Object.defineProperty(p.i.constructor, b, t);
2753
- U([], [c], x => {
2761
+ S([], [c], x => {
2754
2762
  x = x[0];
2755
2763
  var y = {get() {
2756
2764
  return x.fromWireType(f(d));
2757
2765
  }, enumerable:!0};
2758
- k && (k = V(g, k), y.set = l => {
2766
+ k && (k = U(g, k), y.set = l => {
2759
2767
  var u = [];
2760
2768
  k(d, x.toWireType(u, l));
2761
- Nc(u);
2769
+ Qc(u);
2762
2770
  });
2763
2771
  Object.defineProperty(p.i.constructor, b, y);
2764
2772
  return [];
@@ -2766,9 +2774,9 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2766
2774
  return [];
2767
2775
  });
2768
2776
  }, _embind_register_class_constructor:(a, b, c, d, e, f) => {
2769
- var g = sd(b, c);
2770
- e = V(d, e);
2771
- U([], [a], k => {
2777
+ var g = vd(b, c);
2778
+ e = U(d, e);
2779
+ S([], [a], k => {
2772
2780
  k = k[0];
2773
2781
  var p = `constructor ${k.name}`;
2774
2782
  void 0 === k.i.$ && (k.i.$ = []);
@@ -2776,32 +2784,32 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2776
2784
  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!`);
2777
2785
  }
2778
2786
  k.i.$[b - 1] = () => {
2779
- md(`Cannot construct ${k.name} due to unbound types`, g);
2787
+ pd(`Cannot construct ${k.name} due to unbound types`, g);
2780
2788
  };
2781
- U([], g, n => {
2789
+ S([], g, n => {
2782
2790
  n.splice(1, 0, null);
2783
- k.i.$[b - 1] = rd(p, n, null, e, f);
2791
+ k.i.$[b - 1] = ud(p, n, null, e, f);
2784
2792
  return [];
2785
2793
  });
2786
2794
  return [];
2787
2795
  });
2788
2796
  }, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
2789
- var p = sd(c, d);
2797
+ var p = vd(c, d);
2790
2798
  b = Q(b);
2791
- b = td(b);
2792
- f = V(e, f);
2793
- U([], [a], n => {
2799
+ b = wd(b);
2800
+ f = U(e, f);
2801
+ S([], [a], n => {
2794
2802
  function t() {
2795
- md(`Cannot call ${x} due to unbound types`, p);
2803
+ pd(`Cannot call ${x} due to unbound types`, p);
2796
2804
  }
2797
2805
  n = n[0];
2798
2806
  var x = `${n.name}.${b}`;
2799
2807
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2800
2808
  k && n.i.qb.push(b);
2801
2809
  var y = n.i.N, l = y[b];
2802
- void 0 === l || void 0 === l.A && l.className !== n.name && l.ea === c - 2 ? (t.ea = c - 2, t.className = n.name, y[b] = t) : (Vc(y, b, x), y[b].A[c - 2] = t);
2803
- U([], p, u => {
2804
- u = rd(x, u, n, f, g);
2810
+ void 0 === l || void 0 === l.A && l.className !== n.name && l.ea === c - 2 ? (t.ea = c - 2, t.className = n.name, y[b] = t) : (Yc(y, b, x), y[b].A[c - 2] = t);
2811
+ S([], p, u => {
2812
+ u = ud(x, u, n, f, g);
2805
2813
  void 0 === y[b].A ? (u.ea = c - 2, y[b] = u) : y[b].A[c - 2] = u;
2806
2814
  return [];
2807
2815
  });
@@ -2809,28 +2817,28 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2809
2817
  });
2810
2818
  }, _embind_register_class_property:(a, b, c, d, e, f, g, k, p, n) => {
2811
2819
  b = Q(b);
2812
- e = V(d, e);
2813
- U([], [a], t => {
2820
+ e = U(d, e);
2821
+ S([], [a], t => {
2814
2822
  t = t[0];
2815
2823
  var x = `${t.name}.${b}`, y = {get() {
2816
- md(`Cannot access ${x} due to unbound types`, [c, g]);
2824
+ pd(`Cannot access ${x} due to unbound types`, [c, g]);
2817
2825
  }, enumerable:!0, configurable:!0};
2818
- y.set = p ? () => md(`Cannot access ${x} due to unbound types`, [c, g]) : () => {
2826
+ y.set = p ? () => pd(`Cannot access ${x} due to unbound types`, [c, g]) : () => {
2819
2827
  throw new P(x + " is a read-only property");
2820
2828
  };
2821
2829
  Object.defineProperty(t.i.N, b, y);
2822
- U([], p ? [c, g] : [c], l => {
2830
+ S([], p ? [c, g] : [c], l => {
2823
2831
  var u = l[0], r = {get() {
2824
- var G = ud(this, t, x + " getter");
2825
- return u.fromWireType(e(f, G));
2832
+ var I = xd(this, t, x + " getter");
2833
+ return u.fromWireType(e(f, I));
2826
2834
  }, enumerable:!0};
2827
2835
  if (p) {
2828
- p = V(k, p);
2829
- var C = l[1];
2830
- r.set = function(G) {
2831
- var w = ud(this, t, x + " setter"), M = [];
2832
- p(n, w, C.toWireType(M, G));
2833
- Nc(M);
2836
+ p = U(k, p);
2837
+ var D = l[1];
2838
+ r.set = function(I) {
2839
+ var w = xd(this, t, x + " setter"), L = [];
2840
+ p(n, w, D.toWireType(L, I));
2841
+ Qc(L);
2834
2842
  };
2835
2843
  }
2836
2844
  Object.defineProperty(t.i.N, b, r);
@@ -2838,36 +2846,36 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2838
2846
  });
2839
2847
  return [];
2840
2848
  });
2841
- }, _embind_register_emval:a => Rc(a, wd), _embind_register_enum:(a, b, c, d) => {
2849
+ }, _embind_register_emval:a => Uc(a, zd), _embind_register_enum:(a, b, c, d) => {
2842
2850
  function e() {
2843
2851
  }
2844
2852
  b = Q(b);
2845
2853
  e.values = {};
2846
- Rc(a, {name:b, constructor:e, fromWireType:function(f) {
2854
+ Uc(a, {name:b, constructor:e, fromWireType:function(f) {
2847
2855
  return this.constructor.values[f];
2848
- }, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:xd(b, c, d), M:null,});
2849
- Wc(b, e);
2856
+ }, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:Ad(b, c, d), M:null,});
2857
+ Zc(b, e);
2850
2858
  }, _embind_register_enum_value:(a, b, c) => {
2851
- var d = Dc(a, "enum");
2859
+ var d = Gc(a, "enum");
2852
2860
  b = Q(b);
2853
2861
  a = d.constructor;
2854
- d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:mc(`${d.name}_${b}`, function() {
2862
+ d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:pc(`${d.name}_${b}`, function() {
2855
2863
  })},});
2856
2864
  a.values[c] = d;
2857
2865
  a[b] = d;
2858
2866
  }, _embind_register_float:(a, b, c) => {
2859
2867
  b = Q(b);
2860
- Rc(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:yd(b, c), M:null,});
2868
+ Uc(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:Bd(b, c), M:null,});
2861
2869
  }, _embind_register_function:(a, b, c, d, e, f) => {
2862
- var g = sd(b, c);
2870
+ var g = vd(b, c);
2863
2871
  a = Q(a);
2864
- a = td(a);
2865
- e = V(d, e);
2866
- Wc(a, function() {
2867
- md(`Cannot call ${a} due to unbound types`, g);
2872
+ a = wd(a);
2873
+ e = U(d, e);
2874
+ Zc(a, function() {
2875
+ pd(`Cannot call ${a} due to unbound types`, g);
2868
2876
  }, b - 1);
2869
- U([], g, k => {
2870
- ed(a, rd(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
2877
+ S([], g, k => {
2878
+ hd(a, ud(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
2871
2879
  return [];
2872
2880
  });
2873
2881
  }, _embind_register_integer:(a, b, c, d, e) => {
@@ -2883,24 +2891,24 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2883
2891
  } : function(k, p) {
2884
2892
  return p;
2885
2893
  };
2886
- Rc(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:zd(b, c, 0 !== d), M:null,});
2894
+ Uc(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:Cd(b, c, 0 !== d), M:null,});
2887
2895
  }, _embind_register_memory_view:(a, b, c) => {
2888
2896
  function d(f) {
2889
- return new e(z.buffer, D[f + 4 >> 2], D[f >> 2]);
2897
+ return new e(z.buffer, F[f + 4 >> 2], F[f >> 2]);
2890
2898
  }
2891
2899
  var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
2892
2900
  c = Q(c);
2893
- Rc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Wb:!0,});
2901
+ Uc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Wb:!0,});
2894
2902
  }, _embind_register_std_string:(a, b) => {
2895
2903
  b = Q(b);
2896
2904
  var c = "std::string" === b;
2897
- Rc(a, {name:b, fromWireType:function(d) {
2898
- var e = D[d >> 2], f = d + 4;
2905
+ Uc(a, {name:b, fromWireType:function(d) {
2906
+ var e = F[d >> 2], f = d + 4;
2899
2907
  if (c) {
2900
2908
  for (var g = f, k = 0; k <= e; ++k) {
2901
2909
  var p = f + k;
2902
- if (k == e || 0 == A[p]) {
2903
- g = g ? pb(A, g, p - g) : "";
2910
+ if (k == e || 0 == B[p]) {
2911
+ g = g ? pb(B, g, p - g) : "";
2904
2912
  if (void 0 === n) {
2905
2913
  var n = g;
2906
2914
  } else {
@@ -2912,11 +2920,11 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2912
2920
  } else {
2913
2921
  n = Array(e);
2914
2922
  for (k = 0; k < e; ++k) {
2915
- n[k] = String.fromCharCode(A[f + k]);
2923
+ n[k] = String.fromCharCode(B[f + k]);
2916
2924
  }
2917
2925
  n = n.join("");
2918
2926
  }
2919
- Bc(d);
2927
+ Ec(d);
2920
2928
  return n;
2921
2929
  }, toWireType:function(d, e) {
2922
2930
  e instanceof ArrayBuffer && (e = new Uint8Array(e));
@@ -2925,161 +2933,161 @@ var be = {__syscall_fcntl64:function(a, b, c) {
2925
2933
  throw new P("Cannot pass non-string to std::string");
2926
2934
  }
2927
2935
  var g = c && f ? rb(e) : e.length;
2928
- var k = $d(4 + g + 1), p = k + 4;
2929
- D[k >> 2] = g;
2936
+ var k = ce(4 + g + 1), p = k + 4;
2937
+ F[k >> 2] = g;
2930
2938
  if (c && f) {
2931
- sb(e, A, p, g + 1);
2939
+ tb(e, B, p, g + 1);
2932
2940
  } else {
2933
2941
  if (f) {
2934
2942
  for (f = 0; f < g; ++f) {
2935
2943
  var n = e.charCodeAt(f);
2936
2944
  if (255 < n) {
2937
- throw Bc(p), new P("String has UTF-16 code units that do not fit in 8 bits");
2945
+ throw Ec(p), new P("String has UTF-16 code units that do not fit in 8 bits");
2938
2946
  }
2939
- A[p + f] = n;
2947
+ B[p + f] = n;
2940
2948
  }
2941
2949
  } else {
2942
2950
  for (f = 0; f < g; ++f) {
2943
- A[p + f] = e[f];
2951
+ B[p + f] = e[f];
2944
2952
  }
2945
2953
  }
2946
2954
  }
2947
- null !== d && d.push(Bc, k);
2955
+ null !== d && d.push(Ec, k);
2948
2956
  return k;
2949
- }, argPackAdvance:8, readValueFromPointer:Oc, M(d) {
2950
- Bc(d);
2957
+ }, argPackAdvance:8, readValueFromPointer:Rc, M(d) {
2958
+ Ec(d);
2951
2959
  },});
2952
2960
  }, _embind_register_std_wstring:(a, b, c) => {
2953
2961
  c = Q(c);
2954
2962
  if (2 === b) {
2955
- var d = Bd;
2956
- var e = Cd;
2957
- var f = Dd;
2958
- var g = k => Ea[k >> 1];
2963
+ var d = Ed;
2964
+ var e = Fd;
2965
+ var f = Gd;
2966
+ var g = k => Fa[k >> 1];
2959
2967
  } else {
2960
- 4 === b && (d = Ed, e = Fd, f = Gd, g = k => D[k >> 2]);
2968
+ 4 === b && (d = Hd, e = Id, f = Jd, g = k => F[k >> 2]);
2961
2969
  }
2962
- Rc(a, {name:c, fromWireType:k => {
2963
- for (var p = D[k >> 2], n, t = k + 4, x = 0; x <= p; ++x) {
2970
+ Uc(a, {name:c, fromWireType:k => {
2971
+ for (var p = F[k >> 2], n, t = k + 4, x = 0; x <= p; ++x) {
2964
2972
  var y = k + 4 + x * b;
2965
2973
  if (x == p || 0 == g(y)) {
2966
2974
  t = d(t, y - t), void 0 === n ? n = t : (n += String.fromCharCode(0), n += t), t = y + b;
2967
2975
  }
2968
2976
  }
2969
- Bc(k);
2977
+ Ec(k);
2970
2978
  return n;
2971
2979
  }, toWireType:(k, p) => {
2972
2980
  if ("string" != typeof p) {
2973
2981
  throw new P(`Cannot pass non-string to C++ string type ${c}`);
2974
2982
  }
2975
- var n = f(p), t = $d(4 + n + b);
2976
- D[t >> 2] = n / b;
2983
+ var n = f(p), t = ce(4 + n + b);
2984
+ F[t >> 2] = n / b;
2977
2985
  e(p, t + 4, n + b);
2978
- null !== k && k.push(Bc, t);
2986
+ null !== k && k.push(Ec, t);
2979
2987
  return t;
2980
- }, argPackAdvance:8, readValueFromPointer:Oc, M(k) {
2981
- Bc(k);
2988
+ }, argPackAdvance:8, readValueFromPointer:Rc, M(k) {
2989
+ Ec(k);
2982
2990
  }});
2983
2991
  }, _embind_register_value_object:(a, b, c, d, e, f) => {
2984
- Mc[a] = {name:Q(b), Oa:V(c, d), P:V(e, f), fb:[],};
2992
+ Pc[a] = {name:Q(b), Oa:U(c, d), P:U(e, f), fb:[],};
2985
2993
  }, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, p, n) => {
2986
- Mc[a].fb.push({Pb:Q(b), Vb:c, Tb:V(d, e), Ub:f, lc:g, kc:V(k, p), mc:n,});
2994
+ Pc[a].fb.push({Pb:Q(b), Vb:c, Tb:U(d, e), Ub:f, lc:g, kc:U(k, p), mc:n,});
2987
2995
  }, _embind_register_void:(a, b) => {
2988
2996
  b = Q(b);
2989
- Rc(a, {Jc:!0, name:b, argPackAdvance:0, fromWireType:() => {
2997
+ Uc(a, {Jc:!0, name:b, argPackAdvance:0, fromWireType:() => {
2990
2998
  }, toWireType:() => {
2991
2999
  },});
2992
- }, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => A.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
3000
+ }, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => B.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
2993
3001
  throw Infinity;
2994
3002
  }, _emval_as:(a, b, c) => {
2995
- a = pc(a);
2996
- b = Dc(b, "emval::as");
2997
- return Hd(b, c, a);
3003
+ a = sc(a);
3004
+ b = Gc(b, "emval::as");
3005
+ return Kd(b, c, a);
2998
3006
  }, _emval_call_method:(a, b, c, d, e) => {
2999
- a = Kd[a];
3000
- b = pc(b);
3001
- c = Jd(c);
3007
+ a = Nd[a];
3008
+ b = sc(b);
3009
+ c = Md(c);
3002
3010
  return a(b, b[c], d, e);
3003
- }, _emval_decref:vd, _emval_get_method_caller:(a, b, c) => {
3004
- var d = Md(a, b), e = d.shift();
3011
+ }, _emval_decref:yd, _emval_get_method_caller:(a, b, c) => {
3012
+ var d = Pd(a, b), e = d.shift();
3005
3013
  a--;
3006
3014
  var f = Array(a);
3007
3015
  b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
3008
- return Ld(mc(b, (g, k, p, n) => {
3016
+ return Od(pc(b, (g, k, p, n) => {
3009
3017
  for (var t = 0, x = 0; x < a; ++x) {
3010
3018
  f[x] = d[x].readValueFromPointer(n + t), t += d[x].argPackAdvance;
3011
3019
  }
3012
- g = 1 === c ? Nd(k, f) : k.apply(g, f);
3013
- return Hd(e, p, g);
3020
+ g = 1 === c ? Qd(k, f) : k.apply(g, f);
3021
+ return Kd(e, p, g);
3014
3022
  }));
3015
3023
  }, _emval_get_module_property:a => {
3016
- a = Jd(a);
3017
- return qc(m[a]);
3024
+ a = Md(a);
3025
+ return tc(m[a]);
3018
3026
  }, _emval_get_property:(a, b) => {
3019
- a = pc(a);
3020
- b = pc(b);
3021
- return qc(a[b]);
3027
+ a = sc(a);
3028
+ b = sc(b);
3029
+ return tc(a[b]);
3022
3030
  }, _emval_incref:a => {
3023
- 9 < a && (oc[a + 1] += 1);
3024
- }, _emval_new_array:() => qc([]), _emval_new_cstring:a => qc(Jd(a)), _emval_new_object:() => qc({}), _emval_run_destructors:a => {
3025
- var b = pc(a);
3026
- Nc(b);
3027
- vd(a);
3031
+ 9 < a && (rc[a + 1] += 1);
3032
+ }, _emval_new_array:() => tc([]), _emval_new_cstring:a => tc(Md(a)), _emval_new_object:() => tc({}), _emval_run_destructors:a => {
3033
+ var b = sc(a);
3034
+ Qc(b);
3035
+ yd(a);
3028
3036
  }, _emval_set_property:(a, b, c) => {
3029
- a = pc(a);
3030
- b = pc(b);
3031
- c = pc(c);
3037
+ a = sc(a);
3038
+ b = sc(b);
3039
+ c = sc(c);
3032
3040
  a[b] = c;
3033
3041
  }, _emval_take_value:(a, b) => {
3034
- a = Dc(a, "_emval_take_value");
3042
+ a = Gc(a, "_emval_take_value");
3035
3043
  a = a.readValueFromPointer(b);
3036
- return qc(a);
3044
+ return tc(a);
3037
3045
  }, _gmtime_js:function(a, b, c) {
3038
3046
  a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
3039
- B[c >> 2] = a.getUTCSeconds();
3040
- B[c + 4 >> 2] = a.getUTCMinutes();
3041
- B[c + 8 >> 2] = a.getUTCHours();
3042
- B[c + 12 >> 2] = a.getUTCDate();
3043
- B[c + 16 >> 2] = a.getUTCMonth();
3044
- B[c + 20 >> 2] = a.getUTCFullYear() - 1900;
3045
- B[c + 24 >> 2] = a.getUTCDay();
3046
- B[c + 28 >> 2] = (a.getTime() - Date.UTC(a.getUTCFullYear(), 0, 1, 0, 0, 0, 0)) / 864E5 | 0;
3047
+ C[c >> 2] = a.getUTCSeconds();
3048
+ C[c + 4 >> 2] = a.getUTCMinutes();
3049
+ C[c + 8 >> 2] = a.getUTCHours();
3050
+ C[c + 12 >> 2] = a.getUTCDate();
3051
+ C[c + 16 >> 2] = a.getUTCMonth();
3052
+ C[c + 20 >> 2] = a.getUTCFullYear() - 1900;
3053
+ C[c + 24 >> 2] = a.getUTCDay();
3054
+ C[c + 28 >> 2] = (a.getTime() - Date.UTC(a.getUTCFullYear(), 0, 1, 0, 0, 0, 0)) / 864E5 | 0;
3047
3055
  }, _localtime_js:function(a, b, c) {
3048
3056
  a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
3049
- B[c >> 2] = a.getSeconds();
3050
- B[c + 4 >> 2] = a.getMinutes();
3051
- B[c + 8 >> 2] = a.getHours();
3052
- B[c + 12 >> 2] = a.getDate();
3053
- B[c + 16 >> 2] = a.getMonth();
3054
- B[c + 20 >> 2] = a.getFullYear() - 1900;
3055
- B[c + 24 >> 2] = a.getDay();
3056
- B[c + 28 >> 2] = (Od(a.getFullYear()) ? Pd : Qd)[a.getMonth()] + a.getDate() - 1 | 0;
3057
- B[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
3057
+ C[c >> 2] = a.getSeconds();
3058
+ C[c + 4 >> 2] = a.getMinutes();
3059
+ C[c + 8 >> 2] = a.getHours();
3060
+ C[c + 12 >> 2] = a.getDate();
3061
+ C[c + 16 >> 2] = a.getMonth();
3062
+ C[c + 20 >> 2] = a.getFullYear() - 1900;
3063
+ C[c + 24 >> 2] = a.getDay();
3064
+ C[c + 28 >> 2] = (Rd(a.getFullYear()) ? Sd : Td)[a.getMonth()] + a.getDate() - 1 | 0;
3065
+ C[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
3058
3066
  b = (new Date(a.getFullYear(), 6, 1)).getTimezoneOffset();
3059
3067
  var d = (new Date(a.getFullYear(), 0, 1)).getTimezoneOffset();
3060
- B[c + 32 >> 2] = (b != d && a.getTimezoneOffset() == Math.min(d, b)) | 0;
3068
+ C[c + 32 >> 2] = (b != d && a.getTimezoneOffset() == Math.min(d, b)) | 0;
3061
3069
  }, _tzset_js:(a, b, c, d) => {
3062
3070
  var e = (new Date()).getFullYear(), f = new Date(e, 0, 1), g = new Date(e, 6, 1);
3063
3071
  e = f.getTimezoneOffset();
3064
3072
  var k = g.getTimezoneOffset();
3065
- D[a >> 2] = 60 * Math.max(e, k);
3066
- B[b >> 2] = Number(e != k);
3073
+ F[a >> 2] = 60 * Math.max(e, k);
3074
+ C[b >> 2] = Number(e != k);
3067
3075
  a = p => p.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
3068
3076
  f = a(f);
3069
3077
  g = a(g);
3070
- k < e ? (sb(f, A, c, 17), sb(g, A, d, 17)) : (sb(f, A, d, 17), sb(g, A, c, 17));
3078
+ k < e ? (tb(f, B, c, 17), tb(g, B, d, 17)) : (tb(f, B, d, 17), tb(g, B, c, 17));
3071
3079
  }, emscripten_asm_const_int:(a, b, c) => {
3072
- Rd.length = 0;
3073
- for (var d; d = A[b++];) {
3080
+ Ud.length = 0;
3081
+ for (var d; d = B[b++];) {
3074
3082
  var e = 105 != d;
3075
3083
  e &= 112 != d;
3076
3084
  c += e && c % 8 ? 4 : 0;
3077
- Rd.push(112 == d ? D[c >> 2] : 105 == d ? B[c >> 2] : Ia[c >> 3]);
3085
+ Ud.push(112 == d ? F[c >> 2] : 105 == d ? C[c >> 2] : Ja[c >> 3]);
3078
3086
  c += e ? 8 : 4;
3079
3087
  }
3080
- return db[a](...Rd);
3088
+ return db[a](...Ud);
3081
3089
  }, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:a => {
3082
- var b = A.length;
3090
+ var b = B.length;
3083
3091
  a >>>= 0;
3084
3092
  if (2147483648 < a) {
3085
3093
  return !1;
@@ -3090,10 +3098,10 @@ var be = {__syscall_fcntl64:function(a, b, c) {
3090
3098
  var e = Math;
3091
3099
  d = Math.max(a, d);
3092
3100
  a: {
3093
- e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Ba.buffer.byteLength + 65535) / 65536;
3101
+ e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Ca.buffer.byteLength + 65535) / 65536;
3094
3102
  try {
3095
- Ba.grow(e);
3096
- Ja();
3103
+ Ca.grow(e);
3104
+ Ka();
3097
3105
  var f = 1;
3098
3106
  break a;
3099
3107
  } catch (g) {
@@ -3107,9 +3115,9 @@ var be = {__syscall_fcntl64:function(a, b, c) {
3107
3115
  return !1;
3108
3116
  }, environ_get:(a, b) => {
3109
3117
  var c = 0;
3110
- Ud().forEach((d, e) => {
3118
+ Xd().forEach((d, e) => {
3111
3119
  var f = b + c;
3112
- e = D[a + 4 * e >> 2] = f;
3120
+ e = F[a + 4 * e >> 2] = f;
3113
3121
  for (f = 0; f < d.length; ++f) {
3114
3122
  z[e++] = d.charCodeAt(f);
3115
3123
  }
@@ -3118,15 +3126,15 @@ var be = {__syscall_fcntl64:function(a, b, c) {
3118
3126
  });
3119
3127
  return 0;
3120
3128
  }, environ_sizes_get:(a, b) => {
3121
- var c = Ud();
3122
- D[a >> 2] = c.length;
3129
+ var c = Xd();
3130
+ F[a >> 2] = c.length;
3123
3131
  var d = 0;
3124
3132
  c.forEach(e => d += e.length + 1);
3125
- D[b >> 2] = d;
3133
+ F[b >> 2] = d;
3126
3134
  return 0;
3127
3135
  }, fd_close:function(a) {
3128
3136
  try {
3129
- var b = Vb(a);
3137
+ var b = Wb(a);
3130
3138
  if (null === b.X) {
3131
3139
  throw new N(8);
3132
3140
  }
@@ -3136,12 +3144,12 @@ var be = {__syscall_fcntl64:function(a, b, c) {
3136
3144
  } catch (c) {
3137
3145
  throw c;
3138
3146
  } finally {
3139
- Ib[b.X] = null;
3147
+ Jb[b.X] = null;
3140
3148
  }
3141
3149
  b.X = null;
3142
3150
  return 0;
3143
3151
  } catch (c) {
3144
- if ("undefined" == typeof lc || "ErrnoError" !== c.name) {
3152
+ if ("undefined" == typeof oc || "ErrnoError" !== c.name) {
3145
3153
  throw c;
3146
3154
  }
3147
3155
  return c.aa;
@@ -3149,10 +3157,10 @@ var be = {__syscall_fcntl64:function(a, b, c) {
3149
3157
  }, fd_read:function(a, b, c, d) {
3150
3158
  try {
3151
3159
  a: {
3152
- var e = Vb(a);
3160
+ var e = Wb(a);
3153
3161
  a = b;
3154
3162
  for (var f, g = b = 0; g < c; g++) {
3155
- var k = D[a >> 2], p = D[a + 4 >> 2];
3163
+ var k = F[a >> 2], p = F[a + 4 >> 2];
3156
3164
  a += 8;
3157
3165
  var n = e, t = f, x = z;
3158
3166
  if (0 > p || 0 > t) {
@@ -3191,13 +3199,13 @@ var be = {__syscall_fcntl64:function(a, b, c) {
3191
3199
  }
3192
3200
  r = b;
3193
3201
  }
3194
- D[d >> 2] = r;
3202
+ F[d >> 2] = r;
3195
3203
  return 0;
3196
- } catch (C) {
3197
- if ("undefined" == typeof lc || "ErrnoError" !== C.name) {
3198
- throw C;
3204
+ } catch (D) {
3205
+ if ("undefined" == typeof oc || "ErrnoError" !== D.name) {
3206
+ throw D;
3199
3207
  }
3200
- return C.aa;
3208
+ return D.aa;
3201
3209
  }
3202
3210
  }, fd_seek:function(a, b, c, d, e) {
3203
3211
  b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
@@ -3205,15 +3213,15 @@ var be = {__syscall_fcntl64:function(a, b, c) {
3205
3213
  if (isNaN(b)) {
3206
3214
  return 61;
3207
3215
  }
3208
- var f = Vb(a);
3209
- hc(f, b, d);
3216
+ var f = Wb(a);
3217
+ kc(f, b, d);
3210
3218
  $a = [f.position >>> 0, (Za = f.position, 1.0 <= +Math.abs(Za) ? 0.0 < Za ? +Math.floor(Za / 4294967296.0) >>> 0 : ~~+Math.ceil((Za - +(~~Za >>> 0)) / 4294967296.0) >>> 0 : 0)];
3211
- B[e >> 2] = $a[0];
3212
- B[e + 4 >> 2] = $a[1];
3219
+ C[e >> 2] = $a[0];
3220
+ C[e + 4 >> 2] = $a[1];
3213
3221
  f.La && 0 === b && 0 === d && (f.La = null);
3214
3222
  return 0;
3215
3223
  } catch (g) {
3216
- if ("undefined" == typeof lc || "ErrnoError" !== g.name) {
3224
+ if ("undefined" == typeof oc || "ErrnoError" !== g.name) {
3217
3225
  throw g;
3218
3226
  }
3219
3227
  return g.aa;
@@ -3221,10 +3229,10 @@ var be = {__syscall_fcntl64:function(a, b, c) {
3221
3229
  }, fd_write:function(a, b, c, d) {
3222
3230
  try {
3223
3231
  a: {
3224
- var e = Vb(a);
3232
+ var e = Wb(a);
3225
3233
  a = b;
3226
3234
  for (var f, g = b = 0; g < c; g++) {
3227
- var k = D[a >> 2], p = D[a + 4 >> 2];
3235
+ var k = F[a >> 2], p = F[a + 4 >> 2];
3228
3236
  a += 8;
3229
3237
  var n = e, t = k, x = p, y = f, l = z;
3230
3238
  if (0 > x || 0 > y) {
@@ -3242,7 +3250,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
3242
3250
  if (!n.m.write) {
3243
3251
  throw new N(28);
3244
3252
  }
3245
- n.seekable && n.flags & 1024 && hc(n, 0, 2);
3253
+ n.seekable && n.flags & 1024 && kc(n, 0, 2);
3246
3254
  var u = "undefined" != typeof y;
3247
3255
  if (!u) {
3248
3256
  y = n.position;
@@ -3251,89 +3259,89 @@ var be = {__syscall_fcntl64:function(a, b, c) {
3251
3259
  }
3252
3260
  var r = n.m.write(n, l, t, x, y, void 0);
3253
3261
  u || (n.position += r);
3254
- var C = r;
3255
- if (0 > C) {
3256
- var G = -1;
3262
+ var D = r;
3263
+ if (0 > D) {
3264
+ var I = -1;
3257
3265
  break a;
3258
3266
  }
3259
- b += C;
3260
- "undefined" != typeof f && (f += C);
3267
+ b += D;
3268
+ "undefined" != typeof f && (f += D);
3261
3269
  }
3262
- G = b;
3270
+ I = b;
3263
3271
  }
3264
- D[d >> 2] = G;
3272
+ F[d >> 2] = I;
3265
3273
  return 0;
3266
3274
  } catch (w) {
3267
- if ("undefined" == typeof lc || "ErrnoError" !== w.name) {
3275
+ if ("undefined" == typeof oc || "ErrnoError" !== w.name) {
3268
3276
  throw w;
3269
3277
  }
3270
3278
  return w.aa;
3271
3279
  }
3272
- }, invoke_vii:ae, isWindowsBrowser:function() {
3280
+ }, invoke_vii:de, isWindowsBrowser:function() {
3273
3281
  return -1 < navigator.platform.indexOf("Win");
3274
- }, strftime:Xd, strftime_l:(a, b, c, d) => Xd(a, b, c, d)}, Y = function() {
3282
+ }, strftime:$d, strftime_l:(a, b, c, d) => $d(a, b, c, d)}, W = function() {
3275
3283
  function a(c) {
3276
- Y = c.exports;
3277
- Ba = Y.memory;
3278
- Ja();
3279
- gd = Y.__indirect_function_table;
3280
- La.unshift(Y.__wasm_call_ctors);
3281
- Oa--;
3282
- m.monitorRunDependencies?.(Oa);
3283
- 0 == Oa && (null !== Pa && (clearInterval(Pa), Pa = null), Qa && (c = Qa, Qa = null, c()));
3284
- return Y;
3285
- }
3286
- var b = {env:be, wasi_snapshot_preview1:be,};
3287
- Oa++;
3288
- m.monitorRunDependencies?.(Oa);
3284
+ W = c.exports;
3285
+ Ca = W.memory;
3286
+ Ka();
3287
+ kd = W.__indirect_function_table;
3288
+ Ma.unshift(W.__wasm_call_ctors);
3289
+ Pa--;
3290
+ m.monitorRunDependencies?.(Pa);
3291
+ 0 == Pa && (null !== Qa && (clearInterval(Qa), Qa = null), Ra && (c = Ra, Ra = null, c()));
3292
+ return W;
3293
+ }
3294
+ var b = {env:ee, wasi_snapshot_preview1:ee,};
3295
+ Pa++;
3296
+ m.monitorRunDependencies?.(Pa);
3289
3297
  if (m.instantiateWasm) {
3290
3298
  try {
3291
3299
  return m.instantiateWasm(b, a);
3292
3300
  } catch (c) {
3293
- za(`Module.instantiateWasm callback failed with error: ${c}`), ca(c);
3301
+ Aa(`Module.instantiateWasm callback failed with error: ${c}`), ca(c);
3294
3302
  }
3295
3303
  }
3296
- Ta ||= Sa("canvas_advanced.wasm") ? "canvas_advanced.wasm" : m.locateFile ? m.locateFile("canvas_advanced.wasm", sa) : sa + "canvas_advanced.wasm";
3297
- Xa(b, function(c) {
3304
+ Ua ||= Ta("canvas_advanced.wasm") ? "canvas_advanced.wasm" : m.locateFile ? m.locateFile("canvas_advanced.wasm", ta) : ta + "canvas_advanced.wasm";
3305
+ Ya(b, function(c) {
3298
3306
  a(c.instance);
3299
3307
  }).catch(ca);
3300
3308
  return {};
3301
- }(), Bc = a => (Bc = Y.free)(a), $d = a => ($d = Y.malloc)(a), Ac = a => (Ac = Y.__getTypeName)(a), ab = m._ma_device__on_notification_unlocked = a => (ab = m._ma_device__on_notification_unlocked = Y.ma_device__on_notification_unlocked)(a);
3302
- m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = Y.ma_malloc_emscripten)(a, b);
3303
- m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = Y.ma_free_emscripten)(a, b);
3304
- var bb = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (bb = m._ma_device_process_pcm_frames_capture__webaudio = Y.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), cb = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (cb = m._ma_device_process_pcm_frames_playback__webaudio = Y.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), ce = (a, b) => (ce = Y.setThrew)(a, b), de = a => (de = Y._emscripten_stack_restore)(a), ee = () => (ee = Y.emscripten_stack_get_current)();
3305
- m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = Y.dynCall_iiji)(a, b, c, d, e);
3306
- m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = Y.dynCall_jiji)(a, b, c, d, e);
3307
- m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = Y.dynCall_iiiji)(a, b, c, d, e, f);
3308
- m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = Y.dynCall_iij)(a, b, c, d);
3309
- m.dynCall_jii = (a, b, c) => (m.dynCall_jii = Y.dynCall_jii)(a, b, c);
3310
- m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = Y.dynCall_viijii)(a, b, c, d, e, f, g);
3311
- m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = Y.dynCall_iiiiij)(a, b, c, d, e, f, g);
3312
- m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj = Y.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
3313
- m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj = Y.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
3314
- function ae(a, b, c) {
3315
- var d = ee();
3309
+ }(), Ec = a => (Ec = W.free)(a), ce = a => (ce = W.malloc)(a), Dc = a => (Dc = W.__getTypeName)(a), ab = m._ma_device__on_notification_unlocked = a => (ab = m._ma_device__on_notification_unlocked = W.ma_device__on_notification_unlocked)(a);
3310
+ m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = W.ma_malloc_emscripten)(a, b);
3311
+ m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = W.ma_free_emscripten)(a, b);
3312
+ var bb = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (bb = m._ma_device_process_pcm_frames_capture__webaudio = W.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), cb = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (cb = m._ma_device_process_pcm_frames_playback__webaudio = W.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), fe = (a, b) => (fe = W.setThrew)(a, b), ge = a => (ge = W._emscripten_stack_restore)(a), he = () => (he = W.emscripten_stack_get_current)();
3313
+ m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = W.dynCall_iiji)(a, b, c, d, e);
3314
+ m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = W.dynCall_jiji)(a, b, c, d, e);
3315
+ m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = W.dynCall_iiiji)(a, b, c, d, e, f);
3316
+ m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = W.dynCall_iij)(a, b, c, d);
3317
+ m.dynCall_jii = (a, b, c) => (m.dynCall_jii = W.dynCall_jii)(a, b, c);
3318
+ m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = W.dynCall_viijii)(a, b, c, d, e, f, g);
3319
+ m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = W.dynCall_iiiiij)(a, b, c, d, e, f, g);
3320
+ m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj = W.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
3321
+ m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj = W.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
3322
+ function de(a, b, c) {
3323
+ var d = he();
3316
3324
  try {
3317
- hd(a)(b, c);
3325
+ ld(a)(b, c);
3318
3326
  } catch (e) {
3319
- de(d);
3327
+ ge(d);
3320
3328
  if (e !== e + 0) {
3321
3329
  throw e;
3322
3330
  }
3323
- ce(1, 0);
3331
+ fe(1, 0);
3324
3332
  }
3325
3333
  }
3326
- var fe;
3327
- Qa = function ge() {
3328
- fe || he();
3329
- fe || (Qa = ge);
3334
+ var ie;
3335
+ Ra = function je() {
3336
+ ie || ke();
3337
+ ie || (Ra = je);
3330
3338
  };
3331
- function he() {
3339
+ function ke() {
3332
3340
  function a() {
3333
- if (!fe && (fe = !0, m.calledRun = !0, !Ca)) {
3334
- 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));
3335
- Lb = !1;
3336
- eb(La);
3341
+ if (!ie && (ie = !0, m.calledRun = !0, !Da)) {
3342
+ m.noFSInit || lc || (lc = !0, m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? mc("stdin", m.stdin) : hc("/dev/tty", "/dev/stdin"), m.stdout ? mc("stdout", null, m.stdout) : hc("/dev/tty", "/dev/stdout"), m.stderr ? mc("stderr", null, m.stderr) : hc("/dev/tty1", "/dev/stderr"), ic("/dev/stdin", 0), ic("/dev/stdout", 1), ic("/dev/stderr", 1));
3343
+ Mb = !1;
3344
+ eb(Ma);
3337
3345
  ba(m);
3338
3346
  if (m.onRuntimeInitialized) {
3339
3347
  m.onRuntimeInitialized();
@@ -3341,20 +3349,20 @@ function he() {
3341
3349
  if (m.postRun) {
3342
3350
  for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
3343
3351
  var b = m.postRun.shift();
3344
- Ma.unshift(b);
3352
+ Na.unshift(b);
3345
3353
  }
3346
3354
  }
3347
- eb(Ma);
3355
+ eb(Na);
3348
3356
  }
3349
3357
  }
3350
- if (!(0 < Oa)) {
3358
+ if (!(0 < Pa)) {
3351
3359
  if (m.preRun) {
3352
3360
  for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
3353
- Na();
3361
+ Oa();
3354
3362
  }
3355
3363
  }
3356
- eb(Ka);
3357
- 0 < Oa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
3364
+ eb(La);
3365
+ 0 < Pa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
3358
3366
  setTimeout(function() {
3359
3367
  m.setStatus("");
3360
3368
  }, 1);
@@ -3367,7 +3375,7 @@ if (m.preInit) {
3367
3375
  m.preInit.pop()();
3368
3376
  }
3369
3377
  }
3370
- he();
3378
+ ke();
3371
3379
  moduleRtn = da;
3372
3380
 
3373
3381
 
@@ -3383,7 +3391,7 @@ moduleRtn = da;
3383
3391
  /* 2 */
3384
3392
  /***/ ((module) => {
3385
3393
 
3386
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.35.3","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}}');
3394
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.35.4","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}}');
3387
3395
 
3388
3396
  /***/ }),
3389
3397
  /* 3 */
@@ -4198,6 +4206,7 @@ __webpack_require__.r(__webpack_exports__);
4198
4206
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4199
4207
  /* harmony export */ Alignment: () => (/* binding */ Alignment),
4200
4208
  /* harmony export */ DataEnum: () => (/* binding */ DataEnum),
4209
+ /* harmony export */ DataType: () => (/* binding */ DataType),
4201
4210
  /* harmony export */ DrawOptimizationOptions: () => (/* binding */ DrawOptimizationOptions),
4202
4211
  /* harmony export */ EventType: () => (/* binding */ EventType),
4203
4212
  /* harmony export */ Fit: () => (/* binding */ Fit),
@@ -7193,6 +7202,22 @@ var Rive = /** @class */ (function () {
7193
7202
  return Rive;
7194
7203
  }());
7195
7204
 
7205
+ var DataType;
7206
+ (function (DataType) {
7207
+ DataType["none"] = "none";
7208
+ DataType["string"] = "string";
7209
+ DataType["number"] = "number";
7210
+ DataType["boolean"] = "boolean";
7211
+ DataType["color"] = "color";
7212
+ DataType["list"] = "list";
7213
+ DataType["enumType"] = "enumType";
7214
+ DataType["trigger"] = "trigger";
7215
+ DataType["viewModel"] = "viewModel";
7216
+ DataType["integer"] = "integer";
7217
+ DataType["listIndex"] = "listIndex";
7218
+ DataType["image"] = "image";
7219
+ DataType["artboard"] = "artboard";
7220
+ })(DataType || (DataType = {}));
7196
7221
  var ViewModel = /** @class */ (function () {
7197
7222
  function ViewModel(viewModel) {
7198
7223
  this._viewModel = viewModel;