@rive-app/webgl2-advanced 2.27.2 → 2.27.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/webgl2-advanced",
3
- "version": "2.27.2",
3
+ "version": "2.27.4",
4
4
  "description": "Rive's webgl2 low-level canvas based web api.",
5
5
  "main": "webgl2_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -917,6 +917,9 @@ export declare class ViewModelInstanceList extends ViewModelInstanceValue {
917
917
  removeInstanceAt(index: number): void;
918
918
  instanceAt(index: number): ViewModelInstance;
919
919
  }
920
+ export declare class ViewModelInstanceAssetImage extends ViewModelInstanceValue {
921
+ set value(image: Image);
922
+ }
920
923
 
921
924
  export declare class ViewModelInstance {
922
925
  get propertyCount(): number;
@@ -928,6 +931,7 @@ export declare class ViewModelInstance {
928
931
  trigger(path: string): ViewModelInstanceTrigger;
929
932
  list(path: string): ViewModelInstanceList;
930
933
  viewModel(path: string): ViewModelInstance;
934
+ image(path: string): ViewModelInstanceAssetImage;
931
935
  replaceViewModel(path: string, value: ViewModelInstance): boolean;
932
936
  incrementReferenceCount(): void;
933
937
  decrementReferenceCount(): void;
@@ -22,7 +22,7 @@ function da() {
22
22
  console.error(m);
23
23
  }
24
24
  });
25
- this.kb();
25
+ this.lb();
26
26
  e && e.Nb();
27
27
  }
28
28
  let b = 0, c = 0, d = new Map(), e = null, f = null;
@@ -49,7 +49,7 @@ function da() {
49
49
  };
50
50
  }();
51
51
  };
52
- this.kb = function() {
52
+ this.lb = function() {
53
53
  };
54
54
  }
55
55
  function ea() {
@@ -115,11 +115,11 @@ k.onRuntimeInitialized = function() {
115
115
  },});
116
116
  k.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
117
117
  this.__parent.__construct.call(this);
