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