gralobe 1.0.53 → 1.0.55

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,12 +1,12 @@
1
1
  import * as A from "three";
2
2
  import { OrbitControls as _n } from "three/examples/jsm/controls/OrbitControls.js";
3
- import { CSS2DRenderer as xn, CSS2DObject as Fi } from "three/examples/jsm/renderers/CSS2DRenderer.js";
4
- function be(o) {
3
+ import { CSS2DRenderer as vn, CSS2DObject as zi } from "three/examples/jsm/renderers/CSS2DRenderer.js";
4
+ function _e(o) {
5
5
  if (o === void 0)
6
6
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7
7
  return o;
8
8
  }
9
- function hr(o, e) {
9
+ function fr(o, e) {
10
10
  o.prototype = Object.create(e.prototype), o.prototype.constructor = o, o.__proto__ = e;
11
11
  }
12
12
  var oe = {
@@ -20,56 +20,56 @@ var oe = {
20
20
  duration: 0.5,
21
21
  overwrite: !1,
22
22
  delay: 0
23
- }, mi, W, U, he = 1e8, O = 1 / he, Jt = Math.PI * 2, bn = Jt / 4, vn = 0, dr = Math.sqrt, En = Math.cos, wn = Math.sin, Y = function(e) {
23
+ }, yi, W, U, he = 1e8, k = 1 / he, ti = Math.PI * 2, En = ti / 4, wn = 0, mr = Math.sqrt, Cn = Math.cos, Pn = Math.sin, Y = function(e) {
24
24
  return typeof e == "string";
25
25
  }, B = function(e) {
26
26
  return typeof e == "function";
27
27
  }, Ee = function(e) {
28
28
  return typeof e == "number";
29
- }, gi = function(e) {
29
+ }, bi = function(e) {
30
30
  return typeof e > "u";
31
- }, _e = function(e) {
31
+ }, be = function(e) {
32
32
  return typeof e == "object";
33
33
  }, Q = function(e) {
34
34
  return e !== !1;
35
- }, yi = function() {
35
+ }, xi = function() {
36
36
  return typeof window < "u";
37
- }, wt = function(e) {
37
+ }, Ct = function(e) {
38
38
  return B(e) || Y(e);
39
- }, pr = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
40
- }, Z = Array.isArray, Qt = /(?:-?\.?\d|\.)+/gi, fr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, We = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Bt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, mr = /[+-]=-?[.\d]+/, gr = /[^,'"\[\]\s]+/gi, Cn = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, z, fe, ei, _i, le = {}, Lt = {}, yr, _r = function(e) {
41
- return (Lt = et(e, le)) && re;
42
- }, xi = function(e, t) {
39
+ }, gr = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
40
+ }, Z = Array.isArray, ii = /(?:-?\.?\d|\.)+/gi, yr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, We = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Ht = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, br = /[+-]=-?[.\d]+/, xr = /[^,'"\[\]\s]+/gi, An = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, z, fe, ri, _i, le = {}, Rt = {}, _r, vr = function(e) {
41
+ return (Rt = et(e, le)) && re;
42
+ }, vi = function(e, t) {
43
43
  return console.warn("Invalid property", e, "set to", t, "Missing plugin? gsap.registerPlugin()");
44
- }, ft = function(e, t) {
44
+ }, mt = function(e, t) {
45
45
  return !t && console.warn(e);
46
- }, xr = function(e, t) {
47
- return e && (le[e] = t) && Lt && (Lt[e] = t) || le;
48
- }, mt = function() {
46
+ }, Er = function(e, t) {
47
+ return e && (le[e] = t) && Rt && (Rt[e] = t) || le;
48
+ }, gt = function() {
49
49
  return 0;
50
- }, Pn = {
50
+ }, Sn = {
51
51
  suppressEvents: !0,
52
52
  isStart: !0,
53
53
  kill: !1
54
- }, St = {
54
+ }, Mt = {
55
55
  suppressEvents: !0,
56
56
  kill: !1
57
- }, An = {
57
+ }, Tn = {
58
58
  suppressEvents: !0
59
- }, bi = {}, Te = [], ti = {}, br, ne = {}, Gt = {}, Ui = 30, Tt = [], vi = "", Ei = function(e) {
59
+ }, Ei = {}, Te = [], ni = {}, wr, ne = {}, jt = {}, Ni = 30, Dt = [], wi = "", Ci = function(e) {
60
60
  var t = e[0], i, r;
61
- if (_e(t) || B(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
62
- for (r = Tt.length; r-- && !Tt[r].targetTest(t); )
61
+ if (be(t) || B(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
62
+ for (r = Dt.length; r-- && !Dt[r].targetTest(t); )
63
63
  ;
64
- i = Tt[r];
64
+ i = Dt[r];
65
65
  }
66
66
  for (r = e.length; r--; )
67
- e[r] && (e[r]._gsap || (e[r]._gsap = new Hr(e[r], i))) || e.splice(r, 1);
67
+ e[r] && (e[r]._gsap || (e[r]._gsap = new Wr(e[r], i))) || e.splice(r, 1);
68
68
  return e;
69
69
  }, $e = function(e) {
70
- return e._gsap || Ei(de(e))[0]._gsap;
71
- }, vr = function(e, t, i) {
72
- return (i = e[t]) && B(i) ? e[t]() : gi(i) && e.getAttribute && e.getAttribute(t) || i;
70
+ return e._gsap || Ci(de(e))[0]._gsap;
71
+ }, Cr = function(e, t, i) {
72
+ return (i = e[t]) && B(i) ? e[t]() : bi(i) && e.getAttribute && e.getAttribute(t) || i;
73
73
  }, ee = function(e, t) {
74
74
  return (e = e.split(",")).forEach(t) || e;
75
75
  }, G = function(e) {
@@ -79,28 +79,28 @@ var oe = {
79
79
  }, qe = function(e, t) {
80
80
  var i = t.charAt(0), r = parseFloat(t.substr(2));
81
81
  return e = parseFloat(e), i === "+" ? e + r : i === "-" ? e - r : i === "*" ? e * r : e / r;
82
- }, Sn = function(e, t) {
82
+ }, Mn = function(e, t) {
83
83
  for (var i = t.length, r = 0; e.indexOf(t[r]) < 0 && ++r < i; )
84
84
  ;
85
85
  return r < i;
86
- }, Rt = function() {
86
+ }, kt = function() {
87
87
  var e = Te.length, t = Te.slice(0), i, r;
88
- for (ti = {}, Te.length = 0, i = 0; i < e; i++)
88
+ for (ni = {}, Te.length = 0, i = 0; i < e; i++)
89
89
  r = t[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
90
- }, wi = function(e) {
90
+ }, Pi = function(e) {
91
91
  return !!(e._initted || e._startAt || e.add);
92
- }, Er = function(e, t, i, r) {
93
- Te.length && !W && Rt(), e.render(t, i, !!(W && t < 0 && wi(e))), Te.length && !W && Rt();
94
- }, wr = function(e) {
92
+ }, Pr = function(e, t, i, r) {
93
+ Te.length && !W && kt(), e.render(t, i, !!(W && t < 0 && Pi(e))), Te.length && !W && kt();
94
+ }, Ar = function(e) {
95
95
  var t = parseFloat(e);
96
- return (t || t === 0) && (e + "").match(gr).length < 2 ? t : Y(e) ? e.trim() : e;
97
- }, Cr = function(e) {
96
+ return (t || t === 0) && (e + "").match(xr).length < 2 ? t : Y(e) ? e.trim() : e;
97
+ }, Sr = function(e) {
98
98
  return e;
99
99
  }, ce = function(e, t) {
100
100
  for (var i in t)
101
101
  i in e || (e[i] = t[i]);
102
102
  return e;
103
- }, Tn = function(e) {
103
+ }, Dn = function(e) {
104
104
  return function(t, i) {
105
105
  for (var r in i)
106
106
  r in t || r === "duration" && e || r === "ease" || (t[r] = i[r]);
@@ -109,32 +109,32 @@ var oe = {
109
109
  for (var i in t)
110
110
  e[i] = t[i];
111
111
  return e;
112
- }, zi = function o(e, t) {
112
+ }, $i = function o(e, t) {
113
113
  for (var i in t)
114
- i !== "__proto__" && i !== "constructor" && i !== "prototype" && (e[i] = _e(t[i]) ? o(e[i] || (e[i] = {}), t[i]) : t[i]);
114
+ i !== "__proto__" && i !== "constructor" && i !== "prototype" && (e[i] = be(t[i]) ? o(e[i] || (e[i] = {}), t[i]) : t[i]);
115
115
  return e;
116
- }, It = function(e, t) {
116
+ }, Ot = function(e, t) {
117
117
  var i = {}, r;
118
118
  for (r in e)
119
119
  r in t || (i[r] = e[r]);
120
120
  return i;
121
- }, ht = function(e) {
122
- var t = e.parent || z, i = e.keyframes ? Tn(Z(e.keyframes)) : ce;
121
+ }, dt = function(e) {
122
+ var t = e.parent || z, i = e.keyframes ? Dn(Z(e.keyframes)) : ce;
123
123
  if (Q(e.inherit))
124
124
  for (; t; )
125
125
  i(e, t.vars.defaults), t = t.parent || t._dp;
126
126
  return e;
127
- }, Mn = function(e, t) {
127
+ }, Ln = function(e, t) {
128
128
  for (var i = e.length, r = i === t.length; r && i-- && e[i] === t[i]; )
129
129
  ;
130
130
  return i < 0;
131
- }, Pr = function(e, t, i, r, n) {
131
+ }, Tr = function(e, t, i, r, n) {
132
132
  var s = e[r], a;
133
133
  if (n)
134
134
  for (a = t[n]; s && s[n] > a; )
135
135
  s = s._prev;
136
136
  return s ? (t._next = s._next, s._next = t) : (t._next = e[i], e[i] = t), t._next ? t._next._prev = t : e[r] = t, t._prev = s, t.parent = t._dp = e, t;
137
- }, zt = function(e, t, i, r) {
137
+ }, Bt = function(e, t, i, r) {
138
138
  i === void 0 && (i = "_first"), r === void 0 && (r = "_last");
139
139
  var n = t._prev, s = t._next;
140
140
  n ? n._next = s : e[i] === t && (e[i] = s), s ? s._prev = n : e[r] === t && (e[r] = n), t._next = t._prev = t.parent = null;
@@ -145,59 +145,59 @@ var oe = {
145
145
  for (var i = e; i; )
146
146
  i._dirty = 1, i = i.parent;
147
147
  return e;
148
- }, Dn = function(e) {
148
+ }, In = function(e) {
149
149
  for (var t = e.parent; t && t.parent; )
150
150
  t._dirty = 1, t.totalDuration(), t = t.parent;
151
151
  return e;
152
- }, ii = function(e, t, i, r) {
153
- return e._startAt && (W ? e._startAt.revert(St) : e.vars.immediateRender && !e.vars.autoRevert || e._startAt.render(t, !0, r));
154
- }, Ln = function o(e) {
152
+ }, si = function(e, t, i, r) {
153
+ return e._startAt && (W ? e._startAt.revert(Mt) : e.vars.immediateRender && !e.vars.autoRevert || e._startAt.render(t, !0, r));
154
+ }, Rn = function o(e) {
155
155
  return !e || e._ts && o(e.parent);
156
- }, Ni = function(e) {
156
+ }, Bi = function(e) {
157
157
  return e._repeat ? tt(e._tTime, e = e.duration() + e._rDelay) * e : 0;
158
158
  }, tt = function(e, t) {
159
159
  var i = Math.floor(e = H(e / t));
160
160
  return e && i === e ? i - 1 : i;
161
- }, Ot = function(e, t) {
161
+ }, Ft = function(e, t) {
162
162
  return (e - t._start) * t._ts + (t._ts >= 0 ? 0 : t._dirty ? t.totalDuration() : t._tDur);
163
- }, Nt = function(e) {
164
- return e._end = H(e._start + (e._tDur / Math.abs(e._ts || e._rts || O) || 0));
165
- }, $t = function(e, t) {
163
+ }, Gt = function(e) {
164
+ return e._end = H(e._start + (e._tDur / Math.abs(e._ts || e._rts || k) || 0));
165
+ }, Vt = function(e, t) {
166
166
  var i = e._dp;
167
- return i && i.smoothChildTiming && e._ts && (e._start = H(i._time - (e._ts > 0 ? t / e._ts : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts)), Nt(e), i._dirty || Be(i, e)), e;
168
- }, Ar = function(e, t) {
167
+ return i && i.smoothChildTiming && e._ts && (e._start = H(i._time - (e._ts > 0 ? t / e._ts : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts)), Gt(e), i._dirty || Be(i, e)), e;
168
+ }, Mr = function(e, t) {
169
169
  var i;
170
- if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (i = Ot(e.rawTime(), t), (!t._dur || Et(0, t.totalDuration(), i) - t._tTime > O) && t.render(i, !0)), Be(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
170
+ if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (i = Ft(e.rawTime(), t), (!t._dur || wt(0, t.totalDuration(), i) - t._tTime > k) && t.render(i, !0)), Be(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
171
171
  if (e._dur < e.duration())
172
172
  for (i = e; i._dp; )
173
173
  i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
174
- e._zTime = -O;
174
+ e._zTime = -k;
175
175
  }
176
176
  }, me = function(e, t, i, r) {
177
- return t.parent && De(t), t._start = H((Ee(i) ? i : i || e !== z ? ue(e, i, t) : e._time) + t._delay), t._end = H(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Pr(e, t, "_first", "_last", e._sort ? "_start" : 0), ri(t) || (e._recent = t), r || Ar(e, t), e._ts < 0 && $t(e, e._tTime), e;
178
- }, Sr = function(e, t) {
179
- return (le.ScrollTrigger || xi("scrollTrigger", t)) && le.ScrollTrigger.create(t, e);
180
- }, Tr = function(e, t, i, r, n) {
181
- if (Pi(e, t, n), !e._initted)
177
+ return t.parent && De(t), t._start = H((Ee(i) ? i : i || e !== z ? ue(e, i, t) : e._time) + t._delay), t._end = H(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Tr(e, t, "_first", "_last", e._sort ? "_start" : 0), ai(t) || (e._recent = t), r || Mr(e, t), e._ts < 0 && Vt(e, e._tTime), e;
178
+ }, Dr = function(e, t) {
179
+ return (le.ScrollTrigger || vi("scrollTrigger", t)) && le.ScrollTrigger.create(t, e);
180
+ }, Lr = function(e, t, i, r, n) {
181
+ if (Si(e, t, n), !e._initted)
182
182
  return 1;
183
- if (!i && e._pt && !W && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && br !== se.frame)
183
+ if (!i && e._pt && !W && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && wr !== se.frame)
184
184
  return Te.push(e), e._lazy = [n, r], 1;
185
- }, Rn = function o(e) {
185
+ }, kn = function o(e) {
186
186
  var t = e.parent;
187
187
  return t && t._ts && t._initted && !t._lock && (t.rawTime() < 0 || o(t));
188
- }, ri = function(e) {
188
+ }, ai = function(e) {
189
189
  var t = e.data;
190
190
  return t === "isFromStart" || t === "isStart";
191
- }, In = function(e, t, i, r) {
192
- var n = e.ratio, s = t < 0 || !t && (!e._start && Rn(e) && !(!e._initted && ri(e)) || (e._ts < 0 || e._dp._ts < 0) && !ri(e)) ? 0 : 1, a = e._rDelay, l = 0, c, u, h;
193
- if (a && e._repeat && (l = Et(0, e._tDur, t), u = tt(l, a), e._yoyo && u & 1 && (s = 1 - s), u !== tt(e._tTime, a) && (n = 1 - s, e.vars.repeatRefresh && e._initted && e.invalidate())), s !== n || W || r || e._zTime === O || !t && e._zTime) {
194
- if (!e._initted && Tr(e, t, r, i, l))
191
+ }, On = function(e, t, i, r) {
192
+ var n = e.ratio, s = t < 0 || !t && (!e._start && kn(e) && !(!e._initted && ai(e)) || (e._ts < 0 || e._dp._ts < 0) && !ai(e)) ? 0 : 1, a = e._rDelay, l = 0, c, u, h;
193
+ if (a && e._repeat && (l = wt(0, e._tDur, t), u = tt(l, a), e._yoyo && u & 1 && (s = 1 - s), u !== tt(e._tTime, a) && (n = 1 - s, e.vars.repeatRefresh && e._initted && e.invalidate())), s !== n || W || r || e._zTime === k || !t && e._zTime) {
194
+ if (!e._initted && Lr(e, t, r, i, l))
195
195
  return;
196
- for (h = e._zTime, e._zTime = t || (i ? O : 0), i || (i = t && !h), e.ratio = s, e._from && (s = 1 - s), e._time = 0, e._tTime = l, c = e._pt; c; )
196
+ for (h = e._zTime, e._zTime = t || (i ? k : 0), i || (i = t && !h), e.ratio = s, e._from && (s = 1 - s), e._time = 0, e._tTime = l, c = e._pt; c; )
197
197
  c.r(s, c.d), c = c._next;
198
- t < 0 && ii(e, t, i, !0), e._onUpdate && !i && ae(e, "onUpdate"), l && e._repeat && !i && e.parent && ae(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === s && (s && De(e, 1), !i && !W && (ae(e, s ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
198
+ t < 0 && si(e, t, i, !0), e._onUpdate && !i && ae(e, "onUpdate"), l && e._repeat && !i && e.parent && ae(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === s && (s && De(e, 1), !i && !W && (ae(e, s ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
199
199
  } else e._zTime || (e._zTime = t);
200
- }, On = function(e, t, i) {
200
+ }, Fn = function(e, t, i) {
201
201
  var r;
202
202
  if (i > t)
203
203
  for (r = e._first; r && r._start <= i; ) {
@@ -213,17 +213,17 @@ var oe = {
213
213
  }
214
214
  }, it = function(e, t, i, r) {
215
215
  var n = e._repeat, s = H(t) || 0, a = e._tTime / e._tDur;
216
- return a && !r && (e._time *= s / e._dur), e._dur = s, e._tDur = n ? n < 0 ? 1e10 : H(s * (n + 1) + e._rDelay * n) : s, a > 0 && !r && $t(e, e._tTime = e._tDur * a), e.parent && Nt(e), i || Be(e.parent, e), e;
217
- }, $i = function(e) {
216
+ return a && !r && (e._time *= s / e._dur), e._dur = s, e._tDur = n ? n < 0 ? 1e10 : H(s * (n + 1) + e._rDelay * n) : s, a > 0 && !r && Vt(e, e._tTime = e._tDur * a), e.parent && Gt(e), i || Be(e.parent, e), e;
217
+ }, Gi = function(e) {
218
218
  return e instanceof K ? Be(e) : it(e, e._dur);
219
- }, kn = {
219
+ }, Un = {
220
220
  _start: 0,
221
- endTime: mt,
222
- totalDuration: mt
221
+ endTime: gt,
222
+ totalDuration: gt
223
223
  }, ue = function o(e, t, i) {
224
- var r = e.labels, n = e._recent || kn, s = e.duration() >= he ? n.endTime(!1) : e._dur, a, l, c;
224
+ var r = e.labels, n = e._recent || Un, s = e.duration() >= he ? n.endTime(!1) : e._dur, a, l, c;
225
225
  return Y(t) && (isNaN(t) || t in r) ? (l = t.charAt(0), c = t.substr(-1) === "%", a = t.indexOf("="), l === "<" || l === ">" ? (a >= 0 && (t = t.replace(/=/, "")), (l === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(t.substr(1)) || 0) * (c ? (a < 0 ? n : i).totalDuration() / 100 : 1)) : a < 0 ? (t in r || (r[t] = s), r[t]) : (l = parseFloat(t.charAt(a - 1) + t.substr(a + 1)), c && i && (l = l / 100 * (Z(i) ? i[0] : i).totalDuration()), a > 1 ? o(e, t.substr(0, a - 1), i) + l : s + l)) : t == null ? s : +t;
226
- }, dt = function(e, t, i) {
226
+ }, pt = function(e, t, i) {
227
227
  var r = Ee(t[1]), n = (r ? 2 : 1) + (e < 2 ? 0 : 1), s = t[n], a, l;
228
228
  if (r && (s.duration = t[1]), s.parent = i, e) {
229
229
  for (a = s, l = i; l && !("immediateRender" in a); )
@@ -231,38 +231,38 @@ var oe = {
231
231
  s.immediateRender = Q(a.immediateRender), e < 2 ? s.runBackwards = 1 : s.startAt = t[n - 1];
232
232
  }
233
233
  return new V(t[0], s, t[n + 1]);
234
- }, Re = function(e, t) {
234
+ }, Ie = function(e, t) {
235
235
  return e || e === 0 ? t(e) : t;
236
- }, Et = function(e, t, i) {
236
+ }, wt = function(e, t, i) {
237
237
  return i < e ? e : i > t ? t : i;
238
238
  }, X = function(e, t) {
239
- return !Y(e) || !(t = Cn.exec(e)) ? "" : t[1];
240
- }, Fn = function(e, t, i) {
241
- return Re(i, function(r) {
242
- return Et(e, t, r);
239
+ return !Y(e) || !(t = An.exec(e)) ? "" : t[1];
240
+ }, zn = function(e, t, i) {
241
+ return Ie(i, function(r) {
242
+ return wt(e, t, r);
243
243
  });
244
- }, ni = [].slice, Mr = function(e, t) {
245
- return e && _e(e) && "length" in e && (!t && !e.length || e.length - 1 in e && _e(e[0])) && !e.nodeType && e !== fe;
246
- }, Un = function(e, t, i) {
244
+ }, oi = [].slice, Ir = function(e, t) {
245
+ return e && be(e) && "length" in e && (!t && !e.length || e.length - 1 in e && be(e[0])) && !e.nodeType && e !== fe;
246
+ }, Nn = function(e, t, i) {
247
247
  return i === void 0 && (i = []), e.forEach(function(r) {
248
248
  var n;
249
- return Y(r) && !t || Mr(r, 1) ? (n = i).push.apply(n, de(r)) : i.push(r);
249
+ return Y(r) && !t || Ir(r, 1) ? (n = i).push.apply(n, de(r)) : i.push(r);
250
250
  }) || i;
251
251
  }, de = function(e, t, i) {
252
- return U && !t && U.selector ? U.selector(e) : Y(e) && !i && (ei || !rt()) ? ni.call((t || _i).querySelectorAll(e), 0) : Z(e) ? Un(e, i) : Mr(e) ? ni.call(e, 0) : e ? [e] : [];
253
- }, si = function(e) {
254
- return e = de(e)[0] || ft("Invalid scope") || {}, function(t) {
252
+ return U && !t && U.selector ? U.selector(e) : Y(e) && !i && (ri || !rt()) ? oi.call((t || _i).querySelectorAll(e), 0) : Z(e) ? Nn(e, i) : Ir(e) ? oi.call(e, 0) : e ? [e] : [];
253
+ }, li = function(e) {
254
+ return e = de(e)[0] || mt("Invalid scope") || {}, function(t) {
255
255
  var i = e.current || e.nativeElement || e;
256
- return de(t, i.querySelectorAll ? i : i === e ? ft("Invalid scope") || _i.createElement("div") : e);
256
+ return de(t, i.querySelectorAll ? i : i === e ? mt("Invalid scope") || _i.createElement("div") : e);
257
257
  };
258
- }, Dr = function(e) {
258
+ }, Rr = function(e) {
259
259
  return e.sort(function() {
260
260
  return 0.5 - Math.random();
261
261
  });
262
- }, Lr = function(e) {
262
+ }, kr = function(e) {
263
263
  if (B(e))
264
264
  return e;
265
- var t = _e(e) ? e : {
265
+ var t = be(e) ? e : {
266
266
  each: e
267
267
  }, i = Ge(t.ease), r = t.from || 0, n = parseFloat(t.base) || 0, s = {}, a = r > 0 && r < 1, l = isNaN(r) || a, c = t.axis, u = r, h = r;
268
268
  return Y(r) ? u = h = {
@@ -270,39 +270,39 @@ var oe = {
270
270
  edges: 0.5,
271
271
  end: 1
272
272
  }[r] || 0 : !a && l && (u = r[0], h = r[1]), function(p, f, m) {
273
- var d = (m || t).length, g = s[d], y, _, x, v, b, C, E, P, w;
273
+ var d = (m || t).length, g = s[d], y, b, x, v, _, C, E, P, w;
274
274
  if (!g) {
275
275
  if (w = t.grid === "auto" ? 0 : (t.grid || [1, he])[1], !w) {
276
276
  for (E = -he; E < (E = m[w++].getBoundingClientRect().left) && w < d; )
277
277
  ;
278
278
  w < d && w--;
279
279
  }
280
- for (g = s[d] = [], y = l ? Math.min(w, d) * u - 0.5 : r % w, _ = w === he ? 0 : l ? d * h / w - 0.5 : r / w | 0, E = 0, P = he, C = 0; C < d; C++)
281
- x = C % w - y, v = _ - (C / w | 0), g[C] = b = c ? Math.abs(c === "y" ? v : x) : dr(x * x + v * v), b > E && (E = b), b < P && (P = b);
282
- r === "random" && Dr(g), g.max = E - P, g.min = P, g.v = d = (parseFloat(t.amount) || parseFloat(t.each) * (w > d ? d - 1 : c ? c === "y" ? d / w : w : Math.max(w, d / w)) || 0) * (r === "edges" ? -1 : 1), g.b = d < 0 ? n - d : n, g.u = X(t.amount || t.each) || 0, i = i && d < 0 ? Br(i) : i;
280
+ for (g = s[d] = [], y = l ? Math.min(w, d) * u - 0.5 : r % w, b = w === he ? 0 : l ? d * h / w - 0.5 : r / w | 0, E = 0, P = he, C = 0; C < d; C++)
281
+ x = C % w - y, v = b - (C / w | 0), g[C] = _ = c ? Math.abs(c === "y" ? v : x) : mr(x * x + v * v), _ > E && (E = _), _ < P && (P = _);
282
+ r === "random" && Rr(g), g.max = E - P, g.min = P, g.v = d = (parseFloat(t.amount) || parseFloat(t.each) * (w > d ? d - 1 : c ? c === "y" ? d / w : w : Math.max(w, d / w)) || 0) * (r === "edges" ? -1 : 1), g.b = d < 0 ? n - d : n, g.u = X(t.amount || t.each) || 0, i = i && d < 0 ? Hr(i) : i;
283
283
  }
284
284
  return d = (g[p] - g.min) / g.max || 0, H(g.b + (i ? i(d) : d) * g.v) + g.u;
285
285
  };
286
- }, ai = function(e) {
286
+ }, ci = function(e) {
287
287
  var t = Math.pow(10, ((e + "").split(".")[1] || "").length);
288
288
  return function(i) {
289
289
  var r = H(Math.round(parseFloat(i) / e) * e * t);
290
290
  return (r - r % 1) / t + (Ee(i) ? 0 : X(i));
291
291
  };
292
- }, Rr = function(e, t) {
292
+ }, Or = function(e, t) {
293
293
  var i = Z(e), r, n;
294
- return !i && _e(e) && (r = i = e.radius || he, e.values ? (e = de(e.values), (n = !Ee(e[0])) && (r *= r)) : e = ai(e.increment)), Re(t, i ? B(e) ? function(s) {
294
+ return !i && be(e) && (r = i = e.radius || he, e.values ? (e = de(e.values), (n = !Ee(e[0])) && (r *= r)) : e = ci(e.increment)), Ie(t, i ? B(e) ? function(s) {
295
295
  return n = e(s), Math.abs(n - s) <= r ? n : s;
296
296
  } : function(s) {
297
297
  for (var a = parseFloat(n ? s.x : s), l = parseFloat(n ? s.y : 0), c = he, u = 0, h = e.length, p, f; h--; )
298
298
  n ? (p = e[h].x - a, f = e[h].y - l, p = p * p + f * f) : p = Math.abs(e[h] - a), p < c && (c = p, u = h);
299
299
  return u = !r || c <= r ? e[u] : s, n || u === s || Ee(s) ? u : u + X(s);
300
- } : ai(e));
301
- }, Ir = function(e, t, i, r) {
302
- return Re(Z(e) ? !t : i === !0 ? !!(i = 0) : !r, function() {
300
+ } : ci(e));
301
+ }, Fr = function(e, t, i, r) {
302
+ return Ie(Z(e) ? !t : i === !0 ? !!(i = 0) : !r, function() {
303
303
  return Z(e) ? e[~~(Math.random() * e.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((e - i / 2 + Math.random() * (t - e + i * 0.99)) / i) * i * r) / r;
304
304
  });
305
- }, zn = function() {
305
+ }, $n = function() {
306
306
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
307
307
  t[i] = arguments[i];
308
308
  return function(r) {
@@ -310,36 +310,36 @@ var oe = {
310
310
  return s(n);
311
311
  }, r);
312
312
  };
313
- }, Nn = function(e, t) {
313
+ }, Bn = function(e, t) {
314
314
  return function(i) {
315
315
  return e(parseFloat(i)) + (t || X(i));
316
316
  };
317
- }, $n = function(e, t, i) {
318
- return kr(e, t, 0, 1, i);
319
- }, Or = function(e, t, i) {
320
- return Re(i, function(r) {
317
+ }, Gn = function(e, t, i) {
318
+ return zr(e, t, 0, 1, i);
319
+ }, Ur = function(e, t, i) {
320
+ return Ie(i, function(r) {
321
321
  return e[~~t(r)];
322
322
  });
323
- }, Bn = function o(e, t, i) {
323
+ }, Vn = function o(e, t, i) {
324
324
  var r = t - e;
325
- return Z(e) ? Or(e, o(0, e.length), t) : Re(i, function(n) {
325
+ return Z(e) ? Ur(e, o(0, e.length), t) : Ie(i, function(n) {
326
326
  return (r + (n - e) % r) % r + e;
327
327
  });
328
- }, Gn = function o(e, t, i) {
328
+ }, Hn = function o(e, t, i) {
329
329
  var r = t - e, n = r * 2;
330
- return Z(e) ? Or(e, o(0, e.length - 1), t) : Re(i, function(s) {
330
+ return Z(e) ? Ur(e, o(0, e.length - 1), t) : Ie(i, function(s) {
331
331
  return s = (n + (s - e) % n) % n || 0, e + (s > r ? n - s : s);
332
332
  });
333
- }, gt = function(e) {
333
+ }, yt = function(e) {
334
334
  for (var t = 0, i = "", r, n, s, a; ~(r = e.indexOf("random(", t)); )
335
- s = e.indexOf(")", r), a = e.charAt(r + 7) === "[", n = e.substr(r + 7, s - r - 7).match(a ? gr : Qt), i += e.substr(t, r - t) + Ir(a ? n : +n[0], a ? 0 : +n[1], +n[2] || 1e-5), t = s + 1;
335
+ s = e.indexOf(")", r), a = e.charAt(r + 7) === "[", n = e.substr(r + 7, s - r - 7).match(a ? xr : ii), i += e.substr(t, r - t) + Fr(a ? n : +n[0], a ? 0 : +n[1], +n[2] || 1e-5), t = s + 1;
336
336
  return i + e.substr(t, e.length - t);
337
- }, kr = function(e, t, i, r, n) {
337
+ }, zr = function(e, t, i, r, n) {
338
338
  var s = t - e, a = r - i;
339
- return Re(n, function(l) {
339
+ return Ie(n, function(l) {
340
340
  return i + ((l - e) / s * a || 0);
341
341
  });
342
- }, Vn = function o(e, t, i, r) {
342
+ }, jn = function o(e, t, i, r) {
343
343
  var n = isNaN(e + t) ? 0 : function(f) {
344
344
  return (1 - f) * e + f * t;
345
345
  };
@@ -362,14 +362,14 @@ var oe = {
362
362
  } else r || (e = et(Z(e) ? [] : {}, e));
363
363
  if (!u) {
364
364
  for (l in t)
365
- Ci.call(a, e, l, "get", t[l]);
365
+ Ai.call(a, e, l, "get", t[l]);
366
366
  n = function(m) {
367
- return Ti(m, a) || (s ? e.p : e);
367
+ return Di(m, a) || (s ? e.p : e);
368
368
  };
369
369
  }
370
370
  }
371
- return Re(i, n);
372
- }, Bi = function(e, t, i) {
371
+ return Ie(i, n);
372
+ }, Vi = function(e, t, i) {
373
373
  var r = e.labels, n = he, s, a, l;
374
374
  for (s in r)
375
375
  a = r[s] - t, a < 0 == !!i && a && n > (a = Math.abs(a)) && (l = s, n = a);
@@ -377,90 +377,90 @@ var oe = {
377
377
  }, ae = function(e, t, i) {
378
378
  var r = e.vars, n = r[t], s = U, a = e._ctx, l, c, u;
379
379
  if (n)
380
- return l = r[t + "Params"], c = r.callbackScope || e, i && Te.length && Rt(), a && (U = a), u = l ? n.apply(c, l) : n.call(c), U = s, u;
380
+ return l = r[t + "Params"], c = r.callbackScope || e, i && Te.length && kt(), a && (U = a), u = l ? n.apply(c, l) : n.call(c), U = s, u;
381
381
  }, ct = function(e) {
382
382
  return De(e), e.scrollTrigger && e.scrollTrigger.kill(!!W), e.progress() < 1 && ae(e, "onInterrupt"), e;
383
- }, Xe, Fr = [], Ur = function(e) {
383
+ }, Xe, Nr = [], $r = function(e) {
384
384
  if (e)
385
- if (e = !e.name && e.default || e, yi() || e.headless) {
385
+ if (e = !e.name && e.default || e, xi() || e.headless) {
386
386
  var t = e.name, i = B(e), r = t && !i && e.init ? function() {
387
387
  this._props = [];
388
388
  } : e, n = {
389
- init: mt,
390
- render: Ti,
391
- add: Ci,
392
- kill: ss,
393
- modifier: ns,
389
+ init: gt,
390
+ render: Di,
391
+ add: Ai,
392
+ kill: os,
393
+ modifier: as,
394
394
  rawVars: 0
395
395
  }, s = {
396
396
  targetTest: 0,
397
397
  get: 0,
398
- getSetter: Si,
398
+ getSetter: Mi,
399
399
  aliases: {},
400
400
  register: 0
401
401
  };
402
402
  if (rt(), e !== r) {
403
403
  if (ne[t])
404
404
  return;
405
- ce(r, ce(It(e, n), s)), et(r.prototype, et(n, It(e, s))), ne[r.prop = t] = r, e.targetTest && (Tt.push(r), bi[t] = 1), t = (t === "css" ? "CSS" : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin";
405
+ ce(r, ce(Ot(e, n), s)), et(r.prototype, et(n, Ot(e, s))), ne[r.prop = t] = r, e.targetTest && (Dt.push(r), Ei[t] = 1), t = (t === "css" ? "CSS" : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin";
406
406
  }
407
- xr(t, r), e.register && e.register(re, r, te);
407
+ Er(t, r), e.register && e.register(re, r, te);
408
408
  } else
409
- Fr.push(e);
410
- }, I = 255, ut = {
411
- aqua: [0, I, I],
412
- lime: [0, I, 0],
409
+ Nr.push(e);
410
+ }, R = 255, ut = {
411
+ aqua: [0, R, R],
412
+ lime: [0, R, 0],
413
413
  silver: [192, 192, 192],
414
414
  black: [0, 0, 0],
415
415
  maroon: [128, 0, 0],
416
416
  teal: [0, 128, 128],
417
- blue: [0, 0, I],
417
+ blue: [0, 0, R],
418
418
  navy: [0, 0, 128],
419
- white: [I, I, I],
419
+ white: [R, R, R],
420
420
  olive: [128, 128, 0],
421
- yellow: [I, I, 0],
422
- orange: [I, 165, 0],
421
+ yellow: [R, R, 0],
422
+ orange: [R, 165, 0],
423
423
  gray: [128, 128, 128],
424
424
  purple: [128, 0, 128],
425
425
  green: [0, 128, 0],
426
- red: [I, 0, 0],
427
- pink: [I, 192, 203],
428
- cyan: [0, I, I],
429
- transparent: [I, I, I, 0]
430
- }, Vt = function(e, t, i) {
431
- return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? t + (i - t) * e * 6 : e < 0.5 ? i : e * 3 < 2 ? t + (i - t) * (2 / 3 - e) * 6 : t) * I + 0.5 | 0;
432
- }, zr = function(e, t, i) {
433
- var r = e ? Ee(e) ? [e >> 16, e >> 8 & I, e & I] : 0 : ut.black, n, s, a, l, c, u, h, p, f, m;
426
+ red: [R, 0, 0],
427
+ pink: [R, 192, 203],
428
+ cyan: [0, R, R],
429
+ transparent: [R, R, R, 0]
430
+ }, Yt = function(e, t, i) {
431
+ return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? t + (i - t) * e * 6 : e < 0.5 ? i : e * 3 < 2 ? t + (i - t) * (2 / 3 - e) * 6 : t) * R + 0.5 | 0;
432
+ }, Br = function(e, t, i) {
433
+ var r = e ? Ee(e) ? [e >> 16, e >> 8 & R, e & R] : 0 : ut.black, n, s, a, l, c, u, h, p, f, m;
434
434
  if (!r) {
435
435
  if (e.substr(-1) === "," && (e = e.substr(0, e.length - 1)), ut[e])
436
436
  r = ut[e];
437
437
  else if (e.charAt(0) === "#") {
438
438
  if (e.length < 6 && (n = e.charAt(1), s = e.charAt(2), a = e.charAt(3), e = "#" + n + n + s + s + a + a + (e.length === 5 ? e.charAt(4) + e.charAt(4) : "")), e.length === 9)
439
- return r = parseInt(e.substr(1, 6), 16), [r >> 16, r >> 8 & I, r & I, parseInt(e.substr(7), 16) / 255];
440
- e = parseInt(e.substr(1), 16), r = [e >> 16, e >> 8 & I, e & I];
439
+ return r = parseInt(e.substr(1, 6), 16), [r >> 16, r >> 8 & R, r & R, parseInt(e.substr(7), 16) / 255];
440
+ e = parseInt(e.substr(1), 16), r = [e >> 16, e >> 8 & R, e & R];
441
441
  } else if (e.substr(0, 3) === "hsl") {
442
- if (r = m = e.match(Qt), !t)
443
- l = +r[0] % 360 / 360, c = +r[1] / 100, u = +r[2] / 100, s = u <= 0.5 ? u * (c + 1) : u + c - u * c, n = u * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = Vt(l + 1 / 3, n, s), r[1] = Vt(l, n, s), r[2] = Vt(l - 1 / 3, n, s);
442
+ if (r = m = e.match(ii), !t)
443
+ l = +r[0] % 360 / 360, c = +r[1] / 100, u = +r[2] / 100, s = u <= 0.5 ? u * (c + 1) : u + c - u * c, n = u * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = Yt(l + 1 / 3, n, s), r[1] = Yt(l, n, s), r[2] = Yt(l - 1 / 3, n, s);
444
444
  else if (~e.indexOf("="))
445
- return r = e.match(fr), i && r.length < 4 && (r[3] = 1), r;
445
+ return r = e.match(yr), i && r.length < 4 && (r[3] = 1), r;
446
446
  } else
447
- r = e.match(Qt) || ut.transparent;
447
+ r = e.match(ii) || ut.transparent;
448
448
  r = r.map(Number);
449
449
  }
450
- return t && !m && (n = r[0] / I, s = r[1] / I, a = r[2] / I, h = Math.max(n, s, a), p = Math.min(n, s, a), u = (h + p) / 2, h === p ? l = c = 0 : (f = h - p, c = u > 0.5 ? f / (2 - h - p) : f / (h + p), l = h === n ? (s - a) / f + (s < a ? 6 : 0) : h === s ? (a - n) / f + 2 : (n - s) / f + 4, l *= 60), r[0] = ~~(l + 0.5), r[1] = ~~(c * 100 + 0.5), r[2] = ~~(u * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
451
- }, Nr = function(e) {
450
+ return t && !m && (n = r[0] / R, s = r[1] / R, a = r[2] / R, h = Math.max(n, s, a), p = Math.min(n, s, a), u = (h + p) / 2, h === p ? l = c = 0 : (f = h - p, c = u > 0.5 ? f / (2 - h - p) : f / (h + p), l = h === n ? (s - a) / f + (s < a ? 6 : 0) : h === s ? (a - n) / f + 2 : (n - s) / f + 4, l *= 60), r[0] = ~~(l + 0.5), r[1] = ~~(c * 100 + 0.5), r[2] = ~~(u * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
451
+ }, Gr = function(e) {
452
452
  var t = [], i = [], r = -1;
453
453
  return e.split(Me).forEach(function(n) {
454
454
  var s = n.match(We) || [];
455
455
  t.push.apply(t, s), i.push(r += s.length + 1);
456
456
  }), t.c = i, t;
457
- }, Gi = function(e, t, i) {
457
+ }, Hi = function(e, t, i) {
458
458
  var r = "", n = (e + r).match(Me), s = t ? "hsla(" : "rgba(", a = 0, l, c, u, h;
459
459
  if (!n)
460
460
  return e;
461
461
  if (n = n.map(function(p) {
462
- return (p = zr(p, t, 1)) && s + (t ? p[0] + "," + p[1] + "%," + p[2] + "%," + p[3] : p.join(",")) + ")";
463
- }), i && (u = Nr(e), l = i.c, l.join(r) !== u.c.join(r)))
462
+ return (p = Br(p, t, 1)) && s + (t ? p[0] + "," + p[1] + "%," + p[2] + "%," + p[3] : p.join(",")) + ")";
463
+ }), i && (u = Gr(e), l = i.c, l.join(r) !== u.c.join(r)))
464
464
  for (c = e.replace(Me, "1").split(We), h = c.length - 1; a < h; a++)
465
465
  r += c[a] + (~l.indexOf(a) ? n.shift() || s + "0,0,0,0)" : (u.length ? u : n.length ? n : i).shift());
466
466
  if (!c)
@@ -472,16 +472,16 @@ var oe = {
472
472
  for (e in ut)
473
473
  o += "|" + e + "\\b";
474
474
  return new RegExp(o + ")", "gi");
475
- })(), Hn = /hsl[a]?\(/, $r = function(e) {
475
+ })(), Yn = /hsl[a]?\(/, Vr = function(e) {
476
476
  var t = e.join(" "), i;
477
477
  if (Me.lastIndex = 0, Me.test(t))
478
- return i = Hn.test(t), e[1] = Gi(e[1], i), e[0] = Gi(e[0], i, Nr(e[1])), !0;
479
- }, yt, se = (function() {
478
+ return i = Yn.test(t), e[1] = Hi(e[1], i), e[0] = Hi(e[0], i, Gr(e[1])), !0;
479
+ }, bt, se = (function() {
480
480
  var o = Date.now, e = 500, t = 33, i = o(), r = i, n = 1e3 / 240, s = n, a = [], l, c, u, h, p, f, m = function d(g) {
481
- var y = o() - r, _ = g === !0, x, v, b, C;
482
- if ((y > e || y < 0) && (i += y - t), r += y, b = r - i, x = b - s, (x > 0 || _) && (C = ++h.frame, p = b - h.time * 1e3, h.time = b = b / 1e3, s += x + (x >= n ? 4 : n - x), v = 1), _ || (l = c(d)), v)
481
+ var y = o() - r, b = g === !0, x, v, _, C;
482
+ if ((y > e || y < 0) && (i += y - t), r += y, _ = r - i, x = _ - s, (x > 0 || b) && (C = ++h.frame, p = _ - h.time * 1e3, h.time = _ = _ / 1e3, s += x + (x >= n ? 4 : n - x), v = 1), b || (l = c(d)), v)
483
483
  for (f = 0; f < a.length; f++)
484
- a[f](b, p, C, g);
484
+ a[f](_, p, C, g);
485
485
  };
486
486
  return h = {
487
487
  time: 0,
@@ -493,12 +493,12 @@ var oe = {
493
493
  return p / (1e3 / (g || 60));
494
494
  },
495
495
  wake: function() {
496
- yr && (!ei && yi() && (fe = ei = window, _i = fe.document || {}, le.gsap = re, (fe.gsapVersions || (fe.gsapVersions = [])).push(re.version), _r(Lt || fe.GreenSockGlobals || !fe.gsap && fe || {}), Fr.forEach(Ur)), u = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && h.sleep(), c = u || function(g) {
496
+ _r && (!ri && xi() && (fe = ri = window, _i = fe.document || {}, le.gsap = re, (fe.gsapVersions || (fe.gsapVersions = [])).push(re.version), vr(Rt || fe.GreenSockGlobals || !fe.gsap && fe || {}), Nr.forEach($r)), u = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && h.sleep(), c = u || function(g) {
497
497
  return setTimeout(g, s - h.time * 1e3 + 1 | 0);
498
- }, yt = 1, m(2));
498
+ }, bt = 1, m(2));
499
499
  },
500
500
  sleep: function() {
501
- (u ? cancelAnimationFrame : clearTimeout)(l), yt = 0, c = mt;
501
+ (u ? cancelAnimationFrame : clearTimeout)(l), bt = 0, c = gt;
502
502
  },
503
503
  lagSmoothing: function(g, y) {
504
504
  e = g || 1 / 0, t = Math.min(y || 33, e);
@@ -506,11 +506,11 @@ var oe = {
506
506
  fps: function(g) {
507
507
  n = 1e3 / (g || 240), s = h.time * 1e3 + n;
508
508
  },
509
- add: function(g, y, _) {
510
- var x = y ? function(v, b, C, E) {
511
- g(v, b, C, E), h.remove(x);
509
+ add: function(g, y, b) {
510
+ var x = y ? function(v, _, C, E) {
511
+ g(v, _, C, E), h.remove(x);
512
512
  } : g;
513
- return h.remove(g), a[_ ? "unshift" : "push"](x), rt(), x;
513
+ return h.remove(g), a[b ? "unshift" : "push"](x), rt(), x;
514
514
  },
515
515
  remove: function(g, y) {
516
516
  ~(y = a.indexOf(g)) && a.splice(y, 1) && f >= y && f--;
@@ -518,26 +518,26 @@ var oe = {
518
518
  _listeners: a
519
519
  }, h;
520
520
  })(), rt = function() {
521
- return !yt && se.wake();
522
- }, M = {}, jn = /^[\d.\-M][\d.\-,\s]/, Yn = /["']/g, Wn = function(e) {
521
+ return !bt && se.wake();
522
+ }, M = {}, Wn = /^[\d.\-M][\d.\-,\s]/, Xn = /["']/g, Zn = function(e) {
523
523
  for (var t = {}, i = e.substr(1, e.length - 3).split(":"), r = i[0], n = 1, s = i.length, a, l, c; n < s; n++)
524
- l = i[n], a = n !== s - 1 ? l.lastIndexOf(",") : l.length, c = l.substr(0, a), t[r] = isNaN(c) ? c.replace(Yn, "").trim() : +c, r = l.substr(a + 1).trim();
524
+ l = i[n], a = n !== s - 1 ? l.lastIndexOf(",") : l.length, c = l.substr(0, a), t[r] = isNaN(c) ? c.replace(Xn, "").trim() : +c, r = l.substr(a + 1).trim();
525
525
  return t;
526
- }, Xn = function(e) {
526
+ }, qn = function(e) {
527
527
  var t = e.indexOf("(") + 1, i = e.indexOf(")"), r = e.indexOf("(", t);
528
528
  return e.substring(t, ~r && r < i ? e.indexOf(")", i + 1) : i);
529
- }, Zn = function(e) {
529
+ }, Kn = function(e) {
530
530
  var t = (e + "").split("("), i = M[t[0]];
531
- return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [Wn(t[1])] : Xn(e).split(",").map(wr)) : M._CE && jn.test(e) ? M._CE("", e) : i;
532
- }, Br = function(e) {
531
+ return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [Zn(t[1])] : qn(e).split(",").map(Ar)) : M._CE && Wn.test(e) ? M._CE("", e) : i;
532
+ }, Hr = function(e) {
533
533
  return function(t) {
534
534
  return 1 - e(1 - t);
535
535
  };
536
- }, Gr = function o(e, t) {
536
+ }, jr = function o(e, t) {
537
537
  for (var i = e._first, r; i; )
538
538
  i instanceof K ? o(i, t) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== t && (i.timeline ? o(i.timeline, t) : (r = i._ease, i._ease = i._yEase, i._yEase = r, i._yoyo = t)), i = i._next;
539
539
  }, Ge = function(e, t) {
540
- return e && (B(e) ? e : M[e] || Zn(e)) || t;
540
+ return e && (B(e) ? e : M[e] || Kn(e)) || t;
541
541
  }, je = function(e, t, i, r) {
542
542
  i === void 0 && (i = function(l) {
543
543
  return 1 - t(1 - l);
@@ -554,26 +554,26 @@ var oe = {
554
554
  for (var l in n)
555
555
  M[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = M[a + "." + l] = n[l];
556
556
  }), n;
557
- }, Vr = function(e) {
557
+ }, Yr = function(e) {
558
558
  return function(t) {
559
559
  return t < 0.5 ? (1 - e(1 - t * 2)) / 2 : 0.5 + e((t - 0.5) * 2) / 2;
560
560
  };
561
- }, Ht = function o(e, t, i) {
562
- var r = t >= 1 ? t : 1, n = (i || (e ? 0.3 : 0.45)) / (t < 1 ? t : 1), s = n / Jt * (Math.asin(1 / r) || 0), a = function(u) {
563
- return u === 1 ? 1 : r * Math.pow(2, -10 * u) * wn((u - s) * n) + 1;
561
+ }, Wt = function o(e, t, i) {
562
+ var r = t >= 1 ? t : 1, n = (i || (e ? 0.3 : 0.45)) / (t < 1 ? t : 1), s = n / ti * (Math.asin(1 / r) || 0), a = function(u) {
563
+ return u === 1 ? 1 : r * Math.pow(2, -10 * u) * Pn((u - s) * n) + 1;
564
564
  }, l = e === "out" ? a : e === "in" ? function(c) {
565
565
  return 1 - a(1 - c);
566
- } : Vr(a);
567
- return n = Jt / n, l.config = function(c, u) {
566
+ } : Yr(a);
567
+ return n = ti / n, l.config = function(c, u) {
568
568
  return o(e, c, u);
569
569
  }, l;
570
- }, jt = function o(e, t) {
570
+ }, Xt = function o(e, t) {
571
571
  t === void 0 && (t = 1.70158);
572
572
  var i = function(s) {
573
573
  return s ? --s * s * ((t + 1) * s + t) + 1 : 0;
574
574
  }, r = e === "out" ? i : e === "in" ? function(n) {
575
575
  return 1 - i(1 - n);
576
- } : Vr(i);
576
+ } : Yr(i);
577
577
  return r.config = function(n) {
578
578
  return o(e, n);
579
579
  }, r;
@@ -591,7 +591,7 @@ ee("Linear,Quad,Cubic,Quart,Quint,Strong", function(o, e) {
591
591
  });
592
592
  });
593
593
  M.Linear.easeNone = M.none = M.Linear.easeIn;
594
- je("Elastic", Ht("in"), Ht("out"), Ht());
594
+ je("Elastic", Wt("in"), Wt("out"), Wt());
595
595
  (function(o, e) {
596
596
  var t = 1 / e, i = 2 * t, r = 2.5 * t, n = function(a) {
597
597
  return a < t ? o * a * a : a < i ? o * Math.pow(a - 1.5 / e, 2) + 0.75 : a < r ? o * (a -= 2.25 / e) * a + 0.9375 : o * Math.pow(a - 2.625 / e, 2) + 0.984375;
@@ -604,30 +604,30 @@ je("Expo", function(o) {
604
604
  return Math.pow(2, 10 * (o - 1)) * o + o * o * o * o * o * o * (1 - o);
605
605
  });
606
606
  je("Circ", function(o) {
607
- return -(dr(1 - o * o) - 1);
607
+ return -(mr(1 - o * o) - 1);
608
608
  });
609
609
  je("Sine", function(o) {
610
- return o === 1 ? 1 : -En(o * bn) + 1;
610
+ return o === 1 ? 1 : -Cn(o * En) + 1;
611
611
  });
612
- je("Back", jt("in"), jt("out"), jt());
612
+ je("Back", Xt("in"), Xt("out"), Xt());
613
613
  M.SteppedEase = M.steps = le.SteppedEase = {
614
614
  config: function(e, t) {
615
615
  e === void 0 && (e = 1);
616
- var i = 1 / e, r = e + (t ? 0 : 1), n = t ? 1 : 0, s = 1 - O;
616
+ var i = 1 / e, r = e + (t ? 0 : 1), n = t ? 1 : 0, s = 1 - k;
617
617
  return function(a) {
618
- return ((r * Et(0, s, a) | 0) + n) * i;
618
+ return ((r * wt(0, s, a) | 0) + n) * i;
619
619
  };
620
620
  }
621
621
  };
622
622
  Qe.ease = M["quad.out"];
623
623
  ee("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(o) {
624
- return vi += o + "," + o + "Params,";
624
+ return wi += o + "," + o + "Params,";
625
625
  });
626
- var Hr = function(e, t) {
627
- this.id = vn++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : vr, this.set = t ? t.getSetter : Si;
628
- }, _t = /* @__PURE__ */ (function() {
626
+ var Wr = function(e, t) {
627
+ this.id = wn++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : Cr, this.set = t ? t.getSetter : Mi;
628
+ }, xt = /* @__PURE__ */ (function() {
629
629
  function o(t) {
630
- 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, it(this, +t.duration, 1, 1), this.data = t.data, U && (this._ctx = U, U.data.push(this)), yt || se.wake();
630
+ 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, it(this, +t.duration, 1, 1), this.data = t.data, U && (this._ctx = U, U.data.push(this)), bt || se.wake();
631
631
  }
632
632
  var e = o.prototype;
633
633
  return e.delay = function(i) {
@@ -641,29 +641,29 @@ var Hr = function(e, t) {
641
641
  return this._tTime;
642
642
  var n = this._dp;
643
643
  if (n && n.smoothChildTiming && this._ts) {
644
- for ($t(this, i), !n._dp || n.parent || Ar(n, this); n && n.parent; )
644
+ for (Vt(this, i), !n._dp || n.parent || Mr(n, this); n && n.parent; )
645
645
  n.parent._time !== n._start + (n._ts >= 0 ? n._tTime / n._ts : (n.totalDuration() - n._tTime) / -n._ts) && n.totalTime(n._tTime, !0), n = n.parent;
646
646
  !this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && me(this._dp, this, this._start - this._delay);
647
647
  }
648
- return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === O || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), Er(this, i, r)), this;
648
+ return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === k || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), Pr(this, i, r)), this;
649
649
  }, e.time = function(i, r) {
650
- return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + Ni(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
650
+ return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + Bi(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
651
651
  }, e.totalProgress = function(i, r) {
652
652
  return arguments.length ? this.totalTime(this.totalDuration() * i, r) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
653
653
  }, e.progress = function(i, r) {
654
- return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + Ni(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
654
+ return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + Bi(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
655
655
  }, e.iteration = function(i, r) {
656
656
  var n = this.duration() + this._rDelay;
657
657
  return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? tt(this._tTime, n) + 1 : 1;
658
658
  }, e.timeScale = function(i, r) {
659
659
  if (!arguments.length)
660
- return this._rts === -O ? 0 : this._rts;
660
+ return this._rts === -k ? 0 : this._rts;
661
661
  if (this._rts === i)
662
662
  return this;
663
- var n = this.parent && this._ts ? Ot(this.parent._time, this) : this._tTime;
664
- return this._rts = +i || 0, this._ts = this._ps || i === -O ? 0 : this._rts, this.totalTime(Et(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), Nt(this), Dn(this);
663
+ var n = this.parent && this._ts ? Ft(this.parent._time, this) : this._tTime;
664
+ return this._rts = +i || 0, this._ts = this._ps || i === -k ? 0 : this._rts, this.totalTime(wt(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), Gt(this), In(this);
665
665
  }, e.paused = function(i) {
666
- 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) : (rt(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== O && (this._tTime -= O)))), this) : this._ps;
666
+ 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) : (rt(), 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;
667
667
  }, e.startTime = function(i) {
668
668
  if (arguments.length) {
669
669
  this._start = i;
@@ -675,21 +675,21 @@ var Hr = function(e, t) {
675
675
  return this._start + (Q(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
676
676
  }, e.rawTime = function(i) {
677
677
  var r = this.parent || this._dp;
678
- return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Ot(r.rawTime(i), this) : this._tTime : this._tTime;
678
+ return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Ft(r.rawTime(i), this) : this._tTime : this._tTime;
679
679
  }, e.revert = function(i) {
680
- i === void 0 && (i = An);
680
+ i === void 0 && (i = Tn);
681
681
  var r = W;
682
- return W = i, wi(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), W = r, this;
682
+ return W = i, Pi(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), W = r, this;
683
683
  }, e.globalTime = function(i) {
684
684
  for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
685
685
  n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
686
686
  return !this.parent && this._sat ? this._sat.globalTime(i) : n;
687
687
  }, e.repeat = function(i) {
688
- return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, $i(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
688
+ return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, Gi(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
689
689
  }, e.repeatDelay = function(i) {
690
690
  if (arguments.length) {
691
691
  var r = this._time;
692
- return this._rDelay = i, $i(this), r ? this.time(r) : this;
692
+ return this._rDelay = i, Gi(this), r ? this.time(r) : this;
693
693
  }
694
694
  return this._rDelay;
695
695
  }, e.yoyo = function(i) {
@@ -697,7 +697,7 @@ var Hr = function(e, t) {
697
697
  }, e.seek = function(i, r) {
698
698
  return this.totalTime(ue(this, i), Q(r));
699
699
  }, e.restart = function(i, r) {
700
- return this.play().totalTime(i ? -this._delay : 0, Q(r)), this._dur || (this._zTime = -O), this;
700
+ return this.play().totalTime(i ? -this._delay : 0, Q(r)), this._dur || (this._zTime = -k), this;
701
701
  }, e.play = function(i, r) {
702
702
  return i != null && this.seek(i, r), this.reversed(!1).paused(!1);
703
703
  }, e.reverse = function(i, r) {
@@ -707,19 +707,19 @@ var Hr = function(e, t) {
707
707
  }, e.resume = function() {
708
708
  return this.paused(!1);
709
709
  }, e.reversed = function(i) {
710
- return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -O : 0)), this) : this._rts < 0;
710
+ return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -k : 0)), this) : this._rts < 0;
711
711
  }, e.invalidate = function() {
712
- return this._initted = this._act = 0, this._zTime = -O, this;
712
+ return this._initted = this._act = 0, this._zTime = -k, this;
713
713
  }, e.isActive = function() {
714
714
  var i = this.parent || this._dp, r = this._start, n;
715
- return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) - O);
715
+ return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) - k);
716
716
  }, e.eventCallback = function(i, r, n) {
717
717
  var s = this.vars;
718
718
  return arguments.length > 1 ? (r ? (s[i] = r, n && (s[i + "Params"] = n), i === "onUpdate" && (this._onUpdate = r)) : delete s[i], this) : s[i];
719
719
  }, e.then = function(i) {
720
720
  var r = this;
721
721
  return new Promise(function(n) {
722
- var s = B(i) ? i : Cr, a = function() {
722
+ var s = B(i) ? i : Sr, a = function() {
723
723
  var c = r.then;
724
724
  r.then = null, B(s) && (s = s(r)) && (s.then || s === r) && (r.then = c), n(s), r.then = c;
725
725
  };
@@ -729,7 +729,7 @@ var Hr = function(e, t) {
729
729
  ct(this);
730
730
  }, o;
731
731
  })();
732
- ce(_t.prototype, {
732
+ ce(xt.prototype, {
733
733
  _time: 0,
734
734
  _start: 0,
735
735
  _end: 0,
@@ -744,58 +744,58 @@ ce(_t.prototype, {
744
744
  _ts: 1,
745
745
  _dp: 0,
746
746
  ratio: 0,
747
- _zTime: -O,
747
+ _zTime: -k,
748
748
  _prom: 0,
749
749
  _ps: !1,
750
750
  _rts: 1
751
751
  });
752
752
  var K = /* @__PURE__ */ (function(o) {
753
- hr(e, o);
753
+ fr(e, o);
754
754
  function e(i, r) {
755
755
  var n;
756
- return i === void 0 && (i = {}), n = o.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = Q(i.sortChildren), z && me(i.parent || z, be(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Sr(be(n), i.scrollTrigger), n;
756
+ return i === void 0 && (i = {}), n = o.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = Q(i.sortChildren), z && me(i.parent || z, _e(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Dr(_e(n), i.scrollTrigger), n;
757
757
  }
758
758
  var t = e.prototype;
759
759
  return t.to = function(r, n, s) {
760
- return dt(0, arguments, this), this;
760
+ return pt(0, arguments, this), this;
761
761
  }, t.from = function(r, n, s) {
762
- return dt(1, arguments, this), this;
762
+ return pt(1, arguments, this), this;
763
763
  }, t.fromTo = function(r, n, s, a) {
764
- return dt(2, arguments, this), this;
764
+ return pt(2, arguments, this), this;
765
765
  }, t.set = function(r, n, s) {
766
- return n.duration = 0, n.parent = this, ht(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new V(r, n, ue(this, s), 1), this;
766
+ return n.duration = 0, n.parent = this, dt(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new V(r, n, ue(this, s), 1), this;
767
767
  }, t.call = function(r, n, s) {
768
768
  return me(this, V.delayedCall(0, r, n), s);
769
769
  }, t.staggerTo = function(r, n, s, a, l, c, u) {
770
770
  return s.duration = n, s.stagger = s.stagger || a, s.onComplete = c, s.onCompleteParams = u, s.parent = this, new V(r, s, ue(this, l)), this;
771
771
  }, t.staggerFrom = function(r, n, s, a, l, c, u) {
772
- return s.runBackwards = 1, ht(s).immediateRender = Q(s.immediateRender), this.staggerTo(r, n, s, a, l, c, u);
772
+ return s.runBackwards = 1, dt(s).immediateRender = Q(s.immediateRender), this.staggerTo(r, n, s, a, l, c, u);
773
773
  }, t.staggerFromTo = function(r, n, s, a, l, c, u, h) {
774
- return a.startAt = s, ht(a).immediateRender = Q(a.immediateRender), this.staggerTo(r, n, a, l, c, u, h);
774
+ return a.startAt = s, dt(a).immediateRender = Q(a.immediateRender), this.staggerTo(r, n, a, l, c, u, h);
775
775
  }, t.render = function(r, n, s) {
776
- var a = this._time, l = this._dirty ? this.totalDuration() : this._tDur, c = this._dur, u = r <= 0 ? 0 : H(r), h = this._zTime < 0 != r < 0 && (this._initted || !c), p, f, m, d, g, y, _, x, v, b, C, E;
776
+ var a = this._time, l = this._dirty ? this.totalDuration() : this._tDur, c = this._dur, u = r <= 0 ? 0 : H(r), h = this._zTime < 0 != r < 0 && (this._initted || !c), p, f, m, d, g, y, b, x, v, _, C, E;
777
777
  if (this !== z && u > l && r >= 0 && (u = l), u !== this._tTime || s || h) {
778
778
  if (a !== this._time && c && (u += this._time - a, r += this._time - a), p = u, v = this._start, x = this._ts, y = !x, h && (c || (a = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
779
779
  if (C = this._yoyo, g = c + this._rDelay, this._repeat < -1 && r < 0)
780
780
  return this.totalTime(g * 100 + r, n, s);
781
- if (p = H(u % g), u === l ? (d = this._repeat, p = c) : (b = H(u / g), d = ~~b, d && d === b && (p = c, d--), p > c && (p = c)), b = tt(this._tTime, g), !a && this._tTime && b !== d && this._tTime - b * g - this._dur <= 0 && (b = d), C && d & 1 && (p = c - p, E = 1), d !== b && !this._lock) {
782
- var P = C && b & 1, w = P === (C && d & 1);
783
- if (d < b && (P = !P), a = P ? 0 : u % c ? c : u, this._lock = 1, this.render(a || (E ? 0 : H(d * g)), n, !c)._lock = 0, this._tTime = u, !n && this.parent && ae(this, "onRepeat"), this.vars.repeatRefresh && !E && (this.invalidate()._lock = 1), a && a !== this._time || y !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
781
+ if (p = H(u % g), u === l ? (d = this._repeat, p = c) : (_ = H(u / g), d = ~~_, d && d === _ && (p = c, d--), p > c && (p = c)), _ = tt(this._tTime, g), !a && this._tTime && _ !== d && this._tTime - _ * g - this._dur <= 0 && (_ = d), C && d & 1 && (p = c - p, E = 1), d !== _ && !this._lock) {
782
+ var P = C && _ & 1, w = P === (C && d & 1);
783
+ if (d < _ && (P = !P), a = P ? 0 : u % c ? c : u, this._lock = 1, this.render(a || (E ? 0 : H(d * g)), n, !c)._lock = 0, this._tTime = u, !n && this.parent && ae(this, "onRepeat"), this.vars.repeatRefresh && !E && (this.invalidate()._lock = 1), a && a !== this._time || y !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
784
784
  return this;
785
785
  if (c = this._dur, l = this._tDur, w && (this._lock = 2, a = P ? c : -1e-4, this.render(a, !0), this.vars.repeatRefresh && !E && this.invalidate()), this._lock = 0, !this._ts && !y)
786
786
  return this;
787
- Gr(this, E);
787
+ jr(this, E);
788
788
  }
789
789
  }
790
- if (this._hasPause && !this._forcing && this._lock < 2 && (_ = On(this, H(a), H(p)), _ && (u -= p - (p = _._start))), this._tTime = u, this._time = p, this._act = !x, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, a = 0), !a && u && !n && !b && (ae(this, "onStart"), this._tTime !== u))
790
+ if (this._hasPause && !this._forcing && this._lock < 2 && (b = Fn(this, H(a), H(p)), b && (u -= p - (p = b._start))), this._tTime = u, this._time = p, this._act = !x, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, a = 0), !a && u && !n && !_ && (ae(this, "onStart"), this._tTime !== u))
791
791
  return this;
792
792
  if (p >= a && r >= 0)
793
793
  for (f = this._first; f; ) {
794
- if (m = f._next, (f._act || p >= f._start) && f._ts && _ !== f) {
794
+ if (m = f._next, (f._act || p >= f._start) && f._ts && b !== f) {
795
795
  if (f.parent !== this)
796
796
  return this.render(r, n, s);
797
797
  if (f.render(f._ts > 0 ? (p - f._start) * f._ts : (f._dirty ? f.totalDuration() : f._tDur) + (p - f._start) * f._ts, n, s), p !== this._time || !this._ts && !y) {
798
- _ = 0, m && (u += this._zTime = -O);
798
+ b = 0, m && (u += this._zTime = -k);
799
799
  break;
800
800
  }
801
801
  }
@@ -804,25 +804,25 @@ var K = /* @__PURE__ */ (function(o) {
804
804
  else {
805
805
  f = this._last;
806
806
  for (var T = r < 0 ? r : p; f; ) {
807
- if (m = f._prev, (f._act || T <= f._end) && f._ts && _ !== f) {
807
+ if (m = f._prev, (f._act || T <= f._end) && f._ts && b !== f) {
808
808
  if (f.parent !== this)
809
809
  return this.render(r, n, s);
810
- if (f.render(f._ts > 0 ? (T - f._start) * f._ts : (f._dirty ? f.totalDuration() : f._tDur) + (T - f._start) * f._ts, n, s || W && wi(f)), p !== this._time || !this._ts && !y) {
811
- _ = 0, m && (u += this._zTime = T ? -O : O);
810
+ if (f.render(f._ts > 0 ? (T - f._start) * f._ts : (f._dirty ? f.totalDuration() : f._tDur) + (T - f._start) * f._ts, n, s || W && Pi(f)), p !== this._time || !this._ts && !y) {
811
+ b = 0, m && (u += this._zTime = T ? -k : k);
812
812
  break;
813
813
  }
814
814
  }
815
815
  f = m;
816
816
  }
817
817
  }
818
- if (_ && !n && (this.pause(), _.render(p >= a ? 0 : -O)._zTime = p >= a ? 1 : -1, this._ts))
819
- return this._start = v, Nt(this), this.render(r, n, s);
818
+ if (b && !n && (this.pause(), b.render(p >= a ? 0 : -k)._zTime = p >= a ? 1 : -1, this._ts))
819
+ return this._start = v, Gt(this), this.render(r, n, s);
820
820
  this._onUpdate && !n && ae(this, "onUpdate", !0), (u === l && this._tTime >= this.totalDuration() || !u && a) && (v === this._start || Math.abs(x) !== Math.abs(this._ts)) && (this._lock || ((r || !c) && (u === l && this._ts > 0 || !u && this._ts < 0) && De(this, 1), !n && !(r < 0 && !a) && (u || a || !l) && (ae(this, u === l && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(u < l && this.timeScale() > 0) && this._prom())));
821
821
  }
822
822
  return this;
823
823
  }, t.add = function(r, n) {
824
824
  var s = this;
825
- if (Ee(n) || (n = ue(this, n, r)), !(r instanceof _t)) {
825
+ if (Ee(n) || (n = ue(this, n, r)), !(r instanceof xt)) {
826
826
  if (Z(r))
827
827
  return r.forEach(function(a) {
828
828
  return s.add(a, n);
@@ -845,7 +845,7 @@ var K = /* @__PURE__ */ (function(o) {
845
845
  if (n[s].vars.id === r)
846
846
  return n[s];
847
847
  }, t.remove = function(r) {
848
- return Y(r) ? this.removeLabel(r) : B(r) ? this.killTweensOf(r) : (r.parent === this && zt(this, r), r === this._recent && (this._recent = this._last), Be(this));
848
+ return Y(r) ? this.removeLabel(r) : B(r) ? this.killTweensOf(r) : (r.parent === this && Bt(this, r), r === this._recent && (this._recent = this._last), Be(this));
849
849
  }, t.totalTime = function(r, n) {
850
850
  return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = H(se.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), o.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
851
851
  }, t.addLabel = function(r, n) {
@@ -853,7 +853,7 @@ var K = /* @__PURE__ */ (function(o) {
853
853
  }, t.removeLabel = function(r) {
854
854
  return delete this.labels[r], this;
855
855
  }, t.addPause = function(r, n, s) {
856
- var a = V.delayedCall(0, n || mt, s);
856
+ var a = V.delayedCall(0, n || gt, s);
857
857
  return a.data = "isPause", this._hasPause = 1, me(this, a, ue(this, r));
858
858
  }, t.removePause = function(r) {
859
859
  var n = this._first;
@@ -865,7 +865,7 @@ var K = /* @__PURE__ */ (function(o) {
865
865
  return this;
866
866
  }, t.getTweensOf = function(r, n) {
867
867
  for (var s = [], a = de(r), l = this._first, c = Ee(n), u; l; )
868
- l instanceof V ? Sn(l._targets, a) && (c ? (!Ce || l._initted && l._ts) && l.globalTime(0) <= n && l.globalTime(l.totalDuration()) > n : !n || l.isActive()) && s.push(l) : (u = l.getTweensOf(a, n)).length && s.push.apply(s, u), l = l._next;
868
+ l instanceof V ? Mn(l._targets, a) && (c ? (!Ce || l._initted && l._ts) && l.globalTime(0) <= n && l.globalTime(l.totalDuration()) > n : !n || l.isActive()) && s.push(l) : (u = l.getTweensOf(a, n)).length && s.push.apply(s, u), l = l._next;
869
869
  return s;
870
870
  }, t.tweenTo = function(r, n) {
871
871
  n = n || {};
@@ -875,7 +875,7 @@ var K = /* @__PURE__ */ (function(o) {
875
875
  immediateRender: !1,
876
876
  time: a,
877
877
  overwrite: "auto",
878
- duration: n.duration || Math.abs((a - (c && "time" in c ? c.time : s._time)) / s.timeScale()) || O,
878
+ duration: n.duration || Math.abs((a - (c && "time" in c ? c.time : s._time)) / s.timeScale()) || k,
879
879
  onStart: function() {
880
880
  if (s.pause(), !f) {
881
881
  var g = n.duration || Math.abs((a - (c && "time" in c ? c.time : s._time)) / s.timeScale());
@@ -894,11 +894,11 @@ var K = /* @__PURE__ */ (function(o) {
894
894
  }, t.recent = function() {
895
895
  return this._recent;
896
896
  }, t.nextLabel = function(r) {
897
- return r === void 0 && (r = this._time), Bi(this, ue(this, r));
897
+ return r === void 0 && (r = this._time), Vi(this, ue(this, r));
898
898
  }, t.previousLabel = function(r) {
899
- return r === void 0 && (r = this._time), Bi(this, ue(this, r), 1);
899
+ return r === void 0 && (r = this._time), Vi(this, ue(this, r), 1);
900
900
  }, t.currentLabel = function(r) {
901
- return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + O);
901
+ return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + k);
902
902
  }, t.shiftChildren = function(r, n, s) {
903
903
  s === void 0 && (s = 0);
904
904
  for (var a = this._first, l = this.labels, c; a; )
@@ -928,8 +928,8 @@ var K = /* @__PURE__ */ (function(o) {
928
928
  }
929
929
  return s._tDur;
930
930
  }, e.updateRoot = function(r) {
931
- if (z._ts && (Er(z, Ot(r, z)), br = se.frame), se.frame >= Ui) {
932
- Ui += oe.autoSleep || 120;
931
+ if (z._ts && (Pr(z, Ft(r, z)), wr = se.frame), se.frame >= Ni) {
932
+ Ni += oe.autoSleep || 120;
933
933
  var n = z._first;
934
934
  if ((!n || !n._ts) && oe.autoSleep && se._listeners.length < 2) {
935
935
  for (; n && !n._ts; )
@@ -938,15 +938,15 @@ var K = /* @__PURE__ */ (function(o) {
938
938
  }
939
939
  }
940
940
  }, e;
941
- })(_t);
941
+ })(xt);
942
942
  ce(K.prototype, {
943
943
  _lock: 0,
944
944
  _hasPause: 0,
945
945
  _forcing: 0
946
946
  });
947
- var qn = function(e, t, i, r, n, s, a) {
948
- var l = new te(this._pt, e, t, 0, 1, qr, null, n), c = 0, u = 0, h, p, f, m, d, g, y, _;
949
- for (l.b = i, l.e = r, i += "", r += "", (y = ~r.indexOf("random(")) && (r = gt(r)), s && (_ = [i, r], s(_, e, t), i = _[0], r = _[1]), p = i.match(Bt) || []; h = Bt.exec(r); )
947
+ var Jn = function(e, t, i, r, n, s, a) {
948
+ var l = new te(this._pt, e, t, 0, 1, Qr, null, n), c = 0, u = 0, h, p, f, m, d, g, y, b;
949
+ for (l.b = i, l.e = r, i += "", r += "", (y = ~r.indexOf("random(")) && (r = yt(r)), s && (b = [i, r], s(b, e, t), i = b[0], r = b[1]), p = i.match(Ht) || []; h = Ht.exec(r); )
950
950
  m = h[0], d = r.substring(c, h.index), f ? f = (f + 1) % 5 : d.substr(-5) === "rgba(" && (f = 1), m !== p[u++] && (g = parseFloat(p[u - 1]) || 0, l._pt = {
951
951
  _next: l._pt,
952
952
  p: d || u === 1 ? d : ",",
@@ -954,30 +954,30 @@ var qn = function(e, t, i, r, n, s, a) {
954
954
  s: g,
955
955
  c: m.charAt(1) === "=" ? qe(g, m) - g : parseFloat(m) - g,
956
956
  m: f && f < 4 ? Math.round : 0
957
- }, c = Bt.lastIndex);
958
- return l.c = c < r.length ? r.substring(c, r.length) : "", l.fp = a, (mr.test(r) || y) && (l.e = 0), this._pt = l, l;
959
- }, Ci = function(e, t, i, r, n, s, a, l, c, u) {
957
+ }, c = Ht.lastIndex);
958
+ return l.c = c < r.length ? r.substring(c, r.length) : "", l.fp = a, (br.test(r) || y) && (l.e = 0), this._pt = l, l;
959
+ }, Ai = function(e, t, i, r, n, s, a, l, c, u) {
960
960
  B(r) && (r = r(n || 0, e, s));
961
- var h = e[t], p = i !== "get" ? i : B(h) ? c ? e[t.indexOf("set") || !B(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](c) : e[t]() : h, f = B(h) ? c ? ts : Xr : Ai, m;
962
- if (Y(r) && (~r.indexOf("random(") && (r = gt(r)), r.charAt(1) === "=" && (m = qe(p, r) + (X(p) || 0), (m || m === 0) && (r = m))), !u || p !== r || oi)
963
- return !isNaN(p * r) && r !== "" ? (m = new te(this._pt, e, t, +p || 0, r - (p || 0), typeof h == "boolean" ? rs : Zr, 0, f), c && (m.fp = c), a && m.modifier(a, this, e), this._pt = m) : (!h && !(t in e) && xi(t, r), qn.call(this, e, t, p, r, f, l || oe.stringFilter, c));
964
- }, Kn = function(e, t, i, r, n) {
965
- if (B(e) && (e = pt(e, n, t, i, r)), !_e(e) || e.style && e.nodeType || Z(e) || pr(e))
966
- return Y(e) ? pt(e, n, t, i, r) : e;
961
+ var h = e[t], p = i !== "get" ? i : B(h) ? c ? e[t.indexOf("set") || !B(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](c) : e[t]() : h, f = B(h) ? c ? rs : Kr : Ti, m;
962
+ if (Y(r) && (~r.indexOf("random(") && (r = yt(r)), r.charAt(1) === "=" && (m = qe(p, r) + (X(p) || 0), (m || m === 0) && (r = m))), !u || p !== r || ui)
963
+ return !isNaN(p * r) && r !== "" ? (m = new te(this._pt, e, t, +p || 0, r - (p || 0), typeof h == "boolean" ? ss : Jr, 0, f), c && (m.fp = c), a && m.modifier(a, this, e), this._pt = m) : (!h && !(t in e) && vi(t, r), Jn.call(this, e, t, p, r, f, l || oe.stringFilter, c));
964
+ }, Qn = function(e, t, i, r, n) {
965
+ if (B(e) && (e = ft(e, n, t, i, r)), !be(e) || e.style && e.nodeType || Z(e) || gr(e))
966
+ return Y(e) ? ft(e, n, t, i, r) : e;
967
967
  var s = {}, a;
968
968
  for (a in e)
969
- s[a] = pt(e[a], n, t, i, r);
969
+ s[a] = ft(e[a], n, t, i, r);
970
970
  return s;
971
- }, jr = function(e, t, i, r, n, s) {
971
+ }, Xr = function(e, t, i, r, n, s) {
972
972
  var a, l, c, u;
973
- if (ne[e] && (a = new ne[e]()).init(n, a.rawVars ? t[e] : Kn(t[e], r, n, s, i), i, r, s) !== !1 && (i._pt = l = new te(i._pt, n, e, 0, 1, a.render, a, 0, a.priority), i !== Xe))
973
+ if (ne[e] && (a = new ne[e]()).init(n, a.rawVars ? t[e] : Qn(t[e], r, n, s, i), i, r, s) !== !1 && (i._pt = l = new te(i._pt, n, e, 0, 1, a.render, a, 0, a.priority), i !== Xe))
974
974
  for (c = i._ptLookup[i._targets.indexOf(n)], u = a._props.length; u--; )
975
975
  c[a._props[u]] = l;
976
976
  return a;
977
- }, Ce, oi, Pi = function o(e, t, i) {
978
- var r = e.vars, n = r.ease, s = r.startAt, a = r.immediateRender, l = r.lazy, c = r.onUpdate, u = r.runBackwards, h = r.yoyoEase, p = r.keyframes, f = r.autoRevert, m = e._dur, d = e._startAt, g = e._targets, y = e.parent, _ = y && y.data === "nested" ? y.vars.targets : g, x = e._overwrite === "auto" && !mi, v = e.timeline, b, C, E, P, w, T, D, S, L, R, $, F, k;
979
- if (v && (!p || !n) && (n = "none"), e._ease = Ge(n, Qe.ease), e._yEase = h ? Br(Ge(h === !0 ? n : h, Qe.ease)) : 0, h && e._yoyo && !e._repeat && (h = e._yEase, e._yEase = e._ease, e._ease = h), e._from = !v && !!r.runBackwards, !v || p && !r.stagger) {
980
- if (S = g[0] ? $e(g[0]).harness : 0, F = S && r[S.prop], b = It(r, bi), d && (d._zTime < 0 && d.progress(1), t < 0 && u && a && !f ? d.render(-1, !0) : d.revert(u && m ? St : Pn), d._lazy = 0), s) {
977
+ }, Ce, ui, Si = function o(e, t, i) {
978
+ var r = e.vars, n = r.ease, s = r.startAt, a = r.immediateRender, l = r.lazy, c = r.onUpdate, u = r.runBackwards, h = r.yoyoEase, p = r.keyframes, f = r.autoRevert, m = e._dur, d = e._startAt, g = e._targets, y = e.parent, b = y && y.data === "nested" ? y.vars.targets : g, x = e._overwrite === "auto" && !yi, v = e.timeline, _, C, E, P, w, T, D, S, L, I, $, F, O;
979
+ if (v && (!p || !n) && (n = "none"), e._ease = Ge(n, Qe.ease), e._yEase = h ? Hr(Ge(h === !0 ? n : h, Qe.ease)) : 0, h && e._yoyo && !e._repeat && (h = e._yEase, e._yEase = e._ease, e._ease = h), e._from = !v && !!r.runBackwards, !v || p && !r.stagger) {
980
+ if (S = g[0] ? $e(g[0]).harness : 0, F = S && r[S.prop], _ = Ot(r, Ei), d && (d._zTime < 0 && d.progress(1), t < 0 && u && a && !f ? d.render(-1, !0) : d.revert(u && m ? Mt : Sn), d._lazy = 0), s) {
981
981
  if (De(e._startAt = V.set(g, ce({
982
982
  data: "isStart",
983
983
  overwrite: !1,
@@ -990,7 +990,7 @@ var qn = function(e, t, i, r, n, s, a) {
990
990
  return ae(e, "onUpdate");
991
991
  },
992
992
  stagger: 0
993
- }, s))), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (W || !a && !f) && e._startAt.revert(St), a && m && t <= 0 && i <= 0) {
993
+ }, s))), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (W || !a && !f) && e._startAt.revert(Mt), a && m && t <= 0 && i <= 0) {
994
994
  t && (e._zTime = t);
995
995
  return;
996
996
  }
@@ -1005,23 +1005,23 @@ var qn = function(e, t, i, r, n, s, a) {
1005
1005
  stagger: 0,
1006
1006
  parent: y
1007
1007
  //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
1008
- }, b), F && (E[S.prop] = F), De(e._startAt = V.set(g, E)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (W ? e._startAt.revert(St) : e._startAt.render(-1, !0)), e._zTime = t, !a)
1009
- o(e._startAt, O, O);
1008
+ }, _), F && (E[S.prop] = F), De(e._startAt = V.set(g, E)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (W ? e._startAt.revert(Mt) : e._startAt.render(-1, !0)), e._zTime = t, !a)
1009
+ o(e._startAt, k, k);
1010
1010
  else if (!t)
1011
1011
  return;
1012
1012
  }
1013
1013
  for (e._pt = e._ptCache = 0, l = m && Q(l) || l && !m, C = 0; C < g.length; C++) {
1014
- if (w = g[C], D = w._gsap || Ei(g)[C]._gsap, e._ptLookup[C] = R = {}, ti[D.id] && Te.length && Rt(), $ = _ === g ? C : _.indexOf(w), S && (L = new S()).init(w, F || b, e, $, _) !== !1 && (e._pt = P = new te(e._pt, w, L.name, 0, 1, L.render, L, 0, L.priority), L._props.forEach(function(J) {
1015
- R[J] = P;
1014
+ if (w = g[C], D = w._gsap || Ci(g)[C]._gsap, e._ptLookup[C] = I = {}, ni[D.id] && Te.length && kt(), $ = b === g ? C : b.indexOf(w), S && (L = new S()).init(w, F || _, e, $, b) !== !1 && (e._pt = P = new te(e._pt, w, L.name, 0, 1, L.render, L, 0, L.priority), L._props.forEach(function(J) {
1015
+ I[J] = P;
1016
1016
  }), L.priority && (T = 1)), !S || F)
1017
- for (E in b)
1018
- ne[E] && (L = jr(E, b, e, $, w, _)) ? L.priority && (T = 1) : R[E] = P = Ci.call(e, w, E, "get", b[E], $, _, 0, r.stringFilter);
1019
- e._op && e._op[C] && e.kill(w, e._op[C]), x && e._pt && (Ce = e, z.killTweensOf(w, R, e.globalTime(t)), k = !e.parent, Ce = 0), e._pt && l && (ti[D.id] = 1);
1017
+ for (E in _)
1018
+ ne[E] && (L = Xr(E, _, e, $, w, b)) ? L.priority && (T = 1) : I[E] = P = Ai.call(e, w, E, "get", _[E], $, b, 0, r.stringFilter);
1019
+ e._op && e._op[C] && e.kill(w, e._op[C]), x && e._pt && (Ce = e, z.killTweensOf(w, I, e.globalTime(t)), O = !e.parent, Ce = 0), e._pt && l && (ni[D.id] = 1);
1020
1020
  }
1021
- T && Kr(e), e._onInit && e._onInit(e);
1021
+ T && en(e), e._onInit && e._onInit(e);
1022
1022
  }
1023
- e._onUpdate = c, e._initted = (!e._op || e._pt) && !k, p && t <= 0 && v.render(he, !0, !0);
1024
- }, Jn = function(e, t, i, r, n, s, a, l) {
1023
+ e._onUpdate = c, e._initted = (!e._op || e._pt) && !O, p && t <= 0 && v.render(he, !0, !0);
1024
+ }, es = function(e, t, i, r, n, s, a, l) {
1025
1025
  var c = (e._pt && e._ptCache || (e._ptCache = {}))[t], u, h, p, f;
1026
1026
  if (!c)
1027
1027
  for (c = e._ptCache[t] = [], p = e._ptLookup, f = e._targets.length; f--; ) {
@@ -1029,12 +1029,12 @@ var qn = function(e, t, i, r, n, s, a) {
1029
1029
  for (u = u.d._pt; u && u.p !== t && u.fp !== t; )
1030
1030
  u = u._next;
1031
1031
  if (!u)
1032
- return oi = 1, e.vars[t] = "+=0", Pi(e, a), oi = 0, l ? ft(t + " not eligible for reset") : 1;
1032
+ return ui = 1, e.vars[t] = "+=0", Si(e, a), ui = 0, l ? mt(t + " not eligible for reset") : 1;
1033
1033
  c.push(u);
1034
1034
  }
1035
1035
  for (f = c.length; f--; )
1036
1036
  h = c[f], u = h._pt || h, u.s = (r || r === 0) && !n ? r : u.s + (r || 0) + s * u.c, u.c = i - u.s, h.e && (h.e = G(i) + X(h.e)), h.b && (h.b = u.s + X(h.b));
1037
- }, Qn = function(e, t) {
1037
+ }, ts = function(e, t) {
1038
1038
  var i = e[0] ? $e(e[0]).harness : 0, r = i && i.aliases, n, s, a, l;
1039
1039
  if (!r)
1040
1040
  return t;
@@ -1044,7 +1044,7 @@ var qn = function(e, t, i, r, n, s, a) {
1044
1044
  for (l = r[s].split(","), a = l.length; a--; )
1045
1045
  n[l[a]] = n[s];
1046
1046
  return n;
1047
- }, es = function(e, t, i, r) {
1047
+ }, is = function(e, t, i, r) {
1048
1048
  var n = t.ease || r || "power1.inOut", s, a;
1049
1049
  if (Z(t))
1050
1050
  a = i[e] || (i[e] = []), t.forEach(function(l, c) {
@@ -1061,35 +1061,35 @@ var qn = function(e, t, i, r, n, s, a) {
1061
1061
  v: t[s],
1062
1062
  e: n
1063
1063
  });
1064
- }, pt = function(e, t, i, r, n) {
1065
- return B(e) ? e.call(t, i, r, n) : Y(e) && ~e.indexOf("random(") ? gt(e) : e;
1066
- }, Yr = vi + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", Wr = {};
1067
- ee(Yr + ",id,stagger,delay,duration,paused,scrollTrigger", function(o) {
1068
- return Wr[o] = 1;
1064
+ }, ft = function(e, t, i, r, n) {
1065
+ return B(e) ? e.call(t, i, r, n) : Y(e) && ~e.indexOf("random(") ? yt(e) : e;
1066
+ }, Zr = wi + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", qr = {};
1067
+ ee(Zr + ",id,stagger,delay,duration,paused,scrollTrigger", function(o) {
1068
+ return qr[o] = 1;
1069
1069
  });
1070
1070
  var V = /* @__PURE__ */ (function(o) {
1071
- hr(e, o);
1071
+ fr(e, o);
1072
1072
  function e(i, r, n, s) {
1073
1073
  var a;
1074
- typeof r == "number" && (n.duration = r, r = n, n = null), a = o.call(this, s ? r : ht(r)) || this;
1075
- var l = a.vars, c = l.duration, u = l.delay, h = l.immediateRender, p = l.stagger, f = l.overwrite, m = l.keyframes, d = l.defaults, g = l.scrollTrigger, y = l.yoyoEase, _ = r.parent || z, x = (Z(i) || pr(i) ? Ee(i[0]) : "length" in r) ? [i] : de(i), v, b, C, E, P, w, T, D;
1076
- if (a._targets = x.length ? Ei(x) : ft("GSAP target " + i + " not found. https://gsap.com", !oe.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = f, m || p || wt(c) || wt(u)) {
1074
+ typeof r == "number" && (n.duration = r, r = n, n = null), a = o.call(this, s ? r : dt(r)) || this;
1075
+ var l = a.vars, c = l.duration, u = l.delay, h = l.immediateRender, p = l.stagger, f = l.overwrite, m = l.keyframes, d = l.defaults, g = l.scrollTrigger, y = l.yoyoEase, b = r.parent || z, x = (Z(i) || gr(i) ? Ee(i[0]) : "length" in r) ? [i] : de(i), v, _, C, E, P, w, T, D;
1076
+ if (a._targets = x.length ? Ci(x) : mt("GSAP target " + i + " not found. https://gsap.com", !oe.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = f, m || p || Ct(c) || Ct(u)) {
1077
1077
  if (r = a.vars, v = a.timeline = new K({
1078
1078
  data: "nested",
1079
1079
  defaults: d || {},
1080
- targets: _ && _.data === "nested" ? _.vars.targets : x
1081
- }), v.kill(), v.parent = v._dp = be(a), v._start = 0, p || wt(c) || wt(u)) {
1082
- if (E = x.length, T = p && Lr(p), _e(p))
1080
+ targets: b && b.data === "nested" ? b.vars.targets : x
1081
+ }), v.kill(), v.parent = v._dp = _e(a), v._start = 0, p || Ct(c) || Ct(u)) {
1082
+ if (E = x.length, T = p && kr(p), be(p))
1083
1083
  for (P in p)
1084
- ~Yr.indexOf(P) && (D || (D = {}), D[P] = p[P]);
1085
- for (b = 0; b < E; b++)
1086
- C = It(r, Wr), C.stagger = 0, y && (C.yoyoEase = y), D && et(C, D), w = x[b], C.duration = +pt(c, be(a), b, w, x), C.delay = (+pt(u, be(a), b, w, x) || 0) - a._delay, !p && E === 1 && C.delay && (a._delay = u = C.delay, a._start += u, C.delay = 0), v.to(w, C, T ? T(b, w, x) : 0), v._ease = M.none;
1084
+ ~Zr.indexOf(P) && (D || (D = {}), D[P] = p[P]);
1085
+ for (_ = 0; _ < E; _++)
1086
+ C = Ot(r, qr), C.stagger = 0, y && (C.yoyoEase = y), D && et(C, D), w = x[_], C.duration = +ft(c, _e(a), _, w, x), C.delay = (+ft(u, _e(a), _, w, x) || 0) - a._delay, !p && E === 1 && C.delay && (a._delay = u = C.delay, a._start += u, C.delay = 0), v.to(w, C, T ? T(_, w, x) : 0), v._ease = M.none;
1087
1087
  v.duration() ? c = u = 0 : a.timeline = 0;
1088
1088
  } else if (m) {
1089
- ht(ce(v.vars.defaults, {
1089
+ dt(ce(v.vars.defaults, {
1090
1090
  ease: "none"
1091
1091
  })), v._ease = Ge(m.ease || r.ease || "none");
1092
- var S = 0, L, R, $;
1092
+ var S = 0, L, I, $;
1093
1093
  if (Z(m))
1094
1094
  m.forEach(function(F) {
1095
1095
  return v.to(x, F, ">");
@@ -1097,15 +1097,15 @@ var V = /* @__PURE__ */ (function(o) {
1097
1097
  else {
1098
1098
  C = {};
1099
1099
  for (P in m)
1100
- P === "ease" || P === "easeEach" || es(P, m[P], C, m.easeEach);
1100
+ P === "ease" || P === "easeEach" || is(P, m[P], C, m.easeEach);
1101
1101
  for (P in C)
1102
- for (L = C[P].sort(function(F, k) {
1103
- return F.t - k.t;
1104
- }), S = 0, b = 0; b < L.length; b++)
1105
- R = L[b], $ = {
1106
- ease: R.e,
1107
- duration: (R.t - (b ? L[b - 1].t : 0)) / 100 * c
1108
- }, $[P] = R.v, v.to(x, $, S), S += $.duration;
1102
+ for (L = C[P].sort(function(F, O) {
1103
+ return F.t - O.t;
1104
+ }), S = 0, _ = 0; _ < L.length; _++)
1105
+ I = L[_], $ = {
1106
+ ease: I.e,
1107
+ duration: (I.t - (_ ? L[_ - 1].t : 0)) / 100 * c
1108
+ }, $[P] = I.v, v.to(x, $, S), S += $.duration;
1109
1109
  v.duration() < c && v.to({}, {
1110
1110
  duration: c - v.duration()
1111
1111
  });
@@ -1114,34 +1114,34 @@ var V = /* @__PURE__ */ (function(o) {
1114
1114
  c || a.duration(c = v.duration());
1115
1115
  } else
1116
1116
  a.timeline = 0;
1117
- return f === !0 && !mi && (Ce = be(a), z.killTweensOf(x), Ce = 0), me(_, be(a), n), r.reversed && a.reverse(), r.paused && a.paused(!0), (h || !c && !m && a._start === H(_._time) && Q(h) && Ln(be(a)) && _.data !== "nested") && (a._tTime = -O, a.render(Math.max(0, -u) || 0)), g && Sr(be(a), g), a;
1117
+ return f === !0 && !yi && (Ce = _e(a), z.killTweensOf(x), Ce = 0), me(b, _e(a), n), r.reversed && a.reverse(), r.paused && a.paused(!0), (h || !c && !m && a._start === H(b._time) && Q(h) && Rn(_e(a)) && b.data !== "nested") && (a._tTime = -k, a.render(Math.max(0, -u) || 0)), g && Dr(_e(a), g), a;
1118
1118
  }
1119
1119
  var t = e.prototype;
1120
1120
  return t.render = function(r, n, s) {
1121
- var a = this._time, l = this._tDur, c = this._dur, u = r < 0, h = r > l - O && !u ? l : r < O ? 0 : r, p, f, m, d, g, y, _, x, v;
1121
+ var a = this._time, l = this._tDur, c = this._dur, u = r < 0, h = r > l - k && !u ? l : r < k ? 0 : r, p, f, m, d, g, y, b, x, v;
1122
1122
  if (!c)
1123
- In(this, r, n, s);
1123
+ On(this, r, n, s);
1124
1124
  else if (h !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== u || this._lazy) {
1125
1125
  if (p = h, x = this.timeline, this._repeat) {
1126
1126
  if (d = c + this._rDelay, this._repeat < -1 && u)
1127
1127
  return this.totalTime(d * 100 + r, n, s);
1128
1128
  if (p = H(h % d), h === l ? (m = this._repeat, p = c) : (g = H(h / d), m = ~~g, m && m === g ? (p = c, m--) : p > c && (p = c)), y = this._yoyo && m & 1, y && (v = this._yEase, p = c - p), g = tt(this._tTime, d), p === a && !s && this._initted && m === g)
1129
1129
  return this._tTime = h, this;
1130
- m !== g && (x && this._yEase && Gr(x, y), this.vars.repeatRefresh && !y && !this._lock && p !== d && this._initted && (this._lock = s = 1, this.render(H(d * m), !0).invalidate()._lock = 0));
1130
+ m !== g && (x && this._yEase && jr(x, y), this.vars.repeatRefresh && !y && !this._lock && p !== d && this._initted && (this._lock = s = 1, this.render(H(d * m), !0).invalidate()._lock = 0));
1131
1131
  }
1132
1132
  if (!this._initted) {
1133
- if (Tr(this, u ? r : p, s, n, h))
1133
+ if (Lr(this, u ? r : p, s, n, h))
1134
1134
  return this._tTime = 0, this;
1135
1135
  if (a !== this._time && !(s && this.vars.repeatRefresh && m !== g))
1136
1136
  return this;
1137
1137
  if (c !== this._dur)
1138
1138
  return this.render(r, n, s);
1139
1139
  }
1140
- if (this._tTime = h, this._time = p, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = _ = (v || this._ease)(p / c), this._from && (this.ratio = _ = 1 - _), !a && h && !n && !g && (ae(this, "onStart"), this._tTime !== h))
1140
+ if (this._tTime = h, this._time = p, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = b = (v || this._ease)(p / c), this._from && (this.ratio = b = 1 - b), !a && h && !n && !g && (ae(this, "onStart"), this._tTime !== h))
1141
1141
  return this;
1142
1142
  for (f = this._pt; f; )
1143
- f.r(_, f.d), f = f._next;
1144
- x && x.render(r < 0 ? r : x._dur * x._ease(p / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (u && ii(this, r, n, s), ae(this, "onUpdate")), this._repeat && m !== g && this.vars.onRepeat && !n && this.parent && ae(this, "onRepeat"), (h === this._tDur || !h) && this._tTime === h && (u && !this._onUpdate && ii(this, r, !0, !0), (r || !c) && (h === this._tDur && this._ts > 0 || !h && this._ts < 0) && De(this, 1), !n && !(u && !a) && (h || a || y) && (ae(this, h === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < l && this.timeScale() > 0) && this._prom()));
1143
+ f.r(b, f.d), f = f._next;
1144
+ x && x.render(r < 0 ? r : x._dur * x._ease(p / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (u && si(this, r, n, s), ae(this, "onUpdate")), this._repeat && m !== g && this.vars.onRepeat && !n && this.parent && ae(this, "onRepeat"), (h === this._tDur || !h) && this._tTime === h && (u && !this._onUpdate && si(this, r, !0, !0), (r || !c) && (h === this._tDur && this._ts > 0 || !h && this._ts < 0) && De(this, 1), !n && !(u && !a) && (h || a || y) && (ae(this, h === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < l && this.timeScale() > 0) && this._prom()));
1145
1145
  }
1146
1146
  return this;
1147
1147
  }, t.targets = function() {
@@ -1149,9 +1149,9 @@ var V = /* @__PURE__ */ (function(o) {
1149
1149
  }, t.invalidate = function(r) {
1150
1150
  return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r), o.prototype.invalidate.call(this, r);
1151
1151
  }, t.resetTo = function(r, n, s, a, l) {
1152
- yt || se.wake(), this._ts || this.play();
1152
+ bt || se.wake(), this._ts || this.play();
1153
1153
  var c = Math.min(this._dur, (this._dp._time - this._start) * this._ts), u;
1154
- return this._initted || Pi(this, c), u = this._ease(c / this._dur), Jn(this, r, n, s, a, u, c, l) ? this.resetTo(r, n, s, a, 1) : ($t(this, 0), this.parent || Pr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1154
+ return this._initted || Si(this, c), u = this._ease(c / this._dur), es(this, r, n, s, a, u, c, l) ? this.resetTo(r, n, s, a, 1) : (Vt(this, 0), this.parent || Tr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1155
1155
  }, t.kill = function(r, n) {
1156
1156
  if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
1157
1157
  return this._lazy = this._pt = 0, this.parent ? ct(this) : this.scrollTrigger && this.scrollTrigger.kill(!!W), this;
@@ -1160,21 +1160,21 @@ var V = /* @__PURE__ */ (function(o) {
1160
1160
  return this.timeline.killTweensOf(r, n, Ce && Ce.vars.overwrite !== !0)._first || ct(this), this.parent && s !== this.timeline.totalDuration() && it(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1161
1161
  }
1162
1162
  var a = this._targets, l = r ? de(r) : a, c = this._ptLookup, u = this._pt, h, p, f, m, d, g, y;
1163
- if ((!n || n === "all") && Mn(a, l))
1163
+ if ((!n || n === "all") && Ln(a, l))
1164
1164
  return n === "all" && (this._pt = 0), ct(this);
1165
- for (h = this._op = this._op || [], n !== "all" && (Y(n) && (d = {}, ee(n, function(_) {
1166
- return d[_] = 1;
1167
- }), n = d), n = Qn(a, n)), y = a.length; y--; )
1165
+ for (h = this._op = this._op || [], n !== "all" && (Y(n) && (d = {}, ee(n, function(b) {
1166
+ return d[b] = 1;
1167
+ }), n = d), n = ts(a, n)), y = a.length; y--; )
1168
1168
  if (~l.indexOf(a[y])) {
1169
1169
  p = c[y], n === "all" ? (h[y] = n, m = p, f = {}) : (f = h[y] = h[y] || {}, m = n);
1170
1170
  for (d in m)
1171
- g = p && p[d], g && ((!("kill" in g.d) || g.d.kill(d) === !0) && zt(this, g, "_pt"), delete p[d]), f !== "all" && (f[d] = 1);
1171
+ g = p && p[d], g && ((!("kill" in g.d) || g.d.kill(d) === !0) && Bt(this, g, "_pt"), delete p[d]), f !== "all" && (f[d] = 1);
1172
1172
  }
1173
1173
  return this._initted && !this._pt && u && ct(this), this;
1174
1174
  }, e.to = function(r, n) {
1175
1175
  return new e(r, n, arguments[2]);
1176
1176
  }, e.from = function(r, n) {
1177
- return dt(1, arguments);
1177
+ return pt(1, arguments);
1178
1178
  }, e.delayedCall = function(r, n, s, a) {
1179
1179
  return new e(n, 0, {
1180
1180
  immediateRender: !1,
@@ -1188,13 +1188,13 @@ var V = /* @__PURE__ */ (function(o) {
1188
1188
  callbackScope: a
1189
1189
  });
1190
1190
  }, e.fromTo = function(r, n, s) {
1191
- return dt(2, arguments);
1191
+ return pt(2, arguments);
1192
1192
  }, e.set = function(r, n) {
1193
1193
  return n.duration = 0, n.repeatDelay || (n.repeat = 0), new e(r, n);
1194
1194
  }, e.killTweensOf = function(r, n, s) {
1195
1195
  return z.killTweensOf(r, n, s);
1196
1196
  }, e;
1197
- })(_t);
1197
+ })(xt);
1198
1198
  ce(V.prototype, {
1199
1199
  _targets: [],
1200
1200
  _lazy: 0,
@@ -1204,25 +1204,25 @@ ce(V.prototype, {
1204
1204
  });
1205
1205
  ee("staggerTo,staggerFrom,staggerFromTo", function(o) {
1206
1206
  V[o] = function() {
1207
- var e = new K(), t = ni.call(arguments, 0);
1207
+ var e = new K(), t = oi.call(arguments, 0);
1208
1208
  return t.splice(o === "staggerFromTo" ? 5 : 4, 0, 0), e[o].apply(e, t);
1209
1209
  };
1210
1210
  });
1211
- var Ai = function(e, t, i) {
1211
+ var Ti = function(e, t, i) {
1212
1212
  return e[t] = i;
1213
- }, Xr = function(e, t, i) {
1213
+ }, Kr = function(e, t, i) {
1214
1214
  return e[t](i);
1215
- }, ts = function(e, t, i, r) {
1215
+ }, rs = function(e, t, i, r) {
1216
1216
  return e[t](r.fp, i);
1217
- }, is = function(e, t, i) {
1217
+ }, ns = function(e, t, i) {
1218
1218
  return e.setAttribute(t, i);
1219
- }, Si = function(e, t) {
1220
- return B(e[t]) ? Xr : gi(e[t]) && e.setAttribute ? is : Ai;
1221
- }, Zr = function(e, t) {
1219
+ }, Mi = function(e, t) {
1220
+ return B(e[t]) ? Kr : bi(e[t]) && e.setAttribute ? ns : Ti;
1221
+ }, Jr = function(e, t) {
1222
1222
  return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e6) / 1e6, t);
1223
- }, rs = function(e, t) {
1223
+ }, ss = function(e, t) {
1224
1224
  return t.set(t.t, t.p, !!(t.s + t.c * e), t);
1225
- }, qr = function(e, t) {
1225
+ }, Qr = function(e, t) {
1226
1226
  var i = t._pt, r = "";
1227
1227
  if (!e && t.b)
1228
1228
  r = t.b;
@@ -1234,19 +1234,19 @@ var Ai = function(e, t, i) {
1234
1234
  r += t.c;
1235
1235
  }
1236
1236
  t.set(t.t, t.p, r, t);
1237
- }, Ti = function(e, t) {
1237
+ }, Di = function(e, t) {
1238
1238
  for (var i = t._pt; i; )
1239
1239
  i.r(e, i.d), i = i._next;
1240
- }, ns = function(e, t, i, r) {
1240
+ }, as = function(e, t, i, r) {
1241
1241
  for (var n = this._pt, s; n; )
1242
1242
  s = n._next, n.p === r && n.modifier(e, t, i), n = s;
1243
- }, ss = function(e) {
1243
+ }, os = function(e) {
1244
1244
  for (var t = this._pt, i, r; t; )
1245
- r = t._next, t.p === e && !t.op || t.op === e ? zt(this, t, "_pt") : t.dep || (i = 1), t = r;
1245
+ r = t._next, t.p === e && !t.op || t.op === e ? Bt(this, t, "_pt") : t.dep || (i = 1), t = r;
1246
1246
  return !i;
1247
- }, as = function(e, t, i, r) {
1247
+ }, ls = function(e, t, i, r) {
1248
1248
  r.mSet(e, t, r.m.call(r.tween, i, r.mt), r);
1249
- }, Kr = function(e) {
1249
+ }, en = function(e) {
1250
1250
  for (var t = e._pt, i, r, n, s; t; ) {
1251
1251
  for (i = t._next, r = n; r && r.pr > t.pr; )
1252
1252
  r = r._next;
@@ -1255,15 +1255,15 @@ var Ai = function(e, t, i) {
1255
1255
  e._pt = n;
1256
1256
  }, te = /* @__PURE__ */ (function() {
1257
1257
  function o(t, i, r, n, s, a, l, c, u) {
1258
- this.t = i, this.s = n, this.c = s, this.p = r, this.r = a || Zr, this.d = l || this, this.set = c || Ai, this.pr = u || 0, this._next = t, t && (t._prev = this);
1258
+ this.t = i, this.s = n, this.c = s, this.p = r, this.r = a || Jr, this.d = l || this, this.set = c || Ti, this.pr = u || 0, this._next = t, t && (t._prev = this);
1259
1259
  }
1260
1260
  var e = o.prototype;
1261
1261
  return e.modifier = function(i, r, n) {
1262
- this.mSet = this.mSet || this.set, this.set = as, this.m = i, this.mt = n, this.tween = r;
1262
+ this.mSet = this.mSet || this.set, this.set = ls, this.m = i, this.mt = n, this.tween = r;
1263
1263
  }, o;
1264
1264
  })();
1265
- ee(vi + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(o) {
1266
- return bi[o] = 1;
1265
+ ee(wi + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(o) {
1266
+ return Ei[o] = 1;
1267
1267
  });
1268
1268
  le.TweenMax = le.TweenLite = V;
1269
1269
  le.TimelineLite = le.TimelineMax = K;
@@ -1274,33 +1274,33 @@ z = new K({
1274
1274
  id: "root",
1275
1275
  smoothChildTiming: !0
1276
1276
  });
1277
- oe.stringFilter = $r;
1278
- var Ve = [], Mt = {}, os = [], Vi = 0, ls = 0, Yt = function(e) {
1279
- return (Mt[e] || os).map(function(t) {
1277
+ oe.stringFilter = Vr;
1278
+ var Ve = [], Lt = {}, cs = [], ji = 0, us = 0, Zt = function(e) {
1279
+ return (Lt[e] || cs).map(function(t) {
1280
1280
  return t();
1281
1281
  });
1282
- }, li = function() {
1282
+ }, hi = function() {
1283
1283
  var e = Date.now(), t = [];
1284
- e - Vi > 2 && (Yt("matchMediaInit"), Ve.forEach(function(i) {
1284
+ e - ji > 2 && (Zt("matchMediaInit"), Ve.forEach(function(i) {
1285
1285
  var r = i.queries, n = i.conditions, s, a, l, c;
1286
1286
  for (a in r)
1287
1287
  s = fe.matchMedia(r[a]).matches, s && (l = 1), s !== n[a] && (n[a] = s, c = 1);
1288
1288
  c && (i.revert(), l && t.push(i));
1289
- }), Yt("matchMediaRevert"), t.forEach(function(i) {
1289
+ }), Zt("matchMediaRevert"), t.forEach(function(i) {
1290
1290
  return i.onMatch(i, function(r) {
1291
1291
  return i.add(null, r);
1292
1292
  });
1293
- }), Vi = e, Yt("matchMedia"));
1294
- }, Jr = /* @__PURE__ */ (function() {
1293
+ }), ji = e, Zt("matchMedia"));
1294
+ }, tn = /* @__PURE__ */ (function() {
1295
1295
  function o(t, i) {
1296
- this.selector = i && si(i), this.data = [], this._r = [], this.isReverted = !1, this.id = ls++, t && this.add(t);
1296
+ this.selector = i && li(i), this.data = [], this._r = [], this.isReverted = !1, this.id = us++, t && this.add(t);
1297
1297
  }
1298
1298
  var e = o.prototype;
1299
1299
  return e.add = function(i, r, n) {
1300
1300
  B(i) && (n = r, r = i, i = B);
1301
1301
  var s = this, a = function() {
1302
1302
  var c = U, u = s.selector, h;
1303
- return c && c !== s && c.data.push(s), n && (s.selector = si(n)), U = s, h = r.apply(s, arguments), B(h) && s._r.push(h), U = c, s.selector = u, s.isReverted = !1, h;
1303
+ return c && c !== s && c.data.push(s), n && (s.selector = li(n)), U = s, h = r.apply(s, arguments), B(h) && s._r.push(h), U = c, s.selector = u, s.isReverted = !1, h;
1304
1304
  };
1305
1305
  return s.last = a, i === B ? a(s, function(l) {
1306
1306
  return s.add(null, l);
@@ -1344,19 +1344,19 @@ var Ve = [], Mt = {}, os = [], Vi = 0, ls = 0, Yt = function(e) {
1344
1344
  }, e.revert = function(i) {
1345
1345
  this.kill(i || {});
1346
1346
  }, o;
1347
- })(), cs = /* @__PURE__ */ (function() {
1347
+ })(), hs = /* @__PURE__ */ (function() {
1348
1348
  function o(t) {
1349
1349
  this.contexts = [], this.scope = t, U && U.data.push(this);
1350
1350
  }
1351
1351
  var e = o.prototype;
1352
1352
  return e.add = function(i, r, n) {
1353
- _e(i) || (i = {
1353
+ be(i) || (i = {
1354
1354
  matches: i
1355
1355
  });
1356
- var s = new Jr(0, n || this.scope), a = s.conditions = {}, l, c, u;
1356
+ var s = new tn(0, n || this.scope), a = s.conditions = {}, l, c, u;
1357
1357
  U && !s.selector && (s.selector = U.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = i;
1358
1358
  for (c in i)
1359
- c === "all" ? u = 1 : (l = fe.matchMedia(i[c]), l && (Ve.indexOf(s) < 0 && Ve.push(s), (a[c] = l.matches) && (u = 1), l.addListener ? l.addListener(li) : l.addEventListener("change", li)));
1359
+ c === "all" ? u = 1 : (l = fe.matchMedia(i[c]), l && (Ve.indexOf(s) < 0 && Ve.push(s), (a[c] = l.matches) && (u = 1), l.addListener ? l.addListener(hi) : l.addEventListener("change", hi)));
1360
1360
  return u && r(s, function(h) {
1361
1361
  return s.add(null, h);
1362
1362
  }), this;
@@ -1367,12 +1367,12 @@ var Ve = [], Mt = {}, os = [], Vi = 0, ls = 0, Yt = function(e) {
1367
1367
  return r.kill(i, !0);
1368
1368
  });
1369
1369
  }, o;
1370
- })(), kt = {
1370
+ })(), Ut = {
1371
1371
  registerPlugin: function() {
1372
1372
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
1373
1373
  t[i] = arguments[i];
1374
1374
  t.forEach(function(r) {
1375
- return Ur(r);
1375
+ return $r(r);
1376
1376
  });
1377
1377
  },
1378
1378
  timeline: function(e) {
@@ -1383,7 +1383,7 @@ var Ve = [], Mt = {}, os = [], Vi = 0, ls = 0, Yt = function(e) {
1383
1383
  },
1384
1384
  getProperty: function(e, t, i, r) {
1385
1385
  Y(e) && (e = de(e)[0]);
1386
- var n = $e(e || {}).get, s = i ? Cr : wr;
1386
+ var n = $e(e || {}).get, s = i ? Sr : Ar;
1387
1387
  return i === "native" && (i = ""), e && (t ? s((ne[t] && ne[t].get || n)(e, t, i, r)) : function(a, l, c) {
1388
1388
  return s((ne[a] && ne[a].get || n)(e, a, l, c));
1389
1389
  });
@@ -1401,7 +1401,7 @@ var Ve = [], Mt = {}, os = [], Vi = 0, ls = 0, Yt = function(e) {
1401
1401
  e = e[0] || {};
1402
1402
  var s = ne[t], a = $e(e), l = a.harness && (a.harness.aliases || {})[t] || t, c = s ? function(u) {
1403
1403
  var h = new s();
1404
- Xe._pt = 0, h.init(e, i ? u + i : u, Xe, 0, [e]), h.render(1, h), Xe._pt && Ti(1, Xe);
1404
+ Xe._pt = 0, h.init(e, i ? u + i : u, Xe, 0, [e]), h.render(1, h), Xe._pt && Di(1, Xe);
1405
1405
  } : a.set(e, l);
1406
1406
  return s ? c : function(u) {
1407
1407
  return c(e, l, i ? u + i : u, a, 1);
@@ -1417,19 +1417,19 @@ var Ve = [], Mt = {}, os = [], Vi = 0, ls = 0, Yt = function(e) {
1417
1417
  return z.getTweensOf(e, !0).length > 0;
1418
1418
  },
1419
1419
  defaults: function(e) {
1420
- return e && e.ease && (e.ease = Ge(e.ease, Qe.ease)), zi(Qe, e || {});
1420
+ return e && e.ease && (e.ease = Ge(e.ease, Qe.ease)), $i(Qe, e || {});
1421
1421
  },
1422
1422
  config: function(e) {
1423
- return zi(oe, e || {});
1423
+ return $i(oe, e || {});
1424
1424
  },
1425
1425
  registerEffect: function(e) {
1426
1426
  var t = e.name, i = e.effect, r = e.plugins, n = e.defaults, s = e.extendTimeline;
1427
1427
  (r || "").split(",").forEach(function(a) {
1428
- return a && !ne[a] && !le[a] && ft(t + " effect requires " + a + " plugin.");
1429
- }), Gt[t] = function(a, l, c) {
1428
+ return a && !ne[a] && !le[a] && mt(t + " effect requires " + a + " plugin.");
1429
+ }), jt[t] = function(a, l, c) {
1430
1430
  return i(de(a), ce(l || {}, n), c);
1431
1431
  }, s && (K.prototype[t] = function(a, l, c) {
1432
- return this.add(Gt[t](a, _e(l) ? l : (c = l) && {}, this), c);
1432
+ return this.add(jt[t](a, be(l) ? l : (c = l) && {}, this), c);
1433
1433
  });
1434
1434
  },
1435
1435
  registerEase: function(e, t) {
@@ -1449,10 +1449,10 @@ var Ve = [], Mt = {}, os = [], Vi = 0, ls = 0, Yt = function(e) {
1449
1449
  return me(z, i, 0), i;
1450
1450
  },
1451
1451
  context: function(e, t) {
1452
- return e ? new Jr(e, t) : U;
1452
+ return e ? new tn(e, t) : U;
1453
1453
  },
1454
1454
  matchMedia: function(e) {
1455
- return new cs(e);
1455
+ return new hs(e);
1456
1456
  },
1457
1457
  matchMediaRefresh: function() {
1458
1458
  return Ve.forEach(function(e) {
@@ -1460,48 +1460,48 @@ var Ve = [], Mt = {}, os = [], Vi = 0, ls = 0, Yt = function(e) {
1460
1460
  for (r in t)
1461
1461
  t[r] && (t[r] = !1, i = 1);
1462
1462
  i && e.revert();
1463
- }) || li();
1463
+ }) || hi();
1464
1464
  },
1465
1465
  addEventListener: function(e, t) {
1466
- var i = Mt[e] || (Mt[e] = []);
1466
+ var i = Lt[e] || (Lt[e] = []);
1467
1467
  ~i.indexOf(t) || i.push(t);
1468
1468
  },
1469
1469
  removeEventListener: function(e, t) {
1470
- var i = Mt[e], r = i && i.indexOf(t);
1470
+ var i = Lt[e], r = i && i.indexOf(t);
1471
1471
  r >= 0 && i.splice(r, 1);
1472
1472
  },
1473
1473
  utils: {
1474
- wrap: Bn,
1475
- wrapYoyo: Gn,
1476
- distribute: Lr,
1477
- random: Ir,
1478
- snap: Rr,
1479
- normalize: $n,
1474
+ wrap: Vn,
1475
+ wrapYoyo: Hn,
1476
+ distribute: kr,
1477
+ random: Fr,
1478
+ snap: Or,
1479
+ normalize: Gn,
1480
1480
  getUnit: X,
1481
- clamp: Fn,
1482
- splitColor: zr,
1481
+ clamp: zn,
1482
+ splitColor: Br,
1483
1483
  toArray: de,
1484
- selector: si,
1485
- mapRange: kr,
1486
- pipe: zn,
1487
- unitize: Nn,
1488
- interpolate: Vn,
1489
- shuffle: Dr
1484
+ selector: li,
1485
+ mapRange: zr,
1486
+ pipe: $n,
1487
+ unitize: Bn,
1488
+ interpolate: jn,
1489
+ shuffle: Rr
1490
1490
  },
1491
- install: _r,
1492
- effects: Gt,
1491
+ install: vr,
1492
+ effects: jt,
1493
1493
  ticker: se,
1494
1494
  updateRoot: K.updateRoot,
1495
1495
  plugins: ne,
1496
1496
  globalTimeline: z,
1497
1497
  core: {
1498
1498
  PropTween: te,
1499
- globals: xr,
1499
+ globals: Er,
1500
1500
  Tween: V,
1501
1501
  Timeline: K,
1502
- Animation: _t,
1502
+ Animation: xt,
1503
1503
  getCache: $e,
1504
- _removeLinkedListItem: zt,
1504
+ _removeLinkedListItem: Bt,
1505
1505
  reverting: function() {
1506
1506
  return W;
1507
1507
  },
@@ -1509,27 +1509,27 @@ var Ve = [], Mt = {}, os = [], Vi = 0, ls = 0, Yt = function(e) {
1509
1509
  return e && U && (U.data.push(e), e._ctx = U), U;
1510
1510
  },
1511
1511
  suppressOverwrites: function(e) {
1512
- return mi = e;
1512
+ return yi = e;
1513
1513
  }
1514
1514
  }
1515
1515
  };
1516
1516
  ee("to,from,fromTo,delayedCall,set,killTweensOf", function(o) {
1517
- return kt[o] = V[o];
1517
+ return Ut[o] = V[o];
1518
1518
  });
1519
1519
  se.add(K.updateRoot);
1520
- Xe = kt.to({}, {
1520
+ Xe = Ut.to({}, {
1521
1521
  duration: 0
1522
1522
  });
1523
- var us = function(e, t) {
1523
+ var ds = function(e, t) {
1524
1524
  for (var i = e._pt; i && i.p !== t && i.op !== t && i.fp !== t; )
1525
1525
  i = i._next;
1526
1526
  return i;
1527
- }, hs = function(e, t) {
1527
+ }, ps = function(e, t) {
1528
1528
  var i = e._targets, r, n, s;
1529
1529
  for (r in t)
1530
1530
  for (n = i.length; n--; )
1531
- s = e._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = us(s, r)), s && s.modifier && s.modifier(t[r], e, i[n], r));
1532
- }, Wt = function(e, t) {
1531
+ s = e._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = ds(s, r)), s && s.modifier && s.modifier(t[r], e, i[n], r));
1532
+ }, qt = function(e, t) {
1533
1533
  return {
1534
1534
  name: e,
1535
1535
  headless: 1,
@@ -1546,11 +1546,11 @@ var us = function(e, t) {
1546
1546
  l[c] = t(n[c]);
1547
1547
  n = l;
1548
1548
  }
1549
- hs(a, n);
1549
+ ps(a, n);
1550
1550
  };
1551
1551
  }
1552
1552
  };
1553
- }, re = kt.registerPlugin({
1553
+ }, re = Ut.registerPlugin({
1554
1554
  name: "attr",
1555
1555
  init: function(e, t, i, r, n) {
1556
1556
  var s, a, l;
@@ -1569,10 +1569,10 @@ var us = function(e, t) {
1569
1569
  for (var i = t.length; i--; )
1570
1570
  this.add(e, i, e[i] || 0, t[i], 0, 0, 0, 0, 0, 1);
1571
1571
  }
1572
- }, Wt("roundProps", ai), Wt("modifiers"), Wt("snap", Rr)) || kt;
1572
+ }, qt("roundProps", ci), qt("modifiers"), qt("snap", Or)) || Ut;
1573
1573
  V.version = K.version = re.version = "3.13.0";
1574
- yr = 1;
1575
- yi() && rt();
1574
+ _r = 1;
1575
+ xi() && rt();
1576
1576
  M.Power0;
1577
1577
  M.Power1;
1578
1578
  M.Power2;
@@ -1591,40 +1591,40 @@ M.Bounce;
1591
1591
  M.Sine;
1592
1592
  M.Expo;
1593
1593
  M.Circ;
1594
- var Hi, Pe, Ke, Mi, ze, ji, Di, ds = function() {
1594
+ var Yi, Pe, Ke, Li, ze, Wi, Ii, fs = function() {
1595
1595
  return typeof window < "u";
1596
- }, we = {}, Ue = 180 / Math.PI, Je = Math.PI / 180, Ye = Math.atan2, Yi = 1e8, Li = /([A-Z])/g, ps = /(left|right|width|margin|padding|x)/i, fs = /[\s,\(]\S/, ge = {
1596
+ }, we = {}, Ue = 180 / Math.PI, Je = Math.PI / 180, Ye = Math.atan2, Xi = 1e8, Ri = /([A-Z])/g, ms = /(left|right|width|margin|padding|x)/i, gs = /[\s,\(]\S/, ge = {
1597
1597
  autoAlpha: "opacity,visibility",
1598
1598
  scale: "scaleX,scaleY",
1599
1599
  alpha: "opacity"
1600
- }, ci = function(e, t) {
1600
+ }, di = function(e, t) {
1601
1601
  return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
1602
- }, ms = function(e, t) {
1602
+ }, ys = function(e, t) {
1603
1603
  return t.set(t.t, t.p, e === 1 ? t.e : Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
1604
- }, gs = function(e, t) {
1604
+ }, bs = function(e, t) {
1605
1605
  return t.set(t.t, t.p, e ? Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u : t.b, t);
1606
- }, ys = function(e, t) {
1606
+ }, xs = function(e, t) {
1607
1607
  var i = t.s + t.c * e;
1608
1608
  t.set(t.t, t.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + t.u, t);
1609
- }, Qr = function(e, t) {
1609
+ }, rn = function(e, t) {
1610
1610
  return t.set(t.t, t.p, e ? t.e : t.b, t);
1611
- }, en = function(e, t) {
1611
+ }, nn = function(e, t) {
1612
1612
  return t.set(t.t, t.p, e !== 1 ? t.b : t.e, t);
1613
1613
  }, _s = function(e, t, i) {
1614
1614
  return e.style[t] = i;
1615
- }, xs = function(e, t, i) {
1615
+ }, vs = function(e, t, i) {
1616
1616
  return e.style.setProperty(t, i);
1617
- }, bs = function(e, t, i) {
1617
+ }, Es = function(e, t, i) {
1618
1618
  return e._gsap[t] = i;
1619
- }, vs = function(e, t, i) {
1619
+ }, ws = function(e, t, i) {
1620
1620
  return e._gsap.scaleX = e._gsap.scaleY = i;
1621
- }, Es = function(e, t, i, r, n) {
1621
+ }, Cs = function(e, t, i, r, n) {
1622
1622
  var s = e._gsap;
1623
1623
  s.scaleX = s.scaleY = i, s.renderTransform(n, s);
1624
- }, ws = function(e, t, i, r, n) {
1624
+ }, Ps = function(e, t, i, r, n) {
1625
1625
  var s = e._gsap;
1626
1626
  s[t] = i, s.renderTransform(n, s);
1627
- }, N = "transform", ie = N + "Origin", Cs = function o(e, t) {
1627
+ }, N = "transform", ie = N + "Origin", As = function o(e, t) {
1628
1628
  var i = this, r = this.target, n = r.style, s = r._gsap;
1629
1629
  if (e in we && n) {
1630
1630
  if (this.tfm = this.tfm || {}, e !== "transform")
@@ -1640,114 +1640,114 @@ var Hi, Pe, Ke, Mi, ze, ji, Di, ds = function() {
1640
1640
  s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(ie, t, "")), e = N;
1641
1641
  }
1642
1642
  (n || t) && this.props.push(e, t, n[e]);
1643
- }, tn = function(e) {
1643
+ }, sn = function(e) {
1644
1644
  e.translate && (e.removeProperty("translate"), e.removeProperty("scale"), e.removeProperty("rotate"));
1645
- }, Ps = function() {
1645
+ }, Ss = function() {
1646
1646
  var e = this.props, t = this.target, i = t.style, r = t._gsap, n, s;
1647
1647
  for (n = 0; n < e.length; n += 3)
1648
- e[n + 1] ? e[n + 1] === 2 ? t[e[n]](e[n + 2]) : t[e[n]] = e[n + 2] : e[n + 2] ? i[e[n]] = e[n + 2] : i.removeProperty(e[n].substr(0, 2) === "--" ? e[n] : e[n].replace(Li, "-$1").toLowerCase());
1648
+ e[n + 1] ? e[n + 1] === 2 ? t[e[n]](e[n + 2]) : t[e[n]] = e[n + 2] : e[n + 2] ? i[e[n]] = e[n + 2] : i.removeProperty(e[n].substr(0, 2) === "--" ? e[n] : e[n].replace(Ri, "-$1").toLowerCase());
1649
1649
  if (this.tfm) {
1650
1650
  for (s in this.tfm)
1651
1651
  r[s] = this.tfm[s];
1652
- r.svg && (r.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), n = Di(), (!n || !n.isStart) && !i[N] && (tn(i), r.zOrigin && i[ie] && (i[ie] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
1652
+ r.svg && (r.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), n = Ii(), (!n || !n.isStart) && !i[N] && (sn(i), r.zOrigin && i[ie] && (i[ie] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
1653
1653
  }
1654
- }, rn = function(e, t) {
1654
+ }, an = function(e, t) {
1655
1655
  var i = {
1656
1656
  target: e,
1657
1657
  props: [],
1658
- revert: Ps,
1659
- save: Cs
1658
+ revert: Ss,
1659
+ save: As
1660
1660
  };
1661
1661
  return e._gsap || re.core.getCache(e), t && e.style && e.nodeType && t.split(",").forEach(function(r) {
1662
1662
  return i.save(r);
1663
1663
  }), i;
1664
- }, nn, ui = function(e, t) {
1664
+ }, on, pi = function(e, t) {
1665
1665
  var i = Pe.createElementNS ? Pe.createElementNS((t || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : Pe.createElement(e);
1666
1666
  return i && i.style ? i : Pe.createElement(e);
1667
1667
  }, pe = function o(e, t, i) {
1668
1668
  var r = getComputedStyle(e);
1669
- return r[t] || r.getPropertyValue(t.replace(Li, "-$1").toLowerCase()) || r.getPropertyValue(t) || !i && o(e, nt(t) || t, 1) || "";
1670
- }, Wi = "O,Moz,ms,Ms,Webkit".split(","), nt = function(e, t, i) {
1669
+ return r[t] || r.getPropertyValue(t.replace(Ri, "-$1").toLowerCase()) || r.getPropertyValue(t) || !i && o(e, nt(t) || t, 1) || "";
1670
+ }, Zi = "O,Moz,ms,Ms,Webkit".split(","), nt = function(e, t, i) {
1671
1671
  var r = t || ze, n = r.style, s = 5;
1672
1672
  if (e in n && !i)
1673
1673
  return e;
1674
- for (e = e.charAt(0).toUpperCase() + e.substr(1); s-- && !(Wi[s] + e in n); )
1674
+ for (e = e.charAt(0).toUpperCase() + e.substr(1); s-- && !(Zi[s] + e in n); )
1675
1675
  ;
1676
- return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? Wi[s] : "") + e;
1677
- }, hi = function() {
1678
- ds() && window.document && (Hi = window, Pe = Hi.document, Ke = Pe.documentElement, ze = ui("div") || {
1676
+ return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? Zi[s] : "") + e;
1677
+ }, fi = function() {
1678
+ fs() && window.document && (Yi = window, Pe = Yi.document, Ke = Pe.documentElement, ze = pi("div") || {
1679
1679
  style: {}
1680
- }, ui("div"), N = nt(N), ie = N + "Origin", ze.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", nn = !!nt("perspective"), Di = re.core.reverting, Mi = 1);
1681
- }, Xi = function(e) {
1682
- var t = e.ownerSVGElement, i = ui("svg", t && t.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = e.cloneNode(!0), n;
1680
+ }, pi("div"), N = nt(N), ie = N + "Origin", ze.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", on = !!nt("perspective"), Ii = re.core.reverting, Li = 1);
1681
+ }, qi = function(e) {
1682
+ var t = e.ownerSVGElement, i = pi("svg", t && t.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = e.cloneNode(!0), n;
1683
1683
  r.style.display = "block", i.appendChild(r), Ke.appendChild(i);
1684
1684
  try {
1685
1685
  n = r.getBBox();
1686
1686
  } catch {
1687
1687
  }
1688
1688
  return i.removeChild(r), Ke.removeChild(i), n;
1689
- }, Zi = function(e, t) {
1689
+ }, Ki = function(e, t) {
1690
1690
  for (var i = t.length; i--; )
1691
1691
  if (e.hasAttribute(t[i]))
1692
1692
  return e.getAttribute(t[i]);
1693
- }, sn = function(e) {
1693
+ }, ln = function(e) {
1694
1694
  var t, i;
1695
1695
  try {
1696
1696
  t = e.getBBox();
1697
1697
  } catch {
1698
- t = Xi(e), i = 1;
1698
+ t = qi(e), i = 1;
1699
1699
  }
1700
- return t && (t.width || t.height) || i || (t = Xi(e)), t && !t.width && !t.x && !t.y ? {
1701
- x: +Zi(e, ["x", "cx", "x1"]) || 0,
1702
- y: +Zi(e, ["y", "cy", "y1"]) || 0,
1700
+ return t && (t.width || t.height) || i || (t = qi(e)), t && !t.width && !t.x && !t.y ? {
1701
+ x: +Ki(e, ["x", "cx", "x1"]) || 0,
1702
+ y: +Ki(e, ["y", "cy", "y1"]) || 0,
1703
1703
  width: 0,
1704
1704
  height: 0
1705
1705
  } : t;
1706
- }, an = function(e) {
1707
- return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && sn(e));
1706
+ }, cn = function(e) {
1707
+ return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && ln(e));
1708
1708
  }, He = function(e, t) {
1709
1709
  if (t) {
1710
1710
  var i = e.style, r;
1711
- t in we && t !== ie && (t = N), i.removeProperty ? (r = t.substr(0, 2), (r === "ms" || t.substr(0, 6) === "webkit") && (t = "-" + t), i.removeProperty(r === "--" ? t : t.replace(Li, "-$1").toLowerCase())) : i.removeAttribute(t);
1711
+ t in we && t !== ie && (t = N), i.removeProperty ? (r = t.substr(0, 2), (r === "ms" || t.substr(0, 6) === "webkit") && (t = "-" + t), i.removeProperty(r === "--" ? t : t.replace(Ri, "-$1").toLowerCase())) : i.removeAttribute(t);
1712
1712
  }
1713
1713
  }, Ae = function(e, t, i, r, n, s) {
1714
- var a = new te(e._pt, t, i, 0, 1, s ? en : Qr);
1714
+ var a = new te(e._pt, t, i, 0, 1, s ? nn : rn);
1715
1715
  return e._pt = a, a.b = r, a.e = n, e._props.push(i), a;
1716
- }, qi = {
1716
+ }, Ji = {
1717
1717
  deg: 1,
1718
1718
  rad: 1,
1719
1719
  turn: 1
1720
- }, As = {
1720
+ }, Ts = {
1721
1721
  grid: 1,
1722
1722
  flex: 1
1723
1723
  }, Le = function o(e, t, i, r) {
1724
- var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = ze.style, l = ps.test(t), c = e.tagName.toLowerCase() === "svg", u = (c ? "client" : "offset") + (l ? "Width" : "Height"), h = 100, p = r === "px", f = r === "%", m, d, g, y;
1725
- if (r === s || !n || qi[r] || qi[s])
1724
+ var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = ze.style, l = ms.test(t), c = e.tagName.toLowerCase() === "svg", u = (c ? "client" : "offset") + (l ? "Width" : "Height"), h = 100, p = r === "px", f = r === "%", m, d, g, y;
1725
+ if (r === s || !n || Ji[r] || Ji[s])
1726
1726
  return n;
1727
- if (s !== "px" && !p && (n = o(e, t, i, "px")), y = e.getCTM && an(e), (f || s === "%") && (we[t] || ~t.indexOf("adius")))
1727
+ if (s !== "px" && !p && (n = o(e, t, i, "px")), y = e.getCTM && cn(e), (f || s === "%") && (we[t] || ~t.indexOf("adius")))
1728
1728
  return m = y ? e.getBBox()[l ? "width" : "height"] : e[u], G(f ? n / m * h : n / 100 * m);
1729
1729
  if (a[l ? "width" : "height"] = h + (p ? s : r), d = r !== "rem" && ~t.indexOf("adius") || r === "em" && e.appendChild && !c ? e : e.parentNode, y && (d = (e.ownerSVGElement || {}).parentNode), (!d || d === Pe || !d.appendChild) && (d = Pe.body), g = d._gsap, g && f && g.width && l && g.time === se.time && !g.uncache)
1730
1730
  return G(n / g.width * h);
1731
1731
  if (f && (t === "height" || t === "width")) {
1732
- var _ = e.style[t];
1733
- e.style[t] = h + r, m = e[u], _ ? e.style[t] = _ : He(e, t);
1732
+ var b = e.style[t];
1733
+ e.style[t] = h + r, m = e[u], b ? e.style[t] = b : He(e, t);
1734
1734
  } else
1735
- (f || s === "%") && !As[pe(d, "display")] && (a.position = pe(e, "position")), d === e && (a.position = "static"), d.appendChild(ze), m = ze[u], d.removeChild(ze), a.position = "absolute";
1735
+ (f || s === "%") && !Ts[pe(d, "display")] && (a.position = pe(e, "position")), d === e && (a.position = "static"), d.appendChild(ze), m = ze[u], d.removeChild(ze), a.position = "absolute";
1736
1736
  return l && f && (g = $e(d), g.time = se.time, g.width = d[u]), G(p ? m * n / h : m && n ? h / m * n : 0);
1737
1737
  }, ve = function(e, t, i, r) {
1738
1738
  var n;
1739
- return Mi || hi(), t in ge && t !== "transform" && (t = ge[t], ~t.indexOf(",") && (t = t.split(",")[0])), we[t] && t !== "transform" ? (n = bt(e, r), n = t !== "transformOrigin" ? n[t] : n.svg ? n.origin : Ut(pe(e, ie)) + " " + n.zOrigin + "px") : (n = e.style[t], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = Ft[t] && Ft[t](e, t, i) || pe(e, t) || vr(e, t) || (t === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? Le(e, t, n, i) + i : n;
1740
- }, Ss = function(e, t, i, r) {
1739
+ return Li || fi(), t in ge && t !== "transform" && (t = ge[t], ~t.indexOf(",") && (t = t.split(",")[0])), we[t] && t !== "transform" ? (n = vt(e, r), n = t !== "transformOrigin" ? n[t] : n.svg ? n.origin : Nt(pe(e, ie)) + " " + n.zOrigin + "px") : (n = e.style[t], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = zt[t] && zt[t](e, t, i) || pe(e, t) || Cr(e, t) || (t === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? Le(e, t, n, i) + i : n;
1740
+ }, Ms = function(e, t, i, r) {
1741
1741
  if (!i || i === "none") {
1742
1742
  var n = nt(t, e, 1), s = n && pe(e, n, 1);
1743
1743
  s && s !== i ? (t = n, i = s) : t === "borderColor" && (i = pe(e, "borderTopColor"));
1744
1744
  }
1745
- var a = new te(this._pt, e.style, t, 0, 1, qr), l = 0, c = 0, u, h, p, f, m, d, g, y, _, x, v, b;
1746
- if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = pe(e, r.substring(4, r.indexOf(")")))), r === "auto" && (d = e.style[t], e.style[t] = r, r = pe(e, t) || r, d ? e.style[t] = d : He(e, t)), u = [i, r], $r(u), i = u[0], r = u[1], p = i.match(We) || [], b = r.match(We) || [], b.length) {
1745
+ var a = new te(this._pt, e.style, t, 0, 1, Qr), l = 0, c = 0, u, h, p, f, m, d, g, y, b, x, v, _;
1746
+ if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = pe(e, r.substring(4, r.indexOf(")")))), r === "auto" && (d = e.style[t], e.style[t] = r, r = pe(e, t) || r, d ? e.style[t] = d : He(e, t)), u = [i, r], Vr(u), i = u[0], r = u[1], p = i.match(We) || [], _ = r.match(We) || [], _.length) {
1747
1747
  for (; h = We.exec(r); )
1748
- g = h[0], _ = r.substring(l, h.index), m ? m = (m + 1) % 5 : (_.substr(-5) === "rgba(" || _.substr(-5) === "hsla(") && (m = 1), g !== (d = p[c++] || "") && (f = parseFloat(d) || 0, v = d.substr((f + "").length), g.charAt(1) === "=" && (g = qe(f, g) + v), y = parseFloat(g), x = g.substr((y + "").length), l = We.lastIndex - x.length, x || (x = x || oe.units[t] || v, l === r.length && (r += x, a.e += x)), v !== x && (f = Le(e, t, d, x) || 0), a._pt = {
1748
+ g = h[0], b = r.substring(l, h.index), m ? m = (m + 1) % 5 : (b.substr(-5) === "rgba(" || b.substr(-5) === "hsla(") && (m = 1), g !== (d = p[c++] || "") && (f = parseFloat(d) || 0, v = d.substr((f + "").length), g.charAt(1) === "=" && (g = qe(f, g) + v), y = parseFloat(g), x = g.substr((y + "").length), l = We.lastIndex - x.length, x || (x = x || oe.units[t] || v, l === r.length && (r += x, a.e += x)), v !== x && (f = Le(e, t, d, x) || 0), a._pt = {
1749
1749
  _next: a._pt,
1750
- p: _ || c === 1 ? _ : ",",
1750
+ p: b || c === 1 ? b : ",",
1751
1751
  //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
1752
1752
  s: f,
1753
1753
  c: y - f,
@@ -1755,18 +1755,18 @@ var Hi, Pe, Ke, Mi, ze, ji, Di, ds = function() {
1755
1755
  });
1756
1756
  a.c = l < r.length ? r.substring(l, r.length) : "";
1757
1757
  } else
1758
- a.r = t === "display" && r === "none" ? en : Qr;
1759
- return mr.test(r) && (a.e = 0), this._pt = a, a;
1760
- }, Ki = {
1758
+ a.r = t === "display" && r === "none" ? nn : rn;
1759
+ return br.test(r) && (a.e = 0), this._pt = a, a;
1760
+ }, Qi = {
1761
1761
  top: "0%",
1762
1762
  bottom: "100%",
1763
1763
  left: "0%",
1764
1764
  right: "100%",
1765
1765
  center: "50%"
1766
- }, Ts = function(e) {
1766
+ }, Ds = function(e) {
1767
1767
  var t = e.split(" "), i = t[0], r = t[1] || "50%";
1768
- return (i === "top" || i === "bottom" || r === "left" || r === "right") && (e = i, i = r, r = e), t[0] = Ki[i] || i, t[1] = Ki[r] || r, t.join(" ");
1769
- }, Ms = function(e, t) {
1768
+ return (i === "top" || i === "bottom" || r === "left" || r === "right") && (e = i, i = r, r = e), t[0] = Qi[i] || i, t[1] = Qi[r] || r, t.join(" ");
1769
+ }, Ls = function(e, t) {
1770
1770
  if (t.tween && t.tween._time === t.tween._dur) {
1771
1771
  var i = t.t, r = i.style, n = t.u, s = i._gsap, a, l, c;
1772
1772
  if (n === "all" || n === !0)
@@ -1774,12 +1774,12 @@ var Hi, Pe, Ke, Mi, ze, ji, Di, ds = function() {
1774
1774
  else
1775
1775
  for (n = n.split(","), c = n.length; --c > -1; )
1776
1776
  a = n[c], we[a] && (l = 1, a = a === "transformOrigin" ? ie : N), He(i, a);
1777
- l && (He(i, N), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", bt(i, 1), s.uncache = 1, tn(r)));
1777
+ l && (He(i, N), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", vt(i, 1), s.uncache = 1, sn(r)));
1778
1778
  }
1779
- }, Ft = {
1779
+ }, zt = {
1780
1780
  clearProps: function(e, t, i, r, n) {
1781
1781
  if (n.data !== "isFromStart") {
1782
- var s = e._pt = new te(e._pt, t, i, 0, 0, Ms);
1782
+ var s = e._pt = new te(e._pt, t, i, 0, 0, Ls);
1783
1783
  return s.u = r, s.pr = -10, s.tween = n, e._props.push(i), 1;
1784
1784
  }
1785
1785
  }
@@ -1846,59 +1846,59 @@ var Hi, Pe, Ke, Mi, ze, ji, Di, ds = function() {
1846
1846
  return 1;
1847
1847
  }
1848
1848
  */
1849
- }, xt = [1, 0, 0, 1, 0, 0], on = {}, ln = function(e) {
1849
+ }, _t = [1, 0, 0, 1, 0, 0], un = {}, hn = function(e) {
1850
1850
  return e === "matrix(1, 0, 0, 1, 0, 0)" || e === "none" || !e;
1851
- }, Ji = function(e) {
1851
+ }, er = function(e) {
1852
1852
  var t = pe(e, N);
1853
- return ln(t) ? xt : t.substr(7).match(fr).map(G);
1854
- }, Ri = function(e, t) {
1855
- var i = e._gsap || $e(e), r = e.style, n = Ji(e), s, a, l, c;
1856
- return i.svg && e.getAttribute("transform") ? (l = e.transform.baseVal.consolidate().matrix, n = [l.a, l.b, l.c, l.d, l.e, l.f], n.join(",") === "1,0,0,1,0,0" ? xt : n) : (n === xt && !e.offsetParent && e !== Ke && !i.svg && (l = r.display, r.display = "block", s = e.parentNode, (!s || !e.offsetParent && !e.getBoundingClientRect().width) && (c = 1, a = e.nextElementSibling, Ke.appendChild(e)), n = Ji(e), l ? r.display = l : He(e, "display"), c && (a ? s.insertBefore(e, a) : s ? s.appendChild(e) : Ke.removeChild(e))), t && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
1857
- }, di = function(e, t, i, r, n, s) {
1858
- var a = e._gsap, l = n || Ri(e, !0), c = a.xOrigin || 0, u = a.yOrigin || 0, h = a.xOffset || 0, p = a.yOffset || 0, f = l[0], m = l[1], d = l[2], g = l[3], y = l[4], _ = l[5], x = t.split(" "), v = parseFloat(x[0]) || 0, b = parseFloat(x[1]) || 0, C, E, P, w;
1859
- i ? l !== xt && (E = f * g - m * d) && (P = v * (g / E) + b * (-d / E) + (d * _ - g * y) / E, w = v * (-m / E) + b * (f / E) - (f * _ - m * y) / E, v = P, b = w) : (C = sn(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)), r || r !== !1 && a.smooth ? (y = v - c, _ = b - u, a.xOffset = h + (y * f + _ * d) - y, a.yOffset = p + (y * m + _ * g) - _) : a.xOffset = a.yOffset = 0, a.xOrigin = v, a.yOrigin = b, a.smooth = !!r, a.origin = t, a.originIsAbsolute = !!i, e.style[ie] = "0px 0px", s && (Ae(s, a, "xOrigin", c, v), Ae(s, a, "yOrigin", u, b), Ae(s, a, "xOffset", h, a.xOffset), Ae(s, a, "yOffset", p, a.yOffset)), e.setAttribute("data-svg-origin", v + " " + b);
1860
- }, bt = function(e, t) {
1861
- var i = e._gsap || new Hr(e);
1853
+ return hn(t) ? _t : t.substr(7).match(yr).map(G);
1854
+ }, ki = function(e, t) {
1855
+ var i = e._gsap || $e(e), r = e.style, n = er(e), s, a, l, c;
1856
+ return i.svg && e.getAttribute("transform") ? (l = e.transform.baseVal.consolidate().matrix, n = [l.a, l.b, l.c, l.d, l.e, l.f], n.join(",") === "1,0,0,1,0,0" ? _t : n) : (n === _t && !e.offsetParent && e !== Ke && !i.svg && (l = r.display, r.display = "block", s = e.parentNode, (!s || !e.offsetParent && !e.getBoundingClientRect().width) && (c = 1, a = e.nextElementSibling, Ke.appendChild(e)), n = er(e), l ? r.display = l : He(e, "display"), c && (a ? s.insertBefore(e, a) : s ? s.appendChild(e) : Ke.removeChild(e))), t && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
1857
+ }, mi = function(e, t, i, r, n, s) {
1858
+ var a = e._gsap, l = n || ki(e, !0), c = a.xOrigin || 0, u = a.yOrigin || 0, h = a.xOffset || 0, p = a.yOffset || 0, f = l[0], m = l[1], d = l[2], g = l[3], y = l[4], b = l[5], x = t.split(" "), v = parseFloat(x[0]) || 0, _ = parseFloat(x[1]) || 0, C, E, P, w;
1859
+ i ? l !== _t && (E = f * g - m * d) && (P = v * (g / E) + _ * (-d / E) + (d * b - g * y) / E, w = v * (-m / E) + _ * (f / E) - (f * b - m * y) / E, v = P, _ = w) : (C = ln(e), v = C.x + (~x[0].indexOf("%") ? v / 100 * C.width : v), _ = C.y + (~(x[1] || x[0]).indexOf("%") ? _ / 100 * C.height : _)), r || r !== !1 && a.smooth ? (y = v - c, b = _ - u, a.xOffset = h + (y * f + b * d) - y, a.yOffset = p + (y * m + b * g) - b) : a.xOffset = a.yOffset = 0, a.xOrigin = v, a.yOrigin = _, a.smooth = !!r, a.origin = t, a.originIsAbsolute = !!i, e.style[ie] = "0px 0px", s && (Ae(s, a, "xOrigin", c, v), Ae(s, a, "yOrigin", u, _), Ae(s, a, "xOffset", h, a.xOffset), Ae(s, a, "yOffset", p, a.yOffset)), e.setAttribute("data-svg-origin", v + " " + _);
1860
+ }, vt = function(e, t) {
1861
+ var i = e._gsap || new Wr(e);
1862
1862
  if ("x" in i && !t && !i.uncache)
1863
1863
  return i;
1864
- var r = e.style, n = i.scaleX < 0, s = "px", a = "deg", l = getComputedStyle(e), c = pe(e, ie) || "0", u, h, p, f, m, d, g, y, _, x, v, b, C, E, P, w, T, D, S, L, R, $, F, k, J, st, at, ot, Ie, ki, xe, Oe;
1865
- return u = h = p = d = g = y = _ = x = v = 0, f = m = 1, i.svg = !!(e.getCTM && an(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (r[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[N] !== "none" ? l[N] : "")), r.scale = r.rotate = r.translate = "none"), E = Ri(e, i.svg), i.svg && (i.uncache ? (J = e.getBBox(), c = i.xOrigin - J.x + "px " + (i.yOrigin - J.y) + "px", k = "") : k = !t && e.getAttribute("data-svg-origin"), di(e, k || c, !!k || i.originIsAbsolute, i.smooth !== !1, E)), b = i.xOrigin || 0, C = i.yOrigin || 0, E !== xt && (D = E[0], S = E[1], L = E[2], R = E[3], u = $ = E[4], h = F = E[5], E.length === 6 ? (f = Math.sqrt(D * D + S * S), m = Math.sqrt(R * R + L * L), d = D || S ? Ye(S, D) * Ue : 0, _ = L || R ? Ye(L, R) * Ue + d : 0, _ && (m *= Math.abs(Math.cos(_ * Je))), i.svg && (u -= b - (b * D + C * L), h -= C - (b * S + C * R))) : (Oe = E[6], ki = E[7], at = E[8], ot = E[9], Ie = E[10], xe = E[11], u = E[12], h = E[13], p = E[14], P = Ye(Oe, Ie), g = P * Ue, P && (w = Math.cos(-P), T = Math.sin(-P), k = $ * w + at * T, J = F * w + ot * T, st = Oe * w + Ie * T, at = $ * -T + at * w, ot = F * -T + ot * w, Ie = Oe * -T + Ie * w, xe = ki * -T + xe * w, $ = k, F = J, Oe = st), P = Ye(-L, Ie), y = P * Ue, P && (w = Math.cos(-P), T = Math.sin(-P), k = D * w - at * T, J = S * w - ot * T, st = L * w - Ie * T, xe = R * T + xe * w, D = k, S = J, L = st), P = Ye(S, D), d = P * Ue, P && (w = Math.cos(P), T = Math.sin(P), k = D * w + S * T, J = $ * w + F * T, S = S * w - D * T, F = F * w - $ * T, D = k, $ = J), g && Math.abs(g) + Math.abs(d) > 359.9 && (g = d = 0, y = 180 - y), f = G(Math.sqrt(D * D + S * S + L * L)), m = G(Math.sqrt(F * F + Oe * Oe)), P = Ye($, F), _ = Math.abs(P) > 2e-4 ? P * Ue : 0, v = xe ? 1 / (xe < 0 ? -xe : xe) : 0), i.svg && (k = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !ln(pe(e, N)), k && e.setAttribute("transform", k))), Math.abs(_) > 90 && Math.abs(_) < 270 && (n ? (f *= -1, _ += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (m *= -1, _ += _ <= 0 ? 180 : -180)), t = t || i.uncache, i.x = u - ((i.xPercent = u && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + s, i.y = h - ((i.yPercent = h && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + s, i.z = p + s, i.scaleX = G(f), i.scaleY = G(m), i.rotation = G(d) + a, i.rotationX = G(g) + a, i.rotationY = G(y) + a, i.skewX = _ + a, i.skewY = x + a, i.transformPerspective = v + s, (i.zOrigin = parseFloat(c.split(" ")[2]) || !t && i.zOrigin || 0) && (r[ie] = Ut(c)), i.xOffset = i.yOffset = 0, i.force3D = oe.force3D, i.renderTransform = i.svg ? Ls : nn ? cn : Ds, i.uncache = 0, i;
1866
- }, Ut = function(e) {
1864
+ var r = e.style, n = i.scaleX < 0, s = "px", a = "deg", l = getComputedStyle(e), c = pe(e, ie) || "0", u, h, p, f, m, d, g, y, b, x, v, _, C, E, P, w, T, D, S, L, I, $, F, O, J, st, at, ot, Re, Ui, xe, ke;
1865
+ return u = h = p = d = g = y = b = x = v = 0, f = m = 1, i.svg = !!(e.getCTM && cn(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (r[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[N] !== "none" ? l[N] : "")), r.scale = r.rotate = r.translate = "none"), E = ki(e, i.svg), i.svg && (i.uncache ? (J = e.getBBox(), c = i.xOrigin - J.x + "px " + (i.yOrigin - J.y) + "px", O = "") : O = !t && e.getAttribute("data-svg-origin"), mi(e, O || c, !!O || i.originIsAbsolute, i.smooth !== !1, E)), _ = i.xOrigin || 0, C = i.yOrigin || 0, E !== _t && (D = E[0], S = E[1], L = E[2], I = E[3], u = $ = E[4], h = F = E[5], E.length === 6 ? (f = Math.sqrt(D * D + S * S), m = Math.sqrt(I * I + L * L), d = D || S ? Ye(S, D) * Ue : 0, b = L || I ? Ye(L, I) * Ue + d : 0, b && (m *= Math.abs(Math.cos(b * Je))), i.svg && (u -= _ - (_ * D + C * L), h -= C - (_ * S + C * I))) : (ke = E[6], Ui = E[7], at = E[8], ot = E[9], Re = E[10], xe = E[11], u = E[12], h = E[13], p = E[14], P = Ye(ke, Re), g = P * Ue, P && (w = Math.cos(-P), T = Math.sin(-P), O = $ * w + at * T, J = F * w + ot * T, st = ke * w + Re * T, at = $ * -T + at * w, ot = F * -T + ot * w, Re = ke * -T + Re * w, xe = Ui * -T + xe * w, $ = O, F = J, ke = st), P = Ye(-L, Re), y = P * Ue, P && (w = Math.cos(-P), T = Math.sin(-P), O = D * w - at * T, J = S * w - ot * T, st = L * w - Re * T, xe = I * T + xe * w, D = O, S = J, L = st), P = Ye(S, D), d = P * Ue, P && (w = Math.cos(P), T = Math.sin(P), O = D * w + S * T, J = $ * w + F * T, S = S * w - D * T, F = F * w - $ * T, D = O, $ = J), g && Math.abs(g) + Math.abs(d) > 359.9 && (g = d = 0, y = 180 - y), f = G(Math.sqrt(D * D + S * S + L * L)), m = G(Math.sqrt(F * F + ke * ke)), P = Ye($, F), b = Math.abs(P) > 2e-4 ? P * Ue : 0, v = xe ? 1 / (xe < 0 ? -xe : xe) : 0), i.svg && (O = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !hn(pe(e, N)), O && e.setAttribute("transform", O))), Math.abs(b) > 90 && Math.abs(b) < 270 && (n ? (f *= -1, b += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (m *= -1, b += b <= 0 ? 180 : -180)), t = t || i.uncache, i.x = u - ((i.xPercent = u && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + s, i.y = h - ((i.yPercent = h && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + s, i.z = p + s, i.scaleX = G(f), i.scaleY = G(m), i.rotation = G(d) + a, i.rotationX = G(g) + a, i.rotationY = G(y) + a, i.skewX = b + a, i.skewY = x + a, i.transformPerspective = v + s, (i.zOrigin = parseFloat(c.split(" ")[2]) || !t && i.zOrigin || 0) && (r[ie] = Nt(c)), i.xOffset = i.yOffset = 0, i.force3D = oe.force3D, i.renderTransform = i.svg ? Rs : on ? dn : Is, i.uncache = 0, i;
1866
+ }, Nt = function(e) {
1867
1867
  return (e = e.split(" "))[0] + " " + e[1];
1868
- }, Xt = function(e, t, i) {
1868
+ }, Kt = function(e, t, i) {
1869
1869
  var r = X(t);
1870
1870
  return G(parseFloat(t) + parseFloat(Le(e, "x", i + "px", r))) + r;
1871
- }, Ds = function(e, t) {
1872
- t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, cn(e, t);
1873
- }, ke = "0deg", lt = "0px", Fe = ") ", cn = function(e, t) {
1874
- var i = t || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.z, c = i.rotation, u = i.rotationY, h = i.rotationX, p = i.skewX, f = i.skewY, m = i.scaleX, d = i.scaleY, g = i.transformPerspective, y = i.force3D, _ = i.target, x = i.zOrigin, v = "", b = y === "auto" && e && e !== 1 || y === !0;
1875
- if (x && (h !== ke || u !== ke)) {
1871
+ }, Is = function(e, t) {
1872
+ t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, dn(e, t);
1873
+ }, Oe = "0deg", lt = "0px", Fe = ") ", dn = function(e, t) {
1874
+ var i = t || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.z, c = i.rotation, u = i.rotationY, h = i.rotationX, p = i.skewX, f = i.skewY, m = i.scaleX, d = i.scaleY, g = i.transformPerspective, y = i.force3D, b = i.target, x = i.zOrigin, v = "", _ = y === "auto" && e && e !== 1 || y === !0;
1875
+ if (x && (h !== Oe || u !== Oe)) {
1876
1876
  var C = parseFloat(u) * Je, E = Math.sin(C), P = Math.cos(C), w;
1877
- C = parseFloat(h) * Je, w = Math.cos(C), s = Xt(_, s, E * w * -x), a = Xt(_, a, -Math.sin(C) * -x), l = Xt(_, l, P * w * -x + x);
1877
+ C = parseFloat(h) * Je, w = Math.cos(C), s = Kt(b, s, E * w * -x), a = Kt(b, a, -Math.sin(C) * -x), l = Kt(b, l, P * w * -x + x);
1878
1878
  }
1879
- g !== lt && (v += "perspective(" + g + Fe), (r || n) && (v += "translate(" + r + "%, " + n + "%) "), (b || s !== lt || a !== lt || l !== lt) && (v += l !== lt || b ? "translate3d(" + s + ", " + a + ", " + l + ") " : "translate(" + s + ", " + a + Fe), c !== ke && (v += "rotate(" + c + Fe), u !== ke && (v += "rotateY(" + u + Fe), h !== ke && (v += "rotateX(" + h + Fe), (p !== ke || f !== ke) && (v += "skew(" + p + ", " + f + Fe), (m !== 1 || d !== 1) && (v += "scale(" + m + ", " + d + Fe), _.style[N] = v || "translate(0, 0)";
1880
- }, Ls = function(e, t) {
1881
- var i = t || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.rotation, c = i.skewX, u = i.skewY, h = i.scaleX, p = i.scaleY, f = i.target, m = i.xOrigin, d = i.yOrigin, g = i.xOffset, y = i.yOffset, _ = i.forceCSS, x = parseFloat(s), v = parseFloat(a), b, C, E, P, w;
1882
- l = parseFloat(l), c = parseFloat(c), u = parseFloat(u), u && (u = parseFloat(u), c += u, l += u), l || c ? (l *= Je, c *= Je, b = Math.cos(l) * h, C = Math.sin(l) * h, E = Math.sin(l - c) * -p, P = Math.cos(l - c) * p, c && (u *= Je, w = Math.tan(c - u), w = Math.sqrt(1 + w * w), E *= w, P *= w, u && (w = Math.tan(u), w = Math.sqrt(1 + w * w), b *= w, C *= w)), b = G(b), C = G(C), E = G(E), P = G(P)) : (b = h, P = p, C = E = 0), (x && !~(s + "").indexOf("px") || v && !~(a + "").indexOf("px")) && (x = Le(f, "x", s, "px"), v = Le(f, "y", a, "px")), (m || d || g || y) && (x = G(x + m - (m * b + d * E) + g), v = G(v + d - (m * C + d * P) + y)), (r || n) && (w = f.getBBox(), x = G(x + r / 100 * w.width), v = G(v + n / 100 * w.height)), w = "matrix(" + b + "," + C + "," + E + "," + P + "," + x + "," + v + ")", f.setAttribute("transform", w), _ && (f.style[N] = w);
1883
- }, Rs = function(e, t, i, r, n) {
1879
+ g !== lt && (v += "perspective(" + g + Fe), (r || n) && (v += "translate(" + r + "%, " + n + "%) "), (_ || s !== lt || a !== lt || l !== lt) && (v += l !== lt || _ ? "translate3d(" + s + ", " + a + ", " + l + ") " : "translate(" + s + ", " + a + Fe), c !== Oe && (v += "rotate(" + c + Fe), u !== Oe && (v += "rotateY(" + u + Fe), h !== Oe && (v += "rotateX(" + h + Fe), (p !== Oe || f !== Oe) && (v += "skew(" + p + ", " + f + Fe), (m !== 1 || d !== 1) && (v += "scale(" + m + ", " + d + Fe), b.style[N] = v || "translate(0, 0)";
1880
+ }, Rs = function(e, t) {
1881
+ var i = t || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.rotation, c = i.skewX, u = i.skewY, h = i.scaleX, p = i.scaleY, f = i.target, m = i.xOrigin, d = i.yOrigin, g = i.xOffset, y = i.yOffset, b = i.forceCSS, x = parseFloat(s), v = parseFloat(a), _, C, E, P, w;
1882
+ l = parseFloat(l), c = parseFloat(c), u = parseFloat(u), u && (u = parseFloat(u), c += u, l += u), l || c ? (l *= Je, c *= Je, _ = Math.cos(l) * h, C = Math.sin(l) * h, E = Math.sin(l - c) * -p, P = Math.cos(l - c) * p, c && (u *= Je, w = Math.tan(c - u), w = Math.sqrt(1 + w * w), E *= w, P *= w, u && (w = Math.tan(u), w = Math.sqrt(1 + w * w), _ *= w, C *= w)), _ = G(_), C = G(C), E = G(E), P = G(P)) : (_ = h, P = p, C = E = 0), (x && !~(s + "").indexOf("px") || v && !~(a + "").indexOf("px")) && (x = Le(f, "x", s, "px"), v = Le(f, "y", a, "px")), (m || d || g || y) && (x = G(x + m - (m * _ + d * E) + g), v = G(v + d - (m * C + d * P) + y)), (r || n) && (w = f.getBBox(), x = G(x + r / 100 * w.width), v = G(v + n / 100 * w.height)), w = "matrix(" + _ + "," + C + "," + E + "," + P + "," + x + "," + v + ")", f.setAttribute("transform", w), b && (f.style[N] = w);
1883
+ }, ks = function(e, t, i, r, n) {
1884
1884
  var s = 360, a = Y(n), l = parseFloat(n) * (a && ~n.indexOf("rad") ? Ue : 1), c = l - r, u = r + c + "deg", h, p;
1885
- return a && (h = n.split("_")[1], h === "short" && (c %= s, c !== c % (s / 2) && (c += c < 0 ? s : -s)), h === "cw" && c < 0 ? c = (c + s * Yi) % s - ~~(c / s) * s : h === "ccw" && c > 0 && (c = (c - s * Yi) % s - ~~(c / s) * s)), e._pt = p = new te(e._pt, t, i, r, c, ms), p.e = u, p.u = "deg", e._props.push(i), p;
1886
- }, Qi = function(e, t) {
1885
+ return a && (h = n.split("_")[1], h === "short" && (c %= s, c !== c % (s / 2) && (c += c < 0 ? s : -s)), h === "cw" && c < 0 ? c = (c + s * Xi) % s - ~~(c / s) * s : h === "ccw" && c > 0 && (c = (c - s * Xi) % s - ~~(c / s) * s)), e._pt = p = new te(e._pt, t, i, r, c, ys), p.e = u, p.u = "deg", e._props.push(i), p;
1886
+ }, tr = function(e, t) {
1887
1887
  for (var i in t)
1888
1888
  e[i] = t[i];
1889
1889
  return e;
1890
- }, Is = function(e, t, i) {
1891
- var r = Qi({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a, l, c, u, h, p, f, m;
1892
- r.svg ? (c = i.getAttribute("transform"), i.setAttribute("transform", ""), s[N] = t, a = bt(i, 1), He(i, N), i.setAttribute("transform", c)) : (c = getComputedStyle(i)[N], s[N] = t, a = bt(i, 1), s[N] = c);
1890
+ }, Os = function(e, t, i) {
1891
+ var r = tr({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a, l, c, u, h, p, f, m;
1892
+ r.svg ? (c = i.getAttribute("transform"), i.setAttribute("transform", ""), s[N] = t, a = vt(i, 1), He(i, N), i.setAttribute("transform", c)) : (c = getComputedStyle(i)[N], s[N] = t, a = vt(i, 1), s[N] = c);
1893
1893
  for (l in we)
1894
- c = r[l], u = a[l], c !== u && n.indexOf(l) < 0 && (f = X(c), m = X(u), h = f !== m ? Le(i, l, c, m) : parseFloat(c), p = parseFloat(u), e._pt = new te(e._pt, a, l, h, p - h, ci), e._pt.u = m || 0, e._props.push(l));
1895
- Qi(a, r);
1894
+ c = r[l], u = a[l], c !== u && n.indexOf(l) < 0 && (f = X(c), m = X(u), h = f !== m ? Le(i, l, c, m) : parseFloat(c), p = parseFloat(u), e._pt = new te(e._pt, a, l, h, p - h, di), e._pt.u = m || 0, e._props.push(l));
1895
+ tr(a, r);
1896
1896
  };
1897
1897
  ee("padding,margin,Width,Radius", function(o, e) {
1898
1898
  var t = "Top", i = "Right", r = "Bottom", n = "Left", s = (e < 3 ? [t, i, r, n] : [t + n, t + i, r + i, r + n]).map(function(a) {
1899
1899
  return e < 2 ? o + a : "border" + a + o;
1900
1900
  });
1901
- Ft[e > 1 ? "border" + o : o] = function(a, l, c, u, h) {
1901
+ zt[e > 1 ? "border" + o : o] = function(a, l, c, u, h) {
1902
1902
  var p, f;
1903
1903
  if (arguments.length < 4)
1904
1904
  return p = s.map(function(m) {
@@ -1909,62 +1909,62 @@ ee("padding,margin,Width,Radius", function(o, e) {
1909
1909
  }), a.init(l, f, h);
1910
1910
  };
1911
1911
  });
1912
- var un = {
1912
+ var pn = {
1913
1913
  name: "css",
1914
- register: hi,
1914
+ register: fi,
1915
1915
  targetTest: function(e) {
1916
1916
  return e.style && e.nodeType;
1917
1917
  },
1918
1918
  init: function(e, t, i, r, n) {
1919
- var s = this._props, a = e.style, l = i.vars.startAt, c, u, h, p, f, m, d, g, y, _, x, v, b, C, E, P;
1920
- Mi || hi(), this.styles = this.styles || rn(e), P = this.styles.props, this.tween = i;
1919
+ var s = this._props, a = e.style, l = i.vars.startAt, c, u, h, p, f, m, d, g, y, b, x, v, _, C, E, P;
1920
+ Li || fi(), this.styles = this.styles || an(e), P = this.styles.props, this.tween = i;
1921
1921
  for (d in t)
1922
- if (d !== "autoRound" && (u = t[d], !(ne[d] && jr(d, t, i, r, e, n)))) {
1923
- if (f = typeof u, m = Ft[d], f === "function" && (u = u.call(i, r, e, n), f = typeof u), f === "string" && ~u.indexOf("random(") && (u = gt(u)), m)
1922
+ if (d !== "autoRound" && (u = t[d], !(ne[d] && Xr(d, t, i, r, e, n)))) {
1923
+ if (f = typeof u, m = zt[d], f === "function" && (u = u.call(i, r, e, n), f = typeof u), f === "string" && ~u.indexOf("random(") && (u = yt(u)), m)
1924
1924
  m(this, e, d, u, i) && (E = 1);
1925
1925
  else if (d.substr(0, 2) === "--")
1926
1926
  c = (getComputedStyle(e).getPropertyValue(d) + "").trim(), u += "", Me.lastIndex = 0, Me.test(c) || (g = X(c), y = X(u)), y ? g !== y && (c = Le(e, d, c, y) + y) : g && (u += g), this.add(a, "setProperty", c, u, r, n, 0, 0, d), s.push(d), P.push(d, 0, a[d]);
1927
1927
  else if (f !== "undefined") {
1928
- if (l && d in l ? (c = typeof l[d] == "function" ? l[d].call(i, r, e, n) : l[d], Y(c) && ~c.indexOf("random(") && (c = gt(c)), X(c + "") || c === "auto" || (c += oe.units[d] || X(ve(e, d)) || ""), (c + "").charAt(1) === "=" && (c = ve(e, d))) : c = ve(e, d), p = parseFloat(c), _ = f === "string" && u.charAt(1) === "=" && u.substr(0, 2), _ && (u = u.substr(2)), h = parseFloat(u), d in ge && (d === "autoAlpha" && (p === 1 && ve(e, "visibility") === "hidden" && h && (p = 0), P.push("visibility", 0, a.visibility), Ae(this, a, "visibility", p ? "inherit" : "hidden", h ? "inherit" : "hidden", !h)), d !== "scale" && d !== "transform" && (d = ge[d], ~d.indexOf(",") && (d = d.split(",")[0]))), x = d in we, x) {
1929
- if (this.styles.save(d), f === "string" && u.substring(0, 6) === "var(--" && (u = pe(e, u.substring(4, u.indexOf(")"))), h = parseFloat(u)), v || (b = e._gsap, b.renderTransform && !t.parseTransform || bt(e, t.parseTransform), C = t.smoothOrigin !== !1 && b.smooth, v = this._pt = new te(this._pt, a, N, 0, 1, b.renderTransform, b, 0, -1), v.dep = 1), d === "scale")
1930
- this._pt = new te(this._pt, b, "scaleY", b.scaleY, (_ ? qe(b.scaleY, _ + h) : h) - b.scaleY || 0, ci), this._pt.u = 0, s.push("scaleY", d), d += "X";
1928
+ if (l && d in l ? (c = typeof l[d] == "function" ? l[d].call(i, r, e, n) : l[d], Y(c) && ~c.indexOf("random(") && (c = yt(c)), X(c + "") || c === "auto" || (c += oe.units[d] || X(ve(e, d)) || ""), (c + "").charAt(1) === "=" && (c = ve(e, d))) : c = ve(e, d), p = parseFloat(c), b = f === "string" && u.charAt(1) === "=" && u.substr(0, 2), b && (u = u.substr(2)), h = parseFloat(u), d in ge && (d === "autoAlpha" && (p === 1 && ve(e, "visibility") === "hidden" && h && (p = 0), P.push("visibility", 0, a.visibility), Ae(this, a, "visibility", p ? "inherit" : "hidden", h ? "inherit" : "hidden", !h)), d !== "scale" && d !== "transform" && (d = ge[d], ~d.indexOf(",") && (d = d.split(",")[0]))), x = d in we, x) {
1929
+ if (this.styles.save(d), f === "string" && u.substring(0, 6) === "var(--" && (u = pe(e, u.substring(4, u.indexOf(")"))), h = parseFloat(u)), v || (_ = e._gsap, _.renderTransform && !t.parseTransform || vt(e, t.parseTransform), C = t.smoothOrigin !== !1 && _.smooth, v = this._pt = new te(this._pt, a, N, 0, 1, _.renderTransform, _, 0, -1), v.dep = 1), d === "scale")
1930
+ this._pt = new te(this._pt, _, "scaleY", _.scaleY, (b ? qe(_.scaleY, b + h) : h) - _.scaleY || 0, di), this._pt.u = 0, s.push("scaleY", d), d += "X";
1931
1931
  else if (d === "transformOrigin") {
1932
- P.push(ie, 0, a[ie]), u = Ts(u), b.svg ? di(e, u, 0, C, 0, this) : (y = parseFloat(u.split(" ")[2]) || 0, y !== b.zOrigin && Ae(this, b, "zOrigin", b.zOrigin, y), Ae(this, a, d, Ut(c), Ut(u)));
1932
+ P.push(ie, 0, a[ie]), u = Ds(u), _.svg ? mi(e, u, 0, C, 0, this) : (y = parseFloat(u.split(" ")[2]) || 0, y !== _.zOrigin && Ae(this, _, "zOrigin", _.zOrigin, y), Ae(this, a, d, Nt(c), Nt(u)));
1933
1933
  continue;
1934
1934
  } else if (d === "svgOrigin") {
1935
- di(e, u, 1, C, 0, this);
1935
+ mi(e, u, 1, C, 0, this);
1936
1936
  continue;
1937
- } else if (d in on) {
1938
- Rs(this, b, d, p, _ ? qe(p, _ + u) : u);
1937
+ } else if (d in un) {
1938
+ ks(this, _, d, p, b ? qe(p, b + u) : u);
1939
1939
  continue;
1940
1940
  } else if (d === "smoothOrigin") {
1941
- Ae(this, b, "smooth", b.smooth, u);
1941
+ Ae(this, _, "smooth", _.smooth, u);
1942
1942
  continue;
1943
1943
  } else if (d === "force3D") {
1944
- b[d] = u;
1944
+ _[d] = u;
1945
1945
  continue;
1946
1946
  } else if (d === "transform") {
1947
- Is(this, u, e);
1947
+ Os(this, u, e);
1948
1948
  continue;
1949
1949
  }
1950
1950
  } else d in a || (d = nt(d) || d);
1951
- if (x || (h || h === 0) && (p || p === 0) && !fs.test(u) && d in a)
1952
- g = (c + "").substr((p + "").length), h || (h = 0), y = X(u) || (d in oe.units ? oe.units[d] : g), g !== y && (p = Le(e, d, c, y)), this._pt = new te(this._pt, x ? b : a, d, p, (_ ? qe(p, _ + h) : h) - p, !x && (y === "px" || d === "zIndex") && t.autoRound !== !1 ? ys : ci), this._pt.u = y || 0, g !== y && y !== "%" && (this._pt.b = c, this._pt.r = gs);
1951
+ if (x || (h || h === 0) && (p || p === 0) && !gs.test(u) && d in a)
1952
+ g = (c + "").substr((p + "").length), h || (h = 0), y = X(u) || (d in oe.units ? oe.units[d] : g), g !== y && (p = Le(e, d, c, y)), this._pt = new te(this._pt, x ? _ : a, d, p, (b ? qe(p, b + h) : h) - p, !x && (y === "px" || d === "zIndex") && t.autoRound !== !1 ? xs : di), this._pt.u = y || 0, g !== y && y !== "%" && (this._pt.b = c, this._pt.r = bs);
1953
1953
  else if (d in a)
1954
- Ss.call(this, e, d, c, _ ? _ + u : u);
1954
+ Ms.call(this, e, d, c, b ? b + u : u);
1955
1955
  else if (d in e)
1956
- this.add(e, d, c || e[d], _ ? _ + u : u, r, n);
1956
+ this.add(e, d, c || e[d], b ? b + u : u, r, n);
1957
1957
  else if (d !== "parseTransform") {
1958
- xi(d, u);
1958
+ vi(d, u);
1959
1959
  continue;
1960
1960
  }
1961
1961
  x || (d in a ? P.push(d, 0, a[d]) : typeof e[d] == "function" ? P.push(d, 2, e[d]()) : P.push(d, 1, c || e[d])), s.push(d);
1962
1962
  }
1963
1963
  }
1964
- E && Kr(this);
1964
+ E && en(this);
1965
1965
  },
1966
1966
  render: function(e, t) {
1967
- if (t.tween._time || !Di())
1967
+ if (t.tween._time || !Ii())
1968
1968
  for (var i = t._pt; i; )
1969
1969
  i.r(e, i.d), i = i._next;
1970
1970
  else
@@ -1974,21 +1974,21 @@ var un = {
1974
1974
  aliases: ge,
1975
1975
  getSetter: function(e, t, i) {
1976
1976
  var r = ge[t];
1977
- return r && r.indexOf(",") < 0 && (t = r), t in we && t !== ie && (e._gsap.x || ve(e, "x")) ? i && ji === i ? t === "scale" ? vs : bs : (ji = i || {}) && (t === "scale" ? Es : ws) : e.style && !gi(e.style[t]) ? _s : ~t.indexOf("-") ? xs : Si(e, t);
1977
+ return r && r.indexOf(",") < 0 && (t = r), t in we && t !== ie && (e._gsap.x || ve(e, "x")) ? i && Wi === i ? t === "scale" ? ws : Es : (Wi = i || {}) && (t === "scale" ? Cs : Ps) : e.style && !bi(e.style[t]) ? _s : ~t.indexOf("-") ? vs : Mi(e, t);
1978
1978
  },
1979
1979
  core: {
1980
1980
  _removeProperty: He,
1981
- _getMatrix: Ri
1981
+ _getMatrix: ki
1982
1982
  }
1983
1983
  };
1984
1984
  re.utils.checkPrefix = nt;
1985
- re.core.getStyleSaver = rn;
1985
+ re.core.getStyleSaver = an;
1986
1986
  (function(o, e, t, i) {
1987
1987
  var r = ee(o + "," + e + "," + t, function(n) {
1988
1988
  we[n] = 1;
1989
1989
  });
1990
1990
  ee(e, function(n) {
1991
- oe.units[n] = "deg", on[n] = 1;
1991
+ oe.units[n] = "deg", un[n] = 1;
1992
1992
  }), ge[r[13]] = o + "," + e, ee(i, function(n) {
1993
1993
  var s = n.split(":");
1994
1994
  ge[s[1]] = r[s[0]];
@@ -1997,8 +1997,8 @@ re.core.getStyleSaver = rn;
1997
1997
  ee("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(o) {
1998
1998
  oe.units[o] = "px";
1999
1999
  });
2000
- re.registerPlugin(un);
2001
- var j = re.registerPlugin(un) || re;
2000
+ re.registerPlugin(pn);
2001
+ var j = re.registerPlugin(pn) || re;
2002
2002
  j.core.Tween;
2003
2003
  class ye {
2004
2004
  constructor(e, t, i, r, n = "div") {
@@ -2226,7 +2226,7 @@ class ye {
2226
2226
  this.listen(!1), this.parent.children.splice(this.parent.children.indexOf(this), 1), this.parent.controllers.splice(this.parent.controllers.indexOf(this), 1), this.parent.$children.removeChild(this.domElement);
2227
2227
  }
2228
2228
  }
2229
- class Os extends ye {
2229
+ class Fs extends ye {
2230
2230
  constructor(e, t, i) {
2231
2231
  super(e, t, i, "lil-boolean", "label"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "checkbox"), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$widget.appendChild(this.$input), this.$input.addEventListener("change", () => {
2232
2232
  this.setValue(this.$input.checked), this._callOnFinishChange();
@@ -2236,56 +2236,56 @@ class Os extends ye {
2236
2236
  return this.$input.checked = this.getValue(), this;
2237
2237
  }
2238
2238
  }
2239
- function pi(o) {
2239
+ function gi(o) {
2240
2240
  let e, t;
2241
2241
  return (e = o.match(/(#|0x)?([a-f0-9]{6})/i)) ? t = e[2] : (e = o.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/)) ? t = parseInt(e[1]).toString(16).padStart(2, 0) + parseInt(e[2]).toString(16).padStart(2, 0) + parseInt(e[3]).toString(16).padStart(2, 0) : (e = o.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i)) && (t = e[1] + e[1] + e[2] + e[2] + e[3] + e[3]), t ? "#" + t : !1;
2242
2242
  }
2243
- const ks = {
2243
+ const Us = {
2244
2244
  isPrimitive: !0,
2245
2245
  match: (o) => typeof o == "string",
2246
- fromHexString: pi,
2247
- toHexString: pi
2248
- }, vt = {
2246
+ fromHexString: gi,
2247
+ toHexString: gi
2248
+ }, Et = {
2249
2249
  isPrimitive: !0,
2250
2250
  match: (o) => typeof o == "number",
2251
2251
  fromHexString: (o) => parseInt(o.substring(1), 16),
2252
2252
  toHexString: (o) => "#" + o.toString(16).padStart(6, 0)
2253
- }, Fs = {
2253
+ }, zs = {
2254
2254
  isPrimitive: !1,
2255
2255
  match: (o) => Array.isArray(o) || ArrayBuffer.isView(o),
2256
2256
  fromHexString(o, e, t = 1) {
2257
- const i = vt.fromHexString(o);
2257
+ const i = Et.fromHexString(o);
2258
2258
  e[0] = (i >> 16 & 255) / 255 * t, e[1] = (i >> 8 & 255) / 255 * t, e[2] = (i & 255) / 255 * t;
2259
2259
  },
2260
2260
  toHexString([o, e, t], i = 1) {
2261
2261
  i = 255 / i;
2262
2262
  const r = o * i << 16 ^ e * i << 8 ^ t * i << 0;
2263
- return vt.toHexString(r);
2263
+ return Et.toHexString(r);
2264
2264
  }
2265
- }, Us = {
2265
+ }, Ns = {
2266
2266
  isPrimitive: !1,
2267
2267
  match: (o) => Object(o) === o,
2268
2268
  fromHexString(o, e, t = 1) {
2269
- const i = vt.fromHexString(o);
2269
+ const i = Et.fromHexString(o);
2270
2270
  e.r = (i >> 16 & 255) / 255 * t, e.g = (i >> 8 & 255) / 255 * t, e.b = (i & 255) / 255 * t;
2271
2271
  },
2272
2272
  toHexString({ r: o, g: e, b: t }, i = 1) {
2273
2273
  i = 255 / i;
2274
2274
  const r = o * i << 16 ^ e * i << 8 ^ t * i << 0;
2275
- return vt.toHexString(r);
2275
+ return Et.toHexString(r);
2276
2276
  }
2277
- }, zs = [ks, vt, Fs, Us];
2278
- function Ns(o) {
2279
- return zs.find((e) => e.match(o));
2277
+ }, $s = [Us, Et, zs, Ns];
2278
+ function Bs(o) {
2279
+ return $s.find((e) => e.match(o));
2280
2280
  }
2281
- class $s extends ye {
2281
+ class Gs extends ye {
2282
2282
  constructor(e, t, i, r) {
2283
- super(e, t, i, "lil-color"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "color"), this.$input.setAttribute("tabindex", -1), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$text = document.createElement("input"), this.$text.setAttribute("type", "text"), this.$text.setAttribute("spellcheck", "false"), this.$text.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("lil-display"), this.$display.appendChild(this.$input), this.$widget.appendChild(this.$display), this.$widget.appendChild(this.$text), this._format = Ns(this.initialValue), this._rgbScale = r, this._initialValueHexString = this.save(), this._textFocused = !1, this.$input.addEventListener("input", () => {
2283
+ super(e, t, i, "lil-color"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "color"), this.$input.setAttribute("tabindex", -1), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$text = document.createElement("input"), this.$text.setAttribute("type", "text"), this.$text.setAttribute("spellcheck", "false"), this.$text.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("lil-display"), this.$display.appendChild(this.$input), this.$widget.appendChild(this.$display), this.$widget.appendChild(this.$text), this._format = Bs(this.initialValue), this._rgbScale = r, this._initialValueHexString = this.save(), this._textFocused = !1, this.$input.addEventListener("input", () => {
2284
2284
  this._setValueFromHexString(this.$input.value);
2285
2285
  }), this.$input.addEventListener("blur", () => {
2286
2286
  this._callOnFinishChange();
2287
2287
  }), this.$text.addEventListener("input", () => {
2288
- const n = pi(this.$text.value);
2288
+ const n = gi(this.$text.value);
2289
2289
  n && this._setValueFromHexString(n);
2290
2290
  }), this.$text.addEventListener("focus", () => {
2291
2291
  this._textFocused = !0, this.$text.select();
@@ -2313,7 +2313,7 @@ class $s extends ye {
2313
2313
  return this.$input.value = this._format.toHexString(this.getValue(), this._rgbScale), this._textFocused || (this.$text.value = this.$input.value.substring(1)), this.$display.style.backgroundColor = this.$input.value, this;
2314
2314
  }
2315
2315
  }
2316
- class Zt extends ye {
2316
+ class Jt extends ye {
2317
2317
  constructor(e, t, i) {
2318
2318
  super(e, t, i, "lil-function"), this.$button = document.createElement("button"), this.$button.appendChild(this.$name), this.$widget.appendChild(this.$button), this.$button.addEventListener("click", (r) => {
2319
2319
  r.preventDefault(), this.getValue().call(this.object), this._callOnChange();
@@ -2321,7 +2321,7 @@ class Zt extends ye {
2321
2321
  }, { passive: !0 }), this.$disable = this.$button;
2322
2322
  }
2323
2323
  }
2324
- class Bs extends ye {
2324
+ class Vs extends ye {
2325
2325
  constructor(e, t, i, r, n, s) {
2326
2326
  super(e, t, i, "lil-number"), this._initInput(), this.min(r), this.max(n);
2327
2327
  const a = s !== void 0;
@@ -2350,29 +2350,29 @@ class Bs extends ye {
2350
2350
  _initInput() {
2351
2351
  this.$input = document.createElement("input"), this.$input.setAttribute("type", "text"), this.$input.setAttribute("aria-labelledby", this.$name.id), window.matchMedia("(pointer: coarse)").matches && (this.$input.setAttribute("type", "number"), this.$input.setAttribute("step", "any")), this.$widget.appendChild(this.$input), this.$disable = this.$input;
2352
2352
  const t = () => {
2353
- let _ = parseFloat(this.$input.value);
2354
- isNaN(_) || (this._stepExplicit && (_ = this._snap(_)), this.setValue(this._clamp(_)));
2355
- }, i = (_) => {
2353
+ let b = parseFloat(this.$input.value);
2354
+ isNaN(b) || (this._stepExplicit && (b = this._snap(b)), this.setValue(this._clamp(b)));
2355
+ }, i = (b) => {
2356
2356
  const x = parseFloat(this.$input.value);
2357
- isNaN(x) || (this._snapClampSetValue(x + _), this.$input.value = this.getValue());
2358
- }, r = (_) => {
2359
- _.key === "Enter" && this.$input.blur(), _.code === "ArrowUp" && (_.preventDefault(), i(this._step * this._arrowKeyMultiplier(_))), _.code === "ArrowDown" && (_.preventDefault(), i(this._step * this._arrowKeyMultiplier(_) * -1));
2360
- }, n = (_) => {
2361
- this._inputFocused && (_.preventDefault(), i(this._step * this._normalizeMouseWheel(_)));
2357
+ isNaN(x) || (this._snapClampSetValue(x + b), this.$input.value = this.getValue());
2358
+ }, r = (b) => {
2359
+ b.key === "Enter" && this.$input.blur(), b.code === "ArrowUp" && (b.preventDefault(), i(this._step * this._arrowKeyMultiplier(b))), b.code === "ArrowDown" && (b.preventDefault(), i(this._step * this._arrowKeyMultiplier(b) * -1));
2360
+ }, n = (b) => {
2361
+ this._inputFocused && (b.preventDefault(), i(this._step * this._normalizeMouseWheel(b)));
2362
2362
  };
2363
2363
  let s = !1, a, l, c, u, h;
2364
- const p = 5, f = (_) => {
2365
- a = _.clientX, l = c = _.clientY, s = !0, u = this.getValue(), h = 0, window.addEventListener("mousemove", m), window.addEventListener("mouseup", d);
2366
- }, m = (_) => {
2364
+ const p = 5, f = (b) => {
2365
+ a = b.clientX, l = c = b.clientY, s = !0, u = this.getValue(), h = 0, window.addEventListener("mousemove", m), window.addEventListener("mouseup", d);
2366
+ }, m = (b) => {
2367
2367
  if (s) {
2368
- const x = _.clientX - a, v = _.clientY - l;
2369
- Math.abs(v) > p ? (_.preventDefault(), this.$input.blur(), s = !1, this._setDraggingStyle(!0, "vertical")) : Math.abs(x) > p && d();
2368
+ const x = b.clientX - a, v = b.clientY - l;
2369
+ Math.abs(v) > p ? (b.preventDefault(), this.$input.blur(), s = !1, this._setDraggingStyle(!0, "vertical")) : Math.abs(x) > p && d();
2370
2370
  }
2371
2371
  if (!s) {
2372
- const x = _.clientY - c;
2373
- h -= x * this._step * this._arrowKeyMultiplier(_), u + h > this._max ? h = this._max - u : u + h < this._min && (h = this._min - u), this._snapClampSetValue(u + h);
2372
+ const x = b.clientY - c;
2373
+ h -= x * this._step * this._arrowKeyMultiplier(b), u + h > this._max ? h = this._max - u : u + h < this._min && (h = this._min - u), this._snapClampSetValue(u + h);
2374
2374
  }
2375
- c = _.clientY;
2375
+ c = b.clientY;
2376
2376
  }, d = () => {
2377
2377
  this._setDraggingStyle(!1, "vertical"), this._callOnFinishChange(), window.removeEventListener("mousemove", m), window.removeEventListener("mouseup", d);
2378
2378
  }, g = () => {
@@ -2384,9 +2384,9 @@ class Bs extends ye {
2384
2384
  }
2385
2385
  _initSlider() {
2386
2386
  this._hasSlider = !0, this.$slider = document.createElement("div"), this.$slider.classList.add("lil-slider"), this.$fill = document.createElement("div"), this.$fill.classList.add("lil-fill"), this.$slider.appendChild(this.$fill), this.$widget.insertBefore(this.$slider, this.$input), this.domElement.classList.add("lil-has-slider");
2387
- const e = (y, _, x, v, b) => (y - _) / (x - _) * (b - v) + v, t = (y) => {
2388
- const _ = this.$slider.getBoundingClientRect();
2389
- let x = e(y, _.left, _.right, this._min, this._max);
2387
+ const e = (y, b, x, v, _) => (y - b) / (x - b) * (_ - v) + v, t = (y) => {
2388
+ const b = this.$slider.getBoundingClientRect();
2389
+ let x = e(y, b.left, b.right, this._min, this._max);
2390
2390
  this._snapClampSetValue(x);
2391
2391
  }, i = (y) => {
2392
2392
  this._setDraggingStyle(!0), t(y.clientX), window.addEventListener("mousemove", r), window.addEventListener("mouseup", n);
@@ -2402,8 +2402,8 @@ class Bs extends ye {
2402
2402
  y.touches.length > 1 || (this._hasScrollBar ? (a = y.touches[0].clientX, l = y.touches[0].clientY, s = !0) : c(y), window.addEventListener("touchmove", h, { passive: !1 }), window.addEventListener("touchend", p));
2403
2403
  }, h = (y) => {
2404
2404
  if (s) {
2405
- const _ = y.touches[0].clientX - a, x = y.touches[0].clientY - l;
2406
- Math.abs(_) > Math.abs(x) ? c(y) : (window.removeEventListener("touchmove", h), window.removeEventListener("touchend", p));
2405
+ const b = y.touches[0].clientX - a, x = y.touches[0].clientY - l;
2406
+ Math.abs(b) > Math.abs(x) ? c(y) : (window.removeEventListener("touchmove", h), window.removeEventListener("touchend", p));
2407
2407
  } else
2408
2408
  y.preventDefault(), t(y.touches[0].clientX);
2409
2409
  }, p = () => {
@@ -2456,7 +2456,7 @@ class Bs extends ye {
2456
2456
  return this._max !== void 0;
2457
2457
  }
2458
2458
  }
2459
- class Gs extends ye {
2459
+ class Hs extends ye {
2460
2460
  constructor(e, t, i, r) {
2461
2461
  super(e, t, i, "lil-option"), this.$select = document.createElement("select"), this.$select.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("lil-display"), this.$select.addEventListener("change", () => {
2462
2462
  this.setValue(this._values[this.$select.selectedIndex]), this._callOnFinishChange();
@@ -2477,7 +2477,7 @@ class Gs extends ye {
2477
2477
  return this.$select.selectedIndex = t, this.$display.textContent = t === -1 ? e : this._names[t], this;
2478
2478
  }
2479
2479
  }
2480
- class Vs extends ye {
2480
+ class js extends ye {
2481
2481
  constructor(e, t, i) {
2482
2482
  super(e, t, i, "lil-string"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "text"), this.$input.setAttribute("spellcheck", "false"), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$input.addEventListener("input", () => {
2483
2483
  this.setValue(this.$input.value);
@@ -2491,7 +2491,7 @@ class Vs extends ye {
2491
2491
  return this.$input.value = this.getValue(), this;
2492
2492
  }
2493
2493
  }
2494
- var Hs = `.lil-gui {
2494
+ var Ys = `.lil-gui {
2495
2495
  font-family: var(--font-family);
2496
2496
  font-size: var(--font-size);
2497
2497
  line-height: 1;
@@ -2913,14 +2913,14 @@ var Hs = `.lil-gui {
2913
2913
  font-family: "lil-gui";
2914
2914
  src: url("data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAALkAAsAAAAABtQAAAKVAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDMgqBBIEbATYCJAMUCwwABCAFhAoHgQQbHAbIDiUFEYVARAAAYQTVWNmz9MxhEgodq49wYRUFKE8GWNiUBxI2LBRaVnc51U83Gmhs0Q7JXWMiz5eteLwrKwuxHO8VFxUX9UpZBs6pa5ABRwHA+t3UxUnH20EvVknRerzQgX6xC/GH6ZUvTcAjAv122dF28OTqCXrPuyaDER30YBA1xnkVutDDo4oCi71Ca7rrV9xS8dZHbPHefsuwIyCpmT7j+MnjAH5X3984UZoFFuJ0yiZ4XEJFxjagEBeqs+e1iyK8Xf/nOuwF+vVK0ur765+vf7txotUi0m3N0m/84RGSrBCNrh8Ee5GjODjF4gnWP+dJrH/Lk9k4oT6d+gr6g/wssA2j64JJGP6cmx554vUZnpZfn6ZfX2bMwPPrlANsB86/DiHjhl0OP+c87+gaJo/gY084s3HoYL/ZkWHTRfBXvvoHnnkHvngKun4KBE/ede7tvq3/vQOxDXB1/fdNz6XbPdcr0Vhpojj9dG+owuSKFsslCi1tgEjirjXdwMiov2EioadxmqTHUCIwo8NgQaeIasAi0fTYSPTbSmwbMOFduyh9wvBrESGY0MtgRjtgQR8Q1bRPohn2UoCRZf9wyYANMXFeJTysqAe0I4mrherOekFdKMrYvJjLvOIUM9SuwYB5DVZUwwVjJJOaUnZCmcEkIZZrKqNvRGRMvmFZsmhP4VMKCSXBhSqUBxgMS7h0cZvEd71AWkEhGWaeMFcNnpqyJkyXgYL7PQ1MoSq0wDAkRtJIijkZSmqYTiSImfLiSWXIZwhRh3Rug2X0kk1Dgj+Iu43u5p98ghopcpSo0Uyc8SnjlYX59WUeaMoDqmVD2TOWD9a4pCRAzf2ECgwGcrHjPOWY9bNxq/OL3I/QjwEAAAA=") format("woff2");
2915
2915
  }`;
2916
- function js(o) {
2916
+ function Ws(o) {
2917
2917
  const e = document.createElement("style");
2918
2918
  e.innerHTML = o;
2919
2919
  const t = document.querySelector("head link[rel=stylesheet], head style");
2920
2920
  t ? document.head.insertBefore(e, t) : document.head.appendChild(e);
2921
2921
  }
2922
- let er = !1;
2923
- class Ii {
2922
+ let ir = !1;
2923
+ class Oi {
2924
2924
  /**
2925
2925
  * Creates a panel that holds controllers.
2926
2926
  * @example
@@ -2969,7 +2969,7 @@ class Ii {
2969
2969
  this.parent.children.push(this), this.parent.folders.push(this), this.parent.$children.appendChild(this.domElement);
2970
2970
  return;
2971
2971
  }
2972
- this.domElement.classList.add("lil-root"), l && this.domElement.classList.add("lil-allow-touch-styles"), !er && a && (js(Hs), er = !0), i ? i.appendChild(this.domElement) : t && (this.domElement.classList.add("lil-auto-place", "autoPlace"), document.body.appendChild(this.domElement)), r && this.domElement.style.setProperty("--width", r + "px"), this._closeFolders = s;
2972
+ this.domElement.classList.add("lil-root"), l && this.domElement.classList.add("lil-allow-touch-styles"), !ir && a && (Ws(Ys), ir = !0), i ? i.appendChild(this.domElement) : t && (this.domElement.classList.add("lil-auto-place", "autoPlace"), document.body.appendChild(this.domElement)), r && this.domElement.style.setProperty("--width", r + "px"), this._closeFolders = s;
2973
2973
  }
2974
2974
  /**
2975
2975
  * Adds a controller to the GUI, inferring controller type using the `typeof` operator.
@@ -2988,17 +2988,17 @@ class Ii {
2988
2988
  */
2989
2989
  add(e, t, i, r, n) {
2990
2990
  if (Object(i) === i)
2991
- return new Gs(this, e, t, i);
2991
+ return new Hs(this, e, t, i);
2992
2992
  const s = e[t];
2993
2993
  switch (typeof s) {
2994
2994
  case "number":
2995
- return new Bs(this, e, t, i, r, n);
2995
+ return new Vs(this, e, t, i, r, n);
2996
2996
  case "boolean":
2997
- return new Os(this, e, t);
2997
+ return new Fs(this, e, t);
2998
2998
  case "string":
2999
- return new Vs(this, e, t);
2999
+ return new js(this, e, t);
3000
3000
  case "function":
3001
- return new Zt(this, e, t);
3001
+ return new Jt(this, e, t);
3002
3002
  }
3003
3003
  console.error(`gui.add failed
3004
3004
  property:`, t, `
@@ -3025,7 +3025,7 @@ class Ii {
3025
3025
  * @returns {Controller}
3026
3026
  */
3027
3027
  addColor(e, t, i = 1) {
3028
- return new $s(this, e, t, i);
3028
+ return new Gs(this, e, t, i);
3029
3029
  }
3030
3030
  /**
3031
3031
  * Adds a folder to the GUI, which is just another GUI. This method returns
@@ -3040,7 +3040,7 @@ class Ii {
3040
3040
  * @returns {GUI}
3041
3041
  */
3042
3042
  addFolder(e) {
3043
- const t = new Ii({ parent: this, title: e });
3043
+ const t = new Oi({ parent: this, title: e });
3044
3044
  return this.root._closeFolders && t.close(), t;
3045
3045
  }
3046
3046
  /**
@@ -3051,7 +3051,7 @@ class Ii {
3051
3051
  */
3052
3052
  load(e, t = !0) {
3053
3053
  return e.controllers && this.controllers.forEach((i) => {
3054
- i instanceof Zt || i._name in e.controllers && i.load(e.controllers[i._name]);
3054
+ i instanceof Jt || i._name in e.controllers && i.load(e.controllers[i._name]);
3055
3055
  }), t && e.folders && this.folders.forEach((i) => {
3056
3056
  i._title in e.folders && i.load(e.folders[i._title]);
3057
3057
  }), this;
@@ -3082,7 +3082,7 @@ class Ii {
3082
3082
  folders: {}
3083
3083
  };
3084
3084
  return this.controllers.forEach((i) => {
3085
- if (!(i instanceof Zt)) {
3085
+ if (!(i instanceof Jt)) {
3086
3086
  if (i._name in t.controllers)
3087
3087
  throw new Error(`Cannot save GUI with duplicate property "${i._name}"`);
3088
3088
  t.controllers[i._name] = i.save();
@@ -3252,7 +3252,7 @@ class Ii {
3252
3252
  }), e;
3253
3253
  }
3254
3254
  }
3255
- const hn = [
3255
+ const $t = [
3256
3256
  // Major economies and populous nations
3257
3257
  { id: "156", code: "CN", name: "China", population: 1412, gdpPerCapita: 21476, co2Emissions: 8, lifeExpectancy: 78.2, humanDevIndex: 0.768, internetUsers: 73, renewableEnergy: 15, urbanPopulation: 64.7, healthExpenditure: 5.4, educationExpenditure: 3.6, forestArea: 23.3, accessElectricity: 100 },
3258
3258
  { id: "356", code: "IN", name: "India", population: 1408, gdpPerCapita: 8379, co2Emissions: 1.9, lifeExpectancy: 70.8, humanDevIndex: 0.633, internetUsers: 47, renewableEnergy: 38, urbanPopulation: 35.9, healthExpenditure: 3, educationExpenditure: 4.5, forestArea: 24.3, accessElectricity: 99.6 },
@@ -3351,7 +3351,7 @@ const hn = [
3351
3351
  { id: "858", code: "UY", name: "Uruguay", population: 3.5, gdpPerCapita: 25041, co2Emissions: 2, lifeExpectancy: 78.4, humanDevIndex: 0.83, internetUsers: 87, renewableEnergy: 55, urbanPopulation: 95.6, healthExpenditure: 9.3, educationExpenditure: 5, forestArea: 10.5, accessElectricity: 100 },
3352
3352
  { id: "188", code: "CR", name: "Costa Rica", population: 5, gdpPerCapita: 23101, co2Emissions: 1.5, lifeExpectancy: 80.8, humanDevIndex: 0.809, internetUsers: 81, renewableEnergy: 73, urbanPopulation: 81.4, healthExpenditure: 7.3, educationExpenditure: 6.7, forestArea: 59, accessElectricity: 100 },
3353
3353
  { id: "591", code: "PA", name: "Panama", population: 4.4, gdpPerCapita: 35317, co2Emissions: 2.5, lifeExpectancy: 79.2, humanDevIndex: 0.805, internetUsers: 68, renewableEnergy: 35, urbanPopulation: 68.4, healthExpenditure: 7.3, educationExpenditure: 3.2, forestArea: 62.1, accessElectricity: 95 }
3354
- ], tr = [
3354
+ ], Pt = [
3355
3355
  {
3356
3356
  id: "humanDevIndex",
3357
3357
  name: "Human Development Index",
@@ -3453,11 +3453,11 @@ const hn = [
3453
3453
  format: (o) => `${o.toFixed(0)}%`
3454
3454
  }
3455
3455
  ];
3456
- function Ys(o, e) {
3456
+ function Xs(o, e) {
3457
3457
  const [t, i] = o.domain;
3458
3458
  return Math.max(0, Math.min(1, (e - t) / (i - t)));
3459
3459
  }
3460
- const Ws = {
3460
+ const Zs = {
3461
3461
  // North America
3462
3462
  US: "840",
3463
3463
  USA: "840",
@@ -3656,19 +3656,19 @@ const Ws = {
3656
3656
  GHA: "288",
3657
3657
  GHANA: "288"
3658
3658
  };
3659
- function ir(o) {
3659
+ function rr(o) {
3660
3660
  const e = o.toUpperCase().trim();
3661
- return /^\d{1,3}$/.test(o) ? o.padStart(3, "0") : Ws[e] || o;
3661
+ return /^\d{1,3}$/.test(o) ? o.padStart(3, "0") : Zs[e] || o;
3662
3662
  }
3663
- function Xs(o) {
3663
+ function qs(o) {
3664
3664
  const e = {};
3665
3665
  return o instanceof Map ? o.forEach((t, i) => {
3666
- e[ir(i)] = t;
3666
+ e[rr(i)] = t;
3667
3667
  }) : Object.entries(o).forEach(([t, i]) => {
3668
- e[ir(t)] = i;
3668
+ e[rr(t)] = i;
3669
3669
  }), e;
3670
3670
  }
3671
- const Ct = 4096, Pt = 2048, Zs = `
3671
+ const At = 4096, St = 2048, Ks = `
3672
3672
  self.onmessage = async (e) => {
3673
3673
  const { url, objectName, idProperty, topojsonUrl } = e.data;
3674
3674
 
@@ -3749,13 +3749,13 @@ class Ze {
3749
3749
  // Static cache to share loaded topology data across instances
3750
3750
  static cache = /* @__PURE__ */ new Map();
3751
3751
  constructor(e, t, i) {
3752
- this.canvas = document.createElement("canvas"), this.canvas.width = Ct, this.canvas.height = Pt, this.ctx = this.canvas.getContext("2d", { willReadFrequently: !0 }), this.onProgress = t, this.onTextureUpdate = i, this.topologyConfig = {
3752
+ this.canvas = document.createElement("canvas"), this.canvas.width = At, this.canvas.height = St, this.ctx = this.canvas.getContext("2d", { willReadFrequently: !0 }), this.onProgress = t, this.onTextureUpdate = i, this.topologyConfig = {
3753
3753
  url: e?.url ?? "https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json",
3754
3754
  objectName: e?.objectName || "countries",
3755
3755
  disableNormalization: e?.disableNormalization || !1,
3756
3756
  idProperty: e?.idProperty,
3757
3757
  labelProperty: e?.labelProperty
3758
- }, this.statsMap = /* @__PURE__ */ new Map(), hn.forEach((r) => {
3758
+ }, this.statsMap = /* @__PURE__ */ new Map(), $t.forEach((r) => {
3759
3759
  this.statsMap.set(r.id, r);
3760
3760
  }), this.loadCountries();
3761
3761
  }
@@ -3802,7 +3802,7 @@ class Ze {
3802
3802
  */
3803
3803
  loadInWorker(e, t, i) {
3804
3804
  return new Promise((r, n) => {
3805
- const s = new Blob([Zs], { type: "application/javascript" }), a = URL.createObjectURL(s), l = new Worker(a), c = setTimeout(() => {
3805
+ const s = new Blob([Ks], { type: "application/javascript" }), a = URL.createObjectURL(s), l = new Worker(a), c = setTimeout(() => {
3806
3806
  l.terminate(), URL.revokeObjectURL(a), n(new Error(`Worker timed out after 15s loading ${t}`));
3807
3807
  }, 15e3);
3808
3808
  l.onmessage = (p) => {
@@ -3814,15 +3814,12 @@ class Ze {
3814
3814
  }, l.onerror = (p) => {
3815
3815
  clearTimeout(c), URL.revokeObjectURL(a), l.terminate(), n(new Error("Worker error: " + p.message));
3816
3816
  };
3817
- const u = new URL(e, window.location.href).href, h = new URL(
3818
- "/lib/topojson-client.min.js",
3819
- window.location.href
3820
- ).href;
3817
+ const u = new URL(e, window.location.href).href;
3821
3818
  l.postMessage({
3822
3819
  url: u,
3823
3820
  objectName: t,
3824
3821
  idProperty: i,
3825
- topojsonUrl: h
3822
+ topojsonUrl: "https://unpkg.com/topojson-client@3/dist/topojson-client.min.js"
3826
3823
  });
3827
3824
  });
3828
3825
  }
@@ -3920,7 +3917,7 @@ class Ze {
3920
3917
  renderTexture(e) {
3921
3918
  this.currentRenderId++;
3922
3919
  const t = this.currentRenderId;
3923
- if (this.ctx.fillStyle = "rgba(10, 20, 30, 0.9)", this.ctx.fillRect(0, 0, Ct, Pt), this.onTextureUpdate?.(), !this.loaded)
3920
+ if (this.ctx.fillStyle = "rgba(10, 20, 30, 0.9)", this.ctx.fillRect(0, 0, At, St), this.onTextureUpdate?.(), !this.loaded)
3924
3921
  return this.canvas;
3925
3922
  const i = this.countries.length < 1500;
3926
3923
  this.ctx.lineWidth = 0.5, this.ctx.strokeStyle = "rgba(0, 0, 0, 0.3)";
@@ -3933,7 +3930,7 @@ class Ze {
3933
3930
  const u = this.countries[c], h = this.statsMap.get(u.id);
3934
3931
  let p = "#2a2a2a";
3935
3932
  if (h) {
3936
- const f = e.accessor(h), m = Ys(e, f);
3933
+ const f = e.accessor(h), m = Xs(e, f);
3937
3934
  p = this.interpolateColor(e.colorScale, m);
3938
3935
  }
3939
3936
  this.drawFeature(u, p, i);
@@ -3972,7 +3969,7 @@ class Ze {
3972
3969
  });
3973
3970
  }
3974
3971
  projectPoint(e, t) {
3975
- const i = (e + 180) / 360 * Ct, r = (90 - t) / 180 * Pt;
3972
+ const i = (e + 180) / 360 * At, r = (90 - t) / 180 * St;
3976
3973
  return [i, r];
3977
3974
  }
3978
3975
  interpolateColor(e, t) {
@@ -3997,9 +3994,9 @@ class Ze {
3997
3994
  renderCustomTexture(e, t, i) {
3998
3995
  this.currentRenderId++;
3999
3996
  const r = this.currentRenderId;
4000
- if (this.ctx.fillStyle = "rgba(10, 20, 30, 0.9)", this.ctx.fillRect(0, 0, Ct, Pt), this.onTextureUpdate?.(), !this.loaded)
3997
+ if (this.ctx.fillStyle = "rgba(10, 20, 30, 0.9)", this.ctx.fillRect(0, 0, At, St), this.onTextureUpdate?.(), !this.loaded)
4001
3998
  return this.canvas;
4002
- const n = this.topologyConfig?.disableNormalization ? e instanceof Map ? Object.fromEntries(e) : e : Xs(e), s = this.countries.length < 1500;
3999
+ const n = this.topologyConfig?.disableNormalization ? e instanceof Map ? Object.fromEntries(e) : e : qs(e), s = this.countries.length < 1500;
4003
4000
  this.ctx.lineWidth = 0.5, this.ctx.strokeStyle = "rgba(0, 0, 0, 0.3)";
4004
4001
  const a = 500, l = this.countries.length;
4005
4002
  let c = 0;
@@ -4055,8 +4052,8 @@ class Ze {
4055
4052
  let e = 1 / 0, t = -1 / 0, i = 1 / 0, r = -1 / 0, n = 0, s = 1 / 0, a = -1 / 0, l = 1 / 0, c = -1 / 0, u = 0;
4056
4053
  const h = (y) => {
4057
4054
  if (typeof y[0] == "number") {
4058
- const _ = y[0], x = y[1];
4059
- _ < 0 ? (_ < e && (e = _), _ > t && (t = _), x < i && (i = x), x > r && (r = x), n++) : (_ < s && (s = _), _ > a && (a = _), x < l && (l = x), x > c && (c = x), u++);
4055
+ const b = y[0], x = y[1];
4056
+ b < 0 ? (b < e && (e = b), b > t && (t = b), x < i && (i = x), x > r && (r = x), n++) : (b < s && (s = b), b > a && (a = b), x < l && (l = x), x > c && (c = x), u++);
4060
4057
  } else
4061
4058
  y.forEach(h);
4062
4059
  };
@@ -4076,7 +4073,7 @@ class Ze {
4076
4073
  return [p, d, f, g];
4077
4074
  }
4078
4075
  }
4079
- const qs = {
4076
+ const Js = {
4080
4077
  // Major economies
4081
4078
  CN: [35, 105],
4082
4079
  IN: [22, 78],
@@ -4175,7 +4172,7 @@ const qs = {
4175
4172
  UY: [-33, -56],
4176
4173
  CR: [10, -84],
4177
4174
  PA: [9, -80]
4178
- }, Ks = /* @__PURE__ */ new Set([
4175
+ }, Qs = /* @__PURE__ */ new Set([
4179
4176
  "CN",
4180
4177
  "IN",
4181
4178
  "US",
@@ -4206,7 +4203,7 @@ const qs = {
4206
4203
  "PK",
4207
4204
  "BD",
4208
4205
  "VN"
4209
- ]), Js = /* @__PURE__ */ new Set(["CN", "IN", "US", "BR", "RU", "AU", "CA"]), Qs = /* @__PURE__ */ new Set(["RU", "CA", "US", "CN", "BR", "AU"]), ea = /* @__PURE__ */ new Set([
4206
+ ]), ea = /* @__PURE__ */ new Set(["CN", "IN", "US", "BR", "RU", "AU", "CA"]), ta = /* @__PURE__ */ new Set(["RU", "CA", "US", "CN", "BR", "AU"]), ia = /* @__PURE__ */ new Set([
4210
4207
  "IN",
4211
4208
  "AR",
4212
4209
  "KZ",
@@ -4237,7 +4234,7 @@ const qs = {
4237
4234
  "TR",
4238
4235
  "CL",
4239
4236
  "MM"
4240
- ]), ta = /* @__PURE__ */ new Set([
4237
+ ]), ra = /* @__PURE__ */ new Set([
4241
4238
  "AF",
4242
4239
  "UA",
4243
4240
  "MG",
@@ -4279,7 +4276,7 @@ const qs = {
4279
4276
  "IQ",
4280
4277
  "BD"
4281
4278
  ]);
4282
- class ia {
4279
+ class na {
4283
4280
  labelRenderer;
4284
4281
  labels = [];
4285
4282
  labelGroup;
@@ -4290,7 +4287,7 @@ class ia {
4290
4287
  camera = null;
4291
4288
  dataIds = /* @__PURE__ */ new Set();
4292
4289
  constructor(e, t) {
4293
- this.sphereRadius = t, this.labelRenderer = new xn();
4290
+ this.sphereRadius = t, this.labelRenderer = new vn();
4294
4291
  const i = e.clientWidth || 800, r = e.clientHeight || 600;
4295
4292
  this.labelRenderer.setSize(i, r), this.labelRenderer.domElement.style.position = "absolute", this.labelRenderer.domElement.style.top = "0", this.labelRenderer.domElement.style.left = "0", this.labelRenderer.domElement.style.pointerEvents = "none", this.labelRenderer.domElement.style.zIndex = "5", e.appendChild(this.labelRenderer.domElement), this.labelGroup = new A.Group(), this.injectStyles(), this.createLabels();
4296
4293
  }
@@ -4382,15 +4379,15 @@ class ia {
4382
4379
  `, document.head.appendChild(e);
4383
4380
  }
4384
4381
  getSizeCategory(e) {
4385
- return Qs.has(e) ? "large" : ea.has(e) ? "medium" : ta.has(e) ? "small" : "tiny";
4382
+ return ta.has(e) ? "large" : ia.has(e) ? "medium" : ra.has(e) ? "small" : "tiny";
4386
4383
  }
4387
4384
  createLabels() {
4388
- hn.forEach((e) => {
4389
- const t = qs[e.code];
4385
+ $t.forEach((e) => {
4386
+ const t = Js[e.code];
4390
4387
  if (!t) return;
4391
4388
  const [i, r] = t, n = this.getSizeCategory(e.code), s = document.createElement("div");
4392
4389
  s.className = `country-label hidden size-${n}`, s.textContent = e.name;
4393
- const a = new Fi(s), l = {
4390
+ const a = new zi(s), l = {
4394
4391
  element: s,
4395
4392
  object: a,
4396
4393
  country: e,
@@ -4414,7 +4411,7 @@ class ia {
4414
4411
  })) return;
4415
4412
  const l = t.size || "small", c = document.createElement("div");
4416
4413
  c.className = `country-label hidden size-${l} custom-label`, c.textContent = t.name;
4417
- const u = new Fi(c), h = {
4414
+ const u = new zi(c), h = {
4418
4415
  id: t.id,
4419
4416
  code: t.id,
4420
4417
  name: t.name
@@ -4446,15 +4443,15 @@ class ia {
4446
4443
  cameraDirection = new A.Vector3();
4447
4444
  labelNormal = new A.Vector3();
4448
4445
  updateLabelPosition(e, t, i) {
4449
- const { lat: r, lon: n, element: s } = t, a = (n + 180) / 360, l = (r + 90) / 180, c = (a - 0.5) * 2 * Math.PI, u = (l - 0.5) * Math.PI, h = this.sphereRadius + 0.3, p = h * Math.cos(u) * Math.sin(c), f = h * Math.sin(u), m = h * Math.cos(u) * Math.cos(c), d = 2 * Math.PI * this.sphereRadius, g = Math.PI * this.sphereRadius, y = (a - 0.5) * d, _ = (l - 0.5) * g, x = 0.3, v = i * i * (3 - 2 * i);
4446
+ const { lat: r, lon: n, element: s } = t, a = (n + 180) / 360, l = (r + 90) / 180, c = (a - 0.5) * 2 * Math.PI, u = (l - 0.5) * Math.PI, h = this.sphereRadius + 0.3, p = h * Math.cos(u) * Math.sin(c), f = h * Math.sin(u), m = h * Math.cos(u) * Math.cos(c), d = 2 * Math.PI * this.sphereRadius, g = Math.PI * this.sphereRadius, y = (a - 0.5) * d, b = (l - 0.5) * g, x = 0.3, v = i * i * (3 - 2 * i);
4450
4447
  if (this.localPos.set(
4451
4448
  y + v * (p - y),
4452
- _ + v * (f - _),
4449
+ b + v * (f - b),
4453
4450
  x + v * (m - x)
4454
4451
  ), this.globe) {
4455
4452
  this.worldPos.copy(this.localPos), this.worldPos.applyMatrix4(this.globe.matrixWorld), e.position.copy(this.worldPos);
4456
- let b = 1;
4457
- this.camera && v > 0.5 && (this.cameraDirection.copy(this.camera.position).normalize(), this.labelNormal.set(p, f, m).normalize(), this.labelNormal.applyMatrix4(this.globe.matrixWorld).normalize(), b = this.labelNormal.dot(this.cameraDirection) > 0.15 ? 1 : 0);
4453
+ let _ = 1;
4454
+ this.camera && v > 0.5 && (this.cameraDirection.copy(this.camera.position).normalize(), this.labelNormal.set(p, f, m).normalize(), this.labelNormal.applyMatrix4(this.globe.matrixWorld).normalize(), _ = this.labelNormal.dot(this.cameraDirection) > 0.15 ? 1 : 0);
4458
4455
  let C = 1;
4459
4456
  if (this.camera) {
4460
4457
  let P = 150;
@@ -4473,26 +4470,26 @@ class ia {
4473
4470
  break;
4474
4471
  }
4475
4472
  }
4476
- const E = b * C;
4473
+ const E = _ * C;
4477
4474
  E < 0.05 ? s.style.opacity = "0" : s.style.opacity = String(E);
4478
4475
  } else {
4479
4476
  e.position.copy(this.localPos);
4480
- let b = 1;
4477
+ let _ = 1;
4481
4478
  if (this.camera) {
4482
4479
  const C = Math.abs(this.camera.position.z);
4483
4480
  switch (t.sizeCategory) {
4484
4481
  case "tiny":
4485
- b = 1 - Math.min(1, Math.max(0, (C - 120) / 30));
4482
+ _ = 1 - Math.min(1, Math.max(0, (C - 120) / 30));
4486
4483
  break;
4487
4484
  case "small":
4488
- b = 1 - Math.min(1, Math.max(0, (C - 150) / 40));
4485
+ _ = 1 - Math.min(1, Math.max(0, (C - 150) / 40));
4489
4486
  break;
4490
4487
  case "medium":
4491
- b = 1 - Math.min(1, Math.max(0, (C - 200) / 50));
4488
+ _ = 1 - Math.min(1, Math.max(0, (C - 200) / 50));
4492
4489
  break;
4493
4490
  }
4494
4491
  }
4495
- s.style.opacity = b < 0.05 ? "0" : String(b);
4492
+ s.style.opacity = _ < 0.05 ? "0" : String(_);
4496
4493
  }
4497
4494
  }
4498
4495
  /**
@@ -4513,10 +4510,10 @@ class ia {
4513
4510
  r = !1;
4514
4511
  break;
4515
4512
  case "minimal":
4516
- r = Js.has(i);
4513
+ r = ea.has(i);
4517
4514
  break;
4518
4515
  case "major":
4519
- r = Ks.has(i);
4516
+ r = Qs.has(i);
4520
4517
  break;
4521
4518
  case "all":
4522
4519
  case "capitals":
@@ -4610,8 +4607,183 @@ class ia {
4610
4607
  }), this.labels = [], this.labelRenderer.domElement.remove();
4611
4608
  }
4612
4609
  }
4613
- var ra = { trailer: 59 };
4614
- function dn(o = 256) {
4610
+ let nr = !1;
4611
+ function sa() {
4612
+ if (nr) return;
4613
+ nr = !0;
4614
+ const o = document.createElement("style");
4615
+ o.setAttribute("data-gralobe-datagrid", "true"), o.textContent = `
4616
+ .gralobe-datagrid-overlay {
4617
+ position: absolute;
4618
+ top: 0;
4619
+ left: 0;
4620
+ width: 100%;
4621
+ height: 100%;
4622
+ background: rgba(0, 5, 10, 0.85);
4623
+ backdrop-filter: blur(8px);
4624
+ -webkit-backdrop-filter: blur(8px);
4625
+ display: flex;
4626
+ align-items: center;
4627
+ justify-content: center;
4628
+ z-index: 1000;
4629
+ opacity: 0;
4630
+ pointer-events: none;
4631
+ transition: opacity 0.3s ease;
4632
+ }
4633
+
4634
+ .gralobe-datagrid-overlay.visible {
4635
+ opacity: 1;
4636
+ pointer-events: auto;
4637
+ }
4638
+
4639
+ .gralobe-datagrid-modal {
4640
+ width: 90%;
4641
+ height: 80%;
4642
+ max-width: 600px;
4643
+ background: #0d1117;
4644
+ border: 1px solid rgba(100, 150, 200, 0.3);
4645
+ border-radius: 12px;
4646
+ display: flex;
4647
+ flex-direction: column;
4648
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
4649
+ transform: scale(0.95) translateY(10px);
4650
+ transition: transform 0.3s ease;
4651
+ }
4652
+
4653
+ .gralobe-datagrid-overlay.visible .gralobe-datagrid-modal {
4654
+ transform: scale(1) translateY(0);
4655
+ }
4656
+
4657
+ .gralobe-datagrid-header {
4658
+ padding: 16px 20px;
4659
+ border-bottom: 1px solid rgba(100, 150, 200, 0.2);
4660
+ display: flex;
4661
+ justify-content: space-between;
4662
+ align-items: center;
4663
+ }
4664
+
4665
+ .gralobe-datagrid-title {
4666
+ margin: 0;
4667
+ font-size: 16px;
4668
+ font-weight: 600;
4669
+ color: #4af;
4670
+ font-family: inherit;
4671
+ }
4672
+
4673
+ .gralobe-datagrid-close {
4674
+ background: none;
4675
+ border: none;
4676
+ color: #666;
4677
+ font-size: 24px;
4678
+ cursor: pointer;
4679
+ padding: 0;
4680
+ line-height: 1;
4681
+ transition: color 0.2s ease;
4682
+ }
4683
+
4684
+ .gralobe-datagrid-close:hover {
4685
+ color: #fff;
4686
+ }
4687
+
4688
+ .gralobe-datagrid-body {
4689
+ flex: 1;
4690
+ overflow-y: auto;
4691
+ padding: 0;
4692
+ }
4693
+
4694
+ .gralobe-datagrid-table {
4695
+ width: 100%;
4696
+ border-collapse: collapse;
4697
+ font-size: 13px;
4698
+ color: #ccc;
4699
+ font-family: inherit;
4700
+ }
4701
+
4702
+ .gralobe-datagrid-table th {
4703
+ position: sticky;
4704
+ top: 0;
4705
+ background: #161b22;
4706
+ text-align: left;
4707
+ padding: 12px 20px;
4708
+ font-weight: 600;
4709
+ color: #888;
4710
+ border-bottom: 1px solid rgba(100, 150, 200, 0.15);
4711
+ z-index: 1;
4712
+ }
4713
+
4714
+ .gralobe-datagrid-table td {
4715
+ padding: 10px 20px;
4716
+ border-bottom: 1px solid rgba(100, 150, 200, 0.05);
4717
+ }
4718
+
4719
+ .gralobe-datagrid-table tr:hover {
4720
+ background: rgba(100, 150, 200, 0.05);
4721
+ }
4722
+
4723
+ .gralobe-datagrid-val {
4724
+ text-align: right;
4725
+ font-family: monospace;
4726
+ color: #fff;
4727
+ }
4728
+
4729
+ .gralobe-datagrid-name {
4730
+ font-weight: 500;
4731
+ }
4732
+ `, document.head.appendChild(o);
4733
+ }
4734
+ class aa {
4735
+ element;
4736
+ parentContainer;
4737
+ visible = !1;
4738
+ constructor(e) {
4739
+ sa(), this.parentContainer = e, this.element = document.createElement("div"), this.element.className = "gralobe-datagrid-overlay", this.element.innerHTML = `
4740
+ <div class="gralobe-datagrid-modal">
4741
+ <div class="gralobe-datagrid-header">
4742
+ <h3 class="gralobe-datagrid-title">Data Explorer</h3>
4743
+ <button class="gralobe-datagrid-close">&times;</button>
4744
+ </div>
4745
+ <div class="gralobe-datagrid-body">
4746
+ <table class="gralobe-datagrid-table">
4747
+ <thead>
4748
+ <tr>
4749
+ <th>Location</th>
4750
+ <th style="text-align: right">Value</th>
4751
+ </tr>
4752
+ </thead>
4753
+ <tbody></tbody>
4754
+ </table>
4755
+ </div>
4756
+ </div>
4757
+ `, this.element.querySelector(".gralobe-datagrid-close")?.addEventListener("click", () => this.hide()), this.element.addEventListener("click", (i) => {
4758
+ i.target === this.element && this.hide();
4759
+ }), e.appendChild(this.element);
4760
+ }
4761
+ show(e, t) {
4762
+ const i = this.element.querySelector(".gralobe-datagrid-title");
4763
+ i && (i.textContent = `Data: ${e}`);
4764
+ const r = this.element.querySelector("tbody");
4765
+ if (r) {
4766
+ const n = Object.entries(t).sort((s, a) => a[1] - s[1]);
4767
+ r.innerHTML = n.map(
4768
+ ([s, a]) => `
4769
+ <tr>
4770
+ <td class="gralobe-datagrid-name">${s}</td>
4771
+ <td class="gralobe-datagrid-val">${a.toLocaleString()}</td>
4772
+ </tr>
4773
+ `
4774
+ ).join("");
4775
+ }
4776
+ this.element.classList.add("visible"), this.visible = !0;
4777
+ }
4778
+ hide() {
4779
+ this.element.classList.remove("visible"), this.visible = !1;
4780
+ }
4781
+ dispose() {
4782
+ this.element.remove();
4783
+ }
4784
+ }
4785
+ var oa = { trailer: 59 };
4786
+ function fn(o = 256) {
4615
4787
  let e = 0, t = new Uint8Array(o);
4616
4788
  return { get buffer() {
4617
4789
  return t.buffer;
@@ -4638,54 +4810,54 @@ function dn(o = 256) {
4638
4810
  t = new Uint8Array(r), e > 0 && t.set(a.subarray(0, e), 0);
4639
4811
  }
4640
4812
  }
4641
- var qt = 12, rr = 5003, na = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535];
4642
- function sa(o, e, t, i, r = dn(512), n = new Uint8Array(256), s = new Int32Array(rr), a = new Int32Array(rr)) {
4813
+ var Qt = 12, sr = 5003, la = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535];
4814
+ function ca(o, e, t, i, r = fn(512), n = new Uint8Array(256), s = new Int32Array(sr), a = new Int32Array(sr)) {
4643
4815
  let l = s.length, c = Math.max(2, i);
4644
4816
  n.fill(0), a.fill(0), s.fill(-1);
4645
- let u = 0, h = 0, p = c + 1, f = p, m = !1, d = f, g = (1 << d) - 1, y = 1 << p - 1, _ = y + 1, x = y + 2, v = 0, b = t[0], C = 0;
4817
+ let u = 0, h = 0, p = c + 1, f = p, m = !1, d = f, g = (1 << d) - 1, y = 1 << p - 1, b = y + 1, x = y + 2, v = 0, _ = t[0], C = 0;
4646
4818
  for (let w = l; w < 65536; w *= 2) ++C;
4647
4819
  C = 8 - C, r.writeByte(c), P(y);
4648
4820
  let E = t.length;
4649
4821
  for (let w = 1; w < E; w++)
4650
4822
  e: {
4651
- let T = t[w], D = (T << qt) + b, S = T << C ^ b;
4823
+ let T = t[w], D = (T << Qt) + _, S = T << C ^ _;
4652
4824
  if (s[S] === D) {
4653
- b = a[S];
4825
+ _ = a[S];
4654
4826
  break e;
4655
4827
  }
4656
4828
  let L = S === 0 ? 1 : l - S;
4657
4829
  for (; s[S] >= 0; ) if (S -= L, S < 0 && (S += l), s[S] === D) {
4658
- b = a[S];
4830
+ _ = a[S];
4659
4831
  break e;
4660
4832
  }
4661
- P(b), b = T, x < 1 << qt ? (a[S] = x++, s[S] = D) : (s.fill(-1), x = y + 2, m = !0, P(y));
4833
+ P(_), _ = T, x < 1 << Qt ? (a[S] = x++, s[S] = D) : (s.fill(-1), x = y + 2, m = !0, P(y));
4662
4834
  }
4663
- return P(b), P(_), r.writeByte(0), r.bytesView();
4835
+ return P(_), P(b), r.writeByte(0), r.bytesView();
4664
4836
  function P(w) {
4665
- for (u &= na[h], h > 0 ? u |= w << h : u = w, h += d; h >= 8; ) n[v++] = u & 255, v >= 254 && (r.writeByte(v), r.writeBytesView(n, 0, v), v = 0), u >>= 8, h -= 8;
4666
- if ((x > g || m) && (m ? (d = f, g = (1 << d) - 1, m = !1) : (++d, g = d === qt ? 1 << d : (1 << d) - 1)), w == _) {
4837
+ for (u &= la[h], h > 0 ? u |= w << h : u = w, h += d; h >= 8; ) n[v++] = u & 255, v >= 254 && (r.writeByte(v), r.writeBytesView(n, 0, v), v = 0), u >>= 8, h -= 8;
4838
+ if ((x > g || m) && (m ? (d = f, g = (1 << d) - 1, m = !1) : (++d, g = d === Qt ? 1 << d : (1 << d) - 1)), w == b) {
4667
4839
  for (; h > 0; ) n[v++] = u & 255, v >= 254 && (r.writeByte(v), r.writeBytesView(n, 0, v), v = 0), u >>= 8, h -= 8;
4668
4840
  v > 0 && (r.writeByte(v), r.writeBytesView(n, 0, v), v = 0);
4669
4841
  }
4670
4842
  }
4671
4843
  }
4672
- var aa = sa;
4673
- function pn(o, e, t) {
4844
+ var ua = ca;
4845
+ function mn(o, e, t) {
4674
4846
  return o << 8 & 63488 | e << 2 & 992 | t >> 3;
4675
4847
  }
4676
- function fn(o, e, t, i) {
4848
+ function gn(o, e, t, i) {
4677
4849
  return o >> 4 | e & 240 | (t & 240) << 4 | (i & 240) << 8;
4678
4850
  }
4679
- function mn(o, e, t) {
4851
+ function yn(o, e, t) {
4680
4852
  return o >> 4 << 8 | e & 240 | t >> 4;
4681
4853
  }
4682
- function At(o, e, t) {
4854
+ function Tt(o, e, t) {
4683
4855
  return o < e ? e : o > t ? t : o;
4684
4856
  }
4685
- function Dt(o) {
4857
+ function It(o) {
4686
4858
  return o * o;
4687
4859
  }
4688
- function nr(o, e, t) {
4860
+ function ar(o, e, t) {
4689
4861
  var i = 0, r = 1e100;
4690
4862
  let n = o[e], s = n.cnt;
4691
4863
  n.ac;
@@ -4694,50 +4866,50 @@ function nr(o, e, t) {
4694
4866
  let p = o[u], f = p.cnt, m = s * f / (s + f);
4695
4867
  if (!(m >= r)) {
4696
4868
  var h = 0;
4697
- h += m * Dt(p.rc - a), !(h >= r) && (h += m * Dt(p.gc - l), !(h >= r) && (h += m * Dt(p.bc - c), !(h >= r) && (r = h, i = u)));
4869
+ h += m * It(p.rc - a), !(h >= r) && (h += m * It(p.gc - l), !(h >= r) && (h += m * It(p.bc - c), !(h >= r) && (r = h, i = u)));
4698
4870
  }
4699
4871
  }
4700
4872
  n.err = r, n.nn = i;
4701
4873
  }
4702
- function Kt() {
4874
+ function ei() {
4703
4875
  return { ac: 0, rc: 0, gc: 0, bc: 0, cnt: 0, nn: 0, fw: 0, bk: 0, tm: 0, mtm: 0, err: 0 };
4704
4876
  }
4705
- function oa(o, e) {
4877
+ function ha(o, e) {
4706
4878
  let t = e === "rgb444" ? 4096 : 65536, i = new Array(t), r = o.length;
4707
4879
  if (e === "rgba4444") for (let n = 0; n < r; ++n) {
4708
- let s = o[n], a = s >> 24 & 255, l = s >> 16 & 255, c = s >> 8 & 255, u = s & 255, h = fn(u, c, l, a), p = h in i ? i[h] : i[h] = Kt();
4880
+ let s = o[n], a = s >> 24 & 255, l = s >> 16 & 255, c = s >> 8 & 255, u = s & 255, h = gn(u, c, l, a), p = h in i ? i[h] : i[h] = ei();
4709
4881
  p.rc += u, p.gc += c, p.bc += l, p.ac += a, p.cnt++;
4710
4882
  }
4711
4883
  else if (e === "rgb444") for (let n = 0; n < r; ++n) {
4712
- let s = o[n], a = s >> 16 & 255, l = s >> 8 & 255, c = s & 255, u = mn(c, l, a), h = u in i ? i[u] : i[u] = Kt();
4884
+ let s = o[n], a = s >> 16 & 255, l = s >> 8 & 255, c = s & 255, u = yn(c, l, a), h = u in i ? i[u] : i[u] = ei();
4713
4885
  h.rc += c, h.gc += l, h.bc += a, h.cnt++;
4714
4886
  }
4715
4887
  else for (let n = 0; n < r; ++n) {
4716
- let s = o[n], a = s >> 16 & 255, l = s >> 8 & 255, c = s & 255, u = pn(c, l, a), h = u in i ? i[u] : i[u] = Kt();
4888
+ let s = o[n], a = s >> 16 & 255, l = s >> 8 & 255, c = s & 255, u = mn(c, l, a), h = u in i ? i[u] : i[u] = ei();
4717
4889
  h.rc += c, h.gc += l, h.bc += a, h.cnt++;
4718
4890
  }
4719
4891
  return i;
4720
4892
  }
4721
- function la(o, e, t = {}) {
4893
+ function da(o, e, t = {}) {
4722
4894
  let { format: i = "rgb565", clearAlpha: r = !0, clearAlphaColor: n = 0, clearAlphaThreshold: s = 0, oneBitAlpha: a = !1 } = t;
4723
4895
  if (!o || !o.buffer) throw new Error("quantize() expected RGBA Uint8Array data");
4724
4896
  if (!(o instanceof Uint8Array) && !(o instanceof Uint8ClampedArray)) throw new Error("quantize() expected RGBA Uint8Array data");
4725
- let l = new Uint32Array(o.buffer), c = t.useSqrt !== !1, u = i === "rgba4444", h = oa(l, i), p = h.length, f = p - 1, m = new Uint32Array(p + 1);
4897
+ let l = new Uint32Array(o.buffer), c = t.useSqrt !== !1, u = i === "rgba4444", h = ha(l, i), p = h.length, f = p - 1, m = new Uint32Array(p + 1);
4726
4898
  for (var d = 0, g = 0; g < p; ++g) {
4727
- let R = h[g];
4728
- if (R != null) {
4729
- var y = 1 / R.cnt;
4730
- u && (R.ac *= y), R.rc *= y, R.gc *= y, R.bc *= y, h[d++] = R;
4899
+ let I = h[g];
4900
+ if (I != null) {
4901
+ var y = 1 / I.cnt;
4902
+ u && (I.ac *= y), I.rc *= y, I.gc *= y, I.bc *= y, h[d++] = I;
4731
4903
  }
4732
4904
  }
4733
- Dt(e) / d < 0.022 && (c = !1);
4905
+ It(e) / d < 0.022 && (c = !1);
4734
4906
  for (var g = 0; g < d - 1; ++g) h[g].fw = g + 1, h[g + 1].bk = g, c && (h[g].cnt = Math.sqrt(h[g].cnt));
4735
4907
  c && (h[g].cnt = Math.sqrt(h[g].cnt));
4736
- var _, x, v;
4908
+ var b, x, v;
4737
4909
  for (g = 0; g < d; ++g) {
4738
- nr(h, g);
4739
- var b = h[g].err;
4740
- for (x = ++m[0]; x > 1 && (v = x >> 1, !(h[_ = m[v]].err <= b)); x = v) m[x] = _;
4910
+ ar(h, g);
4911
+ var _ = h[g].err;
4912
+ for (x = ++m[0]; x > 1 && (v = x >> 1, !(h[b = m[v]].err <= _)); x = v) m[x] = b;
4741
4913
  m[x] = g;
4742
4914
  }
4743
4915
  var C = d - e;
@@ -4745,9 +4917,9 @@ function la(o, e, t = {}) {
4745
4917
  for (var E; ; ) {
4746
4918
  var P = m[1];
4747
4919
  if (E = h[P], E.tm >= E.mtm && h[E.nn].mtm <= E.tm) break;
4748
- E.mtm == f ? P = m[1] = m[m[0]--] : (nr(h, P), E.tm = g);
4749
- var b = h[P].err;
4750
- for (x = 1; (v = x + x) <= m[0] && (v < m[0] && h[m[v]].err > h[m[v + 1]].err && v++, !(b <= h[_ = m[v]].err)); x = v) m[x] = _;
4920
+ E.mtm == f ? P = m[1] = m[m[0]--] : (ar(h, P), E.tm = g);
4921
+ var _ = h[P].err;
4922
+ for (x = 1; (v = x + x) <= m[0] && (v < m[0] && h[m[v]].err > h[m[v + 1]].err && v++, !(_ <= h[b = m[v]].err)); x = v) m[x] = b;
4751
4923
  m[x] = P;
4752
4924
  }
4753
4925
  var w = h[E.nn], T = E.cnt, D = w.cnt, y = 1 / (T + D);
@@ -4756,39 +4928,39 @@ function la(o, e, t = {}) {
4756
4928
  let S = [];
4757
4929
  var L = 0;
4758
4930
  for (g = 0; ; ++L) {
4759
- let R = At(Math.round(h[g].rc), 0, 255), $ = At(Math.round(h[g].gc), 0, 255), F = At(Math.round(h[g].bc), 0, 255), k = 255;
4760
- u && (k = At(Math.round(h[g].ac), 0, 255), a && (k = k <= (typeof a == "number" ? a : 127) ? 0 : 255), r && k <= s && (R = $ = F = n, k = 0));
4761
- let J = u ? [R, $, F, k] : [R, $, F];
4762
- if (ca(S, J) || S.push(J), (g = h[g].fw) == 0) break;
4931
+ let I = Tt(Math.round(h[g].rc), 0, 255), $ = Tt(Math.round(h[g].gc), 0, 255), F = Tt(Math.round(h[g].bc), 0, 255), O = 255;
4932
+ u && (O = Tt(Math.round(h[g].ac), 0, 255), a && (O = O <= (typeof a == "number" ? a : 127) ? 0 : 255), r && O <= s && (I = $ = F = n, O = 0));
4933
+ let J = u ? [I, $, F, O] : [I, $, F];
4934
+ if (pa(S, J) || S.push(J), (g = h[g].fw) == 0) break;
4763
4935
  }
4764
4936
  return S;
4765
4937
  }
4766
- function ca(o, e) {
4938
+ function pa(o, e) {
4767
4939
  for (let t = 0; t < o.length; t++) {
4768
4940
  let i = o[t], r = i[0] === e[0] && i[1] === e[1] && i[2] === e[2], n = i.length >= 4 && e.length >= 4 ? i[3] === e[3] : !0;
4769
4941
  if (r && n) return !0;
4770
4942
  }
4771
4943
  return !1;
4772
4944
  }
4773
- function ua(o, e, t = "rgb565") {
4945
+ function fa(o, e, t = "rgb565") {
4774
4946
  if (!o || !o.buffer) throw new Error("quantize() expected RGBA Uint8Array data");
4775
4947
  if (!(o instanceof Uint8Array) && !(o instanceof Uint8ClampedArray)) throw new Error("quantize() expected RGBA Uint8Array data");
4776
4948
  if (e.length > 256) throw new Error("applyPalette() only works with 256 colors or less");
4777
4949
  let i = new Uint32Array(o.buffer), r = i.length, n = t === "rgb444" ? 4096 : 65536, s = new Uint8Array(r), a = new Array(n);
4778
4950
  if (t === "rgba4444") for (let l = 0; l < r; l++) {
4779
- let c = i[l], u = c >> 24 & 255, h = c >> 16 & 255, p = c >> 8 & 255, f = c & 255, m = fn(f, p, h, u), d = m in a ? a[m] : a[m] = ha(f, p, h, u, e);
4951
+ let c = i[l], u = c >> 24 & 255, h = c >> 16 & 255, p = c >> 8 & 255, f = c & 255, m = gn(f, p, h, u), d = m in a ? a[m] : a[m] = ma(f, p, h, u, e);
4780
4952
  s[l] = d;
4781
4953
  }
4782
4954
  else {
4783
- let l = t === "rgb444" ? mn : pn;
4955
+ let l = t === "rgb444" ? yn : mn;
4784
4956
  for (let c = 0; c < r; c++) {
4785
- let u = i[c], h = u >> 16 & 255, p = u >> 8 & 255, f = u & 255, m = l(f, p, h), d = m in a ? a[m] : a[m] = da(f, p, h, e);
4957
+ let u = i[c], h = u >> 16 & 255, p = u >> 8 & 255, f = u & 255, m = l(f, p, h), d = m in a ? a[m] : a[m] = ga(f, p, h, e);
4786
4958
  s[c] = d;
4787
4959
  }
4788
4960
  }
4789
4961
  return s;
4790
4962
  }
4791
- function ha(o, e, t, i, r) {
4963
+ function ma(o, e, t, i, r) {
4792
4964
  let n = 0, s = 1e100;
4793
4965
  for (let a = 0; a < r.length; a++) {
4794
4966
  let l = r[a], c = l[3], u = Ne(c - i);
@@ -4802,7 +4974,7 @@ function ha(o, e, t, i, r) {
4802
4974
  }
4803
4975
  return n;
4804
4976
  }
4805
- function da(o, e, t, i) {
4977
+ function ga(o, e, t, i) {
4806
4978
  let r = 0, n = 1e100;
4807
4979
  for (let s = 0; s < i.length; s++) {
4808
4980
  let a = i[s], l = a[0], c = Ne(l - o);
@@ -4817,12 +4989,12 @@ function da(o, e, t, i) {
4817
4989
  function Ne(o) {
4818
4990
  return o * o;
4819
4991
  }
4820
- function pa(o = {}) {
4821
- let { initialCapacity: e = 4096, auto: t = !0 } = o, i = dn(e), r = 5003, n = new Uint8Array(256), s = new Int32Array(r), a = new Int32Array(r), l = !1;
4992
+ function ya(o = {}) {
4993
+ let { initialCapacity: e = 4096, auto: t = !0 } = o, i = fn(e), r = 5003, n = new Uint8Array(256), s = new Int32Array(r), a = new Int32Array(r), l = !1;
4822
4994
  return { reset() {
4823
4995
  i.reset(), l = !1;
4824
4996
  }, finish() {
4825
- i.writeByte(ra.trailer);
4997
+ i.writeByte(oa.trailer);
4826
4998
  }, bytes() {
4827
4999
  return i.bytes();
4828
5000
  }, bytesView() {
@@ -4832,58 +5004,58 @@ function pa(o = {}) {
4832
5004
  }, get stream() {
4833
5005
  return i;
4834
5006
  }, writeHeader: c, writeFrame(u, h, p, f = {}) {
4835
- let { transparent: m = !1, transparentIndex: d = 0, delay: g = 0, palette: y = null, repeat: _ = 0, colorDepth: x = 8, dispose: v = -1 } = f, b = !1;
4836
- if (t ? l || (b = !0, c(), l = !0) : b = !!f.first, h = Math.max(0, Math.floor(h)), p = Math.max(0, Math.floor(p)), b) {
5007
+ let { transparent: m = !1, transparentIndex: d = 0, delay: g = 0, palette: y = null, repeat: b = 0, colorDepth: x = 8, dispose: v = -1 } = f, _ = !1;
5008
+ if (t ? l || (_ = !0, c(), l = !0) : _ = !!f.first, h = Math.max(0, Math.floor(h)), p = Math.max(0, Math.floor(p)), _) {
4837
5009
  if (!y) throw new Error("First frame must include a { palette } option");
4838
- ma(i, h, p, y, x), sr(i, y), _ >= 0 && ga(i, _);
5010
+ xa(i, h, p, y, x), or(i, y), b >= 0 && _a(i, b);
4839
5011
  }
4840
5012
  let C = Math.round(g / 10);
4841
- fa(i, v, C, m, d);
4842
- let E = !!y && !b;
4843
- ya(i, h, p, E ? y : null), E && sr(i, y), _a(i, u, h, p, x, n, s, a);
5013
+ ba(i, v, C, m, d);
5014
+ let E = !!y && !_;
5015
+ va(i, h, p, E ? y : null), E && or(i, y), Ea(i, u, h, p, x, n, s, a);
4844
5016
  } };
4845
5017
  function c() {
4846
- gn(i, "GIF89a");
5018
+ bn(i, "GIF89a");
4847
5019
  }
4848
5020
  }
4849
- function fa(o, e, t, i, r) {
5021
+ function ba(o, e, t, i, r) {
4850
5022
  o.writeByte(33), o.writeByte(249), o.writeByte(4), r < 0 && (r = 0, i = !1);
4851
5023
  var n, s;
4852
5024
  i ? (n = 1, s = 2) : (n = 0, s = 0), e >= 0 && (s = e & 7), s <<= 2, o.writeByte(0 | s | 0 | n), Se(o, t), o.writeByte(r || 0), o.writeByte(0);
4853
5025
  }
4854
- function ma(o, e, t, i, r = 8) {
4855
- let n = 1, s = 0, a = Oi(i.length) - 1, l = n << 7 | r - 1 << 4 | s << 3 | a;
5026
+ function xa(o, e, t, i, r = 8) {
5027
+ let n = 1, s = 0, a = Fi(i.length) - 1, l = n << 7 | r - 1 << 4 | s << 3 | a;
4856
5028
  Se(o, e), Se(o, t), o.writeBytes([l, 0, 0]);
4857
5029
  }
4858
- function ga(o, e) {
4859
- o.writeByte(33), o.writeByte(255), o.writeByte(11), gn(o, "NETSCAPE2.0"), o.writeByte(3), o.writeByte(1), Se(o, e), o.writeByte(0);
5030
+ function _a(o, e) {
5031
+ o.writeByte(33), o.writeByte(255), o.writeByte(11), bn(o, "NETSCAPE2.0"), o.writeByte(3), o.writeByte(1), Se(o, e), o.writeByte(0);
4860
5032
  }
4861
- function sr(o, e) {
4862
- let t = 1 << Oi(e.length);
5033
+ function or(o, e) {
5034
+ let t = 1 << Fi(e.length);
4863
5035
  for (let i = 0; i < t; i++) {
4864
5036
  let r = [0, 0, 0];
4865
5037
  i < e.length && (r = e[i]), o.writeByte(r[0]), o.writeByte(r[1]), o.writeByte(r[2]);
4866
5038
  }
4867
5039
  }
4868
- function ya(o, e, t, i) {
5040
+ function va(o, e, t, i) {
4869
5041
  if (o.writeByte(44), Se(o, 0), Se(o, 0), Se(o, e), Se(o, t), i) {
4870
- let r = 0, n = 0, s = Oi(i.length) - 1;
5042
+ let r = 0, n = 0, s = Fi(i.length) - 1;
4871
5043
  o.writeByte(128 | r | n | 0 | s);
4872
5044
  } else o.writeByte(0);
4873
5045
  }
4874
- function _a(o, e, t, i, r = 8, n, s, a) {
4875
- aa(t, i, e, r, o, n, s, a);
5046
+ function Ea(o, e, t, i, r = 8, n, s, a) {
5047
+ ua(t, i, e, r, o, n, s, a);
4876
5048
  }
4877
5049
  function Se(o, e) {
4878
5050
  o.writeByte(e & 255), o.writeByte(e >> 8 & 255);
4879
5051
  }
4880
- function gn(o, e) {
5052
+ function bn(o, e) {
4881
5053
  for (var t = 0; t < e.length; t++) o.writeByte(e.charCodeAt(t));
4882
5054
  }
4883
- function Oi(o) {
5055
+ function Fi(o) {
4884
5056
  return Math.max(Math.ceil(Math.log2(o)), 1);
4885
5057
  }
4886
- class xa {
5058
+ class wa {
4887
5059
  renderer;
4888
5060
  scene;
4889
5061
  camera;
@@ -4945,25 +5117,25 @@ class xa {
4945
5117
  if (!n || !s) return;
4946
5118
  const u = 280, h = 100, p = 20, f = t - u - p, m = i - h - p, d = 12;
4947
5119
  e.fillStyle = "rgba(0, 10, 20, 0.9)", e.strokeStyle = "rgba(100, 170, 255, 0.5)", e.lineWidth = 2, e.beginPath(), e.roundRect ? e.roundRect(f, m, u, h, d) : e.rect(f, m, u, h), e.fill(), e.stroke(), e.fillStyle = "#44aaff", e.font = "bold 18px Arial, sans-serif", e.fillText(n.textContent || "", f + 16, m + 28);
4948
- const g = f + 16, y = m + 40, _ = u - 32, x = 20, v = s.style.background || "";
4949
- let b = [];
5120
+ const g = f + 16, y = m + 40, b = u - 32, x = 20, v = s.style.background || "";
5121
+ let _ = [];
4950
5122
  const C = v.match(/rgba?\([^)]+\)/g);
4951
5123
  if (C && C.length >= 2)
4952
- b = C;
5124
+ _ = C;
4953
5125
  else {
4954
5126
  const E = v.match(/#[0-9a-fA-F]{3,8}/g);
4955
- E && E.length >= 2 && (b = E);
5127
+ E && E.length >= 2 && (_ = E);
4956
5128
  }
4957
- if (b.length >= 2) {
4958
- const E = e.createLinearGradient(g, 0, g + _, 0);
4959
- E.addColorStop(0, b[0]), b.length >= 3 ? (E.addColorStop(0.5, b[1]), E.addColorStop(1, b[2])) : E.addColorStop(1, b[1]), e.fillStyle = E, e.beginPath(), e.roundRect ? e.roundRect(g, y, _, x, 4) : e.rect(g, y, _, x), e.fill();
5129
+ if (_.length >= 2) {
5130
+ const E = e.createLinearGradient(g, 0, g + b, 0);
5131
+ E.addColorStop(0, _[0]), _.length >= 3 ? (E.addColorStop(0.5, _[1]), E.addColorStop(1, _[2])) : E.addColorStop(1, _[1]), e.fillStyle = E, e.beginPath(), e.roundRect ? e.roundRect(g, y, b, x, 4) : e.rect(g, y, b, x), e.fill();
4960
5132
  } else {
4961
- const E = e.createLinearGradient(g, 0, g + _, 0);
4962
- E.addColorStop(0, "#cc6600"), E.addColorStop(0.5, "#ffaa44"), E.addColorStop(1, "#ffeecc"), e.fillStyle = E, e.beginPath(), e.roundRect ? e.roundRect(g, y, _, x, 4) : e.rect(g, y, _, x), e.fill(), console.log("Legend gradient style:", v);
5133
+ const E = e.createLinearGradient(g, 0, g + b, 0);
5134
+ E.addColorStop(0, "#cc6600"), E.addColorStop(0.5, "#ffaa44"), E.addColorStop(1, "#ffeecc"), e.fillStyle = E, e.beginPath(), e.roundRect ? e.roundRect(g, y, b, x, 4) : e.rect(g, y, b, x), e.fill(), console.log("Legend gradient style:", v);
4963
5135
  }
4964
5136
  if (e.fillStyle = "#cccccc", e.font = "14px Arial, sans-serif", a && e.fillText(a.textContent || "", g, m + 78), l) {
4965
5137
  const E = l.textContent || "", P = e.measureText(E).width;
4966
- e.fillText(E, g + _ - P, m + 78);
5138
+ e.fillText(E, g + b - P, m + 78);
4967
5139
  }
4968
5140
  c && c.textContent && (e.fillStyle = "#888888", e.font = "italic 12px Arial, sans-serif", e.fillText(c.textContent, g, m + 95));
4969
5141
  } catch (r) {
@@ -5082,9 +5254,9 @@ class xa {
5082
5254
  const { fps: t = 20, filename: i } = e, r = Math.round(1e3 / t);
5083
5255
  console.log(`Generating GIF with ${this.frames.length} frames at ${t} fps...`);
5084
5256
  try {
5085
- const n = this.frames[0], s = n.width, a = n.height, l = la(n.data, 256), c = pa();
5257
+ const n = this.frames[0], s = n.width, a = n.height, l = da(n.data, 256), c = ya();
5086
5258
  for (let m = 0; m < this.frames.length; m++) {
5087
- const d = this.frames[m], g = ua(d.data, l);
5259
+ const d = this.frames[m], g = fa(d.data, l);
5088
5260
  c.writeFrame(g, s, a, {
5089
5261
  palette: m === 0 ? l : void 0,
5090
5262
  // Only first frame needs palette
@@ -5118,7 +5290,7 @@ class xa {
5118
5290
  i.href = e, i.download = t, i.style.display = "none", document.body.appendChild(i), i.click(), document.body.removeChild(i);
5119
5291
  }
5120
5292
  }
5121
- const ar = {
5293
+ const lr = {
5122
5294
  "%": (o) => `${o.toFixed(1)}%`,
5123
5295
  $: (o) => `$${o.toLocaleString()}`,
5124
5296
  years: (o) => `${o.toFixed(1)} yrs`,
@@ -5126,20 +5298,20 @@ const ar = {
5126
5298
  "% of GDP": (o) => `${o.toFixed(1)}%`,
5127
5299
  index: (o) => o.toFixed(3),
5128
5300
  "": (o) => o.toFixed(3)
5129
- }, ba = ["per capita", "per 100", "per 1000"];
5130
- function yn(o) {
5131
- return ar[o] ? ar[o] : ba.some((e) => o.includes(e)) ? (e) => `${e.toFixed(1)}` : (e) => {
5301
+ }, Ca = ["per capita", "per 100", "per 1000"];
5302
+ function xn(o) {
5303
+ return lr[o] ? lr[o] : Ca.some((e) => o.includes(e)) ? (e) => `${e.toFixed(1)}` : (e) => {
5132
5304
  const t = Number.isInteger(e) ? e.toLocaleString() : e.toFixed(1);
5133
5305
  return o ? `${t} ${o}` : t;
5134
5306
  };
5135
5307
  }
5136
- function Ua(o, e, t) {
5137
- return (t ?? yn(e))(o);
5308
+ function Va(o, e, t) {
5309
+ return (t ?? xn(e))(o);
5138
5310
  }
5139
- let or = !1;
5140
- function va() {
5141
- if (or) return;
5142
- or = !0;
5311
+ let cr = !1;
5312
+ function Pa() {
5313
+ if (cr) return;
5314
+ cr = !0;
5143
5315
  const o = document.createElement("style");
5144
5316
  o.setAttribute("data-gralobe-legend", "true"), o.textContent = `
5145
5317
  .gralobe-legend {
@@ -5275,13 +5447,13 @@ function va() {
5275
5447
  }
5276
5448
  `, document.head.appendChild(o);
5277
5449
  }
5278
- class Ea {
5450
+ class Aa {
5279
5451
  element;
5280
5452
  parentContainer;
5281
5453
  visible = !1;
5282
5454
  resizeObserver = null;
5283
5455
  constructor(e) {
5284
- va(), 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 = `
5456
+ Pa(), 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 = `
5285
5457
  <div class="gralobe-legend-hint">G: view · F: fullscreen</div>
5286
5458
  <div class="gralobe-legend-title" data-testid="legend-title"></div>
5287
5459
  <div class="gralobe-legend-gradient"></div>
@@ -5305,7 +5477,7 @@ class Ea {
5305
5477
  t.textContent = e.name, s.textContent = e.description;
5306
5478
  const [a, l, c] = e.colorScale;
5307
5479
  i.style.background = `linear-gradient(to right, ${a}, ${l}, ${c})`;
5308
- const u = e.format ?? yn(e.unit);
5480
+ const u = e.format ?? xn(e.unit);
5309
5481
  r.textContent = u(e.domain[0]), n.textContent = u(e.domain[1]), this.element.classList.add("visible"), this.visible = !0;
5310
5482
  }
5311
5483
  hide() {
@@ -5321,7 +5493,7 @@ class Ea {
5321
5493
  this.resizeObserver?.disconnect(), this.element.remove();
5322
5494
  }
5323
5495
  }
5324
- const q = 50, wa = `
5496
+ const q = 50, Sa = `
5325
5497
  uniform float uMorph;
5326
5498
  uniform float uTime;
5327
5499
  uniform float uParchment;
@@ -5569,7 +5741,7 @@ void main() {
5569
5741
 
5570
5742
  gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);
5571
5743
  }
5572
- `, Ca = `
5744
+ `, Ta = `
5573
5745
  uniform sampler2D uTexture;
5574
5746
  uniform sampler2D uDataTexture;
5575
5747
  uniform sampler2D uCloudTexture;
@@ -5781,7 +5953,7 @@ void main() {
5781
5953
 
5782
5954
  gl_FragColor = vec4(color, 1.0);
5783
5955
  }
5784
- `, Pa = `
5956
+ `, Ma = `
5785
5957
  varying vec3 vNormal;
5786
5958
  varying vec3 vPosition;
5787
5959
  uniform float uMorph;
@@ -5816,7 +5988,7 @@ void main() {
5816
5988
  vPosition = pos;
5817
5989
  gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);
5818
5990
  }
5819
- `, Aa = `
5991
+ `, Da = `
5820
5992
  varying vec3 vNormal;
5821
5993
  varying vec3 vPosition;
5822
5994
  uniform float uOpacity;
@@ -5832,7 +6004,7 @@ void main() {
5832
6004
 
5833
6005
  gl_FragColor = vec4(color, intensity * 0.6 * uOpacity);
5834
6006
  }
5835
- `, Sa = `
6007
+ `, La = `
5836
6008
  attribute float aSize;
5837
6009
  attribute float aPhase;
5838
6010
  uniform float uTime;
@@ -5849,7 +6021,7 @@ void main() {
5849
6021
  gl_PointSize = aSize * (300.0 / -mvPosition.z) * twinkle;
5850
6022
  gl_Position = projectionMatrix * mvPosition;
5851
6023
  }
5852
- `, Ta = `
6024
+ `, Ia = `
5853
6025
  uniform float uOpacity;
5854
6026
  varying float vOpacity;
5855
6027
 
@@ -5860,16 +6032,16 @@ void main() {
5860
6032
 
5861
6033
  gl_FragColor = vec4(1.0, 1.0, 1.0, alpha * vOpacity * 0.9 * uOpacity);
5862
6034
  }
5863
- `, lr = Math.PI / 180;
5864
- function Ma(o, e, t = q) {
5865
- const i = (90 - o) * lr, r = (e + 180) * lr;
6035
+ `, ur = Math.PI / 180;
6036
+ function Ra(o, e, t = q) {
6037
+ const i = (90 - o) * ur, r = (e + 180) * ur;
5866
6038
  return new A.Vector3(
5867
6039
  -t * Math.sin(i) * Math.cos(r),
5868
6040
  t * Math.cos(i),
5869
6041
  t * Math.sin(i) * Math.sin(r)
5870
6042
  );
5871
6043
  }
5872
- function Da(o, e) {
6044
+ function ka(o, e) {
5873
6045
  const t = 2 * Math.PI * q, i = Math.PI * q;
5874
6046
  return new A.Vector3(
5875
6047
  e / 180 * (t / 2),
@@ -5877,7 +6049,7 @@ function Da(o, e) {
5877
6049
  0
5878
6050
  );
5879
6051
  }
5880
- const La = {
6052
+ const Oa = {
5881
6053
  style: "spike",
5882
6054
  color: "#0ea5e9",
5883
6055
  // Cyan/teal
@@ -5885,7 +6057,7 @@ const La = {
5885
6057
  pulseAnimation: !0,
5886
6058
  opacity: 0.9
5887
6059
  };
5888
- class Ra {
6060
+ class Fa {
5889
6061
  group;
5890
6062
  markers = [];
5891
6063
  config;
@@ -5897,7 +6069,7 @@ class Ra {
5897
6069
  markerMaterial;
5898
6070
  glowMaterial;
5899
6071
  constructor(e = {}) {
5900
- this.group = new A.Group(), this.config = { ...La, ...e }, this.markerMaterial = new A.MeshBasicMaterial({
6072
+ this.group = new A.Group(), this.config = { ...Oa, ...e }, this.markerMaterial = new A.MeshBasicMaterial({
5901
6073
  color: new A.Color(this.config.color),
5902
6074
  transparent: !0,
5903
6075
  opacity: this.config.opacity
@@ -6022,7 +6194,7 @@ class Ra {
6022
6194
  */
6023
6195
  updatePositions() {
6024
6196
  for (let e = 0; e < this.markerMeshes.length; e++) {
6025
- const t = this.markerMeshes[e], i = t.userData.marker, r = t.userData.height, n = Ma(i.lat, i.lng, q), s = Da(i.lat, i.lng), a = this.morph * this.morph * (3 - 2 * this.morph);
6197
+ const t = this.markerMeshes[e], i = t.userData.marker, r = t.userData.height, n = Ra(i.lat, i.lng, q), s = ka(i.lat, i.lng), a = this.morph * this.morph * (3 - 2 * this.morph);
6026
6198
  if (t.position.lerpVectors(s, n, a), a > 0.01) {
6027
6199
  if (t.lookAt(t.position.clone().multiplyScalar(2)), this.config.style === "spike" || this.config.style === "pin") {
6028
6200
  t.rotateX(Math.PI / 2);
@@ -6054,7 +6226,90 @@ class Ra {
6054
6226
  this.markerMeshes = [], this.glowMeshes = [];
6055
6227
  }
6056
6228
  }
6057
- const fi = {
6229
+ let hr = !1;
6230
+ function Ua() {
6231
+ if (hr) return;
6232
+ hr = !0;
6233
+ const o = document.createElement("style");
6234
+ o.setAttribute("data-gralobe-toolbar", "true"), o.textContent = `
6235
+ .gralobe-toolbar {
6236
+ position: absolute;
6237
+ bottom: 12px;
6238
+ right: 12px;
6239
+ display: flex;
6240
+ gap: 8px;
6241
+ z-index: 100;
6242
+ pointer-events: auto;
6243
+ }
6244
+
6245
+ .gralobe-toolbar-btn {
6246
+ width: 32px;
6247
+ height: 32px;
6248
+ border-radius: 6px;
6249
+ background: rgba(0, 10, 20, 0.85);
6250
+ border: 1px solid rgba(100, 150, 200, 0.3);
6251
+ color: #ddd;
6252
+ display: flex;
6253
+ align-items: center;
6254
+ justify-content: center;
6255
+ cursor: pointer;
6256
+ transition: all 0.2s ease;
6257
+ font-size: 16px;
6258
+ padding: 0;
6259
+ backdrop-filter: blur(4px);
6260
+ -webkit-backdrop-filter: blur(4px);
6261
+ }
6262
+
6263
+ .gralobe-toolbar-btn:hover {
6264
+ background: rgba(20, 40, 60, 0.95);
6265
+ border-color: rgba(100, 180, 255, 0.6);
6266
+ color: #fff;
6267
+ transform: translateY(-2px);
6268
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
6269
+ }
6270
+
6271
+ .gralobe-toolbar-btn:active {
6272
+ transform: translateY(0);
6273
+ }
6274
+
6275
+ .gralobe-toolbar-btn svg {
6276
+ width: 18px;
6277
+ height: 18px;
6278
+ }
6279
+ `, document.head.appendChild(o);
6280
+ }
6281
+ class za {
6282
+ element;
6283
+ parentContainer;
6284
+ constructor(e, t) {
6285
+ Ua(), this.parentContainer = e, this.element = document.createElement("div"), this.element.className = "gralobe-toolbar";
6286
+ const i = document.createElement("button");
6287
+ i.className = "gralobe-toolbar-btn", i.title = "View Raw Data", i.innerHTML = `
6288
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
6289
+ <line x1="8" y1="6" x2="21" y2="6"></line>
6290
+ <line x1="8" y1="12" x2="21" y2="12"></line>
6291
+ <line x1="8" y1="18" x2="21" y2="18"></line>
6292
+ <line x1="3" y1="6" x2="3.01" y2="6"></line>
6293
+ <line x1="3" y1="12" x2="3.01" y2="12"></line>
6294
+ <line x1="3" y1="18" x2="3.01" y2="18"></line>
6295
+ </svg>
6296
+ `, i.onclick = (s) => {
6297
+ s.stopPropagation(), t.onShowData();
6298
+ };
6299
+ const r = document.createElement("button");
6300
+ r.className = "gralobe-toolbar-btn", r.title = "Toggle Fullscreen", r.innerHTML = `
6301
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
6302
+ <path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>
6303
+ </svg>
6304
+ `, r.onclick = (s) => {
6305
+ s.stopPropagation(), t.onToggleFullscreen();
6306
+ }, this.element.appendChild(i), this.element.appendChild(r), getComputedStyle(e).position === "static" && (e.style.position = "relative"), e.appendChild(this.element);
6307
+ }
6308
+ dispose() {
6309
+ this.element.remove();
6310
+ }
6311
+ }
6312
+ const ht = {
6058
6313
  lifeExpectancy: {
6059
6314
  id: "lifeExpectancy",
6060
6315
  name: "Life Expectancy",
@@ -6164,9 +6419,9 @@ const fi = {
6164
6419
  format: (o) => `${o.toFixed(1)}%`
6165
6420
  }
6166
6421
  };
6167
- fi.lifeExpectancy;
6168
- const Ia = "https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_10m_urban_areas.geojson";
6169
- class Oa {
6422
+ ht.lifeExpectancy;
6423
+ const Na = "https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_10m_urban_areas.geojson";
6424
+ class $a {
6170
6425
  static urbanFeatures = null;
6171
6426
  static isLoading = !1;
6172
6427
  static loadPromise = null;
@@ -6176,7 +6431,7 @@ class Oa {
6176
6431
  static async loadBaseTopology() {
6177
6432
  return this.urbanFeatures ? this.urbanFeatures : this.loadPromise ? this.loadPromise : (this.isLoading = !0, this.loadPromise = (async () => {
6178
6433
  try {
6179
- const e = await fetch(Ia);
6434
+ const e = await fetch(Na);
6180
6435
  if (!e.ok) throw new Error("Failed to load urban areas");
6181
6436
  const t = await e.json();
6182
6437
  return this.urbanFeatures = t.features, this.urbanFeatures || [];
@@ -6273,14 +6528,14 @@ class Oa {
6273
6528
  return n;
6274
6529
  }
6275
6530
  }
6276
- const cr = {
6531
+ const dr = {
6277
6532
  satellite: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_atmos_2048.jpg",
6278
6533
  natural: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_day_4096.jpg",
6279
6534
  dark: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_lights_2048.png",
6280
6535
  light: "https://raw.githubusercontent.com/turban/webgl-earth/master/images/2_no_clouds_4k.jpg",
6281
6536
  night: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_lights_2048.png",
6282
6537
  topographic: "https://eoimages.gsfc.nasa.gov/images/imagerecords/74000/74117/world.topo.200407.3x5400x2700.jpg"
6283
- }, ur = {
6538
+ }, pr = {
6284
6539
  texture: "satellite",
6285
6540
  labels: "data",
6286
6541
  statistic: "lifeExpectancy",
@@ -6297,7 +6552,7 @@ const cr = {
6297
6552
  extrudeHeight: !1,
6298
6553
  pointRadius: 140
6299
6554
  };
6300
- class za {
6555
+ class Ha {
6301
6556
  container;
6302
6557
  config;
6303
6558
  // Three.js core
@@ -6317,6 +6572,8 @@ class za {
6317
6572
  exporter = null;
6318
6573
  countryLabels = null;
6319
6574
  markerLayer = null;
6575
+ toolbar = null;
6576
+ dataGrid = null;
6320
6577
  textureLoader = new A.TextureLoader();
6321
6578
  dataTexture = null;
6322
6579
  // State
@@ -6343,9 +6600,9 @@ class za {
6343
6600
  } else
6344
6601
  this.container = e;
6345
6602
  this.config = {
6346
- ...ur,
6603
+ ...pr,
6347
6604
  ...t,
6348
- effects: { ...ur.effects, ...t.effects }
6605
+ effects: { ...pr.effects, ...t.effects }
6349
6606
  }, this.ready = new Promise((i, r) => {
6350
6607
  this.resolveReady = i, this.rejectReady = r;
6351
6608
  }), this.init();
@@ -6368,14 +6625,20 @@ class za {
6368
6625
  duration: 1
6369
6626
  }));
6370
6627
  }
6371
- ), this.config.showLegend && (this.legend = new Ea(this.container)), await this.createGlobe(), this.createStars(), this.config.effects.atmosphere && this.createAtmosphere(), this.countryLabels = new ia(this.container, q), this.scene.add(this.countryLabels.getGroup()), this.globe && this.countryLabels.setGlobe(this.globe), this.countryLabels.setCamera(this.camera), this.countryLabels.setStyle(this.config.labels), this.exporter = new xa(this.renderer, this.scene, this.camera), this.legend && this.exporter.setLegendElement(this.legend.getElement()), this.countryLabels && this.exporter.setCountryLabels(this.countryLabels), this.config.showControls && this.createGUI(), this.setupInteraction(), await this.choropleth.waitForLoad();
6628
+ ), this.config.showLegend && (this.legend = new Aa(this.container)), await this.createGlobe(), this.createStars(), this.config.effects.atmosphere && this.createAtmosphere(), this.countryLabels = new na(this.container, q), this.scene.add(this.countryLabels.getGroup()), this.globe && this.countryLabels.setGlobe(this.globe), this.countryLabels.setCamera(this.camera), this.countryLabels.setStyle(this.config.labels), this.exporter = new wa(this.renderer, this.scene, this.camera), this.legend && this.exporter.setLegendElement(this.legend.getElement()), this.countryLabels && this.exporter.setCountryLabels(this.countryLabels), this.config.showControls && this.createGUI(), this.setupInteraction(), await this.choropleth.waitForLoad();
6372
6629
  const i = this.choropleth.getFeatureLabels();
6373
6630
  i.length > 0 && this.addCustomLabels(i), this.setStatistic(this.config.statistic), this.morph = this.config.initialView === "globe" ? 1 : 0, this.material && (this.material.uniforms.uMorph.value = this.morph), this.countryLabels?.setMorph(this.morph), window.addEventListener("resize", this.handleResize), document.addEventListener(
6374
6631
  "fullscreenchange",
6375
6632
  this.handleFullscreenChange
6376
6633
  ), this.renderer.domElement.tabIndex = 0, this.renderer.domElement.style.outline = "none", this.renderer.domElement.addEventListener("mousedown", () => {
6377
6634
  this.renderer.domElement.focus();
6378
- }), this.renderer.domElement.addEventListener("keydown", this.handleKeydown), this.animate(), this.resolveReady();
6635
+ }), this.renderer.domElement.addEventListener("keydown", this.handleKeydown), this.animate(), this.config.showControls && (this.toolbar = new za(this.container, {
6636
+ onShowData: () => {
6637
+ const n = (this.currentStatistic ? this.getStatisticMetadata(this.currentStatistic) : null)?.definition.name || "Current Data";
6638
+ this.dataGrid?.show(n, this.currentValues || {});
6639
+ },
6640
+ onToggleFullscreen: () => this.toggleFullscreen()
6641
+ }), this.dataGrid = new aa(this.container)), this.resolveReady();
6379
6642
  } catch (e) {
6380
6643
  console.error("GlobeViz init failed:", e), this.rejectReady(e);
6381
6644
  }
@@ -6386,7 +6649,7 @@ class za {
6386
6649
  };
6387
6650
  async createGlobe() {
6388
6651
  const e = this.textureLoader.loadAsync(
6389
- cr[this.config.texture]
6652
+ dr[this.config.texture]
6390
6653
  ), t = new Promise(
6391
6654
  (s, a) => setTimeout(
6392
6655
  () => a(new Error("Texture load timed out after 10s")),
@@ -6403,8 +6666,8 @@ class za {
6403
6666
  128
6404
6667
  );
6405
6668
  this.material = new A.ShaderMaterial({
6406
- vertexShader: wa,
6407
- fragmentShader: Ca,
6669
+ vertexShader: Sa,
6670
+ fragmentShader: Ta,
6408
6671
  uniforms: {
6409
6672
  // Core uniforms
6410
6673
  uMorph: { value: 0 },
@@ -6456,8 +6719,8 @@ class za {
6456
6719
  128,
6457
6720
  64
6458
6721
  ), t = new A.ShaderMaterial({
6459
- vertexShader: Pa,
6460
- fragmentShader: Aa,
6722
+ vertexShader: Ma,
6723
+ fragmentShader: Da,
6461
6724
  uniforms: {
6462
6725
  uMorph: { value: 0 },
6463
6726
  uOpacity: { value: 1 }
@@ -6477,8 +6740,8 @@ class za {
6477
6740
  }
6478
6741
  t.setAttribute("position", new A.BufferAttribute(i, 3)), t.setAttribute("aSize", new A.BufferAttribute(r, 1)), t.setAttribute("aPhase", new A.BufferAttribute(n, 1));
6479
6742
  const s = new A.ShaderMaterial({
6480
- vertexShader: Sa,
6481
- fragmentShader: Ta,
6743
+ vertexShader: La,
6744
+ fragmentShader: Ia,
6482
6745
  uniforms: {
6483
6746
  uTime: { value: 0 },
6484
6747
  uTwinkle: { value: this.config.effects.starTwinkle ? 1 : 0 },
@@ -6491,7 +6754,7 @@ class za {
6491
6754
  this.stars = new A.Points(t, s), this.scene.add(this.stars);
6492
6755
  }
6493
6756
  createGUI() {
6494
- getComputedStyle(this.container).position === "static" && (this.container.style.position = "relative"), this.gui = new Ii({
6757
+ getComputedStyle(this.container).position === "static" && (this.container.style.position = "relative"), this.gui = new Oi({
6495
6758
  container: this.container,
6496
6759
  title: "⚙ Controls",
6497
6760
  width: 220,
@@ -6501,7 +6764,7 @@ class za {
6501
6764
  t.style.position = "absolute", t.style.top = "8px", t.style.right = "8px", t.style.zIndex = "100", this.gui.close();
6502
6765
  const i = this.gui.addFolder("View");
6503
6766
  i.add({ toGlobe: () => this.toGlobe() }, "toGlobe").name("→ Globe"), i.add({ toFlat: () => this.toFlat() }, "toFlat").name("→ Flat"), i.add({ morph: this.morph }, "morph", 0, 1).name("Morph").onChange((l) => this.setMorph(l));
6504
- const r = this.gui.addFolder("Statistics"), n = Object.keys(fi);
6767
+ const r = this.gui.addFolder("Statistics"), n = Object.keys(ht);
6505
6768
  r.add({ stat: this.config.statistic }, "stat", n).name("Statistic").onChange((l) => this.setStatistic(l));
6506
6769
  const s = [
6507
6770
  "none",
@@ -6586,8 +6849,8 @@ class za {
6586
6849
  const e = this.choropleth?.getBounds(), t = Math.PI * 2 * q, i = Math.PI * q;
6587
6850
  let r = 0, n = 0, s = t, a = i;
6588
6851
  if (e) {
6589
- const [f, m, d, g] = e, y = f / 180 * (t / 2), _ = d / 180 * (t / 2), x = m / 90 * (i / 2), v = g / 90 * (i / 2);
6590
- r = (y + _) / 2, n = (x + v) / 2, s = (_ - y) * 1.2, a = (v - x) * 1.2;
6852
+ const [f, m, d, g] = e, y = f / 180 * (t / 2), b = d / 180 * (t / 2), x = m / 90 * (i / 2), v = g / 90 * (i / 2);
6853
+ r = (y + b) / 2, n = (x + v) / 2, s = (b - y) * 1.2, a = (v - x) * 1.2;
6591
6854
  }
6592
6855
  const l = this.camera.fov * Math.PI / 180, c = this.camera.aspect, u = a / 2 / Math.tan(l / 2), h = s / (2 * Math.tan(l / 2) * c), p = Math.max(u, h);
6593
6856
  this.controls.enabled = !1, j.to(this, {
@@ -6686,7 +6949,7 @@ class za {
6686
6949
  }
6687
6950
  setStatistic(e) {
6688
6951
  if (typeof e == "string") {
6689
- const t = fi[e];
6952
+ const t = ht[e];
6690
6953
  if (!t) {
6691
6954
  console.warn(`Unknown statistic: ${e}`);
6692
6955
  return;
@@ -6696,7 +6959,7 @@ class za {
6696
6959
  return;
6697
6960
  }
6698
6961
  this.currentStatistic = e, this.currentValues = null;
6699
- const i = tr.find((r) => r.id === e);
6962
+ const i = Pt.find((r) => r.id === e);
6700
6963
  if (i && this.choropleth) {
6701
6964
  const r = this.choropleth.renderTexture(i);
6702
6965
  if (this.material && r) {
@@ -6743,7 +7006,7 @@ class za {
6743
7006
  this.countryLabels?.clearCustomLabels();
6744
7007
  }
6745
7008
  async setTexture(e) {
6746
- const t = cr[e];
7009
+ const t = dr[e];
6747
7010
  if (!(!t || !this.material))
6748
7011
  try {
6749
7012
  const i = await this.textureLoader.loadAsync(t);
@@ -6774,12 +7037,12 @@ class za {
6774
7037
  Object.assign(this.config.effects, e), this.material && (e.atmosphere !== void 0 && (e.atmosphere && !this.atmosphere ? this.createAtmosphere() : !e.atmosphere && this.atmosphere && (this.scene.remove(this.atmosphere), this.atmosphere.geometry.dispose(), this.atmosphere.material.dispose(), this.atmosphere = null)), e.clouds !== void 0 && (this.material.uniforms.uClouds.value = e.clouds ? 1 : 0), e.cloudSpeed !== void 0 && (this.material.uniforms.uCloudSpeed.value = e.cloudSpeed), e.cloudOpacity !== void 0 && (this.material.uniforms.uCloudOpacity.value = e.cloudOpacity), e.atmosphereIntensity !== void 0 && (this.material.uniforms.uAtmosphereIntensity.value = e.atmosphereIntensity), e.gridLines !== void 0 && (this.material.uniforms.uGridLines.value = e.gridLines ? 1 : 0), e.gridOpacity !== void 0 && (this.material.uniforms.uGridOpacity.value = e.gridOpacity), e.glowPulse !== void 0 && (this.material.uniforms.uGlowPulse.value = e.glowPulse ? 1 : 0), e.starTwinkle !== void 0 && this.stars && (this.stars.material.uniforms.uTwinkle.value = e.starTwinkle ? 1 : 0));
6775
7038
  }
6776
7039
  setMarkers(e, t) {
6777
- this.markerLayer ? t && this.markerLayer.setConfig(t) : (this.markerLayer = new Ra(t), this.scene.add(this.markerLayer.getGroup()), this.markerLayer.setMorph(this.morph)), this.markerLayer.setMarkers(e);
7040
+ this.markerLayer ? t && this.markerLayer.setConfig(t) : (this.markerLayer = new Fa(t), this.scene.add(this.markerLayer.getGroup()), this.markerLayer.setMorph(this.morph)), this.markerLayer.setMarkers(e);
6778
7041
  }
6779
7042
  async setUrbanData(e) {
6780
7043
  if (!this.choropleth) return;
6781
7044
  this.urbanPoints = e;
6782
- const t = this.config.pointRadius || 140, i = await Oa.mapPointsToTopology(
7045
+ const t = this.config.pointRadius || 140, i = await $a.mapPointsToTopology(
6783
7046
  e,
6784
7047
  t,
6785
7048
  !0
@@ -6787,11 +7050,16 @@ class za {
6787
7050
  this.choropleth.setFeatures(i.features);
6788
7051
  const r = this.choropleth.getFeatureLabels();
6789
7052
  r.length > 0 && this.addCustomLabels(r);
6790
- const n = [
7053
+ let n = [
6791
7054
  "#ffffb2",
6792
7055
  "#fd8d3c",
6793
7056
  "#bd0026"
6794
- ], s = Object.values(i.statistics), a = Math.max(...s, 1);
7057
+ ];
7058
+ if (this.currentStatistic) {
7059
+ const l = this.getStatisticMetadata(this.currentStatistic);
7060
+ l && l.definition.colorScale && (n = l.definition.colorScale);
7061
+ }
7062
+ const s = Object.values(i.statistics), a = Math.max(...s, 1);
6795
7063
  if (this.choropleth.renderCustomTexture(i.statistics, n, [
6796
7064
  0,
6797
7065
  a
@@ -6834,7 +7102,7 @@ class za {
6834
7102
  }
6835
7103
  return this.currentValues;
6836
7104
  }
6837
- const e = tr.find(
7105
+ const e = Pt.find(
6838
7106
  (t) => t.id === this.currentStatistic
6839
7107
  );
6840
7108
  if (e && this.choropleth) {
@@ -6872,14 +7140,46 @@ class za {
6872
7140
  i.parentElement.addEventListener("mouseleave", a);
6873
7141
  }));
6874
7142
  }
7143
+ getStatisticMetadata(e) {
7144
+ if (ht[e]) {
7145
+ const i = ht[e], r = Pt.find((s) => s.id === e), n = {};
7146
+ return r && $t.forEach((s) => {
7147
+ const a = r.accessor(s);
7148
+ a != null && (n[s.id] = a);
7149
+ }), {
7150
+ definition: i,
7151
+ values: n
7152
+ };
7153
+ }
7154
+ const t = Pt.find((i) => i.id === e);
7155
+ if (t) {
7156
+ const i = {};
7157
+ return $t.forEach((r) => {
7158
+ const n = t.accessor(r);
7159
+ n != null && (i[r.id] = n);
7160
+ }), {
7161
+ definition: {
7162
+ id: t.id,
7163
+ name: t.name,
7164
+ unit: t.unit,
7165
+ description: t.description,
7166
+ colorScale: t.colorScale,
7167
+ domain: t.domain,
7168
+ format: t.format
7169
+ },
7170
+ values: i
7171
+ };
7172
+ }
7173
+ return null;
7174
+ }
6875
7175
  }
6876
7176
  export {
6877
- fi as BUILT_IN_STATISTICS,
6878
- za as GlobeViz,
6879
- hn as WORLD_STATISTICS,
6880
- yn as createFormatter,
6881
- Ua as formatValue,
6882
- Xs as normalizeCountryValues,
6883
- ir as toNumericCode
7177
+ ht as BUILT_IN_STATISTICS,
7178
+ Ha as GlobeViz,
7179
+ $t as WORLD_STATISTICS,
7180
+ xn as createFormatter,
7181
+ Va as formatValue,
7182
+ qs as normalizeCountryValues,
7183
+ rr as toNumericCode
6884
7184
  };
6885
7185
  //# sourceMappingURL=gralobe.js.map