gralobe 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/gralobe.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as S from "three";
2
- import { Controls as kr, Vector3 as se, MOUSE as tt, TOUCH as Qe, Quaternion as Yi, Spherical as Zi, Vector2 as de, Ray as Ur, Plane as Fr, MathUtils as Nr, Matrix4 as Tn, Object3D as zr } from "three";
3
- const Ki = { type: "change" }, Ci = { type: "start" }, Sn = { type: "end" }, Mt = new Ur(), Xi = new Fr(), $r = Math.cos(70 * Nr.DEG2RAD), Y = new se(), J = 2 * Math.PI, I = {
2
+ import { Controls as kr, Vector3 as se, MOUSE as tt, TOUCH as Qe, Quaternion as Yi, Spherical as Zi, Vector2 as de, Ray as Ur, Plane as Fr, MathUtils as zr, Matrix4 as Tn, Object3D as Nr } from "three";
3
+ const Ki = { type: "change" }, Ci = { type: "start" }, Sn = { type: "end" }, Mt = new Ur(), Xi = new Fr(), $r = Math.cos(70 * zr.DEG2RAD), Y = new se(), J = 2 * Math.PI, I = {
4
4
  NONE: -1,
5
5
  ROTATE: 0,
6
6
  DOLLY: 1,
@@ -473,7 +473,7 @@ var he = {
473
473
  duration: 0.5,
474
474
  overwrite: !1,
475
475
  delay: 0
476
- }, Pi, K, N, fe = 1e8, k = 1 / fe, oi = Math.PI * 2, es = oi / 4, ts = 0, Mn = Math.sqrt, is = Math.cos, ns = Math.sin, Z = function(e) {
476
+ }, Pi, K, z, fe = 1e8, k = 1 / fe, oi = Math.PI * 2, es = oi / 4, ts = 0, Mn = Math.sqrt, is = Math.cos, ns = Math.sin, Z = function(e) {
477
477
  return typeof e == "string";
478
478
  }, G = function(e) {
479
479
  return typeof e == "function";
@@ -490,14 +490,14 @@ var he = {
490
490
  }, Rt = function(e) {
491
491
  return G(e) || Z(e);
492
492
  }, Rn = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
493
- }, W = Array.isArray, li = /(?:-?\.?\d|\.)+/gi, On = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Je = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Wt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, In = /[+-]=-?[.\d]+/, Ln = /[^,'"\[\]\s]+/gi, rs = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, z, _e, hi, Si, ce = {}, zt = {}, kn, Un = function(e) {
494
- return (zt = at(e, ce)) && re;
493
+ }, W = Array.isArray, li = /(?:-?\.?\d|\.)+/gi, On = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Je = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Wt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, In = /[+-]=-?[.\d]+/, Ln = /[^,'"\[\]\s]+/gi, rs = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, N, _e, hi, Si, ce = {}, Nt = {}, kn, Un = function(e) {
494
+ return (Nt = at(e, ce)) && re;
495
495
  }, Di = function(e, t) {
496
496
  return console.warn("Invalid property", e, "set to", t, "Missing plugin? gsap.registerPlugin()");
497
497
  }, Et = function(e, t) {
498
498
  return !t && console.warn(e);
499
499
  }, Fn = function(e, t) {
500
- return e && (ce[e] = t) && zt && (zt[e] = t) || ce;
500
+ return e && (ce[e] = t) && Nt && (Nt[e] = t) || ce;
501
501
  }, vt = function() {
502
502
  return 0;
503
503
  }, ss = {
@@ -509,7 +509,7 @@ var he = {
509
509
  kill: !1
510
510
  }, as = {
511
511
  suppressEvents: !0
512
- }, Mi = {}, Re = [], ci = {}, Nn, ae = {}, qt = {}, Wi = 30, Ut = [], Ri = "", Oi = function(e) {
512
+ }, Mi = {}, Re = [], ci = {}, zn, ae = {}, qt = {}, Wi = 30, Ut = [], Ri = "", Oi = function(e) {
513
513
  var t = e[0], i, n;
514
514
  if (Ee(t) || G(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
515
515
  for (n = Ut.length; n-- && !Ut[n].targetTest(t); )
@@ -521,7 +521,7 @@ var he = {
521
521
  return e;
522
522
  }, He = function(e) {
523
523
  return e._gsap || Oi(me(e))[0]._gsap;
524
- }, zn = function(e, t, i) {
524
+ }, Nn = function(e, t, i) {
525
525
  return (i = e[t]) && G(i) ? e[t]() : Ai(i) && e.getAttribute && e.getAttribute(t) || i;
526
526
  }, te = function(e, t) {
527
527
  return (e = e.split(",")).forEach(t) || e;
@@ -572,7 +572,7 @@ var he = {
572
572
  n in t || (i[n] = e[n]);
573
573
  return i;
574
574
  }, yt = function(e) {
575
- var t = e.parent || z, i = e.keyframes ? ls(W(e.keyframes)) : ue;
575
+ var t = e.parent || N, i = e.keyframes ? ls(W(e.keyframes)) : ue;
576
576
  if (ee(e.inherit))
577
577
  for (; t; )
578
578
  i(e, t.vars.defaults), t = t.parent || t._dp;
@@ -627,13 +627,13 @@ var he = {
627
627
  e._zTime = -k;
628
628
  }
629
629
  }, ye = function(e, t, i, n) {
630
- return t.parent && Ie(t), t._start = j((Pe(i) ? i : i || e !== z ? pe(e, i, t) : e._time) + t._delay), t._end = j(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Vn(e, t, "_first", "_last", e._sort ? "_start" : 0), di(t) || (e._recent = t), n || Hn(e, t), e._ts < 0 && Kt(e, e._tTime), e;
630
+ return t.parent && Ie(t), t._start = j((Pe(i) ? i : i || e !== N ? pe(e, i, t) : e._time) + t._delay), t._end = j(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Vn(e, t, "_first", "_last", e._sort ? "_start" : 0), di(t) || (e._recent = t), n || Hn(e, t), e._ts < 0 && Kt(e, e._tTime), e;
631
631
  }, jn = function(e, t) {
632
632
  return (ce.ScrollTrigger || Di("scrollTrigger", t)) && ce.ScrollTrigger.create(t, e);
633
633
  }, Yn = function(e, t, i, n, r) {
634
634
  if (ki(e, t, r), !e._initted)
635
635
  return 1;
636
- if (!i && e._pt && !K && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && Nn !== oe.frame)
636
+ if (!i && e._pt && !K && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && zn !== oe.frame)
637
637
  return Re.push(e), e._lazy = [r, n], 1;
638
638
  }, ds = function a(e) {
639
639
  var t = e.parent;
@@ -702,7 +702,7 @@ var he = {
702
702
  return Z(n) && !t || Zn(n, 1) ? (r = i).push.apply(r, me(n)) : i.push(n);
703
703
  }) || i;
704
704
  }, me = function(e, t, i) {
705
- return N && !t && N.selector ? N.selector(e) : Z(e) && !i && (hi || !ht()) ? pi.call((t || Si).querySelectorAll(e), 0) : W(e) ? _s(e, i) : Zn(e) ? pi.call(e, 0) : e ? [e] : [];
705
+ return z && !t && z.selector ? z.selector(e) : Z(e) && !i && (hi || !ht()) ? pi.call((t || Si).querySelectorAll(e), 0) : W(e) ? _s(e, i) : Zn(e) ? pi.call(e, 0) : e ? [e] : [];
706
706
  }, fi = function(e) {
707
707
  return e = me(e)[0] || Et("Invalid scope") || {}, function(t) {
708
708
  var i = e.current || e.nativeElement || e;
@@ -817,7 +817,7 @@ var he = {
817
817
  for (l in t)
818
818
  Li.call(o, e, l, "get", t[l]);
819
819
  r = function(f) {
820
- return Ni(f, o) || (s ? e.p : e);
820
+ return zi(f, o) || (s ? e.p : e);
821
821
  };
822
822
  }
823
823
  }
@@ -828,9 +828,9 @@ var he = {
828
828
  o = n[s] - t, o < 0 == !!i && o && r > (o = Math.abs(o)) && (l = s, r = o);
829
829
  return l;
830
830
  }, le = function(e, t, i) {
831
- var n = e.vars, r = n[t], s = N, o = e._ctx, l, c, h;
831
+ var n = e.vars, r = n[t], s = z, o = e._ctx, l, c, h;
832
832
  if (r)
833
- return l = n[t + "Params"], c = n.callbackScope || e, i && Re.length && $t(), o && (N = o), h = l ? r.apply(c, l) : r.call(c), N = s, h;
833
+ return l = n[t + "Params"], c = n.callbackScope || e, i && Re.length && $t(), o && (z = o), h = l ? r.apply(c, l) : r.call(c), z = s, h;
834
834
  }, mt = function(e) {
835
835
  return Ie(e), e.scrollTrigger && e.scrollTrigger.kill(!!K), e.progress() < 1 && le(e, "onInterrupt"), e;
836
836
  }, et, er = [], tr = function(e) {
@@ -840,10 +840,10 @@ var he = {
840
840
  this._props = [];
841
841
  } : e, r = {
842
842
  init: vt,
843
- render: Ni,
843
+ render: zi,
844
844
  add: Li,
845
- kill: zs,
846
- modifier: Ns,
845
+ kill: Ns,
846
+ modifier: zs,
847
847
  rawVars: 0
848
848
  }, s = {
849
849
  targetTest: 0,
@@ -946,7 +946,7 @@ var he = {
946
946
  return p / (1e3 / (g || 60));
947
947
  },
948
948
  wake: function() {
949
- kn && (!hi && Ti() && (_e = hi = window, Si = _e.document || {}, ce.gsap = re, (_e.gsapVersions || (_e.gsapVersions = [])).push(re.version), Un(zt || _e.GreenSockGlobals || !_e.gsap && _e || {}), er.forEach(tr)), h = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && u.sleep(), c = h || function(g) {
949
+ kn && (!hi && Ti() && (_e = hi = window, Si = _e.document || {}, ce.gsap = re, (_e.gsapVersions || (_e.gsapVersions = [])).push(re.version), Un(Nt || _e.GreenSockGlobals || !_e.gsap && _e || {}), er.forEach(tr)), h = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && u.sleep(), c = h || function(g) {
950
950
  return setTimeout(g, s - u.time * 1e3 + 1 | 0);
951
951
  }, Ct = 1, f(2));
952
952
  },
@@ -1077,10 +1077,10 @@ te("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", functio
1077
1077
  return Ri += a + "," + a + "Params,";
1078
1078
  });
1079
1079
  var lr = function(e, t) {
1080
- this.id = ts++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : zn, this.set = t ? t.getSetter : Fi;
1080
+ this.id = ts++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : Nn, this.set = t ? t.getSetter : Fi;
1081
1081
  }, Pt = /* @__PURE__ */ (function() {
1082
1082
  function a(t) {
1083
- this.vars = t, this._delay = +t.delay || 0, (this._repeat = t.repeat === 1 / 0 ? -2 : t.repeat || 0) && (this._rDelay = t.repeatDelay || 0, this._yoyo = !!t.yoyo || !!t.yoyoEase), this._ts = 1, lt(this, +t.duration, 1, 1), this.data = t.data, N && (this._ctx = N, N.data.push(this)), Ct || oe.wake();
1083
+ this.vars = t, this._delay = +t.delay || 0, (this._repeat = t.repeat === 1 / 0 ? -2 : t.repeat || 0) && (this._rDelay = t.repeatDelay || 0, this._yoyo = !!t.yoyo || !!t.yoyoEase), this._ts = 1, lt(this, +t.duration, 1, 1), this.data = t.data, z && (this._ctx = z, z.data.push(this)), Ct || oe.wake();
1084
1084
  }
1085
1085
  var e = a.prototype;
1086
1086
  return e.delay = function(i) {
@@ -1206,7 +1206,7 @@ var q = /* @__PURE__ */ (function(a) {
1206
1206
  Dn(e, a);
1207
1207
  function e(i, n) {
1208
1208
  var r;
1209
- return i === void 0 && (i = {}), r = a.call(this, i) || this, r.labels = {}, r.smoothChildTiming = !!i.smoothChildTiming, r.autoRemoveChildren = !!i.autoRemoveChildren, r._sort = ee(i.sortChildren), z && ye(i.parent || z, we(r), n), i.reversed && r.reverse(), i.paused && r.paused(!0), i.scrollTrigger && jn(we(r), i.scrollTrigger), r;
1209
+ return i === void 0 && (i = {}), r = a.call(this, i) || this, r.labels = {}, r.smoothChildTiming = !!i.smoothChildTiming, r.autoRemoveChildren = !!i.autoRemoveChildren, r._sort = ee(i.sortChildren), N && ye(i.parent || N, we(r), n), i.reversed && r.reverse(), i.paused && r.paused(!0), i.scrollTrigger && jn(we(r), i.scrollTrigger), r;
1210
1210
  }
1211
1211
  var t = e.prototype;
1212
1212
  return t.to = function(n, r, s) {
@@ -1227,7 +1227,7 @@ var q = /* @__PURE__ */ (function(a) {
1227
1227
  return o.startAt = s, yt(o).immediateRender = ee(o.immediateRender), this.staggerTo(n, r, o, l, c, h, u);
1228
1228
  }, t.render = function(n, r, s) {
1229
1229
  var o = this._time, l = this._dirty ? this.totalDuration() : this._tDur, c = this._dur, h = n <= 0 ? 0 : j(n), u = this._zTime < 0 != n < 0 && (this._initted || !c), p, m, f, d, g, _, y, x, E, b, C, v;
1230
- if (this !== z && h > l && n >= 0 && (h = l), h !== this._tTime || s || u) {
1230
+ if (this !== N && h > l && n >= 0 && (h = l), h !== this._tTime || s || u) {
1231
1231
  if (o !== this._time && c && (h += this._time - o, n += this._time - o), p = h, E = this._start, x = this._ts, _ = !x, u && (c || (o = this._zTime), (n || !r) && (this._zTime = n)), this._repeat) {
1232
1232
  if (C = this._yoyo, g = c + this._rDelay, this._repeat < -1 && n < 0)
1233
1233
  return this.totalTime(g * 100 + n, r, s);
@@ -1377,13 +1377,13 @@ var q = /* @__PURE__ */ (function(a) {
1377
1377
  if (s._dirty) {
1378
1378
  for (u = s.parent; o; )
1379
1379
  c = o._prev, o._dirty && o.totalDuration(), h = o._start, h > l && s._sort && o._ts && !s._lock ? (s._lock = 1, ye(s, o, h - o._delay, 1)._lock = 0) : l = h, h < 0 && o._ts && (r -= h, (!u && !s._dp || u && u.smoothChildTiming) && (s._start += h / s._ts, s._time -= h, s._tTime -= h), s.shiftChildren(-h, !1, -1 / 0), l = 0), o._end > r && o._ts && (r = o._end), o = c;
1380
- lt(s, s === z && s._time > r ? s._time : r, 1, 1), s._dirty = 0;
1380
+ lt(s, s === N && s._time > r ? s._time : r, 1, 1), s._dirty = 0;
1381
1381
  }
1382
1382
  return s._tDur;
1383
1383
  }, e.updateRoot = function(n) {
1384
- if (z._ts && ($n(z, Gt(n, z)), Nn = oe.frame), oe.frame >= Wi) {
1384
+ if (N._ts && ($n(N, Gt(n, N)), zn = oe.frame), oe.frame >= Wi) {
1385
1385
  Wi += he.autoSleep || 120;
1386
- var r = z._first;
1386
+ var r = N._first;
1387
1387
  if ((!r || !r._ts) && he.autoSleep && oe._listeners.length < 2) {
1388
1388
  for (; r && !r._ts; )
1389
1389
  r = r._next;
@@ -1469,7 +1469,7 @@ var Ms = function(e, t, i, n, r, s, o) {
1469
1469
  }), R.priority && (T = 1)), !A || F)
1470
1470
  for (v in b)
1471
1471
  ae[v] && (R = hr(v, b, e, B, w, y)) ? R.priority && (T = 1) : O[v] = P = Li.call(e, w, v, "get", b[v], B, y, 0, n.stringFilter);
1472
- e._op && e._op[C] && e.kill(w, e._op[C]), x && e._pt && (Te = e, z.killTweensOf(w, O, e.globalTime(t)), U = !e.parent, Te = 0), e._pt && l && (ci[M.id] = 1);
1472
+ e._op && e._op[C] && e.kill(w, e._op[C]), x && e._pt && (Te = e, N.killTweensOf(w, O, e.globalTime(t)), U = !e.parent, Te = 0), e._pt && l && (ci[M.id] = 1);
1473
1473
  }
1474
1474
  T && mr(e), e._onInit && e._onInit(e);
1475
1475
  }
@@ -1525,7 +1525,7 @@ var H = /* @__PURE__ */ (function(a) {
1525
1525
  function e(i, n, r, s) {
1526
1526
  var o;
1527
1527
  typeof n == "number" && (r.duration = n, n = r, r = null), o = a.call(this, s ? n : yt(n)) || this;
1528
- var l = o.vars, c = l.duration, h = l.delay, u = l.immediateRender, p = l.stagger, m = l.overwrite, f = l.keyframes, d = l.defaults, g = l.scrollTrigger, _ = l.yoyoEase, y = n.parent || z, x = (W(i) || Rn(i) ? Pe(i[0]) : "length" in n) ? [i] : me(i), E, b, C, v, P, w, T, M;
1528
+ var l = o.vars, c = l.duration, h = l.delay, u = l.immediateRender, p = l.stagger, m = l.overwrite, f = l.keyframes, d = l.defaults, g = l.scrollTrigger, _ = l.yoyoEase, y = n.parent || N, x = (W(i) || Rn(i) ? Pe(i[0]) : "length" in n) ? [i] : me(i), E, b, C, v, P, w, T, M;
1529
1529
  if (o._targets = x.length ? Oi(x) : Et("GSAP target " + i + " not found. https://gsap.com", !he.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = m, f || p || Rt(c) || Rt(h)) {
1530
1530
  if (n = o.vars, E = o.timeline = new q({
1531
1531
  data: "nested",
@@ -1567,7 +1567,7 @@ var H = /* @__PURE__ */ (function(a) {
1567
1567
  c || o.duration(c = E.duration());
1568
1568
  } else
1569
1569
  o.timeline = 0;
1570
- return m === !0 && !Pi && (Te = we(o), z.killTweensOf(x), Te = 0), ye(y, we(o), r), n.reversed && o.reverse(), n.paused && o.paused(!0), (u || !c && !f && o._start === j(y._time) && ee(u) && us(we(o)) && y.data !== "nested") && (o._tTime = -k, o.render(Math.max(0, -h) || 0)), g && jn(we(o), g), o;
1570
+ return m === !0 && !Pi && (Te = we(o), N.killTweensOf(x), Te = 0), ye(y, we(o), r), n.reversed && o.reverse(), n.paused && o.paused(!0), (u || !c && !f && o._start === j(y._time) && ee(u) && us(we(o)) && y.data !== "nested") && (o._tTime = -k, o.render(Math.max(0, -h) || 0)), g && jn(we(o), g), o;
1571
1571
  }
1572
1572
  var t = e.prototype;
1573
1573
  return t.render = function(n, r, s) {
@@ -1645,7 +1645,7 @@ var H = /* @__PURE__ */ (function(a) {
1645
1645
  }, e.set = function(n, r) {
1646
1646
  return r.duration = 0, r.repeatDelay || (r.repeat = 0), new e(n, r);
1647
1647
  }, e.killTweensOf = function(n, r, s) {
1648
- return z.killTweensOf(n, r, s);
1648
+ return N.killTweensOf(n, r, s);
1649
1649
  }, e;
1650
1650
  })(Pt);
1651
1651
  ue(H.prototype, {
@@ -1687,13 +1687,13 @@ var Ui = function(e, t, i) {
1687
1687
  n += t.c;
1688
1688
  }
1689
1689
  t.set(t.t, t.p, n, t);
1690
- }, Ni = function(e, t) {
1690
+ }, zi = function(e, t) {
1691
1691
  for (var i = t._pt; i; )
1692
1692
  i.r(e, i.d), i = i._next;
1693
- }, Ns = function(e, t, i, n) {
1693
+ }, zs = function(e, t, i, n) {
1694
1694
  for (var r = this._pt, s; r; )
1695
1695
  s = r._next, r.p === n && r.modifier(e, t, i), r = s;
1696
- }, zs = function(e) {
1696
+ }, Ns = function(e) {
1697
1697
  for (var t = this._pt, i, n; t; )
1698
1698
  n = t._next, t.p === e && !t.op || t.op === e ? Yt(this, t, "_pt") : t.dep || (i = 1), t = n;
1699
1699
  return !i;
@@ -1720,7 +1720,7 @@ te(Ri + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediat
1720
1720
  });
1721
1721
  ce.TweenMax = ce.TweenLite = H;
1722
1722
  ce.TimelineLite = ce.TimelineMax = q;
1723
- z = new q({
1723
+ N = new q({
1724
1724
  sortChildren: !1,
1725
1725
  defaults: st,
1726
1726
  autoRemoveChildren: !0,
@@ -1752,15 +1752,15 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1752
1752
  return e.add = function(i, n, r) {
1753
1753
  G(i) && (r = n, n = i, i = G);
1754
1754
  var s = this, o = function() {
1755
- var c = N, h = s.selector, u;
1756
- return c && c !== s && c.data.push(s), r && (s.selector = fi(r)), N = s, u = n.apply(s, arguments), G(u) && s._r.push(u), N = c, s.selector = h, s.isReverted = !1, u;
1755
+ var c = z, h = s.selector, u;
1756
+ return c && c !== s && c.data.push(s), r && (s.selector = fi(r)), z = s, u = n.apply(s, arguments), G(u) && s._r.push(u), z = c, s.selector = h, s.isReverted = !1, u;
1757
1757
  };
1758
1758
  return s.last = o, i === G ? o(s, function(l) {
1759
1759
  return s.add(null, l);
1760
1760
  }) : i ? s[i] = o : o;
1761
1761
  }, e.ignore = function(i) {
1762
- var n = N;
1763
- N = null, i(this), N = n;
1762
+ var n = z;
1763
+ z = null, i(this), z = n;
1764
1764
  }, e.getTweens = function() {
1765
1765
  var i = [];
1766
1766
  return this.data.forEach(function(n) {
@@ -1799,7 +1799,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1799
1799
  }, a;
1800
1800
  })(), Vs = /* @__PURE__ */ (function() {
1801
1801
  function a(t) {
1802
- this.contexts = [], this.scope = t, N && N.data.push(this);
1802
+ this.contexts = [], this.scope = t, z && z.data.push(this);
1803
1803
  }
1804
1804
  var e = a.prototype;
1805
1805
  return e.add = function(i, n, r) {
@@ -1807,7 +1807,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1807
1807
  matches: i
1808
1808
  });
1809
1809
  var s = new gr(0, r || this.scope), o = s.conditions = {}, l, c, h;
1810
- N && !s.selector && (s.selector = N.selector), this.contexts.push(s), n = s.add("onMatch", n), s.queries = i;
1810
+ z && !s.selector && (s.selector = z.selector), this.contexts.push(s), n = s.add("onMatch", n), s.queries = i;
1811
1811
  for (c in i)
1812
1812
  c === "all" ? h = 1 : (l = _e.matchMedia(i[c]), l && (Ze.indexOf(s) < 0 && Ze.push(s), (o[c] = l.matches) && (h = 1), l.addListener ? l.addListener(_i) : l.addEventListener("change", _i)));
1813
1813
  return h && n(s, function(u) {
@@ -1832,7 +1832,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1832
1832
  return new q(e);
1833
1833
  },
1834
1834
  getTweensOf: function(e, t) {
1835
- return z.getTweensOf(e, t);
1835
+ return N.getTweensOf(e, t);
1836
1836
  },
1837
1837
  getProperty: function(e, t, i, n) {
1838
1838
  Z(e) && (e = me(e)[0]);
@@ -1854,7 +1854,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1854
1854
  e = e[0] || {};
1855
1855
  var s = ae[t], o = He(e), l = o.harness && (o.harness.aliases || {})[t] || t, c = s ? function(h) {
1856
1856
  var u = new s();
1857
- et._pt = 0, u.init(e, i ? h + i : h, et, 0, [e]), u.render(1, u), et._pt && Ni(1, et);
1857
+ et._pt = 0, u.init(e, i ? h + i : h, et, 0, [e]), u.render(1, u), et._pt && zi(1, et);
1858
1858
  } : o.set(e, l);
1859
1859
  return s ? c : function(h) {
1860
1860
  return c(e, l, i ? h + i : h, o, 1);
@@ -1867,7 +1867,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1867
1867
  return s.tween = r, s;
1868
1868
  },
1869
1869
  isTweening: function(e) {
1870
- return z.getTweensOf(e, !0).length > 0;
1870
+ return N.getTweensOf(e, !0).length > 0;
1871
1871
  },
1872
1872
  defaults: function(e) {
1873
1873
  return e && e.ease && (e.ease = Ye(e.ease, st.ease)), qi(st, e || {});
@@ -1892,17 +1892,17 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1892
1892
  return arguments.length ? Ye(e, t) : D;
1893
1893
  },
1894
1894
  getById: function(e) {
1895
- return z.getById(e);
1895
+ return N.getById(e);
1896
1896
  },
1897
1897
  exportRoot: function(e, t) {
1898
1898
  e === void 0 && (e = {});
1899
1899
  var i = new q(e), n, r;
1900
- for (i.smoothChildTiming = ee(e.smoothChildTiming), z.remove(i), i._dp = 0, i._time = i._tTime = z._time, n = z._first; n; )
1900
+ for (i.smoothChildTiming = ee(e.smoothChildTiming), N.remove(i), i._dp = 0, i._time = i._tTime = N._time, n = N._first; n; )
1901
1901
  r = n._next, (t || !(!n._dur && n instanceof H && n.vars.onComplete === n._targets[0])) && ye(i, n, n._start - n._delay), n = r;
1902
- return ye(z, i, 0), i;
1902
+ return ye(N, i, 0), i;
1903
1903
  },
1904
1904
  context: function(e, t) {
1905
- return e ? new gr(e, t) : N;
1905
+ return e ? new gr(e, t) : z;
1906
1906
  },
1907
1907
  matchMedia: function(e) {
1908
1908
  return new Vs(e);
@@ -1946,7 +1946,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1946
1946
  ticker: oe,
1947
1947
  updateRoot: q.updateRoot,
1948
1948
  plugins: ae,
1949
- globalTimeline: z,
1949
+ globalTimeline: N,
1950
1950
  core: {
1951
1951
  PropTween: ie,
1952
1952
  globals: Fn,
@@ -1959,7 +1959,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1959
1959
  return K;
1960
1960
  },
1961
1961
  context: function(e) {
1962
- return e && N && (N.data.push(e), e._ctx = N), N;
1962
+ return e && z && (z.data.push(e), e._ctx = z), z;
1963
1963
  },
1964
1964
  suppressOverwrites: function(e) {
1965
1965
  return Pi = e;
@@ -2044,7 +2044,7 @@ D.Bounce;
2044
2044
  D.Sine;
2045
2045
  D.Expo;
2046
2046
  D.Circ;
2047
- var rn, Se, nt, zi, Ge, sn, $i, Ys = function() {
2047
+ var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
2048
2048
  return typeof window < "u";
2049
2049
  }, Ae = {}, $e = 180 / Math.PI, rt = Math.PI / 180, We = Math.atan2, an = 1e8, Bi = /([A-Z])/g, Zs = /(left|right|width|margin|padding|x)/i, Ks = /[\s,\(]\S/, xe = {
2050
2050
  autoAlpha: "opacity,visibility",
@@ -2130,7 +2130,7 @@ var rn, Se, nt, zi, Ge, sn, $i, Ys = function() {
2130
2130
  }, bi = function() {
2131
2131
  Ys() && window.document && (rn = window, Se = rn.document, nt = Se.documentElement, Ge = xi("div") || {
2132
2132
  style: {}
2133
- }, xi("div"), $ = ct($), ne = $ + "Origin", Ge.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", Er = !!ct("perspective"), $i = re.core.reverting, zi = 1);
2133
+ }, xi("div"), $ = ct($), ne = $ + "Origin", Ge.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", Er = !!ct("perspective"), $i = re.core.reverting, Ni = 1);
2134
2134
  }, ln = function(e) {
2135
2135
  var t = e.ownerSVGElement, i = xi("svg", t && t.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), n = e.cloneNode(!0), r;
2136
2136
  n.style.display = "block", i.appendChild(n), nt.appendChild(i);
@@ -2189,7 +2189,7 @@ var rn, Se, nt, zi, Ge, sn, $i, Ys = function() {
2189
2189
  return l && m && (g = He(d), g.time = oe.time, g.width = d[h]), V(p ? f * r / u : f && r ? u / f * r : 0);
2190
2190
  }, Ce = function(e, t, i, n) {
2191
2191
  var r;
2192
- return zi || bi(), t in xe && t !== "transform" && (t = xe[t], ~t.indexOf(",") && (t = t.split(",")[0])), Ae[t] && t !== "transform" ? (r = Tt(e, n), r = t !== "transformOrigin" ? r[t] : r.svg ? r.origin : jt(ge(e, ne)) + " " + r.zOrigin + "px") : (r = e.style[t], (!r || r === "auto" || n || ~(r + "").indexOf("calc(")) && (r = Ht[t] && Ht[t](e, t, i) || ge(e, t) || zn(e, t) || (t === "opacity" ? 1 : 0))), i && !~(r + "").trim().indexOf(" ") ? Le(e, t, r, i) + i : r;
2192
+ return Ni || bi(), t in xe && t !== "transform" && (t = xe[t], ~t.indexOf(",") && (t = t.split(",")[0])), Ae[t] && t !== "transform" ? (r = Tt(e, n), r = t !== "transformOrigin" ? r[t] : r.svg ? r.origin : jt(ge(e, ne)) + " " + r.zOrigin + "px") : (r = e.style[t], (!r || r === "auto" || n || ~(r + "").indexOf("calc(")) && (r = Ht[t] && Ht[t](e, t, i) || ge(e, t) || Nn(e, t) || (t === "opacity" ? 1 : 0))), i && !~(r + "").trim().indexOf(" ") ? Le(e, t, r, i) + i : r;
2193
2193
  }, oa = function(e, t, i, n) {
2194
2194
  if (!i || i === "none") {
2195
2195
  var r = ct(t, e, 1), s = r && ge(e, r, 1);
@@ -2323,13 +2323,13 @@ var rn, Se, nt, zi, Ge, sn, $i, Ys = function() {
2323
2323
  return V(parseFloat(t) + parseFloat(Le(e, "x", i + "px", n))) + n;
2324
2324
  }, ca = function(e, t) {
2325
2325
  t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, Ar(e, t);
2326
- }, Ne = "0deg", ft = "0px", ze = ") ", Ar = function(e, t) {
2326
+ }, ze = "0deg", ft = "0px", Ne = ") ", Ar = function(e, t) {
2327
2327
  var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.z, c = i.rotation, h = i.rotationY, u = i.rotationX, p = i.skewX, m = i.skewY, f = i.scaleX, d = i.scaleY, g = i.transformPerspective, _ = i.force3D, y = i.target, x = i.zOrigin, E = "", b = _ === "auto" && e && e !== 1 || _ === !0;
2328
- if (x && (u !== Ne || h !== Ne)) {
2328
+ if (x && (u !== ze || h !== ze)) {
2329
2329
  var C = parseFloat(h) * rt, v = Math.sin(C), P = Math.cos(C), w;
2330
2330
  C = parseFloat(u) * rt, w = Math.cos(C), s = ni(y, s, v * w * -x), o = ni(y, o, -Math.sin(C) * -x), l = ni(y, l, P * w * -x + x);
2331
2331
  }
2332
- g !== ft && (E += "perspective(" + g + ze), (n || r) && (E += "translate(" + n + "%, " + r + "%) "), (b || s !== ft || o !== ft || l !== ft) && (E += l !== ft || b ? "translate3d(" + s + ", " + o + ", " + l + ") " : "translate(" + s + ", " + o + ze), c !== Ne && (E += "rotate(" + c + ze), h !== Ne && (E += "rotateY(" + h + ze), u !== Ne && (E += "rotateX(" + u + ze), (p !== Ne || m !== Ne) && (E += "skew(" + p + ", " + m + ze), (f !== 1 || d !== 1) && (E += "scale(" + f + ", " + d + ze), y.style[$] = E || "translate(0, 0)";
2332
+ g !== ft && (E += "perspective(" + g + Ne), (n || r) && (E += "translate(" + n + "%, " + r + "%) "), (b || s !== ft || o !== ft || l !== ft) && (E += l !== ft || b ? "translate3d(" + s + ", " + o + ", " + l + ") " : "translate(" + s + ", " + o + Ne), c !== ze && (E += "rotate(" + c + Ne), h !== ze && (E += "rotateY(" + h + Ne), u !== ze && (E += "rotateX(" + u + Ne), (p !== ze || m !== ze) && (E += "skew(" + p + ", " + m + Ne), (f !== 1 || d !== 1) && (E += "scale(" + f + ", " + d + Ne), y.style[$] = E || "translate(0, 0)";
2333
2333
  }, ua = function(e, t) {
2334
2334
  var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.rotation, c = i.skewX, h = i.skewY, u = i.scaleX, p = i.scaleY, m = i.target, f = i.xOrigin, d = i.yOrigin, g = i.xOffset, _ = i.yOffset, y = i.forceCSS, x = parseFloat(s), E = parseFloat(o), b, C, v, P, w;
2335
2335
  l = parseFloat(l), c = parseFloat(c), h = parseFloat(h), h && (h = parseFloat(h), c += h, l += h), l || c ? (l *= rt, c *= rt, b = Math.cos(l) * u, C = Math.sin(l) * u, v = Math.sin(l - c) * -p, P = Math.cos(l - c) * p, c && (h *= rt, w = Math.tan(c - h), w = Math.sqrt(1 + w * w), v *= w, P *= w, h && (w = Math.tan(h), w = Math.sqrt(1 + w * w), b *= w, C *= w)), b = V(b), C = V(C), v = V(v), P = V(P)) : (b = u, P = p, C = v = 0), (x && !~(s + "").indexOf("px") || E && !~(o + "").indexOf("px")) && (x = Le(m, "x", s, "px"), E = Le(m, "y", o, "px")), (f || d || g || _) && (x = V(x + f - (f * b + d * v) + g), E = V(E + d - (f * C + d * P) + _)), (n || r) && (w = m.getBBox(), x = V(x + n / 100 * w.width), E = V(E + r / 100 * w.height)), w = "matrix(" + b + "," + C + "," + v + "," + P + "," + x + "," + E + ")", m.setAttribute("transform", w), y && (m.style[$] = w);
@@ -2370,7 +2370,7 @@ var Tr = {
2370
2370
  },
2371
2371
  init: function(e, t, i, n, r) {
2372
2372
  var s = this._props, o = e.style, l = i.vars.startAt, c, h, u, p, m, f, d, g, _, y, x, E, b, C, v, P;
2373
- zi || bi(), this.styles = this.styles || br(e), P = this.styles.props, this.tween = i;
2373
+ Ni || bi(), this.styles = this.styles || br(e), P = this.styles.props, this.tween = i;
2374
2374
  for (d in t)
2375
2375
  if (d !== "autoRound" && (h = t[d], !(ae[d] && hr(d, t, i, n, e, r)))) {
2376
2376
  if (m = typeof h, f = Ht[d], m === "function" && (h = h.call(i, n, e, r), m = typeof h), m === "string" && ~h.indexOf("random(") && (h = wt(h)), f)
@@ -4349,63 +4349,108 @@ function Ua() {
4349
4349
  a.setAttribute("data-gralobe-legend", "true"), a.textContent = `
4350
4350
  .gralobe-legend {
4351
4351
  position: absolute;
4352
- bottom: 15px;
4353
- left: 15px;
4352
+ bottom: 10px;
4353
+ left: 10px;
4354
4354
  background: rgba(0, 10, 20, 0.92);
4355
4355
  border: 1px solid rgba(100, 150, 200, 0.3);
4356
- border-radius: 8px;
4357
- padding: 10px 14px;
4358
- min-width: 160px;
4359
- max-width: 280px;
4356
+ border-radius: 6px;
4357
+ padding: 8px 12px;
4360
4358
  font-family: system-ui, -apple-system, sans-serif;
4361
4359
  color: #ddd;
4362
4360
  opacity: 0;
4363
- transform: translateY(8px);
4361
+ transform: translateY(8px) scale(0.95);
4364
4362
  transition: opacity 0.3s ease, transform 0.3s ease;
4365
4363
  pointer-events: none;
4366
4364
  z-index: 50;
4365
+ transform-origin: bottom left;
4367
4366
  }
4368
4367
 
4369
4368
  .gralobe-legend.visible {
4370
4369
  opacity: 1;
4371
- transform: translateY(0);
4370
+ transform: translateY(0) scale(1);
4372
4371
  pointer-events: auto;
4373
4372
  }
4374
4373
 
4374
+ /* Size variants based on container size */
4375
+ .gralobe-legend.size-lg {
4376
+ padding: 10px 14px;
4377
+ min-width: 180px;
4378
+ max-width: 280px;
4379
+ border-radius: 8px;
4380
+ bottom: 15px;
4381
+ left: 15px;
4382
+ }
4383
+ .gralobe-legend.size-lg .gralobe-legend-title { font-size: 13px; margin-bottom: 6px; }
4384
+ .gralobe-legend.size-lg .gralobe-legend-gradient { height: 10px; margin-bottom: 4px; }
4385
+ .gralobe-legend.size-lg .gralobe-legend-labels { font-size: 10px; margin-bottom: 6px; }
4386
+ .gralobe-legend.size-lg .gralobe-legend-description { font-size: 10px; }
4387
+ .gralobe-legend.size-lg .gralobe-legend-hint { font-size: 9px; margin-bottom: 6px; padding-bottom: 5px; }
4388
+
4389
+ .gralobe-legend.size-md {
4390
+ padding: 7px 10px;
4391
+ min-width: 140px;
4392
+ max-width: 220px;
4393
+ bottom: 10px;
4394
+ left: 10px;
4395
+ }
4396
+ .gralobe-legend.size-md .gralobe-legend-title { font-size: 11px; margin-bottom: 4px; }
4397
+ .gralobe-legend.size-md .gralobe-legend-gradient { height: 8px; margin-bottom: 3px; }
4398
+ .gralobe-legend.size-md .gralobe-legend-labels { font-size: 9px; margin-bottom: 4px; }
4399
+ .gralobe-legend.size-md .gralobe-legend-description { font-size: 9px; }
4400
+ .gralobe-legend.size-md .gralobe-legend-hint { font-size: 8px; margin-bottom: 4px; padding-bottom: 4px; }
4401
+
4402
+ .gralobe-legend.size-sm {
4403
+ padding: 5px 8px;
4404
+ min-width: 100px;
4405
+ max-width: 160px;
4406
+ border-radius: 4px;
4407
+ bottom: 6px;
4408
+ left: 6px;
4409
+ }
4410
+ .gralobe-legend.size-sm .gralobe-legend-title { font-size: 10px; margin-bottom: 3px; }
4411
+ .gralobe-legend.size-sm .gralobe-legend-gradient { height: 6px; margin-bottom: 2px; border-radius: 2px; }
4412
+ .gralobe-legend.size-sm .gralobe-legend-labels { font-size: 8px; margin-bottom: 0; }
4413
+ .gralobe-legend.size-sm .gralobe-legend-description { display: none; }
4414
+ .gralobe-legend.size-sm .gralobe-legend-hint { display: none; }
4415
+
4416
+ .gralobe-legend.size-xs {
4417
+ padding: 4px 6px;
4418
+ min-width: 70px;
4419
+ max-width: 120px;
4420
+ border-radius: 3px;
4421
+ bottom: 4px;
4422
+ left: 4px;
4423
+ }
4424
+ .gralobe-legend.size-xs .gralobe-legend-title { font-size: 8px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
4425
+ .gralobe-legend.size-xs .gralobe-legend-gradient { height: 4px; margin-bottom: 2px; border-radius: 1px; }
4426
+ .gralobe-legend.size-xs .gralobe-legend-labels { font-size: 7px; margin-bottom: 0; }
4427
+ .gralobe-legend.size-xs .gralobe-legend-description { display: none; }
4428
+ .gralobe-legend.size-xs .gralobe-legend-hint { display: none; }
4429
+
4375
4430
  .gralobe-legend-title {
4376
- font-size: 13px;
4377
4431
  font-weight: 600;
4378
- margin-bottom: 6px;
4379
4432
  color: #4af;
4380
4433
  line-height: 1.3;
4381
4434
  }
4382
4435
 
4383
4436
  .gralobe-legend-gradient {
4384
- height: 10px;
4385
4437
  border-radius: 3px;
4386
- margin-bottom: 4px;
4387
4438
  }
4388
4439
 
4389
4440
  .gralobe-legend-labels {
4390
4441
  display: flex;
4391
4442
  justify-content: space-between;
4392
- font-size: 10px;
4393
4443
  color: #aaa;
4394
- margin-bottom: 6px;
4395
4444
  }
4396
4445
 
4397
4446
  .gralobe-legend-description {
4398
- font-size: 10px;
4399
- color: #777;
4447
+ color: #666;
4400
4448
  font-style: italic;
4401
- line-height: 1.4;
4449
+ line-height: 1.3;
4402
4450
  }
4403
4451
 
4404
4452
  .gralobe-legend-hint {
4405
- font-size: 9px;
4406
- color: #555;
4407
- margin-bottom: 6px;
4408
- padding-bottom: 5px;
4453
+ color: #444;
4409
4454
  border-bottom: 1px solid rgba(100, 150, 200, 0.15);
4410
4455
  }
4411
4456
  `, document.head.appendChild(a);
@@ -4414,9 +4459,10 @@ class Fa {
4414
4459
  element;
4415
4460
  parentContainer;
4416
4461
  visible = !1;
4462
+ resizeObserver = null;
4417
4463
  constructor(e) {
4418
4464
  Ua(), this.parentContainer = e, getComputedStyle(e).position === "static" && (e.style.position = "relative"), this.element = document.createElement("div"), this.element.className = "gralobe-legend", this.element.setAttribute("data-testid", "globe-legend"), this.element.innerHTML = `
4419
- <div class="gralobe-legend-hint">G: toggle view · F: fullscreen</div>
4465
+ <div class="gralobe-legend-hint">G: view · F: fullscreen</div>
4420
4466
  <div class="gralobe-legend-title" data-testid="legend-title"></div>
4421
4467
  <div class="gralobe-legend-gradient"></div>
4422
4468
  <div class="gralobe-legend-labels">
@@ -4424,7 +4470,15 @@ class Fa {
4424
4470
  <span class="gralobe-legend-max" data-testid="legend-max"></span>
4425
4471
  </div>
4426
4472
  <div class="gralobe-legend-description" data-testid="legend-description"></div>
4427
- `, e.appendChild(this.element);
4473
+ `, e.appendChild(this.element), this.updateSize(), this.resizeObserver = new ResizeObserver(() => this.updateSize()), this.resizeObserver.observe(e);
4474
+ }
4475
+ getSizeClass(e, t) {
4476
+ const i = Math.min(e, t);
4477
+ return i < 200 ? "xs" : i < 300 ? "sm" : i < 450 ? "md" : "lg";
4478
+ }
4479
+ updateSize() {
4480
+ const e = this.parentContainer.clientWidth, t = this.parentContainer.clientHeight, i = this.getSizeClass(e, t);
4481
+ this.element.classList.remove("size-xs", "size-sm", "size-md", "size-lg"), this.element.classList.add(`size-${i}`);
4428
4482
  }
4429
4483
  show(e) {
4430
4484
  const t = this.element.querySelector(".gralobe-legend-title"), i = this.element.querySelector(".gralobe-legend-gradient"), n = this.element.querySelector(".gralobe-legend-min"), r = this.element.querySelector(".gralobe-legend-max"), s = this.element.querySelector(".gralobe-legend-description");
@@ -4444,10 +4498,10 @@ class Fa {
4444
4498
  return this.element;
4445
4499
  }
4446
4500
  dispose() {
4447
- this.element.remove();
4501
+ this.resizeObserver?.disconnect(), this.element.remove();
4448
4502
  }
4449
4503
  }
4450
- var Na = { trailer: 59 };
4504
+ var za = { trailer: 59 };
4451
4505
  function Mr(a = 256) {
4452
4506
  let e = 0, t = new Uint8Array(a);
4453
4507
  return { get buffer() {
@@ -4475,7 +4529,7 @@ function Mr(a = 256) {
4475
4529
  t = new Uint8Array(n), e > 0 && t.set(o.subarray(0, e), 0);
4476
4530
  }
4477
4531
  }
4478
- var si = 12, yn = 5003, za = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535];
4532
+ var si = 12, yn = 5003, Na = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535];
4479
4533
  function $a(a, e, t, i, n = Mr(512), r = new Uint8Array(256), s = new Int32Array(yn), o = new Int32Array(yn)) {
4480
4534
  let l = s.length, c = Math.max(2, i);
4481
4535
  r.fill(0), o.fill(0), s.fill(-1);
@@ -4499,7 +4553,7 @@ function $a(a, e, t, i, n = Mr(512), r = new Uint8Array(256), s = new Int32Array
4499
4553
  }
4500
4554
  return P(b), P(y), n.writeByte(0), n.bytesView();
4501
4555
  function P(w) {
4502
- for (h &= za[u], u > 0 ? h |= w << u : h = w, u += d; u >= 8; ) r[E++] = h & 255, E >= 254 && (n.writeByte(E), n.writeBytesView(r, 0, E), E = 0), h >>= 8, u -= 8;
4556
+ for (h &= Na[u], u > 0 ? h |= w << u : h = w, u += d; u >= 8; ) r[E++] = h & 255, E >= 254 && (n.writeByte(E), n.writeBytesView(r, 0, E), E = 0), h >>= 8, u -= 8;
4503
4557
  if ((x > g || f) && (f ? (d = m, g = (1 << d) - 1, f = !1) : (++d, g = d === si ? 1 << d : (1 << d) - 1)), w == y) {
4504
4558
  for (; u > 0; ) r[E++] = h & 255, E >= 254 && (n.writeByte(E), n.writeBytesView(r, 0, E), E = 0), h >>= 8, u -= 8;
4505
4559
  E > 0 && (n.writeByte(E), n.writeBytesView(r, 0, E), E = 0);
@@ -4519,7 +4573,7 @@ function Ir(a, e, t) {
4519
4573
  function Lt(a, e, t) {
4520
4574
  return a < e ? e : a > t ? t : a;
4521
4575
  }
4522
- function Nt(a) {
4576
+ function zt(a) {
4523
4577
  return a * a;
4524
4578
  }
4525
4579
  function xn(a, e, t) {
@@ -4531,7 +4585,7 @@ function xn(a, e, t) {
4531
4585
  let p = a[h], m = p.cnt, f = s * m / (s + m);
4532
4586
  if (!(f >= n)) {
4533
4587
  var u = 0;
4534
- u += f * Nt(p.rc - o), !(u >= n) && (u += f * Nt(p.gc - l), !(u >= n) && (u += f * Nt(p.bc - c), !(u >= n) && (n = u, i = h)));
4588
+ u += f * zt(p.rc - o), !(u >= n) && (u += f * zt(p.gc - l), !(u >= n) && (u += f * zt(p.bc - c), !(u >= n) && (n = u, i = h)));
4535
4589
  }
4536
4590
  }
4537
4591
  r.err = n, r.nn = i;
@@ -4567,7 +4621,7 @@ function Va(a, e, t = {}) {
4567
4621
  h && (O.ac *= _), O.rc *= _, O.gc *= _, O.bc *= _, u[d++] = O;
4568
4622
  }
4569
4623
  }
4570
- Nt(e) / d < 0.022 && (c = !1);
4624
+ zt(e) / d < 0.022 && (c = !1);
4571
4625
  for (var g = 0; g < d - 1; ++g) u[g].fw = g + 1, u[g + 1].bk = g, c && (u[g].cnt = Math.sqrt(u[g].cnt));
4572
4626
  c && (u[g].cnt = Math.sqrt(u[g].cnt));
4573
4627
  var y, x, E;
@@ -4659,7 +4713,7 @@ function Ka(a = {}) {
4659
4713
  return { reset() {
4660
4714
  i.reset(), l = !1;
4661
4715
  }, finish() {
4662
- i.writeByte(Na.trailer);
4716
+ i.writeByte(za.trailer);
4663
4717
  }, bytes() {
4664
4718
  return i.bytes();
4665
4719
  }, bytesView() {
@@ -4945,7 +4999,7 @@ class eo {
4945
4999
  i.href = e, i.download = t, i.style.display = "none", document.body.appendChild(i), i.click(), document.body.removeChild(i);
4946
5000
  }
4947
5001
  }
4948
- class to extends zr {
5002
+ class to extends Nr {
4949
5003
  /**
4950
5004
  * Constructs a new CSS2D object.
4951
5005
  *