@3sc/common-component 0.0.132 → 0.0.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +203 -188
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -22055,15 +22055,15 @@ const Bt = (e) => !!(e && e.getVelocity), M0 = (e, t) => t && typeof e == "numbe
|
|
|
22055
22055
|
fillOpacity: Oi,
|
|
22056
22056
|
strokeOpacity: Oi,
|
|
22057
22057
|
numOctaves: ih
|
|
22058
|
-
},
|
|
22058
|
+
}, e5 = {
|
|
22059
22059
|
x: "translateX",
|
|
22060
22060
|
y: "translateY",
|
|
22061
22061
|
z: "translateZ",
|
|
22062
22062
|
transformPerspective: "perspective"
|
|
22063
|
-
},
|
|
22064
|
-
function
|
|
22063
|
+
}, t5 = Pr.length;
|
|
22064
|
+
function n5(e, t, n) {
|
|
22065
22065
|
let o = "", r = !0;
|
|
22066
|
-
for (let s = 0; s <
|
|
22066
|
+
for (let s = 0; s < t5; s++) {
|
|
22067
22067
|
const a = Pr[s], c = e[a];
|
|
22068
22068
|
if (c === void 0)
|
|
22069
22069
|
continue;
|
|
@@ -22072,7 +22072,7 @@ function nM(e, t, n) {
|
|
|
22072
22072
|
const u = M0(c, Ed[a]);
|
|
22073
22073
|
if (!l) {
|
|
22074
22074
|
r = !1;
|
|
22075
|
-
const d =
|
|
22075
|
+
const d = e5[a] || a;
|
|
22076
22076
|
o += `${d}(${u}) `;
|
|
22077
22077
|
}
|
|
22078
22078
|
n && (t[a] = u);
|
|
@@ -22096,7 +22096,7 @@ function Id(e, t, n) {
|
|
|
22096
22096
|
l.startsWith("origin") ? (c = !0, s[l] = d) : o[l] = d;
|
|
22097
22097
|
}
|
|
22098
22098
|
}
|
|
22099
|
-
if (t.transform || (a || n ? o.transform =
|
|
22099
|
+
if (t.transform || (a || n ? o.transform = n5(t, e.transform, n) : o.transform && (o.transform = "none")), c) {
|
|
22100
22100
|
const { originX: l = "50%", originY: u = "50%", originZ: d = 0 } = s;
|
|
22101
22101
|
o.transformOrigin = `${l} ${u} ${d}`;
|
|
22102
22102
|
}
|
|
@@ -22111,21 +22111,21 @@ function N0(e, t, n) {
|
|
|
22111
22111
|
for (const o in t)
|
|
22112
22112
|
!Bt(t[o]) && !P0(o, n) && (e[o] = t[o]);
|
|
22113
22113
|
}
|
|
22114
|
-
function
|
|
22114
|
+
function o5({ transformTemplate: e }, t) {
|
|
22115
22115
|
return Kt(() => {
|
|
22116
22116
|
const n = Td();
|
|
22117
22117
|
return Id(n, t, e), Object.assign({}, n.vars, n.style);
|
|
22118
22118
|
}, [t]);
|
|
22119
22119
|
}
|
|
22120
|
-
function
|
|
22120
|
+
function r5(e, t) {
|
|
22121
22121
|
const n = e.style || {}, o = {};
|
|
22122
|
-
return N0(o, n, e), Object.assign(o,
|
|
22122
|
+
return N0(o, n, e), Object.assign(o, o5(e, t)), o;
|
|
22123
22123
|
}
|
|
22124
|
-
function
|
|
22125
|
-
const n = {}, o =
|
|
22124
|
+
function i5(e, t) {
|
|
22125
|
+
const n = {}, o = r5(e, t);
|
|
22126
22126
|
return e.drag && e.dragListener !== !1 && (n.draggable = !1, o.userSelect = o.WebkitUserSelect = o.WebkitTouchCallout = "none", o.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = o, n;
|
|
22127
22127
|
}
|
|
22128
|
-
const
|
|
22128
|
+
const s5 = [
|
|
22129
22129
|
"animate",
|
|
22130
22130
|
"circle",
|
|
22131
22131
|
"defs",
|
|
@@ -22165,23 +22165,23 @@ function Sd(e) {
|
|
|
22165
22165
|
/**
|
|
22166
22166
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
22167
22167
|
*/
|
|
22168
|
-
!!(
|
|
22168
|
+
!!(s5.indexOf(e) > -1 || /**
|
|
22169
22169
|
* If it contains a capital letter, it's an SVG component
|
|
22170
22170
|
*/
|
|
22171
22171
|
/[A-Z]/u.test(e))
|
|
22172
22172
|
)
|
|
22173
22173
|
);
|
|
22174
22174
|
}
|
|
22175
|
-
const
|
|
22175
|
+
const a5 = {
|
|
22176
22176
|
offset: "stroke-dashoffset",
|
|
22177
22177
|
array: "stroke-dasharray"
|
|
22178
|
-
},
|
|
22178
|
+
}, l5 = {
|
|
22179
22179
|
offset: "strokeDashoffset",
|
|
22180
22180
|
array: "strokeDasharray"
|
|
22181
22181
|
};
|
|
22182
|
-
function
|
|
22182
|
+
function c5(e, t, n = 1, o = 0, r = !0) {
|
|
22183
22183
|
e.pathLength = 1;
|
|
22184
|
-
const s = r ?
|
|
22184
|
+
const s = r ? a5 : l5;
|
|
22185
22185
|
e[s.offset] = ve.transform(-o);
|
|
22186
22186
|
const a = ve.transform(t), c = ve.transform(n);
|
|
22187
22187
|
e[s.array] = `${a} ${c}`;
|
|
@@ -22189,7 +22189,7 @@ function cM(e, t, n = 1, o = 0, r = !0) {
|
|
|
22189
22189
|
function sh(e, t, n) {
|
|
22190
22190
|
return typeof e == "string" ? e : ve.transform(t + n * e);
|
|
22191
22191
|
}
|
|
22192
|
-
function
|
|
22192
|
+
function u5(e, t, n) {
|
|
22193
22193
|
const o = sh(t, e.x, e.width), r = sh(n, e.y, e.height);
|
|
22194
22194
|
return `${o} ${r}`;
|
|
22195
22195
|
}
|
|
@@ -22211,13 +22211,13 @@ function wd(e, {
|
|
|
22211
22211
|
}
|
|
22212
22212
|
e.attrs = e.style, e.style = {};
|
|
22213
22213
|
const { attrs: f, style: g, dimensions: m } = e;
|
|
22214
|
-
f.transform && (m && (g.transform = f.transform), delete f.transform), m && (r !== void 0 || s !== void 0 || g.transform) && (g.transformOrigin =
|
|
22214
|
+
f.transform && (m && (g.transform = f.transform), delete f.transform), m && (r !== void 0 || s !== void 0 || g.transform) && (g.transformOrigin = u5(m, r !== void 0 ? r : 0.5, s !== void 0 ? s : 0.5)), t !== void 0 && (f.x = t), n !== void 0 && (f.y = n), o !== void 0 && (f.scale = o), a !== void 0 && c5(f, a, c, l, !1);
|
|
22215
22215
|
}
|
|
22216
22216
|
const k0 = () => ({
|
|
22217
22217
|
...Td(),
|
|
22218
22218
|
attrs: {}
|
|
22219
22219
|
}), Rd = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
22220
|
-
function
|
|
22220
|
+
function d5(e, t, n, o) {
|
|
22221
22221
|
const r = Kt(() => {
|
|
22222
22222
|
const s = k0();
|
|
22223
22223
|
return wd(s, t, Rd(o), e.transformTemplate), {
|
|
@@ -22231,9 +22231,9 @@ function dM(e, t, n, o) {
|
|
|
22231
22231
|
}
|
|
22232
22232
|
return r;
|
|
22233
22233
|
}
|
|
22234
|
-
function
|
|
22234
|
+
function p5(e = !1) {
|
|
22235
22235
|
return (n, o, r, { latestValues: s }, a) => {
|
|
22236
|
-
const l = (Sd(n) ?
|
|
22236
|
+
const l = (Sd(n) ? d5 : i5)(o, s, a, n), u = DP(o, typeof n == "string", e), d = n !== hi ? { ...u, ...l, ref: r } : {}, { children: p } = o, f = Kt(() => Bt(p) ? p.get() : p, [p]);
|
|
22237
22237
|
return g1(n, {
|
|
22238
22238
|
...d,
|
|
22239
22239
|
children: f
|
|
@@ -22257,23 +22257,23 @@ function Od(e, t, n, o) {
|
|
|
22257
22257
|
}
|
|
22258
22258
|
return t;
|
|
22259
22259
|
}
|
|
22260
|
-
const Bc = (e) => Array.isArray(e),
|
|
22260
|
+
const Bc = (e) => Array.isArray(e), f5 = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), h5 = (e) => Bc(e) ? e[e.length - 1] || 0 : e;
|
|
22261
22261
|
function ks(e) {
|
|
22262
22262
|
const t = Bt(e) ? e.get() : e;
|
|
22263
|
-
return
|
|
22263
|
+
return f5(t) ? t.toValue() : t;
|
|
22264
22264
|
}
|
|
22265
|
-
function
|
|
22265
|
+
function m5({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n }, o, r, s) {
|
|
22266
22266
|
const a = {
|
|
22267
|
-
latestValues:
|
|
22267
|
+
latestValues: g5(o, r, s, e),
|
|
22268
22268
|
renderState: t()
|
|
22269
22269
|
};
|
|
22270
22270
|
return n && (a.onMount = (c) => n({ props: o, current: c, ...a }), a.onUpdate = (c) => n(c)), a;
|
|
22271
22271
|
}
|
|
22272
22272
|
const D0 = (e) => (t, n) => {
|
|
22273
|
-
const o = qe(Ka), r = qe(Ja), s = () =>
|
|
22273
|
+
const o = qe(Ka), r = qe(Ja), s = () => m5(e, t, o, r);
|
|
22274
22274
|
return n ? s() : pd(s);
|
|
22275
22275
|
};
|
|
22276
|
-
function
|
|
22276
|
+
function g5(e, t, n, o) {
|
|
22277
22277
|
const r = {}, s = o(e, {});
|
|
22278
22278
|
for (const f in s)
|
|
22279
22279
|
r[f] = ks(s[f]);
|
|
@@ -22311,7 +22311,7 @@ function Ad(e, t, n) {
|
|
|
22311
22311
|
(Bt(r[a]) || t.style && Bt(t.style[a]) || P0(a, e) || ((o = n == null ? void 0 : n.getValue(a)) === null || o === void 0 ? void 0 : o.liveStyle) !== void 0) && (s[a] = r[a]);
|
|
22312
22312
|
return s;
|
|
22313
22313
|
}
|
|
22314
|
-
const
|
|
22314
|
+
const b5 = {
|
|
22315
22315
|
useVisualState: D0({
|
|
22316
22316
|
scrapeMotionValuesFromProps: Ad,
|
|
22317
22317
|
createRenderState: Td
|
|
@@ -22373,7 +22373,7 @@ function L0(e, t, n) {
|
|
|
22373
22373
|
}
|
|
22374
22374
|
return o;
|
|
22375
22375
|
}
|
|
22376
|
-
const lh = ["x", "y", "width", "height", "cx", "cy", "r"],
|
|
22376
|
+
const lh = ["x", "y", "width", "height", "cx", "cy", "r"], v5 = {
|
|
22377
22377
|
useVisualState: D0({
|
|
22378
22378
|
scrapeMotionValuesFromProps: L0,
|
|
22379
22379
|
createRenderState: k0,
|
|
@@ -22404,12 +22404,12 @@ const lh = ["x", "y", "width", "height", "cx", "cy", "r"], vM = {
|
|
|
22404
22404
|
}
|
|
22405
22405
|
})
|
|
22406
22406
|
};
|
|
22407
|
-
function
|
|
22407
|
+
function y5(e, t) {
|
|
22408
22408
|
return function(o, { forwardMotionProps: r } = { forwardMotionProps: !1 }) {
|
|
22409
22409
|
const a = {
|
|
22410
|
-
...Sd(o) ?
|
|
22410
|
+
...Sd(o) ? v5 : b5,
|
|
22411
22411
|
preloadedFeatures: e,
|
|
22412
|
-
useRender:
|
|
22412
|
+
useRender: p5(r),
|
|
22413
22413
|
createVisualElement: t,
|
|
22414
22414
|
Component: o
|
|
22415
22415
|
};
|
|
@@ -22420,8 +22420,8 @@ function Ai(e, t, n) {
|
|
|
22420
22420
|
const o = e.getProps();
|
|
22421
22421
|
return Od(o, t, n !== void 0 ? n : o.custom, e);
|
|
22422
22422
|
}
|
|
22423
|
-
const
|
|
22424
|
-
class
|
|
22423
|
+
const x5 = /* @__PURE__ */ md(() => window.ScrollTimeline !== void 0);
|
|
22424
|
+
class C5 {
|
|
22425
22425
|
constructor(t) {
|
|
22426
22426
|
this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
|
|
22427
22427
|
}
|
|
@@ -22440,7 +22440,7 @@ class CM {
|
|
|
22440
22440
|
}
|
|
22441
22441
|
attachTimeline(t, n) {
|
|
22442
22442
|
const o = this.animations.map((r) => {
|
|
22443
|
-
if (
|
|
22443
|
+
if (x5() && r.attachTimeline)
|
|
22444
22444
|
return r.attachTimeline(t);
|
|
22445
22445
|
if (typeof n == "function")
|
|
22446
22446
|
return n(r);
|
|
@@ -22491,7 +22491,7 @@ class CM {
|
|
|
22491
22491
|
this.runAll("complete");
|
|
22492
22492
|
}
|
|
22493
22493
|
}
|
|
22494
|
-
class
|
|
22494
|
+
class E5 extends C5 {
|
|
22495
22495
|
then(t, n) {
|
|
22496
22496
|
return Promise.all(this.animations).then(t).catch(n);
|
|
22497
22497
|
}
|
|
@@ -22514,17 +22514,17 @@ function Md(e) {
|
|
|
22514
22514
|
function ch(e, t) {
|
|
22515
22515
|
e.timeline = t, e.onfinish = null;
|
|
22516
22516
|
}
|
|
22517
|
-
const Nd = (e) => Array.isArray(e) && typeof e[0] == "number",
|
|
22517
|
+
const Nd = (e) => Array.isArray(e) && typeof e[0] == "number", I5 = {
|
|
22518
22518
|
linearEasing: void 0
|
|
22519
22519
|
};
|
|
22520
|
-
function
|
|
22520
|
+
function T5(e, t) {
|
|
22521
22521
|
const n = /* @__PURE__ */ md(e);
|
|
22522
22522
|
return () => {
|
|
22523
22523
|
var o;
|
|
22524
|
-
return (o =
|
|
22524
|
+
return (o = I5[t]) !== null && o !== void 0 ? o : n();
|
|
22525
22525
|
};
|
|
22526
22526
|
}
|
|
22527
|
-
const na = /* @__PURE__ */
|
|
22527
|
+
const na = /* @__PURE__ */ T5(() => {
|
|
22528
22528
|
try {
|
|
22529
22529
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
22530
22530
|
} catch {
|
|
@@ -22563,7 +22563,7 @@ const In = {
|
|
|
22563
22563
|
function z0() {
|
|
22564
22564
|
return In.x || In.y;
|
|
22565
22565
|
}
|
|
22566
|
-
function
|
|
22566
|
+
function S5(e, t, n) {
|
|
22567
22567
|
var o;
|
|
22568
22568
|
if (e instanceof EventTarget)
|
|
22569
22569
|
return [e];
|
|
@@ -22575,7 +22575,7 @@ function SM(e, t, n) {
|
|
|
22575
22575
|
return Array.from(e);
|
|
22576
22576
|
}
|
|
22577
22577
|
function H0(e, t) {
|
|
22578
|
-
const n =
|
|
22578
|
+
const n = S5(e), o = new AbortController(), r = {
|
|
22579
22579
|
passive: !0,
|
|
22580
22580
|
...t,
|
|
22581
22581
|
signal: o.signal
|
|
@@ -22585,7 +22585,7 @@ function H0(e, t) {
|
|
|
22585
22585
|
function uh(e) {
|
|
22586
22586
|
return !(e.pointerType === "touch" || z0());
|
|
22587
22587
|
}
|
|
22588
|
-
function
|
|
22588
|
+
function w5(e, t, n = {}) {
|
|
22589
22589
|
const [o, r, s] = H0(e, n), a = (c) => {
|
|
22590
22590
|
if (!uh(c))
|
|
22591
22591
|
return;
|
|
@@ -22609,15 +22609,15 @@ function li(e, t) {
|
|
|
22609
22609
|
} catch {
|
|
22610
22610
|
}
|
|
22611
22611
|
}
|
|
22612
|
-
const X0 = (e, t) => t ? e === t ? !0 : X0(e, t.parentElement) : !1, kd = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1,
|
|
22612
|
+
const X0 = (e, t) => t ? e === t ? !0 : X0(e, t.parentElement) : !1, kd = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, R5 = /* @__PURE__ */ new Set([
|
|
22613
22613
|
"BUTTON",
|
|
22614
22614
|
"INPUT",
|
|
22615
22615
|
"SELECT",
|
|
22616
22616
|
"TEXTAREA",
|
|
22617
22617
|
"A"
|
|
22618
22618
|
]);
|
|
22619
|
-
function
|
|
22620
|
-
return
|
|
22619
|
+
function O5(e) {
|
|
22620
|
+
return R5.has(e.tagName) || e.tabIndex !== -1;
|
|
22621
22621
|
}
|
|
22622
22622
|
const Kr = /* @__PURE__ */ new WeakSet();
|
|
22623
22623
|
function dh(e) {
|
|
@@ -22628,7 +22628,7 @@ function dh(e) {
|
|
|
22628
22628
|
function $l(e, t) {
|
|
22629
22629
|
e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
|
|
22630
22630
|
}
|
|
22631
|
-
const
|
|
22631
|
+
const A5 = (e, t) => {
|
|
22632
22632
|
const n = e.currentTarget;
|
|
22633
22633
|
if (!n)
|
|
22634
22634
|
return;
|
|
@@ -22646,7 +22646,7 @@ const AM = (e, t) => {
|
|
|
22646
22646
|
function ph(e) {
|
|
22647
22647
|
return kd(e) && !z0();
|
|
22648
22648
|
}
|
|
22649
|
-
function
|
|
22649
|
+
function P5(e, t, n = {}) {
|
|
22650
22650
|
const [o, r, s] = H0(e, n), a = (c) => {
|
|
22651
22651
|
const l = c.currentTarget;
|
|
22652
22652
|
if (!l || !ph(c) || Kr.has(l))
|
|
@@ -22655,7 +22655,7 @@ function PM(e, t, n = {}) {
|
|
|
22655
22655
|
const u = t(l, c), d = (g, m) => {
|
|
22656
22656
|
l.removeEventListener("pointerup", p), l.removeEventListener("pointercancel", f), li(g, "release"), !(!ph(g) || !Kr.has(l)) && (Kr.delete(l), typeof u == "function" && u(g, { success: m }));
|
|
22657
22657
|
}, p = (g) => {
|
|
22658
|
-
(g.isTrusted ?
|
|
22658
|
+
(g.isTrusted ? M5(g, l instanceof Element ? l.getBoundingClientRect() : {
|
|
22659
22659
|
left: 0,
|
|
22660
22660
|
top: 0,
|
|
22661
22661
|
right: window.innerWidth,
|
|
@@ -22669,13 +22669,13 @@ function PM(e, t, n = {}) {
|
|
|
22669
22669
|
return o.forEach((c) => {
|
|
22670
22670
|
c = n.useGlobalTarget ? window : c;
|
|
22671
22671
|
let l = !1;
|
|
22672
|
-
c instanceof HTMLElement && (l = !0, !
|
|
22672
|
+
c instanceof HTMLElement && (l = !0, !O5(c) && c.getAttribute("tabindex") === null && (c.tabIndex = 0)), c.addEventListener("pointerdown", a, r), l && c.addEventListener("focus", (u) => A5(u, r), r);
|
|
22673
22673
|
}), s;
|
|
22674
22674
|
}
|
|
22675
|
-
function
|
|
22675
|
+
function M5(e, t) {
|
|
22676
22676
|
return e.clientX < t.left || e.clientX > t.right || e.clientY < t.top || e.clientY > t.bottom;
|
|
22677
22677
|
}
|
|
22678
|
-
function
|
|
22678
|
+
function N5(e) {
|
|
22679
22679
|
return e === "x" || e === "y" ? In[e] ? null : (In[e] = !0, () => {
|
|
22680
22680
|
In[e] = !1;
|
|
22681
22681
|
}) : In.x || In.y ? null : (In.x = In.y = !0, () => {
|
|
@@ -22692,13 +22692,13 @@ const U0 = /* @__PURE__ */ new Set([
|
|
|
22692
22692
|
...Pr
|
|
22693
22693
|
]);
|
|
22694
22694
|
let Ds;
|
|
22695
|
-
function
|
|
22695
|
+
function k5() {
|
|
22696
22696
|
Ds = void 0;
|
|
22697
22697
|
}
|
|
22698
22698
|
const Fn = {
|
|
22699
22699
|
now: () => (Ds === void 0 && Fn.set(wt.isProcessing || OP.useManualTiming ? wt.timestamp : performance.now()), Ds),
|
|
22700
22700
|
set: (e) => {
|
|
22701
|
-
Ds = e, queueMicrotask(
|
|
22701
|
+
Ds = e, queueMicrotask(k5);
|
|
22702
22702
|
}
|
|
22703
22703
|
};
|
|
22704
22704
|
function Dd(e, t) {
|
|
@@ -22736,8 +22736,8 @@ class jd {
|
|
|
22736
22736
|
function Y0(e, t) {
|
|
22737
22737
|
return t ? e * (1e3 / t) : 0;
|
|
22738
22738
|
}
|
|
22739
|
-
const fh = 30,
|
|
22740
|
-
class
|
|
22739
|
+
const fh = 30, D5 = (e) => !isNaN(parseFloat(e));
|
|
22740
|
+
class B5 {
|
|
22741
22741
|
/**
|
|
22742
22742
|
* @param init - The initiating value
|
|
22743
22743
|
* @param config - Optional configuration options
|
|
@@ -22753,7 +22753,7 @@ class BM {
|
|
|
22753
22753
|
}, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
|
|
22754
22754
|
}
|
|
22755
22755
|
setCurrent(t) {
|
|
22756
|
-
this.current = t, this.updatedAt = Fn.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity =
|
|
22756
|
+
this.current = t, this.updatedAt = Fn.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = D5(this.current));
|
|
22757
22757
|
}
|
|
22758
22758
|
setPrevFrameValue(t = this.current) {
|
|
22759
22759
|
this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -22932,54 +22932,54 @@ class BM {
|
|
|
22932
22932
|
}
|
|
22933
22933
|
}
|
|
22934
22934
|
function Pi(e, t) {
|
|
22935
|
-
return new
|
|
22935
|
+
return new B5(e, t);
|
|
22936
22936
|
}
|
|
22937
|
-
function
|
|
22937
|
+
function j5(e, t, n) {
|
|
22938
22938
|
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Pi(n));
|
|
22939
22939
|
}
|
|
22940
|
-
function
|
|
22940
|
+
function F5(e, t) {
|
|
22941
22941
|
const n = Ai(e, t);
|
|
22942
22942
|
let { transitionEnd: o = {}, transition: r = {}, ...s } = n || {};
|
|
22943
22943
|
s = { ...s, ...o };
|
|
22944
22944
|
for (const a in s) {
|
|
22945
|
-
const c =
|
|
22946
|
-
|
|
22945
|
+
const c = h5(s[a]);
|
|
22946
|
+
j5(e, a, c);
|
|
22947
22947
|
}
|
|
22948
22948
|
}
|
|
22949
|
-
function
|
|
22949
|
+
function V5(e) {
|
|
22950
22950
|
return !!(Bt(e) && e.add);
|
|
22951
22951
|
}
|
|
22952
22952
|
function Vc(e, t) {
|
|
22953
22953
|
const n = e.getValue("willChange");
|
|
22954
|
-
if (
|
|
22954
|
+
if (V5(n))
|
|
22955
22955
|
return n.add(t);
|
|
22956
22956
|
}
|
|
22957
22957
|
function Z0(e) {
|
|
22958
22958
|
return e.props[w0];
|
|
22959
22959
|
}
|
|
22960
|
-
const J0 = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e,
|
|
22961
|
-
function
|
|
22960
|
+
const J0 = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, L5 = 1e-7, $5 = 12;
|
|
22961
|
+
function _5(e, t, n, o, r) {
|
|
22962
22962
|
let s, a, c = 0;
|
|
22963
22963
|
do
|
|
22964
22964
|
a = t + (n - t) / 2, s = J0(a, o, r) - e, s > 0 ? n = a : t = a;
|
|
22965
|
-
while (Math.abs(s) >
|
|
22965
|
+
while (Math.abs(s) > L5 && ++c < $5);
|
|
22966
22966
|
return a;
|
|
22967
22967
|
}
|
|
22968
22968
|
function Yi(e, t, n, o) {
|
|
22969
22969
|
if (e === t && n === o)
|
|
22970
22970
|
return Ut;
|
|
22971
|
-
const r = (s) =>
|
|
22971
|
+
const r = (s) => _5(s, 0, 1, e, n);
|
|
22972
22972
|
return (s) => s === 0 || s === 1 ? s : J0(r(s), t, o);
|
|
22973
22973
|
}
|
|
22974
22974
|
const q0 = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, K0 = (e) => (t) => 1 - e(1 - t), Q0 = /* @__PURE__ */ Yi(0.33, 1.53, 0.69, 0.99), Fd = /* @__PURE__ */ K0(Q0), ev = /* @__PURE__ */ q0(Fd), tv = (e) => (e *= 2) < 1 ? 0.5 * Fd(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Vd = (e) => 1 - Math.sin(Math.acos(e)), nv = K0(Vd), ov = q0(Vd), rv = (e) => /^0[^.\s]+$/u.test(e);
|
|
22975
|
-
function
|
|
22975
|
+
function W5(e) {
|
|
22976
22976
|
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || rv(e) : !0;
|
|
22977
22977
|
}
|
|
22978
22978
|
const ci = (e) => Math.round(e * 1e5) / 1e5, Ld = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
22979
|
-
function
|
|
22979
|
+
function G5(e) {
|
|
22980
22980
|
return e == null;
|
|
22981
22981
|
}
|
|
22982
|
-
const
|
|
22982
|
+
const z5 = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, $d = (e, t) => (n) => !!(typeof n == "string" && z5.test(n) && n.startsWith(e) || t && !G5(n) && Object.prototype.hasOwnProperty.call(n, t)), iv = (e, t, n) => (o) => {
|
|
22983
22983
|
if (typeof o != "string")
|
|
22984
22984
|
return o;
|
|
22985
22985
|
const [r, s, a, c] = o.match(Ld);
|
|
@@ -22989,15 +22989,15 @@ const zM = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
22989
22989
|
[n]: parseFloat(a),
|
|
22990
22990
|
alpha: c !== void 0 ? parseFloat(c) : 1
|
|
22991
22991
|
};
|
|
22992
|
-
},
|
|
22992
|
+
}, H5 = (e) => Yn(0, 255, e), _l = {
|
|
22993
22993
|
...Mr,
|
|
22994
|
-
transform: (e) => Math.round(
|
|
22994
|
+
transform: (e) => Math.round(H5(e))
|
|
22995
22995
|
}, So = {
|
|
22996
22996
|
test: /* @__PURE__ */ $d("rgb", "red"),
|
|
22997
22997
|
parse: /* @__PURE__ */ iv("red", "green", "blue"),
|
|
22998
22998
|
transform: ({ red: e, green: t, blue: n, alpha: o = 1 }) => "rgba(" + _l.transform(e) + ", " + _l.transform(t) + ", " + _l.transform(n) + ", " + ci(Oi.transform(o)) + ")"
|
|
22999
22999
|
};
|
|
23000
|
-
function
|
|
23000
|
+
function X5(e) {
|
|
23001
23001
|
let t = "", n = "", o = "", r = "";
|
|
23002
23002
|
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), o = e.substring(5, 7), r = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), o = e.substring(3, 4), r = e.substring(4, 5), t += t, n += n, o += o, r += r), {
|
|
23003
23003
|
red: parseInt(t, 16),
|
|
@@ -23008,7 +23008,7 @@ function XM(e) {
|
|
|
23008
23008
|
}
|
|
23009
23009
|
const Lc = {
|
|
23010
23010
|
test: /* @__PURE__ */ $d("#"),
|
|
23011
|
-
parse:
|
|
23011
|
+
parse: X5,
|
|
23012
23012
|
transform: So.transform
|
|
23013
23013
|
}, nr = {
|
|
23014
23014
|
test: /* @__PURE__ */ $d("hsl", "hue"),
|
|
@@ -23018,12 +23018,12 @@ const Lc = {
|
|
|
23018
23018
|
test: (e) => So.test(e) || Lc.test(e) || nr.test(e),
|
|
23019
23019
|
parse: (e) => So.test(e) ? So.parse(e) : nr.test(e) ? nr.parse(e) : Lc.parse(e),
|
|
23020
23020
|
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? So.transform(e) : nr.transform(e)
|
|
23021
|
-
},
|
|
23022
|
-
function
|
|
23021
|
+
}, U5 = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
23022
|
+
function Y5(e) {
|
|
23023
23023
|
var t, n;
|
|
23024
|
-
return isNaN(e) && typeof e == "string" && (((t = e.match(Ld)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(
|
|
23024
|
+
return isNaN(e) && typeof e == "string" && (((t = e.match(Ld)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(U5)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
23025
23025
|
}
|
|
23026
|
-
const sv = "number", av = "color",
|
|
23026
|
+
const sv = "number", av = "color", Z5 = "var", J5 = "var(", hh = "${}", q5 = /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;
|
|
23027
23027
|
function Mi(e) {
|
|
23028
23028
|
const t = e.toString(), n = [], o = {
|
|
23029
23029
|
color: [],
|
|
@@ -23031,7 +23031,7 @@ function Mi(e) {
|
|
|
23031
23031
|
var: []
|
|
23032
23032
|
}, r = [];
|
|
23033
23033
|
let s = 0;
|
|
23034
|
-
const c = t.replace(
|
|
23034
|
+
const c = t.replace(q5, (l) => (Nt.test(l) ? (o.color.push(s), r.push(av), n.push(Nt.parse(l))) : l.startsWith(J5) ? (o.var.push(s), r.push(Z5), n.push(l)) : (o.number.push(s), r.push(sv), n.push(parseFloat(l))), ++s, hh)).split(hh);
|
|
23035
23035
|
return { values: n, split: c, indexes: o, types: r };
|
|
23036
23036
|
}
|
|
23037
23037
|
function lv(e) {
|
|
@@ -23049,18 +23049,18 @@ function cv(e) {
|
|
|
23049
23049
|
return s;
|
|
23050
23050
|
};
|
|
23051
23051
|
}
|
|
23052
|
-
const
|
|
23053
|
-
function
|
|
23052
|
+
const K5 = (e) => typeof e == "number" ? 0 : e;
|
|
23053
|
+
function Q5(e) {
|
|
23054
23054
|
const t = lv(e);
|
|
23055
|
-
return cv(e)(t.map(
|
|
23055
|
+
return cv(e)(t.map(K5));
|
|
23056
23056
|
}
|
|
23057
23057
|
const ao = {
|
|
23058
|
-
test:
|
|
23058
|
+
test: Y5,
|
|
23059
23059
|
parse: lv,
|
|
23060
23060
|
createTransformer: cv,
|
|
23061
|
-
getAnimatableNone:
|
|
23062
|
-
},
|
|
23063
|
-
function
|
|
23061
|
+
getAnimatableNone: Q5
|
|
23062
|
+
}, eM = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
23063
|
+
function tM(e) {
|
|
23064
23064
|
const [t, n] = e.slice(0, -1).split("(");
|
|
23065
23065
|
if (t === "drop-shadow")
|
|
23066
23066
|
return e;
|
|
@@ -23068,16 +23068,16 @@ function t5(e) {
|
|
|
23068
23068
|
if (!o)
|
|
23069
23069
|
return e;
|
|
23070
23070
|
const r = n.replace(o, "");
|
|
23071
|
-
let s =
|
|
23071
|
+
let s = eM.has(t) ? 1 : 0;
|
|
23072
23072
|
return o !== n && (s *= 100), t + "(" + s + r + ")";
|
|
23073
23073
|
}
|
|
23074
|
-
const
|
|
23074
|
+
const nM = /\b([a-z-]*)\(.*?\)/gu, $c = {
|
|
23075
23075
|
...ao,
|
|
23076
23076
|
getAnimatableNone: (e) => {
|
|
23077
|
-
const t = e.match(
|
|
23078
|
-
return t ? t.map(
|
|
23077
|
+
const t = e.match(nM);
|
|
23078
|
+
return t ? t.map(tM).join(" ") : e;
|
|
23079
23079
|
}
|
|
23080
|
-
},
|
|
23080
|
+
}, oM = {
|
|
23081
23081
|
...Ed,
|
|
23082
23082
|
// Color props
|
|
23083
23083
|
color: Nt,
|
|
@@ -23093,17 +23093,17 @@ const n5 = /\b([a-z-]*)\(.*?\)/gu, $c = {
|
|
|
23093
23093
|
borderLeftColor: Nt,
|
|
23094
23094
|
filter: $c,
|
|
23095
23095
|
WebkitFilter: $c
|
|
23096
|
-
}, _d = (e) =>
|
|
23096
|
+
}, _d = (e) => oM[e];
|
|
23097
23097
|
function uv(e, t) {
|
|
23098
23098
|
let n = _d(e);
|
|
23099
23099
|
return n !== $c && (n = ao), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
23100
23100
|
}
|
|
23101
|
-
const
|
|
23102
|
-
function
|
|
23101
|
+
const rM = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
23102
|
+
function iM(e, t, n) {
|
|
23103
23103
|
let o = 0, r;
|
|
23104
23104
|
for (; o < e.length && !r; ) {
|
|
23105
23105
|
const s = e[o];
|
|
23106
|
-
typeof s == "string" && !
|
|
23106
|
+
typeof s == "string" && !rM.has(s) && Mi(s).values.length && (r = e[o]), o++;
|
|
23107
23107
|
}
|
|
23108
23108
|
if (r && n)
|
|
23109
23109
|
for (const s of t)
|
|
@@ -23119,10 +23119,10 @@ const mh = (e) => e === Mr || e === ve, gh = (e, t) => parseFloat(e.split(", ")[
|
|
|
23119
23119
|
const s = o.match(/^matrix\((.+)\)$/u);
|
|
23120
23120
|
return s ? gh(s[1], e) : 0;
|
|
23121
23121
|
}
|
|
23122
|
-
},
|
|
23123
|
-
function
|
|
23122
|
+
}, sM = /* @__PURE__ */ new Set(["x", "y", "z"]), aM = Pr.filter((e) => !sM.has(e));
|
|
23123
|
+
function lM(e) {
|
|
23124
23124
|
const t = [];
|
|
23125
|
-
return
|
|
23125
|
+
return aM.forEach((n) => {
|
|
23126
23126
|
const o = e.getValue(n);
|
|
23127
23127
|
o !== void 0 && (t.push([n, o.get()]), o.set(n.startsWith("scale") ? 1 : 0));
|
|
23128
23128
|
}), t;
|
|
@@ -23147,7 +23147,7 @@ function dv() {
|
|
|
23147
23147
|
if (Wc) {
|
|
23148
23148
|
const e = Array.from(Po).filter((o) => o.needsMeasurement), t = new Set(e.map((o) => o.element)), n = /* @__PURE__ */ new Map();
|
|
23149
23149
|
t.forEach((o) => {
|
|
23150
|
-
const r =
|
|
23150
|
+
const r = lM(o);
|
|
23151
23151
|
r.length && (n.set(o, r), o.render());
|
|
23152
23152
|
}), e.forEach((o) => o.measureInitialState()), t.forEach((o) => {
|
|
23153
23153
|
o.render();
|
|
@@ -23167,7 +23167,7 @@ function pv() {
|
|
|
23167
23167
|
e.readKeyframes(), e.needsMeasurement && (Wc = !0);
|
|
23168
23168
|
});
|
|
23169
23169
|
}
|
|
23170
|
-
function
|
|
23170
|
+
function cM() {
|
|
23171
23171
|
pv(), dv();
|
|
23172
23172
|
}
|
|
23173
23173
|
class Wd {
|
|
@@ -23211,21 +23211,21 @@ class Wd {
|
|
|
23211
23211
|
this.isComplete || this.scheduleResolve();
|
|
23212
23212
|
}
|
|
23213
23213
|
}
|
|
23214
|
-
const fv = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),
|
|
23214
|
+
const fv = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), uM = (
|
|
23215
23215
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
23216
23216
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
23217
23217
|
);
|
|
23218
|
-
function
|
|
23219
|
-
const t =
|
|
23218
|
+
function dM(e) {
|
|
23219
|
+
const t = uM.exec(e);
|
|
23220
23220
|
if (!t)
|
|
23221
23221
|
return [,];
|
|
23222
23222
|
const [, n, o, r] = t;
|
|
23223
23223
|
return [`--${n ?? o}`, r];
|
|
23224
23224
|
}
|
|
23225
|
-
const
|
|
23225
|
+
const pM = 4;
|
|
23226
23226
|
function hv(e, t, n = 1) {
|
|
23227
|
-
io(n <=
|
|
23228
|
-
const [o, r] =
|
|
23227
|
+
io(n <= pM, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
|
|
23228
|
+
const [o, r] = dM(e);
|
|
23229
23229
|
if (!o)
|
|
23230
23230
|
return;
|
|
23231
23231
|
const s = window.getComputedStyle(t).getPropertyValue(o);
|
|
@@ -23235,10 +23235,10 @@ function hv(e, t, n = 1) {
|
|
|
23235
23235
|
}
|
|
23236
23236
|
return Cd(r) ? hv(r, t, n + 1) : r;
|
|
23237
23237
|
}
|
|
23238
|
-
const mv = (e) => (t) => t.test(e),
|
|
23238
|
+
const mv = (e) => (t) => t.test(e), fM = {
|
|
23239
23239
|
test: (e) => e === "auto",
|
|
23240
23240
|
parse: (e) => e
|
|
23241
|
-
}, gv = [Mr, ve, jn, oo, qP, JP,
|
|
23241
|
+
}, gv = [Mr, ve, jn, oo, qP, JP, fM], vh = (e) => gv.find(mv(e));
|
|
23242
23242
|
class bv extends Wd {
|
|
23243
23243
|
constructor(t, n, o, r, s) {
|
|
23244
23244
|
super(t, n, o, r, s, !0);
|
|
@@ -23270,8 +23270,8 @@ class bv extends Wd {
|
|
|
23270
23270
|
resolveNoneKeyframes() {
|
|
23271
23271
|
const { unresolvedKeyframes: t, name: n } = this, o = [];
|
|
23272
23272
|
for (let r = 0; r < t.length; r++)
|
|
23273
|
-
|
|
23274
|
-
o.length &&
|
|
23273
|
+
W5(t[r]) && o.push(r);
|
|
23274
|
+
o.length && iM(t, o, n);
|
|
23275
23275
|
}
|
|
23276
23276
|
measureInitialState() {
|
|
23277
23277
|
const { element: t, unresolvedKeyframes: n, name: o } = this;
|
|
@@ -23297,7 +23297,7 @@ class bv extends Wd {
|
|
|
23297
23297
|
const yh = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
|
|
23298
23298
|
(ao.test(e) || e === "0") && // And it contains numbers and/or colors
|
|
23299
23299
|
!e.startsWith("url("));
|
|
23300
|
-
function
|
|
23300
|
+
function hM(e) {
|
|
23301
23301
|
const t = e[0];
|
|
23302
23302
|
if (e.length === 1)
|
|
23303
23303
|
return !0;
|
|
@@ -23305,21 +23305,21 @@ function h5(e) {
|
|
|
23305
23305
|
if (e[n] !== t)
|
|
23306
23306
|
return !0;
|
|
23307
23307
|
}
|
|
23308
|
-
function
|
|
23308
|
+
function mM(e, t, n, o) {
|
|
23309
23309
|
const r = e[0];
|
|
23310
23310
|
if (r === null)
|
|
23311
23311
|
return !1;
|
|
23312
23312
|
if (t === "display" || t === "visibility")
|
|
23313
23313
|
return !0;
|
|
23314
23314
|
const s = e[e.length - 1], a = yh(r, t), c = yh(s, t);
|
|
23315
|
-
return Ar(a === c, `You are trying to animate ${t} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`), !a || !c ? !1 :
|
|
23315
|
+
return Ar(a === c, `You are trying to animate ${t} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`), !a || !c ? !1 : hM(e) || (n === "spring" || Md(n)) && o;
|
|
23316
23316
|
}
|
|
23317
|
-
const
|
|
23317
|
+
const gM = (e) => e !== null;
|
|
23318
23318
|
function tl(e, { repeat: t, repeatType: n = "loop" }, o) {
|
|
23319
|
-
const r = e.filter(
|
|
23319
|
+
const r = e.filter(gM), s = t && n !== "loop" && t % 2 === 1 ? 0 : r.length - 1;
|
|
23320
23320
|
return !s || o === void 0 ? r[s] : o;
|
|
23321
23321
|
}
|
|
23322
|
-
const
|
|
23322
|
+
const bM = 40;
|
|
23323
23323
|
class vv {
|
|
23324
23324
|
constructor({ autoplay: t = !0, delay: n = 0, type: o = "keyframes", repeat: r = 0, repeatDelay: s = 0, repeatType: a = "loop", ...c }) {
|
|
23325
23325
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = Fn.now(), this.options = {
|
|
@@ -23343,7 +23343,7 @@ class vv {
|
|
|
23343
23343
|
* to avoid a sudden jump into the animation.
|
|
23344
23344
|
*/
|
|
23345
23345
|
calcStartTime() {
|
|
23346
|
-
return this.resolvedAt ? this.resolvedAt - this.createdAt >
|
|
23346
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > bM ? this.resolvedAt : this.createdAt : this.createdAt;
|
|
23347
23347
|
}
|
|
23348
23348
|
/**
|
|
23349
23349
|
* A getter for resolved data. If keyframes are not yet resolved, accessing
|
|
@@ -23351,7 +23351,7 @@ class vv {
|
|
|
23351
23351
|
* This is a deoptimisation, but at its worst still batches read/writes.
|
|
23352
23352
|
*/
|
|
23353
23353
|
get resolved() {
|
|
23354
|
-
return !this._resolved && !this.hasAttemptedResolve &&
|
|
23354
|
+
return !this._resolved && !this.hasAttemptedResolve && cM(), this._resolved;
|
|
23355
23355
|
}
|
|
23356
23356
|
/**
|
|
23357
23357
|
* A method to be called when the keyframes resolver completes. This method
|
|
@@ -23361,7 +23361,7 @@ class vv {
|
|
|
23361
23361
|
onKeyframesResolved(t, n) {
|
|
23362
23362
|
this.resolvedAt = Fn.now(), this.hasAttemptedResolve = !0;
|
|
23363
23363
|
const { name: o, type: r, velocity: s, delay: a, onComplete: c, onUpdate: l, isGenerator: u } = this.options;
|
|
23364
|
-
if (!u && !
|
|
23364
|
+
if (!u && !mM(t, o, r, s))
|
|
23365
23365
|
if (a)
|
|
23366
23366
|
this.options.duration = 0;
|
|
23367
23367
|
else {
|
|
@@ -23398,7 +23398,7 @@ const dt = (e, t, n) => e + (t - e) * n;
|
|
|
23398
23398
|
function Wl(e, t, n) {
|
|
23399
23399
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
23400
23400
|
}
|
|
23401
|
-
function
|
|
23401
|
+
function vM({ hue: e, saturation: t, lightness: n, alpha: o }) {
|
|
23402
23402
|
e /= 360, t /= 100, n /= 100;
|
|
23403
23403
|
let r = 0, s = 0, a = 0;
|
|
23404
23404
|
if (!t)
|
|
@@ -23420,13 +23420,13 @@ function oa(e, t) {
|
|
|
23420
23420
|
const Gl = (e, t, n) => {
|
|
23421
23421
|
const o = e * e, r = n * (t * t - o) + o;
|
|
23422
23422
|
return r < 0 ? 0 : Math.sqrt(r);
|
|
23423
|
-
},
|
|
23423
|
+
}, yM = [Lc, So, nr], xM = (e) => yM.find((t) => t.test(e));
|
|
23424
23424
|
function xh(e) {
|
|
23425
|
-
const t =
|
|
23425
|
+
const t = xM(e);
|
|
23426
23426
|
if (Ar(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
|
|
23427
23427
|
return !1;
|
|
23428
23428
|
let n = t.parse(e);
|
|
23429
|
-
return t === nr && (n =
|
|
23429
|
+
return t === nr && (n = vM(n)), n;
|
|
23430
23430
|
}
|
|
23431
23431
|
const Ch = (e, t) => {
|
|
23432
23432
|
const n = xh(e), o = xh(t);
|
|
@@ -23434,15 +23434,15 @@ const Ch = (e, t) => {
|
|
|
23434
23434
|
return oa(e, t);
|
|
23435
23435
|
const r = { ...n };
|
|
23436
23436
|
return (s) => (r.red = Gl(n.red, o.red, s), r.green = Gl(n.green, o.green, s), r.blue = Gl(n.blue, o.blue, s), r.alpha = dt(n.alpha, o.alpha, s), So.transform(r));
|
|
23437
|
-
},
|
|
23438
|
-
function
|
|
23437
|
+
}, CM = (e, t) => (n) => t(e(n)), Zi = (...e) => e.reduce(CM), Gc = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
23438
|
+
function EM(e, t) {
|
|
23439
23439
|
return Gc.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
23440
23440
|
}
|
|
23441
|
-
function
|
|
23441
|
+
function IM(e, t) {
|
|
23442
23442
|
return (n) => dt(e, t, n);
|
|
23443
23443
|
}
|
|
23444
23444
|
function Gd(e) {
|
|
23445
|
-
return typeof e == "number" ?
|
|
23445
|
+
return typeof e == "number" ? IM : typeof e == "string" ? Cd(e) ? oa : Nt.test(e) ? Ch : wM : Array.isArray(e) ? yv : typeof e == "object" ? Nt.test(e) ? Ch : TM : oa;
|
|
23446
23446
|
}
|
|
23447
23447
|
function yv(e, t) {
|
|
23448
23448
|
const n = [...e], o = n.length, r = e.map((s, a) => Gd(s)(s, t[a]));
|
|
@@ -23452,7 +23452,7 @@ function yv(e, t) {
|
|
|
23452
23452
|
return n;
|
|
23453
23453
|
};
|
|
23454
23454
|
}
|
|
23455
|
-
function
|
|
23455
|
+
function TM(e, t) {
|
|
23456
23456
|
const n = { ...e, ...t }, o = {};
|
|
23457
23457
|
for (const r in n)
|
|
23458
23458
|
e[r] !== void 0 && t[r] !== void 0 && (o[r] = Gd(e[r])(e[r], t[r]));
|
|
@@ -23462,7 +23462,7 @@ function T5(e, t) {
|
|
|
23462
23462
|
return n;
|
|
23463
23463
|
};
|
|
23464
23464
|
}
|
|
23465
|
-
function
|
|
23465
|
+
function SM(e, t) {
|
|
23466
23466
|
var n;
|
|
23467
23467
|
const o = [], r = { color: 0, var: 0, number: 0 };
|
|
23468
23468
|
for (let s = 0; s < t.values.length; s++) {
|
|
@@ -23471,16 +23471,16 @@ function S5(e, t) {
|
|
|
23471
23471
|
}
|
|
23472
23472
|
return o;
|
|
23473
23473
|
}
|
|
23474
|
-
const
|
|
23474
|
+
const wM = (e, t) => {
|
|
23475
23475
|
const n = ao.createTransformer(t), o = Mi(e), r = Mi(t);
|
|
23476
|
-
return o.indexes.var.length === r.indexes.var.length && o.indexes.color.length === r.indexes.color.length && o.indexes.number.length >= r.indexes.number.length ? Gc.has(e) && !r.values.length || Gc.has(t) && !o.values.length ?
|
|
23476
|
+
return o.indexes.var.length === r.indexes.var.length && o.indexes.color.length === r.indexes.color.length && o.indexes.number.length >= r.indexes.number.length ? Gc.has(e) && !r.values.length || Gc.has(t) && !o.values.length ? EM(e, t) : Zi(yv(SM(o, r), r.values), n) : (Ar(!0, `Complex values '${e}' and '${t}' 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.`), oa(e, t));
|
|
23477
23477
|
};
|
|
23478
23478
|
function xv(e, t, n) {
|
|
23479
23479
|
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? dt(e, t, n) : Gd(e)(e, t);
|
|
23480
23480
|
}
|
|
23481
|
-
const
|
|
23481
|
+
const RM = 5;
|
|
23482
23482
|
function Cv(e, t, n) {
|
|
23483
|
-
const o = Math.max(t -
|
|
23483
|
+
const o = Math.max(t - RM, 0);
|
|
23484
23484
|
return Y0(n - e(o), t - o);
|
|
23485
23485
|
}
|
|
23486
23486
|
const ut = {
|
|
@@ -23512,7 +23512,7 @@ const ut = {
|
|
|
23512
23512
|
minDamping: 0.05,
|
|
23513
23513
|
maxDamping: 1
|
|
23514
23514
|
}, Eh = 1e-3;
|
|
23515
|
-
function
|
|
23515
|
+
function OM({ duration: e = ut.duration, bounce: t = ut.bounce, velocity: n = ut.velocity, mass: o = ut.mass }) {
|
|
23516
23516
|
let r, s;
|
|
23517
23517
|
Ar(e <= /* @__PURE__ */ Bn(ut.maxDuration), "Spring duration must be 10 seconds or less");
|
|
23518
23518
|
let a = 1 - t;
|
|
@@ -23529,7 +23529,7 @@ function O5({ duration: e = ut.duration, bounce: t = ut.bounce, velocity: n = ut
|
|
|
23529
23529
|
const d = Math.exp(-u * e), p = (n - u) * (e * e);
|
|
23530
23530
|
return d * p;
|
|
23531
23531
|
});
|
|
23532
|
-
const c = 5 / e, l =
|
|
23532
|
+
const c = 5 / e, l = PM(r, s, c);
|
|
23533
23533
|
if (e = /* @__PURE__ */ Bn(e), isNaN(l))
|
|
23534
23534
|
return {
|
|
23535
23535
|
stiffness: ut.stiffness,
|
|
@@ -23545,21 +23545,21 @@ function O5({ duration: e = ut.duration, bounce: t = ut.bounce, velocity: n = ut
|
|
|
23545
23545
|
};
|
|
23546
23546
|
}
|
|
23547
23547
|
}
|
|
23548
|
-
const
|
|
23549
|
-
function
|
|
23548
|
+
const AM = 12;
|
|
23549
|
+
function PM(e, t, n) {
|
|
23550
23550
|
let o = n;
|
|
23551
|
-
for (let r = 1; r <
|
|
23551
|
+
for (let r = 1; r < AM; r++)
|
|
23552
23552
|
o = o - e(o) / t(o);
|
|
23553
23553
|
return o;
|
|
23554
23554
|
}
|
|
23555
23555
|
function zc(e, t) {
|
|
23556
23556
|
return e * Math.sqrt(1 - t * t);
|
|
23557
23557
|
}
|
|
23558
|
-
const
|
|
23558
|
+
const MM = ["duration", "bounce"], NM = ["stiffness", "damping", "mass"];
|
|
23559
23559
|
function Ih(e, t) {
|
|
23560
23560
|
return t.some((n) => e[n] !== void 0);
|
|
23561
23561
|
}
|
|
23562
|
-
function
|
|
23562
|
+
function kM(e) {
|
|
23563
23563
|
let t = {
|
|
23564
23564
|
velocity: ut.velocity,
|
|
23565
23565
|
stiffness: ut.stiffness,
|
|
@@ -23568,7 +23568,7 @@ function k5(e) {
|
|
|
23568
23568
|
isResolvedFromDuration: !1,
|
|
23569
23569
|
...e
|
|
23570
23570
|
};
|
|
23571
|
-
if (!Ih(e,
|
|
23571
|
+
if (!Ih(e, NM) && Ih(e, MM))
|
|
23572
23572
|
if (e.visualDuration) {
|
|
23573
23573
|
const n = e.visualDuration, o = 2 * Math.PI / (n * 1.2), r = o * o, s = 2 * Yn(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(r);
|
|
23574
23574
|
t = {
|
|
@@ -23578,7 +23578,7 @@ function k5(e) {
|
|
|
23578
23578
|
damping: s
|
|
23579
23579
|
};
|
|
23580
23580
|
} else {
|
|
23581
|
-
const n =
|
|
23581
|
+
const n = OM(e);
|
|
23582
23582
|
t = {
|
|
23583
23583
|
...t,
|
|
23584
23584
|
...n,
|
|
@@ -23594,7 +23594,7 @@ function Ev(e = ut.visualDuration, t = ut.bounce) {
|
|
|
23594
23594
|
bounce: t
|
|
23595
23595
|
} : e;
|
|
23596
23596
|
let { restSpeed: o, restDelta: r } = n;
|
|
23597
|
-
const s = n.keyframes[0], a = n.keyframes[n.keyframes.length - 1], c = { done: !1, value: s }, { stiffness: l, damping: u, mass: d, duration: p, velocity: f, isResolvedFromDuration: g } =
|
|
23597
|
+
const s = n.keyframes[0], a = n.keyframes[n.keyframes.length - 1], c = { done: !1, value: s }, { stiffness: l, damping: u, mass: d, duration: p, velocity: f, isResolvedFromDuration: g } = kM({
|
|
23598
23598
|
...n,
|
|
23599
23599
|
velocity: -/* @__PURE__ */ Gn(n.velocity || 0)
|
|
23600
23600
|
}), m = f || 0, h = u / (2 * Math.sqrt(l * d)), b = a - s, y = /* @__PURE__ */ Gn(Math.sqrt(l / d)), T = Math.abs(b) < 5;
|
|
@@ -23668,11 +23668,11 @@ function Th({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: o = 3
|
|
|
23668
23668
|
}
|
|
23669
23669
|
};
|
|
23670
23670
|
}
|
|
23671
|
-
const
|
|
23671
|
+
const DM = /* @__PURE__ */ Yi(0.42, 0, 1, 1), BM = /* @__PURE__ */ Yi(0, 0, 0.58, 1), Iv = /* @__PURE__ */ Yi(0.42, 0, 0.58, 1), jM = (e) => Array.isArray(e) && typeof e[0] != "number", Sh = {
|
|
23672
23672
|
linear: Ut,
|
|
23673
|
-
easeIn:
|
|
23673
|
+
easeIn: DM,
|
|
23674
23674
|
easeInOut: Iv,
|
|
23675
|
-
easeOut:
|
|
23675
|
+
easeOut: BM,
|
|
23676
23676
|
circIn: Vd,
|
|
23677
23677
|
circInOut: ov,
|
|
23678
23678
|
circOut: nv,
|
|
@@ -23689,7 +23689,7 @@ const D5 = /* @__PURE__ */ Yi(0.42, 0, 1, 1), B5 = /* @__PURE__ */ Yi(0, 0, 0.58
|
|
|
23689
23689
|
return io(Sh[e] !== void 0, `Invalid easing type '${e}'`), Sh[e];
|
|
23690
23690
|
return e;
|
|
23691
23691
|
};
|
|
23692
|
-
function
|
|
23692
|
+
function FM(e, t, n) {
|
|
23693
23693
|
const o = [], r = n || xv, s = e.length - 1;
|
|
23694
23694
|
for (let a = 0; a < s; a++) {
|
|
23695
23695
|
let c = r(e[a], e[a + 1]);
|
|
@@ -23701,7 +23701,7 @@ function F5(e, t, n) {
|
|
|
23701
23701
|
}
|
|
23702
23702
|
return o;
|
|
23703
23703
|
}
|
|
23704
|
-
function
|
|
23704
|
+
function VM(e, t, { clamp: n = !0, ease: o, mixer: r } = {}) {
|
|
23705
23705
|
const s = e.length;
|
|
23706
23706
|
if (io(s === t.length, "Both input and output ranges must be the same length"), s === 1)
|
|
23707
23707
|
return () => t[0];
|
|
@@ -23709,7 +23709,7 @@ function V5(e, t, { clamp: n = !0, ease: o, mixer: r } = {}) {
|
|
|
23709
23709
|
return () => t[1];
|
|
23710
23710
|
const a = e[0] === e[1];
|
|
23711
23711
|
e[0] > e[s - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
23712
|
-
const c =
|
|
23712
|
+
const c = FM(t, o, r), l = c.length, u = (d) => {
|
|
23713
23713
|
if (a && d < e[0])
|
|
23714
23714
|
return t[0];
|
|
23715
23715
|
let p = 0;
|
|
@@ -23721,41 +23721,41 @@ function V5(e, t, { clamp: n = !0, ease: o, mixer: r } = {}) {
|
|
|
23721
23721
|
};
|
|
23722
23722
|
return n ? (d) => u(Yn(e[0], e[s - 1], d)) : u;
|
|
23723
23723
|
}
|
|
23724
|
-
function
|
|
23724
|
+
function LM(e, t) {
|
|
23725
23725
|
const n = e[e.length - 1];
|
|
23726
23726
|
for (let o = 1; o <= t; o++) {
|
|
23727
23727
|
const r = /* @__PURE__ */ br(0, t, o);
|
|
23728
23728
|
e.push(dt(n, 1, r));
|
|
23729
23729
|
}
|
|
23730
23730
|
}
|
|
23731
|
-
function $
|
|
23731
|
+
function $M(e) {
|
|
23732
23732
|
const t = [0];
|
|
23733
|
-
return
|
|
23733
|
+
return LM(t, e.length - 1), t;
|
|
23734
23734
|
}
|
|
23735
|
-
function
|
|
23735
|
+
function _M(e, t) {
|
|
23736
23736
|
return e.map((n) => n * t);
|
|
23737
23737
|
}
|
|
23738
|
-
function
|
|
23738
|
+
function WM(e, t) {
|
|
23739
23739
|
return e.map(() => t || Iv).splice(0, e.length - 1);
|
|
23740
23740
|
}
|
|
23741
23741
|
function ui({ duration: e = 300, keyframes: t, times: n, ease: o = "easeInOut" }) {
|
|
23742
|
-
const r =
|
|
23742
|
+
const r = jM(o) ? o.map(wh) : wh(o), s = {
|
|
23743
23743
|
done: !1,
|
|
23744
23744
|
value: t[0]
|
|
23745
|
-
}, a =
|
|
23745
|
+
}, a = _M(
|
|
23746
23746
|
// Only use the provided offsets if they're the correct length
|
|
23747
23747
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
23748
|
-
n && n.length === t.length ? n : $
|
|
23748
|
+
n && n.length === t.length ? n : $M(t),
|
|
23749
23749
|
e
|
|
23750
|
-
), c =
|
|
23751
|
-
ease: Array.isArray(r) ? r :
|
|
23750
|
+
), c = VM(a, t, {
|
|
23751
|
+
ease: Array.isArray(r) ? r : WM(t, r)
|
|
23752
23752
|
});
|
|
23753
23753
|
return {
|
|
23754
23754
|
calculatedDuration: e,
|
|
23755
23755
|
next: (l) => (s.value = c(l), s.done = l >= e, s)
|
|
23756
23756
|
};
|
|
23757
23757
|
}
|
|
23758
|
-
const
|
|
23758
|
+
const GM = (e) => {
|
|
23759
23759
|
const t = ({ timestamp: n }) => e(n);
|
|
23760
23760
|
return {
|
|
23761
23761
|
start: () => ot.update(t, !0),
|
|
@@ -23766,13 +23766,13 @@ const G5 = (e) => {
|
|
|
23766
23766
|
*/
|
|
23767
23767
|
now: () => wt.isProcessing ? wt.timestamp : Fn.now()
|
|
23768
23768
|
};
|
|
23769
|
-
},
|
|
23769
|
+
}, zM = {
|
|
23770
23770
|
decay: Th,
|
|
23771
23771
|
inertia: Th,
|
|
23772
23772
|
tween: ui,
|
|
23773
23773
|
keyframes: ui,
|
|
23774
23774
|
spring: Ev
|
|
23775
|
-
},
|
|
23775
|
+
}, HM = (e) => e / 100;
|
|
23776
23776
|
class zd extends vv {
|
|
23777
23777
|
constructor(t) {
|
|
23778
23778
|
super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
@@ -23789,9 +23789,9 @@ class zd extends vv {
|
|
|
23789
23789
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
23790
23790
|
}
|
|
23791
23791
|
initPlayback(t) {
|
|
23792
|
-
const { type: n = "keyframes", repeat: o = 0, repeatDelay: r = 0, repeatType: s, velocity: a = 0 } = this.options, c = Md(n) ? n :
|
|
23792
|
+
const { type: n = "keyframes", repeat: o = 0, repeatDelay: r = 0, repeatType: s, velocity: a = 0 } = this.options, c = Md(n) ? n : zM[n] || ui;
|
|
23793
23793
|
let l, u;
|
|
23794
|
-
process.env.NODE_ENV !== "production" && c !== ui && io(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), c !== ui && typeof t[0] != "number" && (l = Zi(
|
|
23794
|
+
process.env.NODE_ENV !== "production" && c !== ui && io(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), c !== ui && typeof t[0] != "number" && (l = Zi(HM, xv(t[0], t[1])), t = [0, 100]);
|
|
23795
23795
|
const d = c({ ...this.options, keyframes: t });
|
|
23796
23796
|
s === "mirror" && (u = c({
|
|
23797
23797
|
...this.options,
|
|
@@ -23862,7 +23862,7 @@ class zd extends vv {
|
|
|
23862
23862
|
}
|
|
23863
23863
|
if (this.isStopped)
|
|
23864
23864
|
return;
|
|
23865
|
-
const { driver: t =
|
|
23865
|
+
const { driver: t = GM, onPlay: n, startTime: o } = this.options;
|
|
23866
23866
|
this.driver || (this.driver = t((s) => this.tick(s))), n && n();
|
|
23867
23867
|
const r = this.driver.now();
|
|
23868
23868
|
this.holdTime !== null ? this.startTime = r - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = r) : this.startTime = o ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
|
@@ -23896,7 +23896,7 @@ class zd extends vv {
|
|
|
23896
23896
|
return this.startTime = 0, this.tick(t, !0);
|
|
23897
23897
|
}
|
|
23898
23898
|
}
|
|
23899
|
-
const
|
|
23899
|
+
const XM = /* @__PURE__ */ new Set([
|
|
23900
23900
|
"opacity",
|
|
23901
23901
|
"clipPath",
|
|
23902
23902
|
"filter",
|
|
@@ -23905,7 +23905,7 @@ const X5 = /* @__PURE__ */ new Set([
|
|
|
23905
23905
|
// or until we implement support for linear() easing.
|
|
23906
23906
|
// "background-color"
|
|
23907
23907
|
]);
|
|
23908
|
-
function
|
|
23908
|
+
function UM(e, t, n, { delay: o = 0, duration: r = 300, repeat: s = 0, repeatType: a = "loop", ease: c = "easeInOut", times: l } = {}) {
|
|
23909
23909
|
const u = { [t]: n };
|
|
23910
23910
|
l && (u.offset = l);
|
|
23911
23911
|
const d = G0(c, r);
|
|
@@ -23918,11 +23918,11 @@ function U5(e, t, n, { delay: o = 0, duration: r = 300, repeat: s = 0, repeatTyp
|
|
|
23918
23918
|
direction: a === "reverse" ? "alternate" : "normal"
|
|
23919
23919
|
});
|
|
23920
23920
|
}
|
|
23921
|
-
const
|
|
23922
|
-
function
|
|
23921
|
+
const YM = /* @__PURE__ */ md(() => Object.hasOwnProperty.call(Element.prototype, "animate")), ra = 10, ZM = 2e4;
|
|
23922
|
+
function JM(e) {
|
|
23923
23923
|
return Md(e.type) || e.type === "spring" || !W0(e.ease);
|
|
23924
23924
|
}
|
|
23925
|
-
function
|
|
23925
|
+
function qM(e, t) {
|
|
23926
23926
|
const n = new zd({
|
|
23927
23927
|
...t,
|
|
23928
23928
|
keyframes: e,
|
|
@@ -23933,7 +23933,7 @@ function q5(e, t) {
|
|
|
23933
23933
|
let o = { done: !1, value: e[0] };
|
|
23934
23934
|
const r = [];
|
|
23935
23935
|
let s = 0;
|
|
23936
|
-
for (; !o.done && s <
|
|
23936
|
+
for (; !o.done && s < ZM; )
|
|
23937
23937
|
o = n.sample(s), r.push(o.value), s += ra;
|
|
23938
23938
|
return {
|
|
23939
23939
|
times: void 0,
|
|
@@ -23947,7 +23947,7 @@ const Tv = {
|
|
|
23947
23947
|
backInOut: ev,
|
|
23948
23948
|
circInOut: ov
|
|
23949
23949
|
};
|
|
23950
|
-
function
|
|
23950
|
+
function KM(e) {
|
|
23951
23951
|
return e in Tv;
|
|
23952
23952
|
}
|
|
23953
23953
|
class Rh extends vv {
|
|
@@ -23960,11 +23960,11 @@ class Rh extends vv {
|
|
|
23960
23960
|
let { duration: o = 300, times: r, ease: s, type: a, motionValue: c, name: l, startTime: u } = this.options;
|
|
23961
23961
|
if (!c.owner || !c.owner.current)
|
|
23962
23962
|
return !1;
|
|
23963
|
-
if (typeof s == "string" && na() &&
|
|
23964
|
-
const { onComplete: p, onUpdate: f, motionValue: g, element: m, ...h } = this.options, b =
|
|
23963
|
+
if (typeof s == "string" && na() && KM(s) && (s = Tv[s]), JM(this.options)) {
|
|
23964
|
+
const { onComplete: p, onUpdate: f, motionValue: g, element: m, ...h } = this.options, b = qM(t, h);
|
|
23965
23965
|
t = b.keyframes, t.length === 1 && (t[1] = t[0]), o = b.duration, r = b.times, s = b.ease, a = "keyframes";
|
|
23966
23966
|
}
|
|
23967
|
-
const d =
|
|
23967
|
+
const d = UM(c.owner.current, l, t, { ...this.options, duration: o, times: r, ease: s });
|
|
23968
23968
|
return d.startTime = u ?? this.calcStartTime(), this.pendingTimeline ? (ch(d, this.pendingTimeline), this.pendingTimeline = void 0) : d.onfinish = () => {
|
|
23969
23969
|
const { onComplete: p } = this.options;
|
|
23970
23970
|
c.set(tl(t, this.options, n)), p && p(), this.cancel(), this.resolveFinishedPromise();
|
|
@@ -24096,14 +24096,14 @@ class Rh extends vv {
|
|
|
24096
24096
|
if (!n || !n.owner || !(n.owner.current instanceof HTMLElement))
|
|
24097
24097
|
return !1;
|
|
24098
24098
|
const { onUpdate: l, transformTemplate: u } = n.owner.getProps();
|
|
24099
|
-
return
|
|
24099
|
+
return YM() && o && XM.has(o) && /**
|
|
24100
24100
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
24101
24101
|
* no way to read the value from WAAPI every frame.
|
|
24102
24102
|
*/
|
|
24103
24103
|
!l && !u && !r && s !== "mirror" && a !== 0 && c !== "inertia";
|
|
24104
24104
|
}
|
|
24105
24105
|
}
|
|
24106
|
-
const
|
|
24106
|
+
const QM = {
|
|
24107
24107
|
type: "spring",
|
|
24108
24108
|
stiffness: 500,
|
|
24109
24109
|
damping: 25,
|
|
@@ -24120,7 +24120,7 @@ const Q5 = {
|
|
|
24120
24120
|
type: "keyframes",
|
|
24121
24121
|
ease: [0.25, 0.1, 0.35, 1],
|
|
24122
24122
|
duration: 0.3
|
|
24123
|
-
}, oN = (e, { keyframes: t }) => t.length > 2 ? tN : _o.has(e) ? e.startsWith("scale") ? eN(t[1]) :
|
|
24123
|
+
}, oN = (e, { keyframes: t }) => t.length > 2 ? tN : _o.has(e) ? e.startsWith("scale") ? eN(t[1]) : QM : nN;
|
|
24124
24124
|
function rN({ when: e, delay: t, delayChildren: n, staggerChildren: o, staggerDirection: r, repeat: s, repeatType: a, repeatDelay: c, from: l, elapsed: u, ...d }) {
|
|
24125
24125
|
return !!Object.keys(d).length;
|
|
24126
24126
|
}
|
|
@@ -24154,7 +24154,7 @@ const Hd = (e, t, n, o = {}, r, s) => (a) => {
|
|
|
24154
24154
|
if (f !== void 0)
|
|
24155
24155
|
return ot.update(() => {
|
|
24156
24156
|
d.onUpdate(f), d.onComplete();
|
|
24157
|
-
}), new
|
|
24157
|
+
}), new E5([]);
|
|
24158
24158
|
}
|
|
24159
24159
|
return !s && Rh.supports(d) ? new Rh(d) : new zd(d);
|
|
24160
24160
|
};
|
|
@@ -24189,7 +24189,7 @@ function Sv(e, t, { delay: n = 0, transitionOverride: o, type: r } = {}) {
|
|
|
24189
24189
|
}
|
|
24190
24190
|
return c && Promise.all(u).then(() => {
|
|
24191
24191
|
ot.update(() => {
|
|
24192
|
-
c &&
|
|
24192
|
+
c && F5(e, c);
|
|
24193
24193
|
});
|
|
24194
24194
|
}), u;
|
|
24195
24195
|
}
|
|
@@ -24735,7 +24735,7 @@ class $N {
|
|
|
24735
24735
|
p ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Ji(d).point);
|
|
24736
24736
|
}, s = (d, p) => {
|
|
24737
24737
|
const { drag: f, dragPropagation: g, onDragStart: m } = this.getProps();
|
|
24738
|
-
if (f && !g && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
|
24738
|
+
if (f && !g && (this.openDragLock && this.openDragLock(), this.openDragLock = N5(f), !this.openDragLock))
|
|
24739
24739
|
return;
|
|
24740
24740
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), un((b) => {
|
|
24741
24741
|
let y = this.getAxisMotionValue(b).get() || 0;
|
|
@@ -25878,7 +25878,7 @@ function mm(e, t, n) {
|
|
|
25878
25878
|
class O4 extends ho {
|
|
25879
25879
|
mount() {
|
|
25880
25880
|
const { current: t } = this.node;
|
|
25881
|
-
t && (this.unmount =
|
|
25881
|
+
t && (this.unmount = w5(t, (n, o) => (mm(this.node, o, "Start"), (r) => mm(this.node, r, "End"))));
|
|
25882
25882
|
}
|
|
25883
25883
|
unmount() {
|
|
25884
25884
|
}
|
|
@@ -25916,7 +25916,7 @@ function gm(e, t, n) {
|
|
|
25916
25916
|
class P4 extends ho {
|
|
25917
25917
|
mount() {
|
|
25918
25918
|
const { current: t } = this.node;
|
|
25919
|
-
t && (this.unmount =
|
|
25919
|
+
t && (this.unmount = P5(t, (n, o) => (gm(this.node, o, "Start"), (r, { success: s }) => gm(this.node, r, s ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
25920
25920
|
}
|
|
25921
25921
|
unmount() {
|
|
25922
25922
|
}
|
|
@@ -26311,7 +26311,7 @@ class Y4 extends Xv {
|
|
|
26311
26311
|
}
|
|
26312
26312
|
const Z4 = (e, t) => Sd(e) ? new Y4(t) : new U4(t, {
|
|
26313
26313
|
allowProjection: e !== hi
|
|
26314
|
-
}), J4 = /* @__PURE__ */
|
|
26314
|
+
}), J4 = /* @__PURE__ */ y5({
|
|
26315
26315
|
...vN,
|
|
26316
26316
|
...V4,
|
|
26317
26317
|
...R4,
|
|
@@ -29318,10 +29318,25 @@ function Ry({ sort: e, data: t, pagination: n, columns: o, nested: r, baseUrl: s
|
|
|
29318
29318
|
F
|
|
29319
29319
|
),
|
|
29320
29320
|
/* @__PURE__ */ v.jsx(
|
|
29321
|
-
|
|
29321
|
+
ce,
|
|
29322
29322
|
{
|
|
29323
|
+
component: Xd,
|
|
29323
29324
|
id: F,
|
|
29324
|
-
|
|
29325
|
+
sx: {
|
|
29326
|
+
padding: 0,
|
|
29327
|
+
position: "relative",
|
|
29328
|
+
borderBottom: `0.1rem solid ${c.palette.primary.notifyBorderColor}`,
|
|
29329
|
+
"&::after": m ? {
|
|
29330
|
+
content: '""',
|
|
29331
|
+
position: "absolute",
|
|
29332
|
+
left: "50%",
|
|
29333
|
+
top: "50%",
|
|
29334
|
+
transform: "translate(0%, -50%)",
|
|
29335
|
+
width: "0.2rem",
|
|
29336
|
+
height: "50%",
|
|
29337
|
+
background: c.palette.primary.notifyBorderColor
|
|
29338
|
+
} : {}
|
|
29339
|
+
},
|
|
29325
29340
|
disabled: !m
|
|
29326
29341
|
}
|
|
29327
29342
|
)
|