uilint-react 0.2.94 → 0.2.96
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/devtools.js +50 -50
- package/dist/devtools.js.map +1 -1
- package/dist/index.js +467 -460
- package/dist/index.js.map +1 -1
- package/dist/plugins/semantic/panels/DuplicatesInspectorPanel.d.ts.map +1 -1
- package/dist/ui/components/Inspector/InspectorSidebar.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as W from "react";
|
|
2
|
-
import
|
|
2
|
+
import nt, { forwardRef as ji, createElement as fn, createContext as ee, useRef as Q, useLayoutEffect as ue, useEffect as rt, useId as Li, useContext as dt, useInsertionEffect as Di, useMemo as X, useCallback as F, Children as Hl, isValidElement as Gl, useState as at, Fragment as ys, Component as Kl, useReducer as Yl } from "react";
|
|
3
3
|
import { createPortal as pe } from "react-dom";
|
|
4
4
|
import { i as h0, a as f0, b as p0, s as g0 } from "./environment-DVxa60C6.js";
|
|
5
5
|
import { createEmptyStyleGuide as v0, createStyleSummary as b0, extractStylesFromDOM as y0, generateStyleGuideFromStyles as x0, mergeStyleGuides as w0, parseStyleGuide as k0, serializeStyles as S0 } from "uilint-core";
|
|
@@ -112,7 +112,7 @@ function Xl() {
|
|
|
112
112
|
return Error("react-stack-top-frame");
|
|
113
113
|
}
|
|
114
114
|
function s(g) {
|
|
115
|
-
if (
|
|
115
|
+
if (ct.call(g, "key")) {
|
|
116
116
|
var C = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
117
117
|
if (C && C.isReactWarning) return !1;
|
|
118
118
|
}
|
|
@@ -136,7 +136,7 @@ function Xl() {
|
|
|
136
136
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
137
137
|
)), g = this.props.ref, g !== void 0 ? g : null;
|
|
138
138
|
}
|
|
139
|
-
function u(g, C, j, L,
|
|
139
|
+
function u(g, C, j, L, et, Dt) {
|
|
140
140
|
var B = j.ref;
|
|
141
141
|
return g = {
|
|
142
142
|
$$typeof: m,
|
|
@@ -161,7 +161,7 @@ function Xl() {
|
|
|
161
161
|
configurable: !1,
|
|
162
162
|
enumerable: !1,
|
|
163
163
|
writable: !0,
|
|
164
|
-
value:
|
|
164
|
+
value: et
|
|
165
165
|
}), Object.defineProperty(g, "_debugTask", {
|
|
166
166
|
configurable: !1,
|
|
167
167
|
enumerable: !1,
|
|
@@ -169,7 +169,7 @@ function Xl() {
|
|
|
169
169
|
value: Dt
|
|
170
170
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
171
171
|
}
|
|
172
|
-
function c(g, C, j, L,
|
|
172
|
+
function c(g, C, j, L, et, Dt) {
|
|
173
173
|
var B = C.children;
|
|
174
174
|
if (B !== void 0)
|
|
175
175
|
if (L)
|
|
@@ -182,12 +182,12 @@ function Xl() {
|
|
|
182
182
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
183
183
|
);
|
|
184
184
|
else d(B);
|
|
185
|
-
if (
|
|
185
|
+
if (ct.call(C, "key")) {
|
|
186
186
|
B = t(g);
|
|
187
|
-
var At = Object.keys(C).filter(function(
|
|
188
|
-
return
|
|
187
|
+
var At = Object.keys(C).filter(function(ne) {
|
|
188
|
+
return ne !== "key";
|
|
189
189
|
});
|
|
190
|
-
L = 0 < At.length ? "{key: someKey, " + At.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
190
|
+
L = 0 < At.length ? "{key: someKey, " + At.join(": ..., ") + ": ...}" : "{key: someKey}", lt[B + L] || (At = 0 < At.length ? "{" + At.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
191
191
|
`A props object containing a "key" prop is being spread into JSX:
|
|
192
192
|
let props = %s;
|
|
193
193
|
<%s {...props} />
|
|
@@ -198,7 +198,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
198
198
|
B,
|
|
199
199
|
At,
|
|
200
200
|
B
|
|
201
|
-
),
|
|
201
|
+
), lt[B + L] = !0);
|
|
202
202
|
}
|
|
203
203
|
if (B = null, j !== void 0 && (n(j), B = "" + j), s(C) && (n(C.key), B = "" + C.key), "key" in C) {
|
|
204
204
|
j = {};
|
|
@@ -213,7 +213,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
213
213
|
B,
|
|
214
214
|
j,
|
|
215
215
|
r(),
|
|
216
|
-
|
|
216
|
+
et,
|
|
217
217
|
Dt
|
|
218
218
|
);
|
|
219
219
|
}
|
|
@@ -223,7 +223,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
223
223
|
function f(g) {
|
|
224
224
|
return typeof g == "object" && g !== null && g.$$typeof === m;
|
|
225
225
|
}
|
|
226
|
-
var p =
|
|
226
|
+
var p = nt, m = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), A = /* @__PURE__ */ Symbol.for("react.context"), P = /* @__PURE__ */ Symbol.for("react.forward_ref"), V = /* @__PURE__ */ Symbol.for("react.suspense"), _ = /* @__PURE__ */ Symbol.for("react.suspense_list"), w = /* @__PURE__ */ Symbol.for("react.memo"), N = /* @__PURE__ */ Symbol.for("react.lazy"), G = /* @__PURE__ */ Symbol.for("react.activity"), q = /* @__PURE__ */ Symbol.for("react.client.reference"), H = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ct = Object.prototype.hasOwnProperty, y = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
227
227
|
return null;
|
|
228
228
|
};
|
|
229
229
|
p = {
|
|
@@ -234,7 +234,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
234
234
|
var O, z = {}, T = p.react_stack_bottom_frame.bind(
|
|
235
235
|
p,
|
|
236
236
|
o
|
|
237
|
-
)(),
|
|
237
|
+
)(), tt = D(i(o)), lt = {};
|
|
238
238
|
ke.Fragment = b, ke.jsx = function(g, C, j) {
|
|
239
239
|
var L = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
240
240
|
return c(
|
|
@@ -243,7 +243,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
243
243
|
j,
|
|
244
244
|
!1,
|
|
245
245
|
L ? Error("react-stack-top-frame") : T,
|
|
246
|
-
L ? D(i(g)) :
|
|
246
|
+
L ? D(i(g)) : tt
|
|
247
247
|
);
|
|
248
248
|
}, ke.jsxs = function(g, C, j) {
|
|
249
249
|
var L = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
@@ -253,7 +253,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
253
253
|
j,
|
|
254
254
|
!0,
|
|
255
255
|
L ? Error("react-stack-top-frame") : T,
|
|
256
|
-
L ? D(i(g)) :
|
|
256
|
+
L ? D(i(g)) : tt
|
|
257
257
|
);
|
|
258
258
|
};
|
|
259
259
|
})()), ke;
|
|
@@ -519,12 +519,12 @@ const ec = (t) => (e, n) => ({
|
|
|
519
519
|
return a;
|
|
520
520
|
}, nc = ((t) => t ? Pr(t) : Pr), ic = (t) => t;
|
|
521
521
|
function rc(t, e = ic) {
|
|
522
|
-
const n =
|
|
522
|
+
const n = nt.useSyncExternalStore(
|
|
523
523
|
t.subscribe,
|
|
524
|
-
|
|
525
|
-
|
|
524
|
+
nt.useCallback(() => e(t.getState()), [t, e]),
|
|
525
|
+
nt.useCallback(() => e(t.getInitialState()), [t, e])
|
|
526
526
|
);
|
|
527
|
-
return
|
|
527
|
+
return nt.useDebugValue(n), n;
|
|
528
528
|
}
|
|
529
529
|
const Tr = (t) => {
|
|
530
530
|
const e = nc(t), n = (i) => rc(e, i);
|
|
@@ -1213,7 +1213,7 @@ function vc(t) {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
if ((i.metaKey || i.ctrlKey) && i.shiftKey && i.key === "C") {
|
|
1215
1215
|
i.preventDefault();
|
|
1216
|
-
const o =
|
|
1216
|
+
const o = te();
|
|
1217
1217
|
if (!o) return;
|
|
1218
1218
|
const s = gt.getAllToolbarActionGroups();
|
|
1219
1219
|
for (const a of s) {
|
|
@@ -1227,7 +1227,7 @@ function vc(t) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
if ((i.metaKey || i.ctrlKey) && i.shiftKey && i.key === "R") {
|
|
1229
1229
|
i.preventDefault();
|
|
1230
|
-
const o =
|
|
1230
|
+
const o = te();
|
|
1231
1231
|
if (!o) return;
|
|
1232
1232
|
const s = gt.getAllToolbarActionGroups();
|
|
1233
1233
|
for (const a of s) {
|
|
@@ -1550,16 +1550,16 @@ async function Ec(t) {
|
|
|
1550
1550
|
`[initializePlugins] Initialized ${i.length} plugins`
|
|
1551
1551
|
);
|
|
1552
1552
|
}
|
|
1553
|
-
function
|
|
1553
|
+
function te() {
|
|
1554
1554
|
return Yt;
|
|
1555
1555
|
}
|
|
1556
|
-
const Ac = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
1556
|
+
const Ac = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ic = (t) => t.replace(
|
|
1557
1557
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
1558
1558
|
(e, n, i) => i ? i.toUpperCase() : n.toLowerCase()
|
|
1559
1559
|
), Ar = (t) => {
|
|
1560
|
-
const e =
|
|
1560
|
+
const e = Ic(t);
|
|
1561
1561
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1562
|
-
}, Ps = (...t) => t.filter((e, n, i) => !!e && e.trim() !== "" && i.indexOf(e) === n).join(" ").trim(),
|
|
1562
|
+
}, Ps = (...t) => t.filter((e, n, i) => !!e && e.trim() !== "" && i.indexOf(e) === n).join(" ").trim(), Rc = (t) => {
|
|
1563
1563
|
for (const e in t)
|
|
1564
1564
|
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
1565
1565
|
return !0;
|
|
@@ -1595,7 +1595,7 @@ const jc = ji(
|
|
|
1595
1595
|
stroke: t,
|
|
1596
1596
|
strokeWidth: i ? Number(n) * 24 / Number(e) : n,
|
|
1597
1597
|
className: Ps("lucide", r),
|
|
1598
|
-
...!o && !
|
|
1598
|
+
...!o && !Rc(a) && { "aria-hidden": "true" },
|
|
1599
1599
|
...a
|
|
1600
1600
|
},
|
|
1601
1601
|
[
|
|
@@ -1685,12 +1685,12 @@ const Jc = [
|
|
|
1685
1685
|
const Qc = [
|
|
1686
1686
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
1687
1687
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
1688
|
-
], Es = mt("x", Qc), Vi =
|
|
1688
|
+
], Es = mt("x", Qc), Vi = ee({});
|
|
1689
1689
|
function _i(t) {
|
|
1690
1690
|
const e = Q(null);
|
|
1691
1691
|
return e.current === null && (e.current = t()), e.current;
|
|
1692
1692
|
}
|
|
1693
|
-
const As = typeof window < "u",
|
|
1693
|
+
const As = typeof window < "u", Is = As ? ue : rt, In = /* @__PURE__ */ ee(null);
|
|
1694
1694
|
function Fi(t, e) {
|
|
1695
1695
|
t.indexOf(e) === -1 && t.push(e);
|
|
1696
1696
|
}
|
|
@@ -1711,7 +1711,7 @@ typeof process < "u" && process.env?.NODE_ENV !== "production" && (ge = (t, e, n
|
|
|
1711
1711
|
if (!t)
|
|
1712
1712
|
throw new Error(ri(e, n));
|
|
1713
1713
|
});
|
|
1714
|
-
const jt = {},
|
|
1714
|
+
const jt = {}, Rs = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
|
|
1715
1715
|
function Ms(t) {
|
|
1716
1716
|
return typeof t == "object" && t !== null;
|
|
1717
1717
|
}
|
|
@@ -1754,9 +1754,9 @@ const Pt = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, bt = /* @__NO_SIDE_EFFECTS
|
|
|
1754
1754
|
function Ls(t, e) {
|
|
1755
1755
|
return e ? t * (1e3 / e) : 0;
|
|
1756
1756
|
}
|
|
1757
|
-
const
|
|
1757
|
+
const Ir = /* @__PURE__ */ new Set();
|
|
1758
1758
|
function $i(t, e, n) {
|
|
1759
|
-
t ||
|
|
1759
|
+
t || Ir.has(e) || (console.warn(ri(e, n)), Ir.add(e));
|
|
1760
1760
|
}
|
|
1761
1761
|
const Ds = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, eu = 1e-7, nu = 12;
|
|
1762
1762
|
function iu(t, e, n, i, r) {
|
|
@@ -1772,7 +1772,7 @@ function We(t, e, n, i) {
|
|
|
1772
1772
|
const r = (o) => iu(o, 0, 1, t, n);
|
|
1773
1773
|
return (o) => o === 0 || o === 1 ? o : Ds(r(o), e, i);
|
|
1774
1774
|
}
|
|
1775
|
-
const zs = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Vs = (t) => (e) => 1 - t(1 - e), _s = /* @__PURE__ */ We(0.33, 1.53, 0.69, 0.99), Wi = /* @__PURE__ */ Vs(_s), Fs = /* @__PURE__ */ zs(Wi), Ns = (t) => (t *= 2) < 1 ? 0.5 * Wi(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Ui = (t) => 1 - Math.sin(Math.acos(t)), Os = Vs(Ui), Bs = zs(Ui), ru = /* @__PURE__ */ We(0.42, 0, 1, 1), ou = /* @__PURE__ */ We(0, 0, 0.58, 1), $s = /* @__PURE__ */ We(0.42, 0, 0.58, 1), su = (t) => Array.isArray(t) && typeof t[0] != "number", Ws = (t) => Array.isArray(t) && typeof t[0] == "number",
|
|
1775
|
+
const zs = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Vs = (t) => (e) => 1 - t(1 - e), _s = /* @__PURE__ */ We(0.33, 1.53, 0.69, 0.99), Wi = /* @__PURE__ */ Vs(_s), Fs = /* @__PURE__ */ zs(Wi), Ns = (t) => (t *= 2) < 1 ? 0.5 * Wi(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Ui = (t) => 1 - Math.sin(Math.acos(t)), Os = Vs(Ui), Bs = zs(Ui), ru = /* @__PURE__ */ We(0.42, 0, 1, 1), ou = /* @__PURE__ */ We(0, 0, 0.58, 1), $s = /* @__PURE__ */ We(0.42, 0, 0.58, 1), su = (t) => Array.isArray(t) && typeof t[0] != "number", Ws = (t) => Array.isArray(t) && typeof t[0] == "number", Rr = {
|
|
1776
1776
|
linear: yt,
|
|
1777
1777
|
easeIn: ru,
|
|
1778
1778
|
easeInOut: $s,
|
|
@@ -1790,7 +1790,7 @@ const zs = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Vs
|
|
|
1790
1790
|
const [e, n, i, r] = t;
|
|
1791
1791
|
return We(e, n, i, r);
|
|
1792
1792
|
} else if (au(t))
|
|
1793
|
-
return Mt(
|
|
1793
|
+
return Mt(Rr[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Rr[t];
|
|
1794
1794
|
return t;
|
|
1795
1795
|
}, qe = [
|
|
1796
1796
|
"setup",
|
|
@@ -1869,13 +1869,13 @@ function Us(t, e) {
|
|
|
1869
1869
|
s[qe[A]].cancel(k);
|
|
1870
1870
|
}, state: r, steps: s };
|
|
1871
1871
|
}
|
|
1872
|
-
const { schedule: Y, cancel: $t, state:
|
|
1872
|
+
const { schedule: Y, cancel: $t, state: ut, steps: Dn } = /* @__PURE__ */ Us(typeof requestAnimationFrame < "u" ? requestAnimationFrame : yt, !0);
|
|
1873
1873
|
let an;
|
|
1874
1874
|
function uu() {
|
|
1875
1875
|
an = void 0;
|
|
1876
1876
|
}
|
|
1877
1877
|
const ft = {
|
|
1878
|
-
now: () => (an === void 0 && ft.set(
|
|
1878
|
+
now: () => (an === void 0 && ft.set(ut.isProcessing || jt.useManualTiming ? ut.timestamp : performance.now()), an),
|
|
1879
1879
|
set: (t) => {
|
|
1880
1880
|
an = t, queueMicrotask(uu);
|
|
1881
1881
|
}
|
|
@@ -1932,21 +1932,21 @@ const oi = {
|
|
|
1932
1932
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
1933
1933
|
parse: parseFloat,
|
|
1934
1934
|
transform: (e) => `${e}${t}`
|
|
1935
|
-
}), Ft = /* @__PURE__ */ Ue("deg"), Tt = /* @__PURE__ */ Ue("%"),
|
|
1935
|
+
}), Ft = /* @__PURE__ */ Ue("deg"), Tt = /* @__PURE__ */ Ue("%"), I = /* @__PURE__ */ Ue("px"), vu = /* @__PURE__ */ Ue("vh"), bu = /* @__PURE__ */ Ue("vw"), Lr = {
|
|
1936
1936
|
...Tt,
|
|
1937
1937
|
parse: (t) => Tt.parse(t) / 100,
|
|
1938
1938
|
transform: (t) => Tt.transform(t * 100)
|
|
1939
|
-
},
|
|
1939
|
+
}, re = {
|
|
1940
1940
|
test: /* @__PURE__ */ Ki("hsl", "hue"),
|
|
1941
1941
|
parse: /* @__PURE__ */ Ks("hue", "saturation", "lightness"),
|
|
1942
1942
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + Tt.transform(Me(e)) + ", " + Tt.transform(Me(n)) + ", " + Me(Ve.transform(i)) + ")"
|
|
1943
|
-
},
|
|
1944
|
-
test: (t) => Xt.test(t) || oi.test(t) ||
|
|
1945
|
-
parse: (t) => Xt.test(t) ? Xt.parse(t) :
|
|
1946
|
-
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Xt.transform(t) :
|
|
1943
|
+
}, it = {
|
|
1944
|
+
test: (t) => Xt.test(t) || oi.test(t) || re.test(t),
|
|
1945
|
+
parse: (t) => Xt.test(t) ? Xt.parse(t) : re.test(t) ? re.parse(t) : oi.parse(t),
|
|
1946
|
+
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Xt.transform(t) : re.transform(t),
|
|
1947
1947
|
getAnimatableNone: (t) => {
|
|
1948
|
-
const e =
|
|
1949
|
-
return e.alpha = 0,
|
|
1948
|
+
const e = it.parse(t);
|
|
1949
|
+
return e.alpha = 0, it.transform(e);
|
|
1950
1950
|
}
|
|
1951
1951
|
}, yu = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
1952
1952
|
function xu(t) {
|
|
@@ -1960,7 +1960,7 @@ function _e(t) {
|
|
|
1960
1960
|
var: []
|
|
1961
1961
|
}, r = [];
|
|
1962
1962
|
let o = 0;
|
|
1963
|
-
const a = e.replace(Su, (l) => (
|
|
1963
|
+
const a = e.replace(Su, (l) => (it.test(l) ? (i.color.push(o), r.push(qs), n.push(it.parse(l))) : l.startsWith(ku) ? (i.var.push(o), r.push(wu), n.push(l)) : (i.number.push(o), r.push(Ys), n.push(parseFloat(l))), ++o, Dr)).split(Dr);
|
|
1964
1964
|
return { values: n, split: a, indexes: i, types: r };
|
|
1965
1965
|
}
|
|
1966
1966
|
function Xs(t) {
|
|
@@ -1973,12 +1973,12 @@ function Zs(t) {
|
|
|
1973
1973
|
for (let s = 0; s < i; s++)
|
|
1974
1974
|
if (o += e[s], r[s] !== void 0) {
|
|
1975
1975
|
const a = n[s];
|
|
1976
|
-
a === Ys ? o += Me(r[s]) : a === qs ? o +=
|
|
1976
|
+
a === Ys ? o += Me(r[s]) : a === qs ? o += it.transform(r[s]) : o += r[s];
|
|
1977
1977
|
}
|
|
1978
1978
|
return o;
|
|
1979
1979
|
};
|
|
1980
1980
|
}
|
|
1981
|
-
const Cu = (t) => typeof t == "number" ? 0 :
|
|
1981
|
+
const Cu = (t) => typeof t == "number" ? 0 : it.test(t) ? it.getAnimatableNone(t) : t;
|
|
1982
1982
|
function Pu(t) {
|
|
1983
1983
|
const e = Xs(t);
|
|
1984
1984
|
return Zs(t)(e.map(Cu));
|
|
@@ -2014,13 +2014,13 @@ function pn(t, e) {
|
|
|
2014
2014
|
const J = (t, e, n) => t + (e - t) * n, _n = (t, e, n) => {
|
|
2015
2015
|
const i = t * t, r = n * (e * e - i) + i;
|
|
2016
2016
|
return r < 0 ? 0 : Math.sqrt(r);
|
|
2017
|
-
}, Eu = [oi, Xt,
|
|
2017
|
+
}, Eu = [oi, Xt, re], Au = (t) => Eu.find((e) => e.test(t));
|
|
2018
2018
|
function zr(t) {
|
|
2019
2019
|
const e = Au(t);
|
|
2020
2020
|
if (ge(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
|
|
2021
2021
|
return !1;
|
|
2022
2022
|
let n = e.parse(t);
|
|
2023
|
-
return e ===
|
|
2023
|
+
return e === re && (n = Tu(n)), n;
|
|
2024
2024
|
}
|
|
2025
2025
|
const Vr = (t, e) => {
|
|
2026
2026
|
const n = zr(t), i = zr(e);
|
|
@@ -2029,14 +2029,14 @@ const Vr = (t, e) => {
|
|
|
2029
2029
|
const r = { ...n };
|
|
2030
2030
|
return (o) => (r.red = _n(n.red, i.red, o), r.green = _n(n.green, i.green, o), r.blue = _n(n.blue, i.blue, o), r.alpha = J(n.alpha, i.alpha, o), Xt.transform(r));
|
|
2031
2031
|
}, si = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
2032
|
-
function
|
|
2032
|
+
function Iu(t, e) {
|
|
2033
2033
|
return si.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2035
|
+
function Ru(t, e) {
|
|
2036
2036
|
return (n) => J(t, e, n);
|
|
2037
2037
|
}
|
|
2038
2038
|
function Yi(t) {
|
|
2039
|
-
return typeof t == "number" ?
|
|
2039
|
+
return typeof t == "number" ? Ru : typeof t == "string" ? Hi(t) ? pn : it.test(t) ? Vr : Lu : Array.isArray(t) ? Js : typeof t == "object" ? it.test(t) ? Vr : Mu : pn;
|
|
2040
2040
|
}
|
|
2041
2041
|
function Js(t, e) {
|
|
2042
2042
|
const n = [...t], i = n.length, r = t.map((o, s) => Yi(o)(o, e[s]));
|
|
@@ -2066,7 +2066,7 @@ function ju(t, e) {
|
|
|
2066
2066
|
}
|
|
2067
2067
|
const Lu = (t, e) => {
|
|
2068
2068
|
const n = Wt.createTransformer(e), i = _e(t), r = _e(e);
|
|
2069
|
-
return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? si.has(t) && !r.values.length || si.has(e) && !i.values.length ?
|
|
2069
|
+
return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? si.has(t) && !r.values.length || si.has(e) && !i.values.length ? Iu(t, e) : $e(Js(ju(i, r), r.values), n) : (ge(!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.`, "complex-values-different"), pn(t, e));
|
|
2070
2070
|
};
|
|
2071
2071
|
function Qs(t, e, n) {
|
|
2072
2072
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? J(t, e, n) : Yi(t)(t, e);
|
|
@@ -2080,7 +2080,7 @@ const Du = (t) => {
|
|
|
2080
2080
|
* If we're processing this frame we can use the
|
|
2081
2081
|
* framelocked timestamp to keep things in sync.
|
|
2082
2082
|
*/
|
|
2083
|
-
now: () =>
|
|
2083
|
+
now: () => ut.isProcessing ? ut.timestamp : ft.now()
|
|
2084
2084
|
};
|
|
2085
2085
|
}, ta = (t, e, n = 10) => {
|
|
2086
2086
|
let i = "";
|
|
@@ -2350,7 +2350,7 @@ function Ku(t, e) {
|
|
|
2350
2350
|
function Yu(t, e) {
|
|
2351
2351
|
return t.map(() => e || $s).splice(0, t.length - 1);
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function oe({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
|
|
2354
2354
|
const r = su(i) ? i.map(Mr) : Mr(i), o = {
|
|
2355
2355
|
done: !1,
|
|
2356
2356
|
value: e[0]
|
|
@@ -2375,8 +2375,8 @@ function Xi(t, { repeat: e, repeatType: n = "loop" }, i, r = 1) {
|
|
|
2375
2375
|
const Xu = {
|
|
2376
2376
|
decay: li,
|
|
2377
2377
|
inertia: li,
|
|
2378
|
-
tween:
|
|
2379
|
-
keyframes:
|
|
2378
|
+
tween: oe,
|
|
2379
|
+
keyframes: oe,
|
|
2380
2380
|
spring: mn
|
|
2381
2381
|
};
|
|
2382
2382
|
function na(t) {
|
|
@@ -2417,10 +2417,10 @@ class Ji extends Zi {
|
|
|
2417
2417
|
initAnimation() {
|
|
2418
2418
|
const { options: e } = this;
|
|
2419
2419
|
na(e);
|
|
2420
|
-
const { type: n =
|
|
2420
|
+
const { type: n = oe, repeat: i = 0, repeatDelay: r = 0, repeatType: o, velocity: s = 0 } = e;
|
|
2421
2421
|
let { keyframes: a } = e;
|
|
2422
|
-
const l = n ||
|
|
2423
|
-
process.env.NODE_ENV !== "production" && l !==
|
|
2422
|
+
const l = n || oe;
|
|
2423
|
+
process.env.NODE_ENV !== "production" && l !== oe && Mt(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== oe && typeof a[0] != "number" && (this.mixKeyframes = $e(Zu, Qs(a[0], a[1])), a = [0, 100]);
|
|
2424
2424
|
const u = l({ ...e, keyframes: a });
|
|
2425
2425
|
o === "mirror" && (this.mirroredGenerator = l({
|
|
2426
2426
|
...e,
|
|
@@ -2599,7 +2599,7 @@ const ve = [
|
|
|
2599
2599
|
"skew",
|
|
2600
2600
|
"skewX",
|
|
2601
2601
|
"skewY"
|
|
2602
|
-
], be = new Set(ve), Br = (t) => t === me || t ===
|
|
2602
|
+
], be = new Set(ve), Br = (t) => t === me || t === I, id = /* @__PURE__ */ new Set(["x", "y", "z"]), rd = ve.filter((t) => !id.has(t));
|
|
2603
2603
|
function od(t) {
|
|
2604
2604
|
const e = [];
|
|
2605
2605
|
return rd.forEach((n) => {
|
|
@@ -2704,20 +2704,20 @@ const oa = /* @__PURE__ */ dd(() => {
|
|
|
2704
2704
|
return !1;
|
|
2705
2705
|
}
|
|
2706
2706
|
return !0;
|
|
2707
|
-
}, "linearEasing"),
|
|
2707
|
+
}, "linearEasing"), Ie = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, $r = {
|
|
2708
2708
|
linear: "linear",
|
|
2709
2709
|
ease: "ease",
|
|
2710
2710
|
easeIn: "ease-in",
|
|
2711
2711
|
easeOut: "ease-out",
|
|
2712
2712
|
easeInOut: "ease-in-out",
|
|
2713
|
-
circIn: /* @__PURE__ */
|
|
2714
|
-
circOut: /* @__PURE__ */
|
|
2715
|
-
backIn: /* @__PURE__ */
|
|
2716
|
-
backOut: /* @__PURE__ */
|
|
2713
|
+
circIn: /* @__PURE__ */ Ie([0, 0.65, 0.55, 1]),
|
|
2714
|
+
circOut: /* @__PURE__ */ Ie([0.55, 0, 1, 0.45]),
|
|
2715
|
+
backIn: /* @__PURE__ */ Ie([0.31, 0.01, 0.66, -0.59]),
|
|
2716
|
+
backOut: /* @__PURE__ */ Ie([0.33, 1.53, 0.69, 0.99])
|
|
2717
2717
|
};
|
|
2718
2718
|
function sa(t, e) {
|
|
2719
2719
|
if (t)
|
|
2720
|
-
return typeof t == "function" ? oa() ? ta(t, e) : "ease-out" : Ws(t) ?
|
|
2720
|
+
return typeof t == "function" ? oa() ? ta(t, e) : "ease-out" : Ws(t) ? Ie(t) : Array.isArray(t) ? t.map((n) => sa(n, e) || $r.easeOut) : $r[t];
|
|
2721
2721
|
}
|
|
2722
2722
|
function hd(t, e, n, { delay: i = 0, duration: r = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeOut", times: l } = {}, u = void 0) {
|
|
2723
2723
|
const c = {
|
|
@@ -3020,7 +3020,7 @@ function ca(t, e, n = 1) {
|
|
|
3020
3020
|
const o = window.getComputedStyle(e).getPropertyValue(i);
|
|
3021
3021
|
if (o) {
|
|
3022
3022
|
const s = o.trim();
|
|
3023
|
-
return
|
|
3023
|
+
return Rs(s) ? parseFloat(s) : s;
|
|
3024
3024
|
}
|
|
3025
3025
|
return Hi(r) ? ca(r, e, n + 1) : r;
|
|
3026
3026
|
}
|
|
@@ -3032,19 +3032,19 @@ const Ad = {
|
|
|
3032
3032
|
stiffness: 500,
|
|
3033
3033
|
damping: 25,
|
|
3034
3034
|
restSpeed: 10
|
|
3035
|
-
},
|
|
3035
|
+
}, Id = (t) => ({
|
|
3036
3036
|
type: "spring",
|
|
3037
3037
|
stiffness: 550,
|
|
3038
3038
|
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
|
3039
3039
|
restSpeed: 10
|
|
3040
|
-
}),
|
|
3040
|
+
}), Rd = {
|
|
3041
3041
|
type: "keyframes",
|
|
3042
3042
|
duration: 0.8
|
|
3043
3043
|
}, Md = {
|
|
3044
3044
|
type: "keyframes",
|
|
3045
3045
|
ease: [0.25, 0.1, 0.35, 1],
|
|
3046
3046
|
duration: 0.3
|
|
3047
|
-
}, jd = (t, { keyframes: e }) => e.length > 2 ?
|
|
3047
|
+
}, jd = (t, { keyframes: e }) => e.length > 2 ? Rd : be.has(t) ? t.startsWith("scale") ? Id(e[1]) : Ad : Md;
|
|
3048
3048
|
function Ld({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: r, repeat: o, repeatType: s, repeatDelay: a, from: l, elapsed: u, ...c }) {
|
|
3049
3049
|
return !!Object.keys(c).length;
|
|
3050
3050
|
}
|
|
@@ -3317,7 +3317,7 @@ function nr(t, e, n, i) {
|
|
|
3317
3317
|
}
|
|
3318
3318
|
return e;
|
|
3319
3319
|
}
|
|
3320
|
-
function
|
|
3320
|
+
function ce(t, e, n) {
|
|
3321
3321
|
const i = t.getProps();
|
|
3322
3322
|
return nr(i, e, n !== void 0 ? n : i.custom, t);
|
|
3323
3323
|
}
|
|
@@ -3329,7 +3329,7 @@ function Nd(t) {
|
|
|
3329
3329
|
return vi(t) ? t[t.length - 1] || 0 : t;
|
|
3330
3330
|
}
|
|
3331
3331
|
function Od(t, e) {
|
|
3332
|
-
const n =
|
|
3332
|
+
const n = ce(t, e);
|
|
3333
3333
|
let { transitionEnd: i = {}, transition: r = {}, ...o } = n || {};
|
|
3334
3334
|
o = { ...o, ...i };
|
|
3335
3335
|
for (const s in o) {
|
|
@@ -3394,7 +3394,7 @@ function pa(t, e, { delay: n = 0, transitionOverride: i, type: r } = {}) {
|
|
|
3394
3394
|
}), l;
|
|
3395
3395
|
}
|
|
3396
3396
|
function yi(t, e, n = {}) {
|
|
3397
|
-
const i =
|
|
3397
|
+
const i = ce(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
|
|
3398
3398
|
let { transition: r = t.getDefaultTransition() || {} } = i || {};
|
|
3399
3399
|
n.transitionOverride && (r = n.transitionOverride);
|
|
3400
3400
|
const o = i ? () => Promise.all(pa(t, i, n)) : () => Promise.resolve(), s = t.variantChildren && t.variantChildren.size ? (l = 0) => {
|
|
@@ -3425,7 +3425,7 @@ function Hd(t, e, n = {}) {
|
|
|
3425
3425
|
} else if (typeof e == "string")
|
|
3426
3426
|
i = yi(t, e, n);
|
|
3427
3427
|
else {
|
|
3428
|
-
const r = typeof e == "function" ?
|
|
3428
|
+
const r = typeof e == "function" ? ce(t, e, n.custom) : e;
|
|
3429
3429
|
i = Promise.all(pa(t, r, n));
|
|
3430
3430
|
}
|
|
3431
3431
|
return i.then(() => {
|
|
@@ -3435,7 +3435,7 @@ function Hd(t, e, n = {}) {
|
|
|
3435
3435
|
const Gd = {
|
|
3436
3436
|
test: (t) => t === "auto",
|
|
3437
3437
|
parse: (t) => t
|
|
3438
|
-
}, ga = (t) => (e) => e.test(t), ma = [me,
|
|
3438
|
+
}, ga = (t) => (e) => e.test(t), ma = [me, I, Tt, Ft, bu, vu, Gd], Gr = (t) => ma.find(ga(t));
|
|
3439
3439
|
function Kd(t) {
|
|
3440
3440
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || js(t) : !0;
|
|
3441
3441
|
}
|
|
@@ -3472,74 +3472,74 @@ const Xd = /\b([a-z-]*)\(.*?\)/gu, xi = {
|
|
|
3472
3472
|
skew: Ft,
|
|
3473
3473
|
skewX: Ft,
|
|
3474
3474
|
skewY: Ft,
|
|
3475
|
-
distance:
|
|
3476
|
-
translateX:
|
|
3477
|
-
translateY:
|
|
3478
|
-
translateZ:
|
|
3479
|
-
x:
|
|
3480
|
-
y:
|
|
3481
|
-
z:
|
|
3482
|
-
perspective:
|
|
3483
|
-
transformPerspective:
|
|
3475
|
+
distance: I,
|
|
3476
|
+
translateX: I,
|
|
3477
|
+
translateY: I,
|
|
3478
|
+
translateZ: I,
|
|
3479
|
+
x: I,
|
|
3480
|
+
y: I,
|
|
3481
|
+
z: I,
|
|
3482
|
+
perspective: I,
|
|
3483
|
+
transformPerspective: I,
|
|
3484
3484
|
opacity: Ve,
|
|
3485
3485
|
originX: Lr,
|
|
3486
3486
|
originY: Lr,
|
|
3487
|
-
originZ:
|
|
3487
|
+
originZ: I
|
|
3488
3488
|
}, rr = {
|
|
3489
3489
|
// Border props
|
|
3490
|
-
borderWidth:
|
|
3491
|
-
borderTopWidth:
|
|
3492
|
-
borderRightWidth:
|
|
3493
|
-
borderBottomWidth:
|
|
3494
|
-
borderLeftWidth:
|
|
3495
|
-
borderRadius:
|
|
3496
|
-
radius:
|
|
3497
|
-
borderTopLeftRadius:
|
|
3498
|
-
borderTopRightRadius:
|
|
3499
|
-
borderBottomRightRadius:
|
|
3500
|
-
borderBottomLeftRadius:
|
|
3490
|
+
borderWidth: I,
|
|
3491
|
+
borderTopWidth: I,
|
|
3492
|
+
borderRightWidth: I,
|
|
3493
|
+
borderBottomWidth: I,
|
|
3494
|
+
borderLeftWidth: I,
|
|
3495
|
+
borderRadius: I,
|
|
3496
|
+
radius: I,
|
|
3497
|
+
borderTopLeftRadius: I,
|
|
3498
|
+
borderTopRightRadius: I,
|
|
3499
|
+
borderBottomRightRadius: I,
|
|
3500
|
+
borderBottomLeftRadius: I,
|
|
3501
3501
|
// Positioning props
|
|
3502
|
-
width:
|
|
3503
|
-
maxWidth:
|
|
3504
|
-
height:
|
|
3505
|
-
maxHeight:
|
|
3506
|
-
top:
|
|
3507
|
-
right:
|
|
3508
|
-
bottom:
|
|
3509
|
-
left:
|
|
3510
|
-
inset:
|
|
3511
|
-
insetBlock:
|
|
3512
|
-
insetBlockStart:
|
|
3513
|
-
insetBlockEnd:
|
|
3514
|
-
insetInline:
|
|
3515
|
-
insetInlineStart:
|
|
3516
|
-
insetInlineEnd:
|
|
3502
|
+
width: I,
|
|
3503
|
+
maxWidth: I,
|
|
3504
|
+
height: I,
|
|
3505
|
+
maxHeight: I,
|
|
3506
|
+
top: I,
|
|
3507
|
+
right: I,
|
|
3508
|
+
bottom: I,
|
|
3509
|
+
left: I,
|
|
3510
|
+
inset: I,
|
|
3511
|
+
insetBlock: I,
|
|
3512
|
+
insetBlockStart: I,
|
|
3513
|
+
insetBlockEnd: I,
|
|
3514
|
+
insetInline: I,
|
|
3515
|
+
insetInlineStart: I,
|
|
3516
|
+
insetInlineEnd: I,
|
|
3517
3517
|
// Spacing props
|
|
3518
|
-
padding:
|
|
3519
|
-
paddingTop:
|
|
3520
|
-
paddingRight:
|
|
3521
|
-
paddingBottom:
|
|
3522
|
-
paddingLeft:
|
|
3523
|
-
paddingBlock:
|
|
3524
|
-
paddingBlockStart:
|
|
3525
|
-
paddingBlockEnd:
|
|
3526
|
-
paddingInline:
|
|
3527
|
-
paddingInlineStart:
|
|
3528
|
-
paddingInlineEnd:
|
|
3529
|
-
margin:
|
|
3530
|
-
marginTop:
|
|
3531
|
-
marginRight:
|
|
3532
|
-
marginBottom:
|
|
3533
|
-
marginLeft:
|
|
3534
|
-
marginBlock:
|
|
3535
|
-
marginBlockStart:
|
|
3536
|
-
marginBlockEnd:
|
|
3537
|
-
marginInline:
|
|
3538
|
-
marginInlineStart:
|
|
3539
|
-
marginInlineEnd:
|
|
3518
|
+
padding: I,
|
|
3519
|
+
paddingTop: I,
|
|
3520
|
+
paddingRight: I,
|
|
3521
|
+
paddingBottom: I,
|
|
3522
|
+
paddingLeft: I,
|
|
3523
|
+
paddingBlock: I,
|
|
3524
|
+
paddingBlockStart: I,
|
|
3525
|
+
paddingBlockEnd: I,
|
|
3526
|
+
paddingInline: I,
|
|
3527
|
+
paddingInlineStart: I,
|
|
3528
|
+
paddingInlineEnd: I,
|
|
3529
|
+
margin: I,
|
|
3530
|
+
marginTop: I,
|
|
3531
|
+
marginRight: I,
|
|
3532
|
+
marginBottom: I,
|
|
3533
|
+
marginLeft: I,
|
|
3534
|
+
marginBlock: I,
|
|
3535
|
+
marginBlockStart: I,
|
|
3536
|
+
marginBlockEnd: I,
|
|
3537
|
+
marginInline: I,
|
|
3538
|
+
marginInlineStart: I,
|
|
3539
|
+
marginInlineEnd: I,
|
|
3540
3540
|
// Misc
|
|
3541
|
-
backgroundPositionX:
|
|
3542
|
-
backgroundPositionY:
|
|
3541
|
+
backgroundPositionX: I,
|
|
3542
|
+
backgroundPositionY: I,
|
|
3543
3543
|
...Zd,
|
|
3544
3544
|
zIndex: Kr,
|
|
3545
3545
|
// SVG
|
|
@@ -3549,17 +3549,17 @@ const Xd = /\b([a-z-]*)\(.*?\)/gu, xi = {
|
|
|
3549
3549
|
}, Jd = {
|
|
3550
3550
|
...rr,
|
|
3551
3551
|
// Color props
|
|
3552
|
-
color:
|
|
3553
|
-
backgroundColor:
|
|
3554
|
-
outlineColor:
|
|
3555
|
-
fill:
|
|
3556
|
-
stroke:
|
|
3552
|
+
color: it,
|
|
3553
|
+
backgroundColor: it,
|
|
3554
|
+
outlineColor: it,
|
|
3555
|
+
fill: it,
|
|
3556
|
+
stroke: it,
|
|
3557
3557
|
// Border props
|
|
3558
|
-
borderColor:
|
|
3559
|
-
borderTopColor:
|
|
3560
|
-
borderRightColor:
|
|
3561
|
-
borderBottomColor:
|
|
3562
|
-
borderLeftColor:
|
|
3558
|
+
borderColor: it,
|
|
3559
|
+
borderTopColor: it,
|
|
3560
|
+
borderRightColor: it,
|
|
3561
|
+
borderBottomColor: it,
|
|
3562
|
+
borderLeftColor: it,
|
|
3563
3563
|
filter: xi,
|
|
3564
3564
|
WebkitFilter: xi
|
|
3565
3565
|
}, va = (t) => Jd[t];
|
|
@@ -3752,15 +3752,15 @@ function Pa(t) {
|
|
|
3752
3752
|
function lh(t) {
|
|
3753
3753
|
return Pa(t) && t.tagName === "svg";
|
|
3754
3754
|
}
|
|
3755
|
-
const ch = [...ma,
|
|
3755
|
+
const ch = [...ma, it, Wt], uh = (t) => ch.find(ga(t)), Zr = () => ({
|
|
3756
3756
|
translate: 0,
|
|
3757
3757
|
scale: 1,
|
|
3758
3758
|
origin: 0,
|
|
3759
3759
|
originPoint: 0
|
|
3760
|
-
}),
|
|
3760
|
+
}), se = () => ({
|
|
3761
3761
|
x: Zr(),
|
|
3762
3762
|
y: Zr()
|
|
3763
|
-
}), Jr = () => ({ min: 0, max: 0 }),
|
|
3763
|
+
}), Jr = () => ({ min: 0, max: 0 }), st = () => ({
|
|
3764
3764
|
x: Jr(),
|
|
3765
3765
|
y: Jr()
|
|
3766
3766
|
}), wi = { current: null }, Ta = { current: !1 }, dh = typeof window < "u";
|
|
@@ -3773,7 +3773,7 @@ function hh() {
|
|
|
3773
3773
|
wi.current = !1;
|
|
3774
3774
|
}
|
|
3775
3775
|
const fh = /* @__PURE__ */ new WeakMap();
|
|
3776
|
-
function
|
|
3776
|
+
function Rn(t) {
|
|
3777
3777
|
return t !== null && typeof t == "object" && typeof t.start == "function";
|
|
3778
3778
|
}
|
|
3779
3779
|
function Fe(t) {
|
|
@@ -3789,7 +3789,7 @@ const ar = [
|
|
|
3789
3789
|
"exit"
|
|
3790
3790
|
], lr = ["initial", ...ar];
|
|
3791
3791
|
function Mn(t) {
|
|
3792
|
-
return
|
|
3792
|
+
return Rn(t.animate) || lr.some((e) => Fe(t[e]));
|
|
3793
3793
|
}
|
|
3794
3794
|
function Ea(t) {
|
|
3795
3795
|
return !!(Mn(t) || t.variants);
|
|
@@ -3912,7 +3912,7 @@ class mh {
|
|
|
3912
3912
|
* removed with a re-render to work.
|
|
3913
3913
|
*/
|
|
3914
3914
|
measureViewportBox() {
|
|
3915
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) :
|
|
3915
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : st();
|
|
3916
3916
|
}
|
|
3917
3917
|
getStaticValue(e) {
|
|
3918
3918
|
return this.latestValues[e];
|
|
@@ -3997,7 +3997,7 @@ class mh {
|
|
|
3997
3997
|
*/
|
|
3998
3998
|
readValue(e, n) {
|
|
3999
3999
|
let i = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
|
|
4000
|
-
return i != null && (typeof i == "string" && (
|
|
4000
|
+
return i != null && (typeof i == "string" && (Rs(i) || js(i)) ? i = parseFloat(i) : !uh(i) && Wt.test(n) && (i = ba(e, n)), this.setBaseTarget(e, ht(i) ? i.get() : i)), ht(i) ? i.get() : i;
|
|
4001
4001
|
}
|
|
4002
4002
|
/**
|
|
4003
4003
|
* Set the base target to later animate back to. This is currently
|
|
@@ -4039,7 +4039,7 @@ class Ut {
|
|
|
4039
4039
|
update() {
|
|
4040
4040
|
}
|
|
4041
4041
|
}
|
|
4042
|
-
class
|
|
4042
|
+
class Ia extends mh {
|
|
4043
4043
|
constructor() {
|
|
4044
4044
|
super(...arguments), this.KeyframeResolver = eh;
|
|
4045
4045
|
}
|
|
@@ -4061,7 +4061,7 @@ class Ra extends mh {
|
|
|
4061
4061
|
}));
|
|
4062
4062
|
}
|
|
4063
4063
|
}
|
|
4064
|
-
function
|
|
4064
|
+
function Ra({ top: t, left: e, right: n, bottom: i }) {
|
|
4065
4065
|
return {
|
|
4066
4066
|
x: { min: e, max: n },
|
|
4067
4067
|
y: { min: t, max: i }
|
|
@@ -4119,29 +4119,29 @@ function yh(t, e, n, i = !1) {
|
|
|
4119
4119
|
for (let a = 0; a < r; a++) {
|
|
4120
4120
|
o = n[a], s = o.projectionDelta;
|
|
4121
4121
|
const { visualElement: l } = o.options;
|
|
4122
|
-
l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root &&
|
|
4122
|
+
l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && le(t, {
|
|
4123
4123
|
x: -o.scroll.offset.x,
|
|
4124
4124
|
y: -o.scroll.offset.y
|
|
4125
|
-
}), s && (e.x *= s.x.scale, e.y *= s.y.scale, ja(t, s)), i && Kt(o.latestValues) &&
|
|
4125
|
+
}), s && (e.x *= s.x.scale, e.y *= s.y.scale, ja(t, s)), i && Kt(o.latestValues) && le(t, o.latestValues));
|
|
4126
4126
|
}
|
|
4127
4127
|
e.x < io && e.x > no && (e.x = 1), e.y < io && e.y > no && (e.y = 1);
|
|
4128
4128
|
}
|
|
4129
|
-
function
|
|
4129
|
+
function ae(t, e) {
|
|
4130
4130
|
t.min = t.min + e, t.max = t.max + e;
|
|
4131
4131
|
}
|
|
4132
4132
|
function ro(t, e, n, i, r = 0.5) {
|
|
4133
4133
|
const o = J(t.min, t.max, r);
|
|
4134
4134
|
Si(t, e, n, o, i);
|
|
4135
4135
|
}
|
|
4136
|
-
function
|
|
4136
|
+
function le(t, e) {
|
|
4137
4137
|
ro(t.x, e.x, e.scaleX, e.scale, e.originX), ro(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
4138
4138
|
}
|
|
4139
4139
|
function La(t, e) {
|
|
4140
|
-
return
|
|
4140
|
+
return Ra(bh(t.getBoundingClientRect(), e));
|
|
4141
4141
|
}
|
|
4142
4142
|
function xh(t, e, n) {
|
|
4143
4143
|
const i = La(t, n), { scroll: r } = e;
|
|
4144
|
-
return r && (
|
|
4144
|
+
return r && (ae(i.x, r.offset.x), ae(i.y, r.offset.y)), i;
|
|
4145
4145
|
}
|
|
4146
4146
|
const wh = {
|
|
4147
4147
|
x: "translateX",
|
|
@@ -4206,7 +4206,7 @@ const Ce = {
|
|
|
4206
4206
|
if (!e.target)
|
|
4207
4207
|
return t;
|
|
4208
4208
|
if (typeof t == "string")
|
|
4209
|
-
if (
|
|
4209
|
+
if (I.test(t))
|
|
4210
4210
|
t = parseFloat(t);
|
|
4211
4211
|
else
|
|
4212
4212
|
return t;
|
|
@@ -4253,7 +4253,7 @@ function ur(t, e, n) {
|
|
|
4253
4253
|
function Ph(t) {
|
|
4254
4254
|
return window.getComputedStyle(t);
|
|
4255
4255
|
}
|
|
4256
|
-
class Th extends
|
|
4256
|
+
class Th extends Ia {
|
|
4257
4257
|
constructor() {
|
|
4258
4258
|
super(...arguments), this.type = "html", this.renderInstance = Da;
|
|
4259
4259
|
}
|
|
@@ -4282,14 +4282,14 @@ const Eh = {
|
|
|
4282
4282
|
offset: "strokeDashoffset",
|
|
4283
4283
|
array: "strokeDasharray"
|
|
4284
4284
|
};
|
|
4285
|
-
function
|
|
4285
|
+
function Ih(t, e, n = 1, i = 0, r = !0) {
|
|
4286
4286
|
t.pathLength = 1;
|
|
4287
4287
|
const o = r ? Eh : Ah;
|
|
4288
|
-
t[o.offset] =
|
|
4289
|
-
const s =
|
|
4288
|
+
t[o.offset] = I.transform(-i);
|
|
4289
|
+
const s = I.transform(e), a = I.transform(n);
|
|
4290
4290
|
t[o.array] = `${s} ${a}`;
|
|
4291
4291
|
}
|
|
4292
|
-
const
|
|
4292
|
+
const Rh = [
|
|
4293
4293
|
"offsetDistance",
|
|
4294
4294
|
"offsetPath",
|
|
4295
4295
|
"offsetRotate",
|
|
@@ -4312,9 +4312,9 @@ function Va(t, {
|
|
|
4312
4312
|
t.attrs = t.style, t.style = {};
|
|
4313
4313
|
const { attrs: d, style: f } = t;
|
|
4314
4314
|
d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = c?.transformBox ?? "fill-box", delete d.transformBox);
|
|
4315
|
-
for (const p of
|
|
4315
|
+
for (const p of Rh)
|
|
4316
4316
|
d[p] !== void 0 && (f[p] = d[p], delete d[p]);
|
|
4317
|
-
e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 &&
|
|
4317
|
+
e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && Ih(d, r, o, s, !1);
|
|
4318
4318
|
}
|
|
4319
4319
|
const _a = /* @__PURE__ */ new Set([
|
|
4320
4320
|
"baseFrequency",
|
|
@@ -4355,9 +4355,9 @@ function Na(t, e, n) {
|
|
|
4355
4355
|
}
|
|
4356
4356
|
return i;
|
|
4357
4357
|
}
|
|
4358
|
-
class jh extends
|
|
4358
|
+
class jh extends Ia {
|
|
4359
4359
|
constructor() {
|
|
4360
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox =
|
|
4360
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = st;
|
|
4361
4361
|
}
|
|
4362
4362
|
getBaseTargetFromProps(e, n) {
|
|
4363
4363
|
return e[n];
|
|
@@ -4415,7 +4415,7 @@ function Vh(t) {
|
|
|
4415
4415
|
function _h(t) {
|
|
4416
4416
|
let e = Vh(t), n = so(), i = !0;
|
|
4417
4417
|
const r = (l) => (u, c) => {
|
|
4418
|
-
const d =
|
|
4418
|
+
const d = ce(t, c, l === "exit" ? t.presenceContext?.custom : void 0);
|
|
4419
4419
|
if (d) {
|
|
4420
4420
|
const { transition: f, transitionEnd: p, ...m } = d;
|
|
4421
4421
|
u = { ...u, ...m, ...p };
|
|
@@ -4435,7 +4435,7 @@ function _h(t) {
|
|
|
4435
4435
|
if (V && i && t.manuallyAnimateOnMount && (V = !1), S.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
4436
4436
|
!S.isActive && P === null || // If we didn't and don't have any defined prop for this animation type
|
|
4437
4437
|
!k && !S.prevProp || // Or if the prop doesn't define an animation
|
|
4438
|
-
|
|
4438
|
+
Rn(k) || typeof k == "boolean")
|
|
4439
4439
|
continue;
|
|
4440
4440
|
const _ = Fh(S.prevProp, k);
|
|
4441
4441
|
let w = _ || // If we're making this variant active, we want to always make it active
|
|
@@ -4444,7 +4444,7 @@ function _h(t) {
|
|
|
4444
4444
|
const G = Array.isArray(k) ? k : [k];
|
|
4445
4445
|
let q = G.reduce(r(x), {});
|
|
4446
4446
|
P === !1 && (q = {});
|
|
4447
|
-
const { prevResolvedValues: H = {} } = S,
|
|
4447
|
+
const { prevResolvedValues: H = {} } = S, ct = {
|
|
4448
4448
|
...H,
|
|
4449
4449
|
...q
|
|
4450
4450
|
}, y = (z) => {
|
|
@@ -4452,22 +4452,22 @@ function _h(t) {
|
|
|
4452
4452
|
const T = t.getValue(z);
|
|
4453
4453
|
T && (T.liveStyle = !1);
|
|
4454
4454
|
};
|
|
4455
|
-
for (const z in
|
|
4456
|
-
const T = q[z],
|
|
4455
|
+
for (const z in ct) {
|
|
4456
|
+
const T = q[z], tt = H[z];
|
|
4457
4457
|
if (p.hasOwnProperty(z))
|
|
4458
4458
|
continue;
|
|
4459
|
-
let
|
|
4460
|
-
vi(T) && vi(
|
|
4459
|
+
let lt = !1;
|
|
4460
|
+
vi(T) && vi(tt) ? lt = !Ba(T, tt) : lt = T !== tt, lt ? T != null ? y(z) : f.add(z) : T !== void 0 && f.has(z) ? y(z) : S.protectedKeys[z] = !0;
|
|
4461
4461
|
}
|
|
4462
4462
|
S.prevProp = k, S.prevResolvedValues = q, S.isActive && (p = { ...p, ...q }), i && t.blockInitialAnimation && (w = !1);
|
|
4463
4463
|
const D = V && _;
|
|
4464
4464
|
w && (!D || N) && d.push(...G.map((z) => {
|
|
4465
4465
|
const T = { type: x };
|
|
4466
4466
|
if (typeof z == "string" && i && !D && t.manuallyAnimateOnMount && t.parent) {
|
|
4467
|
-
const { parent:
|
|
4468
|
-
if (
|
|
4469
|
-
const { delayChildren: g } =
|
|
4470
|
-
T.delay = ua(
|
|
4467
|
+
const { parent: tt } = t, lt = ce(tt, z);
|
|
4468
|
+
if (tt.enteringChildren && lt) {
|
|
4469
|
+
const { delayChildren: g } = lt.transition || {};
|
|
4470
|
+
T.delay = ua(tt.enteringChildren, t, g);
|
|
4471
4471
|
}
|
|
4472
4472
|
}
|
|
4473
4473
|
return {
|
|
@@ -4479,7 +4479,7 @@ function _h(t) {
|
|
|
4479
4479
|
if (f.size) {
|
|
4480
4480
|
const b = {};
|
|
4481
4481
|
if (typeof u.initial != "boolean") {
|
|
4482
|
-
const x =
|
|
4482
|
+
const x = ce(t, Array.isArray(u.initial) ? u.initial[0] : u.initial);
|
|
4483
4483
|
x && x.transition && (b.transition = x.transition);
|
|
4484
4484
|
}
|
|
4485
4485
|
f.forEach((x) => {
|
|
@@ -4618,7 +4618,7 @@ function qh(t, e, n) {
|
|
|
4618
4618
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
4619
4619
|
return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
|
|
4620
4620
|
}
|
|
4621
|
-
const Ga = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Xh = Ga.length, wo = (t) => typeof t == "string" ? parseFloat(t) : t, ko = (t) => typeof t == "number" ||
|
|
4621
|
+
const Ga = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Xh = Ga.length, wo = (t) => typeof t == "string" ? parseFloat(t) : t, ko = (t) => typeof t == "number" || I.test(t);
|
|
4622
4622
|
function Zh(t, e, n, i, r, o) {
|
|
4623
4623
|
r ? (t.opacity = J(0, n.opacity ?? 1, Jh(i)), t.opacityExit = J(e.opacity ?? 1, 0, Qh(i))) : o && (t.opacity = J(e.opacity ?? 1, n.opacity ?? 1, i));
|
|
4624
4624
|
for (let s = 0; s < Xh; s++) {
|
|
@@ -4868,7 +4868,7 @@ function qa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4868
4868
|
}
|
|
4869
4869
|
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(ff), this.nodes.forEach(lf), this.nodes.forEach(cf)) : this.nodes.forEach(Po), this.clearAllSnapshots();
|
|
4870
4870
|
const a = ft.now();
|
|
4871
|
-
|
|
4871
|
+
ut.delta = Et(0, 1e3 / 60, a - ut.timestamp), ut.timestamp = a, ut.isProcessing = !0, Dn.update.process(ut), Dn.preRender.process(ut), Dn.render.process(ut), ut.isProcessing = !1;
|
|
4872
4872
|
}
|
|
4873
4873
|
didUpdate() {
|
|
4874
4874
|
this.updateScheduled || (this.updateScheduled = !0, or.read(this.scheduleUpdate));
|
|
@@ -4897,7 +4897,7 @@ function qa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4897
4897
|
for (let l = 0; l < this.path.length; l++)
|
|
4898
4898
|
this.path[l].updateScroll();
|
|
4899
4899
|
const s = this.layout;
|
|
4900
|
-
this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected =
|
|
4900
|
+
this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected = st(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
4901
4901
|
const { visualElement: a } = this.options;
|
|
4902
4902
|
a && a.notify("LayoutMeasure", this.layout.layoutBox, s ? s.layoutBox : void 0);
|
|
4903
4903
|
}
|
|
@@ -4934,45 +4934,45 @@ function qa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4934
4934
|
measurePageBox() {
|
|
4935
4935
|
const { visualElement: s } = this.options;
|
|
4936
4936
|
if (!s)
|
|
4937
|
-
return
|
|
4937
|
+
return st();
|
|
4938
4938
|
const a = s.measureViewportBox();
|
|
4939
4939
|
if (!(this.scroll?.wasRoot || this.path.some(kf))) {
|
|
4940
4940
|
const { scroll: u } = this.root;
|
|
4941
|
-
u && (
|
|
4941
|
+
u && (ae(a.x, u.offset.x), ae(a.y, u.offset.y));
|
|
4942
4942
|
}
|
|
4943
4943
|
return a;
|
|
4944
4944
|
}
|
|
4945
4945
|
removeElementScroll(s) {
|
|
4946
|
-
const a =
|
|
4946
|
+
const a = st();
|
|
4947
4947
|
if (wt(a, s), this.scroll?.wasRoot)
|
|
4948
4948
|
return a;
|
|
4949
4949
|
for (let l = 0; l < this.path.length; l++) {
|
|
4950
4950
|
const u = this.path[l], { scroll: c, options: d } = u;
|
|
4951
|
-
u !== this.root && c && d.layoutScroll && (c.wasRoot && wt(a, s),
|
|
4951
|
+
u !== this.root && c && d.layoutScroll && (c.wasRoot && wt(a, s), ae(a.x, c.offset.x), ae(a.y, c.offset.y));
|
|
4952
4952
|
}
|
|
4953
4953
|
return a;
|
|
4954
4954
|
}
|
|
4955
4955
|
applyTransform(s, a = !1) {
|
|
4956
|
-
const l =
|
|
4956
|
+
const l = st();
|
|
4957
4957
|
wt(l, s);
|
|
4958
4958
|
for (let u = 0; u < this.path.length; u++) {
|
|
4959
4959
|
const c = this.path[u];
|
|
4960
|
-
!a && c.options.layoutScroll && c.scroll && c !== c.root &&
|
|
4960
|
+
!a && c.options.layoutScroll && c.scroll && c !== c.root && le(l, {
|
|
4961
4961
|
x: -c.scroll.offset.x,
|
|
4962
4962
|
y: -c.scroll.offset.y
|
|
4963
|
-
}), Kt(c.latestValues) &&
|
|
4963
|
+
}), Kt(c.latestValues) && le(l, c.latestValues);
|
|
4964
4964
|
}
|
|
4965
|
-
return Kt(this.latestValues) &&
|
|
4965
|
+
return Kt(this.latestValues) && le(l, this.latestValues), l;
|
|
4966
4966
|
}
|
|
4967
4967
|
removeTransform(s) {
|
|
4968
|
-
const a =
|
|
4968
|
+
const a = st();
|
|
4969
4969
|
wt(a, s);
|
|
4970
4970
|
for (let l = 0; l < this.path.length; l++) {
|
|
4971
4971
|
const u = this.path[l];
|
|
4972
4972
|
if (!u.instance || !Kt(u.latestValues))
|
|
4973
4973
|
continue;
|
|
4974
4974
|
ki(u.latestValues) && u.updateSnapshot();
|
|
4975
|
-
const c =
|
|
4975
|
+
const c = st(), d = u.measurePageBox();
|
|
4976
4976
|
wt(c, d), fo(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
|
|
4977
4977
|
}
|
|
4978
4978
|
return Kt(this.latestValues) && fo(a, this.latestValues), a;
|
|
@@ -4991,7 +4991,7 @@ function qa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4991
4991
|
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
4992
4992
|
}
|
|
4993
4993
|
forceRelativeParentToResolveTarget() {
|
|
4994
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !==
|
|
4994
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== ut.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
4995
4995
|
}
|
|
4996
4996
|
resolveTargetDelta(s = !1) {
|
|
4997
4997
|
const a = this.getLead();
|
|
@@ -5002,9 +5002,9 @@ function qa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5002
5002
|
const { layout: c, layoutId: d } = this.options;
|
|
5003
5003
|
if (!this.layout || !(c || d))
|
|
5004
5004
|
return;
|
|
5005
|
-
this.resolvedRelativeTargetAt =
|
|
5005
|
+
this.resolvedRelativeTargetAt = ut.timestamp;
|
|
5006
5006
|
const f = this.getClosestProjectingParent();
|
|
5007
|
-
f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target =
|
|
5007
|
+
f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = st(), this.targetWithTransforms = st()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Uh(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : wt(this.target, this.layout.layoutBox), ja(this.target, this.targetDelta)) : wt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
|
|
5008
5008
|
}
|
|
5009
5009
|
getClosestProjectingParent() {
|
|
5010
5010
|
if (!(!this.parent || ki(this.parent.latestValues) || Ma(this.parent.latestValues)))
|
|
@@ -5014,7 +5014,7 @@ function qa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5014
5014
|
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
5015
5015
|
}
|
|
5016
5016
|
createRelativeTarget(s, a, l) {
|
|
5017
|
-
this.relativeParent = s, this.linkedParentVersion = s.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
5017
|
+
this.relativeParent = s, this.linkedParentVersion = s.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = st(), this.relativeTargetOrigin = st(), yn(this.relativeTargetOrigin, a, l), wt(this.relativeTarget, this.relativeTargetOrigin);
|
|
5018
5018
|
}
|
|
5019
5019
|
removeRelativeTarget() {
|
|
5020
5020
|
this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -5022,14 +5022,14 @@ function qa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5022
5022
|
calcProjection() {
|
|
5023
5023
|
const s = this.getLead(), a = !!this.resumingFrom || this !== s;
|
|
5024
5024
|
let l = !0;
|
|
5025
|
-
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (l = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (l = !1), this.resolvedRelativeTargetAt ===
|
|
5025
|
+
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (l = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (l = !1), this.resolvedRelativeTargetAt === ut.timestamp && (l = !1), l)
|
|
5026
5026
|
return;
|
|
5027
5027
|
const { layout: u, layoutId: c } = this.options;
|
|
5028
5028
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || c))
|
|
5029
5029
|
return;
|
|
5030
5030
|
wt(this.layoutCorrected, this.layout.layoutBox);
|
|
5031
5031
|
const d = this.treeScale.x, f = this.treeScale.y;
|
|
5032
|
-
yh(this.layoutCorrected, this.treeScale, this.path, a), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox, s.targetWithTransforms =
|
|
5032
|
+
yh(this.layoutCorrected, this.treeScale, this.path, a), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox, s.targetWithTransforms = st());
|
|
5033
5033
|
const { target: p } = s;
|
|
5034
5034
|
if (!p) {
|
|
5035
5035
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -5051,17 +5051,17 @@ function qa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5051
5051
|
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
5052
5052
|
}
|
|
5053
5053
|
createProjectionDeltas() {
|
|
5054
|
-
this.prevProjectionDelta =
|
|
5054
|
+
this.prevProjectionDelta = se(), this.projectionDelta = se(), this.projectionDeltaWithTransform = se();
|
|
5055
5055
|
}
|
|
5056
5056
|
setAnimationOrigin(s, a = !1) {
|
|
5057
|
-
const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, d =
|
|
5057
|
+
const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, d = se();
|
|
5058
5058
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
5059
|
-
const f =
|
|
5059
|
+
const f = st(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, v = p !== m, b = this.getStack(), x = !b || b.members.length <= 1, S = !!(v && !x && this.options.crossfade === !0 && !this.path.some(yf));
|
|
5060
5060
|
this.animationProgress = 0;
|
|
5061
5061
|
let k;
|
|
5062
5062
|
this.mixTargetDelta = (A) => {
|
|
5063
5063
|
const P = A / 1e3;
|
|
5064
|
-
Eo(d.x, s.x, P), Eo(d.y, s.y, P), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (yn(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), bf(this.relativeTarget, this.relativeTargetOrigin, f, P), k && Yh(this.relativeTarget, k) && (this.isProjectionDirty = !1), k || (k =
|
|
5064
|
+
Eo(d.x, s.x, P), Eo(d.y, s.y, P), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (yn(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), bf(this.relativeTarget, this.relativeTargetOrigin, f, P), k && Yh(this.relativeTarget, k) && (this.isProjectionDirty = !1), k || (k = st()), wt(k, this.relativeTarget)), v && (this.animationValues = c, Zh(c, u, this.latestValues, P, S, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = P;
|
|
5065
5065
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
5066
5066
|
}
|
|
5067
5067
|
startAnimation(s) {
|
|
@@ -5094,13 +5094,13 @@ function qa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5094
5094
|
let { targetWithTransforms: a, target: l, layout: u, latestValues: c } = s;
|
|
5095
5095
|
if (!(!a || !l || !u)) {
|
|
5096
5096
|
if (this !== s && this.layout && u && Xa(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
|
|
5097
|
-
l = this.target ||
|
|
5097
|
+
l = this.target || st();
|
|
5098
5098
|
const d = pt(this.layout.layoutBox.x);
|
|
5099
5099
|
l.x.min = s.target.x.min, l.x.max = l.x.min + d;
|
|
5100
5100
|
const f = pt(this.layout.layoutBox.y);
|
|
5101
5101
|
l.y.min = s.target.y.min, l.y.max = l.y.min + f;
|
|
5102
5102
|
}
|
|
5103
|
-
wt(a, l),
|
|
5103
|
+
wt(a, l), le(a, c), je(this.projectionDeltaWithTransform, this.layoutCorrected, a, c);
|
|
5104
5104
|
}
|
|
5105
5105
|
}
|
|
5106
5106
|
registerSharedNode(s, a) {
|
|
@@ -5213,9 +5213,9 @@ function cf(t) {
|
|
|
5213
5213
|
const d = o ? e.measuredBox[c] : e.layoutBox[c], f = pt(n[c]);
|
|
5214
5214
|
d.max = d.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[c].max = t.relativeTarget[c].min + f);
|
|
5215
5215
|
});
|
|
5216
|
-
const s =
|
|
5216
|
+
const s = se();
|
|
5217
5217
|
je(s, n, e.layoutBox);
|
|
5218
|
-
const a =
|
|
5218
|
+
const a = se();
|
|
5219
5219
|
o ? je(a, t.applyTransform(i, !0), e.measuredBox) : je(a, n, e.layoutBox);
|
|
5220
5220
|
const l = !Ua(s);
|
|
5221
5221
|
let u = !1;
|
|
@@ -5224,9 +5224,9 @@ function cf(t) {
|
|
|
5224
5224
|
if (c && !c.resumeFrom) {
|
|
5225
5225
|
const { snapshot: d, layout: f } = c;
|
|
5226
5226
|
if (d && f) {
|
|
5227
|
-
const p =
|
|
5227
|
+
const p = st();
|
|
5228
5228
|
yn(p, e.layoutBox, d.layoutBox);
|
|
5229
|
-
const m =
|
|
5229
|
+
const m = st();
|
|
5230
5230
|
yn(m, n, f.layoutBox), Ha(p, m) || (u = !0), c.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = p, t.relativeParent = c);
|
|
5231
5231
|
}
|
|
5232
5232
|
}
|
|
@@ -5294,9 +5294,9 @@ function yf(t) {
|
|
|
5294
5294
|
const xf = {
|
|
5295
5295
|
duration: 0.45,
|
|
5296
5296
|
ease: [0.4, 0, 0.1, 1]
|
|
5297
|
-
},
|
|
5297
|
+
}, Io = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ro = Io("applewebkit/") && !Io("chrome/") ? Math.round : yt;
|
|
5298
5298
|
function Mo(t) {
|
|
5299
|
-
t.min =
|
|
5299
|
+
t.min = Ro(t.min), t.max = Ro(t.max);
|
|
5300
5300
|
}
|
|
5301
5301
|
function wf(t) {
|
|
5302
5302
|
Mo(t.x), Mo(t.y);
|
|
@@ -5332,7 +5332,7 @@ const Sf = qa({
|
|
|
5332
5332
|
t.style.transform = e !== void 0 ? e : "none";
|
|
5333
5333
|
},
|
|
5334
5334
|
checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
|
|
5335
|
-
}), dr =
|
|
5335
|
+
}), dr = ee({
|
|
5336
5336
|
transformPagePoint: (t) => t,
|
|
5337
5337
|
isStatic: !1,
|
|
5338
5338
|
reducedMotion: "never"
|
|
@@ -5386,7 +5386,7 @@ function Ef({ children: t, isPresent: e, anchorX: n, root: i }) {
|
|
|
5386
5386
|
top: 0,
|
|
5387
5387
|
left: 0,
|
|
5388
5388
|
right: 0
|
|
5389
|
-
}), { nonce: a } =
|
|
5389
|
+
}), { nonce: a } = dt(dr), l = t.props?.ref ?? t?.ref, u = Pf(o, l);
|
|
5390
5390
|
return Di(() => {
|
|
5391
5391
|
const { width: c, height: d, top: f, left: p, right: m } = s.current;
|
|
5392
5392
|
if (e || !o.current || !c || !d)
|
|
@@ -5410,7 +5410,7 @@ function Ef({ children: t, isPresent: e, anchorX: n, root: i }) {
|
|
|
5410
5410
|
}, [e]), h.jsx(Tf, { isPresent: e, childRef: o, sizeRef: s, children: W.cloneElement(t, { ref: u }) });
|
|
5411
5411
|
}
|
|
5412
5412
|
const Af = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: r, presenceAffectsLayout: o, mode: s, anchorX: a, root: l }) => {
|
|
5413
|
-
const u = _i(
|
|
5413
|
+
const u = _i(If), c = Li();
|
|
5414
5414
|
let d = !0, f = X(() => (d = !1, {
|
|
5415
5415
|
id: c,
|
|
5416
5416
|
initial: e,
|
|
@@ -5429,17 +5429,17 @@ const Af = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom:
|
|
|
5429
5429
|
u.forEach((p, m) => u.set(m, !1));
|
|
5430
5430
|
}, [n]), W.useEffect(() => {
|
|
5431
5431
|
!n && !u.size && i && i();
|
|
5432
|
-
}, [n]), s === "popLayout" && (t = h.jsx(Ef, { isPresent: n, anchorX: a, root: l, children: t })), h.jsx(
|
|
5432
|
+
}, [n]), s === "popLayout" && (t = h.jsx(Ef, { isPresent: n, anchorX: a, root: l, children: t })), h.jsx(In.Provider, { value: f, children: t });
|
|
5433
5433
|
};
|
|
5434
|
-
function
|
|
5434
|
+
function If() {
|
|
5435
5435
|
return /* @__PURE__ */ new Map();
|
|
5436
5436
|
}
|
|
5437
5437
|
function Ja(t = !0) {
|
|
5438
|
-
const e =
|
|
5438
|
+
const e = dt(In);
|
|
5439
5439
|
if (e === null)
|
|
5440
5440
|
return [!0, null];
|
|
5441
5441
|
const { isPresent: n, onExitComplete: i, register: r } = e, o = Li();
|
|
5442
|
-
|
|
5442
|
+
rt(() => {
|
|
5443
5443
|
if (t)
|
|
5444
5444
|
return r(o);
|
|
5445
5445
|
}, [t]);
|
|
@@ -5454,8 +5454,8 @@ function Lo(t) {
|
|
|
5454
5454
|
}), e;
|
|
5455
5455
|
}
|
|
5456
5456
|
const Lt = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presenceAffectsLayout: r = !0, mode: o = "sync", propagate: s = !1, anchorX: a = "left", root: l }) => {
|
|
5457
|
-
const [u, c] = Ja(s), d = X(() => Lo(t), [t]), f = s && !u ? [] : d.map(Ze), p = Q(!0), m = Q(d), v = _i(() => /* @__PURE__ */ new Map()), b = Q(/* @__PURE__ */ new Set()), [x, S] =
|
|
5458
|
-
|
|
5457
|
+
const [u, c] = Ja(s), d = X(() => Lo(t), [t]), f = s && !u ? [] : d.map(Ze), p = Q(!0), m = Q(d), v = _i(() => /* @__PURE__ */ new Map()), b = Q(/* @__PURE__ */ new Set()), [x, S] = at(d), [k, A] = at(d);
|
|
5458
|
+
Is(() => {
|
|
5459
5459
|
p.current = !1, m.current = d;
|
|
5460
5460
|
for (let _ = 0; _ < k.length; _++) {
|
|
5461
5461
|
const w = Ze(k[_]);
|
|
@@ -5472,7 +5472,7 @@ const Lt = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presen
|
|
|
5472
5472
|
return o === "wait" && P.length && (_ = P), A(Lo(_)), S(d), null;
|
|
5473
5473
|
}
|
|
5474
5474
|
process.env.NODE_ENV !== "production" && o === "wait" && k.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
5475
|
-
const { forceRender: V } =
|
|
5475
|
+
const { forceRender: V } = dt(Vi);
|
|
5476
5476
|
return h.jsx(h.Fragment, { children: k.map((_) => {
|
|
5477
5477
|
const w = Ze(_), N = s && !u ? !1 : d === k || f.includes(w), G = () => {
|
|
5478
5478
|
if (b.current.has(w))
|
|
@@ -5488,7 +5488,7 @@ const Lt = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presen
|
|
|
5488
5488
|
};
|
|
5489
5489
|
return h.jsx(Af, { isPresent: N, initial: !p.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: r, mode: o, root: l, onExitComplete: N ? void 0 : G, anchorX: a, children: _ }, w);
|
|
5490
5490
|
}) });
|
|
5491
|
-
}, Qa =
|
|
5491
|
+
}, Qa = ee({ strict: !1 }), Do = {
|
|
5492
5492
|
animation: [
|
|
5493
5493
|
"animate",
|
|
5494
5494
|
"variants",
|
|
@@ -5509,7 +5509,7 @@ const Lt = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presen
|
|
|
5509
5509
|
layout: ["layout", "layoutId"]
|
|
5510
5510
|
};
|
|
5511
5511
|
let zo = !1;
|
|
5512
|
-
function
|
|
5512
|
+
function Rf() {
|
|
5513
5513
|
if (zo)
|
|
5514
5514
|
return;
|
|
5515
5515
|
const t = {};
|
|
@@ -5520,7 +5520,7 @@ function If() {
|
|
|
5520
5520
|
Aa(t), zo = !0;
|
|
5521
5521
|
}
|
|
5522
5522
|
function tl() {
|
|
5523
|
-
return
|
|
5523
|
+
return Rf(), gh();
|
|
5524
5524
|
}
|
|
5525
5525
|
function Mf(t) {
|
|
5526
5526
|
const e = tl();
|
|
@@ -5581,7 +5581,7 @@ function Df(t, e, n) {
|
|
|
5581
5581
|
t.draggable && r.startsWith("onDrag")) && (i[r] = t[r]);
|
|
5582
5582
|
return i;
|
|
5583
5583
|
}
|
|
5584
|
-
const jn = /* @__PURE__ */
|
|
5584
|
+
const jn = /* @__PURE__ */ ee({});
|
|
5585
5585
|
function zf(t, e) {
|
|
5586
5586
|
if (Mn(t)) {
|
|
5587
5587
|
const { initial: n, animate: i } = t;
|
|
@@ -5593,7 +5593,7 @@ function zf(t, e) {
|
|
|
5593
5593
|
return t.inherit !== !1 ? e : {};
|
|
5594
5594
|
}
|
|
5595
5595
|
function Vf(t) {
|
|
5596
|
-
const { initial: e, animate: n } = zf(t,
|
|
5596
|
+
const { initial: e, animate: n } = zf(t, dt(jn));
|
|
5597
5597
|
return X(() => ({ initial: e, animate: n }), [Vo(e), Vo(n)]);
|
|
5598
5598
|
}
|
|
5599
5599
|
function Vo(t) {
|
|
@@ -5711,7 +5711,7 @@ function Uf(t, e, n, i) {
|
|
|
5711
5711
|
let c = n ? n.initial === !1 : !1;
|
|
5712
5712
|
c = c || s === !1;
|
|
5713
5713
|
const d = c ? a : s;
|
|
5714
|
-
if (d && typeof d != "boolean" && !
|
|
5714
|
+
if (d && typeof d != "boolean" && !Rn(d)) {
|
|
5715
5715
|
const f = Array.isArray(d) ? d : [d];
|
|
5716
5716
|
for (let p = 0; p < f.length; p++) {
|
|
5717
5717
|
const m = nr(t, f[p]);
|
|
@@ -5733,7 +5733,7 @@ function Uf(t, e, n, i) {
|
|
|
5733
5733
|
return r;
|
|
5734
5734
|
}
|
|
5735
5735
|
const rl = (t) => (e, n) => {
|
|
5736
|
-
const i =
|
|
5736
|
+
const i = dt(jn), r = dt(In), o = () => Wf(t, e, i, r);
|
|
5737
5737
|
return n ? o() : _i(o);
|
|
5738
5738
|
}, Hf = /* @__PURE__ */ rl({
|
|
5739
5739
|
scrapeMotionValuesFromProps: ur,
|
|
@@ -5759,12 +5759,12 @@ function Yf(t, e, n) {
|
|
|
5759
5759
|
else s && (s.current = o);
|
|
5760
5760
|
}, [e]);
|
|
5761
5761
|
}
|
|
5762
|
-
const ol =
|
|
5763
|
-
function
|
|
5762
|
+
const ol = ee({});
|
|
5763
|
+
function Re(t) {
|
|
5764
5764
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
5765
5765
|
}
|
|
5766
5766
|
function qf(t, e, n, i, r, o) {
|
|
5767
|
-
const { visualElement: s } =
|
|
5767
|
+
const { visualElement: s } = dt(jn), a = dt(Qa), l = dt(In), u = dt(dr).reducedMotion, c = Q(null);
|
|
5768
5768
|
i = i || a.renderer, !c.current && i && (c.current = i(t, {
|
|
5769
5769
|
visualState: e,
|
|
5770
5770
|
parent: s,
|
|
@@ -5774,16 +5774,16 @@ function qf(t, e, n, i, r, o) {
|
|
|
5774
5774
|
reducedMotionConfig: u,
|
|
5775
5775
|
isSVG: o
|
|
5776
5776
|
}));
|
|
5777
|
-
const d = c.current, f =
|
|
5777
|
+
const d = c.current, f = dt(ol);
|
|
5778
5778
|
d && !d.projection && r && (d.type === "html" || d.type === "svg") && Xf(c.current, n, r, f);
|
|
5779
5779
|
const p = Q(!1);
|
|
5780
5780
|
Di(() => {
|
|
5781
5781
|
d && p.current && d.update(n, l);
|
|
5782
5782
|
});
|
|
5783
5783
|
const m = n[ha], v = Q(!!m && !window.MotionHandoffIsComplete?.(m) && window.MotionHasOptimisedAnimation?.(m));
|
|
5784
|
-
return
|
|
5784
|
+
return Is(() => {
|
|
5785
5785
|
d && (p.current = !0, window.MotionIsMounted = !0, d.updateFeatures(), d.scheduleRenderMicrotask(), v.current && d.animationState && d.animationState.animateChanges());
|
|
5786
|
-
}),
|
|
5786
|
+
}), rt(() => {
|
|
5787
5787
|
d && (!v.current && d.animationState && d.animationState.animateChanges(), v.current && (queueMicrotask(() => {
|
|
5788
5788
|
window.MotionHandoffMarkAsComplete?.(m);
|
|
5789
5789
|
}), v.current = !1), d.enteringChildren = void 0);
|
|
@@ -5794,7 +5794,7 @@ function Xf(t, e, n, i) {
|
|
|
5794
5794
|
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : sl(t.parent)), t.projection.setOptions({
|
|
5795
5795
|
layoutId: r,
|
|
5796
5796
|
layout: o,
|
|
5797
|
-
alwaysMeasureLayout: !!s || a &&
|
|
5797
|
+
alwaysMeasureLayout: !!s || a && Re(a),
|
|
5798
5798
|
visualElement: t,
|
|
5799
5799
|
/**
|
|
5800
5800
|
* TODO: Update options in an effect. This could be tricky as it'll be too late
|
|
@@ -5820,7 +5820,7 @@ function Hn(t, { forwardMotionProps: e = !1, type: n } = {}, i, r) {
|
|
|
5820
5820
|
function a(u, c) {
|
|
5821
5821
|
let d;
|
|
5822
5822
|
const f = {
|
|
5823
|
-
...
|
|
5823
|
+
...dt(dr),
|
|
5824
5824
|
...u,
|
|
5825
5825
|
layoutId: Zf(u)
|
|
5826
5826
|
}, { isStatic: p } = f, m = Vf(u), v = s(u, p);
|
|
@@ -5836,11 +5836,11 @@ function Hn(t, { forwardMotionProps: e = !1, type: n } = {}, i, r) {
|
|
|
5836
5836
|
return l[Kf] = t, l;
|
|
5837
5837
|
}
|
|
5838
5838
|
function Zf({ layoutId: t }) {
|
|
5839
|
-
const e =
|
|
5839
|
+
const e = dt(Vi).id;
|
|
5840
5840
|
return e && t !== void 0 ? e + "-" + t : t;
|
|
5841
5841
|
}
|
|
5842
5842
|
function Jf(t, e) {
|
|
5843
|
-
const n =
|
|
5843
|
+
const n = dt(Qa).strict;
|
|
5844
5844
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
|
5845
5845
|
const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
5846
5846
|
t.ignoreStrict ? ge(!1, i, "lazy-strict-mode") : Mt(!1, i, "lazy-strict-mode");
|
|
@@ -5883,7 +5883,7 @@ class np extends Ut {
|
|
|
5883
5883
|
}
|
|
5884
5884
|
updateAnimationControlsSubscription() {
|
|
5885
5885
|
const { animate: e } = this.node.getProps();
|
|
5886
|
-
|
|
5886
|
+
Rn(e) && (this.unmountControls = e.subscribe(this.node));
|
|
5887
5887
|
}
|
|
5888
5888
|
/**
|
|
5889
5889
|
* Subscribe any provided AnimationControls to the component's VisualElement
|
|
@@ -5960,7 +5960,7 @@ class ll {
|
|
|
5960
5960
|
const p = Kn(this.lastMoveEventInfo, this.history), m = this.startEvent !== null, v = ap(p.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
|
|
5961
5961
|
if (!m && !v)
|
|
5962
5962
|
return;
|
|
5963
|
-
const { point: b } = p, { timestamp: x } =
|
|
5963
|
+
const { point: b } = p, { timestamp: x } = ut;
|
|
5964
5964
|
this.history.push({ ...b, timestamp: x });
|
|
5965
5965
|
const { onStart: S, onMove: k } = this.handlers;
|
|
5966
5966
|
m || (S && S(this.lastMoveEvent, p), this.startEvent = this.lastMoveEvent), k && k(this.lastMoveEvent, p);
|
|
@@ -5976,7 +5976,7 @@ class ll {
|
|
|
5976
5976
|
}, !sr(e))
|
|
5977
5977
|
return;
|
|
5978
5978
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.distanceThreshold = s, this.contextWindow = r || window;
|
|
5979
|
-
const l = He(e), u = Gn(l, this.transformPagePoint), { point: c } = u, { timestamp: d } =
|
|
5979
|
+
const l = He(e), u = Gn(l, this.transformPagePoint), { point: c } = u, { timestamp: d } = ut;
|
|
5980
5980
|
this.history = [{ ...c, timestamp: d }];
|
|
5981
5981
|
const { onSessionStart: f } = n;
|
|
5982
5982
|
f && f(e, Kn(u, this.history)), this.removeListeners = $e(Le(this.contextWindow, "pointermove", this.handlePointerMove), Le(this.contextWindow, "pointerup", this.handlePointerUp), Le(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
|
|
@@ -6121,7 +6121,7 @@ function Wo(t, e) {
|
|
|
6121
6121
|
const mp = /* @__PURE__ */ new WeakMap();
|
|
6122
6122
|
class vp {
|
|
6123
6123
|
constructor(e) {
|
|
6124
|
-
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic =
|
|
6124
|
+
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = st(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
|
|
6125
6125
|
}
|
|
6126
6126
|
start(e, { snapToCursor: n = !1, distanceThreshold: i } = {}) {
|
|
6127
6127
|
const { presenceContext: r } = this.visualElement;
|
|
@@ -6207,13 +6207,13 @@ class vp {
|
|
|
6207
6207
|
}
|
|
6208
6208
|
resolveConstraints() {
|
|
6209
6209
|
const { dragConstraints: e, dragElastic: n } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
|
|
6210
|
-
e &&
|
|
6210
|
+
e && Re(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && i ? this.constraints = dp(i.layoutBox, e) : this.constraints = !1, this.elastic = gp(n), r !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && vt((o) => {
|
|
6211
6211
|
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = pp(i.layoutBox[o], this.constraints[o]));
|
|
6212
6212
|
});
|
|
6213
6213
|
}
|
|
6214
6214
|
resolveRefConstraints() {
|
|
6215
6215
|
const { dragConstraints: e, onMeasureDragConstraints: n } = this.getProps();
|
|
6216
|
-
if (!e || !
|
|
6216
|
+
if (!e || !Re(e))
|
|
6217
6217
|
return !1;
|
|
6218
6218
|
const i = e.current;
|
|
6219
6219
|
Mt(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
|
|
@@ -6224,7 +6224,7 @@ class vp {
|
|
|
6224
6224
|
let s = hp(r.layout.layoutBox, o);
|
|
6225
6225
|
if (n) {
|
|
6226
6226
|
const a = n(vh(s));
|
|
6227
|
-
this.hasMutatedConstraints = !!a, a && (s =
|
|
6227
|
+
this.hasMutatedConstraints = !!a, a && (s = Ra(a));
|
|
6228
6228
|
}
|
|
6229
6229
|
return s;
|
|
6230
6230
|
}
|
|
@@ -6293,7 +6293,7 @@ class vp {
|
|
|
6293
6293
|
if (!this.visualElement.current)
|
|
6294
6294
|
return;
|
|
6295
6295
|
const { drag: e, dragConstraints: n } = this.getProps(), { projection: i } = this.visualElement;
|
|
6296
|
-
if (!
|
|
6296
|
+
if (!Re(n) || !i || !this.constraints)
|
|
6297
6297
|
return;
|
|
6298
6298
|
this.stopAnimation();
|
|
6299
6299
|
const r = { x: 0, y: 0 };
|
|
@@ -6321,7 +6321,7 @@ class vp {
|
|
|
6321
6321
|
u && c && !Ca(l.target) && this.start(l);
|
|
6322
6322
|
}), i = () => {
|
|
6323
6323
|
const { dragConstraints: l } = this.getProps();
|
|
6324
|
-
|
|
6324
|
+
Re(l) && l.current && (this.constraints = this.resolveRefConstraints());
|
|
6325
6325
|
}, { projection: r } = this.visualElement, o = r.addEventListener("measure", i);
|
|
6326
6326
|
r && !r.layout && (r.root && r.root.updateScroll(), r.updateLayout()), Y.read(i);
|
|
6327
6327
|
const s = Ne(window, "resize", () => this.scalePositionWithinConstraints()), a = r.addEventListener("didUpdate", (({ delta: l, hasLayoutChanged: u }) => {
|
|
@@ -6446,8 +6446,8 @@ class wp extends Kl {
|
|
|
6446
6446
|
}
|
|
6447
6447
|
}
|
|
6448
6448
|
function ul(t) {
|
|
6449
|
-
const [e, n] = Ja(), i =
|
|
6450
|
-
return h.jsx(wp, { ...t, layoutGroup: i, switchLayoutGroup:
|
|
6449
|
+
const [e, n] = Ja(), i = dt(Vi);
|
|
6450
|
+
return h.jsx(wp, { ...t, layoutGroup: i, switchLayoutGroup: dt(ol), isPresent: e, safeToRemove: n });
|
|
6451
6451
|
}
|
|
6452
6452
|
const kp = {
|
|
6453
6453
|
pan: {
|
|
@@ -6523,13 +6523,13 @@ function Ap({ root: t, ...e }) {
|
|
|
6523
6523
|
const i = qn.get(n), r = JSON.stringify(e);
|
|
6524
6524
|
return i[r] || (i[r] = new IntersectionObserver(Ep, { root: t, ...e })), i[r];
|
|
6525
6525
|
}
|
|
6526
|
-
function
|
|
6526
|
+
function Ip(t, e, n) {
|
|
6527
6527
|
const i = Ap(e);
|
|
6528
6528
|
return Ti.set(t, n), i.observe(t), () => {
|
|
6529
6529
|
Ti.delete(t), i.unobserve(t);
|
|
6530
6530
|
};
|
|
6531
6531
|
}
|
|
6532
|
-
const
|
|
6532
|
+
const Rp = {
|
|
6533
6533
|
some: 0,
|
|
6534
6534
|
all: 1
|
|
6535
6535
|
};
|
|
@@ -6542,7 +6542,7 @@ class Mp extends Ut {
|
|
|
6542
6542
|
const { viewport: e = {} } = this.node.getProps(), { root: n, margin: i, amount: r = "some", once: o } = e, s = {
|
|
6543
6543
|
root: n ? n.current : void 0,
|
|
6544
6544
|
rootMargin: i,
|
|
6545
|
-
threshold: typeof r == "number" ? r :
|
|
6545
|
+
threshold: typeof r == "number" ? r : Rp[r]
|
|
6546
6546
|
}, a = (l) => {
|
|
6547
6547
|
const { isIntersecting: u } = l;
|
|
6548
6548
|
if (this.isInView === u || (this.isInView = u, o && !u && this.hasEnteredView))
|
|
@@ -6551,7 +6551,7 @@ class Mp extends Ut {
|
|
|
6551
6551
|
const { onViewportEnter: c, onViewportLeave: d } = this.node.getProps(), f = u ? c : d;
|
|
6552
6552
|
f && f(l);
|
|
6553
6553
|
};
|
|
6554
|
-
return
|
|
6554
|
+
return Ip(this.node.current, s, a);
|
|
6555
6555
|
}
|
|
6556
6556
|
mount() {
|
|
6557
6557
|
this.startObserver();
|
|
@@ -6905,22 +6905,22 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
6905
6905
|
return r(l, c), c;
|
|
6906
6906
|
};
|
|
6907
6907
|
return o = s, (...l) => o(eg(...l));
|
|
6908
|
-
}, ig = [],
|
|
6908
|
+
}, ig = [], ot = (t) => {
|
|
6909
6909
|
const e = (n) => n[t] || ig;
|
|
6910
6910
|
return e.isThemeGetter = !0, e;
|
|
6911
|
-
}, vl = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, bl = /^\((?:(\w[\w-]*):)?(.+)\)$/i, rg = /^\d+\/\d+$/, og = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sg = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ag = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, lg = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, cg = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
6911
|
+
}, vl = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, bl = /^\((?:(\w[\w-]*):)?(.+)\)$/i, rg = /^\d+\/\d+$/, og = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sg = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ag = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, lg = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, cg = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ie = (t) => rg.test(t), $ = (t) => !!t && !Number.isNaN(Number(t)), _t = (t) => !!t && Number.isInteger(Number(t)), Xn = (t) => t.endsWith("%") && $(t.slice(0, -1)), It = (t) => og.test(t), ug = () => !0, dg = (t) => (
|
|
6912
6912
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
6913
6913
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
6914
6914
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
6915
6915
|
sg.test(t) && !ag.test(t)
|
|
6916
|
-
), yl = () => !1, hg = (t) => lg.test(t), fg = (t) => cg.test(t), pg = (t) => !
|
|
6916
|
+
), yl = () => !1, hg = (t) => lg.test(t), fg = (t) => cg.test(t), pg = (t) => !R(t) && !M(t), gg = (t) => ye(t, kl, yl), R = (t) => vl.test(t), Gt = (t) => ye(t, Sl, dg), Zn = (t) => ye(t, xg, $), Jo = (t) => ye(t, xl, yl), mg = (t) => ye(t, wl, fg), Qe = (t) => ye(t, Cl, hg), M = (t) => bl.test(t), Pe = (t) => xe(t, Sl), vg = (t) => xe(t, wg), Qo = (t) => xe(t, xl), bg = (t) => xe(t, kl), yg = (t) => xe(t, wl), tn = (t) => xe(t, Cl, !0), ye = (t, e, n) => {
|
|
6917
6917
|
const i = vl.exec(t);
|
|
6918
6918
|
return i ? i[1] ? e(i[1]) : n(i[2]) : !1;
|
|
6919
6919
|
}, xe = (t, e, n = !1) => {
|
|
6920
6920
|
const i = bl.exec(t);
|
|
6921
6921
|
return i ? i[1] ? e(i[1]) : n : !1;
|
|
6922
6922
|
}, xl = (t) => t === "position" || t === "percentage", wl = (t) => t === "image" || t === "url", kl = (t) => t === "length" || t === "size" || t === "bg-size", Sl = (t) => t === "length", xg = (t) => t === "number", wg = (t) => t === "family-name", Cl = (t) => t === "shadow", kg = () => {
|
|
6923
|
-
const t =
|
|
6923
|
+
const t = ot("color"), e = ot("font"), n = ot("text"), i = ot("font-weight"), r = ot("tracking"), o = ot("leading"), s = ot("breakpoint"), a = ot("container"), l = ot("spacing"), u = ot("radius"), c = ot("shadow"), d = ot("inset-shadow"), f = ot("text-shadow"), p = ot("drop-shadow"), m = ot("blur"), v = ot("perspective"), b = ot("aspect"), x = ot("ease"), S = ot("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
|
|
6924
6924
|
"center",
|
|
6925
6925
|
"top",
|
|
6926
6926
|
"bottom",
|
|
@@ -6938,14 +6938,14 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
6938
6938
|
"bottom-left",
|
|
6939
6939
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
6940
6940
|
"left-bottom"
|
|
6941
|
-
], P = () => [...A(), M,
|
|
6942
|
-
span: ["full", _t, M,
|
|
6943
|
-
}, _t, M,
|
|
6944
|
-
position: [M,
|
|
6945
|
-
}],
|
|
6941
|
+
], P = () => [...A(), M, R], V = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], w = () => [M, R, l], N = () => [ie, "full", "auto", ...w()], G = () => [_t, "none", "subgrid", M, R], q = () => ["auto", {
|
|
6942
|
+
span: ["full", _t, M, R]
|
|
6943
|
+
}, _t, M, R], H = () => [_t, "auto", M, R], ct = () => ["auto", "min", "max", "fr", M, R], y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], D = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], O = () => ["auto", ...w()], z = () => [ie, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], T = () => [t, M, R], tt = () => [...A(), Qo, Jo, {
|
|
6944
|
+
position: [M, R]
|
|
6945
|
+
}], lt = () => ["no-repeat", {
|
|
6946
6946
|
repeat: ["", "x", "y", "space", "round"]
|
|
6947
6947
|
}], g = () => ["auto", "cover", "contain", bg, gg, {
|
|
6948
|
-
size: [M,
|
|
6948
|
+
size: [M, R]
|
|
6949
6949
|
}], C = () => [Xn, Pe, Gt], j = () => [
|
|
6950
6950
|
// Deprecated since Tailwind CSS v4.0.0
|
|
6951
6951
|
"",
|
|
@@ -6953,36 +6953,36 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
6953
6953
|
"full",
|
|
6954
6954
|
u,
|
|
6955
6955
|
M,
|
|
6956
|
-
|
|
6957
|
-
], L = () => ["", $, Pe, Gt],
|
|
6956
|
+
R
|
|
6957
|
+
], L = () => ["", $, Pe, Gt], et = () => ["solid", "dashed", "dotted", "double"], Dt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], B = () => [$, Xn, Qo, Jo], At = () => [
|
|
6958
6958
|
// Deprecated since Tailwind CSS v4.0.0
|
|
6959
6959
|
"",
|
|
6960
6960
|
"none",
|
|
6961
6961
|
m,
|
|
6962
6962
|
M,
|
|
6963
|
-
|
|
6964
|
-
], zt = () => ["none", $, M,
|
|
6963
|
+
R
|
|
6964
|
+
], zt = () => ["none", $, M, R], ne = () => ["none", $, M, R], Ln = () => [$, M, R], Ge = () => [ie, "full", ...w()];
|
|
6965
6965
|
return {
|
|
6966
6966
|
cacheSize: 500,
|
|
6967
6967
|
theme: {
|
|
6968
6968
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
6969
6969
|
aspect: ["video"],
|
|
6970
|
-
blur: [
|
|
6971
|
-
breakpoint: [
|
|
6970
|
+
blur: [It],
|
|
6971
|
+
breakpoint: [It],
|
|
6972
6972
|
color: [ug],
|
|
6973
|
-
container: [
|
|
6974
|
-
"drop-shadow": [
|
|
6973
|
+
container: [It],
|
|
6974
|
+
"drop-shadow": [It],
|
|
6975
6975
|
ease: ["in", "out", "in-out"],
|
|
6976
6976
|
font: [pg],
|
|
6977
6977
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
6978
|
-
"inset-shadow": [
|
|
6978
|
+
"inset-shadow": [It],
|
|
6979
6979
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
6980
6980
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
6981
|
-
radius: [
|
|
6982
|
-
shadow: [
|
|
6981
|
+
radius: [It],
|
|
6982
|
+
shadow: [It],
|
|
6983
6983
|
spacing: ["px", $],
|
|
6984
|
-
text: [
|
|
6985
|
-
"text-shadow": [
|
|
6984
|
+
text: [It],
|
|
6985
|
+
"text-shadow": [It],
|
|
6986
6986
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
6987
6987
|
},
|
|
6988
6988
|
classGroups: {
|
|
@@ -6994,7 +6994,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
6994
6994
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
6995
6995
|
*/
|
|
6996
6996
|
aspect: [{
|
|
6997
|
-
aspect: ["auto", "square",
|
|
6997
|
+
aspect: ["auto", "square", ie, R, M, b]
|
|
6998
6998
|
}],
|
|
6999
6999
|
/**
|
|
7000
7000
|
* Container
|
|
@@ -7007,7 +7007,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7007
7007
|
* @see https://tailwindcss.com/docs/columns
|
|
7008
7008
|
*/
|
|
7009
7009
|
columns: [{
|
|
7010
|
-
columns: [$,
|
|
7010
|
+
columns: [$, R, M, a]
|
|
7011
7011
|
}],
|
|
7012
7012
|
/**
|
|
7013
7013
|
* Break After
|
|
@@ -7207,7 +7207,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7207
7207
|
* @see https://tailwindcss.com/docs/z-index
|
|
7208
7208
|
*/
|
|
7209
7209
|
z: [{
|
|
7210
|
-
z: [_t, "auto", M,
|
|
7210
|
+
z: [_t, "auto", M, R]
|
|
7211
7211
|
}],
|
|
7212
7212
|
// ------------------------
|
|
7213
7213
|
// --- Flexbox and Grid ---
|
|
@@ -7217,7 +7217,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7217
7217
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
7218
7218
|
*/
|
|
7219
7219
|
basis: [{
|
|
7220
|
-
basis: [
|
|
7220
|
+
basis: [ie, "full", "auto", a, ...w()]
|
|
7221
7221
|
}],
|
|
7222
7222
|
/**
|
|
7223
7223
|
* Flex Direction
|
|
@@ -7238,28 +7238,28 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7238
7238
|
* @see https://tailwindcss.com/docs/flex
|
|
7239
7239
|
*/
|
|
7240
7240
|
flex: [{
|
|
7241
|
-
flex: [$,
|
|
7241
|
+
flex: [$, ie, "auto", "initial", "none", R]
|
|
7242
7242
|
}],
|
|
7243
7243
|
/**
|
|
7244
7244
|
* Flex Grow
|
|
7245
7245
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
7246
7246
|
*/
|
|
7247
7247
|
grow: [{
|
|
7248
|
-
grow: ["", $, M,
|
|
7248
|
+
grow: ["", $, M, R]
|
|
7249
7249
|
}],
|
|
7250
7250
|
/**
|
|
7251
7251
|
* Flex Shrink
|
|
7252
7252
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
7253
7253
|
*/
|
|
7254
7254
|
shrink: [{
|
|
7255
|
-
shrink: ["", $, M,
|
|
7255
|
+
shrink: ["", $, M, R]
|
|
7256
7256
|
}],
|
|
7257
7257
|
/**
|
|
7258
7258
|
* Order
|
|
7259
7259
|
* @see https://tailwindcss.com/docs/order
|
|
7260
7260
|
*/
|
|
7261
7261
|
order: [{
|
|
7262
|
-
order: [_t, "first", "last", "none", M,
|
|
7262
|
+
order: [_t, "first", "last", "none", M, R]
|
|
7263
7263
|
}],
|
|
7264
7264
|
/**
|
|
7265
7265
|
* Grid Template Columns
|
|
@@ -7329,14 +7329,14 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7329
7329
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
7330
7330
|
*/
|
|
7331
7331
|
"auto-cols": [{
|
|
7332
|
-
"auto-cols":
|
|
7332
|
+
"auto-cols": ct()
|
|
7333
7333
|
}],
|
|
7334
7334
|
/**
|
|
7335
7335
|
* Grid Auto Rows
|
|
7336
7336
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
7337
7337
|
*/
|
|
7338
7338
|
"auto-rows": [{
|
|
7339
|
-
"auto-rows":
|
|
7339
|
+
"auto-rows": ct()
|
|
7340
7340
|
}],
|
|
7341
7341
|
/**
|
|
7342
7342
|
* Gap
|
|
@@ -7678,14 +7678,14 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7678
7678
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
7679
7679
|
*/
|
|
7680
7680
|
"font-stretch": [{
|
|
7681
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Xn,
|
|
7681
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Xn, R]
|
|
7682
7682
|
}],
|
|
7683
7683
|
/**
|
|
7684
7684
|
* Font Family
|
|
7685
7685
|
* @see https://tailwindcss.com/docs/font-family
|
|
7686
7686
|
*/
|
|
7687
7687
|
"font-family": [{
|
|
7688
|
-
font: [vg,
|
|
7688
|
+
font: [vg, R, e]
|
|
7689
7689
|
}],
|
|
7690
7690
|
/**
|
|
7691
7691
|
* Font Variant Numeric
|
|
@@ -7722,7 +7722,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7722
7722
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
7723
7723
|
*/
|
|
7724
7724
|
tracking: [{
|
|
7725
|
-
tracking: [r, M,
|
|
7725
|
+
tracking: [r, M, R]
|
|
7726
7726
|
}],
|
|
7727
7727
|
/**
|
|
7728
7728
|
* Line Clamp
|
|
@@ -7747,7 +7747,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7747
7747
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
7748
7748
|
*/
|
|
7749
7749
|
"list-image": [{
|
|
7750
|
-
"list-image": ["none", M,
|
|
7750
|
+
"list-image": ["none", M, R]
|
|
7751
7751
|
}],
|
|
7752
7752
|
/**
|
|
7753
7753
|
* List Style Position
|
|
@@ -7761,7 +7761,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7761
7761
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
7762
7762
|
*/
|
|
7763
7763
|
"list-style-type": [{
|
|
7764
|
-
list: ["disc", "decimal", "none", M,
|
|
7764
|
+
list: ["disc", "decimal", "none", M, R]
|
|
7765
7765
|
}],
|
|
7766
7766
|
/**
|
|
7767
7767
|
* Text Alignment
|
|
@@ -7795,7 +7795,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7795
7795
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
7796
7796
|
*/
|
|
7797
7797
|
"text-decoration-style": [{
|
|
7798
|
-
decoration: [...
|
|
7798
|
+
decoration: [...et(), "wavy"]
|
|
7799
7799
|
}],
|
|
7800
7800
|
/**
|
|
7801
7801
|
* Text Decoration Thickness
|
|
@@ -7816,7 +7816,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7816
7816
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
7817
7817
|
*/
|
|
7818
7818
|
"underline-offset": [{
|
|
7819
|
-
"underline-offset": [$, "auto", M,
|
|
7819
|
+
"underline-offset": [$, "auto", M, R]
|
|
7820
7820
|
}],
|
|
7821
7821
|
/**
|
|
7822
7822
|
* Text Transform
|
|
@@ -7847,7 +7847,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7847
7847
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
7848
7848
|
*/
|
|
7849
7849
|
"vertical-align": [{
|
|
7850
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", M,
|
|
7850
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", M, R]
|
|
7851
7851
|
}],
|
|
7852
7852
|
/**
|
|
7853
7853
|
* Whitespace
|
|
@@ -7882,7 +7882,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7882
7882
|
* @see https://tailwindcss.com/docs/content
|
|
7883
7883
|
*/
|
|
7884
7884
|
content: [{
|
|
7885
|
-
content: ["none", M,
|
|
7885
|
+
content: ["none", M, R]
|
|
7886
7886
|
}],
|
|
7887
7887
|
// -------------------
|
|
7888
7888
|
// --- Backgrounds ---
|
|
@@ -7913,14 +7913,14 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7913
7913
|
* @see https://tailwindcss.com/docs/background-position
|
|
7914
7914
|
*/
|
|
7915
7915
|
"bg-position": [{
|
|
7916
|
-
bg:
|
|
7916
|
+
bg: tt()
|
|
7917
7917
|
}],
|
|
7918
7918
|
/**
|
|
7919
7919
|
* Background Repeat
|
|
7920
7920
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
7921
7921
|
*/
|
|
7922
7922
|
"bg-repeat": [{
|
|
7923
|
-
bg:
|
|
7923
|
+
bg: lt()
|
|
7924
7924
|
}],
|
|
7925
7925
|
/**
|
|
7926
7926
|
* Background Size
|
|
@@ -7937,9 +7937,9 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
7937
7937
|
bg: ["none", {
|
|
7938
7938
|
linear: [{
|
|
7939
7939
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
7940
|
-
}, _t, M,
|
|
7941
|
-
radial: ["", M,
|
|
7942
|
-
conic: [_t, M,
|
|
7940
|
+
}, _t, M, R],
|
|
7941
|
+
radial: ["", M, R],
|
|
7942
|
+
conic: [_t, M, R]
|
|
7943
7943
|
}, yg, mg]
|
|
7944
7944
|
}],
|
|
7945
7945
|
/**
|
|
@@ -8191,14 +8191,14 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8191
8191
|
* @see https://tailwindcss.com/docs/border-style
|
|
8192
8192
|
*/
|
|
8193
8193
|
"border-style": [{
|
|
8194
|
-
border: [...
|
|
8194
|
+
border: [...et(), "hidden", "none"]
|
|
8195
8195
|
}],
|
|
8196
8196
|
/**
|
|
8197
8197
|
* Divide Style
|
|
8198
8198
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
8199
8199
|
*/
|
|
8200
8200
|
"divide-style": [{
|
|
8201
|
-
divide: [...
|
|
8201
|
+
divide: [...et(), "hidden", "none"]
|
|
8202
8202
|
}],
|
|
8203
8203
|
/**
|
|
8204
8204
|
* Border Color
|
|
@@ -8275,14 +8275,14 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8275
8275
|
* @see https://tailwindcss.com/docs/outline-style
|
|
8276
8276
|
*/
|
|
8277
8277
|
"outline-style": [{
|
|
8278
|
-
outline: [...
|
|
8278
|
+
outline: [...et(), "none", "hidden"]
|
|
8279
8279
|
}],
|
|
8280
8280
|
/**
|
|
8281
8281
|
* Outline Offset
|
|
8282
8282
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
8283
8283
|
*/
|
|
8284
8284
|
"outline-offset": [{
|
|
8285
|
-
"outline-offset": [$, M,
|
|
8285
|
+
"outline-offset": [$, M, R]
|
|
8286
8286
|
}],
|
|
8287
8287
|
/**
|
|
8288
8288
|
* Outline Width
|
|
@@ -8408,7 +8408,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8408
8408
|
* @see https://tailwindcss.com/docs/opacity
|
|
8409
8409
|
*/
|
|
8410
8410
|
opacity: [{
|
|
8411
|
-
opacity: [$, M,
|
|
8411
|
+
opacity: [$, M, R]
|
|
8412
8412
|
}],
|
|
8413
8413
|
/**
|
|
8414
8414
|
* Mix Blend Mode
|
|
@@ -8530,7 +8530,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8530
8530
|
"mask-y-to": T()
|
|
8531
8531
|
}],
|
|
8532
8532
|
"mask-image-radial": [{
|
|
8533
|
-
"mask-radial": [M,
|
|
8533
|
+
"mask-radial": [M, R]
|
|
8534
8534
|
}],
|
|
8535
8535
|
"mask-image-radial-from-pos": [{
|
|
8536
8536
|
"mask-radial-from": B()
|
|
@@ -8590,14 +8590,14 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8590
8590
|
* @see https://tailwindcss.com/docs/mask-position
|
|
8591
8591
|
*/
|
|
8592
8592
|
"mask-position": [{
|
|
8593
|
-
mask:
|
|
8593
|
+
mask: tt()
|
|
8594
8594
|
}],
|
|
8595
8595
|
/**
|
|
8596
8596
|
* Mask Repeat
|
|
8597
8597
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
8598
8598
|
*/
|
|
8599
8599
|
"mask-repeat": [{
|
|
8600
|
-
mask:
|
|
8600
|
+
mask: lt()
|
|
8601
8601
|
}],
|
|
8602
8602
|
/**
|
|
8603
8603
|
* Mask Size
|
|
@@ -8618,7 +8618,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8618
8618
|
* @see https://tailwindcss.com/docs/mask-image
|
|
8619
8619
|
*/
|
|
8620
8620
|
"mask-image": [{
|
|
8621
|
-
mask: ["none", M,
|
|
8621
|
+
mask: ["none", M, R]
|
|
8622
8622
|
}],
|
|
8623
8623
|
// ---------------
|
|
8624
8624
|
// --- Filters ---
|
|
@@ -8633,7 +8633,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8633
8633
|
"",
|
|
8634
8634
|
"none",
|
|
8635
8635
|
M,
|
|
8636
|
-
|
|
8636
|
+
R
|
|
8637
8637
|
]
|
|
8638
8638
|
}],
|
|
8639
8639
|
/**
|
|
@@ -8648,14 +8648,14 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8648
8648
|
* @see https://tailwindcss.com/docs/brightness
|
|
8649
8649
|
*/
|
|
8650
8650
|
brightness: [{
|
|
8651
|
-
brightness: [$, M,
|
|
8651
|
+
brightness: [$, M, R]
|
|
8652
8652
|
}],
|
|
8653
8653
|
/**
|
|
8654
8654
|
* Contrast
|
|
8655
8655
|
* @see https://tailwindcss.com/docs/contrast
|
|
8656
8656
|
*/
|
|
8657
8657
|
contrast: [{
|
|
8658
|
-
contrast: [$, M,
|
|
8658
|
+
contrast: [$, M, R]
|
|
8659
8659
|
}],
|
|
8660
8660
|
/**
|
|
8661
8661
|
* Drop Shadow
|
|
@@ -8683,35 +8683,35 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8683
8683
|
* @see https://tailwindcss.com/docs/grayscale
|
|
8684
8684
|
*/
|
|
8685
8685
|
grayscale: [{
|
|
8686
|
-
grayscale: ["", $, M,
|
|
8686
|
+
grayscale: ["", $, M, R]
|
|
8687
8687
|
}],
|
|
8688
8688
|
/**
|
|
8689
8689
|
* Hue Rotate
|
|
8690
8690
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
8691
8691
|
*/
|
|
8692
8692
|
"hue-rotate": [{
|
|
8693
|
-
"hue-rotate": [$, M,
|
|
8693
|
+
"hue-rotate": [$, M, R]
|
|
8694
8694
|
}],
|
|
8695
8695
|
/**
|
|
8696
8696
|
* Invert
|
|
8697
8697
|
* @see https://tailwindcss.com/docs/invert
|
|
8698
8698
|
*/
|
|
8699
8699
|
invert: [{
|
|
8700
|
-
invert: ["", $, M,
|
|
8700
|
+
invert: ["", $, M, R]
|
|
8701
8701
|
}],
|
|
8702
8702
|
/**
|
|
8703
8703
|
* Saturate
|
|
8704
8704
|
* @see https://tailwindcss.com/docs/saturate
|
|
8705
8705
|
*/
|
|
8706
8706
|
saturate: [{
|
|
8707
|
-
saturate: [$, M,
|
|
8707
|
+
saturate: [$, M, R]
|
|
8708
8708
|
}],
|
|
8709
8709
|
/**
|
|
8710
8710
|
* Sepia
|
|
8711
8711
|
* @see https://tailwindcss.com/docs/sepia
|
|
8712
8712
|
*/
|
|
8713
8713
|
sepia: [{
|
|
8714
|
-
sepia: ["", $, M,
|
|
8714
|
+
sepia: ["", $, M, R]
|
|
8715
8715
|
}],
|
|
8716
8716
|
/**
|
|
8717
8717
|
* Backdrop Filter
|
|
@@ -8723,7 +8723,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8723
8723
|
"",
|
|
8724
8724
|
"none",
|
|
8725
8725
|
M,
|
|
8726
|
-
|
|
8726
|
+
R
|
|
8727
8727
|
]
|
|
8728
8728
|
}],
|
|
8729
8729
|
/**
|
|
@@ -8738,56 +8738,56 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8738
8738
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
8739
8739
|
*/
|
|
8740
8740
|
"backdrop-brightness": [{
|
|
8741
|
-
"backdrop-brightness": [$, M,
|
|
8741
|
+
"backdrop-brightness": [$, M, R]
|
|
8742
8742
|
}],
|
|
8743
8743
|
/**
|
|
8744
8744
|
* Backdrop Contrast
|
|
8745
8745
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
8746
8746
|
*/
|
|
8747
8747
|
"backdrop-contrast": [{
|
|
8748
|
-
"backdrop-contrast": [$, M,
|
|
8748
|
+
"backdrop-contrast": [$, M, R]
|
|
8749
8749
|
}],
|
|
8750
8750
|
/**
|
|
8751
8751
|
* Backdrop Grayscale
|
|
8752
8752
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
8753
8753
|
*/
|
|
8754
8754
|
"backdrop-grayscale": [{
|
|
8755
|
-
"backdrop-grayscale": ["", $, M,
|
|
8755
|
+
"backdrop-grayscale": ["", $, M, R]
|
|
8756
8756
|
}],
|
|
8757
8757
|
/**
|
|
8758
8758
|
* Backdrop Hue Rotate
|
|
8759
8759
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
8760
8760
|
*/
|
|
8761
8761
|
"backdrop-hue-rotate": [{
|
|
8762
|
-
"backdrop-hue-rotate": [$, M,
|
|
8762
|
+
"backdrop-hue-rotate": [$, M, R]
|
|
8763
8763
|
}],
|
|
8764
8764
|
/**
|
|
8765
8765
|
* Backdrop Invert
|
|
8766
8766
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
8767
8767
|
*/
|
|
8768
8768
|
"backdrop-invert": [{
|
|
8769
|
-
"backdrop-invert": ["", $, M,
|
|
8769
|
+
"backdrop-invert": ["", $, M, R]
|
|
8770
8770
|
}],
|
|
8771
8771
|
/**
|
|
8772
8772
|
* Backdrop Opacity
|
|
8773
8773
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
8774
8774
|
*/
|
|
8775
8775
|
"backdrop-opacity": [{
|
|
8776
|
-
"backdrop-opacity": [$, M,
|
|
8776
|
+
"backdrop-opacity": [$, M, R]
|
|
8777
8777
|
}],
|
|
8778
8778
|
/**
|
|
8779
8779
|
* Backdrop Saturate
|
|
8780
8780
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
8781
8781
|
*/
|
|
8782
8782
|
"backdrop-saturate": [{
|
|
8783
|
-
"backdrop-saturate": [$, M,
|
|
8783
|
+
"backdrop-saturate": [$, M, R]
|
|
8784
8784
|
}],
|
|
8785
8785
|
/**
|
|
8786
8786
|
* Backdrop Sepia
|
|
8787
8787
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
8788
8788
|
*/
|
|
8789
8789
|
"backdrop-sepia": [{
|
|
8790
|
-
"backdrop-sepia": ["", $, M,
|
|
8790
|
+
"backdrop-sepia": ["", $, M, R]
|
|
8791
8791
|
}],
|
|
8792
8792
|
// --------------
|
|
8793
8793
|
// --- Tables ---
|
|
@@ -8842,7 +8842,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8842
8842
|
* @see https://tailwindcss.com/docs/transition-property
|
|
8843
8843
|
*/
|
|
8844
8844
|
transition: [{
|
|
8845
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", M,
|
|
8845
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", M, R]
|
|
8846
8846
|
}],
|
|
8847
8847
|
/**
|
|
8848
8848
|
* Transition Behavior
|
|
@@ -8856,28 +8856,28 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8856
8856
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
8857
8857
|
*/
|
|
8858
8858
|
duration: [{
|
|
8859
|
-
duration: [$, "initial", M,
|
|
8859
|
+
duration: [$, "initial", M, R]
|
|
8860
8860
|
}],
|
|
8861
8861
|
/**
|
|
8862
8862
|
* Transition Timing Function
|
|
8863
8863
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
8864
8864
|
*/
|
|
8865
8865
|
ease: [{
|
|
8866
|
-
ease: ["linear", "initial", x, M,
|
|
8866
|
+
ease: ["linear", "initial", x, M, R]
|
|
8867
8867
|
}],
|
|
8868
8868
|
/**
|
|
8869
8869
|
* Transition Delay
|
|
8870
8870
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
8871
8871
|
*/
|
|
8872
8872
|
delay: [{
|
|
8873
|
-
delay: [$, M,
|
|
8873
|
+
delay: [$, M, R]
|
|
8874
8874
|
}],
|
|
8875
8875
|
/**
|
|
8876
8876
|
* Animation
|
|
8877
8877
|
* @see https://tailwindcss.com/docs/animation
|
|
8878
8878
|
*/
|
|
8879
8879
|
animate: [{
|
|
8880
|
-
animate: ["none", S, M,
|
|
8880
|
+
animate: ["none", S, M, R]
|
|
8881
8881
|
}],
|
|
8882
8882
|
// ------------------
|
|
8883
8883
|
// --- Transforms ---
|
|
@@ -8894,7 +8894,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8894
8894
|
* @see https://tailwindcss.com/docs/perspective
|
|
8895
8895
|
*/
|
|
8896
8896
|
perspective: [{
|
|
8897
|
-
perspective: [v, M,
|
|
8897
|
+
perspective: [v, M, R]
|
|
8898
8898
|
}],
|
|
8899
8899
|
/**
|
|
8900
8900
|
* Perspective Origin
|
|
@@ -8936,28 +8936,28 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8936
8936
|
* @see https://tailwindcss.com/docs/scale
|
|
8937
8937
|
*/
|
|
8938
8938
|
scale: [{
|
|
8939
|
-
scale:
|
|
8939
|
+
scale: ne()
|
|
8940
8940
|
}],
|
|
8941
8941
|
/**
|
|
8942
8942
|
* Scale X
|
|
8943
8943
|
* @see https://tailwindcss.com/docs/scale
|
|
8944
8944
|
*/
|
|
8945
8945
|
"scale-x": [{
|
|
8946
|
-
"scale-x":
|
|
8946
|
+
"scale-x": ne()
|
|
8947
8947
|
}],
|
|
8948
8948
|
/**
|
|
8949
8949
|
* Scale Y
|
|
8950
8950
|
* @see https://tailwindcss.com/docs/scale
|
|
8951
8951
|
*/
|
|
8952
8952
|
"scale-y": [{
|
|
8953
|
-
"scale-y":
|
|
8953
|
+
"scale-y": ne()
|
|
8954
8954
|
}],
|
|
8955
8955
|
/**
|
|
8956
8956
|
* Scale Z
|
|
8957
8957
|
* @see https://tailwindcss.com/docs/scale
|
|
8958
8958
|
*/
|
|
8959
8959
|
"scale-z": [{
|
|
8960
|
-
"scale-z":
|
|
8960
|
+
"scale-z": ne()
|
|
8961
8961
|
}],
|
|
8962
8962
|
/**
|
|
8963
8963
|
* Scale 3D
|
|
@@ -8990,7 +8990,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
8990
8990
|
* @see https://tailwindcss.com/docs/transform
|
|
8991
8991
|
*/
|
|
8992
8992
|
transform: [{
|
|
8993
|
-
transform: [M,
|
|
8993
|
+
transform: [M, R, "", "none", "gpu", "cpu"]
|
|
8994
8994
|
}],
|
|
8995
8995
|
/**
|
|
8996
8996
|
* Transform Origin
|
|
@@ -9075,7 +9075,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
9075
9075
|
* @see https://tailwindcss.com/docs/cursor
|
|
9076
9076
|
*/
|
|
9077
9077
|
cursor: [{
|
|
9078
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", M,
|
|
9078
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", M, R]
|
|
9079
9079
|
}],
|
|
9080
9080
|
/**
|
|
9081
9081
|
* Field Sizing
|
|
@@ -9297,7 +9297,7 @@ const Ko = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Yo = hl, x
|
|
|
9297
9297
|
* @see https://tailwindcss.com/docs/will-change
|
|
9298
9298
|
*/
|
|
9299
9299
|
"will-change": [{
|
|
9300
|
-
"will-change": ["auto", "scroll", "contents", "transform", M,
|
|
9300
|
+
"will-change": ["auto", "scroll", "contents", "transform", M, R]
|
|
9301
9301
|
}],
|
|
9302
9302
|
// -----------
|
|
9303
9303
|
// --- SVG ---
|
|
@@ -9704,7 +9704,7 @@ function El(t) {
|
|
|
9704
9704
|
}
|
|
9705
9705
|
// @__NO_SIDE_EFFECTS__
|
|
9706
9706
|
function Ag(t) {
|
|
9707
|
-
const e = /* @__PURE__ */
|
|
9707
|
+
const e = /* @__PURE__ */ Ig(t), n = W.forwardRef((i, r) => {
|
|
9708
9708
|
let { children: o, ...s } = i;
|
|
9709
9709
|
El(o) && typeof Sn == "function" && (o = Sn(o._payload));
|
|
9710
9710
|
const a = W.Children.toArray(o), l = a.find(Mg);
|
|
@@ -9718,7 +9718,7 @@ function Ag(t) {
|
|
|
9718
9718
|
}
|
|
9719
9719
|
var Al = /* @__PURE__ */ Ag("Slot");
|
|
9720
9720
|
// @__NO_SIDE_EFFECTS__
|
|
9721
|
-
function
|
|
9721
|
+
function Ig(t) {
|
|
9722
9722
|
const e = W.forwardRef((n, i) => {
|
|
9723
9723
|
let { children: r, ...o } = n;
|
|
9724
9724
|
if (El(r) && typeof Sn == "function" && (r = Sn(r._payload)), W.isValidElement(r)) {
|
|
@@ -9729,9 +9729,9 @@ function Rg(t) {
|
|
|
9729
9729
|
});
|
|
9730
9730
|
return e.displayName = `${t}.SlotClone`, e;
|
|
9731
9731
|
}
|
|
9732
|
-
var
|
|
9732
|
+
var Rg = /* @__PURE__ */ Symbol("radix.slottable");
|
|
9733
9733
|
function Mg(t) {
|
|
9734
|
-
return W.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
9734
|
+
return W.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Rg;
|
|
9735
9735
|
}
|
|
9736
9736
|
function jg(t, e) {
|
|
9737
9737
|
const n = { ...e };
|
|
@@ -10195,7 +10195,7 @@ const is = xt(
|
|
|
10195
10195
|
duration: 0.15,
|
|
10196
10196
|
ease: [0.32, 0.72, 0, 1]
|
|
10197
10197
|
// Crisp easing
|
|
10198
|
-
},
|
|
10198
|
+
}, Il = W.forwardRef(
|
|
10199
10199
|
({
|
|
10200
10200
|
className: t,
|
|
10201
10201
|
variant: e,
|
|
@@ -10231,7 +10231,7 @@ const is = xt(
|
|
|
10231
10231
|
}
|
|
10232
10232
|
)
|
|
10233
10233
|
);
|
|
10234
|
-
|
|
10234
|
+
Il.displayName = "Card";
|
|
10235
10235
|
const Gg = W.forwardRef(
|
|
10236
10236
|
({ className: t, ...e }, n) => /* @__PURE__ */ h.jsx(
|
|
10237
10237
|
"div",
|
|
@@ -10367,7 +10367,7 @@ function gr(t, e, n, i) {
|
|
|
10367
10367
|
...i
|
|
10368
10368
|
};
|
|
10369
10369
|
}
|
|
10370
|
-
const
|
|
10370
|
+
const Rl = W.forwardRef(
|
|
10371
10371
|
({
|
|
10372
10372
|
className: t,
|
|
10373
10373
|
blur: e,
|
|
@@ -10421,7 +10421,7 @@ const Il = W.forwardRef(
|
|
|
10421
10421
|
);
|
|
10422
10422
|
}
|
|
10423
10423
|
);
|
|
10424
|
-
|
|
10424
|
+
Rl.displayName = "GlassPanel";
|
|
10425
10425
|
const De = 36, os = 18, Qg = 8;
|
|
10426
10426
|
function dn(t, e) {
|
|
10427
10427
|
return {
|
|
@@ -10438,7 +10438,7 @@ function tm() {
|
|
|
10438
10438
|
function Ml() {
|
|
10439
10439
|
return typeof navigator > "u" ? !1 : navigator.platform.toUpperCase().indexOf("MAC") >= 0;
|
|
10440
10440
|
}
|
|
10441
|
-
const em =
|
|
10441
|
+
const em = nt.createElement(
|
|
10442
10442
|
"svg",
|
|
10443
10443
|
{
|
|
10444
10444
|
width: "10",
|
|
@@ -10448,11 +10448,11 @@ const em = et.createElement(
|
|
|
10448
10448
|
stroke: "currentColor",
|
|
10449
10449
|
strokeWidth: "2.5"
|
|
10450
10450
|
},
|
|
10451
|
-
|
|
10451
|
+
nt.createElement("polyline", { points: "6 9 12 15 18 9" })
|
|
10452
10452
|
);
|
|
10453
10453
|
function nm({ group: t, state: e, onActionClick: n }) {
|
|
10454
|
-
const [i, r] =
|
|
10455
|
-
|
|
10454
|
+
const [i, r] = at(!1), o = Q(null), s = Ml();
|
|
10455
|
+
rt(() => {
|
|
10456
10456
|
if (!i) return;
|
|
10457
10457
|
const c = (d) => {
|
|
10458
10458
|
o.current && !o.current.contains(d.target) && r(!1);
|
|
@@ -10583,10 +10583,10 @@ function im() {
|
|
|
10583
10583
|
return D.forEach((z) => {
|
|
10584
10584
|
O += z.length;
|
|
10585
10585
|
}), O;
|
|
10586
|
-
}), s = E((y) => y.activeDrag), a = E((y) => y.startDrag), l = s?.type === "floating-icon", [u, c] =
|
|
10587
|
-
|
|
10586
|
+
}), s = E((y) => y.activeDrag), a = E((y) => y.startDrag), l = s?.type === "floating-icon", [u, c] = at(!1), [d, f] = at(!1), p = E((y) => y.mobile.isMobile), m = E((y) => y.mobile.isTouchDevice), v = Q(null);
|
|
10587
|
+
rt(() => {
|
|
10588
10588
|
e && !d && f(!0);
|
|
10589
|
-
}, [e, d]),
|
|
10589
|
+
}, [e, d]), ue(() => {
|
|
10590
10590
|
if (!l || !s) return;
|
|
10591
10591
|
const { currentPos: y, offset: D } = s, O = Math.max(0, Math.min(window.innerWidth - 300, y.x - D.x)), z = Math.max(
|
|
10592
10592
|
0,
|
|
@@ -10615,12 +10615,12 @@ function im() {
|
|
|
10615
10615
|
), w = F(() => {
|
|
10616
10616
|
l || t();
|
|
10617
10617
|
}, [l, t]), N = F((y) => {
|
|
10618
|
-
const D =
|
|
10618
|
+
const D = te();
|
|
10619
10619
|
D && y.onClick(D);
|
|
10620
10620
|
}, []), G = document.getElementById("uilint-portal") || document.body;
|
|
10621
10621
|
if (e)
|
|
10622
10622
|
return null;
|
|
10623
|
-
const q = !d && !u && !m, H = p ? 44 : De,
|
|
10623
|
+
const q = !d && !u && !m, H = p ? 44 : De, ct = o > 0;
|
|
10624
10624
|
return pe(
|
|
10625
10625
|
/* @__PURE__ */ h.jsxs(
|
|
10626
10626
|
"div",
|
|
@@ -10744,7 +10744,7 @@ function im() {
|
|
|
10744
10744
|
]
|
|
10745
10745
|
}
|
|
10746
10746
|
),
|
|
10747
|
-
|
|
10747
|
+
ct && /* @__PURE__ */ h.jsx(
|
|
10748
10748
|
"span",
|
|
10749
10749
|
{
|
|
10750
10750
|
style: {
|
|
@@ -10848,7 +10848,7 @@ function im() {
|
|
|
10848
10848
|
);
|
|
10849
10849
|
}
|
|
10850
10850
|
function rm(t) {
|
|
10851
|
-
const [e, n] =
|
|
10851
|
+
const [e, n] = at(/* @__PURE__ */ new Map()), i = Q(null), r = Q(null), o = Q(null), s = F(() => {
|
|
10852
10852
|
if (!t) {
|
|
10853
10853
|
n(/* @__PURE__ */ new Map());
|
|
10854
10854
|
return;
|
|
@@ -10871,7 +10871,7 @@ function rm(t) {
|
|
|
10871
10871
|
s(), o.current = null;
|
|
10872
10872
|
}));
|
|
10873
10873
|
}, [s]);
|
|
10874
|
-
return
|
|
10874
|
+
return rt(() => (s(), window.addEventListener("scroll", a, { passive: !0 }), window.addEventListener("resize", a, { passive: !0 }), i.current = new MutationObserver(a), i.current.observe(document.body, {
|
|
10875
10875
|
childList: !0,
|
|
10876
10876
|
subtree: !0,
|
|
10877
10877
|
attributes: !0,
|
|
@@ -11298,7 +11298,7 @@ function bm({
|
|
|
11298
11298
|
contextBelow: i = 5,
|
|
11299
11299
|
enabled: r = !0
|
|
11300
11300
|
}) {
|
|
11301
|
-
const [o, s] =
|
|
11301
|
+
const [o, s] = at(null), [a, l] = at(!1), [u, c] = at(null), d = E((m) => m.wsConnected), f = Q(null), p = F(() => {
|
|
11302
11302
|
if (!r || !t || !d)
|
|
11303
11303
|
return;
|
|
11304
11304
|
const m = fm(t);
|
|
@@ -11348,9 +11348,9 @@ function bm({
|
|
|
11348
11348
|
S && s(ti(S, e, n, i)), l(!1);
|
|
11349
11349
|
});
|
|
11350
11350
|
}, [t, e, n, i, r, d]);
|
|
11351
|
-
return
|
|
11351
|
+
return rt(() => {
|
|
11352
11352
|
p();
|
|
11353
|
-
}, [p]),
|
|
11353
|
+
}, [p]), rt(() => t ? Ot.on(
|
|
11354
11354
|
"file:changed",
|
|
11355
11355
|
(v) => {
|
|
11356
11356
|
(v.filePath === t || v.filePath.endsWith(t) || t.endsWith(v.filePath)) && (gm(t), r && p());
|
|
@@ -11434,8 +11434,8 @@ function Tm({
|
|
|
11434
11434
|
size: r,
|
|
11435
11435
|
className: o
|
|
11436
11436
|
}) {
|
|
11437
|
-
const s = Q(null), [a, l] =
|
|
11438
|
-
|
|
11437
|
+
const s = Q(null), [a, l] = at(!1), u = E((d) => d.mobile.isMobile);
|
|
11438
|
+
rt(() => {
|
|
11439
11439
|
if (!i) return;
|
|
11440
11440
|
const d = setTimeout(() => {
|
|
11441
11441
|
s.current?.focus();
|
|
@@ -11677,7 +11677,7 @@ function Am({ issue: t, isSelected: e, onClick: n }) {
|
|
|
11677
11677
|
}
|
|
11678
11678
|
);
|
|
11679
11679
|
}
|
|
11680
|
-
function
|
|
11680
|
+
function Im({
|
|
11681
11681
|
value: t,
|
|
11682
11682
|
onChange: e,
|
|
11683
11683
|
onClick: n
|
|
@@ -11708,7 +11708,7 @@ function Rm({
|
|
|
11708
11708
|
r.value
|
|
11709
11709
|
)) });
|
|
11710
11710
|
}
|
|
11711
|
-
function
|
|
11711
|
+
function Rm({
|
|
11712
11712
|
rule: t,
|
|
11713
11713
|
issueCount: e,
|
|
11714
11714
|
isSelected: n,
|
|
@@ -11792,7 +11792,7 @@ function Im({
|
|
|
11792
11792
|
}
|
|
11793
11793
|
),
|
|
11794
11794
|
/* @__PURE__ */ h.jsx(
|
|
11795
|
-
|
|
11795
|
+
Im,
|
|
11796
11796
|
{
|
|
11797
11797
|
value: t.severity,
|
|
11798
11798
|
onChange: s,
|
|
@@ -11811,17 +11811,17 @@ function Mm({ fileName: t, directory: e, count: n }) {
|
|
|
11811
11811
|
/* @__PURE__ */ h.jsx("span", { className: "text-xs font-medium text-muted-foreground bg-hover px-1.5 py-0.5 rounded-full", children: n })
|
|
11812
11812
|
] });
|
|
11813
11813
|
}
|
|
11814
|
-
const zl =
|
|
11814
|
+
const zl = ee(null);
|
|
11815
11815
|
function jm(t) {
|
|
11816
11816
|
const e = Q(/* @__PURE__ */ new Map());
|
|
11817
|
-
return
|
|
11817
|
+
return ue(() => {
|
|
11818
11818
|
e.current.get(t)?.scrollIntoView?.({ block: "nearest" });
|
|
11819
11819
|
}, [t]), { register: F((i, r) => {
|
|
11820
11820
|
r ? e.current.set(i, r) : e.current.delete(i);
|
|
11821
11821
|
}, []) };
|
|
11822
11822
|
}
|
|
11823
11823
|
function mr(t) {
|
|
11824
|
-
const e =
|
|
11824
|
+
const e = dt(zl);
|
|
11825
11825
|
return F(
|
|
11826
11826
|
(i) => {
|
|
11827
11827
|
e?.register(t, i);
|
|
@@ -11830,10 +11830,10 @@ function mr(t) {
|
|
|
11830
11830
|
);
|
|
11831
11831
|
}
|
|
11832
11832
|
function Lm({ issues: t, isSelected: e, resultIndex: n, onClick: i }) {
|
|
11833
|
-
const r = E((u) => u.mobile.isMobile), o = mr(n ?? -1), s =
|
|
11833
|
+
const r = E((u) => u.mobile.isMobile), o = mr(n ?? -1), s = nt.useMemo(() => t.reduce(
|
|
11834
11834
|
(u, c) => (c.severity === "error" ? u.errors++ : c.severity === "warning" ? u.warnings++ : u.info++, u),
|
|
11835
11835
|
{ errors: 0, warnings: 0, info: 0 }
|
|
11836
|
-
), [t]), a =
|
|
11836
|
+
), [t]), a = nt.useMemo(() => new Set(t.map((u) => u.filePath)).size, [t]);
|
|
11837
11837
|
if (t.length === 0) return null;
|
|
11838
11838
|
const l = /* @__PURE__ */ h.jsxs(
|
|
11839
11839
|
"div",
|
|
@@ -11937,7 +11937,7 @@ function Dm({
|
|
|
11937
11937
|
startIndex: n,
|
|
11938
11938
|
selectedIndex: i
|
|
11939
11939
|
}) {
|
|
11940
|
-
const r =
|
|
11940
|
+
const r = nt.useMemo(() => t.filter((o) => o.severity === "error" || o.severity === "warning").slice(0, 3), [t]);
|
|
11941
11941
|
return r.length === 0 ? null : /* @__PURE__ */ h.jsxs("div", { style: { marginBottom: 4 }, children: [
|
|
11942
11942
|
/* @__PURE__ */ h.jsx(
|
|
11943
11943
|
"div",
|
|
@@ -12597,7 +12597,7 @@ function qm() {
|
|
|
12597
12597
|
C.set(j.filePath, [...L, j]);
|
|
12598
12598
|
}
|
|
12599
12599
|
for (const [j, L] of C) {
|
|
12600
|
-
const
|
|
12600
|
+
const et = j.split("/"), Dt = et.pop() || j, B = et.join("/");
|
|
12601
12601
|
g.push({ filePath: j, fileName: Dt, directory: B, issues: L });
|
|
12602
12602
|
}
|
|
12603
12603
|
return g;
|
|
@@ -12612,11 +12612,11 @@ function qm() {
|
|
|
12612
12612
|
command: L
|
|
12613
12613
|
}));
|
|
12614
12614
|
if (!A && m.length > 0) {
|
|
12615
|
-
const L = m.filter((
|
|
12615
|
+
const L = m.filter((et) => et.severity === "error" || et.severity === "warning").slice(0, 3);
|
|
12616
12616
|
return [
|
|
12617
12617
|
...g,
|
|
12618
12618
|
{ kind: "summary" },
|
|
12619
|
-
...L.map((
|
|
12619
|
+
...L.map((et) => ({ kind: "issue", issue: et }))
|
|
12620
12620
|
];
|
|
12621
12621
|
}
|
|
12622
12622
|
const C = P.map((L) => ({
|
|
@@ -12632,8 +12632,8 @@ function qm() {
|
|
|
12632
12632
|
c("issue", { issue: g }), o();
|
|
12633
12633
|
},
|
|
12634
12634
|
[c, o]
|
|
12635
|
-
),
|
|
12636
|
-
const C =
|
|
12635
|
+
), ct = F(async (g) => {
|
|
12636
|
+
const C = te();
|
|
12637
12637
|
if (!C) {
|
|
12638
12638
|
console.error("[CommandPalette] Plugin services not available");
|
|
12639
12639
|
return;
|
|
@@ -12645,7 +12645,7 @@ function qm() {
|
|
|
12645
12645
|
}
|
|
12646
12646
|
}, []), y = F(async (g) => {
|
|
12647
12647
|
if (!g.execute) return;
|
|
12648
|
-
const C =
|
|
12648
|
+
const C = te();
|
|
12649
12649
|
if (!C) {
|
|
12650
12650
|
console.error("[CommandPalette] Plugin services not available");
|
|
12651
12651
|
return;
|
|
@@ -12668,9 +12668,9 @@ function qm() {
|
|
|
12668
12668
|
[c, o]
|
|
12669
12669
|
), z = F(
|
|
12670
12670
|
(g) => {
|
|
12671
|
-
g.kind === "command" ?
|
|
12671
|
+
g.kind === "command" ? ct(g.command) : g.kind === "issue" ? H(g.issue) : g.kind === "rule" ? O(g.rule) : g.kind === "category-item" ? y(g.item) : g.kind === "summary" && s("");
|
|
12672
12672
|
},
|
|
12673
|
-
[
|
|
12673
|
+
[ct, H, O, y]
|
|
12674
12674
|
), T = F(
|
|
12675
12675
|
(g) => {
|
|
12676
12676
|
if (g.key === "Tab") {
|
|
@@ -12688,7 +12688,7 @@ function qm() {
|
|
|
12688
12688
|
g.key === "ArrowDown" ? (g.preventDefault(), a(Math.min(n + 1, q.length - 1))) : g.key === "ArrowUp" ? (g.preventDefault(), a(Math.max(n - 1, 0))) : g.key === "Enter" && q[n] && (g.preventDefault(), z(q[n]));
|
|
12689
12689
|
},
|
|
12690
12690
|
[q, n, z, r, u]
|
|
12691
|
-
),
|
|
12691
|
+
), tt = document.getElementById("uilint-portal") || document.body, lt = k.length;
|
|
12692
12692
|
return pe(
|
|
12693
12693
|
/* @__PURE__ */ h.jsx(Lt, { children: t && /* @__PURE__ */ h.jsx(
|
|
12694
12694
|
U.div,
|
|
@@ -12723,7 +12723,7 @@ function qm() {
|
|
|
12723
12723
|
transition: d ? { duration: 0.15 } : Gm,
|
|
12724
12724
|
style: d ? { display: "flex", flexDirection: "column", width: "100%", height: "100%" } : void 0,
|
|
12725
12725
|
children: /* @__PURE__ */ h.jsxs(
|
|
12726
|
-
|
|
12726
|
+
Rl,
|
|
12727
12727
|
{
|
|
12728
12728
|
blur: d ? "light" : "heavy",
|
|
12729
12729
|
shadow: d ? void 0 : "lg",
|
|
@@ -12866,7 +12866,7 @@ function qm() {
|
|
|
12866
12866
|
{
|
|
12867
12867
|
command: g,
|
|
12868
12868
|
isSelected: C === n,
|
|
12869
|
-
onClick: () =>
|
|
12869
|
+
onClick: () => ct(g),
|
|
12870
12870
|
index: C
|
|
12871
12871
|
},
|
|
12872
12872
|
g.id
|
|
@@ -12878,8 +12878,8 @@ function qm() {
|
|
|
12878
12878
|
Lm,
|
|
12879
12879
|
{
|
|
12880
12880
|
issues: m,
|
|
12881
|
-
isSelected:
|
|
12882
|
-
resultIndex:
|
|
12881
|
+
isSelected: lt === n,
|
|
12882
|
+
resultIndex: lt,
|
|
12883
12883
|
onClick: () => {
|
|
12884
12884
|
}
|
|
12885
12885
|
}
|
|
@@ -12889,7 +12889,7 @@ function qm() {
|
|
|
12889
12889
|
{
|
|
12890
12890
|
issues: m,
|
|
12891
12891
|
onSelectIssue: H,
|
|
12892
|
-
startIndex:
|
|
12892
|
+
startIndex: lt + 1,
|
|
12893
12893
|
selectedIndex: n
|
|
12894
12894
|
}
|
|
12895
12895
|
)
|
|
@@ -12913,17 +12913,17 @@ function qm() {
|
|
|
12913
12913
|
count: g.issues.length
|
|
12914
12914
|
}
|
|
12915
12915
|
),
|
|
12916
|
-
g.issues.map((L,
|
|
12916
|
+
g.issues.map((L, et) => /* @__PURE__ */ h.jsx(
|
|
12917
12917
|
Be,
|
|
12918
12918
|
{
|
|
12919
|
-
isSelected: j +
|
|
12919
|
+
isSelected: j + et === n,
|
|
12920
12920
|
variant: "issue",
|
|
12921
|
-
resultIndex: j +
|
|
12921
|
+
resultIndex: j + et,
|
|
12922
12922
|
children: /* @__PURE__ */ h.jsx(
|
|
12923
12923
|
Am,
|
|
12924
12924
|
{
|
|
12925
12925
|
issue: L,
|
|
12926
|
-
isSelected: j +
|
|
12926
|
+
isSelected: j + et === n,
|
|
12927
12927
|
onClick: () => H(L)
|
|
12928
12928
|
}
|
|
12929
12929
|
)
|
|
@@ -12943,7 +12943,7 @@ function qm() {
|
|
|
12943
12943
|
{
|
|
12944
12944
|
index: k.length + P.length + C,
|
|
12945
12945
|
children: /* @__PURE__ */ h.jsx(
|
|
12946
|
-
|
|
12946
|
+
Rm,
|
|
12947
12947
|
{
|
|
12948
12948
|
rule: g,
|
|
12949
12949
|
issueCount: N.get(g.id) ?? 0,
|
|
@@ -12972,7 +12972,7 @@ function qm() {
|
|
|
12972
12972
|
)
|
|
12973
12973
|
}
|
|
12974
12974
|
) }),
|
|
12975
|
-
|
|
12975
|
+
tt
|
|
12976
12976
|
);
|
|
12977
12977
|
}
|
|
12978
12978
|
function Xm(t) {
|
|
@@ -12998,7 +12998,7 @@ function Jm({
|
|
|
12998
12998
|
contextLines: i = 5,
|
|
12999
12999
|
defaultExpanded: r = !0
|
|
13000
13000
|
}) {
|
|
13001
|
-
const [o, s] =
|
|
13001
|
+
const [o, s] = at(r), { context: a, isLoading: l, error: u } = bm({
|
|
13002
13002
|
filePath: t,
|
|
13003
13003
|
line: e,
|
|
13004
13004
|
contextAbove: i,
|
|
@@ -13255,7 +13255,7 @@ function ev({ dataLoc: t, onSelectIssue: e }) {
|
|
|
13255
13255
|
i.length !== 1 ? "s" : "",
|
|
13256
13256
|
" at this location"
|
|
13257
13257
|
] }),
|
|
13258
|
-
/* @__PURE__ */ h.jsx(
|
|
13258
|
+
/* @__PURE__ */ h.jsx(Il, { variant: "elevated", style: { overflow: "hidden" }, children: i.map((r, o) => {
|
|
13259
13259
|
const s = r.severity === "error" ? En : r.severity === "warning" ? An : zi;
|
|
13260
13260
|
return /* @__PURE__ */ h.jsxs(
|
|
13261
13261
|
"div",
|
|
@@ -13315,7 +13315,7 @@ function as({
|
|
|
13315
13315
|
},
|
|
13316
13316
|
[]
|
|
13317
13317
|
);
|
|
13318
|
-
|
|
13318
|
+
rt(() => {
|
|
13319
13319
|
const l = (c) => {
|
|
13320
13320
|
if (!i.current) return;
|
|
13321
13321
|
const d = c.clientX - r.current.x, f = c.clientY - r.current.y;
|
|
@@ -13375,15 +13375,22 @@ function as({
|
|
|
13375
13375
|
}
|
|
13376
13376
|
const ls = 320, cs = 800, rn = 450, us = 500;
|
|
13377
13377
|
function nv() {
|
|
13378
|
-
const t = E((y) => y.inspector.open), e = E((y) => y.inspector.panelId), n = E((y) => y.inspector.data), i = E((y) => y.inspector.docked), r = E((y) => y.inspector.width), o = E((y) => y.inspector.floatingPosition), s = E((y) => y.inspector.floatingSize), a = E((y) => y.closeInspector), l = E((y) => y.openInspector), u = E((y) => y.toggleInspectorDocked), c = E((y) => y.setInspectorWidth), d = E((y) => y.setInspectorFloatingPosition), f = E((y) => y.setInspectorFloatingSize), [p, m] =
|
|
13378
|
+
const t = E((y) => y.inspector.open), e = E((y) => y.inspector.panelId), n = E((y) => y.inspector.data), i = E((y) => y.inspector.docked), r = E((y) => y.inspector.width), o = E((y) => y.inspector.floatingPosition), s = E((y) => y.inspector.floatingSize), a = E((y) => y.closeInspector), l = E((y) => y.openInspector), u = E((y) => y.toggleInspectorDocked), c = E((y) => y.setInspectorWidth), d = E((y) => y.setInspectorFloatingPosition), f = E((y) => y.setInspectorFloatingSize), [p, m] = at(!1), v = E((y) => y.mobile.isMobile), b = E((y) => y.activeDrag), x = E((y) => y.startDrag), S = b?.type === "inspector-floating", k = X(() => gt.getAllInspectorPanels(), []), A = F((y) => {
|
|
13379
13379
|
l("issue", { issue: y });
|
|
13380
13380
|
}, [l]), { content: P, title: V } = X(() => {
|
|
13381
13381
|
let y = null, D = "Inspector";
|
|
13382
13382
|
const O = k.find((z) => z.id === e);
|
|
13383
13383
|
if (O) {
|
|
13384
|
-
const z =
|
|
13385
|
-
D = typeof O.title == "function" ? O.title({ data:
|
|
13386
|
-
} else e === "issue" && n?.issue
|
|
13384
|
+
const z = te(), T = O.component, tt = n ?? void 0;
|
|
13385
|
+
D = typeof O.title == "function" ? O.title({ data: tt, services: z }) : O.title, y = z ? /* @__PURE__ */ h.jsx(T, { data: tt, services: z }) : /* @__PURE__ */ h.jsx("div", { style: { padding: 16, color: "var(--uilint-text-muted)", textAlign: "center" }, children: "Loading..." });
|
|
13386
|
+
} else if (e === "issue" && n?.issue) {
|
|
13387
|
+
const z = n.issue, T = z.ruleId ? gt.getRuleContribution(z.ruleId) || gt.getRuleContribution(z.ruleId.replace("uilint/", "")) : void 0;
|
|
13388
|
+
if (T?.inspectorPanel) {
|
|
13389
|
+
const tt = te(), lt = T.inspectorPanel;
|
|
13390
|
+
D = "Issue Details", y = tt ? /* @__PURE__ */ h.jsx(lt, { data: n, services: tt }) : /* @__PURE__ */ h.jsx("div", { style: { padding: 16, color: "var(--uilint-text-muted)", textAlign: "center" }, children: "Loading..." });
|
|
13391
|
+
} else
|
|
13392
|
+
D = "Issue Details", y = /* @__PURE__ */ h.jsx(tv, { issue: z });
|
|
13393
|
+
} else e === "element" && n?.dataLoc ? (D = "Element Issues", y = /* @__PURE__ */ h.jsx(
|
|
13387
13394
|
ev,
|
|
13388
13395
|
{
|
|
13389
13396
|
dataLoc: n.dataLoc,
|
|
@@ -13392,15 +13399,15 @@ function nv() {
|
|
|
13392
13399
|
)) : y = /* @__PURE__ */ h.jsx("div", { style: { padding: 16, color: "var(--uilint-text-muted)", textAlign: "center" }, children: "Select an issue or element to inspect" });
|
|
13393
13400
|
return { content: y, title: D };
|
|
13394
13401
|
}, [e, n, k, A]);
|
|
13395
|
-
|
|
13402
|
+
rt(() => {
|
|
13396
13403
|
m(!0);
|
|
13397
|
-
}, []),
|
|
13404
|
+
}, []), ue(() => {
|
|
13398
13405
|
if (!p) return;
|
|
13399
13406
|
const y = document.documentElement;
|
|
13400
13407
|
return t && i ? (y.style.marginRight = `${r}px`, y.style.transition = "margin-right 0.2s ease-out") : (y.style.marginRight = "", y.style.transition = "margin-right 0.2s ease-out"), () => {
|
|
13401
13408
|
y.style.marginRight = "", y.style.transition = "";
|
|
13402
13409
|
};
|
|
13403
|
-
}, [p, t, i, r]),
|
|
13410
|
+
}, [p, t, i, r]), ue(() => {
|
|
13404
13411
|
if (!S || !b || !b.elementStartPos) return;
|
|
13405
13412
|
const { currentPos: y, startPos: D, elementStartPos: O } = b, z = y.x - D.x, T = y.y - D.y;
|
|
13406
13413
|
d({
|
|
@@ -13436,7 +13443,7 @@ function nv() {
|
|
|
13436
13443
|
},
|
|
13437
13444
|
[o, v, x]
|
|
13438
13445
|
);
|
|
13439
|
-
|
|
13446
|
+
rt(() => {
|
|
13440
13447
|
!i && !o && p && d({
|
|
13441
13448
|
x: window.innerWidth - rn - 20,
|
|
13442
13449
|
y: 80
|
|
@@ -13485,7 +13492,7 @@ function nv() {
|
|
|
13485
13492
|
] })
|
|
13486
13493
|
]
|
|
13487
13494
|
}
|
|
13488
|
-
),
|
|
13495
|
+
), ct = gr("heavy", "none", !1);
|
|
13489
13496
|
return pe(
|
|
13490
13497
|
/* @__PURE__ */ h.jsxs(Lt, { children: [
|
|
13491
13498
|
t && i && // Docked mode - fixed to right edge
|
|
@@ -13506,7 +13513,7 @@ function nv() {
|
|
|
13506
13513
|
right: 0,
|
|
13507
13514
|
bottom: 0,
|
|
13508
13515
|
width: r,
|
|
13509
|
-
...
|
|
13516
|
+
...ct,
|
|
13510
13517
|
borderLeft: "1px solid var(--uilint-glass-border)",
|
|
13511
13518
|
boxShadow: "var(--uilint-shadow)",
|
|
13512
13519
|
zIndex: 99997,
|
|
@@ -13542,7 +13549,7 @@ function nv() {
|
|
|
13542
13549
|
inset: 0,
|
|
13543
13550
|
width: "100%",
|
|
13544
13551
|
height: "100%",
|
|
13545
|
-
...
|
|
13552
|
+
...ct,
|
|
13546
13553
|
border: "none",
|
|
13547
13554
|
borderRadius: 0,
|
|
13548
13555
|
boxShadow: "none",
|
|
@@ -13558,7 +13565,7 @@ function nv() {
|
|
|
13558
13565
|
top: o?.y ?? 80,
|
|
13559
13566
|
width: s?.width ?? rn,
|
|
13560
13567
|
height: s?.height ?? us,
|
|
13561
|
-
...
|
|
13568
|
+
...ct,
|
|
13562
13569
|
border: "1px solid var(--uilint-glass-border)",
|
|
13563
13570
|
borderRadius: 12,
|
|
13564
13571
|
boxShadow: "var(--uilint-shadow)",
|
|
@@ -13636,7 +13643,7 @@ function ov({
|
|
|
13636
13643
|
onCancel: n
|
|
13637
13644
|
}) {
|
|
13638
13645
|
const [i, r] = Yl(rv, iv), { isSelecting: o, startPoint: s, currentPoint: a, mounted: l } = i;
|
|
13639
|
-
|
|
13646
|
+
rt(() => {
|
|
13640
13647
|
r({ type: "MOUNT" });
|
|
13641
13648
|
}, []);
|
|
13642
13649
|
const u = F(() => {
|
|
@@ -13655,7 +13662,7 @@ function ov({
|
|
|
13655
13662
|
const b = u();
|
|
13656
13663
|
b && b.width > ds && b.height > ds ? e(b) : n(), r({ type: "COMPLETE_SELECTION" });
|
|
13657
13664
|
}, [o, s, u, e, n]);
|
|
13658
|
-
if (
|
|
13665
|
+
if (rt(() => {
|
|
13659
13666
|
if (!t) return;
|
|
13660
13667
|
const b = (x) => {
|
|
13661
13668
|
x.key === "Escape" && (x.preventDefault(), x.stopPropagation(), n());
|
|
@@ -13663,7 +13670,7 @@ function ov({
|
|
|
13663
13670
|
return document.addEventListener("keydown", b, !0), () => {
|
|
13664
13671
|
document.removeEventListener("keydown", b, !0);
|
|
13665
13672
|
};
|
|
13666
|
-
}, [t, n]),
|
|
13673
|
+
}, [t, n]), ue(() => {
|
|
13667
13674
|
if (!t) return;
|
|
13668
13675
|
const b = (x) => {
|
|
13669
13676
|
x.preventDefault();
|
|
@@ -13788,16 +13795,16 @@ function ov({
|
|
|
13788
13795
|
);
|
|
13789
13796
|
return pe(v, m);
|
|
13790
13797
|
}
|
|
13791
|
-
let
|
|
13798
|
+
let Ii = !1;
|
|
13792
13799
|
function sv() {
|
|
13793
13800
|
if (typeof document > "u") return;
|
|
13794
13801
|
let t = document.getElementById("uilint-portal");
|
|
13795
|
-
return t || (t = document.createElement("div"), t.id = "uilint-portal", t.style.cssText = "position: fixed; top: 0; left: 0; z-index: 99990; pointer-events: none;", document.body.appendChild(t),
|
|
13802
|
+
return t || (t = document.createElement("div"), t.id = "uilint-portal", t.style.cssText = "position: fixed; top: 0; left: 0; z-index: 99990; pointer-events: none;", document.body.appendChild(t), Ii = !0), t;
|
|
13796
13803
|
}
|
|
13797
13804
|
function av() {
|
|
13798
|
-
if (!
|
|
13805
|
+
if (!Ii) return;
|
|
13799
13806
|
const t = document.getElementById("uilint-portal");
|
|
13800
|
-
t && (t.remove(),
|
|
13807
|
+
t && (t.remove(), Ii = !1);
|
|
13801
13808
|
}
|
|
13802
13809
|
function lv({ enabled: t = !0 }) {
|
|
13803
13810
|
const e = E(
|
|
@@ -13810,7 +13817,7 @@ function lv({ enabled: t = !0 }) {
|
|
|
13810
13817
|
), a = F(() => {
|
|
13811
13818
|
r && r(!1);
|
|
13812
13819
|
}, [r]);
|
|
13813
|
-
return
|
|
13820
|
+
return rt(() => (t && sv(), () => {
|
|
13814
13821
|
av();
|
|
13815
13822
|
}), [t]), t ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
13816
13823
|
/* @__PURE__ */ h.jsx(im, {}),
|
|
@@ -14281,10 +14288,10 @@ const Tn = "data-elements", Ev = /* @__PURE__ */ new Set(["SCRIPT", "STYLE", "SV
|
|
|
14281
14288
|
link: /\b(link)\b/i
|
|
14282
14289
|
};
|
|
14283
14290
|
let Ol = 0;
|
|
14284
|
-
function
|
|
14291
|
+
function Iv() {
|
|
14285
14292
|
document.querySelectorAll(`[${Tn}]`).forEach((e) => e.removeAttribute(Tn)), Ol = 0;
|
|
14286
14293
|
}
|
|
14287
|
-
function
|
|
14294
|
+
function Rv() {
|
|
14288
14295
|
return `el-${++Ol}`;
|
|
14289
14296
|
}
|
|
14290
14297
|
function Mv(t, e = 50) {
|
|
@@ -14372,7 +14379,7 @@ function _v(t) {
|
|
|
14372
14379
|
if (Bl(t)) return null;
|
|
14373
14380
|
const e = window.getComputedStyle(t), n = jv(t, e);
|
|
14374
14381
|
if (n === "other") return null;
|
|
14375
|
-
const i =
|
|
14382
|
+
const i = Rv();
|
|
14376
14383
|
t.setAttribute(Tn, i);
|
|
14377
14384
|
const r = t.getBoundingClientRect(), o = t.textContent?.trim().slice(0, 100) || t.getAttribute("aria-label") || "";
|
|
14378
14385
|
return {
|
|
@@ -14390,7 +14397,7 @@ function _v(t) {
|
|
|
14390
14397
|
};
|
|
14391
14398
|
}
|
|
14392
14399
|
function s0(t) {
|
|
14393
|
-
|
|
14400
|
+
Iv();
|
|
14394
14401
|
const e = t || document.body, n = {
|
|
14395
14402
|
buttons: [],
|
|
14396
14403
|
headings: [],
|
|
@@ -14469,7 +14476,7 @@ function Uv(t) {
|
|
|
14469
14476
|
}), e;
|
|
14470
14477
|
}
|
|
14471
14478
|
function Hv({ rect: t }) {
|
|
14472
|
-
const [e, n] =
|
|
14479
|
+
const [e, n] = at(!1), i = e ? Ov : Nv, r = e ? $v : Bv, o = e ? 10 : 6;
|
|
14473
14480
|
return /* @__PURE__ */ h.jsxs(
|
|
14474
14481
|
"div",
|
|
14475
14482
|
{
|
|
@@ -14579,9 +14586,9 @@ function a0({
|
|
|
14579
14586
|
selectedViolation: e,
|
|
14580
14587
|
lockedViolation: n
|
|
14581
14588
|
}) {
|
|
14582
|
-
const [i, r] =
|
|
14589
|
+
const [i, r] = at([]), [o, s] = at(
|
|
14583
14590
|
[]
|
|
14584
|
-
), [a, l] =
|
|
14591
|
+
), [a, l] = at(!1), u = n || e, c = F(() => {
|
|
14585
14592
|
if (u) {
|
|
14586
14593
|
r([]);
|
|
14587
14594
|
return;
|
|
@@ -14609,7 +14616,7 @@ function a0({
|
|
|
14609
14616
|
const p = Wv(u.elementIds, !0);
|
|
14610
14617
|
s(p);
|
|
14611
14618
|
}, [u]);
|
|
14612
|
-
if (
|
|
14619
|
+
if (rt(() => (l(!0), () => l(!1)), []), rt(() => {
|
|
14613
14620
|
c(), d();
|
|
14614
14621
|
const p = () => {
|
|
14615
14622
|
c(), d();
|
|
@@ -14906,7 +14913,7 @@ const Ee = new Zv(), Jv = {
|
|
|
14906
14913
|
n.clearIssues(), n.startScanning(), t.closeCommandPalette();
|
|
14907
14914
|
},
|
|
14908
14915
|
isAvailable: (t) => t.wsConnected === !0
|
|
14909
|
-
},
|
|
14916
|
+
}, Ri = [
|
|
14910
14917
|
Jv,
|
|
14911
14918
|
tb,
|
|
14912
14919
|
eb,
|
|
@@ -15321,10 +15328,10 @@ function pb(t, e) {
|
|
|
15321
15328
|
"unique dataLocs with issues"
|
|
15322
15329
|
);
|
|
15323
15330
|
}
|
|
15324
|
-
let
|
|
15331
|
+
let Rt = null;
|
|
15325
15332
|
function gb(t) {
|
|
15326
15333
|
const e = db({ manifestUrl: t });
|
|
15327
|
-
|
|
15334
|
+
Rt = {
|
|
15328
15335
|
mode: "static",
|
|
15329
15336
|
manifestUrl: t,
|
|
15330
15337
|
fetcher: e,
|
|
@@ -15332,23 +15339,23 @@ function gb(t) {
|
|
|
15332
15339
|
}, console.log("[ESLint Plugin] Configured for static mode:", t);
|
|
15333
15340
|
}
|
|
15334
15341
|
function mb() {
|
|
15335
|
-
return
|
|
15342
|
+
return Rt !== null;
|
|
15336
15343
|
}
|
|
15337
15344
|
function vb() {
|
|
15338
|
-
|
|
15345
|
+
Rt = null;
|
|
15339
15346
|
}
|
|
15340
15347
|
function bb(t) {
|
|
15341
|
-
if (!
|
|
15348
|
+
if (!Rt)
|
|
15342
15349
|
return console.error("[ESLint Plugin] Static mode not configured"), () => {
|
|
15343
15350
|
};
|
|
15344
|
-
const { fetcher: e } =
|
|
15351
|
+
const { fetcher: e } = Rt;
|
|
15345
15352
|
console.log("[ESLint Plugin] Initializing in static mode..."), t.setState({ scanStatus: "scanning" }), e.fetch().then(({ manifest: i }) => {
|
|
15346
|
-
|
|
15353
|
+
Rt.manifest = i, pb(t, i);
|
|
15347
15354
|
}).catch((i) => {
|
|
15348
15355
|
console.error("[ESLint Plugin] Failed to fetch manifest:", i), t.setState({ scanStatus: "error" });
|
|
15349
15356
|
});
|
|
15350
15357
|
const n = t.domObserver.onElementsAdded((i) => {
|
|
15351
|
-
|
|
15358
|
+
Rt?.manifest && console.log(
|
|
15352
15359
|
"[ESLint Plugin] Static mode: DOM elements detected:",
|
|
15353
15360
|
i.length
|
|
15354
15361
|
);
|
|
@@ -15358,8 +15365,8 @@ function bb(t) {
|
|
|
15358
15365
|
};
|
|
15359
15366
|
}
|
|
15360
15367
|
function l0() {
|
|
15361
|
-
if (!
|
|
15362
|
-
const { manifest: t } =
|
|
15368
|
+
if (!Rt?.manifest) return null;
|
|
15369
|
+
const { manifest: t } = Rt;
|
|
15363
15370
|
return {
|
|
15364
15371
|
generatedAt: t.generatedAt,
|
|
15365
15372
|
commitSha: t.commitSha,
|
|
@@ -15407,7 +15414,7 @@ const gs = [
|
|
|
15407
15414
|
/**
|
|
15408
15415
|
* Commands contributed by this plugin
|
|
15409
15416
|
*/
|
|
15410
|
-
commands:
|
|
15417
|
+
commands: Ri,
|
|
15411
15418
|
/**
|
|
15412
15419
|
* Category providers for command palette sidebar browsing
|
|
15413
15420
|
*/
|
|
@@ -15648,7 +15655,7 @@ function kb() {
|
|
|
15648
15655
|
// Return ESLint commands as category items
|
|
15649
15656
|
getItems: (t) => {
|
|
15650
15657
|
const e = t.getState();
|
|
15651
|
-
return
|
|
15658
|
+
return Ri.filter((n) => !n.isAvailable || n.isAvailable(e)).map((n) => ({
|
|
15652
15659
|
id: n.id,
|
|
15653
15660
|
title: n.title,
|
|
15654
15661
|
subtitle: n.subtitle,
|
|
@@ -15664,7 +15671,7 @@ function kb() {
|
|
|
15664
15671
|
},
|
|
15665
15672
|
getItemCount: (t) => {
|
|
15666
15673
|
const e = t.getState();
|
|
15667
|
-
return
|
|
15674
|
+
return Ri.filter(
|
|
15668
15675
|
(n) => !n.isAvailable || n.isAvailable(e)
|
|
15669
15676
|
).length;
|
|
15670
15677
|
},
|
|
@@ -16038,7 +16045,7 @@ function Ab(t) {
|
|
|
16038
16045
|
}
|
|
16039
16046
|
};
|
|
16040
16047
|
}
|
|
16041
|
-
const Ul =
|
|
16048
|
+
const Ul = nt.createElement(
|
|
16042
16049
|
"svg",
|
|
16043
16050
|
{
|
|
16044
16051
|
width: "16",
|
|
@@ -16048,11 +16055,11 @@ const Ul = et.createElement(
|
|
|
16048
16055
|
stroke: "currentColor",
|
|
16049
16056
|
strokeWidth: "2"
|
|
16050
16057
|
},
|
|
16051
|
-
|
|
16058
|
+
nt.createElement("path", {
|
|
16052
16059
|
d: "M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"
|
|
16053
16060
|
}),
|
|
16054
|
-
|
|
16055
|
-
),
|
|
16061
|
+
nt.createElement("circle", { cx: "12", cy: "13", r: "4" })
|
|
16062
|
+
), Ib = nt.createElement(
|
|
16056
16063
|
"svg",
|
|
16057
16064
|
{
|
|
16058
16065
|
width: "16",
|
|
@@ -16062,9 +16069,9 @@ const Ul = et.createElement(
|
|
|
16062
16069
|
stroke: "currentColor",
|
|
16063
16070
|
strokeWidth: "2"
|
|
16064
16071
|
},
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
),
|
|
16072
|
+
nt.createElement("path", { d: "M6.13 1L6 16a2 2 0 0 0 2 2h15" }),
|
|
16073
|
+
nt.createElement("path", { d: "M1 6.13L16 6a2 2 0 0 1 2 2v15" })
|
|
16074
|
+
), Rb = {
|
|
16068
16075
|
id: "vision:capture-full-page",
|
|
16069
16076
|
icon: Ul,
|
|
16070
16077
|
tooltip: "Capture Full Page",
|
|
@@ -16077,7 +16084,7 @@ const Ul = et.createElement(
|
|
|
16077
16084
|
}
|
|
16078
16085
|
}, Mb = {
|
|
16079
16086
|
id: "vision:capture-region",
|
|
16080
|
-
icon:
|
|
16087
|
+
icon: Ib,
|
|
16081
16088
|
tooltip: "Capture Region",
|
|
16082
16089
|
shortcut: "⌘⇧R",
|
|
16083
16090
|
priority: 90,
|
|
@@ -16092,7 +16099,7 @@ const Ul = et.createElement(
|
|
|
16092
16099
|
tooltip: "Vision Capture",
|
|
16093
16100
|
priority: 100,
|
|
16094
16101
|
isVisible: (t) => t.plugins?.vision?.visionAvailable === !0,
|
|
16095
|
-
actions: [
|
|
16102
|
+
actions: [Rb, Mb]
|
|
16096
16103
|
};
|
|
16097
16104
|
function Lb() {
|
|
16098
16105
|
return [
|
|
@@ -16341,7 +16348,7 @@ function _b(t, e, n) {
|
|
|
16341
16348
|
`);
|
|
16342
16349
|
}
|
|
16343
16350
|
function Fb({ text: t, onCopy: e }) {
|
|
16344
|
-
const [n, i] =
|
|
16351
|
+
const [n, i] = at(!1), r = F(async () => {
|
|
16345
16352
|
try {
|
|
16346
16353
|
await navigator.clipboard.writeText(t), i(!0), e(), setTimeout(() => i(!1), 2e3);
|
|
16347
16354
|
} catch (o) {
|
|
@@ -16435,7 +16442,7 @@ function Nb({ data: t }) {
|
|
|
16435
16442
|
)
|
|
16436
16443
|
] });
|
|
16437
16444
|
}
|
|
16438
|
-
const yr =
|
|
16445
|
+
const yr = nt.createElement(
|
|
16439
16446
|
"svg",
|
|
16440
16447
|
{
|
|
16441
16448
|
width: "16",
|
|
@@ -16448,14 +16455,14 @@ const yr = et.createElement(
|
|
|
16448
16455
|
strokeLinejoin: "round"
|
|
16449
16456
|
},
|
|
16450
16457
|
// Clipboard shape
|
|
16451
|
-
|
|
16458
|
+
nt.createElement("path", {
|
|
16452
16459
|
d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"
|
|
16453
16460
|
}),
|
|
16454
16461
|
// Clipboard tab
|
|
16455
|
-
|
|
16462
|
+
nt.createElement("rect", { x: "8", y: "2", width: "8", height: "4", rx: "1", ry: "1" }),
|
|
16456
16463
|
// Wrench/fix indicator lines
|
|
16457
|
-
|
|
16458
|
-
|
|
16464
|
+
nt.createElement("line", { x1: "8", y1: "12", x2: "16", y2: "12" }),
|
|
16465
|
+
nt.createElement("line", { x1: "8", y1: "16", x2: "14", y2: "16" })
|
|
16459
16466
|
);
|
|
16460
16467
|
function Ob(t) {
|
|
16461
16468
|
const n = t.getState().plugins?.eslint;
|
|
@@ -16548,10 +16555,10 @@ function c0({
|
|
|
16548
16555
|
mode: e = "websocket",
|
|
16549
16556
|
manifestUrl: n
|
|
16550
16557
|
}) {
|
|
16551
|
-
const [i, r] =
|
|
16552
|
-
return e === "static" && !n && console.warn("[DevTool] Static mode requires manifestUrl prop"),
|
|
16558
|
+
const [i, r] = at(!1), [o, s] = at(ii), a = Q(null), l = Q(!1);
|
|
16559
|
+
return e === "static" && !n && console.warn("[DevTool] Static mode requires manifestUrl prop"), rt(() => {
|
|
16553
16560
|
r(!0);
|
|
16554
|
-
}, []),
|
|
16561
|
+
}, []), rt(() => {
|
|
16555
16562
|
if (!bs() || !t) return;
|
|
16556
16563
|
Ub(Hb);
|
|
16557
16564
|
const u = document.querySelector(
|
|
@@ -16565,7 +16572,7 @@ function c0({
|
|
|
16565
16572
|
return c.className = vs, c.setAttribute("data-ui-lint-root", "true"), document.body.appendChild(c), a.current = c, l.current = !0, () => {
|
|
16566
16573
|
l.current && a.current?.remove(), a.current = null, l.current = !1;
|
|
16567
16574
|
};
|
|
16568
|
-
}, [t]),
|
|
16575
|
+
}, [t]), rt(() => {
|
|
16569
16576
|
if (!bs() || !t || !i) return;
|
|
16570
16577
|
let u = null;
|
|
16571
16578
|
const c = e === "static" && n;
|
|
@@ -16593,7 +16600,7 @@ export {
|
|
|
16593
16600
|
lv as UILint,
|
|
16594
16601
|
e0 as buildEditorUrl,
|
|
16595
16602
|
pv as cleanupDataAttributes,
|
|
16596
|
-
|
|
16603
|
+
Iv as cleanupDataElements,
|
|
16597
16604
|
i0 as clearSourceCache,
|
|
16598
16605
|
vb as clearStaticMode,
|
|
16599
16606
|
gb as configureStaticMode,
|