f-low-code-renderer 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as $, computed as F, openBlock as M, createElementBlock as L, normalizeStyle as W, createElementVNode as P, toDisplayString as q, inject as vr, provide as qt, Fragment as te, Comment as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as $, computed as F, openBlock as M, createElementBlock as L, normalizeStyle as W, createElementVNode as P, toDisplayString as q, inject as vr, provide as qt, Fragment as te, Comment as Ca, mergeProps as gr, cloneVNode as La, h as se, useAttrs as _a, getCurrentInstance as Da, onBeforeMount as Ia, onMounted as Be, onBeforeUnmount as Xi, onUnmounted as wt, onBeforeUpdate as yr, onUpdated as Ui, ref as B, createBlock as X, unref as _, withCtx as ne, renderSlot as ht, mergeDefaults as Oa, resolveDynamicComponent as Ba, TransitionGroup as za, Transition as Ra, createVNode as N, normalizeClass as Ee, createCommentVNode as J, reactive as Yt, watch as Hi, withDirectives as Ve, vShow as je, renderList as fe, vModelText as ka, withModifiers as pe, createTextVNode as Fa, useModel as Wi, Teleport as wr, useTemplateRef as ja, mergeModels as br, KeepAlive as $a, nextTick as Sr, useCssVars as Na } from "vue";
|
|
2
|
+
const Za = { class: "relative m-auto w-1200" }, Ga = { class: "container" }, Xa = { class: "title csr-v2-title-display" }, Ua = { class: "text csr-v2-text" }, Ha = /* @__PURE__ */ $({
|
|
3
3
|
name: "FBannerV2",
|
|
4
4
|
__name: "FBanner",
|
|
5
5
|
props: {
|
|
@@ -16,10 +16,10 @@ const Na = { class: "relative m-auto w-1200" }, Za = { class: "container" }, Ga
|
|
|
16
16
|
class: "banner_v2",
|
|
17
17
|
style: W(i.value)
|
|
18
18
|
}, [
|
|
19
|
-
P("div",
|
|
20
|
-
P("div",
|
|
21
|
-
P("div",
|
|
22
|
-
P("div",
|
|
19
|
+
P("div", Za, [
|
|
20
|
+
P("div", Ga, [
|
|
21
|
+
P("div", Xa, q(t.config.title), 1),
|
|
22
|
+
P("div", Ua, q(t.config.text), 1)
|
|
23
23
|
])
|
|
24
24
|
])
|
|
25
25
|
], 4));
|
|
@@ -29,7 +29,7 @@ const Na = { class: "relative m-auto w-1200" }, Za = { class: "container" }, Ga
|
|
|
29
29
|
for (const [n, s] of e)
|
|
30
30
|
i[n] = s;
|
|
31
31
|
return i;
|
|
32
|
-
}, Tr = /* @__PURE__ */ oe(
|
|
32
|
+
}, Tr = /* @__PURE__ */ oe(Ha, [["__scopeId", "data-v-69fbe02d"]]);
|
|
33
33
|
function Jt(t, e) {
|
|
34
34
|
const i = typeof t == "string" && !e ? `${t}Context` : e, n = Symbol(i);
|
|
35
35
|
return [(o) => {
|
|
@@ -43,7 +43,7 @@ function Jt(t, e) {
|
|
|
43
43
|
);
|
|
44
44
|
}, (o) => (qt(n, o), o)];
|
|
45
45
|
}
|
|
46
|
-
const [
|
|
46
|
+
const [Wa, Ka] = Jt("Motion"), [qa] = Jt("LayoutGroup");
|
|
47
47
|
function Mi(t, e, i) {
|
|
48
48
|
if (typeof t == "object")
|
|
49
49
|
return t;
|
|
@@ -53,9 +53,9 @@ function Mi(t, e, i) {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
function xr(t, e) {
|
|
56
|
-
return typeof t != typeof e ? !0 : Array.isArray(t) && Array.isArray(e) ? !
|
|
56
|
+
return typeof t != typeof e ? !0 : Array.isArray(t) && Array.isArray(e) ? !Ya(t, e) : t !== e;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Ya(t, e) {
|
|
59
59
|
const i = e.length;
|
|
60
60
|
if (i !== t.length)
|
|
61
61
|
return !1;
|
|
@@ -70,11 +70,11 @@ function Er(t, e) {
|
|
|
70
70
|
function Dn(t) {
|
|
71
71
|
return t == null ? void 0 : t.startsWith("--");
|
|
72
72
|
}
|
|
73
|
-
const
|
|
74
|
-
function
|
|
73
|
+
const Ja = (t) => t;
|
|
74
|
+
function Qa(t) {
|
|
75
75
|
return typeof t == "number";
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const el = [
|
|
78
78
|
"animate",
|
|
79
79
|
"circle",
|
|
80
80
|
"defs",
|
|
@@ -130,15 +130,15 @@ const Qa = [
|
|
|
130
130
|
"linearGradient",
|
|
131
131
|
"radialGradient",
|
|
132
132
|
"textPath"
|
|
133
|
-
],
|
|
134
|
-
function
|
|
135
|
-
return
|
|
133
|
+
], tl = new Set(el);
|
|
134
|
+
function il(t) {
|
|
135
|
+
return tl.has(t);
|
|
136
136
|
}
|
|
137
137
|
const In = {
|
|
138
138
|
syntax: "<angle>",
|
|
139
139
|
initialValue: "0deg",
|
|
140
140
|
toDefaultUnit: (t) => `${t}deg`
|
|
141
|
-
},
|
|
141
|
+
}, nl = {
|
|
142
142
|
translate: {
|
|
143
143
|
syntax: "<length-percentage>",
|
|
144
144
|
initialValue: "0px",
|
|
@@ -148,31 +148,31 @@ const In = {
|
|
|
148
148
|
scale: {
|
|
149
149
|
syntax: "<number>",
|
|
150
150
|
initialValue: 1,
|
|
151
|
-
toDefaultUnit:
|
|
151
|
+
toDefaultUnit: Ja
|
|
152
152
|
},
|
|
153
153
|
skew: In
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
}, sl = ["translate", "scale", "rotate", "skew"], rl = ["", "X", "Y", "Z"], Ki = /* @__PURE__ */ new Map(), Rt = ["transformPerspective", "x", "y", "z", "translateX", "translateY", "translateZ", "scale", "scaleX", "scaleY", "rotate", "rotateX", "rotateY", "rotateZ", "skew", "skewX", "skewY"];
|
|
155
|
+
sl.forEach((t) => {
|
|
156
|
+
rl.forEach((e) => {
|
|
157
157
|
Rt.push(t + e), Ki.set(
|
|
158
158
|
t + e,
|
|
159
|
-
|
|
159
|
+
nl[t]
|
|
160
160
|
);
|
|
161
161
|
});
|
|
162
162
|
});
|
|
163
|
-
const
|
|
163
|
+
const ol = new Set(Rt), al = (t) => ol.has(t), On = {
|
|
164
164
|
x: "translateX",
|
|
165
165
|
y: "translateY",
|
|
166
166
|
z: "translateZ"
|
|
167
167
|
};
|
|
168
|
-
function
|
|
168
|
+
function ll([t], [e]) {
|
|
169
169
|
return Rt.indexOf(t) - Rt.indexOf(e);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function ul(t, [e, i]) {
|
|
172
172
|
return `${t} ${e}(${i})`;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
return t.sort(
|
|
174
|
+
function cl(t) {
|
|
175
|
+
return t.sort(ll).reduce(ul, "").trim();
|
|
176
176
|
}
|
|
177
177
|
const Pr = {
|
|
178
178
|
translate: [0, 0],
|
|
@@ -199,17 +199,17 @@ const Mr = {
|
|
|
199
199
|
Dn(e) ? t.style.setProperty(e, i) : t.style[e] = i;
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
|
-
function
|
|
202
|
+
function dl(t) {
|
|
203
203
|
var e;
|
|
204
204
|
const i = {}, n = [];
|
|
205
205
|
for (let s in t) {
|
|
206
206
|
let r = t[s];
|
|
207
|
-
r = Qt(r) ? r.get() : r,
|
|
207
|
+
r = Qt(r) ? r.get() : r, al(s) && s in On && (s = On[s]);
|
|
208
208
|
let o = Array.isArray(r) ? r[0] : r;
|
|
209
209
|
const a = Ki.get(s);
|
|
210
|
-
a ? (o =
|
|
210
|
+
a ? (o = Qa(r) ? (e = a.toDefaultUnit) == null ? void 0 : e.call(a, r) : r, n.push([s, o])) : i[s] = o;
|
|
211
211
|
}
|
|
212
|
-
return n.length && (i.transform =
|
|
212
|
+
return n.length && (i.transform = cl(n)), i;
|
|
213
213
|
}
|
|
214
214
|
const Bn = {
|
|
215
215
|
fill: !0,
|
|
@@ -258,7 +258,7 @@ const Bn = {
|
|
|
258
258
|
letterSpacing: !0,
|
|
259
259
|
vectorEffect: !0
|
|
260
260
|
};
|
|
261
|
-
function
|
|
261
|
+
function fl(t) {
|
|
262
262
|
const e = {}, i = {};
|
|
263
263
|
for (const n in t)
|
|
264
264
|
if (n in Bn) {
|
|
@@ -274,7 +274,7 @@ function dl(t) {
|
|
|
274
274
|
function Vr(t) {
|
|
275
275
|
return t ? t.flatMap((e) => e.type === te ? Vr(e.children) : [e]) : [];
|
|
276
276
|
}
|
|
277
|
-
const
|
|
277
|
+
const pl = $({
|
|
278
278
|
name: "PrimitiveSlot",
|
|
279
279
|
inheritAttrs: !1,
|
|
280
280
|
setup(t, { attrs: e, slots: i }) {
|
|
@@ -282,20 +282,20 @@ const fl = $({
|
|
|
282
282
|
var n, s;
|
|
283
283
|
if (!i.default)
|
|
284
284
|
return null;
|
|
285
|
-
const r = Vr(i.default()), o = r.findIndex((u) => u.type !==
|
|
285
|
+
const r = Vr(i.default()), o = r.findIndex((u) => u.type !== Ca);
|
|
286
286
|
if (o === -1)
|
|
287
287
|
return r;
|
|
288
288
|
const a = r[o];
|
|
289
289
|
(n = a.props) == null || delete n.ref;
|
|
290
290
|
const l = a.props ? gr(e, a.props) : e;
|
|
291
291
|
e.class && ((s = a.props) != null && s.class) && delete a.props.class;
|
|
292
|
-
const c =
|
|
292
|
+
const c = La(a, l);
|
|
293
293
|
for (const u in l)
|
|
294
294
|
u.startsWith("on") && (c.props || (c.props = {}), c.props[u] = l[u]);
|
|
295
295
|
return r.length === 1 ? c : (r[o] = c, r);
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
-
}),
|
|
298
|
+
}), hl = $({
|
|
299
299
|
name: "Primitive",
|
|
300
300
|
inheritAttrs: !1,
|
|
301
301
|
props: {
|
|
@@ -316,7 +316,7 @@ const fl = $({
|
|
|
316
316
|
const n = t.asChild ? "template" : t.as, s = ["area", "img", "input"];
|
|
317
317
|
return () => {
|
|
318
318
|
const r = t.getProps(), o = { ...e, ...r };
|
|
319
|
-
return typeof n == "string" && s.includes(n) ? se(n, o) : n !== "template" ? se(t.as, o, { default: i.default }) : se(
|
|
319
|
+
return typeof n == "string" && s.includes(n) ? se(n, o) : n !== "template" ? se(t.as, o, { default: i.default }) : se(pl, o, { default: i.default });
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
});
|
|
@@ -352,7 +352,7 @@ process.env.NODE_ENV !== "production" && (bt = (t, e) => {
|
|
|
352
352
|
if (!t)
|
|
353
353
|
throw new Error(e);
|
|
354
354
|
});
|
|
355
|
-
function
|
|
355
|
+
function ml(t) {
|
|
356
356
|
let e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = !1, s = !1;
|
|
357
357
|
const r = /* @__PURE__ */ new WeakSet();
|
|
358
358
|
let o = {
|
|
@@ -403,16 +403,16 @@ const Mt = [
|
|
|
403
403
|
// Write
|
|
404
404
|
"postRender"
|
|
405
405
|
// Compute
|
|
406
|
-
],
|
|
406
|
+
], vl = 40;
|
|
407
407
|
function Ar(t, e) {
|
|
408
408
|
let i = !1, n = !0;
|
|
409
409
|
const s = {
|
|
410
410
|
delta: 0,
|
|
411
411
|
timestamp: 0,
|
|
412
412
|
isProcessing: !1
|
|
413
|
-
}, r = () => i = !0, o = Mt.reduce((v, w) => (v[w] =
|
|
413
|
+
}, r = () => i = !0, o = Mt.reduce((v, w) => (v[w] = ml(r), v), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: d, postRender: f } = o, p = () => {
|
|
414
414
|
const v = performance.now();
|
|
415
|
-
i = !1, s.delta = n ? 1e3 / 60 : Math.max(Math.min(v - s.timestamp,
|
|
415
|
+
i = !1, s.delta = n ? 1e3 / 60 : Math.max(Math.min(v - s.timestamp, vl), 1), s.timestamp = v, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), d.process(s), f.process(s), s.isProcessing = !1, i && e && (n = !1, t(p));
|
|
416
416
|
}, h = () => {
|
|
417
417
|
i = !0, n = !0, s.isProcessing || t(p);
|
|
418
418
|
};
|
|
@@ -425,13 +425,13 @@ function Ar(t, e) {
|
|
|
425
425
|
}, state: s, steps: o };
|
|
426
426
|
}
|
|
427
427
|
const { schedule: j, cancel: _e, state: Q, steps: si } = Ar(typeof requestAnimationFrame < "u" ? requestAnimationFrame : re, !0);
|
|
428
|
-
function
|
|
428
|
+
function gl(t) {
|
|
429
429
|
return t instanceof SVGElement && t.tagName !== "svg";
|
|
430
430
|
}
|
|
431
|
-
class
|
|
431
|
+
class yl extends ze {
|
|
432
432
|
mount() {
|
|
433
433
|
const e = this.state.element;
|
|
434
|
-
if (!
|
|
434
|
+
if (!gl(e))
|
|
435
435
|
return;
|
|
436
436
|
const i = this.state.visualElement;
|
|
437
437
|
j.read(() => {
|
|
@@ -458,7 +458,7 @@ const St = (t) => ({
|
|
|
458
458
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
459
459
|
parse: parseFloat,
|
|
460
460
|
transform: (e) => `${e}${t}`
|
|
461
|
-
}), Me = /* @__PURE__ */ St("deg"), Te = /* @__PURE__ */ St("%"), I = /* @__PURE__ */ St("px"),
|
|
461
|
+
}), Me = /* @__PURE__ */ St("deg"), Te = /* @__PURE__ */ St("%"), I = /* @__PURE__ */ St("px"), wl = /* @__PURE__ */ St("vh"), bl = /* @__PURE__ */ St("vw"), zn = {
|
|
462
462
|
...Te,
|
|
463
463
|
parse: (t) => Te.parse(t) / 100,
|
|
464
464
|
transform: (t) => Te.transform(t * 100)
|
|
@@ -489,10 +489,10 @@ const ot = {
|
|
|
489
489
|
...Qe,
|
|
490
490
|
default: 1
|
|
491
491
|
}, ct = (t) => Math.round(t * 1e5) / 1e5, Yi = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
492
|
-
function
|
|
492
|
+
function Sl(t) {
|
|
493
493
|
return t == null;
|
|
494
494
|
}
|
|
495
|
-
const
|
|
495
|
+
const Tl = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Ji = (t, e) => (i) => !!(typeof i == "string" && Tl.test(i) && i.startsWith(t) || e && !Sl(i) && Object.prototype.hasOwnProperty.call(i, e)), Lr = (t, e, i) => (n) => {
|
|
496
496
|
if (typeof n != "string")
|
|
497
497
|
return n;
|
|
498
498
|
const [s, r, o, a] = n.match(Yi);
|
|
@@ -502,15 +502,15 @@ const Sl = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
502
502
|
[i]: parseFloat(o),
|
|
503
503
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
504
504
|
};
|
|
505
|
-
},
|
|
505
|
+
}, xl = (t) => De(0, 255, t), ri = {
|
|
506
506
|
...Qe,
|
|
507
|
-
transform: (t) => Math.round(
|
|
507
|
+
transform: (t) => Math.round(xl(t))
|
|
508
508
|
}, $e = {
|
|
509
509
|
test: /* @__PURE__ */ Ji("rgb", "red"),
|
|
510
510
|
parse: /* @__PURE__ */ Lr("red", "green", "blue"),
|
|
511
511
|
transform: ({ red: t, green: e, blue: i, alpha: n = 1 }) => "rgba(" + ri.transform(t) + ", " + ri.transform(e) + ", " + ri.transform(i) + ", " + ct(mt.transform(n)) + ")"
|
|
512
512
|
};
|
|
513
|
-
function
|
|
513
|
+
function El(t) {
|
|
514
514
|
let e = "", i = "", n = "", s = "";
|
|
515
515
|
return t.length > 5 ? (e = t.substring(1, 3), i = t.substring(3, 5), n = t.substring(5, 7), s = t.substring(7, 9)) : (e = t.substring(1, 2), i = t.substring(2, 3), n = t.substring(3, 4), s = t.substring(4, 5), e += e, i += i, n += n, s += s), {
|
|
516
516
|
red: parseInt(e, 16),
|
|
@@ -521,7 +521,7 @@ function xl(t) {
|
|
|
521
521
|
}
|
|
522
522
|
const Vi = {
|
|
523
523
|
test: /* @__PURE__ */ Ji("#"),
|
|
524
|
-
parse:
|
|
524
|
+
parse: El,
|
|
525
525
|
transform: $e.transform
|
|
526
526
|
}, He = {
|
|
527
527
|
test: /* @__PURE__ */ Ji("hsl", "hue"),
|
|
@@ -531,12 +531,12 @@ const Vi = {
|
|
|
531
531
|
test: (t) => $e.test(t) || Vi.test(t) || He.test(t),
|
|
532
532
|
parse: (t) => $e.test(t) ? $e.parse(t) : He.test(t) ? He.parse(t) : Vi.parse(t),
|
|
533
533
|
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? $e.transform(t) : He.transform(t)
|
|
534
|
-
},
|
|
535
|
-
function
|
|
534
|
+
}, Pl = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
535
|
+
function Ml(t) {
|
|
536
536
|
var e, i;
|
|
537
|
-
return isNaN(t) && typeof t == "string" && (((e = t.match(Yi)) === null || e === void 0 ? void 0 : e.length) || 0) + (((i = t.match(
|
|
537
|
+
return isNaN(t) && typeof t == "string" && (((e = t.match(Yi)) === null || e === void 0 ? void 0 : e.length) || 0) + (((i = t.match(Pl)) === null || i === void 0 ? void 0 : i.length) || 0) > 0;
|
|
538
538
|
}
|
|
539
|
-
const _r = "number", Dr = "color",
|
|
539
|
+
const _r = "number", Dr = "color", Vl = "var", Al = "var(", kn = "${}", Cl = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
540
540
|
function vt(t) {
|
|
541
541
|
const e = t.toString(), i = [], n = {
|
|
542
542
|
color: [],
|
|
@@ -544,7 +544,7 @@ function vt(t) {
|
|
|
544
544
|
var: []
|
|
545
545
|
}, s = [];
|
|
546
546
|
let r = 0;
|
|
547
|
-
const a = e.replace(
|
|
547
|
+
const a = e.replace(Cl, (l) => (ee.test(l) ? (n.color.push(r), s.push(Dr), i.push(ee.parse(l))) : l.startsWith(Al) ? (n.var.push(r), s.push(Vl), i.push(l)) : (n.number.push(r), s.push(_r), i.push(parseFloat(l))), ++r, kn)).split(kn);
|
|
548
548
|
return { values: i, split: a, indexes: n, types: s };
|
|
549
549
|
}
|
|
550
550
|
function Ir(t) {
|
|
@@ -562,17 +562,17 @@ function Or(t) {
|
|
|
562
562
|
return r;
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
|
-
const
|
|
566
|
-
function
|
|
565
|
+
const Ll = (t) => typeof t == "number" ? 0 : t;
|
|
566
|
+
function _l(t) {
|
|
567
567
|
const e = Ir(t);
|
|
568
|
-
return Or(t)(e.map(
|
|
568
|
+
return Or(t)(e.map(Ll));
|
|
569
569
|
}
|
|
570
570
|
const Ie = {
|
|
571
|
-
test:
|
|
571
|
+
test: Ml,
|
|
572
572
|
parse: Ir,
|
|
573
573
|
createTransformer: Or,
|
|
574
|
-
getAnimatableNone:
|
|
575
|
-
},
|
|
574
|
+
getAnimatableNone: _l
|
|
575
|
+
}, Dl = {
|
|
576
576
|
correct: (t, { treeScale: e, projectionDelta: i }) => {
|
|
577
577
|
const n = t, s = Ie.parse(t);
|
|
578
578
|
if (s.length > 5)
|
|
@@ -596,7 +596,7 @@ const Ie = {
|
|
|
596
596
|
borderTopRightRadius: ot,
|
|
597
597
|
borderBottomLeftRadius: ot,
|
|
598
598
|
borderBottomRightRadius: ot,
|
|
599
|
-
boxShadow:
|
|
599
|
+
boxShadow: Dl
|
|
600
600
|
}, Ot = {
|
|
601
601
|
/**
|
|
602
602
|
* Global flag as to whether the tree has animated since the last time
|
|
@@ -609,7 +609,7 @@ const Ie = {
|
|
|
609
609
|
*/
|
|
610
610
|
hasEverUpdated: !1
|
|
611
611
|
};
|
|
612
|
-
class
|
|
612
|
+
class Il extends ze {
|
|
613
613
|
constructor(e) {
|
|
614
614
|
super(e), Cr(Br);
|
|
615
615
|
}
|
|
@@ -651,22 +651,22 @@ function Qi(t, e = "page") {
|
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function Ol(t) {
|
|
655
655
|
return (e) => zr(e) && t(e, Qi(e));
|
|
656
656
|
}
|
|
657
657
|
function Rr(t, e, i, n = { passive: !0 }) {
|
|
658
658
|
return t.addEventListener(e, i, n), () => t.removeEventListener(e, i);
|
|
659
659
|
}
|
|
660
660
|
function dt(t, e, i, n) {
|
|
661
|
-
return Rr(t, e,
|
|
661
|
+
return Rr(t, e, Ol(i), n);
|
|
662
662
|
}
|
|
663
663
|
const Fn = (t, e) => Math.abs(t - e);
|
|
664
|
-
function
|
|
664
|
+
function Bl(t, e) {
|
|
665
665
|
const i = Fn(t.x, e.x), n = Fn(t.y, e.y);
|
|
666
666
|
return Math.sqrt(i ** 2 + n ** 2);
|
|
667
667
|
}
|
|
668
|
-
const
|
|
669
|
-
function
|
|
668
|
+
const zl = (t, e) => (i) => e(t(i)), ei = (...t) => t.reduce(zl), Rl = (t) => t * 1e3;
|
|
669
|
+
function kl(t) {
|
|
670
670
|
return t / 1e3;
|
|
671
671
|
}
|
|
672
672
|
class kr {
|
|
@@ -674,7 +674,7 @@ class kr {
|
|
|
674
674
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
675
675
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
676
676
|
return;
|
|
677
|
-
const d = ai(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, p =
|
|
677
|
+
const d = ai(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, p = Bl(d.offset, { x: 0, y: 0 }) >= 3;
|
|
678
678
|
if (!f && !p)
|
|
679
679
|
return;
|
|
680
680
|
const { point: h } = d, { timestamp: m } = Q;
|
|
@@ -734,26 +734,26 @@ function ai({ point: t }, e) {
|
|
|
734
734
|
return {
|
|
735
735
|
point: t,
|
|
736
736
|
delta: jn(t, Fr(e)),
|
|
737
|
-
offset: jn(t,
|
|
738
|
-
velocity:
|
|
737
|
+
offset: jn(t, Fl(e)),
|
|
738
|
+
velocity: jl(e, 0.1)
|
|
739
739
|
};
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Fl(t) {
|
|
742
742
|
return t[0];
|
|
743
743
|
}
|
|
744
744
|
function Fr(t) {
|
|
745
745
|
return t[t.length - 1];
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function jl(t, e) {
|
|
748
748
|
if (t.length < 2)
|
|
749
749
|
return { x: 0, y: 0 };
|
|
750
750
|
let i = t.length - 1, n = null;
|
|
751
751
|
const s = Fr(t);
|
|
752
|
-
for (; i >= 0 && (n = t[i], !(s.timestamp - n.timestamp >
|
|
752
|
+
for (; i >= 0 && (n = t[i], !(s.timestamp - n.timestamp > Rl(e))); )
|
|
753
753
|
i--;
|
|
754
754
|
if (!n)
|
|
755
755
|
return { x: 0, y: 0 };
|
|
756
|
-
const r =
|
|
756
|
+
const r = kl(
|
|
757
757
|
s.timestamp - n.timestamp
|
|
758
758
|
);
|
|
759
759
|
if (r === 0)
|
|
@@ -772,7 +772,7 @@ function $n(t) {
|
|
|
772
772
|
t && j.postRender(() => t(e, i));
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
|
-
class
|
|
775
|
+
class $l extends ze {
|
|
776
776
|
constructor() {
|
|
777
777
|
super(...arguments), this.removePointerDownListener = re;
|
|
778
778
|
}
|
|
@@ -822,17 +822,17 @@ class jl extends ze {
|
|
|
822
822
|
function en(t, e) {
|
|
823
823
|
return t ? t[e] || t.default || t : void 0;
|
|
824
824
|
}
|
|
825
|
-
const
|
|
825
|
+
const Nl = {
|
|
826
826
|
useManualTiming: !1
|
|
827
827
|
};
|
|
828
828
|
let Bt;
|
|
829
|
-
function
|
|
829
|
+
function Zl() {
|
|
830
830
|
Bt = void 0;
|
|
831
831
|
}
|
|
832
832
|
const ve = {
|
|
833
|
-
now: () => (Bt === void 0 && ve.set(Q.isProcessing ||
|
|
833
|
+
now: () => (Bt === void 0 && ve.set(Q.isProcessing || Nl.useManualTiming ? Q.timestamp : performance.now()), Bt),
|
|
834
834
|
set: (t) => {
|
|
835
|
-
Bt = t, queueMicrotask(
|
|
835
|
+
Bt = t, queueMicrotask(Zl);
|
|
836
836
|
}
|
|
837
837
|
};
|
|
838
838
|
function tn(t, e) {
|
|
@@ -874,8 +874,8 @@ const Nn = /* @__PURE__ */ new Set();
|
|
|
874
874
|
function sn(t, e, i) {
|
|
875
875
|
t || Nn.has(e) || (console.warn(e), Nn.add(e));
|
|
876
876
|
}
|
|
877
|
-
const Zn = 30,
|
|
878
|
-
class
|
|
877
|
+
const Zn = 30, Gl = (t) => !isNaN(parseFloat(t));
|
|
878
|
+
class Xl {
|
|
879
879
|
/**
|
|
880
880
|
* @param init - The initiating value
|
|
881
881
|
* @param config - Optional configuration options
|
|
@@ -891,7 +891,7 @@ class Gl {
|
|
|
891
891
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = i.owner;
|
|
892
892
|
}
|
|
893
893
|
setCurrent(e) {
|
|
894
|
-
this.current = e, this.updatedAt = ve.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity =
|
|
894
|
+
this.current = e, this.updatedAt = ve.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Gl(this.current));
|
|
895
895
|
}
|
|
896
896
|
setPrevFrameValue(e = this.current) {
|
|
897
897
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -1070,15 +1070,15 @@ class Gl {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
1072
|
function gt(t, e) {
|
|
1073
|
-
return new
|
|
1073
|
+
return new Xl(t, e);
|
|
1074
1074
|
}
|
|
1075
1075
|
const ie = (t) => !!(t && t.getVelocity);
|
|
1076
1076
|
function rn(t) {
|
|
1077
1077
|
let e;
|
|
1078
1078
|
return () => (e === void 0 && (e = t()), e);
|
|
1079
1079
|
}
|
|
1080
|
-
const
|
|
1081
|
-
class
|
|
1080
|
+
const Ul = rn(() => window.ScrollTimeline !== void 0);
|
|
1081
|
+
class Hl {
|
|
1082
1082
|
constructor(e) {
|
|
1083
1083
|
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
|
1084
1084
|
}
|
|
@@ -1097,7 +1097,7 @@ class Ul {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
attachTimeline(e, i) {
|
|
1099
1099
|
const n = this.animations.map((s) => {
|
|
1100
|
-
if (
|
|
1100
|
+
if (Ul() && s.attachTimeline)
|
|
1101
1101
|
return s.attachTimeline(e);
|
|
1102
1102
|
if (typeof i == "function")
|
|
1103
1103
|
return i(s);
|
|
@@ -1148,7 +1148,7 @@ class Ul {
|
|
|
1148
1148
|
this.runAll("complete");
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
|
-
class Nr extends
|
|
1151
|
+
class Nr extends Hl {
|
|
1152
1152
|
then(e, i) {
|
|
1153
1153
|
return Promise.all(this.animations).then(e).catch(i);
|
|
1154
1154
|
}
|
|
@@ -1160,17 +1160,17 @@ function ii(t) {
|
|
|
1160
1160
|
function Gn(t, e) {
|
|
1161
1161
|
t.timeline = e, t.onfinish = null;
|
|
1162
1162
|
}
|
|
1163
|
-
const on = (t) => Array.isArray(t) && typeof t[0] == "number",
|
|
1163
|
+
const on = (t) => Array.isArray(t) && typeof t[0] == "number", Wl = {
|
|
1164
1164
|
linearEasing: void 0
|
|
1165
1165
|
};
|
|
1166
|
-
function
|
|
1166
|
+
function Kl(t, e) {
|
|
1167
1167
|
const i = rn(t);
|
|
1168
1168
|
return () => {
|
|
1169
1169
|
var n;
|
|
1170
|
-
return (n =
|
|
1170
|
+
return (n = Wl[e]) !== null && n !== void 0 ? n : i();
|
|
1171
1171
|
};
|
|
1172
1172
|
}
|
|
1173
|
-
const Ft = /* @__PURE__ */
|
|
1173
|
+
const Ft = /* @__PURE__ */ Kl(() => {
|
|
1174
1174
|
try {
|
|
1175
1175
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1176
1176
|
} catch {
|
|
@@ -1205,22 +1205,22 @@ function Xr(t, e) {
|
|
|
1205
1205
|
if (t)
|
|
1206
1206
|
return typeof t == "function" && Ft() ? Zr(t, e) : on(t) ? at(t) : Array.isArray(t) ? t.map((i) => Xr(i, e) || Ai.easeOut) : Ai[t];
|
|
1207
1207
|
}
|
|
1208
|
-
const Ur = (t, e, i) => (((1 - 3 * i + 3 * e) * t + (3 * i - 6 * e)) * t + 3 * e) * t,
|
|
1209
|
-
function
|
|
1208
|
+
const Ur = (t, e, i) => (((1 - 3 * i + 3 * e) * t + (3 * i - 6 * e)) * t + 3 * e) * t, ql = 1e-7, Yl = 12;
|
|
1209
|
+
function Jl(t, e, i, n, s) {
|
|
1210
1210
|
let r, o, a = 0;
|
|
1211
1211
|
do
|
|
1212
1212
|
o = e + (i - e) / 2, r = Ur(o, n, s) - t, r > 0 ? i = o : e = o;
|
|
1213
|
-
while (Math.abs(r) >
|
|
1213
|
+
while (Math.abs(r) > ql && ++a < Yl);
|
|
1214
1214
|
return o;
|
|
1215
1215
|
}
|
|
1216
1216
|
function xt(t, e, i, n) {
|
|
1217
1217
|
if (t === e && i === n)
|
|
1218
1218
|
return re;
|
|
1219
|
-
const s = (r) =>
|
|
1219
|
+
const s = (r) => Jl(r, 0, 1, t, i);
|
|
1220
1220
|
return (r) => r === 0 || r === 1 ? r : Ur(s(r), e, n);
|
|
1221
1221
|
}
|
|
1222
1222
|
const Hr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Wr = (t) => (e) => 1 - t(1 - e), Kr = /* @__PURE__ */ xt(0.33, 1.53, 0.69, 0.99), an = /* @__PURE__ */ Wr(Kr), qr = /* @__PURE__ */ Hr(an), Yr = (t) => (t *= 2) < 1 ? 0.5 * an(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), ln = (t) => 1 - Math.sin(Math.acos(t)), Jr = Wr(ln), Qr = Hr(ln), eo = (t) => /^0[^.\s]+$/u.test(t);
|
|
1223
|
-
function
|
|
1223
|
+
function Ql(t) {
|
|
1224
1224
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || eo(t) : !0;
|
|
1225
1225
|
}
|
|
1226
1226
|
const et = [
|
|
@@ -1249,8 +1249,8 @@ const et = [
|
|
|
1249
1249
|
"right",
|
|
1250
1250
|
"bottom",
|
|
1251
1251
|
...et
|
|
1252
|
-
]),
|
|
1253
|
-
function
|
|
1252
|
+
]), eu = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
1253
|
+
function tu(t) {
|
|
1254
1254
|
const [e, i] = t.slice(0, -1).split("(");
|
|
1255
1255
|
if (e === "drop-shadow")
|
|
1256
1256
|
return t;
|
|
@@ -1258,16 +1258,16 @@ function eu(t) {
|
|
|
1258
1258
|
if (!n)
|
|
1259
1259
|
return t;
|
|
1260
1260
|
const s = i.replace(n, "");
|
|
1261
|
-
let r =
|
|
1261
|
+
let r = eu.has(e) ? 1 : 0;
|
|
1262
1262
|
return n !== i && (r *= 100), e + "(" + r + s + ")";
|
|
1263
1263
|
}
|
|
1264
|
-
const
|
|
1264
|
+
const iu = /\b([a-z-]*)\(.*?\)/gu, Ci = {
|
|
1265
1265
|
...Ie,
|
|
1266
1266
|
getAnimatableNone: (t) => {
|
|
1267
|
-
const e = t.match(
|
|
1268
|
-
return e ? e.map(
|
|
1267
|
+
const e = t.match(iu);
|
|
1268
|
+
return e ? e.map(tu).join(" ") : t;
|
|
1269
1269
|
}
|
|
1270
|
-
},
|
|
1270
|
+
}, nu = {
|
|
1271
1271
|
// Border props
|
|
1272
1272
|
borderWidth: I,
|
|
1273
1273
|
borderTopWidth: I,
|
|
@@ -1303,7 +1303,7 @@ const tu = /\b([a-z-]*)\(.*?\)/gu, Ci = {
|
|
|
1303
1303
|
// Misc
|
|
1304
1304
|
backgroundPositionX: I,
|
|
1305
1305
|
backgroundPositionY: I
|
|
1306
|
-
},
|
|
1306
|
+
}, su = {
|
|
1307
1307
|
rotate: Me,
|
|
1308
1308
|
rotateX: Me,
|
|
1309
1309
|
rotateY: Me,
|
|
@@ -1332,15 +1332,15 @@ const tu = /\b([a-z-]*)\(.*?\)/gu, Ci = {
|
|
|
1332
1332
|
...Qe,
|
|
1333
1333
|
transform: Math.round
|
|
1334
1334
|
}, un = {
|
|
1335
|
-
...iu,
|
|
1336
1335
|
...nu,
|
|
1336
|
+
...su,
|
|
1337
1337
|
zIndex: Xn,
|
|
1338
1338
|
size: I,
|
|
1339
1339
|
// SVG
|
|
1340
1340
|
fillOpacity: mt,
|
|
1341
1341
|
strokeOpacity: mt,
|
|
1342
1342
|
numOctaves: Xn
|
|
1343
|
-
},
|
|
1343
|
+
}, ru = {
|
|
1344
1344
|
...un,
|
|
1345
1345
|
// Color props
|
|
1346
1346
|
color: ee,
|
|
@@ -1356,17 +1356,17 @@ const tu = /\b([a-z-]*)\(.*?\)/gu, Ci = {
|
|
|
1356
1356
|
borderLeftColor: ee,
|
|
1357
1357
|
filter: Ci,
|
|
1358
1358
|
WebkitFilter: Ci
|
|
1359
|
-
}, cn = (t) =>
|
|
1359
|
+
}, cn = (t) => ru[t];
|
|
1360
1360
|
function io(t, e) {
|
|
1361
1361
|
let i = cn(t);
|
|
1362
1362
|
return i !== Ci && (i = Ie), i.getAnimatableNone ? i.getAnimatableNone(e) : void 0;
|
|
1363
1363
|
}
|
|
1364
|
-
const
|
|
1365
|
-
function
|
|
1364
|
+
const ou = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
1365
|
+
function au(t, e, i) {
|
|
1366
1366
|
let n = 0, s;
|
|
1367
1367
|
for (; n < t.length && !s; ) {
|
|
1368
1368
|
const r = t[n];
|
|
1369
|
-
typeof r == "string" && !
|
|
1369
|
+
typeof r == "string" && !ou.has(r) && vt(r).values.length && (s = t[n]), n++;
|
|
1370
1370
|
}
|
|
1371
1371
|
if (s && i)
|
|
1372
1372
|
for (const r of e)
|
|
@@ -1382,10 +1382,10 @@ const Un = (t) => t === Qe || t === I, Hn = (t, e) => parseFloat(t.split(", ")[e
|
|
|
1382
1382
|
const r = n.match(/^matrix\((.+)\)$/u);
|
|
1383
1383
|
return r ? Hn(r[1], t) : 0;
|
|
1384
1384
|
}
|
|
1385
|
-
},
|
|
1386
|
-
function
|
|
1385
|
+
}, lu = /* @__PURE__ */ new Set(["x", "y", "z"]), uu = et.filter((t) => !lu.has(t));
|
|
1386
|
+
function cu(t) {
|
|
1387
1387
|
const e = [];
|
|
1388
|
-
return
|
|
1388
|
+
return uu.forEach((i) => {
|
|
1389
1389
|
const n = t.getValue(i);
|
|
1390
1390
|
n !== void 0 && (e.push([i, n.get()]), n.set(i.startsWith("scale") ? 1 : 0));
|
|
1391
1391
|
}), e;
|
|
@@ -1410,7 +1410,7 @@ function no() {
|
|
|
1410
1410
|
if (_i) {
|
|
1411
1411
|
const t = Array.from(Ne).filter((n) => n.needsMeasurement), e = new Set(t.map((n) => n.element)), i = /* @__PURE__ */ new Map();
|
|
1412
1412
|
e.forEach((n) => {
|
|
1413
|
-
const s =
|
|
1413
|
+
const s = cu(n);
|
|
1414
1414
|
s.length && (i.set(n, s), n.render());
|
|
1415
1415
|
}), t.forEach((n) => n.measureInitialState()), e.forEach((n) => {
|
|
1416
1416
|
n.render();
|
|
@@ -1430,7 +1430,7 @@ function so() {
|
|
|
1430
1430
|
t.readKeyframes(), t.needsMeasurement && (_i = !0);
|
|
1431
1431
|
});
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function du() {
|
|
1434
1434
|
so(), no();
|
|
1435
1435
|
}
|
|
1436
1436
|
class dn {
|
|
@@ -1474,21 +1474,21 @@ class dn {
|
|
|
1474
1474
|
this.isComplete || this.scheduleResolve();
|
|
1475
1475
|
}
|
|
1476
1476
|
}
|
|
1477
|
-
const ro = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), oo = (t) => (e) => typeof e == "string" && e.startsWith(t), ao = /* @__PURE__ */ oo("--"),
|
|
1477
|
+
const ro = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), oo = (t) => (e) => typeof e == "string" && e.startsWith(t), ao = /* @__PURE__ */ oo("--"), fu = /* @__PURE__ */ oo("var(--"), fn = (t) => fu(t) ? pu.test(t.split("/*")[0].trim()) : !1, pu = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, hu = (
|
|
1478
1478
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
1479
1479
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
1480
1480
|
);
|
|
1481
|
-
function
|
|
1482
|
-
const e =
|
|
1481
|
+
function mu(t) {
|
|
1482
|
+
const e = hu.exec(t);
|
|
1483
1483
|
if (!e)
|
|
1484
1484
|
return [,];
|
|
1485
1485
|
const [, i, n, s] = e;
|
|
1486
1486
|
return [`--${i ?? n}`, s];
|
|
1487
1487
|
}
|
|
1488
|
-
const
|
|
1488
|
+
const vu = 4;
|
|
1489
1489
|
function lo(t, e, i = 1) {
|
|
1490
|
-
Le(i <=
|
|
1491
|
-
const [n, s] =
|
|
1490
|
+
Le(i <= vu, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
|
|
1491
|
+
const [n, s] = mu(t);
|
|
1492
1492
|
if (!n)
|
|
1493
1493
|
return;
|
|
1494
1494
|
const r = window.getComputedStyle(e).getPropertyValue(n);
|
|
@@ -1498,10 +1498,10 @@ function lo(t, e, i = 1) {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
return fn(s) ? lo(s, e, i + 1) : s;
|
|
1500
1500
|
}
|
|
1501
|
-
const uo = (t) => (e) => e.test(t),
|
|
1501
|
+
const uo = (t) => (e) => e.test(t), gu = {
|
|
1502
1502
|
test: (t) => t === "auto",
|
|
1503
1503
|
parse: (t) => t
|
|
1504
|
-
}, co = [Qe, I, Te, Me,
|
|
1504
|
+
}, co = [Qe, I, Te, Me, bl, wl, gu], Kn = (t) => co.find(uo(t));
|
|
1505
1505
|
class fo extends dn {
|
|
1506
1506
|
constructor(e, i, n, s, r) {
|
|
1507
1507
|
super(e, i, n, s, r, !0);
|
|
@@ -1533,8 +1533,8 @@ class fo extends dn {
|
|
|
1533
1533
|
resolveNoneKeyframes() {
|
|
1534
1534
|
const { unresolvedKeyframes: e, name: i } = this, n = [];
|
|
1535
1535
|
for (let s = 0; s < e.length; s++)
|
|
1536
|
-
|
|
1537
|
-
n.length &&
|
|
1536
|
+
Ql(e[s]) && n.push(s);
|
|
1537
|
+
n.length && au(e, n, i);
|
|
1538
1538
|
}
|
|
1539
1539
|
measureInitialState() {
|
|
1540
1540
|
const { element: e, unresolvedKeyframes: i, name: n } = this;
|
|
@@ -1560,7 +1560,7 @@ class fo extends dn {
|
|
|
1560
1560
|
const qn = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
1561
1561
|
(Ie.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
1562
1562
|
!t.startsWith("url("));
|
|
1563
|
-
function
|
|
1563
|
+
function yu(t) {
|
|
1564
1564
|
const e = t[0];
|
|
1565
1565
|
if (t.length === 1)
|
|
1566
1566
|
return !0;
|
|
@@ -1568,21 +1568,21 @@ function gu(t) {
|
|
|
1568
1568
|
if (t[i] !== e)
|
|
1569
1569
|
return !0;
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function wu(t, e, i, n) {
|
|
1572
1572
|
const s = t[0];
|
|
1573
1573
|
if (s === null)
|
|
1574
1574
|
return !1;
|
|
1575
1575
|
if (e === "display" || e === "visibility")
|
|
1576
1576
|
return !0;
|
|
1577
1577
|
const r = t[t.length - 1], o = qn(s, e), a = qn(r, e);
|
|
1578
|
-
return bt(o === a, `You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`), !o || !a ? !1 :
|
|
1578
|
+
return bt(o === a, `You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`), !o || !a ? !1 : yu(t) || (i === "spring" || ii(i)) && n;
|
|
1579
1579
|
}
|
|
1580
|
-
const
|
|
1580
|
+
const bu = (t) => t !== null;
|
|
1581
1581
|
function ni(t, { repeat: e, repeatType: i = "loop" }, n) {
|
|
1582
|
-
const s = t.filter(
|
|
1582
|
+
const s = t.filter(bu), r = e && i !== "loop" && e % 2 === 1 ? 0 : s.length - 1;
|
|
1583
1583
|
return !r || n === void 0 ? s[r] : n;
|
|
1584
1584
|
}
|
|
1585
|
-
const
|
|
1585
|
+
const Su = 40;
|
|
1586
1586
|
class po {
|
|
1587
1587
|
constructor({ autoplay: e = !0, delay: i = 0, type: n = "keyframes", repeat: s = 0, repeatDelay: r = 0, repeatType: o = "loop", ...a }) {
|
|
1588
1588
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = ve.now(), this.options = {
|
|
@@ -1606,7 +1606,7 @@ class po {
|
|
|
1606
1606
|
* to avoid a sudden jump into the animation.
|
|
1607
1607
|
*/
|
|
1608
1608
|
calcStartTime() {
|
|
1609
|
-
return this.resolvedAt ? this.resolvedAt - this.createdAt >
|
|
1609
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > Su ? this.resolvedAt : this.createdAt : this.createdAt;
|
|
1610
1610
|
}
|
|
1611
1611
|
/**
|
|
1612
1612
|
* A getter for resolved data. If keyframes are not yet resolved, accessing
|
|
@@ -1614,7 +1614,7 @@ class po {
|
|
|
1614
1614
|
* This is a deoptimisation, but at its worst still batches read/writes.
|
|
1615
1615
|
*/
|
|
1616
1616
|
get resolved() {
|
|
1617
|
-
return !this._resolved && !this.hasAttemptedResolve &&
|
|
1617
|
+
return !this._resolved && !this.hasAttemptedResolve && du(), this._resolved;
|
|
1618
1618
|
}
|
|
1619
1619
|
/**
|
|
1620
1620
|
* A method to be called when the keyframes resolver completes. This method
|
|
@@ -1624,7 +1624,7 @@ class po {
|
|
|
1624
1624
|
onKeyframesResolved(e, i) {
|
|
1625
1625
|
this.resolvedAt = ve.now(), this.hasAttemptedResolve = !0;
|
|
1626
1626
|
const { name: n, type: s, velocity: r, delay: o, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
|
|
1627
|
-
if (!c && !
|
|
1627
|
+
if (!c && !wu(e, n, s, r))
|
|
1628
1628
|
if (o)
|
|
1629
1629
|
this.options.duration = 0;
|
|
1630
1630
|
else {
|
|
@@ -1669,7 +1669,7 @@ function pn(t) {
|
|
|
1669
1669
|
function li(t, e, i) {
|
|
1670
1670
|
return i < 0 && (i += 1), i > 1 && (i -= 1), i < 1 / 6 ? t + (e - t) * 6 * i : i < 1 / 2 ? e : i < 2 / 3 ? t + (e - t) * (2 / 3 - i) * 6 : t;
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function Tu({ hue: t, saturation: e, lightness: i, alpha: n }) {
|
|
1673
1673
|
t /= 360, e /= 100, i /= 100;
|
|
1674
1674
|
let s = 0, r = 0, o = 0;
|
|
1675
1675
|
if (!e)
|
|
@@ -1691,13 +1691,13 @@ function $t(t, e) {
|
|
|
1691
1691
|
const ui = (t, e, i) => {
|
|
1692
1692
|
const n = t * t, s = i * (e * e - n) + n;
|
|
1693
1693
|
return s < 0 ? 0 : Math.sqrt(s);
|
|
1694
|
-
},
|
|
1694
|
+
}, xu = [Vi, $e, He], Eu = (t) => xu.find((e) => e.test(t));
|
|
1695
1695
|
function Yn(t) {
|
|
1696
|
-
const e =
|
|
1696
|
+
const e = Eu(t);
|
|
1697
1697
|
if (bt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
1698
1698
|
return !1;
|
|
1699
1699
|
let i = e.parse(t);
|
|
1700
|
-
return e === He && (i =
|
|
1700
|
+
return e === He && (i = Tu(i)), i;
|
|
1701
1701
|
}
|
|
1702
1702
|
const Jn = (t, e) => {
|
|
1703
1703
|
const i = Yn(t), n = Yn(e);
|
|
@@ -1706,14 +1706,14 @@ const Jn = (t, e) => {
|
|
|
1706
1706
|
const s = { ...i };
|
|
1707
1707
|
return (r) => (s.red = ui(i.red, n.red, r), s.green = ui(i.green, n.green, r), s.blue = ui(i.blue, n.blue, r), s.alpha = K(i.alpha, n.alpha, r), $e.transform(s));
|
|
1708
1708
|
}, Di = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
1709
|
-
function
|
|
1709
|
+
function Pu(t, e) {
|
|
1710
1710
|
return Di.has(t) ? (i) => i <= 0 ? t : e : (i) => i >= 1 ? e : t;
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1712
|
+
function Mu(t, e) {
|
|
1713
1713
|
return (i) => K(t, e, i);
|
|
1714
1714
|
}
|
|
1715
1715
|
function hn(t) {
|
|
1716
|
-
return typeof t == "number" ?
|
|
1716
|
+
return typeof t == "number" ? Mu : typeof t == "string" ? fn(t) ? $t : ee.test(t) ? Jn : Cu : Array.isArray(t) ? ho : typeof t == "object" ? ee.test(t) ? Jn : Vu : $t;
|
|
1717
1717
|
}
|
|
1718
1718
|
function ho(t, e) {
|
|
1719
1719
|
const i = [...t], n = i.length, s = t.map((r, o) => hn(r)(r, e[o]));
|
|
@@ -1723,7 +1723,7 @@ function ho(t, e) {
|
|
|
1723
1723
|
return i;
|
|
1724
1724
|
};
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function Vu(t, e) {
|
|
1727
1727
|
const i = { ...t, ...e }, n = {};
|
|
1728
1728
|
for (const s in i)
|
|
1729
1729
|
t[s] !== void 0 && e[s] !== void 0 && (n[s] = hn(t[s])(t[s], e[s]));
|
|
@@ -1733,7 +1733,7 @@ function Mu(t, e) {
|
|
|
1733
1733
|
return i;
|
|
1734
1734
|
};
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1736
|
+
function Au(t, e) {
|
|
1737
1737
|
var i;
|
|
1738
1738
|
const n = [], s = { color: 0, var: 0, number: 0 };
|
|
1739
1739
|
for (let r = 0; r < e.values.length; r++) {
|
|
@@ -1742,16 +1742,16 @@ function Vu(t, e) {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
return n;
|
|
1744
1744
|
}
|
|
1745
|
-
const
|
|
1745
|
+
const Cu = (t, e) => {
|
|
1746
1746
|
const i = Ie.createTransformer(e), n = vt(t), s = vt(e);
|
|
1747
|
-
return n.indexes.var.length === s.indexes.var.length && n.indexes.color.length === s.indexes.color.length && n.indexes.number.length >= s.indexes.number.length ? Di.has(t) && !s.values.length || Di.has(e) && !n.values.length ?
|
|
1747
|
+
return n.indexes.var.length === s.indexes.var.length && n.indexes.color.length === s.indexes.color.length && n.indexes.number.length >= s.indexes.number.length ? Di.has(t) && !s.values.length || Di.has(e) && !n.values.length ? Pu(t, e) : ei(ho(Au(n, s), s.values), i) : (bt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), $t(t, e));
|
|
1748
1748
|
};
|
|
1749
1749
|
function mo(t, e, i) {
|
|
1750
1750
|
return typeof t == "number" && typeof e == "number" && typeof i == "number" ? K(t, e, i) : hn(t)(t, e);
|
|
1751
1751
|
}
|
|
1752
|
-
const
|
|
1752
|
+
const Lu = 5;
|
|
1753
1753
|
function vo(t, e, i) {
|
|
1754
|
-
const n = Math.max(e -
|
|
1754
|
+
const n = Math.max(e - Lu, 0);
|
|
1755
1755
|
return $r(i - t(n), e - n);
|
|
1756
1756
|
}
|
|
1757
1757
|
const G = {
|
|
@@ -1783,7 +1783,7 @@ const G = {
|
|
|
1783
1783
|
minDamping: 0.05,
|
|
1784
1784
|
maxDamping: 1
|
|
1785
1785
|
}, ci = 1e-3;
|
|
1786
|
-
function
|
|
1786
|
+
function _u({ duration: t = G.duration, bounce: e = G.bounce, velocity: i = G.velocity, mass: n = G.mass }) {
|
|
1787
1787
|
let s, r;
|
|
1788
1788
|
bt(t <= ge(G.maxDuration), "Spring duration must be 10 seconds or less");
|
|
1789
1789
|
let o = 1 - e;
|
|
@@ -1800,7 +1800,7 @@ function Lu({ duration: t = G.duration, bounce: e = G.bounce, velocity: i = G.ve
|
|
|
1800
1800
|
const u = Math.exp(-c * t), d = (i - c) * (t * t);
|
|
1801
1801
|
return u * d;
|
|
1802
1802
|
});
|
|
1803
|
-
const a = 5 / t, l =
|
|
1803
|
+
const a = 5 / t, l = Iu(s, r, a);
|
|
1804
1804
|
if (t = ge(t), isNaN(l))
|
|
1805
1805
|
return {
|
|
1806
1806
|
stiffness: G.stiffness,
|
|
@@ -1816,21 +1816,21 @@ function Lu({ duration: t = G.duration, bounce: e = G.bounce, velocity: i = G.ve
|
|
|
1816
1816
|
};
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
|
-
const
|
|
1820
|
-
function
|
|
1819
|
+
const Du = 12;
|
|
1820
|
+
function Iu(t, e, i) {
|
|
1821
1821
|
let n = i;
|
|
1822
|
-
for (let s = 1; s <
|
|
1822
|
+
for (let s = 1; s < Du; s++)
|
|
1823
1823
|
n = n - t(n) / e(n);
|
|
1824
1824
|
return n;
|
|
1825
1825
|
}
|
|
1826
1826
|
function Ii(t, e) {
|
|
1827
1827
|
return t * Math.sqrt(1 - e * e);
|
|
1828
1828
|
}
|
|
1829
|
-
const
|
|
1829
|
+
const Ou = ["duration", "bounce"], Bu = ["stiffness", "damping", "mass"];
|
|
1830
1830
|
function Qn(t, e) {
|
|
1831
1831
|
return e.some((i) => t[i] !== void 0);
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function zu(t) {
|
|
1834
1834
|
let e = {
|
|
1835
1835
|
velocity: G.velocity,
|
|
1836
1836
|
stiffness: G.stiffness,
|
|
@@ -1839,7 +1839,7 @@ function Bu(t) {
|
|
|
1839
1839
|
isResolvedFromDuration: !1,
|
|
1840
1840
|
...t
|
|
1841
1841
|
};
|
|
1842
|
-
if (!Qn(t,
|
|
1842
|
+
if (!Qn(t, Bu) && Qn(t, Ou))
|
|
1843
1843
|
if (t.visualDuration) {
|
|
1844
1844
|
const i = t.visualDuration, n = 2 * Math.PI / (i * 1.2), s = n * n, r = 2 * De(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(s);
|
|
1845
1845
|
e = {
|
|
@@ -1849,7 +1849,7 @@ function Bu(t) {
|
|
|
1849
1849
|
damping: r
|
|
1850
1850
|
};
|
|
1851
1851
|
} else {
|
|
1852
|
-
const i =
|
|
1852
|
+
const i = _u(t);
|
|
1853
1853
|
e = {
|
|
1854
1854
|
...e,
|
|
1855
1855
|
...i,
|
|
@@ -1865,7 +1865,7 @@ function mn(t = G.visualDuration, e = G.bounce) {
|
|
|
1865
1865
|
bounce: e
|
|
1866
1866
|
} : t;
|
|
1867
1867
|
let { restSpeed: n, restDelta: s } = i;
|
|
1868
|
-
const r = i.keyframes[0], o = i.keyframes[i.keyframes.length - 1], a = { done: !1, value: r }, { stiffness: l, damping: c, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } =
|
|
1868
|
+
const r = i.keyframes[0], o = i.keyframes[i.keyframes.length - 1], a = { done: !1, value: r }, { stiffness: l, damping: c, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = zu({
|
|
1869
1869
|
...i,
|
|
1870
1870
|
velocity: -xe(i.velocity || 0)
|
|
1871
1871
|
}), h = f || 0, m = c / (2 * Math.sqrt(l * u)), g = o - r, v = xe(Math.sqrt(l / u)), w = Math.abs(g) < 5;
|
|
@@ -1939,11 +1939,11 @@ function es({ keyframes: t, velocity: e = 0, power: i = 0.8, timeConstant: n = 3
|
|
|
1939
1939
|
}
|
|
1940
1940
|
};
|
|
1941
1941
|
}
|
|
1942
|
-
const
|
|
1942
|
+
const Ru = /* @__PURE__ */ xt(0.42, 0, 1, 1), ku = /* @__PURE__ */ xt(0, 0, 0.58, 1), go = /* @__PURE__ */ xt(0.42, 0, 0.58, 1), yo = (t) => Array.isArray(t) && typeof t[0] != "number", ts = {
|
|
1943
1943
|
linear: re,
|
|
1944
|
-
easeIn:
|
|
1944
|
+
easeIn: Ru,
|
|
1945
1945
|
easeInOut: go,
|
|
1946
|
-
easeOut:
|
|
1946
|
+
easeOut: ku,
|
|
1947
1947
|
circIn: ln,
|
|
1948
1948
|
circInOut: Qr,
|
|
1949
1949
|
circOut: Jr,
|
|
@@ -1960,7 +1960,7 @@ const zu = /* @__PURE__ */ xt(0.42, 0, 1, 1), Ru = /* @__PURE__ */ xt(0, 0, 0.58
|
|
|
1960
1960
|
return Le(ts[t] !== void 0, `Invalid easing type '${t}'`), ts[t];
|
|
1961
1961
|
return t;
|
|
1962
1962
|
};
|
|
1963
|
-
function
|
|
1963
|
+
function Fu(t, e, i) {
|
|
1964
1964
|
const n = [], s = i || mo, r = t.length - 1;
|
|
1965
1965
|
for (let o = 0; o < r; o++) {
|
|
1966
1966
|
let a = s(t[o], t[o + 1]);
|
|
@@ -1972,7 +1972,7 @@ function ku(t, e, i) {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
return n;
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function ju(t, e, { clamp: i = !0, ease: n, mixer: s } = {}) {
|
|
1976
1976
|
const r = t.length;
|
|
1977
1977
|
if (Le(r === e.length, "Both input and output ranges must be the same length"), r === 1)
|
|
1978
1978
|
return () => e[0];
|
|
@@ -1980,7 +1980,7 @@ function Fu(t, e, { clamp: i = !0, ease: n, mixer: s } = {}) {
|
|
|
1980
1980
|
return () => e[1];
|
|
1981
1981
|
const o = t[0] === t[1];
|
|
1982
1982
|
t[0] > t[r - 1] && (t = [...t].reverse(), e = [...e].reverse());
|
|
1983
|
-
const a =
|
|
1983
|
+
const a = Fu(e, n, s), l = a.length, c = (u) => {
|
|
1984
1984
|
if (o && u < t[0])
|
|
1985
1985
|
return e[0];
|
|
1986
1986
|
let d = 0;
|
|
@@ -2003,30 +2003,30 @@ function bo(t) {
|
|
|
2003
2003
|
const e = [0];
|
|
2004
2004
|
return wo(e, t.length - 1), e;
|
|
2005
2005
|
}
|
|
2006
|
-
function
|
|
2006
|
+
function $u(t, e) {
|
|
2007
2007
|
return t.map((i) => i * e);
|
|
2008
2008
|
}
|
|
2009
|
-
function
|
|
2009
|
+
function Nu(t, e) {
|
|
2010
2010
|
return t.map(() => e || go).splice(0, t.length - 1);
|
|
2011
2011
|
}
|
|
2012
2012
|
function Nt({ duration: t = 300, keyframes: e, times: i, ease: n = "easeInOut" }) {
|
|
2013
2013
|
const s = yo(n) ? n.map(is) : is(n), r = {
|
|
2014
2014
|
done: !1,
|
|
2015
2015
|
value: e[0]
|
|
2016
|
-
}, o =
|
|
2016
|
+
}, o = $u(
|
|
2017
2017
|
// Only use the provided offsets if they're the correct length
|
|
2018
2018
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
2019
2019
|
i && i.length === e.length ? i : bo(e),
|
|
2020
2020
|
t
|
|
2021
|
-
), a =
|
|
2022
|
-
ease: Array.isArray(s) ? s :
|
|
2021
|
+
), a = ju(o, e, {
|
|
2022
|
+
ease: Array.isArray(s) ? s : Nu(e, s)
|
|
2023
2023
|
});
|
|
2024
2024
|
return {
|
|
2025
2025
|
calculatedDuration: t,
|
|
2026
2026
|
next: (l) => (r.value = a(l), r.done = l >= t, r)
|
|
2027
2027
|
};
|
|
2028
2028
|
}
|
|
2029
|
-
const
|
|
2029
|
+
const Zu = (t) => {
|
|
2030
2030
|
const e = ({ timestamp: i }) => t(i);
|
|
2031
2031
|
return {
|
|
2032
2032
|
start: () => j.update(e, !0),
|
|
@@ -2037,13 +2037,13 @@ const Nu = (t) => {
|
|
|
2037
2037
|
*/
|
|
2038
2038
|
now: () => Q.isProcessing ? Q.timestamp : ve.now()
|
|
2039
2039
|
};
|
|
2040
|
-
},
|
|
2040
|
+
}, Gu = {
|
|
2041
2041
|
decay: es,
|
|
2042
2042
|
inertia: es,
|
|
2043
2043
|
tween: Nt,
|
|
2044
2044
|
keyframes: Nt,
|
|
2045
2045
|
spring: mn
|
|
2046
|
-
},
|
|
2046
|
+
}, Xu = (t) => t / 100;
|
|
2047
2047
|
class vn extends po {
|
|
2048
2048
|
constructor(e) {
|
|
2049
2049
|
super(e), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
@@ -2060,9 +2060,9 @@ class vn extends po {
|
|
|
2060
2060
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
2061
2061
|
}
|
|
2062
2062
|
initPlayback(e) {
|
|
2063
|
-
const { type: i = "keyframes", repeat: n = 0, repeatDelay: s = 0, repeatType: r, velocity: o = 0 } = this.options, a = ii(i) ? i :
|
|
2063
|
+
const { type: i = "keyframes", repeat: n = 0, repeatDelay: s = 0, repeatType: r, velocity: o = 0 } = this.options, a = ii(i) ? i : Gu[i] || Nt;
|
|
2064
2064
|
let l, c;
|
|
2065
|
-
a !== Nt && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && Le(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ei(
|
|
2065
|
+
a !== Nt && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && Le(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ei(Xu, mo(e[0], e[1])), e = [0, 100]);
|
|
2066
2066
|
const u = a({ ...this.options, keyframes: e });
|
|
2067
2067
|
r === "mirror" && (c = a({
|
|
2068
2068
|
...this.options,
|
|
@@ -2133,7 +2133,7 @@ class vn extends po {
|
|
|
2133
2133
|
}
|
|
2134
2134
|
if (this.isStopped)
|
|
2135
2135
|
return;
|
|
2136
|
-
const { driver: e =
|
|
2136
|
+
const { driver: e = Zu, onPlay: i, startTime: n } = this.options;
|
|
2137
2137
|
this.driver || (this.driver = e((r) => this.tick(r))), i && i();
|
|
2138
2138
|
const s = this.driver.now();
|
|
2139
2139
|
this.holdTime !== null ? this.startTime = s - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = s) : this.startTime = n ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
|
@@ -2167,7 +2167,7 @@ class vn extends po {
|
|
|
2167
2167
|
return this.startTime = 0, this.tick(e, !0);
|
|
2168
2168
|
}
|
|
2169
2169
|
}
|
|
2170
|
-
const
|
|
2170
|
+
const Uu = /* @__PURE__ */ new Set([
|
|
2171
2171
|
"opacity",
|
|
2172
2172
|
"clipPath",
|
|
2173
2173
|
"filter",
|
|
@@ -2176,7 +2176,7 @@ const Xu = /* @__PURE__ */ new Set([
|
|
|
2176
2176
|
// or until we implement support for linear() easing.
|
|
2177
2177
|
// "background-color"
|
|
2178
2178
|
]);
|
|
2179
|
-
function
|
|
2179
|
+
function Hu(t, e, i, { delay: n = 0, duration: s = 300, repeat: r = 0, repeatType: o = "loop", ease: a = "easeInOut", times: l } = {}) {
|
|
2180
2180
|
const c = { [e]: i };
|
|
2181
2181
|
l && (c.offset = l);
|
|
2182
2182
|
const u = Xr(a, s);
|
|
@@ -2189,11 +2189,11 @@ function Uu(t, e, i, { delay: n = 0, duration: s = 300, repeat: r = 0, repeatTyp
|
|
|
2189
2189
|
direction: o === "reverse" ? "alternate" : "normal"
|
|
2190
2190
|
});
|
|
2191
2191
|
}
|
|
2192
|
-
const
|
|
2193
|
-
function
|
|
2192
|
+
const Wu = /* @__PURE__ */ rn(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Zt = 10, Ku = 2e4;
|
|
2193
|
+
function qu(t) {
|
|
2194
2194
|
return ii(t.type) || t.type === "spring" || !Gr(t.ease);
|
|
2195
2195
|
}
|
|
2196
|
-
function
|
|
2196
|
+
function Yu(t, e) {
|
|
2197
2197
|
const i = new vn({
|
|
2198
2198
|
...e,
|
|
2199
2199
|
keyframes: t,
|
|
@@ -2204,7 +2204,7 @@ function qu(t, e) {
|
|
|
2204
2204
|
let n = { done: !1, value: t[0] };
|
|
2205
2205
|
const s = [];
|
|
2206
2206
|
let r = 0;
|
|
2207
|
-
for (; !n.done && r <
|
|
2207
|
+
for (; !n.done && r < Ku; )
|
|
2208
2208
|
n = i.sample(r), s.push(n.value), r += Zt;
|
|
2209
2209
|
return {
|
|
2210
2210
|
times: void 0,
|
|
@@ -2218,7 +2218,7 @@ const So = {
|
|
|
2218
2218
|
backInOut: qr,
|
|
2219
2219
|
circInOut: Qr
|
|
2220
2220
|
};
|
|
2221
|
-
function
|
|
2221
|
+
function Ju(t) {
|
|
2222
2222
|
return t in So;
|
|
2223
2223
|
}
|
|
2224
2224
|
class ns extends po {
|
|
@@ -2232,11 +2232,11 @@ class ns extends po {
|
|
|
2232
2232
|
let { duration: s = 300, times: r, ease: o, type: a, motionValue: l, name: c, startTime: u } = this.options;
|
|
2233
2233
|
if (!(!((n = l.owner) === null || n === void 0) && n.current))
|
|
2234
2234
|
return !1;
|
|
2235
|
-
if (typeof o == "string" && Ft() &&
|
|
2236
|
-
const { onComplete: f, onUpdate: p, motionValue: h, element: m, ...g } = this.options, v =
|
|
2235
|
+
if (typeof o == "string" && Ft() && Ju(o) && (o = So[o]), qu(this.options)) {
|
|
2236
|
+
const { onComplete: f, onUpdate: p, motionValue: h, element: m, ...g } = this.options, v = Yu(e, g);
|
|
2237
2237
|
e = v.keyframes, e.length === 1 && (e[1] = e[0]), s = v.duration, r = v.times, o = v.ease, a = "keyframes";
|
|
2238
2238
|
}
|
|
2239
|
-
const d =
|
|
2239
|
+
const d = Hu(l.owner.current, c, e, { ...this.options, duration: s, times: r, ease: o });
|
|
2240
2240
|
return d.startTime = u ?? this.calcStartTime(), this.pendingTimeline ? (Gn(d, this.pendingTimeline), this.pendingTimeline = void 0) : d.onfinish = () => {
|
|
2241
2241
|
const { onComplete: f } = this.options;
|
|
2242
2242
|
l.set(ni(e, this.options, i)), f && f(), this.cancel(), this.resolveFinishedPromise();
|
|
@@ -2365,32 +2365,32 @@ class ns extends po {
|
|
|
2365
2365
|
}
|
|
2366
2366
|
static supports(e) {
|
|
2367
2367
|
const { motionValue: i, name: n, repeatDelay: s, repeatType: r, damping: o, type: a } = e;
|
|
2368
|
-
return
|
|
2368
|
+
return Wu() && n && Uu.has(n) && i && i.owner && i.owner.current instanceof HTMLElement && /**
|
|
2369
2369
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
2370
2370
|
* no way to read the value from WAAPI every frame.
|
|
2371
2371
|
*/
|
|
2372
2372
|
!i.owner.getProps().onUpdate && !s && r !== "mirror" && o !== 0 && a !== "inertia";
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
|
-
const
|
|
2375
|
+
const Qu = {
|
|
2376
2376
|
type: "spring",
|
|
2377
2377
|
stiffness: 500,
|
|
2378
2378
|
damping: 25,
|
|
2379
2379
|
restSpeed: 10
|
|
2380
|
-
},
|
|
2380
|
+
}, ec = (t) => ({
|
|
2381
2381
|
type: "spring",
|
|
2382
2382
|
stiffness: 550,
|
|
2383
2383
|
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
|
2384
2384
|
restSpeed: 10
|
|
2385
|
-
}),
|
|
2385
|
+
}), tc = {
|
|
2386
2386
|
type: "keyframes",
|
|
2387
2387
|
duration: 0.8
|
|
2388
|
-
},
|
|
2388
|
+
}, ic = {
|
|
2389
2389
|
type: "keyframes",
|
|
2390
2390
|
ease: [0.25, 0.1, 0.35, 1],
|
|
2391
2391
|
duration: 0.3
|
|
2392
|
-
},
|
|
2393
|
-
function
|
|
2392
|
+
}, nc = (t, { keyframes: e }) => e.length > 2 ? tc : tt.has(t) ? t.startsWith("scale") ? ec(e[1]) : Qu : ic;
|
|
2393
|
+
function sc({ when: t, delay: e, delayChildren: i, staggerChildren: n, staggerDirection: s, repeat: r, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
2394
2394
|
return !!Object.keys(u).length;
|
|
2395
2395
|
}
|
|
2396
2396
|
const gn = (t, e, i, n = {}, s, r) => (o) => {
|
|
@@ -2413,9 +2413,9 @@ const gn = (t, e, i, n = {}, s, r) => (o) => {
|
|
|
2413
2413
|
motionValue: e,
|
|
2414
2414
|
element: r ? void 0 : s
|
|
2415
2415
|
};
|
|
2416
|
-
|
|
2416
|
+
sc(a) || (u = {
|
|
2417
2417
|
...u,
|
|
2418
|
-
...
|
|
2418
|
+
...nc(t, u)
|
|
2419
2419
|
}), u.duration && (u.duration = ge(u.duration)), u.repeatDelay && (u.repeatDelay = ge(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
2420
2420
|
let d = !1;
|
|
2421
2421
|
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (d = !0)), d && !r && e.get() !== void 0) {
|
|
@@ -2431,16 +2431,16 @@ function To(t, e, i) {
|
|
|
2431
2431
|
const n = ie(t) ? t : gt(t);
|
|
2432
2432
|
return n.start(gn("", n, e, i)), n.animation;
|
|
2433
2433
|
}
|
|
2434
|
-
const yn = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(),
|
|
2434
|
+
const yn = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), rc = "framerAppearId", oc = "data-" + yn(rc);
|
|
2435
2435
|
function xo(t) {
|
|
2436
|
-
return t.props[
|
|
2436
|
+
return t.props[oc];
|
|
2437
2437
|
}
|
|
2438
|
-
const { schedule:
|
|
2438
|
+
const { schedule: ac } = Ar(queueMicrotask, !1);
|
|
2439
2439
|
function Eo(t) {
|
|
2440
2440
|
return t instanceof SVGElement && t.tagName !== "svg";
|
|
2441
2441
|
}
|
|
2442
|
-
const
|
|
2443
|
-
class
|
|
2442
|
+
const lc = (t, e) => t.depth - e.depth;
|
|
2443
|
+
class uc {
|
|
2444
2444
|
constructor() {
|
|
2445
2445
|
this.children = [], this.isDirty = !1;
|
|
2446
2446
|
}
|
|
@@ -2451,30 +2451,30 @@ class lc {
|
|
|
2451
2451
|
ti(this.children, e), this.isDirty = !0;
|
|
2452
2452
|
}
|
|
2453
2453
|
forEach(e) {
|
|
2454
|
-
this.isDirty && this.children.sort(
|
|
2454
|
+
this.isDirty && this.children.sort(lc), this.isDirty = !1, this.children.forEach(e);
|
|
2455
2455
|
}
|
|
2456
2456
|
}
|
|
2457
|
-
function
|
|
2457
|
+
function cc(t, e) {
|
|
2458
2458
|
const i = ve.now(), n = ({ timestamp: s }) => {
|
|
2459
2459
|
const r = s - i;
|
|
2460
2460
|
r >= e && (_e(n), t(r - e));
|
|
2461
2461
|
};
|
|
2462
2462
|
return j.read(n, !0), () => _e(n);
|
|
2463
2463
|
}
|
|
2464
|
-
const
|
|
2464
|
+
const dc = (t) => Array.isArray(t), fc = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), pc = (t) => dc(t) ? t[t.length - 1] || 0 : t;
|
|
2465
2465
|
function di(t) {
|
|
2466
2466
|
const e = ie(t) ? t.get() : t;
|
|
2467
|
-
return
|
|
2467
|
+
return fc(e) ? e.toValue() : e;
|
|
2468
2468
|
}
|
|
2469
|
-
const Po = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"],
|
|
2470
|
-
function
|
|
2469
|
+
const Po = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], hc = Po.length, ss = (t) => typeof t == "string" ? parseFloat(t) : t, rs = (t) => typeof t == "number" || I.test(t);
|
|
2470
|
+
function mc(t, e, i, n, s, r) {
|
|
2471
2471
|
s ? (t.opacity = K(
|
|
2472
2472
|
0,
|
|
2473
2473
|
// TODO Reinstate this if only child
|
|
2474
2474
|
i.opacity !== void 0 ? i.opacity : 1,
|
|
2475
|
-
|
|
2476
|
-
), t.opacityExit = K(e.opacity !== void 0 ? e.opacity : 1, 0,
|
|
2477
|
-
for (let o = 0; o <
|
|
2475
|
+
vc(n)
|
|
2476
|
+
), t.opacityExit = K(e.opacity !== void 0 ? e.opacity : 1, 0, gc(n))) : r && (t.opacity = K(e.opacity !== void 0 ? e.opacity : 1, i.opacity !== void 0 ? i.opacity : 1, n));
|
|
2477
|
+
for (let o = 0; o < hc; o++) {
|
|
2478
2478
|
const a = `border${Po[o]}Radius`;
|
|
2479
2479
|
let l = os(e, a), c = os(i, a);
|
|
2480
2480
|
if (l === void 0 && c === void 0)
|
|
@@ -2486,7 +2486,7 @@ function hc(t, e, i, n, s, r) {
|
|
|
2486
2486
|
function os(t, e) {
|
|
2487
2487
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
2488
2488
|
}
|
|
2489
|
-
const
|
|
2489
|
+
const vc = /* @__PURE__ */ Mo(0, 0.5, Jr), gc = /* @__PURE__ */ Mo(0.5, 0.95, re);
|
|
2490
2490
|
function Mo(t, e, i) {
|
|
2491
2491
|
return (n) => n < t ? 0 : n > e ? 1 : i(Tt(t, e, n));
|
|
2492
2492
|
}
|
|
@@ -2528,7 +2528,7 @@ function Ao(t, { x: e, y: i }) {
|
|
|
2528
2528
|
Bi(t.x, e.translate, e.scale, e.originPoint), Bi(t.y, i.translate, i.scale, i.originPoint);
|
|
2529
2529
|
}
|
|
2530
2530
|
const ds = 0.999999999999, fs = 1.0000000000001;
|
|
2531
|
-
function
|
|
2531
|
+
function yc(t, e, i, n = !1) {
|
|
2532
2532
|
const s = i.length;
|
|
2533
2533
|
if (!s)
|
|
2534
2534
|
return;
|
|
@@ -2554,15 +2554,15 @@ function ps(t, e, i, n, s = 0.5) {
|
|
|
2554
2554
|
function We(t, e) {
|
|
2555
2555
|
ps(t.x, e.x, e.scaleX, e.scale, e.originX), ps(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
2556
2556
|
}
|
|
2557
|
-
const Co = 1e-4,
|
|
2557
|
+
const Co = 1e-4, wc = 1 - Co, bc = 1 + Co, Lo = 0.01, Sc = 0 - Lo, Tc = 0 + Lo;
|
|
2558
2558
|
function we(t) {
|
|
2559
2559
|
return t.max - t.min;
|
|
2560
2560
|
}
|
|
2561
|
-
function
|
|
2561
|
+
function xc(t, e, i) {
|
|
2562
2562
|
return Math.abs(t - e) <= i;
|
|
2563
2563
|
}
|
|
2564
2564
|
function hs(t, e, i, n = 0.5) {
|
|
2565
|
-
t.origin = n, t.originPoint = K(e.min, e.max, t.origin), t.scale = we(i) / we(e), t.translate = K(i.min, i.max, t.origin) - t.originPoint, (t.scale >=
|
|
2565
|
+
t.origin = n, t.originPoint = K(e.min, e.max, t.origin), t.scale = we(i) / we(e), t.translate = K(i.min, i.max, t.origin) - t.originPoint, (t.scale >= wc && t.scale <= bc || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Sc && t.translate <= Tc || isNaN(t.translate)) && (t.translate = 0);
|
|
2566
2566
|
}
|
|
2567
2567
|
function ft(t, e, i, n) {
|
|
2568
2568
|
hs(t.x, e.x, i.x, n ? n.originX : void 0), hs(t.y, e.y, i.y, n ? n.originY : void 0);
|
|
@@ -2570,7 +2570,7 @@ function ft(t, e, i, n) {
|
|
|
2570
2570
|
function ms(t, e, i) {
|
|
2571
2571
|
t.min = i.min + e.min, t.max = t.min + we(e);
|
|
2572
2572
|
}
|
|
2573
|
-
function
|
|
2573
|
+
function Ec(t, e, i) {
|
|
2574
2574
|
ms(t.x, e.x, i.x), ms(t.y, e.y, i.y);
|
|
2575
2575
|
}
|
|
2576
2576
|
function vs(t, e, i) {
|
|
@@ -2582,18 +2582,18 @@ function pt(t, e, i) {
|
|
|
2582
2582
|
function gs(t, e, i, n, s) {
|
|
2583
2583
|
return t -= e, t = Gt(t, 1 / i, n), s !== void 0 && (t = Gt(t, 1 / s, n)), t;
|
|
2584
2584
|
}
|
|
2585
|
-
function
|
|
2585
|
+
function Pc(t, e = 0, i = 1, n = 0.5, s, r = t, o = t) {
|
|
2586
2586
|
if (Te.test(e) && (e = parseFloat(e), e = K(o.min, o.max, e / 100) - o.min), typeof e != "number")
|
|
2587
2587
|
return;
|
|
2588
2588
|
let a = K(r.min, r.max, n);
|
|
2589
2589
|
t === r && (a -= e), t.min = gs(t.min, e, i, a, s), t.max = gs(t.max, e, i, a, s);
|
|
2590
2590
|
}
|
|
2591
2591
|
function ys(t, e, [i, n, s], r, o) {
|
|
2592
|
-
|
|
2592
|
+
Pc(t, e[i], e[n], e[s], e.scale, r, o);
|
|
2593
2593
|
}
|
|
2594
|
-
const
|
|
2594
|
+
const Mc = ["x", "scaleX", "originX"], Vc = ["y", "scaleY", "originY"];
|
|
2595
2595
|
function ws(t, e, i, n) {
|
|
2596
|
-
ys(t.x, e,
|
|
2596
|
+
ys(t.x, e, Mc, i ? i.x : void 0, n ? n.x : void 0), ys(t.y, e, Vc, i ? i.y : void 0, n ? n.y : void 0);
|
|
2597
2597
|
}
|
|
2598
2598
|
const bs = () => ({
|
|
2599
2599
|
translate: 0,
|
|
@@ -2616,7 +2616,7 @@ function _o(t) {
|
|
|
2616
2616
|
function xs(t, e) {
|
|
2617
2617
|
return t.min === e.min && t.max === e.max;
|
|
2618
2618
|
}
|
|
2619
|
-
function
|
|
2619
|
+
function Ac(t, e) {
|
|
2620
2620
|
return xs(t.x, e.x) && xs(t.y, e.y);
|
|
2621
2621
|
}
|
|
2622
2622
|
function Es(t, e) {
|
|
@@ -2631,7 +2631,7 @@ function Ps(t) {
|
|
|
2631
2631
|
function Ms(t, e) {
|
|
2632
2632
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
|
2633
2633
|
}
|
|
2634
|
-
class
|
|
2634
|
+
class Cc {
|
|
2635
2635
|
constructor() {
|
|
2636
2636
|
this.members = [];
|
|
2637
2637
|
}
|
|
@@ -2685,7 +2685,7 @@ class Ac {
|
|
|
2685
2685
|
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
|
2686
2686
|
}
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2688
|
+
function Lc(t, e, i) {
|
|
2689
2689
|
let n = "";
|
|
2690
2690
|
const s = t.x.translate / e.x, r = t.y.translate / e.y, o = (i == null ? void 0 : i.z) || 0;
|
|
2691
2691
|
if ((s || r || o) && (n = `translate3d(${s}px, ${r}px, ${o}px) `), (e.x !== 1 || e.y !== 1) && (n += `scale(${1 / e.x}, ${1 / e.y}) `), i) {
|
|
@@ -2703,8 +2703,8 @@ const Fe = {
|
|
|
2703
2703
|
totalNodes: 0,
|
|
2704
2704
|
resolvedTargetDeltas: 0,
|
|
2705
2705
|
recalculatedProjection: 0
|
|
2706
|
-
}, lt = typeof window < "u" && window.MotionDebug !== void 0, pi = ["", "X", "Y", "Z"],
|
|
2707
|
-
let
|
|
2706
|
+
}, lt = typeof window < "u" && window.MotionDebug !== void 0, pi = ["", "X", "Y", "Z"], _c = { visibility: "hidden" }, As = 1e3;
|
|
2707
|
+
let Dc = 0;
|
|
2708
2708
|
function hi(t, e, i, n) {
|
|
2709
2709
|
const { latestValues: s } = e;
|
|
2710
2710
|
s[t] && (i[t] = s[t], e.setStaticValue(t, 0), n && (n[t] = 0));
|
|
@@ -2726,14 +2726,14 @@ function Io(t) {
|
|
|
2726
2726
|
function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, checkIsScrollRoot: n, resetTransform: s }) {
|
|
2727
2727
|
return class {
|
|
2728
2728
|
constructor(o = {}, a = e == null ? void 0 : e()) {
|
|
2729
|
-
this.id =
|
|
2729
|
+
this.id = Dc++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
2730
2730
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
2731
2731
|
}, this.updateProjection = () => {
|
|
2732
|
-
this.projectionUpdateScheduled = !1, lt && (Fe.totalNodes = Fe.resolvedTargetDeltas = Fe.recalculatedProjection = 0), this.nodes.forEach(
|
|
2732
|
+
this.projectionUpdateScheduled = !1, lt && (Fe.totalNodes = Fe.resolvedTargetDeltas = Fe.recalculatedProjection = 0), this.nodes.forEach(Bc), this.nodes.forEach(jc), this.nodes.forEach($c), this.nodes.forEach(zc), lt && window.MotionDebug.record(Fe);
|
|
2733
2733
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = o, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
|
2734
2734
|
for (let l = 0; l < this.path.length; l++)
|
|
2735
2735
|
this.path[l].shouldResetTransform = !0;
|
|
2736
|
-
this.root === this && (this.nodes = new
|
|
2736
|
+
this.root === this && (this.nodes = new uc());
|
|
2737
2737
|
}
|
|
2738
2738
|
addEventListener(o, a) {
|
|
2739
2739
|
return this.eventHandlers.has(o) || this.eventHandlers.set(o, new nn()), this.eventHandlers.get(o).add(a);
|
|
@@ -2757,7 +2757,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
2757
2757
|
let d;
|
|
2758
2758
|
const f = () => this.root.updateBlockedByResize = !1;
|
|
2759
2759
|
t(o, () => {
|
|
2760
|
-
this.root.updateBlockedByResize = !0, d && d(), d =
|
|
2760
|
+
this.root.updateBlockedByResize = !0, d && d(), d = cc(f, 250), Ot.hasAnimatedSinceResize && (Ot.hasAnimatedSinceResize = !1, this.nodes.forEach(Ls));
|
|
2761
2761
|
});
|
|
2762
2762
|
}
|
|
2763
2763
|
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: f, hasRelativeTargetChanged: p, layout: h }) => {
|
|
@@ -2765,7 +2765,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
2765
2765
|
this.target = void 0, this.relativeTarget = void 0;
|
|
2766
2766
|
return;
|
|
2767
2767
|
}
|
|
2768
|
-
const m = this.options.transition || u.getDefaultTransition() ||
|
|
2768
|
+
const m = this.options.transition || u.getDefaultTransition() || Uc, { onLayoutAnimationStart: g, onLayoutAnimationComplete: v } = u.getProps(), w = !this.targetLayout || !Do(this.targetLayout, h) || p, b = !f && p;
|
|
2769
2769
|
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || b || f && (w || !this.currentAnimation)) {
|
|
2770
2770
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, b);
|
|
2771
2771
|
const x = {
|
|
@@ -2799,7 +2799,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
2799
2799
|
}
|
|
2800
2800
|
// Note: currently only running on root node
|
|
2801
2801
|
startUpdate() {
|
|
2802
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(
|
|
2802
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Nc), this.animationId++);
|
|
2803
2803
|
}
|
|
2804
2804
|
getTransformTemplate() {
|
|
2805
2805
|
const { visualElement: o } = this.options;
|
|
@@ -2828,15 +2828,15 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
2828
2828
|
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Cs);
|
|
2829
2829
|
return;
|
|
2830
2830
|
}
|
|
2831
|
-
this.isUpdating || this.nodes.forEach(
|
|
2831
|
+
this.isUpdating || this.nodes.forEach(kc), this.isUpdating = !1, this.nodes.forEach(Fc), this.nodes.forEach(Ic), this.nodes.forEach(Oc), this.clearAllSnapshots();
|
|
2832
2832
|
const a = ve.now();
|
|
2833
2833
|
Q.delta = De(0, 1e3 / 60, a - Q.timestamp), Q.timestamp = a, Q.isProcessing = !0, si.update.process(Q), si.preRender.process(Q), si.render.process(Q), Q.isProcessing = !1;
|
|
2834
2834
|
}
|
|
2835
2835
|
didUpdate() {
|
|
2836
|
-
this.updateScheduled || (this.updateScheduled = !0,
|
|
2836
|
+
this.updateScheduled || (this.updateScheduled = !0, ac.read(this.scheduleUpdate));
|
|
2837
2837
|
}
|
|
2838
2838
|
clearAllSnapshots() {
|
|
2839
|
-
this.nodes.forEach(
|
|
2839
|
+
this.nodes.forEach(Rc), this.sharedNodes.forEach(Zc);
|
|
2840
2840
|
}
|
|
2841
2841
|
scheduleUpdateProjection() {
|
|
2842
2842
|
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, j.preRender(this.updateProjection, !1, !0));
|
|
@@ -2885,7 +2885,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
2885
2885
|
measure(o = !0) {
|
|
2886
2886
|
const a = this.measurePageBox();
|
|
2887
2887
|
let l = this.removeElementScroll(a);
|
|
2888
|
-
return o && (l = this.removeTransform(l)),
|
|
2888
|
+
return o && (l = this.removeTransform(l)), Hc(l), {
|
|
2889
2889
|
animationId: this.root.animationId,
|
|
2890
2890
|
measuredBox: a,
|
|
2891
2891
|
layoutBox: l,
|
|
@@ -2899,7 +2899,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
2899
2899
|
if (!a)
|
|
2900
2900
|
return H();
|
|
2901
2901
|
const l = a.measureViewportBox();
|
|
2902
|
-
if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(
|
|
2902
|
+
if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(Wc))) {
|
|
2903
2903
|
const { scroll: u } = this.root;
|
|
2904
2904
|
u && (At(l.x, u.offset.x), At(l.y, u.offset.y));
|
|
2905
2905
|
}
|
|
@@ -2971,7 +2971,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
2971
2971
|
p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = H(), this.relativeTargetOrigin = H(), pt(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), ue(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
2972
2972
|
}
|
|
2973
2973
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
2974
|
-
if (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(),
|
|
2974
|
+
if (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ec(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : ue(this.target, this.layout.layoutBox), Ao(this.target, this.targetDelta)) : ue(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
2975
2975
|
this.attemptToResolveRelativeTarget = !1;
|
|
2976
2976
|
const p = this.getClosestProjectingParent();
|
|
2977
2977
|
p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = H(), this.relativeTargetOrigin = H(), pt(this.relativeTargetOrigin, this.target, p.target), ue(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -2998,7 +2998,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
2998
2998
|
return;
|
|
2999
2999
|
ue(this.layoutCorrected, this.layout.layoutBox);
|
|
3000
3000
|
const f = this.treeScale.x, p = this.treeScale.y;
|
|
3001
|
-
|
|
3001
|
+
yc(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = H());
|
|
3002
3002
|
const { target: h } = a;
|
|
3003
3003
|
if (!h) {
|
|
3004
3004
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -3026,12 +3026,12 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
3026
3026
|
setAnimationOrigin(o, a = !1) {
|
|
3027
3027
|
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = Ke();
|
|
3028
3028
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
3029
|
-
const f = H(), p = l ? l.source : void 0, h = this.layout ? this.layout.source : void 0, m = p !== h, g = this.getStack(), v = !g || g.members.length <= 1, w = !!(m && !v && this.options.crossfade === !0 && !this.path.some(
|
|
3029
|
+
const f = H(), p = l ? l.source : void 0, h = this.layout ? this.layout.source : void 0, m = p !== h, g = this.getStack(), v = !g || g.members.length <= 1, w = !!(m && !v && this.options.crossfade === !0 && !this.path.some(Xc));
|
|
3030
3030
|
this.animationProgress = 0;
|
|
3031
3031
|
let b;
|
|
3032
3032
|
this.mixTargetDelta = (x) => {
|
|
3033
3033
|
const y = x / 1e3;
|
|
3034
|
-
_s(d.x, o.x, y), _s(d.y, o.y, y), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (pt(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox),
|
|
3034
|
+
_s(d.x, o.x, y), _s(d.y, o.y, y), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (pt(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Gc(this.relativeTarget, this.relativeTargetOrigin, f, y), b && Ac(this.relativeTarget, b) && (this.isProjectionDirty = !1), b || (b = H()), ue(b, this.relativeTarget)), m && (this.animationValues = u, mc(u, c, this.latestValues, y, w, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = y;
|
|
3035
3035
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
3036
3036
|
}
|
|
3037
3037
|
startAnimation(o) {
|
|
@@ -3070,7 +3070,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
3070
3070
|
}
|
|
3071
3071
|
}
|
|
3072
3072
|
registerSharedNode(o, a) {
|
|
3073
|
-
this.sharedNodes.has(o) || this.sharedNodes.set(o, new
|
|
3073
|
+
this.sharedNodes.has(o) || this.sharedNodes.set(o, new Cc()), this.sharedNodes.get(o).add(a);
|
|
3074
3074
|
const c = a.options.initialPromotionConfig;
|
|
3075
3075
|
a.promote({
|
|
3076
3076
|
transition: c ? c.transition : void 0,
|
|
@@ -3126,7 +3126,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
3126
3126
|
if (!this.instance || this.isSVG)
|
|
3127
3127
|
return;
|
|
3128
3128
|
if (!this.isVisible)
|
|
3129
|
-
return
|
|
3129
|
+
return _c;
|
|
3130
3130
|
const c = {
|
|
3131
3131
|
visibility: ""
|
|
3132
3132
|
}, u = this.getTransformTemplate();
|
|
@@ -3138,7 +3138,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
3138
3138
|
return this.options.layoutId && (m.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, m.pointerEvents = di(o == null ? void 0 : o.pointerEvents) || ""), this.hasProjected && !ke(this.latestValues) && (m.transform = u ? u({}, "") : "none", this.hasProjected = !1), m;
|
|
3139
3139
|
}
|
|
3140
3140
|
const f = d.animationValues || d.latestValues;
|
|
3141
|
-
this.applyTransformsToTarget(), c.transform =
|
|
3141
|
+
this.applyTransformsToTarget(), c.transform = Lc(this.projectionDeltaWithTransform, this.treeScale, f), u && (c.transform = u(f, c.transform));
|
|
3142
3142
|
const { x: p, y: h } = this.projectionDelta;
|
|
3143
3143
|
c.transformOrigin = `${p.origin * 100}% ${h.origin * 100}% 0`, d.animationValues ? c.opacity = d === this ? (l = (a = f.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : f.opacityExit : c.opacity = d === this ? f.opacity !== void 0 ? f.opacity : "" : f.opacityExit !== void 0 ? f.opacityExit : 0;
|
|
3144
3144
|
for (const m in kt) {
|
|
@@ -3166,10 +3166,10 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
|
|
|
3166
3166
|
}
|
|
3167
3167
|
};
|
|
3168
3168
|
}
|
|
3169
|
-
function
|
|
3169
|
+
function Ic(t) {
|
|
3170
3170
|
t.updateLayout();
|
|
3171
3171
|
}
|
|
3172
|
-
function
|
|
3172
|
+
function Oc(t) {
|
|
3173
3173
|
var e;
|
|
3174
3174
|
const i = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
|
|
3175
3175
|
if (t.isLead() && t.layout && i && t.hasListeners("didUpdate")) {
|
|
@@ -3213,38 +3213,38 @@ function Ic(t) {
|
|
|
3213
3213
|
}
|
|
3214
3214
|
t.options.transition = void 0;
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3216
|
+
function Bc(t) {
|
|
3217
3217
|
lt && Fe.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
|
|
3218
3218
|
}
|
|
3219
|
-
function
|
|
3219
|
+
function zc(t) {
|
|
3220
3220
|
t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
|
|
3221
3221
|
}
|
|
3222
|
-
function
|
|
3222
|
+
function Rc(t) {
|
|
3223
3223
|
t.clearSnapshot();
|
|
3224
3224
|
}
|
|
3225
3225
|
function Cs(t) {
|
|
3226
3226
|
t.clearMeasurements();
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3228
|
+
function kc(t) {
|
|
3229
3229
|
t.isLayoutDirty = !1;
|
|
3230
3230
|
}
|
|
3231
|
-
function
|
|
3231
|
+
function Fc(t) {
|
|
3232
3232
|
const { visualElement: e } = t.options;
|
|
3233
3233
|
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
|
3234
3234
|
}
|
|
3235
3235
|
function Ls(t) {
|
|
3236
3236
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
|
3237
3237
|
}
|
|
3238
|
-
function
|
|
3238
|
+
function jc(t) {
|
|
3239
3239
|
t.resolveTargetDelta();
|
|
3240
3240
|
}
|
|
3241
|
-
function
|
|
3241
|
+
function $c(t) {
|
|
3242
3242
|
t.calcProjection();
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
3244
|
+
function Nc(t) {
|
|
3245
3245
|
t.resetSkewAndRotation();
|
|
3246
3246
|
}
|
|
3247
|
-
function
|
|
3247
|
+
function Zc(t) {
|
|
3248
3248
|
t.removeLeadSnapshot();
|
|
3249
3249
|
}
|
|
3250
3250
|
function _s(t, e, i) {
|
|
@@ -3253,34 +3253,34 @@ function _s(t, e, i) {
|
|
|
3253
3253
|
function Ds(t, e, i, n) {
|
|
3254
3254
|
t.min = K(e.min, i.min, n), t.max = K(e.max, i.max, n);
|
|
3255
3255
|
}
|
|
3256
|
-
function
|
|
3256
|
+
function Gc(t, e, i, n) {
|
|
3257
3257
|
Ds(t.x, e.x, i.x, n), Ds(t.y, e.y, i.y, n);
|
|
3258
3258
|
}
|
|
3259
|
-
function
|
|
3259
|
+
function Xc(t) {
|
|
3260
3260
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
3261
3261
|
}
|
|
3262
|
-
const
|
|
3262
|
+
const Uc = {
|
|
3263
3263
|
duration: 0.45,
|
|
3264
3264
|
ease: [0.4, 0, 0.1, 1]
|
|
3265
3265
|
}, Is = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Os = Is("applewebkit/") && !Is("chrome/") ? Math.round : re;
|
|
3266
3266
|
function Bs(t) {
|
|
3267
3267
|
t.min = Os(t.min), t.max = Os(t.max);
|
|
3268
3268
|
}
|
|
3269
|
-
function
|
|
3269
|
+
function Hc(t) {
|
|
3270
3270
|
Bs(t.x), Bs(t.y);
|
|
3271
3271
|
}
|
|
3272
3272
|
function Bo(t, e, i) {
|
|
3273
|
-
return t === "position" || t === "preserve-aspect" && !
|
|
3273
|
+
return t === "position" || t === "preserve-aspect" && !xc(Ps(e), Ps(i), 0.2);
|
|
3274
3274
|
}
|
|
3275
|
-
function
|
|
3275
|
+
function Wc(t) {
|
|
3276
3276
|
var e;
|
|
3277
3277
|
return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
|
|
3278
3278
|
}
|
|
3279
|
-
function
|
|
3279
|
+
function Kc(t, e, i, n = { passive: !0 }) {
|
|
3280
3280
|
return t.addEventListener(e, i, n), () => t.removeEventListener(e, i);
|
|
3281
3281
|
}
|
|
3282
|
-
const
|
|
3283
|
-
attachResizeListener: (t, e) =>
|
|
3282
|
+
const qc = Oo({
|
|
3283
|
+
attachResizeListener: (t, e) => Kc(t, "resize", e),
|
|
3284
3284
|
measureScroll: () => ({
|
|
3285
3285
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
3286
3286
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
@@ -3288,14 +3288,14 @@ const Kc = Oo({
|
|
|
3288
3288
|
checkIsScrollRoot: () => !0
|
|
3289
3289
|
}), mi = {
|
|
3290
3290
|
current: void 0
|
|
3291
|
-
},
|
|
3291
|
+
}, Yc = Oo({
|
|
3292
3292
|
measureScroll: (t) => ({
|
|
3293
3293
|
x: t.scrollLeft,
|
|
3294
3294
|
y: t.scrollTop
|
|
3295
3295
|
}),
|
|
3296
3296
|
defaultParent: () => {
|
|
3297
3297
|
if (!mi.current) {
|
|
3298
|
-
const t = new
|
|
3298
|
+
const t = new qc({});
|
|
3299
3299
|
t.mount(window), t.setOptions({ layoutScroll: !0 }), mi.current = t;
|
|
3300
3300
|
}
|
|
3301
3301
|
return mi.current;
|
|
@@ -3314,14 +3314,14 @@ function vi(t) {
|
|
|
3314
3314
|
const e = Je.get(t);
|
|
3315
3315
|
e && t.removeEventListener("motioncomplete", e), Je.delete(t);
|
|
3316
3316
|
}
|
|
3317
|
-
const [
|
|
3318
|
-
class
|
|
3317
|
+
const [Jc, Qc] = Jt("AnimatePresenceContext");
|
|
3318
|
+
class ed extends ze {
|
|
3319
3319
|
constructor(e) {
|
|
3320
3320
|
super(e), Cr(Br);
|
|
3321
3321
|
}
|
|
3322
3322
|
initProjection() {
|
|
3323
3323
|
const e = this.state.options;
|
|
3324
|
-
this.state.visualElement.projection = new
|
|
3324
|
+
this.state.visualElement.projection = new Yc(
|
|
3325
3325
|
this.state.visualElement.latestValues,
|
|
3326
3326
|
e["data-framer-portal-id"] ? void 0 : zo(this.state.visualElement.parent)
|
|
3327
3327
|
), this.state.visualElement.projection.isPresent = !0, this.state.visualElement.projection.setOptions({
|
|
@@ -3371,11 +3371,11 @@ class Qc extends ze {
|
|
|
3371
3371
|
(e = this.state.visualElement.projection) == null || e.mount(this.state.element);
|
|
3372
3372
|
}
|
|
3373
3373
|
}
|
|
3374
|
-
const
|
|
3374
|
+
const td = {
|
|
3375
3375
|
y: !1
|
|
3376
3376
|
};
|
|
3377
|
-
function
|
|
3378
|
-
return
|
|
3377
|
+
function id() {
|
|
3378
|
+
return td.y;
|
|
3379
3379
|
}
|
|
3380
3380
|
function wn(t, e, i) {
|
|
3381
3381
|
var n;
|
|
@@ -3398,10 +3398,10 @@ function Ro(t, e) {
|
|
|
3398
3398
|
}
|
|
3399
3399
|
function zs(t) {
|
|
3400
3400
|
return (e) => {
|
|
3401
|
-
e.pointerType === "touch" ||
|
|
3401
|
+
e.pointerType === "touch" || id() || t(e);
|
|
3402
3402
|
};
|
|
3403
3403
|
}
|
|
3404
|
-
function
|
|
3404
|
+
function nd(t, e, i = {}) {
|
|
3405
3405
|
const [n, s, r] = Ro(t, i), o = zs((a) => {
|
|
3406
3406
|
const { target: l } = a, c = e(a);
|
|
3407
3407
|
if (typeof c != "function" || !l)
|
|
@@ -3415,15 +3415,15 @@ function id(t, e, i = {}) {
|
|
|
3415
3415
|
a.addEventListener("pointerenter", o, s);
|
|
3416
3416
|
}), r;
|
|
3417
3417
|
}
|
|
3418
|
-
const ko = (t, e) => e ? t === e ? !0 : ko(t, e.parentElement) : !1,
|
|
3418
|
+
const ko = (t, e) => e ? t === e ? !0 : ko(t, e.parentElement) : !1, sd = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, rd = /* @__PURE__ */ new Set([
|
|
3419
3419
|
"BUTTON",
|
|
3420
3420
|
"INPUT",
|
|
3421
3421
|
"SELECT",
|
|
3422
3422
|
"TEXTAREA",
|
|
3423
3423
|
"A"
|
|
3424
3424
|
]);
|
|
3425
|
-
function
|
|
3426
|
-
return
|
|
3425
|
+
function od(t) {
|
|
3426
|
+
return rd.has(t.tagName) || t.tabIndex !== -1;
|
|
3427
3427
|
}
|
|
3428
3428
|
const ut = /* @__PURE__ */ new WeakSet();
|
|
3429
3429
|
function Rs(t) {
|
|
@@ -3434,7 +3434,7 @@ function Rs(t) {
|
|
|
3434
3434
|
function gi(t, e) {
|
|
3435
3435
|
t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
|
|
3436
3436
|
}
|
|
3437
|
-
const
|
|
3437
|
+
const ad = (t, e) => {
|
|
3438
3438
|
const i = t.currentTarget;
|
|
3439
3439
|
if (!i)
|
|
3440
3440
|
return;
|
|
@@ -3450,9 +3450,9 @@ const od = (t, e) => {
|
|
|
3450
3450
|
i.addEventListener("keydown", n, e), i.addEventListener("blur", () => i.removeEventListener("keydown", n), e);
|
|
3451
3451
|
};
|
|
3452
3452
|
function ks(t) {
|
|
3453
|
-
return
|
|
3453
|
+
return sd(t) && !0;
|
|
3454
3454
|
}
|
|
3455
|
-
function
|
|
3455
|
+
function ld(t, e, i = {}) {
|
|
3456
3456
|
const [n, s, r] = Ro(t, i), o = (a) => {
|
|
3457
3457
|
const l = a.currentTarget;
|
|
3458
3458
|
if (!ks(a) || ut.has(l))
|
|
@@ -3468,7 +3468,7 @@ function ad(t, e, i = {}) {
|
|
|
3468
3468
|
window.addEventListener("pointerup", d, s), window.addEventListener("pointercancel", f, s);
|
|
3469
3469
|
};
|
|
3470
3470
|
return n.forEach((a) => {
|
|
3471
|
-
!
|
|
3471
|
+
!od(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0), (i.useGlobalTarget ? window : a).addEventListener("pointerdown", o, s), a.addEventListener("focus", (c) => ad(c, s), s);
|
|
3472
3472
|
}), r;
|
|
3473
3473
|
}
|
|
3474
3474
|
function Fo(t) {
|
|
@@ -3485,7 +3485,7 @@ function Fs(t, e, i) {
|
|
|
3485
3485
|
const s = `onPress${i === "End" ? "" : i}`, r = n[s];
|
|
3486
3486
|
r && j.postRender(() => r(e, Fo(e)));
|
|
3487
3487
|
}
|
|
3488
|
-
class
|
|
3488
|
+
class ud extends ze {
|
|
3489
3489
|
isActive() {
|
|
3490
3490
|
return !!this.state.options.press;
|
|
3491
3491
|
}
|
|
@@ -3494,7 +3494,7 @@ class ld extends ze {
|
|
|
3494
3494
|
}
|
|
3495
3495
|
mount() {
|
|
3496
3496
|
const e = this.state.element;
|
|
3497
|
-
e && (this.unmount =
|
|
3497
|
+
e && (this.unmount = ld(
|
|
3498
3498
|
e,
|
|
3499
3499
|
(i) => (Fs(this.state, i, "Start"), (n, { success: s }) => Fs(
|
|
3500
3500
|
this.state,
|
|
@@ -3511,7 +3511,7 @@ function js(t, e, i) {
|
|
|
3511
3511
|
const s = `onHover${i}`, r = n[s];
|
|
3512
3512
|
r && j.postRender(() => r(e, Fo(e)));
|
|
3513
3513
|
}
|
|
3514
|
-
class
|
|
3514
|
+
class cd extends ze {
|
|
3515
3515
|
isActive() {
|
|
3516
3516
|
return !!this.state.getOptions().hover;
|
|
3517
3517
|
}
|
|
@@ -3520,7 +3520,7 @@ class ud extends ze {
|
|
|
3520
3520
|
}
|
|
3521
3521
|
mount() {
|
|
3522
3522
|
const e = this.state.element;
|
|
3523
|
-
e && (this.unmount =
|
|
3523
|
+
e && (this.unmount = nd(
|
|
3524
3524
|
e,
|
|
3525
3525
|
(i) => (js(this.state, i, "Start"), (n) => {
|
|
3526
3526
|
js(this.state, n, "End");
|
|
@@ -3528,11 +3528,11 @@ class ud extends ze {
|
|
|
3528
3528
|
));
|
|
3529
3529
|
}
|
|
3530
3530
|
}
|
|
3531
|
-
const
|
|
3531
|
+
const dd = {
|
|
3532
3532
|
some: 0,
|
|
3533
3533
|
all: 1
|
|
3534
3534
|
};
|
|
3535
|
-
function
|
|
3535
|
+
function fd(t, e, { root: i, margin: n, amount: s = "some" } = {}) {
|
|
3536
3536
|
const r = wn(t), o = /* @__PURE__ */ new WeakMap(), a = (c) => {
|
|
3537
3537
|
c.forEach((u) => {
|
|
3538
3538
|
const d = o.get(u.target);
|
|
@@ -3545,7 +3545,7 @@ function dd(t, e, { root: i, margin: n, amount: s = "some" } = {}) {
|
|
|
3545
3545
|
}, l = new IntersectionObserver(a, {
|
|
3546
3546
|
root: i,
|
|
3547
3547
|
rootMargin: n,
|
|
3548
|
-
threshold: typeof s == "number" ? s :
|
|
3548
|
+
threshold: typeof s == "number" ? s : dd[s]
|
|
3549
3549
|
});
|
|
3550
3550
|
return r.forEach((c) => l.observe(c)), () => l.disconnect();
|
|
3551
3551
|
}
|
|
@@ -3555,7 +3555,7 @@ function $s(t, e, i) {
|
|
|
3555
3555
|
const s = `onViewport${i}`, r = n[s];
|
|
3556
3556
|
r && j.postRender(() => r(e));
|
|
3557
3557
|
}
|
|
3558
|
-
class
|
|
3558
|
+
class pd extends ze {
|
|
3559
3559
|
isActive() {
|
|
3560
3560
|
return !!this.state.getOptions().inView;
|
|
3561
3561
|
}
|
|
@@ -3564,7 +3564,7 @@ class fd extends ze {
|
|
|
3564
3564
|
}
|
|
3565
3565
|
mount() {
|
|
3566
3566
|
const e = this.state.element;
|
|
3567
|
-
e && (this.unmount =
|
|
3567
|
+
e && (this.unmount = fd(
|
|
3568
3568
|
e,
|
|
3569
3569
|
(i) => ($s(this.state, i, "Enter"), (n) => {
|
|
3570
3570
|
$s(this.state, i, "Leave");
|
|
@@ -3582,7 +3582,7 @@ function jo(t) {
|
|
|
3582
3582
|
};
|
|
3583
3583
|
}
|
|
3584
3584
|
const Ns = jo("dragHorizontal"), Zs = jo("dragVertical");
|
|
3585
|
-
function
|
|
3585
|
+
function hd(t) {
|
|
3586
3586
|
let e = !1;
|
|
3587
3587
|
if (t === "y")
|
|
3588
3588
|
e = Zs();
|
|
@@ -3599,7 +3599,7 @@ function pd(t) {
|
|
|
3599
3599
|
function zi(t) {
|
|
3600
3600
|
return t.max - t.min;
|
|
3601
3601
|
}
|
|
3602
|
-
function
|
|
3602
|
+
function md(t, e, i) {
|
|
3603
3603
|
return i > e ? e : i < t ? t : i;
|
|
3604
3604
|
}
|
|
3605
3605
|
function Xt(t, e, i) {
|
|
@@ -3609,11 +3609,11 @@ function Gs(t, e, i) {
|
|
|
3609
3609
|
const n = e - t;
|
|
3610
3610
|
return n === 0 ? 1 : (i - t) / n;
|
|
3611
3611
|
}
|
|
3612
|
-
function
|
|
3612
|
+
function vd(t, { min: e, max: i }, n) {
|
|
3613
3613
|
return e !== void 0 && t < e ? t = n ? Xt(e, t, n.min) : Math.max(t, e) : i !== void 0 && t > i && (t = n ? Xt(i, t, n.max) : Math.min(t, i)), t;
|
|
3614
3614
|
}
|
|
3615
3615
|
const Ri = 0.35;
|
|
3616
|
-
function
|
|
3616
|
+
function gd(t, { top: e, left: i, bottom: n, right: s }) {
|
|
3617
3617
|
return {
|
|
3618
3618
|
x: Xs(t.x, i, s),
|
|
3619
3619
|
y: Xs(t.y, e, n)
|
|
@@ -3625,7 +3625,7 @@ function Xs(t, e, i) {
|
|
|
3625
3625
|
max: i !== void 0 ? t.max + i - (t.max - t.min) : void 0
|
|
3626
3626
|
};
|
|
3627
3627
|
}
|
|
3628
|
-
function
|
|
3628
|
+
function yd(t = Ri) {
|
|
3629
3629
|
return t === !1 ? t = 0 : t === !0 && (t = Ri), {
|
|
3630
3630
|
x: Us(t, "left", "right"),
|
|
3631
3631
|
y: Us(t, "top", "bottom")
|
|
@@ -3640,11 +3640,11 @@ function Us(t, e, i) {
|
|
|
3640
3640
|
function Hs(t, e) {
|
|
3641
3641
|
return typeof t == "number" ? t : t[e] || 0;
|
|
3642
3642
|
}
|
|
3643
|
-
function
|
|
3643
|
+
function wd(t, e) {
|
|
3644
3644
|
const i = {};
|
|
3645
3645
|
return e.min !== void 0 && (i.min = e.min - t.min), e.max !== void 0 && (i.max = e.max - t.min), i;
|
|
3646
3646
|
}
|
|
3647
|
-
function
|
|
3647
|
+
function bd(t, e) {
|
|
3648
3648
|
return {
|
|
3649
3649
|
x: Ws(t.x, e.x),
|
|
3650
3650
|
y: Ws(t.y, e.y)
|
|
@@ -3654,16 +3654,16 @@ function Ws(t, e) {
|
|
|
3654
3654
|
let i = e.min - t.min, n = e.max - t.max;
|
|
3655
3655
|
return e.max - e.min < t.max - t.min && ([i, n] = [n, i]), { min: i, max: n };
|
|
3656
3656
|
}
|
|
3657
|
-
function
|
|
3657
|
+
function Sd(t, e) {
|
|
3658
3658
|
let i = 0.5;
|
|
3659
3659
|
const n = zi(t), s = zi(e);
|
|
3660
|
-
return s > n ? i = Gs(e.min, e.max - n, t.min) : n > s && (i = Gs(t.min, t.max - s, e.min)),
|
|
3660
|
+
return s > n ? i = Gs(e.min, e.max - n, t.min) : n > s && (i = Gs(t.min, t.max - s, e.min)), md(0, 1, i);
|
|
3661
3661
|
}
|
|
3662
3662
|
function Ct(t) {
|
|
3663
3663
|
return typeof t == "object" && t !== null && "nodeType" in t;
|
|
3664
3664
|
}
|
|
3665
3665
|
const Ks = () => ({ min: 0, max: 0 });
|
|
3666
|
-
function
|
|
3666
|
+
function Td() {
|
|
3667
3667
|
return {
|
|
3668
3668
|
x: Ks(),
|
|
3669
3669
|
y: Ks()
|
|
@@ -3672,20 +3672,20 @@ function Sd() {
|
|
|
3672
3672
|
function me(t) {
|
|
3673
3673
|
return [t("x"), t("y")];
|
|
3674
3674
|
}
|
|
3675
|
-
function
|
|
3675
|
+
function xd(t) {
|
|
3676
3676
|
return {
|
|
3677
3677
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
3678
3678
|
parse: parseFloat,
|
|
3679
3679
|
transform: (e) => `${e}${t}`
|
|
3680
3680
|
};
|
|
3681
3681
|
}
|
|
3682
|
-
const
|
|
3683
|
-
function
|
|
3682
|
+
const Ed = /* @__PURE__ */ xd("%");
|
|
3683
|
+
function Pd(t) {
|
|
3684
3684
|
return !!(Qt(t) && t.add);
|
|
3685
3685
|
}
|
|
3686
3686
|
function qs(t, e) {
|
|
3687
3687
|
const i = t.getValue("willChange");
|
|
3688
|
-
if (
|
|
3688
|
+
if (Pd(i))
|
|
3689
3689
|
return i.add(e);
|
|
3690
3690
|
}
|
|
3691
3691
|
function $o({
|
|
@@ -3699,7 +3699,7 @@ function $o({
|
|
|
3699
3699
|
y: { min: t, max: n }
|
|
3700
3700
|
};
|
|
3701
3701
|
}
|
|
3702
|
-
function
|
|
3702
|
+
function Md(t, e) {
|
|
3703
3703
|
if (!e)
|
|
3704
3704
|
return t;
|
|
3705
3705
|
const i = e({ x: t.left, y: t.top }), n = e({ x: t.right, y: t.bottom });
|
|
@@ -3710,28 +3710,28 @@ function Pd(t, e) {
|
|
|
3710
3710
|
right: n.x
|
|
3711
3711
|
};
|
|
3712
3712
|
}
|
|
3713
|
-
function
|
|
3713
|
+
function Vd({ x: t, y: e }) {
|
|
3714
3714
|
return { top: e.min, right: t.max, bottom: e.max, left: t.min };
|
|
3715
3715
|
}
|
|
3716
3716
|
function Ys(t, e) {
|
|
3717
3717
|
t.min = t.min + e, t.max = t.max + e;
|
|
3718
3718
|
}
|
|
3719
|
-
function
|
|
3719
|
+
function Ad(t, e) {
|
|
3720
3720
|
return $o(
|
|
3721
|
-
|
|
3721
|
+
Md(t.getBoundingClientRect(), e)
|
|
3722
3722
|
);
|
|
3723
3723
|
}
|
|
3724
|
-
function
|
|
3725
|
-
const n =
|
|
3724
|
+
function Cd(t, e, i) {
|
|
3725
|
+
const n = Ad(t, i), { scroll: s } = e;
|
|
3726
3726
|
return s && (Ys(n.x, s.offset.x), Ys(n.y, s.offset.y)), n;
|
|
3727
3727
|
}
|
|
3728
3728
|
function Js(t) {
|
|
3729
3729
|
return !Je.has(t.current);
|
|
3730
3730
|
}
|
|
3731
|
-
const
|
|
3732
|
-
class
|
|
3731
|
+
const Ld = /* @__PURE__ */ new WeakMap();
|
|
3732
|
+
class _d {
|
|
3733
3733
|
constructor(e) {
|
|
3734
|
-
this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic =
|
|
3734
|
+
this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Td(), this.visualElement = e;
|
|
3735
3735
|
}
|
|
3736
3736
|
start(e, { snapToCursor: i = !1 } = {}) {
|
|
3737
3737
|
if (!Js(this.visualElement))
|
|
@@ -3741,11 +3741,11 @@ class Ld {
|
|
|
3741
3741
|
u ? this.pauseAnimation() : this.stopAnimation(), i && this.snapToCursor(Qi(c, "page").point);
|
|
3742
3742
|
}, s = (c, u) => {
|
|
3743
3743
|
const { drag: d, dragPropagation: f, onDragStart: p } = this.getProps();
|
|
3744
|
-
if (d && !f && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock =
|
|
3744
|
+
if (d && !f && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = hd(d), !this.openGlobalLock))
|
|
3745
3745
|
return;
|
|
3746
3746
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), me((m) => {
|
|
3747
3747
|
let g = this.getAxisMotionValue(m).get() || 0;
|
|
3748
|
-
if (
|
|
3748
|
+
if (Ed.test(g)) {
|
|
3749
3749
|
const { projection: v } = this.visualElement;
|
|
3750
3750
|
if (v && v.layout) {
|
|
3751
3751
|
const w = v.layout.layoutBox[m];
|
|
@@ -3765,7 +3765,7 @@ class Ld {
|
|
|
3765
3765
|
return;
|
|
3766
3766
|
const { offset: m } = u;
|
|
3767
3767
|
if (f && this.currentDirection === null) {
|
|
3768
|
-
this.currentDirection =
|
|
3768
|
+
this.currentDirection = Dd(m), this.currentDirection !== null && p && p(this.currentDirection);
|
|
3769
3769
|
return;
|
|
3770
3770
|
}
|
|
3771
3771
|
this.updateAxis("x", u.point, m), this.updateAxis("y", u.point, m), this.visualElement.render(), h && h(c, u);
|
|
@@ -3813,7 +3813,7 @@ class Ld {
|
|
|
3813
3813
|
return;
|
|
3814
3814
|
const r = this.getAxisMotionValue(e);
|
|
3815
3815
|
let o = this.originPoint[e] + n[e];
|
|
3816
|
-
this.constraints && this.constraints[e] && (o =
|
|
3816
|
+
this.constraints && this.constraints[e] && (o = vd(
|
|
3817
3817
|
o,
|
|
3818
3818
|
this.constraints[e],
|
|
3819
3819
|
this.elastic[e]
|
|
@@ -3822,11 +3822,11 @@ class Ld {
|
|
|
3822
3822
|
resolveConstraints() {
|
|
3823
3823
|
var e;
|
|
3824
3824
|
const { dragConstraints: i, dragElastic: n } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) == null ? void 0 : e.layout, r = this.constraints;
|
|
3825
|
-
i && Ct(i) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : i && s ? this.constraints =
|
|
3825
|
+
i && Ct(i) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : i && s ? this.constraints = gd(
|
|
3826
3826
|
s.layoutBox,
|
|
3827
3827
|
i
|
|
3828
|
-
) : this.constraints = !1, this.elastic =
|
|
3829
|
-
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] =
|
|
3828
|
+
) : this.constraints = !1, this.elastic = yd(n), r !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && me((o) => {
|
|
3829
|
+
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = wd(
|
|
3830
3830
|
s.layoutBox[o],
|
|
3831
3831
|
this.constraints[o]
|
|
3832
3832
|
));
|
|
@@ -3844,18 +3844,18 @@ class Ld {
|
|
|
3844
3844
|
const { projection: s } = this.visualElement;
|
|
3845
3845
|
if (!s || !s.layout)
|
|
3846
3846
|
return !1;
|
|
3847
|
-
const r =
|
|
3847
|
+
const r = Cd(
|
|
3848
3848
|
n,
|
|
3849
3849
|
s.root,
|
|
3850
3850
|
this.visualElement.getTransformPagePoint()
|
|
3851
3851
|
);
|
|
3852
|
-
let o =
|
|
3852
|
+
let o = bd(
|
|
3853
3853
|
s.layout.layoutBox,
|
|
3854
3854
|
r
|
|
3855
3855
|
);
|
|
3856
3856
|
if (i) {
|
|
3857
3857
|
const a = i(
|
|
3858
|
-
|
|
3858
|
+
Vd(o)
|
|
3859
3859
|
);
|
|
3860
3860
|
this.hasMutatedConstraints = !!a, a && (o = $o(a));
|
|
3861
3861
|
}
|
|
@@ -3957,7 +3957,7 @@ class Ld {
|
|
|
3957
3957
|
const a = this.getAxisMotionValue(o);
|
|
3958
3958
|
if (a && this.constraints !== !1) {
|
|
3959
3959
|
const l = a.get();
|
|
3960
|
-
s[o] =
|
|
3960
|
+
s[o] = Sd(
|
|
3961
3961
|
{ min: l, max: l },
|
|
3962
3962
|
this.constraints[o]
|
|
3963
3963
|
);
|
|
@@ -3974,7 +3974,7 @@ class Ld {
|
|
|
3974
3974
|
addListeners() {
|
|
3975
3975
|
if (!this.visualElement.current)
|
|
3976
3976
|
return;
|
|
3977
|
-
|
|
3977
|
+
Ld.set(this.visualElement, this);
|
|
3978
3978
|
const e = this.visualElement.current, i = dt(
|
|
3979
3979
|
e,
|
|
3980
3980
|
"pointerdown",
|
|
@@ -4028,13 +4028,13 @@ class Ld {
|
|
|
4028
4028
|
function Lt(t, e, i) {
|
|
4029
4029
|
return (e === !0 || e === t) && (i === null || i === t);
|
|
4030
4030
|
}
|
|
4031
|
-
function
|
|
4031
|
+
function Dd(t, e = 10) {
|
|
4032
4032
|
let i = null;
|
|
4033
4033
|
return Math.abs(t.y) > e ? i = "y" : Math.abs(t.x) > e && (i = "x"), i;
|
|
4034
4034
|
}
|
|
4035
|
-
class
|
|
4035
|
+
class Id extends ze {
|
|
4036
4036
|
constructor(e) {
|
|
4037
|
-
super(e), this.removeGroupControls = re, this.removeListeners = re, this.controls = new
|
|
4037
|
+
super(e), this.removeGroupControls = re, this.removeListeners = re, this.controls = new _d(e.visualElement);
|
|
4038
4038
|
}
|
|
4039
4039
|
mount() {
|
|
4040
4040
|
const { dragControls: e } = this.state.options;
|
|
@@ -4044,17 +4044,17 @@ class Dd extends ze {
|
|
|
4044
4044
|
this.removeGroupControls(), this.removeListeners();
|
|
4045
4045
|
}
|
|
4046
4046
|
}
|
|
4047
|
-
class
|
|
4047
|
+
class Od {
|
|
4048
4048
|
constructor(e) {
|
|
4049
4049
|
this.features = [], this.features = [
|
|
4050
|
+
new cd(e),
|
|
4050
4051
|
new ud(e),
|
|
4051
|
-
new
|
|
4052
|
-
new
|
|
4053
|
-
new
|
|
4054
|
-
new
|
|
4055
|
-
new
|
|
4056
|
-
new
|
|
4057
|
-
new Dd(e)
|
|
4052
|
+
new pd(e),
|
|
4053
|
+
new yl(e),
|
|
4054
|
+
new Il(e),
|
|
4055
|
+
new ed(e),
|
|
4056
|
+
new $l(e),
|
|
4057
|
+
new Id(e)
|
|
4058
4058
|
];
|
|
4059
4059
|
}
|
|
4060
4060
|
mount() {
|
|
@@ -4085,13 +4085,13 @@ class Id {
|
|
|
4085
4085
|
function _t(t, e, i) {
|
|
4086
4086
|
return new CustomEvent(t, { detail: { target: e, isExit: i } });
|
|
4087
4087
|
}
|
|
4088
|
-
function
|
|
4088
|
+
function Bd({ top: t, left: e, right: i, bottom: n }) {
|
|
4089
4089
|
return {
|
|
4090
4090
|
x: { min: e, max: i },
|
|
4091
4091
|
y: { min: t, max: n }
|
|
4092
4092
|
};
|
|
4093
4093
|
}
|
|
4094
|
-
function
|
|
4094
|
+
function zd(t, e) {
|
|
4095
4095
|
if (!e)
|
|
4096
4096
|
return t;
|
|
4097
4097
|
const i = e({ x: t.left, y: t.top }), n = e({ x: t.right, y: t.bottom });
|
|
@@ -4102,8 +4102,8 @@ function Bd(t, e) {
|
|
|
4102
4102
|
right: n.x
|
|
4103
4103
|
};
|
|
4104
4104
|
}
|
|
4105
|
-
function
|
|
4106
|
-
return
|
|
4105
|
+
function Rd(t, e) {
|
|
4106
|
+
return Bd(zd(t.getBoundingClientRect(), e));
|
|
4107
4107
|
}
|
|
4108
4108
|
const Qs = {
|
|
4109
4109
|
animation: [
|
|
@@ -4129,23 +4129,23 @@ for (const t in Qs)
|
|
|
4129
4129
|
ki[t] = {
|
|
4130
4130
|
isEnabled: (e) => Qs[t].some((i) => !!e[i])
|
|
4131
4131
|
};
|
|
4132
|
-
const
|
|
4133
|
-
function
|
|
4134
|
-
if (No.current = !0, !!
|
|
4132
|
+
const kd = typeof window < "u", Fi = { current: null }, No = { current: !1 };
|
|
4133
|
+
function Fd() {
|
|
4134
|
+
if (No.current = !0, !!kd)
|
|
4135
4135
|
if (window.matchMedia) {
|
|
4136
4136
|
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Fi.current = t.matches;
|
|
4137
4137
|
t.addListener(e), e();
|
|
4138
4138
|
} else
|
|
4139
4139
|
Fi.current = !1;
|
|
4140
4140
|
}
|
|
4141
|
-
const
|
|
4142
|
-
function
|
|
4141
|
+
const jd = [...co, ee, Ie], $d = (t) => jd.find(uo(t));
|
|
4142
|
+
function Nd(t) {
|
|
4143
4143
|
return t !== null && typeof t == "object" && typeof t.start == "function";
|
|
4144
4144
|
}
|
|
4145
|
-
function
|
|
4145
|
+
function Zd(t) {
|
|
4146
4146
|
return typeof t == "string" || Array.isArray(t);
|
|
4147
4147
|
}
|
|
4148
|
-
const
|
|
4148
|
+
const Gd = [
|
|
4149
4149
|
"animate",
|
|
4150
4150
|
"whileInView",
|
|
4151
4151
|
"whileFocus",
|
|
@@ -4153,14 +4153,14 @@ const Zd = [
|
|
|
4153
4153
|
"whileTap",
|
|
4154
4154
|
"whileDrag",
|
|
4155
4155
|
"exit"
|
|
4156
|
-
],
|
|
4156
|
+
], Xd = ["initial", ...Gd];
|
|
4157
4157
|
function Zo(t) {
|
|
4158
|
-
return
|
|
4158
|
+
return Nd(t.animate) || Xd.some((e) => Zd(t[e]));
|
|
4159
4159
|
}
|
|
4160
|
-
function
|
|
4160
|
+
function Ud(t) {
|
|
4161
4161
|
return !!(Zo(t) || t.variants);
|
|
4162
4162
|
}
|
|
4163
|
-
function
|
|
4163
|
+
function Hd(t, e, i) {
|
|
4164
4164
|
for (const n in e) {
|
|
4165
4165
|
const s = e[n], r = i[n];
|
|
4166
4166
|
if (ie(s))
|
|
@@ -4225,7 +4225,7 @@ class Xo {
|
|
|
4225
4225
|
this.renderScheduledAt < f && (this.renderScheduledAt = f, j.render(this.render, !1, !0));
|
|
4226
4226
|
};
|
|
4227
4227
|
const { latestValues: l, renderState: c } = o;
|
|
4228
|
-
this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = i.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = i, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = a, this.blockInitialAnimation = !!r, this.isControllingVariants = Zo(i), this.isVariantNode =
|
|
4228
|
+
this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = i.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = i, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = a, this.blockInitialAnimation = !!r, this.isControllingVariants = Zo(i), this.isVariantNode = Ud(i), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
4229
4229
|
const { willChange: u, ...d } = this.scrapeMotionValuesFromProps(i, {}, this);
|
|
4230
4230
|
for (const f in d) {
|
|
4231
4231
|
const p = d[f];
|
|
@@ -4233,7 +4233,7 @@ class Xo {
|
|
|
4233
4233
|
}
|
|
4234
4234
|
}
|
|
4235
4235
|
mount(e) {
|
|
4236
|
-
this.current = e, Ce.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((i, n) => this.bindToMotionValue(n, i)), No.current ||
|
|
4236
|
+
this.current = e, Ce.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((i, n) => this.bindToMotionValue(n, i)), No.current || Fd(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Fi.current, process.env.NODE_ENV !== "production" && sn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
4237
4237
|
}
|
|
4238
4238
|
unmount() {
|
|
4239
4239
|
Ce.delete(this.current), this.projection && this.projection.unmount(), _e(this.notifyUpdate), _e(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
@@ -4300,7 +4300,7 @@ class Xo {
|
|
|
4300
4300
|
const r = "on" + s, o = e[r];
|
|
4301
4301
|
o && (this.propEventSubscriptions[s] = this.on(s, o));
|
|
4302
4302
|
}
|
|
4303
|
-
this.prevMotionValues =
|
|
4303
|
+
this.prevMotionValues = Hd(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
4304
4304
|
}
|
|
4305
4305
|
getProps() {
|
|
4306
4306
|
return this.props;
|
|
@@ -4366,7 +4366,7 @@ class Xo {
|
|
|
4366
4366
|
readValue(e, i) {
|
|
4367
4367
|
var n;
|
|
4368
4368
|
let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (n = this.getBaseTargetFromProps(this.props, e)) !== null && n !== void 0 ? n : this.readValueFromInstance(this.current, e, this.options);
|
|
4369
|
-
return s != null && (typeof s == "string" && (ro(s) || eo(s)) ? s = parseFloat(s) :
|
|
4369
|
+
return s != null && (typeof s == "string" && (ro(s) || eo(s)) ? s = parseFloat(s) : !$d(s) && Ie.test(i) && (s = io(e, i)), this.setBaseTarget(e, ie(s) ? s.get() : s)), ie(s) ? s.get() : s;
|
|
4370
4370
|
}
|
|
4371
4371
|
/**
|
|
4372
4372
|
* Set the base target to later animate back to. This is currently
|
|
@@ -4420,15 +4420,15 @@ class Uo extends Xo {
|
|
|
4420
4420
|
}));
|
|
4421
4421
|
}
|
|
4422
4422
|
}
|
|
4423
|
-
const Ho = (t, e) => e && typeof t == "number" ? e.transform(t) : t,
|
|
4423
|
+
const Ho = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Wd = {
|
|
4424
4424
|
x: "translateX",
|
|
4425
4425
|
y: "translateY",
|
|
4426
4426
|
z: "translateZ",
|
|
4427
4427
|
transformPerspective: "perspective"
|
|
4428
|
-
},
|
|
4429
|
-
function
|
|
4428
|
+
}, Kd = et.length;
|
|
4429
|
+
function qd(t, e, i) {
|
|
4430
4430
|
let n = "", s = !0;
|
|
4431
|
-
for (let r = 0; r <
|
|
4431
|
+
for (let r = 0; r < Kd; r++) {
|
|
4432
4432
|
const o = et[r], a = t[o];
|
|
4433
4433
|
if (a === void 0)
|
|
4434
4434
|
continue;
|
|
@@ -4437,7 +4437,7 @@ function Kd(t, e, i) {
|
|
|
4437
4437
|
const c = Ho(a, un[o]);
|
|
4438
4438
|
if (!l) {
|
|
4439
4439
|
s = !1;
|
|
4440
|
-
const u =
|
|
4440
|
+
const u = Wd[o] || o;
|
|
4441
4441
|
n += `${u}(${c}) `;
|
|
4442
4442
|
}
|
|
4443
4443
|
i && (e[o] = c);
|
|
@@ -4461,7 +4461,7 @@ function Wo(t, e, i) {
|
|
|
4461
4461
|
l.startsWith("origin") ? (a = !0, r[l] = u) : n[l] = u;
|
|
4462
4462
|
}
|
|
4463
4463
|
}
|
|
4464
|
-
if (e.transform || (o || i ? n.transform =
|
|
4464
|
+
if (e.transform || (o || i ? n.transform = qd(e, t.transform, i) : n.transform && (n.transform = "none")), a) {
|
|
4465
4465
|
const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = r;
|
|
4466
4466
|
n.transformOrigin = `${l} ${c} ${u}`;
|
|
4467
4467
|
}
|
|
@@ -4471,17 +4471,17 @@ function Ko(t, { style: e, vars: i }, n, s) {
|
|
|
4471
4471
|
for (const r in i)
|
|
4472
4472
|
t.style.setProperty(r, i[r]);
|
|
4473
4473
|
}
|
|
4474
|
-
function
|
|
4474
|
+
function Yd(t, { layout: e, layoutId: i }) {
|
|
4475
4475
|
return tt.has(t) || t.startsWith("origin") || (e || i !== void 0) && (!!kt[t] || t === "opacity");
|
|
4476
4476
|
}
|
|
4477
4477
|
function qo(t, e, i) {
|
|
4478
4478
|
var n;
|
|
4479
4479
|
const { style: s } = t, r = {};
|
|
4480
4480
|
for (const o in s)
|
|
4481
|
-
(ie(s[o]) || e.style && ie(e.style[o]) ||
|
|
4481
|
+
(ie(s[o]) || e.style && ie(e.style[o]) || Yd(o, t) || ((n = i == null ? void 0 : i.getValue(o)) === null || n === void 0 ? void 0 : n.liveStyle) !== void 0) && (r[o] = s[o]);
|
|
4482
4482
|
return r;
|
|
4483
4483
|
}
|
|
4484
|
-
function
|
|
4484
|
+
function Jd(t) {
|
|
4485
4485
|
return window.getComputedStyle(t);
|
|
4486
4486
|
}
|
|
4487
4487
|
class Yo extends Uo {
|
|
@@ -4493,12 +4493,12 @@ class Yo extends Uo {
|
|
|
4493
4493
|
const n = cn(i);
|
|
4494
4494
|
return n && n.default || 0;
|
|
4495
4495
|
} else {
|
|
4496
|
-
const n =
|
|
4496
|
+
const n = Jd(e), s = (ao(i) ? n.getPropertyValue(i) : n[i]) || 0;
|
|
4497
4497
|
return typeof s == "string" ? s.trim() : s;
|
|
4498
4498
|
}
|
|
4499
4499
|
}
|
|
4500
4500
|
measureInstanceViewportBox(e, { transformPagePoint: i }) {
|
|
4501
|
-
return
|
|
4501
|
+
return Rd(e, i);
|
|
4502
4502
|
}
|
|
4503
4503
|
build(e, i, n) {
|
|
4504
4504
|
Wo(e, i, n.transformTemplate);
|
|
@@ -4510,25 +4510,25 @@ class Yo extends Uo {
|
|
|
4510
4510
|
function ir(t, e, i) {
|
|
4511
4511
|
return typeof t == "string" ? t : I.transform(e + i * t);
|
|
4512
4512
|
}
|
|
4513
|
-
function
|
|
4513
|
+
function Qd(t, e, i) {
|
|
4514
4514
|
const n = ir(e, t.x, t.width), s = ir(i, t.y, t.height);
|
|
4515
4515
|
return `${n} ${s}`;
|
|
4516
4516
|
}
|
|
4517
|
-
const
|
|
4517
|
+
const ef = {
|
|
4518
4518
|
offset: "stroke-dashoffset",
|
|
4519
4519
|
array: "stroke-dasharray"
|
|
4520
|
-
},
|
|
4520
|
+
}, tf = {
|
|
4521
4521
|
offset: "strokeDashoffset",
|
|
4522
4522
|
array: "strokeDasharray"
|
|
4523
4523
|
};
|
|
4524
|
-
function
|
|
4524
|
+
function nf(t, e, i = 1, n = 0, s = !0) {
|
|
4525
4525
|
t.pathLength = 1;
|
|
4526
|
-
const r = s ?
|
|
4526
|
+
const r = s ? ef : tf;
|
|
4527
4527
|
t[r.offset] = I.transform(-n);
|
|
4528
4528
|
const o = I.transform(e), a = I.transform(i);
|
|
4529
4529
|
t[r.array] = `${o} ${a}`;
|
|
4530
4530
|
}
|
|
4531
|
-
function
|
|
4531
|
+
function sf(t, {
|
|
4532
4532
|
attrX: e,
|
|
4533
4533
|
attrY: i,
|
|
4534
4534
|
attrScale: n,
|
|
@@ -4546,7 +4546,7 @@ function nf(t, {
|
|
|
4546
4546
|
}
|
|
4547
4547
|
t.attrs = t.style, t.style = {};
|
|
4548
4548
|
const { attrs: f, style: p, dimensions: h } = t;
|
|
4549
|
-
f.transform && (h && (p.transform = f.transform), delete f.transform), h && (s !== void 0 || r !== void 0 || p.transform) && (p.transformOrigin =
|
|
4549
|
+
f.transform && (h && (p.transform = f.transform), delete f.transform), h && (s !== void 0 || r !== void 0 || p.transform) && (p.transformOrigin = Qd(h, s !== void 0 ? s : 0.5, r !== void 0 ? r : 0.5)), e !== void 0 && (f.x = e), i !== void 0 && (f.y = i), n !== void 0 && (f.scale = n), o !== void 0 && nf(f, o, a, l, !1);
|
|
4550
4550
|
}
|
|
4551
4551
|
const Jo = /* @__PURE__ */ new Set([
|
|
4552
4552
|
"baseFrequency",
|
|
@@ -4572,13 +4572,13 @@ const Jo = /* @__PURE__ */ new Set([
|
|
|
4572
4572
|
"startOffset",
|
|
4573
4573
|
"textLength",
|
|
4574
4574
|
"lengthAdjust"
|
|
4575
|
-
]),
|
|
4576
|
-
function
|
|
4575
|
+
]), rf = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
4576
|
+
function of(t, e, i, n) {
|
|
4577
4577
|
Ko(t, e, void 0, n);
|
|
4578
4578
|
for (const s in e.attrs)
|
|
4579
4579
|
t.setAttribute(Jo.has(s) ? s : yn(s), e.attrs[s]);
|
|
4580
4580
|
}
|
|
4581
|
-
function
|
|
4581
|
+
function af(t, e, i) {
|
|
4582
4582
|
const n = qo(t, e, i);
|
|
4583
4583
|
for (const s in t)
|
|
4584
4584
|
if (ie(t[s]) || ie(e[s])) {
|
|
@@ -4602,22 +4602,22 @@ class Qo extends Uo {
|
|
|
4602
4602
|
return i = Jo.has(i) ? i : yn(i), e.getAttribute(i);
|
|
4603
4603
|
}
|
|
4604
4604
|
scrapeMotionValuesFromProps(e, i, n) {
|
|
4605
|
-
return
|
|
4605
|
+
return af(e, i, n);
|
|
4606
4606
|
}
|
|
4607
4607
|
build(e, i, n) {
|
|
4608
|
-
|
|
4608
|
+
sf(e, i, this.isSVGTag, n.transformTemplate);
|
|
4609
4609
|
}
|
|
4610
4610
|
renderInstance(e, i, n, s) {
|
|
4611
|
-
|
|
4611
|
+
of(e, i, n, s);
|
|
4612
4612
|
}
|
|
4613
4613
|
mount(e) {
|
|
4614
|
-
this.isSVGTag =
|
|
4614
|
+
this.isSVGTag = rf(e.tagName), super.mount(e);
|
|
4615
4615
|
}
|
|
4616
4616
|
}
|
|
4617
|
-
function
|
|
4618
|
-
return
|
|
4617
|
+
function lf(t, e) {
|
|
4618
|
+
return il(t) ? new Qo(e) : new Yo(e);
|
|
4619
4619
|
}
|
|
4620
|
-
function
|
|
4620
|
+
function uf(t, e = 100, i) {
|
|
4621
4621
|
const n = i({ ...t, keyframes: [0, e] }), s = Math.min(pn(n), jt);
|
|
4622
4622
|
return {
|
|
4623
4623
|
type: "keyframes",
|
|
@@ -4625,12 +4625,12 @@ function lf(t, e = 100, i) {
|
|
|
4625
4625
|
duration: xe(s)
|
|
4626
4626
|
};
|
|
4627
4627
|
}
|
|
4628
|
-
const
|
|
4628
|
+
const cf = (t, e, i) => {
|
|
4629
4629
|
const n = e - t;
|
|
4630
4630
|
return ((i - t) % n + n) % n + t;
|
|
4631
4631
|
};
|
|
4632
4632
|
function ea(t, e) {
|
|
4633
|
-
return yo(t) ? t[
|
|
4633
|
+
return yo(t) ? t[cf(0, t.length, e)] : t;
|
|
4634
4634
|
}
|
|
4635
4635
|
function bn(t) {
|
|
4636
4636
|
return typeof t == "object" && !Array.isArray(t);
|
|
@@ -4638,21 +4638,21 @@ function bn(t) {
|
|
|
4638
4638
|
function ta(t, e, i, n) {
|
|
4639
4639
|
return typeof t == "string" && bn(e) ? wn(t, i, n) : t instanceof NodeList ? Array.from(t) : Array.isArray(t) ? t : [t];
|
|
4640
4640
|
}
|
|
4641
|
-
function
|
|
4641
|
+
function df(t, e, i) {
|
|
4642
4642
|
return t * (e + 1);
|
|
4643
4643
|
}
|
|
4644
4644
|
function nr(t, e, i, n) {
|
|
4645
4645
|
var s;
|
|
4646
4646
|
return typeof e == "number" ? e : e.startsWith("-") || e.startsWith("+") ? Math.max(0, t + parseFloat(e)) : e === "<" ? i : (s = n.get(e)) !== null && s !== void 0 ? s : t;
|
|
4647
4647
|
}
|
|
4648
|
-
function
|
|
4648
|
+
function ff(t, e, i) {
|
|
4649
4649
|
for (let n = 0; n < t.length; n++) {
|
|
4650
4650
|
const s = t[n];
|
|
4651
4651
|
s.at > e && s.at < i && (ti(t, s), n--);
|
|
4652
4652
|
}
|
|
4653
4653
|
}
|
|
4654
|
-
function
|
|
4655
|
-
|
|
4654
|
+
function pf(t, e, i, n, s, r) {
|
|
4655
|
+
ff(t, s, r);
|
|
4656
4656
|
for (let o = 0; o < e.length; o++)
|
|
4657
4657
|
t.push({
|
|
4658
4658
|
value: e[o],
|
|
@@ -4660,15 +4660,15 @@ function ff(t, e, i, n, s, r) {
|
|
|
4660
4660
|
easing: ea(i, o)
|
|
4661
4661
|
});
|
|
4662
4662
|
}
|
|
4663
|
-
function
|
|
4663
|
+
function hf(t, e) {
|
|
4664
4664
|
for (let i = 0; i < t.length; i++)
|
|
4665
4665
|
t[i] = t[i] / (e + 1);
|
|
4666
4666
|
}
|
|
4667
|
-
function
|
|
4667
|
+
function mf(t, e) {
|
|
4668
4668
|
return t.at === e.at ? t.value === null ? 1 : e.value === null ? -1 : 0 : t.at - e.at;
|
|
4669
4669
|
}
|
|
4670
|
-
const
|
|
4671
|
-
function
|
|
4670
|
+
const vf = "easeInOut", gf = 20;
|
|
4671
|
+
function yf(t, { defaultTransition: e = {}, ...i } = {}, n, s) {
|
|
4672
4672
|
const r = e.duration || 0.3, o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), l = {}, c = /* @__PURE__ */ new Map();
|
|
4673
4673
|
let u = 0, d = 0, f = 0;
|
|
4674
4674
|
for (let p = 0; p < t.length; p++) {
|
|
@@ -4684,26 +4684,26 @@ function gf(t, { defaultTransition: e = {}, ...i } = {}, n, s) {
|
|
|
4684
4684
|
v.at !== void 0 && (d = nr(d, v.at, u, c));
|
|
4685
4685
|
let w = 0;
|
|
4686
4686
|
const b = (x, y, V, A = 0, T = 0) => {
|
|
4687
|
-
const S =
|
|
4687
|
+
const S = wf(x), { delay: E = 0, times: C = bo(S), type: O = "keyframes", repeat: k, repeatType: ce, repeatDelay: de = 0, ...z } = y;
|
|
4688
4688
|
let { ease: R = e.ease || "easeOut", duration: D } = y;
|
|
4689
|
-
const
|
|
4690
|
-
if (
|
|
4689
|
+
const U = typeof E == "function" ? E(A, T) : E, Y = S.length, he = ii(O) ? O : s == null ? void 0 : s[O];
|
|
4690
|
+
if (Y <= 2 && he) {
|
|
4691
4691
|
let nt = 100;
|
|
4692
|
-
if (
|
|
4692
|
+
if (Y === 2 && Tf(S)) {
|
|
4693
4693
|
const st = S[1] - S[0];
|
|
4694
4694
|
nt = Math.abs(st);
|
|
4695
4695
|
}
|
|
4696
4696
|
const Et = { ...z };
|
|
4697
4697
|
D !== void 0 && (Et.duration = ge(D));
|
|
4698
|
-
const Pt =
|
|
4698
|
+
const Pt = uf(Et, nt, he);
|
|
4699
4699
|
R = Pt.ease, D = Pt.duration;
|
|
4700
4700
|
}
|
|
4701
4701
|
D ?? (D = r);
|
|
4702
|
-
const Re = d +
|
|
4702
|
+
const Re = d + U;
|
|
4703
4703
|
C.length === 1 && C[0] === 0 && (C[1] = 1);
|
|
4704
4704
|
const Ln = C.length - S.length;
|
|
4705
4705
|
if (Ln > 0 && wo(C, Ln), S.length === 1 && S.unshift(null), k) {
|
|
4706
|
-
Le(k <
|
|
4706
|
+
Le(k < gf, "Repeat count too high, must be less than 20"), D = df(D, k);
|
|
4707
4707
|
const nt = [...S], Et = [...C];
|
|
4708
4708
|
R = Array.isArray(R) ? [...R] : [R];
|
|
4709
4709
|
const Pt = [...R];
|
|
@@ -4712,10 +4712,10 @@ function gf(t, { defaultTransition: e = {}, ...i } = {}, n, s) {
|
|
|
4712
4712
|
for (let rt = 0; rt < nt.length; rt++)
|
|
4713
4713
|
C.push(Et[rt] + (st + 1)), R.push(rt === 0 ? "linear" : ea(Pt, rt - 1));
|
|
4714
4714
|
}
|
|
4715
|
-
|
|
4715
|
+
hf(C, k);
|
|
4716
4716
|
}
|
|
4717
4717
|
const _n = Re + D;
|
|
4718
|
-
|
|
4718
|
+
pf(V, S, R, C, Re, _n), w = Math.max(U + D, w), f = Math.max(_n, f);
|
|
4719
4719
|
};
|
|
4720
4720
|
if (ie(m)) {
|
|
4721
4721
|
const x = sr(m, a);
|
|
@@ -4726,7 +4726,7 @@ function gf(t, { defaultTransition: e = {}, ...i } = {}, n, s) {
|
|
|
4726
4726
|
g = g, v = v;
|
|
4727
4727
|
const A = x[V], T = sr(A, a);
|
|
4728
4728
|
for (const S in g)
|
|
4729
|
-
b(g[S],
|
|
4729
|
+
b(g[S], bf(v, S), rr(S, T), V, y);
|
|
4730
4730
|
}
|
|
4731
4731
|
}
|
|
4732
4732
|
u = d, d += w;
|
|
@@ -4734,13 +4734,13 @@ function gf(t, { defaultTransition: e = {}, ...i } = {}, n, s) {
|
|
|
4734
4734
|
return a.forEach((p, h) => {
|
|
4735
4735
|
for (const m in p) {
|
|
4736
4736
|
const g = p[m];
|
|
4737
|
-
g.sort(
|
|
4737
|
+
g.sort(mf);
|
|
4738
4738
|
const v = [], w = [], b = [];
|
|
4739
4739
|
for (let y = 0; y < g.length; y++) {
|
|
4740
4740
|
const { at: V, value: A, easing: T } = g[y];
|
|
4741
4741
|
v.push(A), w.push(Tt(0, f, V)), b.push(T || "easeOut");
|
|
4742
4742
|
}
|
|
4743
|
-
w[0] !== 0 && (w.unshift(0), v.unshift(v[0]), b.unshift(
|
|
4743
|
+
w[0] !== 0 && (w.unshift(0), v.unshift(v[0]), b.unshift(vf)), w[w.length - 1] !== 1 && (w.push(1), v.push(null)), o.has(h) || o.set(h, {
|
|
4744
4744
|
keyframes: {},
|
|
4745
4745
|
transition: {}
|
|
4746
4746
|
});
|
|
@@ -4761,52 +4761,52 @@ function sr(t, e) {
|
|
|
4761
4761
|
function rr(t, e) {
|
|
4762
4762
|
return e[t] || (e[t] = []), e[t];
|
|
4763
4763
|
}
|
|
4764
|
-
function
|
|
4764
|
+
function wf(t) {
|
|
4765
4765
|
return Array.isArray(t) ? t : [t];
|
|
4766
4766
|
}
|
|
4767
|
-
function
|
|
4767
|
+
function bf(t, e) {
|
|
4768
4768
|
return t && t[e] ? {
|
|
4769
4769
|
...t,
|
|
4770
4770
|
...t[e]
|
|
4771
4771
|
} : { ...t };
|
|
4772
4772
|
}
|
|
4773
|
-
const
|
|
4774
|
-
function
|
|
4773
|
+
const Sf = (t) => typeof t == "number", Tf = (t) => t.every(Sf);
|
|
4774
|
+
function xf(t, e, i) {
|
|
4775
4775
|
const n = t.getProps();
|
|
4776
4776
|
return Go(n, e, n.custom, t);
|
|
4777
4777
|
}
|
|
4778
|
-
function
|
|
4778
|
+
function Ef(t, e, i) {
|
|
4779
4779
|
t.hasValue(e) ? t.getValue(e).set(i) : t.addValue(e, gt(i));
|
|
4780
4780
|
}
|
|
4781
|
-
function
|
|
4782
|
-
const i =
|
|
4781
|
+
function Pf(t, e) {
|
|
4782
|
+
const i = xf(t, e);
|
|
4783
4783
|
let { transitionEnd: n = {}, transition: s = {}, ...r } = i || {};
|
|
4784
4784
|
r = { ...r, ...n };
|
|
4785
4785
|
for (const o in r) {
|
|
4786
|
-
const a =
|
|
4787
|
-
|
|
4786
|
+
const a = pc(r[o]);
|
|
4787
|
+
Ef(t, o, a);
|
|
4788
4788
|
}
|
|
4789
4789
|
}
|
|
4790
|
-
function
|
|
4790
|
+
function Mf(t) {
|
|
4791
4791
|
return !!(ie(t) && t.add);
|
|
4792
4792
|
}
|
|
4793
|
-
function
|
|
4793
|
+
function Vf(t, e) {
|
|
4794
4794
|
const i = t.getValue("willChange");
|
|
4795
|
-
if (
|
|
4795
|
+
if (Mf(i))
|
|
4796
4796
|
return i.add(e);
|
|
4797
4797
|
}
|
|
4798
|
-
function
|
|
4798
|
+
function Af({ protectedKeys: t, needsAnimating: e }, i) {
|
|
4799
4799
|
const n = t.hasOwnProperty(i) && e[i] !== !0;
|
|
4800
4800
|
return e[i] = !1, n;
|
|
4801
4801
|
}
|
|
4802
|
-
function
|
|
4802
|
+
function Cf(t, e, { delay: i = 0, transitionOverride: n, type: s } = {}) {
|
|
4803
4803
|
var r;
|
|
4804
4804
|
let { transition: o = t.getDefaultTransition(), transitionEnd: a, ...l } = e;
|
|
4805
4805
|
n && (o = n);
|
|
4806
4806
|
const c = [], u = s && t.animationState && t.animationState.getState()[s];
|
|
4807
4807
|
for (const d in l) {
|
|
4808
4808
|
const f = t.getValue(d, (r = t.latestValues[d]) !== null && r !== void 0 ? r : null), p = l[d];
|
|
4809
|
-
if (p === void 0 || u &&
|
|
4809
|
+
if (p === void 0 || u && Af(u, d))
|
|
4810
4810
|
continue;
|
|
4811
4811
|
const h = {
|
|
4812
4812
|
delay: i,
|
|
@@ -4820,25 +4820,25 @@ function Af(t, e, { delay: i = 0, transitionOverride: n, type: s } = {}) {
|
|
|
4820
4820
|
w !== null && (h.startTime = w, m = !0);
|
|
4821
4821
|
}
|
|
4822
4822
|
}
|
|
4823
|
-
|
|
4823
|
+
Vf(t, d), f.start(gn(d, f, p, t.shouldReduceMotion && to.has(d) ? { type: !1 } : h, t, m));
|
|
4824
4824
|
const g = f.animation;
|
|
4825
4825
|
g && c.push(g);
|
|
4826
4826
|
}
|
|
4827
4827
|
return a && Promise.all(c).then(() => {
|
|
4828
4828
|
j.update(() => {
|
|
4829
|
-
a &&
|
|
4829
|
+
a && Pf(t, a);
|
|
4830
4830
|
});
|
|
4831
4831
|
}), c;
|
|
4832
4832
|
}
|
|
4833
|
-
function
|
|
4833
|
+
function Lf(t, e) {
|
|
4834
4834
|
return t in e;
|
|
4835
4835
|
}
|
|
4836
|
-
class
|
|
4836
|
+
class _f extends Xo {
|
|
4837
4837
|
constructor() {
|
|
4838
4838
|
super(...arguments), this.type = "object";
|
|
4839
4839
|
}
|
|
4840
4840
|
readValueFromInstance(e, i) {
|
|
4841
|
-
if (
|
|
4841
|
+
if (Lf(i, e)) {
|
|
4842
4842
|
const n = e[i];
|
|
4843
4843
|
if (typeof n == "string" || typeof n == "number")
|
|
4844
4844
|
return n;
|
|
@@ -4862,7 +4862,7 @@ class Lf extends Xo {
|
|
|
4862
4862
|
return 0;
|
|
4863
4863
|
}
|
|
4864
4864
|
}
|
|
4865
|
-
function
|
|
4865
|
+
function Df(t) {
|
|
4866
4866
|
const e = {
|
|
4867
4867
|
presenceContext: null,
|
|
4868
4868
|
props: {},
|
|
@@ -4879,7 +4879,7 @@ function _f(t) {
|
|
|
4879
4879
|
}, i = Eo(t) ? new Qo(e) : new Yo(e);
|
|
4880
4880
|
i.mount(t), Ce.set(t, i);
|
|
4881
4881
|
}
|
|
4882
|
-
function
|
|
4882
|
+
function If(t) {
|
|
4883
4883
|
const e = {
|
|
4884
4884
|
presenceContext: null,
|
|
4885
4885
|
props: {},
|
|
@@ -4889,46 +4889,46 @@ function Df(t) {
|
|
|
4889
4889
|
},
|
|
4890
4890
|
latestValues: {}
|
|
4891
4891
|
}
|
|
4892
|
-
}, i = new
|
|
4892
|
+
}, i = new _f(e);
|
|
4893
4893
|
i.mount(t), Ce.set(t, i);
|
|
4894
4894
|
}
|
|
4895
|
-
function
|
|
4895
|
+
function Of(t, e) {
|
|
4896
4896
|
return ie(t) || typeof t == "number" || typeof t == "string" && !bn(e);
|
|
4897
4897
|
}
|
|
4898
4898
|
function ia(t, e, i, n) {
|
|
4899
4899
|
const s = [];
|
|
4900
|
-
if (
|
|
4900
|
+
if (Of(t, e))
|
|
4901
4901
|
s.push(To(t, bn(e) && e.default || e, i && (i.default || i)));
|
|
4902
4902
|
else {
|
|
4903
4903
|
const r = ta(t, e, n), o = r.length;
|
|
4904
4904
|
Le(!!o, "No valid elements provided.");
|
|
4905
4905
|
for (let a = 0; a < o; a++) {
|
|
4906
|
-
const l = r[a], c = l instanceof Element ?
|
|
4906
|
+
const l = r[a], c = l instanceof Element ? Df : If;
|
|
4907
4907
|
Ce.has(l) || c(l);
|
|
4908
4908
|
const u = Ce.get(l), d = { ...i };
|
|
4909
|
-
"delay" in d && typeof d.delay == "function" && (d.delay = d.delay(a, o)), s.push(...
|
|
4909
|
+
"delay" in d && typeof d.delay == "function" && (d.delay = d.delay(a, o)), s.push(...Cf(u, { ...e, transition: d }, {}));
|
|
4910
4910
|
}
|
|
4911
4911
|
}
|
|
4912
4912
|
return s;
|
|
4913
4913
|
}
|
|
4914
|
-
function
|
|
4914
|
+
function Bf(t, e, i) {
|
|
4915
4915
|
const n = [];
|
|
4916
|
-
return
|
|
4916
|
+
return yf(t, e, i, { spring: mn }).forEach(({ keyframes: r, transition: o }, a) => {
|
|
4917
4917
|
n.push(...ia(a, r, o));
|
|
4918
4918
|
}), n;
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function zf(t) {
|
|
4921
4921
|
return Array.isArray(t) && Array.isArray(t[0]);
|
|
4922
4922
|
}
|
|
4923
|
-
function
|
|
4923
|
+
function Rf(t) {
|
|
4924
4924
|
function e(i, n, s) {
|
|
4925
4925
|
let r = [];
|
|
4926
|
-
return
|
|
4926
|
+
return zf(i) ? r = Bf(i, n, t) : r = ia(i, n, s, t), new Nr(r);
|
|
4927
4927
|
}
|
|
4928
4928
|
return e;
|
|
4929
4929
|
}
|
|
4930
|
-
const na =
|
|
4931
|
-
function
|
|
4930
|
+
const na = Rf();
|
|
4931
|
+
function kf(t, e, i = !1) {
|
|
4932
4932
|
const n = t.visualElement.variantChildren;
|
|
4933
4933
|
if (!(n != null && n.size))
|
|
4934
4934
|
return {
|
|
@@ -4978,15 +4978,15 @@ function Rf(t, e, i = !1) {
|
|
|
4978
4978
|
};
|
|
4979
4979
|
}
|
|
4980
4980
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4981
|
-
const or = (t) => typeof t < "u",
|
|
4982
|
-
let
|
|
4983
|
-
class
|
|
4981
|
+
const or = (t) => typeof t < "u", Ff = ["initial", "animate", "inView", "hover", "press", "whileDrag", "exit"], Ut = /* @__PURE__ */ new WeakMap();
|
|
4982
|
+
let jf = 0;
|
|
4983
|
+
class $f {
|
|
4984
4984
|
constructor(e, i) {
|
|
4985
4985
|
var n;
|
|
4986
4986
|
this.element = null, this.isSafeToRemove = !1, this.isVShow = !1, this.children = /* @__PURE__ */ new Set(), this.activeStates = {
|
|
4987
4987
|
// initial: true,
|
|
4988
4988
|
animate: !0
|
|
4989
|
-
}, this._context = null, this.id = `motion-state-${
|
|
4989
|
+
}, this._context = null, this.id = `motion-state-${jf++}`, this.options = e, this.parent = i, (n = i == null ? void 0 : i.children) == null || n.add(this), this.depth = (i == null ? void 0 : i.depth) + 1 || 0, this.visualElement = lf(this.options.as, {
|
|
4990
4990
|
presenceContext: null,
|
|
4991
4991
|
parent: i == null ? void 0 : i.visualElement,
|
|
4992
4992
|
props: {
|
|
@@ -5008,7 +5008,7 @@ class jf {
|
|
|
5008
5008
|
reducedMotionConfig: e.motionConfig.reduceMotion
|
|
5009
5009
|
});
|
|
5010
5010
|
const s = e.initial === !1 ? "animate" : "initial";
|
|
5011
|
-
this.initTarget(s), this.featureManager = new
|
|
5011
|
+
this.initTarget(s), this.featureManager = new Od(this);
|
|
5012
5012
|
}
|
|
5013
5013
|
get context() {
|
|
5014
5014
|
if (!this._context) {
|
|
@@ -5091,7 +5091,7 @@ class jf {
|
|
|
5091
5091
|
this.target = {};
|
|
5092
5092
|
const n = {}, s = {};
|
|
5093
5093
|
let r;
|
|
5094
|
-
for (const g of
|
|
5094
|
+
for (const g of Ff) {
|
|
5095
5095
|
if (g === "initial" && !e || !this.activeStates[g] && g !== "initial")
|
|
5096
5096
|
continue;
|
|
5097
5097
|
const v = or(this.options[g]) ? this.options[g] : this.context[g], w = Mi(
|
|
@@ -5133,7 +5133,7 @@ class jf {
|
|
|
5133
5133
|
});
|
|
5134
5134
|
let l = () => Promise.resolve(), c = [];
|
|
5135
5135
|
if (Object.keys(n).length) {
|
|
5136
|
-
const { getAnimations: g, animations: v } =
|
|
5136
|
+
const { getAnimations: g, animations: v } = kf(this, n, e);
|
|
5137
5137
|
l = g, c = v;
|
|
5138
5138
|
}
|
|
5139
5139
|
let u;
|
|
@@ -5172,24 +5172,24 @@ class jf {
|
|
|
5172
5172
|
function Ht(t) {
|
|
5173
5173
|
return (t == null ? void 0 : t.nodeType) === 3 || (t == null ? void 0 : t.nodeType) === 8 ? Ht(t.nextSibling) : t;
|
|
5174
5174
|
}
|
|
5175
|
-
function
|
|
5175
|
+
function Nf(t) {
|
|
5176
5176
|
var e;
|
|
5177
5177
|
const i = ((e = Ht(t.$el)) == null ? void 0 : e.style.display) === "none";
|
|
5178
5178
|
return t.$.vnode.transition && i;
|
|
5179
5179
|
}
|
|
5180
|
-
const
|
|
5180
|
+
const Zf = {
|
|
5181
5181
|
reduceMotion: "never",
|
|
5182
5182
|
transition: void 0,
|
|
5183
5183
|
nonce: void 0
|
|
5184
|
-
}, [
|
|
5184
|
+
}, [Gf] = Jt("MotionConfig");
|
|
5185
5185
|
function sa() {
|
|
5186
|
-
return
|
|
5186
|
+
return Gf(F(() => Zf));
|
|
5187
5187
|
}
|
|
5188
5188
|
const Ge = /* @__PURE__ */ $({
|
|
5189
5189
|
name: "Motion",
|
|
5190
5190
|
inheritAttrs: !1,
|
|
5191
5191
|
__name: "Motion",
|
|
5192
|
-
props: /* @__PURE__ */
|
|
5192
|
+
props: /* @__PURE__ */ Oa({
|
|
5193
5193
|
as: {},
|
|
5194
5194
|
asChild: { type: Boolean },
|
|
5195
5195
|
whileDrag: {},
|
|
@@ -5261,7 +5261,7 @@ const Ge = /* @__PURE__ */ $({
|
|
|
5261
5261
|
crossfade: !0
|
|
5262
5262
|
}),
|
|
5263
5263
|
setup(t) {
|
|
5264
|
-
const e = t, i =
|
|
5264
|
+
const e = t, i = Jc({}), n = Wa(null), s = _a(), r = qa({}), o = sa();
|
|
5265
5265
|
function a() {
|
|
5266
5266
|
return r.id && e.layoutId ? `${r.id}-${e.layoutId}` : e.layoutId || void 0;
|
|
5267
5267
|
}
|
|
@@ -5276,16 +5276,16 @@ const Ge = /* @__PURE__ */ $({
|
|
|
5276
5276
|
initial: i.initial === !1 ? i.initial : e.initial === !0 ? void 0 : e.initial
|
|
5277
5277
|
};
|
|
5278
5278
|
}
|
|
5279
|
-
const c = new
|
|
5279
|
+
const c = new $f(
|
|
5280
5280
|
l(),
|
|
5281
5281
|
n
|
|
5282
5282
|
);
|
|
5283
|
-
|
|
5284
|
-
const u =
|
|
5285
|
-
|
|
5283
|
+
Ka(c);
|
|
5284
|
+
const u = Da().proxy;
|
|
5285
|
+
Ia(() => {
|
|
5286
5286
|
c.beforeMount();
|
|
5287
5287
|
}), Be(() => {
|
|
5288
|
-
c.mount(Ht(u.$el), l(),
|
|
5288
|
+
c.mount(Ht(u.$el), l(), Nf(u));
|
|
5289
5289
|
}), Xi(() => c.beforeUnmount()), wt(() => {
|
|
5290
5290
|
const h = Ht(u.$el);
|
|
5291
5291
|
h != null && h.isConnected || c.unmount();
|
|
@@ -5304,7 +5304,7 @@ const Ge = /* @__PURE__ */ $({
|
|
|
5304
5304
|
...h ? {} : c.visualElement.latestValues
|
|
5305
5305
|
};
|
|
5306
5306
|
if (h) {
|
|
5307
|
-
const { attributes: v, style: w } =
|
|
5307
|
+
const { attributes: v, style: w } = fl(c.target);
|
|
5308
5308
|
Object.assign(m, v), Object.assign(g, w);
|
|
5309
5309
|
}
|
|
5310
5310
|
return c.isMounted() || Object.assign(g, c.baseTarget), e.drag && e.dragListener !== !1 && Object.assign(g, {
|
|
@@ -5312,7 +5312,7 @@ const Ge = /* @__PURE__ */ $({
|
|
|
5312
5312
|
WebkitUserSelect: "none",
|
|
5313
5313
|
WebkitTouchCallout: "none",
|
|
5314
5314
|
touchAction: e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`
|
|
5315
|
-
}), g =
|
|
5315
|
+
}), g = dl({
|
|
5316
5316
|
...g,
|
|
5317
5317
|
...e.style
|
|
5318
5318
|
}), m.style = g, m;
|
|
@@ -5324,7 +5324,7 @@ const Ge = /* @__PURE__ */ $({
|
|
|
5324
5324
|
}
|
|
5325
5325
|
return (h, m) => {
|
|
5326
5326
|
var g;
|
|
5327
|
-
return M(),
|
|
5327
|
+
return M(), X(_(hl), {
|
|
5328
5328
|
ref_key: "PrimitiveRef",
|
|
5329
5329
|
ref: f,
|
|
5330
5330
|
"get-props": d,
|
|
@@ -5341,7 +5341,7 @@ const Ge = /* @__PURE__ */ $({
|
|
|
5341
5341
|
};
|
|
5342
5342
|
}
|
|
5343
5343
|
});
|
|
5344
|
-
function
|
|
5344
|
+
function Xf(t) {
|
|
5345
5345
|
const e = /* @__PURE__ */ new WeakMap(), i = sa();
|
|
5346
5346
|
function n(r) {
|
|
5347
5347
|
if (t.mode !== "popLayout")
|
|
@@ -5380,7 +5380,7 @@ function Gf(t) {
|
|
|
5380
5380
|
styles: e
|
|
5381
5381
|
};
|
|
5382
5382
|
}
|
|
5383
|
-
const
|
|
5383
|
+
const Uf = /* @__PURE__ */ $({
|
|
5384
5384
|
name: "AnimatePresence",
|
|
5385
5385
|
inheritAttrs: !0,
|
|
5386
5386
|
__name: "AnimatePresence",
|
|
@@ -5397,14 +5397,14 @@ const Xf = /* @__PURE__ */ $({
|
|
|
5397
5397
|
initial: e.initial,
|
|
5398
5398
|
custom: e.custom
|
|
5399
5399
|
};
|
|
5400
|
-
|
|
5400
|
+
Qc(i), Be(() => {
|
|
5401
5401
|
i.initial = void 0;
|
|
5402
5402
|
});
|
|
5403
5403
|
function n(u) {
|
|
5404
5404
|
const d = Ut.get(u);
|
|
5405
5405
|
d && (d.isVShow = !0, vi(u), d.setActive("exit", !1));
|
|
5406
5406
|
}
|
|
5407
|
-
const { addPopStyle: s, removePopStyle: r, styles: o } =
|
|
5407
|
+
const { addPopStyle: s, removePopStyle: r, styles: o } = Xf(e), a = /* @__PURE__ */ new Map();
|
|
5408
5408
|
wt(() => {
|
|
5409
5409
|
a.clear();
|
|
5410
5410
|
});
|
|
@@ -5429,7 +5429,7 @@ const Xf = /* @__PURE__ */ $({
|
|
|
5429
5429
|
} : {
|
|
5430
5430
|
mode: e.mode === "wait" ? "out-in" : void 0
|
|
5431
5431
|
});
|
|
5432
|
-
return (u, d) => (M(),
|
|
5432
|
+
return (u, d) => (M(), X(Ba(u.multiple ? za : Ra), gr({ css: !1 }, c.value, {
|
|
5433
5433
|
onEnter: n,
|
|
5434
5434
|
onLeave: l
|
|
5435
5435
|
}), {
|
|
@@ -5453,7 +5453,7 @@ function it(t) {
|
|
|
5453
5453
|
})
|
|
5454
5454
|
};
|
|
5455
5455
|
}
|
|
5456
|
-
var
|
|
5456
|
+
var Hf = /* @__PURE__ */ ((t) => (t.BANNER_V2 = "banner_v2", t.TITLE_V2 = "title_v2", t.TEXT_V2 = "text_v2", t.MEDIA_V2 = "media_v2", t.TAB_TEXT_MEDIA_V2 = "tabTextMedia_v2", t.CAROUSEL_TEXT_MEDIA_V2 = "carouselTextMedia_v2", t.CASE_SHOW_V2 = "caseShow_v2", t))(Hf || {}), Wf = /* @__PURE__ */ ((t) => (t.LEFT = "left", t.RIGHT = "right", t.CENTER = "center", t.JUSTIFY = "justify", t))(Wf || {}), ji = /* @__PURE__ */ ((t) => (t.MODULE_TITLE = "moduleTitle", t.SORT_TITLE = "sortTitles", t))(ji || {}), Xe = /* @__PURE__ */ ((t) => (t.TEXT_MEDIA = "textMedia", t.MEDIA = "media", t.TABLE = "table", t))(Xe || {}), Ue = /* @__PURE__ */ ((t) => (t.IMAGE = "image", t.VIDEO = "video", t.DIFF = "diff", t))(Ue || {}), Kf = /* @__PURE__ */ ((t) => (t.LIGHT = "light", t.DARK = "dark", t))(Kf || {});
|
|
5457
5457
|
const Z = {
|
|
5458
5458
|
initial: { y: 40, opacity: 0 },
|
|
5459
5459
|
transition: { duration: 0.6, ease: "easeOut" },
|
|
@@ -5462,7 +5462,7 @@ const Z = {
|
|
|
5462
5462
|
y: 0
|
|
5463
5463
|
},
|
|
5464
5464
|
viewport: { once: !0, amount: 0.5 }
|
|
5465
|
-
},
|
|
5465
|
+
}, qf = { class: "sortNumber" }, Yf = /* @__PURE__ */ $({
|
|
5466
5466
|
name: "FTitleV2",
|
|
5467
5467
|
__name: "FTitle",
|
|
5468
5468
|
props: {
|
|
@@ -5485,8 +5485,8 @@ const Z = {
|
|
|
5485
5485
|
class: "m-auto w-1200",
|
|
5486
5486
|
initial: _(Z).initial,
|
|
5487
5487
|
transition: _(Z).transition,
|
|
5488
|
-
"
|
|
5489
|
-
|
|
5488
|
+
"in-view": _(Z).whileInView,
|
|
5489
|
+
"in-view-options": _(Z).viewport
|
|
5490
5490
|
}, {
|
|
5491
5491
|
default: ne(() => [
|
|
5492
5492
|
e.config.titleType === _(ji).MODULE_TITLE ? (M(), L("h1", {
|
|
@@ -5496,15 +5496,15 @@ const Z = {
|
|
|
5496
5496
|
key: 1,
|
|
5497
5497
|
class: Ee(`title csr-v2-title-level-2 ${t.config.theme}`)
|
|
5498
5498
|
}, [
|
|
5499
|
-
P("span",
|
|
5499
|
+
P("span", qf, q(n.value), 1),
|
|
5500
5500
|
P("span", null, q(t.config.text), 1)
|
|
5501
|
-
], 2)) :
|
|
5501
|
+
], 2)) : J("", !0)
|
|
5502
5502
|
]),
|
|
5503
5503
|
_: 1
|
|
5504
|
-
}, 8, ["initial", "transition", "
|
|
5504
|
+
}, 8, ["initial", "transition", "in-view", "in-view-options"])
|
|
5505
5505
|
], 4));
|
|
5506
5506
|
}
|
|
5507
|
-
}), ra = /* @__PURE__ */ oe(
|
|
5507
|
+
}), ra = /* @__PURE__ */ oe(Yf, [["__scopeId", "data-v-d83a7a0c"]]), Jf = /* @__PURE__ */ $({
|
|
5508
5508
|
name: "FTextV2",
|
|
5509
5509
|
__name: "FText",
|
|
5510
5510
|
props: {
|
|
@@ -5524,8 +5524,8 @@ const Z = {
|
|
|
5524
5524
|
class: "m-auto w-1200",
|
|
5525
5525
|
initial: _(Z).initial,
|
|
5526
5526
|
transition: _(Z).transition,
|
|
5527
|
-
"
|
|
5528
|
-
|
|
5527
|
+
"in-view": _(Z).whileInView,
|
|
5528
|
+
"in-view-options": _(Z).viewport
|
|
5529
5529
|
}, {
|
|
5530
5530
|
default: ne(() => [
|
|
5531
5531
|
P("div", {
|
|
@@ -5533,10 +5533,10 @@ const Z = {
|
|
|
5533
5533
|
}, q(t.config.text), 5)
|
|
5534
5534
|
]),
|
|
5535
5535
|
_: 1
|
|
5536
|
-
}, 8, ["initial", "transition", "
|
|
5536
|
+
}, 8, ["initial", "transition", "in-view", "in-view-options"])
|
|
5537
5537
|
], 4));
|
|
5538
5538
|
}
|
|
5539
|
-
}), oa = /* @__PURE__ */ oe(
|
|
5539
|
+
}), oa = /* @__PURE__ */ oe(Jf, [["__scopeId", "data-v-2a6e81cf"]]), aa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAABgCAYAAADCWOqAAAAL10lEQVR4Ae3gAZAkSZIkSRKLqpm7R0REZmZmVlVVVVV3d3d3d/fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMdHd3d3dXV1VVVVVmZkZGRIS7m5kKz0xmV3d1d3dPz8zMzMxMong+vuzLvuy1I+KtgLe2fRw4zlX/l+0Ct0r6a9s/8/Ef//E/zXNCPMBXfdVXPbi19l3Aa3PV/2e/XUp5n4/5mI+5lSsQz/SlX/qlLx0RvwUc56r/9yTd2lp7m0/8xE/8awABfNVXfdWDM/O3bD+Yq656tt1Syst8zMd8zK0C+PIv//LfAl6bq656Xr/98R//8a+jL//yL39r4Ke46qoXwPbr6Cu+4iu+y/Z7c9VVL4CkW/XlX/7lfxXw0lx11Qsg6VZ9+Zd/+UXgOFdd9YLt6su//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81VV71w6Mu//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81VV71w6Mu//MvNVVe9cOjLv/zLzX8wSd8N/E5m3goQEQ+2/VbAW3PV/0boy7/8y81/nN8upbzPx3zMx9zK8/FVX/VVD26tfRXw1lz1vwn68i//cvMfQNJ3f9zHfdz78CL4iq/4iq+y/dFc9b8F+vIv/3Lz7yTp1o/7uI97CP8KX/7lX/5XwEtz1f8G6Mu//MvNv5Pt1/mET/iE3+Zf4cu+7MteW9JvcdX/BujLv/zLzb+DpFs/7uM+7iH8G3zFV3zF020/mKv+p0Nf/uVfbv59fvrjP/7j34Z/g6/4iq/4LtvvzVX/06Ev//IvN/8Otj/nEz7hEz6bf4Mv+7Iv+2xJn8VV/9OhL//yLzf/DpK++uM+7uM+hn+Dr/iKr/gq2x/NVf/ToS//8i83/z6//fEf//Gvw7/Bl3/5l/8W8Npc9T8d+vIv/3Lz71RKOfExH/Mxu/wrfNVXfdWDW2tP56r/DdCXf/mXm38nSV/9cR/3cR/Dv8JXfMVXfJft9+aq/w3Ql3/5l5v/ALZf5xM+4RN+mxfBl3/5l7818FNc9b8F+vIv/3LzH2PX9ud8wid8wlfzQnzFV3zFe9v+KuA4V/1vgb78y7/c/AeS9N2Z+T2f8Amf8Ns8wJd92Ze9tqTPAl6b/yKSvjsz/0bSawFvzVX/VujLv/zLzX+OXeBWScdtHweO81/I9ut8wid8wm/zTF/+5V/+1sBPcdW/BfryL/9y83+M7Y/5hE/4hK/muXzFV3zFe9v+Lq7610Jf/uVfbv4PkfTVH/dxH/cxvABf9mVf9tGSvoqr/jXQl3/5l5v/IyTd+nEf93EP4V/wZV/2ZZ8t6bO46kWFvvzLv9z8HyDp1oh4nY/5mI+5lRfBl33ZZ322pM/iqhcF+vIv/3Lzf8PbfPzHf/xP86/wFV/xFV9l+6O56l+CvvzLv9z8L2f7cz7hEz7hs/k3+Iqv+Irvsv3eXPXCoC//8i83/7v99Md//Me/Df8OX/7lX/5XwEvzn2NX0k/bfjDw2vzvhL78y7/c/C8l6daIeJ2P+ZiPuZV/h6/6qq863lr7LeCl+Q8k6asj4nM+5mM+ZhfgS7/0S186In4LOM7/LujLv/zLzf9Ou6WUl/mYj/mYW/kP8FVf9VUPzszfsv1g/gNI+u6P+7iPex+ey5d/+Ze/NfBT/O+CvvzLv9z8L2T7Yz7hEz7hq/kP9FVf9VUPzszfsv1g/n3++uM//uNfhhfgK77iK77K9kfzvwf68i//cvO/jKSv/riP+7iP4T/BV33VVz04M3/L9oP5N5B0a0S8zMd8zMfs8gJ81Vd91fHW2m8BL83/DujLv/zLzf8uf/3xH//xL8N/oi/90i996Yj4rYDjXPW/BfryL/9y87+UpFsj4mU+5mM+Zpd/gy/7si97bUmfBbz0/yFJXx0Rn/MxH/MxuwBf+qVf+tIR8VvAca763wJ9+Zd/uflfStKtEfEyH/MxH7PLv8GXfdmXvbakzwJemv8gd0v6adunba8dkb4BeG2u+t8CffmXf7l5gVpr/2rbD5b0VVz1v4Wk78vM75H0u8Bb89+A/gL4YCQ9ICJ+PTPf5WM+5mN28QLZPp2Zn5mZH5KZ35OZ35OZfxsRj7f9/q21x4+Ix0fE4yLizjvPfIqkb+Oq/+kQcGr72RH5+bZ/NTPfPiLeIiLeJCIeHxFvmJk/lpk/kJmvyVUvHER3Z+YbmNcrM98jIr4nIn4yIn4pIn4lIn4lIn4573HLX/7lX27gQVz1Px3amvteZn5TZv5qRHx7RPxMRLxpZn5IZj4sM98qM9+6tfbw1tpjIuK1IuKBmfnAiHiNiHhARDwgIh4QEffPzHtHxANaa/eKiHtExD0i4p4RcU9Jj5Z0t6RHSbpN0q2SbpN0W0TcFhG3RcRf8x63fPmXf3lz1f90iDgzD63M/S0i3iQifiAifj0ivi4iHp2Zb5+Zb5GZb5KZb5KZb5KZb5CZr5+Zr5eZr5WZr5mZr5GZr5GZr5GZr5GZD4qI10j/N9Ijk/TI9D+RHiHpEZIeIemRERFmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmYmd3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d1dVVVVVVZmZkZGRLi7m5kKz0xmV3d1d3dPz8zMzMxMong+vuzLvuy1I+KtgLe2fRw4zlX/l+0Ct0r6a9s/8/Ef//E/zXNCPMBXfdVXPbi19l3Aa3PV/2e/XUp5n4/5mI+5lSsQz/SlX/qlLx0RvwUc56r/9yTd2lp7m0/8xE/8awABfNVXfdWDM/O3bD+Yq656tt1Syst8zMd8zK0C+PIv//LfAl6bq656Xr/98R//8a+jL//yL39r4Ke46qoXwPbr6Cu+4iu+y/Z7c9VVL4CkW/XlX/7lfxXw0lx11Qsg6VZ9+Zd/+UXgOFdd9YLt6su//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81VV71w6Mu//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81VV71w6Mu//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81/sB8+4AM+4H1ba2/KVf/XkfTlH/dxH/ewiHhnrnqBbr311k981Ed91K2SXpur/q8j6cs/7uM+7mER8c5c9QLT13/9139yRLy1pNfmqv/rSPqyj/u4j/v/AEmvzVX/fyXpZVtrb8lV/1dprb05V1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddV/gP8BZBMckFPBhsAAAAASUVORK5CYII=", Qf = ["alt"], ep = ["src", "width"], tp = /* @__PURE__ */ $({
|
|
5540
5540
|
__name: "index",
|
|
5541
5541
|
props: {
|
|
5542
5542
|
src: {
|
|
@@ -5607,16 +5607,16 @@ const Z = {
|
|
|
5607
5607
|
class: Ee(["content-img", { loaded: s.value, error: r.value }]),
|
|
5608
5608
|
alt: t.alt,
|
|
5609
5609
|
style: W(l.value)
|
|
5610
|
-
}, null, 14,
|
|
5610
|
+
}, null, 14, Qf),
|
|
5611
5611
|
P("img", {
|
|
5612
5612
|
class: "fallback",
|
|
5613
5613
|
src: _(aa),
|
|
5614
5614
|
alt: "fallback",
|
|
5615
5615
|
width: c.value
|
|
5616
|
-
}, null, 8,
|
|
5616
|
+
}, null, 8, ep)
|
|
5617
5617
|
], 6));
|
|
5618
5618
|
}
|
|
5619
|
-
}), Pe = /* @__PURE__ */ oe(
|
|
5619
|
+
}), Pe = /* @__PURE__ */ oe(tp, [["__scopeId", "data-v-d0696b52"]]), ip = ["loop", "autoplay", "muted", "controls", "controlslist"], np = ["src", "width"], sp = /* @__PURE__ */ $({
|
|
5620
5620
|
__name: "index",
|
|
5621
5621
|
props: {
|
|
5622
5622
|
src: {
|
|
@@ -5706,23 +5706,23 @@ const Z = {
|
|
|
5706
5706
|
muted: t.autoplay || t.muted,
|
|
5707
5707
|
controls: t.controls,
|
|
5708
5708
|
controlslist: t.controlslist
|
|
5709
|
-
}, null, 14,
|
|
5709
|
+
}, null, 14, ip),
|
|
5710
5710
|
P("img", {
|
|
5711
5711
|
class: "fallback",
|
|
5712
5712
|
src: _(aa),
|
|
5713
5713
|
alt: "fallback",
|
|
5714
5714
|
width: c.value
|
|
5715
|
-
}, null, 8,
|
|
5715
|
+
}, null, 8, np)
|
|
5716
5716
|
], 6));
|
|
5717
5717
|
}
|
|
5718
|
-
}), Oe = /* @__PURE__ */ oe(
|
|
5718
|
+
}), Oe = /* @__PURE__ */ oe(sp, [["__scopeId", "data-v-e5a9b253"]]);
|
|
5719
5719
|
function yt(t) {
|
|
5720
5720
|
if (!t)
|
|
5721
5721
|
return "";
|
|
5722
5722
|
const e = t.split(".").pop().split("?")[0].split("#")[0].toLowerCase(), i = ["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg", "ico"], n = ["mp4", "webm", "ogg", "mov", "avi", "mkv", "flv", "wmv", "m3u8"];
|
|
5723
5723
|
return i.includes(e) ? "image" : n.includes(e) ? "video" : "other";
|
|
5724
5724
|
}
|
|
5725
|
-
function
|
|
5725
|
+
function rp(t) {
|
|
5726
5726
|
try {
|
|
5727
5727
|
const e = new URL(t), i = decodeURIComponent(e.pathname), n = i.substring(i.lastIndexOf("/") + 1);
|
|
5728
5728
|
return n && n !== "." && n !== ".." ? n : "";
|
|
@@ -5730,13 +5730,13 @@ function sp(t) {
|
|
|
5730
5730
|
return "";
|
|
5731
5731
|
}
|
|
5732
5732
|
}
|
|
5733
|
-
const
|
|
5733
|
+
const op = {
|
|
5734
5734
|
key: 0,
|
|
5735
5735
|
class: "placeholder"
|
|
5736
|
-
},
|
|
5736
|
+
}, ap = {
|
|
5737
5737
|
key: 1,
|
|
5738
5738
|
class: "placeholder"
|
|
5739
|
-
},
|
|
5739
|
+
}, lp = { key: 2 }, up = { key: 3 }, cp = /* @__PURE__ */ $({
|
|
5740
5740
|
name: "FMediaV2",
|
|
5741
5741
|
__name: "FMedia",
|
|
5742
5742
|
props: {
|
|
@@ -5756,29 +5756,29 @@ const rp = {
|
|
|
5756
5756
|
class: "m-auto w-1200",
|
|
5757
5757
|
initial: _(Z).initial,
|
|
5758
5758
|
transition: _(Z).transition,
|
|
5759
|
-
"
|
|
5760
|
-
|
|
5759
|
+
"in-view": _(Z).whileInView,
|
|
5760
|
+
"in-view-options": _(Z).viewport
|
|
5761
5761
|
}, {
|
|
5762
5762
|
default: ne(() => [
|
|
5763
|
-
n.value ? n.value === "other" ? (M(), L("div",
|
|
5763
|
+
n.value ? n.value === "other" ? (M(), L("div", ap, " 不支持的文件类型 ")) : n.value === "image" ? (M(), L("div", lp, [
|
|
5764
5764
|
N(Pe, {
|
|
5765
5765
|
src: e.config.src
|
|
5766
5766
|
}, null, 8, ["src"])
|
|
5767
|
-
])) : n.value === "video" ? (M(), L("div",
|
|
5767
|
+
])) : n.value === "video" ? (M(), L("div", up, [
|
|
5768
5768
|
N(Oe, {
|
|
5769
5769
|
src: e.config.src,
|
|
5770
5770
|
controls: ""
|
|
5771
5771
|
}, null, 8, ["src"])
|
|
5772
|
-
])) :
|
|
5772
|
+
])) : J("", !0) : (M(), L("div", op, " 请选择媒体文件 "))
|
|
5773
5773
|
]),
|
|
5774
5774
|
_: 1
|
|
5775
|
-
}, 8, ["initial", "transition", "
|
|
5775
|
+
}, 8, ["initial", "transition", "in-view", "in-view-options"])
|
|
5776
5776
|
], 4));
|
|
5777
5777
|
}
|
|
5778
|
-
}), la = /* @__PURE__ */ oe(
|
|
5778
|
+
}), la = /* @__PURE__ */ oe(cp, [["__scopeId", "data-v-27fc89c7"]]), dp = { class: "editable-table" }, fp = {
|
|
5779
5779
|
key: 0,
|
|
5780
5780
|
class: "toolbar"
|
|
5781
|
-
},
|
|
5781
|
+
}, pp = { class: "empty-hint" }, hp = { class: "table-wrap" }, mp = { key: 0 }, vp = ["rowspan", "colspan"], gp = { class: "cell-content csr-v2-description" }, yp = ["onUpdate:modelValue"], wp = ["onClick"], bp = /* @__PURE__ */ $({
|
|
5782
5782
|
__name: "EditableTable",
|
|
5783
5783
|
props: {
|
|
5784
5784
|
modelValue: {},
|
|
@@ -5843,8 +5843,8 @@ const rp = {
|
|
|
5843
5843
|
}
|
|
5844
5844
|
return Be(() => {
|
|
5845
5845
|
i.modelValue || u();
|
|
5846
|
-
}), (m, g) => (M(), L("div",
|
|
5847
|
-
t.mode === "edit" ? (M(), L("div",
|
|
5846
|
+
}), (m, g) => (M(), L("div", dp, [
|
|
5847
|
+
t.mode === "edit" ? (M(), L("div", fp, [
|
|
5848
5848
|
P("button", {
|
|
5849
5849
|
class: "toolbar-btn",
|
|
5850
5850
|
onClick: f
|
|
@@ -5853,11 +5853,11 @@ const rp = {
|
|
|
5853
5853
|
class: "toolbar-btn",
|
|
5854
5854
|
onClick: p
|
|
5855
5855
|
}, "+ 列")
|
|
5856
|
-
])) :
|
|
5857
|
-
Ve(P("div",
|
|
5856
|
+
])) : J("", !0),
|
|
5857
|
+
Ve(P("div", pp, " 暂无数据 ", 512), [
|
|
5858
5858
|
[je, !a.value && !i.modelValue]
|
|
5859
5859
|
]),
|
|
5860
|
-
P("div",
|
|
5860
|
+
P("div", hp, [
|
|
5861
5861
|
P("table", {
|
|
5862
5862
|
ref_key: "tableRef",
|
|
5863
5863
|
ref: s,
|
|
@@ -5871,7 +5871,7 @@ const rp = {
|
|
|
5871
5871
|
]),
|
|
5872
5872
|
P("tbody", null, [
|
|
5873
5873
|
(M(!0), L(te, null, fe(l.rows, (v, w) => (M(), L(te, { key: w }, [
|
|
5874
|
-
v.some((b) => !b.hidden) ? (M(), L("tr",
|
|
5874
|
+
v.some((b) => !b.hidden) ? (M(), L("tr", mp, [
|
|
5875
5875
|
(M(!0), L(te, null, fe(v, (b, x) => Ve((M(), L("td", {
|
|
5876
5876
|
key: b.id,
|
|
5877
5877
|
rowspan: b.rowspan,
|
|
@@ -5883,34 +5883,34 @@ const rp = {
|
|
|
5883
5883
|
}),
|
|
5884
5884
|
class: "data-cell"
|
|
5885
5885
|
}, [
|
|
5886
|
-
P("div",
|
|
5886
|
+
P("div", gp, [
|
|
5887
5887
|
t.mode === "edit" ? (M(), L(te, { key: 0 }, [
|
|
5888
5888
|
Ve(P("input", {
|
|
5889
5889
|
"onUpdate:modelValue": (y) => b.content = y,
|
|
5890
5890
|
class: "cell-input",
|
|
5891
5891
|
onInput: c
|
|
5892
|
-
}, null, 40,
|
|
5893
|
-
[
|
|
5892
|
+
}, null, 40, yp), [
|
|
5893
|
+
[ka, b.content]
|
|
5894
5894
|
]),
|
|
5895
5895
|
P("button", {
|
|
5896
5896
|
class: "cell-remove",
|
|
5897
5897
|
onClick: pe((y) => h(x), ["stop"])
|
|
5898
|
-
}, "x", 8,
|
|
5898
|
+
}, "x", 8, wp)
|
|
5899
5899
|
], 64)) : (M(), L(te, { key: 1 }, [
|
|
5900
|
-
|
|
5900
|
+
Fa(q(b.content), 1)
|
|
5901
5901
|
], 64))
|
|
5902
5902
|
])
|
|
5903
|
-
], 12,
|
|
5903
|
+
], 12, vp)), [
|
|
5904
5904
|
[je, !b.hidden]
|
|
5905
5905
|
])), 128))
|
|
5906
|
-
])) :
|
|
5906
|
+
])) : J("", !0)
|
|
5907
5907
|
], 64))), 128))
|
|
5908
5908
|
])
|
|
5909
5909
|
], 512)
|
|
5910
5910
|
])
|
|
5911
5911
|
]));
|
|
5912
5912
|
}
|
|
5913
|
-
}),
|
|
5913
|
+
}), ua = /* @__PURE__ */ oe(bp, [["__scopeId", "data-v-d40a6502"]]), Sp = { class: "modal-container" }, Tp = { class: "modal-body" }, xp = /* @__PURE__ */ $({
|
|
5914
5914
|
__name: "TableDesignModal",
|
|
5915
5915
|
props: {
|
|
5916
5916
|
modelValue: { default: void 0 },
|
|
@@ -5935,7 +5935,7 @@ const rp = {
|
|
|
5935
5935
|
}
|
|
5936
5936
|
return e({
|
|
5937
5937
|
open: s
|
|
5938
|
-
}), (l, c) => (M(),
|
|
5938
|
+
}), (l, c) => (M(), X(wr, { to: "body" }, [
|
|
5939
5939
|
n.visible ? (M(), L("div", {
|
|
5940
5940
|
key: 0,
|
|
5941
5941
|
class: "modal-overlay",
|
|
@@ -5950,7 +5950,7 @@ const rp = {
|
|
|
5950
5950
|
}, "×")
|
|
5951
5951
|
]),
|
|
5952
5952
|
P("div", Tp, [
|
|
5953
|
-
N(
|
|
5953
|
+
N(ua, {
|
|
5954
5954
|
modelValue: i.value,
|
|
5955
5955
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => i.value = u),
|
|
5956
5956
|
mode: "edit"
|
|
@@ -5971,7 +5971,7 @@ const rp = {
|
|
|
5971
5971
|
}, "完成")
|
|
5972
5972
|
])
|
|
5973
5973
|
])
|
|
5974
|
-
])) :
|
|
5974
|
+
])) : J("", !0)
|
|
5975
5975
|
]));
|
|
5976
5976
|
}
|
|
5977
5977
|
}), Ep = /* @__PURE__ */ oe(xp, [["__scopeId", "data-v-db916ab0"]]);
|
|
@@ -5986,7 +5986,7 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
5986
5986
|
}),
|
|
5987
5987
|
emits: ["update:modelValue"],
|
|
5988
5988
|
setup(t, { expose: e }) {
|
|
5989
|
-
const i = t, n = Wi(t, "modelValue"), s =
|
|
5989
|
+
const i = t, n = Wi(t, "modelValue"), s = ja("tableDesignModal");
|
|
5990
5990
|
function r() {
|
|
5991
5991
|
var o;
|
|
5992
5992
|
i.mode === $i.EDIT && ((o = s.value) == null || o.open());
|
|
@@ -5994,12 +5994,17 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
5994
5994
|
return e({
|
|
5995
5995
|
edit: r
|
|
5996
5996
|
}), (o, a) => (M(), L("div", Pp, [
|
|
5997
|
-
t.mode === _($i).EDIT ? (M(),
|
|
5997
|
+
t.mode === _($i).EDIT ? (M(), X(Ep, {
|
|
5998
5998
|
key: 0,
|
|
5999
5999
|
ref: "tableDesignModal",
|
|
6000
6000
|
modelValue: n.value,
|
|
6001
6001
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l)
|
|
6002
|
-
}, null, 8, ["modelValue"])) :
|
|
6002
|
+
}, null, 8, ["modelValue"])) : (M(), X(ua, {
|
|
6003
|
+
key: 1,
|
|
6004
|
+
modelValue: n.value,
|
|
6005
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => n.value = l),
|
|
6006
|
+
"is-edit": !1
|
|
6007
|
+
}, null, 8, ["modelValue"]))
|
|
6003
6008
|
]));
|
|
6004
6009
|
}
|
|
6005
6010
|
}), Mp = { class: "hs-tab-pane-wrapper" }, Tn = /* @__PURE__ */ $({
|
|
@@ -6029,9 +6034,9 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6029
6034
|
), wt(() => {
|
|
6030
6035
|
i.value.unregisterPane(e.name);
|
|
6031
6036
|
}), (s, r) => Ve((M(), L("div", Mp, [
|
|
6032
|
-
N(_(
|
|
6037
|
+
N(_(Uf), { mode: "wait" }, {
|
|
6033
6038
|
default: ne(() => [
|
|
6034
|
-
n.value ? (M(),
|
|
6039
|
+
n.value ? (M(), X(_(Ge), {
|
|
6035
6040
|
is: "div",
|
|
6036
6041
|
key: e.name,
|
|
6037
6042
|
tag: "div",
|
|
@@ -6041,12 +6046,12 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6041
6046
|
class: "wrapper-content"
|
|
6042
6047
|
}, {
|
|
6043
6048
|
default: ne(() => [
|
|
6044
|
-
e.forceRender ? (M(),
|
|
6049
|
+
e.forceRender ? (M(), X($a, { key: 0 }, [
|
|
6045
6050
|
ht(s.$slots, "default")
|
|
6046
6051
|
], 1024)) : ht(s.$slots, "default", { key: 1 })
|
|
6047
6052
|
]),
|
|
6048
6053
|
_: 3
|
|
6049
|
-
})) :
|
|
6054
|
+
})) : J("", !0)
|
|
6050
6055
|
]),
|
|
6051
6056
|
_: 3
|
|
6052
6057
|
})
|
|
@@ -6217,7 +6222,7 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6217
6222
|
visible: !1,
|
|
6218
6223
|
innerUrl: "",
|
|
6219
6224
|
zIndex: 0
|
|
6220
|
-
}), r = F(() => yt(s.innerUrl)), o = F(() =>
|
|
6225
|
+
}), r = F(() => yt(s.innerUrl)), o = F(() => rp(s.innerUrl)), a = F(() => i.urlList.indexOf(s.innerUrl) > 0), l = F(() => i.urlList.indexOf(s.innerUrl) < i.urlList.length - 1);
|
|
6221
6226
|
function c(h) {
|
|
6222
6227
|
s.innerUrl = h, s.visible = !0;
|
|
6223
6228
|
}
|
|
@@ -6235,7 +6240,7 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6235
6240
|
function p(h) {
|
|
6236
6241
|
h.target === n.value && u();
|
|
6237
6242
|
}
|
|
6238
|
-
return e({ open: c }), (h, m) => (M(),
|
|
6243
|
+
return e({ open: c }), (h, m) => (M(), X(wr, { to: "body" }, [
|
|
6239
6244
|
s.visible ? (M(), L("div", {
|
|
6240
6245
|
key: 0,
|
|
6241
6246
|
ref_key: "modalRef",
|
|
@@ -6263,7 +6268,7 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6263
6268
|
color: "white",
|
|
6264
6269
|
opacity: "1"
|
|
6265
6270
|
})
|
|
6266
|
-
])) :
|
|
6271
|
+
])) : J("", !0),
|
|
6267
6272
|
l.value ? (M(), L("button", {
|
|
6268
6273
|
key: 1,
|
|
6269
6274
|
class: "nav-btn next",
|
|
@@ -6274,21 +6279,21 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6274
6279
|
color: "white",
|
|
6275
6280
|
opacity: "1"
|
|
6276
6281
|
})
|
|
6277
|
-
])) :
|
|
6278
|
-
r.value === "image" ? (M(),
|
|
6282
|
+
])) : J("", !0),
|
|
6283
|
+
r.value === "image" ? (M(), X(Pe, {
|
|
6279
6284
|
key: 2,
|
|
6280
6285
|
src: s.innerUrl,
|
|
6281
6286
|
width: "auto",
|
|
6282
6287
|
height: "auto"
|
|
6283
|
-
}, null, 8, ["src"])) : r.value === "video" ? (M(),
|
|
6288
|
+
}, null, 8, ["src"])) : r.value === "video" ? (M(), X(Oe, {
|
|
6284
6289
|
key: 3,
|
|
6285
6290
|
src: s.innerUrl,
|
|
6286
6291
|
controls: "",
|
|
6287
6292
|
autoplay: !0
|
|
6288
|
-
}, null, 8, ["src"])) :
|
|
6293
|
+
}, null, 8, ["src"])) : J("", !0)
|
|
6289
6294
|
])
|
|
6290
6295
|
])
|
|
6291
|
-
], 512)) :
|
|
6296
|
+
], 512)) : J("", !0)
|
|
6292
6297
|
]));
|
|
6293
6298
|
}
|
|
6294
6299
|
}), Zp = /* @__PURE__ */ oe(Np, [["__scopeId", "data-v-68aaa9c5"]]), Gp = ["width", "height"], Xp = { id: "clipPath_0" }, Up = ["fill"], Hp = {
|
|
@@ -6380,14 +6385,14 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6380
6385
|
}
|
|
6381
6386
|
return (o, a) => (M(), L("div", qp, [
|
|
6382
6387
|
n.value ? n.value === "other" ? (M(), L("div", Jp, " 不支持的文件类型 ")) : (M(), L("div", Qp, [
|
|
6383
|
-
n.value === "image" ? (M(),
|
|
6388
|
+
n.value === "image" ? (M(), X(Pe, {
|
|
6384
6389
|
key: 0,
|
|
6385
6390
|
src: e.src
|
|
6386
|
-
}, null, 8, ["src"])) : n.value === "video" ? (M(),
|
|
6391
|
+
}, null, 8, ["src"])) : n.value === "video" ? (M(), X(Oe, {
|
|
6387
6392
|
key: 1,
|
|
6388
6393
|
src: e.src,
|
|
6389
6394
|
controls: !1
|
|
6390
|
-
}, null, 8, ["src"])) :
|
|
6395
|
+
}, null, 8, ["src"])) : J("", !0)
|
|
6391
6396
|
])) : (M(), L("div", Yp, " 请选择媒体文件 ")),
|
|
6392
6397
|
s.value ? (M(), L("div", {
|
|
6393
6398
|
key: 3,
|
|
@@ -6398,7 +6403,7 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6398
6403
|
a[0] || (a[0] = P("span", null, "点击放大", -1)),
|
|
6399
6404
|
N(Kp, { size: "32" })
|
|
6400
6405
|
])
|
|
6401
|
-
])) :
|
|
6406
|
+
])) : J("", !0),
|
|
6402
6407
|
N(Zp, {
|
|
6403
6408
|
ref_key: "previewModalRef",
|
|
6404
6409
|
ref: i,
|
|
@@ -6439,8 +6444,8 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6439
6444
|
class: "m-auto w-1200",
|
|
6440
6445
|
initial: _(Z).initial,
|
|
6441
6446
|
transition: _(Z).transition,
|
|
6442
|
-
"
|
|
6443
|
-
|
|
6447
|
+
"in-view": _(Z).whileInView,
|
|
6448
|
+
"in-view-options": _(Z).viewport
|
|
6444
6449
|
}, {
|
|
6445
6450
|
default: ne(() => [
|
|
6446
6451
|
N(xn, {
|
|
@@ -6449,7 +6454,7 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6449
6454
|
"content-height": e.config.contentHeight
|
|
6450
6455
|
}, {
|
|
6451
6456
|
default: ne(() => [
|
|
6452
|
-
(M(!0), L(te, null, fe(e.config.items, (a, l) => (M(),
|
|
6457
|
+
(M(!0), L(te, null, fe(e.config.items, (a, l) => (M(), X(Tn, {
|
|
6453
6458
|
key: l,
|
|
6454
6459
|
name: `${l}`,
|
|
6455
6460
|
label: a.tabLabel
|
|
@@ -6478,16 +6483,16 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6478
6483
|
])
|
|
6479
6484
|
])) : a.contentType === _(Xe).MEDIA ? (M(), L("div", oh, [
|
|
6480
6485
|
a.src ? (M(), L(te, { key: 0 }, [
|
|
6481
|
-
_(yt)(a.src) === "image" ? (M(),
|
|
6486
|
+
_(yt)(a.src) === "image" ? (M(), X(Pe, {
|
|
6482
6487
|
key: 0,
|
|
6483
6488
|
src: a.src
|
|
6484
|
-
}, null, 8, ["src"])) :
|
|
6485
|
-
_(yt)(a.src) === "video" ? (M(),
|
|
6489
|
+
}, null, 8, ["src"])) : J("", !0),
|
|
6490
|
+
_(yt)(a.src) === "video" ? (M(), X(Oe, {
|
|
6486
6491
|
key: 1,
|
|
6487
6492
|
src: a.src,
|
|
6488
6493
|
controls: ""
|
|
6489
|
-
}, null, 8, ["src"])) :
|
|
6490
|
-
], 64)) :
|
|
6494
|
+
}, null, 8, ["src"])) : J("", !0)
|
|
6495
|
+
], 64)) : J("", !0)
|
|
6491
6496
|
])) : a.contentType === _(Xe).TABLE ? (M(), L("div", ah, [
|
|
6492
6497
|
N(Sn, {
|
|
6493
6498
|
modelValue: a.tableData,
|
|
@@ -6501,7 +6506,7 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6501
6506
|
], 512), [
|
|
6502
6507
|
[je, !!a.tip]
|
|
6503
6508
|
])
|
|
6504
|
-
])) :
|
|
6509
|
+
])) : J("", !0)
|
|
6505
6510
|
]),
|
|
6506
6511
|
_: 2
|
|
6507
6512
|
}, 1032, ["name", "label"]))), 128))
|
|
@@ -6510,10 +6515,10 @@ const Pp = { class: "dynamic-table" }, Sn = /* @__PURE__ */ $({
|
|
|
6510
6515
|
}, 8, ["modelValue", "content-height"])
|
|
6511
6516
|
]),
|
|
6512
6517
|
_: 1
|
|
6513
|
-
}, 8, ["initial", "transition", "
|
|
6518
|
+
}, 8, ["initial", "transition", "in-view", "in-view-options"])
|
|
6514
6519
|
], 4));
|
|
6515
6520
|
}
|
|
6516
|
-
}),
|
|
6521
|
+
}), ca = /* @__PURE__ */ oe(ch, [["__scopeId", "data-v-fe347521"]]);
|
|
6517
6522
|
function ar(t) {
|
|
6518
6523
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
6519
6524
|
}
|
|
@@ -6524,7 +6529,7 @@ function Vn(t, e) {
|
|
|
6524
6529
|
typeof t[n] > "u" ? t[n] = e[n] : ar(e[n]) && ar(t[n]) && Object.keys(e[n]).length > 0 && Vn(t[n], e[n]);
|
|
6525
6530
|
});
|
|
6526
6531
|
}
|
|
6527
|
-
const
|
|
6532
|
+
const da = {
|
|
6528
6533
|
body: {},
|
|
6529
6534
|
addEventListener() {
|
|
6530
6535
|
},
|
|
@@ -6581,10 +6586,10 @@ const ca = {
|
|
|
6581
6586
|
};
|
|
6582
6587
|
function ye() {
|
|
6583
6588
|
const t = typeof document < "u" ? document : {};
|
|
6584
|
-
return Vn(t,
|
|
6589
|
+
return Vn(t, da), t;
|
|
6585
6590
|
}
|
|
6586
6591
|
const dh = {
|
|
6587
|
-
document:
|
|
6592
|
+
document: da,
|
|
6588
6593
|
navigator: {
|
|
6589
6594
|
userAgent: ""
|
|
6590
6595
|
},
|
|
@@ -6661,7 +6666,7 @@ function ph(t) {
|
|
|
6661
6666
|
}
|
|
6662
6667
|
});
|
|
6663
6668
|
}
|
|
6664
|
-
function
|
|
6669
|
+
function fa(t, e) {
|
|
6665
6670
|
return e === void 0 && (e = 0), setTimeout(t, e);
|
|
6666
6671
|
}
|
|
6667
6672
|
function Wt() {
|
|
@@ -6702,7 +6707,7 @@ function le() {
|
|
|
6702
6707
|
function It(t, e, i) {
|
|
6703
6708
|
t.style.setProperty(e, i);
|
|
6704
6709
|
}
|
|
6705
|
-
function
|
|
6710
|
+
function pa(t) {
|
|
6706
6711
|
let {
|
|
6707
6712
|
swiper: e,
|
|
6708
6713
|
targetPosition: i,
|
|
@@ -6804,7 +6809,7 @@ function cr(t, e) {
|
|
|
6804
6809
|
createHTML: (i) => i
|
|
6805
6810
|
}).createHTML(e) : t.innerHTML = e;
|
|
6806
6811
|
}
|
|
6807
|
-
function
|
|
6812
|
+
function ha(t) {
|
|
6808
6813
|
let {
|
|
6809
6814
|
swiper: e,
|
|
6810
6815
|
extendParams: i,
|
|
@@ -6840,39 +6845,39 @@ function pa(t) {
|
|
|
6840
6845
|
});
|
|
6841
6846
|
}, y = () => {
|
|
6842
6847
|
let D;
|
|
6843
|
-
return e.virtual && e.params.virtual.enabled ? D = e.slides.find((
|
|
6848
|
+
return e.virtual && e.params.virtual.enabled ? D = e.slides.find((Y) => Y.classList.contains("swiper-slide-active")) : D = e.slides[e.activeIndex], D ? parseInt(D.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
6844
6849
|
}, V = (D) => {
|
|
6845
6850
|
if (e.destroyed || !e.autoplay.running) return;
|
|
6846
6851
|
cancelAnimationFrame(a), x();
|
|
6847
|
-
let
|
|
6852
|
+
let U = typeof D > "u" ? e.params.autoplay.delay : D;
|
|
6848
6853
|
l = e.params.autoplay.delay, c = e.params.autoplay.delay;
|
|
6849
|
-
const
|
|
6850
|
-
!Number.isNaN(
|
|
6854
|
+
const Y = y();
|
|
6855
|
+
!Number.isNaN(Y) && Y > 0 && typeof D > "u" && (U = Y, l = Y, c = Y), u = U;
|
|
6851
6856
|
const he = e.params.speed, Re = () => {
|
|
6852
6857
|
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(he, !0, !0), s("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, he, !0, !0), s("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(he, !0, !0), s("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, he, !0, !0), s("autoplay")), e.params.cssMode && (d = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
|
6853
6858
|
V();
|
|
6854
6859
|
})));
|
|
6855
6860
|
};
|
|
6856
|
-
return
|
|
6861
|
+
return U > 0 ? (clearTimeout(o), o = setTimeout(() => {
|
|
6857
6862
|
Re();
|
|
6858
|
-
},
|
|
6863
|
+
}, U)) : requestAnimationFrame(() => {
|
|
6859
6864
|
Re();
|
|
6860
|
-
}),
|
|
6865
|
+
}), U;
|
|
6861
6866
|
}, A = () => {
|
|
6862
6867
|
d = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, V(), s("autoplayStart");
|
|
6863
6868
|
}, T = () => {
|
|
6864
6869
|
e.autoplay.running = !1, clearTimeout(o), cancelAnimationFrame(a), s("autoplayStop");
|
|
6865
|
-
}, S = (D,
|
|
6870
|
+
}, S = (D, U) => {
|
|
6866
6871
|
if (e.destroyed || !e.autoplay.running) return;
|
|
6867
6872
|
clearTimeout(o), D || (v = !0);
|
|
6868
|
-
const
|
|
6873
|
+
const Y = () => {
|
|
6869
6874
|
s("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", b) : E();
|
|
6870
6875
|
};
|
|
6871
|
-
if (e.autoplay.paused = !0,
|
|
6872
|
-
g && (u = e.params.autoplay.delay), g = !1,
|
|
6876
|
+
if (e.autoplay.paused = !0, U) {
|
|
6877
|
+
g && (u = e.params.autoplay.delay), g = !1, Y();
|
|
6873
6878
|
return;
|
|
6874
6879
|
}
|
|
6875
|
-
u = (u || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - d), !(e.isEnd && u < 0 && !e.params.loop) && (u < 0 && (u = 0),
|
|
6880
|
+
u = (u || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - d), !(e.isEnd && u < 0 && !e.params.loop) && (u < 0 && (u = 0), Y());
|
|
6876
6881
|
}, E = () => {
|
|
6877
6882
|
e.isEnd && u < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (d = (/* @__PURE__ */ new Date()).getTime(), v ? (v = !1, V(u)) : V(), e.autoplay.paused = !1, s("autoplayResume"));
|
|
6878
6883
|
}, C = () => {
|
|
@@ -6900,8 +6905,8 @@ function pa(t) {
|
|
|
6900
6905
|
(h || v) && E();
|
|
6901
6906
|
}), n("_freeModeNoMomentumRelease", () => {
|
|
6902
6907
|
e.params.autoplay.disableOnInteraction ? T() : S(!0, !0);
|
|
6903
|
-
}), n("beforeTransitionStart", (D,
|
|
6904
|
-
e.destroyed || !e.autoplay.running || (
|
|
6908
|
+
}), n("beforeTransitionStart", (D, U, Y) => {
|
|
6909
|
+
e.destroyed || !e.autoplay.running || (Y || !e.params.autoplay.disableOnInteraction ? S(!0, !0) : T());
|
|
6905
6910
|
}), n("sliderFirstMove", () => {
|
|
6906
6911
|
if (!(e.destroyed || !e.autoplay.running)) {
|
|
6907
6912
|
if (e.params.autoplay.disableOnInteraction) {
|
|
@@ -6937,7 +6942,7 @@ function Th() {
|
|
|
6937
6942
|
touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
|
|
6938
6943
|
};
|
|
6939
6944
|
}
|
|
6940
|
-
function
|
|
6945
|
+
function ma() {
|
|
6941
6946
|
return yi || (yi = Th()), yi;
|
|
6942
6947
|
}
|
|
6943
6948
|
let wi;
|
|
@@ -6945,7 +6950,7 @@ function xh(t) {
|
|
|
6945
6950
|
let {
|
|
6946
6951
|
userAgent: e
|
|
6947
6952
|
} = t === void 0 ? {} : t;
|
|
6948
|
-
const i =
|
|
6953
|
+
const i = ma(), n = ae(), s = n.navigator.platform, r = e || n.navigator.userAgent, o = {
|
|
6949
6954
|
ios: !1,
|
|
6950
6955
|
android: !1
|
|
6951
6956
|
}, a = n.screen.width, l = n.screen.height, c = r.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
@@ -6955,12 +6960,12 @@ function xh(t) {
|
|
|
6955
6960
|
const m = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
6956
6961
|
return !u && h && i.touch && m.indexOf(`${a}x${l}`) >= 0 && (u = r.match(/(Version)\/([\d.]+)/), u || (u = [0, 1, "13_0_0"]), h = !1), c && !p && (o.os = "android", o.android = !0), (u || f || d) && (o.os = "ios", o.ios = !0), o;
|
|
6957
6962
|
}
|
|
6958
|
-
function
|
|
6963
|
+
function va(t) {
|
|
6959
6964
|
return t === void 0 && (t = {}), wi || (wi = xh(t)), wi;
|
|
6960
6965
|
}
|
|
6961
6966
|
let bi;
|
|
6962
6967
|
function Eh() {
|
|
6963
|
-
const t = ae(), e =
|
|
6968
|
+
const t = ae(), e = va();
|
|
6964
6969
|
let i = !1;
|
|
6965
6970
|
function n() {
|
|
6966
6971
|
const a = t.navigator.userAgent.toLowerCase();
|
|
@@ -6981,7 +6986,7 @@ function Eh() {
|
|
|
6981
6986
|
isWebView: s
|
|
6982
6987
|
};
|
|
6983
6988
|
}
|
|
6984
|
-
function
|
|
6989
|
+
function ga() {
|
|
6985
6990
|
return bi || (bi = Eh()), bi;
|
|
6986
6991
|
}
|
|
6987
6992
|
function Ph(t) {
|
|
@@ -7180,15 +7185,15 @@ function Ch() {
|
|
|
7180
7185
|
if (k && (C.style.transform = "none"), ce && (C.style.webkitTransform = "none"), i.roundLengths)
|
|
7181
7186
|
T = t.isHorizontal() ? ur(C, "width") : ur(C, "height");
|
|
7182
7187
|
else {
|
|
7183
|
-
const de = e(O, "width"), z = e(O, "padding-left"), R = e(O, "padding-right"), D = e(O, "margin-left"),
|
|
7184
|
-
if (
|
|
7185
|
-
T = de + D +
|
|
7188
|
+
const de = e(O, "width"), z = e(O, "padding-left"), R = e(O, "padding-right"), D = e(O, "margin-left"), U = e(O, "margin-right"), Y = O.getPropertyValue("box-sizing");
|
|
7189
|
+
if (Y && Y === "border-box")
|
|
7190
|
+
T = de + D + U;
|
|
7186
7191
|
else {
|
|
7187
7192
|
const {
|
|
7188
7193
|
clientWidth: he,
|
|
7189
7194
|
offsetWidth: Re
|
|
7190
7195
|
} = C;
|
|
7191
|
-
T = de + z + R + D +
|
|
7196
|
+
T = de + z + R + D + U + (Re - he);
|
|
7192
7197
|
}
|
|
7193
7198
|
}
|
|
7194
7199
|
k && (C.style.transform = k), ce && (C.style.webkitTransform = ce), i.roundLengths && (T = Math.floor(T));
|
|
@@ -7550,7 +7555,7 @@ function Zh(t, e, i, n, s) {
|
|
|
7550
7555
|
a[d ? "scrollLeft" : "scrollTop"] = -u;
|
|
7551
7556
|
else {
|
|
7552
7557
|
if (!r.support.smoothScroll)
|
|
7553
|
-
return
|
|
7558
|
+
return pa({
|
|
7554
7559
|
swiper: r,
|
|
7555
7560
|
targetPosition: -u,
|
|
7556
7561
|
side: d ? "left" : "top"
|
|
@@ -7577,7 +7582,7 @@ function Xh(t, e) {
|
|
|
7577
7582
|
const i = this;
|
|
7578
7583
|
i.params.cssMode || (i.wrapperEl.style.transitionDuration = `${t}ms`, i.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), i.emit("setTransition", t, e);
|
|
7579
7584
|
}
|
|
7580
|
-
function
|
|
7585
|
+
function ya(t) {
|
|
7581
7586
|
let {
|
|
7582
7587
|
swiper: e,
|
|
7583
7588
|
runCallbacks: i,
|
|
@@ -7596,7 +7601,7 @@ function Uh(t, e) {
|
|
|
7596
7601
|
const i = this, {
|
|
7597
7602
|
params: n
|
|
7598
7603
|
} = i;
|
|
7599
|
-
n.cssMode || (n.autoHeight && i.updateAutoHeight(),
|
|
7604
|
+
n.cssMode || (n.autoHeight && i.updateAutoHeight(), ya({
|
|
7600
7605
|
swiper: i,
|
|
7601
7606
|
runCallbacks: t,
|
|
7602
7607
|
direction: e,
|
|
@@ -7608,7 +7613,7 @@ function Hh(t, e) {
|
|
|
7608
7613
|
const i = this, {
|
|
7609
7614
|
params: n
|
|
7610
7615
|
} = i;
|
|
7611
|
-
i.animating = !1, !n.cssMode && (i.setTransition(0),
|
|
7616
|
+
i.animating = !1, !n.cssMode && (i.setTransition(0), ya({
|
|
7612
7617
|
swiper: i,
|
|
7613
7618
|
runCallbacks: t,
|
|
7614
7619
|
direction: e,
|
|
@@ -7665,7 +7670,7 @@ function Kh(t, e, i, n, s) {
|
|
|
7665
7670
|
});
|
|
7666
7671
|
else {
|
|
7667
7672
|
if (!r.support.smoothScroll)
|
|
7668
|
-
return
|
|
7673
|
+
return pa({
|
|
7669
7674
|
swiper: r,
|
|
7670
7675
|
targetPosition: T,
|
|
7671
7676
|
side: A ? "left" : "top"
|
|
@@ -7677,7 +7682,7 @@ function Kh(t, e, i, n, s) {
|
|
|
7677
7682
|
}
|
|
7678
7683
|
return !0;
|
|
7679
7684
|
}
|
|
7680
|
-
const V =
|
|
7685
|
+
const V = ga().isSafari;
|
|
7681
7686
|
return b && !s && V && r.isElement && r.virtual.update(!1, !1, o), r.setTransition(e), r.setTranslate(v), r.updateActiveIndex(o), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, n), r.transitionStart(i, w), e === 0 ? r.transitionEnd(i, w) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(T) {
|
|
7682
7687
|
!r || r.destroyed || T.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, w));
|
|
7683
7688
|
}), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
|
|
@@ -7821,7 +7826,7 @@ function tm() {
|
|
|
7821
7826
|
const o = t.isElement ? "swiper-slide" : `.${e.slideClass}`, a = t.grid && t.params.grid && t.params.grid.rows > 1;
|
|
7822
7827
|
if (e.loop) {
|
|
7823
7828
|
if (t.animating) return;
|
|
7824
|
-
r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : s > (a ? (t.slides.length - n) / 2 - (t.params.grid.rows - 1) : t.slides.length - n) ? (t.loopFix(), s = t.getSlideIndex(Se(i, `${o}[data-swiper-slide-index="${r}"]`)[0]),
|
|
7829
|
+
r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : s > (a ? (t.slides.length - n) / 2 - (t.params.grid.rows - 1) : t.slides.length - n) ? (t.loopFix(), s = t.getSlideIndex(Se(i, `${o}[data-swiper-slide-index="${r}"]`)[0]), fa(() => {
|
|
7825
7830
|
t.slideTo(s);
|
|
7826
7831
|
})) : t.slideTo(s);
|
|
7827
7832
|
} else
|
|
@@ -7928,8 +7933,8 @@ function sm(t) {
|
|
|
7928
7933
|
const R = z - Math.floor(z / A) * A;
|
|
7929
7934
|
if (x) {
|
|
7930
7935
|
const D = A - R - 1;
|
|
7931
|
-
for (let
|
|
7932
|
-
u[
|
|
7936
|
+
for (let U = u.length - 1; U >= 0; U -= 1)
|
|
7937
|
+
u[U].column === D && y.push(U);
|
|
7933
7938
|
} else
|
|
7934
7939
|
y.push(A - R - 1);
|
|
7935
7940
|
}
|
|
@@ -7937,8 +7942,8 @@ function sm(t) {
|
|
|
7937
7942
|
k = Math.max(de - (A - b * 2), w), T && (k = Math.max(k, v - A + g + 1));
|
|
7938
7943
|
for (let z = 0; z < k; z += 1) {
|
|
7939
7944
|
const R = z - Math.floor(z / A) * A;
|
|
7940
|
-
x ? u.forEach((D,
|
|
7941
|
-
D.column === R && V.push(
|
|
7945
|
+
x ? u.forEach((D, U) => {
|
|
7946
|
+
D.column === R && V.push(U);
|
|
7942
7947
|
}) : V.push(R);
|
|
7943
7948
|
}
|
|
7944
7949
|
}
|
|
@@ -8241,7 +8246,7 @@ function pm(t) {
|
|
|
8241
8246
|
const y = n.path || n.composedPath && n.composedPath();
|
|
8242
8247
|
e.updateClickedSlide(y && y[0] || n.target, y), e.emit("tap click", n), f < 300 && d - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", n);
|
|
8243
8248
|
}
|
|
8244
|
-
if (i.lastClickTime = Wt(),
|
|
8249
|
+
if (i.lastClickTime = Wt(), fa(() => {
|
|
8245
8250
|
e.destroyed || (e.allowClick = !0);
|
|
8246
8251
|
}), !i.isTouched || !i.isMoved || !e.swipeDirection || a.diff === 0 && !i.loopSwapReset || i.currentTranslate === i.startTranslate && !i.loopSwapReset) {
|
|
8247
8252
|
i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
|
|
@@ -8322,7 +8327,7 @@ function gm() {
|
|
|
8322
8327
|
const t = this;
|
|
8323
8328
|
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
8324
8329
|
}
|
|
8325
|
-
const
|
|
8330
|
+
const wa = (t, e) => {
|
|
8326
8331
|
const i = ye(), {
|
|
8327
8332
|
params: n,
|
|
8328
8333
|
el: s,
|
|
@@ -8364,10 +8369,10 @@ function ym() {
|
|
|
8364
8369
|
const t = this, {
|
|
8365
8370
|
params: e
|
|
8366
8371
|
} = t;
|
|
8367
|
-
t.onTouchStart = dm.bind(t), t.onTouchMove = fm.bind(t), t.onTouchEnd = pm.bind(t), t.onDocumentTouchStart = gm.bind(t), e.cssMode && (t.onScroll = mm.bind(t)), t.onClick = hm.bind(t), t.onLoad = vm.bind(t),
|
|
8372
|
+
t.onTouchStart = dm.bind(t), t.onTouchMove = fm.bind(t), t.onTouchEnd = pm.bind(t), t.onDocumentTouchStart = gm.bind(t), e.cssMode && (t.onScroll = mm.bind(t)), t.onClick = hm.bind(t), t.onLoad = vm.bind(t), wa(t, "on");
|
|
8368
8373
|
}
|
|
8369
8374
|
function wm() {
|
|
8370
|
-
|
|
8375
|
+
wa(this, "off");
|
|
8371
8376
|
}
|
|
8372
8377
|
var bm = {
|
|
8373
8378
|
attachEvents: ym,
|
|
@@ -8664,9 +8669,9 @@ let An = class be {
|
|
|
8664
8669
|
}), u;
|
|
8665
8670
|
}
|
|
8666
8671
|
const a = this;
|
|
8667
|
-
a.__swiper__ = !0, a.support =
|
|
8672
|
+
a.__swiper__ = !0, a.support = ma(), a.device = va({
|
|
8668
8673
|
userAgent: i.userAgent
|
|
8669
|
-
}), a.browser =
|
|
8674
|
+
}), a.browser = ga(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], i.modules && Array.isArray(i.modules) && a.modules.push(...i.modules);
|
|
8670
8675
|
const l = {};
|
|
8671
8676
|
a.modules.forEach((u) => {
|
|
8672
8677
|
u({
|
|
@@ -8959,7 +8964,7 @@ Object.keys(xi).forEach((t) => {
|
|
|
8959
8964
|
});
|
|
8960
8965
|
});
|
|
8961
8966
|
An.use([Ph, Mh]);
|
|
8962
|
-
const
|
|
8967
|
+
const ba = [
|
|
8963
8968
|
"eventsPrefix",
|
|
8964
8969
|
"injectStyles",
|
|
8965
8970
|
"injectStylesUrls",
|
|
@@ -9087,16 +9092,16 @@ function qe(t, e) {
|
|
|
9087
9092
|
typeof t[n] > "u" ? t[n] = e[n] : Ze(e[n]) && Ze(t[n]) && Object.keys(e[n]).length > 0 ? e[n].__swiper__ ? t[n] = e[n] : qe(t[n], e[n]) : t[n] = e[n];
|
|
9088
9093
|
});
|
|
9089
9094
|
}
|
|
9090
|
-
function
|
|
9095
|
+
function Sa(t) {
|
|
9091
9096
|
return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
|
|
9092
9097
|
}
|
|
9093
|
-
function
|
|
9098
|
+
function Ta(t) {
|
|
9094
9099
|
return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
|
|
9095
9100
|
}
|
|
9096
|
-
function
|
|
9101
|
+
function xa(t) {
|
|
9097
9102
|
return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
|
|
9098
9103
|
}
|
|
9099
|
-
function
|
|
9104
|
+
function Ea(t) {
|
|
9100
9105
|
t === void 0 && (t = "");
|
|
9101
9106
|
const e = t.split(" ").map((n) => n.trim()).filter((n) => !!n), i = [];
|
|
9102
9107
|
return e.forEach((n) => {
|
|
@@ -9145,7 +9150,7 @@ function mr(t, e) {
|
|
|
9145
9150
|
on: {}
|
|
9146
9151
|
}, n = {}, s = {};
|
|
9147
9152
|
qe(i, Gi), i._emitClasses = !0, i.init = !1;
|
|
9148
|
-
const r = {}, o =
|
|
9153
|
+
const r = {}, o = ba.map((l) => l.replace(/_/, "")), a = Object.assign({}, t);
|
|
9149
9154
|
return Object.keys(a).forEach((l) => {
|
|
9150
9155
|
typeof t[l] > "u" || (o.indexOf(l) >= 0 ? Ze(t[l]) ? (i[l] = {}, s[l] = {}, qe(i[l], t[l]), qe(s[l], t[l])) : (i[l] = t[l], s[l] = t[l]) : l.search(/on[A-Z]/) === 0 && typeof t[l] == "function" ? i.on[`${l[2].toLowerCase()}${l.substr(3)}`] = t[l] : r[l] = t[l]);
|
|
9151
9156
|
}), ["navigation", "pagination", "scrollbar"].forEach((l) => {
|
|
@@ -9166,7 +9171,7 @@ function Im(t, e) {
|
|
|
9166
9171
|
scrollbarEl: o,
|
|
9167
9172
|
swiper: a
|
|
9168
9173
|
} = t;
|
|
9169
|
-
|
|
9174
|
+
Sa(e) && n && s && (a.params.navigation.nextEl = n, a.originalParams.navigation.nextEl = n, a.params.navigation.prevEl = s, a.originalParams.navigation.prevEl = s), Ta(e) && r && (a.params.pagination.el = r, a.originalParams.pagination.el = r), xa(e) && o && (a.params.scrollbar.el = o, a.originalParams.scrollbar.el = o), a.init(i);
|
|
9170
9175
|
}
|
|
9171
9176
|
function Om(t, e, i, n, s) {
|
|
9172
9177
|
const r = [];
|
|
@@ -9178,7 +9183,7 @@ function Om(t, e, i, n, s) {
|
|
|
9178
9183
|
const l = n.map(s), c = i.map(s);
|
|
9179
9184
|
l.join("") !== c.join("") && o("children"), n.length !== i.length && o("children");
|
|
9180
9185
|
}
|
|
9181
|
-
return
|
|
9186
|
+
return ba.filter((l) => l[0] === "_").map((l) => l.replace(/_/, "")).forEach((l) => {
|
|
9182
9187
|
if (l in t && l in e)
|
|
9183
9188
|
if (Ze(t[l]) && Ze(e[l])) {
|
|
9184
9189
|
const c = Object.keys(t[l]), u = Object.keys(e[l]);
|
|
@@ -9241,7 +9246,7 @@ function zm(t, e, i) {
|
|
|
9241
9246
|
}, u.componentOptions.children);
|
|
9242
9247
|
});
|
|
9243
9248
|
}
|
|
9244
|
-
const
|
|
9249
|
+
const Pa = {
|
|
9245
9250
|
name: "Swiper",
|
|
9246
9251
|
props: {
|
|
9247
9252
|
tag: {
|
|
@@ -9794,25 +9799,25 @@ const Ea = {
|
|
|
9794
9799
|
} = Pi(i, p, h);
|
|
9795
9800
|
return se(s, {
|
|
9796
9801
|
ref: u,
|
|
9797
|
-
class:
|
|
9802
|
+
class: Ea(o.value)
|
|
9798
9803
|
}, [S["container-start"], se(r, {
|
|
9799
9804
|
class: _m(b.wrapperClass)
|
|
9800
|
-
}, [S["wrapper-start"], A(T), S["wrapper-end"]]),
|
|
9805
|
+
}, [S["wrapper-start"], A(T), S["wrapper-end"]]), Sa(t) && [se("div", {
|
|
9801
9806
|
ref: g,
|
|
9802
9807
|
class: "swiper-button-prev"
|
|
9803
9808
|
}), se("div", {
|
|
9804
9809
|
ref: m,
|
|
9805
9810
|
class: "swiper-button-next"
|
|
9806
|
-
})],
|
|
9811
|
+
})], xa(t) && se("div", {
|
|
9807
9812
|
ref: w,
|
|
9808
9813
|
class: "swiper-scrollbar"
|
|
9809
|
-
}),
|
|
9814
|
+
}), Ta(t) && se("div", {
|
|
9810
9815
|
ref: v,
|
|
9811
9816
|
class: "swiper-pagination"
|
|
9812
9817
|
}), S["container-end"]]);
|
|
9813
9818
|
};
|
|
9814
9819
|
}
|
|
9815
|
-
},
|
|
9820
|
+
}, Ma = {
|
|
9816
9821
|
name: "SwiperSlide",
|
|
9817
9822
|
props: {
|
|
9818
9823
|
tag: {
|
|
@@ -9873,7 +9878,7 @@ const Ea = {
|
|
|
9873
9878
|
a.value = !0;
|
|
9874
9879
|
};
|
|
9875
9880
|
return () => se(t.tag, {
|
|
9876
|
-
class:
|
|
9881
|
+
class: Ea(`${o.value}`),
|
|
9877
9882
|
ref: r,
|
|
9878
9883
|
"data-swiper-slide-index": typeof t.virtualIndex > "u" && s && s.value && s.value.params.loop ? t.swiperSlideIndex : t.virtualIndex,
|
|
9879
9884
|
onLoadCapture: u
|
|
@@ -9896,7 +9901,7 @@ const Ea = {
|
|
|
9896
9901
|
}
|
|
9897
9902
|
},
|
|
9898
9903
|
setup(t) {
|
|
9899
|
-
const e = t, { commonStyle: i } = it(e.config), n = [
|
|
9904
|
+
const e = t, { commonStyle: i } = it(e.config), n = [ha], s = B(), r = B(0), o = {
|
|
9900
9905
|
delay: 5e3,
|
|
9901
9906
|
disableOnInteraction: !1,
|
|
9902
9907
|
stopOnLastSlide: !1,
|
|
@@ -9944,11 +9949,11 @@ const Ea = {
|
|
|
9944
9949
|
style: W({ height: e.config.contentHeight }),
|
|
9945
9950
|
initial: _(Z).initial,
|
|
9946
9951
|
transition: _(Z).transition,
|
|
9947
|
-
"
|
|
9948
|
-
|
|
9952
|
+
"in-view": _(Z).whileInView,
|
|
9953
|
+
"in-view-options": _(Z).viewport
|
|
9949
9954
|
}, {
|
|
9950
9955
|
default: ne(() => [
|
|
9951
|
-
N(_(
|
|
9956
|
+
N(_(Pa), {
|
|
9952
9957
|
modules: n,
|
|
9953
9958
|
autoplay: o,
|
|
9954
9959
|
loop: !0,
|
|
@@ -9956,7 +9961,7 @@ const Ea = {
|
|
|
9956
9961
|
onSlideChange: c
|
|
9957
9962
|
}, {
|
|
9958
9963
|
default: ne(() => [
|
|
9959
|
-
(M(!0), L(te, null, fe(e.config.items, (m, g) => (M(),
|
|
9964
|
+
(M(!0), L(te, null, fe(e.config.items, (m, g) => (M(), X(_(Ma), { key: g }, {
|
|
9960
9965
|
default: ne(() => [
|
|
9961
9966
|
P("div", {
|
|
9962
9967
|
class: "text-media-content",
|
|
@@ -9970,10 +9975,10 @@ const Ea = {
|
|
|
9970
9975
|
])
|
|
9971
9976
|
]),
|
|
9972
9977
|
P("div", Nm, [
|
|
9973
|
-
m.src ? (M(),
|
|
9978
|
+
m.src ? (M(), X(Pe, {
|
|
9974
9979
|
key: 0,
|
|
9975
9980
|
src: m.src
|
|
9976
|
-
}, null, 8, ["src"])) :
|
|
9981
|
+
}, null, 8, ["src"])) : J("", !0)
|
|
9977
9982
|
])
|
|
9978
9983
|
], 4)
|
|
9979
9984
|
]),
|
|
@@ -9984,7 +9989,7 @@ const Ea = {
|
|
|
9984
9989
|
})
|
|
9985
9990
|
]),
|
|
9986
9991
|
_: 1
|
|
9987
|
-
}, 8, ["style", "initial", "transition", "
|
|
9992
|
+
}, 8, ["style", "initial", "transition", "in-view", "in-view-options"]),
|
|
9988
9993
|
P("button", {
|
|
9989
9994
|
class: "slick-arrow slick-next",
|
|
9990
9995
|
onClick: pe(f, ["stop"])
|
|
@@ -10011,7 +10016,7 @@ const Ea = {
|
|
|
10011
10016
|
])
|
|
10012
10017
|
], 4));
|
|
10013
10018
|
}
|
|
10014
|
-
}),
|
|
10019
|
+
}), Va = /* @__PURE__ */ oe(Km, [["__scopeId", "data-v-e0fb83f9"]]), qm = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAACYCAMAAAAvHNATAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAA/UExURUdwTP////////////r6+v///////////////////////////////////xoaGjAwMLW1tZGRkePj43R0dFFRUVXC+pAAAAANdFJOUwBAXTD1pX8X38GPP2+WI0vcAAADkElEQVR42u2c226cQAyGgTkDYw7L+z9rN1GTtpvA2HN0Kv7blVafsMc2xp6uu3Xr1q1bPGXEMCpnrf8t65zSQ2+aMvWz+gR6lVW6b0IltJM+JDeLulS9th4pO1ZjM9p5kuxQw+P6UXq6VGm03vlIuZ4l1jtaqadmkrCKGdRo6dOls3NN1meRzetqZvTZNGa0p7A+o2w2stlnVh5PM8pnV47jaawvoHRziiJcT7LE1N5LX0hySOEafEENTLkSyApzRZMV5/I+Kj8JWR5MCi7xKz2e1eGKIFO+khSNS/tqmkmG9BUl+DkY2c1GX1UjOnP7ysLGWVsbDGlM7atLszuRH6nJcAqt/7QPeD4wlP+7NmCOXajAPjLXCsyx9LDwI1PtwEamD+w6lg0NwS7Dv20JduH+wjdVz6UOw9vStgWzTC15Xv3PrcF0pnQkH7Cd/7rBY890Lol/sy0AcP7z88dlyxJjaYXF+oYVAHuiraQ/nZJr/f0AwIABzZ5zYgJ/OhdgwUhoKi2KbQtQwAj2tCmVxXoA0MAIaN95/0RzLhIY2p4isuSRf1uRBAawYVqnQ9yhXF+xKGAoe44xh3I9AFLAnmh7zLEMJKT9AZAKFnY1RwX76lxxYKEsZYlhbD3BooMFXM2SUvi3zhUNBnBc2JMAJh8AecGuXA0Pti2QH+zc1dBgK0AJMDgrMdFgWymw9X815WlkTXN+meFUfq0oksPFSgoXbAOsRVetaSlJZs2VLZN4sOzZl1SwI1iRqbhWT/lCUUeX1tFgS3Rpjev1vLoaFuzAvYxMKa9vCx3sSHl9w7/wrtQXXnRvxSa2CHZaiwA/8qKS+3afaEGwg9JU0T+rDWWIU0b5G3c+U6tzD7U6qfNUjs9XekzfjnE7ne0HiNa2HPl9EA9YsuEX8WtLNrbl1fCpkQ3BDKPJsXACZ+D+5mcOhLR7ZNNPHTpq9cgQk22O35FsGMtQ05Nchycrzw2HsiT9A2HNUMF9pJnvEHjd6p+0AzFzO5HsVzP4LrOwXf/huzBVpc7guvzGdV2Q64Jl2kpquVXZqUsS1+VivuvYfBfYS9Tac5dJec1pM15Lw/Vaibf8lOsijqnLrRyeJnWRW1WSjyfTe2jc1JXT5FhiRRtUjqWx3tEG4gl1uto1aWLEX/Olp66qxBx2N+l05YvRPo6CvrpKbp7aXnQ3DVo59+fyPevUOIimTLdu3bp160K/AJcD0/uWcqvpAAAAAElFTkSuQmCC", Ym = { class: "image-diff-v2" }, Jm = ["src"], Qm = ["src"], ev = { class: "diff-text left" }, tv = { class: "diff-text right" }, iv = /* @__PURE__ */ $({
|
|
10015
10020
|
name: "ImageDiffv2",
|
|
10016
10021
|
__name: "index",
|
|
10017
10022
|
props: {
|
|
@@ -10033,7 +10038,7 @@ const Ea = {
|
|
|
10033
10038
|
}
|
|
10034
10039
|
},
|
|
10035
10040
|
setup(t) {
|
|
10036
|
-
|
|
10041
|
+
Na((d) => ({
|
|
10037
10042
|
v73e75096: e.width,
|
|
10038
10043
|
v21986f52: e.height,
|
|
10039
10044
|
c554f8e6: r.value
|
|
@@ -10109,7 +10114,7 @@ const Ea = {
|
|
|
10109
10114
|
}
|
|
10110
10115
|
},
|
|
10111
10116
|
setup(t) {
|
|
10112
|
-
const e = t, { commonStyle: i } = it(e.config), n = [
|
|
10117
|
+
const e = t, { commonStyle: i } = it(e.config), n = [ha], s = B(), r = B(0), o = F(() => {
|
|
10113
10118
|
const f = e.config.delay;
|
|
10114
10119
|
return {
|
|
10115
10120
|
delay: f || f === 0 ? f : 5e3,
|
|
@@ -10145,8 +10150,8 @@ const Ea = {
|
|
|
10145
10150
|
class: "m-auto w-1200",
|
|
10146
10151
|
initial: _(Z).initial,
|
|
10147
10152
|
transition: _(Z).transition,
|
|
10148
|
-
"
|
|
10149
|
-
|
|
10153
|
+
"in-view": _(Z).whileInView,
|
|
10154
|
+
"in-view-options": _(Z).viewport
|
|
10150
10155
|
}, {
|
|
10151
10156
|
default: ne(() => [
|
|
10152
10157
|
P("div", nv, [
|
|
@@ -10154,7 +10159,7 @@ const Ea = {
|
|
|
10154
10159
|
class: "carousel-content",
|
|
10155
10160
|
style: W({ height: e.config.contentHeight })
|
|
10156
10161
|
}, [
|
|
10157
|
-
N(_(
|
|
10162
|
+
N(_(Pa), {
|
|
10158
10163
|
modules: n,
|
|
10159
10164
|
autoplay: o.value,
|
|
10160
10165
|
"allow-touch-move": !1,
|
|
@@ -10163,27 +10168,27 @@ const Ea = {
|
|
|
10163
10168
|
onSlideChange: l
|
|
10164
10169
|
}, {
|
|
10165
10170
|
default: ne(() => [
|
|
10166
|
-
(M(!0), L(te, null, fe(e.config.items, (h, m) => (M(),
|
|
10171
|
+
(M(!0), L(te, null, fe(e.config.items, (h, m) => (M(), X(_(Ma), { key: m }, {
|
|
10167
10172
|
default: ne(() => [
|
|
10168
10173
|
P("div", {
|
|
10169
10174
|
class: "case-show-content",
|
|
10170
10175
|
style: W({ height: e.config.contentHeight })
|
|
10171
10176
|
}, [
|
|
10172
10177
|
P("div", sv, [
|
|
10173
|
-
h.type === _(Ue).IMAGE && h.src ? (M(),
|
|
10178
|
+
h.type === _(Ue).IMAGE && h.src ? (M(), X(Pe, {
|
|
10174
10179
|
key: 0,
|
|
10175
10180
|
src: h.src
|
|
10176
|
-
}, null, 8, ["src"])) : h.type === _(Ue).VIDEO && h.src ? (M(),
|
|
10181
|
+
}, null, 8, ["src"])) : h.type === _(Ue).VIDEO && h.src ? (M(), X(Oe, {
|
|
10177
10182
|
key: 1,
|
|
10178
10183
|
src: h.src,
|
|
10179
10184
|
controls: !1,
|
|
10180
10185
|
autoplay: !0,
|
|
10181
10186
|
loop: !0
|
|
10182
|
-
}, null, 8, ["src"])) : h.type === _(Ue).DIFF && h.src && h.src2 ? (M(),
|
|
10187
|
+
}, null, 8, ["src"])) : h.type === _(Ue).DIFF && h.src && h.src2 ? (M(), X(Cn, {
|
|
10183
10188
|
key: 2,
|
|
10184
10189
|
medium: [h.src, h.src2],
|
|
10185
10190
|
"diff-text": h.diffText
|
|
10186
|
-
}, null, 8, ["medium", "diff-text"])) :
|
|
10191
|
+
}, null, 8, ["medium", "diff-text"])) : J("", !0)
|
|
10187
10192
|
]),
|
|
10188
10193
|
P("div", rv, q(h.text), 1)
|
|
10189
10194
|
], 4)
|
|
@@ -10219,10 +10224,10 @@ const Ea = {
|
|
|
10219
10224
|
class: Ee(`slick-dot ${r.value === m ? "active" : ""}`),
|
|
10220
10225
|
onClick: pe((g) => c(m), ["stop"])
|
|
10221
10226
|
}, [
|
|
10222
|
-
[_(Ue).DIFF, _(Ue).IMAGE].includes(h.type) ? (M(),
|
|
10227
|
+
[_(Ue).DIFF, _(Ue).IMAGE].includes(h.type) ? (M(), X(Pe, {
|
|
10223
10228
|
key: 0,
|
|
10224
10229
|
src: h.thumbnail || h.src
|
|
10225
|
-
}, null, 8, ["src"])) : (M(),
|
|
10230
|
+
}, null, 8, ["src"])) : (M(), X(Oe, {
|
|
10226
10231
|
key: 1,
|
|
10227
10232
|
src: h.src,
|
|
10228
10233
|
controls: !1,
|
|
@@ -10234,17 +10239,17 @@ const Ea = {
|
|
|
10234
10239
|
])
|
|
10235
10240
|
]),
|
|
10236
10241
|
_: 1
|
|
10237
|
-
}, 8, ["initial", "transition", "
|
|
10242
|
+
}, 8, ["initial", "transition", "in-view", "in-view-options"])
|
|
10238
10243
|
], 4));
|
|
10239
10244
|
}
|
|
10240
|
-
}),
|
|
10245
|
+
}), Aa = /* @__PURE__ */ oe(uv, [["__scopeId", "data-v-168d9a10"]]), hv = Tr, mv = ra, vv = oa, gv = la, yv = ca, wv = Va, bv = Aa, Sv = Pe, Tv = Oe, xv = xn, Ev = Tn, Pv = Mn, Mv = Cn, Vv = Sn, cv = [
|
|
10241
10246
|
Tr,
|
|
10242
10247
|
ra,
|
|
10243
10248
|
oa,
|
|
10244
10249
|
la,
|
|
10245
|
-
|
|
10246
|
-
Ma,
|
|
10250
|
+
ca,
|
|
10247
10251
|
Va,
|
|
10252
|
+
Aa,
|
|
10248
10253
|
Pe,
|
|
10249
10254
|
Oe,
|
|
10250
10255
|
xn,
|
|
@@ -10262,7 +10267,7 @@ function dv(t) {
|
|
|
10262
10267
|
const Av = { install: dv };
|
|
10263
10268
|
export {
|
|
10264
10269
|
Ue as CaseShowType,
|
|
10265
|
-
|
|
10270
|
+
Hf as ComponentType,
|
|
10266
10271
|
Vv as DynamicTable,
|
|
10267
10272
|
hv as FBannerV2,
|
|
10268
10273
|
wv as FCarouselTextMediaV2,
|
|
@@ -10278,8 +10283,8 @@ export {
|
|
|
10278
10283
|
Tv as LazyVideo,
|
|
10279
10284
|
Pv as PreviewMedia,
|
|
10280
10285
|
Xe as TabContentType,
|
|
10281
|
-
|
|
10282
|
-
|
|
10286
|
+
Wf as TextAlignType,
|
|
10287
|
+
Kf as ThemeType,
|
|
10283
10288
|
ji as TitleType,
|
|
10284
10289
|
Av as default,
|
|
10285
10290
|
dv as install
|