@wix/interact 2.5.21 → 2.5.23

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,23 +1,23 @@
1
- function Nt(e) {
1
+ function Kt(e) {
2
2
  return [...e.matchAll(/\[([^\]]+)]/g)].map(([t, n]) => n);
3
3
  }
4
4
  function q(e, t) {
5
- const n = Nt(t);
5
+ const n = Kt(t);
6
6
  let s = 0;
7
7
  return n.length ? e.replace(/\[]/g, () => {
8
8
  const i = n[s++];
9
9
  return i !== void 0 ? `[${i}]` : "[]";
10
10
  }) : e;
11
11
  }
12
- function jt(e, t) {
13
- return e.trigger === "viewEnter" && t.triggerType === "once" && G(e) === G(t);
12
+ function Yt(e, t) {
13
+ return e.trigger === "viewEnter" && t.triggerType === "once" && V(e) === V(t);
14
14
  }
15
- function G(e) {
15
+ function V(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 et = "$";
20
- class Z {
19
+ const ot = "$";
20
+ class ee {
21
21
  animations;
22
22
  options;
23
23
  ready;
@@ -121,64 +121,64 @@ class Z {
121
121
  });
122
122
  }
123
123
  }
124
- const tt = (e) => e, zt = (e) => 1 - Math.cos(e * Math.PI / 2), Ht = (e) => Math.sin(e * Math.PI / 2), Dt = (e) => -(Math.cos(Math.PI * e) - 1) / 2, Gt = (e) => e ** 2, Wt = (e) => 1 - (1 - e) ** 2, Vt = (e) => e < 0.5 ? 2 * e ** 2 : 1 - (-2 * e + 2) ** 2 / 2, Kt = (e) => e ** 3, Yt = (e) => 1 - (1 - e) ** 3, Bt = (e) => e < 0.5 ? 4 * e ** 3 : 1 - (-2 * e + 2) ** 3 / 2, Ut = (e) => e ** 4, Qt = (e) => 1 - (1 - e) ** 4, Xt = (e) => e < 0.5 ? 8 * e ** 4 : 1 - (-2 * e + 2) ** 4 / 2, Zt = (e) => e ** 5, Jt = (e) => 1 - (1 - e) ** 5, en = (e) => e < 0.5 ? 16 * e ** 5 : 1 - (-2 * e + 2) ** 5 / 2, tn = (e) => e === 0 ? 0 : 2 ** (10 * e - 10), nn = (e) => e === 1 ? 1 : 1 - 2 ** (-10 * e), sn = (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? 2 ** (20 * e - 10) / 2 : (2 - 2 ** (-20 * e + 10)) / 2, on = (e) => 1 - Math.sqrt(1 - e ** 2), rn = (e) => Math.sqrt(1 - (e - 1) ** 2), an = (e) => e < 0.5 ? (1 - Math.sqrt(1 - 4 * e ** 2)) / 2 : (Math.sqrt(-(2 * e - 3) * (2 * e - 1)) + 1) / 2, cn = (e) => 2.70158 * e ** 3 - 1.70158 * e ** 2, ln = (e) => 1 + 2.70158 * (e - 1) ** 3 + 1.70158 * (e - 1) ** 2, un = (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, Re = {
125
- linear: tt,
126
- sineIn: zt,
127
- sineOut: Ht,
128
- sineInOut: Dt,
129
- quadIn: Gt,
130
- quadOut: Wt,
131
- quadInOut: Vt,
132
- cubicIn: Kt,
133
- cubicOut: Yt,
134
- cubicInOut: Bt,
135
- quartIn: Ut,
136
- quartOut: Qt,
137
- quartInOut: Xt,
138
- quintIn: Zt,
139
- quintOut: Jt,
140
- quintInOut: en,
141
- expoIn: tn,
142
- expoOut: nn,
143
- expoInOut: sn,
144
- circIn: on,
145
- circOut: rn,
146
- circInOut: an,
147
- backIn: cn,
148
- backOut: ln,
149
- backInOut: un
150
- }, V = (e, t, n, s, i) => {
124
+ const rt = (e) => e, Bt = (e) => 1 - Math.cos(e * Math.PI / 2), Ut = (e) => Math.sin(e * Math.PI / 2), Qt = (e) => -(Math.cos(Math.PI * e) - 1) / 2, Xt = (e) => e ** 2, Zt = (e) => 1 - (1 - e) ** 2, Jt = (e) => e < 0.5 ? 2 * e ** 2 : 1 - (-2 * e + 2) ** 2 / 2, en = (e) => e ** 3, tn = (e) => 1 - (1 - e) ** 3, nn = (e) => e < 0.5 ? 4 * e ** 3 : 1 - (-2 * e + 2) ** 3 / 2, sn = (e) => e ** 4, on = (e) => 1 - (1 - e) ** 4, rn = (e) => e < 0.5 ? 8 * e ** 4 : 1 - (-2 * e + 2) ** 4 / 2, an = (e) => e ** 5, cn = (e) => 1 - (1 - e) ** 5, ln = (e) => e < 0.5 ? 16 * e ** 5 : 1 - (-2 * e + 2) ** 5 / 2, un = (e) => e === 0 ? 0 : 2 ** (10 * e - 10), fn = (e) => e === 1 ? 1 : 1 - 2 ** (-10 * e), dn = (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? 2 ** (20 * e - 10) / 2 : (2 - 2 ** (-20 * e + 10)) / 2, hn = (e) => 1 - Math.sqrt(1 - e ** 2), mn = (e) => Math.sqrt(1 - (e - 1) ** 2), pn = (e) => e < 0.5 ? (1 - Math.sqrt(1 - 4 * e ** 2)) / 2 : (Math.sqrt(-(2 * e - 3) * (2 * e - 1)) + 1) / 2, gn = (e) => 2.70158 * e ** 3 - 1.70158 * e ** 2, vn = (e) => 1 + 2.70158 * (e - 1) ** 3 + 1.70158 * (e - 1) ** 2, yn = (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, De = {
125
+ linear: rt,
126
+ sineIn: Bt,
127
+ sineOut: Ut,
128
+ sineInOut: Qt,
129
+ quadIn: Xt,
130
+ quadOut: Zt,
131
+ quadInOut: Jt,
132
+ cubicIn: en,
133
+ cubicOut: tn,
134
+ cubicInOut: nn,
135
+ quartIn: sn,
136
+ quartOut: on,
137
+ quartInOut: rn,
138
+ quintIn: an,
139
+ quintOut: cn,
140
+ quintInOut: ln,
141
+ expoIn: un,
142
+ expoOut: fn,
143
+ expoInOut: dn,
144
+ circIn: hn,
145
+ circOut: mn,
146
+ circInOut: pn,
147
+ backIn: gn,
148
+ backOut: vn,
149
+ backInOut: yn
150
+ }, K = (e, t, n, s, i) => {
151
151
  const o = 3 * t, r = 3 * (s - 2 * t), a = 1 - 3 * s + 3 * t, c = 3 * n, u = 3 * (i - 2 * n), l = 1 - 3 * i + 3 * n;
152
152
  let f;
153
153
  if (a === 0)
154
154
  f = r === 0 ? `(${e} / ${o})` : `((sqrt(max(0, ${o * o} + ${4 * r} * ${e})) - ${o}) / ${2 * r})`;
155
155
  else {
156
- const d = r / (3 * a), h = 2 * Math.pow(r, 3) - 9 * o * r * a, m = 54 * Math.pow(a, 3), p = (3 * a * o - r * r) / (9 * a * a), g = `((${h} - ${27 * a * a} * ${e}) / ${m})`;
156
+ const d = r / (3 * a), h = 2 * Math.pow(r, 3) - 9 * o * r * a, m = 54 * Math.pow(a, 3), p = (3 * a * o - r * r) / (9 * a * a), v = `((${h} - ${27 * a * a} * ${e}) / ${m})`;
157
157
  if (p < 0) {
158
158
  const y = 2 * Math.sqrt(-p);
159
- let v = 0;
160
- for (const $ of [0, 1, 2])
159
+ let g = 0;
160
+ for (const w of [0, 1, 2])
161
161
  [0, 0.25, 0.5, 0.75, 1].every((S) => {
162
- const C = Math.min(
162
+ const T = Math.min(
163
163
  Math.max(2 * (h - 27 * a * a * S) / (m * p * y), -1),
164
164
  1
165
- ), O = y * Math.cos((Math.acos(C) - $ * 2 * Math.PI) / 3) - d;
166
- return O >= -1e-6 && O <= 1.000001;
167
- }) && (v = $);
168
- const E = `(acos(clamp(-1, ${2 / (p * y)} * ${g}, 1)) - ${360 * v}deg) / 3`;
165
+ ), C = y * Math.cos((Math.acos(T) - w * 2 * Math.PI) / 3) - d;
166
+ return C >= -1e-6 && C <= 1.000001;
167
+ }) && (g = w);
168
+ const E = `(acos(clamp(-1, ${2 / (p * y)} * ${v}, 1)) - ${360 * g}deg) / 3`;
169
169
  f = `(${y} * cos(${E}) - ${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 y = `sqrt(pow(${v}, 2) + ${Math.pow(p, 3)})`;
172
+ f = `(pow(${y} - ${v}, 1 / 3) - pow(${y} + ${v}, 1 / 3) - ${d})`;
173
173
  }
174
174
  }
175
175
  return `(${l} * pow(${f}, 3) + ${u} * pow(${f}, 2) + ${c} * ${f})`;
176
- }, Ne = {
176
+ }, Ge = {
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 tt = (e) => e, zt = (e) => 1 - Math.cos(e * Math.PI / 2), Ht = (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
- }, je = {
206
+ }, We = {
207
207
  linear: "linear",
208
208
  ease: "ease",
209
209
  easeIn: "ease-in",
@@ -234,68 +234,68 @@ const tt = (e) => e, zt = (e) => 1 - Math.cos(e * Math.PI / 2), Ht = (e) => Math
234
234
  backOut: "cubic-bezier(0.175, 0.885, 0.32, 1.275)",
235
235
  backInOut: "cubic-bezier(0.68, -0.55, 0.265, 1.55)"
236
236
  };
237
- function fn(e) {
237
+ function En(e) {
238
238
  return e === "percentage" ? "%" : e || "px";
239
239
  }
240
- const dn = /^(webkit|moz|ms|o)(?=[A-Z])/, hn = Object.assign(/* @__PURE__ */ Object.create(null), {
240
+ const wn = /^(webkit|moz|ms|o)(?=[A-Z])/, $n = Object.assign(/* @__PURE__ */ Object.create(null), {
241
241
  float: "cssFloat",
242
242
  "animation-timing-function": "easing",
243
243
  "animation-composition": "composite"
244
244
  });
245
- function fe(e) {
246
- return e.startsWith("--") ? e : (dn.test(e) ? `-${e}` : e).replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`);
245
+ function me(e) {
246
+ return e.startsWith("--") ? e : (wn.test(e) ? `-${e}` : e).replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`);
247
247
  }
248
- function mn(e) {
248
+ function bn(e) {
249
249
  return e.startsWith("--") || !e.includes("-") ? e : e.replace(/^-/, "").replace(/-([a-z])/g, (t, n) => n.toUpperCase());
250
250
  }
251
- function nt(e) {
252
- return hn[e] || mn(e);
251
+ function at(e) {
252
+ return $n[e] || bn(e);
253
253
  }
254
- function pn(e) {
254
+ function Sn(e) {
255
255
  for (const t in e)
256
- if (Object.hasOwn(e, t) && nt(t) !== t)
256
+ if (Object.hasOwn(e, t) && at(t) !== t)
257
257
  return !0;
258
258
  return !1;
259
259
  }
260
- function gn(e) {
260
+ function ct(e) {
261
261
  if (!Array.isArray(e))
262
262
  return e;
263
263
  let t;
264
264
  return e.forEach((n, s) => {
265
- if (!n || typeof n != "object" || !pn(n))
265
+ if (!n || typeof n != "object" || !Sn(n))
266
266
  return;
267
267
  t ??= e.slice();
268
268
  const i = {};
269
269
  for (const o in n)
270
- Object.hasOwn(n, o) && (i[nt(o)] = n[o]);
270
+ Object.hasOwn(n, o) && (i[at(o)] = n[o]);
271
271
  t[s] = i;
272
272
  }), t || e;
273
273
  }
274
- function ae(e) {
275
- return e ? je[e] || e : je.linear;
274
+ function ue(e) {
275
+ return e ? We[e] || e : We.linear;
276
276
  }
277
- function vn(e, t, n, s) {
277
+ function In(e, t, n, s) {
278
278
  const i = 3 * e, o = 3 * (n - e) - i, r = 1 - i - o, a = 3 * t, c = 3 * (s - t) - a, u = 1 - a - c, l = (m) => ((r * m + o) * m + i) * m, f = (m) => ((u * m + c) * m + a) * m, d = (m) => (3 * r * m + 2 * o) * m + i;
279
279
  function h(m) {
280
280
  let p = m;
281
- for (let v = 0; v < 8; v++) {
281
+ for (let g = 0; g < 8; g++) {
282
282
  const E = l(p) - m;
283
283
  if (Math.abs(E) < 1e-7) return p;
284
- const $ = d(p);
285
- if (Math.abs($) < 1e-6) break;
286
- p -= E / $;
284
+ const w = d(p);
285
+ if (Math.abs(w) < 1e-6) break;
286
+ p -= E / w;
287
287
  }
288
- let g = 0, y = 1;
289
- for (p = (g + y) / 2; y - g > 1e-7; ) {
290
- const v = l(p);
291
- if (Math.abs(v - m) < 1e-7) return p;
292
- m > v ? g = p : y = p, p = (g + y) / 2;
288
+ let v = 0, y = 1;
289
+ for (p = (v + y) / 2; y - v > 1e-7; ) {
290
+ const g = l(p);
291
+ if (Math.abs(g - m) < 1e-7) return p;
292
+ m > g ? v = p : y = p, p = (v + y) / 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 st(e) {
298
+ function lt(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
  );
@@ -304,17 +304,17 @@ function st(e) {
304
304
  if (![n, s, i, o].some(isNaN))
305
305
  return [n, s, i, o];
306
306
  }
307
- function yn(e) {
308
- const t = st(e);
307
+ function Tn(e) {
308
+ const t = lt(e);
309
309
  if (!(!t || t.some(isNaN)))
310
- return vn(...t);
310
+ return In(...t);
311
311
  }
312
- function En(e) {
313
- const t = st(e);
312
+ function Cn(e) {
313
+ const t = lt(e);
314
314
  if (!(!t || t.some(isNaN)))
315
- return (n) => V(n, ...t);
315
+ return (n) => K(n, ...t);
316
316
  }
317
- function it(e) {
317
+ function ut(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);
@@ -350,8 +350,8 @@ function it(e) {
350
350
  s[o].pos < s[o - 1].pos && (s[o].pos = s[o - 1].pos);
351
351
  return s;
352
352
  }
353
- function wn(e) {
354
- const t = it(e);
353
+ function On(e) {
354
+ const t = ut(e);
355
355
  if (t)
356
356
  return (n) => {
357
357
  if (n <= t[0].pos) return t[0].output;
@@ -366,8 +366,8 @@ function wn(e) {
366
366
  return a.pos === r.pos ? a.output : r.output + (a.output - r.output) * (n - r.pos) / (a.pos - r.pos);
367
367
  };
368
368
  }
369
- function $n(e) {
370
- const t = it(e);
369
+ function _n(e) {
370
+ const t = ut(e);
371
371
  if (t)
372
372
  return (n) => {
373
373
  const s = [`${t[0].output}`];
@@ -383,17 +383,17 @@ function $n(e) {
383
383
  return `(${s.join(" + ")})`;
384
384
  };
385
385
  }
386
- function ot(e) {
386
+ function ft(e) {
387
387
  if (!e) return;
388
- const t = Re[e];
389
- return t || (yn(e) ?? wn(e) ?? Re.linear);
388
+ const t = De[e];
389
+ return t || (Tn(e) ?? On(e) ?? De.linear);
390
390
  }
391
- function bn(e) {
391
+ function An(e) {
392
392
  if (!e) return;
393
- const t = Ne[e];
394
- return t || (En(e) ?? $n(e) ?? Ne.linear);
393
+ const t = Ge[e];
394
+ return t || (Cn(e) ?? _n(e) ?? Ge.linear);
395
395
  }
396
- class Sn extends Z {
396
+ class Mn extends ee {
397
397
  animationGroups;
398
398
  delay;
399
399
  offset;
@@ -402,7 +402,7 @@ class Sn extends Z {
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 : ot(n.offsetEasing) ?? tt, this.timingOptions = this.animationGroups.map((i) => i.getTimingOptions().map(({ delay: o, duration: r, iterations: a }) => ({
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 : ft(n.offsetEasing) ?? rt, this.timingOptions = this.animationGroups.map((i) => i.getTimingOptions().map(({ delay: o, duration: r, iterations: a }) => ({
406
406
  delay: o,
407
407
  duration: Number.isFinite(r) ? r : 0,
408
408
  iterations: Number.isFinite(a) ? a : 1
@@ -491,7 +491,7 @@ class Sn extends Z {
491
491
  }
492
492
  }
493
493
  }
494
- class In {
494
+ class kn {
495
495
  _animation;
496
496
  customEffect;
497
497
  progress;
@@ -631,12 +631,12 @@ class In {
631
631
  return this._animation.dispatchEvent(t);
632
632
  }
633
633
  }
634
- function Tn(e) {
634
+ function qn(e) {
635
635
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
636
636
  }
637
- var ce = { exports: {} }, ze = ce.exports, He;
638
- function Cn() {
639
- return He || (He = 1, (function(e) {
637
+ var fe = { exports: {} }, Ve = fe.exports, Ke;
638
+ function Pn() {
639
+ return Ke || (Ke = 1, (function(e) {
640
640
  (function(t) {
641
641
  var n = function() {
642
642
  }, s = t.requestAnimationFrame || t.webkitRequestAnimationFrame || t.mozRequestAnimationFrame || t.msRequestAnimationFrame || function(l) {
@@ -762,51 +762,55 @@ function Cn() {
762
762
  }
763
763
  var u = t.fastdom = t.fastdom || new i();
764
764
  e.exports = u;
765
- })(typeof window < "u" ? window : typeof ze < "u" ? ze : globalThis);
766
- })(ce)), ce.exports;
765
+ })(typeof window < "u" ? window : typeof Ve < "u" ? Ve : globalThis);
766
+ })(fe)), fe.exports;
767
767
  }
768
- var On = Cn();
769
- const _ = /* @__PURE__ */ Tn(On), Se = {};
770
- function _n(e) {
771
- Object.assign(Se, e);
768
+ var Ln = Pn();
769
+ const O = /* @__PURE__ */ qn(Ln), _e = {};
770
+ function xn(e) {
771
+ Object.assign(_e, e);
772
772
  }
773
- function Le(e, t = !0) {
774
- return e in Se ? Se[e] : (t && console.warn(
773
+ function je(e, t = !0) {
774
+ return e in _e ? _e[e] : (t && console.warn(
775
775
  `${e} not found in registry. Please make sure to import and register the preset.`
776
776
  ), null);
777
777
  }
778
- function W(e, t) {
778
+ function X(e, t) {
779
779
  return e ? (t || document).getElementById(e) : null;
780
780
  }
781
- function An(e, t) {
781
+ function dt(e, t) {
782
782
  return e?.matches(`[data-motion-part~="${t}"]`) ? e : e?.querySelector(`[data-motion-part~="${t}"]`);
783
783
  }
784
- function kn(e) {
784
+ function ht(e, t) {
785
+ const n = typeof e == "string" ? X(e) : e;
786
+ return t?.length ? t.map((s) => dt(n, s)).filter(Boolean) : n ? [n] : [];
787
+ }
788
+ function Fn(e) {
785
789
  const t = e.alternate ? "alternate" : "";
786
790
  return e.reversed ? `${t ? `${t}-` : ""}reverse` : t || "normal";
787
791
  }
788
- function Ee(e) {
789
- return `${e.value}${fn(e.unit)}`;
792
+ function Ie(e) {
793
+ return `${e.value}${En(e.unit)}`;
790
794
  }
791
- function De(e, t, n) {
792
- return `${e.name || "cover"} ${n && e.offset.unit !== "percentage" ? `calc(100% + ${Ee(e.offset)}${t ? ` + ${t}` : ""})` : t ? `calc(${Ee(e.offset)} + ${t})` : Ee(e.offset)}`;
795
+ function Ye(e, t, n) {
796
+ return `${e.name || "cover"} ${n && e.offset.unit !== "percentage" ? `calc(100% + ${Ie(e.offset)}${t ? ` + ${t}` : ""})` : t ? `calc(${Ie(e.offset)} + ${t})` : Ie(e.offset)}`;
793
797
  }
794
- function rt(e) {
798
+ function mt(e) {
795
799
  return {
796
- start: De(e.startOffset, e.startOffsetAdd),
797
- end: De(e.endOffset, e.endOffsetAdd, !0)
800
+ start: Ye(e.startOffset, e.startOffsetAdd),
801
+ end: Ye(e.endOffset, e.endOffsetAdd, !0)
798
802
  };
799
803
  }
800
- function at(e) {
801
- return (t) => _.measure(() => t(e));
804
+ function pt(e) {
805
+ return (t) => O.measure(() => t(e));
802
806
  }
803
- function ct(e) {
804
- return (t) => _.mutate(() => t(e));
807
+ function gt(e) {
808
+ return (t) => O.mutate(() => t(e));
805
809
  }
806
- function Q(e) {
810
+ function Z(e) {
807
811
  if (e.namedEffect) {
808
812
  const t = e.namedEffect.type;
809
- return typeof t == "string" ? Le(t) : null;
813
+ return typeof t == "string" ? je(t) : null;
810
814
  } else if (e.keyframeEffect) {
811
815
  const t = (s) => {
812
816
  const { name: i, keyframes: o } = s.keyframeEffect;
@@ -820,51 +824,51 @@ function Q(e) {
820
824
  return (t) => [{ ...t, keyframes: [] }];
821
825
  return null;
822
826
  }
823
- function lt(e, t, n, s) {
827
+ function vt(e, t, n, s) {
824
828
  return e.map((i, o) => {
825
829
  const r = {
826
830
  fill: i.fill,
827
- easing: ae(i.easing),
831
+ easing: ue(i.easing),
828
832
  iterations: i.iterations === 0 ? 1 / 0 : i.iterations || 1,
829
833
  composite: i.composite,
830
- direction: kn(i)
834
+ direction: Fn(i)
831
835
  };
832
- xe(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);
833
- const a = gn(i.keyframes);
834
- return {
835
- effect: a === i.keyframes ? i : { ...i, keyframes: a },
836
+ return ze(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
+ // pass the preset's object as is - its keyframes and ranges may be getters
838
+ // that must only be read after its measure() callbacks ran
839
+ effect: i,
836
840
  options: r,
837
841
  id: n && `${n}-${o + 1}`,
838
842
  part: i.part
839
843
  };
840
844
  });
841
845
  }
842
- function xe(e) {
846
+ function ze(e) {
843
847
  return !e || e.trigger !== "pointer-move" && e.trigger !== "view-progress";
844
848
  }
845
- function Ge(e, t, n, s, i) {
849
+ function Be(e, t, n, s, i) {
846
850
  if (e) {
847
- if (xe(s) && (t.duration = t.duration || 1, i?.reducedMotion))
851
+ if (ze(s) && (t.duration = t.duration || 1, i?.reducedMotion))
848
852
  if (t.iterations === 1 || t.iterations == null)
849
853
  t = { ...t, duration: 1 };
850
854
  else
851
855
  return [];
852
856
  let o;
853
- return n instanceof HTMLElement && (o = { measure: at(n), mutate: ct(n) }), e.web ? e.web(t, o, i) : e(t, o, i);
857
+ return n instanceof HTMLElement && (o = { measure: pt(n), mutate: gt(n) }), e.web ? e.web(t, o, i) : e(t, o, i);
854
858
  }
855
859
  return [];
856
860
  }
857
- function ut(e, t, n, s, i) {
858
- const o = typeof e == "string" ? W(e, i) : e;
861
+ function yt(e, t, n, s, i) {
862
+ const o = typeof e == "string" ? X(e, i) : e;
859
863
  if (n?.trigger === "pointer-move" && !t.keyframeEffect) {
860
864
  let d = t;
861
865
  t.customEffect && (d = {
862
866
  ...t,
863
867
  namedEffect: { id: "", type: "CustomMouse" }
864
868
  });
865
- const h = Q(
869
+ const h = Z(
866
870
  d
867
- ), m = Ge(
871
+ ), m = Be(
868
872
  h,
869
873
  t,
870
874
  o,
@@ -873,7 +877,7 @@ function ut(e, t, n, s, i) {
873
877
  );
874
878
  return typeof m != "function" ? null : m(o);
875
879
  }
876
- const r = Q(t), a = Ge(
880
+ const r = Z(t), a = Be(
877
881
  r,
878
882
  t,
879
883
  o,
@@ -882,33 +886,33 @@ function ut(e, t, n, s, i) {
882
886
  );
883
887
  if (!a || a.length === 0)
884
888
  return null;
885
- const c = lt(a, n, t.effectId);
889
+ const c = vt(a, n, t.effectId);
886
890
  let u;
887
891
  const l = n?.trigger === "view-progress";
888
892
  l && window.ViewTimeline && (u = new ViewTimeline({
889
- subject: n.element || W(n.componentId)
893
+ subject: n.element || X(n.componentId)
890
894
  }));
891
895
  const f = c.map(({ effect: d, options: h, id: m, part: p }) => {
892
- const g = p ? An(o, p) : o, y = new KeyframeEffect(g || null, [], h);
893
- _.mutate(() => {
894
- "timing" in d && y.updateTiming(d.timing), y.setKeyframes(d.keyframes);
896
+ const v = p ? dt(o, p) : o, y = new KeyframeEffect(v || null, [], h);
897
+ O.mutate(() => {
898
+ "timing" in d && y.updateTiming(d.timing), y.setKeyframes(ct(d.keyframes));
895
899
  });
896
- const v = l && u ? { timeline: u } : {}, E = typeof d.customEffect == "function" ? new In(
900
+ const g = l && u ? { timeline: u } : {}, E = typeof d.customEffect == "function" ? new kn(
897
901
  d.customEffect,
898
- g || null,
902
+ v || null,
899
903
  h,
900
- v
901
- ) : new Animation(y, v.timeline);
904
+ g
905
+ ) : new Animation(y, g.timeline);
902
906
  if (l)
903
907
  if (u)
904
- _.mutate(() => {
905
- const { start: $, end: b } = rt(d);
906
- E.rangeStart = $, E.rangeEnd = b, E.play();
908
+ O.mutate(() => {
909
+ const { start: w, end: b } = mt(d);
910
+ E.rangeStart = w, E.rangeEnd = b, E.play();
907
911
  });
908
912
  else {
909
- const { startOffset: $, endOffset: b } = t;
910
- _.mutate(() => {
911
- const S = d.startOffset || $, C = d.endOffset || b;
913
+ const { startOffset: w, endOffset: b } = t;
914
+ O.mutate(() => {
915
+ const S = d.startOffset || w, T = d.endOffset || b;
912
916
  Object.assign(E, {
913
917
  start: {
914
918
  name: S.name,
@@ -916,8 +920,8 @@ function ut(e, t, n, s, i) {
916
920
  add: d.startOffsetAdd
917
921
  },
918
922
  end: {
919
- name: C.name,
920
- offset: C.offset?.value,
923
+ name: T.name,
924
+ offset: T.offset?.value,
921
925
  add: d.endOffsetAdd
922
926
  }
923
927
  });
@@ -925,89 +929,86 @@ function ut(e, t, n, s, i) {
925
929
  }
926
930
  return m && (E.id = m), E;
927
931
  });
928
- return new Z(f, {
932
+ return new ee(f, {
929
933
  ...t,
930
934
  trigger: { ...n || {} },
931
935
  // make sure the group is ready after all animation targets are measured and mutated
932
- measured: new Promise((d) => _.mutate(d))
936
+ measured: new Promise((d) => O.mutate(d))
933
937
  });
934
938
  }
935
- function qn(e, t) {
936
- return e ? `#${e}${t ? `[data-motion-part~="${t}"]` : ""}` : "";
937
- }
938
- function Mn(e, t, n) {
939
+ function Rn(e, t, n) {
939
940
  const { duration: s, delay: i, iterations: o = 1, fill: r, easing: a = "linear", direction: c } = e.options, u = e.effect.name, l = s === "auto", { sequenceId: f, delay: d, offset: h, offsetEasing: m = "linear" } = n || {};
940
941
  let p = `${i ?? 0}ms`;
941
942
  if (f && typeof m == "string") {
942
- const g = bn(m);
943
- if (g) {
943
+ const v = An(m);
944
+ if (v) {
944
945
  const y = (i ?? 0) + (d ?? 0);
945
946
  if (h) {
946
- const v = g(
947
+ const g = v(
947
948
  `(var(--motion-${f}-index, 0) / var(--motion-${f}-last, 1))`
948
949
  );
949
- p = `calc(${`(${y} + ${v} * ${h} * var(--motion-${f}-last, 1))`} * 1ms)`;
950
+ p = `calc(${`(${y} + ${g} * ${h} * var(--motion-${f}-last, 1))`} * 1ms)`;
950
951
  } else
951
952
  p = `${y}ms`;
952
953
  }
953
954
  }
954
955
  return `${u} ${l ? "auto" : `${s}ms`}${l ? " " : ` ${p} `}${a}${r && r !== "none" ? ` ${r}` : ""} ${!o || o === 1 / 0 ? "infinite" : o}${c === "normal" ? "" : ` ${c}`} ${t ? "" : "paused"}`;
955
956
  }
956
- function Pn(e, t, n) {
957
- return e?.style ? (xe(n) && (t.duration = t.duration || 1), e.style(t)) : [];
957
+ function Nn(e, t, n) {
958
+ return e?.style ? (ze(n) && (t.duration = t.duration || 1), e.style(t)) : [];
958
959
  }
959
- function Ln(e, t, n, s) {
960
- const i = Q(t), o = Pn(i, t), r = lt(o, n, t.effectId, !0), a = n?.trigger === "view-progress";
960
+ function jn(e, t, n, s) {
961
+ const i = Z(t), o = Nn(i, t), r = vt(o, n, t.effectId, !0), a = n?.trigger === "view-progress";
961
962
  return r.map((c, u) => {
962
- const { start: l, end: f } = a ? rt(c.effect) : {};
963
+ const { start: l, end: f } = a ? mt(c.effect) : {};
963
964
  return {
964
- target: qn(e, c.part),
965
- animation: Mn(c, a, s),
965
+ part: c.part,
966
+ animation: Rn(c, a, s),
966
967
  composition: c.options.composite,
967
968
  custom: c.effect.custom,
968
969
  name: c.effect.name,
969
- keyframes: c.effect.keyframes,
970
+ keyframes: ct(c.effect.keyframes),
970
971
  id: c.id && `${c.id}-${u + 1}`,
971
972
  animationTimeline: a ? `--${n?.id}` : "",
972
973
  animationRange: l || f ? `${l} ${f}` : ""
973
974
  };
974
975
  });
975
976
  }
976
- function xn(e, t, n) {
977
- const s = Q(t), i = e instanceof HTMLElement ? e : W(e);
977
+ function zn(e, t, n) {
978
+ const s = Z(t), i = e instanceof HTMLElement ? e : X(e);
978
979
  if (s && s.prepare && i) {
979
- const o = { measure: at(i), mutate: ct(i) };
980
+ const o = { measure: pt(i), mutate: gt(i) };
980
981
  s.prepare(t, o);
981
982
  }
982
- n && _.mutate(n);
983
+ n && O.mutate(n);
983
984
  }
984
- function ft(e, t) {
985
- const n = Q(t);
985
+ function Et(e, t) {
986
+ const n = Z(t);
986
987
  if (!n)
987
988
  return null;
988
989
  if (!n.style)
989
- return t.effectId && e ? Fn(e, t.effectId) : null;
990
- const s = n.getNames(t), o = (typeof e == "string" ? W(e) : e)?.getAnimations(), r = o?.map((c) => c.animationName) || [], a = [];
990
+ return t.effectId && e ? Hn(e, t.effectId, n.parts) : null;
991
+ const s = n.getNames(t), o = ht(e, n.parts)?.flatMap((c) => c.getAnimations()), r = o?.map((c) => c.animationName) || [], a = [];
991
992
  return s.forEach((c) => {
992
993
  r.includes(c) && a.push(
993
994
  o?.find((u) => u.animationName === c)
994
995
  );
995
- }), a?.length ? new Z(a) : null;
996
+ }), a?.length ? new ee(a) : null;
996
997
  }
997
- function Fn(e, t) {
998
- const s = (typeof e == "string" ? W(e) : e)?.getAnimations().filter((i) => {
999
- const o = i.id || i.animationName;
1000
- return o ? o.startsWith(t) : !0;
998
+ function Hn(e, t, n) {
999
+ const i = ht(e, n)?.flatMap((o) => o.getAnimations()).filter((o) => {
1000
+ const r = o.id || o.animationName;
1001
+ return r ? r.startsWith(t) : !0;
1001
1002
  });
1002
- return s?.length ? new Z(s) : null;
1003
+ return i?.length ? new ee(i) : null;
1003
1004
  }
1004
- function dt(e, t, n, s = {}) {
1005
- const { disabled: i, allowActiveEvent: o, ...r } = s, a = ut(e, t, n, r);
1005
+ function wt(e, t, n, s = {}) {
1006
+ const { disabled: i, allowActiveEvent: o, ...r } = s, a = yt(e, t, n, r);
1006
1007
  if (!a)
1007
1008
  return null;
1008
1009
  let c = {};
1009
1010
  if (n.trigger === "view-progress" && !window.ViewTimeline) {
1010
- const u = n.element || W(n.componentId), { ready: l } = a;
1011
+ const u = n.element || X(n.componentId), { ready: l } = a;
1011
1012
  return a.animations.map((f) => ({
1012
1013
  /* we use getters for start and end in order to access the animation's start and end
1013
1014
  only when initializing the scrub scene rather than immediately */
@@ -1043,9 +1044,9 @@ function dt(e, t, n, s = {}) {
1043
1044
  getProgress() {
1044
1045
  return this._currentProgress;
1045
1046
  },
1046
- effect(g, y) {
1047
- const v = h === "x" ? y.x : y.y;
1048
- this._currentProgress = v, m.progress(v);
1047
+ effect(v, y) {
1048
+ const g = h === "x" ? y.x : y.y;
1049
+ this._currentProgress = g, m.progress(g);
1049
1050
  },
1050
1051
  disabled: i ?? !1,
1051
1052
  destroy() {
@@ -1056,7 +1057,7 @@ function dt(e, t, n, s = {}) {
1056
1057
  c = {
1057
1058
  centeredToTarget: l,
1058
1059
  allowActiveEvent: o
1059
- }, t.customEffect && f && (c.transitionDuration = f, c.transitionEasing = ot(d)), c.target = a.target;
1060
+ }, t.customEffect && f && (c.transitionDuration = f, c.transitionEasing = ft(d)), c.target = a.target;
1060
1061
  }
1061
1062
  return {
1062
1063
  ...c,
@@ -1079,48 +1080,48 @@ function dt(e, t, n, s = {}) {
1079
1080
  }
1080
1081
  };
1081
1082
  }
1082
- function J(e, t, n, s = !1) {
1083
- const i = ft(e, t);
1083
+ function te(e, t, n, s = !1) {
1084
+ const i = Et(e, t);
1084
1085
  return i ? (i.ready = new Promise((o) => {
1085
- xn(e, t, o);
1086
- }), i) : ut(e, t, n, { reducedMotion: s });
1086
+ zn(e, t, o);
1087
+ }), i) : yt(e, t, n, { reducedMotion: s });
1087
1088
  }
1088
- function Rn(e) {
1089
+ function Dn(e) {
1089
1090
  return e === null ? [null] : typeof e == "string" ? Array.from(document.querySelectorAll(e)) : Array.isArray(e) ? e : [e];
1090
1091
  }
1091
- function ht(e, t) {
1092
+ function $t(e, t) {
1092
1093
  const n = [];
1093
1094
  for (const { target: s, options: i } of e) {
1094
- const o = Rn(s);
1095
+ const o = Dn(s);
1095
1096
  for (const r of o) {
1096
- const a = J(
1097
+ const a = te(
1097
1098
  r,
1098
1099
  i,
1099
1100
  void 0,
1100
1101
  t?.reducedMotion
1101
1102
  );
1102
- a instanceof Z && n.push(a);
1103
+ a instanceof ee && n.push(a);
1103
1104
  }
1104
1105
  }
1105
1106
  return n;
1106
1107
  }
1107
- function Nn(e, t, n) {
1108
- const s = ht(t, n);
1109
- return new Sn(s, e);
1108
+ function Gn(e, t, n) {
1109
+ const s = $t(t, n);
1110
+ return new Mn(s, e);
1110
1111
  }
1111
- function jn(e, t = 2) {
1112
+ function Wn(e, t = 2) {
1112
1113
  return parseFloat(e.toFixed(t));
1113
1114
  }
1114
- function zn(e) {
1115
+ function Vn(e) {
1115
1116
  return /\[]/g.test(e);
1116
1117
  }
1117
- function Hn(e) {
1118
+ function Kn(e) {
1118
1119
  return e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
1119
1120
  }
1120
- function le(e, t) {
1121
+ function de(e, t) {
1121
1122
  return t.includes("&") ? t.replace(/&/g, e) : `${e}${t}`;
1122
1123
  }
1123
- function X() {
1124
+ function J() {
1124
1125
  return "wi-12343210".replace(
1125
1126
  /\d/g,
1126
1127
  (e) => String.fromCharCode(
@@ -1129,34 +1130,34 @@ function X() {
1129
1130
  // 97 for "a"
1130
1131
  );
1131
1132
  }
1132
- function mt(e) {
1133
+ function bt(e) {
1133
1134
  const { transition: t, transitionProperties: n } = e;
1134
1135
  return (t?.styleProperties || n || []).map((i) => ({
1135
1136
  ...i,
1136
- name: fe(i.name)
1137
+ name: me(i.name)
1137
1138
  }));
1138
1139
  }
1139
- function pt(e) {
1140
+ function St(e) {
1140
1141
  let { transition: t, transitionProperties: n } = e, s = [];
1141
1142
  if (t?.styleProperties) {
1142
1143
  const { duration: i, easing: o, delay: r } = t;
1143
1144
  i && (t.styleProperties.some(
1144
1145
  (c) => c.name.startsWith("--")
1145
1146
  ) ? s = [
1146
- `all ${i}ms ${ae(o || "ease")}${r ? ` ${r}ms` : ""}`,
1147
+ `all ${i}ms ${ue(o || "ease")}${r ? ` ${r}ms` : ""}`,
1147
1148
  "visibility 0s"
1148
1149
  ] : s = t.styleProperties.map(
1149
- (c) => `${fe(c.name)} ${i}ms ${ae(
1150
+ (c) => `${me(c.name)} ${i}ms ${ue(
1150
1151
  o || "ease"
1151
1152
  )}${r ? ` ${r}ms` : ""}`
1152
1153
  ));
1153
1154
  } else
1154
1155
  s = n?.filter((i) => i.duration).map(
1155
- (i) => `${fe(i.name)} ${i.duration}ms ${ae(i.easing) || "ease"}${i.delay ? ` ${i.delay}ms` : ""}`
1156
+ (i) => `${me(i.name)} ${i.duration}ms ${ue(i.easing) || "ease"}${i.delay ? ` ${i.delay}ms` : ""}`
1156
1157
  ) || [];
1157
1158
  return s;
1158
1159
  }
1159
- function Dn({
1160
+ function Yn({
1160
1161
  key: e,
1161
1162
  effectId: t,
1162
1163
  transition: n,
@@ -1164,12 +1165,12 @@ function Dn({
1164
1165
  childSelector: i = "> :first-child",
1165
1166
  selectorCondition: o
1166
1167
  }) {
1167
- const r = pt({
1168
+ const r = St({
1168
1169
  transition: n,
1169
1170
  transitionProperties: s
1170
- }), a = mt({ transition: n, transitionProperties: s }).map(
1171
+ }), a = bt({ transition: n, transitionProperties: s }).map(
1171
1172
  (m) => `${m.name}: ${m.value};`
1172
- ), c = e.replace(/"/g, "'"), u = `:is(:state(${t}), :--${t}) ${i}`, l = `[data-interact-effect~="${t}"] ${i}`, f = o ? le(u, o) : u, d = o ? le(l, o) : l, h = [
1173
+ ), c = e.replace(/"/g, "'"), u = `:is(:state(${t}), :--${t}) ${i}`, l = `[data-interact-effect~="${t}"] ${i}`, f = o ? de(u, o) : u, d = o ? de(l, o) : l, h = [
1173
1174
  `${f},
1174
1175
  ${d} {
1175
1176
  ${a.join(`
@@ -1177,25 +1178,25 @@ function Dn({
1177
1178
  }`
1178
1179
  ];
1179
1180
  if (r.length) {
1180
- const m = `[data-interact-key="${c}"] ${i}`, p = o ? le(m, o) : m;
1181
+ const m = `[data-interact-key="${c}"] ${i}`, p = o ? de(m, o) : m;
1181
1182
  h.push(`@media (prefers-reduced-motion: no-preference) { ${p} {
1182
1183
  transition: ${r.join(", ")};
1183
1184
  } }`);
1184
1185
  }
1185
1186
  return h;
1186
1187
  }
1187
- function ee(e, t, n) {
1188
+ function ne(e, t, n) {
1188
1189
  const s = (e || []).filter((i) => t[i]?.type === n && t[i].predicate).map((i) => t[i].predicate).join(") and (");
1189
1190
  return s && `(${s})`;
1190
1191
  }
1191
- function M(e, t) {
1192
- const n = ee(e, t, "media");
1192
+ function L(e, t) {
1193
+ const n = ne(e, t, "media");
1193
1194
  return n && window.matchMedia(n);
1194
1195
  }
1195
- function P(e, t) {
1196
+ function x(e, t) {
1196
1197
  return (e || []).filter((n) => t[n]?.type === "selector" && t[n].predicate).map((n) => `:is(${t[n].predicate})`).join("");
1197
1198
  }
1198
- const gt = /* @__PURE__ */ new Map([
1199
+ const It = /* @__PURE__ */ new Map([
1199
1200
  ["viewEnter", "once"],
1200
1201
  ["animationEnd", "once"],
1201
1202
  ["hover", "alternate"],
@@ -1203,9 +1204,9 @@ const gt = /* @__PURE__ */ new Map([
1203
1204
  ["activate", "alternate"],
1204
1205
  ["interest", "alternate"]
1205
1206
  ]);
1206
- function vt(e, t, n, s) {
1207
+ function Tt(e, t, n, s) {
1207
1208
  const { effects: i = {}, conditions: o = {} } = n, { key: r, trigger: a } = t, c = a === "pointerMove";
1208
- e.effectId || (e.effectId = s || X());
1209
+ e.effectId || (e.effectId = s || J());
1209
1210
  const { effectId: u } = e, l = { ...i[u] || {}, ...e };
1210
1211
  let { key: f, conditions: d, triggerType: h } = l;
1211
1212
  if (!f) {
@@ -1213,31 +1214,31 @@ function vt(e, t, n, s) {
1213
1214
  return null;
1214
1215
  f = r;
1215
1216
  }
1216
- if (zn(f))
1217
+ if (Vn(f))
1217
1218
  return null;
1218
1219
  d = [
1219
1220
  ...new Set((d || []).filter((b) => o[b]))
1220
- ], h || (h = gt.get(a));
1221
- const { namedEffect: m, customEffect: p, keyframeEffect: g, transition: y, transitionProperties: v, ...E } = {
1221
+ ], h || (h = It.get(a));
1222
+ const { namedEffect: m, customEffect: p, keyframeEffect: v, transition: y, transitionProperties: g, ...E } = {
1222
1223
  ...l,
1223
1224
  key: f,
1224
1225
  conditions: d,
1225
1226
  effectId: u,
1226
1227
  triggerType: h
1227
- }, $ = jt(t, E);
1228
+ }, w = Yt(t, E);
1228
1229
  if (m)
1229
- return c || !m.type ? null : { namedEffect: m, initial: $, ...E };
1230
- if (g) {
1231
- if (!g.name) {
1230
+ return c || !m.type ? null : { namedEffect: m, initial: w, ...E };
1231
+ if (v) {
1232
+ if (!v.name) {
1232
1233
  const b = u && !(i[u] && "keyframeEffect" in e);
1233
- g.name = b ? u : X();
1234
+ v.name = b ? u : J();
1234
1235
  }
1235
- return { keyframeEffect: g, initial: $, ...E };
1236
- } else return p ? c ? null : { initial: $, ...E } : y ? { transition: y, initial: $, ...E } : v ? { transitionProperties: v, initial: $, ...E } : { initial: $, ...E };
1236
+ return { keyframeEffect: v, initial: w, ...E };
1237
+ } else return p ? c ? null : { initial: w, ...E } : y ? { transition: y, initial: w, ...E } : g ? { transitionProperties: g, initial: w, ...E } : { initial: w, ...E };
1237
1238
  }
1238
- function Gn(e, t, n, s, i) {
1239
+ function Bn(e, t, n, s, i) {
1239
1240
  const { sequences: o = {}, conditions: r = {} } = n;
1240
- e.sequenceId || (e.sequenceId = s || X());
1241
+ e.sequenceId || (e.sequenceId = s || J());
1241
1242
  const { sequenceId: a } = e, c = { ...o[a] || {}, ...e };
1242
1243
  let {
1243
1244
  effects: u,
@@ -1249,32 +1250,32 @@ function Gn(e, t, n, s, i) {
1249
1250
  } = c;
1250
1251
  if (typeof m == "function" || !u)
1251
1252
  return null;
1252
- f || (f = gt.get(t.trigger)), l = [
1253
+ f || (f = It.get(t.trigger)), l = [
1253
1254
  ...new Set((l || []).filter((y) => r[y]))
1254
1255
  ];
1255
- const g = u.map((y, v) => {
1256
- const E = vt(
1256
+ const v = u.map((y, g) => {
1257
+ const E = Tt(
1257
1258
  { ...y, triggerType: f, conditions: [...y.conditions || [], ...l] },
1258
1259
  t,
1259
1260
  n,
1260
- `${a}-eff-${v}`
1261
+ `${a}-eff-${g}`
1261
1262
  );
1262
- return E && Object.assign(E, { slotKey: i?.(v) });
1263
+ return E && Object.assign(E, { slotKey: i?.(g) });
1263
1264
  }).filter((y) => y !== null);
1264
- return g.length ? {
1265
+ return v.length ? {
1265
1266
  sequenceId: a,
1266
1267
  triggerType: f,
1267
1268
  conditions: l,
1268
1269
  delay: d,
1269
1270
  offset: h,
1270
1271
  offsetEasing: m,
1271
- effects: g
1272
+ effects: v
1272
1273
  } : null;
1273
1274
  }
1274
- function Wn(e) {
1275
- return e === "cssFloat" ? "float" : e === "easing" ? "animation-timing-function" : e === "cssOffset" ? "offset" : e === "composite" ? "animation-composition" : fe(e);
1275
+ function Un(e) {
1276
+ return e === "cssFloat" ? "float" : e === "easing" ? "animation-timing-function" : e === "cssOffset" ? "offset" : e === "composite" ? "animation-composition" : me(e);
1276
1277
  }
1277
- function Vn(e) {
1278
+ function Qn(e) {
1278
1279
  if (!e.length)
1279
1280
  return [];
1280
1281
  const t = e.map((i) => ({ ...i }));
@@ -1296,27 +1297,27 @@ function Vn(e) {
1296
1297
  }
1297
1298
  return t;
1298
1299
  }
1299
- function Kn(e, t) {
1300
- const n = Object.entries(e).filter(([s, i]) => s !== "offset" && i !== void 0 && i !== null).map(([s, i]) => `${Wn(s)}: ${i};`).join(`
1300
+ function Xn(e, t) {
1301
+ const n = Object.entries(e).filter(([s, i]) => s !== "offset" && i !== void 0 && i !== null).map(([s, i]) => `${Un(s)}: ${i};`).join(`
1301
1302
  `);
1302
1303
  return `${t}% {
1303
1304
  ${n}
1304
1305
  }`;
1305
1306
  }
1306
- function Yn(e, t) {
1307
- const n = Vn(t);
1307
+ function Zn(e, t) {
1308
+ const n = Qn(t);
1308
1309
  if (!n.length)
1309
1310
  return "";
1310
1311
  let s = n.map((i) => {
1311
- const o = i.offset, r = jn(o * 100);
1312
- return Kn(i, r);
1312
+ const o = i.offset, r = Wn(o * 100);
1313
+ return Xn(i, r);
1313
1314
  }).join(`
1314
1315
  `);
1315
1316
  return `@keyframes ${e} {
1316
1317
  ${s}
1317
1318
  }`;
1318
1319
  }
1319
- function Bn(e) {
1320
+ function Jn(e) {
1320
1321
  const { key: t, childSelector: n, declarations: s, media: i, states: o, selectorCondition: r, selectorSuffix: a } = e;
1321
1322
  if (!s.length)
1322
1323
  return "";
@@ -1325,7 +1326,7 @@ function Bn(e) {
1325
1326
  const f = o.map((d) => `:state(${d}), :--${d}, [data-interact-effect~="${d}"]`).join(", ");
1326
1327
  c = `${c}:is(${f})`;
1327
1328
  }
1328
- n && (c = `${c} ${n}`), a && (c = `${c}${a}`), r && (c = le(c, r));
1329
+ n && (c = `${c} ${n}`), a && (c = `${c}${a}`), r && (c = de(c, r));
1329
1330
  const u = s.map(({ name: f, value: d, important: h }) => `${f}: ${d}${h ? " !important" : ""};`).join(`
1330
1331
  `), l = `${c} {
1331
1332
  ${u}
@@ -1334,20 +1335,20 @@ function Bn(e) {
1334
1335
  ${l}
1335
1336
  }` : l;
1336
1337
  }
1337
- const Ie = [
1338
+ const Ae = [
1338
1339
  "animation",
1339
1340
  "animation-composition",
1340
1341
  "animation-timeline",
1341
1342
  "animation-range"
1342
- ], ve = [
1343
- ...Ie,
1343
+ ], we = [
1344
+ ...Ae,
1344
1345
  "transition",
1345
1346
  "view-timeline"
1346
- ], Fe = ["animation", "transition", "timeline"];
1347
- function F(e) {
1347
+ ], He = ["animation", "transition", "timeline"];
1348
+ function N(e) {
1348
1349
  return e === "transition" ? "transition" : e === "view-timeline" ? "timeline" : "animation";
1349
1350
  }
1350
- const j = {
1351
+ const H = {
1351
1352
  transition: "_",
1352
1353
  animation: "none",
1353
1354
  "animation-composition": "replace",
@@ -1355,10 +1356,10 @@ const j = {
1355
1356
  "animation-range": "normal",
1356
1357
  "view-timeline": "none"
1357
1358
  };
1358
- function R(e, t, n = !1) {
1359
+ function j(e, t, n = !1) {
1359
1360
  return `--${e.replace(new RegExp("(?<!(^|-))([aeiou]|tion)", "g"), "")}${n ? "-slot" : ""}-${t}`;
1360
1361
  }
1361
- function Un(e, t, n, s, i = 0) {
1362
+ function es(e, t, n, s, i = 0) {
1362
1363
  const o = {
1363
1364
  animation: e,
1364
1365
  transition: t,
@@ -1368,51 +1369,51 @@ function Un(e, t, n, s, i = 0) {
1368
1369
  transition: s,
1369
1370
  timeline: 0
1370
1371
  };
1371
- return ve.flatMap((a) => [
1372
+ return we.flatMap((a) => [
1372
1373
  ...Array.from(
1373
- { length: o[F(a)] },
1374
- (c, u) => `@property ${R(a, u)} { syntax: "*"; inherits: false; initial-value: ${j[a]}; }`
1374
+ { length: o[N(a)] },
1375
+ (c, u) => `@property ${j(a, u)} { syntax: "*"; inherits: false; initial-value: ${H[a]}; }`
1375
1376
  ),
1376
1377
  ...Array.from(
1377
- { length: r[F(a)] },
1378
- (c, u) => `@property ${R(a, u, !0)} { syntax: "*"; inherits: false; initial-value: ${j[a]}; }`
1378
+ { length: r[N(a)] },
1379
+ (c, u) => `@property ${j(a, u, !0)} { syntax: "*"; inherits: false; initial-value: ${H[a]}; }`
1379
1380
  )
1380
1381
  ]);
1381
1382
  }
1382
- function Qn(e, t, n) {
1383
- const s = ve.filter(
1384
- (r) => e[F(r)].slotsInSequence > 0
1383
+ function ts(e, t, n) {
1384
+ const s = we.filter(
1385
+ (r) => e[N(r)].slotsInSequence > 0
1385
1386
  );
1386
1387
  if (s.length === 0)
1387
1388
  return null;
1388
1389
  const i = s.map((r) => {
1389
- const { listIndex: a, slotCursor: c, slotsInSequence: u } = e[F(r)];
1390
+ const { listIndex: a, slotCursor: c, slotsInSequence: u } = e[N(r)];
1390
1391
  return {
1391
- name: R(r, a),
1392
+ name: j(r, a),
1392
1393
  value: Array.from(
1393
1394
  { length: u },
1394
- (l, f) => `var(${R(r, c + f, !0)})`
1395
+ (l, f) => `var(${j(r, c + f, !0)})`
1395
1396
  ).join(", ")
1396
1397
  };
1397
1398
  }), o = { key: e.key, childSelector: e.childSelector, declarations: i };
1398
- return t && (o.media = ee(t, n || {}, "media"), o.selectorCondition = P(t, n || {})), o;
1399
+ return t && (o.media = ne(t, n || {}, "media"), o.selectorCondition = x(t, n || {})), o;
1399
1400
  }
1400
- function Xn(e, t, n, s = 0) {
1401
+ function ns(e, t, n, s = 0) {
1401
1402
  if (e.length === 0)
1402
1403
  return "";
1403
1404
  const i = {
1404
1405
  animation: t,
1405
1406
  transition: n,
1406
1407
  timeline: s
1407
- }, o = ve.filter((c) => i[F(c)] > 0);
1408
+ }, o = we.filter((c) => i[N(c)] > 0);
1408
1409
  if (o.length === 0)
1409
1410
  return "";
1410
1411
  const r = o.map((c) => ({
1411
1412
  name: c,
1412
1413
  value: Array.from(
1413
- { length: i[F(c)] },
1414
+ { length: i[N(c)] },
1414
1415
  // TODO: maybe add `-intrct` to names? --anm-0 or --trns-0 could collide with user-defined names
1415
- (u, l) => `var(${R(c, l)})`
1416
+ (u, l) => `var(${j(c, l)})`
1416
1417
  ).join(", ")
1417
1418
  }));
1418
1419
  return `${e.map(
@@ -1422,27 +1423,27 @@ ${r.map(({ name: c, value: u }) => ` ${c}: ${u};`).join(`
1422
1423
  `)}
1423
1424
  }`;
1424
1425
  }
1425
- const ne = {
1426
+ const oe = {
1426
1427
  rangeStart: { name: "cover", offset: { value: 0, unit: "percentage" } },
1427
1428
  rangeEnd: { name: "cover", offset: { value: 100, unit: "percentage" } }
1428
1429
  };
1429
- function Zn(e, t) {
1430
- const n = e?.name ?? ne.rangeStart.name, s = t?.name ?? e?.name ?? ne.rangeEnd.name, i = {
1430
+ function ss(e, t) {
1431
+ const n = e?.name ?? oe.rangeStart.name, s = t?.name ?? e?.name ?? oe.rangeEnd.name, i = {
1431
1432
  name: n,
1432
- offset: e?.offset || ne.rangeStart.offset
1433
+ offset: e?.offset || oe.rangeStart.offset
1433
1434
  }, o = {
1434
1435
  name: s,
1435
- offset: t?.offset || ne.rangeEnd.offset
1436
+ offset: t?.offset || oe.rangeEnd.offset
1436
1437
  };
1437
1438
  return { startOffset: i, endOffset: o };
1438
1439
  }
1439
- function L(e) {
1440
+ function F(e) {
1440
1441
  if ("keyframeEffect" in e && !e.keyframeEffect.name && "effectId" in e && (e.keyframeEffect.name = e.effectId), "duration" in e)
1441
1442
  return {
1442
1443
  id: "",
1443
1444
  ...e
1444
1445
  };
1445
- const { rangeStart: t, rangeEnd: n, ...s } = e, { startOffset: i, endOffset: o } = Zn(t, n);
1446
+ const { rangeStart: t, rangeEnd: n, ...s } = e, { startOffset: i, endOffset: o } = ss(t, n);
1446
1447
  return {
1447
1448
  id: "",
1448
1449
  startOffset: i,
@@ -1454,7 +1455,7 @@ function k(e, t, n) {
1454
1455
  let s = e.get(t);
1455
1456
  s || (s = /* @__PURE__ */ new Set(), e.set(t, s)), s.add(n);
1456
1457
  }
1457
- function te(e, t) {
1458
+ function se(e, t) {
1458
1459
  e.get(t)?.forEach((s) => {
1459
1460
  const { source: i, target: o, cleanup: r } = s;
1460
1461
  r();
@@ -1462,15 +1463,15 @@ function te(e, t) {
1462
1463
  e.get(a)?.delete(s);
1463
1464
  }), e.delete(t);
1464
1465
  }
1465
- const Jn = [
1466
+ const is = [
1466
1467
  { name: "visibility", value: "hidden" },
1467
1468
  { name: "clip-path", value: "none", important: !0 },
1468
1469
  { name: "transform", value: "none", important: !0 },
1469
1470
  { name: "translate", value: "none", important: !0 },
1470
1471
  { name: "scale", value: "none", important: !0 },
1471
1472
  { name: "rotate", value: "none", important: !0 }
1472
- ], Te = { animation: !1, transition: !1, timeline: !1 };
1473
- function yt(e, t) {
1473
+ ], Me = { animation: !1, transition: !1, timeline: !1 };
1474
+ function Ct(e, t) {
1474
1475
  const n = () => ({
1475
1476
  listIndex: 0,
1476
1477
  slotCursor: 0,
@@ -1481,6 +1482,7 @@ function yt(e, t) {
1481
1482
  return {
1482
1483
  key: e,
1483
1484
  childSelector: t,
1485
+ partSelectors: /* @__PURE__ */ new Set(),
1484
1486
  assigned: /* @__PURE__ */ new Set(),
1485
1487
  animation: n(),
1486
1488
  transition: n(),
@@ -1488,33 +1490,33 @@ function yt(e, t) {
1488
1490
  keyframeEntries: /* @__PURE__ */ new Map()
1489
1491
  };
1490
1492
  }
1491
- function Et(e, t) {
1493
+ function Ot(e, t) {
1492
1494
  return Object.fromEntries(
1493
- ve.map((n) => {
1494
- const s = F(n), { listIndex: i, slotCursor: o, slotsInSequence: r } = e[s];
1495
+ we.map((n) => {
1496
+ const s = N(n), { listIndex: i, slotCursor: o, slotsInSequence: r } = e[s];
1495
1497
  return [
1496
1498
  n,
1497
- t[s] ? R(n, o + r, !0) : R(n, i)
1499
+ t[s] ? j(n, o + r, !0) : j(n, i)
1498
1500
  ];
1499
1501
  })
1500
1502
  );
1501
1503
  }
1502
- function Ce(e, t, n) {
1503
- Fe.forEach((s) => {
1504
+ function ke(e, t, n) {
1505
+ He.forEach((s) => {
1504
1506
  t[s] && (e[s].touched = !0, n[s] && (e[s].slotsInSequence += 1));
1505
1507
  });
1506
1508
  }
1507
- function wt(e) {
1509
+ function _t(e) {
1508
1510
  const { namedEffect: t, keyframeEffect: n, transition: s, transitionProperties: i } = e;
1509
1511
  return t || n ? "animation" : s || i ? "transition" : null;
1510
1512
  }
1511
- function es(e) {
1513
+ function os(e) {
1512
1514
  const t = /* @__PURE__ */ new Map();
1513
1515
  return e.effects.forEach((n) => {
1514
- const s = wt(n);
1516
+ const s = _t(n);
1515
1517
  if (!s)
1516
1518
  return;
1517
- const i = G(n), o = t.get(i) || { animation: 0, transition: 0, timeline: 0 };
1519
+ const i = V(n), o = t.get(i) || { animation: 0, transition: 0, timeline: 0 };
1518
1520
  o[s] += 1, t.set(i, o);
1519
1521
  }), new Map(
1520
1522
  [...t].map(([n, { animation: s, transition: i }]) => [
@@ -1523,31 +1525,31 @@ function es(e) {
1523
1525
  ])
1524
1526
  );
1525
1527
  }
1526
- function ts(e) {
1527
- Fe.forEach((t) => {
1528
+ function rs(e) {
1529
+ He.forEach((t) => {
1528
1530
  const n = e[t];
1529
1531
  n.slotsInInteraction = Math.max(n.slotsInInteraction, n.slotsInSequence), n.slotsInSequence = 0;
1530
1532
  });
1531
1533
  }
1532
- function ns(e) {
1533
- Fe.forEach((t) => {
1534
+ function as(e) {
1535
+ He.forEach((t) => {
1534
1536
  const n = e[t];
1535
1537
  n.listIndex += n.touched ? 1 : 0, n.slotCursor += n.slotsInInteraction, n.slotsInInteraction = 0, n.touched = !1;
1536
1538
  });
1537
1539
  }
1538
- const ss = {
1540
+ const cs = {
1539
1541
  animation: "animation",
1540
1542
  "animation-composition": "composition",
1541
1543
  "animation-timeline": "animationTimeline",
1542
1544
  "animation-range": "animationRange"
1543
1545
  };
1544
- function is(e, t, n, s) {
1545
- const { key: i, conditions: o } = t, r = ee(o, e.configConditions, "media"), a = P(o, e.configConditions), c = D(t, {
1546
+ function ls(e, t, n, s) {
1547
+ const { key: i, conditions: o } = t, r = ne(o, e.configConditions, "media"), a = x(o, e.configConditions), c = W(t, {
1546
1548
  asCombinator: !0,
1547
1549
  useFirstChild: e.useFirstChild,
1548
1550
  addItemFilter: !0
1549
- }), u = G(t), l = e.targetsMap.get(u) || yt(i, c), f = Et(l, Te)["view-timeline"];
1550
- return Ce(l, { animation: !1, transition: !1, timeline: !0 }, Te), e.targetsMap.set(u, l), s.add(u), {
1551
+ }), u = V(t), l = e.targetsMap.get(u) || Ct(i, c), f = Ot(l, Me)["view-timeline"];
1552
+ return ke(l, { animation: !1, transition: !1, timeline: !0 }, Me), e.targetsMap.set(u, l), s.add(u), {
1551
1553
  key: i,
1552
1554
  media: r,
1553
1555
  selectorCondition: a,
@@ -1560,10 +1562,10 @@ function is(e, t, n, s) {
1560
1562
  ]
1561
1563
  };
1562
1564
  }
1563
- function $t(e, t, n, s, i) {
1565
+ function At(e, t, n, s, i) {
1564
1566
  const o = [];
1565
1567
  for (const r of Object.keys(i)) {
1566
- const a = `${et}${r}`;
1568
+ const a = `${ot}${r}`;
1567
1569
  a in t && o.push(
1568
1570
  ...i[r](t[a], {
1569
1571
  key: n,
@@ -1574,90 +1576,102 @@ function $t(e, t, n, s, i) {
1574
1576
  }
1575
1577
  return o;
1576
1578
  }
1577
- function os(e, t, n, s, i, o) {
1578
- const { assigned: r, childSelector: a } = n, c = { animation: !1, transition: !1, timeline: !1 }, {
1579
- key: u,
1580
- effectId: l,
1581
- conditions: f,
1582
- namedEffect: d,
1583
- keyframeEffect: h,
1584
- transition: m,
1585
- transitionProperties: p,
1586
- initial: g
1587
- } = t, y = ee(f, e.configConditions, "media"), v = P(f, e.configConditions), E = [
1579
+ function us(e, t, n, s, i, o) {
1580
+ const { assigned: r, childSelector: a, partSelectors: c } = n, u = { animation: !1, transition: !1, timeline: !1 }, {
1581
+ key: l,
1582
+ effectId: f,
1583
+ conditions: d,
1584
+ namedEffect: h,
1585
+ keyframeEffect: m,
1586
+ transition: p,
1587
+ transitionProperties: v,
1588
+ initial: y
1589
+ } = t, g = ne(d, e.configConditions, "media"), E = x(d, e.configConditions), w = [
1588
1590
  {
1589
- key: u,
1590
- media: y,
1591
- selectorCondition: v,
1591
+ key: l,
1592
+ media: g,
1593
+ selectorCondition: E,
1592
1594
  childSelector: a,
1593
1595
  declarations: []
1594
1596
  }
1595
1597
  ];
1596
- let $ = [];
1597
- const { declarations: b } = E[0];
1598
- if (e.plugins && E.push(...$t("effect", t, u, y, e.plugins)), d || h) {
1599
- const S = L(t), C = Ln(null, S, s, o).filter(
1598
+ let b = [];
1599
+ const { declarations: S } = w[0];
1600
+ if (e.plugins && w.push(...At("effect", t, l, g, e.plugins)), h || m) {
1601
+ const T = F(t), C = jn(null, T, s, o).filter(
1600
1602
  (I) => I.name
1601
- );
1602
- $ = C.map((I) => ({
1603
+ ), _ = C.length ? {} : { "": [] };
1604
+ C.forEach((I) => {
1605
+ const A = I.part || "";
1606
+ (_[A] ||= []).push(I);
1607
+ }), b = C.map((I) => ({
1603
1608
  name: I.name,
1604
1609
  keyframes: I.keyframes
1605
- })), b.push(
1610
+ })), S.push(
1606
1611
  ...C.flatMap(
1607
- ({ custom: I }) => Object.entries(I || {}).filter(([T, A]) => A !== void 0).map(([T, A]) => ({ name: T, value: A }))
1612
+ ({ custom: I }) => Object.entries(I || {}).filter(([A, M]) => M !== void 0).map(([A, M]) => ({ name: A, value: M }))
1608
1613
  )
1609
- );
1610
- const O = Ie.map((I) => ({
1611
- _listPropertyName: I,
1612
- name: i[I],
1613
- value: C.map((T) => {
1614
- const A = ss[I];
1615
- return T[A] || j[I];
1616
- }).join(", ")
1617
- })).filter(
1618
- ({ _listPropertyName: I, name: T, value: A }) => A !== j[I] || r.has(T)
1619
- );
1620
- O.forEach(({ name: I }) => r.add(I)), c.animation = O.length > 0, g ? (E.push({
1621
- key: u,
1622
- media: y,
1623
- selectorCondition: v,
1624
- childSelector: a,
1625
- declarations: Jn,
1626
- selectorSuffix: ":not([data-interact-enter])"
1627
- }), E.push({
1628
- key: u,
1629
- media: y,
1630
- selectorCondition: v,
1631
- childSelector: a,
1632
- declarations: O,
1633
- selectorSuffix: ':not([data-interact-enter="done"])'
1634
- })) : b.push(...O);
1635
- } else if (m || p) {
1636
- const S = mt(t), C = pt(t);
1637
- (C.length || r.has(i.transition)) && (b.push({
1614
+ ), Object.entries(_).forEach(([I, A]) => {
1615
+ const M = Ae.map((P) => ({
1616
+ _listPropertyName: P,
1617
+ name: i[P],
1618
+ value: A.map((be) => {
1619
+ const Se = cs[P];
1620
+ return be[Se] || H[P];
1621
+ }).join(", ")
1622
+ })).filter(
1623
+ ({ _listPropertyName: P, name: be, value: Se }) => Se !== H[P] || r.has(be)
1624
+ );
1625
+ M.forEach(({ name: P }) => r.add(P)), u.animation = u.animation || M.length > 0;
1626
+ const ie = I ? `[data-motion-part~="${I}"]` : a;
1627
+ I && M.length && c.add(ie), y ? (w.push({
1628
+ key: l,
1629
+ media: g,
1630
+ selectorCondition: E,
1631
+ childSelector: ie,
1632
+ declarations: is,
1633
+ selectorSuffix: ":not([data-interact-enter])"
1634
+ }), w.push({
1635
+ key: l,
1636
+ media: g,
1637
+ selectorCondition: E,
1638
+ childSelector: ie,
1639
+ declarations: M,
1640
+ selectorSuffix: ':not([data-interact-enter="done"])'
1641
+ })) : I ? w.push({
1642
+ key: l,
1643
+ media: g,
1644
+ selectorCondition: E,
1645
+ childSelector: ie,
1646
+ declarations: M
1647
+ }) : S.push(...M);
1648
+ });
1649
+ } else if (p || v) {
1650
+ const T = bt(t), C = St(t);
1651
+ (C.length || r.has(i.transition)) && (S.push({
1638
1652
  name: i.transition,
1639
- value: C.join(", ") || j.transition
1640
- }), r.add(i.transition), c.transition = !0), E.push({
1641
- key: u,
1642
- media: y,
1643
- selectorCondition: v,
1653
+ value: C.join(", ") || H.transition
1654
+ }), r.add(i.transition), u.transition = !0), w.push({
1655
+ key: l,
1656
+ media: g,
1657
+ selectorCondition: E,
1644
1658
  childSelector: a,
1645
- states: [l],
1646
- declarations: S
1659
+ states: [f],
1660
+ declarations: T
1647
1661
  });
1648
1662
  } else
1649
- b.push(
1650
- ...Ie.filter(
1651
- (S) => r.has(i[S])
1652
- ).map((S) => ({
1653
- name: i[S],
1654
- value: j[S]
1663
+ S.push(
1664
+ ...Ae.filter(
1665
+ (T) => r.has(i[T])
1666
+ ).map((T) => ({
1667
+ name: i[T],
1668
+ value: H[T]
1655
1669
  }))
1656
1670
  );
1657
- return { rules: E.filter((S) => S.declarations.length), keyframes: $, wrote: c };
1671
+ return { rules: w.filter((T) => T.declarations.length), keyframes: b, wrote: u };
1658
1672
  }
1659
- function rs(e, t, n) {
1660
- const s = t.namedEffect && Le(t.namedEffect.type, !1);
1673
+ function fs(e, t, n) {
1674
+ const s = t.namedEffect && je(t.namedEffect.type, !1);
1661
1675
  if (!s?.getNames)
1662
1676
  return;
1663
1677
  const i = (r) => s.getNames({ ...t, suffix: r });
@@ -1666,28 +1680,28 @@ function rs(e, t, n) {
1666
1680
  const o = e.keyframeEntries.get(n) || [];
1667
1681
  e.keyframeEntries.set(n, [...o, { slotKey: t.slotKey, getNames: i }]);
1668
1682
  }
1669
- function bt(e, t, n, s, i, o) {
1670
- const r = G(t), a = e.targetsMap.get(r) || yt(
1683
+ function Mt(e, t, n, s, i, o) {
1684
+ const r = V(t), a = e.targetsMap.get(r) || Ct(
1671
1685
  t.key,
1672
- D(t, {
1686
+ W(t, {
1673
1687
  asCombinator: !0,
1674
1688
  useFirstChild: e.useFirstChild,
1675
1689
  addItemFilter: !0
1676
1690
  })
1677
1691
  );
1678
1692
  s.add(r);
1679
- const c = o?.get(r) || Te, u = Et(a, c);
1693
+ const c = o?.get(r) || Me, u = Ot(a, c);
1680
1694
  if (e.collectSlots) {
1681
- rs(a, t, u.animation);
1682
- const h = wt(t);
1683
- return Ce(
1695
+ fs(a, t, u.animation);
1696
+ const h = _t(t);
1697
+ return ke(
1684
1698
  a,
1685
1699
  { animation: h === "animation", transition: h === "transition", timeline: !1 },
1686
1700
  c
1687
1701
  ), e.targetsMap.set(r, a), [];
1688
1702
  }
1689
1703
  t.namedEffect && (t.suffix = e.keyframeSlots.get(t.slotKey));
1690
- const { rules: l, keyframes: f, wrote: d } = os(
1704
+ const { rules: l, keyframes: f, wrote: d } = us(
1691
1705
  e,
1692
1706
  t,
1693
1707
  a,
@@ -1695,86 +1709,86 @@ function bt(e, t, n, s, i, o) {
1695
1709
  u,
1696
1710
  i
1697
1711
  );
1698
- return f.forEach(({ name: h, keyframes: m }) => e.keyframesMap.set(h, m)), Ce(a, d, c), e.targetsMap.set(r, a), l;
1712
+ return f.forEach(({ name: h, keyframes: m }) => e.keyframesMap.set(h, m)), ke(a, d, c), e.targetsMap.set(r, a), l;
1699
1713
  }
1700
- function as(e, t, n, s) {
1701
- const i = [], o = /* @__PURE__ */ new Set(), r = es(t);
1714
+ function ds(e, t, n, s) {
1715
+ const i = [], o = /* @__PURE__ */ new Set(), r = os(t);
1702
1716
  i.push(
1703
1717
  ...t.effects.flatMap(
1704
- (c) => bt(e, c, n, o, t, r)
1718
+ (c) => Mt(e, c, n, o, t, r)
1705
1719
  )
1706
1720
  );
1707
1721
  const { conditions: a } = t;
1708
1722
  return o.forEach((c) => {
1709
1723
  s.add(c);
1710
- const u = e.targetsMap.get(c), l = Qn(u, a, e.configConditions);
1711
- l && (l.declarations.forEach(({ name: f }) => u.assigned.add(f)), i.push(l)), ts(u);
1724
+ const u = e.targetsMap.get(c), l = ts(u, a, e.configConditions);
1725
+ l && (l.declarations.forEach(({ name: f }) => u.assigned.add(f)), i.push(l)), rs(u);
1712
1726
  }), i;
1713
1727
  }
1714
- function cs(e, t, n) {
1715
- const { key: s, conditions: i, effects: o = [], sequences: r = [] } = t, a = e.plugins ? $t(
1728
+ function hs(e, t, n) {
1729
+ const { key: s, conditions: i, effects: o = [], sequences: r = [] } = t, a = e.plugins ? At(
1716
1730
  "interaction",
1717
1731
  t,
1718
1732
  s,
1719
- ee(i, e.configConditions, "media"),
1733
+ ne(i, e.configConditions, "media"),
1720
1734
  e.plugins
1721
1735
  ) : [], { trigger: c } = t, u = {
1722
- trigger: Hn(c),
1736
+ trigger: Kn(c),
1723
1737
  id: ["trigger", n].join("-")
1724
1738
  }, l = /* @__PURE__ */ new Set();
1725
- c === "viewProgress" && a.push(is(e, t, u.id, l));
1739
+ c === "viewProgress" && a.push(ls(e, t, u.id, l));
1726
1740
  const f = o.map((h, m) => {
1727
- const p = vt(
1741
+ const p = Tt(
1728
1742
  h,
1729
1743
  t,
1730
1744
  e.config,
1731
1745
  `eff-${n}-${m}`
1732
1746
  );
1733
- return p && Object.assign(p, { slotKey: de(n, m) });
1747
+ return p && Object.assign(p, { slotKey: pe(n, m) });
1734
1748
  }).filter((h) => h !== null);
1735
1749
  a.push(
1736
- ...f.flatMap((h) => bt(e, h, u, l))
1750
+ ...f.flatMap((h) => Mt(e, h, u, l))
1737
1751
  );
1738
1752
  const d = r.map(
1739
- (h, m) => Gn(
1753
+ (h, m) => Bn(
1740
1754
  h,
1741
1755
  t,
1742
1756
  e.config,
1743
1757
  `seq-${n}-${m}`,
1744
- (p) => de(n, p, m)
1758
+ (p) => pe(n, p, m)
1745
1759
  )
1746
1760
  ).filter((h) => h !== null);
1747
1761
  return a.push(
1748
1762
  ...d.flatMap(
1749
- (h) => as(e, h, u, l)
1763
+ (h) => ds(e, h, u, l)
1750
1764
  )
1751
- ), c === "viewProgress" && l.size > 1 && e.scopedTimelines.push(`--${u.id}`), l.forEach((h) => ns(e.targetsMap.get(h))), a;
1765
+ ), c === "viewProgress" && l.size > 1 && e.scopedTimelines.push(`--${u.id}`), l.forEach((h) => as(e.targetsMap.get(h))), a;
1752
1766
  }
1753
- function ls(e = {}) {
1767
+ function ms(e = {}) {
1754
1768
  const { useFirstChild: t = !0, plugins: n } = typeof e == "boolean" ? { useFirstChild: e, plugins: void 0 } : e;
1755
1769
  return { useFirstChild: t, plugins: n };
1756
1770
  }
1757
- function St(e, t) {
1771
+ function kt(e, t) {
1758
1772
  const { useFirstChild: n = !0, plugins: s, collectSlots: i = !1 } = t, o = {
1759
1773
  config: e,
1760
1774
  configConditions: e.conditions || {},
1761
1775
  targetsMap: /* @__PURE__ */ new Map(),
1762
1776
  keyframesMap: /* @__PURE__ */ new Map(),
1763
- keyframeSlots: i ? /* @__PURE__ */ new Map() : It(e),
1777
+ keyframeSlots: i ? /* @__PURE__ */ new Map() : qt(e),
1764
1778
  scopedTimelines: [],
1765
1779
  collectSlots: i,
1766
1780
  useFirstChild: n,
1767
1781
  plugins: s
1768
1782
  }, r = e.interactions.flatMap(
1769
- (a, c) => cs(o, a, c)
1783
+ (a, c) => hs(o, a, c)
1770
1784
  );
1771
1785
  return { ctx: o, cssRules: r };
1772
1786
  }
1773
- function de(e, t, n) {
1787
+ function pe(e, t, n) {
1774
1788
  return [e, n, t].filter((s) => s !== void 0).join(":");
1775
1789
  }
1776
- function It(e) {
1777
- const { ctx: t } = St(e, { collectSlots: !0 }), n = /* @__PURE__ */ new Map(), s = (i) => i ? `-${i}` : void 0;
1790
+ function qt(e) {
1791
+ const { ctx: t } = kt(e, { collectSlots: !0 }), n = /* @__PURE__ */ new Map(), s = (i) => i ? `-${i}` : void 0;
1778
1792
  return t.targetsMap.forEach(({ keyframeEntries: i }) => {
1779
1793
  const o = /* @__PURE__ */ new Set();
1780
1794
  i.forEach((r) => {
@@ -1786,11 +1800,19 @@ function It(e) {
1786
1800
  });
1787
1801
  }), n;
1788
1802
  }
1789
- function us(e, t) {
1790
- const { ctx: n, cssRules: s } = St(e, ls(t)), i = [...n.targetsMap.values()], o = Math.max(0, ...i.map(({ animation: h }) => h.listIndex)), r = Math.max(0, ...i.map(({ transition: h }) => h.listIndex)), a = Math.max(0, ...i.map(({ timeline: h }) => h.listIndex)), c = Xn(i, o, r, a), u = Math.max(0, ...i.map(({ animation: h }) => h.slotCursor)), l = Math.max(
1803
+ function ps(e, t) {
1804
+ const { ctx: n, cssRules: s } = kt(e, ms(t)), i = [...n.targetsMap.values()], o = Math.max(0, ...i.map(({ animation: h }) => h.listIndex)), r = Math.max(0, ...i.map(({ transition: h }) => h.listIndex)), a = Math.max(0, ...i.map(({ timeline: h }) => h.listIndex)), c = ns(
1805
+ i.flatMap((h) => [
1806
+ h,
1807
+ ...[...h.partSelectors].map((m) => ({ key: h.key, childSelector: m }))
1808
+ ]),
1809
+ o,
1810
+ r,
1811
+ a
1812
+ ), u = Math.max(0, ...i.map(({ animation: h }) => h.slotCursor)), l = Math.max(
1791
1813
  0,
1792
1814
  ...i.map(({ transition: h }) => h.slotCursor)
1793
- ), f = Un(
1815
+ ), f = es(
1794
1816
  o,
1795
1817
  r,
1796
1818
  u,
@@ -1801,140 +1823,140 @@ function us(e, t) {
1801
1823
  }` : "";
1802
1824
  return { keyframes: n.keyframesMap, atProperty: f, cssRules: s, listsRule: c, timelineScopeRule: d };
1803
1825
  }
1804
- function ki(e, t) {
1805
- const { cssRules: n, keyframes: s, atProperty: i, listsRule: o, timelineScopeRule: r } = us(
1826
+ function xi(e, t) {
1827
+ const { cssRules: n, keyframes: s, atProperty: i, listsRule: o, timelineScopeRule: r } = ps(
1806
1828
  e,
1807
1829
  t
1808
1830
  );
1809
1831
  return [
1810
1832
  ...i,
1811
- ...[...s.entries()].map(([c, u]) => Yn(c, u)),
1812
- ...n.map(Bn),
1833
+ ...[...s.entries()].map(([c, u]) => Zn(c, u)),
1834
+ ...n.map(Jn),
1813
1835
  o,
1814
1836
  r
1815
1837
  ].filter((c) => c).join(`
1816
1838
  `);
1817
1839
  }
1818
- const fs = {
1840
+ const gs = {
1819
1841
  root: null,
1820
1842
  rootMargin: "0px 0px -10% 0px",
1821
1843
  threshold: [0]
1822
- }, ds = {
1844
+ }, vs = {
1823
1845
  root: null,
1824
1846
  rootMargin: "0px",
1825
1847
  threshold: [0]
1826
- }, hs = 0.2;
1827
- function ms(e) {
1848
+ }, ys = 0.2;
1849
+ function Es(e) {
1828
1850
  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;
1829
1851
  return `${i(n)} 0px ${i(s)}`;
1830
1852
  }
1831
- const U = {}, x = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakSet(), K = /* @__PURE__ */ new WeakMap();
1832
- let Tt = {}, Y = null;
1833
- function ps(e) {
1834
- Tt = e;
1853
+ const Q = {}, R = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new WeakMap();
1854
+ let Pt = {}, B = null;
1855
+ function ws(e) {
1856
+ Pt = e;
1835
1857
  }
1836
- function Ct(e, t, n) {
1837
- x.get(e)?.forEach(({ source: i, handler: o }) => {
1858
+ function Lt(e, t, n) {
1859
+ R.get(e)?.forEach(({ source: i, handler: o }) => {
1838
1860
  i === e && o(t, n);
1839
1861
  });
1840
1862
  }
1841
- function We() {
1842
- return Y || (Y = new IntersectionObserver((e) => {
1863
+ function Ue() {
1864
+ return B || (B = new IntersectionObserver((e) => {
1843
1865
  e.forEach((t) => {
1844
1866
  const n = t.target;
1845
- t.isIntersecting || Ct(n, !1, !0);
1867
+ t.isIntersecting || Lt(n, !1, !0);
1846
1868
  });
1847
- }, ds), Y);
1869
+ }, vs), B);
1848
1870
  }
1849
- function Ot(e, t = !1) {
1871
+ function xt(e, t = !1) {
1850
1872
  const n = JSON.stringify({ ...e, isSafeMode: t });
1851
- if (U[n])
1852
- return U[n];
1853
- const s = e.threshold ?? hs, i = t ? fs : {
1873
+ if (Q[n])
1874
+ return Q[n];
1875
+ const s = e.threshold ?? ys, i = t ? gs : {
1854
1876
  root: null,
1855
- rootMargin: e.inset ? ms(e.inset) : "0px",
1877
+ rootMargin: e.inset ? Es(e.inset) : "0px",
1856
1878
  threshold: s
1857
1879
  }, o = new IntersectionObserver((r) => {
1858
1880
  r.forEach((a) => {
1859
- const c = a.target, u = !he.has(c);
1860
- if (u && (he.add(c), e.useSafeViewEnter && !a.isIntersecting)) {
1861
- _.measure(() => {
1881
+ const c = a.target, u = !ge.has(c);
1882
+ if (u && (ge.add(c), e.useSafeViewEnter && !a.isIntersecting)) {
1883
+ O.measure(() => {
1862
1884
  const l = a.boundingClientRect.height, f = a.rootBounds?.height;
1863
1885
  if (!f)
1864
1886
  return;
1865
1887
  const d = Array.isArray(e.threshold) ? Math.min(...e.threshold) : e.threshold;
1866
- d && l * d > f && _.mutate(() => {
1888
+ d && l * d > f && O.mutate(() => {
1867
1889
  o.unobserve(c);
1868
- const m = Ot(e, !0);
1869
- K.set(c, m), m.observe(c);
1890
+ const m = xt(e, !0);
1891
+ Y.set(c, m), m.observe(c);
1870
1892
  });
1871
1893
  });
1872
1894
  return;
1873
1895
  }
1874
- (a.isIntersecting || !u) && Ct(c, a.isIntersecting);
1896
+ (a.isIntersecting || !u) && Lt(c, a.isIntersecting);
1875
1897
  });
1876
1898
  }, i);
1877
- return U[n] = o, o;
1899
+ return Q[n] = o, o;
1878
1900
  }
1879
- function gs(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o, animation: r } = {}) {
1880
- const a = { ...Tt, ...s }, c = n.triggerType || "once", u = r || J(
1901
+ function $s(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o, animation: r } = {}) {
1902
+ const a = { ...Pt, ...s }, c = n.triggerType || "once", u = r || te(
1881
1903
  t,
1882
- L(n),
1904
+ F(n),
1883
1905
  void 0,
1884
1906
  i
1885
1907
  );
1886
1908
  if (!u)
1887
1909
  return;
1888
- const l = Ot(a);
1910
+ const l = xt(a);
1889
1911
  c !== "once" && u.persist?.();
1890
1912
  let f = !0, d = !1, h;
1891
- h = { source: e, target: t, handler: (g, y) => {
1913
+ h = { source: e, target: t, handler: (v, y) => {
1892
1914
  if (!(o && !t.matches(o)))
1893
1915
  if (c === "once") {
1894
- if (g && !d) {
1916
+ if (v && !d) {
1895
1917
  d = !0;
1896
- const v = x.get(e);
1897
- (!v || v.size === 0 || v.size === 1 && v.has(h)) && ((K.get(e) || l).unobserve(e), he.delete(e)), u.onFinish(() => {
1898
- x.get(e)?.delete(h), x.get(t)?.delete(h);
1918
+ const g = R.get(e);
1919
+ (!g || g.size === 0 || g.size === 1 && g.has(h)) && ((Y.get(e) || l).unobserve(e), ge.delete(e)), u.onFinish(() => {
1920
+ R.get(e)?.delete(h), R.get(t)?.delete(h);
1899
1921
  }), u.play(() => {
1900
1922
  const E = () => {
1901
1923
  t.dataset.interactEnter = "start";
1902
1924
  };
1903
1925
  if (u.isCSS) {
1904
- _.mutate(() => {
1926
+ O.mutate(() => {
1905
1927
  requestAnimationFrame(E);
1906
1928
  });
1907
- const $ = () => {
1908
- _.mutate(() => {
1929
+ const w = () => {
1930
+ O.mutate(() => {
1909
1931
  t.dataset.interactEnter = "done";
1910
1932
  });
1911
1933
  };
1912
- u.onFinish($), u.onAbort($);
1934
+ u.onFinish(w), u.onAbort(w);
1913
1935
  } else
1914
- _.mutate(E);
1936
+ O.mutate(E);
1915
1937
  });
1916
1938
  }
1917
- } else c === "alternate" ? f && g ? (f = !1, u.play()) : f || u.reverse() : c === "repeat" ? g ? (u.progress(0), u.play()) : y && (u.pause(), u.progress(0)) : c === "state" && (g ? u.play() : y && u.pause());
1939
+ } else c === "alternate" ? f && v ? (f = !1, u.play()) : f || u.reverse() : c === "repeat" ? v ? (u.progress(0), u.play()) : y && (u.pause(), u.progress(0)) : c === "state" && (v ? u.play() : y && u.pause());
1918
1940
  }, cleanup: () => {
1919
- (K.get(e) || l).unobserve(e), (c === "repeat" || c === "state") && We().unobserve(e), u.cancel(), he.delete(e), K.delete(e);
1920
- } }, k(x, e, h), k(x, t, h), K.set(e, l), l.observe(e), (c === "repeat" || c === "state") && We().observe(e);
1941
+ (Y.get(e) || l).unobserve(e), (c === "repeat" || c === "state") && Ue().unobserve(e), u.cancel(), ge.delete(e), Y.delete(e);
1942
+ } }, k(R, e, h), k(R, t, h), Y.set(e, l), l.observe(e), (c === "repeat" || c === "state") && Ue().observe(e);
1921
1943
  }
1922
- function vs(e) {
1923
- te(x, e);
1944
+ function bs(e) {
1945
+ se(R, e);
1924
1946
  }
1925
- function ys() {
1926
- Y = null, Object.keys(U).forEach((e) => delete U[e]);
1947
+ function Ss() {
1948
+ B = null, Object.keys(Q).forEach((e) => delete Q[e]);
1927
1949
  }
1928
- const Es = {
1929
- add: gs,
1930
- remove: vs,
1931
- setOptions: ps,
1932
- reset: ys
1950
+ const Is = {
1951
+ add: $s,
1952
+ remove: bs,
1953
+ setOptions: ws,
1954
+ reset: Ss
1933
1955
  };
1934
- function _t(e, t) {
1956
+ function Ft(e, t) {
1935
1957
  return Object.assign(Object.create(t), e);
1936
1958
  }
1937
- function ws(e, t, n, s) {
1959
+ function Ts(e, t, n, s) {
1938
1960
  let i = e * (1 - n) + t * n;
1939
1961
  if (s) {
1940
1962
  const o = i - e;
@@ -1945,7 +1967,7 @@ function ws(e, t, n, s) {
1945
1967
  }
1946
1968
  return i;
1947
1969
  }
1948
- function $s(e) {
1970
+ function Cs(e) {
1949
1971
  let t = !1;
1950
1972
  return function() {
1951
1973
  t || (t = !0, window.requestAnimationFrame(() => {
@@ -1953,7 +1975,7 @@ function $s(e) {
1953
1975
  }));
1954
1976
  };
1955
1977
  }
1956
- function Ve(e, t) {
1978
+ function Qe(e, t) {
1957
1979
  let n = 0;
1958
1980
  return function() {
1959
1981
  n && window.clearTimeout(n), n = window.setTimeout(() => {
@@ -1961,19 +1983,19 @@ function Ve(e, t) {
1961
1983
  }, t);
1962
1984
  };
1963
1985
  }
1964
- function bs(e, t) {
1986
+ function Os(e, t) {
1965
1987
  const n = e.match(/^calc\s*\(\s*(-?\d+((px)|([lsd]?vh)|([lsd]?vw)))\s*\+\s*(-?\d+((px)|([lsd]?vh)|([lsd]?vw)))\s*\)\s*$/);
1966
- return me(n[1], t) + me(n[6], t);
1988
+ return ve(n[1], t) + ve(n[6], t);
1967
1989
  }
1968
- function me(e, t) {
1969
- return e ? /^-?\d+px$/.test(e) ? parseInt(e) : /^-?\d+[lsd]?vh$/.test(e) ? parseInt(e) * t.viewportHeight / 100 : /^-?\d+[lsd]?vw$/.test(e) ? parseInt(e) * t.viewportWidth / 100 : /^calc\s*\(\s*-?\d+((px)|([lsd]?vh)|([lsd]?vw))\s*\+\s*-?\d+((px)|([lsd]?vh)|([lsd]?vw))\s*\)\s*$/.test(e) ? bs(e, t) : parseInt(e) || 0 : 0;
1990
+ function ve(e, t) {
1991
+ return e ? /^-?\d+px$/.test(e) ? parseInt(e) : /^-?\d+[lsd]?vh$/.test(e) ? parseInt(e) * t.viewportHeight / 100 : /^-?\d+[lsd]?vw$/.test(e) ? parseInt(e) * t.viewportWidth / 100 : /^calc\s*\(\s*-?\d+((px)|([lsd]?vh)|([lsd]?vw))\s*\+\s*-?\d+((px)|([lsd]?vh)|([lsd]?vw))\s*\)\s*$/.test(e) ? Os(e, t) : parseInt(e) || 0 : 0;
1970
1992
  }
1971
- function N(e, t, n) {
1993
+ function z(e, t, n) {
1972
1994
  const { name: s, offset: i = 0 } = e, { start: o, end: r } = n, a = r - o, c = i / 100;
1973
1995
  let u, l;
1974
1996
  return s === "entry" ? (u = o - t, l = Math.min(t, a)) : s === "entry-crossing" ? (u = o - t, l = a) : s === "contain" ? (u = Math.min(r - t, o), l = Math.abs(t - a)) : s === "exit" ? (u = Math.max(o, r - t), l = Math.min(t, a)) : s === "exit-crossing" ? (u = o, l = a) : s === "cover" && (u = o - t, l = a + t), u + c * l | 0;
1975
1997
  }
1976
- function we(e, t, n, s, i) {
1998
+ function Te(e, t, n, s, i) {
1977
1999
  let o = 0;
1978
2000
  const r = { start: t, end: n };
1979
2001
  return e.forEach((a, c) => {
@@ -1982,8 +2004,8 @@ function we(e, t, n, s, i) {
1982
2004
  if (u) {
1983
2005
  if ("end" in u && e[c - 1]?.element) {
1984
2006
  const d = ((i ? a.element.offsetWidth : a.element.offsetHeight) || 0) + u.end - s, h = o + d - a.offset, m = h < r.start, p = !m && h <= n;
1985
- let g = 0;
1986
- (m || p) && (g = a.offset, r.end += g), m && (r.start += g);
2007
+ let v = 0;
2008
+ (m || p) && (v = a.offset, r.end += v), m && (r.start += v);
1987
2009
  }
1988
2010
  if ("start" in u) {
1989
2011
  const l = o - u.start, f = l < r.start, d = !f && l <= r.end;
@@ -1991,8 +2013,8 @@ function we(e, t, n, s, i) {
1991
2013
  const m = e[c - 1]?.element;
1992
2014
  if (m) {
1993
2015
  if (f || d) {
1994
- const p = (i ? m.offsetWidth : m.offsetHeight) || 0, g = a.offset, y = (i ? a.element.offsetWidth : a.element.offsetHeight) || 0;
1995
- h = p - (g + y), o += h, r.end += h;
2016
+ const p = (i ? m.offsetWidth : m.offsetHeight) || 0, v = a.offset, y = (i ? a.element.offsetWidth : a.element.offsetHeight) || 0;
2017
+ h = p - (v + y), o += h, r.end += h;
1996
2018
  }
1997
2019
  f && (r.start += h);
1998
2020
  }
@@ -2000,55 +2022,55 @@ function we(e, t, n, s, i) {
2000
2022
  }
2001
2023
  }), r;
2002
2024
  }
2003
- function Ss(e, t, n, s, i, o) {
2025
+ function _s(e, t, n, s, i, o) {
2004
2026
  const { start: r, end: a, duration: c } = e;
2005
2027
  let u = r, l = a, f = e.startRange, d = e.endRange, h;
2006
2028
  if (typeof c == "string") {
2007
- f = { name: c, offset: 0 }, d = { name: c, offset: 100 }, u = N(f, n, t), l = N(d, n, t), h = l - u;
2008
- const m = we(o, u, l, n, s);
2029
+ f = { name: c, offset: 0 }, d = { name: c, offset: 100 }, u = z(f, n, t), l = z(d, n, t), h = l - u;
2030
+ const m = Te(o, u, l, n, s);
2009
2031
  u = m.start, l = m.end;
2010
2032
  } else {
2011
2033
  if (f || r?.name) {
2012
2034
  f = f || r;
2013
- const m = me(f.add, i), p = N({ ...f, offset: 0 }, n, t), g = N({ ...f, offset: 100 }, n, t), y = we(o, p, g, n, s);
2035
+ const m = ve(f.add, i), p = z({ ...f, offset: 0 }, n, t), v = z({ ...f, offset: 100 }, n, t), y = Te(o, p, v, n, s);
2014
2036
  u = y.start + f.offset / 100 * (y.end - y.start) + m;
2015
2037
  }
2016
2038
  if (d || a?.name) {
2017
2039
  d = d || a;
2018
- const m = me(d.add, i), p = N({ ...d, offset: 0 }, n, t), g = N({ ...d, offset: 100 }, n, t), y = we(o, p, g, n, s);
2040
+ const m = ve(d.add, i), p = z({ ...d, offset: 0 }, n, t), v = z({ ...d, offset: 100 }, n, t), y = Te(o, p, v, n, s);
2019
2041
  l = y.start + d.offset / 100 * (y.end - y.start) + m;
2020
2042
  } else typeof c == "number" && (l = u + c);
2021
2043
  }
2022
2044
  return !h && !c && (h = l - u), { ...e, start: u, end: l, startRange: f, endRange: d, duration: h || c };
2023
2045
  }
2024
- function Is(e) {
2046
+ function As(e) {
2025
2047
  return e.position === "sticky";
2026
2048
  }
2027
- function Ts(e, t, n) {
2049
+ function Ms(e, t, n) {
2028
2050
  return e.position === "fixed" && (!t || t === window.document.body || t === n);
2029
2051
  }
2030
- function Cs(e, t) {
2052
+ function ks(e, t) {
2031
2053
  return parseInt(t ? e.left : e.top);
2032
2054
  }
2033
- function Os(e, t) {
2055
+ function qs(e, t) {
2034
2056
  return parseInt(t ? e.right : e.bottom);
2035
2057
  }
2036
- function _s(e, t, n) {
2058
+ function Ps(e, t, n) {
2037
2059
  n && (e.style.position = "static");
2038
2060
  const s = (t ? e.offsetLeft : e.offsetTop) || 0;
2039
2061
  return n && (e.style.position = null), s;
2040
2062
  }
2041
- function As(e, t) {
2063
+ function Ls(e, t) {
2042
2064
  let n;
2043
- const s = Cs(e, t), i = Os(e, t), o = !isNaN(s), r = !isNaN(i);
2065
+ const s = ks(e, t), i = qs(e, t), o = !isNaN(s), r = !isNaN(i);
2044
2066
  return (o || r) && (n = {}, o && (n.start = s), r && (n.end = i)), n;
2045
2067
  }
2046
- function se(e, t, n, s, i) {
2068
+ function re(e, t, n, s, i) {
2047
2069
  const o = e[0].viewSource, r = [];
2048
2070
  let a = (s ? o.offsetWidth : o.offsetHeight) || 0, c = 0, u = o;
2049
2071
  for (; u; ) {
2050
- const f = window.getComputedStyle(u), d = Is(f), h = d ? As(f, s) : void 0, m = _s(u, s, d);
2051
- if ((!h || !("end" in h)) && (c += m), r.push({ element: u, offset: m, sticky: h }), u = u.offsetParent, Ts(f, u, t))
2072
+ const f = window.getComputedStyle(u), d = As(f), h = d ? Ls(f, s) : void 0, m = Ps(u, s, d);
2073
+ if ((!h || !("end" in h)) && (c += m), r.push({ element: u, offset: m, sticky: h }), u = u.offsetParent, Ms(f, u, t))
2052
2074
  break;
2053
2075
  if (u === t) {
2054
2076
  r.push({ element: u, offset: 0 });
@@ -2056,7 +2078,7 @@ function se(e, t, n, s, i) {
2056
2078
  }
2057
2079
  }
2058
2080
  return r.reverse(), e.map((f) => ({
2059
- ...Ss(
2081
+ ..._s(
2060
2082
  f,
2061
2083
  { start: c, end: c + a },
2062
2084
  n,
@@ -2066,7 +2088,7 @@ function se(e, t, n, s, i) {
2066
2088
  )
2067
2089
  }));
2068
2090
  }
2069
- const Ke = 100, ks = {
2091
+ const Xe = 100, xs = {
2070
2092
  horizontal: !1,
2071
2093
  observeViewportEntry: !0,
2072
2094
  viewportRootMargin: "7% 7%",
@@ -2074,74 +2096,74 @@ const Ke = 100, ks = {
2074
2096
  observeSourcesResize: !1,
2075
2097
  observeContentResize: !1
2076
2098
  };
2077
- function qs(e, t, n, s) {
2099
+ function Fs(e, t, n, s) {
2078
2100
  let i = 0;
2079
2101
  return e >= t && e <= n ? i = s ? (e - t) / s : 1 : e > n && (i = 1), i;
2080
2102
  }
2081
- function Ye(e, t) {
2103
+ function Ze(e, t) {
2082
2104
  return e === window ? t ? window.document.documentElement.clientWidth : window.document.documentElement.clientHeight : t ? e.clientWidth : e.clientHeight;
2083
2105
  }
2084
- function Ms() {
2106
+ function Rs() {
2085
2107
  return {
2086
2108
  viewportWidth: window.document.documentElement.clientWidth,
2087
2109
  viewportHeight: window.document.documentElement.clientHeight
2088
2110
  };
2089
2111
  }
2090
- function Ps(e) {
2091
- const t = _t(e, ks), n = t.root, s = t.horizontal, i = /* @__PURE__ */ new WeakMap();
2092
- let o = Ye(n, s), r, a, c, u, l;
2093
- const f = [], d = Ms();
2112
+ function Ns(e) {
2113
+ const t = Ft(e, xs), n = t.root, s = t.horizontal, i = /* @__PURE__ */ new WeakMap();
2114
+ let o = Ze(n, s), r, a, c, u, l;
2115
+ const f = [], d = Rs();
2094
2116
  if (t.scenes = Object.values(
2095
2117
  // TODO(ameerf): find a polyfill and use groupBy instead of following reduce
2096
2118
  e.scenes.reduce(
2097
- (p, g, y) => {
2098
- const v = g.groupId ? `group-${g.groupId}` : String(y);
2099
- return p[v] ? p[v].push(g) : p[v] = [g], p;
2119
+ (p, v, y) => {
2120
+ const g = v.groupId ? `group-${v.groupId}` : String(y);
2121
+ return p[g] ? p[g].push(v) : p[g] = [v], p;
2100
2122
  },
2101
2123
  {}
2102
2124
  )
2103
- ).flatMap((p) => (p.every((g) => g.viewSource && (typeof g.duration == "string" || g.start?.name)) ? (p = se(p, n, o, s, d), (t.observeSourcesResize || t.observeContentResize) && f.push(p)) : p.forEach((g) => {
2104
- g.end == null && (g.end = g.start + g.duration), g.duration == null && (g.duration = g.end - g.start);
2105
- }), p)), t.scenes.forEach((p, g) => {
2106
- p.index = g;
2125
+ ).flatMap((p) => (p.every((v) => v.viewSource && (typeof v.duration == "string" || v.start?.name)) ? (p = re(p, n, o, s, d), (t.observeSourcesResize || t.observeContentResize) && f.push(p)) : p.forEach((v) => {
2126
+ v.end == null && (v.end = v.start + v.duration), v.duration == null && (v.duration = v.end - v.start);
2127
+ }), p)), t.scenes.forEach((p, v) => {
2128
+ p.index = v;
2107
2129
  }), f.length) {
2108
2130
  const p = /* @__PURE__ */ new Map();
2109
- window.ResizeObserver && (c = new window.ResizeObserver(function(g) {
2110
- g.forEach((y) => {
2111
- const v = p.get(y.target), E = se(v, n, o, s, d);
2112
- E.forEach(($, b) => {
2113
- t.scenes[$.index] = E[b];
2114
- }), f.splice(f.indexOf(v), 1, E);
2131
+ window.ResizeObserver && (c = new window.ResizeObserver(function(v) {
2132
+ v.forEach((y) => {
2133
+ const g = p.get(y.target), E = re(g, n, o, s, d);
2134
+ E.forEach((w, b) => {
2135
+ t.scenes[w.index] = E[b];
2136
+ }), f.splice(f.indexOf(g), 1, E);
2115
2137
  });
2116
- }), f.forEach((g) => {
2117
- c.observe(g[0].viewSource, { box: "border-box" }), p.set(g[0].viewSource, g);
2118
- }), t.observeContentResize && t.contentRoot && new window.ResizeObserver(Ve(() => {
2119
- const y = f.map((v) => {
2120
- const E = se(v, n, o, s, d);
2121
- return E.forEach(($, b) => {
2122
- t.scenes[$.index] = E[b];
2138
+ }), f.forEach((v) => {
2139
+ c.observe(v[0].viewSource, { box: "border-box" }), p.set(v[0].viewSource, v);
2140
+ }), t.observeContentResize && t.contentRoot && new window.ResizeObserver(Qe(() => {
2141
+ const y = f.map((g) => {
2142
+ const E = re(g, n, o, s, d);
2143
+ return E.forEach((w, b) => {
2144
+ t.scenes[w.index] = E[b];
2123
2145
  }), E;
2124
2146
  });
2125
- f.length = 0, f.push(...y), f.forEach((v) => {
2126
- p.set(v[0].viewSource, v);
2147
+ f.length = 0, f.push(...y), f.forEach((g) => {
2148
+ p.set(g[0].viewSource, g);
2127
2149
  });
2128
- }, Ke)).observe(t.contentRoot, { box: "border-box" })), t.observeViewportResize && (u = Ve(function() {
2129
- o = Ye(n, s);
2130
- const g = f.map((y) => {
2131
- const v = se(y, n, o, s, d);
2132
- return v.forEach((E, $) => {
2133
- t.scenes[E.index] = v[$];
2134
- }), v;
2150
+ }, Xe)).observe(t.contentRoot, { box: "border-box" })), t.observeViewportResize && (u = Qe(function() {
2151
+ o = Ze(n, s);
2152
+ const v = f.map((y) => {
2153
+ const g = re(y, n, o, s, d);
2154
+ return g.forEach((E, w) => {
2155
+ t.scenes[E.index] = g[w];
2156
+ }), g;
2135
2157
  });
2136
- f.length = 0, f.push(...g), f.forEach((y) => {
2158
+ f.length = 0, f.push(...v), f.forEach((y) => {
2137
2159
  p.set(y[0].viewSource, y);
2138
2160
  });
2139
- }, Ke), n === window ? window.addEventListener("resize", u) : window.ResizeObserver && (l = new window.ResizeObserver(u), l.observe(n, { box: "border-box" })));
2161
+ }, Xe), n === window ? window.addEventListener("resize", u) : window.ResizeObserver && (l = new window.ResizeObserver(u), l.observe(n, { box: "border-box" })));
2140
2162
  }
2141
2163
  t.observeViewportEntry && window.IntersectionObserver && (a = new window.IntersectionObserver(function(p) {
2142
- p.forEach((g) => {
2143
- (i.get(g.target) || []).forEach((y) => {
2144
- y.disabled = !g.isIntersecting;
2164
+ p.forEach((v) => {
2165
+ (i.get(v.target) || []).forEach((y) => {
2166
+ y.disabled = !v.isIntersecting;
2145
2167
  });
2146
2168
  });
2147
2169
  }, {
@@ -2150,18 +2172,18 @@ function Ps(e) {
2150
2172
  threshold: 0
2151
2173
  }), t.scenes.forEach((p) => {
2152
2174
  if (p.viewSource) {
2153
- let g = i.get(p.viewSource);
2154
- g || (g = [], i.set(p.viewSource, g), a.observe(p.viewSource)), g.push(p);
2175
+ let v = i.get(p.viewSource);
2176
+ v || (v = [], i.set(p.viewSource, v), a.observe(p.viewSource)), v.push(p);
2155
2177
  }
2156
2178
  }));
2157
- function h({ p, vp: g }) {
2179
+ function h({ p, vp: v }) {
2158
2180
  p = +p.toFixed(1);
2159
- const y = +g.toFixed(4);
2181
+ const y = +v.toFixed(4);
2160
2182
  if (p !== r) {
2161
- for (let v of t.scenes)
2162
- if (!v.disabled) {
2163
- const { start: E, end: $, duration: b } = v, S = qs(p, E, $, b);
2164
- v.effect(v, S, y);
2183
+ for (let g of t.scenes)
2184
+ if (!g.disabled) {
2185
+ const { start: E, end: w, duration: b } = g, S = Fs(p, E, w, b);
2186
+ g.effect(g, S, y);
2165
2187
  }
2166
2188
  r = p;
2167
2189
  }
@@ -2174,16 +2196,16 @@ function Ps(e) {
2174
2196
  destroy: m
2175
2197
  };
2176
2198
  }
2177
- const Ls = {
2199
+ const js = {
2178
2200
  transitionActive: !1,
2179
2201
  transitionFriction: 0.9,
2180
2202
  transitionEpsilon: 1,
2181
2203
  velocityActive: !1,
2182
2204
  velocityMax: 1
2183
2205
  };
2184
- class xs {
2206
+ class zs {
2185
2207
  constructor(t = {}) {
2186
- this.config = _t(t, Ls), this.progress = {
2208
+ this.config = Ft(t, js), this.progress = {
2187
2209
  p: 0,
2188
2210
  prevP: 0,
2189
2211
  vp: 0
@@ -2196,7 +2218,7 @@ class xs {
2196
2218
  this.config.root = n ? window : this.config.root, this.config.contentRoot = this.config.contentRoot || (n ? window.document.body : this.config.root.firstElementChild), this.config.resetProgress = this.config.resetProgress || this.resetProgress.bind(this), this._measure = this.config.measure || (() => {
2197
2219
  const s = this.config.root;
2198
2220
  this.progress.p = this.config.horizontal ? s.scrollX || s.scrollLeft || 0 : s.scrollY || s.scrollTop || 0;
2199
- }), this._trigger = $s(() => {
2221
+ }), this._trigger = Cs(() => {
2200
2222
  this._measure?.(), this.tick(!0);
2201
2223
  });
2202
2224
  }
@@ -2242,7 +2264,7 @@ class xs {
2242
2264
  * Calculate current progress.
2243
2265
  */
2244
2266
  lerp() {
2245
- this.currentProgress.p = ws(this.currentProgress.p, this.progress.p, +(1 - this.config.transitionFriction).toFixed(3), this.config.transitionEpsilon);
2267
+ this.currentProgress.p = Ts(this.currentProgress.p, this.progress.p, +(1 - this.config.transitionFriction).toFixed(3), this.config.transitionEpsilon);
2246
2268
  }
2247
2269
  /**
2248
2270
  * Stop the event and effect, and remove all DOM side-effects.
@@ -2266,7 +2288,7 @@ class xs {
2266
2288
  * Reset registered effect.
2267
2289
  */
2268
2290
  setupEffect() {
2269
- this.removeEffect(), this.effect = Ps(this.config);
2291
+ this.removeEffect(), this.effect = Ns(this.config);
2270
2292
  }
2271
2293
  /**
2272
2294
  * Remove registered effect.
@@ -2275,20 +2297,20 @@ class xs {
2275
2297
  this.effect && this.effect.destroy(), this.effect = null;
2276
2298
  }
2277
2299
  }
2278
- const Oe = /* @__PURE__ */ new WeakMap();
2279
- let At = () => ({});
2280
- function Fs(e) {
2281
- At = e;
2300
+ const qe = /* @__PURE__ */ new WeakMap();
2301
+ let Rt = () => ({});
2302
+ function Hs(e) {
2303
+ Rt = e;
2282
2304
  }
2283
- function Rs(e, t, n, s, { reducedMotion: i, selectorCondition: o }) {
2305
+ function Ds(e, t, n, s, { reducedMotion: i, selectorCondition: o }) {
2284
2306
  if (i || o && !t.matches(o)) return;
2285
2307
  const r = {
2286
2308
  trigger: "view-progress",
2287
2309
  element: e
2288
- }, a = L(n);
2310
+ }, a = F(n);
2289
2311
  let c;
2290
2312
  if ("ViewTimeline" in window) {
2291
- const l = J(
2313
+ const l = te(
2292
2314
  t,
2293
2315
  a,
2294
2316
  r
@@ -2299,16 +2321,16 @@ function Rs(e, t, n, s, { reducedMotion: i, selectorCondition: o }) {
2299
2321
  });
2300
2322
  });
2301
2323
  } else {
2302
- const l = dt(t, a, r);
2324
+ const l = wt(t, a, r);
2303
2325
  if (l) {
2304
- const f = Array.isArray(l) ? l : [l], d = new xs({
2326
+ const f = Array.isArray(l) ? l : [l], d = new zs({
2305
2327
  viewSource: e,
2306
2328
  scenes: f,
2307
2329
  observeViewportEntry: !1,
2308
2330
  observeViewportResize: !1,
2309
2331
  observeSourcesResize: !0,
2310
2332
  root: document.body,
2311
- ...At()
2333
+ ...Rt()
2312
2334
  });
2313
2335
  c = () => {
2314
2336
  d.destroy();
@@ -2321,20 +2343,20 @@ function Rs(e, t, n, s, { reducedMotion: i, selectorCondition: o }) {
2321
2343
  }
2322
2344
  if (!c) return;
2323
2345
  const u = { source: e, target: t, cleanup: c };
2324
- k(Oe, e, u), k(Oe, t, u);
2346
+ k(qe, e, u), k(qe, t, u);
2325
2347
  }
2326
- function Ns(e) {
2327
- te(Oe, e);
2348
+ function Gs(e) {
2349
+ se(qe, e);
2328
2350
  }
2329
- const js = {
2330
- add: Rs,
2331
- remove: Ns,
2332
- registerOptionsGetter: Fs
2351
+ const Ws = {
2352
+ add: Ds,
2353
+ remove: Gs,
2354
+ registerOptionsGetter: Hs
2333
2355
  };
2334
- function Be(e, t, n) {
2356
+ function Je(e, t, n) {
2335
2357
  return Math.min(Math.max(e, n), t);
2336
2358
  }
2337
- function Ue(e) {
2359
+ function et(e) {
2338
2360
  let t = !1;
2339
2361
  return function() {
2340
2362
  if (!t)
@@ -2343,7 +2365,7 @@ function Ue(e) {
2343
2365
  });
2344
2366
  };
2345
2367
  }
2346
- function zs(e) {
2368
+ function Vs(e) {
2347
2369
  let t = e, n = 0, s = 0;
2348
2370
  if (t.offsetParent)
2349
2371
  do
@@ -2356,7 +2378,7 @@ function zs(e) {
2356
2378
  height: e.offsetHeight
2357
2379
  };
2358
2380
  }
2359
- function Hs() {
2381
+ function Ks() {
2360
2382
  const e = window.devicePixelRatio;
2361
2383
  let t = !1;
2362
2384
  if (e === 1)
@@ -2369,7 +2391,7 @@ function Hs() {
2369
2391
  });
2370
2392
  return document.body.dispatchEvent(n), t;
2371
2393
  }
2372
- function Ds() {
2394
+ function Ys() {
2373
2395
  return new Promise((e) => {
2374
2396
  const t = window.scrollY;
2375
2397
  let n = !1, s;
@@ -2388,42 +2410,42 @@ function Ds() {
2388
2410
  i(), window.addEventListener("scroll", o), window.scrollY > 0 && window.scrollBy(0, -1);
2389
2411
  });
2390
2412
  }
2391
- function Gs(e) {
2392
- Ds().then((t) => {
2413
+ function Bs(e) {
2414
+ Ys().then((t) => {
2393
2415
  e.fixRequired = t, t && (window.addEventListener("scroll", e.scrollHandler), e.scrollHandler());
2394
2416
  });
2395
2417
  }
2396
- let ie = 0;
2397
- const ue = /* @__PURE__ */ new Set();
2398
- function Ws() {
2418
+ let ae = 0;
2419
+ const he = /* @__PURE__ */ new Set();
2420
+ function Us() {
2399
2421
  const e = (n) => {
2400
2422
  for (let s of n.changedTouches)
2401
- ue.add(s.identifier);
2423
+ he.add(s.identifier);
2402
2424
  }, t = (n) => {
2403
2425
  for (let s of n.changedTouches)
2404
- ue.delete(s.identifier);
2426
+ he.delete(s.identifier);
2405
2427
  };
2406
2428
  return document.addEventListener("touchstart", e, { passive: !0 }), document.addEventListener("touchend", t, { passive: !0 }), function() {
2407
- ue.clear(), document.removeEventListener("touchstart", e), document.removeEventListener("touchend", t);
2429
+ he.clear(), document.removeEventListener("touchstart", e), document.removeEventListener("touchend", t);
2408
2430
  };
2409
2431
  }
2410
- function Vs(e, t) {
2432
+ function Qs(e, t) {
2411
2433
  if ("onscrollend" in window)
2412
2434
  return e.addEventListener("scrollend", t), function() {
2413
2435
  e.removeEventListener("scrollend", t);
2414
2436
  };
2415
2437
  let n = 0, s;
2416
- ie || (s = Ws()), ie += 1;
2438
+ ae || (s = Us()), ae += 1;
2417
2439
  function i(o) {
2418
2440
  clearTimeout(n), n = setTimeout(() => {
2419
- ue.size ? setTimeout(i, 100) : (t(o), n = 0);
2441
+ he.size ? setTimeout(i, 100) : (t(o), n = 0);
2420
2442
  }, 100);
2421
2443
  }
2422
2444
  return e.addEventListener("scroll", i), function() {
2423
- e.removeEventListener("scroll", i), ie -= 1, ie || s();
2445
+ e.removeEventListener("scroll", i), ae -= 1, ae || s();
2424
2446
  };
2425
2447
  }
2426
- function Ks(e, t, n) {
2448
+ function Xs(e, t, n) {
2427
2449
  return {
2428
2450
  x(s) {
2429
2451
  const i = e.left - n.x + e.width / 2, o = i >= t.width / 2, r = (o ? i : t.width - i) * 2, a = o ? 0 : i - r / 2;
@@ -2435,13 +2457,13 @@ function Ks(e, t, n) {
2435
2457
  }
2436
2458
  };
2437
2459
  }
2438
- function Ys(e, t) {
2460
+ function Zs(e, t) {
2439
2461
  this.x = window.scrollX, this.y = window.scrollY, requestAnimationFrame(() => e && e(t));
2440
2462
  }
2441
- function Bs(e) {
2463
+ function Js(e) {
2442
2464
  e.rect.width = window.document.documentElement.clientWidth, e.rect.height = window.document.documentElement.clientHeight;
2443
2465
  }
2444
- function Us(e) {
2466
+ function ei(e) {
2445
2467
  const t = new ResizeObserver((n) => {
2446
2468
  n.forEach((s) => {
2447
2469
  e.rect.width = s.borderBoxSize[0].inlineSize, e.rect.height = s.borderBoxSize[0].blockSize;
@@ -2449,19 +2471,19 @@ function Us(e) {
2449
2471
  });
2450
2472
  return t.observe(e.root, { box: "border-box" }), t;
2451
2473
  }
2452
- function Qs(e) {
2474
+ function ti(e) {
2453
2475
  let t = !1, n = { x: e.rect.width / 2, y: e.rect.height / 2, vx: 0, vy: 0 }, s, i, o, r, a;
2454
2476
  const c = { x: 0, y: 0 };
2455
2477
  e.scenes.forEach((l) => {
2456
- l.target && l.centeredToTarget && (l.transform = Ks(zs(l.target), e.rect, c), t = !0), e.root ? i = Us(e) : (o = Bs.bind(null, e), window.addEventListener("resize", o));
2478
+ l.target && l.centeredToTarget && (l.transform = Xs(Vs(l.target), e.rect, c), t = !0), e.root ? i = ei(e) : (o = Js.bind(null, e), window.addEventListener("resize", o));
2457
2479
  }), s = function(l) {
2458
2480
  for (let f of e.scenes)
2459
2481
  if (!f.disabled) {
2460
- const d = f.transform?.x(l.x) || l.x / e.rect.width, h = f.transform?.y(l.y) || l.y / e.rect.height, m = +Be(0, 1, d).toPrecision(4), p = +Be(0, 1, h).toPrecision(4), g = { x: l.vx, y: l.vy };
2461
- e.allowActiveEvent && (l.active = d <= 1 && h <= 1 && d >= 0 && h >= 0), f.effect(f, { x: m, y: p }, g, l.active);
2482
+ const d = f.transform?.x(l.x) || l.x / e.rect.width, h = f.transform?.y(l.y) || l.y / e.rect.height, m = +Je(0, 1, d).toPrecision(4), p = +Je(0, 1, h).toPrecision(4), v = { x: l.vx, y: l.vy };
2483
+ e.allowActiveEvent && (l.active = d <= 1 && h <= 1 && d >= 0 && h >= 0), f.effect(f, { x: m, y: p }, v, l.active);
2462
2484
  }
2463
2485
  Object.assign(n, l);
2464
- }, t && (r = Ys.bind(c, s, n), a = Vs(document, r));
2486
+ }, t && (r = Zs.bind(c, s, n), a = Qs(document, r));
2465
2487
  function u() {
2466
2488
  e.scenes.forEach((l) => l.destroy?.()), a?.(), i ? (i.disconnect(), i = null) : (window.removeEventListener("resize", o), o = null), s = null, n = null;
2467
2489
  }
@@ -2470,17 +2492,17 @@ function Qs(e) {
2470
2492
  destroy: u
2471
2493
  };
2472
2494
  }
2473
- const Xs = 1e3 / 60 * 3;
2474
- let oe;
2475
- function Zs() {
2476
- z.x = window.scrollX, z.y = window.scrollY;
2495
+ const ni = 1e3 / 60 * 3;
2496
+ let ce;
2497
+ function si() {
2498
+ D.x = window.scrollX, D.y = window.scrollY;
2477
2499
  }
2478
- const z = { x: 0, y: 0, scrollHandler: Zs, fixRequired: void 0 };
2479
- class Js {
2500
+ const D = { x: 0, y: 0, scrollHandler: si, fixRequired: void 0 };
2501
+ class ii {
2480
2502
  constructor(t = {}) {
2481
2503
  this.config = { ...t }, this.effect = null, this._nextTick = null, this._nextTransitionTick = null, this._startTime = 0;
2482
2504
  let n;
2483
- this.config.transitionDuration ? n = this.config.noThrottle ? () => this.transition() : Ue(() => this.transition()) : n = this.config.noThrottle ? () => (this.tick(), null) : Ue(() => {
2505
+ this.config.transitionDuration ? n = this.config.noThrottle ? () => this.transition() : et(() => this.transition()) : n = this.config.noThrottle ? () => (this.tick(), null) : et(() => {
2484
2506
  this.tick();
2485
2507
  }), this.config.rect = this.config.root ? {
2486
2508
  width: this.config.root.offsetWidth,
@@ -2503,15 +2525,15 @@ class Js {
2503
2525
  }, this._pointerEnter = () => {
2504
2526
  this.progress.active = !0, this._nextTick = n();
2505
2527
  }, this.config.root) {
2506
- oe = typeof oe == "boolean" ? oe : Hs();
2507
- const i = oe ? window.devicePixelRatio : 1;
2508
- typeof z.fixRequired > "u" && Gs(z), this._measure = (o) => {
2528
+ ce = typeof ce == "boolean" ? ce : Ks();
2529
+ const i = ce ? window.devicePixelRatio : 1;
2530
+ typeof D.fixRequired > "u" && Bs(D), this._measure = (o) => {
2509
2531
  if (o.target !== this.config.root) {
2510
2532
  const r = new PointerEvent("pointermove", {
2511
2533
  bubbles: !0,
2512
2534
  cancelable: !0,
2513
- clientX: o.x * i + z.x,
2514
- clientY: o.y * i + z.y
2535
+ clientX: o.x * i + D.x,
2536
+ clientY: o.y * i + D.y
2515
2537
  });
2516
2538
  o.stopPropagation(), this.config.root.dispatchEvent(r);
2517
2539
  } else
@@ -2548,7 +2570,7 @@ class Js {
2548
2570
  let i = !1;
2549
2571
  const o = (r) => {
2550
2572
  const a = (r - this._startTime) / t, c = n(Math.min(1, a));
2551
- i && (this.progress.vx = 0, this.progress.vy = 0, i = !1), this.currentProgress = Object.entries(this.progress).reduce((u, [l, f]) => (l === "active" ? u[l] = f : u[l] = this.previousProgress[l] + (f - this.previousProgress[l]) * c, u), this.currentProgress || {}), a < 1 && (this._nextTransitionTick = requestAnimationFrame(o), i = r - this._startTime > Xs), this.effect.tick(this.currentProgress);
2573
+ i && (this.progress.vx = 0, this.progress.vy = 0, i = !1), this.currentProgress = Object.entries(this.progress).reduce((u, [l, f]) => (l === "active" ? u[l] = f : u[l] = this.previousProgress[l] + (f - this.previousProgress[l]) * c, u), this.currentProgress || {}), a < 1 && (this._nextTransitionTick = requestAnimationFrame(o), i = r - this._startTime > ni), this.effect.tick(this.currentProgress);
2552
2574
  };
2553
2575
  return this._startTime ? (this._nextTransitionTick && cancelAnimationFrame(this._nextTransitionTick), Object.assign(this.previousProgress, this.currentProgress), this._startTime = s, o(s)) : this._startTime = s, this._nextTransitionTick;
2554
2576
  }
@@ -2577,7 +2599,7 @@ class Js {
2577
2599
  * Reset registered effect.
2578
2600
  */
2579
2601
  setupEffect() {
2580
- this.removeEffect(), this.effect = Qs(this.config);
2602
+ this.removeEffect(), this.effect = ti(this.config);
2581
2603
  }
2582
2604
  /**
2583
2605
  * Remove registered effect.
@@ -2586,50 +2608,50 @@ class Js {
2586
2608
  this.effect && this.effect.destroy(), this.effect = null;
2587
2609
  }
2588
2610
  }
2589
- const _e = /* @__PURE__ */ new WeakMap();
2590
- let kt = () => ({});
2591
- function ei(e) {
2592
- kt = e;
2611
+ const Pe = /* @__PURE__ */ new WeakMap();
2612
+ let Nt = () => ({});
2613
+ function oi(e) {
2614
+ Nt = e;
2593
2615
  }
2594
- function ti(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o }) {
2616
+ function ri(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o }) {
2595
2617
  if (i || o && !t.matches(o)) return;
2596
2618
  const r = {
2597
2619
  trigger: "pointer-move",
2598
2620
  element: e,
2599
2621
  axis: s.axis ?? "y"
2600
- }, a = dt(t, L(n), r);
2622
+ }, a = wt(t, F(n), r);
2601
2623
  if (a) {
2602
- const c = Array.isArray(a) ? a : [a], u = new Js({
2624
+ const c = Array.isArray(a) ? a : [a], u = new ii({
2603
2625
  root: s.hitArea === "self" ? e : void 0,
2604
2626
  scenes: c,
2605
- ...kt()
2627
+ ...Nt()
2606
2628
  }), f = { source: e, target: t, cleanup: () => {
2607
2629
  u.destroy();
2608
2630
  } };
2609
- k(_e, e, f), k(_e, t, f), Promise.all(
2631
+ k(Pe, e, f), k(Pe, t, f), Promise.all(
2610
2632
  c.map((d) => d.ready || Promise.resolve())
2611
2633
  ).then(() => {
2612
2634
  u.start();
2613
2635
  });
2614
2636
  }
2615
2637
  }
2616
- function ni(e) {
2617
- te(_e, e);
2638
+ function ai(e) {
2639
+ se(Pe, e);
2618
2640
  }
2619
- const si = {
2620
- add: ti,
2621
- remove: ni,
2622
- registerOptionsGetter: ei
2623
- }, Ae = /* @__PURE__ */ new WeakMap();
2624
- function ii(e, t, n, s, {
2641
+ const ci = {
2642
+ add: ri,
2643
+ remove: ai,
2644
+ registerOptionsGetter: oi
2645
+ }, Le = /* @__PURE__ */ new WeakMap();
2646
+ function li(e, t, n, s, {
2625
2647
  reducedMotion: i,
2626
2648
  selectorCondition: o,
2627
2649
  animation: r,
2628
2650
  sourceAnimationOptions: a
2629
2651
  }) {
2630
- const c = r || J(
2652
+ const c = r || te(
2631
2653
  t,
2632
- L(n),
2654
+ F(n),
2633
2655
  void 0,
2634
2656
  i
2635
2657
  );
@@ -2637,30 +2659,30 @@ function ii(e, t, n, s, {
2637
2659
  return;
2638
2660
  const { effectId: u } = s, l = (h) => {
2639
2661
  if (o && !t.matches(o)) return;
2640
- const m = h.animationName, p = h.detail?.effectId, g = a ? ft(e, a) : null;
2641
- if (g) {
2642
- if (g.playState === "running" || m && !g.hasAnimationName(m))
2662
+ const m = h.animationName, p = h.detail?.effectId, v = a ? Et(e, a) : null;
2663
+ if (v) {
2664
+ if (v.playState === "running" || m && !v.hasAnimationName(m))
2643
2665
  return;
2644
- if (p && p !== u && !g.hasAnimationId(p))
2666
+ if (p && p !== u && !v.hasAnimationId(p))
2645
2667
  return;
2646
2668
  }
2647
2669
  c.play();
2648
2670
  }, d = { source: e, target: t, cleanup: () => {
2649
2671
  c.cancel(), e.removeEventListener("animationend", l);
2650
2672
  } };
2651
- k(Ae, e, d), k(Ae, t, d), e.addEventListener("animationend", l);
2673
+ k(Le, e, d), k(Le, t, d), e.addEventListener("animationend", l);
2652
2674
  }
2653
- function oi(e) {
2654
- te(Ae, e);
2675
+ function ui(e) {
2676
+ se(Le, e);
2655
2677
  }
2656
- const ri = {
2657
- add: ii,
2658
- remove: oi
2678
+ const fi = {
2679
+ add: li,
2680
+ remove: ui
2659
2681
  };
2660
- function ai(e, t, n = !1, s, i, o) {
2661
- const r = o || J(
2682
+ function di(e, t, n = !1, s, i, o) {
2683
+ const r = o || te(
2662
2684
  e,
2663
- L(t),
2685
+ F(t),
2664
2686
  void 0,
2665
2687
  n
2666
2688
  );
@@ -2677,7 +2699,7 @@ function ai(e, t, n = !1, s, i, o) {
2677
2699
  else {
2678
2700
  if (r.progress(0), delete e.dataset.interactEnter, r.isCSS) {
2679
2701
  const h = () => {
2680
- _.mutate(() => {
2702
+ O.mutate(() => {
2681
2703
  e.dataset.interactEnter = "done";
2682
2704
  });
2683
2705
  };
@@ -2687,12 +2709,12 @@ function ai(e, t, n = !1, s, i, o) {
2687
2709
  }
2688
2710
  return;
2689
2711
  }
2690
- d && (c === "alternate" ? r.reverse() : c === "repeat" ? (r.cancel(), _.mutate(() => {
2712
+ d && (c === "alternate" ? r.reverse() : c === "repeat" ? (r.cancel(), O.mutate(() => {
2691
2713
  delete e.dataset.interactEnter;
2692
2714
  })) : c === "state" && r.playState === "running" && r.pause());
2693
2715
  };
2694
2716
  }
2695
- function ci(e, t, {
2717
+ function hi(e, t, {
2696
2718
  effectId: n,
2697
2719
  listContainer: s,
2698
2720
  listItemSelector: i,
@@ -2707,70 +2729,70 @@ function ci(e, t, {
2707
2729
  h ? t.toggleEffect(n, u, d) : (m && t.toggleEffect(n, l ? "add" : u, d), p && l && t.toggleEffect(n, "remove", d));
2708
2730
  };
2709
2731
  }
2710
- const ke = /* @__PURE__ */ new WeakMap();
2711
- function Qe(e, t) {
2732
+ const xe = /* @__PURE__ */ new WeakMap();
2733
+ function tt(e, t) {
2712
2734
  return (n) => {
2713
2735
  const s = n;
2714
2736
  e.contains(s.relatedTarget) || t(s);
2715
2737
  };
2716
2738
  }
2717
- function li(e) {
2739
+ function mi(e) {
2718
2740
  return (t) => {
2719
2741
  const n = t;
2720
2742
  n.pointerType && e(n);
2721
2743
  };
2722
2744
  }
2723
- function ui(e) {
2745
+ function pi(e) {
2724
2746
  return (t) => {
2725
2747
  const n = t;
2726
2748
  n.code === "Space" ? (n.preventDefault(), e(n)) : n.code === "Enter" && e(n);
2727
2749
  };
2728
2750
  }
2729
- const fi = {
2730
- focusin: (e, t) => Qe(e, t),
2731
- focusout: (e, t) => Qe(e, t),
2732
- click: (e, t) => li(t),
2733
- keydown: (e, t) => ui(t)
2751
+ const gi = {
2752
+ focusin: (e, t) => tt(e, t),
2753
+ focusout: (e, t) => tt(e, t),
2754
+ click: (e, t) => mi(t),
2755
+ keydown: (e, t) => pi(t)
2734
2756
  };
2735
- function di(e, t, n) {
2736
- const s = fi[e];
2757
+ function vi(e, t, n) {
2758
+ const s = gi[e];
2737
2759
  return s ? s(t, n) : (i) => n(i);
2738
2760
  }
2739
- function hi(e) {
2761
+ function yi(e) {
2740
2762
  return typeof e == "object" && !Array.isArray(e) && ("enter" in e || "leave" in e);
2741
2763
  }
2742
- function mi(e) {
2764
+ function Ei(e) {
2743
2765
  if (typeof e == "string")
2744
2766
  return { toggle: [e] };
2745
2767
  if (Array.isArray(e))
2746
2768
  return { toggle: [...e] };
2747
- if (hi(e)) {
2769
+ if (yi(e)) {
2748
2770
  const t = e.enter ? [...e.enter] : [], n = e.leave ? [...e.leave] : [];
2749
2771
  return { enter: t, leave: n };
2750
2772
  }
2751
2773
  return {};
2752
2774
  }
2753
- function pi(e) {
2775
+ function wi(e) {
2754
2776
  return !!(e.enter?.length || e.leave?.length);
2755
2777
  }
2756
- function gi(e) {
2757
- return pi(e) ? { enter: e.enter ?? [], leave: e.leave ?? [] } : void 0;
2778
+ function $i(e) {
2779
+ return wi(e) ? { enter: e.enter ?? [], leave: e.leave ?? [] } : void 0;
2758
2780
  }
2759
- function vi(e, t, n, s, {
2781
+ function bi(e, t, n, s, {
2760
2782
  reducedMotion: i,
2761
2783
  targetController: o,
2762
2784
  selectorCondition: r,
2763
2785
  animation: a
2764
2786
  }) {
2765
- const c = mi(s.eventConfig), u = n.transition || n.transitionProperties, l = gi(c);
2787
+ const c = Ei(s.eventConfig), u = n.transition || n.transitionProperties, l = $i(c);
2766
2788
  let f, d = !1;
2767
- if (u ? f = ci(
2789
+ if (u ? f = hi(
2768
2790
  t,
2769
2791
  o,
2770
2792
  n,
2771
2793
  r,
2772
2794
  l
2773
- ) : (f = ai(
2795
+ ) : (f = di(
2774
2796
  t,
2775
2797
  n,
2776
2798
  i,
@@ -2780,20 +2802,20 @@ function vi(e, t, n, s, {
2780
2802
  ), d = n.triggerType === "once"), !f)
2781
2803
  return;
2782
2804
  const h = f, m = new AbortController();
2783
- function p(v, E, $) {
2784
- const b = di(E, e, h);
2785
- v.addEventListener(E, b, { ...$, signal: m.signal });
2805
+ function p(g, E, w) {
2806
+ const b = vi(E, e, h);
2807
+ g.addEventListener(E, b, { ...w, signal: m.signal });
2786
2808
  }
2787
2809
  const y = { source: e, target: t, cleanup: () => {
2788
2810
  m.abort();
2789
2811
  } };
2790
- if (k(ke, e, y), k(ke, t, y), l) {
2791
- const v = c.enter, E = c.leave;
2792
- v.forEach((S) => {
2812
+ if (k(xe, e, y), k(xe, t, y), l) {
2813
+ const g = c.enter, E = c.leave;
2814
+ g.forEach((S) => {
2793
2815
  S === "focusin" && (e.tabIndex = 0), p(e, S, { passive: !0, once: d });
2794
2816
  });
2795
- const $ = !n.stateAction || n.stateAction === "toggle";
2796
- (u ? $ : n.triggerType !== "once") && E.forEach((S) => {
2817
+ const w = !n.stateAction || n.stateAction === "toggle";
2818
+ (u ? w : n.triggerType !== "once") && E.forEach((S) => {
2797
2819
  if (S === "focusout") {
2798
2820
  p(e, S, { once: d });
2799
2821
  return;
@@ -2805,13 +2827,13 @@ function vi(e, t, n, s, {
2805
2827
  p(e, E, { once: d, passive: E !== "keydown" });
2806
2828
  });
2807
2829
  }
2808
- function yi(e) {
2809
- te(ke, e);
2830
+ function Si(e) {
2831
+ se(xe, e);
2810
2832
  }
2811
- const B = {
2812
- add: vi,
2813
- remove: yi
2814
- }, qe = {
2833
+ const U = {
2834
+ add: bi,
2835
+ remove: Si
2836
+ }, Fe = {
2815
2837
  click: ["click"],
2816
2838
  activate: ["click", "keydown"],
2817
2839
  hover: { enter: ["mouseenter"], leave: ["mouseleave"] },
@@ -2819,43 +2841,43 @@ const B = {
2819
2841
  enter: ["mouseenter", "focusin"],
2820
2842
  leave: ["mouseleave", "focusout"]
2821
2843
  }
2822
- }, Xe = {
2823
- click: qe.activate,
2824
- hover: qe.interest
2844
+ }, nt = {
2845
+ click: Fe.activate,
2846
+ hover: Fe.interest
2825
2847
  };
2826
- function re(e) {
2827
- const t = qe[e];
2848
+ function le(e) {
2849
+ const t = Fe[e];
2828
2850
  return (n, s, i, o, r) => {
2829
- const a = r?.allowA11yTriggers && e in Xe ? Xe[e] : t;
2830
- B.add(n, s, i, { eventConfig: a }, r ?? {});
2851
+ const a = r?.allowA11yTriggers && e in nt ? nt[e] : t;
2852
+ U.add(n, s, i, { eventConfig: a }, r ?? {});
2831
2853
  };
2832
2854
  }
2833
- const H = {
2834
- viewEnter: Es,
2855
+ const G = {
2856
+ viewEnter: Is,
2835
2857
  hover: {
2836
- add: re("hover"),
2837
- remove: B.remove
2858
+ add: le("hover"),
2859
+ remove: U.remove
2838
2860
  },
2839
2861
  click: {
2840
- add: re("click"),
2841
- remove: B.remove
2862
+ add: le("click"),
2863
+ remove: U.remove
2842
2864
  },
2843
- animationEnd: ri,
2844
- viewProgress: js,
2845
- pointerMove: si,
2865
+ animationEnd: fi,
2866
+ viewProgress: Ws,
2867
+ pointerMove: ci,
2846
2868
  activate: {
2847
- add: re("activate"),
2848
- remove: B.remove
2869
+ add: le("activate"),
2870
+ remove: U.remove
2849
2871
  },
2850
2872
  interest: {
2851
- add: re("interest"),
2852
- remove: B.remove
2873
+ add: le("interest"),
2874
+ remove: U.remove
2853
2875
  }
2854
2876
  };
2855
- function Ei(e) {
2877
+ function Ii(e) {
2856
2878
  return e.replace(/\[[^\]]+]/g, "[]");
2857
2879
  }
2858
- class w {
2880
+ class $ {
2859
2881
  static defineInteractElement;
2860
2882
  dataCache;
2861
2883
  addedInteractions;
@@ -2875,12 +2897,12 @@ class w {
2875
2897
  init(t, n) {
2876
2898
  if (typeof window > "u" || !window.customElements)
2877
2899
  return;
2878
- const s = n?.useCustomElement ?? !!w.defineInteractElement;
2879
- this.dataCache = bi(t, s);
2880
- const i = w.defineInteractElement?.();
2900
+ const s = n?.useCustomElement ?? !!$.defineInteractElement;
2901
+ this.dataCache = Oi(t, s);
2902
+ const i = $.defineInteractElement?.();
2881
2903
  s && i === !1 ? document.querySelectorAll("interact-element").forEach((o) => {
2882
2904
  o.connect();
2883
- }) : w.controllerCache.forEach(
2905
+ }) : $.controllerCache.forEach(
2884
2906
  (o, r) => o.connect(r)
2885
2907
  );
2886
2908
  }
@@ -2889,20 +2911,20 @@ class w {
2889
2911
  n.disconnect({ removeFromCache: t });
2890
2912
  for (const [, n] of this.mediaQueryListeners.entries())
2891
2913
  n.mql.removeEventListener("change", n.handler);
2892
- this.mediaQueryListeners.clear(), this.addedInteractions = {}, this.listInteractionsCache = {}, this.controllers.clear(), this.dataCache = { effects: {}, sequences: {}, conditions: {}, interactions: {} }, w.instances.splice(w.instances.indexOf(this), 1);
2914
+ this.mediaQueryListeners.clear(), this.addedInteractions = {}, this.listInteractionsCache = {}, this.controllers.clear(), this.dataCache = { effects: {}, sequences: {}, conditions: {}, interactions: {} }, $.instances.splice($.instances.indexOf(this), 1);
2893
2915
  }
2894
2916
  setController(t, n) {
2895
- this.controllers.add(n), w.setController(t, n);
2917
+ this.controllers.add(n), $.setController(t, n);
2896
2918
  }
2897
2919
  deleteController(t, n = !1) {
2898
- const s = w.controllerCache.get(t);
2899
- this.clearInteractionStateForKey(t), this.clearMediaQueryListenersForKey(t), s && n && (this.controllers.delete(s), w.deleteController(t));
2920
+ const s = $.controllerCache.get(t);
2921
+ this.clearInteractionStateForKey(t), this.clearMediaQueryListenersForKey(t), s && n && (this.controllers.delete(s), $.deleteController(t));
2900
2922
  }
2901
2923
  has(t) {
2902
2924
  return !!this.get(t);
2903
2925
  }
2904
2926
  get(t) {
2905
- const n = Ei(t);
2927
+ const n = Ii(t);
2906
2928
  return this.dataCache.interactions[n];
2907
2929
  }
2908
2930
  clearMediaQueryListenersForKey(t) {
@@ -2915,8 +2937,8 @@ class w {
2915
2937
  delete this.addedInteractions[o];
2916
2938
  });
2917
2939
  const s = `${t}::seq::`;
2918
- for (const i of w.sequenceCache.keys())
2919
- i.startsWith(s) && (w.sequenceCache.delete(i), delete this.addedInteractions[i]);
2940
+ for (const i of $.sequenceCache.keys())
2941
+ i.startsWith(s) && ($.sequenceCache.delete(i), delete this.addedInteractions[i]);
2920
2942
  }
2921
2943
  setupMediaQueryListener(t, n, s, i) {
2922
2944
  this.mediaQueryListeners.has(t) || (n.addEventListener("change", i), this.mediaQueryListeners.set(t, {
@@ -2926,92 +2948,92 @@ class w {
2926
2948
  }));
2927
2949
  }
2928
2950
  static create(t, n) {
2929
- const s = new w();
2930
- return w.instances.push(s), s.init(t, n), s;
2951
+ const s = new $();
2952
+ return $.instances.push(s), s.init(t, n), s;
2931
2953
  }
2932
2954
  static destroy() {
2933
- w.controllerCache.forEach((t) => {
2955
+ $.controllerCache.forEach((t) => {
2934
2956
  t.disconnect();
2935
- }), w.instances.length = 0, w.controllerCache.clear(), w.sequenceCache.clear(), w.elementSequenceMap = /* @__PURE__ */ new WeakMap();
2957
+ }), $.instances.length = 0, $.controllerCache.clear(), $.sequenceCache.clear(), $.elementSequenceMap = /* @__PURE__ */ new WeakMap();
2936
2958
  }
2937
2959
  static setup(t) {
2938
- t.scrollOptionsGetter && H.viewProgress.registerOptionsGetter?.(
2960
+ t.scrollOptionsGetter && G.viewProgress.registerOptionsGetter?.(
2939
2961
  t.scrollOptionsGetter
2940
- ), t.pointerOptionsGetter && H.pointerMove.registerOptionsGetter?.(
2962
+ ), t.pointerOptionsGetter && G.pointerMove.registerOptionsGetter?.(
2941
2963
  t.pointerOptionsGetter
2942
- ), t.viewEnter && H.viewEnter.setOptions(
2964
+ ), t.viewEnter && G.viewEnter.setOptions(
2943
2965
  t.viewEnter
2944
- ), t.allowA11yTriggers !== void 0 && (w.allowA11yTriggers = t.allowA11yTriggers);
2966
+ ), t.allowA11yTriggers !== void 0 && ($.allowA11yTriggers = t.allowA11yTriggers);
2945
2967
  }
2946
2968
  static getInstance(t) {
2947
- const n = w.instances.find((s) => s.has(t));
2969
+ const n = $.instances.find((s) => s.has(t));
2948
2970
  return n || console.warn(`Interact: Instance for key "${t}" not found`), n;
2949
2971
  }
2950
2972
  static getController(t) {
2951
- const n = t ? w.controllerCache.get(t) : void 0;
2973
+ const n = t ? $.controllerCache.get(t) : void 0;
2952
2974
  return n || console.warn(`Interact: Controller for key "${t}" not found`), n;
2953
2975
  }
2954
2976
  static setController(t, n) {
2955
- w.controllerCache.set(t, n);
2977
+ $.controllerCache.set(t, n);
2956
2978
  }
2957
2979
  static deleteController(t) {
2958
- w.controllerCache.delete(t);
2980
+ $.controllerCache.delete(t);
2959
2981
  }
2960
- static registerEffects = _n;
2961
- static getRegisteredEffect = Le;
2982
+ static registerEffects = xn;
2983
+ static getRegisteredEffect = je;
2962
2984
  /**
2963
2985
  * Registers a plugin under a name. When the config carries a plugin field (e.g. `$splitText`) with a matching key
2964
2986
  * (on an interaction or effect), Interact invokes the plugin with the field's value and a
2965
2987
  * context. Interact is agnostic to what the plugin does — see the `InteractPlugin` type.
2966
2988
  */
2967
2989
  static use(t, n) {
2968
- w.plugins.set(t, n);
2990
+ $.plugins.set(t, n);
2969
2991
  }
2970
2992
  static getPlugin(t) {
2971
- return w.plugins.get(t);
2993
+ return $.plugins.get(t);
2972
2994
  }
2973
2995
  static getPluginsNames() {
2974
- return new Set(w.plugins.keys());
2996
+ return new Set($.plugins.keys());
2975
2997
  }
2976
2998
  static getSequence(t, n, s, i) {
2977
- const o = w.sequenceCache.get(t);
2999
+ const o = $.sequenceCache.get(t);
2978
3000
  if (o) return o;
2979
- const r = Nn(n, s, i);
2980
- return w.sequenceCache.set(t, r), w._registerSequenceElements(s, r), r;
3001
+ const r = Gn(n, s, i);
3002
+ return $.sequenceCache.set(t, r), $._registerSequenceElements(s, r), r;
2981
3003
  }
2982
3004
  static addToSequence(t, n, s, i) {
2983
- const o = w.sequenceCache.get(t);
3005
+ const o = $.sequenceCache.get(t);
2984
3006
  if (!o) return !1;
2985
- const a = ht(n, i).map((c, u) => ({
3007
+ const a = $t(n, i).map((c, u) => ({
2986
3008
  index: s[u] ?? o.animationGroups.length,
2987
3009
  group: c
2988
3010
  }));
2989
- return o.addGroups(a), w._registerSequenceElements(n, o), !0;
3011
+ return o.addGroups(a), $._registerSequenceElements(n, o), !0;
2990
3012
  }
2991
3013
  static _registerSequenceElements(t, n) {
2992
3014
  for (const { target: s } of t) {
2993
3015
  const i = Array.isArray(s) ? s : s instanceof HTMLElement ? [s] : [];
2994
3016
  for (const o of i) {
2995
- let r = w.elementSequenceMap.get(o);
2996
- r || (r = /* @__PURE__ */ new Set(), w.elementSequenceMap.set(o, r)), r.add(n);
3017
+ let r = $.elementSequenceMap.get(o);
3018
+ r || (r = /* @__PURE__ */ new Set(), $.elementSequenceMap.set(o, r)), r.add(n);
2997
3019
  }
2998
3020
  }
2999
3021
  }
3000
3022
  static removeFromSequences(t) {
3001
3023
  for (const n of t) {
3002
- const s = w.elementSequenceMap.get(n);
3024
+ const s = $.elementSequenceMap.get(n);
3003
3025
  if (s) {
3004
3026
  for (const i of s)
3005
3027
  i.removeGroups(
3006
3028
  (o) => o.animations.some((r) => r.effect?.target === n)
3007
3029
  );
3008
- w.elementSequenceMap.delete(n);
3030
+ $.elementSequenceMap.delete(n);
3009
3031
  }
3010
3032
  }
3011
3033
  }
3012
3034
  }
3013
- let wi = 0;
3014
- function D(e, {
3035
+ let Ti = 0;
3036
+ function W(e, {
3015
3037
  asCombinator: t = !1,
3016
3038
  addItemFilter: n = !1,
3017
3039
  useFirstChild: s = !1
@@ -3023,10 +3045,10 @@ function D(e, {
3023
3045
  return e.selector;
3024
3046
  return s ? t ? "> :first-child" : ":scope > :first-child" : "";
3025
3047
  }
3026
- function Ze(e) {
3048
+ function st(e) {
3027
3049
  return "sequenceId" in e && !("effects" in e);
3028
3050
  }
3029
- function $e(e, t) {
3051
+ function Ce(e, t) {
3030
3052
  return e[t] || (e[t] = {
3031
3053
  triggers: [],
3032
3054
  effects: {},
@@ -3035,7 +3057,7 @@ function $e(e, t) {
3035
3057
  selectors: /* @__PURE__ */ new Set()
3036
3058
  }), e[t];
3037
3059
  }
3038
- function $i(e, t, n) {
3060
+ function Ci(e, t, n) {
3039
3061
  const { effects: s = [] } = e;
3040
3062
  return s.some((i, o) => n.has(t(o))) ? {
3041
3063
  ...e,
@@ -3045,66 +3067,66 @@ function $i(e, t, n) {
3045
3067
  })
3046
3068
  } : e;
3047
3069
  }
3048
- function bi(e, t = !1) {
3049
- const { effects: n = {}, sequences: s = {}, conditions: i = {} } = e, o = {}, r = e.interactions ? It(e) : /* @__PURE__ */ new Map();
3070
+ function Oi(e, t = !1) {
3071
+ const { effects: n = {}, sequences: s = {}, conditions: i = {} } = e, o = {}, r = e.interactions ? qt(e) : /* @__PURE__ */ new Map();
3050
3072
  return e.interactions?.forEach((a, c) => {
3051
- const u = a.key, l = ++wi, { effects: f, sequences: d, ...h } = a;
3073
+ const u = a.key, l = ++Ti, { effects: f, sequences: d, ...h } = a;
3052
3074
  if (!u) {
3053
3075
  console.error(`Interaction ${l} is missing a key for source element.`);
3054
3076
  return;
3055
3077
  }
3056
- $e(o, u);
3078
+ Ce(o, u);
3057
3079
  const m = f ? Array.from(f) : [];
3058
3080
  m.reverse();
3059
- const p = d?.map((v, E) => {
3060
- if (Ze(v)) {
3061
- const b = s[v.sequenceId];
3062
- return b ? { ...b, ...v } : (console.warn(`Interact: Sequence "${v.sequenceId}" not found in config`), v);
3081
+ const p = d?.map((g, E) => {
3082
+ if (st(g)) {
3083
+ const b = s[g.sequenceId];
3084
+ return b ? { ...b, ...g } : (console.warn(`Interact: Sequence "${g.sequenceId}" not found in config`), g);
3063
3085
  }
3064
- const $ = v;
3065
- return $.sequenceId || ($.sequenceId = `seq-${c}-${E}`), $;
3066
- }), g = {
3086
+ const w = g;
3087
+ return w.sequenceId || (w.sequenceId = `seq-${c}-${E}`), w;
3088
+ }), v = {
3067
3089
  ...h,
3068
3090
  effects: m.length > 0 ? m : void 0,
3069
3091
  sequences: p?.map(
3070
- (v, E) => $i(v, ($) => de(c, $, E), r)
3092
+ (g, E) => Ci(g, (w) => pe(c, w, E), r)
3071
3093
  )
3072
3094
  };
3073
- o[u].triggers.push(g), o[u].selectors.add(
3074
- D(g, { useFirstChild: t })
3095
+ o[u].triggers.push(v), o[u].selectors.add(
3096
+ W(v, { useFirstChild: t })
3075
3097
  );
3076
- const y = g.listContainer;
3077
- m.forEach((v, E) => {
3078
- const $ = v.effectId ? n[v.effectId] : void 0;
3079
- let b = v.key || $?.key;
3098
+ const y = v.listContainer;
3099
+ m.forEach((g, E) => {
3100
+ const w = g.effectId ? n[g.effectId] : void 0;
3101
+ let b = g.key || w?.key;
3080
3102
  const S = m.length - 1 - E;
3081
- v.effectId || (v.effectId = `eff-${c}-${S}`);
3082
- const C = r.get(de(c, S));
3083
- if (C && (v.suffix = C), b = b || u, v.key = b, y && v.listContainer && (b !== u || v.listContainer !== y))
3103
+ g.effectId || (g.effectId = `eff-${c}-${S}`);
3104
+ const T = r.get(pe(c, S));
3105
+ if (T && (g.suffix = T), b = b || u, g.key = b, y && g.listContainer && (b !== u || g.listContainer !== y))
3084
3106
  return;
3085
- const O = G({ ...$, ...v, key: b }), I = `${u}::${O}::${l}`;
3086
- if (v.interactionId = I, o[u].interactionIds.add(I), b === u)
3107
+ const C = V({ ...w, ...g, key: b }), _ = `${u}::${C}::${l}`;
3108
+ if (g.interactionId = _, o[u].interactionIds.add(_), b === u)
3087
3109
  return;
3088
- const T = $e(o, b);
3089
- T.effects[I] || (T.effects[I] = [], T.interactionIds.add(I)), T.effects[I].push({ ...h, effect: v }), T.selectors.add(D(v, { useFirstChild: t }));
3090
- }), p?.forEach((v) => {
3091
- if (!v || Ze(v)) return;
3092
- const E = v, $ = E.sequenceId;
3093
- E.effects.forEach((S, C) => {
3094
- S.effectId || (S.effectId = `eff-${$}-${C}`);
3095
- let O = S.key;
3096
- if (!O && S.effectId) {
3097
- const T = n[S.effectId];
3098
- T && (O = T.key);
3110
+ const I = Ce(o, b);
3111
+ I.effects[_] || (I.effects[_] = [], I.interactionIds.add(_)), I.effects[_].push({ ...h, effect: g }), I.selectors.add(W(g, { useFirstChild: t }));
3112
+ }), p?.forEach((g) => {
3113
+ if (!g || st(g)) return;
3114
+ const E = g, w = E.sequenceId;
3115
+ E.effects.forEach((S, T) => {
3116
+ S.effectId || (S.effectId = `eff-${w}-${T}`);
3117
+ let C = S.key;
3118
+ if (!C && S.effectId) {
3119
+ const I = n[S.effectId];
3120
+ I && (C = I.key);
3099
3121
  }
3100
- O = O || u;
3101
- const I = D(S, { useFirstChild: t });
3102
- if (I && o[u].selectors.add(I), O !== u) {
3103
- const T = $e(o, O), A = `${O}::seq::${$}::${l}`;
3104
- T.sequences[A] || (T.sequences[A] = [], T.interactionIds.add(A)), T.sequences[A].push({
3122
+ C = C || u;
3123
+ const _ = W(S, { useFirstChild: t });
3124
+ if (_ && o[u].selectors.add(_), C !== u) {
3125
+ const I = Ce(o, C), A = `${C}::seq::${w}::${l}`;
3126
+ I.sequences[A] || (I.sequences[A] = [], I.interactionIds.add(A)), I.sequences[A].push({
3105
3127
  ...h,
3106
3128
  sequence: E
3107
- }), T.selectors.add(I);
3129
+ }), I.selectors.add(_);
3108
3130
  }
3109
3131
  });
3110
3132
  });
@@ -3115,10 +3137,10 @@ function bi(e, t = !1) {
3115
3137
  interactions: o
3116
3138
  };
3117
3139
  }
3118
- function ye(e, t, n, s, i) {
3119
- const o = w.getPluginsNames();
3140
+ function $e(e, t, n, s, i) {
3141
+ const o = $.getPluginsNames();
3120
3142
  for (const r of o) {
3121
- const a = `${et}${r}`;
3143
+ const a = `${ot}${r}`;
3122
3144
  if (!(a in n))
3123
3145
  continue;
3124
3146
  const c = n[a];
@@ -3127,11 +3149,11 @@ function ye(e, t, n, s, i) {
3127
3149
  continue;
3128
3150
  e._appliedPlugins.add(c);
3129
3151
  }
3130
- const l = w.getPlugin(r)(c, { root: t, key: s, scope: i, config: n });
3152
+ const l = $.getPlugin(r)(c, { root: t, key: s, scope: i, config: n });
3131
3153
  typeof l == "function" && e._pluginCleanups.push(l);
3132
3154
  }
3133
3155
  }
3134
- function pe(e, t, n) {
3156
+ function ye(e, t, n) {
3135
3157
  if (e.listContainer) {
3136
3158
  const s = t.querySelector(e.listContainer);
3137
3159
  return s ? e.selector ? Array.from(s.querySelectorAll(e.selector)) : Array.from(s.children) : (console.warn(`Interact: No container found for list container "${e.listContainer}"`), []);
@@ -3144,20 +3166,20 @@ function pe(e, t, n) {
3144
3166
  }
3145
3167
  return n ? t.firstElementChild : t;
3146
3168
  }
3147
- function ge(e, t) {
3169
+ function Ee(e, t) {
3148
3170
  return t.map((n) => e.selector ? n.querySelector(e.selector) : n).filter(Boolean);
3149
3171
  }
3150
- function qt(e, t, n, s, i, o, r, a) {
3172
+ function jt(e, t, n, s, i, o, r, a) {
3151
3173
  return [
3152
- r ? ge(e, r) : pe(e, n, s),
3153
- a ? ge(t, a) : pe(t, i, o)
3174
+ r ? Ee(e, r) : ye(e, n, s),
3175
+ a ? Ee(t, a) : ye(t, i, o)
3154
3176
  ];
3155
3177
  }
3156
- function Mt(e, t, n, s, i, o, r, a) {
3178
+ function zt(e, t, n, s, i, o, r, a) {
3157
3179
  const c = Array.isArray(s), u = Array.isArray(i);
3158
3180
  c ? s.forEach((l, f) => {
3159
3181
  const d = u ? i[f] : i;
3160
- d && Je(
3182
+ d && it(
3161
3183
  e,
3162
3184
  l,
3163
3185
  t.trigger,
@@ -3169,7 +3191,7 @@ function Mt(e, t, n, s, i, o, r, a) {
3169
3191
  a
3170
3192
  );
3171
3193
  }) : (u ? i : [i]).forEach((f) => {
3172
- Je(
3194
+ it(
3173
3195
  e,
3174
3196
  s,
3175
3197
  t.trigger,
@@ -3182,7 +3204,7 @@ function Mt(e, t, n, s, i, o, r, a) {
3182
3204
  );
3183
3205
  });
3184
3206
  }
3185
- function Pt(e, t, n, s, i) {
3207
+ function Ht(e, t, n, s, i) {
3186
3208
  const o = {}, r = [];
3187
3209
  (s.effects || []).forEach((a, c) => {
3188
3210
  const u = a.effectId, l = {
@@ -3192,7 +3214,7 @@ function Pt(e, t, n, s, i) {
3192
3214
  }, f = l.key, d = q(a.interactionId, e);
3193
3215
  if (o[d] || n.addedInteractions[d] && !i)
3194
3216
  return;
3195
- const h = M(l.conditions || [], n.dataCache.conditions);
3217
+ const h = L(l.conditions || [], n.dataCache.conditions);
3196
3218
  if (h && n.setupMediaQueryListener(`${d}::${c}`, h, e, () => {
3197
3219
  t.update();
3198
3220
  }), !h || h.matches) {
@@ -3200,19 +3222,19 @@ function Pt(e, t, n, s, i) {
3200
3222
  const m = f && q(f, e);
3201
3223
  let p;
3202
3224
  if (m) {
3203
- if (p = w.getController(m), !p)
3225
+ if (p = $.getController(m), !p)
3204
3226
  return;
3205
3227
  l.listContainer && p.watchChildList(l.listContainer);
3206
3228
  } else
3207
3229
  p = t;
3208
- ye(
3230
+ $e(
3209
3231
  p,
3210
3232
  p.element,
3211
3233
  l,
3212
3234
  m || s.key,
3213
3235
  "effect"
3214
3236
  );
3215
- const [g, y] = qt(
3237
+ const [v, y] = jt(
3216
3238
  s,
3217
3239
  l,
3218
3240
  t.element,
@@ -3221,18 +3243,18 @@ function Pt(e, t, n, s, i) {
3221
3243
  p.useFirstChild,
3222
3244
  i
3223
3245
  );
3224
- if (!g || !y)
3246
+ if (!v || !y)
3225
3247
  return;
3226
3248
  n.addedInteractions[d] = !0;
3227
- const v = m || s.key, E = P(
3249
+ const g = m || s.key, E = x(
3228
3250
  l.conditions || [],
3229
3251
  n.dataCache.conditions
3230
3252
  );
3231
3253
  r.push([
3232
- v,
3254
+ g,
3233
3255
  s,
3234
3256
  l,
3235
- g,
3257
+ v,
3236
3258
  y,
3237
3259
  E,
3238
3260
  p.useFirstChild,
@@ -3240,14 +3262,14 @@ function Pt(e, t, n, s, i) {
3240
3262
  ]);
3241
3263
  }
3242
3264
  }), r.reverse().forEach((a) => {
3243
- Mt(...a);
3244
- }), Ii(e, t, n, s, i);
3265
+ zt(...a);
3266
+ }), Ai(e, t, n, s, i);
3245
3267
  }
3246
- function Si(e) {
3268
+ function _i(e) {
3247
3269
  return "sequenceId" in e && !("effects" in e);
3248
3270
  }
3249
- function Lt(e, t, n, s, i, o, r) {
3250
- const a = M(e.conditions || [], i.dataCache.conditions);
3271
+ function Dt(e, t, n, s, i, o, r) {
3272
+ const a = L(e.conditions || [], i.dataCache.conditions);
3251
3273
  if (a && i.setupMediaQueryListener(t, a, o.updateKey, o.onUpdate), a && !a.matches) return null;
3252
3274
  const c = e.effects || [], u = [];
3253
3275
  let l = !1;
@@ -3255,7 +3277,7 @@ function Lt(e, t, n, s, i, o, r) {
3255
3277
  const d = f.effectId, m = {
3256
3278
  ...d ? i.dataCache.effects[d] || {} : {},
3257
3279
  ...f
3258
- }, p = M(m.conditions || [], i.dataCache.conditions);
3280
+ }, p = L(m.conditions || [], i.dataCache.conditions);
3259
3281
  if (p) {
3260
3282
  const S = `${t}::${d || "eff"}`;
3261
3283
  i.setupMediaQueryListener(
@@ -3266,52 +3288,52 @@ function Lt(e, t, n, s, i, o, r) {
3266
3288
  );
3267
3289
  }
3268
3290
  if (p && !p.matches) continue;
3269
- const g = m.key, y = g && q(g, n);
3270
- let v;
3291
+ const v = m.key, y = v && q(v, n);
3292
+ let g;
3271
3293
  if (y) {
3272
- if (v = w.getController(y), !v) return null;
3294
+ if (g = $.getController(y), !g) return null;
3273
3295
  } else
3274
- v = s;
3296
+ g = s;
3275
3297
  const E = y || n;
3276
- ye(
3277
- v,
3278
- v.element,
3298
+ $e(
3299
+ g,
3300
+ g.element,
3279
3301
  m,
3280
3302
  E,
3281
3303
  "effect"
3282
3304
  );
3283
- let $;
3284
- if (r && E === r.controllerKey && m.listContainer === r.listContainer ? ($ = ge(m, r.elements), $.length > 0 && (l = !0)) : $ = pe(
3305
+ let w;
3306
+ if (r && E === r.controllerKey && m.listContainer === r.listContainer ? (w = Ee(m, r.elements), w.length > 0 && (l = !0)) : w = ye(
3285
3307
  m,
3286
- v.element,
3287
- v.useFirstChild
3288
- ), !$ || Array.isArray($) && $.length === 0) return null;
3289
- const b = L(m);
3290
- u.push({ target: $, options: b });
3308
+ g.element,
3309
+ g.useFirstChild
3310
+ ), !w || Array.isArray(w) && w.length === 0) return null;
3311
+ const b = F(m);
3312
+ u.push({ target: w, options: b });
3291
3313
  }
3292
3314
  return r && !l ? null : u.length > 0 ? u : null;
3293
3315
  }
3294
- function Me(e, t, n) {
3295
- const s = n ? ge(e, n) : pe(e, t.element, t.useFirstChild);
3316
+ function Re(e, t, n) {
3317
+ const s = n ? Ee(e, n) : ye(e, t.element, t.useFirstChild);
3296
3318
  return Array.isArray(s) && s.length === 0 ? null : s;
3297
3319
  }
3298
- function Pe(e, t, n, s, i) {
3320
+ function Ne(e, t, n, s, i) {
3299
3321
  (Array.isArray(n) ? n : [n]).forEach((r) => {
3300
- H[e.trigger]?.add(
3322
+ G[e.trigger]?.add(
3301
3323
  r,
3302
3324
  r,
3303
3325
  { triggerType: t.triggerType },
3304
3326
  e.params || {},
3305
3327
  {
3306
- reducedMotion: w.forceReducedMotion,
3328
+ reducedMotion: $.forceReducedMotion,
3307
3329
  selectorCondition: i,
3308
3330
  animation: s,
3309
- allowA11yTriggers: w.allowA11yTriggers
3331
+ allowA11yTriggers: $.allowA11yTriggers
3310
3332
  }
3311
3333
  );
3312
3334
  });
3313
3335
  }
3314
- function xt(e, t, n) {
3336
+ function Gt(e, t, n) {
3315
3337
  const o = (e.useFirstChild ? e.element.firstElementChild : e.element)?.querySelector(t);
3316
3338
  if (!o) return n.map((a, c) => c);
3317
3339
  const r = Array.from(o.children);
@@ -3320,10 +3342,10 @@ function xt(e, t, n) {
3320
3342
  return c >= 0 ? c : r.length;
3321
3343
  });
3322
3344
  }
3323
- function Ii(e, t, n, s, i) {
3345
+ function Ai(e, t, n, s, i) {
3324
3346
  s.sequences?.forEach((o) => {
3325
3347
  let r;
3326
- if (Si(o)) {
3348
+ if (_i(o)) {
3327
3349
  const m = n.dataCache.sequences[o.sequenceId];
3328
3350
  if (!m) {
3329
3351
  console.warn(`Interact: Sequence "${o.sequenceId}" not found in cache`);
@@ -3332,9 +3354,9 @@ function Ii(e, t, n, s, i) {
3332
3354
  r = { ...m, ...o };
3333
3355
  } else
3334
3356
  r = o;
3335
- const a = r.sequenceId || X(), c = q(`${e}::seq::${a}`, e);
3357
+ const a = r.sequenceId || J(), c = q(`${e}::seq::${a}`, e);
3336
3358
  if (n.addedInteractions[c] && !i) return;
3337
- const u = i && s.listContainer ? { controllerKey: e, listContainer: s.listContainer, elements: i } : void 0, l = Lt(
3359
+ const u = i && s.listContainer ? { controllerKey: e, listContainer: s.listContainer, elements: i } : void 0, l = Dt(
3338
3360
  r,
3339
3361
  c,
3340
3362
  e,
@@ -3345,36 +3367,36 @@ function Ii(e, t, n, s, i) {
3345
3367
  );
3346
3368
  if (!l) return;
3347
3369
  if (i && n.addedInteractions[c]) {
3348
- const m = xt(
3370
+ const m = Gt(
3349
3371
  t,
3350
3372
  s.listContainer,
3351
3373
  i
3352
3374
  );
3353
- w.addToSequence(c, l, m, {
3354
- reducedMotion: w.forceReducedMotion
3375
+ $.addToSequence(c, l, m, {
3376
+ reducedMotion: $.forceReducedMotion
3355
3377
  });
3356
- const p = w.getSequence(c, r, l, {
3357
- reducedMotion: w.forceReducedMotion
3358
- }), g = P(
3378
+ const p = $.getSequence(c, r, l, {
3379
+ reducedMotion: $.forceReducedMotion
3380
+ }), v = x(
3359
3381
  s.conditions || [],
3360
3382
  n.dataCache.conditions
3361
- ), y = Me(s, t, i);
3362
- y && Pe(
3383
+ ), y = Re(s, t, i);
3384
+ y && Ne(
3363
3385
  s,
3364
3386
  r,
3365
3387
  y,
3366
3388
  p,
3367
- g
3389
+ v
3368
3390
  );
3369
3391
  return;
3370
3392
  }
3371
- const f = w.getSequence(c, r, l, {
3372
- reducedMotion: w.forceReducedMotion
3373
- }), d = P(
3393
+ const f = $.getSequence(c, r, l, {
3394
+ reducedMotion: $.forceReducedMotion
3395
+ }), d = x(
3374
3396
  s.conditions || [],
3375
3397
  n.dataCache.conditions
3376
- ), h = Me(s, t, i);
3377
- h && (n.addedInteractions[c] = !0, Pe(
3398
+ ), h = Re(s, t, i);
3399
+ h && (n.addedInteractions[c] = !0, Ne(
3378
3400
  s,
3379
3401
  r,
3380
3402
  h,
@@ -3383,23 +3405,23 @@ function Ii(e, t, n, s, i) {
3383
3405
  ));
3384
3406
  });
3385
3407
  }
3386
- function Ti(e, t, n, s, i) {
3408
+ function Mi(e, t, n, s, i) {
3387
3409
  const o = n.get(e)?.sequences || {};
3388
3410
  Object.keys(o).forEach((a) => {
3389
3411
  o[a].some(({ sequence: u, ...l }) => {
3390
- const f = M(
3412
+ const f = L(
3391
3413
  l.conditions || [],
3392
3414
  n.dataCache.conditions
3393
3415
  );
3394
3416
  if (f && !f.matches)
3395
3417
  return !1;
3396
- const d = l.key && q(l.key, e), h = w.getController(d);
3418
+ const d = l.key && q(l.key, e), h = $.getController(d);
3397
3419
  if (!h)
3398
3420
  return !0;
3399
- const m = u.sequenceId || X(), p = q(`${d}::seq::${m}`, d);
3421
+ const m = u.sequenceId || J(), p = q(`${d}::seq::${m}`, d);
3400
3422
  if (n.addedInteractions[p] && !i)
3401
3423
  return !0;
3402
- const y = Lt(
3424
+ const y = Dt(
3403
3425
  u,
3404
3426
  p,
3405
3427
  d,
@@ -3410,48 +3432,48 @@ function Ti(e, t, n, s, i) {
3410
3432
  );
3411
3433
  if (!y) return !0;
3412
3434
  if (i && n.addedInteractions[p]) {
3413
- const b = xt(t, s, i);
3414
- return w.addToSequence(p, y, b, {
3415
- reducedMotion: w.forceReducedMotion
3435
+ const b = Gt(t, s, i);
3436
+ return $.addToSequence(p, y, b, {
3437
+ reducedMotion: $.forceReducedMotion
3416
3438
  }), !0;
3417
3439
  }
3418
- const v = w.getSequence(p, u, y, {
3419
- reducedMotion: w.forceReducedMotion
3420
- }), E = P(
3440
+ const g = $.getSequence(p, u, y, {
3441
+ reducedMotion: $.forceReducedMotion
3442
+ }), E = x(
3421
3443
  l.conditions || [],
3422
3444
  n.dataCache.conditions
3423
- ), $ = Me(l, h);
3424
- return $ && (n.addedInteractions[p] = !0, Pe(
3445
+ ), w = Re(l, h);
3446
+ return w && (n.addedInteractions[p] = !0, Ne(
3425
3447
  l,
3426
3448
  u,
3427
- $,
3428
- v,
3449
+ w,
3450
+ g,
3429
3451
  E
3430
3452
  )), !0;
3431
3453
  });
3432
3454
  });
3433
3455
  }
3434
- function Ft(e, t, n, s, i) {
3456
+ function Wt(e, t, n, s, i) {
3435
3457
  const o = n.get(e), r = o?.effects || {}, a = Object.keys(r), c = [];
3436
3458
  a.forEach((l) => {
3437
3459
  const f = q(l, e);
3438
3460
  if (n.addedInteractions[f] && !i)
3439
3461
  return;
3440
3462
  r[l].some(({ effect: h, ...m }, p) => {
3441
- const g = M(
3463
+ const v = L(
3442
3464
  m.conditions || [],
3443
3465
  n.dataCache.conditions
3444
3466
  );
3445
- if (g && !g.matches)
3467
+ if (v && !v.matches)
3446
3468
  return !1;
3447
- const y = h.effectId, v = {
3469
+ const y = h.effectId, g = {
3448
3470
  ...n.dataCache.effects[y] || {},
3449
3471
  ...h,
3450
3472
  effectId: y
3451
3473
  };
3452
- if (s && v.listContainer !== s)
3474
+ if (s && g.listContainer !== s)
3453
3475
  return !1;
3454
- const E = M(v.conditions || [], n.dataCache.conditions);
3476
+ const E = L(g.conditions || [], n.dataCache.conditions);
3455
3477
  if (E && n.setupMediaQueryListener(
3456
3478
  `${f}::${p}`,
3457
3479
  E,
@@ -3460,19 +3482,19 @@ function Ft(e, t, n, s, i) {
3460
3482
  t.update();
3461
3483
  }
3462
3484
  ), !E || E.matches) {
3463
- const $ = m.key && q(m.key, e), b = w.getController($);
3485
+ const w = m.key && q(m.key, e), b = $.getController(w);
3464
3486
  if (!b)
3465
3487
  return !0;
3466
- ye(
3488
+ $e(
3467
3489
  t,
3468
3490
  t.element,
3469
- v,
3491
+ g,
3470
3492
  e,
3471
3493
  "effect"
3472
- ), v.listContainer && t.watchChildList(v.listContainer);
3473
- const [S, C] = qt(
3494
+ ), g.listContainer && t.watchChildList(g.listContainer);
3495
+ const [S, T] = jt(
3474
3496
  m,
3475
- v,
3497
+ g,
3476
3498
  b.element,
3477
3499
  b.useFirstChild,
3478
3500
  t.element,
@@ -3480,33 +3502,33 @@ function Ft(e, t, n, s, i) {
3480
3502
  void 0,
3481
3503
  i
3482
3504
  );
3483
- if (!S || !C)
3505
+ if (!S || !T)
3484
3506
  return !0;
3485
3507
  n.addedInteractions[f] = !0;
3486
- const O = P(
3487
- v.conditions || [],
3508
+ const C = x(
3509
+ g.conditions || [],
3488
3510
  n.dataCache.conditions
3489
3511
  );
3490
3512
  return c.push([
3491
3513
  e,
3492
3514
  m,
3493
- v,
3515
+ g,
3494
3516
  S,
3517
+ T,
3495
3518
  C,
3496
- O,
3497
3519
  t.useFirstChild,
3498
- $ || void 0
3520
+ w || void 0
3499
3521
  ]), !0;
3500
3522
  }
3501
3523
  return !1;
3502
3524
  });
3503
3525
  }), c.reverse().forEach((l) => {
3504
- Mt(...l);
3505
- }), Ti(e, t, n, s, i);
3526
+ zt(...l);
3527
+ }), Mi(e, t, n, s, i);
3506
3528
  const u = Object.keys(o?.sequences || {}).length > 0;
3507
3529
  return a.length > 0 || u;
3508
3530
  }
3509
- function Je(e, t, n, s, i, o, r, a, c) {
3531
+ function it(e, t, n, s, i, o, r, a, c) {
3510
3532
  let u;
3511
3533
  if (i.transition || i.transitionProperties) {
3512
3534
  const f = {
@@ -3514,83 +3536,83 @@ function Je(e, t, n, s, i, o, r, a, c) {
3514
3536
  effectId: i.effectId,
3515
3537
  transition: i.transition,
3516
3538
  transitionProperties: i.transitionProperties,
3517
- childSelector: D(i, {
3539
+ childSelector: W(i, {
3518
3540
  asCombinator: !0,
3519
3541
  addItemFilter: !0,
3520
3542
  useFirstChild: a
3521
3543
  }),
3522
3544
  selectorCondition: r
3523
3545
  };
3524
- if (u = w.getController(e), !u)
3546
+ if (u = $.getController(e), !u)
3525
3547
  return;
3526
- u.renderStyle(Dn(f));
3548
+ u.renderStyle(Yn(f));
3527
3549
  }
3528
3550
  let l;
3529
3551
  if (n === "animationEnd") {
3530
- const f = o.effectId, h = (c ? w.getInstance(c) : void 0)?.dataCache.effects[f];
3531
- h && (l = L(h));
3552
+ const f = o.effectId, h = (c ? $.getInstance(c) : void 0)?.dataCache.effects[f];
3553
+ h && (l = F(h));
3532
3554
  }
3533
- H[n]?.add(t, s, i, o, {
3534
- reducedMotion: w.forceReducedMotion,
3555
+ G[n]?.add(t, s, i, o, {
3556
+ reducedMotion: $.forceReducedMotion,
3535
3557
  targetController: u,
3536
3558
  selectorCondition: r,
3537
- allowA11yTriggers: w.allowA11yTriggers,
3559
+ allowA11yTriggers: $.allowA11yTriggers,
3538
3560
  sourceAnimationOptions: l
3539
3561
  });
3540
3562
  }
3541
- function Ci(e) {
3542
- const t = e.key, n = w.getInstance(t);
3563
+ function ki(e) {
3564
+ const t = e.key, n = $.getInstance(t);
3543
3565
  if (!n)
3544
- return console.warn(`No instance found for key: ${t}`), w.setController(t, e), !1;
3566
+ return console.warn(`No instance found for key: ${t}`), $.setController(t, e), !1;
3545
3567
  const { triggers: s = [] } = n?.get(t) || {}, i = s.length > 0;
3546
3568
  n.setController(t, e), s.forEach((r, a) => {
3547
- const c = M(r.conditions, n.dataCache.conditions);
3569
+ const c = L(r.conditions, n.dataCache.conditions);
3548
3570
  if (c) {
3549
3571
  const u = `${t}::trigger::${a}`;
3550
3572
  n.setupMediaQueryListener(u, c, t, () => {
3551
3573
  e.update();
3552
3574
  });
3553
3575
  }
3554
- (!c || c.matches) && (ye(e, e.element, r, t, "interaction"), r.listContainer && e.watchChildList(r.listContainer), Pt(t, e, n, r));
3576
+ (!c || c.matches) && ($e(e, e.element, r, t, "interaction"), r.listContainer && e.watchChildList(r.listContainer), Ht(t, e, n, r));
3555
3577
  });
3556
3578
  let o = !1;
3557
- return n && (o = Ft(t, e, n)), i || o;
3579
+ return n && (o = Wt(t, e, n)), i || o;
3558
3580
  }
3559
- function Oi(e, t, n) {
3560
- const s = e.key, i = w.getInstance(s);
3581
+ function qi(e, t, n) {
3582
+ const s = e.key, i = $.getInstance(s);
3561
3583
  if (i) {
3562
3584
  const { triggers: o = [] } = i?.get(s) || {};
3563
3585
  o.forEach((r, a) => {
3564
3586
  if (r.listContainer !== t)
3565
3587
  return;
3566
- const c = M(r.conditions, i.dataCache.conditions);
3588
+ const c = L(r.conditions, i.dataCache.conditions);
3567
3589
  if (c) {
3568
3590
  const u = `${s}::listTrigger::${t}::${a}`;
3569
3591
  i.setupMediaQueryListener(u, c, s, () => {
3570
3592
  e.update();
3571
3593
  });
3572
3594
  }
3573
- (!c || c.matches) && Pt(s, e, i, r, n);
3574
- }), Ft(s, e, i, t, n);
3595
+ (!c || c.matches) && Ht(s, e, i, r, n);
3596
+ }), Wt(s, e, i, t, n);
3575
3597
  }
3576
3598
  }
3577
- function _i(e, t = !1) {
3578
- const n = e.key, s = w.getInstance(n);
3599
+ function Pi(e, t = !1) {
3600
+ const n = e.key, s = $.getInstance(n);
3579
3601
  if (!s)
3580
3602
  return;
3581
3603
  const i = [...s.get(n)?.selectors.values() || []].filter(Boolean).join(",");
3582
3604
  let o;
3583
- i ? (o = [...e.element.querySelectorAll(i)], e.useFirstChild || o.push(e.element)) : o = [e.element], Rt(o), s.deleteController(n, t);
3605
+ i ? (o = [...e.element.querySelectorAll(i)], e.useFirstChild || o.push(e.element)) : o = [e.element], Vt(o), s.deleteController(n, t);
3584
3606
  }
3585
- function Rt(e) {
3586
- const t = Object.values(H);
3607
+ function Vt(e) {
3608
+ const t = Object.values(G);
3587
3609
  for (const n of e)
3588
3610
  for (const s of t)
3589
3611
  s.remove(n);
3590
- w.removeFromSequences(e);
3612
+ $.removeFromSequences(e);
3591
3613
  }
3592
- const be = "interactEffect";
3593
- class Ai {
3614
+ const Oe = "interactEffect";
3615
+ class Li {
3594
3616
  element;
3595
3617
  key;
3596
3618
  connected;
@@ -3612,10 +3634,10 @@ class Ai {
3612
3634
  }
3613
3635
  n !== t && (n && console.warn(
3614
3636
  `Interact: Key mismatch between element ${n} and parameter ${t}, updating element key`
3615
- ), this.element.dataset.interactKey = t), this.key = t, this.connected = Ci(this);
3637
+ ), this.element.dataset.interactKey = t), this.key = t, this.connected = ki(this);
3616
3638
  }
3617
3639
  disconnect({ removeFromCache: t = !1 } = {}) {
3618
- if ((this.key || this.element.dataset.interactKey) && _i(this, t), this._pluginCleanups.length) {
3640
+ if ((this.key || this.element.dataset.interactKey) && Pi(this, t), this._pluginCleanups.length) {
3619
3641
  for (const s of this._pluginCleanups)
3620
3642
  try {
3621
3643
  s();
@@ -3658,12 +3680,12 @@ class Ai {
3658
3680
  return;
3659
3681
  }
3660
3682
  const o = new Set(
3661
- this.element.dataset[be]?.split(" ") || []
3683
+ this.element.dataset[Oe]?.split(" ") || []
3662
3684
  );
3663
- n === "toggle" ? o.has(t) ? o.delete(t) : o.add(t) : n === "add" ? o.add(t) : n === "remove" ? o.delete(t) : n === "clear" && o.clear(), (s || this.element).dataset[be] = Array.from(o).join(" ");
3685
+ n === "toggle" ? o.has(t) ? o.delete(t) : o.add(t) : n === "add" ? o.add(t) : n === "remove" ? o.delete(t) : n === "clear" && o.clear(), (s || this.element).dataset[Oe] = Array.from(o).join(" ");
3664
3686
  }
3665
3687
  getActiveEffects() {
3666
- const n = (this.element.dataset[be] || "").trim();
3688
+ const n = (this.element.dataset[Oe] || "").trim();
3667
3689
  return n ? n.split(/\s+/) : [];
3668
3690
  }
3669
3691
  watchChildList(t) {
@@ -3681,21 +3703,21 @@ class Ai {
3681
3703
  }), r.addedNodes.forEach((a) => {
3682
3704
  a instanceof HTMLElement && o.push(a);
3683
3705
  });
3684
- }), Rt(i), s && Oi(this, t, o);
3706
+ }), Vt(i), s && qi(this, t, o);
3685
3707
  }
3686
3708
  }
3687
- function qi(e, t) {
3688
- new Ai(e, t).connect();
3709
+ function Fi(e, t) {
3710
+ new Li(e, t).connect();
3689
3711
  }
3690
- function Mi(e) {
3691
- const t = w.getController(e);
3712
+ function Ri(e) {
3713
+ const t = $.getController(e);
3692
3714
  t && t.disconnect({ removeFromCache: !0 });
3693
3715
  }
3694
3716
  export {
3695
- Ai as I,
3696
- w as a,
3697
- qi as b,
3698
- ki as g,
3699
- Mi as r
3717
+ Li as I,
3718
+ $ as a,
3719
+ Fi as b,
3720
+ xi as g,
3721
+ Ri as r
3700
3722
  };
3701
- //# sourceMappingURL=index-DfRxfbHh.mjs.map
3723
+ //# sourceMappingURL=index-YKqGJSeK.mjs.map