@rive-app/webgl2-advanced 2.38.4 → 2.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,50 +6,50 @@ var Rive = (() => {
6
6
  function(moduleArg = {}) {
7
7
  var moduleRtn;
8
8
 
9
- var l = moduleArg, aa, ba, ca = new Promise((a, b) => {
9
+ var k = moduleArg, aa, ba, ca = new Promise((a, b) => {
10
10
  aa = a;
11
11
  ba = b;
12
12
  }), da = "object" == typeof window, ea = "function" == typeof importScripts;
13
13
  function fa() {
14
14
  function a(g) {
15
- const k = d;
15
+ const h = d;
16
16
  c = b = 0;
17
17
  d = new Map();
18
- k.forEach(n => {
18
+ h.forEach(m => {
19
19
  try {
20
- n(g);
21
- } catch (m) {
22
- console.error(m);
20
+ m(g);
21
+ } catch (l) {
22
+ console.error(l);
23
23
  }
24
24
  });
25
- this.nb();
26
- e && e.Ob();
25
+ this.fb();
26
+ e && e.Eb();
27
27
  }
28
28
  let b = 0, c = 0, d = new Map(), e = null, f = null;
29
29
  this.requestAnimationFrame = function(g) {
30
30
  b ||= requestAnimationFrame(a.bind(this));
31
- const k = ++c;
32
- d.set(k, g);
33
- return k;
31
+ const h = ++c;
32
+ d.set(h, g);
33
+ return h;
34
34
  };
35
35
  this.cancelAnimationFrame = function(g) {
36
36
  d.delete(g);
37
37
  b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
38
38
  };
39
- this.Mb = function(g) {
39
+ this.Cb = function(g) {
40
40
  f && (document.body.remove(f), f = null);
41
- g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(k) {
42
- f.innerHTML = "RIVE FPS " + k.toFixed(1);
41
+ g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(h) {
42
+ f.innerHTML = "RIVE FPS " + h.toFixed(1);
43
43
  }, document.body.appendChild(f));
44
44
  e = new function() {
45
- let k = 0, n = 0;
46
- this.Ob = function() {
47
- var m = performance.now();
48
- n ? (++k, m -= n, 1000 < m && (g(1000 * k / m), k = n = 0)) : (n = m, k = 0);
45
+ let h = 0, m = 0;
46
+ this.Eb = function() {
47
+ var l = performance.now();
48
+ m ? (++h, l -= m, 1000 < l && (g(1000 * h / l), h = m = 0)) : (m = l, h = 0);
49
49
  };
50
50
  }();
51
51
  };
52
- this.nb = function() {
52
+ this.fb = function() {
53
53
  };
54
54
  }
55
55
  function ha() {
@@ -67,277 +67,277 @@ function ha() {
67
67
  return b << 8;
68
68
  };
69
69
  }
70
- const ia = l.onRuntimeInitialized;
71
- l.onRuntimeInitialized = function() {
70
+ const ia = k.onRuntimeInitialized;
71
+ k.onRuntimeInitialized = function() {
72
72
  ia && ia();
73
- let a = l.decodeAudio;
74
- l.decodeAudio = function(f, g) {
73
+ let a = k.decodeAudio;
74
+ k.decodeAudio = function(f, g) {
75
75
  f = a(f);
76
76
  g(f);
77
77
  };
78
- let b = l.decodeFont;
79
- l.decodeFont = function(f, g) {
78
+ let b = k.decodeFont;
79
+ k.decodeFont = function(f, g) {
80
80
  f = b(f);
81
81
  g(f);
82
82
  };
83
- let c = l.setFallbackFontCb;
84
- l.setFallbackFontCallback = "function" === typeof c ? function(f) {
83
+ let c = k.setFallbackFontCb;
84
+ k.setFallbackFontCallback = "function" === typeof c ? function(f) {
85
85
  c(f);
86
86
  } : function() {
87
87
  console.warn("Module.setFallbackFontCallback called, but text support is not enabled in this build.");
88
88
  };
89
- const d = l.FileAssetLoader;
90
- l.ptrToAsset = f => {
91
- let g = l.ptrToFileAsset(f);
92
- return g.isImage ? l.ptrToImageAsset(f) : g.isFont ? l.ptrToFontAsset(f) : g.isAudio ? l.ptrToAudioAsset(f) : g;
89
+ const d = k.FileAssetLoader;
90
+ k.ptrToAsset = f => {
91
+ let g = k.ptrToFileAsset(f);
92
+ return g.isImage ? k.ptrToImageAsset(f) : g.isFont ? k.ptrToFontAsset(f) : g.isAudio ? k.ptrToAudioAsset(f) : g;
93
93
  };
94
- l.CustomFileAssetLoader = d.extend("CustomFileAssetLoader", {__construct:function({loadContents:f}) {
94
+ k.CustomFileAssetLoader = d.extend("CustomFileAssetLoader", {__construct:function({loadContents:f}) {
95
95
  this.__parent.__construct.call(this);
96
- this.Cb = f;
96
+ this.sb = f;
97
97
  }, loadContents:function(f, g) {
98
- f = l.ptrToAsset(f);
99
- return this.Cb(f, g);
98
+ f = k.ptrToAsset(f);
99
+ return this.sb(f, g);
100
100
  },});
101
- l.CDNFileAssetLoader = d.extend("CDNFileAssetLoader", {__construct:function() {
101
+ k.CDNFileAssetLoader = d.extend("CDNFileAssetLoader", {__construct:function() {
102
102
  this.__parent.__construct.call(this);
103
103
  }, loadContents:function(f) {
104
- let g = l.ptrToAsset(f);
104
+ let g = k.ptrToAsset(f);
105
105
  f = g.cdnUuid;
106
106
  if ("" === f) {
107
107
  return !1;
108
108
  }
109
- (function(k, n) {
110
- var m = new XMLHttpRequest();
111
- m.responseType = "arraybuffer";
112
- m.onreadystatechange = function() {
113
- 4 == m.readyState && 200 == m.status && n(m);
109
+ (function(h, m) {
110
+ var l = new XMLHttpRequest();
111
+ l.responseType = "arraybuffer";
112
+ l.onreadystatechange = function() {
113
+ 4 == l.readyState && 200 == l.status && m(l);
114
114
  };
115
- m.open("GET", k, !0);
116
- m.send(null);
117
- })(g.cdnBaseUrl + "/" + f, k => {
118
- g.decode(new Uint8Array(k.response));
115
+ l.open("GET", h, !0);
116
+ l.send(null);
117
+ })(g.cdnBaseUrl + "/" + f, h => {
118
+ g.decode(new Uint8Array(h.response));
119
119
  });
120
120
  return !0;
121
121
  },});
122
- l.FallbackFileAssetLoader = d.extend("FallbackFileAssetLoader", {__construct:function() {
122
+ k.FallbackFileAssetLoader = d.extend("FallbackFileAssetLoader", {__construct:function() {
123
123
  this.__parent.__construct.call(this);
124
- this.jb = [];
124
+ this.ab = [];
125
125
  }, addLoader:function(f) {
126
- this.jb.push(f);
126
+ this.ab.push(f);
127
127
  }, loadContents:function(f, g) {
128
- for (let k of this.jb) {
129
- if (k.loadContents(f, g)) {
128
+ for (let h of this.ab) {
129
+ if (h.loadContents(f, g)) {
130
130
  return !0;
131
131
  }
132
132
  }
133
133
  return !1;
134
134
  },});
135
- let e = l.computeAlignment;
136
- l.computeAlignment = function(f, g, k, n, m = 1.0) {
137
- return e.call(this, f, g, k, n, m);
135
+ let e = k.computeAlignment;
136
+ k.computeAlignment = function(f, g, h, m, l = 1.0) {
137
+ return e.call(this, f, g, h, m, l);
138
138
  };
139
139
  };
140
- const ja = l.onRuntimeInitialized;
141
- l.onRuntimeInitialized = function() {
142
- function a(r) {
143
- this.G = r;
144
- this.Bb = r.getContext("2d");
145
- this.$a = d;
146
- this.S = [];
147
- this.ka = 0;
140
+ const ja = k.onRuntimeInitialized;
141
+ k.onRuntimeInitialized = function() {
142
+ function a(q) {
143
+ this.D = q;
144
+ this.rb = q.getContext("2d");
145
+ this.Sa = d;
146
+ this.O = [];
147
+ this.ga = 0;
148
148
  this.clear = function() {
149
- console.assert(0 == this.ka);
150
- this.S = [];
149
+ console.assert(0 == this.ga);
150
+ this.O = [];
151
151
  e.delete(this);
152
152
  };
153
153
  this.save = function() {
154
- ++this.ka;
155
- this.S.push(d.save.bind(d));
154
+ ++this.ga;
155
+ this.O.push(d.save.bind(d));
156
156
  };
157
157
  this.restore = function() {
158
- 0 < this.ka && (this.S.push(d.restore.bind(d)), --this.ka);
158
+ 0 < this.ga && (this.O.push(d.restore.bind(d)), --this.ga);
159
159
  };
160
- this.transform = function(u) {
161
- this.S.push(d.transform.bind(d, u));
160
+ this.transform = function(t) {
161
+ this.O.push(d.transform.bind(d, t));
162
162
  };
163
- this.align = function(u, z, A, C, H = 1.0) {
164
- this.S.push(d.align.bind(d, u, z, A, C, H));
163
+ this.align = function(t, y, z, B, G = 1.0) {
164
+ this.O.push(d.align.bind(d, t, y, z, B, G));
165
165
  };
166
166
  this.flush = function() {
167
- console.assert(0 == this.ka);
167
+ console.assert(0 == this.ga);
168
168
  e.add(this);
169
- d.Za || c();
169
+ d.Ra || c();
170
170
  };
171
171
  this.bindContext = function() {
172
- const u = this.$a;
173
- u && u.Z && ka(u.Z);
172
+ const t = this.Sa;
173
+ t && t.W && ka(t.W);
174
174
  };
175
175
  this["delete"] = function() {
176
176
  };
177
177
  }
178
- function b(r, u = !1) {
179
- var z = {alpha:!0, depth:u, stencil:u, antialias:u, premultipliedAlpha:!0, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:!1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,};
180
- u = r.getContext("webgl2", z);
181
- if (!u) {
178
+ function b(q, t = !1) {
179
+ var y = {alpha:!0, depth:t, stencil:t, antialias:t, premultipliedAlpha:!0, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:!1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,};
180
+ t = q.getContext("webgl2", y);
181
+ if (!t) {
182
182
  return null;
183
183
  }
184
- z = la(u, z);
185
- ka(z);
186
- const A = f(r.width, r.height);
187
- A.Z = z;
188
- A.G = r;
189
- A.Oa = r.width;
190
- A.Na = r.height;
191
- A.T = u;
192
- A.Gb = function() {
193
- this.Z && ka(this.Z);
184
+ y = la(t, y);
185
+ ka(y);
186
+ const z = f(q.width, q.height);
187
+ z.W = y;
188
+ z.D = q;
189
+ z.Ia = q.width;
190
+ z.Ha = q.height;
191
+ z.P = t;
192
+ z.wb = function() {
193
+ this.W && ka(this.W);
194
194
  };
195
- var C = A.delete;
196
- A.delete = function() {
197
- this.Gb();
198
- C.call(this);
199
- var H = this.Z;
200
- q === w[H] && (q = null);
201
- "object" == typeof JSEvents && JSEvents.Rc(w[H].F.canvas);
202
- w[H] && w[H].F.canvas && (w[H].F.canvas.Ab = void 0);
203
- this.Z = this.G = this.Oa = this.Na = this.T = w[H] = null;
195
+ var B = z.delete;
196
+ z.delete = function() {
197
+ this.wb();
198
+ B.call(this);
199
+ var G = this.W;
200
+ p === v[G] && (p = null);
201
+ "object" == typeof JSEvents && JSEvents.Gc(v[G].C.canvas);
202
+ v[G] && v[G].C.canvas && (v[G].C.canvas.qb = void 0);
203
+ this.W = this.D = this.Ia = this.Ha = this.P = v[G] = null;
204
204
  };
205
- return A;
205
+ return z;
206
206
  }
207
207
  function c() {
208
208
  if (d) {
209
- var r = d.Eb, u = 0, z = 0, A = 0, C = Array(e.size), H = 0;
210
- for (var J of e) {
211
- J.fa = Math.min(J.G.width, r), J.ea = Math.min(J.G.height, r), J.La = J.ea * J.fa, u = Math.max(u, J.fa), z = Math.max(z, J.ea), A += J.La, C[H++] = J;
209
+ var q = d.ub, t = 0, y = 0, z = 0, B = Array(e.size), G = 0;
210
+ for (var I of e) {
211
+ I.ca = Math.min(I.D.width, q), I.ba = Math.min(I.D.height, q), I.Fa = I.ba * I.ca, t = Math.max(t, I.ca), y = Math.max(y, I.ba), z += I.Fa, B[G++] = I;
212
212
  }
213
213
  e.clear();
214
- if (!(0 >= A)) {
215
- u = 1 << (0 >= u ? 0 : 32 - Math.clz32(u - 1));
216
- for (z = 1 << (0 >= z ? 0 : 32 - Math.clz32(z - 1)); z * u < A;) {
217
- u <= z ? u *= 2 : z *= 2;
214
+ if (!(0 >= z)) {
215
+ t = 1 << (0 >= t ? 0 : 32 - Math.clz32(t - 1));
216
+ for (y = 1 << (0 >= y ? 0 : 32 - Math.clz32(y - 1)); y * t < z;) {
217
+ t <= y ? t *= 2 : y *= 2;
218
218
  }
219
- u = Math.min(u, r);
220
- u = Math.min(z, r);
221
- C.sort((Z, ob) => ob.La - Z.La);
222
- A = new l.DynamicRectanizer(r);
223
- for (J = 0; J < C.length;) {
224
- A.reset(u, z);
225
- for (H = J; H < C.length; ++H) {
226
- var K = C[H], I = A.addRect(K.fa, K.ea);
227
- if (0 > I) {
228
- console.assert(H > J);
219
+ t = Math.min(t, q);
220
+ t = Math.min(y, q);
221
+ B.sort((Y, nb) => nb.Fa - Y.Fa);
222
+ z = new k.DynamicRectanizer(q);
223
+ for (I = 0; I < B.length;) {
224
+ z.reset(t, y);
225
+ for (G = I; G < B.length; ++G) {
226
+ var J = B[G], H = z.addRect(J.ca, J.ba);
227
+ if (0 > H) {
228
+ console.assert(G > I);
229
229
  break;
230
230
  }
231
- K.qa = I & 65535;
232
- K.ra = I >> 16;
231
+ J.ma = H & 65535;
232
+ J.na = H >> 16;
233
233
  }
234
- K = n.push(A.drawWidth());
235
- I = m.push(A.drawHeight());
236
- console.assert(K >= A.drawWidth());
237
- console.assert(I >= A.drawHeight());
238
- console.assert(K <= r);
239
- console.assert(I <= r);
240
- d.G.width != K && (d.G.width = K);
241
- d.G.height != I && (d.G.height = I);
234
+ J = m.push(z.drawWidth());
235
+ H = l.push(z.drawHeight());
236
+ console.assert(J >= z.drawWidth());
237
+ console.assert(H >= z.drawHeight());
238
+ console.assert(J <= q);
239
+ console.assert(H <= q);
240
+ d.D.width != J && (d.D.width = J);
241
+ d.D.height != H && (d.D.height = H);
242
242
  d.clear();
243
- for (K = J; K < H; ++K) {
244
- I = C[K];
245
- d.saveClipRect(I.qa, I.ra, I.qa + I.fa, I.ra + I.ea);
246
- let Z = new l.Mat2D();
247
- Z.xx = I.fa / I.G.width;
248
- Z.yy = I.ea / I.G.height;
249
- Z.xy = Z.yx = 0;
250
- Z.tx = I.qa;
251
- Z.ty = I.ra;
252
- d.transform(Z);
253
- for (const ob of I.S) {
254
- ob();
243
+ for (J = I; J < G; ++J) {
244
+ H = B[J];
245
+ d.saveClipRect(H.ma, H.na, H.ma + H.ca, H.na + H.ba);
246
+ let Y = new k.Mat2D();
247
+ Y.xx = H.ca / H.D.width;
248
+ Y.yy = H.ba / H.D.height;
249
+ Y.xy = Y.yx = 0;
250
+ Y.tx = H.ma;
251
+ Y.ty = H.na;
252
+ d.transform(Y);
253
+ for (const nb of H.O) {
254
+ nb();
255
255
  }
256
256
  d.restoreClipRect();
257
- I.S = [];
257
+ H.O = [];
258
258
  }
259
- for (d.flush(); J < H; ++J) {
260
- K = C[J], I = K.Bb, I.globalCompositeOperation = "copy", I.drawImage(d.G, K.qa, K.ra, K.fa, K.ea, 0, 0, K.G.width, K.G.height);
259
+ for (d.flush(); I < G; ++I) {
260
+ J = B[I], H = J.rb, H.globalCompositeOperation = "copy", H.drawImage(d.D, J.ma, J.na, J.ca, J.ba, 0, 0, J.D.width, J.D.height);
261
261
  }
262
- J = H;
262
+ I = G;
263
263
  }
264
264
  }
265
265
  }
266
266
  }
267
267
  ja && ja();
268
268
  let d = null;
269
- const e = new Set(), f = l.makeRenderer;
270
- l.makeRenderer = function(r, u) {
269
+ const e = new Set(), f = k.makeRenderer;
270
+ k.makeRenderer = function(q, t) {
271
271
  if (!d) {
272
- function z(A) {
273
- var C = document.createElement("canvas");
274
- C.width = 1;
275
- C.height = 1;
276
- d = b(C, A);
272
+ function y(z) {
273
+ var B = document.createElement("canvas");
274
+ B.width = 1;
275
+ B.height = 1;
276
+ d = b(B, z);
277
277
  if (!d) {
278
278
  return null;
279
279
  }
280
- d.Za = !!d.T.getExtension("WEBGL_shader_pixel_local_storage");
281
- d.Eb = Math.min(d.T.getParameter(d.T.MAX_RENDERBUFFER_SIZE), d.T.getParameter(d.T.MAX_TEXTURE_SIZE));
282
- d.Ma = !d.Za;
283
- if (A = d.T.getExtension("WEBGL_debug_renderer_info")) {
284
- C = d.T.getParameter(A.UNMASKED_RENDERER_WEBGL), d.T.getParameter(A.UNMASKED_VENDOR_WEBGL).includes("Google") && C.includes("ANGLE Metal Renderer") && (d.Ma = !1);
280
+ d.Ra = !!d.P.getExtension("WEBGL_shader_pixel_local_storage");
281
+ d.ub = Math.min(d.P.getParameter(d.P.MAX_RENDERBUFFER_SIZE), d.P.getParameter(d.P.MAX_TEXTURE_SIZE));
282
+ d.Ga = !d.Ra;
283
+ if (z = d.P.getExtension("WEBGL_debug_renderer_info")) {
284
+ B = d.P.getParameter(z.UNMASKED_RENDERER_WEBGL), d.P.getParameter(z.UNMASKED_VENDOR_WEBGL).includes("Google") && B.includes("ANGLE Metal Renderer") && (d.Ga = !1);
285
285
  }
286
286
  return d;
287
287
  }
288
- d = z(!0);
288
+ d = y(!0);
289
289
  if (!d) {
290
290
  throw "Unable to create WebGL context, your environment may not support WebGL. Try out @rive-app/canvas as an alternative.";
291
291
  }
292
- d.Ma || (d = z(!1));
292
+ d.Ga || (d = y(!1));
293
293
  }
294
- return u ? new a(r) : b(r, d.Ma);
294
+ return t ? new a(q) : b(q, d.Ga);
295
295
  };
296
- const g = l.Artboard.prototype["delete"];
297
- l.Artboard.prototype["delete"] = function() {
298
- this.Fb = !0;
296
+ const g = k.Artboard.prototype["delete"];
297
+ k.Artboard.prototype["delete"] = function() {
298
+ this.vb = !0;
299
299
  g.call(this);
300
300
  };
301
- const k = l.Artboard.prototype.draw;
302
- l.Artboard.prototype.draw = function(r) {
303
- r.S ? r.S.push(() => {
304
- this.Fb || k.call(this, r.$a);
305
- }) : k.call(this, r);
301
+ const h = k.Artboard.prototype.draw;
302
+ k.Artboard.prototype.draw = function(q) {
303
+ q.O ? q.O.push(() => {
304
+ this.vb || h.call(this, q.Sa);
305
+ }) : h.call(this, q);
306
306
  };
307
- const n = new ha(), m = new ha(), t = new fa();
308
- l.requestAnimationFrame = t.requestAnimationFrame.bind(t);
309
- l.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
310
- l.enableFPSCounter = t.Mb.bind(t);
311
- t.nb = c;
312
- l.resolveAnimationFrame = c;
313
- let v = l.load;
314
- l.load = function(r, u, z = !0) {
315
- const A = new l.FallbackFileAssetLoader();
316
- void 0 !== u && A.addLoader(u);
317
- z && (u = new l.CDNFileAssetLoader(), A.addLoader(u));
318
- return Promise.resolve(v(r, A));
307
+ const m = new ha(), l = new ha(), r = new fa();
308
+ k.requestAnimationFrame = r.requestAnimationFrame.bind(r);
309
+ k.cancelAnimationFrame = r.cancelAnimationFrame.bind(r);
310
+ k.enableFPSCounter = r.Cb.bind(r);
311
+ r.fb = c;
312
+ k.resolveAnimationFrame = c;
313
+ let u = k.load;
314
+ k.load = function(q, t, y = !0) {
315
+ const z = new k.FallbackFileAssetLoader();
316
+ void 0 !== t && z.addLoader(t);
317
+ y && (t = new k.CDNFileAssetLoader(), z.addLoader(t));
318
+ return Promise.resolve(u(q, z));
319
319
  };
320
- const x = l.WebGL2Renderer.prototype.clear;
321
- l.WebGL2Renderer.prototype.clear = function() {
322
- ka(this.Z);
323
- const r = this.G;
324
- if (this.Oa != r.width || this.Na != r.height) {
325
- this.resize(r.width, r.height), this.Oa = r.width, this.Na = r.height;
326
- }
327
- x.call(this);
320
+ const w = k.WebGL2Renderer.prototype.clear;
321
+ k.WebGL2Renderer.prototype.clear = function() {
322
+ ka(this.W);
323
+ const q = this.D;
324
+ if (this.Ia != q.width || this.Ha != q.height) {
325
+ this.resize(q.width, q.height), this.Ia = q.width, this.Ha = q.height;
326
+ }
327
+ w.call(this);
328
328
  };
329
- l.decodeImage = function(r, u) {
330
- r = l.decodeWebGL2Image(r);
331
- u(r);
329
+ k.decodeImage = function(q, t) {
330
+ q = k.decodeWebGL2Image(q);
331
+ t(q);
332
332
  };
333
- let p = l.Renderer.prototype.align;
334
- l.Renderer.prototype.align = function(r, u, z, A, C = 1.0) {
335
- p.call(this, r, u, z, A, C);
333
+ let n = k.Renderer.prototype.align;
334
+ k.Renderer.prototype.align = function(q, t, y, z, B = 1.0) {
335
+ n.call(this, q, t, y, z, B);
336
336
  };
337
337
  };
338
- var ma = Object.assign({}, l), na = "./this.program", y = "", oa, pa;
338
+ var ma = Object.assign({}, k), na = "./this.program", x = "", oa, pa;
339
339
  if (da || ea) {
340
- ea ? y = self.location.href : "undefined" != typeof document && document.currentScript && (y = document.currentScript.src), _scriptName && (y = _scriptName), y.startsWith("blob:") ? y = "" : y = y.substr(0, y.replace(/[?#].*/, "").lastIndexOf("/") + 1), ea && (pa = a => {
340
+ ea ? x = self.location.href : "undefined" != typeof document && document.currentScript && (x = document.currentScript.src), _scriptName && (x = _scriptName), x.startsWith("blob:") ? x = "" : x = x.substr(0, x.replace(/[?#].*/, "").lastIndexOf("/") + 1), ea && (pa = a => {
341
341
  var b = new XMLHttpRequest();
342
342
  b.open("GET", a, !1);
343
343
  b.responseType = "arraybuffer";
@@ -358,142 +358,142 @@ if (da || ea) {
358
358
  }
359
359
  };
360
360
  }
361
- var ra = l.print || console.log.bind(console), sa = l.printErr || console.error.bind(console);
362
- Object.assign(l, ma);
361
+ var ra = k.print || console.log.bind(console), A = k.printErr || console.error.bind(console);
362
+ Object.assign(k, ma);
363
363
  ma = null;
364
- l.thisProgram && (na = l.thisProgram);
365
- var ta;
366
- l.wasmBinary && (ta = l.wasmBinary);
367
- var ua, va = !1, B, D, E, wa, F, G, xa, ya;
368
- function za() {
369
- var a = ua.buffer;
370
- l.HEAP8 = B = new Int8Array(a);
371
- l.HEAP16 = E = new Int16Array(a);
372
- l.HEAPU8 = D = new Uint8Array(a);
373
- l.HEAPU16 = wa = new Uint16Array(a);
374
- l.HEAP32 = F = new Int32Array(a);
375
- l.HEAPU32 = G = new Uint32Array(a);
376
- l.HEAPF32 = xa = new Float32Array(a);
377
- l.HEAPF64 = ya = new Float64Array(a);
364
+ k.thisProgram && (na = k.thisProgram);
365
+ var sa;
366
+ k.wasmBinary && (sa = k.wasmBinary);
367
+ var ta, ua = !1, C, D, E, va, F, K, wa, xa;
368
+ function ya() {
369
+ var a = ta.buffer;
370
+ k.HEAP8 = C = new Int8Array(a);
371
+ k.HEAP16 = E = new Int16Array(a);
372
+ k.HEAPU8 = D = new Uint8Array(a);
373
+ k.HEAPU16 = va = new Uint16Array(a);
374
+ k.HEAP32 = F = new Int32Array(a);
375
+ k.HEAPU32 = K = new Uint32Array(a);
376
+ k.HEAPF32 = wa = new Float32Array(a);
377
+ k.HEAPF64 = xa = new Float64Array(a);
378
378
  }
379
- var Aa = [], Ba = [], Ca = [];
380
- function Da() {
381
- var a = l.preRun.shift();
382
- Aa.unshift(a);
379
+ var za = [], Aa = [], Ba = [];
380
+ function Ca() {
381
+ var a = k.preRun.shift();
382
+ za.unshift(a);
383
383
  }
384
- var Ea = 0, Fa = null, Ga = null;
385
- function Ha(a) {
386
- l.onAbort?.(a);
384
+ var Da = 0, Ea = null, Fa = null;
385
+ function Ga(a) {
386
+ k.onAbort?.(a);
387
387
  a = "Aborted(" + a + ")";
388
- sa(a);
389
- va = !0;
388
+ A(a);
389
+ ua = !0;
390
390
  a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
391
391
  ba(a);
392
392
  throw a;
393
393
  }
394
- var Ia = a => a.startsWith("data:application/octet-stream;base64,"), qa = a => a.startsWith("file://"), Ja;
395
- function Ka(a) {
396
- if (a == Ja && ta) {
397
- return new Uint8Array(ta);
394
+ var Ha = a => a.startsWith("data:application/octet-stream;base64,"), qa = a => a.startsWith("file://"), Ia;
395
+ function Ja(a) {
396
+ if (a == Ia && sa) {
397
+ return new Uint8Array(sa);
398
398
  }
399
399
  if (pa) {
400
400
  return pa(a);
401
401
  }
402
402
  throw "both async and sync fetching of the wasm failed";
403
403
  }
404
- function La(a) {
405
- return ta ? Promise.resolve().then(() => Ka(a)) : new Promise((b, c) => {
404
+ function Ka(a) {
405
+ return sa ? Promise.resolve().then(() => Ja(a)) : new Promise((b, c) => {
406
406
  oa(a, d => b(new Uint8Array(d)), () => {
407
407
  try {
408
- b(Ka(a));
408
+ b(Ja(a));
409
409
  } catch (d) {
410
410
  c(d);
411
411
  }
412
412
  });
413
413
  });
414
414
  }
415
- function Ma(a, b, c) {
416
- return La(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
417
- sa(`failed to asynchronously prepare wasm: ${d}`);
418
- Ha(d);
415
+ function La(a, b, c) {
416
+ return Ka(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
417
+ A(`failed to asynchronously prepare wasm: ${d}`);
418
+ Ga(d);
419
419
  });
420
420
  }
421
- function Na(a, b) {
422
- var c = Ja;
423
- return ta || "function" != typeof WebAssembly.instantiateStreaming || Ia(c) || qa(c) || "function" != typeof fetch ? Ma(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
424
- sa(`wasm streaming compile failed: ${e}`);
425
- sa("falling back to ArrayBuffer instantiation");
426
- return Ma(c, a, b);
421
+ function Ma(a, b) {
422
+ var c = Ia;
423
+ return sa || "function" != typeof WebAssembly.instantiateStreaming || Ha(c) || qa(c) || "function" != typeof fetch ? La(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
424
+ A(`wasm streaming compile failed: ${e}`);
425
+ A("falling back to ArrayBuffer instantiation");
426
+ return La(c, a, b);
427
427
  }));
428
428
  }
429
- var Oa, Pa, Ta = {571647:(a, b, c, d, e) => {
429
+ var Na, Oa, Sa = {573535:(a, b, c, d, e) => {
430
430
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
431
431
  return 0;
432
432
  }
433
- if ("undefined" === typeof window.h) {
434
- window.h = {Ga:0};
435
- window.h.I = {};
436
- window.h.I.Da = a;
437
- window.h.I.capture = b;
438
- window.h.I.Qa = c;
439
- window.h.ia = {};
440
- window.h.ia.stopped = d;
441
- window.h.ia.vb = e;
442
- let f = window.h;
443
- f.C = [];
444
- f.nc = function(g) {
445
- for (var k = 0; k < f.C.length; ++k) {
446
- if (null == f.C[k]) {
447
- return f.C[k] = g, k;
433
+ if ("undefined" === typeof window.miniaudio) {
434
+ window.miniaudio = {referenceCount:0};
435
+ window.miniaudio.device_type = {};
436
+ window.miniaudio.device_type.playback = a;
437
+ window.miniaudio.device_type.capture = b;
438
+ window.miniaudio.device_type.duplex = c;
439
+ window.miniaudio.device_state = {};
440
+ window.miniaudio.device_state.stopped = d;
441
+ window.miniaudio.device_state.started = e;
442
+ let f = window.miniaudio;
443
+ f.devices = [];
444
+ f.track_device = function(g) {
445
+ for (var h = 0; h < f.devices.length; ++h) {
446
+ if (null == f.devices[h]) {
447
+ return f.devices[h] = g, h;
448
448
  }
449
449
  }
450
- f.C.push(g);
451
- return f.C.length - 1;
450
+ f.devices.push(g);
451
+ return f.devices.length - 1;
452
452
  };
453
- f.zb = function(g) {
454
- for (f.C[g] = null; 0 < f.C.length;) {
455
- if (null == f.C[f.C.length - 1]) {
456
- f.C.pop();
453
+ f.untrack_device_by_index = function(g) {
454
+ for (f.devices[g] = null; 0 < f.devices.length;) {
455
+ if (null == f.devices[f.devices.length - 1]) {
456
+ f.devices.pop();
457
457
  } else {
458
458
  break;
459
459
  }
460
460
  }
461
461
  };
462
- f.Uc = function(g) {
463
- for (var k = 0; k < f.C.length; ++k) {
464
- if (f.C[k] == g) {
465
- return f.zb(k);
462
+ f.untrack_device = function(g) {
463
+ for (var h = 0; h < f.devices.length; ++h) {
464
+ if (f.devices[h] == g) {
465
+ return f.untrack_device_by_index(h);
466
466
  }
467
467
  }
468
468
  };
469
- f.ua = function(g) {
470
- return f.C[g];
469
+ f.get_device_by_index = function(g) {
470
+ return f.devices[g];
471
471
  };
472
- f.Ya = ["touchend", "click"];
472
+ f.unlock_event_types = ["touchend", "click"];
473
473
  f.unlock = function() {
474
- for (var g = 0; g < f.C.length; ++g) {
475
- var k = f.C[g];
476
- null != k && null != k.K && k.state === f.ia.vb && k.K.resume().then(() => {
477
- Qa(k.ob);
478
- }, n => {
479
- console.error("Failed to resume audiocontext", n);
474
+ for (var g = 0; g < f.devices.length; ++g) {
475
+ var h = f.devices[g];
476
+ null != h && null != h.H && h.state === f.device_state.started && h.H.resume().then(() => {
477
+ Pa(h.gb);
478
+ }, m => {
479
+ console.error("Failed to resume audiocontext", m);
480
480
  });
481
481
  }
482
- f.Ya.map(function(n) {
483
- document.removeEventListener(n, f.unlock, !0);
482
+ f.unlock_event_types.map(function(m) {
483
+ document.removeEventListener(m, f.unlock, !0);
484
484
  });
485
485
  };
486
- f.Ya.map(function(g) {
486
+ f.unlock_event_types.map(function(g) {
487
487
  document.addEventListener(g, f.unlock, !0);
488
488
  });
489
489
  }
490
- window.h.Ga += 1;
490
+ window.miniaudio.referenceCount += 1;
491
491
  return 1;
492
- }, 573825:() => {
493
- "undefined" !== typeof window.h && (window.h.Ya.map(function(a) {
494
- document.removeEventListener(a, window.h.unlock, !0);
495
- }), --window.h.Ga, 0 === window.h.Ga && delete window.h);
496
- }, 574129:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 574233:() => {
492
+ }, 575713:() => {
493
+ "undefined" !== typeof window.miniaudio && (window.miniaudio.unlock_event_types.map(function(a) {
494
+ document.removeEventListener(a, window.miniaudio.unlock, !0);
495
+ }), --window.miniaudio.referenceCount, 0 === window.miniaudio.referenceCount && delete window.miniaudio);
496
+ }, 576017:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 576121:() => {
497
497
  try {
498
498
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
499
499
  a.close();
@@ -501,81 +501,81 @@ var Oa, Pa, Ta = {571647:(a, b, c, d, e) => {
501
501
  } catch (c) {
502
502
  return 0;
503
503
  }
504
- }, 574404:(a, b, c, d, e, f) => {
505
- if ("undefined" === typeof window.h) {
504
+ }, 576292:(a, b, c, d, e, f) => {
505
+ if ("undefined" === typeof window.miniaudio) {
506
506
  return -1;
507
507
  }
508
- var g = {}, k = {};
509
- a == window.h.I.Da && 0 != c && (k.sampleRate = c);
510
- g.K = new (window.AudioContext || window.webkitAudioContext)(k);
511
- g.K.suspend();
512
- g.state = window.h.ia.stopped;
508
+ var g = {}, h = {};
509
+ a == window.miniaudio.device_type.playback && 0 != c && (h.sampleRate = c);
510
+ g.H = new (window.AudioContext || window.webkitAudioContext)(h);
511
+ g.H.suspend();
512
+ g.state = window.miniaudio.device_state.stopped;
513
513
  c = 0;
514
- a != window.h.I.Da && (c = b);
515
- g.Y = g.K.createScriptProcessor(d, c, b);
516
- g.Y.onaudioprocess = function(n) {
517
- if (null == g.va || 0 == g.va.length) {
518
- g.va = new Float32Array(xa.buffer, e, d * b);
519
- }
520
- if (a == window.h.I.capture || a == window.h.I.Qa) {
521
- for (var m = 0; m < b; m += 1) {
522
- for (var t = n.inputBuffer.getChannelData(m), v = g.va, x = 0; x < d; x += 1) {
523
- v[x * b + m] = t[x];
514
+ a != window.miniaudio.device_type.playback && (c = b);
515
+ g.V = g.H.createScriptProcessor(d, c, b);
516
+ g.V.onaudioprocess = function(m) {
517
+ if (null == g.ra || 0 == g.ra.length) {
518
+ g.ra = new Float32Array(wa.buffer, e, d * b);
519
+ }
520
+ if (a == window.miniaudio.device_type.capture || a == window.miniaudio.device_type.duplex) {
521
+ for (var l = 0; l < b; l += 1) {
522
+ for (var r = m.inputBuffer.getChannelData(l), u = g.ra, w = 0; w < d; w += 1) {
523
+ u[w * b + l] = r[w];
524
524
  }
525
525
  }
526
- Ra(f, d, e);
526
+ Qa(f, d, e);
527
527
  }
528
- if (a == window.h.I.Da || a == window.h.I.Qa) {
529
- for (Sa(f, d, e), m = 0; m < n.outputBuffer.numberOfChannels; ++m) {
530
- for (t = n.outputBuffer.getChannelData(m), v = g.va, x = 0; x < d; x += 1) {
531
- t[x] = v[x * b + m];
528
+ if (a == window.miniaudio.device_type.playback || a == window.miniaudio.device_type.duplex) {
529
+ for (Ra(f, d, e), l = 0; l < m.outputBuffer.numberOfChannels; ++l) {
530
+ for (r = m.outputBuffer.getChannelData(l), u = g.ra, w = 0; w < d; w += 1) {
531
+ r[w] = u[w * b + l];
532
532
  }
533
533
  }
534
534
  } else {
535
- for (m = 0; m < n.outputBuffer.numberOfChannels; ++m) {
536
- n.outputBuffer.getChannelData(m).fill(0.0);
535
+ for (l = 0; l < m.outputBuffer.numberOfChannels; ++l) {
536
+ m.outputBuffer.getChannelData(l).fill(0.0);
537
537
  }
538
538
  }
539
539
  };
540
- a != window.h.I.capture && a != window.h.I.Qa || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(n) {
541
- g.Ha = g.K.createMediaStreamSource(n);
542
- g.Ha.connect(g.Y);
543
- g.Y.connect(g.K.destination);
544
- }).catch(function(n) {
545
- console.log("Failed to get user media: " + n);
540
+ a != window.miniaudio.device_type.capture && a != window.miniaudio.device_type.duplex || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(m) {
541
+ g.Ba = g.H.createMediaStreamSource(m);
542
+ g.Ba.connect(g.V);
543
+ g.V.connect(g.H.destination);
544
+ }).catch(function(m) {
545
+ console.log("Failed to get user media: " + m);
546
546
  });
547
- a == window.h.I.Da && g.Y.connect(g.K.destination);
548
- g.ob = f;
549
- return window.h.nc(g);
550
- }, 577281:a => window.h.ua(a).K.sampleRate, 577354:a => {
551
- a = window.h.ua(a);
552
- void 0 !== a.Y && (a.Y.onaudioprocess = function() {
553
- }, a.Y.disconnect(), a.Y = void 0);
554
- void 0 !== a.Ha && (a.Ha.disconnect(), a.Ha = void 0);
555
- a.K.close();
556
- a.K = void 0;
557
- a.ob = void 0;
558
- }, 577754:a => {
559
- window.h.zb(a);
560
- }, 577804:a => {
561
- a = window.h.ua(a);
562
- a.K.resume();
563
- a.state = window.h.ia.vb;
564
- }, 577943:a => {
565
- a = window.h.ua(a);
566
- a.K.suspend();
567
- a.state = window.h.ia.stopped;
568
- }}, Ua = a => {
547
+ a == window.miniaudio.device_type.playback && g.V.connect(g.H.destination);
548
+ g.gb = f;
549
+ return window.miniaudio.track_device(g);
550
+ }, 579169:a => window.miniaudio.get_device_by_index(a).H.sampleRate, 579242:a => {
551
+ a = window.miniaudio.get_device_by_index(a);
552
+ void 0 !== a.V && (a.V.onaudioprocess = function() {
553
+ }, a.V.disconnect(), a.V = void 0);
554
+ void 0 !== a.Ba && (a.Ba.disconnect(), a.Ba = void 0);
555
+ a.H.close();
556
+ a.H = void 0;
557
+ a.gb = void 0;
558
+ }, 579642:a => {
559
+ window.miniaudio.untrack_device_by_index(a);
560
+ }, 579692:a => {
561
+ a = window.miniaudio.get_device_by_index(a);
562
+ a.H.resume();
563
+ a.state = window.miniaudio.device_state.started;
564
+ }, 579831:a => {
565
+ a = window.miniaudio.get_device_by_index(a);
566
+ a.H.suspend();
567
+ a.state = window.miniaudio.device_state.stopped;
568
+ }}, Ta = a => {
569
569
  for (; 0 < a.length;) {
570
- a.shift()(l);
570
+ a.shift()(k);
571
571
  }
572
572
  };
573
- function Va() {
574
- var a = F[+Wa >> 2];
575
- Wa += 4;
573
+ function Ua() {
574
+ var a = F[+Va >> 2];
575
+ Va += 4;
576
576
  return a;
577
577
  }
578
- var Xa = (a, b) => {
578
+ var Wa = (a, b) => {
579
579
  for (var c = 0, d = a.length - 1; 0 <= d; d--) {
580
580
  var e = a[d];
581
581
  "." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
@@ -586,12 +586,12 @@ var Xa = (a, b) => {
586
586
  }
587
587
  }
588
588
  return a;
589
- }, Ya = a => {
589
+ }, Xa = a => {
590
590
  var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
591
- (a = Xa(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
591
+ (a = Wa(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
592
592
  a && c && (a += "/");
593
593
  return (b ? "/" : "") + a;
594
- }, Za = a => {
594
+ }, Ya = a => {
595
595
  var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
596
596
  a = b[0];
597
597
  b = b[1];
@@ -600,20 +600,20 @@ var Xa = (a, b) => {
600
600
  }
601
601
  b &&= b.substr(0, b.length - 1);
602
602
  return a + b;
603
- }, $a = a => {
603
+ }, Za = a => {
604
604
  if ("/" === a) {
605
605
  return "/";
606
606
  }
607
- a = Ya(a);
607
+ a = Xa(a);
608
608
  a = a.replace(/\/$/, "");
609
609
  var b = a.lastIndexOf("/");
610
610
  return -1 === b ? a : a.substr(b + 1);
611
- }, ab = () => {
611
+ }, $a = () => {
612
612
  if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
613
613
  return a => crypto.getRandomValues(a);
614
614
  }
615
- Ha("initRandomDevice");
616
- }, bb = a => (bb = ab())(a), cb = (...a) => {
615
+ Ga("initRandomDevice");
616
+ }, ab = a => (ab = $a())(a), bb = (...a) => {
617
617
  for (var b = "", c = !1, d = a.length - 1; -1 <= d && !c; d--) {
618
618
  c = 0 <= d ? a[d] : "/";
619
619
  if ("string" != typeof c) {
@@ -625,15 +625,15 @@ var Xa = (a, b) => {
625
625
  b = c + "/" + b;
626
626
  c = "/" === c.charAt(0);
627
627
  }
628
- b = Xa(b.split("/").filter(e => !!e), !c).join("/");
628
+ b = Wa(b.split("/").filter(e => !!e), !c).join("/");
629
629
  return (c ? "/" : "") + b || ".";
630
- }, db = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L = (a, b, c) => {
630
+ }, cb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L = (a, b, c) => {
631
631
  var d = b + c;
632
632
  for (c = b; a[c] && !(c >= d);) {
633
633
  ++c;
634
634
  }
635
- if (16 < c - b && a.buffer && db) {
636
- return db.decode(a.subarray(b, c));
635
+ if (16 < c - b && a.buffer && cb) {
636
+ return cb.decode(a.subarray(b, c));
637
637
  }
638
638
  for (d = ""; b < c;) {
639
639
  var e = a[b++];
@@ -651,13 +651,13 @@ var Xa = (a, b) => {
651
651
  }
652
652
  }
653
653
  return d;
654
- }, eb = [], fb = a => {
654
+ }, db = [], eb = a => {
655
655
  for (var b = 0, c = 0; c < a.length; ++c) {
656
656
  var d = a.charCodeAt(c);
657
657
  127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
658
658
  }
659
659
  return b;
660
- }, gb = (a, b, c, d) => {
660
+ }, fb = (a, b, c, d) => {
661
661
  if (!(0 < d)) {
662
662
  return 0;
663
663
  }
@@ -666,8 +666,8 @@ var Xa = (a, b) => {
666
666
  for (var f = 0; f < a.length; ++f) {
667
667
  var g = a.charCodeAt(f);
668
668
  if (55296 <= g && 57343 >= g) {
669
- var k = a.charCodeAt(++f);
670
- g = 65536 + ((g & 1023) << 10) | k & 1023;
669
+ var h = a.charCodeAt(++f);
670
+ g = 65536 + ((g & 1023) << 10) | h & 1023;
671
671
  }
672
672
  if (127 >= g) {
673
673
  if (c >= d) {
@@ -701,36 +701,36 @@ var Xa = (a, b) => {
701
701
  b[c] = 0;
702
702
  return c - e;
703
703
  };
704
- function hb(a, b) {
705
- var c = Array(fb(a) + 1);
706
- a = gb(a, c, 0, c.length);
704
+ function gb(a, b) {
705
+ var c = Array(eb(a) + 1);
706
+ a = fb(a, c, 0, c.length);
707
707
  b && (c.length = a);
708
708
  return c;
709
709
  }
710
- var ib = [];
711
- function jb(a, b) {
712
- ib[a] = {input:[], H:[], V:b};
713
- kb(a, lb);
710
+ var hb = [];
711
+ function ib(a, b) {
712
+ hb[a] = {input:[], F:[], S:b};
713
+ jb(a, kb);
714
714
  }
715
- var lb = {open(a) {
716
- var b = ib[a.node.Fa];
715
+ var kb = {open(a) {
716
+ var b = hb[a.node.Aa];
717
717
  if (!b) {
718
718
  throw new M(43);
719
719
  }
720
- a.s = b;
720
+ a.o = b;
721
721
  a.seekable = !1;
722
722
  }, close(a) {
723
- a.s.V.ta(a.s);
724
- }, ta(a) {
725
- a.s.V.ta(a.s);
723
+ a.o.S.pa(a.o);
724
+ }, pa(a) {
725
+ a.o.S.pa(a.o);
726
726
  }, read(a, b, c, d) {
727
- if (!a.s || !a.s.V.ib) {
727
+ if (!a.o || !a.o.S.$a) {
728
728
  throw new M(60);
729
729
  }
730
730
  for (var e = 0, f = 0; f < d; f++) {
731
731
  try {
732
- var g = a.s.V.ib(a.s);
733
- } catch (k) {
732
+ var g = a.o.S.$a(a.o);
733
+ } catch (h) {
734
734
  throw new M(29);
735
735
  }
736
736
  if (void 0 === g && 0 === e) {
@@ -745,146 +745,146 @@ var lb = {open(a) {
745
745
  e && (a.node.timestamp = Date.now());
746
746
  return e;
747
747
  }, write(a, b, c, d) {
748
- if (!a.s || !a.s.V.Ta) {
748
+ if (!a.o || !a.o.S.Ma) {
749
749
  throw new M(60);
750
750
  }
751
751
  try {
752
752
  for (var e = 0; e < d; e++) {
753
- a.s.V.Ta(a.s, b[c + e]);
753
+ a.o.S.Ma(a.o, b[c + e]);
754
754
  }
755
755
  } catch (f) {
756
756
  throw new M(29);
757
757
  }
758
758
  d && (a.node.timestamp = Date.now());
759
759
  return e;
760
- },}, mb = {ib() {
760
+ },}, lb = {$a() {
761
761
  a: {
762
- if (!eb.length) {
762
+ if (!db.length) {
763
763
  var a = null;
764
764
  "undefined" != typeof window && "function" == typeof window.prompt && (a = window.prompt("Input: "), null !== a && (a += "\n"));
765
765
  if (!a) {
766
766
  a = null;
767
767
  break a;
768
768
  }
769
- eb = hb(a, !0);
769
+ db = gb(a, !0);
770
770
  }
771
- a = eb.shift();
771
+ a = db.shift();
772
772
  }
773
773
  return a;
774
- }, Ta(a, b) {
775
- null === b || 10 === b ? (ra(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
776
- }, ta(a) {
777
- a.H && 0 < a.H.length && (ra(L(a.H, 0)), a.H = []);
778
- }, Xb() {
779
- return {yc:25856, Ac:5, xc:191, zc:35387, wc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
780
- }, Yb() {
774
+ }, Ma(a, b) {
775
+ null === b || 10 === b ? (ra(L(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
776
+ }, pa(a) {
777
+ a.F && 0 < a.F.length && (ra(L(a.F, 0)), a.F = []);
778
+ }, Nb() {
779
+ return {nc:25856, pc:5, mc:191, oc:35387, lc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
780
+ }, Ob() {
781
781
  return 0;
782
- }, Zb() {
782
+ }, Pb() {
783
783
  return [24, 80];
784
- },}, nb = {Ta(a, b) {
785
- null === b || 10 === b ? (sa(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
786
- }, ta(a) {
787
- a.H && 0 < a.H.length && (sa(L(a.H, 0)), a.H = []);
784
+ },}, mb = {Ma(a, b) {
785
+ null === b || 10 === b ? (A(L(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
786
+ }, pa(a) {
787
+ a.F && 0 < a.F.length && (A(L(a.F, 0)), a.F = []);
788
788
  },};
789
- function pb(a, b) {
790
- var c = a.l ? a.l.length : 0;
791
- c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.l, a.l = new Uint8Array(b), 0 < a.v && a.l.set(c.subarray(0, a.v), 0));
789
+ function ob(a, b) {
790
+ var c = a.j ? a.j.length : 0;
791
+ c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.j, a.j = new Uint8Array(b), 0 < a.u && a.j.set(c.subarray(0, a.u), 0));
792
792
  }
793
- var N = {N:null, U() {
793
+ var N = {K:null, R() {
794
794
  return N.createNode(null, "/", 16895, 0);
795
795
  }, createNode(a, b, c, d) {
796
796
  if (24576 === (c & 61440) || 4096 === (c & 61440)) {
797
797
  throw new M(63);
798
798
  }
799
- N.N || (N.N = {dir:{node:{X:N.j.X, P:N.j.P, la:N.j.la, Ba:N.j.Ba, tb:N.j.tb, yb:N.j.yb, ub:N.j.ub, sb:N.j.sb, Ia:N.j.Ia}, stream:{ba:N.m.ba}}, file:{node:{X:N.j.X, P:N.j.P}, stream:{ba:N.m.ba, read:N.m.read, write:N.m.write, ab:N.m.ab, kb:N.m.kb, mb:N.m.mb}}, link:{node:{X:N.j.X, P:N.j.P, ma:N.j.ma}, stream:{}}, bb:{node:{X:N.j.X, P:N.j.P}, stream:qb}});
800
- c = rb(a, b, c, d);
801
- 16384 === (c.mode & 61440) ? (c.j = N.N.dir.node, c.m = N.N.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = N.N.file.node, c.m = N.N.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = N.N.link.node, c.m = N.N.link.stream) : 8192 === (c.mode & 61440) && (c.j = N.N.bb.node, c.m = N.N.bb.stream);
799
+ N.K || (N.K = {dir:{node:{U:N.i.U, M:N.i.M, ha:N.i.ha, xa:N.i.xa, lb:N.i.lb, pb:N.i.pb, mb:N.i.mb, kb:N.i.kb, Ca:N.i.Ca}, stream:{Z:N.l.Z}}, file:{node:{U:N.i.U, M:N.i.M}, stream:{Z:N.l.Z, read:N.l.read, write:N.l.write, Ta:N.l.Ta, bb:N.l.bb, eb:N.l.eb}}, link:{node:{U:N.i.U, M:N.i.M, ia:N.i.ia}, stream:{}}, Ua:{node:{U:N.i.U, M:N.i.M}, stream:pb}});
800
+ c = qb(a, b, c, d);
801
+ 16384 === (c.mode & 61440) ? (c.i = N.K.dir.node, c.l = N.K.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.i = N.K.file.node, c.l = N.K.file.stream, c.u = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.i = N.K.link.node, c.l = N.K.link.stream) : 8192 === (c.mode & 61440) && (c.i = N.K.Ua.node, c.l = N.K.Ua.stream);
802
802
  c.timestamp = Date.now();
803
- a && (a.l[b] = c, a.timestamp = c.timestamp);
803
+ a && (a.j[b] = c, a.timestamp = c.timestamp);
804
804
  return c;
805
- }, Gc(a) {
806
- return a.l ? a.l.subarray ? a.l.subarray(0, a.v) : new Uint8Array(a.l) : new Uint8Array(0);
807
- }, j:{X(a) {
805
+ }, vc(a) {
806
+ return a.j ? a.j.subarray ? a.j.subarray(0, a.u) : new Uint8Array(a.j) : new Uint8Array(0);
807
+ }, i:{U(a) {
808
808
  var b = {};
809
- b.Dc = 8192 === (a.mode & 61440) ? a.id : 1;
810
- b.Ic = a.id;
809
+ b.sc = 8192 === (a.mode & 61440) ? a.id : 1;
810
+ b.xc = a.id;
811
811
  b.mode = a.mode;
812
- b.Oc = 1;
812
+ b.Dc = 1;
813
813
  b.uid = 0;
814
- b.Hc = 0;
815
- b.Fa = a.Fa;
816
- 16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.v : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
817
- b.uc = new Date(a.timestamp);
818
- b.Nc = new Date(a.timestamp);
819
- b.Bc = new Date(a.timestamp);
820
- b.Hb = 4096;
821
- b.vc = Math.ceil(b.size / b.Hb);
814
+ b.wc = 0;
815
+ b.Aa = a.Aa;
816
+ 16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.u : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
817
+ b.jc = new Date(a.timestamp);
818
+ b.Cc = new Date(a.timestamp);
819
+ b.qc = new Date(a.timestamp);
820
+ b.xb = 4096;
821
+ b.kc = Math.ceil(b.size / b.xb);
822
822
  return b;
823
- }, P(a, b) {
823
+ }, M(a, b) {
824
824
  void 0 !== b.mode && (a.mode = b.mode);
825
825
  void 0 !== b.timestamp && (a.timestamp = b.timestamp);
826
- if (void 0 !== b.size && (b = b.size, a.v != b)) {
826
+ if (void 0 !== b.size && (b = b.size, a.u != b)) {
827
827
  if (0 == b) {
828
- a.l = null, a.v = 0;
828
+ a.j = null, a.u = 0;
829
829
  } else {
830
- var c = a.l;
831
- a.l = new Uint8Array(b);
832
- c && a.l.set(c.subarray(0, Math.min(b, a.v)));
833
- a.v = b;
830
+ var c = a.j;
831
+ a.j = new Uint8Array(b);
832
+ c && a.j.set(c.subarray(0, Math.min(b, a.u)));
833
+ a.u = b;
834
834
  }
835
835
  }
836
- }, la() {
837
- throw sb[44];
838
- }, Ba(a, b, c, d) {
836
+ }, ha() {
837
+ throw rb[44];
838
+ }, xa(a, b, c, d) {
839
839
  return N.createNode(a, b, c, d);
840
- }, tb(a, b, c) {
840
+ }, lb(a, b, c) {
841
841
  if (16384 === (a.mode & 61440)) {
842
842
  try {
843
- var d = tb(b, c);
843
+ var d = sb(b, c);
844
844
  } catch (f) {
845
845
  }
846
846
  if (d) {
847
- for (var e in d.l) {
847
+ for (var e in d.j) {
848
848
  throw new M(55);
849
849
  }
850
850
  }
851
851
  }
852
- delete a.parent.l[a.name];
852
+ delete a.parent.j[a.name];
853
853
  a.parent.timestamp = Date.now();
854
854
  a.name = c;
855
- b.l[c] = a;
855
+ b.j[c] = a;
856
856
  b.timestamp = a.parent.timestamp;
857
- }, yb(a, b) {
858
- delete a.l[b];
857
+ }, pb(a, b) {
858
+ delete a.j[b];
859
859
  a.timestamp = Date.now();
860
- }, ub(a, b) {
861
- var c = tb(a, b), d;
862
- for (d in c.l) {
860
+ }, mb(a, b) {
861
+ var c = sb(a, b), d;
862
+ for (d in c.j) {
863
863
  throw new M(55);
864
864
  }
865
- delete a.l[b];
865
+ delete a.j[b];
866
866
  a.timestamp = Date.now();
867
- }, sb(a) {
867
+ }, kb(a) {
868
868
  var b = [".", ".."], c;
869
- for (c of Object.keys(a.l)) {
869
+ for (c of Object.keys(a.j)) {
870
870
  b.push(c);
871
871
  }
872
872
  return b;
873
- }, Ia(a, b, c) {
873
+ }, Ca(a, b, c) {
874
874
  a = N.createNode(a, b, 41471, 0);
875
875
  a.link = c;
876
876
  return a;
877
- }, ma(a) {
877
+ }, ia(a) {
878
878
  if (40960 !== (a.mode & 61440)) {
879
879
  throw new M(28);
880
880
  }
881
881
  return a.link;
882
- },}, m:{read(a, b, c, d, e) {
883
- var f = a.node.l;
884
- if (e >= a.node.v) {
882
+ },}, l:{read(a, b, c, d, e) {
883
+ var f = a.node.j;
884
+ if (e >= a.node.u) {
885
885
  return 0;
886
886
  }
887
- a = Math.min(a.node.v - e, d);
887
+ a = Math.min(a.node.u - e, d);
888
888
  if (8 < a && f.subarray) {
889
889
  b.set(f.subarray(e, e + a), c);
890
890
  } else {
@@ -894,104 +894,104 @@ var N = {N:null, U() {
894
894
  }
895
895
  return a;
896
896
  }, write(a, b, c, d, e, f) {
897
- b.buffer === B.buffer && (f = !1);
897
+ b.buffer === C.buffer && (f = !1);
898
898
  if (!d) {
899
899
  return 0;
900
900
  }
901
901
  a = a.node;
902
902
  a.timestamp = Date.now();
903
- if (b.subarray && (!a.l || a.l.subarray)) {
903
+ if (b.subarray && (!a.j || a.j.subarray)) {
904
904
  if (f) {
905
- return a.l = b.subarray(c, c + d), a.v = d;
905
+ return a.j = b.subarray(c, c + d), a.u = d;
906
906
  }
907
- if (0 === a.v && 0 === e) {
908
- return a.l = b.slice(c, c + d), a.v = d;
907
+ if (0 === a.u && 0 === e) {
908
+ return a.j = b.slice(c, c + d), a.u = d;
909
909
  }
910
- if (e + d <= a.v) {
911
- return a.l.set(b.subarray(c, c + d), e), d;
910
+ if (e + d <= a.u) {
911
+ return a.j.set(b.subarray(c, c + d), e), d;
912
912
  }
913
913
  }
914
- pb(a, e + d);
915
- if (a.l.subarray && b.subarray) {
916
- a.l.set(b.subarray(c, c + d), e);
914
+ ob(a, e + d);
915
+ if (a.j.subarray && b.subarray) {
916
+ a.j.set(b.subarray(c, c + d), e);
917
917
  } else {
918
918
  for (f = 0; f < d; f++) {
919
- a.l[e + f] = b[c + f];
919
+ a.j[e + f] = b[c + f];
920
920
  }
921
921
  }
922
- a.v = Math.max(a.v, e + d);
922
+ a.u = Math.max(a.u, e + d);
923
923
  return d;
924
- }, ba(a, b, c) {
925
- 1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
924
+ }, Z(a, b, c) {
925
+ 1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.u);
926
926
  if (0 > b) {
927
927
  throw new M(28);
928
928
  }
929
929
  return b;
930
- }, ab(a, b, c) {
931
- pb(a.node, b + c);
932
- a.node.v = Math.max(a.node.v, b + c);
933
- }, kb(a, b, c, d, e) {
930
+ }, Ta(a, b, c) {
931
+ ob(a.node, b + c);
932
+ a.node.u = Math.max(a.node.u, b + c);
933
+ }, bb(a, b, c, d, e) {
934
934
  if (32768 !== (a.node.mode & 61440)) {
935
935
  throw new M(43);
936
936
  }
937
- a = a.node.l;
938
- if (e & 2 || a.buffer !== B.buffer) {
937
+ a = a.node.j;
938
+ if (e & 2 || a.buffer !== C.buffer) {
939
939
  if (0 < c || c + b < a.length) {
940
940
  a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
941
941
  }
942
942
  c = !0;
943
- Ha();
943
+ Ga();
944
944
  b = void 0;
945
945
  if (!b) {
946
946
  throw new M(48);
947
947
  }
948
- B.set(a, b);
948
+ C.set(a, b);
949
949
  } else {
950
950
  c = !1, b = a.byteOffset;
951
951
  }
952
- return {o:b, tc:c};
953
- }, mb(a, b, c, d) {
954
- N.m.write(a, b, 0, d, c, !1);
952
+ return {m:b, ic:c};
953
+ }, eb(a, b, c, d) {
954
+ N.l.write(a, b, 0, d, c, !1);
955
955
  return 0;
956
- },},}, ub = (a, b) => {
956
+ },},}, tb = (a, b) => {
957
957
  var c = 0;
958
958
  a && (c |= 365);
959
959
  b && (c |= 146);
960
960
  return c;
961
- }, vb = null, wb = {}, xb = [], yb = 1, zb = null, Ab = !0, M = class {
961
+ }, ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, M = class {
962
962
  constructor(a) {
963
963
  this.name = "ErrnoError";
964
- this.aa = a;
964
+ this.Y = a;
965
965
  }
966
- }, sb = {}, Bb = class {
966
+ }, rb = {}, Ab = class {
967
967
  constructor() {
968
- this.h = {};
968
+ this.qa = {};
969
969
  this.node = null;
970
970
  }
971
971
  get flags() {
972
- return this.h.flags;
972
+ return this.qa.flags;
973
973
  }
974
974
  set flags(a) {
975
- this.h.flags = a;
975
+ this.qa.flags = a;
976
976
  }
977
977
  get position() {
978
- return this.h.position;
978
+ return this.qa.position;
979
979
  }
980
980
  set position(a) {
981
- this.h.position = a;
981
+ this.qa.position = a;
982
982
  }
983
- }, Cb = class {
983
+ }, Bb = class {
984
984
  constructor(a, b, c, d) {
985
985
  a ||= this;
986
986
  this.parent = a;
987
- this.U = a.U;
988
- this.Ca = null;
989
- this.id = yb++;
987
+ this.R = a.R;
988
+ this.ya = null;
989
+ this.id = xb++;
990
990
  this.name = b;
991
991
  this.mode = c;
992
- this.j = {};
993
- this.m = {};
994
- this.Fa = d;
992
+ this.i = {};
993
+ this.l = {};
994
+ this.Aa = d;
995
995
  }
996
996
  get read() {
997
997
  return 365 === (this.mode & 365);
@@ -1006,27 +1006,27 @@ var N = {N:null, U() {
1006
1006
  a ? this.mode |= 146 : this.mode &= -147;
1007
1007
  }
1008
1008
  };
1009
- function Db(a, b = {}) {
1010
- a = cb(a);
1009
+ function Cb(a, b = {}) {
1010
+ a = bb(a);
1011
1011
  if (!a) {
1012
1012
  return {path:"", node:null};
1013
1013
  }
1014
- b = Object.assign({hb:!0, Va:0}, b);
1015
- if (8 < b.Va) {
1014
+ b = Object.assign({Za:!0, Oa:0}, b);
1015
+ if (8 < b.Oa) {
1016
1016
  throw new M(32);
1017
1017
  }
1018
1018
  a = a.split("/").filter(g => !!g);
1019
- for (var c = vb, d = "/", e = 0; e < a.length; e++) {
1019
+ for (var c = ub, d = "/", e = 0; e < a.length; e++) {
1020
1020
  var f = e === a.length - 1;
1021
1021
  if (f && b.parent) {
1022
1022
  break;
1023
1023
  }
1024
- c = tb(c, a[e]);
1025
- d = Ya(d + "/" + a[e]);
1026
- c.Ca && (!f || f && b.hb) && (c = c.Ca.root);
1027
- if (!f || b.gb) {
1024
+ c = sb(c, a[e]);
1025
+ d = Xa(d + "/" + a[e]);
1026
+ c.ya && (!f || f && b.Za) && (c = c.ya.root);
1027
+ if (!f || b.Ya) {
1028
1028
  for (f = 0; 40960 === (c.mode & 61440);) {
1029
- if (c = Eb(d), d = cb(Za(d), c), c = Db(d, {Va:b.Va + 1}).node, 40 < f++) {
1029
+ if (c = Db(d), d = bb(Ya(d), c), c = Cb(d, {Oa:b.Oa + 1}).node, 40 < f++) {
1030
1030
  throw new M(32);
1031
1031
  }
1032
1032
  }
@@ -1034,47 +1034,47 @@ function Db(a, b = {}) {
1034
1034
  }
1035
1035
  return {path:d, node:c};
1036
1036
  }
1037
- function Fb(a) {
1037
+ function Eb(a) {
1038
1038
  for (var b;;) {
1039
1039
  if (a === a.parent) {
1040
- return a = a.U.lb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
1040
+ return a = a.R.cb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
1041
1041
  }
1042
1042
  b = b ? `${a.name}/${b}` : a.name;
1043
1043
  a = a.parent;
1044
1044
  }
1045
1045
  }
1046
- function Gb(a, b) {
1046
+ function Fb(a, b) {
1047
1047
  for (var c = 0, d = 0; d < b.length; d++) {
1048
1048
  c = (c << 5) - c + b.charCodeAt(d) | 0;
1049
1049
  }
1050
- return (a + c >>> 0) % zb.length;
1050
+ return (a + c >>> 0) % yb.length;
1051
1051
  }
1052
- function tb(a, b) {
1053
- var c = 16384 === (a.mode & 61440) ? (c = Hb(a, "x")) ? c : a.j.la ? 0 : 2 : 54;
1052
+ function sb(a, b) {
1053
+ var c = 16384 === (a.mode & 61440) ? (c = Gb(a, "x")) ? c : a.i.ha ? 0 : 2 : 54;
1054
1054
  if (c) {
1055
1055
  throw new M(c);
1056
1056
  }
1057
- for (c = zb[Gb(a.id, b)]; c; c = c.bc) {
1057
+ for (c = yb[Fb(a.id, b)]; c; c = c.Sb) {
1058
1058
  var d = c.name;
1059
1059
  if (c.parent.id === a.id && d === b) {
1060
1060
  return c;
1061
1061
  }
1062
1062
  }
1063
- return a.j.la(a, b);
1063
+ return a.i.ha(a, b);
1064
1064
  }
1065
- function rb(a, b, c, d) {
1066
- a = new Cb(a, b, c, d);
1067
- b = Gb(a.parent.id, a.name);
1068
- a.bc = zb[b];
1069
- return zb[b] = a;
1065
+ function qb(a, b, c, d) {
1066
+ a = new Bb(a, b, c, d);
1067
+ b = Fb(a.parent.id, a.name);
1068
+ a.Sb = yb[b];
1069
+ return yb[b] = a;
1070
1070
  }
1071
- function Ib(a) {
1071
+ function Hb(a) {
1072
1072
  var b = ["r", "w", "rw"][a & 3];
1073
1073
  a & 512 && (b += "w");
1074
1074
  return b;
1075
1075
  }
1076
- function Hb(a, b) {
1077
- if (Ab) {
1076
+ function Gb(a, b) {
1077
+ if (zb) {
1078
1078
  return 0;
1079
1079
  }
1080
1080
  if (!b.includes("r") || a.mode & 292) {
@@ -1086,122 +1086,122 @@ function Hb(a, b) {
1086
1086
  }
1087
1087
  return 0;
1088
1088
  }
1089
- function Jb(a, b) {
1089
+ function Ib(a, b) {
1090
1090
  try {
1091
- return tb(a, b), 20;
1091
+ return sb(a, b), 20;
1092
1092
  } catch (c) {
1093
1093
  }
1094
- return Hb(a, "wx");
1094
+ return Gb(a, "wx");
1095
1095
  }
1096
- function Kb(a) {
1097
- a = xb[a];
1096
+ function Jb(a) {
1097
+ a = wb[a];
1098
1098
  if (!a) {
1099
1099
  throw new M(8);
1100
1100
  }
1101
1101
  return a;
1102
1102
  }
1103
- function Lb(a, b = -1) {
1104
- a = Object.assign(new Bb(), a);
1103
+ function Kb(a, b = -1) {
1104
+ a = Object.assign(new Ab(), a);
1105
1105
  if (-1 == b) {
1106
1106
  a: {
1107
1107
  for (b = 0; 4096 >= b; b++) {
1108
- if (!xb[b]) {
1108
+ if (!wb[b]) {
1109
1109
  break a;
1110
1110
  }
1111
1111
  }
1112
1112
  throw new M(33);
1113
1113
  }
1114
1114
  }
1115
- a.W = b;
1116
- return xb[b] = a;
1115
+ a.T = b;
1116
+ return wb[b] = a;
1117
1117
  }
1118
- function Mb(a, b = -1) {
1119
- a = Lb(a, b);
1120
- a.m?.Fc?.(a);
1118
+ function Lb(a, b = -1) {
1119
+ a = Kb(a, b);
1120
+ a.l?.uc?.(a);
1121
1121
  return a;
1122
1122
  }
1123
- var qb = {open(a) {
1124
- a.m = wb[a.node.Fa].m;
1125
- a.m.open?.(a);
1126
- }, ba() {
1123
+ var pb = {open(a) {
1124
+ a.l = vb[a.node.Aa].l;
1125
+ a.l.open?.(a);
1126
+ }, Z() {
1127
1127
  throw new M(70);
1128
1128
  },};
1129
- function kb(a, b) {
1130
- wb[a] = {m:b};
1129
+ function jb(a, b) {
1130
+ vb[a] = {l:b};
1131
1131
  }
1132
- function Nb(a, b) {
1132
+ function Mb(a, b) {
1133
1133
  var c = "/" === b;
1134
- if (c && vb) {
1134
+ if (c && ub) {
1135
1135
  throw new M(10);
1136
1136
  }
1137
1137
  if (!c && b) {
1138
- var d = Db(b, {hb:!1});
1138
+ var d = Cb(b, {Za:!1});
1139
1139
  b = d.path;
1140
1140
  d = d.node;
1141
- if (d.Ca) {
1141
+ if (d.ya) {
1142
1142
  throw new M(10);
1143
1143
  }
1144
1144
  if (16384 !== (d.mode & 61440)) {
1145
1145
  throw new M(54);
1146
1146
  }
1147
1147
  }
1148
- b = {type:a, Qc:{}, lb:b, $b:[]};
1149
- a = a.U(b);
1150
- a.U = b;
1148
+ b = {type:a, Fc:{}, cb:b, Qb:[]};
1149
+ a = a.R(b);
1150
+ a.R = b;
1151
1151
  b.root = a;
1152
- c ? vb = a : d && (d.Ca = b, d.U && d.U.$b.push(b));
1152
+ c ? ub = a : d && (d.ya = b, d.R && d.R.Qb.push(b));
1153
1153
  }
1154
- function Ob(a, b, c) {
1155
- var d = Db(a, {parent:!0}).node;
1156
- a = $a(a);
1154
+ function Nb(a, b, c) {
1155
+ var d = Cb(a, {parent:!0}).node;
1156
+ a = Za(a);
1157
1157
  if (!a || "." === a || ".." === a) {
1158
1158
  throw new M(28);
1159
1159
  }
1160
- var e = Jb(d, a);
1160
+ var e = Ib(d, a);
1161
1161
  if (e) {
1162
1162
  throw new M(e);
1163
1163
  }
1164
- if (!d.j.Ba) {
1164
+ if (!d.i.xa) {
1165
1165
  throw new M(63);
1166
1166
  }
1167
- return d.j.Ba(d, a, b, c);
1167
+ return d.i.xa(d, a, b, c);
1168
1168
  }
1169
- function Pb(a) {
1170
- return Ob(a, 16895, 0);
1169
+ function Ob(a) {
1170
+ return Nb(a, 16895, 0);
1171
1171
  }
1172
- function Qb(a, b, c) {
1172
+ function Pb(a, b, c) {
1173
1173
  "undefined" == typeof c && (c = b, b = 438);
1174
- Ob(a, b | 8192, c);
1174
+ Nb(a, b | 8192, c);
1175
1175
  }
1176
- function Rb(a, b) {
1177
- if (!cb(a)) {
1176
+ function Qb(a, b) {
1177
+ if (!bb(a)) {
1178
1178
  throw new M(44);
1179
1179
  }
1180
- var c = Db(b, {parent:!0}).node;
1180
+ var c = Cb(b, {parent:!0}).node;
1181
1181
  if (!c) {
1182
1182
  throw new M(44);
1183
1183
  }
1184
- b = $a(b);
1185
- var d = Jb(c, b);
1184
+ b = Za(b);
1185
+ var d = Ib(c, b);
1186
1186
  if (d) {
1187
1187
  throw new M(d);
1188
1188
  }
1189
- if (!c.j.Ia) {
1189
+ if (!c.i.Ca) {
1190
1190
  throw new M(63);
1191
1191
  }
1192
- c.j.Ia(c, b, a);
1192
+ c.i.Ca(c, b, a);
1193
1193
  }
1194
- function Eb(a) {
1195
- a = Db(a).node;
1194
+ function Db(a) {
1195
+ a = Cb(a).node;
1196
1196
  if (!a) {
1197
1197
  throw new M(44);
1198
1198
  }
1199
- if (!a.j.ma) {
1199
+ if (!a.i.ia) {
1200
1200
  throw new M(28);
1201
1201
  }
1202
- return cb(Fb(a.parent), a.j.ma(a));
1202
+ return bb(Eb(a.parent), a.i.ia(a));
1203
1203
  }
1204
- function Sb(a, b, c) {
1204
+ function Rb(a, b, c) {
1205
1205
  if ("" === a) {
1206
1206
  throw new M(44);
1207
1207
  }
@@ -1216,9 +1216,9 @@ function Sb(a, b, c) {
1216
1216
  if ("object" == typeof a) {
1217
1217
  var e = a;
1218
1218
  } else {
1219
- a = Ya(a);
1219
+ a = Xa(a);
1220
1220
  try {
1221
- e = Db(a, {gb:!(b & 131072)}).node;
1221
+ e = Cb(a, {Ya:!(b & 131072)}).node;
1222
1222
  } catch (f) {
1223
1223
  }
1224
1224
  }
@@ -1229,7 +1229,7 @@ function Sb(a, b, c) {
1229
1229
  throw new M(20);
1230
1230
  }
1231
1231
  } else {
1232
- e = Ob(a, c, 0), d = !0;
1232
+ e = Nb(a, c, 0), d = !0;
1233
1233
  }
1234
1234
  }
1235
1235
  if (!e) {
@@ -1239,13 +1239,13 @@ function Sb(a, b, c) {
1239
1239
  if (b & 65536 && 16384 !== (e.mode & 61440)) {
1240
1240
  throw new M(54);
1241
1241
  }
1242
- if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Ib(b) || b & 512) ? 31 : Hb(e, Ib(b)) : 44)) {
1242
+ if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Hb(b) || b & 512) ? 31 : Gb(e, Hb(b)) : 44)) {
1243
1243
  throw new M(c);
1244
1244
  }
1245
1245
  if (b & 512 && !d) {
1246
1246
  c = e;
1247
- c = "string" == typeof c ? Db(c, {gb:!0}).node : c;
1248
- if (!c.j.P) {
1247
+ c = "string" == typeof c ? Cb(c, {Ya:!0}).node : c;
1248
+ if (!c.i.M) {
1249
1249
  throw new M(63);
1250
1250
  }
1251
1251
  if (16384 === (c.mode & 61440)) {
@@ -1254,77 +1254,77 @@ function Sb(a, b, c) {
1254
1254
  if (32768 !== (c.mode & 61440)) {
1255
1255
  throw new M(28);
1256
1256
  }
1257
- if (d = Hb(c, "w")) {
1257
+ if (d = Gb(c, "w")) {
1258
1258
  throw new M(d);
1259
1259
  }
1260
- c.j.P(c, {size:0, timestamp:Date.now()});
1260
+ c.i.M(c, {size:0, timestamp:Date.now()});
1261
1261
  }
1262
1262
  b &= -131713;
1263
- e = Lb({node:e, path:Fb(e), flags:b, seekable:!0, position:0, m:e.m, oc:[], error:!1});
1264
- e.m.open && e.m.open(e);
1265
- !l.logReadFiles || b & 1 || (Tb ||= {}, a in Tb || (Tb[a] = 1));
1263
+ e = Kb({node:e, path:Eb(e), flags:b, seekable:!0, position:0, l:e.l, cc:[], error:!1});
1264
+ e.l.open && e.l.open(e);
1265
+ !k.logReadFiles || b & 1 || (Sb ||= {}, a in Sb || (Sb[a] = 1));
1266
1266
  return e;
1267
1267
  }
1268
- function Ub(a, b, c) {
1269
- if (null === a.W) {
1268
+ function Tb(a, b, c) {
1269
+ if (null === a.T) {
1270
1270
  throw new M(8);
1271
1271
  }
1272
- if (!a.seekable || !a.m.ba) {
1272
+ if (!a.seekable || !a.l.Z) {
1273
1273
  throw new M(70);
1274
1274
  }
1275
1275
  if (0 != c && 1 != c && 2 != c) {
1276
1276
  throw new M(28);
1277
1277
  }
1278
- a.position = a.m.ba(a, b, c);
1279
- a.oc = [];
1278
+ a.position = a.l.Z(a, b, c);
1279
+ a.cc = [];
1280
1280
  }
1281
- var Vb;
1282
- function Wb(a, b, c) {
1283
- a = Ya("/dev/" + a);
1284
- var d = ub(!!b, !!c);
1285
- Xb ||= 64;
1286
- var e = Xb++ << 8 | 0;
1287
- kb(e, {open(f) {
1281
+ var Ub;
1282
+ function Vb(a, b, c) {
1283
+ a = Xa("/dev/" + a);
1284
+ var d = tb(!!b, !!c);
1285
+ Wb ||= 64;
1286
+ var e = Wb++ << 8 | 0;
1287
+ jb(e, {open(f) {
1288
1288
  f.seekable = !1;
1289
1289
  }, close() {
1290
1290
  c?.buffer?.length && c(10);
1291
- }, read(f, g, k, n) {
1292
- for (var m = 0, t = 0; t < n; t++) {
1291
+ }, read(f, g, h, m) {
1292
+ for (var l = 0, r = 0; r < m; r++) {
1293
1293
  try {
1294
- var v = b();
1295
- } catch (x) {
1294
+ var u = b();
1295
+ } catch (w) {
1296
1296
  throw new M(29);
1297
1297
  }
1298
- if (void 0 === v && 0 === m) {
1298
+ if (void 0 === u && 0 === l) {
1299
1299
  throw new M(6);
1300
1300
  }
1301
- if (null === v || void 0 === v) {
1301
+ if (null === u || void 0 === u) {
1302
1302
  break;
1303
1303
  }
1304
- m++;
1305
- g[k + t] = v;
1304
+ l++;
1305
+ g[h + r] = u;
1306
1306
  }
1307
- m && (f.node.timestamp = Date.now());
1308
- return m;
1309
- }, write(f, g, k, n) {
1310
- for (var m = 0; m < n; m++) {
1307
+ l && (f.node.timestamp = Date.now());
1308
+ return l;
1309
+ }, write(f, g, h, m) {
1310
+ for (var l = 0; l < m; l++) {
1311
1311
  try {
1312
- c(g[k + m]);
1313
- } catch (t) {
1312
+ c(g[h + l]);
1313
+ } catch (r) {
1314
1314
  throw new M(29);
1315
1315
  }
1316
1316
  }
1317
- n && (f.node.timestamp = Date.now());
1318
- return m;
1317
+ m && (f.node.timestamp = Date.now());
1318
+ return l;
1319
1319
  }});
1320
- Qb(a, d, e);
1320
+ Pb(a, d, e);
1321
1321
  }
1322
- var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name", {value:a}), $b = [], O = [], P, Q = a => {
1322
+ var Wb, Xb = {}, Sb, Va = void 0, Yb = (a, b) => Object.defineProperty(b, "name", {value:a}), Zb = [], O = [], P, Q = a => {
1323
1323
  if (!a) {
1324
1324
  throw new P("Cannot use deleted val. handle = " + a);
1325
1325
  }
1326
1326
  return O[a];
1327
- }, ac = a => {
1327
+ }, $b = a => {
1328
1328
  switch(a) {
1329
1329
  case void 0:
1330
1330
  return 2;
@@ -1335,13 +1335,13 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
1335
1335
  case !1:
1336
1336
  return 8;
1337
1337
  default:
1338
- const b = $b.pop() || O.length;
1338
+ const b = Zb.pop() || O.length;
1339
1339
  O[b] = a;
1340
1340
  O[b + 1] = 1;
1341
1341
  return b;
1342
1342
  }
1343
- }, bc = a => {
1344
- var b = Error, c = Zb(a, function(d) {
1343
+ }, ac = a => {
1344
+ var b = Error, c = Yb(a, function(d) {
1345
1345
  this.name = a;
1346
1346
  this.message = d;
1347
1347
  d = Error(d).stack;
@@ -1353,160 +1353,160 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
1353
1353
  return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
1354
1354
  };
1355
1355
  return c;
1356
- }, cc, dc, R = a => {
1356
+ }, bc, cc, R = a => {
1357
1357
  for (var b = ""; D[a];) {
1358
- b += dc[D[a++]];
1358
+ b += cc[D[a++]];
1359
1359
  }
1360
1360
  return b;
1361
- }, ec = [], fc = () => {
1362
- for (; ec.length;) {
1363
- var a = ec.pop();
1364
- a.g.ha = !1;
1361
+ }, dc = [], ec = () => {
1362
+ for (; dc.length;) {
1363
+ var a = dc.pop();
1364
+ a.g.ea = !1;
1365
1365
  a["delete"]();
1366
1366
  }
1367
- }, gc, hc = {}, ic = (a, b) => {
1367
+ }, fc, gc = {}, hc = (a, b) => {
1368
1368
  if (void 0 === b) {
1369
1369
  throw new P("ptr should not be undefined");
1370
1370
  }
1371
- for (; a.B;) {
1372
- b = a.oa(b), a = a.B;
1371
+ for (; a.A;) {
1372
+ b = a.ka(b), a = a.A;
1373
1373
  }
1374
1374
  return b;
1375
- }, jc = {}, mc = a => {
1376
- a = kc(a);
1375
+ }, ic = {}, lc = a => {
1376
+ a = jc(a);
1377
1377
  var b = R(a);
1378
- lc(a);
1378
+ kc(a);
1379
1379
  return b;
1380
- }, nc = (a, b) => {
1381
- var c = jc[a];
1380
+ }, mc = (a, b) => {
1381
+ var c = ic[a];
1382
1382
  if (void 0 === c) {
1383
- throw a = `${b} has unknown type ${mc(a)}`, new P(a);
1383
+ throw a = `${b} has unknown type ${lc(a)}`, new P(a);
1384
1384
  }
1385
1385
  return c;
1386
- }, oc = () => {
1387
- }, pc = !1, qc = (a, b, c) => {
1386
+ }, nc = () => {
1387
+ }, oc = !1, pc = (a, b, c) => {
1388
1388
  if (b === c) {
1389
1389
  return a;
1390
1390
  }
1391
- if (void 0 === c.B) {
1391
+ if (void 0 === c.A) {
1392
1392
  return null;
1393
1393
  }
1394
- a = qc(a, b, c.B);
1395
- return null === a ? null : c.Kb(a);
1396
- }, rc = {}, sc = (a, b) => {
1397
- b = ic(a, b);
1398
- return hc[b];
1399
- }, tc, vc = (a, b) => {
1400
- if (!b.u || !b.o) {
1401
- throw new tc("makeClassHandle requires ptr and ptrType");
1394
+ a = pc(a, b, c.A);
1395
+ return null === a ? null : c.Ab(a);
1396
+ }, qc = {}, rc = (a, b) => {
1397
+ b = hc(a, b);
1398
+ return gc[b];
1399
+ }, sc, uc = (a, b) => {
1400
+ if (!b.s || !b.m) {
1401
+ throw new sc("makeClassHandle requires ptr and ptrType");
1402
1402
  }
1403
- if (!!b.J !== !!b.D) {
1404
- throw new tc("Both smartPtrType and smartPtr must be specified");
1403
+ if (!!b.G !== !!b.B) {
1404
+ throw new sc("Both smartPtrType and smartPtr must be specified");
1405
1405
  }
1406
1406
  b.count = {value:1};
1407
- return uc(Object.create(a, {g:{value:b, writable:!0,},}));
1408
- }, uc = a => {
1407
+ return tc(Object.create(a, {g:{value:b, writable:!0,},}));
1408
+ }, tc = a => {
1409
1409
  if ("undefined" === typeof FinalizationRegistry) {
1410
- return uc = b => b, a;
1410
+ return tc = b => b, a;
1411
1411
  }
1412
- pc = new FinalizationRegistry(b => {
1412
+ oc = new FinalizationRegistry(b => {
1413
1413
  b = b.g;
1414
1414
  --b.count.value;
1415
- 0 === b.count.value && (b.D ? b.J.O(b.D) : b.u.i.O(b.o));
1415
+ 0 === b.count.value && (b.B ? b.G.L(b.B) : b.s.h.L(b.m));
1416
1416
  });
1417
- uc = b => {
1417
+ tc = b => {
1418
1418
  var c = b.g;
1419
- c.D && pc.register(b, {g:c}, b);
1419
+ c.B && oc.register(b, {g:c}, b);
1420
1420
  return b;
1421
1421
  };
1422
- oc = b => {
1423
- pc.unregister(b);
1422
+ nc = b => {
1423
+ oc.unregister(b);
1424
1424
  };
1425
- return uc(a);
1426
- }, wc = {}, xc = a => {
1425
+ return tc(a);
1426
+ }, vc = {}, wc = a => {
1427
1427
  for (; a.length;) {
1428
1428
  var b = a.pop();
1429
1429
  a.pop()(b);
1430
1430
  }
1431
1431
  };
1432
- function yc(a) {
1433
- return this.fromWireType(G[a >> 2]);
1432
+ function xc(a) {
1433
+ return this.fromWireType(K[a >> 2]);
1434
1434
  }
1435
- var zc = {}, Ac = {}, T = (a, b, c) => {
1436
- function d(k) {
1437
- k = c(k);
1438
- if (k.length !== a.length) {
1439
- throw new tc("Mismatched type converter count");
1435
+ var yc = {}, zc = {}, T = (a, b, c) => {
1436
+ function d(h) {
1437
+ h = c(h);
1438
+ if (h.length !== a.length) {
1439
+ throw new sc("Mismatched type converter count");
1440
1440
  }
1441
- for (var n = 0; n < a.length; ++n) {
1442
- S(a[n], k[n]);
1441
+ for (var m = 0; m < a.length; ++m) {
1442
+ S(a[m], h[m]);
1443
1443
  }
1444
1444
  }
1445
- a.forEach(function(k) {
1446
- Ac[k] = b;
1445
+ a.forEach(function(h) {
1446
+ zc[h] = b;
1447
1447
  });
1448
1448
  var e = Array(b.length), f = [], g = 0;
1449
- b.forEach((k, n) => {
1450
- jc.hasOwnProperty(k) ? e[n] = jc[k] : (f.push(k), zc.hasOwnProperty(k) || (zc[k] = []), zc[k].push(() => {
1451
- e[n] = jc[k];
1449
+ b.forEach((h, m) => {
1450
+ ic.hasOwnProperty(h) ? e[m] = ic[h] : (f.push(h), yc.hasOwnProperty(h) || (yc[h] = []), yc[h].push(() => {
1451
+ e[m] = ic[h];
1452
1452
  ++g;
1453
1453
  g === f.length && d(e);
1454
1454
  }));
1455
1455
  });
1456
1456
  0 === f.length && d(e);
1457
1457
  };
1458
- function Bc(a, b, c = {}) {
1458
+ function Ac(a, b, c = {}) {
1459
1459
  var d = b.name;
1460
1460
  if (!a) {
1461
1461
  throw new P(`type "${d}" must have a positive integer typeid pointer`);
1462
1462
  }
1463
- if (jc.hasOwnProperty(a)) {
1464
- if (c.Ub) {
1463
+ if (ic.hasOwnProperty(a)) {
1464
+ if (c.Kb) {
1465
1465
  return;
1466
1466
  }
1467
1467
  throw new P(`Cannot register type '${d}' twice`);
1468
1468
  }
1469
- jc[a] = b;
1470
- delete Ac[a];
1471
- zc.hasOwnProperty(a) && (b = zc[a], delete zc[a], b.forEach(e => e()));
1469
+ ic[a] = b;
1470
+ delete zc[a];
1471
+ yc.hasOwnProperty(a) && (b = yc[a], delete yc[a], b.forEach(e => e()));
1472
1472
  }
1473
1473
  function S(a, b, c = {}) {
1474
1474
  if (!("argPackAdvance" in b)) {
1475
1475
  throw new TypeError("registerType registeredInstance requires argPackAdvance");
1476
1476
  }
1477
- return Bc(a, b, c);
1477
+ return Ac(a, b, c);
1478
1478
  }
1479
- var Cc = a => {
1480
- throw new P(a.g.u.i.name + " instance already deleted");
1479
+ var Bc = a => {
1480
+ throw new P(a.g.s.h.name + " instance already deleted");
1481
1481
  };
1482
- function Dc() {
1482
+ function Cc() {
1483
1483
  }
1484
- var Ec = (a, b, c) => {
1485
- if (void 0 === a[b].A) {
1484
+ var Dc = (a, b, c) => {
1485
+ if (void 0 === a[b].v) {
1486
1486
  var d = a[b];
1487
1487
  a[b] = function(...e) {
1488
- if (!a[b].A.hasOwnProperty(e.length)) {
1489
- throw new P(`Function '${c}' called with an invalid number of arguments (${e.length}) - expects one of (${a[b].A})!`);
1488
+ if (!a[b].v.hasOwnProperty(e.length)) {
1489
+ throw new P(`Function '${c}' called with an invalid number of arguments (${e.length}) - expects one of (${a[b].v})!`);
1490
1490
  }
1491
- return a[b].A[e.length].apply(this, e);
1491
+ return a[b].v[e.length].apply(this, e);
1492
1492
  };
1493
- a[b].A = [];
1494
- a[b].A[d.ga] = d;
1493
+ a[b].v = [];
1494
+ a[b].v[d.da] = d;
1495
1495
  }
1496
- }, Fc = (a, b, c) => {
1497
- if (l.hasOwnProperty(a)) {
1498
- if (void 0 === c || void 0 !== l[a].A && void 0 !== l[a].A[c]) {
1496
+ }, Ec = (a, b, c) => {
1497
+ if (k.hasOwnProperty(a)) {
1498
+ if (void 0 === c || void 0 !== k[a].v && void 0 !== k[a].v[c]) {
1499
1499
  throw new P(`Cannot register public name '${a}' twice`);
1500
1500
  }
1501
- Ec(l, a, a);
1502
- if (l.hasOwnProperty(c)) {
1501
+ Dc(k, a, a);
1502
+ if (k.hasOwnProperty(c)) {
1503
1503
  throw new P(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);
1504
1504
  }
1505
- l[a].A[c] = b;
1505
+ k[a].v[c] = b;
1506
1506
  } else {
1507
- l[a] = b, void 0 !== c && (l[a].Pc = c);
1507
+ k[a] = b, void 0 !== c && (k[a].Ec = c);
1508
1508
  }
1509
- }, Gc = a => {
1509
+ }, Fc = a => {
1510
1510
  if (void 0 === a) {
1511
1511
  return "_unknown";
1512
1512
  }
@@ -1514,86 +1514,86 @@ var Ec = (a, b, c) => {
1514
1514
  var b = a.charCodeAt(0);
1515
1515
  return 48 <= b && 57 >= b ? `_${a}` : a;
1516
1516
  };
1517
- function Hc(a, b, c, d, e, f, g, k) {
1517
+ function Gc(a, b, c, d, e, f, g, h) {
1518
1518
  this.name = a;
1519
1519
  this.constructor = b;
1520
- this.M = c;
1521
- this.O = d;
1522
- this.B = e;
1523
- this.Pb = f;
1524
- this.oa = g;
1525
- this.Kb = k;
1526
- this.pb = [];
1520
+ this.J = c;
1521
+ this.L = d;
1522
+ this.A = e;
1523
+ this.Fb = f;
1524
+ this.ka = g;
1525
+ this.Ab = h;
1526
+ this.hb = [];
1527
1527
  }
1528
- var Ic = (a, b, c) => {
1528
+ var Hc = (a, b, c) => {
1529
1529
  for (; b !== c;) {
1530
- if (!b.oa) {
1530
+ if (!b.ka) {
1531
1531
  throw new P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
1532
1532
  }
1533
- a = b.oa(a);
1534
- b = b.B;
1533
+ a = b.ka(a);
1534
+ b = b.A;
1535
1535
  }
1536
1536
  return a;
1537
1537
  };
1538
- function Jc(a, b) {
1538
+ function Ic(a, b) {
1539
1539
  if (null === b) {
1540
- if (this.Sa) {
1540
+ if (this.La) {
1541
1541
  throw new P(`null is not a valid ${this.name}`);
1542
1542
  }
1543
1543
  return 0;
1544
1544
  }
1545
1545
  if (!b.g) {
1546
- throw new P(`Cannot pass "${Kc(b)}" as a ${this.name}`);
1546
+ throw new P(`Cannot pass "${Jc(b)}" as a ${this.name}`);
1547
1547
  }
1548
- if (!b.g.o) {
1548
+ if (!b.g.m) {
1549
1549
  throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
1550
1550
  }
1551
- return Ic(b.g.o, b.g.u.i, this.i);
1551
+ return Hc(b.g.m, b.g.s.h, this.h);
1552
1552
  }
1553
- function Lc(a, b) {
1553
+ function Kc(a, b) {
1554
1554
  if (null === b) {
1555
- if (this.Sa) {
1555
+ if (this.La) {
1556
1556
  throw new P(`null is not a valid ${this.name}`);
1557
1557
  }
1558
- if (this.xa) {
1559
- var c = this.Ua();
1560
- null !== a && a.push(this.O, c);
1558
+ if (this.ta) {
1559
+ var c = this.Na();
1560
+ null !== a && a.push(this.L, c);
1561
1561
  return c;
1562
1562
  }
1563
1563
  return 0;
1564
1564
  }
1565
1565
  if (!b || !b.g) {
1566
- throw new P(`Cannot pass "${Kc(b)}" as a ${this.name}`);
1566
+ throw new P(`Cannot pass "${Jc(b)}" as a ${this.name}`);
1567
1567
  }
1568
- if (!b.g.o) {
1568
+ if (!b.g.m) {
1569
1569
  throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
1570
1570
  }
1571
- if (!this.wa && b.g.u.wa) {
1572
- throw new P(`Cannot convert argument of type ${b.g.J ? b.g.J.name : b.g.u.name} to parameter type ${this.name}`);
1571
+ if (!this.sa && b.g.s.sa) {
1572
+ throw new P(`Cannot convert argument of type ${b.g.G ? b.g.G.name : b.g.s.name} to parameter type ${this.name}`);
1573
1573
  }
1574
- c = Ic(b.g.o, b.g.u.i, this.i);
1575
- if (this.xa) {
1576
- if (void 0 === b.g.D) {
1574
+ c = Hc(b.g.m, b.g.s.h, this.h);
1575
+ if (this.ta) {
1576
+ if (void 0 === b.g.B) {
1577
1577
  throw new P("Passing raw pointer to smart pointer is illegal");
1578
1578
  }
1579
- switch(this.ic) {
1579
+ switch(this.Yb) {
1580
1580
  case 0:
1581
- if (b.g.J === this) {
1582
- c = b.g.D;
1581
+ if (b.g.G === this) {
1582
+ c = b.g.B;
1583
1583
  } else {
1584
- throw new P(`Cannot convert argument of type ${b.g.J ? b.g.J.name : b.g.u.name} to parameter type ${this.name}`);
1584
+ throw new P(`Cannot convert argument of type ${b.g.G ? b.g.G.name : b.g.s.name} to parameter type ${this.name}`);
1585
1585
  }
1586
1586
  break;
1587
1587
  case 1:
1588
- c = b.g.D;
1588
+ c = b.g.B;
1589
1589
  break;
1590
1590
  case 2:
1591
- if (b.g.J === this) {
1592
- c = b.g.D;
1591
+ if (b.g.G === this) {
1592
+ c = b.g.B;
1593
1593
  } else {
1594
1594
  var d = b.clone();
1595
- c = this.dc(c, ac(() => d["delete"]()));
1596
- null !== a && a.push(this.O, c);
1595
+ c = this.Ub(c, $b(() => d["delete"]()));
1596
+ null !== a && a.push(this.L, c);
1597
1597
  }
1598
1598
  break;
1599
1599
  default:
@@ -1602,137 +1602,137 @@ function Lc(a, b) {
1602
1602
  }
1603
1603
  return c;
1604
1604
  }
1605
- function Mc(a, b) {
1605
+ function Lc(a, b) {
1606
1606
  if (null === b) {
1607
- if (this.Sa) {
1607
+ if (this.La) {
1608
1608
  throw new P(`null is not a valid ${this.name}`);
1609
1609
  }
1610
1610
  return 0;
1611
1611
  }
1612
1612
  if (!b.g) {
1613
- throw new P(`Cannot pass "${Kc(b)}" as a ${this.name}`);
1613
+ throw new P(`Cannot pass "${Jc(b)}" as a ${this.name}`);
1614
1614
  }
1615
- if (!b.g.o) {
1615
+ if (!b.g.m) {
1616
1616
  throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
1617
1617
  }
1618
- if (b.g.u.wa) {
1619
- throw new P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
1618
+ if (b.g.s.sa) {
1619
+ throw new P(`Cannot convert argument of type ${b.g.s.name} to parameter type ${this.name}`);
1620
1620
  }
1621
- return Ic(b.g.o, b.g.u.i, this.i);
1621
+ return Hc(b.g.m, b.g.s.h, this.h);
1622
1622
  }
1623
- function Nc(a, b, c, d, e, f, g, k, n, m, t) {
1623
+ function Mc(a, b, c, d, e, f, g, h, m, l, r) {
1624
1624
  this.name = a;
1625
- this.i = b;
1626
- this.Sa = c;
1627
- this.wa = d;
1628
- this.xa = e;
1629
- this.cc = f;
1630
- this.ic = g;
1631
- this.rb = k;
1632
- this.Ua = n;
1633
- this.dc = m;
1634
- this.O = t;
1635
- e || void 0 !== b.B ? this.toWireType = Lc : (this.toWireType = d ? Jc : Mc, this.L = null);
1625
+ this.h = b;
1626
+ this.La = c;
1627
+ this.sa = d;
1628
+ this.ta = e;
1629
+ this.Tb = f;
1630
+ this.Yb = g;
1631
+ this.jb = h;
1632
+ this.Na = m;
1633
+ this.Ub = l;
1634
+ this.L = r;
1635
+ e || void 0 !== b.A ? this.toWireType = Kc : (this.toWireType = d ? Ic : Lc, this.I = null);
1636
1636
  }
1637
- var Oc = (a, b, c) => {
1638
- if (!l.hasOwnProperty(a)) {
1639
- throw new tc("Replacing nonexistent public symbol");
1640
- }
1641
- void 0 !== l[a].A && void 0 !== c ? l[a].A[c] = b : (l[a] = b, l[a].ga = c);
1642
- }, Pc = [], Qc, Rc = a => {
1643
- var b = Pc[a];
1644
- b || (a >= Pc.length && (Pc.length = a + 1), Pc[a] = b = Qc.get(a));
1637
+ var Nc = (a, b, c) => {
1638
+ if (!k.hasOwnProperty(a)) {
1639
+ throw new sc("Replacing nonexistent public symbol");
1640
+ }
1641
+ void 0 !== k[a].v && void 0 !== c ? k[a].v[c] = b : (k[a] = b, k[a].da = c);
1642
+ }, Oc = [], Pc, Qc = a => {
1643
+ var b = Oc[a];
1644
+ b || (a >= Oc.length && (Oc.length = a + 1), Oc[a] = b = Pc.get(a));
1645
1645
  return b;
1646
- }, Sc = (a, b, c = []) => {
1647
- a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,l["dynCall_" + a])(b, ...c)) : b = Rc(b)(...c);
1646
+ }, Rc = (a, b, c = []) => {
1647
+ a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,k["dynCall_" + a])(b, ...c)) : b = Qc(b)(...c);
1648
1648
  return b;
1649
- }, Tc = (a, b) => (...c) => Sc(a, b, c), U = (a, b) => {
1649
+ }, Sc = (a, b) => (...c) => Rc(a, b, c), U = (a, b) => {
1650
1650
  a = R(a);
1651
- var c = a.includes("j") ? Tc(a, b) : Rc(b);
1651
+ var c = a.includes("j") ? Sc(a, b) : Qc(b);
1652
1652
  if ("function" != typeof c) {
1653
1653
  throw new P(`unknown function pointer with signature ${a}: ${b}`);
1654
1654
  }
1655
1655
  return c;
1656
- }, Uc, Vc = (a, b) => {
1656
+ }, Tc, Uc = (a, b) => {
1657
1657
  function c(f) {
1658
- e[f] || jc[f] || (Ac[f] ? Ac[f].forEach(c) : (d.push(f), e[f] = !0));
1658
+ e[f] || ic[f] || (zc[f] ? zc[f].forEach(c) : (d.push(f), e[f] = !0));
1659
1659
  }
1660
1660
  var d = [], e = {};
1661
1661
  b.forEach(c);
1662
- throw new Uc(`${a}: ` + d.map(mc).join([", "]));
1662
+ throw new Tc(`${a}: ` + d.map(lc).join([", "]));
1663
1663
  };
1664
- function Wc(a) {
1664
+ function Vc(a) {
1665
1665
  for (var b = 1; b < a.length; ++b) {
1666
- if (null !== a[b] && void 0 === a[b].L) {
1666
+ if (null !== a[b] && void 0 === a[b].I) {
1667
1667
  return !0;
1668
1668
  }
1669
1669
  }
1670
1670
  return !1;
1671
1671
  }
1672
- function Xc(a, b, c, d, e) {
1672
+ function Wc(a, b, c, d, e) {
1673
1673
  var f = b.length;
1674
1674
  if (2 > f) {
1675
1675
  throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
1676
1676
  }
1677
- var g = null !== b[1] && null !== c, k = Wc(b), n = "void" !== b[0].name, m = f - 2, t = Array(m), v = [], x = [];
1678
- return Zb(a, function(...p) {
1679
- if (p.length !== m) {
1680
- throw new P(`function ${a} called with ${p.length} arguments, expected ${m}`);
1677
+ var g = null !== b[1] && null !== c, h = Vc(b), m = "void" !== b[0].name, l = f - 2, r = Array(l), u = [], w = [];
1678
+ return Yb(a, function(...n) {
1679
+ if (n.length !== l) {
1680
+ throw new P(`function ${a} called with ${n.length} arguments, expected ${l}`);
1681
1681
  }
1682
- x.length = 0;
1683
- v.length = g ? 2 : 1;
1684
- v[0] = e;
1682
+ w.length = 0;
1683
+ u.length = g ? 2 : 1;
1684
+ u[0] = e;
1685
1685
  if (g) {
1686
- var r = b[1].toWireType(x, this);
1687
- v[1] = r;
1686
+ var q = b[1].toWireType(w, this);
1687
+ u[1] = q;
1688
1688
  }
1689
- for (var u = 0; u < m; ++u) {
1690
- t[u] = b[u + 2].toWireType(x, p[u]), v.push(t[u]);
1689
+ for (var t = 0; t < l; ++t) {
1690
+ r[t] = b[t + 2].toWireType(w, n[t]), u.push(r[t]);
1691
1691
  }
1692
- p = d(...v);
1693
- if (k) {
1694
- xc(x);
1692
+ n = d(...u);
1693
+ if (h) {
1694
+ wc(w);
1695
1695
  } else {
1696
- for (u = g ? 1 : 2; u < b.length; u++) {
1697
- var z = 1 === u ? r : t[u - 2];
1698
- null !== b[u].L && b[u].L(z);
1696
+ for (t = g ? 1 : 2; t < b.length; t++) {
1697
+ var y = 1 === t ? q : r[t - 2];
1698
+ null !== b[t].I && b[t].I(y);
1699
1699
  }
1700
1700
  }
1701
- r = n ? b[0].fromWireType(p) : void 0;
1702
- return r;
1701
+ q = m ? b[0].fromWireType(n) : void 0;
1702
+ return q;
1703
1703
  });
1704
1704
  }
1705
- var Yc = (a, b) => {
1705
+ var Xc = (a, b) => {
1706
1706
  for (var c = [], d = 0; d < a; d++) {
1707
- c.push(G[b + 4 * d >> 2]);
1707
+ c.push(K[b + 4 * d >> 2]);
1708
1708
  }
1709
1709
  return c;
1710
- }, Zc = a => {
1710
+ }, Yc = a => {
1711
1711
  a = a.trim();
1712
1712
  const b = a.indexOf("(");
1713
1713
  return -1 !== b ? a.substr(0, b) : a;
1714
- }, $c = (a, b, c) => {
1714
+ }, Zc = (a, b, c) => {
1715
1715
  if (!(a instanceof Object)) {
1716
1716
  throw new P(`${c} with invalid "this": ${a}`);
1717
1717
  }
1718
- if (!(a instanceof b.i.constructor)) {
1718
+ if (!(a instanceof b.h.constructor)) {
1719
1719
  throw new P(`${c} incompatible with "this" of type ${a.constructor.name}`);
1720
1720
  }
1721
- if (!a.g.o) {
1721
+ if (!a.g.m) {
1722
1722
  throw new P(`cannot call emscripten binding method ${c} on deleted object`);
1723
1723
  }
1724
- return Ic(a.g.o, a.g.u.i, b.i);
1725
- }, ad = a => {
1726
- 9 < a && 0 === --O[a + 1] && (O[a] = void 0, $b.push(a));
1727
- }, bd = {name:"emscripten::val", fromWireType:a => {
1724
+ return Hc(a.g.m, a.g.s.h, b.h);
1725
+ }, $c = a => {
1726
+ 9 < a && 0 === --O[a + 1] && (O[a] = void 0, Zb.push(a));
1727
+ }, ad = {name:"emscripten::val", fromWireType:a => {
1728
1728
  var b = Q(a);
1729
- ad(a);
1729
+ $c(a);
1730
1730
  return b;
1731
- }, toWireType:(a, b) => ac(b), argPackAdvance:8, readValueFromPointer:yc, L:null,}, cd = (a, b, c) => {
1731
+ }, toWireType:(a, b) => $b(b), argPackAdvance:8, readValueFromPointer:xc, I:null,}, bd = (a, b, c) => {
1732
1732
  switch(b) {
1733
1733
  case 1:
1734
1734
  return c ? function(d) {
1735
- return this.fromWireType(B[d]);
1735
+ return this.fromWireType(C[d]);
1736
1736
  } : function(d) {
1737
1737
  return this.fromWireType(D[d]);
1738
1738
  };
@@ -1740,55 +1740,55 @@ var Yc = (a, b) => {
1740
1740
  return c ? function(d) {
1741
1741
  return this.fromWireType(E[d >> 1]);
1742
1742
  } : function(d) {
1743
- return this.fromWireType(wa[d >> 1]);
1743
+ return this.fromWireType(va[d >> 1]);
1744
1744
  };
1745
1745
  case 4:
1746
1746
  return c ? function(d) {
1747
1747
  return this.fromWireType(F[d >> 2]);
1748
1748
  } : function(d) {
1749
- return this.fromWireType(G[d >> 2]);
1749
+ return this.fromWireType(K[d >> 2]);
1750
1750
  };
1751
1751
  default:
1752
1752
  throw new TypeError(`invalid integer width (${b}): ${a}`);
1753
1753
  }
1754
- }, Kc = a => {
1754
+ }, Jc = a => {
1755
1755
  if (null === a) {
1756
1756
  return "null";
1757
1757
  }
1758
1758
  var b = typeof a;
1759
1759
  return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
1760
- }, dd = (a, b) => {
1760
+ }, cd = (a, b) => {
1761
1761
  switch(b) {
1762
1762
  case 4:
1763
1763
  return function(c) {
1764
- return this.fromWireType(xa[c >> 2]);
1764
+ return this.fromWireType(wa[c >> 2]);
1765
1765
  };
1766
1766
  case 8:
1767
1767
  return function(c) {
1768
- return this.fromWireType(ya[c >> 3]);
1768
+ return this.fromWireType(xa[c >> 3]);
1769
1769
  };
1770
1770
  default:
1771
1771
  throw new TypeError(`invalid float width (${b}): ${a}`);
1772
1772
  }
1773
- }, ed = (a, b, c) => {
1773
+ }, dd = (a, b, c) => {
1774
1774
  switch(b) {
1775
1775
  case 1:
1776
- return c ? d => B[d] : d => D[d];
1776
+ return c ? d => C[d] : d => D[d];
1777
1777
  case 2:
1778
- return c ? d => E[d >> 1] : d => wa[d >> 1];
1778
+ return c ? d => E[d >> 1] : d => va[d >> 1];
1779
1779
  case 4:
1780
- return c ? d => F[d >> 2] : d => G[d >> 2];
1780
+ return c ? d => F[d >> 2] : d => K[d >> 2];
1781
1781
  default:
1782
1782
  throw new TypeError(`invalid integer width (${b}): ${a}`);
1783
1783
  }
1784
- }, fd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, gd = (a, b) => {
1784
+ }, ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, fd = (a, b) => {
1785
1785
  var c = a >> 1;
1786
- for (var d = c + b / 2; !(c >= d) && wa[c];) {
1786
+ for (var d = c + b / 2; !(c >= d) && va[c];) {
1787
1787
  ++c;
1788
1788
  }
1789
1789
  c <<= 1;
1790
- if (32 < c - a && fd) {
1791
- return fd.decode(D.subarray(a, c));
1790
+ if (32 < c - a && ed) {
1791
+ return ed.decode(D.subarray(a, c));
1792
1792
  }
1793
1793
  c = "";
1794
1794
  for (d = 0; !(d >= b / 2); ++d) {
@@ -1799,7 +1799,7 @@ var Yc = (a, b) => {
1799
1799
  c += String.fromCharCode(e);
1800
1800
  }
1801
1801
  return c;
1802
- }, hd = (a, b, c) => {
1802
+ }, gd = (a, b, c) => {
1803
1803
  c ??= 2147483647;
1804
1804
  if (2 > c) {
1805
1805
  return 0;
@@ -1812,7 +1812,7 @@ var Yc = (a, b) => {
1812
1812
  }
1813
1813
  E[b >> 1] = 0;
1814
1814
  return b - d;
1815
- }, jd = a => 2 * a.length, kd = (a, b) => {
1815
+ }, hd = a => 2 * a.length, jd = (a, b) => {
1816
1816
  for (var c = 0, d = ""; !(c >= b / 4);) {
1817
1817
  var e = F[a + 4 * c >> 2];
1818
1818
  if (0 == e) {
@@ -1822,7 +1822,7 @@ var Yc = (a, b) => {
1822
1822
  65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
1823
1823
  }
1824
1824
  return d;
1825
- }, ld = (a, b, c) => {
1825
+ }, kd = (a, b, c) => {
1826
1826
  c ??= 2147483647;
1827
1827
  if (4 > c) {
1828
1828
  return 0;
@@ -1843,93 +1843,93 @@ var Yc = (a, b) => {
1843
1843
  }
1844
1844
  F[b >> 2] = 0;
1845
1845
  return b - d;
1846
- }, md = a => {
1846
+ }, ld = a => {
1847
1847
  for (var b = 0, c = 0; c < a.length; ++c) {
1848
1848
  var d = a.charCodeAt(c);
1849
1849
  55296 <= d && 57343 >= d && ++c;
1850
1850
  b += 4;
1851
1851
  }
1852
1852
  return b;
1853
- }, nd = (a, b, c) => {
1853
+ }, md = (a, b, c) => {
1854
1854
  var d = [];
1855
1855
  a = a.toWireType(d, c);
1856
- d.length && (G[b >> 2] = ac(d));
1856
+ d.length && (K[b >> 2] = $b(d));
1857
1857
  return a;
1858
- }, od = [], pd = {}, qd = a => {
1859
- var b = pd[a];
1858
+ }, nd = [], od = {}, pd = a => {
1859
+ var b = od[a];
1860
1860
  return void 0 === b ? R(a) : b;
1861
- }, rd = a => {
1862
- var b = od.length;
1863
- od.push(a);
1861
+ }, qd = a => {
1862
+ var b = nd.length;
1863
+ nd.push(a);
1864
1864
  return b;
1865
- }, sd = (a, b) => {
1865
+ }, rd = (a, b) => {
1866
1866
  for (var c = Array(a), d = 0; d < a; ++d) {
1867
- c[d] = nc(G[b + 4 * d >> 2], "parameter " + d);
1867
+ c[d] = mc(K[b + 4 * d >> 2], "parameter " + d);
1868
1868
  }
1869
1869
  return c;
1870
- }, td = Reflect.construct, ud = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), vd = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], wd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], xd = [], yd = a => {
1871
- a.Ec = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
1870
+ }, sd = Reflect.construct, td = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), ud = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], vd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], wd = [], xd = a => {
1871
+ a.tc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
1872
+ }, yd = a => {
1873
+ a.Bc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
1872
1874
  }, zd = a => {
1873
- a.Mc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
1874
- }, Ad = a => {
1875
1875
  var b = "EXT_color_buffer_float EXT_conservative_depth EXT_disjoint_timer_query_webgl2 EXT_texture_norm16 NV_shader_noperspective_interpolation WEBGL_clip_cull_distance EXT_color_buffer_half_float EXT_depth_clamp EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_blend_func_extended WEBGL_compressed_texture_astc WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw".split(" ");
1876
1876
  return (a.getSupportedExtensions() || []).filter(c => b.includes(c));
1877
- }, Bd = 1, Cd = [], V = [], Dd = [], Ed = [], Fd = [], Gd = [], Hd = [], w = [], Id = {}, Jd = 4, Kd = 0, Ld = a => {
1878
- for (var b = Bd++, c = a.length; c < b; c++) {
1877
+ }, Ad = 1, Bd = [], V = [], Cd = [], Dd = [], Ed = [], Fd = [], Gd = [], v = [], Hd = {}, Id = 4, Jd = 0, Kd = a => {
1878
+ for (var b = Ad++, c = a.length; c < b; c++) {
1879
1879
  a[c] = null;
1880
1880
  }
1881
1881
  return b;
1882
- }, Md = (a, b, c, d) => {
1882
+ }, Ld = (a, b, c, d) => {
1883
1883
  for (var e = 0; e < a; e++) {
1884
- var f = W[c](), g = f && Ld(d);
1884
+ var f = W[c](), g = f && Kd(d);
1885
1885
  f ? (f.name = g, d[g] = f) : X ||= 1282;
1886
1886
  F[b + 4 * e >> 2] = g;
1887
1887
  }
1888
1888
  }, la = (a, b) => {
1889
- var c = Ld(w), d = {handle:c, attributes:b, version:b.Lc, F:a};
1890
- a.canvas && (a.canvas.Ab = d);
1891
- w[c] = d;
1892
- ("undefined" == typeof b.Lb || b.Lb) && Nd(d);
1889
+ var c = Kd(v), d = {handle:c, attributes:b, version:b.Ac, C:a};
1890
+ a.canvas && (a.canvas.qb = d);
1891
+ v[c] = d;
1892
+ ("undefined" == typeof b.Bb || b.Bb) && Md(d);
1893
1893
  return c;
1894
1894
  }, ka = a => {
1895
- q = w[a];
1896
- l.Cc = W = q?.F;
1895
+ p = v[a];
1896
+ k.rc = W = p?.C;
1897
1897
  return !(a && !W);
1898
- }, Nd = a => {
1899
- a ||= q;
1900
- if (!a.Vb) {
1901
- a.Vb = !0;
1902
- var b = a.F;
1898
+ }, Md = a => {
1899
+ a ||= p;
1900
+ if (!a.Lb) {
1901
+ a.Lb = !0;
1902
+ var b = a.C;
1903
+ xd(b);
1903
1904
  yd(b);
1904
- zd(b);
1905
- 2 <= a.version && (b.eb = b.getExtension("EXT_disjoint_timer_query_webgl2"));
1906
- if (2 > a.version || !b.eb) {
1907
- b.eb = b.getExtension("EXT_disjoint_timer_query");
1905
+ 2 <= a.version && (b.Wa = b.getExtension("EXT_disjoint_timer_query_webgl2"));
1906
+ if (2 > a.version || !b.Wa) {
1907
+ b.Wa = b.getExtension("EXT_disjoint_timer_query");
1908
1908
  }
1909
- b.ac = b.getExtension("WEBGL_multi_draw");
1910
- Ad(b).forEach(c => {
1909
+ b.Rb = b.getExtension("WEBGL_multi_draw");
1910
+ zd(b).forEach(c => {
1911
1911
  c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
1912
1912
  });
1913
1913
  }
1914
- }, X, q, Od = {}, Qd = () => {
1915
- if (!Pd) {
1914
+ }, X, p, Nd = {}, Pd = () => {
1915
+ if (!Od) {
1916
1916
  var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:na || "./this.program"}, b;
1917
- for (b in Od) {
1918
- void 0 === Od[b] ? delete a[b] : a[b] = Od[b];
1917
+ for (b in Nd) {
1918
+ void 0 === Nd[b] ? delete a[b] : a[b] = Nd[b];
1919
1919
  }
1920
1920
  var c = [];
1921
1921
  for (b in a) {
1922
1922
  c.push(`${b}=${a[b]}`);
1923
1923
  }
1924
- Pd = c;
1924
+ Od = c;
1925
1925
  }
1926
- return Pd;
1927
- }, Pd, Rd = [];
1928
- function Sd() {
1929
- var a = Ad(W);
1926
+ return Od;
1927
+ }, Od, Qd = [];
1928
+ function Rd() {
1929
+ var a = zd(W);
1930
1930
  return a = a.concat(a.map(b => "GL_" + b));
1931
1931
  }
1932
- var Td = (a, b) => {
1932
+ var Sd = (a, b) => {
1933
1933
  if (b) {
1934
1934
  var c = void 0;
1935
1935
  switch(a) {
@@ -1947,15 +1947,15 @@ var Td = (a, b) => {
1947
1947
  c = d ? d.length : 0;
1948
1948
  break;
1949
1949
  case 33309:
1950
- if (2 > q.version) {
1950
+ if (2 > p.version) {
1951
1951
  X ||= 1282;
1952
1952
  return;
1953
1953
  }
1954
- c = Sd().length;
1954
+ c = Rd().length;
1955
1955
  break;
1956
1956
  case 33307:
1957
1957
  case 33308:
1958
- if (2 > q.version) {
1958
+ if (2 > p.version) {
1959
1959
  X ||= 1280;
1960
1960
  return;
1961
1961
  }
@@ -2011,14 +2011,14 @@ var Td = (a, b) => {
2011
2011
  c = d.name | 0;
2012
2012
  } catch (e) {
2013
2013
  X ||= 1280;
2014
- sa(`GL_INVALID_ENUM in glGet${0}v: Unknown object returned from WebGL getParameter(${a})! (error: ${e})`);
2014
+ A(`GL_INVALID_ENUM in glGet${0}v: Unknown object returned from WebGL getParameter(${a})! (error: ${e})`);
2015
2015
  return;
2016
2016
  }
2017
2017
  }
2018
2018
  break;
2019
2019
  default:
2020
2020
  X ||= 1280;
2021
- sa(`GL_INVALID_ENUM in glGet${0}v: Native code calling glGet${0}v(${a}) and it returns ${d} of type ${typeof d}!`);
2021
+ A(`GL_INVALID_ENUM in glGet${0}v: Native code calling glGet${0}v(${a}) and it returns ${d} of type ${typeof d}!`);
2022
2022
  return;
2023
2023
  }
2024
2024
  }
@@ -2026,475 +2026,475 @@ var Td = (a, b) => {
2026
2026
  } else {
2027
2027
  X ||= 1281;
2028
2028
  }
2029
- }, Vd = a => {
2030
- var b = fb(a) + 1, c = Ud(b);
2031
- c && gb(a, D, c, b);
2029
+ }, Ud = a => {
2030
+ var b = eb(a) + 1, c = Td(b);
2031
+ c && fb(a, D, c, b);
2032
2032
  return c;
2033
- }, Wd = a => "]" == a.slice(-1) && a.lastIndexOf("["), Xd = a => {
2033
+ }, Vd = a => "]" == a.slice(-1) && a.lastIndexOf("["), Wd = a => {
2034
2034
  a -= 5120;
2035
- return 0 == a ? B : 1 == a ? D : 2 == a ? E : 4 == a ? F : 6 == a ? xa : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? G : wa;
2036
- }, Yd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Zd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], $d = (a, b, c, d) => {
2037
- function e(p, r, u) {
2038
- for (p = "number" == typeof p ? p.toString() : p || ""; p.length < r;) {
2039
- p = u[0] + p;
2035
+ return 0 == a ? C : 1 == a ? D : 2 == a ? E : 4 == a ? F : 6 == a ? wa : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? K : va;
2036
+ }, Xd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Yd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Zd = (a, b, c, d) => {
2037
+ function e(n, q, t) {
2038
+ for (n = "number" == typeof n ? n.toString() : n || ""; n.length < q;) {
2039
+ n = t[0] + n;
2040
2040
  }
2041
- return p;
2041
+ return n;
2042
2042
  }
2043
- function f(p, r) {
2044
- return e(p, r, "0");
2043
+ function f(n, q) {
2044
+ return e(n, q, "0");
2045
2045
  }
2046
- function g(p, r) {
2047
- function u(A) {
2048
- return 0 > A ? -1 : 0 < A ? 1 : 0;
2046
+ function g(n, q) {
2047
+ function t(z) {
2048
+ return 0 > z ? -1 : 0 < z ? 1 : 0;
2049
2049
  }
2050
- var z;
2051
- 0 === (z = u(p.getFullYear() - r.getFullYear())) && 0 === (z = u(p.getMonth() - r.getMonth())) && (z = u(p.getDate() - r.getDate()));
2052
- return z;
2050
+ var y;
2051
+ 0 === (y = t(n.getFullYear() - q.getFullYear())) && 0 === (y = t(n.getMonth() - q.getMonth())) && (y = t(n.getDate() - q.getDate()));
2052
+ return y;
2053
2053
  }
2054
- function k(p) {
2055
- switch(p.getDay()) {
2054
+ function h(n) {
2055
+ switch(n.getDay()) {
2056
2056
  case 0:
2057
- return new Date(p.getFullYear() - 1, 11, 29);
2057
+ return new Date(n.getFullYear() - 1, 11, 29);
2058
2058
  case 1:
2059
- return p;
2059
+ return n;
2060
2060
  case 2:
2061
- return new Date(p.getFullYear(), 0, 3);
2061
+ return new Date(n.getFullYear(), 0, 3);
2062
2062
  case 3:
2063
- return new Date(p.getFullYear(), 0, 2);
2063
+ return new Date(n.getFullYear(), 0, 2);
2064
2064
  case 4:
2065
- return new Date(p.getFullYear(), 0, 1);
2065
+ return new Date(n.getFullYear(), 0, 1);
2066
2066
  case 5:
2067
- return new Date(p.getFullYear() - 1, 11, 31);
2067
+ return new Date(n.getFullYear() - 1, 11, 31);
2068
2068
  case 6:
2069
- return new Date(p.getFullYear() - 1, 11, 30);
2069
+ return new Date(n.getFullYear() - 1, 11, 30);
2070
2070
  }
2071
2071
  }
2072
- function n(p) {
2073
- var r = p.ca;
2074
- for (p = new Date((new Date(p.da + 1900, 0, 1)).getTime()); 0 < r;) {
2075
- var u = p.getMonth(), z = (ud(p.getFullYear()) ? Yd : Zd)[u];
2076
- if (r > z - p.getDate()) {
2077
- r -= z - p.getDate() + 1, p.setDate(1), 11 > u ? p.setMonth(u + 1) : (p.setMonth(0), p.setFullYear(p.getFullYear() + 1));
2072
+ function m(n) {
2073
+ var q = n.$;
2074
+ for (n = new Date((new Date(n.aa + 1900, 0, 1)).getTime()); 0 < q;) {
2075
+ var t = n.getMonth(), y = (td(n.getFullYear()) ? Xd : Yd)[t];
2076
+ if (q > y - n.getDate()) {
2077
+ q -= y - n.getDate() + 1, n.setDate(1), 11 > t ? n.setMonth(t + 1) : (n.setMonth(0), n.setFullYear(n.getFullYear() + 1));
2078
2078
  } else {
2079
- p.setDate(p.getDate() + r);
2079
+ n.setDate(n.getDate() + q);
2080
2080
  break;
2081
2081
  }
2082
2082
  }
2083
- u = new Date(p.getFullYear() + 1, 0, 4);
2084
- r = k(new Date(p.getFullYear(), 0, 4));
2085
- u = k(u);
2086
- return 0 >= g(r, p) ? 0 >= g(u, p) ? p.getFullYear() + 1 : p.getFullYear() : p.getFullYear() - 1;
2083
+ t = new Date(n.getFullYear() + 1, 0, 4);
2084
+ q = h(new Date(n.getFullYear(), 0, 4));
2085
+ t = h(t);
2086
+ return 0 >= g(q, n) ? 0 >= g(t, n) ? n.getFullYear() + 1 : n.getFullYear() : n.getFullYear() - 1;
2087
2087
  }
2088
- var m = G[d + 40 >> 2];
2089
- d = {lc:F[d >> 2], kc:F[d + 4 >> 2], Ja:F[d + 8 >> 2], Wa:F[d + 12 >> 2], Ka:F[d + 16 >> 2], da:F[d + 20 >> 2], R:F[d + 24 >> 2], ca:F[d + 28 >> 2], Tc:F[d + 32 >> 2], jc:F[d + 36 >> 2], mc:m ? m ? L(D, m) : "" : ""};
2088
+ var l = K[d + 40 >> 2];
2089
+ d = {ac:F[d >> 2], $b:F[d + 4 >> 2], Da:F[d + 8 >> 2], Pa:F[d + 12 >> 2], Ea:F[d + 16 >> 2], aa:F[d + 20 >> 2], N:F[d + 24 >> 2], $:F[d + 28 >> 2], Ic:F[d + 32 >> 2], Zb:F[d + 36 >> 2], bc:l ? l ? L(D, l) : "" : ""};
2090
2090
  c = c ? L(D, c) : "";
2091
- 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",};
2092
- for (var t in m) {
2093
- c = c.replace(new RegExp(t, "g"), m[t]);
2094
- }
2095
- var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
2096
- m = {"%a":p => v[p.R].substring(0, 3), "%A":p => v[p.R], "%b":p => x[p.Ka].substring(0, 3), "%B":p => x[p.Ka], "%C":p => f((p.da + 1900) / 100 | 0, 2), "%d":p => f(p.Wa, 2), "%e":p => e(p.Wa, 2, " "), "%g":p => n(p).toString().substring(2), "%G":n, "%H":p => f(p.Ja, 2), "%I":p => {
2097
- p = p.Ja;
2098
- 0 == p ? p = 12 : 12 < p && (p -= 12);
2099
- return f(p, 2);
2100
- }, "%j":p => {
2101
- for (var r = 0, u = 0; u <= p.Ka - 1; r += (ud(p.da + 1900) ? Yd : Zd)[u++]) {
2102
- }
2103
- return f(p.Wa + r, 3);
2104
- }, "%m":p => f(p.Ka + 1, 2), "%M":p => f(p.kc, 2), "%n":() => "\n", "%p":p => 0 <= p.Ja && 12 > p.Ja ? "AM" : "PM", "%S":p => f(p.lc, 2), "%t":() => "\t", "%u":p => p.R || 7, "%U":p => f(Math.floor((p.ca + 7 - p.R) / 7), 2), "%V":p => {
2105
- var r = Math.floor((p.ca + 7 - (p.R + 6) % 7) / 7);
2106
- 2 >= (p.R + 371 - p.ca - 2) % 7 && r++;
2107
- if (r) {
2108
- 53 == r && (u = (p.R + 371 - p.ca) % 7, 4 == u || 3 == u && ud(p.da) || (r = 1));
2091
+ l = {"%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",};
2092
+ for (var r in l) {
2093
+ c = c.replace(new RegExp(r, "g"), l[r]);
2094
+ }
2095
+ var u = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), w = "January February March April May June July August September October November December".split(" ");
2096
+ l = {"%a":n => u[n.N].substring(0, 3), "%A":n => u[n.N], "%b":n => w[n.Ea].substring(0, 3), "%B":n => w[n.Ea], "%C":n => f((n.aa + 1900) / 100 | 0, 2), "%d":n => f(n.Pa, 2), "%e":n => e(n.Pa, 2, " "), "%g":n => m(n).toString().substring(2), "%G":m, "%H":n => f(n.Da, 2), "%I":n => {
2097
+ n = n.Da;
2098
+ 0 == n ? n = 12 : 12 < n && (n -= 12);
2099
+ return f(n, 2);
2100
+ }, "%j":n => {
2101
+ for (var q = 0, t = 0; t <= n.Ea - 1; q += (td(n.aa + 1900) ? Xd : Yd)[t++]) {
2102
+ }
2103
+ return f(n.Pa + q, 3);
2104
+ }, "%m":n => f(n.Ea + 1, 2), "%M":n => f(n.$b, 2), "%n":() => "\n", "%p":n => 0 <= n.Da && 12 > n.Da ? "AM" : "PM", "%S":n => f(n.ac, 2), "%t":() => "\t", "%u":n => n.N || 7, "%U":n => f(Math.floor((n.$ + 7 - n.N) / 7), 2), "%V":n => {
2105
+ var q = Math.floor((n.$ + 7 - (n.N + 6) % 7) / 7);
2106
+ 2 >= (n.N + 371 - n.$ - 2) % 7 && q++;
2107
+ if (q) {
2108
+ 53 == q && (t = (n.N + 371 - n.$) % 7, 4 == t || 3 == t && td(n.aa) || (q = 1));
2109
2109
  } else {
2110
- r = 52;
2111
- var u = (p.R + 7 - p.ca - 1) % 7;
2112
- (4 == u || 5 == u && ud(p.da % 400 - 1)) && r++;
2113
- }
2114
- return f(r, 2);
2115
- }, "%w":p => p.R, "%W":p => f(Math.floor((p.ca + 7 - (p.R + 6) % 7) / 7), 2), "%y":p => (p.da + 1900).toString().substring(2), "%Y":p => p.da + 1900, "%z":p => {
2116
- p = p.jc;
2117
- var r = 0 <= p;
2118
- p = Math.abs(p) / 60;
2119
- return (r ? "+" : "-") + String("0000" + (p / 60 * 100 + p % 60)).slice(-4);
2120
- }, "%Z":p => p.mc, "%%":() => "%"};
2110
+ q = 52;
2111
+ var t = (n.N + 7 - n.$ - 1) % 7;
2112
+ (4 == t || 5 == t && td(n.aa % 400 - 1)) && q++;
2113
+ }
2114
+ return f(q, 2);
2115
+ }, "%w":n => n.N, "%W":n => f(Math.floor((n.$ + 7 - (n.N + 6) % 7) / 7), 2), "%y":n => (n.aa + 1900).toString().substring(2), "%Y":n => n.aa + 1900, "%z":n => {
2116
+ n = n.Zb;
2117
+ var q = 0 <= n;
2118
+ n = Math.abs(n) / 60;
2119
+ return (q ? "+" : "-") + String("0000" + (n / 60 * 100 + n % 60)).slice(-4);
2120
+ }, "%Z":n => n.bc, "%%":() => "%"};
2121
2121
  c = c.replace(/%%/g, "\x00\x00");
2122
- for (t in m) {
2123
- c.includes(t) && (c = c.replace(new RegExp(t, "g"), m[t](d)));
2122
+ for (r in l) {
2123
+ c.includes(r) && (c = c.replace(new RegExp(r, "g"), l[r](d)));
2124
2124
  }
2125
2125
  c = c.replace(/\0\0/g, "%");
2126
- t = hb(c, !1);
2127
- if (t.length > b) {
2126
+ r = gb(c, !1);
2127
+ if (r.length > b) {
2128
2128
  return 0;
2129
2129
  }
2130
- B.set(t, a);
2131
- return t.length - 1;
2130
+ C.set(r, a);
2131
+ return r.length - 1;
2132
2132
  };
2133
2133
  [44].forEach(a => {
2134
- sb[a] = new M(a);
2135
- sb[a].stack = "<generic error, no stack>";
2134
+ rb[a] = new M(a);
2135
+ rb[a].stack = "<generic error, no stack>";
2136
2136
  });
2137
- zb = Array(4096);
2138
- Nb(N, "/");
2139
- Pb("/tmp");
2140
- Pb("/home");
2141
- Pb("/home/web_user");
2137
+ yb = Array(4096);
2138
+ Mb(N, "/");
2139
+ Ob("/tmp");
2140
+ Ob("/home");
2141
+ Ob("/home/web_user");
2142
2142
  (function() {
2143
- Pb("/dev");
2144
- kb(259, {read:() => 0, write:(d, e, f, g) => g,});
2145
- Qb("/dev/null", 259);
2146
- jb(1280, mb);
2147
- jb(1536, nb);
2148
- Qb("/dev/tty", 1280);
2149
- Qb("/dev/tty1", 1536);
2143
+ Ob("/dev");
2144
+ jb(259, {read:() => 0, write:(d, e, f, g) => g,});
2145
+ Pb("/dev/null", 259);
2146
+ ib(1280, lb);
2147
+ ib(1536, mb);
2148
+ Pb("/dev/tty", 1280);
2149
+ Pb("/dev/tty1", 1536);
2150
2150
  var a = new Uint8Array(1024), b = 0, c = () => {
2151
- 0 === b && (b = bb(a).byteLength);
2151
+ 0 === b && (b = ab(a).byteLength);
2152
2152
  return a[--b];
2153
2153
  };
2154
- Wb("random", c);
2155
- Wb("urandom", c);
2156
- Pb("/dev/shm");
2157
- Pb("/dev/shm/tmp");
2154
+ Vb("random", c);
2155
+ Vb("urandom", c);
2156
+ Ob("/dev/shm");
2157
+ Ob("/dev/shm/tmp");
2158
2158
  })();
2159
2159
  (function() {
2160
- Pb("/proc");
2161
- var a = Pb("/proc/self");
2162
- Pb("/proc/self/fd");
2163
- Nb({U() {
2164
- var b = rb(a, "fd", 16895, 73);
2165
- b.j = {la(c, d) {
2166
- var e = Kb(+d);
2167
- c = {parent:null, U:{lb:"fake"}, j:{ma:() => e.path},};
2160
+ Ob("/proc");
2161
+ var a = Ob("/proc/self");
2162
+ Ob("/proc/self/fd");
2163
+ Mb({R() {
2164
+ var b = qb(a, "fd", 16895, 73);
2165
+ b.i = {ha(c, d) {
2166
+ var e = Jb(+d);
2167
+ c = {parent:null, R:{cb:"fake"}, i:{ia:() => e.path},};
2168
2168
  return c.parent = c;
2169
2169
  }};
2170
2170
  return b;
2171
2171
  }}, "/proc/self/fd");
2172
2172
  })();
2173
- P = l.BindingError = class extends Error {
2173
+ P = k.BindingError = class extends Error {
2174
2174
  constructor(a) {
2175
2175
  super(a);
2176
2176
  this.name = "BindingError";
2177
2177
  }
2178
2178
  };
2179
2179
  O.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
2180
- l.count_emval_handles = () => O.length / 2 - 5 - $b.length;
2181
- cc = l.PureVirtualError = bc("PureVirtualError");
2182
- for (var ae = Array(256), be = 0; 256 > be; ++be) {
2183
- ae[be] = String.fromCharCode(be);
2180
+ k.count_emval_handles = () => O.length / 2 - 5 - Zb.length;
2181
+ bc = k.PureVirtualError = ac("PureVirtualError");
2182
+ for (var $d = Array(256), ae = 0; 256 > ae; ++ae) {
2183
+ $d[ae] = String.fromCharCode(ae);
2184
2184
  }
2185
- dc = ae;
2186
- l.getInheritedInstanceCount = () => Object.keys(hc).length;
2187
- l.getLiveInheritedInstances = () => {
2185
+ cc = $d;
2186
+ k.getInheritedInstanceCount = () => Object.keys(gc).length;
2187
+ k.getLiveInheritedInstances = () => {
2188
2188
  var a = [], b;
2189
- for (b in hc) {
2190
- hc.hasOwnProperty(b) && a.push(hc[b]);
2189
+ for (b in gc) {
2190
+ gc.hasOwnProperty(b) && a.push(gc[b]);
2191
2191
  }
2192
2192
  return a;
2193
2193
  };
2194
- l.flushPendingDeletes = fc;
2195
- l.setDelayFunction = a => {
2196
- gc = a;
2197
- ec.length && gc && gc(fc);
2194
+ k.flushPendingDeletes = ec;
2195
+ k.setDelayFunction = a => {
2196
+ fc = a;
2197
+ dc.length && fc && fc(ec);
2198
2198
  };
2199
- tc = l.InternalError = class extends Error {
2199
+ sc = k.InternalError = class extends Error {
2200
2200
  constructor(a) {
2201
2201
  super(a);
2202
2202
  this.name = "InternalError";
2203
2203
  }
2204
2204
  };
2205
- Object.assign(Dc.prototype, {isAliasOf:function(a) {
2206
- if (!(this instanceof Dc && a instanceof Dc)) {
2205
+ Object.assign(Cc.prototype, {isAliasOf:function(a) {
2206
+ if (!(this instanceof Cc && a instanceof Cc)) {
2207
2207
  return !1;
2208
2208
  }
2209
- var b = this.g.u.i, c = this.g.o;
2209
+ var b = this.g.s.h, c = this.g.m;
2210
2210
  a.g = a.g;
2211
- var d = a.g.u.i;
2212
- for (a = a.g.o; b.B;) {
2213
- c = b.oa(c), b = b.B;
2211
+ var d = a.g.s.h;
2212
+ for (a = a.g.m; b.A;) {
2213
+ c = b.ka(c), b = b.A;
2214
2214
  }
2215
- for (; d.B;) {
2216
- a = d.oa(a), d = d.B;
2215
+ for (; d.A;) {
2216
+ a = d.ka(a), d = d.A;
2217
2217
  }
2218
2218
  return b === d && c === a;
2219
2219
  }, clone:function() {
2220
- this.g.o || Cc(this);
2221
- if (this.g.ja) {
2220
+ this.g.m || Bc(this);
2221
+ if (this.g.fa) {
2222
2222
  return this.g.count.value += 1, this;
2223
2223
  }
2224
- var a = uc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
2225
- a = a(c.call(b, d, {g:{value:{count:e.count, ha:e.ha, ja:e.ja, o:e.o, u:e.u, D:e.D, J:e.J,},}}));
2224
+ var a = tc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
2225
+ a = a(c.call(b, d, {g:{value:{count:e.count, ea:e.ea, fa:e.fa, m:e.m, s:e.s, B:e.B, G:e.G,},}}));
2226
2226
  a.g.count.value += 1;
2227
- a.g.ha = !1;
2227
+ a.g.ea = !1;
2228
2228
  return a;
2229
2229
  }, ["delete"]() {
2230
- this.g.o || Cc(this);
2231
- if (this.g.ha && !this.g.ja) {
2230
+ this.g.m || Bc(this);
2231
+ if (this.g.ea && !this.g.fa) {
2232
2232
  throw new P("Object already scheduled for deletion");
2233
2233
  }
2234
- oc(this);
2234
+ nc(this);
2235
2235
  var a = this.g;
2236
2236
  --a.count.value;
2237
- 0 === a.count.value && (a.D ? a.J.O(a.D) : a.u.i.O(a.o));
2238
- this.g.ja || (this.g.D = void 0, this.g.o = void 0);
2237
+ 0 === a.count.value && (a.B ? a.G.L(a.B) : a.s.h.L(a.m));
2238
+ this.g.fa || (this.g.B = void 0, this.g.m = void 0);
2239
2239
  }, isDeleted:function() {
2240
- return !this.g.o;
2240
+ return !this.g.m;
2241
2241
  }, deleteLater:function() {
2242
- this.g.o || Cc(this);
2243
- if (this.g.ha && !this.g.ja) {
2242
+ this.g.m || Bc(this);
2243
+ if (this.g.ea && !this.g.fa) {
2244
2244
  throw new P("Object already scheduled for deletion");
2245
2245
  }
2246
- ec.push(this);
2247
- 1 === ec.length && gc && gc(fc);
2248
- this.g.ha = !0;
2246
+ dc.push(this);
2247
+ 1 === dc.length && fc && fc(ec);
2248
+ this.g.ea = !0;
2249
2249
  return this;
2250
2250
  },});
2251
- Object.assign(Nc.prototype, {Qb(a) {
2252
- this.rb && (a = this.rb(a));
2251
+ Object.assign(Mc.prototype, {Gb(a) {
2252
+ this.jb && (a = this.jb(a));
2253
2253
  return a;
2254
- }, cb(a) {
2255
- this.O?.(a);
2256
- }, argPackAdvance:8, readValueFromPointer:yc, fromWireType:function(a) {
2254
+ }, Va(a) {
2255
+ this.L?.(a);
2256
+ }, argPackAdvance:8, readValueFromPointer:xc, fromWireType:function(a) {
2257
2257
  function b() {
2258
- return this.xa ? vc(this.i.M, {u:this.cc, o:c, J:this, D:a,}) : vc(this.i.M, {u:this, o:a,});
2258
+ return this.ta ? uc(this.h.J, {s:this.Tb, m:c, G:this, B:a,}) : uc(this.h.J, {s:this, m:a,});
2259
2259
  }
2260
- var c = this.Qb(a);
2260
+ var c = this.Gb(a);
2261
2261
  if (!c) {
2262
- return this.cb(a), null;
2262
+ return this.Va(a), null;
2263
2263
  }
2264
- var d = sc(this.i, c);
2264
+ var d = rc(this.h, c);
2265
2265
  if (void 0 !== d) {
2266
2266
  if (0 === d.g.count.value) {
2267
- return d.g.o = c, d.g.D = a, d.clone();
2267
+ return d.g.m = c, d.g.B = a, d.clone();
2268
2268
  }
2269
2269
  d = d.clone();
2270
- this.cb(a);
2270
+ this.Va(a);
2271
2271
  return d;
2272
2272
  }
2273
- d = this.i.Pb(c);
2274
- d = rc[d];
2273
+ d = this.h.Fb(c);
2274
+ d = qc[d];
2275
2275
  if (!d) {
2276
2276
  return b.call(this);
2277
2277
  }
2278
- d = this.wa ? d.Ib : d.pointerType;
2279
- var e = qc(c, this.i, d.i);
2280
- return null === e ? b.call(this) : this.xa ? vc(d.i.M, {u:d, o:e, J:this, D:a,}) : vc(d.i.M, {u:d, o:e,});
2278
+ d = this.sa ? d.yb : d.pointerType;
2279
+ var e = pc(c, this.h, d.h);
2280
+ return null === e ? b.call(this) : this.ta ? uc(d.h.J, {s:d, m:e, G:this, B:a,}) : uc(d.h.J, {s:d, m:e,});
2281
2281
  },});
2282
- Uc = l.UnboundTypeError = bc("UnboundTypeError");
2283
- for (var W, ce = 0; 32 > ce; ++ce) {
2284
- Rd.push(Array(ce));
2282
+ Tc = k.UnboundTypeError = ac("UnboundTypeError");
2283
+ for (var W, be = 0; 32 > be; ++be) {
2284
+ Qd.push(Array(be));
2285
2285
  }
2286
- var ee = {__syscall_fcntl64:function(a, b, c) {
2287
- Wa = c;
2286
+ var de = {__syscall_fcntl64:function(a, b, c) {
2287
+ Va = c;
2288
2288
  try {
2289
- var d = Kb(a);
2289
+ var d = Jb(a);
2290
2290
  switch(b) {
2291
2291
  case 0:
2292
- var e = Va();
2292
+ var e = Ua();
2293
2293
  if (0 > e) {
2294
2294
  break;
2295
2295
  }
2296
- for (; xb[e];) {
2296
+ for (; wb[e];) {
2297
2297
  e++;
2298
2298
  }
2299
- return Mb(d, e).W;
2299
+ return Lb(d, e).T;
2300
2300
  case 1:
2301
2301
  case 2:
2302
2302
  return 0;
2303
2303
  case 3:
2304
2304
  return d.flags;
2305
2305
  case 4:
2306
- return e = Va(), d.flags |= e, 0;
2306
+ return e = Ua(), d.flags |= e, 0;
2307
2307
  case 12:
2308
- return e = Va(), E[e + 0 >> 1] = 2, 0;
2308
+ return e = Ua(), E[e + 0 >> 1] = 2, 0;
2309
2309
  case 13:
2310
2310
  case 14:
2311
2311
  return 0;
2312
2312
  }
2313
2313
  return -28;
2314
2314
  } catch (f) {
2315
- if ("undefined" == typeof Yb || "ErrnoError" !== f.name) {
2315
+ if ("undefined" == typeof Xb || "ErrnoError" !== f.name) {
2316
2316
  throw f;
2317
2317
  }
2318
- return -f.aa;
2318
+ return -f.Y;
2319
2319
  }
2320
2320
  }, __syscall_ioctl:function(a, b, c) {
2321
- Wa = c;
2321
+ Va = c;
2322
2322
  try {
2323
- var d = Kb(a);
2323
+ var d = Jb(a);
2324
2324
  switch(b) {
2325
2325
  case 21509:
2326
- return d.s ? 0 : -59;
2326
+ return d.o ? 0 : -59;
2327
2327
  case 21505:
2328
- if (!d.s) {
2328
+ if (!d.o) {
2329
2329
  return -59;
2330
2330
  }
2331
- if (d.s.V.Xb) {
2331
+ if (d.o.S.Nb) {
2332
2332
  a = [3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,];
2333
- var e = Va();
2333
+ var e = Ua();
2334
2334
  F[e >> 2] = 25856;
2335
2335
  F[e + 4 >> 2] = 5;
2336
2336
  F[e + 8 >> 2] = 191;
2337
2337
  F[e + 12 >> 2] = 35387;
2338
2338
  for (var f = 0; 32 > f; f++) {
2339
- B[e + f + 17] = a[f] || 0;
2339
+ C[e + f + 17] = a[f] || 0;
2340
2340
  }
2341
2341
  }
2342
2342
  return 0;
2343
2343
  case 21510:
2344
2344
  case 21511:
2345
2345
  case 21512:
2346
- return d.s ? 0 : -59;
2346
+ return d.o ? 0 : -59;
2347
2347
  case 21506:
2348
2348
  case 21507:
2349
2349
  case 21508:
2350
- if (!d.s) {
2350
+ if (!d.o) {
2351
2351
  return -59;
2352
2352
  }
2353
- if (d.s.V.Yb) {
2354
- for (e = Va(), a = [], f = 0; 32 > f; f++) {
2355
- a.push(B[e + f + 17]);
2353
+ if (d.o.S.Ob) {
2354
+ for (e = Ua(), a = [], f = 0; 32 > f; f++) {
2355
+ a.push(C[e + f + 17]);
2356
2356
  }
2357
2357
  }
2358
2358
  return 0;
2359
2359
  case 21519:
2360
- if (!d.s) {
2360
+ if (!d.o) {
2361
2361
  return -59;
2362
2362
  }
2363
- e = Va();
2363
+ e = Ua();
2364
2364
  return F[e >> 2] = 0;
2365
2365
  case 21520:
2366
- return d.s ? -28 : -59;
2366
+ return d.o ? -28 : -59;
2367
2367
  case 21531:
2368
- e = Va();
2369
- if (!d.m.Wb) {
2368
+ e = Ua();
2369
+ if (!d.l.Mb) {
2370
2370
  throw new M(59);
2371
2371
  }
2372
- return d.m.Wb(d, b, e);
2372
+ return d.l.Mb(d, b, e);
2373
2373
  case 21523:
2374
- if (!d.s) {
2374
+ if (!d.o) {
2375
2375
  return -59;
2376
2376
  }
2377
- d.s.V.Zb && (f = [24, 80], e = Va(), E[e >> 1] = f[0], E[e + 2 >> 1] = f[1]);
2377
+ d.o.S.Pb && (f = [24, 80], e = Ua(), E[e >> 1] = f[0], E[e + 2 >> 1] = f[1]);
2378
2378
  return 0;
2379
2379
  case 21524:
2380
- return d.s ? 0 : -59;
2380
+ return d.o ? 0 : -59;
2381
2381
  case 21515:
2382
- return d.s ? 0 : -59;
2382
+ return d.o ? 0 : -59;
2383
2383
  default:
2384
2384
  return -28;
2385
2385
  }
2386
2386
  } catch (g) {
2387
- if ("undefined" == typeof Yb || "ErrnoError" !== g.name) {
2387
+ if ("undefined" == typeof Xb || "ErrnoError" !== g.name) {
2388
2388
  throw g;
2389
2389
  }
2390
- return -g.aa;
2390
+ return -g.Y;
2391
2391
  }
2392
2392
  }, __syscall_openat:function(a, b, c, d) {
2393
- Wa = d;
2393
+ Va = d;
2394
2394
  try {
2395
2395
  b = b ? L(D, b) : "";
2396
2396
  var e = b;
2397
2397
  if ("/" === e.charAt(0)) {
2398
2398
  b = e;
2399
2399
  } else {
2400
- var f = -100 === a ? "/" : Kb(a).path;
2400
+ var f = -100 === a ? "/" : Jb(a).path;
2401
2401
  if (0 == e.length) {
2402
2402
  throw new M(44);
2403
2403
  }
2404
- b = Ya(f + "/" + e);
2404
+ b = Xa(f + "/" + e);
2405
2405
  }
2406
- var g = d ? Va() : 0;
2407
- return Sb(b, c, g).W;
2408
- } catch (k) {
2409
- if ("undefined" == typeof Yb || "ErrnoError" !== k.name) {
2410
- throw k;
2406
+ var g = d ? Ua() : 0;
2407
+ return Rb(b, c, g).T;
2408
+ } catch (h) {
2409
+ if ("undefined" == typeof Xb || "ErrnoError" !== h.name) {
2410
+ throw h;
2411
2411
  }
2412
- return -k.aa;
2412
+ return -h.Y;
2413
2413
  }
2414
2414
  }, _abort_js:() => {
2415
- Ha("");
2415
+ Ga("");
2416
2416
  }, _embind_create_inheriting_constructor:(a, b, c) => {
2417
2417
  a = R(a);
2418
- b = nc(b, "wrapper");
2418
+ b = mc(b, "wrapper");
2419
2419
  c = Q(c);
2420
- var d = b.i, e = d.M, f = d.B.M, g = d.B.constructor;
2421
- a = Zb(a, function(...k) {
2422
- d.B.pb.forEach(function(n) {
2423
- if (this[n] === f[n]) {
2424
- throw new cc(`Pure virtual function ${n} must be implemented in JavaScript`);
2420
+ var d = b.h, e = d.J, f = d.A.J, g = d.A.constructor;
2421
+ a = Yb(a, function(...h) {
2422
+ d.A.hb.forEach(function(m) {
2423
+ if (this[m] === f[m]) {
2424
+ throw new bc(`Pure virtual function ${m} must be implemented in JavaScript`);
2425
2425
  }
2426
2426
  }.bind(this));
2427
2427
  Object.defineProperty(this, "__parent", {value:e});
2428
- this.__construct(...k);
2428
+ this.__construct(...h);
2429
2429
  });
2430
- e.__construct = function(...k) {
2430
+ e.__construct = function(...h) {
2431
2431
  if (this === e) {
2432
2432
  throw new P("Pass correct 'this' to __construct");
2433
2433
  }
2434
- k = g.implement(this, ...k);
2435
- oc(k);
2436
- var n = k.g;
2437
- k.notifyOnDestruction();
2438
- n.ja = !0;
2439
- Object.defineProperties(this, {g:{value:n}});
2440
- uc(this);
2441
- k = n.o;
2442
- k = ic(d, k);
2443
- if (hc.hasOwnProperty(k)) {
2444
- throw new P(`Tried to register registered instance: ${k}`);
2445
- }
2446
- hc[k] = this;
2434
+ h = g.implement(this, ...h);
2435
+ nc(h);
2436
+ var m = h.g;
2437
+ h.notifyOnDestruction();
2438
+ m.fa = !0;
2439
+ Object.defineProperties(this, {g:{value:m}});
2440
+ tc(this);
2441
+ h = m.m;
2442
+ h = hc(d, h);
2443
+ if (gc.hasOwnProperty(h)) {
2444
+ throw new P(`Tried to register registered instance: ${h}`);
2445
+ }
2446
+ gc[h] = this;
2447
2447
  };
2448
2448
  e.__destruct = function() {
2449
2449
  if (this === e) {
2450
2450
  throw new P("Pass correct 'this' to __destruct");
2451
2451
  }
2452
- oc(this);
2453
- var k = this.g.o;
2454
- k = ic(d, k);
2455
- if (hc.hasOwnProperty(k)) {
2456
- delete hc[k];
2452
+ nc(this);
2453
+ var h = this.g.m;
2454
+ h = hc(d, h);
2455
+ if (gc.hasOwnProperty(h)) {
2456
+ delete gc[h];
2457
2457
  } else {
2458
- throw new P(`Tried to unregister unregistered instance: ${k}`);
2458
+ throw new P(`Tried to unregister unregistered instance: ${h}`);
2459
2459
  }
2460
2460
  };
2461
2461
  a.prototype = Object.create(e);
2462
2462
  Object.assign(a.prototype, c);
2463
- return ac(a);
2463
+ return $b(a);
2464
2464
  }, _embind_finalize_value_object:a => {
2465
- var b = wc[a];
2466
- delete wc[a];
2467
- var c = b.Ua, d = b.O, e = b.fb, f = e.map(g => g.Tb).concat(e.map(g => g.fc));
2465
+ var b = vc[a];
2466
+ delete vc[a];
2467
+ var c = b.Na, d = b.L, e = b.Xa, f = e.map(g => g.Jb).concat(e.map(g => g.Wb));
2468
2468
  T([a], f, g => {
2469
- var k = {};
2470
- e.forEach((n, m) => {
2471
- var t = g[m], v = n.Rb, x = n.Sb, p = g[m + e.length], r = n.ec, u = n.hc;
2472
- k[n.Nb] = {read:z => t.fromWireType(v(x, z)), write:(z, A) => {
2473
- var C = [];
2474
- r(u, z, p.toWireType(C, A));
2475
- xc(C);
2469
+ var h = {};
2470
+ e.forEach((m, l) => {
2471
+ var r = g[l], u = m.Hb, w = m.Ib, n = g[l + e.length], q = m.Vb, t = m.Xb;
2472
+ h[m.Db] = {read:y => r.fromWireType(u(w, y)), write:(y, z) => {
2473
+ var B = [];
2474
+ q(t, y, n.toWireType(B, z));
2475
+ wc(B);
2476
2476
  }};
2477
2477
  });
2478
- return [{name:b.name, fromWireType:n => {
2479
- var m = {}, t;
2480
- for (t in k) {
2481
- m[t] = k[t].read(n);
2478
+ return [{name:b.name, fromWireType:m => {
2479
+ var l = {}, r;
2480
+ for (r in h) {
2481
+ l[r] = h[r].read(m);
2482
2482
  }
2483
- d(n);
2484
- return m;
2485
- }, toWireType:(n, m) => {
2486
- for (var t in k) {
2487
- if (!(t in m)) {
2488
- throw new TypeError(`Missing field: "${t}"`);
2483
+ d(m);
2484
+ return l;
2485
+ }, toWireType:(m, l) => {
2486
+ for (var r in h) {
2487
+ if (!(r in l)) {
2488
+ throw new TypeError(`Missing field: "${r}"`);
2489
2489
  }
2490
2490
  }
2491
- var v = c();
2492
- for (t in k) {
2493
- k[t].write(v, m[t]);
2491
+ var u = c();
2492
+ for (r in h) {
2493
+ h[r].write(u, l[r]);
2494
2494
  }
2495
- null !== n && n.push(d, v);
2496
- return v;
2497
- }, argPackAdvance:8, readValueFromPointer:yc, L:d,}];
2495
+ null !== m && m.push(d, u);
2496
+ return u;
2497
+ }, argPackAdvance:8, readValueFromPointer:xc, I:d,}];
2498
2498
  });
2499
2499
  }, _embind_register_bigint:() => {
2500
2500
  }, _embind_register_bool:(a, b, c, d) => {
@@ -2505,378 +2505,378 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
2505
2505
  return f ? c : d;
2506
2506
  }, argPackAdvance:8, readValueFromPointer:function(e) {
2507
2507
  return this.fromWireType(D[e]);
2508
- }, L:null,});
2509
- }, _embind_register_class:(a, b, c, d, e, f, g, k, n, m, t, v, x) => {
2510
- t = R(t);
2508
+ }, I:null,});
2509
+ }, _embind_register_class:(a, b, c, d, e, f, g, h, m, l, r, u, w) => {
2510
+ r = R(r);
2511
2511
  f = U(e, f);
2512
- k &&= U(g, k);
2513
- m &&= U(n, m);
2514
- x = U(v, x);
2515
- var p = Gc(t);
2516
- Fc(p, function() {
2517
- Vc(`Cannot construct ${t} due to unbound types`, [d]);
2512
+ h &&= U(g, h);
2513
+ l &&= U(m, l);
2514
+ w = U(u, w);
2515
+ var n = Fc(r);
2516
+ Ec(n, function() {
2517
+ Uc(`Cannot construct ${r} due to unbound types`, [d]);
2518
2518
  });
2519
- T([a, b, c], d ? [d] : [], r => {
2520
- r = r[0];
2519
+ T([a, b, c], d ? [d] : [], q => {
2520
+ q = q[0];
2521
2521
  if (d) {
2522
- var u = r.i;
2523
- var z = u.M;
2522
+ var t = q.h;
2523
+ var y = t.J;
2524
2524
  } else {
2525
- z = Dc.prototype;
2525
+ y = Cc.prototype;
2526
2526
  }
2527
- r = Zb(t, function(...J) {
2528
- if (Object.getPrototypeOf(this) !== A) {
2529
- throw new P("Use 'new' to construct " + t);
2527
+ q = Yb(r, function(...I) {
2528
+ if (Object.getPrototypeOf(this) !== z) {
2529
+ throw new P("Use 'new' to construct " + r);
2530
2530
  }
2531
- if (void 0 === C.$) {
2532
- throw new P(t + " has no accessible constructor");
2531
+ if (void 0 === B.X) {
2532
+ throw new P(r + " has no accessible constructor");
2533
2533
  }
2534
- var K = C.$[J.length];
2535
- if (void 0 === K) {
2536
- throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${J.length}) - expected (${Object.keys(C.$).toString()}) parameters instead!`);
2534
+ var J = B.X[I.length];
2535
+ if (void 0 === J) {
2536
+ throw new P(`Tried to invoke ctor of ${r} with invalid number of parameters (${I.length}) - expected (${Object.keys(B.X).toString()}) parameters instead!`);
2537
2537
  }
2538
- return K.apply(this, J);
2538
+ return J.apply(this, I);
2539
2539
  });
2540
- var A = Object.create(z, {constructor:{value:r},});
2541
- r.prototype = A;
2542
- var C = new Hc(t, r, A, x, u, f, k, m);
2543
- if (C.B) {
2544
- var H;
2545
- (H = C.B).pa ?? (H.pa = []);
2546
- C.B.pa.push(C);
2547
- }
2548
- u = new Nc(t, C, !0, !1, !1);
2549
- H = new Nc(t + "*", C, !1, !1, !1);
2550
- z = new Nc(t + " const*", C, !1, !0, !1);
2551
- rc[a] = {pointerType:H, Ib:z};
2552
- Oc(p, r);
2553
- return [u, H, z];
2540
+ var z = Object.create(y, {constructor:{value:q},});
2541
+ q.prototype = z;
2542
+ var B = new Gc(r, q, z, w, t, f, h, l);
2543
+ if (B.A) {
2544
+ var G;
2545
+ (G = B.A).la ?? (G.la = []);
2546
+ B.A.la.push(B);
2547
+ }
2548
+ t = new Mc(r, B, !0, !1, !1);
2549
+ G = new Mc(r + "*", B, !1, !1, !1);
2550
+ y = new Mc(r + " const*", B, !1, !0, !1);
2551
+ qc[a] = {pointerType:G, yb:y};
2552
+ Nc(n, q);
2553
+ return [t, G, y];
2554
2554
  });
2555
2555
  }, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
2556
- var k = Yc(c, d);
2556
+ var h = Xc(c, d);
2557
2557
  b = R(b);
2558
- b = Zc(b);
2558
+ b = Yc(b);
2559
2559
  f = U(e, f);
2560
- T([], [a], n => {
2561
- function m() {
2562
- Vc(`Cannot call ${t} due to unbound types`, k);
2560
+ T([], [a], m => {
2561
+ function l() {
2562
+ Uc(`Cannot call ${r} due to unbound types`, h);
2563
2563
  }
2564
- n = n[0];
2565
- var t = `${n.name}.${b}`;
2564
+ m = m[0];
2565
+ var r = `${m.name}.${b}`;
2566
2566
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2567
- var v = n.i.constructor;
2568
- void 0 === v[b] ? (m.ga = c - 1, v[b] = m) : (Ec(v, b, t), v[b].A[c - 1] = m);
2569
- T([], k, x => {
2570
- x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
2571
- void 0 === v[b].A ? (x.ga = c - 1, v[b] = x) : v[b].A[c - 1] = x;
2572
- if (n.i.pa) {
2573
- for (const p of n.i.pa) {
2574
- p.constructor.hasOwnProperty(b) || (p.constructor[b] = x);
2567
+ var u = m.h.constructor;
2568
+ void 0 === u[b] ? (l.da = c - 1, u[b] = l) : (Dc(u, b, r), u[b].v[c - 1] = l);
2569
+ T([], h, w => {
2570
+ w = Wc(r, [w[0], null].concat(w.slice(1)), null, f, g);
2571
+ void 0 === u[b].v ? (w.da = c - 1, u[b] = w) : u[b].v[c - 1] = w;
2572
+ if (m.h.la) {
2573
+ for (const n of m.h.la) {
2574
+ n.constructor.hasOwnProperty(b) || (n.constructor[b] = w);
2575
2575
  }
2576
2576
  }
2577
2577
  return [];
2578
2578
  });
2579
2579
  return [];
2580
2580
  });
2581
- }, _embind_register_class_class_property:(a, b, c, d, e, f, g, k) => {
2581
+ }, _embind_register_class_class_property:(a, b, c, d, e, f, g, h) => {
2582
2582
  b = R(b);
2583
2583
  f = U(e, f);
2584
- T([], [a], n => {
2585
- n = n[0];
2586
- var m = `${n.name}.${b}`, t = {get() {
2587
- Vc(`Cannot access ${m} due to unbound types`, [c]);
2584
+ T([], [a], m => {
2585
+ m = m[0];
2586
+ var l = `${m.name}.${b}`, r = {get() {
2587
+ Uc(`Cannot access ${l} due to unbound types`, [c]);
2588
2588
  }, enumerable:!0, configurable:!0};
2589
- t.set = k ? () => {
2590
- Vc(`Cannot access ${m} due to unbound types`, [c]);
2589
+ r.set = h ? () => {
2590
+ Uc(`Cannot access ${l} due to unbound types`, [c]);
2591
2591
  } : () => {
2592
- throw new P(`${m} is a read-only property`);
2592
+ throw new P(`${l} is a read-only property`);
2593
2593
  };
2594
- Object.defineProperty(n.i.constructor, b, t);
2595
- T([], [c], v => {
2596
- v = v[0];
2597
- var x = {get() {
2598
- return v.fromWireType(f(d));
2594
+ Object.defineProperty(m.h.constructor, b, r);
2595
+ T([], [c], u => {
2596
+ u = u[0];
2597
+ var w = {get() {
2598
+ return u.fromWireType(f(d));
2599
2599
  }, enumerable:!0};
2600
- k && (k = U(g, k), x.set = p => {
2601
- var r = [];
2602
- k(d, v.toWireType(r, p));
2603
- xc(r);
2600
+ h && (h = U(g, h), w.set = n => {
2601
+ var q = [];
2602
+ h(d, u.toWireType(q, n));
2603
+ wc(q);
2604
2604
  });
2605
- Object.defineProperty(n.i.constructor, b, x);
2605
+ Object.defineProperty(m.h.constructor, b, w);
2606
2606
  return [];
2607
2607
  });
2608
2608
  return [];
2609
2609
  });
2610
2610
  }, _embind_register_class_constructor:(a, b, c, d, e, f) => {
2611
- var g = Yc(b, c);
2611
+ var g = Xc(b, c);
2612
2612
  e = U(d, e);
2613
- T([], [a], k => {
2614
- k = k[0];
2615
- var n = `constructor ${k.name}`;
2616
- void 0 === k.i.$ && (k.i.$ = []);
2617
- if (void 0 !== k.i.$[b - 1]) {
2618
- throw new P(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2619
- }
2620
- k.i.$[b - 1] = () => {
2621
- Vc(`Cannot construct ${k.name} due to unbound types`, g);
2613
+ T([], [a], h => {
2614
+ h = h[0];
2615
+ var m = `constructor ${h.name}`;
2616
+ void 0 === h.h.X && (h.h.X = []);
2617
+ if (void 0 !== h.h.X[b - 1]) {
2618
+ throw new P(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${h.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2619
+ }
2620
+ h.h.X[b - 1] = () => {
2621
+ Uc(`Cannot construct ${h.name} due to unbound types`, g);
2622
2622
  };
2623
- T([], g, m => {
2624
- m.splice(1, 0, null);
2625
- k.i.$[b - 1] = Xc(n, m, null, e, f);
2623
+ T([], g, l => {
2624
+ l.splice(1, 0, null);
2625
+ h.h.X[b - 1] = Wc(m, l, null, e, f);
2626
2626
  return [];
2627
2627
  });
2628
2628
  return [];
2629
2629
  });
2630
- }, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
2631
- var n = Yc(c, d);
2630
+ }, _embind_register_class_function:(a, b, c, d, e, f, g, h) => {
2631
+ var m = Xc(c, d);
2632
2632
  b = R(b);
2633
- b = Zc(b);
2633
+ b = Yc(b);
2634
2634
  f = U(e, f);
2635
- T([], [a], m => {
2636
- function t() {
2637
- Vc(`Cannot call ${v} due to unbound types`, n);
2635
+ T([], [a], l => {
2636
+ function r() {
2637
+ Uc(`Cannot call ${u} due to unbound types`, m);
2638
2638
  }
2639
- m = m[0];
2640
- var v = `${m.name}.${b}`;
2639
+ l = l[0];
2640
+ var u = `${l.name}.${b}`;
2641
2641
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2642
- k && m.i.pb.push(b);
2643
- var x = m.i.M, p = x[b];
2644
- void 0 === p || void 0 === p.A && p.className !== m.name && p.ga === c - 2 ? (t.ga = c - 2, t.className = m.name, x[b] = t) : (Ec(x, b, v), x[b].A[c - 2] = t);
2645
- T([], n, r => {
2646
- r = Xc(v, r, m, f, g);
2647
- void 0 === x[b].A ? (r.ga = c - 2, x[b] = r) : x[b].A[c - 2] = r;
2642
+ h && l.h.hb.push(b);
2643
+ var w = l.h.J, n = w[b];
2644
+ void 0 === n || void 0 === n.v && n.className !== l.name && n.da === c - 2 ? (r.da = c - 2, r.className = l.name, w[b] = r) : (Dc(w, b, u), w[b].v[c - 2] = r);
2645
+ T([], m, q => {
2646
+ q = Wc(u, q, l, f, g);
2647
+ void 0 === w[b].v ? (q.da = c - 2, w[b] = q) : w[b].v[c - 2] = q;
2648
2648
  return [];
2649
2649
  });
2650
2650
  return [];
2651
2651
  });
2652
- }, _embind_register_class_property:(a, b, c, d, e, f, g, k, n, m) => {
2652
+ }, _embind_register_class_property:(a, b, c, d, e, f, g, h, m, l) => {
2653
2653
  b = R(b);
2654
2654
  e = U(d, e);
2655
- T([], [a], t => {
2656
- t = t[0];
2657
- var v = `${t.name}.${b}`, x = {get() {
2658
- Vc(`Cannot access ${v} due to unbound types`, [c, g]);
2655
+ T([], [a], r => {
2656
+ r = r[0];
2657
+ var u = `${r.name}.${b}`, w = {get() {
2658
+ Uc(`Cannot access ${u} due to unbound types`, [c, g]);
2659
2659
  }, enumerable:!0, configurable:!0};
2660
- x.set = n ? () => Vc(`Cannot access ${v} due to unbound types`, [c, g]) : () => {
2661
- throw new P(v + " is a read-only property");
2660
+ w.set = m ? () => Uc(`Cannot access ${u} due to unbound types`, [c, g]) : () => {
2661
+ throw new P(u + " is a read-only property");
2662
2662
  };
2663
- Object.defineProperty(t.i.M, b, x);
2664
- T([], n ? [c, g] : [c], p => {
2665
- var r = p[0], u = {get() {
2666
- var A = $c(this, t, v + " getter");
2667
- return r.fromWireType(e(f, A));
2663
+ Object.defineProperty(r.h.J, b, w);
2664
+ T([], m ? [c, g] : [c], n => {
2665
+ var q = n[0], t = {get() {
2666
+ var z = Zc(this, r, u + " getter");
2667
+ return q.fromWireType(e(f, z));
2668
2668
  }, enumerable:!0};
2669
- if (n) {
2670
- n = U(k, n);
2671
- var z = p[1];
2672
- u.set = function(A) {
2673
- var C = $c(this, t, v + " setter"), H = [];
2674
- n(m, C, z.toWireType(H, A));
2675
- xc(H);
2669
+ if (m) {
2670
+ m = U(h, m);
2671
+ var y = n[1];
2672
+ t.set = function(z) {
2673
+ var B = Zc(this, r, u + " setter"), G = [];
2674
+ m(l, B, y.toWireType(G, z));
2675
+ wc(G);
2676
2676
  };
2677
2677
  }
2678
- Object.defineProperty(t.i.M, b, u);
2678
+ Object.defineProperty(r.h.J, b, t);
2679
2679
  return [];
2680
2680
  });
2681
2681
  return [];
2682
2682
  });
2683
- }, _embind_register_emval:a => S(a, bd), _embind_register_enum:(a, b, c, d) => {
2683
+ }, _embind_register_emval:a => S(a, ad), _embind_register_enum:(a, b, c, d) => {
2684
2684
  function e() {
2685
2685
  }
2686
2686
  b = R(b);
2687
2687
  e.values = {};
2688
2688
  S(a, {name:b, constructor:e, fromWireType:function(f) {
2689
2689
  return this.constructor.values[f];
2690
- }, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:cd(b, c, d), L:null,});
2691
- Fc(b, e);
2690
+ }, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:bd(b, c, d), I:null,});
2691
+ Ec(b, e);
2692
2692
  }, _embind_register_enum_value:(a, b, c) => {
2693
- var d = nc(a, "enum");
2693
+ var d = mc(a, "enum");
2694
2694
  b = R(b);
2695
2695
  a = d.constructor;
2696
- d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Zb(`${d.name}_${b}`, function() {
2696
+ d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Yb(`${d.name}_${b}`, function() {
2697
2697
  })},});
2698
2698
  a.values[c] = d;
2699
2699
  a[b] = d;
2700
2700
  }, _embind_register_float:(a, b, c) => {
2701
2701
  b = R(b);
2702
- S(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:dd(b, c), L:null,});
2702
+ S(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:cd(b, c), I:null,});
2703
2703
  }, _embind_register_function:(a, b, c, d, e, f) => {
2704
- var g = Yc(b, c);
2704
+ var g = Xc(b, c);
2705
2705
  a = R(a);
2706
- a = Zc(a);
2706
+ a = Yc(a);
2707
2707
  e = U(d, e);
2708
- Fc(a, function() {
2709
- Vc(`Cannot call ${a} due to unbound types`, g);
2708
+ Ec(a, function() {
2709
+ Uc(`Cannot call ${a} due to unbound types`, g);
2710
2710
  }, b - 1);
2711
- T([], g, k => {
2712
- Oc(a, Xc(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
2711
+ T([], g, h => {
2712
+ Nc(a, Wc(a, [h[0], null].concat(h.slice(1)), null, e, f), b - 1);
2713
2713
  return [];
2714
2714
  });
2715
2715
  }, _embind_register_integer:(a, b, c, d, e) => {
2716
2716
  b = R(b);
2717
2717
  -1 === e && (e = 4294967295);
2718
- e = k => k;
2718
+ e = h => h;
2719
2719
  if (0 === d) {
2720
2720
  var f = 32 - 8 * c;
2721
- e = k => k << f >>> f;
2721
+ e = h => h << f >>> f;
2722
2722
  }
2723
- var g = b.includes("unsigned") ? function(k, n) {
2724
- return n >>> 0;
2725
- } : function(k, n) {
2726
- return n;
2723
+ var g = b.includes("unsigned") ? function(h, m) {
2724
+ return m >>> 0;
2725
+ } : function(h, m) {
2726
+ return m;
2727
2727
  };
2728
- S(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:ed(b, c, 0 !== d), L:null,});
2728
+ S(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:dd(b, c, 0 !== d), I:null,});
2729
2729
  }, _embind_register_memory_view:(a, b, c) => {
2730
2730
  function d(f) {
2731
- return new e(B.buffer, G[f + 4 >> 2], G[f >> 2]);
2731
+ return new e(C.buffer, K[f + 4 >> 2], K[f >> 2]);
2732
2732
  }
2733
2733
  var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
2734
2734
  c = R(c);
2735
- S(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Ub:!0,});
2735
+ S(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Kb:!0,});
2736
2736
  }, _embind_register_std_string:(a, b) => {
2737
2737
  b = R(b);
2738
2738
  var c = "std::string" === b;
2739
2739
  S(a, {name:b, fromWireType:function(d) {
2740
- var e = G[d >> 2], f = d + 4;
2740
+ var e = K[d >> 2], f = d + 4;
2741
2741
  if (c) {
2742
- for (var g = f, k = 0; k <= e; ++k) {
2743
- var n = f + k;
2744
- if (k == e || 0 == D[n]) {
2745
- g = g ? L(D, g, n - g) : "";
2746
- if (void 0 === m) {
2747
- var m = g;
2742
+ for (var g = f, h = 0; h <= e; ++h) {
2743
+ var m = f + h;
2744
+ if (h == e || 0 == D[m]) {
2745
+ g = g ? L(D, g, m - g) : "";
2746
+ if (void 0 === l) {
2747
+ var l = g;
2748
2748
  } else {
2749
- m += String.fromCharCode(0), m += g;
2749
+ l += String.fromCharCode(0), l += g;
2750
2750
  }
2751
- g = n + 1;
2751
+ g = m + 1;
2752
2752
  }
2753
2753
  }
2754
2754
  } else {
2755
- m = Array(e);
2756
- for (k = 0; k < e; ++k) {
2757
- m[k] = String.fromCharCode(D[f + k]);
2755
+ l = Array(e);
2756
+ for (h = 0; h < e; ++h) {
2757
+ l[h] = String.fromCharCode(D[f + h]);
2758
2758
  }
2759
- m = m.join("");
2759
+ l = l.join("");
2760
2760
  }
2761
- lc(d);
2762
- return m;
2761
+ kc(d);
2762
+ return l;
2763
2763
  }, toWireType:function(d, e) {
2764
2764
  e instanceof ArrayBuffer && (e = new Uint8Array(e));
2765
2765
  var f = "string" == typeof e;
2766
2766
  if (!(f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array)) {
2767
2767
  throw new P("Cannot pass non-string to std::string");
2768
2768
  }
2769
- var g = c && f ? fb(e) : e.length;
2770
- var k = Ud(4 + g + 1), n = k + 4;
2771
- G[k >> 2] = g;
2769
+ var g = c && f ? eb(e) : e.length;
2770
+ var h = Td(4 + g + 1), m = h + 4;
2771
+ K[h >> 2] = g;
2772
2772
  if (c && f) {
2773
- gb(e, D, n, g + 1);
2773
+ fb(e, D, m, g + 1);
2774
2774
  } else {
2775
2775
  if (f) {
2776
2776
  for (f = 0; f < g; ++f) {
2777
- var m = e.charCodeAt(f);
2778
- if (255 < m) {
2779
- throw lc(n), new P("String has UTF-16 code units that do not fit in 8 bits");
2777
+ var l = e.charCodeAt(f);
2778
+ if (255 < l) {
2779
+ throw kc(m), new P("String has UTF-16 code units that do not fit in 8 bits");
2780
2780
  }
2781
- D[n + f] = m;
2781
+ D[m + f] = l;
2782
2782
  }
2783
2783
  } else {
2784
2784
  for (f = 0; f < g; ++f) {
2785
- D[n + f] = e[f];
2785
+ D[m + f] = e[f];
2786
2786
  }
2787
2787
  }
2788
2788
  }
2789
- null !== d && d.push(lc, k);
2790
- return k;
2791
- }, argPackAdvance:8, readValueFromPointer:yc, L(d) {
2792
- lc(d);
2789
+ null !== d && d.push(kc, h);
2790
+ return h;
2791
+ }, argPackAdvance:8, readValueFromPointer:xc, I(d) {
2792
+ kc(d);
2793
2793
  },});
2794
2794
  }, _embind_register_std_wstring:(a, b, c) => {
2795
2795
  c = R(c);
2796
2796
  if (2 === b) {
2797
- var d = gd;
2798
- var e = hd;
2799
- var f = jd;
2800
- var g = k => wa[k >> 1];
2797
+ var d = fd;
2798
+ var e = gd;
2799
+ var f = hd;
2800
+ var g = h => va[h >> 1];
2801
2801
  } else {
2802
- 4 === b && (d = kd, e = ld, f = md, g = k => G[k >> 2]);
2802
+ 4 === b && (d = jd, e = kd, f = ld, g = h => K[h >> 2]);
2803
2803
  }
2804
- S(a, {name:c, fromWireType:k => {
2805
- for (var n = G[k >> 2], m, t = k + 4, v = 0; v <= n; ++v) {
2806
- var x = k + 4 + v * b;
2807
- if (v == n || 0 == g(x)) {
2808
- t = d(t, x - t), void 0 === m ? m = t : (m += String.fromCharCode(0), m += t), t = x + b;
2804
+ S(a, {name:c, fromWireType:h => {
2805
+ for (var m = K[h >> 2], l, r = h + 4, u = 0; u <= m; ++u) {
2806
+ var w = h + 4 + u * b;
2807
+ if (u == m || 0 == g(w)) {
2808
+ r = d(r, w - r), void 0 === l ? l = r : (l += String.fromCharCode(0), l += r), r = w + b;
2809
2809
  }
2810
2810
  }
2811
- lc(k);
2812
- return m;
2813
- }, toWireType:(k, n) => {
2814
- if ("string" != typeof n) {
2811
+ kc(h);
2812
+ return l;
2813
+ }, toWireType:(h, m) => {
2814
+ if ("string" != typeof m) {
2815
2815
  throw new P(`Cannot pass non-string to C++ string type ${c}`);
2816
2816
  }
2817
- var m = f(n), t = Ud(4 + m + b);
2818
- G[t >> 2] = m / b;
2819
- e(n, t + 4, m + b);
2820
- null !== k && k.push(lc, t);
2821
- return t;
2822
- }, argPackAdvance:8, readValueFromPointer:yc, L(k) {
2823
- lc(k);
2817
+ var l = f(m), r = Td(4 + l + b);
2818
+ K[r >> 2] = l / b;
2819
+ e(m, r + 4, l + b);
2820
+ null !== h && h.push(kc, r);
2821
+ return r;
2822
+ }, argPackAdvance:8, readValueFromPointer:xc, I(h) {
2823
+ kc(h);
2824
2824
  }});
2825
2825
  }, _embind_register_value_object:(a, b, c, d, e, f) => {
2826
- wc[a] = {name:R(b), Ua:U(c, d), O:U(e, f), fb:[],};
2827
- }, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, n, m) => {
2828
- wc[a].fb.push({Nb:R(b), Tb:c, Rb:U(d, e), Sb:f, fc:g, ec:U(k, n), hc:m,});
2826
+ vc[a] = {name:R(b), Na:U(c, d), L:U(e, f), Xa:[],};
2827
+ }, _embind_register_value_object_field:(a, b, c, d, e, f, g, h, m, l) => {
2828
+ vc[a].Xa.push({Db:R(b), Jb:c, Hb:U(d, e), Ib:f, Wb:g, Vb:U(h, m), Xb:l,});
2829
2829
  }, _embind_register_void:(a, b) => {
2830
2830
  b = R(b);
2831
- S(a, {Jc:!0, name:b, argPackAdvance:0, fromWireType:() => {
2831
+ S(a, {yc:!0, name:b, argPackAdvance:0, fromWireType:() => {
2832
2832
  }, toWireType:() => {
2833
2833
  },});
2834
2834
  }, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => D.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
2835
2835
  throw Infinity;
2836
2836
  }, _emval_as:(a, b, c) => {
2837
2837
  a = Q(a);
2838
- b = nc(b, "emval::as");
2839
- return nd(b, c, a);
2838
+ b = mc(b, "emval::as");
2839
+ return md(b, c, a);
2840
2840
  }, _emval_call:(a, b, c, d) => {
2841
- a = od[a];
2841
+ a = nd[a];
2842
2842
  b = Q(b);
2843
2843
  return a(null, b, c, d);
2844
2844
  }, _emval_call_method:(a, b, c, d, e) => {
2845
- a = od[a];
2845
+ a = nd[a];
2846
2846
  b = Q(b);
2847
- c = qd(c);
2847
+ c = pd(c);
2848
2848
  return a(b, b[c], d, e);
2849
- }, _emval_decref:ad, _emval_get_method_caller:(a, b, c) => {
2850
- var d = sd(a, b), e = d.shift();
2849
+ }, _emval_decref:$c, _emval_get_method_caller:(a, b, c) => {
2850
+ var d = rd(a, b), e = d.shift();
2851
2851
  a--;
2852
2852
  var f = Array(a);
2853
2853
  b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
2854
- return rd(Zb(b, (g, k, n, m) => {
2855
- for (var t = 0, v = 0; v < a; ++v) {
2856
- f[v] = d[v].readValueFromPointer(m + t), t += d[v].argPackAdvance;
2854
+ return qd(Yb(b, (g, h, m, l) => {
2855
+ for (var r = 0, u = 0; u < a; ++u) {
2856
+ f[u] = d[u].readValueFromPointer(l + r), r += d[u].argPackAdvance;
2857
2857
  }
2858
- g = 1 === c ? td(k, f) : k.apply(g, f);
2859
- return nd(e, n, g);
2858
+ g = 1 === c ? sd(h, f) : h.apply(g, f);
2859
+ return md(e, m, g);
2860
2860
  }));
2861
2861
  }, _emval_get_property:(a, b) => {
2862
2862
  a = Q(a);
2863
2863
  b = Q(b);
2864
- return ac(a[b]);
2864
+ return $b(a[b]);
2865
2865
  }, _emval_incref:a => {
2866
2866
  9 < a && (O[a + 1] += 1);
2867
- }, _emval_new_array:() => ac([]), _emval_new_cstring:a => ac(qd(a)), _emval_new_object:() => ac({}), _emval_run_destructors:a => {
2867
+ }, _emval_new_array:() => $b([]), _emval_new_cstring:a => $b(pd(a)), _emval_new_object:() => $b({}), _emval_run_destructors:a => {
2868
2868
  var b = Q(a);
2869
- xc(b);
2870
- ad(a);
2869
+ wc(b);
2870
+ $c(a);
2871
2871
  }, _emval_set_property:(a, b, c) => {
2872
2872
  a = Q(a);
2873
2873
  b = Q(b);
2874
2874
  c = Q(c);
2875
2875
  a[b] = c;
2876
2876
  }, _emval_take_value:(a, b) => {
2877
- a = nc(a, "_emval_take_value");
2877
+ a = mc(a, "_emval_take_value");
2878
2878
  a = a.readValueFromPointer(b);
2879
- return ac(a);
2879
+ return $b(a);
2880
2880
  }, _gmtime_js:function(a, b, c) {
2881
2881
  a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
2882
2882
  F[c >> 2] = a.getUTCSeconds();
@@ -2896,7 +2896,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
2896
2896
  F[c + 16 >> 2] = a.getMonth();
2897
2897
  F[c + 20 >> 2] = a.getFullYear() - 1900;
2898
2898
  F[c + 24 >> 2] = a.getDay();
2899
- F[c + 28 >> 2] = (ud(a.getFullYear()) ? vd : wd)[a.getMonth()] + a.getDate() - 1 | 0;
2899
+ F[c + 28 >> 2] = (td(a.getFullYear()) ? ud : vd)[a.getMonth()] + a.getDate() - 1 | 0;
2900
2900
  F[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
2901
2901
  b = (new Date(a.getFullYear(), 6, 1)).getTimezoneOffset();
2902
2902
  var d = (new Date(a.getFullYear(), 0, 1)).getTimezoneOffset();
@@ -2904,40 +2904,40 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
2904
2904
  }, _tzset_js:(a, b, c, d) => {
2905
2905
  var e = (new Date()).getFullYear(), f = new Date(e, 0, 1), g = new Date(e, 6, 1);
2906
2906
  e = f.getTimezoneOffset();
2907
- var k = g.getTimezoneOffset();
2908
- G[a >> 2] = 60 * Math.max(e, k);
2909
- F[b >> 2] = Number(e != k);
2910
- a = n => n.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
2907
+ var h = g.getTimezoneOffset();
2908
+ K[a >> 2] = 60 * Math.max(e, h);
2909
+ F[b >> 2] = Number(e != h);
2910
+ a = m => m.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
2911
2911
  f = a(f);
2912
2912
  g = a(g);
2913
- k < e ? (gb(f, D, c, 17), gb(g, D, d, 17)) : (gb(f, D, d, 17), gb(g, D, c, 17));
2913
+ h < e ? (fb(f, D, c, 17), fb(g, D, d, 17)) : (fb(f, D, d, 17), fb(g, D, c, 17));
2914
2914
  }, beginPixelLocalStorageWEBGL:function(a, b, c) {
2915
- (a = w[a].F.Ea) && a.beginPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
2915
+ (a = v[a].C.za) && a.beginPixelLocalStorageWEBGL(k.HEAPU32.subarray(c, c + b));
2916
2916
  }, decode_image:function(a, b, c) {
2917
- var d = l.images;
2918
- d || (d = new Map(), l.images = d);
2917
+ var d = k.images;
2918
+ d || (d = new Map(), k.images = d);
2919
2919
  var e = new Image();
2920
2920
  d.set(a, e);
2921
- b = l.HEAP8.subarray(b, b + c);
2921
+ b = k.HEAP8.subarray(b, b + c);
2922
2922
  c = new Uint8Array(c);
2923
2923
  c.set(b);
2924
2924
  e.src = URL.createObjectURL(new Blob([c], {type:"image/png"}));
2925
2925
  e.onload = function() {
2926
- l._setWebImage(a, e.width, e.height);
2926
+ k._setWebImage(a, e.width, e.height);
2927
2927
  };
2928
2928
  }, delete_image:function(a) {
2929
- var b = l.images;
2929
+ var b = k.images;
2930
2930
  b && b.get(a) && b.delete(a);
2931
2931
  }, emscripten_asm_const_int:(a, b, c) => {
2932
- xd.length = 0;
2932
+ wd.length = 0;
2933
2933
  for (var d; d = D[b++];) {
2934
2934
  var e = 105 != d;
2935
2935
  e &= 112 != d;
2936
2936
  c += e && c % 8 ? 4 : 0;
2937
- xd.push(112 == d ? G[c >> 2] : 105 == d ? F[c >> 2] : ya[c >> 3]);
2937
+ wd.push(112 == d ? K[c >> 2] : 105 == d ? F[c >> 2] : xa[c >> 3]);
2938
2938
  c += e ? 8 : 4;
2939
2939
  }
2940
- return Ta[a](...xd);
2940
+ return Sa[a](...wd);
2941
2941
  }, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:a => {
2942
2942
  var b = D.length;
2943
2943
  a >>>= 0;
@@ -2950,10 +2950,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
2950
2950
  var e = Math;
2951
2951
  d = Math.max(a, d);
2952
2952
  a: {
2953
- e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - ua.buffer.byteLength + 65535) / 65536;
2953
+ e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - ta.buffer.byteLength + 65535) / 65536;
2954
2954
  try {
2955
- ua.grow(e);
2956
- za();
2955
+ ta.grow(e);
2956
+ ya();
2957
2957
  var f = 1;
2958
2958
  break a;
2959
2959
  } catch (g) {
@@ -2966,122 +2966,122 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
2966
2966
  }
2967
2967
  return !1;
2968
2968
  }, emscripten_webgl_enable_extension:(a, b) => {
2969
- a = w[a];
2969
+ a = v[a];
2970
2970
  b = b ? L(D, b) : "";
2971
2971
  b.startsWith("GL_") && (b = b.substr(3));
2972
- "WEBGL_draw_instanced_base_vertex_base_instance" == b && yd(W);
2973
- "WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && zd(W);
2974
- "WEBGL_multi_draw" == b && (W.ac = W.getExtension("WEBGL_multi_draw"));
2975
- return !!a.F.getExtension(b);
2976
- }, emscripten_webgl_get_current_context:() => q ? q.handle : 0, emscripten_webgl_make_context_current:a => ka(a) ? 0 : -5, enable_WEBGL_provoking_vertex:function(a) {
2977
- a = w[a].F;
2978
- a.qb = a.getExtension("WEBGL_provoking_vertex");
2979
- return !!a.qb;
2972
+ "WEBGL_draw_instanced_base_vertex_base_instance" == b && xd(W);
2973
+ "WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && yd(W);
2974
+ "WEBGL_multi_draw" == b && (W.Rb = W.getExtension("WEBGL_multi_draw"));
2975
+ return !!a.C.getExtension(b);
2976
+ }, emscripten_webgl_get_current_context:() => p ? p.handle : 0, emscripten_webgl_make_context_current:a => ka(a) ? 0 : -5, enable_WEBGL_provoking_vertex:function(a) {
2977
+ a = v[a].C;
2978
+ a.ib = a.getExtension("WEBGL_provoking_vertex");
2979
+ return !!a.ib;
2980
2980
  }, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
2981
- a = w[a].F;
2981
+ a = v[a].C;
2982
2982
  const b = a.getExtension("WEBGL_shader_pixel_local_storage");
2983
2983
  if (b && b.isCoherent()) {
2984
2984
  if (5 == b.framebufferTexturePixelLocalStorageWEBGL.length) {
2985
- return a.Ea = b, !0;
2985
+ return a.za = b, !0;
2986
2986
  }
2987
2987
  console.warn("WEBGL_shader_pixel_local_storage is advertised, but a deprecated version has been detected. Disabling.");
2988
2988
  }
2989
2989
  return !1;
2990
2990
  }, endPixelLocalStorageWEBGL:function(a, b, c) {
2991
- (a = w[a].F.Ea) && a.endPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
2991
+ (a = v[a].C.za) && a.endPixelLocalStorageWEBGL(k.HEAPU32.subarray(c, c + b));
2992
2992
  }, environ_get:(a, b) => {
2993
2993
  var c = 0;
2994
- Qd().forEach((d, e) => {
2994
+ Pd().forEach((d, e) => {
2995
2995
  var f = b + c;
2996
- e = G[a + 4 * e >> 2] = f;
2996
+ e = K[a + 4 * e >> 2] = f;
2997
2997
  for (f = 0; f < d.length; ++f) {
2998
- B[e++] = d.charCodeAt(f);
2998
+ C[e++] = d.charCodeAt(f);
2999
2999
  }
3000
- B[e] = 0;
3000
+ C[e] = 0;
3001
3001
  c += d.length + 1;
3002
3002
  });
3003
3003
  return 0;
3004
3004
  }, environ_sizes_get:(a, b) => {
3005
- var c = Qd();
3006
- G[a >> 2] = c.length;
3005
+ var c = Pd();
3006
+ K[a >> 2] = c.length;
3007
3007
  var d = 0;
3008
3008
  c.forEach(e => d += e.length + 1);
3009
- G[b >> 2] = d;
3009
+ K[b >> 2] = d;
3010
3010
  return 0;
3011
3011
  }, fd_close:function(a) {
3012
3012
  try {
3013
- var b = Kb(a);
3014
- if (null === b.W) {
3013
+ var b = Jb(a);
3014
+ if (null === b.T) {
3015
3015
  throw new M(8);
3016
3016
  }
3017
- b.Ra && (b.Ra = null);
3017
+ b.Ka && (b.Ka = null);
3018
3018
  try {
3019
- b.m.close && b.m.close(b);
3019
+ b.l.close && b.l.close(b);
3020
3020
  } catch (c) {
3021
3021
  throw c;
3022
3022
  } finally {
3023
- xb[b.W] = null;
3023
+ wb[b.T] = null;
3024
3024
  }
3025
- b.W = null;
3025
+ b.T = null;
3026
3026
  return 0;
3027
3027
  } catch (c) {
3028
- if ("undefined" == typeof Yb || "ErrnoError" !== c.name) {
3028
+ if ("undefined" == typeof Xb || "ErrnoError" !== c.name) {
3029
3029
  throw c;
3030
3030
  }
3031
- return c.aa;
3031
+ return c.Y;
3032
3032
  }
3033
3033
  }, fd_read:function(a, b, c, d) {
3034
3034
  try {
3035
3035
  a: {
3036
- var e = Kb(a);
3036
+ var e = Jb(a);
3037
3037
  a = b;
3038
3038
  for (var f, g = b = 0; g < c; g++) {
3039
- var k = G[a >> 2], n = G[a + 4 >> 2];
3039
+ var h = K[a >> 2], m = K[a + 4 >> 2];
3040
3040
  a += 8;
3041
- var m = e, t = f, v = B;
3042
- if (0 > n || 0 > t) {
3041
+ var l = e, r = f, u = C;
3042
+ if (0 > m || 0 > r) {
3043
3043
  throw new M(28);
3044
3044
  }
3045
- if (null === m.W) {
3045
+ if (null === l.T) {
3046
3046
  throw new M(8);
3047
3047
  }
3048
- if (1 === (m.flags & 2097155)) {
3048
+ if (1 === (l.flags & 2097155)) {
3049
3049
  throw new M(8);
3050
3050
  }
3051
- if (16384 === (m.node.mode & 61440)) {
3051
+ if (16384 === (l.node.mode & 61440)) {
3052
3052
  throw new M(31);
3053
3053
  }
3054
- if (!m.m.read) {
3054
+ if (!l.l.read) {
3055
3055
  throw new M(28);
3056
3056
  }
3057
- var x = "undefined" != typeof t;
3058
- if (!x) {
3059
- t = m.position;
3060
- } else if (!m.seekable) {
3057
+ var w = "undefined" != typeof r;
3058
+ if (!w) {
3059
+ r = l.position;
3060
+ } else if (!l.seekable) {
3061
3061
  throw new M(70);
3062
3062
  }
3063
- var p = m.m.read(m, v, k, n, t);
3064
- x || (m.position += p);
3065
- var r = p;
3066
- if (0 > r) {
3067
- var u = -1;
3063
+ var n = l.l.read(l, u, h, m, r);
3064
+ w || (l.position += n);
3065
+ var q = n;
3066
+ if (0 > q) {
3067
+ var t = -1;
3068
3068
  break a;
3069
3069
  }
3070
- b += r;
3071
- if (r < n) {
3070
+ b += q;
3071
+ if (q < m) {
3072
3072
  break;
3073
3073
  }
3074
- "undefined" != typeof f && (f += r);
3074
+ "undefined" != typeof f && (f += q);
3075
3075
  }
3076
- u = b;
3076
+ t = b;
3077
3077
  }
3078
- G[d >> 2] = u;
3078
+ K[d >> 2] = t;
3079
3079
  return 0;
3080
- } catch (z) {
3081
- if ("undefined" == typeof Yb || "ErrnoError" !== z.name) {
3082
- throw z;
3080
+ } catch (y) {
3081
+ if ("undefined" == typeof Xb || "ErrnoError" !== y.name) {
3082
+ throw y;
3083
3083
  }
3084
- return z.aa;
3084
+ return y.Y;
3085
3085
  }
3086
3086
  }, fd_seek:function(a, b, c, d, e) {
3087
3087
  b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
@@ -3089,123 +3089,123 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3089
3089
  if (isNaN(b)) {
3090
3090
  return 61;
3091
3091
  }
3092
- var f = Kb(a);
3093
- Ub(f, b, d);
3094
- Pa = [f.position >>> 0, (Oa = f.position, 1.0 <= +Math.abs(Oa) ? 0.0 < Oa ? +Math.floor(Oa / 4294967296.0) >>> 0 : ~~+Math.ceil((Oa - +(~~Oa >>> 0)) / 4294967296.0) >>> 0 : 0)];
3095
- F[e >> 2] = Pa[0];
3096
- F[e + 4 >> 2] = Pa[1];
3097
- f.Ra && 0 === b && 0 === d && (f.Ra = null);
3092
+ var f = Jb(a);
3093
+ Tb(f, b, d);
3094
+ Oa = [f.position >>> 0, (Na = f.position, 1.0 <= +Math.abs(Na) ? 0.0 < Na ? +Math.floor(Na / 4294967296.0) >>> 0 : ~~+Math.ceil((Na - +(~~Na >>> 0)) / 4294967296.0) >>> 0 : 0)];
3095
+ F[e >> 2] = Oa[0];
3096
+ F[e + 4 >> 2] = Oa[1];
3097
+ f.Ka && 0 === b && 0 === d && (f.Ka = null);
3098
3098
  return 0;
3099
3099
  } catch (g) {
3100
- if ("undefined" == typeof Yb || "ErrnoError" !== g.name) {
3100
+ if ("undefined" == typeof Xb || "ErrnoError" !== g.name) {
3101
3101
  throw g;
3102
3102
  }
3103
- return g.aa;
3103
+ return g.Y;
3104
3104
  }
3105
3105
  }, fd_write:function(a, b, c, d) {
3106
3106
  try {
3107
3107
  a: {
3108
- var e = Kb(a);
3108
+ var e = Jb(a);
3109
3109
  a = b;
3110
3110
  for (var f, g = b = 0; g < c; g++) {
3111
- var k = G[a >> 2], n = G[a + 4 >> 2];
3111
+ var h = K[a >> 2], m = K[a + 4 >> 2];
3112
3112
  a += 8;
3113
- var m = e, t = k, v = n, x = f, p = B;
3114
- if (0 > v || 0 > x) {
3113
+ var l = e, r = h, u = m, w = f, n = C;
3114
+ if (0 > u || 0 > w) {
3115
3115
  throw new M(28);
3116
3116
  }
3117
- if (null === m.W) {
3117
+ if (null === l.T) {
3118
3118
  throw new M(8);
3119
3119
  }
3120
- if (0 === (m.flags & 2097155)) {
3120
+ if (0 === (l.flags & 2097155)) {
3121
3121
  throw new M(8);
3122
3122
  }
3123
- if (16384 === (m.node.mode & 61440)) {
3123
+ if (16384 === (l.node.mode & 61440)) {
3124
3124
  throw new M(31);
3125
3125
  }
3126
- if (!m.m.write) {
3126
+ if (!l.l.write) {
3127
3127
  throw new M(28);
3128
3128
  }
3129
- m.seekable && m.flags & 1024 && Ub(m, 0, 2);
3130
- var r = "undefined" != typeof x;
3131
- if (!r) {
3132
- x = m.position;
3133
- } else if (!m.seekable) {
3129
+ l.seekable && l.flags & 1024 && Tb(l, 0, 2);
3130
+ var q = "undefined" != typeof w;
3131
+ if (!q) {
3132
+ w = l.position;
3133
+ } else if (!l.seekable) {
3134
3134
  throw new M(70);
3135
3135
  }
3136
- var u = m.m.write(m, p, t, v, x, void 0);
3137
- r || (m.position += u);
3138
- var z = u;
3139
- if (0 > z) {
3140
- var A = -1;
3136
+ var t = l.l.write(l, n, r, u, w, void 0);
3137
+ q || (l.position += t);
3138
+ var y = t;
3139
+ if (0 > y) {
3140
+ var z = -1;
3141
3141
  break a;
3142
3142
  }
3143
- b += z;
3144
- "undefined" != typeof f && (f += z);
3143
+ b += y;
3144
+ "undefined" != typeof f && (f += y);
3145
3145
  }
3146
- A = b;
3146
+ z = b;
3147
3147
  }
3148
- G[d >> 2] = A;
3148
+ K[d >> 2] = z;
3149
3149
  return 0;
3150
- } catch (C) {
3151
- if ("undefined" == typeof Yb || "ErrnoError" !== C.name) {
3152
- throw C;
3150
+ } catch (B) {
3151
+ if ("undefined" == typeof Xb || "ErrnoError" !== B.name) {
3152
+ throw B;
3153
3153
  }
3154
- return C.aa;
3154
+ return B.Y;
3155
3155
  }
3156
3156
  }, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
3157
- (a = w[a].F.Ea) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
3157
+ (a = v[a].C.za) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
3158
3158
  }, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e, f) {
3159
- (a = w[a].F.Ea) && a.framebufferTexturePixelLocalStorageWEBGL(b, Fd[c], d, e, f);
3159
+ (a = v[a].C.za) && a.framebufferTexturePixelLocalStorageWEBGL(b, Ed[c], d, e, f);
3160
3160
  }, glActiveTexture:a => W.activeTexture(a), glAttachShader:(a, b) => {
3161
- W.attachShader(V[a], Gd[b]);
3161
+ W.attachShader(V[a], Fd[b]);
3162
3162
  }, glBindBuffer:(a, b) => {
3163
- 35051 == a ? W.Pa = b : 35052 == a && (W.sa = b);
3164
- W.bindBuffer(a, Cd[b]);
3163
+ 35051 == a ? W.Ja = b : 35052 == a && (W.oa = b);
3164
+ W.bindBuffer(a, Bd[b]);
3165
3165
  }, glBindBufferRange:(a, b, c, d, e) => {
3166
- W.bindBufferRange(a, b, Cd[c], d, e);
3166
+ W.bindBufferRange(a, b, Bd[c], d, e);
3167
3167
  }, glBindFramebuffer:(a, b) => {
3168
- W.bindFramebuffer(a, Dd[b]);
3168
+ W.bindFramebuffer(a, Cd[b]);
3169
3169
  }, glBindRenderbuffer:(a, b) => {
3170
- W.bindRenderbuffer(a, Ed[b]);
3170
+ W.bindRenderbuffer(a, Dd[b]);
3171
3171
  }, glBindTexture:(a, b) => {
3172
- W.bindTexture(a, Fd[b]);
3172
+ W.bindTexture(a, Ed[b]);
3173
3173
  }, glBindVertexArray:a => {
3174
- W.bindVertexArray(Hd[a]);
3175
- }, glBlendEquation:a => W.blendEquation(a), glBlendFunc:(a, b) => W.blendFunc(a, b), glBlitFramebuffer:(a, b, c, d, e, f, g, k, n, m) => W.blitFramebuffer(a, b, c, d, e, f, g, k, n, m), glBufferData:(a, b, c, d) => {
3174
+ W.bindVertexArray(Gd[a]);
3175
+ }, glBlendEquation:a => W.blendEquation(a), glBlendFunc:(a, b) => W.blendFunc(a, b), glBlitFramebuffer:(a, b, c, d, e, f, g, h, m, l) => W.blitFramebuffer(a, b, c, d, e, f, g, h, m, l), glBufferData:(a, b, c, d) => {
3176
3176
  c && b ? W.bufferData(a, D, d, c, b) : W.bufferData(a, b, d);
3177
3177
  }, glBufferSubData:(a, b, c, d) => {
3178
3178
  c && W.bufferSubData(a, b, D, d, c);
3179
3179
  }, glClear:a => W.clear(a), glClearBufferfv:(a, b, c) => {
3180
- W.clearBufferfv(a, b, xa, c >> 2);
3180
+ W.clearBufferfv(a, b, wa, c >> 2);
3181
3181
  }, glClearBufferuiv:(a, b, c) => {
3182
- W.clearBufferuiv(a, b, G, c >> 2);
3182
+ W.clearBufferuiv(a, b, K, c >> 2);
3183
3183
  }, glClearColor:(a, b, c, d) => W.clearColor(a, b, c, d), glClearDepthf:a => W.clearDepth(a), glClearStencil:a => W.clearStencil(a), glColorMask:(a, b, c, d) => {
3184
3184
  W.colorMask(!!a, !!b, !!c, !!d);
3185
3185
  }, glCompileShader:a => {
3186
- W.compileShader(Gd[a]);
3187
- }, glCompressedTexSubImage2D:(a, b, c, d, e, f, g, k, n) => {
3188
- W.sa || !k ? W.compressedTexSubImage2D(a, b, c, d, e, f, g, k, n) : W.compressedTexSubImage2D(a, b, c, d, e, f, g, D, n, k);
3186
+ W.compileShader(Fd[a]);
3187
+ }, glCompressedTexSubImage2D:(a, b, c, d, e, f, g, h, m) => {
3188
+ W.oa || !h ? W.compressedTexSubImage2D(a, b, c, d, e, f, g, h, m) : W.compressedTexSubImage2D(a, b, c, d, e, f, g, D, m, h);
3189
3189
  }, glCreateProgram:() => {
3190
- var a = Ld(V), b = W.createProgram();
3190
+ var a = Kd(V), b = W.createProgram();
3191
3191
  b.name = a;
3192
- b.Aa = b.ya = b.za = 0;
3193
- b.Xa = 1;
3192
+ b.wa = b.ua = b.va = 0;
3193
+ b.Qa = 1;
3194
3194
  V[a] = b;
3195
3195
  return a;
3196
3196
  }, glCreateShader:a => {
3197
- var b = Ld(Gd);
3198
- Gd[b] = W.createShader(a);
3197
+ var b = Kd(Fd);
3198
+ Fd[b] = W.createShader(a);
3199
3199
  return b;
3200
3200
  }, glCullFace:a => W.cullFace(a), glDeleteBuffers:(a, b) => {
3201
3201
  for (var c = 0; c < a; c++) {
3202
- var d = F[b + 4 * c >> 2], e = Cd[d];
3203
- e && (W.deleteBuffer(e), e.name = 0, Cd[d] = null, d == W.Pa && (W.Pa = 0), d == W.sa && (W.sa = 0));
3202
+ var d = F[b + 4 * c >> 2], e = Bd[d];
3203
+ e && (W.deleteBuffer(e), e.name = 0, Bd[d] = null, d == W.Ja && (W.Ja = 0), d == W.oa && (W.oa = 0));
3204
3204
  }
3205
3205
  }, glDeleteFramebuffers:(a, b) => {
3206
3206
  for (var c = 0; c < a; ++c) {
3207
- var d = F[b + 4 * c >> 2], e = Dd[d];
3208
- e && (W.deleteFramebuffer(e), e.name = 0, Dd[d] = null);
3207
+ var d = F[b + 4 * c >> 2], e = Cd[d];
3208
+ e && (W.deleteFramebuffer(e), e.name = 0, Cd[d] = null);
3209
3209
  }
3210
3210
  }, glDeleteProgram:a => {
3211
3211
  if (a) {
@@ -3214,24 +3214,24 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3214
3214
  }
3215
3215
  }, glDeleteRenderbuffers:(a, b) => {
3216
3216
  for (var c = 0; c < a; c++) {
3217
- var d = F[b + 4 * c >> 2], e = Ed[d];
3218
- e && (W.deleteRenderbuffer(e), e.name = 0, Ed[d] = null);
3217
+ var d = F[b + 4 * c >> 2], e = Dd[d];
3218
+ e && (W.deleteRenderbuffer(e), e.name = 0, Dd[d] = null);
3219
3219
  }
3220
3220
  }, glDeleteShader:a => {
3221
3221
  if (a) {
3222
- var b = Gd[a];
3223
- b ? (W.deleteShader(b), Gd[a] = null) : X ||= 1281;
3222
+ var b = Fd[a];
3223
+ b ? (W.deleteShader(b), Fd[a] = null) : X ||= 1281;
3224
3224
  }
3225
3225
  }, glDeleteTextures:(a, b) => {
3226
3226
  for (var c = 0; c < a; c++) {
3227
- var d = F[b + 4 * c >> 2], e = Fd[d];
3228
- e && (W.deleteTexture(e), e.name = 0, Fd[d] = null);
3227
+ var d = F[b + 4 * c >> 2], e = Ed[d];
3228
+ e && (W.deleteTexture(e), e.name = 0, Ed[d] = null);
3229
3229
  }
3230
3230
  }, glDeleteVertexArrays:(a, b) => {
3231
3231
  for (var c = 0; c < a; c++) {
3232
3232
  var d = F[b + 4 * c >> 2];
3233
- W.deleteVertexArray(Hd[d]);
3234
- Hd[d] = null;
3233
+ W.deleteVertexArray(Gd[d]);
3234
+ Gd[d] = null;
3235
3235
  }
3236
3236
  }, glDepthFunc:a => W.depthFunc(a), glDepthMask:a => {
3237
3237
  W.depthMask(!!a);
@@ -3240,58 +3240,56 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3240
3240
  }, glDrawArraysInstanced:(a, b, c, d) => {
3241
3241
  W.drawArraysInstanced(a, b, c, d);
3242
3242
  }, glDrawBuffers:(a, b) => {
3243
- for (var c = Rd[a], d = 0; d < a; d++) {
3243
+ for (var c = Qd[a], d = 0; d < a; d++) {
3244
3244
  c[d] = F[b + 4 * d >> 2];
3245
3245
  }
3246
3246
  W.drawBuffers(c);
3247
- }, glDrawElements:(a, b, c, d) => {
3248
- W.drawElements(a, b, c, d);
3249
3247
  }, glDrawElementsInstanced:(a, b, c, d, e) => {
3250
3248
  W.drawElementsInstanced(a, b, c, d, e);
3251
3249
  }, glEnable:a => W.enable(a), glEnableVertexAttribArray:a => {
3252
3250
  W.enableVertexAttribArray(a);
3253
3251
  }, glFlush:() => W.flush(), glFramebufferRenderbuffer:(a, b, c, d) => {
3254
- W.framebufferRenderbuffer(a, b, c, Ed[d]);
3252
+ W.framebufferRenderbuffer(a, b, c, Dd[d]);
3255
3253
  }, glFramebufferTexture2D:(a, b, c, d, e) => {
3256
- W.framebufferTexture2D(a, b, c, Fd[d], e);
3254
+ W.framebufferTexture2D(a, b, c, Ed[d], e);
3257
3255
  }, glFrontFace:a => W.frontFace(a), glGenBuffers:(a, b) => {
3258
- Md(a, b, "createBuffer", Cd);
3256
+ Ld(a, b, "createBuffer", Bd);
3259
3257
  }, glGenFramebuffers:(a, b) => {
3260
- Md(a, b, "createFramebuffer", Dd);
3258
+ Ld(a, b, "createFramebuffer", Cd);
3261
3259
  }, glGenRenderbuffers:(a, b) => {
3262
- Md(a, b, "createRenderbuffer", Ed);
3260
+ Ld(a, b, "createRenderbuffer", Dd);
3263
3261
  }, glGenTextures:(a, b) => {
3264
- Md(a, b, "createTexture", Fd);
3262
+ Ld(a, b, "createTexture", Ed);
3265
3263
  }, glGenVertexArrays:(a, b) => {
3266
- Md(a, b, "createVertexArray", Hd);
3267
- }, glGenerateMipmap:a => W.generateMipmap(a), glGetIntegerv:(a, b) => Td(a, b), glGetProgramiv:(a, b, c) => {
3264
+ Ld(a, b, "createVertexArray", Gd);
3265
+ }, glGenerateMipmap:a => W.generateMipmap(a), glGetIntegerv:(a, b) => Sd(a, b), glGetProgramiv:(a, b, c) => {
3268
3266
  if (c) {
3269
- if (a >= Bd) {
3267
+ if (a >= Ad) {
3270
3268
  X ||= 1281;
3271
3269
  } else {
3272
3270
  if (a = V[a], 35716 == b) {
3273
3271
  a = W.getProgramInfoLog(a), null === a && (a = "(unknown error)"), F[c >> 2] = a.length + 1;
3274
3272
  } else if (35719 == b) {
3275
- if (!a.Aa) {
3273
+ if (!a.wa) {
3276
3274
  for (b = 0; b < W.getProgramParameter(a, 35718); ++b) {
3277
- a.Aa = Math.max(a.Aa, W.getActiveUniform(a, b).name.length + 1);
3275
+ a.wa = Math.max(a.wa, W.getActiveUniform(a, b).name.length + 1);
3278
3276
  }
3279
3277
  }
3280
- F[c >> 2] = a.Aa;
3278
+ F[c >> 2] = a.wa;
3281
3279
  } else if (35722 == b) {
3282
- if (!a.ya) {
3280
+ if (!a.ua) {
3283
3281
  for (b = 0; b < W.getProgramParameter(a, 35721); ++b) {
3284
- a.ya = Math.max(a.ya, W.getActiveAttrib(a, b).name.length + 1);
3282
+ a.ua = Math.max(a.ua, W.getActiveAttrib(a, b).name.length + 1);
3285
3283
  }
3286
3284
  }
3287
- F[c >> 2] = a.ya;
3285
+ F[c >> 2] = a.ua;
3288
3286
  } else if (35381 == b) {
3289
- if (!a.za) {
3287
+ if (!a.va) {
3290
3288
  for (b = 0; b < W.getProgramParameter(a, 35382); ++b) {
3291
- a.za = Math.max(a.za, W.getActiveUniformBlockName(a, b).length + 1);
3289
+ a.va = Math.max(a.va, W.getActiveUniformBlockName(a, b).length + 1);
3292
3290
  }
3293
3291
  }
3294
- F[c >> 2] = a.za;
3292
+ F[c >> 2] = a.va;
3295
3293
  } else {
3296
3294
  F[c >> 2] = W.getProgramParameter(a, b);
3297
3295
  }
@@ -3300,59 +3298,59 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3300
3298
  X ||= 1281;
3301
3299
  }
3302
3300
  }, glGetString:a => {
3303
- var b = Id[a];
3301
+ var b = Hd[a];
3304
3302
  if (!b) {
3305
3303
  switch(a) {
3306
3304
  case 7939:
3307
- b = Vd(Sd().join(" "));
3305
+ b = Ud(Rd().join(" "));
3308
3306
  break;
3309
3307
  case 7936:
3310
3308
  case 7937:
3311
3309
  case 37445:
3312
3310
  case 37446:
3313
3311
  (b = W.getParameter(a)) || (X ||= 1280);
3314
- b = b ? Vd(b) : 0;
3312
+ b = b ? Ud(b) : 0;
3315
3313
  break;
3316
3314
  case 7938:
3317
- b = Vd(`OpenGL ES 3.0 (${W.getParameter(7938)})`);
3315
+ b = Ud(`OpenGL ES 3.0 (${W.getParameter(7938)})`);
3318
3316
  break;
3319
3317
  case 35724:
3320
3318
  b = W.getParameter(35724);
3321
3319
  var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
3322
3320
  null !== c && (3 == c[1].length && (c[1] += "0"), b = `OpenGL ES GLSL ES ${c[1]} (${b})`);
3323
- b = Vd(b);
3321
+ b = Ud(b);
3324
3322
  break;
3325
3323
  default:
3326
3324
  X ||= 1280;
3327
3325
  }
3328
- Id[a] = b;
3326
+ Hd[a] = b;
3329
3327
  }
3330
3328
  return b;
3331
3329
  }, glGetUniformBlockIndex:(a, b) => W.getUniformBlockIndex(V[a], b ? L(D, b) : ""), glGetUniformLocation:(a, b) => {
3332
3330
  b = b ? L(D, b) : "";
3333
3331
  if (a = V[a]) {
3334
- var c = a, d = c.na, e = c.xb, f;
3332
+ var c = a, d = c.ja, e = c.ob, f;
3335
3333
  if (!d) {
3336
- for (c.na = d = {}, c.wb = {}, f = 0; f < W.getProgramParameter(c, 35718); ++f) {
3334
+ for (c.ja = d = {}, c.nb = {}, f = 0; f < W.getProgramParameter(c, 35718); ++f) {
3337
3335
  var g = W.getActiveUniform(c, f);
3338
- var k = g.name;
3336
+ var h = g.name;
3339
3337
  g = g.size;
3340
- var n = Wd(k);
3341
- n = 0 < n ? k.slice(0, n) : k;
3342
- var m = c.Xa;
3343
- c.Xa += g;
3344
- e[n] = [g, m];
3345
- for (k = 0; k < g; ++k) {
3346
- d[m] = k, c.wb[m++] = n;
3338
+ var m = Vd(h);
3339
+ m = 0 < m ? h.slice(0, m) : h;
3340
+ var l = c.Qa;
3341
+ c.Qa += g;
3342
+ e[m] = [g, l];
3343
+ for (h = 0; h < g; ++h) {
3344
+ d[l] = h, c.nb[l++] = m;
3347
3345
  }
3348
3346
  }
3349
3347
  }
3350
- c = a.na;
3348
+ c = a.ja;
3351
3349
  d = 0;
3352
3350
  e = b;
3353
- f = Wd(b);
3351
+ f = Vd(b);
3354
3352
  0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
3355
- if ((e = a.xb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || W.getUniformLocation(a, b))) {
3353
+ if ((e = a.ob[e]) && d < e[0] && (d += e[1], c[d] = c[d] || W.getUniformLocation(a, b))) {
3356
3354
  return d;
3357
3355
  }
3358
3356
  } else {
@@ -3360,57 +3358,57 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3360
3358
  }
3361
3359
  return -1;
3362
3360
  }, glInvalidateFramebuffer:(a, b, c) => {
3363
- for (var d = Rd[b], e = 0; e < b; e++) {
3361
+ for (var d = Qd[b], e = 0; e < b; e++) {
3364
3362
  d[e] = F[c + 4 * e >> 2];
3365
3363
  }
3366
3364
  W.invalidateFramebuffer(a, d);
3367
3365
  }, glLinkProgram:a => {
3368
3366
  a = V[a];
3369
3367
  W.linkProgram(a);
3370
- a.na = 0;
3371
- a.xb = {};
3368
+ a.ja = 0;
3369
+ a.ob = {};
3372
3370
  }, glPixelStorei:(a, b) => {
3373
- 3317 == a ? Jd = b : 3314 == a && (Kd = b);
3371
+ 3317 == a ? Id = b : 3314 == a && (Jd = b);
3374
3372
  W.pixelStorei(a, b);
3375
3373
  }, glReadPixels:(a, b, c, d, e, f, g) => {
3376
- if (W.Pa) {
3374
+ if (W.Ja) {
3377
3375
  W.readPixels(a, b, c, d, e, f, g);
3378
3376
  } else {
3379
- var k = Xd(f);
3380
- g >>>= 31 - Math.clz32(k.BYTES_PER_ELEMENT);
3381
- W.readPixels(a, b, c, d, e, f, k, g);
3377
+ var h = Wd(f);
3378
+ g >>>= 31 - Math.clz32(h.BYTES_PER_ELEMENT);
3379
+ W.readPixels(a, b, c, d, e, f, h, g);
3382
3380
  }
3383
3381
  }, glRenderbufferStorageMultisample:(a, b, c, d, e) => W.renderbufferStorageMultisample(a, b, c, d, e), glScissor:(a, b, c, d) => W.scissor(a, b, c, d), glShaderSource:(a, b, c, d) => {
3384
3382
  for (var e = "", f = 0; f < b; ++f) {
3385
- var g = (g = G[c + 4 * f >> 2]) ? L(D, g, d ? G[d + 4 * f >> 2] : void 0) : "";
3383
+ var g = (g = K[c + 4 * f >> 2]) ? L(D, g, d ? K[d + 4 * f >> 2] : void 0) : "";
3386
3384
  e += g;
3387
3385
  }
3388
- W.shaderSource(Gd[a], e);
3386
+ W.shaderSource(Fd[a], e);
3389
3387
  }, glStencilFunc:(a, b, c) => W.stencilFunc(a, b, c), glStencilFuncSeparate:(a, b, c, d) => W.stencilFuncSeparate(a, b, c, d), glStencilMask:a => W.stencilMask(a), glStencilOp:(a, b, c) => W.stencilOp(a, b, c), glStencilOpSeparate:(a, b, c, d) => W.stencilOpSeparate(a, b, c, d), glTexParameteri:(a, b, c) => W.texParameteri(a, b, c), glTexStorage2D:(a, b, c, d, e) => W.texStorage2D(a, b, c, d, e), glTexStorage3D:(a, b, c, d, e, f) => W.texStorage3D(a, b, c, d, e, f), glTexSubImage2D:(a, b, c, d, e,
3390
- f, g, k, n) => {
3391
- if (W.sa) {
3392
- W.texSubImage2D(a, b, c, d, e, f, g, k, n);
3388
+ f, g, h, m) => {
3389
+ if (W.oa) {
3390
+ W.texSubImage2D(a, b, c, d, e, f, g, h, m);
3393
3391
  } else {
3394
- if (n) {
3395
- var m = Xd(k);
3396
- W.texSubImage2D(a, b, c, d, e, f, g, k, m, n >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
3392
+ if (m) {
3393
+ var l = Wd(h);
3394
+ W.texSubImage2D(a, b, c, d, e, f, g, h, l, m >>> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
3397
3395
  } else {
3398
- if (n) {
3399
- m = Xd(k);
3400
- var t = f * ((Kd || e) * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[g - 6402] || 1) * m.BYTES_PER_ELEMENT + Jd - 1 & -Jd);
3401
- n = m.subarray(n >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT), n + t >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
3396
+ if (m) {
3397
+ l = Wd(h);
3398
+ var r = f * ((Jd || e) * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[g - 6402] || 1) * l.BYTES_PER_ELEMENT + Id - 1 & -Id);
3399
+ m = l.subarray(m >>> 31 - Math.clz32(l.BYTES_PER_ELEMENT), m + r >>> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
3402
3400
  } else {
3403
- n = null;
3401
+ m = null;
3404
3402
  }
3405
- W.texSubImage2D(a, b, c, d, e, f, g, k, n);
3403
+ W.texSubImage2D(a, b, c, d, e, f, g, h, m);
3406
3404
  }
3407
3405
  }
3408
3406
  }, glUniform1i:(a, b) => {
3409
3407
  var c = W, d = c.uniform1i;
3410
- var e = W.Jb;
3408
+ var e = W.zb;
3411
3409
  if (e) {
3412
- var f = e.na[a];
3413
- "number" == typeof f && (e.na[a] = f = W.getUniformLocation(e, e.wb[a] + (0 < f ? `[${f}]` : "")));
3410
+ var f = e.ja[a];
3411
+ "number" == typeof f && (e.ja[a] = f = W.getUniformLocation(e, e.nb[a] + (0 < f ? `[${f}]` : "")));
3414
3412
  a = f;
3415
3413
  } else {
3416
3414
  X ||= 1282, a = void 0;
@@ -3422,141 +3420,141 @@ f, g, k, n) => {
3422
3420
  }, glUseProgram:a => {
3423
3421
  a = V[a];
3424
3422
  W.useProgram(a);
3425
- W.Jb = a;
3423
+ W.zb = a;
3426
3424
  }, glVertexAttribDivisor:(a, b) => {
3427
3425
  W.vertexAttribDivisor(a, b);
3428
3426
  }, glVertexAttribIPointer:(a, b, c, d, e) => {
3429
3427
  W.vertexAttribIPointer(a, b, c, d, e);
3430
3428
  }, glVertexAttribPointer:(a, b, c, d, e, f) => {
3431
3429
  W.vertexAttribPointer(a, b, c, !!d, e, f);
3432
- }, glViewport:(a, b, c, d) => W.viewport(a, b, c, d), invoke_vii:de, isWindowsBrowser:function() {
3430
+ }, glViewport:(a, b, c, d) => W.viewport(a, b, c, d), invoke_vii:ce, isWindowsBrowser:function() {
3433
3431
  return -1 < navigator.platform.indexOf("Win");
3434
3432
  }, provokingVertexWEBGL:function(a, b) {
3435
- (a = w[a].F.qb) && a.provokingVertexWEBGL(b);
3436
- }, strftime:$d, strftime_l:(a, b, c, d) => $d(a, b, c, d), upload_image:function(a, b) {
3437
- var c = l.images;
3438
- c && (b = c.get(b)) && (a = w[a].F, 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));
3433
+ (a = v[a].C.ib) && a.provokingVertexWEBGL(b);
3434
+ }, strftime:Zd, strftime_l:(a, b, c, d) => Zd(a, b, c, d), upload_image:function(a, b) {
3435
+ var c = k.images;
3436
+ c && (b = c.get(b)) && (a = v[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));
3439
3437
  }, wasm_start_image_decode:function(a, b, c) {
3440
- b = l.HEAP8.subarray(b, b + c);
3438
+ b = k.HEAP8.subarray(b, b + c);
3441
3439
  c = new Uint8Array(c);
3442
3440
  c.set(b);
3443
3441
  createImageBitmap(new Blob([c])).then(function(d) {
3444
3442
  var e = (new OffscreenCanvas(d.width, d.height)).getContext("2d");
3445
3443
  e.drawImage(d, 0, 0);
3446
3444
  e = e.getImageData(0, 0, d.width, d.height);
3447
- var f = e.data.length, g = l.Db(f);
3448
- l.pc.set(e.data, g);
3449
- l.rc(a, d.width, d.height, g, f);
3445
+ var f = e.data.length, g = k.tb(f);
3446
+ k.dc.set(e.data, g);
3447
+ k.fc(a, d.width, d.height, g, f);
3450
3448
  }).catch(function(d) {
3451
3449
  d = d.message || "decode failed";
3452
- var e = l.Kc(d) + 1, f = l.Db(e);
3453
- l.Sc(d, f, e);
3454
- l.sc(a, f);
3455
- l.qc(f);
3450
+ var e = k.zc(d) + 1, f = k.tb(e);
3451
+ k.Hc(d, f, e);
3452
+ k.hc(a, f);
3453
+ k.ec(f);
3456
3454
  });
3457
- }}, Y = function() {
3455
+ }}, Z = function() {
3458
3456
  function a(c) {
3459
- Y = c.exports;
3460
- ua = Y.memory;
3461
- za();
3462
- Qc = Y.__indirect_function_table;
3463
- Ba.unshift(Y.__wasm_call_ctors);
3464
- Ea--;
3465
- l.monitorRunDependencies?.(Ea);
3466
- 0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga && (c = Ga, Ga = null, c()));
3467
- return Y;
3468
- }
3469
- var b = {env:ee, wasi_snapshot_preview1:ee,};
3470
- Ea++;
3471
- l.monitorRunDependencies?.(Ea);
3472
- if (l.instantiateWasm) {
3457
+ Z = c.exports;
3458
+ ta = Z.memory;
3459
+ ya();
3460
+ Pc = Z.__indirect_function_table;
3461
+ Aa.unshift(Z.__wasm_call_ctors);
3462
+ Da--;
3463
+ k.monitorRunDependencies?.(Da);
3464
+ 0 == Da && (null !== Ea && (clearInterval(Ea), Ea = null), Fa && (c = Fa, Fa = null, c()));
3465
+ return Z;
3466
+ }
3467
+ var b = {env:de, wasi_snapshot_preview1:de,};
3468
+ Da++;
3469
+ k.monitorRunDependencies?.(Da);
3470
+ if (k.instantiateWasm) {
3473
3471
  try {
3474
- return l.instantiateWasm(b, a);
3472
+ return k.instantiateWasm(b, a);
3475
3473
  } catch (c) {
3476
- sa(`Module.instantiateWasm callback failed with error: ${c}`), ba(c);
3474
+ A(`Module.instantiateWasm callback failed with error: ${c}`), ba(c);
3477
3475
  }
3478
3476
  }
3479
- Ja ||= Ia("webgl2_advanced.wasm") ? "webgl2_advanced.wasm" : l.locateFile ? l.locateFile("webgl2_advanced.wasm", y) : y + "webgl2_advanced.wasm";
3480
- Na(b, function(c) {
3477
+ Ia ||= Ha("webgl2_advanced.wasm") ? "webgl2_advanced.wasm" : k.locateFile ? k.locateFile("webgl2_advanced.wasm", x) : x + "webgl2_advanced.wasm";
3478
+ Ma(b, function(c) {
3481
3479
  a(c.instance);
3482
3480
  }).catch(ba);
3483
3481
  return {};
3484
- }(), lc = a => (lc = Y.free)(a), Ud = a => (Ud = Y.malloc)(a);
3485
- l._setWebImage = (a, b, c) => (l._setWebImage = Y.setWebImage)(a, b, c);
3486
- var kc = a => (kc = Y.__getTypeName)(a);
3487
- l._wasm_image_decode_complete = (a, b, c, d, e) => (l._wasm_image_decode_complete = Y.wasm_image_decode_complete)(a, b, c, d, e);
3488
- l._wasm_image_decode_error = (a, b) => (l._wasm_image_decode_error = Y.wasm_image_decode_error)(a, b);
3489
- var Qa = l._ma_device__on_notification_unlocked = a => (Qa = l._ma_device__on_notification_unlocked = Y.ma_device__on_notification_unlocked)(a);
3490
- l._ma_malloc_emscripten = (a, b) => (l._ma_malloc_emscripten = Y.ma_malloc_emscripten)(a, b);
3491
- l._ma_free_emscripten = (a, b) => (l._ma_free_emscripten = Y.ma_free_emscripten)(a, b);
3492
- var Ra = l._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = l._ma_device_process_pcm_frames_capture__webaudio = Y.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = l._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = l._ma_device_process_pcm_frames_playback__webaudio = Y.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), fe = (a, b) => (fe = Y.setThrew)(a, b), ge = a => (ge = Y._emscripten_stack_restore)(a), he = () => (he = Y.emscripten_stack_get_current)();
3493
- l.dynCall_iiiji = (a, b, c, d, e, f) => (l.dynCall_iiiji = Y.dynCall_iiiji)(a, b, c, d, e, f);
3494
- l.dynCall_iij = (a, b, c, d) => (l.dynCall_iij = Y.dynCall_iij)(a, b, c, d);
3495
- l.dynCall_iiji = (a, b, c, d, e) => (l.dynCall_iiji = Y.dynCall_iiji)(a, b, c, d, e);
3496
- l.dynCall_jii = (a, b, c) => (l.dynCall_jii = Y.dynCall_jii)(a, b, c);
3497
- l.dynCall_vijj = (a, b, c, d, e, f) => (l.dynCall_vijj = Y.dynCall_vijj)(a, b, c, d, e, f);
3498
- l.dynCall_jiji = (a, b, c, d, e) => (l.dynCall_jiji = Y.dynCall_jiji)(a, b, c, d, e);
3499
- l.dynCall_viijii = (a, b, c, d, e, f, g) => (l.dynCall_viijii = Y.dynCall_viijii)(a, b, c, d, e, f, g);
3500
- l.dynCall_iiiiij = (a, b, c, d, e, f, g) => (l.dynCall_iiiiij = Y.dynCall_iiiiij)(a, b, c, d, e, f, g);
3501
- l.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, n) => (l.dynCall_iiiiijj = Y.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, n);
3502
- l.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, n, m) => (l.dynCall_iiiiiijj = Y.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, n, m);
3503
- function de(a, b, c) {
3504
- var d = he();
3482
+ }(), kc = a => (kc = Z.free)(a), Td = a => (Td = Z.malloc)(a);
3483
+ k._setWebImage = (a, b, c) => (k._setWebImage = Z.setWebImage)(a, b, c);
3484
+ var jc = a => (jc = Z.__getTypeName)(a);
3485
+ k._wasm_image_decode_complete = (a, b, c, d, e) => (k._wasm_image_decode_complete = Z.wasm_image_decode_complete)(a, b, c, d, e);
3486
+ k._wasm_image_decode_error = (a, b) => (k._wasm_image_decode_error = Z.wasm_image_decode_error)(a, b);
3487
+ var Pa = k._ma_device__on_notification_unlocked = a => (Pa = k._ma_device__on_notification_unlocked = Z.ma_device__on_notification_unlocked)(a);
3488
+ k._ma_malloc_emscripten = (a, b) => (k._ma_malloc_emscripten = Z.ma_malloc_emscripten)(a, b);
3489
+ k._ma_free_emscripten = (a, b) => (k._ma_free_emscripten = Z.ma_free_emscripten)(a, b);
3490
+ var Qa = k._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Qa = k._ma_device_process_pcm_frames_capture__webaudio = Z.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Ra = k._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Ra = k._ma_device_process_pcm_frames_playback__webaudio = Z.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), ee = (a, b) => (ee = Z.setThrew)(a, b), fe = a => (fe = Z._emscripten_stack_restore)(a), ge = () => (ge = Z.emscripten_stack_get_current)();
3491
+ k.dynCall_iiiji = (a, b, c, d, e, f) => (k.dynCall_iiiji = Z.dynCall_iiiji)(a, b, c, d, e, f);
3492
+ k.dynCall_iij = (a, b, c, d) => (k.dynCall_iij = Z.dynCall_iij)(a, b, c, d);
3493
+ k.dynCall_iiji = (a, b, c, d, e) => (k.dynCall_iiji = Z.dynCall_iiji)(a, b, c, d, e);
3494
+ k.dynCall_jii = (a, b, c) => (k.dynCall_jii = Z.dynCall_jii)(a, b, c);
3495
+ k.dynCall_vijj = (a, b, c, d, e, f) => (k.dynCall_vijj = Z.dynCall_vijj)(a, b, c, d, e, f);
3496
+ k.dynCall_jiji = (a, b, c, d, e) => (k.dynCall_jiji = Z.dynCall_jiji)(a, b, c, d, e);
3497
+ k.dynCall_viijii = (a, b, c, d, e, f, g) => (k.dynCall_viijii = Z.dynCall_viijii)(a, b, c, d, e, f, g);
3498
+ k.dynCall_iiiiij = (a, b, c, d, e, f, g) => (k.dynCall_iiiiij = Z.dynCall_iiiiij)(a, b, c, d, e, f, g);
3499
+ k.dynCall_iiiiijj = (a, b, c, d, e, f, g, h, m) => (k.dynCall_iiiiijj = Z.dynCall_iiiiijj)(a, b, c, d, e, f, g, h, m);
3500
+ k.dynCall_iiiiiijj = (a, b, c, d, e, f, g, h, m, l) => (k.dynCall_iiiiiijj = Z.dynCall_iiiiiijj)(a, b, c, d, e, f, g, h, m, l);
3501
+ function ce(a, b, c) {
3502
+ var d = ge();
3505
3503
  try {
3506
- Rc(a)(b, c);
3504
+ Qc(a)(b, c);
3507
3505
  } catch (e) {
3508
- ge(d);
3506
+ fe(d);
3509
3507
  if (e !== e + 0) {
3510
3508
  throw e;
3511
3509
  }
3512
- fe(1, 0);
3510
+ ee(1, 0);
3513
3511
  }
3514
3512
  }
3515
- var ie;
3516
- Ga = function je() {
3517
- ie || ke();
3518
- ie || (Ga = je);
3513
+ var he;
3514
+ Fa = function ie() {
3515
+ he || je();
3516
+ he || (Fa = ie);
3519
3517
  };
3520
- function ke() {
3518
+ function je() {
3521
3519
  function a() {
3522
- if (!ie && (ie = !0, l.calledRun = !0, !va)) {
3523
- l.noFSInit || Vb || (Vb = !0, l.stdin = l.stdin, l.stdout = l.stdout, l.stderr = l.stderr, l.stdin ? Wb("stdin", l.stdin) : Rb("/dev/tty", "/dev/stdin"), l.stdout ? Wb("stdout", null, l.stdout) : Rb("/dev/tty", "/dev/stdout"), l.stderr ? Wb("stderr", null, l.stderr) : Rb("/dev/tty1", "/dev/stderr"), Sb("/dev/stdin", 0), Sb("/dev/stdout", 1), Sb("/dev/stderr", 1));
3524
- Ab = !1;
3525
- Ua(Ba);
3526
- aa(l);
3527
- if (l.onRuntimeInitialized) {
3528
- l.onRuntimeInitialized();
3520
+ if (!he && (he = !0, k.calledRun = !0, !ua)) {
3521
+ k.noFSInit || Ub || (Ub = !0, k.stdin = k.stdin, k.stdout = k.stdout, k.stderr = k.stderr, k.stdin ? Vb("stdin", k.stdin) : Qb("/dev/tty", "/dev/stdin"), k.stdout ? Vb("stdout", null, k.stdout) : Qb("/dev/tty", "/dev/stdout"), k.stderr ? Vb("stderr", null, k.stderr) : Qb("/dev/tty1", "/dev/stderr"), Rb("/dev/stdin", 0), Rb("/dev/stdout", 1), Rb("/dev/stderr", 1));
3522
+ zb = !1;
3523
+ Ta(Aa);
3524
+ aa(k);
3525
+ if (k.onRuntimeInitialized) {
3526
+ k.onRuntimeInitialized();
3529
3527
  }
3530
- if (l.postRun) {
3531
- for ("function" == typeof l.postRun && (l.postRun = [l.postRun]); l.postRun.length;) {
3532
- var b = l.postRun.shift();
3533
- Ca.unshift(b);
3528
+ if (k.postRun) {
3529
+ for ("function" == typeof k.postRun && (k.postRun = [k.postRun]); k.postRun.length;) {
3530
+ var b = k.postRun.shift();
3531
+ Ba.unshift(b);
3534
3532
  }
3535
3533
  }
3536
- Ua(Ca);
3534
+ Ta(Ba);
3537
3535
  }
3538
3536
  }
3539
- if (!(0 < Ea)) {
3540
- if (l.preRun) {
3541
- for ("function" == typeof l.preRun && (l.preRun = [l.preRun]); l.preRun.length;) {
3542
- Da();
3537
+ if (!(0 < Da)) {
3538
+ if (k.preRun) {
3539
+ for ("function" == typeof k.preRun && (k.preRun = [k.preRun]); k.preRun.length;) {
3540
+ Ca();
3543
3541
  }
3544
3542
  }
3545
- Ua(Aa);
3546
- 0 < Ea || (l.setStatus ? (l.setStatus("Running..."), setTimeout(function() {
3543
+ Ta(za);
3544
+ 0 < Da || (k.setStatus ? (k.setStatus("Running..."), setTimeout(function() {
3547
3545
  setTimeout(function() {
3548
- l.setStatus("");
3546
+ k.setStatus("");
3549
3547
  }, 1);
3550
3548
  a();
3551
3549
  }, 1)) : a());
3552
3550
  }
3553
3551
  }
3554
- if (l.preInit) {
3555
- for ("function" == typeof l.preInit && (l.preInit = [l.preInit]); 0 < l.preInit.length;) {
3556
- l.preInit.pop()();
3552
+ if (k.preInit) {
3553
+ for ("function" == typeof k.preInit && (k.preInit = [k.preInit]); 0 < k.preInit.length;) {
3554
+ k.preInit.pop()();
3557
3555
  }
3558
3556
  }
3559
- ke();
3557
+ je();
3560
3558
  moduleRtn = ca;
3561
3559
 
3562
3560