import{logger as m}from"../tools/notifiers/logger.js";async function l(r,o,n){if(!r.theme)return r;m.warnForRealFile("The 'theme' property in frontmatter is deprecated. Please move all of the properties from 'theme' to the root of frontmatter: %rp",o,n);const t={...r};for(const e of Object.keys(t.theme))t[e]==null?t[e]=t.theme[e]:m.warnForRealFile(`Detected both '${e}' and 'theme.${e}' properties in frontmatter. The 'theme.${e}' property will be ignored and needs to be removed or merged into the '${e}': %rp`,o,n);return delete t.theme,t}export{l as ensureFrontmatterThemeCompatibility};
