@rive-app/canvas 2.33.2 → 2.34.0

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
@@ -43,8 +43,8 @@ function ha() {
43
43
  console.error(n);
44
44
  }
45
45
  });
46
- this.nb();
47
- e && e.Pb();
46
+ this.ob();
47
+ e && e.Qb();
48
48
  }
49
49
  let b = 0, c = 0, d = new Map(), e = null, f = null;
50
50
  this.requestAnimationFrame = function(g) {
@@ -57,24 +57,24 @@ function ha() {
57
57
  d.delete(g);
58
58
  b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
59
59
  };
60
- this.Nb = function(g) {
60
+ this.Ob = function(g) {
61
61
  f && (document.body.remove(f), f = null);
62
62
  g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(k) {
63
63
  f.innerHTML = "RIVE FPS " + k.toFixed(1);
64
64
  }, document.body.appendChild(f));
65
65
  e = new function() {
66
66
  let k = 0, p = 0;
67
- this.Pb = function() {
67
+ this.Qb = function() {
68
68
  var n = performance.now();
69
69
  p ? (++k, n -= p, 1000 < n && (g(1000 * k / n), k = p = 0)) : (p = n, k = 0);
70
70
  };
71
71
  }();
72
72
  };
73
- this.Kb = function() {
73
+ this.Lb = function() {
74
74
  f && (document.body.remove(f), f = null);
75
75
  e = null;
76
76
  };
77
- this.nb = function() {
77
+ this.ob = function() {
78
78
  };
79
79
  }
80
80
  function ia(a) {
@@ -112,10 +112,10 @@ m.onRuntimeInitialized = function() {
112
112
  };
113
113
  m.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
114
114
  this.__parent.__construct.call(this);
115
- this.Db = e;
115
+ this.Eb = e;
116
116
  }, loadContents:function(e, f) {
117
117
  e = m.ptrToAsset(e);
118
- return this.Db(e, f);
118
+ return this.Eb(e, f);
119
119
  },});
120
120
  m.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
121
121
  this.__parent.__construct.call(this);
@@ -140,11 +140,11 @@ m.onRuntimeInitialized = function() {
140
140
  },});
141
141
  m.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
142
142
  this.__parent.__construct.call(this);
