@rive-app/webgl-advanced 2.27.3 → 2.27.5

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/webgl-advanced",
3
- "version": "2.27.3",
3
+ "version": "2.27.5",
4
4
  "description": "Rive's webgl low-level canvas based web api.",
5
5
  "main": "webgl_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -280,8 +280,12 @@ export interface CanvasRenderFactory {
280
280
  makeRenderPath(): CanvasRenderPath;
281
281
  }
282
282
 
283
+ export class AudioInternal {
284
+ unref(): void;
285
+ }
283
286
  export class Audio {
284
287
  unref(): void;
288
+ get nativeAudio(): AudioInternal;
285
289
  }
286
290
  export interface AudioCallback {
287
291
  (audio: Audio): void;
@@ -289,8 +293,12 @@ export interface AudioCallback {
289
293
  export interface DecodeAudio {
290
294
  (bytes: Uint8Array, callback: AudioCallback): void;
291
295
  }
296
+ export class ImageInternal {
297
+ unref(): void;
298
+ }
292
299
  export class Image {
293
300
  unref(): void;
301
+ get nativeImage(): ImageInternal;
294
302
  }
295
303
  export interface ImageCallback {
296
304
  (image: Image): void;
@@ -298,8 +306,12 @@ export interface ImageCallback {
298
306
  export interface DecodeImage {
299
307
  (bytes: Uint8Array, callback: ImageCallback): void;
300
308
  }
309
+ export class FontInternal {
310
+ unref(): void;
311
+ }
301
312
  export class Font {
302
313
  unref(): void;
314
+ get nativeFont(): FontInternal;
303
315
  }
304
316
  export interface FontCallback {
305
317
  (font: Font): void;
@@ -917,6 +929,9 @@ export declare class ViewModelInstanceList extends ViewModelInstanceValue {
917
929
  removeInstanceAt(index: number): void;
918
930
  instanceAt(index: number): ViewModelInstance;
919
931
  }
932
+ export declare class ViewModelInstanceAssetImage extends ViewModelInstanceValue {
933
+ value(image: ImageInternal):void;
934
+ }
920
935
 
921
936
  export declare class ViewModelInstance {
922
937
  get propertyCount(): number;
@@ -928,6 +943,7 @@ export declare class ViewModelInstance {
928
943
  trigger(path: string): ViewModelInstanceTrigger;
929
944
  list(path: string): ViewModelInstanceList;
930
945
  viewModel(path: string): ViewModelInstance;
946
+ image(path: string): ViewModelInstanceAssetImage;
931
947
  replaceViewModel(path: string, value: ViewModelInstance): boolean;
932
948
  incrementReferenceCount(): void;
933
949
  decrementReferenceCount(): void;
@@ -1118,6 +1134,27 @@ export declare class FileAsset {
1118
1134
  cdnUuid: string;
1119
1135
 
1120
1136
  decode(bytes: Uint8Array): void;
1137
+ get nativeAsset(): FileAssetInternal;
1138
+ }
1139
+
1140
+ /**
1141
+ * Rive class representing a FileAsset with relevant metadata fields to describe
1142
+ * an asset associated wtih the Rive File
1143
+ */
1144
+ export declare class FileAssetInternal {
1145
+ name: string;
1146
+ fileExtension: string;
1147
+ uniqueFilename: string;
1148
+ isAudio: boolean;
1149
+ isImage: boolean;
1150
+ isFont: boolean;
1151
+ cdnUuid: string;
1152
+
1153
+ decode(bytes: Uint8Array): void;
1154
+ }
1155
+
1156
+ export declare class AudioAssetInternal extends FileAssetInternal {
1157
+ setAudioSource(audio: AudioInternal): void;
1121
1158
  }
1122
1159
 
1123
1160
  /**
@@ -1128,6 +1165,10 @@ export declare class AudioAsset extends FileAsset {
1128
1165
  setAudioSource(audio: Audio): void;
1129
1166
  }
1130
1167
 
1168
+
1169
+ export declare class ImageAssetInternal extends FileAssetInternal {
1170
+ setRenderImage(image: ImageInternal): void;
1171
+ }
1131
1172
  /**
1132
1173
  * Rive class extending the FileAsset that exposes a `setRenderImage()` API with a
1133
1174
  * decoded Image (via the `decodeImage()` API) to set a new Image on the Rive FileAsset
@@ -1136,6 +1177,9 @@ export declare class ImageAsset extends FileAsset {
1136
1177
  setRenderImage(image: Image): void;
1137
1178
  }
1138
1179
 
1180
+ export declare class FontAssetInternal extends FileAssetInternal {
1181
+ setFont(font: FontInternal): void;
1182
+ }
1139
1183
  /**
1140
1184
  * Rive class extending the FileAsset that exposes a `setFont()` API with a
1141
1185
  * decoded Font (via the `decodeFont()` API) to set a new Font on the Rive FileAsset
Binary file
@@ -22,7 +22,7 @@ function ca() {
22
22
  console.error(n);
23
23
  }
24
24
  });
25
- this.kb();
25
+ this.lb();
26
26
  e && e.Mb();
27
27
  }
28
28
  let b = 0, c = 0, d = new Map(), e = null, f = null;
@@ -49,7 +49,7 @@ function ca() {
49
49
  };
50
50
  }();
51
51
  };
52
- this.kb = function() {
52
+ this.lb = function() {
53
53
  };
54
54
  }
55
55
  function da() {
@@ -115,11 +115,11 @@ l.onRuntimeInitialized = function() {
115
115
  },});
116
116
  l.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
117
117
  this.__parent.__construct.call(this);
118
- this.fb = [];
118
+ this.gb = [];
119
119
  }, addLoader:function(e) {
120
- this.fb.push(e);
120
+ this.gb.push(e);
121
121
  }, loadContents:function(e, f) {
122
- for (let g of this.fb) {
122
+ for (let g of this.gb) {
123
123
  if (g.loadContents(e, f)) {
124
124
  return !0;
125
125
  }
@@ -166,7 +166,7 @@ l.onRuntimeInitialized = function() {
166
166
  function b(r) {
167
167
  var u = {alpha:1, depth:0, stencil:8, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,}, z = r.getContext("webgl2", u);
168
168
  z || (z = r.getContext("webgl", u));
169
- var B = z, C = ha(ia), O = {handle:C, attributes:u, version:u.Dc, Ta:B};
169
+ var B = z, C = ha(ia), O = {handle:C, attributes:u, version:u.Dc, Ua:B};
170
170
  B.canvas && (B.canvas.pc = O);
171
171
  ia[C] = O;
172
172
  ("undefined" == typeof u.Jb || u.Jb) && ka(O);
@@ -174,8 +174,8 @@ l.onRuntimeInitialized = function() {
174
174
  u = g(r.width, r.height);
175
175
  u.Ab = C;
176
176
  u.F = r;
177
- u.Va = r.width;
178
- u.Ua = r.height;
177
+ u.Wa = r.width;
178
+ u.Va = r.height;
179
179
  u.zb = z;
180
180
  return u;
181
181
  }
@@ -254,7 +254,7 @@ l.onRuntimeInitialized = function() {
254
254
  l.requestAnimationFrame = t.requestAnimationFrame.bind(t);
255
255
  l.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
256
256
  l.enableFPSCounter = t.Kb.bind(t);
257
- t.kb = c;
257
+ t.lb = c;
258
258
  l.resolveAnimationFrame = c;
259
259
  let w = l.load;
260
260
  l.load = function(r, u, z = !0) {
@@ -267,8 +267,8 @@ l.onRuntimeInitialized = function() {
267
267
  l.WebGLRenderer.prototype.clear = function() {
268
268
  la(this.Ab);
269
269
  const r = this.F;
270
- if (this.Va != r.width || this.Ua != r.height) {
271
- this.resize(r.width, r.height), this.Va = r.width, this.Ua = r.height;
270
+ if (this.Wa != r.width || this.Va != r.height) {
271
+ this.resize(r.width, r.height), this.Wa = r.width, this.Va = r.height;
272
272
  }
273
273
  y.call(this);
274
274
  };
@@ -387,7 +387,7 @@ function Qa(a, b) {
387
387
  return Pa(c, a, b);
388
388
  }));
389
389
  }
390
- var Ra, Sa, Wa = {708044:(a, b, c, d, e) => {
390
+ var Ra, Sa, Wa = {708524:(a, b, c, d, e) => {
391
391
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
392
392
  return 0;
393
393
  }
@@ -399,7 +399,7 @@ var Ra, Sa, Wa = {708044:(a, b, c, d, e) => {
399
399
  window.h.H.La = c;
400
400
  window.h.ha = {};
401
401
  window.h.ha.stopped = d;
402
- window.h.ha.sb = e;
402
+ window.h.ha.tb = e;
403
403
  let f = window.h;
404
404
  f.C = [];
405
405
  f.nc = function(g) {
@@ -430,29 +430,31 @@ var Ra, Sa, Wa = {708044:(a, b, c, d, e) => {
430
430
  f.ta = function(g) {
431
431
  return f.C[g];
432
432
  };
433
- f.wb = ["touchend", "click"];
433
+ f.Ta = ["touchend", "click"];
434
434
  f.unlock = function() {
435
435
  for (var g = 0; g < f.C.length; ++g) {
436
436
  var k = f.C[g];
437
- null != k && null != k.I && k.state === f.ha.sb && k.I.resume().then(() => {
438
- Ta(k.lb);
437
+ null != k && null != k.I && k.state === f.ha.tb && k.I.resume().then(() => {
438
+ Ta(k.mb);
439
439
  }, p => {
440
440
  console.error("Failed to resume audiocontext", p);
441
441
  });
442
442
  }
443
- f.wb.map(function(p) {
443
+ f.Ta.map(function(p) {
444
444
  document.removeEventListener(p, f.unlock, !0);
445
445
  });
446
446
  };
447
- f.wb.map(function(g) {
447
+ f.Ta.map(function(g) {
448
448
  document.addEventListener(g, f.unlock, !0);
449
449
  });
450
450
  }
451
451
  window.h.Ea += 1;
452
452
  return 1;
453
- }, 710222:() => {
454
- "undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
455
- }, 710386:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 710490:() => {
453
+ }, 710702:() => {
454
+ "undefined" !== typeof window.h && (window.h.Ta.map(function(a) {
455
+ document.removeEventListener(a, window.h.unlock, !0);
456
+ }), --window.h.Ea, 0 === window.h.Ea && delete window.h);
457
+ }, 711006:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 711110:() => {
456
458
  try {
457
459
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
458
460
  a.close();
@@ -460,7 +462,7 @@ var Ra, Sa, Wa = {708044:(a, b, c, d, e) => {
460
462
  } catch (c) {
461
463
  return 0;
462
464
  }
463
- }, 710661:(a, b, c, d, e, f) => {
465
+ }, 711281:(a, b, c, d, e, f) => {
464
466
  if ("undefined" === typeof window.h) {
465
467
  return -1;
466
468
  }
@@ -504,23 +506,23 @@ var Ra, Sa, Wa = {708044:(a, b, c, d, e) => {
504
506
  console.log("Failed to get user media: " + p);
505
507
  });
506
508
  a == window.h.H.Ca && g.X.connect(g.I.destination);
507
- g.lb = f;
509
+ g.mb = f;
508
510
  return window.h.nc(g);
509
- }, 713538:a => window.h.ta(a).I.sampleRate, 713611:a => {
511
+ }, 714158:a => window.h.ta(a).I.sampleRate, 714231:a => {
510
512
  a = window.h.ta(a);
511
513
  void 0 !== a.X && (a.X.onaudioprocess = function() {
512
514
  }, a.X.disconnect(), a.X = void 0);
513
515
  void 0 !== a.Fa && (a.Fa.disconnect(), a.Fa = void 0);
514
516
  a.I.close();
515
517
  a.I = void 0;
516
- a.lb = void 0;
517
- }, 714011:a => {
518
+ a.mb = void 0;
519
+ }, 714631:a => {
518
520
  window.h.xb(a);
519
- }, 714061:a => {
521
+ }, 714681:a => {
520
522
  a = window.h.ta(a);
521
523
  a.I.resume();
522
- a.state = window.h.ha.sb;
523
- }, 714200:a => {
524
+ a.state = window.h.ha.tb;
525
+ }, 714820:a => {
524
526
  a = window.h.ta(a);
525
527
  a.I.suspend();
526
528
  a.state = window.h.ha.stopped;
@@ -679,12 +681,12 @@ var nb = {open:function(a) {
679
681
  }, sa:function(a) {
680
682
  a.s.T.sa(a.s);
681
683
  }, read:function(a, b, c, d) {
682
- if (!a.s || !a.s.T.eb) {
684
+ if (!a.s || !a.s.T.fb) {
683
685
  throw new G(60);
684
686
  }
685
687
  for (var e = 0, f = 0; f < d; f++) {
686
688
  try {
687
- var g = a.s.T.eb(a.s);
689
+ var g = a.s.T.fb(a.s);
688
690
  } catch (k) {
689
691
  throw new G(29);
690
692
  }
@@ -712,7 +714,7 @@ var nb = {open:function(a) {
712
714
  }
713
715
  d && (a.node.timestamp = Date.now());
714
716
  return e;
715
- },}, ob = {eb:function() {
717
+ },}, ob = {fb:function() {
716
718
  a: {
717
719
  if (!gb.length) {
718
720
  var a = null;
@@ -751,9 +753,9 @@ var H = {N:null, S() {
751
753
  if (24576 === (c & 61440) || 4096 === (c & 61440)) {
752
754
  throw new G(63);
753
755
  }
754
- H.N || (H.N = {dir:{node:{W:H.l.W, O:H.l.O, ka:H.l.ka, Aa:H.l.Aa, qb:H.l.qb, vb:H.l.vb, rb:H.l.rb, ob:H.l.ob, Ga:H.l.Ga}, stream:{$:H.m.$}}, file:{node:{W:H.l.W, O:H.l.O}, stream:{$:H.m.$, read:H.m.read, write:H.m.write, ra:H.m.ra, hb:H.m.hb, jb:H.m.jb}}, link:{node:{W:H.l.W, O:H.l.O, la:H.l.la}, stream:{}}, Wa:{node:{W:H.l.W, O:H.l.O}, stream:rb}});
756
+ H.N || (H.N = {dir:{node:{W:H.l.W, O:H.l.O, ka:H.l.ka, Aa:H.l.Aa, rb:H.l.rb, wb:H.l.wb, sb:H.l.sb, pb:H.l.pb, Ga:H.l.Ga}, stream:{$:H.m.$}}, file:{node:{W:H.l.W, O:H.l.O}, stream:{$:H.m.$, read:H.m.read, write:H.m.write, ra:H.m.ra, ib:H.m.ib, kb:H.m.kb}}, link:{node:{W:H.l.W, O:H.l.O, la:H.l.la}, stream:{}}, Xa:{node:{W:H.l.W, O:H.l.O}, stream:rb}});
755
757
  c = sb(a, b, c, d);
756
- 16384 === (c.mode & 61440) ? (c.l = H.N.dir.node, c.m = H.N.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = H.N.file.node, c.m = H.N.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = H.N.link.node, c.m = H.N.link.stream) : 8192 === (c.mode & 61440) && (c.l = H.N.Wa.node, c.m = H.N.Wa.stream);
758
+ 16384 === (c.mode & 61440) ? (c.l = H.N.dir.node, c.m = H.N.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = H.N.file.node, c.m = H.N.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = H.N.link.node, c.m = H.N.link.stream) : 8192 === (c.mode & 61440) && (c.l = H.N.Xa.node, c.m = H.N.Xa.stream);
757
759
  c.timestamp = Date.now();
758
760
  a && (a.j[b] = c, a.timestamp = c.timestamp);
759
761
  return c;
@@ -792,7 +794,7 @@ var H = {N:null, S() {
792
794
  throw tb[44];
793
795
  }, Aa(a, b, c, d) {
794
796
  return H.createNode(a, b, c, d);
795
- }, qb(a, b, c) {
797
+ }, rb(a, b, c) {
796
798
  if (16384 === (a.mode & 61440)) {
797
799
  try {
798
800
  var d = ub(b, c);
@@ -810,17 +812,17 @@ var H = {N:null, S() {
810
812
  b.j[c] = a;
811
813
  b.timestamp = a.parent.timestamp;
812
814
  a.parent = b;
813
- }, vb(a, b) {
815
+ }, wb(a, b) {
814
816
  delete a.j[b];
815
817
  a.timestamp = Date.now();
816
- }, rb(a, b) {
818
+ }, sb(a, b) {
817
819
  var c = ub(a, b), d;
818
820
  for (d in c.j) {
819
821
  throw new G(55);
820
822
  }
821
823
  delete a.j[b];
822
824
  a.timestamp = Date.now();
823
- }, ob(a) {
825
+ }, pb(a) {
824
826
  var b = [".", ".."], c;
825
827
  for (c in a.j) {
826
828
  a.j.hasOwnProperty(c) && b.push(c);
@@ -886,7 +888,7 @@ var H = {N:null, S() {
886
888
  }, ra(a, b, c) {
887
889
  qb(a.node, b + c);
888
890
  a.node.v = Math.max(a.node.v, b + c);
889
- }, hb(a, b, c, d, e) {
891
+ }, ib(a, b, c, d, e) {
890
892
  if (32768 !== (a.node.mode & 61440)) {
891
893
  throw new G(43);
892
894
  }
@@ -906,7 +908,7 @@ var H = {N:null, S() {
906
908
  c = !1, b = a.byteOffset;
907
909
  }
908
910
  return {o:b, L:c};
909
- }, jb(a, b, c, d) {
911
+ }, kb(a, b, c, d) {
910
912
  H.m.write(a, b, 0, d, c, !1);
911
913
  return 0;
912
914
  },},};
@@ -921,7 +923,7 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, G = null, tb = {},
921
923
  if (!a) {
922
924
  return {path:"", node:null};
923
925
  }
924
- b = Object.assign({bb:!0, Qa:0}, b);
926
+ b = Object.assign({cb:!0, Qa:0}, b);
925
927
  if (8 < b.Qa) {
926
928
  throw new G(32);
927
929
  }
@@ -933,8 +935,8 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, G = null, tb = {},
933
935
  }
934
936
  c = ub(c, a[e]);
935
937
  d = Za(d + "/" + a[e]);
936
- c.Ba && (!f || f && b.bb) && (c = c.Ba.root);
937
- if (!f || b.ab) {
938
+ c.Ba && (!f || f && b.cb) && (c = c.Ba.root);
939
+ if (!f || b.bb) {
938
940
  for (f = 0; 40960 === (c.mode & 61440);) {
939
941
  if (c = Db(d), d = db($a(d), c), c = Eb(d, {Qa:b.Qa + 1}).node, 40 < f++) {
940
942
  throw new G(32);
@@ -946,7 +948,7 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, G = null, tb = {},
946
948
  }, Fb = a => {
947
949
  for (var b;;) {
948
950
  if (a === a.parent) {
949
- return a = a.S.ib, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
951
+ return a = a.S.jb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
950
952
  }
951
953
  b = b ? `${a.name}/${b}` : a.name;
952
954
  a = a.parent;
@@ -1041,7 +1043,7 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, G = null, tb = {},
1041
1043
  throw new G(10);
1042
1044
  }
1043
1045
  if (!c && !d) {
1044
- var e = Eb(b, {bb:!1});
1046
+ var e = Eb(b, {cb:!1});
1045
1047
  b = e.path;
1046
1048
  e = e.node;
1047
1049
  if (e.Ba) {
@@ -1051,7 +1053,7 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, G = null, tb = {},
1051
1053
  throw new G(54);
1052
1054
  }
1053
1055
  }
1054
- b = {type:a, Ic:{}, ib:b, $b:[]};
1056
+ b = {type:a, Ic:{}, jb:b, $b:[]};
1055
1057
  a = a.S(b);
1056
1058
  a.S = b;
1057
1059
  b.root = a;
@@ -1116,7 +1118,7 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, G = null, tb = {},
1116
1118
  } else {
1117
1119
  a = Za(a);
1118
1120
  try {
1119
- e = Eb(a, {ab:!(b & 131072)}).node;
1121
+ e = Eb(a, {bb:!(b & 131072)}).node;
1120
1122
  } catch (f) {
1121
1123
  }
1122
1124
  }
@@ -1142,7 +1144,7 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, G = null, tb = {},
1142
1144
  }
1143
1145
  if (b & 512 && !d) {
1144
1146
  c = e;
1145
- c = "string" == typeof c ? Eb(c, {ab:!0}).node : c;
1147
+ c = "string" == typeof c ? Eb(c, {bb:!0}).node : c;
1146
1148
  if (!c.l.O) {
1147
1149
  throw new G(63);
1148
1150
  }
@@ -1247,7 +1249,7 @@ function ec(a, b) {
1247
1249
  }
1248
1250
  function fc() {
1249
1251
  this.L = [void 0];
1250
- this.cb = [];
1252
+ this.eb = [];
1251
1253
  }
1252
1254
  var I = new fc(), gc = void 0;
1253
1255
  function K(a) {
@@ -1267,7 +1269,7 @@ var hc = a => {
1267
1269
  case !1:
1268
1270
  return 4;
1269
1271
  default:
1270
- return I.ra({pb:1, value:a});
1272
+ return I.ra({qb:1, value:a});
1271
1273
  }
1272
1274
  };
1273
1275
  function jc(a) {
@@ -1460,7 +1462,7 @@ function Sc(a, b, c, d, e, f, g, k) {
1460
1462
  this.Nb = f;
1461
1463
  this.na = g;
1462
1464
  this.Ib = k;
1463
- this.mb = [];
1465
+ this.nb = [];
1464
1466
  }
1465
1467
  function Tc(a, b, c) {
1466
1468
  for (; b !== c;) {
@@ -1530,7 +1532,7 @@ function Yc(a, b, c, d) {
1530
1532
  this.Na = c;
1531
1533
  this.va = d;
1532
1534
  this.wa = !1;
1533
- this.U = this.cc = this.Pa = this.nb = this.ic = this.bc = void 0;
1535
+ this.U = this.cc = this.Pa = this.ob = this.ic = this.bc = void 0;
1534
1536
  void 0 !== b.A ? this.toWireType = Wc : (this.toWireType = d ? Uc : Xc, this.J = null);
1535
1537
  }
1536
1538
  function Zc(a, b, c) {
@@ -1619,7 +1621,7 @@ function fd(a, b, c) {
1619
1621
  return Tc(a.g.o, a.g.u.i, b.i);
1620
1622
  }
1621
1623
  function gd(a) {
1622
- a >= I.h && 0 === --I.get(a).pb && I.Sb(a);
1624
+ a >= I.h && 0 === --I.get(a).qb && I.Sb(a);
1623
1625
  }
1624
1626
  function hd(a, b, c) {
1625
1627
  switch(b) {
@@ -1811,22 +1813,22 @@ function ha(a) {
1811
1813
  }
1812
1814
  function la(a) {
1813
1815
  T = ia[a];
1814
- l.yc = U = T && T.Ta;
1816
+ l.yc = U = T && T.Ua;
1815
1817
  return !(a && !U);
1816
1818
  }
1817
1819
  function ka(a) {
1818
1820
  a || (a = T);
1819
1821
  if (!a.Ub) {
1820
1822
  a.Ub = !0;
1821
- var b = a.Ta;
1823
+ var b = a.Ua;
1822
1824
  zd(b);
1823
1825
  Ad(b);
1824
1826
  Bd(b);
1825
- b.Ya = b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
1826
- b.gb = b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
1827
- 2 <= a.version && (b.Za = b.getExtension("EXT_disjoint_timer_query_webgl2"));
1828
- if (2 > a.version || !b.Za) {
1829
- b.Za = b.getExtension("EXT_disjoint_timer_query");
1827
+ b.Za = b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
1828
+ b.hb = b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
1829
+ 2 <= a.version && (b.$a = b.getExtension("EXT_disjoint_timer_query_webgl2"));
1830
+ if (2 > a.version || !b.$a) {
1831
+ b.$a = b.getExtension("EXT_disjoint_timer_query");
1830
1832
  }
1831
1833
  b.Fc = b.getExtension("WEBGL_multi_draw");
1832
1834
  (b.getSupportedExtensions() || []).forEach(function(c) {
@@ -1984,7 +1986,7 @@ function V(a) {
1984
1986
  var b = U.Gb;
1985
1987
  if (b) {
1986
1988
  var c = b.ma[a];
1987
- "number" == typeof c && (b.ma[a] = c = U.getUniformLocation(b, b.tb[a] + (0 < c ? "[" + c + "]" : "")));
1989
+ "number" == typeof c && (b.ma[a] = c = U.getUniformLocation(b, b.ub[a] + (0 < c ? "[" + c + "]" : "")));
1988
1990
  return c;
1989
1991
  }
1990
1992
  S(1282);
@@ -2151,7 +2153,7 @@ Rb("/home/web_user", 16895, 0);
2151
2153
  var b = sb(a, "fd", 16895, 73);
2152
2154
  b.l = {ka:(c, d) => {
2153
2155
  var e = Nb(+d);
2154
- c = {parent:null, S:{ib:"fake"}, l:{la:() => e.path},};
2156
+ c = {parent:null, S:{jb:"fake"}, l:{la:() => e.path},};
2155
2157
  return c.parent = c;
2156
2158
  }};
2157
2159
  return b;
@@ -2162,12 +2164,12 @@ Object.assign(fc.prototype, {get(a) {
2162
2164
  }, has(a) {
2163
2165
  return void 0 !== this.L[a];
2164
2166
  }, ra(a) {
2165
- var b = this.cb.pop() || this.L.length;
2167
+ var b = this.eb.pop() || this.L.length;
2166
2168
  this.L[b] = a;
2167
2169
  return b;
2168
2170
  }, Sb(a) {
2169
2171
  this.L[a] = void 0;
2170
- this.cb.push(a);
2172
+ this.eb.push(a);
2171
2173
  }});
2172
2174
  gc = l.BindingError = class extends Error {
2173
2175
  constructor(a) {
@@ -2252,10 +2254,10 @@ Pc.prototype.deleteLater = function() {
2252
2254
  return this;
2253
2255
  };
2254
2256
  Yc.prototype.Ob = function(a) {
2255
- this.nb && (a = this.nb(a));
2257
+ this.ob && (a = this.ob(a));
2256
2258
  return a;
2257
2259
  };
2258
- Yc.prototype.Xa = function(a) {
2260
+ Yc.prototype.Ya = function(a) {
2259
2261
  this.U && this.U(a);
2260
2262
  };
2261
2263
  Yc.prototype.argPackAdvance = 8;
@@ -2271,7 +2273,7 @@ Yc.prototype.fromWireType = function(a) {
2271
2273
  }
2272
2274
  var c = this.Ob(a);
2273
2275
  if (!c) {
2274
- return this.Xa(a), null;
2276
+ return this.Ya(a), null;
2275
2277
  }
2276
2278
  var d = Bc(this.i, c);
2277
2279
  if (void 0 !== d) {
@@ -2279,7 +2281,7 @@ Yc.prototype.fromWireType = function(a) {
2279
2281
  return d.g.o = c, d.g.G = a, d.clone();
2280
2282
  }
2281
2283
  d = d.clone();
2282
- this.Xa(a);
2284
+ this.Ya(a);
2283
2285
  return d;
2284
2286
  }
2285
2287
  d = this.i.Nb(c);
@@ -2437,7 +2439,7 @@ var Ge = {__syscall_fcntl64:function(a, b, c) {
2437
2439
  c = hc(c);
2438
2440
  var d = [].slice, e = b.i, f = e.M, g = e.A.M, k = e.A.constructor;
2439
2441
  a = ec(a, function() {
2440
- e.A.mb.forEach(function(n) {
2442
+ e.A.nb.forEach(function(n) {
2441
2443
  if (this[n] === g[n]) {
2442
2444
  throw new kc(`Pure virtual function ${n} must be implemented in JavaScript`);
2443
2445
  }
@@ -2473,7 +2475,7 @@ var Ge = {__syscall_fcntl64:function(a, b, c) {
2473
2475
  }, _embind_finalize_value_object:function(a) {
2474
2476
  var b = Gc[a];
2475
2477
  delete Gc[a];
2476
- var c = b.Pa, d = b.U, e = b.$a, f = e.map(g => g.Rb).concat(e.map(g => g.fc));
2478
+ var c = b.Pa, d = b.U, e = b.ab, f = e.map(g => g.Rb).concat(e.map(g => g.fc));
2477
2479
  N([a], f, g => {
2478
2480
  var k = {};
2479
2481
  e.forEach((p, n) => {
@@ -2652,7 +2654,7 @@ var Ge = {__syscall_fcntl64:function(a, b, c) {
2652
2654
  n = n[0];
2653
2655
  var w = `${n.name}.${b}`;
2654
2656
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2655
- k && n.i.mb.push(b);
2657
+ k && n.i.nb.push(b);
2656
2658
  var y = n.i.M, q = y[b];
2657
2659
  void 0 === q || void 0 === q.B && q.className !== n.name && q.ea === c - 2 ? (t.ea = c - 2, t.className = n.name, y[b] = t) : (Qc(y, b, w), y[b].B[c - 2] = t);
2658
2660
  N([], p, function(r) {
@@ -2852,9 +2854,9 @@ var Ge = {__syscall_fcntl64:function(a, b, c) {
2852
2854
  uc(p);
2853
2855
  },});
2854
2856
  }, _embind_register_value_object:function(a, b, c, d, e, f) {
2855
- Gc[a] = {name:L(b), Pa:R(c, d), U:R(e, f), $a:[],};
2857
+ Gc[a] = {name:L(b), Pa:R(c, d), U:R(e, f), ab:[],};
2856
2858
  }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, k, p, n) {
2857
- Gc[a].$a.push({Lb:L(b), Rb:c, Pb:R(d, e), Qb:f, fc:g, ec:R(k, p), hc:n,});
2859
+ Gc[a].ab.push({Lb:L(b), Rb:c, Pb:R(d, e), Qb:f, fc:g, ec:R(k, p), hc:n,});
2858
2860
  }, _embind_register_void:function(a, b) {
2859
2861
  b = L(b);
2860
2862
  Lc(a, {Zb:!0, name:b, argPackAdvance:0, fromWireType:function() {
@@ -2908,7 +2910,7 @@ var Ge = {__syscall_fcntl64:function(a, b, c) {
2908
2910
  b = hc(b);
2909
2911
  return ic(a[b]);
2910
2912
  }, _emval_incref:function(a) {
2911
- 4 < a && (I.get(a).pb += 1);
2913
+ 4 < a && (I.get(a).qb += 1);
2912
2914
  }, _emval_new_array:function() {
2913
2915
  return ic([]);
2914
2916
  }, _emval_new_cstring:function(a) {
@@ -3050,7 +3052,7 @@ var Ge = {__syscall_fcntl64:function(a, b, c) {
3050
3052
  }, emscripten_glDrawArraysInstanced:function(a, b, c, d) {
3051
3053
  U.drawArraysInstanced(a, b, c, d);
3052
3054
  }, emscripten_glDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e) {
3053
- U.Ya.drawArraysInstancedBaseInstanceWEBGL(a, b, c, d, e);
3055
+ U.Za.drawArraysInstancedBaseInstanceWEBGL(a, b, c, d, e);
3054
3056
  }, emscripten_glDrawBuffers:function(a, b) {
3055
3057
  for (var c = Td[a], d = 0; d < a; d++) {
3056
3058
  c[d] = D[b + 4 * d >> 2];
@@ -3059,7 +3061,7 @@ var Ge = {__syscall_fcntl64:function(a, b, c) {
3059
3061
  }, emscripten_glDrawElements:Ud, emscripten_glDrawElementsInstanced:function(a, b, c, d, e) {
3060
3062
  U.drawElementsInstanced(a, b, c, d, e);
3061
3063
  }, emscripten_glDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g) {
3062
- U.Ya.drawElementsInstancedBaseVertexBaseInstanceWEBGL(a, b, c, d, e, f, g);
3064
+ U.Za.drawElementsInstancedBaseVertexBaseInstanceWEBGL(a, b, c, d, e, f, g);
3063
3065
  }, emscripten_glDrawRangeElements:function(a, b, c, d, e, f) {
3064
3066
  Ud(a, d, e, f);
3065
3067
  }, emscripten_glEnable:function(a) {
@@ -3212,9 +3214,9 @@ var Ge = {__syscall_fcntl64:function(a, b, c) {
3212
3214
  }, emscripten_glGetUniformLocation:function(a, b) {
3213
3215
  b = b ? fb(x, b) : "";
3214
3216
  if (a = Ed[a]) {
3215
- var c = a, d = c.ma, e = c.ub, f;
3217
+ var c = a, d = c.ma, e = c.vb, f;
3216
3218
  if (!d) {
3217
- for (c.ma = d = {}, c.tb = {}, f = 0; f < U.getProgramParameter(c, 35718); ++f) {
3219
+ for (c.ma = d = {}, c.ub = {}, f = 0; f < U.getProgramParameter(c, 35718); ++f) {
3218
3220
  var g = U.getActiveUniform(c, f);
3219
3221
  var k = g.name;
3220
3222
  g = g.size;
@@ -3224,7 +3226,7 @@ var Ge = {__syscall_fcntl64:function(a, b, c) {
3224
3226
  c.Sa += g;
3225
3227
  e[p] = [g, n];
3226
3228
  for (k = 0; k < g; ++k) {
3227
- d[n] = k, c.tb[n++] = p;
3229
+ d[n] = k, c.ub[n++] = p;
3228
3230
  }
3229
3231
  }
3230
3232
  }
@@ -3233,7 +3235,7 @@ var Ge = {__syscall_fcntl64:function(a, b, c) {
3233
3235
  e = b;
3234
3236
  f = ae(b);
3235
3237
  0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
3236
- if ((e = a.ub[e]) && d < e[0] && (d += e[1], c[d] = c[d] || U.getUniformLocation(a, b))) {
3238
+ if ((e = a.vb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || U.getUniformLocation(a, b))) {
3237
3239
  return d;
3238
3240
  }
3239
3241
  } else {
@@ -3260,11 +3262,11 @@ var Ge = {__syscall_fcntl64:function(a, b, c) {
3260
3262
  a = Ed[a];
3261
3263
  U.linkProgram(a);
3262
3264
  a.ma = 0;
3263
- a.ub = {};
3265
+ a.vb = {};
3264
3266
  }, emscripten_glMultiDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e, f) {
3265
- U.gb.multiDrawArraysInstancedBaseInstanceWEBGL(a, D, b >> 2, D, c >> 2, D, d >> 2, E, e >> 2, f);
3267
+ U.hb.multiDrawArraysInstancedBaseInstanceWEBGL(a, D, b >> 2, D, c >> 2, D, d >> 2, E, e >> 2, f);
3266
3268
  }, emscripten_glMultiDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g, k) {
3267
- U.gb.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a, D, b >> 2, c, D, d >> 2, D, e >> 2, D, f >> 2, E, g >> 2, k);
3269
+ U.hb.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a, D, b >> 2, c, D, d >> 2, D, e >> 2, D, f >> 2, E, g >> 2, k);
3268
3270
  }, emscripten_glPixelStorei:function(a, b) {
3269
3271
  3317 == a && (Od = b);
3270
3272
  U.pixelStorei(a, b);
@@ -3780,10 +3782,10 @@ var Ge = {__syscall_fcntl64:function(a, b, c) {
3780
3782
  }).catch(ba);
3781
3783
  return {};
3782
3784
  })();
3783
- var uc = a => (uc = m.free)(a), Zd = a => (Zd = m.malloc)(a), Ta = l._ma_device__on_notification_unlocked = a => (Ta = l._ma_device__on_notification_unlocked = m.ma_device__on_notification_unlocked)(a);
3785
+ var uc = a => (uc = m.free)(a), Zd = a => (Zd = m.malloc)(a), qe = () => (qe = m.__errno_location)(), Ta = l._ma_device__on_notification_unlocked = a => (Ta = l._ma_device__on_notification_unlocked = m.ma_device__on_notification_unlocked)(a);
3784
3786
  l._ma_malloc_emscripten = (a, b) => (l._ma_malloc_emscripten = m.ma_malloc_emscripten)(a, b);
3785
3787
  l._ma_free_emscripten = (a, b) => (l._ma_free_emscripten = m.ma_free_emscripten)(a, b);
3786
- var Ua = l._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ua = l._ma_device_process_pcm_frames_capture__webaudio = m.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Va = l._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Va = l._ma_device_process_pcm_frames_playback__webaudio = m.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), qe = () => (qe = m.__errno_location)(), tc = a => (tc = m.__getTypeName)(a);
3788
+ var Ua = l._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ua = l._ma_device_process_pcm_frames_capture__webaudio = m.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Va = l._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Va = l._ma_device_process_pcm_frames_playback__webaudio = m.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), tc = a => (tc = m.__getTypeName)(a);
3787
3789
  l.__embind_initialize_bindings = () => (l.__embind_initialize_bindings = m._embind_initialize_bindings)();
3788
3790
  var vb = (a, b) => (vb = m.emscripten_builtin_memalign)(a, b), X = (a, b) => (X = m.setThrew)(a, b), Y = () => (Y = m.stackSave)(), Z = a => (Z = m.stackRestore)(a);
3789
3791
  l.dynCall_iiiij = (a, b, c, d, e, f) => (l.dynCall_iiiij = m.dynCall_iiiij)(a, b, c, d, e, f);