vue-pointer-boxes 1.1.0 → 1.1.1

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.
@@ -1,10 +1,10 @@
1
- import { ref as Fi, computed as Ni, onMounted as nn, nextTick as sn, onBeforeUnmount as on, openBlock as Ii, createElementBlock as Bi, normalizeStyle as Wi, createElementVNode as an, renderSlot as ln, toDisplayString as fn, createCommentVNode as un, createApp as hn } from "vue";
2
- function Dt(l) {
1
+ import { ref as sr, computed as or, onMounted as Bn, nextTick as In, onBeforeUnmount as $n, openBlock as ar, createElementBlock as lr, normalizeStyle as fr, normalizeClass as Wn, createElementVNode as Hn, renderSlot as qn, toDisplayString as Vn, createCommentVNode as Un, createApp as Yn } from "vue";
2
+ function $t(l) {
3
3
  if (l === void 0)
4
4
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
5
  return l;
6
6
  }
7
- function or(l, t) {
7
+ function Rr(l, t) {
8
8
  l.prototype = Object.create(t.prototype), l.prototype.constructor = l, l.__proto__ = t;
9
9
  }
10
10
  /*!
@@ -15,195 +15,195 @@ function or(l, t) {
15
15
  * Subject to the terms at https://gsap.com/standard-license
16
16
  * @author: Jack Doyle, jack@greensock.com
17
17
  */
18
- var yt = {
18
+ var wt = {
19
19
  autoSleep: 120,
20
20
  force3D: "auto",
21
21
  nullTargetWarn: 1,
22
22
  units: {
23
23
  lineHeight: ""
24
24
  }
25
- }, we = {
25
+ }, Oe = {
26
26
  duration: 0.5,
27
27
  overwrite: !1,
28
28
  delay: 0
29
- }, gi, rt, X, bt = 1e8, B = 1 / bt, ni = Math.PI * 2, cn = ni / 4, _n = 0, ar = Math.sqrt, dn = Math.cos, pn = Math.sin, it = function(t) {
29
+ }, Li, st, X, Mt = 1e8, H = 1 / Mt, xi = Math.PI * 2, Xn = xi / 4, Gn = 0, Er = Math.sqrt, jn = Math.cos, Zn = Math.sin, nt = function(t) {
30
30
  return typeof t == "string";
31
- }, K = function(t) {
31
+ }, J = function(t) {
32
32
  return typeof t == "function";
33
- }, At = function(t) {
33
+ }, Ht = function(t) {
34
34
  return typeof t == "number";
35
- }, mi = function(t) {
35
+ }, Ai = function(t) {
36
36
  return typeof t > "u";
37
- }, Ot = function(t) {
37
+ }, Nt = function(t) {
38
38
  return typeof t == "object";
39
- }, ft = function(t) {
39
+ }, ht = function(t) {
40
40
  return t !== !1;
41
- }, yi = function() {
41
+ }, zi = function() {
42
42
  return typeof window < "u";
43
- }, Ee = function(t) {
44
- return K(t) || it(t);
45
- }, lr = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
46
- }, st = Array.isArray, gn = /random\([^)]+\)/g, mn = /,\s*/g, Vi = /(?:-?\.?\d|\.)+/gi, fr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, se = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Ze = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, ur = /[+-]=-?[.\d]+/, yn = /[^,'"\[\]\s]+/gi, xn = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, $, Ct, si, xi, xt = {}, Ie = {}, hr, cr = function(t) {
47
- return (Ie = ue(t, xt)) && _t;
48
- }, vi = function(t, e) {
43
+ }, Ie = function(t) {
44
+ return J(t) || nt(t);
45
+ }, Dr = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
46
+ }, lt = Array.isArray, Kn = /random\([^)]+\)/g, Qn = /,\s*/g, cr = /(?:-?\.?\d|\.)+/gi, Lr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, he = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, ui = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, Ar = /[+-]=-?[.\d]+/, Jn = /[^,'"\[\]\s]+/gi, ts = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, Z, Lt, bi, Ni, Tt = {}, Ue = {}, zr, Nr = function(t) {
47
+ return (Ue = me(t, Tt)) && gt;
48
+ }, Fi = function(t, e) {
49
49
  return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
50
- }, be = function(t, e) {
50
+ }, Re = function(t, e) {
51
51
  return !e && console.warn(t);
52
- }, _r = function(t, e) {
53
- return t && (xt[t] = e) && Ie && (Ie[t] = e) || xt;
54
- }, Se = function() {
52
+ }, Fr = function(t, e) {
53
+ return t && (Tt[t] = e) && Ue && (Ue[t] = e) || Tt;
54
+ }, Ee = function() {
55
55
  return 0;
56
- }, vn = {
56
+ }, es = {
57
57
  suppressEvents: !0,
58
58
  isStart: !0,
59
59
  kill: !1
60
- }, Ae = {
60
+ }, $e = {
61
61
  suppressEvents: !0,
62
62
  kill: !1
63
- }, Tn = {
63
+ }, is = {
64
64
  suppressEvents: !0
65
- }, Ti = {}, Wt = [], oi = {}, dr, dt = {}, Ke = {}, Yi = 30, Le = [], wi = "", bi = function(t) {
65
+ }, Bi = {}, Gt = [], wi = {}, Br, vt = {}, hi = {}, ur = 30, We = [], Ii = "", $i = function(t) {
66
66
  var e = t[0], i, r;
67
- if (Ot(e) || K(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
68
- for (r = Le.length; r-- && !Le[r].targetTest(e); )
67
+ if (Nt(e) || J(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
68
+ for (r = We.length; r-- && !We[r].targetTest(e); )
69
69
  ;
70
- i = Le[r];
70
+ i = We[r];
71
71
  }
72
72
  for (r = t.length; r--; )
73
- t[r] && (t[r]._gsap || (t[r]._gsap = new Fr(t[r], i))) || t.splice(r, 1);
73
+ t[r] && (t[r]._gsap || (t[r]._gsap = new an(t[r], i))) || t.splice(r, 1);
74
74
  return t;
75
- }, Qt = function(t) {
76
- return t._gsap || bi(St(t))[0]._gsap;
77
- }, pr = function(t, e, i) {
78
- return (i = t[e]) && K(i) ? t[e]() : mi(i) && t.getAttribute && t.getAttribute(e) || i;
79
- }, ut = function(t, e) {
75
+ }, ne = function(t) {
76
+ return t._gsap || $i(Pt(t))[0]._gsap;
77
+ }, Ir = function(t, e, i) {
78
+ return (i = t[e]) && J(i) ? t[e]() : Ai(i) && t.getAttribute && t.getAttribute(e) || i;
79
+ }, dt = function(t, e) {
80
80
  return (t = t.split(",")).forEach(e) || t;
81
- }, J = function(t) {
81
+ }, et = function(t) {
82
82
  return Math.round(t * 1e5) / 1e5 || 0;
83
- }, G = function(t) {
83
+ }, j = function(t) {
84
84
  return Math.round(t * 1e7) / 1e7 || 0;
85
- }, ae = function(t, e) {
85
+ }, pe = function(t, e) {
86
86
  var i = e.charAt(0), r = parseFloat(e.substr(2));
87
87
  return t = parseFloat(t), i === "+" ? t + r : i === "-" ? t - r : i === "*" ? t * r : t / r;
88
- }, wn = function(t, e) {
88
+ }, rs = function(t, e) {
89
89
  for (var i = e.length, r = 0; t.indexOf(e[r]) < 0 && ++r < i; )
90
90
  ;
91
91
  return r < i;
92
- }, Be = function() {
93
- var t = Wt.length, e = Wt.slice(0), i, r;
94
- for (oi = {}, Wt.length = 0, i = 0; i < t; i++)
92
+ }, Ye = function() {
93
+ var t = Gt.length, e = Gt.slice(0), i, r;
94
+ for (wi = {}, Gt.length = 0, i = 0; i < t; i++)
95
95
  r = e[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
96
- }, Si = function(t) {
96
+ }, Wi = function(t) {
97
97
  return !!(t._initted || t._startAt || t.add);
98
- }, gr = function(t, e, i, r) {
99
- Wt.length && !rt && Be(), t.render(e, i, !!(rt && e < 0 && Si(t))), Wt.length && !rt && Be();
100
- }, mr = function(t) {
98
+ }, $r = function(t, e, i, r) {
99
+ Gt.length && !st && Ye(), t.render(e, i, !!(st && e < 0 && Wi(t))), Gt.length && !st && Ye();
100
+ }, Wr = function(t) {
101
101
  var e = parseFloat(t);
102
- return (e || e === 0) && (t + "").match(yn).length < 2 ? e : it(t) ? t.trim() : t;
103
- }, yr = function(t) {
102
+ return (e || e === 0) && (t + "").match(Jn).length < 2 ? e : nt(t) ? t.trim() : t;
103
+ }, Hr = function(t) {
104
104
  return t;
105
- }, vt = function(t, e) {
105
+ }, St = function(t, e) {
106
106
  for (var i in e)
107
107
  i in t || (t[i] = e[i]);
108
108
  return t;
109
- }, bn = function(t) {
109
+ }, ns = function(t) {
110
110
  return function(e, i) {
111
111
  for (var r in i)
112
112
  r in e || r === "duration" && t || r === "ease" || (e[r] = i[r]);
113
113
  };
114
- }, ue = function(t, e) {
114
+ }, me = function(t, e) {
115
115
  for (var i in e)
116
116
  t[i] = e[i];
117
117
  return t;
118
- }, Ui = function l(t, e) {
118
+ }, hr = function l(t, e) {
119
119
  for (var i in e)
120
- i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] = Ot(e[i]) ? l(t[i] || (t[i] = {}), e[i]) : e[i]);
120
+ i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] = Nt(e[i]) ? l(t[i] || (t[i] = {}), e[i]) : e[i]);
121
121
  return t;
122
- }, We = function(t, e) {
122
+ }, Xe = function(t, e) {
123
123
  var i = {}, r;
124
124
  for (r in t)
125
125
  r in e || (i[r] = t[r]);
126
126
  return i;
127
- }, xe = function(t) {
128
- var e = t.parent || $, i = t.keyframes ? bn(st(t.keyframes)) : vt;
129
- if (ft(t.inherit))
127
+ }, Ce = function(t) {
128
+ var e = t.parent || Z, i = t.keyframes ? ns(lt(t.keyframes)) : St;
129
+ if (ht(t.inherit))
130
130
  for (; e; )
131
131
  i(t, e.vars.defaults), e = e.parent || e._dp;
132
132
  return t;
133
- }, Sn = function(t, e) {
133
+ }, ss = function(t, e) {
134
134
  for (var i = t.length, r = i === e.length; r && i-- && t[i] === e[i]; )
135
135
  ;
136
136
  return i < 0;
137
- }, xr = function(t, e, i, r, n) {
137
+ }, qr = function(t, e, i, r, n) {
138
138
  var s = t[r], o;
139
139
  if (n)
140
140
  for (o = e[n]; s && s[n] > o; )
141
141
  s = s._prev;
142
142
  return s ? (e._next = s._next, s._next = e) : (e._next = t[i], t[i] = e), e._next ? e._next._prev = e : t[r] = e, e._prev = s, e.parent = e._dp = t, e;
143
- }, Ge = function(t, e, i, r) {
143
+ }, ti = function(t, e, i, r) {
144
144
  i === void 0 && (i = "_first"), r === void 0 && (r = "_last");
145
145
  var n = e._prev, s = e._next;
146
146
  n ? n._next = s : t[i] === e && (t[i] = s), s ? s._prev = n : t[r] === e && (t[r] = n), e._next = e._prev = e.parent = null;
147
- }, Yt = function(t, e) {
147
+ }, Zt = function(t, e) {
148
148
  t.parent && (!e || t.parent.autoRemoveChildren) && t.parent.remove && t.parent.remove(t), t._act = 0;
149
- }, Jt = function(t, e) {
149
+ }, se = function(t, e) {
150
150
  if (t && (!e || e._end > t._dur || e._start < 0))
151
151
  for (var i = t; i; )
152
152
  i._dirty = 1, i = i.parent;
153
153
  return t;
154
- }, kn = function(t) {
154
+ }, os = function(t) {
155
155
  for (var e = t.parent; e && e.parent; )
156
156
  e._dirty = 1, e.totalDuration(), e = e.parent;
157
157
  return t;
158
- }, ai = function(t, e, i, r) {
159
- return t._startAt && (rt ? t._startAt.revert(Ae) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
160
- }, Cn = function l(t) {
158
+ }, Ti = function(t, e, i, r) {
159
+ return t._startAt && (st ? t._startAt.revert($e) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
160
+ }, as = function l(t) {
161
161
  return !t || t._ts && l(t.parent);
162
- }, qi = function(t) {
163
- return t._repeat ? he(t._tTime, t = t.duration() + t._rDelay) * t : 0;
164
- }, he = function(t, e) {
165
- var i = Math.floor(t = G(t / e));
162
+ }, dr = function(t) {
163
+ return t._repeat ? ve(t._tTime, t = t.duration() + t._rDelay) * t : 0;
164
+ }, ve = function(t, e) {
165
+ var i = Math.floor(t = j(t / e));
166
166
  return t && i === t ? i - 1 : i;
167
- }, Ve = function(t, e) {
167
+ }, Ge = function(t, e) {
168
168
  return (t - e._start) * e._ts + (e._ts >= 0 ? 0 : e._dirty ? e.totalDuration() : e._tDur);
169
- }, $e = function(t) {
170
- return t._end = G(t._start + (t._tDur / Math.abs(t._ts || t._rts || B) || 0));
171
- }, je = function(t, e) {
169
+ }, ei = function(t) {
170
+ return t._end = j(t._start + (t._tDur / Math.abs(t._ts || t._rts || H) || 0));
171
+ }, ii = function(t, e) {
172
172
  var i = t._dp;
173
- return i && i.smoothChildTiming && t._ts && (t._start = G(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), $e(t), i._dirty || Jt(i, t)), t;
174
- }, vr = function(t, e) {
173
+ return i && i.smoothChildTiming && t._ts && (t._start = j(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), ei(t), i._dirty || se(i, t)), t;
174
+ }, Vr = function(t, e) {
175
175
  var i;
176
- if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = Ve(t.rawTime(), e), (!e._dur || De(0, e.totalDuration(), i) - e._tTime > B) && e.render(i, !0)), Jt(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
176
+ if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = Ge(t.rawTime(), e), (!e._dur || Be(0, e.totalDuration(), i) - e._tTime > H) && e.render(i, !0)), se(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
177
177
  if (t._dur < t.duration())
178
178
  for (i = t; i._dp; )
179
179
  i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
180
- t._zTime = -B;
180
+ t._zTime = -H;
181
181
  }
182
- }, Pt = function(t, e, i, r) {
183
- return e.parent && Yt(e), e._start = G((At(i) ? i : !i && Ye(e) && (!t._last || t._last._start >= t._time) ? t._last ? t._last._start : t._time : i || t !== $ ? wt(t, i, e) : t._time) + e._delay), e._end = G(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), xr(t, e, "_first", "_last", t._sort ? "_start" : 0), Ye(e) || (t._recent = e), r || vr(t, e), t._ts < 0 && je(t, t._tTime), t;
184
- }, Tr = function(t, e) {
185
- return (xt.ScrollTrigger || vi("scrollTrigger", e)) && xt.ScrollTrigger.create(e, t);
186
- }, wr = function(t, e, i, r, n) {
187
- if (Ci(t, e, n), !t._initted)
182
+ }, At = function(t, e, i, r) {
183
+ return e.parent && Zt(e), e._start = j((Ht(i) ? i : !i && je(e) && (!t._last || t._last._start >= t._time) ? t._last ? t._last._start : t._time : i || t !== Z ? Ct(t, i, e) : t._time) + e._delay), e._end = j(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), qr(t, e, "_first", "_last", t._sort ? "_start" : 0), je(e) || (t._recent = e), r || Vr(t, e), t._ts < 0 && ii(t, t._tTime), t;
184
+ }, Ur = function(t, e) {
185
+ return (Tt.ScrollTrigger || Fi("scrollTrigger", e)) && Tt.ScrollTrigger.create(e, t);
186
+ }, Yr = function(t, e, i, r, n) {
187
+ if (qi(t, e, n), !t._initted)
188
188
  return 1;
189
- if (!i && t._pt && !rt && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && dr !== pt.frame)
190
- return Wt.push(t), t._lazy = [n, r], 1;
191
- }, Pn = function l(t) {
189
+ if (!i && t._pt && !st && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && Br !== yt.frame)
190
+ return Gt.push(t), t._lazy = [n, r], 1;
191
+ }, ls = function l(t) {
192
192
  var e = t.parent;
193
193
  return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 || l(e));
194
- }, Ye = function(t) {
194
+ }, je = function(t) {
195
195
  var e = t.data;
196
196
  return e === "isFromStart" || e === "isStart";
197
- }, Mn = function(t, e, i, r) {
198
- var n = t.ratio, s = e < 0 || !e && (!t._start && Pn(t) && !(!t._initted && Ye(t)) || (t._ts < 0 || t._dp._ts < 0) && !Ye(t)) ? 0 : 1, o = t._rDelay, a = 0, f, u, _;
199
- if (o && t._repeat && (a = De(0, t._tDur, e), u = he(a, o), t._yoyo && u & 1 && (s = 1 - s), u !== he(t._tTime, o) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || rt || r || t._zTime === B || !e && t._zTime) {
200
- if (!t._initted && wr(t, e, r, i, a))
197
+ }, fs = function(t, e, i, r) {
198
+ var n = t.ratio, s = e < 0 || !e && (!t._start && ls(t) && !(!t._initted && je(t)) || (t._ts < 0 || t._dp._ts < 0) && !je(t)) ? 0 : 1, o = t._rDelay, a = 0, c, f, d;
199
+ if (o && t._repeat && (a = Be(0, t._tDur, e), f = ve(a, o), t._yoyo && f & 1 && (s = 1 - s), f !== ve(t._tTime, o) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || st || r || t._zTime === H || !e && t._zTime) {
200
+ if (!t._initted && Yr(t, e, r, i, a))
201
201
  return;
202
- for (_ = t._zTime, t._zTime = e || (i ? B : 0), i || (i = e && !_), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = a, f = t._pt; f; )
203
- f.r(s, f.d), f = f._next;
204
- e < 0 && ai(t, e, i, !0), t._onUpdate && !i && gt(t, "onUpdate"), a && t._repeat && !i && t.parent && gt(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && Yt(t, 1), !i && !rt && (gt(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
202
+ for (d = t._zTime, t._zTime = e || (i ? H : 0), i || (i = e && !d), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = a, c = t._pt; c; )
203
+ c.r(s, c.d), c = c._next;
204
+ e < 0 && Ti(t, e, i, !0), t._onUpdate && !i && xt(t, "onUpdate"), a && t._repeat && !i && t.parent && xt(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && Zt(t, 1), !i && !st && (xt(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
205
205
  } else t._zTime || (t._zTime = e);
206
- }, On = function(t, e, i) {
206
+ }, cs = function(t, e, i) {
207
207
  var r;
208
208
  if (i > e)
209
209
  for (r = t._first; r && r._start <= i; ) {
@@ -217,98 +217,98 @@ var yt = {
217
217
  return r;
218
218
  r = r._prev;
219
219
  }
220
- }, ce = function(t, e, i, r) {
221
- var n = t._repeat, s = G(e) || 0, o = t._tTime / t._tDur;
222
- return o && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : G(s * (n + 1) + t._rDelay * n) : s, o > 0 && !r && je(t, t._tTime = t._tDur * o), t.parent && $e(t), i || Jt(t.parent, t), t;
223
- }, Hi = function(t) {
224
- return t instanceof lt ? Jt(t) : ce(t, t._dur);
225
- }, Rn = {
220
+ }, ye = function(t, e, i, r) {
221
+ var n = t._repeat, s = j(e) || 0, o = t._tTime / t._tDur;
222
+ return o && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : j(s * (n + 1) + t._rDelay * n) : s, o > 0 && !r && ii(t, t._tTime = t._tDur * o), t.parent && ei(t), i || se(t.parent, t), t;
223
+ }, pr = function(t) {
224
+ return t instanceof ut ? se(t) : ye(t, t._dur);
225
+ }, us = {
226
226
  _start: 0,
227
- endTime: Se,
228
- totalDuration: Se
229
- }, wt = function l(t, e, i) {
230
- var r = t.labels, n = t._recent || Rn, s = t.duration() >= bt ? n.endTime(!1) : t._dur, o, a, f;
231
- return it(e) && (isNaN(e) || e in r) ? (a = e.charAt(0), f = e.substr(-1) === "%", o = e.indexOf("="), a === "<" || a === ">" ? (o >= 0 && (e = e.replace(/=/, "")), (a === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (f ? (o < 0 ? n : i).totalDuration() / 100 : 1)) : o < 0 ? (e in r || (r[e] = s), r[e]) : (a = parseFloat(e.charAt(o - 1) + e.substr(o + 1)), f && i && (a = a / 100 * (st(i) ? i[0] : i).totalDuration()), o > 1 ? l(t, e.substr(0, o - 1), i) + a : s + a)) : e == null ? s : +e;
232
- }, ve = function(t, e, i) {
233
- var r = At(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], o, a;
227
+ endTime: Ee,
228
+ totalDuration: Ee
229
+ }, Ct = function l(t, e, i) {
230
+ var r = t.labels, n = t._recent || us, s = t.duration() >= Mt ? n.endTime(!1) : t._dur, o, a, c;
231
+ return nt(e) && (isNaN(e) || e in r) ? (a = e.charAt(0), c = e.substr(-1) === "%", o = e.indexOf("="), a === "<" || a === ">" ? (o >= 0 && (e = e.replace(/=/, "")), (a === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (c ? (o < 0 ? n : i).totalDuration() / 100 : 1)) : o < 0 ? (e in r || (r[e] = s), r[e]) : (a = parseFloat(e.charAt(o - 1) + e.substr(o + 1)), c && i && (a = a / 100 * (lt(i) ? i[0] : i).totalDuration()), o > 1 ? l(t, e.substr(0, o - 1), i) + a : s + a)) : e == null ? s : +e;
232
+ }, Me = function(t, e, i) {
233
+ var r = Ht(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], o, a;
234
234
  if (r && (s.duration = e[1]), s.parent = i, t) {
235
235
  for (o = s, a = i; a && !("immediateRender" in o); )
236
- o = a.vars.defaults || {}, a = ft(a.vars.inherit) && a.parent;
237
- s.immediateRender = ft(o.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
236
+ o = a.vars.defaults || {}, a = ht(a.vars.inherit) && a.parent;
237
+ s.immediateRender = ht(o.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
238
238
  }
239
- return new et(e[0], s, e[n + 1]);
240
- }, Ht = function(t, e) {
239
+ return new rt(e[0], s, e[n + 1]);
240
+ }, Jt = function(t, e) {
241
241
  return t || t === 0 ? e(t) : e;
242
- }, De = function(t, e, i) {
242
+ }, Be = function(t, e, i) {
243
243
  return i < t ? t : i > e ? e : i;
244
- }, nt = function(t, e) {
245
- return !it(t) || !(e = xn.exec(t)) ? "" : e[1];
246
- }, Dn = function(t, e, i) {
247
- return Ht(i, function(r) {
248
- return De(t, e, r);
244
+ }, at = function(t, e) {
245
+ return !nt(t) || !(e = ts.exec(t)) ? "" : e[1];
246
+ }, hs = function(t, e, i) {
247
+ return Jt(i, function(r) {
248
+ return Be(t, e, r);
249
249
  });
250
- }, li = [].slice, br = function(t, e) {
251
- return t && Ot(t) && "length" in t && (!e && !t.length || t.length - 1 in t && Ot(t[0])) && !t.nodeType && t !== Ct;
252
- }, En = function(t, e, i) {
250
+ }, Si = [].slice, Xr = function(t, e) {
251
+ return t && Nt(t) && "length" in t && (!e && !t.length || t.length - 1 in t && Nt(t[0])) && !t.nodeType && t !== Lt;
252
+ }, ds = function(t, e, i) {
253
253
  return i === void 0 && (i = []), t.forEach(function(r) {
254
254
  var n;
255
- return it(r) && !e || br(r, 1) ? (n = i).push.apply(n, St(r)) : i.push(r);
255
+ return nt(r) && !e || Xr(r, 1) ? (n = i).push.apply(n, Pt(r)) : i.push(r);
256
256
  }) || i;
257
- }, St = function(t, e, i) {
258
- return X && !e && X.selector ? X.selector(t) : it(t) && !i && (si || !_e()) ? li.call((e || xi).querySelectorAll(t), 0) : st(t) ? En(t, i) : br(t) ? li.call(t, 0) : t ? [t] : [];
259
- }, fi = function(t) {
260
- return t = St(t)[0] || be("Invalid scope") || {}, function(e) {
257
+ }, Pt = function(t, e, i) {
258
+ return X && !e && X.selector ? X.selector(t) : nt(t) && !i && (bi || !xe()) ? Si.call((e || Ni).querySelectorAll(t), 0) : lt(t) ? ds(t, i) : Xr(t) ? Si.call(t, 0) : t ? [t] : [];
259
+ }, ki = function(t) {
260
+ return t = Pt(t)[0] || Re("Invalid scope") || {}, function(e) {
261
261
  var i = t.current || t.nativeElement || t;
262
- return St(e, i.querySelectorAll ? i : i === t ? be("Invalid scope") || xi.createElement("div") : t);
262
+ return Pt(e, i.querySelectorAll ? i : i === t ? Re("Invalid scope") || Ni.createElement("div") : t);
263
263
  };
264
- }, Sr = function(t) {
264
+ }, Gr = function(t) {
265
265
  return t.sort(function() {
266
266
  return 0.5 - Math.random();
267
267
  });
268
- }, kr = function(t) {
269
- if (K(t))
268
+ }, jr = function(t) {
269
+ if (J(t))
270
270
  return t;
271
- var e = Ot(t) ? t : {
271
+ var e = Nt(t) ? t : {
272
272
  each: t
273
- }, i = te(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, o = r > 0 && r < 1, a = isNaN(r) || o, f = e.axis, u = r, _ = r;
274
- return it(r) ? u = _ = {
273
+ }, i = oe(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, o = r > 0 && r < 1, a = isNaN(r) || o, c = e.axis, f = r, d = r;
274
+ return nt(r) ? f = d = {
275
275
  center: 0.5,
276
276
  edges: 0.5,
277
277
  end: 1
278
- }[r] || 0 : !o && a && (u = r[0], _ = r[1]), function(d, g, m) {
279
- var h = (m || e).length, y = s[h], x, v, w, b, T, M, S, C, k;
280
- if (!y) {
281
- if (k = e.grid === "auto" ? 0 : (e.grid || [1, bt])[1], !k) {
282
- for (S = -bt; S < (S = m[k++].getBoundingClientRect().left) && k < h; )
278
+ }[r] || 0 : !o && a && (f = r[0], d = r[1]), function(p, _, m) {
279
+ var h = (m || e).length, v = s[h], x, y, T, S, w, D, k, P, M;
280
+ if (!v) {
281
+ if (M = e.grid === "auto" ? 0 : (e.grid || [1, Mt])[1], !M) {
282
+ for (k = -Mt; k < (k = m[M++].getBoundingClientRect().left) && M < h; )
283
283
  ;
284
- k < h && k--;
284
+ M < h && M--;
285
285
  }
286
- for (y = s[h] = [], x = a ? Math.min(k, h) * u - 0.5 : r % k, v = k === bt ? 0 : a ? h * _ / k - 0.5 : r / k | 0, S = 0, C = bt, M = 0; M < h; M++)
287
- w = M % k - x, b = v - (M / k | 0), y[M] = T = f ? Math.abs(f === "y" ? b : w) : ar(w * w + b * b), T > S && (S = T), T < C && (C = T);
288
- r === "random" && Sr(y), y.max = S - C, y.min = C, y.v = h = (parseFloat(e.amount) || parseFloat(e.each) * (k > h ? h - 1 : f ? f === "y" ? h / k : k : Math.max(k, h / k)) || 0) * (r === "edges" ? -1 : 1), y.b = h < 0 ? n - h : n, y.u = nt(e.amount || e.each) || 0, i = i && h < 0 ? Hn(i) : i;
286
+ for (v = s[h] = [], x = a ? Math.min(M, h) * f - 0.5 : r % M, y = M === Mt ? 0 : a ? h * d / M - 0.5 : r / M | 0, k = 0, P = Mt, D = 0; D < h; D++)
287
+ T = D % M - x, S = y - (D / M | 0), v[D] = w = c ? Math.abs(c === "y" ? S : T) : Er(T * T + S * S), w > k && (k = w), w < P && (P = w);
288
+ r === "random" && Gr(v), v.max = k - P, v.min = P, v.v = h = (parseFloat(e.amount) || parseFloat(e.each) * (M > h ? h - 1 : c ? c === "y" ? h / M : M : Math.max(M, h / M)) || 0) * (r === "edges" ? -1 : 1), v.b = h < 0 ? n - h : n, v.u = at(e.amount || e.each) || 0, i = i && h < 0 ? Cs(i) : i;
289
289
  }
290
- return h = (y[d] - y.min) / y.max || 0, G(y.b + (i ? i(h) : h) * y.v) + y.u;
290
+ return h = (v[p] - v.min) / v.max || 0, j(v.b + (i ? i(h) : h) * v.v) + v.u;
291
291
  };
292
- }, ui = function(t) {
292
+ }, Ci = function(t) {
293
293
  var e = Math.pow(10, ((t + "").split(".")[1] || "").length);
294
294
  return function(i) {
295
- var r = G(Math.round(parseFloat(i) / t) * t * e);
296
- return (r - r % 1) / e + (At(i) ? 0 : nt(i));
295
+ var r = j(Math.round(parseFloat(i) / t) * t * e);
296
+ return (r - r % 1) / e + (Ht(i) ? 0 : at(i));
297
297
  };
298
- }, Cr = function(t, e) {
299
- var i = st(t), r, n;
300
- return !i && Ot(t) && (r = i = t.radius || bt, t.values ? (t = St(t.values), (n = !At(t[0])) && (r *= r)) : t = ui(t.increment)), Ht(e, i ? K(t) ? function(s) {
298
+ }, Zr = function(t, e) {
299
+ var i = lt(t), r, n;
300
+ return !i && Nt(t) && (r = i = t.radius || Mt, t.values ? (t = Pt(t.values), (n = !Ht(t[0])) && (r *= r)) : t = Ci(t.increment)), Jt(e, i ? J(t) ? function(s) {
301
301
  return n = t(s), Math.abs(n - s) <= r ? n : s;
302
302
  } : function(s) {
303
- for (var o = parseFloat(n ? s.x : s), a = parseFloat(n ? s.y : 0), f = bt, u = 0, _ = t.length, d, g; _--; )
304
- n ? (d = t[_].x - o, g = t[_].y - a, d = d * d + g * g) : d = Math.abs(t[_] - o), d < f && (f = d, u = _);
305
- return u = !r || f <= r ? t[u] : s, n || u === s || At(s) ? u : u + nt(s);
306
- } : ui(t));
307
- }, Pr = function(t, e, i, r) {
308
- return Ht(st(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
309
- return st(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
303
+ for (var o = parseFloat(n ? s.x : s), a = parseFloat(n ? s.y : 0), c = Mt, f = 0, d = t.length, p, _; d--; )
304
+ n ? (p = t[d].x - o, _ = t[d].y - a, p = p * p + _ * _) : p = Math.abs(t[d] - o), p < c && (c = p, f = d);
305
+ return f = !r || c <= r ? t[f] : s, n || f === s || Ht(s) ? f : f + at(s);
306
+ } : Ci(t));
307
+ }, Kr = function(t, e, i, r) {
308
+ return Jt(lt(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
309
+ return lt(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
310
310
  });
311
- }, An = function() {
311
+ }, ps = function() {
312
312
  for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
313
313
  e[i] = arguments[i];
314
314
  return function(r) {
@@ -316,233 +316,233 @@ var yt = {
316
316
  return s(n);
317
317
  }, r);
318
318
  };
319
- }, Ln = function(t, e) {
319
+ }, _s = function(t, e) {
320
320
  return function(i) {
321
- return t(parseFloat(i)) + (e || nt(i));
321
+ return t(parseFloat(i)) + (e || at(i));
322
322
  };
323
- }, zn = function(t, e, i) {
324
- return Or(t, e, 0, 1, i);
325
- }, Mr = function(t, e, i) {
326
- return Ht(i, function(r) {
323
+ }, gs = function(t, e, i) {
324
+ return Jr(t, e, 0, 1, i);
325
+ }, Qr = function(t, e, i) {
326
+ return Jt(i, function(r) {
327
327
  return t[~~e(r)];
328
328
  });
329
- }, Fn = function l(t, e, i) {
329
+ }, ms = function l(t, e, i) {
330
330
  var r = e - t;
331
- return st(t) ? Mr(t, l(0, t.length), e) : Ht(i, function(n) {
331
+ return lt(t) ? Qr(t, l(0, t.length), e) : Jt(i, function(n) {
332
332
  return (r + (n - t) % r) % r + t;
333
333
  });
334
- }, Nn = function l(t, e, i) {
334
+ }, vs = function l(t, e, i) {
335
335
  var r = e - t, n = r * 2;
336
- return st(t) ? Mr(t, l(0, t.length - 1), e) : Ht(i, function(s) {
336
+ return lt(t) ? Qr(t, l(0, t.length - 1), e) : Jt(i, function(s) {
337
337
  return s = (n + (s - t) % n) % n || 0, t + (s > r ? n - s : s);
338
338
  });
339
- }, ke = function(t) {
340
- return t.replace(gn, function(e) {
341
- var i = e.indexOf("[") + 1, r = e.substring(i || 7, i ? e.indexOf("]") : e.length - 1).split(mn);
342
- return Pr(i ? r : +r[0], i ? 0 : +r[1], +r[2] || 1e-5);
339
+ }, De = function(t) {
340
+ return t.replace(Kn, function(e) {
341
+ var i = e.indexOf("[") + 1, r = e.substring(i || 7, i ? e.indexOf("]") : e.length - 1).split(Qn);
342
+ return Kr(i ? r : +r[0], i ? 0 : +r[1], +r[2] || 1e-5);
343
343
  });
344
- }, Or = function(t, e, i, r, n) {
344
+ }, Jr = function(t, e, i, r, n) {
345
345
  var s = e - t, o = r - i;
346
- return Ht(n, function(a) {
346
+ return Jt(n, function(a) {
347
347
  return i + ((a - t) / s * o || 0);
348
348
  });
349
- }, In = function l(t, e, i, r) {
350
- var n = isNaN(t + e) ? 0 : function(g) {
351
- return (1 - g) * t + g * e;
349
+ }, ys = function l(t, e, i, r) {
350
+ var n = isNaN(t + e) ? 0 : function(_) {
351
+ return (1 - _) * t + _ * e;
352
352
  };
353
353
  if (!n) {
354
- var s = it(t), o = {}, a, f, u, _, d;
354
+ var s = nt(t), o = {}, a, c, f, d, p;
355
355
  if (i === !0 && (r = 1) && (i = null), s)
356
356
  t = {
357
357
  p: t
358
358
  }, e = {
359
359
  p: e
360
360
  };
361
- else if (st(t) && !st(e)) {
362
- for (u = [], _ = t.length, d = _ - 2, f = 1; f < _; f++)
363
- u.push(l(t[f - 1], t[f]));
364
- _--, n = function(m) {
365
- m *= _;
366
- var h = Math.min(d, ~~m);
367
- return u[h](m - h);
361
+ else if (lt(t) && !lt(e)) {
362
+ for (f = [], d = t.length, p = d - 2, c = 1; c < d; c++)
363
+ f.push(l(t[c - 1], t[c]));
364
+ d--, n = function(m) {
365
+ m *= d;
366
+ var h = Math.min(p, ~~m);
367
+ return f[h](m - h);
368
368
  }, i = e;
369
- } else r || (t = ue(st(t) ? [] : {}, t));
370
- if (!u) {
369
+ } else r || (t = me(lt(t) ? [] : {}, t));
370
+ if (!f) {
371
371
  for (a in e)
372
- ki.call(o, t, a, "get", e[a]);
372
+ Hi.call(o, t, a, "get", e[a]);
373
373
  n = function(m) {
374
- return Oi(m, o) || (s ? t.p : t);
374
+ return Yi(m, o) || (s ? t.p : t);
375
375
  };
376
376
  }
377
377
  }
378
- return Ht(i, n);
379
- }, Xi = function(t, e, i) {
380
- var r = t.labels, n = bt, s, o, a;
378
+ return Jt(i, n);
379
+ }, _r = function(t, e, i) {
380
+ var r = t.labels, n = Mt, s, o, a;
381
381
  for (s in r)
382
382
  o = r[s] - e, o < 0 == !!i && o && n > (o = Math.abs(o)) && (a = s, n = o);
383
383
  return a;
384
- }, gt = function(t, e, i) {
385
- var r = t.vars, n = r[e], s = X, o = t._ctx, a, f, u;
384
+ }, xt = function(t, e, i) {
385
+ var r = t.vars, n = r[e], s = X, o = t._ctx, a, c, f;
386
386
  if (n)
387
- return a = r[e + "Params"], f = r.callbackScope || t, i && Wt.length && Be(), o && (X = o), u = a ? n.apply(f, a) : n.call(f), X = s, u;
388
- }, me = function(t) {
389
- return Yt(t), t.scrollTrigger && t.scrollTrigger.kill(!!rt), t.progress() < 1 && gt(t, "onInterrupt"), t;
390
- }, oe, Rr = [], Dr = function(t) {
387
+ return a = r[e + "Params"], c = r.callbackScope || t, i && Gt.length && Ye(), o && (X = o), f = a ? n.apply(c, a) : n.call(c), X = s, f;
388
+ }, Se = function(t) {
389
+ return Zt(t), t.scrollTrigger && t.scrollTrigger.kill(!!st), t.progress() < 1 && xt(t, "onInterrupt"), t;
390
+ }, de, tn = [], en = function(t) {
391
391
  if (t)
392
- if (t = !t.name && t.default || t, yi() || t.headless) {
393
- var e = t.name, i = K(t), r = e && !i && t.init ? function() {
392
+ if (t = !t.name && t.default || t, zi() || t.headless) {
393
+ var e = t.name, i = J(t), r = e && !i && t.init ? function() {
394
394
  this._props = [];
395
395
  } : t, n = {
396
- init: Se,
397
- render: Oi,
398
- add: ki,
399
- kill: es,
400
- modifier: ts,
396
+ init: Ee,
397
+ render: Yi,
398
+ add: Hi,
399
+ kill: Ns,
400
+ modifier: zs,
401
401
  rawVars: 0
402
402
  }, s = {
403
403
  targetTest: 0,
404
404
  get: 0,
405
- getSetter: Mi,
405
+ getSetter: Ui,
406
406
  aliases: {},
407
407
  register: 0
408
408
  };
409
- if (_e(), t !== r) {
410
- if (dt[e])
409
+ if (xe(), t !== r) {
410
+ if (vt[e])
411
411
  return;
412
- vt(r, vt(We(t, n), s)), ue(r.prototype, ue(n, We(t, s))), dt[r.prop = e] = r, t.targetTest && (Le.push(r), Ti[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
412
+ St(r, St(Xe(t, n), s)), me(r.prototype, me(n, Xe(t, s))), vt[r.prop = e] = r, t.targetTest && (We.push(r), Bi[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
413
413
  }
414
- _r(e, r), t.register && t.register(_t, r, ht);
414
+ Fr(e, r), t.register && t.register(gt, r, pt);
415
415
  } else
416
- Rr.push(t);
417
- }, W = 255, ye = {
418
- aqua: [0, W, W],
419
- lime: [0, W, 0],
416
+ tn.push(t);
417
+ }, U = 255, ke = {
418
+ aqua: [0, U, U],
419
+ lime: [0, U, 0],
420
420
  silver: [192, 192, 192],
421
421
  black: [0, 0, 0],
422
422
  maroon: [128, 0, 0],
423
423
  teal: [0, 128, 128],
424
- blue: [0, 0, W],
424
+ blue: [0, 0, U],
425
425
  navy: [0, 0, 128],
426
- white: [W, W, W],
426
+ white: [U, U, U],
427
427
  olive: [128, 128, 0],
428
- yellow: [W, W, 0],
429
- orange: [W, 165, 0],
428
+ yellow: [U, U, 0],
429
+ orange: [U, 165, 0],
430
430
  gray: [128, 128, 128],
431
431
  purple: [128, 0, 128],
432
432
  green: [0, 128, 0],
433
- red: [W, 0, 0],
434
- pink: [W, 192, 203],
435
- cyan: [0, W, W],
436
- transparent: [W, W, W, 0]
437
- }, Qe = function(t, e, i) {
438
- return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) * W + 0.5 | 0;
439
- }, Er = function(t, e, i) {
440
- var r = t ? At(t) ? [t >> 16, t >> 8 & W, t & W] : 0 : ye.black, n, s, o, a, f, u, _, d, g, m;
433
+ red: [U, 0, 0],
434
+ pink: [U, 192, 203],
435
+ cyan: [0, U, U],
436
+ transparent: [U, U, U, 0]
437
+ }, di = function(t, e, i) {
438
+ return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) * U + 0.5 | 0;
439
+ }, rn = function(t, e, i) {
440
+ var r = t ? Ht(t) ? [t >> 16, t >> 8 & U, t & U] : 0 : ke.black, n, s, o, a, c, f, d, p, _, m;
441
441
  if (!r) {
442
- if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), ye[t])
443
- r = ye[t];
442
+ if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), ke[t])
443
+ r = ke[t];
444
444
  else if (t.charAt(0) === "#") {
445
445
  if (t.length < 6 && (n = t.charAt(1), s = t.charAt(2), o = t.charAt(3), t = "#" + n + n + s + s + o + o + (t.length === 5 ? t.charAt(4) + t.charAt(4) : "")), t.length === 9)
446
- return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & W, r & W, parseInt(t.substr(7), 16) / 255];
447
- t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & W, t & W];
446
+ return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & U, r & U, parseInt(t.substr(7), 16) / 255];
447
+ t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & U, t & U];
448
448
  } else if (t.substr(0, 3) === "hsl") {
449
- if (r = m = t.match(Vi), !e)
450
- a = +r[0] % 360 / 360, f = +r[1] / 100, u = +r[2] / 100, s = u <= 0.5 ? u * (f + 1) : u + f - u * f, n = u * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = Qe(a + 1 / 3, n, s), r[1] = Qe(a, n, s), r[2] = Qe(a - 1 / 3, n, s);
449
+ if (r = m = t.match(cr), !e)
450
+ a = +r[0] % 360 / 360, c = +r[1] / 100, f = +r[2] / 100, s = f <= 0.5 ? f * (c + 1) : f + c - f * c, n = f * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = di(a + 1 / 3, n, s), r[1] = di(a, n, s), r[2] = di(a - 1 / 3, n, s);
451
451
  else if (~t.indexOf("="))
452
- return r = t.match(fr), i && r.length < 4 && (r[3] = 1), r;
452
+ return r = t.match(Lr), i && r.length < 4 && (r[3] = 1), r;
453
453
  } else
454
- r = t.match(Vi) || ye.transparent;
454
+ r = t.match(cr) || ke.transparent;
455
455
  r = r.map(Number);
456
456
  }
457
- return e && !m && (n = r[0] / W, s = r[1] / W, o = r[2] / W, _ = Math.max(n, s, o), d = Math.min(n, s, o), u = (_ + d) / 2, _ === d ? a = f = 0 : (g = _ - d, f = u > 0.5 ? g / (2 - _ - d) : g / (_ + d), a = _ === n ? (s - o) / g + (s < o ? 6 : 0) : _ === s ? (o - n) / g + 2 : (n - s) / g + 4, a *= 60), r[0] = ~~(a + 0.5), r[1] = ~~(f * 100 + 0.5), r[2] = ~~(u * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
458
- }, Ar = function(t) {
457
+ return e && !m && (n = r[0] / U, s = r[1] / U, o = r[2] / U, d = Math.max(n, s, o), p = Math.min(n, s, o), f = (d + p) / 2, d === p ? a = c = 0 : (_ = d - p, c = f > 0.5 ? _ / (2 - d - p) : _ / (d + p), a = d === n ? (s - o) / _ + (s < o ? 6 : 0) : d === s ? (o - n) / _ + 2 : (n - s) / _ + 4, a *= 60), r[0] = ~~(a + 0.5), r[1] = ~~(c * 100 + 0.5), r[2] = ~~(f * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
458
+ }, nn = function(t) {
459
459
  var e = [], i = [], r = -1;
460
- return t.split(Vt).forEach(function(n) {
461
- var s = n.match(se) || [];
460
+ return t.split(jt).forEach(function(n) {
461
+ var s = n.match(he) || [];
462
462
  e.push.apply(e, s), i.push(r += s.length + 1);
463
463
  }), e.c = i, e;
464
- }, Gi = function(t, e, i) {
465
- var r = "", n = (t + r).match(Vt), s = e ? "hsla(" : "rgba(", o = 0, a, f, u, _;
464
+ }, gr = function(t, e, i) {
465
+ var r = "", n = (t + r).match(jt), s = e ? "hsla(" : "rgba(", o = 0, a, c, f, d;
466
466
  if (!n)
467
467
  return t;
468
- if (n = n.map(function(d) {
469
- return (d = Er(d, e, 1)) && s + (e ? d[0] + "," + d[1] + "%," + d[2] + "%," + d[3] : d.join(",")) + ")";
470
- }), i && (u = Ar(t), a = i.c, a.join(r) !== u.c.join(r)))
471
- for (f = t.replace(Vt, "1").split(se), _ = f.length - 1; o < _; o++)
472
- r += f[o] + (~a.indexOf(o) ? n.shift() || s + "0,0,0,0)" : (u.length ? u : n.length ? n : i).shift());
473
- if (!f)
474
- for (f = t.split(Vt), _ = f.length - 1; o < _; o++)
475
- r += f[o] + n[o];
476
- return r + f[_];
477
- }, Vt = function() {
468
+ if (n = n.map(function(p) {
469
+ return (p = rn(p, e, 1)) && s + (e ? p[0] + "," + p[1] + "%," + p[2] + "%," + p[3] : p.join(",")) + ")";
470
+ }), i && (f = nn(t), a = i.c, a.join(r) !== f.c.join(r)))
471
+ for (c = t.replace(jt, "1").split(he), d = c.length - 1; o < d; o++)
472
+ r += c[o] + (~a.indexOf(o) ? n.shift() || s + "0,0,0,0)" : (f.length ? f : n.length ? n : i).shift());
473
+ if (!c)
474
+ for (c = t.split(jt), d = c.length - 1; o < d; o++)
475
+ r += c[o] + n[o];
476
+ return r + c[d];
477
+ }, jt = function() {
478
478
  var l = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
479
- for (t in ye)
479
+ for (t in ke)
480
480
  l += "|" + t + "\\b";
481
481
  return new RegExp(l + ")", "gi");
482
- }(), Bn = /hsl[a]?\(/, Lr = function(t) {
482
+ }(), xs = /hsl[a]?\(/, sn = function(t) {
483
483
  var e = t.join(" "), i;
484
- if (Vt.lastIndex = 0, Vt.test(e))
485
- return i = Bn.test(e), t[1] = Gi(t[1], i), t[0] = Gi(t[0], i, Ar(t[1])), !0;
486
- }, Ce, pt = function() {
487
- var l = Date.now, t = 500, e = 33, i = l(), r = i, n = 1e3 / 240, s = n, o = [], a, f, u, _, d, g, m = function h(y) {
488
- var x = l() - r, v = y === !0, w, b, T, M;
489
- if ((x > t || x < 0) && (i += x - e), r += x, T = r - i, w = T - s, (w > 0 || v) && (M = ++_.frame, d = T - _.time * 1e3, _.time = T = T / 1e3, s += w + (w >= n ? 0 : n - w), b = 1), v || (a = f(h)), b)
490
- for (g = 0; g < o.length; g++)
491
- o[g](T, d, M, y);
484
+ if (jt.lastIndex = 0, jt.test(e))
485
+ return i = xs.test(e), t[1] = gr(t[1], i), t[0] = gr(t[0], i, nn(t[1])), !0;
486
+ }, Le, yt = function() {
487
+ var l = Date.now, t = 500, e = 33, i = l(), r = i, n = 1e3 / 240, s = n, o = [], a, c, f, d, p, _, m = function h(v) {
488
+ var x = l() - r, y = v === !0, T, S, w, D;
489
+ if ((x > t || x < 0) && (i += x - e), r += x, w = r - i, T = w - s, (T > 0 || y) && (D = ++d.frame, p = w - d.time * 1e3, d.time = w = w / 1e3, s += T + (T >= n ? 0 : n - T), S = 1), y || (a = c(h)), S)
490
+ for (_ = 0; _ < o.length; _++)
491
+ o[_](w, p, D, v);
492
492
  };
493
- return _ = {
493
+ return d = {
494
494
  time: 0,
495
495
  frame: 0,
496
496
  tick: function() {
497
497
  m(!0);
498
498
  },
499
- deltaRatio: function(y) {
500
- return d / (1e3 / (y || 60));
499
+ deltaRatio: function(v) {
500
+ return p / (1e3 / (v || 60));
501
501
  },
502
502
  wake: function() {
503
- hr && (!si && yi() && (Ct = si = window, xi = Ct.document || {}, xt.gsap = _t, (Ct.gsapVersions || (Ct.gsapVersions = [])).push(_t.version), cr(Ie || Ct.GreenSockGlobals || !Ct.gsap && Ct || {}), Rr.forEach(Dr)), u = typeof requestAnimationFrame < "u" && requestAnimationFrame, a && _.sleep(), f = u || function(y) {
504
- return setTimeout(y, s - _.time * 1e3 + 1 | 0);
505
- }, Ce = 1, m(2));
503
+ zr && (!bi && zi() && (Lt = bi = window, Ni = Lt.document || {}, Tt.gsap = gt, (Lt.gsapVersions || (Lt.gsapVersions = [])).push(gt.version), Nr(Ue || Lt.GreenSockGlobals || !Lt.gsap && Lt || {}), tn.forEach(en)), f = typeof requestAnimationFrame < "u" && requestAnimationFrame, a && d.sleep(), c = f || function(v) {
504
+ return setTimeout(v, s - d.time * 1e3 + 1 | 0);
505
+ }, Le = 1, m(2));
506
506
  },
507
507
  sleep: function() {
508
- (u ? cancelAnimationFrame : clearTimeout)(a), Ce = 0, f = Se;
508
+ (f ? cancelAnimationFrame : clearTimeout)(a), Le = 0, c = Ee;
509
509
  },
510
- lagSmoothing: function(y, x) {
511
- t = y || 1 / 0, e = Math.min(x || 33, t);
510
+ lagSmoothing: function(v, x) {
511
+ t = v || 1 / 0, e = Math.min(x || 33, t);
512
512
  },
513
- fps: function(y) {
514
- n = 1e3 / (y || 240), s = _.time * 1e3 + n;
513
+ fps: function(v) {
514
+ n = 1e3 / (v || 240), s = d.time * 1e3 + n;
515
515
  },
516
- add: function(y, x, v) {
517
- var w = x ? function(b, T, M, S) {
518
- y(b, T, M, S), _.remove(w);
519
- } : y;
520
- return _.remove(y), o[v ? "unshift" : "push"](w), _e(), w;
516
+ add: function(v, x, y) {
517
+ var T = x ? function(S, w, D, k) {
518
+ v(S, w, D, k), d.remove(T);
519
+ } : v;
520
+ return d.remove(v), o[y ? "unshift" : "push"](T), xe(), T;
521
521
  },
522
- remove: function(y, x) {
523
- ~(x = o.indexOf(y)) && o.splice(x, 1) && g >= x && g--;
522
+ remove: function(v, x) {
523
+ ~(x = o.indexOf(v)) && o.splice(x, 1) && _ >= x && _--;
524
524
  },
525
525
  _listeners: o
526
- }, _;
527
- }(), _e = function() {
528
- return !Ce && pt.wake();
529
- }, F = {}, Wn = /^[\d.\-M][\d.\-,\s]/, Vn = /["']/g, Yn = function(t) {
530
- for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, o, a, f; n < s; n++)
531
- a = i[n], o = n !== s - 1 ? a.lastIndexOf(",") : a.length, f = a.substr(0, o), e[r] = isNaN(f) ? f.replace(Vn, "").trim() : +f, r = a.substr(o + 1).trim();
526
+ }, d;
527
+ }(), xe = function() {
528
+ return !Le && yt.wake();
529
+ }, N = {}, bs = /^[\d.\-M][\d.\-,\s]/, ws = /["']/g, Ts = function(t) {
530
+ for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, o, a, c; n < s; n++)
531
+ a = i[n], o = n !== s - 1 ? a.lastIndexOf(",") : a.length, c = a.substr(0, o), e[r] = isNaN(c) ? c.replace(ws, "").trim() : +c, r = a.substr(o + 1).trim();
532
532
  return e;
533
- }, Un = function(t) {
533
+ }, Ss = function(t) {
534
534
  var e = t.indexOf("(") + 1, i = t.indexOf(")"), r = t.indexOf("(", e);
535
535
  return t.substring(e, ~r && r < i ? t.indexOf(")", i + 1) : i);
536
- }, qn = function(t) {
537
- var e = (t + "").split("("), i = F[e[0]];
538
- return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [Yn(e[1])] : Un(t).split(",").map(mr)) : F._CE && Wn.test(t) ? F._CE("", t) : i;
539
- }, Hn = function(t) {
536
+ }, ks = function(t) {
537
+ var e = (t + "").split("("), i = N[e[0]];
538
+ return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [Ts(e[1])] : Ss(t).split(",").map(Wr)) : N._CE && bs.test(t) ? N._CE("", t) : i;
539
+ }, Cs = function(t) {
540
540
  return function(e) {
541
541
  return 1 - t(1 - e);
542
542
  };
543
- }, te = function(t, e) {
544
- return t && (K(t) ? t : F[t] || qn(t)) || e;
545
- }, ie = function(t, e, i, r) {
543
+ }, oe = function(t, e) {
544
+ return t && (J(t) ? t : N[t] || ks(t)) || e;
545
+ }, le = function(t, e, i, r) {
546
546
  i === void 0 && (i = function(a) {
547
547
  return 1 - e(1 - a);
548
548
  }), r === void 0 && (r = function(a) {
@@ -553,38 +553,38 @@ var yt = {
553
553
  easeOut: i,
554
554
  easeInOut: r
555
555
  }, s;
556
- return ut(t, function(o) {
557
- F[o] = xt[o] = n, F[s = o.toLowerCase()] = i;
556
+ return dt(t, function(o) {
557
+ N[o] = Tt[o] = n, N[s = o.toLowerCase()] = i;
558
558
  for (var a in n)
559
- F[s + (a === "easeIn" ? ".in" : a === "easeOut" ? ".out" : ".inOut")] = F[o + "." + a] = n[a];
559
+ N[s + (a === "easeIn" ? ".in" : a === "easeOut" ? ".out" : ".inOut")] = N[o + "." + a] = n[a];
560
560
  }), n;
561
- }, zr = function(t) {
561
+ }, on = function(t) {
562
562
  return function(e) {
563
563
  return e < 0.5 ? (1 - t(1 - e * 2)) / 2 : 0.5 + t((e - 0.5) * 2) / 2;
564
564
  };
565
- }, Je = function l(t, e, i) {
566
- var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / ni * (Math.asin(1 / r) || 0), o = function(u) {
567
- return u === 1 ? 1 : r * Math.pow(2, -10 * u) * pn((u - s) * n) + 1;
568
- }, a = t === "out" ? o : t === "in" ? function(f) {
569
- return 1 - o(1 - f);
570
- } : zr(o);
571
- return n = ni / n, a.config = function(f, u) {
572
- return l(t, f, u);
565
+ }, pi = function l(t, e, i) {
566
+ var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / xi * (Math.asin(1 / r) || 0), o = function(f) {
567
+ return f === 1 ? 1 : r * Math.pow(2, -10 * f) * Zn((f - s) * n) + 1;
568
+ }, a = t === "out" ? o : t === "in" ? function(c) {
569
+ return 1 - o(1 - c);
570
+ } : on(o);
571
+ return n = xi / n, a.config = function(c, f) {
572
+ return l(t, c, f);
573
573
  }, a;
574
- }, ti = function l(t, e) {
574
+ }, _i = function l(t, e) {
575
575
  e === void 0 && (e = 1.70158);
576
576
  var i = function(s) {
577
577
  return s ? --s * s * ((e + 1) * s + e) + 1 : 0;
578
578
  }, r = t === "out" ? i : t === "in" ? function(n) {
579
579
  return 1 - i(1 - n);
580
- } : zr(i);
580
+ } : on(i);
581
581
  return r.config = function(n) {
582
582
  return l(t, n);
583
583
  }, r;
584
584
  };
585
- ut("Linear,Quad,Cubic,Quart,Quint,Strong", function(l, t) {
585
+ dt("Linear,Quad,Cubic,Quart,Quint,Strong", function(l, t) {
586
586
  var e = t < 5 ? t + 1 : t;
587
- ie(l + ",Power" + (e - 1), t ? function(i) {
587
+ le(l + ",Power" + (e - 1), t ? function(i) {
588
588
  return Math.pow(i, e);
589
589
  } : function(i) {
590
590
  return i;
@@ -594,44 +594,44 @@ ut("Linear,Quad,Cubic,Quart,Quint,Strong", function(l, t) {
594
594
  return i < 0.5 ? Math.pow(i * 2, e) / 2 : 1 - Math.pow((1 - i) * 2, e) / 2;
595
595
  });
596
596
  });
597
- F.Linear.easeNone = F.none = F.Linear.easeIn;
598
- ie("Elastic", Je("in"), Je("out"), Je());
597
+ N.Linear.easeNone = N.none = N.Linear.easeIn;
598
+ le("Elastic", pi("in"), pi("out"), pi());
599
599
  (function(l, t) {
600
600
  var e = 1 / t, i = 2 * e, r = 2.5 * e, n = function(o) {
601
601
  return o < e ? l * o * o : o < i ? l * Math.pow(o - 1.5 / t, 2) + 0.75 : o < r ? l * (o -= 2.25 / t) * o + 0.9375 : l * Math.pow(o - 2.625 / t, 2) + 0.984375;
602
602
  };
603
- ie("Bounce", function(s) {
603
+ le("Bounce", function(s) {
604
604
  return 1 - n(1 - s);
605
605
  }, n);
606
606
  })(7.5625, 2.75);
607
- ie("Expo", function(l) {
607
+ le("Expo", function(l) {
608
608
  return Math.pow(2, 10 * (l - 1)) * l + l * l * l * l * l * l * (1 - l);
609
609
  });
610
- ie("Circ", function(l) {
611
- return -(ar(1 - l * l) - 1);
610
+ le("Circ", function(l) {
611
+ return -(Er(1 - l * l) - 1);
612
612
  });
613
- ie("Sine", function(l) {
614
- return l === 1 ? 1 : -dn(l * cn) + 1;
613
+ le("Sine", function(l) {
614
+ return l === 1 ? 1 : -jn(l * Xn) + 1;
615
615
  });
616
- ie("Back", ti("in"), ti("out"), ti());
617
- F.SteppedEase = F.steps = xt.SteppedEase = {
616
+ le("Back", _i("in"), _i("out"), _i());
617
+ N.SteppedEase = N.steps = Tt.SteppedEase = {
618
618
  config: function(t, e) {
619
619
  t === void 0 && (t = 1);
620
- var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - B;
620
+ var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - H;
621
621
  return function(o) {
622
- return ((r * De(0, s, o) | 0) + n) * i;
622
+ return ((r * Be(0, s, o) | 0) + n) * i;
623
623
  };
624
624
  }
625
625
  };
626
- we.ease = F["quad.out"];
627
- ut("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(l) {
628
- return wi += l + "," + l + "Params,";
626
+ Oe.ease = N["quad.out"];
627
+ dt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(l) {
628
+ return Ii += l + "," + l + "Params,";
629
629
  });
630
- var Fr = function(t, e) {
631
- this.id = _n++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : pr, this.set = e ? e.getSetter : Mi;
632
- }, Pe = /* @__PURE__ */ function() {
630
+ var an = function(t, e) {
631
+ this.id = Gn++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : Ir, this.set = e ? e.getSetter : Ui;
632
+ }, Ae = /* @__PURE__ */ function() {
633
633
  function l(e) {
634
- this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1, ce(this, +e.duration, 1, 1), this.data = e.data, X && (this._ctx = X, X.data.push(this)), Ce || pt.wake();
634
+ this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1, ye(this, +e.duration, 1, 1), this.data = e.data, X && (this._ctx = X, X.data.push(this)), Le || yt.wake();
635
635
  }
636
636
  var t = l.prototype;
637
637
  return t.delay = function(i) {
@@ -639,35 +639,35 @@ var Fr = function(t, e) {
639
639
  }, t.duration = function(i) {
640
640
  return arguments.length ? this.totalDuration(this._repeat > 0 ? i + (i + this._rDelay) * this._repeat : i) : this.totalDuration() && this._dur;
641
641
  }, t.totalDuration = function(i) {
642
- return arguments.length ? (this._dirty = 0, ce(this, this._repeat < 0 ? i : (i - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
642
+ return arguments.length ? (this._dirty = 0, ye(this, this._repeat < 0 ? i : (i - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
643
643
  }, t.totalTime = function(i, r) {
644
- if (_e(), !arguments.length)
644
+ if (xe(), !arguments.length)
645
645
  return this._tTime;
646
646
  var n = this._dp;
647
647
  if (n && n.smoothChildTiming && this._ts) {
648
- for (je(this, i), !n._dp || n.parent || vr(n, this); n && n.parent; )
648
+ for (ii(this, i), !n._dp || n.parent || Vr(n, this); n && n.parent; )
649
649
  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;
650
- !this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && Pt(this._dp, this, this._start - this._delay);
650
+ !this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && At(this._dp, this, this._start - this._delay);
651
651
  }
652
- return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === B || !this._initted && this._dur && i || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), gr(this, i, r)), this;
652
+ return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === H || !this._initted && this._dur && i || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), $r(this, i, r)), this;
653
653
  }, t.time = function(i, r) {
654
- return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + qi(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
654
+ return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + dr(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
655
655
  }, t.totalProgress = function(i, r) {
656
656
  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;
657
657
  }, t.progress = function(i, r) {
658
- return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + qi(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
658
+ return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + dr(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
659
659
  }, t.iteration = function(i, r) {
660
660
  var n = this.duration() + this._rDelay;
661
- return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? he(this._tTime, n) + 1 : 1;
661
+ return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? ve(this._tTime, n) + 1 : 1;
662
662
  }, t.timeScale = function(i, r) {
663
663
  if (!arguments.length)
664
- return this._rts === -B ? 0 : this._rts;
664
+ return this._rts === -H ? 0 : this._rts;
665
665
  if (this._rts === i)
666
666
  return this;
667
- var n = this.parent && this._ts ? Ve(this.parent._time, this) : this._tTime, s = this._rts < 0;
668
- this._rts = +i || 0, this._ts = this._ps || i === -B ? 0 : this._rts;
667
+ var n = this.parent && this._ts ? Ge(this.parent._time, this) : this._tTime, s = this._rts < 0;
668
+ this._rts = +i || 0, this._ts = this._ps || i === -H ? 0 : this._rts;
669
669
  var o = this.totalDuration();
670
- return (s !== this._rts < 0 || n > 0 && n < o) && this.totalTime(De(-Math.abs(this._delay), o, n), r !== !1), $e(this), kn(this);
670
+ return (s !== this._rts < 0 || n > 0 && n < o) && this.totalTime(Be(-Math.abs(this._delay), o, n), r !== !1), ei(this), os(this);
671
671
  }, t.paused = function(i) {
672
672
  if (!arguments.length)
673
673
  return this._ps;
@@ -675,11 +675,11 @@ var Fr = function(t, e) {
675
675
  if (this._ps = i, i)
676
676
  this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0;
677
677
  else {
678
- _e(), this._ts = this._rts;
679
- var r = this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, n = this.progress() === 1 && Math.abs(this._zTime) !== B, s;
678
+ xe(), this._ts = this._rts;
679
+ var r = this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, n = this.progress() === 1 && Math.abs(this._zTime) !== H, s;
680
680
  if (n)
681
- for (this._tTime -= B, s = this._first; s; ) {
682
- if (!s._dur && s._zTime < 0 && s._ts && s._start <= r + B) {
681
+ for (this._tTime -= H, s = this._first; s; ) {
682
+ if (!s._dur && s._zTime < 0 && s._ts && s._start <= r + H) {
683
683
  n = !1;
684
684
  break;
685
685
  }
@@ -690,38 +690,38 @@ var Fr = function(t, e) {
690
690
  return this;
691
691
  }, t.startTime = function(i) {
692
692
  if (arguments.length) {
693
- this._start = G(i);
693
+ this._start = j(i);
694
694
  var r = this.parent || this._dp;
695
- return r && (r._sort || !this.parent) && Pt(r, this, this._start - this._delay), this;
695
+ return r && (r._sort || !this.parent) && At(r, this, this._start - this._delay), this;
696
696
  }
697
697
  return this._start;
698
698
  }, t.endTime = function(i) {
699
- return this._start + (ft(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
699
+ return this._start + (ht(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
700
700
  }, t.rawTime = function(i) {
701
701
  var r = this.parent || this._dp;
702
- return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Ve(r.rawTime(i), this) : this._tTime : this._tTime;
702
+ return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Ge(r.rawTime(i), this) : this._tTime : this._tTime;
703
703
  }, t.revert = function(i) {
704
- i === void 0 && (i = Tn);
705
- var r = rt;
706
- return rt = i, Si(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), rt = r, this;
704
+ i === void 0 && (i = is);
705
+ var r = st;
706
+ return st = i, Wi(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), st = r, this;
707
707
  }, t.globalTime = function(i) {
708
708
  for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
709
709
  n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
710
710
  return !this.parent && this._sat ? this._sat.globalTime(i) : n;
711
711
  }, t.repeat = function(i) {
712
- return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, Hi(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
712
+ return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, pr(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
713
713
  }, t.repeatDelay = function(i) {
714
714
  if (arguments.length) {
715
715
  var r = this._time;
716
- return this._rDelay = i, Hi(this), r ? this.time(r) : this;
716
+ return this._rDelay = i, pr(this), r ? this.time(r) : this;
717
717
  }
718
718
  return this._rDelay;
719
719
  }, t.yoyo = function(i) {
720
720
  return arguments.length ? (this._yoyo = i, this) : this._yoyo;
721
721
  }, t.seek = function(i, r) {
722
- return this.totalTime(wt(this, i), ft(r));
722
+ return this.totalTime(Ct(this, i), ht(r));
723
723
  }, t.restart = function(i, r) {
724
- return this.play().totalTime(i ? -this._delay : 0, ft(r)), this._dur || (this._zTime = -B), this;
724
+ return this.play().totalTime(i ? -this._delay : 0, ht(r)), this._dur || (this._zTime = -H), this;
725
725
  }, t.play = function(i, r) {
726
726
  return i != null && this.seek(i, r), this.reversed(!1).paused(!1);
727
727
  }, t.reverse = function(i, r) {
@@ -731,29 +731,29 @@ var Fr = function(t, e) {
731
731
  }, t.resume = function() {
732
732
  return this.paused(!1);
733
733
  }, t.reversed = function(i) {
734
- return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -B : 0)), this) : this._rts < 0;
734
+ return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -H : 0)), this) : this._rts < 0;
735
735
  }, t.invalidate = function() {
736
- return this._initted = this._act = 0, this._zTime = -B, this;
736
+ return this._initted = this._act = 0, this._zTime = -H, this;
737
737
  }, t.isActive = function() {
738
738
  var i = this.parent || this._dp, r = this._start, n;
739
- return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) - B);
739
+ return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) - H);
740
740
  }, t.eventCallback = function(i, r, n) {
741
741
  var s = this.vars;
742
742
  return arguments.length > 1 ? (r ? (s[i] = r, n && (s[i + "Params"] = n), i === "onUpdate" && (this._onUpdate = r)) : delete s[i], this) : s[i];
743
743
  }, t.then = function(i) {
744
744
  var r = this, n = r._prom;
745
745
  return new Promise(function(s) {
746
- var o = K(i) ? i : yr, a = function() {
747
- var u = r.then;
748
- r.then = null, n && n(), K(o) && (o = o(r)) && (o.then || o === r) && (r.then = u), s(o), r.then = u;
746
+ var o = J(i) ? i : Hr, a = function() {
747
+ var f = r.then;
748
+ r.then = null, n && n(), J(o) && (o = o(r)) && (o.then || o === r) && (r.then = f), s(o), r.then = f;
749
749
  };
750
750
  r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ? a() : r._prom = a;
751
751
  });
752
752
  }, t.kill = function() {
753
- me(this);
753
+ Se(this);
754
754
  }, l;
755
755
  }();
756
- vt(Pe.prototype, {
756
+ St(Ae.prototype, {
757
757
  _time: 0,
758
758
  _start: 0,
759
759
  _end: 0,
@@ -768,169 +768,169 @@ vt(Pe.prototype, {
768
768
  _ts: 1,
769
769
  _dp: 0,
770
770
  ratio: 0,
771
- _zTime: -B,
771
+ _zTime: -H,
772
772
  _prom: 0,
773
773
  _ps: !1,
774
774
  _rts: 1
775
775
  });
776
- var lt = /* @__PURE__ */ function(l) {
777
- or(t, l);
776
+ var ut = /* @__PURE__ */ function(l) {
777
+ Rr(t, l);
778
778
  function t(i, r) {
779
779
  var n;
780
- return i === void 0 && (i = {}), n = l.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = ft(i.sortChildren), $ && Pt(i.parent || $, Dt(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Tr(Dt(n), i.scrollTrigger), n;
780
+ return i === void 0 && (i = {}), n = l.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = ht(i.sortChildren), Z && At(i.parent || Z, $t(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Ur($t(n), i.scrollTrigger), n;
781
781
  }
782
782
  var e = t.prototype;
783
783
  return e.to = function(r, n, s) {
784
- return ve(0, arguments, this), this;
784
+ return Me(0, arguments, this), this;
785
785
  }, e.from = function(r, n, s) {
786
- return ve(1, arguments, this), this;
786
+ return Me(1, arguments, this), this;
787
787
  }, e.fromTo = function(r, n, s, o) {
788
- return ve(2, arguments, this), this;
788
+ return Me(2, arguments, this), this;
789
789
  }, e.set = function(r, n, s) {
790
- return n.duration = 0, n.parent = this, xe(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new et(r, n, wt(this, s), 1), this;
790
+ return n.duration = 0, n.parent = this, Ce(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new rt(r, n, Ct(this, s), 1), this;
791
791
  }, e.call = function(r, n, s) {
792
- return Pt(this, et.delayedCall(0, r, n), s);
793
- }, e.staggerTo = function(r, n, s, o, a, f, u) {
794
- return s.duration = n, s.stagger = s.stagger || o, s.onComplete = f, s.onCompleteParams = u, s.parent = this, new et(r, s, wt(this, a)), this;
795
- }, e.staggerFrom = function(r, n, s, o, a, f, u) {
796
- return s.runBackwards = 1, xe(s).immediateRender = ft(s.immediateRender), this.staggerTo(r, n, s, o, a, f, u);
797
- }, e.staggerFromTo = function(r, n, s, o, a, f, u, _) {
798
- return o.startAt = s, xe(o).immediateRender = ft(o.immediateRender), this.staggerTo(r, n, o, a, f, u, _);
792
+ return At(this, rt.delayedCall(0, r, n), s);
793
+ }, e.staggerTo = function(r, n, s, o, a, c, f) {
794
+ return s.duration = n, s.stagger = s.stagger || o, s.onComplete = c, s.onCompleteParams = f, s.parent = this, new rt(r, s, Ct(this, a)), this;
795
+ }, e.staggerFrom = function(r, n, s, o, a, c, f) {
796
+ return s.runBackwards = 1, Ce(s).immediateRender = ht(s.immediateRender), this.staggerTo(r, n, s, o, a, c, f);
797
+ }, e.staggerFromTo = function(r, n, s, o, a, c, f, d) {
798
+ return o.startAt = s, Ce(o).immediateRender = ht(o.immediateRender), this.staggerTo(r, n, o, a, c, f, d);
799
799
  }, e.render = function(r, n, s) {
800
- var o = this._time, a = this._dirty ? this.totalDuration() : this._tDur, f = this._dur, u = r <= 0 ? 0 : G(r), _ = this._zTime < 0 != r < 0 && (this._initted || !f), d, g, m, h, y, x, v, w, b, T, M, S;
801
- if (this !== $ && u > a && r >= 0 && (u = a), u !== this._tTime || s || _) {
802
- if (o !== this._time && f && (u += this._time - o, r += this._time - o), d = u, b = this._start, w = this._ts, x = !w, _ && (f || (o = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
803
- if (M = this._yoyo, y = f + this._rDelay, this._repeat < -1 && r < 0)
804
- return this.totalTime(y * 100 + r, n, s);
805
- if (d = G(u % y), u === a ? (h = this._repeat, d = f) : (T = G(u / y), h = ~~T, h && h === T && (d = f, h--), d > f && (d = f)), T = he(this._tTime, y), !o && this._tTime && T !== h && this._tTime - T * y - this._dur <= 0 && (T = h), M && h & 1 && (d = f - d, S = 1), h !== T && !this._lock) {
806
- var C = M && T & 1, k = C === (M && h & 1);
807
- if (h < T && (C = !C), o = C ? 0 : u % f ? f : u, this._lock = 1, this.render(o || (S ? 0 : G(h * y)), n, !f)._lock = 0, this._tTime = u, !n && this.parent && gt(this, "onRepeat"), this.vars.repeatRefresh && !S && (this.invalidate()._lock = 1, T = h), o && o !== this._time || x !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
800
+ var o = this._time, a = this._dirty ? this.totalDuration() : this._tDur, c = this._dur, f = r <= 0 ? 0 : j(r), d = this._zTime < 0 != r < 0 && (this._initted || !c), p, _, m, h, v, x, y, T, S, w, D, k;
801
+ if (this !== Z && f > a && r >= 0 && (f = a), f !== this._tTime || s || d) {
802
+ if (o !== this._time && c && (f += this._time - o, r += this._time - o), p = f, S = this._start, T = this._ts, x = !T, d && (c || (o = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
803
+ if (D = this._yoyo, v = c + this._rDelay, this._repeat < -1 && r < 0)
804
+ return this.totalTime(v * 100 + r, n, s);
805
+ if (p = j(f % v), f === a ? (h = this._repeat, p = c) : (w = j(f / v), h = ~~w, h && h === w && (p = c, h--), p > c && (p = c)), w = ve(this._tTime, v), !o && this._tTime && w !== h && this._tTime - w * v - this._dur <= 0 && (w = h), D && h & 1 && (p = c - p, k = 1), h !== w && !this._lock) {
806
+ var P = D && w & 1, M = P === (D && h & 1);
807
+ if (h < w && (P = !P), o = P ? 0 : f % c ? c : f, this._lock = 1, this.render(o || (k ? 0 : j(h * v)), n, !c)._lock = 0, this._tTime = f, !n && this.parent && xt(this, "onRepeat"), this.vars.repeatRefresh && !k && (this.invalidate()._lock = 1, w = h), o && o !== this._time || x !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
808
808
  return this;
809
- if (f = this._dur, a = this._tDur, k && (this._lock = 2, o = C ? f : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !S && this.invalidate()), this._lock = 0, !this._ts && !x)
809
+ if (c = this._dur, a = this._tDur, M && (this._lock = 2, o = P ? c : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !k && this.invalidate()), this._lock = 0, !this._ts && !x)
810
810
  return this;
811
811
  }
812
812
  }
813
- if (this._hasPause && !this._forcing && this._lock < 2 && (v = On(this, G(o), G(d)), v && (u -= d - (d = v._start))), this._tTime = u, this._time = d, this._act = !!w, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, o = 0), !o && u && f && !n && !T && (gt(this, "onStart"), this._tTime !== u))
813
+ if (this._hasPause && !this._forcing && this._lock < 2 && (y = cs(this, j(o), j(p)), y && (f -= p - (p = y._start))), this._tTime = f, this._time = p, this._act = !!T, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, o = 0), !o && f && c && !n && !w && (xt(this, "onStart"), this._tTime !== f))
814
814
  return this;
815
- if (d >= o && r >= 0)
816
- for (g = this._first; g; ) {
817
- if (m = g._next, (g._act || d >= g._start) && g._ts && v !== g) {
818
- if (g.parent !== this)
815
+ if (p >= o && r >= 0)
816
+ for (_ = this._first; _; ) {
817
+ if (m = _._next, (_._act || p >= _._start) && _._ts && y !== _) {
818
+ if (_.parent !== this)
819
819
  return this.render(r, n, s);
820
- if (g.render(g._ts > 0 ? (d - g._start) * g._ts : (g._dirty ? g.totalDuration() : g._tDur) + (d - g._start) * g._ts, n, s), d !== this._time || !this._ts && !x) {
821
- v = 0, m && (u += this._zTime = -B);
820
+ if (_.render(_._ts > 0 ? (p - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (p - _._start) * _._ts, n, s), p !== this._time || !this._ts && !x) {
821
+ y = 0, m && (f += this._zTime = -H);
822
822
  break;
823
823
  }
824
824
  }
825
- g = m;
825
+ _ = m;
826
826
  }
827
827
  else {
828
- g = this._last;
829
- for (var E = r < 0 ? r : d; g; ) {
830
- if (m = g._prev, (g._act || E <= g._end) && g._ts && v !== g) {
831
- if (g.parent !== this)
828
+ _ = this._last;
829
+ for (var z = r < 0 ? r : p; _; ) {
830
+ if (m = _._prev, (_._act || z <= _._end) && _._ts && y !== _) {
831
+ if (_.parent !== this)
832
832
  return this.render(r, n, s);
833
- if (g.render(g._ts > 0 ? (E - g._start) * g._ts : (g._dirty ? g.totalDuration() : g._tDur) + (E - g._start) * g._ts, n, s || rt && Si(g)), d !== this._time || !this._ts && !x) {
834
- v = 0, m && (u += this._zTime = E ? -B : B);
833
+ if (_.render(_._ts > 0 ? (z - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (z - _._start) * _._ts, n, s || st && Wi(_)), p !== this._time || !this._ts && !x) {
834
+ y = 0, m && (f += this._zTime = z ? -H : H);
835
835
  break;
836
836
  }
837
837
  }
838
- g = m;
838
+ _ = m;
839
839
  }
840
840
  }
841
- if (v && !n && (this.pause(), v.render(d >= o ? 0 : -B)._zTime = d >= o ? 1 : -1, this._ts))
842
- return this._start = b, $e(this), this.render(r, n, s);
843
- this._onUpdate && !n && gt(this, "onUpdate", !0), (u === a && this._tTime >= this.totalDuration() || !u && o) && (b === this._start || Math.abs(w) !== Math.abs(this._ts)) && (this._lock || ((r || !f) && (u === a && this._ts > 0 || !u && this._ts < 0) && Yt(this, 1), !n && !(r < 0 && !o) && (u || o || !a) && (gt(this, u === a && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(u < a && this.timeScale() > 0) && this._prom())));
841
+ if (y && !n && (this.pause(), y.render(p >= o ? 0 : -H)._zTime = p >= o ? 1 : -1, this._ts))
842
+ return this._start = S, ei(this), this.render(r, n, s);
843
+ this._onUpdate && !n && xt(this, "onUpdate", !0), (f === a && this._tTime >= this.totalDuration() || !f && o) && (S === this._start || Math.abs(T) !== Math.abs(this._ts)) && (this._lock || ((r || !c) && (f === a && this._ts > 0 || !f && this._ts < 0) && Zt(this, 1), !n && !(r < 0 && !o) && (f || o || !a) && (xt(this, f === a && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(f < a && this.timeScale() > 0) && this._prom())));
844
844
  }
845
845
  return this;
846
846
  }, e.add = function(r, n) {
847
847
  var s = this;
848
- if (At(n) || (n = wt(this, n, r)), !(r instanceof Pe)) {
849
- if (st(r))
848
+ if (Ht(n) || (n = Ct(this, n, r)), !(r instanceof Ae)) {
849
+ if (lt(r))
850
850
  return r.forEach(function(o) {
851
851
  return s.add(o, n);
852
852
  }), this;
853
- if (it(r))
853
+ if (nt(r))
854
854
  return this.addLabel(r, n);
855
- if (K(r))
856
- r = et.delayedCall(0, r);
855
+ if (J(r))
856
+ r = rt.delayedCall(0, r);
857
857
  else
858
858
  return this;
859
859
  }
860
- return this !== r ? Pt(this, r, n) : this;
860
+ return this !== r ? At(this, r, n) : this;
861
861
  }, e.getChildren = function(r, n, s, o) {
862
- r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), o === void 0 && (o = -bt);
863
- for (var a = [], f = this._first; f; )
864
- f._start >= o && (f instanceof et ? n && a.push(f) : (s && a.push(f), r && a.push.apply(a, f.getChildren(!0, n, s)))), f = f._next;
862
+ r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), o === void 0 && (o = -Mt);
863
+ for (var a = [], c = this._first; c; )
864
+ c._start >= o && (c instanceof rt ? n && a.push(c) : (s && a.push(c), r && a.push.apply(a, c.getChildren(!0, n, s)))), c = c._next;
865
865
  return a;
866
866
  }, e.getById = function(r) {
867
867
  for (var n = this.getChildren(1, 1, 1), s = n.length; s--; )
868
868
  if (n[s].vars.id === r)
869
869
  return n[s];
870
870
  }, e.remove = function(r) {
871
- return it(r) ? this.removeLabel(r) : K(r) ? this.killTweensOf(r) : (r.parent === this && Ge(this, r), r === this._recent && (this._recent = this._last), Jt(this));
871
+ return nt(r) ? this.removeLabel(r) : J(r) ? this.killTweensOf(r) : (r.parent === this && ti(this, r), r === this._recent && (this._recent = this._last), se(this));
872
872
  }, e.totalTime = function(r, n) {
873
- return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = G(pt.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), l.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
873
+ return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = j(yt.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), l.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
874
874
  }, e.addLabel = function(r, n) {
875
- return this.labels[r] = wt(this, n), this;
875
+ return this.labels[r] = Ct(this, n), this;
876
876
  }, e.removeLabel = function(r) {
877
877
  return delete this.labels[r], this;
878
878
  }, e.addPause = function(r, n, s) {
879
- var o = et.delayedCall(0, n || Se, s);
880
- return o.data = "isPause", this._hasPause = 1, Pt(this, o, wt(this, r));
879
+ var o = rt.delayedCall(0, n || Ee, s);
880
+ return o.data = "isPause", this._hasPause = 1, At(this, o, Ct(this, r));
881
881
  }, e.removePause = function(r) {
882
882
  var n = this._first;
883
- for (r = wt(this, r); n; )
884
- n._start === r && n.data === "isPause" && Yt(n), n = n._next;
883
+ for (r = Ct(this, r); n; )
884
+ n._start === r && n.data === "isPause" && Zt(n), n = n._next;
885
885
  }, e.killTweensOf = function(r, n, s) {
886
886
  for (var o = this.getTweensOf(r, s), a = o.length; a--; )
887
- Nt !== o[a] && o[a].kill(r, n);
887
+ Ut !== o[a] && o[a].kill(r, n);
888
888
  return this;
889
889
  }, e.getTweensOf = function(r, n) {
890
- for (var s = [], o = St(r), a = this._first, f = At(n), u; a; )
891
- a instanceof et ? wn(a._targets, o) && (f ? (!Nt || a._initted && a._ts) && a.globalTime(0) <= n && a.globalTime(a.totalDuration()) > n : !n || a.isActive()) && s.push(a) : (u = a.getTweensOf(o, n)).length && s.push.apply(s, u), a = a._next;
890
+ for (var s = [], o = Pt(r), a = this._first, c = Ht(n), f; a; )
891
+ a instanceof rt ? rs(a._targets, o) && (c ? (!Ut || a._initted && a._ts) && a.globalTime(0) <= n && a.globalTime(a.totalDuration()) > n : !n || a.isActive()) && s.push(a) : (f = a.getTweensOf(o, n)).length && s.push.apply(s, f), a = a._next;
892
892
  return s;
893
893
  }, e.tweenTo = function(r, n) {
894
894
  n = n || {};
895
- var s = this, o = wt(s, r), a = n, f = a.startAt, u = a.onStart, _ = a.onStartParams, d = a.immediateRender, g, m = et.to(s, vt({
895
+ var s = this, o = Ct(s, r), a = n, c = a.startAt, f = a.onStart, d = a.onStartParams, p = a.immediateRender, _, m = rt.to(s, St({
896
896
  ease: n.ease || "none",
897
897
  lazy: !1,
898
898
  immediateRender: !1,
899
899
  time: o,
900
900
  overwrite: "auto",
901
- duration: n.duration || Math.abs((o - (f && "time" in f ? f.time : s._time)) / s.timeScale()) || B,
901
+ duration: n.duration || Math.abs((o - (c && "time" in c ? c.time : s._time)) / s.timeScale()) || H,
902
902
  onStart: function() {
903
- if (s.pause(), !g) {
904
- var y = n.duration || Math.abs((o - (f && "time" in f ? f.time : s._time)) / s.timeScale());
905
- m._dur !== y && ce(m, y, 0, 1).render(m._time, !0, !0), g = 1;
903
+ if (s.pause(), !_) {
904
+ var v = n.duration || Math.abs((o - (c && "time" in c ? c.time : s._time)) / s.timeScale());
905
+ m._dur !== v && ye(m, v, 0, 1).render(m._time, !0, !0), _ = 1;
906
906
  }
907
- u && u.apply(m, _ || []);
907
+ f && f.apply(m, d || []);
908
908
  }
909
909
  }, n));
910
- return d ? m.render(0) : m;
910
+ return p ? m.render(0) : m;
911
911
  }, e.tweenFromTo = function(r, n, s) {
912
- return this.tweenTo(n, vt({
912
+ return this.tweenTo(n, St({
913
913
  startAt: {
914
- time: wt(this, r)
914
+ time: Ct(this, r)
915
915
  }
916
916
  }, s));
917
917
  }, e.recent = function() {
918
918
  return this._recent;
919
919
  }, e.nextLabel = function(r) {
920
- return r === void 0 && (r = this._time), Xi(this, wt(this, r));
920
+ return r === void 0 && (r = this._time), _r(this, Ct(this, r));
921
921
  }, e.previousLabel = function(r) {
922
- return r === void 0 && (r = this._time), Xi(this, wt(this, r), 1);
922
+ return r === void 0 && (r = this._time), _r(this, Ct(this, r), 1);
923
923
  }, e.currentLabel = function(r) {
924
- return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + B);
924
+ return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + H);
925
925
  }, e.shiftChildren = function(r, n, s) {
926
926
  s === void 0 && (s = 0);
927
- var o = this._first, a = this.labels, f;
928
- for (r = G(r); o; )
927
+ var o = this._first, a = this.labels, c;
928
+ for (r = j(r); o; )
929
929
  o._start >= s && (o._start += r, o._end += r), o = o._next;
930
930
  if (n)
931
- for (f in a)
932
- a[f] >= s && (a[f] += r);
933
- return Jt(this);
931
+ for (c in a)
932
+ a[c] >= s && (a[c] += r);
933
+ return se(this);
934
934
  }, e.invalidate = function(r) {
935
935
  var n = this._first;
936
936
  for (this._lock = 0; n; )
@@ -940,140 +940,140 @@ var lt = /* @__PURE__ */ function(l) {
940
940
  r === void 0 && (r = !0);
941
941
  for (var n = this._first, s; n; )
942
942
  s = n._next, this.remove(n), n = s;
943
- return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), Jt(this);
943
+ return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), se(this);
944
944
  }, e.totalDuration = function(r) {
945
- var n = 0, s = this, o = s._last, a = bt, f, u, _;
945
+ var n = 0, s = this, o = s._last, a = Mt, c, f, d;
946
946
  if (arguments.length)
947
947
  return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
948
948
  if (s._dirty) {
949
- for (_ = s.parent; o; )
950
- f = o._prev, o._dirty && o.totalDuration(), u = o._start, u > a && s._sort && o._ts && !s._lock ? (s._lock = 1, Pt(s, o, u - o._delay, 1)._lock = 0) : a = u, u < 0 && o._ts && (n -= u, (!_ && !s._dp || _ && _.smoothChildTiming) && (s._start += G(u / s._ts), s._time -= u, s._tTime -= u), s.shiftChildren(-u, !1, -1 / 0), a = 0), o._end > n && o._ts && (n = o._end), o = f;
951
- ce(s, s === $ && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
949
+ for (d = s.parent; o; )
950
+ c = o._prev, o._dirty && o.totalDuration(), f = o._start, f > a && s._sort && o._ts && !s._lock ? (s._lock = 1, At(s, o, f - o._delay, 1)._lock = 0) : a = f, f < 0 && o._ts && (n -= f, (!d && !s._dp || d && d.smoothChildTiming) && (s._start += j(f / s._ts), s._time -= f, s._tTime -= f), s.shiftChildren(-f, !1, -1 / 0), a = 0), o._end > n && o._ts && (n = o._end), o = c;
951
+ ye(s, s === Z && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
952
952
  }
953
953
  return s._tDur;
954
954
  }, t.updateRoot = function(r) {
955
- if ($._ts && (gr($, Ve(r, $)), dr = pt.frame), pt.frame >= Yi) {
956
- Yi += yt.autoSleep || 120;
957
- var n = $._first;
958
- if ((!n || !n._ts) && yt.autoSleep && pt._listeners.length < 2) {
955
+ if (Z._ts && ($r(Z, Ge(r, Z)), Br = yt.frame), yt.frame >= ur) {
956
+ ur += wt.autoSleep || 120;
957
+ var n = Z._first;
958
+ if ((!n || !n._ts) && wt.autoSleep && yt._listeners.length < 2) {
959
959
  for (; n && !n._ts; )
960
960
  n = n._next;
961
- n || pt.sleep();
961
+ n || yt.sleep();
962
962
  }
963
963
  }
964
964
  }, t;
965
- }(Pe);
966
- vt(lt.prototype, {
965
+ }(Ae);
966
+ St(ut.prototype, {
967
967
  _lock: 0,
968
968
  _hasPause: 0,
969
969
  _forcing: 0
970
970
  });
971
- var Xn = function(t, e, i, r, n, s, o) {
972
- var a = new ht(this._pt, t, e, 0, 1, Vr, null, n), f = 0, u = 0, _, d, g, m, h, y, x, v;
973
- for (a.b = i, a.e = r, i += "", r += "", (x = ~r.indexOf("random(")) && (r = ke(r)), s && (v = [i, r], s(v, t, e), i = v[0], r = v[1]), d = i.match(Ze) || []; _ = Ze.exec(r); )
974
- m = _[0], h = r.substring(f, _.index), g ? g = (g + 1) % 5 : h.substr(-5) === "rgba(" && (g = 1), m !== d[u++] && (y = parseFloat(d[u - 1]) || 0, a._pt = {
971
+ var Ms = function(t, e, i, r, n, s, o) {
972
+ var a = new pt(this._pt, t, e, 0, 1, hn, null, n), c = 0, f = 0, d, p, _, m, h, v, x, y;
973
+ for (a.b = i, a.e = r, i += "", r += "", (x = ~r.indexOf("random(")) && (r = De(r)), s && (y = [i, r], s(y, t, e), i = y[0], r = y[1]), p = i.match(ui) || []; d = ui.exec(r); )
974
+ m = d[0], h = r.substring(c, d.index), _ ? _ = (_ + 1) % 5 : h.substr(-5) === "rgba(" && (_ = 1), m !== p[f++] && (v = parseFloat(p[f - 1]) || 0, a._pt = {
975
975
  _next: a._pt,
976
- p: h || u === 1 ? h : ",",
976
+ p: h || f === 1 ? h : ",",
977
977
  //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.
978
- s: y,
979
- c: m.charAt(1) === "=" ? ae(y, m) - y : parseFloat(m) - y,
980
- m: g && g < 4 ? Math.round : 0
981
- }, f = Ze.lastIndex);
982
- return a.c = f < r.length ? r.substring(f, r.length) : "", a.fp = o, (ur.test(r) || x) && (a.e = 0), this._pt = a, a;
983
- }, ki = function(t, e, i, r, n, s, o, a, f, u) {
984
- K(r) && (r = r(n || 0, t, s));
985
- var _ = t[e], d = i !== "get" ? i : K(_) ? f ? t[e.indexOf("set") || !K(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](f) : t[e]() : _, g = K(_) ? f ? Kn : Br : Pi, m;
986
- if (it(r) && (~r.indexOf("random(") && (r = ke(r)), r.charAt(1) === "=" && (m = ae(d, r) + (nt(d) || 0), (m || m === 0) && (r = m))), !u || d !== r || hi)
987
- return !isNaN(d * r) && r !== "" ? (m = new ht(this._pt, t, e, +d || 0, r - (d || 0), typeof _ == "boolean" ? Jn : Wr, 0, g), f && (m.fp = f), o && m.modifier(o, this, t), this._pt = m) : (!_ && !(e in t) && vi(e, r), Xn.call(this, t, e, d, r, g, a || yt.stringFilter, f));
988
- }, Gn = function(t, e, i, r, n) {
989
- if (K(t) && (t = Te(t, n, e, i, r)), !Ot(t) || t.style && t.nodeType || st(t) || lr(t))
990
- return it(t) ? Te(t, n, e, i, r) : t;
978
+ s: v,
979
+ c: m.charAt(1) === "=" ? pe(v, m) - v : parseFloat(m) - v,
980
+ m: _ && _ < 4 ? Math.round : 0
981
+ }, c = ui.lastIndex);
982
+ return a.c = c < r.length ? r.substring(c, r.length) : "", a.fp = o, (Ar.test(r) || x) && (a.e = 0), this._pt = a, a;
983
+ }, Hi = function(t, e, i, r, n, s, o, a, c, f) {
984
+ J(r) && (r = r(n || 0, t, s));
985
+ var d = t[e], p = i !== "get" ? i : J(d) ? c ? t[e.indexOf("set") || !J(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](c) : t[e]() : d, _ = J(d) ? c ? Ds : cn : Vi, m;
986
+ if (nt(r) && (~r.indexOf("random(") && (r = De(r)), r.charAt(1) === "=" && (m = pe(p, r) + (at(p) || 0), (m || m === 0) && (r = m))), !f || p !== r || Mi)
987
+ return !isNaN(p * r) && r !== "" ? (m = new pt(this._pt, t, e, +p || 0, r - (p || 0), typeof d == "boolean" ? As : un, 0, _), c && (m.fp = c), o && m.modifier(o, this, t), this._pt = m) : (!d && !(e in t) && Fi(e, r), Ms.call(this, t, e, p, r, _, a || wt.stringFilter, c));
988
+ }, Ps = function(t, e, i, r, n) {
989
+ if (J(t) && (t = Pe(t, n, e, i, r)), !Nt(t) || t.style && t.nodeType || lt(t) || Dr(t))
990
+ return nt(t) ? Pe(t, n, e, i, r) : t;
991
991
  var s = {}, o;
992
992
  for (o in t)
993
- s[o] = Te(t[o], n, e, i, r);
993
+ s[o] = Pe(t[o], n, e, i, r);
994
994
  return s;
995
- }, Nr = function(t, e, i, r, n, s) {
996
- var o, a, f, u;
997
- if (dt[t] && (o = new dt[t]()).init(n, o.rawVars ? e[t] : Gn(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = a = new ht(i._pt, n, t, 0, 1, o.render, o, 0, o.priority), i !== oe))
998
- for (f = i._ptLookup[i._targets.indexOf(n)], u = o._props.length; u--; )
999
- f[o._props[u]] = a;
995
+ }, ln = function(t, e, i, r, n, s) {
996
+ var o, a, c, f;
997
+ if (vt[t] && (o = new vt[t]()).init(n, o.rawVars ? e[t] : Ps(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = a = new pt(i._pt, n, t, 0, 1, o.render, o, 0, o.priority), i !== de))
998
+ for (c = i._ptLookup[i._targets.indexOf(n)], f = o._props.length; f--; )
999
+ c[o._props[f]] = a;
1000
1000
  return o;
1001
- }, Nt, hi, Ci = function l(t, e, i) {
1002
- var r = t.vars, n = r.ease, s = r.startAt, o = r.immediateRender, a = r.lazy, f = r.onUpdate, u = r.runBackwards, _ = r.yoyoEase, d = r.keyframes, g = r.autoRevert, m = t._dur, h = t._startAt, y = t._targets, x = t.parent, v = x && x.data === "nested" ? x.vars.targets : y, w = t._overwrite === "auto" && !gi, b = t.timeline, T = r.easeReverse || _, M, S, C, k, E, H, V, Y, U, tt, Q, q, ot;
1003
- if (b && (!d || !n) && (n = "none"), t._ease = te(n, we.ease), t._rEase = T && (te(T) || t._ease), t._from = !b && !!r.runBackwards, t._from && (t.ratio = 1), !b || d && !r.stagger) {
1004
- if (Y = y[0] ? Qt(y[0]).harness : 0, q = Y && r[Y.prop], M = We(r, Ti), h && (h._zTime < 0 && h.progress(1), e < 0 && u && o && !g ? h.render(-1, !0) : h.revert(u && m ? Ae : vn), h._lazy = 0), s) {
1005
- if (Yt(t._startAt = et.set(y, vt({
1001
+ }, Ut, Mi, qi = function l(t, e, i) {
1002
+ var r = t.vars, n = r.ease, s = r.startAt, o = r.immediateRender, a = r.lazy, c = r.onUpdate, f = r.runBackwards, d = r.yoyoEase, p = r.keyframes, _ = r.autoRevert, m = t._dur, h = t._startAt, v = t._targets, x = t.parent, y = x && x.data === "nested" ? x.vars.targets : v, T = t._overwrite === "auto" && !Li, S = t.timeline, w = r.easeReverse || d, D, k, P, M, z, G, q, V, $, it, Q, Y, ft;
1003
+ if (S && (!p || !n) && (n = "none"), t._ease = oe(n, Oe.ease), t._rEase = w && (oe(w) || t._ease), t._from = !S && !!r.runBackwards, t._from && (t.ratio = 1), !S || p && !r.stagger) {
1004
+ if (V = v[0] ? ne(v[0]).harness : 0, Y = V && r[V.prop], D = Xe(r, Bi), h && (h._zTime < 0 && h.progress(1), e < 0 && f && o && !_ ? h.render(-1, !0) : h.revert(f && m ? $e : es), h._lazy = 0), s) {
1005
+ if (Zt(t._startAt = rt.set(v, St({
1006
1006
  data: "isStart",
1007
1007
  overwrite: !1,
1008
1008
  parent: x,
1009
1009
  immediateRender: !0,
1010
- lazy: !h && ft(a),
1010
+ lazy: !h && ht(a),
1011
1011
  startAt: null,
1012
1012
  delay: 0,
1013
- onUpdate: f && function() {
1014
- return gt(t, "onUpdate");
1013
+ onUpdate: c && function() {
1014
+ return xt(t, "onUpdate");
1015
1015
  },
1016
1016
  stagger: 0
1017
- }, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (rt || !o && !g) && t._startAt.revert(Ae), o && m && e <= 0 && i <= 0) {
1017
+ }, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (st || !o && !_) && t._startAt.revert($e), o && m && e <= 0 && i <= 0) {
1018
1018
  e && (t._zTime = e);
1019
1019
  return;
1020
1020
  }
1021
- } else if (u && m && !h) {
1022
- if (e && (o = !1), C = vt({
1021
+ } else if (f && m && !h) {
1022
+ if (e && (o = !1), P = St({
1023
1023
  overwrite: !1,
1024
1024
  data: "isFromStart",
1025
1025
  //we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
1026
- lazy: o && !h && ft(a),
1026
+ lazy: o && !h && ht(a),
1027
1027
  immediateRender: o,
1028
1028
  //zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
1029
1029
  stagger: 0,
1030
1030
  parent: x
1031
1031
  //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
1032
- }, M), q && (C[Y.prop] = q), Yt(t._startAt = et.set(y, C)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (rt ? t._startAt.revert(Ae) : t._startAt.render(-1, !0)), t._zTime = e, !o)
1033
- l(t._startAt, B, B);
1032
+ }, D), Y && (P[V.prop] = Y), Zt(t._startAt = rt.set(v, P)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (st ? t._startAt.revert($e) : t._startAt.render(-1, !0)), t._zTime = e, !o)
1033
+ l(t._startAt, H, H);
1034
1034
  else if (!e)
1035
1035
  return;
1036
1036
  }
1037
- for (t._pt = t._ptCache = 0, a = m && ft(a) || a && !m, S = 0; S < y.length; S++) {
1038
- if (E = y[S], V = E._gsap || bi(y)[S]._gsap, t._ptLookup[S] = tt = {}, oi[V.id] && Wt.length && Be(), Q = v === y ? S : v.indexOf(E), Y && (U = new Y()).init(E, q || M, t, Q, v) !== !1 && (t._pt = k = new ht(t._pt, E, U.name, 0, 1, U.render, U, 0, U.priority), U._props.forEach(function(Rt) {
1039
- tt[Rt] = k;
1040
- }), U.priority && (H = 1)), !Y || q)
1041
- for (C in M)
1042
- dt[C] && (U = Nr(C, M, t, Q, E, v)) ? U.priority && (H = 1) : tt[C] = k = ki.call(t, E, C, "get", M[C], Q, v, 0, r.stringFilter);
1043
- t._op && t._op[S] && t.kill(E, t._op[S]), w && t._pt && (Nt = t, $.killTweensOf(E, tt, t.globalTime(e)), ot = !t.parent, Nt = 0), t._pt && a && (oi[V.id] = 1);
1037
+ for (t._pt = t._ptCache = 0, a = m && ht(a) || a && !m, k = 0; k < v.length; k++) {
1038
+ if (z = v[k], q = z._gsap || $i(v)[k]._gsap, t._ptLookup[k] = it = {}, wi[q.id] && Gt.length && Ye(), Q = y === v ? k : y.indexOf(z), V && ($ = new V()).init(z, Y || D, t, Q, y) !== !1 && (t._pt = M = new pt(t._pt, z, $.name, 0, 1, $.render, $, 0, $.priority), $._props.forEach(function(Dt) {
1039
+ it[Dt] = M;
1040
+ }), $.priority && (G = 1)), !V || Y)
1041
+ for (P in D)
1042
+ vt[P] && ($ = ln(P, D, t, Q, z, y)) ? $.priority && (G = 1) : it[P] = M = Hi.call(t, z, P, "get", D[P], Q, y, 0, r.stringFilter);
1043
+ t._op && t._op[k] && t.kill(z, t._op[k]), T && t._pt && (Ut = t, Z.killTweensOf(z, it, t.globalTime(e)), ft = !t.parent, Ut = 0), t._pt && a && (wi[q.id] = 1);
1044
1044
  }
1045
- H && Yr(t), t._onInit && t._onInit(t);
1045
+ G && dn(t), t._onInit && t._onInit(t);
1046
1046
  }
1047
- t._onUpdate = f, t._initted = (!t._op || t._pt) && !ot, d && e <= 0 && b.render(bt, !0, !0);
1048
- }, $n = function(t, e, i, r, n, s, o, a) {
1049
- var f = (t._pt && t._ptCache || (t._ptCache = {}))[e], u, _, d, g;
1050
- if (!f)
1051
- for (f = t._ptCache[e] = [], d = t._ptLookup, g = t._targets.length; g--; ) {
1052
- if (u = d[g][e], u && u.d && u.d._pt)
1053
- for (u = u.d._pt; u && u.p !== e && u.fp !== e; )
1054
- u = u._next;
1055
- if (!u)
1056
- return hi = 1, t.vars[e] = "+=0", Ci(t, o), hi = 0, a ? be(e + " not eligible for reset. Try splitting into individual properties") : 1;
1057
- f.push(u);
1047
+ t._onUpdate = c, t._initted = (!t._op || t._pt) && !ft, p && e <= 0 && S.render(Mt, !0, !0);
1048
+ }, Os = function(t, e, i, r, n, s, o, a) {
1049
+ var c = (t._pt && t._ptCache || (t._ptCache = {}))[e], f, d, p, _;
1050
+ if (!c)
1051
+ for (c = t._ptCache[e] = [], p = t._ptLookup, _ = t._targets.length; _--; ) {
1052
+ if (f = p[_][e], f && f.d && f.d._pt)
1053
+ for (f = f.d._pt; f && f.p !== e && f.fp !== e; )
1054
+ f = f._next;
1055
+ if (!f)
1056
+ return Mi = 1, t.vars[e] = "+=0", qi(t, o), Mi = 0, a ? Re(e + " not eligible for reset. Try splitting into individual properties") : 1;
1057
+ c.push(f);
1058
1058
  }
1059
- for (g = f.length; g--; )
1060
- _ = f[g], u = _._pt || _, u.s = (r || r === 0) && !n ? r : u.s + (r || 0) + s * u.c, u.c = i - u.s, _.e && (_.e = J(i) + nt(_.e)), _.b && (_.b = u.s + nt(_.b));
1061
- }, jn = function(t, e) {
1062
- var i = t[0] ? Qt(t[0]).harness : 0, r = i && i.aliases, n, s, o, a;
1059
+ for (_ = c.length; _--; )
1060
+ d = c[_], f = d._pt || d, f.s = (r || r === 0) && !n ? r : f.s + (r || 0) + s * f.c, f.c = i - f.s, d.e && (d.e = et(i) + at(d.e)), d.b && (d.b = f.s + at(d.b));
1061
+ }, Rs = function(t, e) {
1062
+ var i = t[0] ? ne(t[0]).harness : 0, r = i && i.aliases, n, s, o, a;
1063
1063
  if (!r)
1064
1064
  return e;
1065
- n = ue({}, e);
1065
+ n = me({}, e);
1066
1066
  for (s in r)
1067
1067
  if (s in n)
1068
1068
  for (a = r[s].split(","), o = a.length; o--; )
1069
1069
  n[a[o]] = n[s];
1070
1070
  return n;
1071
- }, Zn = function(t, e, i, r) {
1071
+ }, Es = function(t, e, i, r) {
1072
1072
  var n = e.ease || r || "power1.inOut", s, o;
1073
- if (st(e))
1074
- o = i[t] || (i[t] = []), e.forEach(function(a, f) {
1073
+ if (lt(e))
1074
+ o = i[t] || (i[t] = []), e.forEach(function(a, c) {
1075
1075
  return o.push({
1076
- t: f / (e.length - 1) * 100,
1076
+ t: c / (e.length - 1) * 100,
1077
1077
  v: a,
1078
1078
  e: n
1079
1079
  });
@@ -1085,99 +1085,99 @@ var Xn = function(t, e, i, r, n, s, o) {
1085
1085
  v: e[s],
1086
1086
  e: n
1087
1087
  });
1088
- }, Te = function(t, e, i, r, n) {
1089
- return K(t) ? t.call(e, i, r, n) : it(t) && ~t.indexOf("random(") ? ke(t) : t;
1090
- }, Ue = wi + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert", Ir = {};
1091
- ut(Ue + ",id,stagger,delay,duration,paused,scrollTrigger", function(l) {
1092
- return Ir[l] = 1;
1088
+ }, Pe = function(t, e, i, r, n) {
1089
+ return J(t) ? t.call(e, i, r, n) : nt(t) && ~t.indexOf("random(") ? De(t) : t;
1090
+ }, Ze = Ii + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert", fn = {};
1091
+ dt(Ze + ",id,stagger,delay,duration,paused,scrollTrigger", function(l) {
1092
+ return fn[l] = 1;
1093
1093
  });
1094
- Ue = Ue.split(",");
1095
- var et = /* @__PURE__ */ function(l) {
1096
- or(t, l);
1094
+ Ze = Ze.split(",");
1095
+ var rt = /* @__PURE__ */ function(l) {
1096
+ Rr(t, l);
1097
1097
  function t(i, r, n, s) {
1098
1098
  var o;
1099
- typeof r == "number" && (n.duration = r, r = n, n = null), o = l.call(this, s ? r : xe(r)) || this;
1100
- var a = o.vars, f = a.duration, u = a.delay, _ = a.immediateRender, d = a.stagger, g = a.overwrite, m = a.keyframes, h = a.defaults, y = a.scrollTrigger, x = r.parent || $, v = (st(i) || lr(i) ? At(i[0]) : "length" in r) ? [i] : St(i), w, b, T, M, S, C, k, E;
1101
- if (o._targets = v.length ? bi(v) : be("GSAP target " + i + " not found. https://gsap.com", !yt.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = g, m || d || Ee(f) || Ee(u)) {
1099
+ typeof r == "number" && (n.duration = r, r = n, n = null), o = l.call(this, s ? r : Ce(r)) || this;
1100
+ var a = o.vars, c = a.duration, f = a.delay, d = a.immediateRender, p = a.stagger, _ = a.overwrite, m = a.keyframes, h = a.defaults, v = a.scrollTrigger, x = r.parent || Z, y = (lt(i) || Dr(i) ? Ht(i[0]) : "length" in r) ? [i] : Pt(i), T, S, w, D, k, P, M, z;
1101
+ if (o._targets = y.length ? $i(y) : Re("GSAP target " + i + " not found. https://gsap.com", !wt.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = _, m || p || Ie(c) || Ie(f)) {
1102
1102
  r = o.vars;
1103
- var H = r.easeReverse || r.yoyoEase;
1104
- if (w = o.timeline = new lt({
1103
+ var G = r.easeReverse || r.yoyoEase;
1104
+ if (T = o.timeline = new ut({
1105
1105
  data: "nested",
1106
1106
  defaults: h || {},
1107
- targets: x && x.data === "nested" ? x.vars.targets : v
1108
- }), w.kill(), w.parent = w._dp = Dt(o), w._start = 0, d || Ee(f) || Ee(u)) {
1109
- if (M = v.length, k = d && kr(d), Ot(d))
1110
- for (S in d)
1111
- ~Ue.indexOf(S) && (E || (E = {}), E[S] = d[S]);
1112
- for (b = 0; b < M; b++)
1113
- T = We(r, Ir), T.stagger = 0, H && (T.easeReverse = H), E && ue(T, E), C = v[b], T.duration = +Te(f, Dt(o), b, C, v), T.delay = (+Te(u, Dt(o), b, C, v) || 0) - o._delay, !d && M === 1 && T.delay && (o._delay = u = T.delay, o._start += u, T.delay = 0), w.to(C, T, k ? k(b, C, v) : 0), w._ease = F.none;
1114
- w.duration() ? f = u = 0 : o.timeline = 0;
1107
+ targets: x && x.data === "nested" ? x.vars.targets : y
1108
+ }), T.kill(), T.parent = T._dp = $t(o), T._start = 0, p || Ie(c) || Ie(f)) {
1109
+ if (D = y.length, M = p && jr(p), Nt(p))
1110
+ for (k in p)
1111
+ ~Ze.indexOf(k) && (z || (z = {}), z[k] = p[k]);
1112
+ for (S = 0; S < D; S++)
1113
+ w = Xe(r, fn), w.stagger = 0, G && (w.easeReverse = G), z && me(w, z), P = y[S], w.duration = +Pe(c, $t(o), S, P, y), w.delay = (+Pe(f, $t(o), S, P, y) || 0) - o._delay, !p && D === 1 && w.delay && (o._delay = f = w.delay, o._start += f, w.delay = 0), T.to(P, w, M ? M(S, P, y) : 0), T._ease = N.none;
1114
+ T.duration() ? c = f = 0 : o.timeline = 0;
1115
1115
  } else if (m) {
1116
- xe(vt(w.vars.defaults, {
1116
+ Ce(St(T.vars.defaults, {
1117
1117
  ease: "none"
1118
- })), w._ease = te(m.ease || r.ease || "none");
1119
- var V = 0, Y, U, tt;
1120
- if (st(m))
1118
+ })), T._ease = oe(m.ease || r.ease || "none");
1119
+ var q = 0, V, $, it;
1120
+ if (lt(m))
1121
1121
  m.forEach(function(Q) {
1122
- return w.to(v, Q, ">");
1123
- }), w.duration();
1122
+ return T.to(y, Q, ">");
1123
+ }), T.duration();
1124
1124
  else {
1125
- T = {};
1126
- for (S in m)
1127
- S === "ease" || S === "easeEach" || Zn(S, m[S], T, m.easeEach);
1128
- for (S in T)
1129
- for (Y = T[S].sort(function(Q, q) {
1130
- return Q.t - q.t;
1131
- }), V = 0, b = 0; b < Y.length; b++)
1132
- U = Y[b], tt = {
1133
- ease: U.e,
1134
- duration: (U.t - (b ? Y[b - 1].t : 0)) / 100 * f
1135
- }, tt[S] = U.v, w.to(v, tt, V), V += tt.duration;
1136
- w.duration() < f && w.to({}, {
1137
- duration: f - w.duration()
1125
+ w = {};
1126
+ for (k in m)
1127
+ k === "ease" || k === "easeEach" || Es(k, m[k], w, m.easeEach);
1128
+ for (k in w)
1129
+ for (V = w[k].sort(function(Q, Y) {
1130
+ return Q.t - Y.t;
1131
+ }), q = 0, S = 0; S < V.length; S++)
1132
+ $ = V[S], it = {
1133
+ ease: $.e,
1134
+ duration: ($.t - (S ? V[S - 1].t : 0)) / 100 * c
1135
+ }, it[k] = $.v, T.to(y, it, q), q += it.duration;
1136
+ T.duration() < c && T.to({}, {
1137
+ duration: c - T.duration()
1138
1138
  });
1139
1139
  }
1140
1140
  }
1141
- f || o.duration(f = w.duration());
1141
+ c || o.duration(c = T.duration());
1142
1142
  } else
1143
1143
  o.timeline = 0;
1144
- return g === !0 && !gi && (Nt = Dt(o), $.killTweensOf(v), Nt = 0), Pt(x, Dt(o), n), r.reversed && o.reverse(), r.paused && o.paused(!0), (_ || !f && !m && o._start === G(x._time) && ft(_) && Cn(Dt(o)) && x.data !== "nested") && (o._tTime = -B, o.render(Math.max(0, -u) || 0)), y && Tr(Dt(o), y), o;
1144
+ return _ === !0 && !Li && (Ut = $t(o), Z.killTweensOf(y), Ut = 0), At(x, $t(o), n), r.reversed && o.reverse(), r.paused && o.paused(!0), (d || !c && !m && o._start === j(x._time) && ht(d) && as($t(o)) && x.data !== "nested") && (o._tTime = -H, o.render(Math.max(0, -f) || 0)), v && Ur($t(o), v), o;
1145
1145
  }
1146
1146
  var e = t.prototype;
1147
1147
  return e.render = function(r, n, s) {
1148
- var o = this._time, a = this._tDur, f = this._dur, u = r < 0, _ = r > a - B && !u ? a : r < B ? 0 : r, d, g, m, h, y, x, v, w;
1149
- if (!f)
1150
- Mn(this, r, n, s);
1151
- else if (_ !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== u || this._lazy) {
1152
- if (d = _, w = this.timeline, this._repeat) {
1153
- if (h = f + this._rDelay, this._repeat < -1 && u)
1148
+ var o = this._time, a = this._tDur, c = this._dur, f = r < 0, d = r > a - H && !f ? a : r < H ? 0 : r, p, _, m, h, v, x, y, T;
1149
+ if (!c)
1150
+ fs(this, r, n, s);
1151
+ else if (d !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== f || this._lazy) {
1152
+ if (p = d, T = this.timeline, this._repeat) {
1153
+ if (h = c + this._rDelay, this._repeat < -1 && f)
1154
1154
  return this.totalTime(h * 100 + r, n, s);
1155
- if (d = G(_ % h), _ === a ? (m = this._repeat, d = f) : (y = G(_ / h), m = ~~y, m && m === y ? (d = f, m--) : d > f && (d = f)), x = this._yoyo && m & 1, x && (d = f - d), y = he(this._tTime, h), d === o && !s && this._initted && m === y)
1156
- return this._tTime = _, this;
1157
- m !== y && this.vars.repeatRefresh && !x && !this._lock && d !== h && this._initted && (this._lock = s = 1, this.render(G(h * m), !0).invalidate()._lock = 0);
1155
+ if (p = j(d % h), d === a ? (m = this._repeat, p = c) : (v = j(d / h), m = ~~v, m && m === v ? (p = c, m--) : p > c && (p = c)), x = this._yoyo && m & 1, x && (p = c - p), v = ve(this._tTime, h), p === o && !s && this._initted && m === v)
1156
+ return this._tTime = d, this;
1157
+ m !== v && this.vars.repeatRefresh && !x && !this._lock && p !== h && this._initted && (this._lock = s = 1, this.render(j(h * m), !0).invalidate()._lock = 0);
1158
1158
  }
1159
1159
  if (!this._initted) {
1160
- if (wr(this, u ? r : d, s, n, _))
1160
+ if (Yr(this, f ? r : p, s, n, d))
1161
1161
  return this._tTime = 0, this;
1162
- if (o !== this._time && !(s && this.vars.repeatRefresh && m !== y))
1162
+ if (o !== this._time && !(s && this.vars.repeatRefresh && m !== v))
1163
1163
  return this;
1164
- if (f !== this._dur)
1164
+ if (c !== this._dur)
1165
1165
  return this.render(r, n, s);
1166
1166
  }
1167
1167
  if (this._rEase) {
1168
- var b = d < o;
1169
- if (b !== this._inv) {
1170
- var T = b ? o : f - o;
1171
- this._inv = b, this._from && (this.ratio = 1 - this.ratio), this._invRatio = this.ratio, this._invTime = o, this._invRecip = T ? (b ? -1 : 1) / T : 0, this._invScale = b ? -this.ratio : 1 - this.ratio, this._invEase = b ? this._rEase : this._ease;
1168
+ var S = p < o;
1169
+ if (S !== this._inv) {
1170
+ var w = S ? o : c - o;
1171
+ this._inv = S, this._from && (this.ratio = 1 - this.ratio), this._invRatio = this.ratio, this._invTime = o, this._invRecip = w ? (S ? -1 : 1) / w : 0, this._invScale = S ? -this.ratio : 1 - this.ratio, this._invEase = S ? this._rEase : this._ease;
1172
1172
  }
1173
- this.ratio = v = this._invRatio + this._invScale * this._invEase((d - this._invTime) * this._invRecip);
1173
+ this.ratio = y = this._invRatio + this._invScale * this._invEase((p - this._invTime) * this._invRecip);
1174
1174
  } else
1175
- this.ratio = v = this._ease(d / f);
1176
- if (this._from && (this.ratio = v = 1 - v), this._tTime = _, this._time = d, !this._act && this._ts && (this._act = 1, this._lazy = 0), !o && _ && !n && !y && (gt(this, "onStart"), this._tTime !== _))
1175
+ this.ratio = y = this._ease(p / c);
1176
+ if (this._from && (this.ratio = y = 1 - y), this._tTime = d, this._time = p, !this._act && this._ts && (this._act = 1, this._lazy = 0), !o && d && !n && !v && (xt(this, "onStart"), this._tTime !== d))
1177
1177
  return this;
1178
- for (g = this._pt; g; )
1179
- g.r(v, g.d), g = g._next;
1180
- w && w.render(r < 0 ? r : w._dur * w._ease(d / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (u && ai(this, r, n, s), gt(this, "onUpdate")), this._repeat && m !== y && this.vars.onRepeat && !n && this.parent && gt(this, "onRepeat"), (_ === this._tDur || !_) && this._tTime === _ && (u && !this._onUpdate && ai(this, r, !0, !0), (r || !f) && (_ === this._tDur && this._ts > 0 || !_ && this._ts < 0) && Yt(this, 1), !n && !(u && !o) && (_ || o || x) && (gt(this, _ === a ? "onComplete" : "onReverseComplete", !0), this._prom && !(_ < a && this.timeScale() > 0) && this._prom()));
1178
+ for (_ = this._pt; _; )
1179
+ _.r(y, _.d), _ = _._next;
1180
+ T && T.render(r < 0 ? r : T._dur * T._ease(p / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (f && Ti(this, r, n, s), xt(this, "onUpdate")), this._repeat && m !== v && this.vars.onRepeat && !n && this.parent && xt(this, "onRepeat"), (d === this._tDur || !d) && this._tTime === d && (f && !this._onUpdate && Ti(this, r, !0, !0), (r || !c) && (d === this._tDur && this._ts > 0 || !d && this._ts < 0) && Zt(this, 1), !n && !(f && !o) && (d || o || x) && (xt(this, d === a ? "onComplete" : "onReverseComplete", !0), this._prom && !(d < a && this.timeScale() > 0) && this._prom()));
1181
1181
  }
1182
1182
  return this;
1183
1183
  }, e.targets = function() {
@@ -1185,32 +1185,32 @@ var et = /* @__PURE__ */ function(l) {
1185
1185
  }, e.invalidate = function(r) {
1186
1186
  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), l.prototype.invalidate.call(this, r);
1187
1187
  }, e.resetTo = function(r, n, s, o, a) {
1188
- Ce || pt.wake(), this._ts || this.play();
1189
- var f = Math.min(this._dur, (this._dp._time - this._start) * this._ts), u;
1190
- return this._initted || Ci(this, f), u = this._ease(f / this._dur), $n(this, r, n, s, o, u, f, a) ? this.resetTo(r, n, s, o, 1) : (je(this, 0), this.parent || xr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1188
+ Le || yt.wake(), this._ts || this.play();
1189
+ var c = Math.min(this._dur, (this._dp._time - this._start) * this._ts), f;
1190
+ return this._initted || qi(this, c), f = this._ease(c / this._dur), Os(this, r, n, s, o, f, c, a) ? this.resetTo(r, n, s, o, 1) : (ii(this, 0), this.parent || qr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1191
1191
  }, e.kill = function(r, n) {
1192
1192
  if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
1193
- return this._lazy = this._pt = 0, this.parent ? me(this) : this.scrollTrigger && this.scrollTrigger.kill(!!rt), this;
1193
+ return this._lazy = this._pt = 0, this.parent ? Se(this) : this.scrollTrigger && this.scrollTrigger.kill(!!st), this;
1194
1194
  if (this.timeline) {
1195
1195
  var s = this.timeline.totalDuration();
1196
- return this.timeline.killTweensOf(r, n, Nt && Nt.vars.overwrite !== !0)._first || me(this), this.parent && s !== this.timeline.totalDuration() && ce(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1196
+ return this.timeline.killTweensOf(r, n, Ut && Ut.vars.overwrite !== !0)._first || Se(this), this.parent && s !== this.timeline.totalDuration() && ye(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1197
1197
  }
1198
- var o = this._targets, a = r ? St(r) : o, f = this._ptLookup, u = this._pt, _, d, g, m, h, y, x;
1199
- if ((!n || n === "all") && Sn(o, a))
1200
- return n === "all" && (this._pt = 0), me(this);
1201
- for (_ = this._op = this._op || [], n !== "all" && (it(n) && (h = {}, ut(n, function(v) {
1202
- return h[v] = 1;
1203
- }), n = h), n = jn(o, n)), x = o.length; x--; )
1198
+ var o = this._targets, a = r ? Pt(r) : o, c = this._ptLookup, f = this._pt, d, p, _, m, h, v, x;
1199
+ if ((!n || n === "all") && ss(o, a))
1200
+ return n === "all" && (this._pt = 0), Se(this);
1201
+ for (d = this._op = this._op || [], n !== "all" && (nt(n) && (h = {}, dt(n, function(y) {
1202
+ return h[y] = 1;
1203
+ }), n = h), n = Rs(o, n)), x = o.length; x--; )
1204
1204
  if (~a.indexOf(o[x])) {
1205
- d = f[x], n === "all" ? (_[x] = n, m = d, g = {}) : (g = _[x] = _[x] || {}, m = n);
1205
+ p = c[x], n === "all" ? (d[x] = n, m = p, _ = {}) : (_ = d[x] = d[x] || {}, m = n);
1206
1206
  for (h in m)
1207
- y = d && d[h], y && ((!("kill" in y.d) || y.d.kill(h) === !0) && Ge(this, y, "_pt"), delete d[h]), g !== "all" && (g[h] = 1);
1207
+ v = p && p[h], v && ((!("kill" in v.d) || v.d.kill(h) === !0) && ti(this, v, "_pt"), delete p[h]), _ !== "all" && (_[h] = 1);
1208
1208
  }
1209
- return this._initted && !this._pt && u && me(this), this;
1209
+ return this._initted && !this._pt && f && Se(this), this;
1210
1210
  }, t.to = function(r, n) {
1211
1211
  return new t(r, n, arguments[2]);
1212
1212
  }, t.from = function(r, n) {
1213
- return ve(1, arguments);
1213
+ return Me(1, arguments);
1214
1214
  }, t.delayedCall = function(r, n, s, o) {
1215
1215
  return new t(n, 0, {
1216
1216
  immediateRender: !1,
@@ -1224,41 +1224,41 @@ var et = /* @__PURE__ */ function(l) {
1224
1224
  callbackScope: o
1225
1225
  });
1226
1226
  }, t.fromTo = function(r, n, s) {
1227
- return ve(2, arguments);
1227
+ return Me(2, arguments);
1228
1228
  }, t.set = function(r, n) {
1229
1229
  return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(r, n);
1230
1230
  }, t.killTweensOf = function(r, n, s) {
1231
- return $.killTweensOf(r, n, s);
1231
+ return Z.killTweensOf(r, n, s);
1232
1232
  }, t;
1233
- }(Pe);
1234
- vt(et.prototype, {
1233
+ }(Ae);
1234
+ St(rt.prototype, {
1235
1235
  _targets: [],
1236
1236
  _lazy: 0,
1237
1237
  _startAt: 0,
1238
1238
  _op: 0,
1239
1239
  _onInit: 0
1240
1240
  });
1241
- ut("staggerTo,staggerFrom,staggerFromTo", function(l) {
1242
- et[l] = function() {
1243
- var t = new lt(), e = li.call(arguments, 0);
1241
+ dt("staggerTo,staggerFrom,staggerFromTo", function(l) {
1242
+ rt[l] = function() {
1243
+ var t = new ut(), e = Si.call(arguments, 0);
1244
1244
  return e.splice(l === "staggerFromTo" ? 5 : 4, 0, 0), t[l].apply(t, e);
1245
1245
  };
1246
1246
  });
1247
- var Pi = function(t, e, i) {
1247
+ var Vi = function(t, e, i) {
1248
1248
  return t[e] = i;
1249
- }, Br = function(t, e, i) {
1249
+ }, cn = function(t, e, i) {
1250
1250
  return t[e](i);
1251
- }, Kn = function(t, e, i, r) {
1251
+ }, Ds = function(t, e, i, r) {
1252
1252
  return t[e](r.fp, i);
1253
- }, Qn = function(t, e, i) {
1253
+ }, Ls = function(t, e, i) {
1254
1254
  return t.setAttribute(e, i);
1255
- }, Mi = function(t, e) {
1256
- return K(t[e]) ? Br : mi(t[e]) && t.setAttribute ? Qn : Pi;
1257
- }, Wr = function(t, e) {
1255
+ }, Ui = function(t, e) {
1256
+ return J(t[e]) ? cn : Ai(t[e]) && t.setAttribute ? Ls : Vi;
1257
+ }, un = function(t, e) {
1258
1258
  return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
1259
- }, Jn = function(t, e) {
1259
+ }, As = function(t, e) {
1260
1260
  return e.set(e.t, e.p, !!(e.s + e.c * t), e);
1261
- }, Vr = function(t, e) {
1261
+ }, hn = function(t, e) {
1262
1262
  var i = e._pt, r = "";
1263
1263
  if (!t && e.b)
1264
1264
  r = e.b;
@@ -1270,75 +1270,75 @@ var Pi = function(t, e, i) {
1270
1270
  r += e.c;
1271
1271
  }
1272
1272
  e.set(e.t, e.p, r, e);
1273
- }, Oi = function(t, e) {
1273
+ }, Yi = function(t, e) {
1274
1274
  for (var i = e._pt; i; )
1275
1275
  i.r(t, i.d), i = i._next;
1276
- }, ts = function(t, e, i, r) {
1276
+ }, zs = function(t, e, i, r) {
1277
1277
  for (var n = this._pt, s; n; )
1278
1278
  s = n._next, n.p === r && n.modifier(t, e, i), n = s;
1279
- }, es = function(t) {
1279
+ }, Ns = function(t) {
1280
1280
  for (var e = this._pt, i, r; e; )
1281
- r = e._next, e.p === t && !e.op || e.op === t ? Ge(this, e, "_pt") : e.dep || (i = 1), e = r;
1281
+ r = e._next, e.p === t && !e.op || e.op === t ? ti(this, e, "_pt") : e.dep || (i = 1), e = r;
1282
1282
  return !i;
1283
- }, is = function(t, e, i, r) {
1283
+ }, Fs = function(t, e, i, r) {
1284
1284
  r.mSet(t, e, r.m.call(r.tween, i, r.mt), r);
1285
- }, Yr = function(t) {
1285
+ }, dn = function(t) {
1286
1286
  for (var e = t._pt, i, r, n, s; e; ) {
1287
1287
  for (i = e._next, r = n; r && r.pr > e.pr; )
1288
1288
  r = r._next;
1289
1289
  (e._prev = r ? r._prev : s) ? e._prev._next = e : n = e, (e._next = r) ? r._prev = e : s = e, e = i;
1290
1290
  }
1291
1291
  t._pt = n;
1292
- }, ht = /* @__PURE__ */ function() {
1293
- function l(e, i, r, n, s, o, a, f, u) {
1294
- this.t = i, this.s = n, this.c = s, this.p = r, this.r = o || Wr, this.d = a || this, this.set = f || Pi, this.pr = u || 0, this._next = e, e && (e._prev = this);
1292
+ }, pt = /* @__PURE__ */ function() {
1293
+ function l(e, i, r, n, s, o, a, c, f) {
1294
+ this.t = i, this.s = n, this.c = s, this.p = r, this.r = o || un, this.d = a || this, this.set = c || Vi, this.pr = f || 0, this._next = e, e && (e._prev = this);
1295
1295
  }
1296
1296
  var t = l.prototype;
1297
1297
  return t.modifier = function(i, r, n) {
1298
- this.mSet = this.mSet || this.set, this.set = is, this.m = i, this.mt = n, this.tween = r;
1298
+ this.mSet = this.mSet || this.set, this.set = Fs, this.m = i, this.mt = n, this.tween = r;
1299
1299
  }, l;
1300
1300
  }();
1301
- ut(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,easeReverse", function(l) {
1302
- return Ti[l] = 1;
1301
+ dt(Ii + "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,easeReverse", function(l) {
1302
+ return Bi[l] = 1;
1303
1303
  });
1304
- xt.TweenMax = xt.TweenLite = et;
1305
- xt.TimelineLite = xt.TimelineMax = lt;
1306
- $ = new lt({
1304
+ Tt.TweenMax = Tt.TweenLite = rt;
1305
+ Tt.TimelineLite = Tt.TimelineMax = ut;
1306
+ Z = new ut({
1307
1307
  sortChildren: !1,
1308
- defaults: we,
1308
+ defaults: Oe,
1309
1309
  autoRemoveChildren: !0,
1310
1310
  id: "root",
1311
1311
  smoothChildTiming: !0
1312
1312
  });
1313
- yt.stringFilter = Lr;
1314
- var ee = [], ze = {}, rs = [], $i = 0, ns = 0, ei = function(t) {
1315
- return (ze[t] || rs).map(function(e) {
1313
+ wt.stringFilter = sn;
1314
+ var ae = [], He = {}, Bs = [], mr = 0, Is = 0, gi = function(t) {
1315
+ return (He[t] || Bs).map(function(e) {
1316
1316
  return e();
1317
1317
  });
1318
- }, Me = function() {
1318
+ }, ze = function() {
1319
1319
  var t = Date.now(), e = [];
1320
- t - $i > 2 && (ei("matchMediaInit"), ee.forEach(function(i) {
1321
- var r = i.queries, n = i.conditions, s, o, a, f;
1320
+ t - mr > 2 && (gi("matchMediaInit"), ae.forEach(function(i) {
1321
+ var r = i.queries, n = i.conditions, s, o, a, c;
1322
1322
  for (o in r)
1323
- s = Ct.matchMedia(r[o]).matches, s && (a = 1), s !== n[o] && (n[o] = s, f = 1);
1324
- f && (i.revert(), a && e.push(i));
1325
- }), ei("matchMediaRevert"), e.forEach(function(i) {
1323
+ s = Lt.matchMedia(r[o]).matches, s && (a = 1), s !== n[o] && (n[o] = s, c = 1);
1324
+ c && (i.revert(), a && e.push(i));
1325
+ }), gi("matchMediaRevert"), e.forEach(function(i) {
1326
1326
  return i.onMatch(i, function(r) {
1327
1327
  return i.add(null, r);
1328
1328
  });
1329
- }), $i = t, ei("matchMedia"));
1330
- }, Ur = /* @__PURE__ */ function() {
1329
+ }), mr = t, gi("matchMedia"));
1330
+ }, pn = /* @__PURE__ */ function() {
1331
1331
  function l(e, i) {
1332
- this.selector = i && fi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = ns++, e && this.add(e);
1332
+ this.selector = i && ki(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Is++, e && this.add(e);
1333
1333
  }
1334
1334
  var t = l.prototype;
1335
1335
  return t.add = function(i, r, n) {
1336
- K(i) && (n = r, r = i, i = K);
1336
+ J(i) && (n = r, r = i, i = J);
1337
1337
  var s = this, o = function() {
1338
- var f = X, u = s.selector, _;
1339
- return f && f !== s && f.data.push(s), n && (s.selector = fi(n)), X = s, _ = r.apply(s, arguments), K(_) && s._r.push(_), X = f, s.selector = u, s.isReverted = !1, _;
1338
+ var c = X, f = s.selector, d;
1339
+ return c && c !== s && c.data.push(s), n && (s.selector = ki(n)), X = s, d = r.apply(s, arguments), J(d) && s._r.push(d), X = c, s.selector = f, s.isReverted = !1, d;
1340
1340
  };
1341
- return s.last = o, i === K ? o(s, function(a) {
1341
+ return s.last = o, i === J ? o(s, function(a) {
1342
1342
  return s.add(null, a);
1343
1343
  }) : i ? s[i] = o : o;
1344
1344
  }, t.ignore = function(i) {
@@ -1347,58 +1347,58 @@ var ee = [], ze = {}, rs = [], $i = 0, ns = 0, ei = function(t) {
1347
1347
  }, t.getTweens = function() {
1348
1348
  var i = [];
1349
1349
  return this.data.forEach(function(r) {
1350
- return r instanceof l ? i.push.apply(i, r.getTweens()) : r instanceof et && !(r.parent && r.parent.data === "nested") && i.push(r);
1350
+ return r instanceof l ? i.push.apply(i, r.getTweens()) : r instanceof rt && !(r.parent && r.parent.data === "nested") && i.push(r);
1351
1351
  }), i;
1352
1352
  }, t.clear = function() {
1353
1353
  this._r.length = this.data.length = 0;
1354
1354
  }, t.kill = function(i, r) {
1355
1355
  var n = this;
1356
1356
  if (i ? function() {
1357
- for (var o = n.getTweens(), a = n.data.length, f; a--; )
1358
- f = n.data[a], f.data === "isFlip" && (f.revert(), f.getChildren(!0, !0, !1).forEach(function(u) {
1359
- return o.splice(o.indexOf(u), 1);
1357
+ for (var o = n.getTweens(), a = n.data.length, c; a--; )
1358
+ c = n.data[a], c.data === "isFlip" && (c.revert(), c.getChildren(!0, !0, !1).forEach(function(f) {
1359
+ return o.splice(o.indexOf(f), 1);
1360
1360
  }));
1361
- for (o.map(function(u) {
1361
+ for (o.map(function(f) {
1362
1362
  return {
1363
- g: u._dur || u._delay || u._sat && !u._sat.vars.immediateRender ? u.globalTime(0) : -1 / 0,
1364
- t: u
1363
+ g: f._dur || f._delay || f._sat && !f._sat.vars.immediateRender ? f.globalTime(0) : -1 / 0,
1364
+ t: f
1365
1365
  };
1366
- }).sort(function(u, _) {
1367
- return _.g - u.g || -1 / 0;
1368
- }).forEach(function(u) {
1369
- return u.t.revert(i);
1366
+ }).sort(function(f, d) {
1367
+ return d.g - f.g || -1 / 0;
1368
+ }).forEach(function(f) {
1369
+ return f.t.revert(i);
1370
1370
  }), a = n.data.length; a--; )
1371
- f = n.data[a], f instanceof lt ? f.data !== "nested" && (f.scrollTrigger && f.scrollTrigger.revert(), f.kill()) : !(f instanceof et) && f.revert && f.revert(i);
1372
- n._r.forEach(function(u) {
1373
- return u(i, n);
1371
+ c = n.data[a], c instanceof ut ? c.data !== "nested" && (c.scrollTrigger && c.scrollTrigger.revert(), c.kill()) : !(c instanceof rt) && c.revert && c.revert(i);
1372
+ n._r.forEach(function(f) {
1373
+ return f(i, n);
1374
1374
  }), n.isReverted = !0;
1375
1375
  }() : this.data.forEach(function(o) {
1376
1376
  return o.kill && o.kill();
1377
1377
  }), this.clear(), r) {
1378
- for (var s = ee.length; s--; )
1379
- ee[s].id === this.id && ee.splice(s, 1);
1378
+ for (var s = ae.length; s--; )
1379
+ ae[s].id === this.id && ae.splice(s, 1);
1380
1380
  this._mqs && this._mqs.forEach(function(o) {
1381
- return o.removeListener ? o.removeListener(Me) : o.removeEventListener("change", Me);
1381
+ return o.removeListener ? o.removeListener(ze) : o.removeEventListener("change", ze);
1382
1382
  }), this._mqs = null;
1383
1383
  }
1384
1384
  }, t.revert = function(i) {
1385
1385
  this.kill(i || {});
1386
1386
  }, l;
1387
- }(), ss = /* @__PURE__ */ function() {
1387
+ }(), $s = /* @__PURE__ */ function() {
1388
1388
  function l(e) {
1389
1389
  this.contexts = [], this.scope = e, X && X.data.push(this);
1390
1390
  }
1391
1391
  var t = l.prototype;
1392
1392
  return t.add = function(i, r, n) {
1393
- Ot(i) || (i = {
1393
+ Nt(i) || (i = {
1394
1394
  matches: i
1395
1395
  });
1396
- var s = new Ur(0, n || this.scope), o = s.conditions = {}, a, f, u;
1396
+ var s = new pn(0, n || this.scope), o = s.conditions = {}, a, c, f;
1397
1397
  X && !s.selector && (s.selector = X.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = i;
1398
- for (f in i)
1399
- f === "all" ? u = 1 : (a = Ct.matchMedia(i[f]), a && (ee.indexOf(s) < 0 && ee.push(s), (o[f] = a.matches) && (u = 1), a.addListener ? a.addListener(Me) : a.addEventListener("change", Me), (s._mqs || (s._mqs = [])).push(a)));
1400
- return u && r(s, function(_) {
1401
- return s.add(null, _);
1398
+ for (c in i)
1399
+ c === "all" ? f = 1 : (a = Lt.matchMedia(i[c]), a && (ae.indexOf(s) < 0 && ae.push(s), (o[c] = a.matches) && (f = 1), a.addListener ? a.addListener(ze) : a.addEventListener("change", ze), (s._mqs || (s._mqs = [])).push(a)));
1400
+ return f && r(s, function(d) {
1401
+ return s.add(null, d);
1402
1402
  }), this;
1403
1403
  }, t.revert = function(i) {
1404
1404
  this.kill(i || {});
@@ -1407,169 +1407,169 @@ var ee = [], ze = {}, rs = [], $i = 0, ns = 0, ei = function(t) {
1407
1407
  return r.kill(i, !0);
1408
1408
  });
1409
1409
  }, l;
1410
- }(), qe = {
1410
+ }(), Ke = {
1411
1411
  registerPlugin: function() {
1412
1412
  for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
1413
1413
  e[i] = arguments[i];
1414
1414
  e.forEach(function(r) {
1415
- return Dr(r);
1415
+ return en(r);
1416
1416
  });
1417
1417
  },
1418
1418
  timeline: function(t) {
1419
- return new lt(t);
1419
+ return new ut(t);
1420
1420
  },
1421
1421
  getTweensOf: function(t, e) {
1422
- return $.getTweensOf(t, e);
1422
+ return Z.getTweensOf(t, e);
1423
1423
  },
1424
1424
  getProperty: function(t, e, i, r) {
1425
- it(t) && (t = St(t)[0]);
1426
- var n = Qt(t || {}).get, s = i ? yr : mr;
1427
- return i === "native" && (i = ""), t && (e ? s((dt[e] && dt[e].get || n)(t, e, i, r)) : function(o, a, f) {
1428
- return s((dt[o] && dt[o].get || n)(t, o, a, f));
1425
+ nt(t) && (t = Pt(t)[0]);
1426
+ var n = ne(t || {}).get, s = i ? Hr : Wr;
1427
+ return i === "native" && (i = ""), t && (e ? s((vt[e] && vt[e].get || n)(t, e, i, r)) : function(o, a, c) {
1428
+ return s((vt[o] && vt[o].get || n)(t, o, a, c));
1429
1429
  });
1430
1430
  },
1431
1431
  quickSetter: function(t, e, i) {
1432
- if (t = St(t), t.length > 1) {
1433
- var r = t.map(function(u) {
1434
- return _t.quickSetter(u, e, i);
1432
+ if (t = Pt(t), t.length > 1) {
1433
+ var r = t.map(function(f) {
1434
+ return gt.quickSetter(f, e, i);
1435
1435
  }), n = r.length;
1436
- return function(u) {
1437
- for (var _ = n; _--; )
1438
- r[_](u);
1436
+ return function(f) {
1437
+ for (var d = n; d--; )
1438
+ r[d](f);
1439
1439
  };
1440
1440
  }
1441
1441
  t = t[0] || {};
1442
- var s = dt[e], o = Qt(t), a = o.harness && (o.harness.aliases || {})[e] || e, f = s ? function(u) {
1443
- var _ = new s();
1444
- oe._pt = 0, _.init(t, i ? u + i : u, oe, 0, [t]), _.render(1, _), oe._pt && Oi(1, oe);
1442
+ var s = vt[e], o = ne(t), a = o.harness && (o.harness.aliases || {})[e] || e, c = s ? function(f) {
1443
+ var d = new s();
1444
+ de._pt = 0, d.init(t, i ? f + i : f, de, 0, [t]), d.render(1, d), de._pt && Yi(1, de);
1445
1445
  } : o.set(t, a);
1446
- return s ? f : function(u) {
1447
- return f(t, a, i ? u + i : u, o, 1);
1446
+ return s ? c : function(f) {
1447
+ return c(t, a, i ? f + i : f, o, 1);
1448
1448
  };
1449
1449
  },
1450
1450
  quickTo: function(t, e, i) {
1451
- var r, n = _t.to(t, vt((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(a, f, u) {
1452
- return n.resetTo(e, a, f, u);
1451
+ var r, n = gt.to(t, St((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(a, c, f) {
1452
+ return n.resetTo(e, a, c, f);
1453
1453
  };
1454
1454
  return s.tween = n, s;
1455
1455
  },
1456
1456
  isTweening: function(t) {
1457
- return $.getTweensOf(t, !0).length > 0;
1457
+ return Z.getTweensOf(t, !0).length > 0;
1458
1458
  },
1459
1459
  defaults: function(t) {
1460
- return t && t.ease && (t.ease = te(t.ease, we.ease)), Ui(we, t || {});
1460
+ return t && t.ease && (t.ease = oe(t.ease, Oe.ease)), hr(Oe, t || {});
1461
1461
  },
1462
1462
  config: function(t) {
1463
- return Ui(yt, t || {});
1463
+ return hr(wt, t || {});
1464
1464
  },
1465
1465
  registerEffect: function(t) {
1466
1466
  var e = t.name, i = t.effect, r = t.plugins, n = t.defaults, s = t.extendTimeline;
1467
1467
  (r || "").split(",").forEach(function(o) {
1468
- return o && !dt[o] && !xt[o] && be(e + " effect requires " + o + " plugin.");
1469
- }), Ke[e] = function(o, a, f) {
1470
- return i(St(o), vt(a || {}, n), f);
1471
- }, s && (lt.prototype[e] = function(o, a, f) {
1472
- return this.add(Ke[e](o, Ot(a) ? a : (f = a) && {}, this), f);
1468
+ return o && !vt[o] && !Tt[o] && Re(e + " effect requires " + o + " plugin.");
1469
+ }), hi[e] = function(o, a, c) {
1470
+ return i(Pt(o), St(a || {}, n), c);
1471
+ }, s && (ut.prototype[e] = function(o, a, c) {
1472
+ return this.add(hi[e](o, Nt(a) ? a : (c = a) && {}, this), c);
1473
1473
  });
1474
1474
  },
1475
1475
  registerEase: function(t, e) {
1476
- F[t] = te(e);
1476
+ N[t] = oe(e);
1477
1477
  },
1478
1478
  parseEase: function(t, e) {
1479
- return arguments.length ? te(t, e) : F;
1479
+ return arguments.length ? oe(t, e) : N;
1480
1480
  },
1481
1481
  getById: function(t) {
1482
- return $.getById(t);
1482
+ return Z.getById(t);
1483
1483
  },
1484
1484
  exportRoot: function(t, e) {
1485
1485
  t === void 0 && (t = {});
1486
- var i = new lt(t), r, n;
1487
- for (i.smoothChildTiming = ft(t.smoothChildTiming), $.remove(i), i._dp = 0, i._time = i._tTime = $._time, r = $._first; r; )
1488
- n = r._next, (e || !(!r._dur && r instanceof et && r.vars.onComplete === r._targets[0])) && Pt(i, r, r._start - r._delay), r = n;
1489
- return Pt($, i, 0), i;
1486
+ var i = new ut(t), r, n;
1487
+ for (i.smoothChildTiming = ht(t.smoothChildTiming), Z.remove(i), i._dp = 0, i._time = i._tTime = Z._time, r = Z._first; r; )
1488
+ n = r._next, (e || !(!r._dur && r instanceof rt && r.vars.onComplete === r._targets[0])) && At(i, r, r._start - r._delay), r = n;
1489
+ return At(Z, i, 0), i;
1490
1490
  },
1491
1491
  context: function(t, e) {
1492
- return t ? new Ur(t, e) : X;
1492
+ return t ? new pn(t, e) : X;
1493
1493
  },
1494
1494
  matchMedia: function(t) {
1495
- return new ss(t);
1495
+ return new $s(t);
1496
1496
  },
1497
1497
  matchMediaRefresh: function() {
1498
- return ee.forEach(function(t) {
1498
+ return ae.forEach(function(t) {
1499
1499
  var e = t.conditions, i, r;
1500
1500
  for (r in e)
1501
1501
  e[r] && (e[r] = !1, i = 1);
1502
1502
  i && t.revert();
1503
- }) || Me();
1503
+ }) || ze();
1504
1504
  },
1505
1505
  addEventListener: function(t, e) {
1506
- var i = ze[t] || (ze[t] = []);
1506
+ var i = He[t] || (He[t] = []);
1507
1507
  ~i.indexOf(e) || i.push(e);
1508
1508
  },
1509
1509
  removeEventListener: function(t, e) {
1510
- var i = ze[t], r = i && i.indexOf(e);
1510
+ var i = He[t], r = i && i.indexOf(e);
1511
1511
  r >= 0 && i.splice(r, 1);
1512
1512
  },
1513
1513
  utils: {
1514
- wrap: Fn,
1515
- wrapYoyo: Nn,
1516
- distribute: kr,
1517
- random: Pr,
1518
- snap: Cr,
1519
- normalize: zn,
1520
- getUnit: nt,
1521
- clamp: Dn,
1522
- splitColor: Er,
1523
- toArray: St,
1524
- selector: fi,
1525
- mapRange: Or,
1526
- pipe: An,
1527
- unitize: Ln,
1528
- interpolate: In,
1529
- shuffle: Sr
1514
+ wrap: ms,
1515
+ wrapYoyo: vs,
1516
+ distribute: jr,
1517
+ random: Kr,
1518
+ snap: Zr,
1519
+ normalize: gs,
1520
+ getUnit: at,
1521
+ clamp: hs,
1522
+ splitColor: rn,
1523
+ toArray: Pt,
1524
+ selector: ki,
1525
+ mapRange: Jr,
1526
+ pipe: ps,
1527
+ unitize: _s,
1528
+ interpolate: ys,
1529
+ shuffle: Gr
1530
1530
  },
1531
- install: cr,
1532
- effects: Ke,
1533
- ticker: pt,
1534
- updateRoot: lt.updateRoot,
1535
- plugins: dt,
1536
- globalTimeline: $,
1531
+ install: Nr,
1532
+ effects: hi,
1533
+ ticker: yt,
1534
+ updateRoot: ut.updateRoot,
1535
+ plugins: vt,
1536
+ globalTimeline: Z,
1537
1537
  core: {
1538
- PropTween: ht,
1539
- globals: _r,
1540
- Tween: et,
1541
- Timeline: lt,
1542
- Animation: Pe,
1543
- getCache: Qt,
1544
- _removeLinkedListItem: Ge,
1538
+ PropTween: pt,
1539
+ globals: Fr,
1540
+ Tween: rt,
1541
+ Timeline: ut,
1542
+ Animation: Ae,
1543
+ getCache: ne,
1544
+ _removeLinkedListItem: ti,
1545
1545
  reverting: function() {
1546
- return rt;
1546
+ return st;
1547
1547
  },
1548
1548
  context: function(t) {
1549
1549
  return t && X && (X.data.push(t), t._ctx = X), X;
1550
1550
  },
1551
1551
  suppressOverwrites: function(t) {
1552
- return gi = t;
1552
+ return Li = t;
1553
1553
  }
1554
1554
  }
1555
1555
  };
1556
- ut("to,from,fromTo,delayedCall,set,killTweensOf", function(l) {
1557
- return qe[l] = et[l];
1556
+ dt("to,from,fromTo,delayedCall,set,killTweensOf", function(l) {
1557
+ return Ke[l] = rt[l];
1558
1558
  });
1559
- pt.add(lt.updateRoot);
1560
- oe = qe.to({}, {
1559
+ yt.add(ut.updateRoot);
1560
+ de = Ke.to({}, {
1561
1561
  duration: 0
1562
1562
  });
1563
- var os = function(t, e) {
1563
+ var Ws = function(t, e) {
1564
1564
  for (var i = t._pt; i && i.p !== e && i.op !== e && i.fp !== e; )
1565
1565
  i = i._next;
1566
1566
  return i;
1567
- }, as = function(t, e) {
1567
+ }, Hs = function(t, e) {
1568
1568
  var i = t._targets, r, n, s;
1569
1569
  for (r in e)
1570
1570
  for (n = i.length; n--; )
1571
- s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = os(s, r)), s && s.modifier && s.modifier(e[r], t, i[n], r));
1572
- }, ii = function(t, e) {
1571
+ s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = Ws(s, r)), s && s.modifier && s.modifier(e[r], t, i[n], r));
1572
+ }, mi = function(t, e) {
1573
1573
  return {
1574
1574
  name: t,
1575
1575
  headless: 1,
@@ -1577,20 +1577,20 @@ var os = function(t, e) {
1577
1577
  //don't pre-process function-based values or "random()" strings.
1578
1578
  init: function(r, n, s) {
1579
1579
  s._onInit = function(o) {
1580
- var a, f;
1581
- if (it(n) && (a = {}, ut(n, function(u) {
1582
- return a[u] = 1;
1580
+ var a, c;
1581
+ if (nt(n) && (a = {}, dt(n, function(f) {
1582
+ return a[f] = 1;
1583
1583
  }), n = a), e) {
1584
1584
  a = {};
1585
- for (f in n)
1586
- a[f] = e(n[f]);
1585
+ for (c in n)
1586
+ a[c] = e(n[c]);
1587
1587
  n = a;
1588
1588
  }
1589
- as(o, n);
1589
+ Hs(o, n);
1590
1590
  };
1591
1591
  }
1592
1592
  };
1593
- }, _t = qe.registerPlugin({
1593
+ }, gt = Ke.registerPlugin({
1594
1594
  name: "attr",
1595
1595
  init: function(t, e, i, r, n) {
1596
1596
  var s, o, a;
@@ -1600,7 +1600,7 @@ var os = function(t, e) {
1600
1600
  },
1601
1601
  render: function(t, e) {
1602
1602
  for (var i = e._pt; i; )
1603
- rt ? i.set(i.t, i.p, i.b, i) : i.r(t, i.d), i = i._next;
1603
+ st ? i.set(i.t, i.p, i.b, i) : i.r(t, i.d), i = i._next;
1604
1604
  }
1605
1605
  }, {
1606
1606
  name: "endArray",
@@ -1609,28 +1609,28 @@ var os = function(t, e) {
1609
1609
  for (var i = e.length; i--; )
1610
1610
  this.add(t, i, t[i] || 0, e[i], 0, 0, 0, 0, 0, 1);
1611
1611
  }
1612
- }, ii("roundProps", ui), ii("modifiers"), ii("snap", Cr)) || qe;
1613
- et.version = lt.version = _t.version = "3.15.1";
1614
- hr = 1;
1615
- yi() && _e();
1616
- F.Power0;
1617
- F.Power1;
1618
- F.Power2;
1619
- F.Power3;
1620
- F.Power4;
1621
- F.Linear;
1622
- F.Quad;
1623
- F.Cubic;
1624
- F.Quart;
1625
- F.Quint;
1626
- F.Strong;
1627
- F.Elastic;
1628
- F.Back;
1629
- F.SteppedEase;
1630
- F.Bounce;
1631
- F.Sine;
1632
- F.Expo;
1633
- F.Circ;
1612
+ }, mi("roundProps", Ci), mi("modifiers"), mi("snap", Zr)) || Ke;
1613
+ rt.version = ut.version = gt.version = "3.15.1";
1614
+ zr = 1;
1615
+ zi() && xe();
1616
+ N.Power0;
1617
+ N.Power1;
1618
+ N.Power2;
1619
+ N.Power3;
1620
+ N.Power4;
1621
+ N.Linear;
1622
+ N.Quad;
1623
+ N.Cubic;
1624
+ N.Quart;
1625
+ N.Quint;
1626
+ N.Strong;
1627
+ N.Elastic;
1628
+ N.Back;
1629
+ N.SteppedEase;
1630
+ N.Bounce;
1631
+ N.Sine;
1632
+ N.Expo;
1633
+ N.Circ;
1634
1634
  /*!
1635
1635
  * CSSPlugin 3.15.1
1636
1636
  * https://gsap.com
@@ -1639,197 +1639,197 @@ F.Circ;
1639
1639
  * Subject to the terms at https://gsap.com/standard-license
1640
1640
  * @author: Jack Doyle, jack@greensock.com
1641
1641
  */
1642
- var ji, It, le, Ri, Kt, Zi, Di, ls = function() {
1642
+ var vr, Yt, _e, Xi, re, yr, Gi, qs = function() {
1643
1643
  return typeof window < "u";
1644
- }, Lt = {}, Zt = 180 / Math.PI, fe = Math.PI / 180, ne = Math.atan2, Ki = 1e8, Ei = /([A-Z])/g, fs = /(left|right|width|margin|padding|x)/i, us = /[\s,\(]\S/, Mt = {
1644
+ }, qt = {}, ie = 180 / Math.PI, ge = Math.PI / 180, ce = Math.atan2, xr = 1e8, ji = /([A-Z])/g, Vs = /(left|right|width|margin|padding|x)/i, Us = /[\s,\(]\S/, zt = {
1645
1645
  autoAlpha: "opacity,visibility",
1646
1646
  scale: "scaleX,scaleY",
1647
1647
  alpha: "opacity"
1648
- }, ci = function(t, e) {
1648
+ }, Pi = function(t, e) {
1649
1649
  return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
1650
- }, hs = function(t, e) {
1650
+ }, Ys = function(t, e) {
1651
1651
  return e.set(e.t, e.p, t === 1 ? e.e : Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
1652
- }, cs = function(t, e) {
1652
+ }, Xs = function(t, e) {
1653
1653
  return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
1654
- }, _s = function(t, e) {
1654
+ }, Gs = function(t, e) {
1655
1655
  return e.set(e.t, e.p, t === 1 ? e.e : t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
1656
- }, ds = function(t, e) {
1656
+ }, js = function(t, e) {
1657
1657
  var i = e.s + e.c * t;
1658
1658
  e.set(e.t, e.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + e.u, e);
1659
- }, qr = function(t, e) {
1659
+ }, _n = function(t, e) {
1660
1660
  return e.set(e.t, e.p, t ? e.e : e.b, e);
1661
- }, Hr = function(t, e) {
1661
+ }, gn = function(t, e) {
1662
1662
  return e.set(e.t, e.p, t !== 1 ? e.b : e.e, e);
1663
- }, ps = function(t, e, i) {
1663
+ }, Zs = function(t, e, i) {
1664
1664
  return t.style[e] = i;
1665
- }, gs = function(t, e, i) {
1665
+ }, Ks = function(t, e, i) {
1666
1666
  return t.style.setProperty(e, i);
1667
- }, ms = function(t, e, i) {
1667
+ }, Qs = function(t, e, i) {
1668
1668
  return t._gsap[e] = i;
1669
- }, ys = function(t, e, i) {
1669
+ }, Js = function(t, e, i) {
1670
1670
  return t._gsap.scaleX = t._gsap.scaleY = i;
1671
- }, xs = function(t, e, i, r, n) {
1671
+ }, to = function(t, e, i, r, n) {
1672
1672
  var s = t._gsap;
1673
1673
  s.scaleX = s.scaleY = i, s.renderTransform(n, s);
1674
- }, vs = function(t, e, i, r, n) {
1674
+ }, eo = function(t, e, i, r, n) {
1675
1675
  var s = t._gsap;
1676
1676
  s[e] = i, s.renderTransform(n, s);
1677
- }, j = "transform", ct = j + "Origin", Ts = function l(t, e) {
1677
+ }, K = "transform", _t = K + "Origin", io = function l(t, e) {
1678
1678
  var i = this, r = this.target, n = r.style, s = r._gsap;
1679
- if (t in Lt && n) {
1679
+ if (t in qt && n) {
1680
1680
  if (this.tfm = this.tfm || {}, t !== "transform")
1681
- t = Mt[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(o) {
1682
- return i.tfm[o] = Et(r, o);
1683
- }) : this.tfm[t] = s.x ? s[t] : Et(r, t), t === ct && (this.tfm.zOrigin = s.zOrigin);
1681
+ t = zt[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(o) {
1682
+ return i.tfm[o] = Wt(r, o);
1683
+ }) : this.tfm[t] = s.x ? s[t] : Wt(r, t), t === _t && (this.tfm.zOrigin = s.zOrigin);
1684
1684
  else
1685
- return Mt.transform.split(",").forEach(function(o) {
1685
+ return zt.transform.split(",").forEach(function(o) {
1686
1686
  return l.call(i, o, e);
1687
1687
  });
1688
- if (this.props.indexOf(j) >= 0)
1688
+ if (this.props.indexOf(K) >= 0)
1689
1689
  return;
1690
- s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(ct, e, "")), t = j;
1690
+ s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(_t, e, "")), t = K;
1691
1691
  }
1692
1692
  (n || e) && this.props.push(t, e, n[t]);
1693
- }, Xr = function(t) {
1693
+ }, mn = function(t) {
1694
1694
  t.translate && (t.removeProperty("translate"), t.removeProperty("scale"), t.removeProperty("rotate"));
1695
- }, ws = function() {
1695
+ }, ro = function() {
1696
1696
  var t = this.props, e = this.target, i = e.style, r = e._gsap, n, s;
1697
1697
  for (n = 0; n < t.length; n += 3)
1698
- t[n + 1] ? t[n + 1] === 2 ? e[t[n]](t[n + 2]) : e[t[n]] = t[n + 2] : t[n + 2] ? i[t[n]] = t[n + 2] : i.removeProperty(t[n].substr(0, 2) === "--" ? t[n] : t[n].replace(Ei, "-$1").toLowerCase());
1698
+ t[n + 1] ? t[n + 1] === 2 ? e[t[n]](t[n + 2]) : e[t[n]] = t[n + 2] : t[n + 2] ? i[t[n]] = t[n + 2] : i.removeProperty(t[n].substr(0, 2) === "--" ? t[n] : t[n].replace(ji, "-$1").toLowerCase());
1699
1699
  if (this.tfm) {
1700
1700
  for (s in this.tfm)
1701
1701
  r[s] = this.tfm[s];
1702
- r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = Di(), (!n || !n.isStart) && !i[j] && (Xr(i), r.zOrigin && i[ct] && (i[ct] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
1702
+ r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = Gi(), (!n || !n.isStart) && !i[K] && (mn(i), r.zOrigin && i[_t] && (i[_t] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
1703
1703
  }
1704
- }, Gr = function(t, e) {
1704
+ }, vn = function(t, e) {
1705
1705
  var i = {
1706
1706
  target: t,
1707
1707
  props: [],
1708
- revert: ws,
1709
- save: Ts
1708
+ revert: ro,
1709
+ save: io
1710
1710
  };
1711
- return t._gsap || _t.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
1711
+ return t._gsap || gt.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
1712
1712
  return i.save(r);
1713
1713
  }), i;
1714
- }, $r, _i = function(t, e) {
1715
- var i = It.createElementNS ? It.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : It.createElement(t);
1716
- return i && i.style ? i : It.createElement(t);
1717
- }, mt = function l(t, e, i) {
1714
+ }, yn, Oi = function(t, e) {
1715
+ var i = Yt.createElementNS ? Yt.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : Yt.createElement(t);
1716
+ return i && i.style ? i : Yt.createElement(t);
1717
+ }, bt = function l(t, e, i) {
1718
1718
  var r = getComputedStyle(t);
1719
- return r[e] || r.getPropertyValue(e.replace(Ei, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && l(t, de(e) || e, 1) || "";
1720
- }, Qi = "O,Moz,ms,Ms,Webkit".split(","), de = function(t, e, i) {
1721
- var r = e || Kt, n = r.style, s = 5;
1719
+ return r[e] || r.getPropertyValue(e.replace(ji, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && l(t, be(e) || e, 1) || "";
1720
+ }, br = "O,Moz,ms,Ms,Webkit".split(","), be = function(t, e, i) {
1721
+ var r = e || re, n = r.style, s = 5;
1722
1722
  if (t in n && !i)
1723
1723
  return t;
1724
- for (t = t.charAt(0).toUpperCase() + t.substr(1); s-- && !(Qi[s] + t in n); )
1724
+ for (t = t.charAt(0).toUpperCase() + t.substr(1); s-- && !(br[s] + t in n); )
1725
1725
  ;
1726
- return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? Qi[s] : "") + t;
1727
- }, di = function() {
1728
- ls() && window.document && (ji = window, It = ji.document, le = It.documentElement, Kt = _i("div") || {
1726
+ return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? br[s] : "") + t;
1727
+ }, Ri = function() {
1728
+ qs() && window.document && (vr = window, Yt = vr.document, _e = Yt.documentElement, re = Oi("div") || {
1729
1729
  style: {}
1730
- }, _i("div"), j = de(j), ct = j + "Origin", Kt.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", $r = !!de("perspective"), Di = _t.core.reverting, Ri = 1);
1731
- }, Ji = function(t) {
1732
- var e = t.ownerSVGElement, i = _i("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
1733
- r.style.display = "block", i.appendChild(r), le.appendChild(i);
1730
+ }, Oi("div"), K = be(K), _t = K + "Origin", re.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", yn = !!be("perspective"), Gi = gt.core.reverting, Xi = 1);
1731
+ }, wr = function(t) {
1732
+ var e = t.ownerSVGElement, i = Oi("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
1733
+ r.style.display = "block", i.appendChild(r), _e.appendChild(i);
1734
1734
  try {
1735
1735
  n = r.getBBox();
1736
1736
  } catch {
1737
1737
  }
1738
- return i.removeChild(r), le.removeChild(i), n;
1739
- }, tr = function(t, e) {
1738
+ return i.removeChild(r), _e.removeChild(i), n;
1739
+ }, Tr = function(t, e) {
1740
1740
  for (var i = e.length; i--; )
1741
1741
  if (t.hasAttribute(e[i]))
1742
1742
  return t.getAttribute(e[i]);
1743
- }, jr = function(t) {
1743
+ }, xn = function(t) {
1744
1744
  var e, i;
1745
1745
  try {
1746
1746
  e = t.getBBox();
1747
1747
  } catch {
1748
- e = Ji(t), i = 1;
1748
+ e = wr(t), i = 1;
1749
1749
  }
1750
- return e && (e.width || e.height) || i || (e = Ji(t)), e && !e.width && !e.x && !e.y ? {
1751
- x: +tr(t, ["x", "cx", "x1"]) || 0,
1752
- y: +tr(t, ["y", "cy", "y1"]) || 0,
1750
+ return e && (e.width || e.height) || i || (e = wr(t)), e && !e.width && !e.x && !e.y ? {
1751
+ x: +Tr(t, ["x", "cx", "x1"]) || 0,
1752
+ y: +Tr(t, ["y", "cy", "y1"]) || 0,
1753
1753
  width: 0,
1754
1754
  height: 0
1755
1755
  } : e;
1756
- }, Zr = function(t) {
1757
- return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) && jr(t));
1758
- }, Ut = function(t, e) {
1756
+ }, bn = function(t) {
1757
+ return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) && xn(t));
1758
+ }, Kt = function(t, e) {
1759
1759
  if (e) {
1760
1760
  var i = t.style, r;
1761
- e in Lt && e !== ct && (e = j), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(Ei, "-$1").toLowerCase())) : i.removeAttribute(e);
1761
+ e in qt && e !== _t && (e = K), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(ji, "-$1").toLowerCase())) : i.removeAttribute(e);
1762
1762
  }
1763
- }, Bt = function(t, e, i, r, n, s) {
1764
- var o = new ht(t._pt, e, i, 0, 1, s ? Hr : qr);
1763
+ }, Xt = function(t, e, i, r, n, s) {
1764
+ var o = new pt(t._pt, e, i, 0, 1, s ? gn : _n);
1765
1765
  return t._pt = o, o.b = r, o.e = n, t._props.push(i), o;
1766
- }, er = {
1766
+ }, Sr = {
1767
1767
  deg: 1,
1768
1768
  rad: 1,
1769
1769
  turn: 1
1770
- }, bs = {
1770
+ }, no = {
1771
1771
  grid: 1,
1772
1772
  flex: 1
1773
- }, qt = function l(t, e, i, r) {
1774
- var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", o = Kt.style, a = fs.test(e), f = t.tagName.toLowerCase() === "svg", u = (f ? "client" : "offset") + (a ? "Width" : "Height"), _ = 100, d = r === "px", g = r === "%", m, h, y, x;
1775
- if (r === s || !n || er[r] || er[s])
1773
+ }, Qt = function l(t, e, i, r) {
1774
+ var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", o = re.style, a = Vs.test(e), c = t.tagName.toLowerCase() === "svg", f = (c ? "client" : "offset") + (a ? "Width" : "Height"), d = 100, p = r === "px", _ = r === "%", m, h, v, x;
1775
+ if (r === s || !n || Sr[r] || Sr[s])
1776
1776
  return n;
1777
- if (s !== "px" && !d && (n = l(t, e, i, "px")), x = t.getCTM && Zr(t), (g || s === "%") && (Lt[e] || ~e.indexOf("adius")))
1778
- return m = x ? t.getBBox()[a ? "width" : "height"] : t[u], J(g ? n / m * _ : n / 100 * m);
1779
- if (o[a ? "width" : "height"] = _ + (d ? s : r), h = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !f ? t : t.parentNode, x && (h = (t.ownerSVGElement || {}).parentNode), (!h || h === It || !h.appendChild) && (h = It.body), y = h._gsap, y && g && y.width && a && y.time === pt.time && !y.uncache)
1780
- return J(n / y.width * _);
1781
- if (g && (e === "height" || e === "width")) {
1782
- var v = t.style[e];
1783
- t.style[e] = _ + r, m = t[u], v ? t.style[e] = v : Ut(t, e);
1777
+ if (s !== "px" && !p && (n = l(t, e, i, "px")), x = t.getCTM && bn(t), (_ || s === "%") && (qt[e] || ~e.indexOf("adius")))
1778
+ return m = x ? t.getBBox()[a ? "width" : "height"] : t[f], et(_ ? n / m * d : n / 100 * m);
1779
+ if (o[a ? "width" : "height"] = d + (p ? s : r), h = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !c ? t : t.parentNode, x && (h = (t.ownerSVGElement || {}).parentNode), (!h || h === Yt || !h.appendChild) && (h = Yt.body), v = h._gsap, v && _ && v.width && a && v.time === yt.time && !v.uncache)
1780
+ return et(n / v.width * d);
1781
+ if (_ && (e === "height" || e === "width")) {
1782
+ var y = t.style[e];
1783
+ t.style[e] = d + r, m = t[f], y ? t.style[e] = y : Kt(t, e);
1784
1784
  } else
1785
- (g || s === "%") && !bs[mt(h, "display")] && (o.position = mt(t, "position")), h === t && (o.position = "static"), h.appendChild(Kt), m = Kt[u], h.removeChild(Kt), o.position = "absolute";
1786
- return a && g && (y = Qt(h), y.time = pt.time, y.width = h[u]), J(d ? m * n / _ : m && n ? _ / m * n : 0);
1787
- }, Et = function(t, e, i, r) {
1785
+ (_ || s === "%") && !no[bt(h, "display")] && (o.position = bt(t, "position")), h === t && (o.position = "static"), h.appendChild(re), m = re[f], h.removeChild(re), o.position = "absolute";
1786
+ return a && _ && (v = ne(h), v.time = yt.time, v.width = h[f]), et(p ? m * n / d : m && n ? d / m * n : 0);
1787
+ }, Wt = function(t, e, i, r) {
1788
1788
  var n;
1789
- return Ri || di(), e in Mt && e !== "transform" && (e = Mt[e], ~e.indexOf(",") && (e = e.split(",")[0])), Lt[e] && e !== "transform" ? (n = Re(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : Xe(mt(t, ct)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = He[e] && He[e](t, e, i) || mt(t, e) || pr(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? qt(t, e, n, i) + i : n;
1790
- }, Ss = function(t, e, i, r) {
1789
+ return Xi || Ri(), e in zt && e !== "transform" && (e = zt[e], ~e.indexOf(",") && (e = e.split(",")[0])), qt[e] && e !== "transform" ? (n = Fe(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : Je(bt(t, _t)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = Qe[e] && Qe[e](t, e, i) || bt(t, e) || Ir(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? Qt(t, e, n, i) + i : n;
1790
+ }, so = function(t, e, i, r) {
1791
1791
  if (!i || i === "none") {
1792
- var n = de(e, t, 1), s = n && mt(t, n, 1);
1793
- s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = mt(t, "borderTopColor"));
1792
+ var n = be(e, t, 1), s = n && bt(t, n, 1);
1793
+ s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = bt(t, "borderTopColor"));
1794
1794
  }
1795
- var o = new ht(this._pt, t.style, e, 0, 1, Vr), a = 0, f = 0, u, _, d, g, m, h, y, x, v, w, b, T;
1796
- if (o.b = i, o.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = mt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (h = t.style[e], t.style[e] = r, r = mt(t, e) || r, h ? t.style[e] = h : Ut(t, e)), u = [i, r], Lr(u), i = u[0], r = u[1], d = i.match(se) || [], T = r.match(se) || [], T.length) {
1797
- for (; _ = se.exec(r); )
1798
- y = _[0], v = r.substring(a, _.index), m ? m = (m + 1) % 5 : (v.substr(-5) === "rgba(" || v.substr(-5) === "hsla(") && (m = 1), y !== (h = d[f++] || "") && (g = parseFloat(h) || 0, b = h.substr((g + "").length), y.charAt(1) === "=" && (y = ae(g, y) + b), x = parseFloat(y), w = y.substr((x + "").length), a = se.lastIndex - w.length, w || (w = w || yt.units[e] || b, a === r.length && (r += w, o.e += w)), b !== w && (g = qt(t, e, h, w) || 0), o._pt = {
1795
+ var o = new pt(this._pt, t.style, e, 0, 1, hn), a = 0, c = 0, f, d, p, _, m, h, v, x, y, T, S, w;
1796
+ if (o.b = i, o.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = bt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (h = t.style[e], t.style[e] = r, r = bt(t, e) || r, h ? t.style[e] = h : Kt(t, e)), f = [i, r], sn(f), i = f[0], r = f[1], p = i.match(he) || [], w = r.match(he) || [], w.length) {
1797
+ for (; d = he.exec(r); )
1798
+ v = d[0], y = r.substring(a, d.index), m ? m = (m + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (m = 1), v !== (h = p[c++] || "") && (_ = parseFloat(h) || 0, S = h.substr((_ + "").length), v.charAt(1) === "=" && (v = pe(_, v) + S), x = parseFloat(v), T = v.substr((x + "").length), a = he.lastIndex - T.length, T || (T = T || wt.units[e] || S, a === r.length && (r += T, o.e += T)), S !== T && (_ = Qt(t, e, h, T) || 0), o._pt = {
1799
1799
  _next: o._pt,
1800
- p: v || f === 1 ? v : ",",
1800
+ p: y || c === 1 ? y : ",",
1801
1801
  //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.
1802
- s: g,
1803
- c: x - g,
1802
+ s: _,
1803
+ c: x - _,
1804
1804
  m: m && m < 4 || e === "zIndex" ? Math.round : 0
1805
1805
  });
1806
1806
  o.c = a < r.length ? r.substring(a, r.length) : "";
1807
1807
  } else
1808
- o.r = e === "display" && r === "none" ? Hr : qr;
1809
- return ur.test(r) && (o.e = 0), this._pt = o, o;
1810
- }, ir = {
1808
+ o.r = e === "display" && r === "none" ? gn : _n;
1809
+ return Ar.test(r) && (o.e = 0), this._pt = o, o;
1810
+ }, kr = {
1811
1811
  top: "0%",
1812
1812
  bottom: "100%",
1813
1813
  left: "0%",
1814
1814
  right: "100%",
1815
1815
  center: "50%"
1816
- }, ks = function(t) {
1816
+ }, oo = function(t) {
1817
1817
  var e = t.split(" "), i = e[0], r = e[1] || "50%";
1818
- return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = ir[i] || i, e[1] = ir[r] || r, e.join(" ");
1819
- }, Cs = function(t, e) {
1818
+ return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = kr[i] || i, e[1] = kr[r] || r, e.join(" ");
1819
+ }, ao = function(t, e) {
1820
1820
  if (e.tween && e.tween._time === e.tween._dur) {
1821
- var i = e.t, r = i.style, n = e.u, s = i._gsap, o, a, f;
1821
+ var i = e.t, r = i.style, n = e.u, s = i._gsap, o, a, c;
1822
1822
  if (n === "all" || n === !0)
1823
1823
  r.cssText = "", a = 1;
1824
1824
  else
1825
- for (n = n.split(","), f = n.length; --f > -1; )
1826
- o = n[f], Lt[o] && (a = 1, o = o === "transformOrigin" ? ct : j), Ut(i, o);
1827
- a && (Ut(i, j), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", Re(i, 1), s.uncache = 1, Xr(r)));
1825
+ for (n = n.split(","), c = n.length; --c > -1; )
1826
+ o = n[c], qt[o] && (a = 1, o = o === "transformOrigin" ? _t : K), Kt(i, o);
1827
+ a && (Kt(i, K), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", Fe(i, 1), s.uncache = 1, mn(r)));
1828
1828
  }
1829
- }, He = {
1829
+ }, Qe = {
1830
1830
  clearProps: function(t, e, i, r, n) {
1831
1831
  if (n.data !== "isFromStart") {
1832
- var s = t._pt = new ht(t._pt, e, i, 0, 0, Cs);
1832
+ var s = t._pt = new pt(t._pt, e, i, 0, 0, ao);
1833
1833
  return s.u = r, s.pr = -10, s.tween = n, t._props.push(i), 1;
1834
1834
  }
1835
1835
  }
@@ -1896,204 +1896,441 @@ var ji, It, le, Ri, Kt, Zi, Di, ls = function() {
1896
1896
  return 1;
1897
1897
  }
1898
1898
  */
1899
- }, Oe = [1, 0, 0, 1, 0, 0], Kr = {}, Qr = function(t) {
1899
+ }, Ne = [1, 0, 0, 1, 0, 0], wn = {}, Tn = function(t) {
1900
1900
  return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
1901
- }, rr = function(t) {
1902
- var e = mt(t, j);
1903
- return Qr(e) ? Oe : e.substr(7).match(fr).map(J);
1904
- }, Ai = function(t, e) {
1905
- var i = t._gsap || Qt(t), r = t.style, n = rr(t), s, o, a, f;
1906
- return i.svg && t.getAttribute("transform") ? (a = t.transform.baseVal.consolidate().matrix, n = [a.a, a.b, a.c, a.d, a.e, a.f], n.join(",") === "1,0,0,1,0,0" ? Oe : n) : (n === Oe && !t.offsetParent && t !== le && !i.svg && (a = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (f = 1, o = t.nextElementSibling, le.appendChild(t)), n = rr(t), a ? r.display = a : Ut(t, "display"), f && (o ? s.insertBefore(t, o) : s ? s.appendChild(t) : le.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
1907
- }, pi = function(t, e, i, r, n, s) {
1908
- var o = t._gsap, a = n || Ai(t, !0), f = o.xOrigin || 0, u = o.yOrigin || 0, _ = o.xOffset || 0, d = o.yOffset || 0, g = a[0], m = a[1], h = a[2], y = a[3], x = a[4], v = a[5], w = e.split(" "), b = parseFloat(w[0]) || 0, T = parseFloat(w[1]) || 0, M, S, C, k;
1909
- i ? a !== Oe && (S = g * y - m * h) && (C = b * (y / S) + T * (-h / S) + (h * v - y * x) / S, k = b * (-m / S) + T * (g / S) - (g * v - m * x) / S, b = C, T = k) : (M = jr(t), b = M.x + (~w[0].indexOf("%") ? b / 100 * M.width : b), T = M.y + (~(w[1] || w[0]).indexOf("%") ? T / 100 * M.height : T)), r || r !== !1 && o.smooth ? (x = b - f, v = T - u, o.xOffset = _ + (x * g + v * h) - x, o.yOffset = d + (x * m + v * y) - v) : o.xOffset = o.yOffset = 0, o.xOrigin = b, o.yOrigin = T, o.smooth = !!r, o.origin = e, o.originIsAbsolute = !!i, t.style[ct] = "0px 0px", s && (Bt(s, o, "xOrigin", f, b), Bt(s, o, "yOrigin", u, T), Bt(s, o, "xOffset", _, o.xOffset), Bt(s, o, "yOffset", d, o.yOffset)), t.setAttribute("data-svg-origin", b + " " + T);
1910
- }, Re = function(t, e) {
1911
- var i = t._gsap || new Fr(t);
1901
+ }, Cr = function(t) {
1902
+ var e = bt(t, K);
1903
+ return Tn(e) ? Ne : e.substr(7).match(Lr).map(et);
1904
+ }, Zi = function(t, e) {
1905
+ var i = t._gsap || ne(t), r = t.style, n = Cr(t), s, o, a, c;
1906
+ return i.svg && t.getAttribute("transform") ? (a = t.transform.baseVal.consolidate().matrix, n = [a.a, a.b, a.c, a.d, a.e, a.f], n.join(",") === "1,0,0,1,0,0" ? Ne : n) : (n === Ne && !t.offsetParent && t !== _e && !i.svg && (a = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (c = 1, o = t.nextElementSibling, _e.appendChild(t)), n = Cr(t), a ? r.display = a : Kt(t, "display"), c && (o ? s.insertBefore(t, o) : s ? s.appendChild(t) : _e.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
1907
+ }, Ei = function(t, e, i, r, n, s) {
1908
+ var o = t._gsap, a = n || Zi(t, !0), c = o.xOrigin || 0, f = o.yOrigin || 0, d = o.xOffset || 0, p = o.yOffset || 0, _ = a[0], m = a[1], h = a[2], v = a[3], x = a[4], y = a[5], T = e.split(" "), S = parseFloat(T[0]) || 0, w = parseFloat(T[1]) || 0, D, k, P, M;
1909
+ i ? a !== Ne && (k = _ * v - m * h) && (P = S * (v / k) + w * (-h / k) + (h * y - v * x) / k, M = S * (-m / k) + w * (_ / k) - (_ * y - m * x) / k, S = P, w = M) : (D = xn(t), S = D.x + (~T[0].indexOf("%") ? S / 100 * D.width : S), w = D.y + (~(T[1] || T[0]).indexOf("%") ? w / 100 * D.height : w)), r || r !== !1 && o.smooth ? (x = S - c, y = w - f, o.xOffset = d + (x * _ + y * h) - x, o.yOffset = p + (x * m + y * v) - y) : o.xOffset = o.yOffset = 0, o.xOrigin = S, o.yOrigin = w, o.smooth = !!r, o.origin = e, o.originIsAbsolute = !!i, t.style[_t] = "0px 0px", s && (Xt(s, o, "xOrigin", c, S), Xt(s, o, "yOrigin", f, w), Xt(s, o, "xOffset", d, o.xOffset), Xt(s, o, "yOffset", p, o.yOffset)), t.setAttribute("data-svg-origin", S + " " + w);
1910
+ }, Fe = function(t, e) {
1911
+ var i = t._gsap || new an(t);
1912
1912
  if ("x" in i && !e && !i.uncache)
1913
1913
  return i;
1914
- var r = t.style, n = i.scaleX < 0, s = "px", o = "deg", a = getComputedStyle(t), f = mt(t, ct) || "0", u, _, d, g, m, h, y, x, v, w, b, T, M, S, C, k, E, H, V, Y, U, tt, Q, q, ot, Rt, zt, Xt, kt, c, P, p;
1915
- return u = _ = d = h = y = x = v = w = b = 0, g = m = 1, i.svg = !!(t.getCTM && Zr(t)), a.translate && ((a.translate !== "none" || a.scale !== "none" || a.rotate !== "none") && (r[j] = (a.translate !== "none" ? "translate3d(" + (a.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (a.rotate !== "none" ? "rotate(" + a.rotate + ") " : "") + (a.scale !== "none" ? "scale(" + a.scale.split(" ").join(",") + ") " : "") + (a[j] !== "none" ? a[j] : "")), r.scale = r.rotate = r.translate = "none"), S = Ai(t, i.svg), i.svg && (i.uncache ? (ot = t.getBBox(), f = i.xOrigin - ot.x + "px " + (i.yOrigin - ot.y) + "px", q = "") : q = !e && t.getAttribute("data-svg-origin"), pi(t, q || f, !!q || i.originIsAbsolute, i.smooth !== !1, S)), T = i.xOrigin || 0, M = i.yOrigin || 0, S !== Oe && (H = S[0], V = S[1], Y = S[2], U = S[3], u = tt = S[4], _ = Q = S[5], S.length === 6 ? (g = Math.sqrt(H * H + V * V), m = Math.sqrt(U * U + Y * Y), h = H || V ? ne(V, H) * Zt : 0, v = Y || U ? ne(Y, U) * Zt + h : 0, v && (m *= Math.abs(Math.cos(v * fe))), i.svg && (u -= T - (T * H + M * Y), _ -= M - (T * V + M * U))) : (p = S[6], c = S[7], zt = S[8], Xt = S[9], kt = S[10], P = S[11], u = S[12], _ = S[13], d = S[14], C = ne(p, kt), y = C * Zt, C && (k = Math.cos(-C), E = Math.sin(-C), q = tt * k + zt * E, ot = Q * k + Xt * E, Rt = p * k + kt * E, zt = tt * -E + zt * k, Xt = Q * -E + Xt * k, kt = p * -E + kt * k, P = c * -E + P * k, tt = q, Q = ot, p = Rt), C = ne(-Y, kt), x = C * Zt, C && (k = Math.cos(-C), E = Math.sin(-C), q = H * k - zt * E, ot = V * k - Xt * E, Rt = Y * k - kt * E, P = U * E + P * k, H = q, V = ot, Y = Rt), C = ne(V, H), h = C * Zt, C && (k = Math.cos(C), E = Math.sin(C), q = H * k + V * E, ot = tt * k + Q * E, V = V * k - H * E, Q = Q * k - tt * E, H = q, tt = ot), y && Math.abs(y) + Math.abs(h) > 359.9 && (y = h = 0, x = 180 - x), g = J(Math.sqrt(H * H + V * V + Y * Y)), m = J(Math.sqrt(Q * Q + p * p)), C = ne(tt, Q), v = Math.abs(C) > 2e-4 ? C * Zt : 0, b = P ? 1 / (P < 0 ? -P : P) : 0), i.svg && (q = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !Qr(mt(t, j)), q && t.setAttribute("transform", q))), Math.abs(v) > 90 && Math.abs(v) < 270 && (n ? (g *= -1, v += h <= 0 ? 180 : -180, h += h <= 0 ? 180 : -180) : (m *= -1, v += v <= 0 ? 180 : -180)), e = e || i.uncache, i.x = u - ((i.xPercent = u && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-u) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = _ - ((i.yPercent = _ && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-_) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = d + s, i.scaleX = J(g), i.scaleY = J(m), i.rotation = J(h) + o, i.rotationX = J(y) + o, i.rotationY = J(x) + o, i.skewX = v + o, i.skewY = w + o, i.transformPerspective = b + s, (i.zOrigin = parseFloat(f.split(" ")[2]) || !e && i.zOrigin || 0) && (r[ct] = Xe(f)), i.xOffset = i.yOffset = 0, i.force3D = yt.force3D, i.renderTransform = i.svg ? Ms : $r ? Jr : Ps, i.uncache = 0, i;
1916
- }, Xe = function(t) {
1914
+ var r = t.style, n = i.scaleX < 0, s = "px", o = "deg", a = getComputedStyle(t), c = bt(t, _t) || "0", f, d, p, _, m, h, v, x, y, T, S, w, D, k, P, M, z, G, q, V, $, it, Q, Y, ft, Dt, Vt, Ft, Ot, Bt, ct, Rt;
1915
+ return f = d = p = h = v = x = y = T = S = 0, _ = m = 1, i.svg = !!(t.getCTM && bn(t)), a.translate && ((a.translate !== "none" || a.scale !== "none" || a.rotate !== "none") && (r[K] = (a.translate !== "none" ? "translate3d(" + (a.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (a.rotate !== "none" ? "rotate(" + a.rotate + ") " : "") + (a.scale !== "none" ? "scale(" + a.scale.split(" ").join(",") + ") " : "") + (a[K] !== "none" ? a[K] : "")), r.scale = r.rotate = r.translate = "none"), k = Zi(t, i.svg), i.svg && (i.uncache ? (ft = t.getBBox(), c = i.xOrigin - ft.x + "px " + (i.yOrigin - ft.y) + "px", Y = "") : Y = !e && t.getAttribute("data-svg-origin"), Ei(t, Y || c, !!Y || i.originIsAbsolute, i.smooth !== !1, k)), w = i.xOrigin || 0, D = i.yOrigin || 0, k !== Ne && (G = k[0], q = k[1], V = k[2], $ = k[3], f = it = k[4], d = Q = k[5], k.length === 6 ? (_ = Math.sqrt(G * G + q * q), m = Math.sqrt($ * $ + V * V), h = G || q ? ce(q, G) * ie : 0, y = V || $ ? ce(V, $) * ie + h : 0, y && (m *= Math.abs(Math.cos(y * ge))), i.svg && (f -= w - (w * G + D * V), d -= D - (w * q + D * $))) : (Rt = k[6], Bt = k[7], Vt = k[8], Ft = k[9], Ot = k[10], ct = k[11], f = k[12], d = k[13], p = k[14], P = ce(Rt, Ot), v = P * ie, P && (M = Math.cos(-P), z = Math.sin(-P), Y = it * M + Vt * z, ft = Q * M + Ft * z, Dt = Rt * M + Ot * z, Vt = it * -z + Vt * M, Ft = Q * -z + Ft * M, Ot = Rt * -z + Ot * M, ct = Bt * -z + ct * M, it = Y, Q = ft, Rt = Dt), P = ce(-V, Ot), x = P * ie, P && (M = Math.cos(-P), z = Math.sin(-P), Y = G * M - Vt * z, ft = q * M - Ft * z, Dt = V * M - Ot * z, ct = $ * z + ct * M, G = Y, q = ft, V = Dt), P = ce(q, G), h = P * ie, P && (M = Math.cos(P), z = Math.sin(P), Y = G * M + q * z, ft = it * M + Q * z, q = q * M - G * z, Q = Q * M - it * z, G = Y, it = ft), v && Math.abs(v) + Math.abs(h) > 359.9 && (v = h = 0, x = 180 - x), _ = et(Math.sqrt(G * G + q * q + V * V)), m = et(Math.sqrt(Q * Q + Rt * Rt)), P = ce(it, Q), y = Math.abs(P) > 2e-4 ? P * ie : 0, S = ct ? 1 / (ct < 0 ? -ct : ct) : 0), i.svg && (Y = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !Tn(bt(t, K)), Y && t.setAttribute("transform", Y))), Math.abs(y) > 90 && Math.abs(y) < 270 && (n ? (_ *= -1, y += h <= 0 ? 180 : -180, h += h <= 0 ? 180 : -180) : (m *= -1, y += y <= 0 ? 180 : -180)), e = e || i.uncache, i.x = f - ((i.xPercent = f && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-f) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = d - ((i.yPercent = d && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-d) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = p + s, i.scaleX = et(_), i.scaleY = et(m), i.rotation = et(h) + o, i.rotationX = et(v) + o, i.rotationY = et(x) + o, i.skewX = y + o, i.skewY = T + o, i.transformPerspective = S + s, (i.zOrigin = parseFloat(c.split(" ")[2]) || !e && i.zOrigin || 0) && (r[_t] = Je(c)), i.xOffset = i.yOffset = 0, i.force3D = wt.force3D, i.renderTransform = i.svg ? fo : yn ? Sn : lo, i.uncache = 0, i;
1916
+ }, Je = function(t) {
1917
1917
  return (t = t.split(" "))[0] + " " + t[1];
1918
- }, ri = function(t, e, i) {
1919
- var r = nt(e);
1920
- return J(parseFloat(e) + parseFloat(qt(t, "x", i + "px", r))) + r;
1921
- }, Ps = function(t, e) {
1922
- e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, Jr(t, e);
1923
- }, $t = "0deg", ge = "0px", jt = ") ", Jr = function(t, e) {
1924
- var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, o = i.y, a = i.z, f = i.rotation, u = i.rotationY, _ = i.rotationX, d = i.skewX, g = i.skewY, m = i.scaleX, h = i.scaleY, y = i.transformPerspective, x = i.force3D, v = i.target, w = i.zOrigin, b = "", T = x === "auto" && t && t !== 1 || x === !0;
1925
- if (w && (_ !== $t || u !== $t)) {
1926
- var M = parseFloat(u) * fe, S = Math.sin(M), C = Math.cos(M), k;
1927
- M = parseFloat(_) * fe, k = Math.cos(M), s = ri(v, s, S * k * -w), o = ri(v, o, -Math.sin(M) * -w), a = ri(v, a, C * k * -w + w);
1918
+ }, vi = function(t, e, i) {
1919
+ var r = at(e);
1920
+ return et(parseFloat(e) + parseFloat(Qt(t, "x", i + "px", r))) + r;
1921
+ }, lo = function(t, e) {
1922
+ e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, Sn(t, e);
1923
+ }, te = "0deg", Te = "0px", ee = ") ", Sn = function(t, e) {
1924
+ var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, o = i.y, a = i.z, c = i.rotation, f = i.rotationY, d = i.rotationX, p = i.skewX, _ = i.skewY, m = i.scaleX, h = i.scaleY, v = i.transformPerspective, x = i.force3D, y = i.target, T = i.zOrigin, S = "", w = x === "auto" && t && t !== 1 || x === !0;
1925
+ if (T && (d !== te || f !== te)) {
1926
+ var D = parseFloat(f) * ge, k = Math.sin(D), P = Math.cos(D), M;
1927
+ D = parseFloat(d) * ge, M = Math.cos(D), s = vi(y, s, k * M * -T), o = vi(y, o, -Math.sin(D) * -T), a = vi(y, a, P * M * -T + T);
1928
1928
  }
1929
- y !== ge && (b += "perspective(" + y + jt), (r || n) && (b += "translate(" + r + "%, " + n + "%) "), (T || s !== ge || o !== ge || a !== ge) && (b += a !== ge || T ? "translate3d(" + s + ", " + o + ", " + a + ") " : "translate(" + s + ", " + o + jt), f !== $t && (b += "rotate(" + f + jt), u !== $t && (b += "rotateY(" + u + jt), _ !== $t && (b += "rotateX(" + _ + jt), (d !== $t || g !== $t) && (b += "skew(" + d + ", " + g + jt), (m !== 1 || h !== 1) && (b += "scale(" + m + ", " + h + jt), v.style[j] = b || "translate(0, 0)";
1930
- }, Ms = function(t, e) {
1931
- var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, o = i.y, a = i.rotation, f = i.skewX, u = i.skewY, _ = i.scaleX, d = i.scaleY, g = i.target, m = i.xOrigin, h = i.yOrigin, y = i.xOffset, x = i.yOffset, v = i.forceCSS, w = parseFloat(s), b = parseFloat(o), T, M, S, C, k;
1932
- a = parseFloat(a), f = parseFloat(f), u = parseFloat(u), u && (u = parseFloat(u), f += u, a += u), a || f ? (a *= fe, f *= fe, T = Math.cos(a) * _, M = Math.sin(a) * _, S = Math.sin(a - f) * -d, C = Math.cos(a - f) * d, f && (u *= fe, k = Math.tan(f - u), k = Math.sqrt(1 + k * k), S *= k, C *= k, u && (k = Math.tan(u), k = Math.sqrt(1 + k * k), T *= k, M *= k)), T = J(T), M = J(M), S = J(S), C = J(C)) : (T = _, C = d, M = S = 0), (w && !~(s + "").indexOf("px") || b && !~(o + "").indexOf("px")) && (w = qt(g, "x", s, "px"), b = qt(g, "y", o, "px")), (m || h || y || x) && (w = J(w + m - (m * T + h * S) + y), b = J(b + h - (m * M + h * C) + x)), (r || n) && (k = g.getBBox(), w = J(w + r / 100 * k.width), b = J(b + n / 100 * k.height)), k = "matrix(" + T + "," + M + "," + S + "," + C + "," + w + "," + b + ")", g.setAttribute("transform", k), v && (g.style[j] = k);
1933
- }, Os = function(t, e, i, r, n) {
1934
- var s = 360, o = it(n), a = parseFloat(n) * (o && ~n.indexOf("rad") ? Zt : 1), f = a - r, u = r + f + "deg", _, d;
1935
- return o && (_ = n.split("_")[1], _ === "short" && (f %= s, f !== f % (s / 2) && (f += f < 0 ? s : -s)), _ === "cw" && f < 0 ? f = (f + s * Ki) % s - ~~(f / s) * s : _ === "ccw" && f > 0 && (f = (f - s * Ki) % s - ~~(f / s) * s)), t._pt = d = new ht(t._pt, e, i, r, f, hs), d.e = u, d.u = "deg", t._props.push(i), d;
1936
- }, nr = function(t, e) {
1929
+ v !== Te && (S += "perspective(" + v + ee), (r || n) && (S += "translate(" + r + "%, " + n + "%) "), (w || s !== Te || o !== Te || a !== Te) && (S += a !== Te || w ? "translate3d(" + s + ", " + o + ", " + a + ") " : "translate(" + s + ", " + o + ee), c !== te && (S += "rotate(" + c + ee), f !== te && (S += "rotateY(" + f + ee), d !== te && (S += "rotateX(" + d + ee), (p !== te || _ !== te) && (S += "skew(" + p + ", " + _ + ee), (m !== 1 || h !== 1) && (S += "scale(" + m + ", " + h + ee), y.style[K] = S || "translate(0, 0)";
1930
+ }, fo = function(t, e) {
1931
+ var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, o = i.y, a = i.rotation, c = i.skewX, f = i.skewY, d = i.scaleX, p = i.scaleY, _ = i.target, m = i.xOrigin, h = i.yOrigin, v = i.xOffset, x = i.yOffset, y = i.forceCSS, T = parseFloat(s), S = parseFloat(o), w, D, k, P, M;
1932
+ a = parseFloat(a), c = parseFloat(c), f = parseFloat(f), f && (f = parseFloat(f), c += f, a += f), a || c ? (a *= ge, c *= ge, w = Math.cos(a) * d, D = Math.sin(a) * d, k = Math.sin(a - c) * -p, P = Math.cos(a - c) * p, c && (f *= ge, M = Math.tan(c - f), M = Math.sqrt(1 + M * M), k *= M, P *= M, f && (M = Math.tan(f), M = Math.sqrt(1 + M * M), w *= M, D *= M)), w = et(w), D = et(D), k = et(k), P = et(P)) : (w = d, P = p, D = k = 0), (T && !~(s + "").indexOf("px") || S && !~(o + "").indexOf("px")) && (T = Qt(_, "x", s, "px"), S = Qt(_, "y", o, "px")), (m || h || v || x) && (T = et(T + m - (m * w + h * k) + v), S = et(S + h - (m * D + h * P) + x)), (r || n) && (M = _.getBBox(), T = et(T + r / 100 * M.width), S = et(S + n / 100 * M.height)), M = "matrix(" + w + "," + D + "," + k + "," + P + "," + T + "," + S + ")", _.setAttribute("transform", M), y && (_.style[K] = M);
1933
+ }, co = function(t, e, i, r, n) {
1934
+ var s = 360, o = nt(n), a = parseFloat(n) * (o && ~n.indexOf("rad") ? ie : 1), c = a - r, f = r + c + "deg", d, p;
1935
+ return o && (d = n.split("_")[1], d === "short" && (c %= s, c !== c % (s / 2) && (c += c < 0 ? s : -s)), d === "cw" && c < 0 ? c = (c + s * xr) % s - ~~(c / s) * s : d === "ccw" && c > 0 && (c = (c - s * xr) % s - ~~(c / s) * s)), t._pt = p = new pt(t._pt, e, i, r, c, Ys), p.e = f, p.u = "deg", t._props.push(i), p;
1936
+ }, Mr = function(t, e) {
1937
1937
  for (var i in e)
1938
1938
  t[i] = e[i];
1939
1939
  return t;
1940
- }, Rs = function(t, e, i) {
1941
- var r = nr({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, o, a, f, u, _, d, g, m;
1942
- r.svg ? (f = i.getAttribute("transform"), i.setAttribute("transform", ""), s[j] = e, o = Re(i, 1), Ut(i, j), i.setAttribute("transform", f)) : (f = getComputedStyle(i)[j], s[j] = e, o = Re(i, 1), s[j] = f);
1943
- for (a in Lt)
1944
- f = r[a], u = o[a], f !== u && n.indexOf(a) < 0 && (g = nt(f), m = nt(u), _ = g !== m ? qt(i, a, f, m) : parseFloat(f), d = parseFloat(u), t._pt = new ht(t._pt, o, a, _, d - _, ci), t._pt.u = m || 0, t._props.push(a));
1945
- nr(o, r);
1940
+ }, uo = function(t, e, i) {
1941
+ var r = Mr({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, o, a, c, f, d, p, _, m;
1942
+ r.svg ? (c = i.getAttribute("transform"), i.setAttribute("transform", ""), s[K] = e, o = Fe(i, 1), Kt(i, K), i.setAttribute("transform", c)) : (c = getComputedStyle(i)[K], s[K] = e, o = Fe(i, 1), s[K] = c);
1943
+ for (a in qt)
1944
+ c = r[a], f = o[a], c !== f && n.indexOf(a) < 0 && (_ = at(c), m = at(f), d = _ !== m ? Qt(i, a, c, m) : parseFloat(c), p = parseFloat(f), t._pt = new pt(t._pt, o, a, d, p - d, Pi), t._pt.u = m || 0, t._props.push(a));
1945
+ Mr(o, r);
1946
1946
  };
1947
- ut("padding,margin,Width,Radius", function(l, t) {
1947
+ dt("padding,margin,Width,Radius", function(l, t) {
1948
1948
  var e = "Top", i = "Right", r = "Bottom", n = "Left", s = (t < 3 ? [e, i, r, n] : [e + n, e + i, r + i, r + n]).map(function(o) {
1949
1949
  return t < 2 ? l + o : "border" + o + l;
1950
1950
  });
1951
- He[t > 1 ? "border" + l : l] = function(o, a, f, u, _) {
1952
- var d, g;
1951
+ Qe[t > 1 ? "border" + l : l] = function(o, a, c, f, d) {
1952
+ var p, _;
1953
1953
  if (arguments.length < 4)
1954
- return d = s.map(function(m) {
1955
- return Et(o, m, f);
1956
- }), g = d.join(" "), g.split(d[0]).length === 5 ? d[0] : g;
1957
- d = (u + "").split(" "), g = {}, s.forEach(function(m, h) {
1958
- return g[m] = d[h] = d[h] || d[(h - 1) / 2 | 0];
1959
- }), o.init(a, g, _);
1954
+ return p = s.map(function(m) {
1955
+ return Wt(o, m, c);
1956
+ }), _ = p.join(" "), _.split(p[0]).length === 5 ? p[0] : _;
1957
+ p = (f + "").split(" "), _ = {}, s.forEach(function(m, h) {
1958
+ return _[m] = p[h] = p[h] || p[(h - 1) / 2 | 0];
1959
+ }), o.init(a, _, d);
1960
1960
  };
1961
1961
  });
1962
- var tn = {
1962
+ var kn = {
1963
1963
  name: "css",
1964
- register: di,
1964
+ register: Ri,
1965
1965
  targetTest: function(t) {
1966
1966
  return t.style && t.nodeType;
1967
1967
  },
1968
1968
  init: function(t, e, i, r, n) {
1969
- var s = this._props, o = t.style, a = i.vars.startAt, f, u, _, d, g, m, h, y, x, v, w, b, T, M, S, C, k;
1970
- Ri || di(), this.styles = this.styles || Gr(t), C = this.styles.props, this.tween = i;
1969
+ var s = this._props, o = t.style, a = i.vars.startAt, c, f, d, p, _, m, h, v, x, y, T, S, w, D, k, P, M;
1970
+ Xi || Ri(), this.styles = this.styles || vn(t), P = this.styles.props, this.tween = i;
1971
1971
  for (h in e)
1972
- if (h !== "autoRound" && (u = e[h], !(dt[h] && Nr(h, e, i, r, t, n)))) {
1973
- if (g = typeof u, m = He[h], g === "function" && (u = u.call(i, r, t, n), g = typeof u), g === "string" && ~u.indexOf("random(") && (u = ke(u)), m)
1974
- m(this, t, h, u, i) && (S = 1);
1972
+ if (h !== "autoRound" && (f = e[h], !(vt[h] && ln(h, e, i, r, t, n)))) {
1973
+ if (_ = typeof f, m = Qe[h], _ === "function" && (f = f.call(i, r, t, n), _ = typeof f), _ === "string" && ~f.indexOf("random(") && (f = De(f)), m)
1974
+ m(this, t, h, f, i) && (k = 1);
1975
1975
  else if (h.substr(0, 2) === "--")
1976
- f = (getComputedStyle(t).getPropertyValue(h) + "").trim(), u += "", Vt.lastIndex = 0, Vt.test(f) || (y = nt(f), x = nt(u), x ? y !== x && (f = qt(t, h, f, x) + x) : y && (u += y)), this.add(o, "setProperty", f, u, r, n, 0, 0, h), s.push(h), C.push(h, 0, o[h]);
1977
- else if (g !== "undefined") {
1978
- if (a && h in a ? (f = typeof a[h] == "function" ? a[h].call(i, r, t, n) : a[h], it(f) && ~f.indexOf("random(") && (f = ke(f)), nt(f + "") || f === "auto" || (f += yt.units[h] || nt(Et(t, h)) || ""), (f + "").charAt(1) === "=" && (f = Et(t, h))) : f = Et(t, h), d = parseFloat(f), v = g === "string" && u.charAt(1) === "=" && u.substr(0, 2), v && (u = u.substr(2)), _ = parseFloat(u), h in Mt && (h === "autoAlpha" && (d === 1 && Et(t, "visibility") === "hidden" && _ && (d = 0), C.push("visibility", 0, o.visibility), Bt(this, o, "visibility", d ? "inherit" : "hidden", _ ? "inherit" : "hidden", !_)), h !== "scale" && h !== "transform" && (h = Mt[h], ~h.indexOf(",") && (h = h.split(",")[0]))), w = h in Lt, w) {
1979
- if (this.styles.save(h), k = u, g === "string" && u.substring(0, 6) === "var(--") {
1980
- if (u = mt(t, u.substring(4, u.indexOf(")"))), u.substring(0, 5) === "calc(") {
1981
- var E = t.style.perspective;
1982
- t.style.perspective = u, u = mt(t, "perspective"), E ? t.style.perspective = E : Ut(t, "perspective");
1976
+ c = (getComputedStyle(t).getPropertyValue(h) + "").trim(), f += "", jt.lastIndex = 0, jt.test(c) || (v = at(c), x = at(f), x ? v !== x && (c = Qt(t, h, c, x) + x) : v && (f += v)), this.add(o, "setProperty", c, f, r, n, 0, 0, h), s.push(h), P.push(h, 0, o[h]);
1977
+ else if (_ !== "undefined") {
1978
+ if (a && h in a ? (c = typeof a[h] == "function" ? a[h].call(i, r, t, n) : a[h], nt(c) && ~c.indexOf("random(") && (c = De(c)), at(c + "") || c === "auto" || (c += wt.units[h] || at(Wt(t, h)) || ""), (c + "").charAt(1) === "=" && (c = Wt(t, h))) : c = Wt(t, h), p = parseFloat(c), y = _ === "string" && f.charAt(1) === "=" && f.substr(0, 2), y && (f = f.substr(2)), d = parseFloat(f), h in zt && (h === "autoAlpha" && (p === 1 && Wt(t, "visibility") === "hidden" && d && (p = 0), P.push("visibility", 0, o.visibility), Xt(this, o, "visibility", p ? "inherit" : "hidden", d ? "inherit" : "hidden", !d)), h !== "scale" && h !== "transform" && (h = zt[h], ~h.indexOf(",") && (h = h.split(",")[0]))), T = h in qt, T) {
1979
+ if (this.styles.save(h), M = f, _ === "string" && f.substring(0, 6) === "var(--") {
1980
+ if (f = bt(t, f.substring(4, f.indexOf(")"))), f.substring(0, 5) === "calc(") {
1981
+ var z = t.style.perspective;
1982
+ t.style.perspective = f, f = bt(t, "perspective"), z ? t.style.perspective = z : Kt(t, "perspective");
1983
1983
  }
1984
- _ = parseFloat(u);
1984
+ d = parseFloat(f);
1985
1985
  }
1986
- if (b || (T = t._gsap, T.renderTransform && !e.parseTransform || Re(t, e.parseTransform), M = e.smoothOrigin !== !1 && T.smooth, b = this._pt = new ht(this._pt, o, j, 0, 1, T.renderTransform, T, 0, -1), b.dep = 1), h === "scale")
1987
- this._pt = new ht(this._pt, T, "scaleY", T.scaleY, (v ? ae(T.scaleY, v + _) : _) - T.scaleY || 0, ci), this._pt.u = 0, s.push("scaleY", h), h += "X";
1986
+ if (S || (w = t._gsap, w.renderTransform && !e.parseTransform || Fe(t, e.parseTransform), D = e.smoothOrigin !== !1 && w.smooth, S = this._pt = new pt(this._pt, o, K, 0, 1, w.renderTransform, w, 0, -1), S.dep = 1), h === "scale")
1987
+ this._pt = new pt(this._pt, w, "scaleY", w.scaleY, (y ? pe(w.scaleY, y + d) : d) - w.scaleY || 0, Pi), this._pt.u = 0, s.push("scaleY", h), h += "X";
1988
1988
  else if (h === "transformOrigin") {
1989
- C.push(ct, 0, o[ct]), u = ks(u), T.svg ? pi(t, u, 0, M, 0, this) : (x = parseFloat(u.split(" ")[2]) || 0, x !== T.zOrigin && Bt(this, T, "zOrigin", T.zOrigin, x), Bt(this, o, h, Xe(f), Xe(u)));
1989
+ P.push(_t, 0, o[_t]), f = oo(f), w.svg ? Ei(t, f, 0, D, 0, this) : (x = parseFloat(f.split(" ")[2]) || 0, x !== w.zOrigin && Xt(this, w, "zOrigin", w.zOrigin, x), Xt(this, o, h, Je(c), Je(f)));
1990
1990
  continue;
1991
1991
  } else if (h === "svgOrigin") {
1992
- pi(t, u, 1, M, 0, this);
1992
+ Ei(t, f, 1, D, 0, this);
1993
1993
  continue;
1994
- } else if (h in Kr) {
1995
- Os(this, T, h, d, v ? ae(d, v + u) : u);
1994
+ } else if (h in wn) {
1995
+ co(this, w, h, p, y ? pe(p, y + f) : f);
1996
1996
  continue;
1997
1997
  } else if (h === "smoothOrigin") {
1998
- Bt(this, T, "smooth", T.smooth, u);
1998
+ Xt(this, w, "smooth", w.smooth, f);
1999
1999
  continue;
2000
2000
  } else if (h === "force3D") {
2001
- T[h] = u;
2001
+ w[h] = f;
2002
2002
  continue;
2003
2003
  } else if (h === "transform") {
2004
- Rs(this, u, t);
2004
+ uo(this, f, t);
2005
2005
  continue;
2006
2006
  }
2007
- } else h in o || (h = de(h) || h);
2008
- if (w || (_ || _ === 0) && (d || d === 0) && !us.test(u) && h in o)
2009
- y = (f + "").substr((d + "").length), _ || (_ = 0), x = nt(u) || (h in yt.units ? yt.units[h] : y), y !== x && (d = qt(t, h, f, x)), this._pt = new ht(this._pt, w ? T : o, h, d, (v ? ae(d, v + _) : _) - d, !w && (x === "px" || h === "zIndex") && e.autoRound !== !1 ? ds : ci), this._pt.u = x || 0, w && k !== u ? (this._pt.b = f, this._pt.e = k, this._pt.r = _s) : y !== x && x !== "%" && (this._pt.b = f, this._pt.r = cs);
2007
+ } else h in o || (h = be(h) || h);
2008
+ if (T || (d || d === 0) && (p || p === 0) && !Us.test(f) && h in o)
2009
+ v = (c + "").substr((p + "").length), d || (d = 0), x = at(f) || (h in wt.units ? wt.units[h] : v), v !== x && (p = Qt(t, h, c, x)), this._pt = new pt(this._pt, T ? w : o, h, p, (y ? pe(p, y + d) : d) - p, !T && (x === "px" || h === "zIndex") && e.autoRound !== !1 ? js : Pi), this._pt.u = x || 0, T && M !== f ? (this._pt.b = c, this._pt.e = M, this._pt.r = Gs) : v !== x && x !== "%" && (this._pt.b = c, this._pt.r = Xs);
2010
2010
  else if (h in o)
2011
- Ss.call(this, t, h, f, v ? v + u : u);
2011
+ so.call(this, t, h, c, y ? y + f : f);
2012
2012
  else if (h in t)
2013
- this.add(t, h, f || t[h], v ? v + u : u, r, n);
2013
+ this.add(t, h, c || t[h], y ? y + f : f, r, n);
2014
2014
  else if (h !== "parseTransform") {
2015
- vi(h, u);
2015
+ Fi(h, f);
2016
2016
  continue;
2017
2017
  }
2018
- w || (h in o ? C.push(h, 0, o[h]) : typeof t[h] == "function" ? C.push(h, 2, t[h]()) : C.push(h, 1, f || t[h])), s.push(h);
2018
+ T || (h in o ? P.push(h, 0, o[h]) : typeof t[h] == "function" ? P.push(h, 2, t[h]()) : P.push(h, 1, c || t[h])), s.push(h);
2019
2019
  }
2020
2020
  }
2021
- S && Yr(this);
2021
+ k && dn(this);
2022
2022
  },
2023
2023
  render: function(t, e) {
2024
- if (e.tween._time || !Di())
2024
+ if (e.tween._time || !Gi())
2025
2025
  for (var i = e._pt; i; )
2026
2026
  i.r(t, i.d), i = i._next;
2027
2027
  else
2028
2028
  e.styles.revert();
2029
2029
  },
2030
- get: Et,
2031
- aliases: Mt,
2030
+ get: Wt,
2031
+ aliases: zt,
2032
2032
  getSetter: function(t, e, i) {
2033
- var r = Mt[e];
2034
- return r && r.indexOf(",") < 0 && (e = r), e in Lt && e !== ct && (t._gsap.x || Et(t, "x")) ? i && Zi === i ? e === "scale" ? ys : ms : (Zi = i || {}) && (e === "scale" ? xs : vs) : t.style && !mi(t.style[e]) ? ps : ~e.indexOf("-") ? gs : Mi(t, e);
2033
+ var r = zt[e];
2034
+ return r && r.indexOf(",") < 0 && (e = r), e in qt && e !== _t && (t._gsap.x || Wt(t, "x")) ? i && yr === i ? e === "scale" ? Js : Qs : (yr = i || {}) && (e === "scale" ? to : eo) : t.style && !Ai(t.style[e]) ? Zs : ~e.indexOf("-") ? Ks : Ui(t, e);
2035
2035
  },
2036
2036
  core: {
2037
- _removeProperty: Ut,
2038
- _getMatrix: Ai
2037
+ _removeProperty: Kt,
2038
+ _getMatrix: Zi
2039
2039
  }
2040
2040
  };
2041
- _t.utils.checkPrefix = de;
2042
- _t.core.getStyleSaver = Gr;
2041
+ gt.utils.checkPrefix = be;
2042
+ gt.core.getStyleSaver = vn;
2043
2043
  (function(l, t, e, i) {
2044
- var r = ut(l + "," + t + "," + e, function(n) {
2045
- Lt[n] = 1;
2044
+ var r = dt(l + "," + t + "," + e, function(n) {
2045
+ qt[n] = 1;
2046
2046
  });
2047
- ut(t, function(n) {
2048
- yt.units[n] = "deg", Kr[n] = 1;
2049
- }), Mt[r[13]] = l + "," + t, ut(i, function(n) {
2047
+ dt(t, function(n) {
2048
+ wt.units[n] = "deg", wn[n] = 1;
2049
+ }), zt[r[13]] = l + "," + t, dt(i, function(n) {
2050
2050
  var s = n.split(":");
2051
- Mt[s[1]] = r[s[0]];
2051
+ zt[s[1]] = r[s[0]];
2052
2052
  });
2053
2053
  })("x,y,z,scale,scaleX,scaleY,xPercent,yPercent", "rotation,rotationX,rotationY,skewX,skewY", "transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective", "0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");
2054
- ut("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(l) {
2055
- yt.units[l] = "px";
2054
+ dt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(l) {
2055
+ wt.units[l] = "px";
2056
2056
  });
2057
- _t.registerPlugin(tn);
2058
- var Fe = _t.registerPlugin(tn) || _t;
2059
- Fe.core.Tween;
2060
- const Ds = `
2061
- .vpb-root{position:relative;width:100%;overflow-x:clip;color:#2c2e3a;font-family:system-ui,'Segoe UI',Roboto,sans-serif;}
2057
+ gt.registerPlugin(kn);
2058
+ var It = gt.registerPlugin(kn) || gt;
2059
+ It.core.Tween;
2060
+ const yi = `
2061
+ @layer vue-pointer-boxes {
2062
+ /* ================= 根节点 ================= */
2063
+ .vpb-root{position:relative;width:100%;overflow-x:clip;color:var(--vpb-color,inherit);font-family:var(--vpb-font-family,inherit);font-size:var(--vpb-root-font-size,inherit);line-height:var(--vpb-line-height,inherit);}
2064
+ .vpb-root.vpb-hide-cursor{cursor:none;}
2065
+
2066
+ /* ================= 指针层 ================= */
2062
2067
  .vpb-pointer-layer{position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;overflow:hidden;z-index:var(--vpb-pointer-z,9999);}
2063
- .vpb-box{/* 用户写的元素:占位容器,不动 */}
2064
- .vpb-box.show{/* 父 box 被激活时给个整体标记 */}
2065
- .vpb-inner{position:absolute;left:0;top:0;background:#fff;box-shadow:0 4px 14px rgba(40,50,80,.08);display:flex;align-items:center;justify-content:center;font-weight:500;color:#5a5e75;border:1px solid rgba(120,130,170,.15);overflow:hidden;opacity:0;transition:opacity .5s ease,box-shadow .3s ease;will-change:left,top,width,height,border-radius;pointer-events:none;user-select:none;box-sizing:border-box;}
2066
- .vpb-box.show .vpb-inner{opacity:1;}
2067
- .vpb-box.dragging .vpb-inner{box-shadow:0 10px 36px rgba(70,120,200,.28),0 0 0 2px rgba(100,160,255,.5);border-color:rgba(100,160,255,.4);}
2068
- .vpb-box.done .vpb-inner{box-shadow:0 14px 40px rgba(70,180,140,.3),0 0 0 2px rgba(100,200,160,.55);border-color:rgba(100,200,160,.45);color:#3a7a65;}
2069
- .vpb-inner .vpb-text{white-space:nowrap;pointer-events:none;user-select:none;}
2070
- .vpb-box.big-text-box .vpb-inner .vpb-text{white-space:normal;text-align:justify;line-height:1.65;font-size:.82rem;letter-spacing:.3px;}
2071
- .vpb-cursor-mock{position:absolute;width:var(--vpb-pointer-size,26px);height:var(--vpb-pointer-size,26px);pointer-events:none;transform:translate(-50%,-50%);opacity:var(--vpb-idle-opacity,.35);filter:drop-shadow(0 0 3px currentColor);will-change:left,top,opacity,filter;transition:opacity .25s ease,filter .25s ease,width .25s ease,height .25s ease;}
2068
+ /* 静止态不加 filter:每个指针都是一个独立的合成层,高斯模糊会让它每帧重新栅格化,
2069
+ 指针越多开销越大(20 个指针足以吃掉三分之一的主线程)。想要旧版的柔和光晕,
2070
+ 宿主写 --vpb-idle-glow: drop-shadow(0 0 3px currentColor) 即可恢复 */
2071
+ .vpb-cursor-mock{position:absolute;left:0;top:0;width:var(--vpb-pointer-size,26px);height:var(--vpb-pointer-size,26px);pointer-events:none;transform:translate(-50%,-50%);opacity:var(--vpb-idle-opacity,.35);filter:var(--vpb-idle-glow,none);will-change:transform,opacity;transition:opacity .25s ease,filter .25s ease,width .25s ease,height .25s ease;}
2072
2072
  .vpb-cursor-mock svg{display:block;width:100%;height:100%;overflow:visible;}
2073
2073
  .vpb-cursor-mock svg path{fill:currentColor;stroke:#e8eaf2;stroke-width:1;stroke-linejoin:round;stroke-opacity:.7;}
2074
2074
  .vpb-cursor-mock.near{opacity:var(--vpb-near-opacity,.75);filter:drop-shadow(0 0 10px currentColor) brightness(1.4);}
2075
2075
  .vpb-cursor-mock.dragging{width:var(--vpb-pointer-drag-size,38px);height:var(--vpb-pointer-drag-size,38px);opacity:1;filter:drop-shadow(0 0 16px currentColor) drop-shadow(0 0 32px currentColor) brightness(1.7);}
2076
2076
  .vpb-cursor-mock.dragging svg path{stroke:#fff;stroke-opacity:.95;}
2077
2077
  .vpb-cursor-mock.typing-cursor svg{display:none;}
2078
- .vpb-cursor-mock.typing-cursor{width:2px;height:1.3em;opacity:1;filter:none;background:#3a7a65;border-radius:1px;animation:vpb-type-blink .6s step-end infinite;transform:translate(-50%,-.65em);}
2078
+ .vpb-cursor-mock.typing-cursor{width:2px;height:1.3em;opacity:1;filter:none;background:var(--vpb-caret-color,#3a7a65);border-radius:1px;animation:vpb-type-blink .6s step-end infinite;transform:translate(-50%,-.65em);}
2079
2079
  @keyframes vpb-type-blink{0%,100%{opacity:1}50%{opacity:0}}
2080
2080
  .vpb-drag-line{position:absolute;pointer-events:none;height:2px;background:linear-gradient(90deg,rgba(100,160,255,0),rgba(100,160,255,.85));transform-origin:0 50%;opacity:0;}
2081
+
2082
+ /* ================= 元素容器 ================= */
2083
+ .vpb-box{/* 用户自己写的元素:只做占位,不改它的排版 */}
2084
+ .vpb-box.show{/* 父 box 被激活时给个整体标记 */}
2085
+ .vpb-inner{position:absolute;left:0;top:0;background:var(--vpb-inner-bg,#fff);box-shadow:0 4px 14px rgba(40,50,80,.08);display:flex;align-items:center;justify-content:center;font-family:inherit;font-size:inherit;font-weight:var(--vpb-font-weight,inherit);font-style:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;color:var(--vpb-text-color,#5a5e75);border:1px solid rgba(120,130,170,.15);overflow:hidden;opacity:0;transition:opacity .5s ease,box-shadow .3s ease;pointer-events:none;user-select:none;box-sizing:border-box;}
2086
+ /* will-change 只在真正拖拽的那个盒子上开(同时几十个盒子都开 = 同数量的合成层) */
2087
+ .vpb-box.dragging .vpb-inner{will-change:left,top,width,height,border-radius;}
2088
+ .vpb-box.show .vpb-inner{opacity:1;}
2089
+ .vpb-box.dragging .vpb-inner{box-shadow:0 10px 36px rgba(70,120,200,.28),0 0 0 2px rgba(100,160,255,.5);border-color:rgba(100,160,255,.4);}
2090
+ .vpb-box.done .vpb-inner{box-shadow:0 14px 40px rgba(70,180,140,.3),0 0 0 2px rgba(100,200,160,.55);border-color:rgba(100,200,160,.45);color:var(--vpb-done-color,#3a7a65);}
2091
+
2092
+ /* ================= 文本:继承宿主字体 ================= */
2093
+ .vpb-inner .vpb-text{display:block;pointer-events:none;user-select:none;font-family:inherit;font-size:var(--vpb-font-size,inherit);font-weight:inherit;font-style:inherit;line-height:var(--vpb-line-height,inherit);letter-spacing:inherit;color:inherit;text-align:inherit;white-space:nowrap;}
2094
+ .vpb-inner .vpb-char{display:inline-block;white-space:pre;font:inherit;color:inherit;letter-spacing:inherit;vertical-align:baseline;}
2095
+ .vpb-box.big-text-box .vpb-inner .vpb-text{white-space:normal;text-align:justify;line-height:var(--vpb-big-line-height,inherit);font-size:var(--vpb-big-font-size,inherit);letter-spacing:var(--vpb-big-letter-spacing,inherit);}
2096
+ .vpb-box.dragging .vpb-inner .vpb-text{font-size:var(--vpb-drag-font-size,.9rem);}
2097
+
2098
+ /* ================= 富文本(HTML / Markdown) ================= */
2099
+ .vpb-inner.vpb-rich-inner{display:block;text-align:left;padding:var(--vpb-rich-padding,0);}
2100
+ .vpb-box.big-text-box .vpb-inner.vpb-rich-inner .vpb-text{text-align:left;line-height:var(--vpb-rich-line-height,inherit);font-size:var(--vpb-rich-font-size,inherit);letter-spacing:inherit;}
2101
+ .vpb-inner.vpb-rich-inner .vpb-text{display:block;width:100%;height:100%;overflow:hidden;white-space:normal;overflow-wrap:break-word;word-break:break-word;text-align:left;scrollbar-width:none;-ms-overflow-style:none;}
2102
+ /* 兜底:宿主给了固定高度、内容确实超出时仍可滚动,但不显示滚动条 */
2103
+ .vpb-inner.vpb-rich-inner .vpb-text::-webkit-scrollbar{width:0;height:0;display:none;}
2104
+ .vpb-box.done .vpb-inner.vpb-rich-inner .vpb-text{overflow:auto;}
2105
+ /* 高度自适应的卡片内容不会溢出,保持 hidden:滚轮不被卡片吃掉,直接滚页面 */
2106
+ .vpb-box.vpb-auto-height.done .vpb-inner.vpb-rich-inner .vpb-text{overflow:hidden;}
2107
+ /* 拖拽中的盒子只显示占位符,正文用 display:none 摘出布局(见 PointerBoxes.vue startDrag):
2108
+ 富文本内容不再跟着每帧变化的宽高重排 */
2109
+ .vpb-box.dragging .vpb-inner.vpb-rich-inner .vpb-text{display:none;}
2110
+ .vpb-box.vpb-interactive.done .vpb-inner{pointer-events:auto;user-select:text;}
2111
+ .vpb-box.vpb-interactive.done .vpb-inner .vpb-text,
2112
+ .vpb-box.vpb-interactive.done .vpb-inner .vpb-char{pointer-events:auto;user-select:text;-webkit-user-select:text;}
2113
+ /* 富文本拖拽中只显示占位符,结构本身不能动 */
2114
+ .vpb-inner .vpb-placeholder{display:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:var(--vpb-drag-font-size,.9rem);opacity:.5;pointer-events:none;}
2115
+ .vpb-box.dragging .vpb-inner .vpb-placeholder{display:block;}
2116
+ .vpb-node{will-change:opacity;}
2117
+
2118
+ /* 富文本内部排版:字号全部用 em,跟随宿主字号缩放 */
2119
+ .vpb-rich>*:first-child{margin-top:0;}
2120
+ .vpb-rich>*:last-child{margin-bottom:0;}
2121
+ .vpb-rich p{margin:0 0 .7em;}
2122
+ .vpb-rich h1,.vpb-rich h2,.vpb-rich h3,.vpb-rich h4,.vpb-rich h5,.vpb-rich h6{margin:0 0 .5em;font-weight:700;line-height:1.3;letter-spacing:inherit;}
2123
+ .vpb-rich h1{font-size:1.7em;}
2124
+ .vpb-rich h2{font-size:1.4em;}
2125
+ .vpb-rich h3{font-size:1.2em;}
2126
+ .vpb-rich h4{font-size:1.05em;}
2127
+ .vpb-rich h5,.vpb-rich h6{font-size:1em;}
2128
+ .vpb-rich ul,.vpb-rich ol{margin:0 0 .7em;padding-left:1.4em;}
2129
+ .vpb-rich li{margin:.15em 0;}
2130
+ .vpb-rich blockquote{margin:.5em 0;padding:.1em 0 .1em .8em;border-left:3px solid var(--vpb-quote-border,rgba(120,130,170,.35));opacity:.85;}
2131
+ .vpb-rich a{color:var(--vpb-link-color,inherit);text-decoration:underline;text-underline-offset:2px;}
2132
+ .vpb-rich strong,.vpb-rich b{font-weight:700;}
2133
+ .vpb-rich em,.vpb-rich i{font-style:italic;}
2134
+ .vpb-rich del{text-decoration:line-through;opacity:.7;}
2135
+ .vpb-rich code{font-family:var(--vpb-mono-font,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace);font-size:.9em;background:var(--vpb-code-bg,rgba(120,130,170,.14));border-radius:4px;padding:.1em .35em;}
2136
+ /* Markdown 内容包在 .vpb-md-body 里,方便子 box(代码块)跟着结构一起走 */
2137
+ .vpb-rich .vpb-md-body>*:last-child{margin-bottom:0;}
2138
+ .vpb-rich pre{margin:0 0 .7em;padding:.7em .9em;overflow:auto;background:var(--vpb-pre-bg,rgba(120,130,170,.12));border-radius:8px;line-height:1.6;}
2139
+ .vpb-rich pre code{background:none;padding:0;font-size:.88em;white-space:pre;}
2140
+ /* Markdown 围栏代码块:自身就是一个 .vpb-box,由指针单独拖开 */
2141
+ /* 用 .vpb-box 前缀(而非 .vpb-rich 后代)保证它脱离富文本流时字号 / 行高也一致,
2142
+ 这样代码块的高度能在预渲染阶段就量准,父级卡片据此平铺 */
2143
+ .vpb-box.vpb-md-code{margin:0 0 .9em;padding:0;background:none;border:0;overflow:visible;box-sizing:border-box;font-family:var(--vpb-mono-font,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace);font-size:var(--vpb-md-code-font-size,.78rem);line-height:var(--vpb-md-code-line-height,1.7);white-space:pre;}
2144
+ .vpb-box.vpb-md-code .vpb-inner{padding:var(--vpb-md-code-padding,12px 14px);justify-content:flex-start;}
2145
+ .vpb-box.vpb-md-code .vpb-inner .vpb-text{white-space:pre;overflow:auto;text-align:left;scrollbar-width:none;-ms-overflow-style:none;}
2146
+ .vpb-box.vpb-md-code .vpb-inner .vpb-text::-webkit-scrollbar{width:0;height:0;display:none;}
2147
+ .vpb-box.vpb-md-code.done .vpb-inner .vpb-text{overflow:auto;}
2148
+ .vpb-rich img{display:block;max-width:100%;height:auto;margin:.4em 0;border-radius:6px;}
2149
+ .vpb-rich hr{margin:.9em 0;border:0;border-top:1px solid var(--vpb-hr-color,rgba(120,130,170,.3));}
2150
+ .vpb-rich table{width:100%;border-collapse:collapse;margin:0 0 .7em;font-size:.92em;}
2151
+ .vpb-rich th,.vpb-rich td{border:1px solid var(--vpb-table-border,rgba(120,130,170,.3));padding:.35em .5em;text-align:left;}
2152
+
2153
+ /* ================= 提示 ================= */
2081
2154
  .vpb-hint{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:rgba(255,255,255,.9);padding:10px 22px;border-radius:40px;font-size:.8rem;color:#6b6f85;border:1px solid rgba(120,130,170,.18);box-shadow:0 4px 16px rgba(40,50,80,.08);pointer-events:none;letter-spacing:1px;z-index:10000;}
2082
2155
  @media(max-width:600px){.vpb-hint{font-size:.7rem;width:85%;text-align:center}}
2083
- `, sr = "vpb-injected-styles";
2084
- function Es() {
2085
- if (typeof document > "u" || document.getElementById(sr)) return;
2086
- const l = document.createElement("style");
2087
- l.id = sr, l.textContent = Ds, document.head.appendChild(l);
2088
2156
  }
2089
- const As = {
2157
+ `, Pr = "vpb-injected-styles";
2158
+ function ho() {
2159
+ if (typeof document > "u") return;
2160
+ const l = document.getElementById(Pr);
2161
+ if (l) {
2162
+ l.textContent !== yi && (l.textContent = yi);
2163
+ return;
2164
+ }
2165
+ const t = document.createElement("style");
2166
+ t.id = Pr, t.textContent = yi, document.head.appendChild(t);
2167
+ }
2168
+ const po = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Cn = (l) => String(l).replace(/[&<>"']/g, (t) => po[t]), _o = (l) => !l.trim(), Mn = (l) => /^\s{0,3}(`{3,}|~{3,})/.test(l), Pn = (l) => /^\s{0,3}#{1,6}\s/.test(l), Di = (l) => /^\s{0,3}>/.test(l), On = (l) => /^\s{0,3}([-*_])(\s*\1){2,}\s*$/.test(l), Rn = (l) => /^\s{0,3}([-*+]|\d{1,9}[.)])\s+/.test(l), go = (l) => Mn(l) || Pn(l) || Di(l) || On(l) || Rn(l), qe = (l) => l.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((t) => t.trim()), mo = (l) => /\|/.test(l) && qe(l).every((t) => /^:?-{1,}:?$/.test(t));
2169
+ function ue(l) {
2170
+ const t = [], e = (r) => (t.push(r), `\0${t.length - 1}\0`);
2171
+ let i = Cn(l);
2172
+ return i = i.replace(/`([^`\n]+)`/g, (r, n) => e(`<code>${n}</code>`)), i = i.replace(
2173
+ /!\[([^\]]*)\]\(([^)\s]+)\)/g,
2174
+ (r, n, s) => e(`<img src="${s}" alt="${n}" loading="lazy">`)
2175
+ ), i = i.replace(/\[([^\]]+)\]\(([^)\s]+)\)/g, (r, n, s) => e(`<a href="${s}"${/^(https?:)?\/\//i.test(s) ? ' target="_blank" rel="noopener noreferrer"' : ""}>${n}</a>`)), i = i.replace(/\*\*([^*\n]+)\*\*/g, "<strong>$1</strong>"), i = i.replace(/__([^_\n]+)__/g, "<strong>$1</strong>"), i = i.replace(/~~([^~\n]+)~~/g, "<del>$1</del>"), i = i.replace(/(^|[^*])\*([^*\n]+)\*/g, "$1<em>$2</em>"), i = i.replace(/(^|[^_\w])_([^_\n]+)_/g, "$1<em>$2</em>"), i = i.replace(/\n/g, "<br>"), i.replace(/\u0000(\d+)\u0000/g, (r, n) => t[Number(n)]);
2176
+ }
2177
+ const Or = ["br", "tr", "bl", "tl"];
2178
+ function vo(l, t = {}) {
2179
+ const e = t || {}, i = !!e.codeBoxes;
2180
+ let r = 0;
2181
+ const n = String(l ?? "").replace(/\r\n?/g, `
2182
+ `).split(`
2183
+ `), s = [];
2184
+ let o = null, a = 0;
2185
+ const c = () => {
2186
+ o && (s.push(`</${o}>`), o = null);
2187
+ };
2188
+ for (; a < n.length; ) {
2189
+ const f = n[a];
2190
+ if (Mn(f)) {
2191
+ const p = f.match(/^\s{0,3}(`{3,}|~{3,})\s*([\w+#.-]*)/), _ = p[1][0], m = p[1].length, h = p[2], v = [];
2192
+ for (a++; a < n.length; ) {
2193
+ const y = n[a].match(/^\s{0,3}(`{3,}|~{3,})\s*$/);
2194
+ if (y && y[1][0] === _ && y[1].length >= m) break;
2195
+ v.push(n[a]), a++;
2196
+ }
2197
+ a++, c();
2198
+ const x = Cn(v.join(`
2199
+ `));
2200
+ if (i) {
2201
+ const y = e.codeDir || Or[r++ % Or.length];
2202
+ s.push(
2203
+ `<pre class="vpb-box vpb-md-code" data-dir="${y}" data-radius="12" data-growth-rate="${e.codeGrowthRate || 5}" data-stagger="${e.codeStagger || 0.012}"${h ? ` data-lang="${h}"` : ""}>${x}</pre>`
2204
+ );
2205
+ } else
2206
+ s.push(`<pre><code${h ? ` class="language-${h}"` : ""}>${x}</code></pre>`);
2207
+ continue;
2208
+ }
2209
+ if (_o(f)) {
2210
+ c(), a++;
2211
+ continue;
2212
+ }
2213
+ if (On(f)) {
2214
+ c(), s.push("<hr>"), a++;
2215
+ continue;
2216
+ }
2217
+ if (Pn(f)) {
2218
+ const p = f.match(/^\s{0,3}(#{1,6})\s+(.*?)\s*#*\s*$/);
2219
+ c();
2220
+ const _ = p[1].length;
2221
+ s.push(`<h${_}>${ue(p[2])}</h${_}>`), a++;
2222
+ continue;
2223
+ }
2224
+ if (f.includes("|") && a + 1 < n.length && mo(n[a + 1])) {
2225
+ c();
2226
+ const p = qe(f), _ = qe(n[a + 1]).map((y) => /^:-+:$/.test(y) ? "center" : /-:$/.test(y) ? "right" : /^:-+$/.test(y) ? "left" : "");
2227
+ a += 2;
2228
+ const m = [];
2229
+ for (; a < n.length && n[a].includes("|") && n[a].trim(); )
2230
+ m.push(qe(n[a])), a++;
2231
+ const h = (y) => _[y] ? ` style="text-align:${_[y]}"` : "", v = `<thead><tr>${p.map((y, T) => `<th${h(T)}>${ue(y)}</th>`).join("")}</tr></thead>`, x = m.length ? `<tbody>${m.map((y) => `<tr>${y.map((T, S) => `<td${h(S)}>${ue(T)}</td>`).join("")}</tr>`).join("")}</tbody>` : "";
2232
+ s.push(`<table>${v}${x}</table>`);
2233
+ continue;
2234
+ }
2235
+ if (Di(f)) {
2236
+ c();
2237
+ const p = [];
2238
+ for (; a < n.length && Di(n[a]); )
2239
+ p.push(n[a].replace(/^\s{0,3}>\s?/, "")), a++;
2240
+ s.push(`<blockquote>${ue(p.join(`
2241
+ `))}</blockquote>`);
2242
+ continue;
2243
+ }
2244
+ if (Rn(f)) {
2245
+ const p = f.match(/^\s{0,3}([-*+]|\d{1,9}[.)])\s+(.*)$/), _ = /\d/.test(p[1]) ? "ol" : "ul";
2246
+ o !== _ && (c(), s.push(`<${_}>`), o = _), s.push(`<li>${ue(p[2])}</li>`), a++;
2247
+ continue;
2248
+ }
2249
+ c();
2250
+ const d = [f.trim()];
2251
+ for (a++; a < n.length && n[a].trim() && !go(n[a]); )
2252
+ d.push(n[a].trim()), a++;
2253
+ s.push(`<p>${d.map((p) => ue(p)).join("<br>")}</p>`);
2254
+ }
2255
+ return c(), s.join(`
2256
+ `);
2257
+ }
2258
+ const yo = /* @__PURE__ */ new Set(["SCRIPT", "STYLE", "NOSCRIPT", "TEMPLATE"]), xo = /* @__PURE__ */ new Set([
2259
+ "IMG",
2260
+ "PICTURE",
2261
+ "VIDEO",
2262
+ "AUDIO",
2263
+ "IFRAME",
2264
+ "CANVAS",
2265
+ "SVG",
2266
+ "HR",
2267
+ "INPUT",
2268
+ "SELECT",
2269
+ "TEXTAREA",
2270
+ "OBJECT",
2271
+ "EMBED"
2272
+ ]);
2273
+ function bo(l, t = "char") {
2274
+ const e = t === "word", i = [], r = [];
2275
+ let n = 0;
2276
+ const s = (c) => {
2277
+ const f = document.createElement("span");
2278
+ return f.className = "vpb-char", f.textContent = c, i.push(f), n++, f;
2279
+ }, o = (c, f) => {
2280
+ if (e) {
2281
+ const d = c.match(/\s+|[^\s]+/g) || [];
2282
+ for (const p of d) f.appendChild(s(p));
2283
+ return;
2284
+ }
2285
+ for (const d of c)
2286
+ f.appendChild(s(d === `
2287
+ ` || d === "\r" ? " " : d));
2288
+ }, a = (c) => {
2289
+ for (const f of Array.from(c.childNodes)) {
2290
+ if (f.nodeType === Node.TEXT_NODE) {
2291
+ const p = f.nodeValue || "";
2292
+ if (!p || !p.trim()) continue;
2293
+ const _ = document.createDocumentFragment();
2294
+ o(e ? p.replace(/[\r\n]+/g, " ") : p, _), c.replaceChild(_, f);
2295
+ continue;
2296
+ }
2297
+ if (f.nodeType !== Node.ELEMENT_NODE) continue;
2298
+ const d = f.tagName.toUpperCase();
2299
+ if (!yo.has(d) && !f.classList.contains("vpb-box")) {
2300
+ if (d === "BR") {
2301
+ n++;
2302
+ continue;
2303
+ }
2304
+ if (xo.has(d)) {
2305
+ f.classList.add("vpb-node"), r.push({ el: f, at: n }), n++;
2306
+ continue;
2307
+ }
2308
+ a(f);
2309
+ }
2310
+ }
2311
+ };
2312
+ return a(l), { chars: i, media: r };
2313
+ }
2314
+ const wo = {
2090
2315
  key: 0,
2091
2316
  class: "vpb-hint"
2092
- }, Ls = '<svg viewBox="0 0 32 32"><path d="M8 4L24 16L16 18L20 26L16 28L12 20L8 24L8 4Z" fill="currentColor" stroke="#e8eaf2" stroke-width="1" stroke-linejoin="round" stroke-opacity="0.7"/></svg>', Ne = {
2317
+ }, To = '<svg viewBox="0 0 32 32"><path d="M8 4L24 16L16 18L20 26L16 28L12 20L8 24L8 4Z" fill="currentColor" stroke="#e8eaf2" stroke-width="1" stroke-linejoin="round" stroke-opacity="0.7"/></svg>', So = 17, Ve = {
2093
2318
  __name: "PointerBoxes",
2094
2319
  props: {
2095
2320
  selector: { type: String, default: ".vpb-box" },
2096
2321
  scanRoot: { type: [String, Object], default: null },
2322
+ // 内容模式:auto 自动识别 | text 纯文本 | html 富文本 DOM | markdown Markdown 源码
2323
+ mode: { type: String, default: "auto" },
2324
+ // 自定义 Markdown 渲染器(不传则用内置轻量渲染),可传 markdown-it / marked
2325
+ markdown: { type: Function, default: null },
2326
+ // 逐字粒度:char 单字符 | word 整词(西文保留连字与字距)
2327
+ splitUnit: { type: String, default: "char" },
2328
+ // 富文本超过该字符数时不再逐字拆分,整体淡入,避免上千 span 卡顿
2329
+ richCharLimit: { type: Number, default: 3e3 },
2330
+ // 逐字数量超过该值时去掉 blur 滤镜:逐字模糊要逐个字符单独栅格化,开销随字符数线性增长
2331
+ blurCharLimit: { type: Number, default: 400 },
2332
+ // 富文本完成后允许选中文字 / 点击链接 / 滚动
2333
+ interactive: { type: Boolean, default: !0 },
2097
2334
  // 初始尺寸(全局默认,可被 data-* 覆盖)
2098
2335
  initialWidth: { type: Number, default: 48 },
2099
2336
  initialHeight: { type: Number, default: 48 },
@@ -2106,6 +2343,8 @@ const As = {
2106
2343
  maxSpeed: { type: Number, default: 1.1 },
2107
2344
  nearRadius: { type: Number, default: 150 },
2108
2345
  lockRadius: { type: Number, default: 90 },
2346
+ // 等待中的 box 会召唤最近的空闲指针,以这个最高速(px/帧)直奔过去
2347
+ seekSpeed: { type: Number, default: 7 },
2109
2348
  idleOpacity: { type: Number, default: 0.35 },
2110
2349
  nearOpacity: { type: Number, default: 0.75 },
2111
2350
  pointerZIndex: { type: Number, default: 9999 },
@@ -2134,370 +2373,526 @@ const As = {
2134
2373
  left: [-1, 0],
2135
2374
  down: [0, 1],
2136
2375
  up: [0, -1]
2137
- }, r = l, n = e, s = Fi(null), o = Fi(null), a = Ni(() => ({
2376
+ }, r = l, n = e, s = sr(null), o = sr(null), a = or(() => ({
2138
2377
  background: r.background,
2139
- cursor: r.hideNativeCursor ? "none" : "auto",
2140
2378
  "--vpb-pointer-size": r.pointerSize + "px",
2141
2379
  "--vpb-pointer-drag-size": r.pointerDragSize + "px",
2142
2380
  "--vpb-idle-opacity": String(r.idleOpacity),
2143
2381
  "--vpb-near-opacity": String(r.nearOpacity)
2144
- })), f = Ni(() => ({ zIndex: String(r.pointerZIndex) })), u = (c, P) => {
2145
- const p = parseFloat(c);
2146
- return Number.isFinite(p) ? p : P;
2147
- }, _ = (c) => Array.isArray(c) ? [Math.sign(c[0] || 0), Math.sign(c[1] || 0)] : i[c] || [1, 1], d = (c) => `hsl(${c}, ${r.darkSaturation}%, ${r.darkLightness}%)`, g = (c) => `hsl(${c}, ${r.brightSaturation}%, ${r.brightLightness}%)`;
2148
- let m = [], h = [], y = null, x = null, v = null;
2149
- const w = /* @__PURE__ */ new Set(), b = [], T = (c, P) => {
2150
- const p = setTimeout(() => {
2151
- w.delete(p), c();
2152
- }, P);
2153
- return w.add(p), p;
2382
+ })), c = or(() => ({ zIndex: String(r.pointerZIndex) })), f = (u, b) => {
2383
+ const C = parseFloat(u);
2384
+ return Number.isFinite(C) ? C : b;
2385
+ }, d = (u) => Array.isArray(u) ? [Math.sign(u[0] || 0), Math.sign(u[1] || 0)] : i[u] || [1, 1], p = (u) => `hsl(${u}, ${r.darkSaturation}%, ${r.darkLightness}%)`, _ = (u) => `hsl(${u}, ${r.brightSaturation}%, ${r.brightLightness}%)`;
2386
+ let m = [], h = /* @__PURE__ */ new Map(), v = [], x = null, y = null, T = null, S = null, w = !0, D = !0;
2387
+ const k = /* @__PURE__ */ new Set(), P = [], M = (u, b) => {
2388
+ const C = setTimeout(() => {
2389
+ k.delete(C), u();
2390
+ }, b);
2391
+ return k.add(C), C;
2154
2392
  };
2155
- function M(c, P) {
2156
- const p = getComputedStyle(c), D = c.offsetWidth || 0, O = c.offsetHeight || 0;
2157
- let z = c.dataset.text !== void 0 ? c.dataset.text : P ?? "";
2393
+ function z(u) {
2394
+ const b = String(u.dataset.mode || r.mode || "auto").toLowerCase();
2395
+ return b === "text" || b === "html" || b === "markdown" ? b : u.dataset.html !== void 0 || Array.from(u.childNodes).some((L) => L.nodeType !== Node.ELEMENT_NODE || L.classList.contains("vpb-box") || L.classList.contains("vpb-inner") ? !1 : L.tagName.toUpperCase() !== "BR") ? "html" : "text";
2396
+ }
2397
+ function G(u, b, C) {
2398
+ const L = getComputedStyle(u), R = u.offsetWidth || 0, g = u.offsetHeight || 0;
2399
+ let A = u.dataset.text !== void 0 ? u.dataset.text : b ?? "";
2158
2400
  return {
2159
- finalW: u(c.dataset.width, D || 190),
2160
- finalH: u(c.dataset.height, O || 190),
2161
- finalR: u(c.dataset.radius, parseFloat(p.borderRadius) || 18),
2162
- text: z,
2163
- dir: _(c.dataset.dir),
2164
- rate: u(c.dataset.growthRate, 2.8),
2165
- bigText: c.hasAttribute("data-big-text") || c.classList.contains("big-text-box"),
2166
- placeholder: c.dataset.placeholder || "·",
2167
- initW: u(c.dataset.initialWidth, r.initialWidth),
2168
- initH: u(c.dataset.initialHeight, r.initialHeight),
2169
- initR: u(c.dataset.initialRadius, r.initialRadius)
2401
+ finalW: f(u.dataset.width, R || 190),
2402
+ finalH: f(u.dataset.height, g || 190),
2403
+ finalR: f(u.dataset.radius, parseFloat(L.borderRadius) || 18),
2404
+ mode: C,
2405
+ text: A,
2406
+ dir: d(u.dataset.dir),
2407
+ rate: f(u.dataset.growthRate, 2.8),
2408
+ bigText: u.hasAttribute("data-big-text") || u.classList.contains("big-text-box"),
2409
+ // data-placeholder 显式设置时以它为准(允许空字符串,拖拽中不显示占位符)
2410
+ placeholder: u.dataset.placeholder !== void 0 ? u.dataset.placeholder : "·",
2411
+ // data-stagger 显式指定打字间隔(优先于 bigText 的间隔)
2412
+ stagger: u.dataset.stagger !== void 0 ? f(u.dataset.stagger, r.normalStagger) : null,
2413
+ initW: f(u.dataset.initialWidth, r.initialWidth),
2414
+ initH: f(u.dataset.initialHeight, r.initialHeight),
2415
+ initR: f(u.dataset.initialRadius, r.initialRadius)
2170
2416
  };
2171
2417
  }
2172
- function S(c) {
2173
- const P = c.el.getBoundingClientRect();
2418
+ function q(u) {
2419
+ const b = u.el.getBoundingClientRect();
2174
2420
  return {
2175
- left: P.left,
2176
- top: P.top,
2177
- width: c.cfg.finalW,
2178
- height: c.cfg.finalH,
2179
- right: P.left + c.cfg.finalW,
2180
- bottom: P.top + c.cfg.finalH
2421
+ left: b.left,
2422
+ top: b.top,
2423
+ width: u.cfg.finalW,
2424
+ height: u.cfg.finalH,
2425
+ right: b.left + u.cfg.finalW,
2426
+ bottom: b.top + u.cfg.finalH
2181
2427
  };
2182
2428
  }
2183
- function C() {
2184
- m = [];
2185
- const c = r.scanRoot ? typeof r.scanRoot == "string" ? document.querySelector(r.scanRoot) : r.scanRoot : s.value;
2186
- if (!c) return;
2187
- const P = Array.from(c.querySelectorAll(r.selector));
2188
- (c.matches && c.matches(r.selector) ? [c, ...P] : P).forEach((O, z) => {
2189
- getComputedStyle(O).position === "static" && (O.style.position = "relative");
2190
- let A = O.querySelector(":scope > .vpb-inner"), L = null;
2191
- if (A)
2192
- L = A._span || A.querySelector("span.vpb-text");
2429
+ function V() {
2430
+ for (const u of m) {
2431
+ const b = u.el.getBoundingClientRect();
2432
+ u.rect.left = b.left, u.rect.top = b.top;
2433
+ }
2434
+ w = !1;
2435
+ }
2436
+ function $() {
2437
+ w = !0;
2438
+ }
2439
+ function it(u) {
2440
+ Array.from(u.querySelectorAll(r.selector)).forEach((C) => {
2441
+ if (z(C) !== "markdown") return;
2442
+ let L;
2443
+ C.dataset.text !== void 0 ? L = C.dataset.text : C._vpbMdSource !== void 0 ? L = C._vpbMdSource : L = C.textContent, C._vpbMdSource = L;
2444
+ const R = typeof r.markdown == "function" ? r.markdown : (g) => vo(g, { codeBoxes: !0 });
2445
+ C.innerHTML = `<div class="vpb-md-body">${R(L || "")}</div>`, C.querySelectorAll(".vpb-md-code").forEach((g) => {
2446
+ g.style.width = "100%";
2447
+ const A = g.offsetHeight || 0;
2448
+ g.dataset.height = String(Math.max(1, Math.ceil(A + So * 2))), g.style.height = g.dataset.height + "px";
2449
+ });
2450
+ });
2451
+ }
2452
+ function Q(u, b) {
2453
+ const C = u.style.width, L = u.style.height;
2454
+ u.style.width = b + "px", u.style.height = "auto";
2455
+ const R = Math.ceil(u.getBoundingClientRect().height);
2456
+ return u.style.width = C, u.style.height = L, R;
2457
+ }
2458
+ function Y() {
2459
+ m = [], h = /* @__PURE__ */ new Map();
2460
+ const u = r.scanRoot ? typeof r.scanRoot == "string" ? document.querySelector(r.scanRoot) : r.scanRoot : s.value;
2461
+ if (!u) return;
2462
+ it(u);
2463
+ const b = Array.from(u.querySelectorAll(r.selector));
2464
+ (u.matches && u.matches(r.selector) ? [u, ...b] : b).forEach((R, g) => {
2465
+ getComputedStyle(R).position === "static" && (R.style.position = "relative");
2466
+ const F = z(R);
2467
+ let O = R.querySelector(":scope > .vpb-inner"), E = null;
2468
+ if (O)
2469
+ E = O._span || O.querySelector("span.vpb-text"), E || (E = document.createElement("span"), E.className = "vpb-text", O.appendChild(E), O._span = E), O._originText === void 0 && (O._originText = E.textContent.trim());
2193
2470
  else {
2194
- A = document.createElement("div"), A.className = "vpb-inner";
2195
- const N = Array.from(O.childNodes), at = [];
2196
- N.forEach((Z) => {
2197
- Z.nodeType === Node.ELEMENT_NODE && Z.classList.contains("vpb-box") ? at.push(Z) : A.appendChild(Z);
2198
- }), L = A.querySelector(":scope > span.vpb-text"), L || (L = document.createElement("span"), L.className = "vpb-text", Array.from(A.childNodes).forEach((Z) => {
2199
- (Z.nodeType === Node.TEXT_NODE && Z.textContent.trim() || Z.nodeType === Node.ELEMENT_NODE) && L.appendChild(Z);
2200
- }), A.appendChild(L)), A._span = L, O.appendChild(A), at.forEach((Z) => O.appendChild(Z));
2471
+ O = document.createElement("div"), O.className = "vpb-inner";
2472
+ const B = Array.from(R.childNodes), tt = [];
2473
+ B.forEach((I) => {
2474
+ I.nodeType === Node.ELEMENT_NODE && I.classList.contains("vpb-box") ? tt.push(I) : O.appendChild(I);
2475
+ }), E = O.querySelector(":scope > span.vpb-text"), E || (E = document.createElement("span"), E.className = "vpb-text", Array.from(O.childNodes).forEach((I) => {
2476
+ (I.nodeType === Node.TEXT_NODE && I.textContent.trim() || I.nodeType === Node.ELEMENT_NODE) && E.appendChild(I);
2477
+ }), O.appendChild(E)), O._span = E, O._originText = E.textContent.trim(), F === "html" && R.dataset.html !== void 0 && (E.innerHTML = R.dataset.html), R.appendChild(O), tt.forEach((I) => R.appendChild(I));
2478
+ }
2479
+ if (F !== "text") {
2480
+ if (E.tagName !== "DIV") {
2481
+ const B = document.createElement("div");
2482
+ for (B.className = E.className; E.firstChild; ) B.appendChild(E.firstChild);
2483
+ E.parentNode.replaceChild(B, E), E = B, O._span = E;
2484
+ }
2485
+ O.classList.add("vpb-rich-inner"), E.classList.add("vpb-rich"), r.interactive && R.classList.add("vpb-interactive");
2486
+ } else r.interactive && R.classList.contains("vpb-md-code") && R.classList.add("vpb-interactive");
2487
+ if (F !== "text" && !O.querySelector(":scope > .vpb-placeholder")) {
2488
+ const B = document.createElement("span");
2489
+ B.className = "vpb-placeholder", B.setAttribute("aria-hidden", "true"), B.textContent = R.dataset.placeholder !== void 0 ? R.dataset.placeholder : "·", O.appendChild(B);
2490
+ }
2491
+ const W = G(R, O._originText ?? "", F);
2492
+ W.bigText && !R.classList.contains("big-text-box") && R.classList.add("big-text-box");
2493
+ const ot = R.dataset.height === "auto" || F === "markdown" && R.dataset.height === void 0;
2494
+ if (ot) {
2495
+ const B = Q(O, W.finalW);
2496
+ B > 0 && (W.finalH = B, R.style.height = B + "px"), R.classList.add("vpb-auto-height");
2201
2497
  }
2202
- const R = M(O, L ? L.textContent.trim() : "");
2203
- A.style.position = "absolute", A.style.left = "0", A.style.top = "0", A.style.opacity = "0", A.style.width = R.initW + "px", A.style.height = R.initH + "px", A.style.borderRadius = R.initR + "px", m.push({
2204
- i: z,
2205
- el: O,
2206
- inner: A,
2207
- span: A._span || A.querySelector("span.vpb-text"),
2208
- cfg: R,
2498
+ O.style.position = "absolute", O.style.left = "0", O.style.top = "0", O.style.opacity = "0", O.style.width = W.initW + "px", O.style.height = W.initH + "px", O.style.borderRadius = W.initR + "px", m.push({
2499
+ i: g,
2500
+ el: R,
2501
+ inner: O,
2502
+ span: O._span || O.querySelector("span.vpb-text"),
2503
+ cfg: W,
2504
+ autoHeight: ot,
2505
+ rect: { left: 0, top: 0 },
2209
2506
  parentIdx: -1,
2210
2507
  children: [],
2211
2508
  state: 0,
2212
2509
  stretch: 0,
2213
- maxStretch: Math.max(R.finalW - R.initW, R.finalH - R.initH, 1),
2510
+ maxStretch: Math.max(W.finalW - W.initW, W.finalH - W.initH, 1),
2214
2511
  dragPointerIdx: -1,
2215
2512
  dragLine: null,
2216
2513
  _signX: 1,
2217
2514
  _signY: 1
2218
- });
2219
- }), m.forEach((O) => {
2220
- let z = O.el.parentElement;
2221
- for (; z; ) {
2222
- const I = m.findIndex((A) => A.el === z);
2223
- if (I >= 0) {
2224
- O.parentIdx = I, m[I].children.push(O.i);
2515
+ }), h.set(R, m[m.length - 1]);
2516
+ }), m.forEach((R) => {
2517
+ let g = R.el.parentElement;
2518
+ for (; g; ) {
2519
+ const A = h.get(g);
2520
+ if (A) {
2521
+ R.parentIdx = A.i, A.children.push(R.i);
2225
2522
  break;
2226
2523
  }
2227
- z = z.parentElement;
2524
+ g = g.parentElement;
2228
2525
  }
2229
- });
2526
+ }), $();
2230
2527
  }
2231
- function k(c) {
2232
- if (c.parentIdx < 0) return !0;
2233
- const P = m[c.parentIdx];
2234
- return P && P.state === 3;
2528
+ function ft(u) {
2529
+ if (u.parentIdx < 0) return !0;
2530
+ const b = m[u.parentIdx];
2531
+ return b && b.state === 3;
2235
2532
  }
2236
- function E(c) {
2237
- c.state === 0 && k(c) && (c.state = 1, c.el.classList.add("show"), c.inner.style.opacity = "", c.span && (c.span.textContent = ""));
2533
+ function Dt(u) {
2534
+ if (!u.el.classList.contains("vpb-md-code")) return;
2535
+ const b = Math.round(u.el.offsetWidth);
2536
+ !b || Math.abs(b - u.cfg.finalW) <= 2 || (u.cfg.finalW = b, u.maxStretch = Math.max(b - u.cfg.initW, u.cfg.finalH - u.cfg.initH, 1));
2238
2537
  }
2239
- function H(c) {
2240
- c.state = 0, c.stretch = 0, c.dragPointerIdx = -1, c.el.classList.remove("show", "dragging", "done", "typing"), c.inner.style.opacity = "0", c.inner.style.width = c.cfg.initW + "px", c.inner.style.height = c.cfg.initH + "px", c.inner.style.borderRadius = c.cfg.initR + "px", c.inner.style.left = "", c.inner.style.top = "", c.span.style.fontSize = "0.9rem", c.span.style.opacity = "1", c.span.innerHTML = "", c.span.textContent = c.cfg.placeholder, c.dragLine && (c.dragLine.remove(), c.dragLine = null), c.children.forEach((P) => H(m[P]));
2538
+ function Vt(u) {
2539
+ if (!u.autoHeight) return;
2540
+ const b = Q(u.inner, u.cfg.finalW);
2541
+ !b || Math.abs(b - u.cfg.finalH) <= 1 || (u.cfg.finalH = b, u.maxStretch = Math.max(u.cfg.finalW - u.cfg.initW, b - u.cfg.initH, 1), u.el.style.height = b + "px", u.state === 3 && (u.inner.style.height = b + "px"), $());
2241
2542
  }
2242
- function V() {
2243
- const c = o.value;
2244
- if (!c) return;
2245
- c.innerHTML = "", h.length = 0;
2246
- const P = window.innerWidth, p = window.innerHeight;
2247
- for (let D = 0; D < r.pointerCount; D++) {
2248
- const O = document.createElement("div");
2249
- O.className = "vpb-cursor-mock", O.innerHTML = Ls;
2250
- const z = Math.floor(Math.random() * 360), I = Math.random() * Math.PI * 2, A = r.minSpeed + Math.random() * (r.maxSpeed - r.minSpeed), L = 30 + Math.random() * Math.max(P - 60, 1), R = 30 + Math.random() * Math.max(p - 60, 1);
2251
- O.style.color = d(z), O.style.left = L + "px", O.style.top = R + "px", c.appendChild(O), h.push({
2252
- el: O,
2253
- x: L,
2254
- y: R,
2255
- vx: Math.cos(I) * A,
2256
- vy: Math.sin(I) * A,
2257
- hue: z,
2543
+ function Ft(u) {
2544
+ u.state === 0 && ft(u) && (Dt(u), u.state = 1, u.el.classList.add("show"), u.inner.style.opacity = "", u.cfg.mode === "text" ? u.span && (u.span.textContent = "") : u.span && (u.span.style.opacity = "0"));
2545
+ }
2546
+ function Ot(u) {
2547
+ u.state = 0, u.stretch = 0, u.dragPointerIdx = -1, u.el.classList.remove("show", "dragging", "done", "typing"), u.inner.style.opacity = "0", u.inner.style.width = u.cfg.initW + "px", u.inner.style.height = u.cfg.initH + "px", u.inner.style.borderRadius = u.cfg.initR + "px", u.inner.style.left = "", u.inner.style.top = "", u.cfg.mode === "text" ? (u.span.style.opacity = "1", u.span.innerHTML = "", u.span.textContent = u.cfg.placeholder) : u.span.style.opacity = "", u.dragLine && (u.dragLine.remove(), u.dragLine = null), u.children.forEach((b) => Ot(m[b]));
2548
+ }
2549
+ function Bt(u) {
2550
+ const b = u.x.toFixed(1), C = u.y.toFixed(1);
2551
+ u.el.style.transform = u.typing ? "translate3d(" + b + "px," + C + "px,0) translate(-50%,-.65em)" : "translate3d(" + b + "px," + C + "px,0) translate(-50%,-50%)";
2552
+ }
2553
+ function ct(u, b) {
2554
+ u.near !== b && (u.near = b, b ? u.el.classList.add("near") : u.el.classList.remove("near"));
2555
+ }
2556
+ function Rt() {
2557
+ const u = o.value;
2558
+ if (!u) return;
2559
+ u.innerHTML = "", v.length = 0;
2560
+ const b = window.innerWidth, C = window.innerHeight;
2561
+ for (let L = 0; L < r.pointerCount; L++) {
2562
+ const R = document.createElement("div");
2563
+ R.className = "vpb-cursor-mock", R.innerHTML = To;
2564
+ const g = Math.floor(Math.random() * 360), A = Math.random() * Math.PI * 2, F = r.minSpeed + Math.random() * (r.maxSpeed - r.minSpeed), O = 30 + Math.random() * Math.max(b - 60, 1), E = 30 + Math.random() * Math.max(C - 60, 1);
2565
+ R.style.color = p(g), u.appendChild(R);
2566
+ const W = {
2567
+ el: R,
2568
+ x: O,
2569
+ y: E,
2570
+ vx: Math.cos(A) * F,
2571
+ vy: Math.sin(A) * F,
2572
+ hue: g,
2573
+ near: !1,
2258
2574
  lockedBox: -1,
2259
2575
  cooldown: 0,
2260
- typing: !1
2261
- });
2576
+ typing: !1,
2577
+ chaseBox: -1
2578
+ };
2579
+ Bt(W), v.push(W);
2262
2580
  }
2263
2581
  }
2264
- function Y(c, P) {
2265
- if (c.state !== 1) return;
2266
- const p = h[P];
2267
- if (!p || p.lockedBox >= 0 || p.typing) return;
2268
- for (const pe of m) if (pe !== c && pe.dragPointerIdx === P) return;
2269
- c.state = 2, c.dragPointerIdx = P, c.stretch = 0, p.lockedBox = c.i, p.el.classList.add("dragging"), p.el.classList.remove("near"), p.el.style.color = g(p.hue), c.el.classList.add("dragging"), n("dragstart", { index: c.i });
2270
- const D = S(c), O = D.left + c.cfg.finalW / 2, z = D.top + c.cfg.finalH / 2, I = c.cfg.dir, A = Math.sign(I[0]) || 1, L = Math.sign(I[1]) || 1, R = O - A * c.cfg.finalW / 2, N = z - L * c.cfg.finalH / 2, at = A !== 0 ? R + A * c.cfg.initW : O, Z = L !== 0 ? N + L * c.cfg.initH : z;
2271
- p.x = at, p.y = Z, p.vx = A * 3 || 0.1, p.vy = L * 3 || 0.1, p.el.style.left = at + "px", p.el.style.top = Z + "px", c._signX = A, c._signY = L;
2272
- const Tt = c.el.getBoundingClientRect();
2273
- let Ft = A >= 0 ? R - Tt.left : R - Tt.left - c.cfg.initW, re = L >= 0 ? N - Tt.top : N - Tt.top - c.cfg.initH;
2274
- A === 0 && (Ft = O - Tt.left - c.cfg.initW / 2), L === 0 && (re = z - Tt.top - c.cfg.initH / 2), c.inner.style.position = "absolute", c.inner.style.left = Ft + "px", c.inner.style.top = re + "px", c.inner.style.width = c.cfg.initW + "px", c.inner.style.height = c.cfg.initH + "px", c.inner.style.borderRadius = c.cfg.initR + "px";
2275
- const Gt = document.createElement("div");
2276
- Gt.className = "vpb-drag-line", o.value.appendChild(Gt), c.dragLine = Gt;
2582
+ function En(u, b) {
2583
+ if (u.state !== 1) return;
2584
+ const C = v[b];
2585
+ if (!C || C.lockedBox >= 0 || C.typing) return;
2586
+ for (const Et of m) if (Et !== u && Et.dragPointerIdx === b) return;
2587
+ Dt(u), u.state = 2, u.dragPointerIdx = b, u.stretch = 0, C.lockedBox = u.i, C.chaseBox = -1, C.el.classList.add("dragging"), ct(C, !1), C.el.style.color = _(C.hue), u.el.classList.add("dragging"), n("dragstart", { index: u.i });
2588
+ const L = q(u), R = L.left + u.cfg.finalW / 2, g = L.top + u.cfg.finalH / 2, A = u.cfg.dir, F = Math.sign(A[0]) || 1, O = Math.sign(A[1]) || 1, E = R - F * u.cfg.finalW / 2, W = g - O * u.cfg.finalH / 2, ot = F !== 0 ? E + F * u.cfg.initW : R, B = O !== 0 ? W + O * u.cfg.initH : g;
2589
+ C.x = ot, C.y = B, C.vx = F * 3 || 0.1, C.vy = O * 3 || 0.1, Bt(C), u._signX = F, u._signY = O;
2590
+ const tt = u.el.getBoundingClientRect();
2591
+ let I = F >= 0 ? E - tt.left : E - tt.left - u.cfg.initW, kt = O >= 0 ? W - tt.top : W - tt.top - u.cfg.initH;
2592
+ F === 0 && (I = R - tt.left - u.cfg.initW / 2), O === 0 && (kt = g - tt.top - u.cfg.initH / 2), u.inner.style.position = "absolute", u.inner.style.left = I + "px", u.inner.style.top = kt + "px", u.inner.style.width = u.cfg.initW + "px", u.inner.style.height = u.cfg.initH + "px", u.inner.style.borderRadius = u.cfg.initR + "px";
2593
+ const mt = document.createElement("div");
2594
+ mt.className = "vpb-drag-line", o.value.appendChild(mt), u.dragLine = mt;
2277
2595
  }
2278
- function U(c) {
2279
- const P = S(c), p = c.el.getBoundingClientRect();
2280
- c.inner.style.left = P.left - p.left + "px", c.inner.style.top = P.top - p.top + "px", c.inner.style.width = c.cfg.finalW + "px", c.inner.style.height = c.cfg.finalH + "px", c.inner.style.borderRadius = c.cfg.finalR + "px", c.span.style.opacity = "0", c.span.innerHTML = "", c.span.textContent = "";
2281
- const D = c.dragPointerIdx;
2282
- if (c.dragPointerIdx = -1, c.stretch = c.maxStretch, c.state = 3, c.el.classList.remove("dragging"), c.el.classList.add("done"), c.dragLine && (c.dragLine.remove(), c.dragLine = null), n("dragend", { index: c.i }), D >= 0 && h[D]) {
2283
- const O = h[D];
2284
- O.el.classList.remove("dragging"), O.el.classList.add("typing-cursor"), O.el.style.color = d(O.hue), O.lockedBox = -1, O.cooldown = 9999, O.typing = !0;
2596
+ function Ki(u) {
2597
+ const b = q(u), C = u.el.getBoundingClientRect();
2598
+ u.inner.style.left = b.left - C.left + "px", u.inner.style.top = b.top - C.top + "px", u.inner.style.width = u.cfg.finalW + "px", u.inner.style.height = u.cfg.finalH + "px", u.inner.style.borderRadius = u.cfg.finalR + "px", u.span.style.opacity = "0", u.cfg.mode === "text" && (u.span.innerHTML = "", u.span.textContent = "");
2599
+ const L = u.dragPointerIdx;
2600
+ if (u.dragPointerIdx = -1, u.stretch = u.maxStretch, u.state = 3, u.el.classList.remove("dragging"), u.el.classList.add("done"), u.dragLine && (u.dragLine.remove(), u.dragLine = null), n("dragend", { index: u.i }), L >= 0 && v[L]) {
2601
+ const R = v[L];
2602
+ R.el.classList.remove("dragging"), R.el.classList.add("typing-cursor"), R.el.style.color = p(R.hue), R.lockedBox = -1, R.cooldown = 9999, R.typing = !0;
2285
2603
  }
2286
- c.children.forEach((O) => {
2287
- const z = m[O];
2288
- z.state === 0 && E(z);
2289
- }), T(() => tt(c, D), 400);
2604
+ u.cfg.mode === "text" && er(u), M(() => Dn(u, L), 400);
2290
2605
  }
2291
- function tt(c, P) {
2292
- const p = Q(c);
2293
- if (!p) {
2294
- if (c.el.classList.remove("typing"), P >= 0 && h[P]) {
2295
- const R = h[P];
2296
- R.el.classList.remove("typing-cursor"), R.typing = !1, R.cooldown = 0;
2297
- }
2606
+ const Qi = (u) => u > r.blurCharLimit ? { opacity: 0, y: 6, scale: 0.92 } : { opacity: 0, y: 8, scale: 0.7, filter: "blur(3px)" }, Ji = (u) => u > r.blurCharLimit ? { opacity: 1, y: 0, scale: 1 } : { opacity: 1, y: 0, scale: 1, filter: "blur(0px)" }, tr = (u) => u > r.blurCharLimit ? "opacity,transform" : "opacity,transform,filter";
2607
+ function fe(u, b) {
2608
+ if (b >= 0 && v[b]) {
2609
+ const C = v[b];
2610
+ C.el.classList.remove("typing-cursor"), C.typing = !1, C.cooldown = 0;
2611
+ const L = Math.random() * Math.PI * 2;
2612
+ C.vx = Math.cos(L) * 1.8, C.vy = Math.sin(L) * 1.8;
2613
+ }
2614
+ u.el.classList.remove("typing"), Vt(u), er(u);
2615
+ }
2616
+ function er(u) {
2617
+ u.children.forEach((b) => {
2618
+ const C = m[b];
2619
+ C && C.state === 0 && Ft(C);
2620
+ });
2621
+ }
2622
+ function ri(u, b, C) {
2623
+ if (b < 0 || !v[b]) return;
2624
+ const L = v[b];
2625
+ L.vx = 0, L.vy = 0, L.cooldown = C + 120, L.el.classList.add("typing-cursor");
2626
+ const R = q(u), g = R.left + R.width / 2, A = R.top + R.height / 2;
2627
+ P.push(It.to(L, {
2628
+ x: g,
2629
+ y: A,
2630
+ duration: 0.6,
2631
+ ease: "power2.out",
2632
+ onUpdate: () => Bt(L)
2633
+ }));
2634
+ }
2635
+ function Dn(u, b) {
2636
+ if (u.cfg.mode === "html" || u.cfg.mode === "markdown") return Ln(u, b);
2637
+ const C = An(u);
2638
+ if (!C) {
2639
+ fe(u, b);
2298
2640
  return;
2299
2641
  }
2300
- c.span.style.opacity = "1", c.span.style.fontSize = c.cfg.bigText ? "0.82rem" : "1.8rem", c.span.innerHTML = "";
2301
- for (const R of p) {
2302
- const N = document.createElement("span");
2303
- N.className = "vpb-char", N.textContent = R, N.style.display = "inline-block", N.style.opacity = "0", N.style.transform = "translateY(8px) scale(0.7)", N.style.filter = "blur(3px)", c.span.appendChild(N);
2642
+ u.span.style.opacity = "1", u.span.innerHTML = "";
2643
+ for (const F of C) {
2644
+ if (F === `
2645
+ `) {
2646
+ u.span.appendChild(document.createElement("br"));
2647
+ continue;
2648
+ }
2649
+ const O = document.createElement("span");
2650
+ O.className = "vpb-char", O.textContent = F, u.span.appendChild(O);
2304
2651
  }
2305
- const D = Array.from(c.span.querySelectorAll(".vpb-char"));
2306
- c.el.classList.add("typing");
2307
- const O = S(c), z = O.left + O.width / 2, I = O.top + O.height / 2;
2308
- if (P >= 0 && h[P]) {
2309
- const R = h[P];
2310
- R.vx = 0, R.vy = 0, R.cooldown = D.length + 120, R.el.classList.add("typing-cursor"), b.push(Fe.to(R, {
2311
- x: z,
2312
- y: I,
2313
- duration: 0.6,
2314
- ease: "power2.out",
2315
- onUpdate: () => {
2316
- R.el.style.left = R.x.toFixed(1) + "px", R.el.style.top = R.y.toFixed(1) + "px";
2317
- }
2318
- }));
2652
+ const L = Array.from(u.span.querySelectorAll(".vpb-char"));
2653
+ if (u.el.classList.add("typing"), !L.length) {
2654
+ fe(u, b), n("typed", { index: u.i, text: C });
2655
+ return;
2319
2656
  }
2320
- const A = c.cfg.bigText ? r.bigTextStagger : r.normalStagger, L = Fe.timeline({
2657
+ ri(u, b, L.length);
2658
+ const R = L.length;
2659
+ It.set(L, Qi(R));
2660
+ const g = u.cfg.stagger ?? (u.cfg.bigText ? r.bigTextStagger : r.normalStagger), A = It.timeline({
2321
2661
  delay: r.typeDelay / 1e3,
2322
2662
  onComplete: () => {
2323
- if (P >= 0 && h[P]) {
2324
- const R = h[P];
2325
- R.el.classList.remove("typing-cursor"), R.typing = !1, R.cooldown = 0;
2326
- const N = Math.random() * Math.PI * 2;
2327
- R.vx = Math.cos(N) * 1.8, R.vy = Math.sin(N) * 1.8;
2328
- }
2329
- c.el.classList.remove("typing"), n("typed", { index: c.i, text: p });
2663
+ fe(u, b), n("typed", { index: u.i, text: C });
2330
2664
  }
2331
2665
  });
2332
- b.push(L), L.to(D, {
2333
- opacity: 1,
2334
- y: 0,
2335
- scale: 1,
2336
- filter: "blur(0px)",
2666
+ P.push(A), A.to(L, {
2667
+ ...Ji(R),
2337
2668
  duration: 0.22,
2338
2669
  ease: "back.out(1.5)",
2339
- stagger: A
2670
+ stagger: g
2671
+ }), A.set(L, { clearProps: tr(R) });
2672
+ }
2673
+ function Ln(u, b) {
2674
+ const C = u.span;
2675
+ C.querySelectorAll(".vpb-char").forEach((E) => {
2676
+ E.closest(".vpb-box") === u.el && E.replaceWith(document.createTextNode(E.textContent));
2677
+ }), C.style.opacity = "1";
2678
+ const L = C.textContent || "", R = !!C.querySelector("img,picture,video,audio,iframe,canvas,svg,hr,table");
2679
+ if (!L.trim() && !R) {
2680
+ fe(u, b);
2681
+ return;
2682
+ }
2683
+ if (u.el.classList.add("typing"), L.length > r.richCharLimit) {
2684
+ ri(u, b, 30);
2685
+ const E = It.timeline({
2686
+ delay: r.typeDelay / 1e3,
2687
+ onComplete: () => {
2688
+ fe(u, b), n("typed", { index: u.i, text: L });
2689
+ }
2690
+ });
2691
+ P.push(E), E.from(C, { opacity: 0, duration: 0.8, ease: "power2.out" });
2692
+ return;
2693
+ }
2694
+ const { chars: g, media: A } = bo(C, r.splitUnit), F = u.cfg.stagger ?? (u.cfg.bigText ? r.bigTextStagger : r.normalStagger);
2695
+ ri(u, b, g.length);
2696
+ const O = It.timeline({
2697
+ delay: r.typeDelay / 1e3,
2698
+ onComplete: () => {
2699
+ fe(u, b), n("typed", { index: u.i, text: L });
2700
+ }
2701
+ });
2702
+ if (P.push(O), g.length) {
2703
+ const E = g.length;
2704
+ It.set(g, Qi(E)), O.to(g, {
2705
+ ...Ji(E),
2706
+ duration: 0.22,
2707
+ ease: "back.out(1.5)",
2708
+ stagger: F
2709
+ }), O.set(g, { clearProps: tr(E) });
2710
+ }
2711
+ A.forEach((E) => {
2712
+ It.set(E.el, { opacity: 0 }), O.to(E.el, { opacity: 1, duration: 0.35, ease: "power2.out" }, Math.max(0, E.at - 1) * F);
2340
2713
  });
2341
2714
  }
2342
- function Q(c) {
2343
- return c.cfg.text && c.cfg.text.trim() ? c.cfg.text.trim() : c.span.textContent.trim();
2715
+ function An(u) {
2716
+ return u.el.dataset.text !== void 0 ? u.el.dataset.text.trim() : u.cfg.text && u.cfg.text.trim() ? u.cfg.text.trim() : u.span.textContent.trim();
2717
+ }
2718
+ let ni = 0;
2719
+ function si(u, b, C) {
2720
+ const L = u.rect;
2721
+ return L.top < C && L.top + u.cfg.finalH > 0 && L.left < b && L.left + u.cfg.finalW > 0;
2344
2722
  }
2345
- let q = 0;
2346
- function ot() {
2347
- const c = window.innerWidth, P = window.innerHeight;
2348
- for (const p of h)
2349
- if (!(p.lockedBox >= 0 || p.typing)) {
2350
- if (p.cooldown > 0)
2351
- p.cooldown--, p.x += p.vx, p.y += p.vy, p.x < -40 && (p.x = c + 40), p.x > c + 40 && (p.x = -40), p.y < -40 && (p.y = P + 40), p.y > P + 40 && (p.y = -40);
2723
+ function oi() {
2724
+ if (!D) {
2725
+ x = requestAnimationFrame(oi);
2726
+ return;
2727
+ }
2728
+ const u = window.innerWidth, b = window.innerHeight;
2729
+ w && V();
2730
+ const C = r.nearRadius, L = r.lockRadius, R = r.seekSpeed;
2731
+ for (const g of v) {
2732
+ if (g.chaseBox >= 0) {
2733
+ const A = m[g.chaseBox];
2734
+ if (!A || A.state !== 1 || !si(A, u, b))
2735
+ g.chaseBox = -1;
2736
+ else {
2737
+ const F = A.rect.left + A.cfg.finalW / 2 - g.x, O = A.rect.top + A.cfg.finalH / 2 - g.y, E = Math.sqrt(F * F + O * O) || 1, W = Math.min(R, Math.max(2, E * 0.06));
2738
+ g.x += F / E * W, g.y += O / E * W, ct(g, !0), Bt(g);
2739
+ continue;
2740
+ }
2741
+ }
2742
+ if (!(g.lockedBox >= 0 || g.typing)) {
2743
+ if (g.cooldown > 0)
2744
+ g.cooldown--, g.x += g.vx, g.y += g.vy, g.x < -40 && (g.x = u + 40), g.x > u + 40 && (g.x = -40), g.y < -40 && (g.y = b + 40), g.y > b + 40 && (g.y = -40);
2352
2745
  else {
2353
2746
  if (Math.random() < 0.015) {
2354
- const z = Math.atan2(p.vy, p.vx) + (Math.random() - 0.5) * 0.6, I = Math.hypot(p.vx, p.vy);
2355
- p.vx = Math.cos(z) * I, p.vy = Math.sin(z) * I;
2747
+ const O = Math.atan2(g.vy, g.vx) + (Math.random() - 0.5) * 0.6, E = Math.hypot(g.vx, g.vy);
2748
+ g.vx = Math.cos(O) * E, g.vy = Math.sin(O) * E;
2356
2749
  }
2357
- p.x += p.vx, p.y += p.vy;
2358
- const D = 20;
2359
- if (p.x < D && (p.x = D, p.vx *= -0.9), p.x > c - D && (p.x = c - D, p.vx *= -0.9), p.y < D && (p.y = D, p.vy *= -0.9), p.y > P - D && (p.y = P - D, p.vy *= -0.9), Math.hypot(p.vx, p.vy) < 0.3) {
2360
- const z = Math.random() * Math.PI * 2;
2361
- p.vx = Math.cos(z) * 0.9, p.vy = Math.sin(z) * 0.9;
2750
+ g.x += g.vx, g.y += g.vy;
2751
+ const A = 20;
2752
+ if (g.x < A && (g.x = A, g.vx *= -0.9), g.x > u - A && (g.x = u - A, g.vx *= -0.9), g.y < A && (g.y = A, g.vy *= -0.9), g.y > b - A && (g.y = b - A, g.vy *= -0.9), Math.hypot(g.vx, g.vy) < 0.3) {
2753
+ const O = Math.random() * Math.PI * 2;
2754
+ g.vx = Math.cos(O) * 0.9, g.vy = Math.sin(O) * 0.9;
2362
2755
  }
2363
2756
  }
2364
- p.el.classList.remove("near"), p.el.style.left = p.x.toFixed(1) + "px", p.el.style.top = p.y.toFixed(1) + "px";
2757
+ ct(g, !1), Bt(g);
2365
2758
  }
2366
- for (const p of m) {
2367
- if (p.state !== 1) continue;
2368
- const D = S(p), O = D.left + D.width / 2, z = D.top + D.height / 2;
2369
- let I = -1, A = 1 / 0;
2370
- for (let R = 0; R < h.length; R++) {
2371
- const N = h[R];
2372
- if (N.lockedBox >= 0 || N.cooldown > 0 || N.typing) continue;
2373
- const at = Math.hypot(N.x - O, N.y - z);
2374
- at < A && (A = at, I = R);
2759
+ }
2760
+ for (const g of m) {
2761
+ if (g.state !== 1 || !si(g, u, b)) continue;
2762
+ const A = g.cfg.finalW, F = g.cfg.finalH, O = g.rect.left + A / 2, E = g.rect.top + F / 2;
2763
+ let W = -1, ot = 1 / 0;
2764
+ for (let tt = 0; tt < v.length; tt++) {
2765
+ const I = v[tt];
2766
+ if (I.lockedBox >= 0 || I.cooldown > 0 || I.typing || I.chaseBox >= 0 && I.chaseBox !== g.i) continue;
2767
+ const kt = I.x - O, mt = I.y - E, Et = Math.sqrt(kt * kt + mt * mt);
2768
+ Et < ot && (ot = Et, W = tt);
2375
2769
  }
2376
- if (I < 0) continue;
2377
- const L = h[I];
2378
- if (A < r.nearRadius) {
2379
- L.el.classList.add("near");
2380
- const R = O - L.x, N = z - L.y, at = Math.hypot(R, N) || 1, Z = 0.08 * (1 - A / r.nearRadius);
2381
- L.vx += R / at * Z, L.vy += N / at * Z;
2770
+ if (W < 0) continue;
2771
+ const B = v[W];
2772
+ if (ot < C) {
2773
+ ct(B, !0);
2774
+ const tt = O - B.x, I = E - B.y, kt = Math.sqrt(tt * tt + I * I) || 1, mt = 0.08 * (1 - ot / C);
2775
+ B.vx += tt / kt * mt, B.vy += I / kt * mt;
2382
2776
  }
2383
- A < r.lockRadius && Y(p, I);
2777
+ ot < L ? En(g, W) : B.chaseBox = g.i;
2384
2778
  }
2385
- for (const p of m) {
2386
- if (p.state !== 2 || p.dragPointerIdx < 0) continue;
2387
- const D = h[p.dragPointerIdx];
2388
- if (!D) {
2389
- U(p);
2779
+ for (const g of m) {
2780
+ if (g.state !== 2 || g.dragPointerIdx < 0) continue;
2781
+ const A = v[g.dragPointerIdx];
2782
+ if (!A) {
2783
+ Ki(g);
2390
2784
  continue;
2391
2785
  }
2392
- p.stretch = Math.min(p.maxStretch, p.stretch + p.cfg.rate);
2393
- const O = p.stretch / p.maxStretch, z = p.cfg.initW + (p.cfg.finalW - p.cfg.initW) * O, I = p.cfg.initH + (p.cfg.finalH - p.cfg.initH) * O, A = p.cfg.initR + (p.cfg.finalR - p.cfg.initR) * O, L = p._signX, R = p._signY, N = S(p), at = N.left + N.width / 2, Z = N.top + N.height / 2, Tt = at - L * p.cfg.finalW / 2, Ft = Z - R * p.cfg.finalH / 2;
2394
- D.x = L !== 0 ? Tt + L * z : at, D.y = R !== 0 ? Ft + R * I : Z;
2395
- let re = L >= 0 ? Tt : Tt - z, Gt = R >= 0 ? Ft : Ft - I;
2396
- L === 0 && (re = at - z / 2), R === 0 && (Gt = Z - I / 2);
2397
- const pe = p.el.getBoundingClientRect();
2398
- if (re -= pe.left, Gt -= pe.top, p.inner.style.width = z.toFixed(1) + "px", p.inner.style.height = I.toFixed(1) + "px", p.inner.style.borderRadius = A.toFixed(1) + "px", p.inner.style.left = re.toFixed(1) + "px", p.inner.style.top = Gt.toFixed(1) + "px", p.span.style.fontSize = "0.9rem", p.span.textContent = p.cfg.placeholder, D.el.style.left = D.x.toFixed(1) + "px", D.el.style.top = D.y.toFixed(1) + "px", p.dragLine) {
2399
- const Li = D.x - Tt, zi = D.y - Ft, en = Math.hypot(Li, zi), rn = Math.atan2(zi, Li);
2400
- p.dragLine.style.left = Tt + "px", p.dragLine.style.top = Ft + "px", p.dragLine.style.width = en.toFixed(1) + "px", p.dragLine.style.transform = `rotate(${rn}rad)`, p.dragLine.style.opacity = "1";
2786
+ g.stretch = Math.min(g.maxStretch, g.stretch + g.cfg.rate);
2787
+ const F = g.stretch / g.maxStretch, O = g.cfg.initW + (g.cfg.finalW - g.cfg.initW) * F, E = g.cfg.initH + (g.cfg.finalH - g.cfg.initH) * F, W = g.cfg.initR + (g.cfg.finalR - g.cfg.initR) * F, ot = g._signX, B = g._signY, tt = g.rect.left, I = g.rect.top, kt = tt + g.cfg.finalW / 2, mt = I + g.cfg.finalH / 2, Et = kt - ot * g.cfg.finalW / 2, we = mt - B * g.cfg.finalH / 2;
2788
+ A.x = ot !== 0 ? Et + ot * O : kt, A.y = B !== 0 ? we + B * E : mt;
2789
+ let ai = ot >= 0 ? Et : Et - O, li = B >= 0 ? we : we - E;
2790
+ if (ot === 0 && (ai = kt - O / 2), B === 0 && (li = mt - E / 2), ai -= tt, li -= I, g.inner.style.width = O.toFixed(1) + "px", g.inner.style.height = E.toFixed(1) + "px", g.inner.style.borderRadius = W.toFixed(1) + "px", g.inner.style.left = ai.toFixed(1) + "px", g.inner.style.top = li.toFixed(1) + "px", g.cfg.mode === "text" && g.span.textContent !== g.cfg.placeholder && (g.span.textContent = g.cfg.placeholder), Bt(A), g.dragLine) {
2791
+ const fi = A.x - Et, ci = A.y - we, Nn = Math.sqrt(fi * fi + ci * ci), Fn = Math.atan2(ci, fi);
2792
+ g.dragLine.style.left = Et + "px", g.dragLine.style.top = we + "px", g.dragLine.style.width = Nn.toFixed(1) + "px", g.dragLine.style.transform = `rotate(${Fn}rad)`, g.dragLine.style.opacity = "1";
2401
2793
  }
2402
- p.stretch >= p.maxStretch - 0.5 && U(p);
2794
+ g.stretch >= g.maxStretch - 0.5 && Ki(g);
2403
2795
  }
2404
- if (q++, q >= 30) {
2405
- q = 0;
2406
- for (const p of m) {
2407
- if (p.state !== 3) continue;
2408
- const D = S(p), O = p.inner.getBoundingClientRect();
2409
- if (Math.abs(O.left - D.left) + Math.abs(O.top - D.top) + Math.abs(O.width - p.cfg.finalW) + Math.abs(O.height - p.cfg.finalH) > 4) {
2410
- const I = p.el.getBoundingClientRect();
2411
- p.inner.style.left = D.left - I.left + "px", p.inner.style.top = D.top - I.top + "px", p.inner.style.width = p.cfg.finalW + "px", p.inner.style.height = p.cfg.finalH + "px", p.inner.style.borderRadius = p.cfg.finalR + "px";
2412
- }
2796
+ if (ni++, ni >= 60) {
2797
+ ni = 0, V();
2798
+ for (const g of m) {
2799
+ if (g.state !== 3 || !si(g, u, b)) continue;
2800
+ const A = g.inner.getBoundingClientRect();
2801
+ Math.abs(A.left - g.rect.left) + Math.abs(A.top - g.rect.top) + Math.abs(A.width - g.cfg.finalW) + Math.abs(A.height - g.cfg.finalH) > 4 && (g.inner.style.left = "0px", g.inner.style.top = "0px", g.inner.style.width = g.cfg.finalW + "px", g.inner.style.height = g.cfg.finalH + "px", g.inner.style.borderRadius = g.cfg.finalR + "px");
2413
2802
  }
2414
2803
  }
2415
- y = requestAnimationFrame(ot);
2804
+ x = requestAnimationFrame(oi);
2416
2805
  }
2417
- function Rt() {
2806
+ function ir() {
2418
2807
  if (typeof IntersectionObserver > "u") {
2419
- m.forEach(E);
2808
+ m.forEach(Ft);
2420
2809
  return;
2421
2810
  }
2422
- x && x.disconnect(), x = new IntersectionObserver((c) => {
2423
- for (const P of c) {
2424
- const p = m.find((D) => D.el === P.target);
2425
- if (p) {
2426
- if (P.isIntersecting) {
2427
- E(p);
2811
+ y && y.disconnect(), y = new IntersectionObserver((u) => {
2812
+ for (const b of u) {
2813
+ const C = h.get(b.target);
2814
+ if (C) {
2815
+ if (b.isIntersecting) {
2816
+ Ft(C);
2428
2817
  continue;
2429
2818
  }
2430
- if (p.state === 1) {
2431
- const D = P.boundingClientRect;
2432
- (D.bottom < -r.autoResetDistance || D.top > window.innerHeight + r.autoResetDistance) && H(p);
2819
+ if (C.state === 1) {
2820
+ const L = b.boundingClientRect;
2821
+ (L.bottom < -r.autoResetDistance || L.top > window.innerHeight + r.autoResetDistance) && Ot(C);
2433
2822
  }
2434
2823
  }
2435
2824
  }
2436
- }, { rootMargin: "300px 0px 300px 0px", threshold: 0.01 }), m.forEach((c) => x.observe(c.el));
2825
+ }, { rootMargin: "300px 0px 300px 0px", threshold: 0.01 }), m.forEach((u) => y.observe(u.el));
2437
2826
  }
2438
- function zt() {
2439
- clearTimeout(v), v = setTimeout(() => {
2440
- V(), m.forEach((c) => {
2441
- if (c.state === 3) {
2442
- c.inner.style.width = c.cfg.finalW + "px", c.inner.style.height = c.cfg.finalH + "px", c.inner.style.borderRadius = c.cfg.finalR + "px";
2443
- const P = S(c), p = c.el.getBoundingClientRect();
2444
- c.inner.style.left = P.left - p.left + "px", c.inner.style.top = P.top - p.top + "px";
2827
+ function rr() {
2828
+ clearTimeout(S), S = setTimeout(() => {
2829
+ Rt(), $(), m.forEach((u) => {
2830
+ if (Dt(u), Vt(u), u.state === 3) {
2831
+ u.inner.style.width = u.cfg.finalW + "px", u.inner.style.height = u.cfg.finalH + "px", u.inner.style.borderRadius = u.cfg.finalR + "px";
2832
+ const b = q(u), C = u.el.getBoundingClientRect();
2833
+ u.inner.style.left = b.left - C.left + "px", u.inner.style.top = b.top - C.top + "px";
2445
2834
  }
2446
2835
  });
2447
2836
  }, 150);
2448
2837
  }
2449
- function Xt() {
2450
- w.forEach((c) => clearTimeout(c)), w.clear(), b.forEach((c) => {
2838
+ function zn() {
2839
+ k.forEach((u) => clearTimeout(u)), k.clear(), P.forEach((u) => {
2451
2840
  try {
2452
- c.kill && c.kill();
2841
+ u.kill && u.kill();
2453
2842
  } catch {
2454
2843
  }
2455
- }), b.length = 0, m.forEach((c) => {
2456
- c.dragLine && c.dragLine.remove();
2457
- }), m = [], x && (x.disconnect(), x = null);
2844
+ }), P.length = 0, m.forEach((u) => {
2845
+ u.dragLine && u.dragLine.remove();
2846
+ }), m = [], y && (y.disconnect(), y = null);
2458
2847
  }
2459
- function kt() {
2460
- Xt(), C(), V(), Rt();
2848
+ function nr() {
2849
+ m.forEach((u) => Ot(u)), zn(), Y(), Rt(), ir();
2461
2850
  }
2462
- return nn(async () => {
2463
- Es(), await sn(), C(), V(), Rt(), window.addEventListener("resize", zt), y = requestAnimationFrame(ot), n("ready", { count: m.length });
2464
- }), on(() => {
2465
- y && cancelAnimationFrame(y), y = null, window.removeEventListener("resize", zt), clearTimeout(v), w.forEach((c) => clearTimeout(c)), w.clear(), b.forEach((c) => {
2851
+ return Bn(async () => {
2852
+ ho(), await In(), Y(), Rt(), ir(), window.addEventListener("resize", rr), window.addEventListener("scroll", $, { passive: !0 }), typeof IntersectionObserver < "u" && s.value && (T = new IntersectionObserver((u) => {
2853
+ const b = u[0].isIntersecting;
2854
+ if (b === D) return;
2855
+ D = b;
2856
+ const C = o.value;
2857
+ C && (C.style.display = b ? "" : "none"), b && $();
2858
+ }, { rootMargin: "120px" }), T.observe(s.value)), x = requestAnimationFrame(oi), n("ready", { count: m.length });
2859
+ }), $n(() => {
2860
+ x && cancelAnimationFrame(x), x = null, window.removeEventListener("resize", rr), window.removeEventListener("scroll", $), T && (T.disconnect(), T = null), clearTimeout(S), k.forEach((u) => clearTimeout(u)), k.clear(), P.forEach((u) => {
2466
2861
  try {
2467
- c.kill && c.kill();
2862
+ u.kill && u.kill();
2468
2863
  } catch {
2469
2864
  }
2470
- }), b.length = 0, x && (x.disconnect(), x = null), h.forEach((c) => {
2865
+ }), P.length = 0, y && (y.disconnect(), y = null), v.forEach((u) => {
2471
2866
  try {
2472
- Fe.killTweensOf(c);
2867
+ It.killTweensOf(u);
2473
2868
  } catch {
2474
2869
  }
2475
- c.el.remove();
2476
- }), h = [], m.forEach((c) => c.dragLine && c.dragLine.remove()), m = [];
2477
- }), t({ restart: kt, resetAll: kt }), (c, P) => (Ii(), Bi("div", {
2870
+ u.el.remove();
2871
+ }), v = [], m.forEach((u) => u.dragLine && u.dragLine.remove()), m = [];
2872
+ }), t({ restart: nr, resetAll: nr }), (u, b) => (ar(), lr("div", {
2478
2873
  ref_key: "rootEl",
2479
2874
  ref: s,
2480
- class: "vpb-root",
2481
- style: Wi(a.value)
2875
+ class: Wn(["vpb-root", { "vpb-hide-cursor": l.hideNativeCursor }]),
2876
+ style: fr(a.value)
2482
2877
  }, [
2483
- an("div", {
2878
+ Hn("div", {
2484
2879
  ref_key: "layerEl",
2485
2880
  ref: o,
2486
2881
  class: "vpb-pointer-layer",
2487
- style: Wi(f.value)
2882
+ style: fr(c.value)
2488
2883
  }, null, 4),
2489
- ln(c.$slots, "default"),
2490
- l.hintText ? (Ii(), Bi("div", As, fn(l.hintText), 1)) : un("", !0)
2491
- ], 4));
2884
+ qn(u.$slots, "default"),
2885
+ l.hintText ? (ar(), lr("div", wo, Vn(l.hintText), 1)) : Un("", !0)
2886
+ ], 6));
2492
2887
  }
2493
2888
  };
2494
- Ne.install = (l) => {
2495
- l.component("PointerBoxes", Ne), l.component("VuePointerBoxes", Ne);
2889
+ Ve.install = (l) => {
2890
+ l.component("PointerBoxes", Ve), l.component("VuePointerBoxes", Ve);
2496
2891
  };
2497
- function Fs(l, t = {}) {
2892
+ function Co(l, t = {}) {
2498
2893
  const e = typeof l == "string" ? document.querySelector(l) : l;
2499
2894
  if (!e) throw new Error(`[vue-pointer-boxes] 挂载目标不存在: ${l}`);
2500
- const i = e.innerHTML, r = t.props || t, n = hn(Ne, r);
2895
+ const i = e.innerHTML, r = t.props || t, n = Yn(Ve, r);
2501
2896
  if (n.mount(e), i && i.trim()) {
2502
2897
  const s = e.querySelector(".vpb-root");
2503
2898
  if (s) {
@@ -2510,7 +2905,7 @@ function Fs(l, t = {}) {
2510
2905
  return n;
2511
2906
  }
2512
2907
  export {
2513
- Ne as PointerBoxes,
2514
- Ne as default,
2515
- Fs as mount
2908
+ Ve as PointerBoxes,
2909
+ Ve as default,
2910
+ Co as mount
2516
2911
  };