@wix/interact 2.5.18 → 2.5.20
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-52_TK7E2.mjs → index-BwQcAOxd.mjs} +284 -279
- package/dist/index-BwQcAOxd.mjs.map +1 -0
- package/dist/{index-C2vE7jWq.js → index-d29S3IRs.js} +9 -7
- package/dist/index-d29S3IRs.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/core/css.d.ts +1 -0
- package/dist/types/core/css.d.ts.map +1 -1
- package/dist/types/handlers/pointerMove.d.ts +1 -1
- package/dist/types/handlers/pointerMove.d.ts.map +1 -1
- package/dist/types/handlers/viewProgress.d.ts +1 -1
- package/dist/types/handlers/viewProgress.d.ts.map +1 -1
- package/docs/api/functions.md +2 -0
- package/package.json +2 -2
- package/dist/index-52_TK7E2.mjs.map +0 -1
- package/dist/index-C2vE7jWq.js.map +0 -1
|
@@ -153,22 +153,22 @@ const et = (e) => e, zt = (e) => 1 - Math.cos(e * Math.PI / 2), Ht = (e) => Math
|
|
|
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),
|
|
157
|
-
if (
|
|
158
|
-
const y = 2 * Math.sqrt(-
|
|
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})`;
|
|
157
|
+
if (p < 0) {
|
|
158
|
+
const y = 2 * Math.sqrt(-p);
|
|
159
159
|
let v = 0;
|
|
160
160
|
for (const $ of [0, 1, 2])
|
|
161
161
|
[0, 0.25, 0.5, 0.75, 1].every((S) => {
|
|
162
162
|
const C = Math.min(
|
|
163
|
-
Math.max(2 * (
|
|
163
|
+
Math.max(2 * (h - 27 * a * a * S) / (m * p * y), -1),
|
|
164
164
|
1
|
|
165
165
|
), O = y * Math.cos((Math.acos(C) - $ * 2 * Math.PI) / 3) - d;
|
|
166
166
|
return O >= -1e-6 && O <= 1.000001;
|
|
167
167
|
}) && (v = $);
|
|
168
|
-
const E = `(acos(clamp(-1, ${2 / (
|
|
168
|
+
const E = `(acos(clamp(-1, ${2 / (p * y)} * ${g}, 1)) - ${360 * v}deg) / 3`;
|
|
169
169
|
f = `(${y} * cos(${E}) - ${d})`;
|
|
170
170
|
} else {
|
|
171
|
-
const y = `sqrt(pow(${g}, 2) + ${Math.pow(
|
|
171
|
+
const y = `sqrt(pow(${g}, 2) + ${Math.pow(p, 3)})`;
|
|
172
172
|
f = `(pow(${y} - ${g}, 1 / 3) - pow(${y} + ${g}, 1 / 3) - ${d})`;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
@@ -275,25 +275,25 @@ function ae(e) {
|
|
|
275
275
|
return e ? Ne[e] || e : Ne.linear;
|
|
276
276
|
}
|
|
277
277
|
function vn(e, t, n, s) {
|
|
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 = (
|
|
279
|
-
function
|
|
280
|
-
let
|
|
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
|
+
function h(m) {
|
|
280
|
+
let p = m;
|
|
281
281
|
for (let v = 0; v < 8; v++) {
|
|
282
|
-
const E = l(
|
|
283
|
-
if (Math.abs(E) < 1e-7) return
|
|
284
|
-
const $ = d(
|
|
282
|
+
const E = l(p) - m;
|
|
283
|
+
if (Math.abs(E) < 1e-7) return p;
|
|
284
|
+
const $ = d(p);
|
|
285
285
|
if (Math.abs($) < 1e-6) break;
|
|
286
|
-
|
|
286
|
+
p -= E / $;
|
|
287
287
|
}
|
|
288
288
|
let g = 0, y = 1;
|
|
289
|
-
for (
|
|
290
|
-
const v = l(
|
|
291
|
-
if (Math.abs(v -
|
|
292
|
-
|
|
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;
|
|
293
293
|
}
|
|
294
|
-
return
|
|
294
|
+
return p;
|
|
295
295
|
}
|
|
296
|
-
return (
|
|
296
|
+
return (m) => m <= 0 ? 0 : m >= 1 ? 1 : f(h(m));
|
|
297
297
|
}
|
|
298
298
|
function nt(e) {
|
|
299
299
|
const t = e.match(
|
|
@@ -430,12 +430,12 @@ class Sn extends Z {
|
|
|
430
430
|
i.animations.forEach((r, a) => {
|
|
431
431
|
const c = r.effect;
|
|
432
432
|
if (!c) return;
|
|
433
|
-
const { delay: u, duration: l, iterations: f } = this.timingOptions[o][a], d = u + t[o],
|
|
433
|
+
const { delay: u, duration: l, iterations: f } = this.timingOptions[o][a], d = u + t[o], h = n - (d + l * f);
|
|
434
434
|
if (i.isCSS && this.sequenceId) {
|
|
435
|
-
const { target:
|
|
436
|
-
|
|
435
|
+
const { target: m } = c;
|
|
436
|
+
m instanceof HTMLElement && (m.style.setProperty(`--motion-${this.sequenceId}-index`, `${o}`), m.style.setProperty(`--motion-${this.sequenceId}-last`, `${s}`)), c.updateTiming({ endDelay: h });
|
|
437
437
|
} else
|
|
438
|
-
c.updateTiming({ delay: d + this.delay, endDelay:
|
|
438
|
+
c.updateTiming({ delay: d + this.delay, endDelay: h });
|
|
439
439
|
});
|
|
440
440
|
});
|
|
441
441
|
}
|
|
@@ -742,15 +742,15 @@ function Cn() {
|
|
|
742
742
|
l.scheduled || (l.scheduled = !0, l.raf(r.bind(null, l)));
|
|
743
743
|
}
|
|
744
744
|
function r(l) {
|
|
745
|
-
var f = l.writes, d = l.reads,
|
|
745
|
+
var f = l.writes, d = l.reads, h;
|
|
746
746
|
try {
|
|
747
747
|
n("flushing reads", d.length), l.runTasks(d), n("flushing writes", f.length), l.runTasks(f);
|
|
748
|
-
} catch (
|
|
749
|
-
|
|
748
|
+
} catch (m) {
|
|
749
|
+
h = m;
|
|
750
750
|
}
|
|
751
|
-
if (l.scheduled = !1, (d.length || f.length) && o(l),
|
|
752
|
-
if (n("task errored",
|
|
753
|
-
else throw
|
|
751
|
+
if (l.scheduled = !1, (d.length || f.length) && o(l), h)
|
|
752
|
+
if (n("task errored", h.message), l.catch) l.catch(h);
|
|
753
|
+
else throw h;
|
|
754
754
|
}
|
|
755
755
|
function a(l, f) {
|
|
756
756
|
var d = l.indexOf(f);
|
|
@@ -862,16 +862,16 @@ function ut(e, t, n, s, i) {
|
|
|
862
862
|
...t,
|
|
863
863
|
namedEffect: { id: "", type: "CustomMouse" }
|
|
864
864
|
});
|
|
865
|
-
const
|
|
865
|
+
const h = Q(
|
|
866
866
|
d
|
|
867
|
-
),
|
|
868
|
-
|
|
867
|
+
), m = De(
|
|
868
|
+
h,
|
|
869
869
|
t,
|
|
870
870
|
o,
|
|
871
871
|
n,
|
|
872
872
|
s
|
|
873
873
|
);
|
|
874
|
-
return typeof
|
|
874
|
+
return typeof m != "function" ? null : m(o);
|
|
875
875
|
}
|
|
876
876
|
const r = Q(t), a = De(
|
|
877
877
|
r,
|
|
@@ -888,15 +888,15 @@ function ut(e, t, n, s, i) {
|
|
|
888
888
|
l && window.ViewTimeline && (u = new ViewTimeline({
|
|
889
889
|
subject: n.element || W(n.componentId)
|
|
890
890
|
}));
|
|
891
|
-
const f = c.map(({ effect: d, options:
|
|
892
|
-
const g =
|
|
891
|
+
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
893
|
_.mutate(() => {
|
|
894
894
|
"timing" in d && y.updateTiming(d.timing), y.setKeyframes(d.keyframes);
|
|
895
895
|
});
|
|
896
896
|
const v = l && u ? { timeline: u } : {}, E = typeof d.customEffect == "function" ? new In(
|
|
897
897
|
d.customEffect,
|
|
898
898
|
g || null,
|
|
899
|
-
|
|
899
|
+
h,
|
|
900
900
|
v
|
|
901
901
|
) : new Animation(y, v.timeline);
|
|
902
902
|
if (l)
|
|
@@ -923,7 +923,7 @@ function ut(e, t, n, s, i) {
|
|
|
923
923
|
});
|
|
924
924
|
});
|
|
925
925
|
}
|
|
926
|
-
return
|
|
926
|
+
return m && (E.id = m), E;
|
|
927
927
|
});
|
|
928
928
|
return new Z(f, {
|
|
929
929
|
...t,
|
|
@@ -936,22 +936,22 @@ function qn(e, t) {
|
|
|
936
936
|
return e ? `#${e}${t ? `[data-motion-part~="${t}"]` : ""}` : "";
|
|
937
937
|
}
|
|
938
938
|
function Mn(e, t, n) {
|
|
939
|
-
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:
|
|
940
|
-
let
|
|
941
|
-
if (f && typeof
|
|
942
|
-
const g = bn(
|
|
939
|
+
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
|
+
let p = `${i ?? 0}ms`;
|
|
941
|
+
if (f && typeof m == "string") {
|
|
942
|
+
const g = bn(m);
|
|
943
943
|
if (g) {
|
|
944
944
|
const y = (i ?? 0) + (d ?? 0);
|
|
945
|
-
if (
|
|
945
|
+
if (h) {
|
|
946
946
|
const v = g(
|
|
947
947
|
`(var(--motion-${f}-index, 0) / var(--motion-${f}-last, 1))`
|
|
948
948
|
);
|
|
949
|
-
|
|
949
|
+
p = `calc(${`(${y} + ${v} * ${h} * var(--motion-${f}-last, 1))`} * 1ms)`;
|
|
950
950
|
} else
|
|
951
|
-
|
|
951
|
+
p = `${y}ms`;
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
|
-
return `${u} ${l ? "auto" : `${s}ms`}${l ? " " : ` ${
|
|
954
|
+
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
955
|
}
|
|
956
956
|
function Pn(e, t, n) {
|
|
957
957
|
return e?.style ? (Le(n) && (t.duration = t.duration || 1), e.style(t)) : [];
|
|
@@ -1022,9 +1022,9 @@ function dt(e, t, n, s = {}) {
|
|
|
1022
1022
|
getProgress() {
|
|
1023
1023
|
return a.getProgress();
|
|
1024
1024
|
},
|
|
1025
|
-
effect(d,
|
|
1026
|
-
const { activeDuration:
|
|
1027
|
-
f.currentTime = ((
|
|
1025
|
+
effect(d, h) {
|
|
1026
|
+
const { activeDuration: m } = f.effect.getComputedTiming(), { delay: p } = f.effect.getTiming();
|
|
1027
|
+
f.currentTime = ((p || 0) + (m || 0)) * h;
|
|
1028
1028
|
},
|
|
1029
1029
|
disabled: i,
|
|
1030
1030
|
destroy() {
|
|
@@ -1032,24 +1032,24 @@ function dt(e, t, n, s = {}) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
}));
|
|
1034
1034
|
} else if (n.trigger === "pointer-move") {
|
|
1035
|
-
const u = t, { centeredToTarget: l, transitionDuration: f, transitionEasing: d } = u,
|
|
1035
|
+
const u = t, { centeredToTarget: l, transitionDuration: f, transitionEasing: d } = u, h = n.axis;
|
|
1036
1036
|
if (u.keyframeEffect) {
|
|
1037
|
-
const
|
|
1038
|
-
return
|
|
1037
|
+
const m = a;
|
|
1038
|
+
return m.animations?.length === 0 ? null : {
|
|
1039
1039
|
target: void 0,
|
|
1040
1040
|
centeredToTarget: l,
|
|
1041
|
-
ready:
|
|
1041
|
+
ready: m.ready,
|
|
1042
1042
|
_currentProgress: 0,
|
|
1043
1043
|
getProgress() {
|
|
1044
1044
|
return this._currentProgress;
|
|
1045
1045
|
},
|
|
1046
1046
|
effect(g, y) {
|
|
1047
|
-
const v =
|
|
1048
|
-
this._currentProgress = v,
|
|
1047
|
+
const v = h === "x" ? y.x : y.y;
|
|
1048
|
+
this._currentProgress = v, m.progress(v);
|
|
1049
1049
|
},
|
|
1050
1050
|
disabled: i ?? !1,
|
|
1051
1051
|
destroy() {
|
|
1052
|
-
|
|
1052
|
+
m.cancel();
|
|
1053
1053
|
}
|
|
1054
1054
|
};
|
|
1055
1055
|
}
|
|
@@ -1168,8 +1168,8 @@ function Dn({
|
|
|
1168
1168
|
transition: n,
|
|
1169
1169
|
transitionProperties: s
|
|
1170
1170
|
}), a = mt({ transition: n, transitionProperties: s }).map(
|
|
1171
|
-
(
|
|
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,
|
|
1171
|
+
(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
1173
|
`${f},
|
|
1174
1174
|
${d} {
|
|
1175
1175
|
${a.join(`
|
|
@@ -1177,12 +1177,12 @@ function Dn({
|
|
|
1177
1177
|
}`
|
|
1178
1178
|
];
|
|
1179
1179
|
if (r.length) {
|
|
1180
|
-
const
|
|
1181
|
-
|
|
1180
|
+
const m = `[data-interact-key="${c}"] ${i}`, p = o ? le(m, o) : m;
|
|
1181
|
+
h.push(`@media (prefers-reduced-motion: no-preference) { ${p} {
|
|
1182
1182
|
transition: ${r.join(", ")};
|
|
1183
1183
|
} }`);
|
|
1184
1184
|
}
|
|
1185
|
-
return
|
|
1185
|
+
return h;
|
|
1186
1186
|
}
|
|
1187
1187
|
function ee(e, t, n) {
|
|
1188
1188
|
const s = (e || []).filter((i) => t[i]?.type === n && t[i].predicate).map((i) => t[i].predicate).join(") and (");
|
|
@@ -1207,7 +1207,7 @@ function vt(e, t, n, s) {
|
|
|
1207
1207
|
const { effects: i = {}, conditions: o = {} } = n, { key: r, trigger: a } = t, c = a === "pointerMove";
|
|
1208
1208
|
e.effectId || (e.effectId = s || X());
|
|
1209
1209
|
const { effectId: u } = e, l = { ...i[u] || {}, ...e };
|
|
1210
|
-
let { key: f, conditions: d, triggerType:
|
|
1210
|
+
let { key: f, conditions: d, triggerType: h } = l;
|
|
1211
1211
|
if (!f) {
|
|
1212
1212
|
if (!r)
|
|
1213
1213
|
return null;
|
|
@@ -1217,23 +1217,23 @@ function vt(e, t, n, s) {
|
|
|
1217
1217
|
return null;
|
|
1218
1218
|
d = [
|
|
1219
1219
|
...new Set((d || []).filter((b) => o[b]))
|
|
1220
|
-
],
|
|
1221
|
-
const { namedEffect:
|
|
1220
|
+
], h || (h = gt.get(a));
|
|
1221
|
+
const { namedEffect: m, customEffect: p, keyframeEffect: g, transition: y, transitionProperties: v, ...E } = {
|
|
1222
1222
|
...l,
|
|
1223
1223
|
key: f,
|
|
1224
1224
|
conditions: d,
|
|
1225
1225
|
effectId: u,
|
|
1226
|
-
triggerType:
|
|
1226
|
+
triggerType: h
|
|
1227
1227
|
}, $ = jt(t, E);
|
|
1228
|
-
if (
|
|
1229
|
-
return c || !
|
|
1228
|
+
if (m)
|
|
1229
|
+
return c || !m.type ? null : { namedEffect: m, initial: $, ...E };
|
|
1230
1230
|
if (g) {
|
|
1231
1231
|
if (!g.name) {
|
|
1232
1232
|
const b = u && !(i[u] && "keyframeEffect" in e);
|
|
1233
1233
|
g.name = b ? u : X();
|
|
1234
1234
|
}
|
|
1235
1235
|
return { keyframeEffect: g, initial: $, ...E };
|
|
1236
|
-
} else return
|
|
1236
|
+
} else return p ? c ? null : { initial: $, ...E } : y ? { transition: y, initial: $, ...E } : v ? { transitionProperties: v, initial: $, ...E } : { initial: $, ...E };
|
|
1237
1237
|
}
|
|
1238
1238
|
function Gn(e, t, n, s, i) {
|
|
1239
1239
|
const { sequences: o = {}, conditions: r = {} } = n;
|
|
@@ -1244,10 +1244,10 @@ function Gn(e, t, n, s, i) {
|
|
|
1244
1244
|
conditions: l,
|
|
1245
1245
|
triggerType: f,
|
|
1246
1246
|
delay: d = 0,
|
|
1247
|
-
offset:
|
|
1248
|
-
offsetEasing:
|
|
1247
|
+
offset: h = 0,
|
|
1248
|
+
offsetEasing: m = "linear"
|
|
1249
1249
|
} = c;
|
|
1250
|
-
if (typeof
|
|
1250
|
+
if (typeof m == "function" || !u)
|
|
1251
1251
|
return null;
|
|
1252
1252
|
f || (f = gt.get(t.trigger)), l = [
|
|
1253
1253
|
...new Set((l || []).filter((y) => r[y]))
|
|
@@ -1266,8 +1266,8 @@ function Gn(e, t, n, s, i) {
|
|
|
1266
1266
|
triggerType: f,
|
|
1267
1267
|
conditions: l,
|
|
1268
1268
|
delay: d,
|
|
1269
|
-
offset:
|
|
1270
|
-
offsetEasing:
|
|
1269
|
+
offset: h,
|
|
1270
|
+
offsetEasing: m,
|
|
1271
1271
|
effects: g
|
|
1272
1272
|
} : null;
|
|
1273
1273
|
}
|
|
@@ -1326,7 +1326,7 @@ function Bn(e) {
|
|
|
1326
1326
|
c = `${c}:is(${f})`;
|
|
1327
1327
|
}
|
|
1328
1328
|
n && (c = `${c} ${n}`), a && (c = `${c}${a}`), r && (c = le(c, r));
|
|
1329
|
-
const u = s.map(({ name: f, value: d, important:
|
|
1329
|
+
const u = s.map(({ name: f, value: d, important: h }) => `${f}: ${d}${h ? " !important" : ""};`).join(`
|
|
1330
1330
|
`), l = `${c} {
|
|
1331
1331
|
${u}
|
|
1332
1332
|
}`;
|
|
@@ -1580,9 +1580,9 @@ function os(e, t, n, s, i, o) {
|
|
|
1580
1580
|
effectId: l,
|
|
1581
1581
|
conditions: f,
|
|
1582
1582
|
namedEffect: d,
|
|
1583
|
-
keyframeEffect:
|
|
1584
|
-
transition:
|
|
1585
|
-
transitionProperties:
|
|
1583
|
+
keyframeEffect: h,
|
|
1584
|
+
transition: m,
|
|
1585
|
+
transitionProperties: p,
|
|
1586
1586
|
initial: g
|
|
1587
1587
|
} = t, y = ee(f, e.configConditions, "media"), v = P(f, e.configConditions), E = [
|
|
1588
1588
|
{
|
|
@@ -1595,7 +1595,7 @@ function os(e, t, n, s, i, o) {
|
|
|
1595
1595
|
];
|
|
1596
1596
|
let $ = [];
|
|
1597
1597
|
const { declarations: b } = E[0];
|
|
1598
|
-
if (e.plugins && E.push(...$t("effect", t, u, y, e.plugins)), d ||
|
|
1598
|
+
if (e.plugins && E.push(...$t("effect", t, u, y, e.plugins)), d || h) {
|
|
1599
1599
|
const S = L(t), C = Ln(null, S, s, o).filter(
|
|
1600
1600
|
(I) => I.name
|
|
1601
1601
|
);
|
|
@@ -1632,7 +1632,7 @@ function os(e, t, n, s, i, o) {
|
|
|
1632
1632
|
declarations: O,
|
|
1633
1633
|
selectorSuffix: ':not([data-interact-enter="done"])'
|
|
1634
1634
|
})) : b.push(...O);
|
|
1635
|
-
} else if (
|
|
1635
|
+
} else if (m || p) {
|
|
1636
1636
|
const S = mt(t), C = pt(t);
|
|
1637
1637
|
(C.length || r.has(i.transition)) && (b.push({
|
|
1638
1638
|
name: i.transition,
|
|
@@ -1679,10 +1679,10 @@ function bt(e, t, n, s, i, o) {
|
|
|
1679
1679
|
const c = o?.get(r) || Te, u = Et(a, c);
|
|
1680
1680
|
if (e.collectSlots) {
|
|
1681
1681
|
rs(a, t, u.animation);
|
|
1682
|
-
const
|
|
1682
|
+
const h = wt(t);
|
|
1683
1683
|
return Ce(
|
|
1684
1684
|
a,
|
|
1685
|
-
{ animation:
|
|
1685
|
+
{ animation: h === "animation", transition: h === "transition", timeline: !1 },
|
|
1686
1686
|
c
|
|
1687
1687
|
), e.targetsMap.set(r, a), [];
|
|
1688
1688
|
}
|
|
@@ -1695,7 +1695,7 @@ function bt(e, t, n, s, i, o) {
|
|
|
1695
1695
|
u,
|
|
1696
1696
|
i
|
|
1697
1697
|
);
|
|
1698
|
-
return f.forEach(({ name:
|
|
1698
|
+
return f.forEach(({ name: h, keyframes: m }) => e.keyframesMap.set(h, m)), Ce(a, d, c), e.targetsMap.set(r, a), l;
|
|
1699
1699
|
}
|
|
1700
1700
|
function as(e, t, n, s) {
|
|
1701
1701
|
const i = [], o = /* @__PURE__ */ new Set(), r = es(t);
|
|
@@ -1723,32 +1723,32 @@ function cs(e, t, n) {
|
|
|
1723
1723
|
id: ["trigger", n].join("-")
|
|
1724
1724
|
}, l = /* @__PURE__ */ new Set();
|
|
1725
1725
|
c === "viewProgress" && a.push(is(e, t, u.id, l));
|
|
1726
|
-
const f = o.map((
|
|
1727
|
-
const
|
|
1728
|
-
|
|
1726
|
+
const f = o.map((h, m) => {
|
|
1727
|
+
const p = vt(
|
|
1728
|
+
h,
|
|
1729
1729
|
t,
|
|
1730
1730
|
e.config,
|
|
1731
|
-
`eff-${n}-${
|
|
1731
|
+
`eff-${n}-${m}`
|
|
1732
1732
|
);
|
|
1733
|
-
return
|
|
1734
|
-
}).filter((
|
|
1733
|
+
return p && Object.assign(p, { slotKey: de(n, m) });
|
|
1734
|
+
}).filter((h) => h !== null);
|
|
1735
1735
|
a.push(
|
|
1736
|
-
...f.flatMap((
|
|
1736
|
+
...f.flatMap((h) => bt(e, h, u, l))
|
|
1737
1737
|
);
|
|
1738
1738
|
const d = r.map(
|
|
1739
|
-
(
|
|
1740
|
-
|
|
1739
|
+
(h, m) => Gn(
|
|
1740
|
+
h,
|
|
1741
1741
|
t,
|
|
1742
1742
|
e.config,
|
|
1743
|
-
`seq-${n}-${
|
|
1744
|
-
(
|
|
1743
|
+
`seq-${n}-${m}`,
|
|
1744
|
+
(p) => de(n, p, m)
|
|
1745
1745
|
)
|
|
1746
|
-
).filter((
|
|
1746
|
+
).filter((h) => h !== null);
|
|
1747
1747
|
return a.push(
|
|
1748
1748
|
...d.flatMap(
|
|
1749
|
-
(
|
|
1749
|
+
(h) => as(e, h, u, l)
|
|
1750
1750
|
)
|
|
1751
|
-
), l.forEach((
|
|
1751
|
+
), c === "viewProgress" && l.size > 1 && e.scopedTimelines.push(`--${u.id}`), l.forEach((h) => ns(e.targetsMap.get(h))), a;
|
|
1752
1752
|
}
|
|
1753
1753
|
function ls(e = {}) {
|
|
1754
1754
|
const { useFirstChild: t = !0, plugins: n } = typeof e == "boolean" ? { useFirstChild: e, plugins: void 0 } : e;
|
|
@@ -1761,6 +1761,7 @@ function St(e, t) {
|
|
|
1761
1761
|
targetsMap: /* @__PURE__ */ new Map(),
|
|
1762
1762
|
keyframesMap: /* @__PURE__ */ new Map(),
|
|
1763
1763
|
keyframeSlots: i ? /* @__PURE__ */ new Map() : It(e),
|
|
1764
|
+
scopedTimelines: [],
|
|
1764
1765
|
collectSlots: i,
|
|
1765
1766
|
useFirstChild: n,
|
|
1766
1767
|
plugins: s
|
|
@@ -1786,26 +1787,32 @@ function It(e) {
|
|
|
1786
1787
|
}), n;
|
|
1787
1788
|
}
|
|
1788
1789
|
function us(e, t) {
|
|
1789
|
-
const { ctx: n, cssRules: s } = St(e, ls(t)), i = [...n.targetsMap.values()], o = Math.max(0, ...i.map(({ animation:
|
|
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(
|
|
1790
1791
|
0,
|
|
1791
|
-
...i.map(({ transition:
|
|
1792
|
+
...i.map(({ transition: h }) => h.slotCursor)
|
|
1792
1793
|
), f = Un(
|
|
1793
1794
|
o,
|
|
1794
1795
|
r,
|
|
1795
1796
|
u,
|
|
1796
1797
|
l,
|
|
1797
1798
|
a
|
|
1798
|
-
)
|
|
1799
|
-
|
|
1799
|
+
), d = n.scopedTimelines.length ? `:root {
|
|
1800
|
+
timeline-scope: ${n.scopedTimelines.join(", ")};
|
|
1801
|
+
}` : "";
|
|
1802
|
+
return { keyframes: n.keyframesMap, atProperty: f, cssRules: s, listsRule: c, timelineScopeRule: d };
|
|
1800
1803
|
}
|
|
1801
1804
|
function ki(e, t) {
|
|
1802
|
-
const { cssRules: n, keyframes: s, atProperty: i, listsRule: o } = us(
|
|
1805
|
+
const { cssRules: n, keyframes: s, atProperty: i, listsRule: o, timelineScopeRule: r } = us(
|
|
1806
|
+
e,
|
|
1807
|
+
t
|
|
1808
|
+
);
|
|
1803
1809
|
return [
|
|
1804
1810
|
...i,
|
|
1805
|
-
...[...s.entries()].map(([
|
|
1811
|
+
...[...s.entries()].map(([c, u]) => Yn(c, u)),
|
|
1806
1812
|
...n.map(Bn),
|
|
1807
|
-
o
|
|
1808
|
-
|
|
1813
|
+
o,
|
|
1814
|
+
r
|
|
1815
|
+
].filter((c) => c).join(`
|
|
1809
1816
|
`);
|
|
1810
1817
|
}
|
|
1811
1818
|
const fs = {
|
|
@@ -1858,8 +1865,8 @@ function Ot(e, t = !1) {
|
|
|
1858
1865
|
const d = Array.isArray(e.threshold) ? Math.min(...e.threshold) : e.threshold;
|
|
1859
1866
|
d && l * d > f && _.mutate(() => {
|
|
1860
1867
|
o.unobserve(c);
|
|
1861
|
-
const
|
|
1862
|
-
K.set(c,
|
|
1868
|
+
const m = Ot(e, !0);
|
|
1869
|
+
K.set(c, m), m.observe(c);
|
|
1863
1870
|
});
|
|
1864
1871
|
});
|
|
1865
1872
|
return;
|
|
@@ -1880,15 +1887,15 @@ function gs(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o, animation
|
|
|
1880
1887
|
return;
|
|
1881
1888
|
const l = Ot(a);
|
|
1882
1889
|
c !== "once" && u.persist?.();
|
|
1883
|
-
let f = !0, d = !1,
|
|
1884
|
-
|
|
1890
|
+
let f = !0, d = !1, h;
|
|
1891
|
+
h = { source: e, target: t, handler: (g, y) => {
|
|
1885
1892
|
if (!(o && !t.matches(o)))
|
|
1886
1893
|
if (c === "once") {
|
|
1887
1894
|
if (g && !d) {
|
|
1888
1895
|
d = !0;
|
|
1889
1896
|
const v = x.get(e);
|
|
1890
|
-
(!v || v.size === 0 || v.size === 1 && v.has(
|
|
1891
|
-
x.get(e)?.delete(
|
|
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);
|
|
1892
1899
|
}), u.play(() => {
|
|
1893
1900
|
const E = () => {
|
|
1894
1901
|
t.dataset.interactEnter = "start";
|
|
@@ -1910,7 +1917,7 @@ function gs(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o, animation
|
|
|
1910
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());
|
|
1911
1918
|
}, cleanup: () => {
|
|
1912
1919
|
(K.get(e) || l).unobserve(e), (c === "repeat" || c === "state") && Ge().unobserve(e), u.cancel(), he.delete(e), K.delete(e);
|
|
1913
|
-
} }, k(x, e,
|
|
1920
|
+
} }, k(x, e, h), k(x, t, h), K.set(e, l), l.observe(e), (c === "repeat" || c === "state") && Ge().observe(e);
|
|
1914
1921
|
}
|
|
1915
1922
|
function vs(e) {
|
|
1916
1923
|
te(x, e);
|
|
@@ -1974,20 +1981,20 @@ function we(e, t, n, s, i) {
|
|
|
1974
1981
|
const u = a.sticky;
|
|
1975
1982
|
if (u) {
|
|
1976
1983
|
if ("end" in u && e[c - 1]?.element) {
|
|
1977
|
-
const d = ((i ? a.element.offsetWidth : a.element.offsetHeight) || 0) + u.end - s,
|
|
1984
|
+
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;
|
|
1978
1985
|
let g = 0;
|
|
1979
|
-
(
|
|
1986
|
+
(m || p) && (g = a.offset, r.end += g), m && (r.start += g);
|
|
1980
1987
|
}
|
|
1981
1988
|
if ("start" in u) {
|
|
1982
1989
|
const l = o - u.start, f = l < r.start, d = !f && l <= r.end;
|
|
1983
|
-
let
|
|
1984
|
-
const
|
|
1985
|
-
if (
|
|
1990
|
+
let h = 0;
|
|
1991
|
+
const m = e[c - 1]?.element;
|
|
1992
|
+
if (m) {
|
|
1986
1993
|
if (f || d) {
|
|
1987
|
-
const
|
|
1988
|
-
|
|
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;
|
|
1989
1996
|
}
|
|
1990
|
-
f && (r.start +=
|
|
1997
|
+
f && (r.start += h);
|
|
1991
1998
|
}
|
|
1992
1999
|
}
|
|
1993
2000
|
}
|
|
@@ -1995,24 +2002,24 @@ function we(e, t, n, s, i) {
|
|
|
1995
2002
|
}
|
|
1996
2003
|
function Ss(e, t, n, s, i, o) {
|
|
1997
2004
|
const { start: r, end: a, duration: c } = e;
|
|
1998
|
-
let u = r, l = a, f = e.startRange, d = e.endRange,
|
|
2005
|
+
let u = r, l = a, f = e.startRange, d = e.endRange, h;
|
|
1999
2006
|
if (typeof c == "string") {
|
|
2000
|
-
f = { name: c, offset: 0 }, d = { name: c, offset: 100 }, u = N(f, n, t), l = N(d, n, t),
|
|
2001
|
-
const
|
|
2002
|
-
u =
|
|
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);
|
|
2009
|
+
u = m.start, l = m.end;
|
|
2003
2010
|
} else {
|
|
2004
2011
|
if (f || r?.name) {
|
|
2005
2012
|
f = f || r;
|
|
2006
|
-
const
|
|
2007
|
-
u = y.start + f.offset / 100 * (y.end - y.start) +
|
|
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);
|
|
2014
|
+
u = y.start + f.offset / 100 * (y.end - y.start) + m;
|
|
2008
2015
|
}
|
|
2009
2016
|
if (d || a?.name) {
|
|
2010
2017
|
d = d || a;
|
|
2011
|
-
const
|
|
2012
|
-
l = y.start + d.offset / 100 * (y.end - y.start) +
|
|
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);
|
|
2019
|
+
l = y.start + d.offset / 100 * (y.end - y.start) + m;
|
|
2013
2020
|
} else typeof c == "number" && (l = u + c);
|
|
2014
2021
|
}
|
|
2015
|
-
return !
|
|
2022
|
+
return !h && !c && (h = l - u), { ...e, start: u, end: l, startRange: f, endRange: d, duration: h || c };
|
|
2016
2023
|
}
|
|
2017
2024
|
function Is(e) {
|
|
2018
2025
|
return e.position === "sticky";
|
|
@@ -2040,8 +2047,8 @@ function se(e, t, n, s, i) {
|
|
|
2040
2047
|
const o = e[0].viewSource, r = [];
|
|
2041
2048
|
let a = (s ? o.offsetWidth : o.offsetHeight) || 0, c = 0, u = o;
|
|
2042
2049
|
for (; u; ) {
|
|
2043
|
-
const f = window.getComputedStyle(u), d = Is(f),
|
|
2044
|
-
if ((!
|
|
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))
|
|
2045
2052
|
break;
|
|
2046
2053
|
if (u === t) {
|
|
2047
2054
|
r.push({ element: u, offset: 0 });
|
|
@@ -2087,27 +2094,27 @@ function Ps(e) {
|
|
|
2087
2094
|
if (t.scenes = Object.values(
|
|
2088
2095
|
// TODO(ameerf): find a polyfill and use groupBy instead of following reduce
|
|
2089
2096
|
e.scenes.reduce(
|
|
2090
|
-
(
|
|
2097
|
+
(p, g, y) => {
|
|
2091
2098
|
const v = g.groupId ? `group-${g.groupId}` : String(y);
|
|
2092
|
-
return
|
|
2099
|
+
return p[v] ? p[v].push(g) : p[v] = [g], p;
|
|
2093
2100
|
},
|
|
2094
2101
|
{}
|
|
2095
2102
|
)
|
|
2096
|
-
).flatMap((
|
|
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) => {
|
|
2097
2104
|
g.end == null && (g.end = g.start + g.duration), g.duration == null && (g.duration = g.end - g.start);
|
|
2098
|
-
}),
|
|
2099
|
-
|
|
2105
|
+
}), p)), t.scenes.forEach((p, g) => {
|
|
2106
|
+
p.index = g;
|
|
2100
2107
|
}), f.length) {
|
|
2101
|
-
const
|
|
2108
|
+
const p = /* @__PURE__ */ new Map();
|
|
2102
2109
|
window.ResizeObserver && (c = new window.ResizeObserver(function(g) {
|
|
2103
2110
|
g.forEach((y) => {
|
|
2104
|
-
const v =
|
|
2111
|
+
const v = p.get(y.target), E = se(v, n, o, s, d);
|
|
2105
2112
|
E.forEach(($, b) => {
|
|
2106
2113
|
t.scenes[$.index] = E[b];
|
|
2107
2114
|
}), f.splice(f.indexOf(v), 1, E);
|
|
2108
2115
|
});
|
|
2109
2116
|
}), f.forEach((g) => {
|
|
2110
|
-
c.observe(g[0].viewSource, { box: "border-box" }),
|
|
2117
|
+
c.observe(g[0].viewSource, { box: "border-box" }), p.set(g[0].viewSource, g);
|
|
2111
2118
|
}), t.observeContentResize && t.contentRoot && new window.ResizeObserver(We(() => {
|
|
2112
2119
|
const y = f.map((v) => {
|
|
2113
2120
|
const E = se(v, n, o, s, d);
|
|
@@ -2116,7 +2123,7 @@ function Ps(e) {
|
|
|
2116
2123
|
}), E;
|
|
2117
2124
|
});
|
|
2118
2125
|
f.length = 0, f.push(...y), f.forEach((v) => {
|
|
2119
|
-
|
|
2126
|
+
p.set(v[0].viewSource, v);
|
|
2120
2127
|
});
|
|
2121
2128
|
}, Ve)).observe(t.contentRoot, { box: "border-box" })), t.observeViewportResize && (u = We(function() {
|
|
2122
2129
|
o = Ke(n, s);
|
|
@@ -2127,12 +2134,12 @@ function Ps(e) {
|
|
|
2127
2134
|
}), v;
|
|
2128
2135
|
});
|
|
2129
2136
|
f.length = 0, f.push(...g), f.forEach((y) => {
|
|
2130
|
-
|
|
2137
|
+
p.set(y[0].viewSource, y);
|
|
2131
2138
|
});
|
|
2132
2139
|
}, Ve), n === window ? window.addEventListener("resize", u) : window.ResizeObserver && (l = new window.ResizeObserver(u), l.observe(n, { box: "border-box" })));
|
|
2133
2140
|
}
|
|
2134
|
-
t.observeViewportEntry && window.IntersectionObserver && (a = new window.IntersectionObserver(function(
|
|
2135
|
-
|
|
2141
|
+
t.observeViewportEntry && window.IntersectionObserver && (a = new window.IntersectionObserver(function(p) {
|
|
2142
|
+
p.forEach((g) => {
|
|
2136
2143
|
(i.get(g.target) || []).forEach((y) => {
|
|
2137
2144
|
y.disabled = !g.isIntersecting;
|
|
2138
2145
|
});
|
|
@@ -2141,30 +2148,30 @@ function Ps(e) {
|
|
|
2141
2148
|
root: n === window ? window.document : n,
|
|
2142
2149
|
rootMargin: t.viewportRootMargin,
|
|
2143
2150
|
threshold: 0
|
|
2144
|
-
}), t.scenes.forEach((
|
|
2145
|
-
if (
|
|
2146
|
-
let g = i.get(
|
|
2147
|
-
g || (g = [], i.set(
|
|
2151
|
+
}), t.scenes.forEach((p) => {
|
|
2152
|
+
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);
|
|
2148
2155
|
}
|
|
2149
2156
|
}));
|
|
2150
|
-
function
|
|
2151
|
-
|
|
2157
|
+
function h({ p, vp: g }) {
|
|
2158
|
+
p = +p.toFixed(1);
|
|
2152
2159
|
const y = +g.toFixed(4);
|
|
2153
|
-
if (
|
|
2160
|
+
if (p !== r) {
|
|
2154
2161
|
for (let v of t.scenes)
|
|
2155
2162
|
if (!v.disabled) {
|
|
2156
|
-
const { start: E, end: $, duration: b } = v, S = qs(
|
|
2163
|
+
const { start: E, end: $, duration: b } = v, S = qs(p, E, $, b);
|
|
2157
2164
|
v.effect(v, S, y);
|
|
2158
2165
|
}
|
|
2159
|
-
r =
|
|
2166
|
+
r = p;
|
|
2160
2167
|
}
|
|
2161
2168
|
}
|
|
2162
|
-
function
|
|
2163
|
-
t.scenes.forEach((
|
|
2169
|
+
function m() {
|
|
2170
|
+
t.scenes.forEach((p) => p.destroy?.()), a && (a.disconnect(), a = null), c && (c.disconnect(), c = null), u && (l ? (l.disconnect(), l = null) : window.removeEventListener("resize", u));
|
|
2164
2171
|
}
|
|
2165
2172
|
return {
|
|
2166
|
-
tick:
|
|
2167
|
-
destroy:
|
|
2173
|
+
tick: h,
|
|
2174
|
+
destroy: m
|
|
2168
2175
|
};
|
|
2169
2176
|
}
|
|
2170
2177
|
const Ls = {
|
|
@@ -2273,49 +2280,48 @@ let At = () => ({});
|
|
|
2273
2280
|
function Fs(e) {
|
|
2274
2281
|
At = e;
|
|
2275
2282
|
}
|
|
2276
|
-
function Rs(e, t, n, s, { reducedMotion: i }) {
|
|
2277
|
-
if (i)
|
|
2278
|
-
|
|
2279
|
-
const o = {
|
|
2283
|
+
function Rs(e, t, n, s, { reducedMotion: i, selectorCondition: o }) {
|
|
2284
|
+
if (i || o && !t.matches(o)) return;
|
|
2285
|
+
const r = {
|
|
2280
2286
|
trigger: "view-progress",
|
|
2281
2287
|
element: e
|
|
2282
|
-
},
|
|
2283
|
-
let
|
|
2288
|
+
}, a = L(n);
|
|
2289
|
+
let c;
|
|
2284
2290
|
if ("ViewTimeline" in window) {
|
|
2285
|
-
const
|
|
2291
|
+
const l = J(
|
|
2286
2292
|
t,
|
|
2287
|
-
|
|
2288
|
-
|
|
2293
|
+
a,
|
|
2294
|
+
r
|
|
2289
2295
|
);
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2296
|
+
l && !l.isCSS && (l.play(), c = () => {
|
|
2297
|
+
l.ready.then(() => {
|
|
2298
|
+
l.cancel();
|
|
2293
2299
|
});
|
|
2294
2300
|
});
|
|
2295
2301
|
} else {
|
|
2296
|
-
const
|
|
2297
|
-
if (
|
|
2298
|
-
const
|
|
2302
|
+
const l = dt(t, a, r);
|
|
2303
|
+
if (l) {
|
|
2304
|
+
const f = Array.isArray(l) ? l : [l], d = new xs({
|
|
2299
2305
|
viewSource: e,
|
|
2300
|
-
scenes:
|
|
2306
|
+
scenes: f,
|
|
2301
2307
|
observeViewportEntry: !1,
|
|
2302
2308
|
observeViewportResize: !1,
|
|
2303
2309
|
observeSourcesResize: !0,
|
|
2304
2310
|
root: document.body,
|
|
2305
2311
|
...At()
|
|
2306
2312
|
});
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
}, Promise.all(
|
|
2313
|
+
c = () => {
|
|
2314
|
+
d.destroy();
|
|
2315
|
+
}, Promise.all(f.map((h) => h.ready || Promise.resolve())).then(
|
|
2310
2316
|
() => {
|
|
2311
|
-
|
|
2317
|
+
d.start();
|
|
2312
2318
|
}
|
|
2313
2319
|
);
|
|
2314
2320
|
}
|
|
2315
2321
|
}
|
|
2316
|
-
if (!
|
|
2317
|
-
const
|
|
2318
|
-
k(Oe, e,
|
|
2322
|
+
if (!c) return;
|
|
2323
|
+
const u = { source: e, target: t, cleanup: c };
|
|
2324
|
+
k(Oe, e, u), k(Oe, t, u);
|
|
2319
2325
|
}
|
|
2320
2326
|
function Ns(e) {
|
|
2321
2327
|
te(Oe, e);
|
|
@@ -2451,8 +2457,8 @@ function Qs(e) {
|
|
|
2451
2457
|
}), s = function(l) {
|
|
2452
2458
|
for (let f of e.scenes)
|
|
2453
2459
|
if (!f.disabled) {
|
|
2454
|
-
const d = f.transform?.x(l.x) || l.x / e.rect.width,
|
|
2455
|
-
e.allowActiveEvent && (l.active = d <= 1 &&
|
|
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 = +Ye(0, 1, d).toPrecision(4), p = +Ye(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);
|
|
2456
2462
|
}
|
|
2457
2463
|
Object.assign(n, l);
|
|
2458
2464
|
}, t && (r = Ys.bind(c, s, n), a = Vs(document, r));
|
|
@@ -2585,26 +2591,25 @@ let kt = () => ({});
|
|
|
2585
2591
|
function ei(e) {
|
|
2586
2592
|
kt = e;
|
|
2587
2593
|
}
|
|
2588
|
-
function ti(e, t, n, s = {}, { reducedMotion: i }) {
|
|
2589
|
-
if (i)
|
|
2590
|
-
|
|
2591
|
-
const o = {
|
|
2594
|
+
function ti(e, t, n, s = {}, { reducedMotion: i, selectorCondition: o }) {
|
|
2595
|
+
if (i || o && !t.matches(o)) return;
|
|
2596
|
+
const r = {
|
|
2592
2597
|
trigger: "pointer-move",
|
|
2593
2598
|
element: e,
|
|
2594
2599
|
axis: s.axis ?? "y"
|
|
2595
|
-
},
|
|
2596
|
-
if (
|
|
2597
|
-
const
|
|
2600
|
+
}, a = dt(t, L(n), r);
|
|
2601
|
+
if (a) {
|
|
2602
|
+
const c = Array.isArray(a) ? a : [a], u = new Js({
|
|
2598
2603
|
root: s.hitArea === "self" ? e : void 0,
|
|
2599
|
-
scenes:
|
|
2604
|
+
scenes: c,
|
|
2600
2605
|
...kt()
|
|
2601
|
-
}),
|
|
2602
|
-
|
|
2606
|
+
}), f = { source: e, target: t, cleanup: () => {
|
|
2607
|
+
u.destroy();
|
|
2603
2608
|
} };
|
|
2604
|
-
k(_e, e,
|
|
2605
|
-
|
|
2609
|
+
k(_e, e, f), k(_e, t, f), Promise.all(
|
|
2610
|
+
c.map((d) => d.ready || Promise.resolve())
|
|
2606
2611
|
).then(() => {
|
|
2607
|
-
|
|
2612
|
+
u.start();
|
|
2608
2613
|
});
|
|
2609
2614
|
}
|
|
2610
2615
|
}
|
|
@@ -2630,13 +2635,13 @@ function ii(e, t, n, s, {
|
|
|
2630
2635
|
);
|
|
2631
2636
|
if (!c)
|
|
2632
2637
|
return;
|
|
2633
|
-
const { effectId: u } = s, l = (
|
|
2638
|
+
const { effectId: u } = s, l = (h) => {
|
|
2634
2639
|
if (o && !t.matches(o)) return;
|
|
2635
|
-
const
|
|
2640
|
+
const m = h.animationName, p = h.detail?.effectId, g = a ? ft(e, a) : null;
|
|
2636
2641
|
if (g) {
|
|
2637
|
-
if (g.playState === "running" ||
|
|
2642
|
+
if (g.playState === "running" || m && !g.hasAnimationName(m))
|
|
2638
2643
|
return;
|
|
2639
|
-
if (
|
|
2644
|
+
if (p && p !== u && !g.hasAnimationId(p))
|
|
2640
2645
|
return;
|
|
2641
2646
|
}
|
|
2642
2647
|
c.play();
|
|
@@ -2671,12 +2676,12 @@ function ai(e, t, n = !1, s, i, o) {
|
|
|
2671
2676
|
a ? (a = !1, r.play()) : c === "alternate" ? r.reverse() : c === "state" && (r.playState === "running" ? r.pause() : r.playState !== "finished" && r.play());
|
|
2672
2677
|
else {
|
|
2673
2678
|
if (r.progress(0), delete e.dataset.interactEnter, r.isCSS) {
|
|
2674
|
-
const
|
|
2679
|
+
const h = () => {
|
|
2675
2680
|
_.mutate(() => {
|
|
2676
2681
|
e.dataset.interactEnter = "done";
|
|
2677
2682
|
});
|
|
2678
2683
|
};
|
|
2679
|
-
r.onFinish(
|
|
2684
|
+
r.onFinish(h), r.onAbort(h);
|
|
2680
2685
|
}
|
|
2681
2686
|
r.play();
|
|
2682
2687
|
}
|
|
@@ -2698,8 +2703,8 @@ function ci(e, t, {
|
|
|
2698
2703
|
if (r && !e.matches(r)) return;
|
|
2699
2704
|
const d = c ? e.closest(
|
|
2700
2705
|
`${s} > ${i || ""}:has(:scope)`
|
|
2701
|
-
) : void 0,
|
|
2702
|
-
|
|
2706
|
+
) : void 0, h = !a, m = a?.enter?.includes(f.type), p = a?.leave?.includes(f.type);
|
|
2707
|
+
h ? t.toggleEffect(n, u, d) : (m && t.toggleEffect(n, l ? "add" : u, d), p && l && t.toggleEffect(n, "remove", d));
|
|
2703
2708
|
};
|
|
2704
2709
|
}
|
|
2705
2710
|
const ke = /* @__PURE__ */ new WeakMap();
|
|
@@ -2774,30 +2779,30 @@ function vi(e, t, n, s, {
|
|
|
2774
2779
|
a
|
|
2775
2780
|
), d = n.triggerType === "once"), !f)
|
|
2776
2781
|
return;
|
|
2777
|
-
const
|
|
2778
|
-
function
|
|
2779
|
-
const b = di(E, e,
|
|
2780
|
-
v.addEventListener(E, b, { ...$, signal:
|
|
2782
|
+
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 });
|
|
2781
2786
|
}
|
|
2782
2787
|
const y = { source: e, target: t, cleanup: () => {
|
|
2783
|
-
|
|
2788
|
+
m.abort();
|
|
2784
2789
|
} };
|
|
2785
2790
|
if (k(ke, e, y), k(ke, t, y), l) {
|
|
2786
2791
|
const v = c.enter, E = c.leave;
|
|
2787
2792
|
v.forEach((S) => {
|
|
2788
|
-
S === "focusin" && (e.tabIndex = 0),
|
|
2793
|
+
S === "focusin" && (e.tabIndex = 0), p(e, S, { passive: !0, once: d });
|
|
2789
2794
|
});
|
|
2790
2795
|
const $ = !n.stateAction || n.stateAction === "toggle";
|
|
2791
2796
|
(u ? $ : n.triggerType !== "once") && E.forEach((S) => {
|
|
2792
2797
|
if (S === "focusout") {
|
|
2793
|
-
|
|
2798
|
+
p(e, S, { once: d });
|
|
2794
2799
|
return;
|
|
2795
2800
|
}
|
|
2796
|
-
|
|
2801
|
+
p(e, S, { passive: !0 });
|
|
2797
2802
|
});
|
|
2798
2803
|
} else
|
|
2799
2804
|
(c.toggle ?? []).forEach((E) => {
|
|
2800
|
-
|
|
2805
|
+
p(e, E, { once: d, passive: E !== "keydown" });
|
|
2801
2806
|
});
|
|
2802
2807
|
}
|
|
2803
2808
|
function yi(e) {
|
|
@@ -3042,15 +3047,15 @@ function $i(e, t, n) {
|
|
|
3042
3047
|
function bi(e, t = !1) {
|
|
3043
3048
|
const { effects: n = {}, sequences: s = {}, conditions: i = {} } = e, o = {}, r = e.interactions ? It(e) : /* @__PURE__ */ new Map();
|
|
3044
3049
|
return e.interactions?.forEach((a, c) => {
|
|
3045
|
-
const u = a.key, l = ++wi, { effects: f, sequences: d, ...
|
|
3050
|
+
const u = a.key, l = ++wi, { effects: f, sequences: d, ...h } = a;
|
|
3046
3051
|
if (!u) {
|
|
3047
3052
|
console.error(`Interaction ${l} is missing a key for source element.`);
|
|
3048
3053
|
return;
|
|
3049
3054
|
}
|
|
3050
3055
|
$e(o, u);
|
|
3051
|
-
const
|
|
3052
|
-
|
|
3053
|
-
const
|
|
3056
|
+
const m = f ? Array.from(f) : [];
|
|
3057
|
+
m.reverse();
|
|
3058
|
+
const p = d?.map((v, E) => {
|
|
3054
3059
|
if (Xe(v)) {
|
|
3055
3060
|
const b = s[v.sequenceId];
|
|
3056
3061
|
return b ? { ...b, ...v } : (console.warn(`Interact: Sequence "${v.sequenceId}" not found in config`), v);
|
|
@@ -3058,9 +3063,9 @@ function bi(e, t = !1) {
|
|
|
3058
3063
|
const $ = v;
|
|
3059
3064
|
return $.sequenceId || ($.sequenceId = `seq-${c}-${E}`), $;
|
|
3060
3065
|
}), g = {
|
|
3061
|
-
...
|
|
3062
|
-
effects:
|
|
3063
|
-
sequences:
|
|
3066
|
+
...h,
|
|
3067
|
+
effects: m.length > 0 ? m : void 0,
|
|
3068
|
+
sequences: p?.map(
|
|
3064
3069
|
(v, E) => $i(v, ($) => de(c, $, E), r)
|
|
3065
3070
|
)
|
|
3066
3071
|
};
|
|
@@ -3068,10 +3073,10 @@ function bi(e, t = !1) {
|
|
|
3068
3073
|
D(g, { useFirstChild: t })
|
|
3069
3074
|
);
|
|
3070
3075
|
const y = g.listContainer;
|
|
3071
|
-
|
|
3076
|
+
m.forEach((v, E) => {
|
|
3072
3077
|
const $ = v.effectId ? n[v.effectId] : void 0;
|
|
3073
3078
|
let b = v.key || $?.key;
|
|
3074
|
-
const S =
|
|
3079
|
+
const S = m.length - 1 - E;
|
|
3075
3080
|
v.effectId || (v.effectId = `eff-${c}-${S}`);
|
|
3076
3081
|
const C = r.get(de(c, S));
|
|
3077
3082
|
if (C && (v.suffix = C), b = b || u, v.key = b, y && v.listContainer && (b !== u || v.listContainer !== y))
|
|
@@ -3080,8 +3085,8 @@ function bi(e, t = !1) {
|
|
|
3080
3085
|
if (v.interactionId = I, o[u].interactionIds.add(I), b === u)
|
|
3081
3086
|
return;
|
|
3082
3087
|
const T = $e(o, b);
|
|
3083
|
-
T.effects[I] || (T.effects[I] = [], T.interactionIds.add(I)), T.effects[I].push({ ...
|
|
3084
|
-
}),
|
|
3088
|
+
T.effects[I] || (T.effects[I] = [], T.interactionIds.add(I)), T.effects[I].push({ ...h, effect: v }), T.selectors.add(D(v, { useFirstChild: t }));
|
|
3089
|
+
}), p?.forEach((v) => {
|
|
3085
3090
|
if (!v || Xe(v)) return;
|
|
3086
3091
|
const E = v, $ = E.sequenceId;
|
|
3087
3092
|
E.effects.forEach((S, C) => {
|
|
@@ -3096,7 +3101,7 @@ function bi(e, t = !1) {
|
|
|
3096
3101
|
if (I && o[u].selectors.add(I), O !== u) {
|
|
3097
3102
|
const T = $e(o, O), A = `${O}::seq::${$}::${l}`;
|
|
3098
3103
|
T.sequences[A] || (T.sequences[A] = [], T.interactionIds.add(A)), T.sequences[A].push({
|
|
3099
|
-
...
|
|
3104
|
+
...h,
|
|
3100
3105
|
sequence: E
|
|
3101
3106
|
}), T.selectors.add(I);
|
|
3102
3107
|
}
|
|
@@ -3186,24 +3191,24 @@ function Pt(e, t, n, s, i) {
|
|
|
3186
3191
|
}, f = l.key, d = q(a.interactionId, e);
|
|
3187
3192
|
if (o[d] || n.addedInteractions[d] && !i)
|
|
3188
3193
|
return;
|
|
3189
|
-
const
|
|
3190
|
-
if (
|
|
3194
|
+
const h = M(l.conditions || [], n.dataCache.conditions);
|
|
3195
|
+
if (h && n.setupMediaQueryListener(`${d}::${c}`, h, e, () => {
|
|
3191
3196
|
t.update();
|
|
3192
|
-
}), !
|
|
3197
|
+
}), !h || h.matches) {
|
|
3193
3198
|
o[d] = !0;
|
|
3194
|
-
const
|
|
3195
|
-
let
|
|
3196
|
-
if (
|
|
3197
|
-
if (
|
|
3199
|
+
const m = f && q(f, e);
|
|
3200
|
+
let p;
|
|
3201
|
+
if (m) {
|
|
3202
|
+
if (p = w.getController(m), !p)
|
|
3198
3203
|
return;
|
|
3199
|
-
l.listContainer &&
|
|
3204
|
+
l.listContainer && p.watchChildList(l.listContainer);
|
|
3200
3205
|
} else
|
|
3201
|
-
|
|
3206
|
+
p = t;
|
|
3202
3207
|
ye(
|
|
3203
|
-
|
|
3204
|
-
|
|
3208
|
+
p,
|
|
3209
|
+
p.element,
|
|
3205
3210
|
l,
|
|
3206
|
-
|
|
3211
|
+
m || s.key,
|
|
3207
3212
|
"effect"
|
|
3208
3213
|
);
|
|
3209
3214
|
const [g, y] = qt(
|
|
@@ -3211,14 +3216,14 @@ function Pt(e, t, n, s, i) {
|
|
|
3211
3216
|
l,
|
|
3212
3217
|
t.element,
|
|
3213
3218
|
t.useFirstChild,
|
|
3214
|
-
|
|
3215
|
-
|
|
3219
|
+
p.element,
|
|
3220
|
+
p.useFirstChild,
|
|
3216
3221
|
i
|
|
3217
3222
|
);
|
|
3218
3223
|
if (!g || !y)
|
|
3219
3224
|
return;
|
|
3220
3225
|
n.addedInteractions[d] = !0;
|
|
3221
|
-
const v =
|
|
3226
|
+
const v = m || s.key, E = P(
|
|
3222
3227
|
l.conditions || [],
|
|
3223
3228
|
n.dataCache.conditions
|
|
3224
3229
|
);
|
|
@@ -3229,7 +3234,7 @@ function Pt(e, t, n, s, i) {
|
|
|
3229
3234
|
g,
|
|
3230
3235
|
y,
|
|
3231
3236
|
E,
|
|
3232
|
-
|
|
3237
|
+
p.useFirstChild,
|
|
3233
3238
|
e
|
|
3234
3239
|
]);
|
|
3235
3240
|
}
|
|
@@ -3246,21 +3251,21 @@ function Lt(e, t, n, s, i, o, r) {
|
|
|
3246
3251
|
const c = e.effects || [], u = [];
|
|
3247
3252
|
let l = !1;
|
|
3248
3253
|
for (const f of c) {
|
|
3249
|
-
const d = f.effectId,
|
|
3254
|
+
const d = f.effectId, m = {
|
|
3250
3255
|
...d ? i.dataCache.effects[d] || {} : {},
|
|
3251
3256
|
...f
|
|
3252
|
-
},
|
|
3253
|
-
if (
|
|
3257
|
+
}, p = M(m.conditions || [], i.dataCache.conditions);
|
|
3258
|
+
if (p) {
|
|
3254
3259
|
const S = `${t}::${d || "eff"}`;
|
|
3255
3260
|
i.setupMediaQueryListener(
|
|
3256
3261
|
S,
|
|
3257
|
-
|
|
3262
|
+
p,
|
|
3258
3263
|
o.updateKey,
|
|
3259
3264
|
o.onUpdate
|
|
3260
3265
|
);
|
|
3261
3266
|
}
|
|
3262
|
-
if (
|
|
3263
|
-
const g =
|
|
3267
|
+
if (p && !p.matches) continue;
|
|
3268
|
+
const g = m.key, y = g && q(g, n);
|
|
3264
3269
|
let v;
|
|
3265
3270
|
if (y) {
|
|
3266
3271
|
if (v = w.getController(y), !v) return null;
|
|
@@ -3270,17 +3275,17 @@ function Lt(e, t, n, s, i, o, r) {
|
|
|
3270
3275
|
ye(
|
|
3271
3276
|
v,
|
|
3272
3277
|
v.element,
|
|
3273
|
-
|
|
3278
|
+
m,
|
|
3274
3279
|
E,
|
|
3275
3280
|
"effect"
|
|
3276
3281
|
);
|
|
3277
3282
|
let $;
|
|
3278
|
-
if (r && E === r.controllerKey &&
|
|
3279
|
-
|
|
3283
|
+
if (r && E === r.controllerKey && m.listContainer === r.listContainer ? ($ = ge(m, r.elements), $.length > 0 && (l = !0)) : $ = pe(
|
|
3284
|
+
m,
|
|
3280
3285
|
v.element,
|
|
3281
3286
|
v.useFirstChild
|
|
3282
3287
|
), !$ || Array.isArray($) && $.length === 0) return null;
|
|
3283
|
-
const b = L(
|
|
3288
|
+
const b = L(m);
|
|
3284
3289
|
u.push({ target: $, options: b });
|
|
3285
3290
|
}
|
|
3286
3291
|
return r && !l ? null : u.length > 0 ? u : null;
|
|
@@ -3318,12 +3323,12 @@ function Ii(e, t, n, s, i) {
|
|
|
3318
3323
|
s.sequences?.forEach((o) => {
|
|
3319
3324
|
let r;
|
|
3320
3325
|
if (Si(o)) {
|
|
3321
|
-
const
|
|
3322
|
-
if (!
|
|
3326
|
+
const m = n.dataCache.sequences[o.sequenceId];
|
|
3327
|
+
if (!m) {
|
|
3323
3328
|
console.warn(`Interact: Sequence "${o.sequenceId}" not found in cache`);
|
|
3324
3329
|
return;
|
|
3325
3330
|
}
|
|
3326
|
-
r = { ...
|
|
3331
|
+
r = { ...m, ...o };
|
|
3327
3332
|
} else
|
|
3328
3333
|
r = o;
|
|
3329
3334
|
const a = r.sequenceId || X(), c = q(`${e}::seq::${a}`, e);
|
|
@@ -3339,15 +3344,15 @@ function Ii(e, t, n, s, i) {
|
|
|
3339
3344
|
);
|
|
3340
3345
|
if (!l) return;
|
|
3341
3346
|
if (i && n.addedInteractions[c]) {
|
|
3342
|
-
const
|
|
3347
|
+
const m = xt(
|
|
3343
3348
|
t,
|
|
3344
3349
|
s.listContainer,
|
|
3345
3350
|
i
|
|
3346
3351
|
);
|
|
3347
|
-
w.addToSequence(c, l,
|
|
3352
|
+
w.addToSequence(c, l, m, {
|
|
3348
3353
|
reducedMotion: w.forceReducedMotion
|
|
3349
3354
|
});
|
|
3350
|
-
const
|
|
3355
|
+
const p = w.getSequence(c, r, l, {
|
|
3351
3356
|
reducedMotion: w.forceReducedMotion
|
|
3352
3357
|
}), g = P(
|
|
3353
3358
|
s.conditions || [],
|
|
@@ -3357,7 +3362,7 @@ function Ii(e, t, n, s, i) {
|
|
|
3357
3362
|
s,
|
|
3358
3363
|
r,
|
|
3359
3364
|
y,
|
|
3360
|
-
|
|
3365
|
+
p,
|
|
3361
3366
|
g
|
|
3362
3367
|
);
|
|
3363
3368
|
return;
|
|
@@ -3367,11 +3372,11 @@ function Ii(e, t, n, s, i) {
|
|
|
3367
3372
|
}), d = P(
|
|
3368
3373
|
s.conditions || [],
|
|
3369
3374
|
n.dataCache.conditions
|
|
3370
|
-
),
|
|
3371
|
-
|
|
3375
|
+
), h = Me(s, t, i);
|
|
3376
|
+
h && (n.addedInteractions[c] = !0, Pe(
|
|
3372
3377
|
s,
|
|
3373
3378
|
r,
|
|
3374
|
-
|
|
3379
|
+
h,
|
|
3375
3380
|
f,
|
|
3376
3381
|
d
|
|
3377
3382
|
));
|
|
@@ -3387,35 +3392,35 @@ function Ti(e, t, n, s, i) {
|
|
|
3387
3392
|
);
|
|
3388
3393
|
if (f && !f.matches)
|
|
3389
3394
|
return !1;
|
|
3390
|
-
const d = l.key && q(l.key, e),
|
|
3391
|
-
if (!
|
|
3395
|
+
const d = l.key && q(l.key, e), h = w.getController(d);
|
|
3396
|
+
if (!h)
|
|
3392
3397
|
return !0;
|
|
3393
|
-
const
|
|
3394
|
-
if (n.addedInteractions[
|
|
3398
|
+
const m = u.sequenceId || X(), p = q(`${d}::seq::${m}`, d);
|
|
3399
|
+
if (n.addedInteractions[p] && !i)
|
|
3395
3400
|
return !0;
|
|
3396
3401
|
const y = Lt(
|
|
3397
3402
|
u,
|
|
3398
|
-
m,
|
|
3399
|
-
d,
|
|
3400
3403
|
p,
|
|
3404
|
+
d,
|
|
3405
|
+
h,
|
|
3401
3406
|
n,
|
|
3402
3407
|
{ updateKey: e, onUpdate: () => t.update() },
|
|
3403
3408
|
i && s ? { controllerKey: e, listContainer: s, elements: i } : void 0
|
|
3404
3409
|
);
|
|
3405
3410
|
if (!y) return !0;
|
|
3406
|
-
if (i && n.addedInteractions[
|
|
3411
|
+
if (i && n.addedInteractions[p]) {
|
|
3407
3412
|
const b = xt(t, s, i);
|
|
3408
|
-
return w.addToSequence(
|
|
3413
|
+
return w.addToSequence(p, y, b, {
|
|
3409
3414
|
reducedMotion: w.forceReducedMotion
|
|
3410
3415
|
}), !0;
|
|
3411
3416
|
}
|
|
3412
|
-
const v = w.getSequence(
|
|
3417
|
+
const v = w.getSequence(p, u, y, {
|
|
3413
3418
|
reducedMotion: w.forceReducedMotion
|
|
3414
3419
|
}), E = P(
|
|
3415
3420
|
l.conditions || [],
|
|
3416
3421
|
n.dataCache.conditions
|
|
3417
|
-
), $ = Me(l,
|
|
3418
|
-
return $ && (n.addedInteractions[
|
|
3422
|
+
), $ = Me(l, h);
|
|
3423
|
+
return $ && (n.addedInteractions[p] = !0, Pe(
|
|
3419
3424
|
l,
|
|
3420
3425
|
u,
|
|
3421
3426
|
$,
|
|
@@ -3431,30 +3436,30 @@ function Ft(e, t, n, s, i) {
|
|
|
3431
3436
|
const f = q(l, e);
|
|
3432
3437
|
if (n.addedInteractions[f] && !i)
|
|
3433
3438
|
return;
|
|
3434
|
-
r[l].some(({ effect:
|
|
3439
|
+
r[l].some(({ effect: h, ...m }, p) => {
|
|
3435
3440
|
const g = M(
|
|
3436
|
-
|
|
3441
|
+
m.conditions || [],
|
|
3437
3442
|
n.dataCache.conditions
|
|
3438
3443
|
);
|
|
3439
3444
|
if (g && !g.matches)
|
|
3440
3445
|
return !1;
|
|
3441
|
-
const y =
|
|
3446
|
+
const y = h.effectId, v = {
|
|
3442
3447
|
...n.dataCache.effects[y] || {},
|
|
3443
|
-
...
|
|
3448
|
+
...h,
|
|
3444
3449
|
effectId: y
|
|
3445
3450
|
};
|
|
3446
3451
|
if (s && v.listContainer !== s)
|
|
3447
3452
|
return !1;
|
|
3448
3453
|
const E = M(v.conditions || [], n.dataCache.conditions);
|
|
3449
3454
|
if (E && n.setupMediaQueryListener(
|
|
3450
|
-
`${f}::${
|
|
3455
|
+
`${f}::${p}`,
|
|
3451
3456
|
E,
|
|
3452
3457
|
e,
|
|
3453
3458
|
() => {
|
|
3454
3459
|
t.update();
|
|
3455
3460
|
}
|
|
3456
3461
|
), !E || E.matches) {
|
|
3457
|
-
const $ =
|
|
3462
|
+
const $ = m.key && q(m.key, e), b = w.getController($);
|
|
3458
3463
|
if (!b)
|
|
3459
3464
|
return !0;
|
|
3460
3465
|
ye(
|
|
@@ -3465,7 +3470,7 @@ function Ft(e, t, n, s, i) {
|
|
|
3465
3470
|
"effect"
|
|
3466
3471
|
), v.listContainer && t.watchChildList(v.listContainer);
|
|
3467
3472
|
const [S, C] = qt(
|
|
3468
|
-
|
|
3473
|
+
m,
|
|
3469
3474
|
v,
|
|
3470
3475
|
b.element,
|
|
3471
3476
|
b.useFirstChild,
|
|
@@ -3483,7 +3488,7 @@ function Ft(e, t, n, s, i) {
|
|
|
3483
3488
|
);
|
|
3484
3489
|
return c.push([
|
|
3485
3490
|
e,
|
|
3486
|
-
|
|
3491
|
+
m,
|
|
3487
3492
|
v,
|
|
3488
3493
|
S,
|
|
3489
3494
|
C,
|
|
@@ -3521,8 +3526,8 @@ function Ze(e, t, n, s, i, o, r, a, c) {
|
|
|
3521
3526
|
}
|
|
3522
3527
|
let l;
|
|
3523
3528
|
if (n === "animationEnd") {
|
|
3524
|
-
const f = o.effectId,
|
|
3525
|
-
|
|
3529
|
+
const f = o.effectId, h = (c ? w.getInstance(c) : void 0)?.dataCache.effects[f];
|
|
3530
|
+
h && (l = L(h));
|
|
3526
3531
|
}
|
|
3527
3532
|
H[n]?.add(t, s, i, o, {
|
|
3528
3533
|
reducedMotion: w.forceReducedMotion,
|
|
@@ -3692,4 +3697,4 @@ export {
|
|
|
3692
3697
|
ki as g,
|
|
3693
3698
|
Mi as r
|
|
3694
3699
|
};
|
|
3695
|
-
//# sourceMappingURL=index-
|
|
3700
|
+
//# sourceMappingURL=index-BwQcAOxd.mjs.map
|