@rive-app/webgl2-advanced 2.37.8 → 2.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +24 -0
- package/webgl2_advanced.mjs +312 -309
package/webgl2_advanced.mjs
CHANGED
|
@@ -15,9 +15,9 @@ function fa() {
|
|
|
15
15
|
const k = d;
|
|
16
16
|
c = b = 0;
|
|
17
17
|
d = new Map();
|
|
18
|
-
k.forEach(
|
|
18
|
+
k.forEach(n => {
|
|
19
19
|
try {
|
|
20
|
-
|
|
20
|
+
n(g);
|
|
21
21
|
} catch (m) {
|
|
22
22
|
console.error(m);
|
|
23
23
|
}
|
|
@@ -42,10 +42,10 @@ function fa() {
|
|
|
42
42
|
f.innerHTML = "RIVE FPS " + k.toFixed(1);
|
|
43
43
|
}, document.body.appendChild(f));
|
|
44
44
|
e = new function() {
|
|
45
|
-
let k = 0,
|
|
45
|
+
let k = 0, n = 0;
|
|
46
46
|
this.Nb = function() {
|
|
47
47
|
var m = performance.now();
|
|
48
|
-
|
|
48
|
+
n ? (++k, m -= n, 1000 < m && (g(1000 * k / m), k = n = 0)) : (n = m, k = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
@@ -106,11 +106,11 @@ l.onRuntimeInitialized = function() {
|
|
|
106
106
|
if ("" === f) {
|
|
107
107
|
return !1;
|
|
108
108
|
}
|
|
109
|
-
(function(k,
|
|
109
|
+
(function(k, n) {
|
|
110
110
|
var m = new XMLHttpRequest();
|
|
111
111
|
m.responseType = "arraybuffer";
|
|
112
112
|
m.onreadystatechange = function() {
|
|
113
|
-
4 == m.readyState && 200 == m.status &&
|
|
113
|
+
4 == m.readyState && 200 == m.status && n(m);
|
|
114
114
|
};
|
|
115
115
|
m.open("GET", k, !0);
|
|
116
116
|
m.send(null);
|
|
@@ -133,8 +133,8 @@ l.onRuntimeInitialized = function() {
|
|
|
133
133
|
return !1;
|
|
134
134
|
},});
|
|
135
135
|
let e = l.computeAlignment;
|
|
136
|
-
l.computeAlignment = function(f, g, k,
|
|
137
|
-
return e.call(this, f, g, k,
|
|
136
|
+
l.computeAlignment = function(f, g, k, n, m = 1.0) {
|
|
137
|
+
return e.call(this, f, g, k, n, m);
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
140
|
const ja = l.onRuntimeInitialized;
|
|
@@ -144,18 +144,18 @@ l.onRuntimeInitialized = function() {
|
|
|
144
144
|
this.Ab = r.getContext("2d");
|
|
145
145
|
this.Eb = d;
|
|
146
146
|
this.S = [];
|
|
147
|
-
this.
|
|
147
|
+
this.ka = 0;
|
|
148
148
|
this.clear = function() {
|
|
149
|
-
console.assert(0 == this.
|
|
149
|
+
console.assert(0 == this.ka);
|
|
150
150
|
this.S = [];
|
|
151
151
|
e.delete(this);
|
|
152
152
|
};
|
|
153
153
|
this.save = function() {
|
|
154
|
-
++this.
|
|
154
|
+
++this.ka;
|
|
155
155
|
this.S.push(d.save.bind(d));
|
|
156
156
|
};
|
|
157
157
|
this.restore = function() {
|
|
158
|
-
0 < this.
|
|
158
|
+
0 < this.ka && (this.S.push(d.restore.bind(d)), --this.ka);
|
|
159
159
|
};
|
|
160
160
|
this.transform = function(u) {
|
|
161
161
|
this.S.push(d.transform.bind(d, u));
|
|
@@ -164,7 +164,7 @@ l.onRuntimeInitialized = function() {
|
|
|
164
164
|
this.S.push(d.align.bind(d, u, z, A, C, H));
|
|
165
165
|
};
|
|
166
166
|
this.flush = function() {
|
|
167
|
-
console.assert(0 == this.
|
|
167
|
+
console.assert(0 == this.ka);
|
|
168
168
|
e.add(this);
|
|
169
169
|
d.Ya || c();
|
|
170
170
|
};
|
|
@@ -180,19 +180,20 @@ l.onRuntimeInitialized = function() {
|
|
|
180
180
|
z = ka(u, z);
|
|
181
181
|
la(z);
|
|
182
182
|
const A = f(r.width, r.height);
|
|
183
|
-
A.
|
|
183
|
+
A.ja = z;
|
|
184
184
|
A.G = r;
|
|
185
|
-
A.
|
|
185
|
+
A.Na = r.width;
|
|
186
186
|
A.Za = r.height;
|
|
187
187
|
A.T = u;
|
|
188
188
|
var C = A.delete;
|
|
189
189
|
A.delete = function() {
|
|
190
|
+
this.ja && la(this.ja);
|
|
190
191
|
C.call(this);
|
|
191
|
-
var H = this.
|
|
192
|
+
var H = this.ja;
|
|
192
193
|
q === w[H] && (q = null);
|
|
193
194
|
"object" == typeof JSEvents && JSEvents.Qc(w[H].F.canvas);
|
|
194
195
|
w[H] && w[H].F.canvas && (w[H].F.canvas.zb = void 0);
|
|
195
|
-
this.
|
|
196
|
+
this.ja = this.G = this.Na = this.T = w[H] = null;
|
|
196
197
|
};
|
|
197
198
|
return A;
|
|
198
199
|
}
|
|
@@ -200,7 +201,7 @@ l.onRuntimeInitialized = function() {
|
|
|
200
201
|
if (d) {
|
|
201
202
|
var r = d.Db, u = 0, z = 0, A = 0, C = Array(e.size), H = 0;
|
|
202
203
|
for (var J of e) {
|
|
203
|
-
J.ea = Math.min(J.G.width, r), J.da = Math.min(J.G.height, r), J.
|
|
204
|
+
J.ea = Math.min(J.G.width, r), J.da = Math.min(J.G.height, r), J.La = J.da * J.ea, u = Math.max(u, J.ea), z = Math.max(z, J.da), A += J.La, C[H++] = J;
|
|
204
205
|
}
|
|
205
206
|
e.clear();
|
|
206
207
|
if (!(0 >= A)) {
|
|
@@ -210,7 +211,7 @@ l.onRuntimeInitialized = function() {
|
|
|
210
211
|
}
|
|
211
212
|
u = Math.min(u, r);
|
|
212
213
|
u = Math.min(z, r);
|
|
213
|
-
C.sort((Z, ob) => ob.
|
|
214
|
+
C.sort((Z, ob) => ob.La - Z.La);
|
|
214
215
|
A = new l.DynamicRectanizer(r);
|
|
215
216
|
for (J = 0; J < C.length;) {
|
|
216
217
|
A.reset(u, z);
|
|
@@ -220,10 +221,10 @@ l.onRuntimeInitialized = function() {
|
|
|
220
221
|
console.assert(H > J);
|
|
221
222
|
break;
|
|
222
223
|
}
|
|
223
|
-
K.
|
|
224
|
-
K.
|
|
224
|
+
K.qa = I & 65535;
|
|
225
|
+
K.ra = I >> 16;
|
|
225
226
|
}
|
|
226
|
-
K =
|
|
227
|
+
K = n.push(A.drawWidth());
|
|
227
228
|
I = m.push(A.drawHeight());
|
|
228
229
|
console.assert(K >= A.drawWidth());
|
|
229
230
|
console.assert(I >= A.drawHeight());
|
|
@@ -234,13 +235,13 @@ l.onRuntimeInitialized = function() {
|
|
|
234
235
|
d.clear();
|
|
235
236
|
for (K = J; K < H; ++K) {
|
|
236
237
|
I = C[K];
|
|
237
|
-
d.saveClipRect(I.
|
|
238
|
+
d.saveClipRect(I.qa, I.ra, I.qa + I.ea, I.ra + I.da);
|
|
238
239
|
let Z = new l.Mat2D();
|
|
239
240
|
Z.xx = I.ea / I.G.width;
|
|
240
241
|
Z.yy = I.da / I.G.height;
|
|
241
242
|
Z.xy = Z.yx = 0;
|
|
242
|
-
Z.tx = I.
|
|
243
|
-
Z.ty = I.
|
|
243
|
+
Z.tx = I.qa;
|
|
244
|
+
Z.ty = I.ra;
|
|
244
245
|
d.transform(Z);
|
|
245
246
|
for (const ob of I.S) {
|
|
246
247
|
ob();
|
|
@@ -249,7 +250,7 @@ l.onRuntimeInitialized = function() {
|
|
|
249
250
|
I.S = [];
|
|
250
251
|
}
|
|
251
252
|
for (d.flush(); J < H; ++J) {
|
|
252
|
-
K = C[J], I = K.Ab, I.globalCompositeOperation = "copy", I.drawImage(d.G, K.
|
|
253
|
+
K = C[J], I = K.Ab, I.globalCompositeOperation = "copy", I.drawImage(d.G, K.qa, K.ra, K.ea, K.da, 0, 0, K.G.width, K.G.height);
|
|
253
254
|
}
|
|
254
255
|
J = H;
|
|
255
256
|
}
|
|
@@ -271,9 +272,9 @@ l.onRuntimeInitialized = function() {
|
|
|
271
272
|
}
|
|
272
273
|
d.Ya = !!d.T.getExtension("WEBGL_shader_pixel_local_storage");
|
|
273
274
|
d.Db = Math.min(d.T.getParameter(d.T.MAX_RENDERBUFFER_SIZE), d.T.getParameter(d.T.MAX_TEXTURE_SIZE));
|
|
274
|
-
d.
|
|
275
|
+
d.Ma = !d.Ya;
|
|
275
276
|
if (A = d.T.getExtension("WEBGL_debug_renderer_info")) {
|
|
276
|
-
C = d.T.getParameter(A.UNMASKED_RENDERER_WEBGL), d.T.getParameter(A.UNMASKED_VENDOR_WEBGL).includes("Google") && C.includes("ANGLE Metal Renderer") && (d.
|
|
277
|
+
C = d.T.getParameter(A.UNMASKED_RENDERER_WEBGL), d.T.getParameter(A.UNMASKED_VENDOR_WEBGL).includes("Google") && C.includes("ANGLE Metal Renderer") && (d.Ma = !1);
|
|
277
278
|
}
|
|
278
279
|
return d;
|
|
279
280
|
}
|
|
@@ -281,9 +282,9 @@ l.onRuntimeInitialized = function() {
|
|
|
281
282
|
if (!d) {
|
|
282
283
|
throw "Unable to create WebGL context, your environment may not support WebGL. Try out @rive-app/canvas as an alternative.";
|
|
283
284
|
}
|
|
284
|
-
d.
|
|
285
|
+
d.Ma || (d = z(!1));
|
|
285
286
|
}
|
|
286
|
-
return u ? new a(r) : b(r, d.
|
|
287
|
+
return u ? new a(r) : b(r, d.Ma);
|
|
287
288
|
};
|
|
288
289
|
const g = l.Artboard.prototype["delete"];
|
|
289
290
|
l.Artboard.prototype["delete"] = function() {
|
|
@@ -296,7 +297,7 @@ l.onRuntimeInitialized = function() {
|
|
|
296
297
|
this.Fb || k.call(this, r.Eb);
|
|
297
298
|
}) : k.call(this, r);
|
|
298
299
|
};
|
|
299
|
-
const
|
|
300
|
+
const n = new ha(), m = new ha(), t = new fa();
|
|
300
301
|
l.requestAnimationFrame = t.requestAnimationFrame.bind(t);
|
|
301
302
|
l.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
|
|
302
303
|
l.enableFPSCounter = t.Lb.bind(t);
|
|
@@ -311,10 +312,10 @@ l.onRuntimeInitialized = function() {
|
|
|
311
312
|
};
|
|
312
313
|
const x = l.WebGL2Renderer.prototype.clear;
|
|
313
314
|
l.WebGL2Renderer.prototype.clear = function() {
|
|
314
|
-
la(this.
|
|
315
|
+
la(this.ja);
|
|
315
316
|
const r = this.G;
|
|
316
|
-
if (this.
|
|
317
|
-
this.resize(r.width, r.height), this.
|
|
317
|
+
if (this.Na != r.width || this.Za != r.height) {
|
|
318
|
+
this.resize(r.width, r.height), this.Na = r.width, this.Za = r.height;
|
|
318
319
|
}
|
|
319
320
|
x.call(this);
|
|
320
321
|
};
|
|
@@ -322,9 +323,9 @@ l.onRuntimeInitialized = function() {
|
|
|
322
323
|
r = l.decodeWebGL2Image(r);
|
|
323
324
|
u(r);
|
|
324
325
|
};
|
|
325
|
-
let
|
|
326
|
+
let p = l.Renderer.prototype.align;
|
|
326
327
|
l.Renderer.prototype.align = function(r, u, z, A, C = 1.0) {
|
|
327
|
-
|
|
328
|
+
p.call(this, r, u, z, A, C);
|
|
328
329
|
};
|
|
329
330
|
};
|
|
330
331
|
var ma = Object.assign({}, l), na = "./this.program", y = "", oa, pa;
|
|
@@ -418,14 +419,14 @@ function Na(a, b) {
|
|
|
418
419
|
return Ma(c, a, b);
|
|
419
420
|
}));
|
|
420
421
|
}
|
|
421
|
-
var Oa, Pa, Ta = {
|
|
422
|
+
var Oa, Pa, Ta = {570840:(a, b, c, d, e) => {
|
|
422
423
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
423
424
|
return 0;
|
|
424
425
|
}
|
|
425
426
|
if ("undefined" === typeof window.h) {
|
|
426
|
-
window.h = {
|
|
427
|
+
window.h = {Ga:0};
|
|
427
428
|
window.h.I = {};
|
|
428
|
-
window.h.I.
|
|
429
|
+
window.h.I.Da = a;
|
|
429
430
|
window.h.I.capture = b;
|
|
430
431
|
window.h.I.Pa = c;
|
|
431
432
|
window.h.ha = {};
|
|
@@ -458,7 +459,7 @@ var Oa, Pa, Ta = {569016:(a, b, c, d, e) => {
|
|
|
458
459
|
}
|
|
459
460
|
}
|
|
460
461
|
};
|
|
461
|
-
f.
|
|
462
|
+
f.ua = function(g) {
|
|
462
463
|
return f.C[g];
|
|
463
464
|
};
|
|
464
465
|
f.Xa = ["touchend", "click"];
|
|
@@ -467,25 +468,25 @@ var Oa, Pa, Ta = {569016:(a, b, c, d, e) => {
|
|
|
467
468
|
var k = f.C[g];
|
|
468
469
|
null != k && null != k.K && k.state === f.ha.ub && k.K.resume().then(() => {
|
|
469
470
|
Qa(k.nb);
|
|
470
|
-
},
|
|
471
|
-
console.error("Failed to resume audiocontext",
|
|
471
|
+
}, n => {
|
|
472
|
+
console.error("Failed to resume audiocontext", n);
|
|
472
473
|
});
|
|
473
474
|
}
|
|
474
|
-
f.Xa.map(function(
|
|
475
|
-
document.removeEventListener(
|
|
475
|
+
f.Xa.map(function(n) {
|
|
476
|
+
document.removeEventListener(n, f.unlock, !0);
|
|
476
477
|
});
|
|
477
478
|
};
|
|
478
479
|
f.Xa.map(function(g) {
|
|
479
480
|
document.addEventListener(g, f.unlock, !0);
|
|
480
481
|
});
|
|
481
482
|
}
|
|
482
|
-
window.h.
|
|
483
|
+
window.h.Ga += 1;
|
|
483
484
|
return 1;
|
|
484
|
-
},
|
|
485
|
+
}, 573018:() => {
|
|
485
486
|
"undefined" !== typeof window.h && (window.h.Xa.map(function(a) {
|
|
486
487
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
487
|
-
}), --window.h.
|
|
488
|
-
},
|
|
488
|
+
}), --window.h.Ga, 0 === window.h.Ga && delete window.h);
|
|
489
|
+
}, 573322:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 573426:() => {
|
|
489
490
|
try {
|
|
490
491
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
491
492
|
a.close();
|
|
@@ -493,68 +494,68 @@ var Oa, Pa, Ta = {569016:(a, b, c, d, e) => {
|
|
|
493
494
|
} catch (c) {
|
|
494
495
|
return 0;
|
|
495
496
|
}
|
|
496
|
-
},
|
|
497
|
+
}, 573597:(a, b, c, d, e, f) => {
|
|
497
498
|
if ("undefined" === typeof window.h) {
|
|
498
499
|
return -1;
|
|
499
500
|
}
|
|
500
501
|
var g = {}, k = {};
|
|
501
|
-
a == window.h.I.
|
|
502
|
+
a == window.h.I.Da && 0 != c && (k.sampleRate = c);
|
|
502
503
|
g.K = new (window.AudioContext || window.webkitAudioContext)(k);
|
|
503
504
|
g.K.suspend();
|
|
504
505
|
g.state = window.h.ha.stopped;
|
|
505
506
|
c = 0;
|
|
506
|
-
a != window.h.I.
|
|
507
|
+
a != window.h.I.Da && (c = b);
|
|
507
508
|
g.Y = g.K.createScriptProcessor(d, c, b);
|
|
508
|
-
g.Y.onaudioprocess = function(
|
|
509
|
-
if (null == g.
|
|
510
|
-
g.
|
|
509
|
+
g.Y.onaudioprocess = function(n) {
|
|
510
|
+
if (null == g.va || 0 == g.va.length) {
|
|
511
|
+
g.va = new Float32Array(xa.buffer, e, d * b);
|
|
511
512
|
}
|
|
512
513
|
if (a == window.h.I.capture || a == window.h.I.Pa) {
|
|
513
514
|
for (var m = 0; m < b; m += 1) {
|
|
514
|
-
for (var t =
|
|
515
|
+
for (var t = n.inputBuffer.getChannelData(m), v = g.va, x = 0; x < d; x += 1) {
|
|
515
516
|
v[x * b + m] = t[x];
|
|
516
517
|
}
|
|
517
518
|
}
|
|
518
519
|
Ra(f, d, e);
|
|
519
520
|
}
|
|
520
|
-
if (a == window.h.I.
|
|
521
|
-
for (Sa(f, d, e), m = 0; m <
|
|
522
|
-
for (t =
|
|
521
|
+
if (a == window.h.I.Da || a == window.h.I.Pa) {
|
|
522
|
+
for (Sa(f, d, e), m = 0; m < n.outputBuffer.numberOfChannels; ++m) {
|
|
523
|
+
for (t = n.outputBuffer.getChannelData(m), v = g.va, x = 0; x < d; x += 1) {
|
|
523
524
|
t[x] = v[x * b + m];
|
|
524
525
|
}
|
|
525
526
|
}
|
|
526
527
|
} else {
|
|
527
|
-
for (m = 0; m <
|
|
528
|
-
|
|
528
|
+
for (m = 0; m < n.outputBuffer.numberOfChannels; ++m) {
|
|
529
|
+
n.outputBuffer.getChannelData(m).fill(0.0);
|
|
529
530
|
}
|
|
530
531
|
}
|
|
531
532
|
};
|
|
532
|
-
a != window.h.I.capture && a != window.h.I.Pa || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(
|
|
533
|
-
g.
|
|
534
|
-
g.
|
|
533
|
+
a != window.h.I.capture && a != window.h.I.Pa || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(n) {
|
|
534
|
+
g.Ha = g.K.createMediaStreamSource(n);
|
|
535
|
+
g.Ha.connect(g.Y);
|
|
535
536
|
g.Y.connect(g.K.destination);
|
|
536
|
-
}).catch(function(
|
|
537
|
-
console.log("Failed to get user media: " +
|
|
537
|
+
}).catch(function(n) {
|
|
538
|
+
console.log("Failed to get user media: " + n);
|
|
538
539
|
});
|
|
539
|
-
a == window.h.I.
|
|
540
|
+
a == window.h.I.Da && g.Y.connect(g.K.destination);
|
|
540
541
|
g.nb = f;
|
|
541
542
|
return window.h.mc(g);
|
|
542
|
-
},
|
|
543
|
-
a = window.h.
|
|
543
|
+
}, 576474:a => window.h.ua(a).K.sampleRate, 576547:a => {
|
|
544
|
+
a = window.h.ua(a);
|
|
544
545
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
545
546
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
546
|
-
void 0 !== a.
|
|
547
|
+
void 0 !== a.Ha && (a.Ha.disconnect(), a.Ha = void 0);
|
|
547
548
|
a.K.close();
|
|
548
549
|
a.K = void 0;
|
|
549
550
|
a.nb = void 0;
|
|
550
|
-
},
|
|
551
|
+
}, 576947:a => {
|
|
551
552
|
window.h.yb(a);
|
|
552
|
-
},
|
|
553
|
-
a = window.h.
|
|
553
|
+
}, 576997:a => {
|
|
554
|
+
a = window.h.ua(a);
|
|
554
555
|
a.K.resume();
|
|
555
556
|
a.state = window.h.ha.ub;
|
|
556
|
-
},
|
|
557
|
-
a = window.h.
|
|
557
|
+
}, 577136:a => {
|
|
558
|
+
a = window.h.ua(a);
|
|
558
559
|
a.K.suspend();
|
|
559
560
|
a.state = window.h.ha.stopped;
|
|
560
561
|
}}, Ua = a => {
|
|
@@ -705,16 +706,16 @@ function jb(a, b) {
|
|
|
705
706
|
kb(a, lb);
|
|
706
707
|
}
|
|
707
708
|
var lb = {open(a) {
|
|
708
|
-
var b = ib[a.node.
|
|
709
|
+
var b = ib[a.node.Fa];
|
|
709
710
|
if (!b) {
|
|
710
711
|
throw new M(43);
|
|
711
712
|
}
|
|
712
713
|
a.s = b;
|
|
713
714
|
a.seekable = !1;
|
|
714
715
|
}, close(a) {
|
|
715
|
-
a.s.V.
|
|
716
|
-
},
|
|
717
|
-
a.s.V.
|
|
716
|
+
a.s.V.ta(a.s);
|
|
717
|
+
}, ta(a) {
|
|
718
|
+
a.s.V.ta(a.s);
|
|
718
719
|
}, read(a, b, c, d) {
|
|
719
720
|
if (!a.s || !a.s.V.hb) {
|
|
720
721
|
throw new M(60);
|
|
@@ -765,7 +766,7 @@ var lb = {open(a) {
|
|
|
765
766
|
return a;
|
|
766
767
|
}, Sa(a, b) {
|
|
767
768
|
null === b || 10 === b ? (ra(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
768
|
-
},
|
|
769
|
+
}, ta(a) {
|
|
769
770
|
a.H && 0 < a.H.length && (ra(L(a.H, 0)), a.H = []);
|
|
770
771
|
}, Wb() {
|
|
771
772
|
return {xc:25856, zc:5, wc:191, yc:35387, vc:[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,]};
|
|
@@ -775,7 +776,7 @@ var lb = {open(a) {
|
|
|
775
776
|
return [24, 80];
|
|
776
777
|
},}, nb = {Sa(a, b) {
|
|
777
778
|
null === b || 10 === b ? (sa(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
778
|
-
},
|
|
779
|
+
}, ta(a) {
|
|
779
780
|
a.H && 0 < a.H.length && (sa(L(a.H, 0)), a.H = []);
|
|
780
781
|
},};
|
|
781
782
|
function pb(a, b) {
|
|
@@ -788,7 +789,7 @@ var N = {N:null, U() {
|
|
|
788
789
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
789
790
|
throw new M(63);
|
|
790
791
|
}
|
|
791
|
-
N.N || (N.N = {dir:{node:{X:N.j.X, P:N.j.P,
|
|
792
|
+
N.N || (N.N = {dir:{node:{X:N.j.X, P:N.j.P, la:N.j.la, Ba:N.j.Ba, sb:N.j.sb, xb:N.j.xb, tb:N.j.tb, rb:N.j.rb, Ia:N.j.Ia}, stream:{aa:N.m.aa}}, file:{node:{X:N.j.X, P:N.j.P}, stream:{aa:N.m.aa, read:N.m.read, write:N.m.write, $a:N.m.$a, jb:N.m.jb, lb:N.m.lb}}, link:{node:{X:N.j.X, P:N.j.P, ma:N.j.ma}, stream:{}}, ab:{node:{X:N.j.X, P:N.j.P}, stream:qb}});
|
|
792
793
|
c = rb(a, b, c, d);
|
|
793
794
|
16384 === (c.mode & 61440) ? (c.j = N.N.dir.node, c.m = N.N.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = N.N.file.node, c.m = N.N.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = N.N.link.node, c.m = N.N.link.stream) : 8192 === (c.mode & 61440) && (c.j = N.N.ab.node, c.m = N.N.ab.stream);
|
|
794
795
|
c.timestamp = Date.now();
|
|
@@ -804,7 +805,7 @@ var N = {N:null, U() {
|
|
|
804
805
|
b.Nc = 1;
|
|
805
806
|
b.uid = 0;
|
|
806
807
|
b.Gc = 0;
|
|
807
|
-
b.
|
|
808
|
+
b.Fa = a.Fa;
|
|
808
809
|
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;
|
|
809
810
|
b.tc = new Date(a.timestamp);
|
|
810
811
|
b.Mc = new Date(a.timestamp);
|
|
@@ -825,9 +826,9 @@ var N = {N:null, U() {
|
|
|
825
826
|
a.v = b;
|
|
826
827
|
}
|
|
827
828
|
}
|
|
828
|
-
},
|
|
829
|
+
}, la() {
|
|
829
830
|
throw sb[44];
|
|
830
|
-
},
|
|
831
|
+
}, Ba(a, b, c, d) {
|
|
831
832
|
return N.createNode(a, b, c, d);
|
|
832
833
|
}, sb(a, b, c) {
|
|
833
834
|
if (16384 === (a.mode & 61440)) {
|
|
@@ -862,11 +863,11 @@ var N = {N:null, U() {
|
|
|
862
863
|
b.push(c);
|
|
863
864
|
}
|
|
864
865
|
return b;
|
|
865
|
-
},
|
|
866
|
+
}, Ia(a, b, c) {
|
|
866
867
|
a = N.createNode(a, b, 41471, 0);
|
|
867
868
|
a.link = c;
|
|
868
869
|
return a;
|
|
869
|
-
},
|
|
870
|
+
}, ma(a) {
|
|
870
871
|
if (40960 !== (a.mode & 61440)) {
|
|
871
872
|
throw new M(28);
|
|
872
873
|
}
|
|
@@ -977,13 +978,13 @@ var N = {N:null, U() {
|
|
|
977
978
|
a ||= this;
|
|
978
979
|
this.parent = a;
|
|
979
980
|
this.U = a.U;
|
|
980
|
-
this.
|
|
981
|
+
this.Ca = null;
|
|
981
982
|
this.id = yb++;
|
|
982
983
|
this.name = b;
|
|
983
984
|
this.mode = c;
|
|
984
985
|
this.j = {};
|
|
985
986
|
this.m = {};
|
|
986
|
-
this.
|
|
987
|
+
this.Fa = d;
|
|
987
988
|
}
|
|
988
989
|
get read() {
|
|
989
990
|
return 365 === (this.mode & 365);
|
|
@@ -1015,7 +1016,7 @@ function Db(a, b = {}) {
|
|
|
1015
1016
|
}
|
|
1016
1017
|
c = tb(c, a[e]);
|
|
1017
1018
|
d = Ya(d + "/" + a[e]);
|
|
1018
|
-
c.
|
|
1019
|
+
c.Ca && (!f || f && b.gb) && (c = c.Ca.root);
|
|
1019
1020
|
if (!f || b.fb) {
|
|
1020
1021
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1021
1022
|
if (c = Eb(d), d = cb(Za(d), c), c = Db(d, {Ua:b.Ua + 1}).node, 40 < f++) {
|
|
@@ -1042,7 +1043,7 @@ function Gb(a, b) {
|
|
|
1042
1043
|
return (a + c >>> 0) % zb.length;
|
|
1043
1044
|
}
|
|
1044
1045
|
function tb(a, b) {
|
|
1045
|
-
var c = 16384 === (a.mode & 61440) ? (c = Hb(a, "x")) ? c : a.j.
|
|
1046
|
+
var c = 16384 === (a.mode & 61440) ? (c = Hb(a, "x")) ? c : a.j.la ? 0 : 2 : 54;
|
|
1046
1047
|
if (c) {
|
|
1047
1048
|
throw new M(c);
|
|
1048
1049
|
}
|
|
@@ -1052,7 +1053,7 @@ function tb(a, b) {
|
|
|
1052
1053
|
return c;
|
|
1053
1054
|
}
|
|
1054
1055
|
}
|
|
1055
|
-
return a.j.
|
|
1056
|
+
return a.j.la(a, b);
|
|
1056
1057
|
}
|
|
1057
1058
|
function rb(a, b, c, d) {
|
|
1058
1059
|
a = new Cb(a, b, c, d);
|
|
@@ -1113,7 +1114,7 @@ function Mb(a, b = -1) {
|
|
|
1113
1114
|
return a;
|
|
1114
1115
|
}
|
|
1115
1116
|
var qb = {open(a) {
|
|
1116
|
-
a.m = wb[a.node.
|
|
1117
|
+
a.m = wb[a.node.Fa].m;
|
|
1117
1118
|
a.m.open?.(a);
|
|
1118
1119
|
}, aa() {
|
|
1119
1120
|
throw new M(70);
|
|
@@ -1130,7 +1131,7 @@ function Nb(a, b) {
|
|
|
1130
1131
|
var d = Db(b, {gb:!1});
|
|
1131
1132
|
b = d.path;
|
|
1132
1133
|
d = d.node;
|
|
1133
|
-
if (d.
|
|
1134
|
+
if (d.Ca) {
|
|
1134
1135
|
throw new M(10);
|
|
1135
1136
|
}
|
|
1136
1137
|
if (16384 !== (d.mode & 61440)) {
|
|
@@ -1141,7 +1142,7 @@ function Nb(a, b) {
|
|
|
1141
1142
|
a = a.U(b);
|
|
1142
1143
|
a.U = b;
|
|
1143
1144
|
b.root = a;
|
|
1144
|
-
c ? vb = a : d && (d.
|
|
1145
|
+
c ? vb = a : d && (d.Ca = b, d.U && d.U.Zb.push(b));
|
|
1145
1146
|
}
|
|
1146
1147
|
function Ob(a, b, c) {
|
|
1147
1148
|
var d = Db(a, {parent:!0}).node;
|
|
@@ -1153,10 +1154,10 @@ function Ob(a, b, c) {
|
|
|
1153
1154
|
if (e) {
|
|
1154
1155
|
throw new M(e);
|
|
1155
1156
|
}
|
|
1156
|
-
if (!d.j.
|
|
1157
|
+
if (!d.j.Ba) {
|
|
1157
1158
|
throw new M(63);
|
|
1158
1159
|
}
|
|
1159
|
-
return d.j.
|
|
1160
|
+
return d.j.Ba(d, a, b, c);
|
|
1160
1161
|
}
|
|
1161
1162
|
function Pb(a) {
|
|
1162
1163
|
return Ob(a, 16895, 0);
|
|
@@ -1178,20 +1179,20 @@ function Rb(a, b) {
|
|
|
1178
1179
|
if (d) {
|
|
1179
1180
|
throw new M(d);
|
|
1180
1181
|
}
|
|
1181
|
-
if (!c.j.
|
|
1182
|
+
if (!c.j.Ia) {
|
|
1182
1183
|
throw new M(63);
|
|
1183
1184
|
}
|
|
1184
|
-
c.j.
|
|
1185
|
+
c.j.Ia(c, b, a);
|
|
1185
1186
|
}
|
|
1186
1187
|
function Eb(a) {
|
|
1187
1188
|
a = Db(a).node;
|
|
1188
1189
|
if (!a) {
|
|
1189
1190
|
throw new M(44);
|
|
1190
1191
|
}
|
|
1191
|
-
if (!a.j.
|
|
1192
|
+
if (!a.j.ma) {
|
|
1192
1193
|
throw new M(28);
|
|
1193
1194
|
}
|
|
1194
|
-
return cb(Fb(a.parent), a.j.
|
|
1195
|
+
return cb(Fb(a.parent), a.j.ma(a));
|
|
1195
1196
|
}
|
|
1196
1197
|
function Sb(a, b, c) {
|
|
1197
1198
|
if ("" === a) {
|
|
@@ -1280,8 +1281,8 @@ function Wb(a, b, c) {
|
|
|
1280
1281
|
f.seekable = !1;
|
|
1281
1282
|
}, close() {
|
|
1282
1283
|
c?.buffer?.length && c(10);
|
|
1283
|
-
}, read(f, g, k,
|
|
1284
|
-
for (var m = 0, t = 0; t <
|
|
1284
|
+
}, read(f, g, k, n) {
|
|
1285
|
+
for (var m = 0, t = 0; t < n; t++) {
|
|
1285
1286
|
try {
|
|
1286
1287
|
var v = b();
|
|
1287
1288
|
} catch (x) {
|
|
@@ -1298,15 +1299,15 @@ function Wb(a, b, c) {
|
|
|
1298
1299
|
}
|
|
1299
1300
|
m && (f.node.timestamp = Date.now());
|
|
1300
1301
|
return m;
|
|
1301
|
-
}, write(f, g, k,
|
|
1302
|
-
for (var m = 0; m <
|
|
1302
|
+
}, write(f, g, k, n) {
|
|
1303
|
+
for (var m = 0; m < n; m++) {
|
|
1303
1304
|
try {
|
|
1304
1305
|
c(g[k + m]);
|
|
1305
1306
|
} catch (t) {
|
|
1306
1307
|
throw new M(29);
|
|
1307
1308
|
}
|
|
1308
1309
|
}
|
|
1309
|
-
|
|
1310
|
+
n && (f.node.timestamp = Date.now());
|
|
1310
1311
|
return m;
|
|
1311
1312
|
}});
|
|
1312
1313
|
Qb(a, d, e);
|
|
@@ -1361,7 +1362,7 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
|
|
|
1361
1362
|
throw new P("ptr should not be undefined");
|
|
1362
1363
|
}
|
|
1363
1364
|
for (; a.B;) {
|
|
1364
|
-
b = a.
|
|
1365
|
+
b = a.oa(b), a = a.B;
|
|
1365
1366
|
}
|
|
1366
1367
|
return b;
|
|
1367
1368
|
}, jc = {}, mc = a => {
|
|
@@ -1430,17 +1431,17 @@ var zc = {}, Ac = {}, T = (a, b, c) => {
|
|
|
1430
1431
|
if (k.length !== a.length) {
|
|
1431
1432
|
throw new tc("Mismatched type converter count");
|
|
1432
1433
|
}
|
|
1433
|
-
for (var
|
|
1434
|
-
S(a[
|
|
1434
|
+
for (var n = 0; n < a.length; ++n) {
|
|
1435
|
+
S(a[n], k[n]);
|
|
1435
1436
|
}
|
|
1436
1437
|
}
|
|
1437
1438
|
a.forEach(function(k) {
|
|
1438
1439
|
Ac[k] = b;
|
|
1439
1440
|
});
|
|
1440
1441
|
var e = Array(b.length), f = [], g = 0;
|
|
1441
|
-
b.forEach((k,
|
|
1442
|
-
jc.hasOwnProperty(k) ? e[
|
|
1443
|
-
e[
|
|
1442
|
+
b.forEach((k, n) => {
|
|
1443
|
+
jc.hasOwnProperty(k) ? e[n] = jc[k] : (f.push(k), zc.hasOwnProperty(k) || (zc[k] = []), zc[k].push(() => {
|
|
1444
|
+
e[n] = jc[k];
|
|
1444
1445
|
++g;
|
|
1445
1446
|
g === f.length && d(e);
|
|
1446
1447
|
}));
|
|
@@ -1513,16 +1514,16 @@ function Hc(a, b, c, d, e, f, g, k) {
|
|
|
1513
1514
|
this.O = d;
|
|
1514
1515
|
this.B = e;
|
|
1515
1516
|
this.Ob = f;
|
|
1516
|
-
this.
|
|
1517
|
+
this.oa = g;
|
|
1517
1518
|
this.Jb = k;
|
|
1518
1519
|
this.ob = [];
|
|
1519
1520
|
}
|
|
1520
1521
|
var Ic = (a, b, c) => {
|
|
1521
1522
|
for (; b !== c;) {
|
|
1522
|
-
if (!b.
|
|
1523
|
+
if (!b.oa) {
|
|
1523
1524
|
throw new P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
|
|
1524
1525
|
}
|
|
1525
|
-
a = b.
|
|
1526
|
+
a = b.oa(a);
|
|
1526
1527
|
b = b.B;
|
|
1527
1528
|
}
|
|
1528
1529
|
return a;
|
|
@@ -1547,7 +1548,7 @@ function Lc(a, b) {
|
|
|
1547
1548
|
if (this.Ra) {
|
|
1548
1549
|
throw new P(`null is not a valid ${this.name}`);
|
|
1549
1550
|
}
|
|
1550
|
-
if (this.
|
|
1551
|
+
if (this.xa) {
|
|
1551
1552
|
var c = this.Ta();
|
|
1552
1553
|
null !== a && a.push(this.O, c);
|
|
1553
1554
|
return c;
|
|
@@ -1560,11 +1561,11 @@ function Lc(a, b) {
|
|
|
1560
1561
|
if (!b.g.o) {
|
|
1561
1562
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1562
1563
|
}
|
|
1563
|
-
if (!this.
|
|
1564
|
+
if (!this.wa && b.g.u.wa) {
|
|
1564
1565
|
throw new P(`Cannot convert argument of type ${b.g.J ? b.g.J.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1565
1566
|
}
|
|
1566
1567
|
c = Ic(b.g.o, b.g.u.i, this.i);
|
|
1567
|
-
if (this.
|
|
1568
|
+
if (this.xa) {
|
|
1568
1569
|
if (void 0 === b.g.D) {
|
|
1569
1570
|
throw new P("Passing raw pointer to smart pointer is illegal");
|
|
1570
1571
|
}
|
|
@@ -1607,21 +1608,21 @@ function Mc(a, b) {
|
|
|
1607
1608
|
if (!b.g.o) {
|
|
1608
1609
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1609
1610
|
}
|
|
1610
|
-
if (b.g.u.
|
|
1611
|
+
if (b.g.u.wa) {
|
|
1611
1612
|
throw new P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1612
1613
|
}
|
|
1613
1614
|
return Ic(b.g.o, b.g.u.i, this.i);
|
|
1614
1615
|
}
|
|
1615
|
-
function Nc(a, b, c, d, e, f, g, k,
|
|
1616
|
+
function Nc(a, b, c, d, e, f, g, k, n, m, t) {
|
|
1616
1617
|
this.name = a;
|
|
1617
1618
|
this.i = b;
|
|
1618
1619
|
this.Ra = c;
|
|
1619
|
-
this.
|
|
1620
|
-
this.
|
|
1620
|
+
this.wa = d;
|
|
1621
|
+
this.xa = e;
|
|
1621
1622
|
this.bc = f;
|
|
1622
1623
|
this.hc = g;
|
|
1623
1624
|
this.qb = k;
|
|
1624
|
-
this.Ta =
|
|
1625
|
+
this.Ta = n;
|
|
1625
1626
|
this.cc = m;
|
|
1626
1627
|
this.O = t;
|
|
1627
1628
|
e || void 0 !== b.B ? this.toWireType = Lc : (this.toWireType = d ? Jc : Mc, this.L = null);
|
|
@@ -1666,10 +1667,10 @@ function Xc(a, b, c, d, e) {
|
|
|
1666
1667
|
if (2 > f) {
|
|
1667
1668
|
throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1668
1669
|
}
|
|
1669
|
-
var g = null !== b[1] && null !== c, k = Wc(b),
|
|
1670
|
-
return Zb(a, function(...
|
|
1671
|
-
if (
|
|
1672
|
-
throw new P(`function ${a} called with ${
|
|
1670
|
+
var g = null !== b[1] && null !== c, k = Wc(b), n = "void" !== b[0].name, m = f - 2, t = Array(m), v = [], x = [];
|
|
1671
|
+
return Zb(a, function(...p) {
|
|
1672
|
+
if (p.length !== m) {
|
|
1673
|
+
throw new P(`function ${a} called with ${p.length} arguments, expected ${m}`);
|
|
1673
1674
|
}
|
|
1674
1675
|
x.length = 0;
|
|
1675
1676
|
v.length = g ? 2 : 1;
|
|
@@ -1679,9 +1680,9 @@ function Xc(a, b, c, d, e) {
|
|
|
1679
1680
|
v[1] = r;
|
|
1680
1681
|
}
|
|
1681
1682
|
for (var u = 0; u < m; ++u) {
|
|
1682
|
-
t[u] = b[u + 2].toWireType(x,
|
|
1683
|
+
t[u] = b[u + 2].toWireType(x, p[u]), v.push(t[u]);
|
|
1683
1684
|
}
|
|
1684
|
-
|
|
1685
|
+
p = d(...v);
|
|
1685
1686
|
if (k) {
|
|
1686
1687
|
xc(x);
|
|
1687
1688
|
} else {
|
|
@@ -1690,7 +1691,7 @@ function Xc(a, b, c, d, e) {
|
|
|
1690
1691
|
null !== b[u].L && b[u].L(z);
|
|
1691
1692
|
}
|
|
1692
1693
|
}
|
|
1693
|
-
r =
|
|
1694
|
+
r = n ? b[0].fromWireType(p) : void 0;
|
|
1694
1695
|
return r;
|
|
1695
1696
|
});
|
|
1696
1697
|
}
|
|
@@ -2026,90 +2027,90 @@ var Td = (a, b) => {
|
|
|
2026
2027
|
a -= 5120;
|
|
2027
2028
|
return 0 == a ? B : 1 == a ? D : 2 == a ? E : 4 == a ? F : 6 == a ? xa : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? G : wa;
|
|
2028
2029
|
}, Yd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Zd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], $d = (a, b, c, d) => {
|
|
2029
|
-
function e(
|
|
2030
|
-
for (
|
|
2031
|
-
|
|
2030
|
+
function e(p, r, u) {
|
|
2031
|
+
for (p = "number" == typeof p ? p.toString() : p || ""; p.length < r;) {
|
|
2032
|
+
p = u[0] + p;
|
|
2032
2033
|
}
|
|
2033
|
-
return
|
|
2034
|
+
return p;
|
|
2034
2035
|
}
|
|
2035
|
-
function f(
|
|
2036
|
-
return e(
|
|
2036
|
+
function f(p, r) {
|
|
2037
|
+
return e(p, r, "0");
|
|
2037
2038
|
}
|
|
2038
|
-
function g(
|
|
2039
|
+
function g(p, r) {
|
|
2039
2040
|
function u(A) {
|
|
2040
2041
|
return 0 > A ? -1 : 0 < A ? 1 : 0;
|
|
2041
2042
|
}
|
|
2042
2043
|
var z;
|
|
2043
|
-
0 === (z = u(
|
|
2044
|
+
0 === (z = u(p.getFullYear() - r.getFullYear())) && 0 === (z = u(p.getMonth() - r.getMonth())) && (z = u(p.getDate() - r.getDate()));
|
|
2044
2045
|
return z;
|
|
2045
2046
|
}
|
|
2046
|
-
function k(
|
|
2047
|
-
switch(
|
|
2047
|
+
function k(p) {
|
|
2048
|
+
switch(p.getDay()) {
|
|
2048
2049
|
case 0:
|
|
2049
|
-
return new Date(
|
|
2050
|
+
return new Date(p.getFullYear() - 1, 11, 29);
|
|
2050
2051
|
case 1:
|
|
2051
|
-
return
|
|
2052
|
+
return p;
|
|
2052
2053
|
case 2:
|
|
2053
|
-
return new Date(
|
|
2054
|
+
return new Date(p.getFullYear(), 0, 3);
|
|
2054
2055
|
case 3:
|
|
2055
|
-
return new Date(
|
|
2056
|
+
return new Date(p.getFullYear(), 0, 2);
|
|
2056
2057
|
case 4:
|
|
2057
|
-
return new Date(
|
|
2058
|
+
return new Date(p.getFullYear(), 0, 1);
|
|
2058
2059
|
case 5:
|
|
2059
|
-
return new Date(
|
|
2060
|
+
return new Date(p.getFullYear() - 1, 11, 31);
|
|
2060
2061
|
case 6:
|
|
2061
|
-
return new Date(
|
|
2062
|
+
return new Date(p.getFullYear() - 1, 11, 30);
|
|
2062
2063
|
}
|
|
2063
2064
|
}
|
|
2064
|
-
function p
|
|
2065
|
-
var r =
|
|
2066
|
-
for (
|
|
2067
|
-
var u =
|
|
2068
|
-
if (r > z -
|
|
2069
|
-
r -= z -
|
|
2065
|
+
function n(p) {
|
|
2066
|
+
var r = p.ba;
|
|
2067
|
+
for (p = new Date((new Date(p.ca + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
2068
|
+
var u = p.getMonth(), z = (ud(p.getFullYear()) ? Yd : Zd)[u];
|
|
2069
|
+
if (r > z - p.getDate()) {
|
|
2070
|
+
r -= z - p.getDate() + 1, p.setDate(1), 11 > u ? p.setMonth(u + 1) : (p.setMonth(0), p.setFullYear(p.getFullYear() + 1));
|
|
2070
2071
|
} else {
|
|
2071
|
-
|
|
2072
|
+
p.setDate(p.getDate() + r);
|
|
2072
2073
|
break;
|
|
2073
2074
|
}
|
|
2074
2075
|
}
|
|
2075
|
-
u = new Date(
|
|
2076
|
-
r = k(new Date(
|
|
2076
|
+
u = new Date(p.getFullYear() + 1, 0, 4);
|
|
2077
|
+
r = k(new Date(p.getFullYear(), 0, 4));
|
|
2077
2078
|
u = k(u);
|
|
2078
|
-
return 0 >= g(r,
|
|
2079
|
+
return 0 >= g(r, p) ? 0 >= g(u, p) ? p.getFullYear() + 1 : p.getFullYear() : p.getFullYear() - 1;
|
|
2079
2080
|
}
|
|
2080
2081
|
var m = G[d + 40 >> 2];
|
|
2081
|
-
d = {kc:F[d >> 2], jc:F[d + 4 >> 2],
|
|
2082
|
+
d = {kc:F[d >> 2], jc:F[d + 4 >> 2], Ja:F[d + 8 >> 2], Va:F[d + 12 >> 2], Ka:F[d + 16 >> 2], ca:F[d + 20 >> 2], R:F[d + 24 >> 2], ba:F[d + 28 >> 2], Sc:F[d + 32 >> 2], ic:F[d + 36 >> 2], lc:m ? m ? L(D, m) : "" : ""};
|
|
2082
2083
|
c = c ? L(D, c) : "";
|
|
2083
2084
|
m = {"%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",};
|
|
2084
2085
|
for (var t in m) {
|
|
2085
2086
|
c = c.replace(new RegExp(t, "g"), m[t]);
|
|
2086
2087
|
}
|
|
2087
2088
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
2088
|
-
m = {"%a":
|
|
2089
|
-
|
|
2090
|
-
0 ==
|
|
2091
|
-
return f(
|
|
2092
|
-
}, "%j":
|
|
2093
|
-
for (var r = 0, u = 0; u <=
|
|
2094
|
-
}
|
|
2095
|
-
return f(
|
|
2096
|
-
}, "%m":
|
|
2097
|
-
var r = Math.floor((
|
|
2098
|
-
2 >= (
|
|
2089
|
+
m = {"%a":p => v[p.R].substring(0, 3), "%A":p => v[p.R], "%b":p => x[p.Ka].substring(0, 3), "%B":p => x[p.Ka], "%C":p => f((p.ca + 1900) / 100 | 0, 2), "%d":p => f(p.Va, 2), "%e":p => e(p.Va, 2, " "), "%g":p => n(p).toString().substring(2), "%G":n, "%H":p => f(p.Ja, 2), "%I":p => {
|
|
2090
|
+
p = p.Ja;
|
|
2091
|
+
0 == p ? p = 12 : 12 < p && (p -= 12);
|
|
2092
|
+
return f(p, 2);
|
|
2093
|
+
}, "%j":p => {
|
|
2094
|
+
for (var r = 0, u = 0; u <= p.Ka - 1; r += (ud(p.ca + 1900) ? Yd : Zd)[u++]) {
|
|
2095
|
+
}
|
|
2096
|
+
return f(p.Va + r, 3);
|
|
2097
|
+
}, "%m":p => f(p.Ka + 1, 2), "%M":p => f(p.jc, 2), "%n":() => "\n", "%p":p => 0 <= p.Ja && 12 > p.Ja ? "AM" : "PM", "%S":p => f(p.kc, 2), "%t":() => "\t", "%u":p => p.R || 7, "%U":p => f(Math.floor((p.ba + 7 - p.R) / 7), 2), "%V":p => {
|
|
2098
|
+
var r = Math.floor((p.ba + 7 - (p.R + 6) % 7) / 7);
|
|
2099
|
+
2 >= (p.R + 371 - p.ba - 2) % 7 && r++;
|
|
2099
2100
|
if (r) {
|
|
2100
|
-
53 == r && (u = (
|
|
2101
|
+
53 == r && (u = (p.R + 371 - p.ba) % 7, 4 == u || 3 == u && ud(p.ca) || (r = 1));
|
|
2101
2102
|
} else {
|
|
2102
2103
|
r = 52;
|
|
2103
|
-
var u = (
|
|
2104
|
-
(4 == u || 5 == u && ud(
|
|
2104
|
+
var u = (p.R + 7 - p.ba - 1) % 7;
|
|
2105
|
+
(4 == u || 5 == u && ud(p.ca % 400 - 1)) && r++;
|
|
2105
2106
|
}
|
|
2106
2107
|
return f(r, 2);
|
|
2107
|
-
}, "%w":
|
|
2108
|
-
|
|
2109
|
-
var r = 0 <=
|
|
2110
|
-
|
|
2111
|
-
return (r ? "+" : "-") + String("0000" + (
|
|
2112
|
-
}, "%Z":
|
|
2108
|
+
}, "%w":p => p.R, "%W":p => f(Math.floor((p.ba + 7 - (p.R + 6) % 7) / 7), 2), "%y":p => (p.ca + 1900).toString().substring(2), "%Y":p => p.ca + 1900, "%z":p => {
|
|
2109
|
+
p = p.ic;
|
|
2110
|
+
var r = 0 <= p;
|
|
2111
|
+
p = Math.abs(p) / 60;
|
|
2112
|
+
return (r ? "+" : "-") + String("0000" + (p / 60 * 100 + p % 60)).slice(-4);
|
|
2113
|
+
}, "%Z":p => p.lc, "%%":() => "%"};
|
|
2113
2114
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2114
2115
|
for (t in m) {
|
|
2115
2116
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), m[t](d)));
|
|
@@ -2154,9 +2155,9 @@ Pb("/home/web_user");
|
|
|
2154
2155
|
Pb("/proc/self/fd");
|
|
2155
2156
|
Nb({U() {
|
|
2156
2157
|
var b = rb(a, "fd", 16895, 73);
|
|
2157
|
-
b.j = {
|
|
2158
|
+
b.j = {la(c, d) {
|
|
2158
2159
|
var e = Kb(+d);
|
|
2159
|
-
c = {parent:null, U:{kb:"fake"}, j:{
|
|
2160
|
+
c = {parent:null, U:{kb:"fake"}, j:{ma:() => e.path},};
|
|
2160
2161
|
return c.parent = c;
|
|
2161
2162
|
}};
|
|
2162
2163
|
return b;
|
|
@@ -2202,10 +2203,10 @@ Object.assign(Dc.prototype, {isAliasOf:function(a) {
|
|
|
2202
2203
|
a.g = a.g;
|
|
2203
2204
|
var d = a.g.u.i;
|
|
2204
2205
|
for (a = a.g.o; b.B;) {
|
|
2205
|
-
c = b.
|
|
2206
|
+
c = b.oa(c), b = b.B;
|
|
2206
2207
|
}
|
|
2207
2208
|
for (; d.B;) {
|
|
2208
|
-
a = d.
|
|
2209
|
+
a = d.oa(a), d = d.B;
|
|
2209
2210
|
}
|
|
2210
2211
|
return b === d && c === a;
|
|
2211
2212
|
}, clone:function() {
|
|
@@ -2247,7 +2248,7 @@ Object.assign(Nc.prototype, {Pb(a) {
|
|
|
2247
2248
|
this.O?.(a);
|
|
2248
2249
|
}, argPackAdvance:8, readValueFromPointer:yc, fromWireType:function(a) {
|
|
2249
2250
|
function b() {
|
|
2250
|
-
return this.
|
|
2251
|
+
return this.xa ? vc(this.i.M, {u:this.bc, o:c, J:this, D:a,}) : vc(this.i.M, {u:this, o:a,});
|
|
2251
2252
|
}
|
|
2252
2253
|
var c = this.Pb(a);
|
|
2253
2254
|
if (!c) {
|
|
@@ -2267,9 +2268,9 @@ Object.assign(Nc.prototype, {Pb(a) {
|
|
|
2267
2268
|
if (!d) {
|
|
2268
2269
|
return b.call(this);
|
|
2269
2270
|
}
|
|
2270
|
-
d = this.
|
|
2271
|
+
d = this.wa ? d.Hb : d.pointerType;
|
|
2271
2272
|
var e = qc(c, this.i, d.i);
|
|
2272
|
-
return null === e ? b.call(this) : this.
|
|
2273
|
+
return null === e ? b.call(this) : this.xa ? vc(d.i.M, {u:d, o:e, J:this, D:a,}) : vc(d.i.M, {u:d, o:e,});
|
|
2273
2274
|
},});
|
|
2274
2275
|
Uc = l.UnboundTypeError = bc("UnboundTypeError");
|
|
2275
2276
|
for (var W, ce = 0; 32 > ce; ++ce) {
|
|
@@ -2411,9 +2412,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2411
2412
|
c = Q(c);
|
|
2412
2413
|
var d = b.i, e = d.M, f = d.B.M, g = d.B.constructor;
|
|
2413
2414
|
a = Zb(a, function(...k) {
|
|
2414
|
-
d.B.ob.forEach(function(
|
|
2415
|
-
if (this[
|
|
2416
|
-
throw new cc(`Pure virtual function ${
|
|
2415
|
+
d.B.ob.forEach(function(n) {
|
|
2416
|
+
if (this[n] === f[n]) {
|
|
2417
|
+
throw new cc(`Pure virtual function ${n} must be implemented in JavaScript`);
|
|
2417
2418
|
}
|
|
2418
2419
|
}.bind(this));
|
|
2419
2420
|
Object.defineProperty(this, "__parent", {value:e});
|
|
@@ -2425,12 +2426,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2425
2426
|
}
|
|
2426
2427
|
k = g.implement(this, ...k);
|
|
2427
2428
|
oc(k);
|
|
2428
|
-
var
|
|
2429
|
+
var n = k.g;
|
|
2429
2430
|
k.notifyOnDestruction();
|
|
2430
|
-
|
|
2431
|
-
Object.defineProperties(this, {g:{value:
|
|
2431
|
+
n.ia = !0;
|
|
2432
|
+
Object.defineProperties(this, {g:{value:n}});
|
|
2432
2433
|
uc(this);
|
|
2433
|
-
k =
|
|
2434
|
+
k = n.o;
|
|
2434
2435
|
k = ic(d, k);
|
|
2435
2436
|
if (hc.hasOwnProperty(k)) {
|
|
2436
2437
|
throw new P(`Tried to register registered instance: ${k}`);
|
|
@@ -2459,22 +2460,22 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2459
2460
|
var c = b.Ta, d = b.O, e = b.eb, f = e.map(g => g.Sb).concat(e.map(g => g.ec));
|
|
2460
2461
|
T([a], f, g => {
|
|
2461
2462
|
var k = {};
|
|
2462
|
-
e.forEach((
|
|
2463
|
-
var t = g[m], v =
|
|
2464
|
-
k[
|
|
2463
|
+
e.forEach((n, m) => {
|
|
2464
|
+
var t = g[m], v = n.Qb, x = n.Rb, p = g[m + e.length], r = n.dc, u = n.fc;
|
|
2465
|
+
k[n.Mb] = {read:z => t.fromWireType(v(x, z)), write:(z, A) => {
|
|
2465
2466
|
var C = [];
|
|
2466
|
-
r(u, z,
|
|
2467
|
+
r(u, z, p.toWireType(C, A));
|
|
2467
2468
|
xc(C);
|
|
2468
2469
|
}};
|
|
2469
2470
|
});
|
|
2470
|
-
return [{name:b.name, fromWireType:
|
|
2471
|
+
return [{name:b.name, fromWireType:n => {
|
|
2471
2472
|
var m = {}, t;
|
|
2472
2473
|
for (t in k) {
|
|
2473
|
-
m[t] = k[t].read(
|
|
2474
|
+
m[t] = k[t].read(n);
|
|
2474
2475
|
}
|
|
2475
|
-
d(
|
|
2476
|
+
d(n);
|
|
2476
2477
|
return m;
|
|
2477
|
-
}, toWireType:(
|
|
2478
|
+
}, toWireType:(n, m) => {
|
|
2478
2479
|
for (var t in k) {
|
|
2479
2480
|
if (!(t in m)) {
|
|
2480
2481
|
throw new TypeError(`Missing field: "${t}"`);
|
|
@@ -2484,7 +2485,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2484
2485
|
for (t in k) {
|
|
2485
2486
|
k[t].write(v, m[t]);
|
|
2486
2487
|
}
|
|
2487
|
-
null !==
|
|
2488
|
+
null !== n && n.push(d, v);
|
|
2488
2489
|
return v;
|
|
2489
2490
|
}, argPackAdvance:8, readValueFromPointer:yc, L:d,}];
|
|
2490
2491
|
});
|
|
@@ -2498,14 +2499,14 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2498
2499
|
}, argPackAdvance:8, readValueFromPointer:function(e) {
|
|
2499
2500
|
return this.fromWireType(D[e]);
|
|
2500
2501
|
}, L:null,});
|
|
2501
|
-
}, _embind_register_class:(a, b, c, d, e, f, g, k,
|
|
2502
|
+
}, _embind_register_class:(a, b, c, d, e, f, g, k, n, m, t, v, x) => {
|
|
2502
2503
|
t = R(t);
|
|
2503
2504
|
f = U(e, f);
|
|
2504
2505
|
k &&= U(g, k);
|
|
2505
|
-
m &&= U(
|
|
2506
|
+
m &&= U(n, m);
|
|
2506
2507
|
x = U(v, x);
|
|
2507
|
-
var
|
|
2508
|
-
Fc(
|
|
2508
|
+
var p = Gc(t);
|
|
2509
|
+
Fc(p, function() {
|
|
2509
2510
|
Vc(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2510
2511
|
});
|
|
2511
2512
|
T([a, b, c], d ? [d] : [], r => {
|
|
@@ -2534,14 +2535,14 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2534
2535
|
var C = new Hc(t, r, A, x, u, f, k, m);
|
|
2535
2536
|
if (C.B) {
|
|
2536
2537
|
var H;
|
|
2537
|
-
(H = C.B).
|
|
2538
|
-
C.B.
|
|
2538
|
+
(H = C.B).pa ?? (H.pa = []);
|
|
2539
|
+
C.B.pa.push(C);
|
|
2539
2540
|
}
|
|
2540
2541
|
u = new Nc(t, C, !0, !1, !1);
|
|
2541
2542
|
H = new Nc(t + "*", C, !1, !1, !1);
|
|
2542
2543
|
z = new Nc(t + " const*", C, !1, !0, !1);
|
|
2543
2544
|
rc[a] = {pointerType:H, Hb:z};
|
|
2544
|
-
Oc(
|
|
2545
|
+
Oc(p, r);
|
|
2545
2546
|
return [u, H, z];
|
|
2546
2547
|
});
|
|
2547
2548
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
@@ -2549,21 +2550,21 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2549
2550
|
b = R(b);
|
|
2550
2551
|
b = Zc(b);
|
|
2551
2552
|
f = U(e, f);
|
|
2552
|
-
T([], [a],
|
|
2553
|
+
T([], [a], n => {
|
|
2553
2554
|
function m() {
|
|
2554
2555
|
Vc(`Cannot call ${t} due to unbound types`, k);
|
|
2555
2556
|
}
|
|
2556
|
-
|
|
2557
|
-
var t = `${
|
|
2557
|
+
n = n[0];
|
|
2558
|
+
var t = `${n.name}.${b}`;
|
|
2558
2559
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2559
|
-
var v =
|
|
2560
|
+
var v = n.i.constructor;
|
|
2560
2561
|
void 0 === v[b] ? (m.fa = c - 1, v[b] = m) : (Ec(v, b, t), v[b].A[c - 1] = m);
|
|
2561
2562
|
T([], k, x => {
|
|
2562
2563
|
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2563
2564
|
void 0 === v[b].A ? (x.fa = c - 1, v[b] = x) : v[b].A[c - 1] = x;
|
|
2564
|
-
if (
|
|
2565
|
-
for (const
|
|
2566
|
-
|
|
2565
|
+
if (n.i.pa) {
|
|
2566
|
+
for (const p of n.i.pa) {
|
|
2567
|
+
p.constructor.hasOwnProperty(b) || (p.constructor[b] = x);
|
|
2567
2568
|
}
|
|
2568
2569
|
}
|
|
2569
2570
|
return [];
|
|
@@ -2573,9 +2574,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2573
2574
|
}, _embind_register_class_class_property:(a, b, c, d, e, f, g, k) => {
|
|
2574
2575
|
b = R(b);
|
|
2575
2576
|
f = U(e, f);
|
|
2576
|
-
T([], [a],
|
|
2577
|
-
|
|
2578
|
-
var m = `${
|
|
2577
|
+
T([], [a], n => {
|
|
2578
|
+
n = n[0];
|
|
2579
|
+
var m = `${n.name}.${b}`, t = {get() {
|
|
2579
2580
|
Vc(`Cannot access ${m} due to unbound types`, [c]);
|
|
2580
2581
|
}, enumerable:!0, configurable:!0};
|
|
2581
2582
|
t.set = k ? () => {
|
|
@@ -2583,18 +2584,18 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2583
2584
|
} : () => {
|
|
2584
2585
|
throw new P(`${m} is a read-only property`);
|
|
2585
2586
|
};
|
|
2586
|
-
Object.defineProperty(
|
|
2587
|
+
Object.defineProperty(n.i.constructor, b, t);
|
|
2587
2588
|
T([], [c], v => {
|
|
2588
2589
|
v = v[0];
|
|
2589
2590
|
var x = {get() {
|
|
2590
2591
|
return v.fromWireType(f(d));
|
|
2591
2592
|
}, enumerable:!0};
|
|
2592
|
-
k && (k = U(g, k), x.set =
|
|
2593
|
+
k && (k = U(g, k), x.set = p => {
|
|
2593
2594
|
var r = [];
|
|
2594
|
-
k(d, v.toWireType(r,
|
|
2595
|
+
k(d, v.toWireType(r, p));
|
|
2595
2596
|
xc(r);
|
|
2596
2597
|
});
|
|
2597
|
-
Object.defineProperty(
|
|
2598
|
+
Object.defineProperty(n.i.constructor, b, x);
|
|
2598
2599
|
return [];
|
|
2599
2600
|
});
|
|
2600
2601
|
return [];
|
|
@@ -2604,7 +2605,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2604
2605
|
e = U(d, e);
|
|
2605
2606
|
T([], [a], k => {
|
|
2606
2607
|
k = k[0];
|
|
2607
|
-
var
|
|
2608
|
+
var n = `constructor ${k.name}`;
|
|
2608
2609
|
void 0 === k.i.Z && (k.i.Z = []);
|
|
2609
2610
|
if (void 0 !== k.i.Z[b - 1]) {
|
|
2610
2611
|
throw new P(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
@@ -2614,34 +2615,34 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2614
2615
|
};
|
|
2615
2616
|
T([], g, m => {
|
|
2616
2617
|
m.splice(1, 0, null);
|
|
2617
|
-
k.i.Z[b - 1] = Xc(
|
|
2618
|
+
k.i.Z[b - 1] = Xc(n, m, null, e, f);
|
|
2618
2619
|
return [];
|
|
2619
2620
|
});
|
|
2620
2621
|
return [];
|
|
2621
2622
|
});
|
|
2622
2623
|
}, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
|
|
2623
|
-
var
|
|
2624
|
+
var n = Yc(c, d);
|
|
2624
2625
|
b = R(b);
|
|
2625
2626
|
b = Zc(b);
|
|
2626
2627
|
f = U(e, f);
|
|
2627
2628
|
T([], [a], m => {
|
|
2628
2629
|
function t() {
|
|
2629
|
-
Vc(`Cannot call ${v} due to unbound types`,
|
|
2630
|
+
Vc(`Cannot call ${v} due to unbound types`, n);
|
|
2630
2631
|
}
|
|
2631
2632
|
m = m[0];
|
|
2632
2633
|
var v = `${m.name}.${b}`;
|
|
2633
2634
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2634
2635
|
k && m.i.ob.push(b);
|
|
2635
|
-
var x = m.i.M,
|
|
2636
|
-
void 0 ===
|
|
2637
|
-
T([],
|
|
2636
|
+
var x = m.i.M, p = x[b];
|
|
2637
|
+
void 0 === p || void 0 === p.A && p.className !== m.name && p.fa === c - 2 ? (t.fa = c - 2, t.className = m.name, x[b] = t) : (Ec(x, b, v), x[b].A[c - 2] = t);
|
|
2638
|
+
T([], n, r => {
|
|
2638
2639
|
r = Xc(v, r, m, f, g);
|
|
2639
2640
|
void 0 === x[b].A ? (r.fa = c - 2, x[b] = r) : x[b].A[c - 2] = r;
|
|
2640
2641
|
return [];
|
|
2641
2642
|
});
|
|
2642
2643
|
return [];
|
|
2643
2644
|
});
|
|
2644
|
-
}, _embind_register_class_property:(a, b, c, d, e, f, g, k,
|
|
2645
|
+
}, _embind_register_class_property:(a, b, c, d, e, f, g, k, n, m) => {
|
|
2645
2646
|
b = R(b);
|
|
2646
2647
|
e = U(d, e);
|
|
2647
2648
|
T([], [a], t => {
|
|
@@ -2649,21 +2650,21 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2649
2650
|
var v = `${t.name}.${b}`, x = {get() {
|
|
2650
2651
|
Vc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2651
2652
|
}, enumerable:!0, configurable:!0};
|
|
2652
|
-
x.set =
|
|
2653
|
+
x.set = n ? () => Vc(`Cannot access ${v} due to unbound types`, [c, g]) : () => {
|
|
2653
2654
|
throw new P(v + " is a read-only property");
|
|
2654
2655
|
};
|
|
2655
2656
|
Object.defineProperty(t.i.M, b, x);
|
|
2656
|
-
T([],
|
|
2657
|
-
var r =
|
|
2657
|
+
T([], n ? [c, g] : [c], p => {
|
|
2658
|
+
var r = p[0], u = {get() {
|
|
2658
2659
|
var A = $c(this, t, v + " getter");
|
|
2659
2660
|
return r.fromWireType(e(f, A));
|
|
2660
2661
|
}, enumerable:!0};
|
|
2661
|
-
if (
|
|
2662
|
-
|
|
2663
|
-
var z =
|
|
2662
|
+
if (n) {
|
|
2663
|
+
n = U(k, n);
|
|
2664
|
+
var z = p[1];
|
|
2664
2665
|
u.set = function(A) {
|
|
2665
2666
|
var C = $c(this, t, v + " setter"), H = [];
|
|
2666
|
-
|
|
2667
|
+
n(m, C, z.toWireType(H, A));
|
|
2667
2668
|
xc(H);
|
|
2668
2669
|
};
|
|
2669
2670
|
}
|
|
@@ -2712,10 +2713,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2712
2713
|
var f = 32 - 8 * c;
|
|
2713
2714
|
e = k => k << f >>> f;
|
|
2714
2715
|
}
|
|
2715
|
-
var g = b.includes("unsigned") ? function(k,
|
|
2716
|
-
return
|
|
2717
|
-
} : function(k,
|
|
2718
|
-
return
|
|
2716
|
+
var g = b.includes("unsigned") ? function(k, n) {
|
|
2717
|
+
return n >>> 0;
|
|
2718
|
+
} : function(k, n) {
|
|
2719
|
+
return n;
|
|
2719
2720
|
};
|
|
2720
2721
|
S(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:ed(b, c, 0 !== d), L:null,});
|
|
2721
2722
|
}, _embind_register_memory_view:(a, b, c) => {
|
|
@@ -2732,15 +2733,15 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2732
2733
|
var e = G[d >> 2], f = d + 4;
|
|
2733
2734
|
if (c) {
|
|
2734
2735
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2735
|
-
var
|
|
2736
|
-
if (k == e || 0 == D[
|
|
2737
|
-
g = g ? L(D, g,
|
|
2736
|
+
var n = f + k;
|
|
2737
|
+
if (k == e || 0 == D[n]) {
|
|
2738
|
+
g = g ? L(D, g, n - g) : "";
|
|
2738
2739
|
if (void 0 === m) {
|
|
2739
2740
|
var m = g;
|
|
2740
2741
|
} else {
|
|
2741
2742
|
m += String.fromCharCode(0), m += g;
|
|
2742
2743
|
}
|
|
2743
|
-
g =
|
|
2744
|
+
g = n + 1;
|
|
2744
2745
|
}
|
|
2745
2746
|
}
|
|
2746
2747
|
} else {
|
|
@@ -2759,22 +2760,22 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2759
2760
|
throw new P("Cannot pass non-string to std::string");
|
|
2760
2761
|
}
|
|
2761
2762
|
var g = c && f ? fb(e) : e.length;
|
|
2762
|
-
var k = Ud(4 + g + 1),
|
|
2763
|
+
var k = Ud(4 + g + 1), n = k + 4;
|
|
2763
2764
|
G[k >> 2] = g;
|
|
2764
2765
|
if (c && f) {
|
|
2765
|
-
gb(e, D,
|
|
2766
|
+
gb(e, D, n, g + 1);
|
|
2766
2767
|
} else {
|
|
2767
2768
|
if (f) {
|
|
2768
2769
|
for (f = 0; f < g; ++f) {
|
|
2769
2770
|
var m = e.charCodeAt(f);
|
|
2770
2771
|
if (255 < m) {
|
|
2771
|
-
throw lc(
|
|
2772
|
+
throw lc(n), new P("String has UTF-16 code units that do not fit in 8 bits");
|
|
2772
2773
|
}
|
|
2773
|
-
D[
|
|
2774
|
+
D[n + f] = m;
|
|
2774
2775
|
}
|
|
2775
2776
|
} else {
|
|
2776
2777
|
for (f = 0; f < g; ++f) {
|
|
2777
|
-
D[
|
|
2778
|
+
D[n + f] = e[f];
|
|
2778
2779
|
}
|
|
2779
2780
|
}
|
|
2780
2781
|
}
|
|
@@ -2794,21 +2795,21 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2794
2795
|
4 === b && (d = kd, e = ld, f = md, g = k => G[k >> 2]);
|
|
2795
2796
|
}
|
|
2796
2797
|
S(a, {name:c, fromWireType:k => {
|
|
2797
|
-
for (var
|
|
2798
|
+
for (var n = G[k >> 2], m, t = k + 4, v = 0; v <= n; ++v) {
|
|
2798
2799
|
var x = k + 4 + v * b;
|
|
2799
|
-
if (v ==
|
|
2800
|
+
if (v == n || 0 == g(x)) {
|
|
2800
2801
|
t = d(t, x - t), void 0 === m ? m = t : (m += String.fromCharCode(0), m += t), t = x + b;
|
|
2801
2802
|
}
|
|
2802
2803
|
}
|
|
2803
2804
|
lc(k);
|
|
2804
2805
|
return m;
|
|
2805
|
-
}, toWireType:(k,
|
|
2806
|
-
if ("string" != typeof
|
|
2806
|
+
}, toWireType:(k, n) => {
|
|
2807
|
+
if ("string" != typeof n) {
|
|
2807
2808
|
throw new P(`Cannot pass non-string to C++ string type ${c}`);
|
|
2808
2809
|
}
|
|
2809
|
-
var m = f(
|
|
2810
|
+
var m = f(n), t = Ud(4 + m + b);
|
|
2810
2811
|
G[t >> 2] = m / b;
|
|
2811
|
-
e(
|
|
2812
|
+
e(n, t + 4, m + b);
|
|
2812
2813
|
null !== k && k.push(lc, t);
|
|
2813
2814
|
return t;
|
|
2814
2815
|
}, argPackAdvance:8, readValueFromPointer:yc, L(k) {
|
|
@@ -2816,8 +2817,8 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2816
2817
|
}});
|
|
2817
2818
|
}, _embind_register_value_object:(a, b, c, d, e, f) => {
|
|
2818
2819
|
wc[a] = {name:R(b), Ta:U(c, d), O:U(e, f), eb:[],};
|
|
2819
|
-
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k,
|
|
2820
|
-
wc[a].eb.push({Mb:R(b), Sb:c, Qb:U(d, e), Rb:f, ec:g, dc:U(k,
|
|
2820
|
+
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, n, m) => {
|
|
2821
|
+
wc[a].eb.push({Mb:R(b), Sb:c, Qb:U(d, e), Rb:f, ec:g, dc:U(k, n), fc:m,});
|
|
2821
2822
|
}, _embind_register_void:(a, b) => {
|
|
2822
2823
|
b = R(b);
|
|
2823
2824
|
S(a, {Ic:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
@@ -2843,12 +2844,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2843
2844
|
a--;
|
|
2844
2845
|
var f = Array(a);
|
|
2845
2846
|
b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
|
|
2846
|
-
return rd(Zb(b, (g, k,
|
|
2847
|
+
return rd(Zb(b, (g, k, n, m) => {
|
|
2847
2848
|
for (var t = 0, v = 0; v < a; ++v) {
|
|
2848
2849
|
f[v] = d[v].readValueFromPointer(m + t), t += d[v].argPackAdvance;
|
|
2849
2850
|
}
|
|
2850
2851
|
g = 1 === c ? td(k, f) : k.apply(g, f);
|
|
2851
|
-
return nd(e,
|
|
2852
|
+
return nd(e, n, g);
|
|
2852
2853
|
}));
|
|
2853
2854
|
}, _emval_get_property:(a, b) => {
|
|
2854
2855
|
a = Q(a);
|
|
@@ -2899,12 +2900,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2899
2900
|
var k = g.getTimezoneOffset();
|
|
2900
2901
|
G[a >> 2] = 60 * Math.max(e, k);
|
|
2901
2902
|
F[b >> 2] = Number(e != k);
|
|
2902
|
-
a =
|
|
2903
|
+
a = n => n.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
|
|
2903
2904
|
f = a(f);
|
|
2904
2905
|
g = a(g);
|
|
2905
2906
|
k < e ? (gb(f, D, c, 17), gb(g, D, d, 17)) : (gb(f, D, d, 17), gb(g, D, c, 17));
|
|
2906
2907
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2907
|
-
(a = w[a].F.
|
|
2908
|
+
(a = w[a].F.Ea) && a.beginPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
|
|
2908
2909
|
}, decode_image:function(a, b, c) {
|
|
2909
2910
|
var d = l.images;
|
|
2910
2911
|
d || (d = new Map(), l.images = d);
|
|
@@ -2972,9 +2973,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2972
2973
|
}, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
|
|
2973
2974
|
a = w[a].F;
|
|
2974
2975
|
const b = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
2975
|
-
return b && b.isCoherent() && 5 == b.framebufferTexturePixelLocalStorageWEBGL.length ? (a.
|
|
2976
|
+
return b && b.isCoherent() && 5 == b.framebufferTexturePixelLocalStorageWEBGL.length ? (a.Ea = b, !0) : !1;
|
|
2976
2977
|
}, endPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2977
|
-
(a = w[a].F.
|
|
2978
|
+
(a = w[a].F.Ea) && a.endPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
|
|
2978
2979
|
}, environ_get:(a, b) => {
|
|
2979
2980
|
var c = 0;
|
|
2980
2981
|
Qd().forEach((d, e) => {
|
|
@@ -3022,10 +3023,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3022
3023
|
var e = Kb(a);
|
|
3023
3024
|
a = b;
|
|
3024
3025
|
for (var f, g = b = 0; g < c; g++) {
|
|
3025
|
-
var k = G[a >> 2],
|
|
3026
|
+
var k = G[a >> 2], n = G[a + 4 >> 2];
|
|
3026
3027
|
a += 8;
|
|
3027
3028
|
var m = e, t = f, v = B;
|
|
3028
|
-
if (0 >
|
|
3029
|
+
if (0 > n || 0 > t) {
|
|
3029
3030
|
throw new M(28);
|
|
3030
3031
|
}
|
|
3031
3032
|
if (null === m.W) {
|
|
@@ -3046,15 +3047,15 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3046
3047
|
} else if (!m.seekable) {
|
|
3047
3048
|
throw new M(70);
|
|
3048
3049
|
}
|
|
3049
|
-
var
|
|
3050
|
-
x || (m.position +=
|
|
3051
|
-
var r =
|
|
3050
|
+
var p = m.m.read(m, v, k, n, t);
|
|
3051
|
+
x || (m.position += p);
|
|
3052
|
+
var r = p;
|
|
3052
3053
|
if (0 > r) {
|
|
3053
3054
|
var u = -1;
|
|
3054
3055
|
break a;
|
|
3055
3056
|
}
|
|
3056
3057
|
b += r;
|
|
3057
|
-
if (r <
|
|
3058
|
+
if (r < n) {
|
|
3058
3059
|
break;
|
|
3059
3060
|
}
|
|
3060
3061
|
"undefined" != typeof f && (f += r);
|
|
@@ -3094,9 +3095,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3094
3095
|
var e = Kb(a);
|
|
3095
3096
|
a = b;
|
|
3096
3097
|
for (var f, g = b = 0; g < c; g++) {
|
|
3097
|
-
var k = G[a >> 2],
|
|
3098
|
+
var k = G[a >> 2], n = G[a + 4 >> 2];
|
|
3098
3099
|
a += 8;
|
|
3099
|
-
var m = e, t = k, v =
|
|
3100
|
+
var m = e, t = k, v = n, x = f, p = B;
|
|
3100
3101
|
if (0 > v || 0 > x) {
|
|
3101
3102
|
throw new M(28);
|
|
3102
3103
|
}
|
|
@@ -3119,7 +3120,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3119
3120
|
} else if (!m.seekable) {
|
|
3120
3121
|
throw new M(70);
|
|
3121
3122
|
}
|
|
3122
|
-
var u = m.m.write(m,
|
|
3123
|
+
var u = m.m.write(m, p, t, v, x, void 0);
|
|
3123
3124
|
r || (m.position += u);
|
|
3124
3125
|
var z = u;
|
|
3125
3126
|
if (0 > z) {
|
|
@@ -3140,13 +3141,13 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3140
3141
|
return C.$;
|
|
3141
3142
|
}
|
|
3142
3143
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3143
|
-
(a = w[a].F.
|
|
3144
|
+
(a = w[a].F.Ea) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
3144
3145
|
}, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e, f) {
|
|
3145
|
-
(a = w[a].F.
|
|
3146
|
+
(a = w[a].F.Ea) && a.framebufferTexturePixelLocalStorageWEBGL(b, Fd[c], d, e, f);
|
|
3146
3147
|
}, glActiveTexture:a => W.activeTexture(a), glAttachShader:(a, b) => {
|
|
3147
3148
|
W.attachShader(V[a], Gd[b]);
|
|
3148
3149
|
}, glBindBuffer:(a, b) => {
|
|
3149
|
-
35051 == a ? W.
|
|
3150
|
+
35051 == a ? W.Oa = b : 35052 == a && (W.sa = b);
|
|
3150
3151
|
W.bindBuffer(a, Cd[b]);
|
|
3151
3152
|
}, glBindBufferRange:(a, b, c, d, e) => {
|
|
3152
3153
|
W.bindBufferRange(a, b, Cd[c], d, e);
|
|
@@ -3158,7 +3159,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3158
3159
|
W.bindTexture(a, Fd[b]);
|
|
3159
3160
|
}, glBindVertexArray:a => {
|
|
3160
3161
|
W.bindVertexArray(Hd[a]);
|
|
3161
|
-
}, glBlendEquation:a => W.blendEquation(a), glBlendFunc:(a, b) => W.blendFunc(a, b), glBlitFramebuffer:(a, b, c, d, e, f, g, k,
|
|
3162
|
+
}, glBlendEquation:a => W.blendEquation(a), glBlendFunc:(a, b) => W.blendFunc(a, b), glBlitFramebuffer:(a, b, c, d, e, f, g, k, n, m) => W.blitFramebuffer(a, b, c, d, e, f, g, k, n, m), glBufferData:(a, b, c, d) => {
|
|
3162
3163
|
c && b ? W.bufferData(a, D, d, c, b) : W.bufferData(a, b, d);
|
|
3163
3164
|
}, glBufferSubData:(a, b, c, d) => {
|
|
3164
3165
|
c && W.bufferSubData(a, b, D, d, c);
|
|
@@ -3170,10 +3171,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3170
3171
|
W.colorMask(!!a, !!b, !!c, !!d);
|
|
3171
3172
|
}, glCompileShader:a => {
|
|
3172
3173
|
W.compileShader(Gd[a]);
|
|
3174
|
+
}, glCompressedTexSubImage2D:(a, b, c, d, e, f, g, k, n) => {
|
|
3175
|
+
W.sa || !k ? W.compressedTexSubImage2D(a, b, c, d, e, f, g, k, n) : W.compressedTexSubImage2D(a, b, c, d, e, f, g, D, n, k);
|
|
3173
3176
|
}, glCreateProgram:() => {
|
|
3174
3177
|
var a = Ld(V), b = W.createProgram();
|
|
3175
3178
|
b.name = a;
|
|
3176
|
-
b.
|
|
3179
|
+
b.Aa = b.ya = b.za = 0;
|
|
3177
3180
|
b.Wa = 1;
|
|
3178
3181
|
V[a] = b;
|
|
3179
3182
|
return a;
|
|
@@ -3184,7 +3187,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3184
3187
|
}, glCullFace:a => W.cullFace(a), glDeleteBuffers:(a, b) => {
|
|
3185
3188
|
for (var c = 0; c < a; c++) {
|
|
3186
3189
|
var d = F[b + 4 * c >> 2], e = Cd[d];
|
|
3187
|
-
e && (W.deleteBuffer(e), e.name = 0, Cd[d] = null, d == W.
|
|
3190
|
+
e && (W.deleteBuffer(e), e.name = 0, Cd[d] = null, d == W.Oa && (W.Oa = 0), d == W.sa && (W.sa = 0));
|
|
3188
3191
|
}
|
|
3189
3192
|
}, glDeleteFramebuffers:(a, b) => {
|
|
3190
3193
|
for (var c = 0; c < a; ++c) {
|
|
@@ -3256,26 +3259,26 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3256
3259
|
if (a = V[a], 35716 == b) {
|
|
3257
3260
|
a = W.getProgramInfoLog(a), null === a && (a = "(unknown error)"), F[c >> 2] = a.length + 1;
|
|
3258
3261
|
} else if (35719 == b) {
|
|
3259
|
-
if (!a.
|
|
3262
|
+
if (!a.Aa) {
|
|
3260
3263
|
for (b = 0; b < W.getProgramParameter(a, 35718); ++b) {
|
|
3261
|
-
a.
|
|
3264
|
+
a.Aa = Math.max(a.Aa, W.getActiveUniform(a, b).name.length + 1);
|
|
3262
3265
|
}
|
|
3263
3266
|
}
|
|
3264
|
-
F[c >> 2] = a.
|
|
3267
|
+
F[c >> 2] = a.Aa;
|
|
3265
3268
|
} else if (35722 == b) {
|
|
3266
|
-
if (!a.
|
|
3269
|
+
if (!a.ya) {
|
|
3267
3270
|
for (b = 0; b < W.getProgramParameter(a, 35721); ++b) {
|
|
3268
|
-
a.
|
|
3271
|
+
a.ya = Math.max(a.ya, W.getActiveAttrib(a, b).name.length + 1);
|
|
3269
3272
|
}
|
|
3270
3273
|
}
|
|
3271
|
-
F[c >> 2] = a.
|
|
3274
|
+
F[c >> 2] = a.ya;
|
|
3272
3275
|
} else if (35381 == b) {
|
|
3273
|
-
if (!a.
|
|
3276
|
+
if (!a.za) {
|
|
3274
3277
|
for (b = 0; b < W.getProgramParameter(a, 35382); ++b) {
|
|
3275
|
-
a.
|
|
3278
|
+
a.za = Math.max(a.za, W.getActiveUniformBlockName(a, b).length + 1);
|
|
3276
3279
|
}
|
|
3277
3280
|
}
|
|
3278
|
-
F[c >> 2] = a.
|
|
3281
|
+
F[c >> 2] = a.za;
|
|
3279
3282
|
} else {
|
|
3280
3283
|
F[c >> 2] = W.getProgramParameter(a, b);
|
|
3281
3284
|
}
|
|
@@ -3315,23 +3318,23 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3315
3318
|
}, glGetUniformBlockIndex:(a, b) => W.getUniformBlockIndex(V[a], b ? L(D, b) : ""), glGetUniformLocation:(a, b) => {
|
|
3316
3319
|
b = b ? L(D, b) : "";
|
|
3317
3320
|
if (a = V[a]) {
|
|
3318
|
-
var c = a, d = c.
|
|
3321
|
+
var c = a, d = c.na, e = c.wb, f;
|
|
3319
3322
|
if (!d) {
|
|
3320
|
-
for (c.
|
|
3323
|
+
for (c.na = d = {}, c.vb = {}, f = 0; f < W.getProgramParameter(c, 35718); ++f) {
|
|
3321
3324
|
var g = W.getActiveUniform(c, f);
|
|
3322
3325
|
var k = g.name;
|
|
3323
3326
|
g = g.size;
|
|
3324
|
-
var
|
|
3325
|
-
|
|
3327
|
+
var n = Wd(k);
|
|
3328
|
+
n = 0 < n ? k.slice(0, n) : k;
|
|
3326
3329
|
var m = c.Wa;
|
|
3327
3330
|
c.Wa += g;
|
|
3328
|
-
e[
|
|
3331
|
+
e[n] = [g, m];
|
|
3329
3332
|
for (k = 0; k < g; ++k) {
|
|
3330
|
-
d[m] = k, c.vb[m++] =
|
|
3333
|
+
d[m] = k, c.vb[m++] = n;
|
|
3331
3334
|
}
|
|
3332
3335
|
}
|
|
3333
3336
|
}
|
|
3334
|
-
c = a.
|
|
3337
|
+
c = a.na;
|
|
3335
3338
|
d = 0;
|
|
3336
3339
|
e = b;
|
|
3337
3340
|
f = Wd(b);
|
|
@@ -3351,13 +3354,13 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3351
3354
|
}, glLinkProgram:a => {
|
|
3352
3355
|
a = V[a];
|
|
3353
3356
|
W.linkProgram(a);
|
|
3354
|
-
a.
|
|
3357
|
+
a.na = 0;
|
|
3355
3358
|
a.wb = {};
|
|
3356
3359
|
}, glPixelStorei:(a, b) => {
|
|
3357
3360
|
3317 == a ? Jd = b : 3314 == a && (Kd = b);
|
|
3358
3361
|
W.pixelStorei(a, b);
|
|
3359
3362
|
}, glReadPixels:(a, b, c, d, e, f, g) => {
|
|
3360
|
-
if (W.
|
|
3363
|
+
if (W.Oa) {
|
|
3361
3364
|
W.readPixels(a, b, c, d, e, f, g);
|
|
3362
3365
|
} else {
|
|
3363
3366
|
var k = Xd(f);
|
|
@@ -3371,30 +3374,30 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3371
3374
|
}
|
|
3372
3375
|
W.shaderSource(Gd[a], e);
|
|
3373
3376
|
}, glStencilFunc:(a, b, c) => W.stencilFunc(a, b, c), glStencilFuncSeparate:(a, b, c, d) => W.stencilFuncSeparate(a, b, c, d), glStencilMask:a => W.stencilMask(a), glStencilOp:(a, b, c) => W.stencilOp(a, b, c), glStencilOpSeparate:(a, b, c, d) => W.stencilOpSeparate(a, b, c, d), glTexParameteri:(a, b, c) => W.texParameteri(a, b, c), glTexStorage2D:(a, b, c, d, e) => W.texStorage2D(a, b, c, d, e), glTexStorage3D:(a, b, c, d, e, f) => W.texStorage3D(a, b, c, d, e, f), glTexSubImage2D:(a, b, c, d, e,
|
|
3374
|
-
f, g, k,
|
|
3375
|
-
if (W.
|
|
3376
|
-
W.texSubImage2D(a, b, c, d, e, f, g, k,
|
|
3377
|
+
f, g, k, n) => {
|
|
3378
|
+
if (W.sa) {
|
|
3379
|
+
W.texSubImage2D(a, b, c, d, e, f, g, k, n);
|
|
3377
3380
|
} else {
|
|
3378
|
-
if (
|
|
3381
|
+
if (n) {
|
|
3379
3382
|
var m = Xd(k);
|
|
3380
|
-
W.texSubImage2D(a, b, c, d, e, f, g, k, m,
|
|
3383
|
+
W.texSubImage2D(a, b, c, d, e, f, g, k, m, n >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
|
|
3381
3384
|
} else {
|
|
3382
|
-
if (
|
|
3385
|
+
if (n) {
|
|
3383
3386
|
m = Xd(k);
|
|
3384
3387
|
var t = f * ((Kd || e) * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[g - 6402] || 1) * m.BYTES_PER_ELEMENT + Jd - 1 & -Jd);
|
|
3385
|
-
|
|
3388
|
+
n = m.subarray(n >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT), n + t >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
|
|
3386
3389
|
} else {
|
|
3387
|
-
|
|
3390
|
+
n = null;
|
|
3388
3391
|
}
|
|
3389
|
-
W.texSubImage2D(a, b, c, d, e, f, g, k,
|
|
3392
|
+
W.texSubImage2D(a, b, c, d, e, f, g, k, n);
|
|
3390
3393
|
}
|
|
3391
3394
|
}
|
|
3392
3395
|
}, glUniform1i:(a, b) => {
|
|
3393
3396
|
var c = W, d = c.uniform1i;
|
|
3394
3397
|
var e = W.Ib;
|
|
3395
3398
|
if (e) {
|
|
3396
|
-
var f = e.
|
|
3397
|
-
"number" == typeof f && (e.
|
|
3399
|
+
var f = e.na[a];
|
|
3400
|
+
"number" == typeof f && (e.na[a] = f = W.getUniformLocation(e, e.vb[a] + (0 < f ? `[${f}]` : "")));
|
|
3398
3401
|
a = f;
|
|
3399
3402
|
} else {
|
|
3400
3403
|
X ||= 1282, a = void 0;
|
|
@@ -3482,8 +3485,8 @@ l.dynCall_vijj = (a, b, c, d, e, f) => (l.dynCall_vijj = Y.dynCall_vijj)(a, b, c
|
|
|
3482
3485
|
l.dynCall_jiji = (a, b, c, d, e) => (l.dynCall_jiji = Y.dynCall_jiji)(a, b, c, d, e);
|
|
3483
3486
|
l.dynCall_viijii = (a, b, c, d, e, f, g) => (l.dynCall_viijii = Y.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3484
3487
|
l.dynCall_iiiiij = (a, b, c, d, e, f, g) => (l.dynCall_iiiiij = Y.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3485
|
-
l.dynCall_iiiiijj = (a, b, c, d, e, f, g, k,
|
|
3486
|
-
l.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k,
|
|
3488
|
+
l.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, n) => (l.dynCall_iiiiijj = Y.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, n);
|
|
3489
|
+
l.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, n, m) => (l.dynCall_iiiiiijj = Y.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, n, m);
|
|
3487
3490
|
function de(a, b, c) {
|
|
3488
3491
|
var d = he();
|
|
3489
3492
|
try {
|