118
- this.gb = [];
118
+ this.hb = [];
119
119
  }, addLoader:function(e) {
120
- this.gb.push(e);
120
+ this.hb.push(e);
121
121
  }, loadContents:function(e, f) {
122
- for (let g of this.gb) {
122
+ for (let g of this.hb) {
123
123
  if (g.loadContents(e, f)) {
124
124
  return !0;
125
125
  }
@@ -160,7 +160,7 @@ k.onRuntimeInitialized = function() {
160
160
  this.flush = function() {
161
161
  console.assert(0 == this.la);
162
162
  e.add(this);
163
- d.Va || c();
163
+ d.Wa || c();
164
164
  };
165
165
  this["delete"] = function() {
166
166
  };
@@ -177,7 +177,7 @@ k.onRuntimeInitialized = function() {
177
177
  z.Ka = y;
178
178
  z.F = q;
179
179
  z.La = q.width;
180
- z.Wa = q.height;
180
+ z.Xa = q.height;
181
181
  z.T = u;
182
182
  var A = z.delete;
183
183
  z.delete = function() {
@@ -260,9 +260,9 @@ k.onRuntimeInitialized = function() {
260
260
  A.width = 1;
261
261
  A.height = 1;
262
262
  d = b(A, z);
263
- d.Va = !!d.T.getExtension("WEBGL_shader_pixel_local_storage");
263
+ d.Wa = !!d.T.getExtension("WEBGL_shader_pixel_local_storage");
264
264
  d.Cb = Math.min(d.T.getParameter(d.T.MAX_RENDERBUFFER_SIZE), d.T.getParameter(d.T.MAX_TEXTURE_SIZE));
265
- d.Ja = !d.Va;
265
+ d.Ja = !d.Wa;
266
266
  if (z = d.T.getExtension("WEBGL_debug_renderer_info")) {
267
267
  A = d.T.getParameter(z.UNMASKED_RENDERER_WEBGL), d.T.getParameter(z.UNMASKED_VENDOR_WEBGL).includes("Google") && A.includes("ANGLE Metal Renderer") && (d.Ja = !1);
268
268
  }
@@ -288,7 +288,7 @@ k.onRuntimeInitialized = function() {
288
288
  k.requestAnimationFrame = t.requestAnimationFrame.bind(t);
289
289
  k.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
290
290
  k.enableFPSCounter = t.Lb.bind(t);
291
- t.kb = c;
291
+ t.lb = c;
292
292
  k.resolveAnimationFrame = c;
293
293
  let v = k.load;
294
294
  k.load = function(q, u, y = !0) {
@@ -301,8 +301,8 @@ k.onRuntimeInitialized = function() {
301
301
  k.WebGL2Renderer.prototype.clear = function() {
302
302
  ja(this.Ka);
303
303
  const q = this.F;
304
- if (this.La != q.width || this.Wa != q.height) {
305
- this.resize(q.width, q.height), this.La = q.width, this.Wa = q.height;
304
+ if (this.La != q.width || this.Xa != q.height) {
305
+ this.resize(q.width, q.height), this.La = q.width, this.Xa = q.height;
306
306
  }
307
307
  x.call(this);
308
308
  };
@@ -421,7 +421,7 @@ function Oa(a, b) {
421
421
  return Na(c, a, b);
422
422
  }));
423
423
  }
424
- var Pa, Qa, Ua = {516495:(a, b, c, d, e) => {
424
+ var Pa, Qa, Ua = {517895:(a, b, c, d, e) => {
425
425
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
426
426
  return 0;
427
427
  }
@@ -433,7 +433,7 @@ var Pa, Qa, Ua = {516495:(a, b, c, d, e) => {
433
433
  window.h.I.Na = c;
434
434
  window.h.ja = {};
435
435
  window.h.ja.stopped = d;
436
- window.h.ja.tb = e;
436
+ window.h.ja.ub = e;
437
437
  let f = window.h;
438
438
  f.D = [];
439
439
  f.oc = function(g) {
@@ -464,29 +464,31 @@ var Pa, Qa, Ua = {516495:(a, b, c, d, e) => {
464
464
  f.va = function(g) {
465
465
  return f.D[g];
466
466
  };
467
- f.xb = ["touchend", "click"];
467
+ f.Va = ["touchend", "click"];
468
468
  f.unlock = function() {
469
469
  for (var g = 0; g < f.D.length; ++g) {
470
470
  var l = f.D[g];
471
- null != l && null != l.J && l.state === f.ja.tb && l.J.resume().then(() => {
472
- Ra(l.lb);
471
+ null != l && null != l.J && l.state === f.ja.ub && l.J.resume().then(() => {
472
+ Ra(l.mb);
473
473
  }, p => {
474
474
  console.error("Failed to resume audiocontext", p);
475
475
  });
476
476
  }
477
- f.xb.map(function(p) {
477
+ f.Va.map(function(p) {
478
478
  document.removeEventListener(p, f.unlock, !0);
479
479
  });
480
480
  };
481
- f.xb.map(function(g) {
481
+ f.Va.map(function(g) {
482
482
  document.addEventListener(g, f.unlock, !0);
483
483
  });
484
484
  }
485
485
  window.h.Da += 1;
486
486
  return 1;
487
- }, 518673:() => {
488
- "undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
489
- }, 518837:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 518941:() => {
487
+ }, 520073:() => {
488
+ "undefined" !== typeof window.h && (window.h.Va.map(function(a) {
489
+ document.removeEventListener(a, window.h.unlock, !0);
490
+ }), --window.h.Da, 0 === window.h.Da && delete window.h);
491
+ }, 520377:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 520481:() => {
490
492
  try {
491
493
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
492
494
  a.close();
@@ -494,7 +496,7 @@ var Pa, Qa, Ua = {516495:(a, b, c, d, e) => {
494
496
  } catch (c) {
495
497
  return 0;
496
498
  }
497
- }, 519112:(a, b, c, d, e, f) => {
499
+ }, 520652:(a, b, c, d, e, f) => {
498
500
  if ("undefined" === typeof window.h) {
499
501
  return -1;
500
502
  }
@@ -538,23 +540,23 @@ var Pa, Qa, Ua = {516495:(a, b, c, d, e) => {
538
540
  console.log("Failed to get user media: " + p);
539
541
  });
540
542
  a == window.h.I.Ba && g.Z.connect(g.J.destination);
541
- g.lb = f;
543
+ g.mb = f;
542
544
  return window.h.oc(g);
543
- }, 521989:a => window.h.va(a).J.sampleRate, 522062:a => {
545
+ }, 523529:a => window.h.va(a).J.sampleRate, 523602:a => {
544
546
  a = window.h.va(a);
545
547
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
546
548
  }, a.Z.disconnect(), a.Z = void 0);
547
549
  void 0 !== a.Ea && (a.Ea.disconnect(), a.Ea = void 0);
548
550
  a.J.close();
549
551
  a.J = void 0;
550
- a.lb = void 0;
551
- }, 522462:a => {
552
+ a.mb = void 0;
553
+ }, 524002:a => {
552
554
  window.h.yb(a);
553
- }, 522512:a => {
555
+ }, 524052:a => {
554
556
  a = window.h.va(a);
555
557
  a.J.resume();
556
- a.state = window.h.ja.tb;
557
- }, 522651:a => {
558
+ a.state = window.h.ja.ub;
559
+ }, 524191:a => {
558
560
  a = window.h.va(a);
559
561
  a.J.suspend();
560
562
  a.state = window.h.ja.stopped;
@@ -713,12 +715,12 @@ var kb = {open:function(a) {
713
715
  }, ua:function(a) {
714
716
  a.s.V.ua(a.s);
715
717
  }, read:function(a, b, c, d) {
716
- if (!a.s || !a.s.V.fb) {
718
+ if (!a.s || !a.s.V.gb) {
717
719
  throw new N(60);
718
720
  }
719
721
  for (var e = 0, f = 0; f < d; f++) {
720
722
  try {
721
- var g = a.s.V.fb(a.s);
723
+ var g = a.s.V.gb(a.s);
722
724
  } catch (l) {
723
725
  throw new N(29);
724
726
  }
@@ -746,7 +748,7 @@ var kb = {open:function(a) {
746
748
  }
747
749
  d && (a.node.timestamp = Date.now());
748
750
  return e;
749
- },}, lb = {fb:function() {
751
+ },}, lb = {gb:function() {
750
752
  a: {
751
753
  if (!db.length) {
752
754
  var a = null;
@@ -785,9 +787,9 @@ var O = {O:null, U() {
785
787
  if (24576 === (c & 61440) || 4096 === (c & 61440)) {
786
788
  throw new N(63);
787
789
  }
788
- O.O || (O.O = {dir:{node:{Y:O.l.Y, P:O.l.P, ma:O.l.ma, za:O.l.za, rb:O.l.rb, wb:O.l.wb, sb:O.l.sb, pb:O.l.pb, Fa:O.l.Fa}, stream:{ba:O.m.ba}}, file:{node:{Y:O.l.Y, P:O.l.P}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, ta:O.m.ta, hb:O.m.hb, jb:O.m.jb}}, link:{node:{Y:O.l.Y, P:O.l.P, na:O.l.na}, stream:{}}, Xa:{node:{Y:O.l.Y, P:O.l.P}, stream:ob}});
790
+ O.O || (O.O = {dir:{node:{Y:O.l.Y, P:O.l.P, ma:O.l.ma, za:O.l.za, sb:O.l.sb, xb:O.l.xb, tb:O.l.tb, qb:O.l.qb, Fa:O.l.Fa}, stream:{ba:O.m.ba}}, file:{node:{Y:O.l.Y, P:O.l.P}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, ta:O.m.ta, ib:O.m.ib, kb:O.m.kb}}, link:{node:{Y:O.l.Y, P:O.l.P, na:O.l.na}, stream:{}}, Ya:{node:{Y:O.l.Y, P:O.l.P}, stream:ob}});
789
791
  c = pb(a, b, c, d);
790
- 16384 === (c.mode & 61440) ? (c.l = O.O.dir.node, c.m = O.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = O.O.Xa.node, c.m = O.O.Xa.stream);
792
+ 16384 === (c.mode & 61440) ? (c.l = O.O.dir.node, c.m = O.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = O.O.Ya.node, c.m = O.O.Ya.stream);
791
793
  c.timestamp = Date.now();
792
794
  a && (a.j[b] = c, a.timestamp = c.timestamp);
793
795
  return c;
@@ -826,7 +828,7 @@ var O = {O:null, U() {
826
828
  throw qb[44];
827
829
  }, za(a, b, c, d) {
828
830
  return O.createNode(a, b, c, d);
829
- }, rb(a, b, c) {
831
+ }, sb(a, b, c) {
830
832
  if (16384 === (a.mode & 61440)) {
831
833
  try {
832
834
  var d = rb(b, c);
@@ -844,17 +846,17 @@ var O = {O:null, U() {
844
846
  b.j[c] = a;
845
847
  b.timestamp = a.parent.timestamp;
846
848
  a.parent = b;
847
- }, wb(a, b) {
849
+ }, xb(a, b) {
848
850
  delete a.j[b];
849
851
  a.timestamp = Date.now();
850
- }, sb(a, b) {
852
+ }, tb(a, b) {
851
853
  var c = rb(a, b), d;
852
854
  for (d in c.j) {
853
855
  throw new N(55);
854
856
  }
855
857
  delete a.j[b];
856
858
  a.timestamp = Date.now();
857
- }, pb(a) {
859
+ }, qb(a) {
858
860
  var b = [".", ".."], c;
859
861
  for (c in a.j) {
860
862
  a.j.hasOwnProperty(c) && b.push(c);
@@ -920,7 +922,7 @@ var O = {O:null, U() {
920
922
  }, ta(a, b, c) {
921
923
  nb(a.node, b + c);
922
924
  a.node.v = Math.max(a.node.v, b + c);
923
- }, hb(a, b, c, d, e) {
925
+ }, ib(a, b, c, d, e) {
924
926
  if (32768 !== (a.node.mode & 61440)) {
925
927
  throw new N(43);
926
928
  }
@@ -940,7 +942,7 @@ var O = {O:null, U() {
940
942
  c = !1, b = a.byteOffset;
941
943
  }
942
944
  return {o:b, M:c};
943
- }, jb(a, b, c, d) {
945
+ }, kb(a, b, c, d) {
944
946
  O.m.write(a, b, 0, d, c, !1);
945
947
  return 0;
946
948
  },},};
@@ -955,7 +957,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
955
957
  if (!a) {
956
958
  return {path:"", node:null};
957
959
  }
958
- b = Object.assign({cb:!0, Sa:0}, b);
960
+ b = Object.assign({eb:!0, Sa:0}, b);
959
961
  if (8 < b.Sa) {
960
962
  throw new N(32);
961
963
  }
@@ -967,8 +969,8 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
967
969
  }
968
970
  c = rb(c, a[e]);
969
971
  d = Xa(d + "/" + a[e]);
970
- c.Aa && (!f || f && b.cb) && (c = c.Aa.root);
971
- if (!f || b.bb) {
972
+ c.Aa && (!f || f && b.eb) && (c = c.Aa.root);
973
+ if (!f || b.cb) {
972
974
  for (f = 0; 40960 === (c.mode & 61440);) {
973
975
  if (c = Ab(d), d = bb(Ya(d), c), c = Bb(d, {Sa:b.Sa + 1}).node, 40 < f++) {
974
976
  throw new N(32);
@@ -980,7 +982,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
980
982
  }, Cb = a => {
981
983
  for (var b;;) {
982
984
  if (a === a.parent) {
983
- return a = a.U.ib, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
985
+ return a = a.U.jb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
984
986
  }
985
987
  b = b ? `${a.name}/${b}` : a.name;
986
988
  a = a.parent;
@@ -1075,7 +1077,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1075
1077
  throw new N(10);
1076
1078
  }
1077
1079
  if (!c && !d) {
1078
- var e = Bb(b, {cb:!1});
1080
+ var e = Bb(b, {eb:!1});
1079
1081
  b = e.path;
1080
1082
  e = e.node;
1081
1083
  if (e.Aa) {
@@ -1085,7 +1087,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1085
1087
  throw new N(54);
1086
1088
  }
1087
1089
  }
1088
- b = {type:a, Nc:{}, ib:b, ac:[]};
1090
+ b = {type:a, Nc:{}, jb:b, ac:[]};
1089
1091
  a = a.U(b);
1090
1092
  a.U = b;
1091
1093
  b.root = a;
@@ -1150,7 +1152,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1150
1152
  } else {
1151
1153
  a = Xa(a);
1152
1154
  try {
1153
- e = Bb(a, {bb:!(b & 131072)}).node;
1155
+ e = Bb(a, {cb:!(b & 131072)}).node;
1154
1156
  } catch (f) {
1155
1157
  }
1156
1158
  }
@@ -1176,7 +1178,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1176
1178
  }
1177
1179
  if (b & 512 && !d) {
1178
1180
  c = e;
1179
- c = "string" == typeof c ? Bb(c, {bb:!0}).node : c;
1181
+ c = "string" == typeof c ? Bb(c, {cb:!0}).node : c;
1180
1182
  if (!c.l.P) {
1181
1183
  throw new N(63);
1182
1184
  }
@@ -1281,7 +1283,7 @@ function $b(a, b) {
1281
1283
  }
1282
1284
  function ac() {
1283
1285
  this.M = [void 0];
1284
- this.eb = [];
1286
+ this.fb = [];
1285
1287
  }
1286
1288
  var Q = new ac(), bc = void 0;
1287
1289
  function R(a) {
@@ -1301,7 +1303,7 @@ var S = a => {
1301
1303
  case !1:
1302
1304
  return 4;
1303
1305
  default:
1304
- return Q.ta({qb:1, value:a});
1306
+ return Q.ta({rb:1, value:a});
1305
1307
  }
1306
1308
  };
1307
1309
  function cc(a) {
@@ -1494,7 +1496,7 @@ function Kc(a, b, c, d, e, f, g, l) {
1494
1496
  this.Ob = f;
1495
1497
  this.pa = g;
1496
1498
  this.Jb = l;
1497
- this.mb = [];
1499
+ this.nb = [];
1498
1500
  }
1499
1501
  function Lc(a, b, c) {
1500
1502
  for (; b !== c;) {
@@ -1564,7 +1566,7 @@ function Qc(a, b, c, d) {
1564
1566
  this.Pa = c;
1565
1567
  this.xa = d;
1566
1568
  this.ya = !1;
1567
- this.W = this.dc = this.Ra = this.ob = this.jc = this.cc = void 0;
1569
+ this.W = this.dc = this.Ra = this.pb = this.jc = this.cc = void 0;
1568
1570
  void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
1569
1571
  }
1570
1572
  function Rc(a, b, c) {
@@ -1653,7 +1655,7 @@ function Zc(a, b, c) {
1653
1655
  return Lc(a.g.o, a.g.u.i, b.i);
1654
1656
  }
1655
1657
  function $c(a) {
1656
- a >= Q.h && 0 === --Q.get(a).qb && Q.Tb(a);
1658
+ a >= Q.h && 0 === --Q.get(a).rb && Q.Tb(a);
1657
1659
  }
1658
1660
  function ad(a, b, c) {
1659
1661
  switch(b) {
@@ -1840,9 +1842,9 @@ function Fd(a) {
1840
1842
  var b = a.C;
1841
1843
  sd(b);
1842
1844
  td(b);
1843
- 2 <= a.version && (b.$a = b.getExtension("EXT_disjoint_timer_query_webgl2"));
1844
- if (2 > a.version || !b.$a) {
1845
- b.$a = b.getExtension("EXT_disjoint_timer_query");
1845
+ 2 <= a.version && (b.ab = b.getExtension("EXT_disjoint_timer_query_webgl2"));
1846
+ if (2 > a.version || !b.ab) {
1847
+ b.ab = b.getExtension("EXT_disjoint_timer_query");
1846
1848
  }
1847
1849
  Gd(b);
1848
1850
  (b.getSupportedExtensions() || []).forEach(function(c) {
@@ -2130,7 +2132,7 @@ P("/home/web_user", 16895, 0);
2130
2132
  var b = pb(a, "fd", 16895, 73);
2131
2133
  b.l = {ma:(c, d) => {
2132
2134
  var e = Jb(+d);
2133
- c = {parent:null, U:{ib:"fake"}, l:{na:() => e.path},};
2135
+ c = {parent:null, U:{jb:"fake"}, l:{na:() => e.path},};
2134
2136
  return c.parent = c;
2135
2137
  }};
2136
2138
  return b;
@@ -2141,12 +2143,12 @@ Object.assign(ac.prototype, {get(a) {
2141
2143
  }, has(a) {
2142
2144
  return void 0 !== this.M[a];
2143
2145
  }, ta(a) {
2144
- var b = this.eb.pop() || this.M.length;
2146
+ var b = this.fb.pop() || this.M.length;
2145
2147
  this.M[b] = a;
2146
2148
  return b;
2147
2149
  }, Tb(a) {
2148
2150
  this.M[a] = void 0;
2149
- this.eb.push(a);
2151
+ this.fb.push(a);
2150
2152
  }});
2151
2153
  bc = k.BindingError = class extends Error {
2152
2154
  constructor(a) {
@@ -2231,10 +2233,10 @@ Hc.prototype.deleteLater = function() {
2231
2233
  return this;
2232
2234
  };
2233
2235
  Qc.prototype.Pb = function(a) {
2234
- this.ob && (a = this.ob(a));
2236
+ this.pb && (a = this.pb(a));
2235
2237
  return a;
2236
2238
  };
2237
- Qc.prototype.Za = function(a) {
2239
+ Qc.prototype.$a = function(a) {
2238
2240
  this.W && this.W(a);
2239
2241
  };
2240
2242
  Qc.prototype.argPackAdvance = 8;
@@ -2250,7 +2252,7 @@ Qc.prototype.fromWireType = function(a) {
2250
2252
  }
2251
2253
  var c = this.Pb(a);
2252
2254
  if (!c) {
2253
- return this.Za(a), null;
2255
+ return this.$a(a), null;
2254
2256
  }
2255
2257
  var d = uc(this.i, c);
2256
2258
  if (void 0 !== d) {
@@ -2258,7 +2260,7 @@ Qc.prototype.fromWireType = function(a) {
2258
2260
  return d.g.o = c, d.g.H = a, d.clone();
2259
2261
  }
2260
2262
  d = d.clone();
2261
- this.Za(a);
2263
+ this.$a(a);
2262
2264
  return d;
2263
2265
  }
2264
2266
  d = this.i.Ob(c);
@@ -2408,7 +2410,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2408
2410
  c = S(c);
2409
2411
  var d = [].slice, e = b.i, f = e.N, g = e.A.N, l = e.A.constructor;
2410
2412
  a = $b(a, function() {
2411
- e.A.mb.forEach(function(m) {
2413
+ e.A.nb.forEach(function(m) {
2412
2414
  if (this[m] === g[m]) {
2413
2415
  throw new dc(`Pure virtual function ${m} must be implemented in JavaScript`);
2414
2416
  }
@@ -2444,7 +2446,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2444
2446
  }, _embind_finalize_value_object:function(a) {
2445
2447
  var b = zc[a];
2446
2448
  delete zc[a];
2447
- var c = b.Ra, d = b.W, e = b.ab, f = e.map(g => g.Sb).concat(e.map(g => g.hc));
2449
+ var c = b.Ra, d = b.W, e = b.bb, f = e.map(g => g.Sb).concat(e.map(g => g.hc));
2448
2450
  V([a], f, g => {
2449
2451
  var l = {};
2450
2452
  e.forEach((p, m) => {
@@ -2623,7 +2625,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2623
2625
  m = m[0];
2624
2626
  var v = `${m.name}.${b}`;
2625
2627
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2626
- l && m.i.mb.push(b);
2628
+ l && m.i.nb.push(b);
2627
2629
  var x = m.i.N, n = x[b];
2628
2630
  void 0 === n || void 0 === n.B && n.className !== m.name && n.ha === c - 2 ? (t.ha = c - 2, t.className = m.name, x[b] = t) : (Ic(x, b, v), x[b].B[c - 2] = t);
2629
2631
  V([], p, function(q) {
@@ -2823,9 +2825,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2823
2825
  nc(p);
2824
2826
  },});
2825
2827
  }, _embind_register_value_object:function(a, b, c, d, e, f) {
2826
- zc[a] = {name:U(b), Ra:X(c, d), W:X(e, f), ab:[],};
2828
+ zc[a] = {name:U(b), Ra:X(c, d), W:X(e, f), bb:[],};
2827
2829
  }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, l, p, m) {
2828
- zc[a].ab.push({Mb:U(b), Sb:c, Qb:X(d, e), Rb:f, hc:g, fc:X(l, p), ic:m,});
2830
+ zc[a].bb.push({Mb:U(b), Sb:c, Qb:X(d, e), Rb:f, hc:g, fc:X(l, p), ic:m,});
2829
2831
  }, _embind_register_void:function(a, b) {
2830
2832
  b = U(b);
2831
2833
  W(a, {$b:!0, name:b, argPackAdvance:0, fromWireType:function() {
@@ -2877,7 +2879,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2877
2879
  b = S(b);
2878
2880
  return T(a[b]);
2879
2881
  }, _emval_incref:function(a) {
2880
- 4 < a && (Q.get(a).qb += 1);
2882
+ 4 < a && (Q.get(a).rb += 1);
2881
2883
  }, _emval_new_array:function() {
2882
2884
  return T([]);
2883
2885
  }, _emval_new_cstring:function(a) {
@@ -2966,8 +2968,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2966
2968
  return ja(a) ? 0 : -5;
2967
2969
  }, enable_WEBGL_provoking_vertex:function(a) {
2968
2970
  a = w[a].C;
2969
- a.nb = a.getExtension("WEBGL_provoking_vertex");
2970
- return !!a.nb;
2971
+ a.ob = a.getExtension("WEBGL_provoking_vertex");
2972
+ return !!a.ob;
2971
2973
  }, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
2972
2974
  a = w[a].C;
2973
2975
  a.ca = a.getExtension("WEBGL_shader_pixel_local_storage");
@@ -3151,7 +3153,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3151
3153
  }, glAttachShader:function(a, b) {
3152
3154
  Z.attachShader(wd[a], Ad[b]);
3153
3155
  }, glBindBuffer:function(a, b) {
3154
- 35051 == a ? Z.Ya = b : 35052 == a && (Z.Ma = b);
3156
+ 35051 == a ? Z.Za = b : 35052 == a && (Z.Ma = b);
3155
3157
  Z.bindBuffer(a, vd[b]);
3156
3158
  }, glBindBufferRange:function(a, b, c, d, e) {
3157
3159
  Z.bindBufferRange(a, b, vd[c], d, e);
@@ -3201,7 +3203,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3201
3203
  }, glDeleteBuffers:function(a, b) {
3202
3204
  for (var c = 0; c < a; c++) {
3203
3205
  var d = J[b + 4 * c >> 2], e = vd[d];
3204
- e && (Z.deleteBuffer(e), e.name = 0, vd[d] = null, d == Z.Ya && (Z.Ya = 0), d == Z.Ma && (Z.Ma = 0));
3206
+ e && (Z.deleteBuffer(e), e.name = 0, vd[d] = null, d == Z.Za && (Z.Za = 0), d == Z.Ma && (Z.Ma = 0));
3205
3207
  }
3206
3208
  }, glDeleteFramebuffers:function(a, b) {
3207
3209
  for (var c = 0; c < a; ++c) {
@@ -3323,9 +3325,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3323
3325
  }, glGetUniformLocation:function(a, b) {
3324
3326
  b = b ? M(F, b) : "";
3325
3327
  if (a = wd[a]) {
3326
- var c = a, d = c.oa, e = c.vb, f;
3328
+ var c = a, d = c.oa, e = c.wb, f;
3327
3329
  if (!d) {
3328
- for (c.oa = d = {}, c.ub = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
3330
+ for (c.oa = d = {}, c.vb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
3329
3331
  var g = Z.getActiveUniform(c, f);
3330
3332
  var l = g.name;
3331
3333
  g = g.size;
@@ -3335,7 +3337,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3335
3337
  c.Ua += g;
3336
3338
  e[p] = [g, m];
3337
3339
  for (l = 0; l < g; ++l) {
3338
- d[m] = l, c.ub[m++] = p;
3340
+ d[m] = l, c.vb[m++] = p;
3339
3341
  }
3340
3342
  }
3341
3343
  }
@@ -3344,7 +3346,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3344
3346
  e = b;
3345
3347
  f = Pd(b);
3346
3348
  0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
3347
- if ((e = a.vb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
3349
+ if ((e = a.wb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
3348
3350
  return d;
3349
3351
  }
3350
3352
  } else {
@@ -3360,7 +3362,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3360
3362
  a = wd[a];
3361
3363
  Z.linkProgram(a);
3362
3364
  a.oa = 0;
3363
- a.vb = {};
3365
+ a.wb = {};
3364
3366
  }, glPixelStorei:function(a, b) {
3365
3367
  Z.pixelStorei(a, b);
3366
3368
  }, glRenderbufferStorageMultisample:function(a, b, c, d, e) {
@@ -3403,7 +3405,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3403
3405
  var e = Z.Hb;
3404
3406
  if (e) {
3405
3407
  var f = e.oa[a];
3406
- "number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.ub[a] + (0 < f ? "[" + f + "]" : "")));
3408
+ "number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.vb[a] + (0 < f ? "[" + f + "]" : "")));
3407
3409
  a = f;
3408
3410
  } else {
3409
3411
  Y(1282), a = void 0;
@@ -3425,7 +3427,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3425
3427
  }, glViewport:function(a, b, c, d) {
3426
3428
  Z.viewport(a, b, c, d);
3427
3429
  }, provokingVertexWEBGL:function(a, b) {
3428
- (a = w[a].C.nb) && a.provokingVertexWEBGL(b);
3430
+ (a = w[a].C.ob) && a.provokingVertexWEBGL(b);
3429
3431
  }, strftime_l:(a, b, c, d) => Td(a, b, c, d), upload_image:function(a, b) {
3430
3432
  var c = k.images;
3431
3433
  c && (b = c.get(b)) && (a = w[a].C, a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b), a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1));
@@ -3463,14 +3465,14 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3463
3465
  })();
3464
3466
  var nc = a => (nc = C.free)(a), Nd = a => (Nd = C.malloc)(a);
3465
3467
  k._setWebImage = (a, b, c) => (k._setWebImage = C.setWebImage)(a, b, c);
3466
- var Ra = k._ma_device__on_notification_unlocked = a => (Ra = k._ma_device__on_notification_unlocked = C.ma_device__on_notification_unlocked)(a);
3468
+ var Xd = () => (Xd = C.__errno_location)(), Ra = k._ma_device__on_notification_unlocked = a => (Ra = k._ma_device__on_notification_unlocked = C.ma_device__on_notification_unlocked)(a);
3467
3469
  k._ma_malloc_emscripten = (a, b) => (k._ma_malloc_emscripten = C.ma_malloc_emscripten)(a, b);
3468
3470
  k._ma_free_emscripten = (a, b) => (k._ma_free_emscripten = C.ma_free_emscripten)(a, b);
3469
- var Sa = k._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Sa = k._ma_device_process_pcm_frames_capture__webaudio = C.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Ta = k._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Ta = k._ma_device_process_pcm_frames_playback__webaudio = C.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Xd = () => (Xd = C.__errno_location)(), mc = a => (mc = C.__getTypeName)(a);
3471
+ var Sa = k._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Sa = k._ma_device_process_pcm_frames_capture__webaudio = C.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Ta = k._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Ta = k._ma_device_process_pcm_frames_playback__webaudio = C.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), mc = a => (mc = C.__getTypeName)(a);
3470
3472
  k.__embind_initialize_bindings = () => (k.__embind_initialize_bindings = C._embind_initialize_bindings)();
3471
- k.dynCall_iiji = (a, b, c, d, e) => (k.dynCall_iiji = C.dynCall_iiji)(a, b, c, d, e);
3472
3473
  k.dynCall_iiiji = (a, b, c, d, e, f) => (k.dynCall_iiiji = C.dynCall_iiiji)(a, b, c, d, e, f);
3473
3474
  k.dynCall_iij = (a, b, c, d) => (k.dynCall_iij = C.dynCall_iij)(a, b, c, d);
3475
+ k.dynCall_iiji = (a, b, c, d, e) => (k.dynCall_iiji = C.dynCall_iiji)(a, b, c, d, e);
3474
3476
  k.dynCall_jii = (a, b, c) => (k.dynCall_jii = C.dynCall_jii)(a, b, c);
3475
3477
  k.dynCall_vijj = (a, b, c, d, e, f) => (k.dynCall_vijj = C.dynCall_vijj)(a, b, c, d, e, f);
3476
3478
  k.dynCall_jiji = (a, b, c, d, e) => (k.dynCall_jiji = C.dynCall_jiji)(a, b, c, d, e);
@@ -3478,8 +3480,8 @@ k.dynCall_viijii = (a, b, c, d, e, f, g) => (k.dynCall_viijii = C.dynCall_viijii
3478
3480
  k.dynCall_iiiiij = (a, b, c, d, e, f, g) => (k.dynCall_iiiiij = C.dynCall_iiiiij)(a, b, c, d, e, f, g);
3479
3481
  k.dynCall_iiiiijj = (a, b, c, d, e, f, g, l, p) => (k.dynCall_iiiiijj = C.dynCall_iiiiijj)(a, b, c, d, e, f, g, l, p);
3480
3482
  k.dynCall_iiiiiijj = (a, b, c, d, e, f, g, l, p, m) => (k.dynCall_iiiiiijj = C.dynCall_iiiiiijj)(a, b, c, d, e, f, g, l, p, m);
3481
- k.___start_em_js = 513740;
3482
- k.___stop_em_js = 516495;
3483
+ k.___start_em_js = 515140;
3484
+ k.___stop_em_js = 517895;
3483
3485
  var Zd;
3484
3486
  Ha = function $d() {
3485
3487
  Zd || ae();