minerender 2.1.0-alpha.36 → 2.1.0-alpha.38
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/dist/browser/index.d.mts +40 -4
- package/dist/browser/index.d.ts +40 -4
- package/dist/browser/index.js +394 -145
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +336 -87
- package/dist/browser/index.mjs.map +1 -1
- package/dist/bundle.js +737 -483
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.d.mts +40 -4
- package/dist/node/index.d.ts +40 -4
- package/dist/node/index.js +397 -145
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +336 -87
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -3050,7 +3050,7 @@ var MineRender = (() => {
|
|
|
3050
3050
|
var bufferLength = serializedString.length * 0.75;
|
|
3051
3051
|
var len = serializedString.length;
|
|
3052
3052
|
var i4;
|
|
3053
|
-
var
|
|
3053
|
+
var p14 = 0;
|
|
3054
3054
|
var encoded1, encoded2, encoded3, encoded4;
|
|
3055
3055
|
if (serializedString[serializedString.length - 1] === "=") {
|
|
3056
3056
|
bufferLength--;
|
|
@@ -3065,9 +3065,9 @@ var MineRender = (() => {
|
|
|
3065
3065
|
encoded2 = BASE_CHARS.indexOf(serializedString[i4 + 1]);
|
|
3066
3066
|
encoded3 = BASE_CHARS.indexOf(serializedString[i4 + 2]);
|
|
3067
3067
|
encoded4 = BASE_CHARS.indexOf(serializedString[i4 + 3]);
|
|
3068
|
-
bytes[
|
|
3069
|
-
bytes[
|
|
3070
|
-
bytes[
|
|
3068
|
+
bytes[p14++] = encoded1 << 2 | encoded2 >> 4;
|
|
3069
|
+
bytes[p14++] = (encoded2 & 15) << 4 | encoded3 >> 2;
|
|
3070
|
+
bytes[p14++] = (encoded3 & 3) << 6 | encoded4 & 63;
|
|
3071
3071
|
}
|
|
3072
3072
|
return buffer2;
|
|
3073
3073
|
}
|
|
@@ -11092,9 +11092,9 @@ var MineRender = (() => {
|
|
|
11092
11092
|
return createIterResult(value, false);
|
|
11093
11093
|
}
|
|
11094
11094
|
if (error) {
|
|
11095
|
-
const
|
|
11095
|
+
const p14 = Promise.reject(error);
|
|
11096
11096
|
error = null;
|
|
11097
|
-
return
|
|
11097
|
+
return p14;
|
|
11098
11098
|
}
|
|
11099
11099
|
if (finished) {
|
|
11100
11100
|
return createIterResult(void 0, true);
|
|
@@ -11511,7 +11511,7 @@ var MineRender = (() => {
|
|
|
11511
11511
|
o4[k22] = m4[k4];
|
|
11512
11512
|
});
|
|
11513
11513
|
var __exportStar = exports13 && exports13.__exportStar || function(m4, exports14) {
|
|
11514
|
-
for (var
|
|
11514
|
+
for (var p14 in m4) if (p14 !== "default" && !Object.prototype.hasOwnProperty.call(exports14, p14)) __createBinding(exports14, m4, p14);
|
|
11515
11515
|
};
|
|
11516
11516
|
Object.defineProperty(exports13, "__esModule", { value: true });
|
|
11517
11517
|
__exportStar(require_Base(), exports13);
|
|
@@ -11531,8 +11531,8 @@ var MineRender = (() => {
|
|
|
11531
11531
|
__assign = Object.assign || function(t5) {
|
|
11532
11532
|
for (var s4, i4 = 1, n4 = arguments.length; i4 < n4; i4++) {
|
|
11533
11533
|
s4 = arguments[i4];
|
|
11534
|
-
for (var
|
|
11535
|
-
t5[
|
|
11534
|
+
for (var p14 in s4) if (Object.prototype.hasOwnProperty.call(s4, p14))
|
|
11535
|
+
t5[p14] = s4[p14];
|
|
11536
11536
|
}
|
|
11537
11537
|
return t5;
|
|
11538
11538
|
};
|
|
@@ -11811,9 +11811,9 @@ var MineRender = (() => {
|
|
|
11811
11811
|
return createIterResult(value, false);
|
|
11812
11812
|
}
|
|
11813
11813
|
if (error) {
|
|
11814
|
-
const
|
|
11814
|
+
const p14 = Promise.reject(error);
|
|
11815
11815
|
error = null;
|
|
11816
|
-
return
|
|
11816
|
+
return p14;
|
|
11817
11817
|
}
|
|
11818
11818
|
if (finished) {
|
|
11819
11819
|
return createIterResult(void 0, true);
|
|
@@ -12049,8 +12049,8 @@ var MineRender = (() => {
|
|
|
12049
12049
|
if (je(t5)) return e6.stylize(Date.prototype.toString.call(t5), "date");
|
|
12050
12050
|
if (Ae(t5)) return ce(t5);
|
|
12051
12051
|
}
|
|
12052
|
-
var a4, c4 = "", s4 = false,
|
|
12053
|
-
(pe(t5) && (s4 = true,
|
|
12052
|
+
var a4, c4 = "", s4 = false, p14 = ["{", "}"];
|
|
12053
|
+
(pe(t5) && (s4 = true, p14 = ["[", "]"]), we(t5)) && (c4 = " [Function" + (t5.name ? ": " + t5.name : "") + "]");
|
|
12054
12054
|
return me(t5) && (c4 = " " + RegExp.prototype.toString.call(t5)), je(t5) && (c4 = " " + Date.prototype.toUTCString.call(t5)), Ae(t5) && (c4 = " " + ce(t5)), 0 !== o4.length || s4 && 0 != t5.length ? r5 < 0 ? me(t5) ? e6.stylize(RegExp.prototype.toString.call(t5), "regexp") : e6.stylize("[Object]", "special") : (e6.seen.push(t5), a4 = s4 ? function(e7, t6, r6, n5, i5) {
|
|
12055
12055
|
for (var o5 = [], u5 = 0, f5 = t6.length; u5 < f5; ++u5) ke(t6, String(u5)) ? o5.push(se(e7, t6, r6, n5, String(u5), true)) : o5.push("");
|
|
12056
12056
|
return i5.forEach(function(i6) {
|
|
@@ -12064,7 +12064,7 @@ var MineRender = (() => {
|
|
|
12064
12064
|
return n5++, t7.indexOf("\n") >= 0 && n5++, e8 + t7.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
12065
12065
|
}, 0) > 60) return r6[0] + ("" === t6 ? "" : t6 + "\n ") + " " + e7.join(",\n ") + " " + r6[1];
|
|
12066
12066
|
return r6[0] + t6 + " " + e7.join(", ") + " " + r6[1];
|
|
12067
|
-
}(a4, c4,
|
|
12067
|
+
}(a4, c4, p14)) : p14[0] + c4 + p14[1];
|
|
12068
12068
|
}
|
|
12069
12069
|
function ce(e6) {
|
|
12070
12070
|
return "[" + Error.prototype.toString.call(e6) + "]";
|
|
@@ -12811,11 +12811,11 @@ var MineRender = (() => {
|
|
|
12811
12811
|
if (-1 === a4 && (a4 = o4), o4 - a4 + 1 === s4) return a4 * f4;
|
|
12812
12812
|
} else -1 !== a4 && (o4 -= o4 - a4), a4 = -1;
|
|
12813
12813
|
} else for (e6 + s4 > u4 && (e6 = u4 - s4), o4 = e6; o4 >= 0; o4--) {
|
|
12814
|
-
for (var
|
|
12815
|
-
|
|
12814
|
+
for (var p14 = true, c4 = 0; c4 < s4; c4++) if (h5(t5, o4 + c4) !== h5(r5, c4)) {
|
|
12815
|
+
p14 = false;
|
|
12816
12816
|
break;
|
|
12817
12817
|
}
|
|
12818
|
-
if (
|
|
12818
|
+
if (p14) return o4;
|
|
12819
12819
|
}
|
|
12820
12820
|
return -1;
|
|
12821
12821
|
}
|
|
@@ -12859,8 +12859,8 @@ var MineRender = (() => {
|
|
|
12859
12859
|
function I2(t5, r5, e6) {
|
|
12860
12860
|
e6 = Math.min(t5.length, e6);
|
|
12861
12861
|
for (var n4 = [], i4 = r5; i4 < e6; ) {
|
|
12862
|
-
var o4, f4, u4, s4, h5 = t5[i4], a4 = null,
|
|
12863
|
-
if (i4 +
|
|
12862
|
+
var o4, f4, u4, s4, h5 = t5[i4], a4 = null, p14 = h5 > 239 ? 4 : h5 > 223 ? 3 : h5 > 191 ? 2 : 1;
|
|
12863
|
+
if (i4 + p14 <= e6) switch (p14) {
|
|
12864
12864
|
case 1:
|
|
12865
12865
|
h5 < 128 && (a4 = h5);
|
|
12866
12866
|
break;
|
|
@@ -12873,7 +12873,7 @@ var MineRender = (() => {
|
|
|
12873
12873
|
case 4:
|
|
12874
12874
|
o4 = t5[i4 + 1], f4 = t5[i4 + 2], u4 = t5[i4 + 3], 128 == (192 & o4) && 128 == (192 & f4) && 128 == (192 & u4) && (s4 = (15 & h5) << 18 | (63 & o4) << 12 | (63 & f4) << 6 | 63 & u4) > 65535 && s4 < 1114112 && (a4 = s4);
|
|
12875
12875
|
}
|
|
12876
|
-
null === a4 ? (a4 = 65533,
|
|
12876
|
+
null === a4 ? (a4 = 65533, p14 = 1) : a4 > 65535 && (a4 -= 65536, n4.push(a4 >>> 10 & 1023 | 55296), a4 = 56320 | 1023 & a4), n4.push(a4), i4 += p14;
|
|
12877
12877
|
}
|
|
12878
12878
|
return function(t6) {
|
|
12879
12879
|
var r6 = t6.length;
|
|
@@ -14939,10 +14939,10 @@ var MineRender = (() => {
|
|
|
14939
14939
|
key: "join",
|
|
14940
14940
|
value: function join(s4) {
|
|
14941
14941
|
if (this.length === 0) return "";
|
|
14942
|
-
var
|
|
14943
|
-
var ret = "" +
|
|
14944
|
-
while (
|
|
14945
|
-
ret += s4 +
|
|
14942
|
+
var p14 = this.head;
|
|
14943
|
+
var ret = "" + p14.data;
|
|
14944
|
+
while (p14 = p14.next) {
|
|
14945
|
+
ret += s4 + p14.data;
|
|
14946
14946
|
}
|
|
14947
14947
|
return ret;
|
|
14948
14948
|
}
|
|
@@ -14951,12 +14951,12 @@ var MineRender = (() => {
|
|
|
14951
14951
|
value: function concat2(n4) {
|
|
14952
14952
|
if (this.length === 0) return Buffer2.alloc(0);
|
|
14953
14953
|
var ret = Buffer2.allocUnsafe(n4 >>> 0);
|
|
14954
|
-
var
|
|
14954
|
+
var p14 = this.head;
|
|
14955
14955
|
var i4 = 0;
|
|
14956
|
-
while (
|
|
14957
|
-
copyBuffer(
|
|
14958
|
-
i4 +=
|
|
14959
|
-
|
|
14956
|
+
while (p14) {
|
|
14957
|
+
copyBuffer(p14.data, ret, i4);
|
|
14958
|
+
i4 += p14.data.length;
|
|
14959
|
+
p14 = p14.next;
|
|
14960
14960
|
}
|
|
14961
14961
|
return ret;
|
|
14962
14962
|
}
|
|
@@ -14984,12 +14984,12 @@ var MineRender = (() => {
|
|
|
14984
14984
|
}, {
|
|
14985
14985
|
key: "_getString",
|
|
14986
14986
|
value: function _getString(n4) {
|
|
14987
|
-
var
|
|
14987
|
+
var p14 = this.head;
|
|
14988
14988
|
var c4 = 1;
|
|
14989
|
-
var ret =
|
|
14989
|
+
var ret = p14.data;
|
|
14990
14990
|
n4 -= ret.length;
|
|
14991
|
-
while (
|
|
14992
|
-
var str =
|
|
14991
|
+
while (p14 = p14.next) {
|
|
14992
|
+
var str = p14.data;
|
|
14993
14993
|
var nb = n4 > str.length ? str.length : n4;
|
|
14994
14994
|
if (nb === str.length) ret += str;
|
|
14995
14995
|
else ret += str.slice(0, n4);
|
|
@@ -14997,11 +14997,11 @@ var MineRender = (() => {
|
|
|
14997
14997
|
if (n4 === 0) {
|
|
14998
14998
|
if (nb === str.length) {
|
|
14999
14999
|
++c4;
|
|
15000
|
-
if (
|
|
15000
|
+
if (p14.next) this.head = p14.next;
|
|
15001
15001
|
else this.head = this.tail = null;
|
|
15002
15002
|
} else {
|
|
15003
|
-
this.head =
|
|
15004
|
-
|
|
15003
|
+
this.head = p14;
|
|
15004
|
+
p14.data = str.slice(nb);
|
|
15005
15005
|
}
|
|
15006
15006
|
break;
|
|
15007
15007
|
}
|
|
@@ -15015,23 +15015,23 @@ var MineRender = (() => {
|
|
|
15015
15015
|
key: "_getBuffer",
|
|
15016
15016
|
value: function _getBuffer(n4) {
|
|
15017
15017
|
var ret = Buffer2.allocUnsafe(n4);
|
|
15018
|
-
var
|
|
15018
|
+
var p14 = this.head;
|
|
15019
15019
|
var c4 = 1;
|
|
15020
|
-
|
|
15021
|
-
n4 -=
|
|
15022
|
-
while (
|
|
15023
|
-
var buf =
|
|
15020
|
+
p14.data.copy(ret);
|
|
15021
|
+
n4 -= p14.data.length;
|
|
15022
|
+
while (p14 = p14.next) {
|
|
15023
|
+
var buf = p14.data;
|
|
15024
15024
|
var nb = n4 > buf.length ? buf.length : n4;
|
|
15025
15025
|
buf.copy(ret, ret.length - n4, 0, nb);
|
|
15026
15026
|
n4 -= nb;
|
|
15027
15027
|
if (n4 === 0) {
|
|
15028
15028
|
if (nb === buf.length) {
|
|
15029
15029
|
++c4;
|
|
15030
|
-
if (
|
|
15030
|
+
if (p14.next) this.head = p14.next;
|
|
15031
15031
|
else this.head = this.tail = null;
|
|
15032
15032
|
} else {
|
|
15033
|
-
this.head =
|
|
15034
|
-
|
|
15033
|
+
this.head = p14;
|
|
15034
|
+
p14.data = buf.slice(nb);
|
|
15035
15035
|
}
|
|
15036
15036
|
break;
|
|
15037
15037
|
}
|
|
@@ -16321,11 +16321,11 @@ var MineRender = (() => {
|
|
|
16321
16321
|
var decoder = new StringDecoder(enc);
|
|
16322
16322
|
this._readableState.decoder = decoder;
|
|
16323
16323
|
this._readableState.encoding = this._readableState.decoder.encoding;
|
|
16324
|
-
var
|
|
16324
|
+
var p14 = this._readableState.buffer.head;
|
|
16325
16325
|
var content = "";
|
|
16326
|
-
while (
|
|
16327
|
-
content += decoder.write(
|
|
16328
|
-
|
|
16326
|
+
while (p14 !== null) {
|
|
16327
|
+
content += decoder.write(p14.data);
|
|
16328
|
+
p14 = p14.next;
|
|
16329
16329
|
}
|
|
16330
16330
|
this._readableState.buffer.clear();
|
|
16331
16331
|
if (content !== "") this._readableState.buffer.push(content);
|
|
@@ -17068,8 +17068,8 @@ var MineRender = (() => {
|
|
|
17068
17068
|
} }, t$13 = [], e$23 = [], n$23 = "undefined" != typeof Uint8Array ? Uint8Array : Array, o$23 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a$13 = 0, h$13 = o$23.length; a$13 < h$13; ++a$13) t$13[a$13] = o$23[a$13], e$23[o$23.charCodeAt(a$13)] = a$13;
|
|
17069
17069
|
e$23["-".charCodeAt(0)] = 62, e$23["_".charCodeAt(0)] = 63;
|
|
17070
17070
|
a$1$1 = { read: function(a4, t5, o4, r5, h5) {
|
|
17071
|
-
var M4, f4,
|
|
17072
|
-
for (N4 += n4, M4 = u4 & (1 << -i4) - 1, u4 >>= -i4, i4 +=
|
|
17071
|
+
var M4, f4, p14 = 8 * h5 - r5 - 1, w4 = (1 << p14) - 1, e6 = w4 >> 1, i4 = -7, N4 = o4 ? h5 - 1 : 0, n4 = o4 ? -1 : 1, u4 = a4[t5 + N4];
|
|
17072
|
+
for (N4 += n4, M4 = u4 & (1 << -i4) - 1, u4 >>= -i4, i4 += p14; i4 > 0; M4 = 256 * M4 + a4[t5 + N4], N4 += n4, i4 -= 8) ;
|
|
17073
17073
|
for (f4 = M4 & (1 << -i4) - 1, M4 >>= -i4, i4 += r5; i4 > 0; f4 = 256 * f4 + a4[t5 + N4], N4 += n4, i4 -= 8) ;
|
|
17074
17074
|
if (0 === M4) M4 = 1 - e6;
|
|
17075
17075
|
else {
|
|
@@ -17078,9 +17078,9 @@ var MineRender = (() => {
|
|
|
17078
17078
|
}
|
|
17079
17079
|
return (u4 ? -1 : 1) * f4 * Math.pow(2, M4 - r5);
|
|
17080
17080
|
}, write: function(a4, t5, o4, r5, h5, M4) {
|
|
17081
|
-
var f4,
|
|
17082
|
-
for (t5 = Math.abs(t5), isNaN(t5) || t5 === 1 / 0 ? (
|
|
17083
|
-
for (f4 = f4 << h5 |
|
|
17081
|
+
var f4, p14, w4, e6 = 8 * M4 - h5 - 1, i4 = (1 << e6) - 1, N4 = i4 >> 1, n4 = 23 === h5 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, u4 = r5 ? 0 : M4 - 1, l4 = r5 ? 1 : -1, s4 = t5 < 0 || 0 === t5 && 1 / t5 < 0 ? 1 : 0;
|
|
17082
|
+
for (t5 = Math.abs(t5), isNaN(t5) || t5 === 1 / 0 ? (p14 = isNaN(t5) ? 1 : 0, f4 = i4) : (f4 = Math.floor(Math.log(t5) / Math.LN2), t5 * (w4 = Math.pow(2, -f4)) < 1 && (f4--, w4 *= 2), (t5 += f4 + N4 >= 1 ? n4 / w4 : n4 * Math.pow(2, 1 - N4)) * w4 >= 2 && (f4++, w4 /= 2), f4 + N4 >= i4 ? (p14 = 0, f4 = i4) : f4 + N4 >= 1 ? (p14 = (t5 * w4 - 1) * Math.pow(2, h5), f4 += N4) : (p14 = t5 * Math.pow(2, N4 - 1) * Math.pow(2, h5), f4 = 0)); h5 >= 8; a4[o4 + u4] = 255 & p14, u4 += l4, p14 /= 256, h5 -= 8) ;
|
|
17083
|
+
for (f4 = f4 << h5 | p14, e6 += h5; e6 > 0; a4[o4 + u4] = 255 & f4, u4 += l4, f4 /= 256, e6 -= 8) ;
|
|
17084
17084
|
a4[o4 + u4 - l4] |= 128 * s4;
|
|
17085
17085
|
} };
|
|
17086
17086
|
e$1$1 = {};
|
|
@@ -17184,8 +17184,8 @@ var MineRender = (() => {
|
|
|
17184
17184
|
if (n4 >= i4) return -1;
|
|
17185
17185
|
if (r5 >= e6) return 1;
|
|
17186
17186
|
if (this === t5) return 0;
|
|
17187
|
-
for (var o4 = (i4 >>>= 0) - (n4 >>>= 0), f4 = (e6 >>>= 0) - (r5 >>>= 0), s4 = Math.min(o4, f4), h5 = this.slice(n4, i4), a4 = t5.slice(r5, e6),
|
|
17188
|
-
o4 = h5[
|
|
17187
|
+
for (var o4 = (i4 >>>= 0) - (n4 >>>= 0), f4 = (e6 >>>= 0) - (r5 >>>= 0), s4 = Math.min(o4, f4), h5 = this.slice(n4, i4), a4 = t5.slice(r5, e6), p14 = 0; p14 < s4; ++p14) if (h5[p14] !== a4[p14]) {
|
|
17188
|
+
o4 = h5[p14], f4 = a4[p14];
|
|
17189
17189
|
break;
|
|
17190
17190
|
}
|
|
17191
17191
|
return o4 < f4 ? -1 : f4 < o4 ? 1 : 0;
|
|
@@ -17785,7 +17785,7 @@ var MineRender = (() => {
|
|
|
17785
17785
|
e6.set(t6, r6);
|
|
17786
17786
|
}
|
|
17787
17787
|
function r6() {
|
|
17788
|
-
return
|
|
17788
|
+
return p14(t6, arguments, h5(this).constructor);
|
|
17789
17789
|
}
|
|
17790
17790
|
return r6.prototype = Object.create(t6.prototype, { constructor: { value: r6, enumerable: false, writable: true, configurable: true } }), g4(r6, t6);
|
|
17791
17791
|
})(t5);
|
|
@@ -17801,8 +17801,8 @@ var MineRender = (() => {
|
|
|
17801
17801
|
return false;
|
|
17802
17802
|
}
|
|
17803
17803
|
}
|
|
17804
|
-
function
|
|
17805
|
-
return (
|
|
17804
|
+
function p14(t5, e6, n5) {
|
|
17805
|
+
return (p14 = s4() ? Reflect.construct : function(t6, e7, n6) {
|
|
17806
17806
|
var r6 = [null];
|
|
17807
17807
|
r6.push.apply(r6, e7);
|
|
17808
17808
|
var o5 = new (Function.bind.apply(t6, r6))();
|
|
@@ -17841,41 +17841,41 @@ var MineRender = (() => {
|
|
|
17841
17841
|
return b4(t5, { compact: false, customInspect: false, depth: 1e3, maxArrayLength: 1 / 0, showHidden: false, breakLength: 1 / 0, showProxy: false, sorted: true, getters: true });
|
|
17842
17842
|
}
|
|
17843
17843
|
function q3(t5, e6, r6) {
|
|
17844
|
-
var o5 = "", c5 = "", a5 = 0, i4 = "", u4 = false, l4 = x4(t5), f5 = l4.split("\n"), s5 = x4(e6).split("\n"),
|
|
17844
|
+
var o5 = "", c5 = "", a5 = 0, i4 = "", u4 = false, l4 = x4(t5), f5 = l4.split("\n"), s5 = x4(e6).split("\n"), p15 = 0, g5 = "";
|
|
17845
17845
|
if ("strictEqual" === r6 && "object" === y5(t5) && "object" === y5(e6) && null !== t5 && null !== e6 && (r6 = "strictEqualObject"), 1 === f5.length && 1 === s5.length && f5[0] !== s5[0]) {
|
|
17846
17846
|
var h6 = f5[0].length + s5[0].length;
|
|
17847
17847
|
if (h6 <= 10) {
|
|
17848
17848
|
if (!("object" === y5(t5) && null !== t5 || "object" === y5(e6) && null !== e6 || 0 === t5 && 0 === e6)) return "".concat(j4[r6], "\n\n") + "".concat(f5[0], " !== ").concat(s5[0], "\n");
|
|
17849
17849
|
} else if ("strictEqualObject" !== r6) {
|
|
17850
17850
|
if (h6 < (n4.stderr && n4.stderr.isTTY ? n4.stderr.columns : 80)) {
|
|
17851
|
-
for (; f5[0][
|
|
17852
|
-
|
|
17851
|
+
for (; f5[0][p15] === s5[0][p15]; ) p15++;
|
|
17852
|
+
p15 > 2 && (g5 = "\n ".concat(function(t6, e7) {
|
|
17853
17853
|
if (e7 = Math.floor(e7), 0 == t6.length || 0 == e7) return "";
|
|
17854
17854
|
var n5 = t6.length * e7;
|
|
17855
17855
|
for (e7 = Math.floor(Math.log(e7) / Math.log(2)); e7; ) t6 += t6, e7--;
|
|
17856
17856
|
return t6 += t6.substring(0, n5 - t6.length);
|
|
17857
|
-
}(" ",
|
|
17857
|
+
}(" ", p15), "^"), p15 = 0);
|
|
17858
17858
|
}
|
|
17859
17859
|
}
|
|
17860
17860
|
}
|
|
17861
|
-
for (var b5 = f5[f5.length - 1], v6 = s5[s5.length - 1]; b5 === v6 && (
|
|
17861
|
+
for (var b5 = f5[f5.length - 1], v6 = s5[s5.length - 1]; b5 === v6 && (p15++ < 2 ? i4 = "\n ".concat(b5).concat(i4) : o5 = b5, f5.pop(), s5.pop(), 0 !== f5.length && 0 !== s5.length); ) b5 = f5[f5.length - 1], v6 = s5[s5.length - 1];
|
|
17862
17862
|
var O5 = Math.max(f5.length, s5.length);
|
|
17863
17863
|
if (0 === O5) {
|
|
17864
17864
|
var q4 = l4.split("\n");
|
|
17865
17865
|
if (q4.length > 30) for (q4[26] = "".concat(m4, "...").concat(S4); q4.length > 27; ) q4.pop();
|
|
17866
17866
|
return "".concat(j4.notIdentical, "\n\n").concat(q4.join("\n"), "\n");
|
|
17867
17867
|
}
|
|
17868
|
-
|
|
17868
|
+
p15 > 3 && (i4 = "\n".concat(m4, "...").concat(S4).concat(i4), u4 = true), "" !== o5 && (i4 = "\n ".concat(o5).concat(i4), o5 = "");
|
|
17869
17869
|
var R5 = 0, A4 = j4[r6] + "\n".concat(E4, "+ actual").concat(S4, " ").concat(w4, "- expected").concat(S4), k4 = " ".concat(m4, "...").concat(S4, " Lines skipped");
|
|
17870
|
-
for (
|
|
17871
|
-
var _4 =
|
|
17872
|
-
if (f5.length <
|
|
17873
|
-
else if (s5.length <
|
|
17870
|
+
for (p15 = 0; p15 < O5; p15++) {
|
|
17871
|
+
var _4 = p15 - a5;
|
|
17872
|
+
if (f5.length < p15 + 1) _4 > 1 && p15 > 2 && (_4 > 4 ? (c5 += "\n".concat(m4, "...").concat(S4), u4 = true) : _4 > 3 && (c5 += "\n ".concat(s5[p15 - 2]), R5++), c5 += "\n ".concat(s5[p15 - 1]), R5++), a5 = p15, o5 += "\n".concat(w4, "-").concat(S4, " ").concat(s5[p15]), R5++;
|
|
17873
|
+
else if (s5.length < p15 + 1) _4 > 1 && p15 > 2 && (_4 > 4 ? (c5 += "\n".concat(m4, "...").concat(S4), u4 = true) : _4 > 3 && (c5 += "\n ".concat(f5[p15 - 2]), R5++), c5 += "\n ".concat(f5[p15 - 1]), R5++), a5 = p15, c5 += "\n".concat(E4, "+").concat(S4, " ").concat(f5[p15]), R5++;
|
|
17874
17874
|
else {
|
|
17875
|
-
var T5 = s5[
|
|
17876
|
-
I4 && d4(T5, ",") && T5.slice(0, -1) === P5 && (I4 = false, P5 += ","), I4 ? (_4 > 1 &&
|
|
17875
|
+
var T5 = s5[p15], P5 = f5[p15], I4 = P5 !== T5 && (!d4(P5, ",") || P5.slice(0, -1) !== T5);
|
|
17876
|
+
I4 && d4(T5, ",") && T5.slice(0, -1) === P5 && (I4 = false, P5 += ","), I4 ? (_4 > 1 && p15 > 2 && (_4 > 4 ? (c5 += "\n".concat(m4, "...").concat(S4), u4 = true) : _4 > 3 && (c5 += "\n ".concat(f5[p15 - 2]), R5++), c5 += "\n ".concat(f5[p15 - 1]), R5++), a5 = p15, c5 += "\n".concat(E4, "+").concat(S4, " ").concat(P5), o5 += "\n".concat(w4, "-").concat(S4, " ").concat(T5), R5 += 2) : (c5 += o5, o5 = "", 1 !== _4 && 0 !== p15 || (c5 += "\n ".concat(P5), R5++));
|
|
17877
17877
|
}
|
|
17878
|
-
if (R5 > 20 &&
|
|
17878
|
+
if (R5 > 20 && p15 < O5 - 2) return "".concat(A4).concat(k4, "\n").concat(c5, "\n").concat(m4, "...").concat(S4).concat(o5, "\n") + "".concat(m4, "...").concat(S4);
|
|
17879
17879
|
}
|
|
17880
17880
|
return "".concat(A4).concat(u4 ? k4 : "", "\n").concat(c5).concat(o5).concat(i4).concat(g5);
|
|
17881
17881
|
}
|
|
@@ -17889,9 +17889,9 @@ var MineRender = (() => {
|
|
|
17889
17889
|
if (Error.stackTraceLimit = 0, null != o5) r6 = c4(this, h5(e6).call(this, String(o5)));
|
|
17890
17890
|
else if (n4.stderr && n4.stderr.isTTY && (n4.stderr && n4.stderr.getColorDepth && 1 !== n4.stderr.getColorDepth() ? (m4 = "\x1B[34m", E4 = "\x1B[32m", S4 = "\x1B[39m", w4 = "\x1B[31m") : (m4 = "", E4 = "", S4 = "", w4 = "")), "object" === y5(l4) && null !== l4 && "object" === y5(f5) && null !== f5 && "stack" in l4 && l4 instanceof Error && "stack" in f5 && f5 instanceof Error && (l4 = O4(l4), f5 = O4(f5)), "deepStrictEqual" === i5 || "strictEqual" === i5) r6 = c4(this, h5(e6).call(this, q3(l4, f5, i5)));
|
|
17891
17891
|
else if ("notDeepStrictEqual" === i5 || "notStrictEqual" === i5) {
|
|
17892
|
-
var
|
|
17893
|
-
if ("notStrictEqual" === i5 && "object" === y5(l4) && null !== l4 && (
|
|
17894
|
-
r6 = 1 === g5.length ? c4(this, h5(e6).call(this, "".concat(
|
|
17892
|
+
var p15 = j4[i5], g5 = x4(l4).split("\n");
|
|
17893
|
+
if ("notStrictEqual" === i5 && "object" === y5(l4) && null !== l4 && (p15 = j4.notStrictEqualObject), g5.length > 30) for (g5[26] = "".concat(m4, "...").concat(S4); g5.length > 27; ) g5.pop();
|
|
17894
|
+
r6 = 1 === g5.length ? c4(this, h5(e6).call(this, "".concat(p15, " ").concat(g5[0]))) : c4(this, h5(e6).call(this, "".concat(p15, "\n\n").concat(g5.join("\n"), "\n")));
|
|
17895
17895
|
} else {
|
|
17896
17896
|
var b5 = x4(l4), d5 = "", R5 = j4[i5];
|
|
17897
17897
|
"notDeepEqual" === i5 || "notEqual" === i5 ? (b5 = "".concat(j4[i5], "\n\n").concat(b5)).length > 1024 && (b5 = "".concat(b5.slice(0, 1021), "...")) : (d5 = "".concat(x4(f5)), b5.length > 512 && (b5 = "".concat(b5.slice(0, 509), "...")), d5.length > 512 && (d5 = "".concat(d5.slice(0, 509), "...")), "deepEqual" === i5 || "equal" === i5 ? b5 = "".concat(R5, "\n\n").concat(b5, "\n\nshould equal\n\n") : d5 = " ".concat(i5, " ").concat(d5)), r6 = c4(this, h5(e6).call(this, "".concat(b5).concat(d5)));
|
|
@@ -18044,8 +18044,8 @@ var MineRender = (() => {
|
|
|
18044
18044
|
var s4 = v$1(e6);
|
|
18045
18045
|
if (u4.length !== s4.length && z3(e6, s4).length !== l4) return false;
|
|
18046
18046
|
} else {
|
|
18047
|
-
var
|
|
18048
|
-
if (0 !==
|
|
18047
|
+
var p14 = v$1(e6);
|
|
18048
|
+
if (0 !== p14.length && 0 !== z3(e6, p14).length) return false;
|
|
18049
18049
|
}
|
|
18050
18050
|
}
|
|
18051
18051
|
if (0 === c4.length && (0 === o4 || 1 === o4 && 0 === t5.length || 0 === t5.size)) return true;
|
|
@@ -18178,7 +18178,7 @@ var MineRender = (() => {
|
|
|
18178
18178
|
return t6 && "function" == typeof Symbol && t6.constructor === Symbol && t6 !== Symbol.prototype ? "symbol" : typeof t6;
|
|
18179
18179
|
})(t5);
|
|
18180
18180
|
}
|
|
18181
|
-
var a4, u4, l4 = i$5().codes, s4 = l4.ERR_AMBIGUOUS_ARGUMENT,
|
|
18181
|
+
var a4, u4, l4 = i$5().codes, s4 = l4.ERR_AMBIGUOUS_ARGUMENT, p14 = l4.ERR_INVALID_ARG_TYPE, g4 = l4.ERR_INVALID_ARG_VALUE, h5 = l4.ERR_INVALID_RETURN_VALUE, y5 = l4.ERR_MISSING_ARGS, b4 = f$6(), v5 = X.inspect, d4 = X.types, m$13 = d4.isPromise, E4 = d4.isRegExp, w4 = Object.assign ? Object.assign : r4.assign, S4 = Object.is ? Object.is : m3;
|
|
18182
18182
|
function j4() {
|
|
18183
18183
|
a4 = X2.isDeepEqual, u4 = X2.isDeepStrictEqual;
|
|
18184
18184
|
}
|
|
@@ -18263,7 +18263,7 @@ var MineRender = (() => {
|
|
|
18263
18263
|
function P5(t5, e6, n4, r5) {
|
|
18264
18264
|
if ("function" != typeof e6) {
|
|
18265
18265
|
if (E4(e6)) return e6.test(t5);
|
|
18266
|
-
if (2 === arguments.length) throw new
|
|
18266
|
+
if (2 === arguments.length) throw new p14("expected", ["Function", "RegExp"], e6);
|
|
18267
18267
|
if ("object" !== c4(t5) || null === t5) {
|
|
18268
18268
|
var o5 = new b4({ actual: t5, expected: e6, message: n4, operator: "deepStrictEqual", stackStartFn: r5 });
|
|
18269
18269
|
throw o5.operator = r5.name, o5;
|
|
@@ -18278,7 +18278,7 @@ var MineRender = (() => {
|
|
|
18278
18278
|
return void 0 !== e6.prototype && t5 instanceof e6 || !Error.isPrototypeOf(e6) && true === e6.call({}, t5);
|
|
18279
18279
|
}
|
|
18280
18280
|
function I4(t5) {
|
|
18281
|
-
if ("function" != typeof t5) throw new
|
|
18281
|
+
if ("function" != typeof t5) throw new p14("fn", "Function", t5);
|
|
18282
18282
|
try {
|
|
18283
18283
|
t5();
|
|
18284
18284
|
} catch (t6) {
|
|
@@ -18295,7 +18295,7 @@ var MineRender = (() => {
|
|
|
18295
18295
|
if ("function" == typeof t5) {
|
|
18296
18296
|
if (!D4(e6 = t5())) throw new h5("instance of Promise", "promiseFn", e6);
|
|
18297
18297
|
} else {
|
|
18298
|
-
if (!D4(t5)) throw new
|
|
18298
|
+
if (!D4(t5)) throw new p14("promiseFn", ["Function", "Promise"], t5);
|
|
18299
18299
|
e6 = t5;
|
|
18300
18300
|
}
|
|
18301
18301
|
return Promise.resolve().then(function() {
|
|
@@ -18309,12 +18309,12 @@ var MineRender = (() => {
|
|
|
18309
18309
|
}
|
|
18310
18310
|
function N4(t5, e6, n4, r5) {
|
|
18311
18311
|
if ("string" == typeof n4) {
|
|
18312
|
-
if (4 === arguments.length) throw new
|
|
18312
|
+
if (4 === arguments.length) throw new p14("error", ["Object", "Error", "Function", "RegExp"], n4);
|
|
18313
18313
|
if ("object" === c4(e6) && null !== e6) {
|
|
18314
18314
|
if (e6.message === n4) throw new s4("error/message", 'The error message "'.concat(e6.message, '" is identical to the message.'));
|
|
18315
18315
|
} else if (e6 === n4) throw new s4("error/message", 'The error "'.concat(e6, '" is identical to the message.'));
|
|
18316
18316
|
r5 = n4, n4 = void 0;
|
|
18317
|
-
} else if (null != n4 && "object" !== c4(n4) && "function" != typeof n4) throw new
|
|
18317
|
+
} else if (null != n4 && "object" !== c4(n4) && "function" != typeof n4) throw new p14("error", ["Object", "Error", "Function", "RegExp"], n4);
|
|
18318
18318
|
if (e6 === q3) {
|
|
18319
18319
|
var o5 = "";
|
|
18320
18320
|
n4 && n4.name && (o5 += " (".concat(n4.name, ")")), o5 += r5 ? ": ".concat(r5) : ".";
|
|
@@ -18373,7 +18373,7 @@ var MineRender = (() => {
|
|
|
18373
18373
|
}
|
|
18374
18374
|
}, x4.strict = w4(M4, x4, { equal: x4.strictEqual, deepEqual: x4.deepStrictEqual, notEqual: x4.notStrictEqual, notDeepEqual: x4.notDeepStrictEqual }), x4.strict.strict = x4.strict, Z2;
|
|
18375
18375
|
}
|
|
18376
|
-
var r4, t4, e$13, r$12, n4, o4, c4, l4, i4, a4, u4, f4,
|
|
18376
|
+
var r4, t4, e$13, r$12, n4, o4, c4, l4, i4, a4, u4, f4, p14, s4, y4, b3, g3, h4, $2, j3, w3, r$22, e$22, o$13, n$13, a$12, c$13, l$13, u$13, f$13, t$12, f$22, e$3, l$22, t$22, n$22, o$22, r$3, e$4, o$32, t$32, n$3, y$1, a$22, i$13, d3, f$3, u$23, A3, l$3, v4, P3, c$22, t$4, p$12, o$4, i$22, a$3, l$4, r$4, n$4, i$3, o$5, c$3, f$4, u$3, s$13, a$4, l$5, p$2, m3, N3, e$5, i$4, n$5, t$5, u$4, a$5, m$12, o$6, s$2, f$5, c$4, a$6, u$5, l$6, g$1, h$12, y$2, b$1, v$1, d$12, E3, w$1, S3, j$1, O3, x3, q2, R3, A$1, k3, _3, T3, P$1, I3, D3, F3, N$1, L3, M3, X2, Z2, $$1, et;
|
|
18377
18377
|
var init_chunk_CjPlbOtt = __esm({
|
|
18378
18378
|
"../../node_modules/@jspm/core/nodelibs/browser/chunk-CjPlbOtt.js"() {
|
|
18379
18379
|
init_dirname();
|
|
@@ -18393,10 +18393,10 @@ var MineRender = (() => {
|
|
|
18393
18393
|
}, "prototype"), u4 = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"], f4 = function(t5) {
|
|
18394
18394
|
var e6 = t5.constructor;
|
|
18395
18395
|
return e6 && e6.prototype === t5;
|
|
18396
|
-
},
|
|
18396
|
+
}, p14 = { $applicationCache: true, $console: true, $external: true, $frame: true, $frameElement: true, $frames: true, $innerHeight: true, $innerWidth: true, $onmozfullscreenchange: true, $onmozfullscreenerror: true, $outerHeight: true, $outerWidth: true, $pageXOffset: true, $pageYOffset: true, $parent: true, $scrollLeft: true, $scrollTop: true, $scrollX: true, $scrollY: true, $self: true, $webkitIndexedDB: true, $webkitStorageInfo: true, $window: true }, s4 = function() {
|
|
18397
18397
|
if ("undefined" == typeof window) return false;
|
|
18398
18398
|
for (var t5 in window) try {
|
|
18399
|
-
if (!
|
|
18399
|
+
if (!p14["$" + t5] && n4.call(window, t5) && null !== window[t5] && "object" == typeof window[t5]) try {
|
|
18400
18400
|
f4(window[t5]);
|
|
18401
18401
|
} catch (t6) {
|
|
18402
18402
|
return true;
|
|
@@ -18407,10 +18407,10 @@ var MineRender = (() => {
|
|
|
18407
18407
|
return false;
|
|
18408
18408
|
}();
|
|
18409
18409
|
t4 = function(t5) {
|
|
18410
|
-
var e6 = null !== t5 && "object" == typeof t5, r5 = "[object Function]" === o4.call(t5), l5 = c4(t5),
|
|
18410
|
+
var e6 = null !== t5 && "object" == typeof t5, r5 = "[object Function]" === o4.call(t5), l5 = c4(t5), p15 = e6 && "[object String]" === o4.call(t5), y5 = [];
|
|
18411
18411
|
if (!e6 && !r5 && !l5) throw new TypeError("Object.keys called on a non-object");
|
|
18412
18412
|
var b4 = a4 && r5;
|
|
18413
|
-
if (
|
|
18413
|
+
if (p15 && t5.length > 0 && !n4.call(t5, 0)) for (var g4 = 0; g4 < t5.length; ++g4) y5.push(String(g4));
|
|
18414
18414
|
if (l5 && t5.length > 0) for (var h5 = 0; h5 < t5.length; ++h5) y5.push(String(h5));
|
|
18415
18415
|
else for (var $3 in t5) b4 && "prototype" === $3 || !n4.call(t5, $3) || y5.push(String($3));
|
|
18416
18416
|
if (i4) for (var j4 = function(t6) {
|
|
@@ -18497,19 +18497,19 @@ var MineRender = (() => {
|
|
|
18497
18497
|
r$3 = function(r5) {
|
|
18498
18498
|
var e6 = this;
|
|
18499
18499
|
if ("function" != typeof e6 || "[object Function]" !== o$22.call(e6)) throw new TypeError(t$22 + e6);
|
|
18500
|
-
for (var
|
|
18501
|
-
if (this instanceof
|
|
18500
|
+
for (var p14, i4 = n$22.call(arguments, 1), c4 = function() {
|
|
18501
|
+
if (this instanceof p14) {
|
|
18502
18502
|
var t5 = e6.apply(this, i4.concat(n$22.call(arguments)));
|
|
18503
18503
|
return Object(t5) === t5 ? t5 : this;
|
|
18504
18504
|
}
|
|
18505
18505
|
return e6.apply(r5, i4.concat(n$22.call(arguments)));
|
|
18506
18506
|
}, a4 = Math.max(0, e6.length - i4.length), l4 = [], u4 = 0; u4 < a4; u4++) l4.push("$" + u4);
|
|
18507
|
-
if (
|
|
18507
|
+
if (p14 = Function("binder", "return function (" + l4.join(",") + "){ return binder.apply(this,arguments); }")(c4), e6.prototype) {
|
|
18508
18508
|
var y5 = function() {
|
|
18509
18509
|
};
|
|
18510
|
-
y5.prototype = e6.prototype,
|
|
18510
|
+
y5.prototype = e6.prototype, p14.prototype = new y5(), y5.prototype = null;
|
|
18511
18511
|
}
|
|
18512
|
-
return
|
|
18512
|
+
return p14;
|
|
18513
18513
|
};
|
|
18514
18514
|
e$4 = Function.prototype.bind || r$3;
|
|
18515
18515
|
o$32 = TypeError;
|
|
@@ -19118,9 +19118,9 @@ var MineRender = (() => {
|
|
|
19118
19118
|
if (typeof source !== "object") {
|
|
19119
19119
|
throw new TypeError(source + "must be non-object");
|
|
19120
19120
|
}
|
|
19121
|
-
for (var
|
|
19122
|
-
if (_has(source,
|
|
19123
|
-
obj[
|
|
19121
|
+
for (var p14 in source) {
|
|
19122
|
+
if (_has(source, p14)) {
|
|
19123
|
+
obj[p14] = source[p14];
|
|
19124
19124
|
}
|
|
19125
19125
|
}
|
|
19126
19126
|
}
|
|
@@ -20064,7 +20064,7 @@ var MineRender = (() => {
|
|
|
20064
20064
|
}
|
|
20065
20065
|
function fill_window(s4) {
|
|
20066
20066
|
var _w_size = s4.w_size;
|
|
20067
|
-
var
|
|
20067
|
+
var p14, n4, m4, more, str;
|
|
20068
20068
|
do {
|
|
20069
20069
|
more = s4.window_size - s4.lookahead - s4.strstart;
|
|
20070
20070
|
if (s4.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD2)) {
|
|
@@ -20073,16 +20073,16 @@ var MineRender = (() => {
|
|
|
20073
20073
|
s4.strstart -= _w_size;
|
|
20074
20074
|
s4.block_start -= _w_size;
|
|
20075
20075
|
n4 = s4.hash_size;
|
|
20076
|
-
|
|
20076
|
+
p14 = n4;
|
|
20077
20077
|
do {
|
|
20078
|
-
m4 = s4.head[--
|
|
20079
|
-
s4.head[
|
|
20078
|
+
m4 = s4.head[--p14];
|
|
20079
|
+
s4.head[p14] = m4 >= _w_size ? m4 - _w_size : 0;
|
|
20080
20080
|
} while (--n4);
|
|
20081
20081
|
n4 = _w_size;
|
|
20082
|
-
|
|
20082
|
+
p14 = n4;
|
|
20083
20083
|
do {
|
|
20084
|
-
m4 = s4.prev[--
|
|
20085
|
-
s4.prev[
|
|
20084
|
+
m4 = s4.prev[--p14];
|
|
20085
|
+
s4.prev[p14] = m4 >= _w_size ? m4 - _w_size : 0;
|
|
20086
20086
|
} while (--n4);
|
|
20087
20087
|
more += _w_size;
|
|
20088
20088
|
}
|
|
@@ -26092,12 +26092,12 @@ var MineRender = (() => {
|
|
|
26092
26092
|
return v5;
|
|
26093
26093
|
}
|
|
26094
26094
|
function resolveSchema(root, ref) {
|
|
26095
|
-
var
|
|
26095
|
+
var p14 = URI.parse(ref), refPath = _getFullPath(p14), baseId = getFullPath(this._getId(root.schema));
|
|
26096
26096
|
if (Object.keys(root.schema).length === 0 || refPath !== baseId) {
|
|
26097
26097
|
var id = normalizeId(refPath);
|
|
26098
26098
|
var refVal = this._refs[id];
|
|
26099
26099
|
if (typeof refVal == "string") {
|
|
26100
|
-
return resolveRecursive.call(this, root, refVal,
|
|
26100
|
+
return resolveRecursive.call(this, root, refVal, p14);
|
|
26101
26101
|
} else if (refVal instanceof SchemaObject) {
|
|
26102
26102
|
if (!refVal.validate) this._compile(refVal);
|
|
26103
26103
|
root = refVal;
|
|
@@ -26115,7 +26115,7 @@ var MineRender = (() => {
|
|
|
26115
26115
|
if (!root.schema) return;
|
|
26116
26116
|
baseId = getFullPath(this._getId(root.schema));
|
|
26117
26117
|
}
|
|
26118
|
-
return getJsonPointer.call(this,
|
|
26118
|
+
return getJsonPointer.call(this, p14, baseId, root.schema, root);
|
|
26119
26119
|
}
|
|
26120
26120
|
function resolveRecursive(root, ref, parsedRef) {
|
|
26121
26121
|
var res = resolveSchema.call(this, root, ref);
|
|
@@ -26220,11 +26220,11 @@ var MineRender = (() => {
|
|
|
26220
26220
|
}
|
|
26221
26221
|
function getFullPath(id, normalize2) {
|
|
26222
26222
|
if (normalize2 !== false) id = normalizeId(id);
|
|
26223
|
-
var
|
|
26224
|
-
return _getFullPath(
|
|
26223
|
+
var p14 = URI.parse(id);
|
|
26224
|
+
return _getFullPath(p14);
|
|
26225
26225
|
}
|
|
26226
|
-
function _getFullPath(
|
|
26227
|
-
return URI.serialize(
|
|
26226
|
+
function _getFullPath(p14) {
|
|
26227
|
+
return URI.serialize(p14).split("#")[0] + "#";
|
|
26228
26228
|
}
|
|
26229
26229
|
var TRAILING_SLASH_HASH = /#\/?$/;
|
|
26230
26230
|
function normalizeId(id) {
|
|
@@ -29112,8 +29112,8 @@ var MineRender = (() => {
|
|
|
29112
29112
|
if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) {
|
|
29113
29113
|
var $requiredHash = it.util.toHash($required);
|
|
29114
29114
|
}
|
|
29115
|
-
function notProto(
|
|
29116
|
-
return
|
|
29115
|
+
function notProto(p14) {
|
|
29116
|
+
return p14 !== "__proto__";
|
|
29117
29117
|
}
|
|
29118
29118
|
out += "var " + $errs + " = errors;var " + $nextValid + " = true;";
|
|
29119
29119
|
if ($ownProperties) {
|
|
@@ -30048,19 +30048,19 @@ var MineRender = (() => {
|
|
|
30048
30048
|
callback = meta;
|
|
30049
30049
|
meta = void 0;
|
|
30050
30050
|
}
|
|
30051
|
-
var
|
|
30051
|
+
var p14 = loadMetaSchemaOf(schema).then(function() {
|
|
30052
30052
|
var schemaObj = self2._addSchema(schema, void 0, meta);
|
|
30053
30053
|
return schemaObj.validate || _compileAsync(schemaObj);
|
|
30054
30054
|
});
|
|
30055
30055
|
if (callback) {
|
|
30056
|
-
|
|
30056
|
+
p14.then(
|
|
30057
30057
|
function(v5) {
|
|
30058
30058
|
callback(null, v5);
|
|
30059
30059
|
},
|
|
30060
30060
|
callback
|
|
30061
30061
|
);
|
|
30062
30062
|
}
|
|
30063
|
-
return
|
|
30063
|
+
return p14;
|
|
30064
30064
|
function loadMetaSchemaOf(sch) {
|
|
30065
30065
|
var $schema = sch.$schema;
|
|
30066
30066
|
return $schema && !self2.getSchema($schema) ? compileAsync.call(self2, { $ref: $schema }, true) : Promise.resolve();
|
|
@@ -33128,12 +33128,12 @@ var MineRender = (() => {
|
|
|
33128
33128
|
});
|
|
33129
33129
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
33130
33130
|
}
|
|
33131
|
-
function _setPrototypeOf(o4,
|
|
33132
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o5,
|
|
33133
|
-
o5.__proto__ =
|
|
33131
|
+
function _setPrototypeOf(o4, p14) {
|
|
33132
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o5, p15) {
|
|
33133
|
+
o5.__proto__ = p15;
|
|
33134
33134
|
return o5;
|
|
33135
33135
|
};
|
|
33136
|
-
return _setPrototypeOf(o4,
|
|
33136
|
+
return _setPrototypeOf(o4, p14);
|
|
33137
33137
|
}
|
|
33138
33138
|
function _createSuper(Derived) {
|
|
33139
33139
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
@@ -33484,12 +33484,12 @@ var MineRender = (() => {
|
|
|
33484
33484
|
function _isNativeFunction(fn) {
|
|
33485
33485
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
33486
33486
|
}
|
|
33487
|
-
function _setPrototypeOf(o4,
|
|
33488
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o5,
|
|
33489
|
-
o5.__proto__ =
|
|
33487
|
+
function _setPrototypeOf(o4, p14) {
|
|
33488
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o5, p15) {
|
|
33489
|
+
o5.__proto__ = p15;
|
|
33490
33490
|
return o5;
|
|
33491
33491
|
};
|
|
33492
|
-
return _setPrototypeOf(o4,
|
|
33492
|
+
return _setPrototypeOf(o4, p14);
|
|
33493
33493
|
}
|
|
33494
33494
|
function _getPrototypeOf(o4) {
|
|
33495
33495
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o5) {
|
|
@@ -35978,20 +35978,20 @@ var MineRender = (() => {
|
|
|
35978
35978
|
validateProtocol(protocol) {
|
|
35979
35979
|
let valid = this.ajv.validate("protocol", protocol);
|
|
35980
35980
|
assert2.ok(valid, JSON.stringify(this.ajv.errors, null, 2));
|
|
35981
|
-
function validateTypes(
|
|
35981
|
+
function validateTypes(p14, originalValidator, path) {
|
|
35982
35982
|
const v5 = new _Validator(originalValidator.typesSchemas);
|
|
35983
|
-
Object.keys(
|
|
35983
|
+
Object.keys(p14).forEach((k4) => {
|
|
35984
35984
|
if (k4 == "types") {
|
|
35985
|
-
Object.keys(
|
|
35986
|
-
Object.keys(
|
|
35985
|
+
Object.keys(p14[k4]).forEach((typeName) => v5.addType(typeName));
|
|
35986
|
+
Object.keys(p14[k4]).forEach((typeName) => {
|
|
35987
35987
|
try {
|
|
35988
|
-
v5.validateType(
|
|
35988
|
+
v5.validateType(p14[k4][typeName], path + "." + k4 + "." + typeName);
|
|
35989
35989
|
} catch (e6) {
|
|
35990
35990
|
throw new Error("Error at " + path + "." + k4 + "." + typeName);
|
|
35991
35991
|
}
|
|
35992
35992
|
});
|
|
35993
35993
|
} else {
|
|
35994
|
-
validateTypes(
|
|
35994
|
+
validateTypes(p14[k4], v5, path + "." + k4);
|
|
35995
35995
|
}
|
|
35996
35996
|
});
|
|
35997
35997
|
}
|
|
@@ -39370,20 +39370,20 @@ var MineRender = (() => {
|
|
|
39370
39370
|
}
|
|
39371
39371
|
join(s4) {
|
|
39372
39372
|
if (this.length === 0) return "";
|
|
39373
|
-
let
|
|
39374
|
-
let ret = "" +
|
|
39375
|
-
while ((
|
|
39373
|
+
let p14 = this.head;
|
|
39374
|
+
let ret = "" + p14.data;
|
|
39375
|
+
while ((p14 = p14.next) !== null) ret += s4 + p14.data;
|
|
39376
39376
|
return ret;
|
|
39377
39377
|
}
|
|
39378
39378
|
concat(n4) {
|
|
39379
39379
|
if (this.length === 0) return Buffer2.alloc(0);
|
|
39380
39380
|
const ret = Buffer2.allocUnsafe(n4 >>> 0);
|
|
39381
|
-
let
|
|
39381
|
+
let p14 = this.head;
|
|
39382
39382
|
let i4 = 0;
|
|
39383
|
-
while (
|
|
39384
|
-
TypedArrayPrototypeSet(ret,
|
|
39385
|
-
i4 +=
|
|
39386
|
-
|
|
39383
|
+
while (p14) {
|
|
39384
|
+
TypedArrayPrototypeSet(ret, p14.data, i4);
|
|
39385
|
+
i4 += p14.data.length;
|
|
39386
|
+
p14 = p14.next;
|
|
39387
39387
|
}
|
|
39388
39388
|
return ret;
|
|
39389
39389
|
}
|
|
@@ -39404,17 +39404,17 @@ var MineRender = (() => {
|
|
|
39404
39404
|
return this.head.data;
|
|
39405
39405
|
}
|
|
39406
39406
|
*[SymbolIterator]() {
|
|
39407
|
-
for (let
|
|
39408
|
-
yield
|
|
39407
|
+
for (let p14 = this.head; p14; p14 = p14.next) {
|
|
39408
|
+
yield p14.data;
|
|
39409
39409
|
}
|
|
39410
39410
|
}
|
|
39411
39411
|
// Consumes a specified amount of characters from the buffered data.
|
|
39412
39412
|
_getString(n4) {
|
|
39413
39413
|
let ret = "";
|
|
39414
|
-
let
|
|
39414
|
+
let p14 = this.head;
|
|
39415
39415
|
let c4 = 0;
|
|
39416
39416
|
do {
|
|
39417
|
-
const str =
|
|
39417
|
+
const str = p14.data;
|
|
39418
39418
|
if (n4 > str.length) {
|
|
39419
39419
|
ret += str;
|
|
39420
39420
|
n4 -= str.length;
|
|
@@ -39422,17 +39422,17 @@ var MineRender = (() => {
|
|
|
39422
39422
|
if (n4 === str.length) {
|
|
39423
39423
|
ret += str;
|
|
39424
39424
|
++c4;
|
|
39425
|
-
if (
|
|
39425
|
+
if (p14.next) this.head = p14.next;
|
|
39426
39426
|
else this.head = this.tail = null;
|
|
39427
39427
|
} else {
|
|
39428
39428
|
ret += StringPrototypeSlice(str, 0, n4);
|
|
39429
|
-
this.head =
|
|
39430
|
-
|
|
39429
|
+
this.head = p14;
|
|
39430
|
+
p14.data = StringPrototypeSlice(str, n4);
|
|
39431
39431
|
}
|
|
39432
39432
|
break;
|
|
39433
39433
|
}
|
|
39434
39434
|
++c4;
|
|
39435
|
-
} while ((
|
|
39435
|
+
} while ((p14 = p14.next) !== null);
|
|
39436
39436
|
this.length -= c4;
|
|
39437
39437
|
return ret;
|
|
39438
39438
|
}
|
|
@@ -39440,10 +39440,10 @@ var MineRender = (() => {
|
|
|
39440
39440
|
_getBuffer(n4) {
|
|
39441
39441
|
const ret = Buffer2.allocUnsafe(n4);
|
|
39442
39442
|
const retLen = n4;
|
|
39443
|
-
let
|
|
39443
|
+
let p14 = this.head;
|
|
39444
39444
|
let c4 = 0;
|
|
39445
39445
|
do {
|
|
39446
|
-
const buf =
|
|
39446
|
+
const buf = p14.data;
|
|
39447
39447
|
if (n4 > buf.length) {
|
|
39448
39448
|
TypedArrayPrototypeSet(ret, buf, retLen - n4);
|
|
39449
39449
|
n4 -= buf.length;
|
|
@@ -39451,17 +39451,17 @@ var MineRender = (() => {
|
|
|
39451
39451
|
if (n4 === buf.length) {
|
|
39452
39452
|
TypedArrayPrototypeSet(ret, buf, retLen - n4);
|
|
39453
39453
|
++c4;
|
|
39454
|
-
if (
|
|
39454
|
+
if (p14.next) this.head = p14.next;
|
|
39455
39455
|
else this.head = this.tail = null;
|
|
39456
39456
|
} else {
|
|
39457
39457
|
TypedArrayPrototypeSet(ret, new Uint8Array2(buf.buffer, buf.byteOffset, n4), retLen - n4);
|
|
39458
|
-
this.head =
|
|
39459
|
-
|
|
39458
|
+
this.head = p14;
|
|
39459
|
+
p14.data = buf.slice(n4);
|
|
39460
39460
|
}
|
|
39461
39461
|
break;
|
|
39462
39462
|
}
|
|
39463
39463
|
++c4;
|
|
39464
|
-
} while ((
|
|
39464
|
+
} while ((p14 = p14.next) !== null);
|
|
39465
39465
|
this.length -= c4;
|
|
39466
39466
|
return ret;
|
|
39467
39467
|
}
|
|
@@ -39729,7 +39729,7 @@ var MineRender = (() => {
|
|
|
39729
39729
|
}
|
|
39730
39730
|
return 0;
|
|
39731
39731
|
}
|
|
39732
|
-
function utf8CheckExtraBytes(self2, buf,
|
|
39732
|
+
function utf8CheckExtraBytes(self2, buf, p14) {
|
|
39733
39733
|
if ((buf[0] & 192) !== 128) {
|
|
39734
39734
|
self2.lastNeed = 0;
|
|
39735
39735
|
return "\uFFFD";
|
|
@@ -39748,14 +39748,14 @@ var MineRender = (() => {
|
|
|
39748
39748
|
}
|
|
39749
39749
|
}
|
|
39750
39750
|
function utf8FillLast(buf) {
|
|
39751
|
-
var
|
|
39752
|
-
var r5 = utf8CheckExtraBytes(this, buf,
|
|
39751
|
+
var p14 = this.lastTotal - this.lastNeed;
|
|
39752
|
+
var r5 = utf8CheckExtraBytes(this, buf, p14);
|
|
39753
39753
|
if (r5 !== void 0) return r5;
|
|
39754
39754
|
if (this.lastNeed <= buf.length) {
|
|
39755
|
-
buf.copy(this.lastChar,
|
|
39755
|
+
buf.copy(this.lastChar, p14, 0, this.lastNeed);
|
|
39756
39756
|
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
39757
39757
|
}
|
|
39758
|
-
buf.copy(this.lastChar,
|
|
39758
|
+
buf.copy(this.lastChar, p14, 0, buf.length);
|
|
39759
39759
|
this.lastNeed -= buf.length;
|
|
39760
39760
|
}
|
|
39761
39761
|
function utf8Text(buf, i4) {
|
|
@@ -45441,16 +45441,16 @@ return ${compiler2.callType("value", tagType)}
|
|
|
45441
45441
|
}
|
|
45442
45442
|
return m4;
|
|
45443
45443
|
};
|
|
45444
|
-
bits = function(d4,
|
|
45445
|
-
var o4 =
|
|
45446
|
-
return (d4[o4] | d4[o4 + 1] << 8) >> (
|
|
45444
|
+
bits = function(d4, p14, m4) {
|
|
45445
|
+
var o4 = p14 / 8 | 0;
|
|
45446
|
+
return (d4[o4] | d4[o4 + 1] << 8) >> (p14 & 7) & m4;
|
|
45447
45447
|
};
|
|
45448
|
-
bits16 = function(d4,
|
|
45449
|
-
var o4 =
|
|
45450
|
-
return (d4[o4] | d4[o4 + 1] << 8 | d4[o4 + 2] << 16) >> (
|
|
45448
|
+
bits16 = function(d4, p14) {
|
|
45449
|
+
var o4 = p14 / 8 | 0;
|
|
45450
|
+
return (d4[o4] | d4[o4 + 1] << 8 | d4[o4 + 2] << 16) >> (p14 & 7);
|
|
45451
45451
|
};
|
|
45452
|
-
shft = function(
|
|
45453
|
-
return (
|
|
45452
|
+
shft = function(p14) {
|
|
45453
|
+
return (p14 + 7) / 8 | 0;
|
|
45454
45454
|
};
|
|
45455
45455
|
slc = function(v5, s4, e6) {
|
|
45456
45456
|
if (s4 == null || s4 < 0)
|
|
@@ -45627,15 +45627,15 @@ return ${compiler2.callType("value", tagType)}
|
|
|
45627
45627
|
} while (!final);
|
|
45628
45628
|
return bt != buf.length && noBuf ? slc(buf, 0, bt) : buf.subarray(0, bt);
|
|
45629
45629
|
};
|
|
45630
|
-
wbits = function(d4,
|
|
45631
|
-
v5 <<=
|
|
45632
|
-
var o4 =
|
|
45630
|
+
wbits = function(d4, p14, v5) {
|
|
45631
|
+
v5 <<= p14 & 7;
|
|
45632
|
+
var o4 = p14 / 8 | 0;
|
|
45633
45633
|
d4[o4] |= v5;
|
|
45634
45634
|
d4[o4 + 1] |= v5 >> 8;
|
|
45635
45635
|
};
|
|
45636
|
-
wbits16 = function(d4,
|
|
45637
|
-
v5 <<=
|
|
45638
|
-
var o4 =
|
|
45636
|
+
wbits16 = function(d4, p14, v5) {
|
|
45637
|
+
v5 <<= p14 & 7;
|
|
45638
|
+
var o4 = p14 / 8 | 0;
|
|
45639
45639
|
d4[o4] |= v5;
|
|
45640
45640
|
d4[o4 + 1] |= v5 >> 8;
|
|
45641
45641
|
d4[o4 + 2] |= v5 >> 16;
|
|
@@ -45761,8 +45761,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
45761
45761
|
out[o4 + i4 + 4] = dat[i4];
|
|
45762
45762
|
return (o4 + 4 + s4) * 8;
|
|
45763
45763
|
};
|
|
45764
|
-
wblk = function(dat, out, final, syms, lf, df, eb, li, bs, bl,
|
|
45765
|
-
wbits(out,
|
|
45764
|
+
wblk = function(dat, out, final, syms, lf, df, eb, li, bs, bl, p14) {
|
|
45765
|
+
wbits(out, p14++, final);
|
|
45766
45766
|
++lf[256];
|
|
45767
45767
|
var _a2 = hTree(lf, 15), dlt = _a2.t, mlb = _a2.l;
|
|
45768
45768
|
var _b2 = hTree(df, 15), ddt = _b2.t, mdb = _b2.l;
|
|
@@ -45781,27 +45781,27 @@ return ${compiler2.callType("value", tagType)}
|
|
|
45781
45781
|
var ftlen = clen(lf, flt) + clen(df, fdt) + eb;
|
|
45782
45782
|
var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + 2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18];
|
|
45783
45783
|
if (bs >= 0 && flen <= ftlen && flen <= dtlen)
|
|
45784
|
-
return wfblk(out,
|
|
45784
|
+
return wfblk(out, p14, dat.subarray(bs, bs + bl));
|
|
45785
45785
|
var lm, ll, dm, dl;
|
|
45786
|
-
wbits(out,
|
|
45786
|
+
wbits(out, p14, 1 + (dtlen < ftlen)), p14 += 2;
|
|
45787
45787
|
if (dtlen < ftlen) {
|
|
45788
45788
|
lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt;
|
|
45789
45789
|
var llm = hMap(lct, mlcb, 0);
|
|
45790
|
-
wbits(out,
|
|
45791
|
-
wbits(out,
|
|
45792
|
-
wbits(out,
|
|
45793
|
-
|
|
45790
|
+
wbits(out, p14, nlc - 257);
|
|
45791
|
+
wbits(out, p14 + 5, ndc - 1);
|
|
45792
|
+
wbits(out, p14 + 10, nlcc - 4);
|
|
45793
|
+
p14 += 14;
|
|
45794
45794
|
for (var i4 = 0; i4 < nlcc; ++i4)
|
|
45795
|
-
wbits(out,
|
|
45796
|
-
|
|
45795
|
+
wbits(out, p14 + 3 * i4, lct[clim[i4]]);
|
|
45796
|
+
p14 += 3 * nlcc;
|
|
45797
45797
|
var lcts = [lclt, lcdt];
|
|
45798
45798
|
for (var it = 0; it < 2; ++it) {
|
|
45799
45799
|
var clct = lcts[it];
|
|
45800
45800
|
for (var i4 = 0; i4 < clct.length; ++i4) {
|
|
45801
45801
|
var len = clct[i4] & 31;
|
|
45802
|
-
wbits(out,
|
|
45802
|
+
wbits(out, p14, llm[len]), p14 += lct[len];
|
|
45803
45803
|
if (len > 15)
|
|
45804
|
-
wbits(out,
|
|
45804
|
+
wbits(out, p14, clct[i4] >> 5 & 127), p14 += clct[i4] >> 12;
|
|
45805
45805
|
}
|
|
45806
45806
|
}
|
|
45807
45807
|
} else {
|
|
@@ -45811,19 +45811,19 @@ return ${compiler2.callType("value", tagType)}
|
|
|
45811
45811
|
var sym = syms[i4];
|
|
45812
45812
|
if (sym > 255) {
|
|
45813
45813
|
var len = sym >> 18 & 31;
|
|
45814
|
-
wbits16(out,
|
|
45814
|
+
wbits16(out, p14, lm[len + 257]), p14 += ll[len + 257];
|
|
45815
45815
|
if (len > 7)
|
|
45816
|
-
wbits(out,
|
|
45816
|
+
wbits(out, p14, sym >> 23 & 31), p14 += fleb[len];
|
|
45817
45817
|
var dst = sym & 31;
|
|
45818
|
-
wbits16(out,
|
|
45818
|
+
wbits16(out, p14, dm[dst]), p14 += dl[dst];
|
|
45819
45819
|
if (dst > 3)
|
|
45820
|
-
wbits16(out,
|
|
45820
|
+
wbits16(out, p14, sym >> 5 & 8191), p14 += fdeb[dst];
|
|
45821
45821
|
} else {
|
|
45822
|
-
wbits16(out,
|
|
45822
|
+
wbits16(out, p14, lm[sym]), p14 += ll[sym];
|
|
45823
45823
|
}
|
|
45824
45824
|
}
|
|
45825
|
-
wbits16(out,
|
|
45826
|
-
return
|
|
45825
|
+
wbits16(out, p14, lm[256]);
|
|
45826
|
+
return p14 + ll[256];
|
|
45827
45827
|
};
|
|
45828
45828
|
deo = /* @__PURE__ */ new i32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]);
|
|
45829
45829
|
et2 = /* @__PURE__ */ new u8(0);
|
|
@@ -46796,10 +46796,10 @@ return ${compiler2.callType("value", tagType)}
|
|
|
46796
46796
|
}
|
|
46797
46797
|
}
|
|
46798
46798
|
function paethPredictor(a4, b4, c4) {
|
|
46799
|
-
const
|
|
46800
|
-
const pa = Math.abs(
|
|
46801
|
-
const pb = Math.abs(
|
|
46802
|
-
const pc = Math.abs(
|
|
46799
|
+
const p14 = a4 + b4 - c4;
|
|
46800
|
+
const pa = Math.abs(p14 - a4);
|
|
46801
|
+
const pb = Math.abs(p14 - b4);
|
|
46802
|
+
const pc = Math.abs(p14 - c4);
|
|
46803
46803
|
if (pa <= pb && pa <= pc)
|
|
46804
46804
|
return a4;
|
|
46805
46805
|
else if (pb <= pc)
|
|
@@ -48038,7 +48038,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
48038
48038
|
}, domElement: c4, setMode: u4 };
|
|
48039
48039
|
};
|
|
48040
48040
|
f4.Panel = function(e6, f5, l4) {
|
|
48041
|
-
var c4 = Infinity, k4 = 0, g4 = Math.round, a4 = g4(window.devicePixelRatio || 1), r5 = 80 * a4, h5 = 48 * a4, t5 = 3 * a4, v5 = 2 * a4, d4 = 3 * a4, m4 = 15 * a4, n4 = 74 * a4,
|
|
48041
|
+
var c4 = Infinity, k4 = 0, g4 = Math.round, a4 = g4(window.devicePixelRatio || 1), r5 = 80 * a4, h5 = 48 * a4, t5 = 3 * a4, v5 = 2 * a4, d4 = 3 * a4, m4 = 15 * a4, n4 = 74 * a4, p14 = 30 * a4, q3 = document.createElement("canvas");
|
|
48042
48042
|
q3.width = r5;
|
|
48043
48043
|
q3.height = h5;
|
|
48044
48044
|
q3.style.cssText = "width:80px;height:48px";
|
|
@@ -48049,10 +48049,10 @@ return ${compiler2.callType("value", tagType)}
|
|
|
48049
48049
|
b4.fillRect(0, 0, r5, h5);
|
|
48050
48050
|
b4.fillStyle = f5;
|
|
48051
48051
|
b4.fillText(e6, t5, v5);
|
|
48052
|
-
b4.fillRect(d4, m4, n4,
|
|
48052
|
+
b4.fillRect(d4, m4, n4, p14);
|
|
48053
48053
|
b4.fillStyle = l4;
|
|
48054
48054
|
b4.globalAlpha = 0.9;
|
|
48055
|
-
b4.fillRect(d4, m4, n4,
|
|
48055
|
+
b4.fillRect(d4, m4, n4, p14);
|
|
48056
48056
|
return { dom: q3, update: function(h6, w4) {
|
|
48057
48057
|
c4 = Math.min(c4, h6);
|
|
48058
48058
|
k4 = Math.max(k4, h6);
|
|
@@ -48061,11 +48061,11 @@ return ${compiler2.callType("value", tagType)}
|
|
|
48061
48061
|
b4.fillRect(0, 0, r5, m4);
|
|
48062
48062
|
b4.fillStyle = f5;
|
|
48063
48063
|
b4.fillText(g4(h6) + " " + e6 + " (" + g4(c4) + "-" + g4(k4) + ")", t5, v5);
|
|
48064
|
-
b4.drawImage(q3, d4 + a4, m4, n4 - a4,
|
|
48065
|
-
b4.fillRect(d4 + n4 - a4, m4, a4,
|
|
48064
|
+
b4.drawImage(q3, d4 + a4, m4, n4 - a4, p14, d4, m4, n4 - a4, p14);
|
|
48065
|
+
b4.fillRect(d4 + n4 - a4, m4, a4, p14);
|
|
48066
48066
|
b4.fillStyle = l4;
|
|
48067
48067
|
b4.globalAlpha = 0.9;
|
|
48068
|
-
b4.fillRect(d4 + n4 - a4, m4, a4, g4((1 - h6 / w4) *
|
|
48068
|
+
b4.fillRect(d4 + n4 - a4, m4, a4, g4((1 - h6 / w4) * p14));
|
|
48069
48069
|
} };
|
|
48070
48070
|
};
|
|
48071
48071
|
return f4;
|
|
@@ -48096,9 +48096,11 @@ return ${compiler2.callType("value", tagType)}
|
|
|
48096
48096
|
BrowserCache: () => BrowserCache,
|
|
48097
48097
|
BrowserEnv: () => BrowserEnv,
|
|
48098
48098
|
CUBE_FACES: () => CUBE_FACES,
|
|
48099
|
+
CUBE_FACE_OFFSETS: () => CUBE_FACE_OFFSETS,
|
|
48099
48100
|
Caching: () => Caching,
|
|
48100
48101
|
CanvasImage: () => CanvasImage,
|
|
48101
48102
|
Chunk: () => Chunk,
|
|
48103
|
+
ChunkData: () => ChunkData,
|
|
48102
48104
|
CubeFace: () => CubeFace,
|
|
48103
48105
|
CubeFaceIndex: () => CubeFaceIndex,
|
|
48104
48106
|
DEFAULT_ELEMENTS: () => DEFAULT_ELEMENTS,
|
|
@@ -48128,6 +48130,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
48128
48130
|
MineRenderWorld: () => MineRenderWorld,
|
|
48129
48131
|
MinecraftCubeTexture: () => MinecraftCubeTexture,
|
|
48130
48132
|
MinecraftFaceUV: () => MinecraftFaceUV,
|
|
48133
|
+
ModelCulling: () => ModelCulling,
|
|
48131
48134
|
ModelGenerator: () => ModelGenerator,
|
|
48132
48135
|
ModelMerger: () => ModelMerger,
|
|
48133
48136
|
ModelObject: () => ModelObject,
|
|
@@ -52439,16 +52442,16 @@ return ${compiler2.callType("value", tagType)}
|
|
|
52439
52442
|
const te2 = this.elements;
|
|
52440
52443
|
const w4 = 1 / (right - left);
|
|
52441
52444
|
const h5 = 1 / (top - bottom);
|
|
52442
|
-
const
|
|
52445
|
+
const p14 = 1 / (far - near);
|
|
52443
52446
|
const x4 = (right + left) * w4;
|
|
52444
52447
|
const y5 = (top + bottom) * h5;
|
|
52445
52448
|
let z4, zInv;
|
|
52446
52449
|
if (coordinateSystem === WebGLCoordinateSystem) {
|
|
52447
|
-
z4 = (far + near) *
|
|
52448
|
-
zInv = -2 *
|
|
52450
|
+
z4 = (far + near) * p14;
|
|
52451
|
+
zInv = -2 * p14;
|
|
52449
52452
|
} else if (coordinateSystem === WebGPUCoordinateSystem) {
|
|
52450
|
-
z4 = near *
|
|
52451
|
-
zInv = -1 *
|
|
52453
|
+
z4 = near * p14;
|
|
52454
|
+
zInv = -1 * p14;
|
|
52452
52455
|
} else {
|
|
52453
52456
|
throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: " + coordinateSystem);
|
|
52454
52457
|
}
|
|
@@ -53357,18 +53360,18 @@ return ${compiler2.callType("value", tagType)}
|
|
|
53357
53360
|
intersectsBox(box) {
|
|
53358
53361
|
return box.intersectsTriangle(this);
|
|
53359
53362
|
}
|
|
53360
|
-
closestPointToPoint(
|
|
53363
|
+
closestPointToPoint(p14, target) {
|
|
53361
53364
|
const a4 = this.a, b4 = this.b, c4 = this.c;
|
|
53362
53365
|
let v5, w4;
|
|
53363
53366
|
_vab.subVectors(b4, a4);
|
|
53364
53367
|
_vac.subVectors(c4, a4);
|
|
53365
|
-
_vap.subVectors(
|
|
53368
|
+
_vap.subVectors(p14, a4);
|
|
53366
53369
|
const d1 = _vab.dot(_vap);
|
|
53367
53370
|
const d22 = _vac.dot(_vap);
|
|
53368
53371
|
if (d1 <= 0 && d22 <= 0) {
|
|
53369
53372
|
return target.copy(a4);
|
|
53370
53373
|
}
|
|
53371
|
-
_vbp.subVectors(
|
|
53374
|
+
_vbp.subVectors(p14, b4);
|
|
53372
53375
|
const d32 = _vab.dot(_vbp);
|
|
53373
53376
|
const d4 = _vac.dot(_vbp);
|
|
53374
53377
|
if (d32 >= 0 && d4 <= d32) {
|
|
@@ -53379,7 +53382,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
53379
53382
|
v5 = d1 / (d1 - d32);
|
|
53380
53383
|
return target.copy(a4).addScaledVector(_vab, v5);
|
|
53381
53384
|
}
|
|
53382
|
-
_vcp.subVectors(
|
|
53385
|
+
_vcp.subVectors(p14, c4);
|
|
53383
53386
|
const d5 = _vab.dot(_vcp);
|
|
53384
53387
|
const d6 = _vac.dot(_vcp);
|
|
53385
53388
|
if (d6 >= 0 && d5 <= d6) {
|
|
@@ -53557,13 +53560,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
53557
53560
|
};
|
|
53558
53561
|
var _hslA = { h: 0, s: 0, l: 0 };
|
|
53559
53562
|
var _hslB = { h: 0, s: 0, l: 0 };
|
|
53560
|
-
function hue2rgb(
|
|
53563
|
+
function hue2rgb(p14, q3, t5) {
|
|
53561
53564
|
if (t5 < 0) t5 += 1;
|
|
53562
53565
|
if (t5 > 1) t5 -= 1;
|
|
53563
|
-
if (t5 < 1 / 6) return
|
|
53566
|
+
if (t5 < 1 / 6) return p14 + (q3 - p14) * 6 * t5;
|
|
53564
53567
|
if (t5 < 1 / 2) return q3;
|
|
53565
|
-
if (t5 < 2 / 3) return
|
|
53566
|
-
return
|
|
53568
|
+
if (t5 < 2 / 3) return p14 + (q3 - p14) * 6 * (2 / 3 - t5);
|
|
53569
|
+
return p14;
|
|
53567
53570
|
}
|
|
53568
53571
|
var Color = class {
|
|
53569
53572
|
constructor(r5, g4, b4) {
|
|
@@ -53616,11 +53619,11 @@ return ${compiler2.callType("value", tagType)}
|
|
|
53616
53619
|
if (s4 === 0) {
|
|
53617
53620
|
this.r = this.g = this.b = l4;
|
|
53618
53621
|
} else {
|
|
53619
|
-
const
|
|
53620
|
-
const q3 = 2 * l4 -
|
|
53621
|
-
this.r = hue2rgb(q3,
|
|
53622
|
-
this.g = hue2rgb(q3,
|
|
53623
|
-
this.b = hue2rgb(q3,
|
|
53622
|
+
const p14 = l4 <= 0.5 ? l4 * (1 + s4) : l4 + s4 - l4 * s4;
|
|
53623
|
+
const q3 = 2 * l4 - p14;
|
|
53624
|
+
this.r = hue2rgb(q3, p14, h5 + 1 / 3);
|
|
53625
|
+
this.g = hue2rgb(q3, p14, h5);
|
|
53626
|
+
this.b = hue2rgb(q3, p14, h5 - 1 / 3);
|
|
53624
53627
|
}
|
|
53625
53628
|
ColorManagement.toWorkingColorSpace(this, colorSpace);
|
|
53626
53629
|
return this;
|
|
@@ -55358,19 +55361,19 @@ return ${compiler2.callType("value", tagType)}
|
|
|
55358
55361
|
const dst = {};
|
|
55359
55362
|
for (const u4 in src) {
|
|
55360
55363
|
dst[u4] = {};
|
|
55361
|
-
for (const
|
|
55362
|
-
const property = src[u4][
|
|
55364
|
+
for (const p14 in src[u4]) {
|
|
55365
|
+
const property = src[u4][p14];
|
|
55363
55366
|
if (property && (property.isColor || property.isMatrix3 || property.isMatrix4 || property.isVector2 || property.isVector3 || property.isVector4 || property.isTexture || property.isQuaternion)) {
|
|
55364
55367
|
if (property.isRenderTargetTexture) {
|
|
55365
55368
|
console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms().");
|
|
55366
|
-
dst[u4][
|
|
55369
|
+
dst[u4][p14] = null;
|
|
55367
55370
|
} else {
|
|
55368
|
-
dst[u4][
|
|
55371
|
+
dst[u4][p14] = property.clone();
|
|
55369
55372
|
}
|
|
55370
55373
|
} else if (Array.isArray(property)) {
|
|
55371
|
-
dst[u4][
|
|
55374
|
+
dst[u4][p14] = property.slice();
|
|
55372
55375
|
} else {
|
|
55373
|
-
dst[u4][
|
|
55376
|
+
dst[u4][p14] = property;
|
|
55374
55377
|
}
|
|
55375
55378
|
}
|
|
55376
55379
|
}
|
|
@@ -55380,8 +55383,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
55380
55383
|
const merged = {};
|
|
55381
55384
|
for (let u4 = 0; u4 < uniforms.length; u4++) {
|
|
55382
55385
|
const tmp = cloneUniforms(uniforms[u4]);
|
|
55383
|
-
for (const
|
|
55384
|
-
merged[
|
|
55386
|
+
for (const p14 in tmp) {
|
|
55387
|
+
merged[p14] = tmp[p14];
|
|
55385
55388
|
}
|
|
55386
55389
|
}
|
|
55387
55390
|
return merged;
|
|
@@ -60719,8 +60722,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
60719
60722
|
}
|
|
60720
60723
|
function acquireProgram(parameters, cacheKey) {
|
|
60721
60724
|
let program;
|
|
60722
|
-
for (let
|
|
60723
|
-
const preexistingProgram = programs[
|
|
60725
|
+
for (let p14 = 0, pl = programs.length; p14 < pl; p14++) {
|
|
60726
|
+
const preexistingProgram = programs[p14];
|
|
60724
60727
|
if (preexistingProgram.cacheKey === cacheKey) {
|
|
60725
60728
|
program = preexistingProgram;
|
|
60726
60729
|
++program.usedTimes;
|
|
@@ -63431,19 +63434,19 @@ return ${compiler2.callType("value", tagType)}
|
|
|
63431
63434
|
}
|
|
63432
63435
|
function WebGLUtils(gl, extensions, capabilities) {
|
|
63433
63436
|
const isWebGL2 = capabilities.isWebGL2;
|
|
63434
|
-
function convert(
|
|
63437
|
+
function convert(p14, colorSpace = NoColorSpace) {
|
|
63435
63438
|
let extension;
|
|
63436
63439
|
const transfer = ColorManagement.getTransfer(colorSpace);
|
|
63437
|
-
if (
|
|
63438
|
-
if (
|
|
63439
|
-
if (
|
|
63440
|
-
if (
|
|
63441
|
-
if (
|
|
63442
|
-
if (
|
|
63443
|
-
if (
|
|
63444
|
-
if (
|
|
63445
|
-
if (
|
|
63446
|
-
if (
|
|
63440
|
+
if (p14 === UnsignedByteType) return gl.UNSIGNED_BYTE;
|
|
63441
|
+
if (p14 === UnsignedShort4444Type) return gl.UNSIGNED_SHORT_4_4_4_4;
|
|
63442
|
+
if (p14 === UnsignedShort5551Type) return gl.UNSIGNED_SHORT_5_5_5_1;
|
|
63443
|
+
if (p14 === ByteType) return gl.BYTE;
|
|
63444
|
+
if (p14 === ShortType) return gl.SHORT;
|
|
63445
|
+
if (p14 === UnsignedShortType) return gl.UNSIGNED_SHORT;
|
|
63446
|
+
if (p14 === IntType) return gl.INT;
|
|
63447
|
+
if (p14 === UnsignedIntType) return gl.UNSIGNED_INT;
|
|
63448
|
+
if (p14 === FloatType) return gl.FLOAT;
|
|
63449
|
+
if (p14 === HalfFloatType) {
|
|
63447
63450
|
if (isWebGL2) return gl.HALF_FLOAT;
|
|
63448
63451
|
extension = extensions.get("OES_texture_half_float");
|
|
63449
63452
|
if (extension !== null) {
|
|
@@ -63452,13 +63455,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
63452
63455
|
return null;
|
|
63453
63456
|
}
|
|
63454
63457
|
}
|
|
63455
|
-
if (
|
|
63456
|
-
if (
|
|
63457
|
-
if (
|
|
63458
|
-
if (
|
|
63459
|
-
if (
|
|
63460
|
-
if (
|
|
63461
|
-
if (
|
|
63458
|
+
if (p14 === AlphaFormat) return gl.ALPHA;
|
|
63459
|
+
if (p14 === RGBAFormat) return gl.RGBA;
|
|
63460
|
+
if (p14 === LuminanceFormat) return gl.LUMINANCE;
|
|
63461
|
+
if (p14 === LuminanceAlphaFormat) return gl.LUMINANCE_ALPHA;
|
|
63462
|
+
if (p14 === DepthFormat) return gl.DEPTH_COMPONENT;
|
|
63463
|
+
if (p14 === DepthStencilFormat) return gl.DEPTH_STENCIL;
|
|
63464
|
+
if (p14 === _SRGBAFormat) {
|
|
63462
63465
|
extension = extensions.get("EXT_sRGB");
|
|
63463
63466
|
if (extension !== null) {
|
|
63464
63467
|
return extension.SRGB_ALPHA_EXT;
|
|
@@ -63466,46 +63469,46 @@ return ${compiler2.callType("value", tagType)}
|
|
|
63466
63469
|
return null;
|
|
63467
63470
|
}
|
|
63468
63471
|
}
|
|
63469
|
-
if (
|
|
63470
|
-
if (
|
|
63471
|
-
if (
|
|
63472
|
-
if (
|
|
63473
|
-
if (
|
|
63474
|
-
if (
|
|
63472
|
+
if (p14 === RedFormat) return gl.RED;
|
|
63473
|
+
if (p14 === RedIntegerFormat) return gl.RED_INTEGER;
|
|
63474
|
+
if (p14 === RGFormat) return gl.RG;
|
|
63475
|
+
if (p14 === RGIntegerFormat) return gl.RG_INTEGER;
|
|
63476
|
+
if (p14 === RGBAIntegerFormat) return gl.RGBA_INTEGER;
|
|
63477
|
+
if (p14 === RGB_S3TC_DXT1_Format || p14 === RGBA_S3TC_DXT1_Format || p14 === RGBA_S3TC_DXT3_Format || p14 === RGBA_S3TC_DXT5_Format) {
|
|
63475
63478
|
if (transfer === SRGBTransfer) {
|
|
63476
63479
|
extension = extensions.get("WEBGL_compressed_texture_s3tc_srgb");
|
|
63477
63480
|
if (extension !== null) {
|
|
63478
|
-
if (
|
|
63479
|
-
if (
|
|
63480
|
-
if (
|
|
63481
|
-
if (
|
|
63481
|
+
if (p14 === RGB_S3TC_DXT1_Format) return extension.COMPRESSED_SRGB_S3TC_DXT1_EXT;
|
|
63482
|
+
if (p14 === RGBA_S3TC_DXT1_Format) return extension.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;
|
|
63483
|
+
if (p14 === RGBA_S3TC_DXT3_Format) return extension.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;
|
|
63484
|
+
if (p14 === RGBA_S3TC_DXT5_Format) return extension.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;
|
|
63482
63485
|
} else {
|
|
63483
63486
|
return null;
|
|
63484
63487
|
}
|
|
63485
63488
|
} else {
|
|
63486
63489
|
extension = extensions.get("WEBGL_compressed_texture_s3tc");
|
|
63487
63490
|
if (extension !== null) {
|
|
63488
|
-
if (
|
|
63489
|
-
if (
|
|
63490
|
-
if (
|
|
63491
|
-
if (
|
|
63491
|
+
if (p14 === RGB_S3TC_DXT1_Format) return extension.COMPRESSED_RGB_S3TC_DXT1_EXT;
|
|
63492
|
+
if (p14 === RGBA_S3TC_DXT1_Format) return extension.COMPRESSED_RGBA_S3TC_DXT1_EXT;
|
|
63493
|
+
if (p14 === RGBA_S3TC_DXT3_Format) return extension.COMPRESSED_RGBA_S3TC_DXT3_EXT;
|
|
63494
|
+
if (p14 === RGBA_S3TC_DXT5_Format) return extension.COMPRESSED_RGBA_S3TC_DXT5_EXT;
|
|
63492
63495
|
} else {
|
|
63493
63496
|
return null;
|
|
63494
63497
|
}
|
|
63495
63498
|
}
|
|
63496
63499
|
}
|
|
63497
|
-
if (
|
|
63500
|
+
if (p14 === RGB_PVRTC_4BPPV1_Format || p14 === RGB_PVRTC_2BPPV1_Format || p14 === RGBA_PVRTC_4BPPV1_Format || p14 === RGBA_PVRTC_2BPPV1_Format) {
|
|
63498
63501
|
extension = extensions.get("WEBGL_compressed_texture_pvrtc");
|
|
63499
63502
|
if (extension !== null) {
|
|
63500
|
-
if (
|
|
63501
|
-
if (
|
|
63502
|
-
if (
|
|
63503
|
-
if (
|
|
63503
|
+
if (p14 === RGB_PVRTC_4BPPV1_Format) return extension.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
|
|
63504
|
+
if (p14 === RGB_PVRTC_2BPPV1_Format) return extension.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
|
|
63505
|
+
if (p14 === RGBA_PVRTC_4BPPV1_Format) return extension.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
|
|
63506
|
+
if (p14 === RGBA_PVRTC_2BPPV1_Format) return extension.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
|
|
63504
63507
|
} else {
|
|
63505
63508
|
return null;
|
|
63506
63509
|
}
|
|
63507
63510
|
}
|
|
63508
|
-
if (
|
|
63511
|
+
if (p14 === RGB_ETC1_Format) {
|
|
63509
63512
|
extension = extensions.get("WEBGL_compressed_texture_etc1");
|
|
63510
63513
|
if (extension !== null) {
|
|
63511
63514
|
return extension.COMPRESSED_RGB_ETC1_WEBGL;
|
|
@@ -63513,58 +63516,58 @@ return ${compiler2.callType("value", tagType)}
|
|
|
63513
63516
|
return null;
|
|
63514
63517
|
}
|
|
63515
63518
|
}
|
|
63516
|
-
if (
|
|
63519
|
+
if (p14 === RGB_ETC2_Format || p14 === RGBA_ETC2_EAC_Format) {
|
|
63517
63520
|
extension = extensions.get("WEBGL_compressed_texture_etc");
|
|
63518
63521
|
if (extension !== null) {
|
|
63519
|
-
if (
|
|
63520
|
-
if (
|
|
63522
|
+
if (p14 === RGB_ETC2_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ETC2 : extension.COMPRESSED_RGB8_ETC2;
|
|
63523
|
+
if (p14 === RGBA_ETC2_EAC_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC : extension.COMPRESSED_RGBA8_ETC2_EAC;
|
|
63521
63524
|
} else {
|
|
63522
63525
|
return null;
|
|
63523
63526
|
}
|
|
63524
63527
|
}
|
|
63525
|
-
if (
|
|
63528
|
+
if (p14 === RGBA_ASTC_4x4_Format || p14 === RGBA_ASTC_5x4_Format || p14 === RGBA_ASTC_5x5_Format || p14 === RGBA_ASTC_6x5_Format || p14 === RGBA_ASTC_6x6_Format || p14 === RGBA_ASTC_8x5_Format || p14 === RGBA_ASTC_8x6_Format || p14 === RGBA_ASTC_8x8_Format || p14 === RGBA_ASTC_10x5_Format || p14 === RGBA_ASTC_10x6_Format || p14 === RGBA_ASTC_10x8_Format || p14 === RGBA_ASTC_10x10_Format || p14 === RGBA_ASTC_12x10_Format || p14 === RGBA_ASTC_12x12_Format) {
|
|
63526
63529
|
extension = extensions.get("WEBGL_compressed_texture_astc");
|
|
63527
63530
|
if (extension !== null) {
|
|
63528
|
-
if (
|
|
63529
|
-
if (
|
|
63530
|
-
if (
|
|
63531
|
-
if (
|
|
63532
|
-
if (
|
|
63533
|
-
if (
|
|
63534
|
-
if (
|
|
63535
|
-
if (
|
|
63536
|
-
if (
|
|
63537
|
-
if (
|
|
63538
|
-
if (
|
|
63539
|
-
if (
|
|
63540
|
-
if (
|
|
63541
|
-
if (
|
|
63531
|
+
if (p14 === RGBA_ASTC_4x4_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : extension.COMPRESSED_RGBA_ASTC_4x4_KHR;
|
|
63532
|
+
if (p14 === RGBA_ASTC_5x4_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : extension.COMPRESSED_RGBA_ASTC_5x4_KHR;
|
|
63533
|
+
if (p14 === RGBA_ASTC_5x5_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : extension.COMPRESSED_RGBA_ASTC_5x5_KHR;
|
|
63534
|
+
if (p14 === RGBA_ASTC_6x5_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : extension.COMPRESSED_RGBA_ASTC_6x5_KHR;
|
|
63535
|
+
if (p14 === RGBA_ASTC_6x6_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : extension.COMPRESSED_RGBA_ASTC_6x6_KHR;
|
|
63536
|
+
if (p14 === RGBA_ASTC_8x5_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : extension.COMPRESSED_RGBA_ASTC_8x5_KHR;
|
|
63537
|
+
if (p14 === RGBA_ASTC_8x6_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : extension.COMPRESSED_RGBA_ASTC_8x6_KHR;
|
|
63538
|
+
if (p14 === RGBA_ASTC_8x8_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : extension.COMPRESSED_RGBA_ASTC_8x8_KHR;
|
|
63539
|
+
if (p14 === RGBA_ASTC_10x5_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : extension.COMPRESSED_RGBA_ASTC_10x5_KHR;
|
|
63540
|
+
if (p14 === RGBA_ASTC_10x6_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR : extension.COMPRESSED_RGBA_ASTC_10x6_KHR;
|
|
63541
|
+
if (p14 === RGBA_ASTC_10x8_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR : extension.COMPRESSED_RGBA_ASTC_10x8_KHR;
|
|
63542
|
+
if (p14 === RGBA_ASTC_10x10_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR : extension.COMPRESSED_RGBA_ASTC_10x10_KHR;
|
|
63543
|
+
if (p14 === RGBA_ASTC_12x10_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR : extension.COMPRESSED_RGBA_ASTC_12x10_KHR;
|
|
63544
|
+
if (p14 === RGBA_ASTC_12x12_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : extension.COMPRESSED_RGBA_ASTC_12x12_KHR;
|
|
63542
63545
|
} else {
|
|
63543
63546
|
return null;
|
|
63544
63547
|
}
|
|
63545
63548
|
}
|
|
63546
|
-
if (
|
|
63549
|
+
if (p14 === RGBA_BPTC_Format || p14 === RGB_BPTC_SIGNED_Format || p14 === RGB_BPTC_UNSIGNED_Format) {
|
|
63547
63550
|
extension = extensions.get("EXT_texture_compression_bptc");
|
|
63548
63551
|
if (extension !== null) {
|
|
63549
|
-
if (
|
|
63550
|
-
if (
|
|
63551
|
-
if (
|
|
63552
|
+
if (p14 === RGBA_BPTC_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : extension.COMPRESSED_RGBA_BPTC_UNORM_EXT;
|
|
63553
|
+
if (p14 === RGB_BPTC_SIGNED_Format) return extension.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;
|
|
63554
|
+
if (p14 === RGB_BPTC_UNSIGNED_Format) return extension.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT;
|
|
63552
63555
|
} else {
|
|
63553
63556
|
return null;
|
|
63554
63557
|
}
|
|
63555
63558
|
}
|
|
63556
|
-
if (
|
|
63559
|
+
if (p14 === RED_RGTC1_Format || p14 === SIGNED_RED_RGTC1_Format || p14 === RED_GREEN_RGTC2_Format || p14 === SIGNED_RED_GREEN_RGTC2_Format) {
|
|
63557
63560
|
extension = extensions.get("EXT_texture_compression_rgtc");
|
|
63558
63561
|
if (extension !== null) {
|
|
63559
|
-
if (
|
|
63560
|
-
if (
|
|
63561
|
-
if (
|
|
63562
|
-
if (
|
|
63562
|
+
if (p14 === RGBA_BPTC_Format) return extension.COMPRESSED_RED_RGTC1_EXT;
|
|
63563
|
+
if (p14 === SIGNED_RED_RGTC1_Format) return extension.COMPRESSED_SIGNED_RED_RGTC1_EXT;
|
|
63564
|
+
if (p14 === RED_GREEN_RGTC2_Format) return extension.COMPRESSED_RED_GREEN_RGTC2_EXT;
|
|
63565
|
+
if (p14 === SIGNED_RED_GREEN_RGTC2_Format) return extension.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;
|
|
63563
63566
|
} else {
|
|
63564
63567
|
return null;
|
|
63565
63568
|
}
|
|
63566
63569
|
}
|
|
63567
|
-
if (
|
|
63570
|
+
if (p14 === UnsignedInt248Type) {
|
|
63568
63571
|
if (isWebGL2) return gl.UNSIGNED_INT_24_8;
|
|
63569
63572
|
extension = extensions.get("WEBGL_depth_texture");
|
|
63570
63573
|
if (extension !== null) {
|
|
@@ -63573,7 +63576,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
63573
63576
|
return null;
|
|
63574
63577
|
}
|
|
63575
63578
|
}
|
|
63576
|
-
return gl[
|
|
63579
|
+
return gl[p14] !== void 0 ? gl[p14] : null;
|
|
63577
63580
|
}
|
|
63578
63581
|
return { convert };
|
|
63579
63582
|
}
|
|
@@ -66991,10 +66994,10 @@ return ${compiler2.callType("value", tagType)}
|
|
|
66991
66994
|
this._offsetNext = iNext * stride;
|
|
66992
66995
|
}
|
|
66993
66996
|
interpolate_(i1, t0, t5, t1) {
|
|
66994
|
-
const result = this.resultBuffer, values = this.sampleValues, stride = this.valueSize, o1 = i1 * stride, o0 = o1 - stride, oP = this._offsetPrev, oN = this._offsetNext, wP = this._weightPrev, wN = this._weightNext,
|
|
66995
|
-
const sP = -wP * ppp + 2 * wP * pp - wP *
|
|
66996
|
-
const s0 = (1 + wP) * ppp + (-1.5 - 2 * wP) * pp + (-0.5 + wP) *
|
|
66997
|
-
const s1 = (-1 - wN) * ppp + (1.5 + wN) * pp + 0.5 *
|
|
66997
|
+
const result = this.resultBuffer, values = this.sampleValues, stride = this.valueSize, o1 = i1 * stride, o0 = o1 - stride, oP = this._offsetPrev, oN = this._offsetNext, wP = this._weightPrev, wN = this._weightNext, p14 = (t5 - t0) / (t1 - t0), pp = p14 * p14, ppp = pp * p14;
|
|
66998
|
+
const sP = -wP * ppp + 2 * wP * pp - wP * p14;
|
|
66999
|
+
const s0 = (1 + wP) * ppp + (-1.5 - 2 * wP) * pp + (-0.5 + wP) * p14 + 1;
|
|
67000
|
+
const s1 = (-1 - wN) * ppp + (1.5 + wN) * pp + 0.5 * p14;
|
|
66998
67001
|
const sN = wN * ppp - wN * pp;
|
|
66999
67002
|
for (let i4 = 0; i4 !== stride; ++i4) {
|
|
67000
67003
|
result[i4] = sP * values[oP + i4] + s0 * values[o0 + i4] + s1 * values[o1 + i4] + sN * values[oN + i4];
|
|
@@ -68051,6 +68054,14 @@ return ${compiler2.callType("value", tagType)}
|
|
|
68051
68054
|
return CubeFaceIndex2;
|
|
68052
68055
|
})(CubeFaceIndex || {});
|
|
68053
68056
|
var CUBE_FACES = Object.values(CubeFace);
|
|
68057
|
+
var CUBE_FACE_OFFSETS = [
|
|
68058
|
+
[1, 0, 0],
|
|
68059
|
+
[-1, 0, 0],
|
|
68060
|
+
[0, 1, 0],
|
|
68061
|
+
[0, -1, 0],
|
|
68062
|
+
[0, 0, 1],
|
|
68063
|
+
[0, 0, -1]
|
|
68064
|
+
];
|
|
68054
68065
|
|
|
68055
68066
|
// src/Disposable.ts
|
|
68056
68067
|
init_dirname();
|
|
@@ -68241,7 +68252,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
68241
68252
|
function keyCompletablePromiseMapToPromiseContainingMap(keyToPromiseMap) {
|
|
68242
68253
|
const keys = asArray(keyToPromiseMap.keys());
|
|
68243
68254
|
const values = asArray(keyToPromiseMap.values());
|
|
68244
|
-
return Promise.all(values.map((
|
|
68255
|
+
return Promise.all(values.map((p14) => p14.promise)).then((resolvedValues) => {
|
|
68245
68256
|
const valueMap = /* @__PURE__ */ new Map();
|
|
68246
68257
|
keys.forEach((key, i4) => {
|
|
68247
68258
|
const value = resolvedValues[i4];
|
|
@@ -69947,12 +69958,12 @@ return ${compiler2.callType("value", tagType)}
|
|
|
69947
69958
|
return a4.join("/");
|
|
69948
69959
|
}
|
|
69949
69960
|
getFullPath() {
|
|
69950
|
-
let
|
|
69961
|
+
let p14 = [];
|
|
69951
69962
|
if (this.type) {
|
|
69952
|
-
|
|
69963
|
+
p14.push(this.type);
|
|
69953
69964
|
}
|
|
69954
|
-
|
|
69955
|
-
return
|
|
69965
|
+
p14.push(this.path);
|
|
69966
|
+
return p14.join("/");
|
|
69956
69967
|
}
|
|
69957
69968
|
toNamespacedString() {
|
|
69958
69969
|
return this.namespace + ":" + this.getFullPath();
|
|
@@ -70044,7 +70055,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
70044
70055
|
merged.display = { ...inheritedDisplay, ...DisplayTransforms.withHandFallbacks(source.display) };
|
|
70045
70056
|
}
|
|
70046
70057
|
}
|
|
70047
|
-
merged.hierarchy = models.map((m4) => m4.parent).filter((
|
|
70058
|
+
merged.hierarchy = models.map((m4) => m4.parent).filter((p14) => `${p14}`);
|
|
70048
70059
|
merged.hierarchy.push(`${merged.parent}`);
|
|
70049
70060
|
return merged;
|
|
70050
70061
|
}
|
|
@@ -71434,8 +71445,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71434
71445
|
that.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;
|
|
71435
71446
|
return max_blindex;
|
|
71436
71447
|
}
|
|
71437
|
-
function put_byte(
|
|
71438
|
-
that.pending_buf[that.pending++] =
|
|
71448
|
+
function put_byte(p14) {
|
|
71449
|
+
that.pending_buf[that.pending++] = p14;
|
|
71439
71450
|
}
|
|
71440
71451
|
function put_short(w4) {
|
|
71441
71452
|
put_byte(w4 & 255);
|
|
@@ -71664,7 +71675,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71664
71675
|
}
|
|
71665
71676
|
function fill_window() {
|
|
71666
71677
|
let n4, m4;
|
|
71667
|
-
let
|
|
71678
|
+
let p14;
|
|
71668
71679
|
let more;
|
|
71669
71680
|
do {
|
|
71670
71681
|
more = window_size - lookahead - strstart;
|
|
@@ -71678,16 +71689,16 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71678
71689
|
strstart -= w_size;
|
|
71679
71690
|
block_start -= w_size;
|
|
71680
71691
|
n4 = hash_size;
|
|
71681
|
-
|
|
71692
|
+
p14 = n4;
|
|
71682
71693
|
do {
|
|
71683
|
-
m4 = head[--
|
|
71684
|
-
head[
|
|
71694
|
+
m4 = head[--p14] & 65535;
|
|
71695
|
+
head[p14] = m4 >= w_size ? m4 - w_size : 0;
|
|
71685
71696
|
} while (--n4 !== 0);
|
|
71686
71697
|
n4 = w_size;
|
|
71687
|
-
|
|
71698
|
+
p14 = n4;
|
|
71688
71699
|
do {
|
|
71689
|
-
m4 = prev[--
|
|
71690
|
-
prev[
|
|
71700
|
+
m4 = prev[--p14] & 65535;
|
|
71701
|
+
prev[p14] = m4 >= w_size ? m4 - w_size : 0;
|
|
71691
71702
|
} while (--n4 !== 0);
|
|
71692
71703
|
more += w_size;
|
|
71693
71704
|
}
|
|
@@ -74088,17 +74099,17 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74088
74099
|
let k4;
|
|
74089
74100
|
let l4;
|
|
74090
74101
|
let mask;
|
|
74091
|
-
let
|
|
74102
|
+
let p14;
|
|
74092
74103
|
let q3;
|
|
74093
74104
|
let w4;
|
|
74094
74105
|
let xp;
|
|
74095
74106
|
let y5;
|
|
74096
74107
|
let z4;
|
|
74097
|
-
|
|
74108
|
+
p14 = 0;
|
|
74098
74109
|
i4 = n4;
|
|
74099
74110
|
do {
|
|
74100
|
-
c4[b4[bindex +
|
|
74101
|
-
|
|
74111
|
+
c4[b4[bindex + p14]]++;
|
|
74112
|
+
p14++;
|
|
74102
74113
|
i4--;
|
|
74103
74114
|
} while (i4 !== 0);
|
|
74104
74115
|
if (c4[0] == n4) {
|
|
@@ -74133,24 +74144,24 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74133
74144
|
}
|
|
74134
74145
|
c4[i4] += y5;
|
|
74135
74146
|
x4[1] = j4 = 0;
|
|
74136
|
-
|
|
74147
|
+
p14 = 1;
|
|
74137
74148
|
xp = 2;
|
|
74138
74149
|
while (--i4 !== 0) {
|
|
74139
|
-
x4[xp] = j4 += c4[
|
|
74150
|
+
x4[xp] = j4 += c4[p14];
|
|
74140
74151
|
xp++;
|
|
74141
|
-
|
|
74152
|
+
p14++;
|
|
74142
74153
|
}
|
|
74143
74154
|
i4 = 0;
|
|
74144
|
-
|
|
74155
|
+
p14 = 0;
|
|
74145
74156
|
do {
|
|
74146
|
-
if ((j4 = b4[bindex +
|
|
74157
|
+
if ((j4 = b4[bindex + p14]) !== 0) {
|
|
74147
74158
|
v6[x4[j4]++] = i4;
|
|
74148
74159
|
}
|
|
74149
|
-
|
|
74160
|
+
p14++;
|
|
74150
74161
|
} while (++i4 < n4);
|
|
74151
74162
|
n4 = x4[g4];
|
|
74152
74163
|
x4[0] = i4 = 0;
|
|
74153
|
-
|
|
74164
|
+
p14 = 0;
|
|
74154
74165
|
h5 = -1;
|
|
74155
74166
|
w4 = -l4;
|
|
74156
74167
|
u4[0] = 0;
|
|
@@ -74198,16 +74209,16 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74198
74209
|
}
|
|
74199
74210
|
r5[1] = /* (byte) */
|
|
74200
74211
|
k4 - w4;
|
|
74201
|
-
if (
|
|
74212
|
+
if (p14 >= n4) {
|
|
74202
74213
|
r5[0] = 128 + 64;
|
|
74203
|
-
} else if (v6[
|
|
74214
|
+
} else if (v6[p14] < s4) {
|
|
74204
74215
|
r5[0] = /* (byte) */
|
|
74205
|
-
v6[
|
|
74206
|
-
r5[2] = v6[
|
|
74216
|
+
v6[p14] < 256 ? 0 : 32 + 64;
|
|
74217
|
+
r5[2] = v6[p14++];
|
|
74207
74218
|
} else {
|
|
74208
74219
|
r5[0] = /* (byte) */
|
|
74209
|
-
e6[v6[
|
|
74210
|
-
r5[2] = d4[v6[
|
|
74220
|
+
e6[v6[p14] - s4] + 16 + 64;
|
|
74221
|
+
r5[2] = d4[v6[p14++] - s4];
|
|
74211
74222
|
}
|
|
74212
74223
|
f4 = 1 << k4 - w4;
|
|
74213
74224
|
for (j4 = i4 >>> w4; j4 < z4; j4 += f4) {
|
|
@@ -74336,7 +74347,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74336
74347
|
let e6;
|
|
74337
74348
|
let b4;
|
|
74338
74349
|
let k4;
|
|
74339
|
-
let
|
|
74350
|
+
let p14;
|
|
74340
74351
|
let n4;
|
|
74341
74352
|
let q3;
|
|
74342
74353
|
let m4;
|
|
@@ -74346,7 +74357,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74346
74357
|
let d4;
|
|
74347
74358
|
let r5;
|
|
74348
74359
|
let tp_index_t_3;
|
|
74349
|
-
|
|
74360
|
+
p14 = z4.next_in_index;
|
|
74350
74361
|
n4 = z4.avail_in;
|
|
74351
74362
|
b4 = s4.bitb;
|
|
74352
74363
|
k4 = s4.bitk;
|
|
@@ -74357,7 +74368,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74357
74368
|
do {
|
|
74358
74369
|
while (k4 < 20) {
|
|
74359
74370
|
n4--;
|
|
74360
|
-
b4 |= (z4.read_byte(
|
|
74371
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
74361
74372
|
k4 += 8;
|
|
74362
74373
|
}
|
|
74363
74374
|
t5 = b4 & ml;
|
|
@@ -74383,7 +74394,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74383
74394
|
k4 -= e6;
|
|
74384
74395
|
while (k4 < 15) {
|
|
74385
74396
|
n4--;
|
|
74386
|
-
b4 |= (z4.read_byte(
|
|
74397
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
74387
74398
|
k4 += 8;
|
|
74388
74399
|
}
|
|
74389
74400
|
t5 = b4 & md;
|
|
@@ -74398,7 +74409,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74398
74409
|
e6 &= 15;
|
|
74399
74410
|
while (k4 < e6) {
|
|
74400
74411
|
n4--;
|
|
74401
|
-
b4 |= (z4.read_byte(
|
|
74412
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
74402
74413
|
k4 += 8;
|
|
74403
74414
|
}
|
|
74404
74415
|
d4 = tp[tp_index_t_3 + 2] + (b4 & inflate_mask[e6]);
|
|
@@ -74459,13 +74470,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74459
74470
|
c4 = z4.avail_in - n4;
|
|
74460
74471
|
c4 = k4 >> 3 < c4 ? k4 >> 3 : c4;
|
|
74461
74472
|
n4 += c4;
|
|
74462
|
-
|
|
74473
|
+
p14 -= c4;
|
|
74463
74474
|
k4 -= c4 << 3;
|
|
74464
74475
|
s4.bitb = b4;
|
|
74465
74476
|
s4.bitk = k4;
|
|
74466
74477
|
z4.avail_in = n4;
|
|
74467
|
-
z4.total_in +=
|
|
74468
|
-
z4.next_in_index =
|
|
74478
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74479
|
+
z4.next_in_index = p14;
|
|
74469
74480
|
s4.write = q3;
|
|
74470
74481
|
return Z_DATA_ERROR3;
|
|
74471
74482
|
}
|
|
@@ -74488,13 +74499,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74488
74499
|
c4 = z4.avail_in - n4;
|
|
74489
74500
|
c4 = k4 >> 3 < c4 ? k4 >> 3 : c4;
|
|
74490
74501
|
n4 += c4;
|
|
74491
|
-
|
|
74502
|
+
p14 -= c4;
|
|
74492
74503
|
k4 -= c4 << 3;
|
|
74493
74504
|
s4.bitb = b4;
|
|
74494
74505
|
s4.bitk = k4;
|
|
74495
74506
|
z4.avail_in = n4;
|
|
74496
|
-
z4.total_in +=
|
|
74497
|
-
z4.next_in_index =
|
|
74507
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74508
|
+
z4.next_in_index = p14;
|
|
74498
74509
|
s4.write = q3;
|
|
74499
74510
|
return Z_STREAM_END3;
|
|
74500
74511
|
} else {
|
|
@@ -74502,13 +74513,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74502
74513
|
c4 = z4.avail_in - n4;
|
|
74503
74514
|
c4 = k4 >> 3 < c4 ? k4 >> 3 : c4;
|
|
74504
74515
|
n4 += c4;
|
|
74505
|
-
|
|
74516
|
+
p14 -= c4;
|
|
74506
74517
|
k4 -= c4 << 3;
|
|
74507
74518
|
s4.bitb = b4;
|
|
74508
74519
|
s4.bitk = k4;
|
|
74509
74520
|
z4.avail_in = n4;
|
|
74510
|
-
z4.total_in +=
|
|
74511
|
-
z4.next_in_index =
|
|
74521
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74522
|
+
z4.next_in_index = p14;
|
|
74512
74523
|
s4.write = q3;
|
|
74513
74524
|
return Z_DATA_ERROR3;
|
|
74514
74525
|
}
|
|
@@ -74517,13 +74528,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74517
74528
|
c4 = z4.avail_in - n4;
|
|
74518
74529
|
c4 = k4 >> 3 < c4 ? k4 >> 3 : c4;
|
|
74519
74530
|
n4 += c4;
|
|
74520
|
-
|
|
74531
|
+
p14 -= c4;
|
|
74521
74532
|
k4 -= c4 << 3;
|
|
74522
74533
|
s4.bitb = b4;
|
|
74523
74534
|
s4.bitk = k4;
|
|
74524
74535
|
z4.avail_in = n4;
|
|
74525
|
-
z4.total_in +=
|
|
74526
|
-
z4.next_in_index =
|
|
74536
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74537
|
+
z4.next_in_index = p14;
|
|
74527
74538
|
s4.write = q3;
|
|
74528
74539
|
return Z_OK3;
|
|
74529
74540
|
}
|
|
@@ -74545,12 +74556,12 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74545
74556
|
let e6;
|
|
74546
74557
|
let b4 = 0;
|
|
74547
74558
|
let k4 = 0;
|
|
74548
|
-
let
|
|
74559
|
+
let p14 = 0;
|
|
74549
74560
|
let n4;
|
|
74550
74561
|
let q3;
|
|
74551
74562
|
let m4;
|
|
74552
74563
|
let f4;
|
|
74553
|
-
|
|
74564
|
+
p14 = z4.next_in_index;
|
|
74554
74565
|
n4 = z4.avail_in;
|
|
74555
74566
|
b4 = s4.bitb;
|
|
74556
74567
|
k4 = s4.bitk;
|
|
@@ -74564,11 +74575,11 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74564
74575
|
s4.bitb = b4;
|
|
74565
74576
|
s4.bitk = k4;
|
|
74566
74577
|
z4.avail_in = n4;
|
|
74567
|
-
z4.total_in +=
|
|
74568
|
-
z4.next_in_index =
|
|
74578
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74579
|
+
z4.next_in_index = p14;
|
|
74569
74580
|
s4.write = q3;
|
|
74570
74581
|
r5 = inflate_fast(lbits, dbits, ltree, ltree_index, dtree, dtree_index, s4, z4);
|
|
74571
|
-
|
|
74582
|
+
p14 = z4.next_in_index;
|
|
74572
74583
|
n4 = z4.avail_in;
|
|
74573
74584
|
b4 = s4.bitb;
|
|
74574
74585
|
k4 = s4.bitk;
|
|
@@ -74593,13 +74604,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74593
74604
|
s4.bitb = b4;
|
|
74594
74605
|
s4.bitk = k4;
|
|
74595
74606
|
z4.avail_in = n4;
|
|
74596
|
-
z4.total_in +=
|
|
74597
|
-
z4.next_in_index =
|
|
74607
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74608
|
+
z4.next_in_index = p14;
|
|
74598
74609
|
s4.write = q3;
|
|
74599
74610
|
return s4.inflate_flush(z4, r5);
|
|
74600
74611
|
}
|
|
74601
74612
|
n4--;
|
|
74602
|
-
b4 |= (z4.read_byte(
|
|
74613
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
74603
74614
|
k4 += 8;
|
|
74604
74615
|
}
|
|
74605
74616
|
tindex = (tree_index + (b4 & inflate_mask[j4])) * 3;
|
|
@@ -74632,8 +74643,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74632
74643
|
s4.bitb = b4;
|
|
74633
74644
|
s4.bitk = k4;
|
|
74634
74645
|
z4.avail_in = n4;
|
|
74635
|
-
z4.total_in +=
|
|
74636
|
-
z4.next_in_index =
|
|
74646
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74647
|
+
z4.next_in_index = p14;
|
|
74637
74648
|
s4.write = q3;
|
|
74638
74649
|
return s4.inflate_flush(z4, r5);
|
|
74639
74650
|
case LENEXT:
|
|
@@ -74645,13 +74656,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74645
74656
|
s4.bitb = b4;
|
|
74646
74657
|
s4.bitk = k4;
|
|
74647
74658
|
z4.avail_in = n4;
|
|
74648
|
-
z4.total_in +=
|
|
74649
|
-
z4.next_in_index =
|
|
74659
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74660
|
+
z4.next_in_index = p14;
|
|
74650
74661
|
s4.write = q3;
|
|
74651
74662
|
return s4.inflate_flush(z4, r5);
|
|
74652
74663
|
}
|
|
74653
74664
|
n4--;
|
|
74654
|
-
b4 |= (z4.read_byte(
|
|
74665
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
74655
74666
|
k4 += 8;
|
|
74656
74667
|
}
|
|
74657
74668
|
len += b4 & inflate_mask[j4];
|
|
@@ -74671,13 +74682,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74671
74682
|
s4.bitb = b4;
|
|
74672
74683
|
s4.bitk = k4;
|
|
74673
74684
|
z4.avail_in = n4;
|
|
74674
|
-
z4.total_in +=
|
|
74675
|
-
z4.next_in_index =
|
|
74685
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74686
|
+
z4.next_in_index = p14;
|
|
74676
74687
|
s4.write = q3;
|
|
74677
74688
|
return s4.inflate_flush(z4, r5);
|
|
74678
74689
|
}
|
|
74679
74690
|
n4--;
|
|
74680
|
-
b4 |= (z4.read_byte(
|
|
74691
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
74681
74692
|
k4 += 8;
|
|
74682
74693
|
}
|
|
74683
74694
|
tindex = (tree_index + (b4 & inflate_mask[j4])) * 3;
|
|
@@ -74701,8 +74712,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74701
74712
|
s4.bitb = b4;
|
|
74702
74713
|
s4.bitk = k4;
|
|
74703
74714
|
z4.avail_in = n4;
|
|
74704
|
-
z4.total_in +=
|
|
74705
|
-
z4.next_in_index =
|
|
74715
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74716
|
+
z4.next_in_index = p14;
|
|
74706
74717
|
s4.write = q3;
|
|
74707
74718
|
return s4.inflate_flush(z4, r5);
|
|
74708
74719
|
case DISTEXT:
|
|
@@ -74714,13 +74725,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74714
74725
|
s4.bitb = b4;
|
|
74715
74726
|
s4.bitk = k4;
|
|
74716
74727
|
z4.avail_in = n4;
|
|
74717
|
-
z4.total_in +=
|
|
74718
|
-
z4.next_in_index =
|
|
74728
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74729
|
+
z4.next_in_index = p14;
|
|
74719
74730
|
s4.write = q3;
|
|
74720
74731
|
return s4.inflate_flush(z4, r5);
|
|
74721
74732
|
}
|
|
74722
74733
|
n4--;
|
|
74723
|
-
b4 |= (z4.read_byte(
|
|
74734
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
74724
74735
|
k4 += 8;
|
|
74725
74736
|
}
|
|
74726
74737
|
dist += b4 & inflate_mask[j4];
|
|
@@ -74752,8 +74763,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74752
74763
|
s4.bitb = b4;
|
|
74753
74764
|
s4.bitk = k4;
|
|
74754
74765
|
z4.avail_in = n4;
|
|
74755
|
-
z4.total_in +=
|
|
74756
|
-
z4.next_in_index =
|
|
74766
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74767
|
+
z4.next_in_index = p14;
|
|
74757
74768
|
s4.write = q3;
|
|
74758
74769
|
return s4.inflate_flush(z4, r5);
|
|
74759
74770
|
}
|
|
@@ -74786,8 +74797,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74786
74797
|
s4.bitb = b4;
|
|
74787
74798
|
s4.bitk = k4;
|
|
74788
74799
|
z4.avail_in = n4;
|
|
74789
|
-
z4.total_in +=
|
|
74790
|
-
z4.next_in_index =
|
|
74800
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74801
|
+
z4.next_in_index = p14;
|
|
74791
74802
|
s4.write = q3;
|
|
74792
74803
|
return s4.inflate_flush(z4, r5);
|
|
74793
74804
|
}
|
|
@@ -74803,7 +74814,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74803
74814
|
if (k4 > 7) {
|
|
74804
74815
|
k4 -= 8;
|
|
74805
74816
|
n4++;
|
|
74806
|
-
|
|
74817
|
+
p14--;
|
|
74807
74818
|
}
|
|
74808
74819
|
s4.write = q3;
|
|
74809
74820
|
r5 = s4.inflate_flush(z4, r5);
|
|
@@ -74813,8 +74824,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74813
74824
|
s4.bitb = b4;
|
|
74814
74825
|
s4.bitk = k4;
|
|
74815
74826
|
z4.avail_in = n4;
|
|
74816
|
-
z4.total_in +=
|
|
74817
|
-
z4.next_in_index =
|
|
74827
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74828
|
+
z4.next_in_index = p14;
|
|
74818
74829
|
s4.write = q3;
|
|
74819
74830
|
return s4.inflate_flush(z4, r5);
|
|
74820
74831
|
}
|
|
@@ -74825,8 +74836,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74825
74836
|
s4.bitb = b4;
|
|
74826
74837
|
s4.bitk = k4;
|
|
74827
74838
|
z4.avail_in = n4;
|
|
74828
|
-
z4.total_in +=
|
|
74829
|
-
z4.next_in_index =
|
|
74839
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74840
|
+
z4.next_in_index = p14;
|
|
74830
74841
|
s4.write = q3;
|
|
74831
74842
|
return s4.inflate_flush(z4, r5);
|
|
74832
74843
|
case BADCODE:
|
|
@@ -74834,8 +74845,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74834
74845
|
s4.bitb = b4;
|
|
74835
74846
|
s4.bitk = k4;
|
|
74836
74847
|
z4.avail_in = n4;
|
|
74837
|
-
z4.total_in +=
|
|
74838
|
-
z4.next_in_index =
|
|
74848
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74849
|
+
z4.next_in_index = p14;
|
|
74839
74850
|
s4.write = q3;
|
|
74840
74851
|
return s4.inflate_flush(z4, r5);
|
|
74841
74852
|
default:
|
|
@@ -74843,8 +74854,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74843
74854
|
s4.bitb = b4;
|
|
74844
74855
|
s4.bitk = k4;
|
|
74845
74856
|
z4.avail_in = n4;
|
|
74846
|
-
z4.total_in +=
|
|
74847
|
-
z4.next_in_index =
|
|
74857
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
74858
|
+
z4.next_in_index = p14;
|
|
74848
74859
|
s4.write = q3;
|
|
74849
74860
|
return s4.inflate_flush(z4, r5);
|
|
74850
74861
|
}
|
|
@@ -74919,9 +74930,9 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74919
74930
|
that.reset(z4, null);
|
|
74920
74931
|
that.inflate_flush = function(z5, r5) {
|
|
74921
74932
|
let n4;
|
|
74922
|
-
let
|
|
74933
|
+
let p14;
|
|
74923
74934
|
let q3;
|
|
74924
|
-
|
|
74935
|
+
p14 = z5.next_out_index;
|
|
74925
74936
|
q3 = that.read;
|
|
74926
74937
|
n4 = /* (int) */
|
|
74927
74938
|
(q3 <= that.write ? that.write : that.end) - q3;
|
|
@@ -74931,8 +74942,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74931
74942
|
r5 = Z_OK3;
|
|
74932
74943
|
z5.avail_out -= n4;
|
|
74933
74944
|
z5.total_out += n4;
|
|
74934
|
-
z5.next_out.set(that.win.subarray(q3, q3 + n4),
|
|
74935
|
-
|
|
74945
|
+
z5.next_out.set(that.win.subarray(q3, q3 + n4), p14);
|
|
74946
|
+
p14 += n4;
|
|
74936
74947
|
q3 += n4;
|
|
74937
74948
|
if (q3 == that.end) {
|
|
74938
74949
|
q3 = 0;
|
|
@@ -74945,11 +74956,11 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74945
74956
|
r5 = Z_OK3;
|
|
74946
74957
|
z5.avail_out -= n4;
|
|
74947
74958
|
z5.total_out += n4;
|
|
74948
|
-
z5.next_out.set(that.win.subarray(q3, q3 + n4),
|
|
74949
|
-
|
|
74959
|
+
z5.next_out.set(that.win.subarray(q3, q3 + n4), p14);
|
|
74960
|
+
p14 += n4;
|
|
74950
74961
|
q3 += n4;
|
|
74951
74962
|
}
|
|
74952
|
-
z5.next_out_index =
|
|
74963
|
+
z5.next_out_index = p14;
|
|
74953
74964
|
that.read = q3;
|
|
74954
74965
|
return r5;
|
|
74955
74966
|
};
|
|
@@ -74957,12 +74968,12 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74957
74968
|
let t5;
|
|
74958
74969
|
let b4;
|
|
74959
74970
|
let k4;
|
|
74960
|
-
let
|
|
74971
|
+
let p14;
|
|
74961
74972
|
let n4;
|
|
74962
74973
|
let q3;
|
|
74963
74974
|
let m4;
|
|
74964
74975
|
let i4;
|
|
74965
|
-
|
|
74976
|
+
p14 = z5.next_in_index;
|
|
74966
74977
|
n4 = z5.avail_in;
|
|
74967
74978
|
b4 = that.bitb;
|
|
74968
74979
|
k4 = that.bitk;
|
|
@@ -74980,13 +74991,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
74980
74991
|
that.bitb = b4;
|
|
74981
74992
|
that.bitk = k4;
|
|
74982
74993
|
z5.avail_in = n4;
|
|
74983
|
-
z5.total_in +=
|
|
74984
|
-
z5.next_in_index =
|
|
74994
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
74995
|
+
z5.next_in_index = p14;
|
|
74985
74996
|
that.write = q3;
|
|
74986
74997
|
return that.inflate_flush(z5, r5);
|
|
74987
74998
|
}
|
|
74988
74999
|
n4--;
|
|
74989
|
-
b4 |= (z5.read_byte(
|
|
75000
|
+
b4 |= (z5.read_byte(p14++) & 255) << k4;
|
|
74990
75001
|
k4 += 8;
|
|
74991
75002
|
}
|
|
74992
75003
|
t5 = /* (int) */
|
|
@@ -75026,8 +75037,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75026
75037
|
that.bitb = b4;
|
|
75027
75038
|
that.bitk = k4;
|
|
75028
75039
|
z5.avail_in = n4;
|
|
75029
|
-
z5.total_in +=
|
|
75030
|
-
z5.next_in_index =
|
|
75040
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75041
|
+
z5.next_in_index = p14;
|
|
75031
75042
|
that.write = q3;
|
|
75032
75043
|
return that.inflate_flush(z5, r5);
|
|
75033
75044
|
}
|
|
@@ -75040,13 +75051,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75040
75051
|
that.bitb = b4;
|
|
75041
75052
|
that.bitk = k4;
|
|
75042
75053
|
z5.avail_in = n4;
|
|
75043
|
-
z5.total_in +=
|
|
75044
|
-
z5.next_in_index =
|
|
75054
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75055
|
+
z5.next_in_index = p14;
|
|
75045
75056
|
that.write = q3;
|
|
75046
75057
|
return that.inflate_flush(z5, r5);
|
|
75047
75058
|
}
|
|
75048
75059
|
n4--;
|
|
75049
|
-
b4 |= (z5.read_byte(
|
|
75060
|
+
b4 |= (z5.read_byte(p14++) & 255) << k4;
|
|
75050
75061
|
k4 += 8;
|
|
75051
75062
|
}
|
|
75052
75063
|
if ((~b4 >>> 16 & 65535) != (b4 & 65535)) {
|
|
@@ -75056,8 +75067,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75056
75067
|
that.bitb = b4;
|
|
75057
75068
|
that.bitk = k4;
|
|
75058
75069
|
z5.avail_in = n4;
|
|
75059
|
-
z5.total_in +=
|
|
75060
|
-
z5.next_in_index =
|
|
75070
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75071
|
+
z5.next_in_index = p14;
|
|
75061
75072
|
that.write = q3;
|
|
75062
75073
|
return that.inflate_flush(z5, r5);
|
|
75063
75074
|
}
|
|
@@ -75070,8 +75081,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75070
75081
|
that.bitb = b4;
|
|
75071
75082
|
that.bitk = k4;
|
|
75072
75083
|
z5.avail_in = n4;
|
|
75073
|
-
z5.total_in +=
|
|
75074
|
-
z5.next_in_index =
|
|
75084
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75085
|
+
z5.next_in_index = p14;
|
|
75075
75086
|
that.write = q3;
|
|
75076
75087
|
return that.inflate_flush(z5, r5);
|
|
75077
75088
|
}
|
|
@@ -75096,8 +75107,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75096
75107
|
that.bitb = b4;
|
|
75097
75108
|
that.bitk = k4;
|
|
75098
75109
|
z5.avail_in = n4;
|
|
75099
|
-
z5.total_in +=
|
|
75100
|
-
z5.next_in_index =
|
|
75110
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75111
|
+
z5.next_in_index = p14;
|
|
75101
75112
|
that.write = q3;
|
|
75102
75113
|
return that.inflate_flush(z5, r5);
|
|
75103
75114
|
}
|
|
@@ -75109,8 +75120,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75109
75120
|
t5 = n4;
|
|
75110
75121
|
if (t5 > m4)
|
|
75111
75122
|
t5 = m4;
|
|
75112
|
-
that.win.set(z5.read_buf(
|
|
75113
|
-
|
|
75123
|
+
that.win.set(z5.read_buf(p14, t5), q3);
|
|
75124
|
+
p14 += t5;
|
|
75114
75125
|
n4 -= t5;
|
|
75115
75126
|
q3 += t5;
|
|
75116
75127
|
m4 -= t5;
|
|
@@ -75126,13 +75137,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75126
75137
|
that.bitb = b4;
|
|
75127
75138
|
that.bitk = k4;
|
|
75128
75139
|
z5.avail_in = n4;
|
|
75129
|
-
z5.total_in +=
|
|
75130
|
-
z5.next_in_index =
|
|
75140
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75141
|
+
z5.next_in_index = p14;
|
|
75131
75142
|
that.write = q3;
|
|
75132
75143
|
return that.inflate_flush(z5, r5);
|
|
75133
75144
|
}
|
|
75134
75145
|
n4--;
|
|
75135
|
-
b4 |= (z5.read_byte(
|
|
75146
|
+
b4 |= (z5.read_byte(p14++) & 255) << k4;
|
|
75136
75147
|
k4 += 8;
|
|
75137
75148
|
}
|
|
75138
75149
|
table3 = t5 = b4 & 16383;
|
|
@@ -75143,8 +75154,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75143
75154
|
that.bitb = b4;
|
|
75144
75155
|
that.bitk = k4;
|
|
75145
75156
|
z5.avail_in = n4;
|
|
75146
|
-
z5.total_in +=
|
|
75147
|
-
z5.next_in_index =
|
|
75157
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75158
|
+
z5.next_in_index = p14;
|
|
75148
75159
|
that.write = q3;
|
|
75149
75160
|
return that.inflate_flush(z5, r5);
|
|
75150
75161
|
}
|
|
@@ -75170,13 +75181,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75170
75181
|
that.bitb = b4;
|
|
75171
75182
|
that.bitk = k4;
|
|
75172
75183
|
z5.avail_in = n4;
|
|
75173
|
-
z5.total_in +=
|
|
75174
|
-
z5.next_in_index =
|
|
75184
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75185
|
+
z5.next_in_index = p14;
|
|
75175
75186
|
that.write = q3;
|
|
75176
75187
|
return that.inflate_flush(z5, r5);
|
|
75177
75188
|
}
|
|
75178
75189
|
n4--;
|
|
75179
|
-
b4 |= (z5.read_byte(
|
|
75190
|
+
b4 |= (z5.read_byte(p14++) & 255) << k4;
|
|
75180
75191
|
k4 += 8;
|
|
75181
75192
|
}
|
|
75182
75193
|
blens[border[index++]] = b4 & 7;
|
|
@@ -75197,8 +75208,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75197
75208
|
that.bitb = b4;
|
|
75198
75209
|
that.bitk = k4;
|
|
75199
75210
|
z5.avail_in = n4;
|
|
75200
|
-
z5.total_in +=
|
|
75201
|
-
z5.next_in_index =
|
|
75211
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75212
|
+
z5.next_in_index = p14;
|
|
75202
75213
|
that.write = q3;
|
|
75203
75214
|
return that.inflate_flush(z5, r5);
|
|
75204
75215
|
}
|
|
@@ -75220,13 +75231,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75220
75231
|
that.bitb = b4;
|
|
75221
75232
|
that.bitk = k4;
|
|
75222
75233
|
z5.avail_in = n4;
|
|
75223
|
-
z5.total_in +=
|
|
75224
|
-
z5.next_in_index =
|
|
75234
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75235
|
+
z5.next_in_index = p14;
|
|
75225
75236
|
that.write = q3;
|
|
75226
75237
|
return that.inflate_flush(z5, r5);
|
|
75227
75238
|
}
|
|
75228
75239
|
n4--;
|
|
75229
|
-
b4 |= (z5.read_byte(
|
|
75240
|
+
b4 |= (z5.read_byte(p14++) & 255) << k4;
|
|
75230
75241
|
k4 += 8;
|
|
75231
75242
|
}
|
|
75232
75243
|
t5 = hufts[(tb[0] + (b4 & inflate_mask[t5])) * 3 + 1];
|
|
@@ -75245,13 +75256,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75245
75256
|
that.bitb = b4;
|
|
75246
75257
|
that.bitk = k4;
|
|
75247
75258
|
z5.avail_in = n4;
|
|
75248
|
-
z5.total_in +=
|
|
75249
|
-
z5.next_in_index =
|
|
75259
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75260
|
+
z5.next_in_index = p14;
|
|
75250
75261
|
that.write = q3;
|
|
75251
75262
|
return that.inflate_flush(z5, r5);
|
|
75252
75263
|
}
|
|
75253
75264
|
n4--;
|
|
75254
|
-
b4 |= (z5.read_byte(
|
|
75265
|
+
b4 |= (z5.read_byte(p14++) & 255) << k4;
|
|
75255
75266
|
k4 += 8;
|
|
75256
75267
|
}
|
|
75257
75268
|
b4 >>>= t5;
|
|
@@ -75269,8 +75280,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75269
75280
|
that.bitb = b4;
|
|
75270
75281
|
that.bitk = k4;
|
|
75271
75282
|
z5.avail_in = n4;
|
|
75272
|
-
z5.total_in +=
|
|
75273
|
-
z5.next_in_index =
|
|
75283
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75284
|
+
z5.next_in_index = p14;
|
|
75274
75285
|
that.write = q3;
|
|
75275
75286
|
return that.inflate_flush(z5, r5);
|
|
75276
75287
|
}
|
|
@@ -75299,8 +75310,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75299
75310
|
that.bitb = b4;
|
|
75300
75311
|
that.bitk = k4;
|
|
75301
75312
|
z5.avail_in = n4;
|
|
75302
|
-
z5.total_in +=
|
|
75303
|
-
z5.next_in_index =
|
|
75313
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75314
|
+
z5.next_in_index = p14;
|
|
75304
75315
|
that.write = q3;
|
|
75305
75316
|
return that.inflate_flush(z5, r5);
|
|
75306
75317
|
}
|
|
@@ -75311,15 +75322,15 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75311
75322
|
that.bitb = b4;
|
|
75312
75323
|
that.bitk = k4;
|
|
75313
75324
|
z5.avail_in = n4;
|
|
75314
|
-
z5.total_in +=
|
|
75315
|
-
z5.next_in_index =
|
|
75325
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75326
|
+
z5.next_in_index = p14;
|
|
75316
75327
|
that.write = q3;
|
|
75317
75328
|
if ((r5 = codes2.proc(that, z5, r5)) != Z_STREAM_END3) {
|
|
75318
75329
|
return that.inflate_flush(z5, r5);
|
|
75319
75330
|
}
|
|
75320
75331
|
r5 = Z_OK3;
|
|
75321
75332
|
codes2.free(z5);
|
|
75322
|
-
|
|
75333
|
+
p14 = z5.next_in_index;
|
|
75323
75334
|
n4 = z5.avail_in;
|
|
75324
75335
|
b4 = that.bitb;
|
|
75325
75336
|
k4 = that.bitk;
|
|
@@ -75342,8 +75353,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75342
75353
|
that.bitb = b4;
|
|
75343
75354
|
that.bitk = k4;
|
|
75344
75355
|
z5.avail_in = n4;
|
|
75345
|
-
z5.total_in +=
|
|
75346
|
-
z5.next_in_index =
|
|
75356
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75357
|
+
z5.next_in_index = p14;
|
|
75347
75358
|
that.write = q3;
|
|
75348
75359
|
return that.inflate_flush(z5, r5);
|
|
75349
75360
|
}
|
|
@@ -75354,8 +75365,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75354
75365
|
that.bitb = b4;
|
|
75355
75366
|
that.bitk = k4;
|
|
75356
75367
|
z5.avail_in = n4;
|
|
75357
|
-
z5.total_in +=
|
|
75358
|
-
z5.next_in_index =
|
|
75368
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75369
|
+
z5.next_in_index = p14;
|
|
75359
75370
|
that.write = q3;
|
|
75360
75371
|
return that.inflate_flush(z5, r5);
|
|
75361
75372
|
case BADBLOCKS:
|
|
@@ -75363,8 +75374,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75363
75374
|
that.bitb = b4;
|
|
75364
75375
|
that.bitk = k4;
|
|
75365
75376
|
z5.avail_in = n4;
|
|
75366
|
-
z5.total_in +=
|
|
75367
|
-
z5.next_in_index =
|
|
75377
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75378
|
+
z5.next_in_index = p14;
|
|
75368
75379
|
that.write = q3;
|
|
75369
75380
|
return that.inflate_flush(z5, r5);
|
|
75370
75381
|
default:
|
|
@@ -75372,8 +75383,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75372
75383
|
that.bitb = b4;
|
|
75373
75384
|
that.bitk = k4;
|
|
75374
75385
|
z5.avail_in = n4;
|
|
75375
|
-
z5.total_in +=
|
|
75376
|
-
z5.next_in_index =
|
|
75386
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
75387
|
+
z5.next_in_index = p14;
|
|
75377
75388
|
that.write = q3;
|
|
75378
75389
|
return that.inflate_flush(z5, r5);
|
|
75379
75390
|
}
|
|
@@ -75572,7 +75583,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75572
75583
|
};
|
|
75573
75584
|
that.inflateSync = function(z4) {
|
|
75574
75585
|
let n4;
|
|
75575
|
-
let
|
|
75586
|
+
let p14;
|
|
75576
75587
|
let m4;
|
|
75577
75588
|
let r5, w4;
|
|
75578
75589
|
if (!z4 || !z4.istate)
|
|
@@ -75584,21 +75595,21 @@ return ${compiler2.callType("value", tagType)}
|
|
|
75584
75595
|
}
|
|
75585
75596
|
if ((n4 = z4.avail_in) === 0)
|
|
75586
75597
|
return Z_BUF_ERROR3;
|
|
75587
|
-
|
|
75598
|
+
p14 = z4.next_in_index;
|
|
75588
75599
|
m4 = istate.marker;
|
|
75589
75600
|
while (n4 !== 0 && m4 < 4) {
|
|
75590
|
-
if (z4.read_byte(
|
|
75601
|
+
if (z4.read_byte(p14) == mark[m4]) {
|
|
75591
75602
|
m4++;
|
|
75592
|
-
} else if (z4.read_byte(
|
|
75603
|
+
} else if (z4.read_byte(p14) !== 0) {
|
|
75593
75604
|
m4 = 0;
|
|
75594
75605
|
} else {
|
|
75595
75606
|
m4 = 4 - m4;
|
|
75596
75607
|
}
|
|
75597
|
-
|
|
75608
|
+
p14++;
|
|
75598
75609
|
n4--;
|
|
75599
75610
|
}
|
|
75600
|
-
z4.total_in +=
|
|
75601
|
-
z4.next_in_index =
|
|
75611
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
75612
|
+
z4.next_in_index = p14;
|
|
75602
75613
|
z4.avail_in = n4;
|
|
75603
75614
|
istate.marker = m4;
|
|
75604
75615
|
if (m4 != 4) {
|
|
@@ -82274,6 +82285,44 @@ ${key}` : key;
|
|
|
82274
82285
|
return Array.isArray(obj) && obj.length === 4;
|
|
82275
82286
|
}
|
|
82276
82287
|
|
|
82288
|
+
// src/model/ModelCulling.ts
|
|
82289
|
+
init_dirname();
|
|
82290
|
+
init_buffer2();
|
|
82291
|
+
init_process2();
|
|
82292
|
+
var ModelCulling = class {
|
|
82293
|
+
static toLocalMask(worldMask, rotation) {
|
|
82294
|
+
let localMask = 0;
|
|
82295
|
+
for (const [localFace, offset] of CUBE_FACE_OFFSETS.entries()) {
|
|
82296
|
+
const normal = new Vector3(...offset).applyEuler(rotation);
|
|
82297
|
+
const worldFace = CUBE_FACE_OFFSETS.findIndex(([x4, y5, z4]) => Math.abs(normal.x - x4) < 1e-6 && Math.abs(normal.y - y5) < 1e-6 && Math.abs(normal.z - z4) < 1e-6);
|
|
82298
|
+
if (worldFace < 0) return 0;
|
|
82299
|
+
if (worldMask & 1 << worldFace) localMask |= 1 << localFace;
|
|
82300
|
+
}
|
|
82301
|
+
return localMask;
|
|
82302
|
+
}
|
|
82303
|
+
static isOpaqueFullCube(atlas) {
|
|
82304
|
+
if (!atlas || atlas.hasTransparency !== false || atlas.model.elements?.length !== 1) return false;
|
|
82305
|
+
const element = atlas.model.elements[0];
|
|
82306
|
+
if (element.from.length !== 3 || !element.from.every((value) => value === 0) || element.to.length !== 3 || !element.to.every((value) => value === 16) || element.rotation && element.rotation.angle !== 0 || element.mappedUv?.length !== 48 || !element.mappedUv.every(Number.isFinite)) return false;
|
|
82307
|
+
if (!(atlas.image.width > 0 && atlas.image.height > 0)) return false;
|
|
82308
|
+
return CUBE_FACES.every((face, faceIndex) => {
|
|
82309
|
+
const texture = element.faces[face]?.texture;
|
|
82310
|
+
if (!texture?.startsWith("#")) return false;
|
|
82311
|
+
const key = texture.slice(1);
|
|
82312
|
+
const position = atlas.positions[key];
|
|
82313
|
+
const size = atlas.sizes[key];
|
|
82314
|
+
if (position?.length !== 2 || !position.every(Number.isFinite) || size?.length !== 2 || !size.every((value) => value > 0 && Number.isFinite(value))) return false;
|
|
82315
|
+
for (let vertex2 = 0; vertex2 < 4; vertex2++) {
|
|
82316
|
+
const uvIndex = (faceIndex * 4 + vertex2) * 2;
|
|
82317
|
+
const x4 = element.mappedUv[uvIndex] * atlas.image.width;
|
|
82318
|
+
const y5 = (1 - element.mappedUv[uvIndex + 1]) * atlas.image.height;
|
|
82319
|
+
if (x4 < position[0] - 1e-6 || x4 > position[0] + size[0] + 1e-6 || y5 < position[1] - 1e-6 || y5 > position[1] + size[1] + 1e-6) return false;
|
|
82320
|
+
}
|
|
82321
|
+
return true;
|
|
82322
|
+
});
|
|
82323
|
+
}
|
|
82324
|
+
};
|
|
82325
|
+
|
|
82277
82326
|
// src/model/ModelElement.ts
|
|
82278
82327
|
init_dirname();
|
|
82279
82328
|
init_buffer2();
|
|
@@ -82959,6 +83008,9 @@ ${key}` : key;
|
|
|
82959
83008
|
get textureAtlas() {
|
|
82960
83009
|
return this.atlas;
|
|
82961
83010
|
}
|
|
83011
|
+
get isOpaqueFullCube() {
|
|
83012
|
+
return !this.options.displayPosition && ModelCulling.isOpaqueFullCube(this.atlas);
|
|
83013
|
+
}
|
|
82962
83014
|
//TODO: support for replacing textures
|
|
82963
83015
|
async loadTextures() {
|
|
82964
83016
|
this.atlas = await UVMapper.getAtlas(this.originalModel);
|
|
@@ -82972,6 +83024,15 @@ ${key}` : key;
|
|
|
82972
83024
|
if (this.atlas.model.elements) {
|
|
82973
83025
|
this.atlas.model.elements?.forEach((el) => {
|
|
82974
83026
|
const elGeo = this._getBoxGeometryFromElement(el).clone();
|
|
83027
|
+
if (this.options.cullMask) {
|
|
83028
|
+
const indices = Array.from(elGeo.getIndex().array);
|
|
83029
|
+
elGeo.setIndex(indices.filter((_4, index) => {
|
|
83030
|
+
const face = CUBE_FACES[Math.floor(index / 6)];
|
|
83031
|
+
const direction = CUBE_FACES.findIndex((name2) => name2 === el.faces[face]?.cullface);
|
|
83032
|
+
return direction < 0 || !(this.options.cullMask & 1 << direction);
|
|
83033
|
+
}));
|
|
83034
|
+
elGeo.clearGroups();
|
|
83035
|
+
}
|
|
82975
83036
|
if (this.options.uvLockRotation) {
|
|
82976
83037
|
UVMapper.lockUvs(elGeo, el.faces, this.atlas, new Euler(...this.options.uvLockRotation));
|
|
82977
83038
|
}
|
|
@@ -83095,6 +83156,7 @@ ${key}` : key;
|
|
|
83095
83156
|
this._instanceModel = [];
|
|
83096
83157
|
this._variants = [];
|
|
83097
83158
|
this._models = [];
|
|
83159
|
+
this._cullMask = 0;
|
|
83098
83160
|
this.options = (0, import_ts_deepmerge6.default)({}, _BlockObject.DEFAULT_OPTIONS, options ?? {});
|
|
83099
83161
|
}
|
|
83100
83162
|
async init() {
|
|
@@ -83128,12 +83190,69 @@ ${key}` : key;
|
|
|
83128
83190
|
super.removeFromScene();
|
|
83129
83191
|
}
|
|
83130
83192
|
clearModels() {
|
|
83131
|
-
|
|
83193
|
+
this.removeModels(this._models.splice(0));
|
|
83194
|
+
this._isInstanced = false;
|
|
83195
|
+
this._instanceCounter = 0;
|
|
83196
|
+
}
|
|
83197
|
+
removeModels(models) {
|
|
83198
|
+
for (const model of models) {
|
|
83132
83199
|
model.removeFromScene();
|
|
83133
83200
|
if (!isInstanceReference(model)) model.dispose();
|
|
83134
83201
|
}
|
|
83135
|
-
|
|
83136
|
-
|
|
83202
|
+
}
|
|
83203
|
+
get isOccluding() {
|
|
83204
|
+
return this._models.some((model) => {
|
|
83205
|
+
const object = isInstanceReference(model) ? model.instanceable : model;
|
|
83206
|
+
return object.isOpaqueFullCube && this.getModelCullMask(model, 63) === 63;
|
|
83207
|
+
});
|
|
83208
|
+
}
|
|
83209
|
+
getModelMatrix(model) {
|
|
83210
|
+
if (isInstanceReference(model)) return model.getMatrix();
|
|
83211
|
+
if (model.matrixAutoUpdate) model.updateMatrix();
|
|
83212
|
+
return model.matrix.clone();
|
|
83213
|
+
}
|
|
83214
|
+
getModelCullMask(model, worldMask) {
|
|
83215
|
+
const object = isInstanceReference(model) ? model.instanceable : model;
|
|
83216
|
+
if (object.options.displayPosition) return 0;
|
|
83217
|
+
const position = new Vector3();
|
|
83218
|
+
const rotation = new Quaternion();
|
|
83219
|
+
const scale = new Vector3();
|
|
83220
|
+
this.getModelMatrix(model).decompose(position, rotation, scale);
|
|
83221
|
+
if (position.distanceToSquared(this.position) > 1e-10 || scale.distanceToSquared(new Vector3(1, 1, 1)) > 1e-10) return 0;
|
|
83222
|
+
return ModelCulling.toLocalMask(worldMask, new Euler().setFromQuaternion(rotation));
|
|
83223
|
+
}
|
|
83224
|
+
async setCullMask(worldMask) {
|
|
83225
|
+
worldMask &= 63;
|
|
83226
|
+
const replacements = [];
|
|
83227
|
+
try {
|
|
83228
|
+
for (const model of this._models) {
|
|
83229
|
+
const object = isInstanceReference(model) ? model.instanceable : model;
|
|
83230
|
+
const cullMask = this.getModelCullMask(model, worldMask);
|
|
83231
|
+
if (cullMask === (object.options.cullMask ?? 0)) {
|
|
83232
|
+
replacements.push(model);
|
|
83233
|
+
continue;
|
|
83234
|
+
}
|
|
83235
|
+
const matrix = this.getModelMatrix(model);
|
|
83236
|
+
const replacement = await this.scene.addModel(object.originalModel, { ...object.options, cullMask });
|
|
83237
|
+
replacements.push(replacement);
|
|
83238
|
+
if (isInstanceReference(replacement)) {
|
|
83239
|
+
replacement.setMatrix(matrix);
|
|
83240
|
+
} else {
|
|
83241
|
+
replacement.matrix.copy(matrix);
|
|
83242
|
+
matrix.decompose(replacement.position, replacement.quaternion, replacement.scale);
|
|
83243
|
+
replacement.matrixAutoUpdate = object.matrixAutoUpdate;
|
|
83244
|
+
replacement.visible = object.visible;
|
|
83245
|
+
}
|
|
83246
|
+
}
|
|
83247
|
+
} catch (error) {
|
|
83248
|
+
this.removeModels(replacements.filter((model) => !this._models.includes(model)));
|
|
83249
|
+
throw error;
|
|
83250
|
+
}
|
|
83251
|
+
const previous = this._models;
|
|
83252
|
+
this._models = replacements;
|
|
83253
|
+
this._cullMask = worldMask;
|
|
83254
|
+
this.removeModels(previous.filter((model) => !replacements.includes(model)));
|
|
83255
|
+
this.notifyDirty();
|
|
83137
83256
|
}
|
|
83138
83257
|
get state() {
|
|
83139
83258
|
return this._state;
|
|
@@ -83226,7 +83345,8 @@ ${key}` : key;
|
|
|
83226
83345
|
const options = {
|
|
83227
83346
|
...this.options,
|
|
83228
83347
|
tints: model ? await BlockTints.get(this.blockState.key, this.state, model, this.options.tints) : this.options.tints,
|
|
83229
|
-
uvLockRotation: variant.uvlock && (rotation.x !== 0 || rotation.y !== 0) ? [rotation.x, rotation.y, rotation.z] : void 0
|
|
83348
|
+
uvLockRotation: variant.uvlock && (rotation.x !== 0 || rotation.y !== 0) ? [rotation.x, rotation.y, rotation.z] : void 0,
|
|
83349
|
+
cullMask: this.options.displayPosition ? 0 : ModelCulling.toLocalMask(this._cullMask, rotation)
|
|
83230
83350
|
};
|
|
83231
83351
|
const obj = await this.scene.addModel(model, options);
|
|
83232
83352
|
if (isInstanceReference(obj) || obj.isInstanced) {
|
|
@@ -84538,11 +84658,12 @@ ${key}` : key;
|
|
|
84538
84658
|
console.log("instanceMeshes + key");
|
|
84539
84659
|
let key = asset.key.serialize();
|
|
84540
84660
|
if (isModelObject(obj)) {
|
|
84541
|
-
const { displayPosition, uvLockRotation, tints } = obj.options;
|
|
84661
|
+
const { displayPosition, uvLockRotation, tints, cullMask } = obj.options;
|
|
84542
84662
|
if (displayPosition) key += `|display:${displayPosition}`;
|
|
84543
84663
|
if (uvLockRotation) key += `|uvlock:${uvLockRotation.join(",")}`;
|
|
84544
84664
|
const palette = Object.entries(tints ?? {}).sort(([a4], [b4]) => Number(a4) - Number(b4));
|
|
84545
84665
|
if (palette.length) key += `|tints:${JSON.stringify(palette)}`;
|
|
84666
|
+
if (cullMask) key += `|cull:${cullMask}`;
|
|
84546
84667
|
}
|
|
84547
84668
|
return this.instanceManager.getOrCreate(key, async () => {
|
|
84548
84669
|
obj.scene = this;
|
|
@@ -86348,8 +86469,8 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
86348
86469
|
[bilinear(1, 1, 1, 0), new Float32Array([1, 1, 1, 0])],
|
|
86349
86470
|
[bilinear(1, 1, 1, 1), new Float32Array([1, 1, 1, 1])]
|
|
86350
86471
|
]);
|
|
86351
|
-
function lerp2(a4, b4,
|
|
86352
|
-
return a4 + (b4 - a4) *
|
|
86472
|
+
function lerp2(a4, b4, p14) {
|
|
86473
|
+
return a4 + (b4 - a4) * p14;
|
|
86353
86474
|
}
|
|
86354
86475
|
function bilinear(e0, e1, e22, e32) {
|
|
86355
86476
|
const a4 = lerp2(e0, e1, 1 - 0.25);
|
|
@@ -87543,6 +87664,90 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
87543
87664
|
init_buffer2();
|
|
87544
87665
|
init_process2();
|
|
87545
87666
|
|
|
87667
|
+
// src/world/ChunkData.ts
|
|
87668
|
+
init_dirname();
|
|
87669
|
+
init_buffer2();
|
|
87670
|
+
init_process2();
|
|
87671
|
+
var ChunkData = class _ChunkData {
|
|
87672
|
+
constructor() {
|
|
87673
|
+
this.indices = new Uint16Array(4096);
|
|
87674
|
+
this.palette = [void 0];
|
|
87675
|
+
this.paletteIds = /* @__PURE__ */ new Map();
|
|
87676
|
+
this.freeIds = [];
|
|
87677
|
+
this.nbt = /* @__PURE__ */ new Map();
|
|
87678
|
+
}
|
|
87679
|
+
get(index) {
|
|
87680
|
+
_ChunkData.validateIndex(index);
|
|
87681
|
+
const entry = this.palette[this.indices[index]];
|
|
87682
|
+
return entry ? _ChunkData.copyBlock(entry.state, this.nbt.get(index)) : void 0;
|
|
87683
|
+
}
|
|
87684
|
+
snapshot(index) {
|
|
87685
|
+
_ChunkData.validateIndex(index);
|
|
87686
|
+
const entry = this.palette[this.indices[index]];
|
|
87687
|
+
return entry ? _ChunkData.copyBlock.bind(void 0, entry.state, this.nbt.get(index)) : void 0;
|
|
87688
|
+
}
|
|
87689
|
+
set(index, block) {
|
|
87690
|
+
_ChunkData.validateIndex(index);
|
|
87691
|
+
let state;
|
|
87692
|
+
let key;
|
|
87693
|
+
let nbt;
|
|
87694
|
+
if (block && !_ChunkData.isAir(block)) {
|
|
87695
|
+
const type = AssetKey.parse("blockstates", block.type).toNamespacedString();
|
|
87696
|
+
const properties = Object.fromEntries(Object.keys(block.properties ?? {}).sort().map((name2) => [name2, block.properties[name2]]));
|
|
87697
|
+
state = Object.freeze(Object.keys(properties).length ? { type, properties: Object.freeze(properties) } : { type });
|
|
87698
|
+
key = JSON.stringify([type, properties]);
|
|
87699
|
+
if (block.nbt !== void 0) nbt = structuredClone(block.nbt);
|
|
87700
|
+
}
|
|
87701
|
+
const previousId = this.indices[index];
|
|
87702
|
+
if (previousId !== 0) {
|
|
87703
|
+
const previous = this.palette[previousId];
|
|
87704
|
+
if (--previous.references === 0) {
|
|
87705
|
+
this.paletteIds.delete(previous.key);
|
|
87706
|
+
this.palette[previousId] = void 0;
|
|
87707
|
+
this.freeIds.push(previousId);
|
|
87708
|
+
}
|
|
87709
|
+
}
|
|
87710
|
+
let id = 0;
|
|
87711
|
+
if (state && key !== void 0) {
|
|
87712
|
+
const existingId = this.paletteIds.get(key);
|
|
87713
|
+
if (existingId !== void 0) {
|
|
87714
|
+
id = existingId;
|
|
87715
|
+
this.palette[id].references++;
|
|
87716
|
+
} else {
|
|
87717
|
+
id = this.freeIds.pop() ?? this.palette.length;
|
|
87718
|
+
this.palette[id] = { key, state, references: 1 };
|
|
87719
|
+
this.paletteIds.set(key, id);
|
|
87720
|
+
}
|
|
87721
|
+
}
|
|
87722
|
+
this.indices[index] = id;
|
|
87723
|
+
if (nbt !== void 0) this.nbt.set(index, nbt);
|
|
87724
|
+
else this.nbt.delete(index);
|
|
87725
|
+
}
|
|
87726
|
+
clear() {
|
|
87727
|
+
this.indices.fill(0);
|
|
87728
|
+
this.palette.length = 1;
|
|
87729
|
+
this.paletteIds.clear();
|
|
87730
|
+
this.freeIds.length = 0;
|
|
87731
|
+
this.nbt.clear();
|
|
87732
|
+
}
|
|
87733
|
+
static isAir(block) {
|
|
87734
|
+
if (typeof block === "undefined" || typeof block.type === "undefined") return true;
|
|
87735
|
+
const key = AssetKey.parse("blockstates", block.type);
|
|
87736
|
+
return key.namespace === "minecraft" && !key.type && ["air", "cave_air", "void_air"].includes(key.path);
|
|
87737
|
+
}
|
|
87738
|
+
static copyBlock(state, nbt) {
|
|
87739
|
+
const block = { type: state.type };
|
|
87740
|
+
if (state.properties) block.properties = { ...state.properties };
|
|
87741
|
+
if (nbt !== void 0) block.nbt = structuredClone(nbt);
|
|
87742
|
+
return block;
|
|
87743
|
+
}
|
|
87744
|
+
static validateIndex(index) {
|
|
87745
|
+
if (!Number.isInteger(index) || index < 0 || index >= 4096) {
|
|
87746
|
+
throw new RangeError("Block index must be an integer from 0 to 4095");
|
|
87747
|
+
}
|
|
87748
|
+
}
|
|
87749
|
+
};
|
|
87750
|
+
|
|
87546
87751
|
// src/world/MineRenderWorld.ts
|
|
87547
87752
|
init_dirname();
|
|
87548
87753
|
init_buffer2();
|
|
@@ -87550,6 +87755,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
87550
87755
|
var MineRenderWorld = class {
|
|
87551
87756
|
constructor(scene) {
|
|
87552
87757
|
this._chunks = /* @__PURE__ */ new Map();
|
|
87758
|
+
this.pendingCulling = /* @__PURE__ */ new Map();
|
|
87553
87759
|
this.scene = scene;
|
|
87554
87760
|
}
|
|
87555
87761
|
getBlockAt(posOrX, y5, z4) {
|
|
@@ -87610,16 +87816,54 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
87610
87816
|
}
|
|
87611
87817
|
}
|
|
87612
87818
|
async clear() {
|
|
87613
|
-
|
|
87819
|
+
await this.culling;
|
|
87820
|
+
const chunks = [...this._chunks.values()];
|
|
87821
|
+
this._chunks.clear();
|
|
87822
|
+
for (const chunk of chunks) {
|
|
87614
87823
|
await chunk.dispose();
|
|
87615
87824
|
}
|
|
87616
|
-
|
|
87825
|
+
}
|
|
87826
|
+
updateCulling(positions) {
|
|
87827
|
+
for (const pos of positions) {
|
|
87828
|
+
this.pendingCulling.set(pos.toArray().join(","), pos.clone());
|
|
87829
|
+
for (const offset of CUBE_FACE_OFFSETS) {
|
|
87830
|
+
const neighbor = pos.clone().add(new Vector3(...offset));
|
|
87831
|
+
this.pendingCulling.set(neighbor.toArray().join(","), neighbor);
|
|
87832
|
+
}
|
|
87833
|
+
}
|
|
87834
|
+
return this.culling ?? (this.culling = Promise.resolve().then(async () => {
|
|
87835
|
+
try {
|
|
87836
|
+
while (this.pendingCulling.size) {
|
|
87837
|
+
const batch = [...this.pendingCulling.values()];
|
|
87838
|
+
this.pendingCulling.clear();
|
|
87839
|
+
for (const pos of batch) {
|
|
87840
|
+
const block = this.getBlockAt(pos)?.object;
|
|
87841
|
+
if (!block) continue;
|
|
87842
|
+
let mask = 0;
|
|
87843
|
+
for (const [face, offset] of CUBE_FACE_OFFSETS.entries()) {
|
|
87844
|
+
if (this.getBlockAt(pos.clone().add(new Vector3(...offset)))?.object.isOccluding) {
|
|
87845
|
+
mask |= 1 << face;
|
|
87846
|
+
}
|
|
87847
|
+
}
|
|
87848
|
+
await block.setCullMask(mask);
|
|
87849
|
+
}
|
|
87850
|
+
}
|
|
87851
|
+
} finally {
|
|
87852
|
+
this.culling = void 0;
|
|
87853
|
+
}
|
|
87854
|
+
}));
|
|
87617
87855
|
}
|
|
87618
87856
|
getOrCreateChunkAt(pos) {
|
|
87619
87857
|
const key = this.worldPosToChunkKey(pos);
|
|
87620
87858
|
let chunk = this._chunks.get(key);
|
|
87621
87859
|
if (typeof chunk === "undefined") {
|
|
87622
|
-
chunk = new Chunk(
|
|
87860
|
+
chunk = new Chunk(
|
|
87861
|
+
this.scene,
|
|
87862
|
+
Math.floor(pos.x / 16),
|
|
87863
|
+
Math.floor(pos.y / 16),
|
|
87864
|
+
Math.floor(pos.z / 16),
|
|
87865
|
+
(positions) => this.updateCulling(positions)
|
|
87866
|
+
);
|
|
87623
87867
|
this._chunks.set(key, chunk);
|
|
87624
87868
|
}
|
|
87625
87869
|
return chunk;
|
|
@@ -87655,10 +87899,11 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
87655
87899
|
};
|
|
87656
87900
|
|
|
87657
87901
|
// src/world/Chunk.ts
|
|
87658
|
-
var p14 = prefix("Chunk");
|
|
87659
87902
|
var Chunk = class _Chunk {
|
|
87660
|
-
constructor(scene, x4, y5, z4) {
|
|
87661
|
-
this.
|
|
87903
|
+
constructor(scene, x4, y5, z4, onBlocksChanged) {
|
|
87904
|
+
this.onBlocksChanged = onBlocksChanged;
|
|
87905
|
+
this.data = new ChunkData();
|
|
87906
|
+
this.renderedBlocks = /* @__PURE__ */ new Map();
|
|
87662
87907
|
this.scene = scene;
|
|
87663
87908
|
this.x = x4;
|
|
87664
87909
|
this.y = y5;
|
|
@@ -87673,7 +87918,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
87673
87918
|
}
|
|
87674
87919
|
const pos = this.worldPosToChunkPos(posOrX);
|
|
87675
87920
|
const index = _Chunk.chunkPosToBlockIndex(pos);
|
|
87676
|
-
return this.
|
|
87921
|
+
return this.renderedBlocks.get(index);
|
|
87677
87922
|
}
|
|
87678
87923
|
async setBlockAt(posOrX, yOrBlock, z4, block) {
|
|
87679
87924
|
if (typeof posOrX == "number") {
|
|
@@ -87695,44 +87940,53 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
87695
87940
|
worldPos = this.chunkPosToWorldPos(pos);
|
|
87696
87941
|
}
|
|
87697
87942
|
const index = _Chunk.chunkPosToBlockIndex(pos);
|
|
87698
|
-
|
|
87699
|
-
|
|
87700
|
-
|
|
87701
|
-
|
|
87702
|
-
|
|
87703
|
-
|
|
87704
|
-
|
|
87705
|
-
|
|
87706
|
-
|
|
87707
|
-
|
|
87943
|
+
this.data.set(index, block);
|
|
87944
|
+
const readBlock = this.data.snapshot(index);
|
|
87945
|
+
this.renderedBlocks.get(index)?.object.removeFromScene();
|
|
87946
|
+
this.renderedBlocks.delete(index);
|
|
87947
|
+
let object;
|
|
87948
|
+
try {
|
|
87949
|
+
if (!readBlock) return void 0;
|
|
87950
|
+
const stored = readBlock();
|
|
87951
|
+
const blockState = await BlockStates.get(AssetKey.parse("blockstates", stored.type));
|
|
87952
|
+
if (!blockState) {
|
|
87953
|
+
this.data.set(index, void 0);
|
|
87954
|
+
return void 0;
|
|
87955
|
+
}
|
|
87956
|
+
object = await this.scene.addBlock(blockState, {
|
|
87708
87957
|
mergeMeshes: true,
|
|
87709
87958
|
instanceMeshes: true,
|
|
87710
87959
|
maxInstanceCount: 2e3
|
|
87711
87960
|
});
|
|
87712
|
-
if (
|
|
87713
|
-
|
|
87714
|
-
|
|
87715
|
-
|
|
87716
|
-
|
|
87717
|
-
this.
|
|
87718
|
-
|
|
87719
|
-
|
|
87720
|
-
|
|
87721
|
-
|
|
87961
|
+
if (stored.properties) await object.setState(stored.properties);
|
|
87962
|
+
object.setPosition(MineRenderWorld.worldToScenePosition(worldPos));
|
|
87963
|
+
const info = { get block() {
|
|
87964
|
+
return readBlock();
|
|
87965
|
+
}, object };
|
|
87966
|
+
this.renderedBlocks.set(index, info);
|
|
87967
|
+
return info;
|
|
87968
|
+
} catch (error) {
|
|
87969
|
+
this.data.set(index, void 0);
|
|
87970
|
+
object?.removeFromScene();
|
|
87971
|
+
throw error;
|
|
87972
|
+
} finally {
|
|
87973
|
+
await this.onBlocksChanged?.([worldPos]);
|
|
87722
87974
|
}
|
|
87723
|
-
return void 0;
|
|
87724
87975
|
}
|
|
87725
87976
|
async clear() {
|
|
87726
|
-
this.
|
|
87727
|
-
|
|
87977
|
+
const positions = [...this.renderedBlocks.keys()].map((index) => this.chunkPosToWorldPos(
|
|
87978
|
+
new Vector3(index % 16, Math.floor(index / 256), Math.floor(index / 16) % 16)
|
|
87979
|
+
));
|
|
87980
|
+
for (const info of this.renderedBlocks.values()) info.object.removeFromScene();
|
|
87981
|
+
this.renderedBlocks.clear();
|
|
87982
|
+
this.data.clear();
|
|
87983
|
+
await this.onBlocksChanged?.(positions);
|
|
87728
87984
|
}
|
|
87729
87985
|
async dispose() {
|
|
87730
87986
|
await this.clear();
|
|
87731
87987
|
}
|
|
87732
87988
|
static isAir(block) {
|
|
87733
|
-
|
|
87734
|
-
const key = AssetKey.parse("blockstates", block.type);
|
|
87735
|
-
return key.namespace === "minecraft" && !key.type && ["air", "cave_air", "void_air"].includes(key.path);
|
|
87989
|
+
return ChunkData.isAir(block);
|
|
87736
87990
|
}
|
|
87737
87991
|
static chunkPosToBlockIndex(pos) {
|
|
87738
87992
|
if ([pos.x, pos.y, pos.z].some((value) => !Number.isInteger(value) || value < 0 || value >= 16)) {
|