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