@wix/interact 2.5.22 → 2.5.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/react.js +1 -1
- package/dist/cjs/web.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/react.js +2 -2
- package/dist/es/web.js +2 -2
- package/dist/{index-CUMAPyzu.mjs → index-YKqGJSeK.mjs} +197 -197
- package/dist/index-YKqGJSeK.mjs.map +1 -0
- package/dist/{index-DzjSnJ2D.js → index-rRrSHuig.js} +7 -7
- package/dist/index-rRrSHuig.js.map +1 -0
- package/package.json +2 -2
- package/dist/index-CUMAPyzu.mjs.map +0 -1
- package/dist/index-DzjSnJ2D.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function
|
|
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 =
|
|
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
|
|
12
|
+
function Yt(e, t) {
|
|
13
13
|
return e.trigger === "viewEnter" && t.triggerType === "once" && V(e) === V(t);
|
|
14
14
|
}
|
|
15
15
|
function V(e) {
|
|
@@ -121,32 +121,32 @@ class ee {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
const rt = (e) => e,
|
|
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
125
|
linear: rt,
|
|
126
|
-
sineIn:
|
|
127
|
-
sineOut:
|
|
128
|
-
sineInOut:
|
|
129
|
-
quadIn:
|
|
130
|
-
quadOut:
|
|
131
|
-
quadInOut:
|
|
132
|
-
cubicIn:
|
|
133
|
-
cubicOut:
|
|
134
|
-
cubicInOut:
|
|
135
|
-
quartIn:
|
|
136
|
-
quartOut:
|
|
137
|
-
quartInOut:
|
|
138
|
-
quintIn:
|
|
139
|
-
quintOut:
|
|
140
|
-
quintInOut:
|
|
141
|
-
expoIn:
|
|
142
|
-
expoOut:
|
|
143
|
-
expoInOut:
|
|
144
|
-
circIn:
|
|
145
|
-
circOut:
|
|
146
|
-
circInOut:
|
|
147
|
-
backIn:
|
|
148
|
-
backOut:
|
|
149
|
-
backInOut:
|
|
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
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;
|
|
@@ -234,35 +234,35 @@ const rt = (e) => e, Yt = (e) => 1 - Math.cos(e * Math.PI / 2), Bt = (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
|
|
237
|
+
function En(e) {
|
|
238
238
|
return e === "percentage" ? "%" : e || "px";
|
|
239
239
|
}
|
|
240
|
-
const
|
|
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
245
|
function me(e) {
|
|
246
|
-
return e.startsWith("--") ? e : (
|
|
246
|
+
return e.startsWith("--") ? e : (wn.test(e) ? `-${e}` : e).replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`);
|
|
247
247
|
}
|
|
248
|
-
function
|
|
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
251
|
function at(e) {
|
|
252
|
-
return
|
|
252
|
+
return $n[e] || bn(e);
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function Sn(e) {
|
|
255
255
|
for (const t in e)
|
|
256
256
|
if (Object.hasOwn(e, t) && at(t) !== t)
|
|
257
257
|
return !0;
|
|
258
258
|
return !1;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
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" || !
|
|
265
|
+
if (!n || typeof n != "object" || !Sn(n))
|
|
266
266
|
return;
|
|
267
267
|
t ??= e.slice();
|
|
268
268
|
const i = {};
|
|
@@ -295,7 +295,7 @@ function In(e, t, n, s) {
|
|
|
295
295
|
}
|
|
296
296
|
return (m) => m <= 0 ? 0 : m >= 1 ? 1 : f(h(m));
|
|
297
297
|
}
|
|
298
|
-
function
|
|
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
|
);
|
|
@@ -305,16 +305,16 @@ function ct(e) {
|
|
|
305
305
|
return [n, s, i, o];
|
|
306
306
|
}
|
|
307
307
|
function Tn(e) {
|
|
308
|
-
const t =
|
|
308
|
+
const t = lt(e);
|
|
309
309
|
if (!(!t || t.some(isNaN)))
|
|
310
310
|
return In(...t);
|
|
311
311
|
}
|
|
312
312
|
function Cn(e) {
|
|
313
|
-
const t =
|
|
313
|
+
const t = lt(e);
|
|
314
314
|
if (!(!t || t.some(isNaN)))
|
|
315
315
|
return (n) => K(n, ...t);
|
|
316
316
|
}
|
|
317
|
-
function
|
|
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);
|
|
@@ -351,7 +351,7 @@ function lt(e) {
|
|
|
351
351
|
return s;
|
|
352
352
|
}
|
|
353
353
|
function On(e) {
|
|
354
|
-
const t =
|
|
354
|
+
const t = ut(e);
|
|
355
355
|
if (t)
|
|
356
356
|
return (n) => {
|
|
357
357
|
if (n <= t[0].pos) return t[0].output;
|
|
@@ -367,7 +367,7 @@ function On(e) {
|
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
function _n(e) {
|
|
370
|
-
const t =
|
|
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
|
|
386
|
+
function ft(e) {
|
|
387
387
|
if (!e) return;
|
|
388
388
|
const t = De[e];
|
|
389
389
|
return t || (Tn(e) ?? On(e) ?? De.linear);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function An(e) {
|
|
392
392
|
if (!e) return;
|
|
393
393
|
const t = Ge[e];
|
|
394
394
|
return t || (Cn(e) ?? _n(e) ?? Ge.linear);
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class Mn extends ee {
|
|
397
397
|
animationGroups;
|
|
398
398
|
delay;
|
|
399
399
|
offset;
|
|
@@ -402,7 +402,7 @@ class An extends ee {
|
|
|
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 :
|
|
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 An extends ee {
|
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
class
|
|
494
|
+
class kn {
|
|
495
495
|
_animation;
|
|
496
496
|
customEffect;
|
|
497
497
|
progress;
|
|
@@ -778,33 +778,33 @@ function je(e, t = !0) {
|
|
|
778
778
|
function X(e, t) {
|
|
779
779
|
return e ? (t || document).getElementById(e) : null;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
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
|
|
784
|
+
function ht(e, t) {
|
|
785
785
|
const n = typeof e == "string" ? X(e) : e;
|
|
786
|
-
return t?.length ? t.map((s) =>
|
|
786
|
+
return t?.length ? t.map((s) => dt(n, s)).filter(Boolean) : n ? [n] : [];
|
|
787
787
|
}
|
|
788
788
|
function Fn(e) {
|
|
789
789
|
const t = e.alternate ? "alternate" : "";
|
|
790
790
|
return e.reversed ? `${t ? `${t}-` : ""}reverse` : t || "normal";
|
|
791
791
|
}
|
|
792
792
|
function Ie(e) {
|
|
793
|
-
return `${e.value}${
|
|
793
|
+
return `${e.value}${En(e.unit)}`;
|
|
794
794
|
}
|
|
795
795
|
function Ye(e, t, n) {
|
|
796
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)}`;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function mt(e) {
|
|
799
799
|
return {
|
|
800
800
|
start: Ye(e.startOffset, e.startOffsetAdd),
|
|
801
801
|
end: Ye(e.endOffset, e.endOffsetAdd, !0)
|
|
802
802
|
};
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function pt(e) {
|
|
805
805
|
return (t) => O.measure(() => t(e));
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function gt(e) {
|
|
808
808
|
return (t) => O.mutate(() => t(e));
|
|
809
809
|
}
|
|
810
810
|
function Z(e) {
|
|
@@ -824,7 +824,7 @@ function Z(e) {
|
|
|
824
824
|
return (t) => [{ ...t, keyframes: [] }];
|
|
825
825
|
return null;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function vt(e, t, n, s) {
|
|
828
828
|
return e.map((i, o) => {
|
|
829
829
|
const r = {
|
|
830
830
|
fill: i.fill,
|
|
@@ -833,10 +833,10 @@ function gt(e, t, n, s) {
|
|
|
833
833
|
composite: i.composite,
|
|
834
834
|
direction: Fn(i)
|
|
835
835
|
};
|
|
836
|
-
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
|
-
|
|
838
|
-
|
|
839
|
-
effect:
|
|
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,
|
|
840
840
|
options: r,
|
|
841
841
|
id: n && `${n}-${o + 1}`,
|
|
842
842
|
part: i.part
|
|
@@ -854,11 +854,11 @@ function Be(e, t, n, s, i) {
|
|
|
854
854
|
else
|
|
855
855
|
return [];
|
|
856
856
|
let o;
|
|
857
|
-
return n instanceof HTMLElement && (o = { measure:
|
|
857
|
+
return n instanceof HTMLElement && (o = { measure: pt(n), mutate: gt(n) }), e.web ? e.web(t, o, i) : e(t, o, i);
|
|
858
858
|
}
|
|
859
859
|
return [];
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function yt(e, t, n, s, i) {
|
|
862
862
|
const o = typeof e == "string" ? X(e, i) : e;
|
|
863
863
|
if (n?.trigger === "pointer-move" && !t.keyframeEffect) {
|
|
864
864
|
let d = t;
|
|
@@ -886,18 +886,18 @@ function vt(e, t, n, s, i) {
|
|
|
886
886
|
);
|
|
887
887
|
if (!a || a.length === 0)
|
|
888
888
|
return null;
|
|
889
|
-
const c =
|
|
889
|
+
const c = vt(a, n, t.effectId);
|
|
890
890
|
let u;
|
|
891
891
|
const l = n?.trigger === "view-progress";
|
|
892
892
|
l && window.ViewTimeline && (u = new ViewTimeline({
|
|
893
893
|
subject: n.element || X(n.componentId)
|
|
894
894
|
}));
|
|
895
895
|
const f = c.map(({ effect: d, options: h, id: m, part: p }) => {
|
|
896
|
-
const v = p ?
|
|
896
|
+
const v = p ? dt(o, p) : o, y = new KeyframeEffect(v || null, [], h);
|
|
897
897
|
O.mutate(() => {
|
|
898
|
-
"timing" in d && y.updateTiming(d.timing), y.setKeyframes(d.keyframes);
|
|
898
|
+
"timing" in d && y.updateTiming(d.timing), y.setKeyframes(ct(d.keyframes));
|
|
899
899
|
});
|
|
900
|
-
const g = l && u ? { timeline: u } : {}, E = typeof d.customEffect == "function" ? new
|
|
900
|
+
const g = l && u ? { timeline: u } : {}, E = typeof d.customEffect == "function" ? new kn(
|
|
901
901
|
d.customEffect,
|
|
902
902
|
v || null,
|
|
903
903
|
h,
|
|
@@ -906,7 +906,7 @@ function vt(e, t, n, s, i) {
|
|
|
906
906
|
if (l)
|
|
907
907
|
if (u)
|
|
908
908
|
O.mutate(() => {
|
|
909
|
-
const { start: w, end: b } =
|
|
909
|
+
const { start: w, end: b } = mt(d);
|
|
910
910
|
E.rangeStart = w, E.rangeEnd = b, E.play();
|
|
911
911
|
});
|
|
912
912
|
else {
|
|
@@ -940,7 +940,7 @@ function Rn(e, t, n) {
|
|
|
940
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 || {};
|
|
941
941
|
let p = `${i ?? 0}ms`;
|
|
942
942
|
if (f && typeof m == "string") {
|
|
943
|
-
const v =
|
|
943
|
+
const v = An(m);
|
|
944
944
|
if (v) {
|
|
945
945
|
const y = (i ?? 0) + (d ?? 0);
|
|
946
946
|
if (h) {
|
|
@@ -958,16 +958,16 @@ function Nn(e, t, n) {
|
|
|
958
958
|
return e?.style ? (ze(n) && (t.duration = t.duration || 1), e.style(t)) : [];
|
|
959
959
|
}
|
|
960
960
|
function jn(e, t, n, s) {
|
|
961
|
-
const i = Z(t), o = Nn(i, t), r =
|
|
961
|
+
const i = Z(t), o = Nn(i, t), r = vt(o, n, t.effectId, !0), a = n?.trigger === "view-progress";
|
|
962
962
|
return r.map((c, u) => {
|
|
963
|
-
const { start: l, end: f } = a ?
|
|
963
|
+
const { start: l, end: f } = a ? mt(c.effect) : {};
|
|
964
964
|
return {
|
|
965
965
|
part: c.part,
|
|
966
966
|
animation: Rn(c, a, s),
|
|
967
967
|
composition: c.options.composite,
|
|
968
968
|
custom: c.effect.custom,
|
|
969
969
|
name: c.effect.name,
|
|
970
|
-
keyframes: c.effect.keyframes,
|
|
970
|
+
keyframes: ct(c.effect.keyframes),
|
|
971
971
|
id: c.id && `${c.id}-${u + 1}`,
|
|
972
972
|
animationTimeline: a ? `--${n?.id}` : "",
|
|
973
973
|
animationRange: l || f ? `${l} ${f}` : ""
|
|
@@ -977,18 +977,18 @@ function jn(e, t, n, s) {
|
|
|
977
977
|
function zn(e, t, n) {
|
|
978
978
|
const s = Z(t), i = e instanceof HTMLElement ? e : X(e);
|
|
979
979
|
if (s && s.prepare && i) {
|
|
980
|
-
const o = { measure:
|
|
980
|
+
const o = { measure: pt(i), mutate: gt(i) };
|
|
981
981
|
s.prepare(t, o);
|
|
982
982
|
}
|
|
983
983
|
n && O.mutate(n);
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function Et(e, t) {
|
|
986
986
|
const n = Z(t);
|
|
987
987
|
if (!n)
|
|
988
988
|
return null;
|
|
989
989
|
if (!n.style)
|
|
990
990
|
return t.effectId && e ? Hn(e, t.effectId, n.parts) : null;
|
|
991
|
-
const s = n.getNames(t), o =
|
|
991
|
+
const s = n.getNames(t), o = ht(e, n.parts)?.flatMap((c) => c.getAnimations()), r = o?.map((c) => c.animationName) || [], a = [];
|
|
992
992
|
return s.forEach((c) => {
|
|
993
993
|
r.includes(c) && a.push(
|
|
994
994
|
o?.find((u) => u.animationName === c)
|
|
@@ -996,14 +996,14 @@ function yt(e, t) {
|
|
|
996
996
|
}), a?.length ? new ee(a) : null;
|
|
997
997
|
}
|
|
998
998
|
function Hn(e, t, n) {
|
|
999
|
-
const i =
|
|
999
|
+
const i = ht(e, n)?.flatMap((o) => o.getAnimations()).filter((o) => {
|
|
1000
1000
|
const r = o.id || o.animationName;
|
|
1001
1001
|
return r ? r.startsWith(t) : !0;
|
|
1002
1002
|
});
|
|
1003
1003
|
return i?.length ? new ee(i) : null;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1006
|
-
const { disabled: i, allowActiveEvent: o, ...r } = s, a =
|
|
1005
|
+
function wt(e, t, n, s = {}) {
|
|
1006
|
+
const { disabled: i, allowActiveEvent: o, ...r } = s, a = yt(e, t, n, r);
|
|
1007
1007
|
if (!a)
|
|
1008
1008
|
return null;
|
|
1009
1009
|
let c = {};
|
|
@@ -1057,7 +1057,7 @@ function Et(e, t, n, s = {}) {
|
|
|
1057
1057
|
c = {
|
|
1058
1058
|
centeredToTarget: l,
|
|
1059
1059
|
allowActiveEvent: o
|
|
1060
|
-
}, t.customEffect && f && (c.transitionDuration = f, c.transitionEasing =
|
|
1060
|
+
}, t.customEffect && f && (c.transitionDuration = f, c.transitionEasing = ft(d)), c.target = a.target;
|
|
1061
1061
|
}
|
|
1062
1062
|
return {
|
|
1063
1063
|
...c,
|
|
@@ -1081,15 +1081,15 @@ function Et(e, t, n, s = {}) {
|
|
|
1081
1081
|
};
|
|
1082
1082
|
}
|
|
1083
1083
|
function te(e, t, n, s = !1) {
|
|
1084
|
-
const i =
|
|
1084
|
+
const i = Et(e, t);
|
|
1085
1085
|
return i ? (i.ready = new Promise((o) => {
|
|
1086
1086
|
zn(e, t, o);
|
|
1087
|
-
}), i) :
|
|
1087
|
+
}), i) : yt(e, t, n, { reducedMotion: s });
|
|
1088
1088
|
}
|
|
1089
1089
|
function Dn(e) {
|
|
1090
1090
|
return e === null ? [null] : typeof e == "string" ? Array.from(document.querySelectorAll(e)) : Array.isArray(e) ? e : [e];
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function $t(e, t) {
|
|
1093
1093
|
const n = [];
|
|
1094
1094
|
for (const { target: s, options: i } of e) {
|
|
1095
1095
|
const o = Dn(s);
|
|
@@ -1106,8 +1106,8 @@ function wt(e, t) {
|
|
|
1106
1106
|
return n;
|
|
1107
1107
|
}
|
|
1108
1108
|
function Gn(e, t, n) {
|
|
1109
|
-
const s =
|
|
1110
|
-
return new
|
|
1109
|
+
const s = $t(t, n);
|
|
1110
|
+
return new Mn(s, e);
|
|
1111
1111
|
}
|
|
1112
1112
|
function Wn(e, t = 2) {
|
|
1113
1113
|
return parseFloat(e.toFixed(t));
|
|
@@ -1130,14 +1130,14 @@ function J() {
|
|
|
1130
1130
|
// 97 for "a"
|
|
1131
1131
|
);
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function bt(e) {
|
|
1134
1134
|
const { transition: t, transitionProperties: n } = e;
|
|
1135
1135
|
return (t?.styleProperties || n || []).map((i) => ({
|
|
1136
1136
|
...i,
|
|
1137
1137
|
name: me(i.name)
|
|
1138
1138
|
}));
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function St(e) {
|
|
1141
1141
|
let { transition: t, transitionProperties: n } = e, s = [];
|
|
1142
1142
|
if (t?.styleProperties) {
|
|
1143
1143
|
const { duration: i, easing: o, delay: r } = t;
|
|
@@ -1165,10 +1165,10 @@ function Yn({
|
|
|
1165
1165
|
childSelector: i = "> :first-child",
|
|
1166
1166
|
selectorCondition: o
|
|
1167
1167
|
}) {
|
|
1168
|
-
const r =
|
|
1168
|
+
const r = St({
|
|
1169
1169
|
transition: n,
|
|
1170
1170
|
transitionProperties: s
|
|
1171
|
-
}), a =
|
|
1171
|
+
}), a = bt({ transition: n, transitionProperties: s }).map(
|
|
1172
1172
|
(m) => `${m.name}: ${m.value};`
|
|
1173
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 = [
|
|
1174
1174
|
`${f},
|
|
@@ -1196,7 +1196,7 @@ function L(e, t) {
|
|
|
1196
1196
|
function x(e, t) {
|
|
1197
1197
|
return (e || []).filter((n) => t[n]?.type === "selector" && t[n].predicate).map((n) => `:is(${t[n].predicate})`).join("");
|
|
1198
1198
|
}
|
|
1199
|
-
const
|
|
1199
|
+
const It = /* @__PURE__ */ new Map([
|
|
1200
1200
|
["viewEnter", "once"],
|
|
1201
1201
|
["animationEnd", "once"],
|
|
1202
1202
|
["hover", "alternate"],
|
|
@@ -1204,7 +1204,7 @@ const St = /* @__PURE__ */ new Map([
|
|
|
1204
1204
|
["activate", "alternate"],
|
|
1205
1205
|
["interest", "alternate"]
|
|
1206
1206
|
]);
|
|
1207
|
-
function
|
|
1207
|
+
function Tt(e, t, n, s) {
|
|
1208
1208
|
const { effects: i = {}, conditions: o = {} } = n, { key: r, trigger: a } = t, c = a === "pointerMove";
|
|
1209
1209
|
e.effectId || (e.effectId = s || J());
|
|
1210
1210
|
const { effectId: u } = e, l = { ...i[u] || {}, ...e };
|
|
@@ -1218,14 +1218,14 @@ function It(e, t, n, s) {
|
|
|
1218
1218
|
return null;
|
|
1219
1219
|
d = [
|
|
1220
1220
|
...new Set((d || []).filter((b) => o[b]))
|
|
1221
|
-
], h || (h =
|
|
1221
|
+
], h || (h = It.get(a));
|
|
1222
1222
|
const { namedEffect: m, customEffect: p, keyframeEffect: v, transition: y, transitionProperties: g, ...E } = {
|
|
1223
1223
|
...l,
|
|
1224
1224
|
key: f,
|
|
1225
1225
|
conditions: d,
|
|
1226
1226
|
effectId: u,
|
|
1227
1227
|
triggerType: h
|
|
1228
|
-
}, w =
|
|
1228
|
+
}, w = Yt(t, E);
|
|
1229
1229
|
if (m)
|
|
1230
1230
|
return c || !m.type ? null : { namedEffect: m, initial: w, ...E };
|
|
1231
1231
|
if (v) {
|
|
@@ -1250,11 +1250,11 @@ function Bn(e, t, n, s, i) {
|
|
|
1250
1250
|
} = c;
|
|
1251
1251
|
if (typeof m == "function" || !u)
|
|
1252
1252
|
return null;
|
|
1253
|
-
f || (f =
|
|
1253
|
+
f || (f = It.get(t.trigger)), l = [
|
|
1254
1254
|
...new Set((l || []).filter((y) => r[y]))
|
|
1255
1255
|
];
|
|
1256
1256
|
const v = u.map((y, g) => {
|
|
1257
|
-
const E =
|
|
1257
|
+
const E = Tt(
|
|
1258
1258
|
{ ...y, triggerType: f, conditions: [...y.conditions || [], ...l] },
|
|
1259
1259
|
t,
|
|
1260
1260
|
n,
|
|
@@ -1335,13 +1335,13 @@ function Jn(e) {
|
|
|
1335
1335
|
${l}
|
|
1336
1336
|
}` : l;
|
|
1337
1337
|
}
|
|
1338
|
-
const
|
|
1338
|
+
const Ae = [
|
|
1339
1339
|
"animation",
|
|
1340
1340
|
"animation-composition",
|
|
1341
1341
|
"animation-timeline",
|
|
1342
1342
|
"animation-range"
|
|
1343
1343
|
], we = [
|
|
1344
|
-
...
|
|
1344
|
+
...Ae,
|
|
1345
1345
|
"transition",
|
|
1346
1346
|
"view-timeline"
|
|
1347
1347
|
], He = ["animation", "transition", "timeline"];
|
|
@@ -1451,7 +1451,7 @@ function F(e) {
|
|
|
1451
1451
|
...s
|
|
1452
1452
|
};
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function k(e, t, n) {
|
|
1455
1455
|
let s = e.get(t);
|
|
1456
1456
|
s || (s = /* @__PURE__ */ new Set(), e.set(t, s)), s.add(n);
|
|
1457
1457
|
}
|
|
@@ -1470,8 +1470,8 @@ const is = [
|
|
|
1470
1470
|
{ name: "translate", value: "none", important: !0 },
|
|
1471
1471
|
{ name: "scale", value: "none", important: !0 },
|
|
1472
1472
|
{ name: "rotate", value: "none", important: !0 }
|
|
1473
|
-
],
|
|
1474
|
-
function
|
|
1473
|
+
], Me = { animation: !1, transition: !1, timeline: !1 };
|
|
1474
|
+
function Ct(e, t) {
|
|
1475
1475
|
const n = () => ({
|
|
1476
1476
|
listIndex: 0,
|
|
1477
1477
|
slotCursor: 0,
|
|
@@ -1490,7 +1490,7 @@ function Tt(e, t) {
|
|
|
1490
1490
|
keyframeEntries: /* @__PURE__ */ new Map()
|
|
1491
1491
|
};
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function Ot(e, t) {
|
|
1494
1494
|
return Object.fromEntries(
|
|
1495
1495
|
we.map((n) => {
|
|
1496
1496
|
const s = N(n), { listIndex: i, slotCursor: o, slotsInSequence: r } = e[s];
|
|
@@ -1501,19 +1501,19 @@ function Ct(e, t) {
|
|
|
1501
1501
|
})
|
|
1502
1502
|
);
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function ke(e, t, n) {
|
|
1505
1505
|
He.forEach((s) => {
|
|
1506
1506
|
t[s] && (e[s].touched = !0, n[s] && (e[s].slotsInSequence += 1));
|
|
1507
1507
|
});
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function _t(e) {
|
|
1510
1510
|
const { namedEffect: t, keyframeEffect: n, transition: s, transitionProperties: i } = e;
|
|
1511
1511
|
return t || n ? "animation" : s || i ? "transition" : null;
|
|
1512
1512
|
}
|
|
1513
1513
|
function os(e) {
|
|
1514
1514
|
const t = /* @__PURE__ */ new Map();
|
|
1515
1515
|
return e.effects.forEach((n) => {
|
|
1516
|
-
const s =
|
|
1516
|
+
const s = _t(n);
|
|
1517
1517
|
if (!s)
|
|
1518
1518
|
return;
|
|
1519
1519
|
const i = V(n), o = t.get(i) || { animation: 0, transition: 0, timeline: 0 };
|
|
@@ -1548,8 +1548,8 @@ function ls(e, t, n, s) {
|
|
|
1548
1548
|
asCombinator: !0,
|
|
1549
1549
|
useFirstChild: e.useFirstChild,
|
|
1550
1550
|
addItemFilter: !0
|
|
1551
|
-
}), u = V(t), l = e.targetsMap.get(u) ||
|
|
1552
|
-
return
|
|
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), {
|
|
1553
1553
|
key: i,
|
|
1554
1554
|
media: r,
|
|
1555
1555
|
selectorCondition: a,
|
|
@@ -1562,7 +1562,7 @@ function ls(e, t, n, s) {
|
|
|
1562
1562
|
]
|
|
1563
1563
|
};
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1565
|
+
function At(e, t, n, s, i) {
|
|
1566
1566
|
const o = [];
|
|
1567
1567
|
for (const r of Object.keys(i)) {
|
|
1568
1568
|
const a = `${ot}${r}`;
|
|
@@ -1597,34 +1597,34 @@ function us(e, t, n, s, i, o) {
|
|
|
1597
1597
|
];
|
|
1598
1598
|
let b = [];
|
|
1599
1599
|
const { declarations: S } = w[0];
|
|
1600
|
-
if (e.plugins && w.push(...
|
|
1600
|
+
if (e.plugins && w.push(...At("effect", t, l, g, e.plugins)), h || m) {
|
|
1601
1601
|
const T = F(t), C = jn(null, T, s, o).filter(
|
|
1602
1602
|
(I) => I.name
|
|
1603
1603
|
), _ = C.length ? {} : { "": [] };
|
|
1604
1604
|
C.forEach((I) => {
|
|
1605
|
-
const
|
|
1606
|
-
(_[
|
|
1605
|
+
const A = I.part || "";
|
|
1606
|
+
(_[A] ||= []).push(I);
|
|
1607
1607
|
}), b = C.map((I) => ({
|
|
1608
1608
|
name: I.name,
|
|
1609
1609
|
keyframes: I.keyframes
|
|
1610
1610
|
})), S.push(
|
|
1611
1611
|
...C.flatMap(
|
|
1612
|
-
({ custom: I }) => Object.entries(I || {}).filter(([
|
|
1612
|
+
({ custom: I }) => Object.entries(I || {}).filter(([A, M]) => M !== void 0).map(([A, M]) => ({ name: A, value: M }))
|
|
1613
1613
|
)
|
|
1614
|
-
), Object.entries(_).forEach(([I,
|
|
1615
|
-
const
|
|
1614
|
+
), Object.entries(_).forEach(([I, A]) => {
|
|
1615
|
+
const M = Ae.map((P) => ({
|
|
1616
1616
|
_listPropertyName: P,
|
|
1617
1617
|
name: i[P],
|
|
1618
|
-
value:
|
|
1618
|
+
value: A.map((be) => {
|
|
1619
1619
|
const Se = cs[P];
|
|
1620
1620
|
return be[Se] || H[P];
|
|
1621
1621
|
}).join(", ")
|
|
1622
1622
|
})).filter(
|
|
1623
1623
|
({ _listPropertyName: P, name: be, value: Se }) => Se !== H[P] || r.has(be)
|
|
1624
1624
|
);
|
|
1625
|
-
|
|
1625
|
+
M.forEach(({ name: P }) => r.add(P)), u.animation = u.animation || M.length > 0;
|
|
1626
1626
|
const ie = I ? `[data-motion-part~="${I}"]` : a;
|
|
1627
|
-
I &&
|
|
1627
|
+
I && M.length && c.add(ie), y ? (w.push({
|
|
1628
1628
|
key: l,
|
|
1629
1629
|
media: g,
|
|
1630
1630
|
selectorCondition: E,
|
|
@@ -1636,18 +1636,18 @@ function us(e, t, n, s, i, o) {
|
|
|
1636
1636
|
media: g,
|
|
1637
1637
|
selectorCondition: E,
|
|
1638
1638
|
childSelector: ie,
|
|
1639
|
-
declarations:
|
|
1639
|
+
declarations: M,
|
|
1640
1640
|
selectorSuffix: ':not([data-interact-enter="done"])'
|
|
1641
1641
|
})) : I ? w.push({
|
|
1642
1642
|
key: l,
|
|
1643
1643
|
media: g,
|
|
1644
1644
|
selectorCondition: E,
|
|
1645
1645
|
childSelector: ie,
|
|
1646
|
-
declarations:
|
|
1647
|
-
}) : S.push(...
|
|
1646
|
+
declarations: M
|
|
1647
|
+
}) : S.push(...M);
|
|
1648
1648
|
});
|
|
1649
1649
|
} else if (p || v) {
|
|
1650
|
-
const T =
|
|
1650
|
+
const T = bt(t), C = St(t);
|
|
1651
1651
|
(C.length || r.has(i.transition)) && (S.push({
|
|
1652
1652
|
name: i.transition,
|
|
1653
1653
|
value: C.join(", ") || H.transition
|
|
@@ -1661,7 +1661,7 @@ function us(e, t, n, s, i, o) {
|
|
|
1661
1661
|
});
|
|
1662
1662
|
} else
|
|
1663
1663
|
S.push(
|
|
1664
|
-
...
|
|
1664
|
+
...Ae.filter(
|
|
1665
1665
|
(T) => r.has(i[T])
|
|
1666
1666
|
).map((T) => ({
|
|
1667
1667
|
name: i[T],
|
|
@@ -1680,8 +1680,8 @@ function fs(e, t, n) {
|
|
|
1680
1680
|
const o = e.keyframeEntries.get(n) || [];
|
|
1681
1681
|
e.keyframeEntries.set(n, [...o, { slotKey: t.slotKey, getNames: i }]);
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1684
|
-
const r = V(t), a = e.targetsMap.get(r) ||
|
|
1683
|
+
function Mt(e, t, n, s, i, o) {
|
|
1684
|
+
const r = V(t), a = e.targetsMap.get(r) || Ct(
|
|
1685
1685
|
t.key,
|
|
1686
1686
|
W(t, {
|
|
1687
1687
|
asCombinator: !0,
|
|
@@ -1690,11 +1690,11 @@ function kt(e, t, n, s, i, o) {
|
|
|
1690
1690
|
})
|
|
1691
1691
|
);
|
|
1692
1692
|
s.add(r);
|
|
1693
|
-
const c = o?.get(r) ||
|
|
1693
|
+
const c = o?.get(r) || Me, u = Ot(a, c);
|
|
1694
1694
|
if (e.collectSlots) {
|
|
1695
1695
|
fs(a, t, u.animation);
|
|
1696
|
-
const h =
|
|
1697
|
-
return
|
|
1696
|
+
const h = _t(t);
|
|
1697
|
+
return ke(
|
|
1698
1698
|
a,
|
|
1699
1699
|
{ animation: h === "animation", transition: h === "transition", timeline: !1 },
|
|
1700
1700
|
c
|
|
@@ -1709,13 +1709,13 @@ function kt(e, t, n, s, i, o) {
|
|
|
1709
1709
|
u,
|
|
1710
1710
|
i
|
|
1711
1711
|
);
|
|
1712
|
-
return f.forEach(({ name: h, keyframes: m }) => e.keyframesMap.set(h, m)),
|
|
1712
|
+
return f.forEach(({ name: h, keyframes: m }) => e.keyframesMap.set(h, m)), ke(a, d, c), e.targetsMap.set(r, a), l;
|
|
1713
1713
|
}
|
|
1714
1714
|
function ds(e, t, n, s) {
|
|
1715
1715
|
const i = [], o = /* @__PURE__ */ new Set(), r = os(t);
|
|
1716
1716
|
i.push(
|
|
1717
1717
|
...t.effects.flatMap(
|
|
1718
|
-
(c) =>
|
|
1718
|
+
(c) => Mt(e, c, n, o, t, r)
|
|
1719
1719
|
)
|
|
1720
1720
|
);
|
|
1721
1721
|
const { conditions: a } = t;
|
|
@@ -1726,7 +1726,7 @@ function ds(e, t, n, s) {
|
|
|
1726
1726
|
}), i;
|
|
1727
1727
|
}
|
|
1728
1728
|
function hs(e, t, n) {
|
|
1729
|
-
const { key: s, conditions: i, effects: o = [], sequences: r = [] } = t, a = e.plugins ?
|
|
1729
|
+
const { key: s, conditions: i, effects: o = [], sequences: r = [] } = t, a = e.plugins ? At(
|
|
1730
1730
|
"interaction",
|
|
1731
1731
|
t,
|
|
1732
1732
|
s,
|
|
@@ -1738,7 +1738,7 @@ function hs(e, t, n) {
|
|
|
1738
1738
|
}, l = /* @__PURE__ */ new Set();
|
|
1739
1739
|
c === "viewProgress" && a.push(ls(e, t, u.id, l));
|
|
1740
1740
|
const f = o.map((h, m) => {
|
|
1741
|
-
const p =
|
|
1741
|
+
const p = Tt(
|
|
1742
1742
|
h,
|
|
1743
1743
|
t,
|
|
1744
1744
|
e.config,
|
|
@@ -1747,7 +1747,7 @@ function hs(e, t, n) {
|
|
|
1747
1747
|
return p && Object.assign(p, { slotKey: pe(n, m) });
|
|
1748
1748
|
}).filter((h) => h !== null);
|
|
1749
1749
|
a.push(
|
|
1750
|
-
...f.flatMap((h) =>
|
|
1750
|
+
...f.flatMap((h) => Mt(e, h, u, l))
|
|
1751
1751
|
);
|
|
1752
1752
|
const d = r.map(
|
|
1753
1753
|
(h, m) => Bn(
|
|
@@ -1768,13 +1768,13 @@ function ms(e = {}) {
|
|
|
1768
1768
|
const { useFirstChild: t = !0, plugins: n } = typeof e == "boolean" ? { useFirstChild: e, plugins: void 0 } : e;
|
|
1769
1769
|
return { useFirstChild: t, plugins: n };
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1771
|
+
function kt(e, t) {
|
|
1772
1772
|
const { useFirstChild: n = !0, plugins: s, collectSlots: i = !1 } = t, o = {
|
|
1773
1773
|
config: e,
|
|
1774
1774
|
configConditions: e.conditions || {},
|
|
1775
1775
|
targetsMap: /* @__PURE__ */ new Map(),
|
|
1776
1776
|
keyframesMap: /* @__PURE__ */ new Map(),
|
|
1777
|
-
keyframeSlots: i ? /* @__PURE__ */ new Map() :
|
|
1777
|
+
keyframeSlots: i ? /* @__PURE__ */ new Map() : qt(e),
|
|
1778
1778
|
scopedTimelines: [],
|
|
1779
1779
|
collectSlots: i,
|
|
1780
1780
|
useFirstChild: n,
|
|
@@ -1787,8 +1787,8 @@ function At(e, t) {
|
|
|
1787
1787
|
function pe(e, t, n) {
|
|
1788
1788
|
return [e, n, t].filter((s) => s !== void 0).join(":");
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1791
|
-
const { ctx: t } =
|
|
1790
|
+
function qt(e) {
|
|
1791
|
+
const { ctx: t } = kt(e, { collectSlots: !0 }), n = /* @__PURE__ */ new Map(), s = (i) => i ? `-${i}` : void 0;
|
|
1792
1792
|
return t.targetsMap.forEach(({ keyframeEntries: i }) => {
|
|
1793
1793
|
const o = /* @__PURE__ */ new Set();
|
|
1794
1794
|
i.forEach((r) => {
|
|
@@ -1801,7 +1801,7 @@ function Mt(e) {
|
|
|
1801
1801
|
}), n;
|
|
1802
1802
|
}
|
|
1803
1803
|
function ps(e, t) {
|
|
1804
|
-
const { ctx: n, cssRules: s } =
|
|
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
1805
|
i.flatMap((h) => [
|
|
1806
1806
|
h,
|
|
1807
1807
|
...[...h.partSelectors].map((m) => ({ key: h.key, childSelector: m }))
|
|
@@ -1851,11 +1851,11 @@ function Es(e) {
|
|
|
1851
1851
|
return `${i(n)} 0px ${i(s)}`;
|
|
1852
1852
|
}
|
|
1853
1853
|
const Q = {}, R = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new WeakMap();
|
|
1854
|
-
let
|
|
1854
|
+
let Pt = {}, B = null;
|
|
1855
1855
|
function ws(e) {
|
|
1856
|
-
|
|
1856
|
+
Pt = e;
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1858
|
+
function Lt(e, t, n) {
|
|
1859
1859
|
R.get(e)?.forEach(({ source: i, handler: o }) => {
|
|
1860
1860
|
i === e && o(t, n);
|
|
1861
1861
|
});
|
|
@@ -1864,11 +1864,11 @@ function Ue() {
|
|
|
1864
1864
|
return B || (B = new IntersectionObserver((e) => {
|
|
1865
1865
|
e.forEach((t) => {
|
|
1866
1866
|
const n = t.target;
|
|
1867
|
-
t.isIntersecting ||
|
|
1867
|
+
t.isIntersecting || Lt(n, !1, !0);
|
|
1868
1868
|
});
|
|
1869
1869
|
}, vs), B);
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function xt(e, t = !1) {
|
|
1872
1872
|
const n = JSON.stringify({ ...e, isSafeMode: t });
|
|
1873
1873
|
if (Q[n])
|
|
1874
1874
|
return Q[n];
|
|
@@ -1887,19 +1887,19 @@ function Lt(e, t = !1) {
|
|
|
1887
1887
|
const d = Array.isArray(e.threshold) ? Math.min(...e.threshold) : e.threshold;
|
|
1888
1888
|
d && l * d > f && O.mutate(() => {
|
|
1889
1889
|
o.unobserve(c);
|
|
1890
|
-
const m =
|
|
1890
|
+
const m = xt(e, !0);
|
|
1891
1891
|
Y.set(c, m), m.observe(c);
|
|
1892
1892
|
});
|
|
1893
1893
|
});
|
|
1894
1894
|
return;
|
|
1895
1895
|
}
|
|
1896
|
-
(a.isIntersecting || !u) &&
|
|
1896
|
+
(a.isIntersecting || !u) && Lt(c, a.isIntersecting);
|
|
1897
1897
|
});
|
|
1898
1898
|
}, i);
|
|
1899
1899
|
return Q[n] = o, o;
|
|
1900
1900
|
}
|
|
1901
1901
|
function $s(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o, animation: r } = {}) {
|
|
1902
|
-
const a = { ...
|
|
1902
|
+
const a = { ...Pt, ...s }, c = n.triggerType || "once", u = r || te(
|
|
1903
1903
|
t,
|
|
1904
1904
|
F(n),
|
|
1905
1905
|
void 0,
|
|
@@ -1907,7 +1907,7 @@ function $s(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o, animation
|
|
|
1907
1907
|
);
|
|
1908
1908
|
if (!u)
|
|
1909
1909
|
return;
|
|
1910
|
-
const l =
|
|
1910
|
+
const l = xt(a);
|
|
1911
1911
|
c !== "once" && u.persist?.();
|
|
1912
1912
|
let f = !0, d = !1, h;
|
|
1913
1913
|
h = { source: e, target: t, handler: (v, y) => {
|
|
@@ -1939,7 +1939,7 @@ function $s(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o, animation
|
|
|
1939
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());
|
|
1940
1940
|
}, cleanup: () => {
|
|
1941
1941
|
(Y.get(e) || l).unobserve(e), (c === "repeat" || c === "state") && Ue().unobserve(e), u.cancel(), ge.delete(e), Y.delete(e);
|
|
1942
|
-
} },
|
|
1942
|
+
} }, k(R, e, h), k(R, t, h), Y.set(e, l), l.observe(e), (c === "repeat" || c === "state") && Ue().observe(e);
|
|
1943
1943
|
}
|
|
1944
1944
|
function bs(e) {
|
|
1945
1945
|
se(R, e);
|
|
@@ -1953,7 +1953,7 @@ const Is = {
|
|
|
1953
1953
|
setOptions: ws,
|
|
1954
1954
|
reset: Ss
|
|
1955
1955
|
};
|
|
1956
|
-
function
|
|
1956
|
+
function Ft(e, t) {
|
|
1957
1957
|
return Object.assign(Object.create(t), e);
|
|
1958
1958
|
}
|
|
1959
1959
|
function Ts(e, t, n, s) {
|
|
@@ -2043,13 +2043,13 @@ function _s(e, t, n, s, i, o) {
|
|
|
2043
2043
|
}
|
|
2044
2044
|
return !h && !c && (h = l - u), { ...e, start: u, end: l, startRange: f, endRange: d, duration: h || c };
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function As(e) {
|
|
2047
2047
|
return e.position === "sticky";
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function Ms(e, t, n) {
|
|
2050
2050
|
return e.position === "fixed" && (!t || t === window.document.body || t === n);
|
|
2051
2051
|
}
|
|
2052
|
-
function
|
|
2052
|
+
function ks(e, t) {
|
|
2053
2053
|
return parseInt(t ? e.left : e.top);
|
|
2054
2054
|
}
|
|
2055
2055
|
function qs(e, t) {
|
|
@@ -2062,15 +2062,15 @@ function Ps(e, t, n) {
|
|
|
2062
2062
|
}
|
|
2063
2063
|
function Ls(e, t) {
|
|
2064
2064
|
let n;
|
|
2065
|
-
const s =
|
|
2065
|
+
const s = ks(e, t), i = qs(e, t), o = !isNaN(s), r = !isNaN(i);
|
|
2066
2066
|
return (o || r) && (n = {}, o && (n.start = s), r && (n.end = i)), n;
|
|
2067
2067
|
}
|
|
2068
2068
|
function re(e, t, n, s, i) {
|
|
2069
2069
|
const o = e[0].viewSource, r = [];
|
|
2070
2070
|
let a = (s ? o.offsetWidth : o.offsetHeight) || 0, c = 0, u = o;
|
|
2071
2071
|
for (; u; ) {
|
|
2072
|
-
const f = window.getComputedStyle(u), d =
|
|
2073
|
-
if ((!h || !("end" in h)) && (c += m), r.push({ element: u, offset: m, sticky: h }), u = u.offsetParent,
|
|
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))
|
|
2074
2074
|
break;
|
|
2075
2075
|
if (u === t) {
|
|
2076
2076
|
r.push({ element: u, offset: 0 });
|
|
@@ -2110,7 +2110,7 @@ function Rs() {
|
|
|
2110
2110
|
};
|
|
2111
2111
|
}
|
|
2112
2112
|
function Ns(e) {
|
|
2113
|
-
const t =
|
|
2113
|
+
const t = Ft(e, xs), n = t.root, s = t.horizontal, i = /* @__PURE__ */ new WeakMap();
|
|
2114
2114
|
let o = Ze(n, s), r, a, c, u, l;
|
|
2115
2115
|
const f = [], d = Rs();
|
|
2116
2116
|
if (t.scenes = Object.values(
|
|
@@ -2205,7 +2205,7 @@ const js = {
|
|
|
2205
2205
|
};
|
|
2206
2206
|
class zs {
|
|
2207
2207
|
constructor(t = {}) {
|
|
2208
|
-
this.config =
|
|
2208
|
+
this.config = Ft(t, js), this.progress = {
|
|
2209
2209
|
p: 0,
|
|
2210
2210
|
prevP: 0,
|
|
2211
2211
|
vp: 0
|
|
@@ -2298,9 +2298,9 @@ class zs {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
}
|
|
2300
2300
|
const qe = /* @__PURE__ */ new WeakMap();
|
|
2301
|
-
let
|
|
2301
|
+
let Rt = () => ({});
|
|
2302
2302
|
function Hs(e) {
|
|
2303
|
-
|
|
2303
|
+
Rt = e;
|
|
2304
2304
|
}
|
|
2305
2305
|
function Ds(e, t, n, s, { reducedMotion: i, selectorCondition: o }) {
|
|
2306
2306
|
if (i || o && !t.matches(o)) return;
|
|
@@ -2321,7 +2321,7 @@ function Ds(e, t, n, s, { reducedMotion: i, selectorCondition: o }) {
|
|
|
2321
2321
|
});
|
|
2322
2322
|
});
|
|
2323
2323
|
} else {
|
|
2324
|
-
const l =
|
|
2324
|
+
const l = wt(t, a, r);
|
|
2325
2325
|
if (l) {
|
|
2326
2326
|
const f = Array.isArray(l) ? l : [l], d = new zs({
|
|
2327
2327
|
viewSource: e,
|
|
@@ -2330,7 +2330,7 @@ function Ds(e, t, n, s, { reducedMotion: i, selectorCondition: o }) {
|
|
|
2330
2330
|
observeViewportResize: !1,
|
|
2331
2331
|
observeSourcesResize: !0,
|
|
2332
2332
|
root: document.body,
|
|
2333
|
-
...
|
|
2333
|
+
...Rt()
|
|
2334
2334
|
});
|
|
2335
2335
|
c = () => {
|
|
2336
2336
|
d.destroy();
|
|
@@ -2343,7 +2343,7 @@ function Ds(e, t, n, s, { reducedMotion: i, selectorCondition: o }) {
|
|
|
2343
2343
|
}
|
|
2344
2344
|
if (!c) return;
|
|
2345
2345
|
const u = { source: e, target: t, cleanup: c };
|
|
2346
|
-
|
|
2346
|
+
k(qe, e, u), k(qe, t, u);
|
|
2347
2347
|
}
|
|
2348
2348
|
function Gs(e) {
|
|
2349
2349
|
se(qe, e);
|
|
@@ -2609,9 +2609,9 @@ class ii {
|
|
|
2609
2609
|
}
|
|
2610
2610
|
}
|
|
2611
2611
|
const Pe = /* @__PURE__ */ new WeakMap();
|
|
2612
|
-
let
|
|
2612
|
+
let Nt = () => ({});
|
|
2613
2613
|
function oi(e) {
|
|
2614
|
-
|
|
2614
|
+
Nt = e;
|
|
2615
2615
|
}
|
|
2616
2616
|
function ri(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o }) {
|
|
2617
2617
|
if (i || o && !t.matches(o)) return;
|
|
@@ -2619,16 +2619,16 @@ function ri(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o }) {
|
|
|
2619
2619
|
trigger: "pointer-move",
|
|
2620
2620
|
element: e,
|
|
2621
2621
|
axis: s.axis ?? "y"
|
|
2622
|
-
}, a =
|
|
2622
|
+
}, a = wt(t, F(n), r);
|
|
2623
2623
|
if (a) {
|
|
2624
2624
|
const c = Array.isArray(a) ? a : [a], u = new ii({
|
|
2625
2625
|
root: s.hitArea === "self" ? e : void 0,
|
|
2626
2626
|
scenes: c,
|
|
2627
|
-
...
|
|
2627
|
+
...Nt()
|
|
2628
2628
|
}), f = { source: e, target: t, cleanup: () => {
|
|
2629
2629
|
u.destroy();
|
|
2630
2630
|
} };
|
|
2631
|
-
|
|
2631
|
+
k(Pe, e, f), k(Pe, t, f), Promise.all(
|
|
2632
2632
|
c.map((d) => d.ready || Promise.resolve())
|
|
2633
2633
|
).then(() => {
|
|
2634
2634
|
u.start();
|
|
@@ -2659,7 +2659,7 @@ function li(e, t, n, s, {
|
|
|
2659
2659
|
return;
|
|
2660
2660
|
const { effectId: u } = s, l = (h) => {
|
|
2661
2661
|
if (o && !t.matches(o)) return;
|
|
2662
|
-
const m = h.animationName, p = h.detail?.effectId, v = a ?
|
|
2662
|
+
const m = h.animationName, p = h.detail?.effectId, v = a ? Et(e, a) : null;
|
|
2663
2663
|
if (v) {
|
|
2664
2664
|
if (v.playState === "running" || m && !v.hasAnimationName(m))
|
|
2665
2665
|
return;
|
|
@@ -2670,7 +2670,7 @@ function li(e, t, n, s, {
|
|
|
2670
2670
|
}, d = { source: e, target: t, cleanup: () => {
|
|
2671
2671
|
c.cancel(), e.removeEventListener("animationend", l);
|
|
2672
2672
|
} };
|
|
2673
|
-
|
|
2673
|
+
k(Le, e, d), k(Le, t, d), e.addEventListener("animationend", l);
|
|
2674
2674
|
}
|
|
2675
2675
|
function ui(e) {
|
|
2676
2676
|
se(Le, e);
|
|
@@ -2809,7 +2809,7 @@ function bi(e, t, n, s, {
|
|
|
2809
2809
|
const y = { source: e, target: t, cleanup: () => {
|
|
2810
2810
|
m.abort();
|
|
2811
2811
|
} };
|
|
2812
|
-
if (
|
|
2812
|
+
if (k(xe, e, y), k(xe, t, y), l) {
|
|
2813
2813
|
const g = c.enter, E = c.leave;
|
|
2814
2814
|
g.forEach((S) => {
|
|
2815
2815
|
S === "focusin" && (e.tabIndex = 0), p(e, S, { passive: !0, once: d });
|
|
@@ -3004,7 +3004,7 @@ class $ {
|
|
|
3004
3004
|
static addToSequence(t, n, s, i) {
|
|
3005
3005
|
const o = $.sequenceCache.get(t);
|
|
3006
3006
|
if (!o) return !1;
|
|
3007
|
-
const a =
|
|
3007
|
+
const a = $t(n, i).map((c, u) => ({
|
|
3008
3008
|
index: s[u] ?? o.animationGroups.length,
|
|
3009
3009
|
group: c
|
|
3010
3010
|
}));
|
|
@@ -3068,7 +3068,7 @@ function Ci(e, t, n) {
|
|
|
3068
3068
|
} : e;
|
|
3069
3069
|
}
|
|
3070
3070
|
function Oi(e, t = !1) {
|
|
3071
|
-
const { effects: n = {}, sequences: s = {}, conditions: i = {} } = e, o = {}, r = e.interactions ?
|
|
3071
|
+
const { effects: n = {}, sequences: s = {}, conditions: i = {} } = e, o = {}, r = e.interactions ? qt(e) : /* @__PURE__ */ new Map();
|
|
3072
3072
|
return e.interactions?.forEach((a, c) => {
|
|
3073
3073
|
const u = a.key, l = ++Ti, { effects: f, sequences: d, ...h } = a;
|
|
3074
3074
|
if (!u) {
|
|
@@ -3122,8 +3122,8 @@ function Oi(e, t = !1) {
|
|
|
3122
3122
|
C = C || u;
|
|
3123
3123
|
const _ = W(S, { useFirstChild: t });
|
|
3124
3124
|
if (_ && o[u].selectors.add(_), C !== u) {
|
|
3125
|
-
const I = Ce(o, C),
|
|
3126
|
-
I.sequences[
|
|
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({
|
|
3127
3127
|
...h,
|
|
3128
3128
|
sequence: E
|
|
3129
3129
|
}), I.selectors.add(_);
|
|
@@ -3169,13 +3169,13 @@ function ye(e, t, n) {
|
|
|
3169
3169
|
function Ee(e, t) {
|
|
3170
3170
|
return t.map((n) => e.selector ? n.querySelector(e.selector) : n).filter(Boolean);
|
|
3171
3171
|
}
|
|
3172
|
-
function
|
|
3172
|
+
function jt(e, t, n, s, i, o, r, a) {
|
|
3173
3173
|
return [
|
|
3174
3174
|
r ? Ee(e, r) : ye(e, n, s),
|
|
3175
3175
|
a ? Ee(t, a) : ye(t, i, o)
|
|
3176
3176
|
];
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function zt(e, t, n, s, i, o, r, a) {
|
|
3179
3179
|
const c = Array.isArray(s), u = Array.isArray(i);
|
|
3180
3180
|
c ? s.forEach((l, f) => {
|
|
3181
3181
|
const d = u ? i[f] : i;
|
|
@@ -3204,7 +3204,7 @@ function jt(e, t, n, s, i, o, r, a) {
|
|
|
3204
3204
|
);
|
|
3205
3205
|
});
|
|
3206
3206
|
}
|
|
3207
|
-
function
|
|
3207
|
+
function Ht(e, t, n, s, i) {
|
|
3208
3208
|
const o = {}, r = [];
|
|
3209
3209
|
(s.effects || []).forEach((a, c) => {
|
|
3210
3210
|
const u = a.effectId, l = {
|
|
@@ -3234,7 +3234,7 @@ function zt(e, t, n, s, i) {
|
|
|
3234
3234
|
m || s.key,
|
|
3235
3235
|
"effect"
|
|
3236
3236
|
);
|
|
3237
|
-
const [v, y] =
|
|
3237
|
+
const [v, y] = jt(
|
|
3238
3238
|
s,
|
|
3239
3239
|
l,
|
|
3240
3240
|
t.element,
|
|
@@ -3262,13 +3262,13 @@ function zt(e, t, n, s, i) {
|
|
|
3262
3262
|
]);
|
|
3263
3263
|
}
|
|
3264
3264
|
}), r.reverse().forEach((a) => {
|
|
3265
|
-
|
|
3266
|
-
}),
|
|
3265
|
+
zt(...a);
|
|
3266
|
+
}), Ai(e, t, n, s, i);
|
|
3267
3267
|
}
|
|
3268
3268
|
function _i(e) {
|
|
3269
3269
|
return "sequenceId" in e && !("effects" in e);
|
|
3270
3270
|
}
|
|
3271
|
-
function
|
|
3271
|
+
function Dt(e, t, n, s, i, o, r) {
|
|
3272
3272
|
const a = L(e.conditions || [], i.dataCache.conditions);
|
|
3273
3273
|
if (a && i.setupMediaQueryListener(t, a, o.updateKey, o.onUpdate), a && !a.matches) return null;
|
|
3274
3274
|
const c = e.effects || [], u = [];
|
|
@@ -3333,7 +3333,7 @@ function Ne(e, t, n, s, i) {
|
|
|
3333
3333
|
);
|
|
3334
3334
|
});
|
|
3335
3335
|
}
|
|
3336
|
-
function
|
|
3336
|
+
function Gt(e, t, n) {
|
|
3337
3337
|
const o = (e.useFirstChild ? e.element.firstElementChild : e.element)?.querySelector(t);
|
|
3338
3338
|
if (!o) return n.map((a, c) => c);
|
|
3339
3339
|
const r = Array.from(o.children);
|
|
@@ -3342,7 +3342,7 @@ function Dt(e, t, n) {
|
|
|
3342
3342
|
return c >= 0 ? c : r.length;
|
|
3343
3343
|
});
|
|
3344
3344
|
}
|
|
3345
|
-
function
|
|
3345
|
+
function Ai(e, t, n, s, i) {
|
|
3346
3346
|
s.sequences?.forEach((o) => {
|
|
3347
3347
|
let r;
|
|
3348
3348
|
if (_i(o)) {
|
|
@@ -3356,7 +3356,7 @@ function ki(e, t, n, s, i) {
|
|
|
3356
3356
|
r = o;
|
|
3357
3357
|
const a = r.sequenceId || J(), c = q(`${e}::seq::${a}`, e);
|
|
3358
3358
|
if (n.addedInteractions[c] && !i) return;
|
|
3359
|
-
const u = i && s.listContainer ? { controllerKey: e, listContainer: s.listContainer, elements: i } : void 0, l =
|
|
3359
|
+
const u = i && s.listContainer ? { controllerKey: e, listContainer: s.listContainer, elements: i } : void 0, l = Dt(
|
|
3360
3360
|
r,
|
|
3361
3361
|
c,
|
|
3362
3362
|
e,
|
|
@@ -3367,7 +3367,7 @@ function ki(e, t, n, s, i) {
|
|
|
3367
3367
|
);
|
|
3368
3368
|
if (!l) return;
|
|
3369
3369
|
if (i && n.addedInteractions[c]) {
|
|
3370
|
-
const m =
|
|
3370
|
+
const m = Gt(
|
|
3371
3371
|
t,
|
|
3372
3372
|
s.listContainer,
|
|
3373
3373
|
i
|
|
@@ -3405,7 +3405,7 @@ function ki(e, t, n, s, i) {
|
|
|
3405
3405
|
));
|
|
3406
3406
|
});
|
|
3407
3407
|
}
|
|
3408
|
-
function
|
|
3408
|
+
function Mi(e, t, n, s, i) {
|
|
3409
3409
|
const o = n.get(e)?.sequences || {};
|
|
3410
3410
|
Object.keys(o).forEach((a) => {
|
|
3411
3411
|
o[a].some(({ sequence: u, ...l }) => {
|
|
@@ -3421,7 +3421,7 @@ function Ai(e, t, n, s, i) {
|
|
|
3421
3421
|
const m = u.sequenceId || J(), p = q(`${d}::seq::${m}`, d);
|
|
3422
3422
|
if (n.addedInteractions[p] && !i)
|
|
3423
3423
|
return !0;
|
|
3424
|
-
const y =
|
|
3424
|
+
const y = Dt(
|
|
3425
3425
|
u,
|
|
3426
3426
|
p,
|
|
3427
3427
|
d,
|
|
@@ -3432,7 +3432,7 @@ function Ai(e, t, n, s, i) {
|
|
|
3432
3432
|
);
|
|
3433
3433
|
if (!y) return !0;
|
|
3434
3434
|
if (i && n.addedInteractions[p]) {
|
|
3435
|
-
const b =
|
|
3435
|
+
const b = Gt(t, s, i);
|
|
3436
3436
|
return $.addToSequence(p, y, b, {
|
|
3437
3437
|
reducedMotion: $.forceReducedMotion
|
|
3438
3438
|
}), !0;
|
|
@@ -3453,7 +3453,7 @@ function Ai(e, t, n, s, i) {
|
|
|
3453
3453
|
});
|
|
3454
3454
|
});
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3456
|
+
function Wt(e, t, n, s, i) {
|
|
3457
3457
|
const o = n.get(e), r = o?.effects || {}, a = Object.keys(r), c = [];
|
|
3458
3458
|
a.forEach((l) => {
|
|
3459
3459
|
const f = q(l, e);
|
|
@@ -3492,7 +3492,7 @@ function Gt(e, t, n, s, i) {
|
|
|
3492
3492
|
e,
|
|
3493
3493
|
"effect"
|
|
3494
3494
|
), g.listContainer && t.watchChildList(g.listContainer);
|
|
3495
|
-
const [S, T] =
|
|
3495
|
+
const [S, T] = jt(
|
|
3496
3496
|
m,
|
|
3497
3497
|
g,
|
|
3498
3498
|
b.element,
|
|
@@ -3523,8 +3523,8 @@ function Gt(e, t, n, s, i) {
|
|
|
3523
3523
|
return !1;
|
|
3524
3524
|
});
|
|
3525
3525
|
}), c.reverse().forEach((l) => {
|
|
3526
|
-
|
|
3527
|
-
}),
|
|
3526
|
+
zt(...l);
|
|
3527
|
+
}), Mi(e, t, n, s, i);
|
|
3528
3528
|
const u = Object.keys(o?.sequences || {}).length > 0;
|
|
3529
3529
|
return a.length > 0 || u;
|
|
3530
3530
|
}
|
|
@@ -3560,7 +3560,7 @@ function it(e, t, n, s, i, o, r, a, c) {
|
|
|
3560
3560
|
sourceAnimationOptions: l
|
|
3561
3561
|
});
|
|
3562
3562
|
}
|
|
3563
|
-
function
|
|
3563
|
+
function ki(e) {
|
|
3564
3564
|
const t = e.key, n = $.getInstance(t);
|
|
3565
3565
|
if (!n)
|
|
3566
3566
|
return console.warn(`No instance found for key: ${t}`), $.setController(t, e), !1;
|
|
@@ -3573,10 +3573,10 @@ function Mi(e) {
|
|
|
3573
3573
|
e.update();
|
|
3574
3574
|
});
|
|
3575
3575
|
}
|
|
3576
|
-
(!c || c.matches) && ($e(e, e.element, r, t, "interaction"), r.listContainer && e.watchChildList(r.listContainer),
|
|
3576
|
+
(!c || c.matches) && ($e(e, e.element, r, t, "interaction"), r.listContainer && e.watchChildList(r.listContainer), Ht(t, e, n, r));
|
|
3577
3577
|
});
|
|
3578
3578
|
let o = !1;
|
|
3579
|
-
return n && (o =
|
|
3579
|
+
return n && (o = Wt(t, e, n)), i || o;
|
|
3580
3580
|
}
|
|
3581
3581
|
function qi(e, t, n) {
|
|
3582
3582
|
const s = e.key, i = $.getInstance(s);
|
|
@@ -3592,8 +3592,8 @@ function qi(e, t, n) {
|
|
|
3592
3592
|
e.update();
|
|
3593
3593
|
});
|
|
3594
3594
|
}
|
|
3595
|
-
(!c || c.matches) &&
|
|
3596
|
-
}),
|
|
3595
|
+
(!c || c.matches) && Ht(s, e, i, r, n);
|
|
3596
|
+
}), Wt(s, e, i, t, n);
|
|
3597
3597
|
}
|
|
3598
3598
|
}
|
|
3599
3599
|
function Pi(e, t = !1) {
|
|
@@ -3602,9 +3602,9 @@ function Pi(e, t = !1) {
|
|
|
3602
3602
|
return;
|
|
3603
3603
|
const i = [...s.get(n)?.selectors.values() || []].filter(Boolean).join(",");
|
|
3604
3604
|
let o;
|
|
3605
|
-
i ? (o = [...e.element.querySelectorAll(i)], e.useFirstChild || o.push(e.element)) : o = [e.element],
|
|
3605
|
+
i ? (o = [...e.element.querySelectorAll(i)], e.useFirstChild || o.push(e.element)) : o = [e.element], Vt(o), s.deleteController(n, t);
|
|
3606
3606
|
}
|
|
3607
|
-
function
|
|
3607
|
+
function Vt(e) {
|
|
3608
3608
|
const t = Object.values(G);
|
|
3609
3609
|
for (const n of e)
|
|
3610
3610
|
for (const s of t)
|
|
@@ -3634,7 +3634,7 @@ class Li {
|
|
|
3634
3634
|
}
|
|
3635
3635
|
n !== t && (n && console.warn(
|
|
3636
3636
|
`Interact: Key mismatch between element ${n} and parameter ${t}, updating element key`
|
|
3637
|
-
), this.element.dataset.interactKey = t), this.key = t, this.connected =
|
|
3637
|
+
), this.element.dataset.interactKey = t), this.key = t, this.connected = ki(this);
|
|
3638
3638
|
}
|
|
3639
3639
|
disconnect({ removeFromCache: t = !1 } = {}) {
|
|
3640
3640
|
if ((this.key || this.element.dataset.interactKey) && Pi(this, t), this._pluginCleanups.length) {
|
|
@@ -3703,7 +3703,7 @@ class Li {
|
|
|
3703
3703
|
}), r.addedNodes.forEach((a) => {
|
|
3704
3704
|
a instanceof HTMLElement && o.push(a);
|
|
3705
3705
|
});
|
|
3706
|
-
}),
|
|
3706
|
+
}), Vt(i), s && qi(this, t, o);
|
|
3707
3707
|
}
|
|
3708
3708
|
}
|
|
3709
3709
|
function Fi(e, t) {
|
|
@@ -3720,4 +3720,4 @@ export {
|
|
|
3720
3720
|
xi as g,
|
|
3721
3721
|
Ri as r
|
|
3722
3722
|
};
|
|
3723
|
-
//# sourceMappingURL=index-
|
|
3723
|
+
//# sourceMappingURL=index-YKqGJSeK.mjs.map
|