gralobe 1.0.15 → 1.0.16

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
@@ -18,7 +18,7 @@ class Br extends kr {
18
18
  * @param {?HTMLElement} domElement - The HTML element used for event listeners.
19
19
  */
20
20
  constructor(e, t = null) {
21
- super(e, t), this.state = I.NONE, this.target = new se(), this.cursor = new se(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: tt.ROTATE, MIDDLE: tt.DOLLY, RIGHT: tt.PAN }, this.touches = { ONE: Qe.ROTATE, TWO: Qe.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new se(), this._lastQuaternion = new Yi(), this._lastTargetPosition = new se(), this._quat = new Yi().setFromUnitVectors(e.up, new se(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Zi(), this._sphericalDelta = new Zi(), this._scale = 1, this._panOffset = new se(), this._rotateStart = new de(), this._rotateEnd = new de(), this._rotateDelta = new de(), this._panStart = new de(), this._panEnd = new de(), this._panDelta = new de(), this._dollyStart = new de(), this._dollyEnd = new de(), this._dollyDelta = new de(), this._dollyDirection = new se(), this._mouse = new de(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Vr.bind(this), this._onPointerDown = Gr.bind(this), this._onPointerUp = Hr.bind(this), this._onContextMenu = qr.bind(this), this._onMouseWheel = Zr.bind(this), this._onKeyDown = Kr.bind(this), this._onTouchStart = Xr.bind(this), this._onTouchMove = Wr.bind(this), this._onMouseDown = jr.bind(this), this._onMouseMove = Yr.bind(this), this._interceptControlDown = Qr.bind(this), this._interceptControlUp = Jr.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
21
+ super(e, t), this.state = I.NONE, this.target = new se(), this.cursor = new se(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: tt.ROTATE, MIDDLE: tt.DOLLY, RIGHT: tt.PAN }, this.touches = { ONE: Qe.ROTATE, TWO: Qe.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new se(), this._lastQuaternion = new Yi(), this._lastTargetPosition = new se(), this._quat = new Yi().setFromUnitVectors(e.up, new se(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Zi(), this._sphericalDelta = new Zi(), this._scale = 1, this._panOffset = new se(), this._rotateStart = new de(), this._rotateEnd = new de(), this._rotateDelta = new de(), this._panStart = new de(), this._panEnd = new de(), this._panDelta = new de(), this._dollyStart = new de(), this._dollyEnd = new de(), this._dollyDelta = new de(), this._dollyDirection = new se(), this._mouse = new de(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Gr.bind(this), this._onPointerDown = Vr.bind(this), this._onPointerUp = Hr.bind(this), this._onContextMenu = qr.bind(this), this._onMouseWheel = Zr.bind(this), this._onKeyDown = Kr.bind(this), this._onTouchStart = Xr.bind(this), this._onTouchMove = Wr.bind(this), this._onMouseDown = jr.bind(this), this._onMouseMove = Yr.bind(this), this._interceptControlDown = Qr.bind(this), this._interceptControlUp = Jr.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
22
22
  }
23
23
  connect(e) {
24
24
  super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
@@ -306,10 +306,10 @@ class Br extends kr {
306
306
  return e.ctrlKey && !this._controlActive && (i.deltaY *= 10), i;
307
307
  }
308
308
  }
309
- function Gr(a) {
309
+ function Vr(a) {
310
310
  this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(a.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(a) && (this._addPointer(a), a.pointerType === "touch" ? this._onTouchStart(a) : this._onMouseDown(a)));
311
311
  }
312
- function Vr(a) {
312
+ function Gr(a) {
313
313
  this.enabled !== !1 && (a.pointerType === "touch" ? this._onTouchMove(a) : this._onMouseMove(a));
314
314
  }
315
315
  function Hr(a) {
@@ -475,7 +475,7 @@ var he = {
475
475
  delay: 0
476
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
- }, G = function(e) {
478
+ }, V = function(e) {
479
479
  return typeof e == "function";
480
480
  }, Pe = function(e) {
481
481
  return typeof e == "number";
@@ -488,7 +488,7 @@ var he = {
488
488
  }, Ti = function() {
489
489
  return typeof window < "u";
490
490
  }, Rt = function(e) {
491
- return G(e) || Z(e);
491
+ return V(e) || Z(e);
492
492
  }, Rn = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
493
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
494
  return (Nt = at(e, ce)) && re;
@@ -511,7 +511,7 @@ var he = {
511
511
  suppressEvents: !0
512
512
  }, Mi = {}, Re = [], ci = {}, zn, ae = {}, qt = {}, Wi = 30, Ut = [], Ri = "", Oi = function(e) {
513
513
  var t = e[0], i, n;
514
- if (ve(t) || G(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
514
+ if (ve(t) || V(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
515
515
  for (n = Ut.length; n-- && !Ut[n].targetTest(t); )
516
516
  ;
517
517
  i = Ut[n];
@@ -522,10 +522,10 @@ var he = {
522
522
  }, He = function(e) {
523
523
  return e._gsap || Oi(me(e))[0]._gsap;
524
524
  }, Nn = function(e, t, i) {
525
- return (i = e[t]) && G(i) ? e[t]() : Ai(i) && e.getAttribute && e.getAttribute(t) || i;
525
+ return (i = e[t]) && V(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;
528
- }, V = function(e) {
528
+ }, G = function(e) {
529
529
  return Math.round(e * 1e5) / 1e5 || 0;
530
530
  }, j = function(e) {
531
531
  return Math.round(e * 1e7) / 1e7 || 0;
@@ -547,7 +547,7 @@ var he = {
547
547
  }, Bn = function(e) {
548
548
  var t = parseFloat(e);
549
549
  return (t || t === 0) && (e + "").match(Ln).length < 2 ? t : Z(e) ? e.trim() : e;
550
- }, Gn = function(e) {
550
+ }, Vn = function(e) {
551
551
  return e;
552
552
  }, ue = function(e, t) {
553
553
  for (var i in t)
@@ -581,7 +581,7 @@ var he = {
581
581
  for (var i = e.length, n = i === t.length; n && i-- && e[i] === t[i]; )
582
582
  ;
583
583
  return i < 0;
584
- }, Vn = function(e, t, i, n, r) {
584
+ }, Gn = function(e, t, i, n, r) {
585
585
  var s = e[n], o;
586
586
  if (r)
587
587
  for (o = t[r]; s && s[r] > o; )
@@ -611,7 +611,7 @@ var he = {
611
611
  }, ot = function(e, t) {
612
612
  var i = Math.floor(e = j(e / t));
613
613
  return e && i === e ? i - 1 : i;
614
- }, Gt = function(e, t) {
614
+ }, Vt = function(e, t) {
615
615
  return (e - t._start) * t._ts + (t._ts >= 0 ? 0 : t._dirty ? t.totalDuration() : t._tDur);
616
616
  }, Zt = function(e) {
617
617
  return e._end = j(e._start + (e._tDur / Math.abs(e._ts || e._rts || k) || 0));
@@ -620,14 +620,14 @@ var he = {
620
620
  return i && i.smoothChildTiming && e._ts && (e._start = j(i._time - (e._ts > 0 ? t / e._ts : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts)), Zt(e), i._dirty || je(i, e)), e;
621
621
  }, Hn = function(e, t) {
622
622
  var i;
623
- if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (i = Gt(e.rawTime(), t), (!t._dur || Dt(0, t.totalDuration(), i) - t._tTime > k) && t.render(i, !0)), je(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
623
+ if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (i = Vt(e.rawTime(), t), (!t._dur || Dt(0, t.totalDuration(), i) - t._tTime > k) && t.render(i, !0)), je(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
624
624
  if (e._dur < e.duration())
625
625
  for (i = e; i._dp; )
626
626
  i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
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 !== 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;
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)), Gn(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) {
@@ -713,7 +713,7 @@ var he = {
713
713
  return 0.5 - Math.random();
714
714
  });
715
715
  }, Xn = function(e) {
716
- if (G(e))
716
+ if (V(e))
717
717
  return e;
718
718
  var t = ve(e) ? e : {
719
719
  each: e
@@ -744,7 +744,7 @@ var he = {
744
744
  };
745
745
  }, Wn = function(e, t) {
746
746
  var i = W(e), n, r;
747
- return !i && ve(e) && (n = i = e.radius || fe, e.values ? (e = me(e.values), (r = !Pe(e[0])) && (n *= n)) : e = mi(e.increment)), ke(t, i ? G(e) ? function(s) {
747
+ return !i && ve(e) && (n = i = e.radius || fe, e.values ? (e = me(e.values), (r = !Pe(e[0])) && (n *= n)) : e = mi(e.increment)), ke(t, i ? V(e) ? function(s) {
748
748
  return r = e(s), Math.abs(r - s) <= n ? r : s;
749
749
  } : function(s) {
750
750
  for (var o = parseFloat(r ? s.x : s), l = parseFloat(r ? s.y : 0), c = fe, h = 0, u = e.length, p, m; u--; )
@@ -836,7 +836,7 @@ var he = {
836
836
  }, et, er = [], tr = function(e) {
837
837
  if (e)
838
838
  if (e = !e.name && e.default || e, Ti() || e.headless) {
839
- var t = e.name, i = G(e), n = t && !i && e.init ? function() {
839
+ var t = e.name, i = V(e), n = t && !i && e.init ? function() {
840
840
  this._props = [];
841
841
  } : e, r = {
842
842
  init: Et,
@@ -990,7 +990,7 @@ var he = {
990
990
  for (var i = e._first, n; i; )
991
991
  i instanceof q ? a(i, t) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== t && (i.timeline ? a(i.timeline, t) : (n = i._ease, i._ease = i._yEase, i._yEase = n, i._yoyo = t)), i = i._next;
992
992
  }, Ye = function(e, t) {
993
- return e && (G(e) ? e : D[e] || Ds(e)) || t;
993
+ return e && (V(e) ? e : D[e] || Ds(e)) || t;
994
994
  }, Xe = function(e, t, i, n) {
995
995
  i === void 0 && (i = function(l) {
996
996
  return 1 - t(1 - l);
@@ -1113,7 +1113,7 @@ var lr = function(e, t) {
1113
1113
  return this._rts === -k ? 0 : this._rts;
1114
1114
  if (this._rts === i)
1115
1115
  return this;
1116
- var r = this.parent && this._ts ? Gt(this.parent._time, this) : this._tTime;
1116
+ var r = this.parent && this._ts ? Vt(this.parent._time, this) : this._tTime;
1117
1117
  return this._rts = +i || 0, this._ts = this._ps || i === -k ? 0 : this._rts, this.totalTime(Dt(-Math.abs(this._delay), this.totalDuration(), r), n !== !1), Zt(this), cs(this);
1118
1118
  }, e.paused = function(i) {
1119
1119
  return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (ht(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== k && (this._tTime -= k)))), this) : this._ps;
@@ -1128,7 +1128,7 @@ var lr = function(e, t) {
1128
1128
  return this._start + (ee(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
1129
1129
  }, e.rawTime = function(i) {
1130
1130
  var n = this.parent || this._dp;
1131
- return n ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Gt(n.rawTime(i), this) : this._tTime : this._tTime;
1131
+ return n ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Vt(n.rawTime(i), this) : this._tTime : this._tTime;
1132
1132
  }, e.revert = function(i) {
1133
1133
  i === void 0 && (i = as);
1134
1134
  var n = K;
@@ -1172,9 +1172,9 @@ var lr = function(e, t) {
1172
1172
  }, e.then = function(i) {
1173
1173
  var n = this;
1174
1174
  return new Promise(function(r) {
1175
- var s = G(i) ? i : Gn, o = function() {
1175
+ var s = V(i) ? i : Vn, o = function() {
1176
1176
  var c = n.then;
1177
- n.then = null, G(s) && (s = s(n)) && (s.then || s === n) && (n.then = c), r(s), n.then = c;
1177
+ n.then = null, V(s) && (s = s(n)) && (s.then || s === n) && (n.then = c), r(s), n.then = c;
1178
1178
  };
1179
1179
  n._initted && n.totalProgress() === 1 && n._ts >= 0 || !n._tTime && n._ts < 0 ? o() : n._prom = o;
1180
1180
  });
@@ -1282,7 +1282,7 @@ var q = /* @__PURE__ */ (function(a) {
1282
1282
  }), this;
1283
1283
  if (Z(n))
1284
1284
  return this.addLabel(n, r);
1285
- if (G(n))
1285
+ if (V(n))
1286
1286
  n = H.delayedCall(0, n);
1287
1287
  else
1288
1288
  return this;
@@ -1298,7 +1298,7 @@ var q = /* @__PURE__ */ (function(a) {
1298
1298
  if (r[s].vars.id === n)
1299
1299
  return r[s];
1300
1300
  }, t.remove = function(n) {
1301
- return Z(n) ? this.removeLabel(n) : G(n) ? this.killTweensOf(n) : (n.parent === this && Yt(this, n), n === this._recent && (this._recent = this._last), je(this));
1301
+ return Z(n) ? this.removeLabel(n) : V(n) ? this.killTweensOf(n) : (n.parent === this && Yt(this, n), n === this._recent && (this._recent = this._last), je(this));
1302
1302
  }, t.totalTime = function(n, r) {
1303
1303
  return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = j(oe.time - (this._ts > 0 ? n / this._ts : (this.totalDuration() - n) / -this._ts))), a.prototype.totalTime.call(this, n, r), this._forcing = 0, this) : this._tTime;
1304
1304
  }, t.addLabel = function(n, r) {
@@ -1381,7 +1381,7 @@ var q = /* @__PURE__ */ (function(a) {
1381
1381
  }
1382
1382
  return s._tDur;
1383
1383
  }, e.updateRoot = function(n) {
1384
- if (N._ts && ($n(N, Gt(n, N)), zn = oe.frame), oe.frame >= Wi) {
1384
+ if (N._ts && ($n(N, Vt(n, N)), zn = oe.frame), oe.frame >= Wi) {
1385
1385
  Wi += he.autoSleep || 120;
1386
1386
  var r = N._first;
1387
1387
  if ((!r || !r._ts) && he.autoSleep && oe._listeners.length < 2) {
@@ -1410,12 +1410,12 @@ var Ms = function(e, t, i, n, r, s, o) {
1410
1410
  }, c = Wt.lastIndex);
1411
1411
  return l.c = c < n.length ? n.substring(c, n.length) : "", l.fp = o, (In.test(n) || _) && (l.e = 0), this._pt = l, l;
1412
1412
  }, Li = function(e, t, i, n, r, s, o, l, c, h) {
1413
- G(n) && (n = n(r || 0, e, s));
1414
- var u = e[t], p = i !== "get" ? i : G(u) ? c ? e[t.indexOf("set") || !G(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](c) : e[t]() : u, m = G(u) ? c ? ks : dr : Ui, f;
1413
+ V(n) && (n = n(r || 0, e, s));
1414
+ var u = e[t], p = i !== "get" ? i : V(u) ? c ? e[t.indexOf("set") || !V(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](c) : e[t]() : u, m = V(u) ? c ? ks : dr : Ui, f;
1415
1415
  if (Z(n) && (~n.indexOf("random(") && (n = wt(n)), n.charAt(1) === "=" && (f = it(p, n) + (X(p) || 0), (f || f === 0) && (n = f))), !h || p !== n || gi)
1416
1416
  return !isNaN(p * n) && n !== "" ? (f = new ie(this._pt, e, t, +p || 0, n - (p || 0), typeof u == "boolean" ? Fs : pr, 0, m), c && (f.fp = c), o && f.modifier(o, this, e), this._pt = f) : (!u && !(t in e) && Di(t, n), Ms.call(this, e, t, p, n, m, l || he.stringFilter, c));
1417
1417
  }, Rs = function(e, t, i, n, r) {
1418
- if (G(e) && (e = bt(e, r, t, i, n)), !ve(e) || e.style && e.nodeType || W(e) || Rn(e))
1418
+ if (V(e) && (e = bt(e, r, t, i, n)), !ve(e) || e.style && e.nodeType || W(e) || Rn(e))
1419
1419
  return Z(e) ? bt(e, r, t, i, n) : e;
1420
1420
  var s = {}, o;
1421
1421
  for (o in e)
@@ -1486,7 +1486,7 @@ var Ms = function(e, t, i, n, r, s, o) {
1486
1486
  c.push(h);
1487
1487
  }
1488
1488
  for (m = c.length; m--; )
1489
- u = c[m], h = u._pt || u, h.s = (n || n === 0) && !r ? n : h.s + (n || 0) + s * h.c, h.c = i - h.s, u.e && (u.e = V(i) + X(u.e)), u.b && (u.b = h.s + X(u.b));
1489
+ u = c[m], h = u._pt || u, h.s = (n || n === 0) && !r ? n : h.s + (n || 0) + s * h.c, h.c = i - h.s, u.e && (u.e = G(i) + X(u.e)), u.b && (u.b = h.s + X(u.b));
1490
1490
  }, Is = function(e, t) {
1491
1491
  var i = e[0] ? He(e[0]).harness : 0, n = i && i.aliases, r, s, o, l;
1492
1492
  if (!n)
@@ -1515,7 +1515,7 @@ var Ms = function(e, t, i, n, r, s, o) {
1515
1515
  e: r
1516
1516
  });
1517
1517
  }, bt = function(e, t, i, n, r) {
1518
- return G(e) ? e.call(t, i, n, r) : Z(e) && ~e.indexOf("random(") ? wt(e) : e;
1518
+ return V(e) ? e.call(t, i, n, r) : Z(e) && ~e.indexOf("random(") ? wt(e) : e;
1519
1519
  }, cr = Ri + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", ur = {};
1520
1520
  te(cr + ",id,stagger,delay,duration,paused,scrollTrigger", function(a) {
1521
1521
  return ur[a] = 1;
@@ -1604,7 +1604,7 @@ var H = /* @__PURE__ */ (function(a) {
1604
1604
  }, t.resetTo = function(n, r, s, o, l) {
1605
1605
  Ct || oe.wake(), this._ts || this.play();
1606
1606
  var c = Math.min(this._dur, (this._dp._time - this._start) * this._ts), h;
1607
- return this._initted || ki(this, c), h = this._ease(c / this._dur), Os(this, n, r, s, o, h, c, l) ? this.resetTo(n, r, s, o, 1) : (Kt(this, 0), this.parent || Vn(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1607
+ return this._initted || ki(this, c), h = this._ease(c / this._dur), Os(this, n, r, s, o, h, c, l) ? this.resetTo(n, r, s, o, 1) : (Kt(this, 0), this.parent || Gn(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1608
1608
  }, t.kill = function(n, r) {
1609
1609
  if (r === void 0 && (r = "all"), !n && (!r || r === "all"))
1610
1610
  return this._lazy = this._pt = 0, this.parent ? mt(this) : this.scrollTrigger && this.scrollTrigger.kill(!!K), this;
@@ -1670,7 +1670,7 @@ var Ui = function(e, t, i) {
1670
1670
  }, Us = function(e, t, i) {
1671
1671
  return e.setAttribute(t, i);
1672
1672
  }, Fi = function(e, t) {
1673
- return G(e[t]) ? dr : Ai(e[t]) && e.setAttribute ? Us : Ui;
1673
+ return V(e[t]) ? dr : Ai(e[t]) && e.setAttribute ? Us : Ui;
1674
1674
  }, pr = function(e, t) {
1675
1675
  return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e6) / 1e6, t);
1676
1676
  }, Fs = function(e, t) {
@@ -1728,7 +1728,7 @@ N = new q({
1728
1728
  smoothChildTiming: !0
1729
1729
  });
1730
1730
  he.stringFilter = rr;
1731
- var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1731
+ var Ze = [], Ft = {}, Bs = [], nn = 0, Vs = 0, ti = function(e) {
1732
1732
  return (Ft[e] || Bs).map(function(t) {
1733
1733
  return t();
1734
1734
  });
@@ -1746,16 +1746,16 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1746
1746
  }), nn = e, ti("matchMedia"));
1747
1747
  }, gr = /* @__PURE__ */ (function() {
1748
1748
  function a(t, i) {
1749
- this.selector = i && fi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Gs++, t && this.add(t);
1749
+ this.selector = i && fi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Vs++, t && this.add(t);
1750
1750
  }
1751
1751
  var e = a.prototype;
1752
1752
  return e.add = function(i, n, r) {
1753
- G(i) && (r = n, n = i, i = G);
1753
+ V(i) && (r = n, n = i, i = V);
1754
1754
  var s = this, o = function() {
1755
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;
1756
+ return c && c !== s && c.data.push(s), r && (s.selector = fi(r)), z = s, u = n.apply(s, arguments), V(u) && s._r.push(u), z = c, s.selector = h, s.isReverted = !1, u;
1757
1757
  };
1758
- return s.last = o, i === G ? o(s, function(l) {
1758
+ return s.last = o, i === V ? o(s, function(l) {
1759
1759
  return s.add(null, l);
1760
1760
  }) : i ? s[i] = o : o;
1761
1761
  }, e.ignore = function(i) {
@@ -1797,7 +1797,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1797
1797
  }, e.revert = function(i) {
1798
1798
  this.kill(i || {});
1799
1799
  }, a;
1800
- })(), Vs = /* @__PURE__ */ (function() {
1800
+ })(), Gs = /* @__PURE__ */ (function() {
1801
1801
  function a(t) {
1802
1802
  this.contexts = [], this.scope = t, z && z.data.push(this);
1803
1803
  }
@@ -1820,7 +1820,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1820
1820
  return n.kill(i, !0);
1821
1821
  });
1822
1822
  }, a;
1823
- })(), Vt = {
1823
+ })(), Gt = {
1824
1824
  registerPlugin: function() {
1825
1825
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
1826
1826
  t[i] = arguments[i];
@@ -1836,7 +1836,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1836
1836
  },
1837
1837
  getProperty: function(e, t, i, n) {
1838
1838
  Z(e) && (e = me(e)[0]);
1839
- var r = He(e || {}).get, s = i ? Gn : Bn;
1839
+ var r = He(e || {}).get, s = i ? Vn : Bn;
1840
1840
  return i === "native" && (i = ""), e && (t ? s((ae[t] && ae[t].get || r)(e, t, i, n)) : function(o, l, c) {
1841
1841
  return s((ae[o] && ae[o].get || r)(e, o, l, c));
1842
1842
  });
@@ -1905,7 +1905,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1905
1905
  return e ? new gr(e, t) : z;
1906
1906
  },
1907
1907
  matchMedia: function(e) {
1908
- return new Vs(e);
1908
+ return new Gs(e);
1909
1909
  },
1910
1910
  matchMediaRefresh: function() {
1911
1911
  return Ze.forEach(function(e) {
@@ -1967,10 +1967,10 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1967
1967
  }
1968
1968
  };
1969
1969
  te("to,from,fromTo,delayedCall,set,killTweensOf", function(a) {
1970
- return Vt[a] = H[a];
1970
+ return Gt[a] = H[a];
1971
1971
  });
1972
1972
  oe.add(q.updateRoot);
1973
- et = Vt.to({}, {
1973
+ et = Gt.to({}, {
1974
1974
  duration: 0
1975
1975
  });
1976
1976
  var Hs = function(e, t) {
@@ -2003,7 +2003,7 @@ var Hs = function(e, t) {
2003
2003
  };
2004
2004
  }
2005
2005
  };
2006
- }, re = Vt.registerPlugin({
2006
+ }, re = Gt.registerPlugin({
2007
2007
  name: "attr",
2008
2008
  init: function(e, t, i, n, r) {
2009
2009
  var s, o, l;
@@ -2022,7 +2022,7 @@ var Hs = function(e, t) {
2022
2022
  for (var i = t.length; i--; )
2023
2023
  this.add(e, i, e[i] || 0, t[i], 0, 0, 0, 0, 0, 1);
2024
2024
  }
2025
- }, ii("roundProps", mi), ii("modifiers"), ii("snap", Wn)) || Vt;
2025
+ }, ii("roundProps", mi), ii("modifiers"), ii("snap", Wn)) || Gt;
2026
2026
  H.version = q.version = re.version = "3.13.0";
2027
2027
  kn = 1;
2028
2028
  Ti() && ht();
@@ -2044,7 +2044,7 @@ D.Bounce;
2044
2044
  D.Sine;
2045
2045
  D.Expo;
2046
2046
  D.Circ;
2047
- var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
2047
+ var rn, Se, nt, Ni, Ve, 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",
@@ -2121,16 +2121,16 @@ var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
2121
2121
  var n = getComputedStyle(e);
2122
2122
  return n[t] || n.getPropertyValue(t.replace(Bi, "-$1").toLowerCase()) || n.getPropertyValue(t) || !i && a(e, ct(t) || t, 1) || "";
2123
2123
  }, on = "O,Moz,ms,Ms,Webkit".split(","), ct = function(e, t, i) {
2124
- var n = t || Ge, r = n.style, s = 5;
2124
+ var n = t || Ve, r = n.style, s = 5;
2125
2125
  if (e in r && !i)
2126
2126
  return e;
2127
2127
  for (e = e.charAt(0).toUpperCase() + e.substr(1); s-- && !(on[s] + e in r); )
2128
2128
  ;
2129
2129
  return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? on[s] : "") + e;
2130
2130
  }, bi = function() {
2131
- Ys() && window.document && (rn = window, Se = rn.document, nt = Se.documentElement, Ge = xi("div") || {
2131
+ Ys() && window.document && (rn = window, Se = rn.document, nt = Se.documentElement, Ve = xi("div") || {
2132
2132
  style: {}
2133
- }, xi("div"), $ = ct($), ne = $ + "Origin", Ge.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", vr = !!ct("perspective"), $i = re.core.reverting, Ni = 1);
2133
+ }, xi("div"), $ = ct($), ne = $ + "Origin", Ve.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", vr = !!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);
@@ -2174,19 +2174,19 @@ var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
2174
2174
  grid: 1,
2175
2175
  flex: 1
2176
2176
  }, Le = function a(e, t, i, n) {
2177
- var r = parseFloat(i) || 0, s = (i + "").trim().substr((r + "").length) || "px", o = Ge.style, l = Zs.test(t), c = e.tagName.toLowerCase() === "svg", h = (c ? "client" : "offset") + (l ? "Width" : "Height"), u = 100, p = n === "px", m = n === "%", f, d, g, _;
2177
+ var r = parseFloat(i) || 0, s = (i + "").trim().substr((r + "").length) || "px", o = Ve.style, l = Zs.test(t), c = e.tagName.toLowerCase() === "svg", h = (c ? "client" : "offset") + (l ? "Width" : "Height"), u = 100, p = n === "px", m = n === "%", f, d, g, _;
2178
2178
  if (n === s || !r || cn[n] || cn[s])
2179
2179
  return r;
2180
2180
  if (s !== "px" && !p && (r = a(e, t, i, "px")), _ = e.getCTM && wr(e), (m || s === "%") && (Ae[t] || ~t.indexOf("adius")))
2181
- return f = _ ? e.getBBox()[l ? "width" : "height"] : e[h], V(m ? r / f * u : r / 100 * f);
2181
+ return f = _ ? e.getBBox()[l ? "width" : "height"] : e[h], G(m ? r / f * u : r / 100 * f);
2182
2182
  if (o[l ? "width" : "height"] = u + (p ? s : n), d = n !== "rem" && ~t.indexOf("adius") || n === "em" && e.appendChild && !c ? e : e.parentNode, _ && (d = (e.ownerSVGElement || {}).parentNode), (!d || d === Se || !d.appendChild) && (d = Se.body), g = d._gsap, g && m && g.width && l && g.time === oe.time && !g.uncache)
2183
- return V(r / g.width * u);
2183
+ return G(r / g.width * u);
2184
2184
  if (m && (t === "height" || t === "width")) {
2185
2185
  var y = e.style[t];
2186
2186
  e.style[t] = u + n, f = e[h], y ? e.style[t] = y : Ke(e, t);
2187
2187
  } else
2188
- (m || s === "%") && !aa[ge(d, "display")] && (o.position = ge(e, "position")), d === e && (o.position = "static"), d.appendChild(Ge), f = Ge[h], d.removeChild(Ge), o.position = "absolute";
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);
2188
+ (m || s === "%") && !aa[ge(d, "display")] && (o.position = ge(e, "position")), d === e && (o.position = "static"), d.appendChild(Ve), f = Ve[h], d.removeChild(Ve), o.position = "absolute";
2189
+ return l && m && (g = He(d), g.time = oe.time, g.width = d[h]), G(p ? f * r / u : f && r ? u / f * r : 0);
2190
2190
  }, Ce = function(e, t, i, n) {
2191
2191
  var r;
2192
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;
@@ -2303,24 +2303,24 @@ var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
2303
2303
  return e === "matrix(1, 0, 0, 1, 0, 0)" || e === "none" || !e;
2304
2304
  }, dn = function(e) {
2305
2305
  var t = ge(e, $);
2306
- return Pr(t) ? At : t.substr(7).match(On).map(V);
2307
- }, Gi = function(e, t) {
2306
+ return Pr(t) ? At : t.substr(7).match(On).map(G);
2307
+ }, Vi = function(e, t) {
2308
2308
  var i = e._gsap || He(e), n = e.style, r = dn(e), s, o, l, c;
2309
2309
  return i.svg && e.getAttribute("transform") ? (l = e.transform.baseVal.consolidate().matrix, r = [l.a, l.b, l.c, l.d, l.e, l.f], r.join(",") === "1,0,0,1,0,0" ? At : r) : (r === At && !e.offsetParent && e !== nt && !i.svg && (l = n.display, n.display = "block", s = e.parentNode, (!s || !e.offsetParent && !e.getBoundingClientRect().width) && (c = 1, o = e.nextElementSibling, nt.appendChild(e)), r = dn(e), l ? n.display = l : Ke(e, "display"), c && (o ? s.insertBefore(e, o) : s ? s.appendChild(e) : nt.removeChild(e))), t && r.length > 6 ? [r[0], r[1], r[4], r[5], r[12], r[13]] : r);
2310
2310
  }, vi = function(e, t, i, n, r, s) {
2311
- var o = e._gsap, l = r || Gi(e, !0), c = o.xOrigin || 0, h = o.yOrigin || 0, u = o.xOffset || 0, p = o.yOffset || 0, m = l[0], f = l[1], d = l[2], g = l[3], _ = l[4], y = l[5], x = t.split(" "), v = parseFloat(x[0]) || 0, b = parseFloat(x[1]) || 0, C, E, P, w;
2311
+ var o = e._gsap, l = r || Vi(e, !0), c = o.xOrigin || 0, h = o.yOrigin || 0, u = o.xOffset || 0, p = o.yOffset || 0, m = l[0], f = l[1], d = l[2], g = l[3], _ = l[4], y = l[5], x = t.split(" "), v = parseFloat(x[0]) || 0, b = parseFloat(x[1]) || 0, C, E, P, w;
2312
2312
  i ? l !== At && (E = m * g - f * d) && (P = v * (g / E) + b * (-d / E) + (d * y - g * _) / E, w = v * (-f / E) + b * (m / E) - (m * y - f * _) / E, v = P, b = w) : (C = Er(e), v = C.x + (~x[0].indexOf("%") ? v / 100 * C.width : v), b = C.y + (~(x[1] || x[0]).indexOf("%") ? b / 100 * C.height : b)), n || n !== !1 && o.smooth ? (_ = v - c, y = b - h, o.xOffset = u + (_ * m + y * d) - _, o.yOffset = p + (_ * f + y * g) - y) : o.xOffset = o.yOffset = 0, o.xOrigin = v, o.yOrigin = b, o.smooth = !!n, o.origin = t, o.originIsAbsolute = !!i, e.style[ne] = "0px 0px", s && (De(s, o, "xOrigin", c, v), De(s, o, "yOrigin", h, b), De(s, o, "xOffset", u, o.xOffset), De(s, o, "yOffset", p, o.yOffset)), e.setAttribute("data-svg-origin", v + " " + b);
2313
2313
  }, Tt = function(e, t) {
2314
2314
  var i = e._gsap || new lr(e);
2315
2315
  if ("x" in i && !t && !i.uncache)
2316
2316
  return i;
2317
2317
  var n = e.style, r = i.scaleX < 0, s = "px", o = "deg", l = getComputedStyle(e), c = ge(e, ne) || "0", h, u, p, m, f, d, g, _, y, x, v, b, C, E, P, w, T, M, A, R, O, B, F, U, Q, ut, dt, pt, Ue, ji, Ee, Fe;
2318
- return h = u = p = d = g = _ = y = x = v = 0, m = f = 1, i.svg = !!(e.getCTM && wr(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (n[$] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[$] !== "none" ? l[$] : "")), n.scale = n.rotate = n.translate = "none"), E = Gi(e, i.svg), i.svg && (i.uncache ? (Q = e.getBBox(), c = i.xOrigin - Q.x + "px " + (i.yOrigin - Q.y) + "px", U = "") : U = !t && e.getAttribute("data-svg-origin"), vi(e, U || c, !!U || i.originIsAbsolute, i.smooth !== !1, E)), b = i.xOrigin || 0, C = i.yOrigin || 0, E !== At && (M = E[0], A = E[1], R = E[2], O = E[3], h = B = E[4], u = F = E[5], E.length === 6 ? (m = Math.sqrt(M * M + A * A), f = Math.sqrt(O * O + R * R), d = M || A ? We(A, M) * $e : 0, y = R || O ? We(R, O) * $e + d : 0, y && (f *= Math.abs(Math.cos(y * rt))), i.svg && (h -= b - (b * M + C * R), u -= C - (b * A + C * O))) : (Fe = E[6], ji = E[7], dt = E[8], pt = E[9], Ue = E[10], Ee = E[11], h = E[12], u = E[13], p = E[14], P = We(Fe, Ue), g = P * $e, P && (w = Math.cos(-P), T = Math.sin(-P), U = B * w + dt * T, Q = F * w + pt * T, ut = Fe * w + Ue * T, dt = B * -T + dt * w, pt = F * -T + pt * w, Ue = Fe * -T + Ue * w, Ee = ji * -T + Ee * w, B = U, F = Q, Fe = ut), P = We(-R, Ue), _ = P * $e, P && (w = Math.cos(-P), T = Math.sin(-P), U = M * w - dt * T, Q = A * w - pt * T, ut = R * w - Ue * T, Ee = O * T + Ee * w, M = U, A = Q, R = ut), P = We(A, M), d = P * $e, P && (w = Math.cos(P), T = Math.sin(P), U = M * w + A * T, Q = B * w + F * T, A = A * w - M * T, F = F * w - B * T, M = U, B = Q), g && Math.abs(g) + Math.abs(d) > 359.9 && (g = d = 0, _ = 180 - _), m = V(Math.sqrt(M * M + A * A + R * R)), f = V(Math.sqrt(F * F + Fe * Fe)), P = We(B, F), y = Math.abs(P) > 2e-4 ? P * $e : 0, v = Ee ? 1 / (Ee < 0 ? -Ee : Ee) : 0), i.svg && (U = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !Pr(ge(e, $)), U && e.setAttribute("transform", U))), Math.abs(y) > 90 && Math.abs(y) < 270 && (r ? (m *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (f *= -1, y += y <= 0 ? 180 : -180)), t = t || i.uncache, i.x = h - ((i.xPercent = h && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + s, i.y = u - ((i.yPercent = u && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + s, i.z = p + s, i.scaleX = V(m), i.scaleY = V(f), i.rotation = V(d) + o, i.rotationX = V(g) + o, i.rotationY = V(_) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = v + s, (i.zOrigin = parseFloat(c.split(" ")[2]) || !t && i.zOrigin || 0) && (n[ne] = jt(c)), i.xOffset = i.yOffset = 0, i.force3D = he.force3D, i.renderTransform = i.svg ? ua : vr ? Ar : ca, i.uncache = 0, i;
2318
+ return h = u = p = d = g = _ = y = x = v = 0, m = f = 1, i.svg = !!(e.getCTM && wr(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (n[$] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[$] !== "none" ? l[$] : "")), n.scale = n.rotate = n.translate = "none"), E = Vi(e, i.svg), i.svg && (i.uncache ? (Q = e.getBBox(), c = i.xOrigin - Q.x + "px " + (i.yOrigin - Q.y) + "px", U = "") : U = !t && e.getAttribute("data-svg-origin"), vi(e, U || c, !!U || i.originIsAbsolute, i.smooth !== !1, E)), b = i.xOrigin || 0, C = i.yOrigin || 0, E !== At && (M = E[0], A = E[1], R = E[2], O = E[3], h = B = E[4], u = F = E[5], E.length === 6 ? (m = Math.sqrt(M * M + A * A), f = Math.sqrt(O * O + R * R), d = M || A ? We(A, M) * $e : 0, y = R || O ? We(R, O) * $e + d : 0, y && (f *= Math.abs(Math.cos(y * rt))), i.svg && (h -= b - (b * M + C * R), u -= C - (b * A + C * O))) : (Fe = E[6], ji = E[7], dt = E[8], pt = E[9], Ue = E[10], Ee = E[11], h = E[12], u = E[13], p = E[14], P = We(Fe, Ue), g = P * $e, P && (w = Math.cos(-P), T = Math.sin(-P), U = B * w + dt * T, Q = F * w + pt * T, ut = Fe * w + Ue * T, dt = B * -T + dt * w, pt = F * -T + pt * w, Ue = Fe * -T + Ue * w, Ee = ji * -T + Ee * w, B = U, F = Q, Fe = ut), P = We(-R, Ue), _ = P * $e, P && (w = Math.cos(-P), T = Math.sin(-P), U = M * w - dt * T, Q = A * w - pt * T, ut = R * w - Ue * T, Ee = O * T + Ee * w, M = U, A = Q, R = ut), P = We(A, M), d = P * $e, P && (w = Math.cos(P), T = Math.sin(P), U = M * w + A * T, Q = B * w + F * T, A = A * w - M * T, F = F * w - B * T, M = U, B = Q), g && Math.abs(g) + Math.abs(d) > 359.9 && (g = d = 0, _ = 180 - _), m = G(Math.sqrt(M * M + A * A + R * R)), f = G(Math.sqrt(F * F + Fe * Fe)), P = We(B, F), y = Math.abs(P) > 2e-4 ? P * $e : 0, v = Ee ? 1 / (Ee < 0 ? -Ee : Ee) : 0), i.svg && (U = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !Pr(ge(e, $)), U && e.setAttribute("transform", U))), Math.abs(y) > 90 && Math.abs(y) < 270 && (r ? (m *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (f *= -1, y += y <= 0 ? 180 : -180)), t = t || i.uncache, i.x = h - ((i.xPercent = h && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + s, i.y = u - ((i.yPercent = u && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + s, i.z = p + s, i.scaleX = G(m), i.scaleY = G(f), i.rotation = G(d) + o, i.rotationX = G(g) + o, i.rotationY = G(_) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = v + s, (i.zOrigin = parseFloat(c.split(" ")[2]) || !t && i.zOrigin || 0) && (n[ne] = jt(c)), i.xOffset = i.yOffset = 0, i.force3D = he.force3D, i.renderTransform = i.svg ? ua : vr ? Ar : ca, i.uncache = 0, i;
2319
2319
  }, jt = function(e) {
2320
2320
  return (e = e.split(" "))[0] + " " + e[1];
2321
2321
  }, ni = function(e, t, i) {
2322
2322
  var n = X(t);
2323
- return V(parseFloat(t) + parseFloat(Le(e, "x", i + "px", n))) + n;
2323
+ return G(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
2326
  }, ze = "0deg", ft = "0px", Ne = ") ", Ar = function(e, t) {
@@ -2332,7 +2332,7 @@ var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
2332
2332
  g !== ft && (v += "perspective(" + g + Ne), (n || r) && (v += "translate(" + n + "%, " + r + "%) "), (b || s !== ft || o !== ft || l !== ft) && (v += l !== ft || b ? "translate3d(" + s + ", " + o + ", " + l + ") " : "translate(" + s + ", " + o + Ne), c !== ze && (v += "rotate(" + c + Ne), h !== ze && (v += "rotateY(" + h + Ne), u !== ze && (v += "rotateX(" + u + Ne), (p !== ze || m !== ze) && (v += "skew(" + p + ", " + m + Ne), (f !== 1 || d !== 1) && (v += "scale(" + f + ", " + d + Ne), y.style[$] = v || "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), v = parseFloat(o), b, C, E, P, w;
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, E = 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), E *= w, P *= w, h && (w = Math.tan(h), w = Math.sqrt(1 + w * w), b *= w, C *= w)), b = V(b), C = V(C), E = V(E), P = V(P)) : (b = u, P = p, C = E = 0), (x && !~(s + "").indexOf("px") || v && !~(o + "").indexOf("px")) && (x = Le(m, "x", s, "px"), v = Le(m, "y", o, "px")), (f || d || g || _) && (x = V(x + f - (f * b + d * E) + g), v = V(v + d - (f * C + d * P) + _)), (n || r) && (w = m.getBBox(), x = V(x + n / 100 * w.width), v = V(v + r / 100 * w.height)), w = "matrix(" + b + "," + C + "," + E + "," + P + "," + x + "," + v + ")", m.setAttribute("transform", w), y && (m.style[$] = w);
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, E = 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), E *= w, P *= w, h && (w = Math.tan(h), w = Math.sqrt(1 + w * w), b *= w, C *= w)), b = G(b), C = G(C), E = G(E), P = G(P)) : (b = u, P = p, C = E = 0), (x && !~(s + "").indexOf("px") || v && !~(o + "").indexOf("px")) && (x = Le(m, "x", s, "px"), v = Le(m, "y", o, "px")), (f || d || g || _) && (x = G(x + f - (f * b + d * E) + g), v = G(v + d - (f * C + d * P) + _)), (n || r) && (w = m.getBBox(), x = G(x + n / 100 * w.width), v = G(v + r / 100 * w.height)), w = "matrix(" + b + "," + C + "," + E + "," + P + "," + x + "," + v + ")", m.setAttribute("transform", w), y && (m.style[$] = w);
2336
2336
  }, da = function(e, t, i, n, r) {
2337
2337
  var s = 360, o = Z(r), l = parseFloat(r) * (o && ~r.indexOf("rad") ? $e : 1), c = l - n, h = n + c + "deg", u, p;
2338
2338
  return o && (u = r.split("_")[1], u === "short" && (c %= s, c !== c % (s / 2) && (c += c < 0 ? s : -s)), u === "cw" && c < 0 ? c = (c + s * an) % s - ~~(c / s) * s : u === "ccw" && c > 0 && (c = (c - s * an) % s - ~~(c / s) * s)), e._pt = p = new ie(e._pt, t, i, n, c, Xs), p.e = h, p.u = "deg", e._props.push(i), p;
@@ -2431,7 +2431,7 @@ var Tr = {
2431
2431
  },
2432
2432
  core: {
2433
2433
  _removeProperty: Ke,
2434
- _getMatrix: Gi
2434
+ _getMatrix: Vi
2435
2435
  }
2436
2436
  };
2437
2437
  re.utils.checkPrefix = ct;
@@ -3373,7 +3373,7 @@ function Pa(a) {
3373
3373
  t ? document.head.insertBefore(e, t) : document.head.appendChild(e);
3374
3374
  }
3375
3375
  let fn = !1;
3376
- class Vi {
3376
+ class Gi {
3377
3377
  /**
3378
3378
  * Creates a panel that holds controllers.
3379
3379
  * @example
@@ -3493,7 +3493,7 @@ class Vi {
3493
3493
  * @returns {GUI}
3494
3494
  */
3495
3495
  addFolder(e) {
3496
- const t = new Vi({ parent: this, title: e });
3496
+ const t = new Gi({ parent: this, title: e });
3497
3497
  return this.root._closeFolders && t.close(), t;
3498
3498
  }
3499
3499
  /**
@@ -4593,7 +4593,7 @@ function xn(a, e, t) {
4593
4593
  function ai() {
4594
4594
  return { ac: 0, rc: 0, gc: 0, bc: 0, cnt: 0, nn: 0, fw: 0, bk: 0, tm: 0, mtm: 0, err: 0 };
4595
4595
  }
4596
- function Ga(a, e) {
4596
+ function Va(a, e) {
4597
4597
  let t = e === "rgb444" ? 4096 : 65536, i = new Array(t), n = a.length;
4598
4598
  if (e === "rgba4444") for (let r = 0; r < n; ++r) {
4599
4599
  let s = a[r], o = s >> 24 & 255, l = s >> 16 & 255, c = s >> 8 & 255, h = s & 255, u = Or(h, c, l, o), p = u in i ? i[u] : i[u] = ai();
@@ -4609,11 +4609,11 @@ function Ga(a, e) {
4609
4609
  }
4610
4610
  return i;
4611
4611
  }
4612
- function Va(a, e, t = {}) {
4612
+ function Ga(a, e, t = {}) {
4613
4613
  let { format: i = "rgb565", clearAlpha: n = !0, clearAlphaColor: r = 0, clearAlphaThreshold: s = 0, oneBitAlpha: o = !1 } = t;
4614
4614
  if (!a || !a.buffer) throw new Error("quantize() expected RGBA Uint8Array data");
4615
4615
  if (!(a instanceof Uint8Array) && !(a instanceof Uint8ClampedArray)) throw new Error("quantize() expected RGBA Uint8Array data");
4616
- let l = new Uint32Array(a.buffer), c = t.useSqrt !== !1, h = i === "rgba4444", u = Ga(l, i), p = u.length, m = p - 1, f = new Uint32Array(p + 1);
4616
+ let l = new Uint32Array(a.buffer), c = t.useSqrt !== !1, h = i === "rgba4444", u = Va(l, i), p = u.length, m = p - 1, f = new Uint32Array(p + 1);
4617
4617
  for (var d = 0, g = 0; g < p; ++g) {
4618
4618
  let O = u[g];
4619
4619
  if (O != null) {
@@ -4682,30 +4682,30 @@ function ja(a, e, t = "rgb565") {
4682
4682
  function Ya(a, e, t, i, n) {
4683
4683
  let r = 0, s = 1e100;
4684
4684
  for (let o = 0; o < n.length; o++) {
4685
- let l = n[o], c = l[3], h = Ve(c - i);
4685
+ let l = n[o], c = l[3], h = Ge(c - i);
4686
4686
  if (h > s) continue;
4687
4687
  let u = l[0];
4688
- if (h += Ve(u - a), h > s) continue;
4688
+ if (h += Ge(u - a), h > s) continue;
4689
4689
  let p = l[1];
4690
- if (h += Ve(p - e), h > s) continue;
4690
+ if (h += Ge(p - e), h > s) continue;
4691
4691
  let m = l[2];
4692
- h += Ve(m - t), !(h > s) && (s = h, r = o);
4692
+ h += Ge(m - t), !(h > s) && (s = h, r = o);
4693
4693
  }
4694
4694
  return r;
4695
4695
  }
4696
4696
  function Za(a, e, t, i) {
4697
4697
  let n = 0, r = 1e100;
4698
4698
  for (let s = 0; s < i.length; s++) {
4699
- let o = i[s], l = o[0], c = Ve(l - a);
4699
+ let o = i[s], l = o[0], c = Ge(l - a);
4700
4700
  if (c > r) continue;
4701
4701
  let h = o[1];
4702
- if (c += Ve(h - e), c > r) continue;
4702
+ if (c += Ge(h - e), c > r) continue;
4703
4703
  let u = o[2];
4704
- c += Ve(u - t), !(c > r) && (r = c, n = s);
4704
+ c += Ge(u - t), !(c > r) && (r = c, n = s);
4705
4705
  }
4706
4706
  return n;
4707
4707
  }
4708
- function Ve(a) {
4708
+ function Ge(a) {
4709
4709
  return a * a;
4710
4710
  }
4711
4711
  function Ka(a = {}) {
@@ -4963,7 +4963,7 @@ class eo {
4963
4963
  const { fps: t = 20, filename: i } = e, n = Math.round(1e3 / t);
4964
4964
  console.log(`Generating GIF with ${this.frames.length} frames at ${t} fps...`);
4965
4965
  try {
4966
- const r = this.frames[0], s = r.width, o = r.height, l = Va(r.data, 256), c = Ka();
4966
+ const r = this.frames[0], s = r.width, o = r.height, l = Ga(r.data, 256), c = Ka();
4967
4967
  for (let f = 0; f < this.frames.length; f++) {
4968
4968
  const d = this.frames[f], g = ja(d.data, l);
4969
4969
  c.writeFrame(g, s, o, {
@@ -5418,13 +5418,14 @@ class ho {
5418
5418
  }
5419
5419
  tempVector = new S.Vector3();
5420
5420
  cameraDirection = new S.Vector3();
5421
+ tempFlatVector = new S.Vector3();
5421
5422
  updateLabelPosition(e, t, i) {
5422
5423
  const { lat: n, lon: r, element: s } = t, o = n * Math.PI / 180, l = r * Math.PI / 180, c = this.sphereRadius + 0.5, h = c * Math.cos(o) * Math.sin(l), u = c * Math.sin(o), p = c * Math.cos(o) * Math.cos(l), m = 2 * Math.PI * this.sphereRadius, f = Math.PI * this.sphereRadius, d = (r + 180) / 360, g = (n + 90) / 180, _ = (d - 0.5) * m, y = (g - 0.5) * f, x = 0.5;
5423
- if (this.globe && i > 0.01)
5424
- if (this.tempVector.set(h, u, p), this.tempVector.applyEuler(this.globe.rotation), e.position.set(
5425
- this.tempVector.x * i + _ * (1 - i),
5426
- this.tempVector.y * i + y * (1 - i),
5427
- this.tempVector.z * i + x * (1 - i)
5424
+ if (this.globe)
5425
+ if (this.tempVector.set(h, u, p), this.tempVector.applyEuler(this.globe.rotation), this.tempFlatVector.set(_, y, x), this.tempFlatVector.applyEuler(this.globe.rotation), e.position.set(
5426
+ this.tempVector.x * i + this.tempFlatVector.x * (1 - i),
5427
+ this.tempVector.y * i + this.tempFlatVector.y * (1 - i),
5428
+ this.tempVector.z * i + this.tempFlatVector.z * (1 - i)
5428
5429
  ), this.camera && i > 0.5) {
5429
5430
  this.cameraDirection.copy(this.camera.position).normalize();
5430
5431
  const C = this.tempVector.clone().normalize().dot(this.cameraDirection) > 0.15;
@@ -6363,7 +6364,7 @@ class xo {
6363
6364
  this.stars = new S.Points(t, s), this.scene.add(this.stars);
6364
6365
  }
6365
6366
  createGUI() {
6366
- getComputedStyle(this.container).position === "static" && (this.container.style.position = "relative"), this.gui = new Vi({
6367
+ getComputedStyle(this.container).position === "static" && (this.container.style.position = "relative"), this.gui = new Gi({
6367
6368
  container: this.container,
6368
6369
  title: "⚙ Controls",
6369
6370
  width: 220,