import { tweenValue } from "./tween.js";
function textConstant(e) {
	return function() {
		this.textContent = e;
	};
}
function textFunction(e) {
	return function() {
		this.textContent = e(this) ?? "";
	};
}
function text_default(r) {
	return this.tween("text", typeof r == "function" ? textFunction(tweenValue(this, "text", r)) : textConstant(r == null ? "" : r + ""));
}
export { text_default as default };
