@yschindel/ara3d-webgl 1.3.3 → 1.3.5

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.
@@ -1,6 +1,6 @@
1
1
  var c0 = Object.defineProperty;
2
2
  var l0 = (r, e, t) => e in r ? c0(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var $ = (r, e, t) => (l0(r, typeof e != "symbol" ? e + "" : e, t), t);
3
+ var J = (r, e, t) => (l0(r, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  /**
5
5
  * @license
6
6
  * Copyright 2010-2025 Three.js Authors
@@ -2274,8 +2274,8 @@ class qe {
2274
2274
  return this.multiplyMatrices(e, this);
2275
2275
  }
2276
2276
  multiplyMatrices(e, t) {
2277
- const n = e.elements, i = t.elements, s = this.elements, o = n[0], a = n[4], c = n[8], l = n[12], h = n[1], u = n[5], f = n[9], d = n[13], g = n[2], _ = n[6], m = n[10], p = n[14], v = n[3], y = n[7], x = n[11], A = n[15], E = i[0], I = i[4], D = i[8], b = i[12], C = i[1], B = i[5], R = i[9], O = i[13], M = i[2], z = i[6], X = i[10], H = i[14], re = i[3], J = i[7], le = i[11], W = i[15];
2278
- return s[0] = o * E + a * C + c * M + l * re, s[4] = o * I + a * B + c * z + l * J, s[8] = o * D + a * R + c * X + l * le, s[12] = o * b + a * O + c * H + l * W, s[1] = h * E + u * C + f * M + d * re, s[5] = h * I + u * B + f * z + d * J, s[9] = h * D + u * R + f * X + d * le, s[13] = h * b + u * O + f * H + d * W, s[2] = g * E + _ * C + m * M + p * re, s[6] = g * I + _ * B + m * z + p * J, s[10] = g * D + _ * R + m * X + p * le, s[14] = g * b + _ * O + m * H + p * W, s[3] = v * E + y * C + x * M + A * re, s[7] = v * I + y * B + x * z + A * J, s[11] = v * D + y * R + x * X + A * le, s[15] = v * b + y * O + x * H + A * W, this;
2277
+ const n = e.elements, i = t.elements, s = this.elements, o = n[0], a = n[4], c = n[8], l = n[12], h = n[1], u = n[5], f = n[9], d = n[13], g = n[2], _ = n[6], m = n[10], p = n[14], v = n[3], y = n[7], x = n[11], A = n[15], E = i[0], I = i[4], D = i[8], b = i[12], C = i[1], B = i[5], R = i[9], O = i[13], M = i[2], z = i[6], X = i[10], H = i[14], re = i[3], $ = i[7], le = i[11], W = i[15];
2278
+ return s[0] = o * E + a * C + c * M + l * re, s[4] = o * I + a * B + c * z + l * $, s[8] = o * D + a * R + c * X + l * le, s[12] = o * b + a * O + c * H + l * W, s[1] = h * E + u * C + f * M + d * re, s[5] = h * I + u * B + f * z + d * $, s[9] = h * D + u * R + f * X + d * le, s[13] = h * b + u * O + f * H + d * W, s[2] = g * E + _ * C + m * M + p * re, s[6] = g * I + _ * B + m * z + p * $, s[10] = g * D + _ * R + m * X + p * le, s[14] = g * b + _ * O + m * H + p * W, s[3] = v * E + y * C + x * M + A * re, s[7] = v * I + y * B + x * z + A * $, s[11] = v * D + y * R + x * X + A * le, s[15] = v * b + y * O + x * H + A * W, this;
2279
2279
  }
2280
2280
  multiplyScalar(e) {
2281
2281
  const t = this.elements;
@@ -4200,12 +4200,12 @@ class wr extends Je {
4200
4200
  function g(_, m, p, v, y, x, A, E, I, D, b) {
4201
4201
  const C = x / I, B = A / D, R = x / 2, O = A / 2, M = E / 2, z = I + 1, X = D + 1;
4202
4202
  let H = 0, re = 0;
4203
- const J = new U();
4203
+ const $ = new U();
4204
4204
  for (let le = 0; le < X; le++) {
4205
4205
  const W = le * B - O;
4206
4206
  for (let Z = 0; Z < z; Z++) {
4207
4207
  const ge = Z * C - R;
4208
- J[_] = ge * v, J[m] = W * y, J[p] = M, l.push(J.x, J.y, J.z), J[_] = 0, J[m] = 0, J[p] = E > 0 ? 1 : -1, h.push(J.x, J.y, J.z), u.push(Z / I), u.push(1 - le / D), H += 1;
4208
+ $[_] = ge * v, $[m] = W * y, $[p] = M, l.push($.x, $.y, $.z), $[_] = 0, $[m] = 0, $[p] = E > 0 ? 1 : -1, h.push($.x, $.y, $.z), u.push(Z / I), u.push(1 - le / D), H += 1;
4209
4209
  }
4210
4210
  }
4211
4211
  for (let le = 0; le < D; le++)
@@ -7618,11 +7618,11 @@ class ul extends Je {
7618
7618
  }
7619
7619
  return new he(N / G, S / G);
7620
7620
  }
7621
- const J = [];
7621
+ const $ = [];
7622
7622
  for (let w = 0, q = z.length, k = q - 1, N = w + 1; w < q; w++, k++, N++)
7623
- k === q && (k = 0), N === q && (N = 0), J[w] = re(z[w], z[k], z[N]);
7623
+ k === q && (k = 0), N === q && (N = 0), $[w] = re(z[w], z[k], z[N]);
7624
7624
  const le = [];
7625
- let W, Z = J.concat();
7625
+ let W, Z = $.concat();
7626
7626
  for (let w = 0, q = M; w < q; w++) {
7627
7627
  const k = B[w];
7628
7628
  W = [];
@@ -7638,7 +7638,7 @@ class ul extends Je {
7638
7638
  for (let k = 0; k < m; k++) {
7639
7639
  const N = k / m, S = d * Math.cos(N * Math.PI / 2), G = g * Math.sin(N * Math.PI / 2) + _;
7640
7640
  for (let K = 0, ie = z.length; K < ie; K++) {
7641
- const V = X(z[K], J[K], G);
7641
+ const V = X(z[K], $[K], G);
7642
7642
  ye(V.x, V.y, -S), N === 0 && w.push(V);
7643
7643
  }
7644
7644
  for (let K = 0, ie = M; K < ie; K++) {
@@ -7667,7 +7667,7 @@ class ul extends Je {
7667
7667
  for (let w = m - 1; w >= 0; w--) {
7668
7668
  const q = w / m, k = d * Math.cos(q * Math.PI / 2), N = g * Math.sin(q * Math.PI / 2) + _;
7669
7669
  for (let S = 0, G = z.length; S < G; S++) {
7670
- const K = X(z[S], J[S], N);
7670
+ const K = X(z[S], $[S], N);
7671
7671
  ye(K.x, K.y, u + k);
7672
7672
  }
7673
7673
  for (let S = 0, G = B.length; S < G; S++) {
@@ -17229,14 +17229,14 @@ function N1(r, e) {
17229
17229
  for (const H in z) {
17230
17230
  const re = z[H];
17231
17231
  if (re.location >= 0) {
17232
- let J = M[H];
17233
- if (J === void 0 && (H === "instanceMatrix" && C.instanceMatrix && (J = C.instanceMatrix), H === "instanceColor" && C.instanceColor && (J = C.instanceColor)), J !== void 0) {
17234
- const le = J.normalized, W = J.itemSize, Z = e.get(J);
17232
+ let $ = M[H];
17233
+ if ($ === void 0 && (H === "instanceMatrix" && C.instanceMatrix && ($ = C.instanceMatrix), H === "instanceColor" && C.instanceColor && ($ = C.instanceColor)), $ !== void 0) {
17234
+ const le = $.normalized, W = $.itemSize, Z = e.get($);
17235
17235
  if (Z === void 0)
17236
17236
  continue;
17237
- const ge = Z.buffer, _e = Z.type, de = Z.bytesPerElement, oe = _e === r.INT || _e === r.UNSIGNED_INT || J.gpuType === Vc;
17238
- if (J.isInterleavedBufferAttribute) {
17239
- const ee = J.data, pe = ee.stride, ye = J.offset;
17237
+ const ge = Z.buffer, _e = Z.type, de = Z.bytesPerElement, oe = _e === r.INT || _e === r.UNSIGNED_INT || $.gpuType === Vc;
17238
+ if ($.isInterleavedBufferAttribute) {
17239
+ const ee = $.data, pe = ee.stride, ye = $.offset;
17240
17240
  if (ee.isInstancedInterleavedBuffer) {
17241
17241
  for (let xe = 0; xe < re.locationSize; xe++)
17242
17242
  p(re.location + xe, ee.meshPerAttribute);
@@ -17256,10 +17256,10 @@ function N1(r, e) {
17256
17256
  oe
17257
17257
  );
17258
17258
  } else {
17259
- if (J.isInstancedBufferAttribute) {
17259
+ if ($.isInstancedBufferAttribute) {
17260
17260
  for (let ee = 0; ee < re.locationSize; ee++)
17261
- p(re.location + ee, J.meshPerAttribute);
17262
- C.isInstancedMesh !== !0 && O._maxInstanceCount === void 0 && (O._maxInstanceCount = J.meshPerAttribute * J.count);
17261
+ p(re.location + ee, $.meshPerAttribute);
17262
+ C.isInstancedMesh !== !0 && O._maxInstanceCount === void 0 && (O._maxInstanceCount = $.meshPerAttribute * $.count);
17263
17263
  } else
17264
17264
  for (let ee = 0; ee < re.locationSize; ee++)
17265
17265
  m(re.location + ee);
@@ -19381,7 +19381,7 @@ function pw(r, e, t, n) {
19381
19381
  function I(B) {
19382
19382
  if (r.debug.checkShaderErrors) {
19383
19383
  const R = i.getProgramInfoLog(_) || "", O = i.getShaderInfoLog(A) || "", M = i.getShaderInfoLog(E) || "", z = R.trim(), X = O.trim(), H = M.trim();
19384
- let re = !0, J = !0;
19384
+ let re = !0, $ = !0;
19385
19385
  if (i.getProgramParameter(_, i.LINK_STATUS) === !1)
19386
19386
  if (re = !1, typeof r.debug.onShaderError == "function")
19387
19387
  r.debug.onShaderError(i, _, A, E);
@@ -19399,8 +19399,8 @@ Program Info Log: ` + z + `
19399
19399
  );
19400
19400
  }
19401
19401
  else
19402
- z !== "" ? Te("WebGLProgram: Program Info Log:", z) : (X === "" || H === "") && (J = !1);
19403
- J && (B.diagnostics = {
19402
+ z !== "" ? Te("WebGLProgram: Program Info Log:", z) : (X === "" || H === "") && ($ = !1);
19403
+ $ && (B.diagnostics = {
19404
19404
  runnable: re,
19405
19405
  programLog: z,
19406
19406
  vertexShader: {
@@ -19494,14 +19494,14 @@ function vw(r, e, t, n, i, s, o) {
19494
19494
  return l.add(b), b === 0 ? "uv" : `uv${b}`;
19495
19495
  }
19496
19496
  function m(b, C, B, R, O) {
19497
- const M = R.fog, z = O.geometry, X = b.isMeshStandardMaterial ? R.environment : null, H = (b.isMeshStandardMaterial ? t : e).get(b.envMap || X), re = !!H && H.mapping === xs ? H.image.height : null, J = g[b.type];
19497
+ const M = R.fog, z = O.geometry, X = b.isMeshStandardMaterial ? R.environment : null, H = (b.isMeshStandardMaterial ? t : e).get(b.envMap || X), re = !!H && H.mapping === xs ? H.image.height : null, $ = g[b.type];
19498
19498
  b.precision !== null && (d = i.getMaxPrecision(b.precision), d !== b.precision && Te("WebGLProgram.getParameters:", b.precision, "not supported, using", d, "instead."));
19499
19499
  const le = z.morphAttributes.position || z.morphAttributes.normal || z.morphAttributes.color, W = le !== void 0 ? le.length : 0;
19500
19500
  let Z = 0;
19501
19501
  z.morphAttributes.position !== void 0 && (Z = 1), z.morphAttributes.normal !== void 0 && (Z = 2), z.morphAttributes.color !== void 0 && (Z = 3);
19502
19502
  let ge, _e, de, oe;
19503
- if (J) {
19504
- const ft = Bn[J];
19503
+ if ($) {
19504
+ const ft = Bn[$];
19505
19505
  ge = ft.vertexShader, _e = ft.fragmentShader;
19506
19506
  } else
19507
19507
  ge = b.vertexShader, _e = b.fragmentShader, c.update(b), de = c.getVertexShaderID(b), oe = c.getFragmentShaderID(b);
@@ -19509,7 +19509,7 @@ function vw(r, e, t, n, i, s, o) {
19509
19509
  let $e = Fn;
19510
19510
  b.toneMapped && (ee === null || ee.isXRRenderTarget === !0) && ($e = r.toneMapping);
19511
19511
  const vt = {
19512
- shaderID: J,
19512
+ shaderID: $,
19513
19513
  shaderType: b.type,
19514
19514
  shaderName: b.name,
19515
19515
  vertexShader: ge,
@@ -20160,8 +20160,8 @@ function Dw(r, e, t) {
20160
20160
  }
20161
20161
  H.camera.updateProjectionMatrix();
20162
20162
  }
20163
- const J = H.map.isWebGLCubeRenderTarget ? 6 : 1;
20164
- for (let le = 0; le < J; le++) {
20163
+ const $ = H.map.isWebGLCubeRenderTarget ? 6 : 1;
20164
+ for (let le = 0; le < $; le++) {
20165
20165
  if (H.map.isWebGLCubeRenderTarget)
20166
20166
  r.setRenderTarget(H.map, le), r.clear();
20167
20167
  else {
@@ -20219,9 +20219,9 @@ function Dw(r, e, t) {
20219
20219
  if (Array.isArray(M)) {
20220
20220
  const z = O.groups;
20221
20221
  for (let X = 0, H = z.length; X < H; X++) {
20222
- const re = z[X], J = M[re.materialIndex];
20223
- if (J && J.visible) {
20224
- const le = y(E, J, b, C);
20222
+ const re = z[X], $ = M[re.materialIndex];
20223
+ if ($ && $.visible) {
20224
+ const le = y(E, $, b, C);
20225
20225
  E.onBeforeShadow(r, E, I, D, O, le, re), r.renderBufferDirect(D, null, O, le, E, re), E.onAfterShadow(r, E, I, D, O, le, re);
20226
20226
  }
20227
20227
  }
@@ -20369,7 +20369,7 @@ function Nw(r, e) {
20369
20369
  let X = !1, H = 0;
20370
20370
  const re = r.getParameter(r.VERSION);
20371
20371
  re.indexOf("WebGL") !== -1 ? (H = parseFloat(/^WebGL (\d)/.exec(re)[1]), X = H >= 1) : re.indexOf("OpenGL ES") !== -1 && (H = parseFloat(/^OpenGL ES (\d)/.exec(re)[1]), X = H >= 2);
20372
- let J = null, le = {};
20372
+ let $ = null, le = {};
20373
20373
  const W = r.getParameter(r.SCISSOR_BOX), Z = r.getParameter(r.VIEWPORT), ge = new _t().fromArray(W), _e = new _t().fromArray(Z);
20374
20374
  function de(Y, Pe, be, De) {
20375
20375
  const ve = new Uint8Array(4), me = r.createTexture();
@@ -20501,15 +20501,15 @@ function Nw(r, e) {
20501
20501
  Y ? ee(r.SCISSOR_TEST) : pe(r.SCISSOR_TEST);
20502
20502
  }
20503
20503
  function ie(Y) {
20504
- Y === void 0 && (Y = r.TEXTURE0 + z - 1), J !== Y && (r.activeTexture(Y), J = Y);
20504
+ Y === void 0 && (Y = r.TEXTURE0 + z - 1), $ !== Y && (r.activeTexture(Y), $ = Y);
20505
20505
  }
20506
20506
  function V(Y, Pe, be) {
20507
- be === void 0 && (J === null ? be = r.TEXTURE0 + z - 1 : be = J);
20507
+ be === void 0 && ($ === null ? be = r.TEXTURE0 + z - 1 : be = $);
20508
20508
  let De = le[be];
20509
- De === void 0 && (De = { type: void 0, texture: void 0 }, le[be] = De), (De.type !== Y || De.texture !== Pe) && (J !== be && (r.activeTexture(be), J = be), r.bindTexture(Y, Pe || oe[Y]), De.type = Y, De.texture = Pe);
20509
+ De === void 0 && (De = { type: void 0, texture: void 0 }, le[be] = De), (De.type !== Y || De.texture !== Pe) && ($ !== be && (r.activeTexture(be), $ = be), r.bindTexture(Y, Pe || oe[Y]), De.type = Y, De.texture = Pe);
20510
20510
  }
20511
20511
  function P() {
20512
- const Y = le[J];
20512
+ const Y = le[$];
20513
20513
  Y !== void 0 && Y.type !== void 0 && (r.bindTexture(Y.type, null), Y.type = void 0, Y.texture = void 0);
20514
20514
  }
20515
20515
  function T() {
@@ -20599,7 +20599,7 @@ function Nw(r, e) {
20599
20599
  c.get(Pe) !== De && (r.uniformBlockBinding(Pe, De, Y.__bindingPointIndex), c.set(Pe, De));
20600
20600
  }
20601
20601
  function nt() {
20602
- r.disable(r.BLEND), r.disable(r.CULL_FACE), r.disable(r.DEPTH_TEST), r.disable(r.POLYGON_OFFSET_FILL), r.disable(r.SCISSOR_TEST), r.disable(r.STENCIL_TEST), r.disable(r.SAMPLE_ALPHA_TO_COVERAGE), r.blendEquation(r.FUNC_ADD), r.blendFunc(r.ONE, r.ZERO), r.blendFuncSeparate(r.ONE, r.ZERO, r.ONE, r.ZERO), r.blendColor(0, 0, 0, 0), r.colorMask(!0, !0, !0, !0), r.clearColor(0, 0, 0, 0), r.depthMask(!0), r.depthFunc(r.LESS), o.setReversed(!1), r.clearDepth(1), r.stencilMask(4294967295), r.stencilFunc(r.ALWAYS, 0, 4294967295), r.stencilOp(r.KEEP, r.KEEP, r.KEEP), r.clearStencil(0), r.cullFace(r.BACK), r.frontFace(r.CCW), r.polygonOffset(0, 0), r.activeTexture(r.TEXTURE0), r.bindFramebuffer(r.FRAMEBUFFER, null), r.bindFramebuffer(r.DRAW_FRAMEBUFFER, null), r.bindFramebuffer(r.READ_FRAMEBUFFER, null), r.useProgram(null), r.lineWidth(1), r.scissor(0, 0, r.canvas.width, r.canvas.height), r.viewport(0, 0, r.canvas.width, r.canvas.height), h = {}, J = null, le = {}, u = {}, f = /* @__PURE__ */ new WeakMap(), d = [], g = null, _ = !1, m = null, p = null, v = null, y = null, x = null, A = null, E = null, I = new Ae(0, 0, 0), D = 0, b = !1, C = null, B = null, R = null, O = null, M = null, ge.set(0, 0, r.canvas.width, r.canvas.height), _e.set(0, 0, r.canvas.width, r.canvas.height), s.reset(), o.reset(), a.reset();
20602
+ r.disable(r.BLEND), r.disable(r.CULL_FACE), r.disable(r.DEPTH_TEST), r.disable(r.POLYGON_OFFSET_FILL), r.disable(r.SCISSOR_TEST), r.disable(r.STENCIL_TEST), r.disable(r.SAMPLE_ALPHA_TO_COVERAGE), r.blendEquation(r.FUNC_ADD), r.blendFunc(r.ONE, r.ZERO), r.blendFuncSeparate(r.ONE, r.ZERO, r.ONE, r.ZERO), r.blendColor(0, 0, 0, 0), r.colorMask(!0, !0, !0, !0), r.clearColor(0, 0, 0, 0), r.depthMask(!0), r.depthFunc(r.LESS), o.setReversed(!1), r.clearDepth(1), r.stencilMask(4294967295), r.stencilFunc(r.ALWAYS, 0, 4294967295), r.stencilOp(r.KEEP, r.KEEP, r.KEEP), r.clearStencil(0), r.cullFace(r.BACK), r.frontFace(r.CCW), r.polygonOffset(0, 0), r.activeTexture(r.TEXTURE0), r.bindFramebuffer(r.FRAMEBUFFER, null), r.bindFramebuffer(r.DRAW_FRAMEBUFFER, null), r.bindFramebuffer(r.READ_FRAMEBUFFER, null), r.useProgram(null), r.lineWidth(1), r.scissor(0, 0, r.canvas.width, r.canvas.height), r.viewport(0, 0, r.canvas.width, r.canvas.height), h = {}, $ = null, le = {}, u = {}, f = /* @__PURE__ */ new WeakMap(), d = [], g = null, _ = !1, m = null, p = null, v = null, y = null, x = null, A = null, E = null, I = new Ae(0, 0, 0), D = 0, b = !1, C = null, B = null, R = null, O = null, M = null, ge.set(0, 0, r.canvas.width, r.canvas.height), _e.set(0, 0, r.canvas.width, r.canvas.height), s.reset(), o.reset(), a.reset();
20603
20603
  }
20604
20604
  return {
20605
20605
  buffers: {
@@ -20800,7 +20800,7 @@ function Uw(r, e, t, n, i, s, o) {
20800
20800
  }
20801
20801
  t.bindTexture(r.TEXTURE_CUBE_MAP, F.__webglTexture, r.TEXTURE0 + T);
20802
20802
  }
20803
- const J = {
20803
+ const $ = {
20804
20804
  [Pi]: r.REPEAT,
20805
20805
  [nn]: r.CLAMP_TO_EDGE,
20806
20806
  [ss]: r.MIRRORED_REPEAT
@@ -20822,7 +20822,7 @@ function Uw(r, e, t, n, i, s, o) {
20822
20822
  [pm]: r.NOTEQUAL
20823
20823
  };
20824
20824
  function Z(P, T) {
20825
- if (T.type === rn && e.has("OES_texture_float_linear") === !1 && (T.magFilter === mt || T.magFilter === ts || T.magFilter === sr || T.magFilter === En || T.minFilter === mt || T.minFilter === ts || T.minFilter === sr || T.minFilter === En) && Te("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(P, r.TEXTURE_WRAP_S, J[T.wrapS]), r.texParameteri(P, r.TEXTURE_WRAP_T, J[T.wrapT]), (P === r.TEXTURE_3D || P === r.TEXTURE_2D_ARRAY) && r.texParameteri(P, r.TEXTURE_WRAP_R, J[T.wrapR]), r.texParameteri(P, r.TEXTURE_MAG_FILTER, le[T.magFilter]), r.texParameteri(P, r.TEXTURE_MIN_FILTER, le[T.minFilter]), T.compareFunction && (r.texParameteri(P, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(P, r.TEXTURE_COMPARE_FUNC, W[T.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
20825
+ if (T.type === rn && e.has("OES_texture_float_linear") === !1 && (T.magFilter === mt || T.magFilter === ts || T.magFilter === sr || T.magFilter === En || T.minFilter === mt || T.minFilter === ts || T.minFilter === sr || T.minFilter === En) && Te("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(P, r.TEXTURE_WRAP_S, $[T.wrapS]), r.texParameteri(P, r.TEXTURE_WRAP_T, $[T.wrapT]), (P === r.TEXTURE_3D || P === r.TEXTURE_2D_ARRAY) && r.texParameteri(P, r.TEXTURE_WRAP_R, $[T.wrapR]), r.texParameteri(P, r.TEXTURE_MAG_FILTER, le[T.magFilter]), r.texParameteri(P, r.TEXTURE_MIN_FILTER, le[T.minFilter]), T.compareFunction && (r.texParameteri(P, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(P, r.TEXTURE_COMPARE_FUNC, W[T.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
20826
20826
  if (T.magFilter === Et || T.minFilter !== sr && T.minFilter !== En || T.type === rn && e.has("OES_texture_float_linear") === !1)
20827
20827
  return;
20828
20828
  if (T.anisotropy > 1 || n.get(T).__currentAnisotropy) {
@@ -21601,10 +21601,10 @@ class zw extends ti {
21601
21601
  xe && xe.connect(pe);
21602
21602
  }
21603
21603
  }
21604
- const re = new U(), J = new U();
21604
+ const re = new U(), $ = new U();
21605
21605
  function le(oe, ee, pe) {
21606
- re.setFromMatrixPosition(ee.matrixWorld), J.setFromMatrixPosition(pe.matrixWorld);
21607
- const ye = re.distanceTo(J), xe = ee.projectionMatrix.elements, ze = pe.projectionMatrix.elements, Ke = xe[14] / (xe[10] - 1), He = xe[14] / (xe[10] + 1), w = (xe[9] + 1) / xe[5], q = (xe[9] - 1) / xe[5], k = (xe[8] - 1) / xe[0], N = (ze[8] + 1) / ze[0], S = Ke * k, G = Ke * N, K = ye / (-k + N), ie = K * -k;
21606
+ re.setFromMatrixPosition(ee.matrixWorld), $.setFromMatrixPosition(pe.matrixWorld);
21607
+ const ye = re.distanceTo($), xe = ee.projectionMatrix.elements, ze = pe.projectionMatrix.elements, Ke = xe[14] / (xe[10] - 1), He = xe[14] / (xe[10] + 1), w = (xe[9] + 1) / xe[5], q = (xe[9] - 1) / xe[5], k = (xe[8] - 1) / xe[0], N = (ze[8] + 1) / ze[0], S = Ke * k, G = Ke * N, K = ye / (-k + N), ie = K * -k;
21608
21608
  if (ee.matrixWorld.decompose(oe.position, oe.quaternion, oe.scale), oe.translateX(ie), oe.translateZ(K), oe.matrixWorld.compose(oe.position, oe.quaternion, oe.scale), oe.matrixWorldInverse.copy(oe.matrixWorld).invert(), xe[10] === -1)
21609
21609
  oe.projectionMatrix.copy(ee.projectionMatrix), oe.projectionMatrixInverse.copy(ee.projectionMatrixInverse);
21610
21610
  else {
@@ -21823,8 +21823,8 @@ function Hw(r, e, t, n) {
21823
21823
  for (let C = 0, B = b.length; C < B; C++) {
21824
21824
  const R = b[C], O = Array.isArray(R.value) ? R.value : [R.value];
21825
21825
  for (let M = 0, z = O.length; M < z; M++) {
21826
- const X = O[M], H = _(X), re = x % A, J = re % H.boundary, le = re + J;
21827
- x += J, le !== 0 && A - le < H.storage && (x += A - le), R.__data = new Float32Array(H.storage / Float32Array.BYTES_PER_ELEMENT), R.__offset = x, x += H.storage;
21826
+ const X = O[M], H = _(X), re = x % A, $ = re % H.boundary, le = re + $;
21827
+ x += $, le !== 0 && A - le < H.storage && (x += A - le), R.__data = new Float32Array(H.storage / Float32Array.BYTES_PER_ELEMENT), R.__offset = x, x += H.storage;
21828
21828
  }
21829
21829
  }
21830
21830
  }
@@ -22422,7 +22422,7 @@ class pg {
22422
22422
  let B = 0, R = 0, O = null, M = -1, z = null;
22423
22423
  const X = new _t(), H = new _t();
22424
22424
  let re = null;
22425
- const J = new Ae(0);
22425
+ const $ = new Ae(0);
22426
22426
  let le = 0, W = t.width, Z = t.height, ge = 1, _e = null, de = null;
22427
22427
  const oe = new _t(0, 0, W, Z), ee = new _t(0, 0, W, Z);
22428
22428
  let pe = !1;
@@ -22757,7 +22757,7 @@ class pg {
22757
22757
  const Ce = A.state.transmissionRenderTarget[se.id], Oe = se.viewport || X;
22758
22758
  Ce.setSize(Oe.z * b.transmissionResolutionScale, Oe.w * b.transmissionResolutionScale);
22759
22759
  const Ne = b.getRenderTarget(), Ve = b.getActiveCubeFace(), We = b.getActiveMipmapLevel();
22760
- b.setRenderTarget(Ce), b.getClearColor(J), le = b.getClearAlpha(), le < 1 && b.setClearColor(16777215, 0.5), b.clear(), k && Me.render(ae);
22760
+ b.setRenderTarget(Ce), b.getClearColor($), le = b.getClearAlpha(), le < 1 && b.setClearColor(16777215, 0.5), b.clear(), k && Me.render(ae);
22761
22761
  const je = b.toneMapping;
22762
22762
  b.toneMapping = Fn;
22763
22763
  const Ze = se.viewport;
@@ -22772,7 +22772,7 @@ class pg {
22772
22772
  }
22773
22773
  rt === !0 && (F.updateMultisampleRenderTarget(Ce), F.updateRenderTargetMipmap(Ce));
22774
22774
  }
22775
- b.setRenderTarget(Ne, Ve, We), b.setClearColor(J, le), Ze !== void 0 && (se.viewport = Ze), b.toneMapping = je;
22775
+ b.setRenderTarget(Ne, Ve, We), b.setClearColor($, le), Ze !== void 0 && (se.viewport = Ze), b.toneMapping = je;
22776
22776
  }
22777
22777
  function Bo(L, j, ae) {
22778
22778
  const se = j.isScene === !0 ? j.overrideMaterial : null;
@@ -23526,22 +23526,22 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
23526
23526
  `;
23527
23527
  class d2 {
23528
23528
  constructor(e) {
23529
- $(this, "size", 84);
23530
- $(this, "padding", 4);
23531
- $(this, "bubbleSizePrimary", 8);
23532
- $(this, "bubbleSizeSecondary", 6);
23533
- $(this, "lineWidth", 2);
23534
- $(this, "fontSize", "12px");
23535
- $(this, "fontFamily", "arial");
23536
- $(this, "fontWeight", "bold");
23537
- $(this, "fontColor", "#222222");
23538
- $(this, "className", "gizmo-axis-canvas");
23539
- $(this, "colorX", "#f73c3c");
23540
- $(this, "colorY", "#6ccb26");
23541
- $(this, "colorZ", "#178cf0");
23542
- $(this, "colorXSub", "#942424");
23543
- $(this, "colorYSub", "#417a17");
23544
- $(this, "colorZSub", "#0e5490");
23529
+ J(this, "size", 84);
23530
+ J(this, "padding", 4);
23531
+ J(this, "bubbleSizePrimary", 8);
23532
+ J(this, "bubbleSizeSecondary", 6);
23533
+ J(this, "lineWidth", 2);
23534
+ J(this, "fontSize", "12px");
23535
+ J(this, "fontFamily", "arial");
23536
+ J(this, "fontWeight", "bold");
23537
+ J(this, "fontColor", "#222222");
23538
+ J(this, "className", "gizmo-axis-canvas");
23539
+ J(this, "colorX", "#f73c3c");
23540
+ J(this, "colorY", "#6ccb26");
23541
+ J(this, "colorZ", "#178cf0");
23542
+ J(this, "colorXSub", "#942424");
23543
+ J(this, "colorYSub", "#417a17");
23544
+ J(this, "colorZSub", "#0e5490");
23545
23545
  this.size = e?.size ?? this.size, this.padding = e?.padding ?? this.padding, this.bubbleSizePrimary = e?.bubbleSizePrimary ?? this.bubbleSizePrimary, this.bubbleSizeSecondary = e?.bubbleSizeSecondary ?? this.bubbleSizeSecondary, this.lineWidth = e?.lineWidth ?? this.lineWidth, this.fontSize = e?.fontSize ?? this.fontSize, this.fontFamily = e?.fontFamily ?? this.fontFamily, this.fontWeight = e?.fontWeight ?? this.fontWeight, this.fontColor = e?.fontColor ?? this.fontColor, this.className = e?.className ?? this.className, this.colorX = e?.colorX ?? this.colorX, this.colorY = e?.colorY ?? this.colorY, this.colorZ = e?.colorZ ?? this.colorZ, this.colorXSub = e?.colorXSub ?? this.colorXSub, this.colorYSub = e?.colorYSub ?? this.colorYSub, this.colorZSub = e?.colorZSub ?? this.colorZSub;
23546
23546
  }
23547
23547
  }
@@ -23563,7 +23563,9 @@ const tp = {
23563
23563
  orbit: !0,
23564
23564
  rotateSpeed: 1,
23565
23565
  orbitSpeed: 1,
23566
- moveSpeed: 1
23566
+ moveSpeed: 1,
23567
+ lerpDuration: 1,
23568
+ lerpEasing: "easeOutCubic"
23567
23569
  },
23568
23570
  gizmo: {
23569
23571
  enable: !1,
@@ -23640,7 +23642,7 @@ function aS(r) {
23640
23642
  return new he();
23641
23643
  }
23642
23644
  function cS(r) {
23643
- return r.camera.allowedMovement = Eh(r.camera.allowedMovement), r.camera.allowedRotation = aS(r.camera.allowedRotation), r.camera.forward = Eh(r.camera.forward), r.camera.gizmo.color = $i(r.camera.gizmo.color), r.background.color = $i(r.background.color), r.groundPlane.color = $i(r.groundPlane.color), r.skylight.skyColor = $i(r.skylight.skyColor), r.skylight.groundColor = $i(r.skylight.groundColor), r.ambientLight.color = $i(r.ambientLight.color), r.sunLights = r.sunLights.map((e) => ({
23645
+ return r.camera.allowedMovement = Eh(r.camera.allowedMovement), r.camera.allowedRotation = aS(r.camera.allowedRotation), r.camera.forward = Eh(r.camera.forward), r.camera.gizmo.color = $i(r.camera.gizmo.color), r.background.color !== null && r.background.color !== void 0 && (r.background.color = $i(r.background.color)), r.groundPlane.color = $i(r.groundPlane.color), r.skylight.skyColor = $i(r.skylight.skyColor), r.skylight.groundColor = $i(r.skylight.groundColor), r.ambientLight.color = $i(r.ambientLight.color), r.sunLights = r.sunLights.map((e) => ({
23644
23646
  ...e,
23645
23647
  position: Eh(e.position),
23646
23648
  color: $i(e.color)
@@ -24010,7 +24012,7 @@ Cl.SignalHandlingBase = DS;
24010
24012
  })(ys);
24011
24013
  class LS {
24012
24014
  constructor(e) {
24013
- $(this, "camera");
24015
+ J(this, "camera");
24014
24016
  this.camera = e;
24015
24017
  }
24016
24018
  applySettings(e) {
@@ -24026,7 +24028,7 @@ class LS {
24026
24028
  }
24027
24029
  class NS {
24028
24030
  constructor(e) {
24029
- $(this, "camera");
24031
+ J(this, "camera");
24030
24032
  this.camera = e;
24031
24033
  }
24032
24034
  applySettings(e) {
@@ -24039,7 +24041,7 @@ class NS {
24039
24041
  }
24040
24042
  class vg {
24041
24043
  constructor(e) {
24042
- $(this, "_camera");
24044
+ J(this, "_camera");
24043
24045
  this._camera = e;
24044
24046
  }
24045
24047
  move2(e, t) {
@@ -24067,16 +24069,17 @@ class vg {
24067
24069
  }
24068
24070
  }
24069
24071
  class US extends vg {
24070
- constructor(t, n) {
24072
+ constructor(t, n, i = "easeOutCubic") {
24071
24073
  super(t);
24072
- $(this, "_movement");
24073
- $(this, "_clock", new bl());
24074
- $(this, "onProgress");
24075
- $(this, "_duration", 1);
24076
- this._movement = n;
24074
+ J(this, "_movement");
24075
+ J(this, "_clock", new bl());
24076
+ J(this, "onProgress");
24077
+ J(this, "_duration", 1);
24078
+ J(this, "_easing", "easeOutCubic");
24079
+ this._movement = n, this._easing = i;
24077
24080
  }
24078
- init(t) {
24079
- this.cancel(), this._duration = t, this._clock.start(), this.animate();
24081
+ init(t, n) {
24082
+ this.cancel(), this._duration = t, n !== void 0 && (this._easing = n), this._clock.start(), this.animate();
24080
24083
  }
24081
24084
  cancel() {
24082
24085
  this._clock.stop(), this.onProgress = void 0;
@@ -24084,12 +24087,23 @@ class US extends vg {
24084
24087
  animate() {
24085
24088
  this._clock.running && (this.update(), requestAnimationFrame(() => this.animate()));
24086
24089
  }
24087
- easeOutCubic(t) {
24088
- return 1 - Math.pow(1 - t, 3);
24090
+ applyEasing(t) {
24091
+ switch (this._easing) {
24092
+ case "linear":
24093
+ return t;
24094
+ case "easeOutCubic":
24095
+ return 1 - Math.pow(1 - t, 3);
24096
+ case "easeInOutCubic":
24097
+ return t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
24098
+ case "easeOutQuad":
24099
+ return 1 - (1 - t) * (1 - t);
24100
+ default:
24101
+ return 1 - Math.pow(1 - t, 3);
24102
+ }
24089
24103
  }
24090
24104
  update() {
24091
24105
  let t = this._clock.getElapsedTime() / this._duration;
24092
- t = this.easeOutCubic(t), t >= 1 && (t = 1, this._clock.stop(), this.onProgress = void 0), this.onProgress?.(t);
24106
+ t = this.applyEasing(t), t >= 1 && (t = 1, this._clock.stop(), this.onProgress = void 0), this.onProgress?.(t);
24093
24107
  }
24094
24108
  move3(t) {
24095
24109
  const n = t.clone();
@@ -24203,33 +24217,35 @@ class BS extends vg {
24203
24217
  }
24204
24218
  class OS {
24205
24219
  constructor(e, t) {
24206
- $(this, "camPerspective");
24207
- $(this, "camOrthographic");
24208
- $(this, "_viewport");
24209
- $(this, "_lerp");
24210
- $(this, "_movement");
24211
- $(this, "_inputVelocity", new U());
24212
- $(this, "_velocity", new U());
24213
- $(this, "_speed", 0);
24214
- $(this, "_orthographic", !1);
24215
- $(this, "_target", new U());
24216
- $(this, "_lastPosition", new U());
24217
- $(this, "_lastQuaternion", new wt());
24218
- $(this, "_lastTarget", new U());
24219
- $(this, "_savedPosition", new U(0, 0, -5));
24220
- $(this, "_savedTarget", new U(0, 0, 0));
24221
- $(this, "_onValueChanged", new ys.SignalDispatcher());
24222
- $(this, "_hasMoved");
24223
- $(this, "_onMoved", new ys.SignalDispatcher());
24224
- $(this, "_force", !1);
24225
- $(this, "_allowedMovement", new U(1, 1, 1));
24226
- $(this, "_allowedRotation", new he(1, 1));
24227
- $(this, "_defaultForward", new U(0, 0, 1));
24228
- $(this, "_velocityBlendFactor", 1e-4);
24229
- $(this, "_moveSpeed", 1);
24220
+ J(this, "camPerspective");
24221
+ J(this, "camOrthographic");
24222
+ J(this, "_viewport");
24223
+ J(this, "_lerp");
24224
+ J(this, "_movement");
24225
+ J(this, "_inputVelocity", new U());
24226
+ J(this, "_velocity", new U());
24227
+ J(this, "_speed", 0);
24228
+ J(this, "_orthographic", !1);
24229
+ J(this, "_target", new U());
24230
+ J(this, "_lastPosition", new U());
24231
+ J(this, "_lastQuaternion", new wt());
24232
+ J(this, "_lastTarget", new U());
24233
+ J(this, "_savedPosition", new U(0, 0, -5));
24234
+ J(this, "_savedTarget", new U(0, 0, 0));
24235
+ J(this, "_onValueChanged", new ys.SignalDispatcher());
24236
+ J(this, "_hasMoved");
24237
+ J(this, "_onMoved", new ys.SignalDispatcher());
24238
+ J(this, "_force", !1);
24239
+ J(this, "_allowedMovement", new U(1, 1, 1));
24240
+ J(this, "_allowedRotation", new he(1, 1));
24241
+ J(this, "_defaultForward", new U(0, 0, 1));
24242
+ J(this, "_velocityBlendFactor", 1e-4);
24243
+ J(this, "_moveSpeed", 1);
24244
+ J(this, "_lerpDuration", 1);
24245
+ J(this, "_lerpEasing", "easeOutCubic");
24230
24246
  this.camPerspective = new LS(new Ft()), this.camOrthographic = new NS(
24231
24247
  new Tr()
24232
- ), this._movement = new BS(this), this._lerp = new US(this, this._movement), this._viewport = e, this.applySettings(t), this.do().orbitTowards(this._defaultForward), this.do().setDistance(-1e3);
24248
+ ), this._movement = new BS(this), this._lerpDuration = t.camera.controls.lerpDuration, this._lerpEasing = t.camera.controls.lerpEasing, this._lerp = new US(this, this._movement, this._lerpEasing), this._viewport = e, this.applySettings(t), this.do().orbitTowards(this._defaultForward), this.do().setDistance(-1e3);
24233
24249
  }
24234
24250
  get onValueChanged() {
24235
24251
  return this._onValueChanged.asEvent();
@@ -24261,8 +24277,10 @@ class OS {
24261
24277
  do(e = !1) {
24262
24278
  return this._force = e, this._lerp.cancel(), this._movement;
24263
24279
  }
24264
- lerp(e = 1, t = !1) {
24265
- return this.stop(), this._force = t, this._lerp.init(e), this._lerp;
24280
+ lerp(e, t = !1) {
24281
+ this.stop(), this._force = t;
24282
+ const n = e ?? this._lerpDuration;
24283
+ return this._lerp.init(n, this._lerpEasing), this._lerp;
24266
24284
  }
24267
24285
  frustrumSizeAt(e) {
24268
24286
  return this.camPerspective.frustrumSizeAt(e);
@@ -24305,7 +24323,7 @@ class OS {
24305
24323
  return this._target;
24306
24324
  }
24307
24325
  applySettings(e) {
24308
- this._defaultForward = new U().copy(e.camera.forward), this._orthographic = e.camera.orthographic, this.allowedMovement = e.camera.allowedMovement, this.allowedRotation = e.camera.allowedRotation, this.camPerspective.applySettings(e), this.camOrthographic.applySettings(e), this._moveSpeed = e.camera.controls.moveSpeed, this._onValueChanged.dispatch();
24326
+ this._defaultForward = new U().copy(e.camera.forward), this._orthographic = e.camera.orthographic, this.allowedMovement = e.camera.allowedMovement, this.allowedRotation = e.camera.allowedRotation, this.camPerspective.applySettings(e), this.camOrthographic.applySettings(e), this._moveSpeed = e.camera.controls.moveSpeed, this._lerpDuration = e.camera.controls.lerpDuration, this._lerpEasing = e.camera.controls.lerpEasing, this._onValueChanged.dispatch();
24309
24327
  }
24310
24328
  get orbitDistance() {
24311
24329
  return this.position.distanceTo(this._target);
@@ -24359,9 +24377,9 @@ class OS {
24359
24377
  }
24360
24378
  class uf {
24361
24379
  constructor(e) {
24362
- $(this, "_viewer");
24363
- $(this, "_unregisters", []);
24364
- $(this, "reg", (e, t, n) => {
24380
+ J(this, "_viewer");
24381
+ J(this, "_unregisters", []);
24382
+ J(this, "reg", (e, t, n) => {
24365
24383
  e.addEventListener(t, n), this._unregisters.push(() => e.removeEventListener(t, n));
24366
24384
  });
24367
24385
  this._viewer = e;
@@ -24464,16 +24482,16 @@ const bt = {
24464
24482
  class zS extends uf {
24465
24483
  constructor() {
24466
24484
  super(...arguments);
24467
- $(this, "SHIFT_MULTIPLIER", 3);
24468
- $(this, "isUpPressed", !1);
24469
- $(this, "isDownPressed", !1);
24470
- $(this, "isLeftPressed", !1);
24471
- $(this, "isRightPressed", !1);
24472
- $(this, "isEPressed", !1);
24473
- $(this, "isQPressed", !1);
24474
- $(this, "isShiftPressed", !1);
24475
- $(this, "isCtrlPressed", !1);
24476
- $(this, "arrowsEnabled", !0);
24485
+ J(this, "SHIFT_MULTIPLIER", 3);
24486
+ J(this, "isUpPressed", !1);
24487
+ J(this, "isDownPressed", !1);
24488
+ J(this, "isLeftPressed", !1);
24489
+ J(this, "isRightPressed", !1);
24490
+ J(this, "isEPressed", !1);
24491
+ J(this, "isQPressed", !1);
24492
+ J(this, "isShiftPressed", !1);
24493
+ J(this, "isCtrlPressed", !1);
24494
+ J(this, "arrowsEnabled", !0);
24477
24495
  }
24478
24496
  addListeners() {
24479
24497
  this.reg(document, "keydown", (t) => this.onKeyDown(t)), this.reg(document, "keyup", (t) => this.onKeyUp(t)), this.reg(this._viewer.viewport.canvas, "focusout", () => this.reset()), this.reg(window, "resize", () => this.reset());
@@ -24534,40 +24552,40 @@ class zS extends uf {
24534
24552
  class kS extends uf {
24535
24553
  constructor(t) {
24536
24554
  super(t);
24537
- $(this, "TAP_DURATION_MS", 500);
24538
- $(this, "DOUBLE_TAP_DELAY_MS", 500);
24539
- $(this, "TAP_MAX_MOVE_PIXEL", 5);
24540
- $(this, "ZOOM_SPEED", 1);
24541
- $(this, "MOVE_SPEED", 100);
24542
- $(this, "rotateSpeed", 1);
24543
- $(this, "orbitSpeed", 1);
24544
- $(this, "_touch");
24545
- $(this, "_touch1");
24546
- $(this, "_touch2");
24547
- $(this, "_touchStartTime");
24548
- $(this, "_lastTapMs");
24549
- $(this, "_touchStart");
24550
- $(this, "reset", () => {
24555
+ J(this, "TAP_DURATION_MS", 500);
24556
+ J(this, "DOUBLE_TAP_DELAY_MS", 500);
24557
+ J(this, "TAP_MAX_MOVE_PIXEL", 5);
24558
+ J(this, "ZOOM_SPEED", 1);
24559
+ J(this, "MOVE_SPEED", 100);
24560
+ J(this, "rotateSpeed", 1);
24561
+ J(this, "orbitSpeed", 1);
24562
+ J(this, "_touch");
24563
+ J(this, "_touch1");
24564
+ J(this, "_touch2");
24565
+ J(this, "_touchStartTime");
24566
+ J(this, "_lastTapMs");
24567
+ J(this, "_touchStart");
24568
+ J(this, "reset", () => {
24551
24569
  this._touch = this._touch1 = this._touch2 = this._touchStartTime = void 0;
24552
24570
  });
24553
- $(this, "onTap", (t) => {
24571
+ J(this, "onTap", (t) => {
24554
24572
  const n = new Date().getTime();
24555
24573
  this._lastTapMs && n - this._lastTapMs < this.DOUBLE_TAP_DELAY_MS, this._lastTapMs = new Date().getTime();
24556
24574
  });
24557
- $(this, "onTouchStart", (t) => {
24575
+ J(this, "onTouchStart", (t) => {
24558
24576
  t.preventDefault(), !(!t || !t.touches || !t.touches.length) && (this._touchStartTime = new Date().getTime(), t.touches.length === 1 ? (this._touch = this.touchToVector(t.touches[0]), this._touch1 = this._touch2 = void 0) : t.touches.length === 2 && (this._touch1 = this.touchToVector(t.touches[0]), this._touch2 = this.touchToVector(t.touches[1]), this._touch = this.average(this._touch1, this._touch2)), this._touchStart = this._touch);
24559
24577
  });
24560
- $(this, "onDrag", (t) => {
24578
+ J(this, "onDrag", (t) => {
24561
24579
  this._viewer.inputs.pointerActive === "orbit" ? this.camera.do().orbit(this.toRotation(t, this.orbitSpeed)) : this.camera.do().rotate(this.toRotation(t, this.rotateSpeed));
24562
24580
  });
24563
- $(this, "onDoubleDrag", (t) => {
24581
+ J(this, "onDoubleDrag", (t) => {
24564
24582
  const n = t.clone().multiplyScalar(this.MOVE_SPEED);
24565
24583
  this.camera.do().move2(n, "XY");
24566
24584
  });
24567
- $(this, "onPinchOrSpread", (t) => {
24585
+ J(this, "onPinchOrSpread", (t) => {
24568
24586
  this._viewer.inputs.pointerActive === "orbit" ? this.camera.do().zoom(1 + t * this.ZOOM_SPEED) : this.camera.do().move1(t * this.ZOOM_SPEED, "Z");
24569
24587
  });
24570
- $(this, "onTouchMove", (t) => {
24588
+ J(this, "onTouchMove", (t) => {
24571
24589
  if (t.preventDefault(), !(!t || !t.touches || !t.touches.length) && !!this._touch) {
24572
24590
  if (t.touches.length === 1) {
24573
24591
  const n = this.touchToVector(t.touches[0]), i = this.viewport.getSize(), s = n.clone().sub(this._touch).multiply(new he(1 / i.x, 1 / i.y));
@@ -24582,7 +24600,7 @@ class kS extends uf {
24582
24600
  }
24583
24601
  }
24584
24602
  });
24585
- $(this, "onTouchEnd", (t) => {
24603
+ J(this, "onTouchEnd", (t) => {
24586
24604
  if (this.isSingleTouch() && this._touchStart && this._touch) {
24587
24605
  const n = new Date().getTime() - this._touchStartTime, i = this._touch.distanceTo(this._touchStart);
24588
24606
  n < this.TAP_DURATION_MS && i < this.TAP_MAX_MOVE_PIXEL && this.onTap(this._touch);
@@ -24618,48 +24636,48 @@ class kS extends uf {
24618
24636
  class VS extends uf {
24619
24637
  constructor(t) {
24620
24638
  super(t);
24621
- $(this, "_idleDelayMs", 150);
24622
- $(this, "zoomSpeed", 1);
24623
- $(this, "panSpeed", 100);
24624
- $(this, "rotateSpeed", 1);
24625
- $(this, "orbitSpeed", 1);
24626
- $(this, "_buttonDown");
24627
- $(this, "_hasMouseMoved", !1);
24628
- $(this, "_hasCameraMoved", !1);
24629
- $(this, "_idleTimeout");
24630
- $(this, "_idlePosition");
24631
- $(this, "_lastPosition");
24632
- $(this, "_downPosition");
24633
- $(this, "reset", () => {
24639
+ J(this, "_idleDelayMs", 150);
24640
+ J(this, "zoomSpeed", 1);
24641
+ J(this, "panSpeed", 100);
24642
+ J(this, "rotateSpeed", 1);
24643
+ J(this, "orbitSpeed", 1);
24644
+ J(this, "_buttonDown");
24645
+ J(this, "_hasMouseMoved", !1);
24646
+ J(this, "_hasCameraMoved", !1);
24647
+ J(this, "_idleTimeout");
24648
+ J(this, "_idlePosition");
24649
+ J(this, "_lastPosition");
24650
+ J(this, "_downPosition");
24651
+ J(this, "reset", () => {
24634
24652
  this._buttonDown = void 0, this._hasMouseMoved = !1, this._lastPosition = this._downPosition = void 0, clearTimeout(this._idleTimeout);
24635
24653
  });
24636
- $(this, "onMouseOut", (t) => {
24654
+ J(this, "onMouseOut", (t) => {
24637
24655
  t.stopImmediatePropagation(), this._buttonDown = void 0, this._hasMouseMoved = !1, this._lastPosition = void 0, this.resetIdle();
24638
24656
  });
24639
- $(this, "onCameraMoved", () => {
24657
+ J(this, "onCameraMoved", () => {
24640
24658
  this.resetIdle(), this._hasCameraMoved = !0;
24641
24659
  });
24642
- $(this, "onMouseMove", (t) => {
24660
+ J(this, "onMouseMove", (t) => {
24643
24661
  t.stopImmediatePropagation(), this._lastPosition = new he(t.offsetX, t.offsetY), (!this._idlePosition || this._lastPosition.distanceTo(this._idlePosition) > 5) && this.resetIdle(), this._buttonDown && this.onMouseDrag(t);
24644
24662
  });
24645
- $(this, "onMouseDown", (t) => {
24663
+ J(this, "onMouseDown", (t) => {
24646
24664
  if (t.stopImmediatePropagation(), t.preventDefault(), this._buttonDown)
24647
24665
  return;
24648
24666
  this.inputs.ContextMenu(void 0), this._hasCameraMoved = !1, this._downPosition = new he(t.offsetX, t.offsetY), this._hasMouseMoved = !1, this.viewport.canvas.focus(), this._buttonDown = this.getButton(t);
24649
24667
  const n = this._buttonDown === "middle" ? "pan" : this._buttonDown === "right" ? "look" : void 0;
24650
24668
  this.inputs.pointerOverride = n;
24651
24669
  });
24652
- $(this, "onMouseWheel", (t) => {
24670
+ J(this, "onMouseWheel", (t) => {
24653
24671
  t.preventDefault(), t.stopImmediatePropagation();
24654
24672
  const n = Math.sign(t.deltaY);
24655
24673
  if (t.ctrlKey)
24656
24674
  this.camera.speed -= n;
24657
24675
  else {
24658
24676
  const i = Math.pow(1.3, n);
24659
- this.camera.lerp(0.75).zoom(i);
24677
+ this.camera.lerp().zoom(i);
24660
24678
  }
24661
24679
  });
24662
- $(this, "onMouseUp", (t) => {
24680
+ J(this, "onMouseUp", (t) => {
24663
24681
  t.stopImmediatePropagation(), this.resetIdle(), this.getButton(t) !== this._buttonDown && (t.preventDefault(), this._buttonDown && (t.button === 2 && !this._hasMouseMoved && this.inputs.ContextMenu(new he(t.clientX, t.clientY)), this._buttonDown = void 0, this.inputs.pointerOverride = void 0));
24664
24682
  });
24665
24683
  this.rotateSpeed = t.settings.camera.controls.rotateSpeed, this.orbitSpeed = t.settings.camera.controls.orbitSpeed;
@@ -24819,7 +24837,7 @@ Rl.NonUniformSimpleEventList = KS;
24819
24837
  })(yg);
24820
24838
  class jS {
24821
24839
  constructor(e) {
24822
- $(this, "_viewer");
24840
+ J(this, "_viewer");
24823
24841
  this._viewer = e;
24824
24842
  }
24825
24843
  onKeyAction(e) {
@@ -24850,18 +24868,18 @@ class jS {
24850
24868
  }
24851
24869
  class JS {
24852
24870
  constructor(e) {
24853
- $(this, "_viewer");
24854
- $(this, "_scheme");
24855
- $(this, "touch");
24856
- $(this, "mouse");
24857
- $(this, "keyboard");
24858
- $(this, "_pointerActive", "orbit");
24859
- $(this, "_pointerFallback", "look");
24860
- $(this, "_pointerOverride");
24861
- $(this, "_onPointerModeChanged", new ys.SignalDispatcher());
24862
- $(this, "_onPointerOverrideChanged", new ys.SignalDispatcher());
24863
- $(this, "_onContextMenu", new yg.SimpleEventDispatcher());
24864
- $(this, "unregisterAll", () => {
24871
+ J(this, "_viewer");
24872
+ J(this, "_scheme");
24873
+ J(this, "touch");
24874
+ J(this, "mouse");
24875
+ J(this, "keyboard");
24876
+ J(this, "_pointerActive", "orbit");
24877
+ J(this, "_pointerFallback", "look");
24878
+ J(this, "_pointerOverride");
24879
+ J(this, "_onPointerModeChanged", new ys.SignalDispatcher());
24880
+ J(this, "_onPointerOverrideChanged", new ys.SignalDispatcher());
24881
+ J(this, "_onContextMenu", new yg.SimpleEventDispatcher());
24882
+ J(this, "unregisterAll", () => {
24865
24883
  this.mouse.unregister(), this.keyboard.unregister(), this.touch.unregister();
24866
24884
  });
24867
24885
  this._viewer = e, this._scheme = new jS(e), this.keyboard = new zS(e), this.mouse = new VS(e), this.touch = new kS(e), this.pointerActive = e.settings.camera.controls.orbit ? "orbit" : "look", this._pointerFallback = e.settings.camera.controls.orbit ? "look" : "orbit";
@@ -24908,12 +24926,12 @@ class JS {
24908
24926
  }
24909
24927
  class $S {
24910
24928
  constructor() {
24911
- $(this, "mesh");
24912
- $(this, "_source");
24913
- $(this, "_size", 1);
24914
- $(this, "_geometry");
24915
- $(this, "_material");
24916
- $(this, "_texture");
24929
+ J(this, "mesh");
24930
+ J(this, "_source");
24931
+ J(this, "_size", 1);
24932
+ J(this, "_geometry");
24933
+ J(this, "_material");
24934
+ J(this, "_texture");
24917
24935
  this._geometry = new Sr(), this._material = new dn({
24918
24936
  transparent: !0,
24919
24937
  depthTest: !0,
@@ -24965,10 +24983,10 @@ class $S {
24965
24983
  }
24966
24984
  class eM {
24967
24985
  constructor(e) {
24968
- $(this, "skyLight");
24969
- $(this, "ambientLight");
24970
- $(this, "sunLights");
24971
- $(this, "_groundPlane");
24986
+ J(this, "skyLight");
24987
+ J(this, "ambientLight");
24988
+ J(this, "sunLights");
24989
+ J(this, "_groundPlane");
24972
24990
  this._groundPlane = new $S(), this.skyLight = new $u(), this.ambientLight = new rf(), this.sunLights = [], this.applySettings(e);
24973
24991
  }
24974
24992
  get groundPlane() {
@@ -24998,26 +25016,26 @@ class eM {
24998
25016
  }
24999
25017
  class tM {
25000
25018
  constructor(e, t, n, i) {
25001
- $(this, "_renderer");
25002
- $(this, "_camera");
25003
- $(this, "_inputs");
25004
- $(this, "_size", 1);
25005
- $(this, "_fov", 50);
25006
- $(this, "_color", new Ae("blue"));
25007
- $(this, "_opacity", 0.2);
25008
- $(this, "_opacityAlways", 0.5);
25009
- $(this, "_fadeDurationMs", 200);
25010
- $(this, "_showDurationMs", 1e3);
25011
- $(this, "_box");
25012
- $(this, "_wireframe");
25013
- $(this, "_material");
25014
- $(this, "_materialAlways");
25015
- $(this, "_gizmos");
25016
- $(this, "_disconnectCamera");
25017
- $(this, "_timeout");
25018
- $(this, "_fadeEnd", 0);
25019
- $(this, "_active", !0);
25020
- $(this, "_animation", 0);
25019
+ J(this, "_renderer");
25020
+ J(this, "_camera");
25021
+ J(this, "_inputs");
25022
+ J(this, "_size", 1);
25023
+ J(this, "_fov", 50);
25024
+ J(this, "_color", new Ae("blue"));
25025
+ J(this, "_opacity", 0.2);
25026
+ J(this, "_opacityAlways", 0.5);
25027
+ J(this, "_fadeDurationMs", 200);
25028
+ J(this, "_showDurationMs", 1e3);
25029
+ J(this, "_box");
25030
+ J(this, "_wireframe");
25031
+ J(this, "_material");
25032
+ J(this, "_materialAlways");
25033
+ J(this, "_gizmos");
25034
+ J(this, "_disconnectCamera");
25035
+ J(this, "_timeout");
25036
+ J(this, "_fadeEnd", 0);
25037
+ J(this, "_active", !0);
25038
+ J(this, "_animation", 0);
25021
25039
  this._renderer = e, this._camera = t, this._inputs = n, this.applySettings(i), this.connect();
25022
25040
  }
25023
25041
  connect() {
@@ -25160,11 +25178,11 @@ class nM {
25160
25178
  }
25161
25179
  class ff {
25162
25180
  constructor(e) {
25163
- $(this, "canvas");
25164
- $(this, "text");
25165
- $(this, "_unregisterResize");
25166
- $(this, "_ownedCanvas");
25167
- $(this, "_onResize", new ys.SignalDispatcher());
25181
+ J(this, "canvas");
25182
+ J(this, "text");
25183
+ J(this, "_unregisterResize");
25184
+ J(this, "_ownedCanvas");
25185
+ J(this, "_onResize", new ys.SignalDispatcher());
25168
25186
  const [t, n] = ff.getOrCreateCanvas(e.canvas.id);
25169
25187
  this.canvas = t, this._ownedCanvas = n, this.watchResize(e.canvas.resizeDelay);
25170
25188
  }
@@ -25212,14 +25230,14 @@ class ff {
25212
25230
  }
25213
25231
  class iM {
25214
25232
  constructor(e, t, n, i) {
25215
- $(this, "renderer");
25216
- $(this, "antialias", !0);
25217
- $(this, "scene");
25218
- $(this, "viewport");
25219
- $(this, "camera");
25220
- $(this, "needsUpdate");
25221
- $(this, "_lastSize", new he());
25222
- $(this, "fitViewport", () => {
25233
+ J(this, "renderer");
25234
+ J(this, "antialias", !0);
25235
+ J(this, "scene");
25236
+ J(this, "viewport");
25237
+ J(this, "camera");
25238
+ J(this, "needsUpdate");
25239
+ J(this, "_lastSize", new he());
25240
+ J(this, "fitViewport", () => {
25223
25241
  const e = this.viewport.getParentSize();
25224
25242
  if (e.x === this._lastSize.x && e.y === this._lastSize.y)
25225
25243
  return;
@@ -25249,7 +25267,7 @@ class iM {
25249
25267
  return this.scene.background;
25250
25268
  }
25251
25269
  set background(e) {
25252
- this.scene.background = e, this.needsUpdate = !0;
25270
+ this.scene.background = e, e === null ? this.renderer.setClearColor(0, 0) : this.renderer.setClearColor(0, 1), this.needsUpdate = !0;
25253
25271
  }
25254
25272
  render() {
25255
25273
  !this.needsUpdate && !this.camera.hasMoved || this.renderer.render(this.scene, this.camera.camPerspective.camera);
@@ -25266,18 +25284,18 @@ class iM {
25266
25284
  }
25267
25285
  class p2 {
25268
25286
  constructor(e) {
25269
- $(this, "settings");
25270
- $(this, "renderer");
25271
- $(this, "viewport");
25272
- $(this, "inputs");
25273
- $(this, "camera");
25274
- $(this, "environment");
25275
- $(this, "gizmoOrbit");
25276
- $(this, "running", !1);
25277
- $(this, "updateId", null);
25278
- $(this, "clock", new bl());
25279
- $(this, "scene", new Du());
25280
- $(this, "animate", () => {
25287
+ J(this, "settings");
25288
+ J(this, "renderer");
25289
+ J(this, "viewport");
25290
+ J(this, "inputs");
25291
+ J(this, "camera");
25292
+ J(this, "environment");
25293
+ J(this, "gizmoOrbit");
25294
+ J(this, "running", !1);
25295
+ J(this, "updateId", null);
25296
+ J(this, "clock", new bl());
25297
+ J(this, "scene", new Du());
25298
+ J(this, "animate", () => {
25281
25299
  if (!this.running)
25282
25300
  return;
25283
25301
  this.updateId = requestAnimationFrame(this.animate);
@@ -27079,7 +27097,7 @@ function kM() {
27079
27097
  }
27080
27098
  class m2 {
27081
27099
  constructor() {
27082
- $(this, "loader");
27100
+ J(this, "loader");
27083
27101
  this.loader = new rM();
27084
27102
  const e = new zM();
27085
27103
  e.setDecoderPath("/draco/"), this.loader.setDRACOLoader(e);
@@ -27248,7 +27266,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
27248
27266
  return m;
27249
27267
  }
27250
27268
  function o(d, g, _, m, p, v) {
27251
- var y, x, A = d.file, E = d.compression, I = v !== l.utf8encode, D = a.transformTo("string", v(A.name)), b = a.transformTo("string", l.utf8encode(A.name)), C = A.comment, B = a.transformTo("string", v(C)), R = a.transformTo("string", l.utf8encode(C)), O = b.length !== A.name.length, M = R.length !== C.length, z = "", X = "", H = "", re = A.dir, J = A.date, le = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
27269
+ var y, x, A = d.file, E = d.compression, I = v !== l.utf8encode, D = a.transformTo("string", v(A.name)), b = a.transformTo("string", l.utf8encode(A.name)), C = A.comment, B = a.transformTo("string", v(C)), R = a.transformTo("string", l.utf8encode(C)), O = b.length !== A.name.length, M = R.length !== C.length, z = "", X = "", H = "", re = A.dir, $ = A.date, le = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
27252
27270
  g && !_ || (le.crc32 = d.crc32, le.compressedSize = d.compressedSize, le.uncompressedSize = d.uncompressedSize);
27253
27271
  var W = 0;
27254
27272
  g && (W |= 8), I || !O && !M || (W |= 2048);
@@ -27258,7 +27276,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
27258
27276
  return de || (ee = oe ? 16893 : 33204), (65535 & ee) << 16;
27259
27277
  }(A.unixPermissions, re)) : (ge = 20, Z |= function(de) {
27260
27278
  return 63 & (de || 0);
27261
- }(A.dosPermissions)), y = J.getUTCHours(), y <<= 6, y |= J.getUTCMinutes(), y <<= 5, y |= J.getUTCSeconds() / 2, x = J.getUTCFullYear() - 1980, x <<= 4, x |= J.getUTCMonth() + 1, x <<= 5, x |= J.getUTCDate(), O && (X = s(1, 1) + s(h(D), 4) + b, z += "up" + s(X.length, 2) + X), M && (H = s(1, 1) + s(h(B), 4) + R, z += "uc" + s(H.length, 2) + H);
27279
+ }(A.dosPermissions)), y = $.getUTCHours(), y <<= 6, y |= $.getUTCMinutes(), y <<= 5, y |= $.getUTCSeconds() / 2, x = $.getUTCFullYear() - 1980, x <<= 4, x |= $.getUTCMonth() + 1, x <<= 5, x |= $.getUTCDate(), O && (X = s(1, 1) + s(h(D), 4) + b, z += "up" + s(X.length, 2) + X), M && (H = s(1, 1) + s(h(B), 4) + R, z += "uc" + s(H.length, 2) + H);
27262
27280
  var _e = "";
27263
27281
  return _e += `
27264
27282
  \0`, _e += s(W, 2), _e += E.magic, _e += s(y, 2), _e += s(x, 2), _e += s(le.crc32, 4), _e += s(le.compressedSize, 4), _e += s(le.uncompressedSize, 4), _e += s(D.length, 2), _e += s(z.length, 2), { fileRecord: u.LOCAL_FILE_HEADER + _e + D + z, dirRecord: u.CENTRAL_FILE_HEADER + s(ge, 2) + _e + s(B.length, 2) + "\0\0\0\0" + s(Z, 4) + s(m, 4) + D + z + B };
@@ -28627,7 +28645,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
28627
28645
  function re(w, q) {
28628
28646
  return w.msg = h[q], q;
28629
28647
  }
28630
- function J(w) {
28648
+ function $(w) {
28631
28649
  return (w << 1) - (4 < w ? 9 : 0);
28632
28650
  }
28633
28651
  function le(w) {
@@ -28819,7 +28837,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
28819
28837
  if (N.status === 103 && (N.gzhead.hcrc ? (N.pending + 2 > N.pending_buf_size && W(w), N.pending + 2 <= N.pending_buf_size && (ge(N, 255 & w.adler), ge(N, w.adler >> 8 & 255), w.adler = 0, N.status = O)) : N.status = O), N.pending !== 0) {
28820
28838
  if (W(w), w.avail_out === 0)
28821
28839
  return N.last_flush = -1, d;
28822
- } else if (w.avail_in === 0 && J(q) <= J(k) && q !== f)
28840
+ } else if (w.avail_in === 0 && $(q) <= $(k) && q !== f)
28823
28841
  return re(w, -5);
28824
28842
  if (N.status === 666 && w.avail_in !== 0)
28825
28843
  return re(w, -5);
@@ -29009,10 +29027,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29009
29027
  i.inflateReset = x, i.inflateReset2 = A, i.inflateResetKeep = y, i.inflateInit = function(R) {
29010
29028
  return E(R, 15);
29011
29029
  }, i.inflateInit2 = E, i.inflate = function(R, O) {
29012
- var M, z, X, H, re, J, le, W, Z, ge, _e, de, oe, ee, pe, ye, xe, ze, Ke, He, w, q, k, N, S = 0, G = new s.Buf8(4), K = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
29030
+ var M, z, X, H, re, $, le, W, Z, ge, _e, de, oe, ee, pe, ye, xe, ze, Ke, He, w, q, k, N, S = 0, G = new s.Buf8(4), K = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
29013
29031
  if (!R || !R.state || !R.output || !R.input && R.avail_in !== 0)
29014
29032
  return d;
29015
- (M = R.state).mode === 12 && (M.mode = 13), re = R.next_out, X = R.output, le = R.avail_out, H = R.next_in, z = R.input, J = R.avail_in, W = M.hold, Z = M.bits, ge = J, _e = le, q = f;
29033
+ (M = R.state).mode === 12 && (M.mode = 13), re = R.next_out, X = R.output, le = R.avail_out, H = R.next_in, z = R.input, $ = R.avail_in, W = M.hold, Z = M.bits, ge = $, _e = le, q = f;
29016
29034
  e:
29017
29035
  for (; ; )
29018
29036
  switch (M.mode) {
@@ -29022,9 +29040,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29022
29040
  break;
29023
29041
  }
29024
29042
  for (; Z < 16; ) {
29025
- if (J === 0)
29043
+ if ($ === 0)
29026
29044
  break e;
29027
- J--, W += z[H++] << Z, Z += 8;
29045
+ $--, W += z[H++] << Z, Z += 8;
29028
29046
  }
29029
29047
  if (2 & M.wrap && W === 35615) {
29030
29048
  G[M.check = 0] = 255 & W, G[1] = W >>> 8 & 255, M.check = a(M.check, G, 2, 0), Z = W = 0, M.mode = 2;
@@ -29048,9 +29066,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29048
29066
  break;
29049
29067
  case 2:
29050
29068
  for (; Z < 16; ) {
29051
- if (J === 0)
29069
+ if ($ === 0)
29052
29070
  break e;
29053
- J--, W += z[H++] << Z, Z += 8;
29071
+ $--, W += z[H++] << Z, Z += 8;
29054
29072
  }
29055
29073
  if (M.flags = W, (255 & M.flags) != 8) {
29056
29074
  R.msg = "unknown compression method", M.mode = 30;
@@ -29063,51 +29081,51 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29063
29081
  M.head && (M.head.text = W >> 8 & 1), 512 & M.flags && (G[0] = 255 & W, G[1] = W >>> 8 & 255, M.check = a(M.check, G, 2, 0)), Z = W = 0, M.mode = 3;
29064
29082
  case 3:
29065
29083
  for (; Z < 32; ) {
29066
- if (J === 0)
29084
+ if ($ === 0)
29067
29085
  break e;
29068
- J--, W += z[H++] << Z, Z += 8;
29086
+ $--, W += z[H++] << Z, Z += 8;
29069
29087
  }
29070
29088
  M.head && (M.head.time = W), 512 & M.flags && (G[0] = 255 & W, G[1] = W >>> 8 & 255, G[2] = W >>> 16 & 255, G[3] = W >>> 24 & 255, M.check = a(M.check, G, 4, 0)), Z = W = 0, M.mode = 4;
29071
29089
  case 4:
29072
29090
  for (; Z < 16; ) {
29073
- if (J === 0)
29091
+ if ($ === 0)
29074
29092
  break e;
29075
- J--, W += z[H++] << Z, Z += 8;
29093
+ $--, W += z[H++] << Z, Z += 8;
29076
29094
  }
29077
29095
  M.head && (M.head.xflags = 255 & W, M.head.os = W >> 8), 512 & M.flags && (G[0] = 255 & W, G[1] = W >>> 8 & 255, M.check = a(M.check, G, 2, 0)), Z = W = 0, M.mode = 5;
29078
29096
  case 5:
29079
29097
  if (1024 & M.flags) {
29080
29098
  for (; Z < 16; ) {
29081
- if (J === 0)
29099
+ if ($ === 0)
29082
29100
  break e;
29083
- J--, W += z[H++] << Z, Z += 8;
29101
+ $--, W += z[H++] << Z, Z += 8;
29084
29102
  }
29085
29103
  M.length = W, M.head && (M.head.extra_len = W), 512 & M.flags && (G[0] = 255 & W, G[1] = W >>> 8 & 255, M.check = a(M.check, G, 2, 0)), Z = W = 0;
29086
29104
  } else
29087
29105
  M.head && (M.head.extra = null);
29088
29106
  M.mode = 6;
29089
29107
  case 6:
29090
- if (1024 & M.flags && (J < (de = M.length) && (de = J), de && (M.head && (w = M.head.extra_len - M.length, M.head.extra || (M.head.extra = new Array(M.head.extra_len)), s.arraySet(M.head.extra, z, H, de, w)), 512 & M.flags && (M.check = a(M.check, z, de, H)), J -= de, H += de, M.length -= de), M.length))
29108
+ if (1024 & M.flags && ($ < (de = M.length) && (de = $), de && (M.head && (w = M.head.extra_len - M.length, M.head.extra || (M.head.extra = new Array(M.head.extra_len)), s.arraySet(M.head.extra, z, H, de, w)), 512 & M.flags && (M.check = a(M.check, z, de, H)), $ -= de, H += de, M.length -= de), M.length))
29091
29109
  break e;
29092
29110
  M.length = 0, M.mode = 7;
29093
29111
  case 7:
29094
29112
  if (2048 & M.flags) {
29095
- if (J === 0)
29113
+ if ($ === 0)
29096
29114
  break e;
29097
- for (de = 0; w = z[H + de++], M.head && w && M.length < 65536 && (M.head.name += String.fromCharCode(w)), w && de < J; )
29115
+ for (de = 0; w = z[H + de++], M.head && w && M.length < 65536 && (M.head.name += String.fromCharCode(w)), w && de < $; )
29098
29116
  ;
29099
- if (512 & M.flags && (M.check = a(M.check, z, de, H)), J -= de, H += de, w)
29117
+ if (512 & M.flags && (M.check = a(M.check, z, de, H)), $ -= de, H += de, w)
29100
29118
  break e;
29101
29119
  } else
29102
29120
  M.head && (M.head.name = null);
29103
29121
  M.length = 0, M.mode = 8;
29104
29122
  case 8:
29105
29123
  if (4096 & M.flags) {
29106
- if (J === 0)
29124
+ if ($ === 0)
29107
29125
  break e;
29108
- for (de = 0; w = z[H + de++], M.head && w && M.length < 65536 && (M.head.comment += String.fromCharCode(w)), w && de < J; )
29126
+ for (de = 0; w = z[H + de++], M.head && w && M.length < 65536 && (M.head.comment += String.fromCharCode(w)), w && de < $; )
29109
29127
  ;
29110
- if (512 & M.flags && (M.check = a(M.check, z, de, H)), J -= de, H += de, w)
29128
+ if (512 & M.flags && (M.check = a(M.check, z, de, H)), $ -= de, H += de, w)
29111
29129
  break e;
29112
29130
  } else
29113
29131
  M.head && (M.head.comment = null);
@@ -29115,9 +29133,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29115
29133
  case 9:
29116
29134
  if (512 & M.flags) {
29117
29135
  for (; Z < 16; ) {
29118
- if (J === 0)
29136
+ if ($ === 0)
29119
29137
  break e;
29120
- J--, W += z[H++] << Z, Z += 8;
29138
+ $--, W += z[H++] << Z, Z += 8;
29121
29139
  }
29122
29140
  if (W !== (65535 & M.check)) {
29123
29141
  R.msg = "header crc mismatch", M.mode = 30;
@@ -29129,14 +29147,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29129
29147
  break;
29130
29148
  case 10:
29131
29149
  for (; Z < 32; ) {
29132
- if (J === 0)
29150
+ if ($ === 0)
29133
29151
  break e;
29134
- J--, W += z[H++] << Z, Z += 8;
29152
+ $--, W += z[H++] << Z, Z += 8;
29135
29153
  }
29136
29154
  R.adler = M.check = p(W), Z = W = 0, M.mode = 11;
29137
29155
  case 11:
29138
29156
  if (M.havedict === 0)
29139
- return R.next_out = re, R.avail_out = le, R.next_in = H, R.avail_in = J, M.hold = W, M.bits = Z, 2;
29157
+ return R.next_out = re, R.avail_out = le, R.next_in = H, R.avail_in = $, M.hold = W, M.bits = Z, 2;
29140
29158
  R.adler = M.check = 1, M.mode = 12;
29141
29159
  case 12:
29142
29160
  if (O === 5 || O === 6)
@@ -29147,9 +29165,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29147
29165
  break;
29148
29166
  }
29149
29167
  for (; Z < 3; ) {
29150
- if (J === 0)
29168
+ if ($ === 0)
29151
29169
  break e;
29152
- J--, W += z[H++] << Z, Z += 8;
29170
+ $--, W += z[H++] << Z, Z += 8;
29153
29171
  }
29154
29172
  switch (M.last = 1 & W, Z -= 1, 3 & (W >>>= 1)) {
29155
29173
  case 0:
@@ -29170,9 +29188,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29170
29188
  break;
29171
29189
  case 14:
29172
29190
  for (W >>>= 7 & Z, Z -= 7 & Z; Z < 32; ) {
29173
- if (J === 0)
29191
+ if ($ === 0)
29174
29192
  break e;
29175
- J--, W += z[H++] << Z, Z += 8;
29193
+ $--, W += z[H++] << Z, Z += 8;
29176
29194
  }
29177
29195
  if ((65535 & W) != (W >>> 16 ^ 65535)) {
29178
29196
  R.msg = "invalid stored block lengths", M.mode = 30;
@@ -29184,18 +29202,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29184
29202
  M.mode = 16;
29185
29203
  case 16:
29186
29204
  if (de = M.length) {
29187
- if (J < de && (de = J), le < de && (de = le), de === 0)
29205
+ if ($ < de && (de = $), le < de && (de = le), de === 0)
29188
29206
  break e;
29189
- s.arraySet(X, z, H, de, re), J -= de, H += de, le -= de, re += de, M.length -= de;
29207
+ s.arraySet(X, z, H, de, re), $ -= de, H += de, le -= de, re += de, M.length -= de;
29190
29208
  break;
29191
29209
  }
29192
29210
  M.mode = 12;
29193
29211
  break;
29194
29212
  case 17:
29195
29213
  for (; Z < 14; ) {
29196
- if (J === 0)
29214
+ if ($ === 0)
29197
29215
  break e;
29198
- J--, W += z[H++] << Z, Z += 8;
29216
+ $--, W += z[H++] << Z, Z += 8;
29199
29217
  }
29200
29218
  if (M.nlen = 257 + (31 & W), W >>>= 5, Z -= 5, M.ndist = 1 + (31 & W), W >>>= 5, Z -= 5, M.ncode = 4 + (15 & W), W >>>= 4, Z -= 4, 286 < M.nlen || 30 < M.ndist) {
29201
29219
  R.msg = "too many length or distance symbols", M.mode = 30;
@@ -29205,9 +29223,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29205
29223
  case 18:
29206
29224
  for (; M.have < M.ncode; ) {
29207
29225
  for (; Z < 3; ) {
29208
- if (J === 0)
29226
+ if ($ === 0)
29209
29227
  break e;
29210
- J--, W += z[H++] << Z, Z += 8;
29228
+ $--, W += z[H++] << Z, Z += 8;
29211
29229
  }
29212
29230
  M.lens[K[M.have++]] = 7 & W, W >>>= 3, Z -= 3;
29213
29231
  }
@@ -29221,18 +29239,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29221
29239
  case 19:
29222
29240
  for (; M.have < M.nlen + M.ndist; ) {
29223
29241
  for (; ye = (S = M.lencode[W & (1 << M.lenbits) - 1]) >>> 16 & 255, xe = 65535 & S, !((pe = S >>> 24) <= Z); ) {
29224
- if (J === 0)
29242
+ if ($ === 0)
29225
29243
  break e;
29226
- J--, W += z[H++] << Z, Z += 8;
29244
+ $--, W += z[H++] << Z, Z += 8;
29227
29245
  }
29228
29246
  if (xe < 16)
29229
29247
  W >>>= pe, Z -= pe, M.lens[M.have++] = xe;
29230
29248
  else {
29231
29249
  if (xe === 16) {
29232
29250
  for (N = pe + 2; Z < N; ) {
29233
- if (J === 0)
29251
+ if ($ === 0)
29234
29252
  break e;
29235
- J--, W += z[H++] << Z, Z += 8;
29253
+ $--, W += z[H++] << Z, Z += 8;
29236
29254
  }
29237
29255
  if (W >>>= pe, Z -= pe, M.have === 0) {
29238
29256
  R.msg = "invalid bit length repeat", M.mode = 30;
@@ -29241,16 +29259,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29241
29259
  w = M.lens[M.have - 1], de = 3 + (3 & W), W >>>= 2, Z -= 2;
29242
29260
  } else if (xe === 17) {
29243
29261
  for (N = pe + 3; Z < N; ) {
29244
- if (J === 0)
29262
+ if ($ === 0)
29245
29263
  break e;
29246
- J--, W += z[H++] << Z, Z += 8;
29264
+ $--, W += z[H++] << Z, Z += 8;
29247
29265
  }
29248
29266
  Z -= pe, w = 0, de = 3 + (7 & (W >>>= pe)), W >>>= 3, Z -= 3;
29249
29267
  } else {
29250
29268
  for (N = pe + 7; Z < N; ) {
29251
- if (J === 0)
29269
+ if ($ === 0)
29252
29270
  break e;
29253
- J--, W += z[H++] << Z, Z += 8;
29271
+ $--, W += z[H++] << Z, Z += 8;
29254
29272
  }
29255
29273
  Z -= pe, w = 0, de = 11 + (127 & (W >>>= pe)), W >>>= 7, Z -= 7;
29256
29274
  }
@@ -29281,20 +29299,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29281
29299
  case 20:
29282
29300
  M.mode = 21;
29283
29301
  case 21:
29284
- if (6 <= J && 258 <= le) {
29285
- R.next_out = re, R.avail_out = le, R.next_in = H, R.avail_in = J, M.hold = W, M.bits = Z, c(R, _e), re = R.next_out, X = R.output, le = R.avail_out, H = R.next_in, z = R.input, J = R.avail_in, W = M.hold, Z = M.bits, M.mode === 12 && (M.back = -1);
29302
+ if (6 <= $ && 258 <= le) {
29303
+ R.next_out = re, R.avail_out = le, R.next_in = H, R.avail_in = $, M.hold = W, M.bits = Z, c(R, _e), re = R.next_out, X = R.output, le = R.avail_out, H = R.next_in, z = R.input, $ = R.avail_in, W = M.hold, Z = M.bits, M.mode === 12 && (M.back = -1);
29286
29304
  break;
29287
29305
  }
29288
29306
  for (M.back = 0; ye = (S = M.lencode[W & (1 << M.lenbits) - 1]) >>> 16 & 255, xe = 65535 & S, !((pe = S >>> 24) <= Z); ) {
29289
- if (J === 0)
29307
+ if ($ === 0)
29290
29308
  break e;
29291
- J--, W += z[H++] << Z, Z += 8;
29309
+ $--, W += z[H++] << Z, Z += 8;
29292
29310
  }
29293
29311
  if (ye && (240 & ye) == 0) {
29294
29312
  for (ze = pe, Ke = ye, He = xe; ye = (S = M.lencode[He + ((W & (1 << ze + Ke) - 1) >> ze)]) >>> 16 & 255, xe = 65535 & S, !(ze + (pe = S >>> 24) <= Z); ) {
29295
- if (J === 0)
29313
+ if ($ === 0)
29296
29314
  break e;
29297
- J--, W += z[H++] << Z, Z += 8;
29315
+ $--, W += z[H++] << Z, Z += 8;
29298
29316
  }
29299
29317
  W >>>= ze, Z -= ze, M.back += ze;
29300
29318
  }
@@ -29314,24 +29332,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29314
29332
  case 22:
29315
29333
  if (M.extra) {
29316
29334
  for (N = M.extra; Z < N; ) {
29317
- if (J === 0)
29335
+ if ($ === 0)
29318
29336
  break e;
29319
- J--, W += z[H++] << Z, Z += 8;
29337
+ $--, W += z[H++] << Z, Z += 8;
29320
29338
  }
29321
29339
  M.length += W & (1 << M.extra) - 1, W >>>= M.extra, Z -= M.extra, M.back += M.extra;
29322
29340
  }
29323
29341
  M.was = M.length, M.mode = 23;
29324
29342
  case 23:
29325
29343
  for (; ye = (S = M.distcode[W & (1 << M.distbits) - 1]) >>> 16 & 255, xe = 65535 & S, !((pe = S >>> 24) <= Z); ) {
29326
- if (J === 0)
29344
+ if ($ === 0)
29327
29345
  break e;
29328
- J--, W += z[H++] << Z, Z += 8;
29346
+ $--, W += z[H++] << Z, Z += 8;
29329
29347
  }
29330
29348
  if ((240 & ye) == 0) {
29331
29349
  for (ze = pe, Ke = ye, He = xe; ye = (S = M.distcode[He + ((W & (1 << ze + Ke) - 1) >> ze)]) >>> 16 & 255, xe = 65535 & S, !(ze + (pe = S >>> 24) <= Z); ) {
29332
- if (J === 0)
29350
+ if ($ === 0)
29333
29351
  break e;
29334
- J--, W += z[H++] << Z, Z += 8;
29352
+ $--, W += z[H++] << Z, Z += 8;
29335
29353
  }
29336
29354
  W >>>= ze, Z -= ze, M.back += ze;
29337
29355
  }
@@ -29343,9 +29361,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29343
29361
  case 24:
29344
29362
  if (M.extra) {
29345
29363
  for (N = M.extra; Z < N; ) {
29346
- if (J === 0)
29364
+ if ($ === 0)
29347
29365
  break e;
29348
- J--, W += z[H++] << Z, Z += 8;
29366
+ $--, W += z[H++] << Z, Z += 8;
29349
29367
  }
29350
29368
  M.offset += W & (1 << M.extra) - 1, W >>>= M.extra, Z -= M.extra, M.back += M.extra;
29351
29369
  }
@@ -29377,9 +29395,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29377
29395
  case 27:
29378
29396
  if (M.wrap) {
29379
29397
  for (; Z < 32; ) {
29380
- if (J === 0)
29398
+ if ($ === 0)
29381
29399
  break e;
29382
- J--, W |= z[H++] << Z, Z += 8;
29400
+ $--, W |= z[H++] << Z, Z += 8;
29383
29401
  }
29384
29402
  if (_e -= le, R.total_out += _e, M.total += _e, _e && (R.adler = M.check = M.flags ? a(M.check, X, _e, re - _e) : o(M.check, X, _e, re - _e)), _e = le, (M.flags ? W : p(W)) !== M.check) {
29385
29403
  R.msg = "incorrect data check", M.mode = 30;
@@ -29391,9 +29409,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29391
29409
  case 28:
29392
29410
  if (M.wrap && M.flags) {
29393
29411
  for (; Z < 32; ) {
29394
- if (J === 0)
29412
+ if ($ === 0)
29395
29413
  break e;
29396
- J--, W += z[H++] << Z, Z += 8;
29414
+ $--, W += z[H++] << Z, Z += 8;
29397
29415
  }
29398
29416
  if (W !== (4294967295 & M.total)) {
29399
29417
  R.msg = "incorrect length check", M.mode = 30;
@@ -29414,7 +29432,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29414
29432
  default:
29415
29433
  return d;
29416
29434
  }
29417
- return R.next_out = re, R.avail_out = le, R.next_in = H, R.avail_in = J, M.hold = W, M.bits = Z, (M.wsize || _e !== R.avail_out && M.mode < 30 && (M.mode < 27 || O !== 4)) && B(R, R.output, R.next_out, _e - R.avail_out) ? (M.mode = 31, -4) : (ge -= R.avail_in, _e -= R.avail_out, R.total_in += ge, R.total_out += _e, M.total += _e, M.wrap && _e && (R.adler = M.check = M.flags ? a(M.check, X, _e, R.next_out - _e) : o(M.check, X, _e, R.next_out - _e)), R.data_type = M.bits + (M.last ? 64 : 0) + (M.mode === 12 ? 128 : 0) + (M.mode === 20 || M.mode === 15 ? 256 : 0), (ge == 0 && _e === 0 || O === 4) && q === f && (q = -5), q);
29435
+ return R.next_out = re, R.avail_out = le, R.next_in = H, R.avail_in = $, M.hold = W, M.bits = Z, (M.wsize || _e !== R.avail_out && M.mode < 30 && (M.mode < 27 || O !== 4)) && B(R, R.output, R.next_out, _e - R.avail_out) ? (M.mode = 31, -4) : (ge -= R.avail_in, _e -= R.avail_out, R.total_in += ge, R.total_out += _e, M.total += _e, M.wrap && _e && (R.adler = M.check = M.flags ? a(M.check, X, _e, R.next_out - _e) : o(M.check, X, _e, R.next_out - _e)), R.data_type = M.bits + (M.last ? 64 : 0) + (M.mode === 12 ? 128 : 0) + (M.mode === 20 || M.mode === 15 ? 256 : 0), (ge == 0 && _e === 0 || O === 4) && q === f && (q = -5), q);
29418
29436
  }, i.inflateEnd = function(R) {
29419
29437
  if (!R || !R.state)
29420
29438
  return d;
@@ -29430,7 +29448,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29430
29448
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, n, i) {
29431
29449
  var s = t("../utils/common"), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], a = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], c = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], l = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
29432
29450
  n.exports = function(h, u, f, d, g, _, m, p) {
29433
- var v, y, x, A, E, I, D, b, C, B = p.bits, R = 0, O = 0, M = 0, z = 0, X = 0, H = 0, re = 0, J = 0, le = 0, W = 0, Z = null, ge = 0, _e = new s.Buf16(16), de = new s.Buf16(16), oe = null, ee = 0;
29451
+ var v, y, x, A, E, I, D, b, C, B = p.bits, R = 0, O = 0, M = 0, z = 0, X = 0, H = 0, re = 0, $ = 0, le = 0, W = 0, Z = null, ge = 0, _e = new s.Buf16(16), de = new s.Buf16(16), oe = null, ee = 0;
29434
29452
  for (R = 0; R <= 15; R++)
29435
29453
  _e[R] = 0;
29436
29454
  for (O = 0; O < d; O++)
@@ -29441,10 +29459,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29441
29459
  return g[_++] = 20971520, g[_++] = 20971520, p.bits = 1, 0;
29442
29460
  for (M = 1; M < z && _e[M] === 0; M++)
29443
29461
  ;
29444
- for (X < M && (X = M), R = J = 1; R <= 15; R++)
29445
- if (J <<= 1, (J -= _e[R]) < 0)
29462
+ for (X < M && (X = M), R = $ = 1; R <= 15; R++)
29463
+ if ($ <<= 1, ($ -= _e[R]) < 0)
29446
29464
  return -1;
29447
- if (0 < J && (h === 0 || z !== 1))
29465
+ if (0 < $ && (h === 0 || z !== 1))
29448
29466
  return -1;
29449
29467
  for (de[1] = 0, R = 1; R < 15; R++)
29450
29468
  de[R + 1] = de[R] + _e[R];
@@ -29463,8 +29481,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29463
29481
  R = u[f + m[O]];
29464
29482
  }
29465
29483
  if (X < R && (W & A) !== x) {
29466
- for (re === 0 && (re = X), E += M, J = 1 << (H = R - re); H + re < z && !((J -= _e[H + re]) <= 0); )
29467
- H++, J <<= 1;
29484
+ for (re === 0 && (re = X), E += M, $ = 1 << (H = R - re); H + re < z && !(($ -= _e[H + re]) <= 0); )
29485
+ H++, $ <<= 1;
29468
29486
  if (le += 1 << H, h === 1 && 852 < le || h === 2 && 592 < le)
29469
29487
  return 1;
29470
29488
  g[x = W & A] = X << 24 | H << 16 | E - _ | 0;
@@ -29490,7 +29508,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29490
29508
  c(M);
29491
29509
  var z = new Array(h);
29492
29510
  c(z);
29493
- var X, H, re, J = new Array(d);
29511
+ var X, H, re, $ = new Array(d);
29494
29512
  function le(S, G, K, ie, V) {
29495
29513
  this.static_tree = S, this.extra_bits = G, this.extra_base = K, this.elems = ie, this.max_length = V, this.has_stree = S && S.length;
29496
29514
  }
@@ -29548,7 +29566,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29548
29566
  function Ke(S, G, K) {
29549
29567
  var ie, V, P, T, F = 0;
29550
29568
  if (S.last_lit !== 0)
29551
- for (; ie = S.pending_buf[S.d_buf + 2 * F] << 8 | S.pending_buf[S.d_buf + 2 * F + 1], V = S.pending_buf[S.l_buf + F], F++, ie === 0 ? de(S, V, G) : (de(S, (P = M[V]) + u + 1, G), (T = I[P]) !== 0 && _e(S, V -= z[P], T), de(S, P = Z(--ie), K), (T = D[P]) !== 0 && _e(S, ie -= J[P], T)), F < S.last_lit; )
29569
+ for (; ie = S.pending_buf[S.d_buf + 2 * F] << 8 | S.pending_buf[S.d_buf + 2 * F + 1], V = S.pending_buf[S.l_buf + F], F++, ie === 0 ? de(S, V, G) : (de(S, (P = M[V]) + u + 1, G), (T = I[P]) !== 0 && _e(S, V -= z[P], T), de(S, P = Z(--ie), K), (T = D[P]) !== 0 && _e(S, ie -= $[P], T)), F < S.last_lit; )
29552
29570
  ;
29553
29571
  de(S, y, G);
29554
29572
  }
@@ -29597,7 +29615,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29597
29615
  P = V, ce = (F = 0) === T ? (Q = 138, 3) : V === T ? (Q = 6, 3) : (Q = 7, 4);
29598
29616
  }
29599
29617
  }
29600
- c(J);
29618
+ c($);
29601
29619
  var k = !1;
29602
29620
  function N(S, G, K, ie) {
29603
29621
  _e(S, (l << 1) + (ie ? 1 : 0), 3), function(V, P, T, F) {
@@ -29611,10 +29629,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
29611
29629
  for (z[V] = ie, G = 0; G < 1 << I[V]; G++)
29612
29630
  M[ie++] = V;
29613
29631
  for (M[ie - 1] = V, V = P = 0; V < 16; V++)
29614
- for (J[V] = P, G = 0; G < 1 << D[V]; G++)
29632
+ for ($[V] = P, G = 0; G < 1 << D[V]; G++)
29615
29633
  O[P++] = V;
29616
29634
  for (P >>= 7; V < d; V++)
29617
- for (J[V] = P << 7, G = 0; G < 1 << D[V] - 7; G++)
29635
+ for ($[V] = P << 7, G = 0; G < 1 << D[V] - 7; G++)
29618
29636
  O[256 + P++] = V;
29619
29637
  for (K = 0; K <= m; K++)
29620
29638
  T[K] = 0;
@@ -31544,16 +31562,16 @@ var DE = ArrayBuffer, Nt = Uint8Array, Uc = Uint16Array, LE = Int16Array, Ll = I
31544
31562
  z = (M -= B.b) >> 3;
31545
31563
  var re = (r[z] | r[z + 1] << 8) >> (M & 7) & (1 << B.b) - 1;
31546
31564
  z = (M -= C.b) >> 3;
31547
- var J = (r[z] | r[z + 1] << 8) >> (M & 7) & (1 << C.b) - 1;
31565
+ var $ = (r[z] | r[z + 1] << 8) >> (M & 7) & (1 << C.b) - 1;
31548
31566
  for (++y; --y; ) {
31549
- var le = R.s[H], W = R.n[H], Z = C.s[J], ge = C.n[J], _e = B.s[re], de = B.n[re];
31567
+ var le = R.s[H], W = R.n[H], Z = C.s[$], ge = C.n[$], _e = B.s[re], de = B.n[re];
31550
31568
  z = (M -= _e) >> 3;
31551
31569
  var oe = 1 << _e, ee = oe + ((r[z] | r[z + 1] << 8 | r[z + 2] << 16 | r[z + 3] << 24) >>> (M & 7) & oe - 1);
31552
31570
  z = (M -= ou[Z]) >> 3;
31553
31571
  var pe = GE[Z] + ((r[z] | r[z + 1] << 8 | r[z + 2] << 16) >> (M & 7) & (1 << ou[Z]) - 1);
31554
31572
  z = (M -= su[le]) >> 3;
31555
31573
  var ye = HE[le] + ((r[z] | r[z + 1] << 8 | r[z + 2] << 16) >> (M & 7) & (1 << su[le]) - 1);
31556
- if (z = (M -= W) >> 3, H = R.t[H] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << W) - 1), z = (M -= ge) >> 3, J = C.t[J] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << ge) - 1), z = (M -= de) >> 3, re = B.t[re] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << de) - 1), ee > 3)
31574
+ if (z = (M -= W) >> 3, H = R.t[H] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << W) - 1), z = (M -= ge) >> 3, $ = C.t[$] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << ge) - 1), z = (M -= de) >> 3, re = B.t[re] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << de) - 1), ee > 3)
31557
31575
  e.o[2] = e.o[1], e.o[1] = e.o[0], e.o[0] = ee -= 3;
31558
31576
  else {
31559
31577
  var xe = ee - (ye != 0);
@@ -35494,8 +35512,8 @@ function KT(r, e) {
35494
35512
  const R = f.readBits(2), O = uu + (f.readBits(4) << R), M = (1 << R) - 1, z = O + (48 << R), X = new Uint8Array(I[0]);
35495
35513
  for (let ee = 0; ee < I[0]; ee++)
35496
35514
  f.readMoreInput(), X[ee] = f.readBits(2) << 1;
35497
- const [H, re] = Cp(I[0] << Pp, f), [J, le] = Cp(I[2] << Dp, f);
35498
- h[0] = new nr(VT, H), h[1] = new nr(HT, I[1]), h[2] = new nr(z, J);
35515
+ const [H, re] = Cp(I[0] << Pp, f), [$, le] = Cp(I[2] << Dp, f);
35516
+ h[0] = new nr(VT, H), h[1] = new nr(HT, I[1]), h[2] = new nr(z, $);
35499
35517
  for (let ee = 0; ee < 3; ++ee)
35500
35518
  h[ee].decode(f);
35501
35519
  let W = 0, Z = 0, ge = X[E[0]], _e = La[ge], de = La[ge + 1], oe = h[1].htrees[0];