@tamagui/animations-motion 3.0.17 → 3.1.0
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/cjs/createAnimations.cjs +26 -7
- package/dist/cjs/createAnimations.native.cjs +26 -7
- package/dist/cjs/createAnimations.native.js +26 -7
- package/dist/cjs/createAnimations.native.js.map +1 -1
- package/dist/esm/createAnimations.mjs +26 -7
- package/dist/esm/createAnimations.mjs.map +1 -1
- package/dist/esm/createAnimations.native.js +26 -7
- package/dist/esm/createAnimations.native.js.map +1 -1
- package/package.json +7 -7
- package/src/createAnimations.tsx +32 -11
- package/types/createAnimations.d.ts.map +2 -2
|
@@ -52,6 +52,7 @@ function assignInlineStyles(node, styles) {
|
|
|
52
52
|
}
|
|
53
53
|
const MotionValueStrategy = /* @__PURE__ */ new WeakMap();
|
|
54
54
|
const PendingMotionOnFinish = /* @__PURE__ */ new WeakMap();
|
|
55
|
+
const pendingDirectStyles = /* @__PURE__ */ new WeakMap();
|
|
55
56
|
function settlePendingMotionOnFinish(mv, controls) {
|
|
56
57
|
const onFinish = PendingMotionOnFinish.get(mv);
|
|
57
58
|
if (!onFinish) return;
|
|
@@ -839,13 +840,31 @@ function createMotionView(defaultTag) {
|
|
|
839
840
|
type: "spring",
|
|
840
841
|
...animationConfig
|
|
841
842
|
};
|
|
842
|
-
const animateNodeTo = (nextStyle,
|
|
843
|
+
const animateNodeTo = (nextStyle, strategy, motionValue3) => {
|
|
843
844
|
if (!(node instanceof HTMLElement) || hostRef.current !== node) return;
|
|
844
845
|
const webStyle = resolvedAnimatedStyle?.resolve(nextStyle);
|
|
845
846
|
if (!webStyle) return;
|
|
846
|
-
|
|
847
|
+
const directStyle = pendingDirectStyles.get(node);
|
|
848
|
+
const isDirect = strategy?.type === "direct";
|
|
849
|
+
let target = webStyle;
|
|
850
|
+
if (directStyle && !isDirect) {
|
|
851
|
+
target = { ...webStyle };
|
|
852
|
+
for (const key in directStyle) {
|
|
853
|
+
if (key in webStyle) target[key] = [directStyle[key], webStyle[key]];
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
if (isDirect) {
|
|
857
|
+
assignInlineStyles(node, webStyle);
|
|
858
|
+
pendingDirectStyles.set(node, webStyle);
|
|
859
|
+
requestAnimationFrame(() => {
|
|
860
|
+
if (pendingDirectStyles.get(node) === webStyle) {
|
|
861
|
+
pendingDirectStyles.delete(node);
|
|
862
|
+
}
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
settlePendingMotionOnFinish(motionValue3, animate(node, target, toTransition(strategy)));
|
|
847
866
|
};
|
|
848
|
-
const animateChangedValue = (nextStyle,
|
|
867
|
+
const animateChangedValue = (nextStyle, strategy, motionValue3) => {
|
|
849
868
|
if (seededInCurrentFrame.current && seededNode.current === node) {
|
|
850
869
|
const queuedFrame = queuedAnimationFrames.current.get(motionValue3);
|
|
851
870
|
if (queuedFrame !== void 0) cancelAnimationFrame(queuedFrame);
|
|
@@ -853,7 +872,7 @@ function createMotionView(defaultTag) {
|
|
|
853
872
|
if (queuedAnimationFrames.current.get(motionValue3) !== frame) return;
|
|
854
873
|
queuedAnimationFrames.current.delete(motionValue3);
|
|
855
874
|
if (hostRef.current === node) {
|
|
856
|
-
animateNodeTo(nextStyle,
|
|
875
|
+
animateNodeTo(nextStyle, strategy, motionValue3);
|
|
857
876
|
} else {
|
|
858
877
|
const onFinish = PendingMotionOnFinish.get(motionValue3);
|
|
859
878
|
PendingMotionOnFinish.delete(motionValue3);
|
|
@@ -863,17 +882,17 @@ function createMotionView(defaultTag) {
|
|
|
863
882
|
queuedAnimationFrames.current.set(motionValue3, frame);
|
|
864
883
|
return;
|
|
865
884
|
}
|
|
866
|
-
animateNodeTo(nextStyle,
|
|
885
|
+
animateNodeTo(nextStyle, strategy, motionValue3);
|
|
867
886
|
};
|
|
868
887
|
if (animatedStyle.motionValues) {
|
|
869
888
|
const mvs = animatedStyle.motionValues;
|
|
870
889
|
const styleForAll = () => animatedStyle.getStyle(...mvs.map((value) => value.get()));
|
|
871
|
-
const unsubs = mvs.map((mv) => mv.on("change", () => animateChangedValue(styleForAll(),
|
|
890
|
+
const unsubs = mvs.map((mv) => mv.on("change", () => animateChangedValue(styleForAll(), MotionValueStrategy.get(mv), mv)));
|
|
872
891
|
return () => unsubs.forEach((fn) => fn());
|
|
873
892
|
}
|
|
874
893
|
const motionValue2 = animatedStyle.motionValue;
|
|
875
894
|
if (!motionValue2) return;
|
|
876
|
-
return motionValue2.on("change", (value) => animateChangedValue(animatedStyle.getStyle(value),
|
|
895
|
+
return motionValue2.on("change", (value) => animateChangedValue(animatedStyle.getStyle(value), MotionValueStrategy.get(motionValue2), motionValue2));
|
|
877
896
|
}, [animatedStyle, resolvedAnimatedStyle]);
|
|
878
897
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, {
|
|
879
898
|
...transformedProps,
|
|
@@ -56,6 +56,7 @@ function assignInlineStyles(node, styles) {
|
|
|
56
56
|
}
|
|
57
57
|
var MotionValueStrategy = /* @__PURE__ */ new WeakMap();
|
|
58
58
|
var PendingMotionOnFinish = /* @__PURE__ */ new WeakMap();
|
|
59
|
+
var pendingDirectStyles = /* @__PURE__ */ new WeakMap();
|
|
59
60
|
function settlePendingMotionOnFinish(mv, controls) {
|
|
60
61
|
var onFinish = PendingMotionOnFinish.get(mv);
|
|
61
62
|
if (!onFinish) return;
|
|
@@ -1002,13 +1003,31 @@ function createMotionView(defaultTag) {
|
|
|
1002
1003
|
...animationConfig
|
|
1003
1004
|
};
|
|
1004
1005
|
};
|
|
1005
|
-
var animateNodeTo = function animateNodeTo2(nextStyle,
|
|
1006
|
+
var animateNodeTo = function animateNodeTo2(nextStyle, strategy, motionValue3) {
|
|
1006
1007
|
if (!(node instanceof HTMLElement) || hostRef.current !== node) return;
|
|
1007
1008
|
var webStyle2 = resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(nextStyle);
|
|
1008
1009
|
if (!webStyle2) return;
|
|
1009
|
-
|
|
1010
|
+
var directStyle = pendingDirectStyles.get(node);
|
|
1011
|
+
var isDirect = (strategy === null || strategy === void 0 ? void 0 : strategy.type) === "direct";
|
|
1012
|
+
var target = webStyle2;
|
|
1013
|
+
if (directStyle && !isDirect) {
|
|
1014
|
+
target = { ...webStyle2 };
|
|
1015
|
+
for (var key2 in directStyle) {
|
|
1016
|
+
if (key2 in webStyle2) target[key2] = [directStyle[key2], webStyle2[key2]];
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
if (isDirect) {
|
|
1020
|
+
assignInlineStyles(node, webStyle2);
|
|
1021
|
+
pendingDirectStyles.set(node, webStyle2);
|
|
1022
|
+
requestAnimationFrame(function() {
|
|
1023
|
+
if (pendingDirectStyles.get(node) === webStyle2) {
|
|
1024
|
+
pendingDirectStyles.delete(node);
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
settlePendingMotionOnFinish(motionValue3, animate(node, target, toTransition(strategy)));
|
|
1010
1029
|
};
|
|
1011
|
-
var animateChangedValue = function animateChangedValue2(nextStyle,
|
|
1030
|
+
var animateChangedValue = function animateChangedValue2(nextStyle, strategy, motionValue3) {
|
|
1012
1031
|
if (seededInCurrentFrame.current && seededNode.current === node) {
|
|
1013
1032
|
var queuedFrame = queuedAnimationFrames.current.get(motionValue3);
|
|
1014
1033
|
if (queuedFrame !== void 0) cancelAnimationFrame(queuedFrame);
|
|
@@ -1016,7 +1035,7 @@ function createMotionView(defaultTag) {
|
|
|
1016
1035
|
if (queuedAnimationFrames.current.get(motionValue3) !== frame) return;
|
|
1017
1036
|
queuedAnimationFrames.current.delete(motionValue3);
|
|
1018
1037
|
if (hostRef.current === node) {
|
|
1019
|
-
animateNodeTo(nextStyle,
|
|
1038
|
+
animateNodeTo(nextStyle, strategy, motionValue3);
|
|
1020
1039
|
} else {
|
|
1021
1040
|
var onFinish = PendingMotionOnFinish.get(motionValue3);
|
|
1022
1041
|
PendingMotionOnFinish.delete(motionValue3);
|
|
@@ -1026,7 +1045,7 @@ function createMotionView(defaultTag) {
|
|
|
1026
1045
|
queuedAnimationFrames.current.set(motionValue3, frame);
|
|
1027
1046
|
return;
|
|
1028
1047
|
}
|
|
1029
|
-
animateNodeTo(nextStyle,
|
|
1048
|
+
animateNodeTo(nextStyle, strategy, motionValue3);
|
|
1030
1049
|
};
|
|
1031
1050
|
if (animatedStyle.motionValues) {
|
|
1032
1051
|
var mvs = animatedStyle.motionValues;
|
|
@@ -1037,7 +1056,7 @@ function createMotionView(defaultTag) {
|
|
|
1037
1056
|
};
|
|
1038
1057
|
var unsubs = mvs.map(function(mv) {
|
|
1039
1058
|
return mv.on("change", function() {
|
|
1040
|
-
return animateChangedValue(styleForAll(),
|
|
1059
|
+
return animateChangedValue(styleForAll(), MotionValueStrategy.get(mv), mv);
|
|
1041
1060
|
});
|
|
1042
1061
|
});
|
|
1043
1062
|
return function() {
|
|
@@ -1049,7 +1068,7 @@ function createMotionView(defaultTag) {
|
|
|
1049
1068
|
var motionValue2 = animatedStyle.motionValue;
|
|
1050
1069
|
if (!motionValue2) return;
|
|
1051
1070
|
return motionValue2.on("change", function(value) {
|
|
1052
|
-
return animateChangedValue(animatedStyle.getStyle(value),
|
|
1071
|
+
return animateChangedValue(animatedStyle.getStyle(value), MotionValueStrategy.get(motionValue2), motionValue2);
|
|
1053
1072
|
});
|
|
1054
1073
|
}, [animatedStyle, resolvedAnimatedStyle]);
|
|
1055
1074
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, {
|
|
@@ -56,6 +56,7 @@ function assignInlineStyles(node, styles) {
|
|
|
56
56
|
}
|
|
57
57
|
var MotionValueStrategy = /* @__PURE__ */ new WeakMap();
|
|
58
58
|
var PendingMotionOnFinish = /* @__PURE__ */ new WeakMap();
|
|
59
|
+
var pendingDirectStyles = /* @__PURE__ */ new WeakMap();
|
|
59
60
|
function settlePendingMotionOnFinish(mv, controls) {
|
|
60
61
|
var onFinish = PendingMotionOnFinish.get(mv);
|
|
61
62
|
if (!onFinish) return;
|
|
@@ -1002,13 +1003,31 @@ function createMotionView(defaultTag) {
|
|
|
1002
1003
|
...animationConfig
|
|
1003
1004
|
};
|
|
1004
1005
|
};
|
|
1005
|
-
var animateNodeTo = function animateNodeTo2(nextStyle,
|
|
1006
|
+
var animateNodeTo = function animateNodeTo2(nextStyle, strategy, motionValue3) {
|
|
1006
1007
|
if (!(node instanceof HTMLElement) || hostRef.current !== node) return;
|
|
1007
1008
|
var webStyle2 = resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(nextStyle);
|
|
1008
1009
|
if (!webStyle2) return;
|
|
1009
|
-
|
|
1010
|
+
var directStyle = pendingDirectStyles.get(node);
|
|
1011
|
+
var isDirect = (strategy === null || strategy === void 0 ? void 0 : strategy.type) === "direct";
|
|
1012
|
+
var target = webStyle2;
|
|
1013
|
+
if (directStyle && !isDirect) {
|
|
1014
|
+
target = { ...webStyle2 };
|
|
1015
|
+
for (var key2 in directStyle) {
|
|
1016
|
+
if (key2 in webStyle2) target[key2] = [directStyle[key2], webStyle2[key2]];
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
if (isDirect) {
|
|
1020
|
+
assignInlineStyles(node, webStyle2);
|
|
1021
|
+
pendingDirectStyles.set(node, webStyle2);
|
|
1022
|
+
requestAnimationFrame(function() {
|
|
1023
|
+
if (pendingDirectStyles.get(node) === webStyle2) {
|
|
1024
|
+
pendingDirectStyles.delete(node);
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
settlePendingMotionOnFinish(motionValue3, animate(node, target, toTransition(strategy)));
|
|
1010
1029
|
};
|
|
1011
|
-
var animateChangedValue = function animateChangedValue2(nextStyle,
|
|
1030
|
+
var animateChangedValue = function animateChangedValue2(nextStyle, strategy, motionValue3) {
|
|
1012
1031
|
if (seededInCurrentFrame.current && seededNode.current === node) {
|
|
1013
1032
|
var queuedFrame = queuedAnimationFrames.current.get(motionValue3);
|
|
1014
1033
|
if (queuedFrame !== void 0) cancelAnimationFrame(queuedFrame);
|
|
@@ -1016,7 +1035,7 @@ function createMotionView(defaultTag) {
|
|
|
1016
1035
|
if (queuedAnimationFrames.current.get(motionValue3) !== frame) return;
|
|
1017
1036
|
queuedAnimationFrames.current.delete(motionValue3);
|
|
1018
1037
|
if (hostRef.current === node) {
|
|
1019
|
-
animateNodeTo(nextStyle,
|
|
1038
|
+
animateNodeTo(nextStyle, strategy, motionValue3);
|
|
1020
1039
|
} else {
|
|
1021
1040
|
var onFinish = PendingMotionOnFinish.get(motionValue3);
|
|
1022
1041
|
PendingMotionOnFinish.delete(motionValue3);
|
|
@@ -1026,7 +1045,7 @@ function createMotionView(defaultTag) {
|
|
|
1026
1045
|
queuedAnimationFrames.current.set(motionValue3, frame);
|
|
1027
1046
|
return;
|
|
1028
1047
|
}
|
|
1029
|
-
animateNodeTo(nextStyle,
|
|
1048
|
+
animateNodeTo(nextStyle, strategy, motionValue3);
|
|
1030
1049
|
};
|
|
1031
1050
|
if (animatedStyle.motionValues) {
|
|
1032
1051
|
var mvs = animatedStyle.motionValues;
|
|
@@ -1037,7 +1056,7 @@ function createMotionView(defaultTag) {
|
|
|
1037
1056
|
};
|
|
1038
1057
|
var unsubs = mvs.map(function(mv) {
|
|
1039
1058
|
return mv.on("change", function() {
|
|
1040
|
-
return animateChangedValue(styleForAll(),
|
|
1059
|
+
return animateChangedValue(styleForAll(), MotionValueStrategy.get(mv), mv);
|
|
1041
1060
|
});
|
|
1042
1061
|
});
|
|
1043
1062
|
return function() {
|
|
@@ -1049,7 +1068,7 @@ function createMotionView(defaultTag) {
|
|
|
1049
1068
|
var motionValue2 = animatedStyle.motionValue;
|
|
1050
1069
|
if (!motionValue2) return;
|
|
1051
1070
|
return motionValue2.on("change", function(value) {
|
|
1052
|
-
return animateChangedValue(animatedStyle.getStyle(value),
|
|
1071
|
+
return animateChangedValue(animatedStyle.getStyle(value), MotionValueStrategy.get(motionValue2), motionValue2);
|
|
1053
1072
|
});
|
|
1054
1073
|
}, [animatedStyle, resolvedAnimatedStyle]);
|
|
1055
1074
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAnimations.native.js","names":[],"sources":["cjs/createAnimations.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar createAnimations_exports = {};\n__export(createAnimations_exports, {\n createAnimations: () => createAnimations,\n disableAnimationProps: () => disableAnimationProps\n});\nmodule.exports = __toCommonJS(createAnimations_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_animation_helpers = require(\"@tamagui/animation-helpers\");\nvar import_use_presence = require(\"@tamagui/use-presence\");\nvar import_web = require(\"@tamagui/web\");\nvar import_internal_runtime = require(\"@tamagui/web/internal-runtime\");\nvar import_react = require(\"motion/react\");\nvar import_react2 = __toESM(require(\"react\"), 1);\nvar isServer = typeof window === \"undefined\";\nfunction useAnimateSSRSafe() {\n if (isServer) {\n return [\n (0, import_react2.useRef)(null),\n function() {\n }\n ];\n }\n return (0, import_react.useAnimate)();\n}\nvar asStyleRecord = function asStyleRecord2(style) {\n return style && typeof style === \"object\" && !Array.isArray(style) ? style : {};\n};\nfunction assignInlineStyles(node, styles) {\n for (var key in styles) {\n node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(styles[key], key);\n }\n}\nvar MotionValueStrategy = /* @__PURE__ */ new WeakMap();\nvar PendingMotionOnFinish = /* @__PURE__ */ new WeakMap();\nfunction settlePendingMotionOnFinish(mv, controls) {\n var onFinish = PendingMotionOnFinish.get(mv);\n if (!onFinish) return;\n PendingMotionOnFinish.delete(mv);\n controls.then(function() {\n return onFinish();\n }).catch(function() {\n return onFinish();\n });\n}\nvar PopperPositionAnims = /* @__PURE__ */ new WeakMap();\nfunction parseTranslate(transform) {\n if (!transform || transform === \"none\") return {\n x: 0,\n y: 0\n };\n try {\n var m = new DOMMatrixReadOnly(transform);\n if (!m.is2D || m.a !== 1 || m.b !== 0 || m.c !== 0 || m.d !== 1) return null;\n return {\n x: m.e,\n y: m.f\n };\n } catch (unused) {\n return null;\n }\n}\nfunction createAnimations(animations) {\n var isHydratingGlobal;\n var hydratingComponents = /* @__PURE__ */ new Set();\n return {\n View: MotionView,\n Text: MotionText,\n inputStyle: \"css\",\n outputStyle: \"inline\",\n avoidReRenders: true,\n animations,\n usePresence: import_use_presence.usePresence,\n ResetPresence: import_use_presence.ResetPresence,\n onMount() {\n isHydratingGlobal = false;\n hydratingComponents.forEach(function(cb) {\n return cb();\n });\n },\n useAnimations: function useAnimations(animationProps) {\n var _ref;\n if (isHydratingGlobal === void 0 && !(0, import_web.getConfig)().settings.disableSSR) {\n isHydratingGlobal = true;\n }\n var { props, style, componentState, stateRef, useStyleEmitter, presence, onTransition, styleProps, styleState } = animationProps;\n var effectiveTransition = (_ref = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _ref !== void 0 ? _ref : props.transition;\n var isComponentHydrating = componentState.unmounted === true;\n var isMounting = componentState.unmounted === \"should-enter\";\n var isEntering = !!componentState.unmounted;\n var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;\n var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];\n var refs = (0, import_react2.useRef)(null);\n if (!refs.current) {\n refs.current = {\n isFirstRender: true,\n lastDoAnimate: null,\n lastDontAnimate: null,\n controls: null,\n lastAnimateAt: 0,\n disposed: false,\n wasExiting: false,\n isExiting: false,\n sendExitComplete: void 0,\n animationState: \"default\",\n frozenExitTarget: null,\n exitCompleteScheduled: false,\n enterCompleteScheduled: false,\n disableAnimation: true,\n wasEntering: false,\n wasDisabled: false,\n onTransition: void 0,\n enterStarted: false,\n exitStarted: false,\n updateInFlight: false,\n updateControls: null,\n wasNoClass: !!styleProps.noClass\n };\n }\n var emit = function emit2(phase, cause, finished) {\n var _refs_current_onTransition, _refs_current;\n (_refs_current_onTransition = (_refs_current = refs.current).onTransition) === null || _refs_current_onTransition === void 0 ? void 0 : _refs_current_onTransition.call(_refs_current, phase === \"end\" ? {\n phase,\n cause,\n finished\n } : {\n phase,\n cause\n });\n };\n var justFinishedEntering = refs.current.wasEntering && !isEntering;\n (0, import_react2.useEffect)(function() {\n refs.current.wasEntering = isEntering;\n });\n var animationState = isExiting ? \"exit\" : isMounting || justFinishedEntering ? \"enter\" : \"default\";\n var disableAnimation = isComponentHydrating || isMounting || !effectiveTransition;\n var [scope] = useAnimateSSRSafe();\n refs.current.isExiting = isExiting;\n refs.current.sendExitComplete = sendExitComplete;\n refs.current.animationState = animationState;\n refs.current.disableAnimation = disableAnimation;\n refs.current.onTransition = onTransition;\n var justStartedExiting = isExiting && !refs.current.wasExiting;\n var justStoppedExiting = !isExiting && refs.current.wasExiting;\n if (justStartedExiting || justStoppedExiting) {\n refs.current.frozenExitTarget = null;\n refs.current.exitCompleteScheduled = false;\n refs.current.enterCompleteScheduled = false;\n }\n (0, import_react2.useEffect)(function() {\n refs.current.wasExiting = isExiting;\n });\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (justStoppedExiting && refs.current.exitStarted) {\n refs.current.exitStarted = false;\n emit(\"end\", \"exit\", false);\n }\n }, [\n justStoppedExiting\n ]);\n var { dontAnimate = {}, doAnimate, animationOptions } = getMotionAnimatedProps(props, style, disableAnimation, animationState, effectiveTransition);\n var [firstRenderStyle] = (0, import_react2.useState)(style);\n if (refs.current.isFirstRender) {\n refs.current.lastDontAnimate = firstRenderStyle;\n }\n var [isHydrating, setIsHydrating] = (0, import_react2.useState)(isHydratingGlobal);\n (0, import_react2.useLayoutEffect)(function() {\n if (isHydratingGlobal) {\n hydratingComponents.add(function() {\n setIsHydrating(false);\n });\n }\n return function() {\n refs.current.disposed = true;\n };\n }, []);\n var flushAnimation = function flushAnimation2(param) {\n var { doAnimate: doAnimateRaw = {}, animationOptions: passedOptions = {}, dontAnimate: dontAnimate2 } = param;\n var startedControls = null;\n var isCurrentlyExiting = refs.current.isExiting;\n var currentSendExitComplete = refs.current.sendExitComplete;\n var currentAnimationState = refs.current.animationState;\n var doAnimate2 = doAnimateRaw;\n if (isCurrentlyExiting && refs.current.frozenExitTarget) {\n doAnimate2 = refs.current.frozenExitTarget;\n }\n var animationOptions2 = isCurrentlyExiting && currentSendExitComplete ? getAnimationOptions((0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)(effectiveTransition !== null && effectiveTransition !== void 0 ? effectiveTransition : null, {\n animations\n }), \"exit\")) : passedOptions;\n try {\n var node = stateRef.current.host;\n if (refs.current.isFirstRender) {\n refs.current.lastDontAnimate = null;\n refs.current.lastDoAnimate = null;\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] && props[\"debug\"] !== \"profile\") {\n console.groupCollapsed(`[motion] animate (${JSON.stringify(getDiff(refs.current.lastDoAnimate, doAnimate2), null, 2)})`);\n console.info({\n props,\n componentState,\n doAnimate: doAnimate2,\n dontAnimate: dontAnimate2,\n animationOptions: animationOptions2,\n animationProps,\n lastDoAnimate: {\n ...refs.current.lastDoAnimate\n },\n lastDontAnimate: {\n ...refs.current.lastDontAnimate\n },\n isExiting,\n style,\n node\n });\n console.groupCollapsed(`trace >`);\n console.trace();\n console.groupEnd();\n console.groupEnd();\n }\n }\n if (!(node instanceof HTMLElement)) {\n return;\n }\n var prevDont = refs.current.lastDontAnimate;\n if (dontAnimate2) {\n if (prevDont) {\n removeRemovedStyles(prevDont, dontAnimate2, node, doAnimate2);\n var changed = getDiff(prevDont, dontAnimate2);\n if (changed) {\n assignInlineStyles(node, changed);\n }\n } else {\n assignInlineStyles(node, dontAnimate2);\n }\n } else if (prevDont) {\n removeRemovedStyles(prevDont, {}, node, doAnimate2);\n }\n if (doAnimate2) {\n if (prevDont) {\n for (var key in prevDont) {\n if (key in doAnimate2) {\n node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(prevDont[key], key);\n if (refs.current.lastDoAnimate) {\n refs.current.lastDoAnimate[key] = prevDont[key];\n }\n }\n }\n }\n var lastAnimated = refs.current.lastDoAnimate;\n if (lastAnimated) {\n removeRemovedStyles(lastAnimated, doAnimate2, node, dontAnimate2);\n }\n var diff = getDiff(refs.current.lastDoAnimate, doAnimate2);\n if (diff) {\n if (isCurrentlyExiting && !refs.current.frozenExitTarget) {\n refs.current.frozenExitTarget = {\n ...doAnimate2\n };\n }\n var isPopperPosition = node.hasAttribute(\"data-popper-animate-position\");\n var popperHandledTransform = false;\n if (isPopperPosition && !isCurrentlyExiting && typeof diff.transform === \"string\") {\n var target = parseTranslate(diff.transform);\n if (target) {\n var _ref2, _ref1, _opts_x;\n var entry = PopperPositionAnims.get(node);\n if (!entry) {\n var seed = target;\n try {\n var _parseTranslate;\n seed = (_parseTranslate = parseTranslate(getComputedStyle(node).transform)) !== null && _parseTranslate !== void 0 ? _parseTranslate : target;\n } catch (unused) {\n }\n var x = (0, import_react.motionValue)(seed.x);\n var y = (0, import_react.motionValue)(seed.y);\n var write = function write2() {\n node.style.transform = `translate3d(${x.get()}px, ${y.get()}px, 0)`;\n };\n x.on(\"change\", write);\n y.on(\"change\", write);\n entry = {\n x,\n y,\n stop: null\n };\n PopperPositionAnims.set(node, entry);\n }\n if (!entry.stop) {\n try {\n var live = parseTranslate(getComputedStyle(node).transform);\n if (live) {\n entry.x.jump(live.x);\n entry.y.jump(live.y);\n }\n } catch (unused) {\n }\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = node.getAnimations()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var anim = _step.value;\n try {\n var _anim_effect_getKeyframes, _anim_effect;\n var kf = (_anim_effect = anim.effect) === null || _anim_effect === void 0 ? void 0 : (_anim_effect_getKeyframes = _anim_effect.getKeyframes) === null || _anim_effect_getKeyframes === void 0 ? void 0 : _anim_effect_getKeyframes.call(_anim_effect);\n if (kf === null || kf === void 0 ? void 0 : kf.some(function(k) {\n return \"transform\" in k;\n })) {\n anim.cancel();\n }\n } catch (unused) {\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n var opts = animationOptions2;\n var positionTransition = (_ref2 = (_ref1 = (_opts_x = opts.x) !== null && _opts_x !== void 0 ? _opts_x : opts.transform) !== null && _ref1 !== void 0 ? _ref1 : opts.default) !== null && _ref2 !== void 0 ? _ref2 : animationOptions2;\n var cx = (0, import_react.animate)(entry.x, target.x, positionTransition);\n var cy = (0, import_react.animate)(entry.y, target.y, positionTransition);\n entry.stop = function() {\n cx.stop();\n cy.stop();\n };\n popperHandledTransform = true;\n }\n }\n if (isCurrentlyExiting) {\n var entry1 = PopperPositionAnims.get(node);\n if (entry1 === null || entry1 === void 0 ? void 0 : entry1.stop) {\n entry1.stop();\n entry1.stop = null;\n }\n }\n var midFlightValues = null;\n if (refs.current.controls) {\n try {\n var computed = getComputedStyle(node);\n midFlightValues = {};\n for (var key1 in diff) {\n var val = computed[key1];\n if (val !== void 0 && val !== \"\") {\n midFlightValues[key1] = val;\n }\n }\n } catch (unused) {\n }\n if (isCurrentlyExiting) {\n refs.current.controls.stop();\n }\n if (midFlightValues) {\n for (var key2 in midFlightValues) {\n if (key2 === \"transform\" && popperHandledTransform) continue;\n node.style[key2] = midFlightValues[key2];\n }\n }\n if (isPopperPosition && !popperHandledTransform) {\n var anims = node.getAnimations();\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = anims[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var anim1 = _step1.value;\n anim1.cancel();\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n }\n var fixedDiff = fixTransparentColors(diff, refs.current.lastDoAnimate, doAnimate2);\n var waapiDiff = Object.fromEntries(Object.entries(fixedDiff).map(function(param2) {\n var [key3, value] = param2;\n return [\n key3,\n Array.isArray(value) ? value.map(function(item) {\n return (0, import_internal_runtime.normalizeValueWithProperty)(item, key3);\n }) : (0, import_internal_runtime.normalizeValueWithProperty)(value, key3)\n ];\n }));\n if (popperHandledTransform && \"transform\" in waapiDiff) {\n waapiDiff = {\n ...waapiDiff\n };\n delete waapiDiff.transform;\n }\n if ((isPopperPosition || isCurrentlyExiting) && (midFlightValues === null || midFlightValues === void 0 ? void 0 : midFlightValues.transform) && waapiDiff.transform) {\n waapiDiff.transform = [\n midFlightValues.transform,\n waapiDiff.transform\n ];\n }\n if (Object.keys(waapiDiff).length > 0) {\n startedControls = (0, import_react.animate)(node, waapiDiff, animationOptions2);\n refs.current.controls = startedControls;\n }\n refs.current.lastAnimateAt = Date.now();\n }\n }\n refs.current.lastDontAnimate = dontAnimate2 ? {\n ...dontAnimate2\n } : {};\n refs.current.lastDoAnimate = doAnimate2 ? {\n ...doAnimate2\n } : {};\n } finally {\n if (isCurrentlyExiting && currentSendExitComplete) {\n if (refs.current.enterStarted) {\n refs.current.enterStarted = false;\n emit(\"end\", \"enter\", false);\n }\n if (startedControls) {\n if (!refs.current.exitStarted) {\n refs.current.exitStarted = true;\n emit(\"start\", \"exit\");\n }\n refs.current.exitCompleteScheduled = true;\n var complete = function complete2(finished) {\n if (!refs.current.isExiting) return;\n if (refs.current.exitStarted) {\n refs.current.exitStarted = false;\n emit(\"end\", \"exit\", finished);\n }\n currentSendExitComplete();\n };\n startedControls.finished.then(function() {\n return complete(true);\n }).catch(function() {\n return complete(false);\n });\n } else if (!refs.current.exitCompleteScheduled) {\n emit(\"start\", \"exit\");\n emit(\"end\", \"exit\", true);\n currentSendExitComplete();\n }\n } else if (currentAnimationState === \"enter\") {\n if (startedControls) {\n if (!refs.current.enterStarted) {\n refs.current.enterStarted = true;\n emit(\"start\", \"enter\");\n }\n refs.current.enterCompleteScheduled = true;\n var complete1 = function complete2(finished) {\n if (refs.current.disposed || refs.current.animationState !== \"enter\") return;\n if (refs.current.enterStarted) {\n refs.current.enterStarted = false;\n emit(\"end\", \"enter\", finished);\n }\n };\n startedControls.finished.then(function() {\n return complete1(true);\n }).catch(function() {\n return complete1(false);\n });\n } else if (!refs.current.enterCompleteScheduled && !refs.current.disableAnimation) {\n emit(\"start\", \"enter\");\n emit(\"end\", \"enter\", true);\n }\n } else if (startedControls) {\n var controls = startedControls;\n if (refs.current.updateInFlight) {\n emit(\"end\", \"update\", false);\n }\n refs.current.updateInFlight = true;\n refs.current.updateControls = controls;\n emit(\"start\", \"update\");\n var settle = function settle2(finished) {\n if (refs.current.updateControls !== controls) return;\n refs.current.updateInFlight = false;\n refs.current.updateControls = null;\n emit(\"end\", \"update\", finished);\n };\n controls.finished.then(function() {\n return settle(true);\n }).catch(function() {\n return settle(false);\n });\n }\n }\n };\n useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(function(nextStyle, emittedTransition) {\n var _$animationProps = getMotionAnimatedProps(props, nextStyle, disableAnimation, refs.current.animationState, emittedTransition !== null && emittedTransition !== void 0 ? emittedTransition : effectiveTransition);\n flushAnimation(_$animationProps);\n });\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (refs.current.isFirstRender) {\n refs.current.isFirstRender = false;\n refs.current.wasDisabled = disableAnimation;\n if (isHydrating) {\n if (doAnimate && Object.keys(doAnimate).length > 0) {\n refs.current.lastDoAnimate = {\n ...doAnimate\n };\n } else {\n refs.current.lastDoAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastAnimateAt = Date.now();\n return;\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastDoAnimate = doAnimate ? {\n ...doAnimate\n } : {};\n return;\n }\n var justEnabled = refs.current.wasDisabled && !disableAnimation;\n refs.current.wasDisabled = disableAnimation;\n var justStrippedClasses = !refs.current.wasNoClass && !!styleProps.noClass;\n refs.current.wasNoClass = !!styleProps.noClass;\n if ((justEnabled || justStrippedClasses) && animationState !== \"enter\") {\n var node = stateRef.current.host;\n if (node instanceof HTMLElement) {\n if (dontAnimate) assignInlineStyles(node, dontAnimate);\n if (doAnimate) assignInlineStyles(node, doAnimate);\n var entry = PopperPositionAnims.get(node);\n if (entry) {\n var _ref2;\n var target = parseTranslate((_ref2 = doAnimate === null || doAnimate === void 0 ? void 0 : doAnimate.transform) !== null && _ref2 !== void 0 ? _ref2 : dontAnimate === null || dontAnimate === void 0 ? void 0 : dontAnimate.transform);\n if (target) {\n var _entry_stop;\n (_entry_stop = entry.stop) === null || _entry_stop === void 0 ? void 0 : _entry_stop.call(entry);\n entry.stop = null;\n entry.x.jump(target.x);\n entry.y.jump(target.y);\n }\n }\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastDoAnimate = doAnimate ? {\n ...doAnimate\n } : {};\n return;\n }\n flushAnimation({\n doAnimate,\n dontAnimate,\n animationOptions\n });\n }, [\n style,\n isExiting,\n disableAnimation,\n styleProps.noClass\n ]);\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] && props[\"debug\"] !== \"profile\") {\n console.groupCollapsed(`[motion] render`);\n console.info({\n style,\n doAnimate,\n dontAnimate,\n scope,\n animationOptions,\n isExiting,\n isFirstRender: refs.current.isFirstRender,\n animationProps\n });\n console.groupEnd();\n }\n }\n return {\n style: firstRenderStyle,\n ref: scope,\n render: \"div\"\n };\n },\n useAnimatedNumber(initial) {\n var motionValue2 = (0, import_react.useMotionValue)(initial);\n return import_react2.default.useMemo(function() {\n return {\n getInstance() {\n return motionValue2;\n },\n getValue() {\n return motionValue2.get();\n },\n setValue(next) {\n var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {\n type: \"spring\"\n }, onFinish = arguments.length > 2 ? arguments[2] : void 0;\n if (config.type === \"direct\") {\n MotionValueStrategy.set(motionValue2, {\n type: \"direct\"\n });\n motionValue2.set(next);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n return;\n }\n MotionValueStrategy.set(motionValue2, config);\n if (onFinish) {\n var prior = PendingMotionOnFinish.get(motionValue2);\n if (prior) {\n PendingMotionOnFinish.delete(motionValue2);\n prior();\n }\n PendingMotionOnFinish.set(motionValue2, onFinish);\n }\n motionValue2.set(next);\n },\n stop() {\n motionValue2.stop();\n }\n };\n }, [\n motionValue2\n ]);\n },\n useAnimatedNumberReaction(param, onValue) {\n var { value } = param;\n var instance = value.getInstance();\n (0, import_react.useMotionValueEvent)(instance, \"change\", onValue);\n },\n useAnimatedNumberStyle(val, getStyleProp) {\n var motionValue2 = val.getInstance();\n var getStyleRef = (0, import_react2.useRef)(getStyleProp);\n getStyleRef.current = getStyleProp;\n return (0, import_react2.useMemo)(function() {\n return {\n getStyle: function getStyle(cur) {\n return getStyleRef.current(cur);\n },\n motionValue: motionValue2\n };\n }, []);\n },\n useAnimatedNumbersStyle(vals, getStyleProp) {\n var motionValues = vals.map(function(v) {\n return v.getInstance();\n });\n var getStyleRef = (0, import_react2.useRef)(getStyleProp);\n getStyleRef.current = getStyleProp;\n return (0, import_react2.useMemo)(function() {\n return {\n getStyle: function getStyle() {\n for (var _len = arguments.length, currentValues = new Array(_len), _key = 0; _key < _len; _key++) {\n currentValues[_key] = arguments[_key];\n }\n return getStyleRef.current(...currentValues);\n },\n motionValues\n };\n }, []);\n }\n };\n function getMotionAnimatedProps(props, style, disable) {\n var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"default\", transitionOverride = arguments.length > 4 ? arguments[4] : void 0;\n var _ref;\n if (disable) {\n return {\n dontAnimate: style\n };\n }\n var resolved = (0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)((_ref = transitionOverride !== null && transitionOverride !== void 0 ? transitionOverride : props.transition) !== null && _ref !== void 0 ? _ref : null, {\n animations\n }), animationState);\n var animationOptions = getAnimationOptions(resolved);\n var dontAnimate;\n var doAnimate;\n for (var key in style) {\n var value = style[key];\n if (disableAnimationProps.has(key) || !(0, import_animation_helpers.getTransitionForKey)(resolved, key)) {\n dontAnimate || (dontAnimate = {});\n dontAnimate[key] = value;\n } else {\n doAnimate || (doAnimate = {});\n doAnimate[key] = value;\n }\n }\n return {\n dontAnimate,\n doAnimate,\n animationOptions\n };\n }\n function getAnimationOptions(resolved) {\n if (!(0, import_animation_helpers.hasTransition)(resolved)) return {};\n var result = {};\n if (resolved.all) {\n var base = entryToMotion(resolved.all);\n Object.assign(result, base);\n result.default = {\n ...base\n };\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = resolved.entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n if (entry.property === \"all\") continue;\n var config = entryToMotion(entry);\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = (0, import_animation_helpers.styleKeysForProperty)(entry.property)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var key = _step1.value;\n result[key] = {\n ...config\n };\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return result;\n }\n}\nfunction entryToMotion(entry) {\n var delay = entry.delayMs ? {\n delay: entry.delayMs / 1e3\n } : null;\n if (entry.timing.kind === \"spring\") {\n return {\n type: \"spring\",\n stiffness: entry.timing.stiffness,\n damping: entry.timing.damping,\n mass: entry.timing.mass,\n ...delay\n };\n }\n var bezier = (0, import_animation_helpers.easingToBezier)(entry.timing.easing);\n return {\n type: \"tween\",\n duration: entry.timing.durationMs / 1e3,\n ...bezier ? {\n ease: [\n bezier[0],\n bezier[1],\n bezier[2],\n bezier[3]\n ]\n } : null,\n ...delay\n };\n}\nfunction removeRemovedStyles(prev, next, node, dontClearIfIn) {\n for (var key in prev) {\n if (!(key in next)) {\n if (dontClearIfIn && key in dontClearIfIn) {\n continue;\n }\n node.style[key] = \"\";\n }\n }\n}\nvar disableAnimationProps = /* @__PURE__ */ new Set([\n ...Object.keys(import_web.nonAnimatableStyleProps),\n \"flexBasis\"\n]);\nfunction motionPropsEqual(a, b) {\n for (var key in a) {\n if (!(key in b)) return false;\n }\n for (var key1 in b) {\n if (key1 === \"children\") continue;\n var av = a[key1];\n var bv = b[key1];\n if (typeof bv === \"function\" && typeof av === \"function\") continue;\n if (!Object.is(av, bv)) return false;\n }\n return true;\n}\nfunction motionStylesEqual(a, b) {\n if (a.length !== b.length) return false;\n for (var i = 0; i < a.length; i++) {\n var sa = a[i];\n var sb = b[i];\n if (sa === sb) continue;\n if (!sa || !sb) return false;\n var aCount = 0;\n for (var key in sa) {\n aCount++;\n if (!Object.is(sa[key], sb[key])) return false;\n }\n var bCount = 0;\n for (var _key in sb) {\n bCount++;\n }\n if (aCount !== bCount) return false;\n }\n return true;\n}\nvar MotionView = createMotionView(\"div\");\nvar MotionText = createMotionView(\"span\");\nvar transformAliases = {\n x: \"translateX\",\n y: \"translateY\",\n scale: \"scale\",\n scaleX: \"scaleX\",\n scaleY: \"scaleY\",\n rotate: \"rotate\",\n rotateX: \"rotateX\",\n rotateY: \"rotateY\",\n rotateZ: \"rotateZ\",\n skewX: \"skewX\",\n skewY: \"skewY\"\n};\nfunction compileAnimatedStyle(initialSource, initialResolved) {\n var shorthands = (0, import_web.getConfig)().shorthands;\n var entries = Object.keys(initialSource).map(function(source) {\n var _ref, _ref1, _ref2;\n return {\n source,\n target: (_ref = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _ref !== void 0 ? _ref : source,\n tokenValue: typeof initialSource[source] === \"string\" && initialResolved[(_ref1 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _ref1 !== void 0 ? _ref1 : source] !== initialSource[source] ? initialResolved[(_ref2 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _ref2 !== void 0 ? _ref2 : source] : void 0\n };\n });\n return function(sourceStyle) {\n var resolved = {};\n var transforms = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n var value = sourceStyle[entry.source];\n if (value === void 0) continue;\n if (entry.source === \"transform\" && Array.isArray(value)) {\n resolved.transform = (0, import_internal_runtime.transformsToString)(value);\n } else if (entry.source in transformAliases) {\n transforms.push({\n [transformAliases[entry.source]]: value\n });\n } else {\n var _entry_tokenValue;\n resolved[entry.target] = (_entry_tokenValue = entry.tokenValue) !== null && _entry_tokenValue !== void 0 ? _entry_tokenValue : (0, import_internal_runtime.normalizeValueWithProperty)(value, entry.target);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (transforms.length) resolved.transform = (0, import_internal_runtime.transformsToString)(transforms);\n return resolved;\n };\n}\nfunction createMotionView(defaultTag) {\n var isText = defaultTag === \"span\";\n var Component = (0, import_web.createRefComponent)(function(propsIn, ref) {\n var _hooks_usePropsTransform;\n var { forwardedRef, animation, render = defaultTag, style, ...propsRest } = propsIn;\n var [scope, animate] = useAnimateSSRSafe();\n var hostRef = (0, import_react2.useRef)(null);\n var seededNode = (0, import_react2.useRef)(null);\n var seededInCurrentFrame = (0, import_react2.useRef)(false);\n var queuedAnimationFrames = (0, import_react2.useRef)(/* @__PURE__ */ new WeakMap());\n var composedRefs = (0, import_web.useComposedRefs)(forwardedRef, ref, hostRef, scope);\n var stateRef = (0, import_react2.useRef)(null);\n if (!stateRef.current) {\n stateRef.current = {\n get host() {\n return hostRef.current;\n }\n };\n }\n var [_, state] = (0, import_internal_runtime.useThemeWithState)({});\n var styles = Array.isArray(style) ? style : [\n style\n ];\n var [animatedStyle, nonAnimatedStyles] = (function() {\n var animatedStyle2;\n var nonAnimatedStyles2 = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = styles[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var style2 = _step.value;\n if (style2.getStyle) {\n animatedStyle2 = style2;\n } else {\n nonAnimatedStyles2.push(style2);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return [\n animatedStyle2,\n nonAnimatedStyles2\n ];\n })();\n function getProps(props2) {\n if (process.env.NODE_ENV === \"development\" && propsIn.debug === \"profile\" && typeof performance !== \"undefined\") {\n performance.mark(\"tamagui-motion-style-split\");\n }\n var out = (0, import_web.getSplitStyles)(props2, isText ? import_web.Text.staticConfig : import_web.View.staticConfig, state === null || state === void 0 ? void 0 : state.theme, state === null || state === void 0 ? void 0 : state.name, {\n unmounted: false\n }, {\n isAnimated: false,\n noClass: true,\n resolveValues: \"auto\"\n });\n if (!out) {\n return {};\n }\n if (out.viewProps.style) {\n (0, import_internal_runtime.fixStyles)(out.viewProps.style);\n (0, import_internal_runtime.styleToCSS)(out.viewProps.style);\n }\n return out.viewProps;\n }\n var resolvedAnimatedStyle = (0, import_react2.useMemo)(function() {\n if (!animatedStyle) return null;\n var currentValues = animatedStyle.motionValues ? animatedStyle.motionValues.map(function(value) {\n return value.get();\n }) : animatedStyle.motionValue ? [\n animatedStyle.motionValue.get()\n ] : [];\n var initialSource = animatedStyle.getStyle(...currentValues);\n var initialResolved = asStyleRecord(getProps({\n style: initialSource\n }).style);\n return {\n initial: initialResolved,\n resolve: compileAnimatedStyle(initialSource, initialResolved)\n };\n }, [\n animatedStyle,\n state === null || state === void 0 ? void 0 : state.theme,\n state === null || state === void 0 ? void 0 : state.name\n ]);\n var memoRef = (0, import_react2.useRef)(null);\n var props;\n var cached = memoRef.current;\n if (cached && cached.theme === (state === null || state === void 0 ? void 0 : state.theme) && cached.themeName === (state === null || state === void 0 ? void 0 : state.name) && motionStylesEqual(cached.styles, nonAnimatedStyles) && motionPropsEqual(cached.propsRest, propsRest)) {\n props = {\n ...cached.result\n };\n for (var key in propsRest) {\n var val = propsRest[key];\n if (key === \"children\" || typeof val === \"function\") {\n props[key] = val;\n }\n }\n } else {\n props = getProps({\n ...propsRest,\n style: nonAnimatedStyles\n });\n memoRef.current = {\n propsRest,\n styles: nonAnimatedStyles,\n theme: state === null || state === void 0 ? void 0 : state.theme,\n themeName: state === null || state === void 0 ? void 0 : state.name,\n result: props\n };\n }\n if (resolvedAnimatedStyle) {\n props = {\n ...props,\n style: {\n ...asStyleRecord(props.style),\n ...resolvedAnimatedStyle.initial\n }\n };\n }\n var Element = render || \"div\";\n var transformedProps = (_hooks_usePropsTransform = import_web.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_web.hooks, render, props, stateRef, false);\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (!animatedStyle) return;\n var node = hostRef.current;\n if (node instanceof HTMLElement && seededNode.current !== node) {\n var currentStyle = animatedStyle.motionValues ? animatedStyle.getStyle(...animatedStyle.motionValues.map(function(value) {\n return value.get();\n })) : animatedStyle.motionValue ? animatedStyle.getStyle(animatedStyle.motionValue.get()) : null;\n var webStyle = currentStyle && (resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(currentStyle));\n if (webStyle) {\n assignInlineStyles(node, webStyle);\n seededNode.current = node;\n seededInCurrentFrame.current = true;\n requestAnimationFrame(function() {\n if (seededNode.current === node) seededInCurrentFrame.current = false;\n });\n }\n }\n var toTransition = function toTransition2(animationConfig) {\n return (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === \"timing\" ? {\n type: \"tween\",\n duration: (animationConfig.duration || 0) / 1e3\n } : (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === \"direct\" ? {\n type: \"tween\",\n duration: 0\n } : {\n type: \"spring\",\n ...animationConfig\n };\n };\n var animateNodeTo = function animateNodeTo2(nextStyle, transition, motionValue3) {\n if (!(node instanceof HTMLElement) || hostRef.current !== node) return;\n var webStyle2 = resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(nextStyle);\n if (!webStyle2) return;\n settlePendingMotionOnFinish(motionValue3, animate(node, webStyle2, transition));\n };\n var animateChangedValue = function animateChangedValue2(nextStyle, transition, motionValue3) {\n if (seededInCurrentFrame.current && seededNode.current === node) {\n var queuedFrame = queuedAnimationFrames.current.get(motionValue3);\n if (queuedFrame !== void 0) cancelAnimationFrame(queuedFrame);\n var frame = requestAnimationFrame(function() {\n if (queuedAnimationFrames.current.get(motionValue3) !== frame) return;\n queuedAnimationFrames.current.delete(motionValue3);\n if (hostRef.current === node) {\n animateNodeTo(nextStyle, transition, motionValue3);\n } else {\n var onFinish = PendingMotionOnFinish.get(motionValue3);\n PendingMotionOnFinish.delete(motionValue3);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n }\n });\n queuedAnimationFrames.current.set(motionValue3, frame);\n return;\n }\n animateNodeTo(nextStyle, transition, motionValue3);\n };\n if (animatedStyle.motionValues) {\n var mvs = animatedStyle.motionValues;\n var styleForAll = function styleForAll2() {\n return animatedStyle.getStyle(...mvs.map(function(value) {\n return value.get();\n }));\n };\n var unsubs = mvs.map(function(mv) {\n return mv.on(\"change\", function() {\n return animateChangedValue(styleForAll(), toTransition(MotionValueStrategy.get(mv)), mv);\n });\n });\n return function() {\n return unsubs.forEach(function(fn) {\n return fn();\n });\n };\n }\n var motionValue2 = animatedStyle.motionValue;\n if (!motionValue2) return;\n return motionValue2.on(\"change\", function(value) {\n return animateChangedValue(animatedStyle.getStyle(value), toTransition(MotionValueStrategy.get(motionValue2)), motionValue2);\n });\n }, [\n animatedStyle,\n resolvedAnimatedStyle\n ]);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, {\n ...transformedProps,\n ref: composedRefs\n });\n });\n Component[\"acceptRenderProp\"] = true;\n return Component;\n}\nfunction getDiff(previous, next) {\n if (!previous) {\n return next;\n }\n var diff = null;\n for (var key in next) {\n if (next[key] !== previous[key]) {\n diff || (diff = {});\n diff[key] = next[key];\n }\n }\n return diff;\n}\nfunction fixTransparentColors(diff, previous, next) {\n var result = diff;\n for (var key in diff) {\n if (diff[key] === \"transparent\") {\n var fixed = \"rgba(0, 0, 0, 0)\";\n var candidates = [\n previous === null || previous === void 0 ? void 0 : previous[key],\n next === null || next === void 0 ? void 0 : next[key]\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = candidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var candidate = _step.value;\n if (typeof candidate === \"string\" && candidate !== \"transparent\") {\n var rgbaMatch = candidate.match(/^rgba?\\(([^,]+),\\s*([^,]+),\\s*([^,)]+)/);\n if (rgbaMatch) {\n fixed = `rgba(${rgbaMatch[1]}, ${rgbaMatch[2]}, ${rgbaMatch[3]}, 0)`;\n break;\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (result === diff) {\n result = {\n ...diff\n };\n }\n result[key] = fixed;\n }\n }\n return result;\n}\n//# sourceMappingURL=createAnimations.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/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MAAM,wCAAwC;MACxE,IAAI,WAAW;OACb,QAAQ,QAAQ,UAAU,GAAG,IAAI,UAAU,GAAG,IAAI,UAAU,GAAG;OAC/D;MACF;KACF;IACF;GACF,SAAS,KAAK;IACZ,oBAAoB;IACpB,iBAAiB;GACnB,UAAU;IACR,IAAI;KACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;MAC1D,UAAU,OAAO;KACnB;IACF,UAAU;KACR,IAAI,mBAAmB;MACrB,MAAM;KACR;IACF;GACF;GACA,IAAI,WAAW,MAAM;IACnB,SAAS,EACP,GAAG,KACL;GACF;GACA,OAAO,OAAO;EAChB;CACF;CACA,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"createAnimations.native.js","names":[],"sources":["cjs/createAnimations.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar createAnimations_exports = {};\n__export(createAnimations_exports, {\n createAnimations: () => createAnimations,\n disableAnimationProps: () => disableAnimationProps\n});\nmodule.exports = __toCommonJS(createAnimations_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_animation_helpers = require(\"@tamagui/animation-helpers\");\nvar import_use_presence = require(\"@tamagui/use-presence\");\nvar import_web = require(\"@tamagui/web\");\nvar import_internal_runtime = require(\"@tamagui/web/internal-runtime\");\nvar import_react = require(\"motion/react\");\nvar import_react2 = __toESM(require(\"react\"), 1);\nvar isServer = typeof window === \"undefined\";\nfunction useAnimateSSRSafe() {\n if (isServer) {\n return [\n (0, import_react2.useRef)(null),\n function() {\n }\n ];\n }\n return (0, import_react.useAnimate)();\n}\nvar asStyleRecord = function asStyleRecord2(style) {\n return style && typeof style === \"object\" && !Array.isArray(style) ? style : {};\n};\nfunction assignInlineStyles(node, styles) {\n for (var key in styles) {\n node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(styles[key], key);\n }\n}\nvar MotionValueStrategy = /* @__PURE__ */ new WeakMap();\nvar PendingMotionOnFinish = /* @__PURE__ */ new WeakMap();\nvar pendingDirectStyles = /* @__PURE__ */ new WeakMap();\nfunction settlePendingMotionOnFinish(mv, controls) {\n var onFinish = PendingMotionOnFinish.get(mv);\n if (!onFinish) return;\n PendingMotionOnFinish.delete(mv);\n controls.then(function() {\n return onFinish();\n }).catch(function() {\n return onFinish();\n });\n}\nvar PopperPositionAnims = /* @__PURE__ */ new WeakMap();\nfunction parseTranslate(transform) {\n if (!transform || transform === \"none\") return {\n x: 0,\n y: 0\n };\n try {\n var m = new DOMMatrixReadOnly(transform);\n if (!m.is2D || m.a !== 1 || m.b !== 0 || m.c !== 0 || m.d !== 1) return null;\n return {\n x: m.e,\n y: m.f\n };\n } catch (unused) {\n return null;\n }\n}\nfunction createAnimations(animations) {\n var isHydratingGlobal;\n var hydratingComponents = /* @__PURE__ */ new Set();\n return {\n View: MotionView,\n Text: MotionText,\n inputStyle: \"css\",\n outputStyle: \"inline\",\n avoidReRenders: true,\n animations,\n usePresence: import_use_presence.usePresence,\n ResetPresence: import_use_presence.ResetPresence,\n onMount() {\n isHydratingGlobal = false;\n hydratingComponents.forEach(function(cb) {\n return cb();\n });\n },\n useAnimations: function useAnimations(animationProps) {\n var _ref;\n if (isHydratingGlobal === void 0 && !(0, import_web.getConfig)().settings.disableSSR) {\n isHydratingGlobal = true;\n }\n var { props, style, componentState, stateRef, useStyleEmitter, presence, onTransition, styleProps, styleState } = animationProps;\n var effectiveTransition = (_ref = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _ref !== void 0 ? _ref : props.transition;\n var isComponentHydrating = componentState.unmounted === true;\n var isMounting = componentState.unmounted === \"should-enter\";\n var isEntering = !!componentState.unmounted;\n var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;\n var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];\n var refs = (0, import_react2.useRef)(null);\n if (!refs.current) {\n refs.current = {\n isFirstRender: true,\n lastDoAnimate: null,\n lastDontAnimate: null,\n controls: null,\n lastAnimateAt: 0,\n disposed: false,\n wasExiting: false,\n isExiting: false,\n sendExitComplete: void 0,\n animationState: \"default\",\n frozenExitTarget: null,\n exitCompleteScheduled: false,\n enterCompleteScheduled: false,\n disableAnimation: true,\n wasEntering: false,\n wasDisabled: false,\n onTransition: void 0,\n enterStarted: false,\n exitStarted: false,\n updateInFlight: false,\n updateControls: null,\n wasNoClass: !!styleProps.noClass\n };\n }\n var emit = function emit2(phase, cause, finished) {\n var _refs_current_onTransition, _refs_current;\n (_refs_current_onTransition = (_refs_current = refs.current).onTransition) === null || _refs_current_onTransition === void 0 ? void 0 : _refs_current_onTransition.call(_refs_current, phase === \"end\" ? {\n phase,\n cause,\n finished\n } : {\n phase,\n cause\n });\n };\n var justFinishedEntering = refs.current.wasEntering && !isEntering;\n (0, import_react2.useEffect)(function() {\n refs.current.wasEntering = isEntering;\n });\n var animationState = isExiting ? \"exit\" : isMounting || justFinishedEntering ? \"enter\" : \"default\";\n var disableAnimation = isComponentHydrating || isMounting || !effectiveTransition;\n var [scope] = useAnimateSSRSafe();\n refs.current.isExiting = isExiting;\n refs.current.sendExitComplete = sendExitComplete;\n refs.current.animationState = animationState;\n refs.current.disableAnimation = disableAnimation;\n refs.current.onTransition = onTransition;\n var justStartedExiting = isExiting && !refs.current.wasExiting;\n var justStoppedExiting = !isExiting && refs.current.wasExiting;\n if (justStartedExiting || justStoppedExiting) {\n refs.current.frozenExitTarget = null;\n refs.current.exitCompleteScheduled = false;\n refs.current.enterCompleteScheduled = false;\n }\n (0, import_react2.useEffect)(function() {\n refs.current.wasExiting = isExiting;\n });\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (justStoppedExiting && refs.current.exitStarted) {\n refs.current.exitStarted = false;\n emit(\"end\", \"exit\", false);\n }\n }, [\n justStoppedExiting\n ]);\n var { dontAnimate = {}, doAnimate, animationOptions } = getMotionAnimatedProps(props, style, disableAnimation, animationState, effectiveTransition);\n var [firstRenderStyle] = (0, import_react2.useState)(style);\n if (refs.current.isFirstRender) {\n refs.current.lastDontAnimate = firstRenderStyle;\n }\n var [isHydrating, setIsHydrating] = (0, import_react2.useState)(isHydratingGlobal);\n (0, import_react2.useLayoutEffect)(function() {\n if (isHydratingGlobal) {\n hydratingComponents.add(function() {\n setIsHydrating(false);\n });\n }\n return function() {\n refs.current.disposed = true;\n };\n }, []);\n var flushAnimation = function flushAnimation2(param) {\n var { doAnimate: doAnimateRaw = {}, animationOptions: passedOptions = {}, dontAnimate: dontAnimate2 } = param;\n var startedControls = null;\n var isCurrentlyExiting = refs.current.isExiting;\n var currentSendExitComplete = refs.current.sendExitComplete;\n var currentAnimationState = refs.current.animationState;\n var doAnimate2 = doAnimateRaw;\n if (isCurrentlyExiting && refs.current.frozenExitTarget) {\n doAnimate2 = refs.current.frozenExitTarget;\n }\n var animationOptions2 = isCurrentlyExiting && currentSendExitComplete ? getAnimationOptions((0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)(effectiveTransition !== null && effectiveTransition !== void 0 ? effectiveTransition : null, {\n animations\n }), \"exit\")) : passedOptions;\n try {\n var node = stateRef.current.host;\n if (refs.current.isFirstRender) {\n refs.current.lastDontAnimate = null;\n refs.current.lastDoAnimate = null;\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] && props[\"debug\"] !== \"profile\") {\n console.groupCollapsed(`[motion] animate (${JSON.stringify(getDiff(refs.current.lastDoAnimate, doAnimate2), null, 2)})`);\n console.info({\n props,\n componentState,\n doAnimate: doAnimate2,\n dontAnimate: dontAnimate2,\n animationOptions: animationOptions2,\n animationProps,\n lastDoAnimate: {\n ...refs.current.lastDoAnimate\n },\n lastDontAnimate: {\n ...refs.current.lastDontAnimate\n },\n isExiting,\n style,\n node\n });\n console.groupCollapsed(`trace >`);\n console.trace();\n console.groupEnd();\n console.groupEnd();\n }\n }\n if (!(node instanceof HTMLElement)) {\n return;\n }\n var prevDont = refs.current.lastDontAnimate;\n if (dontAnimate2) {\n if (prevDont) {\n removeRemovedStyles(prevDont, dontAnimate2, node, doAnimate2);\n var changed = getDiff(prevDont, dontAnimate2);\n if (changed) {\n assignInlineStyles(node, changed);\n }\n } else {\n assignInlineStyles(node, dontAnimate2);\n }\n } else if (prevDont) {\n removeRemovedStyles(prevDont, {}, node, doAnimate2);\n }\n if (doAnimate2) {\n if (prevDont) {\n for (var key in prevDont) {\n if (key in doAnimate2) {\n node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(prevDont[key], key);\n if (refs.current.lastDoAnimate) {\n refs.current.lastDoAnimate[key] = prevDont[key];\n }\n }\n }\n }\n var lastAnimated = refs.current.lastDoAnimate;\n if (lastAnimated) {\n removeRemovedStyles(lastAnimated, doAnimate2, node, dontAnimate2);\n }\n var diff = getDiff(refs.current.lastDoAnimate, doAnimate2);\n if (diff) {\n if (isCurrentlyExiting && !refs.current.frozenExitTarget) {\n refs.current.frozenExitTarget = {\n ...doAnimate2\n };\n }\n var isPopperPosition = node.hasAttribute(\"data-popper-animate-position\");\n var popperHandledTransform = false;\n if (isPopperPosition && !isCurrentlyExiting && typeof diff.transform === \"string\") {\n var target = parseTranslate(diff.transform);\n if (target) {\n var _ref2, _ref1, _opts_x;\n var entry = PopperPositionAnims.get(node);\n if (!entry) {\n var seed = target;\n try {\n var _parseTranslate;\n seed = (_parseTranslate = parseTranslate(getComputedStyle(node).transform)) !== null && _parseTranslate !== void 0 ? _parseTranslate : target;\n } catch (unused) {\n }\n var x = (0, import_react.motionValue)(seed.x);\n var y = (0, import_react.motionValue)(seed.y);\n var write = function write2() {\n node.style.transform = `translate3d(${x.get()}px, ${y.get()}px, 0)`;\n };\n x.on(\"change\", write);\n y.on(\"change\", write);\n entry = {\n x,\n y,\n stop: null\n };\n PopperPositionAnims.set(node, entry);\n }\n if (!entry.stop) {\n try {\n var live = parseTranslate(getComputedStyle(node).transform);\n if (live) {\n entry.x.jump(live.x);\n entry.y.jump(live.y);\n }\n } catch (unused) {\n }\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = node.getAnimations()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var anim = _step.value;\n try {\n var _anim_effect_getKeyframes, _anim_effect;\n var kf = (_anim_effect = anim.effect) === null || _anim_effect === void 0 ? void 0 : (_anim_effect_getKeyframes = _anim_effect.getKeyframes) === null || _anim_effect_getKeyframes === void 0 ? void 0 : _anim_effect_getKeyframes.call(_anim_effect);\n if (kf === null || kf === void 0 ? void 0 : kf.some(function(k) {\n return \"transform\" in k;\n })) {\n anim.cancel();\n }\n } catch (unused) {\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n var opts = animationOptions2;\n var positionTransition = (_ref2 = (_ref1 = (_opts_x = opts.x) !== null && _opts_x !== void 0 ? _opts_x : opts.transform) !== null && _ref1 !== void 0 ? _ref1 : opts.default) !== null && _ref2 !== void 0 ? _ref2 : animationOptions2;\n var cx = (0, import_react.animate)(entry.x, target.x, positionTransition);\n var cy = (0, import_react.animate)(entry.y, target.y, positionTransition);\n entry.stop = function() {\n cx.stop();\n cy.stop();\n };\n popperHandledTransform = true;\n }\n }\n if (isCurrentlyExiting) {\n var entry1 = PopperPositionAnims.get(node);\n if (entry1 === null || entry1 === void 0 ? void 0 : entry1.stop) {\n entry1.stop();\n entry1.stop = null;\n }\n }\n var midFlightValues = null;\n if (refs.current.controls) {\n try {\n var computed = getComputedStyle(node);\n midFlightValues = {};\n for (var key1 in diff) {\n var val = computed[key1];\n if (val !== void 0 && val !== \"\") {\n midFlightValues[key1] = val;\n }\n }\n } catch (unused) {\n }\n if (isCurrentlyExiting) {\n refs.current.controls.stop();\n }\n if (midFlightValues) {\n for (var key2 in midFlightValues) {\n if (key2 === \"transform\" && popperHandledTransform) continue;\n node.style[key2] = midFlightValues[key2];\n }\n }\n if (isPopperPosition && !popperHandledTransform) {\n var anims = node.getAnimations();\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = anims[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var anim1 = _step1.value;\n anim1.cancel();\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n }\n var fixedDiff = fixTransparentColors(diff, refs.current.lastDoAnimate, doAnimate2);\n var waapiDiff = Object.fromEntries(Object.entries(fixedDiff).map(function(param2) {\n var [key3, value] = param2;\n return [\n key3,\n Array.isArray(value) ? value.map(function(item) {\n return (0, import_internal_runtime.normalizeValueWithProperty)(item, key3);\n }) : (0, import_internal_runtime.normalizeValueWithProperty)(value, key3)\n ];\n }));\n if (popperHandledTransform && \"transform\" in waapiDiff) {\n waapiDiff = {\n ...waapiDiff\n };\n delete waapiDiff.transform;\n }\n if ((isPopperPosition || isCurrentlyExiting) && (midFlightValues === null || midFlightValues === void 0 ? void 0 : midFlightValues.transform) && waapiDiff.transform) {\n waapiDiff.transform = [\n midFlightValues.transform,\n waapiDiff.transform\n ];\n }\n if (Object.keys(waapiDiff).length > 0) {\n startedControls = (0, import_react.animate)(node, waapiDiff, animationOptions2);\n refs.current.controls = startedControls;\n }\n refs.current.lastAnimateAt = Date.now();\n }\n }\n refs.current.lastDontAnimate = dontAnimate2 ? {\n ...dontAnimate2\n } : {};\n refs.current.lastDoAnimate = doAnimate2 ? {\n ...doAnimate2\n } : {};\n } finally {\n if (isCurrentlyExiting && currentSendExitComplete) {\n if (refs.current.enterStarted) {\n refs.current.enterStarted = false;\n emit(\"end\", \"enter\", false);\n }\n if (startedControls) {\n if (!refs.current.exitStarted) {\n refs.current.exitStarted = true;\n emit(\"start\", \"exit\");\n }\n refs.current.exitCompleteScheduled = true;\n var complete = function complete2(finished) {\n if (!refs.current.isExiting) return;\n if (refs.current.exitStarted) {\n refs.current.exitStarted = false;\n emit(\"end\", \"exit\", finished);\n }\n currentSendExitComplete();\n };\n startedControls.finished.then(function() {\n return complete(true);\n }).catch(function() {\n return complete(false);\n });\n } else if (!refs.current.exitCompleteScheduled) {\n emit(\"start\", \"exit\");\n emit(\"end\", \"exit\", true);\n currentSendExitComplete();\n }\n } else if (currentAnimationState === \"enter\") {\n if (startedControls) {\n if (!refs.current.enterStarted) {\n refs.current.enterStarted = true;\n emit(\"start\", \"enter\");\n }\n refs.current.enterCompleteScheduled = true;\n var complete1 = function complete2(finished) {\n if (refs.current.disposed || refs.current.animationState !== \"enter\") return;\n if (refs.current.enterStarted) {\n refs.current.enterStarted = false;\n emit(\"end\", \"enter\", finished);\n }\n };\n startedControls.finished.then(function() {\n return complete1(true);\n }).catch(function() {\n return complete1(false);\n });\n } else if (!refs.current.enterCompleteScheduled && !refs.current.disableAnimation) {\n emit(\"start\", \"enter\");\n emit(\"end\", \"enter\", true);\n }\n } else if (startedControls) {\n var controls = startedControls;\n if (refs.current.updateInFlight) {\n emit(\"end\", \"update\", false);\n }\n refs.current.updateInFlight = true;\n refs.current.updateControls = controls;\n emit(\"start\", \"update\");\n var settle = function settle2(finished) {\n if (refs.current.updateControls !== controls) return;\n refs.current.updateInFlight = false;\n refs.current.updateControls = null;\n emit(\"end\", \"update\", finished);\n };\n controls.finished.then(function() {\n return settle(true);\n }).catch(function() {\n return settle(false);\n });\n }\n }\n };\n useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(function(nextStyle, emittedTransition) {\n var _$animationProps = getMotionAnimatedProps(props, nextStyle, disableAnimation, refs.current.animationState, emittedTransition !== null && emittedTransition !== void 0 ? emittedTransition : effectiveTransition);\n flushAnimation(_$animationProps);\n });\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (refs.current.isFirstRender) {\n refs.current.isFirstRender = false;\n refs.current.wasDisabled = disableAnimation;\n if (isHydrating) {\n if (doAnimate && Object.keys(doAnimate).length > 0) {\n refs.current.lastDoAnimate = {\n ...doAnimate\n };\n } else {\n refs.current.lastDoAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastAnimateAt = Date.now();\n return;\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastDoAnimate = doAnimate ? {\n ...doAnimate\n } : {};\n return;\n }\n var justEnabled = refs.current.wasDisabled && !disableAnimation;\n refs.current.wasDisabled = disableAnimation;\n var justStrippedClasses = !refs.current.wasNoClass && !!styleProps.noClass;\n refs.current.wasNoClass = !!styleProps.noClass;\n if ((justEnabled || justStrippedClasses) && animationState !== \"enter\") {\n var node = stateRef.current.host;\n if (node instanceof HTMLElement) {\n if (dontAnimate) assignInlineStyles(node, dontAnimate);\n if (doAnimate) assignInlineStyles(node, doAnimate);\n var entry = PopperPositionAnims.get(node);\n if (entry) {\n var _ref2;\n var target = parseTranslate((_ref2 = doAnimate === null || doAnimate === void 0 ? void 0 : doAnimate.transform) !== null && _ref2 !== void 0 ? _ref2 : dontAnimate === null || dontAnimate === void 0 ? void 0 : dontAnimate.transform);\n if (target) {\n var _entry_stop;\n (_entry_stop = entry.stop) === null || _entry_stop === void 0 ? void 0 : _entry_stop.call(entry);\n entry.stop = null;\n entry.x.jump(target.x);\n entry.y.jump(target.y);\n }\n }\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastDoAnimate = doAnimate ? {\n ...doAnimate\n } : {};\n return;\n }\n flushAnimation({\n doAnimate,\n dontAnimate,\n animationOptions\n });\n }, [\n style,\n isExiting,\n disableAnimation,\n styleProps.noClass\n ]);\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] && props[\"debug\"] !== \"profile\") {\n console.groupCollapsed(`[motion] render`);\n console.info({\n style,\n doAnimate,\n dontAnimate,\n scope,\n animationOptions,\n isExiting,\n isFirstRender: refs.current.isFirstRender,\n animationProps\n });\n console.groupEnd();\n }\n }\n return {\n style: firstRenderStyle,\n ref: scope,\n render: \"div\"\n };\n },\n useAnimatedNumber(initial) {\n var motionValue2 = (0, import_react.useMotionValue)(initial);\n return import_react2.default.useMemo(function() {\n return {\n getInstance() {\n return motionValue2;\n },\n getValue() {\n return motionValue2.get();\n },\n setValue(next) {\n var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {\n type: \"spring\"\n }, onFinish = arguments.length > 2 ? arguments[2] : void 0;\n if (config.type === \"direct\") {\n MotionValueStrategy.set(motionValue2, {\n type: \"direct\"\n });\n motionValue2.set(next);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n return;\n }\n MotionValueStrategy.set(motionValue2, config);\n if (onFinish) {\n var prior = PendingMotionOnFinish.get(motionValue2);\n if (prior) {\n PendingMotionOnFinish.delete(motionValue2);\n prior();\n }\n PendingMotionOnFinish.set(motionValue2, onFinish);\n }\n motionValue2.set(next);\n },\n stop() {\n motionValue2.stop();\n }\n };\n }, [\n motionValue2\n ]);\n },\n useAnimatedNumberReaction(param, onValue) {\n var { value } = param;\n var instance = value.getInstance();\n (0, import_react.useMotionValueEvent)(instance, \"change\", onValue);\n },\n useAnimatedNumberStyle(val, getStyleProp) {\n var motionValue2 = val.getInstance();\n var getStyleRef = (0, import_react2.useRef)(getStyleProp);\n getStyleRef.current = getStyleProp;\n return (0, import_react2.useMemo)(function() {\n return {\n getStyle: function getStyle(cur) {\n return getStyleRef.current(cur);\n },\n motionValue: motionValue2\n };\n }, []);\n },\n useAnimatedNumbersStyle(vals, getStyleProp) {\n var motionValues = vals.map(function(v) {\n return v.getInstance();\n });\n var getStyleRef = (0, import_react2.useRef)(getStyleProp);\n getStyleRef.current = getStyleProp;\n return (0, import_react2.useMemo)(function() {\n return {\n getStyle: function getStyle() {\n for (var _len = arguments.length, currentValues = new Array(_len), _key = 0; _key < _len; _key++) {\n currentValues[_key] = arguments[_key];\n }\n return getStyleRef.current(...currentValues);\n },\n motionValues\n };\n }, []);\n }\n };\n function getMotionAnimatedProps(props, style, disable) {\n var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"default\", transitionOverride = arguments.length > 4 ? arguments[4] : void 0;\n var _ref;\n if (disable) {\n return {\n dontAnimate: style\n };\n }\n var resolved = (0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)((_ref = transitionOverride !== null && transitionOverride !== void 0 ? transitionOverride : props.transition) !== null && _ref !== void 0 ? _ref : null, {\n animations\n }), animationState);\n var animationOptions = getAnimationOptions(resolved);\n var dontAnimate;\n var doAnimate;\n for (var key in style) {\n var value = style[key];\n if (disableAnimationProps.has(key) || !(0, import_animation_helpers.getTransitionForKey)(resolved, key)) {\n dontAnimate || (dontAnimate = {});\n dontAnimate[key] = value;\n } else {\n doAnimate || (doAnimate = {});\n doAnimate[key] = value;\n }\n }\n return {\n dontAnimate,\n doAnimate,\n animationOptions\n };\n }\n function getAnimationOptions(resolved) {\n if (!(0, import_animation_helpers.hasTransition)(resolved)) return {};\n var result = {};\n if (resolved.all) {\n var base = entryToMotion(resolved.all);\n Object.assign(result, base);\n result.default = {\n ...base\n };\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = resolved.entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n if (entry.property === \"all\") continue;\n var config = entryToMotion(entry);\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = (0, import_animation_helpers.styleKeysForProperty)(entry.property)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var key = _step1.value;\n result[key] = {\n ...config\n };\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return result;\n }\n}\nfunction entryToMotion(entry) {\n var delay = entry.delayMs ? {\n delay: entry.delayMs / 1e3\n } : null;\n if (entry.timing.kind === \"spring\") {\n return {\n type: \"spring\",\n stiffness: entry.timing.stiffness,\n damping: entry.timing.damping,\n mass: entry.timing.mass,\n ...delay\n };\n }\n var bezier = (0, import_animation_helpers.easingToBezier)(entry.timing.easing);\n return {\n type: \"tween\",\n duration: entry.timing.durationMs / 1e3,\n ...bezier ? {\n ease: [\n bezier[0],\n bezier[1],\n bezier[2],\n bezier[3]\n ]\n } : null,\n ...delay\n };\n}\nfunction removeRemovedStyles(prev, next, node, dontClearIfIn) {\n for (var key in prev) {\n if (!(key in next)) {\n if (dontClearIfIn && key in dontClearIfIn) {\n continue;\n }\n node.style[key] = \"\";\n }\n }\n}\nvar disableAnimationProps = /* @__PURE__ */ new Set([\n ...Object.keys(import_web.nonAnimatableStyleProps),\n \"flexBasis\"\n]);\nfunction motionPropsEqual(a, b) {\n for (var key in a) {\n if (!(key in b)) return false;\n }\n for (var key1 in b) {\n if (key1 === \"children\") continue;\n var av = a[key1];\n var bv = b[key1];\n if (typeof bv === \"function\" && typeof av === \"function\") continue;\n if (!Object.is(av, bv)) return false;\n }\n return true;\n}\nfunction motionStylesEqual(a, b) {\n if (a.length !== b.length) return false;\n for (var i = 0; i < a.length; i++) {\n var sa = a[i];\n var sb = b[i];\n if (sa === sb) continue;\n if (!sa || !sb) return false;\n var aCount = 0;\n for (var key in sa) {\n aCount++;\n if (!Object.is(sa[key], sb[key])) return false;\n }\n var bCount = 0;\n for (var _key in sb) {\n bCount++;\n }\n if (aCount !== bCount) return false;\n }\n return true;\n}\nvar MotionView = createMotionView(\"div\");\nvar MotionText = createMotionView(\"span\");\nvar transformAliases = {\n x: \"translateX\",\n y: \"translateY\",\n scale: \"scale\",\n scaleX: \"scaleX\",\n scaleY: \"scaleY\",\n rotate: \"rotate\",\n rotateX: \"rotateX\",\n rotateY: \"rotateY\",\n rotateZ: \"rotateZ\",\n skewX: \"skewX\",\n skewY: \"skewY\"\n};\nfunction compileAnimatedStyle(initialSource, initialResolved) {\n var shorthands = (0, import_web.getConfig)().shorthands;\n var entries = Object.keys(initialSource).map(function(source) {\n var _ref, _ref1, _ref2;\n return {\n source,\n target: (_ref = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _ref !== void 0 ? _ref : source,\n tokenValue: typeof initialSource[source] === \"string\" && initialResolved[(_ref1 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _ref1 !== void 0 ? _ref1 : source] !== initialSource[source] ? initialResolved[(_ref2 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _ref2 !== void 0 ? _ref2 : source] : void 0\n };\n });\n return function(sourceStyle) {\n var resolved = {};\n var transforms = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n var value = sourceStyle[entry.source];\n if (value === void 0) continue;\n if (entry.source === \"transform\" && Array.isArray(value)) {\n resolved.transform = (0, import_internal_runtime.transformsToString)(value);\n } else if (entry.source in transformAliases) {\n transforms.push({\n [transformAliases[entry.source]]: value\n });\n } else {\n var _entry_tokenValue;\n resolved[entry.target] = (_entry_tokenValue = entry.tokenValue) !== null && _entry_tokenValue !== void 0 ? _entry_tokenValue : (0, import_internal_runtime.normalizeValueWithProperty)(value, entry.target);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (transforms.length) resolved.transform = (0, import_internal_runtime.transformsToString)(transforms);\n return resolved;\n };\n}\nfunction createMotionView(defaultTag) {\n var isText = defaultTag === \"span\";\n var Component = (0, import_web.createRefComponent)(function(propsIn, ref) {\n var _hooks_usePropsTransform;\n var { forwardedRef, animation, render = defaultTag, style, ...propsRest } = propsIn;\n var [scope, animate] = useAnimateSSRSafe();\n var hostRef = (0, import_react2.useRef)(null);\n var seededNode = (0, import_react2.useRef)(null);\n var seededInCurrentFrame = (0, import_react2.useRef)(false);\n var queuedAnimationFrames = (0, import_react2.useRef)(/* @__PURE__ */ new WeakMap());\n var composedRefs = (0, import_web.useComposedRefs)(forwardedRef, ref, hostRef, scope);\n var stateRef = (0, import_react2.useRef)(null);\n if (!stateRef.current) {\n stateRef.current = {\n get host() {\n return hostRef.current;\n }\n };\n }\n var [_, state] = (0, import_internal_runtime.useThemeWithState)({});\n var styles = Array.isArray(style) ? style : [\n style\n ];\n var [animatedStyle, nonAnimatedStyles] = (function() {\n var animatedStyle2;\n var nonAnimatedStyles2 = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = styles[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var style2 = _step.value;\n if (style2.getStyle) {\n animatedStyle2 = style2;\n } else {\n nonAnimatedStyles2.push(style2);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return [\n animatedStyle2,\n nonAnimatedStyles2\n ];\n })();\n function getProps(props2) {\n if (process.env.NODE_ENV === \"development\" && propsIn.debug === \"profile\" && typeof performance !== \"undefined\") {\n performance.mark(\"tamagui-motion-style-split\");\n }\n var out = (0, import_web.getSplitStyles)(props2, isText ? import_web.Text.staticConfig : import_web.View.staticConfig, state === null || state === void 0 ? void 0 : state.theme, state === null || state === void 0 ? void 0 : state.name, {\n unmounted: false\n }, {\n isAnimated: false,\n noClass: true,\n resolveValues: \"auto\"\n });\n if (!out) {\n return {};\n }\n if (out.viewProps.style) {\n (0, import_internal_runtime.fixStyles)(out.viewProps.style);\n (0, import_internal_runtime.styleToCSS)(out.viewProps.style);\n }\n return out.viewProps;\n }\n var resolvedAnimatedStyle = (0, import_react2.useMemo)(function() {\n if (!animatedStyle) return null;\n var currentValues = animatedStyle.motionValues ? animatedStyle.motionValues.map(function(value) {\n return value.get();\n }) : animatedStyle.motionValue ? [\n animatedStyle.motionValue.get()\n ] : [];\n var initialSource = animatedStyle.getStyle(...currentValues);\n var initialResolved = asStyleRecord(getProps({\n style: initialSource\n }).style);\n return {\n initial: initialResolved,\n resolve: compileAnimatedStyle(initialSource, initialResolved)\n };\n }, [\n animatedStyle,\n state === null || state === void 0 ? void 0 : state.theme,\n state === null || state === void 0 ? void 0 : state.name\n ]);\n var memoRef = (0, import_react2.useRef)(null);\n var props;\n var cached = memoRef.current;\n if (cached && cached.theme === (state === null || state === void 0 ? void 0 : state.theme) && cached.themeName === (state === null || state === void 0 ? void 0 : state.name) && motionStylesEqual(cached.styles, nonAnimatedStyles) && motionPropsEqual(cached.propsRest, propsRest)) {\n props = {\n ...cached.result\n };\n for (var key in propsRest) {\n var val = propsRest[key];\n if (key === \"children\" || typeof val === \"function\") {\n props[key] = val;\n }\n }\n } else {\n props = getProps({\n ...propsRest,\n style: nonAnimatedStyles\n });\n memoRef.current = {\n propsRest,\n styles: nonAnimatedStyles,\n theme: state === null || state === void 0 ? void 0 : state.theme,\n themeName: state === null || state === void 0 ? void 0 : state.name,\n result: props\n };\n }\n if (resolvedAnimatedStyle) {\n props = {\n ...props,\n style: {\n ...asStyleRecord(props.style),\n ...resolvedAnimatedStyle.initial\n }\n };\n }\n var Element = render || \"div\";\n var transformedProps = (_hooks_usePropsTransform = import_web.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_web.hooks, render, props, stateRef, false);\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (!animatedStyle) return;\n var node = hostRef.current;\n if (node instanceof HTMLElement && seededNode.current !== node) {\n var currentStyle = animatedStyle.motionValues ? animatedStyle.getStyle(...animatedStyle.motionValues.map(function(value) {\n return value.get();\n })) : animatedStyle.motionValue ? animatedStyle.getStyle(animatedStyle.motionValue.get()) : null;\n var webStyle = currentStyle && (resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(currentStyle));\n if (webStyle) {\n assignInlineStyles(node, webStyle);\n seededNode.current = node;\n seededInCurrentFrame.current = true;\n requestAnimationFrame(function() {\n if (seededNode.current === node) seededInCurrentFrame.current = false;\n });\n }\n }\n var toTransition = function toTransition2(animationConfig) {\n return (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === \"timing\" ? {\n type: \"tween\",\n duration: (animationConfig.duration || 0) / 1e3\n } : (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === \"direct\" ? {\n type: \"tween\",\n duration: 0\n } : {\n type: \"spring\",\n ...animationConfig\n };\n };\n var animateNodeTo = function animateNodeTo2(nextStyle, strategy, motionValue3) {\n if (!(node instanceof HTMLElement) || hostRef.current !== node) return;\n var webStyle2 = resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(nextStyle);\n if (!webStyle2) return;\n var directStyle = pendingDirectStyles.get(node);\n var isDirect = (strategy === null || strategy === void 0 ? void 0 : strategy.type) === \"direct\";\n var target = webStyle2;\n if (directStyle && !isDirect) {\n target = {\n ...webStyle2\n };\n for (var key2 in directStyle) {\n if (key2 in webStyle2) target[key2] = [\n directStyle[key2],\n webStyle2[key2]\n ];\n }\n }\n if (isDirect) {\n assignInlineStyles(node, webStyle2);\n pendingDirectStyles.set(node, webStyle2);\n requestAnimationFrame(function() {\n if (pendingDirectStyles.get(node) === webStyle2) {\n pendingDirectStyles.delete(node);\n }\n });\n }\n settlePendingMotionOnFinish(motionValue3, animate(node, target, toTransition(strategy)));\n };\n var animateChangedValue = function animateChangedValue2(nextStyle, strategy, motionValue3) {\n if (seededInCurrentFrame.current && seededNode.current === node) {\n var queuedFrame = queuedAnimationFrames.current.get(motionValue3);\n if (queuedFrame !== void 0) cancelAnimationFrame(queuedFrame);\n var frame = requestAnimationFrame(function() {\n if (queuedAnimationFrames.current.get(motionValue3) !== frame) return;\n queuedAnimationFrames.current.delete(motionValue3);\n if (hostRef.current === node) {\n animateNodeTo(nextStyle, strategy, motionValue3);\n } else {\n var onFinish = PendingMotionOnFinish.get(motionValue3);\n PendingMotionOnFinish.delete(motionValue3);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n }\n });\n queuedAnimationFrames.current.set(motionValue3, frame);\n return;\n }\n animateNodeTo(nextStyle, strategy, motionValue3);\n };\n if (animatedStyle.motionValues) {\n var mvs = animatedStyle.motionValues;\n var styleForAll = function styleForAll2() {\n return animatedStyle.getStyle(...mvs.map(function(value) {\n return value.get();\n }));\n };\n var unsubs = mvs.map(function(mv) {\n return mv.on(\"change\", function() {\n return animateChangedValue(styleForAll(), MotionValueStrategy.get(mv), mv);\n });\n });\n return function() {\n return unsubs.forEach(function(fn) {\n return fn();\n });\n };\n }\n var motionValue2 = animatedStyle.motionValue;\n if (!motionValue2) return;\n return motionValue2.on(\"change\", function(value) {\n return animateChangedValue(animatedStyle.getStyle(value), MotionValueStrategy.get(motionValue2), motionValue2);\n });\n }, [\n animatedStyle,\n resolvedAnimatedStyle\n ]);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, {\n ...transformedProps,\n ref: composedRefs\n });\n });\n Component[\"acceptRenderProp\"] = true;\n return Component;\n}\nfunction getDiff(previous, next) {\n if (!previous) {\n return next;\n }\n var diff = null;\n for (var key in next) {\n if (next[key] !== previous[key]) {\n diff || (diff = {});\n diff[key] = next[key];\n }\n }\n return diff;\n}\nfunction fixTransparentColors(diff, previous, next) {\n var result = diff;\n for (var key in diff) {\n if (diff[key] === \"transparent\") {\n var fixed = \"rgba(0, 0, 0, 0)\";\n var candidates = [\n previous === null || previous === void 0 ? void 0 : previous[key],\n next === null || next === void 0 ? void 0 : next[key]\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = candidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var candidate = _step.value;\n if (typeof candidate === \"string\" && candidate !== \"transparent\") {\n var rgbaMatch = candidate.match(/^rgba?\\(([^,]+),\\s*([^,]+),\\s*([^,)]+)/);\n if (rgbaMatch) {\n fixed = `rgba(${rgbaMatch[1]}, ${rgbaMatch[2]}, ${rgbaMatch[3]}, 0)`;\n break;\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (result === diff) {\n result = {\n ...diff\n };\n }\n result[key] = fixed;\n }\n }\n return result;\n}\n//# sourceMappingURL=createAnimations.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAA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