@vcmap/ui 6.2.0 → 6.2.2

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.
Files changed (48) hide show
  1. package/build/postInstall.js +1 -1
  2. package/dist/assets/{cesium-4e58d2c7.js → cesium-b021f072.js} +1513 -1313
  3. package/dist/assets/cesium.js +1 -1
  4. package/dist/assets/{core-8997fca8.js → core-4cd2e30d.js} +2676 -2663
  5. package/dist/assets/core-workers/panoramaImageWorker.js +1 -1
  6. package/dist/assets/core.js +1 -1
  7. package/dist/assets/{ol-e7017bf9.js → ol-c927b883.js} +1 -1
  8. package/dist/assets/ol.js +1 -1
  9. package/dist/assets/ui-b13e28a1.css +1 -0
  10. package/dist/assets/{ui-f99d019b.js → ui-b13e28a1.js} +5542 -5402
  11. package/dist/assets/ui.js +1 -1
  12. package/dist/assets/vue.js +1 -1
  13. package/dist/assets/{vuetify-bfd8e6ac.js → vuetify-a1930526.js} +1 -1
  14. package/dist/assets/vuetify.js +1 -1
  15. package/index.d.ts +1 -1
  16. package/index.js +1 -0
  17. package/package.json +4 -3
  18. package/plugins/@vcmap-show-case/category-tester/src/CollectionComponentOptions.vue +41 -2
  19. package/plugins/@vcmap-show-case/category-tester/src/index.js +2 -0
  20. package/plugins/package.json +1 -1
  21. package/src/application/VcsSplashScreen.vue +9 -1
  22. package/src/components/lists/VcsTreeNode.vue +2 -1
  23. package/src/components/lists/VcsTreeNode.vue.d.ts +4 -0
  24. package/src/contentTree/LayerSwap.vue +9 -0
  25. package/src/contentTree/LayerSwap.vue.d.ts +14 -0
  26. package/src/featureInfo/balloonFeatureInfoView.d.ts +15 -2
  27. package/src/featureInfo/balloonFeatureInfoView.js +8 -103
  28. package/src/featureInfo/balloonHelper.d.ts +13 -0
  29. package/src/featureInfo/balloonHelper.js +77 -0
  30. package/src/featureInfo/featureInfo.d.ts +2 -1
  31. package/src/featureInfo/featureInfo.js +11 -3
  32. package/src/featureInfo/featureInfoInteraction.js +4 -1
  33. package/src/featureInfo/iframeWmsFeatureInfoView.js +12 -2
  34. package/src/i18n/de.d.ts +3 -0
  35. package/src/i18n/de.js +3 -0
  36. package/src/i18n/en.d.ts +3 -0
  37. package/src/i18n/en.js +3 -0
  38. package/src/legend/legendHelper.js +5 -0
  39. package/src/manager/collectionManager/CollectionComponentContent.vue +67 -3
  40. package/src/manager/collectionManager/CollectionComponentContent.vue.d.ts +3 -0
  41. package/src/manager/collectionManager/collectionComponentClass.d.ts +44 -1
  42. package/src/manager/collectionManager/collectionComponentClass.js +152 -2
  43. package/src/manager/panel/PanelComponent.vue +9 -1
  44. package/src/state.js +19 -6
  45. package/dist/assets/ui-f99d019b.css +0 -1
  46. /package/dist/assets/core-workers/{panoramaImageWorker.js-0010ea67.js → panoramaImageWorker.js-90c60e81.js} +0 -0
  47. /package/dist/assets/{vue-7499093d.js → vue-6a295c0b.js} +0 -0
  48. /package/dist/assets/{vuetify-bfd8e6ac.css → vuetify-a1930526.css} +0 -0
@@ -1416,8 +1416,8 @@ Matrix4.getRotation = function(e, t) {
1416
1416
  return t[0] = e[0] / n.x, t[1] = e[1] / n.x, t[2] = e[2] / n.x, t[3] = e[4] / n.y, t[4] = e[5] / n.y, t[5] = e[6] / n.y, t[6] = e[8] / n.z, t[7] = e[9] / n.z, t[8] = e[10] / n.z, t;
1417
1417
  };
1418
1418
  Matrix4.multiply = function(e, t, n) {
1419
- const i = e[0], r = e[1], o = e[2], s = e[3], c = e[4], l = e[5], d = e[6], f = e[7], h = e[8], p = e[9], m = e[10], _ = e[11], y = e[12], C = e[13], T = e[14], x = e[15], b = t[0], S = t[1], E = t[2], A = t[3], D = t[4], P = t[5], I = t[6], M = t[7], R = t[8], L = t[9], g = t[10], w = t[11], O = t[12], N = t[13], F = t[14], B = t[15], V = i * b + c * S + h * E + y * A, U = r * b + l * S + p * E + C * A, k = o * b + d * S + m * E + T * A, $ = s * b + f * S + _ * E + x * A, G = i * D + c * P + h * I + y * M, q = r * D + l * P + p * I + C * M, z = o * D + d * P + m * I + T * M, H = s * D + f * P + _ * I + x * M, Q = i * R + c * L + h * g + y * w, ne = r * R + l * L + p * g + C * w, K = o * R + d * L + m * g + T * w, Z = s * R + f * L + _ * g + x * w, ee = i * O + c * N + h * F + y * B, oe = r * O + l * N + p * F + C * B, X = o * O + d * N + m * F + T * B, he = s * O + f * N + _ * F + x * B;
1420
- return n[0] = V, n[1] = U, n[2] = k, n[3] = $, n[4] = G, n[5] = q, n[6] = z, n[7] = H, n[8] = Q, n[9] = ne, n[10] = K, n[11] = Z, n[12] = ee, n[13] = oe, n[14] = X, n[15] = he, n;
1419
+ const i = e[0], r = e[1], o = e[2], s = e[3], c = e[4], l = e[5], d = e[6], f = e[7], h = e[8], p = e[9], m = e[10], _ = e[11], y = e[12], C = e[13], T = e[14], x = e[15], b = t[0], S = t[1], E = t[2], A = t[3], D = t[4], P = t[5], I = t[6], M = t[7], R = t[8], L = t[9], g = t[10], w = t[11], O = t[12], N = t[13], F = t[14], B = t[15], V = i * b + c * S + h * E + y * A, U = r * b + l * S + p * E + C * A, k = o * b + d * S + m * E + T * A, $ = s * b + f * S + _ * E + x * A, G = i * D + c * P + h * I + y * M, q = r * D + l * P + p * I + C * M, z = o * D + d * P + m * I + T * M, H = s * D + f * P + _ * I + x * M, K = i * R + c * L + h * g + y * w, X = r * R + l * L + p * g + C * w, J = o * R + d * L + m * g + T * w, ee = s * R + f * L + _ * g + x * w, te = i * O + c * N + h * F + y * B, oe = r * O + l * N + p * F + C * B, Q = o * O + d * N + m * F + T * B, he = s * O + f * N + _ * F + x * B;
1420
+ return n[0] = V, n[1] = U, n[2] = k, n[3] = $, n[4] = G, n[5] = q, n[6] = z, n[7] = H, n[8] = K, n[9] = X, n[10] = J, n[11] = ee, n[12] = te, n[13] = oe, n[14] = Q, n[15] = he, n;
1421
1421
  };
1422
1422
  Matrix4.add = function(e, t, n) {
1423
1423
  return n[0] = e[0] + t[0], n[1] = e[1] + t[1], n[2] = e[2] + t[2], n[3] = e[3] + t[3], n[4] = e[4] + t[4], n[5] = e[5] + t[5], n[6] = e[6] + t[6], n[7] = e[7] + t[7], n[8] = e[8] + t[8], n[9] = e[9] + t[9], n[10] = e[10] + t[10], n[11] = e[11] + t[11], n[12] = e[12] + t[12], n[13] = e[13] + t[13], n[14] = e[14] + t[14], n[15] = e[15] + t[15], n;
@@ -1490,9 +1490,9 @@ Matrix4.inverse = function(e, t) {
1490
1490
  let x = p * T, b = m * C, S = h * T, E = m * y, A = h * C, D = p * y, P = f * T, I = m * _, M = f * C, R = p * _, L = f * y, g = h * _;
1491
1491
  const w = x * c + E * l + A * d - (b * c + S * l + D * d), O = b * s + P * l + R * d - (x * s + I * l + M * d), N = S * s + I * c + L * d - (E * s + P * c + g * d), F = D * s + M * c + g * l - (A * s + R * c + L * l), B = b * i + S * r + D * o - (x * i + E * r + A * o), V = x * n + I * r + M * o - (b * n + P * r + R * o), U = E * n + P * i + g * o - (S * n + I * i + L * o), k = A * n + R * i + L * r - (D * n + M * i + g * r);
1492
1492
  x = r * d, b = o * l, S = i * d, E = o * c, A = i * l, D = r * c, P = n * d, I = o * s, M = n * l, R = r * s, L = n * c, g = i * s;
1493
- const $ = x * y + E * C + A * T - (b * y + S * C + D * T), G = b * _ + P * C + R * T - (x * _ + I * C + M * T), q = S * _ + I * y + L * T - (E * _ + P * y + g * T), z = D * _ + M * y + g * C - (A * _ + R * y + L * C), H = S * p + D * m + b * h - (A * m + x * h + E * p), Q = M * m + x * f + I * p - (P * p + R * m + b * f), ne = P * h + g * m + E * f - (L * m + S * f + I * h), K = L * p + A * f + R * h - (M * h + g * p + D * f);
1494
- let Z = n * w + i * O + r * N + o * F;
1495
- if (Math.abs(Z) < CesiumMath.EPSILON21) {
1493
+ const $ = x * y + E * C + A * T - (b * y + S * C + D * T), G = b * _ + P * C + R * T - (x * _ + I * C + M * T), q = S * _ + I * y + L * T - (E * _ + P * y + g * T), z = D * _ + M * y + g * C - (A * _ + R * y + L * C), H = S * p + D * m + b * h - (A * m + x * h + E * p), K = M * m + x * f + I * p - (P * p + R * m + b * f), X = P * h + g * m + E * f - (L * m + S * f + I * h), J = L * p + A * f + R * h - (M * h + g * p + D * f);
1494
+ let ee = n * w + i * O + r * N + o * F;
1495
+ if (Math.abs(ee) < CesiumMath.EPSILON21) {
1496
1496
  if (Matrix3.equalsEpsilon(
1497
1497
  Matrix4.getMatrix3(e, scratchInverseRotation),
1498
1498
  scratchMatrix3Zero,
@@ -1506,7 +1506,7 @@ Matrix4.inverse = function(e, t) {
1506
1506
  "matrix is not invertible because its determinate is zero."
1507
1507
  );
1508
1508
  }
1509
- return Z = 1 / Z, t[0] = w * Z, t[1] = O * Z, t[2] = N * Z, t[3] = F * Z, t[4] = B * Z, t[5] = V * Z, t[6] = U * Z, t[7] = k * Z, t[8] = $ * Z, t[9] = G * Z, t[10] = q * Z, t[11] = z * Z, t[12] = H * Z, t[13] = Q * Z, t[14] = ne * Z, t[15] = K * Z, t;
1509
+ return ee = 1 / ee, t[0] = w * ee, t[1] = O * ee, t[2] = N * ee, t[3] = F * ee, t[4] = B * ee, t[5] = V * ee, t[6] = U * ee, t[7] = k * ee, t[8] = $ * ee, t[9] = G * ee, t[10] = q * ee, t[11] = z * ee, t[12] = H * ee, t[13] = K * ee, t[14] = X * ee, t[15] = J * ee, t;
1510
1510
  };
1511
1511
  Matrix4.inverseTransformation = function(e, t) {
1512
1512
  const n = e[0], i = e[1], r = e[2], o = e[4], s = e[5], c = e[6], l = e[8], d = e[9], f = e[10], h = e[12], p = e[13], m = e[14], _ = -n * h - i * p - r * m, y = -o * h - s * p - c * m, C = -l * h - d * p - f * m;
@@ -5829,30 +5829,30 @@ function requirePunycode() {
5829
5829
  return E(G + (S + 1) * U / (U + h));
5830
5830
  }
5831
5831
  function N(U) {
5832
- var k = [], $ = U.length, G, q = 0, z = _, H = m, Q, ne, K, Z, ee, oe, X, he, de;
5833
- for (Q = U.lastIndexOf(y), Q < 0 && (Q = 0), ne = 0; ne < Q; ++ne)
5834
- U.charCodeAt(ne) >= 128 && P("not-basic"), k.push(U.charCodeAt(ne));
5835
- for (K = Q > 0 ? Q + 1 : 0; K < $; ) {
5836
- for (Z = q, ee = 1, oe = l; K >= $ && P("invalid-input"), X = g(U.charCodeAt(K++)), (X >= l || X > E((c - q) / ee)) && P("overflow"), q += X * ee, he = oe <= H ? d : oe >= H + f ? f : oe - H, !(X < he); oe += l)
5837
- de = l - he, ee > E(c / de) && P("overflow"), ee *= de;
5838
- G = k.length + 1, H = O(q - Z, G, Z == 0), E(q / G) > c - z && P("overflow"), z += E(q / G), q %= G, k.splice(q++, 0, z);
5832
+ var k = [], $ = U.length, G, q = 0, z = _, H = m, K, X, J, ee, te, oe, Q, he, ue;
5833
+ for (K = U.lastIndexOf(y), K < 0 && (K = 0), X = 0; X < K; ++X)
5834
+ U.charCodeAt(X) >= 128 && P("not-basic"), k.push(U.charCodeAt(X));
5835
+ for (J = K > 0 ? K + 1 : 0; J < $; ) {
5836
+ for (ee = q, te = 1, oe = l; J >= $ && P("invalid-input"), Q = g(U.charCodeAt(J++)), (Q >= l || Q > E((c - q) / te)) && P("overflow"), q += Q * te, he = oe <= H ? d : oe >= H + f ? f : oe - H, !(Q < he); oe += l)
5837
+ ue = l - he, te > E(c / ue) && P("overflow"), te *= ue;
5838
+ G = k.length + 1, H = O(q - ee, G, ee == 0), E(q / G) > c - z && P("overflow"), z += E(q / G), q %= G, k.splice(q++, 0, z);
5839
5839
  }
5840
5840
  return L(k);
5841
5841
  }
5842
5842
  function F(U) {
5843
- var k, $, G, q, z, H, Q, ne, K, Z, ee, oe = [], X, he, de, ce;
5844
- for (U = R(U), X = U.length, k = _, $ = 0, z = m, H = 0; H < X; ++H)
5845
- ee = U[H], ee < 128 && oe.push(A(ee));
5846
- for (G = q = oe.length, q && oe.push(y); G < X; ) {
5847
- for (Q = c, H = 0; H < X; ++H)
5848
- ee = U[H], ee >= k && ee < Q && (Q = ee);
5849
- for (he = G + 1, Q - k > E((c - $) / he) && P("overflow"), $ += (Q - k) * he, k = Q, H = 0; H < X; ++H)
5850
- if (ee = U[H], ee < k && ++$ > c && P("overflow"), ee == k) {
5851
- for (ne = $, K = l; Z = K <= z ? d : K >= z + f ? f : K - z, !(ne < Z); K += l)
5852
- ce = ne - Z, de = l - Z, oe.push(
5853
- A(w(Z + ce % de, 0))
5854
- ), ne = E(ce / de);
5855
- oe.push(A(w(ne, 0))), z = O($, he, G == q), $ = 0, ++G;
5843
+ var k, $, G, q, z, H, K, X, J, ee, te, oe = [], Q, he, ue, se;
5844
+ for (U = R(U), Q = U.length, k = _, $ = 0, z = m, H = 0; H < Q; ++H)
5845
+ te = U[H], te < 128 && oe.push(A(te));
5846
+ for (G = q = oe.length, q && oe.push(y); G < Q; ) {
5847
+ for (K = c, H = 0; H < Q; ++H)
5848
+ te = U[H], te >= k && te < K && (K = te);
5849
+ for (he = G + 1, K - k > E((c - $) / he) && P("overflow"), $ += (K - k) * he, k = K, H = 0; H < Q; ++H)
5850
+ if (te = U[H], te < k && ++$ > c && P("overflow"), te == k) {
5851
+ for (X = $, J = l; ee = J <= z ? d : J >= z + f ? f : J - z, !(X < ee); J += l)
5852
+ se = X - ee, ue = l - ee, oe.push(
5853
+ A(w(ee + se % ue, 0))
5854
+ ), X = E(se / ue);
5855
+ oe.push(A(w(X, 0))), z = O($, he, G == q), $ = 0, ++G;
5856
5856
  }
5857
5857
  ++$, ++k;
5858
5858
  }
@@ -6617,20 +6617,20 @@ function requireSecondLevelDomains() {
6617
6617
  continue;
6618
6618
  }
6619
6619
  for (var q = $ + g.slice($).search(F), z = g.slice($, q), H = -1; ; ) {
6620
- var Q = V.exec(z);
6621
- if (!Q)
6620
+ var K = V.exec(z);
6621
+ if (!K)
6622
6622
  break;
6623
- var ne = Q.index + Q[0].length;
6624
- H = Math.max(H, ne);
6623
+ var X = K.index + K[0].length;
6624
+ H = Math.max(H, X);
6625
6625
  }
6626
6626
  if (H > -1 ? z = z.slice(0, H) + z.slice(H).replace(B, "") : z = z.replace(B, ""), !(z.length <= k[0].length) && !(O.ignore && O.ignore.test(z))) {
6627
6627
  q = $ + z.length;
6628
- var K = w(z, $, q, g);
6629
- if (K === void 0) {
6628
+ var J = w(z, $, q, g);
6629
+ if (J === void 0) {
6630
6630
  N.lastIndex = q;
6631
6631
  continue;
6632
6632
  }
6633
- K = String(K), g = g.slice(0, $) + K + g.slice(q), N.lastIndex = $ + K.length;
6633
+ J = String(J), g = g.slice(0, $) + J + g.slice(q), N.lastIndex = $ + J.length;
6634
6634
  }
6635
6635
  }
6636
6636
  return N.lastIndex = 0, g;
@@ -26102,8 +26102,8 @@ function computeRealRoots(e, t, n, i) {
26102
26102
  f * d >= l * h ? (k = r, $ = p, G = -2 * o * p + r * m) : (k = c, $ = _, G = -c * m + 2 * s * _);
26103
26103
  const z = -(G < 0 ? -1 : 1) * Math.abs(k) * Math.sqrt(-y);
26104
26104
  T = -G + z;
26105
- const H = T / 2, Q = H < 0 ? -Math.pow(-H, 1 / 3) : Math.pow(H, 1 / 3), ne = T === z ? -Q : -$ / Q;
26106
- return C = $ <= 0 ? Q + ne : -G / (Q * Q + ne * ne + $), f * d >= l * h ? [(C - o) / r] : [-c / (C + s)];
26105
+ const H = T / 2, K = H < 0 ? -Math.pow(-H, 1 / 3) : Math.pow(H, 1 / 3), X = T === z ? -K : -$ / K;
26106
+ return C = $ <= 0 ? K + X : -G / (K * K + X * X + $), f * d >= l * h ? [(C - o) / r] : [-c / (C + s)];
26107
26107
  }
26108
26108
  const x = p, b = -2 * o * p + r * m, S = _, E = -c * m + 2 * s * _, A = Math.sqrt(y), D = Math.sqrt(3) / 2;
26109
26109
  let P = Math.abs(Math.atan2(r * A, -b) / 3);
@@ -33681,26 +33681,26 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
33681
33681
  segmentEndNormalScratch
33682
33682
  );
33683
33683
  if (e) {
33684
- const X = Cartesian3.unpack(
33684
+ const Q = Cartesian3.unpack(
33685
33685
  n,
33686
33686
  n.length - 6,
33687
33687
  segmentStartBottomScratch
33688
33688
  );
33689
- breakMiter(z, X, G, q) && (z = Cartesian3.negate(
33689
+ breakMiter(z, Q, G, q) && (z = Cartesian3.negate(
33690
33690
  z,
33691
33691
  z
33692
33692
  ));
33693
33693
  }
33694
- let H = 0, Q = 0, ne = 0;
33694
+ let H = 0, K = 0, X = 0;
33695
33695
  for (c = 0; c < f; c++) {
33696
- const X = Cartesian3.clone(G, segmentStartBottomScratch), he = Cartesian3.clone(q, segmentStartTopScratch);
33697
- let de = Cartesian3.clone(
33696
+ const Q = Cartesian3.clone(G, segmentStartBottomScratch), he = Cartesian3.clone(q, segmentStartTopScratch);
33697
+ let ue = Cartesian3.clone(
33698
33698
  z,
33699
33699
  segmentStartNormalScratch
33700
33700
  );
33701
- $ && (de = Cartesian3.negate(
33702
- de,
33703
- de
33701
+ $ && (ue = Cartesian3.negate(
33702
+ ue,
33703
+ ue
33704
33704
  )), G = Cartesian3.unpack(
33705
33705
  n,
33706
33706
  l,
@@ -33709,17 +33709,17 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
33709
33709
  r,
33710
33710
  l,
33711
33711
  segmentEndNormalScratch
33712
- ), $ = breakMiter(z, X, G, q), R.latitude = o[B], R.longitude = o[B + 1], L.latitude = o[B + 2], L.longitude = o[B + 3];
33713
- let ce, _e, ge, re;
33712
+ ), $ = breakMiter(z, Q, G, q), R.latitude = o[B], R.longitude = o[B + 1], L.latitude = o[B + 2], L.longitude = o[B + 3];
33713
+ let se, _e, me, re;
33714
33714
  if (s) {
33715
- const Ee = nudgeCartographic(R, L);
33716
- ce = t.project(R, segmentStart2DScratch), _e = t.project(L, segmentEnd2DScratch);
33717
- const $e = direction(_e, ce, forwardOffset2DScratch);
33718
- $e.y = Math.abs($e.y), ge = segmentStartNormal2DScratch, re = segmentEndNormal2DScratch, Ee === 0 || Cartesian3.dot($e, Cartesian3.UNIT_Y) > MITER_BREAK_SMALL ? (ge = projectNormal(
33715
+ const Ae = nudgeCartographic(R, L);
33716
+ se = t.project(R, segmentStart2DScratch), _e = t.project(L, segmentEnd2DScratch);
33717
+ const $e = direction(_e, se, forwardOffset2DScratch);
33718
+ $e.y = Math.abs($e.y), me = segmentStartNormal2DScratch, re = segmentEndNormal2DScratch, Ae === 0 || Cartesian3.dot($e, Cartesian3.UNIT_Y) > MITER_BREAK_SMALL ? (me = projectNormal(
33719
33719
  t,
33720
33720
  R,
33721
- de,
33722
- ce,
33721
+ ue,
33722
+ se,
33723
33723
  segmentStartNormal2DScratch
33724
33724
  ), re = projectNormal(
33725
33725
  t,
@@ -33727,152 +33727,152 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
33727
33727
  z,
33728
33728
  _e,
33729
33729
  segmentEndNormal2DScratch
33730
- )) : Ee === 1 ? (re = projectNormal(
33730
+ )) : Ae === 1 ? (re = projectNormal(
33731
33731
  t,
33732
33732
  L,
33733
33733
  z,
33734
33734
  _e,
33735
33735
  segmentEndNormal2DScratch
33736
- ), ge.x = 0, ge.y = CesiumMath.sign(
33736
+ ), me.x = 0, me.y = CesiumMath.sign(
33737
33737
  R.longitude - Math.abs(L.longitude)
33738
- ), ge.z = 0) : (ge = projectNormal(
33738
+ ), me.z = 0) : (me = projectNormal(
33739
33739
  t,
33740
33740
  R,
33741
- de,
33742
- ce,
33741
+ ue,
33742
+ se,
33743
33743
  segmentStartNormal2DScratch
33744
33744
  ), re.x = 0, re.y = CesiumMath.sign(
33745
33745
  R.longitude - L.longitude
33746
33746
  ), re.z = 0);
33747
33747
  }
33748
- const Se = Cartesian3.distance(he, q), pe = EncodedCartesian3.fromCartesian(
33749
- X,
33748
+ const xe = Cartesian3.distance(he, q), pe = EncodedCartesian3.fromCartesian(
33749
+ Q,
33750
33750
  encodeScratch
33751
- ), Te = Cartesian3.subtract(
33751
+ ), Ce = Cartesian3.subtract(
33752
33752
  G,
33753
- X,
33753
+ Q,
33754
33754
  offsetScratch$a
33755
- ), xe = Cartesian3.normalize(Te, rightScratch);
33756
- let W = Cartesian3.subtract(he, X, startUpScratch);
33755
+ ), be = Cartesian3.normalize(Ce, rightScratch);
33756
+ let W = Cartesian3.subtract(he, Q, startUpScratch);
33757
33757
  W = Cartesian3.normalize(W, W);
33758
- let j = Cartesian3.cross(xe, W, rightScratch);
33758
+ let j = Cartesian3.cross(be, W, rightScratch);
33759
33759
  j = Cartesian3.normalize(j, j);
33760
- let se = Cartesian3.cross(
33760
+ let ce = Cartesian3.cross(
33761
33761
  W,
33762
- de,
33762
+ ue,
33763
33763
  startPlaneNormalScratch
33764
33764
  );
33765
- se = Cartesian3.normalize(se, se);
33766
- let Pe = Cartesian3.subtract(q, G, endUpScratch);
33767
- Pe = Cartesian3.normalize(Pe, Pe);
33765
+ ce = Cartesian3.normalize(ce, ce);
33766
+ let Ee = Cartesian3.subtract(q, G, endUpScratch);
33767
+ Ee = Cartesian3.normalize(Ee, Ee);
33768
33768
  let le = Cartesian3.cross(
33769
33769
  z,
33770
- Pe,
33770
+ Ee,
33771
33771
  endPlaneNormalScratch
33772
33772
  );
33773
33773
  le = Cartesian3.normalize(le, le);
33774
- const De = Se / N, Re = H / N;
33775
- let Ge = 0, Le, Ue, J, ae = 0, te = 0;
33774
+ const De = xe / N, Re = H / N;
33775
+ let Ge = 0, Le, Ue, Z, ae = 0, ne = 0;
33776
33776
  if (s) {
33777
- Ge = Cartesian3.distance(ce, _e), Le = EncodedCartesian3.fromCartesian(
33778
- ce,
33777
+ Ge = Cartesian3.distance(se, _e), Le = EncodedCartesian3.fromCartesian(
33778
+ se,
33779
33779
  encodeScratch2D
33780
33780
  ), Ue = Cartesian3.subtract(
33781
33781
  _e,
33782
- ce,
33782
+ se,
33783
33783
  forwardOffset2DScratch
33784
- ), J = Cartesian3.normalize(Ue, right2DScratch);
33785
- const Ee = J.x;
33786
- J.x = J.y, J.y = -Ee, ae = Ge / M, te = Q / M;
33784
+ ), Z = Cartesian3.normalize(Ue, right2DScratch);
33785
+ const Ae = Z.x;
33786
+ Z.x = Z.y, Z.y = -Ae, ae = Ge / M, ne = K / M;
33787
33787
  }
33788
33788
  for (F = 0; F < 8; F++) {
33789
- const Ee = k + F * 4, $e = V + F * 2, Fe = Ee + 3, Ke = F < 4 ? 1 : -1, ve = F === 2 || F === 3 || F === 6 || F === 7 ? 1 : -1;
33790
- Cartesian3.pack(pe.high, C, Ee), C[Fe] = Te.x, Cartesian3.pack(pe.low, T, Ee), T[Fe] = Te.y, Cartesian3.pack(
33791
- se,
33789
+ const Ae = k + F * 4, $e = V + F * 2, Fe = Ae + 3, Ke = F < 4 ? 1 : -1, ve = F === 2 || F === 3 || F === 6 || F === 7 ? 1 : -1;
33790
+ Cartesian3.pack(pe.high, C, Ae), C[Fe] = Ce.x, Cartesian3.pack(pe.low, T, Ae), T[Fe] = Ce.y, Cartesian3.pack(
33791
+ ce,
33792
33792
  x,
33793
- Ee
33794
- ), x[Fe] = Te.z, Cartesian3.pack(
33793
+ Ae
33794
+ ), x[Fe] = Ce.z, Cartesian3.pack(
33795
33795
  le,
33796
33796
  b,
33797
- Ee
33797
+ Ae
33798
33798
  ), b[Fe] = De * Ke, Cartesian3.pack(
33799
33799
  j,
33800
33800
  S,
33801
- Ee
33801
+ Ae
33802
33802
  );
33803
33803
  let Ne = Re * ve;
33804
- Ne === 0 && ve < 0 && (Ne = 9), S[Fe] = Ne, s && (E[Ee] = Le.high.x, E[Ee + 1] = Le.high.y, E[Ee + 2] = Le.low.x, E[Ee + 3] = Le.low.y, D[Ee] = -ge.y, D[Ee + 1] = ge.x, D[Ee + 2] = re.y, D[Ee + 3] = -re.x, A[Ee] = Ue.x, A[Ee + 1] = Ue.y, A[Ee + 2] = J.x, A[Ee + 3] = J.y, P[$e] = ae * Ke, Ne = te * ve, Ne === 0 && ve < 0 && (Ne = 9), P[$e + 1] = Ne);
33804
+ Ne === 0 && ve < 0 && (Ne = 9), S[Fe] = Ne, s && (E[Ae] = Le.high.x, E[Ae + 1] = Le.high.y, E[Ae + 2] = Le.low.x, E[Ae + 3] = Le.low.y, D[Ae] = -me.y, D[Ae + 1] = me.x, D[Ae + 2] = re.y, D[Ae + 3] = -re.x, A[Ae] = Ue.x, A[Ae + 1] = Ue.y, A[Ae + 2] = Z.x, A[Ae + 3] = Z.y, P[$e] = ae * Ke, Ne = ne * ve, Ne === 0 && ve < 0 && (Ne = 9), P[$e + 1] = Ne);
33805
33805
  }
33806
- const ie = adjustHeightStartBottomScratch, ue = adjustHeightEndBottomScratch, me = adjustHeightStartTopScratch, be = adjustHeightEndTopScratch, Ie = Rectangle.fromCartographicArray(
33806
+ const ie = adjustHeightStartBottomScratch, de = adjustHeightEndBottomScratch, ge = adjustHeightStartTopScratch, Se = adjustHeightEndTopScratch, Ie = Rectangle.fromCartographicArray(
33807
33807
  getHeightCartographics,
33808
33808
  getHeightRectangleScratch
33809
33809
  ), we = ApproximateTerrainHeights.getMinimumMaximumHeights(
33810
33810
  Ie,
33811
33811
  d
33812
33812
  ), He = we.minimumTerrainHeight, We = we.maximumTerrainHeight;
33813
- ne += Math.abs(He), ne += Math.abs(We), adjustHeights(
33814
- X,
33813
+ X += Math.abs(He), X += Math.abs(We), adjustHeights(
33814
+ Q,
33815
33815
  he,
33816
33816
  He,
33817
33817
  We,
33818
33818
  ie,
33819
- me
33819
+ ge
33820
33820
  ), adjustHeights(
33821
33821
  G,
33822
33822
  q,
33823
33823
  He,
33824
33824
  We,
33825
- ue,
33826
- be
33825
+ de,
33826
+ Se
33827
33827
  );
33828
- let Ae = Cartesian3.multiplyByScalar(
33828
+ let Pe = Cartesian3.multiplyByScalar(
33829
33829
  j,
33830
33830
  CesiumMath.EPSILON5,
33831
33831
  normalNudgeScratch
33832
33832
  );
33833
33833
  Cartesian3.add(
33834
33834
  ie,
33835
- Ae,
33835
+ Pe,
33836
33836
  ie
33837
- ), Cartesian3.add(ue, Ae, ue), Cartesian3.add(me, Ae, me), Cartesian3.add(be, Ae, be), nudgeXZ(ie, ue), nudgeXZ(me, be), Cartesian3.pack(ie, y, U), Cartesian3.pack(ue, y, U + 3), Cartesian3.pack(be, y, U + 6), Cartesian3.pack(me, y, U + 9), Ae = Cartesian3.multiplyByScalar(
33837
+ ), Cartesian3.add(de, Pe, de), Cartesian3.add(ge, Pe, ge), Cartesian3.add(Se, Pe, Se), nudgeXZ(ie, de), nudgeXZ(ge, Se), Cartesian3.pack(ie, y, U), Cartesian3.pack(de, y, U + 3), Cartesian3.pack(Se, y, U + 6), Cartesian3.pack(ge, y, U + 9), Pe = Cartesian3.multiplyByScalar(
33838
33838
  j,
33839
33839
  -2 * CesiumMath.EPSILON5,
33840
33840
  normalNudgeScratch
33841
33841
  ), Cartesian3.add(
33842
33842
  ie,
33843
- Ae,
33843
+ Pe,
33844
33844
  ie
33845
- ), Cartesian3.add(ue, Ae, ue), Cartesian3.add(me, Ae, me), Cartesian3.add(be, Ae, be), nudgeXZ(ie, ue), nudgeXZ(me, be), Cartesian3.pack(
33845
+ ), Cartesian3.add(de, Pe, de), Cartesian3.add(ge, Pe, ge), Cartesian3.add(Se, Pe, Se), nudgeXZ(ie, de), nudgeXZ(ge, Se), Cartesian3.pack(
33846
33846
  ie,
33847
33847
  y,
33848
33848
  U + 12
33849
33849
  ), Cartesian3.pack(
33850
- ue,
33850
+ de,
33851
33851
  y,
33852
33852
  U + 15
33853
- ), Cartesian3.pack(be, y, U + 18), Cartesian3.pack(me, y, U + 21), B += 2, l += 3, V += 16, U += 24, k += 32, H += Se, Q += Ge;
33853
+ ), Cartesian3.pack(Se, y, U + 18), Cartesian3.pack(ge, y, U + 21), B += 2, l += 3, V += 16, U += 24, k += 32, H += xe, K += Ge;
33854
33854
  }
33855
33855
  l = 0;
33856
- let K = 0;
33856
+ let J = 0;
33857
33857
  for (c = 0; c < f; c++) {
33858
33858
  for (F = 0; F < REFERENCE_INDICES_LENGTH; F++)
33859
- _[l + F] = REFERENCE_INDICES[F] + K;
33860
- K += 8, l += REFERENCE_INDICES_LENGTH;
33859
+ _[l + F] = REFERENCE_INDICES[F] + J;
33860
+ J += 8, l += REFERENCE_INDICES_LENGTH;
33861
33861
  }
33862
- const Z = scratchBoundingSpheres;
33862
+ const ee = scratchBoundingSpheres;
33863
33863
  BoundingSphere.fromVertices(
33864
33864
  n,
33865
33865
  Cartesian3.ZERO,
33866
33866
  3,
33867
- Z[0]
33867
+ ee[0]
33868
33868
  ), BoundingSphere.fromVertices(
33869
33869
  i,
33870
33870
  Cartesian3.ZERO,
33871
33871
  3,
33872
- Z[1]
33872
+ ee[1]
33873
33873
  );
33874
- const ee = BoundingSphere.fromBoundingSpheres(Z);
33875
- ee.radius += ne / (f * 2);
33874
+ const te = BoundingSphere.fromBoundingSpheres(ee);
33875
+ te.radius += X / (f * 2);
33876
33876
  const oe = {
33877
33877
  position: new GeometryAttribute({
33878
33878
  componentDatatype: ComponentDatatype$1.DOUBLE,
@@ -33904,7 +33904,7 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
33904
33904
  })), new Geometry({
33905
33905
  attributes: oe,
33906
33906
  indices: _,
33907
- boundingSphere: ee
33907
+ boundingSphere: te
33908
33908
  });
33909
33909
  }
33910
33910
  function getVec4GeometryAttribute(e) {
@@ -39243,28 +39243,28 @@ function createDOMPurify() {
39243
39243
  enumerable: !0,
39244
39244
  value: !1
39245
39245
  }
39246
- })), H = null, Q = null, ne = !0, K = !0, Z = !1, ee = !0, oe = !1, X = !0, he = !1, de = !1, ce = !1, _e = !1, ge = !1, re = !1, Se = !0, pe = !1;
39247
- const Te = "user-content-";
39248
- let xe = !0, W = !1, j = {}, se = null;
39249
- const Pe = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
39246
+ })), H = null, K = null, X = !0, J = !0, ee = !1, te = !0, oe = !1, Q = !0, he = !1, ue = !1, se = !1, _e = !1, me = !1, re = !1, xe = !0, pe = !1;
39247
+ const Ce = "user-content-";
39248
+ let be = !0, W = !1, j = {}, ce = null;
39249
+ const Ee = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
39250
39250
  let le = null;
39251
39251
  const De = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
39252
39252
  let Re = null;
39253
- const Ge = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Le = "http://www.w3.org/1998/Math/MathML", Ue = "http://www.w3.org/2000/svg", J = "http://www.w3.org/1999/xhtml";
39254
- let ae = J, te = !1, ie = null;
39255
- const ue = addToSet({}, [Le, Ue, J], stringToString);
39256
- let me = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), be = addToSet({}, ["annotation-xml"]);
39253
+ const Ge = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Le = "http://www.w3.org/1998/Math/MathML", Ue = "http://www.w3.org/2000/svg", Z = "http://www.w3.org/1999/xhtml";
39254
+ let ae = Z, ne = !1, ie = null;
39255
+ const de = addToSet({}, [Le, Ue, Z], stringToString);
39256
+ let ge = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), Se = addToSet({}, ["annotation-xml"]);
39257
39257
  const Ie = addToSet({}, ["title", "style", "font", "a", "script"]);
39258
39258
  let we = null;
39259
39259
  const He = ["application/xhtml+xml", "text/html"], We = "text/html";
39260
- let Ae = null, Ee = null;
39260
+ let Pe = null, Ae = null;
39261
39261
  const $e = n.createElement("form"), Fe = function(Y) {
39262
39262
  return Y instanceof RegExp || Y instanceof Function;
39263
39263
  }, Ke = function() {
39264
39264
  let Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
39265
- if (!(Ee && Ee === Y)) {
39265
+ if (!(Ae && Ae === Y)) {
39266
39266
  if ((!Y || typeof Y != "object") && (Y = {}), Y = clone(Y), we = // eslint-disable-next-line unicorn/prefer-includes
39267
- He.indexOf(Y.PARSER_MEDIA_TYPE) === -1 ? We : Y.PARSER_MEDIA_TYPE, Ae = we === "application/xhtml+xml" ? stringToString : stringToLowerCase, k = objectHasOwnProperty(Y, "ALLOWED_TAGS") ? addToSet({}, Y.ALLOWED_TAGS, Ae) : $, G = objectHasOwnProperty(Y, "ALLOWED_ATTR") ? addToSet({}, Y.ALLOWED_ATTR, Ae) : q, ie = objectHasOwnProperty(Y, "ALLOWED_NAMESPACES") ? addToSet({}, Y.ALLOWED_NAMESPACES, stringToString) : ue, Re = objectHasOwnProperty(Y, "ADD_URI_SAFE_ATTR") ? addToSet(clone(Ge), Y.ADD_URI_SAFE_ATTR, Ae) : Ge, le = objectHasOwnProperty(Y, "ADD_DATA_URI_TAGS") ? addToSet(clone(De), Y.ADD_DATA_URI_TAGS, Ae) : De, se = objectHasOwnProperty(Y, "FORBID_CONTENTS") ? addToSet({}, Y.FORBID_CONTENTS, Ae) : Pe, H = objectHasOwnProperty(Y, "FORBID_TAGS") ? addToSet({}, Y.FORBID_TAGS, Ae) : {}, Q = objectHasOwnProperty(Y, "FORBID_ATTR") ? addToSet({}, Y.FORBID_ATTR, Ae) : {}, j = objectHasOwnProperty(Y, "USE_PROFILES") ? Y.USE_PROFILES : !1, ne = Y.ALLOW_ARIA_ATTR !== !1, K = Y.ALLOW_DATA_ATTR !== !1, Z = Y.ALLOW_UNKNOWN_PROTOCOLS || !1, ee = Y.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = Y.SAFE_FOR_TEMPLATES || !1, X = Y.SAFE_FOR_XML !== !1, he = Y.WHOLE_DOCUMENT || !1, _e = Y.RETURN_DOM || !1, ge = Y.RETURN_DOM_FRAGMENT || !1, re = Y.RETURN_TRUSTED_TYPE || !1, ce = Y.FORCE_BODY || !1, Se = Y.SANITIZE_DOM !== !1, pe = Y.SANITIZE_NAMED_PROPS || !1, xe = Y.KEEP_CONTENT !== !1, W = Y.IN_PLACE || !1, U = Y.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, ae = Y.NAMESPACE || J, me = Y.MATHML_TEXT_INTEGRATION_POINTS || me, be = Y.HTML_INTEGRATION_POINTS || be, z = Y.CUSTOM_ELEMENT_HANDLING || {}, Y.CUSTOM_ELEMENT_HANDLING && Fe(Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (z.tagNameCheck = Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Y.CUSTOM_ELEMENT_HANDLING && Fe(Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (z.attributeNameCheck = Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Y.CUSTOM_ELEMENT_HANDLING && typeof Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), oe && (K = !1), ge && (_e = !0), j && (k = addToSet({}, text), G = [], j.html === !0 && (addToSet(k, html$1), addToSet(G, html)), j.svg === !0 && (addToSet(k, svg$1), addToSet(G, svg), addToSet(G, xml)), j.svgFilters === !0 && (addToSet(k, svgFilters), addToSet(G, svg), addToSet(G, xml)), j.mathMl === !0 && (addToSet(k, mathMl$1), addToSet(G, mathMl), addToSet(G, xml))), Y.ADD_TAGS && (k === $ && (k = clone(k)), addToSet(k, Y.ADD_TAGS, Ae)), Y.ADD_ATTR && (G === q && (G = clone(G)), addToSet(G, Y.ADD_ATTR, Ae)), Y.ADD_URI_SAFE_ATTR && addToSet(Re, Y.ADD_URI_SAFE_ATTR, Ae), Y.FORBID_CONTENTS && (se === Pe && (se = clone(se)), addToSet(se, Y.FORBID_CONTENTS, Ae)), xe && (k["#text"] = !0), he && addToSet(k, ["html", "head", "body"]), k.table && (addToSet(k, ["tbody"]), delete H.tbody), Y.TRUSTED_TYPES_POLICY) {
39267
+ He.indexOf(Y.PARSER_MEDIA_TYPE) === -1 ? We : Y.PARSER_MEDIA_TYPE, Pe = we === "application/xhtml+xml" ? stringToString : stringToLowerCase, k = objectHasOwnProperty(Y, "ALLOWED_TAGS") ? addToSet({}, Y.ALLOWED_TAGS, Pe) : $, G = objectHasOwnProperty(Y, "ALLOWED_ATTR") ? addToSet({}, Y.ALLOWED_ATTR, Pe) : q, ie = objectHasOwnProperty(Y, "ALLOWED_NAMESPACES") ? addToSet({}, Y.ALLOWED_NAMESPACES, stringToString) : de, Re = objectHasOwnProperty(Y, "ADD_URI_SAFE_ATTR") ? addToSet(clone(Ge), Y.ADD_URI_SAFE_ATTR, Pe) : Ge, le = objectHasOwnProperty(Y, "ADD_DATA_URI_TAGS") ? addToSet(clone(De), Y.ADD_DATA_URI_TAGS, Pe) : De, ce = objectHasOwnProperty(Y, "FORBID_CONTENTS") ? addToSet({}, Y.FORBID_CONTENTS, Pe) : Ee, H = objectHasOwnProperty(Y, "FORBID_TAGS") ? addToSet({}, Y.FORBID_TAGS, Pe) : {}, K = objectHasOwnProperty(Y, "FORBID_ATTR") ? addToSet({}, Y.FORBID_ATTR, Pe) : {}, j = objectHasOwnProperty(Y, "USE_PROFILES") ? Y.USE_PROFILES : !1, X = Y.ALLOW_ARIA_ATTR !== !1, J = Y.ALLOW_DATA_ATTR !== !1, ee = Y.ALLOW_UNKNOWN_PROTOCOLS || !1, te = Y.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = Y.SAFE_FOR_TEMPLATES || !1, Q = Y.SAFE_FOR_XML !== !1, he = Y.WHOLE_DOCUMENT || !1, _e = Y.RETURN_DOM || !1, me = Y.RETURN_DOM_FRAGMENT || !1, re = Y.RETURN_TRUSTED_TYPE || !1, se = Y.FORCE_BODY || !1, xe = Y.SANITIZE_DOM !== !1, pe = Y.SANITIZE_NAMED_PROPS || !1, be = Y.KEEP_CONTENT !== !1, W = Y.IN_PLACE || !1, U = Y.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, ae = Y.NAMESPACE || Z, ge = Y.MATHML_TEXT_INTEGRATION_POINTS || ge, Se = Y.HTML_INTEGRATION_POINTS || Se, z = Y.CUSTOM_ELEMENT_HANDLING || {}, Y.CUSTOM_ELEMENT_HANDLING && Fe(Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (z.tagNameCheck = Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Y.CUSTOM_ELEMENT_HANDLING && Fe(Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (z.attributeNameCheck = Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Y.CUSTOM_ELEMENT_HANDLING && typeof Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), oe && (J = !1), me && (_e = !0), j && (k = addToSet({}, text), G = [], j.html === !0 && (addToSet(k, html$1), addToSet(G, html)), j.svg === !0 && (addToSet(k, svg$1), addToSet(G, svg), addToSet(G, xml)), j.svgFilters === !0 && (addToSet(k, svgFilters), addToSet(G, svg), addToSet(G, xml)), j.mathMl === !0 && (addToSet(k, mathMl$1), addToSet(G, mathMl), addToSet(G, xml))), Y.ADD_TAGS && (k === $ && (k = clone(k)), addToSet(k, Y.ADD_TAGS, Pe)), Y.ADD_ATTR && (G === q && (G = clone(G)), addToSet(G, Y.ADD_ATTR, Pe)), Y.ADD_URI_SAFE_ATTR && addToSet(Re, Y.ADD_URI_SAFE_ATTR, Pe), Y.FORBID_CONTENTS && (ce === Ee && (ce = clone(ce)), addToSet(ce, Y.FORBID_CONTENTS, Pe)), be && (k["#text"] = !0), he && addToSet(k, ["html", "head", "body"]), k.table && (addToSet(k, ["tbody"]), delete H.tbody), Y.TRUSTED_TYPES_POLICY) {
39268
39268
  if (typeof Y.TRUSTED_TYPES_POLICY.createHTML != "function")
39269
39269
  throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
39270
39270
  if (typeof Y.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -39272,7 +39272,7 @@ function createDOMPurify() {
39272
39272
  S = Y.TRUSTED_TYPES_POLICY, E = S.createHTML("");
39273
39273
  } else
39274
39274
  S === void 0 && (S = _createTrustedTypesPolicy(m, r)), S !== null && typeof E == "string" && (E = S.createHTML(""));
39275
- freeze && freeze(Y), Ee = Y;
39275
+ freeze && freeze(Y), Ae = Y;
39276
39276
  }
39277
39277
  }, ve = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]), Ne = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), rt = function(Y) {
39278
39278
  let fe = b(Y);
@@ -39280,8 +39280,8 @@ function createDOMPurify() {
39280
39280
  namespaceURI: ae,
39281
39281
  tagName: "template"
39282
39282
  });
39283
- const Ce = stringToLowerCase(Y.tagName), Oe = stringToLowerCase(fe.tagName);
39284
- return ie[Y.namespaceURI] ? Y.namespaceURI === Ue ? fe.namespaceURI === J ? Ce === "svg" : fe.namespaceURI === Le ? Ce === "svg" && (Oe === "annotation-xml" || me[Oe]) : !!ve[Ce] : Y.namespaceURI === Le ? fe.namespaceURI === J ? Ce === "math" : fe.namespaceURI === Ue ? Ce === "math" && be[Oe] : !!Ne[Ce] : Y.namespaceURI === J ? fe.namespaceURI === Ue && !be[Oe] || fe.namespaceURI === Le && !me[Oe] ? !1 : !Ne[Ce] && (Ie[Ce] || !ve[Ce]) : !!(we === "application/xhtml+xml" && ie[Y.namespaceURI]) : !1;
39283
+ const Te = stringToLowerCase(Y.tagName), Oe = stringToLowerCase(fe.tagName);
39284
+ return ie[Y.namespaceURI] ? Y.namespaceURI === Ue ? fe.namespaceURI === Z ? Te === "svg" : fe.namespaceURI === Le ? Te === "svg" && (Oe === "annotation-xml" || ge[Oe]) : !!ve[Te] : Y.namespaceURI === Le ? fe.namespaceURI === Z ? Te === "math" : fe.namespaceURI === Ue ? Te === "math" && Se[Oe] : !!Ne[Te] : Y.namespaceURI === Z ? fe.namespaceURI === Ue && !Se[Oe] || fe.namespaceURI === Le && !ge[Oe] ? !1 : !Ne[Te] && (Ie[Te] || !ve[Te]) : !!(we === "application/xhtml+xml" && ie[Y.namespaceURI]) : !1;
39285
39285
  }, Be = function(Y) {
39286
39286
  arrayPush(t.removed, {
39287
39287
  element: Y
@@ -39291,7 +39291,7 @@ function createDOMPurify() {
39291
39291
  } catch {
39292
39292
  C(Y);
39293
39293
  }
39294
- }, Ze = function(Y, fe) {
39294
+ }, Je = function(Y, fe) {
39295
39295
  try {
39296
39296
  arrayPush(t.removed, {
39297
39297
  attribute: fe.getAttributeNode(Y),
@@ -39304,7 +39304,7 @@ function createDOMPurify() {
39304
39304
  });
39305
39305
  }
39306
39306
  if (fe.removeAttribute(Y), Y === "is")
39307
- if (_e || ge)
39307
+ if (_e || me)
39308
39308
  try {
39309
39309
  Be(fe);
39310
39310
  } catch {
@@ -39315,16 +39315,16 @@ function createDOMPurify() {
39315
39315
  } catch {
39316
39316
  }
39317
39317
  }, je = function(Y) {
39318
- let fe = null, Ce = null;
39319
- if (ce)
39318
+ let fe = null, Te = null;
39319
+ if (se)
39320
39320
  Y = "<remove></remove>" + Y;
39321
39321
  else {
39322
39322
  const ze = stringMatch(Y, /^[\r\n\t ]+/);
39323
- Ce = ze && ze[0];
39323
+ Te = ze && ze[0];
39324
39324
  }
39325
- we === "application/xhtml+xml" && ae === J && (Y = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + Y + "</body></html>");
39325
+ we === "application/xhtml+xml" && ae === Z && (Y = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + Y + "</body></html>");
39326
39326
  const Oe = S ? S.createHTML(Y) : Y;
39327
- if (ae === J)
39327
+ if (ae === Z)
39328
39328
  try {
39329
39329
  fe = new p().parseFromString(Oe, we);
39330
39330
  } catch {
@@ -39332,12 +39332,12 @@ function createDOMPurify() {
39332
39332
  if (!fe || !fe.documentElement) {
39333
39333
  fe = A.createDocument(ae, "template", null);
39334
39334
  try {
39335
- fe.documentElement.innerHTML = te ? E : Oe;
39335
+ fe.documentElement.innerHTML = ne ? E : Oe;
39336
39336
  } catch {
39337
39337
  }
39338
39338
  }
39339
39339
  const qe = fe.body || fe.documentElement;
39340
- return Y && Ce && qe.insertBefore(n.createTextNode(Ce), qe.childNodes[0] || null), ae === J ? I.call(fe, he ? "html" : "body")[0] : he ? fe.documentElement : qe;
39340
+ return Y && Te && qe.insertBefore(n.createTextNode(Te), qe.childNodes[0] || null), ae === Z ? I.call(fe, he ? "html" : "body")[0] : he ? fe.documentElement : qe;
39341
39341
  }, at = function(Y) {
39342
39342
  return D.call(
39343
39343
  Y.ownerDocument || Y,
@@ -39352,59 +39352,59 @@ function createDOMPurify() {
39352
39352
  return typeof c == "function" && Y instanceof c;
39353
39353
  };
39354
39354
  function Ye(ye, Y, fe) {
39355
- arrayForEach(ye, (Ce) => {
39356
- Ce.call(t, Y, fe, Ee);
39355
+ arrayForEach(ye, (Te) => {
39356
+ Te.call(t, Y, fe, Ae);
39357
39357
  });
39358
39358
  }
39359
39359
  const Ve = function(Y) {
39360
39360
  let fe = null;
39361
39361
  if (Ye(R.beforeSanitizeElements, Y, null), ke(Y))
39362
39362
  return Be(Y), !0;
39363
- const Ce = Ae(Y.nodeName);
39363
+ const Te = Pe(Y.nodeName);
39364
39364
  if (Ye(R.uponSanitizeElement, Y, {
39365
- tagName: Ce,
39365
+ tagName: Te,
39366
39366
  allowedTags: k
39367
- }), Y.hasChildNodes() && !Qe(Y.firstElementChild) && regExpTest(/<[/\w]/g, Y.innerHTML) && regExpTest(/<[/\w]/g, Y.textContent) || Y.nodeType === NODE_TYPE.progressingInstruction || X && Y.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, Y.data))
39367
+ }), Y.hasChildNodes() && !Qe(Y.firstElementChild) && regExpTest(/<[/\w]/g, Y.innerHTML) && regExpTest(/<[/\w]/g, Y.textContent) || Y.nodeType === NODE_TYPE.progressingInstruction || Q && Y.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, Y.data))
39368
39368
  return Be(Y), !0;
39369
- if (!k[Ce] || H[Ce]) {
39370
- if (!H[Ce] && tt(Ce) && (z.tagNameCheck instanceof RegExp && regExpTest(z.tagNameCheck, Ce) || z.tagNameCheck instanceof Function && z.tagNameCheck(Ce)))
39369
+ if (!k[Te] || H[Te]) {
39370
+ if (!H[Te] && tt(Te) && (z.tagNameCheck instanceof RegExp && regExpTest(z.tagNameCheck, Te) || z.tagNameCheck instanceof Function && z.tagNameCheck(Te)))
39371
39371
  return !1;
39372
- if (xe && !se[Ce]) {
39372
+ if (be && !ce[Te]) {
39373
39373
  const Oe = b(Y) || Y.parentNode, qe = x(Y) || Y.childNodes;
39374
39374
  if (qe && Oe) {
39375
39375
  const ze = qe.length;
39376
- for (let Je = ze - 1; Je >= 0; --Je) {
39377
- const it = y(qe[Je], !0);
39376
+ for (let Ze = ze - 1; Ze >= 0; --Ze) {
39377
+ const it = y(qe[Ze], !0);
39378
39378
  it.__removalCount = (Y.__removalCount || 0) + 1, Oe.insertBefore(it, T(Y));
39379
39379
  }
39380
39380
  }
39381
39381
  }
39382
39382
  return Be(Y), !0;
39383
39383
  }
39384
- return Y instanceof l && !rt(Y) || (Ce === "noscript" || Ce === "noembed" || Ce === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, Y.innerHTML) ? (Be(Y), !0) : (oe && Y.nodeType === NODE_TYPE.text && (fe = Y.textContent, arrayForEach([L, g, w], (Oe) => {
39384
+ return Y instanceof l && !rt(Y) || (Te === "noscript" || Te === "noembed" || Te === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, Y.innerHTML) ? (Be(Y), !0) : (oe && Y.nodeType === NODE_TYPE.text && (fe = Y.textContent, arrayForEach([L, g, w], (Oe) => {
39385
39385
  fe = stringReplace(fe, Oe, " ");
39386
39386
  }), Y.textContent !== fe && (arrayPush(t.removed, {
39387
39387
  element: Y.cloneNode()
39388
39388
  }), Y.textContent = fe)), Ye(R.afterSanitizeElements, Y, null), !1);
39389
- }, et = function(Y, fe, Ce) {
39390
- if (Se && (fe === "id" || fe === "name") && (Ce in n || Ce in $e))
39389
+ }, et = function(Y, fe, Te) {
39390
+ if (xe && (fe === "id" || fe === "name") && (Te in n || Te in $e))
39391
39391
  return !1;
39392
- if (!(K && !Q[fe] && regExpTest(O, fe))) {
39393
- if (!(ne && regExpTest(N, fe))) {
39394
- if (!G[fe] || Q[fe]) {
39392
+ if (!(J && !K[fe] && regExpTest(O, fe))) {
39393
+ if (!(X && regExpTest(N, fe))) {
39394
+ if (!G[fe] || K[fe]) {
39395
39395
  if (
39396
39396
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
39397
39397
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
39398
39398
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
39399
39399
  !(tt(Y) && (z.tagNameCheck instanceof RegExp && regExpTest(z.tagNameCheck, Y) || z.tagNameCheck instanceof Function && z.tagNameCheck(Y)) && (z.attributeNameCheck instanceof RegExp && regExpTest(z.attributeNameCheck, fe) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(fe)) || // Alternative, second condition checks if it's an `is`-attribute, AND
39400
39400
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
39401
- fe === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && regExpTest(z.tagNameCheck, Ce) || z.tagNameCheck instanceof Function && z.tagNameCheck(Ce)))
39401
+ fe === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && regExpTest(z.tagNameCheck, Te) || z.tagNameCheck instanceof Function && z.tagNameCheck(Te)))
39402
39402
  ) return !1;
39403
39403
  } else if (!Re[fe]) {
39404
- if (!regExpTest(U, stringReplace(Ce, B, ""))) {
39405
- if (!((fe === "src" || fe === "xlink:href" || fe === "href") && Y !== "script" && stringIndexOf(Ce, "data:") === 0 && le[Y])) {
39406
- if (!(Z && !regExpTest(F, stringReplace(Ce, B, "")))) {
39407
- if (Ce)
39404
+ if (!regExpTest(U, stringReplace(Te, B, ""))) {
39405
+ if (!((fe === "src" || fe === "xlink:href" || fe === "href") && Y !== "script" && stringIndexOf(Te, "data:") === 0 && le[Y])) {
39406
+ if (!(ee && !regExpTest(F, stringReplace(Te, B, "")))) {
39407
+ if (Te)
39408
39408
  return !1;
39409
39409
  }
39410
39410
  }
@@ -39422,7 +39422,7 @@ function createDOMPurify() {
39422
39422
  } = Y;
39423
39423
  if (!fe || ke(Y))
39424
39424
  return;
39425
- const Ce = {
39425
+ const Te = {
39426
39426
  attrName: "",
39427
39427
  attrValue: "",
39428
39428
  keepAttr: !0,
@@ -39433,26 +39433,26 @@ function createDOMPurify() {
39433
39433
  for (; Oe--; ) {
39434
39434
  const qe = fe[Oe], {
39435
39435
  name: ze,
39436
- namespaceURI: Je,
39436
+ namespaceURI: Ze,
39437
39437
  value: it
39438
- } = qe, ot = Ae(ze);
39438
+ } = qe, ot = Pe(ze);
39439
39439
  let Xe = ze === "value" ? it : stringTrim(it);
39440
- if (Ce.attrName = ot, Ce.attrValue = Xe, Ce.keepAttr = !0, Ce.forceKeepAttr = void 0, Ye(R.uponSanitizeAttribute, Y, Ce), Xe = Ce.attrValue, pe && (ot === "id" || ot === "name") && (Ze(ze, Y), Xe = Te + Xe), X && regExpTest(/((--!?|])>)|<\/(style|title)/i, Xe)) {
39441
- Ze(ze, Y);
39440
+ if (Te.attrName = ot, Te.attrValue = Xe, Te.keepAttr = !0, Te.forceKeepAttr = void 0, Ye(R.uponSanitizeAttribute, Y, Te), Xe = Te.attrValue, pe && (ot === "id" || ot === "name") && (Je(ze, Y), Xe = Ce + Xe), Q && regExpTest(/((--!?|])>)|<\/(style|title)/i, Xe)) {
39441
+ Je(ze, Y);
39442
39442
  continue;
39443
39443
  }
39444
- if (Ce.forceKeepAttr || (Ze(ze, Y), !Ce.keepAttr))
39444
+ if (Te.forceKeepAttr || (Je(ze, Y), !Te.keepAttr))
39445
39445
  continue;
39446
- if (!ee && regExpTest(/\/>/i, Xe)) {
39447
- Ze(ze, Y);
39446
+ if (!te && regExpTest(/\/>/i, Xe)) {
39447
+ Je(ze, Y);
39448
39448
  continue;
39449
39449
  }
39450
39450
  oe && arrayForEach([L, g, w], (ct) => {
39451
39451
  Xe = stringReplace(Xe, ct, " ");
39452
39452
  });
39453
- const st = Ae(Y.nodeName);
39453
+ const st = Pe(Y.nodeName);
39454
39454
  if (et(st, ot, Xe)) {
39455
- if (S && typeof m == "object" && typeof m.getAttributeType == "function" && !Je)
39455
+ if (S && typeof m == "object" && typeof m.getAttributeType == "function" && !Ze)
39456
39456
  switch (m.getAttributeType(st, ot)) {
39457
39457
  case "TrustedHTML": {
39458
39458
  Xe = S.createHTML(Xe);
@@ -39464,7 +39464,7 @@ function createDOMPurify() {
39464
39464
  }
39465
39465
  }
39466
39466
  try {
39467
- Je ? Y.setAttributeNS(Je, ze, Xe) : Y.setAttribute(ze, Xe), ke(Y) ? Be(Y) : arrayPop(t.removed);
39467
+ Ze ? Y.setAttributeNS(Ze, ze, Xe) : Y.setAttribute(ze, Xe), ke(Y) ? Be(Y) : arrayPop(t.removed);
39468
39468
  } catch {
39469
39469
  }
39470
39470
  }
@@ -39472,14 +39472,14 @@ function createDOMPurify() {
39472
39472
  Ye(R.afterSanitizeAttributes, Y, null);
39473
39473
  }, Me = function ye(Y) {
39474
39474
  let fe = null;
39475
- const Ce = at(Y);
39476
- for (Ye(R.beforeSanitizeShadowDOM, Y, null); fe = Ce.nextNode(); )
39475
+ const Te = at(Y);
39476
+ for (Ye(R.beforeSanitizeShadowDOM, Y, null); fe = Te.nextNode(); )
39477
39477
  Ye(R.uponSanitizeShadowNode, fe, null), Ve(fe), nt(fe), fe.content instanceof o && ye(fe.content);
39478
39478
  Ye(R.afterSanitizeShadowDOM, Y, null);
39479
39479
  };
39480
39480
  return t.sanitize = function(ye) {
39481
- let Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, fe = null, Ce = null, Oe = null, qe = null;
39482
- if (te = !ye, te && (ye = "<!-->"), typeof ye != "string" && !Qe(ye))
39481
+ let Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, fe = null, Te = null, Oe = null, qe = null;
39482
+ if (ne = !ye, ne && (ye = "<!-->"), typeof ye != "string" && !Qe(ye))
39483
39483
  if (typeof ye.toString == "function") {
39484
39484
  if (ye = ye.toString(), typeof ye != "string")
39485
39485
  throw typeErrorCreate("dirty is not a string, aborting");
@@ -39487,14 +39487,14 @@ function createDOMPurify() {
39487
39487
  throw typeErrorCreate("toString is not a function");
39488
39488
  if (!t.isSupported)
39489
39489
  return ye;
39490
- if (de || Ke(Y), t.removed = [], typeof ye == "string" && (W = !1), W) {
39490
+ if (ue || Ke(Y), t.removed = [], typeof ye == "string" && (W = !1), W) {
39491
39491
  if (ye.nodeName) {
39492
- const it = Ae(ye.nodeName);
39492
+ const it = Pe(ye.nodeName);
39493
39493
  if (!k[it] || H[it])
39494
39494
  throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
39495
39495
  }
39496
39496
  } else if (ye instanceof c)
39497
- fe = je("<!---->"), Ce = fe.ownerDocument.importNode(ye, !0), Ce.nodeType === NODE_TYPE.element && Ce.nodeName === "BODY" || Ce.nodeName === "HTML" ? fe = Ce : fe.appendChild(Ce);
39497
+ fe = je("<!---->"), Te = fe.ownerDocument.importNode(ye, !0), Te.nodeType === NODE_TYPE.element && Te.nodeName === "BODY" || Te.nodeName === "HTML" ? fe = Te : fe.appendChild(Te);
39498
39498
  else {
39499
39499
  if (!_e && !oe && !he && // eslint-disable-next-line unicorn/prefer-includes
39500
39500
  ye.indexOf("<") === -1)
@@ -39502,34 +39502,34 @@ function createDOMPurify() {
39502
39502
  if (fe = je(ye), !fe)
39503
39503
  return _e ? null : re ? E : "";
39504
39504
  }
39505
- fe && ce && Be(fe.firstChild);
39505
+ fe && se && Be(fe.firstChild);
39506
39506
  const ze = at(W ? ye : fe);
39507
39507
  for (; Oe = ze.nextNode(); )
39508
39508
  Ve(Oe), nt(Oe), Oe.content instanceof o && Me(Oe.content);
39509
39509
  if (W)
39510
39510
  return ye;
39511
39511
  if (_e) {
39512
- if (ge)
39512
+ if (me)
39513
39513
  for (qe = P.call(fe.ownerDocument); fe.firstChild; )
39514
39514
  qe.appendChild(fe.firstChild);
39515
39515
  else
39516
39516
  qe = fe;
39517
39517
  return (G.shadowroot || G.shadowrootmode) && (qe = M.call(i, qe, !0)), qe;
39518
39518
  }
39519
- let Je = he ? fe.outerHTML : fe.innerHTML;
39520
- return he && k["!doctype"] && fe.ownerDocument && fe.ownerDocument.doctype && fe.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, fe.ownerDocument.doctype.name) && (Je = "<!DOCTYPE " + fe.ownerDocument.doctype.name + `>
39521
- ` + Je), oe && arrayForEach([L, g, w], (it) => {
39522
- Je = stringReplace(Je, it, " ");
39523
- }), S && re ? S.createHTML(Je) : Je;
39519
+ let Ze = he ? fe.outerHTML : fe.innerHTML;
39520
+ return he && k["!doctype"] && fe.ownerDocument && fe.ownerDocument.doctype && fe.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, fe.ownerDocument.doctype.name) && (Ze = "<!DOCTYPE " + fe.ownerDocument.doctype.name + `>
39521
+ ` + Ze), oe && arrayForEach([L, g, w], (it) => {
39522
+ Ze = stringReplace(Ze, it, " ");
39523
+ }), S && re ? S.createHTML(Ze) : Ze;
39524
39524
  }, t.setConfig = function() {
39525
39525
  let ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
39526
- Ke(ye), de = !0;
39526
+ Ke(ye), ue = !0;
39527
39527
  }, t.clearConfig = function() {
39528
- Ee = null, de = !1;
39528
+ Ae = null, ue = !1;
39529
39529
  }, t.isValidAttribute = function(ye, Y, fe) {
39530
- Ee || Ke({});
39531
- const Ce = Ae(ye), Oe = Ae(Y);
39532
- return et(Ce, Oe, fe);
39530
+ Ae || Ke({});
39531
+ const Te = Pe(ye), Oe = Pe(Y);
39532
+ return et(Te, Oe, fe);
39533
39533
  }, t.addHook = function(ye, Y) {
39534
39534
  typeof Y == "function" && arrayPush(R[ye], Y);
39535
39535
  }, t.removeHook = function(ye, Y) {
@@ -70399,7 +70399,7 @@ function pickModel(e, t, n, i, r, o, s) {
70399
70399
  for (let $ = 0; $ < k; $ += 3) {
70400
70400
  const G = M[$], q = M[$ + 1], z = M[$ + 2];
70401
70401
  for (const H of T) {
70402
- const Q = getVertexPosition(
70402
+ const K = getVertexPosition(
70403
70403
  R,
70404
70404
  G,
70405
70405
  V,
@@ -70410,7 +70410,7 @@ function pickModel(e, t, n, i, r, o, s) {
70410
70410
  r,
70411
70411
  o,
70412
70412
  scratchV0$2
70413
- ), ne = getVertexPosition(
70413
+ ), X = getVertexPosition(
70414
70414
  R,
70415
70415
  q,
70416
70416
  V,
@@ -70421,7 +70421,7 @@ function pickModel(e, t, n, i, r, o, s) {
70421
70421
  r,
70422
70422
  o,
70423
70423
  scratchV1$2
70424
- ), K = getVertexPosition(
70424
+ ), J = getVertexPosition(
70425
70425
  R,
70426
70426
  z,
70427
70427
  V,
@@ -70432,14 +70432,14 @@ function pickModel(e, t, n, i, r, o, s) {
70432
70432
  r,
70433
70433
  o,
70434
70434
  scratchV2$1
70435
- ), Z = IntersectionTests.rayTriangleParametric(
70435
+ ), ee = IntersectionTests.rayTriangleParametric(
70436
70436
  t,
70437
- Q,
70438
- ne,
70439
70437
  K,
70438
+ X,
70439
+ J,
70440
70440
  defaultValue(e.backFaceCulling, !0)
70441
70441
  );
70442
- defined(Z) && Z < c && Z >= 0 && (c = Z);
70442
+ defined(ee) && ee < c && ee >= 0 && (c = ee);
70443
70443
  }
70444
70444
  }
70445
70445
  }
@@ -79207,13 +79207,13 @@ function createVertexArrays(e, t, n) {
79207
79207
  ];
79208
79208
  let G, q, z, H;
79209
79209
  _ === SceneMode$1.SCENE3D ? (q = e._positionBuffer, G = "vertexBuffer", z = emptyVertexBuffer, H = "value") : _ === SceneMode$1.SCENE2D || _ === SceneMode$1.COLUMBUS_VIEW ? (q = emptyVertexBuffer, G = "value", z = e._positionBuffer, H = "vertexBuffer") : (q = D, G = "vertexBuffer", z = e._positionBuffer, H = "vertexBuffer"), $[0][G] = q, $[1][G] = q, $[2][H] = z, $[3][H] = z, $[4][G] = q, $[5][G] = q, $[6][H] = z, $[7][H] = z, $[8][G] = q, $[9][G] = q, $[10][H] = z, $[11][H] = z;
79210
- const Q = new VertexArray({
79210
+ const K = new VertexArray({
79211
79211
  context: t,
79212
79212
  attributes: $,
79213
79213
  indexBuffer: w
79214
79214
  });
79215
79215
  e._vertexArrays.push({
79216
- va: Q,
79216
+ va: K,
79217
79217
  buckets: d[L]
79218
79218
  });
79219
79219
  }
@@ -89240,71 +89240,71 @@ function combine$1(e, t, n) {
89240
89240
  ), k += 3, p = 0; p < r.length; p++) {
89241
89241
  let H;
89242
89242
  d = r[p];
89243
- const Q = d.leftPositions, ne = d.rightPositions;
89244
- let K, Z, ee = cartesian6, oe = cartesian3$1, X = cartesian4;
89245
- if (g = Cartesian3.fromArray(c, k, g), defined(Q)) {
89246
- for (addNormals(A, g, w, void 0, P, t), P -= 3, K = L, Z = R, H = 0; H < Q.length / 3; H++)
89247
- ee = Cartesian3.fromArray(Q, H * 3, ee), B[V++] = K, B[V++] = Z - H - 1, B[V++] = Z - H, CorridorGeometryLibrary.addAttribute(
89243
+ const K = d.leftPositions, X = d.rightPositions;
89244
+ let J, ee, te = cartesian6, oe = cartesian3$1, Q = cartesian4;
89245
+ if (g = Cartesian3.fromArray(c, k, g), defined(K)) {
89246
+ for (addNormals(A, g, w, void 0, P, t), P -= 3, J = L, ee = R, H = 0; H < K.length / 3; H++)
89247
+ te = Cartesian3.fromArray(K, H * 3, te), B[V++] = J, B[V++] = ee - H - 1, B[V++] = ee - H, CorridorGeometryLibrary.addAttribute(
89248
89248
  x,
89249
- ee,
89249
+ te,
89250
89250
  void 0,
89251
89251
  P
89252
89252
  ), oe = Cartesian3.fromArray(
89253
89253
  x,
89254
- (Z - H - 1) * 3,
89254
+ (ee - H - 1) * 3,
89255
89255
  oe
89256
- ), X = Cartesian3.fromArray(x, K * 3, X), w = Cartesian3.normalize(
89257
- Cartesian3.subtract(oe, X, w),
89256
+ ), Q = Cartesian3.fromArray(x, J * 3, Q), w = Cartesian3.normalize(
89257
+ Cartesian3.subtract(oe, Q, w),
89258
89258
  w
89259
89259
  ), addNormals(A, g, w, void 0, P, t), P -= 3;
89260
- ee = Cartesian3.fromArray(
89260
+ te = Cartesian3.fromArray(
89261
89261
  x,
89262
- K * 3,
89263
- ee
89262
+ J * 3,
89263
+ te
89264
89264
  ), oe = Cartesian3.subtract(
89265
- Cartesian3.fromArray(x, Z * 3, oe),
89266
- ee,
89265
+ Cartesian3.fromArray(x, ee * 3, oe),
89266
+ te,
89267
89267
  oe
89268
- ), X = Cartesian3.subtract(
89269
- Cartesian3.fromArray(x, (Z - H) * 3, X),
89270
- ee,
89271
- X
89268
+ ), Q = Cartesian3.subtract(
89269
+ Cartesian3.fromArray(x, (ee - H) * 3, Q),
89270
+ te,
89271
+ Q
89272
89272
  ), w = Cartesian3.normalize(
89273
- Cartesian3.add(oe, X, w),
89273
+ Cartesian3.add(oe, Q, w),
89274
89274
  w
89275
89275
  ), addNormals(A, g, w, D, void 0, t), D += 3;
89276
89276
  } else {
89277
- for (addNormals(A, g, w, D, void 0, t), D += 3, K = R, Z = L, H = 0; H < ne.length / 3; H++)
89278
- ee = Cartesian3.fromArray(ne, H * 3, ee), B[V++] = K, B[V++] = Z + H, B[V++] = Z + H + 1, CorridorGeometryLibrary.addAttribute(
89277
+ for (addNormals(A, g, w, D, void 0, t), D += 3, J = R, ee = L, H = 0; H < X.length / 3; H++)
89278
+ te = Cartesian3.fromArray(X, H * 3, te), B[V++] = J, B[V++] = ee + H, B[V++] = ee + H + 1, CorridorGeometryLibrary.addAttribute(
89279
89279
  x,
89280
- ee,
89280
+ te,
89281
89281
  D
89282
89282
  ), oe = Cartesian3.fromArray(
89283
89283
  x,
89284
- K * 3,
89284
+ J * 3,
89285
89285
  oe
89286
- ), X = Cartesian3.fromArray(
89286
+ ), Q = Cartesian3.fromArray(
89287
89287
  x,
89288
- (Z + H) * 3,
89289
- X
89288
+ (ee + H) * 3,
89289
+ Q
89290
89290
  ), w = Cartesian3.normalize(
89291
- Cartesian3.subtract(oe, X, w),
89291
+ Cartesian3.subtract(oe, Q, w),
89292
89292
  w
89293
89293
  ), addNormals(A, g, w, D, void 0, t), D += 3;
89294
- ee = Cartesian3.fromArray(
89294
+ te = Cartesian3.fromArray(
89295
89295
  x,
89296
- K * 3,
89297
- ee
89296
+ J * 3,
89297
+ te
89298
89298
  ), oe = Cartesian3.subtract(
89299
- Cartesian3.fromArray(x, (Z + H) * 3, oe),
89300
- ee,
89299
+ Cartesian3.fromArray(x, (ee + H) * 3, oe),
89300
+ te,
89301
89301
  oe
89302
- ), X = Cartesian3.subtract(
89303
- Cartesian3.fromArray(x, Z * 3, X),
89304
- ee,
89305
- X
89302
+ ), Q = Cartesian3.subtract(
89303
+ Cartesian3.fromArray(x, ee * 3, Q),
89304
+ te,
89305
+ Q
89306
89306
  ), w = Cartesian3.normalize(
89307
- Cartesian3.negate(Cartesian3.add(X, oe, w), w),
89307
+ Cartesian3.negate(Cartesian3.add(Q, oe, w), w),
89308
89308
  w
89309
89309
  ), addNormals(A, g, w, void 0, P, t), P -= 3;
89310
89310
  }
@@ -89346,30 +89346,30 @@ function combine$1(e, t, n) {
89346
89346
  values: x
89347
89347
  }), t.st) {
89348
89348
  const H = new Float32Array(T / 3 * 2);
89349
- let Q, ne, K = 0;
89349
+ let K, X, J = 0;
89350
89350
  if (y) {
89351
89351
  f /= 3, h /= 3;
89352
- const Z = Math.PI / (C + 1);
89353
- ne = 1 / (f - C + 1), Q = 1 / (h - C + 1);
89354
- let ee;
89352
+ const ee = Math.PI / (C + 1);
89353
+ X = 1 / (f - C + 1), K = 1 / (h - C + 1);
89354
+ let te;
89355
89355
  const oe = C / 2;
89356
89356
  for (p = oe + 1; p < C + 1; p++)
89357
- ee = CesiumMath.PI_OVER_TWO + Z * p, H[K++] = Q * (1 + Math.cos(ee)), H[K++] = 0.5 * (1 + Math.sin(ee));
89357
+ te = CesiumMath.PI_OVER_TWO + ee * p, H[J++] = K * (1 + Math.cos(te)), H[J++] = 0.5 * (1 + Math.sin(te));
89358
89358
  for (p = 1; p < h - C + 1; p++)
89359
- H[K++] = p * Q, H[K++] = 0;
89359
+ H[J++] = p * K, H[J++] = 0;
89360
89360
  for (p = C; p > oe; p--)
89361
- ee = CesiumMath.PI_OVER_TWO - p * Z, H[K++] = 1 - Q * (1 + Math.cos(ee)), H[K++] = 0.5 * (1 + Math.sin(ee));
89361
+ te = CesiumMath.PI_OVER_TWO - p * ee, H[J++] = 1 - K * (1 + Math.cos(te)), H[J++] = 0.5 * (1 + Math.sin(te));
89362
89362
  for (p = oe; p > 0; p--)
89363
- ee = CesiumMath.PI_OVER_TWO - Z * p, H[K++] = 1 - ne * (1 + Math.cos(ee)), H[K++] = 0.5 * (1 + Math.sin(ee));
89363
+ te = CesiumMath.PI_OVER_TWO - ee * p, H[J++] = 1 - X * (1 + Math.cos(te)), H[J++] = 0.5 * (1 + Math.sin(te));
89364
89364
  for (p = f - C; p > 0; p--)
89365
- H[K++] = p * ne, H[K++] = 1;
89365
+ H[J++] = p * X, H[J++] = 1;
89366
89366
  for (p = 1; p < oe + 1; p++)
89367
- ee = CesiumMath.PI_OVER_TWO + Z * p, H[K++] = ne * (1 + Math.cos(ee)), H[K++] = 0.5 * (1 + Math.sin(ee));
89367
+ te = CesiumMath.PI_OVER_TWO + ee * p, H[J++] = X * (1 + Math.cos(te)), H[J++] = 0.5 * (1 + Math.sin(te));
89368
89368
  } else {
89369
- for (f /= 3, h /= 3, ne = 1 / (f - 1), Q = 1 / (h - 1), p = 0; p < h; p++)
89370
- H[K++] = p * Q, H[K++] = 0;
89369
+ for (f /= 3, h /= 3, X = 1 / (f - 1), K = 1 / (h - 1), p = 0; p < h; p++)
89370
+ H[J++] = p * K, H[J++] = 0;
89371
89371
  for (p = f; p > 0; p--)
89372
- H[K++] = (p - 1) * ne, H[K++] = 1;
89372
+ H[J++] = (p - 1) * X, H[J++] = 1;
89373
89373
  }
89374
89374
  l.st = new GeometryAttribute({
89375
89375
  componentDatatype: ComponentDatatype$1.FLOAT,
@@ -91632,7 +91632,7 @@ const ARRAY_TYPES = [
91632
91632
  Uint32Array,
91633
91633
  Float32Array,
91634
91634
  Float64Array
91635
- ], VERSION = 1, HEADER_SIZE = 8;
91635
+ ], VERSION = 1, HEADER_SIZE$1 = 8;
91636
91636
  class KDBush {
91637
91637
  /**
91638
91638
  * Creates an index from raw `ArrayBuffer` data.
@@ -91666,7 +91666,7 @@ class KDBush {
91666
91666
  const o = ARRAY_TYPES.indexOf(this.ArrayType), s = t * 2 * this.ArrayType.BYTES_PER_ELEMENT, c = t * this.IndexArrayType.BYTES_PER_ELEMENT, l = (8 - c % 8) % 8;
91667
91667
  if (o < 0)
91668
91668
  throw new Error(`Unexpected typed array class: ${i}.`);
91669
- r && r instanceof ArrayBuffer ? (this.data = r, this.ids = new this.IndexArrayType(this.data, HEADER_SIZE, t), this.coords = new this.ArrayType(this.data, HEADER_SIZE + c + l, t * 2), this._pos = t * 2, this._finished = !0) : (this.data = new ArrayBuffer(HEADER_SIZE + s + c + l), this.ids = new this.IndexArrayType(this.data, HEADER_SIZE, t), this.coords = new this.ArrayType(this.data, HEADER_SIZE + c + l, t * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (VERSION << 4) + o]), new Uint16Array(this.data, 2, 1)[0] = n, new Uint32Array(this.data, 4, 1)[0] = t);
91669
+ r && r instanceof ArrayBuffer ? (this.data = r, this.ids = new this.IndexArrayType(this.data, HEADER_SIZE$1, t), this.coords = new this.ArrayType(this.data, HEADER_SIZE$1 + c + l, t * 2), this._pos = t * 2, this._finished = !0) : (this.data = new ArrayBuffer(HEADER_SIZE$1 + s + c + l), this.ids = new this.IndexArrayType(this.data, HEADER_SIZE$1, t), this.coords = new this.ArrayType(this.data, HEADER_SIZE$1 + c + l, t * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (VERSION << 4) + o]), new Uint16Array(this.data, 2, 1)[0] = n, new Uint32Array(this.data, 4, 1)[0] = t);
91670
91670
  }
91671
91671
  /**
91672
91672
  * Add a point to the index.
@@ -99987,9 +99987,9 @@ EllipsoidGeometry.createGeometry = function(e) {
99987
99987
  for (G = f * C, q = (f + 1) * C, h = 1; h < C - 2; h++)
99988
99988
  g[p++] = q + h, g[p++] = q + h + 1, g[p++] = G + h + 1, g[p++] = q + h, g[p++] = G + h + 1, g[p++] = G + h;
99989
99989
  if (b) {
99990
- const ce = y * C;
99990
+ const se = y * C;
99991
99991
  for (f = 1; f < y - 2; f++)
99992
- for (G = ce + f * C, q = ce + (f + 1) * C, h = 1; h < C - 2; h++)
99992
+ for (G = se + f * C, q = se + (f + 1) * C, h = 1; h < C - 2; h++)
99993
99993
  g[p++] = q + h, g[p++] = G + h, g[p++] = G + h + 1, g[p++] = q + h, g[p++] = G + h + 1, g[p++] = q + h + 1;
99994
99994
  }
99995
99995
  let z, H;
@@ -100007,61 +100007,61 @@ EllipsoidGeometry.createGeometry = function(e) {
100007
100007
  for (f = 1; f < y - 2; f++)
100008
100008
  H = C * y + C * (f + 1) - 1, z = C * (f + 1) - 1, g[p++] = z + C, g[p++] = H, g[p++] = z, g[p++] = z + C, g[p++] = H + C, g[p++] = H;
100009
100009
  }
100010
- const Q = new GeometryAttributes();
100011
- c.position && (Q.position = new GeometryAttribute({
100010
+ const K = new GeometryAttributes();
100011
+ c.position && (K.position = new GeometryAttribute({
100012
100012
  componentDatatype: ComponentDatatype$1.DOUBLE,
100013
100013
  componentsPerAttribute: 3,
100014
100014
  values: P
100015
100015
  }));
100016
- let ne = 0, K = 0, Z = 0, ee = 0;
100016
+ let X = 0, J = 0, ee = 0, te = 0;
100017
100017
  const oe = D / 2;
100018
- let X;
100019
- const he = Ellipsoid.fromCartesian3(t), de = Ellipsoid.fromCartesian3(n);
100018
+ let Q;
100019
+ const he = Ellipsoid.fromCartesian3(t), ue = Ellipsoid.fromCartesian3(n);
100020
100020
  if (c.st || c.normal || c.tangent || c.bitangent) {
100021
100021
  for (f = 0; f < D; f++) {
100022
- X = I[f] ? de : he;
100023
- const ce = Cartesian3.fromArray(P, f * 3, scratchPosition$7), _e = X.geodeticSurfaceNormal(ce, scratchNormal$4);
100022
+ Q = I[f] ? ue : he;
100023
+ const se = Cartesian3.fromArray(P, f * 3, scratchPosition$7), _e = Q.geodeticSurfaceNormal(se, scratchNormal$4);
100024
100024
  if (M[f] && Cartesian3.negate(_e, _e), c.st) {
100025
- const ge = Cartesian2.negate(_e, scratchNormalST);
100026
- F[ne++] = Math.atan2(ge.y, ge.x) / CesiumMath.TWO_PI + 0.5, F[ne++] = Math.asin(_e.z) / Math.PI + 0.5;
100027
- }
100028
- if (c.normal && (w[K++] = _e.x, w[K++] = _e.y, w[K++] = _e.z), c.tangent || c.bitangent) {
100029
- const ge = scratchTangent$2;
100030
- let re = 0, Se;
100031
- if (I[f] && (re = oe), !S && f >= re && f < re + C * 2 ? Se = Cartesian3.UNIT_X : Se = Cartesian3.UNIT_Z, Cartesian3.cross(Se, _e, ge), Cartesian3.normalize(ge, ge), c.tangent && (O[Z++] = ge.x, O[Z++] = ge.y, O[Z++] = ge.z), c.bitangent) {
100032
- const pe = Cartesian3.cross(_e, ge, scratchBitangent$2);
100033
- Cartesian3.normalize(pe, pe), N[ee++] = pe.x, N[ee++] = pe.y, N[ee++] = pe.z;
100025
+ const me = Cartesian2.negate(_e, scratchNormalST);
100026
+ F[X++] = Math.atan2(me.y, me.x) / CesiumMath.TWO_PI + 0.5, F[X++] = Math.asin(_e.z) / Math.PI + 0.5;
100027
+ }
100028
+ if (c.normal && (w[J++] = _e.x, w[J++] = _e.y, w[J++] = _e.z), c.tangent || c.bitangent) {
100029
+ const me = scratchTangent$2;
100030
+ let re = 0, xe;
100031
+ if (I[f] && (re = oe), !S && f >= re && f < re + C * 2 ? xe = Cartesian3.UNIT_X : xe = Cartesian3.UNIT_Z, Cartesian3.cross(xe, _e, me), Cartesian3.normalize(me, me), c.tangent && (O[ee++] = me.x, O[ee++] = me.y, O[ee++] = me.z), c.bitangent) {
100032
+ const pe = Cartesian3.cross(_e, me, scratchBitangent$2);
100033
+ Cartesian3.normalize(pe, pe), N[te++] = pe.x, N[te++] = pe.y, N[te++] = pe.z;
100034
100034
  }
100035
100035
  }
100036
100036
  }
100037
- c.st && (Q.st = new GeometryAttribute({
100037
+ c.st && (K.st = new GeometryAttribute({
100038
100038
  componentDatatype: ComponentDatatype$1.FLOAT,
100039
100039
  componentsPerAttribute: 2,
100040
100040
  values: F
100041
- })), c.normal && (Q.normal = new GeometryAttribute({
100041
+ })), c.normal && (K.normal = new GeometryAttribute({
100042
100042
  componentDatatype: ComponentDatatype$1.FLOAT,
100043
100043
  componentsPerAttribute: 3,
100044
100044
  values: w
100045
- })), c.tangent && (Q.tangent = new GeometryAttribute({
100045
+ })), c.tangent && (K.tangent = new GeometryAttribute({
100046
100046
  componentDatatype: ComponentDatatype$1.FLOAT,
100047
100047
  componentsPerAttribute: 3,
100048
100048
  values: O
100049
- })), c.bitangent && (Q.bitangent = new GeometryAttribute({
100049
+ })), c.bitangent && (K.bitangent = new GeometryAttribute({
100050
100050
  componentDatatype: ComponentDatatype$1.FLOAT,
100051
100051
  componentsPerAttribute: 3,
100052
100052
  values: N
100053
100053
  }));
100054
100054
  }
100055
100055
  if (defined(e._offsetAttribute)) {
100056
- const ce = P.length, _e = e._offsetAttribute === GeometryOffsetAttribute$1.NONE ? 0 : 1, ge = new Uint8Array(ce / 3).fill(_e);
100057
- Q.applyOffset = new GeometryAttribute({
100056
+ const se = P.length, _e = e._offsetAttribute === GeometryOffsetAttribute$1.NONE ? 0 : 1, me = new Uint8Array(se / 3).fill(_e);
100057
+ K.applyOffset = new GeometryAttribute({
100058
100058
  componentDatatype: ComponentDatatype$1.UNSIGNED_BYTE,
100059
100059
  componentsPerAttribute: 1,
100060
- values: ge
100060
+ values: me
100061
100061
  });
100062
100062
  }
100063
100063
  return new Geometry({
100064
- attributes: Q,
100064
+ attributes: K,
100065
100065
  indices: g,
100066
100066
  primitiveType: PrimitiveType$1.TRIANGLES,
100067
100067
  boundingSphere: BoundingSphere.fromEllipsoid(he),
@@ -102068,11 +102068,11 @@ function constructExtrudedRectangle(e, t) {
102068
102068
  const P = defined(i);
102069
102069
  if (P) {
102070
102070
  const re = m / 3 * 2;
102071
- let Se = new Uint8Array(re);
102072
- i === GeometryOffsetAttribute$1.TOP ? Se = Se.fill(1, 0, re / 2) : (D = i === GeometryOffsetAttribute$1.NONE ? 0 : 1, Se = Se.fill(D)), h.attributes.applyOffset = new GeometryAttribute({
102071
+ let xe = new Uint8Array(re);
102072
+ i === GeometryOffsetAttribute$1.TOP ? xe = xe.fill(1, 0, re / 2) : (D = i === GeometryOffsetAttribute$1.NONE ? 0 : 1, xe = xe.fill(D)), h.attributes.applyOffset = new GeometryAttribute({
102073
102073
  componentDatatype: ComponentDatatype$1.UNSIGNED_BYTE,
102074
102074
  componentsPerAttribute: 1,
102075
- values: Se
102075
+ values: xe
102076
102076
  });
102077
102077
  }
102078
102078
  if (r.tangent) {
@@ -102102,93 +102102,93 @@ function constructExtrudedRectangle(e, t) {
102102
102102
  let G = P ? new Uint8Array(U) : void 0, q = r.st ? new Float32Array(U * 2) : void 0;
102103
102103
  const z = i === GeometryOffsetAttribute$1.TOP;
102104
102104
  P && !z && (D = i === GeometryOffsetAttribute$1.ALL ? 1 : 0, G = G.fill(D));
102105
- let H = 0, Q = 0, ne = 0, K = 0;
102106
- const Z = d * O;
102107
- let ee;
102108
- for (f = 0; f < Z; f += d)
102109
- ee = f * 3, k = addWallPositions(
102105
+ let H = 0, K = 0, X = 0, J = 0;
102106
+ const ee = d * O;
102107
+ let te;
102108
+ for (f = 0; f < ee; f += d)
102109
+ te = f * 3, k = addWallPositions(
102110
102110
  k,
102111
102111
  H,
102112
- ee,
102112
+ te,
102113
102113
  p,
102114
102114
  C
102115
102115
  ), H += 6, r.st && (q = addWallTextureCoordinates(
102116
102116
  q,
102117
- Q,
102117
+ K,
102118
102118
  f * 2,
102119
102119
  E
102120
- ), Q += 4), n && (ne += 3, $[ne++] = A[ee], $[ne++] = A[ee + 1], $[ne++] = A[ee + 2]), z && (G[K++] = 1, K += 1);
102120
+ ), K += 4), n && (X += 3, $[X++] = A[te], $[X++] = A[te + 1], $[X++] = A[te + 2]), z && (G[J++] = 1, J += 1);
102121
102121
  if (w) {
102122
- const re = g ? Z + 1 : Z;
102123
- for (ee = re * 3, f = 0; f < 2; f++)
102122
+ const re = g ? ee + 1 : ee;
102123
+ for (te = re * 3, f = 0; f < 2; f++)
102124
102124
  k = addWallPositions(
102125
102125
  k,
102126
102126
  H,
102127
- ee,
102127
+ te,
102128
102128
  p,
102129
102129
  C
102130
102130
  ), H += 6, r.st && (q = addWallTextureCoordinates(
102131
102131
  q,
102132
- Q,
102132
+ K,
102133
102133
  re * 2,
102134
102134
  E
102135
- ), Q += 4), n && (ne += 3, $[ne++] = A[ee], $[ne++] = A[ee + 1], $[ne++] = A[ee + 2]), z && (G[K++] = 1, K += 1);
102135
+ ), K += 4), n && (X += 3, $[X++] = A[te], $[X++] = A[te + 1], $[X++] = A[te + 2]), z && (G[J++] = 1, J += 1);
102136
102136
  } else
102137
- for (f = Z - d; f < Z; f++)
102138
- ee = f * 3, k = addWallPositions(
102137
+ for (f = ee - d; f < ee; f++)
102138
+ te = f * 3, k = addWallPositions(
102139
102139
  k,
102140
102140
  H,
102141
- ee,
102141
+ te,
102142
102142
  p,
102143
102143
  C
102144
102144
  ), H += 6, r.st && (q = addWallTextureCoordinates(
102145
102145
  q,
102146
- Q,
102146
+ K,
102147
102147
  f * 2,
102148
102148
  E
102149
- ), Q += 4), n && (ne += 3, $[ne++] = A[ee], $[ne++] = A[ee + 1], $[ne++] = A[ee + 2]), z && (G[K++] = 1, K += 1);
102150
- for (f = Z - 1; f > 0; f -= d)
102151
- ee = f * 3, k = addWallPositions(
102149
+ ), K += 4), n && (X += 3, $[X++] = A[te], $[X++] = A[te + 1], $[X++] = A[te + 2]), z && (G[J++] = 1, J += 1);
102150
+ for (f = ee - 1; f > 0; f -= d)
102151
+ te = f * 3, k = addWallPositions(
102152
102152
  k,
102153
102153
  H,
102154
- ee,
102154
+ te,
102155
102155
  p,
102156
102156
  C
102157
102157
  ), H += 6, r.st && (q = addWallTextureCoordinates(
102158
102158
  q,
102159
- Q,
102159
+ K,
102160
102160
  f * 2,
102161
102161
  E
102162
- ), Q += 4), n && (ne += 3, $[ne++] = A[ee], $[ne++] = A[ee + 1], $[ne++] = A[ee + 2]), z && (G[K++] = 1, K += 1);
102162
+ ), K += 4), n && (X += 3, $[X++] = A[te], $[X++] = A[te + 1], $[X++] = A[te + 2]), z && (G[J++] = 1, J += 1);
102163
102163
  if (g) {
102164
- const re = Z;
102165
- for (ee = re * 3, f = 0; f < 2; f++)
102164
+ const re = ee;
102165
+ for (te = re * 3, f = 0; f < 2; f++)
102166
102166
  k = addWallPositions(
102167
102167
  k,
102168
102168
  H,
102169
- ee,
102169
+ te,
102170
102170
  p,
102171
102171
  C
102172
102172
  ), H += 6, r.st && (q = addWallTextureCoordinates(
102173
102173
  q,
102174
- Q,
102174
+ K,
102175
102175
  re * 2,
102176
102176
  E
102177
- ), Q += 4), n && (ne += 3, $[ne++] = A[ee], $[ne++] = A[ee + 1], $[ne++] = A[ee + 2]), z && (G[K++] = 1, K += 1);
102177
+ ), K += 4), n && (X += 3, $[X++] = A[te], $[X++] = A[te + 1], $[X++] = A[te + 2]), z && (G[J++] = 1, J += 1);
102178
102178
  } else
102179
102179
  for (f = d - 1; f >= 0; f--)
102180
- ee = f * 3, k = addWallPositions(
102180
+ te = f * 3, k = addWallPositions(
102181
102181
  k,
102182
102182
  H,
102183
- ee,
102183
+ te,
102184
102184
  p,
102185
102185
  C
102186
102186
  ), H += 6, r.st && (q = addWallTextureCoordinates(
102187
102187
  q,
102188
- Q,
102188
+ K,
102189
102189
  f * 2,
102190
102190
  E
102191
- ), Q += 4), n && (ne += 3, $[ne++] = A[ee], $[ne++] = A[ee + 1], $[ne++] = A[ee + 2]), z && (G[K++] = 1, K += 1);
102191
+ ), K += 4), n && (X += 3, $[X++] = A[te], $[X++] = A[te + 1], $[X++] = A[te + 2]), z && (G[J++] = 1, J += 1);
102192
102192
  let oe = calculateAttributesWall(k, r, c);
102193
102193
  r.st && (oe.attributes.st = new GeometryAttribute({
102194
102194
  componentDatatype: ComponentDatatype$1.FLOAT,
@@ -102203,19 +102203,19 @@ function constructExtrudedRectangle(e, t) {
102203
102203
  componentsPerAttribute: 1,
102204
102204
  values: G
102205
102205
  }));
102206
- const X = IndexDatatype$1.createTypedArray(
102206
+ const Q = IndexDatatype$1.createTypedArray(
102207
102207
  U,
102208
102208
  F * 6
102209
102209
  );
102210
- let he, de, ce, _e;
102210
+ let he, ue, se, _e;
102211
102211
  m = k.length / 3;
102212
- let ge = 0;
102212
+ let me = 0;
102213
102213
  for (f = 0; f < m - 1; f += 2) {
102214
102214
  he = f, _e = (he + 2) % m;
102215
- const re = Cartesian3.fromArray(k, he * 3, v1Scratch), Se = Cartesian3.fromArray(k, _e * 3, v2Scratch);
102216
- Cartesian3.equalsEpsilon(re, Se, CesiumMath.EPSILON10) || (de = (he + 1) % m, ce = (de + 2) % m, X[ge++] = he, X[ge++] = de, X[ge++] = _e, X[ge++] = _e, X[ge++] = de, X[ge++] = ce);
102215
+ const re = Cartesian3.fromArray(k, he * 3, v1Scratch), xe = Cartesian3.fromArray(k, _e * 3, v2Scratch);
102216
+ Cartesian3.equalsEpsilon(re, xe, CesiumMath.EPSILON10) || (ue = (he + 1) % m, se = (ue + 2) % m, Q[me++] = he, Q[me++] = ue, Q[me++] = _e, Q[me++] = _e, Q[me++] = ue, Q[me++] = se);
102217
102217
  }
102218
- return oe.indices = X, oe = GeometryPipeline.combineInstances([
102218
+ return oe.indices = Q, oe = GeometryPipeline.combineInstances([
102219
102219
  new GeometryInstance({
102220
102220
  geometry: h
102221
102221
  }),
@@ -106008,8 +106008,8 @@ PolylineGeometry.createGeometry = function(e) {
106008
106008
  G,
106009
106009
  z,
106010
106010
  q
106011
- ), Q = H.length;
106012
- for (d = 0; d < Q; ++d)
106011
+ ), K = H.length;
106012
+ for (d = 0; d < K; ++d)
106013
106013
  V[U++] = H[d];
106014
106014
  } else
106015
106015
  for (d = 0; d < q; ++d)
@@ -108586,21 +108586,21 @@ function parseMatches(e, t) {
108586
108586
  H(_, p);
108587
108587
  break;
108588
108588
  case 26:
108589
- Q(_, p);
108589
+ K(_, p);
108590
108590
  break;
108591
108591
  case 27:
108592
- ne(_, p);
108592
+ X(_, p);
108593
108593
  break;
108594
108594
  // Hashtag states
108595
108595
  case 28:
108596
- K(_, p);
108596
+ J(_, p);
108597
108597
  break;
108598
108598
  case 29:
108599
- Z(_, p);
108599
+ ee(_, p);
108600
108600
  break;
108601
108601
  // Mention states
108602
108602
  case 30:
108603
- ee(_, p);
108603
+ te(_, p);
108604
108604
  break;
108605
108605
  case 31:
108606
108606
  oe(_, p);
@@ -108610,31 +108610,31 @@ function parseMatches(e, t) {
108610
108610
  he(_, p);
108611
108611
  break;
108612
108612
  case 33:
108613
- de(_, p);
108613
+ ue(_, p);
108614
108614
  break;
108615
108615
  case 34:
108616
- ce(_, p);
108616
+ se(_, p);
108617
108617
  break;
108618
108618
  case 35:
108619
108619
  _e(_, p);
108620
108620
  break;
108621
108621
  case 36:
108622
- ge(_, p);
108622
+ me(_, p);
108623
108623
  break;
108624
108624
  case 37:
108625
- X(_, p);
108625
+ Q(_, p);
108626
108626
  break;
108627
108627
  case 38:
108628
108628
  re(_, p);
108629
108629
  break;
108630
108630
  case 39:
108631
- Se(_, p);
108631
+ xe(_, p);
108632
108632
  break;
108633
108633
  case 40:
108634
108634
  pe(_, p);
108635
108635
  break;
108636
108636
  case 41:
108637
- Te(_, p);
108637
+ Ce(_, p);
108638
108638
  break;
108639
108639
  default:
108640
108640
  assertNever(_.state);
@@ -108643,7 +108643,7 @@ function parseMatches(e, t) {
108643
108643
  }
108644
108644
  for (var y = f.length - 1; y >= 0; y--)
108645
108645
  f.forEach(function(W) {
108646
- return xe(W);
108646
+ return be(W);
108647
108647
  });
108648
108648
  return l;
108649
108649
  function C(W) {
@@ -108719,7 +108719,7 @@ function parseMatches(e, t) {
108719
108719
  ))) : remove$1(f, W);
108720
108720
  }
108721
108721
  function S(W, j) {
108722
- j === "/" ? W.state = 4 : isPathChar(j) ? (W.state = 10, W.acceptStateReached = !0) : xe(W);
108722
+ j === "/" ? W.state = 4 : isPathChar(j) ? (W.state = 10, W.acceptStateReached = !0) : be(W);
108723
108723
  }
108724
108724
  function E(W, j) {
108725
108725
  j === "/" ? W.state = 10 : isDomainLabelStartChar(j) ? (W.state = 5, W.acceptStateReached = !0) : remove$1(f, W);
@@ -108731,28 +108731,28 @@ function parseMatches(e, t) {
108731
108731
  isDomainLabelStartChar(j) ? W.state = 5 : remove$1(f, W);
108732
108732
  }
108733
108733
  function P(W, j) {
108734
- j === "." ? W.state = 7 : j === "-" ? W.state = 6 : j === ":" ? W.state = 8 : isUrlSuffixStartChar(j) ? W.state = 10 : isDomainLabelChar(j) || xe(W);
108734
+ j === "." ? W.state = 7 : j === "-" ? W.state = 6 : j === ":" ? W.state = 8 : isUrlSuffixStartChar(j) ? W.state = 10 : isDomainLabelChar(j) || be(W);
108735
108735
  }
108736
108736
  function I(W, j) {
108737
- j === "-" || (j === "." ? xe(W) : isDomainLabelStartChar(j) ? W.state = 5 : xe(W));
108737
+ j === "-" || (j === "." ? be(W) : isDomainLabelStartChar(j) ? W.state = 5 : be(W));
108738
108738
  }
108739
108739
  function M(W, j) {
108740
- j === "." ? xe(W) : isDomainLabelStartChar(j) ? (W.state = 5, W.acceptStateReached = !0) : xe(W);
108740
+ j === "." ? be(W) : isDomainLabelStartChar(j) ? (W.state = 5, W.acceptStateReached = !0) : be(W);
108741
108741
  }
108742
108742
  function R(W, j) {
108743
- j === "." ? W.state = 14 : j === ":" ? W.state = 8 : digitRe.test(j) || (isUrlSuffixStartChar(j) ? W.state = 10 : alphaNumericAndMarksRe.test(j) ? remove$1(f, W) : xe(W));
108743
+ j === "." ? W.state = 14 : j === ":" ? W.state = 8 : digitRe.test(j) || (isUrlSuffixStartChar(j) ? W.state = 10 : alphaNumericAndMarksRe.test(j) ? remove$1(f, W) : be(W));
108744
108744
  }
108745
108745
  function L(W, j) {
108746
- digitRe.test(j) ? (W.octetsEncountered++, W.octetsEncountered === 4 && (W.acceptStateReached = !0), W.state = 13) : xe(W);
108746
+ digitRe.test(j) ? (W.octetsEncountered++, W.octetsEncountered === 4 && (W.acceptStateReached = !0), W.state = 13) : be(W);
108747
108747
  }
108748
108748
  function g(W, j) {
108749
- digitRe.test(j) ? W.state = 9 : xe(W);
108749
+ digitRe.test(j) ? W.state = 9 : be(W);
108750
108750
  }
108751
108751
  function w(W, j) {
108752
- digitRe.test(j) || (isUrlSuffixStartChar(j) ? W.state = 10 : xe(W));
108752
+ digitRe.test(j) || (isUrlSuffixStartChar(j) ? W.state = 10 : be(W));
108753
108753
  }
108754
108754
  function O(W, j) {
108755
- isPathChar(j) || xe(W);
108755
+ isPathChar(j) || be(W);
108756
108756
  }
108757
108757
  function N(W, j) {
108758
108758
  j.toLowerCase() === "a" ? W.state = 16 : G(W, j);
@@ -108785,87 +108785,87 @@ function parseMatches(e, t) {
108785
108785
  isDomainLabelStartChar(j) ? W.state = 25 : remove$1(f, W);
108786
108786
  }
108787
108787
  function H(W, j) {
108788
- j === "." ? W.state = 27 : j === "-" ? W.state = 26 : isDomainLabelChar(j) || xe(W);
108788
+ j === "." ? W.state = 27 : j === "-" ? W.state = 26 : isDomainLabelChar(j) || be(W);
108789
108789
  }
108790
- function Q(W, j) {
108791
- j === "-" || j === "." ? xe(W) : isDomainLabelChar(j) ? W.state = 25 : xe(W);
108790
+ function K(W, j) {
108791
+ j === "-" || j === "." ? be(W) : isDomainLabelChar(j) ? W.state = 25 : be(W);
108792
108792
  }
108793
- function ne(W, j) {
108794
- j === "." || j === "-" ? xe(W) : isDomainLabelStartChar(j) ? (W.state = 25, W.acceptStateReached = !0) : xe(W);
108793
+ function X(W, j) {
108794
+ j === "." || j === "-" ? be(W) : isDomainLabelStartChar(j) ? (W.state = 25, W.acceptStateReached = !0) : be(W);
108795
108795
  }
108796
- function K(W, j) {
108796
+ function J(W, j) {
108797
108797
  isHashtagTextChar(j) ? (W.state = 29, W.acceptStateReached = !0) : remove$1(f, W);
108798
108798
  }
108799
- function Z(W, j) {
108800
- isHashtagTextChar(j) || xe(W);
108801
- }
108802
108799
  function ee(W, j) {
108800
+ isHashtagTextChar(j) || be(W);
108801
+ }
108802
+ function te(W, j) {
108803
108803
  isMentionTextChar(j) ? (W.state = 31, W.acceptStateReached = !0) : remove$1(f, W);
108804
108804
  }
108805
108805
  function oe(W, j) {
108806
- isMentionTextChar(j) || (alphaNumericAndMarksRe.test(j) ? remove$1(f, W) : xe(W));
108806
+ isMentionTextChar(j) || (alphaNumericAndMarksRe.test(j) ? remove$1(f, W) : be(W));
108807
108807
  }
108808
- function X(W, j) {
108808
+ function Q(W, j) {
108809
108809
  digitRe.test(j) ? W.state = 38 : (remove$1(f, W), C(j));
108810
108810
  }
108811
108811
  function he(W, j) {
108812
108812
  digitRe.test(j) ? W.state = 33 : remove$1(f, W), C(j);
108813
108813
  }
108814
- function de(W, j) {
108814
+ function ue(W, j) {
108815
108815
  digitRe.test(j) ? W.state = 34 : remove$1(f, W);
108816
108816
  }
108817
- function ce(W, j) {
108817
+ function se(W, j) {
108818
108818
  digitRe.test(j) ? W.state = 35 : remove$1(f, W);
108819
108819
  }
108820
108820
  function _e(W, j) {
108821
108821
  j === ")" ? W.state = 36 : remove$1(f, W);
108822
108822
  }
108823
- function ge(W, j) {
108823
+ function me(W, j) {
108824
108824
  digitRe.test(j) ? W.state = 38 : isPhoneNumberSeparatorChar(j) ? W.state = 39 : remove$1(f, W);
108825
108825
  }
108826
108826
  function re(W, j) {
108827
- W.acceptStateReached = !0, isPhoneNumberControlChar(j) ? W.state = 40 : j === "#" ? W.state = 41 : digitRe.test(j) || (j === "(" ? W.state = 32 : isPhoneNumberSeparatorChar(j) ? W.state = 39 : (xe(W), isSchemeStartChar(j) && f.push(createSchemeUrlStateMachine(
108827
+ W.acceptStateReached = !0, isPhoneNumberControlChar(j) ? W.state = 40 : j === "#" ? W.state = 41 : digitRe.test(j) || (j === "(" ? W.state = 32 : isPhoneNumberSeparatorChar(j) ? W.state = 39 : (be(W), isSchemeStartChar(j) && f.push(createSchemeUrlStateMachine(
108828
108828
  h,
108829
108829
  0
108830
108830
  /* SchemeChar */
108831
108831
  ))));
108832
108832
  }
108833
- function Se(W, j) {
108834
- digitRe.test(j) ? W.state = 38 : j === "(" ? W.state = 32 : (xe(W), C(j));
108833
+ function xe(W, j) {
108834
+ digitRe.test(j) ? W.state = 38 : j === "(" ? W.state = 32 : (be(W), C(j));
108835
108835
  }
108836
108836
  function pe(W, j) {
108837
- isPhoneNumberControlChar(j) || (j === "#" ? W.state = 41 : digitRe.test(j) ? W.state = 38 : xe(W));
108837
+ isPhoneNumberControlChar(j) || (j === "#" ? W.state = 41 : digitRe.test(j) ? W.state = 38 : be(W));
108838
108838
  }
108839
- function Te(W, j) {
108840
- isPhoneNumberControlChar(j) ? W.state = 40 : digitRe.test(j) ? remove$1(f, W) : xe(W);
108839
+ function Ce(W, j) {
108840
+ isPhoneNumberControlChar(j) ? W.state = 40 : digitRe.test(j) ? remove$1(f, W) : be(W);
108841
108841
  }
108842
- function xe(W) {
108842
+ function be(W) {
108843
108843
  if (remove$1(f, W), !!W.acceptStateReached) {
108844
- var j = W.startIdx, se = e.slice(W.startIdx, h);
108845
- if (se = excludeUnbalancedTrailingBracesAndPunctuation(se), W.type === "url") {
108846
- var Pe = e.charAt(W.startIdx - 1);
108847
- if (Pe === "@")
108844
+ var j = W.startIdx, ce = e.slice(W.startIdx, h);
108845
+ if (ce = excludeUnbalancedTrailingBracesAndPunctuation(ce), W.type === "url") {
108846
+ var Ee = e.charAt(W.startIdx - 1);
108847
+ if (Ee === "@")
108848
108848
  return;
108849
108849
  var le = W.matchType;
108850
108850
  if (le === "scheme") {
108851
- var De = httpSchemeRe.exec(se);
108852
- if (De && (j = j + De.index, se = se.slice(De.index)), !isValidSchemeUrl(se))
108851
+ var De = httpSchemeRe.exec(ce);
108852
+ if (De && (j = j + De.index, ce = ce.slice(De.index)), !isValidSchemeUrl(ce))
108853
108853
  return;
108854
108854
  } else if (le === "tld") {
108855
- if (!isValidTldMatch(se))
108855
+ if (!isValidTldMatch(ce))
108856
108856
  return;
108857
108857
  } else if (le === "ipV4") {
108858
- if (!isValidIpV4Address(se))
108858
+ if (!isValidIpV4Address(ce))
108859
108859
  return;
108860
108860
  } else
108861
108861
  assertNever(le);
108862
108862
  l.push(new UrlMatch({
108863
108863
  tagBuilder: n,
108864
- matchedText: se,
108864
+ matchedText: ce,
108865
108865
  offset: j,
108866
108866
  urlMatchType: le,
108867
- url: se,
108868
- protocolRelativeMatch: se.slice(0, 2) === "//",
108867
+ url: ce,
108868
+ protocolRelativeMatch: ce.slice(0, 2) === "//",
108869
108869
  // TODO: Do these settings need to be passed to the match,
108870
108870
  // or should we handle them here in UrlMatcher?
108871
108871
  stripPrefix: i,
@@ -108873,38 +108873,38 @@ function parseMatches(e, t) {
108873
108873
  decodePercentEncoding: o
108874
108874
  }));
108875
108875
  } else if (W.type === "email")
108876
- isValidEmail(se) && l.push(new EmailMatch({
108876
+ isValidEmail(ce) && l.push(new EmailMatch({
108877
108877
  tagBuilder: n,
108878
- matchedText: se,
108878
+ matchedText: ce,
108879
108879
  offset: j,
108880
- email: se.replace(mailtoSchemePrefixRe, "")
108880
+ email: ce.replace(mailtoSchemePrefixRe, "")
108881
108881
  }));
108882
108882
  else if (W.type === "hashtag")
108883
- isValidHashtag(se) && l.push(new HashtagMatch({
108883
+ isValidHashtag(ce) && l.push(new HashtagMatch({
108884
108884
  tagBuilder: n,
108885
- matchedText: se,
108885
+ matchedText: ce,
108886
108886
  offset: j,
108887
108887
  serviceName: s,
108888
- hashtag: se.slice(1)
108888
+ hashtag: ce.slice(1)
108889
108889
  }));
108890
108890
  else if (W.type === "mention")
108891
- isValidMention(se, c) && l.push(new MentionMatch({
108891
+ isValidMention(ce, c) && l.push(new MentionMatch({
108892
108892
  tagBuilder: n,
108893
- matchedText: se,
108893
+ matchedText: ce,
108894
108894
  offset: j,
108895
108895
  serviceName: c,
108896
- mention: se.slice(1)
108896
+ mention: ce.slice(1)
108897
108897
  // strip off the '@' character at the beginning
108898
108898
  }));
108899
108899
  else if (W.type === "phone") {
108900
- if (se = se.replace(/ +$/g, ""), isValidPhoneNumber(se)) {
108901
- var Re = se.replace(/[^0-9,;#]/g, "");
108900
+ if (ce = ce.replace(/ +$/g, ""), isValidPhoneNumber(ce)) {
108901
+ var Re = ce.replace(/[^0-9,;#]/g, "");
108902
108902
  l.push(new PhoneMatch({
108903
108903
  tagBuilder: n,
108904
- matchedText: se,
108904
+ matchedText: ce,
108905
108905
  offset: j,
108906
108906
  number: Re,
108907
- plusSign: se.charAt(0) === "+"
108907
+ plusSign: ce.charAt(0) === "+"
108908
108908
  }));
108909
108909
  }
108910
108910
  } else
@@ -110327,190 +110327,190 @@ function Deflate() {
110327
110327
  e.depth = [];
110328
110328
  let k, $, G, q, z, H;
110329
110329
  e.bl_count = [], e.heap = [], O = [], N = [], F = [];
110330
- function Q() {
110330
+ function K() {
110331
110331
  d = 2 * o, h[m - 1] = 0;
110332
- for (let J = 0; J < m - 1; J++)
110333
- h[J] = 0;
110332
+ for (let Z = 0; Z < m - 1; Z++)
110333
+ h[Z] = 0;
110334
110334
  M = config_table[R].max_lazy, g = config_table[R].good_length, w = config_table[R].nice_length, I = config_table[R].max_chain, E = 0, T = 0, D = 0, x = P = MIN_MATCH - 1, S = 0, p = 0;
110335
110335
  }
110336
- function ne() {
110337
- let J;
110338
- for (J = 0; J < L_CODES; J++)
110339
- O[J * 2] = 0;
110340
- for (J = 0; J < D_CODES; J++)
110341
- N[J * 2] = 0;
110342
- for (J = 0; J < BL_CODES; J++)
110343
- F[J * 2] = 0;
110336
+ function X() {
110337
+ let Z;
110338
+ for (Z = 0; Z < L_CODES; Z++)
110339
+ O[Z * 2] = 0;
110340
+ for (Z = 0; Z < D_CODES; Z++)
110341
+ N[Z * 2] = 0;
110342
+ for (Z = 0; Z < BL_CODES; Z++)
110343
+ F[Z * 2] = 0;
110344
110344
  O[END_BLOCK * 2] = 1, e.opt_len = e.static_len = 0, $ = G = 0;
110345
110345
  }
110346
- function K() {
110347
- B.dyn_tree = O, B.stat_desc = StaticTree.static_l_desc, V.dyn_tree = N, V.stat_desc = StaticTree.static_d_desc, U.dyn_tree = F, U.stat_desc = StaticTree.static_bl_desc, z = 0, H = 0, q = 8, ne();
110348
- }
110349
- e.pqdownheap = function(J, ae) {
110350
- const te = e.heap, ie = te[ae];
110351
- let ue = ae << 1;
110352
- for (; ue <= e.heap_len && (ue < e.heap_len && smaller(J, te[ue + 1], te[ue], e.depth) && ue++, !smaller(J, ie, te[ue], e.depth)); )
110353
- te[ae] = te[ue], ae = ue, ue <<= 1;
110354
- te[ae] = ie;
110346
+ function J() {
110347
+ B.dyn_tree = O, B.stat_desc = StaticTree.static_l_desc, V.dyn_tree = N, V.stat_desc = StaticTree.static_d_desc, U.dyn_tree = F, U.stat_desc = StaticTree.static_bl_desc, z = 0, H = 0, q = 8, X();
110348
+ }
110349
+ e.pqdownheap = function(Z, ae) {
110350
+ const ne = e.heap, ie = ne[ae];
110351
+ let de = ae << 1;
110352
+ for (; de <= e.heap_len && (de < e.heap_len && smaller(Z, ne[de + 1], ne[de], e.depth) && de++, !smaller(Z, ie, ne[de], e.depth)); )
110353
+ ne[ae] = ne[de], ae = de, de <<= 1;
110354
+ ne[ae] = ie;
110355
110355
  };
110356
- function Z(J, ae) {
110357
- let te = -1, ie, ue = J[0 * 2 + 1], me = 0, be = 7, Ie = 4;
110358
- ue === 0 && (be = 138, Ie = 3), J[(ae + 1) * 2 + 1] = 65535;
110356
+ function ee(Z, ae) {
110357
+ let ne = -1, ie, de = Z[0 * 2 + 1], ge = 0, Se = 7, Ie = 4;
110358
+ de === 0 && (Se = 138, Ie = 3), Z[(ae + 1) * 2 + 1] = 65535;
110359
110359
  for (let we = 0; we <= ae; we++)
110360
- ie = ue, ue = J[(we + 1) * 2 + 1], !(++me < be && ie == ue) && (me < Ie ? F[ie * 2] += me : ie !== 0 ? (ie != te && F[ie * 2]++, F[REP_3_6 * 2]++) : me <= 10 ? F[REPZ_3_10 * 2]++ : F[REPZ_11_138 * 2]++, me = 0, te = ie, ue === 0 ? (be = 138, Ie = 3) : ie == ue ? (be = 6, Ie = 3) : (be = 7, Ie = 4));
110360
+ ie = de, de = Z[(we + 1) * 2 + 1], !(++ge < Se && ie == de) && (ge < Ie ? F[ie * 2] += ge : ie !== 0 ? (ie != ne && F[ie * 2]++, F[REP_3_6 * 2]++) : ge <= 10 ? F[REPZ_3_10 * 2]++ : F[REPZ_11_138 * 2]++, ge = 0, ne = ie, de === 0 ? (Se = 138, Ie = 3) : ie == de ? (Se = 6, Ie = 3) : (Se = 7, Ie = 4));
110361
110361
  }
110362
- function ee() {
110363
- let J;
110364
- for (Z(O, B.max_code), Z(N, V.max_code), U.build_tree(e), J = BL_CODES - 1; J >= 3 && F[Tree.bl_order[J] * 2 + 1] === 0; J--)
110362
+ function te() {
110363
+ let Z;
110364
+ for (ee(O, B.max_code), ee(N, V.max_code), U.build_tree(e), Z = BL_CODES - 1; Z >= 3 && F[Tree.bl_order[Z] * 2 + 1] === 0; Z--)
110365
110365
  ;
110366
- return e.opt_len += 3 * (J + 1) + 5 + 5 + 4, J;
110366
+ return e.opt_len += 3 * (Z + 1) + 5 + 5 + 4, Z;
110367
110367
  }
110368
- function oe(J) {
110369
- e.pending_buf[e.pending++] = J;
110368
+ function oe(Z) {
110369
+ e.pending_buf[e.pending++] = Z;
110370
110370
  }
110371
- function X(J) {
110372
- oe(J & 255), oe(J >>> 8 & 255);
110371
+ function Q(Z) {
110372
+ oe(Z & 255), oe(Z >>> 8 & 255);
110373
110373
  }
110374
- function he(J) {
110375
- oe(J >> 8 & 255), oe(J & 255 & 255);
110374
+ function he(Z) {
110375
+ oe(Z >> 8 & 255), oe(Z & 255 & 255);
110376
110376
  }
110377
- function de(J, ae) {
110378
- let te;
110377
+ function ue(Z, ae) {
110378
+ let ne;
110379
110379
  const ie = ae;
110380
- H > Buf_size - ie ? (te = J, z |= te << H & 65535, X(z), z = te >>> Buf_size - H, H += ie - Buf_size) : (z |= J << H & 65535, H += ie);
110380
+ H > Buf_size - ie ? (ne = Z, z |= ne << H & 65535, Q(z), z = ne >>> Buf_size - H, H += ie - Buf_size) : (z |= Z << H & 65535, H += ie);
110381
110381
  }
110382
- function ce(J, ae) {
110383
- const te = J * 2;
110384
- de(ae[te] & 65535, ae[te + 1] & 65535);
110382
+ function se(Z, ae) {
110383
+ const ne = Z * 2;
110384
+ ue(ae[ne] & 65535, ae[ne + 1] & 65535);
110385
110385
  }
110386
- function _e(J, ae) {
110387
- let te, ie = -1, ue, me = J[0 * 2 + 1], be = 0, Ie = 7, we = 4;
110388
- for (me === 0 && (Ie = 138, we = 3), te = 0; te <= ae; te++)
110389
- if (ue = me, me = J[(te + 1) * 2 + 1], !(++be < Ie && ue == me)) {
110390
- if (be < we)
110386
+ function _e(Z, ae) {
110387
+ let ne, ie = -1, de, ge = Z[0 * 2 + 1], Se = 0, Ie = 7, we = 4;
110388
+ for (ge === 0 && (Ie = 138, we = 3), ne = 0; ne <= ae; ne++)
110389
+ if (de = ge, ge = Z[(ne + 1) * 2 + 1], !(++Se < Ie && de == ge)) {
110390
+ if (Se < we)
110391
110391
  do
110392
- ce(ue, F);
110393
- while (--be !== 0);
110394
- else ue !== 0 ? (ue != ie && (ce(ue, F), be--), ce(REP_3_6, F), de(be - 3, 2)) : be <= 10 ? (ce(REPZ_3_10, F), de(be - 3, 3)) : (ce(REPZ_11_138, F), de(be - 11, 7));
110395
- be = 0, ie = ue, me === 0 ? (Ie = 138, we = 3) : ue == me ? (Ie = 6, we = 3) : (Ie = 7, we = 4);
110392
+ se(de, F);
110393
+ while (--Se !== 0);
110394
+ else de !== 0 ? (de != ie && (se(de, F), Se--), se(REP_3_6, F), ue(Se - 3, 2)) : Se <= 10 ? (se(REPZ_3_10, F), ue(Se - 3, 3)) : (se(REPZ_11_138, F), ue(Se - 11, 7));
110395
+ Se = 0, ie = de, ge === 0 ? (Ie = 138, we = 3) : de == ge ? (Ie = 6, we = 3) : (Ie = 7, we = 4);
110396
110396
  }
110397
110397
  }
110398
- function ge(J, ae, te) {
110398
+ function me(Z, ae, ne) {
110399
110399
  let ie;
110400
- for (de(J - 257, 5), de(ae - 1, 5), de(te - 4, 4), ie = 0; ie < te; ie++)
110401
- de(F[Tree.bl_order[ie] * 2 + 1], 3);
110402
- _e(O, J - 1), _e(N, ae - 1);
110400
+ for (ue(Z - 257, 5), ue(ae - 1, 5), ue(ne - 4, 4), ie = 0; ie < ne; ie++)
110401
+ ue(F[Tree.bl_order[ie] * 2 + 1], 3);
110402
+ _e(O, Z - 1), _e(N, ae - 1);
110403
110403
  }
110404
110404
  function re() {
110405
- H == 16 ? (X(z), z = 0, H = 0) : H >= 8 && (oe(z & 255), z >>>= 8, H -= 8);
110406
- }
110407
- function Se() {
110408
- de(STATIC_TREES << 1, 3), ce(END_BLOCK, StaticTree.static_ltree), re(), 1 + q + 10 - H < 9 && (de(STATIC_TREES << 1, 3), ce(END_BLOCK, StaticTree.static_ltree), re()), q = 7;
110405
+ H == 16 ? (Q(z), z = 0, H = 0) : H >= 8 && (oe(z & 255), z >>>= 8, H -= 8);
110409
110406
  }
110410
- function pe(J, ae) {
110411
- let te, ie, ue;
110412
- if (e.dist_buf[$] = J, e.lc_buf[$] = ae & 255, $++, J === 0 ? O[ae * 2]++ : (G++, J--, O[(Tree._length_code[ae] + LITERALS + 1) * 2]++, N[Tree.d_code(J) * 2]++), ($ & 8191) === 0 && R > 2) {
110413
- for (te = $ * 8, ie = E - T, ue = 0; ue < D_CODES; ue++)
110414
- te += N[ue * 2] * (5 + Tree.extra_dbits[ue]);
110415
- if (te >>>= 3, G < Math.floor($ / 2) && te < Math.floor(ie / 2))
110407
+ function xe() {
110408
+ ue(STATIC_TREES << 1, 3), se(END_BLOCK, StaticTree.static_ltree), re(), 1 + q + 10 - H < 9 && (ue(STATIC_TREES << 1, 3), se(END_BLOCK, StaticTree.static_ltree), re()), q = 7;
110409
+ }
110410
+ function pe(Z, ae) {
110411
+ let ne, ie, de;
110412
+ if (e.dist_buf[$] = Z, e.lc_buf[$] = ae & 255, $++, Z === 0 ? O[ae * 2]++ : (G++, Z--, O[(Tree._length_code[ae] + LITERALS + 1) * 2]++, N[Tree.d_code(Z) * 2]++), ($ & 8191) === 0 && R > 2) {
110413
+ for (ne = $ * 8, ie = E - T, de = 0; de < D_CODES; de++)
110414
+ ne += N[de * 2] * (5 + Tree.extra_dbits[de]);
110415
+ if (ne >>>= 3, G < Math.floor($ / 2) && ne < Math.floor(ie / 2))
110416
110416
  return !0;
110417
110417
  }
110418
110418
  return $ == k - 1;
110419
110419
  }
110420
- function Te(J, ae) {
110421
- let te, ie, ue = 0, me, be;
110420
+ function Ce(Z, ae) {
110421
+ let ne, ie, de = 0, ge, Se;
110422
110422
  if ($ !== 0)
110423
110423
  do
110424
- te = e.dist_buf[ue], ie = e.lc_buf[ue], ue++, te === 0 ? ce(ie, J) : (me = Tree._length_code[ie], ce(me + LITERALS + 1, J), be = Tree.extra_lbits[me], be !== 0 && (ie -= Tree.base_length[me], de(ie, be)), te--, me = Tree.d_code(te), ce(me, ae), be = Tree.extra_dbits[me], be !== 0 && (te -= Tree.base_dist[me], de(te, be)));
110425
- while (ue < $);
110426
- ce(END_BLOCK, J), q = J[END_BLOCK * 2 + 1];
110424
+ ne = e.dist_buf[de], ie = e.lc_buf[de], de++, ne === 0 ? se(ie, Z) : (ge = Tree._length_code[ie], se(ge + LITERALS + 1, Z), Se = Tree.extra_lbits[ge], Se !== 0 && (ie -= Tree.base_length[ge], ue(ie, Se)), ne--, ge = Tree.d_code(ne), se(ge, ae), Se = Tree.extra_dbits[ge], Se !== 0 && (ne -= Tree.base_dist[ge], ue(ne, Se)));
110425
+ while (de < $);
110426
+ se(END_BLOCK, Z), q = Z[END_BLOCK * 2 + 1];
110427
110427
  }
110428
- function xe() {
110429
- H > 8 ? X(z) : H > 0 && oe(z & 255), z = 0, H = 0;
110428
+ function be() {
110429
+ H > 8 ? Q(z) : H > 0 && oe(z & 255), z = 0, H = 0;
110430
110430
  }
110431
- function W(J, ae, te) {
110432
- xe(), q = 8, X(ae), X(~ae), e.pending_buf.set(l.subarray(J, J + ae), e.pending), e.pending += ae;
110431
+ function W(Z, ae, ne) {
110432
+ be(), q = 8, Q(ae), Q(~ae), e.pending_buf.set(l.subarray(Z, Z + ae), e.pending), e.pending += ae;
110433
110433
  }
110434
- function j(J, ae, te) {
110435
- de((STORED_BLOCK << 1) + (te ? 1 : 0), 3), W(J, ae);
110434
+ function j(Z, ae, ne) {
110435
+ ue((STORED_BLOCK << 1) + (ne ? 1 : 0), 3), W(Z, ae);
110436
110436
  }
110437
- function se(J, ae, te) {
110438
- let ie, ue, me = 0;
110439
- R > 0 ? (B.build_tree(e), V.build_tree(e), me = ee(), ie = e.opt_len + 3 + 7 >>> 3, ue = e.static_len + 3 + 7 >>> 3, ue <= ie && (ie = ue)) : ie = ue = ae + 5, ae + 4 <= ie && J != -1 ? j(J, ae, te) : ue == ie ? (de((STATIC_TREES << 1) + (te ? 1 : 0), 3), Te(StaticTree.static_ltree, StaticTree.static_dtree)) : (de((DYN_TREES << 1) + (te ? 1 : 0), 3), ge(B.max_code + 1, V.max_code + 1, me + 1), Te(O, N)), ne(), te && xe();
110437
+ function ce(Z, ae, ne) {
110438
+ let ie, de, ge = 0;
110439
+ R > 0 ? (B.build_tree(e), V.build_tree(e), ge = te(), ie = e.opt_len + 3 + 7 >>> 3, de = e.static_len + 3 + 7 >>> 3, de <= ie && (ie = de)) : ie = de = ae + 5, ae + 4 <= ie && Z != -1 ? j(Z, ae, ne) : de == ie ? (ue((STATIC_TREES << 1) + (ne ? 1 : 0), 3), Ce(StaticTree.static_ltree, StaticTree.static_dtree)) : (ue((DYN_TREES << 1) + (ne ? 1 : 0), 3), me(B.max_code + 1, V.max_code + 1, ge + 1), Ce(O, N)), X(), ne && be();
110440
110440
  }
110441
- function Pe(J) {
110442
- se(T >= 0 ? T : -1, E - T, J), T = E, t.flush_pending();
110441
+ function Ee(Z) {
110442
+ ce(T >= 0 ? T : -1, E - T, Z), T = E, t.flush_pending();
110443
110443
  }
110444
110444
  function le() {
110445
- let J, ae, te, ie;
110445
+ let Z, ae, ne, ie;
110446
110446
  do {
110447
110447
  if (ie = d - D - E, ie === 0 && E === 0 && D === 0)
110448
110448
  ie = o;
110449
110449
  else if (ie == -1)
110450
110450
  ie--;
110451
110451
  else if (E >= o + o - MIN_LOOKAHEAD) {
110452
- l.set(l.subarray(o, o + o), 0), A -= o, E -= o, T -= o, J = m, te = J;
110452
+ l.set(l.subarray(o, o + o), 0), A -= o, E -= o, T -= o, Z = m, ne = Z;
110453
110453
  do
110454
- ae = h[--te] & 65535, h[te] = ae >= o ? ae - o : 0;
110455
- while (--J !== 0);
110456
- J = o, te = J;
110454
+ ae = h[--ne] & 65535, h[ne] = ae >= o ? ae - o : 0;
110455
+ while (--Z !== 0);
110456
+ Z = o, ne = Z;
110457
110457
  do
110458
- ae = f[--te] & 65535, f[te] = ae >= o ? ae - o : 0;
110459
- while (--J !== 0);
110458
+ ae = f[--ne] & 65535, f[ne] = ae >= o ? ae - o : 0;
110459
+ while (--Z !== 0);
110460
110460
  ie += o;
110461
110461
  }
110462
110462
  if (t.avail_in === 0)
110463
110463
  return;
110464
- J = t.read_buf(l, E + D, ie), D += J, D >= MIN_MATCH && (p = l[E] & 255, p = (p << C ^ l[E + 1] & 255) & y);
110464
+ Z = t.read_buf(l, E + D, ie), D += Z, D >= MIN_MATCH && (p = l[E] & 255, p = (p << C ^ l[E + 1] & 255) & y);
110465
110465
  } while (D < MIN_LOOKAHEAD && t.avail_in !== 0);
110466
110466
  }
110467
- function De(J) {
110468
- let ae = 65535, te;
110467
+ function De(Z) {
110468
+ let ae = 65535, ne;
110469
110469
  for (ae > i - 5 && (ae = i - 5); ; ) {
110470
110470
  if (D <= 1) {
110471
- if (le(), D === 0 && J == Z_NO_FLUSH$1)
110471
+ if (le(), D === 0 && Z == Z_NO_FLUSH$1)
110472
110472
  return NeedMore;
110473
110473
  if (D === 0)
110474
110474
  break;
110475
110475
  }
110476
- if (E += D, D = 0, te = T + ae, (E === 0 || E >= te) && (D = E - te, E = te, Pe(!1), t.avail_out === 0) || E - T >= o - MIN_LOOKAHEAD && (Pe(!1), t.avail_out === 0))
110476
+ if (E += D, D = 0, ne = T + ae, (E === 0 || E >= ne) && (D = E - ne, E = ne, Ee(!1), t.avail_out === 0) || E - T >= o - MIN_LOOKAHEAD && (Ee(!1), t.avail_out === 0))
110477
110477
  return NeedMore;
110478
110478
  }
110479
- return Pe(J == Z_FINISH$1), t.avail_out === 0 ? J == Z_FINISH$1 ? FinishStarted : NeedMore : J == Z_FINISH$1 ? FinishDone : BlockDone;
110479
+ return Ee(Z == Z_FINISH$1), t.avail_out === 0 ? Z == Z_FINISH$1 ? FinishStarted : NeedMore : Z == Z_FINISH$1 ? FinishDone : BlockDone;
110480
110480
  }
110481
- function Re(J) {
110482
- let ae = I, te = E, ie, ue, me = P;
110483
- const be = E > o - MIN_LOOKAHEAD ? E - (o - MIN_LOOKAHEAD) : 0;
110481
+ function Re(Z) {
110482
+ let ae = I, ne = E, ie, de, ge = P;
110483
+ const Se = E > o - MIN_LOOKAHEAD ? E - (o - MIN_LOOKAHEAD) : 0;
110484
110484
  let Ie = w;
110485
110485
  const we = c, He = E + MAX_MATCH;
110486
- let We = l[te + me - 1], Ae = l[te + me];
110486
+ let We = l[ne + ge - 1], Pe = l[ne + ge];
110487
110487
  P >= g && (ae >>= 2), Ie > D && (Ie = D);
110488
110488
  do
110489
- if (ie = J, !(l[ie + me] != Ae || l[ie + me - 1] != We || l[ie] != l[te] || l[++ie] != l[te + 1])) {
110490
- te += 2, ie++;
110489
+ if (ie = Z, !(l[ie + ge] != Pe || l[ie + ge - 1] != We || l[ie] != l[ne] || l[++ie] != l[ne + 1])) {
110490
+ ne += 2, ie++;
110491
110491
  do
110492
110492
  ;
110493
- while (l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && te < He);
110494
- if (ue = MAX_MATCH - (He - te), te = He - MAX_MATCH, ue > me) {
110495
- if (A = J, me = ue, ue >= Ie)
110493
+ while (l[++ne] == l[++ie] && l[++ne] == l[++ie] && l[++ne] == l[++ie] && l[++ne] == l[++ie] && l[++ne] == l[++ie] && l[++ne] == l[++ie] && l[++ne] == l[++ie] && l[++ne] == l[++ie] && ne < He);
110494
+ if (de = MAX_MATCH - (He - ne), ne = He - MAX_MATCH, de > ge) {
110495
+ if (A = Z, ge = de, de >= Ie)
110496
110496
  break;
110497
- We = l[te + me - 1], Ae = l[te + me];
110497
+ We = l[ne + ge - 1], Pe = l[ne + ge];
110498
110498
  }
110499
110499
  }
110500
- while ((J = f[J & we] & 65535) > be && --ae !== 0);
110501
- return me <= D ? me : D;
110500
+ while ((Z = f[Z & we] & 65535) > Se && --ae !== 0);
110501
+ return ge <= D ? ge : D;
110502
110502
  }
110503
- function Ge(J) {
110504
- let ae = 0, te;
110503
+ function Ge(Z) {
110504
+ let ae = 0, ne;
110505
110505
  for (; ; ) {
110506
110506
  if (D < MIN_LOOKAHEAD) {
110507
- if (le(), D < MIN_LOOKAHEAD && J == Z_NO_FLUSH$1)
110507
+ if (le(), D < MIN_LOOKAHEAD && Z == Z_NO_FLUSH$1)
110508
110508
  return NeedMore;
110509
110509
  if (D === 0)
110510
110510
  break;
110511
110511
  }
110512
110512
  if (D >= MIN_MATCH && (p = (p << C ^ l[E + (MIN_MATCH - 1)] & 255) & y, ae = h[p] & 65535, f[E & c] = h[p], h[p] = E), ae !== 0 && (E - ae & 65535) <= o - MIN_LOOKAHEAD && L != Z_HUFFMAN_ONLY && (x = Re(ae)), x >= MIN_MATCH)
110513
- if (te = pe(E - A, x - MIN_MATCH), D -= x, x <= M && D >= MIN_MATCH) {
110513
+ if (ne = pe(E - A, x - MIN_MATCH), D -= x, x <= M && D >= MIN_MATCH) {
110514
110514
  x--;
110515
110515
  do
110516
110516
  E++, p = (p << C ^ l[E + (MIN_MATCH - 1)] & 255) & y, ae = h[p] & 65535, f[E & c] = h[p], h[p] = E;
@@ -110519,90 +110519,90 @@ function Deflate() {
110519
110519
  } else
110520
110520
  E += x, x = 0, p = l[E] & 255, p = (p << C ^ l[E + 1] & 255) & y;
110521
110521
  else
110522
- te = pe(0, l[E] & 255), D--, E++;
110523
- if (te && (Pe(!1), t.avail_out === 0))
110522
+ ne = pe(0, l[E] & 255), D--, E++;
110523
+ if (ne && (Ee(!1), t.avail_out === 0))
110524
110524
  return NeedMore;
110525
110525
  }
110526
- return Pe(J == Z_FINISH$1), t.avail_out === 0 ? J == Z_FINISH$1 ? FinishStarted : NeedMore : J == Z_FINISH$1 ? FinishDone : BlockDone;
110526
+ return Ee(Z == Z_FINISH$1), t.avail_out === 0 ? Z == Z_FINISH$1 ? FinishStarted : NeedMore : Z == Z_FINISH$1 ? FinishDone : BlockDone;
110527
110527
  }
110528
- function Le(J) {
110529
- let ae = 0, te, ie;
110528
+ function Le(Z) {
110529
+ let ae = 0, ne, ie;
110530
110530
  for (; ; ) {
110531
110531
  if (D < MIN_LOOKAHEAD) {
110532
- if (le(), D < MIN_LOOKAHEAD && J == Z_NO_FLUSH$1)
110532
+ if (le(), D < MIN_LOOKAHEAD && Z == Z_NO_FLUSH$1)
110533
110533
  return NeedMore;
110534
110534
  if (D === 0)
110535
110535
  break;
110536
110536
  }
110537
110537
  if (D >= MIN_MATCH && (p = (p << C ^ l[E + (MIN_MATCH - 1)] & 255) & y, ae = h[p] & 65535, f[E & c] = h[p], h[p] = E), P = x, b = A, x = MIN_MATCH - 1, ae !== 0 && P < M && (E - ae & 65535) <= o - MIN_LOOKAHEAD && (L != Z_HUFFMAN_ONLY && (x = Re(ae)), x <= 5 && (L == Z_FILTERED || x == MIN_MATCH && E - A > 4096) && (x = MIN_MATCH - 1)), P >= MIN_MATCH && x <= P) {
110538
- ie = E + D - MIN_MATCH, te = pe(E - 1 - b, P - MIN_MATCH), D -= P - 1, P -= 2;
110538
+ ie = E + D - MIN_MATCH, ne = pe(E - 1 - b, P - MIN_MATCH), D -= P - 1, P -= 2;
110539
110539
  do
110540
110540
  ++E <= ie && (p = (p << C ^ l[E + (MIN_MATCH - 1)] & 255) & y, ae = h[p] & 65535, f[E & c] = h[p], h[p] = E);
110541
110541
  while (--P !== 0);
110542
- if (S = 0, x = MIN_MATCH - 1, E++, te && (Pe(!1), t.avail_out === 0))
110542
+ if (S = 0, x = MIN_MATCH - 1, E++, ne && (Ee(!1), t.avail_out === 0))
110543
110543
  return NeedMore;
110544
110544
  } else if (S !== 0) {
110545
- if (te = pe(0, l[E - 1] & 255), te && Pe(!1), E++, D--, t.avail_out === 0)
110545
+ if (ne = pe(0, l[E - 1] & 255), ne && Ee(!1), E++, D--, t.avail_out === 0)
110546
110546
  return NeedMore;
110547
110547
  } else
110548
110548
  S = 1, E++, D--;
110549
110549
  }
110550
- return S !== 0 && (te = pe(0, l[E - 1] & 255), S = 0), Pe(J == Z_FINISH$1), t.avail_out === 0 ? J == Z_FINISH$1 ? FinishStarted : NeedMore : J == Z_FINISH$1 ? FinishDone : BlockDone;
110550
+ return S !== 0 && (ne = pe(0, l[E - 1] & 255), S = 0), Ee(Z == Z_FINISH$1), t.avail_out === 0 ? Z == Z_FINISH$1 ? FinishStarted : NeedMore : Z == Z_FINISH$1 ? FinishDone : BlockDone;
110551
110551
  }
110552
- function Ue(J) {
110553
- return J.total_in = J.total_out = 0, J.msg = null, e.pending = 0, e.pending_out = 0, n = BUSY_STATE, r = Z_NO_FLUSH$1, K(), Q(), Z_OK$1;
110552
+ function Ue(Z) {
110553
+ return Z.total_in = Z.total_out = 0, Z.msg = null, e.pending = 0, e.pending_out = 0, n = BUSY_STATE, r = Z_NO_FLUSH$1, J(), K(), Z_OK$1;
110554
110554
  }
110555
- e.deflateInit = function(J, ae, te, ie, ue, me) {
110556
- return ie || (ie = Z_DEFLATED$1), ue || (ue = DEF_MEM_LEVEL), me || (me = Z_DEFAULT_STRATEGY), J.msg = null, ae == Z_DEFAULT_COMPRESSION && (ae = 6), ue < 1 || ue > MAX_MEM_LEVEL || ie != Z_DEFLATED$1 || te < 9 || te > 15 || ae < 0 || ae > 9 || me < 0 || me > Z_HUFFMAN_ONLY ? Z_STREAM_ERROR$1 : (J.dstate = e, s = te, o = 1 << s, c = o - 1, _ = ue + 7, m = 1 << _, y = m - 1, C = Math.floor((_ + MIN_MATCH - 1) / MIN_MATCH), l = new Uint8Array(o * 2), f = [], h = [], k = 1 << ue + 6, e.pending_buf = new Uint8Array(k * 4), i = k * 4, e.dist_buf = new Uint16Array(k), e.lc_buf = new Uint8Array(k), R = ae, L = me, Ue(J));
110555
+ e.deflateInit = function(Z, ae, ne, ie, de, ge) {
110556
+ return ie || (ie = Z_DEFLATED$1), de || (de = DEF_MEM_LEVEL), ge || (ge = Z_DEFAULT_STRATEGY), Z.msg = null, ae == Z_DEFAULT_COMPRESSION && (ae = 6), de < 1 || de > MAX_MEM_LEVEL || ie != Z_DEFLATED$1 || ne < 9 || ne > 15 || ae < 0 || ae > 9 || ge < 0 || ge > Z_HUFFMAN_ONLY ? Z_STREAM_ERROR$1 : (Z.dstate = e, s = ne, o = 1 << s, c = o - 1, _ = de + 7, m = 1 << _, y = m - 1, C = Math.floor((_ + MIN_MATCH - 1) / MIN_MATCH), l = new Uint8Array(o * 2), f = [], h = [], k = 1 << de + 6, e.pending_buf = new Uint8Array(k * 4), i = k * 4, e.dist_buf = new Uint16Array(k), e.lc_buf = new Uint8Array(k), R = ae, L = ge, Ue(Z));
110557
110557
  }, e.deflateEnd = function() {
110558
110558
  return n != INIT_STATE && n != BUSY_STATE && n != FINISH_STATE ? Z_STREAM_ERROR$1 : (e.lc_buf = null, e.dist_buf = null, e.pending_buf = null, h = null, f = null, l = null, e.dstate = null, n == BUSY_STATE ? Z_DATA_ERROR$1 : Z_OK$1);
110559
- }, e.deflateParams = function(J, ae, te) {
110559
+ }, e.deflateParams = function(Z, ae, ne) {
110560
110560
  let ie = Z_OK$1;
110561
- return ae == Z_DEFAULT_COMPRESSION && (ae = 6), ae < 0 || ae > 9 || te < 0 || te > Z_HUFFMAN_ONLY ? Z_STREAM_ERROR$1 : (config_table[R].func != config_table[ae].func && J.total_in !== 0 && (ie = J.deflate(Z_PARTIAL_FLUSH)), R != ae && (R = ae, M = config_table[R].max_lazy, g = config_table[R].good_length, w = config_table[R].nice_length, I = config_table[R].max_chain), L = te, ie);
110562
- }, e.deflateSetDictionary = function(J, ae, te) {
110563
- let ie = te, ue, me = 0;
110561
+ return ae == Z_DEFAULT_COMPRESSION && (ae = 6), ae < 0 || ae > 9 || ne < 0 || ne > Z_HUFFMAN_ONLY ? Z_STREAM_ERROR$1 : (config_table[R].func != config_table[ae].func && Z.total_in !== 0 && (ie = Z.deflate(Z_PARTIAL_FLUSH)), R != ae && (R = ae, M = config_table[R].max_lazy, g = config_table[R].good_length, w = config_table[R].nice_length, I = config_table[R].max_chain), L = ne, ie);
110562
+ }, e.deflateSetDictionary = function(Z, ae, ne) {
110563
+ let ie = ne, de, ge = 0;
110564
110564
  if (!ae || n != INIT_STATE)
110565
110565
  return Z_STREAM_ERROR$1;
110566
110566
  if (ie < MIN_MATCH)
110567
110567
  return Z_OK$1;
110568
- for (ie > o - MIN_LOOKAHEAD && (ie = o - MIN_LOOKAHEAD, me = te - ie), l.set(ae.subarray(me, me + ie), 0), E = ie, T = ie, p = l[0] & 255, p = (p << C ^ l[1] & 255) & y, ue = 0; ue <= ie - MIN_MATCH; ue++)
110569
- p = (p << C ^ l[ue + (MIN_MATCH - 1)] & 255) & y, f[ue & c] = h[p], h[p] = ue;
110568
+ for (ie > o - MIN_LOOKAHEAD && (ie = o - MIN_LOOKAHEAD, ge = ne - ie), l.set(ae.subarray(ge, ge + ie), 0), E = ie, T = ie, p = l[0] & 255, p = (p << C ^ l[1] & 255) & y, de = 0; de <= ie - MIN_MATCH; de++)
110569
+ p = (p << C ^ l[de + (MIN_MATCH - 1)] & 255) & y, f[de & c] = h[p], h[p] = de;
110570
110570
  return Z_OK$1;
110571
- }, e.deflate = function(J, ae) {
110572
- let te, ie, ue, me, be;
110571
+ }, e.deflate = function(Z, ae) {
110572
+ let ne, ie, de, ge, Se;
110573
110573
  if (ae > Z_FINISH$1 || ae < 0)
110574
110574
  return Z_STREAM_ERROR$1;
110575
- if (!J.next_out || !J.next_in && J.avail_in !== 0 || n == FINISH_STATE && ae != Z_FINISH$1)
110576
- return J.msg = z_errmsg[Z_NEED_DICT$1 - Z_STREAM_ERROR$1], Z_STREAM_ERROR$1;
110577
- if (J.avail_out === 0)
110578
- return J.msg = z_errmsg[Z_NEED_DICT$1 - Z_BUF_ERROR$1], Z_BUF_ERROR$1;
110579
- if (t = J, me = r, r = ae, n == INIT_STATE && (ie = Z_DEFLATED$1 + (s - 8 << 4) << 8, ue = (R - 1 & 255) >> 1, ue > 3 && (ue = 3), ie |= ue << 6, E !== 0 && (ie |= PRESET_DICT$1), ie += 31 - ie % 31, n = BUSY_STATE, he(ie)), e.pending !== 0) {
110575
+ if (!Z.next_out || !Z.next_in && Z.avail_in !== 0 || n == FINISH_STATE && ae != Z_FINISH$1)
110576
+ return Z.msg = z_errmsg[Z_NEED_DICT$1 - Z_STREAM_ERROR$1], Z_STREAM_ERROR$1;
110577
+ if (Z.avail_out === 0)
110578
+ return Z.msg = z_errmsg[Z_NEED_DICT$1 - Z_BUF_ERROR$1], Z_BUF_ERROR$1;
110579
+ if (t = Z, ge = r, r = ae, n == INIT_STATE && (ie = Z_DEFLATED$1 + (s - 8 << 4) << 8, de = (R - 1 & 255) >> 1, de > 3 && (de = 3), ie |= de << 6, E !== 0 && (ie |= PRESET_DICT$1), ie += 31 - ie % 31, n = BUSY_STATE, he(ie)), e.pending !== 0) {
110580
110580
  if (t.flush_pending(), t.avail_out === 0)
110581
110581
  return r = -1, Z_OK$1;
110582
- } else if (t.avail_in === 0 && ae <= me && ae != Z_FINISH$1)
110582
+ } else if (t.avail_in === 0 && ae <= ge && ae != Z_FINISH$1)
110583
110583
  return t.msg = z_errmsg[Z_NEED_DICT$1 - Z_BUF_ERROR$1], Z_BUF_ERROR$1;
110584
110584
  if (n == FINISH_STATE && t.avail_in !== 0)
110585
- return J.msg = z_errmsg[Z_NEED_DICT$1 - Z_BUF_ERROR$1], Z_BUF_ERROR$1;
110585
+ return Z.msg = z_errmsg[Z_NEED_DICT$1 - Z_BUF_ERROR$1], Z_BUF_ERROR$1;
110586
110586
  if (t.avail_in !== 0 || D !== 0 || ae != Z_NO_FLUSH$1 && n != FINISH_STATE) {
110587
- switch (be = -1, config_table[R].func) {
110587
+ switch (Se = -1, config_table[R].func) {
110588
110588
  case STORED$1:
110589
- be = De(ae);
110589
+ Se = De(ae);
110590
110590
  break;
110591
110591
  case FAST:
110592
- be = Ge(ae);
110592
+ Se = Ge(ae);
110593
110593
  break;
110594
110594
  case SLOW:
110595
- be = Le(ae);
110595
+ Se = Le(ae);
110596
110596
  break;
110597
110597
  }
110598
- if ((be == FinishStarted || be == FinishDone) && (n = FINISH_STATE), be == NeedMore || be == FinishStarted)
110598
+ if ((Se == FinishStarted || Se == FinishDone) && (n = FINISH_STATE), Se == NeedMore || Se == FinishStarted)
110599
110599
  return t.avail_out === 0 && (r = -1), Z_OK$1;
110600
- if (be == BlockDone) {
110600
+ if (Se == BlockDone) {
110601
110601
  if (ae == Z_PARTIAL_FLUSH)
110602
- Se();
110602
+ xe();
110603
110603
  else if (j(0, 0, !1), ae == Z_FULL_FLUSH)
110604
- for (te = 0; te < m; te++)
110605
- h[te] = 0;
110604
+ for (ne = 0; ne < m; ne++)
110605
+ h[ne] = 0;
110606
110606
  if (t.flush_pending(), t.avail_out === 0)
110607
110607
  return r = -1, Z_OK$1;
110608
110608
  }
@@ -113066,7 +113066,7 @@ function ZipInflate(e) {
113066
113066
  n.inflateEnd();
113067
113067
  };
113068
113068
  }
113069
- const MAX_32_BITS = 4294967295, MAX_16_BITS = 65535, COMPRESSION_METHOD_DEFLATE = 8, COMPRESSION_METHOD_STORE = 0, COMPRESSION_METHOD_AES = 99, LOCAL_FILE_HEADER_SIGNATURE = 67324752, SPLIT_ZIP_FILE_SIGNATURE = 134695760, DATA_DESCRIPTOR_RECORD_SIGNATURE = SPLIT_ZIP_FILE_SIGNATURE, CENTRAL_FILE_HEADER_SIGNATURE = 33639248, END_OF_CENTRAL_DIR_SIGNATURE = 101010256, ZIP64_END_OF_CENTRAL_DIR_SIGNATURE = 101075792, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIGNATURE = 117853008, END_OF_CENTRAL_DIR_LENGTH = 22, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH = 20, ZIP64_END_OF_CENTRAL_DIR_LENGTH = 56, ZIP64_END_OF_CENTRAL_DIR_TOTAL_LENGTH = END_OF_CENTRAL_DIR_LENGTH + ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH + ZIP64_END_OF_CENTRAL_DIR_LENGTH, EXTRAFIELD_TYPE_ZIP64 = 1, EXTRAFIELD_TYPE_AES = 39169, EXTRAFIELD_TYPE_NTFS = 10, EXTRAFIELD_TYPE_NTFS_TAG1 = 1, EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP = 21589, EXTRAFIELD_TYPE_UNICODE_PATH = 28789, EXTRAFIELD_TYPE_UNICODE_COMMENT = 25461, EXTRAFIELD_TYPE_USDZ = 6534, BITFLAG_ENCRYPTED = 1, BITFLAG_LEVEL = 6, BITFLAG_DATA_DESCRIPTOR = 8, BITFLAG_LANG_ENCODING_FLAG = 2048, FILE_ATTR_MSDOS_DIR_MASK = 16, VERSION_DEFLATE = 20, VERSION_ZIP64 = 45, VERSION_AES = 51, DIRECTORY_SIGNATURE = "/", MAX_DATE = new Date(2107, 11, 31), MIN_DATE = new Date(1980, 0, 1), UNDEFINED_VALUE = void 0, UNDEFINED_TYPE = "undefined", FUNCTION_TYPE = "function";
113069
+ const MAX_32_BITS = 4294967295, MAX_16_BITS = 65535, COMPRESSION_METHOD_DEFLATE = 8, COMPRESSION_METHOD_DEFLATE_64 = 9, COMPRESSION_METHOD_STORE = 0, COMPRESSION_METHOD_AES = 99, LOCAL_FILE_HEADER_SIGNATURE = 67324752, SPLIT_ZIP_FILE_SIGNATURE = 134695760, DATA_DESCRIPTOR_RECORD_SIGNATURE = SPLIT_ZIP_FILE_SIGNATURE, CENTRAL_FILE_HEADER_SIGNATURE = 33639248, END_OF_CENTRAL_DIR_SIGNATURE = 101010256, ZIP64_END_OF_CENTRAL_DIR_SIGNATURE = 101075792, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIGNATURE = 117853008, END_OF_CENTRAL_DIR_LENGTH = 22, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH = 20, ZIP64_END_OF_CENTRAL_DIR_LENGTH = 56, ZIP64_END_OF_CENTRAL_DIR_TOTAL_LENGTH = END_OF_CENTRAL_DIR_LENGTH + ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH + ZIP64_END_OF_CENTRAL_DIR_LENGTH, EXTRAFIELD_TYPE_ZIP64 = 1, EXTRAFIELD_TYPE_AES = 39169, EXTRAFIELD_TYPE_NTFS = 10, EXTRAFIELD_TYPE_NTFS_TAG1 = 1, EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP = 21589, EXTRAFIELD_TYPE_UNICODE_PATH = 28789, EXTRAFIELD_TYPE_UNICODE_COMMENT = 25461, EXTRAFIELD_TYPE_USDZ = 6534, BITFLAG_ENCRYPTED = 1, BITFLAG_LEVEL = 6, BITFLAG_LEVEL_MAX_MASK = 2, BITFLAG_LEVEL_FAST_MASK = 4, BITFLAG_LEVEL_SUPER_FAST_MASK = 6, BITFLAG_DATA_DESCRIPTOR = 8, BITFLAG_LANG_ENCODING_FLAG = 2048, FILE_ATTR_MSDOS_DIR_MASK = 16, FILE_ATTR_UNIX_TYPE_MASK = 61440, FILE_ATTR_UNIX_TYPE_DIR = 16384, FILE_ATTR_UNIX_EXECUTABLE_MASK = 73, FILE_ATTR_UNIX_DEFAULT_MASK = 420, VERSION_DEFLATE = 20, VERSION_ZIP64 = 45, VERSION_AES = 51, DIRECTORY_SIGNATURE = "/", HEADER_SIZE = 26, HEADER_OFFSET_SIGNATURE = 10, HEADER_OFFSET_COMPRESSED_SIZE = 14, HEADER_OFFSET_UNCOMPRESSED_SIZE = 18, MAX_DATE = new Date(2107, 11, 31), MIN_DATE = new Date(1980, 0, 1), UNDEFINED_VALUE = void 0, UNDEFINED_TYPE = "undefined", FUNCTION_TYPE = "function";
113070
113070
  class StreamAdapter {
113071
113071
  constructor(t) {
113072
113072
  return class extends TransformStream {
@@ -113879,33 +113879,32 @@ class CodecStream extends TransformStream {
113879
113879
  super({});
113880
113880
  const i = this, { codecType: r } = t;
113881
113881
  let o;
113882
- r.startsWith(CODEC_DEFLATE) ? o = DeflateStream : r.startsWith(CODEC_INFLATE) && (o = InflateStream);
113883
- let s = 0, c = 0;
113884
- const l = new o(t, n), d = super.readable, f = new TransformStream({
113885
- transform(p, m) {
113886
- p && p.length && (c += p.length, m.enqueue(p));
113882
+ r.startsWith(CODEC_DEFLATE) ? o = DeflateStream : r.startsWith(CODEC_INFLATE) && (o = InflateStream), i.outputSize = 0;
113883
+ let s = 0;
113884
+ const c = new o(t, n), l = super.readable, d = new TransformStream({
113885
+ transform(h, p) {
113886
+ h && h.length && (s += h.length, p.enqueue(h));
113887
113887
  },
113888
113888
  flush() {
113889
113889
  Object.assign(i, {
113890
- inputSize: c
113890
+ inputSize: s
113891
113891
  });
113892
113892
  }
113893
- }), h = new TransformStream({
113894
- transform(p, m) {
113895
- p && p.length && (s += p.length, m.enqueue(p));
113893
+ }), f = new TransformStream({
113894
+ transform(h, p) {
113895
+ h && h.length && (p.enqueue(h), i.outputSize += h.length);
113896
113896
  },
113897
113897
  flush() {
113898
- const { signature: p } = l;
113898
+ const { signature: h } = c;
113899
113899
  Object.assign(i, {
113900
- signature: p,
113901
- outputSize: s,
113902
- inputSize: c
113900
+ signature: h,
113901
+ inputSize: s
113903
113902
  });
113904
113903
  }
113905
113904
  });
113906
113905
  Object.defineProperty(i, "readable", {
113907
113906
  get() {
113908
- return d.pipeThrough(f).pipeThrough(l).pipeThrough(h);
113907
+ return l.pipeThrough(d).pipeThrough(c).pipeThrough(f);
113909
113908
  }
113910
113909
  });
113911
113910
  }
@@ -113934,7 +113933,7 @@ class CodecWorker {
113934
113933
  const { signal: h } = s;
113935
113934
  return Object.assign(t, {
113936
113935
  busy: !0,
113937
- readable: n.pipeThrough(new ChunkStream(o.chunkSize)).pipeThrough(new ProgressWatcherStream(n, s), { signal: h }),
113936
+ readable: n.pipeThrough(new ChunkStream(o.chunkSize)).pipeThrough(new ProgressWatcherStream(s), { signal: h }),
113938
113937
  writable: i,
113939
113938
  options: Object.assign({}, r),
113940
113939
  scripts: d,
@@ -113953,17 +113952,17 @@ class CodecWorker {
113953
113952
  }
113954
113953
  }
113955
113954
  class ProgressWatcherStream extends TransformStream {
113956
- constructor(t, { onstart: n, onprogress: i, size: r, onend: o }) {
113957
- let s = 0;
113955
+ constructor({ onstart: t, onprogress: n, size: i, onend: r }) {
113956
+ let o = 0;
113958
113957
  super({
113959
113958
  async start() {
113960
- n && await callHandler(n, r);
113959
+ t && await callHandler(t, i);
113961
113960
  },
113962
- async transform(c, l) {
113963
- s += c.length, i && await callHandler(i, s, r), l.enqueue(c);
113961
+ async transform(s, c) {
113962
+ o += s.length, n && await callHandler(n, o, i), c.enqueue(s);
113964
113963
  },
113965
113964
  async flush() {
113966
- t.size = s, o && await callHandler(o, s);
113965
+ r && await callHandler(r, o);
113967
113966
  }
113968
113967
  });
113969
113968
  }
@@ -113998,9 +113997,9 @@ function createWebWorkerInterface(e, t) {
113998
113997
  return e.interface;
113999
113998
  }
114000
113999
  async function runWorker$1({ options: e, readable: t, writable: n, onTaskFinished: i }, r) {
114000
+ let o;
114001
114001
  try {
114002
- const o = new CodecStream(e, r);
114003
- await t.pipeThrough(o).pipeTo(n, { preventClose: !0, preventAbort: !0 });
114002
+ o = new CodecStream(e, r), await t.pipeThrough(o).pipeTo(n, { preventClose: !0, preventAbort: !0 });
114004
114003
  const {
114005
114004
  signature: s,
114006
114005
  inputSize: c,
@@ -114011,6 +114010,8 @@ async function runWorker$1({ options: e, readable: t, writable: n, onTaskFinishe
114011
114010
  inputSize: c,
114012
114011
  outputSize: l
114013
114012
  };
114013
+ } catch (s) {
114014
+ throw o && (s.outputSize = o.outputSize), s;
114014
114015
  } finally {
114015
114016
  i();
114016
114017
  }
@@ -114080,8 +114081,7 @@ function getWebWorker(e, t, n) {
114080
114081
  }
114081
114082
  function sendMessage(e, { worker: t, writer: n, onTaskFinished: i, transferStreams: r }) {
114082
114083
  try {
114083
- let { value: o, readable: s, writable: c } = e;
114084
- const l = [];
114084
+ const { value: o, readable: s, writable: c } = e, l = [];
114085
114085
  if (o && (o.byteLength < o.buffer.byteLength ? e.value = o.buffer.slice(0, o.byteLength) : e.value = o.buffer, l.push(e.value)), r && transferStreamsSupported ? (s && l.push(s), c && l.push(c)) : e.readable = e.writable = null, l.length)
114086
114086
  try {
114087
114087
  return t.postMessage(e, l), !0;
@@ -114098,8 +114098,8 @@ async function onMessage({ data: e }, t) {
114098
114098
  const { type: n, value: i, messageId: r, result: o, error: s } = e, { reader: c, writer: l, resolveResult: d, rejectResult: f, onTaskFinished: h } = t;
114099
114099
  try {
114100
114100
  if (s) {
114101
- const { message: m, stack: _, code: y, name: C } = s, T = new Error(m);
114102
- Object.assign(T, { stack: _, code: y, name: C }), p(T);
114101
+ const { message: m, stack: _, code: y, name: C, outputSize: T } = s, x = new Error(m);
114102
+ Object.assign(x, { stack: _, code: y, name: C, outputSize: T }), p(x);
114103
114103
  } else {
114104
114104
  if (n == MESSAGE_PULL) {
114105
114105
  const { value: m, done: _ } = await c.read();
@@ -114153,7 +114153,7 @@ function clearTerminateTimeout(e) {
114153
114153
  const { terminateTimeout: t } = e;
114154
114154
  t && (clearTimeout(t), e.terminateTimeout = null);
114155
114155
  }
114156
- const ERR_ITERATOR_COMPLETED_TOO_SOON = "Writer iterator completed too soon", CONTENT_TYPE_TEXT_PLAIN = "text/plain", HTTP_HEADER_CONTENT_TYPE = "Content-Type", DEFAULT_CHUNK_SIZE = 64 * 1024, PROPERTY_NAME_WRITABLE = "writable";
114156
+ const ERR_ITERATOR_COMPLETED_TOO_SOON = "Writer iterator completed too soon", ERR_WRITER_NOT_INITIALIZED = "Writer not initialized", CONTENT_TYPE_TEXT_PLAIN = "text/plain", HTTP_HEADER_CONTENT_TYPE = "Content-Type", DEFAULT_CHUNK_SIZE = 64 * 1024, PROPERTY_NAME_WRITABLE = "writable";
114157
114157
  class Stream {
114158
114158
  constructor() {
114159
114159
  this.size = 0;
@@ -114169,8 +114169,8 @@ class Reader extends Stream {
114169
114169
  this.chunkOffset = 0;
114170
114170
  },
114171
114171
  async pull(r) {
114172
- const { offset: o = 0, size: s, diskNumberStart: c } = i, { chunkOffset: l } = this;
114173
- r.enqueue(await readUint8Array(t, o + l, Math.min(n, s - l), c)), l + n > s ? r.close() : this.chunkOffset += n;
114172
+ const { offset: o = 0, size: s, diskNumberStart: c } = i, { chunkOffset: l } = this, d = s === UNDEFINED_VALUE ? n : Math.min(n, s - l), f = await readUint8Array(t, o + l, d, c);
114173
+ r.enqueue(f), l + n > s || s === UNDEFINED_VALUE && !f.length && d ? r.close() : this.chunkOffset += n;
114174
114174
  }
114175
114175
  });
114176
114176
  return i;
@@ -114181,6 +114181,8 @@ class Writer extends Stream {
114181
114181
  super();
114182
114182
  const t = this, n = new WritableStream({
114183
114183
  write(i) {
114184
+ if (!t.initialized)
114185
+ throw new Error(ERR_WRITER_NOT_INITIALIZED);
114184
114186
  return t.writeUint8Array(i);
114185
114187
  }
114186
114188
  });
@@ -114286,15 +114288,23 @@ class SplitDataReader extends Reader {
114286
114288
  let s, c = i;
114287
114289
  c == -1 && (c = o.length - 1);
114288
114290
  let l = t;
114289
- for (; l >= o[c].size; )
114291
+ for (; o[c] && l >= o[c].size; )
114290
114292
  l -= o[c].size, c++;
114291
- const d = o[c], f = d.size;
114292
- if (l + n <= f)
114293
- s = await readUint8Array(d, l, n);
114294
- else {
114295
- const h = f - l;
114296
- s = new Uint8Array(n), s.set(await readUint8Array(d, l, h)), s.set(await r.readUint8Array(t + h, n - h, i), h);
114297
- }
114293
+ const d = o[c];
114294
+ if (d) {
114295
+ const f = d.size;
114296
+ if (l + n <= f)
114297
+ s = await readUint8Array(d, l, n);
114298
+ else {
114299
+ const h = f - l;
114300
+ s = new Uint8Array(n);
114301
+ const p = await readUint8Array(d, l, h);
114302
+ s.set(p, 0);
114303
+ const m = await r.readUint8Array(t + h, n - h, i);
114304
+ s.set(m, h), p.length + m.length < n && (s = s.subarray(0, p.length + m.length));
114305
+ }
114306
+ } else
114307
+ s = new Uint8Array();
114298
114308
  return r.lastDiskNumber = Math.max(c, r.lastDiskNumber), s;
114299
114309
  }
114300
114310
  }
@@ -114314,7 +114324,7 @@ class SplitDataWriter extends Stream {
114314
114324
  async write(f) {
114315
114325
  const { availableSize: h } = i;
114316
114326
  if (s)
114317
- f.length >= h ? (await l(f.slice(0, h)), await d(), i.diskOffset += r.size, i.diskNumber++, s = null, await this.write(f.slice(h))) : await l(f);
114327
+ f.length >= h ? (await l(f.subarray(0, h)), await d(), i.diskOffset += r.size, i.diskNumber++, s = null, await this.write(f.subarray(h))) : await l(f);
114318
114328
  else {
114319
114329
  const { value: p, done: m } = await t.next();
114320
114330
  if (m && !p)
@@ -114336,33 +114346,35 @@ class SplitDataWriter extends Stream {
114336
114346
  h && (await s.ready, await s.write(f), r.size += h, i.size += h, i.availableSize -= h);
114337
114347
  }
114338
114348
  async function d() {
114339
- o.size = r.size, await s.close();
114349
+ await s.close();
114340
114350
  }
114341
114351
  }
114342
114352
  }
114353
+ class GenericReader {
114354
+ constructor(t) {
114355
+ return Array.isArray(t) && (t = new SplitDataReader(t)), t instanceof ReadableStream && (t = {
114356
+ readable: t
114357
+ }), t;
114358
+ }
114359
+ }
114360
+ class GenericWriter {
114361
+ constructor(t) {
114362
+ return t.writable === UNDEFINED_VALUE && typeof t.next == FUNCTION_TYPE && (t = new SplitDataWriter(t)), t instanceof WritableStream && (t = {
114363
+ writable: t
114364
+ }), t.size === UNDEFINED_VALUE && (t.size = 0), t instanceof SplitDataWriter || Object.assign(t, {
114365
+ diskNumber: 0,
114366
+ diskOffset: 0,
114367
+ availableSize: 1 / 0,
114368
+ maxSize: 1 / 0
114369
+ }), t;
114370
+ }
114371
+ }
114343
114372
  async function initStream(e, t) {
114344
114373
  if (e.init && !e.initialized)
114345
114374
  await e.init(t);
114346
114375
  else
114347
114376
  return Promise.resolve();
114348
114377
  }
114349
- function initReader(e) {
114350
- return Array.isArray(e) && (e = new SplitDataReader(e)), e instanceof ReadableStream && (e = {
114351
- readable: e
114352
- }), e;
114353
- }
114354
- function initWriter(e) {
114355
- e.writable === UNDEFINED_VALUE && typeof e.next == FUNCTION_TYPE && (e = new SplitDataWriter(e)), e instanceof WritableStream && (e = {
114356
- writable: e
114357
- });
114358
- const { writable: t } = e;
114359
- return t.size === UNDEFINED_VALUE && (t.size = 0), e instanceof SplitDataWriter || Object.assign(e, {
114360
- diskNumber: 0,
114361
- diskOffset: 0,
114362
- availableSize: 1 / 0,
114363
- maxSize: 1 / 0
114364
- }), e;
114365
- }
114366
114378
  function readUint8Array(e, t, n, i) {
114367
114379
  return e.readUint8Array(t, n, i);
114368
114380
  }
@@ -114379,7 +114391,7 @@ function decodeCP437(e) {
114379
114391
  function decodeText(e, t) {
114380
114392
  return t && t.trim().toLowerCase() == "cp437" ? decodeCP437(e) : new TextDecoder(t).decode(e);
114381
114393
  }
114382
- const PROPERTY_NAME_FILENAME = "filename", PROPERTY_NAME_RAW_FILENAME = "rawFilename", PROPERTY_NAME_COMMENT = "comment", PROPERTY_NAME_RAW_COMMENT = "rawComment", PROPERTY_NAME_UNCOMPPRESSED_SIZE = "uncompressedSize", PROPERTY_NAME_COMPPRESSED_SIZE = "compressedSize", PROPERTY_NAME_OFFSET = "offset", PROPERTY_NAME_DISK_NUMBER_START = "diskNumberStart", PROPERTY_NAME_LAST_MODIFICATION_DATE = "lastModDate", PROPERTY_NAME_RAW_LAST_MODIFICATION_DATE = "rawLastModDate", PROPERTY_NAME_LAST_ACCESS_DATE = "lastAccessDate", PROPERTY_NAME_RAW_LAST_ACCESS_DATE = "rawLastAccessDate", PROPERTY_NAME_CREATION_DATE = "creationDate", PROPERTY_NAME_RAW_CREATION_DATE = "rawCreationDate", PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE = "internalFileAttribute", PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE = "externalFileAttribute", PROPERTY_NAME_MS_DOS_COMPATIBLE = "msDosCompatible", PROPERTY_NAME_ZIP64 = "zip64", PROPERTY_NAMES = [
114394
+ const PROPERTY_NAME_FILENAME = "filename", PROPERTY_NAME_RAW_FILENAME = "rawFilename", PROPERTY_NAME_COMMENT = "comment", PROPERTY_NAME_RAW_COMMENT = "rawComment", PROPERTY_NAME_UNCOMPPRESSED_SIZE = "uncompressedSize", PROPERTY_NAME_COMPPRESSED_SIZE = "compressedSize", PROPERTY_NAME_OFFSET = "offset", PROPERTY_NAME_DISK_NUMBER_START = "diskNumberStart", PROPERTY_NAME_LAST_MODIFICATION_DATE = "lastModDate", PROPERTY_NAME_RAW_LAST_MODIFICATION_DATE = "rawLastModDate", PROPERTY_NAME_LAST_ACCESS_DATE = "lastAccessDate", PROPERTY_NAME_RAW_LAST_ACCESS_DATE = "rawLastAccessDate", PROPERTY_NAME_CREATION_DATE = "creationDate", PROPERTY_NAME_RAW_CREATION_DATE = "rawCreationDate", PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE = "internalFileAttribute", PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTES = "internalFileAttributes", PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE = "externalFileAttribute", PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTES = "externalFileAttributes", PROPERTY_NAME_MS_DOS_COMPATIBLE = "msDosCompatible", PROPERTY_NAME_ZIP64 = "zip64", PROPERTY_NAME_ENCRYPTED = "encrypted", PROPERTY_NAME_VERSION = "version", PROPERTY_NAME_VERSION_MADE_BY = "versionMadeBy", PROPERTY_NAME_ZIPCRYPTO = "zipCrypto", PROPERTY_NAME_DIRECTORY = "directory", PROPERTY_NAME_EXECUTABLE = "executable", PROPERTY_NAMES = [
114383
114395
  PROPERTY_NAME_FILENAME,
114384
114396
  PROPERTY_NAME_RAW_FILENAME,
114385
114397
  PROPERTY_NAME_COMPPRESSED_SIZE,
@@ -114394,18 +114406,22 @@ const PROPERTY_NAME_FILENAME = "filename", PROPERTY_NAME_RAW_FILENAME = "rawFile
114394
114406
  PROPERTY_NAME_DISK_NUMBER_START,
114395
114407
  PROPERTY_NAME_DISK_NUMBER_START,
114396
114408
  PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE,
114409
+ PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTES,
114397
114410
  PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE,
114411
+ PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTES,
114398
114412
  PROPERTY_NAME_MS_DOS_COMPATIBLE,
114399
114413
  PROPERTY_NAME_ZIP64,
114400
- "directory",
114414
+ PROPERTY_NAME_ENCRYPTED,
114415
+ PROPERTY_NAME_VERSION,
114416
+ PROPERTY_NAME_VERSION_MADE_BY,
114417
+ PROPERTY_NAME_ZIPCRYPTO,
114418
+ PROPERTY_NAME_DIRECTORY,
114419
+ PROPERTY_NAME_EXECUTABLE,
114401
114420
  "bitFlag",
114402
- "encrypted",
114403
114421
  "signature",
114404
114422
  "filenameUTF8",
114405
114423
  "commentUTF8",
114406
114424
  "compressionMethod",
114407
- "version",
114408
- "versionMadeBy",
114409
114425
  "extraField",
114410
114426
  "rawExtraField",
114411
114427
  "extraFieldZip64",
@@ -114438,7 +114454,7 @@ const ERR_BAD_FORMAT = "File format is not recognized", ERR_EOCDR_NOT_FOUND = "E
114438
114454
  class ZipReader {
114439
114455
  constructor(t, n = {}) {
114440
114456
  Object.assign(this, {
114441
- reader: initReader(t),
114457
+ reader: new GenericReader(t),
114442
114458
  options: n,
114443
114459
  config: getConfiguration()
114444
114460
  });
@@ -114497,42 +114513,49 @@ class ZipReader {
114497
114513
  if (getUint32(S, x) != CENTRAL_FILE_HEADER_SIGNATURE)
114498
114514
  throw new Error(ERR_CENTRAL_DIRECTORY_NOT_FOUND);
114499
114515
  readCommonHeader(R, S, x + 6);
114500
- const L = !!R.bitFlag.languageEncodingFlag, g = x + 46, w = g + R.filenameLength, O = w + R.extraFieldLength, N = getUint16(S, x + 4), F = (N & 0) == 0, B = b.subarray(g, w), V = getUint16(S, x + 32), U = O + V, k = b.subarray(O, U), $ = L, G = L, q = F && (getUint8(S, x + 38) & FILE_ATTR_MSDOS_DIR_MASK) == FILE_ATTR_MSDOS_DIR_MASK, z = getUint32(S, x + 42) + C;
114516
+ const L = !!R.bitFlag.languageEncodingFlag, g = x + 46, w = g + R.filenameLength, O = w + R.extraFieldLength, N = getUint16(S, x + 4), F = N >> 8 == 0, B = N >> 8 == 3, V = b.subarray(g, w), U = getUint16(S, x + 32), k = O + U, $ = b.subarray(O, k), G = L, q = L, z = getUint32(S, x + 38), H = F && (getUint8(S, x + 38) & FILE_ATTR_MSDOS_DIR_MASK) == FILE_ATTR_MSDOS_DIR_MASK || B && (z >> 16 & FILE_ATTR_UNIX_TYPE_MASK) == FILE_ATTR_UNIX_TYPE_DIR || V.length && V[V.length - 1] == DIRECTORY_SIGNATURE.charCodeAt(0), K = B && (z >> 16 & FILE_ATTR_UNIX_EXECUTABLE_MASK) != 0, X = getUint32(S, x + 42) + C;
114501
114517
  Object.assign(R, {
114502
114518
  versionMadeBy: N,
114503
114519
  msDosCompatible: F,
114504
114520
  compressedSize: 0,
114505
114521
  uncompressedSize: 0,
114506
- commentLength: V,
114507
- directory: q,
114508
- offset: z,
114522
+ commentLength: U,
114523
+ directory: H,
114524
+ offset: X,
114509
114525
  diskNumberStart: getUint16(S, x + 34),
114510
- internalFileAttribute: getUint16(S, x + 36),
114511
- externalFileAttribute: getUint32(S, x + 38),
114512
- rawFilename: B,
114513
- filenameUTF8: $,
114514
- commentUTF8: G,
114515
- rawExtraField: b.subarray(w, O)
114516
- });
114517
- const H = getOptionValue$1(n, t, "decodeText") || decodeText, Q = $ ? CHARSET_UTF8 : A || CHARSET_CP437, ne = G ? CHARSET_UTF8 : D || CHARSET_CP437;
114518
- let K = H(B, Q);
114519
- K === UNDEFINED_VALUE && (K = decodeText(B, Q));
114520
- let Z = H(k, ne);
114521
- Z === UNDEFINED_VALUE && (Z = decodeText(k, ne)), Object.assign(R, {
114522
- rawComment: k,
114523
- filename: K,
114524
- comment: Z,
114525
- directory: q || K.endsWith(DIRECTORY_SIGNATURE)
114526
- }), T = Math.max(z, T), await readCommonFooter(R, R, S, x + 6);
114527
- const ee = new Entry(R);
114528
- ee.getData = (X, he) => R.getData(X, ee, he), x = U;
114529
- const { onprogress: oe } = t;
114530
- if (oe)
114526
+ internalFileAttributes: getUint16(S, x + 36),
114527
+ externalFileAttributes: z,
114528
+ rawFilename: V,
114529
+ filenameUTF8: G,
114530
+ commentUTF8: q,
114531
+ rawExtraField: b.subarray(w, O),
114532
+ executable: K
114533
+ }), R.internalFileAttribute = R.internalFileAttributes, R.externalFileAttribute = R.externalFileAttributes;
114534
+ const J = getOptionValue$1(n, t, "decodeText") || decodeText, ee = G ? CHARSET_UTF8 : A || CHARSET_CP437, te = q ? CHARSET_UTF8 : D || CHARSET_CP437;
114535
+ let oe = J(V, ee);
114536
+ oe === UNDEFINED_VALUE && (oe = decodeText(V, ee));
114537
+ let Q = J($, te);
114538
+ Q === UNDEFINED_VALUE && (Q = decodeText($, te)), Object.assign(R, {
114539
+ rawComment: $,
114540
+ filename: oe,
114541
+ comment: Q,
114542
+ directory: H || oe.endsWith(DIRECTORY_SIGNATURE)
114543
+ }), T = Math.max(X, T), readCommonFooter(R, R, S, x + 6), R.zipCrypto = R.encrypted && !R.extraFieldAES;
114544
+ const he = new Entry(R);
114545
+ he.getData = (se, _e) => R.getData(se, he, _e), he.arrayBuffer = async (se) => {
114546
+ const _e = new TransformStream(), [me] = await Promise.all([
114547
+ new Response(_e.readable).arrayBuffer(),
114548
+ R.getData(_e, he, se)
114549
+ ]);
114550
+ return me;
114551
+ }, x = k;
114552
+ const { onprogress: ue } = t;
114553
+ if (ue)
114531
114554
  try {
114532
- await oe(M + 1, y, new Entry(R));
114555
+ await ue(M + 1, y, new Entry(R));
114533
114556
  } catch {
114534
114557
  }
114535
- yield ee;
114558
+ yield he;
114536
114559
  }
114537
114560
  const P = getOptionValue$1(n, t, "extractPrependedData"), I = getOptionValue$1(n, t, "extractAppendedData");
114538
114561
  return P && (n.prependedData = T > 0 ? await readUint8Array(i, 0, T) : new Uint8Array()), n.comment = f ? await readUint8Array(i, d + END_OF_CENTRAL_DIR_LENGTH, f) : new Uint8Array(), I && (n.appendedData = h < i.size ? await readUint8Array(i, h, i.size - h) : new Uint8Array()), !0;
@@ -114567,64 +114590,64 @@ class ZipEntry {
114567
114590
  rawLastModDate: m,
114568
114591
  uncompressedSize: _,
114569
114592
  compressedSize: y
114570
- } = r, C = n.localDirectory = {}, T = await readUint8Array(o, s, 30, c), x = getDataView$1(T);
114571
- let b = getOptionValue$1(r, i, "password"), S = getOptionValue$1(r, i, "rawPassword");
114572
- if (b = b && b.length && b, S = S && S.length && S, l && l.originalCompressionMethod != COMPRESSION_METHOD_AES)
114593
+ } = r, C = n.localDirectory = {}, T = HEADER_SIZE + 4, x = await readUint8Array(o, s, T + 4, c), b = getDataView$1(x);
114594
+ let S = getOptionValue$1(r, i, "password"), E = getOptionValue$1(r, i, "rawPassword");
114595
+ const A = getOptionValue$1(r, i, "passThrough");
114596
+ if (S = S && S.length && S, E = E && E.length && E, l && l.originalCompressionMethod != COMPRESSION_METHOD_AES)
114573
114597
  throw new Error(ERR_UNSUPPORTED_COMPRESSION);
114574
- if (d != COMPRESSION_METHOD_STORE && d != COMPRESSION_METHOD_DEFLATE)
114598
+ if (d != COMPRESSION_METHOD_STORE && d != COMPRESSION_METHOD_DEFLATE && !A)
114575
114599
  throw new Error(ERR_UNSUPPORTED_COMPRESSION);
114576
- if (getUint32(x, 0) != LOCAL_FILE_HEADER_SIGNATURE)
114600
+ if (getUint32(b, 0) != LOCAL_FILE_HEADER_SIGNATURE)
114577
114601
  throw new Error(ERR_LOCAL_FILE_HEADER_NOT_FOUND);
114578
- readCommonHeader(C, x, 4), C.rawExtraField = C.extraFieldLength ? await readUint8Array(o, s + 30 + C.filenameLength, C.extraFieldLength, c) : new Uint8Array(), await readCommonFooter(r, C, x, 4, !0), Object.assign(n, {
114602
+ readCommonHeader(C, b, 4), C.rawExtraField = C.extraFieldLength ? await readUint8Array(o, s + T + C.filenameLength, C.extraFieldLength, c) : new Uint8Array(), readCommonFooter(r, C, b, 4, !0), Object.assign(n, {
114579
114603
  lastAccessDate: C.lastAccessDate,
114580
114604
  creationDate: C.creationDate
114581
114605
  });
114582
- const E = r.encrypted && C.encrypted, A = E && !l;
114583
- if (E) {
114584
- if (!A && l.strength === UNDEFINED_VALUE)
114606
+ const D = r.encrypted && C.encrypted && !A, P = D && !l;
114607
+ if (A || (n.zipCrypto = P), D) {
114608
+ if (!P && l.strength === UNDEFINED_VALUE)
114585
114609
  throw new Error(ERR_UNSUPPORTED_ENCRYPTION);
114586
- if (!b && !S)
114610
+ if (!S && !E)
114587
114611
  throw new Error(ERR_ENCRYPTED);
114588
114612
  }
114589
- const D = s + 30 + C.filenameLength + C.extraFieldLength, P = y, I = o.readable;
114590
- Object.assign(I, {
114613
+ const I = s + T + C.filenameLength + C.extraFieldLength, M = y, R = o.readable;
114614
+ Object.assign(R, {
114591
114615
  diskNumberStart: c,
114592
- offset: D,
114593
- size: P
114616
+ offset: I,
114617
+ size: M
114594
114618
  });
114595
- const M = getOptionValue$1(r, i, "signal"), R = getOptionValue$1(r, i, "checkPasswordOnly");
114596
- R && (t = new WritableStream()), t = initWriter(t), await initStream(t, _);
114597
- const { writable: L } = t, { onstart: g, onprogress: w, onend: O } = i, N = {
114619
+ const L = getOptionValue$1(r, i, "signal"), g = getOptionValue$1(r, i, "checkPasswordOnly");
114620
+ g && (t = new WritableStream()), t = new GenericWriter(t), await initStream(t, A ? y : _);
114621
+ const { writable: w } = t, { onstart: O, onprogress: N, onend: F } = i, B = {
114598
114622
  options: {
114599
114623
  codecType: CODEC_INFLATE,
114600
- password: b,
114601
- rawPassword: S,
114602
- zipCrypto: A,
114624
+ password: S,
114625
+ rawPassword: E,
114626
+ zipCrypto: P,
114603
114627
  encryptionStrength: l && l.strength,
114604
- signed: getOptionValue$1(r, i, "checkSignature"),
114605
- passwordVerification: A && (h.dataDescriptor ? m >>> 8 & 255 : p >>> 24 & 255),
114628
+ signed: getOptionValue$1(r, i, "checkSignature") && !A,
114629
+ passwordVerification: P && (h.dataDescriptor ? m >>> 8 & 255 : p >>> 24 & 255),
114606
114630
  signature: p,
114607
- compressed: d != 0,
114608
- encrypted: E,
114631
+ compressed: d != 0 && !A,
114632
+ encrypted: r.encrypted && !A,
114609
114633
  useWebWorkers: getOptionValue$1(r, i, "useWebWorkers"),
114610
114634
  useCompressionStream: getOptionValue$1(r, i, "useCompressionStream"),
114611
114635
  transferStreams: getOptionValue$1(r, i, "transferStreams"),
114612
- checkPasswordOnly: R
114636
+ checkPasswordOnly: g
114613
114637
  },
114614
114638
  config: f,
114615
- streamOptions: { signal: M, size: P, onstart: g, onprogress: w, onend: O }
114639
+ streamOptions: { signal: L, size: M, onstart: O, onprogress: N, onend: F }
114616
114640
  };
114617
- let F = 0;
114618
114641
  try {
114619
- ({ outputSize: F } = await runWorker({ readable: I, writable: L }, N));
114620
- } catch (B) {
114621
- if (!R || B.message != ERR_ABORT_CHECK_PASSWORD)
114622
- throw B;
114642
+ const { outputSize: V } = await runWorker({ readable: R, writable: w }, B);
114643
+ t.size += V;
114644
+ } catch (V) {
114645
+ if (V.outputSize !== UNDEFINED_VALUE && (t.size += V.outputSize), !g || V.message != ERR_ABORT_CHECK_PASSWORD)
114646
+ throw V;
114623
114647
  } finally {
114624
- const B = getOptionValue$1(r, i, "preventClose");
114625
- L.size += F, !B && !L.locked && await L.getWriter().close();
114648
+ !getOptionValue$1(r, i, "preventClose") && !w.locked && await w.getWriter().close();
114626
114649
  }
114627
- return R ? UNDEFINED_VALUE : t.getData ? t.getData() : L;
114650
+ return g ? UNDEFINED_VALUE : t.getData ? t.getData() : w;
114628
114651
  }
114629
114652
  }
114630
114653
  function readCommonHeader(e, t, n) {
@@ -114643,7 +114666,7 @@ function readCommonHeader(e, t, n) {
114643
114666
  extraFieldLength: getUint16(t, n + 24)
114644
114667
  });
114645
114668
  }
114646
- async function readCommonFooter(e, t, n, i, r) {
114669
+ function readCommonFooter(e, t, n, i, r) {
114647
114670
  const { rawExtraField: o } = t, s = t.extraField = /* @__PURE__ */ new Map(), c = getDataView$1(new Uint8Array(o));
114648
114671
  let l = 0;
114649
114672
  try {
@@ -114658,16 +114681,16 @@ async function readCommonFooter(e, t, n, i, r) {
114658
114681
  }
114659
114682
  const d = getUint16(n, i + 4);
114660
114683
  Object.assign(t, {
114661
- signature: getUint32(n, i + 10),
114662
- uncompressedSize: getUint32(n, i + 18),
114663
- compressedSize: getUint32(n, i + 14)
114684
+ signature: getUint32(n, i + HEADER_OFFSET_SIGNATURE),
114685
+ compressedSize: getUint32(n, i + HEADER_OFFSET_COMPRESSED_SIZE),
114686
+ uncompressedSize: getUint32(n, i + HEADER_OFFSET_UNCOMPRESSED_SIZE)
114664
114687
  });
114665
114688
  const f = s.get(EXTRAFIELD_TYPE_ZIP64);
114666
114689
  f && (readExtraFieldZip64(f, t), t.extraFieldZip64 = f);
114667
114690
  const h = s.get(EXTRAFIELD_TYPE_UNICODE_PATH);
114668
- h && (await readExtraFieldUnicode(h, PROPERTY_NAME_FILENAME, PROPERTY_NAME_RAW_FILENAME, t, e), t.extraFieldUnicodePath = h);
114691
+ h && (readExtraFieldUnicode(h, PROPERTY_NAME_FILENAME, PROPERTY_NAME_RAW_FILENAME, t, e), t.extraFieldUnicodePath = h);
114669
114692
  const p = s.get(EXTRAFIELD_TYPE_UNICODE_COMMENT);
114670
- p && (await readExtraFieldUnicode(p, PROPERTY_NAME_COMMENT, PROPERTY_NAME_RAW_COMMENT, t, e), t.extraFieldUnicodeComment = p);
114693
+ p && (readExtraFieldUnicode(p, PROPERTY_NAME_COMMENT, PROPERTY_NAME_RAW_COMMENT, t, e), t.extraFieldUnicodeComment = p);
114671
114694
  const m = s.get(EXTRAFIELD_TYPE_AES);
114672
114695
  m ? (readExtraFieldAES(m, t, d), t.extraFieldAES = m) : t.compressionMethod = d;
114673
114696
  const _ = s.get(EXTRAFIELD_TYPE_NTFS);
@@ -114689,7 +114712,7 @@ function readExtraFieldZip64(e, t) {
114689
114712
  throw new Error(ERR_EXTRAFIELD_ZIP64_NOT_FOUND);
114690
114713
  }
114691
114714
  }
114692
- async function readExtraFieldUnicode(e, t, n, i, r) {
114715
+ function readExtraFieldUnicode(e, t, n, i, r) {
114693
114716
  const o = getDataView$1(e.data), s = new Crc32();
114694
114717
  s.append(r[n]);
114695
114718
  const c = getDataView$1(new Uint8Array(4));
@@ -114795,12 +114818,12 @@ function setUint32$1(e, t, n) {
114795
114818
  function getDataView$1(e) {
114796
114819
  return new DataView(e.buffer);
114797
114820
  }
114798
- const ERR_DUPLICATED_NAME = "File already exists", ERR_INVALID_COMMENT = "Zip file comment exceeds 64KB", ERR_INVALID_ENTRY_COMMENT = "File entry comment exceeds 64KB", ERR_INVALID_ENTRY_NAME = "File entry name exceeds 64KB", ERR_INVALID_VERSION = "Version exceeds 65535", ERR_INVALID_ENCRYPTION_STRENGTH = "The strength must equal 1, 2, or 3", ERR_INVALID_EXTRAFIELD_TYPE = "Extra field type exceeds 65535", ERR_INVALID_EXTRAFIELD_DATA = "Extra field data exceeds 64KB", ERR_UNSUPPORTED_FORMAT = "Zip64 is not supported (make sure 'keepOrder' is set to 'true')", EXTRAFIELD_DATA_AES = new Uint8Array([7, 0, 2, 0, 65, 69, 3, 0, 0]);
114821
+ const ERR_DUPLICATED_NAME = "File already exists", ERR_INVALID_COMMENT = "Zip file comment exceeds 64KB", ERR_INVALID_ENTRY_COMMENT = "File entry comment exceeds 64KB", ERR_INVALID_ENTRY_NAME = "File entry name exceeds 64KB", ERR_INVALID_VERSION = "Version exceeds 65535", ERR_INVALID_ENCRYPTION_STRENGTH = "The strength must equal 1, 2, or 3", ERR_INVALID_EXTRAFIELD_TYPE = "Extra field type exceeds 65535", ERR_INVALID_EXTRAFIELD_DATA = "Extra field data exceeds 64KB", ERR_UNSUPPORTED_FORMAT = "Zip64 is not supported (make sure 'keepOrder' is set to 'true')", ERR_UNDEFINED_UNCOMPRESSED_SIZE = "Undefined uncompressed size", ERR_ZIP_NOT_EMPTY = "Zip file not empty", EXTRAFIELD_DATA_AES = new Uint8Array([7, 0, 2, 0, 65, 69, 3, 0, 0]);
114799
114822
  let workers = 0;
114800
114823
  const pendingEntries = [];
114801
114824
  class ZipWriter {
114802
114825
  constructor(t, n = {}) {
114803
- t = initWriter(t);
114826
+ t = new GenericWriter(t);
114804
114827
  const i = t.availableSize !== UNDEFINED_VALUE && t.availableSize > 0 && t.availableSize !== 1 / 0 && t.maxSize !== UNDEFINED_VALUE && t.maxSize > 0 && t.maxSize !== 1 / 0;
114805
114828
  Object.assign(this, {
114806
114829
  writer: t,
@@ -114809,12 +114832,74 @@ class ZipWriter {
114809
114832
  config: getConfiguration(),
114810
114833
  files: /* @__PURE__ */ new Map(),
114811
114834
  filenames: /* @__PURE__ */ new Set(),
114812
- offset: t.writable.size,
114835
+ offset: n.offset === UNDEFINED_VALUE ? t.size || t.writable.size || 0 : n.offset,
114813
114836
  pendingEntriesSize: 0,
114814
114837
  pendingAddFileCalls: /* @__PURE__ */ new Set(),
114815
114838
  bufferedWrites: 0
114816
114839
  });
114817
114840
  }
114841
+ async prependZip(t) {
114842
+ if (this.filenames.size)
114843
+ throw new Error(ERR_ZIP_NOT_EMPTY);
114844
+ t = new GenericReader(t);
114845
+ const n = new ZipReader(t.readable), i = await n.getEntries();
114846
+ await n.close(), await t.readable.pipeTo(this.writer.writable, { preventClose: !0, preventAbort: !0 }), this.writer.size = this.offset = t.size, this.filenames = new Set(i.map((r) => r.filename)), this.files = new Map(i.map((r) => {
114847
+ const {
114848
+ version: o,
114849
+ compressionMethod: s,
114850
+ lastModDate: c,
114851
+ lastAccessDate: l,
114852
+ creationDate: d,
114853
+ rawFilename: f,
114854
+ bitFlag: h,
114855
+ encrypted: p,
114856
+ uncompressedSize: m,
114857
+ compressedSize: _,
114858
+ diskOffset: y,
114859
+ diskNumber: C,
114860
+ zip64: T
114861
+ } = r;
114862
+ let {
114863
+ rawExtraFieldZip64: x,
114864
+ rawExtraFieldAES: b,
114865
+ rawExtraFieldExtendedTimestamp: S,
114866
+ rawExtraFieldNTFS: E,
114867
+ rawExtraField: A
114868
+ } = r;
114869
+ const { level: D, languageEncodingFlag: P, dataDescriptor: I } = h;
114870
+ x = x || new Uint8Array(), b = b || new Uint8Array(), S = S || new Uint8Array(), E = E || new Uint8Array(), A = A || new Uint8Array();
114871
+ const M = getLength(x, b, S, E, A), R = T && m > MAX_32_BITS, L = T && _ > MAX_32_BITS, {
114872
+ headerArray: g,
114873
+ headerView: w
114874
+ } = getHeaderArrayData({
114875
+ version: o,
114876
+ bitFlag: getBitFlag(D, P, I, p, s),
114877
+ compressionMethod: s,
114878
+ uncompressedSize: m,
114879
+ compressedSize: _,
114880
+ lastModDate: c,
114881
+ rawFilename: f,
114882
+ zip64CompressedSize: L,
114883
+ zip64UncompressedSize: R,
114884
+ extraFieldLength: M
114885
+ });
114886
+ return Object.assign(r, {
114887
+ zip64UncompressedSize: R,
114888
+ zip64CompressedSize: L,
114889
+ zip64Offset: T && this.offset - y > MAX_32_BITS,
114890
+ zip64DiskNumberStart: T && C > MAX_16_BITS,
114891
+ rawExtraFieldZip64: x,
114892
+ rawExtraFieldAES: b,
114893
+ rawExtraFieldExtendedTimestamp: S,
114894
+ rawExtraFieldNTFS: E,
114895
+ rawExtraField: A,
114896
+ extendedTimestamp: S.length > 0 || E.length > 0,
114897
+ extraFieldExtendedTimestampFlag: 1 + (l ? 2 : 0) + (d ? 4 : 0),
114898
+ headerArray: g,
114899
+ headerView: w
114900
+ }), [r.filename, r];
114901
+ }));
114902
+ }
114818
114903
  async add(t = "", n, i = {}) {
114819
114904
  const r = this, {
114820
114905
  pendingAddFileCalls: o,
@@ -114834,6 +114919,15 @@ class ZipWriter {
114834
114919
  l ? l() : workers--;
114835
114920
  }
114836
114921
  }
114922
+ remove(t) {
114923
+ const { filenames: n, files: i } = this;
114924
+ if (typeof t == "string" && (t = i.get(t)), t && t.filename !== UNDEFINED_VALUE) {
114925
+ const { filename: r } = t;
114926
+ if (n.has(r) && i.has(r))
114927
+ return n.delete(r), i.delete(r), !0;
114928
+ }
114929
+ return !1;
114930
+ }
114837
114931
  async close(t = new Uint8Array(), n = {}) {
114838
114932
  const i = this, { pendingAddFileCalls: r, writer: o } = this, { writable: s } = o;
114839
114933
  for (; r.size; )
@@ -114842,86 +114936,110 @@ class ZipWriter {
114842
114936
  }
114843
114937
  }
114844
114938
  async function addFile(e, t, n, i) {
114845
- t = t.trim(), i.directory && !t.endsWith(DIRECTORY_SIGNATURE) ? t += DIRECTORY_SIGNATURE : i.directory = t.endsWith(DIRECTORY_SIGNATURE);
114846
- const r = getOptionValue(e, i, "encodeText", encodeText);
114847
- let o = r(t);
114848
- if (o === UNDEFINED_VALUE && (o = encodeText(t)), getLength(o) > MAX_16_BITS)
114939
+ t = t.trim();
114940
+ const r = getOptionValue(e, i, PROPERTY_NAME_MS_DOS_COMPATIBLE), o = getOptionValue(e, i, PROPERTY_NAME_VERSION_MADE_BY, r ? 20 : 768), s = getOptionValue(e, i, PROPERTY_NAME_EXECUTABLE);
114941
+ if (o > MAX_16_BITS)
114942
+ throw new Error(ERR_INVALID_VERSION);
114943
+ let c = getOptionValue(e, i, PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTES, 0);
114944
+ c === 0 && (c = getOptionValue(e, i, PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE, 0)), !i.directory && t.endsWith(DIRECTORY_SIGNATURE) && (i.directory = !0), getOptionValue(e, i, PROPERTY_NAME_DIRECTORY) ? (t.endsWith(DIRECTORY_SIGNATURE) || (t += DIRECTORY_SIGNATURE), c === 0 && (c = FILE_ATTR_MSDOS_DIR_MASK, r || (c |= (FILE_ATTR_UNIX_TYPE_DIR | FILE_ATTR_UNIX_EXECUTABLE_MASK | FILE_ATTR_UNIX_DEFAULT_MASK) << 16))) : !r && c === 0 && (s ? c = (FILE_ATTR_UNIX_EXECUTABLE_MASK | FILE_ATTR_UNIX_DEFAULT_MASK) << 16 : c = FILE_ATTR_UNIX_DEFAULT_MASK << 16);
114945
+ const d = getOptionValue(e, i, "encodeText", encodeText);
114946
+ let f = d(t);
114947
+ if (f === UNDEFINED_VALUE && (f = encodeText(t)), getLength(f) > MAX_16_BITS)
114849
114948
  throw new Error(ERR_INVALID_ENTRY_NAME);
114850
- const s = i.comment || "";
114851
- let c = r(s);
114852
- if (c === UNDEFINED_VALUE && (c = encodeText(s)), getLength(c) > MAX_16_BITS)
114949
+ const h = i.comment || "";
114950
+ let p = d(h);
114951
+ if (p === UNDEFINED_VALUE && (p = encodeText(h)), getLength(p) > MAX_16_BITS)
114853
114952
  throw new Error(ERR_INVALID_ENTRY_COMMENT);
114854
- const l = getOptionValue(e, i, "version", VERSION_DEFLATE);
114855
- if (l > MAX_16_BITS)
114953
+ const m = getOptionValue(e, i, PROPERTY_NAME_VERSION, VERSION_DEFLATE);
114954
+ if (m > MAX_16_BITS)
114856
114955
  throw new Error(ERR_INVALID_VERSION);
114857
- const d = getOptionValue(e, i, "versionMadeBy", 20);
114858
- if (d > MAX_16_BITS)
114859
- throw new Error(ERR_INVALID_VERSION);
114860
- const f = getOptionValue(e, i, PROPERTY_NAME_LAST_MODIFICATION_DATE, /* @__PURE__ */ new Date()), h = getOptionValue(e, i, PROPERTY_NAME_LAST_ACCESS_DATE), p = getOptionValue(e, i, PROPERTY_NAME_CREATION_DATE), m = getOptionValue(e, i, PROPERTY_NAME_MS_DOS_COMPATIBLE, !0), _ = getOptionValue(e, i, PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE, 0), y = getOptionValue(e, i, PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE, 0), C = getOptionValue(e, i, "password"), T = getOptionValue(e, i, "rawPassword"), x = getOptionValue(e, i, "encryptionStrength", 3), b = getOptionValue(e, i, "zipCrypto"), S = getOptionValue(e, i, "extendedTimestamp", !0), E = getOptionValue(e, i, "keepOrder", !0), A = getOptionValue(e, i, "level"), D = getOptionValue(e, i, "useWebWorkers"), P = getOptionValue(e, i, "bufferedWrite"), I = getOptionValue(e, i, "dataDescriptorSignature", !1), M = getOptionValue(e, i, "signal"), R = getOptionValue(e, i, "useCompressionStream");
114861
- let L = getOptionValue(e, i, "dataDescriptor", !0), g = getOptionValue(e, i, PROPERTY_NAME_ZIP64);
114862
- if (C !== UNDEFINED_VALUE && x !== UNDEFINED_VALUE && (x < 1 || x > 3))
114956
+ const _ = getOptionValue(e, i, PROPERTY_NAME_LAST_MODIFICATION_DATE, /* @__PURE__ */ new Date()), y = getOptionValue(e, i, PROPERTY_NAME_LAST_ACCESS_DATE), C = getOptionValue(e, i, PROPERTY_NAME_CREATION_DATE);
114957
+ let T = getOptionValue(e, i, PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTES, 0);
114958
+ T === 0 && (T = getOptionValue(e, i, PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE, 0));
114959
+ const x = getOptionValue(e, i, "passThrough");
114960
+ let b, S;
114961
+ x || (b = getOptionValue(e, i, "password"), S = getOptionValue(e, i, "rawPassword"));
114962
+ const E = getOptionValue(e, i, "encryptionStrength", 3), A = getOptionValue(e, i, PROPERTY_NAME_ZIPCRYPTO), D = getOptionValue(e, i, "extendedTimestamp", !0), P = getOptionValue(e, i, "keepOrder", !0), I = getOptionValue(e, i, "level"), M = getOptionValue(e, i, "useWebWorkers"), R = getOptionValue(e, i, "bufferedWrite"), L = getOptionValue(e, i, "dataDescriptorSignature", !1), g = getOptionValue(e, i, "signal"), w = getOptionValue(e, i, "useUnicodeFileNames", !0), O = getOptionValue(e, i, "useCompressionStream"), N = getOptionValue(e, i, "compressionMethod");
114963
+ let F = getOptionValue(e, i, "dataDescriptor");
114964
+ R && F === UNDEFINED_VALUE && (F = !1), (F === UNDEFINED_VALUE || A) && (F = !0);
114965
+ let B = getOptionValue(e, i, PROPERTY_NAME_ZIP64);
114966
+ if (!A && (b !== UNDEFINED_VALUE || S !== UNDEFINED_VALUE) && !(E >= 1 && E <= 3))
114863
114967
  throw new Error(ERR_INVALID_ENCRYPTION_STRENGTH);
114864
- let w = new Uint8Array();
114865
- const { extraField: O } = i;
114866
- if (O) {
114867
- let oe = 0, X = 0;
114868
- O.forEach((he) => oe += 4 + getLength(he)), w = new Uint8Array(oe), O.forEach((he, de) => {
114869
- if (de > MAX_16_BITS)
114968
+ let V = new Uint8Array();
114969
+ const { extraField: U } = i;
114970
+ if (U) {
114971
+ let re = 0, xe = 0;
114972
+ U.forEach((pe) => re += 4 + getLength(pe)), V = new Uint8Array(re), U.forEach((pe, Ce) => {
114973
+ if (Ce > MAX_16_BITS)
114870
114974
  throw new Error(ERR_INVALID_EXTRAFIELD_TYPE);
114871
- if (getLength(he) > MAX_16_BITS)
114975
+ if (getLength(pe) > MAX_16_BITS)
114872
114976
  throw new Error(ERR_INVALID_EXTRAFIELD_DATA);
114873
- arraySet(w, new Uint16Array([de]), X), arraySet(w, new Uint16Array([getLength(he)]), X + 2), arraySet(w, he, X + 4), X += 4 + getLength(he);
114977
+ arraySet(V, new Uint16Array([Ce]), xe), arraySet(V, new Uint16Array([getLength(pe)]), xe + 2), arraySet(V, pe, xe + 4), xe += 4 + getLength(pe);
114874
114978
  });
114875
114979
  }
114876
- let N = 0, F = 0, B = 0;
114877
- const V = g === !0;
114878
- n && (n = initReader(n), await initStream(n), n.size === UNDEFINED_VALUE ? (L = !0, (g || g === UNDEFINED_VALUE) && (g = !0, B = N = MAX_32_BITS + 1)) : (B = n.size, N = getMaximumCompressedSize(B)));
114879
- const { diskOffset: U, diskNumber: k, maxSize: $ } = e.writer, G = V || B > MAX_32_BITS, q = V || N > MAX_32_BITS, z = V || e.offset + e.pendingEntriesSize - U > MAX_32_BITS, Q = getOptionValue(e, i, "supportZip64SplitFile", !0) && V || k + Math.ceil(e.pendingEntriesSize / $) > MAX_16_BITS;
114880
- if (z || G || q || Q) {
114881
- if (g === !1 || !E)
114980
+ let k = 0, $ = 0, G = 0;
114981
+ if (x && ({ uncompressedSize: G } = i, G === UNDEFINED_VALUE))
114982
+ throw new Error(ERR_UNDEFINED_UNCOMPRESSED_SIZE);
114983
+ const q = B === !0;
114984
+ n && (n = new GenericReader(n), await initStream(n), x ? (i.uncompressedSize = G, k = getMaximumCompressedSize(G)) : n.size === UNDEFINED_VALUE ? (F = !0, (B || B === UNDEFINED_VALUE) && (B = !0, G = k = MAX_32_BITS + 1)) : (i.uncompressedSize = G = n.size, k = getMaximumCompressedSize(G)));
114985
+ const { diskOffset: z, diskNumber: H, maxSize: K } = e.writer, X = q || G > MAX_32_BITS, J = q || k > MAX_32_BITS, ee = q || e.offset + e.pendingEntriesSize - z > MAX_32_BITS, oe = getOptionValue(e, i, "supportZip64SplitFile", !0) && q || H + Math.ceil(e.pendingEntriesSize / K) > MAX_16_BITS;
114986
+ if (ee || X || J || oe) {
114987
+ if (B === !1 || !P)
114882
114988
  throw new Error(ERR_UNSUPPORTED_FORMAT);
114883
- g = !0;
114884
- }
114885
- g = g || !1, i = Object.assign({}, i, {
114886
- rawFilename: o,
114887
- rawComment: c,
114888
- version: l,
114889
- versionMadeBy: d,
114890
- lastModDate: f,
114891
- lastAccessDate: h,
114892
- creationDate: p,
114893
- rawExtraField: w,
114894
- zip64: g,
114895
- zip64UncompressedSize: G,
114896
- zip64CompressedSize: q,
114897
- zip64Offset: z,
114898
- zip64DiskNumberStart: Q,
114899
- password: C,
114900
- rawPassword: T,
114901
- level: !R && e.config.CompressionStream === UNDEFINED_VALUE && e.config.CompressionStreamNative === UNDEFINED_VALUE ? 0 : A,
114902
- useWebWorkers: D,
114903
- encryptionStrength: x,
114904
- extendedTimestamp: S,
114905
- zipCrypto: b,
114906
- bufferedWrite: P,
114907
- keepOrder: E,
114908
- dataDescriptor: L,
114909
- dataDescriptorSignature: I,
114910
- signal: M,
114911
- msDosCompatible: m,
114912
- internalFileAttribute: _,
114913
- externalFileAttribute: y,
114914
- useCompressionStream: R
114989
+ B = !0;
114990
+ }
114991
+ B = B || !1;
114992
+ const Q = getOptionValue(e, i, PROPERTY_NAME_ENCRYPTED), { signature: he } = i;
114993
+ i = Object.assign({}, i, {
114994
+ rawFilename: f,
114995
+ rawComment: p,
114996
+ version: m,
114997
+ versionMadeBy: o,
114998
+ lastModDate: _,
114999
+ lastAccessDate: y,
115000
+ creationDate: C,
115001
+ rawExtraField: V,
115002
+ zip64: B,
115003
+ zip64UncompressedSize: X,
115004
+ zip64CompressedSize: J,
115005
+ zip64Offset: ee,
115006
+ zip64DiskNumberStart: oe,
115007
+ password: b,
115008
+ rawPassword: S,
115009
+ level: !O && e.config.CompressionStream === UNDEFINED_VALUE && e.config.CompressionStreamNative === UNDEFINED_VALUE ? 0 : I,
115010
+ useWebWorkers: M,
115011
+ encryptionStrength: E,
115012
+ extendedTimestamp: D,
115013
+ zipCrypto: A,
115014
+ bufferedWrite: R,
115015
+ keepOrder: P,
115016
+ useUnicodeFileNames: w,
115017
+ dataDescriptor: F,
115018
+ dataDescriptorSignature: L,
115019
+ signal: g,
115020
+ msDosCompatible: r,
115021
+ internalFileAttribute: T,
115022
+ internalFileAttributes: T,
115023
+ externalFileAttribute: c,
115024
+ externalFileAttributes: c,
115025
+ useCompressionStream: O,
115026
+ passThrough: x,
115027
+ encrypted: !!(b && getLength(b) || S && getLength(S)) || x && Q,
115028
+ signature: he,
115029
+ compressionMethod: N,
115030
+ uncompressedSize: G,
115031
+ offset: e.offset - z,
115032
+ diskNumberStart: H
114915
115033
  });
114916
- const ne = getHeaderInfo(i), K = getDataDescriptorInfo(i), Z = getLength(ne.localHeaderArray, K.dataDescriptorArray);
114917
- F = Z + N, e.options.usdz && (F += F + 64), e.pendingEntriesSize += F;
114918
- let ee;
115034
+ const ue = getHeaderInfo(i), se = getDataDescriptorInfo(i), _e = getLength(ue.localHeaderArray, se.dataDescriptorArray);
115035
+ $ = _e + k, e.options.usdz && ($ += $ + 64), e.pendingEntriesSize += $;
115036
+ let me;
114919
115037
  try {
114920
- ee = await getFileEntry(e, t, n, { headerInfo: ne, dataDescriptorInfo: K, metadataSize: Z }, i);
115038
+ me = await getFileEntry(e, t, n, { headerInfo: ue, dataDescriptorInfo: se, metadataSize: _e }, i);
114921
115039
  } finally {
114922
- e.pendingEntriesSize -= F;
115040
+ e.pendingEntriesSize -= $;
114923
115041
  }
114924
- return Object.assign(ee, { name: t, comment: s, extraField: O }), new Entry(ee);
115042
+ return Object.assign(me, { name: t, comment: h, extraField: U }), new Entry(me);
114925
115043
  }
114926
115044
  async function getFileEntry(e, t, n, i, r) {
114927
115045
  const {
@@ -114938,24 +115056,28 @@ async function getFileEntry(e, t, n, i, r) {
114938
115056
  o.set(t, m);
114939
115057
  try {
114940
115058
  let P;
114941
- c && (P = p && p.lock, E()), (r.bufferedWrite || e.writerLocked || e.bufferedWrites && c || !l) && !h ? (b = new TransformStream(), S = new Response(b.readable).blob(), b.writable.size = 0, _ = !0, e.bufferedWrites++, await initStream(s)) : (b = s, await A()), await initStream(b);
114942
- const { writable: I } = s;
114943
- let { diskOffset: M } = s;
115059
+ c && (P = p && p.lock, E()), (r.bufferedWrite || e.writerLocked || e.bufferedWrites && c || !l) && !h ? (b = new TransformStream(), b.size = 0, _ = !0, e.bufferedWrites++, await initStream(s)) : (b = s, await A()), await initStream(b);
115060
+ const { writable: I, diskOffset: M } = s;
114944
115061
  if (e.addSplitZipSignature) {
114945
115062
  delete e.addSplitZipSignature;
114946
- const L = new Uint8Array(4), g = getDataView(L);
114947
- setUint32(g, 0, SPLIT_ZIP_FILE_SIGNATURE), await writeData(I, L), e.offset += 4;
114948
- }
114949
- h && appendExtraFieldUSDZ(i, e.offset - M), _ || (await P, await D(I));
114950
- const { diskNumber: R } = s;
114951
- if (x = !0, m.diskNumberStart = R, m = await createFileEntry(n, b, m, i, e.config, r), x = !1, o.set(t, m), m.filename = t, _) {
114952
- await b.writable.getWriter().close();
114953
- let L = await S;
114954
- await P, await A(), T = !0, l || (L = await writeExtraHeaderInfo(m, L, I, r)), await D(I), m.diskNumberStart = s.diskNumber, M = s.diskOffset, await L.stream().pipeTo(I, { preventClose: !0, preventAbort: !0, signal: d }), I.size += L.size, T = !1;
114955
- }
114956
- if (m.offset = e.offset - M, m.zip64)
114957
- setZip64ExtraInfo(m, r);
114958
- else if (m.offset > MAX_32_BITS)
115063
+ const O = new Uint8Array(4), N = getDataView(O);
115064
+ setUint32(N, 0, SPLIT_ZIP_FILE_SIGNATURE), await writeData(s, O), e.offset += 4;
115065
+ }
115066
+ h && appendExtraFieldUSDZ(i, e.offset - M);
115067
+ const {
115068
+ localHeaderView: R,
115069
+ localHeaderArray: L
115070
+ } = f;
115071
+ _ || (await P, await D(I));
115072
+ const { diskNumber: g } = s;
115073
+ x = !0, m.diskNumberStart = g, _ ? S = new Response(b.readable).blob() : await writeData(b, L), m = await createFileEntry(n, b, m, i, e.config, r);
115074
+ const { zip64: w } = m;
115075
+ if (x = !1, o.set(t, m), m.filename = t, _) {
115076
+ const [O] = await Promise.all([S, b.writable.getWriter().close(), P]);
115077
+ await A(), T = !0, m.diskNumberStart = s.diskNumber, m.offset = e.offset - s.diskOffset, w && updateZip64ExtraField(m), updateLocalHeader(m, R), await D(I), await writeData(s, L), await O.stream().pipeTo(I, { preventClose: !0, preventAbort: !0, signal: d }), s.size += b.size, T = !1;
115078
+ } else
115079
+ m.offset = e.offset - M, w && updateZip64ExtraField(m);
115080
+ if (m.offset > MAX_32_BITS && !w)
114959
115081
  throw new Error(ERR_UNSUPPORTED_FORMAT);
114960
115082
  return e.offset += m.size, m;
114961
115083
  } catch (P) {
@@ -114965,7 +115087,7 @@ async function getFileEntry(e, t, n, i, r) {
114965
115087
  P.corruptedEntry = !0;
114966
115088
  } catch {
114967
115089
  }
114968
- _ ? e.offset += b.writable.size : e.offset = b.writable.size;
115090
+ _ ? e.offset += b.size : e.offset = b.size;
114969
115091
  }
114970
115092
  throw o.delete(t), P;
114971
115093
  } finally {
@@ -114991,125 +115113,134 @@ async function createFileEntry(e, t, { diskNumberStart: n, lock: i }, r, o, s) {
114991
115113
  dataDescriptorInfo: l,
114992
115114
  metadataSize: d
114993
115115
  } = r, {
114994
- localHeaderArray: f,
114995
- headerArray: h,
115116
+ headerArray: f,
115117
+ headerView: h,
114996
115118
  lastModDate: p,
114997
115119
  rawLastModDate: m,
114998
115120
  encrypted: _,
114999
115121
  compressed: y,
115000
115122
  version: C,
115001
115123
  compressionMethod: T,
115002
- rawExtraFieldExtendedTimestamp: x,
115003
- extraFieldExtendedTimestampFlag: b,
115004
- rawExtraFieldNTFS: S,
115005
- rawExtraFieldAES: E
115006
- } = c, { dataDescriptorArray: A } = l, {
115007
- rawFilename: D,
115008
- lastAccessDate: P,
115009
- creationDate: I,
115010
- password: M,
115011
- rawPassword: R,
115012
- level: L,
115013
- zip64: g,
115014
- zip64UncompressedSize: w,
115015
- zip64CompressedSize: O,
115016
- zip64Offset: N,
115017
- zip64DiskNumberStart: F,
115018
- zipCrypto: B,
115019
- dataDescriptor: V,
115020
- directory: U,
115021
- versionMadeBy: k,
115022
- rawComment: $,
115023
- rawExtraField: G,
115024
- useWebWorkers: q,
115025
- onstart: z,
115026
- onprogress: H,
115027
- onend: Q,
115028
- signal: ne,
115029
- encryptionStrength: K,
115030
- extendedTimestamp: Z,
115031
- msDosCompatible: ee,
115032
- internalFileAttribute: oe,
115033
- externalFileAttribute: X,
115034
- useCompressionStream: he
115035
- } = s, de = {
115124
+ rawExtraFieldZip64: x,
115125
+ localExtraFieldZip64Length: b,
115126
+ rawExtraFieldExtendedTimestamp: S,
115127
+ extraFieldExtendedTimestampFlag: E,
115128
+ rawExtraFieldNTFS: A,
115129
+ rawExtraFieldAES: D
115130
+ } = c, { dataDescriptorArray: P } = l, {
115131
+ rawFilename: I,
115132
+ lastAccessDate: M,
115133
+ creationDate: R,
115134
+ password: L,
115135
+ rawPassword: g,
115136
+ level: w,
115137
+ zip64: O,
115138
+ zip64UncompressedSize: N,
115139
+ zip64CompressedSize: F,
115140
+ zip64Offset: B,
115141
+ zip64DiskNumberStart: V,
115142
+ zipCrypto: U,
115143
+ dataDescriptor: k,
115144
+ directory: $,
115145
+ executable: G,
115146
+ versionMadeBy: q,
115147
+ rawComment: z,
115148
+ rawExtraField: H,
115149
+ useWebWorkers: K,
115150
+ onstart: X,
115151
+ onprogress: J,
115152
+ onend: ee,
115153
+ signal: te,
115154
+ encryptionStrength: oe,
115155
+ extendedTimestamp: Q,
115156
+ msDosCompatible: he,
115157
+ internalFileAttributes: ue,
115158
+ externalFileAttributes: se,
115159
+ useCompressionStream: _e,
115160
+ passThrough: me
115161
+ } = s, re = {
115036
115162
  lock: i,
115037
- versionMadeBy: k,
115038
- zip64: g,
115039
- directory: !!U,
115163
+ versionMadeBy: q,
115164
+ zip64: O,
115165
+ directory: !!$,
115166
+ executable: !!G,
115040
115167
  filenameUTF8: !0,
115041
- rawFilename: D,
115168
+ rawFilename: I,
115042
115169
  commentUTF8: !0,
115043
- rawComment: $,
115044
- rawExtraFieldExtendedTimestamp: x,
115045
- rawExtraFieldNTFS: S,
115046
- rawExtraFieldAES: E,
115047
- rawExtraField: G,
115048
- extendedTimestamp: Z,
115049
- msDosCompatible: ee,
115050
- internalFileAttribute: oe,
115051
- externalFileAttribute: X,
115170
+ rawComment: z,
115171
+ rawExtraFieldZip64: x,
115172
+ localExtraFieldZip64Length: b,
115173
+ rawExtraFieldExtendedTimestamp: S,
115174
+ rawExtraFieldNTFS: A,
115175
+ rawExtraFieldAES: D,
115176
+ rawExtraField: H,
115177
+ extendedTimestamp: Q,
115178
+ msDosCompatible: he,
115179
+ internalFileAttributes: ue,
115180
+ externalFileAttributes: se,
115052
115181
  diskNumberStart: n
115053
115182
  };
115054
- let ce = 0, _e = 0, ge;
115055
- const { writable: re } = t;
115183
+ let {
115184
+ signature: xe,
115185
+ uncompressedSize: pe
115186
+ } = s, Ce = 0;
115187
+ me || (pe = 0);
115188
+ const { writable: be } = t;
115056
115189
  if (e) {
115057
- e.chunkSize = getChunkSize(o), await writeData(re, f);
115058
- const pe = e.readable, Te = pe.size = e.size, xe = {
115190
+ e.chunkSize = getChunkSize(o);
115191
+ const W = e.readable, j = e.size, ce = {
115059
115192
  options: {
115060
115193
  codecType: CODEC_DEFLATE,
115061
- level: L,
115062
- rawPassword: R,
115063
- password: M,
115064
- encryptionStrength: K,
115065
- zipCrypto: _ && B,
115066
- passwordVerification: _ && B && m >> 8 & 255,
115067
- signed: !0,
115068
- compressed: y,
115069
- encrypted: _,
115070
- useWebWorkers: q,
115071
- useCompressionStream: he,
115194
+ level: w,
115195
+ rawPassword: g,
115196
+ password: L,
115197
+ encryptionStrength: oe,
115198
+ zipCrypto: _ && U,
115199
+ passwordVerification: _ && U && m >> 8 & 255,
115200
+ signed: !me,
115201
+ compressed: y && !me,
115202
+ encrypted: _ && !me,
115203
+ useWebWorkers: K,
115204
+ useCompressionStream: _e,
115072
115205
  transferStreams: !1
115073
115206
  },
115074
115207
  config: o,
115075
- streamOptions: { signal: ne, size: Te, onstart: z, onprogress: H, onend: Q }
115076
- }, W = await runWorker({ readable: pe, writable: re }, xe);
115077
- _e = W.inputSize, ce = W.outputSize, ge = W.signature, re.size += _e;
115078
- } else
115079
- await writeData(re, f);
115080
- let Se;
115081
- if (g) {
115082
- let pe = 4;
115083
- w && (pe += 8), O && (pe += 8), N && (pe += 8), F && (pe += 4), Se = new Uint8Array(pe);
115084
- } else
115085
- Se = new Uint8Array();
115208
+ streamOptions: { signal: te, size: j, onstart: X, onprogress: J, onend: ee }
115209
+ };
115210
+ try {
115211
+ const Ee = await runWorker({ readable: W, writable: be }, ce);
115212
+ Ce = Ee.outputSize, t.size += Ce, me || (pe = Ee.inputSize, xe = Ee.signature);
115213
+ } catch (Ee) {
115214
+ throw Ee.outputSize !== UNDEFINED_VALUE && (t.size += Ee.outputSize), Ee;
115215
+ }
115216
+ }
115086
115217
  return setEntryInfo({
115087
- signature: ge,
115088
- rawExtraFieldZip64: Se,
115089
- compressedSize: ce,
115090
- uncompressedSize: _e,
115218
+ signature: xe,
115219
+ compressedSize: Ce,
115220
+ uncompressedSize: pe,
115091
115221
  headerInfo: c,
115092
115222
  dataDescriptorInfo: l
115093
- }, s), V && await writeData(re, A), Object.assign(de, {
115094
- uncompressedSize: _e,
115095
- compressedSize: ce,
115223
+ }, s), k && await writeData(t, P), Object.assign(re, {
115224
+ uncompressedSize: pe,
115225
+ compressedSize: Ce,
115096
115226
  lastModDate: p,
115097
115227
  rawLastModDate: m,
115098
- creationDate: I,
115099
- lastAccessDate: P,
115228
+ creationDate: R,
115229
+ lastAccessDate: M,
115100
115230
  encrypted: _,
115101
- size: d + ce,
115231
+ zipCrypto: U,
115232
+ size: d + Ce,
115102
115233
  compressionMethod: T,
115103
115234
  version: C,
115104
- headerArray: h,
115105
- signature: ge,
115106
- rawExtraFieldZip64: Se,
115107
- extraFieldExtendedTimestampFlag: b,
115108
- zip64UncompressedSize: w,
115109
- zip64CompressedSize: O,
115110
- zip64Offset: N,
115111
- zip64DiskNumberStart: F
115112
- }), de;
115235
+ headerArray: f,
115236
+ headerView: h,
115237
+ signature: xe,
115238
+ extraFieldExtendedTimestampFlag: E,
115239
+ zip64UncompressedSize: N,
115240
+ zip64CompressedSize: F,
115241
+ zip64Offset: B,
115242
+ zip64DiskNumberStart: V
115243
+ }), re;
115113
115244
  }
115114
115245
  function getHeaderInfo(e) {
115115
115246
  const {
@@ -115117,69 +115248,99 @@ function getHeaderInfo(e) {
115117
115248
  lastModDate: n,
115118
115249
  lastAccessDate: i,
115119
115250
  creationDate: r,
115120
- rawPassword: o,
115121
- password: s,
115122
- level: c,
115123
- zip64: l,
115124
- zipCrypto: d,
115125
- dataDescriptor: f,
115126
- directory: h,
115127
- rawExtraField: p,
115128
- encryptionStrength: m,
115129
- extendedTimestamp: _
115130
- } = e, y = c !== 0 && !h, C = !!(s && getLength(s) || o && getLength(o));
115131
- let T = e.version, x;
115132
- if (C && !d) {
115133
- x = new Uint8Array(getLength(EXTRAFIELD_DATA_AES) + 2);
115134
- const F = getDataView(x);
115135
- setUint16(F, 0, EXTRAFIELD_TYPE_AES), arraySet(x, EXTRAFIELD_DATA_AES, 2), setUint8(F, 8, m);
115251
+ level: o,
115252
+ zip64: s,
115253
+ zipCrypto: c,
115254
+ useUnicodeFileNames: l,
115255
+ dataDescriptor: d,
115256
+ directory: f,
115257
+ rawExtraField: h,
115258
+ encryptionStrength: p,
115259
+ extendedTimestamp: m,
115260
+ passThrough: _,
115261
+ encrypted: y,
115262
+ zip64UncompressedSize: C,
115263
+ zip64CompressedSize: T,
115264
+ zip64Offset: x,
115265
+ zip64DiskNumberStart: b,
115266
+ uncompressedSize: S,
115267
+ offset: E,
115268
+ diskNumberStart: A
115269
+ } = e;
115270
+ let { version: D, compressionMethod: P } = e;
115271
+ const I = !f && (o > 0 || o === UNDEFINED_VALUE && P !== 0);
115272
+ let M;
115273
+ const R = _ || !I, L = s && (e.bufferedWrite || !C && !T || R);
115274
+ if (s) {
115275
+ let z = 4;
115276
+ C && (z += 8), T && (z += 8), x && (z += 8), b && (z += 4), M = new Uint8Array(z);
115277
+ const H = getDataView(M);
115278
+ if (setUint16(H, 0, EXTRAFIELD_TYPE_ZIP64), setUint16(H, 2, getLength(M) - 4), L) {
115279
+ const K = getDataView(M);
115280
+ let X = 4;
115281
+ C && (setBigUint64(K, X, BigInt(S)), X += 8), T && R && (setBigUint64(K, X, BigInt(S)), X += 8), x && (setBigUint64(K, X, BigInt(E)), X += 8), b && (setUint32(K, X, A), X += 4);
115282
+ }
115136
115283
  } else
115137
- x = new Uint8Array();
115138
- let b, S, E;
115139
- if (_) {
115140
- S = new Uint8Array(9 + (i ? 4 : 0) + (r ? 4 : 0));
115141
- const F = getDataView(S);
115142
- setUint16(F, 0, EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP), setUint16(F, 2, getLength(S) - 4), E = 1 + (i ? 2 : 0) + (r ? 4 : 0), setUint8(F, 4, E);
115143
- let B = 5;
115144
- setUint32(F, B, Math.floor(n.getTime() / 1e3)), B += 4, i && (setUint32(F, B, Math.floor(i.getTime() / 1e3)), B += 4), r && setUint32(F, B, Math.floor(r.getTime() / 1e3));
115284
+ M = new Uint8Array();
115285
+ let g;
115286
+ if (y && !c) {
115287
+ g = new Uint8Array(getLength(EXTRAFIELD_DATA_AES) + 2);
115288
+ const z = getDataView(g);
115289
+ setUint16(z, 0, EXTRAFIELD_TYPE_AES), arraySet(g, EXTRAFIELD_DATA_AES, 2), setUint8(z, 8, p);
115290
+ } else
115291
+ g = new Uint8Array();
115292
+ let w, O, N;
115293
+ if (m) {
115294
+ O = new Uint8Array(9 + (i ? 4 : 0) + (r ? 4 : 0));
115295
+ const z = getDataView(O);
115296
+ setUint16(z, 0, EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP), setUint16(z, 2, getLength(O) - 4), N = 1 + (i ? 2 : 0) + (r ? 4 : 0), setUint8(z, 4, N);
115297
+ let H = 5;
115298
+ setUint32(z, H, Math.floor(n.getTime() / 1e3)), H += 4, i && (setUint32(z, H, Math.floor(i.getTime() / 1e3)), H += 4), r && setUint32(z, H, Math.floor(r.getTime() / 1e3));
115145
115299
  try {
115146
- b = new Uint8Array(36);
115147
- const V = getDataView(b), U = getTimeNTFS(n);
115148
- setUint16(V, 0, EXTRAFIELD_TYPE_NTFS), setUint16(V, 2, 32), setUint16(V, 8, EXTRAFIELD_TYPE_NTFS_TAG1), setUint16(V, 10, 24), setBigUint64(V, 12, U), setBigUint64(V, 20, getTimeNTFS(i) || U), setBigUint64(V, 28, getTimeNTFS(r) || U);
115300
+ w = new Uint8Array(36);
115301
+ const K = getDataView(w), X = getTimeNTFS(n);
115302
+ setUint16(K, 0, EXTRAFIELD_TYPE_NTFS), setUint16(K, 2, 32), setUint16(K, 8, EXTRAFIELD_TYPE_NTFS_TAG1), setUint16(K, 10, 24), setBigUint64(K, 12, X), setBigUint64(K, 20, getTimeNTFS(i) || X), setBigUint64(K, 28, getTimeNTFS(r) || X);
115149
115303
  } catch {
115150
- b = new Uint8Array();
115304
+ w = new Uint8Array();
115151
115305
  }
115152
115306
  } else
115153
- b = S = new Uint8Array();
115154
- let A = BITFLAG_LANG_ENCODING_FLAG;
115155
- f && (A = A | BITFLAG_DATA_DESCRIPTOR);
115156
- let D = COMPRESSION_METHOD_STORE;
115157
- y && (D = COMPRESSION_METHOD_DEFLATE), l && (T = T > VERSION_ZIP64 ? T : VERSION_ZIP64), C && (A = A | BITFLAG_ENCRYPTED, d || (T = T > VERSION_AES ? T : VERSION_AES, D = COMPRESSION_METHOD_AES, y && (x[9] = COMPRESSION_METHOD_DEFLATE)));
115158
- const P = new Uint8Array(26), I = getDataView(P);
115159
- setUint16(I, 0, T), setUint16(I, 2, A), setUint16(I, 4, D);
115160
- const M = new Uint32Array(1), R = getDataView(M);
115161
- let L;
115162
- n < MIN_DATE ? L = MIN_DATE : n > MAX_DATE ? L = MAX_DATE : L = n, setUint16(R, 0, (L.getHours() << 6 | L.getMinutes()) << 5 | L.getSeconds() / 2), setUint16(R, 2, (L.getFullYear() - 1980 << 4 | L.getMonth() + 1) << 5 | L.getDate());
115163
- const g = M[0];
115164
- setUint32(I, 6, g), setUint16(I, 22, getLength(t));
115165
- const w = getLength(x, S, b, p);
115166
- setUint16(I, 24, w);
115167
- const O = new Uint8Array(30 + getLength(t) + w), N = getDataView(O);
115168
- return setUint32(N, 0, LOCAL_FILE_HEADER_SIGNATURE), arraySet(O, P, 4), arraySet(O, t, 30), arraySet(O, x, 30 + getLength(t)), arraySet(O, S, 30 + getLength(t, x)), arraySet(O, b, 30 + getLength(t, x, S)), arraySet(O, p, 30 + getLength(t, x, S, b)), {
115169
- localHeaderArray: O,
115170
- headerArray: P,
115171
- headerView: I,
115307
+ w = O = new Uint8Array();
115308
+ P === UNDEFINED_VALUE && (P = I ? COMPRESSION_METHOD_DEFLATE : COMPRESSION_METHOD_STORE), s && (D = D > VERSION_ZIP64 ? D : VERSION_ZIP64), y && !c && (D = D > VERSION_AES ? D : VERSION_AES, g[9] = P, P = COMPRESSION_METHOD_AES);
115309
+ const F = L ? getLength(M) : 0, B = F + getLength(g, O, w, h), {
115310
+ headerArray: V,
115311
+ headerView: U,
115312
+ rawLastModDate: k
115313
+ } = getHeaderArrayData({
115314
+ version: D,
115315
+ bitFlag: getBitFlag(o, l, d, y, P),
115316
+ compressionMethod: P,
115317
+ uncompressedSize: S,
115318
+ lastModDate: n < MIN_DATE ? MIN_DATE : n > MAX_DATE ? MAX_DATE : n,
115319
+ rawFilename: t,
115320
+ zip64CompressedSize: T,
115321
+ zip64UncompressedSize: C,
115322
+ extraFieldLength: B
115323
+ });
115324
+ let $ = HEADER_SIZE + 4;
115325
+ const G = new Uint8Array($ + getLength(t) + B), q = getDataView(G);
115326
+ return setUint32(q, 0, LOCAL_FILE_HEADER_SIGNATURE), arraySet(G, V, 4), arraySet(G, t, $), $ += getLength(t), L && arraySet(G, M, $), $ += F, arraySet(G, g, $), $ += getLength(g), arraySet(G, O, $), $ += getLength(O), arraySet(G, w, $), $ += getLength(w), arraySet(G, h, $), {
115327
+ localHeaderArray: G,
115328
+ localHeaderView: q,
115329
+ headerArray: V,
115330
+ headerView: U,
115172
115331
  lastModDate: n,
115173
- rawLastModDate: g,
115174
- encrypted: C,
115175
- compressed: y,
115176
- version: T,
115177
- compressionMethod: D,
115178
- extraFieldExtendedTimestampFlag: E,
115179
- rawExtraFieldExtendedTimestamp: S,
115180
- rawExtraFieldNTFS: b,
115181
- rawExtraFieldAES: x,
115182
- extraFieldLength: w
115332
+ rawLastModDate: k,
115333
+ encrypted: y,
115334
+ compressed: I,
115335
+ version: D,
115336
+ compressionMethod: P,
115337
+ extraFieldExtendedTimestampFlag: N,
115338
+ rawExtraFieldZip64: M,
115339
+ localExtraFieldZip64Length: F,
115340
+ rawExtraFieldExtendedTimestamp: O,
115341
+ rawExtraFieldNTFS: w,
115342
+ rawExtraFieldAES: g,
115343
+ extraFieldLength: B
115183
115344
  };
115184
115345
  }
115185
115346
  function appendExtraFieldUSDZ(e, t) {
@@ -115191,155 +115352,167 @@ function appendExtraFieldUSDZ(e, t) {
115191
115352
  const d = i;
115192
115353
  n.localHeaderArray = i = new Uint8Array(getLength(d) + s), arraySet(i, d), arraySet(i, c, getLength(d)), o = getDataView(i), setUint16(o, 28, r + s), e.metadataSize += s;
115193
115354
  }
115194
- function getDataDescriptorInfo(e) {
115195
- const {
115196
- zip64: t,
115197
- dataDescriptor: n,
115198
- dataDescriptorSignature: i
115199
- } = e;
115200
- let r = new Uint8Array(), o, s = 0;
115201
- return n && (r = new Uint8Array(t ? i ? 24 : 20 : i ? 16 : 12), o = getDataView(r), i && (s = 4, setUint32(o, 0, DATA_DESCRIPTOR_RECORD_SIGNATURE))), {
115202
- dataDescriptorArray: r,
115203
- dataDescriptorView: o,
115204
- dataDescriptorOffset: s
115355
+ function getDataDescriptorInfo({
115356
+ zip64: e,
115357
+ dataDescriptor: t,
115358
+ dataDescriptorSignature: n
115359
+ }) {
115360
+ let i = new Uint8Array(), r, o = 0;
115361
+ return t && (i = new Uint8Array(e ? n ? 24 : 20 : n ? 16 : 12), r = getDataView(i), n && (o = 4, setUint32(r, 0, DATA_DESCRIPTOR_RECORD_SIGNATURE))), {
115362
+ dataDescriptorArray: i,
115363
+ dataDescriptorView: r,
115364
+ dataDescriptorOffset: o
115205
115365
  };
115206
115366
  }
115207
- function setEntryInfo(e, t) {
115367
+ function setEntryInfo({
115368
+ signature: e,
115369
+ compressedSize: t,
115370
+ uncompressedSize: n,
115371
+ headerInfo: i,
115372
+ dataDescriptorInfo: r
115373
+ }, {
115374
+ zip64: o,
115375
+ zipCrypto: s,
115376
+ dataDescriptor: c
115377
+ }) {
115208
115378
  const {
115209
- signature: n,
115210
- rawExtraFieldZip64: i,
115211
- compressedSize: r,
115212
- uncompressedSize: o,
115213
- headerInfo: s,
115214
- dataDescriptorInfo: c
115215
- } = e, {
115216
115379
  headerView: l,
115217
115380
  encrypted: d
115218
- } = s, {
115381
+ } = i, {
115219
115382
  dataDescriptorView: f,
115220
115383
  dataDescriptorOffset: h
115221
- } = c, {
115222
- zip64: p,
115223
- zip64UncompressedSize: m,
115224
- zip64CompressedSize: _,
115225
- zipCrypto: y,
115226
- dataDescriptor: C
115227
- } = t;
115228
- if ((!d || y) && n !== UNDEFINED_VALUE && (setUint32(l, 10, n), C && setUint32(f, h, n)), p) {
115229
- const T = getDataView(i);
115230
- setUint16(T, 0, EXTRAFIELD_TYPE_ZIP64), setUint16(T, 2, getLength(i) - 4);
115231
- let x = 4;
115232
- m && (setUint32(l, 18, MAX_32_BITS), setBigUint64(T, x, BigInt(o)), x += 8), _ && (setUint32(l, 14, MAX_32_BITS), setBigUint64(T, x, BigInt(r))), C && (setBigUint64(f, h + 4, BigInt(r)), setBigUint64(f, h + 12, BigInt(o)));
115233
- } else
115234
- setUint32(l, 14, r), setUint32(l, 18, o), C && (setUint32(f, h + 4, r), setUint32(f, h + 8, o));
115235
- }
115236
- async function writeExtraHeaderInfo(e, t, n, { zipCrypto: i }) {
115237
- let r;
115238
- r = await t.slice(0, 26).arrayBuffer(), r.byteLength != 26 && (r = r.slice(0, 26));
115239
- const o = new DataView(r);
115240
- return (!e.encrypted || i) && setUint32(o, 14, e.signature), e.zip64 ? (setUint32(o, 18, MAX_32_BITS), setUint32(o, 22, MAX_32_BITS)) : (setUint32(o, 18, e.compressedSize), setUint32(o, 22, e.uncompressedSize)), await writeData(n, new Uint8Array(r)), t.slice(r.byteLength);
115241
- }
115242
- function setZip64ExtraInfo(e, t) {
115243
- const { rawExtraFieldZip64: n, offset: i, diskNumberStart: r } = e, { zip64UncompressedSize: o, zip64CompressedSize: s, zip64Offset: c, zip64DiskNumberStart: l } = t, d = getDataView(n);
115384
+ } = r;
115385
+ (!d || s) && e !== UNDEFINED_VALUE && (setUint32(l, HEADER_OFFSET_SIGNATURE, e), c && setUint32(f, h, e)), o ? c && (setBigUint64(f, h + 4, BigInt(t)), setBigUint64(f, h + 12, BigInt(n))) : (setUint32(l, HEADER_OFFSET_COMPRESSED_SIZE, t), setUint32(l, HEADER_OFFSET_UNCOMPRESSED_SIZE, n), c && (setUint32(f, h + 4, t), setUint32(f, h + 8, n)));
115386
+ }
115387
+ function updateLocalHeader({
115388
+ rawFilename: e,
115389
+ dataDescriptor: t,
115390
+ encrypted: n,
115391
+ zip64: i,
115392
+ localExtraFieldZip64Length: r,
115393
+ signature: o,
115394
+ compressedSize: s,
115395
+ uncompressedSize: c,
115396
+ offset: l,
115397
+ diskNumberStart: d,
115398
+ zip64UncompressedSize: f,
115399
+ zip64CompressedSize: h,
115400
+ zip64Offset: p,
115401
+ zip64DiskNumberStart: m
115402
+ }, _) {
115403
+ if (t || (n || setUint32(_, HEADER_OFFSET_SIGNATURE + 4, o), i || (setUint32(_, HEADER_OFFSET_COMPRESSED_SIZE + 4, s), setUint32(_, HEADER_OFFSET_UNCOMPRESSED_SIZE + 4, c))), i && r) {
115404
+ let y = HEADER_SIZE + 4 + getLength(e) + 4;
115405
+ f && (setBigUint64(_, y, BigInt(c)), y += 8), h && (setBigUint64(_, y, BigInt(s)), y += 8), p && (setBigUint64(_, y, BigInt(l)), y += 8), m && setUint32(_, y, d);
115406
+ }
115407
+ }
115408
+ function updateZip64ExtraField({
115409
+ compressedSize: e,
115410
+ uncompressedSize: t,
115411
+ offset: n,
115412
+ diskNumberStart: i,
115413
+ zip64UncompressedSize: r,
115414
+ zip64CompressedSize: o,
115415
+ zip64Offset: s,
115416
+ zip64DiskNumberStart: c,
115417
+ rawExtraFieldZip64: l
115418
+ }) {
115419
+ const d = getDataView(l);
115244
115420
  let f = 4;
115245
- o && (f += 8), s && (f += 8), c && (setBigUint64(d, f, BigInt(i)), f += 8), l && setUint32(d, f, r);
115421
+ r && (setBigUint64(d, f, BigInt(t)), f += 8), o && (setBigUint64(d, f, BigInt(e)), f += 8), s && (setBigUint64(d, f, BigInt(n)), f += 8), c && setUint32(d, f, i);
115246
115422
  }
115247
115423
  async function closeFile(e, t, n) {
115248
- const { files: i, writer: r } = e, { diskOffset: o, writable: s } = r;
115249
- let { diskNumber: c } = r, l = 0, d = 0, f = e.offset - o, h = i.size;
115250
- for (const [, E] of i) {
115424
+ const { files: i, writer: r } = e, { diskOffset: o } = r;
115425
+ let { diskNumber: s } = r, c = 0, l = 0, d = e.offset - o, f = i.size;
115426
+ for (const [, S] of i) {
115251
115427
  const {
115252
- rawFilename: A,
115253
- rawExtraFieldZip64: D,
115254
- rawExtraFieldAES: P,
115255
- rawComment: I,
115256
- rawExtraFieldNTFS: M,
115257
- rawExtraField: R,
115258
- extendedTimestamp: L,
115259
- extraFieldExtendedTimestampFlag: g,
115260
- lastModDate: w
115261
- } = E;
115262
- let O;
115263
- if (L) {
115264
- O = new Uint8Array(9);
115265
- const N = getDataView(O);
115266
- setUint16(N, 0, EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP), setUint16(N, 2, 5), setUint8(N, 4, g), setUint32(N, 5, Math.floor(w.getTime() / 1e3));
115428
+ rawFilename: E,
115429
+ rawExtraFieldZip64: A,
115430
+ rawExtraFieldAES: D,
115431
+ rawComment: P,
115432
+ rawExtraFieldNTFS: I,
115433
+ rawExtraField: M,
115434
+ extendedTimestamp: R,
115435
+ extraFieldExtendedTimestampFlag: L,
115436
+ lastModDate: g
115437
+ } = S;
115438
+ let w;
115439
+ if (R) {
115440
+ w = new Uint8Array(9);
115441
+ const O = getDataView(w);
115442
+ setUint16(O, 0, EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP), setUint16(O, 2, 5), setUint8(O, 4, L), setUint32(O, 5, Math.floor(g.getTime() / 1e3));
115267
115443
  } else
115268
- O = new Uint8Array();
115269
- E.rawExtraFieldCDExtendedTimestamp = O, d += 46 + getLength(
115444
+ w = new Uint8Array();
115445
+ S.rawExtraFieldExtendedTimestamp = w, l += 46 + getLength(
115446
+ E,
115447
+ P,
115270
115448
  A,
115271
- I,
115272
115449
  D,
115273
- P,
115274
- M,
115275
- O,
115276
- R
115450
+ I,
115451
+ w,
115452
+ M
115277
115453
  );
115278
115454
  }
115279
- const p = new Uint8Array(d), m = getDataView(p);
115455
+ const h = new Uint8Array(l), p = getDataView(h);
115280
115456
  await initStream(r);
115281
- let _ = 0;
115282
- for (const [E, A] of Array.from(i.values()).entries()) {
115457
+ let m = 0;
115458
+ for (const [S, E] of Array.from(i.values()).entries()) {
115283
115459
  const {
115284
- offset: D,
115285
- rawFilename: P,
115286
- rawExtraFieldZip64: I,
115287
- rawExtraFieldAES: M,
115288
- rawExtraFieldCDExtendedTimestamp: R,
115289
- rawExtraFieldNTFS: L,
115290
- rawExtraField: g,
115291
- rawComment: w,
115292
- versionMadeBy: O,
115293
- headerArray: N,
115294
- directory: F,
115295
- zip64: B,
115296
- zip64UncompressedSize: V,
115297
- zip64CompressedSize: U,
115298
- zip64DiskNumberStart: k,
115299
- zip64Offset: $,
115300
- msDosCompatible: G,
115301
- internalFileAttribute: q,
115302
- externalFileAttribute: z,
115303
- diskNumberStart: H,
115304
- uncompressedSize: Q,
115305
- compressedSize: ne
115306
- } = A, K = getLength(I, M, R, L, g);
115307
- setUint32(m, l, CENTRAL_FILE_HEADER_SIGNATURE), setUint16(m, l + 4, O);
115308
- const Z = getDataView(N);
115309
- V || setUint32(Z, 18, Q), U || setUint32(Z, 14, ne), arraySet(p, N, l + 6), setUint16(m, l + 30, K), setUint16(m, l + 32, getLength(w)), setUint16(m, l + 34, B && k ? MAX_16_BITS : H), setUint16(m, l + 36, q), z ? setUint32(m, l + 38, z) : F && G && setUint8(m, l + 38, FILE_ATTR_MSDOS_DIR_MASK), setUint32(m, l + 42, B && $ ? MAX_32_BITS : D), arraySet(p, P, l + 46), arraySet(p, I, l + 46 + getLength(P)), arraySet(p, M, l + 46 + getLength(P, I)), arraySet(p, R, l + 46 + getLength(P, I, M)), arraySet(p, L, l + 46 + getLength(P, I, M, R)), arraySet(p, g, l + 46 + getLength(P, I, M, R, L)), arraySet(p, w, l + 46 + getLength(P) + K);
115310
- const ee = 46 + getLength(P, w) + K;
115311
- if (l - _ > r.availableSize && (r.availableSize = 0, await writeData(s, p.slice(_, l)), _ = l), l += ee, n.onprogress)
115460
+ offset: A,
115461
+ rawFilename: D,
115462
+ rawExtraFieldZip64: P,
115463
+ rawExtraFieldAES: I,
115464
+ rawExtraFieldExtendedTimestamp: M,
115465
+ rawExtraFieldNTFS: R,
115466
+ rawExtraField: L,
115467
+ rawComment: g,
115468
+ versionMadeBy: w,
115469
+ headerArray: O,
115470
+ headerView: N,
115471
+ zip64: F,
115472
+ zip64UncompressedSize: B,
115473
+ zip64CompressedSize: V,
115474
+ zip64DiskNumberStart: U,
115475
+ zip64Offset: k,
115476
+ internalFileAttributes: $,
115477
+ externalFileAttributes: G,
115478
+ diskNumberStart: q,
115479
+ uncompressedSize: z,
115480
+ compressedSize: H
115481
+ } = E, K = getLength(P, I, M, R, L);
115482
+ setUint32(p, c, CENTRAL_FILE_HEADER_SIGNATURE), setUint16(p, c + 4, w), B || setUint32(N, HEADER_OFFSET_UNCOMPRESSED_SIZE, z), V || setUint32(N, HEADER_OFFSET_COMPRESSED_SIZE, H), arraySet(h, O, c + 6);
115483
+ let X = c + HEADER_SIZE + 4;
115484
+ if (setUint16(p, X, K), X += 2, setUint16(p, X, getLength(g)), X += 2, setUint16(p, X, F && U ? MAX_16_BITS : q), X += 2, setUint16(p, X, $), X += 2, G && setUint32(p, X, G), X += 4, setUint32(p, X, F && k ? MAX_32_BITS : A), X += 4, arraySet(h, D, X), X += getLength(D), arraySet(h, P, X), X += getLength(P), arraySet(h, I, X), X += getLength(I), arraySet(h, M, X), X += getLength(M), arraySet(h, R, X), X += getLength(R), arraySet(h, L, X), X += getLength(L), arraySet(h, g, X), c - m > r.availableSize && (r.availableSize = 0, await writeData(r, h.slice(m, c)), m = c), c = X, n.onprogress)
115312
115485
  try {
115313
- await n.onprogress(E + 1, i.size, new Entry(A));
115486
+ await n.onprogress(S + 1, i.size, new Entry(E));
115314
115487
  } catch {
115315
115488
  }
115316
115489
  }
115317
- await writeData(s, _ ? p.slice(_) : p);
115318
- let y = r.diskNumber;
115319
- const { availableSize: C } = r;
115320
- C < END_OF_CENTRAL_DIR_LENGTH && y++;
115321
- let T = getOptionValue(e, n, "zip64");
115322
- if (f > MAX_32_BITS || d > MAX_32_BITS || h > MAX_16_BITS || y > MAX_16_BITS) {
115323
- if (T === !1)
115490
+ await writeData(r, m ? h.slice(m) : h);
115491
+ let _ = r.diskNumber;
115492
+ const { availableSize: y } = r;
115493
+ y < END_OF_CENTRAL_DIR_LENGTH && _++;
115494
+ let C = getOptionValue(e, n, PROPERTY_NAME_ZIP64);
115495
+ if (d > MAX_32_BITS || l > MAX_32_BITS || f > MAX_16_BITS || _ > MAX_16_BITS) {
115496
+ if (C === !1)
115324
115497
  throw new Error(ERR_UNSUPPORTED_FORMAT);
115325
- T = !0;
115326
- }
115327
- const x = new Uint8Array(T ? ZIP64_END_OF_CENTRAL_DIR_TOTAL_LENGTH : END_OF_CENTRAL_DIR_LENGTH), b = getDataView(x);
115328
- l = 0, T && (setUint32(b, 0, ZIP64_END_OF_CENTRAL_DIR_SIGNATURE), setBigUint64(b, 4, BigInt(44)), setUint16(b, 12, 45), setUint16(b, 14, 45), setUint32(b, 16, y), setUint32(b, 20, c), setBigUint64(b, 24, BigInt(h)), setBigUint64(b, 32, BigInt(h)), setBigUint64(b, 40, BigInt(d)), setBigUint64(b, 48, BigInt(f)), setUint32(b, 56, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIGNATURE), setBigUint64(b, 64, BigInt(f) + BigInt(d)), setUint32(b, 72, y + 1), getOptionValue(e, n, "supportZip64SplitFile", !0) && (y = MAX_16_BITS, c = MAX_16_BITS), h = MAX_16_BITS, f = MAX_32_BITS, d = MAX_32_BITS, l += ZIP64_END_OF_CENTRAL_DIR_LENGTH + ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH), setUint32(b, l, END_OF_CENTRAL_DIR_SIGNATURE), setUint16(b, l + 4, y), setUint16(b, l + 6, c), setUint16(b, l + 8, h), setUint16(b, l + 10, h), setUint32(b, l + 12, d), setUint32(b, l + 16, f);
115329
- const S = getLength(t);
115330
- if (S)
115331
- if (S <= MAX_16_BITS)
115332
- setUint16(b, l + 20, S);
115498
+ C = !0;
115499
+ }
115500
+ const T = new Uint8Array(C ? ZIP64_END_OF_CENTRAL_DIR_TOTAL_LENGTH : END_OF_CENTRAL_DIR_LENGTH), x = getDataView(T);
115501
+ c = 0, C && (setUint32(x, 0, ZIP64_END_OF_CENTRAL_DIR_SIGNATURE), setBigUint64(x, 4, BigInt(44)), setUint16(x, 12, 45), setUint16(x, 14, 45), setUint32(x, 16, _), setUint32(x, 20, s), setBigUint64(x, 24, BigInt(f)), setBigUint64(x, 32, BigInt(f)), setBigUint64(x, 40, BigInt(l)), setBigUint64(x, 48, BigInt(d)), setUint32(x, 56, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIGNATURE), setBigUint64(x, 64, BigInt(d) + BigInt(l)), setUint32(x, 72, _ + 1), getOptionValue(e, n, "supportZip64SplitFile", !0) && (_ = MAX_16_BITS, s = MAX_16_BITS), f = MAX_16_BITS, d = MAX_32_BITS, l = MAX_32_BITS, c += ZIP64_END_OF_CENTRAL_DIR_LENGTH + ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH), setUint32(x, c, END_OF_CENTRAL_DIR_SIGNATURE), setUint16(x, c + 4, _), setUint16(x, c + 6, s), setUint16(x, c + 8, f), setUint16(x, c + 10, f), setUint32(x, c + 12, l), setUint32(x, c + 16, d);
115502
+ const b = getLength(t);
115503
+ if (b)
115504
+ if (b <= MAX_16_BITS)
115505
+ setUint16(x, c + 20, b);
115333
115506
  else
115334
115507
  throw new Error(ERR_INVALID_COMMENT);
115335
- await writeData(s, x), S && await writeData(s, t);
115508
+ await writeData(r, T), b && await writeData(r, t);
115336
115509
  }
115337
115510
  async function writeData(e, t) {
115338
- const n = e.getWriter();
115511
+ const { writable: n } = e, i = n.getWriter();
115339
115512
  try {
115340
- await n.ready, e.size += getLength(t), await n.write(t);
115513
+ await i.ready, e.size += getLength(t), await i.write(t);
115341
115514
  } finally {
115342
- n.releaseLock();
115515
+ i.releaseLock();
115343
115516
  }
115344
115517
  }
115345
115518
  function getTimeNTFS(e) {
@@ -115375,6 +115548,33 @@ function getLength(...e) {
115375
115548
  let t = 0;
115376
115549
  return e.forEach((n) => n && (t += n.length)), t;
115377
115550
  }
115551
+ function getHeaderArrayData({
115552
+ version: e,
115553
+ bitFlag: t,
115554
+ compressionMethod: n,
115555
+ uncompressedSize: i,
115556
+ compressedSize: r,
115557
+ lastModDate: o,
115558
+ rawFilename: s,
115559
+ zip64CompressedSize: c,
115560
+ zip64UncompressedSize: l,
115561
+ extraFieldLength: d
115562
+ }) {
115563
+ const f = new Uint8Array(HEADER_SIZE), h = getDataView(f);
115564
+ setUint16(h, 0, e), setUint16(h, 2, t), setUint16(h, 4, n);
115565
+ const p = new Uint32Array(1), m = getDataView(p);
115566
+ setUint16(m, 0, (o.getHours() << 6 | o.getMinutes()) << 5 | o.getSeconds() / 2), setUint16(m, 2, (o.getFullYear() - 1980 << 4 | o.getMonth() + 1) << 5 | o.getDate());
115567
+ const _ = p[0];
115568
+ return setUint32(h, 6, _), (c || r !== UNDEFINED_VALUE) && setUint32(h, HEADER_OFFSET_COMPRESSED_SIZE, c ? MAX_32_BITS : r), (l || i !== UNDEFINED_VALUE) && setUint32(h, HEADER_OFFSET_UNCOMPRESSED_SIZE, l ? MAX_32_BITS : i), setUint16(h, 22, getLength(s)), setUint16(h, 24, d), {
115569
+ headerArray: f,
115570
+ headerView: h,
115571
+ rawLastModDate: _
115572
+ };
115573
+ }
115574
+ function getBitFlag(e, t, n, i, r) {
115575
+ let o = 0;
115576
+ return t && (o = o | BITFLAG_LANG_ENCODING_FLAG), n && (o = o | BITFLAG_DATA_DESCRIPTOR), (r == COMPRESSION_METHOD_DEFLATE || r == COMPRESSION_METHOD_DEFLATE_64) && (e >= 0 && e <= 3 && (o = o | BITFLAG_LEVEL_SUPER_FAST_MASK), e > 3 && e <= 5 && (o = o | BITFLAG_LEVEL_FAST_MASK), e == 9 && (o = o | BITFLAG_LEVEL_MAX_MASK)), i && (o = o | BITFLAG_ENCRYPTED), o;
115577
+ }
115378
115578
  configure({ Deflate: ZipDeflate, Inflate: ZipInflate });
115379
115579
  function getElement(e) {
115380
115580
  return typeof e == "string" && (e = document.getElementById(e)), e;
@@ -119208,41 +119408,41 @@ HeightmapTessellator.computeVertices = function(e) {
119208
119408
  let U = Rectangle.computeWidth(C), k = Rectangle.computeHeight(C);
119209
119409
  const $ = U / (d - 1), G = k / (f - 1);
119210
119410
  m || (U *= y, k *= y);
119211
- const q = _.radiiSquared, z = q.x, H = q.y, Q = q.z;
119212
- let ne = 65536, K = -65536;
119213
- const Z = Transforms.eastNorthUpToFixedFrame(
119411
+ const q = _.radiiSquared, z = q.x, H = q.y, K = q.z;
119412
+ let X = 65536, J = -65536;
119413
+ const ee = Transforms.eastNorthUpToFixedFrame(
119214
119414
  A,
119215
119415
  _
119216
- ), ee = Matrix4.inverseTransformation(Z, matrix4Scratch);
119217
- let oe, X;
119416
+ ), te = Matrix4.inverseTransformation(ee, matrix4Scratch);
119417
+ let oe, Q;
119218
119418
  P && (oe = WebMercatorProjection.geodeticLatitudeToMercatorAngle(
119219
119419
  b
119220
- ), X = 1 / (WebMercatorProjection.geodeticLatitudeToMercatorAngle(E) - oe));
119420
+ ), Q = 1 / (WebMercatorProjection.geodeticLatitudeToMercatorAngle(E) - oe));
119221
119421
  const he = minimumScratch;
119222
119422
  he.x = Number.POSITIVE_INFINITY, he.y = Number.POSITIVE_INFINITY, he.z = Number.POSITIVE_INFINITY;
119223
- const de = maximumScratch;
119224
- de.x = Number.NEGATIVE_INFINITY, de.y = Number.NEGATIVE_INFINITY, de.z = Number.NEGATIVE_INFINITY;
119225
- let ce = Number.POSITIVE_INFINITY;
119226
- const _e = d * f, ge = h > 0 ? d * 2 + f * 2 : 0, re = _e + ge, Se = new Array(re), pe = new Array(re), Te = new Array(re), xe = P ? new Array(re) : [], W = L ? new Array(re) : [];
119227
- let j = 0, se = f, Pe = 0, le = d;
119228
- p && (--j, ++se, --Pe, ++le);
119423
+ const ue = maximumScratch;
119424
+ ue.x = Number.NEGATIVE_INFINITY, ue.y = Number.NEGATIVE_INFINITY, ue.z = Number.NEGATIVE_INFINITY;
119425
+ let se = Number.POSITIVE_INFINITY;
119426
+ const _e = d * f, me = h > 0 ? d * 2 + f * 2 : 0, re = _e + me, xe = new Array(re), pe = new Array(re), Ce = new Array(re), be = P ? new Array(re) : [], W = L ? new Array(re) : [];
119427
+ let j = 0, ce = f, Ee = 0, le = d;
119428
+ p && (--j, ++ce, --Ee, ++le);
119229
119429
  const De = 1e-5;
119230
- for (let ie = j; ie < se; ++ie) {
119231
- let ue = ie;
119232
- ue < 0 && (ue = 0), ue >= f && (ue = f - 1);
119233
- let me = C.north - G * ue;
119234
- m ? me = c(me) : me = s - 2 * r(o(-me * y));
119235
- let be = (me - b) / (E - b);
119236
- be = CesiumMath.clamp(be, 0, 1);
119237
- const Ie = ie === j, we = ie === se - 1;
119238
- h > 0 && (Ie ? me += De * k : we && (me -= De * k));
119239
- const He = t(me), We = n(me), Ae = Q * We;
119240
- let Ee;
119241
- P && (Ee = (WebMercatorProjection.geodeticLatitudeToMercatorAngle(me) - oe) * X);
119242
- for (let $e = Pe; $e < le; ++$e) {
119430
+ for (let ie = j; ie < ce; ++ie) {
119431
+ let de = ie;
119432
+ de < 0 && (de = 0), de >= f && (de = f - 1);
119433
+ let ge = C.north - G * de;
119434
+ m ? ge = c(ge) : ge = s - 2 * r(o(-ge * y));
119435
+ let Se = (ge - b) / (E - b);
119436
+ Se = CesiumMath.clamp(Se, 0, 1);
119437
+ const Ie = ie === j, we = ie === ce - 1;
119438
+ h > 0 && (Ie ? ge += De * k : we && (ge -= De * k));
119439
+ const He = t(ge), We = n(ge), Pe = K * We;
119440
+ let Ae;
119441
+ P && (Ae = (WebMercatorProjection.geodeticLatitudeToMercatorAngle(ge) - oe) * Q);
119442
+ for (let $e = Ee; $e < le; ++$e) {
119243
119443
  let Fe = $e;
119244
119444
  Fe < 0 && (Fe = 0), Fe >= d && (Fe = d - 1);
119245
- const Ke = ue * (d * F) + Fe * F;
119445
+ const Ke = de * (d * F) + Fe * F;
119246
119446
  let ve;
119247
119447
  if (N === 1)
119248
119448
  ve = l[Ke];
@@ -119256,67 +119456,67 @@ HeightmapTessellator.computeVertices = function(e) {
119256
119456
  for (Me = N - 1; Me >= 0; --Me)
119257
119457
  ve = ve * B + l[Ke + Me];
119258
119458
  }
119259
- ve = ve * w + O, K = Math.max(K, ve), ne = Math.min(ne, ve);
119459
+ ve = ve * w + O, J = Math.max(J, ve), X = Math.min(X, ve);
119260
119460
  let Ne = C.west + $ * Fe;
119261
119461
  m ? Ne = c(Ne) : Ne = Ne * y;
119262
119462
  let rt = (Ne - x) / (S - x);
119263
119463
  rt = CesiumMath.clamp(rt, 0, 1);
119264
- let Be = ue * d + Fe;
119464
+ let Be = de * d + Fe;
119265
119465
  if (h > 0) {
119266
- const Me = $e === Pe, ye = $e === le - 1, Y = Ie || we || Me || ye;
119466
+ const Me = $e === Ee, ye = $e === le - 1, Y = Ie || we || Me || ye;
119267
119467
  if ((Ie || we) && (Me || ye))
119268
119468
  continue;
119269
- Y && (ve -= h, Me ? (Be = _e + (f - ue - 1), Ne -= De * U) : we ? Be = _e + f + (d - Fe - 1) : ye ? (Be = _e + f + d + ue, Ne += De * U) : Ie && (Be = _e + f + d + f + Fe));
119469
+ Y && (ve -= h, Me ? (Be = _e + (f - de - 1), Ne -= De * U) : we ? Be = _e + f + (d - Fe - 1) : ye ? (Be = _e + f + d + de, Ne += De * U) : Ie && (Be = _e + f + d + f + Fe));
119270
119470
  }
119271
- const Ze = He * t(Ne), je = He * n(Ne), at = z * Ze, ke = H * je, Ye = 1 / i(at * Ze + ke * je + Ae * We), Ve = at * Ye, et = ke * Ye, tt = Ae * Ye, nt = new Cartesian3();
119272
- nt.x = Ve + Ze * ve, nt.y = et + je * ve, nt.z = tt + We * ve, Matrix4.multiplyByPoint(ee, nt, cartesian3Scratch), Cartesian3.minimumByComponent(cartesian3Scratch, he, he), Cartesian3.maximumByComponent(cartesian3Scratch, de, de), ce = Math.min(ce, ve), Se[Be] = nt, Te[Be] = new Cartesian2(rt, be), pe[Be] = ve, P && (xe[Be] = Ee), L && (W[Be] = _.geodeticSurfaceNormal(
119471
+ const Je = He * t(Ne), je = He * n(Ne), at = z * Je, ke = H * je, Ye = 1 / i(at * Je + ke * je + Pe * We), Ve = at * Ye, et = ke * Ye, tt = Pe * Ye, nt = new Cartesian3();
119472
+ nt.x = Ve + Je * ve, nt.y = et + je * ve, nt.z = tt + We * ve, Matrix4.multiplyByPoint(te, nt, cartesian3Scratch), Cartesian3.minimumByComponent(cartesian3Scratch, he, he), Cartesian3.maximumByComponent(cartesian3Scratch, ue, ue), se = Math.min(se, ve), xe[Be] = nt, Ce[Be] = new Cartesian2(rt, Se), pe[Be] = ve, P && (be[Be] = Ae), L && (W[Be] = _.geodeticSurfaceNormal(
119273
119473
  nt
119274
119474
  ));
119275
119475
  }
119276
119476
  }
119277
- const Re = BoundingSphere.fromPoints(Se);
119477
+ const Re = BoundingSphere.fromPoints(xe);
119278
119478
  let Ge;
119279
119479
  defined(T) && (Ge = OrientedBoundingBox.fromRectangle(
119280
119480
  T,
119281
- ne,
119282
- K,
119481
+ X,
119482
+ J,
119283
119483
  _
119284
119484
  ));
119285
119485
  let Le;
119286
119486
  D && (Le = new EllipsoidalOccluder(_).computeHorizonCullingPointPossiblyUnderEllipsoid(
119287
119487
  A,
119288
- Se,
119289
- ne
119488
+ xe,
119489
+ X
119290
119490
  ));
119291
- const Ue = new AxisAlignedBoundingBox(he, de, A), J = new TerrainEncoding(
119491
+ const Ue = new AxisAlignedBoundingBox(he, ue, A), Z = new TerrainEncoding(
119292
119492
  A,
119293
119493
  Ue,
119294
- ce,
119295
- K,
119296
- Z,
119494
+ se,
119495
+ J,
119496
+ ee,
119297
119497
  !1,
119298
119498
  P,
119299
119499
  L,
119300
119500
  I,
119301
119501
  M
119302
- ), ae = new Float32Array(re * J.stride);
119303
- let te = 0;
119502
+ ), ae = new Float32Array(re * Z.stride);
119503
+ let ne = 0;
119304
119504
  for (let ie = 0; ie < re; ++ie)
119305
- te = J.encode(
119505
+ ne = Z.encode(
119306
119506
  ae,
119307
- te,
119308
- Se[ie],
119309
- Te[ie],
119507
+ ne,
119508
+ xe[ie],
119509
+ Ce[ie],
119310
119510
  pe[ie],
119311
119511
  void 0,
119312
- xe[ie],
119512
+ be[ie],
119313
119513
  W[ie]
119314
119514
  );
119315
119515
  return {
119316
119516
  vertices: ae,
119317
- maximumHeight: K,
119318
- minimumHeight: ne,
119319
- encoding: J,
119517
+ maximumHeight: J,
119518
+ minimumHeight: X,
119519
+ encoding: Z,
119320
119520
  boundingSphere3D: Re,
119321
119521
  orientedBoundingBox: Ge,
119322
119522
  occludeePointInScaledSpace: Le
@@ -121494,9 +121694,9 @@ function createQuantizedMeshTerrainData(e, t, n, i, r, o) {
121494
121694
  c += L * C;
121495
121695
  let w = 0;
121496
121696
  const O = g.length;
121497
- for (let K = 0; K < O; ++K) {
121498
- const Z = g[K];
121499
- g[K] = w - Z, Z === 0 && ++w;
121697
+ for (let J = 0; J < O; ++J) {
121698
+ const ee = g[J];
121699
+ g[J] = w - ee, ee === 0 && ++w;
121500
121700
  }
121501
121701
  const N = T.getUint32(c, !0);
121502
121702
  c += Uint32Array.BYTES_PER_ELEMENT;
@@ -121536,38 +121736,38 @@ function createQuantizedMeshTerrainData(e, t, n, i, r, o) {
121536
121736
  c += $ * y;
121537
121737
  let q, z;
121538
121738
  for (; c < T.byteLength; ) {
121539
- const K = T.getUint8(c, !0);
121739
+ const J = T.getUint8(c, !0);
121540
121740
  c += Uint8Array.BYTES_PER_ELEMENT;
121541
- const Z = T.getUint32(c, s);
121542
- if (c += Uint32Array.BYTES_PER_ELEMENT, K === QuantizedMeshExtensionIds.OCT_VERTEX_NORMALS && e._requestVertexNormals)
121741
+ const ee = T.getUint32(c, s);
121742
+ if (c += Uint32Array.BYTES_PER_ELEMENT, J === QuantizedMeshExtensionIds.OCT_VERTEX_NORMALS && e._requestVertexNormals)
121543
121743
  q = new Uint8Array(t, c, D * 2);
121544
- else if (K === QuantizedMeshExtensionIds.WATER_MASK && e._requestWaterMask)
121545
- z = new Uint8Array(t, c, Z);
121546
- else if (K === QuantizedMeshExtensionIds.METADATA && e._requestMetadata) {
121547
- const ee = T.getUint32(c, !0);
121548
- if (ee > 0) {
121549
- const X = getJsonFromTypedArray(
121744
+ else if (J === QuantizedMeshExtensionIds.WATER_MASK && e._requestWaterMask)
121745
+ z = new Uint8Array(t, c, ee);
121746
+ else if (J === QuantizedMeshExtensionIds.METADATA && e._requestMetadata) {
121747
+ const te = T.getUint32(c, !0);
121748
+ if (te > 0) {
121749
+ const Q = getJsonFromTypedArray(
121550
121750
  new Uint8Array(t),
121551
121751
  c + Uint32Array.BYTES_PER_ELEMENT,
121552
- ee
121752
+ te
121553
121753
  ).available;
121554
- if (defined(X))
121555
- for (let he = 0; he < X.length; ++he) {
121556
- const de = n + he + 1, ce = X[he], _e = e._tilingScheme.getNumberOfYTilesAtLevel(
121557
- de
121754
+ if (defined(Q))
121755
+ for (let he = 0; he < Q.length; ++he) {
121756
+ const ue = n + he + 1, se = Q[he], _e = e._tilingScheme.getNumberOfYTilesAtLevel(
121757
+ ue
121558
121758
  );
121559
- for (let ge = 0; ge < ce.length; ++ge) {
121560
- const re = ce[ge], Se = _e - re.endY - 1, pe = _e - re.startY - 1;
121759
+ for (let me = 0; me < se.length; ++me) {
121760
+ const re = se[me], xe = _e - re.endY - 1, pe = _e - re.startY - 1;
121561
121761
  e.availability.addAvailableTileRange(
121562
- de,
121762
+ ue,
121563
121763
  re.startX,
121564
- Se,
121764
+ xe,
121565
121765
  re.endX,
121566
121766
  pe
121567
121767
  ), o.availability.addAvailableTileRange(
121568
- de,
121768
+ ue,
121569
121769
  re.startX,
121570
- Se,
121770
+ xe,
121571
121771
  re.endX,
121572
121772
  pe
121573
121773
  );
@@ -121576,10 +121776,10 @@ function createQuantizedMeshTerrainData(e, t, n, i, r, o) {
121576
121776
  }
121577
121777
  o.availabilityTilesLoaded.addAvailableTileRange(n, i, r, i, r);
121578
121778
  }
121579
- c += Z;
121779
+ c += ee;
121580
121780
  }
121581
- const H = e.getLevelMaximumGeometricError(n) * 5, Q = e._tilingScheme.tileXYToRectangle(i, r, n), ne = OrientedBoundingBox.fromRectangle(
121582
- Q,
121781
+ const H = e.getLevelMaximumGeometricError(n) * 5, K = e._tilingScheme.tileXYToRectangle(i, r, n), X = OrientedBoundingBox.fromRectangle(
121782
+ K,
121583
121783
  b,
121584
121784
  S,
121585
121785
  e._tilingScheme.ellipsoid
@@ -121589,7 +121789,7 @@ function createQuantizedMeshTerrainData(e, t, n, i, r, o) {
121589
121789
  minimumHeight: b,
121590
121790
  maximumHeight: S,
121591
121791
  boundingSphere: E,
121592
- orientedBoundingBox: ne,
121792
+ orientedBoundingBox: X,
121593
121793
  horizonOcclusionPoint: A,
121594
121794
  quantizedVertices: P,
121595
121795
  encodedNormals: q,
@@ -124700,8 +124900,8 @@ const Iau2000Orientation = {}, TdtMinusTai = 32.184, J2000d = 2451545, c1 = -0.0
124700
124900
  let dateTT = new JulianDate();
124701
124901
  Iau2000Orientation.ComputeMoon = function(e, t) {
124702
124902
  defined(e) || (e = JulianDate.now()), dateTT = JulianDate.addSeconds(e, TdtMinusTai, dateTT);
124703
- const n = JulianDate.totalDays(dateTT) - J2000d, i = n / TimeConstants$1.DAYS_PER_JULIAN_CENTURY, r = (125.045 + c1 * n) * CesiumMath.RADIANS_PER_DEGREE, o = (250.089 + c2 * n) * CesiumMath.RADIANS_PER_DEGREE, s = (260.008 + c3 * n) * CesiumMath.RADIANS_PER_DEGREE, c = (176.625 + c4 * n) * CesiumMath.RADIANS_PER_DEGREE, l = (357.529 + c5 * n) * CesiumMath.RADIANS_PER_DEGREE, d = (311.589 + c6 * n) * CesiumMath.RADIANS_PER_DEGREE, f = (134.963 + c7 * n) * CesiumMath.RADIANS_PER_DEGREE, h = (276.617 + c8 * n) * CesiumMath.RADIANS_PER_DEGREE, p = (34.226 + c9 * n) * CesiumMath.RADIANS_PER_DEGREE, m = (15.134 + c10 * n) * CesiumMath.RADIANS_PER_DEGREE, _ = (119.743 + c11 * n) * CesiumMath.RADIANS_PER_DEGREE, y = (239.961 + c12 * n) * CesiumMath.RADIANS_PER_DEGREE, C = (25.053 + c13 * n) * CesiumMath.RADIANS_PER_DEGREE, T = Math.sin(r), x = Math.sin(o), b = Math.sin(s), S = Math.sin(c), E = Math.sin(l), A = Math.sin(d), D = Math.sin(f), P = Math.sin(h), I = Math.sin(p), M = Math.sin(m), R = Math.sin(_), L = Math.sin(y), g = Math.sin(C), w = Math.cos(r), O = Math.cos(o), N = Math.cos(s), F = Math.cos(c), B = Math.cos(l), V = Math.cos(d), U = Math.cos(f), k = Math.cos(h), $ = Math.cos(p), G = Math.cos(m), q = Math.cos(_), z = Math.cos(y), H = Math.cos(C), Q = (269.9949 + 31e-4 * i - 3.8787 * T - 0.1204 * x + 0.07 * b - 0.0172 * S + 72e-4 * A - 52e-4 * M + 43e-4 * g) * CesiumMath.RADIANS_PER_DEGREE, ne = (66.5392 + 0.013 * i + 1.5419 * w + 0.0239 * O - 0.0278 * N + 68e-4 * F - 29e-4 * V + 9e-4 * U + 8e-4 * G - 9e-4 * H) * CesiumMath.RADIANS_PER_DEGREE, K = (38.3213 + 13.17635815 * n - 14e-13 * n * n + 3.561 * T + 0.1208 * x - 0.0642 * b + 0.0158 * S + 0.0252 * E - 66e-4 * A - 47e-4 * D - 46e-4 * P + 28e-4 * I + 52e-4 * M + 4e-3 * R + 19e-4 * L - 44e-4 * g) * CesiumMath.RADIANS_PER_DEGREE, Z = (13.17635815 - 14e-13 * (2 * n) + 3.561 * w * c1 + 0.1208 * O * c2 - 0.0642 * N * c3 + 0.0158 * F * c4 + 0.0252 * B * c5 - 66e-4 * V * c6 - 47e-4 * U * c7 - 46e-4 * k * c8 + 28e-4 * $ * c9 + 52e-4 * G * c10 + 4e-3 * q * c11 + 19e-4 * z * c12 - 44e-4 * H * c13) / 86400 * CesiumMath.RADIANS_PER_DEGREE;
124704
- return defined(t) || (t = new IauOrientationParameters()), t.rightAscension = Q, t.declination = ne, t.rotation = K, t.rotationRate = Z, t;
124903
+ const n = JulianDate.totalDays(dateTT) - J2000d, i = n / TimeConstants$1.DAYS_PER_JULIAN_CENTURY, r = (125.045 + c1 * n) * CesiumMath.RADIANS_PER_DEGREE, o = (250.089 + c2 * n) * CesiumMath.RADIANS_PER_DEGREE, s = (260.008 + c3 * n) * CesiumMath.RADIANS_PER_DEGREE, c = (176.625 + c4 * n) * CesiumMath.RADIANS_PER_DEGREE, l = (357.529 + c5 * n) * CesiumMath.RADIANS_PER_DEGREE, d = (311.589 + c6 * n) * CesiumMath.RADIANS_PER_DEGREE, f = (134.963 + c7 * n) * CesiumMath.RADIANS_PER_DEGREE, h = (276.617 + c8 * n) * CesiumMath.RADIANS_PER_DEGREE, p = (34.226 + c9 * n) * CesiumMath.RADIANS_PER_DEGREE, m = (15.134 + c10 * n) * CesiumMath.RADIANS_PER_DEGREE, _ = (119.743 + c11 * n) * CesiumMath.RADIANS_PER_DEGREE, y = (239.961 + c12 * n) * CesiumMath.RADIANS_PER_DEGREE, C = (25.053 + c13 * n) * CesiumMath.RADIANS_PER_DEGREE, T = Math.sin(r), x = Math.sin(o), b = Math.sin(s), S = Math.sin(c), E = Math.sin(l), A = Math.sin(d), D = Math.sin(f), P = Math.sin(h), I = Math.sin(p), M = Math.sin(m), R = Math.sin(_), L = Math.sin(y), g = Math.sin(C), w = Math.cos(r), O = Math.cos(o), N = Math.cos(s), F = Math.cos(c), B = Math.cos(l), V = Math.cos(d), U = Math.cos(f), k = Math.cos(h), $ = Math.cos(p), G = Math.cos(m), q = Math.cos(_), z = Math.cos(y), H = Math.cos(C), K = (269.9949 + 31e-4 * i - 3.8787 * T - 0.1204 * x + 0.07 * b - 0.0172 * S + 72e-4 * A - 52e-4 * M + 43e-4 * g) * CesiumMath.RADIANS_PER_DEGREE, X = (66.5392 + 0.013 * i + 1.5419 * w + 0.0239 * O - 0.0278 * N + 68e-4 * F - 29e-4 * V + 9e-4 * U + 8e-4 * G - 9e-4 * H) * CesiumMath.RADIANS_PER_DEGREE, J = (38.3213 + 13.17635815 * n - 14e-13 * n * n + 3.561 * T + 0.1208 * x - 0.0642 * b + 0.0158 * S + 0.0252 * E - 66e-4 * A - 47e-4 * D - 46e-4 * P + 28e-4 * I + 52e-4 * M + 4e-3 * R + 19e-4 * L - 44e-4 * g) * CesiumMath.RADIANS_PER_DEGREE, ee = (13.17635815 - 14e-13 * (2 * n) + 3.561 * w * c1 + 0.1208 * O * c2 - 0.0642 * N * c3 + 0.0158 * F * c4 + 0.0252 * B * c5 - 66e-4 * V * c6 - 47e-4 * U * c7 - 46e-4 * k * c8 + 28e-4 * $ * c9 + 52e-4 * G * c10 + 4e-3 * q * c11 + 19e-4 * z * c12 - 44e-4 * H * c13) / 86400 * CesiumMath.RADIANS_PER_DEGREE;
124904
+ return defined(t) || (t = new IauOrientationParameters()), t.rightAscension = K, t.declination = X, t.rotation = J, t.rotationRate = ee, t;
124705
124905
  };
124706
124906
  function IauOrientationAxes(e) {
124707
124907
  (!defined(e) || typeof e != "function") && (e = Iau2000Orientation.ComputeMoon), this._computeFunction = e;
@@ -132740,75 +132940,75 @@ VoxelCylinderShape.prototype.update = function(e, t, n, i, r) {
132740
132940
  this.orientedBoundingBox,
132741
132941
  this.boundingSphere
132742
132942
  );
132743
- const k = C === o && T === s, $ = A === c && D === l, G = g < L, q = g - L + G * h, z = q > p + y && q < h - y, H = q < p - y, Q = q >= p - y && q <= p + y, ne = z || H || Q, K = CesiumMath.equalsEpsilon(
132943
+ const k = C === o && T === s, $ = A === c && D === l, G = g < L, q = g - L + G * h, z = q > p + y && q < h - y, H = q < p - y, K = q >= p - y && q <= p + y, X = z || H || K, J = CesiumMath.equalsEpsilon(
132744
132944
  L,
132745
132945
  d,
132746
132946
  void 0,
132747
132947
  _
132748
- ), Z = CesiumMath.equalsEpsilon(
132948
+ ), ee = CesiumMath.equalsEpsilon(
132749
132949
  g,
132750
132950
  f,
132751
132951
  void 0,
132752
132952
  _
132753
- ), ee = S === o, oe = F < N, X = F - N + oe * h, he = X >= p - y && X < h - y, de = X > y && X < p - y, ce = X <= y, _e = he || de || ce, { shaderUniforms: ge, shaderDefines: re } = this;
132953
+ ), te = S === o, oe = F < N, Q = F - N + oe * h, he = Q >= p - y && Q < h - y, ue = Q > y && Q < p - y, se = Q <= y, _e = he || ue || se, { shaderUniforms: me, shaderDefines: re } = this;
132754
132954
  for (const pe in re)
132755
132955
  re.hasOwnProperty(pe) && (re[pe] = void 0);
132756
- let Se = 0;
132757
- if (re.CYLINDER_INTERSECTION_INDEX_RADIUS_MAX = Se, Se += 1, ee || (re.CYLINDER_HAS_RENDER_BOUNDS_RADIUS_MIN = !0, re.CYLINDER_INTERSECTION_INDEX_RADIUS_MIN = Se, Se += 1), ge.cylinderRenderRadiusMinMax = Cartesian2.fromElements(
132956
+ let xe = 0;
132957
+ if (re.CYLINDER_INTERSECTION_INDEX_RADIUS_MAX = xe, xe += 1, te || (re.CYLINDER_HAS_RENDER_BOUNDS_RADIUS_MIN = !0, re.CYLINDER_INTERSECTION_INDEX_RADIUS_MIN = xe, xe += 1), me.cylinderRenderRadiusMinMax = Cartesian2.fromElements(
132758
132958
  S,
132759
132959
  E,
132760
- ge.cylinderRenderRadiusMinMax
132960
+ me.cylinderRenderRadiusMinMax
132761
132961
  ), S === E && (re.CYLINDER_HAS_RENDER_BOUNDS_RADIUS_FLAT = !0), !k) {
132762
132962
  re.CYLINDER_HAS_SHAPE_BOUNDS_RADIUS = !0;
132763
132963
  const pe = T - C;
132764
- let Te = 0, xe = 1;
132765
- pe !== 0 && (Te = 1 / pe, xe = -C / pe), ge.cylinderUvToShapeUvRadius = Cartesian2.fromElements(
132766
- Te,
132767
- xe,
132768
- ge.cylinderUvToShapeUvRadius
132964
+ let Ce = 0, be = 1;
132965
+ pe !== 0 && (Ce = 1 / pe, be = -C / pe), me.cylinderUvToShapeUvRadius = Cartesian2.fromElements(
132966
+ Ce,
132967
+ be,
132968
+ me.cylinderUvToShapeUvRadius
132769
132969
  );
132770
132970
  }
132771
132971
  if (!$) {
132772
132972
  re.CYLINDER_HAS_SHAPE_BOUNDS_HEIGHT = !0;
132773
132973
  const pe = D - A;
132774
- let Te = 0, xe = 1;
132775
- pe !== 0 && (Te = 2 / pe, xe = -(A + 1) / pe), ge.cylinderUvToShapeUvHeight = Cartesian2.fromElements(
132776
- Te,
132777
- xe,
132778
- ge.cylinderUvToShapeUvHeight
132974
+ let Ce = 0, be = 1;
132975
+ pe !== 0 && (Ce = 2 / pe, be = -(A + 1) / pe), me.cylinderUvToShapeUvHeight = Cartesian2.fromElements(
132976
+ Ce,
132977
+ be,
132978
+ me.cylinderUvToShapeUvHeight
132779
132979
  );
132780
132980
  }
132781
- if (ge.cylinderRenderHeightMinMax = Cartesian2.fromElements(
132981
+ if (me.cylinderRenderHeightMinMax = Cartesian2.fromElements(
132782
132982
  M,
132783
132983
  R,
132784
- ge.cylinderRenderHeightMinMax
132785
- ), G && (re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE_MIN_MAX_REVERSED = !0), _e && (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE = !0, re.CYLINDER_INTERSECTION_INDEX_ANGLE = Se, he ? (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE_RANGE_UNDER_HALF = !0, Se += 1) : de ? (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE_RANGE_OVER_HALF = !0, Se += 2) : ce && (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE_RANGE_EQUAL_ZERO = !0, Se += 2), ge.cylinderRenderAngleMinMax = Cartesian2.fromElements(
132984
+ me.cylinderRenderHeightMinMax
132985
+ ), G && (re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE_MIN_MAX_REVERSED = !0), _e && (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE = !0, re.CYLINDER_INTERSECTION_INDEX_ANGLE = xe, he ? (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE_RANGE_UNDER_HALF = !0, xe += 1) : ue ? (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE_RANGE_OVER_HALF = !0, xe += 2) : se && (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE_RANGE_EQUAL_ZERO = !0, xe += 2), me.cylinderRenderAngleMinMax = Cartesian2.fromElements(
132786
132986
  N,
132787
132987
  F,
132788
- ge.cylinderRenderAngleMinMax
132789
- )), ne) {
132790
- re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE = !0, K && (re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE_MIN_DISCONTINUITY = !0), Z && (re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE_MAX_DISCONTINUITY = !0);
132791
- const pe = (L - d) / h, Te = (g - d) / h, xe = 1 - q / h;
132792
- if (ge.cylinderShapeUvAngleMinMax = Cartesian2.fromElements(
132988
+ me.cylinderRenderAngleMinMax
132989
+ )), X) {
132990
+ re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE = !0, J && (re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE_MIN_DISCONTINUITY = !0), ee && (re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE_MAX_DISCONTINUITY = !0);
132991
+ const pe = (L - d) / h, Ce = (g - d) / h, be = 1 - q / h;
132992
+ if (me.cylinderShapeUvAngleMinMax = Cartesian2.fromElements(
132793
132993
  pe,
132794
- Te,
132795
- ge.cylinderShapeUvAngleMinMax
132796
- ), ge.cylinderShapeUvAngleRangeZeroMid = (Te + 0.5 * xe) % 1, q <= y)
132797
- ge.cylinderUvToShapeUvAngle = Cartesian2.fromElements(
132994
+ Ce,
132995
+ me.cylinderShapeUvAngleMinMax
132996
+ ), me.cylinderShapeUvAngleRangeZeroMid = (Ce + 0.5 * be) % 1, q <= y)
132997
+ me.cylinderUvToShapeUvAngle = Cartesian2.fromElements(
132798
132998
  0,
132799
132999
  1,
132800
- ge.cylinderUvToShapeUvAngle
133000
+ me.cylinderUvToShapeUvAngle
132801
133001
  );
132802
133002
  else {
132803
133003
  const W = h / q, j = -(L - d) / q;
132804
- ge.cylinderUvToShapeUvAngle = Cartesian2.fromElements(
133004
+ me.cylinderUvToShapeUvAngle = Cartesian2.fromElements(
132805
133005
  W,
132806
133006
  j,
132807
- ge.cylinderUvToShapeUvAngle
133007
+ me.cylinderUvToShapeUvAngle
132808
133008
  );
132809
133009
  }
132810
133010
  }
132811
- return this.shaderMaximumIntersectionsLength = Se, !0;
133011
+ return this.shaderMaximumIntersectionsLength = xe, !0;
132812
133012
  };
132813
133013
  VoxelCylinderShape.prototype.computeOrientedBoundingBoxForTile = function(e, t, n, i, r) {
132814
133014
  const o = this._minimumRadius, s = this._maximumRadius, c = this._minimumHeight, l = this._maximumHeight, d = this._minimumAngle, f = this._maximumAngle, h = 1 / Math.pow(2, e), p = CesiumMath.lerp(
@@ -132915,8 +133115,8 @@ function getCylinderChunkObb(e, t, n, i, r, o, s, c) {
132915
133115
  b[S++] = r, b[S++] = o, b[S++] = x, T > CesiumMath.PI && (b[S++] = x - CesiumMath.PI_OVER_TWO, b[S++] = x + CesiumMath.PI_OVER_TWO);
132916
133116
  let E = 1, A = 1, D = -1, P = -1;
132917
133117
  for (let G = 0; G < S; ++G) {
132918
- const q = b[G] - x, z = Math.cos(q), H = Math.sin(q), Q = z * e, ne = H * e, K = z * t, Z = H * t;
132919
- E = Math.min(E, Q), A = Math.min(A, ne), E = Math.min(E, K), A = Math.min(A, Z), D = Math.max(D, Q), P = Math.max(P, ne), D = Math.max(D, K), P = Math.max(P, Z);
133118
+ const q = b[G] - x, z = Math.cos(q), H = Math.sin(q), K = z * e, X = H * e, J = z * t, ee = H * t;
133119
+ E = Math.min(E, K), A = Math.min(A, X), E = Math.min(E, J), A = Math.min(A, ee), D = Math.max(D, K), P = Math.max(P, X), D = Math.max(D, J), P = Math.max(P, ee);
132920
133120
  }
132921
133121
  const I = D - E, M = P - A, R = i - n, L = (E + D) * 0.5, g = (A + P) * 0.5, w = (n + i) * 0.5, O = Cartesian3.fromElements(
132922
133122
  L,
@@ -133078,18 +133278,18 @@ VoxelEllipsoidShape.prototype.update = function(e, t, n, i, r) {
133078
133278
  this.orientedBoundingBox,
133079
133279
  this.boundingSphere
133080
133280
  );
133081
- const P = s.x - o.x, I = 0.5 * P, M = b.x < x.x, R = b.x - x.x + M * P, L = R <= d, g = R >= I - d && R < P - d, w = R > d && R < I - d, O = L || g || w, N = y.x < _.x, F = y.x - _.x + N * P, B = F > I + d && F < P - d, V = F >= I - d && F <= I + d, U = F < I - d, k = B || V || U, $ = b.y < -h, G = b.y >= -h && b.y <= +h, q = b.y > +h && b.y < s.y - f, z = $ || G || q, H = x.y > o.y + f && x.y < -h, Q = x.y >= -h && x.y <= +h, ne = x.y > +h, K = H || Q || ne, Z = z || K, ee = y.y - _.y, oe = y.y < -h, X = y.y >= -h && y.y <= +h, he = y.y > +h && y.y < s.y - f, de = oe || X || he, ce = _.y > o.y + f && _.y < -h, _e = _.y >= -h && _.y <= +h, ge = _.y > +h, Se = de || (ce || _e || ge), { shaderUniforms: pe, shaderDefines: Te } = this;
133082
- for (const le in Te)
133083
- Te.hasOwnProperty(le) && (Te[le] = void 0);
133281
+ const P = s.x - o.x, I = 0.5 * P, M = b.x < x.x, R = b.x - x.x + M * P, L = R <= d, g = R >= I - d && R < P - d, w = R > d && R < I - d, O = L || g || w, N = y.x < _.x, F = y.x - _.x + N * P, B = F > I + d && F < P - d, V = F >= I - d && F <= I + d, U = F < I - d, k = B || V || U, $ = b.y < -h, G = b.y >= -h && b.y <= +h, q = b.y > +h && b.y < s.y - f, z = $ || G || q, H = x.y > o.y + f && x.y < -h, K = x.y >= -h && x.y <= +h, X = x.y > +h, J = H || K || X, ee = z || J, te = y.y - _.y, oe = y.y < -h, Q = y.y >= -h && y.y <= +h, he = y.y > +h && y.y < s.y - f, ue = oe || Q || he, se = _.y > o.y + f && _.y < -h, _e = _.y >= -h && _.y <= +h, me = _.y > +h, xe = ue || (se || _e || me), { shaderUniforms: pe, shaderDefines: Ce } = this;
133282
+ for (const le in Ce)
133283
+ Ce.hasOwnProperty(le) && (Ce[le] = void 0);
133084
133284
  pe.ellipsoidRadiiUv = Cartesian3.divideByScalar(
133085
133285
  S,
133086
133286
  E,
133087
133287
  pe.ellipsoidRadiiUv
133088
133288
  );
133089
- const { x: xe, z: W } = pe.ellipsoidRadiiUv, j = W / xe;
133289
+ const { x: be, z: W } = pe.ellipsoidRadiiUv, j = W / be;
133090
133290
  pe.eccentricitySquared = 1 - j * j, pe.evoluteScale = Cartesian2.fromElements(
133091
- (xe * xe - W * W) / xe,
133092
- (W * W - xe * xe) / W,
133291
+ (be * be - W * W) / be,
133292
+ (W * W - be * be) / W,
133093
133293
  pe.evoluteScale
133094
133294
  ), pe.ellipsoidInverseRadiiSquaredUv = Cartesian3.divideComponents(
133095
133295
  Cartesian3.ONE,
@@ -133100,19 +133300,19 @@ VoxelEllipsoidShape.prototype.update = function(e, t, n, i, r) {
133100
133300
  ),
133101
133301
  pe.ellipsoidInverseRadiiSquaredUv
133102
133302
  );
133103
- let se = 0;
133104
- Te.ELLIPSOID_INTERSECTION_INDEX_HEIGHT_MAX = se, se += 1, Te.ELLIPSOID_INTERSECTION_INDEX_HEIGHT_MIN = se, se += 1, pe.clipMinMaxHeight = Cartesian2.fromElements(
133303
+ let ce = 0;
133304
+ Ce.ELLIPSOID_INTERSECTION_INDEX_HEIGHT_MAX = ce, ce += 1, Ce.ELLIPSOID_INTERSECTION_INDEX_HEIGHT_MIN = ce, ce += 1, pe.clipMinMaxHeight = Cartesian2.fromElements(
133105
133305
  (x.z - y.z) / E,
133106
133306
  (b.z - y.z) / E,
133107
133307
  pe.clipMinMaxHeight
133108
133308
  );
133109
- const Pe = (y.z - _.z) / E;
133110
- if (pe.ellipsoidInverseHeightDifferenceUv = 1 / Pe, _.z === y.z && (pe.ellipsoidInverseHeightDifferenceUv = 0), O && (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE = !0, Te.ELLIPSOID_INTERSECTION_INDEX_LONGITUDE = se, g ? (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_RANGE_UNDER_HALF = !0, se += 1) : w ? (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_RANGE_OVER_HALF = !0, se += 2) : L && (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_RANGE_EQUAL_ZERO = !0, se += 2), pe.ellipsoidRenderLongitudeMinMax = Cartesian2.fromElements(
133309
+ const Ee = (y.z - _.z) / E;
133310
+ if (pe.ellipsoidInverseHeightDifferenceUv = 1 / Ee, _.z === y.z && (pe.ellipsoidInverseHeightDifferenceUv = 0), O && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE = !0, Ce.ELLIPSOID_INTERSECTION_INDEX_LONGITUDE = ce, g ? (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_RANGE_UNDER_HALF = !0, ce += 1) : w ? (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_RANGE_OVER_HALF = !0, ce += 2) : L && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_RANGE_EQUAL_ZERO = !0, ce += 2), pe.ellipsoidRenderLongitudeMinMax = Cartesian2.fromElements(
133111
133311
  x.x,
133112
133312
  b.x,
133113
133313
  pe.ellipsoidRenderLongitudeMinMax
133114
133314
  )), k)
133115
- if (Te.ELLIPSOID_HAS_SHAPE_BOUNDS_LONGITUDE = !0, y.x < _.x && (Te.ELLIPSOID_HAS_SHAPE_BOUNDS_LONGITUDE_MIN_MAX_REVERSED = !0), F <= d)
133315
+ if (Ce.ELLIPSOID_HAS_SHAPE_BOUNDS_LONGITUDE = !0, y.x < _.x && (Ce.ELLIPSOID_HAS_SHAPE_BOUNDS_LONGITUDE_MIN_MAX_REVERSED = !0), F <= d)
133116
133316
  pe.ellipsoidUvToShapeUvLongitude = Cartesian2.fromElements(
133117
133317
  0,
133118
133318
  1,
@@ -133138,35 +133338,35 @@ VoxelEllipsoidShape.prototype.update = function(e, t, n, i, r) {
133138
133338
  void 0,
133139
133339
  l
133140
133340
  );
133141
- le && (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_MIN_DISCONTINUITY = !0), De && (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_MAX_DISCONTINUITY = !0);
133142
- const Re = (_.x - o.x) / P, Ge = (y.x - o.x) / P, Le = (b.x - o.x) / P, Ue = 1 - R / P, J = (Le + 0.5 * Ue) % 1;
133341
+ le && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_MIN_DISCONTINUITY = !0), De && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_MAX_DISCONTINUITY = !0);
133342
+ const Re = (_.x - o.x) / P, Ge = (y.x - o.x) / P, Le = (b.x - o.x) / P, Ue = 1 - R / P, Z = (Le + 0.5 * Ue) % 1;
133143
133343
  pe.ellipsoidShapeUvLongitudeMinMaxMid = Cartesian3.fromElements(
133144
133344
  Re,
133145
133345
  Ge,
133146
- J,
133346
+ Z,
133147
133347
  pe.ellipsoidShapeUvLongitudeMinMaxMid
133148
133348
  );
133149
133349
  }
133150
- if (Z && (K && (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MIN = !0, Te.ELLIPSOID_INTERSECTION_INDEX_LATITUDE_MIN = se, H ? (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MIN_UNDER_HALF = !0, se += 1) : Q ? (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MIN_EQUAL_HALF = !0, se += 1) : ne && (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MIN_OVER_HALF = !0, se += 2)), z && (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MAX = !0, Te.ELLIPSOID_INTERSECTION_INDEX_LATITUDE_MAX = se, $ ? (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MAX_UNDER_HALF = !0, se += 2) : G ? (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MAX_EQUAL_HALF = !0, se += 1) : q && (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MAX_OVER_HALF = !0, se += 1)), pe.ellipsoidRenderLatitudeSinMinMax = Cartesian2.fromElements(
133350
+ if (ee && (J && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MIN = !0, Ce.ELLIPSOID_INTERSECTION_INDEX_LATITUDE_MIN = ce, H ? (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MIN_UNDER_HALF = !0, ce += 1) : K ? (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MIN_EQUAL_HALF = !0, ce += 1) : X && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MIN_OVER_HALF = !0, ce += 2)), z && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MAX = !0, Ce.ELLIPSOID_INTERSECTION_INDEX_LATITUDE_MAX = ce, $ ? (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MAX_UNDER_HALF = !0, ce += 2) : G ? (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MAX_EQUAL_HALF = !0, ce += 1) : q && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MAX_OVER_HALF = !0, ce += 1)), pe.ellipsoidRenderLatitudeSinMinMax = Cartesian2.fromElements(
133151
133351
  Math.sin(x.y),
133152
133352
  Math.sin(b.y),
133153
133353
  pe.ellipsoidRenderLatitudeSinMinMax
133154
- )), Se)
133155
- if (Te.ELLIPSOID_HAS_SHAPE_BOUNDS_LATITUDE = !0, ee < f)
133354
+ )), xe)
133355
+ if (Ce.ELLIPSOID_HAS_SHAPE_BOUNDS_LATITUDE = !0, te < f)
133156
133356
  pe.ellipsoidUvToShapeUvLatitude = Cartesian2.fromElements(
133157
133357
  0,
133158
133358
  1,
133159
133359
  pe.ellipsoidUvToShapeUvLatitude
133160
133360
  );
133161
133361
  else {
133162
- const De = (s.y - o.y) / ee, Re = (o.y - _.y) / ee;
133362
+ const De = (s.y - o.y) / te, Re = (o.y - _.y) / te;
133163
133363
  pe.ellipsoidUvToShapeUvLatitude = Cartesian2.fromElements(
133164
133364
  De,
133165
133365
  Re,
133166
133366
  pe.ellipsoidUvToShapeUvLatitude
133167
133367
  );
133168
133368
  }
133169
- return this.shaderMaximumIntersectionsLength = se, !0;
133369
+ return this.shaderMaximumIntersectionsLength = ce, !0;
133170
133370
  };
133171
133371
  const scratchRectangle$1 = new Rectangle();
133172
133372
  VoxelEllipsoidShape.prototype.computeOrientedBoundingBoxForTile = function(e, t, n, i, r) {
@@ -138001,30 +138201,30 @@ GlobeSurfaceShaderSet.prototype.getShaderProgram = function(e) {
138001
138201
  G.quantization === TerrainQuantization$1.BITS12 && (U = 1, k = "QUANTIZATION_BITS12");
138002
138202
  let z = 0, H = "";
138003
138203
  R && (z = 1, H = "TILE_LIMIT_RECTANGLE");
138004
- let Q = 0, ne = "";
138005
- L && (Q = 1, ne = "APPLY_IMAGERY_CUTOUT");
138006
- const K = t.mode, Z = K | r << 2 | o << 3 | s << 4 | c << 5 | l << 6 | d << 7 | p << 8 | m << 9 | _ << 10 | y << 11 | C << 12 | T << 13 | x << 14 | b << 15 | S << 16 | E << 17 | A << 18 | U << 19 | h << 20 | D << 21 | I << 22 | z << 23 | Q << 24 | g << 25 | w << 26 | O << 27 | N << 28 | F << 29 | B << 30 | V << 31 | f << 32;
138007
- let ee = 0;
138008
- defined(P) && P.length > 0 && (ee = D ? P.clippingPlanesState : 0);
138204
+ let K = 0, X = "";
138205
+ L && (K = 1, X = "APPLY_IMAGERY_CUTOUT");
138206
+ const J = t.mode, ee = J | r << 2 | o << 3 | s << 4 | c << 5 | l << 6 | d << 7 | p << 8 | m << 9 | _ << 10 | y << 11 | C << 12 | T << 13 | x << 14 | b << 15 | S << 16 | E << 17 | A << 18 | U << 19 | h << 20 | D << 21 | I << 22 | z << 23 | K << 24 | g << 25 | w << 26 | O << 27 | N << 28 | F << 29 | B << 30 | V << 31 | f << 32;
138207
+ let te = 0;
138208
+ defined(P) && P.length > 0 && (te = D ? P.clippingPlanesState : 0);
138009
138209
  let oe = 0;
138010
138210
  defined(M) && M.length > 0 && (oe = I ? M.clippingPolygonsState : 0);
138011
- let X = n.surfaceShader;
138012
- if (defined(X) && X.numberOfDayTextures === i && X.flags === Z && X.material === this.material && X.clippingShaderState === ee && X.clippingPolygonShaderState === oe)
138013
- return X.shaderProgram;
138211
+ let Q = n.surfaceShader;
138212
+ if (defined(Q) && Q.numberOfDayTextures === i && Q.flags === ee && Q.material === this.material && Q.clippingShaderState === te && Q.clippingPolygonShaderState === oe)
138213
+ return Q.shaderProgram;
138014
138214
  let he = this._shadersByTexturesFlags[i];
138015
- if (defined(he) || (he = this._shadersByTexturesFlags[i] = []), X = he[Z], !defined(X) || X.material !== this.material || X.clippingShaderState !== ee || X.clippingPolygonShaderState !== oe) {
138016
- const de = this.baseVertexShaderSource.clone(), ce = this.baseFragmentShaderSource.clone();
138017
- ee !== 0 && ce.sources.unshift(
138215
+ if (defined(he) || (he = this._shadersByTexturesFlags[i] = []), Q = he[ee], !defined(Q) || Q.material !== this.material || Q.clippingShaderState !== te || Q.clippingPolygonShaderState !== oe) {
138216
+ const ue = this.baseVertexShaderSource.clone(), se = this.baseFragmentShaderSource.clone();
138217
+ te !== 0 && se.sources.unshift(
138018
138218
  getClippingFunction(P, t.context)
138019
- ), oe !== 0 && (ce.sources.unshift(getPolygonClippingFunction(t.context)), de.sources.unshift(getUnpackClippingFunction(t.context))), de.defines.push(k), ce.defines.push(
138219
+ ), oe !== 0 && (se.sources.unshift(getPolygonClippingFunction(t.context)), ue.sources.unshift(getUnpackClippingFunction(t.context))), ue.defines.push(k), se.defines.push(
138020
138220
  `TEXTURE_UNITS ${i}`,
138021
138221
  H,
138022
- ne
138023
- ), r && ce.defines.push("APPLY_BRIGHTNESS"), o && ce.defines.push("APPLY_CONTRAST"), s && ce.defines.push("APPLY_HUE"), c && ce.defines.push("APPLY_SATURATION"), l && ce.defines.push("APPLY_GAMMA"), d && ce.defines.push("APPLY_ALPHA"), f && ce.defines.push("APPLY_DAY_NIGHT_ALPHA"), p && ce.defines.push("HAS_WATER_MASK"), m && (ce.defines.push("SHOW_REFLECTIVE_OCEAN"), de.defines.push("SHOW_REFLECTIVE_OCEAN")), _ && ce.defines.push("SHOW_OCEAN_WAVES"), O && ce.defines.push("APPLY_COLOR_TO_ALPHA"), B && (de.defines.push("UNDERGROUND_COLOR"), ce.defines.push("UNDERGROUND_COLOR")), V && (de.defines.push("TRANSLUCENT"), ce.defines.push("TRANSLUCENT")), y && (S ? (de.defines.push("ENABLE_VERTEX_LIGHTING"), ce.defines.push("ENABLE_VERTEX_LIGHTING")) : (de.defines.push("ENABLE_DAYNIGHT_SHADING"), ce.defines.push("ENABLE_DAYNIGHT_SHADING"))), typeof globalThis < "u" && globalThis.useVcsCustomShading && ce.defines.push("USE_VCS_CUSTOM_SHADING"), C && (de.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING"), ce.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING"), T && (de.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING_FROM_SUN"), ce.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING_FROM_SUN"))), x && (de.defines.push("GROUND_ATMOSPHERE"), ce.defines.push("GROUND_ATMOSPHERE"), b && (de.defines.push("PER_FRAGMENT_GROUND_ATMOSPHERE"), ce.defines.push("PER_FRAGMENT_GROUND_ATMOSPHERE"))), de.defines.push("INCLUDE_WEB_MERCATOR_Y"), ce.defines.push("INCLUDE_WEB_MERCATOR_Y"), A && (de.defines.push("FOG"), ce.defines.push("FOG")), h && ce.defines.push("APPLY_SPLIT"), D && ce.defines.push("ENABLE_CLIPPING_PLANES"), I && (ce.defines.push("ENABLE_CLIPPING_POLYGONS"), de.defines.push("ENABLE_CLIPPING_POLYGONS"), M.inverse && ce.defines.push("CLIPPING_INVERSE"), ce.defines.push(
138222
+ X
138223
+ ), r && se.defines.push("APPLY_BRIGHTNESS"), o && se.defines.push("APPLY_CONTRAST"), s && se.defines.push("APPLY_HUE"), c && se.defines.push("APPLY_SATURATION"), l && se.defines.push("APPLY_GAMMA"), d && se.defines.push("APPLY_ALPHA"), f && se.defines.push("APPLY_DAY_NIGHT_ALPHA"), p && se.defines.push("HAS_WATER_MASK"), m && (se.defines.push("SHOW_REFLECTIVE_OCEAN"), ue.defines.push("SHOW_REFLECTIVE_OCEAN")), _ && se.defines.push("SHOW_OCEAN_WAVES"), O && se.defines.push("APPLY_COLOR_TO_ALPHA"), B && (ue.defines.push("UNDERGROUND_COLOR"), se.defines.push("UNDERGROUND_COLOR")), V && (ue.defines.push("TRANSLUCENT"), se.defines.push("TRANSLUCENT")), y && (S ? (ue.defines.push("ENABLE_VERTEX_LIGHTING"), se.defines.push("ENABLE_VERTEX_LIGHTING")) : (ue.defines.push("ENABLE_DAYNIGHT_SHADING"), se.defines.push("ENABLE_DAYNIGHT_SHADING"))), typeof globalThis < "u" && globalThis.useVcsCustomShading && se.defines.push("USE_VCS_CUSTOM_SHADING"), C && (ue.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING"), se.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING"), T && (ue.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING_FROM_SUN"), se.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING_FROM_SUN"))), x && (ue.defines.push("GROUND_ATMOSPHERE"), se.defines.push("GROUND_ATMOSPHERE"), b && (ue.defines.push("PER_FRAGMENT_GROUND_ATMOSPHERE"), se.defines.push("PER_FRAGMENT_GROUND_ATMOSPHERE"))), ue.defines.push("INCLUDE_WEB_MERCATOR_Y"), se.defines.push("INCLUDE_WEB_MERCATOR_Y"), A && (ue.defines.push("FOG"), se.defines.push("FOG")), h && se.defines.push("APPLY_SPLIT"), D && se.defines.push("ENABLE_CLIPPING_PLANES"), I && (se.defines.push("ENABLE_CLIPPING_POLYGONS"), ue.defines.push("ENABLE_CLIPPING_POLYGONS"), M.inverse && se.defines.push("CLIPPING_INVERSE"), se.defines.push(
138024
138224
  `CLIPPING_POLYGON_REGIONS_LENGTH ${M.extentsCount}`
138025
- ), de.defines.push(
138225
+ ), ue.defines.push(
138026
138226
  `CLIPPING_POLYGON_REGIONS_LENGTH ${M.extentsCount}`
138027
- )), g && ce.defines.push("COLOR_CORRECT"), w && ce.defines.push("HIGHLIGHT_FILL_TILE"), N && de.defines.push("GEODETIC_SURFACE_NORMALS"), F && de.defines.push("EXAGGERATION");
138227
+ )), g && se.defines.push("COLOR_CORRECT"), w && se.defines.push("HIGHLIGHT_FILL_TILE"), N && ue.defines.push("GEODETIC_SURFACE_NORMALS"), F && ue.defines.push("EXAGGERATION");
138028
138228
  let _e = ` vec4 computeDayColor(vec4 initialColor, vec3 textureCoordinates, float nightBlend)
138029
138229
  {
138030
138230
  vec4 color = initialColor;
@@ -138056,23 +138256,23 @@ ${r ? `u_dayTextureBrightness[${re}]` : "0.0"},
138056
138256
  `, L && (_e += ` color = czm_branchFreeTernary(texelUnclipped, cutoutAndColorResult, color);
138057
138257
  `);
138058
138258
  _e += ` return color;
138059
- }`, ce.sources.push(_e), de.sources.push(getPositionMode(K)), de.sources.push(get2DYPositionFraction(E));
138060
- const ge = ShaderProgram.fromCache({
138259
+ }`, se.sources.push(_e), ue.sources.push(getPositionMode(J)), ue.sources.push(get2DYPositionFraction(E));
138260
+ const me = ShaderProgram.fromCache({
138061
138261
  context: t.context,
138062
- vertexShaderSource: de,
138063
- fragmentShaderSource: ce,
138262
+ vertexShaderSource: ue,
138263
+ fragmentShaderSource: se,
138064
138264
  attributeLocations: G.getAttributeLocations()
138065
138265
  });
138066
- X = he[Z] = new GlobeSurfaceShader(
138266
+ Q = he[ee] = new GlobeSurfaceShader(
138067
138267
  i,
138068
- Z,
138069
- this.material,
138070
- ge,
138071
138268
  ee,
138269
+ this.material,
138270
+ me,
138271
+ te,
138072
138272
  oe
138073
138273
  );
138074
138274
  }
138075
- return n.surfaceShader = X, X.shaderProgram;
138275
+ return n.surfaceShader = Q, Q.shaderProgram;
138076
138276
  };
138077
138277
  GlobeSurfaceShaderSet.prototype.destroy = function() {
138078
138278
  let e, t;
@@ -142428,78 +142628,78 @@ function createFillMesh(e, t, n, i) {
142428
142628
  TileEdge.SOUTH,
142429
142629
  V
142430
142630
  ), b = V.minimumHeight, S = V.maximumHeight;
142431
- const Q = OrientedBoundingBox.fromRectangle(
142631
+ const K = OrientedBoundingBox.fromRectangle(
142432
142632
  s,
142433
142633
  b,
142434
142634
  S,
142435
142635
  n.tilingScheme.ellipsoid
142436
- ), ne = WebMercatorProjection.geodeticLatitudeToMercatorAngle(
142636
+ ), X = WebMercatorProjection.geodeticLatitudeToMercatorAngle(
142437
142637
  s.south
142438
- ), K = 1 / (WebMercatorProjection.geodeticLatitudeToMercatorAngle(s.north) - ne), Z = (WebMercatorProjection.geodeticLatitudeToMercatorAngle(
142638
+ ), J = 1 / (WebMercatorProjection.geodeticLatitudeToMercatorAngle(s.north) - X), ee = (WebMercatorProjection.geodeticLatitudeToMercatorAngle(
142439
142639
  w.latitude
142440
- ) - ne) * K, ee = f.geodeticSurfaceNormalCartographic(
142640
+ ) - X) * J, te = f.geodeticSurfaceNormalCartographic(
142441
142641
  cartographicScratch,
142442
142642
  normalScratch
142443
142643
  ), oe = AttributeCompression.octEncode(
142444
- ee,
142644
+ te,
142445
142645
  octEncodedNormalScratch
142446
- ), X = $;
142646
+ ), Q = $;
142447
142647
  N.encode(
142448
142648
  k,
142449
142649
  $ * U,
142450
- Q.center,
142650
+ K.center,
142451
142651
  Cartesian2.fromElements(0.5, 0.5, uvScratch),
142452
142652
  E,
142453
142653
  oe,
142454
- Z,
142455
- ee
142654
+ ee,
142655
+ te
142456
142656
  ), ++$;
142457
- const he = $, de = he < 256 ? 1 : 2, ce = (he - 1) * 3, _e = ce * de, ge = (k.length - he * U) * Float32Array.BYTES_PER_ELEMENT;
142657
+ const he = $, ue = he < 256 ? 1 : 2, se = (he - 1) * 3, _e = se * ue, me = (k.length - he * U) * Float32Array.BYTES_PER_ELEMENT;
142458
142658
  let re;
142459
- if (ge >= _e) {
142659
+ if (me >= _e) {
142460
142660
  const j = he * U * Float32Array.BYTES_PER_ELEMENT;
142461
- re = he < 256 ? new Uint8Array(k.buffer, j, ce) : new Uint16Array(k.buffer, j, ce);
142661
+ re = he < 256 ? new Uint8Array(k.buffer, j, se) : new Uint16Array(k.buffer, j, se);
142462
142662
  } else
142463
- re = he < 256 ? new Uint8Array(ce) : new Uint16Array(ce);
142663
+ re = he < 256 ? new Uint8Array(se) : new Uint16Array(se);
142464
142664
  k = new Float32Array(k.buffer, 0, he * U);
142465
- let Se = 0;
142665
+ let xe = 0;
142466
142666
  for (A = 0; A < he - 2; ++A)
142467
- re[Se++] = X, re[Se++] = A, re[Se++] = A + 1;
142468
- re[Se++] = X, re[Se++] = A, re[Se++] = 0;
142667
+ re[xe++] = Q, re[xe++] = A, re[xe++] = A + 1;
142668
+ re[xe++] = Q, re[xe++] = A, re[xe++] = 0;
142469
142669
  const pe = [];
142470
142670
  for (A = q; A >= G; --A)
142471
142671
  pe.push(A);
142472
- const Te = [];
142672
+ const Ce = [];
142473
142673
  for (A = z; A >= q; --A)
142474
- Te.push(A);
142475
- const xe = [];
142674
+ Ce.push(A);
142675
+ const be = [];
142476
142676
  for (A = H; A >= z; --A)
142477
- xe.push(A);
142677
+ be.push(A);
142478
142678
  const W = [];
142479
- for (W.push(0), A = X - 1; A >= H; --A)
142679
+ for (W.push(0), A = Q - 1; A >= H; --A)
142480
142680
  W.push(A);
142481
142681
  o.mesh = new TerrainMesh(
142482
142682
  N.center,
142483
142683
  k,
142484
142684
  re,
142485
- ce,
142685
+ se,
142486
142686
  he,
142487
142687
  b,
142488
142688
  S,
142489
- BoundingSphere.fromOrientedBoundingBox(Q),
142689
+ BoundingSphere.fromOrientedBoundingBox(K),
142490
142690
  computeOccludeePoint$1(
142491
142691
  e,
142492
- Q.center,
142692
+ K.center,
142493
142693
  s,
142494
142694
  b,
142495
142695
  S
142496
142696
  ),
142497
142697
  N.stride,
142498
- Q,
142698
+ K,
142499
142699
  N,
142500
142700
  pe,
142501
- Te,
142502
- xe,
142701
+ Ce,
142702
+ be,
142503
142703
  W
142504
142704
  );
142505
142705
  }
@@ -143972,8 +144172,8 @@ function addDrawCommandsForTile(e, t, n) {
143972
144172
  const r = n.creditDisplay, o = i.terrainData;
143973
144173
  if (defined(o) && defined(o.credits)) {
143974
144174
  const j = o.credits;
143975
- for (let se = 0, Pe = j.length; se < Pe; ++se)
143976
- r.addCreditToNextFrame(j[se]);
144175
+ for (let ce = 0, Ee = j.length; ce < Ee; ++ce)
144176
+ r.addCreditToNextFrame(j[ce]);
143977
144177
  }
143978
144178
  let s = ContextLimits.maximumTextureImageUnits, c = i.waterMaskTexture, l = i.waterMaskTranslationAndScale;
143979
144179
  !defined(c) && defined(i.fill) && (c = i.fill.waterMaskTexture, l = i.fill.waterMaskTranslationAndScale);
@@ -143986,54 +144186,54 @@ function addDrawCommandsForTile(e, t, n) {
143986
144186
  ), T = isUndergroundVisible(e, n) && n.mode === SceneMode$1.SCENE3D && y.alpha > 0 && (C.nearValue > 0 || C.farValue > 0), x = e.lambertDiffuseMultiplier, b = e.vertexShadowDarkness, S = e.hasWaterMask && defined(c), E = S && e.showWaterEffect, A = e.oceanNormalMap, D = E && defined(A), P = e.terrainProvider, I = defined(P) && e.terrainProvider.hasVertexNormals, M = n.fog.enabled && n.fog.renderable && !d, R = e.showGroundAtmosphere && n.mode === SceneMode$1.SCENE3D, L = ShadowMode$1.castShadows(e.shadows) && !h, g = ShadowMode$1.receiveShadows(e.shadows) && !h, w = e.hueShift, O = e.saturationShift, N = e.brightnessShift;
143987
144187
  let F = !(CesiumMath.equalsEpsilon(w, 0, CesiumMath.EPSILON7) && CesiumMath.equalsEpsilon(O, 0, CesiumMath.EPSILON7) && CesiumMath.equalsEpsilon(N, 0, CesiumMath.EPSILON7)), B = !1;
143988
144188
  if (R) {
143989
- const j = Cartesian3.magnitude(n.camera.positionWC), se = e.nightFadeOutDistance;
143990
- B = j > se;
144189
+ const j = Cartesian3.magnitude(n.camera.positionWC), ce = e.nightFadeOutDistance;
144190
+ B = j > ce;
143991
144191
  }
143992
144192
  S && --s, D && --s, defined(n.shadowState) && n.shadowState.shadowsEnabled && --s, defined(e.clippingPlanes) && e.clippingPlanes.enabled && --s, defined(e.clippingPolygons) && e.clippingPolygons.enabled && (--s, --s), s -= f.numberOfTextureUniforms;
143993
144193
  const V = i.renderedMesh;
143994
144194
  let U = V.center;
143995
- const k = V.encoding, $ = i.tileBoundingRegion, G = n.verticalExaggeration, q = n.verticalExaggerationRelativeHeight, z = G !== 1, H = k.hasGeodeticSurfaceNormals, Q = tileRectangleScratch;
143996
- let ne = 0, K = 0, Z = 0, ee = 0, oe = !1;
144195
+ const k = V.encoding, $ = i.tileBoundingRegion, G = n.verticalExaggeration, q = n.verticalExaggerationRelativeHeight, z = G !== 1, H = k.hasGeodeticSurfaceNormals, K = tileRectangleScratch;
144196
+ let X = 0, J = 0, ee = 0, te = 0, oe = !1;
143997
144197
  if (n.mode !== SceneMode$1.SCENE3D) {
143998
- const j = n.mapProjection, se = j.project(
144198
+ const j = n.mapProjection, ce = j.project(
143999
144199
  Rectangle.southwest(t.rectangle),
144000
144200
  southwestScratch
144001
- ), Pe = j.project(
144201
+ ), Ee = j.project(
144002
144202
  Rectangle.northeast(t.rectangle),
144003
144203
  northeastScratch
144004
144204
  );
144005
- if (Q.x = se.x, Q.y = se.y, Q.z = Pe.x, Q.w = Pe.y, n.mode !== SceneMode$1.MORPHING && (U = rtcScratch, U.x = 0, U.y = (Q.z + Q.x) * 0.5, U.z = (Q.w + Q.y) * 0.5, Q.x -= U.y, Q.y -= U.z, Q.z -= U.y, Q.w -= U.z), n.mode === SceneMode$1.SCENE2D && k.quantization === TerrainQuantization$1.BITS12) {
144006
- const le = 1 / (Math.pow(2, 12) - 1) * 0.5, De = (Q.z - Q.x) * le, Re = (Q.w - Q.y) * le;
144007
- Q.x -= De, Q.y -= Re, Q.z += De, Q.w += Re;
144205
+ if (K.x = ce.x, K.y = ce.y, K.z = Ee.x, K.w = Ee.y, n.mode !== SceneMode$1.MORPHING && (U = rtcScratch, U.x = 0, U.y = (K.z + K.x) * 0.5, U.z = (K.w + K.y) * 0.5, K.x -= U.y, K.y -= U.z, K.z -= U.y, K.w -= U.z), n.mode === SceneMode$1.SCENE2D && k.quantization === TerrainQuantization$1.BITS12) {
144206
+ const le = 1 / (Math.pow(2, 12) - 1) * 0.5, De = (K.z - K.x) * le, Re = (K.w - K.y) * le;
144207
+ K.x -= De, K.y -= Re, K.z += De, K.w += Re;
144008
144208
  }
144009
- j instanceof WebMercatorProjection && (ne = t.rectangle.south, K = t.rectangle.north, Z = WebMercatorProjection.geodeticLatitudeToMercatorAngle(
144010
- ne
144011
- ), ee = 1 / (WebMercatorProjection.geodeticLatitudeToMercatorAngle(K) - Z), oe = !0);
144209
+ j instanceof WebMercatorProjection && (X = t.rectangle.south, J = t.rectangle.north, ee = WebMercatorProjection.geodeticLatitudeToMercatorAngle(
144210
+ X
144211
+ ), te = 1 / (WebMercatorProjection.geodeticLatitudeToMercatorAngle(J) - ee), oe = !0);
144012
144212
  }
144013
- const X = surfaceShaderSetOptionsScratch;
144014
- X.frameState = n, X.surfaceTile = i, X.hasWaterMask = S, X.showReflectiveOcean = E, X.showOceanWaves = D, X.enableLighting = e.enableLighting, X.dynamicAtmosphereLighting = e.dynamicAtmosphereLighting, X.dynamicAtmosphereLightingFromSun = e.dynamicAtmosphereLightingFromSun, X.showGroundAtmosphere = R, X.atmosphereLightIntensity = e.atmosphereLightIntensity, X.atmosphereRayleighCoefficient = e.atmosphereRayleighCoefficient, X.atmosphereMieCoefficient = e.atmosphereMieCoefficient, X.atmosphereRayleighScaleHeight = e.atmosphereRayleighScaleHeight, X.atmosphereMieScaleHeight = e.atmosphereMieScaleHeight, X.atmosphereMieAnisotropy = e.atmosphereMieAnisotropy, X.perFragmentGroundAtmosphere = B, X.hasVertexNormals = I, X.useWebMercatorProjection = oe, X.clippedByBoundaries = i.clippedByBoundaries, X.hasGeodeticSurfaceNormals = H, X.hasExaggeration = z;
144213
+ const Q = surfaceShaderSetOptionsScratch;
144214
+ Q.frameState = n, Q.surfaceTile = i, Q.hasWaterMask = S, Q.showReflectiveOcean = E, Q.showOceanWaves = D, Q.enableLighting = e.enableLighting, Q.dynamicAtmosphereLighting = e.dynamicAtmosphereLighting, Q.dynamicAtmosphereLightingFromSun = e.dynamicAtmosphereLightingFromSun, Q.showGroundAtmosphere = R, Q.atmosphereLightIntensity = e.atmosphereLightIntensity, Q.atmosphereRayleighCoefficient = e.atmosphereRayleighCoefficient, Q.atmosphereMieCoefficient = e.atmosphereMieCoefficient, Q.atmosphereRayleighScaleHeight = e.atmosphereRayleighScaleHeight, Q.atmosphereMieScaleHeight = e.atmosphereMieScaleHeight, Q.atmosphereMieAnisotropy = e.atmosphereMieAnisotropy, Q.perFragmentGroundAtmosphere = B, Q.hasVertexNormals = I, Q.useWebMercatorProjection = oe, Q.clippedByBoundaries = i.clippedByBoundaries, Q.hasGeodeticSurfaceNormals = H, Q.hasExaggeration = z;
144015
144215
  const he = i.imagery;
144016
- let de = 0;
144017
- const ce = he.length, _e = e.showSkirts && !d && !h, ge = e.backFaceCulling && !d && !h, re = ge ? e._renderState : e._disableCullingRenderState, Se = ge ? e._blendRenderState : e._disableCullingBlendRenderState;
144018
- let pe = re, Te = e._firstPassInitialColor;
144019
- const xe = n.context;
144216
+ let ue = 0;
144217
+ const se = he.length, _e = e.showSkirts && !d && !h, me = e.backFaceCulling && !d && !h, re = me ? e._renderState : e._disableCullingRenderState, xe = me ? e._blendRenderState : e._disableCullingBlendRenderState;
144218
+ let pe = re, Ce = e._firstPassInitialColor;
144219
+ const be = n.context;
144020
144220
  if (defined(e._debug.boundingSphereTile) || debugDestroyPrimitive(), e._materialUniformMap !== e.materialUniformMap) {
144021
144221
  e._materialUniformMap = e.materialUniformMap;
144022
144222
  const j = e._drawCommands.length;
144023
- for (let se = 0; se < j; ++se)
144024
- e._uniformMaps[se] = createTileUniformMap(
144223
+ for (let ce = 0; ce < j; ++ce)
144224
+ e._uniformMaps[ce] = createTileUniformMap(
144025
144225
  n,
144026
144226
  e
144027
144227
  );
144028
144228
  }
144029
144229
  do {
144030
- let j = 0, se, Pe;
144031
- if (e._drawCommands.length <= e._usedDrawCommands ? (se = new DrawCommand(), se.owner = t, se.cull = !1, se.boundingVolume = new BoundingSphere(), se.orientedBoundingBox = void 0, Pe = createTileUniformMap(n, e), e._drawCommands.push(se), e._uniformMaps.push(Pe)) : (se = e._drawCommands[e._usedDrawCommands], Pe = e._uniformMaps[e._usedDrawCommands]), se.owner = t, ++e._usedDrawCommands, t === e._debug.boundingSphereTile) {
144230
+ let j = 0, ce, Ee;
144231
+ if (e._drawCommands.length <= e._usedDrawCommands ? (ce = new DrawCommand(), ce.owner = t, ce.cull = !1, ce.boundingVolume = new BoundingSphere(), ce.orientedBoundingBox = void 0, Ee = createTileUniformMap(n, e), e._drawCommands.push(ce), e._uniformMaps.push(Ee)) : (ce = e._drawCommands[e._usedDrawCommands], Ee = e._uniformMaps[e._usedDrawCommands]), ce.owner = t, ++e._usedDrawCommands, t === e._debug.boundingSphereTile) {
144032
144232
  const ke = $.boundingVolume, Qe = $.boundingSphere;
144033
144233
  defined(ke) ? getDebugOrientedBoundingBox(ke, Color.RED).update(n) : defined(Qe) && getDebugBoundingSphere(Qe, Color.RED).update(n);
144034
144234
  }
144035
- const le = Pe.properties;
144036
- Cartesian4.clone(Te, le.initialColor), le.oceanNormalMap = A, le.lightingFadeDistance.x = e.lightingFadeOutDistance, le.lightingFadeDistance.y = e.lightingFadeInDistance, le.nightFadeDistance.x = e.nightFadeOutDistance, le.nightFadeDistance.y = e.nightFadeInDistance, le.atmosphereLightIntensity = e.atmosphereLightIntensity, le.atmosphereRayleighCoefficient = e.atmosphereRayleighCoefficient, le.atmosphereMieCoefficient = e.atmosphereMieCoefficient, le.atmosphereRayleighScaleHeight = e.atmosphereRayleighScaleHeight, le.atmosphereMieScaleHeight = e.atmosphereMieScaleHeight, le.atmosphereMieAnisotropy = e.atmosphereMieAnisotropy, le.zoomedOutOceanSpecularIntensity = e.zoomedOutOceanSpecularIntensity;
144235
+ const le = Ee.properties;
144236
+ Cartesian4.clone(Ce, le.initialColor), le.oceanNormalMap = A, le.lightingFadeDistance.x = e.lightingFadeOutDistance, le.lightingFadeDistance.y = e.lightingFadeInDistance, le.nightFadeDistance.x = e.nightFadeOutDistance, le.nightFadeDistance.y = e.nightFadeInDistance, le.atmosphereLightIntensity = e.atmosphereLightIntensity, le.atmosphereRayleighCoefficient = e.atmosphereRayleighCoefficient, le.atmosphereMieCoefficient = e.atmosphereMieCoefficient, le.atmosphereRayleighScaleHeight = e.atmosphereRayleighScaleHeight, le.atmosphereMieScaleHeight = e.atmosphereMieScaleHeight, le.atmosphereMieAnisotropy = e.atmosphereMieAnisotropy, le.zoomedOutOceanSpecularIntensity = e.zoomedOutOceanSpecularIntensity;
144037
144237
  const De = d ? m : p, Re = d ? p : m;
144038
144238
  defined(De) && (Cartesian4.fromElements(
144039
144239
  De.near,
@@ -144058,11 +144258,11 @@ function addDrawCommandsForTile(e, t, n) {
144058
144258
  Ge && Color.clone(
144059
144259
  e.fillHighlightColor,
144060
144260
  le.fillHighlightColor
144061
- ), le.verticalExaggerationAndRelativeHeight.x = G, le.verticalExaggerationAndRelativeHeight.y = q, le.center3D = V.center, Cartesian3.clone(U, le.rtc), Cartesian4.clone(Q, le.tileRectangle), le.southAndNorthLatitude.x = ne, le.southAndNorthLatitude.y = K, le.southMercatorYAndOneOverHeight.x = Z, le.southMercatorYAndOneOverHeight.y = ee;
144261
+ ), le.verticalExaggerationAndRelativeHeight.x = G, le.verticalExaggerationAndRelativeHeight.y = q, le.center3D = V.center, Cartesian3.clone(U, le.rtc), Cartesian4.clone(K, le.tileRectangle), le.southAndNorthLatitude.x = X, le.southAndNorthLatitude.y = J, le.southMercatorYAndOneOverHeight.x = ee, le.southMercatorYAndOneOverHeight.y = te;
144062
144262
  const Le = localizedCartographicLimitRectangleScratch, Ue = clipRectangleAntimeridian(
144063
144263
  t.rectangle,
144064
144264
  e.cartographicLimitRectangle
144065
- ), J = localizedTranslucencyRectangleScratch, ae = clipRectangleAntimeridian(
144265
+ ), Z = localizedTranslucencyRectangleScratch, ae = clipRectangleAntimeridian(
144066
144266
  t.rectangle,
144067
144267
  _
144068
144268
  );
@@ -144072,37 +144272,37 @@ function addDrawCommandsForTile(e, t, n) {
144072
144272
  N,
144073
144273
  le.hsbShift
144074
144274
  );
144075
- const te = t.rectangle, ie = 1 / te.width, ue = 1 / te.height;
144076
- Le.x = (Ue.west - te.west) * ie, Le.y = (Ue.south - te.south) * ue, Le.z = (Ue.east - te.west) * ie, Le.w = (Ue.north - te.south) * ue, Cartesian4.clone(
144275
+ const ne = t.rectangle, ie = 1 / ne.width, de = 1 / ne.height;
144276
+ Le.x = (Ue.west - ne.west) * ie, Le.y = (Ue.south - ne.south) * de, Le.z = (Ue.east - ne.west) * ie, Le.w = (Ue.north - ne.south) * de, Cartesian4.clone(
144077
144277
  Le,
144078
144278
  le.localizedCartographicLimitRectangle
144079
- ), J.x = (ae.west - te.west) * ie, J.y = (ae.south - te.south) * ue, J.z = (ae.east - te.west) * ie, J.w = (ae.north - te.south) * ue, Cartesian4.clone(
144080
- J,
144279
+ ), Z.x = (ae.west - ne.west) * ie, Z.y = (ae.south - ne.south) * de, Z.z = (ae.east - ne.west) * ie, Z.w = (ae.north - ne.south) * de, Cartesian4.clone(
144280
+ Z,
144081
144281
  le.localizedTranslucencyRectangle
144082
144282
  );
144083
- const me = M && CesiumMath.fog(t._distance, n.fog.density) > CesiumMath.EPSILON3;
144084
- F = F && (me || R);
144085
- let be = !1, Ie = !1, we = !1, He = !1, We = !1, Ae = !1, Ee = !1, $e = !1, Fe = !1, Ke = !1;
144086
- for (; j < s && de < ce; ) {
144087
- const ke = he[de], Qe = ke.readyImagery;
144088
- if (++de, !defined(Qe) || Qe.imageryLayer.alpha === 0)
144283
+ const ge = M && CesiumMath.fog(t._distance, n.fog.density) > CesiumMath.EPSILON3;
144284
+ F = F && (ge || R);
144285
+ let Se = !1, Ie = !1, we = !1, He = !1, We = !1, Pe = !1, Ae = !1, $e = !1, Fe = !1, Ke = !1;
144286
+ for (; j < s && ue < se; ) {
144287
+ const ke = he[ue], Qe = ke.readyImagery;
144288
+ if (++ue, !defined(Qe) || Qe.imageryLayer.alpha === 0)
144089
144289
  continue;
144090
144290
  const Ye = ke.useWebMercatorT ? Qe.textureWebMercator : Qe.texture, Ve = Qe.imageryLayer;
144091
144291
  defined(ke.textureTranslationAndScale) || (ke.textureTranslationAndScale = Ve._calculateTextureTranslationAndScale(
144092
144292
  t,
144093
144293
  ke
144094
- )), le.dayTextures[j] = Ye, le.dayTextureTranslationAndScale[j] = ke.textureTranslationAndScale, le.dayTextureTexCoordsRectangle[j] = ke.textureCoordinateRectangle, le.dayTextureUseWebMercatorT[j] = ke.useWebMercatorT, le.dayTextureAlpha[j] = Ve.alpha, Ae = Ae || le.dayTextureAlpha[j] !== 1, le.dayTextureNightAlpha[j] = Ve.nightAlpha, Ee = Ee || le.dayTextureNightAlpha[j] !== 1, le.dayTextureDayAlpha[j] = Ve.dayAlpha, Ee = Ee || le.dayTextureDayAlpha[j] !== 1, le.dayTextureBrightness[j] = Ve.brightness, be = be || le.dayTextureBrightness[j] !== ImageryLayer.DEFAULT_BRIGHTNESS, le.dayTextureContrast[j] = Ve.contrast, Ie = Ie || le.dayTextureContrast[j] !== ImageryLayer.DEFAULT_CONTRAST, le.dayTextureHue[j] = Ve.hue, we = we || le.dayTextureHue[j] !== ImageryLayer.DEFAULT_HUE, le.dayTextureSaturation[j] = Ve.saturation, He = He || le.dayTextureSaturation[j] !== ImageryLayer.DEFAULT_SATURATION, le.dayTextureOneOverGamma[j] = 1 / Ve.gamma, We = We || le.dayTextureOneOverGamma[j] !== 1 / ImageryLayer.DEFAULT_GAMMA, le.dayTextureSplit[j] = Ve.splitDirection, $e = $e || le.dayTextureSplit[j] !== 0;
144294
+ )), le.dayTextures[j] = Ye, le.dayTextureTranslationAndScale[j] = ke.textureTranslationAndScale, le.dayTextureTexCoordsRectangle[j] = ke.textureCoordinateRectangle, le.dayTextureUseWebMercatorT[j] = ke.useWebMercatorT, le.dayTextureAlpha[j] = Ve.alpha, Pe = Pe || le.dayTextureAlpha[j] !== 1, le.dayTextureNightAlpha[j] = Ve.nightAlpha, Ae = Ae || le.dayTextureNightAlpha[j] !== 1, le.dayTextureDayAlpha[j] = Ve.dayAlpha, Ae = Ae || le.dayTextureDayAlpha[j] !== 1, le.dayTextureBrightness[j] = Ve.brightness, Se = Se || le.dayTextureBrightness[j] !== ImageryLayer.DEFAULT_BRIGHTNESS, le.dayTextureContrast[j] = Ve.contrast, Ie = Ie || le.dayTextureContrast[j] !== ImageryLayer.DEFAULT_CONTRAST, le.dayTextureHue[j] = Ve.hue, we = we || le.dayTextureHue[j] !== ImageryLayer.DEFAULT_HUE, le.dayTextureSaturation[j] = Ve.saturation, He = He || le.dayTextureSaturation[j] !== ImageryLayer.DEFAULT_SATURATION, le.dayTextureOneOverGamma[j] = 1 / Ve.gamma, We = We || le.dayTextureOneOverGamma[j] !== 1 / ImageryLayer.DEFAULT_GAMMA, le.dayTextureSplit[j] = Ve.splitDirection, $e = $e || le.dayTextureSplit[j] !== 0;
144095
144295
  let et = le.dayTextureCutoutRectangles[j];
144096
144296
  if (defined(et) || (et = le.dayTextureCutoutRectangles[j] = new Cartesian4()), Cartesian4.clone(Cartesian4.ZERO, et), defined(Ve.cutoutRectangle)) {
144097
144297
  const Me = clipRectangleAntimeridian(
144098
- te,
144298
+ ne,
144099
144299
  Ve.cutoutRectangle
144100
144300
  ), ye = Rectangle.simpleIntersection(
144101
144301
  Me,
144102
- te,
144302
+ ne,
144103
144303
  rectangleIntersectionScratch
144104
144304
  );
144105
- Fe = defined(ye) || Fe, et.x = (Me.west - te.west) * ie, et.y = (Me.south - te.south) * ue, et.z = (Me.east - te.west) * ie, et.w = (Me.north - te.south) * ue;
144305
+ Fe = defined(ye) || Fe, et.x = (Me.west - ne.west) * ie, et.y = (Me.south - ne.south) * de, et.z = (Me.east - ne.west) * ie, et.w = (Me.north - ne.south) * de;
144106
144306
  }
144107
144307
  let tt = le.colorsToAlpha[j];
144108
144308
  defined(tt) || (tt = le.colorsToAlpha[j] = new Cartesian4());
@@ -144129,13 +144329,13 @@ function addDrawCommandsForTile(e, t, n) {
144129
144329
  le.clippingPlanesEdgeColor
144130
144330
  ), le.clippingPlanesEdgeWidth = ve.edgeWidth);
144131
144331
  const rt = e._clippingPolygons, Be = defined(rt) && rt.enabled && t.isClipped;
144132
- X.numberOfDayTextures = j, X.applyBrightness = be, X.applyContrast = Ie, X.applyHue = we, X.applySaturation = He, X.applyGamma = We, X.applyAlpha = Ae, X.applyDayNightAlpha = Ee, X.applySplit = $e, X.enableFog = me, X.enableClippingPlanes = Ne, X.clippingPlanes = ve, X.enableClippingPolygons = Be, X.clippingPolygons = rt, X.hasImageryLayerCutout = Fe, X.colorCorrect = F, X.highlightFillTile = Ge, X.colorToAlpha = Ke, X.showUndergroundColor = T, X.translucent = h;
144133
- let Ze = i.renderedMesh.indices.length;
144134
- _e || (Ze = i.renderedMesh.indexCountWithoutSkirts), se.shaderProgram = e._surfaceShaderSet.getShaderProgram(
144135
- X
144136
- ), se.castShadows = L, se.receiveShadows = g, se.renderState = pe, se.primitiveType = PrimitiveType$1.TRIANGLES, se.vertexArray = i.vertexArray || i.fill.vertexArray, se.count = Ze, se.uniformMap = Pe, se.pass = Pass$1.GLOBE, e._debug.wireframe && (createWireframeVertexArrayIfNecessary(xe, e, t), defined(i.wireframeVertexArray) && (se.vertexArray = i.wireframeVertexArray, se.primitiveType = PrimitiveType$1.LINES, se.count = Ze * 2));
144137
- let je = se.boundingVolume;
144138
- const at = se.orientedBoundingBox;
144332
+ Q.numberOfDayTextures = j, Q.applyBrightness = Se, Q.applyContrast = Ie, Q.applyHue = we, Q.applySaturation = He, Q.applyGamma = We, Q.applyAlpha = Pe, Q.applyDayNightAlpha = Ae, Q.applySplit = $e, Q.enableFog = ge, Q.enableClippingPlanes = Ne, Q.clippingPlanes = ve, Q.enableClippingPolygons = Be, Q.clippingPolygons = rt, Q.hasImageryLayerCutout = Fe, Q.colorCorrect = F, Q.highlightFillTile = Ge, Q.colorToAlpha = Ke, Q.showUndergroundColor = T, Q.translucent = h;
144333
+ let Je = i.renderedMesh.indices.length;
144334
+ _e || (Je = i.renderedMesh.indexCountWithoutSkirts), ce.shaderProgram = e._surfaceShaderSet.getShaderProgram(
144335
+ Q
144336
+ ), ce.castShadows = L, ce.receiveShadows = g, ce.renderState = pe, ce.primitiveType = PrimitiveType$1.TRIANGLES, ce.vertexArray = i.vertexArray || i.fill.vertexArray, ce.count = Je, ce.uniformMap = Ee, ce.pass = Pass$1.GLOBE, e._debug.wireframe && (createWireframeVertexArrayIfNecessary(be, e, t), defined(i.wireframeVertexArray) && (ce.vertexArray = i.wireframeVertexArray, ce.primitiveType = PrimitiveType$1.LINES, ce.count = Je * 2));
144337
+ let je = ce.boundingVolume;
144338
+ const at = ce.orientedBoundingBox;
144139
144339
  n.mode !== SceneMode$1.SCENE3D ? (BoundingSphere.fromRectangleWithHeights2D(
144140
144340
  t.rectangle,
144141
144341
  n.mapProjection,
@@ -144151,14 +144351,14 @@ function addDrawCommandsForTile(e, t, n) {
144151
144351
  $.boundingSphere,
144152
144352
  je,
144153
144353
  je
144154
- ))) : (se.boundingVolume = BoundingSphere.clone(
144354
+ ))) : (ce.boundingVolume = BoundingSphere.clone(
144155
144355
  $.boundingSphere,
144156
144356
  je
144157
- ), se.orientedBoundingBox = OrientedBoundingBox.clone(
144357
+ ), ce.orientedBoundingBox = OrientedBoundingBox.clone(
144158
144358
  $.boundingVolume,
144159
144359
  at
144160
- )), se.dirty = !0, h && f.updateDerivedCommands(se, n), pushCommand(se, n), pe = Se, Te = otherPassesInitialColor;
144161
- } while (de < ce);
144360
+ )), ce.dirty = !0, h && f.updateDerivedCommands(ce, n), pushCommand(ce, n), pe = xe, Ce = otherPassesInitialColor;
144361
+ } while (ue < se);
144162
144362
  }
144163
144363
  function GlobeTranslucency() {
144164
144364
  this._enabled = !1, this._frontFaceAlpha = 1, this._frontFaceAlphaByDistance = void 0, this._backFaceAlpha = 1, this._backFaceAlphaByDistance = void 0, this._rectangle = Rectangle.clone(Rectangle.MAX_VALUE);
@@ -149256,11 +149456,11 @@ var LercDecode = { exports: {} };
149256
149456
  readTiles: function(d, f, h) {
149257
149457
  var p = f.headerInfo, m = p.width, _ = p.height, y = p.microBlockSize, C = p.imageType, T = s.getDataTypeSize(C), x = Math.ceil(m / y), b = Math.ceil(_ / y);
149258
149458
  f.pixels.numBlocksY = b, f.pixels.numBlocksX = x, f.pixels.ptr = 0;
149259
- var S = 0, E = 0, A = 0, D = 0, P = 0, I = 0, M = 0, R = 0, L = 0, g = 0, w = 0, O = 0, N = 0, F = 0, B = 0, V = 0, U, k, $, G, q, z, H = new h(y * y), Q = _ % y || y, ne = m % y || y, K, Z, ee = p.numDims, oe, X = f.pixels.resultMask, he = f.pixels.resultPixels;
149459
+ var S = 0, E = 0, A = 0, D = 0, P = 0, I = 0, M = 0, R = 0, L = 0, g = 0, w = 0, O = 0, N = 0, F = 0, B = 0, V = 0, U, k, $, G, q, z, H = new h(y * y), K = _ % y || y, X = m % y || y, J, ee, te = p.numDims, oe, Q = f.pixels.resultMask, he = f.pixels.resultPixels;
149260
149460
  for (A = 0; A < b; A++)
149261
- for (P = A !== b - 1 ? y : Q, D = 0; D < x; D++)
149262
- for (I = D !== x - 1 ? y : ne, w = A * m * y + D * y, O = m - I, oe = 0; oe < ee; oe++) {
149263
- if (ee > 1 && (he = new h(f.pixels.resultPixels.buffer, m * _ * oe * T, m * _)), M = d.byteLength - f.ptr, U = new DataView(d, f.ptr, Math.min(10, M)), k = {}, V = 0, R = U.getUint8(0), V++, L = R >> 6 & 255, g = R >> 2 & 15, g !== (D * y >> 3 & 15))
149461
+ for (P = A !== b - 1 ? y : K, D = 0; D < x; D++)
149462
+ for (I = D !== x - 1 ? y : X, w = A * m * y + D * y, O = m - I, oe = 0; oe < te; oe++) {
149463
+ if (te > 1 && (he = new h(f.pixels.resultPixels.buffer, m * _ * oe * T, m * _)), M = d.byteLength - f.ptr, U = new DataView(d, f.ptr, Math.min(10, M)), k = {}, V = 0, R = U.getUint8(0), V++, L = R >> 6 & 255, g = R >> 2 & 15, g !== (D * y >> 3 & 15))
149264
149464
  throw "integrity issue";
149265
149465
  if (z = R & 3, z > 3)
149266
149466
  throw f.ptr += V, "Invalid block encoding (" + z + ")";
@@ -149268,10 +149468,10 @@ var LercDecode = { exports: {} };
149268
149468
  f.counter.constant++, f.ptr += V;
149269
149469
  continue;
149270
149470
  } else if (z === 0) {
149271
- if (f.counter.uncompressed++, f.ptr += V, N = P * I * T, F = d.byteLength - f.ptr, N = N < F ? N : F, $ = new ArrayBuffer(N % T === 0 ? N : N + T - N % T), G = new Uint8Array($), G.set(new Uint8Array(d, f.ptr, N)), q = new h($), B = 0, X)
149471
+ if (f.counter.uncompressed++, f.ptr += V, N = P * I * T, F = d.byteLength - f.ptr, N = N < F ? N : F, $ = new ArrayBuffer(N % T === 0 ? N : N + T - N % T), G = new Uint8Array($), G.set(new Uint8Array(d, f.ptr, N)), q = new h($), B = 0, Q)
149272
149472
  for (S = 0; S < P; S++) {
149273
149473
  for (E = 0; E < I; E++)
149274
- X[w] && (he[w] = q[B++]), w++;
149474
+ Q[w] && (he[w] = q[B++]), w++;
149275
149475
  w += O;
149276
149476
  }
149277
149477
  else
@@ -149281,23 +149481,23 @@ var LercDecode = { exports: {} };
149281
149481
  w += O;
149282
149482
  }
149283
149483
  f.ptr += B * T;
149284
- } else if (K = s.getDataTypeUsed(C, L), Z = s.getOnePixel(k, V, K, U), V += s.getDataTypeSize(K), z === 3)
149285
- if (f.ptr += V, f.counter.constantoffset++, X)
149484
+ } else if (J = s.getDataTypeUsed(C, L), ee = s.getOnePixel(k, V, J, U), V += s.getDataTypeSize(J), z === 3)
149485
+ if (f.ptr += V, f.counter.constantoffset++, Q)
149286
149486
  for (S = 0; S < P; S++) {
149287
149487
  for (E = 0; E < I; E++)
149288
- X[w] && (he[w] = Z), w++;
149488
+ Q[w] && (he[w] = ee), w++;
149289
149489
  w += O;
149290
149490
  }
149291
149491
  else
149292
149492
  for (S = 0; S < P; S++) {
149293
149493
  for (E = 0; E < I; E++)
149294
- he[w++] = Z;
149494
+ he[w++] = ee;
149295
149495
  w += O;
149296
149496
  }
149297
- else if (f.ptr += V, s.decodeBits(d, f, H, Z, oe), V = 0, X)
149497
+ else if (f.ptr += V, s.decodeBits(d, f, H, ee, oe), V = 0, Q)
149298
149498
  for (S = 0; S < P; S++) {
149299
149499
  for (E = 0; E < I; E++)
149300
- X[w] && (he[w] = H[V++]), w++;
149500
+ Q[w] && (he[w] = H[V++]), w++;
149301
149501
  w += O;
149302
149502
  }
149303
149503
  else
@@ -154727,22 +154927,22 @@ function createShaders(e, t, n) {
154727
154927
  for (r in L)
154728
154928
  L.hasOwnProperty(r) && (o = L[r], M[r] = `czm_3dtiles_property_${o.location}`, R[o.location] = o);
154729
154929
  if (c) {
154730
- const K = {
154930
+ const J = {
154731
154931
  translucent: !1
154732
- }, Z = "(vec3 czm_3dtiles_builtin_property_POSITION, vec3 czm_3dtiles_builtin_property_POSITION_ABSOLUTE, vec4 czm_3dtiles_builtin_property_COLOR, vec3 czm_3dtiles_builtin_property_NORMAL)";
154932
+ }, ee = "(vec3 czm_3dtiles_builtin_property_POSITION, vec3 czm_3dtiles_builtin_property_POSITION_ABSOLUTE, vec4 czm_3dtiles_builtin_property_COLOR, vec3 czm_3dtiles_builtin_property_NORMAL)";
154733
154933
  A = n.getColorShaderFunction(
154734
- `getColorFromStyle${Z}`,
154934
+ `getColorFromStyle${ee}`,
154735
154935
  M,
154736
- K
154936
+ J
154737
154937
  ), D = n.getShowShaderFunction(
154738
- `getShowFromStyle${Z}`,
154938
+ `getShowFromStyle${ee}`,
154739
154939
  M,
154740
- K
154940
+ J
154741
154941
  ), P = n.getPointSizeShaderFunction(
154742
- `getPointSizeFromStyle${Z}`,
154942
+ `getPointSizeFromStyle${ee}`,
154743
154943
  M,
154744
- K
154745
- ), defined(A) && K.translucent && (I = !0);
154944
+ J
154945
+ ), defined(A) && J.translucent && (I = !0);
154746
154946
  }
154747
154947
  e._styleTranslucent = I;
154748
154948
  const g = defined(A), w = defined(D), O = defined(P), N = e.isClipped, F = [], B = [];
@@ -154755,24 +154955,24 @@ function createShaders(e, t, n) {
154755
154955
  for (r in L)
154756
154956
  if (L.hasOwnProperty(r)) {
154757
154957
  o = L[r];
154758
- const K = F.indexOf(o.location) >= 0, Z = getVertexAttribute(
154958
+ const J = F.indexOf(o.location) >= 0, ee = getVertexAttribute(
154759
154959
  b,
154760
154960
  o.location
154761
154961
  );
154762
- Z.enabled = K;
154962
+ ee.enabled = J;
154763
154963
  }
154764
154964
  const k = _ && (!g || V);
154765
154965
  if (_) {
154766
- const K = getVertexAttribute(b, colorLocation);
154767
- K.enabled = k;
154966
+ const J = getVertexAttribute(b, colorLocation);
154967
+ J.enabled = k;
154768
154968
  }
154769
154969
  const $ = y && (x || T || U);
154770
154970
  if (y) {
154771
- const K = getVertexAttribute(
154971
+ const J = getVertexAttribute(
154772
154972
  b,
154773
154973
  normalLocation
154774
154974
  );
154775
- K.enabled = $;
154975
+ J.enabled = $;
154776
154976
  }
154777
154977
  const G = {
154778
154978
  a_position: positionLocation
@@ -154781,12 +154981,12 @@ function createShaders(e, t, n) {
154781
154981
  let q = "";
154782
154982
  const z = F.length;
154783
154983
  for (i = 0; i < z; ++i) {
154784
- const K = F[i];
154785
- o = R[K];
154786
- const Z = o.componentCount, ee = `czm_3dtiles_property_${K}`;
154984
+ const J = F[i];
154985
+ o = R[J];
154986
+ const ee = o.componentCount, te = `czm_3dtiles_property_${J}`;
154787
154987
  let oe;
154788
- Z === 1 ? oe = "float" : oe = `vec${Z}`, q += `in ${oe} ${ee};
154789
- `, G[ee] = o.location;
154988
+ ee === 1 ? oe = "float" : oe = `vec${ee}`, q += `in ${oe} ${te};
154989
+ `, G[te] = o.location;
154790
154990
  }
154791
154991
  createUniformMap$1(e, t);
154792
154992
  let H = `in vec3 a_position;
@@ -154857,31 +155057,31 @@ const float NORMALIZE_5 = 1.0 / 32.0;
154857
155057
  gl_PointSize *= float(show);
154858
155058
  `), H += `}
154859
155059
  `;
154860
- let Q = `in vec4 v_color;
155060
+ let K = `in vec4 v_color;
154861
155061
  `;
154862
- N && (Q += `uniform highp sampler2D u_clippingPlanes;
155062
+ N && (K += `uniform highp sampler2D u_clippingPlanes;
154863
155063
  uniform mat4 u_clippingPlanesMatrix;
154864
155064
  uniform vec4 u_clippingPlanesEdgeStyle;
154865
- `, Q += `
154866
- `, Q += getClippingFunction(S, s), Q += `
154867
- `), Q += `void main()
155065
+ `, K += `
155066
+ `, K += getClippingFunction(S, s), K += `
155067
+ `), K += `void main()
154868
155068
  {
154869
155069
  out_FragColor = czm_gammaCorrect(v_color);
154870
- `, N && (Q += getClipAndStyleCode(
155070
+ `, N && (K += getClipAndStyleCode(
154871
155071
  "u_clippingPlanes",
154872
155072
  "u_clippingPlanesMatrix",
154873
155073
  "u_clippingPlanesEdgeStyle"
154874
- )), Q += `}
154875
- `, e.splitDirection !== SplitDirection$1.NONE && (Q = Splitter.modifyFragmentShader(Q)), defined(e._vertexShaderLoaded) && (H = e._vertexShaderLoaded(H)), defined(e._fragmentShaderLoaded) && (Q = e._fragmentShaderLoaded(Q));
154876
- const ne = e._drawCommand;
154877
- defined(ne.shaderProgram) && ne.shaderProgram.destroy(), ne.shaderProgram = ShaderProgram.fromCache({
155074
+ )), K += `}
155075
+ `, e.splitDirection !== SplitDirection$1.NONE && (K = Splitter.modifyFragmentShader(K)), defined(e._vertexShaderLoaded) && (H = e._vertexShaderLoaded(H)), defined(e._fragmentShaderLoaded) && (K = e._fragmentShaderLoaded(K));
155076
+ const X = e._drawCommand;
155077
+ defined(X.shaderProgram) && X.shaderProgram.destroy(), X.shaderProgram = ShaderProgram.fromCache({
154878
155078
  context: s,
154879
155079
  vertexShaderSource: H,
154880
- fragmentShaderSource: Q,
155080
+ fragmentShaderSource: K,
154881
155081
  attributeLocations: G
154882
155082
  });
154883
155083
  try {
154884
- ne.shaderProgram._bind();
155084
+ X.shaderProgram._bind();
154885
155085
  } catch {
154886
155086
  throw new RuntimeError(
154887
155087
  "Error generating style shader: this may be caused by a type mismatch, index out-of-bounds, or other syntax error."
@@ -159318,11 +159518,11 @@ function handleZoom(e, t, n, i, r, o) {
159318
159518
  -1,
159319
159519
  1
159320
159520
  )
159321
- ), Q = z - H + U, ne = scratchCameraUpNormal;
159322
- Cartesian3.normalize(L, ne);
159323
- let K = scratchCameraRightNormal;
159324
- K = Cartesian3.cross(B, ne, K), K = Cartesian3.normalize(K, K), Cartesian3.normalize(
159325
- Cartesian3.cross(ne, K, scratchCartesian),
159521
+ ), K = z - H + U, X = scratchCameraUpNormal;
159522
+ Cartesian3.normalize(L, X);
159523
+ let J = scratchCameraRightNormal;
159524
+ J = Cartesian3.cross(B, X, J), J = Cartesian3.normalize(J, J), Cartesian3.normalize(
159525
+ Cartesian3.cross(X, J, scratchCartesian),
159326
159526
  N
159327
159527
  ), Cartesian3.multiplyByScalar(
159328
159528
  Cartesian3.normalize(O, scratchCartesian),
@@ -159333,45 +159533,45 @@ function handleZoom(e, t, n, i, r, o) {
159333
159533
  G,
159334
159534
  L
159335
159535
  );
159336
- const Z = scratchPan;
159536
+ const ee = scratchPan;
159337
159537
  Cartesian3.multiplyByScalar(
159338
159538
  Cartesian3.add(
159339
159539
  Cartesian3.multiplyByScalar(
159340
- ne,
159341
- Math.cos(Q) - 1,
159540
+ X,
159541
+ Math.cos(K) - 1,
159342
159542
  scratchCartesianTwo
159343
159543
  ),
159344
159544
  Cartesian3.multiplyByScalar(
159345
159545
  N,
159346
- Math.sin(Q),
159546
+ Math.sin(K),
159347
159547
  scratchCartesianThree
159348
159548
  ),
159349
159549
  scratchCartesian
159350
159550
  ),
159351
159551
  G,
159352
- Z
159353
- ), Cartesian3.add(L, Z, L), Cartesian3.normalize(O, ne), Cartesian3.normalize(
159354
- Cartesian3.cross(ne, K, scratchCartesian),
159552
+ ee
159553
+ ), Cartesian3.add(L, ee, L), Cartesian3.normalize(O, X), Cartesian3.normalize(
159554
+ Cartesian3.cross(X, J, scratchCartesian),
159355
159555
  N
159356
159556
  );
159357
- const ee = scratchCenterMovement;
159557
+ const te = scratchCenterMovement;
159358
159558
  Cartesian3.multiplyByScalar(
159359
159559
  Cartesian3.add(
159360
159560
  Cartesian3.multiplyByScalar(
159361
- ne,
159362
- Math.cos(Q) - 1,
159561
+ X,
159562
+ Math.cos(K) - 1,
159363
159563
  scratchCartesianTwo
159364
159564
  ),
159365
159565
  Cartesian3.multiplyByScalar(
159366
159566
  N,
159367
- Math.sin(Q),
159567
+ Math.sin(K),
159368
159568
  scratchCartesianThree
159369
159569
  ),
159370
159570
  scratchCartesian
159371
159571
  ),
159372
159572
  Cartesian3.magnitude(O),
159373
- ee
159374
- ), Cartesian3.add(O, ee, O), Cartesian3.clone(L, C.position), Cartesian3.normalize(
159573
+ te
159574
+ ), Cartesian3.add(O, te, O), Cartesian3.clone(L, C.position), Cartesian3.normalize(
159375
159575
  Cartesian3.subtract(O, L, scratchCartesian),
159376
159576
  C.direction
159377
159577
  ), Cartesian3.clone(C.direction, C.direction), Cartesian3.cross(C.direction, C.up, C.right), Cartesian3.cross(C.right, C.direction, C.up), C.setView(scratchZoomViewOptions);