@rive-app/canvas-advanced 2.33.2 → 2.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/canvas_advanced.mjs +968 -960
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +1 -0
- package/rive_fallback.wasm +0 -0
package/canvas_advanced.mjs
CHANGED
|
@@ -22,8 +22,8 @@ function ha() {
|
|
|
22
22
|
console.error(n);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
this.
|
|
26
|
-
e && e.
|
|
25
|
+
this.ob();
|
|
26
|
+
e && e.Qb();
|
|
27
27
|
}
|
|
28
28
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
29
29
|
this.requestAnimationFrame = function(g) {
|
|
@@ -36,24 +36,24 @@ function ha() {
|
|
|
36
36
|
d.delete(g);
|
|
37
37
|
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
38
38
|
};
|
|
39
|
-
this.
|
|
39
|
+
this.Ob = function(g) {
|
|
40
40
|
f && (document.body.remove(f), f = null);
|
|
41
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
42
|
f.innerHTML = "RIVE FPS " + k.toFixed(1);
|
|
43
43
|
}, document.body.appendChild(f));
|
|
44
44
|
e = new function() {
|
|
45
45
|
let k = 0, p = 0;
|
|
46
|
-
this.
|
|
46
|
+
this.Qb = function() {
|
|
47
47
|
var n = performance.now();
|
|
48
48
|
p ? (++k, n -= p, 1000 < n && (g(1000 * k / n), k = p = 0)) : (p = n, k = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
52
|
-
this.
|
|
52
|
+
this.Lb = function() {
|
|
53
53
|
f && (document.body.remove(f), f = null);
|
|
54
54
|
e = null;
|
|
55
55
|
};
|
|
56
|
-
this.
|
|
56
|
+
this.ob = function() {
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
function ia(a) {
|
|
@@ -91,10 +91,10 @@ m.onRuntimeInitialized = function() {
|
|
|
91
91
|
};
|
|
92
92
|
m.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
|
|
93
93
|
this.__parent.__construct.call(this);
|
|
94
|
-
this.
|
|
94
|
+
this.Eb = e;
|
|
95
95
|
}, loadContents:function(e, f) {
|
|
96
96
|
e = m.ptrToAsset(e);
|
|
97
|
-
return this.
|
|
97
|
+
return this.Eb(e, f);
|
|
98
98
|
},});
|
|
99
99
|
m.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
100
100
|
this.__parent.__construct.call(this);
|
|
@@ -119,11 +119,11 @@ m.onRuntimeInitialized = function() {
|
|
|
119
119
|
},});
|
|
120
120
|
m.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
121
121
|
this.__parent.__construct.call(this);
|
|
122
|
-
this.
|
|
122
|
+
this.kb = [];
|
|
123
123
|
}, addLoader:function(e) {
|
|
124
|
-
this.
|
|
124
|
+
this.kb.push(e);
|
|
125
125
|
}, loadContents:function(e, f) {
|
|
126
|
-
for (let g of this.
|
|
126
|
+
for (let g of this.kb) {
|
|
127
127
|
if (g.loadContents(e, f)) {
|
|
128
128
|
return !0;
|
|
129
129
|
}
|
|
@@ -139,84 +139,84 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
139
139
|
function a() {
|
|
140
140
|
if (!b) {
|
|
141
141
|
var l = document.createElement("canvas"), u = {alpha:1, depth:0, stencil:0, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:1, renderViaOffscreenBackBuffer:1,};
|
|
142
|
-
let
|
|
142
|
+
let r;
|
|
143
143
|
if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
|
|
144
|
-
if (
|
|
144
|
+
if (r = l.getContext("webgl", u), c = 1, !r) {
|
|
145
145
|
return console.log("No WebGL support. Image mesh will not be drawn."), !1;
|
|
146
146
|
}
|
|
147
147
|
} else {
|
|
148
|
-
if (
|
|
148
|
+
if (r = l.getContext("webgl2", u)) {
|
|
149
149
|
c = 2;
|
|
150
150
|
} else {
|
|
151
|
-
if (
|
|
151
|
+
if (r = l.getContext("webgl", u)) {
|
|
152
152
|
c = 1;
|
|
153
153
|
} else {
|
|
154
154
|
return console.log("No WebGL support. Image mesh will not be drawn."), !1;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
|
|
159
|
-
if (
|
|
160
|
-
if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof
|
|
158
|
+
r = new Proxy(r, {get(G, w) {
|
|
159
|
+
if (G.isContextLost()) {
|
|
160
|
+
if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof G[w]) {
|
|
161
161
|
return function() {
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
} else {
|
|
165
|
-
return "function" === typeof
|
|
166
|
-
return
|
|
167
|
-
} :
|
|
165
|
+
return "function" === typeof G[w] ? function(...M) {
|
|
166
|
+
return G[w].apply(G, M);
|
|
167
|
+
} : G[w];
|
|
168
168
|
}
|
|
169
|
-
}, set(
|
|
170
|
-
if (
|
|
169
|
+
}, set(G, w, M) {
|
|
170
|
+
if (G.isContextLost()) {
|
|
171
171
|
p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + w), p = !0);
|
|
172
172
|
} else {
|
|
173
|
-
return
|
|
173
|
+
return G[w] = M, !0;
|
|
174
174
|
}
|
|
175
175
|
},});
|
|
176
|
-
d = Math.min(
|
|
177
|
-
function
|
|
178
|
-
w =
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
M =
|
|
176
|
+
d = Math.min(r.getParameter(r.MAX_RENDERBUFFER_SIZE), r.getParameter(r.MAX_TEXTURE_SIZE));
|
|
177
|
+
function C(G, w, M) {
|
|
178
|
+
w = r.createShader(w);
|
|
179
|
+
r.shaderSource(w, M);
|
|
180
|
+
r.compileShader(w);
|
|
181
|
+
M = r.getShaderInfoLog(w);
|
|
182
182
|
if (0 < (M || "").length) {
|
|
183
183
|
throw M;
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
r.attachShader(G, w);
|
|
186
186
|
}
|
|
187
|
-
l =
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
u =
|
|
187
|
+
l = r.createProgram();
|
|
188
|
+
C(l, r.VERTEX_SHADER, "attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }");
|
|
189
|
+
C(l, r.FRAGMENT_SHADER, "precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }");
|
|
190
|
+
r.bindAttribLocation(l, 0, "vertex");
|
|
191
|
+
r.bindAttribLocation(l, 1, "uv");
|
|
192
|
+
r.linkProgram(l);
|
|
193
|
+
u = r.getProgramInfoLog(l);
|
|
194
194
|
if (0 < (u || "").trim().length) {
|
|
195
195
|
throw u;
|
|
196
196
|
}
|
|
197
|
-
e =
|
|
198
|
-
f =
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
b =
|
|
197
|
+
e = r.getUniformLocation(l, "mat");
|
|
198
|
+
f = r.getUniformLocation(l, "translate");
|
|
199
|
+
r.useProgram(l);
|
|
200
|
+
r.bindBuffer(r.ARRAY_BUFFER, r.createBuffer());
|
|
201
|
+
r.enableVertexAttribArray(0);
|
|
202
|
+
r.enableVertexAttribArray(1);
|
|
203
|
+
r.bindBuffer(r.ELEMENT_ARRAY_BUFFER, r.createBuffer());
|
|
204
|
+
r.uniform1i(r.getUniformLocation(l, "image"), 0);
|
|
205
|
+
r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0);
|
|
206
|
+
b = r;
|
|
207
207
|
}
|
|
208
208
|
return !0;
|
|
209
209
|
}
|
|
210
210
|
let b = null, c = 0, d = 0, e = null, f = null, g = 0, k = 0, p = !1;
|
|
211
211
|
a();
|
|
212
|
-
this.
|
|
212
|
+
this.bc = function() {
|
|
213
213
|
a();
|
|
214
214
|
return d;
|
|
215
215
|
};
|
|
216
|
-
this.
|
|
216
|
+
this.Kb = function(l) {
|
|
217
217
|
b.deleteTexture && b.deleteTexture(l);
|
|
218
218
|
};
|
|
219
|
-
this.
|
|
219
|
+
this.Jb = function(l) {
|
|
220
220
|
if (!a()) {
|
|
221
221
|
return null;
|
|
222
222
|
}
|
|
@@ -233,7 +233,7 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
233
233
|
return u;
|
|
234
234
|
};
|
|
235
235
|
const n = new ia(8), t = new ia(8), x = new ia(10), y = new ia(10);
|
|
236
|
-
this.
|
|
236
|
+
this.Nb = function(l, u, r, C, G) {
|
|
237
237
|
if (a()) {
|
|
238
238
|
var w = n.push(l), M = t.push(u);
|
|
239
239
|
if (b.canvas) {
|
|
@@ -245,43 +245,43 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
245
245
|
b.clearColor(0, 0, 0, 0);
|
|
246
246
|
b.clear(b.COLOR_BUFFER_BIT);
|
|
247
247
|
b.enable(b.SCISSOR_TEST);
|
|
248
|
-
|
|
249
|
-
w = x.push(
|
|
248
|
+
r.sort((J, Z) => Z.vb - J.vb);
|
|
249
|
+
w = x.push(C);
|
|
250
250
|
g != w && (b.bufferData(b.ARRAY_BUFFER, 8 * w, b.DYNAMIC_DRAW), g = w);
|
|
251
251
|
w = 0;
|
|
252
|
-
for (var
|
|
253
|
-
b.bufferSubData(b.ARRAY_BUFFER, w,
|
|
252
|
+
for (var T of r) {
|
|
253
|
+
b.bufferSubData(b.ARRAY_BUFFER, w, T.Ta), w += 4 * T.Ta.length;
|
|
254
254
|
}
|
|
255
|
-
console.assert(w == 4 *
|
|
256
|
-
for (var W of
|
|
257
|
-
b.bufferSubData(b.ARRAY_BUFFER, w, W.
|
|
255
|
+
console.assert(w == 4 * C);
|
|
256
|
+
for (var W of r) {
|
|
257
|
+
b.bufferSubData(b.ARRAY_BUFFER, w, W.Bb), w += 4 * W.Bb.length;
|
|
258
258
|
}
|
|
259
|
-
console.assert(w == 8 *
|
|
260
|
-
w = y.push(
|
|
259
|
+
console.assert(w == 8 * C);
|
|
260
|
+
w = y.push(G);
|
|
261
261
|
k != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), k = w);
|
|
262
|
-
|
|
263
|
-
for (var pa of
|
|
264
|
-
b.bufferSubData(b.ELEMENT_ARRAY_BUFFER,
|
|
262
|
+
T = 0;
|
|
263
|
+
for (var pa of r) {
|
|
264
|
+
b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, T, pa.indices), T += 2 * pa.indices.length;
|
|
265
265
|
}
|
|
266
|
-
console.assert(
|
|
266
|
+
console.assert(T == 2 * G);
|
|
267
267
|
pa = 0;
|
|
268
268
|
W = !0;
|
|
269
|
-
w =
|
|
270
|
-
for (const
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
const
|
|
275
|
-
b.uniform4f(e,
|
|
276
|
-
b.uniform2f(f,
|
|
269
|
+
w = T = 0;
|
|
270
|
+
for (const J of r) {
|
|
271
|
+
J.image.Ja != pa && (b.bindTexture(b.TEXTURE_2D, J.image.Ia || null), pa = J.image.Ja);
|
|
272
|
+
J.hc ? (b.scissor(J.Za, M - J.$a - J.jb, J.uc, J.jb), W = !0) : W && (b.scissor(0, M - u, l, u), W = !1);
|
|
273
|
+
r = 2 / l;
|
|
274
|
+
const Z = -2 / u;
|
|
275
|
+
b.uniform4f(e, J.ha[0] * r * J.Aa, J.ha[1] * Z * J.Ba, J.ha[2] * r * J.Aa, J.ha[3] * Z * J.Ba);
|
|
276
|
+
b.uniform2f(f, J.ha[4] * r * J.Aa + r * (J.Za - J.cc * J.Aa) - 1, J.ha[5] * Z * J.Ba + Z * (J.$a - J.dc * J.Ba) + 1);
|
|
277
277
|
b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
|
|
278
|
-
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 *
|
|
279
|
-
b.drawElements(b.TRIANGLES,
|
|
280
|
-
w += 4 *
|
|
281
|
-
|
|
278
|
+
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * C);
|
|
279
|
+
b.drawElements(b.TRIANGLES, J.indices.length, b.UNSIGNED_SHORT, T);
|
|
280
|
+
w += 4 * J.Ta.length;
|
|
281
|
+
T += 2 * J.indices.length;
|
|
282
282
|
}
|
|
283
|
-
console.assert(w == 4 *
|
|
284
|
-
console.assert(
|
|
283
|
+
console.assert(w == 4 * C);
|
|
284
|
+
console.assert(T == 2 * G);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
};
|
|
@@ -290,8 +290,8 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
290
290
|
};
|
|
291
291
|
}(), ma = m.onRuntimeInitialized;
|
|
292
292
|
m.onRuntimeInitialized = function() {
|
|
293
|
-
function a(
|
|
294
|
-
switch(
|
|
293
|
+
function a(q) {
|
|
294
|
+
switch(q) {
|
|
295
295
|
case n.srcOver:
|
|
296
296
|
return "source-over";
|
|
297
297
|
case n.screen:
|
|
@@ -326,295 +326,303 @@ m.onRuntimeInitialized = function() {
|
|
|
326
326
|
return "luminosity";
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
function b(
|
|
330
|
-
return "rgba(" + ((16711680 &
|
|
329
|
+
function b(q) {
|
|
330
|
+
return "rgba(" + ((16711680 & q) >>> 16) + "," + ((65280 & q) >>> 8) + "," + ((255 & q) >>> 0) + "," + ((4278190080 & q) >>> 24) / 255 + ")";
|
|
331
331
|
}
|
|
332
332
|
function c() {
|
|
333
|
-
0 < M.length && (la.
|
|
334
|
-
for (const
|
|
335
|
-
for (const v of
|
|
333
|
+
0 < M.length && (la.Nb(w.drawWidth(), w.drawHeight(), M, T, W), M = [], W = T = 0, w.reset(512, 512));
|
|
334
|
+
for (const q of G) {
|
|
335
|
+
for (const v of q.I) {
|
|
336
336
|
v();
|
|
337
337
|
}
|
|
338
|
-
|
|
338
|
+
q.I = [];
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
G.clear();
|
|
341
341
|
}
|
|
342
342
|
ma && ma();
|
|
343
343
|
var d = m.RenderPaintStyle;
|
|
344
344
|
const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, k = m.StrokeCap, p = m.StrokeJoin, n = m.BlendMode, t = d.fill, x = d.stroke, y = m.FillRule.evenOdd;
|
|
345
345
|
let l = 1;
|
|
346
|
-
var u = m.RenderImage.extend("CanvasRenderImage", {__construct:function({
|
|
346
|
+
var u = m.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, wa:v} = {}) {
|
|
347
347
|
this.__parent.__construct.call(this);
|
|
348
|
-
this.
|
|
348
|
+
this.Ja = l;
|
|
349
349
|
l = l + 1 & 2147483647 || 1;
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
350
|
+
this.la = q;
|
|
351
|
+
this.wa = v;
|
|
352
352
|
}, __destruct:function() {
|
|
353
|
-
this.
|
|
353
|
+
this.Ia && (la.Kb(this.Ia), URL.revokeObjectURL(this.Wa));
|
|
354
354
|
this.__parent.__destruct.call(this);
|
|
355
|
-
}, decode:function(
|
|
355
|
+
}, decode:function(q) {
|
|
356
356
|
var v = this;
|
|
357
|
-
v.
|
|
358
|
-
var
|
|
359
|
-
v.
|
|
360
|
-
|
|
361
|
-
v.
|
|
362
|
-
v.
|
|
363
|
-
v.size(
|
|
364
|
-
v.
|
|
357
|
+
v.wa && v.wa(v);
|
|
358
|
+
var H = new Image();
|
|
359
|
+
v.Wa = URL.createObjectURL(new Blob([q], {type:"image/png",}));
|
|
360
|
+
H.onload = function() {
|
|
361
|
+
v.Db = H;
|
|
362
|
+
v.Ia = la.Jb(H);
|
|
363
|
+
v.size(H.width, H.height);
|
|
364
|
+
v.la && v.la(v);
|
|
365
365
|
};
|
|
366
|
-
|
|
367
|
-
},}),
|
|
366
|
+
H.src = v.Wa;
|
|
367
|
+
},}), r = e.extend("CanvasRenderPath", {__construct:function() {
|
|
368
368
|
this.__parent.__construct.call(this);
|
|
369
|
-
this.
|
|
369
|
+
this.U = new Path2D();
|
|
370
370
|
}, rewind:function() {
|
|
371
|
-
this.
|
|
372
|
-
}, addPath:function(
|
|
373
|
-
var L = this.
|
|
374
|
-
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}, fillRule:function(
|
|
384
|
-
this.
|
|
385
|
-
}, moveTo:function(
|
|
386
|
-
this.
|
|
387
|
-
}, lineTo:function(
|
|
388
|
-
this.
|
|
389
|
-
}, cubicTo:function(
|
|
390
|
-
this.
|
|
371
|
+
this.U = new Path2D();
|
|
372
|
+
}, addPath:function(q, v, H, E, K, I, F) {
|
|
373
|
+
var L = this.U, aa = L.addPath;
|
|
374
|
+
q = q.U;
|
|
375
|
+
const R = new DOMMatrix();
|
|
376
|
+
R.a = v;
|
|
377
|
+
R.b = H;
|
|
378
|
+
R.c = E;
|
|
379
|
+
R.d = K;
|
|
380
|
+
R.e = I;
|
|
381
|
+
R.f = F;
|
|
382
|
+
aa.call(L, q, R);
|
|
383
|
+
}, fillRule:function(q) {
|
|
384
|
+
this.Va = q;
|
|
385
|
+
}, moveTo:function(q, v) {
|
|
386
|
+
this.U.moveTo(q, v);
|
|
387
|
+
}, lineTo:function(q, v) {
|
|
388
|
+
this.U.lineTo(q, v);
|
|
389
|
+
}, cubicTo:function(q, v, H, E, K, I) {
|
|
390
|
+
this.U.bezierCurveTo(q, v, H, E, K, I);
|
|
391
391
|
}, close:function() {
|
|
392
|
-
this.
|
|
393
|
-
},}),
|
|
394
|
-
this.
|
|
395
|
-
}, thickness:function(
|
|
396
|
-
this.
|
|
397
|
-
}, join:function(
|
|
398
|
-
switch(
|
|
392
|
+
this.U.closePath();
|
|
393
|
+
},}), C = f.extend("CanvasRenderPaint", {color:function(q) {
|
|
394
|
+
this.Xa = b(q);
|
|
395
|
+
}, thickness:function(q) {
|
|
396
|
+
this.Gb = q;
|
|
397
|
+
}, join:function(q) {
|
|
398
|
+
switch(q) {
|
|
399
399
|
case p.miter:
|
|
400
|
-
this.
|
|
400
|
+
this.Ha = "miter";
|
|
401
401
|
break;
|
|
402
402
|
case p.round:
|
|
403
|
-
this.
|
|
403
|
+
this.Ha = "round";
|
|
404
404
|
break;
|
|
405
405
|
case p.bevel:
|
|
406
|
-
this.
|
|
406
|
+
this.Ha = "bevel";
|
|
407
407
|
}
|
|
408
|
-
}, cap:function(
|
|
409
|
-
switch(
|
|
408
|
+
}, cap:function(q) {
|
|
409
|
+
switch(q) {
|
|
410
410
|
case k.butt:
|
|
411
|
-
this.
|
|
411
|
+
this.Ga = "butt";
|
|
412
412
|
break;
|
|
413
413
|
case k.round:
|
|
414
|
-
this.
|
|
414
|
+
this.Ga = "round";
|
|
415
415
|
break;
|
|
416
416
|
case k.square:
|
|
417
|
-
this.
|
|
417
|
+
this.Ga = "square";
|
|
418
418
|
}
|
|
419
|
-
}, style:function(
|
|
420
|
-
this.
|
|
421
|
-
}, blendMode:function(
|
|
422
|
-
this.
|
|
419
|
+
}, style:function(q) {
|
|
420
|
+
this.Fb = q;
|
|
421
|
+
}, blendMode:function(q) {
|
|
422
|
+
this.Cb = a(q);
|
|
423
423
|
}, clearGradient:function() {
|
|
424
|
-
this.
|
|
425
|
-
}, linearGradient:function(
|
|
426
|
-
this.
|
|
427
|
-
}, radialGradient:function(
|
|
428
|
-
this.
|
|
429
|
-
}, addStop:function(
|
|
430
|
-
this.
|
|
424
|
+
this.ja = null;
|
|
425
|
+
}, linearGradient:function(q, v, H, E) {
|
|
426
|
+
this.ja = {xb:q, yb:v, cb:H, eb:E, Qa:[],};
|
|
427
|
+
}, radialGradient:function(q, v, H, E) {
|
|
428
|
+
this.ja = {xb:q, yb:v, cb:H, eb:E, Qa:[], ac:!0,};
|
|
429
|
+
}, addStop:function(q, v) {
|
|
430
|
+
this.ja.Qa.push({color:q, stop:v,});
|
|
431
431
|
}, completeGradient:function() {
|
|
432
|
-
}, draw:function(
|
|
433
|
-
let
|
|
434
|
-
var
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
432
|
+
}, draw:function(q, v, H, E) {
|
|
433
|
+
let K = this.Fb;
|
|
434
|
+
var I = this.Xa, F = this.ja;
|
|
435
|
+
const L = q.globalCompositeOperation, aa = q.globalAlpha;
|
|
436
|
+
q.globalCompositeOperation = this.Cb;
|
|
437
|
+
q.globalAlpha = E;
|
|
438
|
+
if (null != F) {
|
|
439
|
+
I = F.xb;
|
|
440
|
+
const X = F.yb, S = F.cb;
|
|
441
|
+
var R = F.eb;
|
|
442
|
+
E = F.Qa;
|
|
443
|
+
F.ac ? (F = S - I, R -= X, I = q.createRadialGradient(I, X, 0, I, X, Math.sqrt(F * F + R * R))) : I = q.createLinearGradient(I, X, S, R);
|
|
444
|
+
for (let xa = 0, Ya = E.length; xa < Ya; xa++) {
|
|
445
|
+
F = E[xa], I.addColorStop(F.stop, b(F.color));
|
|
445
446
|
}
|
|
446
|
-
this.
|
|
447
|
-
this.
|
|
447
|
+
this.Xa = I;
|
|
448
|
+
this.ja = null;
|
|
448
449
|
}
|
|
449
|
-
switch(
|
|
450
|
+
switch(K) {
|
|
450
451
|
case x:
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
452
|
+
q.strokeStyle = I;
|
|
453
|
+
q.lineWidth = this.Gb;
|
|
454
|
+
q.lineCap = this.Ga;
|
|
455
|
+
q.lineJoin = this.Ha;
|
|
456
|
+
q.stroke(v);
|
|
456
457
|
break;
|
|
457
458
|
case t:
|
|
458
|
-
|
|
459
|
+
q.fillStyle = I, q.fill(v, H);
|
|
459
460
|
}
|
|
461
|
+
q.globalCompositeOperation = L;
|
|
462
|
+
q.globalAlpha = aa;
|
|
460
463
|
},});
|
|
461
|
-
const
|
|
462
|
-
let w = null, M = [],
|
|
463
|
-
var pa = m.CanvasRenderer = g.extend("Renderer", {__construct:function(
|
|
464
|
+
const G = new Set();
|
|
465
|
+
let w = null, M = [], T = 0, W = 0;
|
|
466
|
+
var pa = m.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
|
|
464
467
|
this.__parent.__construct.call(this);
|
|
465
|
-
this.
|
|
466
|
-
this.
|
|
467
|
-
this.
|
|
468
|
-
this.
|
|
468
|
+
this.T = [1, 0, 0, 1, 0, 0];
|
|
469
|
+
this.G = [1.0];
|
|
470
|
+
this.B = q.getContext("2d");
|
|
471
|
+
this.Ua = q;
|
|
472
|
+
this.I = [];
|
|
469
473
|
}, save:function() {
|
|
470
|
-
this.
|
|
471
|
-
this.
|
|
474
|
+
this.T.push(...this.T.slice(this.T.length - 6));
|
|
475
|
+
this.G.push(this.G[this.G.length - 1]);
|
|
476
|
+
this.I.push(this.B.save.bind(this.B));
|
|
472
477
|
}, restore:function() {
|
|
473
|
-
const
|
|
474
|
-
if (6 >
|
|
478
|
+
const q = this.T.length - 6;
|
|
479
|
+
if (6 > q) {
|
|
475
480
|
throw "restore() called without matching save().";
|
|
476
481
|
}
|
|
477
|
-
this.
|
|
478
|
-
this.
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
482
|
+
this.T.splice(q);
|
|
483
|
+
this.G.pop();
|
|
484
|
+
this.I.push(this.B.restore.bind(this.B));
|
|
485
|
+
}, transform:function(q, v, H, E, K, I) {
|
|
486
|
+
const F = this.T, L = F.length - 6;
|
|
487
|
+
F.splice(L, 6, F[L] * q + F[L + 2] * v, F[L + 1] * q + F[L + 3] * v, F[L] * H + F[L + 2] * E, F[L + 1] * H + F[L + 3] * E, F[L] * K + F[L + 2] * I + F[L + 4], F[L + 1] * K + F[L + 3] * I + F[L + 5]);
|
|
488
|
+
this.I.push(this.B.transform.bind(this.B, q, v, H, E, K, I));
|
|
489
|
+
}, rotate:function(q) {
|
|
490
|
+
const v = Math.sin(q);
|
|
491
|
+
q = Math.cos(q);
|
|
492
|
+
this.transform(q, v, -v, q, 0, 0);
|
|
493
|
+
}, modulateOpacity:function(q) {
|
|
494
|
+
this.G[this.G.length - 1] *= q;
|
|
495
|
+
}, _drawPath:function(q, v) {
|
|
496
|
+
this.I.push(v.draw.bind(v, this.B, q.U, q.Va === y ? "evenodd" : "nonzero", Math.max(0, this.G[this.G.length - 1])));
|
|
497
|
+
}, _drawRiveImage:function(q, v, H, E) {
|
|
498
|
+
var K = q.Db;
|
|
499
|
+
if (K) {
|
|
500
|
+
var I = this.B, F = a(H), L = Math.max(0, E * this.G[this.G.length - 1]);
|
|
501
|
+
this.I.push(function() {
|
|
502
|
+
I.globalCompositeOperation = F;
|
|
503
|
+
I.globalAlpha = L;
|
|
504
|
+
I.drawImage(K, 0, 0);
|
|
505
|
+
I.globalAlpha = 1;
|
|
498
506
|
});
|
|
499
507
|
}
|
|
500
|
-
}, _getMatrix:function(
|
|
501
|
-
const v = this.
|
|
502
|
-
for (let
|
|
503
|
-
|
|
508
|
+
}, _getMatrix:function(q) {
|
|
509
|
+
const v = this.T, H = v.length - 6;
|
|
510
|
+
for (let E = 0; 6 > E; ++E) {
|
|
511
|
+
q[E] = v[H + E];
|
|
504
512
|
}
|
|
505
|
-
}, _drawImageMesh:function(
|
|
513
|
+
}, _drawImageMesh:function(q, v, H, E, K, I, F, L, aa, R, X) {
|
|
506
514
|
v = this.B.canvas.width;
|
|
507
|
-
var
|
|
508
|
-
const
|
|
515
|
+
var S = this.B.canvas.height;
|
|
516
|
+
const xa = R - L, Ya = X - aa;
|
|
509
517
|
L = Math.max(L, 0);
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
const
|
|
514
|
-
console.assert(
|
|
515
|
-
console.assert(
|
|
516
|
-
if (!(0 >=
|
|
517
|
-
|
|
518
|
-
v =
|
|
519
|
-
var qa = Math.ceil(
|
|
520
|
-
|
|
521
|
-
qa >
|
|
522
|
-
ra >
|
|
523
|
-
w || (w = new m.DynamicRectanizer(
|
|
524
|
-
|
|
525
|
-
0 >
|
|
526
|
-
var $b =
|
|
527
|
-
M.push({
|
|
528
|
-
|
|
529
|
-
W +=
|
|
530
|
-
var
|
|
531
|
-
this.
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
518
|
+
aa = Math.max(aa, 0);
|
|
519
|
+
R = Math.min(R, v);
|
|
520
|
+
X = Math.min(X, S);
|
|
521
|
+
const Fa = R - L, Ga = X - aa;
|
|
522
|
+
console.assert(Fa <= Math.min(xa, v));
|
|
523
|
+
console.assert(Ga <= Math.min(Ya, S));
|
|
524
|
+
if (!(0 >= Fa || 0 >= Ga)) {
|
|
525
|
+
R = Fa < xa || Ga < Ya;
|
|
526
|
+
v = X = 1;
|
|
527
|
+
var qa = Math.ceil(Fa * X), ra = Math.ceil(Ga * v);
|
|
528
|
+
S = la.bc();
|
|
529
|
+
qa > S && (X *= S / qa, qa = S);
|
|
530
|
+
ra > S && (v *= S / ra, ra = S);
|
|
531
|
+
w || (w = new m.DynamicRectanizer(S), w.reset(512, 512));
|
|
532
|
+
S = w.addRect(qa, ra);
|
|
533
|
+
0 > S && (c(), G.add(this), S = w.addRect(qa, ra), console.assert(0 <= S));
|
|
534
|
+
var $b = S & 65535, ac = S >> 16;
|
|
535
|
+
M.push({ha:this.T.slice(this.T.length - 6), image:q, Za:$b, $a:ac, cc:L, dc:aa, uc:qa, jb:ra, Aa:X, Ba:v, Ta:new Float32Array(K), Bb:new Float32Array(I), indices:new Uint16Array(F), hc:R, vb:q.Ja << 1 | (R ? 1 : 0),});
|
|
536
|
+
T += K.length;
|
|
537
|
+
W += F.length;
|
|
538
|
+
var ya = this.B, od = a(H), pd = Math.max(0, E * this.G[this.G.length - 1]);
|
|
539
|
+
this.I.push(function() {
|
|
540
|
+
ya.save();
|
|
541
|
+
ya.resetTransform();
|
|
542
|
+
ya.globalCompositeOperation = od;
|
|
543
|
+
ya.globalAlpha = pd;
|
|
536
544
|
const bc = la.canvas();
|
|
537
|
-
bc &&
|
|
538
|
-
|
|
545
|
+
bc && ya.drawImage(bc, $b, ac, qa, ra, L, aa, Fa, Ga);
|
|
546
|
+
ya.restore();
|
|
539
547
|
});
|
|
540
548
|
}
|
|
541
|
-
}, _clipPath:function(
|
|
542
|
-
this.
|
|
549
|
+
}, _clipPath:function(q) {
|
|
550
|
+
this.I.push(this.B.clip.bind(this.B, q.U, q.Va === y ? "evenodd" : "nonzero"));
|
|
543
551
|
}, clear:function() {
|
|
544
|
-
|
|
545
|
-
this.
|
|
552
|
+
G.add(this);
|
|
553
|
+
this.I.push(this.B.clearRect.bind(this.B, 0, 0, this.Ua.width, this.Ua.height));
|
|
546
554
|
}, flush:function() {
|
|
547
|
-
}, translate:function(
|
|
548
|
-
this.transform(1, 0, 0, 1,
|
|
555
|
+
}, translate:function(q, v) {
|
|
556
|
+
this.transform(1, 0, 0, 1, q, v);
|
|
549
557
|
},});
|
|
550
|
-
m.makeRenderer = function(
|
|
551
|
-
const v = new pa(
|
|
552
|
-
return new Proxy(v, {get(
|
|
553
|
-
if ("function" === typeof
|
|
554
|
-
return function(...
|
|
555
|
-
return
|
|
558
|
+
m.makeRenderer = function(q) {
|
|
559
|
+
const v = new pa(q), H = v.B;
|
|
560
|
+
return new Proxy(v, {get(E, K) {
|
|
561
|
+
if ("function" === typeof E[K]) {
|
|
562
|
+
return function(...I) {
|
|
563
|
+
return E[K].apply(E, I);
|
|
556
564
|
};
|
|
557
565
|
}
|
|
558
|
-
if ("function" === typeof
|
|
559
|
-
if (-1 < ka.indexOf(
|
|
560
|
-
throw Error("RiveException: Method call to '" +
|
|
566
|
+
if ("function" === typeof H[K]) {
|
|
567
|
+
if (-1 < ka.indexOf(K)) {
|
|
568
|
+
throw Error("RiveException: Method call to '" + K + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
|
|
561
569
|
}
|
|
562
|
-
return function(...
|
|
563
|
-
v.
|
|
570
|
+
return function(...I) {
|
|
571
|
+
v.I.push(H[K].bind(H, ...I));
|
|
564
572
|
};
|
|
565
573
|
}
|
|
566
|
-
return
|
|
567
|
-
}, set(
|
|
568
|
-
if (
|
|
569
|
-
return v.
|
|
570
|
-
|
|
574
|
+
return E[K];
|
|
575
|
+
}, set(E, K, I) {
|
|
576
|
+
if (K in H) {
|
|
577
|
+
return v.I.push(() => {
|
|
578
|
+
H[K] = I;
|
|
571
579
|
}), !0;
|
|
572
580
|
}
|
|
573
581
|
},});
|
|
574
582
|
};
|
|
575
|
-
m.decodeImage = function(
|
|
576
|
-
(new u({
|
|
583
|
+
m.decodeImage = function(q, v) {
|
|
584
|
+
(new u({la:v})).decode(q);
|
|
577
585
|
};
|
|
578
586
|
m.renderFactory = {makeRenderPaint:function() {
|
|
579
|
-
return new
|
|
587
|
+
return new C();
|
|
580
588
|
}, makeRenderPath:function() {
|
|
581
|
-
return new
|
|
589
|
+
return new r();
|
|
582
590
|
}, makeRenderImage:function() {
|
|
583
|
-
let
|
|
584
|
-
return new u({
|
|
585
|
-
|
|
586
|
-
},
|
|
587
|
-
|
|
588
|
-
if (
|
|
589
|
-
const v =
|
|
590
|
-
v && (v(),
|
|
591
|
+
let q = Z;
|
|
592
|
+
return new u({wa:() => {
|
|
593
|
+
q.total++;
|
|
594
|
+
}, la:() => {
|
|
595
|
+
q.loaded++;
|
|
596
|
+
if (q.loaded === q.total) {
|
|
597
|
+
const v = q.ready;
|
|
598
|
+
v && (v(), q.ready = null);
|
|
591
599
|
}
|
|
592
600
|
},});
|
|
593
601
|
},};
|
|
594
|
-
let
|
|
595
|
-
m.load = function(
|
|
596
|
-
const
|
|
597
|
-
void 0 !== v &&
|
|
598
|
-
|
|
599
|
-
return new Promise(function(
|
|
600
|
-
let
|
|
601
|
-
|
|
602
|
-
|
|
602
|
+
let J = m.load, Z = null;
|
|
603
|
+
m.load = function(q, v, H = !0) {
|
|
604
|
+
const E = new m.FallbackFileAssetLoader();
|
|
605
|
+
void 0 !== v && E.addLoader(v);
|
|
606
|
+
H && (v = new m.CDNFileAssetLoader(), E.addLoader(v));
|
|
607
|
+
return new Promise(function(K) {
|
|
608
|
+
let I = null;
|
|
609
|
+
Z = {total:0, loaded:0, ready:function() {
|
|
610
|
+
K(I);
|
|
603
611
|
},};
|
|
604
|
-
|
|
605
|
-
0 ==
|
|
612
|
+
I = J(q, E);
|
|
613
|
+
0 == Z.total && K(I);
|
|
606
614
|
});
|
|
607
615
|
};
|
|
608
|
-
let
|
|
609
|
-
m.RendererWrapper.prototype.align = function(
|
|
610
|
-
|
|
616
|
+
let qd = m.RendererWrapper.prototype.align;
|
|
617
|
+
m.RendererWrapper.prototype.align = function(q, v, H, E, K = 1.0) {
|
|
618
|
+
qd.call(this, q, v, H, E, K);
|
|
611
619
|
};
|
|
612
620
|
d = new ha();
|
|
613
621
|
m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
614
622
|
m.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
615
|
-
m.enableFPSCounter = d.
|
|
616
|
-
m.disableFPSCounter = d.
|
|
617
|
-
d.
|
|
623
|
+
m.enableFPSCounter = d.Ob.bind(d);
|
|
624
|
+
m.disableFPSCounter = d.Lb;
|
|
625
|
+
d.ob = c;
|
|
618
626
|
m.resolveAnimationFrame = c;
|
|
619
627
|
m.cleanup = function() {
|
|
620
628
|
w && w.delete();
|
|
@@ -643,90 +651,90 @@ if (ea || fa) {
|
|
|
643
651
|
}
|
|
644
652
|
};
|
|
645
653
|
}
|
|
646
|
-
var wa = m.print || console.log.bind(console),
|
|
654
|
+
var wa = m.print || console.log.bind(console), za = m.printErr || console.error.bind(console);
|
|
647
655
|
Object.assign(m, na);
|
|
648
656
|
na = null;
|
|
649
657
|
m.thisProgram && (oa = m.thisProgram);
|
|
650
|
-
var
|
|
651
|
-
m.wasmBinary && (
|
|
652
|
-
var
|
|
653
|
-
function
|
|
654
|
-
var a =
|
|
658
|
+
var Aa;
|
|
659
|
+
m.wasmBinary && (Aa = m.wasmBinary);
|
|
660
|
+
var Ba, Ca = !1, z, A, Da, Ea, B, D, Ha, Ia;
|
|
661
|
+
function Ja() {
|
|
662
|
+
var a = Ba.buffer;
|
|
655
663
|
m.HEAP8 = z = new Int8Array(a);
|
|
656
|
-
m.HEAP16 =
|
|
664
|
+
m.HEAP16 = Da = new Int16Array(a);
|
|
657
665
|
m.HEAPU8 = A = new Uint8Array(a);
|
|
658
|
-
m.HEAPU16 =
|
|
666
|
+
m.HEAPU16 = Ea = new Uint16Array(a);
|
|
659
667
|
m.HEAP32 = B = new Int32Array(a);
|
|
660
|
-
m.HEAPU32 =
|
|
661
|
-
m.HEAPF32 =
|
|
662
|
-
m.HEAPF64 =
|
|
668
|
+
m.HEAPU32 = D = new Uint32Array(a);
|
|
669
|
+
m.HEAPF32 = Ha = new Float32Array(a);
|
|
670
|
+
m.HEAPF64 = Ia = new Float64Array(a);
|
|
663
671
|
}
|
|
664
|
-
var
|
|
665
|
-
function
|
|
672
|
+
var Ka = [], La = [], Ma = [];
|
|
673
|
+
function Na() {
|
|
666
674
|
var a = m.preRun.shift();
|
|
667
|
-
|
|
675
|
+
Ka.unshift(a);
|
|
668
676
|
}
|
|
669
|
-
var
|
|
670
|
-
function
|
|
677
|
+
var Oa = 0, Pa = null, Qa = null;
|
|
678
|
+
function Ra(a) {
|
|
671
679
|
m.onAbort?.(a);
|
|
672
680
|
a = "Aborted(" + a + ")";
|
|
673
|
-
|
|
674
|
-
|
|
681
|
+
za(a);
|
|
682
|
+
Ca = !0;
|
|
675
683
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
676
684
|
ca(a);
|
|
677
685
|
throw a;
|
|
678
686
|
}
|
|
679
|
-
var
|
|
680
|
-
function
|
|
681
|
-
if (a ==
|
|
682
|
-
return new Uint8Array(
|
|
687
|
+
var Sa = a => a.startsWith("data:application/octet-stream;base64,"), va = a => a.startsWith("file://"), Ta;
|
|
688
|
+
function Ua(a) {
|
|
689
|
+
if (a == Ta && Aa) {
|
|
690
|
+
return new Uint8Array(Aa);
|
|
683
691
|
}
|
|
684
692
|
if (ua) {
|
|
685
693
|
return ua(a);
|
|
686
694
|
}
|
|
687
695
|
throw "both async and sync fetching of the wasm failed";
|
|
688
696
|
}
|
|
689
|
-
function
|
|
690
|
-
return
|
|
697
|
+
function Va(a) {
|
|
698
|
+
return Aa ? Promise.resolve().then(() => Ua(a)) : new Promise((b, c) => {
|
|
691
699
|
ta(a, d => b(new Uint8Array(d)), () => {
|
|
692
700
|
try {
|
|
693
|
-
b(
|
|
701
|
+
b(Ua(a));
|
|
694
702
|
} catch (d) {
|
|
695
703
|
c(d);
|
|
696
704
|
}
|
|
697
705
|
});
|
|
698
706
|
});
|
|
699
707
|
}
|
|
700
|
-
function
|
|
701
|
-
return
|
|
702
|
-
|
|
703
|
-
|
|
708
|
+
function Wa(a, b, c) {
|
|
709
|
+
return Va(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
|
|
710
|
+
za(`failed to asynchronously prepare wasm: ${d}`);
|
|
711
|
+
Ra(d);
|
|
704
712
|
});
|
|
705
713
|
}
|
|
706
|
-
function
|
|
707
|
-
var c =
|
|
708
|
-
return
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
return
|
|
714
|
+
function Xa(a, b) {
|
|
715
|
+
var c = Ta;
|
|
716
|
+
return Aa || "function" != typeof WebAssembly.instantiateStreaming || Sa(c) || va(c) || "function" != typeof fetch ? Wa(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
717
|
+
za(`wasm streaming compile failed: ${e}`);
|
|
718
|
+
za("falling back to ArrayBuffer instantiation");
|
|
719
|
+
return Wa(c, a, b);
|
|
712
720
|
}));
|
|
713
721
|
}
|
|
714
|
-
var
|
|
722
|
+
var Za, $a, db = {490114:(a, b, c, d, e) => {
|
|
715
723
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
716
724
|
return 0;
|
|
717
725
|
}
|
|
718
726
|
if ("undefined" === typeof window.h) {
|
|
719
|
-
window.h = {
|
|
720
|
-
window.h.
|
|
721
|
-
window.h.
|
|
722
|
-
window.h.
|
|
723
|
-
window.h.
|
|
724
|
-
window.h.
|
|
725
|
-
window.h.
|
|
726
|
-
window.h.
|
|
727
|
+
window.h = {za:0};
|
|
728
|
+
window.h.J = {};
|
|
729
|
+
window.h.J.xa = a;
|
|
730
|
+
window.h.J.capture = b;
|
|
731
|
+
window.h.J.Ka = c;
|
|
732
|
+
window.h.ga = {};
|
|
733
|
+
window.h.ga.stopped = d;
|
|
734
|
+
window.h.ga.wb = e;
|
|
727
735
|
let f = window.h;
|
|
728
736
|
f.D = [];
|
|
729
|
-
f.
|
|
737
|
+
f.sc = function(g) {
|
|
730
738
|
for (var k = 0; k < f.D.length; ++k) {
|
|
731
739
|
if (null == f.D[k]) {
|
|
732
740
|
return f.D[k] = g, k;
|
|
@@ -735,7 +743,7 @@ var Xa, Ya, bb = {489554:(a, b, c, d, e) => {
|
|
|
735
743
|
f.D.push(g);
|
|
736
744
|
return f.D.length - 1;
|
|
737
745
|
};
|
|
738
|
-
f.
|
|
746
|
+
f.Ab = function(g) {
|
|
739
747
|
for (f.D[g] = null; 0 < f.D.length;) {
|
|
740
748
|
if (null == f.D[f.D.length - 1]) {
|
|
741
749
|
f.D.pop();
|
|
@@ -744,41 +752,41 @@ var Xa, Ya, bb = {489554:(a, b, c, d, e) => {
|
|
|
744
752
|
}
|
|
745
753
|
}
|
|
746
754
|
};
|
|
747
|
-
f.
|
|
755
|
+
f.Pc = function(g) {
|
|
748
756
|
for (var k = 0; k < f.D.length; ++k) {
|
|
749
757
|
if (f.D[k] == g) {
|
|
750
|
-
return f.
|
|
758
|
+
return f.Ab(k);
|
|
751
759
|
}
|
|
752
760
|
}
|
|
753
761
|
};
|
|
754
|
-
f.
|
|
762
|
+
f.qa = function(g) {
|
|
755
763
|
return f.D[g];
|
|
756
764
|
};
|
|
757
|
-
f.
|
|
765
|
+
f.Sa = ["touchend", "click"];
|
|
758
766
|
f.unlock = function() {
|
|
759
767
|
for (var g = 0; g < f.D.length; ++g) {
|
|
760
768
|
var k = f.D[g];
|
|
761
|
-
null != k && null != k.
|
|
762
|
-
|
|
769
|
+
null != k && null != k.L && k.state === f.ga.wb && k.L.resume().then(() => {
|
|
770
|
+
ab(k.pb);
|
|
763
771
|
}, p => {
|
|
764
772
|
console.error("Failed to resume audiocontext", p);
|
|
765
773
|
});
|
|
766
774
|
}
|
|
767
|
-
f.
|
|
775
|
+
f.Sa.map(function(p) {
|
|
768
776
|
document.removeEventListener(p, f.unlock, !0);
|
|
769
777
|
});
|
|
770
778
|
};
|
|
771
|
-
f.
|
|
779
|
+
f.Sa.map(function(g) {
|
|
772
780
|
document.addEventListener(g, f.unlock, !0);
|
|
773
781
|
});
|
|
774
782
|
}
|
|
775
|
-
window.h.
|
|
783
|
+
window.h.za += 1;
|
|
776
784
|
return 1;
|
|
777
|
-
},
|
|
778
|
-
"undefined" !== typeof window.h && (window.h.
|
|
785
|
+
}, 492292:() => {
|
|
786
|
+
"undefined" !== typeof window.h && (window.h.Sa.map(function(a) {
|
|
779
787
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
780
|
-
}), --window.h.
|
|
781
|
-
},
|
|
788
|
+
}), --window.h.za, 0 === window.h.za && delete window.h);
|
|
789
|
+
}, 492596:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 492700:() => {
|
|
782
790
|
try {
|
|
783
791
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
784
792
|
a.close();
|
|
@@ -786,33 +794,33 @@ var Xa, Ya, bb = {489554:(a, b, c, d, e) => {
|
|
|
786
794
|
} catch (c) {
|
|
787
795
|
return 0;
|
|
788
796
|
}
|
|
789
|
-
},
|
|
797
|
+
}, 492871:(a, b, c, d, e, f) => {
|
|
790
798
|
if ("undefined" === typeof window.h) {
|
|
791
799
|
return -1;
|
|
792
800
|
}
|
|
793
801
|
var g = {}, k = {};
|
|
794
|
-
a == window.h.
|
|
795
|
-
g.
|
|
796
|
-
g.
|
|
797
|
-
g.state = window.h.
|
|
802
|
+
a == window.h.J.xa && 0 != c && (k.sampleRate = c);
|
|
803
|
+
g.L = new (window.AudioContext || window.webkitAudioContext)(k);
|
|
804
|
+
g.L.suspend();
|
|
805
|
+
g.state = window.h.ga.stopped;
|
|
798
806
|
c = 0;
|
|
799
|
-
a != window.h.
|
|
800
|
-
g.
|
|
801
|
-
g.
|
|
802
|
-
if (null == g.
|
|
803
|
-
g.
|
|
807
|
+
a != window.h.J.xa && (c = b);
|
|
808
|
+
g.Z = g.L.createScriptProcessor(d, c, b);
|
|
809
|
+
g.Z.onaudioprocess = function(p) {
|
|
810
|
+
if (null == g.ra || 0 == g.ra.length) {
|
|
811
|
+
g.ra = new Float32Array(Ha.buffer, e, d * b);
|
|
804
812
|
}
|
|
805
|
-
if (a == window.h.
|
|
813
|
+
if (a == window.h.J.capture || a == window.h.J.Ka) {
|
|
806
814
|
for (var n = 0; n < b; n += 1) {
|
|
807
|
-
for (var t = p.inputBuffer.getChannelData(n), x = g.
|
|
815
|
+
for (var t = p.inputBuffer.getChannelData(n), x = g.ra, y = 0; y < d; y += 1) {
|
|
808
816
|
x[y * b + n] = t[y];
|
|
809
817
|
}
|
|
810
818
|
}
|
|
811
|
-
|
|
819
|
+
bb(f, d, e);
|
|
812
820
|
}
|
|
813
|
-
if (a == window.h.
|
|
814
|
-
for (
|
|
815
|
-
for (t = p.outputBuffer.getChannelData(n), x = g.
|
|
821
|
+
if (a == window.h.J.xa || a == window.h.J.Ka) {
|
|
822
|
+
for (cb(f, d, e), n = 0; n < p.outputBuffer.numberOfChannels; ++n) {
|
|
823
|
+
for (t = p.outputBuffer.getChannelData(n), x = g.ra, y = 0; y < d; y += 1) {
|
|
816
824
|
t[y] = x[y * b + n];
|
|
817
825
|
}
|
|
818
826
|
}
|
|
@@ -822,45 +830,45 @@ var Xa, Ya, bb = {489554:(a, b, c, d, e) => {
|
|
|
822
830
|
}
|
|
823
831
|
}
|
|
824
832
|
};
|
|
825
|
-
a != window.h.
|
|
826
|
-
g.
|
|
827
|
-
g.
|
|
828
|
-
g.
|
|
833
|
+
a != window.h.J.capture && a != window.h.J.Ka || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
|
|
834
|
+
g.Ca = g.L.createMediaStreamSource(p);
|
|
835
|
+
g.Ca.connect(g.Z);
|
|
836
|
+
g.Z.connect(g.L.destination);
|
|
829
837
|
}).catch(function(p) {
|
|
830
838
|
console.log("Failed to get user media: " + p);
|
|
831
839
|
});
|
|
832
|
-
a == window.h.
|
|
833
|
-
g.
|
|
834
|
-
return window.h.
|
|
835
|
-
},
|
|
836
|
-
a = window.h.
|
|
837
|
-
void 0 !== a.
|
|
838
|
-
}, a.
|
|
839
|
-
void 0 !== a.
|
|
840
|
-
a.
|
|
841
|
-
a.
|
|
842
|
-
a.
|
|
843
|
-
},
|
|
844
|
-
window.h.
|
|
845
|
-
},
|
|
846
|
-
a = window.h.
|
|
847
|
-
a.
|
|
848
|
-
a.state = window.h.
|
|
849
|
-
},
|
|
850
|
-
a = window.h.
|
|
851
|
-
a.
|
|
852
|
-
a.state = window.h.
|
|
853
|
-
}},
|
|
840
|
+
a == window.h.J.xa && g.Z.connect(g.L.destination);
|
|
841
|
+
g.pb = f;
|
|
842
|
+
return window.h.sc(g);
|
|
843
|
+
}, 495748:a => window.h.qa(a).L.sampleRate, 495821:a => {
|
|
844
|
+
a = window.h.qa(a);
|
|
845
|
+
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
846
|
+
}, a.Z.disconnect(), a.Z = void 0);
|
|
847
|
+
void 0 !== a.Ca && (a.Ca.disconnect(), a.Ca = void 0);
|
|
848
|
+
a.L.close();
|
|
849
|
+
a.L = void 0;
|
|
850
|
+
a.pb = void 0;
|
|
851
|
+
}, 496221:a => {
|
|
852
|
+
window.h.Ab(a);
|
|
853
|
+
}, 496271:a => {
|
|
854
|
+
a = window.h.qa(a);
|
|
855
|
+
a.L.resume();
|
|
856
|
+
a.state = window.h.ga.wb;
|
|
857
|
+
}, 496410:a => {
|
|
858
|
+
a = window.h.qa(a);
|
|
859
|
+
a.L.suspend();
|
|
860
|
+
a.state = window.h.ga.stopped;
|
|
861
|
+
}}, eb = a => {
|
|
854
862
|
for (; 0 < a.length;) {
|
|
855
863
|
a.shift()(m);
|
|
856
864
|
}
|
|
857
865
|
};
|
|
858
|
-
function
|
|
859
|
-
var a = B[+
|
|
860
|
-
|
|
866
|
+
function fb() {
|
|
867
|
+
var a = B[+gb >> 2];
|
|
868
|
+
gb += 4;
|
|
861
869
|
return a;
|
|
862
870
|
}
|
|
863
|
-
var
|
|
871
|
+
var hb = (a, b) => {
|
|
864
872
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
865
873
|
var e = a[d];
|
|
866
874
|
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
@@ -871,12 +879,12 @@ var fb = (a, b) => {
|
|
|
871
879
|
}
|
|
872
880
|
}
|
|
873
881
|
return a;
|
|
874
|
-
},
|
|
882
|
+
}, ib = a => {
|
|
875
883
|
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
876
|
-
(a =
|
|
884
|
+
(a = hb(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
877
885
|
a && c && (a += "/");
|
|
878
886
|
return (b ? "/" : "") + a;
|
|
879
|
-
},
|
|
887
|
+
}, jb = a => {
|
|
880
888
|
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
881
889
|
a = b[0];
|
|
882
890
|
b = b[1];
|
|
@@ -885,20 +893,20 @@ var fb = (a, b) => {
|
|
|
885
893
|
}
|
|
886
894
|
b &&= b.substr(0, b.length - 1);
|
|
887
895
|
return a + b;
|
|
888
|
-
},
|
|
896
|
+
}, kb = a => {
|
|
889
897
|
if ("/" === a) {
|
|
890
898
|
return "/";
|
|
891
899
|
}
|
|
892
|
-
a =
|
|
900
|
+
a = ib(a);
|
|
893
901
|
a = a.replace(/\/$/, "");
|
|
894
902
|
var b = a.lastIndexOf("/");
|
|
895
903
|
return -1 === b ? a : a.substr(b + 1);
|
|
896
|
-
},
|
|
904
|
+
}, lb = () => {
|
|
897
905
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
898
906
|
return a => crypto.getRandomValues(a);
|
|
899
907
|
}
|
|
900
|
-
|
|
901
|
-
},
|
|
908
|
+
Ra("initRandomDevice");
|
|
909
|
+
}, mb = a => (mb = lb())(a), nb = (...a) => {
|
|
902
910
|
for (var b = "", c = !1, d = a.length - 1; -1 <= d && !c; d--) {
|
|
903
911
|
c = 0 <= d ? a[d] : "/";
|
|
904
912
|
if ("string" != typeof c) {
|
|
@@ -910,15 +918,15 @@ var fb = (a, b) => {
|
|
|
910
918
|
b = c + "/" + b;
|
|
911
919
|
c = "/" === c.charAt(0);
|
|
912
920
|
}
|
|
913
|
-
b =
|
|
921
|
+
b = hb(b.split("/").filter(e => !!e), !c).join("/");
|
|
914
922
|
return (c ? "/" : "") + b || ".";
|
|
915
|
-
},
|
|
923
|
+
}, ob = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, pb = (a, b, c) => {
|
|
916
924
|
var d = b + c;
|
|
917
925
|
for (c = b; a[c] && !(c >= d);) {
|
|
918
926
|
++c;
|
|
919
927
|
}
|
|
920
|
-
if (16 < c - b && a.buffer &&
|
|
921
|
-
return
|
|
928
|
+
if (16 < c - b && a.buffer && ob) {
|
|
929
|
+
return ob.decode(a.subarray(b, c));
|
|
922
930
|
}
|
|
923
931
|
for (d = ""; b < c;) {
|
|
924
932
|
var e = a[b++];
|
|
@@ -936,13 +944,13 @@ var fb = (a, b) => {
|
|
|
936
944
|
}
|
|
937
945
|
}
|
|
938
946
|
return d;
|
|
939
|
-
},
|
|
947
|
+
}, qb = [], rb = a => {
|
|
940
948
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
941
949
|
var d = a.charCodeAt(c);
|
|
942
950
|
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
943
951
|
}
|
|
944
952
|
return b;
|
|
945
|
-
},
|
|
953
|
+
}, sb = (a, b, c, d) => {
|
|
946
954
|
if (!(0 < d)) {
|
|
947
955
|
return 0;
|
|
948
956
|
}
|
|
@@ -986,35 +994,35 @@ var fb = (a, b) => {
|
|
|
986
994
|
b[c] = 0;
|
|
987
995
|
return c - e;
|
|
988
996
|
};
|
|
989
|
-
function
|
|
990
|
-
var c = Array(
|
|
991
|
-
a =
|
|
997
|
+
function tb(a, b) {
|
|
998
|
+
var c = Array(rb(a) + 1);
|
|
999
|
+
a = sb(a, c, 0, c.length);
|
|
992
1000
|
b && (c.length = a);
|
|
993
1001
|
return c;
|
|
994
1002
|
}
|
|
995
|
-
var
|
|
996
|
-
function
|
|
997
|
-
|
|
998
|
-
|
|
1003
|
+
var ub = [];
|
|
1004
|
+
function vb(a, b) {
|
|
1005
|
+
ub[a] = {input:[], H:[], W:b};
|
|
1006
|
+
wb(a, xb);
|
|
999
1007
|
}
|
|
1000
|
-
var
|
|
1001
|
-
var b =
|
|
1008
|
+
var xb = {open(a) {
|
|
1009
|
+
var b = ub[a.node.ya];
|
|
1002
1010
|
if (!b) {
|
|
1003
1011
|
throw new N(43);
|
|
1004
1012
|
}
|
|
1005
1013
|
a.s = b;
|
|
1006
1014
|
a.seekable = !1;
|
|
1007
1015
|
}, close(a) {
|
|
1008
|
-
a.s.
|
|
1009
|
-
},
|
|
1010
|
-
a.s.
|
|
1016
|
+
a.s.W.pa(a.s);
|
|
1017
|
+
}, pa(a) {
|
|
1018
|
+
a.s.W.pa(a.s);
|
|
1011
1019
|
}, read(a, b, c, d) {
|
|
1012
|
-
if (!a.s || !a.s.
|
|
1020
|
+
if (!a.s || !a.s.W.ib) {
|
|
1013
1021
|
throw new N(60);
|
|
1014
1022
|
}
|
|
1015
1023
|
for (var e = 0, f = 0; f < d; f++) {
|
|
1016
1024
|
try {
|
|
1017
|
-
var g = a.s.
|
|
1025
|
+
var g = a.s.W.ib(a.s);
|
|
1018
1026
|
} catch (k) {
|
|
1019
1027
|
throw new N(29);
|
|
1020
1028
|
}
|
|
@@ -1030,82 +1038,82 @@ var vb = {open(a) {
|
|
|
1030
1038
|
e && (a.node.timestamp = Date.now());
|
|
1031
1039
|
return e;
|
|
1032
1040
|
}, write(a, b, c, d) {
|
|
1033
|
-
if (!a.s || !a.s.
|
|
1041
|
+
if (!a.s || !a.s.W.Na) {
|
|
1034
1042
|
throw new N(60);
|
|
1035
1043
|
}
|
|
1036
1044
|
try {
|
|
1037
1045
|
for (var e = 0; e < d; e++) {
|
|
1038
|
-
a.s.
|
|
1046
|
+
a.s.W.Na(a.s, b[c + e]);
|
|
1039
1047
|
}
|
|
1040
1048
|
} catch (f) {
|
|
1041
1049
|
throw new N(29);
|
|
1042
1050
|
}
|
|
1043
1051
|
d && (a.node.timestamp = Date.now());
|
|
1044
1052
|
return e;
|
|
1045
|
-
},},
|
|
1053
|
+
},}, yb = {ib() {
|
|
1046
1054
|
a: {
|
|
1047
|
-
if (!
|
|
1055
|
+
if (!qb.length) {
|
|
1048
1056
|
var a = null;
|
|
1049
1057
|
"undefined" != typeof window && "function" == typeof window.prompt && (a = window.prompt("Input: "), null !== a && (a += "\n"));
|
|
1050
1058
|
if (!a) {
|
|
1051
1059
|
a = null;
|
|
1052
1060
|
break a;
|
|
1053
1061
|
}
|
|
1054
|
-
|
|
1062
|
+
qb = tb(a, !0);
|
|
1055
1063
|
}
|
|
1056
|
-
a =
|
|
1064
|
+
a = qb.shift();
|
|
1057
1065
|
}
|
|
1058
1066
|
return a;
|
|
1059
|
-
},
|
|
1060
|
-
null === b || 10 === b ? (wa(
|
|
1061
|
-
},
|
|
1062
|
-
a.
|
|
1063
|
-
}, Xb() {
|
|
1064
|
-
return {zc:25856, Bc:5, yc:191, Ac:35387, xc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
|
|
1067
|
+
}, Na(a, b) {
|
|
1068
|
+
null === b || 10 === b ? (wa(pb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1069
|
+
}, pa(a) {
|
|
1070
|
+
a.H && 0 < a.H.length && (wa(pb(a.H, 0)), a.H = []);
|
|
1065
1071
|
}, Yb() {
|
|
1066
|
-
return 0;
|
|
1072
|
+
return {Ac:25856, Cc:5, zc:191, Bc:35387, yc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
|
|
1067
1073
|
}, Zb() {
|
|
1074
|
+
return 0;
|
|
1075
|
+
}, $b() {
|
|
1068
1076
|
return [24, 80];
|
|
1069
|
-
},},
|
|
1070
|
-
null === b || 10 === b ? (
|
|
1071
|
-
},
|
|
1072
|
-
a.
|
|
1077
|
+
},}, zb = {Na(a, b) {
|
|
1078
|
+
null === b || 10 === b ? (za(pb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1079
|
+
}, pa(a) {
|
|
1080
|
+
a.H && 0 < a.H.length && (za(pb(a.H, 0)), a.H = []);
|
|
1073
1081
|
},};
|
|
1074
|
-
function
|
|
1082
|
+
function Ab(a, b) {
|
|
1075
1083
|
var c = a.l ? a.l.length : 0;
|
|
1076
1084
|
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));
|
|
1077
1085
|
}
|
|
1078
|
-
var O = {
|
|
1086
|
+
var O = {O:null, V() {
|
|
1079
1087
|
return O.createNode(null, "/", 16895, 0);
|
|
1080
1088
|
}, createNode(a, b, c, d) {
|
|
1081
1089
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
1082
1090
|
throw new N(63);
|
|
1083
1091
|
}
|
|
1084
|
-
O.
|
|
1085
|
-
c =
|
|
1086
|
-
16384 === (c.mode & 61440) ? (c.j = O.
|
|
1092
|
+
O.O || (O.O = {dir:{node:{Y:O.j.Y, R:O.j.R, ka:O.j.ka, ua:O.j.ua, tb:O.j.tb, zb:O.j.zb, ub:O.j.ub, sb:O.j.sb, Da:O.j.Da}, stream:{ba:O.m.ba}}, file:{node:{Y:O.j.Y, R:O.j.R}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, Ya:O.m.Ya, lb:O.m.lb, nb:O.m.nb}}, link:{node:{Y:O.j.Y, R:O.j.R, ma:O.j.ma}, stream:{}}, ab:{node:{Y:O.j.Y, R:O.j.R}, stream:Bb}});
|
|
1093
|
+
c = Cb(a, b, c, d);
|
|
1094
|
+
16384 === (c.mode & 61440) ? (c.j = O.O.dir.node, c.m = O.O.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.j = O.O.ab.node, c.m = O.O.ab.stream);
|
|
1087
1095
|
c.timestamp = Date.now();
|
|
1088
1096
|
a && (a.l[b] = c, a.timestamp = c.timestamp);
|
|
1089
1097
|
return c;
|
|
1090
|
-
},
|
|
1098
|
+
}, Gc(a) {
|
|
1091
1099
|
return a.l ? a.l.subarray ? a.l.subarray(0, a.v) : new Uint8Array(a.l) : new Uint8Array(0);
|
|
1092
|
-
}, j:{
|
|
1100
|
+
}, j:{Y(a) {
|
|
1093
1101
|
var b = {};
|
|
1094
|
-
b.
|
|
1095
|
-
b.
|
|
1102
|
+
b.Ec = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
1103
|
+
b.Ic = a.id;
|
|
1096
1104
|
b.mode = a.mode;
|
|
1097
|
-
b.
|
|
1105
|
+
b.Lc = 1;
|
|
1098
1106
|
b.uid = 0;
|
|
1099
|
-
b.
|
|
1100
|
-
b.
|
|
1107
|
+
b.Hc = 0;
|
|
1108
|
+
b.ya = a.ya;
|
|
1101
1109
|
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;
|
|
1102
|
-
b.
|
|
1103
|
-
b.
|
|
1104
|
-
b.
|
|
1105
|
-
b.
|
|
1106
|
-
b.
|
|
1110
|
+
b.wc = new Date(a.timestamp);
|
|
1111
|
+
b.Kc = new Date(a.timestamp);
|
|
1112
|
+
b.Dc = new Date(a.timestamp);
|
|
1113
|
+
b.Hb = 4096;
|
|
1114
|
+
b.xc = Math.ceil(b.size / b.Hb);
|
|
1107
1115
|
return b;
|
|
1108
|
-
},
|
|
1116
|
+
}, R(a, b) {
|
|
1109
1117
|
void 0 !== b.mode && (a.mode = b.mode);
|
|
1110
1118
|
void 0 !== b.timestamp && (a.timestamp = b.timestamp);
|
|
1111
1119
|
if (void 0 !== b.size && (b = b.size, a.v != b)) {
|
|
@@ -1118,14 +1126,14 @@ var O = {N:null, U() {
|
|
|
1118
1126
|
a.v = b;
|
|
1119
1127
|
}
|
|
1120
1128
|
}
|
|
1121
|
-
},
|
|
1122
|
-
throw
|
|
1123
|
-
},
|
|
1129
|
+
}, ka() {
|
|
1130
|
+
throw Db[44];
|
|
1131
|
+
}, ua(a, b, c, d) {
|
|
1124
1132
|
return O.createNode(a, b, c, d);
|
|
1125
|
-
},
|
|
1133
|
+
}, tb(a, b, c) {
|
|
1126
1134
|
if (16384 === (a.mode & 61440)) {
|
|
1127
1135
|
try {
|
|
1128
|
-
var d =
|
|
1136
|
+
var d = Eb(b, c);
|
|
1129
1137
|
} catch (f) {
|
|
1130
1138
|
}
|
|
1131
1139
|
if (d) {
|
|
@@ -1139,27 +1147,27 @@ var O = {N:null, U() {
|
|
|
1139
1147
|
a.name = c;
|
|
1140
1148
|
b.l[c] = a;
|
|
1141
1149
|
b.timestamp = a.parent.timestamp;
|
|
1142
|
-
},
|
|
1150
|
+
}, zb(a, b) {
|
|
1143
1151
|
delete a.l[b];
|
|
1144
1152
|
a.timestamp = Date.now();
|
|
1145
|
-
},
|
|
1146
|
-
var c =
|
|
1153
|
+
}, ub(a, b) {
|
|
1154
|
+
var c = Eb(a, b), d;
|
|
1147
1155
|
for (d in c.l) {
|
|
1148
1156
|
throw new N(55);
|
|
1149
1157
|
}
|
|
1150
1158
|
delete a.l[b];
|
|
1151
1159
|
a.timestamp = Date.now();
|
|
1152
|
-
},
|
|
1160
|
+
}, sb(a) {
|
|
1153
1161
|
var b = [".", ".."], c;
|
|
1154
1162
|
for (c of Object.keys(a.l)) {
|
|
1155
1163
|
b.push(c);
|
|
1156
1164
|
}
|
|
1157
1165
|
return b;
|
|
1158
|
-
},
|
|
1166
|
+
}, Da(a, b, c) {
|
|
1159
1167
|
a = O.createNode(a, b, 41471, 0);
|
|
1160
1168
|
a.link = c;
|
|
1161
1169
|
return a;
|
|
1162
|
-
},
|
|
1170
|
+
}, ma(a) {
|
|
1163
1171
|
if (40960 !== (a.mode & 61440)) {
|
|
1164
1172
|
throw new N(28);
|
|
1165
1173
|
}
|
|
@@ -1196,7 +1204,7 @@ var O = {N:null, U() {
|
|
|
1196
1204
|
return a.l.set(b.subarray(c, c + d), e), d;
|
|
1197
1205
|
}
|
|
1198
1206
|
}
|
|
1199
|
-
|
|
1207
|
+
Ab(a, e + d);
|
|
1200
1208
|
if (a.l.subarray && b.subarray) {
|
|
1201
1209
|
a.l.set(b.subarray(c, c + d), e);
|
|
1202
1210
|
} else {
|
|
@@ -1206,16 +1214,16 @@ var O = {N:null, U() {
|
|
|
1206
1214
|
}
|
|
1207
1215
|
a.v = Math.max(a.v, e + d);
|
|
1208
1216
|
return d;
|
|
1209
|
-
},
|
|
1217
|
+
}, ba(a, b, c) {
|
|
1210
1218
|
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
1211
1219
|
if (0 > b) {
|
|
1212
1220
|
throw new N(28);
|
|
1213
1221
|
}
|
|
1214
1222
|
return b;
|
|
1215
|
-
},
|
|
1216
|
-
|
|
1223
|
+
}, Ya(a, b, c) {
|
|
1224
|
+
Ab(a.node, b + c);
|
|
1217
1225
|
a.node.v = Math.max(a.node.v, b + c);
|
|
1218
|
-
},
|
|
1226
|
+
}, lb(a, b, c, d, e) {
|
|
1219
1227
|
if (32768 !== (a.node.mode & 61440)) {
|
|
1220
1228
|
throw new N(43);
|
|
1221
1229
|
}
|
|
@@ -1225,7 +1233,7 @@ var O = {N:null, U() {
|
|
|
1225
1233
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
1226
1234
|
}
|
|
1227
1235
|
c = !0;
|
|
1228
|
-
|
|
1236
|
+
Ra();
|
|
1229
1237
|
b = void 0;
|
|
1230
1238
|
if (!b) {
|
|
1231
1239
|
throw new N(48);
|
|
@@ -1234,21 +1242,21 @@ var O = {N:null, U() {
|
|
|
1234
1242
|
} else {
|
|
1235
1243
|
c = !1, b = a.byteOffset;
|
|
1236
1244
|
}
|
|
1237
|
-
return {o:b,
|
|
1238
|
-
},
|
|
1245
|
+
return {o:b, vc:c};
|
|
1246
|
+
}, nb(a, b, c, d) {
|
|
1239
1247
|
O.m.write(a, b, 0, d, c, !1);
|
|
1240
1248
|
return 0;
|
|
1241
|
-
},},},
|
|
1249
|
+
},},}, Fb = (a, b) => {
|
|
1242
1250
|
var c = 0;
|
|
1243
1251
|
a && (c |= 365);
|
|
1244
1252
|
b && (c |= 146);
|
|
1245
1253
|
return c;
|
|
1246
|
-
},
|
|
1254
|
+
}, Gb = null, Hb = {}, Ib = [], Jb = 1, Kb = null, Lb = !0, N = class {
|
|
1247
1255
|
constructor(a) {
|
|
1248
1256
|
this.name = "ErrnoError";
|
|
1249
|
-
this
|
|
1257
|
+
this.aa = a;
|
|
1250
1258
|
}
|
|
1251
|
-
},
|
|
1259
|
+
}, Db = {}, Mb = class {
|
|
1252
1260
|
constructor() {
|
|
1253
1261
|
this.h = {};
|
|
1254
1262
|
this.node = null;
|
|
@@ -1265,18 +1273,18 @@ var O = {N:null, U() {
|
|
|
1265
1273
|
set position(a) {
|
|
1266
1274
|
this.h.position = a;
|
|
1267
1275
|
}
|
|
1268
|
-
},
|
|
1276
|
+
}, Nb = class {
|
|
1269
1277
|
constructor(a, b, c, d) {
|
|
1270
1278
|
a ||= this;
|
|
1271
1279
|
this.parent = a;
|
|
1272
|
-
this.
|
|
1273
|
-
this.
|
|
1274
|
-
this.id =
|
|
1280
|
+
this.V = a.V;
|
|
1281
|
+
this.va = null;
|
|
1282
|
+
this.id = Jb++;
|
|
1275
1283
|
this.name = b;
|
|
1276
1284
|
this.mode = c;
|
|
1277
1285
|
this.j = {};
|
|
1278
1286
|
this.m = {};
|
|
1279
|
-
this.
|
|
1287
|
+
this.ya = d;
|
|
1280
1288
|
}
|
|
1281
1289
|
get read() {
|
|
1282
1290
|
return 365 === (this.mode & 365);
|
|
@@ -1291,27 +1299,27 @@ var O = {N:null, U() {
|
|
|
1291
1299
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
1292
1300
|
}
|
|
1293
1301
|
};
|
|
1294
|
-
function
|
|
1295
|
-
a =
|
|
1302
|
+
function Ob(a, b = {}) {
|
|
1303
|
+
a = nb(a);
|
|
1296
1304
|
if (!a) {
|
|
1297
1305
|
return {path:"", node:null};
|
|
1298
1306
|
}
|
|
1299
|
-
b = Object.assign({
|
|
1300
|
-
if (8 < b.
|
|
1307
|
+
b = Object.assign({hb:!0, Pa:0}, b);
|
|
1308
|
+
if (8 < b.Pa) {
|
|
1301
1309
|
throw new N(32);
|
|
1302
1310
|
}
|
|
1303
1311
|
a = a.split("/").filter(g => !!g);
|
|
1304
|
-
for (var c =
|
|
1312
|
+
for (var c = Gb, d = "/", e = 0; e < a.length; e++) {
|
|
1305
1313
|
var f = e === a.length - 1;
|
|
1306
1314
|
if (f && b.parent) {
|
|
1307
1315
|
break;
|
|
1308
1316
|
}
|
|
1309
|
-
c =
|
|
1310
|
-
d =
|
|
1311
|
-
c.
|
|
1312
|
-
if (!f || b.
|
|
1317
|
+
c = Eb(c, a[e]);
|
|
1318
|
+
d = ib(d + "/" + a[e]);
|
|
1319
|
+
c.va && (!f || f && b.hb) && (c = c.va.root);
|
|
1320
|
+
if (!f || b.gb) {
|
|
1313
1321
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1314
|
-
if (c =
|
|
1322
|
+
if (c = Pb(d), d = nb(jb(d), c), c = Ob(d, {Pa:b.Pa + 1}).node, 40 < f++) {
|
|
1315
1323
|
throw new N(32);
|
|
1316
1324
|
}
|
|
1317
1325
|
}
|
|
@@ -1319,47 +1327,47 @@ function Mb(a, b = {}) {
|
|
|
1319
1327
|
}
|
|
1320
1328
|
return {path:d, node:c};
|
|
1321
1329
|
}
|
|
1322
|
-
function
|
|
1330
|
+
function Qb(a) {
|
|
1323
1331
|
for (var b;;) {
|
|
1324
1332
|
if (a === a.parent) {
|
|
1325
|
-
return a = a.
|
|
1333
|
+
return a = a.V.mb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
1326
1334
|
}
|
|
1327
1335
|
b = b ? `${a.name}/${b}` : a.name;
|
|
1328
1336
|
a = a.parent;
|
|
1329
1337
|
}
|
|
1330
1338
|
}
|
|
1331
|
-
function
|
|
1339
|
+
function Rb(a, b) {
|
|
1332
1340
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
1333
1341
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
1334
1342
|
}
|
|
1335
|
-
return (a + c >>> 0) %
|
|
1343
|
+
return (a + c >>> 0) % Kb.length;
|
|
1336
1344
|
}
|
|
1337
|
-
function
|
|
1338
|
-
var c = 16384 === (a.mode & 61440) ? (c =
|
|
1345
|
+
function Eb(a, b) {
|
|
1346
|
+
var c = 16384 === (a.mode & 61440) ? (c = Sb(a, "x")) ? c : a.j.ka ? 0 : 2 : 54;
|
|
1339
1347
|
if (c) {
|
|
1340
1348
|
throw new N(c);
|
|
1341
1349
|
}
|
|
1342
|
-
for (c =
|
|
1350
|
+
for (c = Kb[Rb(a.id, b)]; c; c = c.fc) {
|
|
1343
1351
|
var d = c.name;
|
|
1344
1352
|
if (c.parent.id === a.id && d === b) {
|
|
1345
1353
|
return c;
|
|
1346
1354
|
}
|
|
1347
1355
|
}
|
|
1348
|
-
return a.j.
|
|
1356
|
+
return a.j.ka(a, b);
|
|
1349
1357
|
}
|
|
1350
|
-
function
|
|
1351
|
-
a = new
|
|
1352
|
-
b =
|
|
1353
|
-
a.
|
|
1354
|
-
return
|
|
1358
|
+
function Cb(a, b, c, d) {
|
|
1359
|
+
a = new Nb(a, b, c, d);
|
|
1360
|
+
b = Rb(a.parent.id, a.name);
|
|
1361
|
+
a.fc = Kb[b];
|
|
1362
|
+
return Kb[b] = a;
|
|
1355
1363
|
}
|
|
1356
|
-
function
|
|
1364
|
+
function Tb(a) {
|
|
1357
1365
|
var b = ["r", "w", "rw"][a & 3];
|
|
1358
1366
|
a & 512 && (b += "w");
|
|
1359
1367
|
return b;
|
|
1360
1368
|
}
|
|
1361
|
-
function
|
|
1362
|
-
if (
|
|
1369
|
+
function Sb(a, b) {
|
|
1370
|
+
if (Lb) {
|
|
1363
1371
|
return 0;
|
|
1364
1372
|
}
|
|
1365
1373
|
if (!b.includes("r") || a.mode & 292) {
|
|
@@ -1371,120 +1379,120 @@ function Qb(a, b) {
|
|
|
1371
1379
|
}
|
|
1372
1380
|
return 0;
|
|
1373
1381
|
}
|
|
1374
|
-
function
|
|
1382
|
+
function Ub(a, b) {
|
|
1375
1383
|
try {
|
|
1376
|
-
return
|
|
1384
|
+
return Eb(a, b), 20;
|
|
1377
1385
|
} catch (c) {
|
|
1378
1386
|
}
|
|
1379
|
-
return
|
|
1387
|
+
return Sb(a, "wx");
|
|
1380
1388
|
}
|
|
1381
|
-
function
|
|
1382
|
-
a =
|
|
1389
|
+
function Vb(a) {
|
|
1390
|
+
a = Ib[a];
|
|
1383
1391
|
if (!a) {
|
|
1384
1392
|
throw new N(8);
|
|
1385
1393
|
}
|
|
1386
1394
|
return a;
|
|
1387
1395
|
}
|
|
1388
|
-
function
|
|
1389
|
-
a = Object.assign(new
|
|
1396
|
+
function Wb(a, b = -1) {
|
|
1397
|
+
a = Object.assign(new Mb(), a);
|
|
1390
1398
|
if (-1 == b) {
|
|
1391
1399
|
a: {
|
|
1392
1400
|
for (b = 0; 4096 >= b; b++) {
|
|
1393
|
-
if (!
|
|
1401
|
+
if (!Ib[b]) {
|
|
1394
1402
|
break a;
|
|
1395
1403
|
}
|
|
1396
1404
|
}
|
|
1397
1405
|
throw new N(33);
|
|
1398
1406
|
}
|
|
1399
1407
|
}
|
|
1400
|
-
a.
|
|
1401
|
-
return
|
|
1408
|
+
a.X = b;
|
|
1409
|
+
return Ib[b] = a;
|
|
1402
1410
|
}
|
|
1403
|
-
function
|
|
1404
|
-
a =
|
|
1405
|
-
a.m?.
|
|
1411
|
+
function Xb(a, b = -1) {
|
|
1412
|
+
a = Wb(a, b);
|
|
1413
|
+
a.m?.Fc?.(a);
|
|
1406
1414
|
return a;
|
|
1407
1415
|
}
|
|
1408
|
-
var
|
|
1409
|
-
a.m =
|
|
1416
|
+
var Bb = {open(a) {
|
|
1417
|
+
a.m = Hb[a.node.ya].m;
|
|
1410
1418
|
a.m.open?.(a);
|
|
1411
|
-
},
|
|
1419
|
+
}, ba() {
|
|
1412
1420
|
throw new N(70);
|
|
1413
1421
|
},};
|
|
1414
|
-
function
|
|
1415
|
-
|
|
1422
|
+
function wb(a, b) {
|
|
1423
|
+
Hb[a] = {m:b};
|
|
1416
1424
|
}
|
|
1417
|
-
function
|
|
1425
|
+
function Yb(a, b) {
|
|
1418
1426
|
var c = "/" === b;
|
|
1419
|
-
if (c &&
|
|
1427
|
+
if (c && Gb) {
|
|
1420
1428
|
throw new N(10);
|
|
1421
1429
|
}
|
|
1422
1430
|
if (!c && b) {
|
|
1423
|
-
var d =
|
|
1431
|
+
var d = Ob(b, {hb:!1});
|
|
1424
1432
|
b = d.path;
|
|
1425
1433
|
d = d.node;
|
|
1426
|
-
if (d.
|
|
1434
|
+
if (d.va) {
|
|
1427
1435
|
throw new N(10);
|
|
1428
1436
|
}
|
|
1429
1437
|
if (16384 !== (d.mode & 61440)) {
|
|
1430
1438
|
throw new N(54);
|
|
1431
1439
|
}
|
|
1432
1440
|
}
|
|
1433
|
-
b = {type:a,
|
|
1434
|
-
a = a.
|
|
1435
|
-
a.
|
|
1441
|
+
b = {type:a, Nc:{}, mb:b, ec:[]};
|
|
1442
|
+
a = a.V(b);
|
|
1443
|
+
a.V = b;
|
|
1436
1444
|
b.root = a;
|
|
1437
|
-
c ?
|
|
1445
|
+
c ? Gb = a : d && (d.va = b, d.V && d.V.ec.push(b));
|
|
1438
1446
|
}
|
|
1439
|
-
function
|
|
1440
|
-
var d =
|
|
1441
|
-
a =
|
|
1447
|
+
function Zb(a, b, c) {
|
|
1448
|
+
var d = Ob(a, {parent:!0}).node;
|
|
1449
|
+
a = kb(a);
|
|
1442
1450
|
if (!a || "." === a || ".." === a) {
|
|
1443
1451
|
throw new N(28);
|
|
1444
1452
|
}
|
|
1445
|
-
var e =
|
|
1453
|
+
var e = Ub(d, a);
|
|
1446
1454
|
if (e) {
|
|
1447
1455
|
throw new N(e);
|
|
1448
1456
|
}
|
|
1449
|
-
if (!d.j.
|
|
1457
|
+
if (!d.j.ua) {
|
|
1450
1458
|
throw new N(63);
|
|
1451
1459
|
}
|
|
1452
|
-
return d.j.
|
|
1460
|
+
return d.j.ua(d, a, b, c);
|
|
1453
1461
|
}
|
|
1454
1462
|
function cc(a) {
|
|
1455
|
-
return
|
|
1463
|
+
return Zb(a, 16895, 0);
|
|
1456
1464
|
}
|
|
1457
1465
|
function dc(a, b, c) {
|
|
1458
1466
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1459
|
-
|
|
1467
|
+
Zb(a, b | 8192, c);
|
|
1460
1468
|
}
|
|
1461
1469
|
function ec(a, b) {
|
|
1462
|
-
if (!
|
|
1470
|
+
if (!nb(a)) {
|
|
1463
1471
|
throw new N(44);
|
|
1464
1472
|
}
|
|
1465
|
-
var c =
|
|
1473
|
+
var c = Ob(b, {parent:!0}).node;
|
|
1466
1474
|
if (!c) {
|
|
1467
1475
|
throw new N(44);
|
|
1468
1476
|
}
|
|
1469
|
-
b =
|
|
1470
|
-
var d =
|
|
1477
|
+
b = kb(b);
|
|
1478
|
+
var d = Ub(c, b);
|
|
1471
1479
|
if (d) {
|
|
1472
1480
|
throw new N(d);
|
|
1473
1481
|
}
|
|
1474
|
-
if (!c.j.
|
|
1482
|
+
if (!c.j.Da) {
|
|
1475
1483
|
throw new N(63);
|
|
1476
1484
|
}
|
|
1477
|
-
c.j.
|
|
1485
|
+
c.j.Da(c, b, a);
|
|
1478
1486
|
}
|
|
1479
|
-
function
|
|
1480
|
-
a =
|
|
1487
|
+
function Pb(a) {
|
|
1488
|
+
a = Ob(a).node;
|
|
1481
1489
|
if (!a) {
|
|
1482
1490
|
throw new N(44);
|
|
1483
1491
|
}
|
|
1484
|
-
if (!a.j.
|
|
1492
|
+
if (!a.j.ma) {
|
|
1485
1493
|
throw new N(28);
|
|
1486
1494
|
}
|
|
1487
|
-
return
|
|
1495
|
+
return nb(Qb(a.parent), a.j.ma(a));
|
|
1488
1496
|
}
|
|
1489
1497
|
function fc(a, b, c) {
|
|
1490
1498
|
if ("" === a) {
|
|
@@ -1501,9 +1509,9 @@ function fc(a, b, c) {
|
|
|
1501
1509
|
if ("object" == typeof a) {
|
|
1502
1510
|
var e = a;
|
|
1503
1511
|
} else {
|
|
1504
|
-
a =
|
|
1512
|
+
a = ib(a);
|
|
1505
1513
|
try {
|
|
1506
|
-
e =
|
|
1514
|
+
e = Ob(a, {gb:!(b & 131072)}).node;
|
|
1507
1515
|
} catch (f) {
|
|
1508
1516
|
}
|
|
1509
1517
|
}
|
|
@@ -1514,7 +1522,7 @@ function fc(a, b, c) {
|
|
|
1514
1522
|
throw new N(20);
|
|
1515
1523
|
}
|
|
1516
1524
|
} else {
|
|
1517
|
-
e =
|
|
1525
|
+
e = Zb(a, c, 0), d = !0;
|
|
1518
1526
|
}
|
|
1519
1527
|
}
|
|
1520
1528
|
if (!e) {
|
|
@@ -1524,13 +1532,13 @@ function fc(a, b, c) {
|
|
|
1524
1532
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1525
1533
|
throw new N(54);
|
|
1526
1534
|
}
|
|
1527
|
-
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !==
|
|
1535
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Tb(b) || b & 512) ? 31 : Sb(e, Tb(b)) : 44)) {
|
|
1528
1536
|
throw new N(c);
|
|
1529
1537
|
}
|
|
1530
1538
|
if (b & 512 && !d) {
|
|
1531
1539
|
c = e;
|
|
1532
|
-
c = "string" == typeof c ?
|
|
1533
|
-
if (!c.j.
|
|
1540
|
+
c = "string" == typeof c ? Ob(c, {gb:!0}).node : c;
|
|
1541
|
+
if (!c.j.R) {
|
|
1534
1542
|
throw new N(63);
|
|
1535
1543
|
}
|
|
1536
1544
|
if (16384 === (c.mode & 61440)) {
|
|
@@ -1539,37 +1547,37 @@ function fc(a, b, c) {
|
|
|
1539
1547
|
if (32768 !== (c.mode & 61440)) {
|
|
1540
1548
|
throw new N(28);
|
|
1541
1549
|
}
|
|
1542
|
-
if (d =
|
|
1550
|
+
if (d = Sb(c, "w")) {
|
|
1543
1551
|
throw new N(d);
|
|
1544
1552
|
}
|
|
1545
|
-
c.j.
|
|
1553
|
+
c.j.R(c, {size:0, timestamp:Date.now()});
|
|
1546
1554
|
}
|
|
1547
1555
|
b &= -131713;
|
|
1548
|
-
e =
|
|
1556
|
+
e = Wb({node:e, path:Qb(e), flags:b, seekable:!0, position:0, m:e.m, tc:[], error:!1});
|
|
1549
1557
|
e.m.open && e.m.open(e);
|
|
1550
1558
|
!m.logReadFiles || b & 1 || (gc ||= {}, a in gc || (gc[a] = 1));
|
|
1551
1559
|
return e;
|
|
1552
1560
|
}
|
|
1553
1561
|
function hc(a, b, c) {
|
|
1554
|
-
if (null === a.
|
|
1562
|
+
if (null === a.X) {
|
|
1555
1563
|
throw new N(8);
|
|
1556
1564
|
}
|
|
1557
|
-
if (!a.seekable || !a.m.
|
|
1565
|
+
if (!a.seekable || !a.m.ba) {
|
|
1558
1566
|
throw new N(70);
|
|
1559
1567
|
}
|
|
1560
1568
|
if (0 != c && 1 != c && 2 != c) {
|
|
1561
1569
|
throw new N(28);
|
|
1562
1570
|
}
|
|
1563
|
-
a.position = a.m.
|
|
1564
|
-
a.
|
|
1571
|
+
a.position = a.m.ba(a, b, c);
|
|
1572
|
+
a.tc = [];
|
|
1565
1573
|
}
|
|
1566
1574
|
var ic;
|
|
1567
1575
|
function jc(a, b, c) {
|
|
1568
|
-
a =
|
|
1569
|
-
var d =
|
|
1576
|
+
a = ib("/dev/" + a);
|
|
1577
|
+
var d = Fb(!!b, !!c);
|
|
1570
1578
|
kc ||= 64;
|
|
1571
1579
|
var e = kc++ << 8 | 0;
|
|
1572
|
-
|
|
1580
|
+
wb(e, {open(f) {
|
|
1573
1581
|
f.seekable = !1;
|
|
1574
1582
|
}, close() {
|
|
1575
1583
|
c?.buffer?.length && c(10);
|
|
@@ -1604,7 +1612,7 @@ function jc(a, b, c) {
|
|
|
1604
1612
|
}});
|
|
1605
1613
|
dc(a, d, e);
|
|
1606
1614
|
}
|
|
1607
|
-
var kc, lc = {}, gc,
|
|
1615
|
+
var kc, lc = {}, gc, gb = void 0, mc = (a, b) => Object.defineProperty(b, "name", {value:a}), nc = [], oc = [], P, pc = a => {
|
|
1608
1616
|
if (!a) {
|
|
1609
1617
|
throw new P("Cannot use deleted val. handle = " + a);
|
|
1610
1618
|
}
|
|
@@ -1646,7 +1654,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1646
1654
|
}, uc = [], vc = () => {
|
|
1647
1655
|
for (; uc.length;) {
|
|
1648
1656
|
var a = uc.pop();
|
|
1649
|
-
a.g.
|
|
1657
|
+
a.g.fa = !1;
|
|
1650
1658
|
a["delete"]();
|
|
1651
1659
|
}
|
|
1652
1660
|
}, wc, xc = {}, yc = (a, b) => {
|
|
@@ -1654,7 +1662,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1654
1662
|
throw new P("ptr should not be undefined");
|
|
1655
1663
|
}
|
|
1656
1664
|
for (; a.C;) {
|
|
1657
|
-
b = a.
|
|
1665
|
+
b = a.na(b), a = a.C;
|
|
1658
1666
|
}
|
|
1659
1667
|
return b;
|
|
1660
1668
|
}, zc = {}, Cc = a => {
|
|
@@ -1677,7 +1685,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1677
1685
|
return null;
|
|
1678
1686
|
}
|
|
1679
1687
|
a = Gc(a, b, c.C);
|
|
1680
|
-
return null === a ? null : c.
|
|
1688
|
+
return null === a ? null : c.Mb(a);
|
|
1681
1689
|
}, Hc = {}, Ic = (a, b) => {
|
|
1682
1690
|
b = yc(a, b);
|
|
1683
1691
|
return xc[b];
|
|
@@ -1685,7 +1693,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1685
1693
|
if (!b.u || !b.o) {
|
|
1686
1694
|
throw new Jc("makeClassHandle requires ptr and ptrType");
|
|
1687
1695
|
}
|
|
1688
|
-
if (!!b.
|
|
1696
|
+
if (!!b.K !== !!b.F) {
|
|
1689
1697
|
throw new Jc("Both smartPtrType and smartPtr must be specified");
|
|
1690
1698
|
}
|
|
1691
1699
|
b.count = {value:1};
|
|
@@ -1697,7 +1705,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1697
1705
|
Fc = new FinalizationRegistry(b => {
|
|
1698
1706
|
b = b.g;
|
|
1699
1707
|
--b.count.value;
|
|
1700
|
-
0 === b.count.value && (b.F ? b.
|
|
1708
|
+
0 === b.count.value && (b.F ? b.K.P(b.F) : b.u.i.P(b.o));
|
|
1701
1709
|
});
|
|
1702
1710
|
Kc = b => {
|
|
1703
1711
|
var c = b.g;
|
|
@@ -1715,7 +1723,7 @@ var kc, lc = {}, gc, eb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1715
1723
|
}
|
|
1716
1724
|
};
|
|
1717
1725
|
function Oc(a) {
|
|
1718
|
-
return this.fromWireType(
|
|
1726
|
+
return this.fromWireType(D[a >> 2]);
|
|
1719
1727
|
}
|
|
1720
1728
|
var Pc = {}, Qc = {}, U = (a, b, c) => {
|
|
1721
1729
|
function d(k) {
|
|
@@ -1746,7 +1754,7 @@ function Sc(a, b, c = {}) {
|
|
|
1746
1754
|
throw new P(`type "${d}" must have a positive integer typeid pointer`);
|
|
1747
1755
|
}
|
|
1748
1756
|
if (zc.hasOwnProperty(a)) {
|
|
1749
|
-
if (c.
|
|
1757
|
+
if (c.Wb) {
|
|
1750
1758
|
return;
|
|
1751
1759
|
}
|
|
1752
1760
|
throw new P(`Cannot register type '${d}' twice`);
|
|
@@ -1776,7 +1784,7 @@ var Vc = (a, b, c) => {
|
|
|
1776
1784
|
return a[b].A[e.length].apply(this, e);
|
|
1777
1785
|
};
|
|
1778
1786
|
a[b].A = [];
|
|
1779
|
-
a[b].A[d.
|
|
1787
|
+
a[b].A[d.ea] = d;
|
|
1780
1788
|
}
|
|
1781
1789
|
}, Wc = (a, b, c) => {
|
|
1782
1790
|
if (m.hasOwnProperty(a)) {
|
|
@@ -1789,7 +1797,7 @@ var Vc = (a, b, c) => {
|
|
|
1789
1797
|
}
|
|
1790
1798
|
m[a].A[c] = b;
|
|
1791
1799
|
} else {
|
|
1792
|
-
m[a] = b, void 0 !== c && (m[a].
|
|
1800
|
+
m[a] = b, void 0 !== c && (m[a].Mc = c);
|
|
1793
1801
|
}
|
|
1794
1802
|
}, Xc = a => {
|
|
1795
1803
|
if (void 0 === a) {
|
|
@@ -1802,27 +1810,27 @@ var Vc = (a, b, c) => {
|
|
|
1802
1810
|
function Yc(a, b, c, d, e, f, g, k) {
|
|
1803
1811
|
this.name = a;
|
|
1804
1812
|
this.constructor = b;
|
|
1805
|
-
this.
|
|
1806
|
-
this.
|
|
1813
|
+
this.N = c;
|
|
1814
|
+
this.P = d;
|
|
1807
1815
|
this.C = e;
|
|
1808
|
-
this.
|
|
1809
|
-
this.
|
|
1810
|
-
this.
|
|
1811
|
-
this.
|
|
1816
|
+
this.Rb = f;
|
|
1817
|
+
this.na = g;
|
|
1818
|
+
this.Mb = k;
|
|
1819
|
+
this.qb = [];
|
|
1812
1820
|
}
|
|
1813
1821
|
var Zc = (a, b, c) => {
|
|
1814
1822
|
for (; b !== c;) {
|
|
1815
|
-
if (!b.
|
|
1823
|
+
if (!b.na) {
|
|
1816
1824
|
throw new P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
|
|
1817
1825
|
}
|
|
1818
|
-
a = b.
|
|
1826
|
+
a = b.na(a);
|
|
1819
1827
|
b = b.C;
|
|
1820
1828
|
}
|
|
1821
1829
|
return a;
|
|
1822
1830
|
};
|
|
1823
1831
|
function $c(a, b) {
|
|
1824
1832
|
if (null === b) {
|
|
1825
|
-
if (this.
|
|
1833
|
+
if (this.Ma) {
|
|
1826
1834
|
throw new P(`null is not a valid ${this.name}`);
|
|
1827
1835
|
}
|
|
1828
1836
|
return 0;
|
|
@@ -1837,12 +1845,12 @@ function $c(a, b) {
|
|
|
1837
1845
|
}
|
|
1838
1846
|
function bd(a, b) {
|
|
1839
1847
|
if (null === b) {
|
|
1840
|
-
if (this.
|
|
1848
|
+
if (this.Ma) {
|
|
1841
1849
|
throw new P(`null is not a valid ${this.name}`);
|
|
1842
1850
|
}
|
|
1843
|
-
if (this.
|
|
1844
|
-
var c = this.
|
|
1845
|
-
null !== a && a.push(this.
|
|
1851
|
+
if (this.ta) {
|
|
1852
|
+
var c = this.Oa();
|
|
1853
|
+
null !== a && a.push(this.P, c);
|
|
1846
1854
|
return c;
|
|
1847
1855
|
}
|
|
1848
1856
|
return 0;
|
|
@@ -1853,32 +1861,32 @@ function bd(a, b) {
|
|
|
1853
1861
|
if (!b.g.o) {
|
|
1854
1862
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1855
1863
|
}
|
|
1856
|
-
if (!this.
|
|
1857
|
-
throw new P(`Cannot convert argument of type ${b.g.
|
|
1864
|
+
if (!this.sa && b.g.u.sa) {
|
|
1865
|
+
throw new P(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1858
1866
|
}
|
|
1859
1867
|
c = Zc(b.g.o, b.g.u.i, this.i);
|
|
1860
|
-
if (this.
|
|
1868
|
+
if (this.ta) {
|
|
1861
1869
|
if (void 0 === b.g.F) {
|
|
1862
1870
|
throw new P("Passing raw pointer to smart pointer is illegal");
|
|
1863
1871
|
}
|
|
1864
|
-
switch(this.
|
|
1872
|
+
switch(this.nc) {
|
|
1865
1873
|
case 0:
|
|
1866
|
-
if (b.g.
|
|
1874
|
+
if (b.g.K === this) {
|
|
1867
1875
|
c = b.g.F;
|
|
1868
1876
|
} else {
|
|
1869
|
-
throw new P(`Cannot convert argument of type ${b.g.
|
|
1877
|
+
throw new P(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1870
1878
|
}
|
|
1871
1879
|
break;
|
|
1872
1880
|
case 1:
|
|
1873
1881
|
c = b.g.F;
|
|
1874
1882
|
break;
|
|
1875
1883
|
case 2:
|
|
1876
|
-
if (b.g.
|
|
1884
|
+
if (b.g.K === this) {
|
|
1877
1885
|
c = b.g.F;
|
|
1878
1886
|
} else {
|
|
1879
1887
|
var d = b.clone();
|
|
1880
|
-
c = this.
|
|
1881
|
-
null !== a && a.push(this.
|
|
1888
|
+
c = this.jc(c, qc(() => d["delete"]()));
|
|
1889
|
+
null !== a && a.push(this.P, c);
|
|
1882
1890
|
}
|
|
1883
1891
|
break;
|
|
1884
1892
|
default:
|
|
@@ -1889,7 +1897,7 @@ function bd(a, b) {
|
|
|
1889
1897
|
}
|
|
1890
1898
|
function cd(a, b) {
|
|
1891
1899
|
if (null === b) {
|
|
1892
|
-
if (this.
|
|
1900
|
+
if (this.Ma) {
|
|
1893
1901
|
throw new P(`null is not a valid ${this.name}`);
|
|
1894
1902
|
}
|
|
1895
1903
|
return 0;
|
|
@@ -1900,7 +1908,7 @@ function cd(a, b) {
|
|
|
1900
1908
|
if (!b.g.o) {
|
|
1901
1909
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1902
1910
|
}
|
|
1903
|
-
if (b.g.u.
|
|
1911
|
+
if (b.g.u.sa) {
|
|
1904
1912
|
throw new P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1905
1913
|
}
|
|
1906
1914
|
return Zc(b.g.o, b.g.u.i, this.i);
|
|
@@ -1908,22 +1916,22 @@ function cd(a, b) {
|
|
|
1908
1916
|
function dd(a, b, c, d, e, f, g, k, p, n, t) {
|
|
1909
1917
|
this.name = a;
|
|
1910
1918
|
this.i = b;
|
|
1911
|
-
this.
|
|
1912
|
-
this.
|
|
1913
|
-
this.
|
|
1914
|
-
this.
|
|
1915
|
-
this.
|
|
1916
|
-
this.
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1920
|
-
e || void 0 !== b.C ? this.toWireType = bd : (this.toWireType = d ? $c : cd, this.
|
|
1919
|
+
this.Ma = c;
|
|
1920
|
+
this.sa = d;
|
|
1921
|
+
this.ta = e;
|
|
1922
|
+
this.ic = f;
|
|
1923
|
+
this.nc = g;
|
|
1924
|
+
this.rb = k;
|
|
1925
|
+
this.Oa = p;
|
|
1926
|
+
this.jc = n;
|
|
1927
|
+
this.P = t;
|
|
1928
|
+
e || void 0 !== b.C ? this.toWireType = bd : (this.toWireType = d ? $c : cd, this.M = null);
|
|
1921
1929
|
}
|
|
1922
1930
|
var ed = (a, b, c) => {
|
|
1923
1931
|
if (!m.hasOwnProperty(a)) {
|
|
1924
1932
|
throw new Jc("Replacing nonexistent public symbol");
|
|
1925
1933
|
}
|
|
1926
|
-
void 0 !== m[a].A && void 0 !== c ? m[a].A[c] = b : (m[a] = b, m[a].
|
|
1934
|
+
void 0 !== m[a].A && void 0 !== c ? m[a].A[c] = b : (m[a] = b, m[a].ea = c);
|
|
1927
1935
|
}, fd = [], gd, hd = a => {
|
|
1928
1936
|
var b = fd[a];
|
|
1929
1937
|
b || (a >= fd.length && (fd.length = a + 1), fd[a] = b = gd.get(a));
|
|
@@ -1948,13 +1956,13 @@ var ed = (a, b, c) => {
|
|
|
1948
1956
|
};
|
|
1949
1957
|
function nd(a) {
|
|
1950
1958
|
for (var b = 1; b < a.length; ++b) {
|
|
1951
|
-
if (null !== a[b] && void 0 === a[b].
|
|
1959
|
+
if (null !== a[b] && void 0 === a[b].M) {
|
|
1952
1960
|
return !0;
|
|
1953
1961
|
}
|
|
1954
1962
|
}
|
|
1955
1963
|
return !1;
|
|
1956
1964
|
}
|
|
1957
|
-
function
|
|
1965
|
+
function rd(a, b, c, d, e) {
|
|
1958
1966
|
var f = b.length;
|
|
1959
1967
|
if (2 > f) {
|
|
1960
1968
|
throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
@@ -1971,32 +1979,32 @@ function qd(a, b, c, d, e) {
|
|
|
1971
1979
|
var u = b[1].toWireType(y, this);
|
|
1972
1980
|
x[1] = u;
|
|
1973
1981
|
}
|
|
1974
|
-
for (var
|
|
1975
|
-
t[
|
|
1982
|
+
for (var r = 0; r < n; ++r) {
|
|
1983
|
+
t[r] = b[r + 2].toWireType(y, l[r]), x.push(t[r]);
|
|
1976
1984
|
}
|
|
1977
1985
|
l = d(...x);
|
|
1978
1986
|
if (k) {
|
|
1979
1987
|
Nc(y);
|
|
1980
1988
|
} else {
|
|
1981
|
-
for (
|
|
1982
|
-
var
|
|
1983
|
-
null !== b[
|
|
1989
|
+
for (r = g ? 1 : 2; r < b.length; r++) {
|
|
1990
|
+
var C = 1 === r ? u : t[r - 2];
|
|
1991
|
+
null !== b[r].M && b[r].M(C);
|
|
1984
1992
|
}
|
|
1985
1993
|
}
|
|
1986
1994
|
u = p ? b[0].fromWireType(l) : void 0;
|
|
1987
1995
|
return u;
|
|
1988
1996
|
});
|
|
1989
1997
|
}
|
|
1990
|
-
var
|
|
1998
|
+
var sd = (a, b) => {
|
|
1991
1999
|
for (var c = [], d = 0; d < a; d++) {
|
|
1992
|
-
c.push(
|
|
2000
|
+
c.push(D[b + 4 * d >> 2]);
|
|
1993
2001
|
}
|
|
1994
2002
|
return c;
|
|
1995
|
-
},
|
|
2003
|
+
}, td = a => {
|
|
1996
2004
|
a = a.trim();
|
|
1997
2005
|
const b = a.indexOf("(");
|
|
1998
2006
|
return -1 !== b ? a.substr(0, b) : a;
|
|
1999
|
-
},
|
|
2007
|
+
}, ud = (a, b, c) => {
|
|
2000
2008
|
if (!(a instanceof Object)) {
|
|
2001
2009
|
throw new P(`${c} with invalid "this": ${a}`);
|
|
2002
2010
|
}
|
|
@@ -2007,13 +2015,13 @@ var rd = (a, b) => {
|
|
|
2007
2015
|
throw new P(`cannot call emscripten binding method ${c} on deleted object`);
|
|
2008
2016
|
}
|
|
2009
2017
|
return Zc(a.g.o, a.g.u.i, b.i);
|
|
2010
|
-
},
|
|
2018
|
+
}, vd = a => {
|
|
2011
2019
|
9 < a && 0 === --oc[a + 1] && (oc[a] = void 0, nc.push(a));
|
|
2012
|
-
},
|
|
2020
|
+
}, wd = {name:"emscripten::val", fromWireType:a => {
|
|
2013
2021
|
var b = pc(a);
|
|
2014
|
-
|
|
2022
|
+
vd(a);
|
|
2015
2023
|
return b;
|
|
2016
|
-
}, toWireType:(a, b) => qc(b), argPackAdvance:8, readValueFromPointer:Oc,
|
|
2024
|
+
}, toWireType:(a, b) => qc(b), argPackAdvance:8, readValueFromPointer:Oc, M:null,}, xd = (a, b, c) => {
|
|
2017
2025
|
switch(b) {
|
|
2018
2026
|
case 1:
|
|
2019
2027
|
return c ? function(d) {
|
|
@@ -2023,15 +2031,15 @@ var rd = (a, b) => {
|
|
|
2023
2031
|
};
|
|
2024
2032
|
case 2:
|
|
2025
2033
|
return c ? function(d) {
|
|
2026
|
-
return this.fromWireType(Ca[d >> 1]);
|
|
2027
|
-
} : function(d) {
|
|
2028
2034
|
return this.fromWireType(Da[d >> 1]);
|
|
2035
|
+
} : function(d) {
|
|
2036
|
+
return this.fromWireType(Ea[d >> 1]);
|
|
2029
2037
|
};
|
|
2030
2038
|
case 4:
|
|
2031
2039
|
return c ? function(d) {
|
|
2032
2040
|
return this.fromWireType(B[d >> 2]);
|
|
2033
2041
|
} : function(d) {
|
|
2034
|
-
return this.fromWireType(
|
|
2042
|
+
return this.fromWireType(D[d >> 2]);
|
|
2035
2043
|
};
|
|
2036
2044
|
default:
|
|
2037
2045
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
@@ -2042,49 +2050,49 @@ var rd = (a, b) => {
|
|
|
2042
2050
|
}
|
|
2043
2051
|
var b = typeof a;
|
|
2044
2052
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
2045
|
-
},
|
|
2053
|
+
}, yd = (a, b) => {
|
|
2046
2054
|
switch(b) {
|
|
2047
2055
|
case 4:
|
|
2048
2056
|
return function(c) {
|
|
2049
|
-
return this.fromWireType(
|
|
2057
|
+
return this.fromWireType(Ha[c >> 2]);
|
|
2050
2058
|
};
|
|
2051
2059
|
case 8:
|
|
2052
2060
|
return function(c) {
|
|
2053
|
-
return this.fromWireType(
|
|
2061
|
+
return this.fromWireType(Ia[c >> 3]);
|
|
2054
2062
|
};
|
|
2055
2063
|
default:
|
|
2056
2064
|
throw new TypeError(`invalid float width (${b}): ${a}`);
|
|
2057
2065
|
}
|
|
2058
|
-
},
|
|
2066
|
+
}, zd = (a, b, c) => {
|
|
2059
2067
|
switch(b) {
|
|
2060
2068
|
case 1:
|
|
2061
2069
|
return c ? d => z[d] : d => A[d];
|
|
2062
2070
|
case 2:
|
|
2063
|
-
return c ? d =>
|
|
2071
|
+
return c ? d => Da[d >> 1] : d => Ea[d >> 1];
|
|
2064
2072
|
case 4:
|
|
2065
|
-
return c ? d => B[d >> 2] : d =>
|
|
2073
|
+
return c ? d => B[d >> 2] : d => D[d >> 2];
|
|
2066
2074
|
default:
|
|
2067
2075
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
2068
2076
|
}
|
|
2069
|
-
},
|
|
2077
|
+
}, Ad = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, Bd = (a, b) => {
|
|
2070
2078
|
var c = a >> 1;
|
|
2071
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
2079
|
+
for (var d = c + b / 2; !(c >= d) && Ea[c];) {
|
|
2072
2080
|
++c;
|
|
2073
2081
|
}
|
|
2074
2082
|
c <<= 1;
|
|
2075
|
-
if (32 < c - a &&
|
|
2076
|
-
return
|
|
2083
|
+
if (32 < c - a && Ad) {
|
|
2084
|
+
return Ad.decode(A.subarray(a, c));
|
|
2077
2085
|
}
|
|
2078
2086
|
c = "";
|
|
2079
2087
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
2080
|
-
var e =
|
|
2088
|
+
var e = Da[a + 2 * d >> 1];
|
|
2081
2089
|
if (0 == e) {
|
|
2082
2090
|
break;
|
|
2083
2091
|
}
|
|
2084
2092
|
c += String.fromCharCode(e);
|
|
2085
2093
|
}
|
|
2086
2094
|
return c;
|
|
2087
|
-
},
|
|
2095
|
+
}, Cd = (a, b, c) => {
|
|
2088
2096
|
c ??= 2147483647;
|
|
2089
2097
|
if (2 > c) {
|
|
2090
2098
|
return 0;
|
|
@@ -2093,11 +2101,11 @@ var rd = (a, b) => {
|
|
|
2093
2101
|
var d = b;
|
|
2094
2102
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
2095
2103
|
for (var e = 0; e < c; ++e) {
|
|
2096
|
-
|
|
2104
|
+
Da[b >> 1] = a.charCodeAt(e), b += 2;
|
|
2097
2105
|
}
|
|
2098
|
-
|
|
2106
|
+
Da[b >> 1] = 0;
|
|
2099
2107
|
return b - d;
|
|
2100
|
-
},
|
|
2108
|
+
}, Dd = a => 2 * a.length, Ed = (a, b) => {
|
|
2101
2109
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
2102
2110
|
var e = B[a + 4 * c >> 2];
|
|
2103
2111
|
if (0 == e) {
|
|
@@ -2107,7 +2115,7 @@ var rd = (a, b) => {
|
|
|
2107
2115
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
2108
2116
|
}
|
|
2109
2117
|
return d;
|
|
2110
|
-
},
|
|
2118
|
+
}, Fd = (a, b, c) => {
|
|
2111
2119
|
c ??= 2147483647;
|
|
2112
2120
|
if (4 > c) {
|
|
2113
2121
|
return 0;
|
|
@@ -2128,47 +2136,47 @@ var rd = (a, b) => {
|
|
|
2128
2136
|
}
|
|
2129
2137
|
B[b >> 2] = 0;
|
|
2130
2138
|
return b - d;
|
|
2131
|
-
},
|
|
2139
|
+
}, Gd = a => {
|
|
2132
2140
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
2133
2141
|
var d = a.charCodeAt(c);
|
|
2134
2142
|
55296 <= d && 57343 >= d && ++c;
|
|
2135
2143
|
b += 4;
|
|
2136
2144
|
}
|
|
2137
2145
|
return b;
|
|
2138
|
-
},
|
|
2146
|
+
}, Hd = (a, b, c) => {
|
|
2139
2147
|
var d = [];
|
|
2140
2148
|
a = a.toWireType(d, c);
|
|
2141
|
-
d.length && (
|
|
2149
|
+
d.length && (D[b >> 2] = qc(d));
|
|
2142
2150
|
return a;
|
|
2143
|
-
},
|
|
2144
|
-
var b =
|
|
2151
|
+
}, Id = {}, Jd = a => {
|
|
2152
|
+
var b = Id[a];
|
|
2145
2153
|
return void 0 === b ? Q(a) : b;
|
|
2146
|
-
},
|
|
2147
|
-
var b =
|
|
2148
|
-
|
|
2154
|
+
}, Kd = [], Ld = a => {
|
|
2155
|
+
var b = Kd.length;
|
|
2156
|
+
Kd.push(a);
|
|
2149
2157
|
return b;
|
|
2150
|
-
},
|
|
2158
|
+
}, Md = (a, b) => {
|
|
2151
2159
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
2152
|
-
c[d] = Dc(
|
|
2160
|
+
c[d] = Dc(D[b + 4 * d >> 2], "parameter " + d);
|
|
2153
2161
|
}
|
|
2154
2162
|
return c;
|
|
2155
|
-
},
|
|
2156
|
-
if (!
|
|
2163
|
+
}, Nd = Reflect.construct, Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Qd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Rd = [], Sd = {}, Ud = () => {
|
|
2164
|
+
if (!Td) {
|
|
2157
2165
|
var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:oa || "./this.program"}, b;
|
|
2158
|
-
for (b in
|
|
2159
|
-
void 0 ===
|
|
2166
|
+
for (b in Sd) {
|
|
2167
|
+
void 0 === Sd[b] ? delete a[b] : a[b] = Sd[b];
|
|
2160
2168
|
}
|
|
2161
2169
|
var c = [];
|
|
2162
2170
|
for (b in a) {
|
|
2163
2171
|
c.push(`${b}=${a[b]}`);
|
|
2164
2172
|
}
|
|
2165
|
-
|
|
2173
|
+
Td = c;
|
|
2166
2174
|
}
|
|
2167
|
-
return
|
|
2168
|
-
},
|
|
2169
|
-
function e(l, u,
|
|
2175
|
+
return Td;
|
|
2176
|
+
}, Td, Vd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Wd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Xd = (a, b, c, d) => {
|
|
2177
|
+
function e(l, u, r) {
|
|
2170
2178
|
for (l = "number" == typeof l ? l.toString() : l || ""; l.length < u;) {
|
|
2171
|
-
l =
|
|
2179
|
+
l = r[0] + l;
|
|
2172
2180
|
}
|
|
2173
2181
|
return l;
|
|
2174
2182
|
}
|
|
@@ -2176,12 +2184,12 @@ var rd = (a, b) => {
|
|
|
2176
2184
|
return e(l, u, "0");
|
|
2177
2185
|
}
|
|
2178
2186
|
function g(l, u) {
|
|
2179
|
-
function
|
|
2180
|
-
return 0 >
|
|
2187
|
+
function r(G) {
|
|
2188
|
+
return 0 > G ? -1 : 0 < G ? 1 : 0;
|
|
2181
2189
|
}
|
|
2182
|
-
var
|
|
2183
|
-
0 === (
|
|
2184
|
-
return
|
|
2190
|
+
var C;
|
|
2191
|
+
0 === (C = r(l.getFullYear() - u.getFullYear())) && 0 === (C = r(l.getMonth() - u.getMonth())) && (C = r(l.getDate() - u.getDate()));
|
|
2192
|
+
return C;
|
|
2185
2193
|
}
|
|
2186
2194
|
function k(l) {
|
|
2187
2195
|
switch(l.getDay()) {
|
|
@@ -2202,60 +2210,60 @@ var rd = (a, b) => {
|
|
|
2202
2210
|
}
|
|
2203
2211
|
}
|
|
2204
2212
|
function p(l) {
|
|
2205
|
-
var u = l.
|
|
2206
|
-
for (l = new Date((new Date(l.
|
|
2207
|
-
var
|
|
2208
|
-
if (u >
|
|
2209
|
-
u -=
|
|
2213
|
+
var u = l.ca;
|
|
2214
|
+
for (l = new Date((new Date(l.da + 1900, 0, 1)).getTime()); 0 < u;) {
|
|
2215
|
+
var r = l.getMonth(), C = (Od(l.getFullYear()) ? Vd : Wd)[r];
|
|
2216
|
+
if (u > C - l.getDate()) {
|
|
2217
|
+
u -= C - l.getDate() + 1, l.setDate(1), 11 > r ? l.setMonth(r + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
|
|
2210
2218
|
} else {
|
|
2211
2219
|
l.setDate(l.getDate() + u);
|
|
2212
2220
|
break;
|
|
2213
2221
|
}
|
|
2214
2222
|
}
|
|
2215
|
-
|
|
2223
|
+
r = new Date(l.getFullYear() + 1, 0, 4);
|
|
2216
2224
|
u = k(new Date(l.getFullYear(), 0, 4));
|
|
2217
|
-
|
|
2218
|
-
return 0 >= g(u, l) ? 0 >= g(
|
|
2225
|
+
r = k(r);
|
|
2226
|
+
return 0 >= g(u, l) ? 0 >= g(r, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
|
|
2219
2227
|
}
|
|
2220
|
-
var n =
|
|
2221
|
-
d = {
|
|
2222
|
-
c = c ?
|
|
2228
|
+
var n = D[d + 40 >> 2];
|
|
2229
|
+
d = {qc:B[d >> 2], pc:B[d + 4 >> 2], Ea:B[d + 8 >> 2], Ra:B[d + 12 >> 2], Fa:B[d + 16 >> 2], da:B[d + 20 >> 2], S:B[d + 24 >> 2], ca:B[d + 28 >> 2], Oc:B[d + 32 >> 2], oc:B[d + 36 >> 2], rc:n ? n ? pb(A, n) : "" : ""};
|
|
2230
|
+
c = c ? pb(A, c) : "";
|
|
2223
2231
|
n = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2224
2232
|
for (var t in n) {
|
|
2225
2233
|
c = c.replace(new RegExp(t, "g"), n[t]);
|
|
2226
2234
|
}
|
|
2227
2235
|
var x = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
|
|
2228
|
-
n = {"%a":l => x[l.
|
|
2229
|
-
l = l.
|
|
2236
|
+
n = {"%a":l => x[l.S].substring(0, 3), "%A":l => x[l.S], "%b":l => y[l.Fa].substring(0, 3), "%B":l => y[l.Fa], "%C":l => f((l.da + 1900) / 100 | 0, 2), "%d":l => f(l.Ra, 2), "%e":l => e(l.Ra, 2, " "), "%g":l => p(l).toString().substring(2), "%G":p, "%H":l => f(l.Ea, 2), "%I":l => {
|
|
2237
|
+
l = l.Ea;
|
|
2230
2238
|
0 == l ? l = 12 : 12 < l && (l -= 12);
|
|
2231
2239
|
return f(l, 2);
|
|
2232
2240
|
}, "%j":l => {
|
|
2233
|
-
for (var u = 0,
|
|
2241
|
+
for (var u = 0, r = 0; r <= l.Fa - 1; u += (Od(l.da + 1900) ? Vd : Wd)[r++]) {
|
|
2234
2242
|
}
|
|
2235
|
-
return f(l.
|
|
2236
|
-
}, "%m":l => f(l.
|
|
2237
|
-
var u = Math.floor((l.
|
|
2238
|
-
2 >= (l.
|
|
2243
|
+
return f(l.Ra + u, 3);
|
|
2244
|
+
}, "%m":l => f(l.Fa + 1, 2), "%M":l => f(l.pc, 2), "%n":() => "\n", "%p":l => 0 <= l.Ea && 12 > l.Ea ? "AM" : "PM", "%S":l => f(l.qc, 2), "%t":() => "\t", "%u":l => l.S || 7, "%U":l => f(Math.floor((l.ca + 7 - l.S) / 7), 2), "%V":l => {
|
|
2245
|
+
var u = Math.floor((l.ca + 7 - (l.S + 6) % 7) / 7);
|
|
2246
|
+
2 >= (l.S + 371 - l.ca - 2) % 7 && u++;
|
|
2239
2247
|
if (u) {
|
|
2240
|
-
53 == u && (
|
|
2248
|
+
53 == u && (r = (l.S + 371 - l.ca) % 7, 4 == r || 3 == r && Od(l.da) || (u = 1));
|
|
2241
2249
|
} else {
|
|
2242
2250
|
u = 52;
|
|
2243
|
-
var
|
|
2244
|
-
(4 ==
|
|
2251
|
+
var r = (l.S + 7 - l.ca - 1) % 7;
|
|
2252
|
+
(4 == r || 5 == r && Od(l.da % 400 - 1)) && u++;
|
|
2245
2253
|
}
|
|
2246
2254
|
return f(u, 2);
|
|
2247
|
-
}, "%w":l => l.
|
|
2248
|
-
l = l.
|
|
2255
|
+
}, "%w":l => l.S, "%W":l => f(Math.floor((l.ca + 7 - (l.S + 6) % 7) / 7), 2), "%y":l => (l.da + 1900).toString().substring(2), "%Y":l => l.da + 1900, "%z":l => {
|
|
2256
|
+
l = l.oc;
|
|
2249
2257
|
var u = 0 <= l;
|
|
2250
2258
|
l = Math.abs(l) / 60;
|
|
2251
2259
|
return (u ? "+" : "-") + String("0000" + (l / 60 * 100 + l % 60)).slice(-4);
|
|
2252
|
-
}, "%Z":l => l.
|
|
2260
|
+
}, "%Z":l => l.rc, "%%":() => "%"};
|
|
2253
2261
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2254
2262
|
for (t in n) {
|
|
2255
2263
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), n[t](d)));
|
|
2256
2264
|
}
|
|
2257
2265
|
c = c.replace(/\0\0/g, "%");
|
|
2258
|
-
t =
|
|
2266
|
+
t = tb(c, !1);
|
|
2259
2267
|
if (t.length > b) {
|
|
2260
2268
|
return 0;
|
|
2261
2269
|
}
|
|
@@ -2263,24 +2271,24 @@ var rd = (a, b) => {
|
|
|
2263
2271
|
return t.length - 1;
|
|
2264
2272
|
};
|
|
2265
2273
|
[44].forEach(a => {
|
|
2266
|
-
|
|
2267
|
-
|
|
2274
|
+
Db[a] = new N(a);
|
|
2275
|
+
Db[a].stack = "<generic error, no stack>";
|
|
2268
2276
|
});
|
|
2269
|
-
|
|
2270
|
-
|
|
2277
|
+
Kb = Array(4096);
|
|
2278
|
+
Yb(O, "/");
|
|
2271
2279
|
cc("/tmp");
|
|
2272
2280
|
cc("/home");
|
|
2273
2281
|
cc("/home/web_user");
|
|
2274
2282
|
(function() {
|
|
2275
2283
|
cc("/dev");
|
|
2276
|
-
|
|
2284
|
+
wb(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2277
2285
|
dc("/dev/null", 259);
|
|
2278
|
-
|
|
2279
|
-
|
|
2286
|
+
vb(1280, yb);
|
|
2287
|
+
vb(1536, zb);
|
|
2280
2288
|
dc("/dev/tty", 1280);
|
|
2281
2289
|
dc("/dev/tty1", 1536);
|
|
2282
2290
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2283
|
-
0 === b && (b =
|
|
2291
|
+
0 === b && (b = mb(a).byteLength);
|
|
2284
2292
|
return a[--b];
|
|
2285
2293
|
};
|
|
2286
2294
|
jc("random", c);
|
|
@@ -2292,11 +2300,11 @@ cc("/home/web_user");
|
|
|
2292
2300
|
cc("/proc");
|
|
2293
2301
|
var a = cc("/proc/self");
|
|
2294
2302
|
cc("/proc/self/fd");
|
|
2295
|
-
|
|
2296
|
-
var b =
|
|
2297
|
-
b.j = {
|
|
2298
|
-
var e =
|
|
2299
|
-
c = {parent:null,
|
|
2303
|
+
Yb({V() {
|
|
2304
|
+
var b = Cb(a, "fd", 16895, 73);
|
|
2305
|
+
b.j = {ka(c, d) {
|
|
2306
|
+
var e = Vb(+d);
|
|
2307
|
+
c = {parent:null, V:{mb:"fake"}, j:{ma:() => e.path},};
|
|
2300
2308
|
return c.parent = c;
|
|
2301
2309
|
}};
|
|
2302
2310
|
return b;
|
|
@@ -2311,10 +2319,10 @@ P = m.BindingError = class extends Error {
|
|
|
2311
2319
|
oc.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
|
|
2312
2320
|
m.count_emval_handles = () => oc.length / 2 - 5 - nc.length;
|
|
2313
2321
|
sc = m.PureVirtualError = rc("PureVirtualError");
|
|
2314
|
-
for (var
|
|
2315
|
-
|
|
2322
|
+
for (var Yd = Array(256), Zd = 0; 256 > Zd; ++Zd) {
|
|
2323
|
+
Yd[Zd] = String.fromCharCode(Zd);
|
|
2316
2324
|
}
|
|
2317
|
-
tc =
|
|
2325
|
+
tc = Yd;
|
|
2318
2326
|
m.getInheritedInstanceCount = () => Object.keys(xc).length;
|
|
2319
2327
|
m.getLiveInheritedInstances = () => {
|
|
2320
2328
|
var a = [], b;
|
|
@@ -2342,56 +2350,56 @@ Object.assign(Uc.prototype, {isAliasOf:function(a) {
|
|
|
2342
2350
|
a.g = a.g;
|
|
2343
2351
|
var d = a.g.u.i;
|
|
2344
2352
|
for (a = a.g.o; b.C;) {
|
|
2345
|
-
c = b.
|
|
2353
|
+
c = b.na(c), b = b.C;
|
|
2346
2354
|
}
|
|
2347
2355
|
for (; d.C;) {
|
|
2348
|
-
a = d.
|
|
2356
|
+
a = d.na(a), d = d.C;
|
|
2349
2357
|
}
|
|
2350
2358
|
return b === d && c === a;
|
|
2351
2359
|
}, clone:function() {
|
|
2352
2360
|
this.g.o || Tc(this);
|
|
2353
|
-
if (this.g.
|
|
2361
|
+
if (this.g.ia) {
|
|
2354
2362
|
return this.g.count.value += 1, this;
|
|
2355
2363
|
}
|
|
2356
2364
|
var a = Kc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2357
|
-
a = a(c.call(b, d, {g:{value:{count:e.count,
|
|
2365
|
+
a = a(c.call(b, d, {g:{value:{count:e.count, fa:e.fa, ia:e.ia, o:e.o, u:e.u, F:e.F, K:e.K,},}}));
|
|
2358
2366
|
a.g.count.value += 1;
|
|
2359
|
-
a.g.
|
|
2367
|
+
a.g.fa = !1;
|
|
2360
2368
|
return a;
|
|
2361
2369
|
}, ["delete"]() {
|
|
2362
2370
|
this.g.o || Tc(this);
|
|
2363
|
-
if (this.g.
|
|
2371
|
+
if (this.g.fa && !this.g.ia) {
|
|
2364
2372
|
throw new P("Object already scheduled for deletion");
|
|
2365
2373
|
}
|
|
2366
2374
|
Ec(this);
|
|
2367
2375
|
var a = this.g;
|
|
2368
2376
|
--a.count.value;
|
|
2369
|
-
0 === a.count.value && (a.F ? a.
|
|
2370
|
-
this.g.
|
|
2377
|
+
0 === a.count.value && (a.F ? a.K.P(a.F) : a.u.i.P(a.o));
|
|
2378
|
+
this.g.ia || (this.g.F = void 0, this.g.o = void 0);
|
|
2371
2379
|
}, isDeleted:function() {
|
|
2372
2380
|
return !this.g.o;
|
|
2373
2381
|
}, deleteLater:function() {
|
|
2374
2382
|
this.g.o || Tc(this);
|
|
2375
|
-
if (this.g.
|
|
2383
|
+
if (this.g.fa && !this.g.ia) {
|
|
2376
2384
|
throw new P("Object already scheduled for deletion");
|
|
2377
2385
|
}
|
|
2378
2386
|
uc.push(this);
|
|
2379
2387
|
1 === uc.length && wc && wc(vc);
|
|
2380
|
-
this.g.
|
|
2388
|
+
this.g.fa = !0;
|
|
2381
2389
|
return this;
|
|
2382
2390
|
},});
|
|
2383
|
-
Object.assign(dd.prototype, {
|
|
2384
|
-
this.
|
|
2391
|
+
Object.assign(dd.prototype, {Sb(a) {
|
|
2392
|
+
this.rb && (a = this.rb(a));
|
|
2385
2393
|
return a;
|
|
2386
|
-
},
|
|
2387
|
-
this.
|
|
2394
|
+
}, bb(a) {
|
|
2395
|
+
this.P?.(a);
|
|
2388
2396
|
}, argPackAdvance:8, readValueFromPointer:Oc, fromWireType:function(a) {
|
|
2389
2397
|
function b() {
|
|
2390
|
-
return this.
|
|
2398
|
+
return this.ta ? Lc(this.i.N, {u:this.ic, o:c, K:this, F:a,}) : Lc(this.i.N, {u:this, o:a,});
|
|
2391
2399
|
}
|
|
2392
|
-
var c = this.
|
|
2400
|
+
var c = this.Sb(a);
|
|
2393
2401
|
if (!c) {
|
|
2394
|
-
return this.
|
|
2402
|
+
return this.bb(a), null;
|
|
2395
2403
|
}
|
|
2396
2404
|
var d = Ic(this.i, c);
|
|
2397
2405
|
if (void 0 !== d) {
|
|
@@ -2399,42 +2407,42 @@ Object.assign(dd.prototype, {Rb(a) {
|
|
|
2399
2407
|
return d.g.o = c, d.g.F = a, d.clone();
|
|
2400
2408
|
}
|
|
2401
2409
|
d = d.clone();
|
|
2402
|
-
this.
|
|
2410
|
+
this.bb(a);
|
|
2403
2411
|
return d;
|
|
2404
2412
|
}
|
|
2405
|
-
d = this.i.
|
|
2413
|
+
d = this.i.Rb(c);
|
|
2406
2414
|
d = Hc[d];
|
|
2407
2415
|
if (!d) {
|
|
2408
2416
|
return b.call(this);
|
|
2409
2417
|
}
|
|
2410
|
-
d = this.
|
|
2418
|
+
d = this.sa ? d.Ib : d.pointerType;
|
|
2411
2419
|
var e = Gc(c, this.i, d.i);
|
|
2412
|
-
return null === e ? b.call(this) : this.
|
|
2420
|
+
return null === e ? b.call(this) : this.ta ? Lc(d.i.N, {u:d, o:e, K:this, F:a,}) : Lc(d.i.N, {u:d, o:e,});
|
|
2413
2421
|
},});
|
|
2414
2422
|
ld = m.UnboundTypeError = rc("UnboundTypeError");
|
|
2415
|
-
var
|
|
2416
|
-
|
|
2423
|
+
var be = {__syscall_fcntl64:function(a, b, c) {
|
|
2424
|
+
gb = c;
|
|
2417
2425
|
try {
|
|
2418
|
-
var d =
|
|
2426
|
+
var d = Vb(a);
|
|
2419
2427
|
switch(b) {
|
|
2420
2428
|
case 0:
|
|
2421
|
-
var e =
|
|
2429
|
+
var e = fb();
|
|
2422
2430
|
if (0 > e) {
|
|
2423
2431
|
break;
|
|
2424
2432
|
}
|
|
2425
|
-
for (;
|
|
2433
|
+
for (; Ib[e];) {
|
|
2426
2434
|
e++;
|
|
2427
2435
|
}
|
|
2428
|
-
return
|
|
2436
|
+
return Xb(d, e).X;
|
|
2429
2437
|
case 1:
|
|
2430
2438
|
case 2:
|
|
2431
2439
|
return 0;
|
|
2432
2440
|
case 3:
|
|
2433
2441
|
return d.flags;
|
|
2434
2442
|
case 4:
|
|
2435
|
-
return e =
|
|
2443
|
+
return e = fb(), d.flags |= e, 0;
|
|
2436
2444
|
case 12:
|
|
2437
|
-
return e =
|
|
2445
|
+
return e = fb(), Da[e + 0 >> 1] = 2, 0;
|
|
2438
2446
|
case 13:
|
|
2439
2447
|
case 14:
|
|
2440
2448
|
return 0;
|
|
@@ -2444,12 +2452,12 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2444
2452
|
if ("undefined" == typeof lc || "ErrnoError" !== f.name) {
|
|
2445
2453
|
throw f;
|
|
2446
2454
|
}
|
|
2447
|
-
return -f
|
|
2455
|
+
return -f.aa;
|
|
2448
2456
|
}
|
|
2449
2457
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2450
|
-
|
|
2458
|
+
gb = c;
|
|
2451
2459
|
try {
|
|
2452
|
-
var d =
|
|
2460
|
+
var d = Vb(a);
|
|
2453
2461
|
switch(b) {
|
|
2454
2462
|
case 21509:
|
|
2455
2463
|
return d.s ? 0 : -59;
|
|
@@ -2457,9 +2465,9 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2457
2465
|
if (!d.s) {
|
|
2458
2466
|
return -59;
|
|
2459
2467
|
}
|
|
2460
|
-
if (d.s.
|
|
2468
|
+
if (d.s.W.Yb) {
|
|
2461
2469
|
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,];
|
|
2462
|
-
var e =
|
|
2470
|
+
var e = fb();
|
|
2463
2471
|
B[e >> 2] = 25856;
|
|
2464
2472
|
B[e + 4 >> 2] = 5;
|
|
2465
2473
|
B[e + 8 >> 2] = 191;
|
|
@@ -2479,8 +2487,8 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2479
2487
|
if (!d.s) {
|
|
2480
2488
|
return -59;
|
|
2481
2489
|
}
|
|
2482
|
-
if (d.s.
|
|
2483
|
-
for (e =
|
|
2490
|
+
if (d.s.W.Zb) {
|
|
2491
|
+
for (e = fb(), a = [], f = 0; 32 > f; f++) {
|
|
2484
2492
|
a.push(z[e + f + 17]);
|
|
2485
2493
|
}
|
|
2486
2494
|
}
|
|
@@ -2489,21 +2497,21 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2489
2497
|
if (!d.s) {
|
|
2490
2498
|
return -59;
|
|
2491
2499
|
}
|
|
2492
|
-
e =
|
|
2500
|
+
e = fb();
|
|
2493
2501
|
return B[e >> 2] = 0;
|
|
2494
2502
|
case 21520:
|
|
2495
2503
|
return d.s ? -28 : -59;
|
|
2496
2504
|
case 21531:
|
|
2497
|
-
e =
|
|
2498
|
-
if (!d.m.
|
|
2505
|
+
e = fb();
|
|
2506
|
+
if (!d.m.Xb) {
|
|
2499
2507
|
throw new N(59);
|
|
2500
2508
|
}
|
|
2501
|
-
return d.m.
|
|
2509
|
+
return d.m.Xb(d, b, e);
|
|
2502
2510
|
case 21523:
|
|
2503
2511
|
if (!d.s) {
|
|
2504
2512
|
return -59;
|
|
2505
2513
|
}
|
|
2506
|
-
d.s.
|
|
2514
|
+
d.s.W.$b && (f = [24, 80], e = fb(), Da[e >> 1] = f[0], Da[e + 2 >> 1] = f[1]);
|
|
2507
2515
|
return 0;
|
|
2508
2516
|
case 21524:
|
|
2509
2517
|
return d.s ? 0 : -59;
|
|
@@ -2516,39 +2524,39 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2516
2524
|
if ("undefined" == typeof lc || "ErrnoError" !== g.name) {
|
|
2517
2525
|
throw g;
|
|
2518
2526
|
}
|
|
2519
|
-
return -g
|
|
2527
|
+
return -g.aa;
|
|
2520
2528
|
}
|
|
2521
2529
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2522
|
-
|
|
2530
|
+
gb = d;
|
|
2523
2531
|
try {
|
|
2524
|
-
b = b ?
|
|
2532
|
+
b = b ? pb(A, b) : "";
|
|
2525
2533
|
var e = b;
|
|
2526
2534
|
if ("/" === e.charAt(0)) {
|
|
2527
2535
|
b = e;
|
|
2528
2536
|
} else {
|
|
2529
|
-
var f = -100 === a ? "/" :
|
|
2537
|
+
var f = -100 === a ? "/" : Vb(a).path;
|
|
2530
2538
|
if (0 == e.length) {
|
|
2531
2539
|
throw new N(44);
|
|
2532
2540
|
}
|
|
2533
|
-
b =
|
|
2541
|
+
b = ib(f + "/" + e);
|
|
2534
2542
|
}
|
|
2535
|
-
var g = d ?
|
|
2536
|
-
return fc(b, c, g).
|
|
2543
|
+
var g = d ? fb() : 0;
|
|
2544
|
+
return fc(b, c, g).X;
|
|
2537
2545
|
} catch (k) {
|
|
2538
2546
|
if ("undefined" == typeof lc || "ErrnoError" !== k.name) {
|
|
2539
2547
|
throw k;
|
|
2540
2548
|
}
|
|
2541
|
-
return -k
|
|
2549
|
+
return -k.aa;
|
|
2542
2550
|
}
|
|
2543
2551
|
}, _abort_js:() => {
|
|
2544
|
-
|
|
2552
|
+
Ra("");
|
|
2545
2553
|
}, _embind_create_inheriting_constructor:(a, b, c) => {
|
|
2546
2554
|
a = Q(a);
|
|
2547
2555
|
b = Dc(b, "wrapper");
|
|
2548
2556
|
c = pc(c);
|
|
2549
|
-
var d = b.i, e = d.
|
|
2557
|
+
var d = b.i, e = d.N, f = d.C.N, g = d.C.constructor;
|
|
2550
2558
|
a = mc(a, function(...k) {
|
|
2551
|
-
d.C.
|
|
2559
|
+
d.C.qb.forEach(function(p) {
|
|
2552
2560
|
if (this[p] === f[p]) {
|
|
2553
2561
|
throw new sc(`Pure virtual function ${p} must be implemented in JavaScript`);
|
|
2554
2562
|
}
|
|
@@ -2564,7 +2572,7 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2564
2572
|
Ec(k);
|
|
2565
2573
|
var p = k.g;
|
|
2566
2574
|
k.notifyOnDestruction();
|
|
2567
|
-
p.
|
|
2575
|
+
p.ia = !0;
|
|
2568
2576
|
Object.defineProperties(this, {g:{value:p}});
|
|
2569
2577
|
Kc(this);
|
|
2570
2578
|
k = p.o;
|
|
@@ -2593,14 +2601,14 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2593
2601
|
}, _embind_finalize_value_object:a => {
|
|
2594
2602
|
var b = Mc[a];
|
|
2595
2603
|
delete Mc[a];
|
|
2596
|
-
var c = b.
|
|
2604
|
+
var c = b.Oa, d = b.P, e = b.fb, f = e.map(g => g.Vb).concat(e.map(g => g.lc));
|
|
2597
2605
|
U([a], f, g => {
|
|
2598
2606
|
var k = {};
|
|
2599
2607
|
e.forEach((p, n) => {
|
|
2600
|
-
var t = g[n], x = p.
|
|
2601
|
-
k[p.
|
|
2608
|
+
var t = g[n], x = p.Tb, y = p.Ub, l = g[n + e.length], u = p.kc, r = p.mc;
|
|
2609
|
+
k[p.Pb] = {read:C => t.fromWireType(x(y, C)), write:(C, G) => {
|
|
2602
2610
|
var w = [];
|
|
2603
|
-
u(
|
|
2611
|
+
u(r, C, l.toWireType(w, G));
|
|
2604
2612
|
Nc(w);
|
|
2605
2613
|
}};
|
|
2606
2614
|
});
|
|
@@ -2623,7 +2631,7 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2623
2631
|
}
|
|
2624
2632
|
null !== p && p.push(d, x);
|
|
2625
2633
|
return x;
|
|
2626
|
-
}, argPackAdvance:8, readValueFromPointer:Oc,
|
|
2634
|
+
}, argPackAdvance:8, readValueFromPointer:Oc, M:d,}];
|
|
2627
2635
|
});
|
|
2628
2636
|
}, _embind_register_bigint:() => {
|
|
2629
2637
|
}, _embind_register_bool:(a, b, c, d) => {
|
|
@@ -2634,7 +2642,7 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2634
2642
|
return f ? c : d;
|
|
2635
2643
|
}, argPackAdvance:8, readValueFromPointer:function(e) {
|
|
2636
2644
|
return this.fromWireType(A[e]);
|
|
2637
|
-
},
|
|
2645
|
+
}, M:null,});
|
|
2638
2646
|
}, _embind_register_class:(a, b, c, d, e, f, g, k, p, n, t, x, y) => {
|
|
2639
2647
|
t = Q(t);
|
|
2640
2648
|
f = V(e, f);
|
|
@@ -2648,43 +2656,43 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2648
2656
|
U([a, b, c], d ? [d] : [], u => {
|
|
2649
2657
|
u = u[0];
|
|
2650
2658
|
if (d) {
|
|
2651
|
-
var
|
|
2652
|
-
var
|
|
2659
|
+
var r = u.i;
|
|
2660
|
+
var C = r.N;
|
|
2653
2661
|
} else {
|
|
2654
|
-
|
|
2662
|
+
C = Uc.prototype;
|
|
2655
2663
|
}
|
|
2656
|
-
u = mc(t, function(...
|
|
2657
|
-
if (Object.getPrototypeOf(this) !==
|
|
2664
|
+
u = mc(t, function(...T) {
|
|
2665
|
+
if (Object.getPrototypeOf(this) !== G) {
|
|
2658
2666
|
throw new P("Use 'new' to construct " + t);
|
|
2659
2667
|
}
|
|
2660
|
-
if (void 0 === w
|
|
2668
|
+
if (void 0 === w.$) {
|
|
2661
2669
|
throw new P(t + " has no accessible constructor");
|
|
2662
2670
|
}
|
|
2663
|
-
var W = w
|
|
2671
|
+
var W = w.$[T.length];
|
|
2664
2672
|
if (void 0 === W) {
|
|
2665
|
-
throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${
|
|
2673
|
+
throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${T.length}) - expected (${Object.keys(w.$).toString()}) parameters instead!`);
|
|
2666
2674
|
}
|
|
2667
|
-
return W.apply(this,
|
|
2675
|
+
return W.apply(this, T);
|
|
2668
2676
|
});
|
|
2669
|
-
var
|
|
2670
|
-
u.prototype =
|
|
2671
|
-
var w = new Yc(t, u,
|
|
2677
|
+
var G = Object.create(C, {constructor:{value:u},});
|
|
2678
|
+
u.prototype = G;
|
|
2679
|
+
var w = new Yc(t, u, G, y, r, f, k, n);
|
|
2672
2680
|
if (w.C) {
|
|
2673
2681
|
var M;
|
|
2674
|
-
(M = w.C).
|
|
2675
|
-
w.C.
|
|
2682
|
+
(M = w.C).oa ?? (M.oa = []);
|
|
2683
|
+
w.C.oa.push(w);
|
|
2676
2684
|
}
|
|
2677
|
-
|
|
2685
|
+
r = new dd(t, w, !0, !1, !1);
|
|
2678
2686
|
M = new dd(t + "*", w, !1, !1, !1);
|
|
2679
|
-
|
|
2680
|
-
Hc[a] = {pointerType:M,
|
|
2687
|
+
C = new dd(t + " const*", w, !1, !0, !1);
|
|
2688
|
+
Hc[a] = {pointerType:M, Ib:C};
|
|
2681
2689
|
ed(l, u);
|
|
2682
|
-
return [
|
|
2690
|
+
return [r, M, C];
|
|
2683
2691
|
});
|
|
2684
2692
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
2685
|
-
var k =
|
|
2693
|
+
var k = sd(c, d);
|
|
2686
2694
|
b = Q(b);
|
|
2687
|
-
b =
|
|
2695
|
+
b = td(b);
|
|
2688
2696
|
f = V(e, f);
|
|
2689
2697
|
U([], [a], p => {
|
|
2690
2698
|
function n() {
|
|
@@ -2694,12 +2702,12 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2694
2702
|
var t = `${p.name}.${b}`;
|
|
2695
2703
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2696
2704
|
var x = p.i.constructor;
|
|
2697
|
-
void 0 === x[b] ? (n.
|
|
2705
|
+
void 0 === x[b] ? (n.ea = c - 1, x[b] = n) : (Vc(x, b, t), x[b].A[c - 1] = n);
|
|
2698
2706
|
U([], k, y => {
|
|
2699
|
-
y =
|
|
2700
|
-
void 0 === x[b].A ? (y.
|
|
2701
|
-
if (p.i.
|
|
2702
|
-
for (const l of p.i.
|
|
2707
|
+
y = rd(t, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2708
|
+
void 0 === x[b].A ? (y.ea = c - 1, x[b] = y) : x[b].A[c - 1] = y;
|
|
2709
|
+
if (p.i.oa) {
|
|
2710
|
+
for (const l of p.i.oa) {
|
|
2703
2711
|
l.constructor.hasOwnProperty(b) || (l.constructor[b] = y);
|
|
2704
2712
|
}
|
|
2705
2713
|
}
|
|
@@ -2737,29 +2745,29 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2737
2745
|
return [];
|
|
2738
2746
|
});
|
|
2739
2747
|
}, _embind_register_class_constructor:(a, b, c, d, e, f) => {
|
|
2740
|
-
var g =
|
|
2748
|
+
var g = sd(b, c);
|
|
2741
2749
|
e = V(d, e);
|
|
2742
2750
|
U([], [a], k => {
|
|
2743
2751
|
k = k[0];
|
|
2744
2752
|
var p = `constructor ${k.name}`;
|
|
2745
|
-
void 0 === k.i
|
|
2746
|
-
if (void 0 !== k.i
|
|
2753
|
+
void 0 === k.i.$ && (k.i.$ = []);
|
|
2754
|
+
if (void 0 !== k.i.$[b - 1]) {
|
|
2747
2755
|
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!`);
|
|
2748
2756
|
}
|
|
2749
|
-
k.i
|
|
2757
|
+
k.i.$[b - 1] = () => {
|
|
2750
2758
|
md(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2751
2759
|
};
|
|
2752
2760
|
U([], g, n => {
|
|
2753
2761
|
n.splice(1, 0, null);
|
|
2754
|
-
k.i
|
|
2762
|
+
k.i.$[b - 1] = rd(p, n, null, e, f);
|
|
2755
2763
|
return [];
|
|
2756
2764
|
});
|
|
2757
2765
|
return [];
|
|
2758
2766
|
});
|
|
2759
2767
|
}, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
|
|
2760
|
-
var p =
|
|
2768
|
+
var p = sd(c, d);
|
|
2761
2769
|
b = Q(b);
|
|
2762
|
-
b =
|
|
2770
|
+
b = td(b);
|
|
2763
2771
|
f = V(e, f);
|
|
2764
2772
|
U([], [a], n => {
|
|
2765
2773
|
function t() {
|
|
@@ -2768,12 +2776,12 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2768
2776
|
n = n[0];
|
|
2769
2777
|
var x = `${n.name}.${b}`;
|
|
2770
2778
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2771
|
-
k && n.i.
|
|
2772
|
-
var y = n.i.
|
|
2773
|
-
void 0 === l || void 0 === l.A && l.className !== n.name && l.
|
|
2779
|
+
k && n.i.qb.push(b);
|
|
2780
|
+
var y = n.i.N, l = y[b];
|
|
2781
|
+
void 0 === l || void 0 === l.A && l.className !== n.name && l.ea === c - 2 ? (t.ea = c - 2, t.className = n.name, y[b] = t) : (Vc(y, b, x), y[b].A[c - 2] = t);
|
|
2774
2782
|
U([], p, u => {
|
|
2775
|
-
u =
|
|
2776
|
-
void 0 === y[b].A ? (u.
|
|
2783
|
+
u = rd(x, u, n, f, g);
|
|
2784
|
+
void 0 === y[b].A ? (u.ea = c - 2, y[b] = u) : y[b].A[c - 2] = u;
|
|
2777
2785
|
return [];
|
|
2778
2786
|
});
|
|
2779
2787
|
return [];
|
|
@@ -2789,34 +2797,34 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2789
2797
|
y.set = p ? () => md(`Cannot access ${x} due to unbound types`, [c, g]) : () => {
|
|
2790
2798
|
throw new P(x + " is a read-only property");
|
|
2791
2799
|
};
|
|
2792
|
-
Object.defineProperty(t.i.
|
|
2800
|
+
Object.defineProperty(t.i.N, b, y);
|
|
2793
2801
|
U([], p ? [c, g] : [c], l => {
|
|
2794
|
-
var u = l[0],
|
|
2795
|
-
var
|
|
2796
|
-
return u.fromWireType(e(f,
|
|
2802
|
+
var u = l[0], r = {get() {
|
|
2803
|
+
var G = ud(this, t, x + " getter");
|
|
2804
|
+
return u.fromWireType(e(f, G));
|
|
2797
2805
|
}, enumerable:!0};
|
|
2798
2806
|
if (p) {
|
|
2799
2807
|
p = V(k, p);
|
|
2800
|
-
var
|
|
2801
|
-
|
|
2802
|
-
var w =
|
|
2803
|
-
p(n, w,
|
|
2808
|
+
var C = l[1];
|
|
2809
|
+
r.set = function(G) {
|
|
2810
|
+
var w = ud(this, t, x + " setter"), M = [];
|
|
2811
|
+
p(n, w, C.toWireType(M, G));
|
|
2804
2812
|
Nc(M);
|
|
2805
2813
|
};
|
|
2806
2814
|
}
|
|
2807
|
-
Object.defineProperty(t.i.
|
|
2815
|
+
Object.defineProperty(t.i.N, b, r);
|
|
2808
2816
|
return [];
|
|
2809
2817
|
});
|
|
2810
2818
|
return [];
|
|
2811
2819
|
});
|
|
2812
|
-
}, _embind_register_emval:a => Rc(a,
|
|
2820
|
+
}, _embind_register_emval:a => Rc(a, wd), _embind_register_enum:(a, b, c, d) => {
|
|
2813
2821
|
function e() {
|
|
2814
2822
|
}
|
|
2815
2823
|
b = Q(b);
|
|
2816
2824
|
e.values = {};
|
|
2817
2825
|
Rc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2818
2826
|
return this.constructor.values[f];
|
|
2819
|
-
}, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:
|
|
2827
|
+
}, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:xd(b, c, d), M:null,});
|
|
2820
2828
|
Wc(b, e);
|
|
2821
2829
|
}, _embind_register_enum_value:(a, b, c) => {
|
|
2822
2830
|
var d = Dc(a, "enum");
|
|
@@ -2828,17 +2836,17 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2828
2836
|
a[b] = d;
|
|
2829
2837
|
}, _embind_register_float:(a, b, c) => {
|
|
2830
2838
|
b = Q(b);
|
|
2831
|
-
Rc(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:
|
|
2839
|
+
Rc(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:yd(b, c), M:null,});
|
|
2832
2840
|
}, _embind_register_function:(a, b, c, d, e, f) => {
|
|
2833
|
-
var g =
|
|
2841
|
+
var g = sd(b, c);
|
|
2834
2842
|
a = Q(a);
|
|
2835
|
-
a =
|
|
2843
|
+
a = td(a);
|
|
2836
2844
|
e = V(d, e);
|
|
2837
2845
|
Wc(a, function() {
|
|
2838
2846
|
md(`Cannot call ${a} due to unbound types`, g);
|
|
2839
2847
|
}, b - 1);
|
|
2840
2848
|
U([], g, k => {
|
|
2841
|
-
ed(a,
|
|
2849
|
+
ed(a, rd(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
|
|
2842
2850
|
return [];
|
|
2843
2851
|
});
|
|
2844
2852
|
}, _embind_register_integer:(a, b, c, d, e) => {
|
|
@@ -2854,24 +2862,24 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2854
2862
|
} : function(k, p) {
|
|
2855
2863
|
return p;
|
|
2856
2864
|
};
|
|
2857
|
-
Rc(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:
|
|
2865
|
+
Rc(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:zd(b, c, 0 !== d), M:null,});
|
|
2858
2866
|
}, _embind_register_memory_view:(a, b, c) => {
|
|
2859
2867
|
function d(f) {
|
|
2860
|
-
return new e(z.buffer,
|
|
2868
|
+
return new e(z.buffer, D[f + 4 >> 2], D[f >> 2]);
|
|
2861
2869
|
}
|
|
2862
2870
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2863
2871
|
c = Q(c);
|
|
2864
|
-
Rc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {
|
|
2872
|
+
Rc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Wb:!0,});
|
|
2865
2873
|
}, _embind_register_std_string:(a, b) => {
|
|
2866
2874
|
b = Q(b);
|
|
2867
2875
|
var c = "std::string" === b;
|
|
2868
2876
|
Rc(a, {name:b, fromWireType:function(d) {
|
|
2869
|
-
var e =
|
|
2877
|
+
var e = D[d >> 2], f = d + 4;
|
|
2870
2878
|
if (c) {
|
|
2871
2879
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2872
2880
|
var p = f + k;
|
|
2873
2881
|
if (k == e || 0 == A[p]) {
|
|
2874
|
-
g = g ?
|
|
2882
|
+
g = g ? pb(A, g, p - g) : "";
|
|
2875
2883
|
if (void 0 === n) {
|
|
2876
2884
|
var n = g;
|
|
2877
2885
|
} else {
|
|
@@ -2895,11 +2903,11 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2895
2903
|
if (!(f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array)) {
|
|
2896
2904
|
throw new P("Cannot pass non-string to std::string");
|
|
2897
2905
|
}
|
|
2898
|
-
var g = c && f ?
|
|
2899
|
-
var k =
|
|
2900
|
-
|
|
2906
|
+
var g = c && f ? rb(e) : e.length;
|
|
2907
|
+
var k = $d(4 + g + 1), p = k + 4;
|
|
2908
|
+
D[k >> 2] = g;
|
|
2901
2909
|
if (c && f) {
|
|
2902
|
-
|
|
2910
|
+
sb(e, A, p, g + 1);
|
|
2903
2911
|
} else {
|
|
2904
2912
|
if (f) {
|
|
2905
2913
|
for (f = 0; f < g; ++f) {
|
|
@@ -2917,21 +2925,21 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2917
2925
|
}
|
|
2918
2926
|
null !== d && d.push(Bc, k);
|
|
2919
2927
|
return k;
|
|
2920
|
-
}, argPackAdvance:8, readValueFromPointer:Oc,
|
|
2928
|
+
}, argPackAdvance:8, readValueFromPointer:Oc, M(d) {
|
|
2921
2929
|
Bc(d);
|
|
2922
2930
|
},});
|
|
2923
2931
|
}, _embind_register_std_wstring:(a, b, c) => {
|
|
2924
2932
|
c = Q(c);
|
|
2925
2933
|
if (2 === b) {
|
|
2926
|
-
var d =
|
|
2927
|
-
var e =
|
|
2928
|
-
var f =
|
|
2929
|
-
var g = k =>
|
|
2934
|
+
var d = Bd;
|
|
2935
|
+
var e = Cd;
|
|
2936
|
+
var f = Dd;
|
|
2937
|
+
var g = k => Ea[k >> 1];
|
|
2930
2938
|
} else {
|
|
2931
|
-
4 === b && (d =
|
|
2939
|
+
4 === b && (d = Ed, e = Fd, f = Gd, g = k => D[k >> 2]);
|
|
2932
2940
|
}
|
|
2933
2941
|
Rc(a, {name:c, fromWireType:k => {
|
|
2934
|
-
for (var p =
|
|
2942
|
+
for (var p = D[k >> 2], n, t = k + 4, x = 0; x <= p; ++x) {
|
|
2935
2943
|
var y = k + 4 + x * b;
|
|
2936
2944
|
if (x == p || 0 == g(y)) {
|
|
2937
2945
|
t = d(t, y - t), void 0 === n ? n = t : (n += String.fromCharCode(0), n += t), t = y + b;
|
|
@@ -2943,21 +2951,21 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2943
2951
|
if ("string" != typeof p) {
|
|
2944
2952
|
throw new P(`Cannot pass non-string to C++ string type ${c}`);
|
|
2945
2953
|
}
|
|
2946
|
-
var n = f(p), t =
|
|
2947
|
-
|
|
2954
|
+
var n = f(p), t = $d(4 + n + b);
|
|
2955
|
+
D[t >> 2] = n / b;
|
|
2948
2956
|
e(p, t + 4, n + b);
|
|
2949
2957
|
null !== k && k.push(Bc, t);
|
|
2950
2958
|
return t;
|
|
2951
|
-
}, argPackAdvance:8, readValueFromPointer:Oc,
|
|
2959
|
+
}, argPackAdvance:8, readValueFromPointer:Oc, M(k) {
|
|
2952
2960
|
Bc(k);
|
|
2953
2961
|
}});
|
|
2954
2962
|
}, _embind_register_value_object:(a, b, c, d, e, f) => {
|
|
2955
|
-
Mc[a] = {name:Q(b),
|
|
2963
|
+
Mc[a] = {name:Q(b), Oa:V(c, d), P:V(e, f), fb:[],};
|
|
2956
2964
|
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, p, n) => {
|
|
2957
|
-
Mc[a].
|
|
2965
|
+
Mc[a].fb.push({Pb:Q(b), Vb:c, Tb:V(d, e), Ub:f, lc:g, kc:V(k, p), mc:n,});
|
|
2958
2966
|
}, _embind_register_void:(a, b) => {
|
|
2959
2967
|
b = Q(b);
|
|
2960
|
-
Rc(a, {
|
|
2968
|
+
Rc(a, {Jc:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
2961
2969
|
}, toWireType:() => {
|
|
2962
2970
|
},});
|
|
2963
2971
|
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => A.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
|
|
@@ -2965,26 +2973,26 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2965
2973
|
}, _emval_as:(a, b, c) => {
|
|
2966
2974
|
a = pc(a);
|
|
2967
2975
|
b = Dc(b, "emval::as");
|
|
2968
|
-
return
|
|
2976
|
+
return Hd(b, c, a);
|
|
2969
2977
|
}, _emval_call_method:(a, b, c, d, e) => {
|
|
2970
|
-
a =
|
|
2978
|
+
a = Kd[a];
|
|
2971
2979
|
b = pc(b);
|
|
2972
|
-
c =
|
|
2980
|
+
c = Jd(c);
|
|
2973
2981
|
return a(b, b[c], d, e);
|
|
2974
|
-
}, _emval_decref:
|
|
2975
|
-
var d =
|
|
2982
|
+
}, _emval_decref:vd, _emval_get_method_caller:(a, b, c) => {
|
|
2983
|
+
var d = Md(a, b), e = d.shift();
|
|
2976
2984
|
a--;
|
|
2977
2985
|
var f = Array(a);
|
|
2978
2986
|
b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
|
|
2979
|
-
return
|
|
2987
|
+
return Ld(mc(b, (g, k, p, n) => {
|
|
2980
2988
|
for (var t = 0, x = 0; x < a; ++x) {
|
|
2981
2989
|
f[x] = d[x].readValueFromPointer(n + t), t += d[x].argPackAdvance;
|
|
2982
2990
|
}
|
|
2983
|
-
g = 1 === c ?
|
|
2984
|
-
return
|
|
2991
|
+
g = 1 === c ? Nd(k, f) : k.apply(g, f);
|
|
2992
|
+
return Hd(e, p, g);
|
|
2985
2993
|
}));
|
|
2986
2994
|
}, _emval_get_module_property:a => {
|
|
2987
|
-
a =
|
|
2995
|
+
a = Jd(a);
|
|
2988
2996
|
return qc(m[a]);
|
|
2989
2997
|
}, _emval_get_property:(a, b) => {
|
|
2990
2998
|
a = pc(a);
|
|
@@ -2992,10 +3000,10 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2992
3000
|
return qc(a[b]);
|
|
2993
3001
|
}, _emval_incref:a => {
|
|
2994
3002
|
9 < a && (oc[a + 1] += 1);
|
|
2995
|
-
}, _emval_new_array:() => qc([]), _emval_new_cstring:a => qc(
|
|
3003
|
+
}, _emval_new_array:() => qc([]), _emval_new_cstring:a => qc(Jd(a)), _emval_new_object:() => qc({}), _emval_run_destructors:a => {
|
|
2996
3004
|
var b = pc(a);
|
|
2997
3005
|
Nc(b);
|
|
2998
|
-
|
|
3006
|
+
vd(a);
|
|
2999
3007
|
}, _emval_set_property:(a, b, c) => {
|
|
3000
3008
|
a = pc(a);
|
|
3001
3009
|
b = pc(b);
|
|
@@ -3024,7 +3032,7 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3024
3032
|
B[c + 16 >> 2] = a.getMonth();
|
|
3025
3033
|
B[c + 20 >> 2] = a.getFullYear() - 1900;
|
|
3026
3034
|
B[c + 24 >> 2] = a.getDay();
|
|
3027
|
-
B[c + 28 >> 2] = (
|
|
3035
|
+
B[c + 28 >> 2] = (Od(a.getFullYear()) ? Pd : Qd)[a.getMonth()] + a.getDate() - 1 | 0;
|
|
3028
3036
|
B[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
|
|
3029
3037
|
b = (new Date(a.getFullYear(), 6, 1)).getTimezoneOffset();
|
|
3030
3038
|
var d = (new Date(a.getFullYear(), 0, 1)).getTimezoneOffset();
|
|
@@ -3033,22 +3041,22 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3033
3041
|
var e = (new Date()).getFullYear(), f = new Date(e, 0, 1), g = new Date(e, 6, 1);
|
|
3034
3042
|
e = f.getTimezoneOffset();
|
|
3035
3043
|
var k = g.getTimezoneOffset();
|
|
3036
|
-
|
|
3044
|
+
D[a >> 2] = 60 * Math.max(e, k);
|
|
3037
3045
|
B[b >> 2] = Number(e != k);
|
|
3038
3046
|
a = p => p.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
|
|
3039
3047
|
f = a(f);
|
|
3040
3048
|
g = a(g);
|
|
3041
|
-
k < e ? (
|
|
3049
|
+
k < e ? (sb(f, A, c, 17), sb(g, A, d, 17)) : (sb(f, A, d, 17), sb(g, A, c, 17));
|
|
3042
3050
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
3043
|
-
|
|
3051
|
+
Rd.length = 0;
|
|
3044
3052
|
for (var d; d = A[b++];) {
|
|
3045
3053
|
var e = 105 != d;
|
|
3046
3054
|
e &= 112 != d;
|
|
3047
3055
|
c += e && c % 8 ? 4 : 0;
|
|
3048
|
-
|
|
3056
|
+
Rd.push(112 == d ? D[c >> 2] : 105 == d ? B[c >> 2] : Ia[c >> 3]);
|
|
3049
3057
|
c += e ? 8 : 4;
|
|
3050
3058
|
}
|
|
3051
|
-
return
|
|
3059
|
+
return db[a](...Rd);
|
|
3052
3060
|
}, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:a => {
|
|
3053
3061
|
var b = A.length;
|
|
3054
3062
|
a >>>= 0;
|
|
@@ -3061,10 +3069,10 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3061
3069
|
var e = Math;
|
|
3062
3070
|
d = Math.max(a, d);
|
|
3063
3071
|
a: {
|
|
3064
|
-
e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
3072
|
+
e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Ba.buffer.byteLength + 65535) / 65536;
|
|
3065
3073
|
try {
|
|
3066
|
-
|
|
3067
|
-
|
|
3074
|
+
Ba.grow(e);
|
|
3075
|
+
Ja();
|
|
3068
3076
|
var f = 1;
|
|
3069
3077
|
break a;
|
|
3070
3078
|
} catch (g) {
|
|
@@ -3078,9 +3086,9 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3078
3086
|
return !1;
|
|
3079
3087
|
}, environ_get:(a, b) => {
|
|
3080
3088
|
var c = 0;
|
|
3081
|
-
|
|
3089
|
+
Ud().forEach((d, e) => {
|
|
3082
3090
|
var f = b + c;
|
|
3083
|
-
e =
|
|
3091
|
+
e = D[a + 4 * e >> 2] = f;
|
|
3084
3092
|
for (f = 0; f < d.length; ++f) {
|
|
3085
3093
|
z[e++] = d.charCodeAt(f);
|
|
3086
3094
|
}
|
|
@@ -3089,47 +3097,47 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3089
3097
|
});
|
|
3090
3098
|
return 0;
|
|
3091
3099
|
}, environ_sizes_get:(a, b) => {
|
|
3092
|
-
var c =
|
|
3093
|
-
|
|
3100
|
+
var c = Ud();
|
|
3101
|
+
D[a >> 2] = c.length;
|
|
3094
3102
|
var d = 0;
|
|
3095
3103
|
c.forEach(e => d += e.length + 1);
|
|
3096
|
-
|
|
3104
|
+
D[b >> 2] = d;
|
|
3097
3105
|
return 0;
|
|
3098
3106
|
}, fd_close:function(a) {
|
|
3099
3107
|
try {
|
|
3100
|
-
var b =
|
|
3101
|
-
if (null === b.
|
|
3108
|
+
var b = Vb(a);
|
|
3109
|
+
if (null === b.X) {
|
|
3102
3110
|
throw new N(8);
|
|
3103
3111
|
}
|
|
3104
|
-
b.
|
|
3112
|
+
b.La && (b.La = null);
|
|
3105
3113
|
try {
|
|
3106
3114
|
b.m.close && b.m.close(b);
|
|
3107
3115
|
} catch (c) {
|
|
3108
3116
|
throw c;
|
|
3109
3117
|
} finally {
|
|
3110
|
-
|
|
3118
|
+
Ib[b.X] = null;
|
|
3111
3119
|
}
|
|
3112
|
-
b.
|
|
3120
|
+
b.X = null;
|
|
3113
3121
|
return 0;
|
|
3114
3122
|
} catch (c) {
|
|
3115
3123
|
if ("undefined" == typeof lc || "ErrnoError" !== c.name) {
|
|
3116
3124
|
throw c;
|
|
3117
3125
|
}
|
|
3118
|
-
return c
|
|
3126
|
+
return c.aa;
|
|
3119
3127
|
}
|
|
3120
3128
|
}, fd_read:function(a, b, c, d) {
|
|
3121
3129
|
try {
|
|
3122
3130
|
a: {
|
|
3123
|
-
var e =
|
|
3131
|
+
var e = Vb(a);
|
|
3124
3132
|
a = b;
|
|
3125
3133
|
for (var f, g = b = 0; g < c; g++) {
|
|
3126
|
-
var k =
|
|
3134
|
+
var k = D[a >> 2], p = D[a + 4 >> 2];
|
|
3127
3135
|
a += 8;
|
|
3128
3136
|
var n = e, t = f, x = z;
|
|
3129
3137
|
if (0 > p || 0 > t) {
|
|
3130
3138
|
throw new N(28);
|
|
3131
3139
|
}
|
|
3132
|
-
if (null === n.
|
|
3140
|
+
if (null === n.X) {
|
|
3133
3141
|
throw new N(8);
|
|
3134
3142
|
}
|
|
3135
3143
|
if (1 === (n.flags & 2097155)) {
|
|
@@ -3151,7 +3159,7 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3151
3159
|
y || (n.position += l);
|
|
3152
3160
|
var u = l;
|
|
3153
3161
|
if (0 > u) {
|
|
3154
|
-
var
|
|
3162
|
+
var r = -1;
|
|
3155
3163
|
break a;
|
|
3156
3164
|
}
|
|
3157
3165
|
b += u;
|
|
@@ -3160,15 +3168,15 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3160
3168
|
}
|
|
3161
3169
|
"undefined" != typeof f && (f += u);
|
|
3162
3170
|
}
|
|
3163
|
-
|
|
3171
|
+
r = b;
|
|
3164
3172
|
}
|
|
3165
|
-
|
|
3173
|
+
D[d >> 2] = r;
|
|
3166
3174
|
return 0;
|
|
3167
|
-
} catch (
|
|
3168
|
-
if ("undefined" == typeof lc || "ErrnoError" !==
|
|
3169
|
-
throw
|
|
3175
|
+
} catch (C) {
|
|
3176
|
+
if ("undefined" == typeof lc || "ErrnoError" !== C.name) {
|
|
3177
|
+
throw C;
|
|
3170
3178
|
}
|
|
3171
|
-
return
|
|
3179
|
+
return C.aa;
|
|
3172
3180
|
}
|
|
3173
3181
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3174
3182
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3176,32 +3184,32 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3176
3184
|
if (isNaN(b)) {
|
|
3177
3185
|
return 61;
|
|
3178
3186
|
}
|
|
3179
|
-
var f =
|
|
3187
|
+
var f = Vb(a);
|
|
3180
3188
|
hc(f, b, d);
|
|
3181
|
-
|
|
3182
|
-
B[e >> 2] =
|
|
3183
|
-
B[e + 4 >> 2] =
|
|
3184
|
-
f.
|
|
3189
|
+
$a = [f.position >>> 0, (Za = f.position, 1.0 <= +Math.abs(Za) ? 0.0 < Za ? +Math.floor(Za / 4294967296.0) >>> 0 : ~~+Math.ceil((Za - +(~~Za >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3190
|
+
B[e >> 2] = $a[0];
|
|
3191
|
+
B[e + 4 >> 2] = $a[1];
|
|
3192
|
+
f.La && 0 === b && 0 === d && (f.La = null);
|
|
3185
3193
|
return 0;
|
|
3186
3194
|
} catch (g) {
|
|
3187
3195
|
if ("undefined" == typeof lc || "ErrnoError" !== g.name) {
|
|
3188
3196
|
throw g;
|
|
3189
3197
|
}
|
|
3190
|
-
return g
|
|
3198
|
+
return g.aa;
|
|
3191
3199
|
}
|
|
3192
3200
|
}, fd_write:function(a, b, c, d) {
|
|
3193
3201
|
try {
|
|
3194
3202
|
a: {
|
|
3195
|
-
var e =
|
|
3203
|
+
var e = Vb(a);
|
|
3196
3204
|
a = b;
|
|
3197
3205
|
for (var f, g = b = 0; g < c; g++) {
|
|
3198
|
-
var k =
|
|
3206
|
+
var k = D[a >> 2], p = D[a + 4 >> 2];
|
|
3199
3207
|
a += 8;
|
|
3200
3208
|
var n = e, t = k, x = p, y = f, l = z;
|
|
3201
3209
|
if (0 > x || 0 > y) {
|
|
3202
3210
|
throw new N(28);
|
|
3203
3211
|
}
|
|
3204
|
-
if (null === n.
|
|
3212
|
+
if (null === n.X) {
|
|
3205
3213
|
throw new N(8);
|
|
3206
3214
|
}
|
|
3207
3215
|
if (0 === (n.flags & 2097155)) {
|
|
@@ -3220,91 +3228,91 @@ var ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3220
3228
|
} else if (!n.seekable) {
|
|
3221
3229
|
throw new N(70);
|
|
3222
3230
|
}
|
|
3223
|
-
var
|
|
3224
|
-
u || (n.position +=
|
|
3225
|
-
var
|
|
3226
|
-
if (0 >
|
|
3227
|
-
var
|
|
3231
|
+
var r = n.m.write(n, l, t, x, y, void 0);
|
|
3232
|
+
u || (n.position += r);
|
|
3233
|
+
var C = r;
|
|
3234
|
+
if (0 > C) {
|
|
3235
|
+
var G = -1;
|
|
3228
3236
|
break a;
|
|
3229
3237
|
}
|
|
3230
|
-
b +=
|
|
3231
|
-
"undefined" != typeof f && (f +=
|
|
3238
|
+
b += C;
|
|
3239
|
+
"undefined" != typeof f && (f += C);
|
|
3232
3240
|
}
|
|
3233
|
-
|
|
3241
|
+
G = b;
|
|
3234
3242
|
}
|
|
3235
|
-
|
|
3243
|
+
D[d >> 2] = G;
|
|
3236
3244
|
return 0;
|
|
3237
3245
|
} catch (w) {
|
|
3238
3246
|
if ("undefined" == typeof lc || "ErrnoError" !== w.name) {
|
|
3239
3247
|
throw w;
|
|
3240
3248
|
}
|
|
3241
|
-
return w
|
|
3249
|
+
return w.aa;
|
|
3242
3250
|
}
|
|
3243
|
-
}, invoke_vii
|
|
3251
|
+
}, invoke_vii:ae, isWindowsBrowser:function() {
|
|
3244
3252
|
return -1 < navigator.platform.indexOf("Win");
|
|
3245
|
-
}, strftime:
|
|
3253
|
+
}, strftime:Xd, strftime_l:(a, b, c, d) => Xd(a, b, c, d)}, Y = function() {
|
|
3246
3254
|
function a(c) {
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
gd =
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
m.monitorRunDependencies?.(
|
|
3254
|
-
0 ==
|
|
3255
|
-
return
|
|
3256
|
-
}
|
|
3257
|
-
var b = {env:
|
|
3258
|
-
|
|
3259
|
-
m.monitorRunDependencies?.(
|
|
3255
|
+
Y = c.exports;
|
|
3256
|
+
Ba = Y.memory;
|
|
3257
|
+
Ja();
|
|
3258
|
+
gd = Y.__indirect_function_table;
|
|
3259
|
+
La.unshift(Y.__wasm_call_ctors);
|
|
3260
|
+
Oa--;
|
|
3261
|
+
m.monitorRunDependencies?.(Oa);
|
|
3262
|
+
0 == Oa && (null !== Pa && (clearInterval(Pa), Pa = null), Qa && (c = Qa, Qa = null, c()));
|
|
3263
|
+
return Y;
|
|
3264
|
+
}
|
|
3265
|
+
var b = {env:be, wasi_snapshot_preview1:be,};
|
|
3266
|
+
Oa++;
|
|
3267
|
+
m.monitorRunDependencies?.(Oa);
|
|
3260
3268
|
if (m.instantiateWasm) {
|
|
3261
3269
|
try {
|
|
3262
3270
|
return m.instantiateWasm(b, a);
|
|
3263
3271
|
} catch (c) {
|
|
3264
|
-
|
|
3272
|
+
za(`Module.instantiateWasm callback failed with error: ${c}`), ca(c);
|
|
3265
3273
|
}
|
|
3266
3274
|
}
|
|
3267
|
-
|
|
3268
|
-
|
|
3275
|
+
Ta ||= Sa("canvas_advanced.wasm") ? "canvas_advanced.wasm" : m.locateFile ? m.locateFile("canvas_advanced.wasm", sa) : sa + "canvas_advanced.wasm";
|
|
3276
|
+
Xa(b, function(c) {
|
|
3269
3277
|
a(c.instance);
|
|
3270
3278
|
}).catch(ca);
|
|
3271
3279
|
return {};
|
|
3272
|
-
}(), Bc = a => (Bc =
|
|
3273
|
-
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten =
|
|
3274
|
-
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten =
|
|
3275
|
-
var
|
|
3276
|
-
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji =
|
|
3277
|
-
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji =
|
|
3278
|
-
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji =
|
|
3279
|
-
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij =
|
|
3280
|
-
m.dynCall_jii = (a, b, c) => (m.dynCall_jii =
|
|
3281
|
-
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii =
|
|
3282
|
-
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij =
|
|
3283
|
-
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj =
|
|
3284
|
-
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj =
|
|
3285
|
-
function
|
|
3286
|
-
var d =
|
|
3280
|
+
}(), Bc = a => (Bc = Y.free)(a), $d = a => ($d = Y.malloc)(a), Ac = a => (Ac = Y.__getTypeName)(a), ab = m._ma_device__on_notification_unlocked = a => (ab = m._ma_device__on_notification_unlocked = Y.ma_device__on_notification_unlocked)(a);
|
|
3281
|
+
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = Y.ma_malloc_emscripten)(a, b);
|
|
3282
|
+
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = Y.ma_free_emscripten)(a, b);
|
|
3283
|
+
var bb = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (bb = m._ma_device_process_pcm_frames_capture__webaudio = Y.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), cb = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (cb = m._ma_device_process_pcm_frames_playback__webaudio = Y.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), ce = (a, b) => (ce = Y.setThrew)(a, b), de = a => (de = Y._emscripten_stack_restore)(a), ee = () => (ee = Y.emscripten_stack_get_current)();
|
|
3284
|
+
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = Y.dynCall_iiji)(a, b, c, d, e);
|
|
3285
|
+
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = Y.dynCall_jiji)(a, b, c, d, e);
|
|
3286
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = Y.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3287
|
+
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = Y.dynCall_iij)(a, b, c, d);
|
|
3288
|
+
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = Y.dynCall_jii)(a, b, c);
|
|
3289
|
+
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = Y.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3290
|
+
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = Y.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3291
|
+
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj = Y.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
|
|
3292
|
+
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj = Y.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
|
|
3293
|
+
function ae(a, b, c) {
|
|
3294
|
+
var d = ee();
|
|
3287
3295
|
try {
|
|
3288
3296
|
hd(a)(b, c);
|
|
3289
3297
|
} catch (e) {
|
|
3290
|
-
|
|
3298
|
+
de(d);
|
|
3291
3299
|
if (e !== e + 0) {
|
|
3292
3300
|
throw e;
|
|
3293
3301
|
}
|
|
3294
|
-
|
|
3302
|
+
ce(1, 0);
|
|
3295
3303
|
}
|
|
3296
3304
|
}
|
|
3297
|
-
var
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3305
|
+
var fe;
|
|
3306
|
+
Qa = function ge() {
|
|
3307
|
+
fe || he();
|
|
3308
|
+
fe || (Qa = ge);
|
|
3301
3309
|
};
|
|
3302
|
-
function
|
|
3310
|
+
function he() {
|
|
3303
3311
|
function a() {
|
|
3304
|
-
if (!
|
|
3312
|
+
if (!fe && (fe = !0, m.calledRun = !0, !Ca)) {
|
|
3305
3313
|
m.noFSInit || ic || (ic = !0, m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? jc("stdin", m.stdin) : ec("/dev/tty", "/dev/stdin"), m.stdout ? jc("stdout", null, m.stdout) : ec("/dev/tty", "/dev/stdout"), m.stderr ? jc("stderr", null, m.stderr) : ec("/dev/tty1", "/dev/stderr"), fc("/dev/stdin", 0), fc("/dev/stdout", 1), fc("/dev/stderr", 1));
|
|
3306
|
-
|
|
3307
|
-
|
|
3314
|
+
Lb = !1;
|
|
3315
|
+
eb(La);
|
|
3308
3316
|
ba(m);
|
|
3309
3317
|
if (m.onRuntimeInitialized) {
|
|
3310
3318
|
m.onRuntimeInitialized();
|
|
@@ -3312,20 +3320,20 @@ function ge() {
|
|
|
3312
3320
|
if (m.postRun) {
|
|
3313
3321
|
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
3314
3322
|
var b = m.postRun.shift();
|
|
3315
|
-
|
|
3323
|
+
Ma.unshift(b);
|
|
3316
3324
|
}
|
|
3317
3325
|
}
|
|
3318
|
-
|
|
3326
|
+
eb(Ma);
|
|
3319
3327
|
}
|
|
3320
3328
|
}
|
|
3321
|
-
if (!(0 <
|
|
3329
|
+
if (!(0 < Oa)) {
|
|
3322
3330
|
if (m.preRun) {
|
|
3323
3331
|
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
3324
|
-
|
|
3332
|
+
Na();
|
|
3325
3333
|
}
|
|
3326
3334
|
}
|
|
3327
|
-
|
|
3328
|
-
0 <
|
|
3335
|
+
eb(Ka);
|
|
3336
|
+
0 < Oa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
3329
3337
|
setTimeout(function() {
|
|
3330
3338
|
m.setStatus("");
|
|
3331
3339
|
}, 1);
|
|
@@ -3338,7 +3346,7 @@ if (m.preInit) {
|
|
|
3338
3346
|
m.preInit.pop()();
|
|
3339
3347
|
}
|
|
3340
3348
|
}
|
|
3341
|
-
|
|
3349
|
+
he();
|
|
3342
3350
|
moduleRtn = da;
|
|
3343
3351
|
|
|
3344
3352
|
|