import { __commonJSMin as e } from "../../../_virtual/_rolldown/runtime.js";
import { require_cjs as t } from "../../inline-style-parser/cjs/index.js";
//#region ../../node_modules/style-to-object/cjs/index.js
var n = /* @__PURE__ */ e(((e) => {
	var n = e && e.__importDefault || function(e) {
		return e && e.__esModule ? e : { default: e };
	};
	Object.defineProperty(e, "__esModule", { value: !0 }), e.default = i;
	var r = n(t());
	function i(e, t) {
		let n = null;
		if (!e || typeof e != "string") return n;
		let i = (0, r.default)(e), a = typeof t == "function";
		return i.forEach((e) => {
			if (e.type !== "declaration") return;
			let { property: r, value: i } = e;
			a ? t(r, i, e) : i && (n ||= {}, n[r] = i);
		}), n;
	}
}));
//#endregion
export default n();
export { n as require_cjs };
