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