@rive-app/webgl 2.10.3 → 2.11.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.d.ts +5 -0
- package/rive.js +4020 -179
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
package/rive.js
CHANGED
|
@@ -26,176 +26,4014 @@ var Rive = (() => {
|
|
|
26
26
|
return (
|
|
27
27
|
function(moduleArg = {}) {
|
|
28
28
|
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
function
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
29
|
+
var m = moduleArg, aa, ba;
|
|
30
|
+
m.ready = new Promise((a, b) => {
|
|
31
|
+
aa = a;
|
|
32
|
+
ba = b;
|
|
33
|
+
});
|
|
34
|
+
function ca() {
|
|
35
|
+
function a(g) {
|
|
36
|
+
const k = d;
|
|
37
|
+
c = b = 0;
|
|
38
|
+
d = new Map();
|
|
39
|
+
k.forEach(p => {
|
|
40
|
+
try {
|
|
41
|
+
p(g);
|
|
42
|
+
} catch (n) {
|
|
43
|
+
console.error(n);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
this.lb();
|
|
47
|
+
e && e.Rb();
|
|
48
|
+
}
|
|
49
|
+
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
50
|
+
this.requestAnimationFrame = function(g) {
|
|
51
|
+
b || (b = requestAnimationFrame(a.bind(this)));
|
|
52
|
+
const k = ++c;
|
|
53
|
+
d.set(k, g);
|
|
54
|
+
return k;
|
|
55
|
+
};
|
|
56
|
+
this.cancelAnimationFrame = function(g) {
|
|
57
|
+
d.delete(g);
|
|
58
|
+
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
59
|
+
};
|
|
60
|
+
this.Pb = function(g) {
|
|
61
|
+
f && (document.body.remove(f), f = null);
|
|
62
|
+
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(k) {
|
|
63
|
+
f.innerHTML = "RIVE FPS " + k.toFixed(1);
|
|
64
|
+
}, document.body.appendChild(f));
|
|
65
|
+
e = new function() {
|
|
66
|
+
let k = 0, p = 0;
|
|
67
|
+
this.Rb = function() {
|
|
68
|
+
var n = performance.now();
|
|
69
|
+
p ? (++k, n -= p, 1000 < n && (g(1000 * k / n), k = p = 0)) : (p = n, k = 0);
|
|
70
|
+
};
|
|
71
|
+
}();
|
|
72
|
+
};
|
|
73
|
+
this.lb = function() {
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function da() {
|
|
77
|
+
console.assert(!0);
|
|
78
|
+
const a = new Map();
|
|
79
|
+
let b = -Infinity;
|
|
80
|
+
this.push = function(c) {
|
|
81
|
+
c = c + 255 >> 8;
|
|
82
|
+
a.has(c) && clearTimeout(a.get(c));
|
|
83
|
+
a.set(c, setTimeout(function() {
|
|
84
|
+
a.delete(c);
|
|
85
|
+
0 == a.length ? b = -Infinity : c == b && (b = Math.max(...a.keys()), console.assert(b < c));
|
|
86
|
+
}, 1000));
|
|
87
|
+
b = Math.max(c, b);
|
|
88
|
+
return b << 8;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
const ea = m.onRuntimeInitialized;
|
|
92
|
+
m.onRuntimeInitialized = function() {
|
|
93
|
+
ea && ea();
|
|
94
|
+
let a = m.decodeFont;
|
|
95
|
+
m.decodeFont = function(c, d) {
|
|
96
|
+
c = a(c);
|
|
97
|
+
d(c);
|
|
98
|
+
};
|
|
99
|
+
const b = m.FileAssetLoader;
|
|
100
|
+
m.ptrToAsset = c => {
|
|
101
|
+
let d = m.ptrToFileAsset(c);
|
|
102
|
+
return d.isImage ? m.ptrToImageAsset(c) : d.isFont ? m.ptrToFontAsset(c) : d;
|
|
103
|
+
};
|
|
104
|
+
m.CustomFileAssetLoader = b.extend("CustomFileAssetLoader", {__construct:function({loadContents:c}) {
|
|
105
|
+
this.__parent.__construct.call(this);
|
|
106
|
+
this.Cb = c;
|
|
107
|
+
}, loadContents:function(c, d) {
|
|
108
|
+
c = m.ptrToAsset(c);
|
|
109
|
+
return this.Cb(c, d);
|
|
110
|
+
},});
|
|
111
|
+
m.CDNFileAssetLoader = b.extend("CDNFileAssetLoader", {__construct:function() {
|
|
112
|
+
this.__parent.__construct.call(this);
|
|
113
|
+
}, loadContents:function(c) {
|
|
114
|
+
let d = m.ptrToAsset(c);
|
|
115
|
+
c = d.cdnUuid;
|
|
116
|
+
if ("" === c) {
|
|
117
|
+
return !1;
|
|
118
|
+
}
|
|
119
|
+
(function(e, f) {
|
|
120
|
+
var g = new XMLHttpRequest();
|
|
121
|
+
g.responseType = "arraybuffer";
|
|
122
|
+
g.onreadystatechange = function() {
|
|
123
|
+
4 == g.readyState && 200 == g.status && f(g);
|
|
124
|
+
};
|
|
125
|
+
g.open("GET", e, !0);
|
|
126
|
+
g.send(null);
|
|
127
|
+
})(d.cdnBaseUrl + "/" + c, e => {
|
|
128
|
+
d.decode(new Uint8Array(e.response));
|
|
129
|
+
});
|
|
130
|
+
return !0;
|
|
131
|
+
},});
|
|
132
|
+
m.FallbackFileAssetLoader = b.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
133
|
+
this.__parent.__construct.call(this);
|
|
134
|
+
this.gb = [];
|
|
135
|
+
}, addLoader:function(c) {
|
|
136
|
+
this.gb.push(c);
|
|
137
|
+
}, loadContents:function(c, d) {
|
|
138
|
+
for (let e of this.gb) {
|
|
139
|
+
if (e.loadContents(c, d)) {
|
|
140
|
+
return !0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return !1;
|
|
144
|
+
},});
|
|
145
|
+
};
|
|
146
|
+
const fa = m.onRuntimeInitialized;
|
|
147
|
+
m.onRuntimeInitialized = function() {
|
|
148
|
+
function a(l) {
|
|
149
|
+
this.F = l;
|
|
150
|
+
this.zb = l.getContext("2d");
|
|
151
|
+
this.Eb = e;
|
|
152
|
+
this.S = [];
|
|
153
|
+
this.ja = 0;
|
|
154
|
+
this.clear = function() {
|
|
155
|
+
console.assert(0 == this.ja);
|
|
156
|
+
this.S = [];
|
|
157
|
+
f.delete(this);
|
|
158
|
+
};
|
|
159
|
+
this.save = function() {
|
|
160
|
+
++this.ja;
|
|
161
|
+
this.S.push(e.save.bind(e));
|
|
162
|
+
};
|
|
163
|
+
this.restore = function() {
|
|
164
|
+
0 < this.ja && (this.S.push(e.restore.bind(e)), --this.ja);
|
|
165
|
+
};
|
|
166
|
+
this.transform = function(r) {
|
|
167
|
+
this.S.push(e.transform.bind(e, r));
|
|
168
|
+
};
|
|
169
|
+
this.align = function(r, x, z, H) {
|
|
170
|
+
this.S.push(e.align.bind(e, r, x, z, H));
|
|
171
|
+
};
|
|
172
|
+
this.flush = function() {
|
|
173
|
+
console.assert(0 == this.ja);
|
|
174
|
+
f.add(this);
|
|
175
|
+
d && c();
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
function b(l) {
|
|
179
|
+
var r = {alpha:1, depth:0, stencil:8, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, preferLowPowerToHighPerformance:0, failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,}, x = l.getContext("webgl2", r);
|
|
180
|
+
x || (x = l.getContext("webgl", r));
|
|
181
|
+
var z = x, H = ha(ja), C = {handle:H, attributes:r, version:r.Fc, Ua:z};
|
|
182
|
+
z.canvas && (z.canvas.xc = C);
|
|
183
|
+
ja[H] = C;
|
|
184
|
+
("undefined" == typeof r.Ob || r.Ob) && ka(C);
|
|
185
|
+
la(H);
|
|
186
|
+
r = g(l.width, l.height);
|
|
187
|
+
r.Bb = H;
|
|
188
|
+
r.F = l;
|
|
189
|
+
r.Wa = l.width;
|
|
190
|
+
r.Va = l.height;
|
|
191
|
+
r.Ab = x;
|
|
192
|
+
return r;
|
|
193
|
+
}
|
|
194
|
+
function c() {
|
|
195
|
+
if (e) {
|
|
196
|
+
var l = e.Db, r = 0, x = 0, z = 0, H = Array(f.size), C = 0;
|
|
197
|
+
for (var L of f) {
|
|
198
|
+
L.da = Math.min(L.F.width, l), L.ca = Math.min(L.F.height, l), L.Ja = L.ca * L.da, r = Math.max(r, L.da), x = Math.max(x, L.ca), z += L.Ja, H[C++] = L;
|
|
199
|
+
}
|
|
200
|
+
f.clear();
|
|
201
|
+
if (!(0 >= z)) {
|
|
202
|
+
r = 1 << (0 >= r ? 0 : 32 - Math.clz32(r - 1));
|
|
203
|
+
for (x = 1 << (0 >= x ? 0 : 32 - Math.clz32(x - 1)); x * r < z;) {
|
|
204
|
+
r <= x ? r *= 2 : x *= 2;
|
|
205
|
+
}
|
|
206
|
+
r = Math.min(r, l);
|
|
207
|
+
r = Math.min(x, l);
|
|
208
|
+
H.sort((ia, Fb) => Fb.Ja - ia.Ja);
|
|
209
|
+
z = new m.DynamicRectanizer(l);
|
|
210
|
+
for (L = 0; L < H.length;) {
|
|
211
|
+
z.reset(r, x);
|
|
212
|
+
for (C = L; C < H.length; ++C) {
|
|
213
|
+
var O = H[C], M = z.addRect(O.da, O.ca);
|
|
214
|
+
if (0 > M) {
|
|
215
|
+
console.assert(C > L);
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
O.qa = M & 65535;
|
|
219
|
+
O.ra = M >> 16;
|
|
220
|
+
}
|
|
221
|
+
O = p.push(z.drawWidth());
|
|
222
|
+
M = n.push(z.drawHeight());
|
|
223
|
+
console.assert(O >= z.drawWidth());
|
|
224
|
+
console.assert(M >= z.drawHeight());
|
|
225
|
+
console.assert(O <= l);
|
|
226
|
+
console.assert(M <= l);
|
|
227
|
+
e.F.width != O && (e.F.width = O);
|
|
228
|
+
e.F.height != M && (e.F.height = M);
|
|
229
|
+
e.clear();
|
|
230
|
+
for (O = L; O < C; ++O) {
|
|
231
|
+
M = H[O];
|
|
232
|
+
e.saveClipRect(M.qa, M.ra, M.qa + M.da, M.ra + M.ca);
|
|
233
|
+
let ia = new m.Mat2D();
|
|
234
|
+
ia.xx = M.da / M.F.width;
|
|
235
|
+
ia.yy = M.ca / M.F.height;
|
|
236
|
+
ia.xy = ia.yx = 0;
|
|
237
|
+
ia.tx = M.qa;
|
|
238
|
+
ia.ty = M.ra;
|
|
239
|
+
e.transform(ia);
|
|
240
|
+
for (const Fb of M.S) {
|
|
241
|
+
Fb();
|
|
242
|
+
}
|
|
243
|
+
e.restoreClipRect();
|
|
244
|
+
M.S = [];
|
|
245
|
+
}
|
|
246
|
+
for (e.flush(); L < C; ++L) {
|
|
247
|
+
O = H[L], M = O.zb, M.globalCompositeOperation = "copy", M.drawImage(e.F, O.qa, O.ra, O.da, O.ca, 0, 0, O.F.width, O.F.height);
|
|
248
|
+
}
|
|
249
|
+
L = C;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
fa && fa();
|
|
255
|
+
const d = navigator.userAgent.match(/firefox|fxios/i);
|
|
256
|
+
let e = null;
|
|
257
|
+
const f = new Set(), g = m.makeRenderer;
|
|
258
|
+
m.makeRenderer = function(l, r) {
|
|
259
|
+
return r ? (e || (e = b(document.createElement("canvas")), r = e.Ab, e.Db = Math.min(r.getParameter(r.MAX_RENDERBUFFER_SIZE), r.getParameter(r.MAX_TEXTURE_SIZE))), new a(l)) : b(l);
|
|
260
|
+
};
|
|
261
|
+
const k = m.Artboard.prototype.draw;
|
|
262
|
+
m.Artboard.prototype.draw = function(l) {
|
|
263
|
+
l.S ? l.S.push(k.bind(this, l.Eb)) : k.call(this, l);
|
|
264
|
+
};
|
|
265
|
+
const p = new da(), n = new da(), u = new ca();
|
|
266
|
+
m.requestAnimationFrame = u.requestAnimationFrame.bind(u);
|
|
267
|
+
m.cancelAnimationFrame = u.cancelAnimationFrame.bind(u);
|
|
268
|
+
m.enableFPSCounter = u.Pb.bind(u);
|
|
269
|
+
u.lb = c;
|
|
270
|
+
m.resolveAnimationFrame = c;
|
|
271
|
+
let v = m.load;
|
|
272
|
+
m.load = function(l, r, x = !0) {
|
|
273
|
+
const z = new m.FallbackFileAssetLoader();
|
|
274
|
+
void 0 !== r && z.addLoader(r);
|
|
275
|
+
x && (r = new m.CDNFileAssetLoader(), z.addLoader(r));
|
|
276
|
+
return Promise.resolve(v(l, z));
|
|
277
|
+
};
|
|
278
|
+
const y = m.WebGLRenderer.prototype.clear;
|
|
279
|
+
m.WebGLRenderer.prototype.clear = function() {
|
|
280
|
+
la(this.Bb);
|
|
281
|
+
const l = this.F;
|
|
282
|
+
if (this.Wa != l.width || this.Va != l.height) {
|
|
283
|
+
this.resize(l.width, l.height), this.Wa = l.width, this.Va = l.height;
|
|
284
|
+
}
|
|
285
|
+
y.call(this);
|
|
286
|
+
};
|
|
287
|
+
m.decodeImage = function(l, r) {
|
|
288
|
+
l = m.decodeImageSkia(l);
|
|
289
|
+
r(l);
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
var ma = Object.assign({}, m), na = "object" == typeof window, oa = "function" == typeof importScripts, pa = "", qa, ra;
|
|
293
|
+
if (na || oa) {
|
|
294
|
+
oa ? pa = self.location.href : "undefined" != typeof document && document.currentScript && (pa = document.currentScript.src), _scriptDir && (pa = _scriptDir), 0 !== pa.indexOf("blob:") ? pa = pa.substr(0, pa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : pa = "", oa && (ra = a => {
|
|
295
|
+
var b = new XMLHttpRequest();
|
|
296
|
+
b.open("GET", a, !1);
|
|
297
|
+
b.responseType = "arraybuffer";
|
|
298
|
+
b.send(null);
|
|
299
|
+
return new Uint8Array(b.response);
|
|
300
|
+
}), qa = (a, b, c) => {
|
|
301
|
+
var d = new XMLHttpRequest();
|
|
302
|
+
d.open("GET", a, !0);
|
|
303
|
+
d.responseType = "arraybuffer";
|
|
304
|
+
d.onload = () => {
|
|
305
|
+
200 == d.status || 0 == d.status && d.response ? b(d.response) : c();
|
|
306
|
+
};
|
|
307
|
+
d.onerror = c;
|
|
308
|
+
d.send(null);
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
var sa = console.log.bind(console), ta = console.error.bind(console);
|
|
312
|
+
Object.assign(m, ma);
|
|
313
|
+
ma = null;
|
|
314
|
+
var noExitRuntime = !0;
|
|
315
|
+
"object" != typeof WebAssembly && ua("no native wasm support detected");
|
|
316
|
+
var va, q, wa = !1, t, w, xa, ya, A, B, D, za;
|
|
317
|
+
function Aa() {
|
|
318
|
+
var a = va.buffer;
|
|
319
|
+
m.HEAP8 = t = new Int8Array(a);
|
|
320
|
+
m.HEAP16 = xa = new Int16Array(a);
|
|
321
|
+
m.HEAP32 = A = new Int32Array(a);
|
|
322
|
+
m.HEAPU8 = w = new Uint8Array(a);
|
|
323
|
+
m.HEAPU16 = ya = new Uint16Array(a);
|
|
324
|
+
m.HEAPU32 = B = new Uint32Array(a);
|
|
325
|
+
m.HEAPF32 = D = new Float32Array(a);
|
|
326
|
+
m.HEAPF64 = za = new Float64Array(a);
|
|
327
|
+
}
|
|
328
|
+
var Ba, Ca = [], Da = [], Ea = [], Fa = 0, Ga = null, Ha = null;
|
|
329
|
+
function ua(a) {
|
|
330
|
+
a = "Aborted(" + a + ")";
|
|
331
|
+
ta(a);
|
|
332
|
+
wa = !0;
|
|
333
|
+
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
334
|
+
ba(a);
|
|
335
|
+
throw a;
|
|
336
|
+
}
|
|
337
|
+
function Ia(a) {
|
|
338
|
+
return a.startsWith("data:application/octet-stream;base64,");
|
|
339
|
+
}
|
|
340
|
+
var Ja;
|
|
341
|
+
Ja = "webgl_advanced.wasm";
|
|
342
|
+
Ia(Ja) || (Ja = pa + Ja);
|
|
343
|
+
function Ka(a) {
|
|
344
|
+
if (ra) {
|
|
345
|
+
return ra(a);
|
|
346
|
+
}
|
|
347
|
+
throw "both async and sync fetching of the wasm failed";
|
|
348
|
+
}
|
|
349
|
+
function La(a) {
|
|
350
|
+
if (na || oa) {
|
|
351
|
+
if ("function" == typeof fetch && !a.startsWith("file://")) {
|
|
352
|
+
return fetch(a, {credentials:"same-origin"}).then(b => {
|
|
353
|
+
if (!b.ok) {
|
|
354
|
+
throw "failed to load wasm binary file at '" + a + "'";
|
|
355
|
+
}
|
|
356
|
+
return b.arrayBuffer();
|
|
357
|
+
}).catch(() => Ka(a));
|
|
358
|
+
}
|
|
359
|
+
if (qa) {
|
|
360
|
+
return new Promise((b, c) => {
|
|
361
|
+
qa(a, d => b(new Uint8Array(d)), c);
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return Promise.resolve().then(() => Ka(a));
|
|
366
|
+
}
|
|
367
|
+
function Ma(a, b, c) {
|
|
368
|
+
return La(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
|
|
369
|
+
ta("failed to asynchronously prepare wasm: " + d);
|
|
370
|
+
ua(d);
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
function Na(a, b) {
|
|
374
|
+
var c = Ja;
|
|
375
|
+
return "function" != typeof WebAssembly.instantiateStreaming || Ia(c) || c.startsWith("file://") || "function" != typeof fetch ? Ma(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
376
|
+
ta("wasm streaming compile failed: " + e);
|
|
377
|
+
ta("falling back to ArrayBuffer instantiation");
|
|
378
|
+
return Ma(c, a, b);
|
|
379
|
+
}));
|
|
380
|
+
}
|
|
381
|
+
var E, F, Ra = {490268:(a, b, c, d, e) => {
|
|
382
|
+
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
383
|
+
return 0;
|
|
384
|
+
}
|
|
385
|
+
if ("undefined" === typeof window.h) {
|
|
386
|
+
window.h = {Ea:0};
|
|
387
|
+
window.h.H = {};
|
|
388
|
+
window.h.H.Da = a;
|
|
389
|
+
window.h.H.capture = b;
|
|
390
|
+
window.h.H.La = c;
|
|
391
|
+
window.h.ha = {};
|
|
392
|
+
window.h.ha.stopped = d;
|
|
393
|
+
window.h.ha.tb = e;
|
|
394
|
+
let f = window.h;
|
|
395
|
+
f.C = [];
|
|
396
|
+
f.vc = function(g) {
|
|
397
|
+
for (var k = 0; k < f.C.length; ++k) {
|
|
398
|
+
if (null == f.C[k]) {
|
|
399
|
+
return f.C[k] = g, k;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
f.C.push(g);
|
|
403
|
+
return f.C.length - 1;
|
|
404
|
+
};
|
|
405
|
+
f.yb = function(g) {
|
|
406
|
+
for (f.C[g] = null; 0 < f.C.length;) {
|
|
407
|
+
if (null == f.C[f.C.length - 1]) {
|
|
408
|
+
f.C.pop();
|
|
409
|
+
} else {
|
|
410
|
+
break;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
f.Kc = function(g) {
|
|
415
|
+
for (var k = 0; k < f.C.length; ++k) {
|
|
416
|
+
if (f.C[k] == g) {
|
|
417
|
+
return f.yb(k);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
f.ua = function(g) {
|
|
422
|
+
return f.C[g];
|
|
423
|
+
};
|
|
424
|
+
f.xb = ["touchend", "click"];
|
|
425
|
+
f.unlock = function() {
|
|
426
|
+
for (var g = 0; g < f.C.length; ++g) {
|
|
427
|
+
var k = f.C[g];
|
|
428
|
+
null != k && null != k.I && k.state === f.ha.tb && k.I.resume().then(() => {
|
|
429
|
+
Oa(k.mb);
|
|
430
|
+
}, p => {
|
|
431
|
+
console.error("Failed to resume audiocontext", p);
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
f.xb.map(function(p) {
|
|
435
|
+
document.removeEventListener(p, f.unlock, !0);
|
|
436
|
+
});
|
|
437
|
+
};
|
|
438
|
+
f.xb.map(function(g) {
|
|
439
|
+
document.addEventListener(g, f.unlock, !0);
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
window.h.Ea += 1;
|
|
443
|
+
return 1;
|
|
444
|
+
}, 492446:() => {
|
|
445
|
+
"undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
446
|
+
}, 492610:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 492714:() => {
|
|
447
|
+
try {
|
|
448
|
+
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
449
|
+
a.close();
|
|
450
|
+
return b;
|
|
451
|
+
} catch (c) {
|
|
452
|
+
return 0;
|
|
453
|
+
}
|
|
454
|
+
}, 492885:(a, b, c, d, e, f) => {
|
|
455
|
+
if ("undefined" === typeof window.h) {
|
|
456
|
+
return -1;
|
|
457
|
+
}
|
|
458
|
+
var g = {}, k = {};
|
|
459
|
+
a == window.h.H.Da && 0 != c && (k.sampleRate = c);
|
|
460
|
+
g.I = new (window.AudioContext || window.webkitAudioContext)(k);
|
|
461
|
+
g.I.suspend();
|
|
462
|
+
g.state = window.h.ha.stopped;
|
|
463
|
+
c = 0;
|
|
464
|
+
a != window.h.H.Da && (c = b);
|
|
465
|
+
g.Y = g.I.createScriptProcessor(d, c, b);
|
|
466
|
+
g.Y.onaudioprocess = function(p) {
|
|
467
|
+
if (null == g.va || 0 == g.va.length) {
|
|
468
|
+
g.va = new Float32Array(D.buffer, e, d * b);
|
|
469
|
+
}
|
|
470
|
+
if (a == window.h.H.capture || a == window.h.H.La) {
|
|
471
|
+
for (var n = 0; n < b; n += 1) {
|
|
472
|
+
for (var u = p.inputBuffer.getChannelData(n), v = g.va, y = 0; y < d; y += 1) {
|
|
473
|
+
v[y * b + n] = u[y];
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
Pa(f, d, e);
|
|
477
|
+
}
|
|
478
|
+
if (a == window.h.H.Da || a == window.h.H.La) {
|
|
479
|
+
for (Qa(f, d, e), n = 0; n < p.outputBuffer.numberOfChannels; ++n) {
|
|
480
|
+
for (u = p.outputBuffer.getChannelData(n), v = g.va, y = 0; y < d; y += 1) {
|
|
481
|
+
u[y] = v[y * b + n];
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
} else {
|
|
485
|
+
for (n = 0; n < p.outputBuffer.numberOfChannels; ++n) {
|
|
486
|
+
p.outputBuffer.getChannelData(n).fill(0.0);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
a != window.h.H.capture && a != window.h.H.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
|
|
491
|
+
g.Fa = g.I.createMediaStreamSource(p);
|
|
492
|
+
g.Fa.connect(g.Y);
|
|
493
|
+
g.Y.connect(g.I.destination);
|
|
494
|
+
}).catch(function(p) {
|
|
495
|
+
console.log("Failed to get user media: " + p);
|
|
496
|
+
});
|
|
497
|
+
a == window.h.H.Da && g.Y.connect(g.I.destination);
|
|
498
|
+
g.mb = f;
|
|
499
|
+
return window.h.vc(g);
|
|
500
|
+
}, 495762:a => window.h.ua(a).I.sampleRate, 495835:a => {
|
|
501
|
+
a = window.h.ua(a);
|
|
502
|
+
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
503
|
+
}, a.Y.disconnect(), a.Y = void 0);
|
|
504
|
+
void 0 !== a.Fa && (a.Fa.disconnect(), a.Fa = void 0);
|
|
505
|
+
a.I.close();
|
|
506
|
+
a.I = void 0;
|
|
507
|
+
a.mb = void 0;
|
|
508
|
+
}, 496235:a => {
|
|
509
|
+
window.h.yb(a);
|
|
510
|
+
}, 496285:a => {
|
|
511
|
+
a = window.h.ua(a);
|
|
512
|
+
a.I.resume();
|
|
513
|
+
a.state = window.h.ha.tb;
|
|
514
|
+
}, 496424:a => {
|
|
515
|
+
a = window.h.ua(a);
|
|
516
|
+
a.I.suspend();
|
|
517
|
+
a.state = window.h.ha.stopped;
|
|
518
|
+
}}, Sa = (a, b) => {
|
|
519
|
+
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
520
|
+
var e = a[d];
|
|
521
|
+
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
522
|
+
}
|
|
523
|
+
if (b) {
|
|
524
|
+
for (; c; c--) {
|
|
525
|
+
a.unshift("..");
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
return a;
|
|
529
|
+
}, Ta = a => {
|
|
530
|
+
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
531
|
+
(a = Sa(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
532
|
+
a && c && (a += "/");
|
|
533
|
+
return (b ? "/" : "") + a;
|
|
534
|
+
}, Ua = a => {
|
|
535
|
+
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
536
|
+
a = b[0];
|
|
537
|
+
b = b[1];
|
|
538
|
+
if (!a && !b) {
|
|
539
|
+
return ".";
|
|
540
|
+
}
|
|
541
|
+
b && (b = b.substr(0, b.length - 1));
|
|
542
|
+
return a + b;
|
|
543
|
+
}, Va = a => {
|
|
544
|
+
if ("/" === a) {
|
|
545
|
+
return "/";
|
|
546
|
+
}
|
|
547
|
+
a = Ta(a);
|
|
548
|
+
a = a.replace(/\/$/, "");
|
|
549
|
+
var b = a.lastIndexOf("/");
|
|
550
|
+
return -1 === b ? a : a.substr(b + 1);
|
|
551
|
+
}, Wa = () => {
|
|
552
|
+
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
553
|
+
return a => crypto.getRandomValues(a);
|
|
554
|
+
}
|
|
555
|
+
ua("initRandomDevice");
|
|
556
|
+
}, Xa = a => (Xa = Wa())(a);
|
|
557
|
+
function Ya() {
|
|
558
|
+
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
559
|
+
b = 0 <= c ? arguments[c] : "/";
|
|
560
|
+
if ("string" != typeof b) {
|
|
561
|
+
throw new TypeError("Arguments to path.resolve must be strings");
|
|
562
|
+
}
|
|
563
|
+
if (!b) {
|
|
564
|
+
return "";
|
|
565
|
+
}
|
|
566
|
+
a = b + "/" + a;
|
|
567
|
+
b = "/" === b.charAt(0);
|
|
568
|
+
}
|
|
569
|
+
a = Sa(a.split("/").filter(d => !!d), !b).join("/");
|
|
570
|
+
return (b ? "/" : "") + a || ".";
|
|
571
|
+
}
|
|
572
|
+
var Za = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, $a = (a, b, c) => {
|
|
573
|
+
var d = b + c;
|
|
574
|
+
for (c = b; a[c] && !(c >= d);) {
|
|
575
|
+
++c;
|
|
576
|
+
}
|
|
577
|
+
if (16 < c - b && a.buffer && Za) {
|
|
578
|
+
return Za.decode(a.subarray(b, c));
|
|
579
|
+
}
|
|
580
|
+
for (d = ""; b < c;) {
|
|
581
|
+
var e = a[b++];
|
|
582
|
+
if (e & 128) {
|
|
583
|
+
var f = a[b++] & 63;
|
|
584
|
+
if (192 == (e & 224)) {
|
|
585
|
+
d += String.fromCharCode((e & 31) << 6 | f);
|
|
586
|
+
} else {
|
|
587
|
+
var g = a[b++] & 63;
|
|
588
|
+
e = 224 == (e & 240) ? (e & 15) << 12 | f << 6 | g : (e & 7) << 18 | f << 12 | g << 6 | a[b++] & 63;
|
|
589
|
+
65536 > e ? d += String.fromCharCode(e) : (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023));
|
|
590
|
+
}
|
|
591
|
+
} else {
|
|
592
|
+
d += String.fromCharCode(e);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
return d;
|
|
596
|
+
}, ab = [], bb = a => {
|
|
597
|
+
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
598
|
+
var d = a.charCodeAt(c);
|
|
599
|
+
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
600
|
+
}
|
|
601
|
+
return b;
|
|
602
|
+
}, cb = (a, b, c, d) => {
|
|
603
|
+
if (!(0 < d)) {
|
|
604
|
+
return 0;
|
|
605
|
+
}
|
|
606
|
+
var e = c;
|
|
607
|
+
d = c + d - 1;
|
|
608
|
+
for (var f = 0; f < a.length; ++f) {
|
|
609
|
+
var g = a.charCodeAt(f);
|
|
610
|
+
if (55296 <= g && 57343 >= g) {
|
|
611
|
+
var k = a.charCodeAt(++f);
|
|
612
|
+
g = 65536 + ((g & 1023) << 10) | k & 1023;
|
|
613
|
+
}
|
|
614
|
+
if (127 >= g) {
|
|
615
|
+
if (c >= d) {
|
|
616
|
+
break;
|
|
617
|
+
}
|
|
618
|
+
b[c++] = g;
|
|
619
|
+
} else {
|
|
620
|
+
if (2047 >= g) {
|
|
621
|
+
if (c + 1 >= d) {
|
|
622
|
+
break;
|
|
623
|
+
}
|
|
624
|
+
b[c++] = 192 | g >> 6;
|
|
625
|
+
} else {
|
|
626
|
+
if (65535 >= g) {
|
|
627
|
+
if (c + 2 >= d) {
|
|
628
|
+
break;
|
|
629
|
+
}
|
|
630
|
+
b[c++] = 224 | g >> 12;
|
|
631
|
+
} else {
|
|
632
|
+
if (c + 3 >= d) {
|
|
633
|
+
break;
|
|
634
|
+
}
|
|
635
|
+
b[c++] = 240 | g >> 18;
|
|
636
|
+
b[c++] = 128 | g >> 12 & 63;
|
|
637
|
+
}
|
|
638
|
+
b[c++] = 128 | g >> 6 & 63;
|
|
639
|
+
}
|
|
640
|
+
b[c++] = 128 | g & 63;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
b[c] = 0;
|
|
644
|
+
return c - e;
|
|
645
|
+
};
|
|
646
|
+
function db(a, b) {
|
|
647
|
+
var c = Array(bb(a) + 1);
|
|
648
|
+
a = cb(a, c, 0, c.length);
|
|
649
|
+
b && (c.length = a);
|
|
650
|
+
return c;
|
|
651
|
+
}
|
|
652
|
+
var eb = [];
|
|
653
|
+
function fb(a, b) {
|
|
654
|
+
eb[a] = {input:[], D:[], U:b};
|
|
655
|
+
gb(a, hb);
|
|
656
|
+
}
|
|
657
|
+
var hb = {open:function(a) {
|
|
658
|
+
var b = eb[a.node.la];
|
|
659
|
+
if (!b) {
|
|
660
|
+
throw new G(43);
|
|
661
|
+
}
|
|
662
|
+
a.s = b;
|
|
663
|
+
a.seekable = !1;
|
|
664
|
+
}, close:function(a) {
|
|
665
|
+
a.s.U.ta(a.s);
|
|
666
|
+
}, ta:function(a) {
|
|
667
|
+
a.s.U.ta(a.s);
|
|
668
|
+
}, read:function(a, b, c, d) {
|
|
669
|
+
if (!a.s || !a.s.U.eb) {
|
|
670
|
+
throw new G(60);
|
|
671
|
+
}
|
|
672
|
+
for (var e = 0, f = 0; f < d; f++) {
|
|
673
|
+
try {
|
|
674
|
+
var g = a.s.U.eb(a.s);
|
|
675
|
+
} catch (k) {
|
|
676
|
+
throw new G(29);
|
|
677
|
+
}
|
|
678
|
+
if (void 0 === g && 0 === e) {
|
|
679
|
+
throw new G(6);
|
|
680
|
+
}
|
|
681
|
+
if (null === g || void 0 === g) {
|
|
682
|
+
break;
|
|
683
|
+
}
|
|
684
|
+
e++;
|
|
685
|
+
b[c + f] = g;
|
|
686
|
+
}
|
|
687
|
+
e && (a.node.timestamp = Date.now());
|
|
688
|
+
return e;
|
|
689
|
+
}, write:function(a, b, c, d) {
|
|
690
|
+
if (!a.s || !a.s.U.Pa) {
|
|
691
|
+
throw new G(60);
|
|
692
|
+
}
|
|
693
|
+
try {
|
|
694
|
+
for (var e = 0; e < d; e++) {
|
|
695
|
+
a.s.U.Pa(a.s, b[c + e]);
|
|
696
|
+
}
|
|
697
|
+
} catch (f) {
|
|
698
|
+
throw new G(29);
|
|
699
|
+
}
|
|
700
|
+
d && (a.node.timestamp = Date.now());
|
|
701
|
+
return e;
|
|
702
|
+
},}, ib = {eb:function() {
|
|
703
|
+
a: {
|
|
704
|
+
if (!ab.length) {
|
|
705
|
+
var a = null;
|
|
706
|
+
"undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
|
|
707
|
+
if (!a) {
|
|
708
|
+
a = null;
|
|
709
|
+
break a;
|
|
710
|
+
}
|
|
711
|
+
ab = db(a, !0);
|
|
712
|
+
}
|
|
713
|
+
a = ab.shift();
|
|
714
|
+
}
|
|
715
|
+
return a;
|
|
716
|
+
}, Pa:function(a, b) {
|
|
717
|
+
null === b || 10 === b ? (sa($a(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
718
|
+
}, ta:function(a) {
|
|
719
|
+
a.D && 0 < a.D.length && (sa($a(a.D, 0)), a.D = []);
|
|
720
|
+
}, bc:function() {
|
|
721
|
+
return {Ac:25856, Cc:5, zc:191, Bc:35387, yc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
|
|
722
|
+
}, cc:function() {
|
|
723
|
+
return 0;
|
|
724
|
+
}, dc:function() {
|
|
725
|
+
return [24, 80];
|
|
726
|
+
},}, jb = {Pa:function(a, b) {
|
|
727
|
+
null === b || 10 === b ? (ta($a(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
728
|
+
}, ta:function(a) {
|
|
729
|
+
a.D && 0 < a.D.length && (ta($a(a.D, 0)), a.D = []);
|
|
730
|
+
},};
|
|
731
|
+
function kb(a, b) {
|
|
732
|
+
var c = a.l ? a.l.length : 0;
|
|
733
|
+
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.l, a.l = new Uint8Array(b), 0 < a.v && a.l.set(c.subarray(0, a.v), 0));
|
|
734
|
+
}
|
|
735
|
+
var I = {O:null, T() {
|
|
736
|
+
return I.createNode(null, "/", 16895, 0);
|
|
737
|
+
}, createNode(a, b, c, d) {
|
|
738
|
+
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
739
|
+
throw new G(63);
|
|
740
|
+
}
|
|
741
|
+
I.O || (I.O = {dir:{node:{M:I.j.M, P:I.j.P, ka:I.j.ka, Ba:I.j.Ba, rb:I.j.rb, wb:I.j.wb, sb:I.j.sb, pb:I.j.pb, Ga:I.j.Ga}, stream:{$:I.m.$}}, file:{node:{M:I.j.M, P:I.j.P}, stream:{$:I.m.$, read:I.m.read, write:I.m.write, sa:I.m.sa, ib:I.m.ib, kb:I.m.kb}}, link:{node:{M:I.j.M, P:I.j.P, ma:I.j.ma}, stream:{}}, Xa:{node:{M:I.j.M, P:I.j.P}, stream:lb}});
|
|
742
|
+
c = mb(a, b, c, d);
|
|
743
|
+
16384 === (c.mode & 61440) ? (c.j = I.O.dir.node, c.m = I.O.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = I.O.file.node, c.m = I.O.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = I.O.link.node, c.m = I.O.link.stream) : 8192 === (c.mode & 61440) && (c.j = I.O.Xa.node, c.m = I.O.Xa.stream);
|
|
744
|
+
c.timestamp = Date.now();
|
|
745
|
+
a && (a.l[b] = c, a.timestamp = c.timestamp);
|
|
746
|
+
return c;
|
|
747
|
+
}, Ec(a) {
|
|
748
|
+
return a.l ? a.l.subarray ? a.l.subarray(0, a.v) : new Uint8Array(a.l) : new Uint8Array(0);
|
|
749
|
+
}, j:{M(a) {
|
|
750
|
+
var b = {};
|
|
751
|
+
b.Mb = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
752
|
+
b.fb = a.id;
|
|
753
|
+
b.mode = a.mode;
|
|
754
|
+
b.jc = 1;
|
|
755
|
+
b.uid = 0;
|
|
756
|
+
b.Xb = 0;
|
|
757
|
+
b.la = a.la;
|
|
758
|
+
16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.v : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
|
|
759
|
+
b.Fb = new Date(a.timestamp);
|
|
760
|
+
b.hc = new Date(a.timestamp);
|
|
761
|
+
b.Jb = new Date(a.timestamp);
|
|
762
|
+
b.Gb = 4096;
|
|
763
|
+
b.Hb = Math.ceil(b.size / b.Gb);
|
|
764
|
+
return b;
|
|
765
|
+
}, P(a, b) {
|
|
766
|
+
void 0 !== b.mode && (a.mode = b.mode);
|
|
767
|
+
void 0 !== b.timestamp && (a.timestamp = b.timestamp);
|
|
768
|
+
if (void 0 !== b.size && (b = b.size, a.v != b)) {
|
|
769
|
+
if (0 == b) {
|
|
770
|
+
a.l = null, a.v = 0;
|
|
771
|
+
} else {
|
|
772
|
+
var c = a.l;
|
|
773
|
+
a.l = new Uint8Array(b);
|
|
774
|
+
c && a.l.set(c.subarray(0, Math.min(b, a.v)));
|
|
775
|
+
a.v = b;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}, ka() {
|
|
779
|
+
throw nb[44];
|
|
780
|
+
}, Ba(a, b, c, d) {
|
|
781
|
+
return I.createNode(a, b, c, d);
|
|
782
|
+
}, rb(a, b, c) {
|
|
783
|
+
if (16384 === (a.mode & 61440)) {
|
|
784
|
+
try {
|
|
785
|
+
var d = ob(b, c);
|
|
786
|
+
} catch (f) {
|
|
787
|
+
}
|
|
788
|
+
if (d) {
|
|
789
|
+
for (var e in d.l) {
|
|
790
|
+
throw new G(55);
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
delete a.parent.l[a.name];
|
|
795
|
+
a.parent.timestamp = Date.now();
|
|
796
|
+
a.name = c;
|
|
797
|
+
b.l[c] = a;
|
|
798
|
+
b.timestamp = a.parent.timestamp;
|
|
799
|
+
a.parent = b;
|
|
800
|
+
}, wb(a, b) {
|
|
801
|
+
delete a.l[b];
|
|
802
|
+
a.timestamp = Date.now();
|
|
803
|
+
}, sb(a, b) {
|
|
804
|
+
var c = ob(a, b), d;
|
|
805
|
+
for (d in c.l) {
|
|
806
|
+
throw new G(55);
|
|
807
|
+
}
|
|
808
|
+
delete a.l[b];
|
|
809
|
+
a.timestamp = Date.now();
|
|
810
|
+
}, pb(a) {
|
|
811
|
+
var b = [".", ".."], c;
|
|
812
|
+
for (c in a.l) {
|
|
813
|
+
a.l.hasOwnProperty(c) && b.push(c);
|
|
814
|
+
}
|
|
815
|
+
return b;
|
|
816
|
+
}, Ga(a, b, c) {
|
|
817
|
+
a = I.createNode(a, b, 41471, 0);
|
|
818
|
+
a.link = c;
|
|
819
|
+
return a;
|
|
820
|
+
}, ma(a) {
|
|
821
|
+
if (40960 !== (a.mode & 61440)) {
|
|
822
|
+
throw new G(28);
|
|
823
|
+
}
|
|
824
|
+
return a.link;
|
|
825
|
+
},}, m:{read(a, b, c, d, e) {
|
|
826
|
+
var f = a.node.l;
|
|
827
|
+
if (e >= a.node.v) {
|
|
828
|
+
return 0;
|
|
829
|
+
}
|
|
830
|
+
a = Math.min(a.node.v - e, d);
|
|
831
|
+
if (8 < a && f.subarray) {
|
|
832
|
+
b.set(f.subarray(e, e + a), c);
|
|
833
|
+
} else {
|
|
834
|
+
for (d = 0; d < a; d++) {
|
|
835
|
+
b[c + d] = f[e + d];
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
return a;
|
|
839
|
+
}, write(a, b, c, d, e, f) {
|
|
840
|
+
b.buffer === t.buffer && (f = !1);
|
|
841
|
+
if (!d) {
|
|
842
|
+
return 0;
|
|
843
|
+
}
|
|
844
|
+
a = a.node;
|
|
845
|
+
a.timestamp = Date.now();
|
|
846
|
+
if (b.subarray && (!a.l || a.l.subarray)) {
|
|
847
|
+
if (f) {
|
|
848
|
+
return a.l = b.subarray(c, c + d), a.v = d;
|
|
849
|
+
}
|
|
850
|
+
if (0 === a.v && 0 === e) {
|
|
851
|
+
return a.l = b.slice(c, c + d), a.v = d;
|
|
852
|
+
}
|
|
853
|
+
if (e + d <= a.v) {
|
|
854
|
+
return a.l.set(b.subarray(c, c + d), e), d;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
kb(a, e + d);
|
|
858
|
+
if (a.l.subarray && b.subarray) {
|
|
859
|
+
a.l.set(b.subarray(c, c + d), e);
|
|
860
|
+
} else {
|
|
861
|
+
for (f = 0; f < d; f++) {
|
|
862
|
+
a.l[e + f] = b[c + f];
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
a.v = Math.max(a.v, e + d);
|
|
866
|
+
return d;
|
|
867
|
+
}, $(a, b, c) {
|
|
868
|
+
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
869
|
+
if (0 > b) {
|
|
870
|
+
throw new G(28);
|
|
871
|
+
}
|
|
872
|
+
return b;
|
|
873
|
+
}, sa(a, b, c) {
|
|
874
|
+
kb(a.node, b + c);
|
|
875
|
+
a.node.v = Math.max(a.node.v, b + c);
|
|
876
|
+
}, ib(a, b, c, d, e) {
|
|
877
|
+
if (32768 !== (a.node.mode & 61440)) {
|
|
878
|
+
throw new G(43);
|
|
879
|
+
}
|
|
880
|
+
a = a.node.l;
|
|
881
|
+
if (e & 2 || a.buffer !== t.buffer) {
|
|
882
|
+
if (0 < c || c + b < a.length) {
|
|
883
|
+
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
884
|
+
}
|
|
885
|
+
c = !0;
|
|
886
|
+
b = 65536 * Math.ceil(b / 65536);
|
|
887
|
+
(e = pb(65536, b)) ? (w.fill(0, e, e + b), b = e) : b = 0;
|
|
888
|
+
if (!b) {
|
|
889
|
+
throw new G(48);
|
|
890
|
+
}
|
|
891
|
+
t.set(a, b);
|
|
892
|
+
} else {
|
|
893
|
+
c = !1, b = a.byteOffset;
|
|
894
|
+
}
|
|
895
|
+
return {o:b, L:c};
|
|
896
|
+
}, kb(a, b, c, d) {
|
|
897
|
+
I.m.write(a, b, 0, d, c, !1);
|
|
898
|
+
return 0;
|
|
899
|
+
},},};
|
|
900
|
+
function qb(a, b) {
|
|
901
|
+
var c = 0;
|
|
902
|
+
a && (c |= 365);
|
|
903
|
+
b && (c |= 146);
|
|
904
|
+
return c;
|
|
905
|
+
}
|
|
906
|
+
var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {}, yb = (a, b = {}) => {
|
|
907
|
+
a = Ya(a);
|
|
908
|
+
if (!a) {
|
|
909
|
+
return {path:"", node:null};
|
|
910
|
+
}
|
|
911
|
+
b = Object.assign({bb:!0, Ra:0}, b);
|
|
912
|
+
if (8 < b.Ra) {
|
|
913
|
+
throw new G(32);
|
|
914
|
+
}
|
|
915
|
+
a = a.split("/").filter(g => !!g);
|
|
916
|
+
for (var c = rb, d = "/", e = 0; e < a.length; e++) {
|
|
917
|
+
var f = e === a.length - 1;
|
|
918
|
+
if (f && b.parent) {
|
|
919
|
+
break;
|
|
920
|
+
}
|
|
921
|
+
c = ob(c, a[e]);
|
|
922
|
+
d = Ta(d + "/" + a[e]);
|
|
923
|
+
c.Ca && (!f || f && b.bb) && (c = c.Ca.root);
|
|
924
|
+
if (!f || b.Ma) {
|
|
925
|
+
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
926
|
+
if (c = xb(d), d = Ya(Ua(d), c), c = yb(d, {Ra:b.Ra + 1}).node, 40 < f++) {
|
|
927
|
+
throw new G(32);
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
return {path:d, node:c};
|
|
933
|
+
}, zb = a => {
|
|
934
|
+
for (var b;;) {
|
|
935
|
+
if (a === a.parent) {
|
|
936
|
+
return a = a.T.jb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
937
|
+
}
|
|
938
|
+
b = b ? `${a.name}/${b}` : a.name;
|
|
939
|
+
a = a.parent;
|
|
940
|
+
}
|
|
941
|
+
}, Ab = (a, b) => {
|
|
942
|
+
for (var c = 0, d = 0; d < b.length; d++) {
|
|
943
|
+
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
944
|
+
}
|
|
945
|
+
return (a + c >>> 0) % vb.length;
|
|
946
|
+
}, ob = (a, b) => {
|
|
947
|
+
var c;
|
|
948
|
+
if (c = (c = Bb(a, "x")) ? c : a.j.ka ? 0 : 2) {
|
|
949
|
+
throw new G(c, a);
|
|
950
|
+
}
|
|
951
|
+
for (c = vb[Ab(a.id, b)]; c; c = c.ic) {
|
|
952
|
+
var d = c.name;
|
|
953
|
+
if (c.parent.id === a.id && d === b) {
|
|
954
|
+
return c;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
return a.j.ka(a, b);
|
|
958
|
+
}, mb = (a, b, c, d) => {
|
|
959
|
+
a = new Cb(a, b, c, d);
|
|
960
|
+
b = Ab(a.parent.id, a.name);
|
|
961
|
+
a.ic = vb[b];
|
|
962
|
+
return vb[b] = a;
|
|
963
|
+
}, Db = a => {
|
|
964
|
+
var b = ["r", "w", "rw"][a & 3];
|
|
965
|
+
a & 512 && (b += "w");
|
|
966
|
+
return b;
|
|
967
|
+
}, Bb = (a, b) => {
|
|
968
|
+
if (wb) {
|
|
969
|
+
return 0;
|
|
970
|
+
}
|
|
971
|
+
if (!b.includes("r") || a.mode & 292) {
|
|
972
|
+
if (b.includes("w") && !(a.mode & 146) || b.includes("x") && !(a.mode & 73)) {
|
|
973
|
+
return 2;
|
|
974
|
+
}
|
|
975
|
+
} else {
|
|
976
|
+
return 2;
|
|
977
|
+
}
|
|
978
|
+
return 0;
|
|
979
|
+
}, Eb = (a, b) => {
|
|
980
|
+
try {
|
|
981
|
+
return ob(a, b), 20;
|
|
982
|
+
} catch (c) {
|
|
983
|
+
}
|
|
984
|
+
return Bb(a, "wx");
|
|
985
|
+
}, Gb = () => {
|
|
986
|
+
for (var a = 0; 4096 >= a; a++) {
|
|
987
|
+
if (!tb[a]) {
|
|
988
|
+
return a;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
throw new G(33);
|
|
992
|
+
}, Hb = a => {
|
|
993
|
+
a = tb[a];
|
|
994
|
+
if (!a) {
|
|
995
|
+
throw new G(8);
|
|
996
|
+
}
|
|
997
|
+
return a;
|
|
998
|
+
}, Jb = (a, b = -1) => {
|
|
999
|
+
Ib || (Ib = function() {
|
|
1000
|
+
this.h = {};
|
|
1001
|
+
}, Ib.prototype = {}, Object.defineProperties(Ib.prototype, {object:{get() {
|
|
1002
|
+
return this.node;
|
|
1003
|
+
}, set(c) {
|
|
1004
|
+
this.node = c;
|
|
1005
|
+
}}, flags:{get() {
|
|
1006
|
+
return this.h.flags;
|
|
1007
|
+
}, set(c) {
|
|
1008
|
+
this.h.flags = c;
|
|
1009
|
+
},}, position:{get() {
|
|
1010
|
+
return this.h.position;
|
|
1011
|
+
}, set(c) {
|
|
1012
|
+
this.h.position = c;
|
|
1013
|
+
},},}));
|
|
1014
|
+
a = Object.assign(new Ib(), a);
|
|
1015
|
+
-1 == b && (b = Gb());
|
|
1016
|
+
a.X = b;
|
|
1017
|
+
return tb[b] = a;
|
|
1018
|
+
}, lb = {open:a => {
|
|
1019
|
+
a.m = sb[a.node.la].m;
|
|
1020
|
+
a.m.open && a.m.open(a);
|
|
1021
|
+
}, $:() => {
|
|
1022
|
+
throw new G(70);
|
|
1023
|
+
},}, gb = (a, b) => {
|
|
1024
|
+
sb[a] = {m:b};
|
|
1025
|
+
}, Kb = (a, b) => {
|
|
1026
|
+
var c = "/" === b, d = !b;
|
|
1027
|
+
if (c && rb) {
|
|
1028
|
+
throw new G(10);
|
|
1029
|
+
}
|
|
1030
|
+
if (!c && !d) {
|
|
1031
|
+
var e = yb(b, {bb:!1});
|
|
1032
|
+
b = e.path;
|
|
1033
|
+
e = e.node;
|
|
1034
|
+
if (e.Ca) {
|
|
1035
|
+
throw new G(10);
|
|
1036
|
+
}
|
|
1037
|
+
if (16384 !== (e.mode & 61440)) {
|
|
1038
|
+
throw new G(54);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
b = {type:a, Ic:{}, jb:b, fc:[]};
|
|
1042
|
+
a = a.T(b);
|
|
1043
|
+
a.T = b;
|
|
1044
|
+
b.root = a;
|
|
1045
|
+
c ? rb = a : e && (e.Ca = b, e.T && e.T.fc.push(b));
|
|
1046
|
+
}, Lb = (a, b, c) => {
|
|
1047
|
+
var d = yb(a, {parent:!0}).node;
|
|
1048
|
+
a = Va(a);
|
|
1049
|
+
if (!a || "." === a || ".." === a) {
|
|
1050
|
+
throw new G(28);
|
|
1051
|
+
}
|
|
1052
|
+
var e = Eb(d, a);
|
|
1053
|
+
if (e) {
|
|
1054
|
+
throw new G(e);
|
|
1055
|
+
}
|
|
1056
|
+
if (!d.j.Ba) {
|
|
1057
|
+
throw new G(63);
|
|
1058
|
+
}
|
|
1059
|
+
return d.j.Ba(d, a, b, c);
|
|
1060
|
+
}, Mb = (a, b, c) => {
|
|
1061
|
+
"undefined" == typeof c && (c = b, b = 438);
|
|
1062
|
+
Lb(a, b | 8192, c);
|
|
1063
|
+
}, Nb = (a, b) => {
|
|
1064
|
+
if (!Ya(a)) {
|
|
1065
|
+
throw new G(44);
|
|
1066
|
+
}
|
|
1067
|
+
var c = yb(b, {parent:!0}).node;
|
|
1068
|
+
if (!c) {
|
|
1069
|
+
throw new G(44);
|
|
1070
|
+
}
|
|
1071
|
+
b = Va(b);
|
|
1072
|
+
var d = Eb(c, b);
|
|
1073
|
+
if (d) {
|
|
1074
|
+
throw new G(d);
|
|
1075
|
+
}
|
|
1076
|
+
if (!c.j.Ga) {
|
|
1077
|
+
throw new G(63);
|
|
1078
|
+
}
|
|
1079
|
+
c.j.Ga(c, b, a);
|
|
1080
|
+
}, xb = a => {
|
|
1081
|
+
a = yb(a).node;
|
|
1082
|
+
if (!a) {
|
|
1083
|
+
throw new G(44);
|
|
1084
|
+
}
|
|
1085
|
+
if (!a.j.ma) {
|
|
1086
|
+
throw new G(28);
|
|
1087
|
+
}
|
|
1088
|
+
return Ya(zb(a.parent), a.j.ma(a));
|
|
1089
|
+
}, Pb = (a, b, c) => {
|
|
1090
|
+
if ("" === a) {
|
|
1091
|
+
throw new G(44);
|
|
1092
|
+
}
|
|
1093
|
+
if ("string" == typeof b) {
|
|
1094
|
+
var d = {r:0, "r+":2, w:577, "w+":578, a:1089, "a+":1090,}[b];
|
|
1095
|
+
if ("undefined" == typeof d) {
|
|
1096
|
+
throw Error(`Unknown file open mode: ${b}`);
|
|
1097
|
+
}
|
|
1098
|
+
b = d;
|
|
1099
|
+
}
|
|
1100
|
+
c = b & 64 ? ("undefined" == typeof c ? 438 : c) & 4095 | 32768 : 0;
|
|
1101
|
+
if ("object" == typeof a) {
|
|
1102
|
+
var e = a;
|
|
1103
|
+
} else {
|
|
1104
|
+
a = Ta(a);
|
|
1105
|
+
try {
|
|
1106
|
+
e = yb(a, {Ma:!(b & 131072)}).node;
|
|
1107
|
+
} catch (f) {
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
d = !1;
|
|
1111
|
+
if (b & 64) {
|
|
1112
|
+
if (e) {
|
|
1113
|
+
if (b & 128) {
|
|
1114
|
+
throw new G(20);
|
|
1115
|
+
}
|
|
1116
|
+
} else {
|
|
1117
|
+
e = Lb(a, c, 0), d = !0;
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
if (!e) {
|
|
1121
|
+
throw new G(44);
|
|
1122
|
+
}
|
|
1123
|
+
8192 === (e.mode & 61440) && (b &= -513);
|
|
1124
|
+
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1125
|
+
throw new G(54);
|
|
1126
|
+
}
|
|
1127
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Db(b) || b & 512) ? 31 : Bb(e, Db(b)) : 44)) {
|
|
1128
|
+
throw new G(c);
|
|
1129
|
+
}
|
|
1130
|
+
if (b & 512 && !d) {
|
|
1131
|
+
c = e;
|
|
1132
|
+
c = "string" == typeof c ? yb(c, {Ma:!0}).node : c;
|
|
1133
|
+
if (!c.j.P) {
|
|
1134
|
+
throw new G(63);
|
|
1135
|
+
}
|
|
1136
|
+
if (16384 === (c.mode & 61440)) {
|
|
1137
|
+
throw new G(31);
|
|
1138
|
+
}
|
|
1139
|
+
if (32768 !== (c.mode & 61440)) {
|
|
1140
|
+
throw new G(28);
|
|
1141
|
+
}
|
|
1142
|
+
if (d = Bb(c, "w")) {
|
|
1143
|
+
throw new G(d);
|
|
1144
|
+
}
|
|
1145
|
+
c.j.P(c, {size:0, timestamp:Date.now()});
|
|
1146
|
+
}
|
|
1147
|
+
b &= -131713;
|
|
1148
|
+
e = Jb({node:e, path:zb(e), flags:b, seekable:!0, position:0, m:e.m, wc:[], error:!1});
|
|
1149
|
+
e.m.open && e.m.open(e);
|
|
1150
|
+
!m.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
|
|
1151
|
+
return e;
|
|
1152
|
+
}, Qb = (a, b, c) => {
|
|
1153
|
+
if (null === a.X) {
|
|
1154
|
+
throw new G(8);
|
|
1155
|
+
}
|
|
1156
|
+
if (!a.seekable || !a.m.$) {
|
|
1157
|
+
throw new G(70);
|
|
1158
|
+
}
|
|
1159
|
+
if (0 != c && 1 != c && 2 != c) {
|
|
1160
|
+
throw new G(28);
|
|
1161
|
+
}
|
|
1162
|
+
a.position = a.m.$(a, b, c);
|
|
1163
|
+
a.wc = [];
|
|
1164
|
+
}, Rb = () => {
|
|
1165
|
+
G || (G = function(a, b) {
|
|
1166
|
+
this.name = "ErrnoError";
|
|
1167
|
+
this.node = b;
|
|
1168
|
+
this.mc = function(c) {
|
|
1169
|
+
this.W = c;
|
|
1170
|
+
};
|
|
1171
|
+
this.mc(a);
|
|
1172
|
+
this.message = "FS error";
|
|
1173
|
+
}, G.prototype = Error(), G.prototype.constructor = G, [44].forEach(a => {
|
|
1174
|
+
nb[a] = new G(a);
|
|
1175
|
+
nb[a].stack = "<generic error, no stack>";
|
|
1176
|
+
}));
|
|
1177
|
+
}, Sb, Ub = (a, b, c) => {
|
|
1178
|
+
a = Ta("/dev/" + a);
|
|
1179
|
+
var d = qb(!!b, !!c);
|
|
1180
|
+
Tb || (Tb = 64);
|
|
1181
|
+
var e = Tb++ << 8 | 0;
|
|
1182
|
+
gb(e, {open:f => {
|
|
1183
|
+
f.seekable = !1;
|
|
1184
|
+
}, close:() => {
|
|
1185
|
+
c && c.buffer && c.buffer.length && c(10);
|
|
1186
|
+
}, read:(f, g, k, p) => {
|
|
1187
|
+
for (var n = 0, u = 0; u < p; u++) {
|
|
1188
|
+
try {
|
|
1189
|
+
var v = b();
|
|
1190
|
+
} catch (y) {
|
|
1191
|
+
throw new G(29);
|
|
1192
|
+
}
|
|
1193
|
+
if (void 0 === v && 0 === n) {
|
|
1194
|
+
throw new G(6);
|
|
1195
|
+
}
|
|
1196
|
+
if (null === v || void 0 === v) {
|
|
1197
|
+
break;
|
|
1198
|
+
}
|
|
1199
|
+
n++;
|
|
1200
|
+
g[k + u] = v;
|
|
1201
|
+
}
|
|
1202
|
+
n && (f.node.timestamp = Date.now());
|
|
1203
|
+
return n;
|
|
1204
|
+
}, write:(f, g, k, p) => {
|
|
1205
|
+
for (var n = 0; n < p; n++) {
|
|
1206
|
+
try {
|
|
1207
|
+
c(g[k + n]);
|
|
1208
|
+
} catch (u) {
|
|
1209
|
+
throw new G(29);
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
p && (f.node.timestamp = Date.now());
|
|
1213
|
+
return n;
|
|
1214
|
+
}});
|
|
1215
|
+
Mb(a, d, e);
|
|
1216
|
+
}, Tb, Vb = {}, Ib, Ob, Wb = void 0;
|
|
1217
|
+
function Xb() {
|
|
1218
|
+
Wb += 4;
|
|
1219
|
+
return A[Wb - 4 >> 2];
|
|
1220
|
+
}
|
|
1221
|
+
function Yb(a) {
|
|
1222
|
+
if (void 0 === a) {
|
|
1223
|
+
return "_unknown";
|
|
1224
|
+
}
|
|
1225
|
+
a = a.replace(/[^a-zA-Z0-9_]/g, "$");
|
|
1226
|
+
var b = a.charCodeAt(0);
|
|
1227
|
+
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1228
|
+
}
|
|
1229
|
+
function Zb(a, b) {
|
|
1230
|
+
a = Yb(a);
|
|
1231
|
+
return {[a]:function() {
|
|
1232
|
+
return b.apply(this, arguments);
|
|
1233
|
+
}}[a];
|
|
1234
|
+
}
|
|
1235
|
+
function $b() {
|
|
1236
|
+
this.L = [void 0];
|
|
1237
|
+
this.cb = [];
|
|
1238
|
+
}
|
|
1239
|
+
var J = new $b(), ac = void 0;
|
|
1240
|
+
function K(a) {
|
|
1241
|
+
throw new ac(a);
|
|
1242
|
+
}
|
|
1243
|
+
var bc = a => {
|
|
1244
|
+
a || K("Cannot use deleted val. handle = " + a);
|
|
1245
|
+
return J.get(a).value;
|
|
1246
|
+
}, cc = a => {
|
|
1247
|
+
switch(a) {
|
|
1248
|
+
case void 0:
|
|
1249
|
+
return 1;
|
|
1250
|
+
case null:
|
|
1251
|
+
return 2;
|
|
1252
|
+
case !0:
|
|
1253
|
+
return 3;
|
|
1254
|
+
case !1:
|
|
1255
|
+
return 4;
|
|
1256
|
+
default:
|
|
1257
|
+
return J.sa({qb:1, value:a});
|
|
1258
|
+
}
|
|
1259
|
+
};
|
|
1260
|
+
function dc(a) {
|
|
1261
|
+
var b = Error, c = Zb(a, function(d) {
|
|
1262
|
+
this.name = a;
|
|
1263
|
+
this.message = d;
|
|
1264
|
+
d = Error(d).stack;
|
|
1265
|
+
void 0 !== d && (this.stack = this.toString() + "\n" + d.replace(/^Error(:[^\n]*)?\n/, ""));
|
|
1266
|
+
});
|
|
1267
|
+
c.prototype = Object.create(b.prototype);
|
|
1268
|
+
c.prototype.constructor = c;
|
|
1269
|
+
c.prototype.toString = function() {
|
|
1270
|
+
return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
|
|
1271
|
+
};
|
|
1272
|
+
return c;
|
|
1273
|
+
}
|
|
1274
|
+
var ec = void 0, fc = void 0;
|
|
1275
|
+
function N(a) {
|
|
1276
|
+
for (var b = ""; w[a];) {
|
|
1277
|
+
b += fc[w[a++]];
|
|
1278
|
+
}
|
|
1279
|
+
return b;
|
|
1280
|
+
}
|
|
1281
|
+
var gc = [];
|
|
1282
|
+
function hc() {
|
|
1283
|
+
for (; gc.length;) {
|
|
1284
|
+
var a = gc.pop();
|
|
1285
|
+
a.g.ga = !1;
|
|
1286
|
+
a["delete"]();
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
var ic = void 0, jc = {};
|
|
1290
|
+
function kc(a, b) {
|
|
1291
|
+
for (void 0 === b && K("ptr should not be undefined"); a.A;) {
|
|
1292
|
+
b = a.oa(b), a = a.A;
|
|
1293
|
+
}
|
|
1294
|
+
return b;
|
|
1295
|
+
}
|
|
1296
|
+
var lc = {};
|
|
1297
|
+
function mc(a) {
|
|
1298
|
+
a = nc(a);
|
|
1299
|
+
var b = N(a);
|
|
1300
|
+
oc(a);
|
|
1301
|
+
return b;
|
|
1302
|
+
}
|
|
1303
|
+
function pc(a, b) {
|
|
1304
|
+
var c = lc[a];
|
|
1305
|
+
void 0 === c && K(b + " has unknown type " + mc(a));
|
|
1306
|
+
return c;
|
|
1307
|
+
}
|
|
1308
|
+
function qc() {
|
|
1309
|
+
}
|
|
1310
|
+
var rc = !1;
|
|
1311
|
+
function sc(a) {
|
|
1312
|
+
--a.count.value;
|
|
1313
|
+
0 === a.count.value && (a.G ? a.K.V(a.G) : a.u.i.V(a.o));
|
|
1314
|
+
}
|
|
1315
|
+
function tc(a, b, c) {
|
|
1316
|
+
if (b === c) {
|
|
1317
|
+
return a;
|
|
1318
|
+
}
|
|
1319
|
+
if (void 0 === c.A) {
|
|
1320
|
+
return null;
|
|
1321
|
+
}
|
|
1322
|
+
a = tc(a, b, c.A);
|
|
1323
|
+
return null === a ? null : c.Nb(a);
|
|
1324
|
+
}
|
|
1325
|
+
var uc = {};
|
|
1326
|
+
function vc(a, b) {
|
|
1327
|
+
b = kc(a, b);
|
|
1328
|
+
return jc[b];
|
|
1329
|
+
}
|
|
1330
|
+
var wc = void 0;
|
|
1331
|
+
function xc(a) {
|
|
1332
|
+
throw new wc(a);
|
|
1333
|
+
}
|
|
1334
|
+
function yc(a, b) {
|
|
1335
|
+
b.u && b.o || xc("makeClassHandle requires ptr and ptrType");
|
|
1336
|
+
!!b.K !== !!b.G && xc("Both smartPtrType and smartPtr must be specified");
|
|
1337
|
+
b.count = {value:1};
|
|
1338
|
+
return zc(Object.create(a, {g:{value:b,},}));
|
|
1339
|
+
}
|
|
1340
|
+
function zc(a) {
|
|
1341
|
+
if ("undefined" === typeof FinalizationRegistry) {
|
|
1342
|
+
return zc = b => b, a;
|
|
1343
|
+
}
|
|
1344
|
+
rc = new FinalizationRegistry(b => {
|
|
1345
|
+
sc(b.g);
|
|
1346
|
+
});
|
|
1347
|
+
zc = b => {
|
|
1348
|
+
var c = b.g;
|
|
1349
|
+
c.G && rc.register(b, {g:c}, b);
|
|
1350
|
+
return b;
|
|
1351
|
+
};
|
|
1352
|
+
qc = b => {
|
|
1353
|
+
rc.unregister(b);
|
|
1354
|
+
};
|
|
1355
|
+
return zc(a);
|
|
1356
|
+
}
|
|
1357
|
+
var Ac = {};
|
|
1358
|
+
function Bc(a) {
|
|
1359
|
+
for (; a.length;) {
|
|
1360
|
+
var b = a.pop();
|
|
1361
|
+
a.pop()(b);
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
function Cc(a) {
|
|
1365
|
+
return this.fromWireType(A[a >> 2]);
|
|
1366
|
+
}
|
|
1367
|
+
var Dc = {}, Ec = {};
|
|
1368
|
+
function P(a, b, c) {
|
|
1369
|
+
function d(k) {
|
|
1370
|
+
k = c(k);
|
|
1371
|
+
k.length !== a.length && xc("Mismatched type converter count");
|
|
1372
|
+
for (var p = 0; p < a.length; ++p) {
|
|
1373
|
+
Fc(a[p], k[p]);
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
a.forEach(function(k) {
|
|
1377
|
+
Ec[k] = b;
|
|
1378
|
+
});
|
|
1379
|
+
var e = Array(b.length), f = [], g = 0;
|
|
1380
|
+
b.forEach((k, p) => {
|
|
1381
|
+
lc.hasOwnProperty(k) ? e[p] = lc[k] : (f.push(k), Dc.hasOwnProperty(k) || (Dc[k] = []), Dc[k].push(() => {
|
|
1382
|
+
e[p] = lc[k];
|
|
1383
|
+
++g;
|
|
1384
|
+
g === f.length && d(e);
|
|
1385
|
+
}));
|
|
1386
|
+
});
|
|
1387
|
+
0 === f.length && d(e);
|
|
1388
|
+
}
|
|
1389
|
+
function Gc(a) {
|
|
1390
|
+
switch(a) {
|
|
1391
|
+
case 1:
|
|
1392
|
+
return 0;
|
|
1393
|
+
case 2:
|
|
1394
|
+
return 1;
|
|
1395
|
+
case 4:
|
|
1396
|
+
return 2;
|
|
1397
|
+
case 8:
|
|
1398
|
+
return 3;
|
|
1399
|
+
default:
|
|
1400
|
+
throw new TypeError(`Unknown type size: ${a}`);
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
function Hc(a, b, c = {}) {
|
|
1404
|
+
var d = b.name;
|
|
1405
|
+
a || K(`type "${d}" must have a positive integer typeid pointer`);
|
|
1406
|
+
if (lc.hasOwnProperty(a)) {
|
|
1407
|
+
if (c.Zb) {
|
|
1408
|
+
return;
|
|
1409
|
+
}
|
|
1410
|
+
K(`Cannot register type '${d}' twice`);
|
|
1411
|
+
}
|
|
1412
|
+
lc[a] = b;
|
|
1413
|
+
delete Ec[a];
|
|
1414
|
+
Dc.hasOwnProperty(a) && (b = Dc[a], delete Dc[a], b.forEach(e => e()));
|
|
1415
|
+
}
|
|
1416
|
+
function Fc(a, b, c = {}) {
|
|
1417
|
+
if (!("argPackAdvance" in b)) {
|
|
1418
|
+
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1419
|
+
}
|
|
1420
|
+
Hc(a, b, c);
|
|
1421
|
+
}
|
|
1422
|
+
function Ic(a) {
|
|
1423
|
+
K(a.g.u.i.name + " instance already deleted");
|
|
1424
|
+
}
|
|
1425
|
+
function Jc() {
|
|
1426
|
+
}
|
|
1427
|
+
function Kc(a, b, c) {
|
|
1428
|
+
if (void 0 === a[b].B) {
|
|
1429
|
+
var d = a[b];
|
|
1430
|
+
a[b] = function() {
|
|
1431
|
+
a[b].B.hasOwnProperty(arguments.length) || K(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
|
|
1432
|
+
return a[b].B[arguments.length].apply(this, arguments);
|
|
1433
|
+
};
|
|
1434
|
+
a[b].B = [];
|
|
1435
|
+
a[b].B[d.ea] = d;
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
function Lc(a, b, c) {
|
|
1439
|
+
m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && K(`Cannot register public name '${a}' twice`), Kc(m, a, a), m.hasOwnProperty(c) && K(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), m[a].B[c] = b) : (m[a] = b, void 0 !== c && (m[a].Hc = c));
|
|
1440
|
+
}
|
|
1441
|
+
function Mc(a, b, c, d, e, f, g, k) {
|
|
1442
|
+
this.name = a;
|
|
1443
|
+
this.constructor = b;
|
|
1444
|
+
this.N = c;
|
|
1445
|
+
this.V = d;
|
|
1446
|
+
this.A = e;
|
|
1447
|
+
this.Sb = f;
|
|
1448
|
+
this.oa = g;
|
|
1449
|
+
this.Nb = k;
|
|
1450
|
+
this.nb = [];
|
|
1451
|
+
}
|
|
1452
|
+
function Nc(a, b, c) {
|
|
1453
|
+
for (; b !== c;) {
|
|
1454
|
+
b.oa || K(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.oa(a), b = b.A;
|
|
1455
|
+
}
|
|
1456
|
+
return a;
|
|
1457
|
+
}
|
|
1458
|
+
function Oc(a, b) {
|
|
1459
|
+
if (null === b) {
|
|
1460
|
+
return this.Oa && K(`null is not a valid ${this.name}`), 0;
|
|
1461
|
+
}
|
|
1462
|
+
b.g || K(`Cannot pass "${Pc(b)}" as a ${this.name}`);
|
|
1463
|
+
b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1464
|
+
return Nc(b.g.o, b.g.u.i, this.i);
|
|
1465
|
+
}
|
|
1466
|
+
function Qc(a, b) {
|
|
1467
|
+
if (null === b) {
|
|
1468
|
+
this.Oa && K(`null is not a valid ${this.name}`);
|
|
1469
|
+
if (this.xa) {
|
|
1470
|
+
var c = this.Qa();
|
|
1471
|
+
null !== a && a.push(this.V, c);
|
|
1472
|
+
return c;
|
|
1473
|
+
}
|
|
1474
|
+
return 0;
|
|
1475
|
+
}
|
|
1476
|
+
b.g || K(`Cannot pass "${Pc(b)}" as a ${this.name}`);
|
|
1477
|
+
b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1478
|
+
!this.wa && b.g.u.wa && K(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1479
|
+
c = Nc(b.g.o, b.g.u.i, this.i);
|
|
1480
|
+
if (this.xa) {
|
|
1481
|
+
switch(void 0 === b.g.G && K("Passing raw pointer to smart pointer is illegal"), this.qc) {
|
|
1482
|
+
case 0:
|
|
1483
|
+
b.g.K === this ? c = b.g.G : K(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1484
|
+
break;
|
|
1485
|
+
case 1:
|
|
1486
|
+
c = b.g.G;
|
|
1487
|
+
break;
|
|
1488
|
+
case 2:
|
|
1489
|
+
if (b.g.K === this) {
|
|
1490
|
+
c = b.g.G;
|
|
1491
|
+
} else {
|
|
1492
|
+
var d = b.clone();
|
|
1493
|
+
c = this.lc(c, cc(function() {
|
|
1494
|
+
d["delete"]();
|
|
1495
|
+
}));
|
|
1496
|
+
null !== a && a.push(this.V, c);
|
|
1497
|
+
}
|
|
1498
|
+
break;
|
|
1499
|
+
default:
|
|
1500
|
+
K("Unsupporting sharing policy");
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
return c;
|
|
1504
|
+
}
|
|
1505
|
+
function Rc(a, b) {
|
|
1506
|
+
if (null === b) {
|
|
1507
|
+
return this.Oa && K(`null is not a valid ${this.name}`), 0;
|
|
1508
|
+
}
|
|
1509
|
+
b.g || K(`Cannot pass "${Pc(b)}" as a ${this.name}`);
|
|
1510
|
+
b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1511
|
+
b.g.u.wa && K(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1512
|
+
return Nc(b.g.o, b.g.u.i, this.i);
|
|
1513
|
+
}
|
|
1514
|
+
function Sc(a, b, c, d) {
|
|
1515
|
+
this.name = a;
|
|
1516
|
+
this.i = b;
|
|
1517
|
+
this.Oa = c;
|
|
1518
|
+
this.wa = d;
|
|
1519
|
+
this.xa = !1;
|
|
1520
|
+
this.V = this.lc = this.Qa = this.ob = this.qc = this.kc = void 0;
|
|
1521
|
+
void 0 !== b.A ? this.toWireType = Qc : (this.toWireType = d ? Oc : Rc, this.J = null);
|
|
1522
|
+
}
|
|
1523
|
+
function Tc(a, b, c) {
|
|
1524
|
+
m.hasOwnProperty(a) || xc("Replacing nonexistant public symbol");
|
|
1525
|
+
void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ea = c);
|
|
1526
|
+
}
|
|
1527
|
+
var Uc = [], Q = a => {
|
|
1528
|
+
var b = Uc[a];
|
|
1529
|
+
b || (a >= Uc.length && (Uc.length = a + 1), Uc[a] = b = Ba.get(a));
|
|
1530
|
+
return b;
|
|
1531
|
+
}, Vc = (a, b) => {
|
|
1532
|
+
var c = [];
|
|
1533
|
+
return function() {
|
|
1534
|
+
c.length = 0;
|
|
1535
|
+
Object.assign(c, arguments);
|
|
1536
|
+
if (a.includes("j")) {
|
|
1537
|
+
var d = m["dynCall_" + a];
|
|
1538
|
+
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1539
|
+
} else {
|
|
1540
|
+
d = Q(b).apply(null, c);
|
|
1541
|
+
}
|
|
1542
|
+
return d;
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1545
|
+
function R(a, b) {
|
|
1546
|
+
a = N(a);
|
|
1547
|
+
var c = a.includes("j") ? Vc(a, b) : Q(b);
|
|
1548
|
+
"function" != typeof c && K(`unknown function pointer with signature ${a}: ${b}`);
|
|
1549
|
+
return c;
|
|
1550
|
+
}
|
|
1551
|
+
var Wc = void 0;
|
|
1552
|
+
function Xc(a, b) {
|
|
1553
|
+
function c(f) {
|
|
1554
|
+
e[f] || lc[f] || (Ec[f] ? Ec[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1555
|
+
}
|
|
1556
|
+
var d = [], e = {};
|
|
1557
|
+
b.forEach(c);
|
|
1558
|
+
throw new Wc(`${a}: ` + d.map(mc).join([", "]));
|
|
1559
|
+
}
|
|
1560
|
+
function Yc(a, b, c, d, e) {
|
|
1561
|
+
var f = b.length;
|
|
1562
|
+
2 > f && K("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1563
|
+
var g = null !== b[1] && null !== c, k = !1;
|
|
1564
|
+
for (c = 1; c < b.length; ++c) {
|
|
1565
|
+
if (null !== b[c] && void 0 === b[c].J) {
|
|
1566
|
+
k = !0;
|
|
1567
|
+
break;
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
var p = "void" !== b[0].name, n = f - 2, u = Array(n), v = [], y = [];
|
|
1571
|
+
return function() {
|
|
1572
|
+
arguments.length !== n && K(`function ${a} called with ${arguments.length} arguments, expected ${n} args!`);
|
|
1573
|
+
y.length = 0;
|
|
1574
|
+
v.length = g ? 2 : 1;
|
|
1575
|
+
v[0] = e;
|
|
1576
|
+
if (g) {
|
|
1577
|
+
var l = b[1].toWireType(y, this);
|
|
1578
|
+
v[1] = l;
|
|
1579
|
+
}
|
|
1580
|
+
for (var r = 0; r < n; ++r) {
|
|
1581
|
+
u[r] = b[r + 2].toWireType(y, arguments[r]), v.push(u[r]);
|
|
1582
|
+
}
|
|
1583
|
+
r = d.apply(null, v);
|
|
1584
|
+
if (k) {
|
|
1585
|
+
Bc(y);
|
|
1586
|
+
} else {
|
|
1587
|
+
for (var x = g ? 1 : 2; x < b.length; x++) {
|
|
1588
|
+
var z = 1 === x ? l : u[x - 2];
|
|
1589
|
+
null !== b[x].J && b[x].J(z);
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
l = p ? b[0].fromWireType(r) : void 0;
|
|
1593
|
+
return l;
|
|
1594
|
+
};
|
|
1595
|
+
}
|
|
1596
|
+
function Zc(a, b) {
|
|
1597
|
+
for (var c = [], d = 0; d < a; d++) {
|
|
1598
|
+
c.push(B[b + 4 * d >> 2]);
|
|
1599
|
+
}
|
|
1600
|
+
return c;
|
|
1601
|
+
}
|
|
1602
|
+
function $c(a, b, c) {
|
|
1603
|
+
a instanceof Object || K(`${c} with invalid "this": ${a}`);
|
|
1604
|
+
a instanceof b.i.constructor || K(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1605
|
+
a.g.o || K(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1606
|
+
return Nc(a.g.o, a.g.u.i, b.i);
|
|
1607
|
+
}
|
|
1608
|
+
function ad(a) {
|
|
1609
|
+
a >= J.h && 0 === --J.get(a).qb && J.Yb(a);
|
|
1610
|
+
}
|
|
1611
|
+
function bd(a, b, c) {
|
|
1612
|
+
switch(b) {
|
|
1613
|
+
case 0:
|
|
1614
|
+
return function(d) {
|
|
1615
|
+
return this.fromWireType((c ? t : w)[d]);
|
|
1616
|
+
};
|
|
1617
|
+
case 1:
|
|
1618
|
+
return function(d) {
|
|
1619
|
+
return this.fromWireType((c ? xa : ya)[d >> 1]);
|
|
1620
|
+
};
|
|
1621
|
+
case 2:
|
|
1622
|
+
return function(d) {
|
|
1623
|
+
return this.fromWireType((c ? A : B)[d >> 2]);
|
|
1624
|
+
};
|
|
1625
|
+
default:
|
|
1626
|
+
throw new TypeError("Unknown integer type: " + a);
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
function Pc(a) {
|
|
1630
|
+
if (null === a) {
|
|
1631
|
+
return "null";
|
|
1632
|
+
}
|
|
1633
|
+
var b = typeof a;
|
|
1634
|
+
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1635
|
+
}
|
|
1636
|
+
function cd(a, b) {
|
|
1637
|
+
switch(b) {
|
|
1638
|
+
case 2:
|
|
1639
|
+
return function(c) {
|
|
1640
|
+
return this.fromWireType(D[c >> 2]);
|
|
1641
|
+
};
|
|
1642
|
+
case 3:
|
|
1643
|
+
return function(c) {
|
|
1644
|
+
return this.fromWireType(za[c >> 3]);
|
|
1645
|
+
};
|
|
1646
|
+
default:
|
|
1647
|
+
throw new TypeError("Unknown float type: " + a);
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
function dd(a, b, c) {
|
|
1651
|
+
switch(b) {
|
|
1652
|
+
case 0:
|
|
1653
|
+
return c ? function(d) {
|
|
1654
|
+
return t[d];
|
|
1655
|
+
} : function(d) {
|
|
1656
|
+
return w[d];
|
|
1657
|
+
};
|
|
1658
|
+
case 1:
|
|
1659
|
+
return c ? function(d) {
|
|
1660
|
+
return xa[d >> 1];
|
|
1661
|
+
} : function(d) {
|
|
1662
|
+
return ya[d >> 1];
|
|
1663
|
+
};
|
|
1664
|
+
case 2:
|
|
1665
|
+
return c ? function(d) {
|
|
1666
|
+
return A[d >> 2];
|
|
1667
|
+
} : function(d) {
|
|
1668
|
+
return B[d >> 2];
|
|
1669
|
+
};
|
|
1670
|
+
default:
|
|
1671
|
+
throw new TypeError("Unknown integer type: " + a);
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, fd = (a, b) => {
|
|
1675
|
+
var c = a >> 1;
|
|
1676
|
+
for (var d = c + b / 2; !(c >= d) && ya[c];) {
|
|
1677
|
+
++c;
|
|
1678
|
+
}
|
|
1679
|
+
c <<= 1;
|
|
1680
|
+
if (32 < c - a && ed) {
|
|
1681
|
+
return ed.decode(w.subarray(a, c));
|
|
1682
|
+
}
|
|
1683
|
+
c = "";
|
|
1684
|
+
for (d = 0; !(d >= b / 2); ++d) {
|
|
1685
|
+
var e = xa[a + 2 * d >> 1];
|
|
1686
|
+
if (0 == e) {
|
|
1687
|
+
break;
|
|
1688
|
+
}
|
|
1689
|
+
c += String.fromCharCode(e);
|
|
1690
|
+
}
|
|
1691
|
+
return c;
|
|
1692
|
+
}, gd = (a, b, c) => {
|
|
1693
|
+
void 0 === c && (c = 2147483647);
|
|
1694
|
+
if (2 > c) {
|
|
1695
|
+
return 0;
|
|
1696
|
+
}
|
|
1697
|
+
c -= 2;
|
|
1698
|
+
var d = b;
|
|
1699
|
+
c = c < 2 * a.length ? c / 2 : a.length;
|
|
1700
|
+
for (var e = 0; e < c; ++e) {
|
|
1701
|
+
xa[b >> 1] = a.charCodeAt(e), b += 2;
|
|
1702
|
+
}
|
|
1703
|
+
xa[b >> 1] = 0;
|
|
1704
|
+
return b - d;
|
|
1705
|
+
}, hd = a => 2 * a.length, jd = (a, b) => {
|
|
1706
|
+
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1707
|
+
var e = A[a + 4 * c >> 2];
|
|
1708
|
+
if (0 == e) {
|
|
1709
|
+
break;
|
|
1710
|
+
}
|
|
1711
|
+
++c;
|
|
1712
|
+
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1713
|
+
}
|
|
1714
|
+
return d;
|
|
1715
|
+
}, kd = (a, b, c) => {
|
|
1716
|
+
void 0 === c && (c = 2147483647);
|
|
1717
|
+
if (4 > c) {
|
|
1718
|
+
return 0;
|
|
1719
|
+
}
|
|
1720
|
+
var d = b;
|
|
1721
|
+
c = d + c - 4;
|
|
1722
|
+
for (var e = 0; e < a.length; ++e) {
|
|
1723
|
+
var f = a.charCodeAt(e);
|
|
1724
|
+
if (55296 <= f && 57343 >= f) {
|
|
1725
|
+
var g = a.charCodeAt(++e);
|
|
1726
|
+
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
1727
|
+
}
|
|
1728
|
+
A[b >> 2] = f;
|
|
1729
|
+
b += 4;
|
|
1730
|
+
if (b + 4 > c) {
|
|
1731
|
+
break;
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
A[b >> 2] = 0;
|
|
1735
|
+
return b - d;
|
|
1736
|
+
}, ld = a => {
|
|
1737
|
+
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1738
|
+
var d = a.charCodeAt(c);
|
|
1739
|
+
55296 <= d && 57343 >= d && ++c;
|
|
1740
|
+
b += 4;
|
|
1741
|
+
}
|
|
1742
|
+
return b;
|
|
1743
|
+
}, md = {};
|
|
1744
|
+
function nd(a) {
|
|
1745
|
+
var b = md[a];
|
|
1746
|
+
return void 0 === b ? N(a) : b;
|
|
1747
|
+
}
|
|
1748
|
+
var od = [];
|
|
1749
|
+
function pd(a) {
|
|
1750
|
+
var b = od.length;
|
|
1751
|
+
od.push(a);
|
|
1752
|
+
return b;
|
|
1753
|
+
}
|
|
1754
|
+
function qd(a, b) {
|
|
1755
|
+
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1756
|
+
c[d] = pc(B[b + 4 * d >> 2], "parameter " + d);
|
|
1757
|
+
}
|
|
1758
|
+
return c;
|
|
1759
|
+
}
|
|
1760
|
+
var rd = [], sd = [];
|
|
1761
|
+
function td(a) {
|
|
1762
|
+
var b = a.getExtension("ANGLE_instanced_arrays");
|
|
1763
|
+
b && (a.vertexAttribDivisor = function(c, d) {
|
|
1764
|
+
b.vertexAttribDivisorANGLE(c, d);
|
|
1765
|
+
}, a.drawArraysInstanced = function(c, d, e, f) {
|
|
1766
|
+
b.drawArraysInstancedANGLE(c, d, e, f);
|
|
1767
|
+
}, a.drawElementsInstanced = function(c, d, e, f, g) {
|
|
1768
|
+
b.drawElementsInstancedANGLE(c, d, e, f, g);
|
|
1769
|
+
});
|
|
1770
|
+
}
|
|
1771
|
+
function ud(a) {
|
|
1772
|
+
var b = a.getExtension("OES_vertex_array_object");
|
|
1773
|
+
b && (a.createVertexArray = function() {
|
|
1774
|
+
return b.createVertexArrayOES();
|
|
1775
|
+
}, a.deleteVertexArray = function(c) {
|
|
1776
|
+
b.deleteVertexArrayOES(c);
|
|
1777
|
+
}, a.bindVertexArray = function(c) {
|
|
1778
|
+
b.bindVertexArrayOES(c);
|
|
1779
|
+
}, a.isVertexArray = function(c) {
|
|
1780
|
+
return b.isVertexArrayOES(c);
|
|
1781
|
+
});
|
|
1782
|
+
}
|
|
1783
|
+
function vd(a) {
|
|
1784
|
+
var b = a.getExtension("WEBGL_draw_buffers");
|
|
1785
|
+
b && (a.drawBuffers = function(c, d) {
|
|
1786
|
+
b.drawBuffersWEBGL(c, d);
|
|
1787
|
+
});
|
|
1788
|
+
}
|
|
1789
|
+
var wd = 1, xd = [], yd = [], zd = [], Ad = [], Bd = [], Cd = [], Dd = [], ja = [], Ed = [], Fd = [], Gd = {}, Hd = {}, Id = 4;
|
|
1790
|
+
function S(a) {
|
|
1791
|
+
Jd || (Jd = a);
|
|
1792
|
+
}
|
|
1793
|
+
function ha(a) {
|
|
1794
|
+
for (var b = wd++, c = a.length; c < b; c++) {
|
|
1795
|
+
a[c] = null;
|
|
1796
|
+
}
|
|
1797
|
+
return b;
|
|
1798
|
+
}
|
|
1799
|
+
function la(a) {
|
|
1800
|
+
T = ja[a];
|
|
1801
|
+
m.Dc = U = T && T.Ua;
|
|
1802
|
+
return !(a && !U);
|
|
1803
|
+
}
|
|
1804
|
+
function ka(a) {
|
|
1805
|
+
a || (a = T);
|
|
1806
|
+
if (!a.$b) {
|
|
1807
|
+
a.$b = !0;
|
|
1808
|
+
var b = a.Ua;
|
|
1809
|
+
td(b);
|
|
1810
|
+
ud(b);
|
|
1811
|
+
vd(b);
|
|
1812
|
+
b.Za = b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1813
|
+
b.hb = b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1814
|
+
2 <= a.version && (b.$a = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
1815
|
+
if (2 > a.version || !b.$a) {
|
|
1816
|
+
b.$a = b.getExtension("EXT_disjoint_timer_query");
|
|
1817
|
+
}
|
|
1818
|
+
b.Gc = b.getExtension("WEBGL_multi_draw");
|
|
1819
|
+
(b.getSupportedExtensions() || []).forEach(function(c) {
|
|
1820
|
+
c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
|
|
1821
|
+
});
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
var Jd, T;
|
|
1825
|
+
function Kd(a, b) {
|
|
1826
|
+
U.bindFramebuffer(a, zd[b]);
|
|
1827
|
+
}
|
|
1828
|
+
function Ld(a) {
|
|
1829
|
+
U.bindVertexArray(Dd[a]);
|
|
1830
|
+
}
|
|
1831
|
+
function Md(a, b) {
|
|
1832
|
+
for (var c = 0; c < a; c++) {
|
|
1833
|
+
var d = A[b + 4 * c >> 2];
|
|
1834
|
+
U.deleteVertexArray(Dd[d]);
|
|
1835
|
+
Dd[d] = null;
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
var Nd = [];
|
|
1839
|
+
function Od(a, b, c, d) {
|
|
1840
|
+
U.drawElements(a, b, c, d);
|
|
1841
|
+
}
|
|
1842
|
+
function Pd(a, b, c, d) {
|
|
1843
|
+
for (var e = 0; e < a; e++) {
|
|
1844
|
+
var f = U[c](), g = f && ha(d);
|
|
1845
|
+
f ? (f.name = g, d[g] = f) : S(1282);
|
|
1846
|
+
A[b + 4 * e >> 2] = g;
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
function Qd(a, b) {
|
|
1850
|
+
Pd(a, b, "createVertexArray", Dd);
|
|
1851
|
+
}
|
|
1852
|
+
function Rd(a, b) {
|
|
1853
|
+
if (b) {
|
|
1854
|
+
var c = void 0;
|
|
1855
|
+
switch(a) {
|
|
1856
|
+
case 36346:
|
|
1857
|
+
c = 1;
|
|
1858
|
+
break;
|
|
1859
|
+
case 36344:
|
|
1860
|
+
return;
|
|
1861
|
+
case 34814:
|
|
1862
|
+
case 36345:
|
|
1863
|
+
c = 0;
|
|
1864
|
+
break;
|
|
1865
|
+
case 34466:
|
|
1866
|
+
var d = U.getParameter(34467);
|
|
1867
|
+
c = d ? d.length : 0;
|
|
1868
|
+
break;
|
|
1869
|
+
case 33309:
|
|
1870
|
+
if (2 > T.version) {
|
|
1871
|
+
S(1282);
|
|
1872
|
+
return;
|
|
1873
|
+
}
|
|
1874
|
+
c = 2 * (U.getSupportedExtensions() || []).length;
|
|
1875
|
+
break;
|
|
1876
|
+
case 33307:
|
|
1877
|
+
case 33308:
|
|
1878
|
+
if (2 > T.version) {
|
|
1879
|
+
S(1280);
|
|
1880
|
+
return;
|
|
1881
|
+
}
|
|
1882
|
+
c = 33307 == a ? 3 : 0;
|
|
1883
|
+
}
|
|
1884
|
+
if (void 0 === c) {
|
|
1885
|
+
switch(d = U.getParameter(a), typeof d) {
|
|
1886
|
+
case "number":
|
|
1887
|
+
c = d;
|
|
1888
|
+
break;
|
|
1889
|
+
case "boolean":
|
|
1890
|
+
c = d ? 1 : 0;
|
|
1891
|
+
break;
|
|
1892
|
+
case "string":
|
|
1893
|
+
S(1280);
|
|
1894
|
+
return;
|
|
1895
|
+
case "object":
|
|
1896
|
+
if (null === d) {
|
|
1897
|
+
switch(a) {
|
|
1898
|
+
case 34964:
|
|
1899
|
+
case 35725:
|
|
1900
|
+
case 34965:
|
|
1901
|
+
case 36006:
|
|
1902
|
+
case 36007:
|
|
1903
|
+
case 32873:
|
|
1904
|
+
case 34229:
|
|
1905
|
+
case 36662:
|
|
1906
|
+
case 36663:
|
|
1907
|
+
case 35053:
|
|
1908
|
+
case 35055:
|
|
1909
|
+
case 36010:
|
|
1910
|
+
case 35097:
|
|
1911
|
+
case 35869:
|
|
1912
|
+
case 32874:
|
|
1913
|
+
case 36389:
|
|
1914
|
+
case 35983:
|
|
1915
|
+
case 35368:
|
|
1916
|
+
case 34068:
|
|
1917
|
+
c = 0;
|
|
1918
|
+
break;
|
|
1919
|
+
default:
|
|
1920
|
+
S(1280);
|
|
1921
|
+
return;
|
|
1922
|
+
}
|
|
1923
|
+
} else {
|
|
1924
|
+
if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
|
|
1925
|
+
for (a = 0; a < d.length; ++a) {
|
|
1926
|
+
A[b + 4 * a >> 2] = d[a];
|
|
1927
|
+
}
|
|
1928
|
+
return;
|
|
1929
|
+
}
|
|
1930
|
+
try {
|
|
1931
|
+
c = d.name | 0;
|
|
1932
|
+
} catch (e) {
|
|
1933
|
+
S(1280);
|
|
1934
|
+
ta("GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter(" + a + ")! (error: " + e + ")");
|
|
1935
|
+
return;
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
break;
|
|
1939
|
+
default:
|
|
1940
|
+
S(1280);
|
|
1941
|
+
ta("GL_INVALID_ENUM in glGet0v: Native code calling glGet0v(" + a + ") and it returns " + d + " of type " + typeof d + "!");
|
|
1942
|
+
return;
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
A[b >> 2] = c;
|
|
1946
|
+
} else {
|
|
1947
|
+
S(1281);
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
function Sd(a, b) {
|
|
1951
|
+
Rd(a, b);
|
|
1952
|
+
}
|
|
1953
|
+
var Ud = a => {
|
|
1954
|
+
var b = bb(a) + 1, c = Td(b);
|
|
1955
|
+
c && cb(a, w, c, b);
|
|
1956
|
+
return c;
|
|
1957
|
+
};
|
|
1958
|
+
function Vd(a) {
|
|
1959
|
+
return "]" == a.slice(-1) && a.lastIndexOf("[");
|
|
1960
|
+
}
|
|
1961
|
+
function Wd(a) {
|
|
1962
|
+
a -= 5120;
|
|
1963
|
+
return 0 == a ? t : 1 == a ? w : 2 == a ? xa : 4 == a ? A : 6 == a ? D : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? B : ya;
|
|
1964
|
+
}
|
|
1965
|
+
function Xd(a, b, c, d, e) {
|
|
1966
|
+
a = Wd(a);
|
|
1967
|
+
var f = 31 - Math.clz32(a.BYTES_PER_ELEMENT), g = Id;
|
|
1968
|
+
return a.subarray(e >> f, e + d * (c * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[b - 6402] || 1) * (1 << f) + g - 1 & -g) >> f);
|
|
1969
|
+
}
|
|
1970
|
+
function V(a) {
|
|
1971
|
+
var b = U.Kb;
|
|
1972
|
+
if (b) {
|
|
1973
|
+
var c = b.na[a];
|
|
1974
|
+
"number" == typeof c && (b.na[a] = c = U.getUniformLocation(b, b.ub[a] + (0 < c ? "[" + c + "]" : "")));
|
|
1975
|
+
return c;
|
|
1976
|
+
}
|
|
1977
|
+
S(1282);
|
|
1978
|
+
}
|
|
1979
|
+
var Yd = [], Zd = [], $d = {}, be = () => {
|
|
1980
|
+
if (!ae) {
|
|
1981
|
+
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", _:"./this.program"}, b;
|
|
1982
|
+
for (b in $d) {
|
|
1983
|
+
void 0 === $d[b] ? delete a[b] : a[b] = $d[b];
|
|
1984
|
+
}
|
|
1985
|
+
var c = [];
|
|
1986
|
+
for (b in a) {
|
|
1987
|
+
c.push(`${b}=${a[b]}`);
|
|
1988
|
+
}
|
|
1989
|
+
ae = c;
|
|
1990
|
+
}
|
|
1991
|
+
return ae;
|
|
1992
|
+
}, ae, ce = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), de = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ee = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], fe = (a, b, c, d) => {
|
|
1993
|
+
function e(l, r, x) {
|
|
1994
|
+
for (l = "number" == typeof l ? l.toString() : l || ""; l.length < r;) {
|
|
1995
|
+
l = x[0] + l;
|
|
1996
|
+
}
|
|
1997
|
+
return l;
|
|
1998
|
+
}
|
|
1999
|
+
function f(l, r) {
|
|
2000
|
+
return e(l, r, "0");
|
|
2001
|
+
}
|
|
2002
|
+
function g(l, r) {
|
|
2003
|
+
function x(H) {
|
|
2004
|
+
return 0 > H ? -1 : 0 < H ? 1 : 0;
|
|
2005
|
+
}
|
|
2006
|
+
var z;
|
|
2007
|
+
0 === (z = x(l.getFullYear() - r.getFullYear())) && 0 === (z = x(l.getMonth() - r.getMonth())) && (z = x(l.getDate() - r.getDate()));
|
|
2008
|
+
return z;
|
|
2009
|
+
}
|
|
2010
|
+
function k(l) {
|
|
2011
|
+
switch(l.getDay()) {
|
|
2012
|
+
case 0:
|
|
2013
|
+
return new Date(l.getFullYear() - 1, 11, 29);
|
|
2014
|
+
case 1:
|
|
2015
|
+
return l;
|
|
2016
|
+
case 2:
|
|
2017
|
+
return new Date(l.getFullYear(), 0, 3);
|
|
2018
|
+
case 3:
|
|
2019
|
+
return new Date(l.getFullYear(), 0, 2);
|
|
2020
|
+
case 4:
|
|
2021
|
+
return new Date(l.getFullYear(), 0, 1);
|
|
2022
|
+
case 5:
|
|
2023
|
+
return new Date(l.getFullYear() - 1, 11, 31);
|
|
2024
|
+
case 6:
|
|
2025
|
+
return new Date(l.getFullYear() - 1, 11, 30);
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
function p(l) {
|
|
2029
|
+
var r = l.aa;
|
|
2030
|
+
for (l = new Date((new Date(l.ba + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
2031
|
+
var x = l.getMonth(), z = (ce(l.getFullYear()) ? de : ee)[x];
|
|
2032
|
+
if (r > z - l.getDate()) {
|
|
2033
|
+
r -= z - l.getDate() + 1, l.setDate(1), 11 > x ? l.setMonth(x + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
|
|
2034
|
+
} else {
|
|
2035
|
+
l.setDate(l.getDate() + r);
|
|
2036
|
+
break;
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
x = new Date(l.getFullYear() + 1, 0, 4);
|
|
2040
|
+
r = k(new Date(l.getFullYear(), 0, 4));
|
|
2041
|
+
x = k(x);
|
|
2042
|
+
return 0 >= g(r, l) ? 0 >= g(x, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
|
|
2043
|
+
}
|
|
2044
|
+
var n = A[d + 40 >> 2];
|
|
2045
|
+
d = {tc:A[d >> 2], sc:A[d + 4 >> 2], Ha:A[d + 8 >> 2], Sa:A[d + 12 >> 2], Ia:A[d + 16 >> 2], ba:A[d + 20 >> 2], R:A[d + 24 >> 2], aa:A[d + 28 >> 2], Jc:A[d + 32 >> 2], rc:A[d + 36 >> 2], uc:n ? n ? $a(w, n) : "" : ""};
|
|
2046
|
+
c = c ? $a(w, c) : "";
|
|
2047
|
+
n = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2048
|
+
for (var u in n) {
|
|
2049
|
+
c = c.replace(new RegExp(u, "g"), n[u]);
|
|
2050
|
+
}
|
|
2051
|
+
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
|
|
2052
|
+
n = {"%a":l => v[l.R].substring(0, 3), "%A":l => v[l.R], "%b":l => y[l.Ia].substring(0, 3), "%B":l => y[l.Ia], "%C":l => f((l.ba + 1900) / 100 | 0, 2), "%d":l => f(l.Sa, 2), "%e":l => e(l.Sa, 2, " "), "%g":l => p(l).toString().substring(2), "%G":l => p(l), "%H":l => f(l.Ha, 2), "%I":l => {
|
|
2053
|
+
l = l.Ha;
|
|
2054
|
+
0 == l ? l = 12 : 12 < l && (l -= 12);
|
|
2055
|
+
return f(l, 2);
|
|
2056
|
+
}, "%j":l => {
|
|
2057
|
+
for (var r = 0, x = 0; x <= l.Ia - 1; r += (ce(l.ba + 1900) ? de : ee)[x++]) {
|
|
2058
|
+
}
|
|
2059
|
+
return f(l.Sa + r, 3);
|
|
2060
|
+
}, "%m":l => f(l.Ia + 1, 2), "%M":l => f(l.sc, 2), "%n":() => "\n", "%p":l => 0 <= l.Ha && 12 > l.Ha ? "AM" : "PM", "%S":l => f(l.tc, 2), "%t":() => "\t", "%u":l => l.R || 7, "%U":l => f(Math.floor((l.aa + 7 - l.R) / 7), 2), "%V":l => {
|
|
2061
|
+
var r = Math.floor((l.aa + 7 - (l.R + 6) % 7) / 7);
|
|
2062
|
+
2 >= (l.R + 371 - l.aa - 2) % 7 && r++;
|
|
2063
|
+
if (r) {
|
|
2064
|
+
53 == r && (x = (l.R + 371 - l.aa) % 7, 4 == x || 3 == x && ce(l.ba) || (r = 1));
|
|
2065
|
+
} else {
|
|
2066
|
+
r = 52;
|
|
2067
|
+
var x = (l.R + 7 - l.aa - 1) % 7;
|
|
2068
|
+
(4 == x || 5 == x && ce(l.ba % 400 - 1)) && r++;
|
|
2069
|
+
}
|
|
2070
|
+
return f(r, 2);
|
|
2071
|
+
}, "%w":l => l.R, "%W":l => f(Math.floor((l.aa + 7 - (l.R + 6) % 7) / 7), 2), "%y":l => (l.ba + 1900).toString().substring(2), "%Y":l => l.ba + 1900, "%z":l => {
|
|
2072
|
+
l = l.rc;
|
|
2073
|
+
var r = 0 <= l;
|
|
2074
|
+
l = Math.abs(l) / 60;
|
|
2075
|
+
return (r ? "+" : "-") + String("0000" + (l / 60 * 100 + l % 60)).slice(-4);
|
|
2076
|
+
}, "%Z":l => l.uc, "%%":() => "%"};
|
|
2077
|
+
c = c.replace(/%%/g, "\x00\x00");
|
|
2078
|
+
for (u in n) {
|
|
2079
|
+
c.includes(u) && (c = c.replace(new RegExp(u, "g"), n[u](d)));
|
|
2080
|
+
}
|
|
2081
|
+
c = c.replace(/\0\0/g, "%");
|
|
2082
|
+
u = db(c, !1);
|
|
2083
|
+
if (u.length > b) {
|
|
2084
|
+
return 0;
|
|
2085
|
+
}
|
|
2086
|
+
t.set(u, a);
|
|
2087
|
+
return u.length - 1;
|
|
2088
|
+
};
|
|
2089
|
+
function Cb(a, b, c, d) {
|
|
2090
|
+
a || (a = this);
|
|
2091
|
+
this.parent = a;
|
|
2092
|
+
this.T = a.T;
|
|
2093
|
+
this.Ca = null;
|
|
2094
|
+
this.id = ub++;
|
|
2095
|
+
this.name = b;
|
|
2096
|
+
this.mode = c;
|
|
2097
|
+
this.j = {};
|
|
2098
|
+
this.m = {};
|
|
2099
|
+
this.la = d;
|
|
2100
|
+
}
|
|
2101
|
+
Object.defineProperties(Cb.prototype, {read:{get:function() {
|
|
2102
|
+
return 365 === (this.mode & 365);
|
|
2103
|
+
}, set:function(a) {
|
|
2104
|
+
a ? this.mode |= 365 : this.mode &= -366;
|
|
2105
|
+
}}, write:{get:function() {
|
|
2106
|
+
return 146 === (this.mode & 146);
|
|
2107
|
+
}, set:function(a) {
|
|
2108
|
+
a ? this.mode |= 146 : this.mode &= -147;
|
|
2109
|
+
}}});
|
|
2110
|
+
Rb();
|
|
2111
|
+
vb = Array(4096);
|
|
2112
|
+
Kb(I, "/");
|
|
2113
|
+
Lb("/tmp", 16895, 0);
|
|
2114
|
+
Lb("/home", 16895, 0);
|
|
2115
|
+
Lb("/home/web_user", 16895, 0);
|
|
2116
|
+
(() => {
|
|
2117
|
+
Lb("/dev", 16895, 0);
|
|
2118
|
+
gb(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2119
|
+
Mb("/dev/null", 259);
|
|
2120
|
+
fb(1280, ib);
|
|
2121
|
+
fb(1536, jb);
|
|
2122
|
+
Mb("/dev/tty", 1280);
|
|
2123
|
+
Mb("/dev/tty1", 1536);
|
|
2124
|
+
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2125
|
+
0 === b && (b = Xa(a).byteLength);
|
|
2126
|
+
return a[--b];
|
|
2127
|
+
};
|
|
2128
|
+
Ub("random", c);
|
|
2129
|
+
Ub("urandom", c);
|
|
2130
|
+
Lb("/dev/shm", 16895, 0);
|
|
2131
|
+
Lb("/dev/shm/tmp", 16895, 0);
|
|
2132
|
+
})();
|
|
2133
|
+
(() => {
|
|
2134
|
+
Lb("/proc", 16895, 0);
|
|
2135
|
+
var a = Lb("/proc/self", 16895, 0);
|
|
2136
|
+
Lb("/proc/self/fd", 16895, 0);
|
|
2137
|
+
Kb({T:() => {
|
|
2138
|
+
var b = mb(a, "fd", 16895, 73);
|
|
2139
|
+
b.j = {ka:(c, d) => {
|
|
2140
|
+
var e = Hb(+d);
|
|
2141
|
+
c = {parent:null, T:{jb:"fake"}, j:{ma:() => e.path},};
|
|
2142
|
+
return c.parent = c;
|
|
2143
|
+
}};
|
|
2144
|
+
return b;
|
|
2145
|
+
}}, "/proc/self/fd");
|
|
2146
|
+
})();
|
|
2147
|
+
Object.assign($b.prototype, {get(a) {
|
|
2148
|
+
return this.L[a];
|
|
2149
|
+
}, has(a) {
|
|
2150
|
+
return void 0 !== this.L[a];
|
|
2151
|
+
}, sa(a) {
|
|
2152
|
+
var b = this.cb.pop() || this.L.length;
|
|
2153
|
+
this.L[b] = a;
|
|
2154
|
+
return b;
|
|
2155
|
+
}, Yb(a) {
|
|
2156
|
+
this.L[a] = void 0;
|
|
2157
|
+
this.cb.push(a);
|
|
2158
|
+
}});
|
|
2159
|
+
ac = m.BindingError = class extends Error {
|
|
2160
|
+
constructor(a) {
|
|
2161
|
+
super(a);
|
|
2162
|
+
this.name = "BindingError";
|
|
2163
|
+
}
|
|
2164
|
+
};
|
|
2165
|
+
J.L.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2166
|
+
J.h = J.L.length;
|
|
2167
|
+
m.count_emval_handles = function() {
|
|
2168
|
+
for (var a = 0, b = J.h; b < J.L.length; ++b) {
|
|
2169
|
+
void 0 !== J.L[b] && ++a;
|
|
2170
|
+
}
|
|
2171
|
+
return a;
|
|
2172
|
+
};
|
|
2173
|
+
ec = m.PureVirtualError = dc("PureVirtualError");
|
|
2174
|
+
for (var ge = Array(256), he = 0; 256 > he; ++he) {
|
|
2175
|
+
ge[he] = String.fromCharCode(he);
|
|
2176
|
+
}
|
|
2177
|
+
fc = ge;
|
|
2178
|
+
m.getInheritedInstanceCount = function() {
|
|
2179
|
+
return Object.keys(jc).length;
|
|
2180
|
+
};
|
|
2181
|
+
m.getLiveInheritedInstances = function() {
|
|
2182
|
+
var a = [], b;
|
|
2183
|
+
for (b in jc) {
|
|
2184
|
+
jc.hasOwnProperty(b) && a.push(jc[b]);
|
|
2185
|
+
}
|
|
2186
|
+
return a;
|
|
2187
|
+
};
|
|
2188
|
+
m.flushPendingDeletes = hc;
|
|
2189
|
+
m.setDelayFunction = function(a) {
|
|
2190
|
+
ic = a;
|
|
2191
|
+
gc.length && ic && ic(hc);
|
|
2192
|
+
};
|
|
2193
|
+
wc = m.InternalError = class extends Error {
|
|
2194
|
+
constructor(a) {
|
|
2195
|
+
super(a);
|
|
2196
|
+
this.name = "InternalError";
|
|
2197
|
+
}
|
|
2198
|
+
};
|
|
2199
|
+
Jc.prototype.isAliasOf = function(a) {
|
|
2200
|
+
if (!(this instanceof Jc && a instanceof Jc)) {
|
|
2201
|
+
return !1;
|
|
2202
|
+
}
|
|
2203
|
+
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
2204
|
+
for (a = a.g.o; b.A;) {
|
|
2205
|
+
c = b.oa(c), b = b.A;
|
|
2206
|
+
}
|
|
2207
|
+
for (; d.A;) {
|
|
2208
|
+
a = d.oa(a), d = d.A;
|
|
2209
|
+
}
|
|
2210
|
+
return b === d && c === a;
|
|
2211
|
+
};
|
|
2212
|
+
Jc.prototype.clone = function() {
|
|
2213
|
+
this.g.o || Ic(this);
|
|
2214
|
+
if (this.g.ia) {
|
|
2215
|
+
return this.g.count.value += 1, this;
|
|
2216
|
+
}
|
|
2217
|
+
var a = zc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2218
|
+
a = a(c.call(b, d, {g:{value:{count:e.count, ga:e.ga, ia:e.ia, o:e.o, u:e.u, G:e.G, K:e.K,},}}));
|
|
2219
|
+
a.g.count.value += 1;
|
|
2220
|
+
a.g.ga = !1;
|
|
2221
|
+
return a;
|
|
2222
|
+
};
|
|
2223
|
+
Jc.prototype["delete"] = function() {
|
|
2224
|
+
this.g.o || Ic(this);
|
|
2225
|
+
this.g.ga && !this.g.ia && K("Object already scheduled for deletion");
|
|
2226
|
+
qc(this);
|
|
2227
|
+
sc(this.g);
|
|
2228
|
+
this.g.ia || (this.g.G = void 0, this.g.o = void 0);
|
|
2229
|
+
};
|
|
2230
|
+
Jc.prototype.isDeleted = function() {
|
|
2231
|
+
return !this.g.o;
|
|
2232
|
+
};
|
|
2233
|
+
Jc.prototype.deleteLater = function() {
|
|
2234
|
+
this.g.o || Ic(this);
|
|
2235
|
+
this.g.ga && !this.g.ia && K("Object already scheduled for deletion");
|
|
2236
|
+
gc.push(this);
|
|
2237
|
+
1 === gc.length && ic && ic(hc);
|
|
2238
|
+
this.g.ga = !0;
|
|
2239
|
+
return this;
|
|
2240
|
+
};
|
|
2241
|
+
Sc.prototype.Tb = function(a) {
|
|
2242
|
+
this.ob && (a = this.ob(a));
|
|
2243
|
+
return a;
|
|
2244
|
+
};
|
|
2245
|
+
Sc.prototype.Ya = function(a) {
|
|
2246
|
+
this.V && this.V(a);
|
|
2247
|
+
};
|
|
2248
|
+
Sc.prototype.argPackAdvance = 8;
|
|
2249
|
+
Sc.prototype.readValueFromPointer = Cc;
|
|
2250
|
+
Sc.prototype.deleteObject = function(a) {
|
|
2251
|
+
if (null !== a) {
|
|
2252
|
+
a["delete"]();
|
|
2253
|
+
}
|
|
2254
|
+
};
|
|
2255
|
+
Sc.prototype.fromWireType = function(a) {
|
|
2256
|
+
function b() {
|
|
2257
|
+
return this.xa ? yc(this.i.N, {u:this.kc, o:c, K:this, G:a,}) : yc(this.i.N, {u:this, o:a,});
|
|
2258
|
+
}
|
|
2259
|
+
var c = this.Tb(a);
|
|
2260
|
+
if (!c) {
|
|
2261
|
+
return this.Ya(a), null;
|
|
2262
|
+
}
|
|
2263
|
+
var d = vc(this.i, c);
|
|
2264
|
+
if (void 0 !== d) {
|
|
2265
|
+
if (0 === d.g.count.value) {
|
|
2266
|
+
return d.g.o = c, d.g.G = a, d.clone();
|
|
2267
|
+
}
|
|
2268
|
+
d = d.clone();
|
|
2269
|
+
this.Ya(a);
|
|
2270
|
+
return d;
|
|
2271
|
+
}
|
|
2272
|
+
d = this.i.Sb(c);
|
|
2273
|
+
d = uc[d];
|
|
2274
|
+
if (!d) {
|
|
2275
|
+
return b.call(this);
|
|
2276
|
+
}
|
|
2277
|
+
d = this.wa ? d.Ib : d.pointerType;
|
|
2278
|
+
var e = tc(c, this.i, d.i);
|
|
2279
|
+
return null === e ? b.call(this) : this.xa ? yc(d.i.N, {u:d, o:e, K:this, G:a,}) : yc(d.i.N, {u:d, o:e,});
|
|
2280
|
+
};
|
|
2281
|
+
Wc = m.UnboundTypeError = dc("UnboundTypeError");
|
|
2282
|
+
for (var U, W = 0; 32 > W; ++W) {
|
|
2283
|
+
Nd.push(Array(W));
|
|
2284
|
+
}
|
|
2285
|
+
var ie = new Float32Array(288);
|
|
2286
|
+
for (W = 0; 288 > W; ++W) {
|
|
2287
|
+
Yd[W] = ie.subarray(0, W + 1);
|
|
2288
|
+
}
|
|
2289
|
+
var je = new Int32Array(288);
|
|
2290
|
+
for (W = 0; 288 > W; ++W) {
|
|
2291
|
+
Zd[W] = je.subarray(0, W + 1);
|
|
2292
|
+
}
|
|
2293
|
+
var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
2294
|
+
Wb = c;
|
|
2295
|
+
try {
|
|
2296
|
+
var d = Hb(a);
|
|
2297
|
+
switch(b) {
|
|
2298
|
+
case 0:
|
|
2299
|
+
var e = Xb();
|
|
2300
|
+
return 0 > e ? -28 : Jb(d, e).X;
|
|
2301
|
+
case 1:
|
|
2302
|
+
case 2:
|
|
2303
|
+
return 0;
|
|
2304
|
+
case 3:
|
|
2305
|
+
return d.flags;
|
|
2306
|
+
case 4:
|
|
2307
|
+
return e = Xb(), d.flags |= e, 0;
|
|
2308
|
+
case 5:
|
|
2309
|
+
return e = Xb(), xa[e + 0 >> 1] = 2, 0;
|
|
2310
|
+
case 6:
|
|
2311
|
+
case 7:
|
|
2312
|
+
return 0;
|
|
2313
|
+
case 16:
|
|
2314
|
+
case 8:
|
|
2315
|
+
return -28;
|
|
2316
|
+
case 9:
|
|
2317
|
+
return A[ke() >> 2] = 28, -1;
|
|
2318
|
+
default:
|
|
2319
|
+
return -28;
|
|
2320
|
+
}
|
|
2321
|
+
} catch (f) {
|
|
2322
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== f.name) {
|
|
2323
|
+
throw f;
|
|
2324
|
+
}
|
|
2325
|
+
return -f.W;
|
|
2326
|
+
}
|
|
2327
|
+
}, __syscall_fstat64:function(a, b) {
|
|
2328
|
+
try {
|
|
2329
|
+
a: {
|
|
2330
|
+
var c = Hb(a).path;
|
|
2331
|
+
try {
|
|
2332
|
+
var d = yb(c, {Ma:!0}).node;
|
|
2333
|
+
if (!d) {
|
|
2334
|
+
throw new G(44);
|
|
2335
|
+
}
|
|
2336
|
+
if (!d.j.M) {
|
|
2337
|
+
throw new G(63);
|
|
2338
|
+
}
|
|
2339
|
+
var e = d.j.M(d);
|
|
2340
|
+
} catch (n) {
|
|
2341
|
+
if (n && n.node && Ta(c) !== Ta(zb(n.node))) {
|
|
2342
|
+
var f = -54;
|
|
2343
|
+
break a;
|
|
2344
|
+
}
|
|
2345
|
+
throw n;
|
|
2346
|
+
}
|
|
2347
|
+
A[b >> 2] = e.Mb;
|
|
2348
|
+
A[b + 4 >> 2] = e.mode;
|
|
2349
|
+
B[b + 8 >> 2] = e.jc;
|
|
2350
|
+
A[b + 12 >> 2] = e.uid;
|
|
2351
|
+
A[b + 16 >> 2] = e.Xb;
|
|
2352
|
+
A[b + 20 >> 2] = e.la;
|
|
2353
|
+
F = [e.size >>> 0, (E = e.size, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2354
|
+
A[b + 24 >> 2] = F[0];
|
|
2355
|
+
A[b + 28 >> 2] = F[1];
|
|
2356
|
+
A[b + 32 >> 2] = 4096;
|
|
2357
|
+
A[b + 36 >> 2] = e.Hb;
|
|
2358
|
+
var g = e.Fb.getTime(), k = e.hc.getTime(), p = e.Jb.getTime();
|
|
2359
|
+
F = [Math.floor(g / 1000) >>> 0, (E = Math.floor(g / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2360
|
+
A[b + 40 >> 2] = F[0];
|
|
2361
|
+
A[b + 44 >> 2] = F[1];
|
|
2362
|
+
B[b + 48 >> 2] = g % 1000 * 1000;
|
|
2363
|
+
F = [Math.floor(k / 1000) >>> 0, (E = Math.floor(k / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2364
|
+
A[b + 56 >> 2] = F[0];
|
|
2365
|
+
A[b + 60 >> 2] = F[1];
|
|
2366
|
+
B[b + 64 >> 2] = k % 1000 * 1000;
|
|
2367
|
+
F = [Math.floor(p / 1000) >>> 0, (E = Math.floor(p / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2368
|
+
A[b + 72 >> 2] = F[0];
|
|
2369
|
+
A[b + 76 >> 2] = F[1];
|
|
2370
|
+
B[b + 80 >> 2] = p % 1000 * 1000;
|
|
2371
|
+
F = [e.fb >>> 0, (E = e.fb, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2372
|
+
A[b + 88 >> 2] = F[0];
|
|
2373
|
+
A[b + 92 >> 2] = F[1];
|
|
2374
|
+
f = 0;
|
|
2375
|
+
}
|
|
2376
|
+
return f;
|
|
2377
|
+
} catch (n) {
|
|
2378
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== n.name) {
|
|
2379
|
+
throw n;
|
|
2380
|
+
}
|
|
2381
|
+
return -n.W;
|
|
2382
|
+
}
|
|
2383
|
+
}, __syscall_ioctl:function(a, b, c) {
|
|
2384
|
+
Wb = c;
|
|
2385
|
+
try {
|
|
2386
|
+
var d = Hb(a);
|
|
2387
|
+
switch(b) {
|
|
2388
|
+
case 21509:
|
|
2389
|
+
return d.s ? 0 : -59;
|
|
2390
|
+
case 21505:
|
|
2391
|
+
if (!d.s) {
|
|
2392
|
+
return -59;
|
|
2393
|
+
}
|
|
2394
|
+
if (d.s.U.bc) {
|
|
2395
|
+
b = [3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,];
|
|
2396
|
+
var e = Xb();
|
|
2397
|
+
A[e >> 2] = 25856;
|
|
2398
|
+
A[e + 4 >> 2] = 5;
|
|
2399
|
+
A[e + 8 >> 2] = 191;
|
|
2400
|
+
A[e + 12 >> 2] = 35387;
|
|
2401
|
+
for (var f = 0; 32 > f; f++) {
|
|
2402
|
+
t[e + f + 17 >> 0] = b[f] || 0;
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
return 0;
|
|
2406
|
+
case 21510:
|
|
2407
|
+
case 21511:
|
|
2408
|
+
case 21512:
|
|
2409
|
+
return d.s ? 0 : -59;
|
|
2410
|
+
case 21506:
|
|
2411
|
+
case 21507:
|
|
2412
|
+
case 21508:
|
|
2413
|
+
if (!d.s) {
|
|
2414
|
+
return -59;
|
|
2415
|
+
}
|
|
2416
|
+
if (d.s.U.cc) {
|
|
2417
|
+
for (e = Xb(), b = [], f = 0; 32 > f; f++) {
|
|
2418
|
+
b.push(t[e + f + 17 >> 0]);
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2421
|
+
return 0;
|
|
2422
|
+
case 21519:
|
|
2423
|
+
if (!d.s) {
|
|
2424
|
+
return -59;
|
|
2425
|
+
}
|
|
2426
|
+
e = Xb();
|
|
2427
|
+
return A[e >> 2] = 0;
|
|
2428
|
+
case 21520:
|
|
2429
|
+
return d.s ? -28 : -59;
|
|
2430
|
+
case 21531:
|
|
2431
|
+
e = Xb();
|
|
2432
|
+
if (!d.m.ac) {
|
|
2433
|
+
throw new G(59);
|
|
2434
|
+
}
|
|
2435
|
+
return d.m.ac(d, b, e);
|
|
2436
|
+
case 21523:
|
|
2437
|
+
if (!d.s) {
|
|
2438
|
+
return -59;
|
|
2439
|
+
}
|
|
2440
|
+
d.s.U.dc && (f = [24, 80], e = Xb(), xa[e >> 1] = f[0], xa[e + 2 >> 1] = f[1]);
|
|
2441
|
+
return 0;
|
|
2442
|
+
case 21524:
|
|
2443
|
+
return d.s ? 0 : -59;
|
|
2444
|
+
case 21515:
|
|
2445
|
+
return d.s ? 0 : -59;
|
|
2446
|
+
default:
|
|
2447
|
+
return -28;
|
|
2448
|
+
}
|
|
2449
|
+
} catch (g) {
|
|
2450
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
|
|
2451
|
+
throw g;
|
|
2452
|
+
}
|
|
2453
|
+
return -g.W;
|
|
2454
|
+
}
|
|
2455
|
+
}, __syscall_openat:function(a, b, c, d) {
|
|
2456
|
+
Wb = d;
|
|
2457
|
+
try {
|
|
2458
|
+
b = b ? $a(w, b) : "";
|
|
2459
|
+
var e = b;
|
|
2460
|
+
if ("/" === e.charAt(0)) {
|
|
2461
|
+
b = e;
|
|
2462
|
+
} else {
|
|
2463
|
+
var f = -100 === a ? "/" : Hb(a).path;
|
|
2464
|
+
if (0 == e.length) {
|
|
2465
|
+
throw new G(44);
|
|
2466
|
+
}
|
|
2467
|
+
b = Ta(f + "/" + e);
|
|
2468
|
+
}
|
|
2469
|
+
var g = d ? Xb() : 0;
|
|
2470
|
+
return Pb(b, c, g).X;
|
|
2471
|
+
} catch (k) {
|
|
2472
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== k.name) {
|
|
2473
|
+
throw k;
|
|
2474
|
+
}
|
|
2475
|
+
return -k.W;
|
|
2476
|
+
}
|
|
2477
|
+
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2478
|
+
a = N(a);
|
|
2479
|
+
b = pc(b, "wrapper");
|
|
2480
|
+
c = bc(c);
|
|
2481
|
+
var d = [].slice, e = b.i, f = e.N, g = e.A.N, k = e.A.constructor;
|
|
2482
|
+
a = Zb(a, function() {
|
|
2483
|
+
e.A.nb.forEach(function(n) {
|
|
2484
|
+
if (this[n] === g[n]) {
|
|
2485
|
+
throw new ec(`Pure virtual function ${n} must be implemented in JavaScript`);
|
|
2486
|
+
}
|
|
2487
|
+
}.bind(this));
|
|
2488
|
+
Object.defineProperty(this, "__parent", {value:f});
|
|
2489
|
+
this.__construct.apply(this, d.call(arguments));
|
|
2490
|
+
});
|
|
2491
|
+
f.__construct = function() {
|
|
2492
|
+
this === f && K("Pass correct 'this' to __construct");
|
|
2493
|
+
var n = k.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2494
|
+
qc(n);
|
|
2495
|
+
var u = n.g;
|
|
2496
|
+
n.notifyOnDestruction();
|
|
2497
|
+
u.ia = !0;
|
|
2498
|
+
Object.defineProperties(this, {g:{value:u}});
|
|
2499
|
+
zc(this);
|
|
2500
|
+
n = u.o;
|
|
2501
|
+
n = kc(e, n);
|
|
2502
|
+
jc.hasOwnProperty(n) ? K(`Tried to register registered instance: ${n}`) : jc[n] = this;
|
|
2503
|
+
};
|
|
2504
|
+
f.__destruct = function() {
|
|
2505
|
+
this === f && K("Pass correct 'this' to __destruct");
|
|
2506
|
+
qc(this);
|
|
2507
|
+
var n = this.g.o;
|
|
2508
|
+
n = kc(e, n);
|
|
2509
|
+
jc.hasOwnProperty(n) ? delete jc[n] : K(`Tried to unregister unregistered instance: ${n}`);
|
|
2510
|
+
};
|
|
2511
|
+
a.prototype = Object.create(f);
|
|
2512
|
+
for (var p in c) {
|
|
2513
|
+
a.prototype[p] = c[p];
|
|
2514
|
+
}
|
|
2515
|
+
return cc(a);
|
|
2516
|
+
}, _embind_finalize_value_object:function(a) {
|
|
2517
|
+
var b = Ac[a];
|
|
2518
|
+
delete Ac[a];
|
|
2519
|
+
var c = b.Qa, d = b.V, e = b.ab, f = e.map(g => g.Wb).concat(e.map(g => g.oc));
|
|
2520
|
+
P([a], f, g => {
|
|
2521
|
+
var k = {};
|
|
2522
|
+
e.forEach((p, n) => {
|
|
2523
|
+
var u = g[n], v = p.Ub, y = p.Vb, l = g[n + e.length], r = p.nc, x = p.pc;
|
|
2524
|
+
k[p.Qb] = {read:z => u.fromWireType(v(y, z)), write:(z, H) => {
|
|
2525
|
+
var C = [];
|
|
2526
|
+
r(x, z, l.toWireType(C, H));
|
|
2527
|
+
Bc(C);
|
|
2528
|
+
}};
|
|
2529
|
+
});
|
|
2530
|
+
return [{name:b.name, fromWireType:function(p) {
|
|
2531
|
+
var n = {}, u;
|
|
2532
|
+
for (u in k) {
|
|
2533
|
+
n[u] = k[u].read(p);
|
|
2534
|
+
}
|
|
2535
|
+
d(p);
|
|
2536
|
+
return n;
|
|
2537
|
+
}, toWireType:function(p, n) {
|
|
2538
|
+
for (var u in k) {
|
|
2539
|
+
if (!(u in n)) {
|
|
2540
|
+
throw new TypeError(`Missing field: "${u}"`);
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
var v = c();
|
|
2544
|
+
for (u in k) {
|
|
2545
|
+
k[u].write(v, n[u]);
|
|
2546
|
+
}
|
|
2547
|
+
null !== p && p.push(d, v);
|
|
2548
|
+
return v;
|
|
2549
|
+
}, argPackAdvance:8, readValueFromPointer:Cc, J:d,}];
|
|
2550
|
+
});
|
|
2551
|
+
}, _embind_register_bigint:function() {
|
|
2552
|
+
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2553
|
+
var f = Gc(c);
|
|
2554
|
+
b = N(b);
|
|
2555
|
+
Fc(a, {name:b, fromWireType:function(g) {
|
|
2556
|
+
return !!g;
|
|
2557
|
+
}, toWireType:function(g, k) {
|
|
2558
|
+
return k ? d : e;
|
|
2559
|
+
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2560
|
+
if (1 === c) {
|
|
2561
|
+
var k = t;
|
|
2562
|
+
} else if (2 === c) {
|
|
2563
|
+
k = xa;
|
|
2564
|
+
} else if (4 === c) {
|
|
2565
|
+
k = A;
|
|
2566
|
+
} else {
|
|
2567
|
+
throw new TypeError("Unknown boolean type size: " + b);
|
|
2568
|
+
}
|
|
2569
|
+
return this.fromWireType(k[g >> f]);
|
|
2570
|
+
}, J:null,});
|
|
2571
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, k, p, n, u, v, y) {
|
|
2572
|
+
u = N(u);
|
|
2573
|
+
f = R(e, f);
|
|
2574
|
+
k && (k = R(g, k));
|
|
2575
|
+
n && (n = R(p, n));
|
|
2576
|
+
y = R(v, y);
|
|
2577
|
+
var l = Yb(u);
|
|
2578
|
+
Lc(l, function() {
|
|
2579
|
+
Xc(`Cannot construct ${u} due to unbound types`, [d]);
|
|
2580
|
+
});
|
|
2581
|
+
P([a, b, c], d ? [d] : [], function(r) {
|
|
2582
|
+
r = r[0];
|
|
2583
|
+
if (d) {
|
|
2584
|
+
var x = r.i;
|
|
2585
|
+
var z = x.N;
|
|
2586
|
+
} else {
|
|
2587
|
+
z = Jc.prototype;
|
|
2588
|
+
}
|
|
2589
|
+
r = Zb(l, function() {
|
|
2590
|
+
if (Object.getPrototypeOf(this) !== H) {
|
|
2591
|
+
throw new ac("Use 'new' to construct " + u);
|
|
2592
|
+
}
|
|
2593
|
+
if (void 0 === C.Z) {
|
|
2594
|
+
throw new ac(u + " has no accessible constructor");
|
|
2595
|
+
}
|
|
2596
|
+
var O = C.Z[arguments.length];
|
|
2597
|
+
if (void 0 === O) {
|
|
2598
|
+
throw new ac(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(C.Z).toString()}) parameters instead!`);
|
|
2599
|
+
}
|
|
2600
|
+
return O.apply(this, arguments);
|
|
2601
|
+
});
|
|
2602
|
+
var H = Object.create(z, {constructor:{value:r},});
|
|
2603
|
+
r.prototype = H;
|
|
2604
|
+
var C = new Mc(u, r, H, y, x, f, k, n);
|
|
2605
|
+
C.A && (void 0 === C.A.pa && (C.A.pa = []), C.A.pa.push(C));
|
|
2606
|
+
x = new Sc(u, C, !0, !1);
|
|
2607
|
+
z = new Sc(u + "*", C, !1, !1);
|
|
2608
|
+
var L = new Sc(u + " const*", C, !1, !0);
|
|
2609
|
+
uc[a] = {pointerType:z, Ib:L};
|
|
2610
|
+
Tc(l, r);
|
|
2611
|
+
return [x, z, L];
|
|
2612
|
+
});
|
|
2613
|
+
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2614
|
+
var k = Zc(c, d);
|
|
2615
|
+
b = N(b);
|
|
2616
|
+
f = R(e, f);
|
|
2617
|
+
P([], [a], function(p) {
|
|
2618
|
+
function n() {
|
|
2619
|
+
Xc(`Cannot call ${u} due to unbound types`, k);
|
|
2620
|
+
}
|
|
2621
|
+
p = p[0];
|
|
2622
|
+
var u = `${p.name}.${b}`;
|
|
2623
|
+
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2624
|
+
var v = p.i.constructor;
|
|
2625
|
+
void 0 === v[b] ? (n.ea = c - 1, v[b] = n) : (Kc(v, b, u), v[b].B[c - 1] = n);
|
|
2626
|
+
P([], k, function(y) {
|
|
2627
|
+
y = Yc(u, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2628
|
+
void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
|
|
2629
|
+
if (p.i.pa) {
|
|
2630
|
+
for (const l of p.i.pa) {
|
|
2631
|
+
l.constructor.hasOwnProperty(b) || (l.constructor[b] = y);
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
return [];
|
|
2635
|
+
});
|
|
2636
|
+
return [];
|
|
2637
|
+
});
|
|
2638
|
+
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, k) {
|
|
2639
|
+
b = N(b);
|
|
2640
|
+
f = R(e, f);
|
|
2641
|
+
P([], [a], function(p) {
|
|
2642
|
+
p = p[0];
|
|
2643
|
+
var n = `${p.name}.${b}`, u = {get() {
|
|
2644
|
+
Xc(`Cannot access ${n} due to unbound types`, [c]);
|
|
2645
|
+
}, enumerable:!0, configurable:!0};
|
|
2646
|
+
u.set = k ? () => {
|
|
2647
|
+
Xc(`Cannot access ${n} due to unbound types`, [c]);
|
|
2648
|
+
} : () => {
|
|
2649
|
+
K(`${n} is a read-only property`);
|
|
2650
|
+
};
|
|
2651
|
+
Object.defineProperty(p.i.constructor, b, u);
|
|
2652
|
+
P([], [c], function(v) {
|
|
2653
|
+
v = v[0];
|
|
2654
|
+
var y = {get() {
|
|
2655
|
+
return v.fromWireType(f(d));
|
|
2656
|
+
}, enumerable:!0};
|
|
2657
|
+
k && (k = R(g, k), y.set = l => {
|
|
2658
|
+
var r = [];
|
|
2659
|
+
k(d, v.toWireType(r, l));
|
|
2660
|
+
Bc(r);
|
|
2661
|
+
});
|
|
2662
|
+
Object.defineProperty(p.i.constructor, b, y);
|
|
2663
|
+
return [];
|
|
2664
|
+
});
|
|
2665
|
+
return [];
|
|
2666
|
+
});
|
|
2667
|
+
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2668
|
+
var g = Zc(b, c);
|
|
2669
|
+
e = R(d, e);
|
|
2670
|
+
P([], [a], function(k) {
|
|
2671
|
+
k = k[0];
|
|
2672
|
+
var p = `constructor ${k.name}`;
|
|
2673
|
+
void 0 === k.i.Z && (k.i.Z = []);
|
|
2674
|
+
if (void 0 !== k.i.Z[b - 1]) {
|
|
2675
|
+
throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2676
|
+
}
|
|
2677
|
+
k.i.Z[b - 1] = () => {
|
|
2678
|
+
Xc(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2679
|
+
};
|
|
2680
|
+
P([], g, function(n) {
|
|
2681
|
+
n.splice(1, 0, null);
|
|
2682
|
+
k.i.Z[b - 1] = Yc(p, n, null, e, f);
|
|
2683
|
+
return [];
|
|
2684
|
+
});
|
|
2685
|
+
return [];
|
|
2686
|
+
});
|
|
2687
|
+
}, _embind_register_class_function:function(a, b, c, d, e, f, g, k) {
|
|
2688
|
+
var p = Zc(c, d);
|
|
2689
|
+
b = N(b);
|
|
2690
|
+
f = R(e, f);
|
|
2691
|
+
P([], [a], function(n) {
|
|
2692
|
+
function u() {
|
|
2693
|
+
Xc(`Cannot call ${v} due to unbound types`, p);
|
|
2694
|
+
}
|
|
2695
|
+
n = n[0];
|
|
2696
|
+
var v = `${n.name}.${b}`;
|
|
2697
|
+
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2698
|
+
k && n.i.nb.push(b);
|
|
2699
|
+
var y = n.i.N, l = y[b];
|
|
2700
|
+
void 0 === l || void 0 === l.B && l.className !== n.name && l.ea === c - 2 ? (u.ea = c - 2, u.className = n.name, y[b] = u) : (Kc(y, b, v), y[b].B[c - 2] = u);
|
|
2701
|
+
P([], p, function(r) {
|
|
2702
|
+
r = Yc(v, r, n, f, g);
|
|
2703
|
+
void 0 === y[b].B ? (r.ea = c - 2, y[b] = r) : y[b].B[c - 2] = r;
|
|
2704
|
+
return [];
|
|
2705
|
+
});
|
|
2706
|
+
return [];
|
|
2707
|
+
});
|
|
2708
|
+
}, _embind_register_class_property:function(a, b, c, d, e, f, g, k, p, n) {
|
|
2709
|
+
b = N(b);
|
|
2710
|
+
e = R(d, e);
|
|
2711
|
+
P([], [a], function(u) {
|
|
2712
|
+
u = u[0];
|
|
2713
|
+
var v = `${u.name}.${b}`, y = {get() {
|
|
2714
|
+
Xc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2715
|
+
}, enumerable:!0, configurable:!0};
|
|
2716
|
+
y.set = p ? () => {
|
|
2717
|
+
Xc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2718
|
+
} : () => {
|
|
2719
|
+
K(v + " is a read-only property");
|
|
2720
|
+
};
|
|
2721
|
+
Object.defineProperty(u.i.N, b, y);
|
|
2722
|
+
P([], p ? [c, g] : [c], function(l) {
|
|
2723
|
+
var r = l[0], x = {get() {
|
|
2724
|
+
var H = $c(this, u, v + " getter");
|
|
2725
|
+
return r.fromWireType(e(f, H));
|
|
2726
|
+
}, enumerable:!0};
|
|
2727
|
+
if (p) {
|
|
2728
|
+
p = R(k, p);
|
|
2729
|
+
var z = l[1];
|
|
2730
|
+
x.set = function(H) {
|
|
2731
|
+
var C = $c(this, u, v + " setter"), L = [];
|
|
2732
|
+
p(n, C, z.toWireType(L, H));
|
|
2733
|
+
Bc(L);
|
|
2734
|
+
};
|
|
2735
|
+
}
|
|
2736
|
+
Object.defineProperty(u.i.N, b, x);
|
|
2737
|
+
return [];
|
|
2738
|
+
});
|
|
2739
|
+
return [];
|
|
2740
|
+
});
|
|
2741
|
+
}, _embind_register_emval:function(a, b) {
|
|
2742
|
+
b = N(b);
|
|
2743
|
+
Fc(a, {name:b, fromWireType:function(c) {
|
|
2744
|
+
var d = bc(c);
|
|
2745
|
+
ad(c);
|
|
2746
|
+
return d;
|
|
2747
|
+
}, toWireType:function(c, d) {
|
|
2748
|
+
return cc(d);
|
|
2749
|
+
}, argPackAdvance:8, readValueFromPointer:Cc, J:null,});
|
|
2750
|
+
}, _embind_register_enum:function(a, b, c, d) {
|
|
2751
|
+
function e() {
|
|
2752
|
+
}
|
|
2753
|
+
c = Gc(c);
|
|
2754
|
+
b = N(b);
|
|
2755
|
+
e.values = {};
|
|
2756
|
+
Fc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2757
|
+
return this.constructor.values[f];
|
|
2758
|
+
}, toWireType:function(f, g) {
|
|
2759
|
+
return g.value;
|
|
2760
|
+
}, argPackAdvance:8, readValueFromPointer:bd(b, c, d), J:null,});
|
|
2761
|
+
Lc(b, e);
|
|
2762
|
+
}, _embind_register_enum_value:function(a, b, c) {
|
|
2763
|
+
var d = pc(a, "enum");
|
|
2764
|
+
b = N(b);
|
|
2765
|
+
a = d.constructor;
|
|
2766
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Zb(`${d.name}_${b}`, function() {
|
|
2767
|
+
})},});
|
|
2768
|
+
a.values[c] = d;
|
|
2769
|
+
a[b] = d;
|
|
2770
|
+
}, _embind_register_float:function(a, b, c) {
|
|
2771
|
+
c = Gc(c);
|
|
2772
|
+
b = N(b);
|
|
2773
|
+
Fc(a, {name:b, fromWireType:function(d) {
|
|
2774
|
+
return d;
|
|
2775
|
+
}, toWireType:function(d, e) {
|
|
2776
|
+
return e;
|
|
2777
|
+
}, argPackAdvance:8, readValueFromPointer:cd(b, c), J:null,});
|
|
2778
|
+
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2779
|
+
var g = Zc(b, c);
|
|
2780
|
+
a = N(a);
|
|
2781
|
+
e = R(d, e);
|
|
2782
|
+
Lc(a, function() {
|
|
2783
|
+
Xc(`Cannot call ${a} due to unbound types`, g);
|
|
2784
|
+
}, b - 1);
|
|
2785
|
+
P([], g, function(k) {
|
|
2786
|
+
Tc(a, Yc(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
|
|
2787
|
+
return [];
|
|
2788
|
+
});
|
|
2789
|
+
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2790
|
+
b = N(b);
|
|
2791
|
+
-1 === e && (e = 4294967295);
|
|
2792
|
+
e = Gc(c);
|
|
2793
|
+
var f = k => k;
|
|
2794
|
+
if (0 === d) {
|
|
2795
|
+
var g = 32 - 8 * c;
|
|
2796
|
+
f = k => k << g >>> g;
|
|
2797
|
+
}
|
|
2798
|
+
c = b.includes("unsigned") ? function(k, p) {
|
|
2799
|
+
return p >>> 0;
|
|
2800
|
+
} : function(k, p) {
|
|
2801
|
+
return p;
|
|
2802
|
+
};
|
|
2803
|
+
Fc(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:dd(b, e, 0 !== d), J:null,});
|
|
2804
|
+
}, _embind_register_memory_view:function(a, b, c) {
|
|
2805
|
+
function d(f) {
|
|
2806
|
+
f >>= 2;
|
|
2807
|
+
var g = B;
|
|
2808
|
+
return new e(g.buffer, g[f + 1], g[f]);
|
|
2809
|
+
}
|
|
2810
|
+
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2811
|
+
c = N(c);
|
|
2812
|
+
Fc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Zb:!0,});
|
|
2813
|
+
}, _embind_register_std_string:function(a, b) {
|
|
2814
|
+
b = N(b);
|
|
2815
|
+
var c = "std::string" === b;
|
|
2816
|
+
Fc(a, {name:b, fromWireType:function(d) {
|
|
2817
|
+
var e = B[d >> 2], f = d + 4;
|
|
2818
|
+
if (c) {
|
|
2819
|
+
for (var g = f, k = 0; k <= e; ++k) {
|
|
2820
|
+
var p = f + k;
|
|
2821
|
+
if (k == e || 0 == w[p]) {
|
|
2822
|
+
g = g ? $a(w, g, p - g) : "";
|
|
2823
|
+
if (void 0 === n) {
|
|
2824
|
+
var n = g;
|
|
2825
|
+
} else {
|
|
2826
|
+
n += String.fromCharCode(0), n += g;
|
|
2827
|
+
}
|
|
2828
|
+
g = p + 1;
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
} else {
|
|
2832
|
+
n = Array(e);
|
|
2833
|
+
for (k = 0; k < e; ++k) {
|
|
2834
|
+
n[k] = String.fromCharCode(w[f + k]);
|
|
2835
|
+
}
|
|
2836
|
+
n = n.join("");
|
|
2837
|
+
}
|
|
2838
|
+
oc(d);
|
|
2839
|
+
return n;
|
|
2840
|
+
}, toWireType:function(d, e) {
|
|
2841
|
+
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2842
|
+
var f = "string" == typeof e;
|
|
2843
|
+
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || K("Cannot pass non-string to std::string");
|
|
2844
|
+
var g = c && f ? bb(e) : e.length;
|
|
2845
|
+
var k = Td(4 + g + 1), p = k + 4;
|
|
2846
|
+
B[k >> 2] = g;
|
|
2847
|
+
if (c && f) {
|
|
2848
|
+
cb(e, w, p, g + 1);
|
|
2849
|
+
} else {
|
|
2850
|
+
if (f) {
|
|
2851
|
+
for (f = 0; f < g; ++f) {
|
|
2852
|
+
var n = e.charCodeAt(f);
|
|
2853
|
+
255 < n && (oc(p), K("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2854
|
+
w[p + f] = n;
|
|
2855
|
+
}
|
|
2856
|
+
} else {
|
|
2857
|
+
for (f = 0; f < g; ++f) {
|
|
2858
|
+
w[p + f] = e[f];
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
null !== d && d.push(oc, k);
|
|
2863
|
+
return k;
|
|
2864
|
+
}, argPackAdvance:8, readValueFromPointer:Cc, J:function(d) {
|
|
2865
|
+
oc(d);
|
|
2866
|
+
},});
|
|
2867
|
+
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2868
|
+
c = N(c);
|
|
2869
|
+
if (2 === b) {
|
|
2870
|
+
var d = fd;
|
|
2871
|
+
var e = gd;
|
|
2872
|
+
var f = hd;
|
|
2873
|
+
var g = () => ya;
|
|
2874
|
+
var k = 1;
|
|
2875
|
+
} else {
|
|
2876
|
+
4 === b && (d = jd, e = kd, f = ld, g = () => B, k = 2);
|
|
2877
|
+
}
|
|
2878
|
+
Fc(a, {name:c, fromWireType:function(p) {
|
|
2879
|
+
for (var n = B[p >> 2], u = g(), v, y = p + 4, l = 0; l <= n; ++l) {
|
|
2880
|
+
var r = p + 4 + l * b;
|
|
2881
|
+
if (l == n || 0 == u[r >> k]) {
|
|
2882
|
+
y = d(y, r - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = r + b;
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
oc(p);
|
|
2886
|
+
return v;
|
|
2887
|
+
}, toWireType:function(p, n) {
|
|
2888
|
+
"string" != typeof n && K(`Cannot pass non-string to C++ string type ${c}`);
|
|
2889
|
+
var u = f(n), v = Td(4 + u + b);
|
|
2890
|
+
B[v >> 2] = u >> k;
|
|
2891
|
+
e(n, v + 4, u + b);
|
|
2892
|
+
null !== p && p.push(oc, v);
|
|
2893
|
+
return v;
|
|
2894
|
+
}, argPackAdvance:8, readValueFromPointer:Cc, J:function(p) {
|
|
2895
|
+
oc(p);
|
|
2896
|
+
},});
|
|
2897
|
+
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2898
|
+
Ac[a] = {name:N(b), Qa:R(c, d), V:R(e, f), ab:[],};
|
|
2899
|
+
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, k, p, n) {
|
|
2900
|
+
Ac[a].ab.push({Qb:N(b), Wb:c, Ub:R(d, e), Vb:f, oc:g, nc:R(k, p), pc:n,});
|
|
2901
|
+
}, _embind_register_void:function(a, b) {
|
|
2902
|
+
b = N(b);
|
|
2903
|
+
Fc(a, {ec:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2904
|
+
}, toWireType:function() {
|
|
2905
|
+
},});
|
|
2906
|
+
}, _emscripten_get_now_is_monotonic:() => !0, _emscripten_throw_longjmp:() => {
|
|
2907
|
+
throw Infinity;
|
|
2908
|
+
}, _emval_as:function(a, b, c) {
|
|
2909
|
+
a = bc(a);
|
|
2910
|
+
b = pc(b, "emval::as");
|
|
2911
|
+
var d = [], e = cc(d);
|
|
2912
|
+
B[c >> 2] = e;
|
|
2913
|
+
return b.toWireType(d, a);
|
|
2914
|
+
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2915
|
+
a = od[a];
|
|
2916
|
+
b = bc(b);
|
|
2917
|
+
c = nd(c);
|
|
2918
|
+
var f = [];
|
|
2919
|
+
B[d >> 2] = cc(f);
|
|
2920
|
+
return a(b, c, f, e);
|
|
2921
|
+
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2922
|
+
a = od[a];
|
|
2923
|
+
b = bc(b);
|
|
2924
|
+
c = nd(c);
|
|
2925
|
+
a(b, c, null, d);
|
|
2926
|
+
}, _emval_decref:ad, _emval_get_method_caller:function(a, b) {
|
|
2927
|
+
var c = qd(a, b), d = c[0];
|
|
2928
|
+
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
2929
|
+
return g.name;
|
|
2930
|
+
}).join("_") + "$";
|
|
2931
|
+
var e = rd[b];
|
|
2932
|
+
if (void 0 !== e) {
|
|
2933
|
+
return e;
|
|
2934
|
+
}
|
|
2935
|
+
var f = Array(a - 1);
|
|
2936
|
+
e = pd((g, k, p, n) => {
|
|
2937
|
+
for (var u = 0, v = 0; v < a - 1; ++v) {
|
|
2938
|
+
f[v] = c[v + 1].readValueFromPointer(n + u), u += c[v + 1].argPackAdvance;
|
|
2939
|
+
}
|
|
2940
|
+
g = g[k].apply(g, f);
|
|
2941
|
+
for (v = 0; v < a - 1; ++v) {
|
|
2942
|
+
c[v + 1].Lb && c[v + 1].Lb(f[v]);
|
|
2943
|
+
}
|
|
2944
|
+
if (!d.ec) {
|
|
2945
|
+
return d.toWireType(p, g);
|
|
2946
|
+
}
|
|
2947
|
+
});
|
|
2948
|
+
return rd[b] = e;
|
|
2949
|
+
}, _emval_get_property:function(a, b) {
|
|
2950
|
+
a = bc(a);
|
|
2951
|
+
b = bc(b);
|
|
2952
|
+
return cc(a[b]);
|
|
2953
|
+
}, _emval_incref:function(a) {
|
|
2954
|
+
4 < a && (J.get(a).qb += 1);
|
|
2955
|
+
}, _emval_new_cstring:function(a) {
|
|
2956
|
+
return cc(nd(a));
|
|
2957
|
+
}, _emval_new_object:function() {
|
|
2958
|
+
return cc({});
|
|
2959
|
+
}, _emval_run_destructors:function(a) {
|
|
2960
|
+
var b = bc(a);
|
|
2961
|
+
Bc(b);
|
|
2962
|
+
ad(a);
|
|
2963
|
+
}, _emval_set_property:function(a, b, c) {
|
|
2964
|
+
a = bc(a);
|
|
2965
|
+
b = bc(b);
|
|
2966
|
+
c = bc(c);
|
|
2967
|
+
a[b] = c;
|
|
2968
|
+
}, _emval_take_value:function(a, b) {
|
|
2969
|
+
a = pc(a, "_emval_take_value");
|
|
2970
|
+
a = a.readValueFromPointer(b);
|
|
2971
|
+
return cc(a);
|
|
2972
|
+
}, abort:() => {
|
|
2973
|
+
ua("");
|
|
2974
|
+
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2975
|
+
sd.length = 0;
|
|
2976
|
+
var d;
|
|
2977
|
+
for (c >>= 2; d = w[b++];) {
|
|
2978
|
+
c += 105 != d & c, sd.push(105 == d ? A[c] : za[c++ >> 1]), ++c;
|
|
2979
|
+
}
|
|
2980
|
+
return Ra[a].apply(null, sd);
|
|
2981
|
+
}, emscripten_date_now:function() {
|
|
2982
|
+
return Date.now();
|
|
2983
|
+
}, emscripten_get_now:() => performance.now(), emscripten_glActiveTexture:function(a) {
|
|
2984
|
+
U.activeTexture(a);
|
|
2985
|
+
}, emscripten_glAttachShader:function(a, b) {
|
|
2986
|
+
U.attachShader(yd[a], Cd[b]);
|
|
2987
|
+
}, emscripten_glBindAttribLocation:function(a, b, c) {
|
|
2988
|
+
U.bindAttribLocation(yd[a], b, c ? $a(w, c) : "");
|
|
2989
|
+
}, emscripten_glBindBuffer:function(a, b) {
|
|
2990
|
+
35051 == a ? U.Ka = b : 35052 == a && (U.fa = b);
|
|
2991
|
+
U.bindBuffer(a, xd[b]);
|
|
2992
|
+
}, emscripten_glBindFramebuffer:Kd, emscripten_glBindRenderbuffer:function(a, b) {
|
|
2993
|
+
U.bindRenderbuffer(a, Ad[b]);
|
|
2994
|
+
}, emscripten_glBindSampler:function(a, b) {
|
|
2995
|
+
U.bindSampler(a, Ed[b]);
|
|
2996
|
+
}, emscripten_glBindTexture:function(a, b) {
|
|
2997
|
+
U.bindTexture(a, Bd[b]);
|
|
2998
|
+
}, emscripten_glBindVertexArray:Ld, emscripten_glBindVertexArrayOES:Ld, emscripten_glBlendColor:function(a, b, c, d) {
|
|
2999
|
+
U.blendColor(a, b, c, d);
|
|
3000
|
+
}, emscripten_glBlendEquation:function(a) {
|
|
3001
|
+
U.blendEquation(a);
|
|
3002
|
+
}, emscripten_glBlendFunc:function(a, b) {
|
|
3003
|
+
U.blendFunc(a, b);
|
|
3004
|
+
}, emscripten_glBlitFramebuffer:function(a, b, c, d, e, f, g, k, p, n) {
|
|
3005
|
+
U.blitFramebuffer(a, b, c, d, e, f, g, k, p, n);
|
|
3006
|
+
}, emscripten_glBufferData:function(a, b, c, d) {
|
|
3007
|
+
2 <= T.version ? c && b ? U.bufferData(a, w, d, c, b) : U.bufferData(a, b, d) : U.bufferData(a, c ? w.subarray(c, c + b) : b, d);
|
|
3008
|
+
}, emscripten_glBufferSubData:function(a, b, c, d) {
|
|
3009
|
+
2 <= T.version ? c && U.bufferSubData(a, b, w, d, c) : U.bufferSubData(a, b, w.subarray(d, d + c));
|
|
3010
|
+
}, emscripten_glCheckFramebufferStatus:function(a) {
|
|
3011
|
+
return U.checkFramebufferStatus(a);
|
|
3012
|
+
}, emscripten_glClear:function(a) {
|
|
3013
|
+
U.clear(a);
|
|
3014
|
+
}, emscripten_glClearColor:function(a, b, c, d) {
|
|
3015
|
+
U.clearColor(a, b, c, d);
|
|
3016
|
+
}, emscripten_glClearStencil:function(a) {
|
|
3017
|
+
U.clearStencil(a);
|
|
3018
|
+
}, emscripten_glClientWaitSync:function(a, b, c, d) {
|
|
3019
|
+
return U.clientWaitSync(Fd[a], b, (c >>> 0) + 4294967296 * d);
|
|
3020
|
+
}, emscripten_glColorMask:function(a, b, c, d) {
|
|
3021
|
+
U.colorMask(!!a, !!b, !!c, !!d);
|
|
3022
|
+
}, emscripten_glCompileShader:function(a) {
|
|
3023
|
+
U.compileShader(Cd[a]);
|
|
3024
|
+
}, emscripten_glCompressedTexImage2D:function(a, b, c, d, e, f, g, k) {
|
|
3025
|
+
2 <= T.version ? U.fa || !g ? U.compressedTexImage2D(a, b, c, d, e, f, g, k) : U.compressedTexImage2D(a, b, c, d, e, f, w, k, g) : U.compressedTexImage2D(a, b, c, d, e, f, k ? w.subarray(k, k + g) : null);
|
|
3026
|
+
}, emscripten_glCompressedTexSubImage2D:function(a, b, c, d, e, f, g, k, p) {
|
|
3027
|
+
2 <= T.version ? U.fa || !k ? U.compressedTexSubImage2D(a, b, c, d, e, f, g, k, p) : U.compressedTexSubImage2D(a, b, c, d, e, f, g, w, p, k) : U.compressedTexSubImage2D(a, b, c, d, e, f, g, p ? w.subarray(p, p + k) : null);
|
|
3028
|
+
}, emscripten_glCopyTexSubImage2D:function(a, b, c, d, e, f, g, k) {
|
|
3029
|
+
U.copyTexSubImage2D(a, b, c, d, e, f, g, k);
|
|
3030
|
+
}, emscripten_glCreateProgram:function() {
|
|
3031
|
+
var a = ha(yd), b = U.createProgram();
|
|
3032
|
+
b.name = a;
|
|
3033
|
+
b.Aa = b.ya = b.za = 0;
|
|
3034
|
+
b.Ta = 1;
|
|
3035
|
+
yd[a] = b;
|
|
3036
|
+
return a;
|
|
3037
|
+
}, emscripten_glCreateShader:function(a) {
|
|
3038
|
+
var b = ha(Cd);
|
|
3039
|
+
Cd[b] = U.createShader(a);
|
|
3040
|
+
return b;
|
|
3041
|
+
}, emscripten_glCullFace:function(a) {
|
|
3042
|
+
U.cullFace(a);
|
|
3043
|
+
}, emscripten_glDeleteBuffers:function(a, b) {
|
|
3044
|
+
for (var c = 0; c < a; c++) {
|
|
3045
|
+
var d = A[b + 4 * c >> 2], e = xd[d];
|
|
3046
|
+
e && (U.deleteBuffer(e), e.name = 0, xd[d] = null, d == U.Ka && (U.Ka = 0), d == U.fa && (U.fa = 0));
|
|
3047
|
+
}
|
|
3048
|
+
}, emscripten_glDeleteFramebuffers:function(a, b) {
|
|
3049
|
+
for (var c = 0; c < a; ++c) {
|
|
3050
|
+
var d = A[b + 4 * c >> 2], e = zd[d];
|
|
3051
|
+
e && (U.deleteFramebuffer(e), e.name = 0, zd[d] = null);
|
|
3052
|
+
}
|
|
3053
|
+
}, emscripten_glDeleteProgram:function(a) {
|
|
3054
|
+
if (a) {
|
|
3055
|
+
var b = yd[a];
|
|
3056
|
+
b ? (U.deleteProgram(b), b.name = 0, yd[a] = null) : S(1281);
|
|
3057
|
+
}
|
|
3058
|
+
}, emscripten_glDeleteRenderbuffers:function(a, b) {
|
|
3059
|
+
for (var c = 0; c < a; c++) {
|
|
3060
|
+
var d = A[b + 4 * c >> 2], e = Ad[d];
|
|
3061
|
+
e && (U.deleteRenderbuffer(e), e.name = 0, Ad[d] = null);
|
|
3062
|
+
}
|
|
3063
|
+
}, emscripten_glDeleteSamplers:function(a, b) {
|
|
3064
|
+
for (var c = 0; c < a; c++) {
|
|
3065
|
+
var d = A[b + 4 * c >> 2], e = Ed[d];
|
|
3066
|
+
e && (U.deleteSampler(e), e.name = 0, Ed[d] = null);
|
|
3067
|
+
}
|
|
3068
|
+
}, emscripten_glDeleteShader:function(a) {
|
|
3069
|
+
if (a) {
|
|
3070
|
+
var b = Cd[a];
|
|
3071
|
+
b ? (U.deleteShader(b), Cd[a] = null) : S(1281);
|
|
3072
|
+
}
|
|
3073
|
+
}, emscripten_glDeleteSync:function(a) {
|
|
3074
|
+
if (a) {
|
|
3075
|
+
var b = Fd[a];
|
|
3076
|
+
b ? (U.deleteSync(b), b.name = 0, Fd[a] = null) : S(1281);
|
|
3077
|
+
}
|
|
3078
|
+
}, emscripten_glDeleteTextures:function(a, b) {
|
|
3079
|
+
for (var c = 0; c < a; c++) {
|
|
3080
|
+
var d = A[b + 4 * c >> 2], e = Bd[d];
|
|
3081
|
+
e && (U.deleteTexture(e), e.name = 0, Bd[d] = null);
|
|
3082
|
+
}
|
|
3083
|
+
}, emscripten_glDeleteVertexArrays:Md, emscripten_glDeleteVertexArraysOES:Md, emscripten_glDepthMask:function(a) {
|
|
3084
|
+
U.depthMask(!!a);
|
|
3085
|
+
}, emscripten_glDisable:function(a) {
|
|
3086
|
+
U.disable(a);
|
|
3087
|
+
}, emscripten_glDisableVertexAttribArray:function(a) {
|
|
3088
|
+
U.disableVertexAttribArray(a);
|
|
3089
|
+
}, emscripten_glDrawArrays:function(a, b, c) {
|
|
3090
|
+
U.drawArrays(a, b, c);
|
|
3091
|
+
}, emscripten_glDrawArraysInstanced:function(a, b, c, d) {
|
|
3092
|
+
U.drawArraysInstanced(a, b, c, d);
|
|
3093
|
+
}, emscripten_glDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e) {
|
|
3094
|
+
U.Za.drawArraysInstancedBaseInstanceWEBGL(a, b, c, d, e);
|
|
3095
|
+
}, emscripten_glDrawBuffers:function(a, b) {
|
|
3096
|
+
for (var c = Nd[a], d = 0; d < a; d++) {
|
|
3097
|
+
c[d] = A[b + 4 * d >> 2];
|
|
3098
|
+
}
|
|
3099
|
+
U.drawBuffers(c);
|
|
3100
|
+
}, emscripten_glDrawElements:Od, emscripten_glDrawElementsInstanced:function(a, b, c, d, e) {
|
|
3101
|
+
U.drawElementsInstanced(a, b, c, d, e);
|
|
3102
|
+
}, emscripten_glDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g) {
|
|
3103
|
+
U.Za.drawElementsInstancedBaseVertexBaseInstanceWEBGL(a, b, c, d, e, f, g);
|
|
3104
|
+
}, emscripten_glDrawRangeElements:function(a, b, c, d, e, f) {
|
|
3105
|
+
Od(a, d, e, f);
|
|
3106
|
+
}, emscripten_glEnable:function(a) {
|
|
3107
|
+
U.enable(a);
|
|
3108
|
+
}, emscripten_glEnableVertexAttribArray:function(a) {
|
|
3109
|
+
U.enableVertexAttribArray(a);
|
|
3110
|
+
}, emscripten_glFenceSync:function(a, b) {
|
|
3111
|
+
return (a = U.fenceSync(a, b)) ? (b = ha(Fd), a.name = b, Fd[b] = a, b) : 0;
|
|
3112
|
+
}, emscripten_glFinish:function() {
|
|
3113
|
+
U.finish();
|
|
3114
|
+
}, emscripten_glFlush:function() {
|
|
3115
|
+
U.flush();
|
|
3116
|
+
}, emscripten_glFramebufferRenderbuffer:function(a, b, c, d) {
|
|
3117
|
+
U.framebufferRenderbuffer(a, b, c, Ad[d]);
|
|
3118
|
+
}, emscripten_glFramebufferTexture2D:function(a, b, c, d, e) {
|
|
3119
|
+
U.framebufferTexture2D(a, b, c, Bd[d], e);
|
|
3120
|
+
}, emscripten_glFrontFace:function(a) {
|
|
3121
|
+
U.frontFace(a);
|
|
3122
|
+
}, emscripten_glGenBuffers:function(a, b) {
|
|
3123
|
+
Pd(a, b, "createBuffer", xd);
|
|
3124
|
+
}, emscripten_glGenFramebuffers:function(a, b) {
|
|
3125
|
+
Pd(a, b, "createFramebuffer", zd);
|
|
3126
|
+
}, emscripten_glGenRenderbuffers:function(a, b) {
|
|
3127
|
+
Pd(a, b, "createRenderbuffer", Ad);
|
|
3128
|
+
}, emscripten_glGenSamplers:function(a, b) {
|
|
3129
|
+
Pd(a, b, "createSampler", Ed);
|
|
3130
|
+
}, emscripten_glGenTextures:function(a, b) {
|
|
3131
|
+
Pd(a, b, "createTexture", Bd);
|
|
3132
|
+
}, emscripten_glGenVertexArrays:Qd, emscripten_glGenVertexArraysOES:Qd, emscripten_glGenerateMipmap:function(a) {
|
|
3133
|
+
U.generateMipmap(a);
|
|
3134
|
+
}, emscripten_glGetBufferParameteriv:function(a, b, c) {
|
|
3135
|
+
c ? A[c >> 2] = U.getBufferParameter(a, b) : S(1281);
|
|
3136
|
+
}, emscripten_glGetError:function() {
|
|
3137
|
+
var a = U.getError() || Jd;
|
|
3138
|
+
Jd = 0;
|
|
3139
|
+
return a;
|
|
3140
|
+
}, emscripten_glGetFramebufferAttachmentParameteriv:function(a, b, c, d) {
|
|
3141
|
+
a = U.getFramebufferAttachmentParameter(a, b, c);
|
|
3142
|
+
if (a instanceof WebGLRenderbuffer || a instanceof WebGLTexture) {
|
|
3143
|
+
a = a.name | 0;
|
|
3144
|
+
}
|
|
3145
|
+
A[d >> 2] = a;
|
|
3146
|
+
}, emscripten_glGetIntegerv:Sd, emscripten_glGetProgramInfoLog:function(a, b, c, d) {
|
|
3147
|
+
a = U.getProgramInfoLog(yd[a]);
|
|
3148
|
+
null === a && (a = "(unknown error)");
|
|
3149
|
+
b = 0 < b && d ? cb(a, w, d, b) : 0;
|
|
3150
|
+
c && (A[c >> 2] = b);
|
|
3151
|
+
}, emscripten_glGetProgramiv:function(a, b, c) {
|
|
3152
|
+
if (c) {
|
|
3153
|
+
if (a >= wd) {
|
|
3154
|
+
S(1281);
|
|
3155
|
+
} else {
|
|
3156
|
+
if (a = yd[a], 35716 == b) {
|
|
3157
|
+
a = U.getProgramInfoLog(a), null === a && (a = "(unknown error)"), A[c >> 2] = a.length + 1;
|
|
3158
|
+
} else if (35719 == b) {
|
|
3159
|
+
if (!a.Aa) {
|
|
3160
|
+
for (b = 0; b < U.getProgramParameter(a, 35718); ++b) {
|
|
3161
|
+
a.Aa = Math.max(a.Aa, U.getActiveUniform(a, b).name.length + 1);
|
|
3162
|
+
}
|
|
3163
|
+
}
|
|
3164
|
+
A[c >> 2] = a.Aa;
|
|
3165
|
+
} else if (35722 == b) {
|
|
3166
|
+
if (!a.ya) {
|
|
3167
|
+
for (b = 0; b < U.getProgramParameter(a, 35721); ++b) {
|
|
3168
|
+
a.ya = Math.max(a.ya, U.getActiveAttrib(a, b).name.length + 1);
|
|
3169
|
+
}
|
|
3170
|
+
}
|
|
3171
|
+
A[c >> 2] = a.ya;
|
|
3172
|
+
} else if (35381 == b) {
|
|
3173
|
+
if (!a.za) {
|
|
3174
|
+
for (b = 0; b < U.getProgramParameter(a, 35382); ++b) {
|
|
3175
|
+
a.za = Math.max(a.za, U.getActiveUniformBlockName(a, b).length + 1);
|
|
3176
|
+
}
|
|
3177
|
+
}
|
|
3178
|
+
A[c >> 2] = a.za;
|
|
3179
|
+
} else {
|
|
3180
|
+
A[c >> 2] = U.getProgramParameter(a, b);
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
} else {
|
|
3184
|
+
S(1281);
|
|
3185
|
+
}
|
|
3186
|
+
}, emscripten_glGetRenderbufferParameteriv:function(a, b, c) {
|
|
3187
|
+
c ? A[c >> 2] = U.getRenderbufferParameter(a, b) : S(1281);
|
|
3188
|
+
}, emscripten_glGetShaderInfoLog:function(a, b, c, d) {
|
|
3189
|
+
a = U.getShaderInfoLog(Cd[a]);
|
|
3190
|
+
null === a && (a = "(unknown error)");
|
|
3191
|
+
b = 0 < b && d ? cb(a, w, d, b) : 0;
|
|
3192
|
+
c && (A[c >> 2] = b);
|
|
3193
|
+
}, emscripten_glGetShaderPrecisionFormat:function(a, b, c, d) {
|
|
3194
|
+
a = U.getShaderPrecisionFormat(a, b);
|
|
3195
|
+
A[c >> 2] = a.rangeMin;
|
|
3196
|
+
A[c + 4 >> 2] = a.rangeMax;
|
|
3197
|
+
A[d >> 2] = a.precision;
|
|
3198
|
+
}, emscripten_glGetShaderiv:function(a, b, c) {
|
|
3199
|
+
c ? 35716 == b ? (a = U.getShaderInfoLog(Cd[a]), null === a && (a = "(unknown error)"), A[c >> 2] = a ? a.length + 1 : 0) : 35720 == b ? (a = U.getShaderSource(Cd[a]), A[c >> 2] = a ? a.length + 1 : 0) : A[c >> 2] = U.getShaderParameter(Cd[a], b) : S(1281);
|
|
3200
|
+
}, emscripten_glGetString:function(a) {
|
|
3201
|
+
var b = Gd[a];
|
|
3202
|
+
if (!b) {
|
|
3203
|
+
switch(a) {
|
|
3204
|
+
case 7939:
|
|
3205
|
+
b = U.getSupportedExtensions() || [];
|
|
3206
|
+
b = b.concat(b.map(function(d) {
|
|
3207
|
+
return "GL_" + d;
|
|
3208
|
+
}));
|
|
3209
|
+
b = Ud(b.join(" "));
|
|
3210
|
+
break;
|
|
3211
|
+
case 7936:
|
|
3212
|
+
case 7937:
|
|
3213
|
+
case 37445:
|
|
3214
|
+
case 37446:
|
|
3215
|
+
(b = U.getParameter(a)) || S(1280);
|
|
3216
|
+
b = b && Ud(b);
|
|
3217
|
+
break;
|
|
3218
|
+
case 7938:
|
|
3219
|
+
b = U.getParameter(7938);
|
|
3220
|
+
b = 2 <= T.version ? "OpenGL ES 3.0 (" + b + ")" : "OpenGL ES 2.0 (" + b + ")";
|
|
3221
|
+
b = Ud(b);
|
|
3222
|
+
break;
|
|
3223
|
+
case 35724:
|
|
3224
|
+
b = U.getParameter(35724);
|
|
3225
|
+
var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
|
|
3226
|
+
null !== c && (3 == c[1].length && (c[1] += "0"), b = "OpenGL ES GLSL ES " + c[1] + " (" + b + ")");
|
|
3227
|
+
b = Ud(b);
|
|
3228
|
+
break;
|
|
3229
|
+
default:
|
|
3230
|
+
S(1280);
|
|
3231
|
+
}
|
|
3232
|
+
Gd[a] = b;
|
|
3233
|
+
}
|
|
3234
|
+
return b;
|
|
3235
|
+
}, emscripten_glGetStringi:function(a, b) {
|
|
3236
|
+
if (2 > T.version) {
|
|
3237
|
+
return S(1282), 0;
|
|
3238
|
+
}
|
|
3239
|
+
var c = Hd[a];
|
|
3240
|
+
if (c) {
|
|
3241
|
+
return 0 > b || b >= c.length ? (S(1281), 0) : c[b];
|
|
3242
|
+
}
|
|
3243
|
+
switch(a) {
|
|
3244
|
+
case 7939:
|
|
3245
|
+
return c = U.getSupportedExtensions() || [], c = c.concat(c.map(function(d) {
|
|
3246
|
+
return "GL_" + d;
|
|
3247
|
+
})), c = c.map(function(d) {
|
|
3248
|
+
return Ud(d);
|
|
3249
|
+
}), c = Hd[a] = c, 0 > b || b >= c.length ? (S(1281), 0) : c[b];
|
|
3250
|
+
default:
|
|
3251
|
+
return S(1280), 0;
|
|
3252
|
+
}
|
|
3253
|
+
}, emscripten_glGetUniformLocation:function(a, b) {
|
|
3254
|
+
b = b ? $a(w, b) : "";
|
|
3255
|
+
if (a = yd[a]) {
|
|
3256
|
+
var c = a, d = c.na, e = c.vb, f;
|
|
3257
|
+
if (!d) {
|
|
3258
|
+
for (c.na = d = {}, c.ub = {}, f = 0; f < U.getProgramParameter(c, 35718); ++f) {
|
|
3259
|
+
var g = U.getActiveUniform(c, f);
|
|
3260
|
+
var k = g.name;
|
|
3261
|
+
g = g.size;
|
|
3262
|
+
var p = Vd(k);
|
|
3263
|
+
p = 0 < p ? k.slice(0, p) : k;
|
|
3264
|
+
var n = c.Ta;
|
|
3265
|
+
c.Ta += g;
|
|
3266
|
+
e[p] = [g, n];
|
|
3267
|
+
for (k = 0; k < g; ++k) {
|
|
3268
|
+
d[n] = k, c.ub[n++] = p;
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
}
|
|
3272
|
+
c = a.na;
|
|
3273
|
+
d = 0;
|
|
3274
|
+
e = b;
|
|
3275
|
+
f = Vd(b);
|
|
3276
|
+
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3277
|
+
if ((e = a.vb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || U.getUniformLocation(a, b))) {
|
|
3278
|
+
return d;
|
|
3279
|
+
}
|
|
3280
|
+
} else {
|
|
3281
|
+
S(1281);
|
|
3282
|
+
}
|
|
3283
|
+
return -1;
|
|
3284
|
+
}, emscripten_glInvalidateFramebuffer:function(a, b, c) {
|
|
3285
|
+
for (var d = Nd[b], e = 0; e < b; e++) {
|
|
3286
|
+
d[e] = A[c + 4 * e >> 2];
|
|
3287
|
+
}
|
|
3288
|
+
U.invalidateFramebuffer(a, d);
|
|
3289
|
+
}, emscripten_glInvalidateSubFramebuffer:function(a, b, c, d, e, f, g) {
|
|
3290
|
+
for (var k = Nd[b], p = 0; p < b; p++) {
|
|
3291
|
+
k[p] = A[c + 4 * p >> 2];
|
|
3292
|
+
}
|
|
3293
|
+
U.invalidateSubFramebuffer(a, k, d, e, f, g);
|
|
3294
|
+
}, emscripten_glIsSync:function(a) {
|
|
3295
|
+
return U.isSync(Fd[a]);
|
|
3296
|
+
}, emscripten_glIsTexture:function(a) {
|
|
3297
|
+
return (a = Bd[a]) ? U.isTexture(a) : 0;
|
|
3298
|
+
}, emscripten_glLineWidth:function(a) {
|
|
3299
|
+
U.lineWidth(a);
|
|
3300
|
+
}, emscripten_glLinkProgram:function(a) {
|
|
3301
|
+
a = yd[a];
|
|
3302
|
+
U.linkProgram(a);
|
|
3303
|
+
a.na = 0;
|
|
3304
|
+
a.vb = {};
|
|
3305
|
+
}, emscripten_glMultiDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e, f) {
|
|
3306
|
+
U.hb.multiDrawArraysInstancedBaseInstanceWEBGL(a, A, b >> 2, A, c >> 2, A, d >> 2, B, e >> 2, f);
|
|
3307
|
+
}, emscripten_glMultiDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g, k) {
|
|
3308
|
+
U.hb.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a, A, b >> 2, c, A, d >> 2, A, e >> 2, A, f >> 2, B, g >> 2, k);
|
|
3309
|
+
}, emscripten_glPixelStorei:function(a, b) {
|
|
3310
|
+
3317 == a && (Id = b);
|
|
3311
|
+
U.pixelStorei(a, b);
|
|
3312
|
+
}, emscripten_glReadBuffer:function(a) {
|
|
3313
|
+
U.readBuffer(a);
|
|
3314
|
+
}, emscripten_glReadPixels:function(a, b, c, d, e, f, g) {
|
|
3315
|
+
if (2 <= T.version) {
|
|
3316
|
+
if (U.Ka) {
|
|
3317
|
+
U.readPixels(a, b, c, d, e, f, g);
|
|
3318
|
+
} else {
|
|
3319
|
+
var k = Wd(f);
|
|
3320
|
+
U.readPixels(a, b, c, d, e, f, k, g >> 31 - Math.clz32(k.BYTES_PER_ELEMENT));
|
|
3321
|
+
}
|
|
3322
|
+
} else {
|
|
3323
|
+
(g = Xd(f, e, c, d, g)) ? U.readPixels(a, b, c, d, e, f, g) : S(1280);
|
|
3324
|
+
}
|
|
3325
|
+
}, emscripten_glRenderbufferStorage:function(a, b, c, d) {
|
|
3326
|
+
U.renderbufferStorage(a, b, c, d);
|
|
3327
|
+
}, emscripten_glRenderbufferStorageMultisample:function(a, b, c, d, e) {
|
|
3328
|
+
U.renderbufferStorageMultisample(a, b, c, d, e);
|
|
3329
|
+
}, emscripten_glSamplerParameteri:function(a, b, c) {
|
|
3330
|
+
U.samplerParameteri(Ed[a], b, c);
|
|
3331
|
+
}, emscripten_glSamplerParameteriv:function(a, b, c) {
|
|
3332
|
+
U.samplerParameteri(Ed[a], b, A[c >> 2]);
|
|
3333
|
+
}, emscripten_glScissor:function(a, b, c, d) {
|
|
3334
|
+
U.scissor(a, b, c, d);
|
|
3335
|
+
}, emscripten_glShaderSource:function(a, b, c, d) {
|
|
3336
|
+
for (var e = "", f = 0; f < b; ++f) {
|
|
3337
|
+
var g = d ? A[d + 4 * f >> 2] : -1, k = A[c + 4 * f >> 2];
|
|
3338
|
+
g = k ? $a(w, k, 0 > g ? void 0 : g) : "";
|
|
3339
|
+
e += g;
|
|
3340
|
+
}
|
|
3341
|
+
U.shaderSource(Cd[a], e);
|
|
3342
|
+
}, emscripten_glStencilFunc:function(a, b, c) {
|
|
3343
|
+
U.stencilFunc(a, b, c);
|
|
3344
|
+
}, emscripten_glStencilFuncSeparate:function(a, b, c, d) {
|
|
3345
|
+
U.stencilFuncSeparate(a, b, c, d);
|
|
3346
|
+
}, emscripten_glStencilMask:function(a) {
|
|
3347
|
+
U.stencilMask(a);
|
|
3348
|
+
}, emscripten_glStencilMaskSeparate:function(a, b) {
|
|
3349
|
+
U.stencilMaskSeparate(a, b);
|
|
3350
|
+
}, emscripten_glStencilOp:function(a, b, c) {
|
|
3351
|
+
U.stencilOp(a, b, c);
|
|
3352
|
+
}, emscripten_glStencilOpSeparate:function(a, b, c, d) {
|
|
3353
|
+
U.stencilOpSeparate(a, b, c, d);
|
|
3354
|
+
}, emscripten_glTexImage2D:function(a, b, c, d, e, f, g, k, p) {
|
|
3355
|
+
if (2 <= T.version) {
|
|
3356
|
+
if (U.fa) {
|
|
3357
|
+
U.texImage2D(a, b, c, d, e, f, g, k, p);
|
|
3358
|
+
} else if (p) {
|
|
3359
|
+
var n = Wd(k);
|
|
3360
|
+
U.texImage2D(a, b, c, d, e, f, g, k, n, p >> 31 - Math.clz32(n.BYTES_PER_ELEMENT));
|
|
3361
|
+
} else {
|
|
3362
|
+
U.texImage2D(a, b, c, d, e, f, g, k, null);
|
|
3363
|
+
}
|
|
3364
|
+
} else {
|
|
3365
|
+
U.texImage2D(a, b, c, d, e, f, g, k, p ? Xd(k, g, d, e, p) : null);
|
|
3366
|
+
}
|
|
3367
|
+
}, emscripten_glTexParameterf:function(a, b, c) {
|
|
3368
|
+
U.texParameterf(a, b, c);
|
|
3369
|
+
}, emscripten_glTexParameterfv:function(a, b, c) {
|
|
3370
|
+
U.texParameterf(a, b, D[c >> 2]);
|
|
3371
|
+
}, emscripten_glTexParameteri:function(a, b, c) {
|
|
3372
|
+
U.texParameteri(a, b, c);
|
|
3373
|
+
}, emscripten_glTexParameteriv:function(a, b, c) {
|
|
3374
|
+
U.texParameteri(a, b, A[c >> 2]);
|
|
3375
|
+
}, emscripten_glTexStorage2D:function(a, b, c, d, e) {
|
|
3376
|
+
U.texStorage2D(a, b, c, d, e);
|
|
3377
|
+
}, emscripten_glTexSubImage2D:function(a, b, c, d, e, f, g, k, p) {
|
|
3378
|
+
if (2 <= T.version) {
|
|
3379
|
+
if (U.fa) {
|
|
3380
|
+
U.texSubImage2D(a, b, c, d, e, f, g, k, p);
|
|
3381
|
+
} else if (p) {
|
|
3382
|
+
var n = Wd(k);
|
|
3383
|
+
U.texSubImage2D(a, b, c, d, e, f, g, k, n, p >> 31 - Math.clz32(n.BYTES_PER_ELEMENT));
|
|
3384
|
+
} else {
|
|
3385
|
+
U.texSubImage2D(a, b, c, d, e, f, g, k, null);
|
|
3386
|
+
}
|
|
3387
|
+
} else {
|
|
3388
|
+
n = null, p && (n = Xd(k, g, e, f, p)), U.texSubImage2D(a, b, c, d, e, f, g, k, n);
|
|
3389
|
+
}
|
|
3390
|
+
}, emscripten_glUniform1f:function(a, b) {
|
|
3391
|
+
U.uniform1f(V(a), b);
|
|
3392
|
+
}, emscripten_glUniform1fv:function(a, b, c) {
|
|
3393
|
+
if (2 <= T.version) {
|
|
3394
|
+
b && U.uniform1fv(V(a), D, c >> 2, b);
|
|
3395
|
+
} else {
|
|
3396
|
+
if (288 >= b) {
|
|
3397
|
+
for (var d = Yd[b - 1], e = 0; e < b; ++e) {
|
|
3398
|
+
d[e] = D[c + 4 * e >> 2];
|
|
3399
|
+
}
|
|
3400
|
+
} else {
|
|
3401
|
+
d = D.subarray(c >> 2, c + 4 * b >> 2);
|
|
3402
|
+
}
|
|
3403
|
+
U.uniform1fv(V(a), d);
|
|
3404
|
+
}
|
|
3405
|
+
}, emscripten_glUniform1i:function(a, b) {
|
|
3406
|
+
U.uniform1i(V(a), b);
|
|
3407
|
+
}, emscripten_glUniform1iv:function(a, b, c) {
|
|
3408
|
+
if (2 <= T.version) {
|
|
3409
|
+
b && U.uniform1iv(V(a), A, c >> 2, b);
|
|
3410
|
+
} else {
|
|
3411
|
+
if (288 >= b) {
|
|
3412
|
+
for (var d = Zd[b - 1], e = 0; e < b; ++e) {
|
|
3413
|
+
d[e] = A[c + 4 * e >> 2];
|
|
3414
|
+
}
|
|
3415
|
+
} else {
|
|
3416
|
+
d = A.subarray(c >> 2, c + 4 * b >> 2);
|
|
3417
|
+
}
|
|
3418
|
+
U.uniform1iv(V(a), d);
|
|
3419
|
+
}
|
|
3420
|
+
}, emscripten_glUniform2f:function(a, b, c) {
|
|
3421
|
+
U.uniform2f(V(a), b, c);
|
|
3422
|
+
}, emscripten_glUniform2fv:function(a, b, c) {
|
|
3423
|
+
if (2 <= T.version) {
|
|
3424
|
+
b && U.uniform2fv(V(a), D, c >> 2, 2 * b);
|
|
3425
|
+
} else {
|
|
3426
|
+
if (144 >= b) {
|
|
3427
|
+
for (var d = Yd[2 * b - 1], e = 0; e < 2 * b; e += 2) {
|
|
3428
|
+
d[e] = D[c + 4 * e >> 2], d[e + 1] = D[c + (4 * e + 4) >> 2];
|
|
3429
|
+
}
|
|
3430
|
+
} else {
|
|
3431
|
+
d = D.subarray(c >> 2, c + 8 * b >> 2);
|
|
3432
|
+
}
|
|
3433
|
+
U.uniform2fv(V(a), d);
|
|
3434
|
+
}
|
|
3435
|
+
}, emscripten_glUniform2i:function(a, b, c) {
|
|
3436
|
+
U.uniform2i(V(a), b, c);
|
|
3437
|
+
}, emscripten_glUniform2iv:function(a, b, c) {
|
|
3438
|
+
if (2 <= T.version) {
|
|
3439
|
+
b && U.uniform2iv(V(a), A, c >> 2, 2 * b);
|
|
3440
|
+
} else {
|
|
3441
|
+
if (144 >= b) {
|
|
3442
|
+
for (var d = Zd[2 * b - 1], e = 0; e < 2 * b; e += 2) {
|
|
3443
|
+
d[e] = A[c + 4 * e >> 2], d[e + 1] = A[c + (4 * e + 4) >> 2];
|
|
3444
|
+
}
|
|
3445
|
+
} else {
|
|
3446
|
+
d = A.subarray(c >> 2, c + 8 * b >> 2);
|
|
3447
|
+
}
|
|
3448
|
+
U.uniform2iv(V(a), d);
|
|
3449
|
+
}
|
|
3450
|
+
}, emscripten_glUniform3f:function(a, b, c, d) {
|
|
3451
|
+
U.uniform3f(V(a), b, c, d);
|
|
3452
|
+
}, emscripten_glUniform3fv:function(a, b, c) {
|
|
3453
|
+
if (2 <= T.version) {
|
|
3454
|
+
b && U.uniform3fv(V(a), D, c >> 2, 3 * b);
|
|
3455
|
+
} else {
|
|
3456
|
+
if (96 >= b) {
|
|
3457
|
+
for (var d = Yd[3 * b - 1], e = 0; e < 3 * b; e += 3) {
|
|
3458
|
+
d[e] = D[c + 4 * e >> 2], d[e + 1] = D[c + (4 * e + 4) >> 2], d[e + 2] = D[c + (4 * e + 8) >> 2];
|
|
3459
|
+
}
|
|
3460
|
+
} else {
|
|
3461
|
+
d = D.subarray(c >> 2, c + 12 * b >> 2);
|
|
3462
|
+
}
|
|
3463
|
+
U.uniform3fv(V(a), d);
|
|
3464
|
+
}
|
|
3465
|
+
}, emscripten_glUniform3i:function(a, b, c, d) {
|
|
3466
|
+
U.uniform3i(V(a), b, c, d);
|
|
3467
|
+
}, emscripten_glUniform3iv:function(a, b, c) {
|
|
3468
|
+
if (2 <= T.version) {
|
|
3469
|
+
b && U.uniform3iv(V(a), A, c >> 2, 3 * b);
|
|
3470
|
+
} else {
|
|
3471
|
+
if (96 >= b) {
|
|
3472
|
+
for (var d = Zd[3 * b - 1], e = 0; e < 3 * b; e += 3) {
|
|
3473
|
+
d[e] = A[c + 4 * e >> 2], d[e + 1] = A[c + (4 * e + 4) >> 2], d[e + 2] = A[c + (4 * e + 8) >> 2];
|
|
3474
|
+
}
|
|
3475
|
+
} else {
|
|
3476
|
+
d = A.subarray(c >> 2, c + 12 * b >> 2);
|
|
3477
|
+
}
|
|
3478
|
+
U.uniform3iv(V(a), d);
|
|
3479
|
+
}
|
|
3480
|
+
}, emscripten_glUniform4f:function(a, b, c, d, e) {
|
|
3481
|
+
U.uniform4f(V(a), b, c, d, e);
|
|
3482
|
+
}, emscripten_glUniform4fv:function(a, b, c) {
|
|
3483
|
+
if (2 <= T.version) {
|
|
3484
|
+
b && U.uniform4fv(V(a), D, c >> 2, 4 * b);
|
|
3485
|
+
} else {
|
|
3486
|
+
if (72 >= b) {
|
|
3487
|
+
var d = Yd[4 * b - 1], e = D;
|
|
3488
|
+
c >>= 2;
|
|
3489
|
+
for (var f = 0; f < 4 * b; f += 4) {
|
|
3490
|
+
var g = c + f;
|
|
3491
|
+
d[f] = e[g];
|
|
3492
|
+
d[f + 1] = e[g + 1];
|
|
3493
|
+
d[f + 2] = e[g + 2];
|
|
3494
|
+
d[f + 3] = e[g + 3];
|
|
3495
|
+
}
|
|
3496
|
+
} else {
|
|
3497
|
+
d = D.subarray(c >> 2, c + 16 * b >> 2);
|
|
3498
|
+
}
|
|
3499
|
+
U.uniform4fv(V(a), d);
|
|
3500
|
+
}
|
|
3501
|
+
}, emscripten_glUniform4i:function(a, b, c, d, e) {
|
|
3502
|
+
U.uniform4i(V(a), b, c, d, e);
|
|
3503
|
+
}, emscripten_glUniform4iv:function(a, b, c) {
|
|
3504
|
+
if (2 <= T.version) {
|
|
3505
|
+
b && U.uniform4iv(V(a), A, c >> 2, 4 * b);
|
|
3506
|
+
} else {
|
|
3507
|
+
if (72 >= b) {
|
|
3508
|
+
for (var d = Zd[4 * b - 1], e = 0; e < 4 * b; e += 4) {
|
|
3509
|
+
d[e] = A[c + 4 * e >> 2], d[e + 1] = A[c + (4 * e + 4) >> 2], d[e + 2] = A[c + (4 * e + 8) >> 2], d[e + 3] = A[c + (4 * e + 12) >> 2];
|
|
3510
|
+
}
|
|
3511
|
+
} else {
|
|
3512
|
+
d = A.subarray(c >> 2, c + 16 * b >> 2);
|
|
3513
|
+
}
|
|
3514
|
+
U.uniform4iv(V(a), d);
|
|
3515
|
+
}
|
|
3516
|
+
}, emscripten_glUniformMatrix2fv:function(a, b, c, d) {
|
|
3517
|
+
if (2 <= T.version) {
|
|
3518
|
+
b && U.uniformMatrix2fv(V(a), !!c, D, d >> 2, 4 * b);
|
|
3519
|
+
} else {
|
|
3520
|
+
if (72 >= b) {
|
|
3521
|
+
for (var e = Yd[4 * b - 1], f = 0; f < 4 * b; f += 4) {
|
|
3522
|
+
e[f] = D[d + 4 * f >> 2], e[f + 1] = D[d + (4 * f + 4) >> 2], e[f + 2] = D[d + (4 * f + 8) >> 2], e[f + 3] = D[d + (4 * f + 12) >> 2];
|
|
3523
|
+
}
|
|
3524
|
+
} else {
|
|
3525
|
+
e = D.subarray(d >> 2, d + 16 * b >> 2);
|
|
3526
|
+
}
|
|
3527
|
+
U.uniformMatrix2fv(V(a), !!c, e);
|
|
3528
|
+
}
|
|
3529
|
+
}, emscripten_glUniformMatrix3fv:function(a, b, c, d) {
|
|
3530
|
+
if (2 <= T.version) {
|
|
3531
|
+
b && U.uniformMatrix3fv(V(a), !!c, D, d >> 2, 9 * b);
|
|
3532
|
+
} else {
|
|
3533
|
+
if (32 >= b) {
|
|
3534
|
+
for (var e = Yd[9 * b - 1], f = 0; f < 9 * b; f += 9) {
|
|
3535
|
+
e[f] = D[d + 4 * f >> 2], e[f + 1] = D[d + (4 * f + 4) >> 2], e[f + 2] = D[d + (4 * f + 8) >> 2], e[f + 3] = D[d + (4 * f + 12) >> 2], e[f + 4] = D[d + (4 * f + 16) >> 2], e[f + 5] = D[d + (4 * f + 20) >> 2], e[f + 6] = D[d + (4 * f + 24) >> 2], e[f + 7] = D[d + (4 * f + 28) >> 2], e[f + 8] = D[d + (4 * f + 32) >> 2];
|
|
3536
|
+
}
|
|
3537
|
+
} else {
|
|
3538
|
+
e = D.subarray(d >> 2, d + 36 * b >> 2);
|
|
3539
|
+
}
|
|
3540
|
+
U.uniformMatrix3fv(V(a), !!c, e);
|
|
3541
|
+
}
|
|
3542
|
+
}, emscripten_glUniformMatrix4fv:function(a, b, c, d) {
|
|
3543
|
+
if (2 <= T.version) {
|
|
3544
|
+
b && U.uniformMatrix4fv(V(a), !!c, D, d >> 2, 16 * b);
|
|
3545
|
+
} else {
|
|
3546
|
+
if (18 >= b) {
|
|
3547
|
+
var e = Yd[16 * b - 1], f = D;
|
|
3548
|
+
d >>= 2;
|
|
3549
|
+
for (var g = 0; g < 16 * b; g += 16) {
|
|
3550
|
+
var k = d + g;
|
|
3551
|
+
e[g] = f[k];
|
|
3552
|
+
e[g + 1] = f[k + 1];
|
|
3553
|
+
e[g + 2] = f[k + 2];
|
|
3554
|
+
e[g + 3] = f[k + 3];
|
|
3555
|
+
e[g + 4] = f[k + 4];
|
|
3556
|
+
e[g + 5] = f[k + 5];
|
|
3557
|
+
e[g + 6] = f[k + 6];
|
|
3558
|
+
e[g + 7] = f[k + 7];
|
|
3559
|
+
e[g + 8] = f[k + 8];
|
|
3560
|
+
e[g + 9] = f[k + 9];
|
|
3561
|
+
e[g + 10] = f[k + 10];
|
|
3562
|
+
e[g + 11] = f[k + 11];
|
|
3563
|
+
e[g + 12] = f[k + 12];
|
|
3564
|
+
e[g + 13] = f[k + 13];
|
|
3565
|
+
e[g + 14] = f[k + 14];
|
|
3566
|
+
e[g + 15] = f[k + 15];
|
|
3567
|
+
}
|
|
3568
|
+
} else {
|
|
3569
|
+
e = D.subarray(d >> 2, d + 64 * b >> 2);
|
|
3570
|
+
}
|
|
3571
|
+
U.uniformMatrix4fv(V(a), !!c, e);
|
|
3572
|
+
}
|
|
3573
|
+
}, emscripten_glUseProgram:function(a) {
|
|
3574
|
+
a = yd[a];
|
|
3575
|
+
U.useProgram(a);
|
|
3576
|
+
U.Kb = a;
|
|
3577
|
+
}, emscripten_glVertexAttrib1f:function(a, b) {
|
|
3578
|
+
U.vertexAttrib1f(a, b);
|
|
3579
|
+
}, emscripten_glVertexAttrib2fv:function(a, b) {
|
|
3580
|
+
U.vertexAttrib2f(a, D[b >> 2], D[b + 4 >> 2]);
|
|
3581
|
+
}, emscripten_glVertexAttrib3fv:function(a, b) {
|
|
3582
|
+
U.vertexAttrib3f(a, D[b >> 2], D[b + 4 >> 2], D[b + 8 >> 2]);
|
|
3583
|
+
}, emscripten_glVertexAttrib4fv:function(a, b) {
|
|
3584
|
+
U.vertexAttrib4f(a, D[b >> 2], D[b + 4 >> 2], D[b + 8 >> 2], D[b + 12 >> 2]);
|
|
3585
|
+
}, emscripten_glVertexAttribDivisor:function(a, b) {
|
|
3586
|
+
U.vertexAttribDivisor(a, b);
|
|
3587
|
+
}, emscripten_glVertexAttribIPointer:function(a, b, c, d, e) {
|
|
3588
|
+
U.vertexAttribIPointer(a, b, c, d, e);
|
|
3589
|
+
}, emscripten_glVertexAttribPointer:function(a, b, c, d, e, f) {
|
|
3590
|
+
U.vertexAttribPointer(a, b, c, !!d, e, f);
|
|
3591
|
+
}, emscripten_glViewport:function(a, b, c, d) {
|
|
3592
|
+
U.viewport(a, b, c, d);
|
|
3593
|
+
}, emscripten_glWaitSync:function(a, b, c, d) {
|
|
3594
|
+
U.waitSync(Fd[a], b, (c >>> 0) + 4294967296 * d);
|
|
3595
|
+
}, emscripten_memcpy_big:(a, b, c) => w.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
3596
|
+
var b = w.length;
|
|
3597
|
+
a >>>= 0;
|
|
3598
|
+
if (2147483648 < a) {
|
|
3599
|
+
return !1;
|
|
3600
|
+
}
|
|
3601
|
+
for (var c = 1; 4 >= c; c *= 2) {
|
|
3602
|
+
var d = b * (1 + 0.2 / c);
|
|
3603
|
+
d = Math.min(d, a + 100663296);
|
|
3604
|
+
var e = Math;
|
|
3605
|
+
d = Math.max(a, d);
|
|
3606
|
+
a: {
|
|
3607
|
+
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - va.buffer.byteLength + 65535 >>> 16;
|
|
3608
|
+
try {
|
|
3609
|
+
va.grow(e);
|
|
3610
|
+
Aa();
|
|
3611
|
+
var f = 1;
|
|
3612
|
+
break a;
|
|
3613
|
+
} catch (g) {
|
|
3614
|
+
}
|
|
3615
|
+
f = void 0;
|
|
3616
|
+
}
|
|
3617
|
+
if (f) {
|
|
3618
|
+
return !0;
|
|
3619
|
+
}
|
|
3620
|
+
}
|
|
3621
|
+
return !1;
|
|
3622
|
+
}, emscripten_webgl_get_current_context:function() {
|
|
3623
|
+
return T ? T.handle : 0;
|
|
3624
|
+
}, emscripten_webgl_make_context_current:function(a) {
|
|
3625
|
+
return la(a) ? 0 : -5;
|
|
3626
|
+
}, environ_get:(a, b) => {
|
|
3627
|
+
var c = 0;
|
|
3628
|
+
be().forEach(function(d, e) {
|
|
3629
|
+
var f = b + c;
|
|
3630
|
+
e = B[a + 4 * e >> 2] = f;
|
|
3631
|
+
for (f = 0; f < d.length; ++f) {
|
|
3632
|
+
t[e++ >> 0] = d.charCodeAt(f);
|
|
3633
|
+
}
|
|
3634
|
+
t[e >> 0] = 0;
|
|
3635
|
+
c += d.length + 1;
|
|
3636
|
+
});
|
|
3637
|
+
return 0;
|
|
3638
|
+
}, environ_sizes_get:(a, b) => {
|
|
3639
|
+
var c = be();
|
|
3640
|
+
B[a >> 2] = c.length;
|
|
3641
|
+
var d = 0;
|
|
3642
|
+
c.forEach(function(e) {
|
|
3643
|
+
d += e.length + 1;
|
|
3644
|
+
});
|
|
3645
|
+
B[b >> 2] = d;
|
|
3646
|
+
return 0;
|
|
3647
|
+
}, fd_close:function(a) {
|
|
3648
|
+
try {
|
|
3649
|
+
var b = Hb(a);
|
|
3650
|
+
if (null === b.X) {
|
|
3651
|
+
throw new G(8);
|
|
3652
|
+
}
|
|
3653
|
+
b.Na && (b.Na = null);
|
|
3654
|
+
try {
|
|
3655
|
+
b.m.close && b.m.close(b);
|
|
3656
|
+
} catch (c) {
|
|
3657
|
+
throw c;
|
|
3658
|
+
} finally {
|
|
3659
|
+
tb[b.X] = null;
|
|
3660
|
+
}
|
|
3661
|
+
b.X = null;
|
|
3662
|
+
return 0;
|
|
3663
|
+
} catch (c) {
|
|
3664
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== c.name) {
|
|
3665
|
+
throw c;
|
|
3666
|
+
}
|
|
3667
|
+
return c.W;
|
|
3668
|
+
}
|
|
3669
|
+
}, fd_read:function(a, b, c, d) {
|
|
3670
|
+
try {
|
|
3671
|
+
a: {
|
|
3672
|
+
var e = Hb(a);
|
|
3673
|
+
a = b;
|
|
3674
|
+
for (var f, g = b = 0; g < c; g++) {
|
|
3675
|
+
var k = B[a >> 2], p = B[a + 4 >> 2];
|
|
3676
|
+
a += 8;
|
|
3677
|
+
var n = e, u = k, v = p, y = f, l = t;
|
|
3678
|
+
if (0 > v || 0 > y) {
|
|
3679
|
+
throw new G(28);
|
|
3680
|
+
}
|
|
3681
|
+
if (null === n.X) {
|
|
3682
|
+
throw new G(8);
|
|
3683
|
+
}
|
|
3684
|
+
if (1 === (n.flags & 2097155)) {
|
|
3685
|
+
throw new G(8);
|
|
3686
|
+
}
|
|
3687
|
+
if (16384 === (n.node.mode & 61440)) {
|
|
3688
|
+
throw new G(31);
|
|
3689
|
+
}
|
|
3690
|
+
if (!n.m.read) {
|
|
3691
|
+
throw new G(28);
|
|
3692
|
+
}
|
|
3693
|
+
var r = "undefined" != typeof y;
|
|
3694
|
+
if (!r) {
|
|
3695
|
+
y = n.position;
|
|
3696
|
+
} else if (!n.seekable) {
|
|
3697
|
+
throw new G(70);
|
|
3698
|
+
}
|
|
3699
|
+
var x = n.m.read(n, l, u, v, y);
|
|
3700
|
+
r || (n.position += x);
|
|
3701
|
+
var z = x;
|
|
3702
|
+
if (0 > z) {
|
|
3703
|
+
var H = -1;
|
|
3704
|
+
break a;
|
|
3705
|
+
}
|
|
3706
|
+
b += z;
|
|
3707
|
+
if (z < p) {
|
|
3708
|
+
break;
|
|
3709
|
+
}
|
|
3710
|
+
"undefined" !== typeof f && (f += z);
|
|
3711
|
+
}
|
|
3712
|
+
H = b;
|
|
3713
|
+
}
|
|
3714
|
+
B[d >> 2] = H;
|
|
3715
|
+
return 0;
|
|
3716
|
+
} catch (C) {
|
|
3717
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== C.name) {
|
|
3718
|
+
throw C;
|
|
3719
|
+
}
|
|
3720
|
+
return C.W;
|
|
3721
|
+
}
|
|
3722
|
+
}, fd_seek:function(a, b, c, d, e) {
|
|
3723
|
+
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
3724
|
+
try {
|
|
3725
|
+
if (isNaN(b)) {
|
|
3726
|
+
return 61;
|
|
3727
|
+
}
|
|
3728
|
+
var f = Hb(a);
|
|
3729
|
+
Qb(f, b, d);
|
|
3730
|
+
F = [f.position >>> 0, (E = f.position, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3731
|
+
A[e >> 2] = F[0];
|
|
3732
|
+
A[e + 4 >> 2] = F[1];
|
|
3733
|
+
f.Na && 0 === b && 0 === d && (f.Na = null);
|
|
3734
|
+
return 0;
|
|
3735
|
+
} catch (g) {
|
|
3736
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
|
|
3737
|
+
throw g;
|
|
3738
|
+
}
|
|
3739
|
+
return g.W;
|
|
3740
|
+
}
|
|
3741
|
+
}, fd_write:function(a, b, c, d) {
|
|
3742
|
+
try {
|
|
3743
|
+
a: {
|
|
3744
|
+
var e = Hb(a);
|
|
3745
|
+
a = b;
|
|
3746
|
+
for (var f, g = b = 0; g < c; g++) {
|
|
3747
|
+
var k = B[a >> 2], p = B[a + 4 >> 2];
|
|
3748
|
+
a += 8;
|
|
3749
|
+
var n = e, u = k, v = p, y = f, l = t;
|
|
3750
|
+
if (0 > v || 0 > y) {
|
|
3751
|
+
throw new G(28);
|
|
3752
|
+
}
|
|
3753
|
+
if (null === n.X) {
|
|
3754
|
+
throw new G(8);
|
|
3755
|
+
}
|
|
3756
|
+
if (0 === (n.flags & 2097155)) {
|
|
3757
|
+
throw new G(8);
|
|
3758
|
+
}
|
|
3759
|
+
if (16384 === (n.node.mode & 61440)) {
|
|
3760
|
+
throw new G(31);
|
|
3761
|
+
}
|
|
3762
|
+
if (!n.m.write) {
|
|
3763
|
+
throw new G(28);
|
|
3764
|
+
}
|
|
3765
|
+
n.seekable && n.flags & 1024 && Qb(n, 0, 2);
|
|
3766
|
+
var r = "undefined" != typeof y;
|
|
3767
|
+
if (!r) {
|
|
3768
|
+
y = n.position;
|
|
3769
|
+
} else if (!n.seekable) {
|
|
3770
|
+
throw new G(70);
|
|
3771
|
+
}
|
|
3772
|
+
var x = n.m.write(n, l, u, v, y, void 0);
|
|
3773
|
+
r || (n.position += x);
|
|
3774
|
+
var z = x;
|
|
3775
|
+
if (0 > z) {
|
|
3776
|
+
var H = -1;
|
|
3777
|
+
break a;
|
|
3778
|
+
}
|
|
3779
|
+
b += z;
|
|
3780
|
+
"undefined" !== typeof f && (f += z);
|
|
3781
|
+
}
|
|
3782
|
+
H = b;
|
|
3783
|
+
}
|
|
3784
|
+
B[d >> 2] = H;
|
|
3785
|
+
return 0;
|
|
3786
|
+
} catch (C) {
|
|
3787
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== C.name) {
|
|
3788
|
+
throw C;
|
|
3789
|
+
}
|
|
3790
|
+
return C.W;
|
|
3791
|
+
}
|
|
3792
|
+
}, glBindFramebuffer:Kd, glGetIntegerv:Sd, invoke_ii:le, invoke_iii:me, invoke_iiii:ne, invoke_iiiii:oe, invoke_iiiiii:pe, invoke_iiiiiii:qe, invoke_iiiiiiiiii:re, invoke_v:se, invoke_vi:te, invoke_vii:ue, invoke_viii:ve, invoke_viiii:we, invoke_viiiiii:xe, invoke_viiiiiii:ye, invoke_viiiiiiii:ze, strftime_l:(a, b, c, d) => fe(a, b, c, d)};
|
|
3793
|
+
(function() {
|
|
3794
|
+
var a = {env:Ae, wasi_snapshot_preview1:Ae,};
|
|
3795
|
+
Fa++;
|
|
3796
|
+
Na(a, function(b) {
|
|
3797
|
+
q = b.instance.exports;
|
|
3798
|
+
va = q.memory;
|
|
3799
|
+
Aa();
|
|
3800
|
+
Ba = q.__indirect_function_table;
|
|
3801
|
+
Da.unshift(q.__wasm_call_ctors);
|
|
3802
|
+
Fa--;
|
|
3803
|
+
0 == Fa && (null !== Ga && (clearInterval(Ga), Ga = null), Ha && (b = Ha, Ha = null, b()));
|
|
3804
|
+
}).catch(ba);
|
|
3805
|
+
return {};
|
|
3806
|
+
})();
|
|
3807
|
+
var Td = a => (Td = q.malloc)(a), oc = a => (oc = q.free)(a), Oa = m._ma_device__on_notification_unlocked = a => (Oa = m._ma_device__on_notification_unlocked = q.ma_device__on_notification_unlocked)(a);
|
|
3808
|
+
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = q.ma_malloc_emscripten)(a, b);
|
|
3809
|
+
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = q.ma_free_emscripten)(a, b);
|
|
3810
|
+
var Pa = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Pa = m._ma_device_process_pcm_frames_capture__webaudio = q.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Qa = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Qa = m._ma_device_process_pcm_frames_playback__webaudio = q.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), ke = () => (ke = q.__errno_location)(), nc = a => (nc = q.__getTypeName)(a);
|
|
3811
|
+
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = q._embind_initialize_bindings)();
|
|
3812
|
+
var pb = (a, b) => (pb = q.emscripten_builtin_memalign)(a, b), X = (a, b) => (X = q.setThrew)(a, b), Y = () => (Y = q.stackSave)(), Z = a => (Z = q.stackRestore)(a);
|
|
3813
|
+
m.dynCall_iiiij = (a, b, c, d, e, f) => (m.dynCall_iiiij = q.dynCall_iiiij)(a, b, c, d, e, f);
|
|
3814
|
+
m.dynCall_viiij = (a, b, c, d, e, f) => (m.dynCall_viiij = q.dynCall_viiij)(a, b, c, d, e, f);
|
|
3815
|
+
m.dynCall_iiij = (a, b, c, d, e) => (m.dynCall_iiij = q.dynCall_iiij)(a, b, c, d, e);
|
|
3816
|
+
m.dynCall_viij = (a, b, c, d, e) => (m.dynCall_viij = q.dynCall_viij)(a, b, c, d, e);
|
|
3817
|
+
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = q.dynCall_iiji)(a, b, c, d, e);
|
|
3818
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = q.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3819
|
+
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = q.dynCall_jiji)(a, b, c, d, e);
|
|
3820
|
+
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = q.dynCall_iij)(a, b, c, d);
|
|
3821
|
+
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = q.dynCall_jii)(a, b, c);
|
|
3822
|
+
m.dynCall_viiiiij = (a, b, c, d, e, f, g, k) => (m.dynCall_viiiiij = q.dynCall_viiiiij)(a, b, c, d, e, f, g, k);
|
|
3823
|
+
m.dynCall_viji = (a, b, c, d, e) => (m.dynCall_viji = q.dynCall_viji)(a, b, c, d, e);
|
|
3824
|
+
m.dynCall_ji = (a, b) => (m.dynCall_ji = q.dynCall_ji)(a, b);
|
|
3825
|
+
m.dynCall_vij = (a, b, c, d) => (m.dynCall_vij = q.dynCall_vij)(a, b, c, d);
|
|
3826
|
+
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = q.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3827
|
+
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = q.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3828
|
+
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj = q.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
|
|
3829
|
+
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj = q.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
|
|
3830
|
+
function le(a, b) {
|
|
3831
|
+
var c = Y();
|
|
3832
|
+
try {
|
|
3833
|
+
return Q(a)(b);
|
|
3834
|
+
} catch (d) {
|
|
3835
|
+
Z(c);
|
|
3836
|
+
if (d !== d + 0) {
|
|
3837
|
+
throw d;
|
|
3838
|
+
}
|
|
3839
|
+
X(1, 0);
|
|
3840
|
+
}
|
|
3841
|
+
}
|
|
3842
|
+
function ue(a, b, c) {
|
|
3843
|
+
var d = Y();
|
|
3844
|
+
try {
|
|
3845
|
+
Q(a)(b, c);
|
|
3846
|
+
} catch (e) {
|
|
3847
|
+
Z(d);
|
|
3848
|
+
if (e !== e + 0) {
|
|
3849
|
+
throw e;
|
|
3850
|
+
}
|
|
3851
|
+
X(1, 0);
|
|
3852
|
+
}
|
|
3853
|
+
}
|
|
3854
|
+
function te(a, b) {
|
|
3855
|
+
var c = Y();
|
|
3856
|
+
try {
|
|
3857
|
+
Q(a)(b);
|
|
3858
|
+
} catch (d) {
|
|
3859
|
+
Z(c);
|
|
3860
|
+
if (d !== d + 0) {
|
|
3861
|
+
throw d;
|
|
3862
|
+
}
|
|
3863
|
+
X(1, 0);
|
|
3864
|
+
}
|
|
3865
|
+
}
|
|
3866
|
+
function ne(a, b, c, d) {
|
|
3867
|
+
var e = Y();
|
|
3868
|
+
try {
|
|
3869
|
+
return Q(a)(b, c, d);
|
|
3870
|
+
} catch (f) {
|
|
3871
|
+
Z(e);
|
|
3872
|
+
if (f !== f + 0) {
|
|
3873
|
+
throw f;
|
|
3874
|
+
}
|
|
3875
|
+
X(1, 0);
|
|
3876
|
+
}
|
|
3877
|
+
}
|
|
3878
|
+
function ve(a, b, c, d) {
|
|
3879
|
+
var e = Y();
|
|
3880
|
+
try {
|
|
3881
|
+
Q(a)(b, c, d);
|
|
3882
|
+
} catch (f) {
|
|
3883
|
+
Z(e);
|
|
3884
|
+
if (f !== f + 0) {
|
|
3885
|
+
throw f;
|
|
3886
|
+
}
|
|
3887
|
+
X(1, 0);
|
|
3888
|
+
}
|
|
3889
|
+
}
|
|
3890
|
+
function we(a, b, c, d, e) {
|
|
3891
|
+
var f = Y();
|
|
3892
|
+
try {
|
|
3893
|
+
Q(a)(b, c, d, e);
|
|
3894
|
+
} catch (g) {
|
|
3895
|
+
Z(f);
|
|
3896
|
+
if (g !== g + 0) {
|
|
3897
|
+
throw g;
|
|
3898
|
+
}
|
|
3899
|
+
X(1, 0);
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3902
|
+
function se(a) {
|
|
3903
|
+
var b = Y();
|
|
3904
|
+
try {
|
|
3905
|
+
Q(a)();
|
|
3906
|
+
} catch (c) {
|
|
3907
|
+
Z(b);
|
|
3908
|
+
if (c !== c + 0) {
|
|
3909
|
+
throw c;
|
|
3910
|
+
}
|
|
3911
|
+
X(1, 0);
|
|
3912
|
+
}
|
|
3913
|
+
}
|
|
3914
|
+
function qe(a, b, c, d, e, f, g) {
|
|
3915
|
+
var k = Y();
|
|
3916
|
+
try {
|
|
3917
|
+
return Q(a)(b, c, d, e, f, g);
|
|
3918
|
+
} catch (p) {
|
|
3919
|
+
Z(k);
|
|
3920
|
+
if (p !== p + 0) {
|
|
3921
|
+
throw p;
|
|
3922
|
+
}
|
|
3923
|
+
X(1, 0);
|
|
3924
|
+
}
|
|
3925
|
+
}
|
|
3926
|
+
function me(a, b, c) {
|
|
3927
|
+
var d = Y();
|
|
3928
|
+
try {
|
|
3929
|
+
return Q(a)(b, c);
|
|
3930
|
+
} catch (e) {
|
|
3931
|
+
Z(d);
|
|
3932
|
+
if (e !== e + 0) {
|
|
3933
|
+
throw e;
|
|
3934
|
+
}
|
|
3935
|
+
X(1, 0);
|
|
3936
|
+
}
|
|
3937
|
+
}
|
|
3938
|
+
function ye(a, b, c, d, e, f, g, k) {
|
|
3939
|
+
var p = Y();
|
|
3940
|
+
try {
|
|
3941
|
+
Q(a)(b, c, d, e, f, g, k);
|
|
3942
|
+
} catch (n) {
|
|
3943
|
+
Z(p);
|
|
3944
|
+
if (n !== n + 0) {
|
|
3945
|
+
throw n;
|
|
3946
|
+
}
|
|
3947
|
+
X(1, 0);
|
|
3948
|
+
}
|
|
3949
|
+
}
|
|
3950
|
+
function re(a, b, c, d, e, f, g, k, p, n) {
|
|
3951
|
+
var u = Y();
|
|
3952
|
+
try {
|
|
3953
|
+
return Q(a)(b, c, d, e, f, g, k, p, n);
|
|
3954
|
+
} catch (v) {
|
|
3955
|
+
Z(u);
|
|
3956
|
+
if (v !== v + 0) {
|
|
3957
|
+
throw v;
|
|
3958
|
+
}
|
|
3959
|
+
X(1, 0);
|
|
3960
|
+
}
|
|
3961
|
+
}
|
|
3962
|
+
function oe(a, b, c, d, e) {
|
|
3963
|
+
var f = Y();
|
|
3964
|
+
try {
|
|
3965
|
+
return Q(a)(b, c, d, e);
|
|
3966
|
+
} catch (g) {
|
|
3967
|
+
Z(f);
|
|
3968
|
+
if (g !== g + 0) {
|
|
3969
|
+
throw g;
|
|
3970
|
+
}
|
|
3971
|
+
X(1, 0);
|
|
3972
|
+
}
|
|
3973
|
+
}
|
|
3974
|
+
function ze(a, b, c, d, e, f, g, k, p) {
|
|
3975
|
+
var n = Y();
|
|
3976
|
+
try {
|
|
3977
|
+
Q(a)(b, c, d, e, f, g, k, p);
|
|
3978
|
+
} catch (u) {
|
|
3979
|
+
Z(n);
|
|
3980
|
+
if (u !== u + 0) {
|
|
3981
|
+
throw u;
|
|
3982
|
+
}
|
|
3983
|
+
X(1, 0);
|
|
3984
|
+
}
|
|
3985
|
+
}
|
|
3986
|
+
function pe(a, b, c, d, e, f) {
|
|
3987
|
+
var g = Y();
|
|
3988
|
+
try {
|
|
3989
|
+
return Q(a)(b, c, d, e, f);
|
|
3990
|
+
} catch (k) {
|
|
3991
|
+
Z(g);
|
|
3992
|
+
if (k !== k + 0) {
|
|
3993
|
+
throw k;
|
|
3994
|
+
}
|
|
3995
|
+
X(1, 0);
|
|
3996
|
+
}
|
|
3997
|
+
}
|
|
3998
|
+
function xe(a, b, c, d, e, f, g) {
|
|
3999
|
+
var k = Y();
|
|
4000
|
+
try {
|
|
4001
|
+
Q(a)(b, c, d, e, f, g);
|
|
4002
|
+
} catch (p) {
|
|
4003
|
+
Z(k);
|
|
4004
|
+
if (p !== p + 0) {
|
|
4005
|
+
throw p;
|
|
4006
|
+
}
|
|
4007
|
+
X(1, 0);
|
|
4008
|
+
}
|
|
4009
|
+
}
|
|
4010
|
+
var Be;
|
|
4011
|
+
Ha = function Ce() {
|
|
4012
|
+
Be || De();
|
|
4013
|
+
Be || (Ha = Ce);
|
|
4014
|
+
};
|
|
4015
|
+
function De() {
|
|
4016
|
+
if (!(0 < Fa)) {
|
|
4017
|
+
for (; 0 < Ca.length;) {
|
|
4018
|
+
Ca.shift()(m);
|
|
4019
|
+
}
|
|
4020
|
+
if (!(0 < Fa || Be || (Be = !0, m.calledRun = !0, wa))) {
|
|
4021
|
+
m.noFSInit || Sb || (Sb = !0, Rb(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? Ub("stdin", m.stdin) : Nb("/dev/tty", "/dev/stdin"), m.stdout ? Ub("stdout", null, m.stdout) : Nb("/dev/tty", "/dev/stdout"), m.stderr ? Ub("stderr", null, m.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
|
|
4022
|
+
for (wb = !1; 0 < Da.length;) {
|
|
4023
|
+
Da.shift()(m);
|
|
4024
|
+
}
|
|
4025
|
+
aa(m);
|
|
4026
|
+
if (m.onRuntimeInitialized) {
|
|
4027
|
+
m.onRuntimeInitialized();
|
|
4028
|
+
}
|
|
4029
|
+
for (; 0 < Ea.length;) {
|
|
4030
|
+
Ea.shift()(m);
|
|
4031
|
+
}
|
|
4032
|
+
}
|
|
4033
|
+
}
|
|
4034
|
+
}
|
|
4035
|
+
De();
|
|
4036
|
+
|
|
199
4037
|
|
|
200
4038
|
|
|
201
4039
|
return moduleArg.ready
|
|
@@ -209,7 +4047,7 @@ function Ee(){function a(){if(!Ce&&(Ce=!0,l.calledRun=!0,!xa)){l.noFSInit||Ub||(
|
|
|
209
4047
|
/* 2 */
|
|
210
4048
|
/***/ ((module) => {
|
|
211
4049
|
|
|
212
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.
|
|
4050
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.11.0","description":"Rive\'s webgl based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
213
4051
|
|
|
214
4052
|
/***/ }),
|
|
215
4053
|
/* 3 */
|
|
@@ -1858,21 +5696,24 @@ var Rive = /** @class */ (function () {
|
|
|
1858
5696
|
* Rive class
|
|
1859
5697
|
*/
|
|
1860
5698
|
Rive.prototype.cleanup = function () {
|
|
1861
|
-
var _a
|
|
5699
|
+
var _a;
|
|
1862
5700
|
// Stop the renderer if it hasn't already been stopped.
|
|
1863
5701
|
this.stopRendering();
|
|
1864
5702
|
// Clean up any artboard, animation or state machine instances.
|
|
1865
5703
|
this.cleanupInstances();
|
|
1866
|
-
// Only CanvasRenderer needs a delete for now, not WebGL.. might be a better
|
|
1867
|
-
// way to detect this in the future
|
|
1868
|
-
if ((_a = this.runtime) === null || _a === void 0 ? void 0 : _a.CanvasRenderer) {
|
|
1869
|
-
(_b = this.renderer) === null || _b === void 0 ? void 0 : _b.delete();
|
|
1870
|
-
}
|
|
1871
|
-
this.renderer = null;
|
|
1872
5704
|
// Delete the rive file
|
|
1873
|
-
(
|
|
5705
|
+
(_a = this.file) === null || _a === void 0 ? void 0 : _a.delete();
|
|
1874
5706
|
this.file = null;
|
|
1875
5707
|
};
|
|
5708
|
+
/**
|
|
5709
|
+
* Cleans up the Renderer object. Only call this API if you no longer
|
|
5710
|
+
* need to render Rive content in your session.
|
|
5711
|
+
*/
|
|
5712
|
+
Rive.prototype.deleteRiveRenderer = function () {
|
|
5713
|
+
var _a;
|
|
5714
|
+
(_a = this.renderer) === null || _a === void 0 ? void 0 : _a.delete();
|
|
5715
|
+
this.renderer = null;
|
|
5716
|
+
};
|
|
1876
5717
|
/**
|
|
1877
5718
|
* Cleans up any Wasm-generated objects that need to be manually destroyed:
|
|
1878
5719
|
* artboard instances, animation instances, state machine instances.
|