@rive-app/canvas-advanced-lite 2.36.0 → 2.37.1

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.
@@ -11,41 +11,41 @@ var k = moduleArg, aa, ba, da = new Promise((b, a) => {
11
11
  ba = a;
12
12
  }), ea = "object" == typeof window, fa = "function" == typeof importScripts;
13
13
  function ka() {
14
- function b(m) {
14
+ function b(l) {
15
15
  const h = d;
16
16
  c = a = 0;
17
17
  d = new Map();
18
- h.forEach(l => {
18
+ h.forEach(n => {
19
19
  try {
20
- l(m);
21
- } catch (n) {
22
- console.error(n);
20
+ n(l);
21
+ } catch (m) {
22
+ console.error(m);
23
23
  }
24
24
  });
25
25
  this.va();
26
26
  e && e.Pa();
27
27
  }
28
28
  let a = 0, c = 0, d = new Map(), e = null, f = null;
29
- this.requestAnimationFrame = function(m) {
29
+ this.requestAnimationFrame = function(l) {
30
30
  a ||= requestAnimationFrame(b.bind(this));
31
31
  const h = ++c;
32
- d.set(h, m);
32
+ d.set(h, l);
33
33
  return h;
34
34
  };
35
- this.cancelAnimationFrame = function(m) {
36
- d.delete(m);
35
+ this.cancelAnimationFrame = function(l) {
36
+ d.delete(l);
37
37
  a && 0 == d.size && (cancelAnimationFrame(a), a = 0);
38
38
  };
39
- this.Na = function(m) {
39
+ this.Na = function(l) {
40
40
  f && (document.body.remove(f), f = null);
41
- m || (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", m = function(h) {
41
+ l || (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", l = function(h) {
42
42
  f.innerHTML = "RIVE FPS " + h.toFixed(1);
43
43
  }, document.body.appendChild(f));
44
44
  e = new function() {
45
- let h = 0, l = 0;
45
+ let h = 0, n = 0;
46
46
  this.Pa = function() {
47
- var n = performance.now();
48
- l ? (++h, n -= l, 1000 < n && (m(1000 * h / n), h = l = 0)) : (l = n, h = 0);
47
+ var m = performance.now();
48
+ n ? (++h, m -= n, 1000 < m && (l(1000 * h / m), h = n = 0)) : (n = m, h = 0);
49
49
  };
50
50
  }();
51
51
  };
@@ -75,64 +75,70 @@ const ma = k.onRuntimeInitialized;
75
75
  k.onRuntimeInitialized = function() {
76
76
  ma && ma();
77
77
  let b = k.decodeAudio;
78
- k.decodeAudio = function(e, f) {
79
- e = b(e);
80
- f(e);
78
+ k.decodeAudio = function(f, l) {
79
+ f = b(f);
80
+ l(f);
81
81
  };
82
82
  let a = k.decodeFont;
83
- k.decodeFont = function(e, f) {
84
- e = a(e);
85
- f(e);
83
+ k.decodeFont = function(f, l) {
84
+ f = a(f);
85
+ l(f);
86
+ };
87
+ let c = k.setFallbackFontCb;
88
+ k.setFallbackFontCallback = "function" === typeof c ? function(f) {
89
+ c(f);
90
+ } : function() {
91
+ console.warn("Module.setFallbackFontCallback called, but text support is not enabled in this build.");
86
92
  };
87
- const c = k.FileAssetLoader;
88
- k.ptrToAsset = e => {
89
- let f = k.ptrToFileAsset(e);
90
- return f.isImage ? k.ptrToImageAsset(e) : f.isFont ? k.ptrToFontAsset(e) : f.isAudio ? k.ptrToAudioAsset(e) : f;
93
+ const d = k.FileAssetLoader;
94
+ k.ptrToAsset = f => {
95
+ let l = k.ptrToFileAsset(f);
96
+ return l.isImage ? k.ptrToImageAsset(f) : l.isFont ? k.ptrToFontAsset(f) : l.isAudio ? k.ptrToAudioAsset(f) : l;
91
97
  };
92
- k.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
98
+ k.CustomFileAssetLoader = d.extend("CustomFileAssetLoader", {__construct:function({loadContents:f}) {
93
99
  this.__parent.__construct.call(this);
94
- this.Ea = e;
95
- }, loadContents:function(e, f) {
96
- e = k.ptrToAsset(e);
97
- return this.Ea(e, f);
100
+ this.Ea = f;
101
+ }, loadContents:function(f, l) {
102
+ f = k.ptrToAsset(f);
103
+ return this.Ea(f, l);
98
104
  },});
99
- k.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
105
+ k.CDNFileAssetLoader = d.extend("CDNFileAssetLoader", {__construct:function() {
100
106
  this.__parent.__construct.call(this);
101
- }, loadContents:function(e) {
102
- let f = k.ptrToAsset(e);
103
- e = f.cdnUuid;
104
- if ("" === e) {
107
+ }, loadContents:function(f) {
108
+ let l = k.ptrToAsset(f);
109
+ f = l.cdnUuid;
110
+ if ("" === f) {
105
111
  return !1;
106
112
  }
107
- (function(m, h) {
108
- var l = new XMLHttpRequest();
109
- l.responseType = "arraybuffer";
110
- l.onreadystatechange = function() {
111
- 4 == l.readyState && 200 == l.status && h(l);
113
+ (function(h, n) {
114
+ var m = new XMLHttpRequest();
115
+ m.responseType = "arraybuffer";
116
+ m.onreadystatechange = function() {
117
+ 4 == m.readyState && 200 == m.status && n(m);
112
118
  };
113
- l.open("GET", m, !0);
114
- l.send(null);
115
- })(f.cdnBaseUrl + "/" + e, m => {
116
- f.decode(new Uint8Array(m.response));
119
+ m.open("GET", h, !0);
120
+ m.send(null);
121
+ })(l.cdnBaseUrl + "/" + f, h => {
122
+ l.decode(new Uint8Array(h.response));
117
123
  });
118
124
  return !0;
119
125
  },});
120
- k.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
126
+ k.FallbackFileAssetLoader = d.extend("FallbackFileAssetLoader", {__construct:function() {
121
127
  this.__parent.__construct.call(this);
122
128
  this.ua = [];
123
- }, addLoader:function(e) {
124
- this.ua.push(e);
125
- }, loadContents:function(e, f) {
126
- for (let m of this.ua) {
127
- if (m.loadContents(e, f)) {
129
+ }, addLoader:function(f) {
130
+ this.ua.push(f);
131
+ }, loadContents:function(f, l) {
132
+ for (let h of this.ua) {
133
+ if (h.loadContents(f, l)) {
128
134
  return !0;
129
135
  }
130
136
  }
131
137
  return !1;
132
138
  },});
133
- let d = k.computeAlignment;
134
- k.computeAlignment = function(e, f, m, h, l = 1.0) {
135
- return d.call(this, e, f, m, h, l);
139
+ let e = k.computeAlignment;
140
+ k.computeAlignment = function(f, l, h, n, m = 1.0) {
141
+ return e.call(this, f, l, h, n, m);
136
142
  };
137
143
  };
138
144
  const pa = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), qa = new function() {
@@ -157,7 +163,7 @@ const pa = "createConicGradient createImageData createLinearGradient createPatte
157
163
  }
158
164
  q = new Proxy(q, {get(F, v) {
159
165
  if (F.isContextLost()) {
160
- if (l || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", v), l = !0), "function" === typeof F[v]) {
166
+ if (n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", v), n = !0), "function" === typeof F[v]) {
161
167
  return function() {
162
168
  };
163
169
  }
@@ -168,7 +174,7 @@ const pa = "createConicGradient createImageData createLinearGradient createPatte
168
174
  }
169
175
  }, set(F, v, H) {
170
176
  if (F.isContextLost()) {
171
- l || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + v), l = !0);
177
+ n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + v), n = !0);
172
178
  } else {
173
179
  return F[v] = H, !0;
174
180
  }
@@ -207,7 +213,7 @@ const pa = "createConicGradient createImageData createLinearGradient createPatte
207
213
  }
208
214
  return !0;
209
215
  }
210
- let a = null, c = 0, d = 0, e = null, f = null, m = 0, h = 0, l = !1;
216
+ let a = null, c = 0, d = 0, e = null, f = null, l = 0, h = 0, n = !1;
211
217
  b();
212
218
  this.Xa = function() {
213
219
  b();
@@ -232,10 +238,10 @@ const pa = "createConicGradient createImageData createLinearGradient createPatte
232
238
  2 == c ? (a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_LINEAR), a.generateMipmap(a.TEXTURE_2D)) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR);
233
239
  return t;
234
240
  };
235
- const n = new la(8), r = new la(8), w = new la(10), z = new la(10);
241
+ const m = new la(8), r = new la(8), w = new la(10), z = new la(10);
236
242
  this.Ma = function(g, t, q, G, F) {
237
243
  if (b()) {
238
- var v = n.push(g), H = r.push(t);
244
+ var v = m.push(g), H = r.push(t);
239
245
  if (a.canvas) {
240
246
  if (a.canvas.width != v || a.canvas.height != H) {
241
247
  a.canvas.width = v, a.canvas.height = H;
@@ -247,7 +253,7 @@ const pa = "createConicGradient createImageData createLinearGradient createPatte
247
253
  a.enable(a.SCISSOR_TEST);
248
254
  q.sort((E, V) => V.ya - E.ya);
249
255
  v = w.push(G);
250
- m != v && (a.bufferData(a.ARRAY_BUFFER, 8 * v, a.DYNAMIC_DRAW), m = v);
256
+ l != v && (a.bufferData(a.ARRAY_BUFFER, 8 * v, a.DYNAMIC_DRAW), l = v);
251
257
  v = 0;
252
258
  for (var L of q) {
253
259
  a.bufferSubData(a.ARRAY_BUFFER, v, L.ia), v += 4 * L.ia.length;
@@ -292,37 +298,37 @@ const pa = "createConicGradient createImageData createLinearGradient createPatte
292
298
  k.onRuntimeInitialized = function() {
293
299
  function b(p) {
294
300
  switch(p) {
295
- case n.srcOver:
301
+ case m.srcOver:
296
302
  return "source-over";
297
- case n.screen:
303
+ case m.screen:
298
304
  return "screen";
299
- case n.overlay:
305
+ case m.overlay:
300
306
  return "overlay";
301
- case n.darken:
307
+ case m.darken:
302
308
  return "darken";
303
- case n.lighten:
309
+ case m.lighten:
304
310
  return "lighten";
305
- case n.colorDodge:
311
+ case m.colorDodge:
306
312
  return "color-dodge";
307
- case n.colorBurn:
313
+ case m.colorBurn:
308
314
  return "color-burn";
309
- case n.hardLight:
315
+ case m.hardLight:
310
316
  return "hard-light";
311
- case n.softLight:
317
+ case m.softLight:
312
318
  return "soft-light";
313
- case n.difference:
319
+ case m.difference:
314
320
  return "difference";
315
- case n.exclusion:
321
+ case m.exclusion:
316
322
  return "exclusion";
317
- case n.multiply:
323
+ case m.multiply:
318
324
  return "multiply";
319
- case n.hue:
325
+ case m.hue:
320
326
  return "hue";
321
- case n.saturation:
327
+ case m.saturation:
322
328
  return "saturation";
323
- case n.color:
329
+ case m.color:
324
330
  return "color";
325
- case n.luminosity:
331
+ case m.luminosity:
326
332
  return "luminosity";
327
333
  }
328
334
  }
@@ -341,7 +347,7 @@ k.onRuntimeInitialized = function() {
341
347
  }
342
348
  ra && ra();
343
349
  var d = k.RenderPaintStyle;
344
- const e = k.RenderPath, f = k.RenderPaint, m = k.Renderer, h = k.StrokeCap, l = k.StrokeJoin, n = k.BlendMode, r = d.fill, w = d.stroke, z = k.FillRule.evenOdd;
350
+ const e = k.RenderPath, f = k.RenderPaint, l = k.Renderer, h = k.StrokeCap, n = k.StrokeJoin, m = k.BlendMode, r = d.fill, w = d.stroke, z = k.FillRule.evenOdd;
345
351
  let g = 1;
346
352
  var t = k.RenderImage.extend("CanvasRenderImage", {__construct:function({R:p, W:u} = {}) {
347
353
  this.__parent.__construct.call(this);
@@ -396,13 +402,13 @@ k.onRuntimeInitialized = function() {
396
402
  this.Ga = p;
397
403
  }, join:function(p) {
398
404
  switch(p) {
399
- case l.miter:
405
+ case n.miter:
400
406
  this.ba = "miter";
401
407
  break;
402
- case l.round:
408
+ case n.round:
403
409
  this.ba = "round";
404
410
  break;
405
- case l.bevel:
411
+ case n.bevel:
406
412
  this.ba = "bevel";
407
413
  }
408
414
  }, cap:function(p) {
@@ -463,7 +469,7 @@ k.onRuntimeInitialized = function() {
463
469
  },});
464
470
  const F = new Set();
465
471
  let v = null, H = [], L = 0, Q = 0;
466
- var ha = k.CanvasRenderer = m.extend("Renderer", {__construct:function(p) {
472
+ var ha = k.CanvasRenderer = l.extend("Renderer", {__construct:function(p) {
467
473
  this.__parent.__construct.call(this);
468
474
  this.G = [1, 0, 0, 1, 0, 0];
469
475
  this.u = [1.0];
@@ -850,19 +856,19 @@ var Fb = {}, Gb = {}, X = (b, a, c) => {
850
856
  if (h.length !== b.length) {
851
857
  throw new zb("Mismatched type converter count");
852
858
  }
853
- for (var l = 0; l < b.length; ++l) {
854
- Hb(b[l], h[l]);
859
+ for (var n = 0; n < b.length; ++n) {
860
+ Hb(b[n], h[n]);
855
861
  }
856
862
  }
857
863
  b.forEach(function(h) {
858
864
  Gb[h] = a;
859
865
  });
860
- var e = Array(a.length), f = [], m = 0;
861
- a.forEach((h, l) => {
862
- kb.hasOwnProperty(h) ? e[l] = kb[h] : (f.push(h), Fb.hasOwnProperty(h) || (Fb[h] = []), Fb[h].push(() => {
863
- e[l] = kb[h];
864
- ++m;
865
- m === f.length && d(e);
866
+ var e = Array(a.length), f = [], l = 0;
867
+ a.forEach((h, n) => {
868
+ kb.hasOwnProperty(h) ? e[n] = kb[h] : (f.push(h), Fb.hasOwnProperty(h) || (Fb[h] = []), Fb[h].push(() => {
869
+ e[n] = kb[h];
870
+ ++l;
871
+ l === f.length && d(e);
866
872
  }));
867
873
  });
868
874
  0 === f.length && d(e);
@@ -926,14 +932,14 @@ var Lb = (b, a, c) => {
926
932
  var a = b.charCodeAt(0);
927
933
  return 48 <= a && 57 >= a ? `_${b}` : b;
928
934
  };
929
- function Ob(b, a, c, d, e, f, m, h) {
935
+ function Ob(b, a, c, d, e, f, l, h) {
930
936
  this.name = b;
931
937
  this.constructor = a;
932
938
  this.C = c;
933
939
  this.D = d;
934
940
  this.o = e;
935
941
  this.Qa = f;
936
- this.S = m;
942
+ this.S = l;
937
943
  this.La = h;
938
944
  this.wa = [];
939
945
  }
@@ -1032,17 +1038,17 @@ function Tb(b, a) {
1032
1038
  }
1033
1039
  return Pb(a.g.i, a.g.j.h, this.h);
1034
1040
  }
1035
- function Ub(b, a, c, d, e, f, m, h, l, n, r) {
1041
+ function Ub(b, a, c, d, e, f, l, h, n, m, r) {
1036
1042
  this.name = b;
1037
1043
  this.h = a;
1038
1044
  this.ea = c;
1039
1045
  this.U = d;
1040
1046
  this.V = e;
1041
1047
  this.ab = f;
1042
- this.gb = m;
1048
+ this.gb = l;
1043
1049
  this.xa = h;
1044
- this.fa = l;
1045
- this.bb = n;
1050
+ this.fa = n;
1051
+ this.bb = m;
1046
1052
  this.D = r;
1047
1053
  e || void 0 !== a.o ? this.toWireType = Sb : (this.toWireType = d ? Qb : Tb, this.B = null);
1048
1054
  }
@@ -1086,31 +1092,31 @@ function dc(b, a, c, d, e) {
1086
1092
  if (2 > f) {
1087
1093
  throw new O("argTypes array size mismatch! Must at least get return value and 'this' types!");
1088
1094
  }
1089
- var m = null !== a[1] && null !== c, h = cc(a), l = "void" !== a[0].name, n = f - 2, r = Array(n), w = [], z = [];
1095
+ var l = null !== a[1] && null !== c, h = cc(a), n = "void" !== a[0].name, m = f - 2, r = Array(m), w = [], z = [];
1090
1096
  return $a(b, function(...g) {
1091
- if (g.length !== n) {
1092
- throw new O(`function ${b} called with ${g.length} arguments, expected ${n}`);
1097
+ if (g.length !== m) {
1098
+ throw new O(`function ${b} called with ${g.length} arguments, expected ${m}`);
1093
1099
  }
1094
1100
  z.length = 0;
1095
- w.length = m ? 2 : 1;
1101
+ w.length = l ? 2 : 1;
1096
1102
  w[0] = e;
1097
- if (m) {
1103
+ if (l) {
1098
1104
  var t = a[1].toWireType(z, this);
1099
1105
  w[1] = t;
1100
1106
  }
1101
- for (var q = 0; q < n; ++q) {
1107
+ for (var q = 0; q < m; ++q) {
1102
1108
  r[q] = a[q + 2].toWireType(z, g[q]), w.push(r[q]);
1103
1109
  }
1104
1110
  g = d(...w);
1105
1111
  if (h) {
1106
1112
  Db(z);
1107
1113
  } else {
1108
- for (q = m ? 1 : 2; q < a.length; q++) {
1114
+ for (q = l ? 1 : 2; q < a.length; q++) {
1109
1115
  var G = 1 === q ? t : r[q - 2];
1110
1116
  null !== a[q].B && a[q].B(G);
1111
1117
  }
1112
1118
  }
1113
- t = l ? a[0].fromWireType(g) : void 0;
1119
+ t = n ? a[0].fromWireType(g) : void 0;
1114
1120
  return t;
1115
1121
  });
1116
1122
  }
@@ -1199,8 +1205,8 @@ var ec = (b, a) => {
1199
1205
  for (var e = 0; e < b.length; ++e) {
1200
1206
  var f = b.charCodeAt(e);
1201
1207
  if (55296 <= f && 57343 >= f) {
1202
- var m = b.charCodeAt(++e);
1203
- f = 65536 + ((f & 1023) << 10) | m & 1023;
1208
+ var l = b.charCodeAt(++e);
1209
+ f = 65536 + ((f & 1023) << 10) | l & 1023;
1204
1210
  }
1205
1211
  if (127 >= f) {
1206
1212
  if (c >= d) {
@@ -1254,8 +1260,8 @@ var ec = (b, a) => {
1254
1260
  if (192 == (e & 224)) {
1255
1261
  d += String.fromCharCode((e & 31) << 6 | f);
1256
1262
  } else {
1257
- var m = b[a++] & 63;
1258
- e = 224 == (e & 240) ? (e & 15) << 12 | f << 6 | m : (e & 7) << 18 | f << 12 | m << 6 | b[a++] & 63;
1263
+ var l = b[a++] & 63;
1264
+ e = 224 == (e & 240) ? (e & 15) << 12 | f << 6 | l : (e & 7) << 18 | f << 12 | l << 6 | b[a++] & 63;
1259
1265
  65536 > e ? d += String.fromCharCode(e) : (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023));
1260
1266
  }
1261
1267
  } else {
@@ -1314,8 +1320,8 @@ var ec = (b, a) => {
1314
1320
  for (var e = 0; e < b.length; ++e) {
1315
1321
  var f = b.charCodeAt(e);
1316
1322
  if (55296 <= f && 57343 >= f) {
1317
- var m = b.charCodeAt(++e);
1318
- f = 65536 + ((f & 1023) << 10) | m & 1023;
1323
+ var l = b.charCodeAt(++e);
1324
+ f = 65536 + ((f & 1023) << 10) | l & 1023;
1319
1325
  }
1320
1326
  K[a >> 2] = f;
1321
1327
  a += 4;
@@ -1378,7 +1384,7 @@ var Pc = (b, a, c, d) => {
1378
1384
  function f(g, t) {
1379
1385
  return e(g, t, "0");
1380
1386
  }
1381
- function m(g, t) {
1387
+ function l(g, t) {
1382
1388
  function q(F) {
1383
1389
  return 0 > F ? -1 : 0 < F ? 1 : 0;
1384
1390
  }
@@ -1404,7 +1410,7 @@ var Pc = (b, a, c, d) => {
1404
1410
  return new Date(g.getFullYear() - 1, 11, 30);
1405
1411
  }
1406
1412
  }
1407
- function l(g) {
1413
+ function n(g) {
1408
1414
  var t = g.J;
1409
1415
  for (g = new Date((new Date(g.K + 1900, 0, 1)).getTime()); 0 < t;) {
1410
1416
  var q = g.getMonth(), G = (Lc(g.getFullYear()) ? Mc : Nc)[q];
@@ -1418,17 +1424,17 @@ var Pc = (b, a, c, d) => {
1418
1424
  q = new Date(g.getFullYear() + 1, 0, 4);
1419
1425
  t = h(new Date(g.getFullYear(), 0, 4));
1420
1426
  q = h(q);
1421
- return 0 >= m(t, g) ? 0 >= m(q, g) ? g.getFullYear() + 1 : g.getFullYear() : g.getFullYear() - 1;
1427
+ return 0 >= l(t, g) ? 0 >= l(q, g) ? g.getFullYear() + 1 : g.getFullYear() : g.getFullYear() - 1;
1422
1428
  }
1423
- var n = M[d + 40 >> 2];
1424
- d = {jb:K[d >> 2], ib:K[d + 4 >> 2], Z:K[d + 8 >> 2], ha:K[d + 12 >> 2], $:K[d + 16 >> 2], K:K[d + 20 >> 2], F:K[d + 24 >> 2], J:K[d + 28 >> 2], ob:K[d + 32 >> 2], hb:K[d + 36 >> 2], kb:n ? n ? sc(J, n) : "" : ""};
1429
+ var m = M[d + 40 >> 2];
1430
+ d = {jb:K[d >> 2], ib:K[d + 4 >> 2], Z:K[d + 8 >> 2], ha:K[d + 12 >> 2], $:K[d + 16 >> 2], K:K[d + 20 >> 2], F:K[d + 24 >> 2], J:K[d + 28 >> 2], ob:K[d + 32 >> 2], hb:K[d + 36 >> 2], kb:m ? m ? sc(J, m) : "" : ""};
1425
1431
  c = c ? sc(J, c) : "";
1426
- 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",};
1427
- for (var r in n) {
1428
- c = c.replace(new RegExp(r, "g"), n[r]);
1432
+ m = {"%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",};
1433
+ for (var r in m) {
1434
+ c = c.replace(new RegExp(r, "g"), m[r]);
1429
1435
  }
1430
1436
  var w = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), z = "January February March April May June July August September October November December".split(" ");
1431
- n = {"%a":g => w[g.F].substring(0, 3), "%A":g => w[g.F], "%b":g => z[g.$].substring(0, 3), "%B":g => z[g.$], "%C":g => f((g.K + 1900) / 100 | 0, 2), "%d":g => f(g.ha, 2), "%e":g => e(g.ha, 2, " "), "%g":g => l(g).toString().substring(2), "%G":l, "%H":g => f(g.Z, 2), "%I":g => {
1437
+ m = {"%a":g => w[g.F].substring(0, 3), "%A":g => w[g.F], "%b":g => z[g.$].substring(0, 3), "%B":g => z[g.$], "%C":g => f((g.K + 1900) / 100 | 0, 2), "%d":g => f(g.ha, 2), "%e":g => e(g.ha, 2, " "), "%g":g => n(g).toString().substring(2), "%G":n, "%H":g => f(g.Z, 2), "%I":g => {
1432
1438
  g = g.Z;
1433
1439
  0 == g ? g = 12 : 12 < g && (g -= 12);
1434
1440
  return f(g, 2);
@@ -1454,8 +1460,8 @@ var Pc = (b, a, c, d) => {
1454
1460
  return (t ? "+" : "-") + String("0000" + (g / 60 * 100 + g % 60)).slice(-4);
1455
1461
  }, "%Z":g => g.kb, "%%":() => "%"};
1456
1462
  c = c.replace(/%%/g, "\x00\x00");
1457
- for (r in n) {
1458
- c.includes(r) && (c = c.replace(new RegExp(r, "g"), n[r](d)));
1463
+ for (r in m) {
1464
+ c.includes(r) && (c = c.replace(new RegExp(r, "g"), m[r](d)));
1459
1465
  }
1460
1466
  c = c.replace(/\0\0/g, "%");
1461
1467
  r = Oc(c);
@@ -1581,11 +1587,11 @@ var Tc = {_abort_js:() => {
1581
1587
  b = S(b);
1582
1588
  a = ob(a, "wrapper");
1583
1589
  c = R(c);
1584
- var d = a.h, e = d.C, f = d.o.C, m = d.o.constructor;
1590
+ var d = a.h, e = d.C, f = d.o.C, l = d.o.constructor;
1585
1591
  b = $a(b, function(...h) {
1586
- d.o.wa.forEach(function(l) {
1587
- if (this[l] === f[l]) {
1588
- throw new db(`Pure virtual function ${l} must be implemented in JavaScript`);
1592
+ d.o.wa.forEach(function(n) {
1593
+ if (this[n] === f[n]) {
1594
+ throw new db(`Pure virtual function ${n} must be implemented in JavaScript`);
1589
1595
  }
1590
1596
  }.bind(this));
1591
1597
  Object.defineProperty(this, "__parent", {value:e});
@@ -1595,14 +1601,14 @@ var Tc = {_abort_js:() => {
1595
1601
  if (this === e) {
1596
1602
  throw new O("Pass correct 'this' to __construct");
1597
1603
  }
1598
- h = m.implement(this, ...h);
1604
+ h = l.implement(this, ...h);
1599
1605
  pb(h);
1600
- var l = h.g;
1606
+ var n = h.g;
1601
1607
  h.notifyOnDestruction();
1602
- l.O = !0;
1603
- Object.defineProperties(this, {g:{value:l}});
1608
+ n.O = !0;
1609
+ Object.defineProperties(this, {g:{value:n}});
1604
1610
  Ab(this);
1605
- h = l.i;
1611
+ h = n.i;
1606
1612
  h = jb(d, h);
1607
1613
  if (ib.hasOwnProperty(h)) {
1608
1614
  throw new O(`Tried to register registered instance: ${h}`);
@@ -1628,35 +1634,35 @@ var Tc = {_abort_js:() => {
1628
1634
  }, _embind_finalize_value_object:b => {
1629
1635
  var a = Cb[b];
1630
1636
  delete Cb[b];
1631
- var c = a.fa, d = a.D, e = a.sa, f = e.map(m => m.Ua).concat(e.map(m => m.eb));
1632
- X([b], f, m => {
1637
+ var c = a.fa, d = a.D, e = a.sa, f = e.map(l => l.Ua).concat(e.map(l => l.eb));
1638
+ X([b], f, l => {
1633
1639
  var h = {};
1634
- e.forEach((l, n) => {
1635
- var r = m[n], w = l.Sa, z = l.Ta, g = m[n + e.length], t = l.cb, q = l.fb;
1636
- h[l.Oa] = {read:G => r.fromWireType(w(z, G)), write:(G, F) => {
1640
+ e.forEach((n, m) => {
1641
+ var r = l[m], w = n.Sa, z = n.Ta, g = l[m + e.length], t = n.cb, q = n.fb;
1642
+ h[n.Oa] = {read:G => r.fromWireType(w(z, G)), write:(G, F) => {
1637
1643
  var v = [];
1638
1644
  t(q, G, g.toWireType(v, F));
1639
1645
  Db(v);
1640
1646
  }};
1641
1647
  });
1642
- return [{name:a.name, fromWireType:l => {
1643
- var n = {}, r;
1648
+ return [{name:a.name, fromWireType:n => {
1649
+ var m = {}, r;
1644
1650
  for (r in h) {
1645
- n[r] = h[r].read(l);
1651
+ m[r] = h[r].read(n);
1646
1652
  }
1647
- d(l);
1648
- return n;
1649
- }, toWireType:(l, n) => {
1653
+ d(n);
1654
+ return m;
1655
+ }, toWireType:(n, m) => {
1650
1656
  for (var r in h) {
1651
- if (!(r in n)) {
1657
+ if (!(r in m)) {
1652
1658
  throw new TypeError(`Missing field: "${r}"`);
1653
1659
  }
1654
1660
  }
1655
1661
  var w = c();
1656
1662
  for (r in h) {
1657
- h[r].write(w, n[r]);
1663
+ h[r].write(w, m[r]);
1658
1664
  }
1659
- null !== l && l.push(d, w);
1665
+ null !== n && n.push(d, w);
1660
1666
  return w;
1661
1667
  }, argPackAdvance:8, readValueFromPointer:Eb, B:d,}];
1662
1668
  });
@@ -1670,11 +1676,11 @@ var Tc = {_abort_js:() => {
1670
1676
  }, argPackAdvance:8, readValueFromPointer:function(e) {
1671
1677
  return this.fromWireType(J[e]);
1672
1678
  }, B:null,});
1673
- }, _embind_register_class:(b, a, c, d, e, f, m, h, l, n, r, w, z) => {
1679
+ }, _embind_register_class:(b, a, c, d, e, f, l, h, n, m, r, w, z) => {
1674
1680
  r = S(r);
1675
1681
  f = Y(e, f);
1676
- h &&= Y(m, h);
1677
- n &&= Y(l, n);
1682
+ h &&= Y(l, h);
1683
+ m &&= Y(n, m);
1678
1684
  z = Y(w, z);
1679
1685
  var g = Nb(r);
1680
1686
  Mb(g, function() {
@@ -1703,7 +1709,7 @@ var Tc = {_abort_js:() => {
1703
1709
  });
1704
1710
  var F = Object.create(G, {constructor:{value:t},});
1705
1711
  t.prototype = F;
1706
- var v = new Ob(r, t, F, z, q, f, h, n);
1712
+ var v = new Ob(r, t, F, z, q, f, h, m);
1707
1713
  if (v.o) {
1708
1714
  var H;
1709
1715
  (H = v.o).T ?? (H.T = []);
@@ -1716,25 +1722,25 @@ var Tc = {_abort_js:() => {
1716
1722
  Vb(g, t);
1717
1723
  return [q, H, G];
1718
1724
  });
1719
- }, _embind_register_class_class_function:(b, a, c, d, e, f, m) => {
1725
+ }, _embind_register_class_class_function:(b, a, c, d, e, f, l) => {
1720
1726
  var h = ec(c, d);
1721
1727
  a = S(a);
1722
1728
  a = fc(a);
1723
1729
  f = Y(e, f);
1724
- X([], [b], l => {
1725
- function n() {
1730
+ X([], [b], n => {
1731
+ function m() {
1726
1732
  bc(`Cannot call ${r} due to unbound types`, h);
1727
1733
  }
1728
- l = l[0];
1729
- var r = `${l.name}.${a}`;
1734
+ n = n[0];
1735
+ var r = `${n.name}.${a}`;
1730
1736
  a.startsWith("@@") && (a = Symbol[a.substring(2)]);
1731
- var w = l.h.constructor;
1732
- void 0 === w[a] ? (n.L = c - 1, w[a] = n) : (Lb(w, a, r), w[a].l[c - 1] = n);
1737
+ var w = n.h.constructor;
1738
+ void 0 === w[a] ? (m.L = c - 1, w[a] = m) : (Lb(w, a, r), w[a].l[c - 1] = m);
1733
1739
  X([], h, z => {
1734
- z = dc(r, [z[0], null].concat(z.slice(1)), null, f, m);
1740
+ z = dc(r, [z[0], null].concat(z.slice(1)), null, f, l);
1735
1741
  void 0 === w[a].l ? (z.L = c - 1, w[a] = z) : w[a].l[c - 1] = z;
1736
- if (l.h.T) {
1737
- for (const g of l.h.T) {
1742
+ if (n.h.T) {
1743
+ for (const g of n.h.T) {
1738
1744
  g.constructor.hasOwnProperty(a) || (g.constructor[a] = z);
1739
1745
  }
1740
1746
  }
@@ -1742,100 +1748,100 @@ var Tc = {_abort_js:() => {
1742
1748
  });
1743
1749
  return [];
1744
1750
  });
1745
- }, _embind_register_class_class_property:(b, a, c, d, e, f, m, h) => {
1751
+ }, _embind_register_class_class_property:(b, a, c, d, e, f, l, h) => {
1746
1752
  a = S(a);
1747
1753
  f = Y(e, f);
1748
- X([], [b], l => {
1749
- l = l[0];
1750
- var n = `${l.name}.${a}`, r = {get() {
1751
- bc(`Cannot access ${n} due to unbound types`, [c]);
1754
+ X([], [b], n => {
1755
+ n = n[0];
1756
+ var m = `${n.name}.${a}`, r = {get() {
1757
+ bc(`Cannot access ${m} due to unbound types`, [c]);
1752
1758
  }, enumerable:!0, configurable:!0};
1753
1759
  r.set = h ? () => {
1754
- bc(`Cannot access ${n} due to unbound types`, [c]);
1760
+ bc(`Cannot access ${m} due to unbound types`, [c]);
1755
1761
  } : () => {
1756
- throw new O(`${n} is a read-only property`);
1762
+ throw new O(`${m} is a read-only property`);
1757
1763
  };
1758
- Object.defineProperty(l.h.constructor, a, r);
1764
+ Object.defineProperty(n.h.constructor, a, r);
1759
1765
  X([], [c], w => {
1760
1766
  w = w[0];
1761
1767
  var z = {get() {
1762
1768
  return w.fromWireType(f(d));
1763
1769
  }, enumerable:!0};
1764
- h && (h = Y(m, h), z.set = g => {
1770
+ h && (h = Y(l, h), z.set = g => {
1765
1771
  var t = [];
1766
1772
  h(d, w.toWireType(t, g));
1767
1773
  Db(t);
1768
1774
  });
1769
- Object.defineProperty(l.h.constructor, a, z);
1775
+ Object.defineProperty(n.h.constructor, a, z);
1770
1776
  return [];
1771
1777
  });
1772
1778
  return [];
1773
1779
  });
1774
1780
  }, _embind_register_class_constructor:(b, a, c, d, e, f) => {
1775
- var m = ec(a, c);
1781
+ var l = ec(a, c);
1776
1782
  e = Y(d, e);
1777
1783
  X([], [b], h => {
1778
1784
  h = h[0];
1779
- var l = `constructor ${h.name}`;
1785
+ var n = `constructor ${h.name}`;
1780
1786
  void 0 === h.h.I && (h.h.I = []);
1781
1787
  if (void 0 !== h.h.I[a - 1]) {
1782
1788
  throw new O(`Cannot register multiple constructors with identical number of parameters (${a - 1}) for class '${h.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
1783
1789
  }
1784
1790
  h.h.I[a - 1] = () => {
1785
- bc(`Cannot construct ${h.name} due to unbound types`, m);
1791
+ bc(`Cannot construct ${h.name} due to unbound types`, l);
1786
1792
  };
1787
- X([], m, n => {
1788
- n.splice(1, 0, null);
1789
- h.h.I[a - 1] = dc(l, n, null, e, f);
1793
+ X([], l, m => {
1794
+ m.splice(1, 0, null);
1795
+ h.h.I[a - 1] = dc(n, m, null, e, f);
1790
1796
  return [];
1791
1797
  });
1792
1798
  return [];
1793
1799
  });
1794
- }, _embind_register_class_function:(b, a, c, d, e, f, m, h) => {
1795
- var l = ec(c, d);
1800
+ }, _embind_register_class_function:(b, a, c, d, e, f, l, h) => {
1801
+ var n = ec(c, d);
1796
1802
  a = S(a);
1797
1803
  a = fc(a);
1798
1804
  f = Y(e, f);
1799
- X([], [b], n => {
1805
+ X([], [b], m => {
1800
1806
  function r() {
1801
- bc(`Cannot call ${w} due to unbound types`, l);
1807
+ bc(`Cannot call ${w} due to unbound types`, n);
1802
1808
  }
1803
- n = n[0];
1804
- var w = `${n.name}.${a}`;
1809
+ m = m[0];
1810
+ var w = `${m.name}.${a}`;
1805
1811
  a.startsWith("@@") && (a = Symbol[a.substring(2)]);
1806
- h && n.h.wa.push(a);
1807
- var z = n.h.C, g = z[a];
1808
- void 0 === g || void 0 === g.l && g.className !== n.name && g.L === c - 2 ? (r.L = c - 2, r.className = n.name, z[a] = r) : (Lb(z, a, w), z[a].l[c - 2] = r);
1809
- X([], l, t => {
1810
- t = dc(w, t, n, f, m);
1812
+ h && m.h.wa.push(a);
1813
+ var z = m.h.C, g = z[a];
1814
+ void 0 === g || void 0 === g.l && g.className !== m.name && g.L === c - 2 ? (r.L = c - 2, r.className = m.name, z[a] = r) : (Lb(z, a, w), z[a].l[c - 2] = r);
1815
+ X([], n, t => {
1816
+ t = dc(w, t, m, f, l);
1811
1817
  void 0 === z[a].l ? (t.L = c - 2, z[a] = t) : z[a].l[c - 2] = t;
1812
1818
  return [];
1813
1819
  });
1814
1820
  return [];
1815
1821
  });
1816
- }, _embind_register_class_property:(b, a, c, d, e, f, m, h, l, n) => {
1822
+ }, _embind_register_class_property:(b, a, c, d, e, f, l, h, n, m) => {
1817
1823
  a = S(a);
1818
1824
  e = Y(d, e);
1819
1825
  X([], [b], r => {
1820
1826
  r = r[0];
1821
1827
  var w = `${r.name}.${a}`, z = {get() {
1822
- bc(`Cannot access ${w} due to unbound types`, [c, m]);
1828
+ bc(`Cannot access ${w} due to unbound types`, [c, l]);
1823
1829
  }, enumerable:!0, configurable:!0};
1824
- z.set = l ? () => bc(`Cannot access ${w} due to unbound types`, [c, m]) : () => {
1830
+ z.set = n ? () => bc(`Cannot access ${w} due to unbound types`, [c, l]) : () => {
1825
1831
  throw new O(w + " is a read-only property");
1826
1832
  };
1827
1833
  Object.defineProperty(r.h.C, a, z);
1828
- X([], l ? [c, m] : [c], g => {
1834
+ X([], n ? [c, l] : [c], g => {
1829
1835
  var t = g[0], q = {get() {
1830
1836
  var F = gc(this, r, w + " getter");
1831
1837
  return t.fromWireType(e(f, F));
1832
1838
  }, enumerable:!0};
1833
- if (l) {
1834
- l = Y(h, l);
1839
+ if (n) {
1840
+ n = Y(h, n);
1835
1841
  var G = g[1];
1836
1842
  q.set = function(F) {
1837
1843
  var v = gc(this, r, w + " setter"), H = [];
1838
- l(n, v, G.toWireType(H, F));
1844
+ n(m, v, G.toWireType(H, F));
1839
1845
  Db(H);
1840
1846
  };
1841
1847
  }
@@ -1851,7 +1857,7 @@ var Tc = {_abort_js:() => {
1851
1857
  e.values = {};
1852
1858
  Hb(b, {name:a, constructor:e, fromWireType:function(f) {
1853
1859
  return this.constructor.values[f];
1854
- }, toWireType:(f, m) => m.value, argPackAdvance:8, readValueFromPointer:jc(a, c, d), B:null,});
1860
+ }, toWireType:(f, l) => l.value, argPackAdvance:8, readValueFromPointer:jc(a, c, d), B:null,});
1855
1861
  Mb(a, e);
1856
1862
  }, _embind_register_enum_value:(b, a, c) => {
1857
1863
  var d = ob(b, "enum");
@@ -1865,14 +1871,14 @@ var Tc = {_abort_js:() => {
1865
1871
  a = S(a);
1866
1872
  Hb(b, {name:a, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:kc(a, c), B:null,});
1867
1873
  }, _embind_register_function:(b, a, c, d, e, f) => {
1868
- var m = ec(a, c);
1874
+ var l = ec(a, c);
1869
1875
  b = S(b);
1870
1876
  b = fc(b);
1871
1877
  e = Y(d, e);
1872
1878
  Mb(b, function() {
1873
- bc(`Cannot call ${b} due to unbound types`, m);
1879
+ bc(`Cannot call ${b} due to unbound types`, l);
1874
1880
  }, a - 1);
1875
- X([], m, h => {
1881
+ X([], l, h => {
1876
1882
  Vb(b, dc(b, [h[0], null].concat(h.slice(1)), null, e, f), a - 1);
1877
1883
  return [];
1878
1884
  });
@@ -1884,12 +1890,12 @@ var Tc = {_abort_js:() => {
1884
1890
  var f = 32 - 8 * c;
1885
1891
  e = h => h << f >>> f;
1886
1892
  }
1887
- var m = a.includes("unsigned") ? function(h, l) {
1888
- return l >>> 0;
1889
- } : function(h, l) {
1890
- return l;
1893
+ var l = a.includes("unsigned") ? function(h, n) {
1894
+ return n >>> 0;
1895
+ } : function(h, n) {
1896
+ return n;
1891
1897
  };
1892
- Hb(b, {name:a, fromWireType:e, toWireType:m, argPackAdvance:8, readValueFromPointer:lc(a, c, 0 !== d), B:null,});
1898
+ Hb(b, {name:a, fromWireType:e, toWireType:l, argPackAdvance:8, readValueFromPointer:lc(a, c, 0 !== d), B:null,});
1893
1899
  }, _embind_register_memory_view:(b, a, c) => {
1894
1900
  function d(f) {
1895
1901
  return new e(Ea.buffer, M[f + 4 >> 2], M[f >> 2]);
@@ -1903,50 +1909,50 @@ var Tc = {_abort_js:() => {
1903
1909
  Hb(b, {name:a, fromWireType:function(d) {
1904
1910
  var e = M[d >> 2], f = d + 4;
1905
1911
  if (c) {
1906
- for (var m = f, h = 0; h <= e; ++h) {
1907
- var l = f + h;
1908
- if (h == e || 0 == J[l]) {
1909
- m = m ? sc(J, m, l - m) : "";
1910
- if (void 0 === n) {
1911
- var n = m;
1912
+ for (var l = f, h = 0; h <= e; ++h) {
1913
+ var n = f + h;
1914
+ if (h == e || 0 == J[n]) {
1915
+ l = l ? sc(J, l, n - l) : "";
1916
+ if (void 0 === m) {
1917
+ var m = l;
1912
1918
  } else {
1913
- n += String.fromCharCode(0), n += m;
1919
+ m += String.fromCharCode(0), m += l;
1914
1920
  }
1915
- m = l + 1;
1921
+ l = n + 1;
1916
1922
  }
1917
1923
  }
1918
1924
  } else {
1919
- n = Array(e);
1925
+ m = Array(e);
1920
1926
  for (h = 0; h < e; ++h) {
1921
- n[h] = String.fromCharCode(J[f + h]);
1927
+ m[h] = String.fromCharCode(J[f + h]);
1922
1928
  }
1923
- n = n.join("");
1929
+ m = m.join("");
1924
1930
  }
1925
1931
  mb(d);
1926
- return n;
1932
+ return m;
1927
1933
  }, toWireType:function(d, e) {
1928
1934
  e instanceof ArrayBuffer && (e = new Uint8Array(e));
1929
1935
  var f = "string" == typeof e;
1930
1936
  if (!(f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array)) {
1931
1937
  throw new O("Cannot pass non-string to std::string");
1932
1938
  }
1933
- var m = c && f ? nc(e) : e.length;
1934
- var h = Sc(4 + m + 1), l = h + 4;
1935
- M[h >> 2] = m;
1939
+ var l = c && f ? nc(e) : e.length;
1940
+ var h = Sc(4 + l + 1), n = h + 4;
1941
+ M[h >> 2] = l;
1936
1942
  if (c && f) {
1937
- mc(e, J, l, m + 1);
1943
+ mc(e, J, n, l + 1);
1938
1944
  } else {
1939
1945
  if (f) {
1940
- for (f = 0; f < m; ++f) {
1941
- var n = e.charCodeAt(f);
1942
- if (255 < n) {
1943
- throw mb(l), new O("String has UTF-16 code units that do not fit in 8 bits");
1946
+ for (f = 0; f < l; ++f) {
1947
+ var m = e.charCodeAt(f);
1948
+ if (255 < m) {
1949
+ throw mb(n), new O("String has UTF-16 code units that do not fit in 8 bits");
1944
1950
  }
1945
- J[l + f] = n;
1951
+ J[n + f] = m;
1946
1952
  }
1947
1953
  } else {
1948
- for (f = 0; f < m; ++f) {
1949
- J[l + f] = e[f];
1954
+ for (f = 0; f < l; ++f) {
1955
+ J[n + f] = e[f];
1950
1956
  }
1951
1957
  }
1952
1958
  }
@@ -1961,26 +1967,26 @@ var Tc = {_abort_js:() => {
1961
1967
  var d = uc;
1962
1968
  var e = vc;
1963
1969
  var f = wc;
1964
- var m = h => Ga[h >> 1];
1970
+ var l = h => Ga[h >> 1];
1965
1971
  } else {
1966
- 4 === a && (d = xc, e = yc, f = zc, m = h => M[h >> 2]);
1972
+ 4 === a && (d = xc, e = yc, f = zc, l = h => M[h >> 2]);
1967
1973
  }
1968
1974
  Hb(b, {name:c, fromWireType:h => {
1969
- for (var l = M[h >> 2], n, r = h + 4, w = 0; w <= l; ++w) {
1975
+ for (var n = M[h >> 2], m, r = h + 4, w = 0; w <= n; ++w) {
1970
1976
  var z = h + 4 + w * a;
1971
- if (w == l || 0 == m(z)) {
1972
- r = d(r, z - r), void 0 === n ? n = r : (n += String.fromCharCode(0), n += r), r = z + a;
1977
+ if (w == n || 0 == l(z)) {
1978
+ r = d(r, z - r), void 0 === m ? m = r : (m += String.fromCharCode(0), m += r), r = z + a;
1973
1979
  }
1974
1980
  }
1975
1981
  mb(h);
1976
- return n;
1977
- }, toWireType:(h, l) => {
1978
- if ("string" != typeof l) {
1982
+ return m;
1983
+ }, toWireType:(h, n) => {
1984
+ if ("string" != typeof n) {
1979
1985
  throw new O(`Cannot pass non-string to C++ string type ${c}`);
1980
1986
  }
1981
- var n = f(l), r = Sc(4 + n + a);
1982
- M[r >> 2] = n / a;
1983
- e(l, r + 4, n + a);
1987
+ var m = f(n), r = Sc(4 + m + a);
1988
+ M[r >> 2] = m / a;
1989
+ e(n, r + 4, m + a);
1984
1990
  null !== h && h.push(mb, r);
1985
1991
  return r;
1986
1992
  }, argPackAdvance:8, readValueFromPointer:Eb, B(h) {
@@ -1988,8 +1994,8 @@ var Tc = {_abort_js:() => {
1988
1994
  }});
1989
1995
  }, _embind_register_value_object:(b, a, c, d, e, f) => {
1990
1996
  Cb[b] = {name:S(a), fa:Y(c, d), D:Y(e, f), sa:[],};
1991
- }, _embind_register_value_object_field:(b, a, c, d, e, f, m, h, l, n) => {
1992
- Cb[b].sa.push({Oa:S(a), Ua:c, Sa:Y(d, e), Ta:f, eb:m, cb:Y(h, l), fb:n,});
1997
+ }, _embind_register_value_object_field:(b, a, c, d, e, f, l, h, n, m) => {
1998
+ Cb[b].sa.push({Oa:S(a), Ua:c, Sa:Y(d, e), Ta:f, eb:l, cb:Y(h, n), fb:m,});
1993
1999
  }, _embind_register_void:(b, a) => {
1994
2000
  a = S(a);
1995
2001
  Hb(b, {mb:!0, name:a, argPackAdvance:0, fromWireType:() => {
@@ -2008,13 +2014,13 @@ var Tc = {_abort_js:() => {
2008
2014
  var d = Fc(b, a), e = d.shift();
2009
2015
  b--;
2010
2016
  var f = Array(b);
2011
- a = `methodCaller<(${d.map(m => m.name).join(", ")}) => ${e.name}>`;
2012
- return Ec($a(a, (m, h, l, n) => {
2017
+ a = `methodCaller<(${d.map(l => l.name).join(", ")}) => ${e.name}>`;
2018
+ return Ec($a(a, (l, h, n, m) => {
2013
2019
  for (var r = 0, w = 0; w < b; ++w) {
2014
- f[w] = d[w].readValueFromPointer(n + r), r += d[w].argPackAdvance;
2020
+ f[w] = d[w].readValueFromPointer(m + r), r += d[w].argPackAdvance;
2015
2021
  }
2016
- m = 1 === c ? Gc(h, f) : h.apply(m, f);
2017
- return Ac(e, l, m);
2022
+ l = 1 === c ? Gc(h, f) : h.apply(l, f);
2023
+ return Ac(e, n, l);
2018
2024
  }));
2019
2025
  }, _emval_get_module_property:b => {
2020
2026
  b = Cc(b);
@@ -2056,7 +2062,7 @@ var Tc = {_abort_js:() => {
2056
2062
  Ja();
2057
2063
  var f = 1;
2058
2064
  break a;
2059
- } catch (m) {
2065
+ } catch (l) {
2060
2066
  }
2061
2067
  f = void 0;
2062
2068
  }
@@ -2088,11 +2094,11 @@ var Tc = {_abort_js:() => {
2088
2094
  return 70;
2089
2095
  }, fd_write:(b, a, c, d) => {
2090
2096
  for (var e = 0, f = 0; f < c; f++) {
2091
- var m = M[a >> 2], h = M[a + 4 >> 2];
2097
+ var l = M[a >> 2], h = M[a + 4 >> 2];
2092
2098
  a += 8;
2093
- for (var l = 0; l < h; l++) {
2094
- var n = J[m + l], r = Kc[b];
2095
- 0 === n || 10 === n ? ((1 === b ? za : Aa)(sc(r, 0)), r.length = 0) : r.push(n);
2099
+ for (var n = 0; n < h; n++) {
2100
+ var m = J[l + n], r = Kc[b];
2101
+ 0 === m || 10 === m ? ((1 === b ? za : Aa)(sc(r, 0)), r.length = 0) : r.push(m);
2096
2102
  }
2097
2103
  e += h;
2098
2104
  }
@@ -2127,10 +2133,10 @@ var Tc = {_abort_js:() => {
2127
2133
  return {};
2128
2134
  }(), mb = b => (mb = Z.free)(b), Sc = b => (Sc = Z.malloc)(b), lb = b => (lb = Z.__getTypeName)(b);
2129
2135
  k.dynCall_jiji = (b, a, c, d, e) => (k.dynCall_jiji = Z.dynCall_jiji)(b, a, c, d, e);
2130
- k.dynCall_viijii = (b, a, c, d, e, f, m) => (k.dynCall_viijii = Z.dynCall_viijii)(b, a, c, d, e, f, m);
2131
- k.dynCall_iiiiij = (b, a, c, d, e, f, m) => (k.dynCall_iiiiij = Z.dynCall_iiiiij)(b, a, c, d, e, f, m);
2132
- k.dynCall_iiiiijj = (b, a, c, d, e, f, m, h, l) => (k.dynCall_iiiiijj = Z.dynCall_iiiiijj)(b, a, c, d, e, f, m, h, l);
2133
- k.dynCall_iiiiiijj = (b, a, c, d, e, f, m, h, l, n) => (k.dynCall_iiiiiijj = Z.dynCall_iiiiiijj)(b, a, c, d, e, f, m, h, l, n);
2136
+ k.dynCall_viijii = (b, a, c, d, e, f, l) => (k.dynCall_viijii = Z.dynCall_viijii)(b, a, c, d, e, f, l);
2137
+ k.dynCall_iiiiij = (b, a, c, d, e, f, l) => (k.dynCall_iiiiij = Z.dynCall_iiiiij)(b, a, c, d, e, f, l);
2138
+ k.dynCall_iiiiijj = (b, a, c, d, e, f, l, h, n) => (k.dynCall_iiiiijj = Z.dynCall_iiiiijj)(b, a, c, d, e, f, l, h, n);
2139
+ k.dynCall_iiiiiijj = (b, a, c, d, e, f, l, h, n, m) => (k.dynCall_iiiiiijj = Z.dynCall_iiiiiijj)(b, a, c, d, e, f, l, h, n, m);
2134
2140
  var Uc;
2135
2141
  Qa = function Vc() {
2136
2142
  Uc || Wc();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/canvas-advanced-lite",
3
- "version": "2.36.0",
3
+ "version": "2.37.1",
4
4
  "description": "Rive's lite low-level canvas based web api.",
5
5
  "main": "canvas_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -32,6 +32,8 @@ export interface RiveCanvas {
32
32
  decodeAudio: DecodeAudio;
33
33
  decodeImage: DecodeImage;
34
34
  decodeFont: DecodeFont;
35
+ // Returns a pointer value to the FontWrapper
36
+ setFallbackFontCallback: (callback: (missingGlyph: number, fallbackFontIndex: number, weight: number) => number | null) => void;
35
37
 
36
38
  /**
37
39
  * Loads a Rive file for the runtime and returns a Rive-specific File class
@@ -308,9 +310,11 @@ export interface DecodeImage {
308
310
  }
309
311
  export class FontInternal {
310
312
  unref(): void;
313
+ ptr(): number;
311
314
  }
312
315
  export class Font {
313
316
  unref(): void;
317
+ ptr(): number;
314
318
  get nativeFont(): FontInternal;
315
319
  }
316
320
  export interface FontCallback {
Binary file