).';if(X.wrapper=n,X.slides=n.querySelector(".slides"),!X.slides)throw'Unable to find slides container (
).';return R={...V,...R,...o,...e,...l()},/print-pdf/gi.test(window.location.search)&&(R.view="print"),function(){!0===R.embedded?X.viewport=r(n,".reveal-viewport")||n:(X.viewport=document.body,document.documentElement.classList.add("reveal-full-page"));X.viewport.classList.add("reveal-viewport")}(),window.addEventListener("load",Be,!1),ge.load(R.plugins,R.dependencies).then(fe),new Promise((e=>d.on("ready",e)))},configure:we,destroy:function(){Se(),gt(),Te(),me.destroy(),pe.destroy(),ge.destroy(),ue.destroy(),ce.destroy(),he.destroy(),se.destroy(),ee.destroy(),te.destroy(),document.removeEventListener("fullscreenchange",Ct),document.removeEventListener("webkitfullscreenchange",Ct),document.removeEventListener("visibilitychange",Lt,!1),window.removeEventListener("message",St,!1),window.removeEventListener("load",Be,!1),X.pauseOverlay&&X.pauseOverlay.remove(),X.statusElement&&X.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),X.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),X.wrapper.removeAttribute("data-transition-speed"),X.wrapper.removeAttribute("data-background-transition"),X.viewport.classList.remove("reveal-viewport"),X.viewport.style.removeProperty("--slide-width"),X.viewport.style.removeProperty("--slide-height"),X.slides.style.removeProperty("width"),X.slides.style.removeProperty("height"),X.slides.style.removeProperty("zoom"),X.slides.style.removeProperty("left"),X.slides.style.removeProperty("top"),X.slides.style.removeProperty("bottom"),X.slides.style.removeProperty("right"),X.slides.style.removeProperty("transform"),Array.from(X.wrapper.querySelectorAll(v)).forEach((e=>{e.style.removeProperty("display"),e.style.removeProperty("top"),e.removeAttribute("hidden"),e.removeAttribute("aria-hidden")}))},sync:_e,syncSlide:function(e=b){se.sync(e),re.sync(e),Z.load(e),se.update(),me.update()},syncFragments:re.sync.bind(re),slide:Xe,left:mt,right:ft,up:yt,down:bt,prev:wt,next:Et,navigateLeft:mt,navigateRight:ft,navigateUp:yt,navigateDown:bt,navigatePrev:wt,navigateNext:Et,navigateFragment:re.goto.bind(re),prevFragment:re.prev.bind(re),nextFragment:re.next.bind(re),on:Ae,off:Re,addEventListener:Ae,removeEventListener:Re,layout:Be,shuffle:Je,availableRoutes:tt,availableFragments:re.availableRoutes.bind(re),toggleHelp:function(e){"boolean"==typeof e?e?Me():Ie():X.overlay?Ie():Me()},toggleOverview:oe.toggle.bind(oe),toggleScrollView:ae.toggle.bind(ae),togglePause:Ke,toggleAutoSlide:function(e){"boolean"==typeof e?e?vt():pt():Q?vt():pt()},toggleJumpToSlide:function(e){"boolean"==typeof e?e?te.show():te.hide():te.isVisible()?te.hide():te.show()},isFirstSlide:We,isLastSlide:Ue,isLastVerticalSlide:Oe,isVerticalSlide:qe,isVerticalStack:function(e=b){return e.classList.contains(".stack")||null!==e.querySelector("section")},isPaused:$e,isAutoSliding:function(){return!(!_||Q)},isSpeakerNotes:me.isSpeakerNotesWindow.bind(me),isOverview:oe.isActive.bind(oe),isFocused:pe.isFocused.bind(pe),isScrollView:ae.isActive.bind(ae),isPrintView:ne.isActive.bind(ne),isReady:()=>H,loadSlide:Z.load.bind(Z),unloadSlide:Z.unload.bind(Z),startEmbeddedContent:()=>Z.startEmbeddedContent(b),stopEmbeddedContent:()=>Z.stopEmbeddedContent(b,{unloadIframes:!1}),showPreview:Ne,hidePreview:Ie,addEventListeners:Ee,removeEventListeners:Se,dispatchEvent:Le,getState:ht,setState:function(e){if("object"==typeof e){Xe(s(e.indexh),s(e.indexv),s(e.indexf));let t=s(e.paused),i=s(e.overview);"boolean"==typeof t&&t!==$e()&&Ke(t),"boolean"==typeof i&&i!==oe.isActive()&&oe.toggle(i)}},getProgress:function(){let e=dt(),t=it();if(b){let e=b.querySelectorAll(".fragment");if(e.length>0){let i=.9;t+=b.querySelectorAll(".fragment.visible").length/e.length*i}}return Math.min(t/(e-1),1)},getIndices:st,getSlidesAttributes:function(){return at().map((e=>{let t={};for(let i=0;ig,getCurrentSlide:()=>b,getSlideBackground:function(e,t){let i="number"==typeof e?ct(e,t):e;if(i)return i.slideBackgroundElement},getSlideNotes:me.getSlideNotes.bind(me),getSlides:at,getHorizontalSlides:nt,getVerticalSlides:rt,hasHorizontalSlides:ot,hasVerticalSlides:lt,hasNavigatedHorizontally:()=>z.hasNavigatedHorizontally,hasNavigatedVertically:()=>z.hasNavigatedVertically,shouldAutoAnimateBetween:Ye,addKeyBinding:le.addKeyBinding.bind(le),removeKeyBinding:le.removeKeyBinding.bind(le),triggerKey:le.triggerKey.bind(le),registerKeyboardShortcut:le.registerKeyboardShortcut.bind(le),getComputedSlideSize:De,setCurrentScrollPage:function(e,t,i){let s=c||0;c=t,u=i;const a=b!==e;g=b,b=e,b&&g&&R.autoAnimate&&Ye(g,b,s,u)&&ie.run(g,b),a&&(g&&(Z.stopEmbeddedContent(g),Z.stopEmbeddedContent(g.slideBackgroundElement)),Z.startEmbeddedContent(b),Z.startEmbeddedContent(b.slideBackgroundElement)),requestAnimationFrame((()=>{ye(be(b))})),Ce()},getScale:()=>K,getConfig:()=>R,getQueryHash:l,getSlidePath:de.getHash.bind(de),getRevealElement:()=>n,getSlidesElement:()=>X.slides,getViewportElement:()=>X.viewport,getBackgroundsElement:()=>se.element,registerPlugin:ge.registerPlugin.bind(ge),hasPlugin:ge.hasPlugin.bind(ge),getPlugin:ge.getPlugin.bind(ge),getPlugins:ge.getRegisteredPlugins.bind(ge)};return e(d,{...Tt,announceStatus:ye,getStatusText:be,focus:pe,scroll:ae,progress:he,controls:ce,location:de,overview:oe,fragments:re,backgrounds:se,slideContent:Z,slideNumber:ee,onUserInput:function(e){R.autoSlideStoppable&&pt()},closeOverlay:Ie,updateSlidesVisibility:et,layoutSlideContents:He,transformSlides:ke,cueAutoSlide:ut,cancelAutoSlide:gt}),Tt}let $=K,X=[];$.initialize=e=>(Object.assign($,new K(document.querySelector(".reveal"),e)),X.map((e=>e($))),$.initialize()),["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach((e=>{$[e]=(...t)=>{X.push((i=>i[e].call(null,...t)))}})),$.isReady=()=>!1,$.VERSION=j;export{$ as default};
//# sourceMappingURL=reveal.esm.js.map