@wix/interact 2.5.25 → 2.6.0

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.
@@ -16,7 +16,7 @@ function W(e) {
16
16
  const { key: t, listContainer: n, listItemSelector: s, selector: i } = e;
17
17
  return `${t}\0${n || ""}\0${s || ""}\0${i || ""}`;
18
18
  }
19
- const at = "$";
19
+ const ct = "$";
20
20
  class ne {
21
21
  animations;
22
22
  options;
@@ -121,8 +121,8 @@ class ne {
121
121
  });
122
122
  }
123
123
  }
124
- const ct = (e) => e, Xt = (e) => 1 - Math.cos(e * Math.PI / 2), Zt = (e) => Math.sin(e * Math.PI / 2), Jt = (e) => -(Math.cos(Math.PI * e) - 1) / 2, en = (e) => e ** 2, tn = (e) => 1 - (1 - e) ** 2, nn = (e) => e < 0.5 ? 2 * e ** 2 : 1 - (-2 * e + 2) ** 2 / 2, sn = (e) => e ** 3, on = (e) => 1 - (1 - e) ** 3, rn = (e) => e < 0.5 ? 4 * e ** 3 : 1 - (-2 * e + 2) ** 3 / 2, an = (e) => e ** 4, cn = (e) => 1 - (1 - e) ** 4, ln = (e) => e < 0.5 ? 8 * e ** 4 : 1 - (-2 * e + 2) ** 4 / 2, un = (e) => e ** 5, fn = (e) => 1 - (1 - e) ** 5, dn = (e) => e < 0.5 ? 16 * e ** 5 : 1 - (-2 * e + 2) ** 5 / 2, hn = (e) => e === 0 ? 0 : 2 ** (10 * e - 10), mn = (e) => e === 1 ? 1 : 1 - 2 ** (-10 * e), pn = (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? 2 ** (20 * e - 10) / 2 : (2 - 2 ** (-20 * e + 10)) / 2, gn = (e) => 1 - Math.sqrt(1 - e ** 2), vn = (e) => Math.sqrt(1 - (e - 1) ** 2), yn = (e) => e < 0.5 ? (1 - Math.sqrt(1 - 4 * e ** 2)) / 2 : (Math.sqrt(-(2 * e - 3) * (2 * e - 1)) + 1) / 2, En = (e) => 2.70158 * e ** 3 - 1.70158 * e ** 2, wn = (e) => 1 + 2.70158 * (e - 1) ** 3 + 1.70158 * (e - 1) ** 2, $n = (e, t = 1.70158 * 1.525) => e < 0.5 ? (2 * e) ** 2 * ((t + 1) * 2 * e - t) / 2 : ((2 * e - 2) ** 2 * ((t + 1) * (e * 2 - 2) + t) + 2) / 2, We = {
125
- linear: ct,
124
+ const lt = (e) => e, Xt = (e) => 1 - Math.cos(e * Math.PI / 2), Zt = (e) => Math.sin(e * Math.PI / 2), Jt = (e) => -(Math.cos(Math.PI * e) - 1) / 2, en = (e) => e ** 2, tn = (e) => 1 - (1 - e) ** 2, nn = (e) => e < 0.5 ? 2 * e ** 2 : 1 - (-2 * e + 2) ** 2 / 2, sn = (e) => e ** 3, on = (e) => 1 - (1 - e) ** 3, rn = (e) => e < 0.5 ? 4 * e ** 3 : 1 - (-2 * e + 2) ** 3 / 2, an = (e) => e ** 4, cn = (e) => 1 - (1 - e) ** 4, ln = (e) => e < 0.5 ? 8 * e ** 4 : 1 - (-2 * e + 2) ** 4 / 2, un = (e) => e ** 5, fn = (e) => 1 - (1 - e) ** 5, dn = (e) => e < 0.5 ? 16 * e ** 5 : 1 - (-2 * e + 2) ** 5 / 2, hn = (e) => e === 0 ? 0 : 2 ** (10 * e - 10), mn = (e) => e === 1 ? 1 : 1 - 2 ** (-10 * e), pn = (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? 2 ** (20 * e - 10) / 2 : (2 - 2 ** (-20 * e + 10)) / 2, gn = (e) => 1 - Math.sqrt(1 - e ** 2), vn = (e) => Math.sqrt(1 - (e - 1) ** 2), yn = (e) => e < 0.5 ? (1 - Math.sqrt(1 - 4 * e ** 2)) / 2 : (Math.sqrt(-(2 * e - 3) * (2 * e - 1)) + 1) / 2, En = (e) => 2.70158 * e ** 3 - 1.70158 * e ** 2, wn = (e) => 1 + 2.70158 * (e - 1) ** 3 + 1.70158 * (e - 1) ** 2, $n = (e, t = 1.70158 * 1.525) => e < 0.5 ? (2 * e) ** 2 * ((t + 1) * 2 * e - t) / 2 : ((2 * e - 2) ** 2 * ((t + 1) * (e * 2 - 2) + t) + 2) / 2, Ve = {
125
+ linear: lt,
126
126
  sineIn: Xt,
127
127
  sineOut: Zt,
128
128
  sineInOut: Jt,
@@ -147,7 +147,7 @@ const ct = (e) => e, Xt = (e) => 1 - Math.cos(e * Math.PI / 2), Zt = (e) => Math
147
147
  backIn: En,
148
148
  backOut: wn,
149
149
  backInOut: $n
150
- }, V = (e, t, n, s, i) => {
150
+ }, K = (e, t, n, s, i) => {
151
151
  const o = 3 * t, r = 3 * (s - 2 * t), c = 1 - 3 * s + 3 * t, l = 3 * n, u = 3 * (i - 2 * n), a = 1 - 3 * i + 3 * n;
152
152
  let f;
153
153
  if (c === 0)
@@ -155,30 +155,30 @@ const ct = (e) => e, Xt = (e) => 1 - Math.cos(e * Math.PI / 2), Zt = (e) => Math
155
155
  else {
156
156
  const d = r / (3 * c), h = 2 * Math.pow(r, 3) - 9 * o * r * c, m = 54 * Math.pow(c, 3), p = (3 * c * o - r * r) / (9 * c * c), g = `((${h} - ${27 * c * c} * ${e}) / ${m})`;
157
157
  if (p < 0) {
158
- const y = 2 * Math.sqrt(-p);
159
- let E = 0;
158
+ const E = 2 * Math.sqrt(-p);
159
+ let y = 0;
160
160
  for (const w of [0, 1, 2])
161
161
  [0, 0.25, 0.5, 0.75, 1].every((S) => {
162
162
  const I = Math.min(
163
- Math.max(2 * (h - 27 * c * c * S) / (m * p * y), -1),
163
+ Math.max(2 * (h - 27 * c * c * S) / (m * p * E), -1),
164
164
  1
165
- ), O = y * Math.cos((Math.acos(I) - w * 2 * Math.PI) / 3) - d;
165
+ ), O = E * Math.cos((Math.acos(I) - w * 2 * Math.PI) / 3) - d;
166
166
  return O >= -1e-6 && O <= 1.000001;
167
- }) && (E = w);
168
- const v = `(acos(clamp(-1, ${2 / (p * y)} * ${g}, 1)) - ${360 * E}deg) / 3`;
169
- f = `(${y} * cos(${v}) - ${d})`;
167
+ }) && (y = w);
168
+ const v = `(acos(clamp(-1, ${2 / (p * E)} * ${g}, 1)) - ${360 * y}deg) / 3`;
169
+ f = `(${E} * cos(${v}) - ${d})`;
170
170
  } else {
171
- const y = `sqrt(pow(${g}, 2) + ${Math.pow(p, 3)})`;
172
- f = `(pow(${y} - ${g}, 1 / 3) - pow(${y} + ${g}, 1 / 3) - ${d})`;
171
+ const E = `sqrt(pow(${g}, 2) + ${Math.pow(p, 3)})`;
172
+ f = `(pow(${E} - ${g}, 1 / 3) - pow(${E} + ${g}, 1 / 3) - ${d})`;
173
173
  }
174
174
  }
175
175
  return `(${a} * pow(${f}, 3) + ${u} * pow(${f}, 2) + ${l} * ${f})`;
176
- }, Ve = {
176
+ }, Ke = {
177
177
  linear: (e) => e,
178
- ease: (e) => V(e, 0.25, 0.1, 0.25, 1),
179
- easeIn: (e) => V(e, 0.42, 0, 1, 1),
180
- easeOut: (e) => V(e, 0, 0, 0.58, 1),
181
- easeInOut: (e) => V(e, 0.42, 0, 0.58, 1),
178
+ ease: (e) => K(e, 0.25, 0.1, 0.25, 1),
179
+ easeIn: (e) => K(e, 0.42, 0, 1, 1),
180
+ easeOut: (e) => K(e, 0, 0, 0.58, 1),
181
+ easeInOut: (e) => K(e, 0.42, 0, 0.58, 1),
182
182
  sineIn: (e) => `(1 - cos(${e} * 90deg))`,
183
183
  sineOut: (e) => `(sin(${e} * 90deg))`,
184
184
  sineInOut: (e) => `((1 - cos(${e} * 180deg)) / 2)`,
@@ -203,7 +203,7 @@ const ct = (e) => e, Xt = (e) => 1 - Math.cos(e * Math.PI / 2), Zt = (e) => Math
203
203
  backIn: (e) => `(2.70158 * pow(${e}, 3) - 1.70158 * ${e} * ${e})`,
204
204
  backOut: (e) => `(1 + 2.70158 * pow(${e} - 1, 3) + 1.70158 * (${e} - 1) * (${e} - 1))`,
205
205
  backInOut: (e) => `((round(${e}) * (2 + (2 * ${e} - 2) * (2 * ${e} - 2) * (2.5949095 + 3.5949095 * (2 * ${e} - 2))) + (1 - round(${e})) * 4 * ${e} * ${e} * (3.5949095 * 2 * ${e} - 2.5949095)) / 2)`
206
- }, Ke = {
206
+ }, Ye = {
207
207
  linear: "linear",
208
208
  ease: "ease",
209
209
  easeIn: "ease-in",
@@ -248,16 +248,16 @@ function ge(e) {
248
248
  function Tn(e) {
249
249
  return e.startsWith("--") || !e.includes("-") ? e : e.replace(/^-/, "").replace(/-([a-z])/g, (t, n) => n.toUpperCase());
250
250
  }
251
- function lt(e) {
251
+ function ut(e) {
252
252
  return In[e] || Tn(e);
253
253
  }
254
254
  function Cn(e) {
255
255
  for (const t in e)
256
- if (Object.hasOwn(e, t) && lt(t) !== t)
256
+ if (Object.hasOwn(e, t) && ut(t) !== t)
257
257
  return !0;
258
258
  return !1;
259
259
  }
260
- function ut(e) {
260
+ function ft(e) {
261
261
  if (!Array.isArray(e))
262
262
  return e;
263
263
  let t;
@@ -267,35 +267,35 @@ function ut(e) {
267
267
  t ??= e.slice();
268
268
  const i = {};
269
269
  for (const o in n)
270
- Object.hasOwn(n, o) && (i[lt(o)] = n[o]);
270
+ Object.hasOwn(n, o) && (i[ut(o)] = n[o]);
271
271
  t[s] = i;
272
272
  }), t || e;
273
273
  }
274
274
  function de(e) {
275
- return e ? Ke[e] || e : Ke.linear;
275
+ return e ? Ye[e] || e : Ye.linear;
276
276
  }
277
277
  function On(e, t, n, s) {
278
278
  const i = 3 * e, o = 3 * (n - e) - i, r = 1 - i - o, c = 3 * t, l = 3 * (s - t) - c, u = 1 - c - l, a = (m) => ((r * m + o) * m + i) * m, f = (m) => ((u * m + l) * m + c) * m, d = (m) => (3 * r * m + 2 * o) * m + i;
279
279
  function h(m) {
280
280
  let p = m;
281
- for (let E = 0; E < 8; E++) {
281
+ for (let y = 0; y < 8; y++) {
282
282
  const v = a(p) - m;
283
283
  if (Math.abs(v) < 1e-7) return p;
284
284
  const w = d(p);
285
285
  if (Math.abs(w) < 1e-6) break;
286
286
  p -= v / w;
287
287
  }
288
- let g = 0, y = 1;
289
- for (p = (g + y) / 2; y - g > 1e-7; ) {
290
- const E = a(p);
291
- if (Math.abs(E - m) < 1e-7) return p;
292
- m > E ? g = p : y = p, p = (g + y) / 2;
288
+ let g = 0, E = 1;
289
+ for (p = (g + E) / 2; E - g > 1e-7; ) {
290
+ const y = a(p);
291
+ if (Math.abs(y - m) < 1e-7) return p;
292
+ m > y ? g = p : E = p, p = (g + E) / 2;
293
293
  }
294
294
  return p;
295
295
  }
296
296
  return (m) => m <= 0 ? 0 : m >= 1 ? 1 : f(h(m));
297
297
  }
298
- function ft(e) {
298
+ function dt(e) {
299
299
  const t = e.match(
300
300
  /^cubic-bezier\(\s*(-?[\d.]+)\s*,\s*(-?[\d.]+)\s*,\s*(-?[\d.]+)\s*,\s*(-?[\d.]+)\s*\)$/
301
301
  );
@@ -305,16 +305,16 @@ function ft(e) {
305
305
  return [n, s, i, o];
306
306
  }
307
307
  function _n(e) {
308
- const t = ft(e);
308
+ const t = dt(e);
309
309
  if (!(!t || t.some(isNaN)))
310
310
  return On(...t);
311
311
  }
312
312
  function An(e) {
313
- const t = ft(e);
313
+ const t = dt(e);
314
314
  if (!(!t || t.some(isNaN)))
315
- return (n) => V(n, ...t);
315
+ return (n) => K(n, ...t);
316
316
  }
317
- function dt(e) {
317
+ function ht(e) {
318
318
  const t = e.match(/^linear\((.+)\)$/);
319
319
  if (!t) return;
320
320
  const n = t[1].split(",").map((o) => o.trim()).filter(Boolean);
@@ -351,7 +351,7 @@ function dt(e) {
351
351
  return s;
352
352
  }
353
353
  function Mn(e) {
354
- const t = dt(e);
354
+ const t = ht(e);
355
355
  if (t)
356
356
  return (n) => {
357
357
  if (n <= t[0].pos) return t[0].output;
@@ -367,7 +367,7 @@ function Mn(e) {
367
367
  };
368
368
  }
369
369
  function kn(e) {
370
- const t = dt(e);
370
+ const t = ht(e);
371
371
  if (t)
372
372
  return (n) => {
373
373
  const s = [`${t[0].output}`];
@@ -383,15 +383,15 @@ function kn(e) {
383
383
  return `(${s.join(" + ")})`;
384
384
  };
385
385
  }
386
- function ht(e) {
386
+ function De(e) {
387
387
  if (!e) return;
388
- const t = We[e];
389
- return t || (_n(e) ?? Mn(e) ?? We.linear);
388
+ const t = Ve[e];
389
+ return t || (_n(e) ?? Mn(e) ?? Ve.linear);
390
390
  }
391
391
  function qn(e) {
392
392
  if (!e) return;
393
- const t = Ve[e];
394
- return t || (An(e) ?? kn(e) ?? Ve.linear);
393
+ const t = Ke[e];
394
+ return t || (An(e) ?? kn(e) ?? Ke.linear);
395
395
  }
396
396
  class Pn extends ne {
397
397
  animationGroups;
@@ -402,7 +402,7 @@ class Pn extends ne {
402
402
  timingOptions;
403
403
  constructor(t, n = {}) {
404
404
  const s = t.flatMap((i) => [...i.animations]);
405
- super(s), this.animationGroups = t, this.delay = n.delay ?? 0, this.offset = n.offset ?? 0, this.sequenceId = n.sequenceId, this.offsetEasing = typeof n.offsetEasing == "function" ? n.offsetEasing : ht(n.offsetEasing) ?? ct, this.timingOptions = this.animationGroups.map((i) => i.getTimingOptions().map(({ delay: o, duration: r, iterations: c }) => ({
405
+ super(s), this.animationGroups = t, this.delay = n.delay ?? 0, this.offset = n.offset ?? 0, this.sequenceId = n.sequenceId, this.offsetEasing = typeof n.offsetEasing == "function" ? n.offsetEasing : De(n.offsetEasing) ?? lt, this.timingOptions = this.animationGroups.map((i) => i.getTimingOptions().map(({ delay: o, duration: r, iterations: c }) => ({
406
406
  delay: o,
407
407
  duration: Number.isFinite(r) ? r : 0,
408
408
  iterations: Number.isFinite(c) ? c : 1
@@ -634,9 +634,9 @@ class Ln {
634
634
  function Fn(e) {
635
635
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
636
636
  }
637
- var he = { exports: {} }, Ye = he.exports, Be;
637
+ var he = { exports: {} }, Be = he.exports, Ue;
638
638
  function Rn() {
639
- return Be || (Be = 1, (function(e) {
639
+ return Ue || (Ue = 1, (function(e) {
640
640
  (function(t) {
641
641
  var n = function() {
642
642
  }, s = t.requestAnimationFrame || t.webkitRequestAnimationFrame || t.mozRequestAnimationFrame || t.msRequestAnimationFrame || function(a) {
@@ -762,7 +762,7 @@ function Rn() {
762
762
  }
763
763
  var u = t.fastdom = t.fastdom || new i();
764
764
  e.exports = u;
765
- })(typeof window < "u" ? window : typeof Ye < "u" ? Ye : globalThis);
765
+ })(typeof window < "u" ? window : typeof Be < "u" ? Be : globalThis);
766
766
  })(he)), he.exports;
767
767
  }
768
768
  var xn = Rn();
@@ -775,14 +775,14 @@ function He(e, t = !0) {
775
775
  `${e} not found in registry. Please make sure to import and register the preset.`
776
776
  ), null);
777
777
  }
778
- function Z(e, t) {
778
+ function V(e, t) {
779
779
  return e ? (t || document).getElementById(e) : null;
780
780
  }
781
781
  function mt(e, t) {
782
782
  return e?.matches(`[data-motion-part~="${t}"]`) ? e : e?.querySelector(`[data-motion-part~="${t}"]`);
783
783
  }
784
784
  function pt(e, t) {
785
- const n = typeof e == "string" ? Z(e) : e;
785
+ const n = typeof e == "string" ? V(e) : e;
786
786
  return t?.length ? t.map((s) => mt(n, s)).filter(Boolean) : n ? [n] : [];
787
787
  }
788
788
  function jn(e) {
@@ -792,13 +792,13 @@ function jn(e) {
792
792
  function Ce(e) {
793
793
  return `${e.value}${bn(e.unit)}`;
794
794
  }
795
- function Ue(e, t, n) {
795
+ function Qe(e, t, n) {
796
796
  return `${e.name || "cover"} ${n && e.offset.unit !== "percentage" ? `calc(100% + ${Ce(e.offset)}${t ? ` + ${t}` : ""})` : t ? `calc(${Ce(e.offset)} + ${t})` : Ce(e.offset)}`;
797
797
  }
798
798
  function gt(e) {
799
799
  return {
800
- start: Ue(e.startOffset, e.startOffsetAdd),
801
- end: Ue(e.endOffset, e.endOffsetAdd, !0)
800
+ start: Qe(e.startOffset, e.startOffsetAdd),
801
+ end: Qe(e.endOffset, e.endOffsetAdd, !0)
802
802
  };
803
803
  }
804
804
  function vt(e) {
@@ -833,7 +833,7 @@ function Et(e, t, n, s) {
833
833
  composite: i.composite,
834
834
  direction: jn(i)
835
835
  };
836
- return De(t) ? (r.duration = i.duration, r.delay = i.delay || 0) : t?.trigger === "view-progress" && (s || window.ViewTimeline) ? r.duration = "auto" : (r.duration = 99.99, r.delay = 0.01), {
836
+ return Ge(t) ? (r.duration = i.duration, r.delay = i.delay || 0) : t?.trigger === "view-progress" && (s || window.ViewTimeline) ? r.duration = "auto" : (r.duration = 99.99, r.delay = 0.01), {
837
837
  // pass the preset's object as is - its keyframes and ranges may be getters
838
838
  // that must only be read after its measure() callbacks ran
839
839
  effect: i,
@@ -843,12 +843,12 @@ function Et(e, t, n, s) {
843
843
  };
844
844
  });
845
845
  }
846
- function De(e) {
846
+ function Ge(e) {
847
847
  return !e || e.trigger !== "pointer-move" && e.trigger !== "view-progress";
848
848
  }
849
- function Qe(e, t, n, s, i) {
849
+ function Xe(e, t, n, s, i) {
850
850
  if (e) {
851
- if (De(s) && (t.duration = t.duration || 1, i?.reducedMotion))
851
+ if (Ge(s) && (t.duration = t.duration || 1, i?.reducedMotion))
852
852
  if (t.iterations === 1 || t.iterations == null)
853
853
  t = { ...t, duration: 1 };
854
854
  else
@@ -859,7 +859,7 @@ function Qe(e, t, n, s, i) {
859
859
  return [];
860
860
  }
861
861
  function wt(e, t, n, s, i) {
862
- const o = typeof e == "string" ? Z(e, i) : e;
862
+ const o = typeof e == "string" ? V(e, i) : e;
863
863
  if (n?.trigger === "pointer-move" && !t.keyframeEffect) {
864
864
  let d = t;
865
865
  t.customEffect && (d = {
@@ -868,7 +868,7 @@ function wt(e, t, n, s, i) {
868
868
  });
869
869
  const h = J(
870
870
  d
871
- ), m = Qe(
871
+ ), m = Xe(
872
872
  h,
873
873
  t,
874
874
  o,
@@ -877,7 +877,7 @@ function wt(e, t, n, s, i) {
877
877
  );
878
878
  return typeof m != "function" ? null : m(o);
879
879
  }
880
- const r = J(t), c = Qe(
880
+ const r = J(t), c = Xe(
881
881
  r,
882
882
  t,
883
883
  o,
@@ -890,19 +890,19 @@ function wt(e, t, n, s, i) {
890
890
  let u;
891
891
  const a = n?.trigger === "view-progress";
892
892
  a && window.ViewTimeline && (u = new ViewTimeline({
893
- subject: n.element || Z(n.componentId)
893
+ subject: n.element || V(n.componentId)
894
894
  }));
895
895
  const f = l.map(({ effect: d, options: h, id: m, part: p }) => {
896
- const g = p ? mt(o, p) : o, y = new KeyframeEffect(g || null, [], h);
896
+ const g = p ? mt(o, p) : o, E = new KeyframeEffect(g || null, [], h);
897
897
  A.mutate(() => {
898
- "timing" in d && y.updateTiming(d.timing), y.setKeyframes(ut(d.keyframes));
898
+ "timing" in d && E.updateTiming(d.timing), E.setKeyframes(ft(d.keyframes));
899
899
  });
900
- const E = a && u ? { timeline: u } : {}, v = typeof d.customEffect == "function" ? new Ln(
900
+ const y = a && u ? { timeline: u } : {}, v = typeof d.customEffect == "function" ? new Ln(
901
901
  d.customEffect,
902
902
  g || null,
903
903
  h,
904
- E
905
- ) : new Animation(y, E.timeline);
904
+ y
905
+ ) : new Animation(E, y.timeline);
906
906
  if (a)
907
907
  if (u)
908
908
  A.mutate(() => {
@@ -929,7 +929,7 @@ function wt(e, t, n, s, i) {
929
929
  }
930
930
  return m && (v.id = m), v;
931
931
  });
932
- return new ne(f, {
932
+ return f.length > 1 && f.forEach((d) => d.persist?.()), new ne(f, {
933
933
  ...t,
934
934
  trigger: { ...n || {} },
935
935
  // make sure the group is ready after all animation targets are measured and mutated
@@ -942,23 +942,23 @@ function zn(e, t, n) {
942
942
  if (f && typeof m == "string") {
943
943
  const g = qn(m);
944
944
  if (g) {
945
- const y = (i ?? 0) + (d ?? 0);
945
+ const E = (i ?? 0) + (d ?? 0);
946
946
  if (h) {
947
- const E = g(
947
+ const y = g(
948
948
  `(var(--motion-${f}-index, 0) / var(--motion-${f}-last, 1))`
949
949
  );
950
- p = `calc(${`(${y} + ${E} * ${h} * var(--motion-${f}-last, 1))`} * 1ms)`;
950
+ p = `calc(${`(${E} + ${y} * ${h} * var(--motion-${f}-last, 1))`} * 1ms)`;
951
951
  } else
952
- p = `${y}ms`;
952
+ p = `${E}ms`;
953
953
  }
954
954
  }
955
955
  return `${u} ${a ? "auto" : `${s}ms`}${a ? " " : ` ${p} `}${c}${r && r !== "none" ? ` ${r}` : ""} ${!o || o === 1 / 0 ? "infinite" : o}${l === "normal" ? "" : ` ${l}`} ${t ? "" : "paused"}`;
956
956
  }
957
- function Hn(e, t, n) {
958
- return e?.style ? (De(n) && (t.duration = t.duration || 1), e.style(t)) : [];
957
+ function Dn(e, t, n) {
958
+ return e?.style ? (Ge(n) && (t.duration = t.duration || 1), e.style(t)) : [];
959
959
  }
960
- function Dn(e, t, n, s) {
961
- const i = J(t), o = Hn(i, t), r = Et(o, n, t.effectId, !0), c = n?.trigger === "view-progress";
960
+ function Hn(e, t, n, s) {
961
+ const i = J(t), o = Dn(i, t), r = Et(o, n, t.effectId, !0), c = n?.trigger === "view-progress";
962
962
  return r.map((l, u) => {
963
963
  const { start: a, end: f } = c ? gt(l.effect) : {};
964
964
  return {
@@ -967,7 +967,7 @@ function Dn(e, t, n, s) {
967
967
  composition: l.options.composite,
968
968
  custom: l.effect.custom,
969
969
  name: l.effect.name,
970
- keyframes: ut(l.effect.keyframes),
970
+ keyframes: ft(l.effect.keyframes),
971
971
  id: l.id && `${l.id}-${u + 1}`,
972
972
  animationTimeline: c ? `--${n?.id}` : "",
973
973
  animationRange: a || f ? `${a} ${f}` : ""
@@ -975,7 +975,7 @@ function Dn(e, t, n, s) {
975
975
  });
976
976
  }
977
977
  function Gn(e, t, n) {
978
- const s = J(t), i = e instanceof HTMLElement ? e : Z(e);
978
+ const s = J(t), i = e instanceof HTMLElement ? e : V(e);
979
979
  if (s && s.prepare && i) {
980
980
  const o = { measure: vt(i), mutate: yt(i) };
981
981
  s.prepare(t, o);
@@ -1008,7 +1008,7 @@ function bt(e, t, n, s = {}) {
1008
1008
  return null;
1009
1009
  let l = {};
1010
1010
  if (n.trigger === "view-progress" && !window.ViewTimeline) {
1011
- const u = n.element || Z(n.componentId), { ready: a } = c;
1011
+ const u = n.element || V(n.componentId), { ready: a } = c;
1012
1012
  return c.animations.map((f) => ({
1013
1013
  /* we use getters for start and end in order to access the animation's start and end
1014
1014
  only when initializing the scrub scene rather than immediately */
@@ -1037,16 +1037,16 @@ function bt(e, t, n, s = {}) {
1037
1037
  if (u.keyframeEffect) {
1038
1038
  const m = c;
1039
1039
  return m.animations?.length === 0 ? null : {
1040
- target: void 0,
1040
+ target: (typeof e == "string" ? V(e) : e) ?? void 0,
1041
1041
  centeredToTarget: a,
1042
1042
  ready: m.ready,
1043
1043
  _currentProgress: 0,
1044
1044
  getProgress() {
1045
1045
  return this._currentProgress;
1046
1046
  },
1047
- effect(g, y) {
1048
- const E = h === "x" ? y.x : y.y;
1049
- this._currentProgress = E, m.progress(E);
1047
+ effect(g, E) {
1048
+ const y = h === "x" ? E.x : E.y;
1049
+ this._currentProgress = y, m.progress(y);
1050
1050
  },
1051
1051
  disabled: i ?? !1,
1052
1052
  destroy() {
@@ -1057,7 +1057,7 @@ function bt(e, t, n, s = {}) {
1057
1057
  l = {
1058
1058
  centeredToTarget: a,
1059
1059
  allowActiveEvent: o
1060
- }, t.customEffect && f && (l.transitionDuration = f, l.transitionEasing = ht(d)), l.target = c.target;
1060
+ }, t.customEffect && f && (l.transitionDuration = f, l.transitionEasing = De(d)), l.target = c.target;
1061
1061
  }
1062
1062
  return {
1063
1063
  ...l,
@@ -1205,71 +1205,86 @@ const Ct = /* @__PURE__ */ new Map([
1205
1205
  ["interest", "alternate"]
1206
1206
  ]);
1207
1207
  function Ot(e, t, n, s) {
1208
- const { effects: i = {}, conditions: o = {} } = n, { key: r, trigger: c } = t, l = c === "pointerMove";
1208
+ const { effects: i = {}, conditions: o = {} } = n, { key: r, trigger: c, conditions: l = [] } = t, u = c === "pointerMove";
1209
1209
  e.effectId || (e.effectId = s || ee());
1210
- const { effectId: u } = e, a = { ...i[u] || {}, ...e };
1211
- let { key: f, conditions: d, triggerType: h } = a;
1212
- if (!f) {
1210
+ const { effectId: a } = e, f = { ...i[a] || {}, ...e };
1211
+ let { key: d, conditions: h, triggerType: m } = f;
1212
+ if (!d) {
1213
1213
  if (!r)
1214
1214
  return null;
1215
- f = r;
1215
+ d = r;
1216
1216
  }
1217
- if (Bn(f))
1217
+ if (Bn(d))
1218
1218
  return null;
1219
- d = [
1220
- ...new Set((d || []).filter((b) => o[b]))
1221
- ], h || (h = Ct.get(c));
1222
- const { namedEffect: m, customEffect: p, keyframeEffect: g, transition: y, transitionProperties: E, ...v } = {
1223
- ...a,
1224
- key: f,
1225
- conditions: d,
1226
- effectId: u,
1227
- triggerType: h
1228
- }, w = Qt(t, v);
1229
- if (m)
1230
- return l || !m.type ? null : { namedEffect: m, initial: w, ...v };
1231
- if (g) {
1232
- if (!g.name) {
1233
- const b = u && !(i[u] && "keyframeEffect" in e);
1234
- g.name = b ? u : ee();
1219
+ const p = l.filter(
1220
+ (I) => o[I].type === "media"
1221
+ );
1222
+ h = [
1223
+ ...new Set(
1224
+ [...h || [], ...p].filter(
1225
+ (I) => o[I]
1226
+ )
1227
+ )
1228
+ ], m || (m = Ct.get(c));
1229
+ const { namedEffect: g, customEffect: E, keyframeEffect: y, transition: v, transitionProperties: w, ...b } = {
1230
+ ...f,
1231
+ key: d,
1232
+ conditions: h,
1233
+ effectId: a,
1234
+ triggerType: m
1235
+ }, S = Qt(t, b);
1236
+ if (g)
1237
+ return u || !g.type ? null : { namedEffect: g, initial: S, ...b };
1238
+ if (y) {
1239
+ if (!y.name) {
1240
+ const I = a && !(i[a] && "keyframeEffect" in e);
1241
+ y.name = I ? a : ee();
1235
1242
  }
1236
- return { keyframeEffect: g, initial: w, ...v };
1237
- } else return p ? l ? null : { initial: w, ...v } : y ? { transition: y, initial: w, ...v } : E ? { transitionProperties: E, initial: w, ...v } : { initial: w, ...v };
1243
+ return { keyframeEffect: y, initial: S, ...b };
1244
+ } else return E ? u ? null : { initial: S, ...b } : v ? { transition: v, initial: S, ...b } : w ? { transitionProperties: w, initial: S, ...b } : { initial: S, ...b };
1238
1245
  }
1239
1246
  function Xn(e, t, n, s, i) {
1240
- const { sequences: o = {}, conditions: r = {} } = n;
1247
+ const { sequences: o = {}, conditions: r = {} } = n, { trigger: c, conditions: l = [] } = t;
1241
1248
  e.sequenceId || (e.sequenceId = s || ee());
1242
- const { sequenceId: c } = e, l = { ...o[c] || {}, ...e };
1249
+ const { sequenceId: u } = e, a = { ...o[u] || {}, ...e };
1243
1250
  let {
1244
- effects: u,
1245
- conditions: a,
1246
- triggerType: f,
1247
- delay: d = 0,
1248
- offset: h = 0,
1249
- offsetEasing: m = "linear"
1250
- } = l;
1251
- if (typeof m == "function" || !u)
1251
+ effects: f,
1252
+ conditions: d,
1253
+ triggerType: h,
1254
+ delay: m = 0,
1255
+ offset: p = 0,
1256
+ offsetEasing: g = "linear"
1257
+ } = a;
1258
+ if (typeof g == "function" || !f)
1252
1259
  return null;
1253
- f || (f = Ct.get(t.trigger)), a = [
1254
- ...new Set((a || []).filter((y) => r[y]))
1260
+ h || (h = Ct.get(c));
1261
+ const E = l.filter(
1262
+ (w) => r[w].type === "media"
1263
+ );
1264
+ d = [
1265
+ ...new Set(
1266
+ [...d || [], ...E].filter(
1267
+ (w) => r[w]
1268
+ )
1269
+ )
1255
1270
  ];
1256
- const g = u.map((y, E) => {
1257
- const v = Ot(
1258
- { ...y, triggerType: f, conditions: [...y.conditions || [], ...a] },
1271
+ const v = f.map((w, b) => {
1272
+ const S = Ot(
1273
+ { ...w, triggerType: h, conditions: [...w.conditions || [], ...d] },
1259
1274
  t,
1260
1275
  n,
1261
- `${c}-eff-${E}`
1276
+ `${u}-eff-${b}`
1262
1277
  );
1263
- return v && Object.assign(v, { slotKey: i?.(E) });
1264
- }).filter((y) => y !== null);
1265
- return g.length ? {
1266
- sequenceId: c,
1267
- triggerType: f,
1268
- conditions: a,
1269
- delay: d,
1270
- offset: h,
1271
- offsetEasing: m,
1272
- effects: g
1278
+ return S && Object.assign(S, { slotKey: i?.(b) });
1279
+ }).filter((w) => w !== null);
1280
+ return v.length ? {
1281
+ sequenceId: u,
1282
+ triggerType: h,
1283
+ conditions: d,
1284
+ delay: m,
1285
+ offset: p,
1286
+ offsetEasing: g,
1287
+ effects: v
1273
1288
  } : null;
1274
1289
  }
1275
1290
  function Zn(e) {
@@ -1344,11 +1359,11 @@ const ke = [
1344
1359
  ...ke,
1345
1360
  "transition",
1346
1361
  "view-timeline"
1347
- ], Ge = ["animation", "transition", "timeline"];
1362
+ ], We = ["animation", "transition", "timeline"];
1348
1363
  function L(e) {
1349
1364
  return e === "transition" ? "transition" : e === "view-timeline" ? "timeline" : "animation";
1350
1365
  }
1351
- const K = {
1366
+ const Y = {
1352
1367
  transition: "_",
1353
1368
  animation: "none",
1354
1369
  "animation-composition": "replace",
@@ -1381,7 +1396,7 @@ function is(e, t, n, s, i = 0, o) {
1381
1396
  animation: n,
1382
1397
  transition: s,
1383
1398
  timeline: 0
1384
- }, l = (u, a) => `@property ${a} { syntax: "*"; inherits: false; initial-value: ${K[u]}; }`;
1399
+ }, l = (u, a) => `@property ${a} { syntax: "*"; inherits: false; initial-value: ${Y[u]}; }`;
1385
1400
  return be.flatMap((u) => [
1386
1401
  ...Array.from(
1387
1402
  { length: r[L(u)] },
@@ -1539,7 +1554,7 @@ function Mt(e, t, n) {
1539
1554
  );
1540
1555
  }
1541
1556
  function Pe(e, t, n) {
1542
- Ge.forEach((s) => {
1557
+ We.forEach((s) => {
1543
1558
  t[s] && (e[s].touched = !0, n[s] && (e[s].slotsInSequence += 1));
1544
1559
  });
1545
1560
  }
@@ -1563,13 +1578,13 @@ function us(e) {
1563
1578
  );
1564
1579
  }
1565
1580
  function fs(e) {
1566
- Ge.forEach((t) => {
1581
+ We.forEach((t) => {
1567
1582
  const n = e[t];
1568
1583
  n.slotsInInteraction = Math.max(n.slotsInInteraction, n.slotsInSequence), n.slotsInSequence = 0;
1569
1584
  });
1570
1585
  }
1571
1586
  function ds(e) {
1572
- Ge.forEach((t) => {
1587
+ We.forEach((t) => {
1573
1588
  const n = e[t];
1574
1589
  n.listIndex += n.touched ? 1 : 0, n.slotCursor += n.slotsInInteraction, n.slotsInInteraction = 0, n.touched = !1;
1575
1590
  });
@@ -1602,7 +1617,7 @@ function ms(e, t, n, s) {
1602
1617
  function qt(e, t, n, s, i) {
1603
1618
  const o = [];
1604
1619
  for (const r of Object.keys(i)) {
1605
- const c = `${at}${r}`;
1620
+ const c = `${ct}${r}`;
1606
1621
  c in t && o.push(
1607
1622
  ...i[r](t[c], {
1608
1623
  key: n,
@@ -1622,11 +1637,11 @@ function ps(e, t, n, s, i, o) {
1622
1637
  keyframeEffect: m,
1623
1638
  transition: p,
1624
1639
  transitionProperties: g,
1625
- initial: y
1626
- } = t, E = ie(d, e.configConditions, "media"), v = R(d, e.configConditions), w = [
1640
+ initial: E
1641
+ } = t, y = ie(d, e.configConditions, "media"), v = R(d, e.configConditions), w = [
1627
1642
  {
1628
1643
  key: a,
1629
- media: E,
1644
+ media: y,
1630
1645
  selectorCondition: v,
1631
1646
  childSelector: c,
1632
1647
  declarations: []
@@ -1634,8 +1649,8 @@ function ps(e, t, n, s, i, o) {
1634
1649
  ];
1635
1650
  let b = [];
1636
1651
  const { declarations: S } = w[0];
1637
- if (e.plugins && w.push(...qt("effect", t, a, E, e.plugins)), h || m) {
1638
- const I = x(t), O = Dn(null, I, s, o).filter(
1652
+ if (e.plugins && w.push(...qt("effect", t, a, y, e.plugins)), h || m) {
1653
+ const I = x(t), O = Hn(null, I, s, o).filter(
1639
1654
  (T) => T.name
1640
1655
  ), M = O.length ? {} : { "": [] };
1641
1656
  O.forEach((T) => {
@@ -1654,30 +1669,30 @@ function ps(e, t, n, s, i, o) {
1654
1669
  name: i[P],
1655
1670
  value: C.map((Ie) => {
1656
1671
  const Te = hs[P];
1657
- return Ie[Te] || K[P];
1672
+ return Ie[Te] || Y[P];
1658
1673
  }).join(", ")
1659
1674
  })).filter(
1660
- ({ _listPropertyName: P, name: Ie, value: Te }) => Te !== K[P] || r.has(Ie)
1675
+ ({ _listPropertyName: P, name: Ie, value: Te }) => Te !== Y[P] || r.has(Ie)
1661
1676
  );
1662
1677
  _.forEach(({ name: P }) => r.add(P)), u.animation = u.animation || _.length > 0;
1663
1678
  const re = T ? `[data-motion-part~="${T}"]` : c;
1664
- T && _.length && l.add(re), y ? (w.push({
1679
+ T && _.length && l.add(re), E ? (w.push({
1665
1680
  key: a,
1666
- media: E,
1681
+ media: y,
1667
1682
  selectorCondition: v,
1668
1683
  childSelector: re,
1669
1684
  declarations: ls,
1670
1685
  selectorSuffix: ":not([data-interact-enter])"
1671
1686
  }), w.push({
1672
1687
  key: a,
1673
- media: E,
1688
+ media: y,
1674
1689
  selectorCondition: v,
1675
1690
  childSelector: re,
1676
1691
  declarations: _,
1677
1692
  selectorSuffix: ':not([data-interact-enter="done"])'
1678
1693
  })) : T ? w.push({
1679
1694
  key: a,
1680
- media: E,
1695
+ media: y,
1681
1696
  selectorCondition: v,
1682
1697
  childSelector: re,
1683
1698
  declarations: _
@@ -1687,10 +1702,10 @@ function ps(e, t, n, s, i, o) {
1687
1702
  const I = It(t), O = Tt(t);
1688
1703
  (O.length || r.has(i.transition)) && (S.push({
1689
1704
  name: i.transition,
1690
- value: O.join(", ") || K.transition
1705
+ value: O.join(", ") || Y.transition
1691
1706
  }), r.add(i.transition), u.transition = !0), w.push({
1692
1707
  key: a,
1693
- media: E,
1708
+ media: y,
1694
1709
  selectorCondition: v,
1695
1710
  childSelector: c,
1696
1711
  states: [f],
@@ -1702,7 +1717,7 @@ function ps(e, t, n, s, i, o) {
1702
1717
  (I) => r.has(i[I])
1703
1718
  ).map((I) => ({
1704
1719
  name: i[I],
1705
- value: K[I]
1720
+ value: Y[I]
1706
1721
  }))
1707
1722
  );
1708
1723
  return { rules: w.filter((I) => I.declarations.length), keyframes: b, wrote: u };
@@ -1771,7 +1786,7 @@ function ys(e, t, n) {
1771
1786
  e.plugins
1772
1787
  ) : [], { trigger: l } = t, u = {
1773
1788
  trigger: Un(l),
1774
- id: Q("trigger", [n], e.configIndex)
1789
+ id: X("trigger", [n], e.configIndex)
1775
1790
  }, a = /* @__PURE__ */ new Set();
1776
1791
  l === "viewProgress" && c.push(ms(e, t, u.id, a));
1777
1792
  const f = o.map((h, m) => {
@@ -1779,7 +1794,7 @@ function ys(e, t, n) {
1779
1794
  h,
1780
1795
  t,
1781
1796
  e.config,
1782
- Q("eff", [n, m], e.configIndex)
1797
+ X("eff", [n, m], e.configIndex)
1783
1798
  );
1784
1799
  return p && Object.assign(p, { slotKey: ve(n, m) });
1785
1800
  }).filter((h) => h !== null);
@@ -1791,7 +1806,7 @@ function ys(e, t, n) {
1791
1806
  h,
1792
1807
  t,
1793
1808
  e.config,
1794
- Q("seq", [n, m], e.configIndex),
1809
+ X("seq", [n, m], e.configIndex),
1795
1810
  (p) => ve(n, p, m)
1796
1811
  )
1797
1812
  ).filter((h) => h !== null);
@@ -1821,7 +1836,7 @@ function Lt(e, t) {
1821
1836
  );
1822
1837
  return { ctx: r, cssRules: c };
1823
1838
  }
1824
- function Q(e, t, n) {
1839
+ function X(e, t, n) {
1825
1840
  return [e, ...n === void 0 ? [] : [`c${n}`], ...t].join("-");
1826
1841
  }
1827
1842
  function ve(e, t, n) {
@@ -1863,7 +1878,7 @@ function ws(e, t) {
1863
1878
  ), d = as(n.scopedTimelines, n.configIndex);
1864
1879
  return { keyframes: n.keyframesMap, atProperty: f, cssRules: s, listsRule: l, timelineScopeRule: d };
1865
1880
  }
1866
- function zi(e, t) {
1881
+ function Di(e, t) {
1867
1882
  const { cssRules: n, keyframes: s, atProperty: i, listsRule: o, timelineScopeRule: r } = ws(
1868
1883
  e,
1869
1884
  t
@@ -1890,8 +1905,8 @@ function Is(e) {
1890
1905
  const t = e.trim().split(/\s+/), n = t[0], s = t.length > 1 ? t[1] : t[0], i = (o) => o.startsWith("-") ? o.slice(1) : parseFloat(o) ? `-${o}` : o;
1891
1906
  return `${i(n)} 0px ${i(s)}`;
1892
1907
  }
1893
- const X = {}, N = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new WeakMap();
1894
- let Rt = {}, B = null;
1908
+ const Z = {}, N = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakSet(), B = /* @__PURE__ */ new WeakMap();
1909
+ let Rt = {}, U = null;
1895
1910
  function Ts(e) {
1896
1911
  Rt = e;
1897
1912
  }
@@ -1900,18 +1915,18 @@ function xt(e, t, n) {
1900
1915
  i === e && o(t, n);
1901
1916
  });
1902
1917
  }
1903
- function Xe() {
1904
- return B || (B = new IntersectionObserver((e) => {
1918
+ function Ze() {
1919
+ return U || (U = new IntersectionObserver((e) => {
1905
1920
  e.forEach((t) => {
1906
1921
  const n = t.target;
1907
1922
  t.isIntersecting || xt(n, !1, !0);
1908
1923
  });
1909
- }, bs), B);
1924
+ }, bs), U);
1910
1925
  }
1911
1926
  function Nt(e, t = !1) {
1912
1927
  const n = JSON.stringify({ ...e, isSafeMode: t });
1913
- if (X[n])
1914
- return X[n];
1928
+ if (Z[n])
1929
+ return Z[n];
1915
1930
  const s = e.threshold ?? Ss, i = t ? $s : {
1916
1931
  root: null,
1917
1932
  rootMargin: e.inset ? Is(e.inset) : "0px",
@@ -1928,7 +1943,7 @@ function Nt(e, t = !1) {
1928
1943
  d && a * d > f && A.mutate(() => {
1929
1944
  o.unobserve(l);
1930
1945
  const m = Nt(e, !0);
1931
- Y.set(l, m), m.observe(l);
1946
+ B.set(l, m), m.observe(l);
1932
1947
  });
1933
1948
  });
1934
1949
  return;
@@ -1936,7 +1951,7 @@ function Nt(e, t = !1) {
1936
1951
  (c.isIntersecting || !u) && xt(l, c.isIntersecting);
1937
1952
  });
1938
1953
  }, i);
1939
- return X[n] = o, o;
1954
+ return Z[n] = o, o;
1940
1955
  }
1941
1956
  function Cs(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o, animation: r } = {}) {
1942
1957
  const c = { ...Rt, ...s }, l = n.triggerType || "once", u = r || se(
@@ -1950,13 +1965,13 @@ function Cs(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o, animation
1950
1965
  const a = Nt(c);
1951
1966
  l !== "once" && u.persist?.();
1952
1967
  let f = !0, d = !1, h;
1953
- h = { source: e, target: t, handler: (g, y) => {
1968
+ h = { source: e, target: t, handler: (g, E) => {
1954
1969
  if (!(o && !t.matches(o)))
1955
1970
  if (l === "once") {
1956
1971
  if (g && !d) {
1957
1972
  d = !0;
1958
- const E = N.get(e);
1959
- (!E || E.size === 0 || E.size === 1 && E.has(h)) && ((Y.get(e) || a).unobserve(e), ye.delete(e)), u.onFinish(() => {
1973
+ const y = N.get(e);
1974
+ (!y || y.size === 0 || y.size === 1 && y.has(h)) && ((B.get(e) || a).unobserve(e), ye.delete(e)), u.onFinish(() => {
1960
1975
  N.get(e)?.delete(h), N.get(t)?.delete(h);
1961
1976
  }), u.play(() => {
1962
1977
  const v = () => {
@@ -1971,16 +1986,16 @@ function Cs(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o, animation
1971
1986
  }), u.onFinish(w), u.onAbort(w)) : (A.mutate(v), u.onFinish(w));
1972
1987
  });
1973
1988
  }
1974
- } else l === "alternate" ? f && g ? (f = !1, u.play()) : f || u.reverse() : l === "repeat" ? g ? (u.progress(0), u.play()) : y && (u.pause(), u.progress(0)) : l === "state" && (g ? u.play() : y && u.pause());
1989
+ } else l === "alternate" ? f && g ? (f = !1, u.play()) : f || u.reverse() : l === "repeat" ? g ? (u.progress(0), u.play()) : E && (u.pause(), u.progress(0)) : l === "state" && (g ? u.play() : E && u.pause());
1975
1990
  }, cleanup: () => {
1976
- (Y.get(e) || a).unobserve(e), (l === "repeat" || l === "state") && Xe().unobserve(e), u.cancel(), ye.delete(e), Y.delete(e);
1977
- } }, k(N, e, h), k(N, t, h), Y.set(e, a), a.observe(e), (l === "repeat" || l === "state") && Xe().observe(e);
1991
+ (B.get(e) || a).unobserve(e), (l === "repeat" || l === "state") && Ze().unobserve(e), u.cancel(), ye.delete(e), B.delete(e);
1992
+ } }, k(N, e, h), k(N, t, h), B.set(e, a), a.observe(e), (l === "repeat" || l === "state") && Ze().observe(e);
1978
1993
  }
1979
1994
  function Os(e) {
1980
1995
  oe(N, e);
1981
1996
  }
1982
1997
  function _s() {
1983
- B = null, Object.keys(X).forEach((e) => delete X[e]);
1998
+ U = null, Object.keys(Z).forEach((e) => delete Z[e]);
1984
1999
  }
1985
2000
  const As = {
1986
2001
  add: Cs,
@@ -2010,7 +2025,7 @@ function ks(e) {
2010
2025
  }));
2011
2026
  };
2012
2027
  }
2013
- function Ze(e, t) {
2028
+ function Je(e, t) {
2014
2029
  let n = 0;
2015
2030
  return function() {
2016
2031
  n && window.clearTimeout(n), n = window.setTimeout(() => {
@@ -2048,8 +2063,8 @@ function Oe(e, t, n, s, i) {
2048
2063
  const m = e[l - 1]?.element;
2049
2064
  if (m) {
2050
2065
  if (f || d) {
2051
- const p = (i ? m.offsetWidth : m.offsetHeight) || 0, g = c.offset, y = (i ? c.element.offsetWidth : c.element.offsetHeight) || 0;
2052
- h = p - (g + y), o += h, r.end += h;
2066
+ const p = (i ? m.offsetWidth : m.offsetHeight) || 0, g = c.offset, E = (i ? c.element.offsetWidth : c.element.offsetHeight) || 0;
2067
+ h = p - (g + E), o += h, r.end += h;
2053
2068
  }
2054
2069
  f && (r.start += h);
2055
2070
  }
@@ -2067,13 +2082,13 @@ function Ps(e, t, n, s, i, o) {
2067
2082
  } else {
2068
2083
  if (f || r?.name) {
2069
2084
  f = f || r;
2070
- const m = Ee(f.add, i), p = z({ ...f, offset: 0 }, n, t), g = z({ ...f, offset: 100 }, n, t), y = Oe(o, p, g, n, s);
2071
- u = y.start + f.offset / 100 * (y.end - y.start) + m;
2085
+ const m = Ee(f.add, i), p = z({ ...f, offset: 0 }, n, t), g = z({ ...f, offset: 100 }, n, t), E = Oe(o, p, g, n, s);
2086
+ u = E.start + f.offset / 100 * (E.end - E.start) + m;
2072
2087
  }
2073
2088
  if (d || c?.name) {
2074
2089
  d = d || c;
2075
- const m = Ee(d.add, i), p = z({ ...d, offset: 0 }, n, t), g = z({ ...d, offset: 100 }, n, t), y = Oe(o, p, g, n, s);
2076
- a = y.start + d.offset / 100 * (y.end - y.start) + m;
2090
+ const m = Ee(d.add, i), p = z({ ...d, offset: 0 }, n, t), g = z({ ...d, offset: 100 }, n, t), E = Oe(o, p, g, n, s);
2091
+ a = E.start + d.offset / 100 * (E.end - E.start) + m;
2077
2092
  } else typeof l == "number" && (a = u + l);
2078
2093
  }
2079
2094
  return !h && !l && (h = a - u), { ...e, start: u, end: a, startRange: f, endRange: d, duration: h || l };
@@ -2123,7 +2138,7 @@ function ce(e, t, n, s, i) {
2123
2138
  )
2124
2139
  }));
2125
2140
  }
2126
- const Je = 100, zs = {
2141
+ const et = 100, zs = {
2127
2142
  horizontal: !1,
2128
2143
  observeViewportEntry: !0,
2129
2144
  viewportRootMargin: "7% 7%",
@@ -2131,14 +2146,14 @@ const Je = 100, zs = {
2131
2146
  observeSourcesResize: !1,
2132
2147
  observeContentResize: !1
2133
2148
  };
2134
- function Hs(e, t, n, s) {
2149
+ function Ds(e, t, n, s) {
2135
2150
  let i = 0;
2136
2151
  return e >= t && e <= n ? i = s ? (e - t) / s : 1 : e > n && (i = 1), i;
2137
2152
  }
2138
- function et(e, t) {
2153
+ function tt(e, t) {
2139
2154
  return e === window ? t ? window.document.documentElement.clientWidth : window.document.documentElement.clientHeight : t ? e.clientWidth : e.clientHeight;
2140
2155
  }
2141
- function Ds() {
2156
+ function Hs() {
2142
2157
  return {
2143
2158
  viewportWidth: window.document.documentElement.clientWidth,
2144
2159
  viewportHeight: window.document.documentElement.clientHeight
@@ -2146,14 +2161,14 @@ function Ds() {
2146
2161
  }
2147
2162
  function Gs(e) {
2148
2163
  const t = jt(e, zs), n = t.root, s = t.horizontal, i = /* @__PURE__ */ new WeakMap();
2149
- let o = et(n, s), r, c, l, u, a;
2150
- const f = [], d = Ds();
2164
+ let o = tt(n, s), r, c, l, u, a;
2165
+ const f = [], d = Hs();
2151
2166
  if (t.scenes = Object.values(
2152
2167
  // TODO(ameerf): find a polyfill and use groupBy instead of following reduce
2153
2168
  e.scenes.reduce(
2154
- (p, g, y) => {
2155
- const E = g.groupId ? `group-${g.groupId}` : String(y);
2156
- return p[E] ? p[E].push(g) : p[E] = [g], p;
2169
+ (p, g, E) => {
2170
+ const y = g.groupId ? `group-${g.groupId}` : String(E);
2171
+ return p[y] ? p[y].push(g) : p[y] = [g], p;
2157
2172
  },
2158
2173
  {}
2159
2174
  )
@@ -2164,41 +2179,41 @@ function Gs(e) {
2164
2179
  }), f.length) {
2165
2180
  const p = /* @__PURE__ */ new Map();
2166
2181
  window.ResizeObserver && (l = new window.ResizeObserver(function(g) {
2167
- g.forEach((y) => {
2168
- const E = p.get(y.target), v = ce(E, n, o, s, d);
2182
+ g.forEach((E) => {
2183
+ const y = p.get(E.target), v = ce(y, n, o, s, d);
2169
2184
  v.forEach((w, b) => {
2170
2185
  t.scenes[w.index] = v[b];
2171
- }), f.splice(f.indexOf(E), 1, v);
2186
+ }), f.splice(f.indexOf(y), 1, v);
2172
2187
  });
2173
2188
  }), f.forEach((g) => {
2174
2189
  l.observe(g[0].viewSource, { box: "border-box" }), p.set(g[0].viewSource, g);
2175
- }), t.observeContentResize && t.contentRoot && new window.ResizeObserver(Ze(() => {
2176
- const y = f.map((E) => {
2177
- const v = ce(E, n, o, s, d);
2190
+ }), t.observeContentResize && t.contentRoot && new window.ResizeObserver(Je(() => {
2191
+ const E = f.map((y) => {
2192
+ const v = ce(y, n, o, s, d);
2178
2193
  return v.forEach((w, b) => {
2179
2194
  t.scenes[w.index] = v[b];
2180
2195
  }), v;
2181
2196
  });
2182
- f.length = 0, f.push(...y), f.forEach((E) => {
2183
- p.set(E[0].viewSource, E);
2197
+ f.length = 0, f.push(...E), f.forEach((y) => {
2198
+ p.set(y[0].viewSource, y);
2184
2199
  });
2185
- }, Je)).observe(t.contentRoot, { box: "border-box" })), t.observeViewportResize && (u = Ze(function() {
2186
- o = et(n, s);
2187
- const g = f.map((y) => {
2188
- const E = ce(y, n, o, s, d);
2189
- return E.forEach((v, w) => {
2190
- t.scenes[v.index] = E[w];
2191
- }), E;
2200
+ }, et)).observe(t.contentRoot, { box: "border-box" })), t.observeViewportResize && (u = Je(function() {
2201
+ o = tt(n, s);
2202
+ const g = f.map((E) => {
2203
+ const y = ce(E, n, o, s, d);
2204
+ return y.forEach((v, w) => {
2205
+ t.scenes[v.index] = y[w];
2206
+ }), y;
2192
2207
  });
2193
- f.length = 0, f.push(...g), f.forEach((y) => {
2194
- p.set(y[0].viewSource, y);
2208
+ f.length = 0, f.push(...g), f.forEach((E) => {
2209
+ p.set(E[0].viewSource, E);
2195
2210
  });
2196
- }, Je), n === window ? window.addEventListener("resize", u) : window.ResizeObserver && (a = new window.ResizeObserver(u), a.observe(n, { box: "border-box" })));
2211
+ }, et), n === window ? window.addEventListener("resize", u) : window.ResizeObserver && (a = new window.ResizeObserver(u), a.observe(n, { box: "border-box" })));
2197
2212
  }
2198
2213
  t.observeViewportEntry && window.IntersectionObserver && (c = new window.IntersectionObserver(function(p) {
2199
2214
  p.forEach((g) => {
2200
- (i.get(g.target) || []).forEach((y) => {
2201
- y.disabled = !g.isIntersecting;
2215
+ (i.get(g.target) || []).forEach((E) => {
2216
+ E.disabled = !g.isIntersecting;
2202
2217
  });
2203
2218
  });
2204
2219
  }, {
@@ -2213,12 +2228,12 @@ function Gs(e) {
2213
2228
  }));
2214
2229
  function h({ p, vp: g }) {
2215
2230
  p = +p.toFixed(1);
2216
- const y = +g.toFixed(4);
2231
+ const E = +g.toFixed(4);
2217
2232
  if (p !== r) {
2218
- for (let E of t.scenes)
2219
- if (!E.disabled) {
2220
- const { start: v, end: w, duration: b } = E, S = Hs(p, v, w, b);
2221
- E.effect(E, S, y);
2233
+ for (let y of t.scenes)
2234
+ if (!y.disabled) {
2235
+ const { start: v, end: w, duration: b } = y, S = Ds(p, v, w, b);
2236
+ y.effect(y, S, E);
2222
2237
  }
2223
2238
  r = p;
2224
2239
  }
@@ -2388,10 +2403,10 @@ const Us = {
2388
2403
  remove: Bs,
2389
2404
  registerOptionsGetter: Ks
2390
2405
  };
2391
- function tt(e, t, n) {
2406
+ function nt(e, t, n) {
2392
2407
  return Math.min(Math.max(e, n), t);
2393
2408
  }
2394
- function nt(e) {
2409
+ function st(e) {
2395
2410
  let t = !1;
2396
2411
  return function() {
2397
2412
  if (!t)
@@ -2514,7 +2529,7 @@ function ri(e) {
2514
2529
  }), s = function(a) {
2515
2530
  for (let f of e.scenes)
2516
2531
  if (!f.disabled) {
2517
- const d = f.transform?.x(a.x) || a.x / e.rect.width, h = f.transform?.y(a.y) || a.y / e.rect.height, m = +tt(0, 1, d).toPrecision(4), p = +tt(0, 1, h).toPrecision(4), g = { x: a.vx, y: a.vy };
2532
+ const d = f.transform?.x(a.x) || a.x / e.rect.width, h = f.transform?.y(a.y) || a.y / e.rect.height, m = +nt(0, 1, d).toPrecision(4), p = +nt(0, 1, h).toPrecision(4), g = { x: a.vx, y: a.vy };
2518
2533
  e.allowActiveEvent && (a.active = d <= 1 && h <= 1 && d >= 0 && h >= 0), f.effect(f, { x: m, y: p }, g, a.active);
2519
2534
  }
2520
2535
  Object.assign(n, a);
@@ -2530,14 +2545,14 @@ function ri(e) {
2530
2545
  const ai = 1e3 / 60 * 3;
2531
2546
  let ue;
2532
2547
  function ci() {
2533
- H.x = window.scrollX, H.y = window.scrollY;
2548
+ D.x = window.scrollX, D.y = window.scrollY;
2534
2549
  }
2535
- const H = { x: 0, y: 0, scrollHandler: ci, fixRequired: void 0 };
2550
+ const D = { x: 0, y: 0, scrollHandler: ci, fixRequired: void 0 };
2536
2551
  class li {
2537
2552
  constructor(t = {}) {
2538
2553
  this.config = { ...t }, this.effect = null, this._nextTick = null, this._nextTransitionTick = null, this._startTime = 0;
2539
2554
  let n;
2540
- this.config.transitionDuration ? n = this.config.noThrottle ? () => this.transition() : nt(() => this.transition()) : n = this.config.noThrottle ? () => (this.tick(), null) : nt(() => {
2555
+ this.config.transitionDuration ? n = this.config.noThrottle ? () => this.transition() : st(() => this.transition()) : n = this.config.noThrottle ? () => (this.tick(), null) : st(() => {
2541
2556
  this.tick();
2542
2557
  }), this.config.rect = this.config.root ? {
2543
2558
  width: this.config.root.offsetWidth,
@@ -2562,13 +2577,13 @@ class li {
2562
2577
  }, this.config.root) {
2563
2578
  ue = typeof ue == "boolean" ? ue : Xs();
2564
2579
  const i = ue ? window.devicePixelRatio : 1;
2565
- typeof H.fixRequired > "u" && Js(H), this._measure = (o) => {
2580
+ typeof D.fixRequired > "u" && Js(D), this._measure = (o) => {
2566
2581
  if (o.target !== this.config.root) {
2567
2582
  const r = new PointerEvent("pointermove", {
2568
2583
  bubbles: !0,
2569
2584
  cancelable: !0,
2570
- clientX: o.x * i + H.x,
2571
- clientY: o.y * i + H.y
2585
+ clientX: o.x * i + D.x,
2586
+ clientY: o.y * i + D.y
2572
2587
  });
2573
2588
  o.stopPropagation(), this.config.root.dispatchEvent(r);
2574
2589
  } else
@@ -2644,11 +2659,17 @@ class li {
2644
2659
  }
2645
2660
  }
2646
2661
  const Fe = /* @__PURE__ */ new WeakMap();
2647
- let Ht = () => ({});
2662
+ let Dt = () => ({});
2648
2663
  function ui(e) {
2649
- Ht = e;
2664
+ Dt = e;
2650
2665
  }
2651
- function fi(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o }) {
2666
+ function fi(e) {
2667
+ return !("keyframeEffect" in e || "customEffect" in e) || !e.transitionDuration ? {} : {
2668
+ transitionDuration: e.transitionDuration,
2669
+ transitionEasing: De(e.transitionEasing)
2670
+ };
2671
+ }
2672
+ function di(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o }) {
2652
2673
  if (i || o && !t.matches(o)) return;
2653
2674
  const r = {
2654
2675
  trigger: "pointer-move",
@@ -2659,7 +2680,8 @@ function fi(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o }) {
2659
2680
  const l = Array.isArray(c) ? c : [c], u = new li({
2660
2681
  root: s.hitArea === "self" ? e : void 0,
2661
2682
  scenes: l,
2662
- ...Ht()
2683
+ ...Dt(),
2684
+ ...fi(n)
2663
2685
  }), f = { source: e, target: t, cleanup: () => {
2664
2686
  u.destroy();
2665
2687
  } };
@@ -2670,15 +2692,15 @@ function fi(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o }) {
2670
2692
  });
2671
2693
  }
2672
2694
  }
2673
- function di(e) {
2695
+ function hi(e) {
2674
2696
  oe(Fe, e);
2675
2697
  }
2676
- const hi = {
2677
- add: fi,
2678
- remove: di,
2698
+ const mi = {
2699
+ add: di,
2700
+ remove: hi,
2679
2701
  registerOptionsGetter: ui
2680
2702
  }, Re = /* @__PURE__ */ new WeakMap();
2681
- function mi(e, t, n, s, {
2703
+ function pi(e, t, n, s, {
2682
2704
  reducedMotion: i,
2683
2705
  selectorCondition: o,
2684
2706
  animation: r,
@@ -2707,14 +2729,14 @@ function mi(e, t, n, s, {
2707
2729
  } };
2708
2730
  k(Re, e, d), k(Re, t, d), e.addEventListener("animationend", a);
2709
2731
  }
2710
- function pi(e) {
2732
+ function gi(e) {
2711
2733
  oe(Re, e);
2712
2734
  }
2713
- const gi = {
2714
- add: mi,
2715
- remove: pi
2735
+ const vi = {
2736
+ add: pi,
2737
+ remove: gi
2716
2738
  };
2717
- function vi(e, t, n = !1, s, i, o) {
2739
+ function yi(e, t, n = !1, s, i, o) {
2718
2740
  const r = o || se(
2719
2741
  e,
2720
2742
  x(t),
@@ -2749,7 +2771,7 @@ function vi(e, t, n = !1, s, i, o) {
2749
2771
  })) : l === "state" && r.playState === "running" && r.pause());
2750
2772
  };
2751
2773
  }
2752
- function yi(e, t, {
2774
+ function Ei(e, t, {
2753
2775
  effectId: n,
2754
2776
  listContainer: s,
2755
2777
  listItemSelector: i,
@@ -2765,69 +2787,69 @@ function yi(e, t, {
2765
2787
  };
2766
2788
  }
2767
2789
  const xe = /* @__PURE__ */ new WeakMap();
2768
- function st(e, t) {
2790
+ function it(e, t) {
2769
2791
  return (n) => {
2770
2792
  const s = n;
2771
2793
  e.contains(s.relatedTarget) || t(s);
2772
2794
  };
2773
2795
  }
2774
- function Ei(e) {
2796
+ function wi(e) {
2775
2797
  return (t) => {
2776
2798
  const n = t;
2777
2799
  (n.pointerType || n.detail > 0) && e(n);
2778
2800
  };
2779
2801
  }
2780
- function wi(e) {
2802
+ function $i(e) {
2781
2803
  return (t) => {
2782
2804
  const n = t;
2783
2805
  n.code === "Space" ? (n.preventDefault(), e(n)) : n.code === "Enter" && e(n);
2784
2806
  };
2785
2807
  }
2786
- const $i = {
2787
- focusin: (e, t) => st(e, t),
2788
- focusout: (e, t) => st(e, t),
2789
- click: (e, t) => Ei(t),
2790
- keydown: (e, t) => wi(t)
2808
+ const bi = {
2809
+ focusin: (e, t) => it(e, t),
2810
+ focusout: (e, t) => it(e, t),
2811
+ click: (e, t) => wi(t),
2812
+ keydown: (e, t) => $i(t)
2791
2813
  };
2792
- function bi(e, t, n) {
2793
- const s = $i[e];
2814
+ function Si(e, t, n) {
2815
+ const s = bi[e];
2794
2816
  return s ? s(t, n) : (i) => n(i);
2795
2817
  }
2796
- function Si(e) {
2818
+ function Ii(e) {
2797
2819
  return typeof e == "object" && !Array.isArray(e) && ("enter" in e || "leave" in e);
2798
2820
  }
2799
- function Ii(e) {
2821
+ function Ti(e) {
2800
2822
  if (typeof e == "string")
2801
2823
  return { toggle: [e] };
2802
2824
  if (Array.isArray(e))
2803
2825
  return { toggle: [...e] };
2804
- if (Si(e)) {
2826
+ if (Ii(e)) {
2805
2827
  const t = e.enter ? [...e.enter] : [], n = e.leave ? [...e.leave] : [];
2806
2828
  return { enter: t, leave: n };
2807
2829
  }
2808
2830
  return {};
2809
2831
  }
2810
- function Ti(e) {
2832
+ function Ci(e) {
2811
2833
  return !!(e.enter?.length || e.leave?.length);
2812
2834
  }
2813
- function Ci(e) {
2814
- return Ti(e) ? { enter: e.enter ?? [], leave: e.leave ?? [] } : void 0;
2835
+ function Oi(e) {
2836
+ return Ci(e) ? { enter: e.enter ?? [], leave: e.leave ?? [] } : void 0;
2815
2837
  }
2816
- function Oi(e, t, n, s, {
2838
+ function _i(e, t, n, s, {
2817
2839
  reducedMotion: i,
2818
2840
  targetController: o,
2819
2841
  selectorCondition: r,
2820
2842
  animation: c
2821
2843
  }) {
2822
- const l = Ii(s.eventConfig), u = n.transition || n.transitionProperties, a = Ci(l);
2844
+ const l = Ti(s.eventConfig), u = n.transition || n.transitionProperties, a = Oi(l);
2823
2845
  let f, d = !1;
2824
- if (u ? f = yi(
2846
+ if (u ? f = Ei(
2825
2847
  t,
2826
2848
  o,
2827
2849
  n,
2828
2850
  r,
2829
2851
  a
2830
- ) : (f = vi(
2852
+ ) : (f = yi(
2831
2853
  t,
2832
2854
  n,
2833
2855
  i,
@@ -2837,16 +2859,16 @@ function Oi(e, t, n, s, {
2837
2859
  ), d = n.triggerType === "once"), !f)
2838
2860
  return;
2839
2861
  const h = f, m = new AbortController();
2840
- function p(E, v, w) {
2841
- const b = bi(v, e, h);
2842
- E.addEventListener(v, b, { ...w, signal: m.signal });
2862
+ function p(y, v, w) {
2863
+ const b = Si(v, e, h);
2864
+ y.addEventListener(v, b, { ...w, signal: m.signal });
2843
2865
  }
2844
- const y = { source: e, target: t, cleanup: () => {
2866
+ const E = { source: e, target: t, cleanup: () => {
2845
2867
  m.abort();
2846
2868
  } };
2847
- if (k(xe, e, y), k(xe, t, y), a) {
2848
- const E = l.enter, v = l.leave;
2849
- E.forEach((S) => {
2869
+ if (k(xe, e, E), k(xe, t, E), a) {
2870
+ const y = l.enter, v = l.leave;
2871
+ y.forEach((S) => {
2850
2872
  S === "focusin" && (e.tabIndex = 0), p(e, S, { passive: !0, once: d });
2851
2873
  });
2852
2874
  const w = !n.stateAction || n.stateAction === "toggle";
@@ -2862,12 +2884,12 @@ function Oi(e, t, n, s, {
2862
2884
  p(e, v, { once: d, passive: v !== "keydown" });
2863
2885
  });
2864
2886
  }
2865
- function _i(e) {
2887
+ function Ai(e) {
2866
2888
  oe(xe, e);
2867
2889
  }
2868
- const U = {
2869
- add: Oi,
2870
- remove: _i
2890
+ const Q = {
2891
+ add: _i,
2892
+ remove: Ai
2871
2893
  }, Ne = {
2872
2894
  click: ["click"],
2873
2895
  activate: ["click", "keydown"],
@@ -2876,40 +2898,40 @@ const U = {
2876
2898
  enter: ["mouseenter", "focusin"],
2877
2899
  leave: ["mouseleave", "focusout"]
2878
2900
  }
2879
- }, it = {
2901
+ }, ot = {
2880
2902
  click: Ne.activate,
2881
2903
  hover: Ne.interest
2882
2904
  };
2883
2905
  function fe(e) {
2884
2906
  const t = Ne[e];
2885
2907
  return (n, s, i, o, r) => {
2886
- const c = r?.allowA11yTriggers && e in it ? it[e] : t;
2887
- U.add(n, s, i, { eventConfig: c }, r ?? {});
2908
+ const c = r?.allowA11yTriggers && e in ot ? ot[e] : t;
2909
+ Q.add(n, s, i, { eventConfig: c }, r ?? {});
2888
2910
  };
2889
2911
  }
2890
- const D = {
2912
+ const H = {
2891
2913
  viewEnter: As,
2892
2914
  hover: {
2893
2915
  add: fe("hover"),
2894
- remove: U.remove
2916
+ remove: Q.remove
2895
2917
  },
2896
2918
  click: {
2897
2919
  add: fe("click"),
2898
- remove: U.remove
2920
+ remove: Q.remove
2899
2921
  },
2900
- animationEnd: gi,
2922
+ animationEnd: vi,
2901
2923
  viewProgress: Us,
2902
- pointerMove: hi,
2924
+ pointerMove: mi,
2903
2925
  activate: {
2904
2926
  add: fe("activate"),
2905
- remove: U.remove
2927
+ remove: Q.remove
2906
2928
  },
2907
2929
  interest: {
2908
2930
  add: fe("interest"),
2909
- remove: U.remove
2931
+ remove: Q.remove
2910
2932
  }
2911
2933
  };
2912
- function Ai(e) {
2934
+ function Mi(e) {
2913
2935
  return e.replace(/\[[^\]]+]/g, "[]");
2914
2936
  }
2915
2937
  class $ {
@@ -2933,7 +2955,7 @@ class $ {
2933
2955
  if (typeof window > "u" || !window.customElements)
2934
2956
  return;
2935
2957
  const s = n?.useCustomElement ?? !!$.defineInteractElement;
2936
- this.dataCache = qi(t, s, n?.configIndex);
2958
+ this.dataCache = Pi(t, s, n?.configIndex);
2937
2959
  const i = $.defineInteractElement?.();
2938
2960
  s && i === !1 ? document.querySelectorAll("interact-element").forEach((o) => {
2939
2961
  o.connect();
@@ -2959,7 +2981,7 @@ class $ {
2959
2981
  return !!this.get(t);
2960
2982
  }
2961
2983
  get(t) {
2962
- const n = Ai(t);
2984
+ const n = Mi(t);
2963
2985
  return this.dataCache.interactions[n];
2964
2986
  }
2965
2987
  clearMediaQueryListenersForKey(t) {
@@ -2992,11 +3014,11 @@ class $ {
2992
3014
  }), $.instances.length = 0, $.controllerCache.clear(), $.sequenceCache.clear(), $.elementSequenceMap = /* @__PURE__ */ new WeakMap();
2993
3015
  }
2994
3016
  static setup(t) {
2995
- t.scrollOptionsGetter && D.viewProgress.registerOptionsGetter?.(
3017
+ t.scrollOptionsGetter && H.viewProgress.registerOptionsGetter?.(
2996
3018
  t.scrollOptionsGetter
2997
- ), t.pointerOptionsGetter && D.pointerMove.registerOptionsGetter?.(
3019
+ ), t.pointerOptionsGetter && H.pointerMove.registerOptionsGetter?.(
2998
3020
  t.pointerOptionsGetter
2999
- ), t.viewEnter && D.viewEnter.setOptions(
3021
+ ), t.viewEnter && H.viewEnter.setOptions(
3000
3022
  t.viewEnter
3001
3023
  ), t.allowA11yTriggers !== void 0 && ($.allowA11yTriggers = t.allowA11yTriggers);
3002
3024
  }
@@ -3067,7 +3089,7 @@ class $ {
3067
3089
  }
3068
3090
  }
3069
3091
  }
3070
- let Mi = 0;
3092
+ let ki = 0;
3071
3093
  function G(e, {
3072
3094
  asCombinator: t = !1,
3073
3095
  addItemFilter: n = !1,
@@ -3080,7 +3102,7 @@ function G(e, {
3080
3102
  return e.selector;
3081
3103
  return s ? t ? "> :first-child" : ":scope > :first-child" : "";
3082
3104
  }
3083
- function ot(e) {
3105
+ function rt(e) {
3084
3106
  return "sequenceId" in e && !("effects" in e);
3085
3107
  }
3086
3108
  function _e(e, t) {
@@ -3092,7 +3114,7 @@ function _e(e, t) {
3092
3114
  selectors: /* @__PURE__ */ new Set()
3093
3115
  }), e[t];
3094
3116
  }
3095
- function ki(e, t, n) {
3117
+ function qi(e, t, n) {
3096
3118
  const { effects: s = [] } = e;
3097
3119
  return s.some((i, o) => n.has(t(o))) ? {
3098
3120
  ...e,
@@ -3102,10 +3124,10 @@ function ki(e, t, n) {
3102
3124
  })
3103
3125
  } : e;
3104
3126
  }
3105
- function qi(e, t = !1, n) {
3127
+ function Pi(e, t = !1, n) {
3106
3128
  const { effects: s = {}, sequences: i = {}, conditions: o = {} } = e, r = {}, c = e.interactions ? Ft(e, n) : /* @__PURE__ */ new Map();
3107
3129
  return e.interactions?.forEach((l, u) => {
3108
- const a = l.key, f = ++Mi, { effects: d, sequences: h, ...m } = l;
3130
+ const a = l.key, f = ++ki, { effects: d, sequences: h, ...m } = l;
3109
3131
  if (!a) {
3110
3132
  console.error(`Interaction ${f} is missing a key for source element.`);
3111
3133
  return;
@@ -3114,38 +3136,38 @@ function qi(e, t = !1, n) {
3114
3136
  const p = d ? Array.from(d) : [];
3115
3137
  p.reverse();
3116
3138
  const g = h?.map((v, w) => {
3117
- if (ot(v)) {
3139
+ if (rt(v)) {
3118
3140
  const S = i[v.sequenceId];
3119
3141
  return S ? { ...S, ...v } : (console.warn(`Interact: Sequence "${v.sequenceId}" not found in config`), v);
3120
3142
  }
3121
3143
  const b = v;
3122
- return b.sequenceId || (b.sequenceId = Q("seq", [u, w], n)), b;
3123
- }), y = {
3144
+ return b.sequenceId || (b.sequenceId = X("seq", [u, w], n)), b;
3145
+ }), E = {
3124
3146
  ...m,
3125
3147
  effects: p.length > 0 ? p : void 0,
3126
3148
  sequences: g?.map(
3127
- (v, w) => ki(
3149
+ (v, w) => qi(
3128
3150
  v,
3129
3151
  (b) => ve(u, b, w),
3130
3152
  c
3131
3153
  )
3132
3154
  )
3133
3155
  };
3134
- r[a].triggers.push(y), r[a].selectors.add(
3135
- G(y, { useFirstChild: t })
3156
+ r[a].triggers.push(E), r[a].selectors.add(
3157
+ G(E, { useFirstChild: t })
3136
3158
  );
3137
- const E = y.listContainer;
3159
+ const y = E.listContainer;
3138
3160
  p.forEach((v, w) => {
3139
3161
  const b = v.effectId ? s[v.effectId] : void 0;
3140
3162
  let S = v.key || b?.key;
3141
3163
  const I = p.length - 1 - w;
3142
- v.effectId || (v.effectId = Q(
3164
+ v.effectId || (v.effectId = X(
3143
3165
  "eff",
3144
3166
  [u, I],
3145
3167
  n
3146
3168
  ));
3147
3169
  const O = c.get(ve(u, I));
3148
- if (O && (v.suffix = O), S = S || a, v.key = S, E && v.listContainer && (S !== a || v.listContainer !== E))
3170
+ if (O && (v.suffix = O), S = S || a, v.key = S, y && v.listContainer && (S !== a || v.listContainer !== y))
3149
3171
  return;
3150
3172
  const M = W({ ...b, ...v, key: S }), T = `${a}::${M}::${f}`;
3151
3173
  if (v.interactionId = T, r[a].interactionIds.add(T), S === a)
@@ -3153,7 +3175,7 @@ function qi(e, t = !1, n) {
3153
3175
  const C = _e(r, S);
3154
3176
  C.effects[T] || (C.effects[T] = [], C.interactionIds.add(T)), C.effects[T].push({ ...m, effect: v }), C.selectors.add(G(v, { useFirstChild: t }));
3155
3177
  }), g?.forEach((v) => {
3156
- if (!v || ot(v)) return;
3178
+ if (!v || rt(v)) return;
3157
3179
  const w = v, b = w.sequenceId;
3158
3180
  w.effects.forEach((I, O) => {
3159
3181
  I.effectId || (I.effectId = `eff-${b}-${O}`);
@@ -3183,7 +3205,7 @@ function qi(e, t = !1, n) {
3183
3205
  function Se(e, t, n, s, i) {
3184
3206
  const o = $.getPluginsNames();
3185
3207
  for (const r of o) {
3186
- const c = `${at}${r}`;
3208
+ const c = `${ct}${r}`;
3187
3209
  if (!(c in n))
3188
3210
  continue;
3189
3211
  const l = n[c];
@@ -3212,7 +3234,7 @@ function we(e, t, n) {
3212
3234
  function $e(e, t) {
3213
3235
  return t.map((n) => e.selector ? n.querySelector(e.selector) : n).filter(Boolean);
3214
3236
  }
3215
- function Dt(e, t, n, s, i, o, r, c) {
3237
+ function Ht(e, t, n, s, i, o, r, c) {
3216
3238
  return [
3217
3239
  r ? $e(e, r) : we(e, n, s),
3218
3240
  c ? $e(t, c) : we(t, i, o)
@@ -3222,7 +3244,7 @@ function Gt(e, t, n, s, i, o, r, c) {
3222
3244
  const l = Array.isArray(s), u = Array.isArray(i);
3223
3245
  l ? s.forEach((a, f) => {
3224
3246
  const d = u ? i[f] : i;
3225
- d && rt(
3247
+ d && at(
3226
3248
  e,
3227
3249
  a,
3228
3250
  t.trigger,
@@ -3234,7 +3256,7 @@ function Gt(e, t, n, s, i, o, r, c) {
3234
3256
  c
3235
3257
  );
3236
3258
  }) : (u ? i : [i]).forEach((f) => {
3237
- rt(
3259
+ at(
3238
3260
  e,
3239
3261
  s,
3240
3262
  t.trigger,
@@ -3277,7 +3299,7 @@ function Wt(e, t, n, s, i) {
3277
3299
  m || s.key,
3278
3300
  "effect"
3279
3301
  );
3280
- const [g, y] = Dt(
3302
+ const [g, E] = Ht(
3281
3303
  s,
3282
3304
  a,
3283
3305
  t.element,
@@ -3286,19 +3308,19 @@ function Wt(e, t, n, s, i) {
3286
3308
  p.useFirstChild,
3287
3309
  i
3288
3310
  );
3289
- if (!g || !y)
3311
+ if (!g || !E)
3290
3312
  return;
3291
3313
  n.addedInteractions[d] = !0;
3292
- const E = m || s.key, v = R(
3314
+ const y = m || s.key, v = R(
3293
3315
  a.conditions || [],
3294
3316
  n.dataCache.conditions
3295
3317
  );
3296
3318
  r.push([
3297
- E,
3319
+ y,
3298
3320
  s,
3299
3321
  a,
3300
3322
  g,
3301
- y,
3323
+ E,
3302
3324
  v,
3303
3325
  p.useFirstChild,
3304
3326
  e
@@ -3306,9 +3328,9 @@ function Wt(e, t, n, s, i) {
3306
3328
  }
3307
3329
  }), r.reverse().forEach((c) => {
3308
3330
  Gt(...c);
3309
- }), Li(e, t, n, s, i);
3331
+ }), Fi(e, t, n, s, i);
3310
3332
  }
3311
- function Pi(e) {
3333
+ function Li(e) {
3312
3334
  return "sequenceId" in e && !("effects" in e);
3313
3335
  }
3314
3336
  function Vt(e, t, n, s, i, o, r) {
@@ -3331,16 +3353,16 @@ function Vt(e, t, n, s, i, o, r) {
3331
3353
  );
3332
3354
  }
3333
3355
  if (p && !p.matches) continue;
3334
- const g = m.key, y = g && q(g, n);
3335
- let E;
3336
- if (y) {
3337
- if (E = $.getController(y), !E) return null;
3356
+ const g = m.key, E = g && q(g, n);
3357
+ let y;
3358
+ if (E) {
3359
+ if (y = $.getController(E), !y) return null;
3338
3360
  } else
3339
- E = s;
3340
- const v = y || n;
3361
+ y = s;
3362
+ const v = E || n;
3341
3363
  Se(
3342
- E,
3343
- E.element,
3364
+ y,
3365
+ y.element,
3344
3366
  m,
3345
3367
  v,
3346
3368
  "effect"
@@ -3348,8 +3370,8 @@ function Vt(e, t, n, s, i, o, r) {
3348
3370
  let w;
3349
3371
  if (r && v === r.controllerKey && m.listContainer === r.listContainer ? (w = $e(m, r.elements), w.length > 0 && (a = !0)) : w = we(
3350
3372
  m,
3351
- E.element,
3352
- E.useFirstChild
3373
+ y.element,
3374
+ y.useFirstChild
3353
3375
  ), !w || Array.isArray(w) && w.length === 0) return null;
3354
3376
  const b = x(m);
3355
3377
  u.push({ target: w, options: b });
@@ -3362,7 +3384,7 @@ function je(e, t, n) {
3362
3384
  }
3363
3385
  function ze(e, t, n, s, i) {
3364
3386
  (Array.isArray(n) ? n : [n]).forEach((r) => {
3365
- D[e.trigger]?.add(
3387
+ H[e.trigger]?.add(
3366
3388
  r,
3367
3389
  r,
3368
3390
  { triggerType: t.triggerType },
@@ -3385,10 +3407,10 @@ function Kt(e, t, n) {
3385
3407
  return l >= 0 ? l : r.length;
3386
3408
  });
3387
3409
  }
3388
- function Li(e, t, n, s, i) {
3410
+ function Fi(e, t, n, s, i) {
3389
3411
  s.sequences?.forEach((o) => {
3390
3412
  let r;
3391
- if (Pi(o)) {
3413
+ if (Li(o)) {
3392
3414
  const m = n.dataCache.sequences[o.sequenceId];
3393
3415
  if (!m) {
3394
3416
  console.warn(`Interact: Sequence "${o.sequenceId}" not found in cache`);
@@ -3423,11 +3445,11 @@ function Li(e, t, n, s, i) {
3423
3445
  }), g = R(
3424
3446
  s.conditions || [],
3425
3447
  n.dataCache.conditions
3426
- ), y = je(s, t, i);
3427
- y && ze(
3448
+ ), E = je(s, t, i);
3449
+ E && ze(
3428
3450
  s,
3429
3451
  r,
3430
- y,
3452
+ E,
3431
3453
  p,
3432
3454
  g
3433
3455
  );
@@ -3448,7 +3470,7 @@ function Li(e, t, n, s, i) {
3448
3470
  ));
3449
3471
  });
3450
3472
  }
3451
- function Fi(e, t, n, s, i) {
3473
+ function Ri(e, t, n, s, i) {
3452
3474
  const o = n.get(e)?.sequences || {};
3453
3475
  Object.keys(o).forEach((c) => {
3454
3476
  o[c].some(({ sequence: u, ...a }) => {
@@ -3464,7 +3486,7 @@ function Fi(e, t, n, s, i) {
3464
3486
  const m = u.sequenceId || ee(), p = q(`${d}::seq::${m}`, d);
3465
3487
  if (n.addedInteractions[p] && !i)
3466
3488
  return !0;
3467
- const y = Vt(
3489
+ const E = Vt(
3468
3490
  u,
3469
3491
  p,
3470
3492
  d,
@@ -3473,14 +3495,14 @@ function Fi(e, t, n, s, i) {
3473
3495
  { updateKey: e, onUpdate: () => t.update() },
3474
3496
  i && s ? { controllerKey: e, listContainer: s, elements: i } : void 0
3475
3497
  );
3476
- if (!y) return !0;
3498
+ if (!E) return !0;
3477
3499
  if (i && n.addedInteractions[p]) {
3478
3500
  const b = Kt(t, s, i);
3479
- return $.addToSequence(p, y, b, {
3501
+ return $.addToSequence(p, E, b, {
3480
3502
  reducedMotion: $.forceReducedMotion
3481
3503
  }), !0;
3482
3504
  }
3483
- const E = $.getSequence(p, u, y, {
3505
+ const y = $.getSequence(p, u, E, {
3484
3506
  reducedMotion: $.forceReducedMotion
3485
3507
  }), v = R(
3486
3508
  a.conditions || [],
@@ -3490,7 +3512,7 @@ function Fi(e, t, n, s, i) {
3490
3512
  a,
3491
3513
  u,
3492
3514
  w,
3493
- E,
3515
+ y,
3494
3516
  v
3495
3517
  )), !0;
3496
3518
  });
@@ -3509,14 +3531,14 @@ function Yt(e, t, n, s, i) {
3509
3531
  );
3510
3532
  if (g && !g.matches)
3511
3533
  return !1;
3512
- const y = h.effectId, E = {
3513
- ...n.dataCache.effects[y] || {},
3534
+ const E = h.effectId, y = {
3535
+ ...n.dataCache.effects[E] || {},
3514
3536
  ...h,
3515
- effectId: y
3537
+ effectId: E
3516
3538
  };
3517
- if (s && E.listContainer !== s)
3539
+ if (s && y.listContainer !== s)
3518
3540
  return !1;
3519
- const v = F(E.conditions || [], n.dataCache.conditions);
3541
+ const v = F(y.conditions || [], n.dataCache.conditions);
3520
3542
  if (v && n.setupMediaQueryListener(
3521
3543
  `${f}::${p}`,
3522
3544
  v,
@@ -3531,13 +3553,13 @@ function Yt(e, t, n, s, i) {
3531
3553
  Se(
3532
3554
  t,
3533
3555
  t.element,
3534
- E,
3556
+ y,
3535
3557
  e,
3536
3558
  "effect"
3537
- ), E.listContainer && t.watchChildList(E.listContainer);
3538
- const [S, I] = Dt(
3559
+ ), y.listContainer && t.watchChildList(y.listContainer);
3560
+ const [S, I] = Ht(
3539
3561
  m,
3540
- E,
3562
+ y,
3541
3563
  b.element,
3542
3564
  b.useFirstChild,
3543
3565
  t.element,
@@ -3549,13 +3571,13 @@ function Yt(e, t, n, s, i) {
3549
3571
  return !0;
3550
3572
  n.addedInteractions[f] = !0;
3551
3573
  const O = R(
3552
- E.conditions || [],
3574
+ y.conditions || [],
3553
3575
  n.dataCache.conditions
3554
3576
  );
3555
3577
  return l.push([
3556
3578
  e,
3557
3579
  m,
3558
- E,
3580
+ y,
3559
3581
  S,
3560
3582
  I,
3561
3583
  O,
@@ -3567,11 +3589,11 @@ function Yt(e, t, n, s, i) {
3567
3589
  });
3568
3590
  }), l.reverse().forEach((a) => {
3569
3591
  Gt(...a);
3570
- }), Fi(e, t, n, s, i);
3592
+ }), Ri(e, t, n, s, i);
3571
3593
  const u = Object.keys(o?.sequences || {}).length > 0;
3572
3594
  return c.length > 0 || u;
3573
3595
  }
3574
- function rt(e, t, n, s, i, o, r, c, l) {
3596
+ function at(e, t, n, s, i, o, r, c, l) {
3575
3597
  let u;
3576
3598
  if (i.transition || i.transitionProperties) {
3577
3599
  const f = {
@@ -3595,7 +3617,7 @@ function rt(e, t, n, s, i, o, r, c, l) {
3595
3617
  const f = o.effectId, h = (l ? $.getInstance(l) : void 0)?.dataCache.effects[f];
3596
3618
  h && (a = x(h));
3597
3619
  }
3598
- D[n]?.add(t, s, i, o, {
3620
+ H[n]?.add(t, s, i, o, {
3599
3621
  reducedMotion: $.forceReducedMotion,
3600
3622
  targetController: u,
3601
3623
  selectorCondition: r,
@@ -3603,7 +3625,7 @@ function rt(e, t, n, s, i, o, r, c, l) {
3603
3625
  sourceAnimationOptions: a
3604
3626
  });
3605
3627
  }
3606
- function Ri(e) {
3628
+ function xi(e) {
3607
3629
  const t = e.key, n = $.getInstance(t);
3608
3630
  if (!n)
3609
3631
  return console.warn(`No instance found for key: ${t}`), $.setController(t, e), !1;
@@ -3621,7 +3643,7 @@ function Ri(e) {
3621
3643
  let o = !1;
3622
3644
  return n && (o = Yt(t, e, n)), i || o;
3623
3645
  }
3624
- function xi(e, t, n) {
3646
+ function Ni(e, t, n) {
3625
3647
  const s = e.key, i = $.getInstance(s);
3626
3648
  if (i) {
3627
3649
  const { triggers: o = [] } = i?.get(s) || {};
@@ -3639,7 +3661,7 @@ function xi(e, t, n) {
3639
3661
  }), Yt(s, e, i, t, n);
3640
3662
  }
3641
3663
  }
3642
- function Ni(e, t = !1) {
3664
+ function ji(e, t = !1) {
3643
3665
  const n = e.key, s = $.getInstance(n);
3644
3666
  if (!s)
3645
3667
  return;
@@ -3648,14 +3670,14 @@ function Ni(e, t = !1) {
3648
3670
  i ? (o = [...e.element.querySelectorAll(i)], e.useFirstChild || o.push(e.element)) : o = [e.element], Bt(o), s.deleteController(n, t);
3649
3671
  }
3650
3672
  function Bt(e) {
3651
- const t = Object.values(D);
3673
+ const t = Object.values(H);
3652
3674
  for (const n of e)
3653
3675
  for (const s of t)
3654
3676
  s.remove(n);
3655
3677
  $.removeFromSequences(e);
3656
3678
  }
3657
3679
  const Ae = "interactEffect";
3658
- class ji {
3680
+ class zi {
3659
3681
  element;
3660
3682
  key;
3661
3683
  connected;
@@ -3677,10 +3699,10 @@ class ji {
3677
3699
  }
3678
3700
  n !== t && (n && console.warn(
3679
3701
  `Interact: Key mismatch between element ${n} and parameter ${t}, updating element key`
3680
- ), this.element.dataset.interactKey = t), this.key = t, this.connected = Ri(this);
3702
+ ), this.element.dataset.interactKey = t), this.key = t, this.connected = xi(this);
3681
3703
  }
3682
3704
  disconnect({ removeFromCache: t = !1 } = {}) {
3683
- if ((this.key || this.element.dataset.interactKey) && Ni(this, t), this._pluginCleanups.length) {
3705
+ if ((this.key || this.element.dataset.interactKey) && ji(this, t), this._pluginCleanups.length) {
3684
3706
  for (const s of this._pluginCleanups)
3685
3707
  try {
3686
3708
  s();
@@ -3746,21 +3768,21 @@ class ji {
3746
3768
  }), r.addedNodes.forEach((c) => {
3747
3769
  c instanceof HTMLElement && o.push(c);
3748
3770
  });
3749
- }), Bt(i), s && xi(this, t, o);
3771
+ }), Bt(i), s && Ni(this, t, o);
3750
3772
  }
3751
3773
  }
3752
3774
  function Hi(e, t) {
3753
- new ji(e, t).connect();
3775
+ new zi(e, t).connect();
3754
3776
  }
3755
- function Di(e) {
3777
+ function Gi(e) {
3756
3778
  const t = $.getController(e);
3757
3779
  t && t.disconnect({ removeFromCache: !0 });
3758
3780
  }
3759
3781
  export {
3760
- ji as I,
3782
+ zi as I,
3761
3783
  $ as a,
3762
3784
  Hi as b,
3763
- zi as g,
3764
- Di as r
3785
+ Di as g,
3786
+ Gi as r
3765
3787
  };
3766
- //# sourceMappingURL=index-1AmVTHDV.mjs.map
3788
+ //# sourceMappingURL=index-BcRbaJX2.mjs.map