minerender 2.1.0-alpha.10 → 2.1.0-alpha.11
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 +9 -1
- package/dist/browser/index.d.ts +9 -1
- package/dist/browser/index.js +93 -128
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +93 -128
- package/dist/browser/index.mjs.map +1 -1
- package/dist/bundle.js +494 -529
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.d.mts +9 -1
- package/dist/node/index.d.ts +9 -1
- package/dist/node/index.js +94 -128
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +93 -128
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -3048,7 +3048,7 @@ var MineRender = (() => {
|
|
|
3048
3048
|
var bufferLength = serializedString.length * 0.75;
|
|
3049
3049
|
var len = serializedString.length;
|
|
3050
3050
|
var i4;
|
|
3051
|
-
var
|
|
3051
|
+
var p15 = 0;
|
|
3052
3052
|
var encoded1, encoded2, encoded3, encoded4;
|
|
3053
3053
|
if (serializedString[serializedString.length - 1] === "=") {
|
|
3054
3054
|
bufferLength--;
|
|
@@ -3063,9 +3063,9 @@ var MineRender = (() => {
|
|
|
3063
3063
|
encoded2 = BASE_CHARS.indexOf(serializedString[i4 + 1]);
|
|
3064
3064
|
encoded3 = BASE_CHARS.indexOf(serializedString[i4 + 2]);
|
|
3065
3065
|
encoded4 = BASE_CHARS.indexOf(serializedString[i4 + 3]);
|
|
3066
|
-
bytes[
|
|
3067
|
-
bytes[
|
|
3068
|
-
bytes[
|
|
3066
|
+
bytes[p15++] = encoded1 << 2 | encoded2 >> 4;
|
|
3067
|
+
bytes[p15++] = (encoded2 & 15) << 4 | encoded3 >> 2;
|
|
3068
|
+
bytes[p15++] = (encoded3 & 3) << 6 | encoded4 & 63;
|
|
3069
3069
|
}
|
|
3070
3070
|
return buffer2;
|
|
3071
3071
|
}
|
|
@@ -11090,9 +11090,9 @@ var MineRender = (() => {
|
|
|
11090
11090
|
return createIterResult(value, false);
|
|
11091
11091
|
}
|
|
11092
11092
|
if (error) {
|
|
11093
|
-
const
|
|
11093
|
+
const p15 = Promise.reject(error);
|
|
11094
11094
|
error = null;
|
|
11095
|
-
return
|
|
11095
|
+
return p15;
|
|
11096
11096
|
}
|
|
11097
11097
|
if (finished) {
|
|
11098
11098
|
return createIterResult(void 0, true);
|
|
@@ -11509,7 +11509,7 @@ var MineRender = (() => {
|
|
|
11509
11509
|
o4[k22] = m4[k4];
|
|
11510
11510
|
});
|
|
11511
11511
|
var __exportStar = exports13 && exports13.__exportStar || function(m4, exports14) {
|
|
11512
|
-
for (var
|
|
11512
|
+
for (var p15 in m4) if (p15 !== "default" && !Object.prototype.hasOwnProperty.call(exports14, p15)) __createBinding(exports14, m4, p15);
|
|
11513
11513
|
};
|
|
11514
11514
|
Object.defineProperty(exports13, "__esModule", { value: true });
|
|
11515
11515
|
__exportStar(require_Base(), exports13);
|
|
@@ -11529,8 +11529,8 @@ var MineRender = (() => {
|
|
|
11529
11529
|
__assign = Object.assign || function(t5) {
|
|
11530
11530
|
for (var s4, i4 = 1, n4 = arguments.length; i4 < n4; i4++) {
|
|
11531
11531
|
s4 = arguments[i4];
|
|
11532
|
-
for (var
|
|
11533
|
-
t5[
|
|
11532
|
+
for (var p15 in s4) if (Object.prototype.hasOwnProperty.call(s4, p15))
|
|
11533
|
+
t5[p15] = s4[p15];
|
|
11534
11534
|
}
|
|
11535
11535
|
return t5;
|
|
11536
11536
|
};
|
|
@@ -11809,9 +11809,9 @@ var MineRender = (() => {
|
|
|
11809
11809
|
return createIterResult(value, false);
|
|
11810
11810
|
}
|
|
11811
11811
|
if (error) {
|
|
11812
|
-
const
|
|
11812
|
+
const p15 = Promise.reject(error);
|
|
11813
11813
|
error = null;
|
|
11814
|
-
return
|
|
11814
|
+
return p15;
|
|
11815
11815
|
}
|
|
11816
11816
|
if (finished) {
|
|
11817
11817
|
return createIterResult(void 0, true);
|
|
@@ -12047,8 +12047,8 @@ var MineRender = (() => {
|
|
|
12047
12047
|
if (je(t5)) return e6.stylize(Date.prototype.toString.call(t5), "date");
|
|
12048
12048
|
if (Ae(t5)) return ce(t5);
|
|
12049
12049
|
}
|
|
12050
|
-
var a4, c4 = "", s4 = false,
|
|
12051
|
-
(pe(t5) && (s4 = true,
|
|
12050
|
+
var a4, c4 = "", s4 = false, p15 = ["{", "}"];
|
|
12051
|
+
(pe(t5) && (s4 = true, p15 = ["[", "]"]), we(t5)) && (c4 = " [Function" + (t5.name ? ": " + t5.name : "") + "]");
|
|
12052
12052
|
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) {
|
|
12053
12053
|
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("");
|
|
12054
12054
|
return i5.forEach(function(i6) {
|
|
@@ -12062,7 +12062,7 @@ var MineRender = (() => {
|
|
|
12062
12062
|
return n5++, t7.indexOf("\n") >= 0 && n5++, e8 + t7.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
12063
12063
|
}, 0) > 60) return r6[0] + ("" === t6 ? "" : t6 + "\n ") + " " + e7.join(",\n ") + " " + r6[1];
|
|
12064
12064
|
return r6[0] + t6 + " " + e7.join(", ") + " " + r6[1];
|
|
12065
|
-
}(a4, c4,
|
|
12065
|
+
}(a4, c4, p15)) : p15[0] + c4 + p15[1];
|
|
12066
12066
|
}
|
|
12067
12067
|
function ce(e6) {
|
|
12068
12068
|
return "[" + Error.prototype.toString.call(e6) + "]";
|
|
@@ -12809,11 +12809,11 @@ var MineRender = (() => {
|
|
|
12809
12809
|
if (-1 === a4 && (a4 = o4), o4 - a4 + 1 === s4) return a4 * f4;
|
|
12810
12810
|
} else -1 !== a4 && (o4 -= o4 - a4), a4 = -1;
|
|
12811
12811
|
} else for (e6 + s4 > u4 && (e6 = u4 - s4), o4 = e6; o4 >= 0; o4--) {
|
|
12812
|
-
for (var
|
|
12813
|
-
|
|
12812
|
+
for (var p15 = true, c4 = 0; c4 < s4; c4++) if (h5(t5, o4 + c4) !== h5(r5, c4)) {
|
|
12813
|
+
p15 = false;
|
|
12814
12814
|
break;
|
|
12815
12815
|
}
|
|
12816
|
-
if (
|
|
12816
|
+
if (p15) return o4;
|
|
12817
12817
|
}
|
|
12818
12818
|
return -1;
|
|
12819
12819
|
}
|
|
@@ -12857,8 +12857,8 @@ var MineRender = (() => {
|
|
|
12857
12857
|
function I2(t5, r5, e6) {
|
|
12858
12858
|
e6 = Math.min(t5.length, e6);
|
|
12859
12859
|
for (var n4 = [], i4 = r5; i4 < e6; ) {
|
|
12860
|
-
var o4, f4, u4, s4, h5 = t5[i4], a4 = null,
|
|
12861
|
-
if (i4 +
|
|
12860
|
+
var o4, f4, u4, s4, h5 = t5[i4], a4 = null, p15 = h5 > 239 ? 4 : h5 > 223 ? 3 : h5 > 191 ? 2 : 1;
|
|
12861
|
+
if (i4 + p15 <= e6) switch (p15) {
|
|
12862
12862
|
case 1:
|
|
12863
12863
|
h5 < 128 && (a4 = h5);
|
|
12864
12864
|
break;
|
|
@@ -12871,7 +12871,7 @@ var MineRender = (() => {
|
|
|
12871
12871
|
case 4:
|
|
12872
12872
|
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);
|
|
12873
12873
|
}
|
|
12874
|
-
null === a4 ? (a4 = 65533,
|
|
12874
|
+
null === a4 ? (a4 = 65533, p15 = 1) : a4 > 65535 && (a4 -= 65536, n4.push(a4 >>> 10 & 1023 | 55296), a4 = 56320 | 1023 & a4), n4.push(a4), i4 += p15;
|
|
12875
12875
|
}
|
|
12876
12876
|
return function(t6) {
|
|
12877
12877
|
var r6 = t6.length;
|
|
@@ -14937,10 +14937,10 @@ var MineRender = (() => {
|
|
|
14937
14937
|
key: "join",
|
|
14938
14938
|
value: function join(s4) {
|
|
14939
14939
|
if (this.length === 0) return "";
|
|
14940
|
-
var
|
|
14941
|
-
var ret = "" +
|
|
14942
|
-
while (
|
|
14943
|
-
ret += s4 +
|
|
14940
|
+
var p15 = this.head;
|
|
14941
|
+
var ret = "" + p15.data;
|
|
14942
|
+
while (p15 = p15.next) {
|
|
14943
|
+
ret += s4 + p15.data;
|
|
14944
14944
|
}
|
|
14945
14945
|
return ret;
|
|
14946
14946
|
}
|
|
@@ -14949,12 +14949,12 @@ var MineRender = (() => {
|
|
|
14949
14949
|
value: function concat2(n4) {
|
|
14950
14950
|
if (this.length === 0) return Buffer2.alloc(0);
|
|
14951
14951
|
var ret = Buffer2.allocUnsafe(n4 >>> 0);
|
|
14952
|
-
var
|
|
14952
|
+
var p15 = this.head;
|
|
14953
14953
|
var i4 = 0;
|
|
14954
|
-
while (
|
|
14955
|
-
copyBuffer(
|
|
14956
|
-
i4 +=
|
|
14957
|
-
|
|
14954
|
+
while (p15) {
|
|
14955
|
+
copyBuffer(p15.data, ret, i4);
|
|
14956
|
+
i4 += p15.data.length;
|
|
14957
|
+
p15 = p15.next;
|
|
14958
14958
|
}
|
|
14959
14959
|
return ret;
|
|
14960
14960
|
}
|
|
@@ -14982,12 +14982,12 @@ var MineRender = (() => {
|
|
|
14982
14982
|
}, {
|
|
14983
14983
|
key: "_getString",
|
|
14984
14984
|
value: function _getString(n4) {
|
|
14985
|
-
var
|
|
14985
|
+
var p15 = this.head;
|
|
14986
14986
|
var c4 = 1;
|
|
14987
|
-
var ret =
|
|
14987
|
+
var ret = p15.data;
|
|
14988
14988
|
n4 -= ret.length;
|
|
14989
|
-
while (
|
|
14990
|
-
var str =
|
|
14989
|
+
while (p15 = p15.next) {
|
|
14990
|
+
var str = p15.data;
|
|
14991
14991
|
var nb = n4 > str.length ? str.length : n4;
|
|
14992
14992
|
if (nb === str.length) ret += str;
|
|
14993
14993
|
else ret += str.slice(0, n4);
|
|
@@ -14995,11 +14995,11 @@ var MineRender = (() => {
|
|
|
14995
14995
|
if (n4 === 0) {
|
|
14996
14996
|
if (nb === str.length) {
|
|
14997
14997
|
++c4;
|
|
14998
|
-
if (
|
|
14998
|
+
if (p15.next) this.head = p15.next;
|
|
14999
14999
|
else this.head = this.tail = null;
|
|
15000
15000
|
} else {
|
|
15001
|
-
this.head =
|
|
15002
|
-
|
|
15001
|
+
this.head = p15;
|
|
15002
|
+
p15.data = str.slice(nb);
|
|
15003
15003
|
}
|
|
15004
15004
|
break;
|
|
15005
15005
|
}
|
|
@@ -15013,23 +15013,23 @@ var MineRender = (() => {
|
|
|
15013
15013
|
key: "_getBuffer",
|
|
15014
15014
|
value: function _getBuffer(n4) {
|
|
15015
15015
|
var ret = Buffer2.allocUnsafe(n4);
|
|
15016
|
-
var
|
|
15016
|
+
var p15 = this.head;
|
|
15017
15017
|
var c4 = 1;
|
|
15018
|
-
|
|
15019
|
-
n4 -=
|
|
15020
|
-
while (
|
|
15021
|
-
var buf =
|
|
15018
|
+
p15.data.copy(ret);
|
|
15019
|
+
n4 -= p15.data.length;
|
|
15020
|
+
while (p15 = p15.next) {
|
|
15021
|
+
var buf = p15.data;
|
|
15022
15022
|
var nb = n4 > buf.length ? buf.length : n4;
|
|
15023
15023
|
buf.copy(ret, ret.length - n4, 0, nb);
|
|
15024
15024
|
n4 -= nb;
|
|
15025
15025
|
if (n4 === 0) {
|
|
15026
15026
|
if (nb === buf.length) {
|
|
15027
15027
|
++c4;
|
|
15028
|
-
if (
|
|
15028
|
+
if (p15.next) this.head = p15.next;
|
|
15029
15029
|
else this.head = this.tail = null;
|
|
15030
15030
|
} else {
|
|
15031
|
-
this.head =
|
|
15032
|
-
|
|
15031
|
+
this.head = p15;
|
|
15032
|
+
p15.data = buf.slice(nb);
|
|
15033
15033
|
}
|
|
15034
15034
|
break;
|
|
15035
15035
|
}
|
|
@@ -16319,11 +16319,11 @@ var MineRender = (() => {
|
|
|
16319
16319
|
var decoder = new StringDecoder(enc2);
|
|
16320
16320
|
this._readableState.decoder = decoder;
|
|
16321
16321
|
this._readableState.encoding = this._readableState.decoder.encoding;
|
|
16322
|
-
var
|
|
16322
|
+
var p15 = this._readableState.buffer.head;
|
|
16323
16323
|
var content = "";
|
|
16324
|
-
while (
|
|
16325
|
-
content += decoder.write(
|
|
16326
|
-
|
|
16324
|
+
while (p15 !== null) {
|
|
16325
|
+
content += decoder.write(p15.data);
|
|
16326
|
+
p15 = p15.next;
|
|
16327
16327
|
}
|
|
16328
16328
|
this._readableState.buffer.clear();
|
|
16329
16329
|
if (content !== "") this._readableState.buffer.push(content);
|
|
@@ -17066,8 +17066,8 @@ var MineRender = (() => {
|
|
|
17066
17066
|
} }, 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;
|
|
17067
17067
|
e$23["-".charCodeAt(0)] = 62, e$23["_".charCodeAt(0)] = 63;
|
|
17068
17068
|
a$1$1 = { read: function(a4, t5, o4, r5, h5) {
|
|
17069
|
-
var M4, f4,
|
|
17070
|
-
for (N4 += n4, M4 = u4 & (1 << -i4) - 1, u4 >>= -i4, i4 +=
|
|
17069
|
+
var M4, f4, p15 = 8 * h5 - r5 - 1, w4 = (1 << p15) - 1, e6 = w4 >> 1, i4 = -7, N4 = o4 ? h5 - 1 : 0, n4 = o4 ? -1 : 1, u4 = a4[t5 + N4];
|
|
17070
|
+
for (N4 += n4, M4 = u4 & (1 << -i4) - 1, u4 >>= -i4, i4 += p15; i4 > 0; M4 = 256 * M4 + a4[t5 + N4], N4 += n4, i4 -= 8) ;
|
|
17071
17071
|
for (f4 = M4 & (1 << -i4) - 1, M4 >>= -i4, i4 += r5; i4 > 0; f4 = 256 * f4 + a4[t5 + N4], N4 += n4, i4 -= 8) ;
|
|
17072
17072
|
if (0 === M4) M4 = 1 - e6;
|
|
17073
17073
|
else {
|
|
@@ -17076,9 +17076,9 @@ var MineRender = (() => {
|
|
|
17076
17076
|
}
|
|
17077
17077
|
return (u4 ? -1 : 1) * f4 * Math.pow(2, M4 - r5);
|
|
17078
17078
|
}, write: function(a4, t5, o4, r5, h5, M4) {
|
|
17079
|
-
var f4,
|
|
17080
|
-
for (t5 = Math.abs(t5), isNaN(t5) || t5 === 1 / 0 ? (
|
|
17081
|
-
for (f4 = f4 << h5 |
|
|
17079
|
+
var f4, p15, 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;
|
|
17080
|
+
for (t5 = Math.abs(t5), isNaN(t5) || t5 === 1 / 0 ? (p15 = 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 ? (p15 = 0, f4 = i4) : f4 + N4 >= 1 ? (p15 = (t5 * w4 - 1) * Math.pow(2, h5), f4 += N4) : (p15 = t5 * Math.pow(2, N4 - 1) * Math.pow(2, h5), f4 = 0)); h5 >= 8; a4[o4 + u4] = 255 & p15, u4 += l4, p15 /= 256, h5 -= 8) ;
|
|
17081
|
+
for (f4 = f4 << h5 | p15, e6 += h5; e6 > 0; a4[o4 + u4] = 255 & f4, u4 += l4, f4 /= 256, e6 -= 8) ;
|
|
17082
17082
|
a4[o4 + u4 - l4] |= 128 * s4;
|
|
17083
17083
|
} };
|
|
17084
17084
|
e$1$1 = {};
|
|
@@ -17182,8 +17182,8 @@ var MineRender = (() => {
|
|
|
17182
17182
|
if (n4 >= i4) return -1;
|
|
17183
17183
|
if (r5 >= e6) return 1;
|
|
17184
17184
|
if (this === t5) return 0;
|
|
17185
|
-
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),
|
|
17186
|
-
o4 = h5[
|
|
17185
|
+
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), p15 = 0; p15 < s4; ++p15) if (h5[p15] !== a4[p15]) {
|
|
17186
|
+
o4 = h5[p15], f4 = a4[p15];
|
|
17187
17187
|
break;
|
|
17188
17188
|
}
|
|
17189
17189
|
return o4 < f4 ? -1 : f4 < o4 ? 1 : 0;
|
|
@@ -17783,7 +17783,7 @@ var MineRender = (() => {
|
|
|
17783
17783
|
e6.set(t6, r6);
|
|
17784
17784
|
}
|
|
17785
17785
|
function r6() {
|
|
17786
|
-
return
|
|
17786
|
+
return p15(t6, arguments, h5(this).constructor);
|
|
17787
17787
|
}
|
|
17788
17788
|
return r6.prototype = Object.create(t6.prototype, { constructor: { value: r6, enumerable: false, writable: true, configurable: true } }), g4(r6, t6);
|
|
17789
17789
|
})(t5);
|
|
@@ -17799,8 +17799,8 @@ var MineRender = (() => {
|
|
|
17799
17799
|
return false;
|
|
17800
17800
|
}
|
|
17801
17801
|
}
|
|
17802
|
-
function
|
|
17803
|
-
return (
|
|
17802
|
+
function p15(t5, e6, n5) {
|
|
17803
|
+
return (p15 = s4() ? Reflect.construct : function(t6, e7, n6) {
|
|
17804
17804
|
var r6 = [null];
|
|
17805
17805
|
r6.push.apply(r6, e7);
|
|
17806
17806
|
var o5 = new (Function.bind.apply(t6, r6))();
|
|
@@ -17839,41 +17839,41 @@ var MineRender = (() => {
|
|
|
17839
17839
|
return b4(t5, { compact: false, customInspect: false, depth: 1e3, maxArrayLength: 1 / 0, showHidden: false, breakLength: 1 / 0, showProxy: false, sorted: true, getters: true });
|
|
17840
17840
|
}
|
|
17841
17841
|
function q3(t5, e6, r6) {
|
|
17842
|
-
var o5 = "", c5 = "", a5 = 0, i4 = "", u4 = false, l4 = x4(t5), f5 = l4.split("\n"), s5 = x4(e6).split("\n"),
|
|
17842
|
+
var o5 = "", c5 = "", a5 = 0, i4 = "", u4 = false, l4 = x4(t5), f5 = l4.split("\n"), s5 = x4(e6).split("\n"), p16 = 0, g5 = "";
|
|
17843
17843
|
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]) {
|
|
17844
17844
|
var h6 = f5[0].length + s5[0].length;
|
|
17845
17845
|
if (h6 <= 10) {
|
|
17846
17846
|
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");
|
|
17847
17847
|
} else if ("strictEqualObject" !== r6) {
|
|
17848
17848
|
if (h6 < (n4.stderr && n4.stderr.isTTY ? n4.stderr.columns : 80)) {
|
|
17849
|
-
for (; f5[0][
|
|
17850
|
-
|
|
17849
|
+
for (; f5[0][p16] === s5[0][p16]; ) p16++;
|
|
17850
|
+
p16 > 2 && (g5 = "\n ".concat(function(t6, e7) {
|
|
17851
17851
|
if (e7 = Math.floor(e7), 0 == t6.length || 0 == e7) return "";
|
|
17852
17852
|
var n5 = t6.length * e7;
|
|
17853
17853
|
for (e7 = Math.floor(Math.log(e7) / Math.log(2)); e7; ) t6 += t6, e7--;
|
|
17854
17854
|
return t6 += t6.substring(0, n5 - t6.length);
|
|
17855
|
-
}(" ",
|
|
17855
|
+
}(" ", p16), "^"), p16 = 0);
|
|
17856
17856
|
}
|
|
17857
17857
|
}
|
|
17858
17858
|
}
|
|
17859
|
-
for (var b5 = f5[f5.length - 1], v6 = s5[s5.length - 1]; b5 === v6 && (
|
|
17859
|
+
for (var b5 = f5[f5.length - 1], v6 = s5[s5.length - 1]; b5 === v6 && (p16++ < 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];
|
|
17860
17860
|
var O5 = Math.max(f5.length, s5.length);
|
|
17861
17861
|
if (0 === O5) {
|
|
17862
17862
|
var q4 = l4.split("\n");
|
|
17863
17863
|
if (q4.length > 30) for (q4[26] = "".concat(m4, "...").concat(S4); q4.length > 27; ) q4.pop();
|
|
17864
17864
|
return "".concat(j4.notIdentical, "\n\n").concat(q4.join("\n"), "\n");
|
|
17865
17865
|
}
|
|
17866
|
-
|
|
17866
|
+
p16 > 3 && (i4 = "\n".concat(m4, "...").concat(S4).concat(i4), u4 = true), "" !== o5 && (i4 = "\n ".concat(o5).concat(i4), o5 = "");
|
|
17867
17867
|
var R5 = 0, A4 = j4[r6] + "\n".concat(E4, "+ actual").concat(S4, " ").concat(w4, "- expected").concat(S4), k4 = " ".concat(m4, "...").concat(S4, " Lines skipped");
|
|
17868
|
-
for (
|
|
17869
|
-
var _4 =
|
|
17870
|
-
if (f5.length <
|
|
17871
|
-
else if (s5.length <
|
|
17868
|
+
for (p16 = 0; p16 < O5; p16++) {
|
|
17869
|
+
var _4 = p16 - a5;
|
|
17870
|
+
if (f5.length < p16 + 1) _4 > 1 && p16 > 2 && (_4 > 4 ? (c5 += "\n".concat(m4, "...").concat(S4), u4 = true) : _4 > 3 && (c5 += "\n ".concat(s5[p16 - 2]), R5++), c5 += "\n ".concat(s5[p16 - 1]), R5++), a5 = p16, o5 += "\n".concat(w4, "-").concat(S4, " ").concat(s5[p16]), R5++;
|
|
17871
|
+
else if (s5.length < p16 + 1) _4 > 1 && p16 > 2 && (_4 > 4 ? (c5 += "\n".concat(m4, "...").concat(S4), u4 = true) : _4 > 3 && (c5 += "\n ".concat(f5[p16 - 2]), R5++), c5 += "\n ".concat(f5[p16 - 1]), R5++), a5 = p16, c5 += "\n".concat(E4, "+").concat(S4, " ").concat(f5[p16]), R5++;
|
|
17872
17872
|
else {
|
|
17873
|
-
var T5 = s5[
|
|
17874
|
-
I4 && d4(T5, ",") && T5.slice(0, -1) === P5 && (I4 = false, P5 += ","), I4 ? (_4 > 1 &&
|
|
17873
|
+
var T5 = s5[p16], P5 = f5[p16], I4 = P5 !== T5 && (!d4(P5, ",") || P5.slice(0, -1) !== T5);
|
|
17874
|
+
I4 && d4(T5, ",") && T5.slice(0, -1) === P5 && (I4 = false, P5 += ","), I4 ? (_4 > 1 && p16 > 2 && (_4 > 4 ? (c5 += "\n".concat(m4, "...").concat(S4), u4 = true) : _4 > 3 && (c5 += "\n ".concat(f5[p16 - 2]), R5++), c5 += "\n ".concat(f5[p16 - 1]), R5++), a5 = p16, c5 += "\n".concat(E4, "+").concat(S4, " ").concat(P5), o5 += "\n".concat(w4, "-").concat(S4, " ").concat(T5), R5 += 2) : (c5 += o5, o5 = "", 1 !== _4 && 0 !== p16 || (c5 += "\n ".concat(P5), R5++));
|
|
17875
17875
|
}
|
|
17876
|
-
if (R5 > 20 &&
|
|
17876
|
+
if (R5 > 20 && p16 < O5 - 2) return "".concat(A4).concat(k4, "\n").concat(c5, "\n").concat(m4, "...").concat(S4).concat(o5, "\n") + "".concat(m4, "...").concat(S4);
|
|
17877
17877
|
}
|
|
17878
17878
|
return "".concat(A4).concat(u4 ? k4 : "", "\n").concat(c5).concat(o5).concat(i4).concat(g5);
|
|
17879
17879
|
}
|
|
@@ -17887,9 +17887,9 @@ var MineRender = (() => {
|
|
|
17887
17887
|
if (Error.stackTraceLimit = 0, null != o5) r6 = c4(this, h5(e6).call(this, String(o5)));
|
|
17888
17888
|
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)));
|
|
17889
17889
|
else if ("notDeepStrictEqual" === i5 || "notStrictEqual" === i5) {
|
|
17890
|
-
var
|
|
17891
|
-
if ("notStrictEqual" === i5 && "object" === y5(l4) && null !== l4 && (
|
|
17892
|
-
r6 = 1 === g5.length ? c4(this, h5(e6).call(this, "".concat(
|
|
17890
|
+
var p16 = j4[i5], g5 = x4(l4).split("\n");
|
|
17891
|
+
if ("notStrictEqual" === i5 && "object" === y5(l4) && null !== l4 && (p16 = j4.notStrictEqualObject), g5.length > 30) for (g5[26] = "".concat(m4, "...").concat(S4); g5.length > 27; ) g5.pop();
|
|
17892
|
+
r6 = 1 === g5.length ? c4(this, h5(e6).call(this, "".concat(p16, " ").concat(g5[0]))) : c4(this, h5(e6).call(this, "".concat(p16, "\n\n").concat(g5.join("\n"), "\n")));
|
|
17893
17893
|
} else {
|
|
17894
17894
|
var b5 = x4(l4), d5 = "", R5 = j4[i5];
|
|
17895
17895
|
"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)));
|
|
@@ -18042,8 +18042,8 @@ var MineRender = (() => {
|
|
|
18042
18042
|
var s4 = v$1(e6);
|
|
18043
18043
|
if (u4.length !== s4.length && z3(e6, s4).length !== l4) return false;
|
|
18044
18044
|
} else {
|
|
18045
|
-
var
|
|
18046
|
-
if (0 !==
|
|
18045
|
+
var p15 = v$1(e6);
|
|
18046
|
+
if (0 !== p15.length && 0 !== z3(e6, p15).length) return false;
|
|
18047
18047
|
}
|
|
18048
18048
|
}
|
|
18049
18049
|
if (0 === c4.length && (0 === o4 || 1 === o4 && 0 === t5.length || 0 === t5.size)) return true;
|
|
@@ -18176,7 +18176,7 @@ var MineRender = (() => {
|
|
|
18176
18176
|
return t6 && "function" == typeof Symbol && t6.constructor === Symbol && t6 !== Symbol.prototype ? "symbol" : typeof t6;
|
|
18177
18177
|
})(t5);
|
|
18178
18178
|
}
|
|
18179
|
-
var a4, u4, l4 = i$5().codes, s4 = l4.ERR_AMBIGUOUS_ARGUMENT,
|
|
18179
|
+
var a4, u4, l4 = i$5().codes, s4 = l4.ERR_AMBIGUOUS_ARGUMENT, p15 = 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;
|
|
18180
18180
|
function j4() {
|
|
18181
18181
|
a4 = X2.isDeepEqual, u4 = X2.isDeepStrictEqual;
|
|
18182
18182
|
}
|
|
@@ -18261,7 +18261,7 @@ var MineRender = (() => {
|
|
|
18261
18261
|
function P5(t5, e6, n4, r5) {
|
|
18262
18262
|
if ("function" != typeof e6) {
|
|
18263
18263
|
if (E4(e6)) return e6.test(t5);
|
|
18264
|
-
if (2 === arguments.length) throw new
|
|
18264
|
+
if (2 === arguments.length) throw new p15("expected", ["Function", "RegExp"], e6);
|
|
18265
18265
|
if ("object" !== c4(t5) || null === t5) {
|
|
18266
18266
|
var o5 = new b4({ actual: t5, expected: e6, message: n4, operator: "deepStrictEqual", stackStartFn: r5 });
|
|
18267
18267
|
throw o5.operator = r5.name, o5;
|
|
@@ -18276,7 +18276,7 @@ var MineRender = (() => {
|
|
|
18276
18276
|
return void 0 !== e6.prototype && t5 instanceof e6 || !Error.isPrototypeOf(e6) && true === e6.call({}, t5);
|
|
18277
18277
|
}
|
|
18278
18278
|
function I4(t5) {
|
|
18279
|
-
if ("function" != typeof t5) throw new
|
|
18279
|
+
if ("function" != typeof t5) throw new p15("fn", "Function", t5);
|
|
18280
18280
|
try {
|
|
18281
18281
|
t5();
|
|
18282
18282
|
} catch (t6) {
|
|
@@ -18293,7 +18293,7 @@ var MineRender = (() => {
|
|
|
18293
18293
|
if ("function" == typeof t5) {
|
|
18294
18294
|
if (!D4(e6 = t5())) throw new h5("instance of Promise", "promiseFn", e6);
|
|
18295
18295
|
} else {
|
|
18296
|
-
if (!D4(t5)) throw new
|
|
18296
|
+
if (!D4(t5)) throw new p15("promiseFn", ["Function", "Promise"], t5);
|
|
18297
18297
|
e6 = t5;
|
|
18298
18298
|
}
|
|
18299
18299
|
return Promise.resolve().then(function() {
|
|
@@ -18307,12 +18307,12 @@ var MineRender = (() => {
|
|
|
18307
18307
|
}
|
|
18308
18308
|
function N4(t5, e6, n4, r5) {
|
|
18309
18309
|
if ("string" == typeof n4) {
|
|
18310
|
-
if (4 === arguments.length) throw new
|
|
18310
|
+
if (4 === arguments.length) throw new p15("error", ["Object", "Error", "Function", "RegExp"], n4);
|
|
18311
18311
|
if ("object" === c4(e6) && null !== e6) {
|
|
18312
18312
|
if (e6.message === n4) throw new s4("error/message", 'The error message "'.concat(e6.message, '" is identical to the message.'));
|
|
18313
18313
|
} else if (e6 === n4) throw new s4("error/message", 'The error "'.concat(e6, '" is identical to the message.'));
|
|
18314
18314
|
r5 = n4, n4 = void 0;
|
|
18315
|
-
} else if (null != n4 && "object" !== c4(n4) && "function" != typeof n4) throw new
|
|
18315
|
+
} else if (null != n4 && "object" !== c4(n4) && "function" != typeof n4) throw new p15("error", ["Object", "Error", "Function", "RegExp"], n4);
|
|
18316
18316
|
if (e6 === q3) {
|
|
18317
18317
|
var o5 = "";
|
|
18318
18318
|
n4 && n4.name && (o5 += " (".concat(n4.name, ")")), o5 += r5 ? ": ".concat(r5) : ".";
|
|
@@ -18371,7 +18371,7 @@ var MineRender = (() => {
|
|
|
18371
18371
|
}
|
|
18372
18372
|
}, x4.strict = w4(M4, x4, { equal: x4.strictEqual, deepEqual: x4.deepStrictEqual, notEqual: x4.notStrictEqual, notDeepEqual: x4.notDeepStrictEqual }), x4.strict.strict = x4.strict, Z2;
|
|
18373
18373
|
}
|
|
18374
|
-
var r4, t4, e$13, r$12, n4, o4, c4, l4, i4, a4, u4, f4,
|
|
18374
|
+
var r4, t4, e$13, r$12, n4, o4, c4, l4, i4, a4, u4, f4, p15, 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;
|
|
18375
18375
|
var init_chunk_CjPlbOtt = __esm({
|
|
18376
18376
|
"../../node_modules/@jspm/core/nodelibs/browser/chunk-CjPlbOtt.js"() {
|
|
18377
18377
|
init_dirname();
|
|
@@ -18391,10 +18391,10 @@ var MineRender = (() => {
|
|
|
18391
18391
|
}, "prototype"), u4 = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"], f4 = function(t5) {
|
|
18392
18392
|
var e6 = t5.constructor;
|
|
18393
18393
|
return e6 && e6.prototype === t5;
|
|
18394
|
-
},
|
|
18394
|
+
}, p15 = { $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() {
|
|
18395
18395
|
if ("undefined" == typeof window) return false;
|
|
18396
18396
|
for (var t5 in window) try {
|
|
18397
|
-
if (!
|
|
18397
|
+
if (!p15["$" + t5] && n4.call(window, t5) && null !== window[t5] && "object" == typeof window[t5]) try {
|
|
18398
18398
|
f4(window[t5]);
|
|
18399
18399
|
} catch (t6) {
|
|
18400
18400
|
return true;
|
|
@@ -18405,10 +18405,10 @@ var MineRender = (() => {
|
|
|
18405
18405
|
return false;
|
|
18406
18406
|
}();
|
|
18407
18407
|
t4 = function(t5) {
|
|
18408
|
-
var e6 = null !== t5 && "object" == typeof t5, r5 = "[object Function]" === o4.call(t5), l5 = c4(t5),
|
|
18408
|
+
var e6 = null !== t5 && "object" == typeof t5, r5 = "[object Function]" === o4.call(t5), l5 = c4(t5), p16 = e6 && "[object String]" === o4.call(t5), y5 = [];
|
|
18409
18409
|
if (!e6 && !r5 && !l5) throw new TypeError("Object.keys called on a non-object");
|
|
18410
18410
|
var b4 = a4 && r5;
|
|
18411
|
-
if (
|
|
18411
|
+
if (p16 && t5.length > 0 && !n4.call(t5, 0)) for (var g4 = 0; g4 < t5.length; ++g4) y5.push(String(g4));
|
|
18412
18412
|
if (l5 && t5.length > 0) for (var h5 = 0; h5 < t5.length; ++h5) y5.push(String(h5));
|
|
18413
18413
|
else for (var $3 in t5) b4 && "prototype" === $3 || !n4.call(t5, $3) || y5.push(String($3));
|
|
18414
18414
|
if (i4) for (var j4 = function(t6) {
|
|
@@ -18495,19 +18495,19 @@ var MineRender = (() => {
|
|
|
18495
18495
|
r$3 = function(r5) {
|
|
18496
18496
|
var e6 = this;
|
|
18497
18497
|
if ("function" != typeof e6 || "[object Function]" !== o$22.call(e6)) throw new TypeError(t$22 + e6);
|
|
18498
|
-
for (var
|
|
18499
|
-
if (this instanceof
|
|
18498
|
+
for (var p15, i4 = n$22.call(arguments, 1), c4 = function() {
|
|
18499
|
+
if (this instanceof p15) {
|
|
18500
18500
|
var t5 = e6.apply(this, i4.concat(n$22.call(arguments)));
|
|
18501
18501
|
return Object(t5) === t5 ? t5 : this;
|
|
18502
18502
|
}
|
|
18503
18503
|
return e6.apply(r5, i4.concat(n$22.call(arguments)));
|
|
18504
18504
|
}, a4 = Math.max(0, e6.length - i4.length), l4 = [], u4 = 0; u4 < a4; u4++) l4.push("$" + u4);
|
|
18505
|
-
if (
|
|
18505
|
+
if (p15 = Function("binder", "return function (" + l4.join(",") + "){ return binder.apply(this,arguments); }")(c4), e6.prototype) {
|
|
18506
18506
|
var y5 = function() {
|
|
18507
18507
|
};
|
|
18508
|
-
y5.prototype = e6.prototype,
|
|
18508
|
+
y5.prototype = e6.prototype, p15.prototype = new y5(), y5.prototype = null;
|
|
18509
18509
|
}
|
|
18510
|
-
return
|
|
18510
|
+
return p15;
|
|
18511
18511
|
};
|
|
18512
18512
|
e$4 = Function.prototype.bind || r$3;
|
|
18513
18513
|
o$32 = TypeError;
|
|
@@ -19116,9 +19116,9 @@ var MineRender = (() => {
|
|
|
19116
19116
|
if (typeof source !== "object") {
|
|
19117
19117
|
throw new TypeError(source + "must be non-object");
|
|
19118
19118
|
}
|
|
19119
|
-
for (var
|
|
19120
|
-
if (_has(source,
|
|
19121
|
-
obj[
|
|
19119
|
+
for (var p15 in source) {
|
|
19120
|
+
if (_has(source, p15)) {
|
|
19121
|
+
obj[p15] = source[p15];
|
|
19122
19122
|
}
|
|
19123
19123
|
}
|
|
19124
19124
|
}
|
|
@@ -20062,7 +20062,7 @@ var MineRender = (() => {
|
|
|
20062
20062
|
}
|
|
20063
20063
|
function fill_window(s4) {
|
|
20064
20064
|
var _w_size = s4.w_size;
|
|
20065
|
-
var
|
|
20065
|
+
var p15, n4, m4, more, str;
|
|
20066
20066
|
do {
|
|
20067
20067
|
more = s4.window_size - s4.lookahead - s4.strstart;
|
|
20068
20068
|
if (s4.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD2)) {
|
|
@@ -20071,16 +20071,16 @@ var MineRender = (() => {
|
|
|
20071
20071
|
s4.strstart -= _w_size;
|
|
20072
20072
|
s4.block_start -= _w_size;
|
|
20073
20073
|
n4 = s4.hash_size;
|
|
20074
|
-
|
|
20074
|
+
p15 = n4;
|
|
20075
20075
|
do {
|
|
20076
|
-
m4 = s4.head[--
|
|
20077
|
-
s4.head[
|
|
20076
|
+
m4 = s4.head[--p15];
|
|
20077
|
+
s4.head[p15] = m4 >= _w_size ? m4 - _w_size : 0;
|
|
20078
20078
|
} while (--n4);
|
|
20079
20079
|
n4 = _w_size;
|
|
20080
|
-
|
|
20080
|
+
p15 = n4;
|
|
20081
20081
|
do {
|
|
20082
|
-
m4 = s4.prev[--
|
|
20083
|
-
s4.prev[
|
|
20082
|
+
m4 = s4.prev[--p15];
|
|
20083
|
+
s4.prev[p15] = m4 >= _w_size ? m4 - _w_size : 0;
|
|
20084
20084
|
} while (--n4);
|
|
20085
20085
|
more += _w_size;
|
|
20086
20086
|
}
|
|
@@ -26090,12 +26090,12 @@ var MineRender = (() => {
|
|
|
26090
26090
|
return v5;
|
|
26091
26091
|
}
|
|
26092
26092
|
function resolveSchema(root, ref) {
|
|
26093
|
-
var
|
|
26093
|
+
var p15 = URI.parse(ref), refPath = _getFullPath(p15), baseId = getFullPath(this._getId(root.schema));
|
|
26094
26094
|
if (Object.keys(root.schema).length === 0 || refPath !== baseId) {
|
|
26095
26095
|
var id = normalizeId(refPath);
|
|
26096
26096
|
var refVal = this._refs[id];
|
|
26097
26097
|
if (typeof refVal == "string") {
|
|
26098
|
-
return resolveRecursive.call(this, root, refVal,
|
|
26098
|
+
return resolveRecursive.call(this, root, refVal, p15);
|
|
26099
26099
|
} else if (refVal instanceof SchemaObject) {
|
|
26100
26100
|
if (!refVal.validate) this._compile(refVal);
|
|
26101
26101
|
root = refVal;
|
|
@@ -26113,7 +26113,7 @@ var MineRender = (() => {
|
|
|
26113
26113
|
if (!root.schema) return;
|
|
26114
26114
|
baseId = getFullPath(this._getId(root.schema));
|
|
26115
26115
|
}
|
|
26116
|
-
return getJsonPointer.call(this,
|
|
26116
|
+
return getJsonPointer.call(this, p15, baseId, root.schema, root);
|
|
26117
26117
|
}
|
|
26118
26118
|
function resolveRecursive(root, ref, parsedRef) {
|
|
26119
26119
|
var res = resolveSchema.call(this, root, ref);
|
|
@@ -26218,11 +26218,11 @@ var MineRender = (() => {
|
|
|
26218
26218
|
}
|
|
26219
26219
|
function getFullPath(id, normalize2) {
|
|
26220
26220
|
if (normalize2 !== false) id = normalizeId(id);
|
|
26221
|
-
var
|
|
26222
|
-
return _getFullPath(
|
|
26221
|
+
var p15 = URI.parse(id);
|
|
26222
|
+
return _getFullPath(p15);
|
|
26223
26223
|
}
|
|
26224
|
-
function _getFullPath(
|
|
26225
|
-
return URI.serialize(
|
|
26224
|
+
function _getFullPath(p15) {
|
|
26225
|
+
return URI.serialize(p15).split("#")[0] + "#";
|
|
26226
26226
|
}
|
|
26227
26227
|
var TRAILING_SLASH_HASH = /#\/?$/;
|
|
26228
26228
|
function normalizeId(id) {
|
|
@@ -29110,8 +29110,8 @@ var MineRender = (() => {
|
|
|
29110
29110
|
if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) {
|
|
29111
29111
|
var $requiredHash = it.util.toHash($required);
|
|
29112
29112
|
}
|
|
29113
|
-
function notProto(
|
|
29114
|
-
return
|
|
29113
|
+
function notProto(p15) {
|
|
29114
|
+
return p15 !== "__proto__";
|
|
29115
29115
|
}
|
|
29116
29116
|
out += "var " + $errs + " = errors;var " + $nextValid + " = true;";
|
|
29117
29117
|
if ($ownProperties) {
|
|
@@ -30046,19 +30046,19 @@ var MineRender = (() => {
|
|
|
30046
30046
|
callback = meta;
|
|
30047
30047
|
meta = void 0;
|
|
30048
30048
|
}
|
|
30049
|
-
var
|
|
30049
|
+
var p15 = loadMetaSchemaOf(schema).then(function() {
|
|
30050
30050
|
var schemaObj = self2._addSchema(schema, void 0, meta);
|
|
30051
30051
|
return schemaObj.validate || _compileAsync(schemaObj);
|
|
30052
30052
|
});
|
|
30053
30053
|
if (callback) {
|
|
30054
|
-
|
|
30054
|
+
p15.then(
|
|
30055
30055
|
function(v5) {
|
|
30056
30056
|
callback(null, v5);
|
|
30057
30057
|
},
|
|
30058
30058
|
callback
|
|
30059
30059
|
);
|
|
30060
30060
|
}
|
|
30061
|
-
return
|
|
30061
|
+
return p15;
|
|
30062
30062
|
function loadMetaSchemaOf(sch) {
|
|
30063
30063
|
var $schema = sch.$schema;
|
|
30064
30064
|
return $schema && !self2.getSchema($schema) ? compileAsync.call(self2, { $ref: $schema }, true) : Promise.resolve();
|
|
@@ -33126,12 +33126,12 @@ var MineRender = (() => {
|
|
|
33126
33126
|
});
|
|
33127
33127
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
33128
33128
|
}
|
|
33129
|
-
function _setPrototypeOf(o4,
|
|
33130
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o5,
|
|
33131
|
-
o5.__proto__ =
|
|
33129
|
+
function _setPrototypeOf(o4, p15) {
|
|
33130
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o5, p16) {
|
|
33131
|
+
o5.__proto__ = p16;
|
|
33132
33132
|
return o5;
|
|
33133
33133
|
};
|
|
33134
|
-
return _setPrototypeOf(o4,
|
|
33134
|
+
return _setPrototypeOf(o4, p15);
|
|
33135
33135
|
}
|
|
33136
33136
|
function _createSuper(Derived) {
|
|
33137
33137
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
@@ -33482,12 +33482,12 @@ var MineRender = (() => {
|
|
|
33482
33482
|
function _isNativeFunction(fn) {
|
|
33483
33483
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
33484
33484
|
}
|
|
33485
|
-
function _setPrototypeOf(o4,
|
|
33486
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o5,
|
|
33487
|
-
o5.__proto__ =
|
|
33485
|
+
function _setPrototypeOf(o4, p15) {
|
|
33486
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o5, p16) {
|
|
33487
|
+
o5.__proto__ = p16;
|
|
33488
33488
|
return o5;
|
|
33489
33489
|
};
|
|
33490
|
-
return _setPrototypeOf(o4,
|
|
33490
|
+
return _setPrototypeOf(o4, p15);
|
|
33491
33491
|
}
|
|
33492
33492
|
function _getPrototypeOf(o4) {
|
|
33493
33493
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o5) {
|
|
@@ -35976,20 +35976,20 @@ var MineRender = (() => {
|
|
|
35976
35976
|
validateProtocol(protocol) {
|
|
35977
35977
|
let valid = this.ajv.validate("protocol", protocol);
|
|
35978
35978
|
assert2.ok(valid, JSON.stringify(this.ajv.errors, null, 2));
|
|
35979
|
-
function validateTypes(
|
|
35979
|
+
function validateTypes(p15, originalValidator, path) {
|
|
35980
35980
|
const v5 = new _Validator(originalValidator.typesSchemas);
|
|
35981
|
-
Object.keys(
|
|
35981
|
+
Object.keys(p15).forEach((k4) => {
|
|
35982
35982
|
if (k4 == "types") {
|
|
35983
|
-
Object.keys(
|
|
35984
|
-
Object.keys(
|
|
35983
|
+
Object.keys(p15[k4]).forEach((typeName) => v5.addType(typeName));
|
|
35984
|
+
Object.keys(p15[k4]).forEach((typeName) => {
|
|
35985
35985
|
try {
|
|
35986
|
-
v5.validateType(
|
|
35986
|
+
v5.validateType(p15[k4][typeName], path + "." + k4 + "." + typeName);
|
|
35987
35987
|
} catch (e6) {
|
|
35988
35988
|
throw new Error("Error at " + path + "." + k4 + "." + typeName);
|
|
35989
35989
|
}
|
|
35990
35990
|
});
|
|
35991
35991
|
} else {
|
|
35992
|
-
validateTypes(
|
|
35992
|
+
validateTypes(p15[k4], v5, path + "." + k4);
|
|
35993
35993
|
}
|
|
35994
35994
|
});
|
|
35995
35995
|
}
|
|
@@ -39368,20 +39368,20 @@ var MineRender = (() => {
|
|
|
39368
39368
|
}
|
|
39369
39369
|
join(s4) {
|
|
39370
39370
|
if (this.length === 0) return "";
|
|
39371
|
-
let
|
|
39372
|
-
let ret = "" +
|
|
39373
|
-
while ((
|
|
39371
|
+
let p15 = this.head;
|
|
39372
|
+
let ret = "" + p15.data;
|
|
39373
|
+
while ((p15 = p15.next) !== null) ret += s4 + p15.data;
|
|
39374
39374
|
return ret;
|
|
39375
39375
|
}
|
|
39376
39376
|
concat(n4) {
|
|
39377
39377
|
if (this.length === 0) return Buffer2.alloc(0);
|
|
39378
39378
|
const ret = Buffer2.allocUnsafe(n4 >>> 0);
|
|
39379
|
-
let
|
|
39379
|
+
let p15 = this.head;
|
|
39380
39380
|
let i4 = 0;
|
|
39381
|
-
while (
|
|
39382
|
-
TypedArrayPrototypeSet(ret,
|
|
39383
|
-
i4 +=
|
|
39384
|
-
|
|
39381
|
+
while (p15) {
|
|
39382
|
+
TypedArrayPrototypeSet(ret, p15.data, i4);
|
|
39383
|
+
i4 += p15.data.length;
|
|
39384
|
+
p15 = p15.next;
|
|
39385
39385
|
}
|
|
39386
39386
|
return ret;
|
|
39387
39387
|
}
|
|
@@ -39402,17 +39402,17 @@ var MineRender = (() => {
|
|
|
39402
39402
|
return this.head.data;
|
|
39403
39403
|
}
|
|
39404
39404
|
*[SymbolIterator]() {
|
|
39405
|
-
for (let
|
|
39406
|
-
yield
|
|
39405
|
+
for (let p15 = this.head; p15; p15 = p15.next) {
|
|
39406
|
+
yield p15.data;
|
|
39407
39407
|
}
|
|
39408
39408
|
}
|
|
39409
39409
|
// Consumes a specified amount of characters from the buffered data.
|
|
39410
39410
|
_getString(n4) {
|
|
39411
39411
|
let ret = "";
|
|
39412
|
-
let
|
|
39412
|
+
let p15 = this.head;
|
|
39413
39413
|
let c4 = 0;
|
|
39414
39414
|
do {
|
|
39415
|
-
const str =
|
|
39415
|
+
const str = p15.data;
|
|
39416
39416
|
if (n4 > str.length) {
|
|
39417
39417
|
ret += str;
|
|
39418
39418
|
n4 -= str.length;
|
|
@@ -39420,17 +39420,17 @@ var MineRender = (() => {
|
|
|
39420
39420
|
if (n4 === str.length) {
|
|
39421
39421
|
ret += str;
|
|
39422
39422
|
++c4;
|
|
39423
|
-
if (
|
|
39423
|
+
if (p15.next) this.head = p15.next;
|
|
39424
39424
|
else this.head = this.tail = null;
|
|
39425
39425
|
} else {
|
|
39426
39426
|
ret += StringPrototypeSlice(str, 0, n4);
|
|
39427
|
-
this.head =
|
|
39428
|
-
|
|
39427
|
+
this.head = p15;
|
|
39428
|
+
p15.data = StringPrototypeSlice(str, n4);
|
|
39429
39429
|
}
|
|
39430
39430
|
break;
|
|
39431
39431
|
}
|
|
39432
39432
|
++c4;
|
|
39433
|
-
} while ((
|
|
39433
|
+
} while ((p15 = p15.next) !== null);
|
|
39434
39434
|
this.length -= c4;
|
|
39435
39435
|
return ret;
|
|
39436
39436
|
}
|
|
@@ -39438,10 +39438,10 @@ var MineRender = (() => {
|
|
|
39438
39438
|
_getBuffer(n4) {
|
|
39439
39439
|
const ret = Buffer2.allocUnsafe(n4);
|
|
39440
39440
|
const retLen = n4;
|
|
39441
|
-
let
|
|
39441
|
+
let p15 = this.head;
|
|
39442
39442
|
let c4 = 0;
|
|
39443
39443
|
do {
|
|
39444
|
-
const buf =
|
|
39444
|
+
const buf = p15.data;
|
|
39445
39445
|
if (n4 > buf.length) {
|
|
39446
39446
|
TypedArrayPrototypeSet(ret, buf, retLen - n4);
|
|
39447
39447
|
n4 -= buf.length;
|
|
@@ -39449,17 +39449,17 @@ var MineRender = (() => {
|
|
|
39449
39449
|
if (n4 === buf.length) {
|
|
39450
39450
|
TypedArrayPrototypeSet(ret, buf, retLen - n4);
|
|
39451
39451
|
++c4;
|
|
39452
|
-
if (
|
|
39452
|
+
if (p15.next) this.head = p15.next;
|
|
39453
39453
|
else this.head = this.tail = null;
|
|
39454
39454
|
} else {
|
|
39455
39455
|
TypedArrayPrototypeSet(ret, new Uint8Array2(buf.buffer, buf.byteOffset, n4), retLen - n4);
|
|
39456
|
-
this.head =
|
|
39457
|
-
|
|
39456
|
+
this.head = p15;
|
|
39457
|
+
p15.data = buf.slice(n4);
|
|
39458
39458
|
}
|
|
39459
39459
|
break;
|
|
39460
39460
|
}
|
|
39461
39461
|
++c4;
|
|
39462
|
-
} while ((
|
|
39462
|
+
} while ((p15 = p15.next) !== null);
|
|
39463
39463
|
this.length -= c4;
|
|
39464
39464
|
return ret;
|
|
39465
39465
|
}
|
|
@@ -39727,7 +39727,7 @@ var MineRender = (() => {
|
|
|
39727
39727
|
}
|
|
39728
39728
|
return 0;
|
|
39729
39729
|
}
|
|
39730
|
-
function utf8CheckExtraBytes(self2, buf,
|
|
39730
|
+
function utf8CheckExtraBytes(self2, buf, p15) {
|
|
39731
39731
|
if ((buf[0] & 192) !== 128) {
|
|
39732
39732
|
self2.lastNeed = 0;
|
|
39733
39733
|
return "\uFFFD";
|
|
@@ -39746,14 +39746,14 @@ var MineRender = (() => {
|
|
|
39746
39746
|
}
|
|
39747
39747
|
}
|
|
39748
39748
|
function utf8FillLast(buf) {
|
|
39749
|
-
var
|
|
39750
|
-
var r5 = utf8CheckExtraBytes(this, buf,
|
|
39749
|
+
var p15 = this.lastTotal - this.lastNeed;
|
|
39750
|
+
var r5 = utf8CheckExtraBytes(this, buf, p15);
|
|
39751
39751
|
if (r5 !== void 0) return r5;
|
|
39752
39752
|
if (this.lastNeed <= buf.length) {
|
|
39753
|
-
buf.copy(this.lastChar,
|
|
39753
|
+
buf.copy(this.lastChar, p15, 0, this.lastNeed);
|
|
39754
39754
|
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
39755
39755
|
}
|
|
39756
|
-
buf.copy(this.lastChar,
|
|
39756
|
+
buf.copy(this.lastChar, p15, 0, buf.length);
|
|
39757
39757
|
this.lastNeed -= buf.length;
|
|
39758
39758
|
}
|
|
39759
39759
|
function utf8Text(buf, i4) {
|
|
@@ -45302,7 +45302,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
45302
45302
|
}, domElement: c4, setMode: u4 };
|
|
45303
45303
|
};
|
|
45304
45304
|
f4.Panel = function(e6, f5, l4) {
|
|
45305
|
-
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,
|
|
45305
|
+
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, p15 = 30 * a4, q3 = document.createElement("canvas");
|
|
45306
45306
|
q3.width = r5;
|
|
45307
45307
|
q3.height = h5;
|
|
45308
45308
|
q3.style.cssText = "width:80px;height:48px";
|
|
@@ -45313,10 +45313,10 @@ return ${compiler2.callType("value", tagType)}
|
|
|
45313
45313
|
b4.fillRect(0, 0, r5, h5);
|
|
45314
45314
|
b4.fillStyle = f5;
|
|
45315
45315
|
b4.fillText(e6, t5, v5);
|
|
45316
|
-
b4.fillRect(d4, m4, n4,
|
|
45316
|
+
b4.fillRect(d4, m4, n4, p15);
|
|
45317
45317
|
b4.fillStyle = l4;
|
|
45318
45318
|
b4.globalAlpha = 0.9;
|
|
45319
|
-
b4.fillRect(d4, m4, n4,
|
|
45319
|
+
b4.fillRect(d4, m4, n4, p15);
|
|
45320
45320
|
return { dom: q3, update: function(h6, w4) {
|
|
45321
45321
|
c4 = Math.min(c4, h6);
|
|
45322
45322
|
k4 = Math.max(k4, h6);
|
|
@@ -45325,11 +45325,11 @@ return ${compiler2.callType("value", tagType)}
|
|
|
45325
45325
|
b4.fillRect(0, 0, r5, m4);
|
|
45326
45326
|
b4.fillStyle = f5;
|
|
45327
45327
|
b4.fillText(g4(h6) + " " + e6 + " (" + g4(c4) + "-" + g4(k4) + ")", t5, v5);
|
|
45328
|
-
b4.drawImage(q3, d4 + a4, m4, n4 - a4,
|
|
45329
|
-
b4.fillRect(d4 + n4 - a4, m4, a4,
|
|
45328
|
+
b4.drawImage(q3, d4 + a4, m4, n4 - a4, p15, d4, m4, n4 - a4, p15);
|
|
45329
|
+
b4.fillRect(d4 + n4 - a4, m4, a4, p15);
|
|
45330
45330
|
b4.fillStyle = l4;
|
|
45331
45331
|
b4.globalAlpha = 0.9;
|
|
45332
|
-
b4.fillRect(d4 + n4 - a4, m4, a4, g4((1 - h6 / w4) *
|
|
45332
|
+
b4.fillRect(d4 + n4 - a4, m4, a4, g4((1 - h6 / w4) * p15));
|
|
45333
45333
|
} };
|
|
45334
45334
|
};
|
|
45335
45335
|
return f4;
|
|
@@ -45343,6 +45343,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
45343
45343
|
AXES: () => AXES,
|
|
45344
45344
|
ArchiveAssetSource: () => ArchiveAssetSource,
|
|
45345
45345
|
AssetKey: () => AssetKey,
|
|
45346
|
+
AssetLoadError: () => AssetLoadError,
|
|
45346
45347
|
AssetLoader: () => AssetLoader,
|
|
45347
45348
|
AssetParser: () => AssetParser,
|
|
45348
45349
|
AssetSource: () => AssetSource,
|
|
@@ -49700,16 +49701,16 @@ return ${compiler2.callType("value", tagType)}
|
|
|
49700
49701
|
const te2 = this.elements;
|
|
49701
49702
|
const w4 = 1 / (right - left);
|
|
49702
49703
|
const h5 = 1 / (top - bottom);
|
|
49703
|
-
const
|
|
49704
|
+
const p15 = 1 / (far - near);
|
|
49704
49705
|
const x4 = (right + left) * w4;
|
|
49705
49706
|
const y5 = (top + bottom) * h5;
|
|
49706
49707
|
let z4, zInv;
|
|
49707
49708
|
if (coordinateSystem === WebGLCoordinateSystem) {
|
|
49708
|
-
z4 = (far + near) *
|
|
49709
|
-
zInv = -2 *
|
|
49709
|
+
z4 = (far + near) * p15;
|
|
49710
|
+
zInv = -2 * p15;
|
|
49710
49711
|
} else if (coordinateSystem === WebGPUCoordinateSystem) {
|
|
49711
|
-
z4 = near *
|
|
49712
|
-
zInv = -1 *
|
|
49712
|
+
z4 = near * p15;
|
|
49713
|
+
zInv = -1 * p15;
|
|
49713
49714
|
} else {
|
|
49714
49715
|
throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: " + coordinateSystem);
|
|
49715
49716
|
}
|
|
@@ -50618,18 +50619,18 @@ return ${compiler2.callType("value", tagType)}
|
|
|
50618
50619
|
intersectsBox(box) {
|
|
50619
50620
|
return box.intersectsTriangle(this);
|
|
50620
50621
|
}
|
|
50621
|
-
closestPointToPoint(
|
|
50622
|
+
closestPointToPoint(p15, target) {
|
|
50622
50623
|
const a4 = this.a, b4 = this.b, c4 = this.c;
|
|
50623
50624
|
let v5, w4;
|
|
50624
50625
|
_vab.subVectors(b4, a4);
|
|
50625
50626
|
_vac.subVectors(c4, a4);
|
|
50626
|
-
_vap.subVectors(
|
|
50627
|
+
_vap.subVectors(p15, a4);
|
|
50627
50628
|
const d1 = _vab.dot(_vap);
|
|
50628
50629
|
const d22 = _vac.dot(_vap);
|
|
50629
50630
|
if (d1 <= 0 && d22 <= 0) {
|
|
50630
50631
|
return target.copy(a4);
|
|
50631
50632
|
}
|
|
50632
|
-
_vbp.subVectors(
|
|
50633
|
+
_vbp.subVectors(p15, b4);
|
|
50633
50634
|
const d32 = _vab.dot(_vbp);
|
|
50634
50635
|
const d4 = _vac.dot(_vbp);
|
|
50635
50636
|
if (d32 >= 0 && d4 <= d32) {
|
|
@@ -50640,7 +50641,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
50640
50641
|
v5 = d1 / (d1 - d32);
|
|
50641
50642
|
return target.copy(a4).addScaledVector(_vab, v5);
|
|
50642
50643
|
}
|
|
50643
|
-
_vcp.subVectors(
|
|
50644
|
+
_vcp.subVectors(p15, c4);
|
|
50644
50645
|
const d5 = _vab.dot(_vcp);
|
|
50645
50646
|
const d6 = _vac.dot(_vcp);
|
|
50646
50647
|
if (d6 >= 0 && d5 <= d6) {
|
|
@@ -50818,13 +50819,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
50818
50819
|
};
|
|
50819
50820
|
var _hslA = { h: 0, s: 0, l: 0 };
|
|
50820
50821
|
var _hslB = { h: 0, s: 0, l: 0 };
|
|
50821
|
-
function hue2rgb(
|
|
50822
|
+
function hue2rgb(p15, q3, t5) {
|
|
50822
50823
|
if (t5 < 0) t5 += 1;
|
|
50823
50824
|
if (t5 > 1) t5 -= 1;
|
|
50824
|
-
if (t5 < 1 / 6) return
|
|
50825
|
+
if (t5 < 1 / 6) return p15 + (q3 - p15) * 6 * t5;
|
|
50825
50826
|
if (t5 < 1 / 2) return q3;
|
|
50826
|
-
if (t5 < 2 / 3) return
|
|
50827
|
-
return
|
|
50827
|
+
if (t5 < 2 / 3) return p15 + (q3 - p15) * 6 * (2 / 3 - t5);
|
|
50828
|
+
return p15;
|
|
50828
50829
|
}
|
|
50829
50830
|
var Color = class {
|
|
50830
50831
|
constructor(r5, g4, b4) {
|
|
@@ -50877,11 +50878,11 @@ return ${compiler2.callType("value", tagType)}
|
|
|
50877
50878
|
if (s4 === 0) {
|
|
50878
50879
|
this.r = this.g = this.b = l4;
|
|
50879
50880
|
} else {
|
|
50880
|
-
const
|
|
50881
|
-
const q3 = 2 * l4 -
|
|
50882
|
-
this.r = hue2rgb(q3,
|
|
50883
|
-
this.g = hue2rgb(q3,
|
|
50884
|
-
this.b = hue2rgb(q3,
|
|
50881
|
+
const p15 = l4 <= 0.5 ? l4 * (1 + s4) : l4 + s4 - l4 * s4;
|
|
50882
|
+
const q3 = 2 * l4 - p15;
|
|
50883
|
+
this.r = hue2rgb(q3, p15, h5 + 1 / 3);
|
|
50884
|
+
this.g = hue2rgb(q3, p15, h5);
|
|
50885
|
+
this.b = hue2rgb(q3, p15, h5 - 1 / 3);
|
|
50885
50886
|
}
|
|
50886
50887
|
ColorManagement.toWorkingColorSpace(this, colorSpace);
|
|
50887
50888
|
return this;
|
|
@@ -52619,19 +52620,19 @@ return ${compiler2.callType("value", tagType)}
|
|
|
52619
52620
|
const dst = {};
|
|
52620
52621
|
for (const u4 in src) {
|
|
52621
52622
|
dst[u4] = {};
|
|
52622
|
-
for (const
|
|
52623
|
-
const property = src[u4][
|
|
52623
|
+
for (const p15 in src[u4]) {
|
|
52624
|
+
const property = src[u4][p15];
|
|
52624
52625
|
if (property && (property.isColor || property.isMatrix3 || property.isMatrix4 || property.isVector2 || property.isVector3 || property.isVector4 || property.isTexture || property.isQuaternion)) {
|
|
52625
52626
|
if (property.isRenderTargetTexture) {
|
|
52626
52627
|
console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms().");
|
|
52627
|
-
dst[u4][
|
|
52628
|
+
dst[u4][p15] = null;
|
|
52628
52629
|
} else {
|
|
52629
|
-
dst[u4][
|
|
52630
|
+
dst[u4][p15] = property.clone();
|
|
52630
52631
|
}
|
|
52631
52632
|
} else if (Array.isArray(property)) {
|
|
52632
|
-
dst[u4][
|
|
52633
|
+
dst[u4][p15] = property.slice();
|
|
52633
52634
|
} else {
|
|
52634
|
-
dst[u4][
|
|
52635
|
+
dst[u4][p15] = property;
|
|
52635
52636
|
}
|
|
52636
52637
|
}
|
|
52637
52638
|
}
|
|
@@ -52641,8 +52642,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
52641
52642
|
const merged = {};
|
|
52642
52643
|
for (let u4 = 0; u4 < uniforms.length; u4++) {
|
|
52643
52644
|
const tmp = cloneUniforms(uniforms[u4]);
|
|
52644
|
-
for (const
|
|
52645
|
-
merged[
|
|
52645
|
+
for (const p15 in tmp) {
|
|
52646
|
+
merged[p15] = tmp[p15];
|
|
52646
52647
|
}
|
|
52647
52648
|
}
|
|
52648
52649
|
return merged;
|
|
@@ -57980,8 +57981,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
57980
57981
|
}
|
|
57981
57982
|
function acquireProgram(parameters, cacheKey) {
|
|
57982
57983
|
let program;
|
|
57983
|
-
for (let
|
|
57984
|
-
const preexistingProgram = programs[
|
|
57984
|
+
for (let p15 = 0, pl = programs.length; p15 < pl; p15++) {
|
|
57985
|
+
const preexistingProgram = programs[p15];
|
|
57985
57986
|
if (preexistingProgram.cacheKey === cacheKey) {
|
|
57986
57987
|
program = preexistingProgram;
|
|
57987
57988
|
++program.usedTimes;
|
|
@@ -60692,19 +60693,19 @@ return ${compiler2.callType("value", tagType)}
|
|
|
60692
60693
|
}
|
|
60693
60694
|
function WebGLUtils(gl, extensions, capabilities) {
|
|
60694
60695
|
const isWebGL2 = capabilities.isWebGL2;
|
|
60695
|
-
function convert(
|
|
60696
|
+
function convert(p15, colorSpace = NoColorSpace) {
|
|
60696
60697
|
let extension;
|
|
60697
60698
|
const transfer = ColorManagement.getTransfer(colorSpace);
|
|
60698
|
-
if (
|
|
60699
|
-
if (
|
|
60700
|
-
if (
|
|
60701
|
-
if (
|
|
60702
|
-
if (
|
|
60703
|
-
if (
|
|
60704
|
-
if (
|
|
60705
|
-
if (
|
|
60706
|
-
if (
|
|
60707
|
-
if (
|
|
60699
|
+
if (p15 === UnsignedByteType) return gl.UNSIGNED_BYTE;
|
|
60700
|
+
if (p15 === UnsignedShort4444Type) return gl.UNSIGNED_SHORT_4_4_4_4;
|
|
60701
|
+
if (p15 === UnsignedShort5551Type) return gl.UNSIGNED_SHORT_5_5_5_1;
|
|
60702
|
+
if (p15 === ByteType) return gl.BYTE;
|
|
60703
|
+
if (p15 === ShortType) return gl.SHORT;
|
|
60704
|
+
if (p15 === UnsignedShortType) return gl.UNSIGNED_SHORT;
|
|
60705
|
+
if (p15 === IntType) return gl.INT;
|
|
60706
|
+
if (p15 === UnsignedIntType) return gl.UNSIGNED_INT;
|
|
60707
|
+
if (p15 === FloatType) return gl.FLOAT;
|
|
60708
|
+
if (p15 === HalfFloatType) {
|
|
60708
60709
|
if (isWebGL2) return gl.HALF_FLOAT;
|
|
60709
60710
|
extension = extensions.get("OES_texture_half_float");
|
|
60710
60711
|
if (extension !== null) {
|
|
@@ -60713,13 +60714,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
60713
60714
|
return null;
|
|
60714
60715
|
}
|
|
60715
60716
|
}
|
|
60716
|
-
if (
|
|
60717
|
-
if (
|
|
60718
|
-
if (
|
|
60719
|
-
if (
|
|
60720
|
-
if (
|
|
60721
|
-
if (
|
|
60722
|
-
if (
|
|
60717
|
+
if (p15 === AlphaFormat) return gl.ALPHA;
|
|
60718
|
+
if (p15 === RGBAFormat) return gl.RGBA;
|
|
60719
|
+
if (p15 === LuminanceFormat) return gl.LUMINANCE;
|
|
60720
|
+
if (p15 === LuminanceAlphaFormat) return gl.LUMINANCE_ALPHA;
|
|
60721
|
+
if (p15 === DepthFormat) return gl.DEPTH_COMPONENT;
|
|
60722
|
+
if (p15 === DepthStencilFormat) return gl.DEPTH_STENCIL;
|
|
60723
|
+
if (p15 === _SRGBAFormat) {
|
|
60723
60724
|
extension = extensions.get("EXT_sRGB");
|
|
60724
60725
|
if (extension !== null) {
|
|
60725
60726
|
return extension.SRGB_ALPHA_EXT;
|
|
@@ -60727,46 +60728,46 @@ return ${compiler2.callType("value", tagType)}
|
|
|
60727
60728
|
return null;
|
|
60728
60729
|
}
|
|
60729
60730
|
}
|
|
60730
|
-
if (
|
|
60731
|
-
if (
|
|
60732
|
-
if (
|
|
60733
|
-
if (
|
|
60734
|
-
if (
|
|
60735
|
-
if (
|
|
60731
|
+
if (p15 === RedFormat) return gl.RED;
|
|
60732
|
+
if (p15 === RedIntegerFormat) return gl.RED_INTEGER;
|
|
60733
|
+
if (p15 === RGFormat) return gl.RG;
|
|
60734
|
+
if (p15 === RGIntegerFormat) return gl.RG_INTEGER;
|
|
60735
|
+
if (p15 === RGBAIntegerFormat) return gl.RGBA_INTEGER;
|
|
60736
|
+
if (p15 === RGB_S3TC_DXT1_Format || p15 === RGBA_S3TC_DXT1_Format || p15 === RGBA_S3TC_DXT3_Format || p15 === RGBA_S3TC_DXT5_Format) {
|
|
60736
60737
|
if (transfer === SRGBTransfer) {
|
|
60737
60738
|
extension = extensions.get("WEBGL_compressed_texture_s3tc_srgb");
|
|
60738
60739
|
if (extension !== null) {
|
|
60739
|
-
if (
|
|
60740
|
-
if (
|
|
60741
|
-
if (
|
|
60742
|
-
if (
|
|
60740
|
+
if (p15 === RGB_S3TC_DXT1_Format) return extension.COMPRESSED_SRGB_S3TC_DXT1_EXT;
|
|
60741
|
+
if (p15 === RGBA_S3TC_DXT1_Format) return extension.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;
|
|
60742
|
+
if (p15 === RGBA_S3TC_DXT3_Format) return extension.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;
|
|
60743
|
+
if (p15 === RGBA_S3TC_DXT5_Format) return extension.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;
|
|
60743
60744
|
} else {
|
|
60744
60745
|
return null;
|
|
60745
60746
|
}
|
|
60746
60747
|
} else {
|
|
60747
60748
|
extension = extensions.get("WEBGL_compressed_texture_s3tc");
|
|
60748
60749
|
if (extension !== null) {
|
|
60749
|
-
if (
|
|
60750
|
-
if (
|
|
60751
|
-
if (
|
|
60752
|
-
if (
|
|
60750
|
+
if (p15 === RGB_S3TC_DXT1_Format) return extension.COMPRESSED_RGB_S3TC_DXT1_EXT;
|
|
60751
|
+
if (p15 === RGBA_S3TC_DXT1_Format) return extension.COMPRESSED_RGBA_S3TC_DXT1_EXT;
|
|
60752
|
+
if (p15 === RGBA_S3TC_DXT3_Format) return extension.COMPRESSED_RGBA_S3TC_DXT3_EXT;
|
|
60753
|
+
if (p15 === RGBA_S3TC_DXT5_Format) return extension.COMPRESSED_RGBA_S3TC_DXT5_EXT;
|
|
60753
60754
|
} else {
|
|
60754
60755
|
return null;
|
|
60755
60756
|
}
|
|
60756
60757
|
}
|
|
60757
60758
|
}
|
|
60758
|
-
if (
|
|
60759
|
+
if (p15 === RGB_PVRTC_4BPPV1_Format || p15 === RGB_PVRTC_2BPPV1_Format || p15 === RGBA_PVRTC_4BPPV1_Format || p15 === RGBA_PVRTC_2BPPV1_Format) {
|
|
60759
60760
|
extension = extensions.get("WEBGL_compressed_texture_pvrtc");
|
|
60760
60761
|
if (extension !== null) {
|
|
60761
|
-
if (
|
|
60762
|
-
if (
|
|
60763
|
-
if (
|
|
60764
|
-
if (
|
|
60762
|
+
if (p15 === RGB_PVRTC_4BPPV1_Format) return extension.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
|
|
60763
|
+
if (p15 === RGB_PVRTC_2BPPV1_Format) return extension.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
|
|
60764
|
+
if (p15 === RGBA_PVRTC_4BPPV1_Format) return extension.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
|
|
60765
|
+
if (p15 === RGBA_PVRTC_2BPPV1_Format) return extension.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
|
|
60765
60766
|
} else {
|
|
60766
60767
|
return null;
|
|
60767
60768
|
}
|
|
60768
60769
|
}
|
|
60769
|
-
if (
|
|
60770
|
+
if (p15 === RGB_ETC1_Format) {
|
|
60770
60771
|
extension = extensions.get("WEBGL_compressed_texture_etc1");
|
|
60771
60772
|
if (extension !== null) {
|
|
60772
60773
|
return extension.COMPRESSED_RGB_ETC1_WEBGL;
|
|
@@ -60774,58 +60775,58 @@ return ${compiler2.callType("value", tagType)}
|
|
|
60774
60775
|
return null;
|
|
60775
60776
|
}
|
|
60776
60777
|
}
|
|
60777
|
-
if (
|
|
60778
|
+
if (p15 === RGB_ETC2_Format || p15 === RGBA_ETC2_EAC_Format) {
|
|
60778
60779
|
extension = extensions.get("WEBGL_compressed_texture_etc");
|
|
60779
60780
|
if (extension !== null) {
|
|
60780
|
-
if (
|
|
60781
|
-
if (
|
|
60781
|
+
if (p15 === RGB_ETC2_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ETC2 : extension.COMPRESSED_RGB8_ETC2;
|
|
60782
|
+
if (p15 === RGBA_ETC2_EAC_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC : extension.COMPRESSED_RGBA8_ETC2_EAC;
|
|
60782
60783
|
} else {
|
|
60783
60784
|
return null;
|
|
60784
60785
|
}
|
|
60785
60786
|
}
|
|
60786
|
-
if (
|
|
60787
|
+
if (p15 === RGBA_ASTC_4x4_Format || p15 === RGBA_ASTC_5x4_Format || p15 === RGBA_ASTC_5x5_Format || p15 === RGBA_ASTC_6x5_Format || p15 === RGBA_ASTC_6x6_Format || p15 === RGBA_ASTC_8x5_Format || p15 === RGBA_ASTC_8x6_Format || p15 === RGBA_ASTC_8x8_Format || p15 === RGBA_ASTC_10x5_Format || p15 === RGBA_ASTC_10x6_Format || p15 === RGBA_ASTC_10x8_Format || p15 === RGBA_ASTC_10x10_Format || p15 === RGBA_ASTC_12x10_Format || p15 === RGBA_ASTC_12x12_Format) {
|
|
60787
60788
|
extension = extensions.get("WEBGL_compressed_texture_astc");
|
|
60788
60789
|
if (extension !== null) {
|
|
60789
|
-
if (
|
|
60790
|
-
if (
|
|
60791
|
-
if (
|
|
60792
|
-
if (
|
|
60793
|
-
if (
|
|
60794
|
-
if (
|
|
60795
|
-
if (
|
|
60796
|
-
if (
|
|
60797
|
-
if (
|
|
60798
|
-
if (
|
|
60799
|
-
if (
|
|
60800
|
-
if (
|
|
60801
|
-
if (
|
|
60802
|
-
if (
|
|
60790
|
+
if (p15 === RGBA_ASTC_4x4_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : extension.COMPRESSED_RGBA_ASTC_4x4_KHR;
|
|
60791
|
+
if (p15 === RGBA_ASTC_5x4_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : extension.COMPRESSED_RGBA_ASTC_5x4_KHR;
|
|
60792
|
+
if (p15 === RGBA_ASTC_5x5_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : extension.COMPRESSED_RGBA_ASTC_5x5_KHR;
|
|
60793
|
+
if (p15 === RGBA_ASTC_6x5_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : extension.COMPRESSED_RGBA_ASTC_6x5_KHR;
|
|
60794
|
+
if (p15 === RGBA_ASTC_6x6_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : extension.COMPRESSED_RGBA_ASTC_6x6_KHR;
|
|
60795
|
+
if (p15 === RGBA_ASTC_8x5_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : extension.COMPRESSED_RGBA_ASTC_8x5_KHR;
|
|
60796
|
+
if (p15 === RGBA_ASTC_8x6_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : extension.COMPRESSED_RGBA_ASTC_8x6_KHR;
|
|
60797
|
+
if (p15 === RGBA_ASTC_8x8_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : extension.COMPRESSED_RGBA_ASTC_8x8_KHR;
|
|
60798
|
+
if (p15 === RGBA_ASTC_10x5_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : extension.COMPRESSED_RGBA_ASTC_10x5_KHR;
|
|
60799
|
+
if (p15 === RGBA_ASTC_10x6_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR : extension.COMPRESSED_RGBA_ASTC_10x6_KHR;
|
|
60800
|
+
if (p15 === RGBA_ASTC_10x8_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR : extension.COMPRESSED_RGBA_ASTC_10x8_KHR;
|
|
60801
|
+
if (p15 === RGBA_ASTC_10x10_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR : extension.COMPRESSED_RGBA_ASTC_10x10_KHR;
|
|
60802
|
+
if (p15 === RGBA_ASTC_12x10_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR : extension.COMPRESSED_RGBA_ASTC_12x10_KHR;
|
|
60803
|
+
if (p15 === RGBA_ASTC_12x12_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : extension.COMPRESSED_RGBA_ASTC_12x12_KHR;
|
|
60803
60804
|
} else {
|
|
60804
60805
|
return null;
|
|
60805
60806
|
}
|
|
60806
60807
|
}
|
|
60807
|
-
if (
|
|
60808
|
+
if (p15 === RGBA_BPTC_Format || p15 === RGB_BPTC_SIGNED_Format || p15 === RGB_BPTC_UNSIGNED_Format) {
|
|
60808
60809
|
extension = extensions.get("EXT_texture_compression_bptc");
|
|
60809
60810
|
if (extension !== null) {
|
|
60810
|
-
if (
|
|
60811
|
-
if (
|
|
60812
|
-
if (
|
|
60811
|
+
if (p15 === RGBA_BPTC_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : extension.COMPRESSED_RGBA_BPTC_UNORM_EXT;
|
|
60812
|
+
if (p15 === RGB_BPTC_SIGNED_Format) return extension.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;
|
|
60813
|
+
if (p15 === RGB_BPTC_UNSIGNED_Format) return extension.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT;
|
|
60813
60814
|
} else {
|
|
60814
60815
|
return null;
|
|
60815
60816
|
}
|
|
60816
60817
|
}
|
|
60817
|
-
if (
|
|
60818
|
+
if (p15 === RED_RGTC1_Format || p15 === SIGNED_RED_RGTC1_Format || p15 === RED_GREEN_RGTC2_Format || p15 === SIGNED_RED_GREEN_RGTC2_Format) {
|
|
60818
60819
|
extension = extensions.get("EXT_texture_compression_rgtc");
|
|
60819
60820
|
if (extension !== null) {
|
|
60820
|
-
if (
|
|
60821
|
-
if (
|
|
60822
|
-
if (
|
|
60823
|
-
if (
|
|
60821
|
+
if (p15 === RGBA_BPTC_Format) return extension.COMPRESSED_RED_RGTC1_EXT;
|
|
60822
|
+
if (p15 === SIGNED_RED_RGTC1_Format) return extension.COMPRESSED_SIGNED_RED_RGTC1_EXT;
|
|
60823
|
+
if (p15 === RED_GREEN_RGTC2_Format) return extension.COMPRESSED_RED_GREEN_RGTC2_EXT;
|
|
60824
|
+
if (p15 === SIGNED_RED_GREEN_RGTC2_Format) return extension.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;
|
|
60824
60825
|
} else {
|
|
60825
60826
|
return null;
|
|
60826
60827
|
}
|
|
60827
60828
|
}
|
|
60828
|
-
if (
|
|
60829
|
+
if (p15 === UnsignedInt248Type) {
|
|
60829
60830
|
if (isWebGL2) return gl.UNSIGNED_INT_24_8;
|
|
60830
60831
|
extension = extensions.get("WEBGL_depth_texture");
|
|
60831
60832
|
if (extension !== null) {
|
|
@@ -60834,7 +60835,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
60834
60835
|
return null;
|
|
60835
60836
|
}
|
|
60836
60837
|
}
|
|
60837
|
-
return gl[
|
|
60838
|
+
return gl[p15] !== void 0 ? gl[p15] : null;
|
|
60838
60839
|
}
|
|
60839
60840
|
return { convert };
|
|
60840
60841
|
}
|
|
@@ -64242,10 +64243,10 @@ return ${compiler2.callType("value", tagType)}
|
|
|
64242
64243
|
this._offsetNext = iNext * stride;
|
|
64243
64244
|
}
|
|
64244
64245
|
interpolate_(i1, t0, t5, t1) {
|
|
64245
|
-
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,
|
|
64246
|
-
const sP = -wP * ppp + 2 * wP * pp - wP *
|
|
64247
|
-
const s0 = (1 + wP) * ppp + (-1.5 - 2 * wP) * pp + (-0.5 + wP) *
|
|
64248
|
-
const s1 = (-1 - wN) * ppp + (1.5 + wN) * pp + 0.5 *
|
|
64246
|
+
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, p15 = (t5 - t0) / (t1 - t0), pp = p15 * p15, ppp = pp * p15;
|
|
64247
|
+
const sP = -wP * ppp + 2 * wP * pp - wP * p15;
|
|
64248
|
+
const s0 = (1 + wP) * ppp + (-1.5 - 2 * wP) * pp + (-0.5 + wP) * p15 + 1;
|
|
64249
|
+
const s1 = (-1 - wN) * ppp + (1.5 + wN) * pp + 0.5 * p15;
|
|
64249
64250
|
const sN = wN * ppp - wN * pp;
|
|
64250
64251
|
for (let i4 = 0; i4 !== stride; ++i4) {
|
|
64251
64252
|
result[i4] = sP * values[oP + i4] + s0 * values[o0 + i4] + s1 * values[o1 + i4] + sN * values[oN + i4];
|
|
@@ -65492,7 +65493,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
65492
65493
|
function keyCompletablePromiseMapToPromiseContainingMap(keyToPromiseMap) {
|
|
65493
65494
|
const keys = asArray(keyToPromiseMap.keys());
|
|
65494
65495
|
const values = asArray(keyToPromiseMap.values());
|
|
65495
|
-
return Promise.all(values.map((
|
|
65496
|
+
return Promise.all(values.map((p15) => p15.promise)).then((resolvedValues) => {
|
|
65496
65497
|
const valueMap = /* @__PURE__ */ new Map();
|
|
65497
65498
|
keys.forEach((key, i4) => {
|
|
65498
65499
|
const value = resolvedValues[i4];
|
|
@@ -67182,12 +67183,12 @@ return ${compiler2.callType("value", tagType)}
|
|
|
67182
67183
|
return a4.join("/");
|
|
67183
67184
|
}
|
|
67184
67185
|
getFullPath() {
|
|
67185
|
-
let
|
|
67186
|
+
let p15 = [];
|
|
67186
67187
|
if (this.type) {
|
|
67187
|
-
|
|
67188
|
+
p15.push(this.type);
|
|
67188
67189
|
}
|
|
67189
|
-
|
|
67190
|
-
return
|
|
67190
|
+
p15.push(this.path);
|
|
67191
|
+
return p15.join("/");
|
|
67191
67192
|
}
|
|
67192
67193
|
toNamespacedString() {
|
|
67193
67194
|
return this.namespace + ":" + this.getFullPath();
|
|
@@ -67212,7 +67213,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
67212
67213
|
merged = (0, import_ts_deepmerge.default)(merged, parentModel);
|
|
67213
67214
|
}
|
|
67214
67215
|
merged = (0, import_ts_deepmerge.default)(merged, model);
|
|
67215
|
-
merged.hierarchy = models.map((m4) => m4.parent).filter((
|
|
67216
|
+
merged.hierarchy = models.map((m4) => m4.parent).filter((p15) => `${p15}`);
|
|
67216
67217
|
merged.hierarchy.push(`${merged.parent}`);
|
|
67217
67218
|
return merged;
|
|
67218
67219
|
}
|
|
@@ -67413,6 +67414,16 @@ return ${compiler2.callType("value", tagType)}
|
|
|
67413
67414
|
constructor() {
|
|
67414
67415
|
}
|
|
67415
67416
|
};
|
|
67417
|
+
var AssetLoadError = class extends Error {
|
|
67418
|
+
constructor(source, key, path, cause) {
|
|
67419
|
+
super(`Failed to load ${key.toNamespacedString()} from ${path}${cause instanceof Error ? `: ${cause.message}` : ""}`);
|
|
67420
|
+
this.source = source;
|
|
67421
|
+
this.key = key;
|
|
67422
|
+
this.path = path;
|
|
67423
|
+
this.cause = cause;
|
|
67424
|
+
this.name = "AssetLoadError";
|
|
67425
|
+
}
|
|
67426
|
+
};
|
|
67416
67427
|
|
|
67417
67428
|
// src/assets/source/HostedAssetSource.ts
|
|
67418
67429
|
init_dirname();
|
|
@@ -67640,31 +67651,25 @@ return ${compiler2.callType("value", tagType)}
|
|
|
67640
67651
|
console.info(p6, "Loading", key);
|
|
67641
67652
|
const url = `${this.assetBasePath(key)}${key.type !== void 0 ? key.type + "/" : ""}${key.path}${key.extension}`;
|
|
67642
67653
|
console.debug(p6, url);
|
|
67643
|
-
|
|
67644
|
-
|
|
67645
|
-
|
|
67646
|
-
|
|
67647
|
-
|
|
67648
|
-
|
|
67649
|
-
|
|
67650
|
-
|
|
67651
|
-
} catch (e6) {
|
|
67652
|
-
console.warn("Parser failed to process response", response, e6);
|
|
67653
|
-
throw e6;
|
|
67654
|
-
}
|
|
67655
|
-
}
|
|
67656
|
-
return void 0;
|
|
67657
|
-
}).catch((err) => {
|
|
67658
|
-
if (err.response) {
|
|
67659
|
-
let response = err.response;
|
|
67660
|
-
if (response.status === 404) {
|
|
67661
|
-
console.debug(p6, key, "not found");
|
|
67654
|
+
const request = { url };
|
|
67655
|
+
try {
|
|
67656
|
+
parser.config(request);
|
|
67657
|
+
let response;
|
|
67658
|
+
try {
|
|
67659
|
+
response = await Requests.mcAssetRequest(request);
|
|
67660
|
+
} catch (cause) {
|
|
67661
|
+
if (cause instanceof RequestError && cause.response?.status === 404) {
|
|
67662
67662
|
return void 0;
|
|
67663
67663
|
}
|
|
67664
|
+
throw cause;
|
|
67664
67665
|
}
|
|
67665
|
-
|
|
67666
|
-
|
|
67667
|
-
|
|
67666
|
+
if (response.data === void 0) {
|
|
67667
|
+
throw new Error("Asset response has no data");
|
|
67668
|
+
}
|
|
67669
|
+
return await parser.parse(response);
|
|
67670
|
+
} catch (cause) {
|
|
67671
|
+
throw new AssetLoadError(this, key, request.url, cause);
|
|
67672
|
+
}
|
|
67668
67673
|
}
|
|
67669
67674
|
assetBasePath(key) {
|
|
67670
67675
|
return `${key.root ?? this.root ?? AssetLoader.ROOT}/${key.rootType !== void 0 ? key.rootType + "/" : ""}${key.namespace !== void 0 ? key.namespace + "/" : ""}${key.assetType !== void 0 ? key.assetType + "/" : ""}`;
|
|
@@ -68566,8 +68571,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
68566
68571
|
that.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;
|
|
68567
68572
|
return max_blindex;
|
|
68568
68573
|
}
|
|
68569
|
-
function put_byte(
|
|
68570
|
-
that.pending_buf[that.pending++] =
|
|
68574
|
+
function put_byte(p15) {
|
|
68575
|
+
that.pending_buf[that.pending++] = p15;
|
|
68571
68576
|
}
|
|
68572
68577
|
function put_short(w4) {
|
|
68573
68578
|
put_byte(w4 & 255);
|
|
@@ -68796,7 +68801,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
68796
68801
|
}
|
|
68797
68802
|
function fill_window() {
|
|
68798
68803
|
let n4, m4;
|
|
68799
|
-
let
|
|
68804
|
+
let p15;
|
|
68800
68805
|
let more;
|
|
68801
68806
|
do {
|
|
68802
68807
|
more = window_size - lookahead - strstart;
|
|
@@ -68810,16 +68815,16 @@ return ${compiler2.callType("value", tagType)}
|
|
|
68810
68815
|
strstart -= w_size;
|
|
68811
68816
|
block_start -= w_size;
|
|
68812
68817
|
n4 = hash_size;
|
|
68813
|
-
|
|
68818
|
+
p15 = n4;
|
|
68814
68819
|
do {
|
|
68815
|
-
m4 = head[--
|
|
68816
|
-
head[
|
|
68820
|
+
m4 = head[--p15] & 65535;
|
|
68821
|
+
head[p15] = m4 >= w_size ? m4 - w_size : 0;
|
|
68817
68822
|
} while (--n4 !== 0);
|
|
68818
68823
|
n4 = w_size;
|
|
68819
|
-
|
|
68824
|
+
p15 = n4;
|
|
68820
68825
|
do {
|
|
68821
|
-
m4 = prev[--
|
|
68822
|
-
prev[
|
|
68826
|
+
m4 = prev[--p15] & 65535;
|
|
68827
|
+
prev[p15] = m4 >= w_size ? m4 - w_size : 0;
|
|
68823
68828
|
} while (--n4 !== 0);
|
|
68824
68829
|
more += w_size;
|
|
68825
68830
|
}
|
|
@@ -71220,17 +71225,17 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71220
71225
|
let k4;
|
|
71221
71226
|
let l4;
|
|
71222
71227
|
let mask;
|
|
71223
|
-
let
|
|
71228
|
+
let p15;
|
|
71224
71229
|
let q3;
|
|
71225
71230
|
let w4;
|
|
71226
71231
|
let xp;
|
|
71227
71232
|
let y5;
|
|
71228
71233
|
let z4;
|
|
71229
|
-
|
|
71234
|
+
p15 = 0;
|
|
71230
71235
|
i4 = n4;
|
|
71231
71236
|
do {
|
|
71232
|
-
c4[b4[bindex +
|
|
71233
|
-
|
|
71237
|
+
c4[b4[bindex + p15]]++;
|
|
71238
|
+
p15++;
|
|
71234
71239
|
i4--;
|
|
71235
71240
|
} while (i4 !== 0);
|
|
71236
71241
|
if (c4[0] == n4) {
|
|
@@ -71265,24 +71270,24 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71265
71270
|
}
|
|
71266
71271
|
c4[i4] += y5;
|
|
71267
71272
|
x4[1] = j4 = 0;
|
|
71268
|
-
|
|
71273
|
+
p15 = 1;
|
|
71269
71274
|
xp = 2;
|
|
71270
71275
|
while (--i4 !== 0) {
|
|
71271
|
-
x4[xp] = j4 += c4[
|
|
71276
|
+
x4[xp] = j4 += c4[p15];
|
|
71272
71277
|
xp++;
|
|
71273
|
-
|
|
71278
|
+
p15++;
|
|
71274
71279
|
}
|
|
71275
71280
|
i4 = 0;
|
|
71276
|
-
|
|
71281
|
+
p15 = 0;
|
|
71277
71282
|
do {
|
|
71278
|
-
if ((j4 = b4[bindex +
|
|
71283
|
+
if ((j4 = b4[bindex + p15]) !== 0) {
|
|
71279
71284
|
v6[x4[j4]++] = i4;
|
|
71280
71285
|
}
|
|
71281
|
-
|
|
71286
|
+
p15++;
|
|
71282
71287
|
} while (++i4 < n4);
|
|
71283
71288
|
n4 = x4[g4];
|
|
71284
71289
|
x4[0] = i4 = 0;
|
|
71285
|
-
|
|
71290
|
+
p15 = 0;
|
|
71286
71291
|
h5 = -1;
|
|
71287
71292
|
w4 = -l4;
|
|
71288
71293
|
u4[0] = 0;
|
|
@@ -71330,16 +71335,16 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71330
71335
|
}
|
|
71331
71336
|
r5[1] = /* (byte) */
|
|
71332
71337
|
k4 - w4;
|
|
71333
|
-
if (
|
|
71338
|
+
if (p15 >= n4) {
|
|
71334
71339
|
r5[0] = 128 + 64;
|
|
71335
|
-
} else if (v6[
|
|
71340
|
+
} else if (v6[p15] < s4) {
|
|
71336
71341
|
r5[0] = /* (byte) */
|
|
71337
|
-
v6[
|
|
71338
|
-
r5[2] = v6[
|
|
71342
|
+
v6[p15] < 256 ? 0 : 32 + 64;
|
|
71343
|
+
r5[2] = v6[p15++];
|
|
71339
71344
|
} else {
|
|
71340
71345
|
r5[0] = /* (byte) */
|
|
71341
|
-
e6[v6[
|
|
71342
|
-
r5[2] = d4[v6[
|
|
71346
|
+
e6[v6[p15] - s4] + 16 + 64;
|
|
71347
|
+
r5[2] = d4[v6[p15++] - s4];
|
|
71343
71348
|
}
|
|
71344
71349
|
f4 = 1 << k4 - w4;
|
|
71345
71350
|
for (j4 = i4 >>> w4; j4 < z4; j4 += f4) {
|
|
@@ -71468,7 +71473,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71468
71473
|
let e6;
|
|
71469
71474
|
let b4;
|
|
71470
71475
|
let k4;
|
|
71471
|
-
let
|
|
71476
|
+
let p15;
|
|
71472
71477
|
let n4;
|
|
71473
71478
|
let q3;
|
|
71474
71479
|
let m4;
|
|
@@ -71478,7 +71483,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71478
71483
|
let d4;
|
|
71479
71484
|
let r5;
|
|
71480
71485
|
let tp_index_t_3;
|
|
71481
|
-
|
|
71486
|
+
p15 = z4.next_in_index;
|
|
71482
71487
|
n4 = z4.avail_in;
|
|
71483
71488
|
b4 = s4.bitb;
|
|
71484
71489
|
k4 = s4.bitk;
|
|
@@ -71489,7 +71494,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71489
71494
|
do {
|
|
71490
71495
|
while (k4 < 20) {
|
|
71491
71496
|
n4--;
|
|
71492
|
-
b4 |= (z4.read_byte(
|
|
71497
|
+
b4 |= (z4.read_byte(p15++) & 255) << k4;
|
|
71493
71498
|
k4 += 8;
|
|
71494
71499
|
}
|
|
71495
71500
|
t5 = b4 & ml;
|
|
@@ -71515,7 +71520,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71515
71520
|
k4 -= e6;
|
|
71516
71521
|
while (k4 < 15) {
|
|
71517
71522
|
n4--;
|
|
71518
|
-
b4 |= (z4.read_byte(
|
|
71523
|
+
b4 |= (z4.read_byte(p15++) & 255) << k4;
|
|
71519
71524
|
k4 += 8;
|
|
71520
71525
|
}
|
|
71521
71526
|
t5 = b4 & md;
|
|
@@ -71530,7 +71535,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71530
71535
|
e6 &= 15;
|
|
71531
71536
|
while (k4 < e6) {
|
|
71532
71537
|
n4--;
|
|
71533
|
-
b4 |= (z4.read_byte(
|
|
71538
|
+
b4 |= (z4.read_byte(p15++) & 255) << k4;
|
|
71534
71539
|
k4 += 8;
|
|
71535
71540
|
}
|
|
71536
71541
|
d4 = tp[tp_index_t_3 + 2] + (b4 & inflate_mask[e6]);
|
|
@@ -71591,13 +71596,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71591
71596
|
c4 = z4.avail_in - n4;
|
|
71592
71597
|
c4 = k4 >> 3 < c4 ? k4 >> 3 : c4;
|
|
71593
71598
|
n4 += c4;
|
|
71594
|
-
|
|
71599
|
+
p15 -= c4;
|
|
71595
71600
|
k4 -= c4 << 3;
|
|
71596
71601
|
s4.bitb = b4;
|
|
71597
71602
|
s4.bitk = k4;
|
|
71598
71603
|
z4.avail_in = n4;
|
|
71599
|
-
z4.total_in +=
|
|
71600
|
-
z4.next_in_index =
|
|
71604
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71605
|
+
z4.next_in_index = p15;
|
|
71601
71606
|
s4.write = q3;
|
|
71602
71607
|
return Z_DATA_ERROR3;
|
|
71603
71608
|
}
|
|
@@ -71620,13 +71625,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71620
71625
|
c4 = z4.avail_in - n4;
|
|
71621
71626
|
c4 = k4 >> 3 < c4 ? k4 >> 3 : c4;
|
|
71622
71627
|
n4 += c4;
|
|
71623
|
-
|
|
71628
|
+
p15 -= c4;
|
|
71624
71629
|
k4 -= c4 << 3;
|
|
71625
71630
|
s4.bitb = b4;
|
|
71626
71631
|
s4.bitk = k4;
|
|
71627
71632
|
z4.avail_in = n4;
|
|
71628
|
-
z4.total_in +=
|
|
71629
|
-
z4.next_in_index =
|
|
71633
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71634
|
+
z4.next_in_index = p15;
|
|
71630
71635
|
s4.write = q3;
|
|
71631
71636
|
return Z_STREAM_END3;
|
|
71632
71637
|
} else {
|
|
@@ -71634,13 +71639,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71634
71639
|
c4 = z4.avail_in - n4;
|
|
71635
71640
|
c4 = k4 >> 3 < c4 ? k4 >> 3 : c4;
|
|
71636
71641
|
n4 += c4;
|
|
71637
|
-
|
|
71642
|
+
p15 -= c4;
|
|
71638
71643
|
k4 -= c4 << 3;
|
|
71639
71644
|
s4.bitb = b4;
|
|
71640
71645
|
s4.bitk = k4;
|
|
71641
71646
|
z4.avail_in = n4;
|
|
71642
|
-
z4.total_in +=
|
|
71643
|
-
z4.next_in_index =
|
|
71647
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71648
|
+
z4.next_in_index = p15;
|
|
71644
71649
|
s4.write = q3;
|
|
71645
71650
|
return Z_DATA_ERROR3;
|
|
71646
71651
|
}
|
|
@@ -71649,13 +71654,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71649
71654
|
c4 = z4.avail_in - n4;
|
|
71650
71655
|
c4 = k4 >> 3 < c4 ? k4 >> 3 : c4;
|
|
71651
71656
|
n4 += c4;
|
|
71652
|
-
|
|
71657
|
+
p15 -= c4;
|
|
71653
71658
|
k4 -= c4 << 3;
|
|
71654
71659
|
s4.bitb = b4;
|
|
71655
71660
|
s4.bitk = k4;
|
|
71656
71661
|
z4.avail_in = n4;
|
|
71657
|
-
z4.total_in +=
|
|
71658
|
-
z4.next_in_index =
|
|
71662
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71663
|
+
z4.next_in_index = p15;
|
|
71659
71664
|
s4.write = q3;
|
|
71660
71665
|
return Z_OK3;
|
|
71661
71666
|
}
|
|
@@ -71677,12 +71682,12 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71677
71682
|
let e6;
|
|
71678
71683
|
let b4 = 0;
|
|
71679
71684
|
let k4 = 0;
|
|
71680
|
-
let
|
|
71685
|
+
let p15 = 0;
|
|
71681
71686
|
let n4;
|
|
71682
71687
|
let q3;
|
|
71683
71688
|
let m4;
|
|
71684
71689
|
let f4;
|
|
71685
|
-
|
|
71690
|
+
p15 = z4.next_in_index;
|
|
71686
71691
|
n4 = z4.avail_in;
|
|
71687
71692
|
b4 = s4.bitb;
|
|
71688
71693
|
k4 = s4.bitk;
|
|
@@ -71696,11 +71701,11 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71696
71701
|
s4.bitb = b4;
|
|
71697
71702
|
s4.bitk = k4;
|
|
71698
71703
|
z4.avail_in = n4;
|
|
71699
|
-
z4.total_in +=
|
|
71700
|
-
z4.next_in_index =
|
|
71704
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71705
|
+
z4.next_in_index = p15;
|
|
71701
71706
|
s4.write = q3;
|
|
71702
71707
|
r5 = inflate_fast(lbits, dbits, ltree, ltree_index, dtree, dtree_index, s4, z4);
|
|
71703
|
-
|
|
71708
|
+
p15 = z4.next_in_index;
|
|
71704
71709
|
n4 = z4.avail_in;
|
|
71705
71710
|
b4 = s4.bitb;
|
|
71706
71711
|
k4 = s4.bitk;
|
|
@@ -71725,13 +71730,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71725
71730
|
s4.bitb = b4;
|
|
71726
71731
|
s4.bitk = k4;
|
|
71727
71732
|
z4.avail_in = n4;
|
|
71728
|
-
z4.total_in +=
|
|
71729
|
-
z4.next_in_index =
|
|
71733
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71734
|
+
z4.next_in_index = p15;
|
|
71730
71735
|
s4.write = q3;
|
|
71731
71736
|
return s4.inflate_flush(z4, r5);
|
|
71732
71737
|
}
|
|
71733
71738
|
n4--;
|
|
71734
|
-
b4 |= (z4.read_byte(
|
|
71739
|
+
b4 |= (z4.read_byte(p15++) & 255) << k4;
|
|
71735
71740
|
k4 += 8;
|
|
71736
71741
|
}
|
|
71737
71742
|
tindex = (tree_index + (b4 & inflate_mask[j4])) * 3;
|
|
@@ -71764,8 +71769,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71764
71769
|
s4.bitb = b4;
|
|
71765
71770
|
s4.bitk = k4;
|
|
71766
71771
|
z4.avail_in = n4;
|
|
71767
|
-
z4.total_in +=
|
|
71768
|
-
z4.next_in_index =
|
|
71772
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71773
|
+
z4.next_in_index = p15;
|
|
71769
71774
|
s4.write = q3;
|
|
71770
71775
|
return s4.inflate_flush(z4, r5);
|
|
71771
71776
|
case LENEXT:
|
|
@@ -71777,13 +71782,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71777
71782
|
s4.bitb = b4;
|
|
71778
71783
|
s4.bitk = k4;
|
|
71779
71784
|
z4.avail_in = n4;
|
|
71780
|
-
z4.total_in +=
|
|
71781
|
-
z4.next_in_index =
|
|
71785
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71786
|
+
z4.next_in_index = p15;
|
|
71782
71787
|
s4.write = q3;
|
|
71783
71788
|
return s4.inflate_flush(z4, r5);
|
|
71784
71789
|
}
|
|
71785
71790
|
n4--;
|
|
71786
|
-
b4 |= (z4.read_byte(
|
|
71791
|
+
b4 |= (z4.read_byte(p15++) & 255) << k4;
|
|
71787
71792
|
k4 += 8;
|
|
71788
71793
|
}
|
|
71789
71794
|
len += b4 & inflate_mask[j4];
|
|
@@ -71803,13 +71808,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71803
71808
|
s4.bitb = b4;
|
|
71804
71809
|
s4.bitk = k4;
|
|
71805
71810
|
z4.avail_in = n4;
|
|
71806
|
-
z4.total_in +=
|
|
71807
|
-
z4.next_in_index =
|
|
71811
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71812
|
+
z4.next_in_index = p15;
|
|
71808
71813
|
s4.write = q3;
|
|
71809
71814
|
return s4.inflate_flush(z4, r5);
|
|
71810
71815
|
}
|
|
71811
71816
|
n4--;
|
|
71812
|
-
b4 |= (z4.read_byte(
|
|
71817
|
+
b4 |= (z4.read_byte(p15++) & 255) << k4;
|
|
71813
71818
|
k4 += 8;
|
|
71814
71819
|
}
|
|
71815
71820
|
tindex = (tree_index + (b4 & inflate_mask[j4])) * 3;
|
|
@@ -71833,8 +71838,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71833
71838
|
s4.bitb = b4;
|
|
71834
71839
|
s4.bitk = k4;
|
|
71835
71840
|
z4.avail_in = n4;
|
|
71836
|
-
z4.total_in +=
|
|
71837
|
-
z4.next_in_index =
|
|
71841
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71842
|
+
z4.next_in_index = p15;
|
|
71838
71843
|
s4.write = q3;
|
|
71839
71844
|
return s4.inflate_flush(z4, r5);
|
|
71840
71845
|
case DISTEXT:
|
|
@@ -71846,13 +71851,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71846
71851
|
s4.bitb = b4;
|
|
71847
71852
|
s4.bitk = k4;
|
|
71848
71853
|
z4.avail_in = n4;
|
|
71849
|
-
z4.total_in +=
|
|
71850
|
-
z4.next_in_index =
|
|
71854
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71855
|
+
z4.next_in_index = p15;
|
|
71851
71856
|
s4.write = q3;
|
|
71852
71857
|
return s4.inflate_flush(z4, r5);
|
|
71853
71858
|
}
|
|
71854
71859
|
n4--;
|
|
71855
|
-
b4 |= (z4.read_byte(
|
|
71860
|
+
b4 |= (z4.read_byte(p15++) & 255) << k4;
|
|
71856
71861
|
k4 += 8;
|
|
71857
71862
|
}
|
|
71858
71863
|
dist += b4 & inflate_mask[j4];
|
|
@@ -71884,8 +71889,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71884
71889
|
s4.bitb = b4;
|
|
71885
71890
|
s4.bitk = k4;
|
|
71886
71891
|
z4.avail_in = n4;
|
|
71887
|
-
z4.total_in +=
|
|
71888
|
-
z4.next_in_index =
|
|
71892
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71893
|
+
z4.next_in_index = p15;
|
|
71889
71894
|
s4.write = q3;
|
|
71890
71895
|
return s4.inflate_flush(z4, r5);
|
|
71891
71896
|
}
|
|
@@ -71918,8 +71923,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71918
71923
|
s4.bitb = b4;
|
|
71919
71924
|
s4.bitk = k4;
|
|
71920
71925
|
z4.avail_in = n4;
|
|
71921
|
-
z4.total_in +=
|
|
71922
|
-
z4.next_in_index =
|
|
71926
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71927
|
+
z4.next_in_index = p15;
|
|
71923
71928
|
s4.write = q3;
|
|
71924
71929
|
return s4.inflate_flush(z4, r5);
|
|
71925
71930
|
}
|
|
@@ -71935,7 +71940,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71935
71940
|
if (k4 > 7) {
|
|
71936
71941
|
k4 -= 8;
|
|
71937
71942
|
n4++;
|
|
71938
|
-
|
|
71943
|
+
p15--;
|
|
71939
71944
|
}
|
|
71940
71945
|
s4.write = q3;
|
|
71941
71946
|
r5 = s4.inflate_flush(z4, r5);
|
|
@@ -71945,8 +71950,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71945
71950
|
s4.bitb = b4;
|
|
71946
71951
|
s4.bitk = k4;
|
|
71947
71952
|
z4.avail_in = n4;
|
|
71948
|
-
z4.total_in +=
|
|
71949
|
-
z4.next_in_index =
|
|
71953
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71954
|
+
z4.next_in_index = p15;
|
|
71950
71955
|
s4.write = q3;
|
|
71951
71956
|
return s4.inflate_flush(z4, r5);
|
|
71952
71957
|
}
|
|
@@ -71957,8 +71962,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71957
71962
|
s4.bitb = b4;
|
|
71958
71963
|
s4.bitk = k4;
|
|
71959
71964
|
z4.avail_in = n4;
|
|
71960
|
-
z4.total_in +=
|
|
71961
|
-
z4.next_in_index =
|
|
71965
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71966
|
+
z4.next_in_index = p15;
|
|
71962
71967
|
s4.write = q3;
|
|
71963
71968
|
return s4.inflate_flush(z4, r5);
|
|
71964
71969
|
case BADCODE:
|
|
@@ -71966,8 +71971,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71966
71971
|
s4.bitb = b4;
|
|
71967
71972
|
s4.bitk = k4;
|
|
71968
71973
|
z4.avail_in = n4;
|
|
71969
|
-
z4.total_in +=
|
|
71970
|
-
z4.next_in_index =
|
|
71974
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71975
|
+
z4.next_in_index = p15;
|
|
71971
71976
|
s4.write = q3;
|
|
71972
71977
|
return s4.inflate_flush(z4, r5);
|
|
71973
71978
|
default:
|
|
@@ -71975,8 +71980,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
71975
71980
|
s4.bitb = b4;
|
|
71976
71981
|
s4.bitk = k4;
|
|
71977
71982
|
z4.avail_in = n4;
|
|
71978
|
-
z4.total_in +=
|
|
71979
|
-
z4.next_in_index =
|
|
71983
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
71984
|
+
z4.next_in_index = p15;
|
|
71980
71985
|
s4.write = q3;
|
|
71981
71986
|
return s4.inflate_flush(z4, r5);
|
|
71982
71987
|
}
|
|
@@ -72051,9 +72056,9 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72051
72056
|
that.reset(z4, null);
|
|
72052
72057
|
that.inflate_flush = function(z5, r5) {
|
|
72053
72058
|
let n4;
|
|
72054
|
-
let
|
|
72059
|
+
let p15;
|
|
72055
72060
|
let q3;
|
|
72056
|
-
|
|
72061
|
+
p15 = z5.next_out_index;
|
|
72057
72062
|
q3 = that.read;
|
|
72058
72063
|
n4 = /* (int) */
|
|
72059
72064
|
(q3 <= that.write ? that.write : that.end) - q3;
|
|
@@ -72063,8 +72068,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72063
72068
|
r5 = Z_OK3;
|
|
72064
72069
|
z5.avail_out -= n4;
|
|
72065
72070
|
z5.total_out += n4;
|
|
72066
|
-
z5.next_out.set(that.win.subarray(q3, q3 + n4),
|
|
72067
|
-
|
|
72071
|
+
z5.next_out.set(that.win.subarray(q3, q3 + n4), p15);
|
|
72072
|
+
p15 += n4;
|
|
72068
72073
|
q3 += n4;
|
|
72069
72074
|
if (q3 == that.end) {
|
|
72070
72075
|
q3 = 0;
|
|
@@ -72077,11 +72082,11 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72077
72082
|
r5 = Z_OK3;
|
|
72078
72083
|
z5.avail_out -= n4;
|
|
72079
72084
|
z5.total_out += n4;
|
|
72080
|
-
z5.next_out.set(that.win.subarray(q3, q3 + n4),
|
|
72081
|
-
|
|
72085
|
+
z5.next_out.set(that.win.subarray(q3, q3 + n4), p15);
|
|
72086
|
+
p15 += n4;
|
|
72082
72087
|
q3 += n4;
|
|
72083
72088
|
}
|
|
72084
|
-
z5.next_out_index =
|
|
72089
|
+
z5.next_out_index = p15;
|
|
72085
72090
|
that.read = q3;
|
|
72086
72091
|
return r5;
|
|
72087
72092
|
};
|
|
@@ -72089,12 +72094,12 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72089
72094
|
let t5;
|
|
72090
72095
|
let b4;
|
|
72091
72096
|
let k4;
|
|
72092
|
-
let
|
|
72097
|
+
let p15;
|
|
72093
72098
|
let n4;
|
|
72094
72099
|
let q3;
|
|
72095
72100
|
let m4;
|
|
72096
72101
|
let i4;
|
|
72097
|
-
|
|
72102
|
+
p15 = z5.next_in_index;
|
|
72098
72103
|
n4 = z5.avail_in;
|
|
72099
72104
|
b4 = that.bitb;
|
|
72100
72105
|
k4 = that.bitk;
|
|
@@ -72112,13 +72117,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72112
72117
|
that.bitb = b4;
|
|
72113
72118
|
that.bitk = k4;
|
|
72114
72119
|
z5.avail_in = n4;
|
|
72115
|
-
z5.total_in +=
|
|
72116
|
-
z5.next_in_index =
|
|
72120
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72121
|
+
z5.next_in_index = p15;
|
|
72117
72122
|
that.write = q3;
|
|
72118
72123
|
return that.inflate_flush(z5, r5);
|
|
72119
72124
|
}
|
|
72120
72125
|
n4--;
|
|
72121
|
-
b4 |= (z5.read_byte(
|
|
72126
|
+
b4 |= (z5.read_byte(p15++) & 255) << k4;
|
|
72122
72127
|
k4 += 8;
|
|
72123
72128
|
}
|
|
72124
72129
|
t5 = /* (int) */
|
|
@@ -72158,8 +72163,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72158
72163
|
that.bitb = b4;
|
|
72159
72164
|
that.bitk = k4;
|
|
72160
72165
|
z5.avail_in = n4;
|
|
72161
|
-
z5.total_in +=
|
|
72162
|
-
z5.next_in_index =
|
|
72166
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72167
|
+
z5.next_in_index = p15;
|
|
72163
72168
|
that.write = q3;
|
|
72164
72169
|
return that.inflate_flush(z5, r5);
|
|
72165
72170
|
}
|
|
@@ -72172,13 +72177,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72172
72177
|
that.bitb = b4;
|
|
72173
72178
|
that.bitk = k4;
|
|
72174
72179
|
z5.avail_in = n4;
|
|
72175
|
-
z5.total_in +=
|
|
72176
|
-
z5.next_in_index =
|
|
72180
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72181
|
+
z5.next_in_index = p15;
|
|
72177
72182
|
that.write = q3;
|
|
72178
72183
|
return that.inflate_flush(z5, r5);
|
|
72179
72184
|
}
|
|
72180
72185
|
n4--;
|
|
72181
|
-
b4 |= (z5.read_byte(
|
|
72186
|
+
b4 |= (z5.read_byte(p15++) & 255) << k4;
|
|
72182
72187
|
k4 += 8;
|
|
72183
72188
|
}
|
|
72184
72189
|
if ((~b4 >>> 16 & 65535) != (b4 & 65535)) {
|
|
@@ -72188,8 +72193,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72188
72193
|
that.bitb = b4;
|
|
72189
72194
|
that.bitk = k4;
|
|
72190
72195
|
z5.avail_in = n4;
|
|
72191
|
-
z5.total_in +=
|
|
72192
|
-
z5.next_in_index =
|
|
72196
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72197
|
+
z5.next_in_index = p15;
|
|
72193
72198
|
that.write = q3;
|
|
72194
72199
|
return that.inflate_flush(z5, r5);
|
|
72195
72200
|
}
|
|
@@ -72202,8 +72207,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72202
72207
|
that.bitb = b4;
|
|
72203
72208
|
that.bitk = k4;
|
|
72204
72209
|
z5.avail_in = n4;
|
|
72205
|
-
z5.total_in +=
|
|
72206
|
-
z5.next_in_index =
|
|
72210
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72211
|
+
z5.next_in_index = p15;
|
|
72207
72212
|
that.write = q3;
|
|
72208
72213
|
return that.inflate_flush(z5, r5);
|
|
72209
72214
|
}
|
|
@@ -72228,8 +72233,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72228
72233
|
that.bitb = b4;
|
|
72229
72234
|
that.bitk = k4;
|
|
72230
72235
|
z5.avail_in = n4;
|
|
72231
|
-
z5.total_in +=
|
|
72232
|
-
z5.next_in_index =
|
|
72236
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72237
|
+
z5.next_in_index = p15;
|
|
72233
72238
|
that.write = q3;
|
|
72234
72239
|
return that.inflate_flush(z5, r5);
|
|
72235
72240
|
}
|
|
@@ -72241,8 +72246,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72241
72246
|
t5 = n4;
|
|
72242
72247
|
if (t5 > m4)
|
|
72243
72248
|
t5 = m4;
|
|
72244
|
-
that.win.set(z5.read_buf(
|
|
72245
|
-
|
|
72249
|
+
that.win.set(z5.read_buf(p15, t5), q3);
|
|
72250
|
+
p15 += t5;
|
|
72246
72251
|
n4 -= t5;
|
|
72247
72252
|
q3 += t5;
|
|
72248
72253
|
m4 -= t5;
|
|
@@ -72258,13 +72263,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72258
72263
|
that.bitb = b4;
|
|
72259
72264
|
that.bitk = k4;
|
|
72260
72265
|
z5.avail_in = n4;
|
|
72261
|
-
z5.total_in +=
|
|
72262
|
-
z5.next_in_index =
|
|
72266
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72267
|
+
z5.next_in_index = p15;
|
|
72263
72268
|
that.write = q3;
|
|
72264
72269
|
return that.inflate_flush(z5, r5);
|
|
72265
72270
|
}
|
|
72266
72271
|
n4--;
|
|
72267
|
-
b4 |= (z5.read_byte(
|
|
72272
|
+
b4 |= (z5.read_byte(p15++) & 255) << k4;
|
|
72268
72273
|
k4 += 8;
|
|
72269
72274
|
}
|
|
72270
72275
|
table3 = t5 = b4 & 16383;
|
|
@@ -72275,8 +72280,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72275
72280
|
that.bitb = b4;
|
|
72276
72281
|
that.bitk = k4;
|
|
72277
72282
|
z5.avail_in = n4;
|
|
72278
|
-
z5.total_in +=
|
|
72279
|
-
z5.next_in_index =
|
|
72283
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72284
|
+
z5.next_in_index = p15;
|
|
72280
72285
|
that.write = q3;
|
|
72281
72286
|
return that.inflate_flush(z5, r5);
|
|
72282
72287
|
}
|
|
@@ -72302,13 +72307,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72302
72307
|
that.bitb = b4;
|
|
72303
72308
|
that.bitk = k4;
|
|
72304
72309
|
z5.avail_in = n4;
|
|
72305
|
-
z5.total_in +=
|
|
72306
|
-
z5.next_in_index =
|
|
72310
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72311
|
+
z5.next_in_index = p15;
|
|
72307
72312
|
that.write = q3;
|
|
72308
72313
|
return that.inflate_flush(z5, r5);
|
|
72309
72314
|
}
|
|
72310
72315
|
n4--;
|
|
72311
|
-
b4 |= (z5.read_byte(
|
|
72316
|
+
b4 |= (z5.read_byte(p15++) & 255) << k4;
|
|
72312
72317
|
k4 += 8;
|
|
72313
72318
|
}
|
|
72314
72319
|
blens[border[index++]] = b4 & 7;
|
|
@@ -72329,8 +72334,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72329
72334
|
that.bitb = b4;
|
|
72330
72335
|
that.bitk = k4;
|
|
72331
72336
|
z5.avail_in = n4;
|
|
72332
|
-
z5.total_in +=
|
|
72333
|
-
z5.next_in_index =
|
|
72337
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72338
|
+
z5.next_in_index = p15;
|
|
72334
72339
|
that.write = q3;
|
|
72335
72340
|
return that.inflate_flush(z5, r5);
|
|
72336
72341
|
}
|
|
@@ -72352,13 +72357,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72352
72357
|
that.bitb = b4;
|
|
72353
72358
|
that.bitk = k4;
|
|
72354
72359
|
z5.avail_in = n4;
|
|
72355
|
-
z5.total_in +=
|
|
72356
|
-
z5.next_in_index =
|
|
72360
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72361
|
+
z5.next_in_index = p15;
|
|
72357
72362
|
that.write = q3;
|
|
72358
72363
|
return that.inflate_flush(z5, r5);
|
|
72359
72364
|
}
|
|
72360
72365
|
n4--;
|
|
72361
|
-
b4 |= (z5.read_byte(
|
|
72366
|
+
b4 |= (z5.read_byte(p15++) & 255) << k4;
|
|
72362
72367
|
k4 += 8;
|
|
72363
72368
|
}
|
|
72364
72369
|
t5 = hufts[(tb[0] + (b4 & inflate_mask[t5])) * 3 + 1];
|
|
@@ -72377,13 +72382,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72377
72382
|
that.bitb = b4;
|
|
72378
72383
|
that.bitk = k4;
|
|
72379
72384
|
z5.avail_in = n4;
|
|
72380
|
-
z5.total_in +=
|
|
72381
|
-
z5.next_in_index =
|
|
72385
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72386
|
+
z5.next_in_index = p15;
|
|
72382
72387
|
that.write = q3;
|
|
72383
72388
|
return that.inflate_flush(z5, r5);
|
|
72384
72389
|
}
|
|
72385
72390
|
n4--;
|
|
72386
|
-
b4 |= (z5.read_byte(
|
|
72391
|
+
b4 |= (z5.read_byte(p15++) & 255) << k4;
|
|
72387
72392
|
k4 += 8;
|
|
72388
72393
|
}
|
|
72389
72394
|
b4 >>>= t5;
|
|
@@ -72401,8 +72406,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72401
72406
|
that.bitb = b4;
|
|
72402
72407
|
that.bitk = k4;
|
|
72403
72408
|
z5.avail_in = n4;
|
|
72404
|
-
z5.total_in +=
|
|
72405
|
-
z5.next_in_index =
|
|
72409
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72410
|
+
z5.next_in_index = p15;
|
|
72406
72411
|
that.write = q3;
|
|
72407
72412
|
return that.inflate_flush(z5, r5);
|
|
72408
72413
|
}
|
|
@@ -72431,8 +72436,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72431
72436
|
that.bitb = b4;
|
|
72432
72437
|
that.bitk = k4;
|
|
72433
72438
|
z5.avail_in = n4;
|
|
72434
|
-
z5.total_in +=
|
|
72435
|
-
z5.next_in_index =
|
|
72439
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72440
|
+
z5.next_in_index = p15;
|
|
72436
72441
|
that.write = q3;
|
|
72437
72442
|
return that.inflate_flush(z5, r5);
|
|
72438
72443
|
}
|
|
@@ -72443,15 +72448,15 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72443
72448
|
that.bitb = b4;
|
|
72444
72449
|
that.bitk = k4;
|
|
72445
72450
|
z5.avail_in = n4;
|
|
72446
|
-
z5.total_in +=
|
|
72447
|
-
z5.next_in_index =
|
|
72451
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72452
|
+
z5.next_in_index = p15;
|
|
72448
72453
|
that.write = q3;
|
|
72449
72454
|
if ((r5 = codes2.proc(that, z5, r5)) != Z_STREAM_END3) {
|
|
72450
72455
|
return that.inflate_flush(z5, r5);
|
|
72451
72456
|
}
|
|
72452
72457
|
r5 = Z_OK3;
|
|
72453
72458
|
codes2.free(z5);
|
|
72454
|
-
|
|
72459
|
+
p15 = z5.next_in_index;
|
|
72455
72460
|
n4 = z5.avail_in;
|
|
72456
72461
|
b4 = that.bitb;
|
|
72457
72462
|
k4 = that.bitk;
|
|
@@ -72474,8 +72479,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72474
72479
|
that.bitb = b4;
|
|
72475
72480
|
that.bitk = k4;
|
|
72476
72481
|
z5.avail_in = n4;
|
|
72477
|
-
z5.total_in +=
|
|
72478
|
-
z5.next_in_index =
|
|
72482
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72483
|
+
z5.next_in_index = p15;
|
|
72479
72484
|
that.write = q3;
|
|
72480
72485
|
return that.inflate_flush(z5, r5);
|
|
72481
72486
|
}
|
|
@@ -72486,8 +72491,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72486
72491
|
that.bitb = b4;
|
|
72487
72492
|
that.bitk = k4;
|
|
72488
72493
|
z5.avail_in = n4;
|
|
72489
|
-
z5.total_in +=
|
|
72490
|
-
z5.next_in_index =
|
|
72494
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72495
|
+
z5.next_in_index = p15;
|
|
72491
72496
|
that.write = q3;
|
|
72492
72497
|
return that.inflate_flush(z5, r5);
|
|
72493
72498
|
case BADBLOCKS:
|
|
@@ -72495,8 +72500,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72495
72500
|
that.bitb = b4;
|
|
72496
72501
|
that.bitk = k4;
|
|
72497
72502
|
z5.avail_in = n4;
|
|
72498
|
-
z5.total_in +=
|
|
72499
|
-
z5.next_in_index =
|
|
72503
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72504
|
+
z5.next_in_index = p15;
|
|
72500
72505
|
that.write = q3;
|
|
72501
72506
|
return that.inflate_flush(z5, r5);
|
|
72502
72507
|
default:
|
|
@@ -72504,8 +72509,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72504
72509
|
that.bitb = b4;
|
|
72505
72510
|
that.bitk = k4;
|
|
72506
72511
|
z5.avail_in = n4;
|
|
72507
|
-
z5.total_in +=
|
|
72508
|
-
z5.next_in_index =
|
|
72512
|
+
z5.total_in += p15 - z5.next_in_index;
|
|
72513
|
+
z5.next_in_index = p15;
|
|
72509
72514
|
that.write = q3;
|
|
72510
72515
|
return that.inflate_flush(z5, r5);
|
|
72511
72516
|
}
|
|
@@ -72704,7 +72709,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72704
72709
|
};
|
|
72705
72710
|
that.inflateSync = function(z4) {
|
|
72706
72711
|
let n4;
|
|
72707
|
-
let
|
|
72712
|
+
let p15;
|
|
72708
72713
|
let m4;
|
|
72709
72714
|
let r5, w4;
|
|
72710
72715
|
if (!z4 || !z4.istate)
|
|
@@ -72716,21 +72721,21 @@ return ${compiler2.callType("value", tagType)}
|
|
|
72716
72721
|
}
|
|
72717
72722
|
if ((n4 = z4.avail_in) === 0)
|
|
72718
72723
|
return Z_BUF_ERROR3;
|
|
72719
|
-
|
|
72724
|
+
p15 = z4.next_in_index;
|
|
72720
72725
|
m4 = istate.marker;
|
|
72721
72726
|
while (n4 !== 0 && m4 < 4) {
|
|
72722
|
-
if (z4.read_byte(
|
|
72727
|
+
if (z4.read_byte(p15) == mark[m4]) {
|
|
72723
72728
|
m4++;
|
|
72724
|
-
} else if (z4.read_byte(
|
|
72729
|
+
} else if (z4.read_byte(p15) !== 0) {
|
|
72725
72730
|
m4 = 0;
|
|
72726
72731
|
} else {
|
|
72727
72732
|
m4 = 4 - m4;
|
|
72728
72733
|
}
|
|
72729
|
-
|
|
72734
|
+
p15++;
|
|
72730
72735
|
n4--;
|
|
72731
72736
|
}
|
|
72732
|
-
z4.total_in +=
|
|
72733
|
-
z4.next_in_index =
|
|
72737
|
+
z4.total_in += p15 - z4.next_in_index;
|
|
72738
|
+
z4.next_in_index = p15;
|
|
72734
72739
|
z4.avail_in = n4;
|
|
72735
72740
|
istate.marker = m4;
|
|
72736
72741
|
if (m4 != 4) {
|
|
@@ -77219,7 +77224,6 @@ return ${compiler2.callType("value", tagType)}
|
|
|
77219
77224
|
};
|
|
77220
77225
|
|
|
77221
77226
|
// src/assets/source/archive/ArchiveAssetSource.ts
|
|
77222
|
-
var p7 = prefix("ArchiveAssetSource");
|
|
77223
77227
|
var ArchiveAssetSource = class _ArchiveAssetSource extends AssetSource {
|
|
77224
77228
|
constructor(archiveProxy) {
|
|
77225
77229
|
super();
|
|
@@ -77238,74 +77242,31 @@ return ${compiler2.callType("value", tagType)}
|
|
|
77238
77242
|
}
|
|
77239
77243
|
async get(key, parser) {
|
|
77240
77244
|
const responseParser = HostedAssetSource.PARSER_MAP.get(parser);
|
|
77241
|
-
|
|
77242
|
-
let entries = await this.getEntries();
|
|
77243
|
-
const path = `${this.assetBasePath(key)}${key.type !== void 0 ? key.type + "/" : ""}${key.path}${key.extension}`;
|
|
77244
|
-
console.log(path);
|
|
77245
|
-
const entry = await this.getEntry(path);
|
|
77246
|
-
console.log(entry);
|
|
77247
|
-
if (!entry) {
|
|
77248
|
-
return void 0;
|
|
77249
|
-
}
|
|
77250
|
-
let blob = await entry.getData();
|
|
77251
|
-
const url = URL.createObjectURL(blob);
|
|
77252
|
-
console.log(url);
|
|
77253
|
-
let req = {
|
|
77254
|
-
url
|
|
77255
|
-
};
|
|
77256
|
-
responseParser.config(req);
|
|
77257
|
-
return Requests.genericRequest(req).then((response) => {
|
|
77258
|
-
if (response && response.data) {
|
|
77259
|
-
try {
|
|
77260
|
-
return responseParser.parse(response);
|
|
77261
|
-
} catch (e6) {
|
|
77262
|
-
console.warn("Parser failed to process response", response, e6);
|
|
77263
|
-
throw e6;
|
|
77264
|
-
}
|
|
77265
|
-
}
|
|
77266
|
-
return void 0;
|
|
77267
|
-
}).catch((err) => {
|
|
77268
|
-
if (err.response) {
|
|
77269
|
-
let response = err.response;
|
|
77270
|
-
if (response.status === 404) {
|
|
77271
|
-
console.debug(p7, key, "not found");
|
|
77272
|
-
return void 0;
|
|
77273
|
-
}
|
|
77274
|
-
}
|
|
77275
|
-
console.debug(p7, "Failed to load", key, err?.message);
|
|
77276
|
-
return void 0;
|
|
77277
|
-
});
|
|
77245
|
+
return this.load(key, responseParser);
|
|
77278
77246
|
}
|
|
77279
|
-
//TODO: abstract this
|
|
77280
77247
|
async load(key, parser) {
|
|
77281
|
-
|
|
77282
|
-
|
|
77283
|
-
|
|
77284
|
-
|
|
77285
|
-
|
|
77286
|
-
|
|
77287
|
-
parser.config(req);
|
|
77288
|
-
return await Requests.genericRequest(req).then((response) => {
|
|
77289
|
-
if (response && response.data) {
|
|
77290
|
-
try {
|
|
77291
|
-
return parser.parse(response);
|
|
77292
|
-
} catch (e6) {
|
|
77293
|
-
console.warn("Parser failed to process response", response, e6);
|
|
77294
|
-
throw e6;
|
|
77295
|
-
}
|
|
77248
|
+
const path = `${this.assetBasePath(key)}${key.type !== void 0 ? key.type + "/" : ""}${key.path}${key.extension}`;
|
|
77249
|
+
let url;
|
|
77250
|
+
try {
|
|
77251
|
+
const entry = await this.getEntry(path);
|
|
77252
|
+
if (!entry) {
|
|
77253
|
+
return void 0;
|
|
77296
77254
|
}
|
|
77297
|
-
|
|
77298
|
-
|
|
77299
|
-
|
|
77300
|
-
|
|
77301
|
-
|
|
77302
|
-
|
|
77303
|
-
return void 0;
|
|
77304
|
-
}
|
|
77255
|
+
url = URL.createObjectURL(await entry.getData());
|
|
77256
|
+
const request = { url };
|
|
77257
|
+
parser.config(request);
|
|
77258
|
+
const response = await Requests.genericRequest(request);
|
|
77259
|
+
if (response.data === void 0) {
|
|
77260
|
+
throw new Error("Asset response has no data");
|
|
77305
77261
|
}
|
|
77306
|
-
|
|
77307
|
-
|
|
77308
|
-
|
|
77262
|
+
return await parser.parse(response);
|
|
77263
|
+
} catch (cause) {
|
|
77264
|
+
throw new AssetLoadError(this, key, path, cause);
|
|
77265
|
+
} finally {
|
|
77266
|
+
if (url !== void 0) {
|
|
77267
|
+
URL.revokeObjectURL(url);
|
|
77268
|
+
}
|
|
77269
|
+
}
|
|
77309
77270
|
}
|
|
77310
77271
|
assetBasePath(key) {
|
|
77311
77272
|
return `${key.rootType !== void 0 ? key.rootType + "/" : ""}${key.namespace !== void 0 ? key.namespace + "/" : ""}${key.assetType !== void 0 ? key.assetType + "/" : ""}`;
|
|
@@ -77323,17 +77284,17 @@ return ${compiler2.callType("value", tagType)}
|
|
|
77323
77284
|
init_process2();
|
|
77324
77285
|
|
|
77325
77286
|
// src/assets/AssetLoader.ts
|
|
77326
|
-
var
|
|
77287
|
+
var p7 = prefix("AssetLoader");
|
|
77327
77288
|
var _AssetLoader = class _AssetLoader {
|
|
77328
77289
|
static addSource(key, source, override = true) {
|
|
77329
77290
|
if (override) {
|
|
77330
77291
|
const existing = this.removeSource(key);
|
|
77331
77292
|
if (existing) {
|
|
77332
|
-
console.log(
|
|
77293
|
+
console.log(p7, "Removed existing AssetSource", key);
|
|
77333
77294
|
}
|
|
77334
77295
|
}
|
|
77335
77296
|
this._SOURCES.unshift({ key, source });
|
|
77336
|
-
console.log(
|
|
77297
|
+
console.log(p7, "Added AssetSource", key);
|
|
77337
77298
|
}
|
|
77338
77299
|
static removeSource(key) {
|
|
77339
77300
|
const index = this._SOURCES.findIndex((s4) => s4.key === key);
|
|
@@ -77597,7 +77558,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
77597
77558
|
ModelGenerator.ITEM_LAYERS = ["layer0", "layer1", "layer2", "layer3", "layer4"];
|
|
77598
77559
|
|
|
77599
77560
|
// src/UVMapper.ts
|
|
77600
|
-
var
|
|
77561
|
+
var p8 = prefix("UVMapper");
|
|
77601
77562
|
var DEFAULT_UV = [0, 0, 16, 16];
|
|
77602
77563
|
var X3 = 0;
|
|
77603
77564
|
var Y4 = 1;
|
|
@@ -77774,7 +77735,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
77774
77735
|
const metaMap = {};
|
|
77775
77736
|
const model = { ...originalModel };
|
|
77776
77737
|
const isItemModel = !("elements" in model);
|
|
77777
|
-
console.debug(
|
|
77738
|
+
console.debug(p8, "Creating Atlas for", model.key);
|
|
77778
77739
|
if (model.textures) {
|
|
77779
77740
|
const promises = [];
|
|
77780
77741
|
const uniqueTextureNames = [];
|
|
@@ -77788,7 +77749,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
77788
77749
|
const assetKey = AssetKey.parse("textures", textureValue, model.key);
|
|
77789
77750
|
promises.push(ModelTextures.get(assetKey).then((asset) => {
|
|
77790
77751
|
if (!asset) {
|
|
77791
|
-
console.warn(
|
|
77752
|
+
console.warn(p8, "Missing texture", assetKey);
|
|
77792
77753
|
return;
|
|
77793
77754
|
}
|
|
77794
77755
|
textureMap[textureKey] = new WrappedImage(asset);
|
|
@@ -77800,7 +77761,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
77800
77761
|
}
|
|
77801
77762
|
await Promise.all(promises);
|
|
77802
77763
|
const textureCount = uniqueTextureNames.length;
|
|
77803
|
-
console.debug(
|
|
77764
|
+
console.debug(p8, "Creating Atlas for", textureCount, "textures");
|
|
77804
77765
|
this.fillMissingTextureKeys(model.textures, textureMap);
|
|
77805
77766
|
this.fillMissingTextureKeys(model.textures, metaMap);
|
|
77806
77767
|
const sizes = {};
|
|
@@ -77820,7 +77781,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
77820
77781
|
this.fillMissingTextureKeys(model.textures, sizes);
|
|
77821
77782
|
const s4 = Math.ceil(Math.sqrt(textureCount + 1));
|
|
77822
77783
|
const size = Math.ceil(s4 * maxWidth);
|
|
77823
|
-
console.debug(
|
|
77784
|
+
console.debug(p8, "Atlas size:", size);
|
|
77824
77785
|
const squaredSize = size * size;
|
|
77825
77786
|
const missing = await ImageLoader.getData("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX/AP8AAACfphTyAAAAFUlEQVQoz2MIhQKGVVAwKjIqQrwIAHRz/wFI17TEAAAAAElFTkSuQmCC");
|
|
77826
77787
|
const empty = await ImageLoader.getData("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAA5JREFUKM9jGAWjgAIAAAJAAAFSSwuTAAAAAElFTkSuQmCC");
|
|
@@ -77875,10 +77836,10 @@ return ${compiler2.callType("value", tagType)}
|
|
|
77875
77836
|
}
|
|
77876
77837
|
}
|
|
77877
77838
|
const atlasImageData = image.toDataURL();
|
|
77878
|
-
console.log(
|
|
77839
|
+
console.log(p8, "Atlas Image for", model.key, atlasImageData);
|
|
77879
77840
|
this.fillMissingTextureKeys(model.textures, positions);
|
|
77880
77841
|
if (isItemModel) {
|
|
77881
|
-
console.debug(
|
|
77842
|
+
console.debug(p8, "Generating item model for", model);
|
|
77882
77843
|
model.elements = [];
|
|
77883
77844
|
for (let layerName of ModelGenerator.ITEM_LAYERS) {
|
|
77884
77845
|
const textureImage = textureMap[layerName];
|
|
@@ -77886,7 +77847,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
77886
77847
|
model.elements.push(...ModelGenerator.generateItemModel(textureImage.data, layerName));
|
|
77887
77848
|
}
|
|
77888
77849
|
}
|
|
77889
|
-
console.debug(
|
|
77850
|
+
console.debug(p8, "Item model elements", model.elements);
|
|
77890
77851
|
}
|
|
77891
77852
|
if (!model.elements) {
|
|
77892
77853
|
}
|
|
@@ -77946,7 +77907,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
77946
77907
|
hasTransparency
|
|
77947
77908
|
);
|
|
77948
77909
|
} else {
|
|
77949
|
-
console.warn(
|
|
77910
|
+
console.warn(p8, "Model does not have any textures", model);
|
|
77950
77911
|
}
|
|
77951
77912
|
return void 0;
|
|
77952
77913
|
}
|
|
@@ -78300,7 +78261,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
78300
78261
|
|
|
78301
78262
|
// src/renderer/SceneObject.ts
|
|
78302
78263
|
var import_ts_deepmerge3 = __toESM(require_dist());
|
|
78303
|
-
var
|
|
78264
|
+
var p9 = prefix("SceneObject");
|
|
78304
78265
|
var _SceneObject = class _SceneObject extends Object3D {
|
|
78305
78266
|
constructor(options) {
|
|
78306
78267
|
super();
|
|
@@ -78479,9 +78440,9 @@ return ${compiler2.callType("value", tagType)}
|
|
|
78479
78440
|
if (!this.isInstanced) throw new MineRenderError("Object is not instanced");
|
|
78480
78441
|
const i4 = this._instanceCounter++;
|
|
78481
78442
|
this.setMatrixAt(i4, new Matrix4());
|
|
78482
|
-
console.debug(
|
|
78443
|
+
console.debug(p9, "nextInstance " + i4);
|
|
78483
78444
|
if (i4 === this.options.maxInstanceCount) {
|
|
78484
|
-
console.warn(
|
|
78445
|
+
console.warn(p9, "Max instance count reached for " + this);
|
|
78485
78446
|
}
|
|
78486
78447
|
if (this.scene) {
|
|
78487
78448
|
this.scene.stats.instanceCount++;
|
|
@@ -78786,7 +78747,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
78786
78747
|
init_dirname();
|
|
78787
78748
|
init_buffer2();
|
|
78788
78749
|
init_process2();
|
|
78789
|
-
var
|
|
78750
|
+
var p10 = prefix("SceneInspector");
|
|
78790
78751
|
var help = "<span>Ctrl+Click to Select<br/></span><br/>";
|
|
78791
78752
|
var SceneInspector = class {
|
|
78792
78753
|
constructor(renderer) {
|
|
@@ -78855,7 +78816,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
78855
78816
|
}
|
|
78856
78817
|
selectObject(targetObject, targetIntersection) {
|
|
78857
78818
|
this.selectedObject = targetObject;
|
|
78858
|
-
console.log(
|
|
78819
|
+
console.log(p10, "selected", targetObject);
|
|
78859
78820
|
this.redraw(targetObject, targetIntersection);
|
|
78860
78821
|
}
|
|
78861
78822
|
redraw(targetObject, targetIntersection) {
|
|
@@ -79164,7 +79125,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
79164
79125
|
init_dirname();
|
|
79165
79126
|
init_buffer2();
|
|
79166
79127
|
init_process2();
|
|
79167
|
-
var
|
|
79128
|
+
var p11 = prefix("InstanceManager");
|
|
79168
79129
|
var InstanceManager = class {
|
|
79169
79130
|
constructor() {
|
|
79170
79131
|
this.isInstanceManager = true;
|
|
@@ -79172,7 +79133,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
79172
79133
|
}
|
|
79173
79134
|
async get(key) {
|
|
79174
79135
|
if (key in this.instanceCache) {
|
|
79175
|
-
console.debug(
|
|
79136
|
+
console.debug(p11, "key in cache", key);
|
|
79176
79137
|
return (await this.instanceCache[key]).nextInstance();
|
|
79177
79138
|
}
|
|
79178
79139
|
return void 0;
|
|
@@ -79181,13 +79142,17 @@ return ${compiler2.callType("value", tagType)}
|
|
|
79181
79142
|
if (key in this.instanceCache) {
|
|
79182
79143
|
return await this.get(key);
|
|
79183
79144
|
}
|
|
79184
|
-
console.debug(
|
|
79185
|
-
|
|
79186
|
-
|
|
79187
|
-
|
|
79188
|
-
|
|
79189
|
-
})
|
|
79190
|
-
|
|
79145
|
+
console.debug(p11, "key not in cache", key);
|
|
79146
|
+
const pending = Promise.resolve().then(supplier).then((obj) => obj.nextInstance());
|
|
79147
|
+
this.instanceCache[key] = pending;
|
|
79148
|
+
try {
|
|
79149
|
+
return await pending;
|
|
79150
|
+
} catch (error) {
|
|
79151
|
+
if (this.instanceCache[key] === pending) {
|
|
79152
|
+
delete this.instanceCache[key];
|
|
79153
|
+
}
|
|
79154
|
+
throw error;
|
|
79155
|
+
}
|
|
79191
79156
|
}
|
|
79192
79157
|
reset() {
|
|
79193
79158
|
for (let instanceCacheKey in this.instanceCache) {
|
|
@@ -79843,7 +79808,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
79843
79808
|
|
|
79844
79809
|
// src/model/scene/ModelObject.ts
|
|
79845
79810
|
var import_ts_deepmerge5 = __toESM(require_dist());
|
|
79846
|
-
var
|
|
79811
|
+
var p12 = prefix("ModelObject");
|
|
79847
79812
|
var _ModelObject = class _ModelObject extends SceneObject {
|
|
79848
79813
|
constructor(originalModel, options) {
|
|
79849
79814
|
super(options);
|
|
@@ -79893,10 +79858,10 @@ return ${compiler2.callType("value", tagType)}
|
|
|
79893
79858
|
}
|
|
79894
79859
|
});
|
|
79895
79860
|
} else {
|
|
79896
|
-
console.debug(
|
|
79861
|
+
console.debug(p12, this.atlas.model, "has no elements");
|
|
79897
79862
|
}
|
|
79898
79863
|
} else {
|
|
79899
|
-
console.debug(
|
|
79864
|
+
console.debug(p12, "Missing atlas for", this);
|
|
79900
79865
|
}
|
|
79901
79866
|
if (this.options.mergeMeshes) {
|
|
79902
79867
|
let combinedGeo;
|
|
@@ -79956,7 +79921,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
79956
79921
|
|
|
79957
79922
|
// src/model/block/scene/BlockObject.ts
|
|
79958
79923
|
var import_ts_deepmerge6 = __toESM(require_dist());
|
|
79959
|
-
var
|
|
79924
|
+
var p13 = prefix("BlockObject");
|
|
79960
79925
|
var _BlockObject = class _BlockObject extends SceneObject {
|
|
79961
79926
|
constructor(blockState, options) {
|
|
79962
79927
|
super(options);
|
|
@@ -79974,7 +79939,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
79974
79939
|
}
|
|
79975
79940
|
async init() {
|
|
79976
79941
|
if (this.options.applyDefaultState) {
|
|
79977
|
-
const defaultState = this.blockState.key ? BlockStates.getDefaultState(this.blockState.key) : void 0;
|
|
79942
|
+
const defaultState = this.blockState.key ? await BlockStates.getDefaultState(this.blockState.key) : void 0;
|
|
79978
79943
|
if (defaultState && Object.keys(defaultState).length > 0) {
|
|
79979
79944
|
const state = {};
|
|
79980
79945
|
for (let k4 in defaultState) {
|
|
@@ -80050,7 +80015,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80050
80015
|
} else if (this.blockState.multipart) {
|
|
80051
80016
|
for (let part of this.blockState.multipart) {
|
|
80052
80017
|
if (!part.apply) {
|
|
80053
|
-
console.debug(
|
|
80018
|
+
console.debug(p13, "Missing apply for blockState part", part);
|
|
80054
80019
|
continue;
|
|
80055
80020
|
}
|
|
80056
80021
|
if (!part.when) {
|
|
@@ -83070,8 +83035,8 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
83070
83035
|
[bilinear(1, 1, 1, 0), new Float32Array([1, 1, 1, 0])],
|
|
83071
83036
|
[bilinear(1, 1, 1, 1), new Float32Array([1, 1, 1, 1])]
|
|
83072
83037
|
]);
|
|
83073
|
-
function lerp2(a4, b4,
|
|
83074
|
-
return a4 + (b4 - a4) *
|
|
83038
|
+
function lerp2(a4, b4, p15) {
|
|
83039
|
+
return a4 + (b4 - a4) * p15;
|
|
83075
83040
|
}
|
|
83076
83041
|
function bilinear(e0, e1, e22, e32) {
|
|
83077
83042
|
const a4 = lerp2(e0, e1, 1 - 0.25);
|
|
@@ -84361,7 +84326,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
84361
84326
|
};
|
|
84362
84327
|
|
|
84363
84328
|
// src/world/Chunk.ts
|
|
84364
|
-
var
|
|
84329
|
+
var p14 = prefix("Chunk");
|
|
84365
84330
|
var Chunk = class _Chunk {
|
|
84366
84331
|
constructor(scene, x4, y5, z4) {
|
|
84367
84332
|
this._blocks = [];
|
|
@@ -84413,7 +84378,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
84413
84378
|
const index = _Chunk.chunkPosToBlockIndex(pos);
|
|
84414
84379
|
const current = this._blocks[index];
|
|
84415
84380
|
if (typeof current !== "undefined") {
|
|
84416
|
-
console.debug(
|
|
84381
|
+
console.debug(p14, "deleting existing block at", pos, worldPos, index);
|
|
84417
84382
|
current.object.removeFromScene();
|
|
84418
84383
|
delete this._blocks[index];
|
|
84419
84384
|
}
|