@reearth/core 0.0.7-alpha.66 → 0.0.7-alpha.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as gy from "react";
2
- import ea, { forwardRef as no, useRef as fe, useCallback as se, useImperativeHandle as Ka, useState as ot, useEffect as Me, useMemo as he, useReducer as lW, useDebugValue as uW, useContext as wi, createContext as Qo, useLayoutEffect as Wr, memo as Fi, Component as $G, createElement as cp, Suspense as hW, useId as dW, Fragment as eO, useInsertionEffect as tO } from "react";
2
+ import ea, { forwardRef as no, useRef as de, useCallback as se, useImperativeHandle as Ka, useState as ot, useEffect as Ie, useMemo as he, useReducer as lW, useDebugValue as uW, useContext as wi, createContext as Qo, useLayoutEffect as Ur, memo as Fi, Component as $G, createElement as cp, Suspense as hW, useId as dW, Fragment as eO, useInsertionEffect as tO } from "react";
3
3
  import * as De from "cesium";
4
- import { Color as rn, Math as yt, Event as f2, ImageryLayer as Fb, PolylineGraphics as fW, BoxGraphics as pW, PlaneGraphics as mW, Viewer as gW, ScreenSpaceEventHandler as td, Fog as eC, Sun as tC, Moon as nC, ScreenSpaceEventType as zt, SceneMode as Go, Primitive as mm, GeoJsonDataSource as yW, CzmlDataSource as bW, KmlDataSource as _W, BillboardGraphics as nO, ModelGraphics as vW, EllipseGraphics as wW, EllipsoidGraphics as xW, PolygonGraphics as SW, PointGraphics as iO, LabelGraphics as TW, CustomDataSource as EW, Cesium3DTileset as Mh, BillboardCollection as CW, Cesium3DTilesetGraphics as RW, Cesium3DTilesTerrainProvider as iC, CesiumWidget as IW, ClassificationPrimitive as MW, CloudCollection as LW, CorridorGraphics as PW, CylinderGraphics as GW, Entity as kr, Google2DImageryProvider as rC, GroundPolylinePrimitive as OW, GroundPrimitive as nd, LabelCollection as rO, Model as vs, ParticleSystem as VW, PathGraphics as FW, PointPrimitiveCollection as AW, PolylineCollection as zW, PolylineVolumeGraphics as NW, PostProcessStage as lp, PostProcessStageComposite as Ff, RectangleGraphics as XW, TimeDynamicPointCloud as ZW, WallGraphics as kW, PostProcessStageLibrary as qc, ClassificationType as fh, HeightReference as Sg, Rectangle as kc, EntityCluster as WW, HorizontalOrigin as Pa, VerticalOrigin as Ic, Cartesian3 as pe, ClockRange as w1, JulianDate as wn, ClockStep as p2, KeyboardEventModifier as Ga, CameraEventType as vr, Cartographic as vn, EllipsoidTerrainProvider as yy, sampleTerrainMostDetailed as UW, IntersectionTests as by, Ray as zc, PerspectiveFrustum as ms, OrthographicOffCenterFrustum as DW, Matrix4 as Zn, BoundingSphere as jx, HeadingPitchRange as BW, Cartesian2 as It, Plane as Po, Quaternion as Oa, Matrix3 as Mc, ColorBlendMode as x1, ShadowMode as jm, Cesium3DTileColorBlendMode as S1, CesiumTerrainProvider as T1, IonResource as _y, UrlTemplateImageryProvider as Af, OpenStreetMapImageryProvider as oC, IonImageryProvider as xd, IonWorldImageryStyle as E1, DiscardEmptyTileImagePolicy as YW, TextureMinificationFilter as HW, TextureMagnificationFilter as jW, SceneTransforms as KW, DistanceDisplayCondition as oO, WebMercatorTilingScheme as sO, Cesium3DTileFeature as ta, Cesium3DTilePointFeature as gm, PropertyBag as JW, TimeIntervalCollection as QW, TimeInterval as qW, Iso8601 as $W, CallbackProperty as Bi, ColorMaterialProperty as eU, ArcType as up, ImageryLayerFeatureInfo as aO, Axis as ph, HeadingPitchRoll as Xl, Transforms as Lh, TranslationRotationScale as cO, PolylineDashMaterialProperty as lO, PerInstanceColorAppearance as tU, Material as Ab, VertexFormat as nU, GeometryAttribute as iU, ComponentDatatype as rU, FrustumGeometry as sC, GeometryInstance as uO, PolygonGeometry as oU, EllipsoidSurfaceAppearance as aC, Intersect as sU, CustomShader as hO, CustomShaderTranslucencyMode as dO, LightingModel as fO, CustomShaderMode as pO, ImageBasedLighting as mO, EasingFunction as C1, PolygonHierarchy as m2, Credit as aU, WindingOrder as g2, TileMapServiceImageryProvider as cU, WebMapServiceImageryProvider as lU, ClippingPlane as zf, ClippingPlaneCollection as cC, Cesium3DTileStyle as gO, createGooglePhotorealistic3DTileset as uU, Camera as hU, EllipsoidGeodesic as lC, PerspectiveOffCenterFrustum as dU, BoundingRectangle as vy, Ellipsoid as Tg, SunLight as fU, DirectionalLight as pU, PostProcessStageSampleMode as uC } from "cesium";
4
+ import { Color as rn, Math as yt, Event as f2, ImageryLayer as Fb, PolylineGraphics as fW, BoxGraphics as pW, PlaneGraphics as mW, Viewer as gW, ScreenSpaceEventHandler as td, Fog as eC, Sun as tC, Moon as nC, ScreenSpaceEventType as zt, SceneMode as Go, Primitive as mm, GeoJsonDataSource as yW, CzmlDataSource as bW, KmlDataSource as _W, BillboardGraphics as nO, ModelGraphics as vW, EllipseGraphics as wW, EllipsoidGraphics as xW, PolygonGraphics as SW, PointGraphics as iO, LabelGraphics as TW, CustomDataSource as EW, Cesium3DTileset as Mh, BillboardCollection as CW, Cesium3DTilesetGraphics as RW, Cesium3DTilesTerrainProvider as iC, CesiumWidget as IW, ClassificationPrimitive as MW, CloudCollection as LW, CorridorGraphics as PW, CylinderGraphics as GW, Entity as Wr, Google2DImageryProvider as rC, GroundPolylinePrimitive as OW, GroundPrimitive as nd, LabelCollection as rO, Model as vs, ParticleSystem as VW, PathGraphics as FW, PointPrimitiveCollection as AW, PolylineCollection as zW, PolylineVolumeGraphics as NW, PostProcessStage as lp, PostProcessStageComposite as Ff, RectangleGraphics as XW, TimeDynamicPointCloud as ZW, WallGraphics as kW, PostProcessStageLibrary as qc, ClassificationType as fh, HeightReference as Sg, Rectangle as kc, EntityCluster as WW, HorizontalOrigin as Pa, VerticalOrigin as Ic, Cartesian3 as pe, ClockRange as w1, JulianDate as wn, ClockStep as p2, KeyboardEventModifier as Ga, CameraEventType as vr, Cartographic as vn, EllipsoidTerrainProvider as yy, sampleTerrainMostDetailed as UW, IntersectionTests as by, Ray as zc, PerspectiveFrustum as ms, OrthographicOffCenterFrustum as DW, Matrix4 as Zn, BoundingSphere as jx, HeadingPitchRange as BW, Cartesian2 as It, Plane as Po, Quaternion as Oa, Matrix3 as Mc, ColorBlendMode as x1, ShadowMode as jm, Cesium3DTileColorBlendMode as S1, CesiumTerrainProvider as T1, IonResource as _y, UrlTemplateImageryProvider as Af, OpenStreetMapImageryProvider as oC, IonImageryProvider as xd, IonWorldImageryStyle as E1, DiscardEmptyTileImagePolicy as YW, TextureMinificationFilter as HW, TextureMagnificationFilter as jW, SceneTransforms as KW, DistanceDisplayCondition as oO, WebMercatorTilingScheme as sO, Cesium3DTileFeature as ta, Cesium3DTilePointFeature as gm, PropertyBag as JW, TimeIntervalCollection as QW, TimeInterval as qW, Iso8601 as $W, CallbackProperty as Bi, ColorMaterialProperty as eU, ArcType as up, ImageryLayerFeatureInfo as aO, Axis as ph, HeadingPitchRoll as Xl, Transforms as Lh, TranslationRotationScale as cO, PolylineDashMaterialProperty as lO, PerInstanceColorAppearance as tU, Material as Ab, VertexFormat as nU, GeometryAttribute as iU, ComponentDatatype as rU, FrustumGeometry as sC, GeometryInstance as uO, PolygonGeometry as oU, EllipsoidSurfaceAppearance as aC, Intersect as sU, CustomShader as hO, CustomShaderTranslucencyMode as dO, LightingModel as fO, CustomShaderMode as pO, ImageBasedLighting as mO, EasingFunction as C1, PolygonHierarchy as m2, Credit as aU, WindingOrder as g2, TileMapServiceImageryProvider as cU, WebMapServiceImageryProvider as lU, ClippingPlane as zf, ClippingPlaneCollection as cC, Cesium3DTileStyle as gO, createGooglePhotorealistic3DTileset as uU, Camera as hU, EllipsoidGeodesic as lC, PerspectiveOffCenterFrustum as dU, BoundingRectangle as vy, Ellipsoid as Tg, SunLight as fU, DirectionalLight as pU, PostProcessStageSampleMode as uC } from "cesium";
5
5
  import "react-dom";
6
6
  var Il = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
7
  function id(e) {
@@ -306,7 +306,7 @@ const Dn = {
306
306
  sketch: Dn.SKETCH | Dn.CAMERA_ZOOM | Dn.CAMERA_TILT,
307
307
  spatialId: Dn.CAMERA_ZOOM | Dn.CAMERA_TILT
308
308
  }, bU = 1e3, _U = ({ geoidServer: e }, t) => {
309
- const n = fe(/* @__PURE__ */ new Map()), i = se(
309
+ const n = de(/* @__PURE__ */ new Map()), i = se(
310
310
  async (r, o) => {
311
311
  if (!e?.url || !e?.geoidProperty)
312
312
  return console.error("Geoid: Server is not set properly"), Promise.resolve(void 0);
@@ -337,7 +337,7 @@ const Dn = {
337
337
  })), null;
338
338
  }, vU = no(_U);
339
339
  function y2(e) {
340
- const t = fe(e);
340
+ const t = de(e);
341
341
  return t.current = e, se(() => t.current, []);
342
342
  }
343
343
  function Ed(e, t) {
@@ -559,7 +559,7 @@ ${n}` : h), l;
559
559
  }
560
560
  }
561
561
  function ws(e) {
562
- const t = fe(void 0);
562
+ const t = de(void 0);
563
563
  return t.current == null && (t.current = { value: e() }), t.current.value;
564
564
  }
565
565
  const bO = typeof window < "u" ? window : global, MU = (e, t) => {
@@ -750,8 +750,8 @@ function zU(e, t, n, i) {
750
750
  );
751
751
  }
752
752
  const NU = (e) => {
753
- const t = fe(void 0), [n, i] = ot();
754
- return Me(() => {
753
+ const t = de(void 0), [n, i] = ot();
754
+ return Ie(() => {
755
755
  if (!e) {
756
756
  i(void 0), t.current && (t.current.src = "");
757
757
  return;
@@ -763,7 +763,7 @@ const NU = (e) => {
763
763
  }, [e]), n;
764
764
  };
765
765
  function XU() {
766
- var e = fe(!0);
766
+ var e = de(!0);
767
767
  return e.current ? (e.current = !1, !0) : e.current;
768
768
  }
769
769
  var b2 = function() {
@@ -787,7 +787,7 @@ var ZU = function(e, t) {
787
787
  };
788
788
  function kU(e, t) {
789
789
  t === void 0 && (t = ZU);
790
- var n = fe(), i = fe(e), r = XU();
790
+ var n = de(), i = de(e), r = XU();
791
791
  return !r && !t(i.current, e) && (n.current = i.current, i.current = e), n.current;
792
792
  }
793
793
  var WU = function(e) {
@@ -821,7 +821,7 @@ var WU = function(e) {
821
821
  return [n, o];
822
822
  };
823
823
  const UU = (e = []) => {
824
- const [t, n] = ot(0), i = kU(t), r = fe(!1), o = fe(void 0), s = se(() => {
824
+ const [t, n] = ot(0), i = kU(t), r = de(!1), o = de(void 0), s = se(() => {
825
825
  n((c) => Math.max(0, Math.min(e.length + 1, c + (r.current ? -1 : 1))));
826
826
  }, [e.length]), a = se(
827
827
  (c, l) => {
@@ -833,13 +833,13 @@ const UU = (e = []) => {
833
833
  },
834
834
  [s, e.length]
835
835
  );
836
- return Me(() => {
836
+ return Ie(() => {
837
837
  if (o.current !== void 0 && (clearTimeout(o.current), o.current = void 0), t <= 0 || t >= e.length + 1) return;
838
838
  const c = e?.[t - 1], l = Array.isArray(c) ? c[r.current ? 1 : 0] : c;
839
839
  o.current = window.setTimeout(() => {
840
840
  o.current = void 0, s();
841
841
  }, l ?? 0);
842
- }, [s, e, t]), Me(
842
+ }, [s, e, t]), Ie(
843
843
  () => () => {
844
844
  o.current && (clearTimeout(o.current), o.current = void 0);
845
845
  },
@@ -873,11 +873,11 @@ const UU = (e = []) => {
873
873
  multiplier: g.payload?.multiplier === void 0 ? v.multiplier : g.payload.multiplier,
874
874
  rangeType: g.payload?.rangeType === void 0 ? v.rangeType : g.payload.rangeType
875
875
  })), d.current.forEach((v) => v(g.committer)));
876
- }, []), l = fe([]), u = se((g) => {
876
+ }, []), l = de([]), u = se((g) => {
877
877
  l.current.push(g);
878
878
  }, []), h = se((g) => {
879
879
  l.current = l.current.filter((v) => v !== g);
880
- }, []), d = fe([]), f = se((g) => {
880
+ }, []), d = de([]), f = se((g) => {
881
881
  d.current.push(g);
882
882
  }, []), p = se((g) => {
883
883
  d.current = d.current.filter((v) => v !== g);
@@ -934,7 +934,7 @@ function YU({
934
934
  layers: !1,
935
935
  sketch: !1,
936
936
  spatialId: !1
937
- }), a = fe(null), c = fe(null), l = fe(null), u = fe(null), h = fe(null), d = fe(_2);
937
+ }), a = de(null), c = de(null), l = de(null), u = de(null), h = de(null), d = de(_2);
938
938
  Ka(
939
939
  e,
940
940
  () => CU({
@@ -946,7 +946,7 @@ function YU({
946
946
  timelineManagerRef: t
947
947
  }),
948
948
  [t]
949
- ), Me(() => {
949
+ ), Ie(() => {
950
950
  r && o.engine && o.layers && o.sketch && o.spatialId && r?.();
951
951
  }, [r, o]);
952
952
  const [f, p] = ot({}), m = se(
@@ -1471,7 +1471,7 @@ function Jx(e, t) {
1471
1471
  () => [r.get(e), r, e]
1472
1472
  );
1473
1473
  let l = o;
1474
- if ((s !== r || a !== e) && (c(), l = r.get(e)), Me(() => {
1474
+ if ((s !== r || a !== e) && (c(), l = r.get(e)), Ie(() => {
1475
1475
  const u = r.sub(e, () => {
1476
1476
  if (i)
1477
1477
  try {
@@ -1547,11 +1547,11 @@ function zb(e, t) {
1547
1547
  r[n] = t(e[n], n, e);
1548
1548
  return r;
1549
1549
  }
1550
- var Ir = Array.isArray, xC = Bo ? Bo.prototype : void 0, SC = xC ? xC.toString : void 0;
1550
+ var Mr = Array.isArray, xC = Bo ? Bo.prototype : void 0, SC = xC ? xC.toString : void 0;
1551
1551
  function PO(e) {
1552
1552
  if (typeof e == "string")
1553
1553
  return e;
1554
- if (Ir(e))
1554
+ if (Mr(e))
1555
1555
  return zb(e, PO) + "";
1556
1556
  if (Qx(e))
1557
1557
  return SC ? SC.call(e) : "";
@@ -1810,7 +1810,7 @@ var XO = typeof exports == "object" && exports && !exports.nodeType && exports,
1810
1810
  }
1811
1811
  })(), LC = Ph && Ph.isTypedArray, rS = LC ? Zb(LC) : HB, KB = Object.prototype, JB = KB.hasOwnProperty;
1812
1812
  function ZO(e, t) {
1813
- var n = Ir(e), i = !n && hp(e), r = !n && !i && dp(e), o = !n && !i && !r && rS(e), s = n || i || r || o, a = s ? gB(e.length, String) : [], c = a.length;
1813
+ var n = Mr(e), i = !n && hp(e), r = !n && !i && dp(e), o = !n && !i && !r && rS(e), s = n || i || r || o, a = s ? gB(e.length, String) : [], c = a.length;
1814
1814
  for (var l in e)
1815
1815
  (t || JB.call(e, l)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
1816
1816
  (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -1857,7 +1857,7 @@ function ad(e) {
1857
1857
  }
1858
1858
  var o8 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, s8 = /^\w*$/;
1859
1859
  function oS(e, t) {
1860
- if (Ir(e))
1860
+ if (Mr(e))
1861
1861
  return !1;
1862
1862
  var n = typeof e;
1863
1863
  return n == "number" || n == "symbol" || n == "boolean" || e == null || Qx(e) ? !0 : s8.test(e) || !o8.test(e) || t != null && e in Object(t);
@@ -2014,7 +2014,7 @@ function z8(e) {
2014
2014
  return e == null ? "" : PO(e);
2015
2015
  }
2016
2016
  function cd(e, t) {
2017
- return Ir(e) ? e : oS(e, t) ? [e] : A8(z8(e));
2017
+ return Mr(e) ? e : oS(e, t) ? [e] : A8(z8(e));
2018
2018
  }
2019
2019
  function ld(e) {
2020
2020
  if (typeof e == "string" || Qx(e))
@@ -2039,7 +2039,7 @@ function aS(e, t) {
2039
2039
  }
2040
2040
  var PC = Bo ? Bo.isConcatSpreadable : void 0;
2041
2041
  function X8(e) {
2042
- return Ir(e) || hp(e) || !!(PC && e && e[PC]);
2042
+ return Mr(e) || hp(e) || !!(PC && e && e[PC]);
2043
2043
  }
2044
2044
  function WO(e, t, n, i, r) {
2045
2045
  var o = -1, s = e.length;
@@ -2147,7 +2147,7 @@ function s6(e, t) {
2147
2147
  }
2148
2148
  function QO(e, t, n) {
2149
2149
  var i = t(e);
2150
- return Ir(e) ? i : aS(i, n(e));
2150
+ return Mr(e) ? i : aS(i, n(e));
2151
2151
  }
2152
2152
  function E2(e) {
2153
2153
  return QO(e, bm, lS);
@@ -2254,7 +2254,7 @@ function Xf(e, t, n, i, r, o) {
2254
2254
  return s;
2255
2255
  if (!lo(e))
2256
2256
  return e;
2257
- var u = Ir(e);
2257
+ var u = Mr(e);
2258
2258
  if (u) {
2259
2259
  if (s = m6(e), !a)
2260
2260
  return GO(e, s);
@@ -2428,7 +2428,7 @@ function DY(e, t, n, i, r, o) {
2428
2428
  }
2429
2429
  var BY = 1, YC = "[object Arguments]", HC = "[object Array]", Qm = "[object Object]", YY = Object.prototype, jC = YY.hasOwnProperty;
2430
2430
  function HY(e, t, n, i, r, o) {
2431
- var s = Ir(e), a = Ir(t), c = s ? HC : hs(e), l = a ? HC : hs(t);
2431
+ var s = Mr(e), a = Mr(t), c = s ? HC : hs(e), l = a ? HC : hs(t);
2432
2432
  c = c == YC ? Qm : c, l = l == YC ? Qm : l;
2433
2433
  var u = c == Qm, h = l == Qm, d = c == l;
2434
2434
  if (d && dp(e)) {
@@ -2506,7 +2506,7 @@ function eH(e, t, n) {
2506
2506
  break;
2507
2507
  e = e[s];
2508
2508
  }
2509
- return o || ++i != r ? o : (r = e == null ? 0 : e.length, !!r && nS(r) && Nb(s, r) && (Ir(e) || hp(e)));
2509
+ return o || ++i != r ? o : (r = e == null ? 0 : e.length, !!r && nS(r) && Nb(s, r) && (Mr(e) || hp(e)));
2510
2510
  }
2511
2511
  function sV(e, t) {
2512
2512
  return e != null && eH(e, t, $Y);
@@ -2532,7 +2532,7 @@ function sH(e) {
2532
2532
  return oS(e) ? rH(ld(e)) : oH(e);
2533
2533
  }
2534
2534
  function _m(e) {
2535
- return typeof e == "function" ? e : e == null ? qx : typeof e == "object" ? Ir(e) ? iH(e[0], e[1]) : qY(e) : sH(e);
2535
+ return typeof e == "function" ? e : e == null ? qx : typeof e == "object" ? Mr(e) ? iH(e[0], e[1]) : qY(e) : sH(e);
2536
2536
  }
2537
2537
  function aH(e, t, n, i) {
2538
2538
  for (var r = -1, o = e == null ? 0 : e.length; ++r < o; ) {
@@ -2574,7 +2574,7 @@ function dH(e, t, n, i) {
2574
2574
  }
2575
2575
  function fH(e, t) {
2576
2576
  return function(n, i) {
2577
- var r = Ir(n) ? aH : dH, o = {};
2577
+ var r = Mr(n) ? aH : dH, o = {};
2578
2578
  return r(n, e, _m(i), o);
2579
2579
  };
2580
2580
  }
@@ -2609,8 +2609,8 @@ function gH(e, t, n, i, r, o, s) {
2609
2609
  }
2610
2610
  var u = o ? o(a, c, n + "", e, t, s) : void 0, h = u === void 0;
2611
2611
  if (h) {
2612
- var d = Ir(c), f = !d && dp(c), p = !d && !f && rS(c);
2613
- u = c, d || f || p ? Ir(a) ? u = a : M2(a) ? u = GO(a) : f ? (h = !1, u = HO(c, !0)) : p ? (h = !1, u = qO(c, !0)) : u = [] : BO(c) || hp(c) ? (u = a, hp(a) ? u = mH(a) : (!lo(a) || $x(a)) && (u = $O(c))) : h = !1;
2612
+ var d = Mr(c), f = !d && dp(c), p = !d && !f && rS(c);
2613
+ u = c, d || f || p ? Mr(a) ? u = a : M2(a) ? u = GO(a) : f ? (h = !1, u = HO(c, !0)) : p ? (h = !1, u = qO(c, !0)) : u = [] : BO(c) || hp(c) ? (u = a, hp(a) ? u = mH(a) : (!lo(a) || $x(a)) && (u = $O(c))) : h = !1;
2614
2614
  }
2615
2615
  h && (s.set(c, u), r(u, c, i, o, s), s.delete(c)), I2(e, n, u);
2616
2616
  }
@@ -2659,7 +2659,7 @@ var _H = Object.prototype, vH = _H.hasOwnProperty, P2 = fH(function(e, t, n) {
2659
2659
  function wH(e, t) {
2660
2660
  return t.length < 2 ? e : Ub(e, Y8(t, 0, -1));
2661
2661
  }
2662
- function Ur(e, t) {
2662
+ function Sr(e, t) {
2663
2663
  return Db(e, t);
2664
2664
  }
2665
2665
  var mS = pB(function(e, t, n) {
@@ -7029,11 +7029,11 @@ class _7 {
7029
7029
  return { entities: i, i: n };
7030
7030
  }
7031
7031
  readEntityExp(t, n) {
7032
- n = Gr(t, n);
7032
+ n = Or(t, n);
7033
7033
  let i = "";
7034
7034
  for (; n < t.length && !/\s/.test(t[n]) && t[n] !== '"' && t[n] !== "'"; )
7035
7035
  i += t[n], n++;
7036
- if (Ld(i), n = Gr(t, n), !this.suppressValidationErr) {
7036
+ if (Ld(i), n = Or(t, n), !this.suppressValidationErr) {
7037
7037
  if (t.substring(n, n + 6).toUpperCase() === "SYSTEM")
7038
7038
  throw new Error("External entities are not supported");
7039
7039
  if (t[n] === "%")
@@ -7047,18 +7047,18 @@ class _7 {
7047
7047
  return n--, [i, r, n];
7048
7048
  }
7049
7049
  readNotationExp(t, n) {
7050
- n = Gr(t, n);
7050
+ n = Or(t, n);
7051
7051
  let i = "";
7052
7052
  for (; n < t.length && !/\s/.test(t[n]); )
7053
7053
  i += t[n], n++;
7054
- !this.suppressValidationErr && Ld(i), n = Gr(t, n);
7054
+ !this.suppressValidationErr && Ld(i), n = Or(t, n);
7055
7055
  const r = t.substring(n, n + 6).toUpperCase();
7056
7056
  if (!this.suppressValidationErr && r !== "SYSTEM" && r !== "PUBLIC")
7057
7057
  throw new Error(`Expected SYSTEM or PUBLIC, found "${r}"`);
7058
- n += r.length, n = Gr(t, n);
7058
+ n += r.length, n = Or(t, n);
7059
7059
  let o = null, s = null;
7060
7060
  if (r === "PUBLIC")
7061
- [n, o] = this.readIdentifierVal(t, n, "publicIdentifier"), n = Gr(t, n), (t[n] === '"' || t[n] === "'") && ([n, s] = this.readIdentifierVal(t, n, "systemIdentifier"));
7061
+ [n, o] = this.readIdentifierVal(t, n, "publicIdentifier"), n = Or(t, n), (t[n] === '"' || t[n] === "'") && ([n, s] = this.readIdentifierVal(t, n, "systemIdentifier"));
7062
7062
  else if (r === "SYSTEM" && ([n, s] = this.readIdentifierVal(t, n, "systemIdentifier"), !this.suppressValidationErr && !s))
7063
7063
  throw new Error("Missing mandatory system identifier for SYSTEM notation");
7064
7064
  return { notationName: i, publicIdentifier: o, systemIdentifier: s, index: --n };
@@ -7075,13 +7075,13 @@ class _7 {
7075
7075
  return n++, [n, r];
7076
7076
  }
7077
7077
  readElementExp(t, n) {
7078
- n = Gr(t, n);
7078
+ n = Or(t, n);
7079
7079
  let i = "";
7080
7080
  for (; n < t.length && !/\s/.test(t[n]); )
7081
7081
  i += t[n], n++;
7082
7082
  if (!this.suppressValidationErr && !Yb(i))
7083
7083
  throw new Error(`Invalid element name: "${i}"`);
7084
- n = Gr(t, n);
7084
+ n = Or(t, n);
7085
7085
  let r = "";
7086
7086
  if (t[n] === "E" && dl(t, "MPTY", n)) n += 4;
7087
7087
  else if (t[n] === "A" && dl(t, "NY", n)) n += 2;
@@ -7099,20 +7099,20 @@ class _7 {
7099
7099
  };
7100
7100
  }
7101
7101
  readAttlistExp(t, n) {
7102
- n = Gr(t, n);
7102
+ n = Or(t, n);
7103
7103
  let i = "";
7104
7104
  for (; n < t.length && !/\s/.test(t[n]); )
7105
7105
  i += t[n], n++;
7106
- Ld(i), n = Gr(t, n);
7106
+ Ld(i), n = Or(t, n);
7107
7107
  let r = "";
7108
7108
  for (; n < t.length && !/\s/.test(t[n]); )
7109
7109
  r += t[n], n++;
7110
7110
  if (!Ld(r))
7111
7111
  throw new Error(`Invalid attribute name: "${r}"`);
7112
- n = Gr(t, n);
7112
+ n = Or(t, n);
7113
7113
  let o = "";
7114
7114
  if (t.substring(n, n + 8).toUpperCase() === "NOTATION") {
7115
- if (o = "NOTATION", n += 8, n = Gr(t, n), t[n] !== "(")
7115
+ if (o = "NOTATION", n += 8, n = Or(t, n), t[n] !== "(")
7116
7116
  throw new Error(`Expected '(', found "${t[n]}"`);
7117
7117
  n++;
7118
7118
  let a = [];
@@ -7122,7 +7122,7 @@ class _7 {
7122
7122
  c += t[n], n++;
7123
7123
  if (c = c.trim(), !Ld(c))
7124
7124
  throw new Error(`Invalid notation name: "${c}"`);
7125
- a.push(c), t[n] === "|" && (n++, n = Gr(t, n));
7125
+ a.push(c), t[n] === "|" && (n++, n = Or(t, n));
7126
7126
  }
7127
7127
  if (t[n] !== ")")
7128
7128
  throw new Error("Unterminated list of notations");
@@ -7134,7 +7134,7 @@ class _7 {
7134
7134
  if (!this.suppressValidationErr && !a.includes(o.toUpperCase()))
7135
7135
  throw new Error(`Invalid attribute type: "${o}"`);
7136
7136
  }
7137
- n = Gr(t, n);
7137
+ n = Or(t, n);
7138
7138
  let s = "";
7139
7139
  return t.substring(n, n + 8).toUpperCase() === "#REQUIRED" ? (s = "#REQUIRED", n += 8) : t.substring(n, n + 7).toUpperCase() === "#IMPLIED" ? (s = "#IMPLIED", n += 7) : [n, s] = this.readIdentifierVal(t, n, "ATTLIST"), {
7140
7140
  elementName: i,
@@ -7145,7 +7145,7 @@ class _7 {
7145
7145
  };
7146
7146
  }
7147
7147
  }
7148
- const Gr = (e, t) => {
7148
+ const Or = (e, t) => {
7149
7149
  for (; t < e.length && /\s/.test(e[t]); )
7150
7150
  t++;
7151
7151
  return t;
@@ -8583,12 +8583,12 @@ function EK(e, t, n) {
8583
8583
  }
8584
8584
  return n;
8585
8585
  }
8586
- class Lr {
8586
+ class Pr {
8587
8587
  read(t, n) {
8588
8588
  return t.readFields(this.readField, this.defaultMessage, n);
8589
8589
  }
8590
8590
  }
8591
- class CK extends Lr {
8591
+ class CK extends Pr {
8592
8592
  defaultMessage = {
8593
8593
  header: null,
8594
8594
  entities: []
@@ -8597,7 +8597,7 @@ class CK extends Lr {
8597
8597
  t === 1 ? n.header = new RK().read(i, i.readVarint() + i.pos) : t === 2 && n.entities?.push(new IK().read(i, i.readVarint() + i.pos));
8598
8598
  }
8599
8599
  }
8600
- class RK extends Lr {
8600
+ class RK extends Pr {
8601
8601
  defaultMessage = {
8602
8602
  gtfs_realtime_version: "",
8603
8603
  incrementality: 0,
@@ -8607,7 +8607,7 @@ class RK extends Lr {
8607
8607
  t === 1 ? n.gtfs_realtime_version = i.readString() : t === 2 ? n.incrementality = i.readVarint() : t === 3 && (n.timestamp = i.readVarint());
8608
8608
  }
8609
8609
  }
8610
- class IK extends Lr {
8610
+ class IK extends Pr {
8611
8611
  defaultMessage = {
8612
8612
  id: "",
8613
8613
  is_deleted: !1,
@@ -8619,7 +8619,7 @@ class IK extends Lr {
8619
8619
  t === 1 ? n.id = i.readString() : t === 2 ? n.is_deleted = i.readBoolean() : t === 3 ? n.trip_update = new MK().read(i, i.readVarint() + i.pos) : t === 4 ? n.vehicle = new PK().read(i, i.readVarint() + i.pos) : t === 5 && (n.alert = new GK().read(i, i.readVarint() + i.pos));
8620
8620
  }
8621
8621
  }
8622
- class MK extends Lr {
8622
+ class MK extends Pr {
8623
8623
  defaultMessage = {
8624
8624
  trip: {},
8625
8625
  vehicle: {},
@@ -8631,7 +8631,7 @@ class MK extends Lr {
8631
8631
  t === 1 ? n.trip = new wS().read(i, i.readVarint() + i.pos) : t === 3 ? n.vehicle = new WV().read(i, i.readVarint() + i.pos) : t === 2 ? n.stop_time_update?.push(new LK().read(i, i.readVarint() + i.pos)) : t === 4 ? n.timestamp = i.readVarint() : t === 5 && (n.delay = i.readVarint(!0));
8632
8632
  }
8633
8633
  }
8634
- class bR extends Lr {
8634
+ class bR extends Pr {
8635
8635
  defaultMessage = {
8636
8636
  delay: 0,
8637
8637
  time: 0,
@@ -8641,7 +8641,7 @@ class bR extends Lr {
8641
8641
  t === 1 ? n.delay = i.readVarint(!0) : t === 2 ? n.time = i.readVarint(!0) : t === 3 && (n.uncertainty = i.readVarint(!0));
8642
8642
  }
8643
8643
  }
8644
- class LK extends Lr {
8644
+ class LK extends Pr {
8645
8645
  defaultMessage = {
8646
8646
  stop_sequence: 0,
8647
8647
  stop_id: "",
@@ -8654,7 +8654,7 @@ class LK extends Lr {
8654
8654
  t === 1 ? n.stop_sequence = i.readVarint() : t === 4 ? n.stop_id = i.readString() : t === 2 ? n.arrival = new bR().read(i, i.readVarint() + i.pos) : t === 3 ? n.departure = new bR().read(i, i.readVarint() + i.pos) : t === 5 && (n.schedule_relationship = i.readVarint());
8655
8655
  }
8656
8656
  }
8657
- class PK extends Lr {
8657
+ class PK extends Pr {
8658
8658
  defaultMessage = {
8659
8659
  trip: null,
8660
8660
  vehicle: null,
@@ -8671,7 +8671,7 @@ class PK extends Lr {
8671
8671
  t === 1 ? n.trip = new wS().read(i, i.readVarint() + i.pos) : t === 8 ? n.vehicle = new WV().read(i, i.readVarint() + i.pos) : t === 2 ? n.position = new VK().read(i, i.readVarint() + i.pos) : t === 3 ? n.current_stop_sequence = i.readVarint() : t === 7 ? n.stop_id = i.readString() : t === 4 ? n.current_status = i.readVarint() : t === 5 ? n.timestamp = i.readVarint() : t === 6 ? n.congestion_level = i.readVarint() : t === 9 && (n.occupancy_status = i.readVarint());
8672
8672
  }
8673
8673
  }
8674
- class GK extends Lr {
8674
+ class GK extends Pr {
8675
8675
  defaultMessage = {
8676
8676
  active_period: [],
8677
8677
  informed_entity: [],
@@ -8685,7 +8685,7 @@ class GK extends Lr {
8685
8685
  t === 1 ? n.active_period?.push(new OK().read(i, i.readVarint() + i.pos)) : t === 5 ? n.informed_entity?.push(new FK().read(i, i.readVarint() + i.pos)) : t === 6 ? n.cause = i.readVarint() : t === 7 ? n.effect = i.readVarint() : t === 8 ? n.url = new X1().read(i, i.readVarint() + i.pos) : t === 10 ? n.header_text = new X1().read(i, i.readVarint() + i.pos) : t === 11 && (n.description_text = new X1().read(i, i.readVarint() + i.pos));
8686
8686
  }
8687
8687
  }
8688
- class OK extends Lr {
8688
+ class OK extends Pr {
8689
8689
  defaultMessage = {
8690
8690
  start: 0,
8691
8691
  end: 0
@@ -8694,7 +8694,7 @@ class OK extends Lr {
8694
8694
  t === 1 ? n.start = i.readVarint() : t === 2 && (n.end = i.readVarint());
8695
8695
  }
8696
8696
  }
8697
- class VK extends Lr {
8697
+ class VK extends Pr {
8698
8698
  defaultMessage = {
8699
8699
  latitude: 0,
8700
8700
  longitude: 0,
@@ -8706,7 +8706,7 @@ class VK extends Lr {
8706
8706
  t === 1 ? n.latitude = i.readFloat() : t === 2 ? n.longitude = i.readFloat() : t === 3 ? n.bearing = i.readFloat() : t === 4 ? n.odometer = i.readDouble() : t === 5 && (n.speed = i.readFloat());
8707
8707
  }
8708
8708
  }
8709
- class wS extends Lr {
8709
+ class wS extends Pr {
8710
8710
  defaultMessage = {
8711
8711
  trip_id: "",
8712
8712
  route_id: "",
@@ -8720,7 +8720,7 @@ class wS extends Lr {
8720
8720
  t === 1 ? n.trip_id = i.readString() : t === 5 ? n.route_id = i.readString() : t === 6 ? n.direction_id = i.readVarint() : t === 2 ? n.start_time = i.readString() : t === 3 ? n.start_date = i.readString() : t === 4 && (n.schedule_relationship = i.readVarint());
8721
8721
  }
8722
8722
  }
8723
- class WV extends Lr {
8723
+ class WV extends Pr {
8724
8724
  defaultMessage = {
8725
8725
  id: "",
8726
8726
  label: "",
@@ -8730,7 +8730,7 @@ class WV extends Lr {
8730
8730
  t === 1 ? n.id = i.readString() : t === 2 ? n.label = i.readString() : t === 3 && (n.license_plate = i.readString());
8731
8731
  }
8732
8732
  }
8733
- class FK extends Lr {
8733
+ class FK extends Pr {
8734
8734
  defaultMessage = {
8735
8735
  agency_id: "",
8736
8736
  route_id: "",
@@ -8742,13 +8742,13 @@ class FK extends Lr {
8742
8742
  t === 1 ? n.agency_id = i.readString() : t === 2 ? n.route_id = i.readString() : t === 3 ? n.route_type = i.readVarint(!0) : t === 4 ? n.trip = new wS().read(i, i.readVarint() + i.pos) : t === 5 && (n.stop_id = i.readString());
8743
8743
  }
8744
8744
  }
8745
- class X1 extends Lr {
8745
+ class X1 extends Pr {
8746
8746
  defaultMessage = { translation: [] };
8747
8747
  readField(t, n = {}, i) {
8748
8748
  t === 1 && n.translation?.push(new AK().read(i, i.readVarint() + i.pos));
8749
8749
  }
8750
8750
  }
8751
- class AK extends Lr {
8751
+ class AK extends Pr {
8752
8752
  defaultMessage = { text: "", language: "" };
8753
8753
  readField(t, n = {}, i) {
8754
8754
  t === 1 ? n.text = i.readString() : t === 2 && (n.language = i.readString());
@@ -10211,7 +10211,7 @@ function ZK() {
10211
10211
  z.pending_buf[z.pending++] = ge >>> 8 & 255, z.pending_buf[z.pending++] = 255 & ge;
10212
10212
  }
10213
10213
  function ie(z, ge) {
10214
- var le, Q, Y = z.max_chain_length, $ = z.strstart, ce = z.prev_length, be = z.nice_match, q = z.strstart > z.w_size - X ? z.strstart - (z.w_size - X) : 0, ue = z.window, Ie = z.w_mask, we = z.prev, Ue = z.strstart + A, Ye = ue[$ + ce - 1], Qe = ue[$ + ce];
10214
+ var le, Q, Y = z.max_chain_length, $ = z.strstart, ce = z.prev_length, be = z.nice_match, q = z.strstart > z.w_size - X ? z.strstart - (z.w_size - X) : 0, ue = z.window, Me = z.w_mask, we = z.prev, Ue = z.strstart + A, Ye = ue[$ + ce - 1], Qe = ue[$ + ce];
10215
10215
  z.prev_length >= z.good_match && (Y >>= 2), be > z.lookahead && (be = z.lookahead);
10216
10216
  do
10217
10217
  if (ue[(le = ge) + ce] === Qe && ue[le + ce - 1] === Ye && ue[le] === ue[$] && ue[++le] === ue[$ + 1]) {
@@ -10224,11 +10224,11 @@ function ZK() {
10224
10224
  Ye = ue[$ + ce - 1], Qe = ue[$ + ce];
10225
10225
  }
10226
10226
  }
10227
- while ((ge = we[ge & Ie]) > q && --Y != 0);
10227
+ while ((ge = we[ge & Me]) > q && --Y != 0);
10228
10228
  return ce <= z.lookahead ? ce : z.lookahead;
10229
10229
  }
10230
10230
  function Ee(z) {
10231
- var ge, le, Q, Y, $, ce, be, q, ue, Ie, we = z.w_size;
10231
+ var ge, le, Q, Y, $, ce, be, q, ue, Me, we = z.w_size;
10232
10232
  do {
10233
10233
  if (Y = z.window_size - z.lookahead - z.strstart, z.strstart >= we + (we - X)) {
10234
10234
  for (s.arraySet(z.window, z.window, we, we, 0), z.match_start -= we, z.strstart -= we, z.block_start -= we, ge = le = z.hash_size; Q = z.head[--ge], z.head[ge] = we <= Q ? Q - we : 0, --le; ) ;
@@ -10236,7 +10236,7 @@ function ZK() {
10236
10236
  Y += we;
10237
10237
  }
10238
10238
  if (z.strm.avail_in === 0) break;
10239
- if (ce = z.strm, be = z.window, q = z.strstart + z.lookahead, ue = Y, Ie = void 0, Ie = ce.avail_in, ue < Ie && (Ie = ue), le = Ie === 0 ? 0 : (ce.avail_in -= Ie, s.arraySet(be, ce.input, ce.next_in, Ie, q), ce.state.wrap === 1 ? ce.adler = c(ce.adler, be, Ie, q) : ce.state.wrap === 2 && (ce.adler = l(ce.adler, be, Ie, q)), ce.next_in += Ie, ce.total_in += Ie, Ie), z.lookahead += le, z.lookahead + z.insert >= P) for ($ = z.strstart - z.insert, z.ins_h = z.window[$], z.ins_h = (z.ins_h << z.hash_shift ^ z.window[$ + 1]) & z.hash_mask; z.insert && (z.ins_h = (z.ins_h << z.hash_shift ^ z.window[$ + P - 1]) & z.hash_mask, z.prev[$ & z.w_mask] = z.head[z.ins_h], z.head[z.ins_h] = $, $++, z.insert--, !(z.lookahead + z.insert < P)); ) ;
10239
+ if (ce = z.strm, be = z.window, q = z.strstart + z.lookahead, ue = Y, Me = void 0, Me = ce.avail_in, ue < Me && (Me = ue), le = Me === 0 ? 0 : (ce.avail_in -= Me, s.arraySet(be, ce.input, ce.next_in, Me, q), ce.state.wrap === 1 ? ce.adler = c(ce.adler, be, Me, q) : ce.state.wrap === 2 && (ce.adler = l(ce.adler, be, Me, q)), ce.next_in += Me, ce.total_in += Me, Me), z.lookahead += le, z.lookahead + z.insert >= P) for ($ = z.strstart - z.insert, z.ins_h = z.window[$], z.ins_h = (z.ins_h << z.hash_shift ^ z.window[$ + 1]) & z.hash_mask; z.insert && (z.ins_h = (z.ins_h << z.hash_shift ^ z.window[$ + P - 1]) & z.hash_mask, z.prev[$ & z.w_mask] = z.head[z.ins_h], z.head[z.ins_h] = $, $++, z.insert--, !(z.lookahead + z.insert < P)); ) ;
10240
10240
  } while (z.lookahead < X && z.strm.avail_in !== 0);
10241
10241
  }
10242
10242
  function ve(z, ge) {
@@ -10350,16 +10350,16 @@ function ZK() {
10350
10350
  if (Q.status === 666 && z.avail_in !== 0) return D(z, -5);
10351
10351
  if (z.avail_in !== 0 || Q.lookahead !== 0 || ge !== h && Q.status !== 666) {
10352
10352
  var be = Q.strategy === 2 ? (function(q, ue) {
10353
- for (var Ie; ; ) {
10353
+ for (var Me; ; ) {
10354
10354
  if (q.lookahead === 0 && (Ee(q), q.lookahead === 0)) {
10355
10355
  if (ue === h) return w;
10356
10356
  break;
10357
10357
  }
10358
- if (q.match_length = 0, Ie = a._tr_tally(q, 0, q.window[q.strstart]), q.lookahead--, q.strstart++, Ie && (W(q, !1), q.strm.avail_out === 0)) return w;
10358
+ if (q.match_length = 0, Me = a._tr_tally(q, 0, q.window[q.strstart]), q.lookahead--, q.strstart++, Me && (W(q, !1), q.strm.avail_out === 0)) return w;
10359
10359
  }
10360
10360
  return q.insert = 0, ue === d ? (W(q, !0), q.strm.avail_out === 0 ? N : k) : q.last_lit && (W(q, !1), q.strm.avail_out === 0) ? w : R;
10361
10361
  })(Q, ge) : Q.strategy === 3 ? (function(q, ue) {
10362
- for (var Ie, we, Ue, Ye, Qe = q.window; ; ) {
10362
+ for (var Me, we, Ue, Ye, Qe = q.window; ; ) {
10363
10363
  if (q.lookahead <= A) {
10364
10364
  if (Ee(q), q.lookahead <= A && ue === h) return w;
10365
10365
  if (q.lookahead === 0) break;
@@ -10371,7 +10371,7 @@ function ZK() {
10371
10371
  while (we === Qe[++Ue] && we === Qe[++Ue] && we === Qe[++Ue] && we === Qe[++Ue] && we === Qe[++Ue] && we === Qe[++Ue] && we === Qe[++Ue] && we === Qe[++Ue] && Ue < Ye);
10372
10372
  q.match_length = A - (Ye - Ue), q.match_length > q.lookahead && (q.match_length = q.lookahead);
10373
10373
  }
10374
- if (q.match_length >= P ? (Ie = a._tr_tally(q, 1, q.match_length - P), q.lookahead -= q.match_length, q.strstart += q.match_length, q.match_length = 0) : (Ie = a._tr_tally(q, 0, q.window[q.strstart]), q.lookahead--, q.strstart++), Ie && (W(q, !1), q.strm.avail_out === 0)) return w;
10374
+ if (q.match_length >= P ? (Me = a._tr_tally(q, 1, q.match_length - P), q.lookahead -= q.match_length, q.strstart += q.match_length, q.match_length = 0) : (Me = a._tr_tally(q, 0, q.window[q.strstart]), q.lookahead--, q.strstart++), Me && (W(q, !1), q.strm.avail_out === 0)) return w;
10375
10375
  }
10376
10376
  return q.insert = 0, ue === d ? (W(q, !0), q.strm.avail_out === 0 ? N : k) : q.last_lit && (W(q, !1), q.strm.avail_out === 0) ? w : R;
10377
10377
  })(Q, ge) : o[Q.level].func(Q, ge);
@@ -10383,9 +10383,9 @@ function ZK() {
10383
10383
  var ge;
10384
10384
  return z && z.state ? (ge = z.state.status) !== I && ge !== 69 && ge !== 73 && ge !== 91 && ge !== 103 && ge !== x && ge !== 666 ? D(z, p) : (z.state = null, ge === x ? D(z, -3) : f) : p;
10385
10385
  }, r.deflateSetDictionary = function(z, ge) {
10386
- var le, Q, Y, $, ce, be, q, ue, Ie = ge.length;
10386
+ var le, Q, Y, $, ce, be, q, ue, Me = ge.length;
10387
10387
  if (!z || !z.state || ($ = (le = z.state).wrap) === 2 || $ === 1 && le.status !== I || le.lookahead) return p;
10388
- for ($ === 1 && (z.adler = c(z.adler, ge, Ie, 0)), le.wrap = 0, Ie >= le.w_size && ($ === 0 && (K(le.head), le.strstart = 0, le.block_start = 0, le.insert = 0), ue = new s.Buf8(le.w_size), s.arraySet(ue, ge, Ie - le.w_size, le.w_size, 0), ge = ue, Ie = le.w_size), ce = z.avail_in, be = z.next_in, q = z.input, z.avail_in = Ie, z.next_in = 0, z.input = ge, Ee(le); le.lookahead >= P; ) {
10388
+ for ($ === 1 && (z.adler = c(z.adler, ge, Me, 0)), le.wrap = 0, Me >= le.w_size && ($ === 0 && (K(le.head), le.strstart = 0, le.block_start = 0, le.insert = 0), ue = new s.Buf8(le.w_size), s.arraySet(ue, ge, Me - le.w_size, le.w_size, 0), ge = ue, Me = le.w_size), ce = z.avail_in, be = z.next_in, q = z.input, z.avail_in = Me, z.next_in = 0, z.input = ge, Ee(le); le.lookahead >= P; ) {
10389
10389
  for (Q = le.strstart, Y = le.lookahead - (P - 1); le.ins_h = (le.ins_h << le.hash_shift ^ le.window[Q + P - 1]) & le.hash_mask, le.prev[Q & le.w_mask] = le.head[le.ins_h], le.head[le.ins_h] = Q, Q++, --Y; ) ;
10390
10390
  le.strstart = Q, le.lookahead = P - 1, Ee(le);
10391
10391
  }
@@ -10945,8 +10945,8 @@ function ZK() {
10945
10945
  return ce >>> 1;
10946
10946
  }
10947
10947
  function ve(Y, $, ce) {
10948
- var be, q, ue = new Array(y + 1), Ie = 0;
10949
- for (be = 1; be <= y; be++) ue[be] = Ie = Ie + ce[be - 1] << 1;
10948
+ var be, q, ue = new Array(y + 1), Me = 0;
10949
+ for (be = 1; be <= y; be++) ue[be] = Me = Me + ce[be - 1] << 1;
10950
10950
  for (q = 0; q <= $; q++) {
10951
10951
  var we = Y[2 * q + 1];
10952
10952
  we !== 0 && (Y[2 * q] = Ee(ue[we]++, we));
@@ -10971,14 +10971,14 @@ function ZK() {
10971
10971
  Y.heap[ce] = be;
10972
10972
  }
10973
10973
  function tt(Y, $, ce) {
10974
- var be, q, ue, Ie, we = 0;
10975
- if (Y.last_lit !== 0) for (; be = Y.pending_buf[Y.d_buf + 2 * we] << 8 | Y.pending_buf[Y.d_buf + 2 * we + 1], q = Y.pending_buf[Y.l_buf + we], we++, be === 0 ? ie(Y, q, $) : (ie(Y, (ue = w[q]) + h + 1, $), (Ie = G[ue]) !== 0 && J(Y, q -= R[ue], Ie), ie(Y, ue = W(--be), ce), (Ie = V[ue]) !== 0 && J(Y, be -= B[ue], Ie)), we < Y.last_lit; ) ;
10974
+ var be, q, ue, Me, we = 0;
10975
+ if (Y.last_lit !== 0) for (; be = Y.pending_buf[Y.d_buf + 2 * we] << 8 | Y.pending_buf[Y.d_buf + 2 * we + 1], q = Y.pending_buf[Y.l_buf + we], we++, be === 0 ? ie(Y, q, $) : (ie(Y, (ue = w[q]) + h + 1, $), (Me = G[ue]) !== 0 && J(Y, q -= R[ue], Me), ie(Y, ue = W(--be), ce), (Me = V[ue]) !== 0 && J(Y, be -= B[ue], Me)), we < Y.last_lit; ) ;
10976
10976
  ie(Y, S, $);
10977
10977
  }
10978
10978
  function rt(Y, $) {
10979
- var ce, be, q, ue = $.dyn_tree, Ie = $.stat_desc.static_tree, we = $.stat_desc.has_stree, Ue = $.stat_desc.elems, Ye = -1;
10979
+ var ce, be, q, ue = $.dyn_tree, Me = $.stat_desc.static_tree, we = $.stat_desc.has_stree, Ue = $.stat_desc.elems, Ye = -1;
10980
10980
  for (Y.heap_len = 0, Y.heap_max = m, ce = 0; ce < Ue; ce++) ue[2 * ce] !== 0 ? (Y.heap[++Y.heap_len] = Ye = ce, Y.depth[ce] = 0) : ue[2 * ce + 1] = 0;
10981
- for (; Y.heap_len < 2; ) ue[2 * (q = Y.heap[++Y.heap_len] = Ye < 2 ? ++Ye : 0)] = 1, Y.depth[q] = 0, Y.opt_len--, we && (Y.static_len -= Ie[2 * q + 1]);
10981
+ for (; Y.heap_len < 2; ) ue[2 * (q = Y.heap[++Y.heap_len] = Ye < 2 ? ++Ye : 0)] = 1, Y.depth[q] = 0, Y.opt_len--, we && (Y.static_len -= Me[2 * q + 1]);
10982
10982
  for ($.max_code = Ye, ce = Y.heap_len >> 1; 1 <= ce; ce--) ke(Y, ue, ce);
10983
10983
  for (q = Ue; ce = Y.heap[1], Y.heap[1] = Y.heap[Y.heap_len--], ke(Y, ue, 1), be = Y.heap[1], Y.heap[--Y.heap_max] = ce, Y.heap[--Y.heap_max] = be, ue[2 * q] = ue[2 * ce] + ue[2 * be], Y.depth[q] = (Y.depth[ce] >= Y.depth[be] ? Y.depth[ce] : Y.depth[be]) + 1, ue[2 * ce + 1] = ue[2 * be + 1] = q, Y.heap[1] = q++, ke(Y, ue, 1), 2 <= Y.heap_len; ) ;
10984
10984
  Y.heap[--Y.heap_max] = Y.heap[1], (function(Qe, Wt) {
@@ -10995,47 +10995,47 @@ function ZK() {
10995
10995
  })(Y, $), ve(ue, Ye, Y.bl_count);
10996
10996
  }
10997
10997
  function z(Y, $, ce) {
10998
- var be, q, ue = -1, Ie = $[1], we = 0, Ue = 7, Ye = 4;
10999
- for (Ie === 0 && (Ue = 138, Ye = 3), $[2 * (ce + 1) + 1] = 65535, be = 0; be <= ce; be++) q = Ie, Ie = $[2 * (be + 1) + 1], ++we < Ue && q === Ie || (we < Ye ? Y.bl_tree[2 * q] += we : q !== 0 ? (q !== ue && Y.bl_tree[2 * q]++, Y.bl_tree[2 * E]++) : we <= 10 ? Y.bl_tree[2 * C]++ : Y.bl_tree[2 * M]++, ue = q, Ye = (we = 0) === Ie ? (Ue = 138, 3) : q === Ie ? (Ue = 6, 3) : (Ue = 7, 4));
10998
+ var be, q, ue = -1, Me = $[1], we = 0, Ue = 7, Ye = 4;
10999
+ for (Me === 0 && (Ue = 138, Ye = 3), $[2 * (ce + 1) + 1] = 65535, be = 0; be <= ce; be++) q = Me, Me = $[2 * (be + 1) + 1], ++we < Ue && q === Me || (we < Ye ? Y.bl_tree[2 * q] += we : q !== 0 ? (q !== ue && Y.bl_tree[2 * q]++, Y.bl_tree[2 * E]++) : we <= 10 ? Y.bl_tree[2 * C]++ : Y.bl_tree[2 * M]++, ue = q, Ye = (we = 0) === Me ? (Ue = 138, 3) : q === Me ? (Ue = 6, 3) : (Ue = 7, 4));
11000
11000
  }
11001
11001
  function ge(Y, $, ce) {
11002
- var be, q, ue = -1, Ie = $[1], we = 0, Ue = 7, Ye = 4;
11003
- for (Ie === 0 && (Ue = 138, Ye = 3), be = 0; be <= ce; be++) if (q = Ie, Ie = $[2 * (be + 1) + 1], !(++we < Ue && q === Ie)) {
11002
+ var be, q, ue = -1, Me = $[1], we = 0, Ue = 7, Ye = 4;
11003
+ for (Me === 0 && (Ue = 138, Ye = 3), be = 0; be <= ce; be++) if (q = Me, Me = $[2 * (be + 1) + 1], !(++we < Ue && q === Me)) {
11004
11004
  if (we < Ye) for (; ie(Y, q, Y.bl_tree), --we != 0; ) ;
11005
11005
  else q !== 0 ? (q !== ue && (ie(Y, q, Y.bl_tree), we--), ie(Y, E, Y.bl_tree), J(Y, we - 3, 2)) : we <= 10 ? (ie(Y, C, Y.bl_tree), J(Y, we - 3, 3)) : (ie(Y, M, Y.bl_tree), J(Y, we - 11, 7));
11006
- ue = q, Ye = (we = 0) === Ie ? (Ue = 138, 3) : q === Ie ? (Ue = 6, 3) : (Ue = 7, 4);
11006
+ ue = q, Ye = (we = 0) === Me ? (Ue = 138, 3) : q === Me ? (Ue = 6, 3) : (Ue = 7, 4);
11007
11007
  }
11008
11008
  }
11009
11009
  c(B);
11010
11010
  var le = !1;
11011
11011
  function Q(Y, $, ce, be) {
11012
- J(Y, (l << 1) + (be ? 1 : 0), 3), (function(q, ue, Ie, we) {
11013
- Oe(q), j(q, Ie), j(q, ~Ie), o.arraySet(q.pending_buf, q.window, ue, Ie, q.pending), q.pending += Ie;
11012
+ J(Y, (l << 1) + (be ? 1 : 0), 3), (function(q, ue, Me, we) {
11013
+ Oe(q), j(q, Me), j(q, ~Me), o.arraySet(q.pending_buf, q.window, ue, Me, q.pending), q.pending += Me;
11014
11014
  })(Y, $, ce);
11015
11015
  }
11016
11016
  r._tr_init = function(Y) {
11017
11017
  le || ((function() {
11018
- var $, ce, be, q, ue, Ie = new Array(y + 1);
11018
+ var $, ce, be, q, ue, Me = new Array(y + 1);
11019
11019
  for (q = be = 0; q < u - 1; q++) for (R[q] = be, $ = 0; $ < 1 << G[q]; $++) w[be++] = q;
11020
11020
  for (w[be - 1] = q, q = ue = 0; q < 16; q++) for (B[q] = ue, $ = 0; $ < 1 << V[q]; $++) x[ue++] = q;
11021
11021
  for (ue >>= 7; q < f; q++) for (B[q] = ue << 7, $ = 0; $ < 1 << V[q] - 7; $++) x[256 + ue++] = q;
11022
- for (ce = 0; ce <= y; ce++) Ie[ce] = 0;
11023
- for ($ = 0; $ <= 143; ) X[2 * $ + 1] = 8, $++, Ie[8]++;
11024
- for (; $ <= 255; ) X[2 * $ + 1] = 9, $++, Ie[9]++;
11025
- for (; $ <= 279; ) X[2 * $ + 1] = 7, $++, Ie[7]++;
11026
- for (; $ <= 287; ) X[2 * $ + 1] = 8, $++, Ie[8]++;
11027
- for (ve(X, d + 1, Ie), $ = 0; $ < f; $++) I[2 * $ + 1] = 5, I[2 * $] = Ee($, 5);
11022
+ for (ce = 0; ce <= y; ce++) Me[ce] = 0;
11023
+ for ($ = 0; $ <= 143; ) X[2 * $ + 1] = 8, $++, Me[8]++;
11024
+ for (; $ <= 255; ) X[2 * $ + 1] = 9, $++, Me[9]++;
11025
+ for (; $ <= 279; ) X[2 * $ + 1] = 7, $++, Me[7]++;
11026
+ for (; $ <= 287; ) X[2 * $ + 1] = 8, $++, Me[8]++;
11027
+ for (ve(X, d + 1, Me), $ = 0; $ < f; $++) I[2 * $ + 1] = 5, I[2 * $] = Ee($, 5);
11028
11028
  N = new K(X, G, h + 1, d, y), k = new K(I, V, 0, f, y), D = new K(new Array(0), P, 0, p, v);
11029
11029
  })(), le = !0), Y.l_desc = new F(Y.dyn_ltree, N), Y.d_desc = new F(Y.dyn_dtree, k), Y.bl_desc = new F(Y.bl_tree, D), Y.bi_buf = 0, Y.bi_valid = 0, Ne(Y);
11030
11030
  }, r._tr_stored_block = Q, r._tr_flush_block = function(Y, $, ce, be) {
11031
- var q, ue, Ie = 0;
11031
+ var q, ue, Me = 0;
11032
11032
  0 < Y.level ? (Y.strm.data_type === 2 && (Y.strm.data_type = (function(we) {
11033
11033
  var Ue, Ye = 4093624447;
11034
11034
  for (Ue = 0; Ue <= 31; Ue++, Ye >>>= 1) if (1 & Ye && we.dyn_ltree[2 * Ue] !== 0) return s;
11035
11035
  if (we.dyn_ltree[18] !== 0 || we.dyn_ltree[20] !== 0 || we.dyn_ltree[26] !== 0) return a;
11036
11036
  for (Ue = 32; Ue < h; Ue++) if (we.dyn_ltree[2 * Ue] !== 0) return a;
11037
11037
  return s;
11038
- })(Y)), rt(Y, Y.l_desc), rt(Y, Y.d_desc), Ie = (function(we) {
11038
+ })(Y)), rt(Y, Y.l_desc), rt(Y, Y.d_desc), Me = (function(we) {
11039
11039
  var Ue;
11040
11040
  for (z(we, we.dyn_ltree, we.l_desc.max_code), z(we, we.dyn_dtree, we.d_desc.max_code), rt(we, we.bl_desc), Ue = p - 1; 3 <= Ue && we.bl_tree[2 * A[Ue] + 1] === 0; Ue--) ;
11041
11041
  return we.opt_len += 3 * (Ue + 1) + 5 + 5 + 4, Ue;
@@ -11043,7 +11043,7 @@ function ZK() {
11043
11043
  var Wt;
11044
11044
  for (J(we, Ue - 257, 5), J(we, Ye - 1, 5), J(we, Qe - 4, 4), Wt = 0; Wt < Qe; Wt++) J(we, we.bl_tree[2 * A[Wt] + 1], 3);
11045
11045
  ge(we, we.dyn_ltree, Ue - 1), ge(we, we.dyn_dtree, Ye - 1);
11046
- })(Y, Y.l_desc.max_code + 1, Y.d_desc.max_code + 1, Ie + 1), tt(Y, Y.dyn_ltree, Y.dyn_dtree)), Ne(Y), be && Oe(Y);
11046
+ })(Y, Y.l_desc.max_code + 1, Y.d_desc.max_code + 1, Me + 1), tt(Y, Y.dyn_ltree, Y.dyn_dtree)), Ne(Y), be && Oe(Y);
11047
11047
  }, r._tr_tally = function(Y, $, ce) {
11048
11048
  return Y.pending_buf[Y.d_buf + 2 * Y.last_lit] = $ >>> 8 & 255, Y.pending_buf[Y.d_buf + 2 * Y.last_lit + 1] = 255 & $, Y.pending_buf[Y.l_buf + Y.last_lit] = 255 & ce, Y.last_lit++, $ === 0 ? Y.dyn_ltree[2 * ce]++ : (Y.matches++, $--, Y.dyn_ltree[2 * (w[ce] + h + 1)]++, Y.dyn_dtree[2 * W($)]++), Y.last_lit === Y.lit_bufsize - 1;
11049
11049
  }, r._tr_align = function(Y) {
@@ -14119,7 +14119,7 @@ function JJ(e, t, n) {
14119
14119
  }
14120
14120
  }, o && (s.oProj = r), s);
14121
14121
  }
14122
- var NR = 6, i9 = "AJSAJS", r9 = "AFAFAF", Ku = 65, Fr = 73, So = 79, hf = 86, df = 90;
14122
+ var NR = 6, i9 = "AJSAJS", r9 = "AFAFAF", Ku = 65, Ar = 73, So = 79, hf = 86, df = 90;
14123
14123
  const QJ = {
14124
14124
  forward: o9,
14125
14125
  inverse: qJ,
@@ -14205,7 +14205,7 @@ function a9(e) {
14205
14205
  }
14206
14206
  function iQ(e, t, n) {
14207
14207
  var i = n - 1, r = i9.charCodeAt(i), o = r9.charCodeAt(i), s = r + e - 1, a = o + t, c = !1;
14208
- s > df && (s = s - df + Ku - 1, c = !0), (s === Fr || r < Fr && s > Fr || (s > Fr || r < Fr) && c) && s++, (s === So || r < So && s > So || (s > So || r < So) && c) && (s++, s === Fr && s++), s > df && (s = s - df + Ku - 1), a > hf ? (a = a - hf + Ku - 1, c = !0) : c = !1, (a === Fr || o < Fr && a > Fr || (a > Fr || o < Fr) && c) && a++, (a === So || o < So && a > So || (a > So || o < So) && c) && (a++, a === Fr && a++), a > hf && (a = a - hf + Ku - 1);
14208
+ s > df && (s = s - df + Ku - 1, c = !0), (s === Ar || r < Ar && s > Ar || (s > Ar || r < Ar) && c) && s++, (s === So || r < So && s > So || (s > So || r < So) && c) && (s++, s === Ar && s++), s > df && (s = s - df + Ku - 1), a > hf ? (a = a - hf + Ku - 1, c = !0) : c = !1, (a === Ar || o < Ar && a > Ar || (a > Ar || o < Ar) && c) && a++, (a === So || o < So && a > So || (a > So || o < So) && c) && (a++, a === Ar && a++), a > hf && (a = a - hf + Ku - 1);
14209
14209
  var l = String.fromCharCode(s) + String.fromCharCode(a);
14210
14210
  return l;
14211
14211
  }
@@ -14243,7 +14243,7 @@ northing meters` + e;
14243
14243
  }
14244
14244
  function rQ(e, t) {
14245
14245
  for (var n = i9.charCodeAt(t - 1), i = 1e5, r = !1; n !== e.charCodeAt(0); ) {
14246
- if (n++, n === Fr && n++, n === So && n++, n > df) {
14246
+ if (n++, n === Ar && n++, n === So && n++, n > df) {
14247
14247
  if (r)
14248
14248
  throw "Bad character: " + e;
14249
14249
  n = Ku, r = !0;
@@ -14256,7 +14256,7 @@ function oQ(e, t) {
14256
14256
  if (e > "V")
14257
14257
  throw "MGRSPoint given invalid Northing " + e;
14258
14258
  for (var n = r9.charCodeAt(t - 1), i = 0, r = !1; n !== e.charCodeAt(0); ) {
14259
- if (n++, n === Fr && n++, n === So && n++, n > hf) {
14259
+ if (n++, n === Ar && n++, n === So && n++, n > hf) {
14260
14260
  if (r)
14261
14261
  throw "Bad character: " + e;
14262
14262
  n = Ku, r = !0;
@@ -14739,7 +14739,7 @@ const pq = {
14739
14739
  inverse: dq,
14740
14740
  names: fq
14741
14741
  };
14742
- function Tr(e, t, n, i, r) {
14742
+ function Er(e, t, n, i, r) {
14743
14743
  return e * r - t * Math.sin(2 * r) + n * Math.sin(4 * r) - i * Math.sin(6 * r);
14744
14744
  }
14745
14745
  function wm(e) {
@@ -14770,14 +14770,14 @@ function Py(e, t, n, i, r) {
14770
14770
  return NaN;
14771
14771
  }
14772
14772
  function mq() {
14773
- this.sphere || (this.e0 = wm(this.es), this.e1 = xm(this.es), this.e2 = Sm(this.es), this.e3 = Tm(this.es), this.ml0 = this.a * Tr(this.e0, this.e1, this.e2, this.e3, this.lat0));
14773
+ this.sphere || (this.e0 = wm(this.es), this.e1 = xm(this.es), this.e2 = Sm(this.es), this.e3 = Tm(this.es), this.ml0 = this.a * Er(this.e0, this.e1, this.e2, this.e3, this.lat0));
14774
14774
  }
14775
14775
  function gq(e) {
14776
14776
  var t, n, i = e.x, r = e.y;
14777
14777
  if (i = it(i - this.long0, this.over), this.sphere)
14778
14778
  t = this.a * Math.asin(Math.cos(r) * Math.sin(i)), n = this.a * (Math.atan2(Math.tan(r), Math.cos(i)) - this.lat0);
14779
14779
  else {
14780
- var o = Math.sin(r), s = Math.cos(r), a = PS(this.a, this.e, o), c = Math.tan(r) * Math.tan(r), l = i * Math.cos(r), u = l * l, h = this.es * s * s / (1 - this.es), d = this.a * Tr(this.e0, this.e1, this.e2, this.e3, r);
14780
+ var o = Math.sin(r), s = Math.cos(r), a = PS(this.a, this.e, o), c = Math.tan(r) * Math.tan(r), l = i * Math.cos(r), u = l * l, h = this.es * s * s / (1 - this.es), d = this.a * Er(this.e0, this.e1, this.e2, this.e3, r);
14781
14781
  t = a * l * (1 - u * c * (1 / 6 - (8 - c + 8 * h) * u / 120)), n = d - this.ml0 + a * o / s * u * (0.5 + (5 - c + 6 * h) * u / 24);
14782
14782
  }
14783
14783
  return e.x = t + this.x0, e.y = n + this.y0, e;
@@ -15033,7 +15033,7 @@ const e$ = {
15033
15033
  };
15034
15034
  var UR = 20;
15035
15035
  function t$() {
15036
- this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = wm(this.es), this.e1 = xm(this.es), this.e2 = Sm(this.es), this.e3 = Tm(this.es), this.ml0 = this.a * Tr(this.e0, this.e1, this.e2, this.e3, this.lat0);
15036
+ this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = wm(this.es), this.e1 = xm(this.es), this.e2 = Sm(this.es), this.e3 = Tm(this.es), this.ml0 = this.a * Er(this.e0, this.e1, this.e2, this.e3, this.lat0);
15037
15037
  }
15038
15038
  function n$(e) {
15039
15039
  var t = e.x, n = e.y, i, r, o, s = it(t - this.long0, this.over);
@@ -15043,7 +15043,7 @@ function n$(e) {
15043
15043
  i = this.a * s, r = -1 * this.ml0;
15044
15044
  else {
15045
15045
  var a = PS(this.a, this.e, Math.sin(n)) / Math.tan(n);
15046
- i = a * Math.sin(o), r = this.a * Tr(this.e0, this.e1, this.e2, this.e3, n) - this.ml0 + a * (1 - Math.cos(o));
15046
+ i = a * Math.sin(o), r = this.a * Er(this.e0, this.e1, this.e2, this.e3, n) - this.ml0 + a * (1 - Math.cos(o));
15047
15047
  }
15048
15048
  return e.x = i + this.x0, e.y = r + this.y0, e;
15049
15049
  }
@@ -15068,7 +15068,7 @@ function i$(e) {
15068
15068
  s = (this.ml0 + r) / this.a, a = i * i / this.a / this.a + s * s, c = s;
15069
15069
  var h, d, f, p, m;
15070
15070
  for (o = UR; o; --o)
15071
- if (m = this.e * Math.sin(c), h = Math.sqrt(1 - m * m) * Math.tan(c), d = this.a * Tr(this.e0, this.e1, this.e2, this.e3, c), f = this.e0 - 2 * this.e1 * Math.cos(2 * c) + 4 * this.e2 * Math.cos(4 * c) - 6 * this.e3 * Math.cos(6 * c), p = d / this.a, l = (s * (h * p + 1) - p - 0.5 * h * (p * p + a)) / (this.es * Math.sin(2 * c) * (p * p + a - 2 * s * p) / (4 * h) + (s - p) * (h * f - 2 / Math.sin(2 * c)) - f), c -= l, Math.abs(l) <= qe) {
15071
+ if (m = this.e * Math.sin(c), h = Math.sqrt(1 - m * m) * Math.tan(c), d = this.a * Er(this.e0, this.e1, this.e2, this.e3, c), f = this.e0 - 2 * this.e1 * Math.cos(2 * c) + 4 * this.e2 * Math.cos(4 * c) - 6 * this.e3 * Math.cos(6 * c), p = d / this.a, l = (s * (h * p + 1) - p - 0.5 * h * (p * p + a)) / (this.es * Math.sin(2 * c) * (p * p + a - 2 * s * p) / (4 * h) + (s - p) * (h * f - 2 / Math.sin(2 * c)) - f), c -= l, Math.abs(l) <= qe) {
15072
15072
  n = c;
15073
15073
  break;
15074
15074
  }
@@ -15203,14 +15203,14 @@ const C$ = {
15203
15203
  names: E$
15204
15204
  };
15205
15205
  function R$() {
15206
- Math.abs(this.lat1 + this.lat2) < qe || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = wm(this.es), this.e1 = xm(this.es), this.e2 = Sm(this.es), this.e3 = Tm(this.es), this.sin_phi = Math.sin(this.lat1), this.cos_phi = Math.cos(this.lat1), this.ms1 = ra(this.e, this.sin_phi, this.cos_phi), this.ml1 = Tr(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < qe ? this.ns = this.sin_phi : (this.sin_phi = Math.sin(this.lat2), this.cos_phi = Math.cos(this.lat2), this.ms2 = ra(this.e, this.sin_phi, this.cos_phi), this.ml2 = Tr(this.e0, this.e1, this.e2, this.e3, this.lat2), this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1)), this.g = this.ml1 + this.ms1 / this.ns, this.ml0 = Tr(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
15206
+ Math.abs(this.lat1 + this.lat2) < qe || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = wm(this.es), this.e1 = xm(this.es), this.e2 = Sm(this.es), this.e3 = Tm(this.es), this.sin_phi = Math.sin(this.lat1), this.cos_phi = Math.cos(this.lat1), this.ms1 = ra(this.e, this.sin_phi, this.cos_phi), this.ml1 = Er(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < qe ? this.ns = this.sin_phi : (this.sin_phi = Math.sin(this.lat2), this.cos_phi = Math.cos(this.lat2), this.ms2 = ra(this.e, this.sin_phi, this.cos_phi), this.ml2 = Er(this.e0, this.e1, this.e2, this.e3, this.lat2), this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1)), this.g = this.ml1 + this.ms1 / this.ns, this.ml0 = Er(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
15207
15207
  }
15208
15208
  function I$(e) {
15209
15209
  var t = e.x, n = e.y, i;
15210
15210
  if (this.sphere)
15211
15211
  i = this.a * (this.g - n);
15212
15212
  else {
15213
- var r = Tr(this.e0, this.e1, this.e2, this.e3, n);
15213
+ var r = Er(this.e0, this.e1, this.e2, this.e3, n);
15214
15214
  i = this.a * (this.g - r);
15215
15215
  }
15216
15216
  var o = this.ns * it(t - this.long0, this.over), s = this.x0 + i * Math.sin(o), a = this.y0 + this.rh - i * Math.cos(o);
@@ -15291,12 +15291,12 @@ function X$() {
15291
15291
  }
15292
15292
  function Z$(e) {
15293
15293
  var t = e.x, n = e.y, i = Math.sin(e.y), r = Math.cos(e.y), o = it(t - this.long0, this.over), s, a, c, l, u, h, d, f, p, m, y;
15294
- return this.sphere ? Math.abs(this.sin_p12 - 1) <= qe ? (e.x = this.x0 + this.a * (We - n) * Math.sin(o), e.y = this.y0 - this.a * (We - n) * Math.cos(o), e) : Math.abs(this.sin_p12 + 1) <= qe ? (e.x = this.x0 + this.a * (We + n) * Math.sin(o), e.y = this.y0 + this.a * (We + n) * Math.cos(o), e) : (p = this.sin_p12 * i + this.cos_p12 * r * Math.cos(o), d = Math.acos(p), f = d ? d / Math.sin(d) : 1, e.x = this.x0 + this.a * f * r * Math.sin(o), e.y = this.y0 + this.a * f * (this.cos_p12 * i - this.sin_p12 * r * Math.cos(o)), e) : (s = wm(this.es), a = xm(this.es), c = Sm(this.es), l = Tm(this.es), Math.abs(this.sin_p12 - 1) <= qe ? (u = this.a * Tr(s, a, c, l, We), h = this.a * Tr(s, a, c, l, n), e.x = this.x0 + (u - h) * Math.sin(o), e.y = this.y0 - (u - h) * Math.cos(o), e) : Math.abs(this.sin_p12 + 1) <= qe ? (u = this.a * Tr(s, a, c, l, We), h = this.a * Tr(s, a, c, l, n), e.x = this.x0 + (u + h) * Math.sin(o), e.y = this.y0 + (u + h) * Math.cos(o), e) : Math.abs(t) < qe && Math.abs(n - this.lat0) < qe ? (e.x = e.y = 0, e) : (m = z$(this.lat0, this.long0, n, t, this.a, this.f), y = m.azi1, e.x = m.s12 * Math.sin(y), e.y = m.s12 * Math.cos(y), e));
15294
+ return this.sphere ? Math.abs(this.sin_p12 - 1) <= qe ? (e.x = this.x0 + this.a * (We - n) * Math.sin(o), e.y = this.y0 - this.a * (We - n) * Math.cos(o), e) : Math.abs(this.sin_p12 + 1) <= qe ? (e.x = this.x0 + this.a * (We + n) * Math.sin(o), e.y = this.y0 + this.a * (We + n) * Math.cos(o), e) : (p = this.sin_p12 * i + this.cos_p12 * r * Math.cos(o), d = Math.acos(p), f = d ? d / Math.sin(d) : 1, e.x = this.x0 + this.a * f * r * Math.sin(o), e.y = this.y0 + this.a * f * (this.cos_p12 * i - this.sin_p12 * r * Math.cos(o)), e) : (s = wm(this.es), a = xm(this.es), c = Sm(this.es), l = Tm(this.es), Math.abs(this.sin_p12 - 1) <= qe ? (u = this.a * Er(s, a, c, l, We), h = this.a * Er(s, a, c, l, n), e.x = this.x0 + (u - h) * Math.sin(o), e.y = this.y0 - (u - h) * Math.cos(o), e) : Math.abs(this.sin_p12 + 1) <= qe ? (u = this.a * Er(s, a, c, l, We), h = this.a * Er(s, a, c, l, n), e.x = this.x0 + (u + h) * Math.sin(o), e.y = this.y0 + (u + h) * Math.cos(o), e) : Math.abs(t) < qe && Math.abs(n - this.lat0) < qe ? (e.x = e.y = 0, e) : (m = z$(this.lat0, this.long0, n, t, this.a, this.f), y = m.azi1, e.x = m.s12 * Math.sin(y), e.y = m.s12 * Math.cos(y), e));
15295
15295
  }
15296
15296
  function k$(e) {
15297
15297
  e.x -= this.x0, e.y -= this.y0;
15298
15298
  var t, n, i, r, o, s, a, c, l, u, h, d, f, p, m, y;
15299
- return this.sphere ? (t = Math.sqrt(e.x * e.x + e.y * e.y), t > 2 * We * this.a ? void 0 : (n = t / this.a, i = Math.sin(n), r = Math.cos(n), o = this.long0, Math.abs(t) <= qe ? s = this.lat0 : (s = Uc(r * this.sin_p12 + e.y * i * this.cos_p12 / t), a = Math.abs(this.lat0) - We, Math.abs(a) <= qe ? this.lat0 >= 0 ? o = it(this.long0 + Math.atan2(e.x, -e.y), this.over) : o = it(this.long0 - Math.atan2(-e.x, e.y), this.over) : o = it(this.long0 + Math.atan2(e.x * i, t * this.cos_p12 * r - e.y * this.sin_p12 * i), this.over)), e.x = o, e.y = s, e)) : (c = wm(this.es), l = xm(this.es), u = Sm(this.es), h = Tm(this.es), Math.abs(this.sin_p12 - 1) <= qe ? (d = this.a * Tr(c, l, u, h, We), t = Math.sqrt(e.x * e.x + e.y * e.y), f = d - t, s = Py(f / this.a, c, l, u, h), o = it(this.long0 + Math.atan2(e.x, -1 * e.y), this.over), e.x = o, e.y = s, e) : Math.abs(this.sin_p12 + 1) <= qe ? (d = this.a * Tr(c, l, u, h, We), t = Math.sqrt(e.x * e.x + e.y * e.y), f = t - d, s = Py(f / this.a, c, l, u, h), o = it(this.long0 + Math.atan2(e.x, e.y), this.over), e.x = o, e.y = s, e) : (p = Math.atan2(e.x, e.y), m = Math.sqrt(e.x * e.x + e.y * e.y), y = N$(this.lat0, this.long0, p, m, this.a, this.f), e.x = y.lon2, e.y = y.lat2, e));
15299
+ return this.sphere ? (t = Math.sqrt(e.x * e.x + e.y * e.y), t > 2 * We * this.a ? void 0 : (n = t / this.a, i = Math.sin(n), r = Math.cos(n), o = this.long0, Math.abs(t) <= qe ? s = this.lat0 : (s = Uc(r * this.sin_p12 + e.y * i * this.cos_p12 / t), a = Math.abs(this.lat0) - We, Math.abs(a) <= qe ? this.lat0 >= 0 ? o = it(this.long0 + Math.atan2(e.x, -e.y), this.over) : o = it(this.long0 - Math.atan2(-e.x, e.y), this.over) : o = it(this.long0 + Math.atan2(e.x * i, t * this.cos_p12 * r - e.y * this.sin_p12 * i), this.over)), e.x = o, e.y = s, e)) : (c = wm(this.es), l = xm(this.es), u = Sm(this.es), h = Tm(this.es), Math.abs(this.sin_p12 - 1) <= qe ? (d = this.a * Er(c, l, u, h, We), t = Math.sqrt(e.x * e.x + e.y * e.y), f = d - t, s = Py(f / this.a, c, l, u, h), o = it(this.long0 + Math.atan2(e.x, -1 * e.y), this.over), e.x = o, e.y = s, e) : Math.abs(this.sin_p12 + 1) <= qe ? (d = this.a * Er(c, l, u, h, We), t = Math.sqrt(e.x * e.x + e.y * e.y), f = t - d, s = Py(f / this.a, c, l, u, h), o = it(this.long0 + Math.atan2(e.x, e.y), this.over), e.x = o, e.y = s, e) : (p = Math.atan2(e.x, e.y), m = Math.sqrt(e.x * e.x + e.y * e.y), y = N$(this.lat0, this.long0, p, m, this.a, this.f), e.x = y.lon2, e.y = y.lat2, e));
15300
15300
  }
15301
15301
  var W$ = ["Azimuthal_Equidistant", "aeqd"];
15302
15302
  const U$ = {
@@ -16411,7 +16411,7 @@ function j2(e) {
16411
16411
  );
16412
16412
  return x.length === I?.length ? !x.every((w, R) => {
16413
16413
  const N = I[R];
16414
- return Ur({ ...w, id: "" }, { ...N, id: "" });
16414
+ return Sr({ ...w, id: "" }, { ...N, id: "" });
16415
16415
  }) : !0;
16416
16416
  }, X = await rR(M, { getFeatures: async (I, x) => {
16417
16417
  const w = S(c.get), R = w(G, I, x);
@@ -16559,32 +16559,32 @@ function fte({
16559
16559
  (g) => a({ type: "deleteComputedFeatures", features: g }),
16560
16560
  [a]
16561
16561
  ), p = se(() => a({ type: "forceUpdateFeatures" }), [a]);
16562
- Wr(() => {
16562
+ Ur(() => {
16563
16563
  a({ type: "updateDelegatedDataTypes", delegatedDataTypes: i ?? [] });
16564
- }, [i, a]), Wr(() => {
16564
+ }, [i, a]), Ur(() => {
16565
16565
  a({
16566
16566
  type: "override",
16567
16567
  overrides: n
16568
16568
  });
16569
- }, [a, n]), Wr(() => {
16569
+ }, [a, n]), Ur(() => {
16570
16570
  a({
16571
16571
  type: "setLayer",
16572
16572
  layer: typeof e?.visible > "u" || e?.type === null || e?.type ? e : void 0
16573
16573
  });
16574
16574
  }, [e, a]);
16575
- const m = fe(void 0);
16576
- Wr(() => {
16575
+ const m = de(void 0);
16576
+ Ur(() => {
16577
16577
  const g = e?.type === "simple" ? e.data : void 0;
16578
16578
  if (!(!g?.updateInterval || !g?.url))
16579
16579
  return m.current = window.setInterval(p, g.updateInterval), () => {
16580
16580
  m.current && clearInterval(m.current);
16581
16581
  };
16582
16582
  }, [e, p]);
16583
- const y = fe(void 0);
16584
- return Wr(() => {
16583
+ const y = de(void 0);
16584
+ return Ur(() => {
16585
16585
  const g = e?.type === "simple" ? e.data : void 0, v = co(g, "csv", "jsonProperties", "value");
16586
- Ur(v, y.current) || !g?.url && !g?.value || (p(), y.current = v);
16587
- }, [e, p]), Me(
16586
+ Sr(v, y.current) || !g?.url && !g?.value || (p(), y.current = v);
16587
+ }, [e, p]), Ie(
16588
16588
  () => () => {
16589
16589
  _O(() => {
16590
16590
  s?.originalFeatures.forEach((g) => {
@@ -16615,7 +16615,7 @@ function pte({
16615
16615
  selectedFeatureId: i
16616
16616
  }) {
16617
16617
  const r = e?.type === "simple" ? e.events?.select : void 0;
16618
- Me(() => {
16618
+ Ie(() => {
16619
16619
  if (!(!t || !r) && r.openUrl) {
16620
16620
  const o = r.openUrl.urlKey ? (i ? n?.features.find((s) => s.id === i)?.properties : n?.properties)?.[r.openUrl.urlKey] : r.openUrl.url;
16621
16621
  typeof o == "string" && o && window.open(o, "_blank", "noreferrer");
@@ -16775,7 +16775,7 @@ const K2 = (e, t) => Object.fromEntries(
16775
16775
  Object.entries({ ...t, ...e }).map(([n, i]) => {
16776
16776
  const r = t[n];
16777
16777
  if (!(Object.hasOwn(t, n) && r == null))
16778
- return r === void 0 ? [n, i] : Ir(r) ? [n, r] : lo(i) && Object.keys(i).length !== 0 && lo(r) && Object.keys(r).length !== 0 ? [n, K2(i, r)] : i !== r ? [n, r] : [n, i];
16778
+ return r === void 0 ? [n, i] : Mr(r) ? [n, r] : lo(i) && Object.keys(i).length !== 0 && lo(r) && Object.keys(r).length !== 0 ? [n, K2(i, r)] : i !== r ? [n, r] : [n, i];
16779
16779
  }).filter((n) => !!n)
16780
16780
  );
16781
16781
  function Tte({
@@ -16797,7 +16797,7 @@ function Tte({
16797
16797
  ...Y,
16798
16798
  visible: $ ? !$ : Y.visible
16799
16799
  };
16800
- }), [y, e]), v = y2(g), [S, E] = ot([]), C = fe([]), M = he(() => [...J2(g ?? []), ...J2(S)].map(($) => {
16800
+ }), [y, e]), v = y2(g), [S, E] = ot([]), C = de([]), M = he(() => [...J2(g ?? []), ...J2(S)].map(($) => {
16801
16801
  const ce = l.find((ue) => ue.id === $.id);
16802
16802
  if (!ce) return $;
16803
16803
  const be = ce.data?.value ?? ($.type === "simple" ? $.data?.value : void 0), q = K2(
@@ -16816,8 +16816,8 @@ function Tte({
16816
16816
  }),
16817
16817
  [h]
16818
16818
  )
16819
- ), V = fe(G);
16820
- Me(() => {
16819
+ ), V = de(G);
16820
+ Ie(() => {
16821
16821
  V.current = G;
16822
16822
  }, [G]);
16823
16823
  const P = he(() => gC(
@@ -16891,7 +16891,7 @@ function Tte({
16891
16891
  }), [...ce]));
16892
16892
  },
16893
16893
  [c]
16894
- ), N = fe(l), k = se(
16894
+ ), N = de(l), k = se(
16895
16895
  (Y, $) => {
16896
16896
  const ce = c.get(Y);
16897
16897
  if (!ce) return;
@@ -16906,18 +16906,18 @@ function Tte({
16906
16906
  }
16907
16907
  );
16908
16908
  q && ue.data && (ue.data.value = q);
16909
- const Ie = $?.property, we = H1({
16910
- ...ce.compat && Ie ? {
16909
+ const Me = $?.property, we = H1({
16910
+ ...ce.compat && Me ? {
16911
16911
  type: ce.type === "group" ? "group" : "item",
16912
16912
  extensionId: ce.compat.extensionId,
16913
16913
  property: {
16914
16914
  default: {
16915
16915
  ...ce.compat.property?.default || {},
16916
- ...Ie.default || {}
16916
+ ...Me.default || {}
16917
16917
  }
16918
16918
  }
16919
16919
  } : {},
16920
- ...!ce.compat && Ie ? { property: Ie } : {},
16920
+ ...!ce.compat && Me ? { property: Me } : {},
16921
16921
  ...ue
16922
16922
  });
16923
16923
  if (!we) return;
@@ -16946,12 +16946,12 @@ function Tte({
16946
16946
  }), J = se(
16947
16947
  (...Y) => {
16948
16948
  Y.find((q) => q === i?.layerId) && B(), E((q) => {
16949
- const ue = [], Ie = y9(q, (we) => Y.includes(we.id) ? (ue.push(we), !0) : !1);
16949
+ const ue = [], Me = y9(q, (we) => Y.includes(we.id) ? (ue.push(we), !0) : !1);
16950
16950
  return ue.map((we) => we.id).forEach((we) => {
16951
16951
  c.delete(we), h.delete(we), d.delete(we), m(we);
16952
16952
  }), C.current = C.current.filter(
16953
16953
  (we) => !ue.find((Ue) => Ue.id === we.id)
16954
- ), Ie;
16954
+ ), Me;
16955
16955
  });
16956
16956
  const be = N.current.filter((q) => !Y.includes(q.id));
16957
16957
  N.current = be, u(be);
@@ -17069,11 +17069,11 @@ function Tte({
17069
17069
  j,
17070
17070
  le
17071
17071
  ]
17072
- ), Me(() => {
17072
+ ), Ie(() => {
17073
17073
  a?.();
17074
17074
  }, [a]);
17075
- const Q = fe([]);
17076
- return Wr(() => {
17075
+ const Q = de([]);
17076
+ return Ur(() => {
17077
17077
  const Y = /* @__PURE__ */ new Set();
17078
17078
  Lg(g ?? [], (q) => {
17079
17079
  Y.add(q.id), h.has(q.id) || h.set(q.id, j2()), c.set(q.id, q);
@@ -17084,7 +17084,7 @@ function Tte({
17084
17084
  });
17085
17085
  const be = N.current.filter((q) => !$?.includes(q.id));
17086
17086
  N.current = be, u(be), Q.current = g;
17087
- }, [h, c, d, u, m, g]), Me(() => {
17087
+ }, [h, c, d, u, m, g]), Ie(() => {
17088
17088
  !r || r.current === wO || (r.current = uf);
17089
17089
  }, [M, l, f, r]), { atomMap: h, flattenedLayers: M, isHidden: y };
17090
17090
  }
@@ -17179,7 +17179,7 @@ function Ete({
17179
17179
  ) : i?.(void 0, void 0, void 0, void 0, void 0);
17180
17180
  },
17181
17181
  [o, n, i]
17182
- ), u = fe([]), h = se(
17182
+ ), u = de([]), h = se(
17183
17183
  (m, y, g) => {
17184
17184
  if (m.length === 1) {
17185
17185
  const [{ layerId: v, featureId: S }] = m;
@@ -17291,7 +17291,7 @@ const Cte = ({
17291
17291
  }
17292
17292
  );
17293
17293
  }, Rte = no(Cte);
17294
- var Ite = Wr;
17294
+ var Ite = Ur;
17295
17295
  function Mte() {
17296
17296
  if (typeof globalThis < "u")
17297
17297
  return globalThis;
@@ -17600,7 +17600,7 @@ function Ute(e, t) {
17600
17600
  }
17601
17601
  let j1 = !1;
17602
17602
  const AS = 1;
17603
- let Ar = /* @__PURE__ */ (function(e) {
17603
+ let zr = /* @__PURE__ */ (function(e) {
17604
17604
  return e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped", e;
17605
17605
  })({});
17606
17606
  const Dte = {
@@ -17620,7 +17620,7 @@ class Bte {
17620
17620
  * @param options Actor options
17621
17621
  */
17622
17622
  constructor(t, n) {
17623
- this.logic = t, this._snapshot = void 0, this.clock = void 0, this.options = void 0, this.id = void 0, this.mailbox = new KR(this._process.bind(this)), this.observers = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Map(), this.logger = void 0, this._processingStatus = Ar.NotStarted, this._parent = void 0, this._syncSnapshot = void 0, this.ref = void 0, this._actorScope = void 0, this.systemId = void 0, this.sessionId = void 0, this.system = void 0, this._doneEvent = void 0, this.src = void 0, this._deferred = [];
17623
+ this.logic = t, this._snapshot = void 0, this.clock = void 0, this.options = void 0, this.id = void 0, this.mailbox = new KR(this._process.bind(this)), this.observers = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Map(), this.logger = void 0, this._processingStatus = zr.NotStarted, this._parent = void 0, this._syncSnapshot = void 0, this.ref = void 0, this._actorScope = void 0, this.systemId = void 0, this.sessionId = void 0, this.system = void 0, this._doneEvent = void 0, this.src = void 0, this._deferred = [];
17624
17624
  const i = {
17625
17625
  ...Dte,
17626
17626
  ...n
@@ -17680,7 +17680,7 @@ class Bte {
17680
17680
  j1 = f;
17681
17681
  }
17682
17682
  };
17683
- this._processingStatus === Ar.Running ? d() : this._deferred.push(d);
17683
+ this._processingStatus === zr.Running ? d() : this._deferred.push(d);
17684
17684
  }
17685
17685
  }, this.send = this.send.bind(this), this.system._sendInspectionEvent({
17686
17686
  type: "@xstate.actor",
@@ -17801,7 +17801,7 @@ class Bte {
17801
17801
  */
17802
17802
  subscribe(t, n, i) {
17803
17803
  const r = ew(t, n, i);
17804
- if (this._processingStatus !== Ar.Stopped)
17804
+ if (this._processingStatus !== zr.Stopped)
17805
17805
  this.observers.add(r);
17806
17806
  else
17807
17807
  switch (this._snapshot.status) {
@@ -17843,7 +17843,7 @@ class Bte {
17843
17843
  }
17844
17844
  /** Starts the Actor from the initial state */
17845
17845
  start() {
17846
- if (this._processingStatus === Ar.Running)
17846
+ if (this._processingStatus === zr.Running)
17847
17847
  return this;
17848
17848
  this._syncSnapshot && this.subscribe({
17849
17849
  next: (i) => {
@@ -17854,7 +17854,7 @@ class Bte {
17854
17854
  },
17855
17855
  error: () => {
17856
17856
  }
17857
- }), this.system._register(this.sessionId, this), this.systemId && this.system._set(this.systemId, this), this._processingStatus = Ar.Running;
17857
+ }), this.system._register(this.sessionId, this), this.systemId && this.system._set(this.systemId, this), this._processingStatus = zr.Running;
17858
17858
  const t = w9(this.options.input);
17859
17859
  switch (this.system._sendInspectionEvent({
17860
17860
  type: "@xstate.event",
@@ -17902,7 +17902,7 @@ class Bte {
17902
17902
  this.update(n, t), t.type === Q2 && (this._stopProcedure(), this._complete());
17903
17903
  }
17904
17904
  _stop() {
17905
- return this._processingStatus === Ar.Stopped ? this : (this.mailbox.clear(), this._processingStatus === Ar.NotStarted ? (this._processingStatus = Ar.Stopped, this) : (this.mailbox.enqueue({
17905
+ return this._processingStatus === zr.Stopped ? this : (this.mailbox.clear(), this._processingStatus === zr.NotStarted ? (this._processingStatus = zr.Stopped, this) : (this.mailbox.enqueue({
17906
17906
  type: Q2
17907
17907
  }), this));
17908
17908
  }
@@ -17947,11 +17947,11 @@ class Bte {
17947
17947
  // right now, they are being stopped within the machine's transition
17948
17948
  // but that could throw and leave us with "orphaned" active actors
17949
17949
  _stopProcedure() {
17950
- return this._processingStatus !== Ar.Running ? this : (this.system.scheduler.cancelAll(this), this.mailbox.clear(), this.mailbox = new KR(this._process.bind(this)), this._processingStatus = Ar.Stopped, this.system._unregister(this), this);
17950
+ return this._processingStatus !== zr.Running ? this : (this.system.scheduler.cancelAll(this), this.mailbox.clear(), this.mailbox = new KR(this._process.bind(this)), this._processingStatus = zr.Stopped, this.system._unregister(this), this);
17951
17951
  }
17952
17952
  /** @internal */
17953
17953
  _send(t) {
17954
- this._processingStatus !== Ar.Stopped && this.mailbox.enqueue(t);
17954
+ this._processingStatus !== zr.Stopped && this.mailbox.enqueue(t);
17955
17955
  }
17956
17956
  /**
17957
17957
  * Sends an event to the running Actor to trigger a transition.
@@ -18068,7 +18068,7 @@ function Jte(e, {
18068
18068
  actorRef: t
18069
18069
  }) {
18070
18070
  t && e.defer(() => {
18071
- t._processingStatus !== Ar.Stopped && t.start();
18071
+ t._processingStatus !== zr.Stopped && t.start();
18072
18072
  });
18073
18073
  }
18074
18074
  function Qte(...[e, {
@@ -18101,7 +18101,7 @@ function C9(e, t) {
18101
18101
  }
18102
18102
  function $te(e, t) {
18103
18103
  if (t) {
18104
- if (C9(e, t), t._processingStatus !== Ar.Running) {
18104
+ if (C9(e, t), t._processingStatus !== zr.Running) {
18105
18105
  e.stopChild(t);
18106
18106
  return;
18107
18107
  }
@@ -19009,7 +19009,7 @@ function Gne(e, {
19009
19009
  return (s, a) => {
19010
19010
  const c = o(s, a);
19011
19011
  return r[c.id] = c, e.defer(() => {
19012
- c._processingStatus !== Ar.Stopped && c.start();
19012
+ c._processingStatus !== zr.Stopped && c.start();
19013
19013
  }), c;
19014
19014
  };
19015
19015
  }
@@ -19663,7 +19663,7 @@ function Bne(e, ...[t]) {
19663
19663
  }, [n]), o = Wne.useSyncExternalStore(r, i, i), s = "status" in o ? o : void 0;
19664
19664
  if (s?.status === "error")
19665
19665
  throw s.error;
19666
- return Me(() => (n.start(), () => {
19666
+ return Ie(() => (n.start(), () => {
19667
19667
  Une(n);
19668
19668
  }), [n]), [o, n.send, n];
19669
19669
  }
@@ -19671,10 +19671,10 @@ function Yne(e, ...[t]) {
19671
19671
  return Bne(e, t);
19672
19672
  }
19673
19673
  function iw(e, t, n) {
19674
- const i = fe(t);
19674
+ const i = de(t);
19675
19675
  i.current = t;
19676
- const r = fe(n);
19677
- Me(() => {
19676
+ const r = de(n);
19677
+ Ie(() => {
19678
19678
  if (typeof window > "u")
19679
19679
  return;
19680
19680
  const o = (a) => {
@@ -20689,15 +20689,15 @@ const Qne = ({
20689
20689
  a,
20690
20690
  d,
20691
20691
  r
20692
- ]), I = fe(G);
20692
+ ]), I = de(G);
20693
20693
  I.current = G;
20694
- const x = fe(V);
20694
+ const x = de(V);
20695
20695
  x.current = V;
20696
- const w = fe(P);
20696
+ const w = de(P);
20697
20697
  w.current = P;
20698
- const R = fe(A);
20698
+ const R = de(A);
20699
20699
  R.current = A;
20700
- const N = fe(X);
20700
+ const N = de(X);
20701
20701
  N.current = X;
20702
20702
  const k = se(
20703
20703
  (j) => {
@@ -20721,8 +20721,8 @@ const Qne = ({
20721
20721
  [R]
20722
20722
  ), F = se(() => {
20723
20723
  N.current?.();
20724
- }, [N]), W = fe(!1);
20725
- return Me(() => {
20724
+ }, [N]), W = de(!1);
20725
+ return Ie(() => {
20726
20726
  W.current || !t.current || (W.current = !0, t.current?.onMouseDown(k), t.current?.onMouseMove(D), t.current?.onMouseUp(B), t.current?.onDoubleClick(K), t.current?.onRightClick(F));
20727
20727
  }, [t, k, D, B, K, F]), {};
20728
20728
  };
@@ -20880,7 +20880,7 @@ function tie({
20880
20880
  ...je,
20881
20881
  appearance: mS(dS(Ft.appearance), je.appearance)
20882
20882
  }));
20883
- }, []), [x, w] = ot(null), [R, N] = ot(0), [k, D] = ot(), [B, K] = ot(), [F, W] = ot(), [j, J] = ot(), ie = fe(null), Ee = fe(void 0), ve = he(() => g.matches("editing"), [g]), Ne = se(() => {
20883
+ }, []), [x, w] = ot(null), [R, N] = ot(0), [k, D] = ot(), [B, K] = ot(), [F, W] = ot(), [j, J] = ot(), ie = de(null), Ee = de(void 0), ve = he(() => g.matches("editing"), [g]), Ne = se(() => {
20884
20884
  const je = S === "marker" ? ie.current : x;
20885
20885
  if (je == null)
20886
20886
  return null;
@@ -20913,7 +20913,7 @@ function tie({
20913
20913
  });
20914
20914
  },
20915
20915
  [g, w, N]
20916
- ), ke = fe(me);
20916
+ ), ke = de(me);
20917
20917
  ke.current = me;
20918
20918
  const tt = se(
20919
20919
  async (je) => {
@@ -21029,7 +21029,7 @@ function tie({
21029
21029
  }), iw("keydown", (je) => {
21030
21030
  if (S !== void 0)
21031
21031
  if (je.code === "Space")
21032
- Pr.current = !0, P(!0), o?.("move");
21032
+ Gr.current = !0, P(!0), o?.("move");
21033
21033
  else {
21034
21034
  if (V)
21035
21035
  return;
@@ -21043,44 +21043,44 @@ function tie({
21043
21043
  }
21044
21044
  }
21045
21045
  }), iw("keyup", (je) => {
21046
- S !== void 0 && je.code === "Space" && (o?.("sketch"), P(!1), Pr.current && (Pr.current = !1));
21047
- }), Me(() => {
21046
+ S !== void 0 && je.code === "Space" && (o?.("sketch"), P(!1), Gr.current && (Gr.current = !1));
21047
+ }), Ie(() => {
21048
21048
  S === void 0 && !p && (v({ type: "ABORT" }), ke.current?.(void 0));
21049
21049
  }, [S, p, v]);
21050
- const Ie = fe(C);
21051
- Ie.current = C;
21052
- const we = fe(o);
21050
+ const Me = de(C);
21051
+ Me.current = C;
21052
+ const we = de(o);
21053
21053
  we.current = o;
21054
- const Ue = fe(s);
21054
+ const Ue = de(s);
21055
21055
  Ue.current = s;
21056
- const Ye = fe(i);
21057
- Ye.current = i, Me(() => {
21056
+ const Ye = de(i);
21057
+ Ye.current = i, Ie(() => {
21058
21058
  (p || S) && Ye.current !== "sketch" && we.current?.("sketch");
21059
21059
  }, [S, p]);
21060
- const Qe = fe(ve);
21060
+ const Qe = de(ve);
21061
21061
  Qe.current = ve;
21062
- const Wt = fe(be);
21063
- Wt.current = be, Me(() => {
21064
- Ue.current?.(S, Ie.current), Qe.current && Wt.current(), S === void 0 && we.current?.(
21062
+ const Wt = de(be);
21063
+ Wt.current = be, Ie(() => {
21064
+ Ue.current?.(S, Me.current), Qe.current && Wt.current(), S === void 0 && we.current?.(
21065
21065
  Ye.current === "sketch" ? "default" : Ye.current
21066
21066
  );
21067
21067
  }, [S]);
21068
- const Be = fe(S);
21069
- Be.current = S, Me(() => {
21070
- Pr.current || i !== "sketch" && Qe.current && Wt.current();
21068
+ const Be = de(S);
21069
+ Be.current = S, Ie(() => {
21070
+ Gr.current || i !== "sketch" && Qe.current && Wt.current();
21071
21071
  }, [i, E]);
21072
- const Ct = fe([]), Yt = se((je) => {
21072
+ const Ct = de([]), Yt = se((je) => {
21073
21073
  Ct.current.push(je);
21074
- }, []), Et = fe(Yt);
21074
+ }, []), Et = de(Yt);
21075
21075
  Et.current = Yt;
21076
- const yn = fe(void 0), Ri = he(
21076
+ const yn = de(void 0), Ri = he(
21077
21077
  () => g.context.catchedControlPointIndex,
21078
21078
  [g.context.catchedControlPointIndex]
21079
21079
  ), ei = he(
21080
21080
  () => !!g.context.catchedExtrudedPoint,
21081
21081
  [g.context.catchedExtrudedPoint]
21082
- ), ti = fe(!1);
21083
- Me(() => {
21082
+ ), ti = de(!1);
21083
+ Ie(() => {
21084
21084
  if (Ct.current.forEach((je) => {
21085
21085
  je(p);
21086
21086
  }), p) yn.current = p;
@@ -21143,7 +21143,7 @@ function tie({
21143
21143
  be,
21144
21144
  q
21145
21145
  ]
21146
- ), Me(() => {
21146
+ ), Ie(() => {
21147
21147
  y?.();
21148
21148
  }, [y]);
21149
21149
  const Rt = se(() => {
@@ -21160,7 +21160,7 @@ function tie({
21160
21160
  } : null
21161
21161
  ), J(void 0);
21162
21162
  }
21163
- }, [j, g.context.controlPoints, v, w]), gi = fe(Rt);
21163
+ }, [j, g.context.controlPoints, v, w]), gi = de(Rt);
21164
21164
  gi.current = Rt;
21165
21165
  const pr = se(
21166
21166
  (je, Ft) => {
@@ -21181,12 +21181,12 @@ function tie({
21181
21181
  );
21182
21182
  },
21183
21183
  [g.context.controlPoints, v, w]
21184
- ), Pr = fe(!1), Ki = fe(g);
21185
- return Ki.current = g, Me(() => window.addEventListener("keydown", (je) => {
21186
- je.code === "Space" && Ki.current.matches("editing") ? (Pr.current = !0, o?.("move")) : je.code === "Delete" && Ki.current.matches("editing") && gi.current();
21187
- }), [o]), Me(() => window.addEventListener("keyup", (je) => {
21188
- je.code === "Space" && Pr.current && (o?.("sketch"), Pr.current = !1);
21189
- }), [o]), Me(() => {
21184
+ ), Gr = de(!1), Ki = de(g);
21185
+ return Ki.current = g, Ie(() => window.addEventListener("keydown", (je) => {
21186
+ je.code === "Space" && Ki.current.matches("editing") ? (Gr.current = !0, o?.("move")) : je.code === "Delete" && Ki.current.matches("editing") && gi.current();
21187
+ }), [o]), Ie(() => window.addEventListener("keyup", (je) => {
21188
+ je.code === "Space" && Gr.current && (o?.("sketch"), Gr.current = !1);
21189
+ }), [o]), Ie(() => {
21190
21190
  ve || we.current?.("default");
21191
21191
  }, [ve]), {
21192
21192
  state: g,
@@ -21702,7 +21702,7 @@ const die = ({
21702
21702
  useCommonEvent: l,
21703
21703
  useRootEvent: u
21704
21704
  }, h, d) => {
21705
- const f = fe(void 0), p = si(), m = fe(i ? {} : void 0), y = fe({}), g = fe(m3(h)), v = fe({}), [S, E] = ot(!1), C = fe(!1), M = fe(null), G = fe(void 0), V = p?.[qu], P = fe(void 0), A = fe(void 0), X = se(
21705
+ const f = de(void 0), p = si(), m = de(i ? {} : void 0), y = de({}), g = de(m3(h)), v = de({}), [S, E] = ot(!1), C = de(!1), M = de(null), G = de(void 0), V = p?.[qu], P = de(void 0), A = de(void 0), X = se(
21706
21706
  async (R) => {
21707
21707
  if (!f.current) return;
21708
21708
  const N = f.current, k = Object.keys(R), D = Object.keys(s || []), B = k.concat(
@@ -21765,9 +21765,9 @@ const die = ({
21765
21765
  }
21766
21766
  y.current = {}, m.current = void 0, G.current = void 0, f.current = void 0;
21767
21767
  }, []);
21768
- return Wr(() => ((async () => (A.current && (await A.current, A.current = void 0), P.current = I()))(), () => {
21768
+ return Ur(() => ((async () => (A.current && (await A.current, A.current = void 0), P.current = I()))(), () => {
21769
21769
  x(), A.current = w();
21770
- }), [I, w, x]), Me(() => {
21770
+ }), [I, w, x]), Ie(() => {
21771
21771
  (async () => {
21772
21772
  P.current && await P.current;
21773
21773
  const R = m3(h);
@@ -22525,7 +22525,7 @@ const jie = ["clustering", "show"], Kie = ["name", "sourceUri", "credit"], Jie =
22525
22525
  name: "Entity",
22526
22526
  create(e, t) {
22527
22527
  if (!e.entityCollection) return;
22528
- const n = new kr(t);
22528
+ const n = new Wr(t);
22529
22529
  return e.viewer && t.selected && (e.viewer.selectedEntity = n), e.viewer && t.tracked && (e.viewer.trackedEntity = n), e.entityCollection.add(n), n;
22530
22530
  },
22531
22531
  destroy(e, t) {
@@ -23689,7 +23689,7 @@ const Coe = [
23689
23689
  setCesiumPropsAfterCreate: !0
23690
23690
  }), sc = ({ action: e, modifier: t, type: n }) => {
23691
23691
  const i = si();
23692
- return Me(() => {
23692
+ return Ie(() => {
23693
23693
  if (!(!i.screenSpaceEventHandler || i.screenSpaceEventHandler.isDestroyed())) {
23694
23694
  if (e)
23695
23695
  return i.screenSpaceEventHandler.setInputAction(e, n, t), () => {
@@ -26167,7 +26167,7 @@ const dw = (e) => {
26167
26167
  overrideInteractionMode: o,
26168
26168
  onMount: s
26169
26169
  }) => {
26170
- const [a, c] = ot("idle"), [l, u] = ot(null), [h, d] = ot(null), [f, p] = ot(null), m = fe(null), [y, g] = ot(null), v = fe(null), [S, E] = ot(null), [C, M] = ot(
26170
+ const [a, c] = ot("idle"), [l, u] = ot(null), [h, d] = ot(null), [f, p] = ot(null), m = de(null), [y, g] = ot(null), v = de(null), [S, E] = ot(null), [C, M] = ot(
26171
26171
  null
26172
26172
  ), [G, V] = ot(Joe), P = he(
26173
26173
  () => oae(G.maxHeight, G.minHeight, G.zoom),
@@ -26194,7 +26194,7 @@ const dw = (e) => {
26194
26194
  }, 100);
26195
26195
  },
26196
26196
  [t, o]
26197
- ), I = fe(r);
26197
+ ), I = de(r);
26198
26198
  I.current = r;
26199
26199
  const x = se(() => {
26200
26200
  c("idle"), E(null), M(null), g(null), p(null), m.current = null, v.current = null, d(null), o?.(
@@ -26331,29 +26331,29 @@ const dw = (e) => {
26331
26331
  iw("keydown", (me) => {
26332
26332
  me.code === "Escape" && N();
26333
26333
  });
26334
- const D = fe(!1), B = fe(w);
26334
+ const D = de(!1), B = de(w);
26335
26335
  B.current = w;
26336
26336
  const K = se((me) => {
26337
26337
  B.current(me);
26338
- }, []), F = fe(R);
26338
+ }, []), F = de(R);
26339
26339
  F.current = R;
26340
26340
  const W = se((me) => {
26341
26341
  F.current(me);
26342
- }, []), j = fe(k);
26342
+ }, []), j = de(k);
26343
26343
  j.current = k;
26344
26344
  const J = se(() => {
26345
26345
  j.current();
26346
26346
  }, []);
26347
- Me(() => {
26347
+ Ie(() => {
26348
26348
  D.current || !t.current || (D.current = !0, t.current.onMouseUp(K), t.current.onMouseMove(W), t.current.onRightClick(J));
26349
26349
  }, [t, K, W, J]);
26350
- const ie = fe(a);
26350
+ const ie = de(a);
26351
26351
  ie.current = a;
26352
- const Ee = fe(x);
26353
- Ee.current = x, Me(() => {
26352
+ const Ee = de(x);
26353
+ Ee.current = x, Ie(() => {
26354
26354
  Oe.current || r !== "spatialId" && ie.current !== "idle" && Ee.current();
26355
26355
  }, [r]);
26356
- const ve = fe([]), Ne = se((me) => {
26356
+ const ve = de([]), Ne = se((me) => {
26357
26357
  ve.current.push(me);
26358
26358
  }, []);
26359
26359
  Ka(
@@ -26365,17 +26365,17 @@ const dw = (e) => {
26365
26365
  }),
26366
26366
  [X, Ne, x]
26367
26367
  );
26368
- const Oe = fe(!1);
26369
- return Me(() => {
26368
+ const Oe = de(!1);
26369
+ return Ie(() => {
26370
26370
  const me = (ke) => {
26371
26371
  ke.code === "Space" && ie.current !== "idle" && (Oe.current = !0, o?.("move"));
26372
26372
  };
26373
26373
  return window.addEventListener("keydown", me), () => {
26374
26374
  window.removeEventListener("keydown", me);
26375
26375
  };
26376
- }, [o]), Me(() => window.addEventListener("keyup", (me) => {
26376
+ }, [o]), Ie(() => window.addEventListener("keyup", (me) => {
26377
26377
  me.code === "Space" && Oe.current && (Oe.current = !1, o?.("spatialId"));
26378
- }), [o]), Me(() => {
26378
+ }), [o]), Ie(() => {
26379
26379
  s?.();
26380
26380
  }, [s]), {
26381
26381
  spatialIdSpaces: l,
@@ -26734,7 +26734,7 @@ const r4 = Qo(void 0), PXe = () => {
26734
26734
  clusterLabels: !0,
26735
26735
  clusterPoints: !0
26736
26736
  }), []);
26737
- return Me(() => {
26737
+ return Ie(() => {
26738
26738
  const l = ea.Children.count(t) < i, u = c?.clusterEvent.addEventListener(
26739
26739
  (h, d) => {
26740
26740
  d.label.font = vO(r, { fontSize: 30 }), d.label.horizontalOrigin = r.textAlign === "right" ? Pa.LEFT : r.textAlign === "left" ? Pa.RIGHT : Pa.CENTER, d.label.verticalOrigin = Ic.CENTER, d.label.fillColor = rn.fromCssColorString(
@@ -27232,7 +27232,7 @@ function d4(e) {
27232
27232
  }
27233
27233
  const Kae = "https://terrain.reearth.land/cesium-mesh/ellipsoid";
27234
27234
  function Jae(e) {
27235
- const t = fe(/* @__PURE__ */ new Map()), n = fe(void 0);
27235
+ const t = de(/* @__PURE__ */ new Map()), n = de(void 0);
27236
27236
  return he(() => {
27237
27237
  if (!e.terrain)
27238
27238
  return n.current || (n.current = new yy()), Promise.resolve(n.current);
@@ -27283,8 +27283,8 @@ function $ae({
27283
27283
  }), r = he(
27284
27284
  () => Cc(e?.globe?.baseColor),
27285
27285
  [e?.globe?.baseColor]
27286
- ), o = fe(null);
27287
- return Me(() => {
27286
+ ), o = de(null);
27287
+ return Ie(() => {
27288
27288
  let s = !1;
27289
27289
  return i.then((a) => {
27290
27290
  s || o.current !== a && (o.current = a, n?.());
@@ -32011,7 +32011,7 @@ const Za = /* @__PURE__ */ id(Wce);
32011
32011
  function Uce(e) {
32012
32012
  return (e.length === 0 || e[e.length - 1] !== "/") && (e = `${e}/`), e;
32013
32013
  }
32014
- function Sr(e, t) {
32014
+ function Tr(e, t) {
32015
32015
  if (e === null || typeof e != "object")
32016
32016
  return e;
32017
32017
  t = t ?? !1;
@@ -32019,7 +32019,7 @@ function Sr(e, t) {
32019
32019
  for (const i in e)
32020
32020
  if (e.hasOwnProperty(i)) {
32021
32021
  let r = e[i];
32022
- t && (r = Sr(r, t)), n[i] = r;
32022
+ t && (r = Tr(r, t)), n[i] = r;
32023
32023
  }
32024
32024
  return n;
32025
32025
  }
@@ -32624,7 +32624,7 @@ function Xe(e) {
32624
32624
  }), T.typeOf.string("options.url", e.url), this._url = void 0, this._templateValues = Qs(e.templateValues, {}), this._queryParameters = Qs(e.queryParameters, {}), this.headers = Qs(e.headers, {}), this.request = e.request ?? new Uy(), this.proxy = e.proxy, this.retryCallback = e.retryCallback, this.retryAttempts = e.retryAttempts ?? 0, this._retryCount = 0, e.parseUrl ?? !0 ? this.parseUrl(e.url, !0, !0) : this._url = e.url, this._credits = e.credits;
32625
32625
  }
32626
32626
  function Qs(e, t) {
32627
- return _(e) ? Sr(e) : t;
32627
+ return _(e) ? Tr(e) : t;
32628
32628
  }
32629
32629
  Xe.createIfNeeded = function(e) {
32630
32630
  return e instanceof Xe ? e.getDerivedResource({
@@ -32796,7 +32796,7 @@ function ale(e) {
32796
32796
  function Dy(e, t, n) {
32797
32797
  if (!n)
32798
32798
  return Jr(e, t);
32799
- const i = Sr(e, !0);
32799
+ const i = Tr(e, !0);
32800
32800
  for (const r in t)
32801
32801
  if (t.hasOwnProperty(r)) {
32802
32802
  let o = i[r];
@@ -32865,7 +32865,7 @@ Xe.prototype.retryOnError = function(e) {
32865
32865
  });
32866
32866
  };
32867
32867
  Xe.prototype.clone = function(e) {
32868
- return _(e) ? (e._url = this._url, e._queryParameters = Sr(this._queryParameters), e._templateValues = Sr(this._templateValues), e.headers = Sr(this.headers), e.proxy = this.proxy, e.retryCallback = this.retryCallback, e.retryAttempts = this.retryAttempts, e._retryCount = 0, e.request = this.request.clone(), e) : new Xe({
32868
+ return _(e) ? (e._url = this._url, e._queryParameters = Tr(this._queryParameters), e._templateValues = Tr(this._templateValues), e.headers = Tr(this.headers), e.proxy = this.proxy, e.retryCallback = this.retryCallback, e.retryAttempts = this.retryAttempts, e._retryCount = 0, e.request = this.request.clone(), e) : new Xe({
32869
32869
  url: this._url,
32870
32870
  queryParameters: this.queryParameters,
32871
32871
  templateValues: this.templateValues,
@@ -34584,8 +34584,8 @@ const Bn = {
34584
34584
  fullscreenElement: void 0,
34585
34585
  fullscreenchange: void 0,
34586
34586
  fullscreenerror: void 0
34587
- }, Zr = {};
34588
- Object.defineProperties(Zr, {
34587
+ }, kr = {};
34588
+ Object.defineProperties(kr, {
34589
34589
  /**
34590
34590
  * The element that is currently fullscreen, if any. To simply check if the
34591
34591
  * browser is in fullscreen mode or not, use {@link Fullscreen#fullscreen}.
@@ -34595,7 +34595,7 @@ Object.defineProperties(Zr, {
34595
34595
  */
34596
34596
  element: {
34597
34597
  get: function() {
34598
- if (Zr.supportsFullscreen())
34598
+ if (kr.supportsFullscreen())
34599
34599
  return document[Bn.fullscreenElement];
34600
34600
  }
34601
34601
  },
@@ -34610,7 +34610,7 @@ Object.defineProperties(Zr, {
34610
34610
  */
34611
34611
  changeEventName: {
34612
34612
  get: function() {
34613
- if (Zr.supportsFullscreen())
34613
+ if (kr.supportsFullscreen())
34614
34614
  return Bn.fullscreenchange;
34615
34615
  }
34616
34616
  },
@@ -34623,7 +34623,7 @@ Object.defineProperties(Zr, {
34623
34623
  */
34624
34624
  errorEventName: {
34625
34625
  get: function() {
34626
- if (Zr.supportsFullscreen())
34626
+ if (kr.supportsFullscreen())
34627
34627
  return Bn.fullscreenerror;
34628
34628
  }
34629
34629
  },
@@ -34637,7 +34637,7 @@ Object.defineProperties(Zr, {
34637
34637
  */
34638
34638
  enabled: {
34639
34639
  get: function() {
34640
- if (Zr.supportsFullscreen())
34640
+ if (kr.supportsFullscreen())
34641
34641
  return document[Bn.fullscreenEnabled];
34642
34642
  }
34643
34643
  },
@@ -34649,12 +34649,12 @@ Object.defineProperties(Zr, {
34649
34649
  */
34650
34650
  fullscreen: {
34651
34651
  get: function() {
34652
- if (Zr.supportsFullscreen())
34653
- return Zr.element !== null;
34652
+ if (kr.supportsFullscreen())
34653
+ return kr.element !== null;
34654
34654
  }
34655
34655
  }
34656
34656
  });
34657
- Zr.supportsFullscreen = function() {
34657
+ kr.supportsFullscreen = function() {
34658
34658
  if (_(ac))
34659
34659
  return ac;
34660
34660
  ac = !1;
@@ -34669,13 +34669,13 @@ Zr.supportsFullscreen = function() {
34669
34669
  }
34670
34670
  return ac;
34671
34671
  };
34672
- Zr.requestFullscreen = function(e, t) {
34673
- Zr.supportsFullscreen() && e[Bn.requestFullscreen]({ vrDisplay: t });
34672
+ kr.requestFullscreen = function(e, t) {
34673
+ kr.supportsFullscreen() && e[Bn.requestFullscreen]({ vrDisplay: t });
34674
34674
  };
34675
- Zr.exitFullscreen = function() {
34676
- Zr.supportsFullscreen() && document[Bn.exitFullscreen]();
34675
+ kr.exitFullscreen = function() {
34676
+ kr.supportsFullscreen() && document[Bn.exitFullscreen]();
34677
34677
  };
34678
- Zr._names = Bn;
34678
+ kr._names = Bn;
34679
34679
  let Yo;
34680
34680
  typeof navigator < "u" ? Yo = navigator : Yo = {};
34681
34681
  function Lm(e) {
@@ -34831,7 +34831,7 @@ Ti.supportsBasis = function(e) {
34831
34831
  return Ti.supportsWebAssembly() && e.context.supportsBasis;
34832
34832
  };
34833
34833
  Ti.supportsFullscreen = function() {
34834
- return Zr.supportsFullscreen();
34834
+ return kr.supportsFullscreen();
34835
34835
  };
34836
34836
  Ti.supportsTypedArrays = function() {
34837
34837
  return typeof ArrayBuffer < "u";
@@ -35161,7 +35161,7 @@ const St = {}, w_ = {
35161
35161
  south: [1, 0, 0],
35162
35162
  west: [0, -1, 0],
35163
35163
  down: [0, 0, -1]
35164
- }, x_ = {}, Or = {
35164
+ }, x_ = {}, Vr = {
35165
35165
  east: new b(),
35166
35166
  north: new b(),
35167
35167
  up: new b(),
@@ -35225,21 +35225,21 @@ St.localFrameToFixedFrameGenerator = function(e, t) {
35225
35225
  uc
35226
35226
  );
35227
35227
  } else {
35228
- s = s ?? at.default, s.geodeticSurfaceNormal(o, Or.up);
35229
- const c = Or.up, l = Or.east;
35230
- l.x = -o.y, l.y = o.x, l.z = 0, b.normalize(l, Or.east), b.cross(c, l, Or.north), b.multiplyByScalar(
35231
- Or.up,
35228
+ s = s ?? at.default, s.geodeticSurfaceNormal(o, Vr.up);
35229
+ const c = Vr.up, l = Vr.east;
35230
+ l.x = -o.y, l.y = o.x, l.z = 0, b.normalize(l, Vr.east), b.cross(c, l, Vr.north), b.multiplyByScalar(
35231
+ Vr.up,
35232
35232
  -1,
35233
- Or.down
35233
+ Vr.down
35234
35234
  ), b.multiplyByScalar(
35235
- Or.east,
35235
+ Vr.east,
35236
35236
  -1,
35237
- Or.west
35237
+ Vr.west
35238
35238
  ), b.multiplyByScalar(
35239
- Or.north,
35239
+ Vr.north,
35240
35240
  -1,
35241
- Or.south
35242
- ), cc = Or[e], lc = Or[t], uc = Or[n];
35241
+ Vr.south
35242
+ ), cc = Vr[e], lc = Vr[t], uc = Vr[n];
35243
35243
  }
35244
35244
  return a[0] = cc.x, a[1] = cc.y, a[2] = cc.z, a[3] = 0, a[4] = lc.x, a[5] = lc.y, a[6] = lc.z, a[7] = 0, a[8] = uc.x, a[9] = uc.y, a[10] = uc.z, a[11] = 0, a[12] = o.x, a[13] = o.y, a[14] = o.z, a[15] = 1, a;
35245
35245
  }, x_[r] = i), i;
@@ -38573,7 +38573,7 @@ Hi.prototype.isTranslucent = function() {
38573
38573
  return _(this.material) && this.material.isTranslucent() || !_(this.material) && this.translucent;
38574
38574
  };
38575
38575
  Hi.prototype.getRenderState = function() {
38576
- const e = this.isTranslucent(), t = Sr(this.renderState, !1);
38576
+ const e = this.isTranslucent(), t = Tr(this.renderState, !1);
38577
38577
  return e ? (t.depthMask = !1, t.blending = Pm.ALPHA_BLEND) : t.depthMask = !0, t;
38578
38578
  };
38579
38579
  Hi.getDefaultRenderState = function(e, t, n) {
@@ -43829,7 +43829,7 @@ pn.prototype.isDestroyed = function() {
43829
43829
  pn.prototype.destroy = function() {
43830
43830
  return this._context._gl.deleteTexture(this._texture), this._positiveX = vi(this._positiveX), this._negativeX = vi(this._negativeX), this._positiveY = vi(this._positiveY), this._negativeY = vi(this._negativeY), this._positiveZ = vi(this._positiveZ), this._negativeZ = vi(this._negativeZ), vi(this);
43831
43831
  };
43832
- function Mr(e) {
43832
+ function Lr(e) {
43833
43833
  e = e ?? Ke.EMPTY_OBJECT, T.defined("options.context", e.context);
43834
43834
  const {
43835
43835
  context: t,
@@ -44075,10 +44075,10 @@ function rF(e) {
44075
44075
  null
44076
44076
  );
44077
44077
  }
44078
- Mr.create = function(e) {
44079
- return new Mr(e);
44078
+ Lr.create = function(e) {
44079
+ return new Lr(e);
44080
44080
  };
44081
- Mr.fromFramebuffer = function(e) {
44081
+ Lr.fromFramebuffer = function(e) {
44082
44082
  e = e ?? Ke.EMPTY_OBJECT, T.defined("options.context", e.context);
44083
44083
  const t = e.context, {
44084
44084
  pixelFormat: n = xt.RGB,
@@ -44110,7 +44110,7 @@ Mr.fromFramebuffer = function(e) {
44110
44110
  throw new O(
44111
44111
  "framebufferYOffset + height must be less than or equal to drawingBufferHeight."
44112
44112
  );
44113
- return new Mr({
44113
+ return new Lr({
44114
44114
  context: t,
44115
44115
  width: o,
44116
44116
  height: s,
@@ -44124,7 +44124,7 @@ Mr.fromFramebuffer = function(e) {
44124
44124
  }
44125
44125
  });
44126
44126
  };
44127
- Object.defineProperties(Mr.prototype, {
44127
+ Object.defineProperties(Lr.prototype, {
44128
44128
  /**
44129
44129
  * A unique id for the texture
44130
44130
  * @memberof Texture.prototype
@@ -44217,7 +44217,7 @@ function oF(e, t) {
44217
44217
  t.maximumAnisotropy
44218
44218
  ), c.bindTexture(l, null);
44219
44219
  }
44220
- Mr.prototype.copyFrom = function(e) {
44220
+ Lr.prototype.copyFrom = function(e) {
44221
44221
  T.defined("options", e);
44222
44222
  const {
44223
44223
  xOffset: t = 0,
@@ -44259,7 +44259,7 @@ Mr.prototype.copyFrom = function(e) {
44259
44259
  l
44260
44260
  ) : jde(this, i, t, n)), s.bindTexture(a, null);
44261
44261
  };
44262
- Mr.prototype.copyFromFramebuffer = function(e, t, n, i, r, o) {
44262
+ Lr.prototype.copyFromFramebuffer = function(e, t, n, i, r, o) {
44263
44263
  if (e = e ?? 0, t = t ?? 0, n = n ?? 0, i = i ?? 0, r = r ?? this._width, o = o ?? this._height, xt.isDepthFormat(this._pixelFormat))
44264
44264
  throw new O(
44265
44265
  "Cannot call copyFromFramebuffer when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL."
@@ -44305,7 +44305,7 @@ Mr.prototype.copyFromFramebuffer = function(e, t, n, i, r, o) {
44305
44305
  o
44306
44306
  ), s.bindTexture(a, null), this._initialized = !0;
44307
44307
  };
44308
- Mr.prototype.generateMipmap = function(e) {
44308
+ Lr.prototype.generateMipmap = function(e) {
44309
44309
  if (e = e ?? Jy.DONT_CARE, xt.isDepthFormat(this._pixelFormat))
44310
44310
  throw new O(
44311
44311
  "Cannot call generateMipmap when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL."
@@ -44330,10 +44330,10 @@ Mr.prototype.generateMipmap = function(e) {
44330
44330
  const t = this._context._gl, n = this._textureTarget;
44331
44331
  t.hint(t.GENERATE_MIPMAP_HINT, e), t.activeTexture(t.TEXTURE0), t.bindTexture(n, this._texture), t.generateMipmap(n), t.bindTexture(n, null);
44332
44332
  };
44333
- Mr.prototype.isDestroyed = function() {
44333
+ Lr.prototype.isDestroyed = function() {
44334
44334
  return !1;
44335
44335
  };
44336
- Mr.prototype.destroy = function() {
44336
+ Lr.prototype.destroy = function() {
44337
44337
  return this._context._gl.deleteTexture(this._texture), vi(this);
44338
44338
  };
44339
44339
  const Kde = `uniform sampler2D image;
@@ -45035,7 +45035,7 @@ xe.prototype.update = function(e) {
45035
45035
  magnificationFilter: this._magnificationFilter
45036
45036
  });
45037
45037
  let d;
45038
- _(l.internalFormat) ? d = new Mr({
45038
+ _(l.internalFormat) ? d = new Lr({
45039
45039
  context: e,
45040
45040
  pixelFormat: l.internalFormat,
45041
45041
  width: l.width,
@@ -45045,7 +45045,7 @@ xe.prototype.update = function(e) {
45045
45045
  mipLevels: u
45046
45046
  },
45047
45047
  sampler: h
45048
- }) : d = new Mr({
45048
+ }) : d = new Lr({
45049
45049
  context: e,
45050
45050
  source: l,
45051
45051
  sampler: h
@@ -45104,15 +45104,15 @@ xe.prototype.destroy = function() {
45104
45104
  return vi(this);
45105
45105
  };
45106
45106
  function pfe(e, t) {
45107
- e = e ?? Ke.EMPTY_OBJECT, t._strict = e.strict ?? !1, t._count = e.count ?? 0, t._template = Sr(e.fabric ?? Ke.EMPTY_OBJECT), t.fabric = Sr(e.fabric ?? Ke.EMPTY_OBJECT), t._template.uniforms = Sr(
45107
+ e = e ?? Ke.EMPTY_OBJECT, t._strict = e.strict ?? !1, t._count = e.count ?? 0, t._template = Tr(e.fabric ?? Ke.EMPTY_OBJECT), t.fabric = Tr(e.fabric ?? Ke.EMPTY_OBJECT), t._template.uniforms = Tr(
45108
45108
  t._template.uniforms ?? Ke.EMPTY_OBJECT
45109
- ), t._template.materials = Sr(
45109
+ ), t._template.materials = Tr(
45110
45110
  t._template.materials ?? Ke.EMPTY_OBJECT
45111
45111
  ), t.type = _(t._template.type) ? t._template.type : t1(), t.shaderSource = "", t.materials = {}, t.uniforms = {}, t._uniforms = {}, t._translucentFunctions = [];
45112
45112
  let n;
45113
45113
  const i = xe._materialCache.getMaterial(t.type);
45114
45114
  if (_(i)) {
45115
- const o = Sr(i.fabric, !0);
45115
+ const o = Tr(i.fabric, !0);
45116
45116
  t._template = Jr(t._template, o, !0), n = i.translucent;
45117
45117
  }
45118
45118
  bfe(t), vfe(t), Tfe(t), Cfe(t), _(i) || xe._materialCache.addMaterial(t.type, t);
@@ -45229,7 +45229,7 @@ function xfe(e) {
45229
45229
  minificationFilter: n._minificationFilter,
45230
45230
  magnificationFilter: n._magnificationFilter
45231
45231
  });
45232
- c = new Mr({
45232
+ c = new Lr({
45233
45233
  context: i,
45234
45234
  source: o,
45235
45235
  sampler: h
@@ -45242,7 +45242,7 @@ function xfe(e) {
45242
45242
  } else _(c) || (n._textures[e] = i.defaultTexture);
45243
45243
  return;
45244
45244
  }
45245
- if (o instanceof Mr && o !== c) {
45245
+ if (o instanceof Lr && o !== c) {
45246
45246
  n._texturePaths[e] = void 0;
45247
45247
  const h = n._textures[e];
45248
45248
  _(h) && h !== n._defaultTexture && h.destroy(), n._textures[e] = o, l = `${e}Dimensions`, r.hasOwnProperty(l) && (u = r[l], u.x = o._width, u.y = o._height);
@@ -54822,7 +54822,7 @@ $a.prototype.setBatchedAttribute = function(e, t, n) {
54822
54822
  };
54823
54823
  function Xge(e, t) {
54824
54824
  const n = e._textureDimensions;
54825
- e._texture = new Mr({
54825
+ e._texture = new Lr({
54826
54826
  context: t,
54827
54827
  pixelFormat: xt.RGBA,
54828
54828
  pixelDatatype: e._pixelDatatype,
@@ -56386,10 +56386,10 @@ function bye(e, t) {
56386
56386
  }
56387
56387
  function _ye(e, t, n, i) {
56388
56388
  let r = n.getRenderState(), o;
56389
- i ? (o = Sr(r, !1), o.cull = {
56389
+ i ? (o = Tr(r, !1), o.cull = {
56390
56390
  enabled: !0,
56391
56391
  face: nh.BACK
56392
- }, e._frontFaceRS = En.fromCache(o), o.cull.face = nh.FRONT, e._backFaceRS = En.fromCache(o)) : (e._frontFaceRS = En.fromCache(r), e._backFaceRS = e._frontFaceRS), o = Sr(r, !1), _(e._depthFailAppearance) && (o.depthTest.enabled = !1), _(e._depthFailAppearance) && (r = e._depthFailAppearance.getRenderState(), o = Sr(r, !1), o.depthTest.func = cA.GREATER, i ? (o.cull = {
56392
+ }, e._frontFaceRS = En.fromCache(o), o.cull.face = nh.FRONT, e._backFaceRS = En.fromCache(o)) : (e._frontFaceRS = En.fromCache(r), e._backFaceRS = e._frontFaceRS), o = Tr(r, !1), _(e._depthFailAppearance) && (o.depthTest.enabled = !1), _(e._depthFailAppearance) && (r = e._depthFailAppearance.getRenderState(), o = Tr(r, !1), o.depthTest.func = cA.GREATER, i ? (o.cull = {
56393
56393
  enabled: !0,
56394
56394
  face: nh.BACK
56395
56395
  }, e._frontFaceDepthFailRS = En.fromCache(o), o.cull.face = nh.FRONT, e._backFaceDepthFailRS = En.fromCache(o)) : (e._frontFaceDepthFailRS = En.fromCache(o), e._backFaceDepthFailRS = e._frontFaceRS));
@@ -59579,12 +59579,12 @@ function a1e(e, t, n, i, r, o, s) {
59579
59579
  rt,
59580
59580
  qbe
59581
59581
  ), ue = b.normalize(q, Y5);
59582
- let Ie = b.subtract(z, rt, $be);
59583
- Ie = b.normalize(Ie, Ie);
59584
- let we = b.cross(ue, Ie, Y5);
59582
+ let Me = b.subtract(z, rt, $be);
59583
+ Me = b.normalize(Me, Me);
59584
+ let we = b.cross(ue, Me, Y5);
59585
59585
  we = b.normalize(we, we);
59586
59586
  let Ue = b.cross(
59587
- Ie,
59587
+ Me,
59588
59588
  ge,
59589
59589
  t1e
59590
59590
  );
@@ -59635,19 +59635,19 @@ function a1e(e, t, n, i, r, o, s) {
59635
59635
  ), gi = qt.getMinimumMaximumHeights(
59636
59636
  Rt,
59637
59637
  l
59638
- ), pr = gi.minimumTerrainHeight, Pr = gi.maximumTerrainHeight;
59639
- Ne += Math.abs(pr), Ne += Math.abs(Pr), k5(
59638
+ ), pr = gi.minimumTerrainHeight, Gr = gi.maximumTerrainHeight;
59639
+ Ne += Math.abs(pr), Ne += Math.abs(Gr), k5(
59640
59640
  rt,
59641
59641
  z,
59642
59642
  pr,
59643
- Pr,
59643
+ Gr,
59644
59644
  ti,
59645
59645
  ji
59646
59646
  ), k5(
59647
59647
  j,
59648
59648
  J,
59649
59649
  pr,
59650
- Pr,
59650
+ Gr,
59651
59651
  ni,
59652
59652
  ut
59653
59653
  );
@@ -65372,11 +65372,11 @@ Ot.convert = function(e) {
65372
65372
  throw new Error("Expected [x, y] or {x, y} point format");
65373
65373
  };
65374
65374
  var y_e = Object.defineProperty, pa = (e, t) => y_e(e, "name", { value: t, configurable: !0 });
65375
- function Vr(e, t) {
65375
+ function Fr(e, t) {
65376
65376
  let n = "script";
65377
65377
  return e === "name" ? n = "script" : e === "name2" ? n = "script2" : e === "name3" && (n = "script3"), [["coalesce", ["get", `pgf:${e}`], ["get", e]], { "text-font": ["case", ["==", ["get", n], "Devanagari"], ["literal", ["Noto Sans Devanagari Regular v1"]], ["literal", [t || "Noto Sans Regular"]]] }];
65378
65378
  }
65379
- pa(Vr, "get_name_block");
65379
+ pa(Fr, "get_name_block");
65380
65380
  function Fs(e, t, n) {
65381
65381
  let i = "name";
65382
65382
  return n === "name" ? i = "" : n === "name2" ? i = "2" : n === "name3" && (i = "3"), t === "Latin" ? ["has", `script${i}`] : e === "ja" ? ["all", ["!=", ["get", `script${i}`], "Han"], ["!=", ["get", `script${i}`], "Hiragana"], ["!=", ["get", `script${i}`], "Katakana"], ["!=", ["get", `script${i}`], "Mixed-Japanese"]] : ["!=", ["get", `script${i}`], t];
@@ -65400,19 +65400,19 @@ function rs(e, t, n) {
65400
65400
  let i = t || OT(e), r;
65401
65401
  return i === "Devanagari" ? r = "pgf:" : r = "", ["case", ["all", ["any", ["has", "name"], ["has", "pgf:name"]], ["!", ["any", ["has", "name2"], ["has", "pgf:name2"]]], ["!", ["any", ["has", "name3"], ["has", "pgf:name3"]]]], ["case", Fs(e, i, "name"), ["case", ["any", ["is-supported-script", ["get", "name"]], ["has", "pgf:name"]], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "name:en"]], ss(i), `
65402
65402
  `, {}, ["case", ["all", ["!", ["has", `${r}name:${e}`]], ["has", "name:en"], ["!", ["has", "script"]]], "", ["coalesce", ["get", "pgf:name"], ["get", "name"]]], { "text-font": ["case", ["==", ["get", "script"], "Devanagari"], ["literal", ["Noto Sans Devanagari Regular v1"]], ["literal", [n || "Noto Sans Regular"]]] }], ["get", "name:en"]], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name"], ["get", "name"]], ss(i)]], ["all", ["any", ["has", "name"], ["has", "pgf:name"]], ["any", ["has", "name2"], ["has", "pgf:name2"]], ["!", ["any", ["has", "name3"], ["has", "pgf:name3"]]]], ["case", ["all", Fs(e, i, "name"), Fs(e, i, "name2")], ["format", ["get", `${r}name:${e}`], ss(i), `
65403
- `, {}, ...Vr("name", n), `
65404
- `, {}, ...Vr("name2", n)], ["case", Fs(e, i, "name2"), ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name"], ["get", "name"]], ss(i), `
65405
- `, {}, ...Vr("name2", n)], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name2"], ["get", "name2"]], ss(i), `
65406
- `, {}, ...Vr("name", n)]]], ["case", ["all", Fs(e, i, "name"), Fs(e, i, "name2"), Fs(e, i, "name3")], ["format", ["get", `${r}name:${e}`], ss(i), `
65407
- `, {}, ...Vr("name", n), `
65408
- `, {}, ...Vr("name2", n), `
65409
- `, {}, ...Vr("name3", n)], ["case", ["!", Fs(e, i, "name")], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name"], ["get", "name"]], ss(i), `
65410
- `, {}, ...Vr("name2", n), `
65411
- `, {}, ...Vr("name3", n)], ["!", Fs(e, i, "name2")], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name2"], ["get", "name2"]], ss(i), `
65412
- `, {}, ...Vr("name", n), `
65413
- `, {}, ...Vr("name3", n)], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name3"], ["get", "name3"]], ss(i), `
65414
- `, {}, ...Vr("name", n), `
65415
- `, {}, ...Vr("name2", n)]]]];
65403
+ `, {}, ...Fr("name", n), `
65404
+ `, {}, ...Fr("name2", n)], ["case", Fs(e, i, "name2"), ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name"], ["get", "name"]], ss(i), `
65405
+ `, {}, ...Fr("name2", n)], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name2"], ["get", "name2"]], ss(i), `
65406
+ `, {}, ...Fr("name", n)]]], ["case", ["all", Fs(e, i, "name"), Fs(e, i, "name2"), Fs(e, i, "name3")], ["format", ["get", `${r}name:${e}`], ss(i), `
65407
+ `, {}, ...Fr("name", n), `
65408
+ `, {}, ...Fr("name2", n), `
65409
+ `, {}, ...Fr("name3", n)], ["case", ["!", Fs(e, i, "name")], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name"], ["get", "name"]], ss(i), `
65410
+ `, {}, ...Fr("name2", n), `
65411
+ `, {}, ...Fr("name3", n)], ["!", Fs(e, i, "name2")], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name2"], ["get", "name2"]], ss(i), `
65412
+ `, {}, ...Fr("name", n), `
65413
+ `, {}, ...Fr("name3", n)], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name3"], ["get", "name3"]], ss(i), `
65414
+ `, {}, ...Fr("name", n), `
65415
+ `, {}, ...Fr("name2", n)]]]];
65416
65416
  }
65417
65417
  pa(rs, "get_multiline_name");
65418
65418
  var b_e = [{ lang: "ar", full_name: "Arabic", script: "Arabic" }, { lang: "cs", full_name: "Czech", script: "Latin" }, { lang: "bg", full_name: "Bulgarian", script: "Cyrillic" }, { lang: "da", full_name: "Danish", script: "Latin" }, { lang: "de", full_name: "German", script: "Latin" }, { lang: "el", full_name: "Greek", script: "Greek" }, { lang: "en", full_name: "English", script: "Latin" }, { lang: "es", full_name: "Spanish", script: "Latin" }, { lang: "et", full_name: "Estonian", script: "Latin" }, { lang: "fa", full_name: "Persian", script: "Arabic" }, { lang: "fi", full_name: "Finnish", script: "Latin" }, { lang: "fr", full_name: "French", script: "Latin" }, { lang: "ga", full_name: "Irish", script: "Latin" }, { lang: "he", full_name: "Hebrew", script: "Hebrew" }, { lang: "hi", full_name: "Hindi", script: "Devanagari" }, { lang: "hr", full_name: "Croatian", script: "Latin" }, { lang: "hu", full_name: "Hungarian", script: "Latin" }, { lang: "id", full_name: "Indonesian", script: "Latin" }, { lang: "it", full_name: "Italian", script: "Latin" }, { lang: "ja", full_name: "Japanese", script: "" }, { lang: "ko", full_name: "Korean", script: "Hangul" }, { lang: "lt", full_name: "Lithuanian", script: "Latin" }, { lang: "lv", full_name: "Latvian", script: "Latin" }, { lang: "ne", full_name: "Nepali", script: "Devanagari" }, { lang: "nl", full_name: "Dutch", script: "Latin" }, { lang: "no", full_name: "Norwegian", script: "Latin" }, { lang: "mr", full_name: "Marathi", script: "Devanagari" }, { lang: "mt", full_name: "Maltese", script: "Latin" }, { lang: "pl", full_name: "Polish", script: "Latin" }, { lang: "pt", full_name: "Portuguese", script: "Latin" }, { lang: "ro", full_name: "Romanian", script: "Latin" }, { lang: "ru", full_name: "Russian", script: "Cyrillic" }, { lang: "sk", full_name: "Slovak", script: "Latin" }, { lang: "sl", full_name: "Slovenian", script: "Latin" }, { lang: "sv", full_name: "Swedish", script: "Latin" }, { lang: "tr", full_name: "Turkish", script: "Latin" }, { lang: "uk", full_name: "Ukrainian", script: "Cyrillic" }, { lang: "ur", full_name: "Urdu", script: "Arabic" }, { lang: "vi", full_name: "Vietnamese", script: "Latin" }, { lang: "zh-Hans", full_name: "Chinese (Simplified)", script: "Han" }, { lang: "zh-Hant", full_name: "Chinese (Traditional)", script: "Han" }];
@@ -66915,7 +66915,7 @@ function Nve(e) {
66915
66915
  // space utilization
66916
66916
  };
66917
66917
  }
66918
- var Xve = Object.defineProperty, Er = Math.pow, _e = (e, t) => Xve(e, "name", { value: t, configurable: !0 }), Fo = (e, t, n) => new Promise((i, r) => {
66918
+ var Xve = Object.defineProperty, Cr = Math.pow, _e = (e, t) => Xve(e, "name", { value: t, configurable: !0 }), Fo = (e, t, n) => new Promise((i, r) => {
66919
66919
  var o = (c) => {
66920
66920
  try {
66921
66921
  a(n.next(c));
@@ -66995,8 +66995,8 @@ _e(yz, "ArrayAttr");
66995
66995
  var Zve = yz, kve = _e((e, t, n) => {
66996
66996
  let i = [], r, o, s, a = 0, c = 0, l = 0, u = 0, h = 0, d = 0, f = 0, p = 0, m = 0, y = 0, g = 0, v = 0;
66997
66997
  if (e.length < 2) return [];
66998
- if (e.length === 2) return l = Math.sqrt(Er(e[1].x - e[0].x, 2) + Er(e[1].y - e[0].y, 2)), [{ length: l, beginIndex: 0, beginDistance: 0, endIndex: 2, endDistance: l }];
66999
- for (u = Math.sqrt(Er(e[1].x - e[0].x, 2) + Er(e[1].y - e[0].y, 2)), a = 1, c = e.length - 1; a < c; a++) r = e[a - 1], o = e[a], s = e[a + 1], d = o.x - r.x, f = o.y - r.y, p = s.x - o.x, m = s.y - o.y, h = Math.sqrt(p * p + m * m), l += u, y = Math.acos((d * p + f * m) / (u * h)), (y > t || l - v > n) && (i.push({ length: l - v, beginDistance: v, beginIndex: g, endIndex: a + 1, endDistance: l }), g = a, v = l), u = h;
66998
+ if (e.length === 2) return l = Math.sqrt(Cr(e[1].x - e[0].x, 2) + Cr(e[1].y - e[0].y, 2)), [{ length: l, beginIndex: 0, beginDistance: 0, endIndex: 2, endDistance: l }];
66999
+ for (u = Math.sqrt(Cr(e[1].x - e[0].x, 2) + Cr(e[1].y - e[0].y, 2)), a = 1, c = e.length - 1; a < c; a++) r = e[a - 1], o = e[a], s = e[a + 1], d = o.x - r.x, f = o.y - r.y, p = s.x - o.x, m = s.y - o.y, h = Math.sqrt(p * p + m * m), l += u, y = Math.acos((d * p + f * m) / (u * h)), (y > t || l - v > n) && (i.push({ length: l - v, beginDistance: v, beginIndex: g, endIndex: a + 1, endDistance: l }), g = a, v = l), u = h;
67000
67000
  return a - g > 0 && i.push({ length: l - v + h, beginIndex: g, beginDistance: v, endIndex: a + 1, endDistance: l + h }), i;
67001
67001
  }, "linelabel");
67002
67002
  function bz(e, t, n, i) {
@@ -67012,7 +67012,7 @@ function bz(e, t, n, i) {
67012
67012
  }
67013
67013
  _e(bz, "simpleLabel");
67014
67014
  function _z(e, t, n, i) {
67015
- let r = t.x - e.x, o = t.y - e.y, s = Math.sqrt(Er(t.x - e.x, 2) + Er(t.y - e.y, 2)), a = [];
67015
+ let r = t.x - e.x, o = t.y - e.y, s = Math.sqrt(Cr(t.x - e.x, 2) + Cr(t.y - e.y, 2)), a = [];
67016
67016
  for (let c = 0; c < n + i; c += 2 * i) {
67017
67017
  let l = c * 1 / s;
67018
67018
  a.push({ x: e.x + l * r, y: e.y + l * o });
@@ -67266,7 +67266,7 @@ function Gz(e, t, n) {
67266
67266
  _e(Gz, "interpolate");
67267
67267
  function Oz(e, t, n, i) {
67268
67268
  let r = i[t + 1][0] - i[t][0], o = e - i[t][0];
67269
- return r === 0 ? 0 : n === 1 ? o / r : (Er(n, o) - 1) / (Er(n, r) - 1);
67269
+ return r === 0 ? 0 : n === 1 ? o / r : (Cr(n, o) - 1) / (Cr(n, r) - 1);
67270
67270
  }
67271
67271
  _e(Oz, "computeInterpolationFactor");
67272
67272
  function as(e, t) {
@@ -67540,7 +67540,7 @@ var i2e = Uz, r2e = ((e) => (e[e.Above = 1] = "Above", e[e.Center = 2] = "Center
67540
67540
  }
67541
67541
  };
67542
67542
  _e(Dz, "LineLabelSymbolizer");
67543
- var yv = Dz, Nr = _e((e, t) => {
67543
+ var yv = Dz, Xr = _e((e, t) => {
67544
67544
  let n = e[t];
67545
67545
  return typeof n == "string" ? n : "";
67546
67546
  }, "getString"), fM = _e((e, t) => {
@@ -67549,31 +67549,31 @@ var yv = Dz, Nr = _e((e, t) => {
67549
67549
  }, "getNumber"), Bz = _e((e) => [{ dataLayer: "earth", symbolizer: new ai({ fill: e.earth }) }, ...e.landcover ? [{ dataLayer: "landcover", symbolizer: new ai({ fill: _e((t, n) => {
67550
67550
  let i = e.landcover;
67551
67551
  if (!i || !n) return "";
67552
- let r = Nr(n.props, "kind");
67552
+ let r = Xr(n.props, "kind");
67553
67553
  return r === "grassland" ? i.grassland : r === "barren" ? i.barren : r === "urban_area" ? i.urban_area : r === "farmland" ? i.farmland : r === "glacier" ? i.glacier : r === "scrub" ? i.scrub : i.forest;
67554
67554
  }, "fill"), opacity: _e((t, n) => t === 8 ? 0.5 : 1, "opacity") }) }] : [], { dataLayer: "landuse", symbolizer: new ai({ fill: _e((t, n) => dv(e.park_a, e.park_b, Math.min(Math.max(t / 12, 12), 0)), "fill") }), filter: _e((t, n) => {
67555
- let i = Nr(n.props, "kind");
67555
+ let i = Xr(n.props, "kind");
67556
67556
  return ["allotments", "village_green", "playground"].includes(i);
67557
67557
  }, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.park_b, opacity: _e((t, n) => t < 8 ? 0 : t === 8 ? 0.5 : 1, "opacity") }), filter: _e((t, n) => {
67558
- let i = Nr(n.props, "kind");
67558
+ let i = Xr(n.props, "kind");
67559
67559
  return ["national_park", "park", "cemetery", "protected_area", "nature_reserve", "forest", "golf_course"].includes(i);
67560
67560
  }, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.hospital }), filter: _e((t, n) => n.props.kind === "hospital", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.industrial }), filter: _e((t, n) => n.props.kind === "industrial", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.school }), filter: _e((t, n) => {
67561
- let i = Nr(n.props, "kind");
67561
+ let i = Xr(n.props, "kind");
67562
67562
  return ["school", "university", "college"].includes(i);
67563
67563
  }, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.beach }), filter: _e((t, n) => n.props.kind === "beach", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.zoo }), filter: _e((t, n) => n.props.kind === "zoo", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.zoo }), filter: _e((t, n) => {
67564
- let i = Nr(n.props, "kind");
67564
+ let i = Xr(n.props, "kind");
67565
67565
  return ["military", "naval_base", "airfield"].includes(i);
67566
67566
  }, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: _e((t, n) => dv(e.wood_a, e.wood_b, Math.min(Math.max(t / 12, 12), 0)), "fill"), opacity: _e((t, n) => t < 8 ? 0 : t === 8 ? 0.5 : 1, "opacity") }), filter: _e((t, n) => {
67567
- let i = Nr(n.props, "kind");
67567
+ let i = Xr(n.props, "kind");
67568
67568
  return ["wood", "nature_reserve", "forest"].includes(i);
67569
67569
  }, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: _e((t, n) => dv(e.scrub_a, e.scrub_b, Math.min(Math.max(t / 12, 12), 0)), "fill") }), filter: _e((t, n) => {
67570
- let i = Nr(n.props, "kind");
67570
+ let i = Xr(n.props, "kind");
67571
67571
  return ["scrub", "grassland", "grass"].includes(i);
67572
67572
  }, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.scrub_b }), filter: _e((t, n) => {
67573
- let i = Nr(n.props, "kind");
67573
+ let i = Xr(n.props, "kind");
67574
67574
  return ["scrub", "grassland", "grass"].includes(i);
67575
67575
  }, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.glacier }), filter: _e((t, n) => n.props.kind === "glacier", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.sand, opacity: _e((t, n) => t < 8 ? 0 : t === 8 ? 0.5 : 1, "opacity") }), filter: _e((t, n) => n.props.kind === "sand", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.aerodrome }), filter: _e((t, n) => n.props.kind === "aerodrome", "filter") }, { dataLayer: "water", symbolizer: new ai({ fill: e.water }), filter: _e((t, n) => n.geomType === 3, "filter") }, { dataLayer: "roads", symbolizer: new vo({ color: e.runway, width: _e((t, n) => as(1.6, [[11, 0], [13, 4], [19, 30]])(t), "width") }), filter: _e((t, n) => n.props.kind_detail === "runway", "filter") }, { dataLayer: "roads", symbolizer: new vo({ color: e.runway, width: _e((t, n) => as(1.6, [[14, 0], [14.5, 1], [16, 6]])(t), "width") }), filter: _e((t, n) => n.props.kind_detail === "taxiway", "filter") }, { dataLayer: "roads", symbolizer: new vo({ color: e.pier, width: _e((t, n) => as(1.6, [[13, 0], [13.5, 0, 5], [21, 16]])(t), "width") }), filter: _e((t, n) => n.props.kind === "path" && n.props.kind_detail === "pier", "filter") }, { dataLayer: "water", minzoom: 14, symbolizer: new vo({ color: e.water, width: _e((t, n) => as(1.6, [[9, 0], [9.5, 1], [18, 12]])(t), "width") }), filter: _e((t, n) => n.geomType === 2 && n.props.kind === "river", "filter") }, { dataLayer: "water", minzoom: 14, symbolizer: new vo({ color: e.water, width: 0.5 }), filter: _e((t, n) => n.geomType === 2 && n.props.kind === "stream", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.pedestrian }), filter: _e((t, n) => n.props.kind === "pedestrian", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.pier }), filter: _e((t, n) => n.props.kind === "pier", "filter") }, { dataLayer: "buildings", symbolizer: new ai({ fill: e.buildings, opacity: 0.5 }) }, { dataLayer: "roads", symbolizer: new vo({ color: e.major, width: _e((t, n) => as(1.6, [[14, 0], [20, 7]])(t), "width") }), filter: _e((t, n) => {
67576
- let i = Nr(n.props, "kind");
67576
+ let i = Xr(n.props, "kind");
67577
67577
  return ["other", "path"].includes(i);
67578
67578
  }, "filter") }, { dataLayer: "roads", symbolizer: new vo({ color: e.major, width: _e((t, n) => as(1.6, [[13, 0], [18, 8]])(t), "width") }), filter: _e((t, n) => n.props.kind === "minor_road", "filter") }, { dataLayer: "roads", symbolizer: new vo({ color: e.major, width: _e((t, n) => as(1.6, [[6, 0], [12, 1.6], [15, 3], [18, 13]])(t), "width") }), filter: _e((t, n) => n.props.kind === "major_road", "filter") }, { dataLayer: "roads", symbolizer: new vo({ color: e.major, width: _e((t, n) => as(1.6, [[3, 0], [6, 1.1], [12, 1.6], [15, 5], [18, 15]])(t), "width") }), filter: _e((t, n) => n.props.kind === "highway", "filter") }, { dataLayer: "boundaries", symbolizer: new vo({ color: e.boundaries, width: 1 }), filter: _e((t, n) => {
67579
67579
  let i = n.props.kind_detail;
@@ -67584,19 +67584,19 @@ var yv = Dz, Nr = _e((e, t) => {
67584
67584
  }, "filter") }], "paintRules"), Yz = _e((e, t) => {
67585
67585
  let n = [`name:${t}`, "name"];
67586
67586
  return [{ dataLayer: "roads", symbolizer: new yv({ labelProps: n, fill: e.roads_label_minor, font: "400 12px sans-serif", width: 2, stroke: e.roads_label_minor_halo }), minzoom: 16, filter: _e((i, r) => {
67587
- let o = Nr(r.props, "kind");
67587
+ let o = Xr(r.props, "kind");
67588
67588
  return ["minor_road", "other", "path"].includes(o);
67589
67589
  }, "filter") }, { dataLayer: "roads", symbolizer: new yv({ labelProps: n, fill: e.roads_label_major, font: "400 12px sans-serif", width: 2, stroke: e.roads_label_major_halo }), minzoom: 12, filter: _e((i, r) => {
67590
- let o = Nr(r.props, "kind");
67590
+ let o = Xr(r.props, "kind");
67591
67591
  return ["highway", "major_road"].includes(o);
67592
67592
  }, "filter") }, { dataLayer: "roads", symbolizer: new yv({ labelProps: n, fill: e.roads_label_major, font: "400 12px sans-serif", width: 2, stroke: e.roads_label_major_halo }), minzoom: 12, filter: _e((i, r) => {
67593
- let o = Nr(r.props, "kind");
67593
+ let o = Xr(r.props, "kind");
67594
67594
  return ["highway", "major_road"].includes(o);
67595
67595
  }, "filter") }, { dataLayer: "water", symbolizer: new Qd({ labelProps: n, fill: e.ocean_label, lineHeight: 1.5, letterSpacing: 1, font: _e((i, r) => `400 ${Dw([[3, 10], [10, 12]])(i)}px sans-serif`, "font"), textTransform: "uppercase" }), filter: _e((i, r) => {
67596
- let o = Nr(r.props, "kind");
67596
+ let o = Xr(r.props, "kind");
67597
67597
  return r.geomType === 1 && ["ocean", "bay", "strait", "fjord"].includes(o);
67598
67598
  }, "filter") }, { dataLayer: "water", symbolizer: new Qd({ labelProps: n, fill: e.ocean_label, lineHeight: 1.5, letterSpacing: 1, font: _e((i, r) => `400 ${Dw([[3, 10], [6, 12], [10, 12]])(i)}px sans-serif`, "font") }), filter: _e((i, r) => {
67599
- let o = Nr(r.props, "kind");
67599
+ let o = Xr(r.props, "kind");
67600
67600
  return r.geomType === 1 && ["sea", "lake", "water"].includes(o);
67601
67601
  }, "filter") }, { dataLayer: "places", symbolizer: new Qd({ labelProps: _e((i, r) => i < 6 ? [`ref:${t}`, "ref"] : n, "labelProps"), fill: e.state_label, stroke: e.state_label_halo, width: 1, lineHeight: 1.5, font: _e((i, r) => "400 12px sans-serif", "font"), textTransform: "uppercase" }), filter: _e((i, r) => r.props.kind === "region", "filter") }, { dataLayer: "places", symbolizer: new Qd({ labelProps: n, fill: e.country_label, lineHeight: 1.5, font: _e((i, r) => "600 12px sans-serif", "font"), textTransform: "uppercase" }), filter: _e((i, r) => r.props.kind === "country", "filter") }, { dataLayer: "places", minzoom: 9, symbolizer: new Qd({ labelProps: n, fill: e.city_label, lineHeight: 1.5, font: _e((i, r) => {
67602
67602
  if (!r) return "400 12px sans-serif";
@@ -67624,7 +67624,7 @@ var yv = Dz, Nr = _e((e, t) => {
67624
67624
  this.tileCache = t, this.maxDataLevel = n, this.levelDiff = i;
67625
67625
  }
67626
67626
  dataTilesForBounds(t, n) {
67627
- let i = Er(2, t) / Er(2, Math.ceil(t)), r = [], o = 1, s = this.tileCache.tileSize;
67627
+ let i = Cr(2, t) / Cr(2, Math.ceil(t)), r = [], o = 1, s = this.tileCache.tileSize;
67628
67628
  if (t < this.levelDiff) o = 1 / (1 << this.levelDiff - t) * i, r.push({ dataTile: { z: 0, x: 0, y: 0 }, origin: new Ot(0, 0), scale: o, dim: s * o });
67629
67629
  else if (t <= this.levelDiff + this.maxDataLevel) {
67630
67630
  let a = 1 << this.levelDiff, c = 256 * i, l = Math.ceil(t) - this.levelDiff, u = Math.floor(n.minX / a / c), h = Math.floor(n.minY / a / c), d = Math.floor(n.maxX / a / c), f = Math.floor(n.maxY / a / c);
@@ -67765,7 +67765,7 @@ var o2e = jz, Kz = _e((e) => {
67765
67765
  let a = s.split(":");
67766
67766
  if (a[3] === n[3]) {
67767
67767
  o++;
67768
- let c = Math.sqrt(Er(+a[0] - +n[0], 2) + Er(+a[1] - +n[1], 2));
67768
+ let c = Math.sqrt(Cr(+a[0] - +n[0], 2) + Cr(+a[1] - +n[1], 2));
67769
67769
  c > r && (r = c, i = s);
67770
67770
  }
67771
67771
  i && o > this.maxLabeledTiles && this.pruneKey(i);
@@ -67903,9 +67903,9 @@ var $p = 6378137, mM = 85.0511287798, Ao = $p * Math.PI, eN = _e((e) => {
67903
67903
  return { lat: (2 * Math.atan(Math.exp(e.y / $p)) - Math.PI / 2) * t, lng: e.x * t / $p };
67904
67904
  }, "unproject"), l2e = _e((e, t) => (n) => {
67905
67905
  let i = eN(n);
67906
- return new Ot((i.x + Ao) / (Ao * 2), 1 - (i.y + Ao) / (Ao * 2)).mult(Er(2, t) * 256).sub(e);
67906
+ return new Ot((i.x + Ao) / (Ao * 2), 1 - (i.y + Ao) / (Ao * 2)).mult(Cr(2, t) * 256).sub(e);
67907
67907
  }, "instancedProject"), u2e = _e((e, t) => (n) => {
67908
- let i = new Ot(n.x, n.y).add(e).div(Er(2, t) * 256), r = new Ot(i.x * (Ao * 2) - Ao, (1 - i.y) * (Ao * 2) - Ao);
67908
+ let i = new Ot(n.x, n.y).add(e).div(Cr(2, t) * 256), r = new Ot(i.x * (Ao * 2) - Ao, (1 - i.y) * (Ao * 2) - Ao);
67909
67909
  return c2e(r);
67910
67910
  }, "instancedUnproject"), gM = _e((e, t) => {
67911
67911
  let n = t * (360 / e);
@@ -67920,7 +67920,7 @@ var $p = 6378137, mM = 85.0511287798, Ao = $p * Math.PI, eN = _e((e) => {
67920
67920
  }
67921
67921
  drawContext(t, n, i, r, o) {
67922
67922
  return Fo(this, null, function* () {
67923
- let s = eN(r), a = new Ot((s.x + Ao) / (Ao * 2), 1 - (s.y + Ao) / (Ao * 2)).clone().mult(Er(2, o) * 256).sub(new Ot(n / 2, i / 2)), c = { minX: a.x, minY: a.y, maxX: a.x + n, maxY: a.y + i }, l = [];
67923
+ let s = eN(r), a = new Ot((s.x + Ao) / (Ao * 2), 1 - (s.y + Ao) / (Ao * 2)).clone().mult(Cr(2, o) * 256).sub(new Ot(n / 2, i / 2)), c = { minX: a.x, minY: a.y, maxX: a.x + n, maxY: a.y + i }, l = [];
67924
67924
  for (let [m, y] of this.views) {
67925
67925
  let g = y.getBbox(o, c);
67926
67926
  l.push({ key: m, promise: g });
@@ -68282,47 +68282,67 @@ function _2e({
68282
68282
  customProvider: n,
68283
68283
  onTilesChange: i
68284
68284
  }) {
68285
- const { imageryLayerCollection: r, scene: o } = si(), { providers: s } = v2e({
68286
- tiles: e,
68285
+ const { imageryLayerCollection: r, scene: o } = si(), s = he(() => [], []), a = e ?? s, c = de(a), l = he(() => (Sr(c.current, a) || (c.current = a), c.current), [a]), { providers: u } = v2e({
68286
+ tiles: l,
68287
68287
  cesiumIonAccessToken: t,
68288
68288
  customProvider: n,
68289
68289
  presets: Uu
68290
- });
68291
- return Me(() => {
68290
+ }), h = de(/* @__PURE__ */ new Map());
68291
+ return Ie(() => {
68292
68292
  if (!r || !o) return;
68293
- let a = !1;
68294
- const c = [], l = new Array(e?.length || 0).fill(null), u = () => {
68295
- a || o.isDestroyed() || (l.forEach((h, d) => {
68296
- if (!h) return;
68297
- const f = r.indexOf(h);
68298
- if (f === -1) return;
68299
- const p = l.slice(0, d).filter((m) => m !== null).length;
68300
- f !== p && (r.remove(h, !1), r.add(h, p));
68293
+ let d = !1;
68294
+ const f = new Set(l?.map((y) => y.id) || []);
68295
+ h.current.forEach(({ layer: y }, g) => {
68296
+ f.has(g) || (r.contains(y) && r.remove(y), h.current.delete(g));
68297
+ });
68298
+ const p = new Array(l?.length || 0).fill(
68299
+ null
68300
+ ), m = () => {
68301
+ d || o.isDestroyed() || (p.forEach((y, g) => {
68302
+ if (!y) return;
68303
+ const v = r.indexOf(y);
68304
+ if (v === -1) return;
68305
+ const S = p.slice(0, g).filter((E) => E !== null).length;
68306
+ v !== S && (r.remove(y, !1), r.add(y, S));
68301
68307
  }), o.requestRender());
68302
68308
  };
68303
- return e?.forEach(({ id: h, zoomLevel: d, opacity: f, heatmap: p }, m) => {
68304
- const y = s[h]?.[3];
68305
- if (!y) return;
68306
- const g = (v) => {
68307
- if (!v || a || o.isDestroyed()) return;
68308
- const S = new Fb(v, {
68309
- minimumTerrainLevel: d?.[0],
68310
- maximumTerrainLevel: d?.[1],
68311
- alpha: f,
68312
- colorToAlpha: p ? rn.WHITE : void 0,
68313
- colorToAlphaThreshold: p ? 1 : void 0,
68314
- magnificationFilter: p ? jW.LINEAR : void 0,
68315
- minificationFilter: p ? HW.NEAREST : void 0
68309
+ return l?.forEach((y, g) => {
68310
+ const { id: v, zoomLevel: S, opacity: E, heatmap: C } = y, M = h.current.get(v), G = u[v]?.[3];
68311
+ if (!G) return;
68312
+ if (M) {
68313
+ const P = M.tile;
68314
+ if (M.provider === G && P.type === y.type && P.url === y.url && P.cesiumIonAssetId === y.cesiumIonAssetId && P.zoomLevel?.[0] === S?.[0] && P.zoomLevel?.[1] === S?.[1] && P.heatmap === C) {
68315
+ const I = E ?? 1;
68316
+ M.layer.alpha !== I && (M.layer.alpha = I, o.requestRender()), M.tile = y, M.provider = G, p[g] = M.layer, m();
68317
+ return;
68318
+ }
68319
+ r.contains(M.layer) && r.remove(M.layer), h.current.delete(v);
68320
+ }
68321
+ const V = (P) => {
68322
+ if (!P || d || o.isDestroyed()) return;
68323
+ const A = new Fb(P, {
68324
+ minimumTerrainLevel: S?.[0],
68325
+ maximumTerrainLevel: S?.[1],
68326
+ alpha: E,
68327
+ colorToAlpha: C ? rn.WHITE : void 0,
68328
+ colorToAlphaThreshold: C ? 1 : void 0,
68329
+ magnificationFilter: C ? jW.LINEAR : void 0,
68330
+ minificationFilter: C ? HW.NEAREST : void 0
68316
68331
  });
68317
- r.add(S), l[m] = S, c.push(S), u();
68332
+ r.add(A), p[g] = A, h.current.set(v, { layer: A, tile: y, provider: G }), m();
68318
68333
  };
68319
- y instanceof Promise ? y.then(g).catch((v) => console.error("Failed to load imagery provider:", v)) : g(y);
68334
+ G instanceof Promise ? G.then(V).catch((P) => console.error("Failed to load imagery provider:", P)) : V(G);
68320
68335
  }), o.requestRender(), i?.(), () => {
68321
- a = !0;
68322
- for (const h of c)
68323
- !o.isDestroyed() && r.contains(h) && r.remove(h);
68336
+ d = !0;
68337
+ };
68338
+ }, [u, l, r, o, i]), Ie(() => {
68339
+ const d = h.current;
68340
+ return () => {
68341
+ !r || !o || o.isDestroyed() || (d.forEach(({ layer: f }) => {
68342
+ r.contains(f) && r.remove(f);
68343
+ }), d.clear());
68324
68344
  };
68325
- }, [s, e, r, o, i]), null;
68345
+ }, [r, o]), null;
68326
68346
  }
68327
68347
  function v2e({
68328
68348
  tiles: e = [],
@@ -68350,12 +68370,12 @@ function v2e({
68350
68370
  }) : i.open_street_map(g);
68351
68371
  },
68352
68372
  [i]
68353
- ), o = fe(t), s = fe(n), a = e.map((p) => p.id).join(","), c = fe(a), l = fe({}), u = he(
68373
+ ), o = de(t), s = de(n), a = e.map((p) => p.id).join(","), c = de(a), l = de({}), u = he(
68354
68374
  () => e.map((p) => {
68355
68375
  if (p.id && p.zoomLevel) return { [p.id]: p.zoomLevel };
68356
68376
  }),
68357
68377
  [e]
68358
- ), h = fe(u), { providers: d, updated: f } = he(() => {
68378
+ ), h = de(u), { providers: d, updated: f } = he(() => {
68359
68379
  const p = o.current !== t, m = s.current !== n, y = Object.keys(l.current), g = e.map((C) => C.id).filter((C) => C && !y.includes(C)), v = [
68360
68380
  ...Object.entries(l.current),
68361
68381
  ...g.map((C) => [C, void 0])
@@ -68389,7 +68409,7 @@ function v2e({
68389
68409
  ).filter(
68390
68410
  (C) => !!C?.[1][3]
68391
68411
  )
68392
- ), E = !!g.length || !!p || !!m || !Ur(c.current, a) || !Ur(h.current, u) || v.some(
68412
+ ), E = !!g.length || !!p || !!m || !Sr(c.current, a) || !Sr(h.current, u) || v.some(
68393
68413
  (C) => C.tile && (C.prevType !== C.tile.type || C.prevUrl !== C.tile.url || C.prevIonAssetId !== C.tile.cesiumIonAssetId)
68394
68414
  );
68395
68415
  return c.current = a, h.current = u, o.current = t, s.current = n, { providers: S, updated: E };
@@ -68399,7 +68419,7 @@ function v2e({
68399
68419
  const iN = (e, t, n) => {
68400
68420
  const [i, r] = ot(
68401
68421
  e ? "entered" : n && n.mountOnEnter ? "unmounted" : "exited"
68402
- ), o = fe(), s = fe(), a = se(() => {
68422
+ ), o = de(), s = de(), a = se(() => {
68403
68423
  r(
68404
68424
  e ? "entered" : n && n.unmountOnExit ? "unmounted" : "exited"
68405
68425
  ), s.current = void 0;
@@ -68412,7 +68432,7 @@ const iN = (e, t, n) => {
68412
68432
  }, [e, !!n && n.unmountOnExit, s]), u = se(() => {
68413
68433
  r(e ? "entering" : "exiting"), o.current = setTimeout(l, t), s.current = Date.now() + t;
68414
68434
  }, [e, t, l, o, s]);
68415
- return Me(() => {
68435
+ return Ie(() => {
68416
68436
  if (e ? i === "entered" : i === "exited" || i === "unmounted") {
68417
68437
  s.current = void 0;
68418
68438
  return;
@@ -68432,12 +68452,12 @@ function x2e({
68432
68452
  mountOnEnter: !0,
68433
68453
  unmountOnExit: !0
68434
68454
  }), { type: l, image: u, imageScale: h } = t?.indicator ?? {}, [d, f, p] = JS({ image: u, imageSize: h });
68435
- return Me(() => {
68455
+ return Ie(() => {
68436
68456
  !l || l === "default" ? i?.selectionIndicator.viewModel.selectionIndicatorElement.removeAttribute("hidden") : i?.selectionIndicator.viewModel.selectionIndicatorElement.setAttribute(
68437
68457
  "hidden",
68438
68458
  "true"
68439
68459
  );
68440
- }, [l, i, i?.selectionIndicator]), Me(() => {
68460
+ }, [l, i, i?.selectionIndicator]), Ie(() => {
68441
68461
  if (!i) return;
68442
68462
  const m = () => {
68443
68463
  if (i.isDestroyed()) return;
@@ -68712,8 +68732,8 @@ function E2e(e) {
68712
68732
  return T2e[e];
68713
68733
  }
68714
68734
  function rN(e, t) {
68715
- const { viewer: n } = si(), i = n?.scene, r = fe(t);
68716
- r.current = t, Wr(() => i?.[e].addEventListener((o, s) => {
68735
+ const { viewer: n } = si(), i = n?.scene, r = de(t);
68736
+ r.current = t, Ur(() => i?.[e].addEventListener((o, s) => {
68717
68737
  try {
68718
68738
  r.current(o, s);
68719
68739
  } catch (a) {
@@ -69663,7 +69683,7 @@ const UT = Fi(
69663
69683
  // https://maps.gsi.go.jp/help/pdf/vector/optbv_attribute.pdf
69664
69684
  (t.level < 16 || t.level === 16 && v.props.vt_flag17 !== 2 || t.level === 17 && v.props.vr_flag17 !== 0)
69665
69685
  );
69666
- }, [l, t]), f = fe(void 0), p = c?.scene, m = se(() => {
69686
+ }, [l, t]), f = de(void 0), p = c?.scene, m = se(() => {
69667
69687
  const g = f.current;
69668
69688
  g != null && (g.forEach(([v, S]) => {
69669
69689
  const E = rwe(
@@ -69678,8 +69698,8 @@ const UT = Fi(
69678
69698
  );
69679
69699
  E != null ? (S.position = E, S.show = !0) : S.show = !1;
69680
69700
  }), p?.requestRender());
69681
- }, [e, t, i, u, h, p]), y = fe(m);
69682
- return y.current = m, Me(() => {
69701
+ }, [e, t, i, u, h, p]), y = de(m);
69702
+ return y.current = m, Ie(() => {
69683
69703
  if (!p || !o)
69684
69704
  return;
69685
69705
  const g = [], v = d.map((E) => {
@@ -69711,7 +69731,7 @@ const UT = Fi(
69711
69731
  return () => {
69712
69732
  f.current = void 0, p.isDestroyed() || p?.postRender.addEventListener(S);
69713
69733
  };
69714
- }, [r, d, p, o, s, a]), Me(() => {
69734
+ }, [r, d, p, o, s, a]), Ie(() => {
69715
69735
  m();
69716
69736
  }, [m]), null;
69717
69737
  }
@@ -69733,8 +69753,8 @@ function owe(e, t) {
69733
69753
  }
69734
69754
  }
69735
69755
  function lN(e) {
69736
- const [t, n] = ot(), i = fe(void 0);
69737
- return i.current == null && (i.current = e.create()), Me(() => {
69756
+ const [t, n] = ot(), i = de(void 0);
69757
+ return i.current == null && (i.current = e.create()), Ie(() => {
69738
69758
  i.current == null && (i.current = e.create(), n(i.current));
69739
69759
  const r = i.current, o = owe(e, r);
69740
69760
  return () => {
@@ -69854,14 +69874,14 @@ const lwe = ({ imageryProvider: e, imageriesAtom: t, style: n, labelCollection:
69854
69874
  const p = cwe(f, i);
69855
69875
  a(p);
69856
69876
  });
69857
- const { labelCollection: c, scene: l } = si(), u = fe(!1), h = he(() => c ?? (l ? new rO({ scene: l }) : void 0), [l, c]);
69858
- Me(() => {
69877
+ const { labelCollection: c, scene: l } = si(), u = de(!1), h = he(() => c ?? (l ? new rO({ scene: l }) : void 0), [l, c]);
69878
+ Ie(() => {
69859
69879
  !c && l && !u.current && (l.primitives.add(h), u.current = !0);
69860
69880
  }, [c, h, l]);
69861
- const d = fe(0);
69881
+ const d = de(0);
69862
69882
  return $l((f) => {
69863
69883
  h && d.current !== h._labelsToUpdate.length && (f.requestRender(), d.current = h._labelsToUpdate.length);
69864
- }), Me(() => () => {
69884
+ }), Ie(() => () => {
69865
69885
  l?.isDestroyed() || l?.requestRender();
69866
69886
  }, [l]), /* @__PURE__ */ ae.jsxs(ae.Fragment, { children: [
69867
69887
  /* @__PURE__ */ ae.jsx(
@@ -69898,11 +69918,11 @@ const lwe = ({ imageryProvider: e, imageriesAtom: t, style: n, labelCollection:
69898
69918
  },
69899
69919
  t.id
69900
69920
  ) : null) }),
69901
- (e, t) => Ur(e.tileLabels, t.tileLabels)
69921
+ (e, t) => Sr(e.tileLabels, t.tileLabels)
69902
69922
  );
69903
69923
  uN.displayName = "LabelImageryLayers";
69904
69924
  function hwe({ onMount: e, onUnmount: t }) {
69905
- return Me(() => (e?.(), () => t?.()), [e, t]), null;
69925
+ return Ie(() => (e?.(), () => t?.()), [e, t]), null;
69906
69926
  }
69907
69927
  var dwe = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, hN = /* @__PURE__ */ new Set(), Hw = typeof process == "object" && process ? process : {}, dN = (e, t, n, i) => {
69908
69928
  typeof Hw.emitWarning == "function" ? Hw.emitWarning(e, t, n, i) : console.error(`[${n}] ${t}: ${e}`);
@@ -70692,7 +70712,7 @@ function Iwe({
70692
70712
  ...s
70693
70713
  }, a) {
70694
70714
  const [c, l] = ot(null);
70695
- Wr(() => {
70715
+ Ur(() => {
70696
70716
  c?.cesiumElement && Ko(c.cesiumElement, {
70697
70717
  layerId: e || s.id,
70698
70718
  featureId: t,
@@ -70796,7 +70816,7 @@ const Mwe = {
70796
70816
  const v = new pe(), S = new pe(), E = Zn.fromTranslationRotationScale(o);
70797
70817
  return Zn.multiplyByPoint(E, n.start, v), Zn.multiplyByPoint(E, n.end, S), [v, S];
70798
70818
  }, !1)
70799
- ), d = fe(!1), [f] = ot(
70819
+ ), d = de(!1), [f] = ot(
70800
70820
  () => new eU(
70801
70821
  new Bi(
70802
70822
  () => d.current ? s ?? r : r,
@@ -70804,7 +70824,7 @@ const Mwe = {
70804
70824
  )
70805
70825
  )
70806
70826
  );
70807
- Me(() => {
70827
+ Ie(() => {
70808
70828
  d.current = i;
70809
70829
  }, [i]);
70810
70830
  const p = se(
@@ -70823,9 +70843,9 @@ const Mwe = {
70823
70843
  },
70824
70844
  [l, t, e]
70825
70845
  ), g = he(() => new td(u?.scene.canvas), [u]);
70826
- return Me(() => {
70846
+ return Ie(() => {
70827
70847
  g.setInputAction(p, zt.LEFT_DOWN), g.setInputAction(m, zt.MOUSE_MOVE), g.setInputAction(y, zt.LEFT_UP);
70828
- }, [g, p, m, y]), Me(() => () => g.destroy(), [g]), {
70848
+ }, [g, p, m, y]), Ie(() => () => g.destroy(), [g]), {
70829
70849
  cbp: h,
70830
70850
  outlineColor: f
70831
70851
  };
@@ -71010,7 +71030,7 @@ const Sv = (e, t, n) => {
71010
71030
  },
71011
71031
  attributes: {
71012
71032
  type: "table",
71013
- value: !(e instanceof kr) && "properties" in e && e.properties && typeof e.properties == "object" ? OM(e.properties) : e instanceof kr && e.properties ? OM(e.properties.getValue(t)) : []
71033
+ value: !(e instanceof Wr) && "properties" in e && e.properties && typeof e.properties == "object" ? OM(e.properties) : e instanceof Wr && e.properties ? OM(e.properties.getValue(t)) : []
71014
71034
  }
71015
71035
  };
71016
71036
  return n ? i[n] : i.attributes ?? i.description;
@@ -71054,8 +71074,8 @@ const wh = (e, t) => {
71054
71074
  }
71055
71075
  ];
71056
71076
  }
71057
- if (t instanceof kr || "id" in t && t.id instanceof kr) {
71058
- const n = t instanceof kr ? t : t.id, i = Lt(n);
71077
+ if (t instanceof Wr || "id" in t && t.id instanceof Wr) {
71078
+ const n = t instanceof Wr ? t : t.id, i = Lt(n);
71059
71079
  return [
71060
71080
  i?.layerId,
71061
71081
  i?.computedFeature ?? {
@@ -71144,12 +71164,12 @@ const kwe = ({
71144
71164
  t,
71145
71165
  v
71146
71166
  )
71147
- ), M = fe(!1), G = se(() => {
71167
+ ), M = de(!1), G = se(() => {
71148
71168
  M.current || !v && r && (M.current = !0, h4(r.scene, C.translation).then((j) => {
71149
71169
  E(j ?? 0), M.current = !1;
71150
71170
  }));
71151
71171
  }, [v, r, C]), { requestRender: V } = pi();
71152
- Me(() => {
71172
+ Ie(() => {
71153
71173
  VM(C, e, S, t, v), V?.(), G();
71154
71174
  }, [
71155
71175
  e,
@@ -71190,12 +71210,12 @@ const kwe = ({
71190
71210
  axisLineColor: ri(y) ?? P.outlineColor
71191
71211
  }),
71192
71212
  [f, p, y, P, m]
71193
- ), X = fe(void 0), I = se(
71213
+ ), X = de(void 0), I = se(
71194
71214
  (j, { index: J }) => {
71195
71215
  r && (eh(r, !1), X.current = J);
71196
71216
  },
71197
71217
  [r]
71198
- ), x = fe(void 0), w = se(
71218
+ ), x = de(void 0), w = se(
71199
71219
  (j, { position: J, oppositePosition: ie, pointLocal: Ee, index: ve, layerId: Ne }) => {
71200
71220
  if (X.current !== ve || !J || !ie || !Ee || !r)
71201
71221
  return;
@@ -71233,8 +71253,8 @@ const kwe = ({
71233
71253
  ),
71234
71254
  z,
71235
71255
  new pe()
71236
- ), q = pe.multiplyByScalar(ke, z / 2, new pe()), ue = le.z < 0, Ie = z > 0;
71237
- !v && Ie && ue && vn.fromCartesian(
71256
+ ), q = pe.multiplyByScalar(ke, z / 2, new pe()), ue = le.z < 0, Me = z > 0;
71257
+ !v && Me && ue && vn.fromCartesian(
71238
71258
  C.translation,
71239
71259
  void 0,
71240
71260
  new vn()
@@ -71273,12 +71293,12 @@ const kwe = ({
71273
71293
  [C, r, v, o, i]
71274
71294
  ), R = se(() => {
71275
71295
  r && (X.current = void 0, x.current = void 0, eh(r, !0));
71276
- }, [r]), N = fe(void 0), k = se(
71296
+ }, [r]), N = de(void 0), k = se(
71277
71297
  (j, { index: J }) => {
71278
71298
  r && (N.current = J, eh(r, !1));
71279
71299
  },
71280
71300
  [r]
71281
- ), D = fe(void 0), B = se(
71301
+ ), D = de(void 0), B = se(
71282
71302
  (j, { index: J, layerId: ie }) => {
71283
71303
  if (N.current !== J)
71284
71304
  return;
@@ -71314,7 +71334,7 @@ const kwe = ({
71314
71334
  ), K = se(() => {
71315
71335
  r && (N.current = void 0, D.current = void 0, eh(r, !0));
71316
71336
  }, [r]);
71317
- Me(() => {
71337
+ Ie(() => {
71318
71338
  document.body.style.cursor = g || "default";
71319
71339
  }, [g]);
71320
71340
  const F = he(() => ol(n?.interval), [n?.interval]), W = he(
@@ -71367,13 +71387,13 @@ const kwe = ({
71367
71387
  !1
71368
71388
  )
71369
71389
  };
71370
- }), y = fe(!1), [g] = ot(
71390
+ }), y = de(!1), [g] = ot(
71371
71391
  () => new Bi(
71372
71392
  () => y.current ? o : r,
71373
71393
  !1
71374
71394
  )
71375
71395
  );
71376
- Me(() => {
71396
+ Ie(() => {
71377
71397
  y.current = i;
71378
71398
  }, [i]);
71379
71399
  const [v] = ot(
@@ -71383,7 +71403,7 @@ const kwe = ({
71383
71403
  ), [E] = ot(() => new Bi(() => Oa.IDENTITY, !1)), C = he(
71384
71404
  () => new lO({ color: s, dashLength: 8 }),
71385
71405
  [s]
71386
- ), M = fe(!1), G = se(
71406
+ ), M = de(!1), G = se(
71387
71407
  (X) => {
71388
71408
  if (!p)
71389
71409
  return;
@@ -71417,16 +71437,16 @@ const kwe = ({
71417
71437
  },
71418
71438
  [h, t, d, f]
71419
71439
  );
71420
- Me(() => {
71440
+ Ie(() => {
71421
71441
  pe.clone(
71422
71442
  new pe(c?.width, c?.length, c?.height),
71423
71443
  v
71424
71444
  );
71425
71445
  }, [c, v]);
71426
71446
  const A = he(() => new td(p?.scene.canvas), [p]);
71427
- return Me(() => {
71447
+ return Ie(() => {
71428
71448
  A.setInputAction(G, zt.LEFT_DOWN), A.setInputAction(V, zt.MOUSE_MOVE), A.setInputAction(P, zt.LEFT_UP);
71429
- }, [A, G, V, P]), Me(() => () => A.destroy(), [A]), {
71449
+ }, [A, G, V, P]), Ie(() => () => A.destroy(), [A]), {
71430
71450
  entitiesPosition: m,
71431
71451
  pointOutlineColorCb: g,
71432
71452
  cesiumDimensionsCallbackProperty: S,
@@ -71570,13 +71590,13 @@ const kwe = ({
71570
71590
  return Zwe(r.scale, h, d), d;
71571
71591
  }, !1),
71572
71592
  new Bi(() => r.rotation, !1)
71573
- ], [r, e]), l = fe(!1), [u] = ot(
71593
+ ], [r, e]), l = de(!1), [u] = ot(
71574
71594
  () => new Bi(
71575
71595
  () => l.current ? i ?? n : n,
71576
71596
  !1
71577
71597
  )
71578
71598
  );
71579
- return Me(() => {
71599
+ return Ie(() => {
71580
71600
  l.current = t;
71581
71601
  }, [t]), {
71582
71602
  cbRef: o,
@@ -71966,7 +71986,7 @@ function ixe({ isVisible: e, property: t, geometry: n, layer: i, feature: r }) {
71966
71986
  zoom: l = 1,
71967
71987
  aspectRatio: u = 3 / 2,
71968
71988
  length: h = 200
71969
- } = t || {}, { requestRender: d } = pi(), f = fe(null), { translate: p, rotate: m } = i?.transition ?? {}, y = he(
71989
+ } = t || {}, { requestRender: d } = pi(), f = de(null), { translate: p, rotate: m } = i?.transition ?? {}, y = he(
71970
71990
  () => p ? pe.fromDegrees(...p) : void 0,
71971
71991
  [p]
71972
71992
  ), g = he(
@@ -71994,9 +72014,9 @@ function ixe({ isVisible: e, property: t, geometry: n, layer: i, feature: r }) {
71994
72014
  }),
71995
72015
  [s]
71996
72016
  );
71997
- return Me(() => {
72017
+ return Ie(() => {
71998
72018
  !f.current || f.current.cesiumElement?.isDestroyed() || d?.();
71999
- }), Wr(() => {
72019
+ }), Ur(() => {
72000
72020
  !f.current || f.current.cesiumElement?.isDestroyed() || Ko(f.current.cesiumElement, {
72001
72021
  layerId: i?.id,
72002
72022
  featureId: r?.id
@@ -74810,7 +74830,7 @@ const qN = Fi(
74810
74830
  cropBound: a,
74811
74831
  ...c
74812
74832
  }, l) => {
74813
- const { scene: u } = si(), h = u?.groundPrimitives, d = fe(void 0), f = ws(
74833
+ const { scene: u } = si(), h = u?.groundPrimitives, d = de(void 0), f = ws(
74814
74834
  () => VEe({
74815
74835
  image: i.image,
74816
74836
  width: i.width,
@@ -74826,7 +74846,7 @@ const qN = Fi(
74826
74846
  }),
74827
74847
  id: e?.id
74828
74848
  })), [r, e?.id])[0];
74829
- return Me(() => {
74849
+ return Ie(() => {
74830
74850
  if (h?.isDestroyed())
74831
74851
  return;
74832
74852
  const y = (
@@ -74842,15 +74862,15 @@ const qN = Fi(
74842
74862
  return h?.add(y), d.current = y, () => {
74843
74863
  h?.isDestroyed() || h?.remove(y), d.current = void 0;
74844
74864
  };
74845
- }, [m, h, f]), Wr(() => {
74865
+ }, [m, h, f]), Ur(() => {
74846
74866
  !d.current || d.current?.isDestroyed() || Ko(d.current, {
74847
74867
  layerId: e?.id,
74848
74868
  featureId: t?.id,
74849
74869
  originalProperties: n
74850
74870
  });
74851
- }, [e?.id, t?.id, n]), Me(() => {
74871
+ }, [e?.id, t?.id, n]), Ie(() => {
74852
74872
  f.uniforms.image = i.image;
74853
- }, [i.image, f]), Object.assign(f.uniforms, co(i, ["width", "height"])), Me(() => {
74873
+ }, [i.image, f]), Object.assign(f.uniforms, co(i, ["width", "height"])), Ie(() => {
74854
74874
  f.uniforms.colorMap = o != null ? sm(o) : sm(TN);
74855
74875
  }, [o, f]), Object.assign(
74856
74876
  f.uniforms,
@@ -74911,17 +74931,17 @@ const FEe = Fi(function({ property: t, isVisible: n, layer: i, feature: r }) {
74911
74931
  N?.direction || pe.ONE,
74912
74932
  N?.up || pe.ONE
74913
74933
  ).computeVisibility(E) !== sU.OUTSIDE;
74914
- }, V = fe(null);
74915
- Me(() => {
74934
+ }, V = de(null);
74935
+ Ie(() => {
74916
74936
  V.current && V.current.sendToBack();
74917
74937
  }, []), $l(() => {
74918
74938
  const N = G();
74919
74939
  N !== C && (M(N), v?.onLayerVisibility && i?.id && v.onLayerVisibility({ layerId: i.id }));
74920
- }), Me(() => () => {
74940
+ }), Ie(() => () => {
74921
74941
  g?.isDestroyed() || g?.requestRender();
74922
74942
  }, [g]);
74923
74943
  const [P, A] = ot(), X = t?.maxValue == null && t?.minValue == null;
74924
- Me(() => {
74944
+ Ie(() => {
74925
74945
  !C || !o || IEe(o, X).then((N) => {
74926
74946
  A(N);
74927
74947
  }).catch(() => {
@@ -75005,7 +75025,7 @@ function XEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
75005
75025
  } = e ?? {}, { useTransition: j, translate: J } = r?.transition ?? {}, ie = he(
75006
75026
  () => J ? pe.fromDegrees(...J) : void 0,
75007
75027
  [J]
75008
- ), Ee = fe(ie);
75028
+ ), Ee = de(ie);
75009
75029
  Ee.current = ie;
75010
75030
  const ve = he(
75011
75031
  () => j ? new Bi(() => Ee.current, !1) : void 0,
@@ -75035,7 +75055,7 @@ function XEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
75035
75055
  v.includes("left") || v.includes("right") ? Be * (v.includes("left") ? -1 : 1) : 0,
75036
75056
  v.includes("top") || v.includes("bottom") ? Ct * (v.includes("top") ? -1 : 1) : 0
75037
75057
  );
75038
- }, [me, tt, u, rt, v, z]), Q = he(() => rn.WHITE.withAlpha(0.4), []), Y = fe(null), $ = Lt(Y.current?.cesiumElement), ce = he(
75058
+ }, [me, tt, u, rt, v, z]), Q = he(() => rn.WHITE.withAlpha(0.4), []), Y = de(null), $ = Lt(Y.current?.cesiumElement), ce = he(
75039
75059
  () => Cc(
75040
75060
  $?.isFeatureSelected && typeof r?.marker?.selectedFeatureColor == "string" ? r.marker?.selectedFeatureColor : I
75041
75061
  ),
@@ -75045,7 +75065,7 @@ function XEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
75045
75065
  $?.isFeatureSelected && typeof r?.marker?.selectedFeatureColor == "string" ? r.marker?.selectedFeatureColor : d
75046
75066
  ),
75047
75067
  [d, r, $?.isFeatureSelected]
75048
- ), q = he(() => Cc(f), [f]), ue = he(() => Cc(y?.color), [y?.color]), Ie = he(
75068
+ ), q = he(() => Cc(f), [f]), ue = he(() => Cc(y?.color), [y?.color]), Me = he(
75049
75069
  () => Cc(E),
75050
75070
  [E]
75051
75071
  ), we = he(
@@ -75056,7 +75076,7 @@ function XEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
75056
75076
  () => sl(e?.near, e?.far),
75057
75077
  [e?.near, e?.far]
75058
75078
  ), Qe = he(() => String(g), [g]);
75059
- return Me(() => {
75079
+ return Ie(() => {
75060
75080
  a?.();
75061
75081
  }), !Ne || !n || !c ? null : /* @__PURE__ */ ae.jsxs(ae.Fragment, { children: [
75062
75082
  Oe && /* @__PURE__ */ ae.jsx(
@@ -75126,7 +75146,7 @@ function XEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
75126
75146
  font: vO(y, { fontSize: 30 }),
75127
75147
  text: Qe,
75128
75148
  showBackground: S,
75129
- backgroundColor: Ie,
75149
+ backgroundColor: Me,
75130
75150
  backgroundPadding: we,
75131
75151
  heightReference: Va(F),
75132
75152
  distanceDisplayCondition: Ye
@@ -75286,7 +75306,7 @@ function WEe({
75286
75306
  i?.scene?.imageBasedLighting?.specularEnvironmentMaps,
75287
75307
  i?.scene?.imageBasedLighting?.sphericalHarmonicCoefficients,
75288
75308
  i?.scene?.imageBasedLighting?.intensity
75289
- ]), { viewer: J } = si(), { requestRender: ie } = pi(), Ee = fe(!1);
75309
+ ]), { viewer: J } = si(), { requestRender: ie } = pi(), Ee = de(!1);
75290
75310
  return rN("postRender", () => {
75291
75311
  const ve = J?.scene.primitives, Ne = ve?.length ?? 0;
75292
75312
  if (!(!Ee.current || !j))
@@ -75294,9 +75314,9 @@ function WEe({
75294
75314
  const me = ve?.get(Oe);
75295
75315
  me instanceof vs && me.id && me.id.id === e && (me.imageBasedLighting = j, Ee.current = !1, ie?.());
75296
75316
  }
75297
- }), Me(() => {
75317
+ }), Ie(() => {
75298
75318
  j && (Ee.current = !0);
75299
- }, [j]), Me(() => {
75319
+ }, [j]), Ie(() => {
75300
75320
  ie?.();
75301
75321
  }), (c ? s : !s) || !t || !h || !N ? null : /* @__PURE__ */ ae.jsx(
75302
75322
  $r,
@@ -75351,12 +75371,12 @@ const YEe = /* @__PURE__ */ id(BEe), tX = 2, nX = 2, iX = 0.5, rX = 0.5, QT = 1,
75351
75371
  [QT * 1e3, qT * 1e3]
75352
75372
  ];
75353
75373
  function jEe({ isSelected: e, camera: t }) {
75354
- const { selectionReason: n, flyTo: i, getCamera: r } = pi(), [o, s, a] = UU(HEe), c = fe(t);
75374
+ const { selectionReason: n, flyTo: i, getCamera: r } = pi(), [o, s, a] = UU(HEe), c = de(t);
75355
75375
  c.current = t;
75356
- const l = fe(!1);
75376
+ const l = de(!1);
75357
75377
  l.current = n?.reason === "storytelling";
75358
- const u = fe(void 0);
75359
- Me(() => {
75378
+ const u = de(void 0);
75379
+ Ie(() => {
75360
75380
  if ((s ?? 0) > 1 && o === 1 && u.current)
75361
75381
  i?.(u.current, {
75362
75382
  duration: nX,
@@ -75380,7 +75400,7 @@ function jEe({ isSelected: e, camera: t }) {
75380
75400
  }
75381
75401
  );
75382
75402
  }
75383
- }, [i, r, o, s]), Me(() => {
75403
+ }, [i, r, o, s]), Ie(() => {
75384
75404
  if (!e && l.current) {
75385
75405
  const f = u.current?.fov ?? nL;
75386
75406
  i?.({ fov: f }, { duration: 0 });
@@ -75532,7 +75552,7 @@ function oX(e, t, n) {
75532
75552
  );
75533
75553
  }
75534
75554
  function sX(e, t) {
75535
- const n = fe(void 0), i = fe(
75555
+ const n = de(void 0), i = de(
75536
75556
  n.current
75537
75557
  );
75538
75558
  return (i.current === void 0 || !t(i.current, e)) && (n.current = e), i.current = e, n.current;
@@ -75578,7 +75598,7 @@ function rCe({
75578
75598
  )
75579
75599
  ) : void 0,
75580
75600
  [a ?? []],
75581
- Ur
75601
+ Sr
75582
75602
  ), M = he(
75583
75603
  () => a && h && !s ? a.flatMap((w) => [
75584
75604
  // bottom
@@ -75597,7 +75617,7 @@ function rCe({
75597
75617
  ), G = he(
75598
75618
  () => h ? mh(f) : void 0,
75599
75619
  [h, f]
75600
- ), V = fe(null), P = Lt(V.current?.cesiumElement), A = he(
75620
+ ), V = de(null), P = Lt(V.current?.cesiumElement), A = he(
75601
75621
  () => u ? P?.isFeatureSelected && typeof r?.polygon?.selectedFeatureColor == "string" ? mh(r.polygon?.selectedFeatureColor) : mh(d) : void 0,
75602
75622
  [u, d, r?.id, o?.id, P?.isFeatureSelected]
75603
75623
  ), X = he(() => ol(o?.interval), [o?.interval]), I = he(
@@ -75607,7 +75627,7 @@ function rCe({
75607
75627
  () => v !== void 0 ? { extrudedHeight: v } : void 0,
75608
75628
  [v]
75609
75629
  );
75610
- return Me(() => {
75630
+ return Ie(() => {
75611
75631
  c?.();
75612
75632
  }), !t || !a || !l ? null : /* @__PURE__ */ ae.jsxs(ae.Fragment, { children: [
75613
75633
  /* @__PURE__ */ ae.jsx(
@@ -75670,15 +75690,15 @@ function sCe({ id: e, isVisible: t, property: n, geometry: i, layer: r, feature:
75670
75690
  } = n ?? {}, m = $T(
75671
75691
  () => a?.map((C) => pe.fromDegrees(C[0], C[1], C[2])),
75672
75692
  [a ?? []],
75673
- Ur
75674
- ), y = fe(null), g = Lt(y.current?.cesiumElement), v = he(
75693
+ Sr
75694
+ ), y = de(null), g = Lt(y.current?.cesiumElement), v = he(
75675
75695
  () => g?.isFeatureSelected && typeof r?.polyline?.selectedFeatureColor == "string" ? mh(r.polyline?.selectedFeatureColor) : mh(u),
75676
75696
  [u, r, g?.isFeatureSelected]
75677
75697
  ), S = he(() => ol(o?.interval), [o?.interval]), E = he(
75678
75698
  () => sl(n?.near, n?.far),
75679
75699
  [n?.near, n?.far]
75680
75700
  );
75681
- return Me(() => {
75701
+ return Ie(() => {
75682
75702
  c?.();
75683
75703
  }), !t || !a || !s ? null : /* @__PURE__ */ ae.jsx(
75684
75704
  $r,
@@ -77248,30 +77268,30 @@ Je.prototype.equalsEpsilon = function(e, t, n) {
77248
77268
  Je.prototype.toString = function() {
77249
77269
  return `(${this.x}, ${this.y})`;
77250
77270
  };
77251
- function de(e, t, n) {
77271
+ function fe(e, t, n) {
77252
77272
  this.x = pt(e, 0), this.y = pt(t, 0), this.z = pt(n, 0);
77253
77273
  }
77254
- de.fromSpherical = function(e, t) {
77255
- oe.typeOf.object("spherical", e), Ge(t) || (t = new de());
77274
+ fe.fromSpherical = function(e, t) {
77275
+ oe.typeOf.object("spherical", e), Ge(t) || (t = new fe());
77256
77276
  const n = e.clock, i = e.cone, r = pt(e.magnitude, 1), o = r * Math.sin(i);
77257
77277
  return t.x = o * Math.cos(n), t.y = o * Math.sin(n), t.z = r * Math.cos(i), t;
77258
77278
  };
77259
- de.fromElements = function(e, t, n, i) {
77260
- return Ge(i) ? (i.x = e, i.y = t, i.z = n, i) : new de(e, t, n);
77279
+ fe.fromElements = function(e, t, n, i) {
77280
+ return Ge(i) ? (i.x = e, i.y = t, i.z = n, i) : new fe(e, t, n);
77261
77281
  };
77262
- de.clone = function(e, t) {
77282
+ fe.clone = function(e, t) {
77263
77283
  if (Ge(e))
77264
- return Ge(t) ? (t.x = e.x, t.y = e.y, t.z = e.z, t) : new de(e.x, e.y, e.z);
77284
+ return Ge(t) ? (t.x = e.x, t.y = e.y, t.z = e.z, t) : new fe(e.x, e.y, e.z);
77265
77285
  };
77266
- de.fromCartesian4 = de.clone;
77267
- de.packedLength = 3;
77268
- de.pack = function(e, t, n) {
77286
+ fe.fromCartesian4 = fe.clone;
77287
+ fe.packedLength = 3;
77288
+ fe.pack = function(e, t, n) {
77269
77289
  return oe.typeOf.object("value", e), oe.defined("array", t), n = pt(n, 0), t[n++] = e.x, t[n++] = e.y, t[n] = e.z, t;
77270
77290
  };
77271
- de.unpack = function(e, t, n) {
77272
- return oe.defined("array", e), t = pt(t, 0), Ge(n) || (n = new de()), n.x = e[t++], n.y = e[t++], n.z = e[t], n;
77291
+ fe.unpack = function(e, t, n) {
77292
+ return oe.defined("array", e), t = pt(t, 0), Ge(n) || (n = new fe()), n.x = e[t++], n.y = e[t++], n.z = e[t], n;
77273
77293
  };
77274
- de.packArray = function(e, t) {
77294
+ fe.packArray = function(e, t) {
77275
77295
  oe.defined("array", e);
77276
77296
  const n = e.length, i = n * 3;
77277
77297
  if (!Ge(t))
@@ -77284,94 +77304,94 @@ de.packArray = function(e, t) {
77284
77304
  t.length !== i && (t.length = i);
77285
77305
  }
77286
77306
  for (let r = 0; r < n; ++r)
77287
- de.pack(e[r], t, r * 3);
77307
+ fe.pack(e[r], t, r * 3);
77288
77308
  return t;
77289
77309
  };
77290
- de.unpackArray = function(e, t) {
77310
+ fe.unpackArray = function(e, t) {
77291
77311
  if (oe.defined("array", e), oe.typeOf.number.greaterThanOrEquals("array.length", e.length, 3), e.length % 3 !== 0)
77292
77312
  throw new lt("array length must be a multiple of 3.");
77293
77313
  const n = e.length;
77294
77314
  Ge(t) ? t.length = n / 3 : t = new Array(n / 3);
77295
77315
  for (let i = 0; i < n; i += 3) {
77296
77316
  const r = i / 3;
77297
- t[r] = de.unpack(e, i, t[r]);
77317
+ t[r] = fe.unpack(e, i, t[r]);
77298
77318
  }
77299
77319
  return t;
77300
77320
  };
77301
- de.fromArray = de.unpack;
77302
- de.maximumComponent = function(e) {
77321
+ fe.fromArray = fe.unpack;
77322
+ fe.maximumComponent = function(e) {
77303
77323
  return oe.typeOf.object("cartesian", e), Math.max(e.x, e.y, e.z);
77304
77324
  };
77305
- de.minimumComponent = function(e) {
77325
+ fe.minimumComponent = function(e) {
77306
77326
  return oe.typeOf.object("cartesian", e), Math.min(e.x, e.y, e.z);
77307
77327
  };
77308
- de.minimumByComponent = function(e, t, n) {
77328
+ fe.minimumByComponent = function(e, t, n) {
77309
77329
  return oe.typeOf.object("first", e), oe.typeOf.object("second", t), oe.typeOf.object("result", n), n.x = Math.min(e.x, t.x), n.y = Math.min(e.y, t.y), n.z = Math.min(e.z, t.z), n;
77310
77330
  };
77311
- de.maximumByComponent = function(e, t, n) {
77331
+ fe.maximumByComponent = function(e, t, n) {
77312
77332
  return oe.typeOf.object("first", e), oe.typeOf.object("second", t), oe.typeOf.object("result", n), n.x = Math.max(e.x, t.x), n.y = Math.max(e.y, t.y), n.z = Math.max(e.z, t.z), n;
77313
77333
  };
77314
- de.clamp = function(e, t, n, i) {
77334
+ fe.clamp = function(e, t, n, i) {
77315
77335
  oe.typeOf.object("value", e), oe.typeOf.object("min", t), oe.typeOf.object("max", n), oe.typeOf.object("result", i);
77316
77336
  const r = st.clamp(e.x, t.x, n.x), o = st.clamp(e.y, t.y, n.y), s = st.clamp(e.z, t.z, n.z);
77317
77337
  return i.x = r, i.y = o, i.z = s, i;
77318
77338
  };
77319
- de.magnitudeSquared = function(e) {
77339
+ fe.magnitudeSquared = function(e) {
77320
77340
  return oe.typeOf.object("cartesian", e), e.x * e.x + e.y * e.y + e.z * e.z;
77321
77341
  };
77322
- de.magnitude = function(e) {
77323
- return Math.sqrt(de.magnitudeSquared(e));
77342
+ fe.magnitude = function(e) {
77343
+ return Math.sqrt(fe.magnitudeSquared(e));
77324
77344
  };
77325
- const mb = new de();
77326
- de.distance = function(e, t) {
77327
- return oe.typeOf.object("left", e), oe.typeOf.object("right", t), de.subtract(e, t, mb), de.magnitude(mb);
77345
+ const mb = new fe();
77346
+ fe.distance = function(e, t) {
77347
+ return oe.typeOf.object("left", e), oe.typeOf.object("right", t), fe.subtract(e, t, mb), fe.magnitude(mb);
77328
77348
  };
77329
- de.distanceSquared = function(e, t) {
77330
- return oe.typeOf.object("left", e), oe.typeOf.object("right", t), de.subtract(e, t, mb), de.magnitudeSquared(mb);
77349
+ fe.distanceSquared = function(e, t) {
77350
+ return oe.typeOf.object("left", e), oe.typeOf.object("right", t), fe.subtract(e, t, mb), fe.magnitudeSquared(mb);
77331
77351
  };
77332
- de.normalize = function(e, t) {
77352
+ fe.normalize = function(e, t) {
77333
77353
  oe.typeOf.object("cartesian", e), oe.typeOf.object("result", t);
77334
- const n = de.magnitude(e);
77354
+ const n = fe.magnitude(e);
77335
77355
  if (t.x = e.x / n, t.y = e.y / n, t.z = e.z / n, isNaN(t.x) || isNaN(t.y) || isNaN(t.z))
77336
77356
  throw new lt("normalized result is not a number");
77337
77357
  return t;
77338
77358
  };
77339
- de.dot = function(e, t) {
77359
+ fe.dot = function(e, t) {
77340
77360
  return oe.typeOf.object("left", e), oe.typeOf.object("right", t), e.x * t.x + e.y * t.y + e.z * t.z;
77341
77361
  };
77342
- de.multiplyComponents = function(e, t, n) {
77362
+ fe.multiplyComponents = function(e, t, n) {
77343
77363
  return oe.typeOf.object("left", e), oe.typeOf.object("right", t), oe.typeOf.object("result", n), n.x = e.x * t.x, n.y = e.y * t.y, n.z = e.z * t.z, n;
77344
77364
  };
77345
- de.divideComponents = function(e, t, n) {
77365
+ fe.divideComponents = function(e, t, n) {
77346
77366
  return oe.typeOf.object("left", e), oe.typeOf.object("right", t), oe.typeOf.object("result", n), n.x = e.x / t.x, n.y = e.y / t.y, n.z = e.z / t.z, n;
77347
77367
  };
77348
- de.add = function(e, t, n) {
77368
+ fe.add = function(e, t, n) {
77349
77369
  return oe.typeOf.object("left", e), oe.typeOf.object("right", t), oe.typeOf.object("result", n), n.x = e.x + t.x, n.y = e.y + t.y, n.z = e.z + t.z, n;
77350
77370
  };
77351
- de.subtract = function(e, t, n) {
77371
+ fe.subtract = function(e, t, n) {
77352
77372
  return oe.typeOf.object("left", e), oe.typeOf.object("right", t), oe.typeOf.object("result", n), n.x = e.x - t.x, n.y = e.y - t.y, n.z = e.z - t.z, n;
77353
77373
  };
77354
- de.multiplyByScalar = function(e, t, n) {
77374
+ fe.multiplyByScalar = function(e, t, n) {
77355
77375
  return oe.typeOf.object("cartesian", e), oe.typeOf.number("scalar", t), oe.typeOf.object("result", n), n.x = e.x * t, n.y = e.y * t, n.z = e.z * t, n;
77356
77376
  };
77357
- de.divideByScalar = function(e, t, n) {
77377
+ fe.divideByScalar = function(e, t, n) {
77358
77378
  return oe.typeOf.object("cartesian", e), oe.typeOf.number("scalar", t), oe.typeOf.object("result", n), n.x = e.x / t, n.y = e.y / t, n.z = e.z / t, n;
77359
77379
  };
77360
- de.negate = function(e, t) {
77380
+ fe.negate = function(e, t) {
77361
77381
  return oe.typeOf.object("cartesian", e), oe.typeOf.object("result", t), t.x = -e.x, t.y = -e.y, t.z = -e.z, t;
77362
77382
  };
77363
- de.abs = function(e, t) {
77383
+ fe.abs = function(e, t) {
77364
77384
  return oe.typeOf.object("cartesian", e), oe.typeOf.object("result", t), t.x = Math.abs(e.x), t.y = Math.abs(e.y), t.z = Math.abs(e.z), t;
77365
77385
  };
77366
- const OL = new de();
77367
- de.lerp = function(e, t, n, i) {
77368
- return oe.typeOf.object("start", e), oe.typeOf.object("end", t), oe.typeOf.number("t", n), oe.typeOf.object("result", i), de.multiplyByScalar(t, n, OL), i = de.multiplyByScalar(e, 1 - n, i), de.add(OL, i, i);
77386
+ const OL = new fe();
77387
+ fe.lerp = function(e, t, n, i) {
77388
+ return oe.typeOf.object("start", e), oe.typeOf.object("end", t), oe.typeOf.number("t", n), oe.typeOf.object("result", i), fe.multiplyByScalar(t, n, OL), i = fe.multiplyByScalar(e, 1 - n, i), fe.add(OL, i, i);
77369
77389
  };
77370
- const fg = new de(), Lv = new de();
77371
- de.angleBetween = function(e, t) {
77372
- oe.typeOf.object("left", e), oe.typeOf.object("right", t), de.normalize(e, fg), de.normalize(t, Lv);
77373
- const n = de.dot(fg, Lv), i = de.magnitude(
77374
- de.cross(
77390
+ const fg = new fe(), Lv = new fe();
77391
+ fe.angleBetween = function(e, t) {
77392
+ oe.typeOf.object("left", e), oe.typeOf.object("right", t), fe.normalize(e, fg), fe.normalize(t, Lv);
77393
+ const n = fe.dot(fg, Lv), i = fe.magnitude(
77394
+ fe.cross(
77375
77395
  fg,
77376
77396
  Lv,
77377
77397
  fg
@@ -77379,24 +77399,24 @@ de.angleBetween = function(e, t) {
77379
77399
  );
77380
77400
  return Math.atan2(i, n);
77381
77401
  };
77382
- const bMe = new de();
77383
- de.mostOrthogonalAxis = function(e, t) {
77402
+ const bMe = new fe();
77403
+ fe.mostOrthogonalAxis = function(e, t) {
77384
77404
  oe.typeOf.object("cartesian", e), oe.typeOf.object("result", t);
77385
- const n = de.normalize(e, bMe);
77386
- return de.abs(n, n), n.x <= n.y ? n.x <= n.z ? t = de.clone(de.UNIT_X, t) : t = de.clone(de.UNIT_Z, t) : n.y <= n.z ? t = de.clone(de.UNIT_Y, t) : t = de.clone(de.UNIT_Z, t), t;
77405
+ const n = fe.normalize(e, bMe);
77406
+ return fe.abs(n, n), n.x <= n.y ? n.x <= n.z ? t = fe.clone(fe.UNIT_X, t) : t = fe.clone(fe.UNIT_Z, t) : n.y <= n.z ? t = fe.clone(fe.UNIT_Y, t) : t = fe.clone(fe.UNIT_Z, t), t;
77387
77407
  };
77388
- de.projectVector = function(e, t, n) {
77408
+ fe.projectVector = function(e, t, n) {
77389
77409
  oe.defined("a", e), oe.defined("b", t), oe.defined("result", n);
77390
- const i = de.dot(e, t) / de.dot(t, t);
77391
- return de.multiplyByScalar(t, i, n);
77410
+ const i = fe.dot(e, t) / fe.dot(t, t);
77411
+ return fe.multiplyByScalar(t, i, n);
77392
77412
  };
77393
- de.equals = function(e, t) {
77413
+ fe.equals = function(e, t) {
77394
77414
  return e === t || Ge(e) && Ge(t) && e.x === t.x && e.y === t.y && e.z === t.z;
77395
77415
  };
77396
- de.equalsArray = function(e, t, n) {
77416
+ fe.equalsArray = function(e, t, n) {
77397
77417
  return e.x === t[n] && e.y === t[n + 1] && e.z === t[n + 2];
77398
77418
  };
77399
- de.equalsEpsilon = function(e, t, n, i) {
77419
+ fe.equalsEpsilon = function(e, t, n, i) {
77400
77420
  return e === t || Ge(e) && Ge(t) && st.equalsEpsilon(
77401
77421
  e.x,
77402
77422
  t.x,
@@ -77414,31 +77434,31 @@ de.equalsEpsilon = function(e, t, n, i) {
77414
77434
  i
77415
77435
  );
77416
77436
  };
77417
- de.cross = function(e, t, n) {
77437
+ fe.cross = function(e, t, n) {
77418
77438
  oe.typeOf.object("left", e), oe.typeOf.object("right", t), oe.typeOf.object("result", n);
77419
77439
  const i = e.x, r = e.y, o = e.z, s = t.x, a = t.y, c = t.z, l = r * c - o * a, u = o * s - i * c, h = i * a - r * s;
77420
77440
  return n.x = l, n.y = u, n.z = h, n;
77421
77441
  };
77422
- de.midpoint = function(e, t, n) {
77442
+ fe.midpoint = function(e, t, n) {
77423
77443
  return oe.typeOf.object("left", e), oe.typeOf.object("right", t), oe.typeOf.object("result", n), n.x = (e.x + t.x) * 0.5, n.y = (e.y + t.y) * 0.5, n.z = (e.z + t.z) * 0.5, n;
77424
77444
  };
77425
- de.fromDegrees = function(e, t, n, i, r) {
77426
- return oe.typeOf.number("longitude", e), oe.typeOf.number("latitude", t), e = st.toRadians(e), t = st.toRadians(t), de.fromRadians(e, t, n, i, r);
77445
+ fe.fromDegrees = function(e, t, n, i, r) {
77446
+ return oe.typeOf.number("longitude", e), oe.typeOf.number("latitude", t), e = st.toRadians(e), t = st.toRadians(t), fe.fromRadians(e, t, n, i, r);
77427
77447
  };
77428
- let wo = new de(), Fu = new de();
77429
- const _Me = new de(
77448
+ let wo = new fe(), Fu = new fe();
77449
+ const _Me = new fe(
77430
77450
  6378137 * 6378137,
77431
77451
  6378137 * 6378137,
77432
77452
  6356752314245179e-9 * 6356752314245179e-9
77433
77453
  );
77434
- de.fromRadians = function(e, t, n, i, r) {
77454
+ fe.fromRadians = function(e, t, n, i, r) {
77435
77455
  oe.typeOf.number("longitude", e), oe.typeOf.number("latitude", t), n = pt(n, 0);
77436
77456
  const o = Ge(i) ? i.radiiSquared : _Me, s = Math.cos(t);
77437
- wo.x = s * Math.cos(e), wo.y = s * Math.sin(e), wo.z = Math.sin(t), wo = de.normalize(wo, wo), de.multiplyComponents(o, wo, Fu);
77438
- const a = Math.sqrt(de.dot(wo, Fu));
77439
- return Fu = de.divideByScalar(Fu, a, Fu), wo = de.multiplyByScalar(wo, n, wo), Ge(r) || (r = new de()), de.add(Fu, wo, r);
77457
+ wo.x = s * Math.cos(e), wo.y = s * Math.sin(e), wo.z = Math.sin(t), wo = fe.normalize(wo, wo), fe.multiplyComponents(o, wo, Fu);
77458
+ const a = Math.sqrt(fe.dot(wo, Fu));
77459
+ return Fu = fe.divideByScalar(Fu, a, Fu), wo = fe.multiplyByScalar(wo, n, wo), Ge(r) || (r = new fe()), fe.add(Fu, wo, r);
77440
77460
  };
77441
- de.fromDegreesArray = function(e, t, n) {
77461
+ fe.fromDegreesArray = function(e, t, n) {
77442
77462
  if (oe.defined("coordinates", e), e.length < 2 || e.length % 2 !== 0)
77443
77463
  throw new lt(
77444
77464
  "the number of coordinates must be a multiple of 2 and at least 2"
@@ -77447,7 +77467,7 @@ de.fromDegreesArray = function(e, t, n) {
77447
77467
  Ge(n) ? n.length = i / 2 : n = new Array(i / 2);
77448
77468
  for (let r = 0; r < i; r += 2) {
77449
77469
  const o = e[r], s = e[r + 1], a = r / 2;
77450
- n[a] = de.fromDegrees(
77470
+ n[a] = fe.fromDegrees(
77451
77471
  o,
77452
77472
  s,
77453
77473
  0,
@@ -77457,7 +77477,7 @@ de.fromDegreesArray = function(e, t, n) {
77457
77477
  }
77458
77478
  return n;
77459
77479
  };
77460
- de.fromRadiansArray = function(e, t, n) {
77480
+ fe.fromRadiansArray = function(e, t, n) {
77461
77481
  if (oe.defined("coordinates", e), e.length < 2 || e.length % 2 !== 0)
77462
77482
  throw new lt(
77463
77483
  "the number of coordinates must be a multiple of 2 and at least 2"
@@ -77466,7 +77486,7 @@ de.fromRadiansArray = function(e, t, n) {
77466
77486
  Ge(n) ? n.length = i / 2 : n = new Array(i / 2);
77467
77487
  for (let r = 0; r < i; r += 2) {
77468
77488
  const o = e[r], s = e[r + 1], a = r / 2;
77469
- n[a] = de.fromRadians(
77489
+ n[a] = fe.fromRadians(
77470
77490
  o,
77471
77491
  s,
77472
77492
  0,
@@ -77476,7 +77496,7 @@ de.fromRadiansArray = function(e, t, n) {
77476
77496
  }
77477
77497
  return n;
77478
77498
  };
77479
- de.fromDegreesArrayHeights = function(e, t, n) {
77499
+ fe.fromDegreesArrayHeights = function(e, t, n) {
77480
77500
  if (oe.defined("coordinates", e), e.length < 3 || e.length % 3 !== 0)
77481
77501
  throw new lt(
77482
77502
  "the number of coordinates must be a multiple of 3 and at least 3"
@@ -77485,7 +77505,7 @@ de.fromDegreesArrayHeights = function(e, t, n) {
77485
77505
  Ge(n) ? n.length = i / 3 : n = new Array(i / 3);
77486
77506
  for (let r = 0; r < i; r += 3) {
77487
77507
  const o = e[r], s = e[r + 1], a = e[r + 2], c = r / 3;
77488
- n[c] = de.fromDegrees(
77508
+ n[c] = fe.fromDegrees(
77489
77509
  o,
77490
77510
  s,
77491
77511
  a,
@@ -77495,7 +77515,7 @@ de.fromDegreesArrayHeights = function(e, t, n) {
77495
77515
  }
77496
77516
  return n;
77497
77517
  };
77498
- de.fromRadiansArrayHeights = function(e, t, n) {
77518
+ fe.fromRadiansArrayHeights = function(e, t, n) {
77499
77519
  if (oe.defined("coordinates", e), e.length < 3 || e.length % 3 !== 0)
77500
77520
  throw new lt(
77501
77521
  "the number of coordinates must be a multiple of 3 and at least 3"
@@ -77504,7 +77524,7 @@ de.fromRadiansArrayHeights = function(e, t, n) {
77504
77524
  Ge(n) ? n.length = i / 3 : n = new Array(i / 3);
77505
77525
  for (let r = 0; r < i; r += 3) {
77506
77526
  const o = e[r], s = e[r + 1], a = e[r + 2], c = r / 3;
77507
- n[c] = de.fromRadians(
77527
+ n[c] = fe.fromRadians(
77508
77528
  o,
77509
77529
  s,
77510
77530
  a,
@@ -77514,29 +77534,29 @@ de.fromRadiansArrayHeights = function(e, t, n) {
77514
77534
  }
77515
77535
  return n;
77516
77536
  };
77517
- de.ZERO = Object.freeze(new de(0, 0, 0));
77518
- de.ONE = Object.freeze(new de(1, 1, 1));
77519
- de.UNIT_X = Object.freeze(new de(1, 0, 0));
77520
- de.UNIT_Y = Object.freeze(new de(0, 1, 0));
77521
- de.UNIT_Z = Object.freeze(new de(0, 0, 1));
77522
- de.prototype.clone = function(e) {
77523
- return de.clone(this, e);
77537
+ fe.ZERO = Object.freeze(new fe(0, 0, 0));
77538
+ fe.ONE = Object.freeze(new fe(1, 1, 1));
77539
+ fe.UNIT_X = Object.freeze(new fe(1, 0, 0));
77540
+ fe.UNIT_Y = Object.freeze(new fe(0, 1, 0));
77541
+ fe.UNIT_Z = Object.freeze(new fe(0, 0, 1));
77542
+ fe.prototype.clone = function(e) {
77543
+ return fe.clone(this, e);
77524
77544
  };
77525
- de.prototype.equals = function(e) {
77526
- return de.equals(this, e);
77545
+ fe.prototype.equals = function(e) {
77546
+ return fe.equals(this, e);
77527
77547
  };
77528
- de.prototype.equalsEpsilon = function(e, t, n) {
77529
- return de.equalsEpsilon(
77548
+ fe.prototype.equalsEpsilon = function(e, t, n) {
77549
+ return fe.equalsEpsilon(
77530
77550
  this,
77531
77551
  e,
77532
77552
  t,
77533
77553
  n
77534
77554
  );
77535
77555
  };
77536
- de.prototype.toString = function() {
77556
+ fe.prototype.toString = function() {
77537
77557
  return `(${this.x}, ${this.y}, ${this.z})`;
77538
77558
  };
77539
- const vMe = new de(), wMe = new de();
77559
+ const vMe = new fe(), wMe = new fe();
77540
77560
  function RX(e, t, n, i, r) {
77541
77561
  if (!Ge(e))
77542
77562
  throw new lt("cartesian is required.");
@@ -77546,22 +77566,22 @@ function RX(e, t, n, i, r) {
77546
77566
  throw new lt("oneOverRadiiSquared is required.");
77547
77567
  if (!Ge(i))
77548
77568
  throw new lt("centerToleranceSquared is required.");
77549
- const o = e.x, s = e.y, a = e.z, c = t.x, l = t.y, u = t.z, h = o * o * c * c, d = s * s * l * l, f = a * a * u * u, p = h + d + f, m = Math.sqrt(1 / p), y = de.multiplyByScalar(
77569
+ const o = e.x, s = e.y, a = e.z, c = t.x, l = t.y, u = t.z, h = o * o * c * c, d = s * s * l * l, f = a * a * u * u, p = h + d + f, m = Math.sqrt(1 / p), y = fe.multiplyByScalar(
77550
77570
  e,
77551
77571
  m,
77552
77572
  vMe
77553
77573
  );
77554
77574
  if (p < i)
77555
- return isFinite(m) ? de.clone(y, r) : void 0;
77575
+ return isFinite(m) ? fe.clone(y, r) : void 0;
77556
77576
  const g = n.x, v = n.y, S = n.z, E = wMe;
77557
77577
  E.x = y.x * g * 2, E.y = y.y * v * 2, E.z = y.z * S * 2;
77558
- let C = (1 - m) * de.magnitude(e) / (0.5 * de.magnitude(E)), M = 0, G, V, P, A, X, I, x, w, R, N, k;
77578
+ let C = (1 - m) * fe.magnitude(e) / (0.5 * fe.magnitude(E)), M = 0, G, V, P, A, X, I, x, w, R, N, k;
77559
77579
  do {
77560
77580
  C -= M, P = 1 / (1 + C * g), A = 1 / (1 + C * v), X = 1 / (1 + C * S), I = P * P, x = A * A, w = X * X, R = I * P, N = x * A, k = w * X, G = h * I + d * x + f * w - 1, V = h * R * g + d * N * v + f * k * S;
77561
77581
  const D = -2 * V;
77562
77582
  M = G / D;
77563
77583
  } while (Math.abs(G) > st.EPSILON12);
77564
- return Ge(r) ? (r.x = o * P, r.y = s * A, r.z = a * X, r) : new de(
77584
+ return Ge(r) ? (r.x = o * P, r.y = s * A, r.z = a * X, r) : new fe(
77565
77585
  o * P,
77566
77586
  s * A,
77567
77587
  a * X
@@ -77576,11 +77596,11 @@ Tn.fromRadians = function(e, t, n, i) {
77576
77596
  Tn.fromDegrees = function(e, t, n, i) {
77577
77597
  return oe.typeOf.number("longitude", e), oe.typeOf.number("latitude", t), e = st.toRadians(e), t = st.toRadians(t), Tn.fromRadians(e, t, n, i);
77578
77598
  };
77579
- const xMe = new de(), SMe = new de(), TMe = new de(), EMe = new de(
77599
+ const xMe = new fe(), SMe = new fe(), TMe = new fe(), EMe = new fe(
77580
77600
  1 / 6378137,
77581
77601
  1 / 6378137,
77582
77602
  1 / 6356752314245179e-9
77583
- ), CMe = new de(
77603
+ ), CMe = new fe(
77584
77604
  1 / (6378137 * 6378137),
77585
77605
  1 / (6378137 * 6378137),
77586
77606
  1 / (6356752314245179e-9 * 6356752314245179e-9)
@@ -77595,17 +77615,17 @@ Tn.fromCartesian = function(e, t, n) {
77595
77615
  );
77596
77616
  if (!Ge(s))
77597
77617
  return;
77598
- let a = de.multiplyComponents(
77618
+ let a = fe.multiplyComponents(
77599
77619
  s,
77600
77620
  r,
77601
77621
  xMe
77602
77622
  );
77603
- a = de.normalize(a, a);
77604
- const c = de.subtract(e, s, TMe), l = Math.atan2(a.y, a.x), u = Math.asin(a.z), h = st.sign(de.dot(c, e)) * de.magnitude(c);
77623
+ a = fe.normalize(a, a);
77624
+ const c = fe.subtract(e, s, TMe), l = Math.atan2(a.y, a.x), u = Math.asin(a.z), h = st.sign(fe.dot(c, e)) * fe.magnitude(c);
77605
77625
  return Ge(n) ? (n.longitude = l, n.latitude = u, n.height = h, n) : new Tn(l, u, h);
77606
77626
  };
77607
77627
  Tn.toCartesian = function(e, t, n) {
77608
- return oe.defined("cartographic", e), de.fromRadians(
77628
+ return oe.defined("cartographic", e), fe.fromRadians(
77609
77629
  e.longitude,
77610
77630
  e.latitude,
77611
77631
  e.height,
@@ -77641,15 +77661,15 @@ Tn.prototype.toString = function() {
77641
77661
  return `(${this.longitude}, ${this.latitude}, ${this.height})`;
77642
77662
  };
77643
77663
  function IX(e, t, n, i) {
77644
- t = pt(t, 0), n = pt(n, 0), i = pt(i, 0), oe.typeOf.number.greaterThanOrEquals("x", t, 0), oe.typeOf.number.greaterThanOrEquals("y", n, 0), oe.typeOf.number.greaterThanOrEquals("z", i, 0), e._radii = new de(t, n, i), e._radiiSquared = new de(t * t, n * n, i * i), e._radiiToTheFourth = new de(
77664
+ t = pt(t, 0), n = pt(n, 0), i = pt(i, 0), oe.typeOf.number.greaterThanOrEquals("x", t, 0), oe.typeOf.number.greaterThanOrEquals("y", n, 0), oe.typeOf.number.greaterThanOrEquals("z", i, 0), e._radii = new fe(t, n, i), e._radiiSquared = new fe(t * t, n * n, i * i), e._radiiToTheFourth = new fe(
77645
77665
  t * t * t * t,
77646
77666
  n * n * n * n,
77647
77667
  i * i * i * i
77648
- ), e._oneOverRadii = new de(
77668
+ ), e._oneOverRadii = new fe(
77649
77669
  t === 0 ? 0 : 1 / t,
77650
77670
  n === 0 ? 0 : 1 / n,
77651
77671
  i === 0 ? 0 : 1 / i
77652
- ), e._oneOverRadiiSquared = new de(
77672
+ ), e._oneOverRadiiSquared = new fe(
77653
77673
  t === 0 ? 0 : 1 / (t * t),
77654
77674
  n === 0 ? 0 : 1 / (n * n),
77655
77675
  i === 0 ? 0 : 1 / (i * i)
@@ -77741,7 +77761,7 @@ Bt.clone = function(e, t) {
77741
77761
  if (!Ge(e))
77742
77762
  return;
77743
77763
  const n = e._radii;
77744
- return Ge(t) ? (de.clone(n, t._radii), de.clone(e._radiiSquared, t._radiiSquared), de.clone(e._radiiToTheFourth, t._radiiToTheFourth), de.clone(e._oneOverRadii, t._oneOverRadii), de.clone(e._oneOverRadiiSquared, t._oneOverRadiiSquared), t._minimumRadius = e._minimumRadius, t._maximumRadius = e._maximumRadius, t._centerToleranceSquared = e._centerToleranceSquared, t) : new Bt(n.x, n.y, n.z);
77764
+ return Ge(t) ? (fe.clone(n, t._radii), fe.clone(e._radiiSquared, t._radiiSquared), fe.clone(e._radiiToTheFourth, t._radiiToTheFourth), fe.clone(e._oneOverRadii, t._oneOverRadii), fe.clone(e._oneOverRadiiSquared, t._oneOverRadiiSquared), t._minimumRadius = e._minimumRadius, t._maximumRadius = e._maximumRadius, t._centerToleranceSquared = e._centerToleranceSquared, t) : new Bt(n.x, n.y, n.z);
77745
77765
  };
77746
77766
  Bt.fromCartesian3 = function(e, t) {
77747
77767
  return Ge(t) || (t = new Bt()), Ge(e) && IX(t, e.x, e.y, e.z), t;
@@ -77760,35 +77780,35 @@ Bt.MOON = Object.freeze(
77760
77780
  Bt.prototype.clone = function(e) {
77761
77781
  return Bt.clone(this, e);
77762
77782
  };
77763
- Bt.packedLength = de.packedLength;
77783
+ Bt.packedLength = fe.packedLength;
77764
77784
  Bt.pack = function(e, t, n) {
77765
- return oe.typeOf.object("value", e), oe.defined("array", t), n = pt(n, 0), de.pack(e._radii, t, n), t;
77785
+ return oe.typeOf.object("value", e), oe.defined("array", t), n = pt(n, 0), fe.pack(e._radii, t, n), t;
77766
77786
  };
77767
77787
  Bt.unpack = function(e, t, n) {
77768
77788
  oe.defined("array", e), t = pt(t, 0);
77769
- const i = de.unpack(e, t);
77789
+ const i = fe.unpack(e, t);
77770
77790
  return Bt.fromCartesian3(i, n);
77771
77791
  };
77772
- Bt.prototype.geocentricSurfaceNormal = de.normalize;
77792
+ Bt.prototype.geocentricSurfaceNormal = fe.normalize;
77773
77793
  Bt.prototype.geodeticSurfaceNormalCartographic = function(e, t) {
77774
77794
  oe.typeOf.object("cartographic", e);
77775
77795
  const n = e.longitude, i = e.latitude, r = Math.cos(i), o = r * Math.cos(n), s = r * Math.sin(n), a = Math.sin(i);
77776
- return Ge(t) || (t = new de()), t.x = o, t.y = s, t.z = a, de.normalize(t, t);
77796
+ return Ge(t) || (t = new fe()), t.x = o, t.y = s, t.z = a, fe.normalize(t, t);
77777
77797
  };
77778
77798
  Bt.prototype.geodeticSurfaceNormal = function(e, t) {
77779
- if (!de.equalsEpsilon(e, de.ZERO, st.EPSILON14))
77780
- return Ge(t) || (t = new de()), t = de.multiplyComponents(
77799
+ if (!fe.equalsEpsilon(e, fe.ZERO, st.EPSILON14))
77800
+ return Ge(t) || (t = new fe()), t = fe.multiplyComponents(
77781
77801
  e,
77782
77802
  this._oneOverRadiiSquared,
77783
77803
  t
77784
- ), de.normalize(t, t);
77804
+ ), fe.normalize(t, t);
77785
77805
  };
77786
- const IMe = new de(), MMe = new de();
77806
+ const IMe = new fe(), MMe = new fe();
77787
77807
  Bt.prototype.cartographicToCartesian = function(e, t) {
77788
77808
  const n = IMe, i = MMe;
77789
- this.geodeticSurfaceNormalCartographic(e, n), de.multiplyComponents(this._radiiSquared, n, i);
77790
- const r = Math.sqrt(de.dot(n, i));
77791
- return de.divideByScalar(i, r, i), de.multiplyByScalar(n, e.height, n), Ge(t) || (t = new de()), de.add(i, n, t);
77809
+ this.geodeticSurfaceNormalCartographic(e, n), fe.multiplyComponents(this._radiiSquared, n, i);
77810
+ const r = Math.sqrt(fe.dot(n, i));
77811
+ return fe.divideByScalar(i, r, i), fe.multiplyByScalar(n, e.height, n), Ge(t) || (t = new fe()), fe.add(i, n, t);
77792
77812
  };
77793
77813
  Bt.prototype.cartographicArrayToCartesianArray = function(e, t) {
77794
77814
  oe.defined("cartographics", e);
@@ -77798,12 +77818,12 @@ Bt.prototype.cartographicArrayToCartesianArray = function(e, t) {
77798
77818
  t[i] = this.cartographicToCartesian(e[i], t[i]);
77799
77819
  return t;
77800
77820
  };
77801
- const LMe = new de(), PMe = new de(), GMe = new de();
77821
+ const LMe = new fe(), PMe = new fe(), GMe = new fe();
77802
77822
  Bt.prototype.cartesianToCartographic = function(e, t) {
77803
77823
  const n = this.scaleToGeodeticSurface(e, PMe);
77804
77824
  if (!Ge(n))
77805
77825
  return;
77806
- const i = this.geodeticSurfaceNormal(n, LMe), r = de.subtract(e, n, GMe), o = Math.atan2(i.y, i.x), s = Math.asin(i.z), a = st.sign(de.dot(r, e)) * de.magnitude(r);
77826
+ const i = this.geodeticSurfaceNormal(n, LMe), r = fe.subtract(e, n, GMe), o = Math.atan2(i.y, i.x), s = Math.asin(i.z), a = st.sign(fe.dot(r, e)) * fe.magnitude(r);
77807
77827
  return Ge(t) ? (t.longitude = o, t.latitude = s, t.height = a, t) : new Tn(o, s, a);
77808
77828
  };
77809
77829
  Bt.prototype.cartesianArrayToCartographicArray = function(e, t) {
@@ -77824,20 +77844,20 @@ Bt.prototype.scaleToGeodeticSurface = function(e, t) {
77824
77844
  );
77825
77845
  };
77826
77846
  Bt.prototype.scaleToGeocentricSurface = function(e, t) {
77827
- oe.typeOf.object("cartesian", e), Ge(t) || (t = new de());
77847
+ oe.typeOf.object("cartesian", e), Ge(t) || (t = new fe());
77828
77848
  const n = e.x, i = e.y, r = e.z, o = this._oneOverRadiiSquared, s = 1 / Math.sqrt(
77829
77849
  n * n * o.x + i * i * o.y + r * r * o.z
77830
77850
  );
77831
- return de.multiplyByScalar(e, s, t);
77851
+ return fe.multiplyByScalar(e, s, t);
77832
77852
  };
77833
77853
  Bt.prototype.transformPositionToScaledSpace = function(e, t) {
77834
- return Ge(t) || (t = new de()), de.multiplyComponents(e, this._oneOverRadii, t);
77854
+ return Ge(t) || (t = new fe()), fe.multiplyComponents(e, this._oneOverRadii, t);
77835
77855
  };
77836
77856
  Bt.prototype.transformPositionFromScaledSpace = function(e, t) {
77837
- return Ge(t) || (t = new de()), de.multiplyComponents(e, this._radii, t);
77857
+ return Ge(t) || (t = new fe()), fe.multiplyComponents(e, this._radii, t);
77838
77858
  };
77839
77859
  Bt.prototype.equals = function(e) {
77840
- return this === e || Ge(e) && de.equals(this._radii, e._radii);
77860
+ return this === e || Ge(e) && fe.equals(this._radii, e._radii);
77841
77861
  };
77842
77862
  Bt.prototype.toString = function() {
77843
77863
  return this._radii.toString();
@@ -77853,7 +77873,7 @@ Bt.prototype.getSurfaceNormalIntersectionWithZAxis = function(e, t, n) {
77853
77873
  );
77854
77874
  oe.typeOf.number.greaterThan("Ellipsoid.radii.z", this._radii.z, 0), t = pt(t, 0);
77855
77875
  const i = this._squaredXOverSquaredZ;
77856
- if (Ge(n) || (n = new de()), n.x = 0, n.y = 0, n.z = e.z * (1 - i), !(Math.abs(n.z) >= this._radii.z - t))
77876
+ if (Ge(n) || (n = new fe()), n.x = 0, n.y = 0, n.z = e.z * (1 - i), !(Math.abs(n.z) >= this._radii.z - t))
77857
77877
  return n;
77858
77878
  };
77859
77879
  const OMe = [
@@ -78137,7 +78157,7 @@ Br.prototype.project = function(e, t) {
78137
78157
  const n = this._semimajorAxis, i = e.longitude * n, r = Br.geodeticLatitudeToMercatorAngle(
78138
78158
  e.latitude
78139
78159
  ) * n, o = e.height;
78140
- return Ge(t) ? (t.x = i, t.y = r, t.z = o, t) : new de(i, r, o);
78160
+ return Ge(t) ? (t.x = i, t.y = r, t.z = o, t) : new fe(i, r, o);
78141
78161
  };
78142
78162
  Br.prototype.unproject = function(e, t) {
78143
78163
  if (!Ge(e))
@@ -82340,10 +82360,10 @@ const Pf = class {
82340
82360
  let zX = Pf;
82341
82361
  $f = /* @__PURE__ */ new WeakMap(), // private constructor
82342
82362
  At(zX, $f, !1);
82343
- var Hs, Co, Ns, As, ep, Li, Io, bi, Xn, Mt, Xr, Mo, xr, ki, Ws, Ni, Xs, Zs, To, Us, Gl, zr, ty, fx, sh, Sc, bb, Lo, px, NX, Ch, tp, _b, Ta, yc, Ea, bc, ny, Ov, XX, np, vb, Gf, iy, In, Gn, ry, Vv, Bu, Of;
82363
+ var Hs, Co, Ns, As, ep, Li, Io, bi, Xn, Mt, Zr, Mo, xr, ki, Ws, Ni, Xs, Zs, To, Us, Gl, Nr, ty, fx, sh, Sc, bb, Lo, px, NX, Ch, tp, _b, Ta, yc, Ea, bc, ny, Ov, XX, np, vb, Gf, iy, In, Gn, ry, Vv, Bu, Of;
82344
82364
  const ZX = class {
82345
82365
  constructor(e) {
82346
- At(this, ty), At(this, px), At(this, Ta), At(this, Ea), At(this, ny), At(this, np), At(this, Gf), At(this, In), At(this, ry), At(this, Bu), At(this, Hs, void 0), At(this, Co, void 0), At(this, Ns, void 0), At(this, As, void 0), At(this, ep, void 0), ct(this, "ttl"), ct(this, "ttlResolution"), ct(this, "ttlAutopurge"), ct(this, "updateAgeOnGet"), ct(this, "updateAgeOnHas"), ct(this, "allowStale"), ct(this, "noDisposeOnSet"), ct(this, "noUpdateTTL"), ct(this, "maxEntrySize"), ct(this, "sizeCalculation"), ct(this, "noDeleteOnFetchRejection"), ct(this, "noDeleteOnStaleGet"), ct(this, "allowStaleOnFetchAbort"), ct(this, "allowStaleOnFetchRejection"), ct(this, "ignoreFetchAbort"), At(this, Li, void 0), At(this, Io, void 0), At(this, bi, void 0), At(this, Xn, void 0), At(this, Mt, void 0), At(this, Xr, void 0), At(this, Mo, void 0), At(this, xr, void 0), At(this, ki, void 0), At(this, Ws, void 0), At(this, Ni, void 0), At(this, Xs, void 0), At(this, Zs, void 0), At(this, To, void 0), At(this, Us, void 0), At(this, Gl, void 0), At(this, zr, void 0), At(this, sh, () => {
82366
+ At(this, ty), At(this, px), At(this, Ta), At(this, Ea), At(this, ny), At(this, np), At(this, Gf), At(this, In), At(this, ry), At(this, Bu), At(this, Hs, void 0), At(this, Co, void 0), At(this, Ns, void 0), At(this, As, void 0), At(this, ep, void 0), ct(this, "ttl"), ct(this, "ttlResolution"), ct(this, "ttlAutopurge"), ct(this, "updateAgeOnGet"), ct(this, "updateAgeOnHas"), ct(this, "allowStale"), ct(this, "noDisposeOnSet"), ct(this, "noUpdateTTL"), ct(this, "maxEntrySize"), ct(this, "sizeCalculation"), ct(this, "noDeleteOnFetchRejection"), ct(this, "noDeleteOnStaleGet"), ct(this, "allowStaleOnFetchAbort"), ct(this, "allowStaleOnFetchRejection"), ct(this, "ignoreFetchAbort"), At(this, Li, void 0), At(this, Io, void 0), At(this, bi, void 0), At(this, Xn, void 0), At(this, Mt, void 0), At(this, Zr, void 0), At(this, Mo, void 0), At(this, xr, void 0), At(this, ki, void 0), At(this, Ws, void 0), At(this, Ni, void 0), At(this, Xs, void 0), At(this, Zs, void 0), At(this, To, void 0), At(this, Us, void 0), At(this, Gl, void 0), At(this, Nr, void 0), At(this, sh, () => {
82347
82367
  }), At(this, Sc, () => {
82348
82368
  }), At(this, bb, () => {
82349
82369
  }), At(this, Lo, () => !1), At(this, Ch, (M) => {
@@ -82367,7 +82387,7 @@ const ZX = class {
82367
82387
  }
82368
82388
  if (m !== void 0 && typeof m != "function")
82369
82389
  throw new TypeError("fetchMethod must be a function if specified");
82370
- if (Tt(this, ep, m), Tt(this, Gl, !!m), Tt(this, bi, /* @__PURE__ */ new Map()), Tt(this, Xn, new Array(t).fill(void 0)), Tt(this, Mt, new Array(t).fill(void 0)), Tt(this, Xr, new C(t)), Tt(this, Mo, new C(t)), Tt(this, xr, 0), Tt(this, ki, 0), Tt(this, Ws, zX.create(t)), Tt(this, Li, 0), Tt(this, Io, 0), typeof c == "function" && Tt(this, Ns, c), typeof l == "function" ? (Tt(this, As, l), Tt(this, Ni, [])) : (Tt(this, As, void 0), Tt(this, Ni, void 0)), Tt(this, Us, !!ne(this, Ns)), Tt(this, zr, !!ne(this, As)), this.noDisposeOnSet = !!u, this.noUpdateTTL = !!h, this.noDeleteOnFetchRejection = !!y, this.allowStaleOnFetchRejection = !!v, this.allowStaleOnFetchAbort = !!S, this.ignoreFetchAbort = !!E, this.maxEntrySize !== 0) {
82390
+ if (Tt(this, ep, m), Tt(this, Gl, !!m), Tt(this, bi, /* @__PURE__ */ new Map()), Tt(this, Xn, new Array(t).fill(void 0)), Tt(this, Mt, new Array(t).fill(void 0)), Tt(this, Zr, new C(t)), Tt(this, Mo, new C(t)), Tt(this, xr, 0), Tt(this, ki, 0), Tt(this, Ws, zX.create(t)), Tt(this, Li, 0), Tt(this, Io, 0), typeof c == "function" && Tt(this, Ns, c), typeof l == "function" ? (Tt(this, As, l), Tt(this, Ni, [])) : (Tt(this, As, void 0), Tt(this, Ni, void 0)), Tt(this, Us, !!ne(this, Ns)), Tt(this, Nr, !!ne(this, As)), this.noDisposeOnSet = !!u, this.noUpdateTTL = !!h, this.noDeleteOnFetchRejection = !!y, this.allowStaleOnFetchRejection = !!v, this.allowStaleOnFetchAbort = !!S, this.ignoreFetchAbort = !!E, this.maxEntrySize !== 0) {
82371
82391
  if (ne(this, Co) !== 0 && !Rc(ne(this, Co)))
82372
82392
  throw new TypeError("maxSize must be a positive integer if specified");
82373
82393
  if (!Rc(this.maxEntrySize))
@@ -82404,7 +82424,7 @@ const ZX = class {
82404
82424
  keyMap: ne(e, bi),
82405
82425
  keyList: ne(e, Xn),
82406
82426
  valList: ne(e, Mt),
82407
- next: ne(e, Xr),
82427
+ next: ne(e, Zr),
82408
82428
  prev: ne(e, Mo),
82409
82429
  get head() {
82410
82430
  return ne(e, xr);
@@ -82672,7 +82692,7 @@ const ZX = class {
82672
82692
  return d && (d.set = "miss", d.maxEntrySizeExceeded = !0), this.delete(e), this;
82673
82693
  let m = ne(this, Li) === 0 ? void 0 : ne(this, bi).get(e);
82674
82694
  if (m === void 0)
82675
- m = ne(this, Li) === 0 ? ne(this, ki) : ne(this, Ws).length !== 0 ? ne(this, Ws).pop() : ne(this, Li) === ne(this, Hs) ? gt(this, np, vb).call(this, !1) : ne(this, Li), ne(this, Xn)[m] = e, ne(this, Mt)[m] = t, ne(this, bi).set(e, m), ne(this, Xr)[ne(this, ki)] = m, ne(this, Mo)[m] = ne(this, ki), Tt(this, ki, m), nx(this, Li)._++, ne(this, tp).call(this, m, p, d), d && (d.set = "add"), f = !1;
82695
+ m = ne(this, Li) === 0 ? ne(this, ki) : ne(this, Ws).length !== 0 ? ne(this, Ws).pop() : ne(this, Li) === ne(this, Hs) ? gt(this, np, vb).call(this, !1) : ne(this, Li), ne(this, Xn)[m] = e, ne(this, Mt)[m] = t, ne(this, bi).set(e, m), ne(this, Zr)[ne(this, ki)] = m, ne(this, Mo)[m] = ne(this, ki), Tt(this, ki, m), nx(this, Li)._++, ne(this, tp).call(this, m, p, d), d && (d.set = "add"), f = !1;
82676
82696
  else {
82677
82697
  gt(this, Bu, Of).call(this, m);
82678
82698
  const y = ne(this, Mt)[m];
@@ -82680,9 +82700,9 @@ const ZX = class {
82680
82700
  if (ne(this, Gl) && gt(this, In, Gn).call(this, y)) {
82681
82701
  y.__abortController.abort(new Error("replaced"));
82682
82702
  const { __staleWhileFetching: g } = y;
82683
- g !== void 0 && !u && (ne(this, Us) && ((i = ne(this, Ns)) == null || i.call(this, g, e, "set")), ne(this, zr) && ((r = ne(this, Ni)) == null || r.push([g, e, "set"])));
82703
+ g !== void 0 && !u && (ne(this, Us) && ((i = ne(this, Ns)) == null || i.call(this, g, e, "set")), ne(this, Nr) && ((r = ne(this, Ni)) == null || r.push([g, e, "set"])));
82684
82704
  } else
82685
- u || (ne(this, Us) && ((o = ne(this, Ns)) == null || o.call(this, y, e, "set")), ne(this, zr) && ((s = ne(this, Ni)) == null || s.push([y, e, "set"])));
82705
+ u || (ne(this, Us) && ((o = ne(this, Ns)) == null || o.call(this, y, e, "set")), ne(this, Nr) && ((s = ne(this, Ni)) == null || s.push([y, e, "set"])));
82686
82706
  if (ne(this, Ch).call(this, m), ne(this, tp).call(this, m, p, d), ne(this, Mt)[m] = t, d) {
82687
82707
  d.set = "replace";
82688
82708
  const g = y && gt(this, In, Gn).call(this, y) ? y.__staleWhileFetching : y;
@@ -82691,7 +82711,7 @@ const ZX = class {
82691
82711
  } else
82692
82712
  d && (d.set = "update");
82693
82713
  }
82694
- if (c !== 0 && !ne(this, To) && gt(this, ty, fx).call(this), ne(this, To) && (f || ne(this, bb).call(this, m, c, l), d && ne(this, Sc).call(this, d, m)), !u && ne(this, zr) && ne(this, Ni)) {
82714
+ if (c !== 0 && !ne(this, To) && gt(this, ty, fx).call(this), ne(this, To) && (f || ne(this, bb).call(this, m, c, l), d && ne(this, Sc).call(this, d, m)), !u && ne(this, Nr) && ne(this, Ni)) {
82695
82715
  const y = ne(this, Ni);
82696
82716
  let g;
82697
82717
  for (; g = y?.shift(); )
@@ -82715,7 +82735,7 @@ const ZX = class {
82715
82735
  return t;
82716
82736
  }
82717
82737
  } finally {
82718
- if (ne(this, zr) && ne(this, Ni)) {
82738
+ if (ne(this, Nr) && ne(this, Ni)) {
82719
82739
  const t = ne(this, Ni);
82720
82740
  let n;
82721
82741
  for (; n = t?.shift(); )
@@ -82851,20 +82871,20 @@ const ZX = class {
82851
82871
  else {
82852
82872
  ne(this, Ch).call(this, s);
82853
82873
  const a = ne(this, Mt)[s];
82854
- if (gt(this, In, Gn).call(this, a) ? a.__abortController.abort(new Error("deleted")) : (ne(this, Us) || ne(this, zr)) && (ne(this, Us) && ((t = ne(this, Ns)) == null || t.call(this, a, e, "delete")), ne(this, zr) && ((n = ne(this, Ni)) == null || n.push([a, e, "delete"]))), ne(this, bi).delete(e), ne(this, Xn)[s] = void 0, ne(this, Mt)[s] = void 0, s === ne(this, ki))
82874
+ if (gt(this, In, Gn).call(this, a) ? a.__abortController.abort(new Error("deleted")) : (ne(this, Us) || ne(this, Nr)) && (ne(this, Us) && ((t = ne(this, Ns)) == null || t.call(this, a, e, "delete")), ne(this, Nr) && ((n = ne(this, Ni)) == null || n.push([a, e, "delete"]))), ne(this, bi).delete(e), ne(this, Xn)[s] = void 0, ne(this, Mt)[s] = void 0, s === ne(this, ki))
82855
82875
  Tt(this, ki, ne(this, Mo)[s]);
82856
82876
  else if (s === ne(this, xr))
82857
- Tt(this, xr, ne(this, Xr)[s]);
82877
+ Tt(this, xr, ne(this, Zr)[s]);
82858
82878
  else {
82859
82879
  const c = ne(this, Mo)[s];
82860
- ne(this, Xr)[c] = ne(this, Xr)[s];
82861
- const l = ne(this, Xr)[s];
82880
+ ne(this, Zr)[c] = ne(this, Zr)[s];
82881
+ const l = ne(this, Zr)[s];
82862
82882
  ne(this, Mo)[l] = ne(this, Mo)[s];
82863
82883
  }
82864
82884
  nx(this, Li)._--, ne(this, Ws).push(s);
82865
82885
  }
82866
82886
  }
82867
- if (ne(this, zr) && (i = ne(this, Ni)) != null && i.length) {
82887
+ if (ne(this, Nr) && (i = ne(this, Ni)) != null && i.length) {
82868
82888
  const s = ne(this, Ni);
82869
82889
  let a;
82870
82890
  for (; a = s?.shift(); )
@@ -82883,10 +82903,10 @@ const ZX = class {
82883
82903
  r.__abortController.abort(new Error("deleted"));
82884
82904
  else {
82885
82905
  const o = ne(this, Xn)[i];
82886
- ne(this, Us) && ((e = ne(this, Ns)) == null || e.call(this, r, o, "delete")), ne(this, zr) && ((t = ne(this, Ni)) == null || t.push([r, o, "delete"]));
82906
+ ne(this, Us) && ((e = ne(this, Ns)) == null || e.call(this, r, o, "delete")), ne(this, Nr) && ((t = ne(this, Ni)) == null || t.push([r, o, "delete"]));
82887
82907
  }
82888
82908
  }
82889
- if (ne(this, bi).clear(), ne(this, Mt).fill(void 0), ne(this, Xn).fill(void 0), ne(this, To) && ne(this, Zs) && (ne(this, To).fill(0), ne(this, Zs).fill(0)), ne(this, Xs) && ne(this, Xs).fill(0), Tt(this, xr, 0), Tt(this, ki, 0), ne(this, Ws).length = 0, Tt(this, Io, 0), Tt(this, Li, 0), ne(this, zr) && ne(this, Ni)) {
82909
+ if (ne(this, bi).clear(), ne(this, Mt).fill(void 0), ne(this, Xn).fill(void 0), ne(this, To) && ne(this, Zs) && (ne(this, To).fill(0), ne(this, Zs).fill(0)), ne(this, Xs) && ne(this, Xs).fill(0), Tt(this, xr, 0), Tt(this, ki, 0), ne(this, Ws).length = 0, Tt(this, Io, 0), Tt(this, Li, 0), ne(this, Nr) && ne(this, Ni)) {
82890
82910
  const i = ne(this, Ni);
82891
82911
  let r;
82892
82912
  for (; r = i?.shift(); )
@@ -82895,7 +82915,7 @@ const ZX = class {
82895
82915
  }
82896
82916
  };
82897
82917
  let NPe = ZX;
82898
- XX = Symbol.toStringTag, Hs = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), ep = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), Io = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Xs = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), Us = /* @__PURE__ */ new WeakMap(), Gl = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakMap(), ty = /* @__PURE__ */ new WeakSet(), fx = function() {
82918
+ XX = Symbol.toStringTag, Hs = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), ep = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), Io = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Xs = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), Us = /* @__PURE__ */ new WeakMap(), Gl = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), ty = /* @__PURE__ */ new WeakSet(), fx = function() {
82899
82919
  const e = new ey(ne(this, Hs)), t = new ey(ne(this, Hs));
82900
82920
  Tt(this, To, e), Tt(this, Zs, t), Tt(this, bb, (r, o, s = Eh.now()) => {
82901
82921
  if (t[r] = o !== 0 ? s : 0, e[r] = o, o !== 0 && this.ttlAutopurge) {
@@ -82970,13 +82990,13 @@ XX = Symbol.toStringTag, Hs = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ *
82970
82990
  }, Ea = /* @__PURE__ */ new WeakSet(), bc = function* ({ allowStale: e = this.allowStale } = {}) {
82971
82991
  if (ne(this, Li))
82972
82992
  for (let t = ne(this, xr); !(!gt(this, ny, Ov).call(this, t) || ((e || !ne(this, Lo).call(this, t)) && (yield t), t === ne(this, ki))); )
82973
- t = ne(this, Xr)[t];
82993
+ t = ne(this, Zr)[t];
82974
82994
  }, ny = /* @__PURE__ */ new WeakSet(), Ov = function(e) {
82975
82995
  return e !== void 0 && ne(this, bi).get(ne(this, Xn)[e]) === e;
82976
82996
  }, np = /* @__PURE__ */ new WeakSet(), vb = function(e) {
82977
82997
  var t, n;
82978
82998
  const i = ne(this, xr), r = ne(this, Xn)[i], o = ne(this, Mt)[i];
82979
- return ne(this, Gl) && gt(this, In, Gn).call(this, o) ? o.__abortController.abort(new Error("evicted")) : (ne(this, Us) || ne(this, zr)) && (ne(this, Us) && ((t = ne(this, Ns)) == null || t.call(this, o, r, "evict")), ne(this, zr) && ((n = ne(this, Ni)) == null || n.push([o, r, "evict"]))), ne(this, Ch).call(this, i), e && (ne(this, Xn)[i] = void 0, ne(this, Mt)[i] = void 0, ne(this, Ws).push(i)), ne(this, Li) === 1 ? (Tt(this, xr, Tt(this, ki, 0)), ne(this, Ws).length = 0) : Tt(this, xr, ne(this, Xr)[i]), ne(this, bi).delete(r), nx(this, Li)._--, i;
82999
+ return ne(this, Gl) && gt(this, In, Gn).call(this, o) ? o.__abortController.abort(new Error("evicted")) : (ne(this, Us) || ne(this, Nr)) && (ne(this, Us) && ((t = ne(this, Ns)) == null || t.call(this, o, r, "evict")), ne(this, Nr) && ((n = ne(this, Ni)) == null || n.push([o, r, "evict"]))), ne(this, Ch).call(this, i), e && (ne(this, Xn)[i] = void 0, ne(this, Mt)[i] = void 0, ne(this, Ws).push(i)), ne(this, Li) === 1 ? (Tt(this, xr, Tt(this, ki, 0)), ne(this, Ws).length = 0) : Tt(this, xr, ne(this, Zr)[i]), ne(this, bi).delete(r), nx(this, Li)._--, i;
82980
83000
  }, Gf = /* @__PURE__ */ new WeakSet(), iy = function(e, t, n, i) {
82981
83001
  const r = t === void 0 ? void 0 : ne(this, Mt)[t];
82982
83002
  if (gt(this, In, Gn).call(this, r))
@@ -83021,9 +83041,9 @@ XX = Symbol.toStringTag, Hs = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ *
83021
83041
  const t = e;
83022
83042
  return !!t && t instanceof Promise && t.hasOwnProperty("__staleWhileFetching") && t.__abortController instanceof yb;
83023
83043
  }, ry = /* @__PURE__ */ new WeakSet(), Vv = function(e, t) {
83024
- ne(this, Mo)[t] = e, ne(this, Xr)[e] = t;
83044
+ ne(this, Mo)[t] = e, ne(this, Zr)[e] = t;
83025
83045
  }, Bu = /* @__PURE__ */ new WeakSet(), Of = function(e) {
83026
- e !== ne(this, ki) && (e === ne(this, xr) ? Tt(this, xr, ne(this, Xr)[e]) : gt(this, ry, Vv).call(this, ne(this, Mo)[e], ne(this, Xr)[e]), gt(this, ry, Vv).call(this, ne(this, ki), e), Tt(this, ki, e));
83046
+ e !== ne(this, ki) && (e === ne(this, xr) ? Tt(this, xr, ne(this, Zr)[e]) : gt(this, ry, Vv).call(this, ne(this, Mo)[e], ne(this, Zr)[e]), gt(this, ry, Vv).call(this, ne(this, ki), e), Tt(this, ki, e));
83027
83047
  };
83028
83048
  const jL = new NPe({ max: 1e3 }), XPe = (e, t, n) => {
83029
83049
  const i = JSON.stringify(e.properties), r = jL.get(i);
@@ -85529,7 +85549,7 @@ let bx = yx;
85529
85549
  ct(bx, "maximumTasks", 50), ct(bx, "maximumTasksPerImagery", 6);
85530
85550
  const g1 = (e, t, n) => {
85531
85551
  const { hideIndicator: i } = n ?? {}, { viewer: r } = si(), o = n?.alpha;
85532
- Me(() => {
85552
+ Ie(() => {
85533
85553
  if (!e || !r) return;
85534
85554
  const s = r.imageryLayers, a = s.addImageryProvider(e);
85535
85555
  return Object.assign(a, {
@@ -85596,7 +85616,7 @@ const IOe = ({
85596
85616
  layer: n
85597
85617
  }) => {
85598
85618
  const { show: i = !0, minimumLevel: r, maximumLevel: o, credit: s } = t ?? {}, { type: a, url: c } = y1(n), [l, u] = ot();
85599
- Me(() => {
85619
+ Ie(() => {
85600
85620
  if (!e || !i || !c || a !== "tms") return;
85601
85621
  (async () => u(
85602
85622
  await cU.fromUrl(c, {
@@ -85631,7 +85651,7 @@ const OOe = Fi(
85631
85651
  GOe,
85632
85652
  (e, t) => (
85633
85653
  // In Raster component, we only use polygon, polyline and marker, so we only check polygon in layer props.
85634
- Ur(Bs(e.layer)?.polygon, Bs(t.layer)?.polygon) && Ur(Bs(e.layer)?.polyline, Bs(t.layer)?.polyline) && Ur(Bs(e.layer)?.marker, Bs(t.layer)?.marker) && Ur(eu(e.layer), eu(t.layer)) && Ur(e.property, t.property) && e.isVisible === t.isVisible && e.evalFeature === t.evalFeature && e.onComputedFeatureFetch === t.onComputedFeatureFetch
85654
+ Sr(Bs(e.layer)?.polygon, Bs(t.layer)?.polygon) && Sr(Bs(e.layer)?.polyline, Bs(t.layer)?.polyline) && Sr(Bs(e.layer)?.marker, Bs(t.layer)?.marker) && Sr(eu(e.layer), eu(t.layer)) && Sr(e.property, t.property) && e.isVisible === t.isVisible && e.evalFeature === t.evalFeature && e.onComputedFeatureFetch === t.onComputedFeatureFetch
85635
85655
  )
85636
85656
  ), VOe = {
85637
85657
  noFeature: !0
@@ -85924,7 +85944,7 @@ function NOe({
85924
85944
  R ?? x?.url,
85925
85945
  x?.time?.updateClockOnLoad ?? !0
85926
85946
  ];
85927
- }, [t, n]), { viewer: y } = si(), g = fe([]), v = fe(/* @__PURE__ */ new Set()), S = he(() => !f || f === "auto" ? GS(p) : void 0, [f, p]), E = S ? AOe[S] : f !== "auto" ? f : void 0, C = E ? zOe[E] : void 0, { requestRender: M, timelineManagerRef: G } = pi(), V = se(
85947
+ }, [t, n]), { viewer: y } = si(), g = de([]), v = de(/* @__PURE__ */ new Set()), S = he(() => !f || f === "auto" ? GS(p) : void 0, [f, p]), E = S ? AOe[S] : f !== "auto" ? f : void 0, C = E ? zOe[E] : void 0, { requestRender: M, timelineManagerRef: G } = pi(), V = se(
85928
85948
  (x) => {
85929
85949
  if (!y) return;
85930
85950
  const w = [], R = [];
@@ -85970,11 +85990,11 @@ function NOe({
85970
85990
  () => l ? rn.fromCssColorString(l) : void 0,
85971
85991
  [l]
85972
85992
  );
85973
- return Me(() => {
85993
+ return Ie(() => {
85974
85994
  y && g.current.forEach((x) => {
85975
85995
  lP(x.raw, n, z2, y.clock.currentTime);
85976
85996
  });
85977
- }, [n, y]), Me(
85997
+ }, [n, y]), Ie(
85978
85998
  () => () => {
85979
85999
  _O(() => {
85980
86000
  r?.(Array.from(v.current.values()));
@@ -86017,7 +86037,7 @@ const XOe = {
86017
86037
  const s = $T(
86018
86038
  () => e ? new m2(e.map((c) => pe.fromDegrees(c[0], c[1], c[2] ?? 0))) : void 0,
86019
86039
  [e ?? []],
86020
- Ur
86040
+ Sr
86021
86041
  ), a = he(
86022
86042
  () => ({
86023
86043
  ...Zv,
@@ -86042,11 +86062,11 @@ const XOe = {
86042
86062
  }
86043
86063
  ) });
86044
86064
  }, kOe = (e) => {
86045
- const t = fe(e);
86065
+ const t = de(e);
86046
86066
  return t.current = e, t;
86047
86067
  }, uP = (e) => {
86048
- const t = fe(e), n = se(() => t.current, []);
86049
- return Me(() => {
86068
+ const t = de(e), n = se(() => t.current, []);
86069
+ return Ie(() => {
86050
86070
  t.current = e;
86051
86071
  }, [e]), n;
86052
86072
  };
@@ -86146,12 +86166,12 @@ const DOe = [
86146
86166
  pitch: u,
86147
86167
  roll: h,
86148
86168
  disabledSelection: d
86149
- } = e || {}, { viewer: f } = si(), p = fe(!1), m = fe(!1), y = fe(void 0), [g, v] = ot(o);
86150
- Me(() => {
86169
+ } = e || {}, { viewer: f } = si(), p = de(!1), m = de(!1), y = de(void 0), [g, v] = ot(o);
86170
+ Ie(() => {
86151
86171
  n && !g && v(o);
86152
86172
  }, [g, o, n]);
86153
86173
  const [S, E] = ot({ width: s, height: a, length: c, heading: l, pitch: u, roll: h });
86154
- Me(() => {
86174
+ Ie(() => {
86155
86175
  n && !S && E({ width: s, height: a, length: c, heading: l, pitch: u, roll: h });
86156
86176
  }, [S, s, a, c, l, u, h, n]);
86157
86177
  const [C, M] = ot({
@@ -86209,7 +86229,7 @@ const DOe = [
86209
86229
  activeBox: !1,
86210
86230
  cursor: "default"
86211
86231
  })));
86212
- }, [C, G, f, d]), A = fe(0), X = se(
86232
+ }, [C, G, f, d]), A = de(0), X = se(
86213
86233
  async (K) => {
86214
86234
  if (!p.current || !f || !d) return;
86215
86235
  const F = pe.fromDegrees(g?.[0] || 0, g?.[1] || 0, g?.[2]);
@@ -86288,7 +86308,7 @@ const DOe = [
86288
86308
  });
86289
86309
  },
86290
86310
  [t, C.isEdgeClicked, C.isScalePointClicked, G]
86291
- ), w = fe(void 0), R = se(
86311
+ ), w = de(void 0), R = se(
86292
86312
  (K) => {
86293
86313
  const F = f?.scene.pick(K.endPosition);
86294
86314
  if (w.current !== F) {
@@ -86327,9 +86347,9 @@ const DOe = [
86327
86347
  },
86328
86348
  [t]
86329
86349
  ), k = he(() => new td(f?.scene.canvas), [f]);
86330
- Me(() => {
86350
+ Ie(() => {
86331
86351
  k.setInputAction(V, zt.LEFT_DOWN), k.setInputAction(R, zt.MOUSE_MOVE), k.setInputAction(P, zt.LEFT_UP);
86332
- }, [k, V, R, P]), Me(
86352
+ }, [k, V, R, P]), Ie(
86333
86353
  () => () => {
86334
86354
  requestAnimationFrame(() => {
86335
86355
  k.isDestroyed() || k.destroy();
@@ -86366,7 +86386,7 @@ const DOe = [
86366
86386
  };
86367
86387
  };
86368
86388
  function kv(e) {
86369
- if (e && "id" in e && e.id instanceof kr)
86389
+ if (e && "id" in e && e.id instanceof Wr)
86370
86390
  return Lt(e.id)?.layerId;
86371
86391
  if (e && e instanceof ta)
86372
86392
  return Lt(e.tileset)?.layerId;
@@ -86385,7 +86405,7 @@ const YOe = ({
86385
86405
  isTilesetReady: u
86386
86406
  }) => {
86387
86407
  const [h, d] = ot(0), f = he(() => i ?? 100, [i]), p = he(() => r ?? 10, [r]), [m, y] = ot(!1), { requestRender: g } = pi();
86388
- Me(() => {
86408
+ Ie(() => {
86389
86409
  (async () => {
86390
86410
  if (!a?.current || !u) return;
86391
86411
  if (!e || !t || t?.length < 2) {
@@ -86440,7 +86460,7 @@ const YOe = ({
86440
86460
  c,
86441
86461
  u,
86442
86462
  g
86443
- ]), Me(() => {
86463
+ ]), Ie(() => {
86444
86464
  l.unionClippingRegions = n === "outside";
86445
86465
  }, [l, n, e]);
86446
86466
  const v = he(
@@ -86530,7 +86550,7 @@ const YOe = ({
86530
86550
  isTilesetReady: u,
86531
86551
  useExternalStyle: h
86532
86552
  }) => {
86533
- const d = fe([]), f = fe(i), p = fe(/* @__PURE__ */ new Set()), m = i?.id || e, y = kOe(m), g = se(
86553
+ const d = de([]), f = de(i), p = de(/* @__PURE__ */ new Set()), m = i?.id || e, y = kOe(m), g = se(
86534
86554
  async (w) => {
86535
86555
  const R = f?.current?.layer;
86536
86556
  if (R?.type === "simple" && w?.feature) {
@@ -86584,8 +86604,8 @@ const YOe = ({
86584
86604
  l,
86585
86605
  y
86586
86606
  ]
86587
- ), S = fe(v);
86588
- S.current = v, Me(
86607
+ ), S = de(v);
86608
+ S.current = v, Ie(
86589
86609
  () => t.current?.tileLoad.addEventListener(
86590
86610
  (w) => S.current(w)
86591
86611
  ),
@@ -86598,17 +86618,17 @@ const YOe = ({
86598
86618
  });
86599
86619
  },
86600
86620
  [n, o, l]
86601
- ), C = fe(E);
86602
- C.current = E, Me(
86621
+ ), C = de(E);
86622
+ C.current = E, Ie(
86603
86623
  () => t.current?.tileUnload.addEventListener(
86604
86624
  (w) => C.current(w)
86605
86625
  ),
86606
86626
  [t, u]
86607
- ), Me(() => {
86627
+ ), Ie(() => {
86608
86628
  f.current = i;
86609
86629
  }, [i]);
86610
- const M = he(() => Bs(i)?.["3dtiles"], [i]), G = Pwe(M, tVe), V = l ? 0 : i?.layer._updateStyle, P = fe(V), A = fe(void 0);
86611
- Me(() => {
86630
+ const M = he(() => Bs(i)?.["3dtiles"], [i]), G = Pwe(M, tVe), V = l ? 0 : i?.layer._updateStyle, P = de(V), A = de(void 0);
86631
+ Ie(() => {
86612
86632
  A.current = Date.now();
86613
86633
  }, [G, V]);
86614
86634
  const X = se(
@@ -86637,7 +86657,7 @@ const YOe = ({
86637
86657
  },
86638
86658
  [X, V]
86639
86659
  ), { requestRender: x } = pi();
86640
- Me(() => {
86660
+ Ie(() => {
86641
86661
  (async () => {
86642
86662
  const R = Date.now();
86643
86663
  await I(R), x?.();
@@ -86655,7 +86675,7 @@ const YOe = ({
86655
86675
  onComputedFeatureFetch: c,
86656
86676
  onLayerFetch: l
86657
86677
  }) => {
86658
- const { viewer: u } = si(), h = fe(void 0), { onLayerLoad: d, updateCredits: f, customProvider: p } = pi(), m = fe(o?.id);
86678
+ const { viewer: u } = si(), h = de(void 0), { onLayerLoad: d, updateCredits: f, customProvider: p } = pi(), m = de(o?.id);
86659
86679
  m.current = o?.id;
86660
86680
  const {
86661
86681
  tileset: y,
@@ -86705,9 +86725,9 @@ const YOe = ({
86705
86725
  ge,
86706
86726
  ve
86707
86727
  ]
86708
- ), Q = fe(le);
86728
+ ), Q = de(le);
86709
86729
  Q.current = le;
86710
- const Y = fe(void 0), $ = fe(R), ce = he(() => ((!$.current?.length || !$.current?.every(
86730
+ const Y = de(void 0), $ = de(R), ce = he(() => ((!$.current?.length || !$.current?.every(
86711
86731
  (ut, Rt) => ut.normal?.x === R?.[Rt].normal?.x && ut.normal?.y === R?.[Rt].normal?.y && ut.normal?.z === R?.[Rt].normal?.z && ut.distance === R?.[Rt].distance
86712
86732
  )) && ($.current = R), $.current), [R]), be = k === "inside" ? -1 : 1, [q, ue] = ot(
86713
86733
  () => new cC({
@@ -86722,7 +86742,7 @@ const YOe = ({
86722
86742
  edgeColor: ri(v)
86723
86743
  })
86724
86744
  );
86725
- Me(
86745
+ Ie(
86726
86746
  () => () => {
86727
86747
  ue(
86728
86748
  new cC({
@@ -86741,7 +86761,7 @@ const YOe = ({
86741
86761
  []
86742
86762
  // eslint-disable-line react-hooks/exhaustive-deps
86743
86763
  );
86744
- const { drawClippingEnabled: Ie, drawClippingEdgeProps: we } = YOe({
86764
+ const { drawClippingEnabled: Me, drawClippingEdgeProps: we } = YOe({
86745
86765
  ...E?.draw,
86746
86766
  tilesetRef: h,
86747
86767
  viewer: u,
@@ -86757,12 +86777,12 @@ const YOe = ({
86757
86777
  }), o?.id && Rt && (Rt[xae] = o.id), h.current = Rt, Y.current = Rt ? le : void 0, z(!!Rt));
86758
86778
  },
86759
86779
  [e, o?.id, Ue, Ne, le]
86760
- ), Qe = fe([]), Wt = fe(C);
86780
+ ), Qe = de([]), Wt = de(C);
86761
86781
  Wt.current = C;
86762
86782
  const [Be] = ot(() => /* @__PURE__ */ new Map());
86763
- Wr(() => {
86783
+ Ur(() => {
86764
86784
  tt(!1), me(!1), Y.current !== le && (h.current = void 0, Y.current = void 0, z(!1)), Ue.records.clear(), Qe.current = [], Be.clear();
86765
- }, [le, Ue, Be]), Me(() => {
86785
+ }, [le, Ue, Be]), Ie(() => {
86766
86786
  !h.current || !Ne || !Oe || Object.assign(h.current, {
86767
86787
  onSelectFeature: (ut) => {
86768
86788
  const Rt = Lt(ut);
@@ -86789,7 +86809,7 @@ const YOe = ({
86789
86809
  isTilesetReady: Oe,
86790
86810
  useExternalStyle: !!g
86791
86811
  });
86792
- const [Ct, Yt] = ot(0), Et = fe(!1), yn = se(
86812
+ const [Ct, Yt] = ot(0), Et = de(!1), yn = se(
86793
86813
  (ut) => {
86794
86814
  Et.current || !u || B || (Et.current = !0, h4(u.scene, ut).then((Rt) => {
86795
86815
  Yt(Rt ?? 0), Et.current = !1;
@@ -86797,20 +86817,20 @@ const YOe = ({
86797
86817
  },
86798
86818
  [B, u]
86799
86819
  );
86800
- Me(() => {
86820
+ Ie(() => {
86801
86821
  if (E?.draw) return;
86802
86822
  const ut = X || (A ? [A.lng, A.lat, A.height ?? 0] : void 0), Rt = pe.fromDegrees(ut?.[0] || 0, ut?.[1] || 0, ut?.[2] || 0);
86803
86823
  (async () => {
86804
86824
  if (!h.current || !Oe)
86805
86825
  return;
86806
- const pr = h.current.clippingPlanesOriginMatrix.clone(), Pr = new pe(G || 100, P || 100, V || 100);
86826
+ const pr = h.current.clippingPlanesOriginMatrix.clone(), Gr = new pe(G || 100, P || 100, V || 100);
86807
86827
  if (!B) {
86808
- const Ji = new cO(Rt, void 0, Pr);
86828
+ const Ji = new cO(Rt, void 0, Gr);
86809
86829
  yN(Ji, !!B, Ct), Rt.x = Ji.translation.x, Rt.y = Ji.translation.y, Rt.z = Ji.translation.z;
86810
86830
  }
86811
86831
  const Ki = I && w && x ? new Xl(I, w, x) : void 0, je = Zn.multiply(
86812
86832
  Ki ? Zn.fromRotationTranslation(Mc.fromHeadingPitchRoll(Ki), Rt) : Lh.eastNorthUpToFixedFrame(Rt),
86813
- Zn.fromScale(Pr, new Zn()),
86833
+ Zn.fromScale(Gr, new Zn()),
86814
86834
  new Zn()
86815
86835
  ), Ft = Zn.inverse(pr, new Zn());
86816
86836
  Zn.multiply(Ft, je, q.modelMatrix);
@@ -86830,11 +86850,11 @@ const YOe = ({
86830
86850
  Ct,
86831
86851
  E?.draw,
86832
86852
  Oe
86833
- ]), Me(() => {
86853
+ ]), Ie(() => {
86834
86854
  E?.draw || (q.enabled = N);
86835
- }, [q, N, E?.draw]), Me(() => {
86855
+ }, [q, N, E?.draw]), Ie(() => {
86836
86856
  E?.draw || (q.unionClippingRegions = k === "outside");
86837
- }, [q, k, E?.draw]), Me(() => {
86857
+ }, [q, k, E?.draw]), Ie(() => {
86838
86858
  E?.draw || (q.removeAll(), ce?.forEach(
86839
86859
  (ut) => q.add(
86840
86860
  new zf(
@@ -86843,7 +86863,7 @@ const YOe = ({
86843
86863
  )
86844
86864
  )
86845
86865
  ));
86846
- }, [ce, q, be, E?.draw]), Me(() => {
86866
+ }, [ce, q, be, E?.draw]), Ie(() => {
86847
86867
  if (!g) {
86848
86868
  F(void 0);
86849
86869
  return;
@@ -86857,7 +86877,7 @@ const YOe = ({
86857
86877
  const Rt = await ut.json(), gi = new gO(Rt);
86858
86878
  F(gi);
86859
86879
  })();
86860
- }, [g]), Me(() => {
86880
+ }, [g]), Ie(() => {
86861
86881
  K && h.current && Oe && (h.current.style = K);
86862
86882
  }, [K, Oe]);
86863
86883
  const Ri = he(() => j !== "google-photorealistic" || !n ? null : Ee === "reearth" ? ge || W || null : (async () => {
@@ -86906,9 +86926,9 @@ const YOe = ({
86906
86926
  },
86907
86927
  [le]
86908
86928
  );
86909
- return Me(() => {
86929
+ return Ie(() => {
86910
86930
  !ke || !rt || me(!0);
86911
- }, [ke, rt]), Me(() => (f?.(), () => {
86931
+ }, [ke, rt]), Ie(() => (f?.(), () => {
86912
86932
  f?.();
86913
86933
  }), [j, f]), {
86914
86934
  tilesetKey: le,
@@ -86916,7 +86936,7 @@ const YOe = ({
86916
86936
  ref: Ye,
86917
86937
  style: K,
86918
86938
  clippingPlanes: q,
86919
- drawClippingEnabled: Ie,
86939
+ drawClippingEnabled: Me,
86920
86940
  drawClippingEdgeProps: we,
86921
86941
  builtinBoxProps: D,
86922
86942
  imageBasedLighting: ti,
@@ -87067,11 +87087,11 @@ function hVe({
87067
87087
  ),
87068
87088
  [r?.type, r?.url, r?.layers, r?.provider, r?.serviceTokens?.googleMapApiKey]
87069
87089
  ), { requestRender: h } = pi();
87070
- Me(() => {
87090
+ Ie(() => {
87071
87091
  setTimeout(() => {
87072
87092
  h?.();
87073
87093
  }, 300);
87074
- }), Me(() => () => h?.(), [h]);
87094
+ }), Ie(() => () => h?.(), [h]);
87075
87095
  const d = (p, m) => {
87076
87096
  if (!aVe(p)) return null;
87077
87097
  const y = !!i.viewerProperty?.scene?.imageBasedLighting?.sphericalHarmonicCoefficients, g = !!i.viewerProperty?.scene?.imageBasedLighting?.specularEnvironmentMaps, v = e.layer.visible !== !1 && !t && !(n?.layerId === e.id && n?.feature?.id === m?.id), S = u + Qf(
@@ -87147,7 +87167,7 @@ function fVe(e, t, n) {
87147
87167
  cartesianArray: l
87148
87168
  };
87149
87169
  }, [n?.targetWidth, n?.targetLength, i]), [o, s] = ot();
87150
- return Me(() => {
87170
+ return Ie(() => {
87151
87171
  const a = e.current?.cesiumElement;
87152
87172
  if (!a || a.isDestroyed() || !n?.targetArea || !i) return;
87153
87173
  const c = new hU(a.scene);
@@ -87172,7 +87192,7 @@ function fVe(e, t, n) {
87172
87192
  d / 2 + u
87173
87193
  );
87174
87194
  s(p);
87175
- }, [e, n, i]), Me(() => {
87195
+ }, [e, n, i]), Ie(() => {
87176
87196
  const a = e?.current?.cesiumElement, c = Oo(e?.current?.cesiumElement);
87177
87197
  !a || a.isDestroyed() || !c || !n?.enabled || !r || a.camera.setView({
87178
87198
  destination: gVe(c, r),
@@ -87249,24 +87269,24 @@ const pVe = new lO({
87249
87269
  cameraForceHorizontalRoll: o = !1,
87250
87270
  onCameraChange: s
87251
87271
  }) => {
87252
- const a = fe([]), c = se(() => {
87272
+ const a = de([]), c = se(() => {
87253
87273
  const v = e?.current?.cesiumElement;
87254
87274
  if (!v || v.isDestroyed() || !s) return;
87255
87275
  const S = Oo(v);
87256
- S && !Ur(S, n) && (a.current.push(S), a.current.length > 10 && a.current.shift(), s?.(S));
87276
+ S && !Sr(S, n) && (a.current.push(S), a.current.length > 10 && a.current.shift(), s?.(S));
87257
87277
  }, [e, n, s]), l = se(() => {
87258
87278
  c();
87259
87279
  }, [c]), u = se(() => {
87260
87280
  c();
87261
87281
  }, [c]);
87262
- Me(() => {
87282
+ Ie(() => {
87263
87283
  n && !a.current.includes(n) && (r.flyTo(n, { duration: 0 }), a.current = []);
87264
- }, [n, r]), Me(() => {
87284
+ }, [n, r]), Ie(() => {
87265
87285
  if (!e.current?.cesiumElement) return;
87266
87286
  const v = !!(i & Dn.CAMERA_MOVE), S = !!(i & Dn.CAMERA_ZOOM), E = !!(i & Dn.CAMERA_TILT), C = !!(i & Dn.CAMERA_LOOK);
87267
87287
  e.current.cesiumElement.scene.screenSpaceCameraController.enableTranslate = v, e.current.cesiumElement.scene.screenSpaceCameraController.enableRotate = v, e.current.cesiumElement.scene.screenSpaceCameraController.enableLook = C, e.current.cesiumElement.scene.screenSpaceCameraController.enableTilt = E, e.current.cesiumElement.scene.screenSpaceCameraController.enableZoom = S;
87268
87288
  }, [e, i]);
87269
- const h = fe(!1), d = nCe(
87289
+ const h = de(!1), d = nCe(
87270
87290
  () => {
87271
87291
  h.current || (h.current = !0, t?.camera?.limiter?.enabled && t?.camera?.limiter?.targetArea ? r.flyTo(t?.camera?.limiter?.targetArea, { duration: 0 }) : n && r.flyTo(n, { duration: 0 }));
87272
87292
  },
@@ -87286,7 +87306,7 @@ const pVe = new lO({
87286
87306
  },
87287
87307
  [o]
87288
87308
  );
87289
- return Me(() => {
87309
+ return Ie(() => {
87290
87310
  const v = e.current?.cesiumElement;
87291
87311
  if (v)
87292
87312
  return v.scene.preRender.addEventListener(g);
@@ -88002,7 +88022,7 @@ function mZ({
88002
88022
  }
88003
88023
  }
88004
88024
  function o9e(e, t) {
88005
- const n = fe(void 0), i = fe({
88025
+ const n = de(void 0), i = de({
88006
88026
  click: [],
88007
88027
  doubleClick: [],
88008
88028
  mouseDown: [],
@@ -88017,7 +88037,7 @@ function o9e(e, t) {
88017
88037
  mouseEnter: [],
88018
88038
  mouseLeave: [],
88019
88039
  wheel: []
88020
- }), r = fe([]), o = he(() => ({
88040
+ }), r = de([]), o = he(() => ({
88021
88041
  name: "cesium",
88022
88042
  requestRender: () => {
88023
88043
  const s = t.current?.cesiumElement;
@@ -88677,18 +88697,18 @@ const s9e = ({
88677
88697
  const o = se(() => {
88678
88698
  const a = e.current?.cesiumElement;
88679
88699
  !t?.current || !a || a.isDestroyed() || (a.scene.requestRender(), t.current === uf && (t.current = _2));
88680
- }, [e, t]), s = fe(void 0);
88681
- Me(() => {
88700
+ }, [e, t]), s = de(void 0);
88701
+ Ie(() => {
88682
88702
  s.current = o;
88683
- }, [o]), Me(() => {
88703
+ }, [o]), Ie(() => {
88684
88704
  const a = e.current?.cesiumElement;
88685
88705
  if (!(!a || a.isDestroyed()))
88686
88706
  return a.scene.postUpdate.addEventListener(() => {
88687
88707
  s.current?.();
88688
88708
  });
88689
- }, [e]), Me(() => {
88709
+ }, [e]), Ie(() => {
88690
88710
  t && (t.current = uf);
88691
- }, [r, t]), Me(() => {
88711
+ }, [r, t]), Ie(() => {
88692
88712
  const a = e.current?.cesiumElement;
88693
88713
  !a || a.isDestroyed() || t && (t.current = n || i ? wO : t.current === uf ? uf : _2);
88694
88714
  }, [e, n, i, t]);
@@ -88825,8 +88845,8 @@ const p9e = ({
88825
88845
  return i?.(u?.layerId || "", u?.featureId || "", h), !1;
88826
88846
  },
88827
88847
  [e, i]
88828
- ), s = fe(void 0);
88829
- return Me(() => {
88848
+ ), s = de(void 0);
88849
+ return Ie(() => {
88830
88850
  const a = e.current?.cesiumElement;
88831
88851
  if (!(!a || a.isDestroyed()))
88832
88852
  return s.current = new xE(a, {
@@ -88857,7 +88877,7 @@ const p9e = ({
88857
88877
  onLayerSelectWithRectMove: r,
88858
88878
  onLayerSelectWithRectEnd: o
88859
88879
  }) => {
88860
- const s = fe([0, 0]), a = fe(!1), c = fe(!1), l = se(
88880
+ const s = de([0, 0]), a = de(!1), c = de(!1), l = se(
88861
88881
  (f, p) => {
88862
88882
  if (a.current || c.current || n !== Kx.selection || !e.current?.cesiumElement || e.current.cesiumElement.isDestroyed()) return;
88863
88883
  const m = wx(e.current.cesiumElement, f) ?? {};
@@ -89143,17 +89163,17 @@ const E9e = ({
89143
89163
  ),
89144
89164
  []
89145
89165
  );
89146
- return Me(() => {
89166
+ return Ie(() => {
89147
89167
  if (!e.current?.cesiumElement || !a) return;
89148
89168
  const l = e.current.cesiumElement.scene.globe;
89149
89169
  return l.material = new Hv(), () => {
89150
89170
  l.material = void 0;
89151
89171
  };
89152
- }, [e, a]), Me(() => {
89172
+ }, [e, a]), Ie(() => {
89153
89173
  if (!e.current?.cesiumElement || !a) return;
89154
89174
  const l = e.current.cesiumElement.scene.globe;
89155
89175
  l.material instanceof Hv && (l.material.uniforms.minHeight = r ?? l.material.uniforms.minHeight, l.material.uniforms.maxHeight = i ?? l.material.uniforms.maxHeight, l.material.uniforms.logarithmic = o ?? l.material.uniforms.logarithmic);
89156
- }, [e, a, i, r, o]), Me(() => {
89176
+ }, [e, a, i, r, o]), Ie(() => {
89157
89177
  if (!e.current?.cesiumElement || !a || !s) return;
89158
89178
  const l = e.current.cesiumElement.scene.globe;
89159
89179
  l.material instanceof Hv && (l.material.uniforms.colorMap = sm(s));
@@ -89177,7 +89197,7 @@ const I9e = ({
89177
89197
  enableLighting: o,
89178
89198
  terrain: s
89179
89199
  }) => {
89180
- const a = fe(!1), { uniformMapForIBL: c, isIBLEnabled: l, shaderForIBL: u } = E9e({
89200
+ const a = de(!1), { uniformMapForIBL: c, isIBLEnabled: l, shaderForIBL: u } = E9e({
89181
89201
  sphericalHarmonicCoefficients: t,
89182
89202
  globeImageBasedLighting: i,
89183
89203
  hasVertexNormals: r,
@@ -89186,12 +89206,12 @@ const I9e = ({
89186
89206
  cesium: e,
89187
89207
  terrain: s
89188
89208
  });
89189
- Me(() => {
89209
+ Ie(() => {
89190
89210
  if (!e.current?.cesiumElement || !r) return;
89191
89211
  const m = e.current.cesiumElement.scene.globe;
89192
89212
  m.vertexShadowDarkness = n ?? m.vertexShadowDarkness;
89193
89213
  }, [e, n, r]);
89194
- const f = fe(!1), p = se(async () => {
89214
+ const f = de(!1), p = se(async () => {
89195
89215
  if (!(!e.current?.cesiumElement || !f.current) && !a.current) {
89196
89216
  a.current = !0;
89197
89217
  try {
@@ -89228,10 +89248,10 @@ const I9e = ({
89228
89248
  d,
89229
89249
  c
89230
89250
  ]);
89231
- Me(() => {
89251
+ Ie(() => {
89232
89252
  if (e.current?.cesiumElement)
89233
89253
  return e.current.cesiumElement.scene.postRender.addEventListener(p);
89234
- }, [e, p]), Me(() => {
89254
+ }, [e, p]), Ie(() => {
89235
89255
  if (!e.current?.cesiumElement || !l && !h) return;
89236
89256
  const m = e.current.cesiumElement.scene, y = m.globe;
89237
89257
  return f.current = !0, m.requestRender(), () => {
@@ -89305,7 +89325,7 @@ const I9e = ({
89305
89325
  onMount: A,
89306
89326
  onCreditsUpdate: X
89307
89327
  }) => {
89308
- const I = fe(null), x = typeof o?.cesiumIonAccessToken == "string" && o.cesiumIonAccessToken ? o.cesiumIonAccessToken : void 0, w = o9e(e, I), R = m9e({
89328
+ const I = de(null), x = typeof o?.cesiumIonAccessToken == "string" && o.cesiumIonAccessToken ? o.cesiumIonAccessToken : void 0, w = o9e(e, I), R = m9e({
89309
89329
  cesium: I,
89310
89330
  engineAPI: w,
89311
89331
  onLayerSelectWithRectStart: E,
@@ -89313,7 +89333,7 @@ const I9e = ({
89313
89333
  onLayerSelectWithRectEnd: M,
89314
89334
  featureFlags: c
89315
89335
  });
89316
- Me(() => {
89336
+ Ie(() => {
89317
89337
  const q = I?.current?.cesiumElement?.shadowMap;
89318
89338
  if (!q) return;
89319
89339
  q.softShadows = t?.scene?.shadow?.shadowMap?.softShadows ?? !1, q.darkness = t?.scene?.shadow?.shadowMap?.darkness ?? 0.3, q.size = t?.scene?.shadow?.shadowMap?.size ?? 2048, q.maximumDistance = t?.scene?.shadow?.shadowMap?.maximumDistance ?? 5e3, q.fadingEnabled = !0, q.normalOffset = !0;
@@ -89324,7 +89344,7 @@ const I9e = ({
89324
89344
  normalShading: !0,
89325
89345
  normalShadingSmooth: 0.3,
89326
89346
  depthBias: 1e-4
89327
- }, Ie = {
89347
+ }, Me = {
89328
89348
  polygonOffsetFactor: 1.1,
89329
89349
  polygonOffsetUnits: 4,
89330
89350
  normalOffsetScale: 0.1 * 100,
@@ -89339,25 +89359,25 @@ const I9e = ({
89339
89359
  normalShadingSmooth: 0.1,
89340
89360
  depthBias: 5e-4
89341
89361
  };
89342
- q._terrainBias && Object.assign(q._terrainBias, ue), q._primitiveBias && Object.assign(q._primitiveBias, Ie), q._pointBias && Object.assign(q._pointBias, we);
89362
+ q._terrainBias && Object.assign(q._terrainBias, ue), q._primitiveBias && Object.assign(q._primitiveBias, Me), q._pointBias && Object.assign(q._pointBias, we);
89343
89363
  }, [
89344
89364
  t?.scene?.shadow?.shadowMap?.softShadows,
89345
89365
  t?.scene?.shadow?.shadowMap?.darkness,
89346
89366
  t?.scene?.shadow?.shadowMap?.size,
89347
89367
  t?.scene?.shadow?.shadowMap?.maximumDistance
89348
89368
  ]);
89349
- const N = fe(void 0), k = fe(void 0);
89350
- Me(() => {
89369
+ const N = de(void 0), k = de(void 0);
89370
+ Ie(() => {
89351
89371
  const q = I.current?.cesiumElement;
89352
89372
  if (!q || q.isDestroyed() || k.current === i?.featureId && i?.featureId !== void 0)
89353
89373
  return;
89354
89374
  const ue = Lt(N.current);
89355
89375
  if (!ue?.featureId && ue?.layerId && i?.layerId && ue?.layerId === i.layerId || ue?.featureId && i?.featureId && ue?.featureId === i.featureId)
89356
89376
  return;
89357
- const Ie = Ys(q, void 0, i?.featureId) || Ys(q, i?.layerId);
89358
- if (N.current === Ie) return;
89359
- const we = Lt(Ie);
89360
- if (Ie instanceof kr && !we?.hideIndicator ? q.selectedEntity = Ie : q.selectedEntity = void 0, N.current = Ie, !Ie && i?.featureId) {
89377
+ const Me = Ys(q, void 0, i?.featureId) || Ys(q, i?.layerId);
89378
+ if (N.current === Me) return;
89379
+ const we = Lt(Me);
89380
+ if (Me instanceof Wr && !we?.hideIndicator ? q.selectedEntity = Me : q.selectedEntity = void 0, N.current = Me, !Me && i?.featureId) {
89361
89381
  const Ue = [], Ye = a?.current?.findAll(
89362
89382
  (Qe) => Qe.type === "simple" && !!Qe.data?.type && Ue.includes(Qe.data?.type)
89363
89383
  );
@@ -89375,16 +89395,16 @@ const I9e = ({
89375
89395
  }
89376
89396
  }
89377
89397
  if (!we?.unselectable) {
89378
- if (Ie && Ie instanceof ta) {
89379
- const Ue = Lt(Ie);
89398
+ if (Me && Me instanceof ta) {
89399
+ const Ue = Lt(Me);
89380
89400
  if (Ue) {
89381
- const Ye = jv(Ie);
89401
+ const Ye = jv(Me);
89382
89402
  y?.(
89383
89403
  Ue.layerId,
89384
89404
  String(Ue.featureId),
89385
89405
  Ye.length ? {
89386
89406
  defaultInfobox: {
89387
- title: Ie.getProperty("name"),
89407
+ title: Me.getProperty("name"),
89388
89408
  content: {
89389
89409
  type: "table",
89390
89410
  value: Ye
@@ -89396,16 +89416,16 @@ const I9e = ({
89396
89416
  }
89397
89417
  return;
89398
89418
  }
89399
- if (Ie) {
89419
+ if (Me) {
89400
89420
  const Ue = we?.layerId ? a?.current?.overriddenLayers().find((Ye) => Ye.id === we.layerId) ?? a?.current?.findById(we.layerId) : void 0;
89401
89421
  y?.(
89402
89422
  we?.layerId,
89403
89423
  we?.featureId,
89404
- Ie instanceof kr && (Ie.description || Ie.properties) ? {
89424
+ Me instanceof Wr && (Me.description || Me.properties) ? {
89405
89425
  defaultInfobox: {
89406
- title: Ie.name,
89426
+ title: Me.name,
89407
89427
  content: Sv(
89408
- Ie,
89428
+ Me,
89409
89429
  I.current?.cesiumElement?.clock.currentTime ?? new wn(),
89410
89430
  we?.layerId ? Ue?.infobox?.property?.defaultContent : void 0
89411
89431
  )
@@ -89435,13 +89455,13 @@ const I9e = ({
89435
89455
  terrain: t?.terrain
89436
89456
  });
89437
89457
  const B = se(
89438
- (q, ue, Ie) => {
89458
+ (q, ue, Me) => {
89439
89459
  if (w.mouseEventCallbacks[q]?.length > 0) {
89440
89460
  const we = I.current?.cesiumElement;
89441
89461
  if (!we || we.isDestroyed()) return;
89442
89462
  const Ue = wx(we, ue);
89443
89463
  if (!Ue) return;
89444
- const Ye = P9e(Ie);
89464
+ const Ye = P9e(Me);
89445
89465
  Ye && (Ue.layerId = Ye), w.mouseEventCallbacks[q].forEach((Qe) => Qe(Ue));
89446
89466
  }
89447
89467
  },
@@ -89471,18 +89491,18 @@ const I9e = ({
89471
89491
  }
89472
89492
  };
89473
89493
  return Object.keys(q).forEach((ue) => {
89474
- ue !== "wheel" && (q[ue] = (Ie, we) => {
89475
- B(ue, Ie, we);
89494
+ ue !== "wheel" && (q[ue] = (Me, we) => {
89495
+ B(ue, Me, we);
89476
89496
  });
89477
89497
  }), q;
89478
89498
  }, [B, K]), W = se(
89479
89499
  async (q, ue) => {
89480
89500
  if (F.click?.(q, ue), !(c & Dn.SINGLE_SELECTION)) return;
89481
- const Ie = I.current?.cesiumElement;
89482
- if (!Ie || Ie.isDestroyed()) return;
89501
+ const Me = I.current?.cesiumElement;
89502
+ if (!Me || Me.isDestroyed()) return;
89483
89503
  k.current = void 0;
89484
- const we = Ys(Ie, void 0, i?.featureId) || Ys(Ie, i?.layerId), Ue = Lt(we);
89485
- if ((!we || we instanceof kr && Ue?.hideIndicator) && (Ie.selectedEntity = void 0), ue && "id" in ue && ue.id instanceof kr && u4(ue.id)) {
89504
+ const we = Ys(Me, void 0, i?.featureId) || Ys(Me, i?.layerId), Ue = Lt(we);
89505
+ if ((!we || we instanceof Wr && Ue?.hideIndicator) && (Me.selectedEntity = void 0), ue && "id" in ue && ue.id instanceof Wr && u4(ue.id)) {
89486
89506
  const Ye = Lt(ue.id), Qe = Ye?.layerId ? a?.current?.overriddenLayers().find((Wt) => Wt.id === Ye.layerId) ?? a?.current?.findById(Ye.layerId) : void 0;
89487
89507
  y?.(
89488
89508
  Ye?.layerId,
@@ -89492,12 +89512,12 @@ const I9e = ({
89492
89512
  title: Qe?.title ?? ue.id.name,
89493
89513
  content: Sv(
89494
89514
  ue.id,
89495
- Ie.clock.currentTime ?? new wn(),
89515
+ Me.clock.currentTime ?? new wn(),
89496
89516
  Ye?.layerId ? Qe?.infobox?.property?.defaultContent : void 0
89497
89517
  )
89498
89518
  }
89499
89519
  } : void 0
89500
- ), N.current = ue.id, ue.id instanceof kr && !Ye?.hideIndicator ? Ie.selectedEntity = ue.id : Ie.selectedEntity = void 0;
89520
+ ), N.current = ue.id, ue.id instanceof Wr && !Ye?.hideIndicator ? Me.selectedEntity = ue.id : Me.selectedEntity = void 0;
89501
89521
  return;
89502
89522
  }
89503
89523
  if (ue && (ue instanceof ta || ue instanceof gm)) {
@@ -89532,7 +89552,7 @@ const I9e = ({
89532
89552
  return;
89533
89553
  }
89534
89554
  if (ue === void 0 && q.position) {
89535
- const Ye = Ie.scene, Qe = Ye.camera.getPickRay(q.position);
89555
+ const Ye = Me.scene, Qe = Ye.camera.getPickRay(q.position);
89536
89556
  if (Qe) {
89537
89557
  const Be = (await Ye.imageryLayers.pickImageryLayerFeatures(Qe, Ye))?.findLast((Yt) => {
89538
89558
  const Et = Yt?.data?.appearanceType;
@@ -89541,13 +89561,13 @@ const I9e = ({
89541
89561
  if (Ct && Be?.data?.feature?.[Ct]?.show !== !1) {
89542
89562
  const Yt = Lt(Be.imageryLayer), Et = Be.position;
89543
89563
  Et && requestAnimationFrame(() => {
89544
- Yt?.hideIndicator || (Ie.selectedEntity = new kr({
89564
+ Yt?.hideIndicator || (Me.selectedEntity = new Wr({
89545
89565
  position: vn.toCartesian(Et)
89546
89566
  }));
89547
89567
  });
89548
89568
  const yn = Yt?.layerId ? a?.current?.overriddenLayers().find((ei) => ei.id === Yt.layerId) ?? a?.current?.findById(Yt.layerId) : void 0, Ri = Sv(
89549
89569
  Be.data.feature ?? Be,
89550
- Ie.clock.currentTime ?? new wn(),
89570
+ Me.clock.currentTime ?? new wn(),
89551
89571
  Yt?.layerId ? yn?.infobox?.property?.defaultContent : void 0
89552
89572
  );
89553
89573
  k.current = Be.data.featureId, y?.(
@@ -89567,7 +89587,7 @@ const I9e = ({
89567
89587
  }
89568
89588
  }
89569
89589
  }
89570
- Ie.selectedEntity = void 0, y?.();
89590
+ Me.selectedEntity = void 0, y?.();
89571
89591
  },
89572
89592
  [
89573
89593
  y,
@@ -89578,19 +89598,19 @@ const I9e = ({
89578
89598
  i?.layerId
89579
89599
  ]
89580
89600
  );
89581
- Me(() => {
89601
+ Ie(() => {
89582
89602
  if (dVe())
89583
89603
  return pP(I.current?.cesiumElement), () => {
89584
89604
  pP(void 0);
89585
89605
  };
89586
- }, [I.current?.cesiumElement]), Me(() => {
89606
+ }, [I.current?.cesiumElement]), Ie(() => {
89587
89607
  const q = I.current?.cesiumElement;
89588
89608
  !q || q.isDestroyed() || q.scene.requestRender();
89589
89609
  });
89590
89610
  const j = se(() => {
89591
89611
  const q = I.current?.cesiumElement;
89592
89612
  !q || q.isDestroyed() || q.scene.requestRender();
89593
- }, []), J = fe(X);
89613
+ }, []), J = de(X);
89594
89614
  J.current = X;
89595
89615
  const ie = se(() => {
89596
89616
  J.current && setTimeout(() => {
@@ -89628,13 +89648,13 @@ const I9e = ({
89628
89648
  ie
89629
89649
  ]
89630
89650
  );
89631
- Me(() => {
89651
+ Ie(() => {
89632
89652
  const q = I.current?.cesiumElement?.scene.globe;
89633
89653
  if (q) {
89634
89654
  const ue = q._surface;
89635
89655
  ue && (ue.tileProvider._debug.wireframe = t?.debug?.showGlobeWireframe ?? !1);
89636
89656
  }
89637
- }, [t?.debug?.showGlobeWireframe]), Me(() => {
89657
+ }, [t?.debug?.showGlobeWireframe]), Ie(() => {
89638
89658
  n && l?.current?.commit({
89639
89659
  cmd: "SET_TIME",
89640
89660
  payload: {
@@ -89711,7 +89731,7 @@ function jv(e) {
89711
89731
  return e.getPropertyIds().reduce((t, n) => [...t, { key: n, value: e.getProperty(n) }], []);
89712
89732
  }
89713
89733
  function P9e(e) {
89714
- if (e && "id" in e && e.id instanceof kr)
89734
+ if (e && "id" in e && e.id instanceof Wr)
89715
89735
  return Lt(e.id)?.layerId;
89716
89736
  if (e && e instanceof ta)
89717
89737
  return Lt(e.tileset)?.layerId;
@@ -90510,7 +90530,7 @@ const rp = ({
90510
90530
  isExtrudedControlPoint: s,
90511
90531
  handleControlPointMouseEvent: a
90512
90532
  }) => {
90513
- const c = fe(e);
90533
+ const c = de(e);
90514
90534
  c.current = e;
90515
90535
  const l = ws(
90516
90536
  () => new jo(
@@ -90584,11 +90604,11 @@ function $9e(e, t) {
90584
90604
  const Um = Fi(
90585
90605
  no(({ entities: e, ...t }, n) => {
90586
90606
  const { viewer: i } = si(), r = i?.scene, o = i?.entities, s = e ?? o, [a, c] = ot(() => new po(t));
90587
- return Me(() => {
90607
+ return Ie(() => {
90588
90608
  c(new po(t));
90589
- }, [t.id]), Me(() => (s?.add(a), () => {
90609
+ }, [t.id]), Ie(() => (s?.add(a), () => {
90590
90610
  s?.remove(a), r?.requestRender();
90591
- }), [r, s, a]), Me(() => $9e(n, a), [n, a]), Object.assign(a, Tc(t, "id")), r?.requestRender(), null;
90611
+ }), [r, s, a]), Ie(() => $9e(n, a), [n, a]), Object.assign(a, Tc(t, "id")), r?.requestRender(), null;
90592
90612
  })
90593
90613
  ), e4e = {
90594
90614
  padding: "5px",
@@ -90598,10 +90618,10 @@ const Um = Fi(
90598
90618
  lineHeight: 1
90599
90619
  }, bZ = ({ children: e }) => /* @__PURE__ */ ae.jsx("div", { style: e4e, children: e }), _Z = Qo({});
90600
90620
  function vZ(e) {
90601
- const t = fe(null);
90621
+ const t = de(null);
90602
90622
  return t.current === null && (t.current = e()), t.current;
90603
90623
  }
90604
- const t4e = typeof window < "u", n4e = t4e ? Wr : Me, SE = /* @__PURE__ */ Qo(null);
90624
+ const t4e = typeof window < "u", n4e = t4e ? Ur : Ie, SE = /* @__PURE__ */ Qo(null);
90605
90625
  function TE(e, t) {
90606
90626
  e.indexOf(t) === -1 && e.push(t);
90607
90627
  }
@@ -90785,8 +90805,8 @@ let ly;
90785
90805
  function f4e() {
90786
90806
  ly = void 0;
90787
90807
  }
90788
- const Cr = {
90789
- now: () => (ly === void 0 && Cr.set(Zi.isProcessing || ja.useManualTiming ? Zi.timestamp : performance.now()), ly),
90808
+ const Rr = {
90809
+ now: () => (ly === void 0 && Rr.set(Zi.isProcessing || ja.useManualTiming ? Zi.timestamp : performance.now()), ly),
90790
90810
  set: (e) => {
90791
90811
  ly = e, queueMicrotask(f4e);
90792
90812
  }
@@ -90991,7 +91011,7 @@ const z4e = (e) => {
90991
91011
  * If we're processing this frame we can use the
90992
91012
  * framelocked timestamp to keep things in sync.
90993
91013
  */
90994
- now: () => Zi.isProcessing ? Zi.timestamp : Cr.now()
91014
+ now: () => Zi.isProcessing ? Zi.timestamp : Rr.now()
90995
91015
  };
90996
91016
  }, YZ = (e, t, n = 10) => {
90997
91017
  let i = "";
@@ -91322,7 +91342,7 @@ class AE extends FE {
91322
91342
  constructor(t) {
91323
91343
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
91324
91344
  const { motionValue: n } = this.options;
91325
- n && n.updatedAt !== Cr.now() && this.tick(Cr.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
91345
+ n && n.updatedAt !== Rr.now() && this.tick(Rr.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
91326
91346
  }, this.options = t, this.initAnimation(), this.play(), t.autoplay === !1 && this.pause();
91327
91347
  }
91328
91348
  initAnimation() {
@@ -91392,7 +91412,7 @@ class AE extends FE {
91392
91412
  }
91393
91413
  set speed(t) {
91394
91414
  const n = this.playbackSpeed !== t;
91395
- n && this.driver && this.updateTime(Cr.now()), this.playbackSpeed = t, n && this.driver && (this.time = /* @__PURE__ */ No(this.currentTime));
91415
+ n && this.driver && this.updateTime(Rr.now()), this.playbackSpeed = t, n && this.driver && (this.time = /* @__PURE__ */ No(this.currentTime));
91396
91416
  }
91397
91417
  play() {
91398
91418
  if (this.isStopped)
@@ -91403,7 +91423,7 @@ class AE extends FE {
91403
91423
  this.state === "finished" ? (this.updateFinished(), this.startTime = i) : this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime || (this.startTime = n ?? i), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
91404
91424
  }
91405
91425
  pause() {
91406
- this.state = "paused", this.updateTime(Cr.now()), this.holdTime = this.currentTime;
91426
+ this.state = "paused", this.updateTime(Rr.now()), this.holdTime = this.currentTime;
91407
91427
  }
91408
91428
  complete() {
91409
91429
  this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -91781,7 +91801,7 @@ class yFe extends nk {
91781
91801
  const a = new AE({
91782
91802
  ...s,
91783
91803
  autoplay: !1
91784
- }), c = Math.max(e2, Cr.now() - this.startTime), l = da(0, e2, c - e2), u = a.sample(c).value, { name: h } = this.options;
91804
+ }), c = Math.max(e2, Rr.now() - this.startTime), l = da(0, e2, c - e2), u = a.sample(c).value, { name: h } = this.options;
91785
91805
  o && h && QZ(o, h, u), n.setWithVelocity(a.sample(Math.max(0, c - l)).value, u, l), a.stop();
91786
91806
  }
91787
91807
  }
@@ -91832,7 +91852,7 @@ class TFe extends FE {
91832
91852
  constructor({ autoplay: t = !0, delay: n = 0, type: i = "keyframes", repeat: r = 0, repeatDelay: o = 0, repeatType: s = "loop", keyframes: a, name: c, motionValue: l, element: u, ...h }) {
91833
91853
  super(), this.stop = () => {
91834
91854
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
91835
- }, this.createdAt = Cr.now();
91855
+ }, this.createdAt = Rr.now();
91836
91856
  const d = {
91837
91857
  autoplay: t,
91838
91858
  delay: n,
@@ -91850,7 +91870,7 @@ class TFe extends FE {
91850
91870
  onKeyframesResolved(t, n, i, r) {
91851
91871
  this.keyframeResolver = void 0;
91852
91872
  const { name: o, type: s, velocity: a, delay: c, isHandoff: l, onUpdate: u } = i;
91853
- this.resolvedAt = Cr.now(), _Fe(t, o, s, a) || ((ja.instantAnimations || !c) && u?.(VE(t, i, n)), t[0] = t[t.length - 1], Ax(i), i.repeat = 0);
91873
+ this.resolvedAt = Rr.now(), _Fe(t, o, s, a) || ((ja.instantAnimations || !c) && u?.(VE(t, i, n)), t[0] = t[t.length - 1], Ax(i), i.repeat = 0);
91854
91874
  const d = {
91855
91875
  startTime: r ? this.resolvedAt ? this.resolvedAt - this.createdAt > SFe ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
91856
91876
  finalKeyframe: n,
@@ -92050,14 +92070,14 @@ class zFe {
92050
92070
  */
92051
92071
  constructor(t, n = {}) {
92052
92072
  this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i) => {
92053
- const r = Cr.now();
92073
+ const r = Rr.now();
92054
92074
  if (this.updatedAt !== r && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents))
92055
92075
  for (const o of this.dependents)
92056
92076
  o.dirty();
92057
92077
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
92058
92078
  }
92059
92079
  setCurrent(t) {
92060
- this.current = t, this.updatedAt = Cr.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = AFe(this.current));
92080
+ this.current = t, this.updatedAt = Rr.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = AFe(this.current));
92061
92081
  }
92062
92082
  setPrevFrameValue(t = this.current) {
92063
92083
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -92185,7 +92205,7 @@ class zFe {
92185
92205
  * @public
92186
92206
  */
92187
92207
  getVelocity() {
92188
- const t = Cr.now();
92208
+ const t = Rr.now();
92189
92209
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > HP)
92190
92210
  return 0;
92191
92211
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, HP);
@@ -92870,7 +92890,7 @@ class LAe {
92870
92890
  this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = zE, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
92871
92891
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
92872
92892
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
92873
- const f = Cr.now();
92893
+ const f = Rr.now();
92874
92894
  this.renderScheduledAt < f && (this.renderScheduledAt = f, Ln.render(this.render, !1, !0));
92875
92895
  };
92876
92896
  const { latestValues: l, renderState: u } = a;
@@ -93596,26 +93616,26 @@ function dG(e, t) {
93596
93616
  e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
93597
93617
  }
93598
93618
  const zk = 1e-4, $Ae = 1 - zk, eze = 1 + zk, Nk = 0.01, tze = 0 - Nk, nze = 0 + Nk;
93599
- function Rr(e) {
93619
+ function Ir(e) {
93600
93620
  return e.max - e.min;
93601
93621
  }
93602
93622
  function ize(e, t, n) {
93603
93623
  return Math.abs(e - t) <= n;
93604
93624
  }
93605
93625
  function fG(e, t, n, i = 0.5) {
93606
- e.origin = i, e.originPoint = jn(t.min, t.max, e.origin), e.scale = Rr(n) / Rr(t), e.translate = jn(n.min, n.max, e.origin) - e.originPoint, (e.scale >= $Ae && e.scale <= eze || isNaN(e.scale)) && (e.scale = 1), (e.translate >= tze && e.translate <= nze || isNaN(e.translate)) && (e.translate = 0);
93626
+ e.origin = i, e.originPoint = jn(t.min, t.max, e.origin), e.scale = Ir(n) / Ir(t), e.translate = jn(n.min, n.max, e.origin) - e.originPoint, (e.scale >= $Ae && e.scale <= eze || isNaN(e.scale)) && (e.scale = 1), (e.translate >= tze && e.translate <= nze || isNaN(e.translate)) && (e.translate = 0);
93607
93627
  }
93608
93628
  function sp(e, t, n, i) {
93609
93629
  fG(e.x, t.x, n.x, i ? i.originX : void 0), fG(e.y, t.y, n.y, i ? i.originY : void 0);
93610
93630
  }
93611
93631
  function pG(e, t, n) {
93612
- e.min = n.min + t.min, e.max = e.min + Rr(t);
93632
+ e.min = n.min + t.min, e.max = e.min + Ir(t);
93613
93633
  }
93614
93634
  function rze(e, t, n) {
93615
93635
  pG(e.x, t.x, n.x), pG(e.y, t.y, n.y);
93616
93636
  }
93617
93637
  function mG(e, t, n) {
93618
- e.min = t.min - n.min, e.max = e.min + Rr(t);
93638
+ e.min = t.min - n.min, e.max = e.min + Ir(t);
93619
93639
  }
93620
93640
  function Ob(e, t, n) {
93621
93641
  mG(e.x, t.x, n.x), mG(e.y, t.y, n.y);
@@ -93655,7 +93675,7 @@ function Zk(e, t) {
93655
93675
  return wG(e.x, t.x) && wG(e.y, t.y);
93656
93676
  }
93657
93677
  function xG(e) {
93658
- return Rr(e.x) / Rr(e.y);
93678
+ return Ir(e.x) / Ir(e.y);
93659
93679
  }
93660
93680
  function SG(e, t) {
93661
93681
  return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
@@ -93715,7 +93735,7 @@ class gze {
93715
93735
  }
93716
93736
  }
93717
93737
  function yze(e, t) {
93718
- const n = Cr.now(), i = ({ timestamp: r }) => {
93738
+ const n = Rr.now(), i = ({ timestamp: r }) => {
93719
93739
  const o = r - n;
93720
93740
  o >= t && (Qc(i), e(o - t));
93721
93741
  };
@@ -93917,7 +93937,7 @@ function Dk({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
93917
93937
  return;
93918
93938
  }
93919
93939
  this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Cze), this.nodes.forEach(wze), this.nodes.forEach(xze)) : this.nodes.forEach(IG), this.clearAllSnapshots();
93920
- const a = Cr.now();
93940
+ const a = Rr.now();
93921
93941
  Zi.delta = da(0, 1e3 / 60, a - Zi.timestamp), Zi.timestamp = a, Zi.isProcessing = !0, Kv.update.process(Zi), Kv.preRender.process(Zi), Kv.render.process(Zi), Zi.isProcessing = !1;
93922
93942
  }
93923
93943
  didUpdate() {
@@ -93938,7 +93958,7 @@ function Dk({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
93938
93958
  * Update measurements
93939
93959
  */
93940
93960
  updateSnapshot() {
93941
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !Rr(this.snapshot.measuredBox.x) && !Rr(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
93961
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !Ir(this.snapshot.measuredBox.x) && !Ir(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
93942
93962
  }
93943
93963
  updateLayout() {
93944
93964
  if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
@@ -94145,9 +94165,9 @@ function Dk({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
94145
94165
  if (!(!a || !c || !l)) {
94146
94166
  if (this !== s && this.layout && l && Bk(this.options.animationType, this.layout.layoutBox, l.layoutBox)) {
94147
94167
  c = this.target || _i();
94148
- const h = Rr(this.layout.layoutBox.x);
94168
+ const h = Ir(this.layout.layoutBox.x);
94149
94169
  c.x.min = s.target.x.min, c.x.max = c.x.min + h;
94150
- const d = Rr(this.layout.layoutBox.y);
94170
+ const d = Ir(this.layout.layoutBox.y);
94151
94171
  c.y.min = s.target.y.min, c.y.max = c.y.min + d;
94152
94172
  }
94153
94173
  is(a, c), dh(a, u), sp(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
@@ -94257,10 +94277,10 @@ function xze(e) {
94257
94277
  if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
94258
94278
  const { layoutBox: n, measuredBox: i } = e.layout, { animationType: r } = e.options, o = t.source !== e.layout.source;
94259
94279
  r === "size" ? ks((u) => {
94260
- const h = o ? t.measuredBox[u] : t.layoutBox[u], d = Rr(h);
94280
+ const h = o ? t.measuredBox[u] : t.layoutBox[u], d = Ir(h);
94261
94281
  h.min = n[u].min, h.max = h.min + d;
94262
94282
  }) : Bk(r, t.layoutBox, n) && ks((u) => {
94263
- const h = o ? t.measuredBox[u] : t.layoutBox[u], d = Rr(n[u]);
94283
+ const h = o ? t.measuredBox[u] : t.layoutBox[u], d = Ir(n[u]);
94264
94284
  h.max = h.min + d, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[u].max = e.relativeTarget[u].min + d);
94265
94285
  });
94266
94286
  const s = uh();
@@ -94392,7 +94412,7 @@ function zze(e = !0) {
94392
94412
  if (t === null)
94393
94413
  return [!0, null];
94394
94414
  const { isPresent: n, onExitComplete: i, register: r } = t, o = dW();
94395
- Me(() => {
94415
+ Ie(() => {
94396
94416
  if (e)
94397
94417
  return r(o);
94398
94418
  }, [e]);
@@ -94655,11 +94675,11 @@ const qk = (e) => (t, n) => {
94655
94675
  createRenderState: Qk
94656
94676
  }), tNe = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
94657
94677
  function nNe(e, t, n) {
94658
- const i = fe(n);
94678
+ const i = de(n);
94659
94679
  tO(() => {
94660
94680
  i.current = n;
94661
94681
  });
94662
- const r = fe(null);
94682
+ const r = de(null);
94663
94683
  return se((o) => {
94664
94684
  o && e.onMount?.(o);
94665
94685
  const s = i.current;
@@ -94677,7 +94697,7 @@ function Yu(e) {
94677
94697
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
94678
94698
  }
94679
94699
  function iNe(e, t, n, i, r, o) {
94680
- const { visualElement: s } = wi(v1), a = wi(Hk), c = wi(SE), l = wi(JE), u = l.reducedMotion, h = l.skipAnimations, d = fe(null), f = fe(!1);
94700
+ const { visualElement: s } = wi(v1), a = wi(Hk), c = wi(SE), l = wi(JE), u = l.reducedMotion, h = l.skipAnimations, d = de(null), f = de(!1);
94681
94701
  i = i || a.renderer, !d.current && i && (d.current = i(e, {
94682
94702
  visualState: t,
94683
94703
  parent: s,
@@ -94690,14 +94710,14 @@ function iNe(e, t, n, i, r, o) {
94690
94710
  }), f.current && d.current && (d.current.manuallyAnimateOnMount = !0));
94691
94711
  const p = d.current, m = wi($k);
94692
94712
  p && !p.projection && r && (p.type === "html" || p.type === "svg") && rNe(d.current, n, r, m);
94693
- const y = fe(!1);
94713
+ const y = de(!1);
94694
94714
  tO(() => {
94695
94715
  p && y.current && p.update(n, c);
94696
94716
  });
94697
- const g = n[ck], v = fe(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
94717
+ const g = n[ck], v = de(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
94698
94718
  return n4e(() => {
94699
94719
  f.current = !0, p && (y.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), p.scheduleRenderMicrotask(), v.current && p.animationState && p.animationState.animateChanges());
94700
- }), Me(() => {
94720
+ }), Ie(() => {
94701
94721
  p && (!v.current && p.animationState && p.animationState.animateChanges(), v.current && (queueMicrotask(() => {
94702
94722
  window.MotionHandoffMarkAsComplete?.(g);
94703
94723
  }), v.current = !1), p.enteringChildren = void 0);
@@ -95007,7 +95027,7 @@ function vNe(e, t) {
95007
95027
  }
95008
95028
  function wNe(e, t) {
95009
95029
  let n = 0.5;
95010
- const i = Rr(e), r = Rr(t);
95030
+ const i = Ir(e), r = Ir(t);
95011
95031
  return r > i ? n = /* @__PURE__ */ um(t.min, t.max - i, e.min) : i > r && (n = /* @__PURE__ */ um(e.min, e.max - r, t.min)), da(0, 1, n);
95012
95032
  }
95013
95033
  function xNe(e, t) {
@@ -95051,7 +95071,7 @@ class ENe {
95051
95071
  const { projection: S } = this.visualElement;
95052
95072
  if (S && S.layout) {
95053
95073
  const E = S.layout.layoutBox[g];
95054
- E && (v = Rr(E) * (parseFloat(v) / 100));
95074
+ E && (v = Ir(E) * (parseFloat(v) / 100));
95055
95075
  }
95056
95076
  }
95057
95077
  this.originPoint[g] = v;
@@ -95541,7 +95561,7 @@ function jG(e) {
95541
95561
  const t = vZ(() => ou(e)), { isStatic: n } = wi(JE);
95542
95562
  if (n) {
95543
95563
  const [, i] = ot(e);
95544
- Me(() => t.on("change", i), []);
95564
+ Ie(() => t.on("change", i), []);
95545
95565
  }
95546
95566
  return t;
95547
95567
  }
@@ -95593,7 +95613,7 @@ const KNe = new Is(at.WGS84, b.ZERO), $E = no(
95593
95613
  ({ position: e, children: t, ...n }, i) => {
95594
95614
  const r = ws(() => new b());
95595
95615
  e?.clone(r);
95596
- const o = jG(""), s = jG("none"), { toWindowPosition: a, getCamera: c, toXYZ: l, isPositionVisible: u } = pi(), h = fe(null);
95616
+ const o = jG(""), s = jG("none"), { toWindowPosition: a, getCamera: c, toXYZ: l, isPositionVisible: u } = pi(), h = de(null);
95597
95617
  $l(() => {
95598
95618
  if (h.current == null)
95599
95619
  return;
@@ -95638,7 +95658,7 @@ const KNe = new Is(at.WGS84, b.ZERO), $E = no(
95638
95658
  );
95639
95659
  $E.displayName = "ScreenSpaceElement";
95640
95660
  const JNe = ({ a: e, b: t, color: n }) => {
95641
- const i = fe([e, t]);
95661
+ const i = de([e, t]);
95642
95662
  i.current = [e, t];
95643
95663
  const r = ws(
95644
95664
  () => new jo(() => i.current, !1)
@@ -95731,11 +95751,11 @@ const qNe = ({
95731
95751
  disableShadow: r = !1,
95732
95752
  isEditing: o
95733
95753
  }) => {
95734
- const s = fe(t);
95754
+ const s = de(t);
95735
95755
  s.current = t;
95736
95756
  const c = ws(
95737
95757
  () => new jo(() => s.current, !1)
95738
- ), l = fe(n);
95758
+ ), l = de(n);
95739
95759
  l.current = n;
95740
95760
  const h = ws(
95741
95761
  () => new jo(() => l.current, !1)
@@ -95764,7 +95784,7 @@ const qNe = ({
95764
95784
  hierarchy: t,
95765
95785
  color: n
95766
95786
  }) => {
95767
- const i = fe(t);
95787
+ const i = de(t);
95768
95788
  i.current = t;
95769
95789
  const r = ws(
95770
95790
  () => new jo(() => i.current, !1)
@@ -95786,7 +95806,7 @@ const qNe = ({
95786
95806
  color: n,
95787
95807
  isEditing: i
95788
95808
  }) => {
95789
- const r = fe(t);
95809
+ const r = de(t);
95790
95810
  r.current = t;
95791
95811
  const o = ws(
95792
95812
  () => new jo(() => r.current, !e)
@@ -95835,7 +95855,7 @@ const qNe = ({
95835
95855
  );
95836
95856
  sW.displayName = "SurfaceAddingPoints";
95837
95857
  const tXe = ({ a: e, b: t, color: n }) => {
95838
- const i = fe([e, t]);
95858
+ const i = de([e, t]);
95839
95859
  i.current = [e, t];
95840
95860
  const r = ws(
95841
95861
  () => new jo(() => i.current, !1)
@@ -96371,8 +96391,8 @@ function cXe({ error: e, resetErrorBoundary: t }) {
96371
96391
  /* @__PURE__ */ ae.jsx("p", { children: /* @__PURE__ */ ae.jsx("button", { style: { color: "#fff" }, onClick: t, children: "Retry" }) })
96372
96392
  ] });
96373
96393
  }
96374
- const lXe = "0.0.7-alpha.66", uXe = ({ viewerProperty: e }) => {
96375
- const t = fe(e);
96394
+ const lXe = "0.0.7-alpha.68", uXe = ({ viewerProperty: e }) => {
96395
+ const t = de(e);
96376
96396
  t.current = e;
96377
96397
  const n = he(
96378
96398
  () => ({
@@ -96385,7 +96405,7 @@ const lXe = "0.0.7-alpha.66", uXe = ({ viewerProperty: e }) => {
96385
96405
  }),
96386
96406
  []
96387
96407
  );
96388
- Me(() => {
96408
+ Ie(() => {
96389
96409
  window.reearth_core = n;
96390
96410
  }, [n]);
96391
96411
  }, hXe = 768, dXe = ({ wrapperRef: e }) => {
@@ -96395,7 +96415,7 @@ const lXe = "0.0.7-alpha.66", uXe = ({ viewerProperty: e }) => {
96395
96415
  isMobile: void 0,
96396
96416
  query: t
96397
96417
  });
96398
- return Me(() => {
96418
+ return Ie(() => {
96399
96419
  const r = new ResizeObserver((o) => {
96400
96420
  const [s] = o;
96401
96421
  let a, c;
@@ -96433,9 +96453,9 @@ function pXe({
96433
96453
  onLayerDrop: c,
96434
96454
  onSketchTypeChangeProp: l
96435
96455
  }, u) {
96436
- const h = fe(null);
96456
+ const h = de(null);
96437
96457
  Ka(u, () => h.current, []);
96438
- const d = fe(null), f = dXe({
96458
+ const d = de(null), f = dXe({
96439
96459
  wrapperRef: d
96440
96460
  }), [p, m] = ot({}), [y, g] = ot(), [v, S] = ot(), E = se(
96441
96461
  async (Be, Ct, Yt, Et, yn) => {
@@ -96450,55 +96470,55 @@ function pXe({
96450
96470
  ), r?.(Be, Yt, ti, Et);
96451
96471
  },
96452
96472
  [p, r]
96453
- ), C = fe(void 0), [M, G] = qG(e, o), [V, P] = ot(!1), A = se((Be) => {
96473
+ ), C = de(void 0), [M, G] = qG(e, o), [V, P] = ot(!1), A = se((Be) => {
96454
96474
  P(!!Be);
96455
96475
  }, []), [X, I] = qG(
96456
96476
  t || "default",
96457
96477
  s
96458
96478
  );
96459
- Me(() => {
96479
+ Ie(() => {
96460
96480
  X === "default" && h?.current?.engine?.setCursor("auto");
96461
96481
  }, [X]);
96462
- const x = Kx[X ?? "default"], w = fe(void 0), R = se((Be) => {
96482
+ const x = Kx[X ?? "default"], w = de(void 0), R = se((Be) => {
96463
96483
  w.current = Be;
96464
96484
  }, []), N = se((Be) => {
96465
96485
  w.current?.(Be);
96466
- }, []), k = fe(void 0), D = se((Be) => {
96486
+ }, []), k = de(void 0), D = se((Be) => {
96467
96487
  k.current = Be;
96468
96488
  }, []), B = se((Be) => {
96469
96489
  k.current?.(Be);
96470
- }, []), K = fe(void 0), F = se((Be) => {
96490
+ }, []), K = de(void 0), F = se((Be) => {
96471
96491
  K.current = Be;
96472
96492
  }, []), W = se((Be) => {
96473
96493
  K.current?.(Be);
96474
- }, []), j = fe(void 0), J = se((Be) => {
96494
+ }, []), j = de(void 0), J = se((Be) => {
96475
96495
  j.current = Be;
96476
96496
  }, []), ie = se((Be) => {
96477
96497
  j.current?.(Be);
96478
- }, []), Ee = fe(void 0), ve = se((Be) => {
96498
+ }, []), Ee = de(void 0), ve = se((Be) => {
96479
96499
  Ee.current = Be;
96480
96500
  }, []), Ne = se((Be) => {
96481
96501
  Ee.current?.(Be);
96482
- }, []), Oe = fe(void 0), me = se((Be) => {
96502
+ }, []), Oe = de(void 0), me = se((Be) => {
96483
96503
  Oe.current = Be;
96484
96504
  }, []), ke = se((Be) => {
96485
96505
  Oe.current?.(Be);
96486
- }, []), tt = fe([]), rt = se((Be) => {
96506
+ }, []), tt = de([]), rt = se((Be) => {
96487
96507
  tt.current.push(Be);
96488
96508
  }, []), z = se((Be) => {
96489
96509
  tt.current.forEach((Ct) => Ct(Be));
96490
- }, []), ge = fe([]), le = se((Be) => {
96510
+ }, []), ge = de([]), le = se((Be) => {
96491
96511
  ge.current.push(Be);
96492
96512
  }, []), Q = se((Be) => {
96493
96513
  ge.current.forEach((Ct) => Ct(Be));
96494
- }, []), Y = fe([]), $ = se((Be) => {
96514
+ }, []), Y = de([]), $ = se((Be) => {
96495
96515
  Y.current.push(Be);
96496
96516
  }, []), ce = se(
96497
96517
  (Be) => {
96498
96518
  Y.current.forEach((Ct) => Ct(Be));
96499
96519
  },
96500
96520
  []
96501
- ), be = fe([]), q = se((Be) => {
96521
+ ), be = de([]), q = se((Be) => {
96502
96522
  be.current.push(Be);
96503
96523
  }, []), ue = se(
96504
96524
  (Be, Ct) => {
@@ -96506,10 +96526,10 @@ function pXe({
96506
96526
  },
96507
96527
  [l]
96508
96528
  );
96509
- Me(() => {
96529
+ Ie(() => {
96510
96530
  n && (h.current?.engine?.lookAtLayer(n), a?.(void 0));
96511
96531
  }, [n, a]);
96512
- const [Ie, we] = ot(!1), Ue = se(() => {
96532
+ const [Me, we] = ot(!1), Ue = se(() => {
96513
96533
  we(!0);
96514
96534
  }, []), Ye = se(
96515
96535
  (Be, Ct, Yt) => {
@@ -96570,7 +96590,7 @@ function pXe({
96570
96590
  selectedFeature: y,
96571
96591
  camera: M,
96572
96592
  featureFlags: x,
96573
- isLayerDragging: Ie,
96593
+ isLayerDragging: Me,
96574
96594
  timelineManagerRef: C,
96575
96595
  cameraForceHorizontalRoll: V,
96576
96596
  coreContextValue: Qe,
@@ -96600,7 +96620,7 @@ function qG(e, t) {
96600
96620
  },
96601
96621
  [t]
96602
96622
  );
96603
- return Me(() => {
96623
+ return Ie(() => {
96604
96624
  i(e);
96605
96625
  }, [e]), [n, r];
96606
96626
  }