var global = { getPreferredTheme: () => { const storedTheme = localStorage.getItem('theme'); return storedTheme ? storedTheme : window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'; }, setTheme: (wantedTheme) => { const theme = wantedTheme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : wantedTheme; document.documentElement.setAttribute('data-bs-theme', theme); localStorage.setItem('theme', theme); }, newSession: true, onFaces: () => { function waitForFaces(resolve, reject) { if (window.faces) {resolve(window.faces);} else {setTimeout(waitForFaces.bind(this, resolve, reject), 40);} } return new Promise(waitForFaces); }, i18n:{"CarouselControl":"Karussellsteuerung","Carousel":"Karussell","CarouselGoToSlide":"Gehe zu Folie {{index}}","CarouselNextSlide":"Nächste Folie","CarouselPreviousSlide":"Vorherige Folie","CarouselSlide":"Folie"} }; global.setTheme(global.getPreferredTheme()); var mojarra={l:(args)=>{if(typeof args==='function')global.onFaces().then(()=>args());}};