143
- this.jb = [];
143
+ this.kb = [];
144
144
  }, addLoader:function(e) {
145
- this.jb.push(e);
145
+ this.kb.push(e);
146
146
  }, loadContents:function(e, f) {
147
- for (let g of this.jb) {
147
+ for (let g of this.kb) {
148
148
  if (g.loadContents(e, f)) {
149
149
  return !0;
150
150
  }
@@ -160,84 +160,84 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
160
160
  function a() {
161
161
  if (!b) {
162
162
  var l = document.createElement("canvas"), u = {alpha:1, depth:0, stencil:0, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:1, renderViaOffscreenBackBuffer:1,};
163
- let q;
163
+ let r;
164
164
  if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
165
- if (q = l.getContext("webgl", u), c = 1, !q) {
165
+ if (r = l.getContext("webgl", u), c = 1, !r) {
166
166
  return console.log("No WebGL support. Image mesh will not be drawn."), !1;
167
167
  }
168
168
  } else {
169
- if (q = l.getContext("webgl2", u)) {
169
+ if (r = l.getContext("webgl2", u)) {
170
170
  c = 2;
171
171
  } else {
172
- if (q = l.getContext("webgl", u)) {
172
+ if (r = l.getContext("webgl", u)) {
173
173
  c = 1;
174
174
  } else {
175
175
  return console.log("No WebGL support. Image mesh will not be drawn."), !1;
176
176
  }
177
177
  }
178
178
  }
179
- q = new Proxy(q, {get(F, w) {
180
- if (F.isContextLost()) {
181
- if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof F[w]) {
179
+ r = new Proxy(r, {get(G, w) {
180
+ if (G.isContextLost()) {
181
+ if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof G[w]) {
182
182
  return function() {
183
183
  };
184
184
  }
185
185
  } else {
186
- return "function" === typeof F[w] ? function(...M) {
187
- return F[w].apply(F, M);
188
- } : F[w];
186
+ return "function" === typeof G[w] ? function(...M) {
187
+ return G[w].apply(G, M);
188
+ } : G[w];
189
189
  }
190
- }, set(F, w, M) {
191
- if (F.isContextLost()) {
190
+ }, set(G, w, M) {
191
+ if (G.isContextLost()) {
192
192
  p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + w), p = !0);
193
193
  } else {
194
- return F[w] = M, !0;
194
+ return G[w] = M, !0;
195
195
  }
196
196
  },});
197
- d = Math.min(q.getParameter(q.MAX_RENDERBUFFER_SIZE), q.getParameter(q.MAX_TEXTURE_SIZE));
198
- function D(F, w, M) {
199
- w = q.createShader(w);
200
- q.shaderSource(w, M);
201
- q.compileShader(w);
202
- M = q.getShaderInfoLog(w);
197
+ d = Math.min(r.getParameter(r.MAX_RENDERBUFFER_SIZE), r.getParameter(r.MAX_TEXTURE_SIZE));
198
+ function C(G, w, M) {
199
+ w = r.createShader(w);
200
+ r.shaderSource(w, M);
201
+ r.compileShader(w);
202
+ M = r.getShaderInfoLog(w);
203
203
  if (0 < (M || "").length) {
204
204
  throw M;
205
205
  }
206
- q.attachShader(F, w);
206
+ r.attachShader(G, w);
207
207
  }
208
- l = q.createProgram();
209
- D(l, q.VERTEX_SHADER, "attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }");
210
- D(l, q.FRAGMENT_SHADER, "precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }");
211
- q.bindAttribLocation(l, 0, "vertex");
212
- q.bindAttribLocation(l, 1, "uv");
213
- q.linkProgram(l);
214
- u = q.getProgramInfoLog(l);
208
+ l = r.createProgram();
209
+ C(l, r.VERTEX_SHADER, "attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }");
210
+ C(l, r.FRAGMENT_SHADER, "precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }");
211
+ r.bindAttribLocation(l, 0, "vertex");
212
+ r.bindAttribLocation(l, 1, "uv");
213
+ r.linkProgram(l);
214
+ u = r.getProgramInfoLog(l);
215
215
  if (0 < (u || "").trim().length) {
216
216
  throw u;
217
217
  }
218
- e = q.getUniformLocation(l, "mat");
219
- f = q.getUniformLocation(l, "translate");
220
- q.useProgram(l);
221
- q.bindBuffer(q.ARRAY_BUFFER, q.createBuffer());
222
- q.enableVertexAttribArray(0);
223
- q.enableVertexAttribArray(1);
224
- q.bindBuffer(q.ELEMENT_ARRAY_BUFFER, q.createBuffer());
225
- q.uniform1i(q.getUniformLocation(l, "image"), 0);
226
- q.pixelStorei(q.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0);
227
- b = q;
218
+ e = r.getUniformLocation(l, "mat");
219
+ f = r.getUniformLocation(l, "translate");
220
+ r.useProgram(l);
221
+ r.bindBuffer(r.ARRAY_BUFFER, r.createBuffer());
222
+ r.enableVertexAttribArray(0);
223
+ r.enableVertexAttribArray(1);
224
+ r.bindBuffer(r.ELEMENT_ARRAY_BUFFER, r.createBuffer());
225
+ r.uniform1i(r.getUniformLocation(l, "image"), 0);
226
+ r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0);
227
+ b = r;
228
228
  }
229
229
  return !0;
230
230
  }
231
231
  let b = null, c = 0, d = 0, e = null, f = null, g = 0, k = 0, p = !1;
232
232
  a();
233
- this.ac = function() {
233
+ this.bc = function() {
234
234
  a();
235
235
  return d;
236
236
  };
237
- this.Jb = function(l) {
237
+ this.Kb = function(l) {
238
238
  b.deleteTexture && b.deleteTexture(l);
239
239
  };
240
- this.Ib = function(l) {
240
+ this.Jb = function(l) {
241
241
  if (!a()) {
242
242
  return null;
243
243
  }
@@ -254,7 +254,7 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
254
254
  return u;
255
255
  };
256
256
  const n = new ia(8), t = new ia(8), x = new ia(10), y = new ia(10);
257
- this.Mb = function(l, u, q, D, F) {
257
+ this.Nb = function(l, u, r, C, G) {
258
258
  if (a()) {
259
259
  var w = n.push(l), M = t.push(u);
260
260
  if (b.canvas) {
@@ -266,43 +266,43 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
266
266
  b.clearColor(0, 0, 0, 0);
267
267
  b.clear(b.COLOR_BUFFER_BIT);
268
268
  b.enable(b.SCISSOR_TEST);
269
- q.sort((I, aa) => aa.ub - I.ub);
270
- w = x.push(D);
269
+ r.sort((J, Z) => Z.vb - J.vb);
270
+ w = x.push(C);
271
271
  g != w && (b.bufferData(b.ARRAY_BUFFER, 8 * w, b.DYNAMIC_DRAW), g = w);
272
272
  w = 0;
273
- for (var R of q) {
274
- b.bufferSubData(b.ARRAY_BUFFER, w, R.Sa), w += 4 * R.Sa.length;
273
+ for (var T of r) {
274
+ b.bufferSubData(b.ARRAY_BUFFER, w, T.Ta), w += 4 * T.Ta.length;
275
275
  }
276
- console.assert(w == 4 * D);
277
- for (var W of q) {
278
- b.bufferSubData(b.ARRAY_BUFFER, w, W.Ab), w += 4 * W.Ab.length;
276
+ console.assert(w == 4 * C);
277
+ for (var W of r) {
278
+ b.bufferSubData(b.ARRAY_BUFFER, w, W.Bb), w += 4 * W.Bb.length;
279
279
  }
280
- console.assert(w == 8 * D);
281
- w = y.push(F);
280
+ console.assert(w == 8 * C);
281
+ w = y.push(G);
282
282
  k != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), k = w);
283
- R = 0;
284
- for (var pa of q) {
285
- b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, R, pa.indices), R += 2 * pa.indices.length;
283
+ T = 0;
284
+ for (var pa of r) {
285
+ b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, T, pa.indices), T += 2 * pa.indices.length;
286
286
  }
287
- console.assert(R == 2 * F);
287
+ console.assert(T == 2 * G);
288
288
  pa = 0;
289
289
  W = !0;
290
- w = R = 0;
291
- for (const I of q) {
292
- I.image.Ia != pa && (b.bindTexture(b.TEXTURE_2D, I.image.Ha || null), pa = I.image.Ia);
293
- I.fc ? (b.scissor(I.Ya, M - I.Za - I.ib, I.tc, I.ib), W = !0) : W && (b.scissor(0, M - u, l, u), W = !1);
294
- q = 2 / l;
295
- const aa = -2 / u;
296
- b.uniform4f(e, I.ga[0] * q * I.za, I.ga[1] * aa * I.Aa, I.ga[2] * q * I.za, I.ga[3] * aa * I.Aa);
297
- b.uniform2f(f, I.ga[4] * q * I.za + q * (I.Ya - I.bc * I.za) - 1, I.ga[5] * aa * I.Aa + aa * (I.Za - I.cc * I.Aa) + 1);
290
+ w = T = 0;
291
+ for (const J of r) {
292
+ J.image.Ja != pa && (b.bindTexture(b.TEXTURE_2D, J.image.Ia || null), pa = J.image.Ja);
293
+ J.hc ? (b.scissor(J.Za, M - J.$a - J.jb, J.uc, J.jb), W = !0) : W && (b.scissor(0, M - u, l, u), W = !1);
294
+ r = 2 / l;
295
+ const Z = -2 / u;
296
+ b.uniform4f(e, J.ha[0] * r * J.Aa, J.ha[1] * Z * J.Ba, J.ha[2] * r * J.Aa, J.ha[3] * Z * J.Ba);
297
+ b.uniform2f(f, J.ha[4] * r * J.Aa + r * (J.Za - J.cc * J.Aa) - 1, J.ha[5] * Z * J.Ba + Z * (J.$a - J.dc * J.Ba) + 1);
298
298
  b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
299
- b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * D);
300
- b.drawElements(b.TRIANGLES, I.indices.length, b.UNSIGNED_SHORT, R);
301
- w += 4 * I.Sa.length;
302
- R += 2 * I.indices.length;
299
+ b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * C);
300
+ b.drawElements(b.TRIANGLES, J.indices.length, b.UNSIGNED_SHORT, T);
301
+ w += 4 * J.Ta.length;
302
+ T += 2 * J.indices.length;
303
303
  }
304
- console.assert(w == 4 * D);
305
- console.assert(R == 2 * F);
304
+ console.assert(w == 4 * C);
305
+ console.assert(T == 2 * G);
306
306
  }
307
307
  }
308
308
  };
@@ -311,8 +311,8 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
311
311
  };
312
312
  }(), ma = m.onRuntimeInitialized;
313
313
  m.onRuntimeInitialized = function() {
314
- function a(r) {
315
- switch(r) {
314
+ function a(q) {
315
+ switch(q) {
316
316
  case n.srcOver:
317
317
  return "source-over";
318
318
  case n.screen:
@@ -347,295 +347,303 @@ m.onRuntimeInitialized = function() {
347
347
  return "luminosity";
348
348
  }
349
349
  }
350
- function b(r) {
351
- return "rgba(" + ((16711680 & r) >>> 16) + "," + ((65280 & r) >>> 8) + "," + ((255 & r) >>> 0) + "," + ((4278190080 & r) >>> 24) / 255 + ")";
350
+ function b(q) {
351
+ return "rgba(" + ((16711680 & q) >>> 16) + "," + ((65280 & q) >>> 8) + "," + ((255 & q) >>> 0) + "," + ((4278190080 & q) >>> 24) / 255 + ")";
352
352
  }
353
353
  function c() {
354
- 0 < M.length && (la.Mb(w.drawWidth(), w.drawHeight(), M, R, W), M = [], W = R = 0, w.reset(512, 512));
355
- for (const r of F) {
356
- for (const v of r.H) {
354
+ 0 < M.length && (la.Nb(w.drawWidth(), w.drawHeight(), M, T, W), M = [], W = T = 0, w.reset(512, 512));
355
+ for (const q of G) {
356
+ for (const v of q.I) {
357
357
  v();
358
358
  }
359
- r.H = [];
359
+ q.I = [];
360
360
  }
361
- F.clear();
361
+ G.clear();
362
362
  }
363
363
  ma && ma();
364
364
  var d = m.RenderPaintStyle;
365
365
  const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, k = m.StrokeCap, p = m.StrokeJoin, n = m.BlendMode, t = d.fill, x = d.stroke, y = m.FillRule.evenOdd;
366
366
  let l = 1;
367
- var u = m.RenderImage.extend("CanvasRenderImage", {__construct:function({ka:r, va:v} = {}) {
367
+ var u = m.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, wa:v} = {}) {
368
368
  this.__parent.__construct.call(this);
369
- this.Ia = l;
369
+ this.Ja = l;
370
370
  l = l + 1 & 2147483647 || 1;
371
- this.ka = r;
372
- this.va = v;
371
+ this.la = q;
372
+ this.wa = v;
373
373
  }, __destruct:function() {
374
- this.Ha && (la.Jb(this.Ha), URL.revokeObjectURL(this.Va));
374
+ this.Ia && (la.Kb(this.Ia), URL.revokeObjectURL(this.Wa));
375
375
  this.__parent.__destruct.call(this);
376
- }, decode:function(r) {
376
+ }, decode:function(q) {
377
377
  var v = this;
378
- v.va && v.va(v);
379
- var G = new Image();
380
- v.Va = URL.createObjectURL(new Blob([r], {type:"image/png",}));
381
- G.onload = function() {
382
- v.Cb = G;
383
- v.Ha = la.Ib(G);
384
- v.size(G.width, G.height);
385
- v.ka && v.ka(v);
386
- };
387
- G.src = v.Va;
388
- },}), q = e.extend("CanvasRenderPath", {__construct:function() {
378
+ v.wa && v.wa(v);
379
+ var H = new Image();
380
+ v.Wa = URL.createObjectURL(new Blob([q], {type:"image/png",}));
381
+ H.onload = function() {
382
+ v.Db = H;
383
+ v.Ia = la.Jb(H);
384
+ v.size(H.width, H.height);
385
+ v.la && v.la(v);
386
+ };
387
+ H.src = v.Wa;
388
+ },}), r = e.extend("CanvasRenderPath", {__construct:function() {
389
389
  this.__parent.__construct.call(this);
390
- this.T = new Path2D();
390
+ this.U = new Path2D();
391
391
  }, rewind:function() {
392
- this.T = new Path2D();
393
- }, addPath:function(r, v, G, J, C, H, K) {
394
- var L = this.T, Z = L.addPath;
395
- r = r.T;
396
- const S = new DOMMatrix();
397
- S.a = v;
398
- S.b = G;
399
- S.c = J;
400
- S.d = C;
401
- S.e = H;
402
- S.f = K;
403
- Z.call(L, r, S);
404
- }, fillRule:function(r) {
405
- this.Ua = r;
406
- }, moveTo:function(r, v) {
407
- this.T.moveTo(r, v);
408
- }, lineTo:function(r, v) {
409
- this.T.lineTo(r, v);
410
- }, cubicTo:function(r, v, G, J, C, H) {
411
- this.T.bezierCurveTo(r, v, G, J, C, H);
392
+ this.U = new Path2D();
393
+ }, addPath:function(q, v, H, E, K, I, F) {
394
+ var L = this.U, aa = L.addPath;
395
+ q = q.U;
396
+ const R = new DOMMatrix();
397
+ R.a = v;
398
+ R.b = H;
399
+ R.c = E;
400
+ R.d = K;
401
+ R.e = I;
402
+ R.f = F;
403
+ aa.call(L, q, R);
404
+ }, fillRule:function(q) {
405
+ this.Va = q;
406
+ }, moveTo:function(q, v) {
407
+ this.U.moveTo(q, v);
408
+ }, lineTo:function(q, v) {
409
+ this.U.lineTo(q, v);
410
+ }, cubicTo:function(q, v, H, E, K, I) {
411
+ this.U.bezierCurveTo(q, v, H, E, K, I);
412
412
  }, close:function() {
413
- this.T.closePath();
414
- },}), D = f.extend("CanvasRenderPaint", {color:function(r) {
415
- this.Wa = b(r);
416
- }, thickness:function(r) {
417
- this.Fb = r;
418
- }, join:function(r) {
419
- switch(r) {
413
+ this.U.closePath();
414
+ },}), C = f.extend("CanvasRenderPaint", {color:function(q) {
415
+ this.Xa = b(q);
416
+ }, thickness:function(q) {
417
+ this.Gb = q;
418
+ }, join:function(q) {
419
+ switch(q) {
420
420
  case p.miter:
421
- this.Ga = "miter";
421
+ this.Ha = "miter";
422
422
  break;
423
423
  case p.round:
424
- this.Ga = "round";
424
+ this.Ha = "round";
425
425
  break;
426
426
  case p.bevel:
427
- this.Ga = "bevel";
427
+ this.Ha = "bevel";
428
428
  }
429
- }, cap:function(r) {
430
- switch(r) {
429
+ }, cap:function(q) {
430
+ switch(q) {
431
431
  case k.butt:
432
- this.Fa = "butt";
432
+ this.Ga = "butt";
433
433
  break;
434
434
  case k.round:
435
- this.Fa = "round";
435
+ this.Ga = "round";
436
436
  break;
437
437
  case k.square:
438
- this.Fa = "square";
438
+ this.Ga = "square";
439
439
  }
440
- }, style:function(r) {
441
- this.Eb = r;
442
- }, blendMode:function(r) {
443
- this.Bb = a(r);
440
+ }, style:function(q) {
441
+ this.Fb = q;
442
+ }, blendMode:function(q) {
443
+ this.Cb = a(q);
444
444
  }, clearGradient:function() {
445
- this.ia = null;
446
- }, linearGradient:function(r, v, G, J) {
447
- this.ia = {wb:r, xb:v, bb:G, cb:J, Pa:[],};
448
- }, radialGradient:function(r, v, G, J) {
449
- this.ia = {wb:r, xb:v, bb:G, cb:J, Pa:[], $b:!0,};
450
- }, addStop:function(r, v) {
451
- this.ia.Pa.push({color:r, stop:v,});
445
+ this.ja = null;
446
+ }, linearGradient:function(q, v, H, E) {
447
+ this.ja = {xb:q, yb:v, cb:H, eb:E, Qa:[],};
448
+ }, radialGradient:function(q, v, H, E) {
449
+ this.ja = {xb:q, yb:v, cb:H, eb:E, Qa:[], ac:!0,};
450
+ }, addStop:function(q, v) {
451
+ this.ja.Qa.push({color:q, stop:v,});
452
452
  }, completeGradient:function() {
453
- }, draw:function(r, v, G) {
454
- let J = this.Eb;
455
- var C = this.Wa, H = this.ia;
456
- r.globalCompositeOperation = this.Bb;
457
- if (null != H) {
458
- C = H.wb;
459
- var K = H.xb;
460
- const Z = H.bb;
461
- var L = H.cb;
462
- const S = H.Pa;
463
- H.$b ? (H = Z - C, L -= K, C = r.createRadialGradient(C, K, 0, C, K, Math.sqrt(H * H + L * L))) : C = r.createLinearGradient(C, K, Z, L);
464
- for (let Y = 0, T = S.length; Y < T; Y++) {
465
- K = S[Y], C.addColorStop(K.stop, b(K.color));
453
+ }, draw:function(q, v, H, E) {
454
+ let K = this.Fb;
455
+ var I = this.Xa, F = this.ja;
456
+ const L = q.globalCompositeOperation, aa = q.globalAlpha;
457
+ q.globalCompositeOperation = this.Cb;
458
+ q.globalAlpha = E;
459
+ if (null != F) {
460
+ I = F.xb;
461
+ const X = F.yb, S = F.cb;
462
+ var R = F.eb;
463
+ E = F.Qa;
464
+ F.ac ? (F = S - I, R -= X, I = q.createRadialGradient(I, X, 0, I, X, Math.sqrt(F * F + R * R))) : I = q.createLinearGradient(I, X, S, R);
465
+ for (let xa = 0, Ya = E.length; xa < Ya; xa++) {
466
+ F = E[xa], I.addColorStop(F.stop, b(F.color));
466
467
  }
467
- this.Wa = C;
468
- this.ia = null;
468
+ this.Xa = I;
469
+ this.ja = null;
469
470
  }
470
- switch(J) {
471
+ switch(K) {
471
472
  case x:
472
- r.strokeStyle = C;
473
- r.lineWidth = this.Fb;
474
- r.lineCap = this.Fa;
475
- r.lineJoin = this.Ga;
476
- r.stroke(v);
473
+ q.strokeStyle = I;
474
+ q.lineWidth = this.Gb;
475
+ q.lineCap = this.Ga;
476
+ q.lineJoin = this.Ha;
477
+ q.stroke(v);
477
478
  break;
478
479
  case t:
479
- r.fillStyle = C, r.fill(v, G);
480
+ q.fillStyle = I, q.fill(v, H);
480
481
  }
482
+ q.globalCompositeOperation = L;
483
+ q.globalAlpha = aa;
481
484
  },});
482
- const F = new Set();
483
- let w = null, M = [], R = 0, W = 0;
484
- var pa = m.CanvasRenderer = g.extend("Renderer", {__construct:function(r) {
485
+ const G = new Set();
486
+ let w = null, M = [], T = 0, W = 0;
487
+ var pa = m.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
485
488
  this.__parent.__construct.call(this);
486
- this.S = [1, 0, 0, 1, 0, 0];
487
- this.B = r.getContext("2d");
488
- this.Ta = r;
489
- this.H = [];
489
+ this.T = [1, 0, 0, 1, 0, 0];
490
+ this.G = [1.0];
491
+ this.B = q.getContext("2d");
492
+ this.Ua = q;
493
+ this.I = [];
490
494
  }, save:function() {
491
- this.S.push(...this.S.slice(this.S.length - 6));
492
- this.H.push(this.B.save.bind(this.B));
495
+ this.T.push(...this.T.slice(this.T.length - 6));
496
+ this.G.push(this.G[this.G.length - 1]);
497
+ this.I.push(this.B.save.bind(this.B));
493
498
  }, restore:function() {
494
- const r = this.S.length - 6;
495
- if (6 > r) {
499
+ const q = this.T.length - 6;
500
+ if (6 > q) {
496
501
  throw "restore() called without matching save().";
497
502
  }
498
- this.S.splice(r);
499
- this.H.push(this.B.restore.bind(this.B));
500
- }, transform:function(r, v, G, J, C, H) {
501
- const K = this.S, L = K.length - 6;
502
- K.splice(L, 6, K[L] * r + K[L + 2] * v, K[L + 1] * r + K[L + 3] * v, K[L] * G + K[L + 2] * J, K[L + 1] * G + K[L + 3] * J, K[L] * C + K[L + 2] * H + K[L + 4], K[L + 1] * C + K[L + 3] * H + K[L + 5]);
503
- this.H.push(this.B.transform.bind(this.B, r, v, G, J, C, H));
504
- }, rotate:function(r) {
505
- const v = Math.sin(r);
506
- r = Math.cos(r);
507
- this.transform(r, v, -v, r, 0, 0);
508
- }, _drawPath:function(r, v) {
509
- this.H.push(v.draw.bind(v, this.B, r.T, r.Ua === y ? "evenodd" : "nonzero"));
510
- }, _drawRiveImage:function(r, v, G, J) {
511
- var C = r.Cb;
512
- if (C) {
513
- var H = this.B, K = a(G);
514
- this.H.push(function() {
515
- H.globalCompositeOperation = K;
516
- H.globalAlpha = J;
517
- H.drawImage(C, 0, 0);
518
- H.globalAlpha = 1;
503
+ this.T.splice(q);
504
+ this.G.pop();
505
+ this.I.push(this.B.restore.bind(this.B));
506
+ }, transform:function(q, v, H, E, K, I) {
507
+ const F = this.T, L = F.length - 6;
508
+ F.splice(L, 6, F[L] * q + F[L + 2] * v, F[L + 1] * q + F[L + 3] * v, F[L] * H + F[L + 2] * E, F[L + 1] * H + F[L + 3] * E, F[L] * K + F[L + 2] * I + F[L + 4], F[L + 1] * K + F[L + 3] * I + F[L + 5]);
509
+ this.I.push(this.B.transform.bind(this.B, q, v, H, E, K, I));
510
+ }, rotate:function(q) {
511
+ const v = Math.sin(q);
512
+ q = Math.cos(q);
513
+ this.transform(q, v, -v, q, 0, 0);
514
+ }, modulateOpacity:function(q) {
515
+ this.G[this.G.length - 1] *= q;
516
+ }, _drawPath:function(q, v) {
517
+ this.I.push(v.draw.bind(v, this.B, q.U, q.Va === y ? "evenodd" : "nonzero", Math.max(0, this.G[this.G.length - 1])));
518
+ }, _drawRiveImage:function(q, v, H, E) {
519
+ var K = q.Db;
520
+ if (K) {
521
+ var I = this.B, F = a(H), L = Math.max(0, E * this.G[this.G.length - 1]);
522
+ this.I.push(function() {
523
+ I.globalCompositeOperation = F;
524
+ I.globalAlpha = L;
525
+ I.drawImage(K, 0, 0);
526
+ I.globalAlpha = 1;
519
527
  });
520
528
  }
521
- }, _getMatrix:function(r) {
522
- const v = this.S, G = v.length - 6;
523
- for (let J = 0; 6 > J; ++J) {
524
- r[J] = v[G + J];
529
+ }, _getMatrix:function(q) {
530
+ const v = this.T, H = v.length - 6;
531
+ for (let E = 0; 6 > E; ++E) {
532
+ q[E] = v[H + E];
525
533
  }
526
- }, _drawImageMesh:function(r, v, G, J, C, H, K, L, Z, S, Y) {
534
+ }, _drawImageMesh:function(q, v, H, E, K, I, F, L, aa, R, X) {
527
535
  v = this.B.canvas.width;
528
- var T = this.B.canvas.height;
529
- const Yb = S - L, Zb = Y - Z;
536
+ var S = this.B.canvas.height;
537
+ const xa = R - L, Ya = X - aa;
530
538
  L = Math.max(L, 0);
531
- Z = Math.max(Z, 0);
532
- S = Math.min(S, v);
533
- Y = Math.min(Y, T);
534
- const Ea = S - L, Fa = Y - Z;
535
- console.assert(Ea <= Math.min(Yb, v));
536
- console.assert(Fa <= Math.min(Zb, T));
537
- if (!(0 >= Ea || 0 >= Fa)) {
538
- S = Ea < Yb || Fa < Zb;
539
- v = Y = 1;
540
- var qa = Math.ceil(Ea * Y), ra = Math.ceil(Fa * v);
541
- T = la.ac();
542
- qa > T && (Y *= T / qa, qa = T);
543
- ra > T && (v *= T / ra, ra = T);
544
- w || (w = new m.DynamicRectanizer(T), w.reset(512, 512));
545
- T = w.addRect(qa, ra);
546
- 0 > T && (c(), F.add(this), T = w.addRect(qa, ra), console.assert(0 <= T));
547
- var $b = T & 65535, ac = T >> 16;
548
- M.push({ga:this.S.slice(this.S.length - 6), image:r, Ya:$b, Za:ac, bc:L, cc:Z, tc:qa, ib:ra, za:Y, Aa:v, Sa:new Float32Array(C), Ab:new Float32Array(H), indices:new Uint16Array(K), fc:S, ub:r.Ia << 1 | (S ? 1 : 0),});
549
- R += C.length;
550
- W += K.length;
551
- var xa = this.B, od = a(G);
552
- this.H.push(function() {
553
- xa.save();
554
- xa.resetTransform();
555
- xa.globalCompositeOperation = od;
556
- xa.globalAlpha = J;
539
+ aa = Math.max(aa, 0);
540
+ R = Math.min(R, v);
541
+ X = Math.min(X, S);
542
+ const Fa = R - L, Ga = X - aa;
543
+ console.assert(Fa <= Math.min(xa, v));
544
+ console.assert(Ga <= Math.min(Ya, S));
545
+ if (!(0 >= Fa || 0 >= Ga)) {
546
+ R = Fa < xa || Ga < Ya;
547
+ v = X = 1;
548
+ var qa = Math.ceil(Fa * X), ra = Math.ceil(Ga * v);
549
+ S = la.bc();
550
+ qa > S && (X *= S / qa, qa = S);
551
+ ra > S && (v *= S / ra, ra = S);
552
+ w || (w = new m.DynamicRectanizer(S), w.reset(512, 512));
553
+ S = w.addRect(qa, ra);
554
+ 0 > S && (c(), G.add(this), S = w.addRect(qa, ra), console.assert(0 <= S));
555
+ var $b = S & 65535, ac = S >> 16;
556
+ M.push({ha:this.T.slice(this.T.length - 6), image:q, Za:$b, $a:ac, cc:L, dc:aa, uc:qa, jb:ra, Aa:X, Ba:v, Ta:new Float32Array(K), Bb:new Float32Array(I), indices:new Uint16Array(F), hc:R, vb:q.Ja << 1 | (R ? 1 : 0),});
557
+ T += K.length;
558
+ W += F.length;
559
+ var ya = this.B, od = a(H), pd = Math.max(0, E * this.G[this.G.length - 1]);
560
+ this.I.push(function() {
561
+ ya.save();
562
+ ya.resetTransform();
563
+ ya.globalCompositeOperation = od;
564
+ ya.globalAlpha = pd;
557
565
  const bc = la.canvas();
558
- bc && xa.drawImage(bc, $b, ac, qa, ra, L, Z, Ea, Fa);
559
- xa.restore();
566
+ bc && ya.drawImage(bc, $b, ac, qa, ra, L, aa, Fa, Ga);
567
+ ya.restore();
560
568
  });
561
569
  }
562
- }, _clipPath:function(r) {
563
- this.H.push(this.B.clip.bind(this.B, r.T, r.Ua === y ? "evenodd" : "nonzero"));
570
+ }, _clipPath:function(q) {
571
+ this.I.push(this.B.clip.bind(this.B, q.U, q.Va === y ? "evenodd" : "nonzero"));
564
572
  }, clear:function() {
565
- F.add(this);
566
- this.H.push(this.B.clearRect.bind(this.B, 0, 0, this.Ta.width, this.Ta.height));
573
+ G.add(this);
574
+ this.I.push(this.B.clearRect.bind(this.B, 0, 0, this.Ua.width, this.Ua.height));
567
575
  }, flush:function() {
568
- }, translate:function(r, v) {
569
- this.transform(1, 0, 0, 1, r, v);
576
+ }, translate:function(q, v) {
577
+ this.transform(1, 0, 0, 1, q, v);
570
578
  },});
571
- m.makeRenderer = function(r) {
572
- const v = new pa(r), G = v.B;
573
- return new Proxy(v, {get(J, C) {
574
- if ("function" === typeof J[C]) {
575
- return function(...H) {
576
- return J[C].apply(J, H);
579
+ m.makeRenderer = function(q) {
580
+ const v = new pa(q), H = v.B;
581
+ return new Proxy(v, {get(E, K) {
582
+ if ("function" === typeof E[K]) {
583
+ return function(...I) {
584
+ return E[K].apply(E, I);
577
585
  };
578
586
  }
579
- if ("function" === typeof G[C]) {
580
- if (-1 < ka.indexOf(C)) {
581
- throw Error("RiveException: Method call to '" + C + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
587
+ if ("function" === typeof H[K]) {
588
+ if (-1 < ka.indexOf(K)) {
589
+ throw Error("RiveException: Method call to '" + K + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
582
590
  }
583
- return function(...H) {
584
- v.H.push(G[C].bind(G, ...H));
591
+ return function(...I) {
592
+ v.I.push(H[K].bind(H, ...I));
585
593
  };
586
594
  }
587
- return J[C];
588
- }, set(J, C, H) {
589
- if (C in G) {
590
- return v.H.push(() => {
591
- G[C] = H;
595
+ return E[K];
596
+ }, set(E, K, I) {
597
+ if (K in H) {
598
+ return v.I.push(() => {
599
+ H[K] = I;
592
600
  }), !0;
593
601
  }
594
602
  },});
595
603
  };
596
- m.decodeImage = function(r, v) {
597
- (new u({ka:v})).decode(r);
604
+ m.decodeImage = function(q, v) {
605
+ (new u({la:v})).decode(q);
598
606
  };
599
607
  m.renderFactory = {makeRenderPaint:function() {
600
- return new D();
608
+ return new C();
601
609
  }, makeRenderPath:function() {
602
- return new q();
610
+ return new r();
603
611
  }, makeRenderImage:function() {
604
- let r = aa;
605
- return new u({va:() => {
606
- r.total++;
607
- }, ka:() => {
608
- r.loaded++;
609
- if (r.loaded === r.total) {
610
- const v = r.ready;
611
- v && (v(), r.ready = null);
612
+ let q = Z;
613
+ return new u({wa:() => {
614
+ q.total++;
615
+ }, la:() => {
616
+ q.loaded++;
617
+ if (q.loaded === q.total) {
618
+ const v = q.ready;
619
+ v && (v(), q.ready = null);
612
620
  }
613
621
  },});
614
622
  },};
615
- let I = m.load, aa = null;
616
- m.load = function(r, v, G = !0) {
617
- const J = new m.FallbackFileAssetLoader();
618
- void 0 !== v && J.addLoader(v);
619
- G && (v = new m.CDNFileAssetLoader(), J.addLoader(v));
620
- return new Promise(function(C) {
621
- let H = null;
622
- aa = {total:0, loaded:0, ready:function() {
623
- C(H);
623
+ let J = m.load, Z = null;
624
+ m.load = function(q, v, H = !0) {
625
+ const E = new m.FallbackFileAssetLoader();
626
+ void 0 !== v && E.addLoader(v);
627
+ H && (v = new m.CDNFileAssetLoader(), E.addLoader(v));
628
+ return new Promise(function(K) {
629
+ let I = null;
630
+ Z = {total:0, loaded:0, ready:function() {
631
+ K(I);
624
632
  },};
625
- H = I(r, J);
626
- 0 == aa.total && C(H);
633
+ I = J(q, E);
634
+ 0 == Z.total && K(I);
627
635
  });
628
636
  };
629
- let pd = m.RendererWrapper.prototype.align;
630
- m.RendererWrapper.prototype.align = function(r, v, G, J, C = 1.0) {
631
- pd.call(this, r, v, G, J, C);
637
+ let qd = m.RendererWrapper.prototype.align;
638
+ m.RendererWrapper.prototype.align = function(q, v, H, E, K = 1.0) {
639
+ qd.call(this, q, v, H, E, K);
632
640
  };
633
641
  d = new ha();
634
642
  m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
635
643
  m.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
636
- m.enableFPSCounter = d.Nb.bind(d);
637
- m.disableFPSCounter = d.Kb;
638
- d.nb = c;
644
+ m.enableFPSCounter = d.Ob.bind(d);
645
+ m.disableFPSCounter = d.Lb;
646
+ d.ob = c;
639
647
  m.resolveAnimationFrame = c;
640
648
  m.cleanup = function() {
641
649
  w && w.delete();
@@ -664,90 +672,90 @@ if (ea || fa) {
664
672
  }
665
673
  };
666
674
  }
667
- var wa = m.print || console.log.bind(console), ya = m.printErr || console.error.bind(console);
675
+ var wa = m.print || console.log.bind(console), za = m.printErr || console.error.bind(console);
668
676
  Object.assign(m, na);
669
677
  na = null;
670
678
  m.thisProgram && (oa = m.thisProgram);
671
- var za;
672
- m.wasmBinary && (za = m.wasmBinary);
673
- var Aa, Ba = !1, z, A, Ca, Da, B, E, Ga, Ha;
674
- function Ia() {
675
- var a = Aa.buffer;
679
+ var Aa;
680
+ m.wasmBinary && (Aa = m.wasmBinary);
681
+ var Ba, Ca = !1, z, A, Da, Ea, B, D, Ha, Ia;
682
+ function Ja() {
683
+ var a = Ba.buffer;
676
684
  m.HEAP8 = z = new Int8Array(a);
677
- m.HEAP16 = Ca = new Int16Array(a);
685
+ m.HEAP16 = Da = new Int16Array(a);
678
686
  m.HEAPU8 = A = new Uint8Array(a);
679
- m.HEAPU16 = Da = new Uint16Array(a);
687
+ m.HEAPU16 = Ea = new Uint16Array(a);
680
688
  m.HEAP32 = B = new Int32Array(a);
681
- m.HEAPU32 = E = new Uint32Array(a);
682
- m.HEAPF32 = Ga = new Float32Array(a);
683
- m.HEAPF64 = Ha = new Float64Array(a);
689
+ m.HEAPU32 = D = new Uint32Array(a);
690
+ m.HEAPF32 = Ha = new Float32Array(a);
691
+ m.HEAPF64 = Ia = new Float64Array(a);
684
692
  }
685
- var Ja = [], Ka = [], La = [];
686
- function Ma() {
693
+ var Ka = [], La = [], Ma = [];
694
+ function Na() {
687
695
  var a = m.preRun.shift();
688
- Ja.unshift(a);
696
+ Ka.unshift(a);
689
697
  }
690
- var Na = 0, Oa = null, Pa = null;
691
- function Qa(a) {
698
+ var Oa = 0, Pa = null, Qa = null;
699
+ function Ra(a) {
692
700
  m.onAbort?.(a);
693
701
  a = "Aborted(" + a + ")";
694
- ya(a);
695
- Ba = !0;
702
+ za(a);
703
+ Ca = !0;
696
704
  a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
697
705
  ca(a);
698
706
  throw a;
699
707
  }
700
- var Ra = a => a.startsWith("data:application/octet-stream;base64,"), va = a => a.startsWith("file://"), Sa;
701
- function Ta(a) {
702
- if (a == Sa && za) {
703
- return new Uint8Array(za);
708
+ var Sa = a => a.startsWith("data:application/octet-stream;base64,"), va = a => a.startsWith("file://"), Ta;
709
+ function Ua(a) {
710
+ if (a == Ta && Aa) {
711
+ return new Uint8Array(Aa);
704
712
  }
705
713
  if (ua) {
706
714
  return ua(a);
707
715
  }
708
716
  throw "both async and sync fetching of the wasm failed";
709
717
  }
710
- function Ua(a) {
711
- return za ? Promise.resolve().then(() => Ta(a)) : new Promise((b, c) => {
718
+ function Va(a) {
719
+ return Aa ? Promise.resolve().then(() => Ua(a)) : new Promise((b, c) => {
712
720
  ta(a, d => b(new Uint8Array(d)), () => {
713
721
  try {
714
- b(Ta(a));
722
+ b(Ua(a));
715
723
  } catch (d) {
716
724
  c(d);
717
725
  }
718
726
  });
719
727
  });
720
728
  }
721
- function Va(a, b, c) {
722
- return Ua(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
723
- ya(`failed to asynchronously prepare wasm: ${d}`);
724
- Qa(d);
729
+ function Wa(a, b, c) {
730
+ return Va(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
731
+ za(`failed to asynchronously prepare wasm: ${d}`);
732
+ Ra(d);
725
733
  });
726
734
  }
727
- function Wa(a, b) {
728
- var c = Sa;
729
- return za || "function" != typeof WebAssembly.instantiateStreaming || Ra(c) || va(c) || "function" != typeof fetch ? Va(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
730
- ya(`wasm streaming compile failed: ${e}`);
731
- ya("falling back to ArrayBuffer instantiation");
732
- return Va(c, a, b);
735
+ function Xa(a, b) {
736
+ var c = Ta;
737
+ return Aa || "function" != typeof WebAssembly.instantiateStreaming || Sa(c) || va(c) || "function" != typeof fetch ? Wa(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
738
+ za(`wasm streaming compile failed: ${e}`);
739
+ za("falling back to ArrayBuffer instantiation");
740
+ return Wa(c, a, b);
733
741
  }));
734
742
  }
735
- var Xa, Ya, bb = {489554:(a, b, c, d, e) => {
743
+ var Za, $a, db = {490114:(a, b, c, d, e) => {
736
744
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
737
745
  return 0;
738
746
  }
739
747
  if ("undefined" === typeof window.h) {
740
- window.h = {ya:0};
741
- window.h.I = {};
742
- window.h.I.wa = a;
743
- window.h.I.capture = b;
744
- window.h.I.Ja = c;
745
- window.h.fa = {};
746
- window.h.fa.stopped = d;
747
- window.h.fa.vb = e;
748
+ window.h = {za:0};
749
+ window.h.J = {};
750
+ window.h.J.xa = a;
751
+ window.h.J.capture = b;
752
+ window.h.J.Ka = c;
753
+ window.h.ga = {};
754
+ window.h.ga.stopped = d;
755
+ window.h.ga.wb = e;
748
756
  let f = window.h;
749
757
  f.D = [];
750
- f.rc = function(g) {
758
+ f.sc = function(g) {
751
759
  for (var k = 0; k < f.D.length; ++k) {
752
760
  if (null == f.D[k]) {
753
761
  return f.D[k] = g, k;
@@ -756,7 +764,7 @@ var Xa, Ya, bb = {489554:(a, b, c, d, e) => {
756
764
  f.D.push(g);
757
765
  return f.D.length - 1;
758
766
  };
759
- f.zb = function(g) {
767
+ f.Ab = function(g) {
760
768
  for (f.D[g] = null; 0 < f.D.length;) {
761
769
  if (null == f.D[f.D.length - 1]) {
762
770
  f.D.pop();
@@ -765,41 +773,41 @@ var Xa, Ya, bb = {489554:(a, b, c, d, e) => {
765
773
  }
766
774
  }
767
775
  };
768
- f.Oc = function(g) {
776
+ f.Pc = function(g) {
769
777
  for (var k = 0; k < f.D.length; ++k) {
770
778
  if (f.D[k] == g) {
771
- return f.zb(k);
779
+ return f.Ab(k);
772
780
  }
773
781
  }
774
782
  };
775
- f.pa = function(g) {
783
+ f.qa = function(g) {
776
784
  return f.D[g];
777
785
  };
778
- f.Ra = ["touchend", "click"];
786
+ f.Sa = ["touchend", "click"];
779
787
  f.unlock = function() {
780
788
  for (var g = 0; g < f.D.length; ++g) {
781
789
  var k = f.D[g];
782
- null != k && null != k.K && k.state === f.fa.vb && k.K.resume().then(() => {
783
- Za(k.ob);
790
+ null != k && null != k.L && k.state === f.ga.wb && k.L.resume().then(() => {
791
+ ab(k.pb);
784
792
  }, p => {
785
793
  console.error("Failed to resume audiocontext", p);
786
794
  });
787
795
  }
788
- f.Ra.map(function(p) {
796
+ f.Sa.map(function(p) {
789
797
  document.removeEventListener(p, f.unlock, !0);
790
798
  });
791
799
  };
792
- f.Ra.map(function(g) {
800
+ f.Sa.map(function(g) {
793
801
  document.addEventListener(g, f.unlock, !0);
794
802
  });
795
803
  }
796
- window.h.ya += 1;
804
+ window.h.za += 1;
797
805
  return 1;
798
- }, 491732:() => {
799
- "undefined" !== typeof window.h && (window.h.Ra.map(function(a) {
806
+ }, 492292:() => {
807
+ "undefined" !== typeof window.h && (window.h.Sa.map(function(a) {
800
808
  document.removeEventListener(a, window.h.unlock, !0);
801
- }), --window.h.ya, 0 === window.h.ya && delete window.h);
802
- }, 492036:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 492140:() => {
809
+ }), --window.h.za, 0 === window.h.za && delete window.h);
810
+ }, 492596:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 492700:() => {
803
811
  try {
804
812
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
805
813
  a.close();
@@ -807,33 +815,33 @@ var Xa, Ya, bb = {489554:(a, b, c, d, e) => {
807
815
  } catch (c) {
808
816
  return 0;
809
817
  }
810
- }, 492311:(a, b, c, d, e, f) => {
818
+ }, 492871:(a, b, c, d, e, f) => {
811
819
  if ("undefined" === typeof window.h) {
812
820
  return -1;
813
821
  }
814
822
  var g = {}, k = {};
815
- a == window.h.I.wa && 0 != c && (k.sampleRate = c);
816
- g.K = new (window.AudioContext || window.webkitAudioContext)(k);
817
- g.K.suspend();
818
- g.state = window.h.fa.stopped;
823
+ a == window.h.J.xa && 0 != c && (k.sampleRate = c);
824
+ g.L = new (window.AudioContext || window.webkitAudioContext)(k);
825
+ g.L.suspend();
826
+ g.state = window.h.ga.stopped;
819
827
  c = 0;
820
- a != window.h.I.wa && (c = b);
821
- g.Y = g.K.createScriptProcessor(d, c, b);
822
- g.Y.onaudioprocess = function(p) {
823
- if (null == g.qa || 0 == g.qa.length) {
824
- g.qa = new Float32Array(Ga.buffer, e, d * b);
828
+ a != window.h.J.xa && (c = b);
829
+ g.Z = g.L.createScriptProcessor(d, c, b);
830
+ g.Z.onaudioprocess = function(p) {
831
+ if (null == g.ra || 0 == g.ra.length) {
832
+ g.ra = new Float32Array(Ha.buffer, e, d * b);
825
833
  }
826
- if (a == window.h.I.capture || a == window.h.I.Ja) {
834
+ if (a == window.h.J.capture || a == window.h.J.Ka) {
827
835
  for (var n = 0; n < b; n += 1) {
828
- for (var t = p.inputBuffer.getChannelData(n), x = g.qa, y = 0; y < d; y += 1) {
836
+ for (var t = p.inputBuffer.getChannelData(n), x = g.ra, y = 0; y < d; y += 1) {
829
837
  x[y * b + n] = t[y];
830
838
  }
831
839
  }
832
- $a(f, d, e);
840
+ bb(f, d, e);
833
841
  }
834
- if (a == window.h.I.wa || a == window.h.I.Ja) {
835
- for (ab(f, d, e), n = 0; n < p.outputBuffer.numberOfChannels; ++n) {
836
- for (t = p.outputBuffer.getChannelData(n), x = g.qa, y = 0; y < d; y += 1) {
842
+ if (a == window.h.J.xa || a == window.h.J.Ka) {
843
+ for (cb(f, d, e), n = 0; n < p.outputBuffer.numberOfChannels; ++n) {
844
+ for (t = p.outputBuffer.getChannelData(n), x = g.ra, y = 0; y < d; y += 1) {
837
845
  t[y] = x[y * b + n];
838
846
  }
839
847
  }
@@ -843,45 +851,45 @@ var Xa, Ya, bb = {489554:(a, b, c, d, e) => {
843
851
  }
844
852
  }
845
853
  };
846
- a != window.h.I.capture && a != window.h.I.Ja || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
847
- g.Ba = g.K.createMediaStreamSource(p);
848
- g.Ba.connect(g.Y);
849
- g.Y.connect(g.K.destination);
854
+ a != window.h.J.capture && a != window.h.J.Ka || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
855
+ g.Ca = g.L.createMediaStreamSource(p);
856
+ g.Ca.connect(g.Z);
857
+ g.Z.connect(g.L.destination);
850
858
  }).catch(function(p) {
851
859
  console.log("Failed to get user media: " + p);
852
860
  });
853
- a == window.h.I.wa && g.Y.connect(g.K.destination);
854
- g.ob = f;
855
- return window.h.rc(g);
856
- }, 495188:a => window.h.pa(a).K.sampleRate, 495261:a => {
857
- a = window.h.pa(a);
858
- void 0 !== a.Y && (a.Y.onaudioprocess = function() {
859
- }, a.Y.disconnect(), a.Y = void 0);
860
- void 0 !== a.Ba && (a.Ba.disconnect(), a.Ba = void 0);
861
- a.K.close();
862
- a.K = void 0;
863
- a.ob = void 0;
864
- }, 495661:a => {
865
- window.h.zb(a);
866
- }, 495711:a => {
867
- a = window.h.pa(a);
868
- a.K.resume();
869
- a.state = window.h.fa.vb;
870
- }, 495850:a => {
871
- a = window.h.pa(a);
872
- a.K.suspend();
873
- a.state = window.h.fa.stopped;
874
- }}, cb = a => {
861
+ a == window.h.J.xa && g.Z.connect(g.L.destination);
862
+ g.pb = f;
863
+ return window.h.sc(g);
864
+ }, 495748:a => window.h.qa(a).L.sampleRate, 495821:a => {
865
+ a = window.h.qa(a);
866
+ void 0 !== a.Z && (a.Z.onaudioprocess = function() {
867
+ }, a.Z.disconnect(), a.Z = void 0);
868
+ void 0 !== a.Ca && (a.Ca.disconnect(), a.Ca = void 0);
869
+ a.L.close();
870
+ a.L = void 0;
871
+ a.pb = void 0;
872
+ }, 496221:a => {
873
+ window.h.Ab(a);
874
+ }, 496271:a => {
875
+ a = window.h.qa(a);
876
+ a.L.resume();
877
+ a.state = window.h.ga.wb;
878
+ }, 496410:a => {
879
+ a = window.h.qa(a);
880
+ a.L.suspend();
881
+ a.state = window.h.ga.stopped;
882
+ }}, eb = a => {
875
883
  for (; 0 < a.length;) {
876
884
  a.shift()(m);
877
885
  }
878
886
  };
879
- function db() {
880
- var a = B[+eb >> 2];
881
- eb += 4;
887
+ function fb() {
888
+ var a = B[+gb >> 2];
889
+ gb += 4;
882
890
  return a;
883
891
  }
884
- var fb = (a, b) => {
892
+ var hb = (a, b) => {
885
893
  for (var c = 0, d = a.length - 1; 0 <= d; d--) {
886
894
  var e = a[d];
887
895
  "." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
@@ -892,12 +900,12 @@ var fb = (a, b) => {
892
900
  }
893
901
  }
894
902
  return a;
895
- }, gb = a => {
903
+ }, ib = a => {
896
904
  var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
897
- (a = fb(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
905
+ (a = hb(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
898
906
  a && c && (a += "/");
899
907
  return (b ? "/" : "") + a;
900
- }, hb = a => {
908
+ }, jb = a => {
901
909
  var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
902
910
  a = b[0];
903
911
  b = b[1];
@@ -906,20 +914,20 @@ var fb = (a, b) => {
906
914
  }
907
915
  b &&= b.substr(0, b.length - 1);
908
916
  return a + b;
909
- }, ib = a => {
917
+ }, kb = a => {
910
918
  if ("/" === a) {
911
919
  return "/";
912
920
  }
913
- a = gb(a);
921
+ a = ib(a);
914
922
  a = a.replace(/\/$/, "");
915
923
  var b = a.lastIndexOf("/");
916
924
  return -1 === b ? a : a.substr(b + 1);
917
- }, jb = () => {
925
+ }, lb = () => {
918
926
  if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
919
927
  return a => crypto.getRandomValues(a);
920
928
  }
921
- Qa("initRandomDevice");
922
- }, kb = a => (kb = jb())(a), lb = (...a) => {
929
+ Ra("initRandomDevice");
930
+ }, mb = a => (mb = lb())(a), nb = (...a) => {
923
931
  for (var b = "", c = !1, d = a.length - 1; -1 <= d && !c; d--) {
924
932
  c = 0 <= d ? a[d] : "/";
925
933
  if ("string" != typeof c) {
@@ -931,15 +939,15 @@ var fb = (a, b) => {
931
939
  b = c + "/" + b;
932
940
  c = "/" === c.charAt(0);
933
941
  }
934
- b = fb(b.split("/").filter(e => !!e), !c).join("/");
942
+ b = hb(b.split("/").filter(e => !!e), !c).join("/");
935
943
  return (c ? "/" : "") + b || ".";
936
- }, mb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, nb = (a, b, c) => {
944
+ }, ob = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, pb = (a, b, c) => {
937
945
  var d = b + c;
938
946
  for (c = b; a[c] && !(c >= d);) {
939
947
  ++c;
940
948
  }
941
- if (16 < c - b && a.buffer && mb) {
942
- return mb.decode(a.subarray(b, c));
949
+ if (16 < c - b && a.buffer && ob) {
950
+ return ob.decode(a.subarray(b, c));
943
951
  }
944
952
  for (d = ""; b < c;) {
945
953
  var e = a[b++];
@@ -957,13 +965,13 @@ var fb = (a, b) => {
957
965
  }
958
966
  }
959
967
  return d;
960
- }, ob = [], pb = a => {
968
+ }, qb = [], rb = a => {
961
969
  for (var b = 0, c = 0; c < a.length; ++c) {
962
970
  var d = a.charCodeAt(c);
963
971
  127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
964
972
  }
965
973
  return b;
966
- }, qb = (a, b, c, d) => {
974
+ }, sb = (a, b, c, d) => {
967
975
  if (!(0 < d)) {
968
976
  return 0;
969
977
  }
@@ -1007,35 +1015,35 @@ var fb = (a, b) => {
1007
1015
  b[c] = 0;
1008
1016
  return c - e;
1009
1017
  };
1010
- function rb(a, b) {
1011
- var c = Array(pb(a) + 1);
1012
- a = qb(a, c, 0, c.length);
1018
+ function tb(a, b) {
1019
+ var c = Array(rb(a) + 1);
1020
+ a = sb(a, c, 0, c.length);
1013
1021
  b && (c.length = a);
1014
1022
  return c;
1015
1023
  }
1016
- var sb = [];
1017
- function tb(a, b) {
1018
- sb[a] = {input:[], G:[], V:b};
1019
- ub(a, vb);
1024
+ var ub = [];
1025
+ function vb(a, b) {
1026
+ ub[a] = {input:[], H:[], W:b};
1027
+ wb(a, xb);
1020
1028
  }
1021
- var vb = {open(a) {
1022
- var b = sb[a.node.xa];
1029
+ var xb = {open(a) {
1030
+ var b = ub[a.node.ya];
1023
1031
  if (!b) {
1024
1032
  throw new N(43);
1025
1033
  }
1026
1034
  a.s = b;
1027
1035
  a.seekable = !1;
1028
1036
  }, close(a) {
1029
- a.s.V.oa(a.s);
1030
- }, oa(a) {
1031
- a.s.V.oa(a.s);
1037
+ a.s.W.pa(a.s);
1038
+ }, pa(a) {
1039
+ a.s.W.pa(a.s);
1032
1040
  }, read(a, b, c, d) {
1033
- if (!a.s || !a.s.V.hb) {
1041
+ if (!a.s || !a.s.W.ib) {
1034
1042
  throw new N(60);
1035
1043
  }
1036
1044
  for (var e = 0, f = 0; f < d; f++) {
1037
1045
  try {
1038
- var g = a.s.V.hb(a.s);
1046
+ var g = a.s.W.ib(a.s);
1039
1047
  } catch (k) {
1040
1048
  throw new N(29);
1041
1049
  }
@@ -1051,82 +1059,82 @@ var vb = {open(a) {
1051
1059
  e && (a.node.timestamp = Date.now());
1052
1060
  return e;
1053
1061
  }, write(a, b, c, d) {
1054
- if (!a.s || !a.s.V.Ma) {
1062
+ if (!a.s || !a.s.W.Na) {
1055
1063
  throw new N(60);
1056
1064
  }
1057
1065
  try {
1058
1066
  for (var e = 0; e < d; e++) {
1059
- a.s.V.Ma(a.s, b[c + e]);
1067
+ a.s.W.Na(a.s, b[c + e]);
1060
1068
  }
1061
1069
  } catch (f) {
1062
1070
  throw new N(29);
1063
1071
  }
1064
1072
  d && (a.node.timestamp = Date.now());
1065
1073
  return e;
1066
- },}, wb = {hb() {
1074
+ },}, yb = {ib() {
1067
1075
  a: {
1068
- if (!ob.length) {
1076
+ if (!qb.length) {
1069
1077
  var a = null;
1070
1078
  "undefined" != typeof window && "function" == typeof window.prompt && (a = window.prompt("Input: "), null !== a && (a += "\n"));
1071
1079
  if (!a) {
1072
1080
  a = null;
1073
1081
  break a;
1074
1082
  }
1075
- ob = rb(a, !0);
1083
+ qb = tb(a, !0);
1076
1084
  }
1077
- a = ob.shift();
1085
+ a = qb.shift();
1078
1086
  }
1079
1087
  return a;
1080
- }, Ma(a, b) {
1081
- null === b || 10 === b ? (wa(nb(a.G, 0)), a.G = []) : 0 != b && a.G.push(b);
1082
- }, oa(a) {
1083
- a.G && 0 < a.G.length && (wa(nb(a.G, 0)), a.G = []);
1084
- }, Xb() {
1085
- return {zc:25856, Bc:5, yc:191, Ac:35387, xc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
1088
+ }, Na(a, b) {
1089
+ null === b || 10 === b ? (wa(pb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
1090
+ }, pa(a) {
1091
+ a.H && 0 < a.H.length && (wa(pb(a.H, 0)), a.H = []);
1086
1092
  }, Yb() {
1087
- return 0;
1093
+ return {Ac:25856, Cc:5, zc:191, Bc:35387, yc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
1088
1094
  }, Zb() {
1095
+ return 0;
1096
+ }, $b() {
1089
1097
  return [24, 80];
1090
- },}, xb = {Ma(a, b) {
1091
- null === b || 10 === b ? (ya(nb(a.G, 0)), a.G = []) : 0 != b && a.G.push(b);
1092
- }, oa(a) {
1093
- a.G && 0 < a.G.length && (ya(nb(a.G, 0)), a.G = []);
1098
+ },}, zb = {Na(a, b) {
1099
+ null === b || 10 === b ? (za(pb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
1100
+ }, pa(a) {
1101
+ a.H && 0 < a.H.length && (za(pb(a.H, 0)), a.H = []);
1094
1102
  },};
1095
- function yb(a, b) {
1103
+ function Ab(a, b) {
1096
1104
  var c = a.l ? a.l.length : 0;
1097
1105
  c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.l, a.l = new Uint8Array(b), 0 < a.v && a.l.set(c.subarray(0, a.v), 0));
1098
1106
  }
1099
- var O = {N:null, U() {
1107
+ var O = {O:null, V() {
1100
1108
  return O.createNode(null, "/", 16895, 0);
1101
1109
  }, createNode(a, b, c, d) {
1102
1110
  if (24576 === (c & 61440) || 4096 === (c & 61440)) {
1103
1111
  throw new N(63);
1104
1112
  }
1105
- O.N || (O.N = {dir:{node:{X:O.j.X, P:O.j.P, ja:O.j.ja, ta:O.j.ta, sb:O.j.sb, yb:O.j.yb, tb:O.j.tb, rb:O.j.rb, Ca:O.j.Ca}, stream:{aa:O.m.aa}}, file:{node:{X:O.j.X, P:O.j.P}, stream:{aa:O.m.aa, read:O.m.read, write:O.m.write, Xa:O.m.Xa, kb:O.m.kb, mb:O.m.mb}}, link:{node:{X:O.j.X, P:O.j.P, la:O.j.la}, stream:{}}, $a:{node:{X:O.j.X, P:O.j.P}, stream:zb}});
1106
- c = Ab(a, b, c, d);
1107
- 16384 === (c.mode & 61440) ? (c.j = O.N.dir.node, c.m = O.N.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = O.N.file.node, c.m = O.N.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = O.N.link.node, c.m = O.N.link.stream) : 8192 === (c.mode & 61440) && (c.j = O.N.$a.node, c.m = O.N.$a.stream);
1113
+ O.O || (O.O = {dir:{node:{Y:O.j.Y, R:O.j.R, ka:O.j.ka, ua:O.j.ua, tb:O.j.tb, zb:O.j.zb, ub:O.j.ub, sb:O.j.sb, Da:O.j.Da}, stream:{ba:O.m.ba}}, file:{node:{Y:O.j.Y, R:O.j.R}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, Ya:O.m.Ya, lb:O.m.lb, nb:O.m.nb}}, link:{node:{Y:O.j.Y, R:O.j.R, ma:O.j.ma}, stream:{}}, ab:{node:{Y:O.j.Y, R:O.j.R}, stream:Bb}});
1114
+ c = Cb(a, b, c, d);
1115
+ 16384 === (c.mode & 61440) ? (c.j = O.O.dir.node, c.m = O.O.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.j = O.O.ab.node, c.m = O.O.ab.stream);
1108
1116
  c.timestamp = Date.now();
1109
1117
  a && (a.l[b] = c, a.timestamp = c.timestamp);
1110
1118
  return c;
1111
- }, Fc(a) {
1119
+ }, Gc(a) {
1112
1120
  return a.l ? a.l.subarray ? a.l.subarray(0, a.v) : new Uint8Array(a.l) : new Uint8Array(0);
1113
- }, j:{X(a) {
1121
+ }, j:{Y(a) {
1114
1122
  var b = {};
1115
- b.Dc = 8192 === (a.mode & 61440) ? a.id : 1;
1116
- b.Hc = a.id;
1123
+ b.Ec = 8192 === (a.mode & 61440) ? a.id : 1;
1124
+ b.Ic = a.id;
1117
1125
  b.mode = a.mode;
1118
- b.Kc = 1;
1126
+ b.Lc = 1;
1119
1127
  b.uid = 0;
1120
- b.Gc = 0;
1121
- b.xa = a.xa;
1128
+ b.Hc = 0;
1129
+ b.ya = a.ya;
1122
1130
  16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.v : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
1123
- b.vc = new Date(a.timestamp);
1124
- b.Jc = new Date(a.timestamp);
1125
- b.Cc = new Date(a.timestamp);
1126
- b.Gb = 4096;
1127
- b.wc = Math.ceil(b.size / b.Gb);
1131
+ b.wc = new Date(a.timestamp);
1132
+ b.Kc = new Date(a.timestamp);
1133
+ b.Dc = new Date(a.timestamp);
1134
+ b.Hb = 4096;
1135
+ b.xc = Math.ceil(b.size / b.Hb);
1128
1136
  return b;
1129
- }, P(a, b) {
1137
+ }, R(a, b) {
1130
1138
  void 0 !== b.mode && (a.mode = b.mode);
1131
1139
  void 0 !== b.timestamp && (a.timestamp = b.timestamp);
1132
1140
  if (void 0 !== b.size && (b = b.size, a.v != b)) {
@@ -1139,14 +1147,14 @@ var O = {N:null, U() {
1139
1147
  a.v = b;
1140
1148
  }
1141
1149
  }
1142
- }, ja() {
1143
- throw Bb[44];
1144
- }, ta(a, b, c, d) {
1150
+ }, ka() {
1151
+ throw Db[44];
1152
+ }, ua(a, b, c, d) {
1145
1153
  return O.createNode(a, b, c, d);
1146
- }, sb(a, b, c) {
1154
+ }, tb(a, b, c) {
1147
1155
  if (16384 === (a.mode & 61440)) {
1148
1156
  try {
1149
- var d = Cb(b, c);
1157
+ var d = Eb(b, c);
1150
1158
  } catch (f) {
1151
1159
  }
1152
1160
  if (d) {
@@ -1160,27 +1168,27 @@ var O = {N:null, U() {
1160
1168
  a.name = c;
1161
1169
  b.l[c] = a;
1162
1170
  b.timestamp = a.parent.timestamp;
1163
- }, yb(a, b) {
1171
+ }, zb(a, b) {
1164
1172
  delete a.l[b];
1165
1173
  a.timestamp = Date.now();
1166
- }, tb(a, b) {
1167
- var c = Cb(a, b), d;
1174
+ }, ub(a, b) {
1175
+ var c = Eb(a, b), d;
1168
1176
  for (d in c.l) {
1169
1177
  throw new N(55);
1170
1178
  }
1171
1179
  delete a.l[b];
1172
1180
  a.timestamp = Date.now();
1173
- }, rb(a) {
1181
+ }, sb(a) {
1174
1182
  var b = [".", ".."], c;
1175
1183
  for (c of Object.keys(a.l)) {
1176
1184
  b.push(c);
1177
1185
  }
1178
1186
  return b;
1179
- }, Ca(a, b, c) {
1187
+ }, Da(a, b, c) {
1180
1188
  a = O.createNode(a, b, 41471, 0);
1181
1189
  a.link = c;
1182
1190
  return a;
1183
- }, la(a) {
1191
+ }, ma(a) {
1184
1192
  if (40960 !== (a.mode & 61440)) {
1185
1193
  throw new N(28);
1186
1194
  }
@@ -1217,7 +1225,7 @@ var O = {N:null, U() {
1217
1225
  return a.l.set(b.subarray(c, c + d), e), d;
1218
1226
  }
1219
1227
  }
1220
- yb(a, e + d);
1228
+ Ab(a, e + d);
1221
1229
  if (a.l.subarray && b.subarray) {
1222
1230
  a.l.set(b.subarray(c, c + d), e);
1223
1231
  } else {
@@ -1227,16 +1235,16 @@ var O = {N:null, U() {
1227
1235
  }
1228
1236
  a.v = Math.max(a.v, e + d);
1229
1237
  return d;
1230
- }, aa(a, b, c) {
1238
+ }, ba(a, b, c) {
1231
1239
  1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
1232
1240
  if (0 > b) {
1233
1241
  throw new N(28);
1234
1242
  }
1235
1243
  return b;
1236
- }, Xa(a, b, c) {
1237
- yb(a.node, b + c);
1244
+ }, Ya(a, b, c) {
1245
+ Ab(a.node, b + c);
1238
1246
  a.node.v = Math.max(a.node.v, b + c);
1239
- }, kb(a, b, c, d, e) {
1247
+ }, lb(a, b, c, d, e) {
1240
1248
  if (32768 !== (a.node.mode & 61440)) {
1241
1249
  throw new N(43);
1242
1250
  }
@@ -1246,7 +1254,7 @@ var O = {N:null, U() {
1246
1254
  a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
1247
1255
  }
1248
1256
  c = !0;
1249
- Qa();
1257
+ Ra();
1250
1258
  b = void 0;
1251
1259
  if (!b) {
1252
1260
  throw new N(48);
@@ -1255,21 +1263,21 @@ var O = {N:null, U() {
1255
1263
  } else {
1256
1264
  c = !1, b = a.byteOffset;
1257
1265
  }
1258
- return {o:b, uc:c};
1259
- }, mb(a, b, c, d) {
1266
+ return {o:b, vc:c};
1267
+ }, nb(a, b, c, d) {
1260
1268
  O.m.write(a, b, 0, d, c, !1);
1261
1269
  return 0;
1262
- },},}, Db = (a, b) => {
1270
+ },},}, Fb = (a, b) => {
1263
1271
  var c = 0;
1264
1272
  a && (c |= 365);
1265
1273
  b && (c |= 146);
1266
1274
  return c;
1267
- }, Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, N = class {
1275
+ }, Gb = null, Hb = {}, Ib = [], Jb = 1, Kb = null, Lb = !0, N = class {
1268
1276
  constructor(a) {
1269
1277
  this.name = "ErrnoError";
1270
- this.$ = a;
1278
+ this.aa = a;
1271
1279
  }
1272
- }, Bb = {}, Kb = class {
1280
+ }, Db = {}, Mb = class {
1273
1281
  constructor() {
1274
1282
  this.h = {};
1275
1283
  this.node = null;
@@ -1286,18 +1294,18 @@ var O = {N:null, U() {
1286
1294
  set position(a) {
1287
1295
  this.h.position = a;
1288
1296
  }
1289
- }, Lb = class {
1297
+ }, Nb = class {
1290
1298
  constructor(a, b, c, d) {
1291
1299
  a ||= this;
1292
1300
  this.parent = a;
1293
- this.U = a.U;
1294
- this.ua = null;
1295
- this.id = Hb++;
1301
+ this.V = a.V;
1302
+ this.va = null;
1303
+ this.id = Jb++;
1296
1304
  this.name = b;
1297
1305
  this.mode = c;
1298
1306
  this.j = {};
1299
1307
  this.m = {};
1300
- this.xa = d;
1308
+ this.ya = d;
1301
1309
  }
1302
1310
  get read() {
1303
1311
  return 365 === (this.mode & 365);
@@ -1312,27 +1320,27 @@ var O = {N:null, U() {
1312
1320
  a ? this.mode |= 146 : this.mode &= -147;
1313
1321
  }
1314
1322
  };
1315
- function Mb(a, b = {}) {
1316
- a = lb(a);
1323
+ function Ob(a, b = {}) {
1324
+ a = nb(a);
1317
1325
  if (!a) {
1318
1326
  return {path:"", node:null};
1319
1327
  }
1320
- b = Object.assign({gb:!0, Oa:0}, b);
1321
- if (8 < b.Oa) {
1328
+ b = Object.assign({hb:!0, Pa:0}, b);
1329
+ if (8 < b.Pa) {
1322
1330
  throw new N(32);
1323
1331
  }
1324
1332
  a = a.split("/").filter(g => !!g);
1325
- for (var c = Eb, d = "/", e = 0; e < a.length; e++) {
1333
+ for (var c = Gb, d = "/", e = 0; e < a.length; e++) {
1326
1334
  var f = e === a.length - 1;
1327
1335
  if (f && b.parent) {
1328
1336
  break;
1329
1337
  }
1330
- c = Cb(c, a[e]);
1331
- d = gb(d + "/" + a[e]);
1332
- c.ua && (!f || f && b.gb) && (c = c.ua.root);
1333
- if (!f || b.fb) {
1338
+ c = Eb(c, a[e]);
1339
+ d = ib(d + "/" + a[e]);
1340
+ c.va && (!f || f && b.hb) && (c = c.va.root);
1341
+ if (!f || b.gb) {
1334
1342
  for (f = 0; 40960 === (c.mode & 61440);) {
1335
- if (c = Nb(d), d = lb(hb(d), c), c = Mb(d, {Oa:b.Oa + 1}).node, 40 < f++) {
1343
+ if (c = Pb(d), d = nb(jb(d), c), c = Ob(d, {Pa:b.Pa + 1}).node, 40 < f++) {
1336
1344
  throw new N(32);
1337
1345
  }
1338
1346
  }
@@ -1340,47 +1348,47 @@ function Mb(a, b = {}) {
1340
1348
  }
1341
1349
  return {path:d, node:c};
1342
1350
  }
1343
- function Ob(a) {
1351
+ function Qb(a) {
1344
1352
  for (var b;;) {
1345
1353
  if (a === a.parent) {
1346
- return a = a.U.lb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
1354
+ return a = a.V.mb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
1347
1355
  }
1348
1356
  b = b ? `${a.name}/${b}` : a.name;
1349
1357
  a = a.parent;
1350
1358
  }
1351
1359
  }
1352
- function Pb(a, b) {
1360
+ function Rb(a, b) {
1353
1361
  for (var c = 0, d = 0; d < b.length; d++) {
1354
1362
  c = (c << 5) - c + b.charCodeAt(d) | 0;
1355
1363
  }
1356
- return (a + c >>> 0) % Ib.length;
1364
+ return (a + c >>> 0) % Kb.length;
1357
1365
  }
1358
- function Cb(a, b) {
1359
- var c = 16384 === (a.mode & 61440) ? (c = Qb(a, "x")) ? c : a.j.ja ? 0 : 2 : 54;
1366
+ function Eb(a, b) {
1367
+ var c = 16384 === (a.mode & 61440) ? (c = Sb(a, "x")) ? c : a.j.ka ? 0 : 2 : 54;
1360
1368
  if (c) {
1361
1369
  throw new N(c);
1362
1370
  }
1363
- for (c = Ib[Pb(a.id, b)]; c; c = c.ec) {
1371
+ for (c = Kb[Rb(a.id, b)]; c; c = c.fc) {
1364
1372
  var d = c.name;
1365
1373
  if (c.parent.id === a.id && d === b) {
1366
1374
  return c;
1367
1375
  }
1368
1376
  }
1369
- return a.j.ja(a, b);
1377
+ return a.j.ka(a, b);
1370
1378
  }
1371
- function Ab(a, b, c, d) {
1372
- a = new Lb(a, b, c, d);
1373
- b = Pb(a.parent.id, a.name);
1374
- a.ec = Ib[b];
1375
- return Ib[b] = a;
1379
+ function Cb(a, b, c, d) {
1380
+ a = new Nb(a, b, c, d);
1381
+ b = Rb(a.parent.id, a.name);
1382
+ a.fc = Kb[b];
1383
+ return Kb[b] = a;
1376
1384
  }
1377
- function Rb(a) {
1385
+ function Tb(a) {
1378
1386
  var b = ["r", "w", "rw"][a & 3];
1379
1387
  a & 512 && (b += "w");
1380
1388
  return b;
1381
1389
  }
1382
- function Qb(a, b) {
1383
- if (Jb) {
1390
+ function Sb(a, b) {
1391
+ if (Lb) {
1384
1392
  return 0;
1385
1393
  }
1386
1394
  if (!b.includes("r") || a.mode & 292) {
@@ -1392,120 +1400,120 @@ function Qb(a, b) {
1392
1400
  }
1393
1401
  return 0;
1394
1402
  }
1395
- function Sb(a, b) {
1403
+ function Ub(a, b) {
1396
1404
  try {
1397
- return Cb(a, b), 20;
1405
+ return Eb(a, b), 20;
1398
1406
  } catch (c) {
1399
1407
  }
1400
- return Qb(a, "wx");
1408
+ return Sb(a, "wx");
1401
1409
  }
1402
- function Tb(a) {
1403
- a = Gb[a];
1410
+ function Vb(a) {
1411
+ a = Ib[a];
1404
1412
  if (!a) {
1405
1413
  throw new N(8);
1406
1414
  }
1407
1415
  return a;
1408
1416
  }
1409
- function Ub(a, b = -1) {
1410
- a = Object.assign(new Kb(), a);
1417
+ function Wb(a, b = -1) {
1418
+ a = Object.assign(new Mb(), a);
1411
1419
  if (-1 == b) {
1412
1420
  a: {
1413
1421
  for (b = 0; 4096 >= b; b++) {
1414
- if (!Gb[b]) {
1422
+ if (!Ib[b]) {
1415
1423
  break a;
1416
1424
  }
1417
1425
  }
1418
1426
  throw new N(33);
1419
1427
  }
1420
1428
  }
1421
- a.W = b;
1422
- return Gb[b] = a;
1429
+ a.X = b;
1430
+ return Ib[b] = a;
1423
1431
  }
1424
- function Vb(a, b = -1) {
1425
- a = Ub(a, b);
1426
- a.m?.Ec?.(a);
1432
+ function Xb(a, b = -1) {
1433
+ a = Wb(a, b);
1434
+ a.m?.Fc?.(a);
1427
1435
  return a;
1428
1436
  }
1429
- var zb = {open(a) {
1430
- a.m = Fb[a.node.xa].m;
1437
+ var Bb = {open(a) {
1438
+ a.m = Hb[a.node.ya].m;
1431
1439
  a.m.open?.(a);
1432
- }, aa() {
1440
+ }, ba() {
1433
1441
  throw new N(70);
1434
1442
  },};
1435
- function ub(a, b) {
1436
- Fb[a] = {m:b};
1443
+ function wb(a, b) {
1444
+ Hb[a] = {m:b};
1437
1445
  }
1438
- function Wb(a, b) {
1446
+ function Yb(a, b) {
1439
1447
  var c = "/" === b;
1440
- if (c && Eb) {
1448
+ if (c && Gb) {
1441
1449
  throw new N(10);
1442
1450
  }
1443
1451
  if (!c && b) {
1444
- var d = Mb(b, {gb:!1});
1452
+ var d = Ob(b, {hb:!1});
1445
1453
  b = d.path;
1446
1454
  d = d.node;
1447
- if (d.ua) {
1455
+ if (d.va) {
1448
1456
  throw new N(10);
1449
1457
  }
1450
1458
  if (16384 !== (d.mode & 61440)) {
1451
1459
  throw new N(54);
1452
1460
  }
1453
1461
  }
1454
- b = {type:a, Mc:{}, lb:b, dc:[]};
1455
- a = a.U(b);
1456
- a.U = b;
1462
+ b = {type:a, Nc:{}, mb:b, ec:[]};
1463
+ a = a.V(b);
1464
+ a.V = b;
1457
1465
  b.root = a;
1458
- c ? Eb = a : d && (d.ua = b, d.U && d.U.dc.push(b));
1466
+ c ? Gb = a : d && (d.va = b, d.V && d.V.ec.push(b));
1459
1467
  }
1460
- function Xb(a, b, c) {
1461
- var d = Mb(a, {parent:!0}).node;
1462
- a = ib(a);
1468
+ function Zb(a, b, c) {
1469
+ var d = Ob(a, {parent:!0}).node;
1470
+ a = kb(a);
1463
1471
  if (!a || "." === a || ".." === a) {
1464
1472
  throw new N(28);
1465
1473
  }
1466
- var e = Sb(d, a);
1474
+ var e = Ub(d, a);
1467
1475
  if (e) {
1468
1476
  throw new N(e);
1469
1477
  }
1470
- if (!d.j.ta) {
1478
+ if (!d.j.ua) {
1471
1479
  throw new N(63);
1472
1480
  }
1473
- return d.j.ta(d, a, b, c);
1481
+ return d.j.ua(d, a, b, c);
1474
1482
  }
1475
1483
  function cc(a) {
1476
- return Xb(a, 16895, 0);
1484
+ return Zb(a, 16895, 0);
1477
1485
  }
1478
1486
  function dc(a, b, c) {
1479
1487
  "undefined" == typeof c && (c = b, b = 438);
1480
- Xb(a, b | 8192, c);
1488
+ Zb(a, b | 8192, c);
1481
1489
  }
1482
1490
  function ec(a, b) {
1483
- if (!lb(a)) {
1491
+ if (!nb(a)) {
1484
1492
  throw new N(44);
1485
1493
  }
1486
- var c = Mb(b, {parent:!0}).node;
1494
+ var c = Ob(b, {parent:!0}).node;
1487
1495
  if (!c) {
1488
1496
  throw new N(44);
1489
1497
  }
1490
- b = ib(b);
1491
- var d = Sb(c, b);
1498
+ b = kb(b);
1499
+ var d = Ub(c, b);
1492
1500
  if (d) {
1493
1501
  throw new N(d);
1494
1502
  }
1495
- if (!c.j.Ca) {
1503
+ if (!c.j.Da) {
1496
1504
  throw new N(63);
1497
1505
  }
1498
- c.j.Ca(c, b, a);
1506
+ c.j.Da(c, b, a);
1499
1507
  }
1500
- function Nb(a) {
1501
- a = Mb(a).node;
1508
+ function Pb(a) {
1509
+ a = Ob(a).node;
1502
1510
  if (!a) {
1503
1511
  throw new N(44);
1504
1512
  }
1505
- if (!a.j.la) {
1513
+ if (!a.j.ma) {
1506
1514
  throw new N(28);
1507
1515
  }
1508
- return lb(Ob(a.parent), a.j.la(a));
1516
+ return nb(Qb(a.parent), a.j.ma(a));
1509
1517
  }
1510
1518
  function fc(a, b, c) {
1511
1519
  if ("" === a) {
@@ -1522,9 +1530,9 @@ function fc(a, b, c) {
1522
1530
  if ("object" == typeof a) {
1523
1531
  var e = a;
1524
1532
  } else {
1525
- a = gb(a);
1533
+ a = ib(a);
1526
1534
  try {
1527
- e = Mb(a, {fb:!(b & 131072)}).node;
1535
+ e = Ob(a, {gb:!(b & 131072)}).node;
1528
1536
  } catch (f) {
1529
1537
  }
1530
1538
  }
@@ -1535,7 +1543,7 @@ function fc(a, b, c) {
1535
1543
  throw new N(20);
1536
1544
  }
1537
1545
  } else {
1538
- e = Xb(a, c, 0), d = !0;
1546
+ e = Zb(a, c, 0), d = !0;
1539
1547
  }
1540
1548
  }
1541
1549
  if (!e) {
@@ -1545,13 +1553,13 @@ function fc(a, b, c) {
1545
1553
  if (b & 65536 && 16384 !== (e.mode & 61440)) {
1546
1554
  throw new N(54);
1547
1555
  }
1548
- if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Rb(b) || b & 512) ? 31 : Qb(e, Rb(b)) : 44)) {
1556
+ if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Tb(b) || b & 512) ? 31 : Sb(e, Tb(b)) : 44)) {
1549
1557
  throw new N(c);
1550
1558
  }
1551
1559
  if (b & 512 && !d) {
1552
1560
  c = e;
1553
- c = "string" == typeof c ? Mb(c, {fb:!0}).node : c;
1554
- if (!c.j.P) {
1561
+ c = "string" == typeof c ? Ob(c, {gb:!0}).node : c;
1562
+ if (!c.j.R) {
1555
1563
  throw new N(63);
1556
1564
  }
1557
1565
  if (16384 === (c.mode & 61440)) {
@@ -1560,37 +1568,37 @@ function fc(a, b, c) {
1560
1568
  if (32768 !== (c.mode & 61440)) {
1561
1569
  throw new N(28);
1562
1570
  }
1563
- if (d = Qb(c, "w")) {
1571
+ if (d = Sb(c, "w")) {
1564
1572
  throw new N(d);
1565
1573
  }
1566
- c.j.P(c, {size:0, timestamp:Date.now()});
1574
+ c.j.R(c, {size:0, timestamp:Date.now()});
1567
1575
  }
1568
1576
  b &= -131713;
1569
- e = Ub({node:e, path:Ob(e), flags:b, seekable:!0, position:0, m:e.m, sc:[], error:!1});
1577
+ e = Wb({node:e, path:Qb(e), flags:b, seekable:!0, position:0, m:e.m, tc:[], error:!1});
1570
1578
  e.m.open && e.m.open(e);
1571
1579
  !m.logReadFiles || b & 1 || (gc ||= {}, a in gc || (gc[a] = 1));
1572
1580
  return e;
1573
1581
  }
1574
1582
  function hc(a, b, c) {
1575
- if (null === a.W) {
1583
+ if (null === a.X) {
1576
1584
  throw new N(8);
1577
1585
  }
1578
- if (!a.seekable || !a.m.aa) {
1586
+ if (!a.seekable || !a.m.ba) {
1579
1587
  throw new N(70);
1580
1588
  }
1581
1589
  if (0 != c && 1 != c && 2 != c) {
1582
1590
  throw new N(28);
1583
1591
  }
1584
- a.position = a.m.aa(a, b, c);
1585
- a.sc = [];
1592
+ a.position = a.m.ba(a, b, c);
1593
+ a.tc = [];
1586
1594
  }
1587
1595
  var ic;
1588
1596
  function jc(a, b, c) {
1589
- a = gb("/dev/" + a);
1590
- var d = Db(!!b, !!c);
1597
+ a = ib("/dev/" + a);
1598
+ var d = Fb(!!b, !!c);
1591
1599
  kc ||= 64;
1592
1600
  var e = kc++ << 8 | 0;
1593
- ub(e, {open(f) {
1601
+ wb(e, {open(f) {
1594
1602
  f.seekable = !1;
1595
1603
  }, close() {
1596
1604
  c?.buffer?.length && c(10);
@@ -1625,7 +1633,7 @@ function jc(a, b, c) {
1625
1633
  }});
1626
1634
  dc(a, d, e);
1627
1635
  }
1628
- var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name", {value:a}), nc = [], oc = [], P, pc = a => {
1636
+ var kc, lc = {}, gc, gb = void 0, mc = (a, b) => Object.defineProperty(b, "name", {value:a}), nc = [], oc = [], P, pc = a => {
1629
1637
  if (!a) {
1630
1638
  throw new P("Cannot use deleted val. handle = " + a);
1631
1639
  }
@@ -1667,7 +1675,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
1667
1675
  }, uc = [], vc = () => {
1668
1676
  for (; uc.length;) {
1669
1677
  var a = uc.pop();
1670
- a.g.ea = !1;
1678
+ a.g.fa = !1;
1671
1679
  a["delete"]();
1672
1680
  }
1673
1681
  }, wc, xc = {}, yc = (a, b) => {
@@ -1675,7 +1683,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
1675
1683
  throw new P("ptr should not be undefined");
1676
1684
  }
1677
1685
  for (; a.C;) {
1678
- b = a.ma(b), a = a.C;
1686
+ b = a.na(b), a = a.C;
1679
1687
  }
1680
1688
  return b;
1681
1689
  }, zc = {}, Cc = a => {
@@ -1698,7 +1706,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
1698
1706
  return null;
1699
1707
  }
1700
1708
  a = Gc(a, b, c.C);
1701
- return null === a ? null : c.Lb(a);
1709
+ return null === a ? null : c.Mb(a);
1702
1710
  }, Hc = {}, Ic = (a, b) => {
1703
1711
  b = yc(a, b);
1704
1712
  return xc[b];
@@ -1706,7 +1714,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
1706
1714
  if (!b.u || !b.o) {
1707
1715
  throw new Jc("makeClassHandle requires ptr and ptrType");
1708
1716
  }
1709
- if (!!b.J !== !!b.F) {
1717
+ if (!!b.K !== !!b.F) {
1710
1718
  throw new Jc("Both smartPtrType and smartPtr must be specified");
1711
1719
  }
1712
1720
  b.count = {value:1};
@@ -1718,7 +1726,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
1718
1726
  Fc = new FinalizationRegistry(b => {
1719
1727
  b = b.g;
1720
1728
  --b.count.value;
1721
- 0 === b.count.value && (b.F ? b.J.O(b.F) : b.u.i.O(b.o));
1729
+ 0 === b.count.value && (b.F ? b.K.P(b.F) : b.u.i.P(b.o));
1722
1730
  });
1723
1731
  Kc = b => {
1724
1732
  var c = b.g;
@@ -1736,7 +1744,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
1736
1744
  }
1737
1745
  };
1738
1746
  function Oc(a) {
1739
- return this.fromWireType(E[a >> 2]);
1747
+ return this.fromWireType(D[a >> 2]);
1740
1748
  }
1741
1749
  var Pc = {}, Qc = {}, U = (a, b, c) => {
1742
1750
  function d(k) {
@@ -1767,7 +1775,7 @@ function Sc(a, b, c = {}) {
1767
1775
  throw new P(`type "${d}" must have a positive integer typeid pointer`);
1768
1776
  }
1769
1777
  if (zc.hasOwnProperty(a)) {
1770
- if (c.Vb) {
1778
+ if (c.Wb) {
1771
1779
  return;
1772
1780
  }
1773
1781
  throw new P(`Cannot register type '${d}' twice`);
@@ -1797,7 +1805,7 @@ var Vc = (a, b, c) => {
1797
1805
  return a[b].A[e.length].apply(this, e);
1798
1806
  };
1799
1807
  a[b].A = [];
1800
- a[b].A[d.da] = d;
1808
+ a[b].A[d.ea] = d;
1801
1809
  }
1802
1810
  }, Wc = (a, b, c) => {
1803
1811
  if (m.hasOwnProperty(a)) {
@@ -1810,7 +1818,7 @@ var Vc = (a, b, c) => {
1810
1818
  }
1811
1819
  m[a].A[c] = b;
1812
1820
  } else {
1813
- m[a] = b, void 0 !== c && (m[a].Lc = c);
1821
+ m[a] = b, void 0 !== c && (m[a].Mc = c);
1814
1822
  }
1815
1823
  }, Xc = a => {
1816
1824
  if (void 0 === a) {
@@ -1823,27 +1831,27 @@ var Vc = (a, b, c) => {
1823
1831
  function Yc(a, b, c, d, e, f, g, k) {
1824
1832
  this.name = a;
1825
1833
  this.constructor = b;
1826
- this.M = c;
1827
- this.O = d;
1834
+ this.N = c;
1835
+ this.P = d;
1828
1836
  this.C = e;
1829
- this.Qb = f;
1830
- this.ma = g;
1831
- this.Lb = k;
1832
- this.pb = [];
1837
+ this.Rb = f;
1838
+ this.na = g;
1839
+ this.Mb = k;
1840
+ this.qb = [];
1833
1841
  }
1834
1842
  var Zc = (a, b, c) => {
1835
1843
  for (; b !== c;) {
1836
- if (!b.ma) {
1844
+ if (!b.na) {
1837
1845
  throw new P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
1838
1846
  }
1839
- a = b.ma(a);
1847
+ a = b.na(a);
1840
1848
  b = b.C;
1841
1849
  }
1842
1850
  return a;
1843
1851
  };
1844
1852
  function $c(a, b) {
1845
1853
  if (null === b) {
1846
- if (this.La) {
1854
+ if (this.Ma) {
1847
1855
  throw new P(`null is not a valid ${this.name}`);
1848
1856
  }
1849
1857
  return 0;
@@ -1858,12 +1866,12 @@ function $c(a, b) {
1858
1866
  }
1859
1867
  function bd(a, b) {
1860
1868
  if (null === b) {
1861
- if (this.La) {
1869
+ if (this.Ma) {
1862
1870
  throw new P(`null is not a valid ${this.name}`);
1863
1871
  }
1864
- if (this.sa) {
1865
- var c = this.Na();
1866
- null !== a && a.push(this.O, c);
1872
+ if (this.ta) {
1873
+ var c = this.Oa();
1874
+ null !== a && a.push(this.P, c);
1867
1875
  return c;
1868
1876
  }
1869
1877
  return 0;
@@ -1874,32 +1882,32 @@ function bd(a, b) {
1874
1882
  if (!b.g.o) {
1875
1883
  throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
1876
1884
  }
1877
- if (!this.ra && b.g.u.ra) {
1878
- throw new P(`Cannot convert argument of type ${b.g.J ? b.g.J.name : b.g.u.name} to parameter type ${this.name}`);
1885
+ if (!this.sa && b.g.u.sa) {
1886
+ throw new P(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
1879
1887
  }
1880
1888
  c = Zc(b.g.o, b.g.u.i, this.i);
1881
- if (this.sa) {
1889
+ if (this.ta) {
1882
1890
  if (void 0 === b.g.F) {
1883
1891
  throw new P("Passing raw pointer to smart pointer is illegal");
1884
1892
  }
1885
- switch(this.mc) {
1893
+ switch(this.nc) {
1886
1894
  case 0:
1887
- if (b.g.J === this) {
1895
+ if (b.g.K === this) {
1888
1896
  c = b.g.F;
1889
1897
  } else {
1890
- throw new P(`Cannot convert argument of type ${b.g.J ? b.g.J.name : b.g.u.name} to parameter type ${this.name}`);
1898
+ throw new P(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
1891
1899
  }
1892
1900
  break;
1893
1901
  case 1:
1894
1902
  c = b.g.F;
1895
1903
  break;
1896
1904
  case 2:
1897
- if (b.g.J === this) {
1905
+ if (b.g.K === this) {
1898
1906
  c = b.g.F;
1899
1907
  } else {
1900
1908
  var d = b.clone();
1901
- c = this.ic(c, qc(() => d["delete"]()));
1902
- null !== a && a.push(this.O, c);
1909
+ c = this.jc(c, qc(() => d["delete"]()));
1910
+ null !== a && a.push(this.P, c);
1903
1911
  }
1904
1912
  break;
1905
1913
  default:
@@ -1910,7 +1918,7 @@ function bd(a, b) {
1910
1918
  }
1911
1919
  function cd(a, b) {
1912
1920
  if (null === b) {
1913
- if (this.La) {
1921
+ if (this.Ma) {
1914
1922
  throw new P(`null is not a valid ${this.name}`);
1915
1923
  }
1916
1924
  return 0;
@@ -1921,7 +1929,7 @@ function cd(a, b) {
1921
1929
  if (!b.g.o) {
1922
1930
  throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
1923
1931
  }
1924
- if (b.g.u.ra) {
1932
+ if (b.g.u.sa) {
1925
1933
  throw new P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
1926
1934
  }
1927
1935
  return Zc(b.g.o, b.g.u.i, this.i);
@@ -1929,22 +1937,22 @@ function cd(a, b) {
1929
1937
  function dd(a, b, c, d, e, f, g, k, p, n, t) {
1930
1938
  this.name = a;
1931
1939
  this.i = b;
1932
- this.La = c;
1933
- this.ra = d;
1934
- this.sa = e;
1935
- this.hc = f;
1936
- this.mc = g;
1937
- this.qb = k;
1938
- this.Na = p;
1939
- this.ic = n;
1940
- this.O = t;
1941
- e || void 0 !== b.C ? this.toWireType = bd : (this.toWireType = d ? $c : cd, this.L = null);
1940
+ this.Ma = c;
1941
+ this.sa = d;
1942
+ this.ta = e;
1943
+ this.ic = f;
1944
+ this.nc = g;
1945
+ this.rb = k;
1946
+ this.Oa = p;
1947
+ this.jc = n;
1948
+ this.P = t;
1949
+ e || void 0 !== b.C ? this.toWireType = bd : (this.toWireType = d ? $c : cd, this.M = null);
1942
1950
  }
1943
1951
  var ed = (a, b, c) => {
1944
1952
  if (!m.hasOwnProperty(a)) {
1945
1953
  throw new Jc("Replacing nonexistent public symbol");
1946
1954
  }
1947
- void 0 !== m[a].A && void 0 !== c ? m[a].A[c] = b : (m[a] = b, m[a].da = c);
1955
+ void 0 !== m[a].A && void 0 !== c ? m[a].A[c] = b : (m[a] = b, m[a].ea = c);
1948
1956
  }, fd = [], gd, hd = a => {
1949
1957
  var b = fd[a];
1950
1958
  b || (a >= fd.length && (fd.length = a + 1), fd[a] = b = gd.get(a));
@@ -1969,13 +1977,13 @@ var ed = (a, b, c) => {
1969
1977
  };
1970
1978
  function nd(a) {
1971
1979
  for (var b = 1; b < a.length; ++b) {
1972
- if (null !== a[b] && void 0 === a[b].L) {
1980
+ if (null !== a[b] && void 0 === a[b].M) {
1973
1981
  return !0;
1974
1982
  }
1975
1983
  }
1976
1984
  return !1;
1977
1985
  }
1978
- function qd(a, b, c, d, e) {
1986
+ function rd(a, b, c, d, e) {
1979
1987
  var f = b.length;
1980
1988
  if (2 > f) {
1981
1989
  throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
@@ -1992,32 +2000,32 @@ function qd(a, b, c, d, e) {
1992
2000
  var u = b[1].toWireType(y, this);
1993
2001
  x[1] = u;
1994
2002
  }
1995
- for (var q = 0; q < n; ++q) {
1996
- t[q] = b[q + 2].toWireType(y, l[q]), x.push(t[q]);
2003
+ for (var r = 0; r < n; ++r) {
2004
+ t[r] = b[r + 2].toWireType(y, l[r]), x.push(t[r]);
1997
2005
  }
1998
2006
  l = d(...x);
1999
2007
  if (k) {
2000
2008
  Nc(y);
2001
2009
  } else {
2002
- for (q = g ? 1 : 2; q < b.length; q++) {
2003
- var D = 1 === q ? u : t[q - 2];
2004
- null !== b[q].L && b[q].L(D);
2010
+ for (r = g ? 1 : 2; r < b.length; r++) {
2011
+ var C = 1 === r ? u : t[r - 2];
2012
+ null !== b[r].M && b[r].M(C);
2005
2013
  }
2006
2014
  }
2007
2015
  u = p ? b[0].fromWireType(l) : void 0;
2008
2016
  return u;
2009
2017
  });
2010
2018
  }
2011
- var rd = (a, b) => {
2019
+ var sd = (a, b) => {
2012
2020
  for (var c = [], d = 0; d < a; d++) {
2013
- c.push(E[b + 4 * d >> 2]);
2021
+ c.push(D[b + 4 * d >> 2]);
2014
2022
  }
2015
2023
  return c;
2016
- }, sd = a => {
2024
+ }, td = a => {
2017
2025
  a = a.trim();
2018
2026
  const b = a.indexOf("(");
2019
2027
  return -1 !== b ? a.substr(0, b) : a;
2020
- }, td = (a, b, c) => {
2028
+ }, ud = (a, b, c) => {
2021
2029
  if (!(a instanceof Object)) {
2022
2030
  throw new P(`${c} with invalid "this": ${a}`);
2023
2031
  }
@@ -2028,13 +2036,13 @@ var rd = (a, b) => {
2028
2036
  throw new P(`cannot call emscripten binding method ${c} on deleted object`);
2029
2037
  }
2030
2038
  return Zc(a.g.o, a.g.u.i, b.i);
2031
- }, ud = a => {
2039
+ }, vd = a => {
2032
2040
  9 < a && 0 === --oc[a + 1] && (oc[a] = void 0, nc.push(a));
2033
- }, vd = {name:"emscripten::val", fromWireType:a => {
2041
+ }, wd = {name:"emscripten::val", fromWireType:a => {
2034
2042
  var b = pc(a);
2035
- ud(a);
2043
+ vd(a);
2036
2044
  return b;
2037
- }, toWireType:(a, b) => qc(b), argPackAdvance:8, readValueFromPointer:Oc, L:null,}, wd = (a, b, c) => {
2045
+ }, toWireType:(a, b) => qc(b), argPackAdvance:8, readValueFromPointer:Oc, M:null,}, xd = (a, b, c) => {
2038
2046
  switch(b) {
2039
2047
  case 1:
2040
2048
  return c ? function(d) {
@@ -2044,15 +2052,15 @@ var rd = (a, b) => {
2044
2052
  };
2045
2053
  case 2:
2046
2054
  return c ? function(d) {
2047
- return this.fromWireType(Ca[d >> 1]);
2048
- } : function(d) {
2049
2055
  return this.fromWireType(Da[d >> 1]);
2056
+ } : function(d) {
2057
+ return this.fromWireType(Ea[d >> 1]);
2050
2058
  };
2051
2059
  case 4:
2052
2060
  return c ? function(d) {
2053
2061
  return this.fromWireType(B[d >> 2]);
2054
2062
  } : function(d) {
2055
- return this.fromWireType(E[d >> 2]);
2063
+ return this.fromWireType(D[d >> 2]);
2056
2064
  };
2057
2065
  default:
2058
2066
  throw new TypeError(`invalid integer width (${b}): ${a}`);
@@ -2063,49 +2071,49 @@ var rd = (a, b) => {
2063
2071
  }
2064
2072
  var b = typeof a;
2065
2073
  return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
2066
- }, xd = (a, b) => {
2074
+ }, yd = (a, b) => {
2067
2075
  switch(b) {
2068
2076
  case 4:
2069
2077
  return function(c) {
2070
- return this.fromWireType(Ga[c >> 2]);
2078
+ return this.fromWireType(Ha[c >> 2]);
2071
2079
  };
2072
2080
  case 8:
2073
2081
  return function(c) {
2074
- return this.fromWireType(Ha[c >> 3]);
2082
+ return this.fromWireType(Ia[c >> 3]);
2075
2083
  };
2076
2084
  default:
2077
2085
  throw new TypeError(`invalid float width (${b}): ${a}`);
2078
2086
  }
2079
- }, yd = (a, b, c) => {
2087
+ }, zd = (a, b, c) => {
2080
2088
  switch(b) {
2081
2089
  case 1:
2082
2090
  return c ? d => z[d] : d => A[d];
2083
2091
  case 2:
2084
- return c ? d => Ca[d >> 1] : d => Da[d >> 1];
2092
+ return c ? d => Da[d >> 1] : d => Ea[d >> 1];
2085
2093
  case 4:
2086
- return c ? d => B[d >> 2] : d => E[d >> 2];
2094
+ return c ? d => B[d >> 2] : d => D[d >> 2];
2087
2095
  default:
2088
2096
  throw new TypeError(`invalid integer width (${b}): ${a}`);
2089
2097
  }
2090
- }, zd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, Ad = (a, b) => {
2098
+ }, Ad = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, Bd = (a, b) => {
2091
2099
  var c = a >> 1;
2092
- for (var d = c + b / 2; !(c >= d) && Da[c];) {
2100
+ for (var d = c + b / 2; !(c >= d) && Ea[c];) {
2093
2101
  ++c;
2094
2102
  }
2095
2103
  c <<= 1;
2096
- if (32 < c - a && zd) {
2097
- return zd.decode(A.subarray(a, c));
2104
+ if (32 < c - a && Ad) {
2105
+ return Ad.decode(A.subarray(a, c));
2098
2106
  }
2099
2107
  c = "";
2100
2108
  for (d = 0; !(d >= b / 2); ++d) {
2101
- var e = Ca[a + 2 * d >> 1];
2109
+ var e = Da[a + 2 * d >> 1];
2102
2110
  if (0 == e) {
2103
2111
  break;
2104
2112
  }
2105
2113
  c += String.fromCharCode(e);
2106
2114
  }
2107
2115
  return c;
2108
- }, Bd = (a, b, c) => {
2116
+ }, Cd = (a, b, c) => {
2109
2117
  c ??= 2147483647;
2110
2118
  if (2 > c) {
2111
2119
  return 0;
@@ -2114,11 +2122,11 @@ var rd = (a, b) => {
2114
2122
  var d = b;
2115
2123
  c = c < 2 * a.length ? c / 2 : a.length;
2116
2124
  for (var e = 0; e < c; ++e) {
2117
- Ca[b >> 1] = a.charCodeAt(e), b += 2;
2125
+ Da[b >> 1] = a.charCodeAt(e), b += 2;
2118
2126
  }
2119
- Ca[b >> 1] = 0;
2127
+ Da[b >> 1] = 0;
2120
2128
  return b - d;
2121
- }, Cd = a => 2 * a.length, Dd = (a, b) => {
2129
+ }, Dd = a => 2 * a.length, Ed = (a, b) => {
2122
2130
  for (var c = 0, d = ""; !(c >= b / 4);) {
2123
2131
  var e = B[a + 4 * c >> 2];
2124
2132
  if (0 == e) {
@@ -2128,7 +2136,7 @@ var rd = (a, b) => {
2128
2136
  65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
2129
2137
  }
2130
2138
  return d;
2131
- }, Ed = (a, b, c) => {
2139
+ }, Fd = (a, b, c) => {
2132
2140
  c ??= 2147483647;
2133
2141
  if (4 > c) {
2134
2142
  return 0;
@@ -2149,47 +2157,47 @@ var rd = (a, b) => {
2149
2157
  }
2150
2158
  B[b >> 2] = 0;
2151
2159
  return b - d;
2152
- }, Fd = a => {
2160
+ }, Gd = a => {
2153
2161
  for (var b = 0, c = 0; c < a.length; ++c) {
2154
2162
  var d = a.charCodeAt(c);
2155
2163
  55296 <= d && 57343 >= d && ++c;
2156
2164
  b += 4;
2157
2165
  }
2158
2166
  return b;
2159
- }, Gd = (a, b, c) => {
2167
+ }, Hd = (a, b, c) => {
2160
2168
  var d = [];
2161
2169
  a = a.toWireType(d, c);
2162
- d.length && (E[b >> 2] = qc(d));
2170
+ d.length && (D[b >> 2] = qc(d));
2163
2171
  return a;
2164
- }, Hd = {}, Id = a => {
2165
- var b = Hd[a];
2172
+ }, Id = {}, Jd = a => {
2173
+ var b = Id[a];
2166
2174
  return void 0 === b ? Q(a) : b;
2167
- }, Jd = [], Kd = a => {
2168
- var b = Jd.length;
2169
- Jd.push(a);
2175
+ }, Kd = [], Ld = a => {
2176
+ var b = Kd.length;
2177
+ Kd.push(a);
2170
2178
  return b;
2171
- }, Ld = (a, b) => {
2179
+ }, Md = (a, b) => {
2172
2180
  for (var c = Array(a), d = 0; d < a; ++d) {
2173
- c[d] = Dc(E[b + 4 * d >> 2], "parameter " + d);
2181
+ c[d] = Dc(D[b + 4 * d >> 2], "parameter " + d);
2174
2182
  }
2175
2183
  return c;
2176
- }, Md = Reflect.construct, Nd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Od = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Pd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Qd = [], Rd = {}, Td = () => {
2177
- if (!Sd) {
2184
+ }, Nd = Reflect.construct, Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Qd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Rd = [], Sd = {}, Ud = () => {
2185
+ if (!Td) {
2178
2186
  var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:oa || "./this.program"}, b;
2179
- for (b in Rd) {
2180
- void 0 === Rd[b] ? delete a[b] : a[b] = Rd[b];
2187
+ for (b in Sd) {
2188
+ void 0 === Sd[b] ? delete a[b] : a[b] = Sd[b];
2181
2189
  }
2182
2190
  var c = [];
2183
2191
  for (b in a) {
2184
2192
  c.push(`${b}=${a[b]}`);
2185
2193
  }
2186
- Sd = c;
2194
+ Td = c;
2187
2195
  }
2188
- return Sd;
2189
- }, Sd, Ud = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Vd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Wd = (a, b, c, d) => {
2190
- function e(l, u, q) {
2196
+ return Td;
2197
+ }, Td, Vd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Wd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Xd = (a, b, c, d) => {
2198
+ function e(l, u, r) {
2191
2199
  for (l = "number" == typeof l ? l.toString() : l || ""; l.length < u;) {
2192
- l = q[0] + l;
2200
+ l = r[0] + l;
2193
2201
  }
2194
2202
  return l;
2195
2203
  }
@@ -2197,12 +2205,12 @@ var rd = (a, b) => {
2197
2205
  return e(l, u, "0");
2198
2206
  }
2199
2207
  function g(l, u) {
2200
- function q(F) {
2201
- return 0 > F ? -1 : 0 < F ? 1 : 0;
2208
+ function r(G) {
2209
+ return 0 > G ? -1 : 0 < G ? 1 : 0;
2202
2210
  }
2203
- var D;
2204
- 0 === (D = q(l.getFullYear() - u.getFullYear())) && 0 === (D = q(l.getMonth() - u.getMonth())) && (D = q(l.getDate() - u.getDate()));
2205
- return D;
2211
+ var C;
2212
+ 0 === (C = r(l.getFullYear() - u.getFullYear())) && 0 === (C = r(l.getMonth() - u.getMonth())) && (C = r(l.getDate() - u.getDate()));
2213
+ return C;
2206
2214
  }
2207
2215
  function k(l) {
2208
2216
  switch(l.getDay()) {
@@ -2223,60 +2231,60 @@ var rd = (a, b) => {
2223
2231
  }
2224
2232
  }
2225
2233
  function p(l) {
2226
- var u = l.ba;
2227
- for (l = new Date((new Date(l.ca + 1900, 0, 1)).getTime()); 0 < u;) {
2228
- var q = l.getMonth(), D = (Nd(l.getFullYear()) ? Ud : Vd)[q];
2229
- if (u > D - l.getDate()) {
2230
- u -= D - l.getDate() + 1, l.setDate(1), 11 > q ? l.setMonth(q + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
2234
+ var u = l.ca;
2235
+ for (l = new Date((new Date(l.da + 1900, 0, 1)).getTime()); 0 < u;) {
2236
+ var r = l.getMonth(), C = (Od(l.getFullYear()) ? Vd : Wd)[r];
2237
+ if (u > C - l.getDate()) {
2238
+ u -= C - l.getDate() + 1, l.setDate(1), 11 > r ? l.setMonth(r + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
2231
2239
  } else {
2232
2240
  l.setDate(l.getDate() + u);
2233
2241
  break;
2234
2242
  }
2235
2243
  }
2236
- q = new Date(l.getFullYear() + 1, 0, 4);
2244
+ r = new Date(l.getFullYear() + 1, 0, 4);
2237
2245
  u = k(new Date(l.getFullYear(), 0, 4));
2238
- q = k(q);
2239
- return 0 >= g(u, l) ? 0 >= g(q, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
2246
+ r = k(r);
2247
+ return 0 >= g(u, l) ? 0 >= g(r, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
2240
2248
  }
2241
- var n = E[d + 40 >> 2];
2242
- d = {pc:B[d >> 2], oc:B[d + 4 >> 2], Da:B[d + 8 >> 2], Qa:B[d + 12 >> 2], Ea:B[d + 16 >> 2], ca:B[d + 20 >> 2], R:B[d + 24 >> 2], ba:B[d + 28 >> 2], Nc:B[d + 32 >> 2], nc:B[d + 36 >> 2], qc:n ? n ? nb(A, n) : "" : ""};
2243
- c = c ? nb(A, c) : "";
2249
+ var n = D[d + 40 >> 2];
2250
+ d = {qc:B[d >> 2], pc:B[d + 4 >> 2], Ea:B[d + 8 >> 2], Ra:B[d + 12 >> 2], Fa:B[d + 16 >> 2], da:B[d + 20 >> 2], S:B[d + 24 >> 2], ca:B[d + 28 >> 2], Oc:B[d + 32 >> 2], oc:B[d + 36 >> 2], rc:n ? n ? pb(A, n) : "" : ""};
2251
+ c = c ? pb(A, c) : "";
2244
2252
  n = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
2245
2253
  for (var t in n) {
2246
2254
  c = c.replace(new RegExp(t, "g"), n[t]);
2247
2255
  }
2248
2256
  var x = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
2249
- n = {"%a":l => x[l.R].substring(0, 3), "%A":l => x[l.R], "%b":l => y[l.Ea].substring(0, 3), "%B":l => y[l.Ea], "%C":l => f((l.ca + 1900) / 100 | 0, 2), "%d":l => f(l.Qa, 2), "%e":l => e(l.Qa, 2, " "), "%g":l => p(l).toString().substring(2), "%G":p, "%H":l => f(l.Da, 2), "%I":l => {
2250
- l = l.Da;
2257
+ n = {"%a":l => x[l.S].substring(0, 3), "%A":l => x[l.S], "%b":l => y[l.Fa].substring(0, 3), "%B":l => y[l.Fa], "%C":l => f((l.da + 1900) / 100 | 0, 2), "%d":l => f(l.Ra, 2), "%e":l => e(l.Ra, 2, " "), "%g":l => p(l).toString().substring(2), "%G":p, "%H":l => f(l.Ea, 2), "%I":l => {
2258
+ l = l.Ea;
2251
2259
  0 == l ? l = 12 : 12 < l && (l -= 12);
2252
2260
  return f(l, 2);
2253
2261
  }, "%j":l => {
2254
- for (var u = 0, q = 0; q <= l.Ea - 1; u += (Nd(l.ca + 1900) ? Ud : Vd)[q++]) {
2262
+ for (var u = 0, r = 0; r <= l.Fa - 1; u += (Od(l.da + 1900) ? Vd : Wd)[r++]) {
2255
2263
  }
2256
- return f(l.Qa + u, 3);
2257
- }, "%m":l => f(l.Ea + 1, 2), "%M":l => f(l.oc, 2), "%n":() => "\n", "%p":l => 0 <= l.Da && 12 > l.Da ? "AM" : "PM", "%S":l => f(l.pc, 2), "%t":() => "\t", "%u":l => l.R || 7, "%U":l => f(Math.floor((l.ba + 7 - l.R) / 7), 2), "%V":l => {
2258
- var u = Math.floor((l.ba + 7 - (l.R + 6) % 7) / 7);
2259
- 2 >= (l.R + 371 - l.ba - 2) % 7 && u++;
2264
+ return f(l.Ra + u, 3);
2265
+ }, "%m":l => f(l.Fa + 1, 2), "%M":l => f(l.pc, 2), "%n":() => "\n", "%p":l => 0 <= l.Ea && 12 > l.Ea ? "AM" : "PM", "%S":l => f(l.qc, 2), "%t":() => "\t", "%u":l => l.S || 7, "%U":l => f(Math.floor((l.ca + 7 - l.S) / 7), 2), "%V":l => {
2266
+ var u = Math.floor((l.ca + 7 - (l.S + 6) % 7) / 7);
2267
+ 2 >= (l.S + 371 - l.ca - 2) % 7 && u++;
2260
2268
  if (u) {
2261
- 53 == u && (q = (l.R + 371 - l.ba) % 7, 4 == q || 3 == q && Nd(l.ca) || (u = 1));
2269
+ 53 == u && (r = (l.S + 371 - l.ca) % 7, 4 == r || 3 == r && Od(l.da) || (u = 1));
2262
2270
  } else {
2263
2271
  u = 52;
2264
- var q = (l.R + 7 - l.ba - 1) % 7;
2265
- (4 == q || 5 == q && Nd(l.ca % 400 - 1)) && u++;
2272
+ var r = (l.S + 7 - l.ca - 1) % 7;
2273
+ (4 == r || 5 == r && Od(l.da % 400 - 1)) && u++;
2266
2274
  }
2267
2275
  return f(u, 2);
2268
- }, "%w":l => l.R, "%W":l => f(Math.floor((l.ba + 7 - (l.R + 6) % 7) / 7), 2), "%y":l => (l.ca + 1900).toString().substring(2), "%Y":l => l.ca + 1900, "%z":l => {
2269
- l = l.nc;
2276
+ }, "%w":l => l.S, "%W":l => f(Math.floor((l.ca + 7 - (l.S + 6) % 7) / 7), 2), "%y":l => (l.da + 1900).toString().substring(2), "%Y":l => l.da + 1900, "%z":l => {
2277
+ l = l.oc;
2270
2278
  var u = 0 <= l;
2271
2279
  l = Math.abs(l) / 60;
2272
2280
  return (u ? "+" : "-") + String("0000" + (l / 60 * 100 + l % 60)).slice(-4);
2273
- }, "%Z":l => l.qc, "%%":() => "%"};
2281
+ }, "%Z":l => l.rc, "%%":() => "%"};
2274
2282
  c = c.replace(/%%/g, "\x00\x00");
2275
2283
  for (t in n) {
2276
2284
  c.includes(t) && (c = c.replace(new RegExp(t, "g"), n[t](d)));
2277
2285
  }
2278
2286
  c = c.replace(/\0\0/g, "%");
2279
- t = rb(c, !1);
2287
+ t = tb(c, !1);
2280
2288
  if (t.length > b) {
2281
2289
  return 0;
2282
2290
  }
@@ -2284,24 +2292,24 @@ var rd = (a, b) => {
2284
2292
  return t.length - 1;
2285
2293
  };
2286
2294
  [44].forEach(a => {
2287
- Bb[a] = new N(a);
2288
- Bb[a].stack = "<generic error, no stack>";
2295
+ Db[a] = new N(a);
2296
+ Db[a].stack = "<generic error, no stack>";
2289
2297
  });
2290
- Ib = Array(4096);
2291
- Wb(O, "/");
2298
+ Kb = Array(4096);
2299
+ Yb(O, "/");
2292
2300
  cc("/tmp");
2293
2301
  cc("/home");
2294
2302
  cc("/home/web_user");
2295
2303
  (function() {
2296
2304
  cc("/dev");
2297
- ub(259, {read:() => 0, write:(d, e, f, g) => g,});
2305
+ wb(259, {read:() => 0, write:(d, e, f, g) => g,});
2298
2306
  dc("/dev/null", 259);
2299
- tb(1280, wb);
2300
- tb(1536, xb);
2307
+ vb(1280, yb);
2308
+ vb(1536, zb);
2301
2309
  dc("/dev/tty", 1280);
2302
2310
  dc("/dev/tty1", 1536);
2303
2311
  var a = new Uint8Array(1024), b = 0, c = () => {
2304
- 0 === b && (b = kb(a).byteLength);
2312
+ 0 === b && (b = mb(a).byteLength);
2305
2313
  return a[--b];
2306
2314
  };
2307
2315
  jc("random", c);
@@ -2313,11 +2321,11 @@ cc("/home/web_user");
2313
2321
  cc("/proc");
2314
2322
  var a = cc("/proc/self");
2315
2323
  cc("/proc/self/fd");
2316
- Wb({U() {
2317
- var b = Ab(a, "fd", 16895, 73);
2318
- b.j = {ja(c, d) {
2319
- var e = Tb(+d);
2320
- c = {parent:null, U:{lb:"fake"}, j:{la:() => e.path},};
2324
+ Yb({V() {
2325
+ var b = Cb(a, "fd", 16895, 73);
2326
+ b.j = {ka(c, d) {
2327
+ var e = Vb(+d);
2328
+ c = {parent:null, V:{mb:"fake"}, j:{ma:() => e.path},};
2321
2329
  return c.parent = c;
2322
2330
  }};
2323
2331
  return b;
@@ -2332,10 +2340,10 @@ P = m.BindingError = class extends Error {
2332
2340
  oc.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
2333
2341
  m.count_emval_handles = () => oc.length / 2 - 5 - nc.length;
2334
2342
  sc = m.PureVirtualError = rc("PureVirtualError");
2335
- for (var Xd = Array(256), Yd = 0; 256 > Yd; ++Yd) {
2336
- Xd[Yd] = String.fromCharCode(Yd);
2343
+ for (var Yd = Array(256), Zd = 0; 256 > Zd; ++Zd) {
2344
+ Yd[Zd] = String.fromCharCode(Zd);
2337
2345
  }
2338
- tc = Xd;
2346
+ tc = Yd;
2339
2347
  m.getInheritedInstanceCount = () => Object.keys(xc).length;
2340
2348
  m.getLiveInheritedInstances = () => {
2341
2349
  var a = [], b;
@@ -2363,56 +2371,56 @@ Object.assign(Uc.prototype, {isAliasOf:function(a) {
2363
2371
  a.g = a.g;
2364
2372
  var d = a.g.u.i;
2365
2373
  for (a = a.g.o; b.C;) {
2366
- c = b.ma(c), b = b.C;
2374
+ c = b.na(c), b = b.C;
2367
2375
  }
2368
2376
  for (; d.C;) {
2369
- a = d.ma(a), d = d.C;
2377
+ a = d.na(a), d = d.C;
2370
2378
  }
2371
2379
  return b === d && c === a;
2372
2380
  }, clone:function() {
2373
2381
  this.g.o || Tc(this);
2374
- if (this.g.ha) {
2382
+ if (this.g.ia) {
2375
2383
  return this.g.count.value += 1, this;
2376
2384
  }
2377
2385
  var a = Kc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
2378
- a = a(c.call(b, d, {g:{value:{count:e.count, ea:e.ea, ha:e.ha, o:e.o, u:e.u, F:e.F, J:e.J,},}}));
2386
+ a = a(c.call(b, d, {g:{value:{count:e.count, fa:e.fa, ia:e.ia, o:e.o, u:e.u, F:e.F, K:e.K,},}}));
2379
2387
  a.g.count.value += 1;
2380
- a.g.ea = !1;
2388
+ a.g.fa = !1;
2381
2389
  return a;
2382
2390
  }, ["delete"]() {
2383
2391
  this.g.o || Tc(this);
2384
- if (this.g.ea && !this.g.ha) {
2392
+ if (this.g.fa && !this.g.ia) {
2385
2393
  throw new P("Object already scheduled for deletion");
2386
2394
  }
2387
2395
  Ec(this);
2388
2396
  var a = this.g;
2389
2397
  --a.count.value;
2390
- 0 === a.count.value && (a.F ? a.J.O(a.F) : a.u.i.O(a.o));
2391
- this.g.ha || (this.g.F = void 0, this.g.o = void 0);
2398
+ 0 === a.count.value && (a.F ? a.K.P(a.F) : a.u.i.P(a.o));
2399
+ this.g.ia || (this.g.F = void 0, this.g.o = void 0);
2392
2400
  }, isDeleted:function() {
2393
2401
  return !this.g.o;
2394
2402
  }, deleteLater:function() {
2395
2403
  this.g.o || Tc(this);
2396
- if (this.g.ea && !this.g.ha) {
2404
+ if (this.g.fa && !this.g.ia) {
2397
2405
  throw new P("Object already scheduled for deletion");
2398
2406
  }
2399
2407
  uc.push(this);
2400
2408
  1 === uc.length && wc && wc(vc);
2401
- this.g.ea = !0;
2409
+ this.g.fa = !0;
2402
2410
  return this;
2403
2411
  },});
2404
- Object.assign(dd.prototype, {Rb(a) {
2405
- this.qb && (a = this.qb(a));
2412
+ Object.assign(dd.prototype, {Sb(a) {
2413
+ this.rb && (a = this.rb(a));
2406
2414
  return a;
2407
- }, ab(a) {
2408
- this.O?.(a);
2415
+ }, bb(a) {
2416
+ this.P?.(a);
2409
2417
  }, argPackAdvance:8, readValueFromPointer:Oc, fromWireType:function(a) {
2410
2418
  function b() {
2411
- return this.sa ? Lc(this.i.M, {u:this.hc, o:c, J:this, F:a,}) : Lc(this.i.M, {u:this, o:a,});
2419
+ return this.ta ? Lc(this.i.N, {u:this.ic, o:c, K:this, F:a,}) : Lc(this.i.N, {u:this, o:a,});
2412
2420
  }
2413
- var c = this.Rb(a);
2421
+ var c = this.Sb(a);
2414
2422
  if (!c) {
2415
- return this.ab(a), null;
2423
+ return this.bb(a), null;
2416
2424
  }
2417
2425
  var d = Ic(this.i, c);
2418
2426
  if (void 0 !== d) {
@@ -2420,42 +2428,42 @@ Object.assign(dd.prototype, {Rb(a) {
2420
2428
  return d.g.o = c, d.g.F = a, d.clone();
2421
2429
  }
2422
2430
  d = d.clone();
2423
- this.ab(a);
2431
+ this.bb(a);
2424
2432
  return d;
2425
2433
  }
2426
- d = this.i.Qb(c);
2434
+ d = this.i.Rb(c);
2427
2435
  d = Hc[d];
2428
2436
  if (!d) {
2429
2437
  return b.call(this);
2430
2438
  }
2431
- d = this.ra ? d.Hb : d.pointerType;
2439
+ d = this.sa ? d.Ib : d.pointerType;
2432
2440
  var e = Gc(c, this.i, d.i);
2433
- return null === e ? b.call(this) : this.sa ? Lc(d.i.M, {u:d, o:e, J:this, F:a,}) : Lc(d.i.M, {u:d, o:e,});
2441
+ return null === e ? b.call(this) : this.ta ? Lc(d.i.N, {u:d, o:e, K:this, F:a,}) : Lc(d.i.N, {u:d, o:e,});
2434
2442
  },});
2435
2443
  ld = m.UnboundTypeError = rc("UnboundTypeError");
2436
- var ae = {__syscall_fcntl64:function(a, b, c) {
2437
- eb = c;
2444
+ var be = {__syscall_fcntl64:function(a, b, c) {
2445
+ gb = c;
2438
2446
  try {
2439
- var d = Tb(a);
2447
+ var d = Vb(a);
2440
2448
  switch(b) {
2441
2449
  case 0:
2442
- var e = db();
2450
+ var e = fb();
2443
2451
  if (0 > e) {
2444
2452
  break;
2445
2453
  }
2446
- for (; Gb[e];) {
2454
+ for (; Ib[e];) {
2447
2455
  e++;
2448
2456
  }
2449
- return Vb(d, e).W;
2457
+ return Xb(d, e).X;
2450
2458
  case 1:
2451
2459
  case 2:
2452
2460
  return 0;
2453
2461
  case 3:
2454
2462
  return d.flags;
2455
2463
  case 4:
2456
- return e = db(), d.flags |= e, 0;
2464
+ return e = fb(), d.flags |= e, 0;
2457
2465
  case 12:
2458
- return e = db(), Ca[e + 0 >> 1] = 2, 0;
2466
+ return e = fb(), Da[e + 0 >> 1] = 2, 0;
2459
2467
  case 13:
2460
2468
  case 14:
2461
2469
  return 0;
@@ -2465,12 +2473,12 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2465
2473
  if ("undefined" == typeof lc || "ErrnoError" !== f.name) {
2466
2474
  throw f;
2467
2475
  }
2468
- return -f.$;
2476
+ return -f.aa;
2469
2477
  }
2470
2478
  }, __syscall_ioctl:function(a, b, c) {
2471
- eb = c;
2479
+ gb = c;
2472
2480
  try {
2473
- var d = Tb(a);
2481
+ var d = Vb(a);
2474
2482
  switch(b) {
2475
2483
  case 21509:
2476
2484
  return d.s ? 0 : -59;
@@ -2478,9 +2486,9 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2478
2486
  if (!d.s) {
2479
2487
  return -59;
2480
2488
  }
2481
- if (d.s.V.Xb) {
2489
+ if (d.s.W.Yb) {
2482
2490
  a = [3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,];
2483
- var e = db();
2491
+ var e = fb();
2484
2492
  B[e >> 2] = 25856;
2485
2493
  B[e + 4 >> 2] = 5;
2486
2494
  B[e + 8 >> 2] = 191;
@@ -2500,8 +2508,8 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2500
2508
  if (!d.s) {
2501
2509
  return -59;
2502
2510
  }
2503
- if (d.s.V.Yb) {
2504
- for (e = db(), a = [], f = 0; 32 > f; f++) {
2511
+ if (d.s.W.Zb) {
2512
+ for (e = fb(), a = [], f = 0; 32 > f; f++) {
2505
2513
  a.push(z[e + f + 17]);
2506
2514
  }
2507
2515
  }
@@ -2510,21 +2518,21 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2510
2518
  if (!d.s) {
2511
2519
  return -59;
2512
2520
  }
2513
- e = db();
2521
+ e = fb();
2514
2522
  return B[e >> 2] = 0;
2515
2523
  case 21520:
2516
2524
  return d.s ? -28 : -59;
2517
2525
  case 21531:
2518
- e = db();
2519
- if (!d.m.Wb) {
2526
+ e = fb();
2527
+ if (!d.m.Xb) {
2520
2528
  throw new N(59);
2521
2529
  }
2522
- return d.m.Wb(d, b, e);
2530
+ return d.m.Xb(d, b, e);
2523
2531
  case 21523:
2524
2532
  if (!d.s) {
2525
2533
  return -59;
2526
2534
  }
2527
- d.s.V.Zb && (f = [24, 80], e = db(), Ca[e >> 1] = f[0], Ca[e + 2 >> 1] = f[1]);
2535
+ d.s.W.$b && (f = [24, 80], e = fb(), Da[e >> 1] = f[0], Da[e + 2 >> 1] = f[1]);
2528
2536
  return 0;
2529
2537
  case 21524:
2530
2538
  return d.s ? 0 : -59;
@@ -2537,39 +2545,39 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2537
2545
  if ("undefined" == typeof lc || "ErrnoError" !== g.name) {
2538
2546
  throw g;
2539
2547
  }
2540
- return -g.$;
2548
+ return -g.aa;
2541
2549
  }
2542
2550
  }, __syscall_openat:function(a, b, c, d) {
2543
- eb = d;
2551
+ gb = d;
2544
2552
  try {
2545
- b = b ? nb(A, b) : "";
2553
+ b = b ? pb(A, b) : "";
2546
2554
  var e = b;
2547
2555
  if ("/" === e.charAt(0)) {
2548
2556
  b = e;
2549
2557
  } else {
2550
- var f = -100 === a ? "/" : Tb(a).path;
2558
+ var f = -100 === a ? "/" : Vb(a).path;
2551
2559
  if (0 == e.length) {
2552
2560
  throw new N(44);
2553
2561
  }
2554
- b = gb(f + "/" + e);
2562
+ b = ib(f + "/" + e);
2555
2563
  }
2556
- var g = d ? db() : 0;
2557
- return fc(b, c, g).W;
2564
+ var g = d ? fb() : 0;
2565
+ return fc(b, c, g).X;
2558
2566
  } catch (k) {
2559
2567
  if ("undefined" == typeof lc || "ErrnoError" !== k.name) {
2560
2568
  throw k;
2561
2569
  }
2562
- return -k.$;
2570
+ return -k.aa;
2563
2571
  }
2564
2572
  }, _abort_js:() => {
2565
- Qa("");
2573
+ Ra("");
2566
2574
  }, _embind_create_inheriting_constructor:(a, b, c) => {
2567
2575
  a = Q(a);
2568
2576
  b = Dc(b, "wrapper");
2569
2577
  c = pc(c);
2570
- var d = b.i, e = d.M, f = d.C.M, g = d.C.constructor;
2578
+ var d = b.i, e = d.N, f = d.C.N, g = d.C.constructor;
2571
2579
  a = mc(a, function(...k) {
2572
- d.C.pb.forEach(function(p) {
2580
+ d.C.qb.forEach(function(p) {
2573
2581
  if (this[p] === f[p]) {
2574
2582
  throw new sc(`Pure virtual function ${p} must be implemented in JavaScript`);
2575
2583
  }
@@ -2585,7 +2593,7 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2585
2593
  Ec(k);
2586
2594
  var p = k.g;
2587
2595
  k.notifyOnDestruction();
2588
- p.ha = !0;
2596
+ p.ia = !0;
2589
2597
  Object.defineProperties(this, {g:{value:p}});
2590
2598
  Kc(this);
2591
2599
  k = p.o;
@@ -2614,14 +2622,14 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2614
2622
  }, _embind_finalize_value_object:a => {
2615
2623
  var b = Mc[a];
2616
2624
  delete Mc[a];
2617
- var c = b.Na, d = b.O, e = b.eb, f = e.map(g => g.Ub).concat(e.map(g => g.kc));
2625
+ var c = b.Oa, d = b.P, e = b.fb, f = e.map(g => g.Vb).concat(e.map(g => g.lc));
2618
2626
  U([a], f, g => {
2619
2627
  var k = {};
2620
2628
  e.forEach((p, n) => {
2621
- var t = g[n], x = p.Sb, y = p.Tb, l = g[n + e.length], u = p.jc, q = p.lc;
2622
- k[p.Ob] = {read:D => t.fromWireType(x(y, D)), write:(D, F) => {
2629
+ var t = g[n], x = p.Tb, y = p.Ub, l = g[n + e.length], u = p.kc, r = p.mc;
2630
+ k[p.Pb] = {read:C => t.fromWireType(x(y, C)), write:(C, G) => {
2623
2631
  var w = [];
2624
- u(q, D, l.toWireType(w, F));
2632
+ u(r, C, l.toWireType(w, G));
2625
2633
  Nc(w);
2626
2634
  }};
2627
2635
  });
@@ -2644,7 +2652,7 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2644
2652
  }
2645
2653
  null !== p && p.push(d, x);
2646
2654
  return x;
2647
- }, argPackAdvance:8, readValueFromPointer:Oc, L:d,}];
2655
+ }, argPackAdvance:8, readValueFromPointer:Oc, M:d,}];
2648
2656
  });
2649
2657
  }, _embind_register_bigint:() => {
2650
2658
  }, _embind_register_bool:(a, b, c, d) => {
@@ -2655,7 +2663,7 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2655
2663
  return f ? c : d;
2656
2664
  }, argPackAdvance:8, readValueFromPointer:function(e) {
2657
2665
  return this.fromWireType(A[e]);
2658
- }, L:null,});
2666
+ }, M:null,});
2659
2667
  }, _embind_register_class:(a, b, c, d, e, f, g, k, p, n, t, x, y) => {
2660
2668
  t = Q(t);
2661
2669
  f = V(e, f);
@@ -2669,43 +2677,43 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2669
2677
  U([a, b, c], d ? [d] : [], u => {
2670
2678
  u = u[0];
2671
2679
  if (d) {
2672
- var q = u.i;
2673
- var D = q.M;
2680
+ var r = u.i;
2681
+ var C = r.N;
2674
2682
  } else {
2675
- D = Uc.prototype;
2683
+ C = Uc.prototype;
2676
2684
  }
2677
- u = mc(t, function(...R) {
2678
- if (Object.getPrototypeOf(this) !== F) {
2685
+ u = mc(t, function(...T) {
2686
+ if (Object.getPrototypeOf(this) !== G) {
2679
2687
  throw new P("Use 'new' to construct " + t);
2680
2688
  }
2681
- if (void 0 === w.Z) {
2689
+ if (void 0 === w.$) {
2682
2690
  throw new P(t + " has no accessible constructor");
2683
2691
  }
2684
- var W = w.Z[R.length];
2692
+ var W = w.$[T.length];
2685
2693
  if (void 0 === W) {
2686
- throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${R.length}) - expected (${Object.keys(w.Z).toString()}) parameters instead!`);
2694
+ throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${T.length}) - expected (${Object.keys(w.$).toString()}) parameters instead!`);
2687
2695
  }
2688
- return W.apply(this, R);
2696
+ return W.apply(this, T);
2689
2697
  });
2690
- var F = Object.create(D, {constructor:{value:u},});
2691
- u.prototype = F;
2692
- var w = new Yc(t, u, F, y, q, f, k, n);
2698
+ var G = Object.create(C, {constructor:{value:u},});
2699
+ u.prototype = G;
2700
+ var w = new Yc(t, u, G, y, r, f, k, n);
2693
2701
  if (w.C) {
2694
2702
  var M;
2695
- (M = w.C).na ?? (M.na = []);
2696
- w.C.na.push(w);
2703
+ (M = w.C).oa ?? (M.oa = []);
2704
+ w.C.oa.push(w);
2697
2705
  }
2698
- q = new dd(t, w, !0, !1, !1);
2706
+ r = new dd(t, w, !0, !1, !1);
2699
2707
  M = new dd(t + "*", w, !1, !1, !1);
2700
- D = new dd(t + " const*", w, !1, !0, !1);
2701
- Hc[a] = {pointerType:M, Hb:D};
2708
+ C = new dd(t + " const*", w, !1, !0, !1);
2709
+ Hc[a] = {pointerType:M, Ib:C};
2702
2710
  ed(l, u);
2703
- return [q, M, D];
2711
+ return [r, M, C];
2704
2712
  });
2705
2713
  }, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
2706
- var k = rd(c, d);
2714
+ var k = sd(c, d);
2707
2715
  b = Q(b);
2708
- b = sd(b);
2716
+ b = td(b);
2709
2717
  f = V(e, f);
2710
2718
  U([], [a], p => {
2711
2719
  function n() {
@@ -2715,12 +2723,12 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2715
2723
  var t = `${p.name}.${b}`;
2716
2724
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2717
2725
  var x = p.i.constructor;
2718
- void 0 === x[b] ? (n.da = c - 1, x[b] = n) : (Vc(x, b, t), x[b].A[c - 1] = n);
2726
+ void 0 === x[b] ? (n.ea = c - 1, x[b] = n) : (Vc(x, b, t), x[b].A[c - 1] = n);
2719
2727
  U([], k, y => {
2720
- y = qd(t, [y[0], null].concat(y.slice(1)), null, f, g);
2721
- void 0 === x[b].A ? (y.da = c - 1, x[b] = y) : x[b].A[c - 1] = y;
2722
- if (p.i.na) {
2723
- for (const l of p.i.na) {
2728
+ y = rd(t, [y[0], null].concat(y.slice(1)), null, f, g);
2729
+ void 0 === x[b].A ? (y.ea = c - 1, x[b] = y) : x[b].A[c - 1] = y;
2730
+ if (p.i.oa) {
2731
+ for (const l of p.i.oa) {
2724
2732
  l.constructor.hasOwnProperty(b) || (l.constructor[b] = y);
2725
2733
  }
2726
2734
  }
@@ -2758,29 +2766,29 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2758
2766
  return [];
2759
2767
  });
2760
2768
  }, _embind_register_class_constructor:(a, b, c, d, e, f) => {
2761
- var g = rd(b, c);
2769
+ var g = sd(b, c);
2762
2770
  e = V(d, e);
2763
2771
  U([], [a], k => {
2764
2772
  k = k[0];
2765
2773
  var p = `constructor ${k.name}`;
2766
- void 0 === k.i.Z && (k.i.Z = []);
2767
- if (void 0 !== k.i.Z[b - 1]) {
2774
+ void 0 === k.i.$ && (k.i.$ = []);
2775
+ if (void 0 !== k.i.$[b - 1]) {
2768
2776
  throw new P(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2769
2777
  }
2770
- k.i.Z[b - 1] = () => {
2778
+ k.i.$[b - 1] = () => {
2771
2779
  md(`Cannot construct ${k.name} due to unbound types`, g);
2772
2780
  };
2773
2781
  U([], g, n => {
2774
2782
  n.splice(1, 0, null);
2775
- k.i.Z[b - 1] = qd(p, n, null, e, f);
2783
+ k.i.$[b - 1] = rd(p, n, null, e, f);
2776
2784
  return [];
2777
2785
  });
2778
2786
  return [];
2779
2787
  });
2780
2788
  }, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
2781
- var p = rd(c, d);
2789
+ var p = sd(c, d);
2782
2790
  b = Q(b);
2783
- b = sd(b);
2791
+ b = td(b);
2784
2792
  f = V(e, f);
2785
2793
  U([], [a], n => {
2786
2794
  function t() {
@@ -2789,12 +2797,12 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2789
2797
  n = n[0];
2790
2798
  var x = `${n.name}.${b}`;
2791
2799
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2792
- k && n.i.pb.push(b);
2793
- var y = n.i.M, l = y[b];
2794
- void 0 === l || void 0 === l.A && l.className !== n.name && l.da === c - 2 ? (t.da = c - 2, t.className = n.name, y[b] = t) : (Vc(y, b, x), y[b].A[c - 2] = t);
2800
+ k && n.i.qb.push(b);
2801
+ var y = n.i.N, l = y[b];
2802
+ void 0 === l || void 0 === l.A && l.className !== n.name && l.ea === c - 2 ? (t.ea = c - 2, t.className = n.name, y[b] = t) : (Vc(y, b, x), y[b].A[c - 2] = t);
2795
2803
  U([], p, u => {
2796
- u = qd(x, u, n, f, g);
2797
- void 0 === y[b].A ? (u.da = c - 2, y[b] = u) : y[b].A[c - 2] = u;
2804
+ u = rd(x, u, n, f, g);
2805
+ void 0 === y[b].A ? (u.ea = c - 2, y[b] = u) : y[b].A[c - 2] = u;
2798
2806
  return [];
2799
2807
  });
2800
2808
  return [];
@@ -2810,34 +2818,34 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2810
2818
  y.set = p ? () => md(`Cannot access ${x} due to unbound types`, [c, g]) : () => {
2811
2819
  throw new P(x + " is a read-only property");
2812
2820
  };
2813
- Object.defineProperty(t.i.M, b, y);
2821
+ Object.defineProperty(t.i.N, b, y);
2814
2822
  U([], p ? [c, g] : [c], l => {
2815
- var u = l[0], q = {get() {
2816
- var F = td(this, t, x + " getter");
2817
- return u.fromWireType(e(f, F));
2823
+ var u = l[0], r = {get() {
2824
+ var G = ud(this, t, x + " getter");
2825
+ return u.fromWireType(e(f, G));
2818
2826
  }, enumerable:!0};
2819
2827
  if (p) {
2820
2828
  p = V(k, p);
2821
- var D = l[1];
2822
- q.set = function(F) {
2823
- var w = td(this, t, x + " setter"), M = [];
2824
- p(n, w, D.toWireType(M, F));
2829
+ var C = l[1];
2830
+ r.set = function(G) {
2831
+ var w = ud(this, t, x + " setter"), M = [];
2832
+ p(n, w, C.toWireType(M, G));
2825
2833
  Nc(M);
2826
2834
  };
2827
2835
  }
2828
- Object.defineProperty(t.i.M, b, q);
2836
+ Object.defineProperty(t.i.N, b, r);
2829
2837
  return [];
2830
2838
  });
2831
2839
  return [];
2832
2840
  });
2833
- }, _embind_register_emval:a => Rc(a, vd), _embind_register_enum:(a, b, c, d) => {
2841
+ }, _embind_register_emval:a => Rc(a, wd), _embind_register_enum:(a, b, c, d) => {
2834
2842
  function e() {
2835
2843
  }
2836
2844
  b = Q(b);
2837
2845
  e.values = {};
2838
2846
  Rc(a, {name:b, constructor:e, fromWireType:function(f) {
2839
2847
  return this.constructor.values[f];
2840
- }, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:wd(b, c, d), L:null,});
2848
+ }, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:xd(b, c, d), M:null,});
2841
2849
  Wc(b, e);
2842
2850
  }, _embind_register_enum_value:(a, b, c) => {
2843
2851
  var d = Dc(a, "enum");
@@ -2849,17 +2857,17 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2849
2857
  a[b] = d;
2850
2858
  }, _embind_register_float:(a, b, c) => {
2851
2859
  b = Q(b);
2852
- Rc(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:xd(b, c), L:null,});
2860
+ Rc(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:yd(b, c), M:null,});
2853
2861
  }, _embind_register_function:(a, b, c, d, e, f) => {
2854
- var g = rd(b, c);
2862
+ var g = sd(b, c);
2855
2863
  a = Q(a);
2856
- a = sd(a);
2864
+ a = td(a);
2857
2865
  e = V(d, e);
2858
2866
  Wc(a, function() {
2859
2867
  md(`Cannot call ${a} due to unbound types`, g);
2860
2868
  }, b - 1);
2861
2869
  U([], g, k => {
2862
- ed(a, qd(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
2870
+ ed(a, rd(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
2863
2871
  return [];
2864
2872
  });
2865
2873
  }, _embind_register_integer:(a, b, c, d, e) => {
@@ -2875,24 +2883,24 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2875
2883
  } : function(k, p) {
2876
2884
  return p;
2877
2885
  };
2878
- Rc(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:yd(b, c, 0 !== d), L:null,});
2886
+ Rc(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:zd(b, c, 0 !== d), M:null,});
2879
2887
  }, _embind_register_memory_view:(a, b, c) => {
2880
2888
  function d(f) {
2881
- return new e(z.buffer, E[f + 4 >> 2], E[f >> 2]);
2889
+ return new e(z.buffer, D[f + 4 >> 2], D[f >> 2]);
2882
2890
  }
2883
2891
  var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
2884
2892
  c = Q(c);
2885
- Rc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Vb:!0,});
2893
+ Rc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Wb:!0,});
2886
2894
  }, _embind_register_std_string:(a, b) => {
2887
2895
  b = Q(b);
2888
2896
  var c = "std::string" === b;
2889
2897
  Rc(a, {name:b, fromWireType:function(d) {
2890
- var e = E[d >> 2], f = d + 4;
2898
+ var e = D[d >> 2], f = d + 4;
2891
2899
  if (c) {
2892
2900
  for (var g = f, k = 0; k <= e; ++k) {
2893
2901
  var p = f + k;
2894
2902
  if (k == e || 0 == A[p]) {
2895
- g = g ? nb(A, g, p - g) : "";
2903
+ g = g ? pb(A, g, p - g) : "";
2896
2904
  if (void 0 === n) {
2897
2905
  var n = g;
2898
2906
  } else {
@@ -2916,11 +2924,11 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2916
2924
  if (!(f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array)) {
2917
2925
  throw new P("Cannot pass non-string to std::string");
2918
2926
  }
2919
- var g = c && f ? pb(e) : e.length;
2920
- var k = Zd(4 + g + 1), p = k + 4;
2921
- E[k >> 2] = g;
2927
+ var g = c && f ? rb(e) : e.length;
2928
+ var k = $d(4 + g + 1), p = k + 4;
2929
+ D[k >> 2] = g;
2922
2930
  if (c && f) {
2923
- qb(e, A, p, g + 1);
2931
+ sb(e, A, p, g + 1);
2924
2932
  } else {
2925
2933
  if (f) {
2926
2934
  for (f = 0; f < g; ++f) {
@@ -2938,21 +2946,21 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2938
2946
  }
2939
2947
  null !== d && d.push(Bc, k);
2940
2948
  return k;
2941
- }, argPackAdvance:8, readValueFromPointer:Oc, L(d) {
2949
+ }, argPackAdvance:8, readValueFromPointer:Oc, M(d) {
2942
2950
  Bc(d);
2943
2951
  },});
2944
2952
  }, _embind_register_std_wstring:(a, b, c) => {
2945
2953
  c = Q(c);
2946
2954
  if (2 === b) {
2947
- var d = Ad;
2948
- var e = Bd;
2949
- var f = Cd;
2950
- var g = k => Da[k >> 1];
2955
+ var d = Bd;
2956
+ var e = Cd;
2957
+ var f = Dd;
2958
+ var g = k => Ea[k >> 1];
2951
2959
  } else {
2952
- 4 === b && (d = Dd, e = Ed, f = Fd, g = k => E[k >> 2]);
2960
+ 4 === b && (d = Ed, e = Fd, f = Gd, g = k => D[k >> 2]);
2953
2961
  }
2954
2962
  Rc(a, {name:c, fromWireType:k => {
2955
- for (var p = E[k >> 2], n, t = k + 4, x = 0; x <= p; ++x) {
2963
+ for (var p = D[k >> 2], n, t = k + 4, x = 0; x <= p; ++x) {
2956
2964
  var y = k + 4 + x * b;
2957
2965
  if (x == p || 0 == g(y)) {
2958
2966
  t = d(t, y - t), void 0 === n ? n = t : (n += String.fromCharCode(0), n += t), t = y + b;
@@ -2964,21 +2972,21 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2964
2972
  if ("string" != typeof p) {
2965
2973
  throw new P(`Cannot pass non-string to C++ string type ${c}`);
2966
2974
  }
2967
- var n = f(p), t = Zd(4 + n + b);
2968
- E[t >> 2] = n / b;
2975
+ var n = f(p), t = $d(4 + n + b);
2976
+ D[t >> 2] = n / b;
2969
2977
  e(p, t + 4, n + b);
2970
2978
  null !== k && k.push(Bc, t);
2971
2979
  return t;
2972
- }, argPackAdvance:8, readValueFromPointer:Oc, L(k) {
2980
+ }, argPackAdvance:8, readValueFromPointer:Oc, M(k) {
2973
2981
  Bc(k);
2974
2982
  }});
2975
2983
  }, _embind_register_value_object:(a, b, c, d, e, f) => {
2976
- Mc[a] = {name:Q(b), Na:V(c, d), O:V(e, f), eb:[],};
2984
+ Mc[a] = {name:Q(b), Oa:V(c, d), P:V(e, f), fb:[],};
2977
2985
  }, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, p, n) => {
2978
- Mc[a].eb.push({Ob:Q(b), Ub:c, Sb:V(d, e), Tb:f, kc:g, jc:V(k, p), lc:n,});
2986
+ Mc[a].fb.push({Pb:Q(b), Vb:c, Tb:V(d, e), Ub:f, lc:g, kc:V(k, p), mc:n,});
2979
2987
  }, _embind_register_void:(a, b) => {
2980
2988
  b = Q(b);
2981
- Rc(a, {Ic:!0, name:b, argPackAdvance:0, fromWireType:() => {
2989
+ Rc(a, {Jc:!0, name:b, argPackAdvance:0, fromWireType:() => {
2982
2990
  }, toWireType:() => {
2983
2991
  },});
2984
2992
  }, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => A.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
@@ -2986,26 +2994,26 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
2986
2994
  }, _emval_as:(a, b, c) => {
2987
2995
  a = pc(a);
2988
2996
  b = Dc(b, "emval::as");
2989
- return Gd(b, c, a);
2997
+ return Hd(b, c, a);
2990
2998
  }, _emval_call_method:(a, b, c, d, e) => {
2991
- a = Jd[a];
2999
+ a = Kd[a];
2992
3000
  b = pc(b);
2993
- c = Id(c);
3001
+ c = Jd(c);
2994
3002
  return a(b, b[c], d, e);
2995
- }, _emval_decref:ud, _emval_get_method_caller:(a, b, c) => {
2996
- var d = Ld(a, b), e = d.shift();
3003
+ }, _emval_decref:vd, _emval_get_method_caller:(a, b, c) => {
3004
+ var d = Md(a, b), e = d.shift();
2997
3005
  a--;
2998
3006
  var f = Array(a);
2999
3007
  b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
3000
- return Kd(mc(b, (g, k, p, n) => {
3008
+ return Ld(mc(b, (g, k, p, n) => {
3001
3009
  for (var t = 0, x = 0; x < a; ++x) {
3002
3010
  f[x] = d[x].readValueFromPointer(n + t), t += d[x].argPackAdvance;
3003
3011
  }
3004
- g = 1 === c ? Md(k, f) : k.apply(g, f);
3005
- return Gd(e, p, g);
3012
+ g = 1 === c ? Nd(k, f) : k.apply(g, f);
3013
+ return Hd(e, p, g);
3006
3014
  }));
3007
3015
  }, _emval_get_module_property:a => {
3008
- a = Id(a);
3016
+ a = Jd(a);
3009
3017
  return qc(m[a]);
3010
3018
  }, _emval_get_property:(a, b) => {
3011
3019
  a = pc(a);
@@ -3013,10 +3021,10 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
3013
3021
  return qc(a[b]);
3014
3022
  }, _emval_incref:a => {
3015
3023
  9 < a && (oc[a + 1] += 1);
3016
- }, _emval_new_array:() => qc([]), _emval_new_cstring:a => qc(Id(a)), _emval_new_object:() => qc({}), _emval_run_destructors:a => {
3024
+ }, _emval_new_array:() => qc([]), _emval_new_cstring:a => qc(Jd(a)), _emval_new_object:() => qc({}), _emval_run_destructors:a => {
3017
3025
  var b = pc(a);
3018
3026
  Nc(b);
3019
- ud(a);
3027
+ vd(a);
3020
3028
  }, _emval_set_property:(a, b, c) => {
3021
3029
  a = pc(a);
3022
3030
  b = pc(b);
@@ -3045,7 +3053,7 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
3045
3053
  B[c + 16 >> 2] = a.getMonth();
3046
3054
  B[c + 20 >> 2] = a.getFullYear() - 1900;
3047
3055
  B[c + 24 >> 2] = a.getDay();
3048
- B[c + 28 >> 2] = (Nd(a.getFullYear()) ? Od : Pd)[a.getMonth()] + a.getDate() - 1 | 0;
3056
+ B[c + 28 >> 2] = (Od(a.getFullYear()) ? Pd : Qd)[a.getMonth()] + a.getDate() - 1 | 0;
3049
3057
  B[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
3050
3058
  b = (new Date(a.getFullYear(), 6, 1)).getTimezoneOffset();
3051
3059
  var d = (new Date(a.getFullYear(), 0, 1)).getTimezoneOffset();
@@ -3054,22 +3062,22 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
3054
3062
  var e = (new Date()).getFullYear(), f = new Date(e, 0, 1), g = new Date(e, 6, 1);
3055
3063
  e = f.getTimezoneOffset();
3056
3064
  var k = g.getTimezoneOffset();
3057
- E[a >> 2] = 60 * Math.max(e, k);
3065
+ D[a >> 2] = 60 * Math.max(e, k);
3058
3066
  B[b >> 2] = Number(e != k);
3059
3067
  a = p => p.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
3060
3068
  f = a(f);
3061
3069
  g = a(g);
3062
- k < e ? (qb(f, A, c, 17), qb(g, A, d, 17)) : (qb(f, A, d, 17), qb(g, A, c, 17));
3070
+ k < e ? (sb(f, A, c, 17), sb(g, A, d, 17)) : (sb(f, A, d, 17), sb(g, A, c, 17));
3063
3071
  }, emscripten_asm_const_int:(a, b, c) => {
3064
- Qd.length = 0;
3072
+ Rd.length = 0;
3065
3073
  for (var d; d = A[b++];) {
3066
3074
  var e = 105 != d;
3067
3075
  e &= 112 != d;
3068
3076
  c += e && c % 8 ? 4 : 0;
3069
- Qd.push(112 == d ? E[c >> 2] : 105 == d ? B[c >> 2] : Ha[c >> 3]);
3077
+ Rd.push(112 == d ? D[c >> 2] : 105 == d ? B[c >> 2] : Ia[c >> 3]);
3070
3078
  c += e ? 8 : 4;
3071
3079
  }
3072
- return bb[a](...Qd);
3080
+ return db[a](...Rd);
3073
3081
  }, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:a => {
3074
3082
  var b = A.length;
3075
3083
  a >>>= 0;
@@ -3082,10 +3090,10 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
3082
3090
  var e = Math;
3083
3091
  d = Math.max(a, d);
3084
3092
  a: {
3085
- e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Aa.buffer.byteLength + 65535) / 65536;
3093
+ e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Ba.buffer.byteLength + 65535) / 65536;
3086
3094
  try {
3087
- Aa.grow(e);
3088
- Ia();
3095
+ Ba.grow(e);
3096
+ Ja();
3089
3097
  var f = 1;
3090
3098
  break a;
3091
3099
  } catch (g) {
@@ -3099,9 +3107,9 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
3099
3107
  return !1;
3100
3108
  }, environ_get:(a, b) => {
3101
3109
  var c = 0;
3102
- Td().forEach((d, e) => {
3110
+ Ud().forEach((d, e) => {
3103
3111
  var f = b + c;
3104
- e = E[a + 4 * e >> 2] = f;
3112
+ e = D[a + 4 * e >> 2] = f;
3105
3113
  for (f = 0; f < d.length; ++f) {
3106
3114
  z[e++] = d.charCodeAt(f);
3107
3115
  }
@@ -3110,47 +3118,47 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
3110
3118
  });
3111
3119
  return 0;
3112
3120
  }, environ_sizes_get:(a, b) => {
3113
- var c = Td();
3114
- E[a >> 2] = c.length;
3121
+ var c = Ud();
3122
+ D[a >> 2] = c.length;
3115
3123
  var d = 0;
3116
3124
  c.forEach(e => d += e.length + 1);
3117
- E[b >> 2] = d;
3125
+ D[b >> 2] = d;
3118
3126
  return 0;
3119
3127
  }, fd_close:function(a) {
3120
3128
  try {
3121
- var b = Tb(a);
3122
- if (null === b.W) {
3129
+ var b = Vb(a);
3130
+ if (null === b.X) {
3123
3131
  throw new N(8);
3124
3132
  }
3125
- b.Ka && (b.Ka = null);
3133
+ b.La && (b.La = null);
3126
3134
  try {
3127
3135
  b.m.close && b.m.close(b);
3128
3136
  } catch (c) {
3129
3137
  throw c;
3130
3138
  } finally {
3131
- Gb[b.W] = null;
3139
+ Ib[b.X] = null;
3132
3140
  }
3133
- b.W = null;
3141
+ b.X = null;
3134
3142
  return 0;
3135
3143
  } catch (c) {
3136
3144
  if ("undefined" == typeof lc || "ErrnoError" !== c.name) {
3137
3145
  throw c;
3138
3146
  }
3139
- return c.$;
3147
+ return c.aa;
3140
3148
  }
3141
3149
  }, fd_read:function(a, b, c, d) {
3142
3150
  try {
3143
3151
  a: {
3144
- var e = Tb(a);
3152
+ var e = Vb(a);
3145
3153
  a = b;
3146
3154
  for (var f, g = b = 0; g < c; g++) {
3147
- var k = E[a >> 2], p = E[a + 4 >> 2];
3155
+ var k = D[a >> 2], p = D[a + 4 >> 2];
3148
3156
  a += 8;
3149
3157
  var n = e, t = f, x = z;
3150
3158
  if (0 > p || 0 > t) {
3151
3159
  throw new N(28);
3152
3160
  }
3153
- if (null === n.W) {
3161
+ if (null === n.X) {
3154
3162
  throw new N(8);
3155
3163
  }
3156
3164
  if (1 === (n.flags & 2097155)) {
@@ -3172,7 +3180,7 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
3172
3180
  y || (n.position += l);
3173
3181
  var u = l;
3174
3182
  if (0 > u) {
3175
- var q = -1;
3183
+ var r = -1;
3176
3184
  break a;
3177
3185
  }
3178
3186
  b += u;
@@ -3181,15 +3189,15 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
3181
3189
  }
3182
3190
  "undefined" != typeof f && (f += u);
3183
3191
  }
3184
- q = b;
3192
+ r = b;
3185
3193
  }
3186
- E[d >> 2] = q;
3194
+ D[d >> 2] = r;
3187
3195
  return 0;
3188
- } catch (D) {
3189
- if ("undefined" == typeof lc || "ErrnoError" !== D.name) {
3190
- throw D;
3196
+ } catch (C) {
3197
+ if ("undefined" == typeof lc || "ErrnoError" !== C.name) {
3198
+ throw C;
3191
3199
  }
3192
- return D.$;
3200
+ return C.aa;
3193
3201
  }
3194
3202
  }, fd_seek:function(a, b, c, d, e) {
3195
3203
  b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
@@ -3197,32 +3205,32 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
3197
3205
  if (isNaN(b)) {
3198
3206
  return 61;
3199
3207
  }
3200
- var f = Tb(a);
3208
+ var f = Vb(a);
3201
3209
  hc(f, b, d);
3202
- Ya = [f.position >>> 0, (Xa = f.position, 1.0 <= +Math.abs(Xa) ? 0.0 < Xa ? +Math.floor(Xa / 4294967296.0) >>> 0 : ~~+Math.ceil((Xa - +(~~Xa >>> 0)) / 4294967296.0) >>> 0 : 0)];
3203
- B[e >> 2] = Ya[0];
3204
- B[e + 4 >> 2] = Ya[1];
3205
- f.Ka && 0 === b && 0 === d && (f.Ka = null);
3210
+ $a = [f.position >>> 0, (Za = f.position, 1.0 <= +Math.abs(Za) ? 0.0 < Za ? +Math.floor(Za / 4294967296.0) >>> 0 : ~~+Math.ceil((Za - +(~~Za >>> 0)) / 4294967296.0) >>> 0 : 0)];
3211
+ B[e >> 2] = $a[0];
3212
+ B[e + 4 >> 2] = $a[1];
3213
+ f.La && 0 === b && 0 === d && (f.La = null);
3206
3214
  return 0;
3207
3215
  } catch (g) {
3208
3216
  if ("undefined" == typeof lc || "ErrnoError" !== g.name) {
3209
3217
  throw g;
3210
3218
  }
3211
- return g.$;
3219
+ return g.aa;
3212
3220
  }
3213
3221
  }, fd_write:function(a, b, c, d) {
3214
3222
  try {
3215
3223
  a: {
3216
- var e = Tb(a);
3224
+ var e = Vb(a);
3217
3225
  a = b;
3218
3226
  for (var f, g = b = 0; g < c; g++) {
3219
- var k = E[a >> 2], p = E[a + 4 >> 2];
3227
+ var k = D[a >> 2], p = D[a + 4 >> 2];
3220
3228
  a += 8;
3221
3229
  var n = e, t = k, x = p, y = f, l = z;
3222
3230
  if (0 > x || 0 > y) {
3223
3231
  throw new N(28);
3224
3232
  }
3225
- if (null === n.W) {
3233
+ if (null === n.X) {
3226
3234
  throw new N(8);
3227
3235
  }
3228
3236
  if (0 === (n.flags & 2097155)) {
@@ -3241,91 +3249,91 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
3241
3249
  } else if (!n.seekable) {
3242
3250
  throw new N(70);
3243
3251
  }
3244
- var q = n.m.write(n, l, t, x, y, void 0);
3245
- u || (n.position += q);
3246
- var D = q;
3247
- if (0 > D) {
3248
- var F = -1;
3252
+ var r = n.m.write(n, l, t, x, y, void 0);
3253
+ u || (n.position += r);
3254
+ var C = r;
3255
+ if (0 > C) {
3256
+ var G = -1;
3249
3257
  break a;
3250
3258
  }
3251
- b += D;
3252
- "undefined" != typeof f && (f += D);
3259
+ b += C;
3260
+ "undefined" != typeof f && (f += C);
3253
3261
  }
3254
- F = b;
3262
+ G = b;
3255
3263
  }
3256
- E[d >> 2] = F;
3264
+ D[d >> 2] = G;
3257
3265
  return 0;
3258
3266
  } catch (w) {
3259
3267
  if ("undefined" == typeof lc || "ErrnoError" !== w.name) {
3260
3268
  throw w;
3261
3269
  }
3262
- return w.$;
3270
+ return w.aa;
3263
3271
  }
3264
- }, invoke_vii:$d, isWindowsBrowser:function() {
3272
+ }, invoke_vii:ae, isWindowsBrowser:function() {
3265
3273
  return -1 < navigator.platform.indexOf("Win");
3266
- }, strftime:Wd, strftime_l:(a, b, c, d) => Wd(a, b, c, d)}, X = function() {
3274
+ }, strftime:Xd, strftime_l:(a, b, c, d) => Xd(a, b, c, d)}, Y = function() {
3267
3275
  function a(c) {
3268
- X = c.exports;
3269
- Aa = X.memory;
3270
- Ia();
3271
- gd = X.__indirect_function_table;
3272
- Ka.unshift(X.__wasm_call_ctors);
3273
- Na--;
3274
- m.monitorRunDependencies?.(Na);
3275
- 0 == Na && (null !== Oa && (clearInterval(Oa), Oa = null), Pa && (c = Pa, Pa = null, c()));
3276
- return X;
3277
- }
3278
- var b = {env:ae, wasi_snapshot_preview1:ae,};
3279
- Na++;
3280
- m.monitorRunDependencies?.(Na);
3276
+ Y = c.exports;
3277
+ Ba = Y.memory;
3278
+ Ja();
3279
+ gd = Y.__indirect_function_table;
3280
+ La.unshift(Y.__wasm_call_ctors);
3281
+ Oa--;
3282
+ m.monitorRunDependencies?.(Oa);
3283
+ 0 == Oa && (null !== Pa && (clearInterval(Pa), Pa = null), Qa && (c = Qa, Qa = null, c()));
3284
+ return Y;
3285
+ }
3286
+ var b = {env:be, wasi_snapshot_preview1:be,};
3287
+ Oa++;
3288
+ m.monitorRunDependencies?.(Oa);
3281
3289
  if (m.instantiateWasm) {
3282
3290
  try {
3283
3291
  return m.instantiateWasm(b, a);
3284
3292
  } catch (c) {
3285
- ya(`Module.instantiateWasm callback failed with error: ${c}`), ca(c);
3293
+ za(`Module.instantiateWasm callback failed with error: ${c}`), ca(c);
3286
3294
  }
3287
3295
  }
3288
- Sa ||= Ra("canvas_advanced.wasm") ? "canvas_advanced.wasm" : m.locateFile ? m.locateFile("canvas_advanced.wasm", sa) : sa + "canvas_advanced.wasm";
3289
- Wa(b, function(c) {
3296
+ Ta ||= Sa("canvas_advanced.wasm") ? "canvas_advanced.wasm" : m.locateFile ? m.locateFile("canvas_advanced.wasm", sa) : sa + "canvas_advanced.wasm";
3297
+ Xa(b, function(c) {
3290
3298
  a(c.instance);
3291
3299
  }).catch(ca);
3292
3300
  return {};
3293
- }(), Bc = a => (Bc = X.free)(a), Zd = a => (Zd = X.malloc)(a), Ac = a => (Ac = X.__getTypeName)(a), Za = m._ma_device__on_notification_unlocked = a => (Za = m._ma_device__on_notification_unlocked = X.ma_device__on_notification_unlocked)(a);
3294
- m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = X.ma_malloc_emscripten)(a, b);
3295
- m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = X.ma_free_emscripten)(a, b);
3296
- var $a = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => ($a = m._ma_device_process_pcm_frames_capture__webaudio = X.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), ab = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (ab = m._ma_device_process_pcm_frames_playback__webaudio = X.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), be = (a, b) => (be = X.setThrew)(a, b), ce = a => (ce = X._emscripten_stack_restore)(a), de = () => (de = X.emscripten_stack_get_current)();
3297
- m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = X.dynCall_iiji)(a, b, c, d, e);
3298
- m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = X.dynCall_jiji)(a, b, c, d, e);
3299
- m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = X.dynCall_iiiji)(a, b, c, d, e, f);
3300
- m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = X.dynCall_iij)(a, b, c, d);
3301
- m.dynCall_jii = (a, b, c) => (m.dynCall_jii = X.dynCall_jii)(a, b, c);
3302
- m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = X.dynCall_viijii)(a, b, c, d, e, f, g);
3303
- m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = X.dynCall_iiiiij)(a, b, c, d, e, f, g);
3304
- m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj = X.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
3305
- m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj = X.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
3306
- function $d(a, b, c) {
3307
- var d = de();
3301
+ }(), Bc = a => (Bc = Y.free)(a), $d = a => ($d = Y.malloc)(a), Ac = a => (Ac = Y.__getTypeName)(a), ab = m._ma_device__on_notification_unlocked = a => (ab = m._ma_device__on_notification_unlocked = Y.ma_device__on_notification_unlocked)(a);
3302
+ m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = Y.ma_malloc_emscripten)(a, b);
3303
+ m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = Y.ma_free_emscripten)(a, b);
3304
+ var bb = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (bb = m._ma_device_process_pcm_frames_capture__webaudio = Y.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), cb = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (cb = m._ma_device_process_pcm_frames_playback__webaudio = Y.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), ce = (a, b) => (ce = Y.setThrew)(a, b), de = a => (de = Y._emscripten_stack_restore)(a), ee = () => (ee = Y.emscripten_stack_get_current)();
3305
+ m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = Y.dynCall_iiji)(a, b, c, d, e);
3306
+ m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = Y.dynCall_jiji)(a, b, c, d, e);
3307
+ m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = Y.dynCall_iiiji)(a, b, c, d, e, f);
3308
+ m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = Y.dynCall_iij)(a, b, c, d);
3309
+ m.dynCall_jii = (a, b, c) => (m.dynCall_jii = Y.dynCall_jii)(a, b, c);
3310
+ m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = Y.dynCall_viijii)(a, b, c, d, e, f, g);
3311
+ m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = Y.dynCall_iiiiij)(a, b, c, d, e, f, g);
3312
+ m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj = Y.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
3313
+ m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj = Y.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
3314
+ function ae(a, b, c) {
3315
+ var d = ee();
3308
3316
  try {
3309
3317
  hd(a)(b, c);
3310
3318
  } catch (e) {
3311
- ce(d);
3319
+ de(d);
3312
3320
  if (e !== e + 0) {
3313
3321
  throw e;
3314
3322
  }
3315
- be(1, 0);
3323
+ ce(1, 0);
3316
3324
  }
3317
3325
  }
3318
- var ee;
3319
- Pa = function fe() {
3320
- ee || ge();
3321
- ee || (Pa = fe);
3326
+ var fe;
3327
+ Qa = function ge() {
3328
+ fe || he();
3329
+ fe || (Qa = ge);
3322
3330
  };
3323
- function ge() {
3331
+ function he() {
3324
3332
  function a() {
3325
- if (!ee && (ee = !0, m.calledRun = !0, !Ba)) {
3333
+ if (!fe && (fe = !0, m.calledRun = !0, !Ca)) {
3326
3334
  m.noFSInit || ic || (ic = !0, m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? jc("stdin", m.stdin) : ec("/dev/tty", "/dev/stdin"), m.stdout ? jc("stdout", null, m.stdout) : ec("/dev/tty", "/dev/stdout"), m.stderr ? jc("stderr", null, m.stderr) : ec("/dev/tty1", "/dev/stderr"), fc("/dev/stdin", 0), fc("/dev/stdout", 1), fc("/dev/stderr", 1));
3327
- Jb = !1;
3328
- cb(Ka);
3335
+ Lb = !1;
3336
+ eb(La);
3329
3337
  ba(m);
3330
3338
  if (m.onRuntimeInitialized) {
3331
3339
  m.onRuntimeInitialized();
@@ -3333,20 +3341,20 @@ function ge() {
3333
3341
  if (m.postRun) {
3334
3342
  for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
3335
3343
  var b = m.postRun.shift();
3336
- La.unshift(b);
3344
+ Ma.unshift(b);
3337
3345
  }
3338
3346
  }
3339
- cb(La);
3347
+ eb(Ma);
3340
3348
  }
3341
3349
  }
3342
- if (!(0 < Na)) {
3350
+ if (!(0 < Oa)) {
3343
3351
  if (m.preRun) {
3344
3352
  for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
3345
- Ma();
3353
+ Na();
3346
3354
  }
3347
3355
  }
3348
- cb(Ja);
3349
- 0 < Na || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
3356
+ eb(Ka);
3357
+ 0 < Oa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
3350
3358
  setTimeout(function() {
3351
3359
  m.setStatus("");
3352
3360
  }, 1);
@@ -3359,7 +3367,7 @@ if (m.preInit) {
3359
3367
  m.preInit.pop()();
3360
3368
  }
3361
3369
  }
3362
- ge();
3370
+ he();
3363
3371
  moduleRtn = da;
3364
3372
 
3365
3373
 
@@ -3375,7 +3383,7 @@ moduleRtn = da;
3375
3383
  /* 2 */
3376
3384
  /***/ ((module) => {
3377
3385
 
3378
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.33.2","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3386
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.34.0","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3379
3387
 
3380
3388
  /***/ }),
3381
3389
  /* 3 */
@@ -4618,9 +4626,18 @@ var BindableArtboard = /** @class */ (function (_super) {
4618
4626
  _this.nativeArtboard = artboard;
4619
4627
  return _this;
4620
4628
  }
4629
+ Object.defineProperty(BindableArtboard.prototype, "viewModel", {
4630
+ set: function (value) {
4631
+ this.nativeViewModel = value.nativeInstance;
4632
+ },
4633
+ enumerable: false,
4634
+ configurable: true
4635
+ });
4621
4636
  BindableArtboard.prototype.destroy = function () {
4637
+ var _a;
4622
4638
  if (this.selfUnref) {
4623
4639
  this.nativeArtboard.unref();
4640
+ (_a = this.nativeViewModel) === null || _a === void 0 ? void 0 : _a.unref();
4624
4641
  }
4625
4642
  };
4626
4643
  return BindableArtboard;
@@ -5656,6 +5673,13 @@ var RiveFile = /** @class */ (function () {
5656
5673
  var nativeBindableArtboard = this.file.internalBindableArtboardFromArtboard(artboard);
5657
5674
  return this.createBindableArtboard(nativeBindableArtboard);
5658
5675
  };
5676
+ RiveFile.prototype.viewModelByName = function (name) {
5677
+ var viewModel = this.file.viewModelByName(name);
5678
+ if (viewModel !== null) {
5679
+ return new ViewModel(viewModel);
5680
+ }
5681
+ return null;
5682
+ };
5659
5683
  // Error message for missing source or buffer
5660
5684
  RiveFile.missingErrorMessage = "Rive source file or data buffer required";
5661
5685
  // Error message for file load error
@@ -5702,6 +5726,8 @@ var Rive = /** @class */ (function () {
5702
5726
  this._devicePixelRatioUsed = 1;
5703
5727
  // Whether the canvas element's size is 0
5704
5728
  this._hasZeroSize = false;
5729
+ // Whether a draw operation needs to be forced
5730
+ this._needsRedraw = false;
5705
5731
  // Audio event listener
5706
5732
  this._audioEventListener = null;
5707
5733
  // draw method bound to the class
@@ -6164,7 +6190,7 @@ var Rive = /** @class */ (function () {
6164
6190
  if (!this._hasZeroSize) {
6165
6191
  // If there was no dirt on this frame, do not clear and draw
6166
6192
  if (this.drawOptimization == DrawOptimizationOptions.AlwaysDraw ||
6167
- this.artboard.didChange()) {
6193
+ this.artboard.didChange() || this._needsRedraw) {
6168
6194
  // Canvas must be wiped to prevent artifacts
6169
6195
  renderer.clear();
6170
6196
  renderer.save();
@@ -6173,6 +6199,7 @@ var Rive = /** @class */ (function () {
6173
6199
  this.artboard.draw(renderer);
6174
6200
  renderer.restore();
6175
6201
  renderer.flush();
6202
+ this._needsRedraw = false;
6176
6203
  }
6177
6204
  }
6178
6205
  // Check for any animations that looped
@@ -6497,6 +6524,7 @@ var Rive = /** @class */ (function () {
6497
6524
  this.devicePixelRatioUsed = dpr;
6498
6525
  this.canvas.width = dpr * width;
6499
6526
  this.canvas.height = dpr * height;
6527
+ this._needsRedraw = true;
6500
6528
  this.resizeToCanvas();
6501
6529
  this.drawFrame();
6502
6530
  if (this.layout.fit === Fit.Layout) {
@@ -7095,11 +7123,8 @@ var Rive = /** @class */ (function () {
7095
7123
  return null;
7096
7124
  };
7097
7125
  Rive.prototype.viewModelByName = function (name) {
7098
- var viewModel = this.file.viewModelByName(name);
7099
- if (viewModel !== null) {
7100
- return new ViewModel(viewModel);
7101
- }
7102
- return null;
7126
+ var _a;
7127
+ return (_a = this.riveFile) === null || _a === void 0 ? void 0 : _a.viewModelByName(name);
7103
7128
  };
7104
7129
  Rive.prototype.enums = function () {
7105
7130
  if (this._dataEnums === null) {
@@ -7942,7 +7967,7 @@ var ViewModelInstanceArtboard = /** @class */ (function (_super) {
7942
7967
  }
7943
7968
  Object.defineProperty(ViewModelInstanceArtboard.prototype, "value", {
7944
7969
  set: function (artboard) {
7945
- var _a;
7970
+ var _a, _b;
7946
7971
  var bindableArtboard;
7947
7972
  if (artboard.isBindableArtboard) {
7948
7973
  bindableArtboard = artboard;
@@ -7951,6 +7976,9 @@ var ViewModelInstanceArtboard = /** @class */ (function (_super) {
7951
7976
  bindableArtboard = artboard.file.internalBindableArtboardFromArtboard(artboard.nativeArtboard);
7952
7977
  }
7953
7978
  this._viewModelInstanceValue.value((_a = bindableArtboard === null || bindableArtboard === void 0 ? void 0 : bindableArtboard.nativeArtboard) !== null && _a !== void 0 ? _a : null);
7979
+ if (bindableArtboard === null || bindableArtboard === void 0 ? void 0 : bindableArtboard.nativeViewModel) {
7980
+ this._viewModelInstanceValue.viewModelInstance((_b = bindableArtboard === null || bindableArtboard === void 0 ? void 0 : bindableArtboard.nativeViewModel) !== null && _b !== void 0 ? _b : null);
7981
+ }
7954
7982
  },
7955
7983
  enumerable: false,
7956
7984
  configurable: true