@flemo/core 1.20.0 → 1.21.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/core/engine/__tests__/compositorWarmUp.test.d.ts +1 -0
- package/dist/core/engine/__tests__/imageDecodeOffloader.test.d.ts +1 -0
- package/dist/core/engine/compositorWarmUp.d.ts +2 -0
- package/dist/core/engine/driverPolicy.d.ts +2 -1
- package/dist/core/engine/imageDecodeOffloader.d.ts +12 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +807 -449
- package/dist/screen/__tests__/pendingNetwork.test.d.ts +1 -0
- package/dist/screen/animStartAnchor.d.ts +6 -0
- package/dist/screen/pendingNetwork.d.ts +2 -0
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -500,13 +500,13 @@ var S = [], C = !1, w = (e) => {
|
|
|
500
500
|
let n = window.history.state;
|
|
501
501
|
return n ? Object.values(n).some((e) => !!e && typeof e == "object" && e.id === t) : !1;
|
|
502
502
|
};
|
|
503
|
-
function
|
|
503
|
+
function ee(e, t) {
|
|
504
504
|
for (let n = S.length - 1; n >= 0; --n) if (S[n].pathname === t) return S[n].raw?.[e] ?? null;
|
|
505
505
|
return null;
|
|
506
506
|
}
|
|
507
|
-
var
|
|
508
|
-
function
|
|
509
|
-
|
|
507
|
+
var D = /* @__PURE__ */ new WeakMap();
|
|
508
|
+
function O(e) {
|
|
509
|
+
D.has(e) || D.set(e, x({
|
|
510
510
|
stores: e,
|
|
511
511
|
driver: e.driver,
|
|
512
512
|
consume: e.consume,
|
|
@@ -516,11 +516,11 @@ function ee(e) {
|
|
|
516
516
|
}));
|
|
517
517
|
}
|
|
518
518
|
function te(e) {
|
|
519
|
-
e.persistent || (
|
|
519
|
+
e.persistent || (D.get(e)?.(), D.delete(e));
|
|
520
520
|
}
|
|
521
521
|
//#endregion
|
|
522
522
|
//#region src/history/memoryHistoryDriver.ts
|
|
523
|
-
function
|
|
523
|
+
function ne(e) {
|
|
524
524
|
let t = [{
|
|
525
525
|
state: e?.state ?? null,
|
|
526
526
|
url: e?.url ?? "/"
|
|
@@ -562,7 +562,7 @@ function k(e) {
|
|
|
562
562
|
}
|
|
563
563
|
//#endregion
|
|
564
564
|
//#region src/navigate/store.ts
|
|
565
|
-
function
|
|
565
|
+
function k() {
|
|
566
566
|
return e((e) => ({
|
|
567
567
|
status: "IDLE",
|
|
568
568
|
transitionTaskId: null,
|
|
@@ -572,11 +572,11 @@ function A() {
|
|
|
572
572
|
}
|
|
573
573
|
//#endregion
|
|
574
574
|
//#region src/navigate/createNavigationController.ts
|
|
575
|
-
var
|
|
575
|
+
var A = (e, t, n) => {
|
|
576
576
|
let { regexp: r } = i(e);
|
|
577
577
|
for (let e = t - 1; e >= 0; e--) if (r.test(n[e].pathname)) return t - e;
|
|
578
578
|
return -1;
|
|
579
|
-
},
|
|
579
|
+
}, j = (e, t) => typeof e == "number" && Number.isFinite(e) ? Math.max(0, Math.trunc(e)) : t, M = async (e, t, n, r) => {
|
|
580
580
|
let i, a = new Promise((t) => {
|
|
581
581
|
i = e.subscribe(() => t(!0));
|
|
582
582
|
}), o = new Promise((e) => setTimeout(() => e(!1), 200));
|
|
@@ -584,7 +584,7 @@ var j = (e, t, n) => {
|
|
|
584
584
|
let s = await Promise.race([a, o]);
|
|
585
585
|
i(), s && r();
|
|
586
586
|
};
|
|
587
|
-
function
|
|
587
|
+
function re(e) {
|
|
588
588
|
let { stores: t, buildPathname: n, driver: r = g(), markSelfInduced: i = y } = e, o = () => t.history.getState().bumpTruncationEpoch(), c = () => {
|
|
589
589
|
let e = r.readState();
|
|
590
590
|
if (!e?.id) return null;
|
|
@@ -610,10 +610,10 @@ function ne(e) {
|
|
|
610
610
|
}
|
|
611
611
|
let s = c(), { index: d, histories: f, addHistory: g, popHistories: _ } = t.history.getState(), v = (() => {
|
|
612
612
|
if (u?.until != null) {
|
|
613
|
-
let e =
|
|
613
|
+
let e = A(u.until, d, f);
|
|
614
614
|
return e < 0 ? 0 : e;
|
|
615
615
|
}
|
|
616
|
-
return Math.min(
|
|
616
|
+
return Math.min(j(u?.skip, 0), Math.max(0, d));
|
|
617
617
|
})(), { setStatus: y, setTransitionTaskId: b } = t.navigate.getState();
|
|
618
618
|
y("PUSHING"), b(h);
|
|
619
619
|
let { pathname: x, toPathname: S } = n(e, l ?? {}), C = {
|
|
@@ -640,7 +640,7 @@ function ne(e) {
|
|
|
640
640
|
return g({
|
|
641
641
|
...C,
|
|
642
642
|
frameIndex: T + 1
|
|
643
|
-
}), await
|
|
643
|
+
}), await M(r, i, v, () => {
|
|
644
644
|
o(), r.pushState({
|
|
645
645
|
id: h,
|
|
646
646
|
index: T + 1,
|
|
@@ -661,7 +661,16 @@ function ne(e) {
|
|
|
661
661
|
})).result?.();
|
|
662
662
|
}, u = async (e, l, u) => {
|
|
663
663
|
let { status: d } = t.navigate.getState();
|
|
664
|
-
if (d !== "COMPLETED" && d !== "IDLE")
|
|
664
|
+
if (d !== "COMPLETED" && d !== "IDLE") {
|
|
665
|
+
await s.resolveAllPending();
|
|
666
|
+
for (let e = 0; e < 5; e++) {
|
|
667
|
+
let { status: e } = t.navigate.getState();
|
|
668
|
+
if (e === "COMPLETED" || e === "IDLE") break;
|
|
669
|
+
await new Promise((e) => setTimeout(e, 0));
|
|
670
|
+
}
|
|
671
|
+
let { status: e } = t.navigate.getState();
|
|
672
|
+
if (e !== "COMPLETED" && e !== "IDLE") return;
|
|
673
|
+
}
|
|
665
674
|
let f = t.transition.getState().defaultTransitionName, { transitionName: p = f, layoutId: m = null } = u ?? {}, h = s.generateTaskId();
|
|
666
675
|
(await s.addTask(async (a) => {
|
|
667
676
|
if (t.life && !t.life.alive) {
|
|
@@ -670,10 +679,10 @@ function ne(e) {
|
|
|
670
679
|
}
|
|
671
680
|
let s = c(), { index: d, histories: f, addHistory: g, replaceHistory: _, popHistories: v } = t.history.getState(), y = (() => {
|
|
672
681
|
if (u?.until != null) {
|
|
673
|
-
let e =
|
|
682
|
+
let e = A(u.until, d, f);
|
|
674
683
|
return e < 0 ? 0 : e + 1;
|
|
675
684
|
}
|
|
676
|
-
return Math.min(
|
|
685
|
+
return Math.min(j(u?.skip, 0) + 1, d + 1);
|
|
677
686
|
})();
|
|
678
687
|
if (y <= 0) {
|
|
679
688
|
a.abort();
|
|
@@ -705,7 +714,7 @@ function ne(e) {
|
|
|
705
714
|
return v(y - 1), g({
|
|
706
715
|
...w,
|
|
707
716
|
frameIndex: E
|
|
708
|
-
}), y <= d ? await
|
|
717
|
+
}), y <= d ? await M(r, i, y, () => {
|
|
709
718
|
o(), r.pushState({
|
|
710
719
|
id: h,
|
|
711
720
|
index: E,
|
|
@@ -714,7 +723,7 @@ function ne(e) {
|
|
|
714
723
|
transitionName: p,
|
|
715
724
|
layoutId: m
|
|
716
725
|
}, S);
|
|
717
|
-
}) : await
|
|
726
|
+
}) : await M(r, i, d, () => {
|
|
718
727
|
o(), r.replaceState({
|
|
719
728
|
id: h,
|
|
720
729
|
index: E,
|
|
@@ -770,10 +779,10 @@ function ne(e) {
|
|
|
770
779
|
pop: async (e) => {
|
|
771
780
|
await d((t, n) => {
|
|
772
781
|
if (e?.until != null) {
|
|
773
|
-
let r =
|
|
782
|
+
let r = A(e.until, t, n);
|
|
774
783
|
return r < 0 ? 0 : r;
|
|
775
784
|
}
|
|
776
|
-
let r =
|
|
785
|
+
let r = j(e?.skip, 1);
|
|
777
786
|
return r <= 0 ? 0 : Math.min(r, t);
|
|
778
787
|
}, e?.transitionName);
|
|
779
788
|
}
|
|
@@ -781,14 +790,14 @@ function ne(e) {
|
|
|
781
790
|
}
|
|
782
791
|
//#endregion
|
|
783
792
|
//#region src/navigate/createStepController.ts
|
|
784
|
-
var
|
|
793
|
+
var ie = (e) => {
|
|
785
794
|
let t = e;
|
|
786
795
|
return t?.step ? t.params ?? {} : null;
|
|
787
|
-
},
|
|
796
|
+
}, ae = (e, t) => {
|
|
788
797
|
let n = new URLSearchParams(Object.fromEntries(Object.entries(t).map(([e, t]) => [e, String(t)]))).toString();
|
|
789
798
|
return n ? `${e}?${n}` : e;
|
|
790
799
|
};
|
|
791
|
-
function
|
|
800
|
+
function oe(e) {
|
|
792
801
|
let { stores: t, driver: n, markSelfInduced: r, buildStepPathname: i, applyParams: o } = e;
|
|
793
802
|
return {
|
|
794
803
|
pushStep: async (e) => {
|
|
@@ -846,7 +855,7 @@ function P(e) {
|
|
|
846
855
|
}
|
|
847
856
|
};
|
|
848
857
|
}
|
|
849
|
-
function
|
|
858
|
+
function se(e, t) {
|
|
850
859
|
return e.subscribe((e) => {
|
|
851
860
|
let n = e.state;
|
|
852
861
|
n?.step && s.addTask(async () => {
|
|
@@ -856,7 +865,7 @@ function ae(e, t) {
|
|
|
856
865
|
}
|
|
857
866
|
//#endregion
|
|
858
867
|
//#region src/transition/store.ts
|
|
859
|
-
function
|
|
868
|
+
function ce(t = "cupertino") {
|
|
860
869
|
return e((e) => ({
|
|
861
870
|
defaultTransitionName: t,
|
|
862
871
|
setDefaultTransitionName: (t) => e({ defaultTransitionName: t })
|
|
@@ -864,12 +873,12 @@ function oe(t = "cupertino") {
|
|
|
864
873
|
}
|
|
865
874
|
//#endregion
|
|
866
875
|
//#region src/utils/matchesPathname.ts
|
|
867
|
-
function
|
|
876
|
+
function le(e, t) {
|
|
868
877
|
return i(e).regexp.test(t);
|
|
869
878
|
}
|
|
870
879
|
//#endregion
|
|
871
880
|
//#region src/screen/store.ts
|
|
872
|
-
function
|
|
881
|
+
function ue() {
|
|
873
882
|
return e((e) => ({
|
|
874
883
|
dragStatus: "IDLE",
|
|
875
884
|
replaceTransitionStatus: "IDLE",
|
|
@@ -900,21 +909,21 @@ function F() {
|
|
|
900
909
|
}
|
|
901
910
|
//#endregion
|
|
902
911
|
//#region src/core/createRouterScope.ts
|
|
903
|
-
var
|
|
912
|
+
var de = {
|
|
904
913
|
mark: () => {},
|
|
905
914
|
consume: () => !1
|
|
906
|
-
},
|
|
907
|
-
function
|
|
915
|
+
}, N = /* @__PURE__ */ new Map();
|
|
916
|
+
function fe(e) {
|
|
908
917
|
let { routePaths: t, pathname: n, search: r, defaultTransitionName: i, memory: a, browserDriver: o } = e, s = f() ? void 0 : e.persistKey;
|
|
909
918
|
if (s) {
|
|
910
|
-
let e =
|
|
919
|
+
let e = N.get(s);
|
|
911
920
|
if (e) {
|
|
912
921
|
e.life.alive = !0, e.navigate.getState().setStatus("IDLE"), e.navigate.getState().setTransitionTaskId(null);
|
|
913
922
|
let t = e.history.getState();
|
|
914
923
|
return t.setPendingIndex(t.index), e;
|
|
915
924
|
}
|
|
916
925
|
}
|
|
917
|
-
let l = d(t, n, r, i), u = (e.routerKey && !f() ?
|
|
926
|
+
let l = d(t, n, r, i), u = (e.routerKey && !f() ? ee(e.routerKey, n) : null) ?? (o && !f() ? o.readState() : null), p = u?.id ? {
|
|
918
927
|
...l,
|
|
919
928
|
id: u.id,
|
|
920
929
|
params: u.params ?? l.params,
|
|
@@ -927,7 +936,7 @@ function ue(e) {
|
|
|
927
936
|
index: 0,
|
|
928
937
|
histories: [p]
|
|
929
938
|
}), e.hostedScope;
|
|
930
|
-
let m = a ?
|
|
939
|
+
let m = a ? ne({
|
|
931
940
|
state: {
|
|
932
941
|
id: p.id,
|
|
933
942
|
index: 0,
|
|
@@ -937,25 +946,25 @@ function ue(e) {
|
|
|
937
946
|
layoutId: p.layoutId
|
|
938
947
|
},
|
|
939
948
|
url: p.pathname
|
|
940
|
-
}) : o, h = a ?
|
|
949
|
+
}) : o, h = a ? de : _(), g = {
|
|
941
950
|
history: c([p], 0),
|
|
942
|
-
navigate:
|
|
943
|
-
transition:
|
|
944
|
-
screen:
|
|
951
|
+
navigate: k(),
|
|
952
|
+
transition: ce(i),
|
|
953
|
+
screen: ue(),
|
|
945
954
|
driver: m,
|
|
946
955
|
markSelfInduced: h.mark,
|
|
947
956
|
consume: h.consume,
|
|
948
957
|
routerKey: e.routerKey,
|
|
949
958
|
zoneEntryId: e.zoneEntryId,
|
|
950
|
-
ownsPathname: (e) =>
|
|
959
|
+
ownsPathname: (e) => le(t, e),
|
|
951
960
|
persistent: !!s,
|
|
952
961
|
life: { alive: !0 }
|
|
953
962
|
};
|
|
954
|
-
return s &&
|
|
963
|
+
return s && N.set(s, g), g;
|
|
955
964
|
}
|
|
956
965
|
//#endregion
|
|
957
966
|
//#region src/screen/createScreenSelector.ts
|
|
958
|
-
function
|
|
967
|
+
function pe(e, t) {
|
|
959
968
|
return e.map((n, r) => ({
|
|
960
969
|
...n,
|
|
961
970
|
isActive: r === t,
|
|
@@ -968,13 +977,13 @@ function de(e, t) {
|
|
|
968
977
|
}
|
|
969
978
|
//#endregion
|
|
970
979
|
//#region src/screen/computeScreenFreeze.ts
|
|
971
|
-
function
|
|
980
|
+
function me(e) {
|
|
972
981
|
let t = e.status === "COMPLETED" && e.dragStatus === "IDLE";
|
|
973
982
|
return !e.isActive && t || e.isPrev && e.index - 2 <= e.zIndex && e.replaceTransitionStatus === "IDLE" || e.isPrev && e.index - 2 > e.zIndex;
|
|
974
983
|
}
|
|
975
984
|
//#endregion
|
|
976
985
|
//#region src/transition/createTransition.ts
|
|
977
|
-
function
|
|
986
|
+
function P({ name: e, initial: t, idle: n, enter: r, enterBack: i, exit: a, exitBack: o, options: s }) {
|
|
978
987
|
return {
|
|
979
988
|
name: e,
|
|
980
989
|
initial: t,
|
|
@@ -995,7 +1004,7 @@ function L({ name: e, initial: t, idle: n, enter: r, enterBack: i, exit: a, exit
|
|
|
995
1004
|
}
|
|
996
1005
|
//#endregion
|
|
997
1006
|
//#region src/transition/createRawTransition.ts
|
|
998
|
-
function
|
|
1007
|
+
function he({ name: e, initial: t, idle: n, pushOnEnter: r, pushOnExit: i, replaceOnEnter: a, replaceOnExit: o, popOnEnter: s, popOnExit: c, completedOnExit: l, completedOnEnter: u, options: d }) {
|
|
999
1008
|
return {
|
|
1000
1009
|
name: e,
|
|
1001
1010
|
initial: t,
|
|
@@ -1016,10 +1025,10 @@ function R({ name: e, initial: t, idle: n, pushOnEnter: r, pushOnExit: i, replac
|
|
|
1016
1025
|
}
|
|
1017
1026
|
//#endregion
|
|
1018
1027
|
//#region src/transition/cupertino.ts
|
|
1019
|
-
var
|
|
1028
|
+
var ge = (e, t, n) => {
|
|
1020
1029
|
let [r, i] = t, [a, o] = n;
|
|
1021
1030
|
return i === r ? a : a + (e - r) / (i - r) * (o - a);
|
|
1022
|
-
},
|
|
1031
|
+
}, _e = P({
|
|
1023
1032
|
name: "cupertino",
|
|
1024
1033
|
initial: { x: "100%" },
|
|
1025
1034
|
idle: {
|
|
@@ -1079,7 +1088,7 @@ var fe = (e, t, n) => {
|
|
|
1079
1088
|
swipeDirection: "x",
|
|
1080
1089
|
onSwipeStart: async () => !0,
|
|
1081
1090
|
onSwipe: (e, t, { animate: n, currentScreen: r, prevScreen: i, onProgress: a }) => {
|
|
1082
|
-
let { offset: o } = t, s = o.x, c =
|
|
1091
|
+
let { offset: o } = t, s = o.x, c = ge(s, [0, window.innerWidth], [0, 100]);
|
|
1083
1092
|
return a?.(!0, c), n(r, { x: Math.max(0, s) }, { duration: 0 }), n(i, { x: `${-35 + c * .35}%` }, { duration: 0 }), c;
|
|
1084
1093
|
},
|
|
1085
1094
|
onSwipeEnd: async (e, t, { animate: n, currentScreen: r, prevScreen: i, onStart: a }) => {
|
|
@@ -1103,10 +1112,10 @@ var fe = (e, t, n) => {
|
|
|
1103
1112
|
})]), c;
|
|
1104
1113
|
}
|
|
1105
1114
|
}
|
|
1106
|
-
}),
|
|
1115
|
+
}), ve = (e, t, n) => {
|
|
1107
1116
|
let [r, i] = t, [a, o] = n;
|
|
1108
1117
|
return i === r ? a : a + (e - r) / (i - r) * (o - a);
|
|
1109
|
-
},
|
|
1118
|
+
}, F = P({
|
|
1110
1119
|
name: "layout",
|
|
1111
1120
|
initial: { opacity: .97 },
|
|
1112
1121
|
idle: {
|
|
@@ -1134,7 +1143,7 @@ var fe = (e, t, n) => {
|
|
|
1134
1143
|
swipeDirection: "y",
|
|
1135
1144
|
onSwipeStart: async () => !0,
|
|
1136
1145
|
onSwipe: (e, t, { animate: n, currentScreen: r, onProgress: i }) => {
|
|
1137
|
-
let { offset: a } = t, o = a.y, s = Math.max(0, Math.min(56, o)), c =
|
|
1146
|
+
let { offset: a } = t, o = a.y, s = Math.max(0, Math.min(56, o)), c = ve(s, [0, 56], [1, .96]), l = Math.max(0, o - 56), u = Math.min(1, l / 160), d = Math.sqrt(u) * 12, f = Math.max(0, s + d), p = Math.min(56, f);
|
|
1138
1147
|
return i?.(!0, 100), n(r, {
|
|
1139
1148
|
y: f,
|
|
1140
1149
|
opacity: c
|
|
@@ -1151,7 +1160,7 @@ var fe = (e, t, n) => {
|
|
|
1151
1160
|
}, { duration: .3 })]), c;
|
|
1152
1161
|
}
|
|
1153
1162
|
}
|
|
1154
|
-
}),
|
|
1163
|
+
}), ye = P({
|
|
1155
1164
|
name: "material",
|
|
1156
1165
|
initial: { y: "100%" },
|
|
1157
1166
|
idle: {
|
|
@@ -1259,7 +1268,7 @@ var fe = (e, t, n) => {
|
|
|
1259
1268
|
})]), c;
|
|
1260
1269
|
}
|
|
1261
1270
|
}
|
|
1262
|
-
}),
|
|
1271
|
+
}), I = P({
|
|
1263
1272
|
name: "none",
|
|
1264
1273
|
initial: {},
|
|
1265
1274
|
idle: {
|
|
@@ -1282,20 +1291,20 @@ var fe = (e, t, n) => {
|
|
|
1282
1291
|
value: {},
|
|
1283
1292
|
options: { duration: 0 }
|
|
1284
1293
|
}
|
|
1285
|
-
}),
|
|
1286
|
-
["none",
|
|
1287
|
-
["cupertino",
|
|
1288
|
-
["material",
|
|
1289
|
-
["layout",
|
|
1294
|
+
}), L = /* @__PURE__ */ new Map([
|
|
1295
|
+
["none", I],
|
|
1296
|
+
["cupertino", _e],
|
|
1297
|
+
["material", ye],
|
|
1298
|
+
["layout", F]
|
|
1290
1299
|
]);
|
|
1291
1300
|
//#endregion
|
|
1292
1301
|
//#region src/transition/resolveTransition.ts
|
|
1293
|
-
function
|
|
1294
|
-
return
|
|
1302
|
+
function be(e) {
|
|
1303
|
+
return L.get(e) ?? L.get("none");
|
|
1295
1304
|
}
|
|
1296
1305
|
//#endregion
|
|
1297
1306
|
//#region src/transition/decorator/createDecorator.ts
|
|
1298
|
-
function
|
|
1307
|
+
function xe({ name: e, initial: t, idle: n, enter: r, exit: i, options: a }) {
|
|
1299
1308
|
return {
|
|
1300
1309
|
name: e,
|
|
1301
1310
|
initial: t,
|
|
@@ -1316,7 +1325,7 @@ function ve({ name: e, initial: t, idle: n, enter: r, exit: i, options: a }) {
|
|
|
1316
1325
|
}
|
|
1317
1326
|
//#endregion
|
|
1318
1327
|
//#region src/transition/decorator/createRawDecorator.ts
|
|
1319
|
-
function
|
|
1328
|
+
function Se({ name: e, initial: t, idle: n, pushOnEnter: r, pushOnExit: i, replaceOnEnter: a, replaceOnExit: o, popOnEnter: s, popOnExit: c, completedOnEnter: l, completedOnExit: u, options: d }) {
|
|
1320
1329
|
return {
|
|
1321
1330
|
name: e,
|
|
1322
1331
|
initial: t,
|
|
@@ -1337,30 +1346,30 @@ function ye({ name: e, initial: t, idle: n, pushOnEnter: r, pushOnExit: i, repla
|
|
|
1337
1346
|
}
|
|
1338
1347
|
//#endregion
|
|
1339
1348
|
//#region src/transition/decorator/overlay.ts
|
|
1340
|
-
var
|
|
1349
|
+
var Ce = "rgba(0, 0, 0, 0.2)", we = xe({
|
|
1341
1350
|
name: "overlay",
|
|
1342
1351
|
initial: {
|
|
1343
1352
|
opacity: 0,
|
|
1344
|
-
backgroundColor:
|
|
1353
|
+
backgroundColor: Ce
|
|
1345
1354
|
},
|
|
1346
1355
|
idle: {
|
|
1347
1356
|
value: {
|
|
1348
1357
|
opacity: 0,
|
|
1349
|
-
backgroundColor:
|
|
1358
|
+
backgroundColor: Ce
|
|
1350
1359
|
},
|
|
1351
1360
|
options: { duration: 0 }
|
|
1352
1361
|
},
|
|
1353
1362
|
enter: {
|
|
1354
1363
|
value: {
|
|
1355
1364
|
opacity: 1,
|
|
1356
|
-
backgroundColor:
|
|
1365
|
+
backgroundColor: Ce
|
|
1357
1366
|
},
|
|
1358
1367
|
options: { duration: .6 }
|
|
1359
1368
|
},
|
|
1360
1369
|
exit: {
|
|
1361
1370
|
value: {
|
|
1362
1371
|
opacity: 0,
|
|
1363
|
-
backgroundColor:
|
|
1372
|
+
backgroundColor: Ce
|
|
1364
1373
|
},
|
|
1365
1374
|
options: { duration: .6 }
|
|
1366
1375
|
},
|
|
@@ -1369,10 +1378,10 @@ var be = "rgba(0, 0, 0, 0.2)", xe = ve({
|
|
|
1369
1378
|
onSwipe: (e, t, { animate: n, prevDecorator: r }) => n(r, { opacity: Math.max(0, 1 - t / 100) }, { duration: 0 }),
|
|
1370
1379
|
onSwipeEnd: (e, { animate: t, prevDecorator: n }) => t(n, { opacity: +!e }, { duration: .3 })
|
|
1371
1380
|
}
|
|
1372
|
-
}),
|
|
1381
|
+
}), R = /* @__PURE__ */ new Map([["overlay", we]]);
|
|
1373
1382
|
//#endregion
|
|
1374
1383
|
//#region src/transition/partTransition/createPartTransition.ts
|
|
1375
|
-
function
|
|
1384
|
+
function Te({ name: e, initial: t, idle: n, enter: r, exit: i, options: a }) {
|
|
1376
1385
|
return {
|
|
1377
1386
|
name: e,
|
|
1378
1387
|
initial: t,
|
|
@@ -1393,7 +1402,7 @@ function Se({ name: e, initial: t, idle: n, enter: r, exit: i, options: a }) {
|
|
|
1393
1402
|
}
|
|
1394
1403
|
//#endregion
|
|
1395
1404
|
//#region src/transition/partTransition/createRawPartTransition.ts
|
|
1396
|
-
function
|
|
1405
|
+
function Ee({ name: e, initial: t, idle: n, pushOnEnter: r, pushOnExit: i, replaceOnEnter: a, replaceOnExit: o, popOnEnter: s, popOnExit: c, completedOnEnter: l, completedOnExit: u, options: d }) {
|
|
1397
1406
|
return {
|
|
1398
1407
|
name: e,
|
|
1399
1408
|
initial: t,
|
|
@@ -1414,7 +1423,7 @@ function Ce({ name: e, initial: t, idle: n, pushOnEnter: r, pushOnExit: i, repla
|
|
|
1414
1423
|
}
|
|
1415
1424
|
//#endregion
|
|
1416
1425
|
//#region src/transition/partTransition/partTransition.ts
|
|
1417
|
-
var
|
|
1426
|
+
var z = /* @__PURE__ */ new Map(), B = {
|
|
1418
1427
|
"IDLE-true": "self",
|
|
1419
1428
|
"IDLE-false": "self",
|
|
1420
1429
|
"PUSHING-true": "initial",
|
|
@@ -1425,17 +1434,17 @@ var H = /* @__PURE__ */ new Map(), U = {
|
|
|
1425
1434
|
"POPPING-false": "PUSHING-false",
|
|
1426
1435
|
"COMPLETED-true": "self",
|
|
1427
1436
|
"COMPLETED-false": "self"
|
|
1428
|
-
},
|
|
1437
|
+
}, De = Object.keys(B), Oe = (e) => {
|
|
1429
1438
|
if (!e) return 0;
|
|
1430
1439
|
let t = e.duration;
|
|
1431
1440
|
return typeof t == "number" && t >= 0 ? t : 0;
|
|
1432
|
-
},
|
|
1433
|
-
let n =
|
|
1441
|
+
}, ke = (e) => e && typeof e.delay == "number" && e.delay > 0 ? e.delay : 0, Ae = (e, t) => {
|
|
1442
|
+
let n = B[t];
|
|
1434
1443
|
return n === "self" ? null : n === "initial" ? e.initial : e.variants[n].value;
|
|
1435
|
-
},
|
|
1436
|
-
let n =
|
|
1444
|
+
}, V = (e, t) => {
|
|
1445
|
+
let n = Ae(e, t);
|
|
1437
1446
|
if (n === null) return null;
|
|
1438
|
-
let r = e.variants[t], i =
|
|
1447
|
+
let r = e.variants[t], i = Oe(r.options), a = ke(r.options);
|
|
1439
1448
|
return i <= 0 && a <= 0 ? null : {
|
|
1440
1449
|
from: n,
|
|
1441
1450
|
to: r.value,
|
|
@@ -1443,7 +1452,7 @@ var H = /* @__PURE__ */ new Map(), U = {
|
|
|
1443
1452
|
delay: a,
|
|
1444
1453
|
ease: r.options?.ease
|
|
1445
1454
|
};
|
|
1446
|
-
},
|
|
1455
|
+
}, je = De, Me = (e) => e.replace(/[^a-zA-Z0-9_-]/g, "_"), Ne = (e) => typeof e == "object" && !!e && !Array.isArray(e), Pe = /* @__PURE__ */ new Set(/* @__PURE__ */ "opacity.scale.scaleX.scaleY.scaleZ.aspectRatio.columnCount.columns.flex.flexGrow.flexShrink.fontWeight.gridArea.gridColumn.gridColumnEnd.gridColumnStart.gridRow.gridRowEnd.gridRowStart.lineHeight.lineClamp.order.orphans.tabSize.widows.zIndex.zoom.fillOpacity.floodOpacity.stopOpacity.strokeOpacity.strokeDasharray.strokeDashoffset.strokeMiterlimit.strokeWidth".split(".")), Fe = (e, t) => t.startsWith("--") || Pe.has(t) ? `${e}` : t === "rotate" || t === "rotateX" || t === "rotateY" || t === "rotateZ" ? `${e}deg` : `${e}px`, Ie = (e, t) => typeof t == "number" ? Fe(t, e) : typeof t == "string" ? t : "", Le = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Re = /* @__PURE__ */ new Set([
|
|
1447
1456
|
"x",
|
|
1448
1457
|
"y",
|
|
1449
1458
|
"z",
|
|
@@ -1454,7 +1463,7 @@ var H = /* @__PURE__ */ new Map(), U = {
|
|
|
1454
1463
|
"rotateX",
|
|
1455
1464
|
"rotateY",
|
|
1456
1465
|
"rotateZ"
|
|
1457
|
-
]),
|
|
1466
|
+
]), ze = /^-?0(\.0+)?(px|%|em|rem|vh|vw|vmin|vmax)?$/, Be = /^-?0(\.0+)?(deg|rad|grad|turn)?$/, Ve = /^1(\.0+)?$/, He = (e, t) => e === "scale" || e === "scaleX" || e === "scaleY" ? t === 1 || typeof t == "string" && Ve.test(t.trim()) : e === "rotate" || e === "rotateX" || e === "rotateY" || e === "rotateZ" ? t === 0 || typeof t == "string" && Be.test(t.trim()) : t === 0 || typeof t == "string" && ze.test(t.trim()), Ue = (e, t) => {
|
|
1458
1467
|
switch (e) {
|
|
1459
1468
|
case "x": return `translate3d(${t}, 0, 0)`;
|
|
1460
1469
|
case "y": return `translate3d(0, ${t}, 0)`;
|
|
@@ -1468,16 +1477,16 @@ var H = /* @__PURE__ */ new Map(), U = {
|
|
|
1468
1477
|
case "rotateY": return `rotateY(${t})`;
|
|
1469
1478
|
default: return "";
|
|
1470
1479
|
}
|
|
1471
|
-
},
|
|
1480
|
+
}, We = (e) => {
|
|
1472
1481
|
let t = /* @__PURE__ */ new Map(), n = !1, r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
1473
|
-
if (!
|
|
1482
|
+
if (!Ne(e)) return;
|
|
1474
1483
|
let n = [];
|
|
1475
1484
|
for (let r of Object.keys(e)) {
|
|
1476
|
-
let i = e[r], a =
|
|
1477
|
-
if (a !== "") if (
|
|
1485
|
+
let i = e[r], a = Ie(r, i);
|
|
1486
|
+
if (a !== "") if (Re.has(r)) n.push(`${r}:${a}`);
|
|
1478
1487
|
else {
|
|
1479
|
-
let e = t.get(
|
|
1480
|
-
e.add(a), t.set(
|
|
1488
|
+
let e = t.get(Le(r)) ?? /* @__PURE__ */ new Set();
|
|
1489
|
+
e.add(a), t.set(Le(r), e);
|
|
1481
1490
|
}
|
|
1482
1491
|
}
|
|
1483
1492
|
r.add(n.sort().join("|"));
|
|
@@ -1487,13 +1496,13 @@ var H = /* @__PURE__ */ new Map(), U = {
|
|
|
1487
1496
|
n = r.size > 1;
|
|
1488
1497
|
let a = Array.from(t.entries()).filter(([, e]) => e.size > 1).map(([e]) => e);
|
|
1489
1498
|
return n && a.push("transform"), a;
|
|
1490
|
-
},
|
|
1491
|
-
if (!
|
|
1499
|
+
}, H = (e) => {
|
|
1500
|
+
if (!Ne(e)) return [];
|
|
1492
1501
|
let t = [], n = !0, r = [];
|
|
1493
1502
|
for (let i of Object.keys(e)) {
|
|
1494
|
-
let a = e[i], o =
|
|
1495
|
-
o !== "" && (
|
|
1496
|
-
property:
|
|
1503
|
+
let a = e[i], o = Ie(i, a);
|
|
1504
|
+
o !== "" && (Re.has(i) ? (t.push(Ue(i, o)), He(i, a) || (n = !1)) : r.push({
|
|
1505
|
+
property: Le(i),
|
|
1497
1506
|
value: o
|
|
1498
1507
|
}));
|
|
1499
1508
|
}
|
|
@@ -1501,7 +1510,7 @@ var H = /* @__PURE__ */ new Map(), U = {
|
|
|
1501
1510
|
property: "transform",
|
|
1502
1511
|
value: n ? "none" : t.join(" ")
|
|
1503
1512
|
}), r;
|
|
1504
|
-
},
|
|
1513
|
+
}, U = (e) => e.map((e) => ` ${e.property}: ${e.value};`).join("\n"), Ge = (e) => Array.isArray(e) ? e.length === 4 && e.every((e) => typeof e == "number") ? `cubic-bezier(${e.join(", ")})` : "linear" : typeof e == "string" ? {
|
|
1505
1514
|
linear: "linear",
|
|
1506
1515
|
easeIn: "ease-in",
|
|
1507
1516
|
easeOut: "ease-out",
|
|
@@ -1511,29 +1520,29 @@ var H = /* @__PURE__ */ new Map(), U = {
|
|
|
1511
1520
|
backIn: "cubic-bezier(0.31, 0.01, 0.66, -0.59)",
|
|
1512
1521
|
backOut: "cubic-bezier(0.33, 1.53, 0.69, 0.99)",
|
|
1513
1522
|
anticipate: "cubic-bezier(0.36, 0, 0.66, -0.56)"
|
|
1514
|
-
}[e] ?? "ease" : "ease",
|
|
1523
|
+
}[e] ?? "ease" : "ease", Ke = (e, t) => {
|
|
1515
1524
|
let [n, r] = t.split("-");
|
|
1516
1525
|
return `[data-flemo-screen][data-flemo-transition="${e}"][data-flemo-status="${n}"][data-flemo-active="${r}"]`;
|
|
1517
|
-
},
|
|
1526
|
+
}, qe = (e, t) => {
|
|
1518
1527
|
let [n, r] = t.split("-");
|
|
1519
1528
|
return `[data-flemo-decorator][data-flemo-decorator-name="${e}"][data-flemo-status="${n}"][data-flemo-active="${r}"]`;
|
|
1520
|
-
},
|
|
1529
|
+
}, Je = (e, t) => {
|
|
1521
1530
|
let [n, r] = t.split("-");
|
|
1522
1531
|
return `[data-flemo-bar][data-flemo-bar-transition="${e}"][data-flemo-bar-status="${n}"][data-flemo-bar-active="${r}"][data-flemo-bar-riding="true"]`;
|
|
1523
|
-
},
|
|
1532
|
+
}, Ye = (e, t) => {
|
|
1524
1533
|
let [n, r] = t.split("-");
|
|
1525
1534
|
return `[data-flemo-part-name="${e}"][data-flemo-status="${n}"][data-flemo-active="${r}"]`;
|
|
1526
|
-
},
|
|
1527
|
-
let o =
|
|
1535
|
+
}, W = (e, t, n) => `flemo-${e}-${Me(t)}-${n}`, Xe = (e, t, n, r, i, a) => {
|
|
1536
|
+
let o = H(r), s = H(i.value), c = Oe(i.options), l = ke(i.options), u = Ge(i.options?.ease), d = a(t, n), f = e === "screen" ? `${d},\n${Je(t, n)}` : d;
|
|
1528
1537
|
if (s.length === 0 && o.length === 0) return "";
|
|
1529
|
-
if (c <= 0 && l <= 0) return s.length === 0 ? "" : `${f} {\n${
|
|
1530
|
-
let p =
|
|
1538
|
+
if (c <= 0 && l <= 0) return s.length === 0 ? "" : `${f} {\n${U(s)}\n animation: none;\n}`;
|
|
1539
|
+
let p = W(e, t, n), m = [
|
|
1531
1540
|
`@keyframes ${p} {`,
|
|
1532
1541
|
" from {",
|
|
1533
|
-
|
|
1542
|
+
U(o).replace(/^/gm, " "),
|
|
1534
1543
|
" }",
|
|
1535
1544
|
" to {",
|
|
1536
|
-
|
|
1545
|
+
U(s).replace(/^/gm, " "),
|
|
1537
1546
|
" }",
|
|
1538
1547
|
"}"
|
|
1539
1548
|
].join("\n"), h = [
|
|
@@ -1542,61 +1551,60 @@ var H = /* @__PURE__ */ new Map(), U = {
|
|
|
1542
1551
|
u,
|
|
1543
1552
|
l > 0 ? `${l}s` : null,
|
|
1544
1553
|
"both"
|
|
1545
|
-
].filter(Boolean).join(" "), g = new Map(o.map((e) => [e.property, e.value])), _ = new Map(s.map((e) => [e.property, e.value])), v = Array.from(new Set([...g.keys(), ..._.keys()])).filter((e) => g.get(e) !== _.get(e)), y = v.length > 0 ? ` will-change: ${v.join(", ")};\n` : "", b = n.split("-")[0];
|
|
1546
|
-
return `${m}\n${`${f} {\n animation: ${h};\n${y}${b === "PUSHING" || b === "REPLACING" ? " contain: layout;\n pointer-events: none;\n" : ""}}`}${e === "screen" && n.endsWith("-false") &&
|
|
1547
|
-
},
|
|
1554
|
+
].filter(Boolean).join(" "), g = new Map(o.map((e) => [e.property, e.value])), _ = new Map(s.map((e) => [e.property, e.value])), v = Array.from(/* @__PURE__ */ new Set([...g.keys(), ..._.keys()])).filter((e) => g.get(e) !== _.get(e)), y = v.length > 0 ? ` will-change: ${v.join(", ")};\n` : "", b = n.split("-")[0];
|
|
1555
|
+
return `${m}\n${`${f} {\n animation: ${h};\n${y}${b === "PUSHING" || b === "REPLACING" ? " contain: layout;\n pointer-events: none;\n" : ""}}`}${e === "screen" && n.endsWith("-false") && Ze(r) && s.length > 0 ? `\n${d}[data-flemo-anim-hold="park"] {\n animation: none;\n${U(s)}\n}` : ""}${e === "screen" && n.endsWith("-true") && (n.startsWith("PUSHING") || n.startsWith("REPLACING")) && Ze(r) && s.length > 0 ? `\n${d}[data-flemo-anim-hold="park-under"] {\n animation: none;\n${U(s)}\n}` : ""}`;
|
|
1556
|
+
}, Ze = (e) => {
|
|
1548
1557
|
if (!e) return !1;
|
|
1549
1558
|
if (e.opacity === 0) return !0;
|
|
1550
1559
|
let t = (e) => typeof e == "string" && e.trim().endsWith("%") && Math.abs(parseFloat(e)) >= 100;
|
|
1551
1560
|
return t(e.x) || t(e.y);
|
|
1552
|
-
},
|
|
1553
|
-
let i =
|
|
1554
|
-
return i.length === 0 ? "" : `${e(t, n)} {\n${
|
|
1555
|
-
},
|
|
1561
|
+
}, Qe = (e, t, n, r) => {
|
|
1562
|
+
let i = H(r.value);
|
|
1563
|
+
return i.length === 0 ? "" : `${e(t, n)} {\n${U(i)}\n}`;
|
|
1564
|
+
}, $e = (e, t, n = []) => {
|
|
1556
1565
|
let r = [];
|
|
1557
1566
|
for (let t of e) {
|
|
1558
1567
|
let e = t.name;
|
|
1559
|
-
for (let n of
|
|
1560
|
-
let i = t.variants[n], a =
|
|
1568
|
+
for (let n of De) {
|
|
1569
|
+
let i = t.variants[n], a = B[n];
|
|
1561
1570
|
if (a === "self") {
|
|
1562
|
-
r.push(
|
|
1571
|
+
r.push(Qe(Ke, e, n, i));
|
|
1563
1572
|
continue;
|
|
1564
1573
|
}
|
|
1565
1574
|
let o = a === "initial" ? t.initial : t.variants[a].value;
|
|
1566
|
-
r.push(
|
|
1575
|
+
r.push(Xe("screen", e, n, o, i, Ke));
|
|
1567
1576
|
}
|
|
1568
1577
|
}
|
|
1569
1578
|
for (let e of t) {
|
|
1570
1579
|
let t = e.name;
|
|
1571
|
-
for (let n of
|
|
1572
|
-
let i = e.variants[n], a =
|
|
1580
|
+
for (let n of je) {
|
|
1581
|
+
let i = e.variants[n], a = B[n];
|
|
1573
1582
|
if (a === "self") {
|
|
1574
|
-
r.push(
|
|
1583
|
+
r.push(Qe(qe, t, n, i));
|
|
1575
1584
|
continue;
|
|
1576
1585
|
}
|
|
1577
1586
|
let o = a === "initial" ? e.initial : e.variants[a].value;
|
|
1578
|
-
r.push(
|
|
1587
|
+
r.push(Xe("decorator", t, n, o, i, qe));
|
|
1579
1588
|
}
|
|
1580
1589
|
}
|
|
1581
1590
|
for (let e of n) {
|
|
1582
1591
|
let t = e.name;
|
|
1583
|
-
for (let n of
|
|
1584
|
-
let i = e.variants[n], a =
|
|
1592
|
+
for (let n of je) {
|
|
1593
|
+
let i = e.variants[n], a = B[n];
|
|
1585
1594
|
if (a === "self") {
|
|
1586
|
-
r.push(Ye
|
|
1595
|
+
r.push(Qe(Ye, t, n, i));
|
|
1587
1596
|
continue;
|
|
1588
1597
|
}
|
|
1589
1598
|
let o = a === "initial" ? e.initial : e.variants[a].value;
|
|
1590
|
-
r.push(
|
|
1599
|
+
r.push(Xe("part", t, n, o, i, Ye));
|
|
1591
1600
|
}
|
|
1592
1601
|
}
|
|
1593
1602
|
return [
|
|
1594
1603
|
...r.filter((e) => e.length > 0),
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
et
|
|
1604
|
+
et,
|
|
1605
|
+
tt
|
|
1598
1606
|
].join("\n\n");
|
|
1599
|
-
},
|
|
1607
|
+
}, et = [
|
|
1600
1608
|
"[data-flemo-anim-hold=\"true\"],",
|
|
1601
1609
|
"[data-flemo-anim-hold=\"park\"],",
|
|
1602
1610
|
"[data-flemo-anim-hold=\"park-under\"],",
|
|
@@ -1605,53 +1613,45 @@ var H = /* @__PURE__ */ new Map(), U = {
|
|
|
1605
1613
|
"[data-flemo-anim-hold=\"park-under\"] [data-flemo-part-name] {",
|
|
1606
1614
|
" animation-play-state: paused !important;",
|
|
1607
1615
|
"}"
|
|
1608
|
-
].join("\n"),
|
|
1609
|
-
...Qe.flatMap(([e, t], n) => [
|
|
1610
|
-
"",
|
|
1611
|
-
"::before",
|
|
1612
|
-
"::after"
|
|
1613
|
-
].map((r, i) => `[data-flemo-screen][data-flemo-status="${e}"][data-flemo-active="${t}"] :not([data-flemo-part-name])${r}${n === Qe.length - 1 && i === 2 ? " {" : ","}`)),
|
|
1614
|
-
" animation: none !important;",
|
|
1615
|
-
"}"
|
|
1616
|
-
].join("\n"), et = [
|
|
1616
|
+
].join("\n"), tt = [
|
|
1617
1617
|
"[data-flemo-held-arrival] {",
|
|
1618
1618
|
" display: none !important;",
|
|
1619
1619
|
"}"
|
|
1620
|
-
].join("\n"),
|
|
1621
|
-
let n =
|
|
1620
|
+
].join("\n"), G = (e, t) => {
|
|
1621
|
+
let n = B[t];
|
|
1622
1622
|
if (n === "self") return !1;
|
|
1623
|
-
let r = e.variants[t], i =
|
|
1623
|
+
let r = e.variants[t], i = Oe(r.options), a = ke(r.options);
|
|
1624
1624
|
if (i <= 0 && a <= 0) return !1;
|
|
1625
|
-
let o =
|
|
1625
|
+
let o = H(n === "initial" ? e.initial : e.variants[n].value), s = H(r.value);
|
|
1626
1626
|
return o.length > 0 || s.length > 0;
|
|
1627
|
-
},
|
|
1628
|
-
function
|
|
1627
|
+
}, nt = "data-flemo";
|
|
1628
|
+
function rt() {
|
|
1629
1629
|
if (f()) return;
|
|
1630
|
-
let e =
|
|
1631
|
-
t || (t = document.createElement("style"), t.setAttribute(
|
|
1630
|
+
let e = $e(L.values(), R.values(), z.values()), t = document.head.querySelector(`style[${nt}]`);
|
|
1631
|
+
t || (t = document.createElement("style"), t.setAttribute(nt, ""), document.head.appendChild(t)), t.textContent !== e && (t.textContent = e);
|
|
1632
1632
|
}
|
|
1633
1633
|
//#endregion
|
|
1634
1634
|
//#region src/transition/registerTransitionDefinitions.ts
|
|
1635
|
-
var
|
|
1635
|
+
var it = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Map(), st = (e, t) => {
|
|
1636
1636
|
e.set(t, (e.get(t) ?? 0) + 1);
|
|
1637
|
-
},
|
|
1637
|
+
}, ct = (e, t) => {
|
|
1638
1638
|
let n = (e.get(t) ?? 1) - 1;
|
|
1639
1639
|
return n <= 0 ? (e.delete(t), !0) : (e.set(t, n), !1);
|
|
1640
1640
|
};
|
|
1641
|
-
function
|
|
1642
|
-
for (let t of e)
|
|
1643
|
-
for (let e of t)
|
|
1644
|
-
for (let e of n)
|
|
1645
|
-
return
|
|
1646
|
-
for (let t of e)
|
|
1647
|
-
for (let e of t)
|
|
1648
|
-
for (let e of n)
|
|
1649
|
-
|
|
1641
|
+
function lt(e, t, n = []) {
|
|
1642
|
+
for (let t of e) L.set(t.name, t), st(it, t.name);
|
|
1643
|
+
for (let e of t) R.set(e.name, e), st(at, e.name);
|
|
1644
|
+
for (let e of n) z.set(e.name, e), st(ot, e.name);
|
|
1645
|
+
return rt(), () => {
|
|
1646
|
+
for (let t of e) ct(it, t.name) && L.delete(t.name);
|
|
1647
|
+
for (let e of t) ct(at, e.name) && R.delete(e.name);
|
|
1648
|
+
for (let e of n) ct(ot, e.name) && z.delete(e.name);
|
|
1649
|
+
rt();
|
|
1650
1650
|
};
|
|
1651
1651
|
}
|
|
1652
1652
|
//#endregion
|
|
1653
1653
|
//#region src/transition/enteringInitialStyle.ts
|
|
1654
|
-
function
|
|
1654
|
+
function ut(e) {
|
|
1655
1655
|
let { initial: t, isActive: n, status: r } = e;
|
|
1656
1656
|
if (!n || r !== "PUSHING" && r !== "REPLACING") return {};
|
|
1657
1657
|
let i = {};
|
|
@@ -1659,10 +1659,10 @@ function lt(e) {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
//#endregion
|
|
1661
1661
|
//#region src/transition/settleScrub.ts
|
|
1662
|
-
var
|
|
1662
|
+
var dt = () => ({
|
|
1663
1663
|
request: (e) => requestAnimationFrame(e),
|
|
1664
1664
|
cancel: (e) => cancelAnimationFrame(e)
|
|
1665
|
-
}),
|
|
1665
|
+
}), ft = (e) => e.replace(/-([a-z])/g, (e, t) => t.toUpperCase()), pt = ((e = dt()) => {
|
|
1666
1666
|
let t = /* @__PURE__ */ new Map(), n = null, r = () => {
|
|
1667
1667
|
t.size === 0 && n !== null && (e.cancel(n), n = null);
|
|
1668
1668
|
}, i = (e, n) => {
|
|
@@ -1695,7 +1695,7 @@ var ut = () => ({
|
|
|
1695
1695
|
if (typeof r.animate != "function") return null;
|
|
1696
1696
|
i(r, "current");
|
|
1697
1697
|
let l = {};
|
|
1698
|
-
for (let e of o) l[
|
|
1698
|
+
for (let e of o) l[ft(e.property)] = e.value;
|
|
1699
1699
|
let u;
|
|
1700
1700
|
try {
|
|
1701
1701
|
u = r.animate([l], {
|
|
@@ -1725,96 +1725,100 @@ var ut = () => ({
|
|
|
1725
1725
|
takeover: (e) => i(e, "current"),
|
|
1726
1726
|
cancel: (e) => i(e, "drop")
|
|
1727
1727
|
};
|
|
1728
|
-
})(),
|
|
1728
|
+
})(), mt = "flemo:motion-driver", ht = "flemo:motion-driver-force", gt = !1, _t = () => {
|
|
1729
1729
|
try {
|
|
1730
1730
|
try {
|
|
1731
|
-
typeof localStorage < "u" && localStorage.removeItem(
|
|
1731
|
+
typeof localStorage < "u" && localStorage.removeItem(ht);
|
|
1732
1732
|
} catch {}
|
|
1733
1733
|
if (typeof sessionStorage > "u") return null;
|
|
1734
|
-
let e = sessionStorage.getItem(
|
|
1735
|
-
|
|
1734
|
+
let e = sessionStorage.getItem(ht);
|
|
1735
|
+
if (e === null) return null;
|
|
1736
|
+
let [t, n] = e.split("@"), r = Number(n);
|
|
1737
|
+
return (t === "css" || t === "raf") && n !== void 0 && Number.isFinite(r) && Math.abs(Date.now() - r) < 864e5 ? (!gt && typeof console < "u" && (gt = !0, console.warn(`[flemo] motion driver pinned to "${t}" via sessionStorage ${ht}; remove the key to restore automatic selection (pins expire after 24h).`)), t) : (sessionStorage.removeItem(ht), null);
|
|
1736
1738
|
} catch {
|
|
1737
1739
|
return null;
|
|
1738
1740
|
}
|
|
1739
|
-
},
|
|
1741
|
+
}, vt = () => ({
|
|
1740
1742
|
read: () => {
|
|
1741
1743
|
try {
|
|
1742
|
-
return typeof localStorage < "u" ? localStorage.getItem(
|
|
1744
|
+
return typeof localStorage < "u" ? localStorage.getItem(mt) : null;
|
|
1743
1745
|
} catch {
|
|
1744
1746
|
return null;
|
|
1745
1747
|
}
|
|
1746
1748
|
},
|
|
1747
1749
|
write: (e) => {
|
|
1748
1750
|
try {
|
|
1749
|
-
typeof localStorage < "u" && localStorage.setItem(
|
|
1751
|
+
typeof localStorage < "u" && localStorage.setItem(mt, e);
|
|
1750
1752
|
} catch {}
|
|
1751
1753
|
}
|
|
1752
|
-
}),
|
|
1753
|
-
let
|
|
1754
|
-
|
|
1755
|
-
let
|
|
1754
|
+
}), yt = 30, bt = 2, xt = 2, St = () => typeof navigator < "u" && !!navigator.userAgentData, Ct = (e = vt(), t = !1, n = !0) => {
|
|
1755
|
+
let r = n && e.read() === "css", i = r;
|
|
1756
|
+
r &&= !1;
|
|
1757
|
+
let a = 0, o = 0, s = [];
|
|
1756
1758
|
return {
|
|
1757
1759
|
playerAllowed: () => {
|
|
1758
|
-
let e =
|
|
1759
|
-
return e ? e === "raf" : t && !
|
|
1760
|
+
let e = _t();
|
|
1761
|
+
return e ? e === "raf" : t && !r;
|
|
1760
1762
|
},
|
|
1761
1763
|
beginRun: () => {
|
|
1762
|
-
|
|
1764
|
+
o = 0, s = [];
|
|
1763
1765
|
},
|
|
1764
1766
|
reportGap: (e) => {
|
|
1765
|
-
|
|
1767
|
+
s.push(e), e >= yt && (o += 1);
|
|
1766
1768
|
},
|
|
1767
1769
|
endRun: () => {
|
|
1768
|
-
let t =
|
|
1769
|
-
if (
|
|
1770
|
-
|
|
1771
|
-
|
|
1770
|
+
let t = o >= bt;
|
|
1771
|
+
if (t && (a += 1), n) {
|
|
1772
|
+
if (i) {
|
|
1773
|
+
i = !1, t ? r = !0 : e.write("raf");
|
|
1774
|
+
return;
|
|
1775
|
+
}
|
|
1776
|
+
t && a >= xt && !r && (r = !0, e.write("css"));
|
|
1772
1777
|
}
|
|
1773
|
-
t && (i += 1, i >= bt && !n && (n = !0, e.write("css")));
|
|
1774
1778
|
},
|
|
1775
1779
|
stats: () => ({
|
|
1776
|
-
runGaps: [...
|
|
1777
|
-
strikes:
|
|
1778
|
-
demoted:
|
|
1780
|
+
runGaps: [...s],
|
|
1781
|
+
strikes: a,
|
|
1782
|
+
demoted: r
|
|
1779
1783
|
})
|
|
1780
1784
|
};
|
|
1781
|
-
})(),
|
|
1782
|
-
let n =
|
|
1783
|
-
n || (n = /* @__PURE__ */ new Set(),
|
|
1784
|
-
},
|
|
1785
|
-
if (
|
|
1786
|
-
let n =
|
|
1785
|
+
}, wt = St() ? Ct() : Ct(vt(), !0, !1), Tt = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, Et = /* @__PURE__ */ new WeakMap(), K = (e, t) => {
|
|
1786
|
+
let n = Et.get(e);
|
|
1787
|
+
n || (n = /* @__PURE__ */ new Set(), Et.set(e, n)), n.add(t);
|
|
1788
|
+
}, q = (e, t) => {
|
|
1789
|
+
if (pt.cancel(e), e.style.transition = "", e.style.removeProperty("animation-delay"), t) {
|
|
1790
|
+
let n = Et.get(e);
|
|
1787
1791
|
for (let r of t) e.style.removeProperty(r), n?.delete(r);
|
|
1788
1792
|
return;
|
|
1789
1793
|
}
|
|
1790
|
-
let n =
|
|
1794
|
+
let n = Et.get(e);
|
|
1791
1795
|
if (n && n.size > 0) {
|
|
1792
1796
|
for (let t of n) e.style.removeProperty(t);
|
|
1793
1797
|
n.clear();
|
|
1794
1798
|
return;
|
|
1795
1799
|
}
|
|
1796
1800
|
e.style.removeProperty("transform"), e.style.removeProperty("opacity");
|
|
1797
|
-
},
|
|
1798
|
-
if (!
|
|
1799
|
-
let r = e, i =
|
|
1801
|
+
}, J = (e, t, n = {}) => {
|
|
1802
|
+
if (!Tt(e)) return Promise.resolve();
|
|
1803
|
+
let r = e, i = H(t);
|
|
1800
1804
|
if (i.length === 0) return Promise.resolve();
|
|
1801
|
-
let a = typeof n.duration == "number" ? n.duration : 0, o = typeof n.delay == "number" && n.delay > 0 ? n.delay : 0, s =
|
|
1805
|
+
let a = typeof n.duration == "number" ? n.duration : 0, o = typeof n.delay == "number" && n.delay > 0 ? n.delay : 0, s = Ge(n.ease);
|
|
1802
1806
|
if (a <= 0 && o <= 0) {
|
|
1803
|
-
|
|
1804
|
-
for (let e of i) r.style.setProperty(e.property, e.value),
|
|
1807
|
+
pt.takeover(r), r.style.transition = "none";
|
|
1808
|
+
for (let e of i) r.style.setProperty(e.property, e.value), K(r, e.property);
|
|
1805
1809
|
return Promise.resolve();
|
|
1806
1810
|
}
|
|
1807
|
-
let c =
|
|
1811
|
+
let c = wt.playerAllowed() ? pt.settle(r, i, {
|
|
1808
1812
|
durationMs: a * 1e3,
|
|
1809
1813
|
delayMs: o * 1e3,
|
|
1810
1814
|
easing: s
|
|
1811
1815
|
}, (e) => {
|
|
1812
|
-
r.style.setProperty(e.property, e.value),
|
|
1816
|
+
r.style.setProperty(e.property, e.value), K(r, e.property);
|
|
1813
1817
|
}) : null;
|
|
1814
1818
|
if (c) return c;
|
|
1815
1819
|
let l = i.map((e) => `${e.property} ${a}s ${s} ${o}s`).join(", ");
|
|
1816
1820
|
r.style.transition = l, r.offsetWidth;
|
|
1817
|
-
for (let e of i) r.style.setProperty(e.property, e.value),
|
|
1821
|
+
for (let e of i) r.style.setProperty(e.property, e.value), K(r, e.property);
|
|
1818
1822
|
return new Promise((e) => {
|
|
1819
1823
|
let t = !1, n = () => {
|
|
1820
1824
|
t || (t = !0, r.removeEventListener("transitionend", i), e());
|
|
@@ -1823,12 +1827,12 @@ var ut = () => ({
|
|
|
1823
1827
|
};
|
|
1824
1828
|
r.addEventListener("transitionend", i), setTimeout(n, (a + o) * 1e3 + 60);
|
|
1825
1829
|
});
|
|
1826
|
-
},
|
|
1827
|
-
function
|
|
1830
|
+
}, Dt = "data-flemo-held-arrival";
|
|
1831
|
+
function Ot(e) {
|
|
1828
1832
|
if (typeof MutationObserver > "u") return () => {};
|
|
1829
1833
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = (t) => {
|
|
1830
1834
|
let n = t instanceof Element ? t : t.parentElement;
|
|
1831
|
-
return !n || n === e
|
|
1835
|
+
return !n || n === e || n.closest(`[data-flemo-part-name], [${Dt}]`) !== null;
|
|
1832
1836
|
}, 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), {
|
|
1833
1837
|
glass: t,
|
|
1834
1838
|
latest: n,
|
|
@@ -1858,12 +1862,12 @@ function wt(e) {
|
|
|
1858
1862
|
if (i.type === "childList") {
|
|
1859
1863
|
for (let e of Array.from(i.removedNodes)) if (!n.has(e)) {
|
|
1860
1864
|
if (e instanceof Element && t.delete(e)) {
|
|
1861
|
-
e.removeAttribute(
|
|
1865
|
+
e.removeAttribute(Dt);
|
|
1862
1866
|
continue;
|
|
1863
1867
|
}
|
|
1864
1868
|
(e instanceof Element || e.nodeType === Node.TEXT_NODE) && l(i.target).removed.push(e);
|
|
1865
1869
|
}
|
|
1866
|
-
for (let e of Array.from(i.addedNodes)) r.delete(e) || e instanceof Element && (e.setAttribute(
|
|
1870
|
+
for (let e of Array.from(i.addedNodes)) r.delete(e) || e instanceof Element && (e.setAttribute(Dt, ""), t.add(e), l(i.target).added.push(e));
|
|
1867
1871
|
}
|
|
1868
1872
|
}
|
|
1869
1873
|
for (let [e, t] of u) {
|
|
@@ -1898,7 +1902,7 @@ function wt(e) {
|
|
|
1898
1902
|
c.disconnect();
|
|
1899
1903
|
for (let e of n) e.parentNode?.removeChild(e);
|
|
1900
1904
|
n.clear();
|
|
1901
|
-
for (let e of t) e.removeAttribute(
|
|
1905
|
+
for (let e of t) e.removeAttribute(Dt);
|
|
1902
1906
|
t.clear();
|
|
1903
1907
|
for (let [e, t] of i) e.isConnected && (e.nodeValue = t.latest);
|
|
1904
1908
|
i.clear();
|
|
@@ -1907,8 +1911,35 @@ function wt(e) {
|
|
|
1907
1911
|
};
|
|
1908
1912
|
}
|
|
1909
1913
|
//#endregion
|
|
1914
|
+
//#region src/core/engine/compositorWarmUp.ts
|
|
1915
|
+
var kt = "data-flemo-warm", At = 3e3, jt = [{ transform: "translate3d(0, 0, 0)" }, { transform: "translate3d(1px, 0, 0)" }], Mt = {
|
|
1916
|
+
duration: 500,
|
|
1917
|
+
iterations: Infinity,
|
|
1918
|
+
direction: "alternate",
|
|
1919
|
+
easing: "linear"
|
|
1920
|
+
}, Nt = "position:fixed;top:0;left:0;width:1px;height:1px;pointer-events:none;opacity:0.02;background:#888;will-change:transform;", Y = null, Pt = null, X = 0, Ft = () => {
|
|
1921
|
+
X = 0, Pt?.cancel(), Pt = null, Y?.remove(), Y = null;
|
|
1922
|
+
};
|
|
1923
|
+
function It() {
|
|
1924
|
+
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function") return () => {};
|
|
1925
|
+
if (X += 1, !Y) {
|
|
1926
|
+
Y = document.createElement("div"), Y.setAttribute(kt, ""), Y.setAttribute("aria-hidden", "true"), Y.setAttribute("style", Nt), document.body.appendChild(Y);
|
|
1927
|
+
try {
|
|
1928
|
+
Pt = Y.animate(jt, Mt);
|
|
1929
|
+
} catch {
|
|
1930
|
+
Pt = null;
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
let e = !1, t = setTimeout(() => {
|
|
1934
|
+
e || (e = !0, --X, X <= 0 && Ft());
|
|
1935
|
+
}, At);
|
|
1936
|
+
return () => {
|
|
1937
|
+
e || (e = !0, clearTimeout(t), --X, X <= 0 && Ft());
|
|
1938
|
+
};
|
|
1939
|
+
}
|
|
1940
|
+
//#endregion
|
|
1910
1941
|
//#region src/transition/cubicBezier.ts
|
|
1911
|
-
var
|
|
1942
|
+
var Lt = (e, t, n, r) => {
|
|
1912
1943
|
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;
|
|
1913
1944
|
return (e) => {
|
|
1914
1945
|
if (e <= 0) return 0;
|
|
@@ -1920,7 +1951,7 @@ var Tt = (e, t, n, r) => {
|
|
|
1920
1951
|
}
|
|
1921
1952
|
return a((t + n) / 2);
|
|
1922
1953
|
};
|
|
1923
|
-
},
|
|
1954
|
+
}, Rt = (e) => e, zt = {
|
|
1924
1955
|
ease: [
|
|
1925
1956
|
.25,
|
|
1926
1957
|
.1,
|
|
@@ -1975,20 +2006,20 @@ var Tt = (e, t, n, r) => {
|
|
|
1975
2006
|
.66,
|
|
1976
2007
|
-.56
|
|
1977
2008
|
]
|
|
1978
|
-
},
|
|
2009
|
+
}, Bt = (e) => {
|
|
1979
2010
|
if (Array.isArray(e)) {
|
|
1980
2011
|
if (e.length === 4 && e.every((e) => typeof e == "number")) {
|
|
1981
2012
|
let [t, n, r, i] = e;
|
|
1982
|
-
return
|
|
2013
|
+
return Lt(t, n, r, i);
|
|
1983
2014
|
}
|
|
1984
|
-
return
|
|
2015
|
+
return Rt;
|
|
1985
2016
|
}
|
|
1986
|
-
return typeof e == "string" ? e === "linear" ?
|
|
1987
|
-
},
|
|
2017
|
+
return typeof e == "string" ? e === "linear" ? Rt : Lt(...zt[e] ?? zt.ease) : Lt(...zt.ease);
|
|
2018
|
+
}, Vt = 1 / 255, Ht = 400, Ut = 24, Wt = /* @__PURE__ */ new Set([
|
|
1988
2019
|
"x",
|
|
1989
2020
|
"y",
|
|
1990
2021
|
"opacity"
|
|
1991
|
-
]),
|
|
2022
|
+
]), Gt = (e, t, n) => {
|
|
1992
2023
|
if (!e || typeof e != "object") return;
|
|
1993
2024
|
let r = e[t];
|
|
1994
2025
|
if (r === void 0) return;
|
|
@@ -2006,31 +2037,31 @@ var Tt = (e, t, n, r) => {
|
|
|
2006
2037
|
return Number.isNaN(e) ? null : e;
|
|
2007
2038
|
}
|
|
2008
2039
|
return null;
|
|
2009
|
-
},
|
|
2040
|
+
}, Kt = (e, t, n) => {
|
|
2010
2041
|
let r = /* @__PURE__ */ new Set();
|
|
2011
2042
|
for (let t of [e.from, e.to]) if (!(!t || typeof t != "object")) for (let e of Object.keys(t)) r.add(e);
|
|
2012
2043
|
if (r.size === 0) return null;
|
|
2013
2044
|
let i = Infinity;
|
|
2014
2045
|
for (let a of r) {
|
|
2015
|
-
if (!
|
|
2016
|
-
let r =
|
|
2046
|
+
if (!Wt.has(a)) return null;
|
|
2047
|
+
let r = Gt(e.from, a, t), o = Gt(e.to, a, t);
|
|
2017
2048
|
if (r === null || o === null || r === void 0 || o === void 0) return null;
|
|
2018
2049
|
let s = Math.abs(o - r);
|
|
2019
2050
|
if (s === 0) continue;
|
|
2020
|
-
let c = a === "opacity" ?
|
|
2051
|
+
let c = a === "opacity" ? Vt : 1 / Math.max(1, n);
|
|
2021
2052
|
i = Math.min(i, c / s);
|
|
2022
2053
|
}
|
|
2023
2054
|
return !Number.isFinite(i) || i <= 0 || i >= 1 ? null : i;
|
|
2024
|
-
},
|
|
2055
|
+
}, qt = (e, t, n) => {
|
|
2025
2056
|
if (e.duration <= 0) return null;
|
|
2026
|
-
let r =
|
|
2057
|
+
let r = Kt(e, t, n);
|
|
2027
2058
|
if (r === null) return null;
|
|
2028
|
-
let i =
|
|
2029
|
-
for (let e =
|
|
2059
|
+
let i = Bt(e.ease), a = Ht;
|
|
2060
|
+
for (let e = Ht; e >= 0 && !(Math.abs(1 - i(e / Ht)) > r); --e) a = e;
|
|
2030
2061
|
if (a === 0) return null;
|
|
2031
|
-
let o = (e.delay + e.duration * (a /
|
|
2032
|
-
return (e.delay + e.duration) * 1e3 - o <
|
|
2033
|
-
},
|
|
2062
|
+
let o = (e.delay + e.duration * (a / Ht)) * 1e3;
|
|
2063
|
+
return (e.delay + e.duration) * 1e3 - o < Ut ? null : o;
|
|
2064
|
+
}, Jt = [
|
|
2034
2065
|
"x",
|
|
2035
2066
|
"y",
|
|
2036
2067
|
"z",
|
|
@@ -2041,7 +2072,7 @@ var Tt = (e, t, n, r) => {
|
|
|
2041
2072
|
"rotateX",
|
|
2042
2073
|
"rotateY",
|
|
2043
2074
|
"rotateZ"
|
|
2044
|
-
],
|
|
2075
|
+
], Yt = new Set(Jt), Xt = {
|
|
2045
2076
|
x: 0,
|
|
2046
2077
|
y: 0,
|
|
2047
2078
|
z: 0,
|
|
@@ -2052,7 +2083,7 @@ var Tt = (e, t, n, r) => {
|
|
|
2052
2083
|
rotateX: 0,
|
|
2053
2084
|
rotateY: 0,
|
|
2054
2085
|
rotateZ: 0
|
|
2055
|
-
},
|
|
2086
|
+
}, Zt = (e, t) => {
|
|
2056
2087
|
if (typeof t == "number") return {
|
|
2057
2088
|
value: t,
|
|
2058
2089
|
unit: e === "x" || e === "y" || e === "z" ? "px" : ""
|
|
@@ -2071,26 +2102,26 @@ var Tt = (e, t, n, r) => {
|
|
|
2071
2102
|
value: i,
|
|
2072
2103
|
unit: a === "" && i === 0 ? "px" : a
|
|
2073
2104
|
};
|
|
2074
|
-
},
|
|
2075
|
-
let n = e.match(
|
|
2076
|
-
if (n.length !== r.length || e.replace(
|
|
2105
|
+
}, Qt = /-?\d*\.?\d+/g, $t = (e, t) => {
|
|
2106
|
+
let n = e.match(Qt) ?? [], r = t.match(Qt) ?? [];
|
|
2107
|
+
if (n.length !== r.length || e.replace(Qt, " ") !== t.replace(Qt, " ")) return null;
|
|
2077
2108
|
let i = n.map(Number), a = r.map(Number);
|
|
2078
2109
|
return (t) => {
|
|
2079
2110
|
let n = 0;
|
|
2080
|
-
return e.replace(
|
|
2111
|
+
return e.replace(Qt, () => {
|
|
2081
2112
|
let e = n++, r = i[e] + (a[e] - i[e]) * t;
|
|
2082
2113
|
return `${Math.round(r * 1e3) / 1e3}`;
|
|
2083
2114
|
});
|
|
2084
2115
|
};
|
|
2085
|
-
},
|
|
2086
|
-
let n = new Set([...
|
|
2116
|
+
}, en = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), tn = (e) => typeof e == "object" && !!e && !Array.isArray(e), nn = (e) => tn(e) ? Object.keys(e) : [], rn = (e, t) => tn(e) ? e[t] : void 0, an = (e, t) => {
|
|
2117
|
+
let n = /* @__PURE__ */ new Set([...nn(e.from), ...nn(e.to)]), r = [], i = null, a = [], o = [];
|
|
2087
2118
|
for (let s of n) {
|
|
2088
|
-
let n =
|
|
2089
|
-
if (
|
|
2119
|
+
let n = rn(e.from, s), c = rn(e.to, s);
|
|
2120
|
+
if (Yt.has(s)) {
|
|
2090
2121
|
let e = s, i = {
|
|
2091
|
-
value:
|
|
2122
|
+
value: Xt[e],
|
|
2092
2123
|
unit: e === "x" || e === "y" || e === "z" ? "px" : ""
|
|
2093
|
-
}, a = n === void 0 ? i :
|
|
2124
|
+
}, a = n === void 0 ? i : Zt(e, n), o = c === void 0 ? i : Zt(e, c);
|
|
2094
2125
|
if (!a || !o || a.unit !== o.unit && a.value !== 0 && o.value !== 0) return null;
|
|
2095
2126
|
let l = a.value === 0 && a.unit !== o.unit ? o.unit : a.unit, u = l === "%", d = 0;
|
|
2096
2127
|
u && t && (d = e === "y" ? t.offsetHeight / 100 : t.offsetWidth / 100), r.push({
|
|
@@ -2121,15 +2152,15 @@ var Tt = (e, t, n, r) => {
|
|
|
2121
2152
|
if (typeof l != "string" || typeof u != "string") return null;
|
|
2122
2153
|
if (l === u) {
|
|
2123
2154
|
o.push({
|
|
2124
|
-
property:
|
|
2155
|
+
property: en(s),
|
|
2125
2156
|
value: l
|
|
2126
2157
|
});
|
|
2127
2158
|
continue;
|
|
2128
2159
|
}
|
|
2129
|
-
let d =
|
|
2160
|
+
let d = $t(l, u);
|
|
2130
2161
|
if (!d) return null;
|
|
2131
2162
|
a.push({
|
|
2132
|
-
property:
|
|
2163
|
+
property: en(s),
|
|
2133
2164
|
mix: d
|
|
2134
2165
|
});
|
|
2135
2166
|
}
|
|
@@ -2139,46 +2170,46 @@ var Tt = (e, t, n, r) => {
|
|
|
2139
2170
|
strings: a,
|
|
2140
2171
|
constants: o
|
|
2141
2172
|
};
|
|
2142
|
-
},
|
|
2173
|
+
}, on = 1, sn = (e, t, n, r) => {
|
|
2143
2174
|
let i = 0, a = 0, o = !1, s = [], c = !0;
|
|
2144
|
-
for (let l of
|
|
2175
|
+
for (let l of Jt) {
|
|
2145
2176
|
let u = e.find((e) => e.prop === l);
|
|
2146
2177
|
if (!u) continue;
|
|
2147
2178
|
let d = u.from.value + (u.to.value - u.from.value) * t;
|
|
2148
2179
|
if (u.from.unit === "%" && (d *= u.percentBase), l === "x" || l === "y") {
|
|
2149
|
-
let e = l === "x" ? r.x : r.y, t = (e === null || Math.abs(d - e) * n >=
|
|
2180
|
+
let e = l === "x" ? r.x : r.y, t = (e === null || Math.abs(d - e) * n >= on) && n > 0 ? Math.round(d * n) / n : Math.round(d * 1e3) / 1e3;
|
|
2150
2181
|
l === "x" ? (r.x = d, i = t) : (r.y = d, a = t), o = !0, t !== 0 && (c = !1);
|
|
2151
2182
|
continue;
|
|
2152
2183
|
}
|
|
2153
|
-
let f =
|
|
2184
|
+
let f = Xt[l];
|
|
2154
2185
|
d !== f && (c = !1), l === "z" ? s.push(`translateZ(${d}px)`) : l === "scale" ? s.push(`scale(${d})`) : l === "scaleX" ? s.push(`scaleX(${d})`) : l === "scaleY" ? s.push(`scaleY(${d})`) : l === "rotate" || l === "rotateZ" ? s.push(`rotate(${d}deg)`) : l === "rotateX" ? s.push(`rotateX(${d}deg)`) : l === "rotateY" && s.push(`rotateY(${d}deg)`);
|
|
2155
2186
|
}
|
|
2156
2187
|
return !o && s.length === 0 ? "" : c ? "none" : [...o ? [`translate3d(${i}px, ${a}px, 0)`] : [], ...s].join(" ");
|
|
2157
|
-
},
|
|
2188
|
+
}, cn = (e) => e.replace(/-([a-z])/g, (e, t) => t.toUpperCase()), ln = (e) => {
|
|
2158
2189
|
let t = {};
|
|
2159
|
-
for (let n of
|
|
2190
|
+
for (let n of H(e)) t[cn(n.property)] = n.value;
|
|
2160
2191
|
return t;
|
|
2161
|
-
},
|
|
2192
|
+
}, un = (e, t) => {
|
|
2162
2193
|
if (typeof e.animate != "function") return null;
|
|
2163
2194
|
try {
|
|
2164
|
-
let n = e.animate([
|
|
2195
|
+
let n = e.animate([ln(t.from), ln(t.to)], {
|
|
2165
2196
|
duration: Math.max(0, t.duration * 1e3),
|
|
2166
2197
|
delay: Math.max(0, t.delay * 1e3),
|
|
2167
|
-
easing:
|
|
2198
|
+
easing: Ge(t.ease),
|
|
2168
2199
|
fill: "both"
|
|
2169
2200
|
});
|
|
2170
2201
|
return n.pause(), n.currentTime = 0, n;
|
|
2171
2202
|
} catch {
|
|
2172
2203
|
return null;
|
|
2173
2204
|
}
|
|
2174
|
-
},
|
|
2205
|
+
}, dn = 1e3 / 60, fn = 100, pn = () => ({
|
|
2175
2206
|
request: (e) => requestAnimationFrame(e),
|
|
2176
2207
|
cancel: (e) => cancelAnimationFrame(e),
|
|
2177
2208
|
devicePixelRatio: () => typeof window < "u" && window.devicePixelRatio || 1
|
|
2178
|
-
}),
|
|
2209
|
+
}), mn = ((e = pn()) => {
|
|
2179
2210
|
let t = /* @__PURE__ */ new Map(), n = {
|
|
2180
2211
|
join: (n, r) => {
|
|
2181
|
-
let i =
|
|
2212
|
+
let i = an(r.motion, r.element), s = i ? null : un(r.element, r.motion);
|
|
2182
2213
|
if (!i && !s) return null;
|
|
2183
2214
|
let c = t.get(n);
|
|
2184
2215
|
c || (c = {
|
|
@@ -2199,14 +2230,14 @@ var Tt = (e, t, n, r) => {
|
|
|
2199
2230
|
y: null
|
|
2200
2231
|
}
|
|
2201
2232
|
};
|
|
2202
|
-
if (c.tracks.push(l), l.element.style.animation = "none",
|
|
2203
|
-
i.transforms.length > 0 &&
|
|
2204
|
-
for (let e of i.strings)
|
|
2205
|
-
for (let e of i.constants)
|
|
2233
|
+
if (c.tracks.push(l), l.element.style.animation = "none", K(l.element, "animation"), i) {
|
|
2234
|
+
i.transforms.length > 0 && K(l.element, "transform"), i.opacity && K(l.element, "opacity");
|
|
2235
|
+
for (let e of i.strings) K(l.element, e.property);
|
|
2236
|
+
for (let e of i.constants) K(l.element, e.property);
|
|
2206
2237
|
a(l, 0);
|
|
2207
2238
|
}
|
|
2208
|
-
return r.role === "active" && !c.started && (c.started = !0,
|
|
2209
|
-
l.detached = !0, l.scrub?.cancel(),
|
|
2239
|
+
return r.role === "active" && !c.started && (c.started = !0, wt.beginRun(), o(n, c)), () => {
|
|
2240
|
+
l.detached = !0, l.scrub?.cancel(), q(l.element);
|
|
2210
2241
|
let r = t.get(n);
|
|
2211
2242
|
r && (r.tracks = r.tracks.filter((e) => e !== l), r.tracks.length === 0 && (r.frameHandle !== null && e.cancel(r.frameHandle), t.delete(n)));
|
|
2212
2243
|
};
|
|
@@ -2221,13 +2252,13 @@ var Tt = (e, t, n, r) => {
|
|
|
2221
2252
|
}
|
|
2222
2253
|
}, r = /* @__PURE__ */ new WeakMap(), i = (e) => {
|
|
2223
2254
|
let t = r.get(e);
|
|
2224
|
-
return t || (t =
|
|
2255
|
+
return t || (t = Bt(e.motion.ease), r.set(e, t)), t;
|
|
2225
2256
|
};
|
|
2226
2257
|
function a(t, n) {
|
|
2227
2258
|
let { element: r, parsed: i } = t;
|
|
2228
2259
|
if (!(!i || !r.isConnected)) {
|
|
2229
2260
|
if (i.transforms.length > 0) {
|
|
2230
|
-
let a =
|
|
2261
|
+
let a = sn(i.transforms, n, e.devicePixelRatio(), t.snapMemory);
|
|
2231
2262
|
a !== "" && (r.style.transform = a);
|
|
2232
2263
|
}
|
|
2233
2264
|
if (i.opacity) {
|
|
@@ -2247,7 +2278,7 @@ var Tt = (e, t, n, r) => {
|
|
|
2247
2278
|
let c = r.startTime ?? s;
|
|
2248
2279
|
if (r.lastTime !== null) {
|
|
2249
2280
|
let e = s - r.lastTime;
|
|
2250
|
-
|
|
2281
|
+
wt.reportGap(e), n.onFrameGap?.(e), e >= fn && (c += e - dn);
|
|
2251
2282
|
}
|
|
2252
2283
|
r.startTime = c, r.lastTime = s;
|
|
2253
2284
|
let l = !0;
|
|
@@ -2263,14 +2294,14 @@ var Tt = (e, t, n, r) => {
|
|
|
2263
2294
|
a(e, i(e)(o)), o >= 1 ? (e.completed = !0, e.onComplete?.()) : l = !1;
|
|
2264
2295
|
}
|
|
2265
2296
|
if (l) {
|
|
2266
|
-
|
|
2297
|
+
wt.endRun(), t.delete(e);
|
|
2267
2298
|
return;
|
|
2268
2299
|
}
|
|
2269
2300
|
o(e, r);
|
|
2270
2301
|
}
|
|
2271
2302
|
return n;
|
|
2272
2303
|
})();
|
|
2273
|
-
|
|
2304
|
+
mn.onFrameGap = (e) => {
|
|
2274
2305
|
if (typeof window < "u") {
|
|
2275
2306
|
let t = window.__flemoPlayerGaps ??= [];
|
|
2276
2307
|
t.push(Math.round(e * 10) / 10), t.length > 600 && t.splice(0, t.length - 600);
|
|
@@ -2278,23 +2309,23 @@ tn.onFrameGap = (e) => {
|
|
|
2278
2309
|
};
|
|
2279
2310
|
//#endregion
|
|
2280
2311
|
//#region src/core/engine/types.ts
|
|
2281
|
-
var
|
|
2312
|
+
var hn = "data-flemo-skip-animation", Z = () => {}, gn = 400, _n = 100, vn = "data-flemo-part-name", yn = (e) => {
|
|
2282
2313
|
let t = e.parentElement ?? e;
|
|
2283
|
-
return Array.from(t.querySelectorAll(`[${
|
|
2314
|
+
return Array.from(t.querySelectorAll(`[${vn}]`)).filter((n) => {
|
|
2284
2315
|
let r = n.closest("[data-flemo-screen]");
|
|
2285
2316
|
return !r || r === e || !t.contains(r);
|
|
2286
2317
|
});
|
|
2287
|
-
},
|
|
2318
|
+
}, bn = (e, t) => {
|
|
2288
2319
|
let [n, r] = t.split("-");
|
|
2289
|
-
return
|
|
2290
|
-
},
|
|
2320
|
+
return yn(e).filter((e) => e.getAttribute("data-flemo-status") === n && e.getAttribute("data-flemo-active") === r);
|
|
2321
|
+
}, xn = 4, Sn = (e) => `${Math.round(e * 1e3) / 1e3}s`, Cn = (e) => {
|
|
2291
2322
|
let { element: t, expectedName: n, motion: r } = e, i = null, a = !1, o = (e) => {
|
|
2292
|
-
a = !0, t.style.animation = "none", t.offsetWidth, t.style.removeProperty("animation"), e.mode === "clear" ? t.style.removeProperty("animation-delay") : e.mode === "set" && (t.style.animationDelay =
|
|
2323
|
+
a = !0, t.style.animation = "none", t.offsetWidth, t.style.removeProperty("animation"), e.mode === "clear" ? t.style.removeProperty("animation-delay") : e.mode === "set" && (t.style.animationDelay = Sn(e.seconds)), a = !1;
|
|
2293
2324
|
}, s = (e) => {
|
|
2294
2325
|
a || e.target !== t || e.animationName !== n || i === null && (i = performance.now());
|
|
2295
2326
|
}, c = (s) => {
|
|
2296
2327
|
if (a || s.target !== t || s.animationName !== n) return;
|
|
2297
|
-
if (!e.isLive() || e.budgetUsed() >=
|
|
2328
|
+
if (!e.isLive() || e.budgetUsed() >= xn) {
|
|
2298
2329
|
e.onTerminal();
|
|
2299
2330
|
return;
|
|
2300
2331
|
}
|
|
@@ -2324,12 +2355,12 @@ var nn = "data-flemo-skip-animation", $ = () => {}, rn = "data-flemo-part-name",
|
|
|
2324
2355
|
}
|
|
2325
2356
|
};
|
|
2326
2357
|
};
|
|
2327
|
-
function
|
|
2328
|
-
let t = /* @__PURE__ */ new Map(), n = null, r = null, i = () => {
|
|
2329
|
-
if (!
|
|
2330
|
-
let { land: e, cancel: t } =
|
|
2331
|
-
|
|
2332
|
-
},
|
|
2358
|
+
function wn(e) {
|
|
2359
|
+
let t = /* @__PURE__ */ new Map(), n = null, r = null, i = null, a = null, o = () => {
|
|
2360
|
+
if (!a) return;
|
|
2361
|
+
let { land: e, cancel: t } = a;
|
|
2362
|
+
a = null, t(), e();
|
|
2363
|
+
}, c = (e) => {
|
|
2333
2364
|
if (typeof requestAnimationFrame != "function") {
|
|
2334
2365
|
e();
|
|
2335
2366
|
return;
|
|
@@ -2337,33 +2368,37 @@ function un(e) {
|
|
|
2337
2368
|
let t = 0;
|
|
2338
2369
|
t = requestAnimationFrame(() => {
|
|
2339
2370
|
t = requestAnimationFrame(() => {
|
|
2340
|
-
|
|
2371
|
+
a = null, e();
|
|
2341
2372
|
});
|
|
2342
|
-
}),
|
|
2373
|
+
}), a = {
|
|
2343
2374
|
land: e,
|
|
2344
2375
|
cancel: () => cancelAnimationFrame(t)
|
|
2345
2376
|
};
|
|
2346
2377
|
};
|
|
2347
2378
|
return {
|
|
2348
|
-
driveScreenLifecycle: (
|
|
2349
|
-
let { getElements:
|
|
2350
|
-
|
|
2379
|
+
driveScreenLifecycle: (a) => {
|
|
2380
|
+
let { getElements: l, transitionName: u, prevTransitionName: d, status: f, isActive: p, animHoldReleased: m } = a, h = f === "PUSHING" || f === "POPPING" || f === "REPLACING";
|
|
2381
|
+
h && (i &&= (clearTimeout(i), null), r ||= It()), !h && r && !i && (typeof setTimeout == "function" ? i = setTimeout(() => {
|
|
2382
|
+
i = null, r?.(), r = null;
|
|
2383
|
+
}, gn) : (r(), r = null));
|
|
2384
|
+
let g = h && m && (p ? f === "PUSHING" || f === "REPLACING" : f === "POPPING");
|
|
2385
|
+
if (!g && n) {
|
|
2351
2386
|
let e = n;
|
|
2352
|
-
n = null,
|
|
2387
|
+
n = null, h ? e() : c(e);
|
|
2353
2388
|
}
|
|
2354
|
-
if (
|
|
2355
|
-
|
|
2356
|
-
let { scope: e } =
|
|
2357
|
-
e && (n =
|
|
2389
|
+
if (g && !n) {
|
|
2390
|
+
o();
|
|
2391
|
+
let { scope: e } = l();
|
|
2392
|
+
e && (n = Ot(e));
|
|
2358
2393
|
}
|
|
2359
|
-
let
|
|
2394
|
+
let _ = (t, n, r) => {
|
|
2360
2395
|
let i = e.getTransitionTaskId();
|
|
2361
|
-
if (!i || s.pendingTaskIds.some((e) => e !== i) || !
|
|
2362
|
-
let { scope: a, decorator:
|
|
2396
|
+
if (!i || s.pendingTaskIds.some((e) => e !== i) || !wt.playerAllowed()) return null;
|
|
2397
|
+
let { scope: a, decorator: o, bars: c } = l();
|
|
2363
2398
|
if (!a) return null;
|
|
2364
|
-
let d =
|
|
2399
|
+
let d = be(u), f = V(d, t);
|
|
2365
2400
|
if (!f) return null;
|
|
2366
|
-
let p = [], m =
|
|
2401
|
+
let p = [], m = mn.join(i, {
|
|
2367
2402
|
element: a,
|
|
2368
2403
|
motion: f,
|
|
2369
2404
|
role: n,
|
|
@@ -2371,30 +2406,30 @@ function un(e) {
|
|
|
2371
2406
|
});
|
|
2372
2407
|
if (!m) return null;
|
|
2373
2408
|
p.push(m);
|
|
2374
|
-
for (let e of
|
|
2409
|
+
for (let e of c ?? []) {
|
|
2375
2410
|
if (!e || e.getAttribute("data-flemo-bar-riding") !== "true") continue;
|
|
2376
|
-
let t =
|
|
2411
|
+
let t = mn.join(i, {
|
|
2377
2412
|
element: e,
|
|
2378
2413
|
motion: f,
|
|
2379
2414
|
role: "passive"
|
|
2380
2415
|
});
|
|
2381
2416
|
t && p.push(t);
|
|
2382
2417
|
}
|
|
2383
|
-
if (
|
|
2384
|
-
let e =
|
|
2418
|
+
if (o && d.decoratorName) {
|
|
2419
|
+
let e = R.get(d.decoratorName), n = e ? V(e, t) : null;
|
|
2385
2420
|
if (n) {
|
|
2386
|
-
let e =
|
|
2387
|
-
element:
|
|
2421
|
+
let e = mn.join(i, {
|
|
2422
|
+
element: o,
|
|
2388
2423
|
motion: n,
|
|
2389
2424
|
role: "passive"
|
|
2390
2425
|
});
|
|
2391
2426
|
e && p.push(e);
|
|
2392
2427
|
}
|
|
2393
2428
|
}
|
|
2394
|
-
for (let e of
|
|
2395
|
-
let n =
|
|
2429
|
+
for (let e of bn(a, t)) {
|
|
2430
|
+
let n = z.get(e.getAttribute(vn)), r = n ? V(n, t) : null;
|
|
2396
2431
|
if (!r) continue;
|
|
2397
|
-
let a =
|
|
2432
|
+
let a = mn.join(i, {
|
|
2398
2433
|
element: e,
|
|
2399
2434
|
motion: r,
|
|
2400
2435
|
role: "passive"
|
|
@@ -2402,9 +2437,9 @@ function un(e) {
|
|
|
2402
2437
|
a && p.push(a);
|
|
2403
2438
|
}
|
|
2404
2439
|
return () => p.forEach((e) => e());
|
|
2405
|
-
},
|
|
2406
|
-
let n = [], { decorator: r, bars: i } =
|
|
2407
|
-
let i = 0, a =
|
|
2440
|
+
}, v = (e, t) => {
|
|
2441
|
+
let n = [], { decorator: r, bars: i } = l(), a = be(u), o = (e, t, r) => {
|
|
2442
|
+
let i = 0, a = Cn({
|
|
2408
2443
|
element: e,
|
|
2409
2444
|
expectedName: t,
|
|
2410
2445
|
motion: r,
|
|
@@ -2413,140 +2448,156 @@ function un(e) {
|
|
|
2413
2448
|
spendBudget: () => {
|
|
2414
2449
|
i += 1;
|
|
2415
2450
|
},
|
|
2416
|
-
onTerminal:
|
|
2451
|
+
onTerminal: Z
|
|
2417
2452
|
});
|
|
2418
2453
|
a.attach(), n.push(a.detach);
|
|
2419
|
-
},
|
|
2420
|
-
if (
|
|
2454
|
+
}, s = W("screen", u, t), c = V(a, t);
|
|
2455
|
+
if (c) for (let e of i ?? []) !e || e.getAttribute("data-flemo-bar-riding") !== "true" || o(e, s, c);
|
|
2421
2456
|
if (r && a.decoratorName) {
|
|
2422
|
-
let e =
|
|
2423
|
-
n &&
|
|
2457
|
+
let e = R.get(a.decoratorName), n = e ? V(e, t) : null;
|
|
2458
|
+
n && o(r, W("decorator", a.decoratorName, t), n);
|
|
2424
2459
|
}
|
|
2425
|
-
for (let n of
|
|
2426
|
-
let e = n.getAttribute(
|
|
2427
|
-
i &&
|
|
2460
|
+
for (let n of bn(e, t)) {
|
|
2461
|
+
let e = n.getAttribute(vn), r = z.get(e), i = r ? V(r, t) : null;
|
|
2462
|
+
i && o(n, W("part", e, t), i);
|
|
2428
2463
|
}
|
|
2429
2464
|
return n;
|
|
2430
2465
|
};
|
|
2431
|
-
if (!
|
|
2432
|
-
if (
|
|
2433
|
-
let { scope: e, decorator: t, bars: n } =
|
|
2466
|
+
if (!p) {
|
|
2467
|
+
if (f === "COMPLETED") {
|
|
2468
|
+
let { scope: e, decorator: t, bars: n } = l();
|
|
2434
2469
|
if (e) {
|
|
2435
|
-
|
|
2436
|
-
for (let t of
|
|
2470
|
+
q(e);
|
|
2471
|
+
for (let t of yn(e)) q(t);
|
|
2437
2472
|
}
|
|
2438
|
-
t &&
|
|
2439
|
-
for (let e of n ?? []) e &&
|
|
2440
|
-
return
|
|
2473
|
+
t && q(t);
|
|
2474
|
+
for (let e of n ?? []) e && q(e);
|
|
2475
|
+
return Z;
|
|
2441
2476
|
}
|
|
2442
|
-
if (
|
|
2443
|
-
let e = `${
|
|
2477
|
+
if (f === "REPLACING" && d !== u && e.setReplaceTransitionStatus("PENDING"), h && m) {
|
|
2478
|
+
let e = `${f}-false`, t = _(e, "passive");
|
|
2444
2479
|
if (t) return t;
|
|
2445
|
-
let { scope: n } =
|
|
2480
|
+
let { scope: n } = l();
|
|
2446
2481
|
if (n) {
|
|
2447
|
-
let t =
|
|
2448
|
-
if (
|
|
2449
|
-
let i =
|
|
2482
|
+
let t = be(u), r = [];
|
|
2483
|
+
if (G(t, e)) {
|
|
2484
|
+
let i = V(t, e), a = 0, o = Cn({
|
|
2450
2485
|
element: n,
|
|
2451
|
-
expectedName:
|
|
2486
|
+
expectedName: W("screen", u, e),
|
|
2452
2487
|
motion: i,
|
|
2453
2488
|
isLive: () => n.isConnected && n.getAttribute("data-flemo-skip-animation") !== "true",
|
|
2454
2489
|
budgetUsed: () => a,
|
|
2455
2490
|
spendBudget: () => {
|
|
2456
2491
|
a += 1;
|
|
2457
2492
|
},
|
|
2458
|
-
onTerminal:
|
|
2493
|
+
onTerminal: Z
|
|
2459
2494
|
});
|
|
2460
2495
|
o.attach(), r.push(o.detach);
|
|
2461
2496
|
}
|
|
2462
|
-
if (r.push(...
|
|
2497
|
+
if (r.push(...v(n, e)), r.length > 0) return () => r.forEach((e) => e());
|
|
2463
2498
|
}
|
|
2464
2499
|
}
|
|
2465
|
-
return
|
|
2500
|
+
return Z;
|
|
2466
2501
|
}
|
|
2467
|
-
if (
|
|
2502
|
+
if (f === "COMPLETED") {
|
|
2468
2503
|
e.setDragStatus("IDLE"), e.setReplaceTransitionStatus("IDLE");
|
|
2469
|
-
let { scope: t, decorator: n, bars: r } =
|
|
2504
|
+
let { scope: t, decorator: n, bars: r } = l();
|
|
2470
2505
|
if (t) {
|
|
2471
|
-
|
|
2472
|
-
for (let e of
|
|
2506
|
+
q(t), t.removeAttribute(hn);
|
|
2507
|
+
for (let e of yn(t)) q(e);
|
|
2473
2508
|
}
|
|
2474
|
-
n && (
|
|
2475
|
-
for (let e of r ?? []) e && (
|
|
2476
|
-
return
|
|
2509
|
+
n && (q(n), n.removeAttribute(hn));
|
|
2510
|
+
for (let e of r ?? []) e && (q(e), e.style.removeProperty("will-change"));
|
|
2511
|
+
return Z;
|
|
2477
2512
|
}
|
|
2478
|
-
if (
|
|
2479
|
-
let { scope:
|
|
2480
|
-
if (!
|
|
2481
|
-
let
|
|
2513
|
+
if (f === "IDLE") return Z;
|
|
2514
|
+
let { scope: y } = l();
|
|
2515
|
+
if (!y) return Z;
|
|
2516
|
+
let b = e.getTransitionTaskId(), x = () => {
|
|
2482
2517
|
let n = e.getTransitionTaskId();
|
|
2483
|
-
n && s.resolveTask(n),
|
|
2484
|
-
},
|
|
2485
|
-
if (!(!
|
|
2486
|
-
if (!
|
|
2487
|
-
let e = `${
|
|
2488
|
-
if (
|
|
2489
|
-
if (!
|
|
2490
|
-
|
|
2491
|
-
let t =
|
|
2518
|
+
n && s.resolveTask(n), b && t.delete(b);
|
|
2519
|
+
}, S = be(u), C = `${f}-true`, w = y.getAttribute(hn) === "true";
|
|
2520
|
+
if (!(!w && G(S, C))) {
|
|
2521
|
+
if (!w) {
|
|
2522
|
+
let e = `${f}-false`;
|
|
2523
|
+
if (G(S, e)) {
|
|
2524
|
+
if (!m) return b && s.markGateHeld(b), Z;
|
|
2525
|
+
b && s.anchorGate(b);
|
|
2526
|
+
let t = V(S, e), n = (t.delay + t.duration) * 1e3 + 50, r = setTimeout(x, n);
|
|
2492
2527
|
return () => clearTimeout(r);
|
|
2493
2528
|
}
|
|
2494
2529
|
}
|
|
2495
|
-
return queueMicrotask(
|
|
2530
|
+
return queueMicrotask(x), Z;
|
|
2496
2531
|
}
|
|
2497
|
-
|
|
2498
|
-
let
|
|
2499
|
-
|
|
2500
|
-
},
|
|
2501
|
-
|
|
2502
|
-
|
|
2532
|
+
b && (m ? s.anchorGate(b) : s.markGateHeld(b));
|
|
2533
|
+
let T = V(S, C), E = !w && !!T, ee = W("screen", u, C), D, O = () => {
|
|
2534
|
+
D !== void 0 && (clearTimeout(D), D = void 0);
|
|
2535
|
+
}, te = 0, ne, k = [], A, j = () => {
|
|
2536
|
+
k.forEach((e) => cancelAnimationFrame(e)), k = [], A !== void 0 && clearTimeout(A), A = void 0;
|
|
2537
|
+
}, M = () => {
|
|
2538
|
+
/* v8 ignore next 4 -- every runtime under test has rAF; the guard
|
|
2539
|
+
shields exotic embedders. */
|
|
2540
|
+
if (typeof requestAnimationFrame != "function") {
|
|
2541
|
+
x();
|
|
2503
2542
|
return;
|
|
2504
2543
|
}
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2544
|
+
A = setTimeout(() => {
|
|
2545
|
+
j(), x();
|
|
2546
|
+
}, _n), k.push(requestAnimationFrame(() => {
|
|
2547
|
+
k.push(requestAnimationFrame(() => {
|
|
2548
|
+
j(), x();
|
|
2549
|
+
}));
|
|
2550
|
+
}));
|
|
2551
|
+
}, re = () => {
|
|
2552
|
+
if (te <= 0) {
|
|
2553
|
+
M();
|
|
2554
|
+
return;
|
|
2555
|
+
}
|
|
2556
|
+
ne = setTimeout(M, te);
|
|
2557
|
+
}, ie = Z, ae = Z, oe = (e) => {
|
|
2558
|
+
e.target === y && e.animationName === ee && (y.removeEventListener("animationend", oe), O(), ie(), re());
|
|
2508
2559
|
};
|
|
2509
|
-
|
|
2510
|
-
let
|
|
2511
|
-
for (let e of Array.from(
|
|
2512
|
-
let t =
|
|
2513
|
-
r &&
|
|
2560
|
+
y.addEventListener("animationend", oe);
|
|
2561
|
+
let se = E && m ? _(C, "active", M) : null, ce = (T.delay + T.duration) * 1e3, le = ce + 1500, ue = b ? setTimeout(() => void s.resolveTask(b), le) : void 0, de = `${f}-false`, N = G(S, de) ? V(S, de) : null, fe = [];
|
|
2562
|
+
for (let e of Array.from(y.ownerDocument.querySelectorAll(`[${vn}][data-flemo-status="${f}"]`))) {
|
|
2563
|
+
let t = z.get(e.getAttribute(vn)), n = `${f}-${e.getAttribute("data-flemo-active")}`, r = t && G(t, n) ? V(t, n) : null;
|
|
2564
|
+
r && fe.push({
|
|
2514
2565
|
element: e,
|
|
2515
2566
|
motion: r
|
|
2516
2567
|
});
|
|
2517
2568
|
}
|
|
2518
|
-
let
|
|
2519
|
-
for (let { motion: e } of
|
|
2520
|
-
|
|
2521
|
-
let
|
|
2522
|
-
element:
|
|
2523
|
-
expectedName:
|
|
2524
|
-
motion:
|
|
2525
|
-
isLive:
|
|
2526
|
-
budgetUsed: () => t.get(
|
|
2569
|
+
let pe = N ? (N.delay + N.duration) * 1e3 : 0;
|
|
2570
|
+
for (let { motion: e } of fe) pe = Math.max(pe, (e.delay + e.duration) * 1e3);
|
|
2571
|
+
te = Math.max(0, Math.min(1e3, pe - ce));
|
|
2572
|
+
let me = ce + 250, P = () => b !== null && e.getTransitionTaskId() === b && y.isConnected && y.getAttribute("data-flemo-skip-animation") !== "true" && G(S, C), he = Cn({
|
|
2573
|
+
element: y,
|
|
2574
|
+
expectedName: ee,
|
|
2575
|
+
motion: T,
|
|
2576
|
+
isLive: P,
|
|
2577
|
+
budgetUsed: () => t.get(b) ?? 0,
|
|
2527
2578
|
spendBudget: () => {
|
|
2528
|
-
|
|
2579
|
+
ae(), t.set(b, (t.get(b) ?? 0) + 1);
|
|
2529
2580
|
},
|
|
2530
|
-
onTerminal:
|
|
2581
|
+
onTerminal: x
|
|
2531
2582
|
});
|
|
2532
|
-
|
|
2533
|
-
let
|
|
2534
|
-
|
|
2535
|
-
},
|
|
2536
|
-
if (
|
|
2537
|
-
|
|
2583
|
+
ie = he.detach;
|
|
2584
|
+
let ge = !1, _e = () => {
|
|
2585
|
+
O(), D = setTimeout(ve, me);
|
|
2586
|
+
}, ve = () => {
|
|
2587
|
+
if (O(), P() && !ge) {
|
|
2588
|
+
ge = !0, ae(), he.fullRestart(), _e();
|
|
2538
2589
|
return;
|
|
2539
2590
|
}
|
|
2540
|
-
|
|
2541
|
-
},
|
|
2542
|
-
|
|
2543
|
-
let
|
|
2544
|
-
|
|
2591
|
+
x();
|
|
2592
|
+
}, F = !se && m, ye = F ? v(y, C) : [];
|
|
2593
|
+
F && (he.attach(), b && _e());
|
|
2594
|
+
let I, L = () => {
|
|
2595
|
+
I !== void 0 && (clearTimeout(I), I = void 0);
|
|
2545
2596
|
};
|
|
2546
|
-
if (
|
|
2547
|
-
let e = typeof window < "u" && window.devicePixelRatio || 1, t =
|
|
2548
|
-
for (let { element: t, motion: n } of
|
|
2549
|
-
let i =
|
|
2597
|
+
if (ae = L, F && b) {
|
|
2598
|
+
let e = typeof window < "u" && window.devicePixelRatio || 1, t = qt(T, y, e), n = N ? qt(N, y, e) : 0, r = 0;
|
|
2599
|
+
for (let { element: t, motion: n } of fe) {
|
|
2600
|
+
let i = qt(n, t, e);
|
|
2550
2601
|
if (i === null) {
|
|
2551
2602
|
r = null;
|
|
2552
2603
|
break;
|
|
@@ -2554,16 +2605,16 @@ function un(e) {
|
|
|
2554
2605
|
r = Math.max(r, i);
|
|
2555
2606
|
}
|
|
2556
2607
|
let i = t !== null && n !== null && r !== null ? Math.max(t, n, r) : null;
|
|
2557
|
-
i !== null && i + 17 <
|
|
2558
|
-
|
|
2608
|
+
i !== null && i + 17 < ce + te && (I = setTimeout(() => {
|
|
2609
|
+
I = void 0, P() && (y.removeEventListener("animationend", oe), O(), ie(), M());
|
|
2559
2610
|
}, i + 17));
|
|
2560
2611
|
}
|
|
2561
2612
|
return () => {
|
|
2562
|
-
if (
|
|
2563
|
-
|
|
2564
|
-
for (let e of
|
|
2613
|
+
if (ue !== void 0 && clearTimeout(ue), ne !== void 0 && clearTimeout(ne), j(), L(), y.removeEventListener("animationend", oe), F) {
|
|
2614
|
+
he.detach();
|
|
2615
|
+
for (let e of ye) e();
|
|
2565
2616
|
}
|
|
2566
|
-
|
|
2617
|
+
O(), se?.(), b && e.getTransitionTaskId() !== b && t.delete(b);
|
|
2567
2618
|
};
|
|
2568
2619
|
},
|
|
2569
2620
|
activeResumeEntryCount: () => t.size
|
|
@@ -2571,20 +2622,20 @@ function un(e) {
|
|
|
2571
2622
|
}
|
|
2572
2623
|
//#endregion
|
|
2573
2624
|
//#region src/utils/findScrollable.ts
|
|
2574
|
-
function
|
|
2575
|
-
let { direction: n = "x", markerSelector: r = "[data-swipe-at-edge]", depthLimit: i = 24, verifyByScroll: a = !1 } = t ?? {}, o =
|
|
2625
|
+
function Tn(e, t) {
|
|
2626
|
+
let { direction: n = "x", markerSelector: r = "[data-swipe-at-edge]", depthLimit: i = 24, verifyByScroll: a = !1 } = t ?? {}, o = En(e);
|
|
2576
2627
|
if (!o) return {
|
|
2577
2628
|
element: null,
|
|
2578
2629
|
hasMarker: !1
|
|
2579
2630
|
};
|
|
2580
2631
|
let s = o.closest?.(r);
|
|
2581
|
-
if (s instanceof HTMLElement &&
|
|
2632
|
+
if (s instanceof HTMLElement && Dn(s, n) && (!a || On(s, n))) return {
|
|
2582
2633
|
element: s,
|
|
2583
2634
|
hasMarker: !0
|
|
2584
2635
|
};
|
|
2585
2636
|
let c = o, l = 0;
|
|
2586
2637
|
for (; c && l < i;) {
|
|
2587
|
-
if (
|
|
2638
|
+
if (Dn(c, n) && (!a || On(c, n))) return {
|
|
2588
2639
|
element: c,
|
|
2589
2640
|
hasMarker: !1
|
|
2590
2641
|
};
|
|
@@ -2595,7 +2646,7 @@ function dn(e, t) {
|
|
|
2595
2646
|
hasMarker: !1
|
|
2596
2647
|
};
|
|
2597
2648
|
}
|
|
2598
|
-
function
|
|
2649
|
+
function En(e) {
|
|
2599
2650
|
if (!e) return null;
|
|
2600
2651
|
let t = e, n = typeof t.composedPath == "function" ? t.composedPath() : void 0;
|
|
2601
2652
|
if (n && n.length) {
|
|
@@ -2603,18 +2654,18 @@ function fn(e) {
|
|
|
2603
2654
|
}
|
|
2604
2655
|
return e instanceof HTMLElement ? e : null;
|
|
2605
2656
|
}
|
|
2606
|
-
function
|
|
2657
|
+
function Dn(e, t) {
|
|
2607
2658
|
return t === "y" ? e.scrollHeight - e.clientHeight > 1 : e.scrollWidth - e.clientWidth > 1;
|
|
2608
2659
|
}
|
|
2609
|
-
function
|
|
2610
|
-
if (!
|
|
2660
|
+
function On(e, t) {
|
|
2661
|
+
if (!Dn(e, t) || typeof window > "u") return !1;
|
|
2611
2662
|
let n = window.getComputedStyle(e), r = t === "y" ? n.overflowY : n.overflowX;
|
|
2612
2663
|
return r === "auto" || r === "scroll" || r === "overlay";
|
|
2613
2664
|
}
|
|
2614
2665
|
//#endregion
|
|
2615
2666
|
//#region src/core/engine/createSwipeController.ts
|
|
2616
|
-
var
|
|
2617
|
-
function
|
|
2667
|
+
var kn = "data-flemo-skip-animation";
|
|
2668
|
+
function An(e) {
|
|
2618
2669
|
let t = null, n = null, r = {
|
|
2619
2670
|
current: [],
|
|
2620
2671
|
prev: []
|
|
@@ -2660,9 +2711,9 @@ function gn(e) {
|
|
|
2660
2711
|
y: e.clientY
|
|
2661
2712
|
}, u = t;
|
|
2662
2713
|
}, v = (n, i, a) => {
|
|
2663
|
-
let o =
|
|
2664
|
-
if (n === e.getElements().scope) for (let e of r.current)
|
|
2665
|
-
else if (n === t) for (let e of r.prev)
|
|
2714
|
+
let o = J(n, i, a);
|
|
2715
|
+
if (n === e.getElements().scope) for (let e of r.current) J(e, i, a);
|
|
2716
|
+
else if (n === t) for (let e of r.prev) J(e, i, a);
|
|
2666
2717
|
return o;
|
|
2667
2718
|
}, y = (t) => {
|
|
2668
2719
|
let n = e.getPartnerBars(), i = [], { sharedTopBar: a, sharedBottomBar: o } = e.getElements();
|
|
@@ -2676,12 +2727,12 @@ function gn(e) {
|
|
|
2676
2727
|
current: i,
|
|
2677
2728
|
prev: s
|
|
2678
2729
|
};
|
|
2679
|
-
let c =
|
|
2730
|
+
let c = We(e.getTransition()).join(", ");
|
|
2680
2731
|
for (let e of i) e.style.willChange = c;
|
|
2681
2732
|
for (let e of s) e.style.willChange = c;
|
|
2682
2733
|
}, b = () => {
|
|
2683
|
-
for (let e of r.current)
|
|
2684
|
-
for (let e of r.prev)
|
|
2734
|
+
for (let e of r.current) q(e), e.style.removeProperty("will-change");
|
|
2735
|
+
for (let e of r.prev) q(e), e.style.removeProperty("will-change");
|
|
2685
2736
|
r = {
|
|
2686
2737
|
current: [],
|
|
2687
2738
|
prev: []
|
|
@@ -2694,10 +2745,10 @@ function gn(e) {
|
|
|
2694
2745
|
};
|
|
2695
2746
|
}, S = (e, t, n) => {
|
|
2696
2747
|
let r = (r, i) => {
|
|
2697
|
-
let a =
|
|
2748
|
+
let a = z.get(r.getAttribute("data-flemo-part-name"));
|
|
2698
2749
|
if (!a) return;
|
|
2699
2750
|
let o = {
|
|
2700
|
-
animate:
|
|
2751
|
+
animate: J,
|
|
2701
2752
|
element: r,
|
|
2702
2753
|
active: i
|
|
2703
2754
|
};
|
|
@@ -2706,7 +2757,7 @@ function gn(e) {
|
|
|
2706
2757
|
for (let e of i.current) r(e, !0);
|
|
2707
2758
|
for (let e of i.prev) r(e, !1);
|
|
2708
2759
|
}, C = () => {
|
|
2709
|
-
for (let e of [...i.current, ...i.prev])
|
|
2760
|
+
for (let e of [...i.current, ...i.prev]) q(e);
|
|
2710
2761
|
i = {
|
|
2711
2762
|
current: [],
|
|
2712
2763
|
prev: []
|
|
@@ -2735,7 +2786,7 @@ function gn(e) {
|
|
|
2735
2786
|
prevScreen: t,
|
|
2736
2787
|
onStart: (e) => {
|
|
2737
2788
|
m?.onSwipeStart?.(e, {
|
|
2738
|
-
animate:
|
|
2789
|
+
animate: J,
|
|
2739
2790
|
currentDecorator: f,
|
|
2740
2791
|
prevDecorator: n
|
|
2741
2792
|
}), S("start", e, 0);
|
|
@@ -2752,7 +2803,7 @@ function gn(e) {
|
|
|
2752
2803
|
prevScreen: t,
|
|
2753
2804
|
onProgress: (e, t) => {
|
|
2754
2805
|
c?.onSwipe?.(e, t, {
|
|
2755
|
-
animate:
|
|
2806
|
+
animate: J,
|
|
2756
2807
|
currentDecorator: o,
|
|
2757
2808
|
prevDecorator: n
|
|
2758
2809
|
}), S("swipe", e, t);
|
|
@@ -2771,15 +2822,15 @@ function gn(e) {
|
|
|
2771
2822
|
prevScreen: t,
|
|
2772
2823
|
onStart: (e) => {
|
|
2773
2824
|
u?.onSwipeEnd?.(e, {
|
|
2774
|
-
animate:
|
|
2825
|
+
animate: J,
|
|
2775
2826
|
currentDecorator: l,
|
|
2776
2827
|
prevDecorator: n
|
|
2777
2828
|
}), S("end", e, 0);
|
|
2778
2829
|
}
|
|
2779
2830
|
})) {
|
|
2780
|
-
c?.setAttribute(
|
|
2831
|
+
c?.setAttribute(kn, "true"), l?.setAttribute(kn, "true");
|
|
2781
2832
|
for (let e of r.current) e.style.removeProperty("will-change");
|
|
2782
|
-
for (let e of r.prev)
|
|
2833
|
+
for (let e of r.prev) q(e), e.style.removeProperty("will-change");
|
|
2783
2834
|
r = {
|
|
2784
2835
|
current: [],
|
|
2785
2836
|
prev: []
|
|
@@ -2787,14 +2838,14 @@ function gn(e) {
|
|
|
2787
2838
|
current: [],
|
|
2788
2839
|
prev: []
|
|
2789
2840
|
}, e.back();
|
|
2790
|
-
} else c &&
|
|
2841
|
+
} else c && q(c), t && q(t), l && q(l), n && q(n), b(), C(), e.setDragStatus("IDLE");
|
|
2791
2842
|
};
|
|
2792
2843
|
return {
|
|
2793
2844
|
pointerDown: (t) => {
|
|
2794
|
-
e.isReadyForDrag() && (f =
|
|
2845
|
+
e.isReadyForDrag() && (f = Tn(t.target, {
|
|
2795
2846
|
direction: "x",
|
|
2796
2847
|
verifyByScroll: !0
|
|
2797
|
-
}), p =
|
|
2848
|
+
}), p = Tn(t.target, {
|
|
2798
2849
|
direction: "y",
|
|
2799
2850
|
verifyByScroll: !0
|
|
2800
2851
|
}), m = t.clientX, h = t.clientY, (!f.element && !p.element || f.element || p.element) && (a = !0));
|
|
@@ -2823,7 +2874,7 @@ function gn(e) {
|
|
|
2823
2874
|
}
|
|
2824
2875
|
//#endregion
|
|
2825
2876
|
//#region src/screen/computeBarRiding.ts
|
|
2826
|
-
function
|
|
2877
|
+
function jn(e) {
|
|
2827
2878
|
return !(e.status === "PUSHING" || e.status === "POPPING" || e.status === "REPLACING") || !e.isTopOrTopPrev ? {
|
|
2828
2879
|
app: !1,
|
|
2829
2880
|
nav: !1
|
|
@@ -2833,25 +2884,85 @@ function _n(e) {
|
|
|
2833
2884
|
};
|
|
2834
2885
|
}
|
|
2835
2886
|
//#endregion
|
|
2887
|
+
//#region src/screen/pendingNetwork.ts
|
|
2888
|
+
var Mn = 0, Nn = !1, Pn = () => {
|
|
2889
|
+
Mn = Math.max(0, Mn - 1);
|
|
2890
|
+
}, Fn = () => {
|
|
2891
|
+
if (!(Nn || typeof window > "u")) {
|
|
2892
|
+
if (Nn = !0, typeof window.fetch == "function") {
|
|
2893
|
+
let e = window.fetch.bind(window);
|
|
2894
|
+
window.fetch = (...t) => {
|
|
2895
|
+
Mn += 1;
|
|
2896
|
+
let n;
|
|
2897
|
+
try {
|
|
2898
|
+
n = e(...t);
|
|
2899
|
+
} catch (e) {
|
|
2900
|
+
throw Pn(), e;
|
|
2901
|
+
}
|
|
2902
|
+
return n.then((e) => (Pn(), e), (e) => {
|
|
2903
|
+
throw Pn(), e;
|
|
2904
|
+
});
|
|
2905
|
+
};
|
|
2906
|
+
}
|
|
2907
|
+
if (typeof XMLHttpRequest == "function") {
|
|
2908
|
+
let e = XMLHttpRequest.prototype.send;
|
|
2909
|
+
XMLHttpRequest.prototype.send = function(...t) {
|
|
2910
|
+
Mn += 1;
|
|
2911
|
+
let n = !1, r = () => {
|
|
2912
|
+
n || (n = !0, Pn());
|
|
2913
|
+
};
|
|
2914
|
+
this.addEventListener("loadend", r);
|
|
2915
|
+
try {
|
|
2916
|
+
return e.apply(this, t);
|
|
2917
|
+
} catch (e) {
|
|
2918
|
+
throw r(), e;
|
|
2919
|
+
}
|
|
2920
|
+
};
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
}, In = () => (Fn(), Mn > 0);
|
|
2924
|
+
//#endregion
|
|
2836
2925
|
//#region src/screen/animStartAnchor.ts
|
|
2837
|
-
function
|
|
2926
|
+
function Ln(e) {
|
|
2838
2927
|
return !(e.status === "PUSHING" || e.status === "POPPING" || e.status === "REPLACING") || !e.isTopOrTopPrev ? null : `${e.status}:${e.transitionName}`;
|
|
2839
2928
|
}
|
|
2840
|
-
var
|
|
2841
|
-
function
|
|
2842
|
-
return Array.from(e.querySelectorAll("img")).filter((e) => e.complete && typeof e.decode == "function").slice(0,
|
|
2929
|
+
var Rn = 300, zn = 20;
|
|
2930
|
+
function Bn(e) {
|
|
2931
|
+
return Array.from(e.querySelectorAll("img")).filter((e) => e.complete && typeof e.decode == "function").slice(0, zn);
|
|
2843
2932
|
}
|
|
2844
|
-
function
|
|
2845
|
-
if (!(!e || typeof e.querySelectorAll != "function")) for (let t of
|
|
2933
|
+
function Vn(e) {
|
|
2934
|
+
if (!(!e || typeof e.querySelectorAll != "function")) for (let t of Bn(e)) t.decode().catch(() => {});
|
|
2846
2935
|
}
|
|
2847
|
-
|
|
2848
|
-
|
|
2936
|
+
var Hn = 3, Un = 40, Wn = 24, Gn = (e) => {
|
|
2937
|
+
if (typeof e.querySelectorAll != "function") return !1;
|
|
2938
|
+
let t = e.querySelectorAll("*").length;
|
|
2939
|
+
/* v8 ignore stop */
|
|
2940
|
+
return t < Wn ? !1 : ((e.textContent ?? "").trim().length + e.querySelectorAll("img").length * Un) / t < Hn;
|
|
2941
|
+
}, Kn = (e) => typeof e.getAnimations == "function" && e.getAnimations({ subtree: !0 }).some((e) => {
|
|
2942
|
+
let t = e.animationName;
|
|
2943
|
+
return typeof t != "string" || !t.startsWith("flemo-");
|
|
2944
|
+
}), qn = (e) => {
|
|
2945
|
+
/* v8 ignore next -- the settle gate only runs a scope past looksLikeShell,
|
|
2946
|
+
which already requires querySelectorAll. */
|
|
2947
|
+
if (typeof e.querySelectorAll != "function") return !1;
|
|
2948
|
+
/* v8 ignore next 2 -- every DOM element implements getBoundingClientRect;
|
|
2949
|
+
the guard shields exotic embedders. */
|
|
2950
|
+
let t = typeof e.getBoundingClientRect == "function" ? e.getBoundingClientRect() : null, n = t && t.height > 0 ? t : null, r = 0;
|
|
2951
|
+
for (let t of Array.from(e.querySelectorAll("img"))) {
|
|
2952
|
+
if (r >= zn) break;
|
|
2953
|
+
if (!(t.loading === "lazy" && !t.currentSrc) && !(n && t.getBoundingClientRect().top - n.top >= n.height) && (r += 1, !t.complete)) return !0;
|
|
2954
|
+
}
|
|
2955
|
+
return !1;
|
|
2956
|
+
};
|
|
2957
|
+
function Jn(e, t = {}) {
|
|
2958
|
+
let n = !1, r = 0, i = [], a = [], o = () => {
|
|
2959
|
+
if (n) return;
|
|
2849
2960
|
let r = t.scope;
|
|
2850
2961
|
if (t.decodeWait === !1 || !r || typeof r.querySelectorAll != "function") {
|
|
2851
2962
|
e();
|
|
2852
2963
|
return;
|
|
2853
2964
|
}
|
|
2854
|
-
let i =
|
|
2965
|
+
let i = Bn(r);
|
|
2855
2966
|
if (i.length === 0) {
|
|
2856
2967
|
e();
|
|
2857
2968
|
return;
|
|
@@ -2862,26 +2973,86 @@ function Cn(e, t = {}) {
|
|
|
2862
2973
|
Promise.race([a, o]).then(() => {
|
|
2863
2974
|
n || e();
|
|
2864
2975
|
});
|
|
2865
|
-
},
|
|
2976
|
+
}, s = (e) => {
|
|
2977
|
+
let n = t.contentSettle, r = t.scope;
|
|
2978
|
+
if (!n || !r || typeof MutationObserver > "u") {
|
|
2979
|
+
e();
|
|
2980
|
+
return;
|
|
2981
|
+
}
|
|
2982
|
+
if (!Gn(r)) {
|
|
2983
|
+
e();
|
|
2984
|
+
return;
|
|
2985
|
+
}
|
|
2986
|
+
/* v8 ignore start -- performance exists in every runtime under test;
|
|
2987
|
+
the fallback only shields exotic embedders. */
|
|
2988
|
+
let i = typeof performance < "u" ? performance.now() : 0, o = () => (typeof performance < "u" ? performance.now() : 0) - i, s = [], c = !1, l = !1, u = () => Gn(r) && Kn(r), d = () => In() || qn(r), f = () => {
|
|
2989
|
+
l || (l = !0, h.disconnect(), clearTimeout(g), clearTimeout(_), clearTimeout(v), s.forEach((e) => cancelAnimationFrame(e)), s = [], e());
|
|
2990
|
+
}, p = () => !Gn(r) && !d() ? 2 : 6, m = () => {
|
|
2991
|
+
s.forEach((e) => cancelAnimationFrame(e)), s = [];
|
|
2992
|
+
let e = (t) => {
|
|
2993
|
+
if (t <= 0) {
|
|
2994
|
+
if ((d() || u()) && o() < n.capMs) {
|
|
2995
|
+
s.push(requestAnimationFrame(() => e(p())));
|
|
2996
|
+
return;
|
|
2997
|
+
}
|
|
2998
|
+
f();
|
|
2999
|
+
return;
|
|
3000
|
+
}
|
|
3001
|
+
s.push(requestAnimationFrame(() => e(t - 1)));
|
|
3002
|
+
};
|
|
3003
|
+
e(p());
|
|
3004
|
+
}, h = new MutationObserver((e) => {
|
|
3005
|
+
let t = 0;
|
|
3006
|
+
for (let n of e) if (n.type === "childList") for (let e of Array.from(n.addedNodes)) t += e instanceof Element ? 1 + e.querySelectorAll("*").length : 1;
|
|
3007
|
+
if (!(t < n.minNodes)) {
|
|
3008
|
+
/* v8 ignore start -- the cap timer fires the moment elapsed reaches
|
|
3009
|
+
capMs, so a delivery can never observe elapsed past the cap first;
|
|
3010
|
+
kept so a delivery racing the timer can only ever finish early. */
|
|
3011
|
+
if (c = !0, o() >= n.capMs) {
|
|
3012
|
+
f();
|
|
3013
|
+
return;
|
|
3014
|
+
}
|
|
3015
|
+
/* v8 ignore stop */
|
|
3016
|
+
m();
|
|
3017
|
+
}
|
|
3018
|
+
});
|
|
3019
|
+
h.observe(r, {
|
|
3020
|
+
childList: !0,
|
|
3021
|
+
subtree: !0
|
|
3022
|
+
});
|
|
3023
|
+
let g = setTimeout(() => {
|
|
3024
|
+
!c && !d() && !u() && f();
|
|
3025
|
+
}, n.graceMs), _ = setTimeout(function e() {
|
|
3026
|
+
if (!c) {
|
|
3027
|
+
if ((d() || u()) && o() < n.capMs) {
|
|
3028
|
+
setTimeout(e, 100);
|
|
3029
|
+
return;
|
|
3030
|
+
}
|
|
3031
|
+
f();
|
|
3032
|
+
}
|
|
3033
|
+
}, n.firstWaitMs), v = setTimeout(f, n.capMs);
|
|
3034
|
+
a.push(f);
|
|
3035
|
+
}, c = (e) => {
|
|
2866
3036
|
if (e <= 0) {
|
|
2867
|
-
|
|
3037
|
+
s(o);
|
|
2868
3038
|
return;
|
|
2869
3039
|
}
|
|
2870
|
-
i.push(requestAnimationFrame(() =>
|
|
2871
|
-
},
|
|
2872
|
-
r = requestAnimationFrame(() =>
|
|
3040
|
+
i.push(requestAnimationFrame(() => c(e - 1)));
|
|
3041
|
+
}, l = requestAnimationFrame(() => {
|
|
3042
|
+
r = requestAnimationFrame(() => c(t.extraFrames ?? 0));
|
|
2873
3043
|
});
|
|
2874
3044
|
return () => {
|
|
2875
|
-
n = !0, cancelAnimationFrame(
|
|
3045
|
+
n = !0, cancelAnimationFrame(l), r && cancelAnimationFrame(r), i.forEach((e) => cancelAnimationFrame(e)), a.forEach((e) => e());
|
|
2876
3046
|
};
|
|
2877
3047
|
}
|
|
2878
|
-
function
|
|
2879
|
-
let n =
|
|
3048
|
+
function Yn(e, t = {}) {
|
|
3049
|
+
let n = Jn(e, t), r = t.contentSettle?.capMs ?? 0, i = setTimeout(e, 300 + r);
|
|
2880
3050
|
return () => {
|
|
2881
|
-
n(), clearTimeout(
|
|
3051
|
+
n(), clearTimeout(i);
|
|
2882
3052
|
};
|
|
2883
3053
|
}
|
|
2884
|
-
|
|
3054
|
+
var Xn = (e) => 300 + (e?.contentSettle?.capMs ?? 0);
|
|
3055
|
+
function Zn() {
|
|
2885
3056
|
let e = /* @__PURE__ */ new Map(), t = (t, n) => {
|
|
2886
3057
|
clearTimeout(n.backstop), e.delete(t);
|
|
2887
3058
|
let r = [...n.members];
|
|
@@ -2890,17 +3061,25 @@ function Tn() {
|
|
|
2890
3061
|
}, n = (e) => [...e.members].every((e) => e.ready);
|
|
2891
3062
|
return { join: (r, i, a) => {
|
|
2892
3063
|
let o = e.get(r);
|
|
2893
|
-
if (
|
|
2894
|
-
let
|
|
3064
|
+
if (o) {
|
|
3065
|
+
let e = Xn(a);
|
|
3066
|
+
if (e > o.backstopMs) {
|
|
3067
|
+
clearTimeout(o.backstop);
|
|
3068
|
+
let n = o;
|
|
3069
|
+
n.backstopMs = e, n.backstop = setTimeout(() => t(r, n), e);
|
|
3070
|
+
}
|
|
3071
|
+
} else {
|
|
3072
|
+
let n = Xn(a), i = {
|
|
2895
3073
|
members: /* @__PURE__ */ new Set(),
|
|
2896
|
-
backstop: setTimeout(() => t(r,
|
|
3074
|
+
backstop: setTimeout(() => t(r, i), n),
|
|
3075
|
+
backstopMs: n
|
|
2897
3076
|
};
|
|
2898
|
-
e.set(r,
|
|
3077
|
+
e.set(r, i), o = i;
|
|
2899
3078
|
}
|
|
2900
3079
|
let s = o, c = {
|
|
2901
3080
|
release: i,
|
|
2902
3081
|
ready: !1,
|
|
2903
|
-
cancelReadiness:
|
|
3082
|
+
cancelReadiness: Jn(() => {
|
|
2904
3083
|
c.ready = !0, n(s) && t(r, s);
|
|
2905
3084
|
}, a)
|
|
2906
3085
|
};
|
|
@@ -2917,7 +3096,7 @@ function Tn() {
|
|
|
2917
3096
|
}
|
|
2918
3097
|
//#endregion
|
|
2919
3098
|
//#region src/screen/observeBarHeight.ts
|
|
2920
|
-
function
|
|
3099
|
+
function Qn(e, t) {
|
|
2921
3100
|
e.offsetHeight > 0 && t(e.offsetHeight);
|
|
2922
3101
|
let n = new ResizeObserver(([e]) => {
|
|
2923
3102
|
e.contentRect.height > 0 && t(e.contentRect.height);
|
|
@@ -2928,14 +3107,14 @@ function En(e, t) {
|
|
|
2928
3107
|
}
|
|
2929
3108
|
//#endregion
|
|
2930
3109
|
//#region src/screen/observeViewportScrollHeight.ts
|
|
2931
|
-
var
|
|
2932
|
-
function
|
|
3110
|
+
var $n = 0;
|
|
3111
|
+
function er(e) {
|
|
2933
3112
|
let t = 0, n = () => {
|
|
2934
3113
|
cancelAnimationFrame(t), t = requestAnimationFrame(() => {
|
|
2935
3114
|
let t = document.documentElement.scrollHeight - (window.visualViewport?.height || 0);
|
|
2936
3115
|
t = t < 0 ? 0 : t;
|
|
2937
|
-
let n = t -
|
|
2938
|
-
n = n < 0 ? 0 : n,
|
|
3116
|
+
let n = t - $n;
|
|
3117
|
+
n = n < 0 ? 0 : n, $n ||= t, e(t, n);
|
|
2939
3118
|
});
|
|
2940
3119
|
};
|
|
2941
3120
|
return window.visualViewport?.addEventListener("resize", n), window.visualViewport?.addEventListener("scroll", n), () => {
|
|
@@ -2943,8 +3122,187 @@ function On(e) {
|
|
|
2943
3122
|
};
|
|
2944
3123
|
}
|
|
2945
3124
|
//#endregion
|
|
3125
|
+
//#region src/core/engine/imageDecodeOffloader.ts
|
|
3126
|
+
var tr = 8, nr = 2, Q = 96, rr = 15e3, ir = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", ar = "data-flemo-image-src", or = "flemo-image-scale-v1", sr = (e) => {
|
|
3127
|
+
if (e.naturalWidth <= 0 || e.naturalHeight <= 0 || e.boxWidth <= 0 || e.boxHeight <= 0) return !1;
|
|
3128
|
+
let t = e.boxWidth * e.boxHeight * e.devicePixelRatio * e.devicePixelRatio;
|
|
3129
|
+
return e.naturalWidth * e.naturalHeight > t * 8;
|
|
3130
|
+
}, cr = "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};", lr = () => typeof Worker < "u" && typeof OffscreenCanvas < "u" && typeof createImageBitmap == "function" && typeof MutationObserver < "u" && typeof URL < "u" && typeof URL.createObjectURL == "function", ur = async (e, t) => {
|
|
3131
|
+
try {
|
|
3132
|
+
if (typeof caches > "u") return;
|
|
3133
|
+
await (await caches.open(or)).put(e, new Response(t, { headers: { "content-type": t.type } }));
|
|
3134
|
+
} catch {}
|
|
3135
|
+
}, dr = async (e) => {
|
|
3136
|
+
try {
|
|
3137
|
+
if (typeof caches > "u") return null;
|
|
3138
|
+
let t = await (await caches.open(or)).match(e);
|
|
3139
|
+
return t ? await t.blob() : null;
|
|
3140
|
+
} catch {
|
|
3141
|
+
return null;
|
|
3142
|
+
}
|
|
3143
|
+
};
|
|
3144
|
+
function fr(e) {
|
|
3145
|
+
if (!lr()) return () => {};
|
|
3146
|
+
let t = null, n = !1, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new WeakSet(), s = /* @__PURE__ */ new Set(), c = () => typeof devicePixelRatio == "number" ? devicePixelRatio : 1, l = () => {
|
|
3147
|
+
if (t) return t;
|
|
3148
|
+
try {
|
|
3149
|
+
t = new Worker(URL.createObjectURL(new Blob([cr])));
|
|
3150
|
+
} catch {
|
|
3151
|
+
return null;
|
|
3152
|
+
}
|
|
3153
|
+
return t.onmessage = (e) => {
|
|
3154
|
+
let { url: t, blob: n, error: r, skip: a } = e.data;
|
|
3155
|
+
if (i.delete(t), r || a || !n) {
|
|
3156
|
+
u(t, "skip");
|
|
3157
|
+
return;
|
|
3158
|
+
}
|
|
3159
|
+
let o = URL.createObjectURL(n);
|
|
3160
|
+
s.add(o), ur(t, n), u(t, o);
|
|
3161
|
+
}, t;
|
|
3162
|
+
}, u = (e, t) => {
|
|
3163
|
+
r.has(e) || r.set(e, t);
|
|
3164
|
+
for (let [t, n] of [...a]) n.url === e && d(t, r.get(e));
|
|
3165
|
+
}, d = (e, t) => {
|
|
3166
|
+
let n = a.get(e);
|
|
3167
|
+
if (n) {
|
|
3168
|
+
if (a.delete(e), clearTimeout(n.timeout), n.detachListeners?.(), n.responsive) {
|
|
3169
|
+
if (t && t !== "skip") {
|
|
3170
|
+
e.setAttribute(ar, n.url), e.removeAttribute("srcset"), e.removeAttribute("sizes");
|
|
3171
|
+
let r = e.closest("picture");
|
|
3172
|
+
if (r) for (let e of Array.from(r.querySelectorAll("source"))) e.removeAttribute("srcset");
|
|
3173
|
+
e.src = t;
|
|
3174
|
+
}
|
|
3175
|
+
} else e.getAttribute("src") === ir && (t && t !== "skip" ? e.src = t : (e.removeAttribute(ar), e.src = n.url));
|
|
3176
|
+
n.previousVisibility ? e.style.visibility = n.previousVisibility : e.style.removeProperty("visibility");
|
|
3177
|
+
}
|
|
3178
|
+
}, f = (e, t, n) => {
|
|
3179
|
+
if (r.has(e) || i.has(e)) return;
|
|
3180
|
+
let a = l();
|
|
3181
|
+
if (!a) return;
|
|
3182
|
+
i.add(e);
|
|
3183
|
+
let o = Math.round(Math.max(Q, t * c()) * nr), s = Math.max(t * n, Q * Q) * c() ** 2;
|
|
3184
|
+
a.postMessage({
|
|
3185
|
+
url: e,
|
|
3186
|
+
targetWidth: o,
|
|
3187
|
+
neededArea: s,
|
|
3188
|
+
ratio: 8
|
|
3189
|
+
});
|
|
3190
|
+
}, p = (e) => {
|
|
3191
|
+
if (e.complete && e.naturalWidth > 0) return;
|
|
3192
|
+
let t = {
|
|
3193
|
+
url: "",
|
|
3194
|
+
previousVisibility: e.style.visibility,
|
|
3195
|
+
timeout: setTimeout(() => d(e, null), rr),
|
|
3196
|
+
responsive: !0
|
|
3197
|
+
}, i = () => {
|
|
3198
|
+
/* v8 ignore next -- consider() only routes elements with an https src
|
|
3199
|
+
here, so the final fallback arm is unreachable. */
|
|
3200
|
+
let i = e.currentSrc || e.getAttribute("src") || "", o = e.getBoundingClientRect();
|
|
3201
|
+
if (!(/^https?:/.test(i) && sr({
|
|
3202
|
+
naturalWidth: e.naturalWidth,
|
|
3203
|
+
naturalHeight: e.naturalHeight,
|
|
3204
|
+
boxWidth: o.width || Q,
|
|
3205
|
+
boxHeight: o.height || Q,
|
|
3206
|
+
devicePixelRatio: c()
|
|
3207
|
+
}))) {
|
|
3208
|
+
d(e, null);
|
|
3209
|
+
return;
|
|
3210
|
+
}
|
|
3211
|
+
t.url = i;
|
|
3212
|
+
let l = r.get(i);
|
|
3213
|
+
if (l) {
|
|
3214
|
+
d(e, l);
|
|
3215
|
+
return;
|
|
3216
|
+
}
|
|
3217
|
+
dr(i).then((t) => {
|
|
3218
|
+
if (!(n || !a.has(e))) {
|
|
3219
|
+
/* v8 ignore start -- a verdict can only appear via settle(), which
|
|
3220
|
+
releases every held element of the url first, so a still-held
|
|
3221
|
+
element cannot observe an existing verdict here; kept as a guard
|
|
3222
|
+
against future settle() reorderings. */
|
|
3223
|
+
if (r.has(i)) {
|
|
3224
|
+
d(e, r.get(i));
|
|
3225
|
+
return;
|
|
3226
|
+
}
|
|
3227
|
+
/* v8 ignore stop */
|
|
3228
|
+
if (t) {
|
|
3229
|
+
let e = URL.createObjectURL(t);
|
|
3230
|
+
s.add(e), u(i, e);
|
|
3231
|
+
return;
|
|
3232
|
+
}
|
|
3233
|
+
f(i, o.width || Q, o.height || Q);
|
|
3234
|
+
}
|
|
3235
|
+
});
|
|
3236
|
+
}, o = () => d(e, null);
|
|
3237
|
+
t.detachListeners = () => {
|
|
3238
|
+
e.removeEventListener("load", i), e.removeEventListener("error", o);
|
|
3239
|
+
}, e.addEventListener("load", i), e.addEventListener("error", o), a.set(e, t), e.style.visibility = "hidden";
|
|
3240
|
+
}, m = (e) => {
|
|
3241
|
+
if (n || o.has(e) || e.getAttribute("data-flemo-image-src") !== null) return;
|
|
3242
|
+
let t = e.getAttribute("src") ?? "";
|
|
3243
|
+
if (!/^https?:/.test(t)) return;
|
|
3244
|
+
if (e.getAttribute("srcset") !== null || e.closest("picture") !== null) {
|
|
3245
|
+
o.add(e), p(e);
|
|
3246
|
+
return;
|
|
3247
|
+
}
|
|
3248
|
+
if (o.add(e), e.complete && e.naturalWidth > 0) {
|
|
3249
|
+
let n = e.getBoundingClientRect();
|
|
3250
|
+
f(t, n.width || Q, n.height || Q);
|
|
3251
|
+
return;
|
|
3252
|
+
}
|
|
3253
|
+
let i = r.get(t);
|
|
3254
|
+
if (i !== "skip") {
|
|
3255
|
+
if (i) {
|
|
3256
|
+
e.setAttribute(ar, t), e.src = i;
|
|
3257
|
+
return;
|
|
3258
|
+
}
|
|
3259
|
+
a.set(e, {
|
|
3260
|
+
url: t,
|
|
3261
|
+
previousVisibility: e.style.visibility,
|
|
3262
|
+
timeout: setTimeout(() => d(e, null), rr)
|
|
3263
|
+
}), e.style.visibility = "hidden", e.setAttribute(ar, t), e.src = ir, dr(t).then((i) => {
|
|
3264
|
+
if (n || r.has(t)) return;
|
|
3265
|
+
if (i) {
|
|
3266
|
+
let e = URL.createObjectURL(i);
|
|
3267
|
+
s.add(e), u(t, e);
|
|
3268
|
+
return;
|
|
3269
|
+
}
|
|
3270
|
+
let a = () => {
|
|
3271
|
+
if (n) return;
|
|
3272
|
+
let r = e.getBoundingClientRect();
|
|
3273
|
+
f(t, r.width || Q, r.height || Q);
|
|
3274
|
+
};
|
|
3275
|
+
typeof requestAnimationFrame == "function" ? requestAnimationFrame(a) : a();
|
|
3276
|
+
});
|
|
3277
|
+
}
|
|
3278
|
+
}, h = (e) => {
|
|
3279
|
+
if (e instanceof HTMLImageElement && m(e), typeof e.querySelectorAll == "function") for (let t of Array.from(e.querySelectorAll("img"))) m(t);
|
|
3280
|
+
}, g = new MutationObserver((e) => {
|
|
3281
|
+
for (let t of e) for (let e of Array.from(t.addedNodes)) e instanceof Element && h(e);
|
|
3282
|
+
});
|
|
3283
|
+
return g.observe(e, {
|
|
3284
|
+
childList: !0,
|
|
3285
|
+
subtree: !0
|
|
3286
|
+
}), h(e), () => {
|
|
3287
|
+
n = !0, g.disconnect(), t?.terminate(), t = null;
|
|
3288
|
+
for (let e of [...a.keys()]) d(e, null);
|
|
3289
|
+
i.clear(), r.clear();
|
|
3290
|
+
for (let e of s) URL.revokeObjectURL(e);
|
|
3291
|
+
s.clear();
|
|
3292
|
+
};
|
|
3293
|
+
}
|
|
3294
|
+
var $ = null;
|
|
3295
|
+
function pr() {
|
|
3296
|
+
return typeof document > "u" || !document.body ? () => {} : ($ ? $.count += 1 : $ = {
|
|
3297
|
+
dispose: fr(document.body),
|
|
3298
|
+
count: 1
|
|
3299
|
+
}, () => {
|
|
3300
|
+
$ && (--$.count, $.count <= 0 && ($.dispose(), $ = null));
|
|
3301
|
+
});
|
|
3302
|
+
}
|
|
3303
|
+
//#endregion
|
|
2946
3304
|
//#region src/utils/isOpaqueColor.ts
|
|
2947
|
-
function
|
|
3305
|
+
function mr(e) {
|
|
2948
3306
|
let t = e.trim().toLowerCase();
|
|
2949
3307
|
if (t === "transparent" || t === "") return !1;
|
|
2950
3308
|
if (t.match(/^rgb\(\s*\d+[\s,]+\d+[\s,]+\d+\s*\)$/)) return !0;
|
|
@@ -2955,7 +3313,7 @@ function kn(e) {
|
|
|
2955
3313
|
}
|
|
2956
3314
|
//#endregion
|
|
2957
3315
|
//#region src/utils/buildRoutePath.ts
|
|
2958
|
-
function
|
|
3316
|
+
function hr(e, n) {
|
|
2959
3317
|
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();
|
|
2960
3318
|
return {
|
|
2961
3319
|
pathname: `${a}${c ? `?${c}` : ""}`,
|
|
@@ -2963,4 +3321,4 @@ function An(e, n) {
|
|
|
2963
3321
|
};
|
|
2964
3322
|
}
|
|
2965
3323
|
//#endregion
|
|
2966
|
-
export {
|
|
3324
|
+
export { Rn as ANIM_HOLD_RELEASE_BACKSTOP_MS, ar as OFFLOADED_SRC_ATTR, tr as OVERSIZE_AREA_RATIO, hn as SKIP_ANIMATION_ATTR, s as TaskManger, Ln as animHoldKey, J as animateInline, W as animationName, ae as appendParamsQuery, rt as applyTransitionStyles, hr as buildRoutePath, On as canProgrammaticallyScroll, q as clearInlineAnimation, We as collectAnimatedProperties, $e as compileTransitionStyles, jn as computeBarRiding, me as computeScreenFreeze, b as consumeSelfInducedPop, Zn as createAnimHoldCoordinator, g as createBrowserHistoryDriver, xe as createDecorator, c as createHistoryStore, x as createHistorySync, fr as createImageDecodeOffloader, ne as createMemoryHistoryDriver, k as createNavigateStore, re as createNavigationController, Te as createPartTransition, Se as createRawDecorator, Ee as createRawPartTransition, he as createRawTransition, fe as createRouterScope, pe as createScreenSelector, ue as createScreenStore, _ as createSelfPopGuard, oe as createStepController, An as createSwipeController, P as createTransition, wn as createTransitionEngine, ce as createTransitionStore, _e as cupertino, R as decoratorMap, Vn as eagerlyDecodeImages, Ge as easingToCss, pr as ensureImageDecodeOffloader, O as ensureScopeHistorySync, p as ensureWindowHistoryState, ut as enteringInitialStyle, Tn as findScrollable, l as getMatchedPathPattern, u as getParams, It as holdCompositorWarm, mr as isOpaqueColor, f as isServer, F as layout, y as markSelfInducedPop, le as matchesPathname, ye as material, I as none, Qn as observeBarHeight, er as observeViewportScrollHeight, Dn as overflowsAxis, we as overlay, z as partTransitionMap, ie as readStepParams, lt as registerTransitionDefinitions, te as releaseScopeHistorySync, be as resolveTransition, Yn as scheduleAnimHoldRelease, d as seedInitialHistory, m as seedRouterEntry, sr as shouldOffloadImage, se as subscribeStepParamsRestore, H as targetToDecls, L as transitionMap, G as variantHasAnimation };
|