minerender 2.1.0-alpha.118 → 2.1.0-alpha.119
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 +13 -1
- package/dist/browser/index.d.ts +13 -1
- package/dist/browser/index.js +165 -68
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +165 -68
- package/dist/browser/index.mjs.map +1 -1
- package/dist/bundle.js +618 -518
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.d.mts +8 -1
- package/dist/node/index.d.ts +8 -1
- package/dist/node/index.js +79 -0
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +76 -0
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -3050,7 +3050,7 @@ var MineRender = (() => {
|
|
|
3050
3050
|
var bufferLength = serializedString.length * 0.75;
|
|
3051
3051
|
var len = serializedString.length;
|
|
3052
3052
|
var i4;
|
|
3053
|
-
var
|
|
3053
|
+
var p14 = 0;
|
|
3054
3054
|
var encoded1, encoded2, encoded3, encoded4;
|
|
3055
3055
|
if (serializedString[serializedString.length - 1] === "=") {
|
|
3056
3056
|
bufferLength--;
|
|
@@ -3065,9 +3065,9 @@ var MineRender = (() => {
|
|
|
3065
3065
|
encoded2 = BASE_CHARS.indexOf(serializedString[i4 + 1]);
|
|
3066
3066
|
encoded3 = BASE_CHARS.indexOf(serializedString[i4 + 2]);
|
|
3067
3067
|
encoded4 = BASE_CHARS.indexOf(serializedString[i4 + 3]);
|
|
3068
|
-
bytes[
|
|
3069
|
-
bytes[
|
|
3070
|
-
bytes[
|
|
3068
|
+
bytes[p14++] = encoded1 << 2 | encoded2 >> 4;
|
|
3069
|
+
bytes[p14++] = (encoded2 & 15) << 4 | encoded3 >> 2;
|
|
3070
|
+
bytes[p14++] = (encoded3 & 3) << 6 | encoded4 & 63;
|
|
3071
3071
|
}
|
|
3072
3072
|
return buffer2;
|
|
3073
3073
|
}
|
|
@@ -4078,6 +4078,22 @@ var MineRender = (() => {
|
|
|
4078
4078
|
}
|
|
4079
4079
|
});
|
|
4080
4080
|
|
|
4081
|
+
// src/util/log.ts
|
|
4082
|
+
function prefix(prefix2) {
|
|
4083
|
+
return `${FgGreen}MR${BgBlack}${prefix2 ?? ""}${Reset}`;
|
|
4084
|
+
}
|
|
4085
|
+
var Reset, FgGreen, BgBlack;
|
|
4086
|
+
var init_log = __esm({
|
|
4087
|
+
"src/util/log.ts"() {
|
|
4088
|
+
init_dirname();
|
|
4089
|
+
init_buffer2();
|
|
4090
|
+
init_process2();
|
|
4091
|
+
Reset = "\x1B[0m";
|
|
4092
|
+
FgGreen = "\x1B[32m";
|
|
4093
|
+
BgBlack = "\x1B[40m";
|
|
4094
|
+
}
|
|
4095
|
+
});
|
|
4096
|
+
|
|
4081
4097
|
// ../../node_modules/three/build/three.core.js
|
|
4082
4098
|
function arrayNeedsUint32(array) {
|
|
4083
4099
|
for (let i4 = array.length - 1; i4 >= 0; --i4) {
|
|
@@ -4453,13 +4469,13 @@ var MineRender = (() => {
|
|
|
4453
4469
|
}
|
|
4454
4470
|
}
|
|
4455
4471
|
}
|
|
4456
|
-
function hue2rgb(
|
|
4472
|
+
function hue2rgb(p14, q3, t5) {
|
|
4457
4473
|
if (t5 < 0) t5 += 1;
|
|
4458
4474
|
if (t5 > 1) t5 -= 1;
|
|
4459
|
-
if (t5 < 1 / 6) return
|
|
4475
|
+
if (t5 < 1 / 6) return p14 + (q3 - p14) * 6 * t5;
|
|
4460
4476
|
if (t5 < 1 / 2) return q3;
|
|
4461
|
-
if (t5 < 2 / 3) return
|
|
4462
|
-
return
|
|
4477
|
+
if (t5 < 2 / 3) return p14 + (q3 - p14) * 6 * (2 / 3 - t5);
|
|
4478
|
+
return p14;
|
|
4463
4479
|
}
|
|
4464
4480
|
function satForAxes(axes, v0, v1, v22, extents) {
|
|
4465
4481
|
for (let i4 = 0, j4 = axes.length - 3; i4 <= j4; i4 += 3) {
|
|
@@ -4550,14 +4566,14 @@ var MineRender = (() => {
|
|
|
4550
4566
|
const dst = {};
|
|
4551
4567
|
for (const u4 in src) {
|
|
4552
4568
|
dst[u4] = {};
|
|
4553
|
-
for (const
|
|
4554
|
-
const property = src[u4][
|
|
4569
|
+
for (const p14 in src[u4]) {
|
|
4570
|
+
const property = src[u4][p14];
|
|
4555
4571
|
if (isThreeObject(property)) {
|
|
4556
4572
|
if (property.isRenderTargetTexture) {
|
|
4557
4573
|
warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms().");
|
|
4558
|
-
dst[u4][
|
|
4574
|
+
dst[u4][p14] = null;
|
|
4559
4575
|
} else {
|
|
4560
|
-
dst[u4][
|
|
4576
|
+
dst[u4][p14] = property.clone();
|
|
4561
4577
|
}
|
|
4562
4578
|
} else if (Array.isArray(property)) {
|
|
4563
4579
|
if (isThreeObject(property[0])) {
|
|
@@ -4565,12 +4581,12 @@ var MineRender = (() => {
|
|
|
4565
4581
|
for (let i4 = 0, l4 = property.length; i4 < l4; i4++) {
|
|
4566
4582
|
clonedProperty[i4] = property[i4].clone();
|
|
4567
4583
|
}
|
|
4568
|
-
dst[u4][
|
|
4584
|
+
dst[u4][p14] = clonedProperty;
|
|
4569
4585
|
} else {
|
|
4570
|
-
dst[u4][
|
|
4586
|
+
dst[u4][p14] = property.slice();
|
|
4571
4587
|
}
|
|
4572
4588
|
} else {
|
|
4573
|
-
dst[u4][
|
|
4589
|
+
dst[u4][p14] = property;
|
|
4574
4590
|
}
|
|
4575
4591
|
}
|
|
4576
4592
|
}
|
|
@@ -4580,8 +4596,8 @@ var MineRender = (() => {
|
|
|
4580
4596
|
const merged = {};
|
|
4581
4597
|
for (let u4 = 0; u4 < uniforms.length; u4++) {
|
|
4582
4598
|
const tmp = cloneUniforms(uniforms[u4]);
|
|
4583
|
-
for (const
|
|
4584
|
-
merged[
|
|
4599
|
+
for (const p14 in tmp) {
|
|
4600
|
+
merged[p14] = tmp[p14];
|
|
4585
4601
|
}
|
|
4586
4602
|
}
|
|
4587
4603
|
return merged;
|
|
@@ -12402,11 +12418,11 @@ var MineRender = (() => {
|
|
|
12402
12418
|
if (s4 === 0) {
|
|
12403
12419
|
this.r = this.g = this.b = l4;
|
|
12404
12420
|
} else {
|
|
12405
|
-
const
|
|
12406
|
-
const q3 = 2 * l4 -
|
|
12407
|
-
this.r = hue2rgb(q3,
|
|
12408
|
-
this.g = hue2rgb(q3,
|
|
12409
|
-
this.b = hue2rgb(q3,
|
|
12421
|
+
const p14 = l4 <= 0.5 ? l4 * (1 + s4) : l4 + s4 - l4 * s4;
|
|
12422
|
+
const q3 = 2 * l4 - p14;
|
|
12423
|
+
this.r = hue2rgb(q3, p14, h5 + 1 / 3);
|
|
12424
|
+
this.g = hue2rgb(q3, p14, h5);
|
|
12425
|
+
this.b = hue2rgb(q3, p14, h5 - 1 / 3);
|
|
12410
12426
|
}
|
|
12411
12427
|
ColorManagement.colorSpaceToWorking(this, colorSpace);
|
|
12412
12428
|
return this;
|
|
@@ -13258,18 +13274,18 @@ var MineRender = (() => {
|
|
|
13258
13274
|
* @param {Vector3} target - The target vector that is used to store the method's result.
|
|
13259
13275
|
* @return {Vector3} The closest point on the triangle.
|
|
13260
13276
|
*/
|
|
13261
|
-
closestPointToPoint(
|
|
13277
|
+
closestPointToPoint(p14, target) {
|
|
13262
13278
|
const a4 = this.a, b4 = this.b, c4 = this.c;
|
|
13263
13279
|
let v5, w4;
|
|
13264
13280
|
_vab.subVectors(b4, a4);
|
|
13265
13281
|
_vac.subVectors(c4, a4);
|
|
13266
|
-
_vap.subVectors(
|
|
13282
|
+
_vap.subVectors(p14, a4);
|
|
13267
13283
|
const d1 = _vab.dot(_vap);
|
|
13268
13284
|
const d22 = _vac.dot(_vap);
|
|
13269
13285
|
if (d1 <= 0 && d22 <= 0) {
|
|
13270
13286
|
return target.copy(a4);
|
|
13271
13287
|
}
|
|
13272
|
-
_vbp.subVectors(
|
|
13288
|
+
_vbp.subVectors(p14, b4);
|
|
13273
13289
|
const d32 = _vab.dot(_vbp);
|
|
13274
13290
|
const d4 = _vac.dot(_vbp);
|
|
13275
13291
|
if (d32 >= 0 && d4 <= d32) {
|
|
@@ -13280,7 +13296,7 @@ var MineRender = (() => {
|
|
|
13280
13296
|
v5 = d1 / (d1 - d32);
|
|
13281
13297
|
return target.copy(a4).addScaledVector(_vab, v5);
|
|
13282
13298
|
}
|
|
13283
|
-
_vcp.subVectors(
|
|
13299
|
+
_vcp.subVectors(p14, c4);
|
|
13284
13300
|
const d5 = _vab.dot(_vcp);
|
|
13285
13301
|
const d6 = _vac.dot(_vcp);
|
|
13286
13302
|
if (d6 >= 0 && d5 <= d6) {
|
|
@@ -19048,10 +19064,10 @@ var MineRender = (() => {
|
|
|
19048
19064
|
this._offsetNext = iNext * stride;
|
|
19049
19065
|
}
|
|
19050
19066
|
interpolate_(i1, t0, t5, t1) {
|
|
19051
|
-
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,
|
|
19052
|
-
const sP = -wP * ppp + 2 * wP * pp - wP *
|
|
19053
|
-
const s0 = (1 + wP) * ppp + (-1.5 - 2 * wP) * pp + (-0.5 + wP) *
|
|
19054
|
-
const s1 = (-1 - wN) * ppp + (1.5 + wN) * pp + 0.5 *
|
|
19067
|
+
const result = this.resultBuffer, values = this.sampleValues, stride = this.valueSize, o1 = i1 * stride, o0 = o1 - stride, oP = this._offsetPrev, oN = this._offsetNext, wP = this._weightPrev, wN = this._weightNext, p14 = (t5 - t0) / (t1 - t0), pp = p14 * p14, ppp = pp * p14;
|
|
19068
|
+
const sP = -wP * ppp + 2 * wP * pp - wP * p14;
|
|
19069
|
+
const s0 = (1 + wP) * ppp + (-1.5 - 2 * wP) * pp + (-0.5 + wP) * p14 + 1;
|
|
19070
|
+
const s1 = (-1 - wN) * ppp + (1.5 + wN) * pp + 0.5 * p14;
|
|
19055
19071
|
const sN = wN * ppp - wN * pp;
|
|
19056
19072
|
for (let i4 = 0; i4 !== stride; ++i4) {
|
|
19057
19073
|
result[i4] = sP * values[oP + i4] + s0 * values[o0 + i4] + s1 * values[o1 + i4] + sN * values[oN + i4];
|
|
@@ -28155,122 +28171,122 @@ var MineRender = (() => {
|
|
|
28155
28171
|
};
|
|
28156
28172
|
}
|
|
28157
28173
|
function WebGLUtils(gl, extensions) {
|
|
28158
|
-
function convert(
|
|
28174
|
+
function convert(p14, colorSpace = NoColorSpace) {
|
|
28159
28175
|
let extension;
|
|
28160
28176
|
const transfer = ColorManagement.getTransfer(colorSpace);
|
|
28161
|
-
if (
|
|
28162
|
-
if (
|
|
28163
|
-
if (
|
|
28164
|
-
if (
|
|
28165
|
-
if (
|
|
28166
|
-
if (
|
|
28167
|
-
if (
|
|
28168
|
-
if (
|
|
28169
|
-
if (
|
|
28170
|
-
if (
|
|
28171
|
-
if (
|
|
28172
|
-
if (
|
|
28173
|
-
if (
|
|
28174
|
-
if (
|
|
28175
|
-
if (
|
|
28176
|
-
if (
|
|
28177
|
-
if (
|
|
28178
|
-
if (
|
|
28179
|
-
if (
|
|
28180
|
-
if (
|
|
28181
|
-
if (
|
|
28182
|
-
if (
|
|
28183
|
-
if (
|
|
28177
|
+
if (p14 === UnsignedByteType) return gl.UNSIGNED_BYTE;
|
|
28178
|
+
if (p14 === UnsignedShort4444Type) return gl.UNSIGNED_SHORT_4_4_4_4;
|
|
28179
|
+
if (p14 === UnsignedShort5551Type) return gl.UNSIGNED_SHORT_5_5_5_1;
|
|
28180
|
+
if (p14 === UnsignedInt5999Type) return gl.UNSIGNED_INT_5_9_9_9_REV;
|
|
28181
|
+
if (p14 === UnsignedInt101111Type) return gl.UNSIGNED_INT_10F_11F_11F_REV;
|
|
28182
|
+
if (p14 === ByteType) return gl.BYTE;
|
|
28183
|
+
if (p14 === ShortType) return gl.SHORT;
|
|
28184
|
+
if (p14 === UnsignedShortType) return gl.UNSIGNED_SHORT;
|
|
28185
|
+
if (p14 === IntType) return gl.INT;
|
|
28186
|
+
if (p14 === UnsignedIntType) return gl.UNSIGNED_INT;
|
|
28187
|
+
if (p14 === FloatType) return gl.FLOAT;
|
|
28188
|
+
if (p14 === HalfFloatType) return gl.HALF_FLOAT;
|
|
28189
|
+
if (p14 === AlphaFormat) return gl.ALPHA;
|
|
28190
|
+
if (p14 === RGBFormat) return gl.RGB;
|
|
28191
|
+
if (p14 === RGBAFormat) return gl.RGBA;
|
|
28192
|
+
if (p14 === DepthFormat) return gl.DEPTH_COMPONENT;
|
|
28193
|
+
if (p14 === DepthStencilFormat) return gl.DEPTH_STENCIL;
|
|
28194
|
+
if (p14 === RedFormat) return gl.RED;
|
|
28195
|
+
if (p14 === RedIntegerFormat) return gl.RED_INTEGER;
|
|
28196
|
+
if (p14 === RGFormat) return gl.RG;
|
|
28197
|
+
if (p14 === RGIntegerFormat) return gl.RG_INTEGER;
|
|
28198
|
+
if (p14 === RGBAIntegerFormat) return gl.RGBA_INTEGER;
|
|
28199
|
+
if (p14 === RGB_S3TC_DXT1_Format || p14 === RGBA_S3TC_DXT1_Format || p14 === RGBA_S3TC_DXT3_Format || p14 === RGBA_S3TC_DXT5_Format) {
|
|
28184
28200
|
if (transfer === SRGBTransfer) {
|
|
28185
28201
|
extension = extensions.get("WEBGL_compressed_texture_s3tc_srgb");
|
|
28186
28202
|
if (extension !== null) {
|
|
28187
|
-
if (
|
|
28188
|
-
if (
|
|
28189
|
-
if (
|
|
28190
|
-
if (
|
|
28203
|
+
if (p14 === RGB_S3TC_DXT1_Format) return extension.COMPRESSED_SRGB_S3TC_DXT1_EXT;
|
|
28204
|
+
if (p14 === RGBA_S3TC_DXT1_Format) return extension.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;
|
|
28205
|
+
if (p14 === RGBA_S3TC_DXT3_Format) return extension.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;
|
|
28206
|
+
if (p14 === RGBA_S3TC_DXT5_Format) return extension.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;
|
|
28191
28207
|
} else {
|
|
28192
28208
|
return null;
|
|
28193
28209
|
}
|
|
28194
28210
|
} else {
|
|
28195
28211
|
extension = extensions.get("WEBGL_compressed_texture_s3tc");
|
|
28196
28212
|
if (extension !== null) {
|
|
28197
|
-
if (
|
|
28198
|
-
if (
|
|
28199
|
-
if (
|
|
28200
|
-
if (
|
|
28213
|
+
if (p14 === RGB_S3TC_DXT1_Format) return extension.COMPRESSED_RGB_S3TC_DXT1_EXT;
|
|
28214
|
+
if (p14 === RGBA_S3TC_DXT1_Format) return extension.COMPRESSED_RGBA_S3TC_DXT1_EXT;
|
|
28215
|
+
if (p14 === RGBA_S3TC_DXT3_Format) return extension.COMPRESSED_RGBA_S3TC_DXT3_EXT;
|
|
28216
|
+
if (p14 === RGBA_S3TC_DXT5_Format) return extension.COMPRESSED_RGBA_S3TC_DXT5_EXT;
|
|
28201
28217
|
} else {
|
|
28202
28218
|
return null;
|
|
28203
28219
|
}
|
|
28204
28220
|
}
|
|
28205
28221
|
}
|
|
28206
|
-
if (
|
|
28222
|
+
if (p14 === RGB_PVRTC_4BPPV1_Format || p14 === RGB_PVRTC_2BPPV1_Format || p14 === RGBA_PVRTC_4BPPV1_Format || p14 === RGBA_PVRTC_2BPPV1_Format) {
|
|
28207
28223
|
extension = extensions.get("WEBGL_compressed_texture_pvrtc");
|
|
28208
28224
|
if (extension !== null) {
|
|
28209
|
-
if (
|
|
28210
|
-
if (
|
|
28211
|
-
if (
|
|
28212
|
-
if (
|
|
28225
|
+
if (p14 === RGB_PVRTC_4BPPV1_Format) return extension.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
|
|
28226
|
+
if (p14 === RGB_PVRTC_2BPPV1_Format) return extension.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
|
|
28227
|
+
if (p14 === RGBA_PVRTC_4BPPV1_Format) return extension.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
|
|
28228
|
+
if (p14 === RGBA_PVRTC_2BPPV1_Format) return extension.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
|
|
28213
28229
|
} else {
|
|
28214
28230
|
return null;
|
|
28215
28231
|
}
|
|
28216
28232
|
}
|
|
28217
|
-
if (
|
|
28233
|
+
if (p14 === RGB_ETC1_Format || p14 === RGB_ETC2_Format || p14 === RGBA_ETC2_EAC_Format || p14 === R11_EAC_Format || p14 === SIGNED_R11_EAC_Format || p14 === RG11_EAC_Format || p14 === SIGNED_RG11_EAC_Format) {
|
|
28218
28234
|
extension = extensions.get("WEBGL_compressed_texture_etc");
|
|
28219
28235
|
if (extension !== null) {
|
|
28220
|
-
if (
|
|
28221
|
-
if (
|
|
28222
|
-
if (
|
|
28223
|
-
if (
|
|
28224
|
-
if (
|
|
28225
|
-
if (
|
|
28236
|
+
if (p14 === RGB_ETC1_Format || p14 === RGB_ETC2_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ETC2 : extension.COMPRESSED_RGB8_ETC2;
|
|
28237
|
+
if (p14 === RGBA_ETC2_EAC_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC : extension.COMPRESSED_RGBA8_ETC2_EAC;
|
|
28238
|
+
if (p14 === R11_EAC_Format) return extension.COMPRESSED_R11_EAC;
|
|
28239
|
+
if (p14 === SIGNED_R11_EAC_Format) return extension.COMPRESSED_SIGNED_R11_EAC;
|
|
28240
|
+
if (p14 === RG11_EAC_Format) return extension.COMPRESSED_RG11_EAC;
|
|
28241
|
+
if (p14 === SIGNED_RG11_EAC_Format) return extension.COMPRESSED_SIGNED_RG11_EAC;
|
|
28226
28242
|
} else {
|
|
28227
28243
|
return null;
|
|
28228
28244
|
}
|
|
28229
28245
|
}
|
|
28230
|
-
if (
|
|
28246
|
+
if (p14 === RGBA_ASTC_4x4_Format || p14 === RGBA_ASTC_5x4_Format || p14 === RGBA_ASTC_5x5_Format || p14 === RGBA_ASTC_6x5_Format || p14 === RGBA_ASTC_6x6_Format || p14 === RGBA_ASTC_8x5_Format || p14 === RGBA_ASTC_8x6_Format || p14 === RGBA_ASTC_8x8_Format || p14 === RGBA_ASTC_10x5_Format || p14 === RGBA_ASTC_10x6_Format || p14 === RGBA_ASTC_10x8_Format || p14 === RGBA_ASTC_10x10_Format || p14 === RGBA_ASTC_12x10_Format || p14 === RGBA_ASTC_12x12_Format) {
|
|
28231
28247
|
extension = extensions.get("WEBGL_compressed_texture_astc");
|
|
28232
28248
|
if (extension !== null) {
|
|
28233
|
-
if (
|
|
28234
|
-
if (
|
|
28235
|
-
if (
|
|
28236
|
-
if (
|
|
28237
|
-
if (
|
|
28238
|
-
if (
|
|
28239
|
-
if (
|
|
28240
|
-
if (
|
|
28241
|
-
if (
|
|
28242
|
-
if (
|
|
28243
|
-
if (
|
|
28244
|
-
if (
|
|
28245
|
-
if (
|
|
28246
|
-
if (
|
|
28249
|
+
if (p14 === RGBA_ASTC_4x4_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : extension.COMPRESSED_RGBA_ASTC_4x4_KHR;
|
|
28250
|
+
if (p14 === RGBA_ASTC_5x4_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : extension.COMPRESSED_RGBA_ASTC_5x4_KHR;
|
|
28251
|
+
if (p14 === RGBA_ASTC_5x5_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : extension.COMPRESSED_RGBA_ASTC_5x5_KHR;
|
|
28252
|
+
if (p14 === RGBA_ASTC_6x5_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : extension.COMPRESSED_RGBA_ASTC_6x5_KHR;
|
|
28253
|
+
if (p14 === RGBA_ASTC_6x6_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : extension.COMPRESSED_RGBA_ASTC_6x6_KHR;
|
|
28254
|
+
if (p14 === RGBA_ASTC_8x5_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : extension.COMPRESSED_RGBA_ASTC_8x5_KHR;
|
|
28255
|
+
if (p14 === RGBA_ASTC_8x6_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : extension.COMPRESSED_RGBA_ASTC_8x6_KHR;
|
|
28256
|
+
if (p14 === RGBA_ASTC_8x8_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : extension.COMPRESSED_RGBA_ASTC_8x8_KHR;
|
|
28257
|
+
if (p14 === RGBA_ASTC_10x5_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : extension.COMPRESSED_RGBA_ASTC_10x5_KHR;
|
|
28258
|
+
if (p14 === RGBA_ASTC_10x6_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR : extension.COMPRESSED_RGBA_ASTC_10x6_KHR;
|
|
28259
|
+
if (p14 === RGBA_ASTC_10x8_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR : extension.COMPRESSED_RGBA_ASTC_10x8_KHR;
|
|
28260
|
+
if (p14 === RGBA_ASTC_10x10_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR : extension.COMPRESSED_RGBA_ASTC_10x10_KHR;
|
|
28261
|
+
if (p14 === RGBA_ASTC_12x10_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR : extension.COMPRESSED_RGBA_ASTC_12x10_KHR;
|
|
28262
|
+
if (p14 === RGBA_ASTC_12x12_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : extension.COMPRESSED_RGBA_ASTC_12x12_KHR;
|
|
28247
28263
|
} else {
|
|
28248
28264
|
return null;
|
|
28249
28265
|
}
|
|
28250
28266
|
}
|
|
28251
|
-
if (
|
|
28267
|
+
if (p14 === RGBA_BPTC_Format || p14 === RGB_BPTC_SIGNED_Format || p14 === RGB_BPTC_UNSIGNED_Format) {
|
|
28252
28268
|
extension = extensions.get("EXT_texture_compression_bptc");
|
|
28253
28269
|
if (extension !== null) {
|
|
28254
|
-
if (
|
|
28255
|
-
if (
|
|
28256
|
-
if (
|
|
28270
|
+
if (p14 === RGBA_BPTC_Format) return transfer === SRGBTransfer ? extension.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : extension.COMPRESSED_RGBA_BPTC_UNORM_EXT;
|
|
28271
|
+
if (p14 === RGB_BPTC_SIGNED_Format) return extension.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;
|
|
28272
|
+
if (p14 === RGB_BPTC_UNSIGNED_Format) return extension.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT;
|
|
28257
28273
|
} else {
|
|
28258
28274
|
return null;
|
|
28259
28275
|
}
|
|
28260
28276
|
}
|
|
28261
|
-
if (
|
|
28277
|
+
if (p14 === RED_RGTC1_Format || p14 === SIGNED_RED_RGTC1_Format || p14 === RED_GREEN_RGTC2_Format || p14 === SIGNED_RED_GREEN_RGTC2_Format) {
|
|
28262
28278
|
extension = extensions.get("EXT_texture_compression_rgtc");
|
|
28263
28279
|
if (extension !== null) {
|
|
28264
|
-
if (
|
|
28265
|
-
if (
|
|
28266
|
-
if (
|
|
28267
|
-
if (
|
|
28280
|
+
if (p14 === RED_RGTC1_Format) return extension.COMPRESSED_RED_RGTC1_EXT;
|
|
28281
|
+
if (p14 === SIGNED_RED_RGTC1_Format) return extension.COMPRESSED_SIGNED_RED_RGTC1_EXT;
|
|
28282
|
+
if (p14 === RED_GREEN_RGTC2_Format) return extension.COMPRESSED_RED_GREEN_RGTC2_EXT;
|
|
28283
|
+
if (p14 === SIGNED_RED_GREEN_RGTC2_Format) return extension.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;
|
|
28268
28284
|
} else {
|
|
28269
28285
|
return null;
|
|
28270
28286
|
}
|
|
28271
28287
|
}
|
|
28272
|
-
if (
|
|
28273
|
-
return gl[
|
|
28288
|
+
if (p14 === UnsignedInt248Type) return gl.UNSIGNED_INT_24_8;
|
|
28289
|
+
return gl[p14] !== void 0 ? gl[p14] : null;
|
|
28274
28290
|
}
|
|
28275
28291
|
return { convert };
|
|
28276
28292
|
}
|
|
@@ -40317,9 +40333,9 @@ void main() {
|
|
|
40317
40333
|
return createIterResult(value, false);
|
|
40318
40334
|
}
|
|
40319
40335
|
if (error2) {
|
|
40320
|
-
const
|
|
40336
|
+
const p14 = Promise.reject(error2);
|
|
40321
40337
|
error2 = null;
|
|
40322
|
-
return
|
|
40338
|
+
return p14;
|
|
40323
40339
|
}
|
|
40324
40340
|
if (finished) {
|
|
40325
40341
|
return createIterResult(void 0, true);
|
|
@@ -40458,7 +40474,7 @@ void main() {
|
|
|
40458
40474
|
function keyCompletablePromiseMapToPromiseContainingMap(keyToPromiseMap) {
|
|
40459
40475
|
const keys = asArray(keyToPromiseMap.keys());
|
|
40460
40476
|
const values = asArray(keyToPromiseMap.values());
|
|
40461
|
-
return Promise.all(values.map((
|
|
40477
|
+
return Promise.all(values.map((p14) => p14.promise)).then((resolvedValues) => {
|
|
40462
40478
|
const valueMap = /* @__PURE__ */ new Map();
|
|
40463
40479
|
keys.forEach((key, i4) => {
|
|
40464
40480
|
const value = resolvedValues[i4];
|
|
@@ -41951,7 +41967,7 @@ void main() {
|
|
|
41951
41967
|
o4[k22] = m4[k4];
|
|
41952
41968
|
});
|
|
41953
41969
|
var __exportStar = exports13 && exports13.__exportStar || function(m4, exports14) {
|
|
41954
|
-
for (var
|
|
41970
|
+
for (var p14 in m4) if (p14 !== "default" && !Object.prototype.hasOwnProperty.call(exports14, p14)) __createBinding(exports14, m4, p14);
|
|
41955
41971
|
};
|
|
41956
41972
|
Object.defineProperty(exports13, "__esModule", { value: true });
|
|
41957
41973
|
__exportStar(require_Base(), exports13);
|
|
@@ -41960,22 +41976,6 @@ void main() {
|
|
|
41960
41976
|
}
|
|
41961
41977
|
});
|
|
41962
41978
|
|
|
41963
|
-
// src/util/log.ts
|
|
41964
|
-
function prefix(prefix2) {
|
|
41965
|
-
return `${FgGreen}MR${BgBlack}${prefix2 ?? ""}${Reset}`;
|
|
41966
|
-
}
|
|
41967
|
-
var Reset, FgGreen, BgBlack;
|
|
41968
|
-
var init_log = __esm({
|
|
41969
|
-
"src/util/log.ts"() {
|
|
41970
|
-
init_dirname();
|
|
41971
|
-
init_buffer2();
|
|
41972
|
-
init_process2();
|
|
41973
|
-
Reset = "\x1B[0m";
|
|
41974
|
-
FgGreen = "\x1B[32m";
|
|
41975
|
-
BgBlack = "\x1B[40m";
|
|
41976
|
-
}
|
|
41977
|
-
});
|
|
41978
|
-
|
|
41979
41979
|
// src/request/Requests.ts
|
|
41980
41980
|
async function fetchRequest(config3, defaultBaseURL) {
|
|
41981
41981
|
const { url, baseURL: baseURL2 = defaultBaseURL, timeout = 5e3, responseType = "json", signal, ...options } = config3;
|
|
@@ -42029,7 +42029,7 @@ void main() {
|
|
|
42029
42029
|
signal.removeEventListener("abort", abort2);
|
|
42030
42030
|
}
|
|
42031
42031
|
}
|
|
42032
|
-
var import_jobqu,
|
|
42032
|
+
var import_jobqu, p2, RequestError, RequestQueue, Requests;
|
|
42033
42033
|
var init_Requests = __esm({
|
|
42034
42034
|
"src/request/Requests.ts"() {
|
|
42035
42035
|
init_dirname();
|
|
@@ -42037,7 +42037,7 @@ void main() {
|
|
|
42037
42037
|
init_process2();
|
|
42038
42038
|
import_jobqu = __toESM(require_src());
|
|
42039
42039
|
init_log();
|
|
42040
|
-
|
|
42040
|
+
p2 = prefix("Requests");
|
|
42041
42041
|
RequestError = class extends Error {
|
|
42042
42042
|
constructor(message, response, cause) {
|
|
42043
42043
|
super(message);
|
|
@@ -42064,7 +42064,7 @@ void main() {
|
|
|
42064
42064
|
try {
|
|
42065
42065
|
return await abortable(this.queue.add(request), signal);
|
|
42066
42066
|
} catch (error2) {
|
|
42067
|
-
console.debug(
|
|
42067
|
+
console.debug(p2, "Request failed", error2);
|
|
42068
42068
|
const delay = this.retryDelay(error2, request, retries);
|
|
42069
42069
|
if (delay === void 0) {
|
|
42070
42070
|
throw error2;
|
|
@@ -42231,7 +42231,7 @@ void main() {
|
|
|
42231
42231
|
});
|
|
42232
42232
|
|
|
42233
42233
|
// src/image/ImageLoader.ts
|
|
42234
|
-
var
|
|
42234
|
+
var p3, ImageLoader2;
|
|
42235
42235
|
var init_ImageLoader = __esm({
|
|
42236
42236
|
"src/image/ImageLoader.ts"() {
|
|
42237
42237
|
init_dirname();
|
|
@@ -42245,7 +42245,7 @@ void main() {
|
|
|
42245
42245
|
init_WrappedImage();
|
|
42246
42246
|
init_buffer();
|
|
42247
42247
|
init_log();
|
|
42248
|
-
|
|
42248
|
+
p3 = prefix("ImageLoader");
|
|
42249
42249
|
ImageLoader2 = class _ImageLoader {
|
|
42250
42250
|
static _createImage() {
|
|
42251
42251
|
return createImage();
|
|
@@ -42270,7 +42270,7 @@ void main() {
|
|
|
42270
42270
|
return image;
|
|
42271
42271
|
}
|
|
42272
42272
|
static async loadData(src) {
|
|
42273
|
-
console.debug(
|
|
42273
|
+
console.debug(p3, "loadData", src);
|
|
42274
42274
|
const image = await this.loadCanvasData(src);
|
|
42275
42275
|
return image.data.getImageData(0, 0, image.width, image.height);
|
|
42276
42276
|
}
|
|
@@ -42847,8 +42847,8 @@ void main() {
|
|
|
42847
42847
|
__assign = Object.assign || function(t5) {
|
|
42848
42848
|
for (var s4, i4 = 1, n4 = arguments.length; i4 < n4; i4++) {
|
|
42849
42849
|
s4 = arguments[i4];
|
|
42850
|
-
for (var
|
|
42851
|
-
t5[
|
|
42850
|
+
for (var p14 in s4) if (Object.prototype.hasOwnProperty.call(s4, p14))
|
|
42851
|
+
t5[p14] = s4[p14];
|
|
42852
42852
|
}
|
|
42853
42853
|
return t5;
|
|
42854
42854
|
};
|
|
@@ -43032,12 +43032,12 @@ void main() {
|
|
|
43032
43032
|
}
|
|
43033
43033
|
/** Joins the type subdirectory and path without adding a namespace or file extension. */
|
|
43034
43034
|
getFullPath() {
|
|
43035
|
-
let
|
|
43035
|
+
let p14 = [];
|
|
43036
43036
|
if (this.type) {
|
|
43037
|
-
|
|
43037
|
+
p14.push(this.type);
|
|
43038
43038
|
}
|
|
43039
|
-
|
|
43040
|
-
return
|
|
43039
|
+
p14.push(this.path);
|
|
43040
|
+
return p14.join("/");
|
|
43041
43041
|
}
|
|
43042
43042
|
toNamespacedString() {
|
|
43043
43043
|
return this.namespace + ":" + this.getFullPath();
|
|
@@ -43152,7 +43152,7 @@ void main() {
|
|
|
43152
43152
|
merged.display = { ...inheritedDisplay, ...DisplayTransforms.withHandFallbacks(source.display) };
|
|
43153
43153
|
}
|
|
43154
43154
|
}
|
|
43155
|
-
merged.hierarchy = models.map((m4) => m4.parent).filter((
|
|
43155
|
+
merged.hierarchy = models.map((m4) => m4.parent).filter((p14) => `${p14}`);
|
|
43156
43156
|
merged.hierarchy.push(`${merged.parent}`);
|
|
43157
43157
|
if (model.components) merged.components = model.components;
|
|
43158
43158
|
return merged;
|
|
@@ -44371,7 +44371,7 @@ ${key}` : key, async () => {
|
|
|
44371
44371
|
return t6;
|
|
44372
44372
|
}(i4) : c(i4, i4.length);
|
|
44373
44373
|
}
|
|
44374
|
-
function
|
|
44374
|
+
function p4(e6) {
|
|
44375
44375
|
var t5 = this._events;
|
|
44376
44376
|
if (void 0 !== t5) {
|
|
44377
44377
|
var n4 = t5[e6];
|
|
@@ -44477,8 +44477,8 @@ ${key}` : key, async () => {
|
|
|
44477
44477
|
}, o.prototype.rawListeners = function(e6) {
|
|
44478
44478
|
return h(this, e6, false);
|
|
44479
44479
|
}, o.listenerCount = function(e6, t5) {
|
|
44480
|
-
return "function" == typeof e6.listenerCount ? e6.listenerCount(t5) :
|
|
44481
|
-
}, o.prototype.listenerCount =
|
|
44480
|
+
return "function" == typeof e6.listenerCount ? e6.listenerCount(t5) : p4.call(e6, t5);
|
|
44481
|
+
}, o.prototype.listenerCount = p4, o.prototype.eventNames = function() {
|
|
44482
44482
|
return this._eventsCount > 0 ? t(this._events) : [];
|
|
44483
44483
|
};
|
|
44484
44484
|
y = e;
|
|
@@ -44531,9 +44531,9 @@ ${key}` : key, async () => {
|
|
|
44531
44531
|
return createIterResult(value, false);
|
|
44532
44532
|
}
|
|
44533
44533
|
if (error2) {
|
|
44534
|
-
const
|
|
44534
|
+
const p14 = Promise.reject(error2);
|
|
44535
44535
|
error2 = null;
|
|
44536
|
-
return
|
|
44536
|
+
return p14;
|
|
44537
44537
|
}
|
|
44538
44538
|
if (finished) {
|
|
44539
44539
|
return createIterResult(void 0, true);
|
|
@@ -44724,7 +44724,7 @@ ${key}` : key, async () => {
|
|
|
44724
44724
|
return s2 && O(e6, w);
|
|
44725
44725
|
}
|
|
44726
44726
|
function L(e6) {
|
|
44727
|
-
return
|
|
44727
|
+
return p5 && O(e6, v2);
|
|
44728
44728
|
}
|
|
44729
44729
|
function oe(e6, t5) {
|
|
44730
44730
|
var r5 = { seen: [], stylize: fe };
|
|
@@ -44769,8 +44769,8 @@ ${key}` : key, async () => {
|
|
|
44769
44769
|
if (je(t5)) return e6.stylize(Date.prototype.toString.call(t5), "date");
|
|
44770
44770
|
if (Ae(t5)) return ce(t5);
|
|
44771
44771
|
}
|
|
44772
|
-
var a4, c4 = "", s4 = false,
|
|
44773
|
-
(pe(t5) && (s4 = true,
|
|
44772
|
+
var a4, c4 = "", s4 = false, p14 = ["{", "}"];
|
|
44773
|
+
(pe(t5) && (s4 = true, p14 = ["[", "]"]), we(t5)) && (c4 = " [Function" + (t5.name ? ": " + t5.name : "") + "]");
|
|
44774
44774
|
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) {
|
|
44775
44775
|
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("");
|
|
44776
44776
|
return i5.forEach(function(i6) {
|
|
@@ -44784,7 +44784,7 @@ ${key}` : key, async () => {
|
|
|
44784
44784
|
return n5++, t7.indexOf("\n") >= 0 && n5++, e8 + t7.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
44785
44785
|
}, 0) > 60) return r6[0] + ("" === t6 ? "" : t6 + "\n ") + " " + e7.join(",\n ") + " " + r6[1];
|
|
44786
44786
|
return r6[0] + t6 + " " + e7.join(", ") + " " + r6[1];
|
|
44787
|
-
}(a4, c4,
|
|
44787
|
+
}(a4, c4, p14)) : p14[0] + c4 + p14[1];
|
|
44788
44788
|
}
|
|
44789
44789
|
function ce(e6) {
|
|
44790
44790
|
return "[" + Error.prototype.toString.call(e6) + "]";
|
|
@@ -44854,7 +44854,7 @@ ${key}` : key, async () => {
|
|
|
44854
44854
|
}
|
|
44855
44855
|
return t5(e6);
|
|
44856
44856
|
}
|
|
44857
|
-
var e$2, t$3, n$2, r$2, o$3, l$2, s$1, f$1, a$1, T$1, t2, e2, o2, n2, r2, l2, t$1, o$1, n$1, e$1, r$1, c2, u2, i2, t$2, i$1, o$2, u$1, f2, a2, s2,
|
|
44857
|
+
var e$2, t$3, n$2, r$2, o$3, l$2, s$1, f$1, a$1, T$1, t2, e2, o2, n2, r2, l2, t$1, o$1, n$1, e$1, r$1, c2, u2, i2, t$2, i$1, o$2, u$1, f2, a2, s2, p5, y2, l$1, d, m, h2, j, A, Q, X, Y, ee, te, re, ne, ie, Se, Ee, promisify;
|
|
44858
44858
|
var init_chunk_D3uu3VYh = __esm({
|
|
44859
44859
|
"../../node_modules/@jspm/core/nodelibs/browser/chunk-D3uu3VYh.js"() {
|
|
44860
44860
|
init_dirname();
|
|
@@ -44963,8 +44963,8 @@ ${key}` : key, async () => {
|
|
|
44963
44963
|
f2 = l2;
|
|
44964
44964
|
a2 = i2;
|
|
44965
44965
|
s2 = "undefined" != typeof BigInt;
|
|
44966
|
-
|
|
44967
|
-
y2 =
|
|
44966
|
+
p5 = "undefined" != typeof Symbol;
|
|
44967
|
+
y2 = p5 && void 0 !== Symbol.toStringTag;
|
|
44968
44968
|
l$1 = "undefined" != typeof Uint8Array;
|
|
44969
44969
|
d = "undefined" != typeof ArrayBuffer;
|
|
44970
44970
|
if (l$1 && y2) var g = Object.getPrototypeOf(Uint8Array.prototype), b = c$1(Object.getOwnPropertyDescriptor(g, Symbol.toStringTag).get);
|
|
@@ -44973,7 +44973,7 @@ ${key}` : key, async () => {
|
|
|
44973
44973
|
j = c$1(String.prototype.valueOf);
|
|
44974
44974
|
A = c$1(Boolean.prototype.valueOf);
|
|
44975
44975
|
if (s2) var w = c$1(BigInt.prototype.valueOf);
|
|
44976
|
-
if (
|
|
44976
|
+
if (p5) var v2 = c$1(Symbol.prototype.valueOf);
|
|
44977
44977
|
o$2.isArgumentsObject = f2, o$2.isGeneratorFunction = a2, o$2.isPromise = function(e6) {
|
|
44978
44978
|
return "undefined" != typeof Promise && e6 instanceof Promise || null !== e6 && "object" == typeof e6 && "function" == typeof e6.then && "function" == typeof e6.catch;
|
|
44979
44979
|
}, o$2.isArrayBufferView = function(e6) {
|
|
@@ -45403,7 +45403,7 @@ ${key}` : key, async () => {
|
|
|
45403
45403
|
i5 !== e7 && (n5 = n5.slice(0, i5));
|
|
45404
45404
|
return n5;
|
|
45405
45405
|
}(t5, r5);
|
|
45406
|
-
if (ArrayBuffer.isView(t5)) return
|
|
45406
|
+
if (ArrayBuffer.isView(t5)) return p6(t5);
|
|
45407
45407
|
if (null == t5) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t5);
|
|
45408
45408
|
if (F2(t5, ArrayBuffer) || t5 && F2(t5.buffer, ArrayBuffer)) return c$1$1(t5, r5, e6);
|
|
45409
45409
|
if ("undefined" != typeof SharedArrayBuffer && (F2(t5, SharedArrayBuffer) || t5 && F2(t5.buffer, SharedArrayBuffer))) return c$1$1(t5, r5, e6);
|
|
@@ -45415,8 +45415,8 @@ ${key}` : key, async () => {
|
|
|
45415
45415
|
var r6 = 0 | l$12(t6.length), e7 = f$2(r6);
|
|
45416
45416
|
return 0 === e7.length || t6.copy(e7, 0, 0, r6), e7;
|
|
45417
45417
|
}
|
|
45418
|
-
if (void 0 !== t6.length) return "number" != typeof t6.length || N2(t6.length) ? f$2(0) :
|
|
45419
|
-
if ("Buffer" === t6.type && Array.isArray(t6.data)) return
|
|
45418
|
+
if (void 0 !== t6.length) return "number" != typeof t6.length || N2(t6.length) ? f$2(0) : p6(t6);
|
|
45419
|
+
if ("Buffer" === t6.type && Array.isArray(t6.data)) return p6(t6.data);
|
|
45420
45420
|
}(t5);
|
|
45421
45421
|
if (i4) return i4;
|
|
45422
45422
|
if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof t5[Symbol.toPrimitive]) return u$1$1.from(t5[Symbol.toPrimitive]("string"), r5, e6);
|
|
@@ -45429,7 +45429,7 @@ ${key}` : key, async () => {
|
|
|
45429
45429
|
function a$2(t5) {
|
|
45430
45430
|
return h$1$1(t5), f$2(t5 < 0 ? 0 : 0 | l$12(t5));
|
|
45431
45431
|
}
|
|
45432
|
-
function
|
|
45432
|
+
function p6(t5) {
|
|
45433
45433
|
for (var r5 = t5.length < 0 ? 0 : 0 | l$12(t5.length), e6 = f$2(r5), n4 = 0; n4 < r5; n4 += 1) e6[n4] = 255 & t5[n4];
|
|
45434
45434
|
return e6;
|
|
45435
45435
|
}
|
|
@@ -45531,11 +45531,11 @@ ${key}` : key, async () => {
|
|
|
45531
45531
|
if (-1 === a4 && (a4 = o4), o4 - a4 + 1 === s4) return a4 * f4;
|
|
45532
45532
|
} else -1 !== a4 && (o4 -= o4 - a4), a4 = -1;
|
|
45533
45533
|
} else for (e6 + s4 > u4 && (e6 = u4 - s4), o4 = e6; o4 >= 0; o4--) {
|
|
45534
|
-
for (var
|
|
45535
|
-
|
|
45534
|
+
for (var p14 = true, c4 = 0; c4 < s4; c4++) if (h5(t5, o4 + c4) !== h5(r5, c4)) {
|
|
45535
|
+
p14 = false;
|
|
45536
45536
|
break;
|
|
45537
45537
|
}
|
|
45538
|
-
if (
|
|
45538
|
+
if (p14) return o4;
|
|
45539
45539
|
}
|
|
45540
45540
|
return -1;
|
|
45541
45541
|
}
|
|
@@ -45579,8 +45579,8 @@ ${key}` : key, async () => {
|
|
|
45579
45579
|
function I2(t5, r5, e6) {
|
|
45580
45580
|
e6 = Math.min(t5.length, e6);
|
|
45581
45581
|
for (var n4 = [], i4 = r5; i4 < e6; ) {
|
|
45582
|
-
var o4, f4, u4, s4, h5 = t5[i4], a4 = null,
|
|
45583
|
-
if (i4 +
|
|
45582
|
+
var o4, f4, u4, s4, h5 = t5[i4], a4 = null, p14 = h5 > 239 ? 4 : h5 > 223 ? 3 : h5 > 191 ? 2 : 1;
|
|
45583
|
+
if (i4 + p14 <= e6) switch (p14) {
|
|
45584
45584
|
case 1:
|
|
45585
45585
|
h5 < 128 && (a4 = h5);
|
|
45586
45586
|
break;
|
|
@@ -45593,7 +45593,7 @@ ${key}` : key, async () => {
|
|
|
45593
45593
|
case 4:
|
|
45594
45594
|
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);
|
|
45595
45595
|
}
|
|
45596
|
-
null === a4 ? (a4 = 65533,
|
|
45596
|
+
null === a4 ? (a4 = 65533, p14 = 1) : a4 > 65535 && (a4 -= 65536, n4.push(a4 >>> 10 & 1023 | 55296), a4 = 56320 | 1023 & a4), n4.push(a4), i4 += p14;
|
|
45597
45597
|
}
|
|
45598
45598
|
return function(t6) {
|
|
45599
45599
|
var r6 = t6.length;
|
|
@@ -47659,10 +47659,10 @@ ${key}` : key, async () => {
|
|
|
47659
47659
|
key: "join",
|
|
47660
47660
|
value: function join(s4) {
|
|
47661
47661
|
if (this.length === 0) return "";
|
|
47662
|
-
var
|
|
47663
|
-
var ret = "" +
|
|
47664
|
-
while (
|
|
47665
|
-
ret += s4 +
|
|
47662
|
+
var p14 = this.head;
|
|
47663
|
+
var ret = "" + p14.data;
|
|
47664
|
+
while (p14 = p14.next) {
|
|
47665
|
+
ret += s4 + p14.data;
|
|
47666
47666
|
}
|
|
47667
47667
|
return ret;
|
|
47668
47668
|
}
|
|
@@ -47671,12 +47671,12 @@ ${key}` : key, async () => {
|
|
|
47671
47671
|
value: function concat2(n4) {
|
|
47672
47672
|
if (this.length === 0) return Buffer2.alloc(0);
|
|
47673
47673
|
var ret = Buffer2.allocUnsafe(n4 >>> 0);
|
|
47674
|
-
var
|
|
47674
|
+
var p14 = this.head;
|
|
47675
47675
|
var i4 = 0;
|
|
47676
|
-
while (
|
|
47677
|
-
copyBuffer(
|
|
47678
|
-
i4 +=
|
|
47679
|
-
|
|
47676
|
+
while (p14) {
|
|
47677
|
+
copyBuffer(p14.data, ret, i4);
|
|
47678
|
+
i4 += p14.data.length;
|
|
47679
|
+
p14 = p14.next;
|
|
47680
47680
|
}
|
|
47681
47681
|
return ret;
|
|
47682
47682
|
}
|
|
@@ -47704,12 +47704,12 @@ ${key}` : key, async () => {
|
|
|
47704
47704
|
}, {
|
|
47705
47705
|
key: "_getString",
|
|
47706
47706
|
value: function _getString(n4) {
|
|
47707
|
-
var
|
|
47707
|
+
var p14 = this.head;
|
|
47708
47708
|
var c4 = 1;
|
|
47709
|
-
var ret =
|
|
47709
|
+
var ret = p14.data;
|
|
47710
47710
|
n4 -= ret.length;
|
|
47711
|
-
while (
|
|
47712
|
-
var str =
|
|
47711
|
+
while (p14 = p14.next) {
|
|
47712
|
+
var str = p14.data;
|
|
47713
47713
|
var nb = n4 > str.length ? str.length : n4;
|
|
47714
47714
|
if (nb === str.length) ret += str;
|
|
47715
47715
|
else ret += str.slice(0, n4);
|
|
@@ -47717,11 +47717,11 @@ ${key}` : key, async () => {
|
|
|
47717
47717
|
if (n4 === 0) {
|
|
47718
47718
|
if (nb === str.length) {
|
|
47719
47719
|
++c4;
|
|
47720
|
-
if (
|
|
47720
|
+
if (p14.next) this.head = p14.next;
|
|
47721
47721
|
else this.head = this.tail = null;
|
|
47722
47722
|
} else {
|
|
47723
|
-
this.head =
|
|
47724
|
-
|
|
47723
|
+
this.head = p14;
|
|
47724
|
+
p14.data = str.slice(nb);
|
|
47725
47725
|
}
|
|
47726
47726
|
break;
|
|
47727
47727
|
}
|
|
@@ -47735,23 +47735,23 @@ ${key}` : key, async () => {
|
|
|
47735
47735
|
key: "_getBuffer",
|
|
47736
47736
|
value: function _getBuffer(n4) {
|
|
47737
47737
|
var ret = Buffer2.allocUnsafe(n4);
|
|
47738
|
-
var
|
|
47738
|
+
var p14 = this.head;
|
|
47739
47739
|
var c4 = 1;
|
|
47740
|
-
|
|
47741
|
-
n4 -=
|
|
47742
|
-
while (
|
|
47743
|
-
var buf =
|
|
47740
|
+
p14.data.copy(ret);
|
|
47741
|
+
n4 -= p14.data.length;
|
|
47742
|
+
while (p14 = p14.next) {
|
|
47743
|
+
var buf = p14.data;
|
|
47744
47744
|
var nb = n4 > buf.length ? buf.length : n4;
|
|
47745
47745
|
buf.copy(ret, ret.length - n4, 0, nb);
|
|
47746
47746
|
n4 -= nb;
|
|
47747
47747
|
if (n4 === 0) {
|
|
47748
47748
|
if (nb === buf.length) {
|
|
47749
47749
|
++c4;
|
|
47750
|
-
if (
|
|
47750
|
+
if (p14.next) this.head = p14.next;
|
|
47751
47751
|
else this.head = this.tail = null;
|
|
47752
47752
|
} else {
|
|
47753
|
-
this.head =
|
|
47754
|
-
|
|
47753
|
+
this.head = p14;
|
|
47754
|
+
p14.data = buf.slice(nb);
|
|
47755
47755
|
}
|
|
47756
47756
|
break;
|
|
47757
47757
|
}
|
|
@@ -49041,11 +49041,11 @@ ${key}` : key, async () => {
|
|
|
49041
49041
|
var decoder = new StringDecoder(enc);
|
|
49042
49042
|
this._readableState.decoder = decoder;
|
|
49043
49043
|
this._readableState.encoding = this._readableState.decoder.encoding;
|
|
49044
|
-
var
|
|
49044
|
+
var p14 = this._readableState.buffer.head;
|
|
49045
49045
|
var content = "";
|
|
49046
|
-
while (
|
|
49047
|
-
content += decoder.write(
|
|
49048
|
-
|
|
49046
|
+
while (p14 !== null) {
|
|
49047
|
+
content += decoder.write(p14.data);
|
|
49048
|
+
p14 = p14.next;
|
|
49049
49049
|
}
|
|
49050
49050
|
this._readableState.buffer.clear();
|
|
49051
49051
|
if (content !== "") this._readableState.buffer.push(content);
|
|
@@ -49788,8 +49788,8 @@ ${key}` : key, async () => {
|
|
|
49788
49788
|
} }, 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;
|
|
49789
49789
|
e$23["-".charCodeAt(0)] = 62, e$23["_".charCodeAt(0)] = 63;
|
|
49790
49790
|
a$1$1 = { read: function(a4, t5, o4, r5, h5) {
|
|
49791
|
-
var M4, f4,
|
|
49792
|
-
for (N4 += n4, M4 = u4 & (1 << -i4) - 1, u4 >>= -i4, i4 +=
|
|
49791
|
+
var M4, f4, p14 = 8 * h5 - r5 - 1, w4 = (1 << p14) - 1, e6 = w4 >> 1, i4 = -7, N4 = o4 ? h5 - 1 : 0, n4 = o4 ? -1 : 1, u4 = a4[t5 + N4];
|
|
49792
|
+
for (N4 += n4, M4 = u4 & (1 << -i4) - 1, u4 >>= -i4, i4 += p14; i4 > 0; M4 = 256 * M4 + a4[t5 + N4], N4 += n4, i4 -= 8) ;
|
|
49793
49793
|
for (f4 = M4 & (1 << -i4) - 1, M4 >>= -i4, i4 += r5; i4 > 0; f4 = 256 * f4 + a4[t5 + N4], N4 += n4, i4 -= 8) ;
|
|
49794
49794
|
if (0 === M4) M4 = 1 - e6;
|
|
49795
49795
|
else {
|
|
@@ -49798,9 +49798,9 @@ ${key}` : key, async () => {
|
|
|
49798
49798
|
}
|
|
49799
49799
|
return (u4 ? -1 : 1) * f4 * Math.pow(2, M4 - r5);
|
|
49800
49800
|
}, write: function(a4, t5, o4, r5, h5, M4) {
|
|
49801
|
-
var f4,
|
|
49802
|
-
for (t5 = Math.abs(t5), isNaN(t5) || t5 === 1 / 0 ? (
|
|
49803
|
-
for (f4 = f4 << h5 |
|
|
49801
|
+
var f4, p14, w4, e6 = 8 * M4 - h5 - 1, i4 = (1 << e6) - 1, N4 = i4 >> 1, n4 = 23 === h5 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, u4 = r5 ? 0 : M4 - 1, l4 = r5 ? 1 : -1, s4 = t5 < 0 || 0 === t5 && 1 / t5 < 0 ? 1 : 0;
|
|
49802
|
+
for (t5 = Math.abs(t5), isNaN(t5) || t5 === 1 / 0 ? (p14 = isNaN(t5) ? 1 : 0, f4 = i4) : (f4 = Math.floor(Math.log(t5) / Math.LN2), t5 * (w4 = Math.pow(2, -f4)) < 1 && (f4--, w4 *= 2), (t5 += f4 + N4 >= 1 ? n4 / w4 : n4 * Math.pow(2, 1 - N4)) * w4 >= 2 && (f4++, w4 /= 2), f4 + N4 >= i4 ? (p14 = 0, f4 = i4) : f4 + N4 >= 1 ? (p14 = (t5 * w4 - 1) * Math.pow(2, h5), f4 += N4) : (p14 = t5 * Math.pow(2, N4 - 1) * Math.pow(2, h5), f4 = 0)); h5 >= 8; a4[o4 + u4] = 255 & p14, u4 += l4, p14 /= 256, h5 -= 8) ;
|
|
49803
|
+
for (f4 = f4 << h5 | p14, e6 += h5; e6 > 0; a4[o4 + u4] = 255 & f4, u4 += l4, f4 /= 256, e6 -= 8) ;
|
|
49804
49804
|
a4[o4 + u4 - l4] |= 128 * s4;
|
|
49805
49805
|
} };
|
|
49806
49806
|
e$1$1 = {};
|
|
@@ -49904,8 +49904,8 @@ ${key}` : key, async () => {
|
|
|
49904
49904
|
if (n4 >= i4) return -1;
|
|
49905
49905
|
if (r5 >= e6) return 1;
|
|
49906
49906
|
if (this === t5) return 0;
|
|
49907
|
-
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),
|
|
49908
|
-
o4 = h5[
|
|
49907
|
+
for (var o4 = (i4 >>>= 0) - (n4 >>>= 0), f4 = (e6 >>>= 0) - (r5 >>>= 0), s4 = Math.min(o4, f4), h5 = this.slice(n4, i4), a4 = t5.slice(r5, e6), p14 = 0; p14 < s4; ++p14) if (h5[p14] !== a4[p14]) {
|
|
49908
|
+
o4 = h5[p14], f4 = a4[p14];
|
|
49909
49909
|
break;
|
|
49910
49910
|
}
|
|
49911
49911
|
return o4 < f4 ? -1 : f4 < o4 ? 1 : 0;
|
|
@@ -50505,7 +50505,7 @@ ${key}` : key, async () => {
|
|
|
50505
50505
|
e6.set(t6, r6);
|
|
50506
50506
|
}
|
|
50507
50507
|
function r6() {
|
|
50508
|
-
return
|
|
50508
|
+
return p14(t6, arguments, h5(this).constructor);
|
|
50509
50509
|
}
|
|
50510
50510
|
return r6.prototype = Object.create(t6.prototype, { constructor: { value: r6, enumerable: false, writable: true, configurable: true } }), g4(r6, t6);
|
|
50511
50511
|
})(t5);
|
|
@@ -50521,8 +50521,8 @@ ${key}` : key, async () => {
|
|
|
50521
50521
|
return false;
|
|
50522
50522
|
}
|
|
50523
50523
|
}
|
|
50524
|
-
function
|
|
50525
|
-
return (
|
|
50524
|
+
function p14(t5, e6, n5) {
|
|
50525
|
+
return (p14 = s4() ? Reflect.construct : function(t6, e7, n6) {
|
|
50526
50526
|
var r6 = [null];
|
|
50527
50527
|
r6.push.apply(r6, e7);
|
|
50528
50528
|
var o5 = new (Function.bind.apply(t6, r6))();
|
|
@@ -50561,41 +50561,41 @@ ${key}` : key, async () => {
|
|
|
50561
50561
|
return b4(t5, { compact: false, customInspect: false, depth: 1e3, maxArrayLength: 1 / 0, showHidden: false, breakLength: 1 / 0, showProxy: false, sorted: true, getters: true });
|
|
50562
50562
|
}
|
|
50563
50563
|
function q3(t5, e6, r6) {
|
|
50564
|
-
var o5 = "", c5 = "", a5 = 0, i4 = "", u4 = false, l4 = x4(t5), f5 = l4.split("\n"), s5 = x4(e6).split("\n"),
|
|
50564
|
+
var o5 = "", c5 = "", a5 = 0, i4 = "", u4 = false, l4 = x4(t5), f5 = l4.split("\n"), s5 = x4(e6).split("\n"), p15 = 0, g5 = "";
|
|
50565
50565
|
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]) {
|
|
50566
50566
|
var h6 = f5[0].length + s5[0].length;
|
|
50567
50567
|
if (h6 <= 10) {
|
|
50568
50568
|
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");
|
|
50569
50569
|
} else if ("strictEqualObject" !== r6) {
|
|
50570
50570
|
if (h6 < (n4.stderr && n4.stderr.isTTY ? n4.stderr.columns : 80)) {
|
|
50571
|
-
for (; f5[0][
|
|
50572
|
-
|
|
50571
|
+
for (; f5[0][p15] === s5[0][p15]; ) p15++;
|
|
50572
|
+
p15 > 2 && (g5 = "\n ".concat(function(t6, e7) {
|
|
50573
50573
|
if (e7 = Math.floor(e7), 0 == t6.length || 0 == e7) return "";
|
|
50574
50574
|
var n5 = t6.length * e7;
|
|
50575
50575
|
for (e7 = Math.floor(Math.log(e7) / Math.log(2)); e7; ) t6 += t6, e7--;
|
|
50576
50576
|
return t6 += t6.substring(0, n5 - t6.length);
|
|
50577
|
-
}(" ",
|
|
50577
|
+
}(" ", p15), "^"), p15 = 0);
|
|
50578
50578
|
}
|
|
50579
50579
|
}
|
|
50580
50580
|
}
|
|
50581
|
-
for (var b5 = f5[f5.length - 1], v6 = s5[s5.length - 1]; b5 === v6 && (
|
|
50581
|
+
for (var b5 = f5[f5.length - 1], v6 = s5[s5.length - 1]; b5 === v6 && (p15++ < 2 ? i4 = "\n ".concat(b5).concat(i4) : o5 = b5, f5.pop(), s5.pop(), 0 !== f5.length && 0 !== s5.length); ) b5 = f5[f5.length - 1], v6 = s5[s5.length - 1];
|
|
50582
50582
|
var O5 = Math.max(f5.length, s5.length);
|
|
50583
50583
|
if (0 === O5) {
|
|
50584
50584
|
var q4 = l4.split("\n");
|
|
50585
50585
|
if (q4.length > 30) for (q4[26] = "".concat(m4, "...").concat(S4); q4.length > 27; ) q4.pop();
|
|
50586
50586
|
return "".concat(j4.notIdentical, "\n\n").concat(q4.join("\n"), "\n");
|
|
50587
50587
|
}
|
|
50588
|
-
|
|
50588
|
+
p15 > 3 && (i4 = "\n".concat(m4, "...").concat(S4).concat(i4), u4 = true), "" !== o5 && (i4 = "\n ".concat(o5).concat(i4), o5 = "");
|
|
50589
50589
|
var R5 = 0, A4 = j4[r6] + "\n".concat(E4, "+ actual").concat(S4, " ").concat(w4, "- expected").concat(S4), k4 = " ".concat(m4, "...").concat(S4, " Lines skipped");
|
|
50590
|
-
for (
|
|
50591
|
-
var _4 =
|
|
50592
|
-
if (f5.length <
|
|
50593
|
-
else if (s5.length <
|
|
50590
|
+
for (p15 = 0; p15 < O5; p15++) {
|
|
50591
|
+
var _4 = p15 - a5;
|
|
50592
|
+
if (f5.length < p15 + 1) _4 > 1 && p15 > 2 && (_4 > 4 ? (c5 += "\n".concat(m4, "...").concat(S4), u4 = true) : _4 > 3 && (c5 += "\n ".concat(s5[p15 - 2]), R5++), c5 += "\n ".concat(s5[p15 - 1]), R5++), a5 = p15, o5 += "\n".concat(w4, "-").concat(S4, " ").concat(s5[p15]), R5++;
|
|
50593
|
+
else if (s5.length < p15 + 1) _4 > 1 && p15 > 2 && (_4 > 4 ? (c5 += "\n".concat(m4, "...").concat(S4), u4 = true) : _4 > 3 && (c5 += "\n ".concat(f5[p15 - 2]), R5++), c5 += "\n ".concat(f5[p15 - 1]), R5++), a5 = p15, c5 += "\n".concat(E4, "+").concat(S4, " ").concat(f5[p15]), R5++;
|
|
50594
50594
|
else {
|
|
50595
|
-
var T5 = s5[
|
|
50596
|
-
I4 && d4(T5, ",") && T5.slice(0, -1) === P5 && (I4 = false, P5 += ","), I4 ? (_4 > 1 &&
|
|
50595
|
+
var T5 = s5[p15], P5 = f5[p15], I4 = P5 !== T5 && (!d4(P5, ",") || P5.slice(0, -1) !== T5);
|
|
50596
|
+
I4 && d4(T5, ",") && T5.slice(0, -1) === P5 && (I4 = false, P5 += ","), I4 ? (_4 > 1 && p15 > 2 && (_4 > 4 ? (c5 += "\n".concat(m4, "...").concat(S4), u4 = true) : _4 > 3 && (c5 += "\n ".concat(f5[p15 - 2]), R5++), c5 += "\n ".concat(f5[p15 - 1]), R5++), a5 = p15, c5 += "\n".concat(E4, "+").concat(S4, " ").concat(P5), o5 += "\n".concat(w4, "-").concat(S4, " ").concat(T5), R5 += 2) : (c5 += o5, o5 = "", 1 !== _4 && 0 !== p15 || (c5 += "\n ".concat(P5), R5++));
|
|
50597
50597
|
}
|
|
50598
|
-
if (R5 > 20 &&
|
|
50598
|
+
if (R5 > 20 && p15 < O5 - 2) return "".concat(A4).concat(k4, "\n").concat(c5, "\n").concat(m4, "...").concat(S4).concat(o5, "\n") + "".concat(m4, "...").concat(S4);
|
|
50599
50599
|
}
|
|
50600
50600
|
return "".concat(A4).concat(u4 ? k4 : "", "\n").concat(c5).concat(o5).concat(i4).concat(g5);
|
|
50601
50601
|
}
|
|
@@ -50609,9 +50609,9 @@ ${key}` : key, async () => {
|
|
|
50609
50609
|
if (Error.stackTraceLimit = 0, null != o5) r6 = c4(this, h5(e6).call(this, String(o5)));
|
|
50610
50610
|
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)));
|
|
50611
50611
|
else if ("notDeepStrictEqual" === i5 || "notStrictEqual" === i5) {
|
|
50612
|
-
var
|
|
50613
|
-
if ("notStrictEqual" === i5 && "object" === y5(l4) && null !== l4 && (
|
|
50614
|
-
r6 = 1 === g5.length ? c4(this, h5(e6).call(this, "".concat(
|
|
50612
|
+
var p15 = j4[i5], g5 = x4(l4).split("\n");
|
|
50613
|
+
if ("notStrictEqual" === i5 && "object" === y5(l4) && null !== l4 && (p15 = j4.notStrictEqualObject), g5.length > 30) for (g5[26] = "".concat(m4, "...").concat(S4); g5.length > 27; ) g5.pop();
|
|
50614
|
+
r6 = 1 === g5.length ? c4(this, h5(e6).call(this, "".concat(p15, " ").concat(g5[0]))) : c4(this, h5(e6).call(this, "".concat(p15, "\n\n").concat(g5.join("\n"), "\n")));
|
|
50615
50615
|
} else {
|
|
50616
50616
|
var b5 = x4(l4), d5 = "", R5 = j4[i5];
|
|
50617
50617
|
"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)));
|
|
@@ -50764,8 +50764,8 @@ ${key}` : key, async () => {
|
|
|
50764
50764
|
var s4 = v$1(e6);
|
|
50765
50765
|
if (u4.length !== s4.length && z3(e6, s4).length !== l4) return false;
|
|
50766
50766
|
} else {
|
|
50767
|
-
var
|
|
50768
|
-
if (0 !==
|
|
50767
|
+
var p14 = v$1(e6);
|
|
50768
|
+
if (0 !== p14.length && 0 !== z3(e6, p14).length) return false;
|
|
50769
50769
|
}
|
|
50770
50770
|
}
|
|
50771
50771
|
if (0 === c4.length && (0 === o4 || 1 === o4 && 0 === t5.length || 0 === t5.size)) return true;
|
|
@@ -50898,7 +50898,7 @@ ${key}` : key, async () => {
|
|
|
50898
50898
|
return t6 && "function" == typeof Symbol && t6.constructor === Symbol && t6 !== Symbol.prototype ? "symbol" : typeof t6;
|
|
50899
50899
|
})(t5);
|
|
50900
50900
|
}
|
|
50901
|
-
var a4, u4, l4 = i$5().codes, s4 = l4.ERR_AMBIGUOUS_ARGUMENT,
|
|
50901
|
+
var a4, u4, l4 = i$5().codes, s4 = l4.ERR_AMBIGUOUS_ARGUMENT, p14 = l4.ERR_INVALID_ARG_TYPE, g4 = l4.ERR_INVALID_ARG_VALUE, h5 = l4.ERR_INVALID_RETURN_VALUE, y5 = l4.ERR_MISSING_ARGS, b4 = f$6(), v5 = X.inspect, d4 = X.types, m$13 = d4.isPromise, E4 = d4.isRegExp, w4 = Object.assign ? Object.assign : r4.assign, S4 = Object.is ? Object.is : m3;
|
|
50902
50902
|
function j4() {
|
|
50903
50903
|
a4 = X2.isDeepEqual, u4 = X2.isDeepStrictEqual;
|
|
50904
50904
|
}
|
|
@@ -50983,7 +50983,7 @@ ${key}` : key, async () => {
|
|
|
50983
50983
|
function P5(t5, e6, n4, r5) {
|
|
50984
50984
|
if ("function" != typeof e6) {
|
|
50985
50985
|
if (E4(e6)) return e6.test(t5);
|
|
50986
|
-
if (2 === arguments.length) throw new
|
|
50986
|
+
if (2 === arguments.length) throw new p14("expected", ["Function", "RegExp"], e6);
|
|
50987
50987
|
if ("object" !== c4(t5) || null === t5) {
|
|
50988
50988
|
var o5 = new b4({ actual: t5, expected: e6, message: n4, operator: "deepStrictEqual", stackStartFn: r5 });
|
|
50989
50989
|
throw o5.operator = r5.name, o5;
|
|
@@ -50998,7 +50998,7 @@ ${key}` : key, async () => {
|
|
|
50998
50998
|
return void 0 !== e6.prototype && t5 instanceof e6 || !Error.isPrototypeOf(e6) && true === e6.call({}, t5);
|
|
50999
50999
|
}
|
|
51000
51000
|
function I4(t5) {
|
|
51001
|
-
if ("function" != typeof t5) throw new
|
|
51001
|
+
if ("function" != typeof t5) throw new p14("fn", "Function", t5);
|
|
51002
51002
|
try {
|
|
51003
51003
|
t5();
|
|
51004
51004
|
} catch (t6) {
|
|
@@ -51015,7 +51015,7 @@ ${key}` : key, async () => {
|
|
|
51015
51015
|
if ("function" == typeof t5) {
|
|
51016
51016
|
if (!D4(e6 = t5())) throw new h5("instance of Promise", "promiseFn", e6);
|
|
51017
51017
|
} else {
|
|
51018
|
-
if (!D4(t5)) throw new
|
|
51018
|
+
if (!D4(t5)) throw new p14("promiseFn", ["Function", "Promise"], t5);
|
|
51019
51019
|
e6 = t5;
|
|
51020
51020
|
}
|
|
51021
51021
|
return Promise.resolve().then(function() {
|
|
@@ -51029,12 +51029,12 @@ ${key}` : key, async () => {
|
|
|
51029
51029
|
}
|
|
51030
51030
|
function N4(t5, e6, n4, r5) {
|
|
51031
51031
|
if ("string" == typeof n4) {
|
|
51032
|
-
if (4 === arguments.length) throw new
|
|
51032
|
+
if (4 === arguments.length) throw new p14("error", ["Object", "Error", "Function", "RegExp"], n4);
|
|
51033
51033
|
if ("object" === c4(e6) && null !== e6) {
|
|
51034
51034
|
if (e6.message === n4) throw new s4("error/message", 'The error message "'.concat(e6.message, '" is identical to the message.'));
|
|
51035
51035
|
} else if (e6 === n4) throw new s4("error/message", 'The error "'.concat(e6, '" is identical to the message.'));
|
|
51036
51036
|
r5 = n4, n4 = void 0;
|
|
51037
|
-
} else if (null != n4 && "object" !== c4(n4) && "function" != typeof n4) throw new
|
|
51037
|
+
} else if (null != n4 && "object" !== c4(n4) && "function" != typeof n4) throw new p14("error", ["Object", "Error", "Function", "RegExp"], n4);
|
|
51038
51038
|
if (e6 === q3) {
|
|
51039
51039
|
var o5 = "";
|
|
51040
51040
|
n4 && n4.name && (o5 += " (".concat(n4.name, ")")), o5 += r5 ? ": ".concat(r5) : ".";
|
|
@@ -51093,7 +51093,7 @@ ${key}` : key, async () => {
|
|
|
51093
51093
|
}
|
|
51094
51094
|
}, x4.strict = w4(M4, x4, { equal: x4.strictEqual, deepEqual: x4.deepStrictEqual, notEqual: x4.notStrictEqual, notDeepEqual: x4.notDeepStrictEqual }), x4.strict.strict = x4.strict, Z2;
|
|
51095
51095
|
}
|
|
51096
|
-
var r4, t4, e$13, r$12, n4, o4, c4, l4, i4, a4, u4, f4,
|
|
51096
|
+
var r4, t4, e$13, r$12, n4, o4, c4, l4, i4, a4, u4, f4, p14, s4, y4, b3, g3, h4, $2, j3, w3, r$22, e$22, o$13, n$13, a$12, c$13, l$13, u$13, f$13, t$12, f$22, e$3, l$22, t$22, n$22, o$22, r$3, e$4, o$32, t$32, n$3, y$1, a$22, i$13, d3, f$3, u$23, A3, l$3, v4, P3, c$22, t$4, p$12, o$4, i$22, a$3, l$4, r$4, n$4, i$3, o$5, c$3, f$4, u$3, s$13, a$4, l$5, p$2, m3, N3, e$5, i$4, n$5, t$5, u$4, a$5, m$12, o$6, s$2, f$5, c$4, a$6, u$5, l$6, g$1, h$12, y$2, b$1, v$1, d$12, E3, w$1, S3, j$1, O3, x3, q2, R3, A$1, k3, _3, T3, P$1, I3, D3, F3, N$1, L3, M3, X2, Z2, $$1, et;
|
|
51097
51097
|
var init_chunk_CjPlbOtt = __esm({
|
|
51098
51098
|
"../../node_modules/@jspm/core/nodelibs/browser/chunk-CjPlbOtt.js"() {
|
|
51099
51099
|
init_dirname();
|
|
@@ -51113,10 +51113,10 @@ ${key}` : key, async () => {
|
|
|
51113
51113
|
}, "prototype"), u4 = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"], f4 = function(t5) {
|
|
51114
51114
|
var e6 = t5.constructor;
|
|
51115
51115
|
return e6 && e6.prototype === t5;
|
|
51116
|
-
},
|
|
51116
|
+
}, p14 = { $applicationCache: true, $console: true, $external: true, $frame: true, $frameElement: true, $frames: true, $innerHeight: true, $innerWidth: true, $onmozfullscreenchange: true, $onmozfullscreenerror: true, $outerHeight: true, $outerWidth: true, $pageXOffset: true, $pageYOffset: true, $parent: true, $scrollLeft: true, $scrollTop: true, $scrollX: true, $scrollY: true, $self: true, $webkitIndexedDB: true, $webkitStorageInfo: true, $window: true }, s4 = function() {
|
|
51117
51117
|
if ("undefined" == typeof window) return false;
|
|
51118
51118
|
for (var t5 in window) try {
|
|
51119
|
-
if (!
|
|
51119
|
+
if (!p14["$" + t5] && n4.call(window, t5) && null !== window[t5] && "object" == typeof window[t5]) try {
|
|
51120
51120
|
f4(window[t5]);
|
|
51121
51121
|
} catch (t6) {
|
|
51122
51122
|
return true;
|
|
@@ -51127,10 +51127,10 @@ ${key}` : key, async () => {
|
|
|
51127
51127
|
return false;
|
|
51128
51128
|
}();
|
|
51129
51129
|
t4 = function(t5) {
|
|
51130
|
-
var e6 = null !== t5 && "object" == typeof t5, r5 = "[object Function]" === o4.call(t5), l5 = c4(t5),
|
|
51130
|
+
var e6 = null !== t5 && "object" == typeof t5, r5 = "[object Function]" === o4.call(t5), l5 = c4(t5), p15 = e6 && "[object String]" === o4.call(t5), y5 = [];
|
|
51131
51131
|
if (!e6 && !r5 && !l5) throw new TypeError("Object.keys called on a non-object");
|
|
51132
51132
|
var b4 = a4 && r5;
|
|
51133
|
-
if (
|
|
51133
|
+
if (p15 && t5.length > 0 && !n4.call(t5, 0)) for (var g4 = 0; g4 < t5.length; ++g4) y5.push(String(g4));
|
|
51134
51134
|
if (l5 && t5.length > 0) for (var h5 = 0; h5 < t5.length; ++h5) y5.push(String(h5));
|
|
51135
51135
|
else for (var $3 in t5) b4 && "prototype" === $3 || !n4.call(t5, $3) || y5.push(String($3));
|
|
51136
51136
|
if (i4) for (var j4 = function(t6) {
|
|
@@ -51217,19 +51217,19 @@ ${key}` : key, async () => {
|
|
|
51217
51217
|
r$3 = function(r5) {
|
|
51218
51218
|
var e6 = this;
|
|
51219
51219
|
if ("function" != typeof e6 || "[object Function]" !== o$22.call(e6)) throw new TypeError(t$22 + e6);
|
|
51220
|
-
for (var
|
|
51221
|
-
if (this instanceof
|
|
51220
|
+
for (var p14, i4 = n$22.call(arguments, 1), c4 = function() {
|
|
51221
|
+
if (this instanceof p14) {
|
|
51222
51222
|
var t5 = e6.apply(this, i4.concat(n$22.call(arguments)));
|
|
51223
51223
|
return Object(t5) === t5 ? t5 : this;
|
|
51224
51224
|
}
|
|
51225
51225
|
return e6.apply(r5, i4.concat(n$22.call(arguments)));
|
|
51226
51226
|
}, a4 = Math.max(0, e6.length - i4.length), l4 = [], u4 = 0; u4 < a4; u4++) l4.push("$" + u4);
|
|
51227
|
-
if (
|
|
51227
|
+
if (p14 = Function("binder", "return function (" + l4.join(",") + "){ return binder.apply(this,arguments); }")(c4), e6.prototype) {
|
|
51228
51228
|
var y5 = function() {
|
|
51229
51229
|
};
|
|
51230
|
-
y5.prototype = e6.prototype,
|
|
51230
|
+
y5.prototype = e6.prototype, p14.prototype = new y5(), y5.prototype = null;
|
|
51231
51231
|
}
|
|
51232
|
-
return
|
|
51232
|
+
return p14;
|
|
51233
51233
|
};
|
|
51234
51234
|
e$4 = Function.prototype.bind || r$3;
|
|
51235
51235
|
o$32 = TypeError;
|
|
@@ -51838,9 +51838,9 @@ ${key}` : key, async () => {
|
|
|
51838
51838
|
if (typeof source !== "object") {
|
|
51839
51839
|
throw new TypeError(source + "must be non-object");
|
|
51840
51840
|
}
|
|
51841
|
-
for (var
|
|
51842
|
-
if (_has(source,
|
|
51843
|
-
obj[
|
|
51841
|
+
for (var p14 in source) {
|
|
51842
|
+
if (_has(source, p14)) {
|
|
51843
|
+
obj[p14] = source[p14];
|
|
51844
51844
|
}
|
|
51845
51845
|
}
|
|
51846
51846
|
}
|
|
@@ -52784,7 +52784,7 @@ ${key}` : key, async () => {
|
|
|
52784
52784
|
}
|
|
52785
52785
|
function fill_window(s4) {
|
|
52786
52786
|
var _w_size = s4.w_size;
|
|
52787
|
-
var
|
|
52787
|
+
var p14, n4, m4, more, str;
|
|
52788
52788
|
do {
|
|
52789
52789
|
more = s4.window_size - s4.lookahead - s4.strstart;
|
|
52790
52790
|
if (s4.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD2)) {
|
|
@@ -52793,16 +52793,16 @@ ${key}` : key, async () => {
|
|
|
52793
52793
|
s4.strstart -= _w_size;
|
|
52794
52794
|
s4.block_start -= _w_size;
|
|
52795
52795
|
n4 = s4.hash_size;
|
|
52796
|
-
|
|
52796
|
+
p14 = n4;
|
|
52797
52797
|
do {
|
|
52798
|
-
m4 = s4.head[--
|
|
52799
|
-
s4.head[
|
|
52798
|
+
m4 = s4.head[--p14];
|
|
52799
|
+
s4.head[p14] = m4 >= _w_size ? m4 - _w_size : 0;
|
|
52800
52800
|
} while (--n4);
|
|
52801
52801
|
n4 = _w_size;
|
|
52802
|
-
|
|
52802
|
+
p14 = n4;
|
|
52803
52803
|
do {
|
|
52804
|
-
m4 = s4.prev[--
|
|
52805
|
-
s4.prev[
|
|
52804
|
+
m4 = s4.prev[--p14];
|
|
52805
|
+
s4.prev[p14] = m4 >= _w_size ? m4 - _w_size : 0;
|
|
52806
52806
|
} while (--n4);
|
|
52807
52807
|
more += _w_size;
|
|
52808
52808
|
}
|
|
@@ -58812,12 +58812,12 @@ ${key}` : key, async () => {
|
|
|
58812
58812
|
return v5;
|
|
58813
58813
|
}
|
|
58814
58814
|
function resolveSchema(root, ref) {
|
|
58815
|
-
var
|
|
58815
|
+
var p14 = URI.parse(ref), refPath = _getFullPath(p14), baseId = getFullPath(this._getId(root.schema));
|
|
58816
58816
|
if (Object.keys(root.schema).length === 0 || refPath !== baseId) {
|
|
58817
58817
|
var id = normalizeId(refPath);
|
|
58818
58818
|
var refVal = this._refs[id];
|
|
58819
58819
|
if (typeof refVal == "string") {
|
|
58820
|
-
return resolveRecursive.call(this, root, refVal,
|
|
58820
|
+
return resolveRecursive.call(this, root, refVal, p14);
|
|
58821
58821
|
} else if (refVal instanceof SchemaObject) {
|
|
58822
58822
|
if (!refVal.validate) this._compile(refVal);
|
|
58823
58823
|
root = refVal;
|
|
@@ -58835,7 +58835,7 @@ ${key}` : key, async () => {
|
|
|
58835
58835
|
if (!root.schema) return;
|
|
58836
58836
|
baseId = getFullPath(this._getId(root.schema));
|
|
58837
58837
|
}
|
|
58838
|
-
return getJsonPointer.call(this,
|
|
58838
|
+
return getJsonPointer.call(this, p14, baseId, root.schema, root);
|
|
58839
58839
|
}
|
|
58840
58840
|
function resolveRecursive(root, ref, parsedRef) {
|
|
58841
58841
|
var res = resolveSchema.call(this, root, ref);
|
|
@@ -58940,11 +58940,11 @@ ${key}` : key, async () => {
|
|
|
58940
58940
|
}
|
|
58941
58941
|
function getFullPath(id, normalize2) {
|
|
58942
58942
|
if (normalize2 !== false) id = normalizeId(id);
|
|
58943
|
-
var
|
|
58944
|
-
return _getFullPath(
|
|
58943
|
+
var p14 = URI.parse(id);
|
|
58944
|
+
return _getFullPath(p14);
|
|
58945
58945
|
}
|
|
58946
|
-
function _getFullPath(
|
|
58947
|
-
return URI.serialize(
|
|
58946
|
+
function _getFullPath(p14) {
|
|
58947
|
+
return URI.serialize(p14).split("#")[0] + "#";
|
|
58948
58948
|
}
|
|
58949
58949
|
var TRAILING_SLASH_HASH = /#\/?$/;
|
|
58950
58950
|
function normalizeId(id) {
|
|
@@ -61832,8 +61832,8 @@ ${key}` : key, async () => {
|
|
|
61832
61832
|
if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) {
|
|
61833
61833
|
var $requiredHash = it.util.toHash($required);
|
|
61834
61834
|
}
|
|
61835
|
-
function notProto(
|
|
61836
|
-
return
|
|
61835
|
+
function notProto(p14) {
|
|
61836
|
+
return p14 !== "__proto__";
|
|
61837
61837
|
}
|
|
61838
61838
|
out += "var " + $errs + " = errors;var " + $nextValid + " = true;";
|
|
61839
61839
|
if ($ownProperties) {
|
|
@@ -62768,19 +62768,19 @@ ${key}` : key, async () => {
|
|
|
62768
62768
|
callback = meta;
|
|
62769
62769
|
meta = void 0;
|
|
62770
62770
|
}
|
|
62771
|
-
var
|
|
62771
|
+
var p14 = loadMetaSchemaOf(schema).then(function() {
|
|
62772
62772
|
var schemaObj = self2._addSchema(schema, void 0, meta);
|
|
62773
62773
|
return schemaObj.validate || _compileAsync(schemaObj);
|
|
62774
62774
|
});
|
|
62775
62775
|
if (callback) {
|
|
62776
|
-
|
|
62776
|
+
p14.then(
|
|
62777
62777
|
function(v5) {
|
|
62778
62778
|
callback(null, v5);
|
|
62779
62779
|
},
|
|
62780
62780
|
callback
|
|
62781
62781
|
);
|
|
62782
62782
|
}
|
|
62783
|
-
return
|
|
62783
|
+
return p14;
|
|
62784
62784
|
function loadMetaSchemaOf(sch) {
|
|
62785
62785
|
var $schema = sch.$schema;
|
|
62786
62786
|
return $schema && !self2.getSchema($schema) ? compileAsync.call(self2, { $ref: $schema }, true) : Promise.resolve();
|
|
@@ -65848,12 +65848,12 @@ ${key}` : key, async () => {
|
|
|
65848
65848
|
});
|
|
65849
65849
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
65850
65850
|
}
|
|
65851
|
-
function _setPrototypeOf(o4,
|
|
65852
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o5,
|
|
65853
|
-
o5.__proto__ =
|
|
65851
|
+
function _setPrototypeOf(o4, p14) {
|
|
65852
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o5, p15) {
|
|
65853
|
+
o5.__proto__ = p15;
|
|
65854
65854
|
return o5;
|
|
65855
65855
|
};
|
|
65856
|
-
return _setPrototypeOf(o4,
|
|
65856
|
+
return _setPrototypeOf(o4, p14);
|
|
65857
65857
|
}
|
|
65858
65858
|
function _createSuper(Derived) {
|
|
65859
65859
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
@@ -66204,12 +66204,12 @@ ${key}` : key, async () => {
|
|
|
66204
66204
|
function _isNativeFunction(fn) {
|
|
66205
66205
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
66206
66206
|
}
|
|
66207
|
-
function _setPrototypeOf(o4,
|
|
66208
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o5,
|
|
66209
|
-
o5.__proto__ =
|
|
66207
|
+
function _setPrototypeOf(o4, p14) {
|
|
66208
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o5, p15) {
|
|
66209
|
+
o5.__proto__ = p15;
|
|
66210
66210
|
return o5;
|
|
66211
66211
|
};
|
|
66212
|
-
return _setPrototypeOf(o4,
|
|
66212
|
+
return _setPrototypeOf(o4, p14);
|
|
66213
66213
|
}
|
|
66214
66214
|
function _getPrototypeOf(o4) {
|
|
66215
66215
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o5) {
|
|
@@ -68698,20 +68698,20 @@ ${key}` : key, async () => {
|
|
|
68698
68698
|
validateProtocol(protocol) {
|
|
68699
68699
|
let valid = this.ajv.validate("protocol", protocol);
|
|
68700
68700
|
assert2.ok(valid, JSON.stringify(this.ajv.errors, null, 2));
|
|
68701
|
-
function validateTypes(
|
|
68701
|
+
function validateTypes(p14, originalValidator, path) {
|
|
68702
68702
|
const v5 = new _Validator(originalValidator.typesSchemas);
|
|
68703
|
-
Object.keys(
|
|
68703
|
+
Object.keys(p14).forEach((k4) => {
|
|
68704
68704
|
if (k4 == "types") {
|
|
68705
|
-
Object.keys(
|
|
68706
|
-
Object.keys(
|
|
68705
|
+
Object.keys(p14[k4]).forEach((typeName) => v5.addType(typeName));
|
|
68706
|
+
Object.keys(p14[k4]).forEach((typeName) => {
|
|
68707
68707
|
try {
|
|
68708
|
-
v5.validateType(
|
|
68708
|
+
v5.validateType(p14[k4][typeName], path + "." + k4 + "." + typeName);
|
|
68709
68709
|
} catch (e6) {
|
|
68710
68710
|
throw new Error("Error at " + path + "." + k4 + "." + typeName);
|
|
68711
68711
|
}
|
|
68712
68712
|
});
|
|
68713
68713
|
} else {
|
|
68714
|
-
validateTypes(
|
|
68714
|
+
validateTypes(p14[k4], v5, path + "." + k4);
|
|
68715
68715
|
}
|
|
68716
68716
|
});
|
|
68717
68717
|
}
|
|
@@ -72090,20 +72090,20 @@ ${key}` : key, async () => {
|
|
|
72090
72090
|
}
|
|
72091
72091
|
join(s4) {
|
|
72092
72092
|
if (this.length === 0) return "";
|
|
72093
|
-
let
|
|
72094
|
-
let ret = "" +
|
|
72095
|
-
while ((
|
|
72093
|
+
let p14 = this.head;
|
|
72094
|
+
let ret = "" + p14.data;
|
|
72095
|
+
while ((p14 = p14.next) !== null) ret += s4 + p14.data;
|
|
72096
72096
|
return ret;
|
|
72097
72097
|
}
|
|
72098
72098
|
concat(n4) {
|
|
72099
72099
|
if (this.length === 0) return Buffer2.alloc(0);
|
|
72100
72100
|
const ret = Buffer2.allocUnsafe(n4 >>> 0);
|
|
72101
|
-
let
|
|
72101
|
+
let p14 = this.head;
|
|
72102
72102
|
let i4 = 0;
|
|
72103
|
-
while (
|
|
72104
|
-
TypedArrayPrototypeSet(ret,
|
|
72105
|
-
i4 +=
|
|
72106
|
-
|
|
72103
|
+
while (p14) {
|
|
72104
|
+
TypedArrayPrototypeSet(ret, p14.data, i4);
|
|
72105
|
+
i4 += p14.data.length;
|
|
72106
|
+
p14 = p14.next;
|
|
72107
72107
|
}
|
|
72108
72108
|
return ret;
|
|
72109
72109
|
}
|
|
@@ -72124,17 +72124,17 @@ ${key}` : key, async () => {
|
|
|
72124
72124
|
return this.head.data;
|
|
72125
72125
|
}
|
|
72126
72126
|
*[SymbolIterator]() {
|
|
72127
|
-
for (let
|
|
72128
|
-
yield
|
|
72127
|
+
for (let p14 = this.head; p14; p14 = p14.next) {
|
|
72128
|
+
yield p14.data;
|
|
72129
72129
|
}
|
|
72130
72130
|
}
|
|
72131
72131
|
// Consumes a specified amount of characters from the buffered data.
|
|
72132
72132
|
_getString(n4) {
|
|
72133
72133
|
let ret = "";
|
|
72134
|
-
let
|
|
72134
|
+
let p14 = this.head;
|
|
72135
72135
|
let c4 = 0;
|
|
72136
72136
|
do {
|
|
72137
|
-
const str =
|
|
72137
|
+
const str = p14.data;
|
|
72138
72138
|
if (n4 > str.length) {
|
|
72139
72139
|
ret += str;
|
|
72140
72140
|
n4 -= str.length;
|
|
@@ -72142,17 +72142,17 @@ ${key}` : key, async () => {
|
|
|
72142
72142
|
if (n4 === str.length) {
|
|
72143
72143
|
ret += str;
|
|
72144
72144
|
++c4;
|
|
72145
|
-
if (
|
|
72145
|
+
if (p14.next) this.head = p14.next;
|
|
72146
72146
|
else this.head = this.tail = null;
|
|
72147
72147
|
} else {
|
|
72148
72148
|
ret += StringPrototypeSlice(str, 0, n4);
|
|
72149
|
-
this.head =
|
|
72150
|
-
|
|
72149
|
+
this.head = p14;
|
|
72150
|
+
p14.data = StringPrototypeSlice(str, n4);
|
|
72151
72151
|
}
|
|
72152
72152
|
break;
|
|
72153
72153
|
}
|
|
72154
72154
|
++c4;
|
|
72155
|
-
} while ((
|
|
72155
|
+
} while ((p14 = p14.next) !== null);
|
|
72156
72156
|
this.length -= c4;
|
|
72157
72157
|
return ret;
|
|
72158
72158
|
}
|
|
@@ -72160,10 +72160,10 @@ ${key}` : key, async () => {
|
|
|
72160
72160
|
_getBuffer(n4) {
|
|
72161
72161
|
const ret = Buffer2.allocUnsafe(n4);
|
|
72162
72162
|
const retLen = n4;
|
|
72163
|
-
let
|
|
72163
|
+
let p14 = this.head;
|
|
72164
72164
|
let c4 = 0;
|
|
72165
72165
|
do {
|
|
72166
|
-
const buf =
|
|
72166
|
+
const buf = p14.data;
|
|
72167
72167
|
if (n4 > buf.length) {
|
|
72168
72168
|
TypedArrayPrototypeSet(ret, buf, retLen - n4);
|
|
72169
72169
|
n4 -= buf.length;
|
|
@@ -72171,17 +72171,17 @@ ${key}` : key, async () => {
|
|
|
72171
72171
|
if (n4 === buf.length) {
|
|
72172
72172
|
TypedArrayPrototypeSet(ret, buf, retLen - n4);
|
|
72173
72173
|
++c4;
|
|
72174
|
-
if (
|
|
72174
|
+
if (p14.next) this.head = p14.next;
|
|
72175
72175
|
else this.head = this.tail = null;
|
|
72176
72176
|
} else {
|
|
72177
72177
|
TypedArrayPrototypeSet(ret, new Uint8Array2(buf.buffer, buf.byteOffset, n4), retLen - n4);
|
|
72178
|
-
this.head =
|
|
72179
|
-
|
|
72178
|
+
this.head = p14;
|
|
72179
|
+
p14.data = buf.slice(n4);
|
|
72180
72180
|
}
|
|
72181
72181
|
break;
|
|
72182
72182
|
}
|
|
72183
72183
|
++c4;
|
|
72184
|
-
} while ((
|
|
72184
|
+
} while ((p14 = p14.next) !== null);
|
|
72185
72185
|
this.length -= c4;
|
|
72186
72186
|
return ret;
|
|
72187
72187
|
}
|
|
@@ -72449,7 +72449,7 @@ ${key}` : key, async () => {
|
|
|
72449
72449
|
}
|
|
72450
72450
|
return 0;
|
|
72451
72451
|
}
|
|
72452
|
-
function utf8CheckExtraBytes(self2, buf,
|
|
72452
|
+
function utf8CheckExtraBytes(self2, buf, p14) {
|
|
72453
72453
|
if ((buf[0] & 192) !== 128) {
|
|
72454
72454
|
self2.lastNeed = 0;
|
|
72455
72455
|
return "\uFFFD";
|
|
@@ -72468,14 +72468,14 @@ ${key}` : key, async () => {
|
|
|
72468
72468
|
}
|
|
72469
72469
|
}
|
|
72470
72470
|
function utf8FillLast(buf) {
|
|
72471
|
-
var
|
|
72472
|
-
var r5 = utf8CheckExtraBytes(this, buf,
|
|
72471
|
+
var p14 = this.lastTotal - this.lastNeed;
|
|
72472
|
+
var r5 = utf8CheckExtraBytes(this, buf, p14);
|
|
72473
72473
|
if (r5 !== void 0) return r5;
|
|
72474
72474
|
if (this.lastNeed <= buf.length) {
|
|
72475
|
-
buf.copy(this.lastChar,
|
|
72475
|
+
buf.copy(this.lastChar, p14, 0, this.lastNeed);
|
|
72476
72476
|
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
72477
72477
|
}
|
|
72478
|
-
buf.copy(this.lastChar,
|
|
72478
|
+
buf.copy(this.lastChar, p14, 0, buf.length);
|
|
72479
72479
|
this.lastNeed -= buf.length;
|
|
72480
72480
|
}
|
|
72481
72481
|
function utf8Text(buf, i4) {
|
|
@@ -78056,7 +78056,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
78056
78056
|
});
|
|
78057
78057
|
|
|
78058
78058
|
// src/assets/source/HostedAssetSource.ts
|
|
78059
|
-
var import_ts_deepmerge2,
|
|
78059
|
+
var import_ts_deepmerge2, p7, DEFAULT_OPTIONS2, _HostedAssetSource, HostedAssetSource;
|
|
78060
78060
|
var init_HostedAssetSource = __esm({
|
|
78061
78061
|
"src/assets/source/HostedAssetSource.ts"() {
|
|
78062
78062
|
init_dirname();
|
|
@@ -78072,7 +78072,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
78072
78072
|
init_AssetLoader();
|
|
78073
78073
|
init_parser();
|
|
78074
78074
|
import_ts_deepmerge2 = __toESM(require_dist());
|
|
78075
|
-
|
|
78075
|
+
p7 = prefix("HostedAssetSource");
|
|
78076
78076
|
DEFAULT_OPTIONS2 = {
|
|
78077
78077
|
retryDefaults: true
|
|
78078
78078
|
};
|
|
@@ -78084,14 +78084,14 @@ return ${compiler2.callType("value", tagType)}
|
|
|
78084
78084
|
return direct;
|
|
78085
78085
|
}
|
|
78086
78086
|
if (key.namespace !== DEFAULT_NAMESPACE) {
|
|
78087
|
-
console.info(
|
|
78087
|
+
console.info(p7, "Retrying", key, "with default namespace");
|
|
78088
78088
|
const namespaceKey = new AssetKey(DEFAULT_NAMESPACE, key.path, key.assetType, key.type, key.rootType, key.extension, key.root);
|
|
78089
78089
|
const namespaced = await this.load(namespaceKey, parser);
|
|
78090
78090
|
if (typeof namespaced !== "undefined") {
|
|
78091
78091
|
return namespaced;
|
|
78092
78092
|
}
|
|
78093
78093
|
if (typeof key.root !== "undefined" && key.root !== AssetLoader.ROOT || typeof this.root !== "undefined" && this.root !== AssetLoader.ROOT) {
|
|
78094
|
-
console.info(
|
|
78094
|
+
console.info(p7, "Retrying", key, "with default root+namespace");
|
|
78095
78095
|
const namespacedRootedKey = new AssetKey(DEFAULT_NAMESPACE, key.path, key.assetType, key.type, key.rootType, key.extension, AssetLoader.ROOT);
|
|
78096
78096
|
const namespacedRooted = await this.load(namespacedRootedKey, parser);
|
|
78097
78097
|
if (typeof namespacedRooted !== "undefined") {
|
|
@@ -78099,7 +78099,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
78099
78099
|
}
|
|
78100
78100
|
}
|
|
78101
78101
|
} else if (typeof key.root !== "undefined" && key.root !== AssetLoader.ROOT || typeof this.root !== "undefined" && this.root !== AssetLoader.ROOT) {
|
|
78102
|
-
console.info(
|
|
78102
|
+
console.info(p7, "Retrying", key, "with default root");
|
|
78103
78103
|
const rootKey = new AssetKey(key.namespace, key.path, key.assetType, key.type, key.rootType, key.extension, AssetLoader.ROOT);
|
|
78104
78104
|
const rooted = await this.load(rootKey, parser);
|
|
78105
78105
|
if (typeof rooted !== "undefined") {
|
|
@@ -78109,9 +78109,9 @@ return ${compiler2.callType("value", tagType)}
|
|
|
78109
78109
|
return void 0;
|
|
78110
78110
|
}
|
|
78111
78111
|
async load(key, parser) {
|
|
78112
|
-
console.info(
|
|
78112
|
+
console.info(p7, "Loading", key);
|
|
78113
78113
|
const url = `${this.assetBasePath(key)}${key.type !== void 0 ? key.type + "/" : ""}${key.path}${key.extension}`;
|
|
78114
|
-
console.debug(
|
|
78114
|
+
console.debug(p7, url);
|
|
78115
78115
|
const request = { url };
|
|
78116
78116
|
try {
|
|
78117
78117
|
parser.config(request);
|
|
@@ -78547,8 +78547,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
78547
78547
|
that.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;
|
|
78548
78548
|
return max_blindex;
|
|
78549
78549
|
}
|
|
78550
|
-
function put_byte(
|
|
78551
|
-
that.pending_buf[that.pending++] =
|
|
78550
|
+
function put_byte(p14) {
|
|
78551
|
+
that.pending_buf[that.pending++] = p14;
|
|
78552
78552
|
}
|
|
78553
78553
|
function put_short(w4) {
|
|
78554
78554
|
put_byte(w4 & 255);
|
|
@@ -78777,7 +78777,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
78777
78777
|
}
|
|
78778
78778
|
function fill_window() {
|
|
78779
78779
|
let n4, m4;
|
|
78780
|
-
let
|
|
78780
|
+
let p14;
|
|
78781
78781
|
let more;
|
|
78782
78782
|
do {
|
|
78783
78783
|
more = window_size - lookahead - strstart;
|
|
@@ -78791,16 +78791,16 @@ return ${compiler2.callType("value", tagType)}
|
|
|
78791
78791
|
strstart -= w_size;
|
|
78792
78792
|
block_start -= w_size;
|
|
78793
78793
|
n4 = hash_size;
|
|
78794
|
-
|
|
78794
|
+
p14 = n4;
|
|
78795
78795
|
do {
|
|
78796
|
-
m4 = head[--
|
|
78797
|
-
head[
|
|
78796
|
+
m4 = head[--p14] & 65535;
|
|
78797
|
+
head[p14] = m4 >= w_size ? m4 - w_size : 0;
|
|
78798
78798
|
} while (--n4 !== 0);
|
|
78799
78799
|
n4 = w_size;
|
|
78800
|
-
|
|
78800
|
+
p14 = n4;
|
|
78801
78801
|
do {
|
|
78802
|
-
m4 = prev[--
|
|
78803
|
-
prev[
|
|
78802
|
+
m4 = prev[--p14] & 65535;
|
|
78803
|
+
prev[p14] = m4 >= w_size ? m4 - w_size : 0;
|
|
78804
78804
|
} while (--n4 !== 0);
|
|
78805
78805
|
more += w_size;
|
|
78806
78806
|
}
|
|
@@ -79873,17 +79873,17 @@ return ${compiler2.callType("value", tagType)}
|
|
|
79873
79873
|
let k4;
|
|
79874
79874
|
let l4;
|
|
79875
79875
|
let mask;
|
|
79876
|
-
let
|
|
79876
|
+
let p14;
|
|
79877
79877
|
let q3;
|
|
79878
79878
|
let w4;
|
|
79879
79879
|
let xp;
|
|
79880
79880
|
let y5;
|
|
79881
79881
|
let z4;
|
|
79882
|
-
|
|
79882
|
+
p14 = 0;
|
|
79883
79883
|
i4 = n4;
|
|
79884
79884
|
do {
|
|
79885
|
-
c4[b4[bindex +
|
|
79886
|
-
|
|
79885
|
+
c4[b4[bindex + p14]]++;
|
|
79886
|
+
p14++;
|
|
79887
79887
|
i4--;
|
|
79888
79888
|
} while (i4 !== 0);
|
|
79889
79889
|
if (c4[0] == n4) {
|
|
@@ -79918,24 +79918,24 @@ return ${compiler2.callType("value", tagType)}
|
|
|
79918
79918
|
}
|
|
79919
79919
|
c4[i4] += y5;
|
|
79920
79920
|
x4[1] = j4 = 0;
|
|
79921
|
-
|
|
79921
|
+
p14 = 1;
|
|
79922
79922
|
xp = 2;
|
|
79923
79923
|
while (--i4 !== 0) {
|
|
79924
|
-
x4[xp] = j4 += c4[
|
|
79924
|
+
x4[xp] = j4 += c4[p14];
|
|
79925
79925
|
xp++;
|
|
79926
|
-
|
|
79926
|
+
p14++;
|
|
79927
79927
|
}
|
|
79928
79928
|
i4 = 0;
|
|
79929
|
-
|
|
79929
|
+
p14 = 0;
|
|
79930
79930
|
do {
|
|
79931
|
-
if ((j4 = b4[bindex +
|
|
79931
|
+
if ((j4 = b4[bindex + p14]) !== 0) {
|
|
79932
79932
|
v6[x4[j4]++] = i4;
|
|
79933
79933
|
}
|
|
79934
|
-
|
|
79934
|
+
p14++;
|
|
79935
79935
|
} while (++i4 < n4);
|
|
79936
79936
|
n4 = x4[g4];
|
|
79937
79937
|
x4[0] = i4 = 0;
|
|
79938
|
-
|
|
79938
|
+
p14 = 0;
|
|
79939
79939
|
h5 = -1;
|
|
79940
79940
|
w4 = -l4;
|
|
79941
79941
|
u4[0] = 0;
|
|
@@ -79983,16 +79983,16 @@ return ${compiler2.callType("value", tagType)}
|
|
|
79983
79983
|
}
|
|
79984
79984
|
r5[1] = /* (byte) */
|
|
79985
79985
|
k4 - w4;
|
|
79986
|
-
if (
|
|
79986
|
+
if (p14 >= n4) {
|
|
79987
79987
|
r5[0] = 128 + 64;
|
|
79988
|
-
} else if (v6[
|
|
79988
|
+
} else if (v6[p14] < s4) {
|
|
79989
79989
|
r5[0] = /* (byte) */
|
|
79990
|
-
v6[
|
|
79991
|
-
r5[2] = v6[
|
|
79990
|
+
v6[p14] < 256 ? 0 : 32 + 64;
|
|
79991
|
+
r5[2] = v6[p14++];
|
|
79992
79992
|
} else {
|
|
79993
79993
|
r5[0] = /* (byte) */
|
|
79994
|
-
e6[v6[
|
|
79995
|
-
r5[2] = d4[v6[
|
|
79994
|
+
e6[v6[p14] - s4] + 16 + 64;
|
|
79995
|
+
r5[2] = d4[v6[p14++] - s4];
|
|
79996
79996
|
}
|
|
79997
79997
|
f4 = 1 << k4 - w4;
|
|
79998
79998
|
for (j4 = i4 >>> w4; j4 < z4; j4 += f4) {
|
|
@@ -80104,7 +80104,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80104
80104
|
let e6;
|
|
80105
80105
|
let b4;
|
|
80106
80106
|
let k4;
|
|
80107
|
-
let
|
|
80107
|
+
let p14;
|
|
80108
80108
|
let n4;
|
|
80109
80109
|
let q3;
|
|
80110
80110
|
let m4;
|
|
@@ -80114,7 +80114,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80114
80114
|
let d4;
|
|
80115
80115
|
let r5;
|
|
80116
80116
|
let tp_index_t_3;
|
|
80117
|
-
|
|
80117
|
+
p14 = z4.next_in_index;
|
|
80118
80118
|
n4 = z4.avail_in;
|
|
80119
80119
|
b4 = s4.bitb;
|
|
80120
80120
|
k4 = s4.bitk;
|
|
@@ -80125,7 +80125,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80125
80125
|
do {
|
|
80126
80126
|
while (k4 < 20) {
|
|
80127
80127
|
n4--;
|
|
80128
|
-
b4 |= (z4.read_byte(
|
|
80128
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
80129
80129
|
k4 += 8;
|
|
80130
80130
|
}
|
|
80131
80131
|
t5 = b4 & ml;
|
|
@@ -80151,7 +80151,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80151
80151
|
k4 -= e6;
|
|
80152
80152
|
while (k4 < 15) {
|
|
80153
80153
|
n4--;
|
|
80154
|
-
b4 |= (z4.read_byte(
|
|
80154
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
80155
80155
|
k4 += 8;
|
|
80156
80156
|
}
|
|
80157
80157
|
t5 = b4 & md;
|
|
@@ -80166,7 +80166,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80166
80166
|
e6 &= 15;
|
|
80167
80167
|
while (k4 < e6) {
|
|
80168
80168
|
n4--;
|
|
80169
|
-
b4 |= (z4.read_byte(
|
|
80169
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
80170
80170
|
k4 += 8;
|
|
80171
80171
|
}
|
|
80172
80172
|
d4 = tp[tp_index_t_3 + 2] + (b4 & inflate_mask[e6]);
|
|
@@ -80227,13 +80227,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80227
80227
|
c4 = z4.avail_in - n4;
|
|
80228
80228
|
c4 = k4 >> 3 < c4 ? k4 >> 3 : c4;
|
|
80229
80229
|
n4 += c4;
|
|
80230
|
-
|
|
80230
|
+
p14 -= c4;
|
|
80231
80231
|
k4 -= c4 << 3;
|
|
80232
80232
|
s4.bitb = b4;
|
|
80233
80233
|
s4.bitk = k4;
|
|
80234
80234
|
z4.avail_in = n4;
|
|
80235
|
-
z4.total_in +=
|
|
80236
|
-
z4.next_in_index =
|
|
80235
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80236
|
+
z4.next_in_index = p14;
|
|
80237
80237
|
s4.write = q3;
|
|
80238
80238
|
return Z_DATA_ERROR3;
|
|
80239
80239
|
}
|
|
@@ -80256,13 +80256,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80256
80256
|
c4 = z4.avail_in - n4;
|
|
80257
80257
|
c4 = k4 >> 3 < c4 ? k4 >> 3 : c4;
|
|
80258
80258
|
n4 += c4;
|
|
80259
|
-
|
|
80259
|
+
p14 -= c4;
|
|
80260
80260
|
k4 -= c4 << 3;
|
|
80261
80261
|
s4.bitb = b4;
|
|
80262
80262
|
s4.bitk = k4;
|
|
80263
80263
|
z4.avail_in = n4;
|
|
80264
|
-
z4.total_in +=
|
|
80265
|
-
z4.next_in_index =
|
|
80264
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80265
|
+
z4.next_in_index = p14;
|
|
80266
80266
|
s4.write = q3;
|
|
80267
80267
|
return Z_STREAM_END3;
|
|
80268
80268
|
} else {
|
|
@@ -80270,13 +80270,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80270
80270
|
c4 = z4.avail_in - n4;
|
|
80271
80271
|
c4 = k4 >> 3 < c4 ? k4 >> 3 : c4;
|
|
80272
80272
|
n4 += c4;
|
|
80273
|
-
|
|
80273
|
+
p14 -= c4;
|
|
80274
80274
|
k4 -= c4 << 3;
|
|
80275
80275
|
s4.bitb = b4;
|
|
80276
80276
|
s4.bitk = k4;
|
|
80277
80277
|
z4.avail_in = n4;
|
|
80278
|
-
z4.total_in +=
|
|
80279
|
-
z4.next_in_index =
|
|
80278
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80279
|
+
z4.next_in_index = p14;
|
|
80280
80280
|
s4.write = q3;
|
|
80281
80281
|
return Z_DATA_ERROR3;
|
|
80282
80282
|
}
|
|
@@ -80285,13 +80285,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80285
80285
|
c4 = z4.avail_in - n4;
|
|
80286
80286
|
c4 = k4 >> 3 < c4 ? k4 >> 3 : c4;
|
|
80287
80287
|
n4 += c4;
|
|
80288
|
-
|
|
80288
|
+
p14 -= c4;
|
|
80289
80289
|
k4 -= c4 << 3;
|
|
80290
80290
|
s4.bitb = b4;
|
|
80291
80291
|
s4.bitk = k4;
|
|
80292
80292
|
z4.avail_in = n4;
|
|
80293
|
-
z4.total_in +=
|
|
80294
|
-
z4.next_in_index =
|
|
80293
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80294
|
+
z4.next_in_index = p14;
|
|
80295
80295
|
s4.write = q3;
|
|
80296
80296
|
return Z_OK3;
|
|
80297
80297
|
}
|
|
@@ -80313,12 +80313,12 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80313
80313
|
let e6;
|
|
80314
80314
|
let b4 = 0;
|
|
80315
80315
|
let k4 = 0;
|
|
80316
|
-
let
|
|
80316
|
+
let p14 = 0;
|
|
80317
80317
|
let n4;
|
|
80318
80318
|
let q3;
|
|
80319
80319
|
let m4;
|
|
80320
80320
|
let f4;
|
|
80321
|
-
|
|
80321
|
+
p14 = z4.next_in_index;
|
|
80322
80322
|
n4 = z4.avail_in;
|
|
80323
80323
|
b4 = s4.bitb;
|
|
80324
80324
|
k4 = s4.bitk;
|
|
@@ -80332,11 +80332,11 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80332
80332
|
s4.bitb = b4;
|
|
80333
80333
|
s4.bitk = k4;
|
|
80334
80334
|
z4.avail_in = n4;
|
|
80335
|
-
z4.total_in +=
|
|
80336
|
-
z4.next_in_index =
|
|
80335
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80336
|
+
z4.next_in_index = p14;
|
|
80337
80337
|
s4.write = q3;
|
|
80338
80338
|
r5 = inflate_fast(lbits, dbits, ltree, ltree_index, dtree, dtree_index, s4, z4);
|
|
80339
|
-
|
|
80339
|
+
p14 = z4.next_in_index;
|
|
80340
80340
|
n4 = z4.avail_in;
|
|
80341
80341
|
b4 = s4.bitb;
|
|
80342
80342
|
k4 = s4.bitk;
|
|
@@ -80361,13 +80361,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80361
80361
|
s4.bitb = b4;
|
|
80362
80362
|
s4.bitk = k4;
|
|
80363
80363
|
z4.avail_in = n4;
|
|
80364
|
-
z4.total_in +=
|
|
80365
|
-
z4.next_in_index =
|
|
80364
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80365
|
+
z4.next_in_index = p14;
|
|
80366
80366
|
s4.write = q3;
|
|
80367
80367
|
return s4.inflate_flush(z4, r5);
|
|
80368
80368
|
}
|
|
80369
80369
|
n4--;
|
|
80370
|
-
b4 |= (z4.read_byte(
|
|
80370
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
80371
80371
|
k4 += 8;
|
|
80372
80372
|
}
|
|
80373
80373
|
tindex = (tree_index + (b4 & inflate_mask[j4])) * 3;
|
|
@@ -80400,8 +80400,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80400
80400
|
s4.bitb = b4;
|
|
80401
80401
|
s4.bitk = k4;
|
|
80402
80402
|
z4.avail_in = n4;
|
|
80403
|
-
z4.total_in +=
|
|
80404
|
-
z4.next_in_index =
|
|
80403
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80404
|
+
z4.next_in_index = p14;
|
|
80405
80405
|
s4.write = q3;
|
|
80406
80406
|
return s4.inflate_flush(z4, r5);
|
|
80407
80407
|
case LENEXT:
|
|
@@ -80413,13 +80413,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80413
80413
|
s4.bitb = b4;
|
|
80414
80414
|
s4.bitk = k4;
|
|
80415
80415
|
z4.avail_in = n4;
|
|
80416
|
-
z4.total_in +=
|
|
80417
|
-
z4.next_in_index =
|
|
80416
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80417
|
+
z4.next_in_index = p14;
|
|
80418
80418
|
s4.write = q3;
|
|
80419
80419
|
return s4.inflate_flush(z4, r5);
|
|
80420
80420
|
}
|
|
80421
80421
|
n4--;
|
|
80422
|
-
b4 |= (z4.read_byte(
|
|
80422
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
80423
80423
|
k4 += 8;
|
|
80424
80424
|
}
|
|
80425
80425
|
len += b4 & inflate_mask[j4];
|
|
@@ -80439,13 +80439,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80439
80439
|
s4.bitb = b4;
|
|
80440
80440
|
s4.bitk = k4;
|
|
80441
80441
|
z4.avail_in = n4;
|
|
80442
|
-
z4.total_in +=
|
|
80443
|
-
z4.next_in_index =
|
|
80442
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80443
|
+
z4.next_in_index = p14;
|
|
80444
80444
|
s4.write = q3;
|
|
80445
80445
|
return s4.inflate_flush(z4, r5);
|
|
80446
80446
|
}
|
|
80447
80447
|
n4--;
|
|
80448
|
-
b4 |= (z4.read_byte(
|
|
80448
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
80449
80449
|
k4 += 8;
|
|
80450
80450
|
}
|
|
80451
80451
|
tindex = (tree_index + (b4 & inflate_mask[j4])) * 3;
|
|
@@ -80469,8 +80469,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80469
80469
|
s4.bitb = b4;
|
|
80470
80470
|
s4.bitk = k4;
|
|
80471
80471
|
z4.avail_in = n4;
|
|
80472
|
-
z4.total_in +=
|
|
80473
|
-
z4.next_in_index =
|
|
80472
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80473
|
+
z4.next_in_index = p14;
|
|
80474
80474
|
s4.write = q3;
|
|
80475
80475
|
return s4.inflate_flush(z4, r5);
|
|
80476
80476
|
case DISTEXT:
|
|
@@ -80482,13 +80482,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80482
80482
|
s4.bitb = b4;
|
|
80483
80483
|
s4.bitk = k4;
|
|
80484
80484
|
z4.avail_in = n4;
|
|
80485
|
-
z4.total_in +=
|
|
80486
|
-
z4.next_in_index =
|
|
80485
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80486
|
+
z4.next_in_index = p14;
|
|
80487
80487
|
s4.write = q3;
|
|
80488
80488
|
return s4.inflate_flush(z4, r5);
|
|
80489
80489
|
}
|
|
80490
80490
|
n4--;
|
|
80491
|
-
b4 |= (z4.read_byte(
|
|
80491
|
+
b4 |= (z4.read_byte(p14++) & 255) << k4;
|
|
80492
80492
|
k4 += 8;
|
|
80493
80493
|
}
|
|
80494
80494
|
dist += b4 & inflate_mask[j4];
|
|
@@ -80520,8 +80520,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80520
80520
|
s4.bitb = b4;
|
|
80521
80521
|
s4.bitk = k4;
|
|
80522
80522
|
z4.avail_in = n4;
|
|
80523
|
-
z4.total_in +=
|
|
80524
|
-
z4.next_in_index =
|
|
80523
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80524
|
+
z4.next_in_index = p14;
|
|
80525
80525
|
s4.write = q3;
|
|
80526
80526
|
return s4.inflate_flush(z4, r5);
|
|
80527
80527
|
}
|
|
@@ -80554,8 +80554,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80554
80554
|
s4.bitb = b4;
|
|
80555
80555
|
s4.bitk = k4;
|
|
80556
80556
|
z4.avail_in = n4;
|
|
80557
|
-
z4.total_in +=
|
|
80558
|
-
z4.next_in_index =
|
|
80557
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80558
|
+
z4.next_in_index = p14;
|
|
80559
80559
|
s4.write = q3;
|
|
80560
80560
|
return s4.inflate_flush(z4, r5);
|
|
80561
80561
|
}
|
|
@@ -80571,7 +80571,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80571
80571
|
if (k4 > 7) {
|
|
80572
80572
|
k4 -= 8;
|
|
80573
80573
|
n4++;
|
|
80574
|
-
|
|
80574
|
+
p14--;
|
|
80575
80575
|
}
|
|
80576
80576
|
s4.write = q3;
|
|
80577
80577
|
r5 = s4.inflate_flush(z4, r5);
|
|
@@ -80581,8 +80581,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80581
80581
|
s4.bitb = b4;
|
|
80582
80582
|
s4.bitk = k4;
|
|
80583
80583
|
z4.avail_in = n4;
|
|
80584
|
-
z4.total_in +=
|
|
80585
|
-
z4.next_in_index =
|
|
80584
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80585
|
+
z4.next_in_index = p14;
|
|
80586
80586
|
s4.write = q3;
|
|
80587
80587
|
return s4.inflate_flush(z4, r5);
|
|
80588
80588
|
}
|
|
@@ -80593,8 +80593,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80593
80593
|
s4.bitb = b4;
|
|
80594
80594
|
s4.bitk = k4;
|
|
80595
80595
|
z4.avail_in = n4;
|
|
80596
|
-
z4.total_in +=
|
|
80597
|
-
z4.next_in_index =
|
|
80596
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80597
|
+
z4.next_in_index = p14;
|
|
80598
80598
|
s4.write = q3;
|
|
80599
80599
|
return s4.inflate_flush(z4, r5);
|
|
80600
80600
|
case BADCODE:
|
|
@@ -80602,8 +80602,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80602
80602
|
s4.bitb = b4;
|
|
80603
80603
|
s4.bitk = k4;
|
|
80604
80604
|
z4.avail_in = n4;
|
|
80605
|
-
z4.total_in +=
|
|
80606
|
-
z4.next_in_index =
|
|
80605
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80606
|
+
z4.next_in_index = p14;
|
|
80607
80607
|
s4.write = q3;
|
|
80608
80608
|
return s4.inflate_flush(z4, r5);
|
|
80609
80609
|
default:
|
|
@@ -80611,8 +80611,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80611
80611
|
s4.bitb = b4;
|
|
80612
80612
|
s4.bitk = k4;
|
|
80613
80613
|
z4.avail_in = n4;
|
|
80614
|
-
z4.total_in +=
|
|
80615
|
-
z4.next_in_index =
|
|
80614
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
80615
|
+
z4.next_in_index = p14;
|
|
80616
80616
|
s4.write = q3;
|
|
80617
80617
|
return s4.inflate_flush(z4, r5);
|
|
80618
80618
|
}
|
|
@@ -80655,9 +80655,9 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80655
80655
|
that.reset(z4, null);
|
|
80656
80656
|
that.inflate_flush = function(z5, r5) {
|
|
80657
80657
|
let n4;
|
|
80658
|
-
let
|
|
80658
|
+
let p14;
|
|
80659
80659
|
let q3;
|
|
80660
|
-
|
|
80660
|
+
p14 = z5.next_out_index;
|
|
80661
80661
|
q3 = that.read;
|
|
80662
80662
|
n4 = /* (int) */
|
|
80663
80663
|
(q3 <= that.write ? that.write : that.end) - q3;
|
|
@@ -80667,8 +80667,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80667
80667
|
r5 = Z_OK3;
|
|
80668
80668
|
z5.avail_out -= n4;
|
|
80669
80669
|
z5.total_out += n4;
|
|
80670
|
-
z5.next_out.set(that.win.subarray(q3, q3 + n4),
|
|
80671
|
-
|
|
80670
|
+
z5.next_out.set(that.win.subarray(q3, q3 + n4), p14);
|
|
80671
|
+
p14 += n4;
|
|
80672
80672
|
q3 += n4;
|
|
80673
80673
|
if (q3 == that.end) {
|
|
80674
80674
|
q3 = 0;
|
|
@@ -80681,11 +80681,11 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80681
80681
|
r5 = Z_OK3;
|
|
80682
80682
|
z5.avail_out -= n4;
|
|
80683
80683
|
z5.total_out += n4;
|
|
80684
|
-
z5.next_out.set(that.win.subarray(q3, q3 + n4),
|
|
80685
|
-
|
|
80684
|
+
z5.next_out.set(that.win.subarray(q3, q3 + n4), p14);
|
|
80685
|
+
p14 += n4;
|
|
80686
80686
|
q3 += n4;
|
|
80687
80687
|
}
|
|
80688
|
-
z5.next_out_index =
|
|
80688
|
+
z5.next_out_index = p14;
|
|
80689
80689
|
that.read = q3;
|
|
80690
80690
|
return r5;
|
|
80691
80691
|
};
|
|
@@ -80693,12 +80693,12 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80693
80693
|
let t5;
|
|
80694
80694
|
let b4;
|
|
80695
80695
|
let k4;
|
|
80696
|
-
let
|
|
80696
|
+
let p14;
|
|
80697
80697
|
let n4;
|
|
80698
80698
|
let q3;
|
|
80699
80699
|
let m4;
|
|
80700
80700
|
let i4;
|
|
80701
|
-
|
|
80701
|
+
p14 = z5.next_in_index;
|
|
80702
80702
|
n4 = z5.avail_in;
|
|
80703
80703
|
b4 = that.bitb;
|
|
80704
80704
|
k4 = that.bitk;
|
|
@@ -80716,13 +80716,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80716
80716
|
that.bitb = b4;
|
|
80717
80717
|
that.bitk = k4;
|
|
80718
80718
|
z5.avail_in = n4;
|
|
80719
|
-
z5.total_in +=
|
|
80720
|
-
z5.next_in_index =
|
|
80719
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
80720
|
+
z5.next_in_index = p14;
|
|
80721
80721
|
that.write = q3;
|
|
80722
80722
|
return that.inflate_flush(z5, r5);
|
|
80723
80723
|
}
|
|
80724
80724
|
n4--;
|
|
80725
|
-
b4 |= (z5.read_byte(
|
|
80725
|
+
b4 |= (z5.read_byte(p14++) & 255) << k4;
|
|
80726
80726
|
k4 += 8;
|
|
80727
80727
|
}
|
|
80728
80728
|
t5 = /* (int) */
|
|
@@ -80762,8 +80762,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80762
80762
|
that.bitb = b4;
|
|
80763
80763
|
that.bitk = k4;
|
|
80764
80764
|
z5.avail_in = n4;
|
|
80765
|
-
z5.total_in +=
|
|
80766
|
-
z5.next_in_index =
|
|
80765
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
80766
|
+
z5.next_in_index = p14;
|
|
80767
80767
|
that.write = q3;
|
|
80768
80768
|
return that.inflate_flush(z5, r5);
|
|
80769
80769
|
}
|
|
@@ -80776,13 +80776,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80776
80776
|
that.bitb = b4;
|
|
80777
80777
|
that.bitk = k4;
|
|
80778
80778
|
z5.avail_in = n4;
|
|
80779
|
-
z5.total_in +=
|
|
80780
|
-
z5.next_in_index =
|
|
80779
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
80780
|
+
z5.next_in_index = p14;
|
|
80781
80781
|
that.write = q3;
|
|
80782
80782
|
return that.inflate_flush(z5, r5);
|
|
80783
80783
|
}
|
|
80784
80784
|
n4--;
|
|
80785
|
-
b4 |= (z5.read_byte(
|
|
80785
|
+
b4 |= (z5.read_byte(p14++) & 255) << k4;
|
|
80786
80786
|
k4 += 8;
|
|
80787
80787
|
}
|
|
80788
80788
|
if ((~b4 >>> 16 & 65535) != (b4 & 65535)) {
|
|
@@ -80792,8 +80792,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80792
80792
|
that.bitb = b4;
|
|
80793
80793
|
that.bitk = k4;
|
|
80794
80794
|
z5.avail_in = n4;
|
|
80795
|
-
z5.total_in +=
|
|
80796
|
-
z5.next_in_index =
|
|
80795
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
80796
|
+
z5.next_in_index = p14;
|
|
80797
80797
|
that.write = q3;
|
|
80798
80798
|
return that.inflate_flush(z5, r5);
|
|
80799
80799
|
}
|
|
@@ -80806,8 +80806,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80806
80806
|
that.bitb = b4;
|
|
80807
80807
|
that.bitk = k4;
|
|
80808
80808
|
z5.avail_in = n4;
|
|
80809
|
-
z5.total_in +=
|
|
80810
|
-
z5.next_in_index =
|
|
80809
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
80810
|
+
z5.next_in_index = p14;
|
|
80811
80811
|
that.write = q3;
|
|
80812
80812
|
return that.inflate_flush(z5, r5);
|
|
80813
80813
|
}
|
|
@@ -80832,8 +80832,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80832
80832
|
that.bitb = b4;
|
|
80833
80833
|
that.bitk = k4;
|
|
80834
80834
|
z5.avail_in = n4;
|
|
80835
|
-
z5.total_in +=
|
|
80836
|
-
z5.next_in_index =
|
|
80835
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
80836
|
+
z5.next_in_index = p14;
|
|
80837
80837
|
that.write = q3;
|
|
80838
80838
|
return that.inflate_flush(z5, r5);
|
|
80839
80839
|
}
|
|
@@ -80845,8 +80845,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80845
80845
|
t5 = n4;
|
|
80846
80846
|
if (t5 > m4)
|
|
80847
80847
|
t5 = m4;
|
|
80848
|
-
that.win.set(z5.read_buf(
|
|
80849
|
-
|
|
80848
|
+
that.win.set(z5.read_buf(p14, t5), q3);
|
|
80849
|
+
p14 += t5;
|
|
80850
80850
|
n4 -= t5;
|
|
80851
80851
|
q3 += t5;
|
|
80852
80852
|
m4 -= t5;
|
|
@@ -80862,13 +80862,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80862
80862
|
that.bitb = b4;
|
|
80863
80863
|
that.bitk = k4;
|
|
80864
80864
|
z5.avail_in = n4;
|
|
80865
|
-
z5.total_in +=
|
|
80866
|
-
z5.next_in_index =
|
|
80865
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
80866
|
+
z5.next_in_index = p14;
|
|
80867
80867
|
that.write = q3;
|
|
80868
80868
|
return that.inflate_flush(z5, r5);
|
|
80869
80869
|
}
|
|
80870
80870
|
n4--;
|
|
80871
|
-
b4 |= (z5.read_byte(
|
|
80871
|
+
b4 |= (z5.read_byte(p14++) & 255) << k4;
|
|
80872
80872
|
k4 += 8;
|
|
80873
80873
|
}
|
|
80874
80874
|
table3 = t5 = b4 & 16383;
|
|
@@ -80879,8 +80879,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80879
80879
|
that.bitb = b4;
|
|
80880
80880
|
that.bitk = k4;
|
|
80881
80881
|
z5.avail_in = n4;
|
|
80882
|
-
z5.total_in +=
|
|
80883
|
-
z5.next_in_index =
|
|
80882
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
80883
|
+
z5.next_in_index = p14;
|
|
80884
80884
|
that.write = q3;
|
|
80885
80885
|
return that.inflate_flush(z5, r5);
|
|
80886
80886
|
}
|
|
@@ -80906,13 +80906,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80906
80906
|
that.bitb = b4;
|
|
80907
80907
|
that.bitk = k4;
|
|
80908
80908
|
z5.avail_in = n4;
|
|
80909
|
-
z5.total_in +=
|
|
80910
|
-
z5.next_in_index =
|
|
80909
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
80910
|
+
z5.next_in_index = p14;
|
|
80911
80911
|
that.write = q3;
|
|
80912
80912
|
return that.inflate_flush(z5, r5);
|
|
80913
80913
|
}
|
|
80914
80914
|
n4--;
|
|
80915
|
-
b4 |= (z5.read_byte(
|
|
80915
|
+
b4 |= (z5.read_byte(p14++) & 255) << k4;
|
|
80916
80916
|
k4 += 8;
|
|
80917
80917
|
}
|
|
80918
80918
|
blens[border[index++]] = b4 & 7;
|
|
@@ -80933,8 +80933,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80933
80933
|
that.bitb = b4;
|
|
80934
80934
|
that.bitk = k4;
|
|
80935
80935
|
z5.avail_in = n4;
|
|
80936
|
-
z5.total_in +=
|
|
80937
|
-
z5.next_in_index =
|
|
80936
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
80937
|
+
z5.next_in_index = p14;
|
|
80938
80938
|
that.write = q3;
|
|
80939
80939
|
return that.inflate_flush(z5, r5);
|
|
80940
80940
|
}
|
|
@@ -80956,13 +80956,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80956
80956
|
that.bitb = b4;
|
|
80957
80957
|
that.bitk = k4;
|
|
80958
80958
|
z5.avail_in = n4;
|
|
80959
|
-
z5.total_in +=
|
|
80960
|
-
z5.next_in_index =
|
|
80959
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
80960
|
+
z5.next_in_index = p14;
|
|
80961
80961
|
that.write = q3;
|
|
80962
80962
|
return that.inflate_flush(z5, r5);
|
|
80963
80963
|
}
|
|
80964
80964
|
n4--;
|
|
80965
|
-
b4 |= (z5.read_byte(
|
|
80965
|
+
b4 |= (z5.read_byte(p14++) & 255) << k4;
|
|
80966
80966
|
k4 += 8;
|
|
80967
80967
|
}
|
|
80968
80968
|
t5 = hufts[(tb[0] + (b4 & inflate_mask[t5])) * 3 + 1];
|
|
@@ -80981,13 +80981,13 @@ return ${compiler2.callType("value", tagType)}
|
|
|
80981
80981
|
that.bitb = b4;
|
|
80982
80982
|
that.bitk = k4;
|
|
80983
80983
|
z5.avail_in = n4;
|
|
80984
|
-
z5.total_in +=
|
|
80985
|
-
z5.next_in_index =
|
|
80984
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
80985
|
+
z5.next_in_index = p14;
|
|
80986
80986
|
that.write = q3;
|
|
80987
80987
|
return that.inflate_flush(z5, r5);
|
|
80988
80988
|
}
|
|
80989
80989
|
n4--;
|
|
80990
|
-
b4 |= (z5.read_byte(
|
|
80990
|
+
b4 |= (z5.read_byte(p14++) & 255) << k4;
|
|
80991
80991
|
k4 += 8;
|
|
80992
80992
|
}
|
|
80993
80993
|
b4 >>>= t5;
|
|
@@ -81005,8 +81005,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
81005
81005
|
that.bitb = b4;
|
|
81006
81006
|
that.bitk = k4;
|
|
81007
81007
|
z5.avail_in = n4;
|
|
81008
|
-
z5.total_in +=
|
|
81009
|
-
z5.next_in_index =
|
|
81008
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
81009
|
+
z5.next_in_index = p14;
|
|
81010
81010
|
that.write = q3;
|
|
81011
81011
|
return that.inflate_flush(z5, r5);
|
|
81012
81012
|
}
|
|
@@ -81035,8 +81035,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
81035
81035
|
that.bitb = b4;
|
|
81036
81036
|
that.bitk = k4;
|
|
81037
81037
|
z5.avail_in = n4;
|
|
81038
|
-
z5.total_in +=
|
|
81039
|
-
z5.next_in_index =
|
|
81038
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
81039
|
+
z5.next_in_index = p14;
|
|
81040
81040
|
that.write = q3;
|
|
81041
81041
|
return that.inflate_flush(z5, r5);
|
|
81042
81042
|
}
|
|
@@ -81047,15 +81047,15 @@ return ${compiler2.callType("value", tagType)}
|
|
|
81047
81047
|
that.bitb = b4;
|
|
81048
81048
|
that.bitk = k4;
|
|
81049
81049
|
z5.avail_in = n4;
|
|
81050
|
-
z5.total_in +=
|
|
81051
|
-
z5.next_in_index =
|
|
81050
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
81051
|
+
z5.next_in_index = p14;
|
|
81052
81052
|
that.write = q3;
|
|
81053
81053
|
if ((r5 = codes2.proc(that, z5, r5)) != Z_STREAM_END3) {
|
|
81054
81054
|
return that.inflate_flush(z5, r5);
|
|
81055
81055
|
}
|
|
81056
81056
|
r5 = Z_OK3;
|
|
81057
81057
|
codes2.free(z5);
|
|
81058
|
-
|
|
81058
|
+
p14 = z5.next_in_index;
|
|
81059
81059
|
n4 = z5.avail_in;
|
|
81060
81060
|
b4 = that.bitb;
|
|
81061
81061
|
k4 = that.bitk;
|
|
@@ -81078,8 +81078,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
81078
81078
|
that.bitb = b4;
|
|
81079
81079
|
that.bitk = k4;
|
|
81080
81080
|
z5.avail_in = n4;
|
|
81081
|
-
z5.total_in +=
|
|
81082
|
-
z5.next_in_index =
|
|
81081
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
81082
|
+
z5.next_in_index = p14;
|
|
81083
81083
|
that.write = q3;
|
|
81084
81084
|
return that.inflate_flush(z5, r5);
|
|
81085
81085
|
}
|
|
@@ -81090,8 +81090,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
81090
81090
|
that.bitb = b4;
|
|
81091
81091
|
that.bitk = k4;
|
|
81092
81092
|
z5.avail_in = n4;
|
|
81093
|
-
z5.total_in +=
|
|
81094
|
-
z5.next_in_index =
|
|
81093
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
81094
|
+
z5.next_in_index = p14;
|
|
81095
81095
|
that.write = q3;
|
|
81096
81096
|
return that.inflate_flush(z5, r5);
|
|
81097
81097
|
case BADBLOCKS:
|
|
@@ -81099,8 +81099,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
81099
81099
|
that.bitb = b4;
|
|
81100
81100
|
that.bitk = k4;
|
|
81101
81101
|
z5.avail_in = n4;
|
|
81102
|
-
z5.total_in +=
|
|
81103
|
-
z5.next_in_index =
|
|
81102
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
81103
|
+
z5.next_in_index = p14;
|
|
81104
81104
|
that.write = q3;
|
|
81105
81105
|
return that.inflate_flush(z5, r5);
|
|
81106
81106
|
default:
|
|
@@ -81108,8 +81108,8 @@ return ${compiler2.callType("value", tagType)}
|
|
|
81108
81108
|
that.bitb = b4;
|
|
81109
81109
|
that.bitk = k4;
|
|
81110
81110
|
z5.avail_in = n4;
|
|
81111
|
-
z5.total_in +=
|
|
81112
|
-
z5.next_in_index =
|
|
81111
|
+
z5.total_in += p14 - z5.next_in_index;
|
|
81112
|
+
z5.next_in_index = p14;
|
|
81113
81113
|
that.write = q3;
|
|
81114
81114
|
return that.inflate_flush(z5, r5);
|
|
81115
81115
|
}
|
|
@@ -81295,7 +81295,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
81295
81295
|
};
|
|
81296
81296
|
that.inflateSync = function(z4) {
|
|
81297
81297
|
let n4;
|
|
81298
|
-
let
|
|
81298
|
+
let p14;
|
|
81299
81299
|
let m4;
|
|
81300
81300
|
let r5, w4;
|
|
81301
81301
|
if (!z4 || !z4.istate)
|
|
@@ -81307,21 +81307,21 @@ return ${compiler2.callType("value", tagType)}
|
|
|
81307
81307
|
}
|
|
81308
81308
|
if ((n4 = z4.avail_in) === 0)
|
|
81309
81309
|
return Z_BUF_ERROR3;
|
|
81310
|
-
|
|
81310
|
+
p14 = z4.next_in_index;
|
|
81311
81311
|
m4 = istate.marker;
|
|
81312
81312
|
while (n4 !== 0 && m4 < 4) {
|
|
81313
|
-
if (z4.read_byte(
|
|
81313
|
+
if (z4.read_byte(p14) == mark[m4]) {
|
|
81314
81314
|
m4++;
|
|
81315
|
-
} else if (z4.read_byte(
|
|
81315
|
+
} else if (z4.read_byte(p14) !== 0) {
|
|
81316
81316
|
m4 = 0;
|
|
81317
81317
|
} else {
|
|
81318
81318
|
m4 = 4 - m4;
|
|
81319
81319
|
}
|
|
81320
|
-
|
|
81320
|
+
p14++;
|
|
81321
81321
|
n4--;
|
|
81322
81322
|
}
|
|
81323
|
-
z4.total_in +=
|
|
81324
|
-
z4.next_in_index =
|
|
81323
|
+
z4.total_in += p14 - z4.next_in_index;
|
|
81324
|
+
z4.next_in_index = p14;
|
|
81325
81325
|
z4.avail_in = n4;
|
|
81326
81326
|
istate.marker = m4;
|
|
81327
81327
|
if (m4 != 4) {
|
|
@@ -88187,7 +88187,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
88187
88187
|
});
|
|
88188
88188
|
|
|
88189
88189
|
// src/assets/AssetLoader.ts
|
|
88190
|
-
var
|
|
88190
|
+
var p8, _AssetLoader, AssetLoader;
|
|
88191
88191
|
var init_AssetLoader = __esm({
|
|
88192
88192
|
"src/assets/AssetLoader.ts"() {
|
|
88193
88193
|
init_dirname();
|
|
@@ -88198,7 +88198,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
88198
88198
|
init_log();
|
|
88199
88199
|
init_source();
|
|
88200
88200
|
init_Caching();
|
|
88201
|
-
|
|
88201
|
+
p8 = prefix("AssetLoader");
|
|
88202
88202
|
_AssetLoader = class _AssetLoader {
|
|
88203
88203
|
static get version() {
|
|
88204
88204
|
return this.ROOT.substring(this.ROOT.lastIndexOf("/") + 1);
|
|
@@ -88247,11 +88247,11 @@ ${key}` : key;
|
|
|
88247
88247
|
if (override) {
|
|
88248
88248
|
const existing = this.removeSource(key);
|
|
88249
88249
|
if (existing) {
|
|
88250
|
-
console.log(
|
|
88250
|
+
console.log(p8, "Removed existing AssetSource", key);
|
|
88251
88251
|
}
|
|
88252
88252
|
}
|
|
88253
88253
|
this._SOURCES.unshift({ key, source });
|
|
88254
|
-
console.log(
|
|
88254
|
+
console.log(p8, "Added AssetSource", key);
|
|
88255
88255
|
}
|
|
88256
88256
|
/** Removes and returns the first source with this name. Call {@link Caching.clear} to reload assets. */
|
|
88257
88257
|
static removeSource(key) {
|
|
@@ -88657,7 +88657,7 @@ ${key}` : key;
|
|
|
88657
88657
|
});
|
|
88658
88658
|
|
|
88659
88659
|
// src/UVMapper.ts
|
|
88660
|
-
var
|
|
88660
|
+
var p9, DEFAULT_UV, X3, Y4, Z3, FACE_UV_AXES, UVMapper, MinecraftFaceUV;
|
|
88661
88661
|
var init_UVMapper = __esm({
|
|
88662
88662
|
"src/UVMapper.ts"() {
|
|
88663
88663
|
init_dirname();
|
|
@@ -88674,7 +88674,7 @@ ${key}` : key;
|
|
|
88674
88674
|
init_AssetKey();
|
|
88675
88675
|
init_ModelGenerator();
|
|
88676
88676
|
init_log();
|
|
88677
|
-
|
|
88677
|
+
p9 = prefix("UVMapper");
|
|
88678
88678
|
DEFAULT_UV = [0, 0, 16, 16];
|
|
88679
88679
|
X3 = 0;
|
|
88680
88680
|
Y4 = 1;
|
|
@@ -88935,7 +88935,7 @@ ${key}` : key;
|
|
|
88935
88935
|
model.elements = originalModel.elements.map((element) => ({ ...element }));
|
|
88936
88936
|
}
|
|
88937
88937
|
const isItemModel = !("elements" in model);
|
|
88938
|
-
console.debug(
|
|
88938
|
+
console.debug(p9, "Creating Atlas for", model.key);
|
|
88939
88939
|
if (model.textures) {
|
|
88940
88940
|
const promises = [];
|
|
88941
88941
|
const uniqueTextureNames = [];
|
|
@@ -88949,7 +88949,7 @@ ${key}` : key;
|
|
|
88949
88949
|
const assetKey = AssetKey.parse("textures", textureValue, model.key);
|
|
88950
88950
|
promises.push(ModelTextures.get(assetKey).then((asset2) => {
|
|
88951
88951
|
if (!asset2) {
|
|
88952
|
-
console.warn(
|
|
88952
|
+
console.warn(p9, "Missing texture", assetKey);
|
|
88953
88953
|
return;
|
|
88954
88954
|
}
|
|
88955
88955
|
textureMap[textureKey] = new WrappedImage(asset2);
|
|
@@ -88961,7 +88961,7 @@ ${key}` : key;
|
|
|
88961
88961
|
}
|
|
88962
88962
|
await Promise.all(promises);
|
|
88963
88963
|
const textureCount = uniqueTextureNames.length;
|
|
88964
|
-
console.debug(
|
|
88964
|
+
console.debug(p9, "Creating Atlas for", textureCount, "textures");
|
|
88965
88965
|
this.fillMissingTextureKeys(model.textures, textureMap);
|
|
88966
88966
|
this.fillMissingTextureKeys(model.textures, metaMap);
|
|
88967
88967
|
const sizes = {};
|
|
@@ -88992,7 +88992,7 @@ ${key}` : key;
|
|
|
88992
88992
|
this.fillMissingTextureKeys(model.textures, sizes);
|
|
88993
88993
|
const s4 = Math.ceil(Math.sqrt(textureCount + 1));
|
|
88994
88994
|
const size = Math.ceil(s4 * maxWidth);
|
|
88995
|
-
console.debug(
|
|
88995
|
+
console.debug(p9, "Atlas size:", size);
|
|
88996
88996
|
const squaredSize = size * size;
|
|
88997
88997
|
const image = new CanvasImage(size, size);
|
|
88998
88998
|
const missing = Textures.getMissing().image;
|
|
@@ -89071,7 +89071,7 @@ ${key}` : key;
|
|
|
89071
89071
|
}
|
|
89072
89072
|
this.fillMissingTextureKeys(model.textures, positions);
|
|
89073
89073
|
if (isItemModel) {
|
|
89074
|
-
console.debug(
|
|
89074
|
+
console.debug(p9, "Generating item model for", model);
|
|
89075
89075
|
model.elements = [];
|
|
89076
89076
|
for (let layerName of ModelGenerator.ITEM_LAYERS) {
|
|
89077
89077
|
const textureImage = textureMap[layerName];
|
|
@@ -89087,7 +89087,7 @@ ${key}` : key;
|
|
|
89087
89087
|
), layerName));
|
|
89088
89088
|
}
|
|
89089
89089
|
}
|
|
89090
|
-
console.debug(
|
|
89090
|
+
console.debug(p9, "Item model elements", model.elements);
|
|
89091
89091
|
}
|
|
89092
89092
|
if (!model.elements) {
|
|
89093
89093
|
}
|
|
@@ -89144,7 +89144,7 @@ ${key}` : key;
|
|
|
89144
89144
|
hasTranslucency
|
|
89145
89145
|
);
|
|
89146
89146
|
} else {
|
|
89147
|
-
console.warn(
|
|
89147
|
+
console.warn(p9, "Model does not have any textures", model);
|
|
89148
89148
|
}
|
|
89149
89149
|
return void 0;
|
|
89150
89150
|
}
|
|
@@ -89681,7 +89681,7 @@ ${key}` : key;
|
|
|
89681
89681
|
function isSceneObject(obj) {
|
|
89682
89682
|
return obj.isSceneObject;
|
|
89683
89683
|
}
|
|
89684
|
-
var import_ts_deepmerge3,
|
|
89684
|
+
var import_ts_deepmerge3, p10, _SceneObject, SceneObject;
|
|
89685
89685
|
var init_SceneObject = __esm({
|
|
89686
89686
|
"src/renderer/SceneObject.ts"() {
|
|
89687
89687
|
init_dirname();
|
|
@@ -89698,7 +89698,7 @@ ${key}` : key;
|
|
|
89698
89698
|
init_Disposable();
|
|
89699
89699
|
import_ts_deepmerge3 = __toESM(require_dist());
|
|
89700
89700
|
init_log();
|
|
89701
|
-
|
|
89701
|
+
p10 = prefix("SceneObject");
|
|
89702
89702
|
_SceneObject = class _SceneObject extends Object3D {
|
|
89703
89703
|
constructor(options) {
|
|
89704
89704
|
super();
|
|
@@ -91390,16 +91390,16 @@ ${key}` : key;
|
|
|
91390
91390
|
}
|
|
91391
91391
|
return m4;
|
|
91392
91392
|
};
|
|
91393
|
-
bits = function(d4,
|
|
91394
|
-
var o4 =
|
|
91395
|
-
return (d4[o4] | d4[o4 + 1] << 8) >> (
|
|
91393
|
+
bits = function(d4, p14, m4) {
|
|
91394
|
+
var o4 = p14 / 8 | 0;
|
|
91395
|
+
return (d4[o4] | d4[o4 + 1] << 8) >> (p14 & 7) & m4;
|
|
91396
91396
|
};
|
|
91397
|
-
bits16 = function(d4,
|
|
91398
|
-
var o4 =
|
|
91399
|
-
return (d4[o4] | d4[o4 + 1] << 8 | d4[o4 + 2] << 16) >> (
|
|
91397
|
+
bits16 = function(d4, p14) {
|
|
91398
|
+
var o4 = p14 / 8 | 0;
|
|
91399
|
+
return (d4[o4] | d4[o4 + 1] << 8 | d4[o4 + 2] << 16) >> (p14 & 7);
|
|
91400
91400
|
};
|
|
91401
|
-
shft = function(
|
|
91402
|
-
return (
|
|
91401
|
+
shft = function(p14) {
|
|
91402
|
+
return (p14 + 7) / 8 | 0;
|
|
91403
91403
|
};
|
|
91404
91404
|
slc = function(v5, s4, e6) {
|
|
91405
91405
|
if (s4 == null || s4 < 0)
|
|
@@ -91576,15 +91576,15 @@ ${key}` : key;
|
|
|
91576
91576
|
} while (!final);
|
|
91577
91577
|
return bt != buf.length && noBuf ? slc(buf, 0, bt) : buf.subarray(0, bt);
|
|
91578
91578
|
};
|
|
91579
|
-
wbits = function(d4,
|
|
91580
|
-
v5 <<=
|
|
91581
|
-
var o4 =
|
|
91579
|
+
wbits = function(d4, p14, v5) {
|
|
91580
|
+
v5 <<= p14 & 7;
|
|
91581
|
+
var o4 = p14 / 8 | 0;
|
|
91582
91582
|
d4[o4] |= v5;
|
|
91583
91583
|
d4[o4 + 1] |= v5 >> 8;
|
|
91584
91584
|
};
|
|
91585
|
-
wbits16 = function(d4,
|
|
91586
|
-
v5 <<=
|
|
91587
|
-
var o4 =
|
|
91585
|
+
wbits16 = function(d4, p14, v5) {
|
|
91586
|
+
v5 <<= p14 & 7;
|
|
91587
|
+
var o4 = p14 / 8 | 0;
|
|
91588
91588
|
d4[o4] |= v5;
|
|
91589
91589
|
d4[o4 + 1] |= v5 >> 8;
|
|
91590
91590
|
d4[o4 + 2] |= v5 >> 16;
|
|
@@ -91710,8 +91710,8 @@ ${key}` : key;
|
|
|
91710
91710
|
out[o4 + i4 + 4] = dat[i4];
|
|
91711
91711
|
return (o4 + 4 + s4) * 8;
|
|
91712
91712
|
};
|
|
91713
|
-
wblk = function(dat, out, final, syms, lf, df, eb, li, bs, bl,
|
|
91714
|
-
wbits(out,
|
|
91713
|
+
wblk = function(dat, out, final, syms, lf, df, eb, li, bs, bl, p14) {
|
|
91714
|
+
wbits(out, p14++, final);
|
|
91715
91715
|
++lf[256];
|
|
91716
91716
|
var _a2 = hTree(lf, 15), dlt = _a2.t, mlb = _a2.l;
|
|
91717
91717
|
var _b2 = hTree(df, 15), ddt = _b2.t, mdb = _b2.l;
|
|
@@ -91730,27 +91730,27 @@ ${key}` : key;
|
|
|
91730
91730
|
var ftlen = clen(lf, flt) + clen(df, fdt) + eb;
|
|
91731
91731
|
var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + 2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18];
|
|
91732
91732
|
if (bs >= 0 && flen <= ftlen && flen <= dtlen)
|
|
91733
|
-
return wfblk(out,
|
|
91733
|
+
return wfblk(out, p14, dat.subarray(bs, bs + bl));
|
|
91734
91734
|
var lm, ll, dm, dl;
|
|
91735
|
-
wbits(out,
|
|
91735
|
+
wbits(out, p14, 1 + (dtlen < ftlen)), p14 += 2;
|
|
91736
91736
|
if (dtlen < ftlen) {
|
|
91737
91737
|
lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt;
|
|
91738
91738
|
var llm = hMap(lct, mlcb, 0);
|
|
91739
|
-
wbits(out,
|
|
91740
|
-
wbits(out,
|
|
91741
|
-
wbits(out,
|
|
91742
|
-
|
|
91739
|
+
wbits(out, p14, nlc - 257);
|
|
91740
|
+
wbits(out, p14 + 5, ndc - 1);
|
|
91741
|
+
wbits(out, p14 + 10, nlcc - 4);
|
|
91742
|
+
p14 += 14;
|
|
91743
91743
|
for (var i4 = 0; i4 < nlcc; ++i4)
|
|
91744
|
-
wbits(out,
|
|
91745
|
-
|
|
91744
|
+
wbits(out, p14 + 3 * i4, lct[clim[i4]]);
|
|
91745
|
+
p14 += 3 * nlcc;
|
|
91746
91746
|
var lcts = [lclt, lcdt];
|
|
91747
91747
|
for (var it = 0; it < 2; ++it) {
|
|
91748
91748
|
var clct = lcts[it];
|
|
91749
91749
|
for (var i4 = 0; i4 < clct.length; ++i4) {
|
|
91750
91750
|
var len = clct[i4] & 31;
|
|
91751
|
-
wbits(out,
|
|
91751
|
+
wbits(out, p14, llm[len]), p14 += lct[len];
|
|
91752
91752
|
if (len > 15)
|
|
91753
|
-
wbits(out,
|
|
91753
|
+
wbits(out, p14, clct[i4] >> 5 & 127), p14 += clct[i4] >> 12;
|
|
91754
91754
|
}
|
|
91755
91755
|
}
|
|
91756
91756
|
} else {
|
|
@@ -91760,19 +91760,19 @@ ${key}` : key;
|
|
|
91760
91760
|
var sym = syms[i4];
|
|
91761
91761
|
if (sym > 255) {
|
|
91762
91762
|
var len = sym >> 18 & 31;
|
|
91763
|
-
wbits16(out,
|
|
91763
|
+
wbits16(out, p14, lm[len + 257]), p14 += ll[len + 257];
|
|
91764
91764
|
if (len > 7)
|
|
91765
|
-
wbits(out,
|
|
91765
|
+
wbits(out, p14, sym >> 23 & 31), p14 += fleb[len];
|
|
91766
91766
|
var dst = sym & 31;
|
|
91767
|
-
wbits16(out,
|
|
91767
|
+
wbits16(out, p14, dm[dst]), p14 += dl[dst];
|
|
91768
91768
|
if (dst > 3)
|
|
91769
|
-
wbits16(out,
|
|
91769
|
+
wbits16(out, p14, sym >> 5 & 8191), p14 += fdeb[dst];
|
|
91770
91770
|
} else {
|
|
91771
|
-
wbits16(out,
|
|
91771
|
+
wbits16(out, p14, lm[sym]), p14 += ll[sym];
|
|
91772
91772
|
}
|
|
91773
91773
|
}
|
|
91774
|
-
wbits16(out,
|
|
91775
|
-
return
|
|
91774
|
+
wbits16(out, p14, lm[256]);
|
|
91775
|
+
return p14 + ll[256];
|
|
91776
91776
|
};
|
|
91777
91777
|
deo = /* @__PURE__ */ new i32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]);
|
|
91778
91778
|
et2 = /* @__PURE__ */ new u8(0);
|
|
@@ -92745,10 +92745,10 @@ ${key}` : key;
|
|
|
92745
92745
|
}
|
|
92746
92746
|
}
|
|
92747
92747
|
function paethPredictor(a4, b4, c4) {
|
|
92748
|
-
const
|
|
92749
|
-
const pa = Math.abs(
|
|
92750
|
-
const pb = Math.abs(
|
|
92751
|
-
const pc = Math.abs(
|
|
92748
|
+
const p14 = a4 + b4 - c4;
|
|
92749
|
+
const pa = Math.abs(p14 - a4);
|
|
92750
|
+
const pb = Math.abs(p14 - b4);
|
|
92751
|
+
const pc = Math.abs(p14 - c4);
|
|
92752
92752
|
if (pa <= pb && pa <= pc)
|
|
92753
92753
|
return a4;
|
|
92754
92754
|
else if (pb <= pc)
|
|
@@ -94708,7 +94708,7 @@ ${shader.fragmentShader}`.replace(
|
|
|
94708
94708
|
function isModelObject(obj) {
|
|
94709
94709
|
return obj.isModelObject;
|
|
94710
94710
|
}
|
|
94711
|
-
var import_ts_deepmerge5,
|
|
94711
|
+
var import_ts_deepmerge5, p11, _ModelObject, ModelObject;
|
|
94712
94712
|
var init_ModelObject = __esm({
|
|
94713
94713
|
"src/model/scene/ModelObject.ts"() {
|
|
94714
94714
|
init_dirname();
|
|
@@ -94731,7 +94731,7 @@ ${shader.fragmentShader}`.replace(
|
|
|
94731
94731
|
init_GuiLight();
|
|
94732
94732
|
init_ItemTints();
|
|
94733
94733
|
init_ItemGlint();
|
|
94734
|
-
|
|
94734
|
+
p11 = prefix("ModelObject");
|
|
94735
94735
|
_ModelObject = class _ModelObject extends SceneObject {
|
|
94736
94736
|
constructor(originalModel, options) {
|
|
94737
94737
|
super(options);
|
|
@@ -94904,10 +94904,10 @@ ${shader.fragmentShader}`.replace(
|
|
|
94904
94904
|
}
|
|
94905
94905
|
});
|
|
94906
94906
|
} else {
|
|
94907
|
-
console.debug(
|
|
94907
|
+
console.debug(p11, this.atlas.model, "has no elements");
|
|
94908
94908
|
}
|
|
94909
94909
|
} else {
|
|
94910
|
-
console.debug(
|
|
94910
|
+
console.debug(p11, "Missing atlas for", this);
|
|
94911
94911
|
}
|
|
94912
94912
|
if (this.options.mergeMeshes) {
|
|
94913
94913
|
let combinedGeo;
|
|
@@ -95306,7 +95306,7 @@ ${shader.fragmentShader}`.replace(
|
|
|
95306
95306
|
}, domElement: c4, setMode: u4 };
|
|
95307
95307
|
};
|
|
95308
95308
|
f4.Panel = function(e6, f5, l4) {
|
|
95309
|
-
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,
|
|
95309
|
+
var c4 = Infinity, k4 = 0, g4 = Math.round, a4 = g4(window.devicePixelRatio || 1), r5 = 80 * a4, h5 = 48 * a4, t5 = 3 * a4, v5 = 2 * a4, d4 = 3 * a4, m4 = 15 * a4, n4 = 74 * a4, p14 = 30 * a4, q3 = document.createElement("canvas");
|
|
95310
95310
|
q3.width = r5;
|
|
95311
95311
|
q3.height = h5;
|
|
95312
95312
|
q3.style.cssText = "width:80px;height:48px";
|
|
@@ -95317,10 +95317,10 @@ ${shader.fragmentShader}`.replace(
|
|
|
95317
95317
|
b4.fillRect(0, 0, r5, h5);
|
|
95318
95318
|
b4.fillStyle = f5;
|
|
95319
95319
|
b4.fillText(e6, t5, v5);
|
|
95320
|
-
b4.fillRect(d4, m4, n4,
|
|
95320
|
+
b4.fillRect(d4, m4, n4, p14);
|
|
95321
95321
|
b4.fillStyle = l4;
|
|
95322
95322
|
b4.globalAlpha = 0.9;
|
|
95323
|
-
b4.fillRect(d4, m4, n4,
|
|
95323
|
+
b4.fillRect(d4, m4, n4, p14);
|
|
95324
95324
|
return { dom: q3, update: function(h6, w4) {
|
|
95325
95325
|
c4 = Math.min(c4, h6);
|
|
95326
95326
|
k4 = Math.max(k4, h6);
|
|
@@ -95329,11 +95329,11 @@ ${shader.fragmentShader}`.replace(
|
|
|
95329
95329
|
b4.fillRect(0, 0, r5, m4);
|
|
95330
95330
|
b4.fillStyle = f5;
|
|
95331
95331
|
b4.fillText(g4(h6) + " " + e6 + " (" + g4(c4) + "-" + g4(k4) + ")", t5, v5);
|
|
95332
|
-
b4.drawImage(q3, d4 + a4, m4, n4 - a4,
|
|
95333
|
-
b4.fillRect(d4 + n4 - a4, m4, a4,
|
|
95332
|
+
b4.drawImage(q3, d4 + a4, m4, n4 - a4, p14, d4, m4, n4 - a4, p14);
|
|
95333
|
+
b4.fillRect(d4 + n4 - a4, m4, a4, p14);
|
|
95334
95334
|
b4.fillStyle = l4;
|
|
95335
95335
|
b4.globalAlpha = 0.9;
|
|
95336
|
-
b4.fillRect(d4 + n4 - a4, m4, a4, g4((1 - h6 / w4) *
|
|
95336
|
+
b4.fillRect(d4 + n4 - a4, m4, a4, g4((1 - h6 / w4) * p14));
|
|
95337
95337
|
} };
|
|
95338
95338
|
};
|
|
95339
95339
|
return f4;
|
|
@@ -95434,6 +95434,7 @@ ${shader.fragmentShader}`.replace(
|
|
|
95434
95434
|
Renderer: () => Renderer,
|
|
95435
95435
|
RequestError: () => RequestError,
|
|
95436
95436
|
Requests: () => Requests,
|
|
95437
|
+
SCENE_DOCUMENT_MAX_BYTES: () => SCENE_DOCUMENT_MAX_BYTES,
|
|
95437
95438
|
SKIN_PARTS: () => SKIN_PARTS,
|
|
95438
95439
|
SceneDocumentLoader: () => SceneDocumentLoader,
|
|
95439
95440
|
SceneExporter: () => SceneExporter,
|
|
@@ -95485,6 +95486,8 @@ ${shader.fragmentShader}`.replace(
|
|
|
95485
95486
|
createGuiTextGeometry: () => createGuiTextGeometry,
|
|
95486
95487
|
createGuiTextureGeometry: () => createGuiTextureGeometry,
|
|
95487
95488
|
createImage: () => createImage,
|
|
95489
|
+
decodeSceneDocument: () => decodeSceneDocument,
|
|
95490
|
+
encodeSceneDocument: () => encodeSceneDocument,
|
|
95488
95491
|
entityAnimationTime: () => entityAnimationTime,
|
|
95489
95492
|
estimateBytesUsed: () => estimateBytesUsed,
|
|
95490
95493
|
fluidKindOf: () => fluidKindOf,
|
|
@@ -95572,32 +95575,53 @@ ${shader.fragmentShader}`.replace(
|
|
|
95572
95575
|
init_buffer2();
|
|
95573
95576
|
init_process2();
|
|
95574
95577
|
init_PersistentCache();
|
|
95578
|
+
init_log();
|
|
95579
|
+
var p = prefix("BrowserCache");
|
|
95575
95580
|
var BrowserCache = class extends PersistentCache {
|
|
95576
95581
|
constructor(backing) {
|
|
95577
95582
|
super(backing);
|
|
95578
95583
|
}
|
|
95584
|
+
async initialize() {
|
|
95585
|
+
try {
|
|
95586
|
+
await this.backing.ready();
|
|
95587
|
+
return true;
|
|
95588
|
+
} catch (error2) {
|
|
95589
|
+
this.memory = /* @__PURE__ */ new Map();
|
|
95590
|
+
console.warn(p, "Could not open browser storage; using an in-memory store", error2);
|
|
95591
|
+
return false;
|
|
95592
|
+
}
|
|
95593
|
+
}
|
|
95594
|
+
async run(operation, fallback) {
|
|
95595
|
+
if (await (this.initialized ?? (this.initialized = this.initialize()))) return operation();
|
|
95596
|
+
return fallback(this.memory);
|
|
95597
|
+
}
|
|
95579
95598
|
get(key) {
|
|
95580
|
-
return this.backing.getItem(key);
|
|
95599
|
+
return this.run(() => this.backing.getItem(key), (memory) => memory.get(key));
|
|
95581
95600
|
}
|
|
95582
95601
|
put(key, value) {
|
|
95583
|
-
return this.backing.setItem(key, value)
|
|
95602
|
+
return this.run(() => this.backing.setItem(key, value), (memory) => {
|
|
95603
|
+
memory.set(key, value);
|
|
95604
|
+
return value;
|
|
95605
|
+
});
|
|
95584
95606
|
}
|
|
95585
95607
|
delete(key) {
|
|
95586
|
-
return this.backing.removeItem(key)
|
|
95608
|
+
return this.run(() => this.backing.removeItem(key), (memory) => {
|
|
95609
|
+
memory.delete(key);
|
|
95610
|
+
});
|
|
95587
95611
|
}
|
|
95588
95612
|
clear() {
|
|
95589
|
-
return this.backing.clear();
|
|
95613
|
+
return this.run(() => this.backing.clear(), (memory) => memory.clear());
|
|
95590
95614
|
}
|
|
95591
95615
|
length() {
|
|
95592
|
-
return this.backing.length();
|
|
95616
|
+
return this.run(() => this.backing.length(), (memory) => memory.size);
|
|
95593
95617
|
}
|
|
95594
95618
|
keys() {
|
|
95595
|
-
return this.backing.keys();
|
|
95619
|
+
return this.run(() => this.backing.keys(), (memory) => [...memory.keys()]);
|
|
95596
95620
|
}
|
|
95597
95621
|
forEach(callback) {
|
|
95598
|
-
return this.backing.iterate((
|
|
95599
|
-
callback(
|
|
95600
|
-
});
|
|
95622
|
+
return this.run(() => this.backing.iterate((value, key) => {
|
|
95623
|
+
callback(value, key);
|
|
95624
|
+
}), (memory) => memory.forEach((value, key) => callback(value, key)));
|
|
95601
95625
|
}
|
|
95602
95626
|
};
|
|
95603
95627
|
|
|
@@ -95871,7 +95895,7 @@ ${shader.fragmentShader}`.replace(
|
|
|
95871
95895
|
return values;
|
|
95872
95896
|
}
|
|
95873
95897
|
function swampGrassColor(x4, z4) {
|
|
95874
|
-
const
|
|
95898
|
+
const p14 = permutation ?? (permutation = createPermutation());
|
|
95875
95899
|
x4 *= 0.0225;
|
|
95876
95900
|
z4 *= 0.0225;
|
|
95877
95901
|
const s4 = (x4 + z4) * skew;
|
|
@@ -95882,7 +95906,7 @@ ${shader.fragmentShader}`.replace(
|
|
|
95882
95906
|
const corner = (gx, gz, a4, b4) => {
|
|
95883
95907
|
let falloff = 0.5 - a4 * a4 - b4 * b4;
|
|
95884
95908
|
if (falloff < 0) return 0;
|
|
95885
|
-
const gradient = gradients[
|
|
95909
|
+
const gradient = gradients[p14[gx + p14[gz & 255] & 255] % 12];
|
|
95886
95910
|
falloff *= falloff;
|
|
95887
95911
|
return falloff * falloff * (gradient[0] * a4 + gradient[1] * b4);
|
|
95888
95912
|
};
|
|
@@ -99954,7 +99978,7 @@ property list uchar int vertex_index
|
|
|
99954
99978
|
init_util();
|
|
99955
99979
|
init_log();
|
|
99956
99980
|
init_three();
|
|
99957
|
-
var
|
|
99981
|
+
var p12 = prefix("SceneInspector");
|
|
99958
99982
|
var help = "<span>Ctrl/Cmd+Click to Select<br/></span><br/>";
|
|
99959
99983
|
var SceneInspector = class {
|
|
99960
99984
|
constructor(renderer) {
|
|
@@ -100048,7 +100072,7 @@ property list uchar int vertex_index
|
|
|
100048
100072
|
}
|
|
100049
100073
|
selectObject(targetObject, targetIntersection, instance = this.getIntersectionInstance(targetIntersection)) {
|
|
100050
100074
|
this.selectedObject = targetObject;
|
|
100051
|
-
console.log(
|
|
100075
|
+
console.log(p12, "selected", targetObject);
|
|
100052
100076
|
this.redraw(targetObject, targetIntersection, instance);
|
|
100053
100077
|
}
|
|
100054
100078
|
redraw(targetObject, targetIntersection, instance) {
|
|
@@ -100319,7 +100343,7 @@ property list uchar int vertex_index
|
|
|
100319
100343
|
init_buffer2();
|
|
100320
100344
|
init_process2();
|
|
100321
100345
|
init_log();
|
|
100322
|
-
var
|
|
100346
|
+
var p13 = prefix("InstanceManager");
|
|
100323
100347
|
var InstanceManager = class {
|
|
100324
100348
|
constructor() {
|
|
100325
100349
|
this.isInstanceManager = true;
|
|
@@ -100328,7 +100352,7 @@ property list uchar int vertex_index
|
|
|
100328
100352
|
/** Allocates a new placement of a cached model, or returns `undefined` if the key is unknown. */
|
|
100329
100353
|
async get(key) {
|
|
100330
100354
|
if (key in this.instanceCache) {
|
|
100331
|
-
console.debug(
|
|
100355
|
+
console.debug(p13, "key in cache", key);
|
|
100332
100356
|
return (await this.instanceCache[key]).nextInstance();
|
|
100333
100357
|
}
|
|
100334
100358
|
return void 0;
|
|
@@ -100338,7 +100362,7 @@ property list uchar int vertex_index
|
|
|
100338
100362
|
if (key in this.instanceCache) {
|
|
100339
100363
|
return await this.get(key);
|
|
100340
100364
|
}
|
|
100341
|
-
console.debug(
|
|
100365
|
+
console.debug(p13, "key not in cache", key);
|
|
100342
100366
|
const pending = Promise.resolve().then(supplier).then((obj) => obj.nextInstance());
|
|
100343
100367
|
this.instanceCache[key] = pending;
|
|
100344
100368
|
try {
|
|
@@ -104948,8 +104972,8 @@ gl_FragDepth=readDepth(vUv);
|
|
|
104948
104972
|
[bilinear(1, 1, 1, 0), new Float32Array([1, 1, 1, 0])],
|
|
104949
104973
|
[bilinear(1, 1, 1, 1), new Float32Array([1, 1, 1, 1])]
|
|
104950
104974
|
]);
|
|
104951
|
-
function lerp2(a4, b4,
|
|
104952
|
-
return a4 + (b4 - a4) *
|
|
104975
|
+
function lerp2(a4, b4, p14) {
|
|
104976
|
+
return a4 + (b4 - a4) * p14;
|
|
104953
104977
|
}
|
|
104954
104978
|
function bilinear(e0, e1, e22, e32) {
|
|
104955
104979
|
const a4 = lerp2(e0, e1, 1 - 0.25);
|
|
@@ -106434,6 +106458,82 @@ gl_FragDepth=readDepth(vUv);
|
|
|
106434
106458
|
return JSON.parse(JSON.stringify(input));
|
|
106435
106459
|
}
|
|
106436
106460
|
|
|
106461
|
+
// src/scene/SceneDocumentCodec.ts
|
|
106462
|
+
init_dirname();
|
|
106463
|
+
init_buffer2();
|
|
106464
|
+
init_process2();
|
|
106465
|
+
var SCENE_DOCUMENT_MAX_BYTES = 1024 * 1024;
|
|
106466
|
+
async function readBounded(stream, label) {
|
|
106467
|
+
const reader = stream.getReader();
|
|
106468
|
+
const chunks = [];
|
|
106469
|
+
let size = 0;
|
|
106470
|
+
try {
|
|
106471
|
+
while (true) {
|
|
106472
|
+
const { value, done } = await reader.read();
|
|
106473
|
+
if (done) break;
|
|
106474
|
+
size += value.byteLength;
|
|
106475
|
+
if (size > SCENE_DOCUMENT_MAX_BYTES) throw new RangeError(`${label} exceeds ${SCENE_DOCUMENT_MAX_BYTES} bytes`);
|
|
106476
|
+
chunks.push(value);
|
|
106477
|
+
}
|
|
106478
|
+
} catch (error2) {
|
|
106479
|
+
await reader.cancel().catch(() => {
|
|
106480
|
+
});
|
|
106481
|
+
throw error2;
|
|
106482
|
+
} finally {
|
|
106483
|
+
reader.releaseLock();
|
|
106484
|
+
}
|
|
106485
|
+
const bytes = new Uint8Array(size);
|
|
106486
|
+
let offset = 0;
|
|
106487
|
+
for (const chunk of chunks) {
|
|
106488
|
+
bytes.set(chunk, offset);
|
|
106489
|
+
offset += chunk.byteLength;
|
|
106490
|
+
}
|
|
106491
|
+
return bytes;
|
|
106492
|
+
}
|
|
106493
|
+
function encodeBase64(bytes) {
|
|
106494
|
+
let binary = "";
|
|
106495
|
+
for (let offset = 0; offset < bytes.length; offset += 32768) {
|
|
106496
|
+
binary += String.fromCharCode(...bytes.subarray(offset, offset + 32768));
|
|
106497
|
+
}
|
|
106498
|
+
return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
106499
|
+
}
|
|
106500
|
+
async function encodeSceneDocument(value) {
|
|
106501
|
+
const scene = parseSceneDocument(value);
|
|
106502
|
+
const bytes = new TextEncoder().encode(JSON.stringify(scene));
|
|
106503
|
+
if (bytes.byteLength > SCENE_DOCUMENT_MAX_BYTES) {
|
|
106504
|
+
throw new RangeError(`Scene document exceeds ${SCENE_DOCUMENT_MAX_BYTES} bytes`);
|
|
106505
|
+
}
|
|
106506
|
+
const compressed = await readBounded(new Blob([bytes]).stream().pipeThrough(new CompressionStream("deflate")), "Encoded scene");
|
|
106507
|
+
return `v1.${encodeBase64(compressed)}`;
|
|
106508
|
+
}
|
|
106509
|
+
async function decodeSceneDocument(value) {
|
|
106510
|
+
if (!value.startsWith("v1.")) throw new Error("Unsupported scene encoding version; expected v1");
|
|
106511
|
+
const encoded = value.slice(3);
|
|
106512
|
+
if (encoded.length > Math.ceil(SCENE_DOCUMENT_MAX_BYTES * 4 / 3)) {
|
|
106513
|
+
throw new RangeError(`Encoded scene exceeds ${SCENE_DOCUMENT_MAX_BYTES} bytes`);
|
|
106514
|
+
}
|
|
106515
|
+
if (!/^[A-Za-z0-9_-]+$/.test(encoded) || encoded.length % 4 === 1) {
|
|
106516
|
+
throw new Error("Invalid scene base64url encoding");
|
|
106517
|
+
}
|
|
106518
|
+
const binary = atob(encoded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
106519
|
+
const compressed = Uint8Array.from(binary, (character) => character.charCodeAt(0));
|
|
106520
|
+
if (encodeBase64(compressed) !== encoded) throw new Error("Invalid scene base64url encoding");
|
|
106521
|
+
let bytes;
|
|
106522
|
+
try {
|
|
106523
|
+
bytes = await readBounded(new Blob([compressed]).stream().pipeThrough(new DecompressionStream("deflate")), "Scene document");
|
|
106524
|
+
} catch (error2) {
|
|
106525
|
+
if (error2 instanceof RangeError) throw error2;
|
|
106526
|
+
throw new Error("Invalid compressed scene document");
|
|
106527
|
+
}
|
|
106528
|
+
let json;
|
|
106529
|
+
try {
|
|
106530
|
+
json = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
106531
|
+
} catch {
|
|
106532
|
+
throw new Error("Invalid UTF-8 scene document");
|
|
106533
|
+
}
|
|
106534
|
+
return parseSceneDocument(json);
|
|
106535
|
+
}
|
|
106536
|
+
|
|
106437
106537
|
// src/scene/SceneDocumentLoader.ts
|
|
106438
106538
|
init_dirname();
|
|
106439
106539
|
init_buffer2();
|