@rive-app/webgl2-advanced 2.38.0 → 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/webgl2_advanced.mjs +126 -125
package/package.json
CHANGED
package/rive.wasm
CHANGED
|
Binary file
|
package/webgl2_advanced.mjs
CHANGED
|
@@ -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
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,8 +221,8 @@ 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
227
|
K = n.push(A.drawWidth());
|
|
227
228
|
I = m.push(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() {
|
|
@@ -311,7 +312,7 @@ 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
317
|
if (this.Na != r.width || this.Za != r.height) {
|
|
317
318
|
this.resize(r.width, r.height), this.Na = r.width, this.Za = r.height;
|
|
@@ -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 = {570520:(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"];
|
|
@@ -479,13 +480,13 @@ var Oa, Pa, Ta = {570520:(a, b, c, d, e) => {
|
|
|
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,33 +494,33 @@ var Oa, Pa, Ta = {570520:(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
509
|
g.Y.onaudioprocess = function(n) {
|
|
509
|
-
if (null == g.
|
|
510
|
-
g.
|
|
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 = n.inputBuffer.getChannelData(m), v = g.
|
|
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
|
+
if (a == window.h.I.Da || a == window.h.I.Pa) {
|
|
521
522
|
for (Sa(f, d, e), m = 0; m < n.outputBuffer.numberOfChannels; ++m) {
|
|
522
|
-
for (t = n.outputBuffer.getChannelData(m), v = g.
|
|
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
|
}
|
|
@@ -530,31 +531,31 @@ var Oa, Pa, Ta = {570520:(a, b, c, d, e) => {
|
|
|
530
531
|
}
|
|
531
532
|
};
|
|
532
533
|
a != window.h.I.capture && a != window.h.I.Pa || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(n) {
|
|
533
|
-
g.
|
|
534
|
-
g.
|
|
534
|
+
g.Ha = g.K.createMediaStreamSource(n);
|
|
535
|
+
g.Ha.connect(g.Y);
|
|
535
536
|
g.Y.connect(g.K.destination);
|
|
536
537
|
}).catch(function(n) {
|
|
537
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) {
|
|
@@ -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 => {
|
|
@@ -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,7 +1608,7 @@ 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);
|
|
@@ -1616,8 +1617,8 @@ 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;
|
|
@@ -2078,22 +2079,22 @@ var Td = (a, b) => {
|
|
|
2078
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":p => v[p.R].substring(0, 3), "%A":p => v[p.R], "%b":p => x[p.
|
|
2089
|
-
p = p.
|
|
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;
|
|
2090
2091
|
0 == p ? p = 12 : 12 < p && (p -= 12);
|
|
2091
2092
|
return f(p, 2);
|
|
2092
2093
|
}, "%j":p => {
|
|
2093
|
-
for (var r = 0, u = 0; u <= p.
|
|
2094
|
+
for (var r = 0, u = 0; u <= p.Ka - 1; r += (ud(p.ca + 1900) ? Yd : Zd)[u++]) {
|
|
2094
2095
|
}
|
|
2095
2096
|
return f(p.Va + r, 3);
|
|
2096
|
-
}, "%m":p => f(p.
|
|
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 => {
|
|
2097
2098
|
var r = Math.floor((p.ba + 7 - (p.R + 6) % 7) / 7);
|
|
2098
2099
|
2 >= (p.R + 371 - p.ba - 2) % 7 && r++;
|
|
2099
2100
|
if (r) {
|
|
@@ -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) {
|
|
@@ -2534,8 +2535,8 @@ 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);
|
|
@@ -2561,8 +2562,8 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
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 (n.i.
|
|
2565
|
-
for (const p of n.i.
|
|
2565
|
+
if (n.i.pa) {
|
|
2566
|
+
for (const p of n.i.pa) {
|
|
2566
2567
|
p.constructor.hasOwnProperty(b) || (p.constructor[b] = x);
|
|
2567
2568
|
}
|
|
2568
2569
|
}
|
|
@@ -2904,7 +2905,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
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) => {
|
|
@@ -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.Oa = b : 35052 == 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);
|
|
@@ -3171,11 +3172,11 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3171
3172
|
}, glCompileShader:a => {
|
|
3172
3173
|
W.compileShader(Gd[a]);
|
|
3173
3174
|
}, glCompressedTexSubImage2D:(a, b, c, d, e, f, g, k, n) => {
|
|
3174
|
-
W.
|
|
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);
|
|
3175
3176
|
}, glCreateProgram:() => {
|
|
3176
3177
|
var a = Ld(V), b = W.createProgram();
|
|
3177
3178
|
b.name = a;
|
|
3178
|
-
b.
|
|
3179
|
+
b.Aa = b.ya = b.za = 0;
|
|
3179
3180
|
b.Wa = 1;
|
|
3180
3181
|
V[a] = b;
|
|
3181
3182
|
return a;
|
|
@@ -3186,7 +3187,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3186
3187
|
}, glCullFace:a => W.cullFace(a), glDeleteBuffers:(a, b) => {
|
|
3187
3188
|
for (var c = 0; c < a; c++) {
|
|
3188
3189
|
var d = F[b + 4 * c >> 2], e = Cd[d];
|
|
3189
|
-
e && (W.deleteBuffer(e), e.name = 0, Cd[d] = null, d == W.Oa && (W.Oa = 0), 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));
|
|
3190
3191
|
}
|
|
3191
3192
|
}, glDeleteFramebuffers:(a, b) => {
|
|
3192
3193
|
for (var c = 0; c < a; ++c) {
|
|
@@ -3258,26 +3259,26 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3258
3259
|
if (a = V[a], 35716 == b) {
|
|
3259
3260
|
a = W.getProgramInfoLog(a), null === a && (a = "(unknown error)"), F[c >> 2] = a.length + 1;
|
|
3260
3261
|
} else if (35719 == b) {
|
|
3261
|
-
if (!a.
|
|
3262
|
+
if (!a.Aa) {
|
|
3262
3263
|
for (b = 0; b < W.getProgramParameter(a, 35718); ++b) {
|
|
3263
|
-
a.
|
|
3264
|
+
a.Aa = Math.max(a.Aa, W.getActiveUniform(a, b).name.length + 1);
|
|
3264
3265
|
}
|
|
3265
3266
|
}
|
|
3266
|
-
F[c >> 2] = a.
|
|
3267
|
+
F[c >> 2] = a.Aa;
|
|
3267
3268
|
} else if (35722 == b) {
|
|
3268
|
-
if (!a.
|
|
3269
|
+
if (!a.ya) {
|
|
3269
3270
|
for (b = 0; b < W.getProgramParameter(a, 35721); ++b) {
|
|
3270
|
-
a.
|
|
3271
|
+
a.ya = Math.max(a.ya, W.getActiveAttrib(a, b).name.length + 1);
|
|
3271
3272
|
}
|
|
3272
3273
|
}
|
|
3273
|
-
F[c >> 2] = a.
|
|
3274
|
+
F[c >> 2] = a.ya;
|
|
3274
3275
|
} else if (35381 == b) {
|
|
3275
|
-
if (!a.
|
|
3276
|
+
if (!a.za) {
|
|
3276
3277
|
for (b = 0; b < W.getProgramParameter(a, 35382); ++b) {
|
|
3277
|
-
a.
|
|
3278
|
+
a.za = Math.max(a.za, W.getActiveUniformBlockName(a, b).length + 1);
|
|
3278
3279
|
}
|
|
3279
3280
|
}
|
|
3280
|
-
F[c >> 2] = a.
|
|
3281
|
+
F[c >> 2] = a.za;
|
|
3281
3282
|
} else {
|
|
3282
3283
|
F[c >> 2] = W.getProgramParameter(a, b);
|
|
3283
3284
|
}
|
|
@@ -3317,9 +3318,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3317
3318
|
}, glGetUniformBlockIndex:(a, b) => W.getUniformBlockIndex(V[a], b ? L(D, b) : ""), glGetUniformLocation:(a, b) => {
|
|
3318
3319
|
b = b ? L(D, b) : "";
|
|
3319
3320
|
if (a = V[a]) {
|
|
3320
|
-
var c = a, d = c.
|
|
3321
|
+
var c = a, d = c.na, e = c.wb, f;
|
|
3321
3322
|
if (!d) {
|
|
3322
|
-
for (c.
|
|
3323
|
+
for (c.na = d = {}, c.vb = {}, f = 0; f < W.getProgramParameter(c, 35718); ++f) {
|
|
3323
3324
|
var g = W.getActiveUniform(c, f);
|
|
3324
3325
|
var k = g.name;
|
|
3325
3326
|
g = g.size;
|
|
@@ -3333,7 +3334,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3333
3334
|
}
|
|
3334
3335
|
}
|
|
3335
3336
|
}
|
|
3336
|
-
c = a.
|
|
3337
|
+
c = a.na;
|
|
3337
3338
|
d = 0;
|
|
3338
3339
|
e = b;
|
|
3339
3340
|
f = Wd(b);
|
|
@@ -3353,7 +3354,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3353
3354
|
}, glLinkProgram:a => {
|
|
3354
3355
|
a = V[a];
|
|
3355
3356
|
W.linkProgram(a);
|
|
3356
|
-
a.
|
|
3357
|
+
a.na = 0;
|
|
3357
3358
|
a.wb = {};
|
|
3358
3359
|
}, glPixelStorei:(a, b) => {
|
|
3359
3360
|
3317 == a ? Jd = b : 3314 == a && (Kd = b);
|
|
@@ -3374,7 +3375,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3374
3375
|
W.shaderSource(Gd[a], e);
|
|
3375
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,
|
|
3376
3377
|
f, g, k, n) => {
|
|
3377
|
-
if (W.
|
|
3378
|
+
if (W.sa) {
|
|
3378
3379
|
W.texSubImage2D(a, b, c, d, e, f, g, k, n);
|
|
3379
3380
|
} else {
|
|
3380
3381
|
if (n) {
|
|
@@ -3395,8 +3396,8 @@ f, g, k, n) => {
|
|
|
3395
3396
|
var c = W, d = c.uniform1i;
|
|
3396
3397
|
var e = W.Ib;
|
|
3397
3398
|
if (e) {
|
|
3398
|
-
var f = e.
|
|
3399
|
-
"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}]` : "")));
|
|
3400
3401
|
a = f;
|
|
3401
3402
|
} else {
|
|
3402
3403
|
X ||= 1282, a = void 0;
|