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