@flemo/core 1.27.0 → 1.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +349 -348
- package/dist/screen/observeViewportScrollHeight.d.ts +4 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1665,7 +1665,7 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1665
1665
|
n = r.size > 1;
|
|
1666
1666
|
let a = Array.from(t.entries()).filter(([, e]) => e.size > 1).map(([e]) => e);
|
|
1667
1667
|
return n && a.push("transform"), a;
|
|
1668
|
-
},
|
|
1668
|
+
}, V = (e) => {
|
|
1669
1669
|
if (!ln(e)) return [];
|
|
1670
1670
|
let t = [], n = !0, r = [];
|
|
1671
1671
|
for (let i of Object.keys(e)) {
|
|
@@ -1679,7 +1679,7 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1679
1679
|
property: "transform",
|
|
1680
1680
|
value: n ? "none" : t.join(" ")
|
|
1681
1681
|
}), r;
|
|
1682
|
-
},
|
|
1682
|
+
}, H = (e) => e.map((e) => ` ${e.property}: ${e.value};`).join("\n"), xn = (e) => Array.isArray(e) ? e.length === 4 && e.every((e) => typeof e == "number") ? `cubic-bezier(${e.join(", ")})` : "linear" : typeof e == "string" ? {
|
|
1683
1683
|
linear: "linear",
|
|
1684
1684
|
easeIn: "ease-in",
|
|
1685
1685
|
easeOut: "ease-out",
|
|
@@ -1689,33 +1689,33 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1689
1689
|
backIn: "cubic-bezier(0.31, 0.01, 0.66, -0.59)",
|
|
1690
1690
|
backOut: "cubic-bezier(0.33, 1.53, 0.69, 0.99)",
|
|
1691
1691
|
anticipate: "cubic-bezier(0.36, 0, 0.66, -0.56)"
|
|
1692
|
-
}[e] ?? "ease" : "ease",
|
|
1692
|
+
}[e] ?? "ease" : "ease", Sn = (e, t) => {
|
|
1693
1693
|
let [n, r] = t.split("-");
|
|
1694
1694
|
return `[data-flemo-screen][data-flemo-transition="${e}"][data-flemo-status="${n}"][data-flemo-active="${r}"]`;
|
|
1695
|
-
},
|
|
1695
|
+
}, Cn = (e, t) => {
|
|
1696
1696
|
let [n, r] = t.split("-");
|
|
1697
1697
|
return `[data-flemo-decorator][data-flemo-decorator-name="${e}"][data-flemo-status="${n}"][data-flemo-active="${r}"]`;
|
|
1698
|
-
},
|
|
1698
|
+
}, wn = (e, t) => {
|
|
1699
1699
|
let [n, r] = t.split("-");
|
|
1700
1700
|
return `[data-flemo-bar][data-flemo-bar-transition="${e}"][data-flemo-bar-status="${n}"][data-flemo-bar-active="${r}"][data-flemo-bar-riding="true"]`;
|
|
1701
|
-
},
|
|
1701
|
+
}, Tn = (e, t) => {
|
|
1702
1702
|
let [n, r] = t.split("-");
|
|
1703
1703
|
return `[data-flemo-part-name="${e}"][data-flemo-status="${n}"][data-flemo-active="${r}"]`;
|
|
1704
|
-
},
|
|
1704
|
+
}, En = (e, t, n) => `flemo-${e}-${cn(t)}-${n}`, Dn = [
|
|
1705
1705
|
"-lpm",
|
|
1706
1706
|
"-deskhead",
|
|
1707
1707
|
"-lpmcreep"
|
|
1708
|
-
],
|
|
1709
|
-
let o =
|
|
1708
|
+
], On = (e, t) => e === t || Dn.some((n) => e === `${t}${n}`), kn = (e, t, n, r, i, a) => {
|
|
1709
|
+
let o = V(r), s = V(i.value), c = new Set(o.filter((e) => s.some((t) => t.property === e.property && t.value === e.value)).map((e) => e.property)), l = o.filter((e) => c.has(e.property)), u = o.filter((e) => !c.has(e.property)), d = s.filter((e) => !c.has(e.property)), f = nn(i.options), p = rn(i.options), m = xn(i.options?.ease), h = a(t, n), g = e === "screen" ? `${h},\n${wn(t, n)}` : h;
|
|
1710
1710
|
if (s.length === 0 && o.length === 0) return "";
|
|
1711
|
-
if (f <= 0 && p <= 0) return s.length === 0 ? "" : `${g} {\n${
|
|
1712
|
-
let _ =
|
|
1711
|
+
if (f <= 0 && p <= 0) return s.length === 0 ? "" : `${g} {\n${H(s)}\n animation: none;\n}`;
|
|
1712
|
+
let _ = En(e, t, n), v = [
|
|
1713
1713
|
`@keyframes ${_} {`,
|
|
1714
1714
|
" from {",
|
|
1715
|
-
|
|
1715
|
+
H(u).replace(/^/gm, " "),
|
|
1716
1716
|
" }",
|
|
1717
1717
|
" to {",
|
|
1718
|
-
|
|
1718
|
+
H(d).replace(/^/gm, " "),
|
|
1719
1719
|
" }",
|
|
1720
1720
|
"}"
|
|
1721
1721
|
].join("\n"), y = [
|
|
@@ -1727,7 +1727,7 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1727
1727
|
].filter(Boolean).join(" "), b = (e) => e.startsWith("REPLACING") ? .18 : e.startsWith("PUSHING") ? .1 : e.startsWith("POPPING") ? .08 : 0, x = (e) => e.startsWith("REPLACING") || e.startsWith("PUSHING") ? .033 : e.startsWith("POPPING") ? .017 : 0, S = (t, n, r, i) => {
|
|
1728
1728
|
if (e === "part" || r <= 0 || f <= 0 || o.length === 0 && s.length === 0) return "";
|
|
1729
1729
|
let a = f + r, c = (r / a * 100).toFixed(3), l = `${_}-${n}`, m = g.split(",\n").map((e) => `:root[${t}] ${e}`).join(",\n");
|
|
1730
|
-
return `\n@keyframes ${l} {\n 0%, ${c}% {\n${
|
|
1730
|
+
return `\n@keyframes ${l} {\n 0%, ${c}% {\n${H(u).replace(/^/gm, " ")}\n }\n 100% {\n${H(d).replace(/^/gm, " ")}\n }\n}\n${m} {\n animation-name: ${l};\n animation-duration: ${a.toFixed(3)}s;\n animation-delay: ${(i ? p + r : p).toFixed(3)}s;\n}`;
|
|
1731
1731
|
}, C = (t, n) => e !== "part" || n <= 0 || f <= 0 ? "" : `\n${((e = "") => g.split(",\n").map((n) => `:root[${t}]${e} ${n}`).join(",\n"))()} {\n animation-delay: ${(p + n).toFixed(3)}s;\n}`, w = (() => {
|
|
1732
1732
|
/* v8 ignore next */
|
|
1733
1733
|
if (e === "part") return "";
|
|
@@ -1747,29 +1747,29 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1747
1747
|
value: `${t}${sn}`
|
|
1748
1748
|
} : e);
|
|
1749
1749
|
})(), i = f + t, a = (t / i * 100).toFixed(3), c = `${_}-lpmcreep`, l = g.split(",\n").map((e) => `:root[data-flemo-lpm][data-flemo-creep] ${e}`).join(",\n");
|
|
1750
|
-
return `\n@keyframes ${c} {\n 0% {\n${
|
|
1750
|
+
return `\n@keyframes ${c} {\n 0% {\n${H(u).replace(/^/gm, " ")}\n }\n ${a}% {\n${H(r).replace(/^/gm, " ")}\n }\n 100% {\n${H(d).replace(/^/gm, " ")}\n }\n}\n${l} {\n animation-name: ${c};\n animation-duration: ${i.toFixed(3)}s;\n animation-delay: ${(p + t).toFixed(3)}s;\n}`;
|
|
1751
1751
|
})(), T = S("data-flemo-lpm", "lpm", b(n), !0), E = C("data-flemo-lpm", b(n)), D = S("data-flemo-desk-head", "deskhead", x(n), !1), O = C("data-flemo-desk-head", x(n)), k = new Map(u.map((e) => [e.property, e.value])), A = new Map(d.map((e) => [e.property, e.value])), j = Array.from(/* @__PURE__ */ new Set([...k.keys(), ...A.keys()])).filter((e) => k.get(e) !== A.get(e)), ee = j.length > 0 ? ` will-change: ${j.join(", ")};\n` : "", M = n.split("-")[0], te = M === "PUSHING" || M === "REPLACING" ? " contain: layout;\n" : "";
|
|
1752
|
-
return `${v}\n${`${g} {\n animation: ${y};\n${l.length > 0 ? `${
|
|
1753
|
-
},
|
|
1752
|
+
return `${v}\n${`${g} {\n animation: ${y};\n${l.length > 0 ? `${H(l)}\n` : ""}${ee}${te}}`}${T}${E}${w}${D}${O}${e === "screen" && n.endsWith("-false") && An(r) && s.length > 0 ? `\n${h}[data-flemo-anim-hold="park"] {\n animation: none;\n${H(s)}\n}` : ""}${e === "screen" && n.endsWith("-true") && (n.startsWith("PUSHING") || n.startsWith("REPLACING")) && An(r) && s.length > 0 ? `\n${h}[data-flemo-anim-hold="park-under"] {\n animation: none;\n${H(s)}\n}` : ""}${e === "screen" && n.endsWith("-true") && (n.startsWith("PUSHING") || n.startsWith("REPLACING")) && An(r) && s.length > 0 ? `\n${h}[data-flemo-anim-hold="park-over"] {\n animation: none;\n${H(s)}\n opacity: 0.02;\n}` : ""}`;
|
|
1753
|
+
}, An = (e) => {
|
|
1754
1754
|
if (!e) return !1;
|
|
1755
1755
|
if (e.opacity === 0) return !0;
|
|
1756
1756
|
let t = (e) => typeof e == "string" && e.trim().endsWith("%") && Math.abs(parseFloat(e)) >= 100;
|
|
1757
1757
|
return t(e.x) || t(e.y);
|
|
1758
|
-
},
|
|
1759
|
-
let i =
|
|
1760
|
-
return i.length === 0 ? "" : `${e(t, n)} {\n${
|
|
1761
|
-
},
|
|
1758
|
+
}, jn = (e, t, n, r) => {
|
|
1759
|
+
let i = V(r.value);
|
|
1760
|
+
return i.length === 0 ? "" : `${e(t, n)} {\n${H(i)}\n}`;
|
|
1761
|
+
}, Mn = (e, t, n = []) => {
|
|
1762
1762
|
let r = [];
|
|
1763
1763
|
for (let t of e) {
|
|
1764
1764
|
let e = t.name;
|
|
1765
1765
|
for (let n of tn) {
|
|
1766
1766
|
let i = t.variants[n], a = en[n];
|
|
1767
1767
|
if (a === "self") {
|
|
1768
|
-
r.push(
|
|
1768
|
+
r.push(jn(Sn, e, n, i));
|
|
1769
1769
|
continue;
|
|
1770
1770
|
}
|
|
1771
1771
|
let o = a === "initial" ? t.initial : t.variants[a].value;
|
|
1772
|
-
r.push(
|
|
1772
|
+
r.push(kn("screen", e, n, o, i, Sn));
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
1775
|
for (let e of t) {
|
|
@@ -1777,11 +1777,11 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1777
1777
|
for (let n of on) {
|
|
1778
1778
|
let i = e.variants[n], a = en[n];
|
|
1779
1779
|
if (a === "self") {
|
|
1780
|
-
r.push(
|
|
1780
|
+
r.push(jn(Cn, t, n, i));
|
|
1781
1781
|
continue;
|
|
1782
1782
|
}
|
|
1783
1783
|
let o = a === "initial" ? e.initial : e.variants[a].value;
|
|
1784
|
-
r.push(
|
|
1784
|
+
r.push(kn("decorator", t, n, o, i, Cn));
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
1787
|
for (let e of n) {
|
|
@@ -1789,19 +1789,19 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1789
1789
|
for (let n of on) {
|
|
1790
1790
|
let i = e.variants[n], a = en[n];
|
|
1791
1791
|
if (a === "self") {
|
|
1792
|
-
r.push(
|
|
1792
|
+
r.push(jn(Tn, t, n, i));
|
|
1793
1793
|
continue;
|
|
1794
1794
|
}
|
|
1795
1795
|
let o = a === "initial" ? e.initial : e.variants[a].value;
|
|
1796
|
-
r.push(
|
|
1796
|
+
r.push(kn("part", t, n, o, i, Tn));
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
1799
|
return [
|
|
1800
1800
|
...r.filter((e) => e.length > 0),
|
|
1801
|
-
|
|
1802
|
-
|
|
1801
|
+
Nn,
|
|
1802
|
+
Pn
|
|
1803
1803
|
].join("\n\n");
|
|
1804
|
-
},
|
|
1804
|
+
}, Nn = [
|
|
1805
1805
|
"[data-flemo-anim-hold=\"true\"],",
|
|
1806
1806
|
"[data-flemo-anim-hold=\"park\"],",
|
|
1807
1807
|
"[data-flemo-anim-hold=\"park-under\"],",
|
|
@@ -1812,53 +1812,53 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1812
1812
|
"[data-flemo-anim-hold=\"park-over\"] [data-flemo-part-name] {",
|
|
1813
1813
|
" animation-play-state: paused !important;",
|
|
1814
1814
|
"}"
|
|
1815
|
-
].join("\n"),
|
|
1815
|
+
].join("\n"), Pn = [
|
|
1816
1816
|
"[data-flemo-held-arrival] {",
|
|
1817
1817
|
" display: none !important;",
|
|
1818
1818
|
"}"
|
|
1819
|
-
].join("\n"),
|
|
1819
|
+
].join("\n"), U = (e, t) => {
|
|
1820
1820
|
let n = en[t];
|
|
1821
1821
|
if (n === "self") return !1;
|
|
1822
1822
|
let r = e.variants[t], i = nn(r.options), a = rn(r.options);
|
|
1823
1823
|
if (i <= 0 && a <= 0) return !1;
|
|
1824
|
-
let o =
|
|
1824
|
+
let o = V(n === "initial" ? e.initial : e.variants[n].value), s = V(r.value);
|
|
1825
1825
|
return o.length > 0 || s.length > 0;
|
|
1826
|
-
},
|
|
1826
|
+
}, Fn = {
|
|
1827
1827
|
REPLACING: 33,
|
|
1828
1828
|
PUSHING: 33,
|
|
1829
1829
|
POPPING: 17
|
|
1830
|
-
},
|
|
1830
|
+
}, In = {
|
|
1831
1831
|
REPLACING: 180,
|
|
1832
1832
|
PUSHING: 100,
|
|
1833
1833
|
POPPING: 80
|
|
1834
|
-
},
|
|
1835
|
-
function
|
|
1834
|
+
}, Ln = "data-flemo";
|
|
1835
|
+
function Rn() {
|
|
1836
1836
|
if (f()) return;
|
|
1837
|
-
let e =
|
|
1838
|
-
t || (t = document.createElement("style"), t.setAttribute(
|
|
1837
|
+
let e = Mn(Kt.values(), R.values(), z.values()), t = document.head.querySelector(`style[${Ln}]`);
|
|
1838
|
+
t || (t = document.createElement("style"), t.setAttribute(Ln, ""), document.head.appendChild(t)), t.textContent !== e && (t.textContent = e);
|
|
1839
1839
|
}
|
|
1840
1840
|
//#endregion
|
|
1841
1841
|
//#region src/transition/registerTransitionDefinitions.ts
|
|
1842
|
-
var
|
|
1842
|
+
var zn = /* @__PURE__ */ new Map(), Bn = /* @__PURE__ */ new Map(), Vn = /* @__PURE__ */ new Map(), Hn = (e, t) => {
|
|
1843
1843
|
e.set(t, (e.get(t) ?? 0) + 1);
|
|
1844
|
-
},
|
|
1844
|
+
}, Un = (e, t) => {
|
|
1845
1845
|
let n = (e.get(t) ?? 1) - 1;
|
|
1846
1846
|
return n <= 0 ? (e.delete(t), !0) : (e.set(t, n), !1);
|
|
1847
1847
|
};
|
|
1848
|
-
function
|
|
1849
|
-
for (let t of e) Kt.set(t.name, t),
|
|
1850
|
-
for (let e of t) R.set(e.name, e),
|
|
1851
|
-
for (let e of n) z.set(e.name, e),
|
|
1852
|
-
return
|
|
1853
|
-
for (let t of e)
|
|
1854
|
-
for (let e of t)
|
|
1855
|
-
for (let e of n)
|
|
1856
|
-
|
|
1848
|
+
function Wn(e, t, n = []) {
|
|
1849
|
+
for (let t of e) Kt.set(t.name, t), Hn(zn, t.name);
|
|
1850
|
+
for (let e of t) R.set(e.name, e), Hn(Bn, e.name);
|
|
1851
|
+
for (let e of n) z.set(e.name, e), Hn(Vn, e.name);
|
|
1852
|
+
return Rn(), () => {
|
|
1853
|
+
for (let t of e) Un(zn, t.name) && Kt.delete(t.name);
|
|
1854
|
+
for (let e of t) Un(Bn, e.name) && R.delete(e.name);
|
|
1855
|
+
for (let e of n) Un(Vn, e.name) && z.delete(e.name);
|
|
1856
|
+
Rn();
|
|
1857
1857
|
};
|
|
1858
1858
|
}
|
|
1859
1859
|
//#endregion
|
|
1860
1860
|
//#region src/transition/enteringInitialStyle.ts
|
|
1861
|
-
function
|
|
1861
|
+
function Gn(e) {
|
|
1862
1862
|
let { initial: t, isActive: n, status: r } = e;
|
|
1863
1863
|
if (!n || r !== "PUSHING" && r !== "REPLACING") return {};
|
|
1864
1864
|
let i = {};
|
|
@@ -1866,10 +1866,10 @@ function Kn(e) {
|
|
|
1866
1866
|
}
|
|
1867
1867
|
//#endregion
|
|
1868
1868
|
//#region src/transition/settleScrub.ts
|
|
1869
|
-
var
|
|
1869
|
+
var Kn = () => ({
|
|
1870
1870
|
request: (e) => requestAnimationFrame(e),
|
|
1871
1871
|
cancel: (e) => cancelAnimationFrame(e)
|
|
1872
|
-
}),
|
|
1872
|
+
}), qn = (e) => e.replace(/-([a-z])/g, (e, t) => t.toUpperCase()), Jn = ((e = Kn()) => {
|
|
1873
1873
|
let t = /* @__PURE__ */ new Map(), n = null, r = () => {
|
|
1874
1874
|
t.size === 0 && n !== null && (e.cancel(n), n = null);
|
|
1875
1875
|
}, i = (e, n) => {
|
|
@@ -1902,7 +1902,7 @@ var qn = () => ({
|
|
|
1902
1902
|
if (typeof r.animate != "function") return null;
|
|
1903
1903
|
i(r, "current");
|
|
1904
1904
|
let u = {};
|
|
1905
|
-
for (let e of o) u[
|
|
1905
|
+
for (let e of o) u[qn(e.property)] = e.value;
|
|
1906
1906
|
let d;
|
|
1907
1907
|
try {
|
|
1908
1908
|
d = r.animate([u], {
|
|
@@ -1939,18 +1939,18 @@ var qn = () => ({
|
|
|
1939
1939
|
r && (n === void 0 || r.owner === n) && i(e, "drop");
|
|
1940
1940
|
}
|
|
1941
1941
|
};
|
|
1942
|
-
})(),
|
|
1943
|
-
let r =
|
|
1944
|
-
r || (r = /* @__PURE__ */ new Map(),
|
|
1942
|
+
})(), Yn = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, Xn = /* @__PURE__ */ new WeakMap(), Zn = Symbol("flemo-inline-writer"), Qn = /* @__PURE__ */ new WeakMap(), W = (e, t, n = Zn) => {
|
|
1943
|
+
let r = Xn.get(e);
|
|
1944
|
+
r || (r = /* @__PURE__ */ new Map(), Xn.set(e, r));
|
|
1945
1945
|
let i = r.get(t);
|
|
1946
1946
|
i || (i = {
|
|
1947
1947
|
original: e.style.getPropertyValue(t),
|
|
1948
1948
|
owners: /* @__PURE__ */ new Set()
|
|
1949
1949
|
}, r.set(t, i)), i.owners.add(n);
|
|
1950
|
-
},
|
|
1951
|
-
|
|
1952
|
-
let r =
|
|
1953
|
-
(!n ||
|
|
1950
|
+
}, G = (e, t, n) => {
|
|
1951
|
+
Jn.cancel(e, n);
|
|
1952
|
+
let r = Xn.get(e);
|
|
1953
|
+
(!n || Qn.get(e) === n) && (e.style.transition = "", Qn.delete(e));
|
|
1954
1954
|
let i = (t) => {
|
|
1955
1955
|
let i = r?.get(t);
|
|
1956
1956
|
if (!i) {
|
|
@@ -1968,27 +1968,27 @@ var qn = () => ({
|
|
|
1968
1968
|
return;
|
|
1969
1969
|
}
|
|
1970
1970
|
n || (e.style.removeProperty("transform"), e.style.removeProperty("opacity"));
|
|
1971
|
-
},
|
|
1972
|
-
if (!
|
|
1973
|
-
let i = e, a =
|
|
1971
|
+
}, K = (e, t, n = {}, r) => {
|
|
1972
|
+
if (!Yn(e)) return Promise.resolve();
|
|
1973
|
+
let i = e, a = V(t);
|
|
1974
1974
|
if (a.length === 0) return Promise.resolve();
|
|
1975
|
-
let o = typeof n.duration == "number" ? n.duration : 0, s = typeof n.delay == "number" && n.delay > 0 ? n.delay : 0, c =
|
|
1975
|
+
let o = typeof n.duration == "number" ? n.duration : 0, s = typeof n.delay == "number" && n.delay > 0 ? n.delay : 0, c = xn(n.ease);
|
|
1976
1976
|
if (o <= 0 && s <= 0) {
|
|
1977
|
-
|
|
1978
|
-
for (let e of a)
|
|
1977
|
+
Jn.takeover(i, r), i.style.transition = "none", Qn.set(i, r);
|
|
1978
|
+
for (let e of a) W(i, e.property, r), i.style.setProperty(e.property, e.value);
|
|
1979
1979
|
return Promise.resolve();
|
|
1980
1980
|
}
|
|
1981
|
-
let l = be.playerAllowed() ?
|
|
1981
|
+
let l = be.playerAllowed() ? Jn.settle(i, a, {
|
|
1982
1982
|
durationMs: o * 1e3,
|
|
1983
1983
|
delayMs: s * 1e3,
|
|
1984
1984
|
easing: c
|
|
1985
1985
|
}, (e) => {
|
|
1986
|
-
|
|
1986
|
+
W(i, e.property, r), i.style.setProperty(e.property, e.value);
|
|
1987
1987
|
}, r) : null;
|
|
1988
1988
|
if (l) return l;
|
|
1989
1989
|
let u = a.map((e) => `${e.property} ${o}s ${c} ${s}s`).join(", ");
|
|
1990
|
-
i.style.transition = u,
|
|
1991
|
-
for (let e of a)
|
|
1990
|
+
i.style.transition = u, Qn.set(i, r), i.offsetWidth;
|
|
1991
|
+
for (let e of a) W(i, e.property, r), i.style.setProperty(e.property, e.value);
|
|
1992
1992
|
return new Promise((e) => {
|
|
1993
1993
|
let t = !1, n = () => {
|
|
1994
1994
|
t || (t = !0, i.removeEventListener("transitionend", r), e());
|
|
@@ -1997,65 +1997,65 @@ var qn = () => ({
|
|
|
1997
1997
|
};
|
|
1998
1998
|
i.addEventListener("transitionend", r), setTimeout(n, (o + s) * 1e3 + 60);
|
|
1999
1999
|
});
|
|
2000
|
-
},
|
|
2000
|
+
}, $n = (e) => {
|
|
2001
2001
|
if (typeof e.querySelectorAll == "function") {
|
|
2002
2002
|
e.tagName === "IMG" && !e.hasAttribute("decoding") && e.setAttribute("decoding", "async");
|
|
2003
2003
|
for (let t of Array.from(e.querySelectorAll("img:not([decoding])"))) t.setAttribute("decoding", "async");
|
|
2004
2004
|
}
|
|
2005
|
-
},
|
|
2006
|
-
function
|
|
2007
|
-
let e =
|
|
2008
|
-
if (
|
|
2005
|
+
}, er = 0, tr = [], nr = [];
|
|
2006
|
+
function rr() {
|
|
2007
|
+
let e = er === 0;
|
|
2008
|
+
if (er += 1, e) for (let e of nr) e();
|
|
2009
2009
|
let t = !1;
|
|
2010
2010
|
return () => {
|
|
2011
|
-
if (t || (t = !0, --
|
|
2012
|
-
let e =
|
|
2013
|
-
|
|
2011
|
+
if (t || (t = !0, --er, er > 0)) return;
|
|
2012
|
+
let e = tr;
|
|
2013
|
+
tr = [];
|
|
2014
2014
|
for (let t of e) t();
|
|
2015
2015
|
};
|
|
2016
2016
|
}
|
|
2017
|
-
var
|
|
2018
|
-
function
|
|
2019
|
-
return
|
|
2020
|
-
|
|
2017
|
+
var ir = () => er > 0;
|
|
2018
|
+
function ar(e) {
|
|
2019
|
+
return nr.push(e), () => {
|
|
2020
|
+
nr = nr.filter((t) => t !== e);
|
|
2021
2021
|
};
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2024
|
-
|
|
2023
|
+
function or(e) {
|
|
2024
|
+
er === 0 ? e() : tr.push(e);
|
|
2025
2025
|
}
|
|
2026
2026
|
//#endregion
|
|
2027
2027
|
//#region src/core/engine/imageDecodeOffloader.ts
|
|
2028
|
-
var
|
|
2028
|
+
var sr = 8, cr = 2, q = 96, lr = 15e3, ur = 3e3, dr = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", J = "data-flemo-image-src", fr = "flemo-image-scale-v1", pr = /* @__PURE__ */ new Set([
|
|
2029
2029
|
"PUSHING",
|
|
2030
2030
|
"POPPING",
|
|
2031
2031
|
"REPLACING"
|
|
2032
|
-
]),
|
|
2032
|
+
]), mr = (e) => {
|
|
2033
2033
|
let t = e.closest("[data-flemo-screen]");
|
|
2034
|
-
return !!t &&
|
|
2035
|
-
},
|
|
2034
|
+
return !!t && pr.has(t.getAttribute("data-flemo-status") ?? "");
|
|
2035
|
+
}, hr = (e) => {
|
|
2036
2036
|
if (e.naturalWidth <= 0 || e.naturalHeight <= 0 || e.boxWidth <= 0 || e.boxHeight <= 0) return !1;
|
|
2037
2037
|
let t = e.boxWidth * e.boxHeight * e.devicePixelRatio * e.devicePixelRatio;
|
|
2038
2038
|
return e.naturalWidth * e.naturalHeight > t * 8;
|
|
2039
|
-
},
|
|
2039
|
+
}, gr = "onmessage = async (e) => {\n const { url, targetWidth, neededArea, ratio } = e.data;\n try {\n const response = await fetch(url);\n if (!response.ok) throw new Error(\"http \" + response.status);\n const blob = await response.blob();\n const full = await createImageBitmap(blob);\n if (full.width * full.height <= neededArea * ratio) {\n full.close();\n postMessage({ url, skip: true });\n return;\n }\n const scale = targetWidth / full.width;\n const canvas = new OffscreenCanvas(targetWidth, Math.max(1, Math.round(full.height * scale)));\n const context = canvas.getContext(\"2d\");\n context.imageSmoothingQuality = \"high\";\n context.drawImage(full, 0, 0, canvas.width, canvas.height);\n full.close();\n const out = await canvas.convertToBlob({ type: \"image/jpeg\", quality: 0.85 });\n postMessage({ url, blob: out });\n } catch (error) {\n postMessage({ url, error: String(error) });\n }\n};", _r = () => typeof Worker < "u" && typeof OffscreenCanvas < "u" && typeof createImageBitmap == "function" && typeof MutationObserver < "u" && typeof URL < "u" && typeof URL.createObjectURL == "function", vr = async (e, t) => {
|
|
2040
2040
|
try {
|
|
2041
2041
|
if (typeof caches > "u") return;
|
|
2042
|
-
await (await caches.open(
|
|
2042
|
+
await (await caches.open(fr)).put(e, new Response(t, { headers: { "content-type": t.type } }));
|
|
2043
2043
|
} catch {}
|
|
2044
|
-
},
|
|
2044
|
+
}, yr = async (e) => {
|
|
2045
2045
|
try {
|
|
2046
2046
|
if (typeof caches > "u") return null;
|
|
2047
|
-
let t = await (await caches.open(
|
|
2047
|
+
let t = await (await caches.open(fr)).match(e);
|
|
2048
2048
|
return t ? await t.blob() : null;
|
|
2049
2049
|
} catch {
|
|
2050
2050
|
return null;
|
|
2051
2051
|
}
|
|
2052
2052
|
};
|
|
2053
|
-
function
|
|
2054
|
-
if (!
|
|
2053
|
+
function br(e) {
|
|
2054
|
+
if (!_r()) return () => {};
|
|
2055
2055
|
let t = null, n = !1, r = /* @__PURE__ */ new Map(), i = (e) => !!e && e !== "skip" && e !== "opaque", a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new WeakSet(), l = /* @__PURE__ */ new Set(), u = () => typeof devicePixelRatio == "number" ? devicePixelRatio : 1, d = () => {
|
|
2056
2056
|
if (t) return t;
|
|
2057
2057
|
try {
|
|
2058
|
-
t = new Worker(URL.createObjectURL(new Blob([
|
|
2058
|
+
t = new Worker(URL.createObjectURL(new Blob([gr])));
|
|
2059
2059
|
} catch {
|
|
2060
2060
|
return null;
|
|
2061
2061
|
}
|
|
@@ -2070,7 +2070,7 @@ function xr(e) {
|
|
|
2070
2070
|
return;
|
|
2071
2071
|
}
|
|
2072
2072
|
let a = URL.createObjectURL(n);
|
|
2073
|
-
l.add(a),
|
|
2073
|
+
l.add(a), vr(t, n), f(t, a);
|
|
2074
2074
|
}, t;
|
|
2075
2075
|
}, f = (e, t) => {
|
|
2076
2076
|
r.has(e) || r.set(e, t);
|
|
@@ -2079,21 +2079,21 @@ function xr(e) {
|
|
|
2079
2079
|
let n = () => {
|
|
2080
2080
|
t ? e.style.visibility = t : e.style.removeProperty("visibility");
|
|
2081
2081
|
};
|
|
2082
|
-
if (!
|
|
2082
|
+
if (!ir()) {
|
|
2083
2083
|
n();
|
|
2084
2084
|
return;
|
|
2085
2085
|
}
|
|
2086
2086
|
let r = !1, i = () => {
|
|
2087
2087
|
r || (r = !0, clearTimeout(o), a.delete(i), n());
|
|
2088
|
-
}, o = setTimeout(i,
|
|
2089
|
-
a.add(i),
|
|
2088
|
+
}, o = setTimeout(i, ur);
|
|
2089
|
+
a.add(i), or(i);
|
|
2090
2090
|
}, m = (e, t) => {
|
|
2091
2091
|
let n = () => {
|
|
2092
|
-
if (
|
|
2093
|
-
|
|
2092
|
+
if (ir()) {
|
|
2093
|
+
or(t);
|
|
2094
2094
|
return;
|
|
2095
2095
|
}
|
|
2096
|
-
if (!
|
|
2096
|
+
if (!mr(e) || typeof requestAnimationFrame != "function") {
|
|
2097
2097
|
t();
|
|
2098
2098
|
return;
|
|
2099
2099
|
}
|
|
@@ -2105,10 +2105,10 @@ function xr(e) {
|
|
|
2105
2105
|
e.style.visibility = "hidden";
|
|
2106
2106
|
let r = !1, i = () => {
|
|
2107
2107
|
r || (r = !0, clearTimeout(o), a.delete(i), t(), n ? e.style.visibility = n : e.style.removeProperty("visibility"));
|
|
2108
|
-
}, o = setTimeout(i,
|
|
2108
|
+
}, o = setTimeout(i, ur);
|
|
2109
2109
|
a.add(i), m(e, i);
|
|
2110
|
-
}, g = (e, t) => !
|
|
2111
|
-
e.setAttribute(
|
|
2110
|
+
}, g = (e, t) => !ir() && !mr(e) ? !1 : (e.setAttribute(J, t), h(e, () => {}), !0), _ = (e, t, a) => {
|
|
2111
|
+
e.setAttribute(J, t), e.src = a, h(e, () => {
|
|
2112
2112
|
/* v8 ignore next -- disposal runs pending reveals; nothing to repair. */
|
|
2113
2113
|
if (n) return;
|
|
2114
2114
|
let a = r.get(t);
|
|
@@ -2119,12 +2119,12 @@ function xr(e) {
|
|
|
2119
2119
|
if (n) {
|
|
2120
2120
|
if (s.delete(e), clearTimeout(n.timeout), n.detachListeners?.(), n.responsive) {
|
|
2121
2121
|
if (i(t)) {
|
|
2122
|
-
e.setAttribute(
|
|
2122
|
+
e.setAttribute(J, n.url), e.removeAttribute("srcset"), e.removeAttribute("sizes");
|
|
2123
2123
|
let r = e.closest("picture");
|
|
2124
2124
|
if (r) for (let e of Array.from(r.querySelectorAll("source"))) e.removeAttribute("srcset");
|
|
2125
2125
|
e.src = t;
|
|
2126
2126
|
}
|
|
2127
|
-
} else e.getAttribute("src") ===
|
|
2127
|
+
} else e.getAttribute("src") === dr && (i(t) ? e.src = t : (e.removeAttribute(J), e.src = n.url));
|
|
2128
2128
|
p(e, n.previousVisibility);
|
|
2129
2129
|
}
|
|
2130
2130
|
}, y = /* @__PURE__ */ new Map(), b = !1, x = () => {
|
|
@@ -2133,14 +2133,14 @@ function xr(e) {
|
|
|
2133
2133
|
y.clear();
|
|
2134
2134
|
for (let [t, n] of e) C(t, n.boxWidth, n.boxHeight);
|
|
2135
2135
|
}, S = () => {
|
|
2136
|
-
b || (b = !0,
|
|
2136
|
+
b || (b = !0, or(() => {
|
|
2137
2137
|
if (n) return;
|
|
2138
2138
|
let e = globalThis.requestIdleCallback;
|
|
2139
2139
|
typeof e == "function" ? e(() => x()) : typeof setTimeout == "function" ? setTimeout(x, 400) : x();
|
|
2140
2140
|
}));
|
|
2141
2141
|
}, C = (e, t, n) => {
|
|
2142
2142
|
if (r.has(e) || o.has(e)) return;
|
|
2143
|
-
if (
|
|
2143
|
+
if (ir() && F()) {
|
|
2144
2144
|
y.has(e) || y.set(e, {
|
|
2145
2145
|
boxWidth: t,
|
|
2146
2146
|
boxHeight: n
|
|
@@ -2150,28 +2150,28 @@ function xr(e) {
|
|
|
2150
2150
|
let i = d();
|
|
2151
2151
|
if (!i) return;
|
|
2152
2152
|
o.add(e);
|
|
2153
|
-
let a = Math.round(Math.max(
|
|
2153
|
+
let a = Math.round(Math.max(q, t * u()) * cr), s = Math.max(t * n, 9216) * u() ** 2;
|
|
2154
2154
|
i.postMessage({
|
|
2155
2155
|
url: e,
|
|
2156
2156
|
targetWidth: a,
|
|
2157
2157
|
neededArea: s,
|
|
2158
2158
|
ratio: 8
|
|
2159
2159
|
});
|
|
2160
|
-
}, w =
|
|
2160
|
+
}, w = ar(() => {
|
|
2161
2161
|
if (F() && !(!t || o.size === 0)) {
|
|
2162
2162
|
t.terminate(), t = null;
|
|
2163
2163
|
for (let e of o) {
|
|
2164
2164
|
if (y.has(e)) continue;
|
|
2165
2165
|
let t = {
|
|
2166
|
-
boxWidth:
|
|
2167
|
-
boxHeight:
|
|
2166
|
+
boxWidth: q,
|
|
2167
|
+
boxHeight: q
|
|
2168
2168
|
};
|
|
2169
2169
|
for (let [n, r] of s) {
|
|
2170
2170
|
if (r.url !== e) continue;
|
|
2171
2171
|
let i = n.getBoundingClientRect();
|
|
2172
2172
|
t = {
|
|
2173
|
-
boxWidth: i.width ||
|
|
2174
|
-
boxHeight: i.height ||
|
|
2173
|
+
boxWidth: i.width || q,
|
|
2174
|
+
boxHeight: i.height || q
|
|
2175
2175
|
};
|
|
2176
2176
|
break;
|
|
2177
2177
|
}
|
|
@@ -2185,17 +2185,17 @@ function xr(e) {
|
|
|
2185
2185
|
let a = {
|
|
2186
2186
|
url: "",
|
|
2187
2187
|
previousVisibility: e.style.visibility,
|
|
2188
|
-
timeout: setTimeout(() => v(e, null),
|
|
2188
|
+
timeout: setTimeout(() => v(e, null), lr),
|
|
2189
2189
|
responsive: !0
|
|
2190
2190
|
}, o = () => {
|
|
2191
2191
|
/* v8 ignore next -- consider() only routes elements with an https src
|
|
2192
2192
|
here, so the final fallback arm is unreachable. */
|
|
2193
2193
|
let t = e.currentSrc || e.getAttribute("src") || "", i = e.getBoundingClientRect();
|
|
2194
|
-
if (!(/^https?:/.test(t) &&
|
|
2194
|
+
if (!(/^https?:/.test(t) && hr({
|
|
2195
2195
|
naturalWidth: e.naturalWidth,
|
|
2196
2196
|
naturalHeight: e.naturalHeight,
|
|
2197
|
-
boxWidth: i.width ||
|
|
2198
|
-
boxHeight: i.height ||
|
|
2197
|
+
boxWidth: i.width || q,
|
|
2198
|
+
boxHeight: i.height || q,
|
|
2199
2199
|
devicePixelRatio: u()
|
|
2200
2200
|
}))) {
|
|
2201
2201
|
v(e, null);
|
|
@@ -2207,7 +2207,7 @@ function xr(e) {
|
|
|
2207
2207
|
v(e, o);
|
|
2208
2208
|
return;
|
|
2209
2209
|
}
|
|
2210
|
-
|
|
2210
|
+
yr(t).then((a) => {
|
|
2211
2211
|
if (!(n || !s.has(e))) {
|
|
2212
2212
|
/* v8 ignore start -- a verdict can only appear via settle(), which
|
|
2213
2213
|
releases every held element of the url first, so a still-held
|
|
@@ -2223,7 +2223,7 @@ function xr(e) {
|
|
|
2223
2223
|
l.add(e), f(t, e);
|
|
2224
2224
|
return;
|
|
2225
2225
|
}
|
|
2226
|
-
C(t, i.width ||
|
|
2226
|
+
C(t, i.width || q, i.height || q);
|
|
2227
2227
|
}
|
|
2228
2228
|
});
|
|
2229
2229
|
};
|
|
@@ -2246,20 +2246,20 @@ function xr(e) {
|
|
|
2246
2246
|
if (c.add(e), e.complete && e.naturalWidth > 0) {
|
|
2247
2247
|
if (!t) {
|
|
2248
2248
|
let t = e.getBoundingClientRect();
|
|
2249
|
-
C(a, t.width ||
|
|
2249
|
+
C(a, t.width || q, t.height || q);
|
|
2250
2250
|
return;
|
|
2251
2251
|
}
|
|
2252
2252
|
let n = e.getBoundingClientRect();
|
|
2253
|
-
if (!
|
|
2253
|
+
if (!hr({
|
|
2254
2254
|
naturalWidth: e.naturalWidth,
|
|
2255
2255
|
naturalHeight: e.naturalHeight,
|
|
2256
|
-
boxWidth: n.width ||
|
|
2257
|
-
boxHeight: n.height ||
|
|
2256
|
+
boxWidth: n.width || q,
|
|
2257
|
+
boxHeight: n.height || q,
|
|
2258
2258
|
devicePixelRatio: u()
|
|
2259
2259
|
})) return;
|
|
2260
2260
|
let o = r.get(a);
|
|
2261
2261
|
if (i(o)) {
|
|
2262
|
-
|
|
2262
|
+
ir() || mr(e) ? _(e, a, o) : (e.setAttribute(J, a), e.src = o);
|
|
2263
2263
|
return;
|
|
2264
2264
|
}
|
|
2265
2265
|
if (o === "opaque") {
|
|
@@ -2275,14 +2275,14 @@ function xr(e) {
|
|
|
2275
2275
|
return;
|
|
2276
2276
|
}
|
|
2277
2277
|
if (o) {
|
|
2278
|
-
|
|
2278
|
+
ir() || mr(e) ? _(e, a, o) : (e.setAttribute(J, a), e.src = o);
|
|
2279
2279
|
return;
|
|
2280
2280
|
}
|
|
2281
2281
|
s.set(e, {
|
|
2282
2282
|
url: a,
|
|
2283
2283
|
previousVisibility: e.style.visibility,
|
|
2284
|
-
timeout: setTimeout(() => v(e, null),
|
|
2285
|
-
}), e.style.visibility = "hidden", e.setAttribute(
|
|
2284
|
+
timeout: setTimeout(() => v(e, null), lr)
|
|
2285
|
+
}), e.style.visibility = "hidden", e.setAttribute(J, a), e.src = dr, yr(a).then((t) => {
|
|
2286
2286
|
if (n || r.has(a)) return;
|
|
2287
2287
|
if (t) {
|
|
2288
2288
|
let e = URL.createObjectURL(t);
|
|
@@ -2292,7 +2292,7 @@ function xr(e) {
|
|
|
2292
2292
|
let i = () => {
|
|
2293
2293
|
if (n) return;
|
|
2294
2294
|
let t = e.getBoundingClientRect();
|
|
2295
|
-
C(a, t.width ||
|
|
2295
|
+
C(a, t.width || q, t.height || q);
|
|
2296
2296
|
};
|
|
2297
2297
|
typeof requestAnimationFrame == "function" ? requestAnimationFrame(i) : i();
|
|
2298
2298
|
});
|
|
@@ -2309,21 +2309,21 @@ function xr(e) {
|
|
|
2309
2309
|
let k = (e) => {
|
|
2310
2310
|
let t = e.getAttribute("src") ?? "", n = s.get(e);
|
|
2311
2311
|
if (n && !n.responsive) {
|
|
2312
|
-
t === n.url && (e.src =
|
|
2312
|
+
t === n.url && (e.src = dr);
|
|
2313
2313
|
return;
|
|
2314
2314
|
}
|
|
2315
|
-
let a = e.getAttribute(
|
|
2315
|
+
let a = e.getAttribute(J);
|
|
2316
2316
|
if (a) if (t === a) {
|
|
2317
2317
|
let t = r.get(a);
|
|
2318
2318
|
i(t) && (e.src = t);
|
|
2319
|
-
} else t !==
|
|
2319
|
+
} else t !== dr && !t.startsWith("blob:") && e.removeAttribute(J);
|
|
2320
2320
|
}, A = !1, j = new MutationObserver((t) => {
|
|
2321
2321
|
if (!n) {
|
|
2322
|
-
if (
|
|
2322
|
+
if (ir()) {
|
|
2323
2323
|
if (A) return;
|
|
2324
|
-
A = !0,
|
|
2324
|
+
A = !0, or(() => {
|
|
2325
2325
|
if (A = !1, !n) {
|
|
2326
|
-
for (let t of Array.from(e.querySelectorAll(`img[${
|
|
2326
|
+
for (let t of Array.from(e.querySelectorAll(`img[${J}]`))) k(t);
|
|
2327
2327
|
for (let e of [...s.keys()]) k(e);
|
|
2328
2328
|
}
|
|
2329
2329
|
});
|
|
@@ -2345,23 +2345,23 @@ function xr(e) {
|
|
|
2345
2345
|
l.clear();
|
|
2346
2346
|
};
|
|
2347
2347
|
}
|
|
2348
|
-
var
|
|
2349
|
-
function
|
|
2350
|
-
return typeof document > "u" || !document.body ? () => {} : (
|
|
2351
|
-
dispose:
|
|
2348
|
+
var xr = null;
|
|
2349
|
+
function Sr() {
|
|
2350
|
+
return typeof document > "u" || !document.body ? () => {} : (xr ? xr.count += 1 : xr = {
|
|
2351
|
+
dispose: br(document.body),
|
|
2352
2352
|
count: 1
|
|
2353
2353
|
}, () => {
|
|
2354
|
-
|
|
2354
|
+
xr && (--xr.count, xr.count <= 0 && (xr.dispose(), xr = null));
|
|
2355
2355
|
});
|
|
2356
2356
|
}
|
|
2357
2357
|
//#endregion
|
|
2358
2358
|
//#region src/core/engine/arrivalHold.ts
|
|
2359
|
-
var
|
|
2360
|
-
function
|
|
2359
|
+
var Cr = "data-flemo-held-arrival";
|
|
2360
|
+
function wr(e) {
|
|
2361
2361
|
if (typeof MutationObserver > "u") return () => {};
|
|
2362
2362
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = (t) => {
|
|
2363
2363
|
let n = t instanceof Element ? t : t.parentElement;
|
|
2364
|
-
return !n || n === e || n.closest(`[data-flemo-part-name], [${
|
|
2364
|
+
return !n || n === e || n.closest(`[data-flemo-part-name], [${Cr}], [${J}]`) !== null;
|
|
2365
2365
|
}, s = (e, t, n, r) => e ? n === e.glass ? (e.pendingEcho ? e.pendingEcho = !1 : e.latest = n, e) : (e.latest = n, r(e.glass), e.pendingEcho = !0, e) : n === t ? null : (r(t), {
|
|
2366
2366
|
glass: t,
|
|
2367
2367
|
latest: n,
|
|
@@ -2391,12 +2391,12 @@ function Tr(e) {
|
|
|
2391
2391
|
if (i.type === "childList") {
|
|
2392
2392
|
for (let e of Array.from(i.removedNodes)) if (!n.has(e)) {
|
|
2393
2393
|
if (e instanceof Element && t.delete(e)) {
|
|
2394
|
-
e.removeAttribute(
|
|
2394
|
+
e.removeAttribute(Cr);
|
|
2395
2395
|
continue;
|
|
2396
2396
|
}
|
|
2397
2397
|
(e instanceof Element || e.nodeType === Node.TEXT_NODE) && l(i.target).removed.push(e);
|
|
2398
2398
|
}
|
|
2399
|
-
for (let e of Array.from(i.addedNodes)) r.delete(e) || e instanceof Element && (e.setAttribute(
|
|
2399
|
+
for (let e of Array.from(i.addedNodes)) r.delete(e) || e instanceof Element && (e.setAttribute(Cr, ""), t.add(e), l(i.target).added.push(e));
|
|
2400
2400
|
}
|
|
2401
2401
|
}
|
|
2402
2402
|
for (let [e, t] of u) {
|
|
@@ -2431,7 +2431,7 @@ function Tr(e) {
|
|
|
2431
2431
|
c.disconnect();
|
|
2432
2432
|
for (let e of n) e.parentNode?.removeChild(e);
|
|
2433
2433
|
n.clear();
|
|
2434
|
-
for (let e of t) e instanceof HTMLElement &&
|
|
2434
|
+
for (let e of t) e instanceof HTMLElement && $n(e), e.removeAttribute(Cr);
|
|
2435
2435
|
t.clear();
|
|
2436
2436
|
for (let [e, t] of i) e.isConnected && (e.nodeValue = t.latest);
|
|
2437
2437
|
i.clear();
|
|
@@ -2441,57 +2441,57 @@ function Tr(e) {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
//#endregion
|
|
2443
2443
|
//#region src/core/engine/compositorWarmUp.ts
|
|
2444
|
-
var
|
|
2444
|
+
var Tr = "data-flemo-warm", Er = 3e3, Dr = [{ backgroundPosition: "0px 0px" }, { backgroundPosition: "48px 0px" }], Or = {
|
|
2445
2445
|
duration: 500,
|
|
2446
2446
|
iterations: Infinity,
|
|
2447
2447
|
direction: "alternate",
|
|
2448
2448
|
easing: "linear"
|
|
2449
|
-
},
|
|
2450
|
-
|
|
2449
|
+
}, kr = "position:fixed;top:0;left:0;width:48px;height:48px;pointer-events:none;opacity:0.02;background-image:linear-gradient(90deg,#808080 0 24px,#909090 24px 48px);background-repeat:repeat;background-size:48px 48px;", Ar = "data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAeuEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHWTbuMU6uEElTDZ1OsggExTbuMU6uEHFO7a1Osggdg7AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmsCrXsYMPQkBNgIxMYXZmNjMuMS4xMDBXQYxMYXZmNjMuMS4xMDBEiYhAj0AAAAAAABZUrmvWrgEAAAAAAABN14EBc8WIPqUZMMrLeHecgQAitZyDdW5kiIEAhoVWX1ZQOIOBASPjg4P+UCrgkLCBCLqBCJqBAlWwhFW5gQFV7oEA7AEAAAAAAAACAAASVMNn+nNzn2PAgGfImUWjh0VOQ09ERVJEh4xMYXZmNjMuMS4xMDBzc9VjwItjxYg+pRkwyst4d2fIoEWjh0VOQ09ERVJEh5NMYXZjNjMuMS4xMDAgbGlidnB4Z8ihRaOIRFVSQVRJT05Eh5MwMDowMDowMS4wMDAwMDAwMDAAH0O2dUWq54EAo5+BAACAEAIAnQEqCAAIAABHCIWFiIWEiAICAAYZaAAAo5WBABEAsQEAARAQABgAGG/0DAAEAACjlYEAIQCxAQABEBAAGAAYb/QMAAQAAKOVgQAyALEBAAEQEAAYABhv9AwABAAAo5WBAEMAsQEAARAQABgAGG/0DAAEAACjlYEAUwCxAQABEBAAGAAYb/QMAAQAAKOVgQBkALEBAAEQEAAYABhv9AwABAAAo5SBAHUAkQEAARAQFGAAYb/QMAAQAKOXgQCFALEBAAEQEAAYADA/9AwAAAD+aACjlYEAlgCxAQABEBAAGAAYb/QMAAQAAKOXgQCnALEBAAEQEAAYADA/9AwAAAD+aACjlYEAtwCxAQABEBAAGAAYb/QMAAQAAKOXgQDIALEBAAEQEAAYADA/9AwAAAD+aACjl4EA2QCxAQABEBAAGAAwP/QMAAAA/mgAo5WBAOkAsQEAARAQFGAAYWC/0AAgAACjn4EA+oAQAgCdASoIAAgAAEcIhYWIhYSIAgIABhloAACjl4EBCwCxAQABEBAAGAAwP/QMAAAA/mgAo5WBARsAsQEAARAQABgAGG/0DAAEAACjl4EBLACxAQABEBAAGAAwP/QMAAAA/mgAo5WBAT0AsQEAARAQABgAGG/0DAAEAACjl4EBTQCxAQABEBAAGAAwP/QMAAAA/mgAo5eBAV4AsQEAARAQABgAMD/0DAAAAP5oAKOVgQFvALEBAAEQEBRgAGFgv9AAIAAAo5+BAX+AEAIAnQEqCAAIAABHCIWFiIWEiAICAAYZaAAAo5eBAZAAsQEAARAQABgAMD/0DAAAAP5oAKOVgQGhALEBAAEQEAAYABhv9AwABAAAo5WBAbEAsQEAARAQABgAGG/0DAAEAACjlYEBwgCxAQABEBAAGAAYb/QMAAQAAKOXgQHTALEBAAEQEAAYADA/9AwAAAD+aACjlYEB4wCxAQABEBAAGAAYb/QMAAQAAKOWgQH0AJEBAAEQEBRgAMD/0DAAAP5oAKOVgQIFALEBAAEQEAAYABhv9AwABAAAo5WBAhUAsQEAARAQABgAGFgYL+gMAACjlYECJgCxAQABEBAAGAAYWBgv6AwAAKOVgQI3ALEBAAEQEAAYABhYGC/oDAAAo5WBAkcAsQEAARAQABgAGFgYL+gMAACjlYECWACxAQABEBAAGAAYWBgv6AwAAKOfgQJpgBACAJ0BKggACAAARwiFhYiFhIgCAgAGGWgAAKOXgQJ5ALEBAAEQEAAYADA/9AwAAAD+aACjlYECigCxAQABEBAAGAAYb/QMAAQAAKOXgQKbALEBAAEQEAAYADA/9AwAAAD+aACjl4ECqwCxAQABEBAAGAAwP/QMAAAA/mgAo5WBArwAsQEAARAQABgAGG/0DAAEAACjlYECzQCxAQABEBAAGAAYb/QMAAQAAKOWgQLdAJEBAAEQEBRgAMD/0DAAAP5oAKOVgQLuALEBAAEQEAAYABhv9AwABAAAo5WBAv8AsQEAARAQABgAGFgYL+gMAACjlYEDDwCxAQABEBAAGAAYWBgv6AwAAKOVgQMgALEBAAEQEAAYABhYGC/oDAAAo5WBAzEAsQEAARAQABgAGFgYGBgQAACjlYEDQQCxAQABEBAAGAAYWC/0AAgAAKOVgQNSALEBAAEQEBRgAGFgv9AAIAAAo5WBA2MAsQEAARAQABgAGFgv9AAIAACjlYEDcwCxAQABEBAAGAAYWC/0AAgAAKOVgQOEALEBAAEQEAAYABhYGBgYEAAAo5WBA5UAsQEAARAQABgAGFgYL+gMAACjlYEDpQCxAQABEBAAGAAYWBgYGBAAAKOVgQO2ALEBAAEQEAAYABhYGC/oDAAAo5WBA8cAsQEAARAQABgAGFgYGBgQAACjlYED1wCxAQABEBAAGAAYWBgv6AwAABxTu2vJu4+zgQC3iveBAfGCAbDwgQO7kLOB+reL94EB8YIBsPCCAW27kbOCAX+3i/eBAfGCAbDwggI3u5GzggJpt4v3gQHxggGw8IIDiA==", Y = null, jr = null, X = null, Mr = null, Nr = 0, Pr = () => {
|
|
2450
|
+
Nr = 0, Mr?.cancel(), Mr = null, X?.remove(), X = null;
|
|
2451
2451
|
};
|
|
2452
|
-
function
|
|
2452
|
+
function Fr() {
|
|
2453
2453
|
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function") return () => {};
|
|
2454
|
-
if (
|
|
2455
|
-
|
|
2454
|
+
if (Nr += 1, !X) {
|
|
2455
|
+
X = document.createElement("div"), X.setAttribute(Tr, ""), X.setAttribute("aria-hidden", "true"), X.setAttribute("style", kr), document.body.appendChild(X);
|
|
2456
2456
|
try {
|
|
2457
|
-
|
|
2457
|
+
Mr = X.animate(Dr, Or);
|
|
2458
2458
|
} catch {
|
|
2459
|
-
|
|
2459
|
+
Mr = null;
|
|
2460
2460
|
}
|
|
2461
|
-
if (!
|
|
2462
|
-
|
|
2463
|
-
let e =
|
|
2464
|
-
|
|
2461
|
+
if (!Y && at()) try {
|
|
2462
|
+
Y = document.createElement("video"), Y.muted = !0, Y.loop = !0, Y.playsInline = !0, Y.setAttribute("aria-hidden", "true"), Y.setAttribute("data-flemo-warm-video", ""), Y.setAttribute("style", "position:fixed;top:0;left:52px;width:8px;height:8px;pointer-events:none;opacity:0.02;"), Y.src = Ar, document.body.appendChild(Y), Y.play()?.catch?.(() => {});
|
|
2463
|
+
let e = Y;
|
|
2464
|
+
jr = () => {
|
|
2465
2465
|
document.visibilityState === "hidden" ? e.pause() : e.play()?.catch?.(() => {});
|
|
2466
|
-
}, document.addEventListener("visibilitychange",
|
|
2466
|
+
}, document.addEventListener("visibilitychange", jr);
|
|
2467
2467
|
} catch {
|
|
2468
|
-
|
|
2468
|
+
Y = null;
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
2471
|
let e = !1, t = setTimeout(() => {
|
|
2472
|
-
e || (e = !0, --
|
|
2473
|
-
},
|
|
2472
|
+
e || (e = !0, --Nr, Nr <= 0 && Pr());
|
|
2473
|
+
}, Er);
|
|
2474
2474
|
return () => {
|
|
2475
|
-
e || (e = !0, clearTimeout(t), --
|
|
2475
|
+
e || (e = !0, clearTimeout(t), --Nr, Nr <= 0 && Pr());
|
|
2476
2476
|
};
|
|
2477
2477
|
}
|
|
2478
2478
|
//#endregion
|
|
2479
2479
|
//#region src/core/engine/emulationNotice.ts
|
|
2480
|
-
var
|
|
2480
|
+
var Ir = () => {
|
|
2481
2481
|
if (typeof navigator > "u") return !1;
|
|
2482
2482
|
let e = navigator.platform ?? "";
|
|
2483
2483
|
return /Mac/i.test(e) ? (navigator.maxTouchPoints ?? 0) > 0 : !1;
|
|
2484
|
-
},
|
|
2485
|
-
|
|
2486
|
-
},
|
|
2484
|
+
}, Lr = !1, Rr = () => {
|
|
2485
|
+
Lr || !F() || !Ir() || (Lr = !0, console.warn("[flemo] DevTools device emulation detected. The emulated view is composited through an extra scaling pass, so transitions can show text shimmer and settle flashes that do NOT exist in a plain window or on a real device. Judge motion quality outside device emulation."));
|
|
2486
|
+
}, zr = "data-flemo-img-hold", Br = (e) => !(e.complete && e.naturalWidth > 0), Vr = 4, Hr = (e) => {
|
|
2487
2487
|
if (!(e.complete && e.naturalWidth > 0)) return !1;
|
|
2488
2488
|
let t = e.getBoundingClientRect(), n = typeof devicePixelRatio == "number" && devicePixelRatio > 0 ? devicePixelRatio : 1, r = Math.max(1, t.width * n) * Math.max(1, t.height * n);
|
|
2489
|
-
return e.naturalWidth * e.naturalHeight > r *
|
|
2490
|
-
},
|
|
2491
|
-
function
|
|
2489
|
+
return e.naturalWidth * e.naturalHeight > r * Vr;
|
|
2490
|
+
}, Ur = (e, t) => Br(e) || !t && Hr(e);
|
|
2491
|
+
function Wr(e, t, n = !1) {
|
|
2492
2492
|
if (!e || typeof document > "u" || typeof MutationObserver != "function" || typeof setTimeout != "function") return () => {};
|
|
2493
2493
|
let r = /* @__PURE__ */ new Map(), i = (e) => {
|
|
2494
|
-
e.getAttribute(
|
|
2494
|
+
e.getAttribute(zr) === null && (r.has(e) || !Ur(e, n) || (r.set(e, e.style.display), e.style.display = "none", e.setAttribute(zr, "")));
|
|
2495
2495
|
};
|
|
2496
2496
|
for (let t of e.querySelectorAll("img")) i(t);
|
|
2497
2497
|
let a = new MutationObserver((e) => {
|
|
@@ -2505,7 +2505,7 @@ function Gr(e, t, n = !1) {
|
|
|
2505
2505
|
let o = !1, s = () => {
|
|
2506
2506
|
if (!o) {
|
|
2507
2507
|
o = !0, a.disconnect();
|
|
2508
|
-
for (let [e, t] of r) t ? e.style.display = t : e.style.removeProperty("display"), e.removeAttribute(
|
|
2508
|
+
for (let [e, t] of r) t ? e.style.display = t : e.style.removeProperty("display"), e.removeAttribute(zr);
|
|
2509
2509
|
r.clear();
|
|
2510
2510
|
}
|
|
2511
2511
|
}, c = setTimeout(s, Math.max(0, t));
|
|
@@ -2515,25 +2515,25 @@ function Gr(e, t, n = !1) {
|
|
|
2515
2515
|
}
|
|
2516
2516
|
//#endregion
|
|
2517
2517
|
//#region src/core/engine/invisibleAnimationHold.ts
|
|
2518
|
-
var
|
|
2518
|
+
var Gr = () => {}, Kr = .004, qr = (e, t) => {
|
|
2519
2519
|
let n = e.ownerDocument?.defaultView;
|
|
2520
2520
|
if (!n) return !1;
|
|
2521
2521
|
let r = e;
|
|
2522
2522
|
for (; r;) {
|
|
2523
|
-
if (Number(n.getComputedStyle(r).opacity) <=
|
|
2523
|
+
if (Number(n.getComputedStyle(r).opacity) <= Kr) return !0;
|
|
2524
2524
|
if (r === t) break;
|
|
2525
2525
|
r = r.parentElement;
|
|
2526
2526
|
}
|
|
2527
2527
|
return !1;
|
|
2528
2528
|
};
|
|
2529
|
-
function
|
|
2530
|
-
if (typeof e.getAnimations != "function") return
|
|
2529
|
+
function Jr(e) {
|
|
2530
|
+
if (typeof e.getAnimations != "function") return Gr;
|
|
2531
2531
|
let t = /* @__PURE__ */ new Set(), n = () => {
|
|
2532
2532
|
for (let n of e.getAnimations({ subtree: !0 })) {
|
|
2533
2533
|
if (t.size >= 128) return;
|
|
2534
2534
|
if (t.has(n) || (n.animationName ?? "").startsWith("flemo-") || n.playState !== "running") continue;
|
|
2535
2535
|
let r = n.effect?.target;
|
|
2536
|
-
if (r instanceof Element &&
|
|
2536
|
+
if (r instanceof Element && qr(r, e)) try {
|
|
2537
2537
|
n.pause(), t.add(n);
|
|
2538
2538
|
} catch {}
|
|
2539
2539
|
}
|
|
@@ -2562,7 +2562,7 @@ function Yr(e) {
|
|
|
2562
2562
|
}
|
|
2563
2563
|
//#endregion
|
|
2564
2564
|
//#region src/transition/cubicBezier.ts
|
|
2565
|
-
var
|
|
2565
|
+
var Yr = (e, t, n, r) => {
|
|
2566
2566
|
let i = (t) => 3 * (1 - t) * (1 - t) * t * e + 3 * (1 - t) * t * t * n + t ** 3, a = (e) => 3 * (1 - e) * (1 - e) * e * t + 3 * (1 - e) * e * e * r + e ** 3;
|
|
2567
2567
|
return (e) => {
|
|
2568
2568
|
if (e <= 0) return 0;
|
|
@@ -2574,7 +2574,7 @@ var Xr = (e, t, n, r) => {
|
|
|
2574
2574
|
}
|
|
2575
2575
|
return a((t + n) / 2);
|
|
2576
2576
|
};
|
|
2577
|
-
},
|
|
2577
|
+
}, Xr = (e) => e, Zr = {
|
|
2578
2578
|
ease: [
|
|
2579
2579
|
.25,
|
|
2580
2580
|
.1,
|
|
@@ -2629,20 +2629,20 @@ var Xr = (e, t, n, r) => {
|
|
|
2629
2629
|
.66,
|
|
2630
2630
|
-.56
|
|
2631
2631
|
]
|
|
2632
|
-
},
|
|
2632
|
+
}, Qr = (e) => {
|
|
2633
2633
|
if (Array.isArray(e)) {
|
|
2634
2634
|
if (e.length === 4 && e.every((e) => typeof e == "number")) {
|
|
2635
2635
|
let [t, n, r, i] = e;
|
|
2636
|
-
return
|
|
2636
|
+
return Yr(t, n, r, i);
|
|
2637
2637
|
}
|
|
2638
|
-
return
|
|
2638
|
+
return Xr;
|
|
2639
2639
|
}
|
|
2640
|
-
return typeof e == "string" ? e === "linear" ?
|
|
2641
|
-
},
|
|
2640
|
+
return typeof e == "string" ? e === "linear" ? Xr : Yr(...Zr[e] ?? Zr.ease) : Yr(...Zr.ease);
|
|
2641
|
+
}, $r = 1 / 255, ei = 400, ti = 24, ni = /* @__PURE__ */ new Set([
|
|
2642
2642
|
"x",
|
|
2643
2643
|
"y",
|
|
2644
2644
|
"opacity"
|
|
2645
|
-
]),
|
|
2645
|
+
]), ri = (e, t, n) => {
|
|
2646
2646
|
if (!e || typeof e != "object") return;
|
|
2647
2647
|
let r = e[t];
|
|
2648
2648
|
if (r === void 0) return;
|
|
@@ -2660,7 +2660,7 @@ var Xr = (e, t, n, r) => {
|
|
|
2660
2660
|
return Number.isNaN(e) ? null : e;
|
|
2661
2661
|
}
|
|
2662
2662
|
return null;
|
|
2663
|
-
},
|
|
2663
|
+
}, ii = (e, t, n) => {
|
|
2664
2664
|
let r = /* @__PURE__ */ new Set();
|
|
2665
2665
|
for (let t of [e.from, e.to]) if (!(!t || typeof t != "object")) for (let e of Object.keys(t)) r.add(e);
|
|
2666
2666
|
if (r.size === 0) return null;
|
|
@@ -2668,28 +2668,28 @@ var Xr = (e, t, n, r) => {
|
|
|
2668
2668
|
for (let a of r) {
|
|
2669
2669
|
let r = e.from && typeof e.from == "object" ? e.from[a] : void 0, o = e.to && typeof e.to == "object" ? e.to[a] : void 0;
|
|
2670
2670
|
if (r !== void 0 && r === o) continue;
|
|
2671
|
-
if (!
|
|
2672
|
-
let s =
|
|
2671
|
+
if (!ni.has(a)) return null;
|
|
2672
|
+
let s = ri(e.from, a, t), c = ri(e.to, a, t);
|
|
2673
2673
|
if (s === null || c === null || s === void 0 || c === void 0) return null;
|
|
2674
2674
|
let l = Math.abs(c - s);
|
|
2675
2675
|
if (l === 0) continue;
|
|
2676
|
-
let u = a === "opacity" ?
|
|
2676
|
+
let u = a === "opacity" ? $r : 1 / Math.max(1, n);
|
|
2677
2677
|
i = Math.min(i, u / l);
|
|
2678
2678
|
}
|
|
2679
2679
|
return !Number.isFinite(i) || i <= 0 || i >= 1 ? null : i;
|
|
2680
|
-
},
|
|
2680
|
+
}, ai = (e, t, n) => {
|
|
2681
2681
|
if (e.duration <= 0) return null;
|
|
2682
|
-
let r =
|
|
2682
|
+
let r = ii(e, t, n);
|
|
2683
2683
|
if (r === null) return null;
|
|
2684
|
-
let i =
|
|
2685
|
-
for (let e =
|
|
2684
|
+
let i = Qr(e.ease), a = ei;
|
|
2685
|
+
for (let e = ei; e >= 0 && !(Math.abs(1 - i(e / ei)) > r); --e) a = e;
|
|
2686
2686
|
if (a === 0) return null;
|
|
2687
|
-
let o = (e.delay + e.duration * (a /
|
|
2688
|
-
return (e.delay + e.duration) * 1e3 - o <
|
|
2689
|
-
},
|
|
2687
|
+
let o = (e.delay + e.duration * (a / ei)) * 1e3;
|
|
2688
|
+
return (e.delay + e.duration) * 1e3 - o < ti ? null : o;
|
|
2689
|
+
}, oi = 1e3 / 120, si = 4, Z = 400, ci = 4, Q = (e) => {
|
|
2690
2690
|
let t = +e.toFixed(5);
|
|
2691
2691
|
return Object.is(t, -0) ? 0 : t;
|
|
2692
|
-
},
|
|
2692
|
+
}, li = (e, t, n) => {
|
|
2693
2693
|
if (e.duration <= 0) return null;
|
|
2694
2694
|
let r = Number.isFinite(n) && n > 0 ? n : 1, i = /* @__PURE__ */ new Set();
|
|
2695
2695
|
for (let t of [e.from, e.to]) if (!(!t || typeof t != "object")) for (let e of Object.keys(t)) i.add(e);
|
|
@@ -2698,37 +2698,37 @@ var Xr = (e, t, n, r) => {
|
|
|
2698
2698
|
let i = e.from && typeof e.from == "object" ? e.from[n] : void 0, o = e.to && typeof e.to == "object" ? e.to[n] : void 0;
|
|
2699
2699
|
if (i !== void 0 && i === o) continue;
|
|
2700
2700
|
if (n !== "x" && n !== "y") return null;
|
|
2701
|
-
let s =
|
|
2701
|
+
let s = ri(e.from, n, t), c = ri(e.to, n, t);
|
|
2702
2702
|
if (s === null || c === null || s === void 0 || c === void 0) return null;
|
|
2703
2703
|
a = Math.max(a, Math.abs(c - s) * r);
|
|
2704
2704
|
}
|
|
2705
|
-
if (a <
|
|
2706
|
-
let o =
|
|
2707
|
-
for (let e = 0; e <=
|
|
2708
|
-
let c = e.duration * 1e3 /
|
|
2705
|
+
if (a < si) return null;
|
|
2706
|
+
let o = Qr(e.ease), s = Array(401);
|
|
2707
|
+
for (let e = 0; e <= Z; e += 1) s[e] = o(e / Z);
|
|
2708
|
+
let c = e.duration * 1e3 / Z, l = 40 / a * c / oi, u = Z, d = 0;
|
|
2709
2709
|
for (let e = 399; e >= 0 && (d = Math.max(d, Math.abs(s[e + 1] - s[e])), !(d > l)); --e) u = e;
|
|
2710
|
-
for (let e = u; e <
|
|
2710
|
+
for (let e = u; e < Z; e += 1) if (s[e + 1] < s[e] || s[e] > 1) return null;
|
|
2711
2711
|
let f = (1 - s[u]) * a;
|
|
2712
2712
|
if (f <= 1) return null;
|
|
2713
2713
|
let p = Math.min(480, Math.floor(f)), m = u, h = (e) => {
|
|
2714
2714
|
let t = 1 - e / a;
|
|
2715
|
-
for (; m <
|
|
2715
|
+
for (; m < Z && s[m] < t;) m += 1;
|
|
2716
2716
|
if (m === 0) return 0;
|
|
2717
2717
|
let n = s[m - 1], r = s[m], i = r === n ? 1 : Math.max(0, Math.min(1, (t - n) / (r - n)));
|
|
2718
|
-
return (m - 1 + i) /
|
|
2718
|
+
return (m - 1 + i) / Z * 100;
|
|
2719
2719
|
}, g = h(p), _ = [];
|
|
2720
|
-
for (let e = 0; 100 /
|
|
2720
|
+
for (let e = 0; 100 / Z * e < g; e += ci) _.push(`${Q(s[e])} ${Q(e / Z * 100)}%`);
|
|
2721
2721
|
let v = g;
|
|
2722
2722
|
for (let e = p; e >= 2; --e) {
|
|
2723
2723
|
let t = h(e - 1);
|
|
2724
2724
|
if (t > v) {
|
|
2725
|
-
let n =
|
|
2726
|
-
_.push(`${n} ${
|
|
2725
|
+
let n = Q(1 - e / a);
|
|
2726
|
+
_.push(`${n} ${Q(v)}%`, `${n} ${Q(t)}%`);
|
|
2727
2727
|
}
|
|
2728
2728
|
v = t;
|
|
2729
2729
|
}
|
|
2730
|
-
return _.push(`1 ${
|
|
2731
|
-
},
|
|
2730
|
+
return _.push(`1 ${Q(v)}%`, "1 100%"), `linear(${_.join(", ")})`;
|
|
2731
|
+
}, ui = 12, di = (e, t, n, r) => {
|
|
2732
2732
|
if (e.duration <= 0 || !Number.isFinite(r) || r <= 0) return null;
|
|
2733
2733
|
let i = Number.isFinite(n) && n > 0 ? n : 1, a = /* @__PURE__ */ new Set();
|
|
2734
2734
|
for (let t of [e.from, e.to]) if (!(!t || typeof t != "object")) for (let e of Object.keys(t)) a.add(e);
|
|
@@ -2737,30 +2737,30 @@ var Xr = (e, t, n, r) => {
|
|
|
2737
2737
|
let r = e.from && typeof e.from == "object" ? e.from[n] : void 0, a = e.to && typeof e.to == "object" ? e.to[n] : void 0;
|
|
2738
2738
|
if (r !== void 0 && r === a) continue;
|
|
2739
2739
|
if (n !== "x" && n !== "y") return null;
|
|
2740
|
-
let s =
|
|
2740
|
+
let s = ri(e.from, n, t), c = ri(e.to, n, t);
|
|
2741
2741
|
if (s === null || c === null || s === void 0 || c === void 0) return null;
|
|
2742
2742
|
o = Math.max(o, Math.abs(c - s) * i);
|
|
2743
2743
|
}
|
|
2744
|
-
if (o <
|
|
2745
|
-
let s =
|
|
2746
|
-
for (let e = 0; e <=
|
|
2747
|
-
let l = e.duration * 1e3, u = l /
|
|
2744
|
+
if (o < ui) return null;
|
|
2745
|
+
let s = Qr(e.ease), c = Array(401);
|
|
2746
|
+
for (let e = 0; e <= Z; e += 1) c[e] = s(e / Z);
|
|
2747
|
+
let l = e.duration * 1e3, u = l / Z, d = 1 / o * (u / r), f = Z, p = 0;
|
|
2748
2748
|
for (let e = 399; e >= 0 && (p = Math.max(p, Math.abs(c[e + 1] - c[e])), !(p > d)); --e) f = e;
|
|
2749
|
-
if (f === 0 || f >=
|
|
2750
|
-
for (let e = f; e <
|
|
2749
|
+
if (f === 0 || f >= Z) return null;
|
|
2750
|
+
for (let e = f; e < Z; e += 1) if (c[e + 1] < c[e] || c[e] > 1) return null;
|
|
2751
2751
|
let m = (1 - c[f]) * o;
|
|
2752
|
-
if (m <= 1 || m >
|
|
2753
|
-
let h = f /
|
|
2752
|
+
if (m <= 1 || m > ui) return null;
|
|
2753
|
+
let h = f / Z * 100, g = m * r / l * 100;
|
|
2754
2754
|
if (h + g >= 100) return null;
|
|
2755
2755
|
let _ = [];
|
|
2756
|
-
for (let e = 0; e <= f; e +=
|
|
2757
|
-
return _.push(`${
|
|
2758
|
-
},
|
|
2756
|
+
for (let e = 0; e <= f; e += ci) _.push(`${Q(c[e])} ${Q(e / Z * 100)}%`);
|
|
2757
|
+
return _.push(`${Q(c[f])} ${Q(h)}%`), _.push(`1 ${Q(h + g)}%`, "1 100%"), `linear(${_.join(", ")})`;
|
|
2758
|
+
}, fi = /* @__PURE__ */ new WeakMap(), pi = Symbol("flemo-layer-owner"), mi = (e, t) => {
|
|
2759
2759
|
t.willChange ? e.style.willChange = t.willChange : e.style.removeProperty("will-change"), t.contain ? e.style.contain = t.contain : e.style.removeProperty("contain");
|
|
2760
|
-
},
|
|
2760
|
+
}, hi = (e, t) => {
|
|
2761
2761
|
let n = e.trim() === "none" ? "" : e.trim();
|
|
2762
2762
|
return t ? n ? /\b(layout|strict|content)\b/.test(n) ? n : `${n} layout` : "layout" : n;
|
|
2763
|
-
},
|
|
2763
|
+
}, gi = (e, t) => {
|
|
2764
2764
|
let n = /* @__PURE__ */ new Set(), r = !1;
|
|
2765
2765
|
for (let e of t.willChange.split(",")) {
|
|
2766
2766
|
let t = e.trim();
|
|
@@ -2771,13 +2771,13 @@ var Xr = (e, t, n, r) => {
|
|
|
2771
2771
|
e.containment && (r = !0);
|
|
2772
2772
|
}
|
|
2773
2773
|
e.style.willChange = [...n].join(", ");
|
|
2774
|
-
let i =
|
|
2774
|
+
let i = hi(t.contain, r);
|
|
2775
2775
|
i ? e.style.contain = i : e.style.removeProperty("contain");
|
|
2776
|
-
},
|
|
2777
|
-
let i = bn(t), a =
|
|
2776
|
+
}, _i = (e, t, n = !1, r = pi) => {
|
|
2777
|
+
let i = bn(t), a = fi.get(e);
|
|
2778
2778
|
if (i.length === 0) {
|
|
2779
2779
|
if (!a) return;
|
|
2780
|
-
a.owners.has(r) ? (a.owners.delete(r), a.owners.size === 0 ? (a.pending != null && clearTimeout(a.pending),
|
|
2780
|
+
a.owners.has(r) ? (a.owners.delete(r), a.owners.size === 0 ? (a.pending != null && clearTimeout(a.pending), mi(e, a), fi.delete(e)) : gi(e, a)) : r === a.settleOwner && a.owners.size === 0 && (a.pending != null && clearTimeout(a.pending), mi(e, a), fi.delete(e));
|
|
2781
2781
|
return;
|
|
2782
2782
|
}
|
|
2783
2783
|
a?.pending != null && (clearTimeout(a.pending), a.pending = null), a || (a = {
|
|
@@ -2786,15 +2786,15 @@ var Xr = (e, t, n, r) => {
|
|
|
2786
2786
|
willChange: e.style.willChange,
|
|
2787
2787
|
contain: e.style.contain,
|
|
2788
2788
|
pending: null
|
|
2789
|
-
},
|
|
2789
|
+
}, fi.set(e, a)), a.owners.set(r, {
|
|
2790
2790
|
properties: i,
|
|
2791
2791
|
containment: n
|
|
2792
|
-
}), a.settleOwner = null,
|
|
2793
|
-
},
|
|
2794
|
-
let n =
|
|
2792
|
+
}), a.settleOwner = null, gi(e, a);
|
|
2793
|
+
}, vi = (e, t = pi) => {
|
|
2794
|
+
let n = fi.get(e);
|
|
2795
2795
|
if (!(!n || !n.owners.has(t))) {
|
|
2796
2796
|
if (n.owners.delete(t), n.owners.size > 0) {
|
|
2797
|
-
|
|
2797
|
+
gi(e, n);
|
|
2798
2798
|
return;
|
|
2799
2799
|
}
|
|
2800
2800
|
if (At() && typeof e.closest == "function" && e.closest("[data-flemo-screen]")) {
|
|
@@ -2805,20 +2805,20 @@ var Xr = (e, t, n, r) => {
|
|
|
2805
2805
|
guard shields exotic embedders, where an immediate demotion is simply
|
|
2806
2806
|
the pre-hold behavior. */
|
|
2807
2807
|
if (n.settleOwner = t, n.pending != null && clearTimeout(n.pending), typeof setTimeout != "function") {
|
|
2808
|
-
|
|
2808
|
+
mi(e, n), fi.delete(e);
|
|
2809
2809
|
return;
|
|
2810
2810
|
}
|
|
2811
2811
|
yi(e, n);
|
|
2812
2812
|
}
|
|
2813
2813
|
}, yi = (e, t) => {
|
|
2814
2814
|
t.pending = setTimeout(() => {
|
|
2815
|
-
if (t.pending = null,
|
|
2816
|
-
|
|
2817
|
-
|
|
2815
|
+
if (t.pending = null, ir()) {
|
|
2816
|
+
or(() => {
|
|
2817
|
+
fi.get(e) === t && t.owners.size === 0 && t.settleOwner !== null && t.pending === null && yi(e, t);
|
|
2818
2818
|
});
|
|
2819
2819
|
return;
|
|
2820
2820
|
}
|
|
2821
|
-
|
|
2821
|
+
mi(e, t), fi.delete(e);
|
|
2822
2822
|
}, 300);
|
|
2823
2823
|
}, bi = (e, t, n) => {
|
|
2824
2824
|
let r = e.driver;
|
|
@@ -3230,7 +3230,7 @@ var Gi = [
|
|
|
3230
3230
|
return !s && c.length === 0 ? "" : l ? "none" : [...s ? [`translate3d(${a}px, ${o}px, 0)`] : [], ...c].join(" ");
|
|
3231
3231
|
}, ma = (e) => e.replace(/-([a-z])/g, (e, t) => t.toUpperCase()), ha = (e) => {
|
|
3232
3232
|
let t = {};
|
|
3233
|
-
for (let n of
|
|
3233
|
+
for (let n of V(e)) t[ma(n.property)] = n.value;
|
|
3234
3234
|
return t;
|
|
3235
3235
|
}, ga = (e, t) => {
|
|
3236
3236
|
if (typeof e.animate != "function") return null;
|
|
@@ -3238,7 +3238,7 @@ var Gi = [
|
|
|
3238
3238
|
let n = e.animate([ha(t.from), ha(t.to)], {
|
|
3239
3239
|
duration: Math.max(0, t.duration * 1e3),
|
|
3240
3240
|
delay: Math.max(0, t.delay * 1e3),
|
|
3241
|
-
easing:
|
|
3241
|
+
easing: xn(t.ease),
|
|
3242
3242
|
fill: "both"
|
|
3243
3243
|
});
|
|
3244
3244
|
return n.pause(), n.currentTime = 0, n;
|
|
@@ -3269,7 +3269,7 @@ var Gi = [
|
|
|
3269
3269
|
lastTime: null,
|
|
3270
3270
|
frameHandle: null
|
|
3271
3271
|
}, t.set(n, d));
|
|
3272
|
-
let f =
|
|
3272
|
+
let f = ai(r.motion, r.element, e.devicePixelRatio() || 1), p = {
|
|
3273
3273
|
...r,
|
|
3274
3274
|
onComplete: void 0,
|
|
3275
3275
|
parsed: u,
|
|
@@ -3288,14 +3288,14 @@ var Gi = [
|
|
|
3288
3288
|
};
|
|
3289
3289
|
d.tracks.push(p), d.navCutMs = d.tracks.some((e) => e.cutMs === null) ? null : Math.max(...d.tracks.map((e) => e.cutMs));
|
|
3290
3290
|
let m = Symbol("flemo-player-track");
|
|
3291
|
-
if (
|
|
3292
|
-
u.transforms.length > 0 &&
|
|
3293
|
-
for (let e of u.strings)
|
|
3294
|
-
for (let e of u.constants)
|
|
3291
|
+
if (Jn.takeover(p.element), W(p.element, "animation", m), p.element.style.animation = "none", u) {
|
|
3292
|
+
u.transforms.length > 0 && W(p.element, "transform", m), u.opacity && W(p.element, "opacity", m);
|
|
3293
|
+
for (let e of u.strings) W(p.element, e.property, m);
|
|
3294
|
+
for (let e of u.constants) W(p.element, e.property, m);
|
|
3295
3295
|
a(p, 0);
|
|
3296
3296
|
}
|
|
3297
3297
|
return r.role === "active" && (r.onComplete && (d.navComplete = r.onComplete), d.started || (d.started = !0, o(n, d))), () => {
|
|
3298
|
-
p.detached = !0, p.scrub?.cancel(),
|
|
3298
|
+
p.detached = !0, p.scrub?.cancel(), G(p.element, void 0, m);
|
|
3299
3299
|
let r = t.get(n);
|
|
3300
3300
|
r && (r.tracks = r.tracks.filter((e) => e !== p), r.tracks.length === 0 && (r.frameHandle !== null && e.cancel(r.frameHandle), t.delete(n)));
|
|
3301
3301
|
};
|
|
@@ -3310,7 +3310,7 @@ var Gi = [
|
|
|
3310
3310
|
}
|
|
3311
3311
|
}, r = /* @__PURE__ */ new WeakMap(), i = (e) => {
|
|
3312
3312
|
let t = r.get(e);
|
|
3313
|
-
return t || (t =
|
|
3313
|
+
return t || (t = Qr(e.motion.ease), r.set(e, t)), t;
|
|
3314
3314
|
};
|
|
3315
3315
|
function a(t, n, r) {
|
|
3316
3316
|
let { element: i, parsed: a } = t;
|
|
@@ -3340,7 +3340,7 @@ var Gi = [
|
|
|
3340
3340
|
d = o.animate([ha(r.motion.from), ha(r.motion.to)], {
|
|
3341
3341
|
duration: c,
|
|
3342
3342
|
delay: -u,
|
|
3343
|
-
easing:
|
|
3343
|
+
easing: xn(r.motion.ease),
|
|
3344
3344
|
fill: "both"
|
|
3345
3345
|
});
|
|
3346
3346
|
} catch {
|
|
@@ -3433,19 +3433,19 @@ var Ea = "data-flemo-skip-animation", $ = () => {}, Da = 400, Oa = 4, ka = 100,
|
|
|
3433
3433
|
}, za = (e, t, n) => {
|
|
3434
3434
|
let r = 0;
|
|
3435
3435
|
for (let e of [`${n}-true`, `${n}-false`]) {
|
|
3436
|
-
if (!
|
|
3436
|
+
if (!U(t, e)) continue;
|
|
3437
3437
|
let n = B(t, e);
|
|
3438
3438
|
n && (r = Math.max(r, (n.delay + n.duration) * 1e3));
|
|
3439
3439
|
}
|
|
3440
3440
|
for (let t of Ia(e, n)) {
|
|
3441
3441
|
let e = z.get(t.getAttribute(ja)), i = `${n}-${t.getAttribute("data-flemo-active")}`;
|
|
3442
|
-
if (!e || !
|
|
3442
|
+
if (!e || !U(e, i)) continue;
|
|
3443
3443
|
let a = B(e, i);
|
|
3444
3444
|
a && (r = Math.max(r, (a.delay + a.duration) * 1e3));
|
|
3445
3445
|
}
|
|
3446
3446
|
let i = t.decoratorName ? R.get(t.decoratorName) : void 0;
|
|
3447
3447
|
if (i) for (let e of [`${n}-true`, `${n}-false`]) {
|
|
3448
|
-
if (!
|
|
3448
|
+
if (!U(i, e)) continue;
|
|
3449
3449
|
let t = B(i, e);
|
|
3450
3450
|
t && (r = Math.max(r, (t.delay + t.duration) * 1e3));
|
|
3451
3451
|
}
|
|
@@ -3469,38 +3469,38 @@ var Ea = "data-flemo-skip-animation", $ = () => {}, Da = 400, Oa = 4, ka = 100,
|
|
|
3469
3469
|
};
|
|
3470
3470
|
requestAnimationFrame(i);
|
|
3471
3471
|
}, Za = (e, t, n, r) => {
|
|
3472
|
-
let { scope: i, decorator: a, bars: o } = e, s = n.split("-")[0], c = s === "PUSHING" || s === "REPLACING", l = F() && ot(), u = !l && F() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && Sa() < Va, d = (l || u) && typeof window < "u" && window.devicePixelRatio || 1, f = (e, t) => e ? l ?
|
|
3473
|
-
if (
|
|
3474
|
-
|
|
3472
|
+
let { scope: i, decorator: a, bars: o } = e, s = n.split("-")[0], c = s === "PUSHING" || s === "REPLACING", l = F() && ot(), u = !l && F() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && Sa() < Va, d = (l || u) && typeof window < "u" && window.devicePixelRatio || 1, f = (e, t) => e ? l ? li(e, t, d) : u ? di(e, t, d, Sa()) : null : null;
|
|
3473
|
+
if (U(t, n)) {
|
|
3474
|
+
_i(i, t, c, r);
|
|
3475
3475
|
let e = f(B(t, n) ?? null, i);
|
|
3476
|
-
e && (
|
|
3477
|
-
for (let n of o ?? []) n?.getAttribute("data-flemo-bar-riding") === "true" && (
|
|
3476
|
+
e && (W(i, "animation-timing-function", r), i.style.animationTimingFunction = e);
|
|
3477
|
+
for (let n of o ?? []) n?.getAttribute("data-flemo-bar-riding") === "true" && (_i(n, t, c, r), e && (W(n, "animation-timing-function", r), n.style.animationTimingFunction = e));
|
|
3478
3478
|
}
|
|
3479
3479
|
if (a && t.decoratorName) {
|
|
3480
3480
|
let e = R.get(t.decoratorName);
|
|
3481
|
-
e &&
|
|
3481
|
+
e && U(e, n) && _i(a, e, c, r);
|
|
3482
3482
|
}
|
|
3483
3483
|
for (let e of Fa(i, n)) {
|
|
3484
3484
|
let t = z.get(e.getAttribute(ja));
|
|
3485
|
-
if (t &&
|
|
3486
|
-
|
|
3485
|
+
if (t && U(t, n)) {
|
|
3486
|
+
_i(e, t, c, r);
|
|
3487
3487
|
let i = f(B(t, n) ?? null, e);
|
|
3488
|
-
i && (
|
|
3488
|
+
i && (W(e, "animation-timing-function", r), e.style.animationTimingFunction = i);
|
|
3489
3489
|
}
|
|
3490
3490
|
}
|
|
3491
3491
|
}, Qa = (e, t) => {
|
|
3492
3492
|
let { scope: n, decorator: r, bars: i } = e;
|
|
3493
3493
|
if (n) {
|
|
3494
|
-
|
|
3495
|
-
for (let e of Pa(n))
|
|
3494
|
+
vi(n, t);
|
|
3495
|
+
for (let e of Pa(n)) vi(e, t);
|
|
3496
3496
|
}
|
|
3497
|
-
r &&
|
|
3498
|
-
for (let e of i ?? []) e &&
|
|
3497
|
+
r && vi(r, t);
|
|
3498
|
+
for (let e of i ?? []) e && vi(e, t);
|
|
3499
3499
|
}, $a = 4, eo = (e) => `${Math.round(e * 1e3) / 1e3}s`, to = (e) => {
|
|
3500
3500
|
let { element: t, expectedName: n, motion: r } = e, i = !1, a = !1, o = (n) => {
|
|
3501
|
-
i = !0, t.style.animation = "none", t.offsetWidth, t.style.removeProperty("animation"), n.mode === "clear" ? (t.style.removeProperty("animation-delay"), a = !1) : n.mode === "set" && (
|
|
3501
|
+
i = !0, t.style.animation = "none", t.offsetWidth, t.style.removeProperty("animation"), n.mode === "clear" ? (t.style.removeProperty("animation-delay"), a = !1) : n.mode === "set" && (W(t, "animation-delay", e.writer), t.style.animationDelay = eo(n.seconds), a = !0), i = !1;
|
|
3502
3502
|
}, s = (a) => {
|
|
3503
|
-
if (i || a.target !== t || !
|
|
3503
|
+
if (i || a.target !== t || !On(a.animationName, n)) return;
|
|
3504
3504
|
if (!e.isLive() || e.budgetUsed() >= $a) {
|
|
3505
3505
|
e.onTerminal();
|
|
3506
3506
|
return;
|
|
@@ -3524,7 +3524,7 @@ var Ea = "data-flemo-skip-animation", $ = () => {}, Da = 400, Oa = 4, ka = 100,
|
|
|
3524
3524
|
t.addEventListener("animationcancel", s);
|
|
3525
3525
|
},
|
|
3526
3526
|
detach: () => {
|
|
3527
|
-
t.removeEventListener("animationcancel", s), a &&= (
|
|
3527
|
+
t.removeEventListener("animationcancel", s), a &&= (G(t, ["animation-delay"], e.writer), !1);
|
|
3528
3528
|
},
|
|
3529
3529
|
fullRestart: () => {
|
|
3530
3530
|
o({ mode: "clear" });
|
|
@@ -3563,12 +3563,12 @@ function no(e) {
|
|
|
3563
3563
|
if (_) {
|
|
3564
3564
|
let { scope: e, bars: n } = d();
|
|
3565
3565
|
if (e) {
|
|
3566
|
-
|
|
3567
|
-
for (let n of Pa(e))
|
|
3568
|
-
for (let e of n ?? []) e &&
|
|
3566
|
+
$n(e), G(e, ["animation-timing-function", "animation-duration"], t);
|
|
3567
|
+
for (let n of Pa(e)) G(n, ["animation-timing-function", "animation-duration"], t);
|
|
3568
|
+
for (let e of n ?? []) e && G(e, ["animation-timing-function", "animation-duration"], t);
|
|
3569
3569
|
}
|
|
3570
3570
|
}
|
|
3571
|
-
_ && (
|
|
3571
|
+
_ && (Rr(), o &&= (clearTimeout(o), null), a ||= Fr()), !_ && a && !o && (typeof setTimeout == "function" ? o = setTimeout(() => {
|
|
3572
3572
|
o = null, a?.(), a = null;
|
|
3573
3573
|
}, Da) : (a(), a = null));
|
|
3574
3574
|
let v = _ && (h ? m === "PUSHING" || m === "REPLACING" : m === "POPPING"), y = _ && !v;
|
|
@@ -3584,8 +3584,8 @@ function no(e) {
|
|
|
3584
3584
|
l();
|
|
3585
3585
|
let { scope: e } = d();
|
|
3586
3586
|
if (e) {
|
|
3587
|
-
|
|
3588
|
-
let t =
|
|
3587
|
+
Jn.takeover(e);
|
|
3588
|
+
let t = wr(e), n = Jr(e), i = za(e, qt(f), m), a = Wi(i + Aa), o = st() === "on" ? Wr(e, i + Aa) : $, s = rr();
|
|
3589
3589
|
r = () => {
|
|
3590
3590
|
a(), o(), n(), t(), s();
|
|
3591
3591
|
};
|
|
@@ -3594,7 +3594,7 @@ function no(e) {
|
|
|
3594
3594
|
if (y && !i && dt()) {
|
|
3595
3595
|
l();
|
|
3596
3596
|
let { scope: e } = d();
|
|
3597
|
-
e && st() === "on" && (i =
|
|
3597
|
+
e && st() === "on" && (i = Wr(e, za(e, qt(f), m) + Aa, !0));
|
|
3598
3598
|
}
|
|
3599
3599
|
let b = (t, n, r) => {
|
|
3600
3600
|
let i = e.getTransitionTaskId();
|
|
@@ -3669,15 +3669,15 @@ function no(e) {
|
|
|
3669
3669
|
onTerminal: $
|
|
3670
3670
|
});
|
|
3671
3671
|
o.attach(), r.push(o.detach);
|
|
3672
|
-
}, c =
|
|
3672
|
+
}, c = En("screen", f, n), l = B(o, n);
|
|
3673
3673
|
if (l) for (let e of a ?? []) !e || e.getAttribute("data-flemo-bar-riding") !== "true" || s(e, c, l);
|
|
3674
3674
|
if (i && o.decoratorName) {
|
|
3675
3675
|
let e = R.get(o.decoratorName), t = e ? B(e, n) : null;
|
|
3676
|
-
t && s(i,
|
|
3676
|
+
t && s(i, En("decorator", o.decoratorName, n), t);
|
|
3677
3677
|
}
|
|
3678
3678
|
for (let t of Fa(e, n)) {
|
|
3679
3679
|
let e = t.getAttribute(ja), r = z.get(e), i = r ? B(r, n) : null;
|
|
3680
|
-
i && s(t,
|
|
3680
|
+
i && s(t, En("part", e, n), i);
|
|
3681
3681
|
}
|
|
3682
3682
|
return r;
|
|
3683
3683
|
};
|
|
@@ -3685,11 +3685,11 @@ function no(e) {
|
|
|
3685
3685
|
if (m === "COMPLETED") {
|
|
3686
3686
|
let { scope: e, decorator: n, bars: r } = d();
|
|
3687
3687
|
if (e) {
|
|
3688
|
-
|
|
3689
|
-
for (let t of Pa(e))
|
|
3688
|
+
G(e);
|
|
3689
|
+
for (let t of Pa(e)) G(t);
|
|
3690
3690
|
}
|
|
3691
|
-
n &&
|
|
3692
|
-
for (let e of r ?? []) e &&
|
|
3691
|
+
n && G(n);
|
|
3692
|
+
for (let e of r ?? []) e && G(e, void 0, t);
|
|
3693
3693
|
return Qa({
|
|
3694
3694
|
scope: e,
|
|
3695
3695
|
decorator: n,
|
|
@@ -3710,10 +3710,10 @@ function no(e) {
|
|
|
3710
3710
|
let { scope: r } = d();
|
|
3711
3711
|
if (r) {
|
|
3712
3712
|
let n = qt(f), i = [];
|
|
3713
|
-
if (
|
|
3713
|
+
if (U(n, e)) {
|
|
3714
3714
|
let a = B(n, e), o = 0, s = to({
|
|
3715
3715
|
element: r,
|
|
3716
|
-
expectedName:
|
|
3716
|
+
expectedName: En("screen", f, e),
|
|
3717
3717
|
motion: a,
|
|
3718
3718
|
writer: t,
|
|
3719
3719
|
isLive: () => r.isConnected && r.getAttribute("data-flemo-skip-animation") !== "true",
|
|
@@ -3734,11 +3734,11 @@ function no(e) {
|
|
|
3734
3734
|
qa(), e.setDragStatus("IDLE"), e.setReplaceTransitionStatus("IDLE");
|
|
3735
3735
|
let { scope: n, decorator: r, bars: i } = d();
|
|
3736
3736
|
if (n) {
|
|
3737
|
-
|
|
3738
|
-
for (let e of Pa(n))
|
|
3737
|
+
G(n), G(n, ["transform", "opacity"]), n.removeAttribute(Ea);
|
|
3738
|
+
for (let e of Pa(n)) G(e);
|
|
3739
3739
|
}
|
|
3740
|
-
r && (
|
|
3741
|
-
for (let e of i ?? []) e &&
|
|
3740
|
+
r && (G(r), r.removeAttribute(Ea));
|
|
3741
|
+
for (let e of i ?? []) e && G(e, void 0, t);
|
|
3742
3742
|
return Qa({
|
|
3743
3743
|
scope: n,
|
|
3744
3744
|
decorator: r,
|
|
@@ -3750,7 +3750,7 @@ function no(e) {
|
|
|
3750
3750
|
if (!S) return $;
|
|
3751
3751
|
let C = e.getTransitionTaskId(), w = $, T = () => {
|
|
3752
3752
|
w(), C && (s.resolveTask(C), n.delete(C));
|
|
3753
|
-
}, E = qt(f), D = `${m}-true`, O = S.getAttribute(Ea) === "true", k = !O &&
|
|
3753
|
+
}, E = qt(f), D = `${m}-true`, O = S.getAttribute(Ea) === "true", k = !O && U(E, D);
|
|
3754
3754
|
if (!O) {
|
|
3755
3755
|
let { decorator: e, bars: n } = d();
|
|
3756
3756
|
Za({
|
|
@@ -3760,9 +3760,9 @@ function no(e) {
|
|
|
3760
3760
|
}, E, D, t);
|
|
3761
3761
|
}
|
|
3762
3762
|
k && F() && (typeof navigator < "u" && navigator.maxTouchPoints === 0 || Sa() < Va) && (w = Wa());
|
|
3763
|
-
let A = `${m}-false`, j =
|
|
3763
|
+
let A = `${m}-false`, j = U(E, A) ? B(E, A) : null, ee = [];
|
|
3764
3764
|
for (let e of Ia(S, m)) {
|
|
3765
|
-
let t = z.get(e.getAttribute(ja)), n = `${m}-${e.getAttribute("data-flemo-active")}`, r = t &&
|
|
3765
|
+
let t = z.get(e.getAttribute(ja)), n = `${m}-${e.getAttribute("data-flemo-active")}`, r = t && U(t, n) ? B(t, n) : null;
|
|
3766
3766
|
r && ee.push({
|
|
3767
3767
|
element: e,
|
|
3768
3768
|
motion: r
|
|
@@ -3774,7 +3774,7 @@ function no(e) {
|
|
|
3774
3774
|
{
|
|
3775
3775
|
let e = E.decoratorName ? R.get(E.decoratorName) : void 0;
|
|
3776
3776
|
if (e) for (let t of [`${m}-true`, `${m}-false`]) {
|
|
3777
|
-
if (!
|
|
3777
|
+
if (!U(e, t)) continue;
|
|
3778
3778
|
let n = B(e, t);
|
|
3779
3779
|
n && (te.push(n), M = Math.max(M, (n.delay + n.duration) * 1e3));
|
|
3780
3780
|
}
|
|
@@ -3796,14 +3796,14 @@ function no(e) {
|
|
|
3796
3796
|
} else s.markGateHeld(C);
|
|
3797
3797
|
let ne = !O && !!N, re = E.driver === "native" && !F(), ie = !F() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && Ue(), ae = F() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && _e(), oe = !F() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && Ba(m), se = ie || ae || oe, ce = ve() && ht(), le = null;
|
|
3798
3798
|
ne && !F() && !re && !ie && !oe && !ce && (le = Fi(S, () => [S.ownerDocument.documentElement], () => Ma.get(S)?.(), !1));
|
|
3799
|
-
let ue = se ?
|
|
3799
|
+
let ue = se ? In[m] ?? 0 : ce ? Fn[m] ?? 0 : 0, de = ie && (m === "PUSHING" || m === "POPPING");
|
|
3800
3800
|
{
|
|
3801
3801
|
let e = S.ownerDocument.documentElement;
|
|
3802
3802
|
se && pt() ? e.setAttribute("data-flemo-creep", "true") : e.removeAttribute("data-flemo-creep"), se ? e.setAttribute("data-flemo-lpm", "true") : e.removeAttribute("data-flemo-lpm"), ce ? e.setAttribute("data-flemo-desk-head", "true") : e.removeAttribute("data-flemo-desk-head");
|
|
3803
3803
|
}
|
|
3804
3804
|
let fe = null;
|
|
3805
3805
|
ne && re && (fe = Oi(S, () => [S.ownerDocument.documentElement], () => Ma.get(S)?.()));
|
|
3806
|
-
let pe =
|
|
3806
|
+
let pe = En("screen", f, D), me, P = () => {
|
|
3807
3807
|
me !== void 0 && (clearTimeout(me), me = void 0);
|
|
3808
3808
|
}, he = 0, ge, ye = [], xe, Se = () => {
|
|
3809
3809
|
ye.forEach((e) => cancelAnimationFrame(e)), ye = [], xe !== void 0 && clearTimeout(xe), xe = void 0;
|
|
@@ -3832,12 +3832,12 @@ function no(e) {
|
|
|
3832
3832
|
}
|
|
3833
3833
|
ge = setTimeout(Ce, he);
|
|
3834
3834
|
}, Te = $, Ee = $, De = (e) => {
|
|
3835
|
-
e.target === S &&
|
|
3835
|
+
e.target === S && On(e.animationName, pe) && (S.removeEventListener("animationend", De), P(), Te(), we());
|
|
3836
3836
|
};
|
|
3837
3837
|
S.addEventListener("animationend", De);
|
|
3838
3838
|
let Oe = ne && g ? b(D, "active", Ce) : null, ke = (N.delay + N.duration) * 1e3, Ae = Math.max(ke, M) + 1500, je = C ? setTimeout(() => void s.resolveTask(C), Ae) : void 0;
|
|
3839
3839
|
he = Math.max(0, M - ke);
|
|
3840
|
-
let Me = ke * 1 + ue + 250, Ne = () => C !== null && e.getTransitionTaskId() === C && S.isConnected && S.getAttribute("data-flemo-skip-animation") !== "true" &&
|
|
3840
|
+
let Me = ke * 1 + ue + 250, Ne = () => C !== null && e.getTransitionTaskId() === C && S.isConnected && S.getAttribute("data-flemo-skip-animation") !== "true" && U(E, D), Pe = to({
|
|
3841
3841
|
element: S,
|
|
3842
3842
|
expectedName: pe,
|
|
3843
3843
|
motion: N,
|
|
@@ -3868,9 +3868,9 @@ function no(e) {
|
|
|
3868
3868
|
Be !== void 0 && (clearTimeout(Be), Be = void 0);
|
|
3869
3869
|
};
|
|
3870
3870
|
if (Ee = Ve, I && C && !de && !oe) {
|
|
3871
|
-
let e = typeof window < "u" && window.devicePixelRatio || 1, t =
|
|
3871
|
+
let e = typeof window < "u" && window.devicePixelRatio || 1, t = ai(N, S, e), n = j ? ai(j, S, e) : 0, r = 0;
|
|
3872
3872
|
for (let { element: t, motion: n } of ee) {
|
|
3873
|
-
let i =
|
|
3873
|
+
let i = ai(n, t, e);
|
|
3874
3874
|
if (i === null) {
|
|
3875
3875
|
r = null;
|
|
3876
3876
|
break;
|
|
@@ -3881,7 +3881,7 @@ function no(e) {
|
|
|
3881
3881
|
if (te.length > 0) {
|
|
3882
3882
|
let t = d().decorator;
|
|
3883
3883
|
if (t) for (let n of te) {
|
|
3884
|
-
let r =
|
|
3884
|
+
let r = ai(n, t, e);
|
|
3885
3885
|
if (r === null) {
|
|
3886
3886
|
i = null;
|
|
3887
3887
|
break;
|
|
@@ -4015,9 +4015,9 @@ function uo(e) {
|
|
|
4015
4015
|
y: e.clientY
|
|
4016
4016
|
}, m = t, x = Math.max(x, Math.abs(e.clientX - f.x), Math.abs(e.clientY - f.y));
|
|
4017
4017
|
}, w = (r, a, o) => {
|
|
4018
|
-
let s =
|
|
4019
|
-
if (r === e.getElements().scope) for (let e of i.current)
|
|
4020
|
-
else if (r === n) for (let e of i.prev)
|
|
4018
|
+
let s = K(r, a, o, t);
|
|
4019
|
+
if (r === e.getElements().scope) for (let e of i.current) K(e, a, o, t);
|
|
4020
|
+
else if (r === n) for (let e of i.prev) K(e, a, o, t);
|
|
4021
4021
|
return s;
|
|
4022
4022
|
}, T = (n) => {
|
|
4023
4023
|
let r = e.getPartnerBars(), a = e.getPartnerBarMetadata?.(), o = n?.querySelector("[data-flemo-bar=\"app\"]"), s = n?.querySelector("[data-flemo-bar=\"nav\"]"), c = (e) => {
|
|
@@ -4031,11 +4031,11 @@ function uo(e) {
|
|
|
4031
4031
|
current: p,
|
|
4032
4032
|
prev: g
|
|
4033
4033
|
};
|
|
4034
|
-
for (let n of p)
|
|
4035
|
-
for (let n of g)
|
|
4034
|
+
for (let n of p) _i(n, e.getTransition(), !1, t);
|
|
4035
|
+
for (let n of g) _i(n, e.getTransition(), !1, t);
|
|
4036
4036
|
}, E = () => {
|
|
4037
|
-
for (let e of i.current)
|
|
4038
|
-
for (let e of i.prev)
|
|
4037
|
+
for (let e of i.current) G(e, void 0, t), vi(e, t);
|
|
4038
|
+
for (let e of i.prev) G(e, void 0, t), vi(e, t);
|
|
4039
4039
|
i = {
|
|
4040
4040
|
current: [],
|
|
4041
4041
|
prev: []
|
|
@@ -4051,7 +4051,7 @@ function uo(e) {
|
|
|
4051
4051
|
let o = z.get(i.getAttribute("data-flemo-part-name"));
|
|
4052
4052
|
if (!o) return;
|
|
4053
4053
|
let s = {
|
|
4054
|
-
animate: (e, n, r) =>
|
|
4054
|
+
animate: (e, n, r) => K(e, n, r, t),
|
|
4055
4055
|
element: i,
|
|
4056
4056
|
active: a
|
|
4057
4057
|
};
|
|
@@ -4060,7 +4060,7 @@ function uo(e) {
|
|
|
4060
4060
|
for (let e of a.current) i(e, !0);
|
|
4061
4061
|
for (let e of a.prev) i(e, !1);
|
|
4062
4062
|
}, k = () => {
|
|
4063
|
-
for (let e of [...a.current, ...a.prev])
|
|
4063
|
+
for (let e of [...a.current, ...a.prev]) G(e, void 0, t);
|
|
4064
4064
|
a = {
|
|
4065
4065
|
current: [],
|
|
4066
4066
|
prev: []
|
|
@@ -4097,7 +4097,7 @@ function uo(e) {
|
|
|
4097
4097
|
prevScreen: n,
|
|
4098
4098
|
onStart: (e) => {
|
|
4099
4099
|
g?.onSwipeStart?.(e, {
|
|
4100
|
-
animate:
|
|
4100
|
+
animate: K,
|
|
4101
4101
|
currentDecorator: l,
|
|
4102
4102
|
prevDecorator: r
|
|
4103
4103
|
}), O("start", e, 0);
|
|
@@ -4120,7 +4120,7 @@ function uo(e) {
|
|
|
4120
4120
|
prevScreen: n,
|
|
4121
4121
|
onProgress: (e, t) => {
|
|
4122
4122
|
s?.onSwipe?.(e, t, {
|
|
4123
|
-
animate:
|
|
4123
|
+
animate: K,
|
|
4124
4124
|
currentDecorator: o,
|
|
4125
4125
|
prevDecorator: r
|
|
4126
4126
|
}), O("swipe", e, t);
|
|
@@ -4160,7 +4160,7 @@ function uo(e) {
|
|
|
4160
4160
|
onStart: (e) => {
|
|
4161
4161
|
let t = !s && e;
|
|
4162
4162
|
p?.onSwipeEnd?.(t, {
|
|
4163
|
-
animate:
|
|
4163
|
+
animate: K,
|
|
4164
4164
|
currentDecorator: f,
|
|
4165
4165
|
prevDecorator: r
|
|
4166
4166
|
}), O("end", t, 0);
|
|
@@ -4168,8 +4168,8 @@ function uo(e) {
|
|
|
4168
4168
|
});
|
|
4169
4169
|
if (!s && g) {
|
|
4170
4170
|
d?.setAttribute(lo, "true"), f?.setAttribute(lo, "true");
|
|
4171
|
-
for (let e of i.current)
|
|
4172
|
-
for (let e of i.prev)
|
|
4171
|
+
for (let e of i.current) vi(e, t);
|
|
4172
|
+
for (let e of i.prev) G(e, void 0, t), vi(e, t);
|
|
4173
4173
|
i = {
|
|
4174
4174
|
current: [],
|
|
4175
4175
|
prev: []
|
|
@@ -4177,7 +4177,7 @@ function uo(e) {
|
|
|
4177
4177
|
current: [],
|
|
4178
4178
|
prev: []
|
|
4179
4179
|
}, e.back();
|
|
4180
|
-
} else d &&
|
|
4180
|
+
} else d && G(d, void 0, t), n && G(n, void 0, t), f && G(f), r && G(r), E(), k(), e.setDragStatus("IDLE");
|
|
4181
4181
|
};
|
|
4182
4182
|
return {
|
|
4183
4183
|
pointerDown: (t) => {
|
|
@@ -4467,30 +4467,31 @@ function jo(e, t) {
|
|
|
4467
4467
|
}
|
|
4468
4468
|
//#endregion
|
|
4469
4469
|
//#region src/screen/observeViewportScrollHeight.ts
|
|
4470
|
-
var Mo = 0
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4470
|
+
var Mo = 0, No = 0, Po = 0, Fo = !1, Io = /* @__PURE__ */ new Set(), Lo = 0, Ro = () => {
|
|
4471
|
+
let e = document.documentElement.scrollHeight - (window.visualViewport?.height || 0);
|
|
4472
|
+
e = e < 0 ? 0 : e;
|
|
4473
|
+
let t = e - Mo;
|
|
4474
|
+
t = t < 0 ? 0 : t, Mo ||= e, No = e, Po = t, Fo = !0;
|
|
4475
|
+
for (let n of [...Io]) n(e, t);
|
|
4476
|
+
}, zo = () => {
|
|
4477
|
+
cancelAnimationFrame(Lo), Lo = requestAnimationFrame(Ro);
|
|
4478
|
+
};
|
|
4479
|
+
function Bo(e) {
|
|
4480
|
+
let t = Io.size === 0;
|
|
4481
|
+
return Io.add(e), t && (window.visualViewport?.addEventListener("resize", zo), window.visualViewport?.addEventListener("scroll", zo)), Fo && (e(No, Po), t && zo()), () => {
|
|
4482
|
+
Io.delete(e), !(Io.size > 0) && (cancelAnimationFrame(Lo), window.visualViewport?.removeEventListener("resize", zo), window.visualViewport?.removeEventListener("scroll", zo));
|
|
4482
4483
|
};
|
|
4483
4484
|
}
|
|
4484
4485
|
//#endregion
|
|
4485
4486
|
//#region src/core/engine/gpuPipelinePrewarm.ts
|
|
4486
|
-
var
|
|
4487
|
-
function
|
|
4488
|
-
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function" || !F()) return
|
|
4489
|
-
if (
|
|
4490
|
-
|
|
4487
|
+
var Vo = () => {}, Ho = "data-flemo-gpu-prewarm", Uo = 2e3, Wo = 1200, Go = 120, Ko = 3, qo = "position:fixed;top:0;left:0;pointer-events:none;opacity:0.02;", Jo = "width:64px;height:64px;background:#888;color:#000;font-size:10px;will-change:transform;transform:translate3d(1px,0,0);", Yo = "width:64px;height:64px;background:#000;will-change:opacity;opacity:0.5;", Xo = "cold", Zo = 0, Qo = null;
|
|
4488
|
+
function $o() {
|
|
4489
|
+
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function" || !F()) return Vo;
|
|
4490
|
+
if (Zo += 1, Xo === "cold") {
|
|
4491
|
+
Xo = "scheduled";
|
|
4491
4492
|
let e = () => document.querySelector("[data-flemo-status=\"PUSHING\"],[data-flemo-status=\"POPPING\"],[data-flemo-status=\"REPLACING\"]") !== null, t = () => {
|
|
4492
|
-
let e = typeof requestIdleCallback == "function" ? requestIdleCallback(n, { timeout:
|
|
4493
|
-
|
|
4493
|
+
let e = typeof requestIdleCallback == "function" ? requestIdleCallback(n, { timeout: Uo }) : null, t = e === null ? setTimeout(n, Wo) : null;
|
|
4494
|
+
Qo = () => {
|
|
4494
4495
|
e !== null && typeof cancelIdleCallback == "function" && cancelIdleCallback(e), t !== null && clearTimeout(t);
|
|
4495
4496
|
};
|
|
4496
4497
|
}, n = () => {
|
|
@@ -4498,13 +4499,13 @@ function Ko() {
|
|
|
4498
4499
|
t();
|
|
4499
4500
|
return;
|
|
4500
4501
|
}
|
|
4501
|
-
|
|
4502
|
+
Qo = null, Xo = "done";
|
|
4502
4503
|
let n = document.createElement("div");
|
|
4503
|
-
n.setAttribute(
|
|
4504
|
+
n.setAttribute(Ho, ""), n.setAttribute("aria-hidden", "true"), n.setAttribute("style", qo);
|
|
4504
4505
|
let r = document.createElement("div");
|
|
4505
|
-
r.setAttribute("style",
|
|
4506
|
+
r.setAttribute("style", Jo), r.textContent = "flemo";
|
|
4506
4507
|
let i = document.createElement("div");
|
|
4507
|
-
i.setAttribute("style",
|
|
4508
|
+
i.setAttribute("style", Yo);
|
|
4508
4509
|
let a = document.createElement("div");
|
|
4509
4510
|
a.setAttribute("style", "width:96px;font-size:11px;color:#123;will-change:transform;transform:translate3d(0,0,0);");
|
|
4510
4511
|
let o = document.createElement("div");
|
|
@@ -4525,14 +4526,14 @@ function Ko() {
|
|
|
4525
4526
|
c.setAttribute("style", "border-top:1px solid #ccd;padding:2px 0;"), c.textContent = "의원 기록 표결 발의 가나다라", a.append(o, s, c), n.append(r, i, a), document.body.appendChild(n);
|
|
4526
4527
|
try {
|
|
4527
4528
|
r.animate([{ transform: "translate3d(0,0,0)" }, { transform: "translate3d(2px,0,0)" }], {
|
|
4528
|
-
duration:
|
|
4529
|
-
iterations:
|
|
4529
|
+
duration: Go,
|
|
4530
|
+
iterations: Ko
|
|
4530
4531
|
}), i.animate([{ opacity: .4 }, { opacity: .6 }], {
|
|
4531
|
-
duration:
|
|
4532
|
-
iterations:
|
|
4532
|
+
duration: Go,
|
|
4533
|
+
iterations: Ko
|
|
4533
4534
|
}), a.animate([{ transform: "translate3d(0,0,0)" }, { transform: "translate3d(2px,0,0)" }], {
|
|
4534
|
-
duration:
|
|
4535
|
-
iterations:
|
|
4535
|
+
duration: Go,
|
|
4536
|
+
iterations: Ko
|
|
4536
4537
|
});
|
|
4537
4538
|
} catch {}
|
|
4538
4539
|
setTimeout(() => n.remove(), 450);
|
|
@@ -4541,12 +4542,12 @@ function Ko() {
|
|
|
4541
4542
|
}
|
|
4542
4543
|
let e = !1;
|
|
4543
4544
|
return () => {
|
|
4544
|
-
e || (e = !0,
|
|
4545
|
+
e || (e = !0, Zo = Math.max(0, Zo - 1), Zo === 0 && Xo === "scheduled" && (Qo?.(), Qo = null, Xo = "cold"));
|
|
4545
4546
|
};
|
|
4546
4547
|
}
|
|
4547
4548
|
//#endregion
|
|
4548
4549
|
//#region src/utils/isOpaqueColor.ts
|
|
4549
|
-
function
|
|
4550
|
+
function es(e) {
|
|
4550
4551
|
let t = e.trim().toLowerCase();
|
|
4551
4552
|
if (t === "transparent" || t === "") return !1;
|
|
4552
4553
|
if (t.match(/^rgb\(\s*\d+[\s,]+\d+[\s,]+\d+\s*\)$/)) return !0;
|
|
@@ -4557,7 +4558,7 @@ function qo(e) {
|
|
|
4557
4558
|
}
|
|
4558
4559
|
//#endregion
|
|
4559
4560
|
//#region src/utils/buildRoutePath.ts
|
|
4560
|
-
function
|
|
4561
|
+
function ts(e, n) {
|
|
4561
4562
|
let i = n ?? {}, a = t(e)(Object.fromEntries(Object.entries(i).map(([e, t]) => [e, String(t)]))), o = (typeof e == "string" ? r(e) : e).tokens.filter((e) => e.type === "param").map((e) => e.name), s = Object.fromEntries(Object.entries(i).filter(([e]) => !o.includes(e))), c = new URLSearchParams(s).toString();
|
|
4562
4563
|
return {
|
|
4563
4564
|
pathname: `${a}${c ? `?${c}` : ""}`,
|
|
@@ -4565,4 +4566,4 @@ function Jo(e, n) {
|
|
|
4565
4566
|
};
|
|
4566
4567
|
}
|
|
4567
4568
|
//#endregion
|
|
4568
|
-
export { vo as ANIM_HOLD_RELEASE_BACKSTOP_MS,
|
|
4569
|
+
export { vo as ANIM_HOLD_RELEASE_BACKSTOP_MS, J as OFFLOADED_SRC_ATTR, sr as OVERSIZE_AREA_RATIO, Ea as SKIP_ANIMATION_ATTR, s as TaskManager, s as TaskManger, _o as animHoldKey, K as animateInline, En as animationName, ie as appendParamsQuery, Rn as applyTransitionStyles, ts as buildRoutePath, oo as canProgrammaticallyScroll, G as clearInlineAnimation, bn as collectAnimatedProperties, Mn as compileTransitionStyles, co as computeBarRiding, Pt as computeScreenFreeze, Nt as computeScreenFreezeMode, b as consumeSelfInducedPop, Ao as createAnimHoldCoordinator, g as createBrowserHistoryDriver, Jt as createDecorator, c as createHistoryStore, x as createHistorySync, br as createImageDecodeOffloader, j as createMemoryHistoryDriver, ee as createNavigateStore, ne as createNavigationController, Qt as createPartTransition, Yt as createRawDecorator, $t as createRawPartTransition, It as createRawTransition, pe as createRouterScope, me as createScreenSelector, ue as createScreenStore, _ as createSelfPopGuard, ae as createStepController, uo as createSwipeController, Ft as createTransition, no as createTransitionEngine, se as createTransitionStore, Vt as cupertino, R as decoratorMap, F as detectBlinkEngine, xo as eagerlyDecodeImages, xn as easingToCss, $o as ensureGpuPipelinePrewarm, Sr as ensureImageDecodeOffloader, k as ensureScopeHistorySync, p as ensureWindowHistoryState, Gn as enteringInitialStyle, ro as findScrollable, l as getMatchedPathPattern, u as getParams, Ue as governedCompiledActive, Fr as holdCompositorWarm, ye as isDesktopBlink, _e as isLegacyAndroidBlink, es as isOpaqueColor, f as isServer, Ut as layout, He as lowPowerCadenceActive, y as markSelfInducedPop, ce as matchesPathname, Wt as material, Gt as none, jo as observeBarHeight, Bo as observeViewportScrollHeight, ao as overflowsAxis, Zt as overlay, z as partTransitionMap, mt as readDeferReleaseCommitFlag, ft as readDesktopReleaseFlipFlag, vt as readImageOffloadOverride, _t as readLayerPromotionFlag, gt as readPrerasterFlag, lt as readSettleGateFlag, re as readStepParams, Wn as registerTransitionDefinitions, A as releaseScopeHistorySync, qt as resolveTransition, Oo as scheduleAnimHoldRelease, d as seedInitialHistory, m as seedRouterEntry, so as sharedBarsMatch, hr as shouldOffloadImage, at as steadySixtyPlayerEligible, oe as subscribeStepParamsRestore, V as targetToDecls, Kt as transitionMap, U as variantHasAnimation };
|