import{a as setMode}from"./index-a0453e17.js";var initStyleMode=function(e){var o=document;if(o){o.documentElement.setAttribute("mode",e);o.documentElement.classList.add(e)}var i=function(e){var o;return(o=e.tagName)===null||o===void 0?void 0:o.startsWith("BAL-")};var n=function(e){return["css","sass","all"].includes(e)};setMode((function(o){while(o){var s=o.mode||o.getAttribute("mode");if(s){if(n(s)){return s}else if(i(o)){console.warn('Invalid baloise style mode: "'+s+'", expected: "css" or "sass"')}}o=o.parentElement}return e}))};export{initStyleMode as i};