diff --git a/dist/reveal.min.js b/dist/reveal.min.js index d4adb8d..92e1fb9 100644 --- a/dist/reveal.min.js +++ b/dist/reveal.min.js @@ -5,4 +5,4 @@ * * Copyright (C) 2020 Hakim El Hattab, https://hakim.se */ -!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var i=0;i3&&void 0!==arguments[3]?arguments[3]:"",a=e.querySelectorAll("."+i),r=0;r0&&(t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))),document.head.appendChild(t),t},m=function(){var e={};for(var t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,(function(t){e[t.split("=").shift()]=t.split("=").pop()})),e){var i=e[t];e[t]=h(unescape(i))}return void 0!==e.dependencies&&delete e.dependencies,e},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e){var i,n=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",i=t-e.parentNode.offsetHeight,e.style.height=n+"px",e.parentNode.style.removeProperty("height"),i}return t},b=navigator.userAgent,k=document.createElement("div"),w=/(iphone|ipod|ipad|android)/gi.test(b)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,A=/chrome/i.test(b)&&!/edge/i.test(b),R=/android/gi.test(b),E="zoom"in k.style&&!w&&(A||/Version\/[\d\.]+.*Safari/.test(b)),S="function"==typeof window.history.replaceState&&!/PhantomJS/.test(b),L=function(){function e(i){t(this,e),this.Reveal=i,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}return n(e,[{key:"shouldPreload",value:function(e){var t=this.Reveal.getConfig().preloadIframes;return"boolean"!=typeof t&&(t=e.hasAttribute("data-preload")),t}},{key:"load",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.style.display=this.Reveal.getConfig().display,u(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((function(e){("IFRAME"!==e.tagName||t.shouldPreload(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))})),u(e,"video, audio").forEach((function(e){var t=0;u(e,"source[data-src]").forEach((function(e){e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1})),t>0&&e.load()}));var n=e.slideBackgroundElement;if(n){n.style.display="block";var a=e.slideBackgroundContentElement,r=e.getAttribute("data-background-iframe");if(!1===n.hasAttribute("data-loaded")){n.setAttribute("data-loaded","true");var s=e.getAttribute("data-background-image"),o=e.getAttribute("data-background-video"),l=e.hasAttribute("data-background-video-loop"),d=e.hasAttribute("data-background-video-muted");if(s)a.style.backgroundImage="url("+encodeURI(s)+")";else if(o&&!this.Reveal.isSpeakerNotes()){var c=document.createElement("video");l&&c.setAttribute("loop",""),d&&(c.muted=!0),w&&(c.muted=!0,c.autoplay=!0,c.setAttribute("playsinline","")),o.split(",").forEach((function(e){c.innerHTML+=''})),a.appendChild(c)}else if(r&&!0!==i.excludeIframes){var h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",r),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",a.appendChild(h)}}var v=a.querySelector("iframe[data-src]");v&&this.shouldPreload(n)&&!/autoplay=(1|true|yes)/gi.test(r)&&v.getAttribute("src")!==r&&v.setAttribute("src",r)}}},{key:"unload",value:function(e){e.style.display="none";var t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",u(t,"iframe[src]").forEach((function(e){e.removeAttribute("src")}))),u(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((function(e){e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})),u(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach((function(e){e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}))}},{key:"formatEmbeddedContent",value:function(){var e=this,t=function(t,i,n){u(e.Reveal.getSlidesElement(),"iframe["+t+'*="'+i+'"]').forEach((function(e){var i=e.getAttribute(t);i&&-1===i.indexOf(n)&&e.setAttribute(t,i+(/\?/.test(i)?"&":"?")+n)}))};t("src","youtube.com/embed/","enablejsapi=1"),t("data-src","youtube.com/embed/","enablejsapi=1"),t("src","player.vimeo.com/","api=1"),t("data-src","player.vimeo.com/","api=1")}},{key:"startEmbeddedContent",value:function(e){var t=this;e&&!this.Reveal.isSpeakerNotes()&&(u(e,'img[src$=".gif"]').forEach((function(e){e.setAttribute("src",e.getAttribute("src"))})),u(e,"video, audio").forEach((function(e){if(!g(e,".fragment")||g(e,".fragment.visible")){var i=t.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof i&&(i=e.hasAttribute("data-autoplay")||!!g(e,".slide-background")),i&&"function"==typeof e.play)if(e.readyState>1)t.startEmbeddedMedia({target:e});else if(w){var n=e.play();n&&"function"==typeof n.catch&&!1===e.controls&&n.catch((function(){e.controls=!0,e.addEventListener("play",(function(){e.controls=!1}))}))}else e.removeEventListener("loadeddata",t.startEmbeddedMedia),e.addEventListener("loadeddata",t.startEmbeddedMedia)}})),u(e,"iframe[src]").forEach((function(e){g(e,".fragment")&&!g(e,".fragment.visible")||t.startEmbeddedIframe({target:e})})),u(e,"iframe[data-src]").forEach((function(e){g(e,".fragment")&&!g(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",t.startEmbeddedIframe),e.addEventListener("load",t.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))})))}},{key:"startEmbeddedMedia",value:function(e){var t=!!g(e.target,"html"),i=!!g(e.target,".present");t&&i&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}},{key:"startEmbeddedIframe",value:function(e){var t=e.target;if(t&&t.contentWindow){var i=!!g(e.target,"html"),n=!!g(e.target,".present");if(i&&n){var a=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof a&&(a=t.hasAttribute("data-autoplay")||!!g(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&a?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&a?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}},{key:"stopEmbeddedContent",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i=c({unloadIframes:!0},i),e&&e.parentNode&&(u(e,"video, audio").forEach((function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())})),u(e,"iframe").forEach((function(e){e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",t.startEmbeddedIframe)})),u(e,'iframe[src*="youtube.com/embed/"]').forEach((function(e){!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})),u(e,'iframe[src*="player.vimeo.com/"]').forEach((function(e){!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")})),!0===i.unloadIframes&&u(e,"iframe[data-src]").forEach((function(e){e.setAttribute("src","about:blank"),e.removeAttribute("src")})))}}]),e}(),x=function(){function e(i){t(this,e),this.Reveal=i}return n(e,[{key:"render",value:function(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}},{key:"configure",value:function(e,t){var i="none";e.slideNumber&&!this.Reveal.isPrintingPDF()&&("all"===e.showSlideNumber||"speaker"===e.showSlideNumber&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}},{key:"update",value:function(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}},{key:"getSlideNumber",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide(),i=this.Reveal.getConfig(),n="h.v";if("function"==typeof i.slideNumber)e=i.slideNumber(t);else switch("string"==typeof i.slideNumber&&(n=i.slideNumber),/c/.test(n)||1!==this.Reveal.getHorizontalSlides().length||(n="c"),e=[],n){case"c":e.push(this.Reveal.getSlidePastCount(t)+1);break;case"c/t":e.push(this.Reveal.getSlidePastCount(t)+1,"/",this.Reveal.getTotalSlides());break;default:var a=this.Reveal.getIndices(t);e.push(a.h+1);var r="h/v"===n?"/":".";this.Reveal.isVerticalSlide(t)&&e.push(r,a.v+1)}var s="#"+this.Reveal.location.getHash(t);return this.formatNumber(e[0],e[1],e[2],s)}},{key:"formatNumber",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#"+this.Reveal.location.getHash();return"number"!=typeof i||isNaN(i)?'\n\t\t\t\t\t').concat(e,"\n\t\t\t\t\t"):'\n\t\t\t\t\t').concat(e,'\n\t\t\t\t\t').concat(t,'\n\t\t\t\t\t').concat(i,"\n\t\t\t\t\t")}}]),e}(),C=function(e){var t=e.match(/^#([0-9a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseInt(t.charAt(1),16),b:17*parseInt(t.charAt(2),16)};var i=e.match(/^#([0-9a-f]{6})$/i);if(i&&i[1])return i=i[1],{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16)};var n=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(n)return{r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10)};var a=e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return a?{r:parseInt(a[1],10),g:parseInt(a[2],10),b:parseInt(a[3],10),a:parseFloat(a[4])}:null},P=function(){function e(i){t(this,e),this.Reveal=i}return n(e,[{key:"render",value:function(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}},{key:"create",value:function(){var e=this;this.Reveal.isPrintingPDF();this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach((function(t){var i=e.createBackground(t,e.element);u(t,"section").forEach((function(t){e.createBackground(t,i),i.classList.add("stack")}))})),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backgroundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.element.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.element.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,this.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPosition,setTimeout((function(){e.Reveal.getRevealElement().classList.add("has-parallax-background")}),1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}},{key:"createBackground",value:function(e,t){var i=document.createElement("div");i.className="slide-background "+e.className.replace(/present|past|future/,"");var n=document.createElement("div");return n.className="slide-background-content",i.appendChild(n),t.appendChild(i),e.slideBackgroundElement=i,e.slideBackgroundContentElement=n,this.sync(e),i}},{key:"sync",value:function(e){var t=e.slideBackgroundElement,i=e.slideBackgroundContentElement;e.classList.remove("has-dark-background"),e.classList.remove("has-light-background"),t.removeAttribute("data-loaded"),t.removeAttribute("data-background-hash"),t.removeAttribute("data-background-size"),t.removeAttribute("data-background-transition"),t.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="";var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundVideo:e.getAttribute("data-background-video"),backgroundIframe:e.getAttribute("data-background-iframe"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition"),backgroundOpacity:e.getAttribute("data-background-opacity")};n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test(n.background)?e.setAttribute("data-background-image",n.background):t.style.background=n.background),(n.background||n.backgroundColor||n.backgroundImage||n.backgroundVideo||n.backgroundIframe)&&t.setAttribute("data-background-hash",n.background+n.backgroundSize+n.backgroundImage+n.backgroundVideo+n.backgroundIframe+n.backgroundColor+n.backgroundRepeat+n.backgroundPosition+n.backgroundTransition+n.backgroundOpacity),n.backgroundSize&&t.setAttribute("data-background-size",n.backgroundSize),n.backgroundColor&&(t.style.backgroundColor=n.backgroundColor),n.backgroundTransition&&t.setAttribute("data-background-transition",n.backgroundTransition),e.hasAttribute("data-preload")&&t.setAttribute("data-preload",""),n.backgroundSize&&(i.style.backgroundSize=n.backgroundSize),n.backgroundRepeat&&(i.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(i.style.backgroundPosition=n.backgroundPosition),n.backgroundOpacity&&(i.style.opacity=n.backgroundOpacity);var a,r=n.backgroundColor;if(!r){var s=window.getComputedStyle(t);s&&s.backgroundColor&&(r=s.backgroundColor)}if(r){var o=C(r);o&&0!==o.a&&("string"==typeof(a=r)&&(a=C(a)),(a?(299*a.r+587*a.g+114*a.b)/1e3:null)<128?e.classList.add("has-dark-background"):e.classList.add("has-light-background"))}}},{key:"update",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.Reveal.getCurrentSlide(),n=this.Reveal.getIndices(),a=null,r=this.Reveal.getConfig().rtl?"future":"past",s=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((function(e,i){e.classList.remove("past","present","future"),in.h?e.classList.add(s):(e.classList.add("present"),a=e),(t||i===n.h)&&u(e,".slide-background").forEach((function(e,t){e.classList.remove("past","present","future"),tn.v?e.classList.add("future"):(e.classList.add("present"),i===n.h&&(a=e))}))})),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a){this.Reveal.slideContent.startEmbeddedContent(a);var o=a.querySelector(".slide-background-content");if(o){var l=o.style.backgroundImage||"";/\.gif/i.test(l)&&(o.style.backgroundImage="",window.getComputedStyle(o).opacity,o.style.backgroundImage=l)}var d=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,c=a.getAttribute("data-background-hash");c&&c===d&&a!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=a}i&&["has-light-background","has-dark-background"].forEach((function(t){i.classList.contains(t)?e.Reveal.getRevealElement().classList.add(t):e.Reveal.getRevealElement().classList.remove(t)}),this),setTimeout((function(){e.element.classList.remove("no-transition")}),1)}},{key:"updateParallax",value:function(){var e=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){var t,i,n=this.Reveal.getHorizontalSlides(),a=this.Reveal.getVerticalSlides(),r=this.element.style.backgroundSize.split(" ");1===r.length?t=i=parseInt(r[0],10):(t=parseInt(r[0],10),i=parseInt(r[1],10));var s,o=this.element.offsetWidth,l=n.length;s=("number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:l>1?(t-o)/(l-1):0)*e.h*-1;var d,c,u=this.element.offsetHeight,h=a.length;d="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-u)/(h-1),c=h>0?d*e.v:0,this.element.style.backgroundPosition=s+"px "+-c+"px"}}}]),e}(),N=function(){function e(i){t(this,e),this.Reveal=i,this.autoAnimateCounter=0}return n(e,[{key:"run",value:function(e,t){var i=this;if(this.reset(),e.hasAttribute("data-auto-animate")&&t.hasAttribute("data-auto-animate")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||p();var n=this.getAutoAnimateOptions(t);e.dataset.autoAnimate="pending",t.dataset.autoAnimate="pending";var a=this.Reveal.getSlides();n.slideDirection=a.indexOf(t)>a.indexOf(e)?"forward":"backward";var r=this.getAutoAnimatableElements(e,t).map((function(e){return i.autoAnimateElements(e.from,e.to,e.options||{},n,i.autoAnimateCounter++)}));if("false"!==t.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){var s=.8*n.duration,o=.2*n.duration;this.getUnmatchedAutoAnimateElements(t).forEach((function(e){var t=i.getAutoAnimateOptions(e,n),a="unmatched";t.duration===n.duration&&t.delay===n.delay||(a="unmatched-"+i.autoAnimateCounter++,r.push('[data-auto-animate="running"] [data-auto-animate-target="'.concat(a,'"] { transition: opacity ').concat(t.duration,"s ease ").concat(t.delay,"s; }"))),e.dataset.autoAnimateTarget=a}),this),r.push('[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity '.concat(s,"s ease ").concat(o,"s; }"))}this.autoAnimateStyleSheet.innerHTML=r.join(""),requestAnimationFrame((function(){i.autoAnimateStyleSheet&&(getComputedStyle(i.autoAnimateStyleSheet).fontWeight,t.dataset.autoAnimate="running")})),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:e,toSlide:t,sheet:this.autoAnimateStyleSheet}})}}},{key:"reset",value:function(){u(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach((function(e){e.dataset.autoAnimate=""})),u(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach((function(e){delete e.dataset.autoAnimateTarget})),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}},{key:"autoAnimateElements",value:function(e,t,i,n,a){e.dataset.autoAnimateTarget="",t.dataset.autoAnimateTarget=a;var r=this.getAutoAnimateOptions(t,n);void 0!==i.delay&&(r.delay=i.delay),void 0!==i.duration&&(r.duration=i.duration),void 0!==i.easing&&(r.easing=i.easing);var s=this.getAutoAnimatableProperties("from",e,i),o=this.getAutoAnimatableProperties("to",t,i);t.classList.contains("fragment")&&(delete o.styles.opacity,e.classList.contains("fragment")&&(e.className.match(d)||[""])[0]===(t.className.match(d)||[""])[0]&&"forward"===n.slideDirection&&t.classList.add("visible","disabled"));if(!1!==i.translate||!1!==i.scale){var l=this.Reveal.getScale(),c={x:(s.x-o.x)/l,y:(s.y-o.y)/l,scaleX:s.width/o.width,scaleY:s.height/o.height};c.x=Math.round(1e3*c.x)/1e3,c.y=Math.round(1e3*c.y)/1e3,c.scaleX=Math.round(1e3*c.scaleX)/1e3,c.scaleX=Math.round(1e3*c.scaleX)/1e3;var u=!1!==i.translate&&(0!==c.x||0!==c.y),h=!1!==i.scale&&(0!==c.scaleX||0!==c.scaleY);if(u||h){var v=[];u&&v.push("translate(".concat(c.x,"px, ").concat(c.y,"px)")),h&&v.push("scale(".concat(c.scaleX,", ").concat(c.scaleY,")")),s.styles.transform=v.join(" "),s.styles["transform-origin"]="top left",o.styles.transform="none"}}for(var g in o.styles){var f=o.styles[g],p=s.styles[g];f===p?delete o.styles[g]:(!0===f.explicitValue&&(o.styles[g]=f.value),!0===p.explicitValue&&(s.styles[g]=p.value))}var m="",y=Object.keys(o.styles);y.length>0&&(s.styles.transition="none",o.styles.transition="all ".concat(r.duration,"s ").concat(r.easing," ").concat(r.delay,"s"),o.styles["transition-property"]=y.join(", "),o.styles["will-change"]=y.join(", "),m='[data-auto-animate-target="'+a+'"] {'+Object.keys(s.styles).map((function(e){return e+": "+s.styles[e]+" !important;"})).join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+a+'"] {'+Object.keys(o.styles).map((function(e){return e+": "+o.styles[e]+" !important;"})).join("")+"}");return m}},{key:"getAutoAnimateOptions",value:function(e,t){var i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=c(i,t),e.closest&&e.parentNode){var n=e.parentNode.closest("[data-auto-animate-target]");n&&(i=this.getAutoAnimateOptions(n,i))}return e.dataset.autoAnimateEasing&&(i.easing=e.dataset.autoAnimateEasing),e.dataset.autoAnimateDuration&&(i.duration=parseFloat(e.dataset.autoAnimateDuration)),e.dataset.autoAnimateDelay&&(i.delay=parseFloat(e.dataset.autoAnimateDelay)),i}},{key:"getAutoAnimatableProperties",value:function(e,t,i){var n,a={styles:[]};!1===i.translate&&!1===i.scale||(n="function"==typeof i.measure?i.measure(t):t.getBoundingClientRect(),a.x=n.x,a.y=n.y,a.width=n.width,a.height=n.height);var r=getComputedStyle(t);return(i.styles||this.Reveal.getConfig().autoAnimateStyles).forEach((function(t){var i;"string"==typeof t&&(t={property:t}),""!==(i=void 0!==t.from&&"from"===e?{value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?{value:t.to,explicitValue:!0}:r[t.property])&&(a.styles[t.property]=i)})),a}},{key:"getAutoAnimatableElements",value:function(e,t){var i=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,e,t),n=[];return i.filter((function(e,t){if(-1===n.indexOf(e.to))return n.push(e.to),!0}))}},{key:"getAutoAnimatePairs",value:function(e,t){var i=this,n=[],a="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(n,e,t,"[data-id]",(function(e){return e.nodeName+":::"+e.getAttribute("data-id")})),this.findAutoAnimateMatches(n,e,t,a,(function(e){return e.nodeName+":::"+e.innerText})),this.findAutoAnimateMatches(n,e,t,"img, video, iframe",(function(e){return e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src"))})),this.findAutoAnimateMatches(n,e,t,"pre",(function(e){return e.nodeName+":::"+e.innerText})),n.forEach((function(e){e.from.matches(a)?e.options={scale:!1}:e.from.matches("pre")&&(e.options={scale:!1,styles:["width","height"]},i.findAutoAnimateMatches(n,e.from,e.to,".hljs .hljs-ln-code",(function(e){return e.textContent}),{scale:!1,styles:[],measure:i.getLocalBoundingBox.bind(i)}),i.findAutoAnimateMatches(n,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",(function(e){return e.getAttribute("data-line-number")}),{scale:!1,styles:["width"],measure:i.getLocalBoundingBox.bind(i)}))}),this),n}},{key:"getLocalBoundingBox",value:function(e){var t=this.Reveal.getScale();return{x:Math.round(e.offsetLeft*t*100)/100,y:Math.round(e.offsetTop*t*100)/100,width:Math.round(e.offsetWidth*t*100)/100,height:Math.round(e.offsetHeight*t*100)/100}}},{key:"findAutoAnimateMatches",value:function(e,t,i,n,a,r){var s={},o={};[].slice.call(t.querySelectorAll(n)).forEach((function(e,t){var i=a(e);"string"==typeof i&&i.length&&(s[i]=s[i]||[],s[i].push(e))})),[].slice.call(i.querySelectorAll(n)).forEach((function(t,i){var n,l=a(t);if(o[l]=o[l]||[],o[l].push(t),s[l]){var d=o[l].length-1,c=s[l].length-1;s[l][d]?(n=s[l][d],s[l][d]=null):s[l][c]&&(n=s[l][c],s[l][c]=null)}n&&e.push({from:n,to:t,options:r})}))}},{key:"getUnmatchedAutoAnimateElements",value:function(e){var t=this;return[].slice.call(e.children).reduce((function(e,i){var n=i.querySelector("[data-auto-animate-target]");return i.hasAttribute("data-auto-animate-target")||n||e.push(i),i.querySelector("[data-auto-animate-target]")&&(e=e.concat(t.getUnmatchedAutoAnimateElements(i))),e}),[])}}]),e}(),M=function(){function e(i){t(this,e),this.Reveal=i}return n(e,[{key:"configure",value:function(e,t){!1===e.fragments?this.disable():!1===t.fragments&&this.enable()}},{key:"disable",value:function(){u(this.Reveal.getSlidesElement(),".fragment").forEach((function(e){e.classList.add("visible"),e.classList.remove("current-fragment")}))}},{key:"enable",value:function(){u(this.Reveal.getSlidesElement(),".fragment").forEach((function(e){e.classList.remove("visible"),e.classList.remove("current-fragment")}))}},{key:"availableRoutes",value:function(){var e=this.Reveal.getCurrentSlide();if(e&&this.Reveal.getConfig().fragments){var t=e.querySelectorAll(".fragment:not(.disabled)"),i=e.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:t.length-i.length>0,next:!!i.length}}return{prev:!1,next:!1}}},{key:"sort",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e);var i=[],n=[],a=[];e.forEach((function(e){if(e.hasAttribute("data-fragment-index")){var t=parseInt(e.getAttribute("data-fragment-index"),10);i[t]||(i[t]=[]),i[t].push(e)}else n.push([e])})),i=i.concat(n);var r=0;return i.forEach((function(e){e.forEach((function(e){a.push(e),e.setAttribute("data-fragment-index",r)})),r++})),!0===t?i:a}},{key:"sortAll",value:function(){var e=this;this.Reveal.getHorizontalSlides().forEach((function(t){var i=u(t,"section");i.forEach((function(t,i){e.sort(t.querySelectorAll(".fragment"))}),e),0===i.length&&e.sort(t.querySelectorAll(".fragment"))}))}},{key:"update",value:function(e,t){var i=this,n={shown:[],hidden:[]},a=this.Reveal.getCurrentSlide();if(a&&this.Reveal.getConfig().fragments&&(t=t||this.sort(a.querySelectorAll(".fragment"))).length){var r=0;if("number"!=typeof e){var s=this.sort(a.querySelectorAll(".fragment.visible")).pop();s&&(e=parseInt(s.getAttribute("data-fragment-index")||0,10))}Array.from(t).forEach((function(t,a){if(t.hasAttribute("data-fragment-index")&&(a=parseInt(t.getAttribute("data-fragment-index"),10)),r=Math.max(r,a),a<=e){var s=t.classList.contains("visible");t.classList.add("visible"),t.classList.remove("current-fragment"),a===e&&(i.Reveal.announceStatus(i.Reveal.getStatusText(t)),t.classList.add("current-fragment"),i.Reveal.slideContent.startEmbeddedContent(t)),s||(n.shown.push(t),i.Reveal.dispatchEvent({target:t,type:"visible",bubbles:!1}))}else{var o=t.classList.contains("visible");t.classList.remove("visible"),t.classList.remove("current-fragment"),o&&(n.hidden.push(t),i.Reveal.dispatchEvent({target:t,type:"hidden",bubbles:!1}))}})),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,r),-1),a.setAttribute("data-fragment",e)}return n}},{key:"sync",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();return this.sort(e.querySelectorAll(".fragment"))}},{key:"goto",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){var n=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(n.length){if("number"!=typeof e){var a=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=a?parseInt(a.getAttribute("data-fragment-index")||0,10):-1}e+=t;var r=this.update(e,n);return r.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:r.hidden[0],fragments:r.hidden}}),r.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:r.shown[0],fragments:r.shown}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!r.shown.length&&!r.hidden.length)}}return!1}},{key:"next",value:function(){return this.goto(null,1)}},{key:"prev",value:function(){return this.goto(null,-1)}}]),e}(),I=function(){function e(i){t(this,e),this.Reveal=i,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}return n(e,[{key:"activate",value:function(){var e=this;if(this.Reveal.getConfig().overview&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),u(this.Reveal.getRevealElement(),".slides section").forEach((function(t){t.classList.contains("stack")||t.addEventListener("click",e.onSlideClicked,!0)}));var t=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=t.width+70,this.overviewSlideHeight=t.height+70,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();var i=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:i.h,indexv:i.v,currentSlide:this.Reveal.getCurrentSlide()}})}}},{key:"layout",value:function(){var e=this;this.Reveal.getHorizontalSlides().forEach((function(t,i){t.setAttribute("data-index-h",i),v(t,"translate3d("+i*e.overviewSlideWidth+"px, 0, 0)"),t.classList.contains("stack")&&u(t,"section").forEach((function(t,n){t.setAttribute("data-index-h",i),t.setAttribute("data-index-v",n),v(t,"translate3d(0, "+n*e.overviewSlideHeight+"px, 0)")}))})),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((function(t,i){v(t,"translate3d("+i*e.overviewSlideWidth+"px, 0, 0)"),u(t,".slide-background").forEach((function(t,i){v(t,"translate3d(0, "+i*e.overviewSlideHeight+"px, 0)")}))}))}},{key:"update",value:function(){var e=Math.min(window.innerWidth,window.innerHeight),t=Math.max(e/5,150)/e,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+t+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}},{key:"deactivate",value:function(){var e=this;if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout((function(){e.Reveal.getRevealElement().classList.remove("overview-deactivating")}),1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),u(this.Reveal.getRevealElement(),".slides section").forEach((function(t){v(t,""),t.removeEventListener("click",e.onSlideClicked,!0)})),u(this.Reveal.getBackgroundsElement(),".slide-background").forEach((function(e){v(e,"")})),this.Reveal.transformSlides({overview:""});var t=this.Reveal.getIndices();this.Reveal.slide(t.h,t.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:t.h,indexv:t.v,currentSlide:this.Reveal.getCurrentSlide()}})}}},{key:"toggle",value:function(e){"boolean"==typeof e?e?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}},{key:"isActive",value:function(){return this.active}},{key:"onSlideClicked",value:function(e){if(this.isActive()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(this.deactivate(),t.nodeName.match(/section/gi))){var i=parseInt(t.getAttribute("data-index-h"),10),n=parseInt(t.getAttribute("data-index-v"),10);this.Reveal.slide(i,n)}}}}]),e}(),D=function(){function i(e){t(this,i),this.Reveal=e,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}return n(i,[{key:"configure",value:function(e,t){"linear"===e.navigationMode?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts.P="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Home , Shift ←"]="First slide",this.shortcuts["End , Shift →"]="Last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts["ESC, O"]="Slide overview"}},{key:"bind",value:function(){document.addEventListener("keydown",this.onDocumentKeyDown,!1),document.addEventListener("keypress",this.onDocumentKeyPress,!1)}},{key:"unbind",value:function(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1),document.removeEventListener("keypress",this.onDocumentKeyPress,!1)}},{key:"addKeyBinding",value:function(t,i){"object"===e(t)&&t.keyCode?this.bindings[t.keyCode]={callback:i,key:t.key,description:t.description}:this.bindings[t]={callback:i,key:null,description:null}}},{key:"removeKeyBinding",value:function(e){delete this.bindings[e]}},{key:"triggerKey",value:function(e){this.onDocumentKeyDown({keyCode:e})}},{key:"registerKeyboardShortcut",value:function(e,t){this.shortcuts[e]=t}},{key:"onDocumentKeyPress",value:function(e){e.shiftKey&&63===e.charCode&&this.Reveal.toggleHelp()}},{key:"onDocumentKeyDown",value:function(t){var i=this.Reveal.getConfig();if("function"==typeof i.keyboardCondition&&!1===i.keyboardCondition(t))return!0;var n=t.keyCode,a=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(t);var r=document.activeElement&&"inherit"!==document.activeElement.contentEditable,s=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),o=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),l=t.shiftKey&&32===t.keyCode,d=t.shiftKey&&37===n,c=t.shiftKey&&39===n,u=!l&&!d&&!c&&(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey);if(!(r||s||o||u)){var h,v=[66,86,190,191];if("object"===e(i.keyboard))for(h in i.keyboard)"togglePause"===i.keyboard[h]&&v.push(parseInt(h,10));if(this.Reveal.isPaused()&&-1===v.indexOf(n))return!1;var g,f,p="linear"===i.navigationMode||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),m=!1;if("object"===e(i.keyboard))for(h in i.keyboard)if(parseInt(h,10)===n){var y=i.keyboard[h];"function"==typeof y?y.apply(null,[t]):"string"==typeof y&&"function"==typeof this.Reveal[y]&&this.Reveal[y].call(),m=!0}if(!1===m)for(h in this.bindings)if(parseInt(h,10)===n){var b=this.bindings[h].callback;"function"==typeof b?b.apply(null,[t]):"string"==typeof b&&"function"==typeof this.Reveal[b]&&this.Reveal[b].call(),m=!0}!1===m&&(m=!0,80===n||33===n?this.Reveal.prev():78===n||34===n?this.Reveal.next():72===n||37===n?d?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&p?this.Reveal.prev():this.Reveal.left():76===n||39===n?c?this.Reveal.slide(Number.MAX_VALUE):!this.Reveal.overview.isActive()&&p?this.Reveal.next():this.Reveal.right():75===n||38===n?!this.Reveal.overview.isActive()&&p?this.Reveal.prev():this.Reveal.up():74===n||40===n?!this.Reveal.overview.isActive()&&p?this.Reveal.next():this.Reveal.down():36===n?this.Reveal.slide(0):35===n?this.Reveal.slide(Number.MAX_VALUE):32===n?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),t.shiftKey?this.Reveal.prev():this.Reveal.next()):58===n||59===n||66===n||86===n||190===n||191===n?this.Reveal.togglePause():70===n?(g=document.documentElement,(f=g.requestFullscreen||g.webkitRequestFullscreen||g.webkitRequestFullScreen||g.mozRequestFullScreen||g.msRequestFullscreen)&&f.apply(g)):65===n?i.autoSlideStoppable&&this.Reveal.toggleAutoSlide(a):m=!1),m?t.preventDefault&&t.preventDefault():27!==n&&79!==n||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.toggle(),t.preventDefault&&t.preventDefault()),this.Reveal.cueAutoSlide()}}}]),i}(),T=function(){function e(i){t(this,e),this.Reveal=i,this.writeURLTimeout=0}return n(e,[{key:"readURL",value:function(){var e=this.Reveal.getConfig(),t=this.Reveal.getIndices(),i=this.Reveal.getCurrentSlide(),n=window.location.hash,a=n.slice(2).split("/"),r=n.replace(/#|\//gi,"");if(!/^[0-9]*$/.test(a[0])&&r.length){var s;try{s=document.getElementById(decodeURIComponent(r))}catch(e){}var o=!!i&&i.getAttribute("id")===r;if(s){if(!o){var l=this.Reveal.getIndices(s);this.Reveal.slide(l.h,l.v)}}else this.Reveal.slide(t.h||0,t.v||0)}else{var d,c=e.hashOneBasedIndex?1:0,u=parseInt(a[0],10)-c||0,h=parseInt(a[1],10)-c||0;e.fragmentInURL&&(d=parseInt(a[2],10),isNaN(d)&&(d=void 0)),u===t.h&&h===t.v&&void 0===d||this.Reveal.slide(u,h,d)}}},{key:"writeURL",value:function(e){var t=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();clearTimeout(this.writeURLTimeout),"number"==typeof e?this.writeURLTimeout=setTimeout(this.writeURL,e):i&&(t.history||!1===S?window.location.hash=this.getHash():t.hash?window.history.replaceState(null,null,"#"+this.getHash()):window.history.replaceState(null,null,window.location.pathname+window.location.search))}},{key:"getHash",value:function(e){var t="/",i=e||this.Reveal.getCurrentSlide(),n=i?i.getAttribute("id"):null;n&&(n=encodeURIComponent(n));var a=this.Reveal.getIndices(e);if(this.Reveal.getConfig().fragmentInURL||(a.f=void 0),"string"==typeof n&&n.length&&void 0===a.f)t="/"+n;else{var r=this.Reveal.getConfig().hashOneBasedIndex?1:0;(a.h>0||a.v>0||void 0!==a.f)&&(t+=a.h+r),(a.v>0||void 0!==a.f)&&(t+="/"+(a.v+r)),void 0!==a.f&&(t+="/"+a.f)}return t}}]),e}(),B=function(){function e(i){t(this,e),this.Reveal=i,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this)}return n(e,[{key:"render",value:function(){var e=this.Reveal.getConfig().rtl,t=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML='\n\t\t\t\n\t\t\t\n\t\t\t'),this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=u(t,".navigate-left"),this.controlsRight=u(t,".navigate-right"),this.controlsUp=u(t,".navigate-up"),this.controlsDown=u(t,".navigate-down"),this.controlsPrev=u(t,".navigate-prev"),this.controlsNext=u(t,".navigate-next"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}},{key:"configure",value:function(e,t){this.element.style.display=e.controls?"block":"none",this.element.setAttribute("data-controls-layout",e.controlsLayout),this.element.setAttribute("data-controls-back-arrows",e.controlsBackArrows)}},{key:"bind",value:function(){var e=this,t=["touchstart","click"];R&&(t=["touchstart"]),t.forEach((function(t){e.controlsLeft.forEach((function(i){return i.addEventListener(t,e.onNavigateLeftClicked,!1)})),e.controlsRight.forEach((function(i){return i.addEventListener(t,e.onNavigateRightClicked,!1)})),e.controlsUp.forEach((function(i){return i.addEventListener(t,e.onNavigateUpClicked,!1)})),e.controlsDown.forEach((function(i){return i.addEventListener(t,e.onNavigateDownClicked,!1)})),e.controlsPrev.forEach((function(i){return i.addEventListener(t,e.onNavigatePrevClicked,!1)})),e.controlsNext.forEach((function(i){return i.addEventListener(t,e.onNavigateNextClicked,!1)}))}))}},{key:"unbind",value:function(){var e=this;["touchstart","click"].forEach((function(t){e.controlsLeft.forEach((function(i){return i.removeEventListener(t,e.onNavigateLeftClicked,!1)})),e.controlsRight.forEach((function(i){return i.removeEventListener(t,e.onNavigateRightClicked,!1)})),e.controlsUp.forEach((function(i){return i.removeEventListener(t,e.onNavigateUpClicked,!1)})),e.controlsDown.forEach((function(i){return i.removeEventListener(t,e.onNavigateDownClicked,!1)})),e.controlsPrev.forEach((function(i){return i.removeEventListener(t,e.onNavigatePrevClicked,!1)})),e.controlsNext.forEach((function(i){return i.removeEventListener(t,e.onNavigateNextClicked,!1)}))}))}},{key:"update",value:function(){var e=this.Reveal.availableRoutes();[].concat(o(this.controlsLeft),o(this.controlsRight),o(this.controlsUp),o(this.controlsDown),o(this.controlsPrev),o(this.controlsNext)).forEach((function(e){e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")})),e.left&&this.controlsLeft.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),e.right&&this.controlsRight.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),e.up&&this.controlsUp.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),e.down&&this.controlsDown.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),(e.left||e.up)&&this.controlsPrev.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),(e.right||e.down)&&this.controlsNext.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")}));var t=this.Reveal.getCurrentSlide();if(t){var i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),i.next&&this.controlsNext.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),this.Reveal.isVerticalSlide(t)?(i.prev&&this.controlsUp.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),i.next&&this.controlsDown.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))):(i.prev&&this.controlsLeft.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),i.next&&this.controlsRight.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})))}if(this.Reveal.getConfig().controlsTutorial){var n=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&e.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&e.left&&0===n.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&e.right&&0===n.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}},{key:"onNavigateLeftClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}},{key:"onNavigateRightClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.next():this.Reveal.right()}},{key:"onNavigateUpClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}},{key:"onNavigateDownClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}},{key:"onNavigatePrevClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}},{key:"onNavigateNextClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}}]),e}(),H=function(){function e(i){t(this,e),this.Reveal=i,this.onProgressClicked=this.onProgressClicked.bind(this)}return n(e,[{key:"render",value:function(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}},{key:"configure",value:function(e,t){this.element.style.display=e.progress?"block":"none"}},{key:"bind",value:function(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}},{key:"unbind",value:function(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}},{key:"update",value:function(){this.Reveal.getConfig().progress&&this.bar&&(this.bar.style.width=this.Reveal.getProgress()*this.getMaxWidth()+"px")}},{key:"getMaxWidth",value:function(){return this.Reveal.getRevealElement().offsetWidth}},{key:"onProgressClicked",value:function(e){this.Reveal.onUserInput(e),e.preventDefault();var t=this.Reveal.getHorizontalSlides().length,i=Math.floor(e.clientX/this.getMaxWidth()*t);this.Reveal.getConfig().rtl&&(i=t-i),this.Reveal.slide(i)}}]),e}(),O=function(){function e(i){t(this,e),this.Reveal=i,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}return n(e,[{key:"configure",value:function(e,t){e.mouseWheel?(document.addEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.addEventListener("mousewheel",this.onDocumentMouseScroll,!1)):(document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1)),e.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}},{key:"showCursor",value:function(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}},{key:"hideCursor",value:function(){!1===this.cursorHidden&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}},{key:"onDocumentCursorActive",value:function(e){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}},{key:"onDocumentMouseScroll",value:function(e){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();var t=e.detail||-e.wheelDelta;t>0?this.Reveal.next():t<0&&this.Reveal.prev()}}}]),e}(),U=function(e,t){var i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=e,"function"==typeof t&&(i.onload=i.onreadystatechange=function(e){("load"===e.type||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=i.onerror=null,t())},i.onerror=function(e){i.onload=i.onreadystatechange=i.onerror=null,t(new Error("Failed loading script: "+i.src+"\n"+e))});var n=document.querySelector("head");n.insertBefore(i,n.lastChild)},z=function(){function e(i){t(this,e),this.Reveal=i,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}return n(e,[{key:"load",value:function(e){var t=this;return this.state="loading",new Promise((function(i){var n=[],a=0;if(e.forEach((function(e){e.condition&&!e.condition()||(e.async?t.asyncDependencies.push(e):n.push(e))})),n.length){a=n.length;var r=function(e){"function"==typeof e.callback&&e.callback(),0==--a&&t.initPlugins().then(i)};n.forEach((function(e){"string"==typeof e.id?(t.registerPlugin(e),r(e)):U(e.src,(function(){return r(e)}))}))}else t.initPlugins().then(i)}))}},{key:"initPlugins",value:function(){var e=this;return new Promise((function(t){var i=Object.keys(e.registeredPlugins).length;if(0===i)e.loadAsync().then(t);else{var n=function(){0==--i&&e.loadAsync().then(t)};for(var a in e.registeredPlugins){var r=e.registeredPlugins[a];if("function"==typeof r.init){var s=r.init(e.Reveal);s&&"function"==typeof s.then?s.then(n):n()}else n()}}}))}},{key:"loadAsync",value:function(){var e=this;return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach((function(t){t.plugin?(e.registerPlugin(t.plugin),"function"==typeof t.plugin.init&&t.plugin.init(e.Reveal),"function"==typeof t.callback&&t.callback()):U(t.src,t.callback)})),Promise.resolve()}},{key:"registerPlugin",value:function(e){var t=e.id;"string"!=typeof t?console.warn("reveal.js: plugin.id is not a string"):void 0===this.registeredPlugins[t]?(this.registeredPlugins[t]=e,"loaded"===this.state&&"function"==typeof e.init&&e.init(this.Reveal)):console.warn('reveal.js: "'+t+'" plugin has already been registered')}},{key:"hasPlugin",value:function(e){return!!this.registeredPlugins[e]}},{key:"getPlugin",value:function(e){return this.registeredPlugins[e]}},{key:"getRegisteredPlugins",value:function(){return this.registeredPlugins}}]),e}(),q=function(){function e(i){t(this,e),this.Reveal=i}return n(e,[{key:"setupPDF",value:function(){var e=this.Reveal.getConfig(),t=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),i=Math.floor(t.width*(1+e.margin)),n=Math.floor(t.height*(1+e.margin)),a=t.width,r=t.height;p("@page{size:"+i+"px "+n+"px; margin: 0px;}"),p(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+a+"px; max-height:"+r+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=i+"px",document.body.style.height=n+"px",this.Reveal.layoutSlideContents(a,r);var s=e.slideNumber&&/all|print/i.test(e.showSlideNumber);u(this.Reveal.getRevealElement(),".slides section").forEach((function(e){e.setAttribute("data-slide-number",this.Reveal.slideNumber.getSlideNumber(e))}),this),u(this.Reveal.getRevealElement(),".slides section").forEach((function(t){if(!1===t.classList.contains("stack")){var o=(i-a)/2,l=(n-r)/2,d=t.scrollHeight,c=Math.max(Math.ceil(d/n),1);(1===(c=Math.min(c,e.pdfMaxPagesPerSlide))&&e.center||t.classList.contains("center"))&&(l=Math.max((n-d)/2,0));var h=document.createElement("div");if(h.className="pdf-page",h.style.height=(n+e.pdfPageHeightOffset)*c+"px",t.parentNode.insertBefore(h,t),h.appendChild(t),t.style.left=o+"px",t.style.top=l+"px",t.style.width=a+"px",t.slideBackgroundElement&&h.insertBefore(t.slideBackgroundElement,t),e.showNotes){var v=getSlideNotes(t);if(v){var g="string"==typeof e.showNotes?e.showNotes:"inline",f=document.createElement("div");f.classList.add("speaker-notes"),f.classList.add("speaker-notes-pdf"),f.setAttribute("data-layout",g),f.innerHTML=v,"separate-page"===g?h.parentNode.insertBefore(f,h.nextSibling):(f.style.left="8px",f.style.bottom="8px",f.style.width=i-16+"px",h.appendChild(f))}}if(s){var p=document.createElement("div");p.classList.add("slide-number"),p.classList.add("slide-number-pdf"),p.innerHTML=t.getAttribute("data-slide-number"),h.appendChild(p)}if(e.pdfSeparateFragments){var m,y,b=this.Reveal.fragments.sort(h.querySelectorAll(".fragment"),!0);b.forEach((function(e){m&&m.forEach((function(e){e.classList.remove("current-fragment")})),e.forEach((function(e){e.classList.add("visible","current-fragment")}),this);var t=h.cloneNode(!0);h.parentNode.insertBefore(t,(y||h).nextSibling),m=e,y=t}),this),b.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else u(h,".fragment:not(.fade-out)").forEach((function(e){e.classList.add("visible")}))}}),this),this.Reveal.dispatchEvent({type:"pdf-ready"})}},{key:"isPrintingPDF",value:function(){return/print-pdf/gi.test(window.location.search)}}]),e}(),j=function(){function e(i){t(this,e),this.Reveal=i,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}return n(e,[{key:"bind",value:function(){var e=this.Reveal.getRevealElement();"onpointerdown"in window?(e.addEventListener("pointerdown",this.onPointerDown,!1),e.addEventListener("pointermove",this.onPointerMove,!1),e.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",this.onPointerDown,!1),e.addEventListener("MSPointerMove",this.onPointerMove,!1),e.addEventListener("MSPointerUp",this.onPointerUp,!1)):(e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"unbind",value:function(){var e=this.Reveal.getRevealElement();e.removeEventListener("pointerdown",this.onPointerDown,!1),e.removeEventListener("pointermove",this.onPointerMove,!1),e.removeEventListener("pointerup",this.onPointerUp,!1),e.removeEventListener("MSPointerDown",this.onPointerDown,!1),e.removeEventListener("MSPointerMove",this.onPointerMove,!1),e.removeEventListener("MSPointerUp",this.onPointerUp,!1),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1)}},{key:"isSwipePrevented",value:function(e){for(;e&&"function"==typeof e.hasAttribute;){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNode}return!1}},{key:"onTouchStart",value:function(e){if(this.isSwipePrevented(e.target))return!0;this.touchStartX=e.touches[0].clientX,this.touchStartY=e.touches[0].clientY,this.touchStartCount=e.touches.length}},{key:"onTouchMove",value:function(e){if(this.isSwipePrevented(e.target))return!0;var t=this.Reveal.getConfig();if(this.touchCaptured)isAndroid&&e.preventDefault();else{this.Reveal.onUserInput(e);var i=e.touches[0].clientX,n=e.touches[0].clientY;if(1===e.touches.length&&2!==this.touchStartCount){var a=i-this.touchStartX,r=n-this.touchStartY;a>40&&Math.abs(a)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.next():this.Reveal.prev()():this.Reveal.left()):a<-40&&Math.abs(a)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.prev()():this.Reveal.next():this.Reveal.right()):r>40?(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.prev()():this.Reveal.up()):r<-40&&(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.next():this.Reveal.down()),t.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide(currentSlide))&&e.preventDefault():e.preventDefault()}}}},{key:"onTouchEnd",value:function(e){this.touchCaptured=!1}},{key:"onPointerDown",value:function(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}},{key:"onPointerMove",value:function(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}},{key:"onPointerUp",value:function(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}]),e}(),W=function(){function e(i){t(this,e),this.Reveal=i}return n(e,[{key:"render",value:function(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}},{key:"configure",value:function(e,t){e.showNotes&&this.element.setAttribute("data-layout","string"==typeof e.showNotes?e.showNotes:"inline")}},{key:"update",value:function(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'No notes on this slide.')}},{key:"updateVisibility",value:function(){this.Reveal.getConfig().showNotes&&this.hasNotes()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}},{key:"hasNotes",value:function(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}},{key:"isSpeakerNotesWindow",value:function(){return!!window.location.search.match(/receiver/gi)}},{key:"getSlideNotes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");var t=e.querySelector("aside.notes");return t?t.innerHTML:null}}]),e}(),K=function(){function e(i,n){t(this,e),this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=i,this.progressCheck=n,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}return n(e,[{key:"setPlaying",value:function(e){var t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()}},{key:"animate",value:function(){var e=this.progress;this.progress=this.progressCheck(),e>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}},{key:"render",value:function(){var e=this.playing?this.progress:0,t=this.diameter2-this.thickness,i=this.diameter2,n=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);var a=-Math.PI/2+e*(2*Math.PI),r=-Math.PI/2+this.progressOffset*(2*Math.PI);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,n,t+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,n,t,0,2*Math.PI,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,n,t,r,a,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,n-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}},{key:"on",value:function(e,t){this.canvas.addEventListener(e,t,!1)}},{key:"off",value:function(e,t){this.canvas.removeEventListener(e,t,!1)}},{key:"destroy",value:function(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}]),e}(),V={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,history:!1,keyboard:!0,keyboardCondition:null,overview:!0,disableLayout:!1,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!1,embedded:!1,help:!0,pause:!0,showNotes:!1,autoPlayMedia:null,preloadIframes:null,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,mouseWheel:!1,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,dependencies:[]};function F(t,i){1===arguments.length&&(i=arguments[0],t=document.querySelector(".reveal"));var n,a,r,o,d,g,p={},b="4.0.0-dev",k=!1,A={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},R=[],S=1,C=new L(p),U=new x(p),F=new N(p),X=new P(p),Y=new M(p),_=new I(p),$=new D(p),J=new T(p),Q=new B(p),Z=new H(p),G=new O(p),ee=new z(p),te=new q(p),ie=new j(p),ne=new W(p),ae={layout:"",overview:""},re={},se=0,oe=0,le=-1,de=!1;function ce(){return re.wrapper=t,re.slides=t.querySelector(".slides"),!0===(n=s({},V,{},i,{},m())).embedded?t.classList.add("reveal-viewport"):(document.body.classList.add("reveal-viewport"),document.documentElement.classList.add("reveal-full-page")),window.addEventListener("load",Ie,!1),ee.load(n.dependencies).then(ue),new Promise((function(e){return p.on("ready",e)}))}function ue(){k=!0,he(),me(),pe(),Je(),ye(),J.readURL(),X.update(!0),setTimeout((function(){re.slides.classList.remove("no-transition"),re.wrapper.classList.add("ready"),Ee({type:"ready",data:{indexh:a,indexv:r,currentSlide:d}})}),1),te.isPrintingPDF()&&(ke(),"complete"===document.readyState?te.setupPDF():window.addEventListener("load",te.setupPDF))}function he(){re.slides.classList.add("no-transition"),w?re.wrapper.classList.add("no-hover"):re.wrapper.classList.remove("no-hover"),X.render(),U.render(),Q.render(),Z.render(),ne.render(),re.pauseOverlay=f(re.wrapper,"div","pause-overlay",n.controls?'':null),re.statusElement=ve(),re.wrapper.setAttribute("role","application")}function ve(){var e=re.wrapper.querySelector(".aria-status");return e||((e=document.createElement("div")).style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.classList.add("aria-status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),re.wrapper.appendChild(e)),e}function ge(e){re.statusElement.textContent=e}function fe(e){var t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){var i=e.getAttribute("aria-hidden"),n="none"===window.getComputedStyle(e).display;"true"===i||n||Array.from(e.childNodes).forEach((function(e){t+=fe(e)}))}return""===(t=t.trim())?"":t+" "}function pe(){setInterval((function(){0===re.wrapper.scrollTop&&0===re.wrapper.scrollLeft||(re.wrapper.scrollTop=0,re.wrapper.scrollLeft=0)}),1e3)}function me(){n.postMessage&&window.addEventListener("message",(function(e){var t=e.data;if("string"==typeof t&&"{"===t.charAt(0)&&"}"===t.charAt(t.length-1)&&(t=JSON.parse(t)).method&&"function"==typeof p[t.method])if(!1===l.test(t.method)){var i=p[t.method].apply(p,t.args);Se("callback",{method:t.method,result:i})}else console.warn('reveal.js: "'+t.method+'" is is blacklisted from the postMessage API')}),!1)}function ye(t){var i=s({},n);if("object"===e(t)&&c(n,t),!1!==p.isReady()){var a=re.wrapper.querySelectorAll(".slides section").length;re.wrapper.classList.remove(i.transition),re.wrapper.classList.add(n.transition),re.wrapper.setAttribute("data-transition-speed",n.transitionSpeed),re.wrapper.setAttribute("data-background-transition",n.backgroundTransition),n.shuffle&&Qe(),n.rtl?re.wrapper.classList.add("rtl"):re.wrapper.classList.remove("rtl"),n.center?re.wrapper.classList.add("center"):re.wrapper.classList.remove("center"),!1===n.pause&&We(),n.previewLinks?(Le(),xe("[data-preview-link=false]")):(xe(),Le("[data-preview-link]:not([data-preview-link=false])")),F.reset(),g&&(g.destroy(),g=null),a>1&&n.autoSlide&&n.autoSlideStoppable&&((g=new K(re.wrapper,(function(){return Math.min(Math.max((Date.now()-le)/se,0),1)}))).on("click",Mt),de=!1),"default"!==n.navigationMode?re.wrapper.setAttribute("data-navigation-mode",n.navigationMode):re.wrapper.removeAttribute("data-navigation-mode"),ne.configure(n,i),G.configure(n,i),Q.configure(n,i),Z.configure(n,i),$.configure(n,i),Y.configure(n,i),U.configure(n,i),_e()}}function be(){window.addEventListener("hashchange",xt,!1),window.addEventListener("resize",Ct,!1),n.touch&&ie.bind(),n.keyboard&&$.bind(),Q.bind(),Z.bind(),re.pauseOverlay.addEventListener("click",We,!1),n.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",Pt,!1)}function ke(){ie.unbind(),$.unbind(),Q.unbind(),Z.unbind(),window.removeEventListener("hashchange",xt,!1),window.removeEventListener("resize",Ct,!1),re.pauseOverlay.removeEventListener("click",We,!1)}function we(e,i,n){t.addEventListener(e,i,n)}function Ae(e,i,n){t.removeEventListener(e,i,n)}function Re(e){"string"==typeof e.layout&&(ae.layout=e.layout),"string"==typeof e.overview&&(ae.overview=e.overview),ae.layout?v(re.slides,ae.layout+" "+ae.overview):v(re.slides,ae.overview)}function Ee(e){var t=e.target,i=void 0===t?re.wrapper:t,n=e.type,a=e.data,r=e.bubbles,s=void 0===r||r,o=document.createEvent("HTMLEvents",1,2);o.initEvent(n,s,!0),c(o,a),i.dispatchEvent(o),i===re.wrapper&&Se(n)}function Se(e,t){if(n.postMessageEvents&&window.parent!==window.self){var i={namespace:"reveal",eventName:e,state:gt()};c(i,t),window.parent.postMessage(JSON.stringify(i),"*")}}function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(re.wrapper.querySelectorAll(e)).forEach((function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Nt,!1)}))}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(re.wrapper.querySelectorAll(e)).forEach((function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Nt,!1)}))}function Ce(e){Me(),re.overlay=document.createElement("div"),re.overlay.classList.add("overlay"),re.overlay.classList.add("overlay-preview"),re.wrapper.appendChild(re.overlay),re.overlay.innerHTML='
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site\'s policy (x-frame-options).\n\t\t\t\t\n\t\t\t
'),re.overlay.querySelector("iframe").addEventListener("load",(function(e){re.overlay.classList.add("loaded")}),!1),re.overlay.querySelector(".close").addEventListener("click",(function(e){Me(),e.preventDefault()}),!1),re.overlay.querySelector(".external").addEventListener("click",(function(e){Me()}),!1)}function Pe(e){"boolean"==typeof e?e?Ne():Me():re.overlay?Me():Ne()}function Ne(){if(n.help){Me(),re.overlay=document.createElement("div"),re.overlay.classList.add("overlay"),re.overlay.classList.add("overlay-help"),re.wrapper.appendChild(re.overlay);var e='

Keyboard Shortcuts


';for(var t in e+="",$.shortcuts)e+="");for(var i in $.registeredKeyBindings)$.registeredKeyBindings[i].key&&$.registeredKeyBindings[i].description&&(e+=""));e+="
KEYACTION
".concat(t,"").concat($.shortcuts[t],"
".concat($.registeredKeyBindings[i].key,"").concat($.registeredKeyBindings[i].description,"
",re.overlay.innerHTML='\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
'.concat(e,"
\n\t\t\t\t
\n\t\t\t"),re.overlay.querySelector(".close").addEventListener("click",(function(e){Me(),e.preventDefault()}),!1)}}function Me(){return!!re.overlay&&(re.overlay.parentNode.removeChild(re.overlay),re.overlay=null,!0)}function Ie(){if(re.wrapper&&!te.isPrintingPDF()){if(!n.disableLayout){w&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");var e=Te(),t=S;De(n.width,n.height),re.slides.style.width=e.width+"px",re.slides.style.height=e.height+"px",S=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),S=Math.max(S,n.minScale),1===(S=Math.min(S,n.maxScale))?(re.slides.style.zoom="",re.slides.style.left="",re.slides.style.top="",re.slides.style.bottom="",re.slides.style.right="",Re({layout:""})):S>1&&E&&window.devicePixelRatio<2?(re.slides.style.zoom=S,re.slides.style.left="",re.slides.style.top="",re.slides.style.bottom="",re.slides.style.right="",Re({layout:""})):(re.slides.style.zoom="",re.slides.style.left="50%",re.slides.style.top="50%",re.slides.style.bottom="auto",re.slides.style.right="auto",Re({layout:"translate(-50%, -50%) scale("+S+")"}));for(var i=Array.from(re.wrapper.querySelectorAll(".slides section")),a=0,r=i.length;a .stretch").forEach((function(i){var n=y(i,t);if(/(img|video)/gi.test(i.nodeName)){var a=i.naturalWidth||i.videoWidth,r=i.naturalHeight||i.videoHeight,s=Math.min(e/a,n/r);i.style.width=a*s+"px",i.style.height=r*s+"px"}else i.style.width=e+"px",i.style.height=n+"px"}))}function Te(e,t){var i={width:n.width,height:n.height,presentationWidth:e||re.wrapper.offsetWidth,presentationHeight:t||re.wrapper.offsetHeight};return i.presentationWidth-=i.presentationWidth*n.margin,i.presentationHeight-=i.presentationHeight*n.margin,"string"==typeof i.width&&/%$/.test(i.width)&&(i.width=parseInt(i.width,10)/100*i.presentationWidth),"string"==typeof i.height&&/%$/.test(i.height)&&(i.height=parseInt(i.height,10)/100*i.presentationHeight),i}function Be(t,i){"object"===e(t)&&"function"==typeof t.setAttribute&&t.setAttribute("data-previous-indexv",i||0)}function He(t){if("object"===e(t)&&"function"==typeof t.setAttribute&&t.classList.contains("stack")){var i=t.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(t.getAttribute(i)||0,10)}return 0}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function Ue(){return!(!d||!Oe(d))&&!d.nextElementSibling}function ze(){return 0===a&&0===r}function qe(){return!!d&&(!d.nextElementSibling&&(!Oe(d)||!d.parentNode.nextElementSibling))}function je(){if(n.pause){var e=re.wrapper.classList.contains("paused");mt(),re.wrapper.classList.add("paused"),!1===e&&Ee({type:"paused"})}}function We(){var e=re.wrapper.classList.contains("paused");re.wrapper.classList.remove("paused"),pt(),e&&Ee({type:"resumed"})}function Ke(e){"boolean"==typeof e?e?je():We():Ve()?We():je()}function Ve(){return re.wrapper.classList.contains("paused")}function Fe(e){"boolean"==typeof e?e?bt():yt():de?bt():yt()}function Xe(){return!(!se||de)}function Ye(e,t,i,s){o=d;var l=re.wrapper.querySelectorAll(".slides>section");if(0!==l.length){void 0!==t||_.isActive()||(t=He(l[e])),o&&o.parentNode&&o.parentNode.classList.contains("stack")&&Be(o.parentNode,r);var c=R.concat();R.length=0;var u=a||0,h=r||0;a=Ze(".slides>section",void 0===e?a:e),r=Ze(".slides>section.present>section",void 0===t?r:t);var v=a!==u||r!==h;v||(o=null);var g=l[a],f=g.querySelectorAll("section");d=f[r]||g;var p=!1;v&&o&&d&&!_.isActive()&&o.hasAttribute("data-auto-animate")&&d.hasAttribute("data-auto-animate")&&(p=!0,re.slides.classList.add("disable-slide-transitions")),Ge(),Ie(),_.isActive()&&_.update(),void 0!==i&&Y.goto(i),o&&o!==d&&(o.classList.remove("present"),o.setAttribute("aria-hidden","true"),ze()&&setTimeout((function(){ot().forEach((function(e){Be(e,0)}))}),0));e:for(var m=0,y=R.length;m0&&void 0!==arguments[0]?arguments[0]:d;X.sync(e),Y.sync(e),C.load(e),X.update(),ne.update()}function Je(){rt().forEach((function(e){u(e,"section").forEach((function(e,t){t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))}))}))}function Qe(){rt().forEach((function(e,t,i){re.slides.insertBefore(e,i[Math.floor(Math.random()*i.length)])}))}function Ze(e,t){var i=u(re.wrapper,e),a=i.length,r=te.isPrintingPDF();if(a){n.loop&&(t%=a)<0&&(t=a+t),t=Math.max(Math.min(t,a-1),0);for(var s=0;st&&(o.classList.add(l?"past":"future"),n.fragments&&u(o,".fragment.visible").forEach((function(e){e.classList.remove("visible","current-fragment")})))}var d=i[t],c=d.classList.contains("present");d.classList.add("present"),d.removeAttribute("hidden"),d.removeAttribute("aria-hidden"),c||Ee({target:d,type:"visible",bubbles:!1});var h=d.getAttribute("data-state");h&&(R=R.concat(h.split(" ")))}else t=0;return t}function Ge(){var e,t=rt(),i=t.length;if(i&&void 0!==a){var s=_.isActive()?10:n.viewDistance;w&&(s=_.isActive()?6:n.mobileViewDistance),te.isPrintingPDF()&&(s=Number.MAX_VALUE);for(var o=0;osection"),t=re.wrapper.querySelectorAll(".slides>section.present>section"),i={left:a>0,right:a0,down:r1&&(i.left=!0,i.right=!0),t.length>1&&(i.up=!0,i.down=!0)),e.length>1&&"linear"===n.navigationMode&&(i.right=i.right||i.down,i.left=i.left||i.up),n.rtl){var s=i.left;i.left=i.right,i.right=s}return i}function tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=rt(),i=0;e:for(var n=0;n0){t+=d.querySelectorAll(".fragment.visible").length/i.length*.9}}return Math.min(t/(e-1),1)}function nt(e){var t,i=a,n=r;if(e){var s=Oe(e),o=s?e.parentNode:e,l=rt();i=Math.max(l.indexOf(o),0),n=void 0,s&&(n=Math.max(u(e.parentNode,"section").indexOf(e),0))}if(!e&&d&&d.querySelectorAll(".fragment").length>0){var c=d.querySelector(".current-fragment");t=c&&c.hasAttribute("data-fragment-index")?parseInt(c.getAttribute("data-fragment-index"),10):d.querySelectorAll(".fragment.visible").length-1}return{h:i,v:n,f:t}}function at(){return u(re.wrapper,'.slides section:not(.stack):not([data-visibility="uncounted"])')}function rt(){return u(re.wrapper,".slides>section")}function st(){return u(re.wrapper,".slides>section>section")}function ot(){return u(re.wrapper,".slides>section.stack")}function lt(){return rt().length>1}function dt(){return st().length>1}function ct(){return at().map((function(e){for(var t={},i=0;ise&&(se=1e3*e.duration/e.playbackRate+1e3)})),!se||de||Ve()||_.isActive()||qe()&&!Y.availableRoutes().next&&!0!==n.loop||(oe=setTimeout((function(){"function"==typeof n.autoSlideMethod?n.autoSlideMethod():St(),pt()}),se),le=Date.now()),g&&g.setPlaying(-1!==oe)}}function mt(){clearTimeout(oe),oe=-1}function yt(){se&&!de&&(de=!0,Ee({type:"autoslidepaused"}),clearTimeout(oe),g&&g.setPlaying(!1))}function bt(){se&&de&&(de=!1,Ee({type:"autoslideresumed"}),pt())}function kt(){A.hasNavigatedHorizontally=!0,n.rtl?(_.isActive()||!1===Y.next())&&et().left&&Ye(a+1,"grid"===n.navigationMode?r:void 0):(_.isActive()||!1===Y.prev())&&et().left&&Ye(a-1,"grid"===n.navigationMode?r:void 0)}function wt(){A.hasNavigatedHorizontally=!0,n.rtl?(_.isActive()||!1===Y.prev())&&et().right&&Ye(a-1,"grid"===n.navigationMode?r:void 0):(_.isActive()||!1===Y.next())&&et().right&&Ye(a+1,"grid"===n.navigationMode?r:void 0)}function At(){(_.isActive()||!1===Y.prev())&&et().up&&Ye(a,r-1)}function Rt(){A.hasNavigatedVertically=!0,(_.isActive()||!1===Y.next())&&et().down&&Ye(a,r+1)}function Et(){var e;if(!1===Y.prev())if(et().up)At();else if(e=n.rtl?u(re.wrapper,".slides>section.future").pop():u(re.wrapper,".slides>section.past").pop()){var t=e.querySelectorAll("section").length-1||void 0;Ye(a-1,t)}}function St(){if(A.hasNavigatedHorizontally=!0,A.hasNavigatedVertically=!0,!1===Y.next()){var e=et();e.down&&e.right&&n.loop&&Ue()&&(e.down=!1),e.down?Rt():n.rtl?kt():wt()}}function Lt(e){n.autoSlideStoppable&&yt()}function xt(e){J.readURL()}function Ct(e){Ie()}function Pt(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function Nt(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){var t=e.currentTarget.getAttribute("href");t&&(Ce(t),e.preventDefault())}}function Mt(e){qe()&&!1===n.loop?(Ye(0,0),bt()):de?bt():yt()}return c(p,{VERSION:b,initialize:ce,configure:ye,sync:_e,syncSlide:$e,syncFragments:Y.sync.bind(Y),slide:Ye,left:kt,right:wt,up:At,down:Rt,prev:Et,next:St,navigateLeft:kt,navigateRight:wt,navigateUp:At,navigateDown:Rt,navigatePrev:Et,navigateNext:St,navigateFragment:Y.goto.bind(Y),prevFragment:Y.prev.bind(Y),nextFragment:Y.next.bind(Y),on:we,off:Ae,addEventListener:we,removeEventListener:Ae,layout:Ie,shuffle:Qe,availableRoutes:et,availableFragments:Y.availableRoutes.bind(Y),toggleHelp:Pe,toggleOverview:_.toggle.bind(_),togglePause:Ke,toggleAutoSlide:Fe,isFirstSlide:ze,isLastSlide:qe,isLastVerticalSlide:Ue,isVerticalSlide:Oe,isPaused:Ve,isAutoSliding:Xe,isSpeakerNotes:ne.isSpeakerNotesWindow.bind(ne),isOverview:_.isActive.bind(_),isPrintingPDF:te.isPrintingPDF.bind(te),loadSlide:C.load.bind(C),unloadSlide:C.unload.bind(C),addEventListeners:be,removeEventListeners:ke,dispatchEvent:Ee,getState:gt,setState:ft,getSlidePastCount:tt,getProgress:it,getIndices:nt,getSlides:at,getSlidesAttributes:ct,getTotalSlides:ut,getSlide:ht,getSlideBackground:vt,getSlideNotes:ne.getSlideNotes.bind(ne),getHorizontalSlides:rt,getVerticalSlides:st,hasHorizontalSlides:lt,hasVerticalSlides:dt,hasNavigatedHorizontally:function(){return A.hasNavigatedHorizontally},hasNavigatedVertically:function(){return A.hasNavigatedVertically},addKeyBinding:$.addKeyBinding.bind($),removeKeyBinding:$.removeKeyBinding.bind($),triggerKey:$.triggerKey.bind($),registerKeyboardShortcut:$.registerKeyboardShortcut.bind($),registerPlugin:ee.registerPlugin.bind(ee),hasPlugin:ee.hasPlugin.bind(ee),getPlugin:ee.getPlugin.bind(ee),getPlugins:ee.getRegisteredPlugins.bind(ee),getComputedSlideSize:Te,getPreviousSlide:function(){return o},getCurrentSlide:function(){return d},getScale:function(){return S},getConfig:function(){return n},getQueryHash:m,getRevealElement:function(){return t},getSlidesElement:function(){return re.slides},getBackgroundsElement:function(){return X.element},isReady:function(){return k},announceStatus:ge,getStatusText:fe,print:te,progress:Z,controls:Q,location:J,overview:_,fragments:Y,slideContent:C,slideNumber:U,onUserInput:Lt,closeOverlay:Me,updateSlidesVisibility:Ge,layoutSlideContents:De,transformSlides:Re,cueAutoSlide:pt,cancelAutoSlide:mt})}window.Reveal=F;var X=[];window.Reveal.initialize=function(e){return window.Reveal=new F(document.querySelector(".reveal"),e),X.map((function(e){return e(window.Reveal)})),window.Reveal.initialize()},["on","off","addEventListener","removeEventListener"].forEach((function(e){window.Reveal[e]=function(){for(var t=arguments.length,i=new Array(t),n=0;n3&&void 0!==arguments[3]?arguments[3]:"",a=e.querySelectorAll("."+i),r=0;r0&&(t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))),document.head.appendChild(t),t},m=function(){var e={};for(var t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,(function(t){e[t.split("=").shift()]=t.split("=").pop()})),e){var i=e[t];e[t]=h(unescape(i))}return void 0!==e.dependencies&&delete e.dependencies,e},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e){var i,n=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",i=t-e.parentNode.offsetHeight,e.style.height=n+"px",e.parentNode.style.removeProperty("height"),i}return t},b=navigator.userAgent,k=document.createElement("div"),w=/(iphone|ipod|ipad|android)/gi.test(b)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,A=/chrome/i.test(b)&&!/edge/i.test(b),R=/android/gi.test(b),E="zoom"in k.style&&!w&&(A||/Version\/[\d\.]+.*Safari/.test(b)),S="function"==typeof window.history.replaceState&&!/PhantomJS/.test(b),L=function(){function e(i){t(this,e),this.Reveal=i,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}return n(e,[{key:"shouldPreload",value:function(e){var t=this.Reveal.getConfig().preloadIframes;return"boolean"!=typeof t&&(t=e.hasAttribute("data-preload")),t}},{key:"load",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.style.display=this.Reveal.getConfig().display,u(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((function(e){("IFRAME"!==e.tagName||t.shouldPreload(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))})),u(e,"video, audio").forEach((function(e){var t=0;u(e,"source[data-src]").forEach((function(e){e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1})),t>0&&e.load()}));var n=e.slideBackgroundElement;if(n){n.style.display="block";var a=e.slideBackgroundContentElement,r=e.getAttribute("data-background-iframe");if(!1===n.hasAttribute("data-loaded")){n.setAttribute("data-loaded","true");var s=e.getAttribute("data-background-image"),o=e.getAttribute("data-background-video"),l=e.hasAttribute("data-background-video-loop"),d=e.hasAttribute("data-background-video-muted");if(s)a.style.backgroundImage="url("+encodeURI(s)+")";else if(o&&!this.Reveal.isSpeakerNotes()){var c=document.createElement("video");l&&c.setAttribute("loop",""),d&&(c.muted=!0),w&&(c.muted=!0,c.autoplay=!0,c.setAttribute("playsinline","")),o.split(",").forEach((function(e){c.innerHTML+=''})),a.appendChild(c)}else if(r&&!0!==i.excludeIframes){var h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",r),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",a.appendChild(h)}}var v=a.querySelector("iframe[data-src]");v&&this.shouldPreload(n)&&!/autoplay=(1|true|yes)/gi.test(r)&&v.getAttribute("src")!==r&&v.setAttribute("src",r)}}},{key:"unload",value:function(e){e.style.display="none";var t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",u(t,"iframe[src]").forEach((function(e){e.removeAttribute("src")}))),u(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((function(e){e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})),u(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach((function(e){e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}))}},{key:"formatEmbeddedContent",value:function(){var e=this,t=function(t,i,n){u(e.Reveal.getSlidesElement(),"iframe["+t+'*="'+i+'"]').forEach((function(e){var i=e.getAttribute(t);i&&-1===i.indexOf(n)&&e.setAttribute(t,i+(/\?/.test(i)?"&":"?")+n)}))};t("src","youtube.com/embed/","enablejsapi=1"),t("data-src","youtube.com/embed/","enablejsapi=1"),t("src","player.vimeo.com/","api=1"),t("data-src","player.vimeo.com/","api=1")}},{key:"startEmbeddedContent",value:function(e){var t=this;e&&!this.Reveal.isSpeakerNotes()&&(u(e,'img[src$=".gif"]').forEach((function(e){e.setAttribute("src",e.getAttribute("src"))})),u(e,"video, audio").forEach((function(e){if(!g(e,".fragment")||g(e,".fragment.visible")){var i=t.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof i&&(i=e.hasAttribute("data-autoplay")||!!g(e,".slide-background")),i&&"function"==typeof e.play)if(e.readyState>1)t.startEmbeddedMedia({target:e});else if(w){var n=e.play();n&&"function"==typeof n.catch&&!1===e.controls&&n.catch((function(){e.controls=!0,e.addEventListener("play",(function(){e.controls=!1}))}))}else e.removeEventListener("loadeddata",t.startEmbeddedMedia),e.addEventListener("loadeddata",t.startEmbeddedMedia)}})),u(e,"iframe[src]").forEach((function(e){g(e,".fragment")&&!g(e,".fragment.visible")||t.startEmbeddedIframe({target:e})})),u(e,"iframe[data-src]").forEach((function(e){g(e,".fragment")&&!g(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",t.startEmbeddedIframe),e.addEventListener("load",t.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))})))}},{key:"startEmbeddedMedia",value:function(e){var t=!!g(e.target,"html"),i=!!g(e.target,".present");t&&i&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}},{key:"startEmbeddedIframe",value:function(e){var t=e.target;if(t&&t.contentWindow){var i=!!g(e.target,"html"),n=!!g(e.target,".present");if(i&&n){var a=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof a&&(a=t.hasAttribute("data-autoplay")||!!g(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&a?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&a?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}},{key:"stopEmbeddedContent",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i=c({unloadIframes:!0},i),e&&e.parentNode&&(u(e,"video, audio").forEach((function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())})),u(e,"iframe").forEach((function(e){e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",t.startEmbeddedIframe)})),u(e,'iframe[src*="youtube.com/embed/"]').forEach((function(e){!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})),u(e,'iframe[src*="player.vimeo.com/"]').forEach((function(e){!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")})),!0===i.unloadIframes&&u(e,"iframe[data-src]").forEach((function(e){e.setAttribute("src","about:blank"),e.removeAttribute("src")})))}}]),e}(),x=function(){function e(i){t(this,e),this.Reveal=i}return n(e,[{key:"render",value:function(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}},{key:"configure",value:function(e,t){var i="none";e.slideNumber&&!this.Reveal.isPrintingPDF()&&("all"===e.showSlideNumber||"speaker"===e.showSlideNumber&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}},{key:"update",value:function(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}},{key:"getSlideNumber",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide(),i=this.Reveal.getConfig(),n="h.v";if("function"==typeof i.slideNumber)e=i.slideNumber(t);else switch("string"==typeof i.slideNumber&&(n=i.slideNumber),/c/.test(n)||1!==this.Reveal.getHorizontalSlides().length||(n="c"),e=[],n){case"c":e.push(this.Reveal.getSlidePastCount(t)+1);break;case"c/t":e.push(this.Reveal.getSlidePastCount(t)+1,"/",this.Reveal.getTotalSlides());break;default:var a=this.Reveal.getIndices(t);e.push(a.h+1);var r="h/v"===n?"/":".";this.Reveal.isVerticalSlide(t)&&e.push(r,a.v+1)}var s="#"+this.Reveal.location.getHash(t);return this.formatNumber(e[0],e[1],e[2],s)}},{key:"formatNumber",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#"+this.Reveal.location.getHash();return"number"!=typeof i||isNaN(i)?'\n\t\t\t\t\t').concat(e,"\n\t\t\t\t\t"):'\n\t\t\t\t\t').concat(e,'\n\t\t\t\t\t').concat(t,'\n\t\t\t\t\t').concat(i,"\n\t\t\t\t\t")}}]),e}(),C=function(e){var t=e.match(/^#([0-9a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseInt(t.charAt(1),16),b:17*parseInt(t.charAt(2),16)};var i=e.match(/^#([0-9a-f]{6})$/i);if(i&&i[1])return i=i[1],{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16)};var n=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(n)return{r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10)};var a=e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return a?{r:parseInt(a[1],10),g:parseInt(a[2],10),b:parseInt(a[3],10),a:parseFloat(a[4])}:null},P=function(){function e(i){t(this,e),this.Reveal=i}return n(e,[{key:"render",value:function(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}},{key:"create",value:function(){var e=this;this.Reveal.isPrintingPDF();this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach((function(t){var i=e.createBackground(t,e.element);u(t,"section").forEach((function(t){e.createBackground(t,i),i.classList.add("stack")}))})),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backgroundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.element.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.element.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,this.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPosition,setTimeout((function(){e.Reveal.getRevealElement().classList.add("has-parallax-background")}),1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}},{key:"createBackground",value:function(e,t){var i=document.createElement("div");i.className="slide-background "+e.className.replace(/present|past|future/,"");var n=document.createElement("div");return n.className="slide-background-content",i.appendChild(n),t.appendChild(i),e.slideBackgroundElement=i,e.slideBackgroundContentElement=n,this.sync(e),i}},{key:"sync",value:function(e){var t=e.slideBackgroundElement,i=e.slideBackgroundContentElement;e.classList.remove("has-dark-background"),e.classList.remove("has-light-background"),t.removeAttribute("data-loaded"),t.removeAttribute("data-background-hash"),t.removeAttribute("data-background-size"),t.removeAttribute("data-background-transition"),t.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="";var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundVideo:e.getAttribute("data-background-video"),backgroundIframe:e.getAttribute("data-background-iframe"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition"),backgroundOpacity:e.getAttribute("data-background-opacity")};n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test(n.background)?e.setAttribute("data-background-image",n.background):t.style.background=n.background),(n.background||n.backgroundColor||n.backgroundImage||n.backgroundVideo||n.backgroundIframe)&&t.setAttribute("data-background-hash",n.background+n.backgroundSize+n.backgroundImage+n.backgroundVideo+n.backgroundIframe+n.backgroundColor+n.backgroundRepeat+n.backgroundPosition+n.backgroundTransition+n.backgroundOpacity),n.backgroundSize&&t.setAttribute("data-background-size",n.backgroundSize),n.backgroundColor&&(t.style.backgroundColor=n.backgroundColor),n.backgroundTransition&&t.setAttribute("data-background-transition",n.backgroundTransition),e.hasAttribute("data-preload")&&t.setAttribute("data-preload",""),n.backgroundSize&&(i.style.backgroundSize=n.backgroundSize),n.backgroundRepeat&&(i.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(i.style.backgroundPosition=n.backgroundPosition),n.backgroundOpacity&&(i.style.opacity=n.backgroundOpacity);var a,r=n.backgroundColor;if(!r){var s=window.getComputedStyle(t);s&&s.backgroundColor&&(r=s.backgroundColor)}if(r){var o=C(r);o&&0!==o.a&&("string"==typeof(a=r)&&(a=C(a)),(a?(299*a.r+587*a.g+114*a.b)/1e3:null)<128?e.classList.add("has-dark-background"):e.classList.add("has-light-background"))}}},{key:"update",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.Reveal.getCurrentSlide(),n=this.Reveal.getIndices(),a=null,r=this.Reveal.getConfig().rtl?"future":"past",s=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((function(e,i){e.classList.remove("past","present","future"),in.h?e.classList.add(s):(e.classList.add("present"),a=e),(t||i===n.h)&&u(e,".slide-background").forEach((function(e,t){e.classList.remove("past","present","future"),tn.v?e.classList.add("future"):(e.classList.add("present"),i===n.h&&(a=e))}))})),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a){this.Reveal.slideContent.startEmbeddedContent(a);var o=a.querySelector(".slide-background-content");if(o){var l=o.style.backgroundImage||"";/\.gif/i.test(l)&&(o.style.backgroundImage="",window.getComputedStyle(o).opacity,o.style.backgroundImage=l)}var d=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,c=a.getAttribute("data-background-hash");c&&c===d&&a!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=a}i&&["has-light-background","has-dark-background"].forEach((function(t){i.classList.contains(t)?e.Reveal.getRevealElement().classList.add(t):e.Reveal.getRevealElement().classList.remove(t)}),this),setTimeout((function(){e.element.classList.remove("no-transition")}),1)}},{key:"updateParallax",value:function(){var e=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){var t,i,n=this.Reveal.getHorizontalSlides(),a=this.Reveal.getVerticalSlides(),r=this.element.style.backgroundSize.split(" ");1===r.length?t=i=parseInt(r[0],10):(t=parseInt(r[0],10),i=parseInt(r[1],10));var s,o=this.element.offsetWidth,l=n.length;s=("number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:l>1?(t-o)/(l-1):0)*e.h*-1;var d,c,u=this.element.offsetHeight,h=a.length;d="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-u)/(h-1),c=h>0?d*e.v:0,this.element.style.backgroundPosition=s+"px "+-c+"px"}}}]),e}(),N=function(){function e(i){t(this,e),this.Reveal=i,this.autoAnimateCounter=0}return n(e,[{key:"run",value:function(e,t){var i=this;if(this.reset(),e.hasAttribute("data-auto-animate")&&t.hasAttribute("data-auto-animate")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||p();var n=this.getAutoAnimateOptions(t);e.dataset.autoAnimate="pending",t.dataset.autoAnimate="pending";var a=this.Reveal.getSlides();n.slideDirection=a.indexOf(t)>a.indexOf(e)?"forward":"backward";var r=this.getAutoAnimatableElements(e,t).map((function(e){return i.autoAnimateElements(e.from,e.to,e.options||{},n,i.autoAnimateCounter++)}));if("false"!==t.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){var s=.8*n.duration,o=.2*n.duration;this.getUnmatchedAutoAnimateElements(t).forEach((function(e){var t=i.getAutoAnimateOptions(e,n),a="unmatched";t.duration===n.duration&&t.delay===n.delay||(a="unmatched-"+i.autoAnimateCounter++,r.push('[data-auto-animate="running"] [data-auto-animate-target="'.concat(a,'"] { transition: opacity ').concat(t.duration,"s ease ").concat(t.delay,"s; }"))),e.dataset.autoAnimateTarget=a}),this),r.push('[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity '.concat(s,"s ease ").concat(o,"s; }"))}this.autoAnimateStyleSheet.innerHTML=r.join(""),requestAnimationFrame((function(){i.autoAnimateStyleSheet&&(getComputedStyle(i.autoAnimateStyleSheet).fontWeight,t.dataset.autoAnimate="running")})),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:e,toSlide:t,sheet:this.autoAnimateStyleSheet}})}}},{key:"reset",value:function(){u(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach((function(e){e.dataset.autoAnimate=""})),u(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach((function(e){delete e.dataset.autoAnimateTarget})),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}},{key:"autoAnimateElements",value:function(e,t,i,n,a){e.dataset.autoAnimateTarget="",t.dataset.autoAnimateTarget=a;var r=this.getAutoAnimateOptions(t,n);void 0!==i.delay&&(r.delay=i.delay),void 0!==i.duration&&(r.duration=i.duration),void 0!==i.easing&&(r.easing=i.easing);var s=this.getAutoAnimatableProperties("from",e,i),o=this.getAutoAnimatableProperties("to",t,i);t.classList.contains("fragment")&&(delete o.styles.opacity,e.classList.contains("fragment")&&(e.className.match(d)||[""])[0]===(t.className.match(d)||[""])[0]&&"forward"===n.slideDirection&&t.classList.add("visible","disabled"));if(!1!==i.translate||!1!==i.scale){var l=this.Reveal.getScale(),c={x:(s.x-o.x)/l,y:(s.y-o.y)/l,scaleX:s.width/o.width,scaleY:s.height/o.height};c.x=Math.round(1e3*c.x)/1e3,c.y=Math.round(1e3*c.y)/1e3,c.scaleX=Math.round(1e3*c.scaleX)/1e3,c.scaleX=Math.round(1e3*c.scaleX)/1e3;var u=!1!==i.translate&&(0!==c.x||0!==c.y),h=!1!==i.scale&&(0!==c.scaleX||0!==c.scaleY);if(u||h){var v=[];u&&v.push("translate(".concat(c.x,"px, ").concat(c.y,"px)")),h&&v.push("scale(".concat(c.scaleX,", ").concat(c.scaleY,")")),s.styles.transform=v.join(" "),s.styles["transform-origin"]="top left",o.styles.transform="none"}}for(var g in o.styles){var f=o.styles[g],p=s.styles[g];f===p?delete o.styles[g]:(!0===f.explicitValue&&(o.styles[g]=f.value),!0===p.explicitValue&&(s.styles[g]=p.value))}var m="",y=Object.keys(o.styles);y.length>0&&(s.styles.transition="none",o.styles.transition="all ".concat(r.duration,"s ").concat(r.easing," ").concat(r.delay,"s"),o.styles["transition-property"]=y.join(", "),o.styles["will-change"]=y.join(", "),m='[data-auto-animate-target="'+a+'"] {'+Object.keys(s.styles).map((function(e){return e+": "+s.styles[e]+" !important;"})).join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+a+'"] {'+Object.keys(o.styles).map((function(e){return e+": "+o.styles[e]+" !important;"})).join("")+"}");return m}},{key:"getAutoAnimateOptions",value:function(e,t){var i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=c(i,t),e.closest&&e.parentNode){var n=e.parentNode.closest("[data-auto-animate-target]");n&&(i=this.getAutoAnimateOptions(n,i))}return e.dataset.autoAnimateEasing&&(i.easing=e.dataset.autoAnimateEasing),e.dataset.autoAnimateDuration&&(i.duration=parseFloat(e.dataset.autoAnimateDuration)),e.dataset.autoAnimateDelay&&(i.delay=parseFloat(e.dataset.autoAnimateDelay)),i}},{key:"getAutoAnimatableProperties",value:function(e,t,i){var n,a={styles:[]};!1===i.translate&&!1===i.scale||(n="function"==typeof i.measure?i.measure(t):t.getBoundingClientRect(),a.x=n.x,a.y=n.y,a.width=n.width,a.height=n.height);var r=getComputedStyle(t);return(i.styles||this.Reveal.getConfig().autoAnimateStyles).forEach((function(t){var i;"string"==typeof t&&(t={property:t}),""!==(i=void 0!==t.from&&"from"===e?{value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?{value:t.to,explicitValue:!0}:r[t.property])&&(a.styles[t.property]=i)})),a}},{key:"getAutoAnimatableElements",value:function(e,t){var i=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,e,t),n=[];return i.filter((function(e,t){if(-1===n.indexOf(e.to))return n.push(e.to),!0}))}},{key:"getAutoAnimatePairs",value:function(e,t){var i=this,n=[],a="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(n,e,t,"[data-id]",(function(e){return e.nodeName+":::"+e.getAttribute("data-id")})),this.findAutoAnimateMatches(n,e,t,a,(function(e){return e.nodeName+":::"+e.innerText})),this.findAutoAnimateMatches(n,e,t,"img, video, iframe",(function(e){return e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src"))})),this.findAutoAnimateMatches(n,e,t,"pre",(function(e){return e.nodeName+":::"+e.innerText})),n.forEach((function(e){e.from.matches(a)?e.options={scale:!1}:e.from.matches("pre")&&(e.options={scale:!1,styles:["width","height"]},i.findAutoAnimateMatches(n,e.from,e.to,".hljs .hljs-ln-code",(function(e){return e.textContent}),{scale:!1,styles:[],measure:i.getLocalBoundingBox.bind(i)}),i.findAutoAnimateMatches(n,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",(function(e){return e.getAttribute("data-line-number")}),{scale:!1,styles:["width"],measure:i.getLocalBoundingBox.bind(i)}))}),this),n}},{key:"getLocalBoundingBox",value:function(e){var t=this.Reveal.getScale();return{x:Math.round(e.offsetLeft*t*100)/100,y:Math.round(e.offsetTop*t*100)/100,width:Math.round(e.offsetWidth*t*100)/100,height:Math.round(e.offsetHeight*t*100)/100}}},{key:"findAutoAnimateMatches",value:function(e,t,i,n,a,r){var s={},o={};[].slice.call(t.querySelectorAll(n)).forEach((function(e,t){var i=a(e);"string"==typeof i&&i.length&&(s[i]=s[i]||[],s[i].push(e))})),[].slice.call(i.querySelectorAll(n)).forEach((function(t,i){var n,l=a(t);if(o[l]=o[l]||[],o[l].push(t),s[l]){var d=o[l].length-1,c=s[l].length-1;s[l][d]?(n=s[l][d],s[l][d]=null):s[l][c]&&(n=s[l][c],s[l][c]=null)}n&&e.push({from:n,to:t,options:r})}))}},{key:"getUnmatchedAutoAnimateElements",value:function(e){var t=this;return[].slice.call(e.children).reduce((function(e,i){var n=i.querySelector("[data-auto-animate-target]");return i.hasAttribute("data-auto-animate-target")||n||e.push(i),i.querySelector("[data-auto-animate-target]")&&(e=e.concat(t.getUnmatchedAutoAnimateElements(i))),e}),[])}}]),e}(),M=function(){function e(i){t(this,e),this.Reveal=i}return n(e,[{key:"configure",value:function(e,t){!1===e.fragments?this.disable():!1===t.fragments&&this.enable()}},{key:"disable",value:function(){u(this.Reveal.getSlidesElement(),".fragment").forEach((function(e){e.classList.add("visible"),e.classList.remove("current-fragment")}))}},{key:"enable",value:function(){u(this.Reveal.getSlidesElement(),".fragment").forEach((function(e){e.classList.remove("visible"),e.classList.remove("current-fragment")}))}},{key:"availableRoutes",value:function(){var e=this.Reveal.getCurrentSlide();if(e&&this.Reveal.getConfig().fragments){var t=e.querySelectorAll(".fragment:not(.disabled)"),i=e.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:t.length-i.length>0,next:!!i.length}}return{prev:!1,next:!1}}},{key:"sort",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e);var i=[],n=[],a=[];e.forEach((function(e){if(e.hasAttribute("data-fragment-index")){var t=parseInt(e.getAttribute("data-fragment-index"),10);i[t]||(i[t]=[]),i[t].push(e)}else n.push([e])})),i=i.concat(n);var r=0;return i.forEach((function(e){e.forEach((function(e){a.push(e),e.setAttribute("data-fragment-index",r)})),r++})),!0===t?i:a}},{key:"sortAll",value:function(){var e=this;this.Reveal.getHorizontalSlides().forEach((function(t){var i=u(t,"section");i.forEach((function(t,i){e.sort(t.querySelectorAll(".fragment"))}),e),0===i.length&&e.sort(t.querySelectorAll(".fragment"))}))}},{key:"update",value:function(e,t){var i=this,n={shown:[],hidden:[]},a=this.Reveal.getCurrentSlide();if(a&&this.Reveal.getConfig().fragments&&(t=t||this.sort(a.querySelectorAll(".fragment"))).length){var r=0;if("number"!=typeof e){var s=this.sort(a.querySelectorAll(".fragment.visible")).pop();s&&(e=parseInt(s.getAttribute("data-fragment-index")||0,10))}Array.from(t).forEach((function(t,a){if(t.hasAttribute("data-fragment-index")&&(a=parseInt(t.getAttribute("data-fragment-index"),10)),r=Math.max(r,a),a<=e){var s=t.classList.contains("visible");t.classList.add("visible"),t.classList.remove("current-fragment"),a===e&&(i.Reveal.announceStatus(i.Reveal.getStatusText(t)),t.classList.add("current-fragment"),i.Reveal.slideContent.startEmbeddedContent(t)),s||(n.shown.push(t),i.Reveal.dispatchEvent({target:t,type:"visible",bubbles:!1}))}else{var o=t.classList.contains("visible");t.classList.remove("visible"),t.classList.remove("current-fragment"),o&&(n.hidden.push(t),i.Reveal.dispatchEvent({target:t,type:"hidden",bubbles:!1}))}})),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,r),-1),a.setAttribute("data-fragment",e)}return n}},{key:"sync",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();return this.sort(e.querySelectorAll(".fragment"))}},{key:"goto",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){var n=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(n.length){if("number"!=typeof e){var a=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=a?parseInt(a.getAttribute("data-fragment-index")||0,10):-1}e+=t;var r=this.update(e,n);return r.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:r.hidden[0],fragments:r.hidden}}),r.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:r.shown[0],fragments:r.shown}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!r.shown.length&&!r.hidden.length)}}return!1}},{key:"next",value:function(){return this.goto(null,1)}},{key:"prev",value:function(){return this.goto(null,-1)}}]),e}(),I=function(){function e(i){t(this,e),this.Reveal=i,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}return n(e,[{key:"activate",value:function(){var e=this;if(this.Reveal.getConfig().overview&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),u(this.Reveal.getRevealElement(),".slides section").forEach((function(t){t.classList.contains("stack")||t.addEventListener("click",e.onSlideClicked,!0)}));var t=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=t.width+70,this.overviewSlideHeight=t.height+70,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();var i=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:i.h,indexv:i.v,currentSlide:this.Reveal.getCurrentSlide()}})}}},{key:"layout",value:function(){var e=this;this.Reveal.getHorizontalSlides().forEach((function(t,i){t.setAttribute("data-index-h",i),v(t,"translate3d("+i*e.overviewSlideWidth+"px, 0, 0)"),t.classList.contains("stack")&&u(t,"section").forEach((function(t,n){t.setAttribute("data-index-h",i),t.setAttribute("data-index-v",n),v(t,"translate3d(0, "+n*e.overviewSlideHeight+"px, 0)")}))})),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((function(t,i){v(t,"translate3d("+i*e.overviewSlideWidth+"px, 0, 0)"),u(t,".slide-background").forEach((function(t,i){v(t,"translate3d(0, "+i*e.overviewSlideHeight+"px, 0)")}))}))}},{key:"update",value:function(){var e=Math.min(window.innerWidth,window.innerHeight),t=Math.max(e/5,150)/e,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+t+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}},{key:"deactivate",value:function(){var e=this;if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout((function(){e.Reveal.getRevealElement().classList.remove("overview-deactivating")}),1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),u(this.Reveal.getRevealElement(),".slides section").forEach((function(t){v(t,""),t.removeEventListener("click",e.onSlideClicked,!0)})),u(this.Reveal.getBackgroundsElement(),".slide-background").forEach((function(e){v(e,"")})),this.Reveal.transformSlides({overview:""});var t=this.Reveal.getIndices();this.Reveal.slide(t.h,t.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:t.h,indexv:t.v,currentSlide:this.Reveal.getCurrentSlide()}})}}},{key:"toggle",value:function(e){"boolean"==typeof e?e?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}},{key:"isActive",value:function(){return this.active}},{key:"onSlideClicked",value:function(e){if(this.isActive()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(this.deactivate(),t.nodeName.match(/section/gi))){var i=parseInt(t.getAttribute("data-index-h"),10),n=parseInt(t.getAttribute("data-index-v"),10);this.Reveal.slide(i,n)}}}}]),e}(),D=function(){function i(e){t(this,i),this.Reveal=e,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}return n(i,[{key:"configure",value:function(e,t){"linear"===e.navigationMode?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts.P="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Home , Shift ←"]="First slide",this.shortcuts["End , Shift →"]="Last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts["ESC, O"]="Slide overview"}},{key:"bind",value:function(){document.addEventListener("keydown",this.onDocumentKeyDown,!1),document.addEventListener("keypress",this.onDocumentKeyPress,!1)}},{key:"unbind",value:function(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1),document.removeEventListener("keypress",this.onDocumentKeyPress,!1)}},{key:"addKeyBinding",value:function(t,i){"object"===e(t)&&t.keyCode?this.bindings[t.keyCode]={callback:i,key:t.key,description:t.description}:this.bindings[t]={callback:i,key:null,description:null}}},{key:"removeKeyBinding",value:function(e){delete this.bindings[e]}},{key:"triggerKey",value:function(e){this.onDocumentKeyDown({keyCode:e})}},{key:"registerKeyboardShortcut",value:function(e,t){this.shortcuts[e]=t}},{key:"onDocumentKeyPress",value:function(e){e.shiftKey&&63===e.charCode&&this.Reveal.toggleHelp()}},{key:"onDocumentKeyDown",value:function(t){var i=this.Reveal.getConfig();if("function"==typeof i.keyboardCondition&&!1===i.keyboardCondition(t))return!0;var n=t.keyCode,a=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(t);var r=document.activeElement&&"inherit"!==document.activeElement.contentEditable,s=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),o=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),l=t.shiftKey&&32===t.keyCode,d=t.shiftKey&&37===n,c=t.shiftKey&&39===n,u=!l&&!d&&!c&&(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey);if(!(r||s||o||u)){var h,v=[66,86,190,191];if("object"===e(i.keyboard))for(h in i.keyboard)"togglePause"===i.keyboard[h]&&v.push(parseInt(h,10));if(this.Reveal.isPaused()&&-1===v.indexOf(n))return!1;var g,f,p="linear"===i.navigationMode||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),m=!1;if("object"===e(i.keyboard))for(h in i.keyboard)if(parseInt(h,10)===n){var y=i.keyboard[h];"function"==typeof y?y.apply(null,[t]):"string"==typeof y&&"function"==typeof this.Reveal[y]&&this.Reveal[y].call(),m=!0}if(!1===m)for(h in this.bindings)if(parseInt(h,10)===n){var b=this.bindings[h].callback;"function"==typeof b?b.apply(null,[t]):"string"==typeof b&&"function"==typeof this.Reveal[b]&&this.Reveal[b].call(),m=!0}!1===m&&(m=!0,80===n||33===n?this.Reveal.prev():78===n||34===n?this.Reveal.next():72===n||37===n?d?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&p?this.Reveal.prev():this.Reveal.left():76===n||39===n?c?this.Reveal.slide(Number.MAX_VALUE):!this.Reveal.overview.isActive()&&p?this.Reveal.next():this.Reveal.right():75===n||38===n?!this.Reveal.overview.isActive()&&p?this.Reveal.prev():this.Reveal.up():74===n||40===n?!this.Reveal.overview.isActive()&&p?this.Reveal.next():this.Reveal.down():36===n?this.Reveal.slide(0):35===n?this.Reveal.slide(Number.MAX_VALUE):32===n?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),t.shiftKey?this.Reveal.prev():this.Reveal.next()):58===n||59===n||66===n||86===n||190===n||191===n?this.Reveal.togglePause():70===n?(g=document.documentElement,(f=g.requestFullscreen||g.webkitRequestFullscreen||g.webkitRequestFullScreen||g.mozRequestFullScreen||g.msRequestFullscreen)&&f.apply(g)):65===n?i.autoSlideStoppable&&this.Reveal.toggleAutoSlide(a):m=!1),m?t.preventDefault&&t.preventDefault():27!==n&&79!==n||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.toggle(),t.preventDefault&&t.preventDefault()),this.Reveal.cueAutoSlide()}}}]),i}(),T=function(){function e(i){t(this,e),this.Reveal=i,this.writeURLTimeout=0}return n(e,[{key:"readURL",value:function(){var e=this.Reveal.getConfig(),t=this.Reveal.getIndices(),i=this.Reveal.getCurrentSlide(),n=window.location.hash,a=n.slice(2).split("/"),r=n.replace(/#|\//gi,"");if(!/^[0-9]*$/.test(a[0])&&r.length){var s;try{s=document.getElementById(decodeURIComponent(r))}catch(e){}var o=!!i&&i.getAttribute("id")===r;if(s){if(!o){var l=this.Reveal.getIndices(s);this.Reveal.slide(l.h,l.v)}}else this.Reveal.slide(t.h||0,t.v||0)}else{var d,c=e.hashOneBasedIndex?1:0,u=parseInt(a[0],10)-c||0,h=parseInt(a[1],10)-c||0;e.fragmentInURL&&(d=parseInt(a[2],10),isNaN(d)&&(d=void 0)),u===t.h&&h===t.v&&void 0===d||this.Reveal.slide(u,h,d)}}},{key:"writeURL",value:function(e){var t=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();clearTimeout(this.writeURLTimeout),"number"==typeof e?this.writeURLTimeout=setTimeout(this.writeURL,e):i&&(t.history||!1===S?window.location.hash=this.getHash():t.hash?window.history.replaceState(null,null,"#"+this.getHash()):window.history.replaceState(null,null,window.location.pathname+window.location.search))}},{key:"getHash",value:function(e){var t="/",i=e||this.Reveal.getCurrentSlide(),n=i?i.getAttribute("id"):null;n&&(n=encodeURIComponent(n));var a=this.Reveal.getIndices(e);if(this.Reveal.getConfig().fragmentInURL||(a.f=void 0),"string"==typeof n&&n.length&&void 0===a.f)t="/"+n;else{var r=this.Reveal.getConfig().hashOneBasedIndex?1:0;(a.h>0||a.v>0||void 0!==a.f)&&(t+=a.h+r),(a.v>0||void 0!==a.f)&&(t+="/"+(a.v+r)),void 0!==a.f&&(t+="/"+a.f)}return t}}]),e}(),B=function(){function e(i){t(this,e),this.Reveal=i,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this)}return n(e,[{key:"render",value:function(){var e=this.Reveal.getConfig().rtl,t=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML='\n\t\t\t\n\t\t\t\n\t\t\t'),this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=u(t,".navigate-left"),this.controlsRight=u(t,".navigate-right"),this.controlsUp=u(t,".navigate-up"),this.controlsDown=u(t,".navigate-down"),this.controlsPrev=u(t,".navigate-prev"),this.controlsNext=u(t,".navigate-next"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}},{key:"configure",value:function(e,t){this.element.style.display=e.controls?"block":"none",this.element.setAttribute("data-controls-layout",e.controlsLayout),this.element.setAttribute("data-controls-back-arrows",e.controlsBackArrows)}},{key:"bind",value:function(){var e=this,t=["touchstart","click"];R&&(t=["touchstart"]),t.forEach((function(t){e.controlsLeft.forEach((function(i){return i.addEventListener(t,e.onNavigateLeftClicked,!1)})),e.controlsRight.forEach((function(i){return i.addEventListener(t,e.onNavigateRightClicked,!1)})),e.controlsUp.forEach((function(i){return i.addEventListener(t,e.onNavigateUpClicked,!1)})),e.controlsDown.forEach((function(i){return i.addEventListener(t,e.onNavigateDownClicked,!1)})),e.controlsPrev.forEach((function(i){return i.addEventListener(t,e.onNavigatePrevClicked,!1)})),e.controlsNext.forEach((function(i){return i.addEventListener(t,e.onNavigateNextClicked,!1)}))}))}},{key:"unbind",value:function(){var e=this;["touchstart","click"].forEach((function(t){e.controlsLeft.forEach((function(i){return i.removeEventListener(t,e.onNavigateLeftClicked,!1)})),e.controlsRight.forEach((function(i){return i.removeEventListener(t,e.onNavigateRightClicked,!1)})),e.controlsUp.forEach((function(i){return i.removeEventListener(t,e.onNavigateUpClicked,!1)})),e.controlsDown.forEach((function(i){return i.removeEventListener(t,e.onNavigateDownClicked,!1)})),e.controlsPrev.forEach((function(i){return i.removeEventListener(t,e.onNavigatePrevClicked,!1)})),e.controlsNext.forEach((function(i){return i.removeEventListener(t,e.onNavigateNextClicked,!1)}))}))}},{key:"update",value:function(){var e=this.Reveal.availableRoutes();[].concat(o(this.controlsLeft),o(this.controlsRight),o(this.controlsUp),o(this.controlsDown),o(this.controlsPrev),o(this.controlsNext)).forEach((function(e){e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")})),e.left&&this.controlsLeft.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),e.right&&this.controlsRight.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),e.up&&this.controlsUp.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),e.down&&this.controlsDown.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),(e.left||e.up)&&this.controlsPrev.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")})),(e.right||e.down)&&this.controlsNext.forEach((function(e){e.classList.add("enabled"),e.removeAttribute("disabled")}));var t=this.Reveal.getCurrentSlide();if(t){var i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),i.next&&this.controlsNext.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),this.Reveal.isVerticalSlide(t)?(i.prev&&this.controlsUp.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),i.next&&this.controlsDown.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))):(i.prev&&this.controlsLeft.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),i.next&&this.controlsRight.forEach((function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})))}if(this.Reveal.getConfig().controlsTutorial){var n=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&e.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&e.left&&0===n.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&e.right&&0===n.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}},{key:"onNavigateLeftClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}},{key:"onNavigateRightClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.next():this.Reveal.right()}},{key:"onNavigateUpClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}},{key:"onNavigateDownClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}},{key:"onNavigatePrevClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}},{key:"onNavigateNextClicked",value:function(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}}]),e}(),H=function(){function e(i){t(this,e),this.Reveal=i,this.onProgressClicked=this.onProgressClicked.bind(this)}return n(e,[{key:"render",value:function(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}},{key:"configure",value:function(e,t){this.element.style.display=e.progress?"block":"none"}},{key:"bind",value:function(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}},{key:"unbind",value:function(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}},{key:"update",value:function(){this.Reveal.getConfig().progress&&this.bar&&(this.bar.style.width=this.Reveal.getProgress()*this.getMaxWidth()+"px")}},{key:"getMaxWidth",value:function(){return this.Reveal.getRevealElement().offsetWidth}},{key:"onProgressClicked",value:function(e){this.Reveal.onUserInput(e),e.preventDefault();var t=this.Reveal.getHorizontalSlides().length,i=Math.floor(e.clientX/this.getMaxWidth()*t);this.Reveal.getConfig().rtl&&(i=t-i),this.Reveal.slide(i)}}]),e}(),O=function(){function e(i){t(this,e),this.Reveal=i,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}return n(e,[{key:"configure",value:function(e,t){e.mouseWheel?(document.addEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.addEventListener("mousewheel",this.onDocumentMouseScroll,!1)):(document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1)),e.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}},{key:"showCursor",value:function(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}},{key:"hideCursor",value:function(){!1===this.cursorHidden&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}},{key:"onDocumentCursorActive",value:function(e){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}},{key:"onDocumentMouseScroll",value:function(e){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();var t=e.detail||-e.wheelDelta;t>0?this.Reveal.next():t<0&&this.Reveal.prev()}}}]),e}(),U=function(e,t){var i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=e,"function"==typeof t&&(i.onload=i.onreadystatechange=function(e){("load"===e.type||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=i.onerror=null,t())},i.onerror=function(e){i.onload=i.onreadystatechange=i.onerror=null,t(new Error("Failed loading script: "+i.src+"\n"+e))});var n=document.querySelector("head");n.insertBefore(i,n.lastChild)},z=function(){function e(i){t(this,e),this.Reveal=i,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}return n(e,[{key:"load",value:function(e){var t=this;return this.state="loading",new Promise((function(i){var n=[],a=0;if(e.forEach((function(e){e.condition&&!e.condition()||(e.async?t.asyncDependencies.push(e):n.push(e))})),n.length){a=n.length;var r=function(e){"function"==typeof e.callback&&e.callback(),0==--a&&t.initPlugins().then(i)};n.forEach((function(e){"string"==typeof e.id?(t.registerPlugin(e),r(e)):U(e.src,(function(){return r(e)}))}))}else t.initPlugins().then(i)}))}},{key:"initPlugins",value:function(){var e=this;return new Promise((function(t){var i=Object.keys(e.registeredPlugins).length;if(0===i)e.loadAsync().then(t);else{var n=function(){0==--i&&e.loadAsync().then(t)};for(var a in e.registeredPlugins){var r=e.registeredPlugins[a];if("function"==typeof r.init){var s=r.init(e.Reveal);s&&"function"==typeof s.then?s.then(n):n()}else n()}}}))}},{key:"loadAsync",value:function(){var e=this;return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach((function(t){t.plugin?(e.registerPlugin(t.plugin),"function"==typeof t.plugin.init&&t.plugin.init(e.Reveal),"function"==typeof t.callback&&t.callback()):U(t.src,t.callback)})),Promise.resolve()}},{key:"registerPlugin",value:function(e){var t=e.id;"string"!=typeof t?console.warn("reveal.js: plugin.id is not a string"):void 0===this.registeredPlugins[t]?(this.registeredPlugins[t]=e,"loaded"===this.state&&"function"==typeof e.init&&e.init(this.Reveal)):console.warn('reveal.js: "'+t+'" plugin has already been registered')}},{key:"hasPlugin",value:function(e){return!!this.registeredPlugins[e]}},{key:"getPlugin",value:function(e){return this.registeredPlugins[e]}},{key:"getRegisteredPlugins",value:function(){return this.registeredPlugins}}]),e}(),q=function(){function e(i){t(this,e),this.Reveal=i}return n(e,[{key:"setupPDF",value:function(){var e=this.Reveal.getConfig(),t=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),i=Math.floor(t.width*(1+e.margin)),n=Math.floor(t.height*(1+e.margin)),a=t.width,r=t.height;p("@page{size:"+i+"px "+n+"px; margin: 0px;}"),p(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+a+"px; max-height:"+r+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=i+"px",document.body.style.height=n+"px",this.Reveal.layoutSlideContents(a,r);var s=e.slideNumber&&/all|print/i.test(e.showSlideNumber);u(this.Reveal.getRevealElement(),".slides section").forEach((function(e){e.setAttribute("data-slide-number",this.Reveal.slideNumber.getSlideNumber(e))}),this),u(this.Reveal.getRevealElement(),".slides section").forEach((function(t){if(!1===t.classList.contains("stack")){var o=(i-a)/2,l=(n-r)/2,d=t.scrollHeight,c=Math.max(Math.ceil(d/n),1);(1===(c=Math.min(c,e.pdfMaxPagesPerSlide))&&e.center||t.classList.contains("center"))&&(l=Math.max((n-d)/2,0));var h=document.createElement("div");if(h.className="pdf-page",h.style.height=(n+e.pdfPageHeightOffset)*c+"px",t.parentNode.insertBefore(h,t),h.appendChild(t),t.style.left=o+"px",t.style.top=l+"px",t.style.width=a+"px",t.slideBackgroundElement&&h.insertBefore(t.slideBackgroundElement,t),e.showNotes){var v=getSlideNotes(t);if(v){var g="string"==typeof e.showNotes?e.showNotes:"inline",f=document.createElement("div");f.classList.add("speaker-notes"),f.classList.add("speaker-notes-pdf"),f.setAttribute("data-layout",g),f.innerHTML=v,"separate-page"===g?h.parentNode.insertBefore(f,h.nextSibling):(f.style.left="8px",f.style.bottom="8px",f.style.width=i-16+"px",h.appendChild(f))}}if(s){var p=document.createElement("div");p.classList.add("slide-number"),p.classList.add("slide-number-pdf"),p.innerHTML=t.getAttribute("data-slide-number"),h.appendChild(p)}if(e.pdfSeparateFragments){var m,y,b=this.Reveal.fragments.sort(h.querySelectorAll(".fragment"),!0);b.forEach((function(e){m&&m.forEach((function(e){e.classList.remove("current-fragment")})),e.forEach((function(e){e.classList.add("visible","current-fragment")}),this);var t=h.cloneNode(!0);h.parentNode.insertBefore(t,(y||h).nextSibling),m=e,y=t}),this),b.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else u(h,".fragment:not(.fade-out)").forEach((function(e){e.classList.add("visible")}))}}),this),this.Reveal.dispatchEvent({type:"pdf-ready"})}},{key:"isPrintingPDF",value:function(){return/print-pdf/gi.test(window.location.search)}}]),e}(),j=function(){function e(i){t(this,e),this.Reveal=i,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}return n(e,[{key:"bind",value:function(){var e=this.Reveal.getRevealElement();"onpointerdown"in window?(e.addEventListener("pointerdown",this.onPointerDown,!1),e.addEventListener("pointermove",this.onPointerMove,!1),e.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",this.onPointerDown,!1),e.addEventListener("MSPointerMove",this.onPointerMove,!1),e.addEventListener("MSPointerUp",this.onPointerUp,!1)):(e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"unbind",value:function(){var e=this.Reveal.getRevealElement();e.removeEventListener("pointerdown",this.onPointerDown,!1),e.removeEventListener("pointermove",this.onPointerMove,!1),e.removeEventListener("pointerup",this.onPointerUp,!1),e.removeEventListener("MSPointerDown",this.onPointerDown,!1),e.removeEventListener("MSPointerMove",this.onPointerMove,!1),e.removeEventListener("MSPointerUp",this.onPointerUp,!1),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1)}},{key:"isSwipePrevented",value:function(e){for(;e&&"function"==typeof e.hasAttribute;){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNode}return!1}},{key:"onTouchStart",value:function(e){if(this.isSwipePrevented(e.target))return!0;this.touchStartX=e.touches[0].clientX,this.touchStartY=e.touches[0].clientY,this.touchStartCount=e.touches.length}},{key:"onTouchMove",value:function(e){if(this.isSwipePrevented(e.target))return!0;var t=this.Reveal.getConfig();if(this.touchCaptured)isAndroid&&e.preventDefault();else{this.Reveal.onUserInput(e);var i=e.touches[0].clientX,n=e.touches[0].clientY;if(1===e.touches.length&&2!==this.touchStartCount){var a=i-this.touchStartX,r=n-this.touchStartY;a>40&&Math.abs(a)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.next():this.Reveal.prev()():this.Reveal.left()):a<-40&&Math.abs(a)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.prev()():this.Reveal.next():this.Reveal.right()):r>40?(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.prev()():this.Reveal.up()):r<-40&&(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.next():this.Reveal.down()),t.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide(currentSlide))&&e.preventDefault():e.preventDefault()}}}},{key:"onTouchEnd",value:function(e){this.touchCaptured=!1}},{key:"onPointerDown",value:function(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}},{key:"onPointerMove",value:function(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}},{key:"onPointerUp",value:function(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}]),e}(),W=function(){function e(i){t(this,e),this.Reveal=i}return n(e,[{key:"render",value:function(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}},{key:"configure",value:function(e,t){e.showNotes&&this.element.setAttribute("data-layout","string"==typeof e.showNotes?e.showNotes:"inline")}},{key:"update",value:function(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'No notes on this slide.')}},{key:"updateVisibility",value:function(){this.Reveal.getConfig().showNotes&&this.hasNotes()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}},{key:"hasNotes",value:function(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}},{key:"isSpeakerNotesWindow",value:function(){return!!window.location.search.match(/receiver/gi)}},{key:"getSlideNotes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");var t=e.querySelector("aside.notes");return t?t.innerHTML:null}}]),e}(),K=function(){function e(i,n){t(this,e),this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=i,this.progressCheck=n,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}return n(e,[{key:"setPlaying",value:function(e){var t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()}},{key:"animate",value:function(){var e=this.progress;this.progress=this.progressCheck(),e>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}},{key:"render",value:function(){var e=this.playing?this.progress:0,t=this.diameter2-this.thickness,i=this.diameter2,n=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);var a=-Math.PI/2+e*(2*Math.PI),r=-Math.PI/2+this.progressOffset*(2*Math.PI);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,n,t+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,n,t,0,2*Math.PI,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,n,t,r,a,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,n-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}},{key:"on",value:function(e,t){this.canvas.addEventListener(e,t,!1)}},{key:"off",value:function(e,t){this.canvas.removeEventListener(e,t,!1)}},{key:"destroy",value:function(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}]),e}(),V={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,history:!1,keyboard:!0,keyboardCondition:null,overview:!0,disableLayout:!1,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!1,embedded:!1,help:!0,pause:!0,showNotes:!1,autoPlayMedia:null,preloadIframes:null,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,mouseWheel:!1,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,dependencies:[]};function F(t,i){1===arguments.length&&(i=arguments[0],t=document.querySelector(".reveal"));var n,a,r,o,d,g,p={},b="4.0.0-dev",k=!1,A={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},R=[],S=1,C=new L(p),U=new x(p),F=new N(p),X=new P(p),Y=new M(p),_=new I(p),$=new D(p),J=new T(p),Q=new B(p),Z=new H(p),G=new O(p),ee=new z(p),te=new q(p),ie=new j(p),ne=new W(p),ae={layout:"",overview:""},re={},se=0,oe=0,le=-1,de=!1;function ce(){return re.wrapper=t,re.slides=t.querySelector(".slides"),!0===(n=s({},V,{},i,{},m())).embedded?t.classList.add("reveal-viewport"):(document.body.classList.add("reveal-viewport"),document.documentElement.classList.add("reveal-full-page")),window.addEventListener("load",Ie,!1),ee.load(n.dependencies).then(ue),new Promise((function(e){return p.on("ready",e)}))}function ue(){k=!0,he(),me(),pe(),Je(),ye(),J.readURL(),X.update(!0),setTimeout((function(){re.slides.classList.remove("no-transition"),re.wrapper.classList.add("ready"),Ee({type:"ready",data:{indexh:a,indexv:r,currentSlide:d}})}),1),te.isPrintingPDF()&&(ke(),"complete"===document.readyState?te.setupPDF():window.addEventListener("load",te.setupPDF))}function he(){re.slides.classList.add("no-transition"),w?re.wrapper.classList.add("no-hover"):re.wrapper.classList.remove("no-hover"),X.render(),U.render(),Q.render(),Z.render(),ne.render(),re.pauseOverlay=f(re.wrapper,"div","pause-overlay",n.controls?'':null),re.statusElement=ve(),re.wrapper.setAttribute("role","application")}function ve(){var e=re.wrapper.querySelector(".aria-status");return e||((e=document.createElement("div")).style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.classList.add("aria-status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),re.wrapper.appendChild(e)),e}function ge(e){re.statusElement.textContent=e}function fe(e){var t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){var i=e.getAttribute("aria-hidden"),n="none"===window.getComputedStyle(e).display;"true"===i||n||Array.from(e.childNodes).forEach((function(e){t+=fe(e)}))}return""===(t=t.trim())?"":t+" "}function pe(){setInterval((function(){0===re.wrapper.scrollTop&&0===re.wrapper.scrollLeft||(re.wrapper.scrollTop=0,re.wrapper.scrollLeft=0)}),1e3)}function me(){n.postMessage&&window.addEventListener("message",(function(e){var t=e.data;if("string"==typeof t&&"{"===t.charAt(0)&&"}"===t.charAt(t.length-1)&&(t=JSON.parse(t)).method&&"function"==typeof p[t.method])if(!1===l.test(t.method)){var i=p[t.method].apply(p,t.args);Se("callback",{method:t.method,result:i})}else console.warn('reveal.js: "'+t.method+'" is is blacklisted from the postMessage API')}),!1)}function ye(t){var i=s({},n);if("object"===e(t)&&c(n,t),!1!==p.isReady()){var a=re.wrapper.querySelectorAll(".slides section").length;re.wrapper.classList.remove(i.transition),re.wrapper.classList.add(n.transition),re.wrapper.setAttribute("data-transition-speed",n.transitionSpeed),re.wrapper.setAttribute("data-background-transition",n.backgroundTransition),n.shuffle&&Qe(),n.rtl?re.wrapper.classList.add("rtl"):re.wrapper.classList.remove("rtl"),n.center?re.wrapper.classList.add("center"):re.wrapper.classList.remove("center"),!1===n.pause&&We(),n.previewLinks?(Le(),xe("[data-preview-link=false]")):(xe(),Le("[data-preview-link]:not([data-preview-link=false])")),F.reset(),g&&(g.destroy(),g=null),a>1&&n.autoSlide&&n.autoSlideStoppable&&((g=new K(re.wrapper,(function(){return Math.min(Math.max((Date.now()-le)/se,0),1)}))).on("click",Mt),de=!1),"default"!==n.navigationMode?re.wrapper.setAttribute("data-navigation-mode",n.navigationMode):re.wrapper.removeAttribute("data-navigation-mode"),ne.configure(n,i),G.configure(n,i),Q.configure(n,i),Z.configure(n,i),$.configure(n,i),Y.configure(n,i),U.configure(n,i),_e()}}function be(){window.addEventListener("hashchange",xt,!1),window.addEventListener("resize",Ct,!1),n.touch&&ie.bind(),n.keyboard&&$.bind(),Q.bind(),Z.bind(),re.pauseOverlay.addEventListener("click",We,!1),n.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",Pt,!1)}function ke(){ie.unbind(),$.unbind(),Q.unbind(),Z.unbind(),window.removeEventListener("hashchange",xt,!1),window.removeEventListener("resize",Ct,!1),re.pauseOverlay.removeEventListener("click",We,!1)}function we(e,i,n){t.addEventListener(e,i,n)}function Ae(e,i,n){t.removeEventListener(e,i,n)}function Re(e){"string"==typeof e.layout&&(ae.layout=e.layout),"string"==typeof e.overview&&(ae.overview=e.overview),ae.layout?v(re.slides,ae.layout+" "+ae.overview):v(re.slides,ae.overview)}function Ee(e){var t=e.target,i=void 0===t?re.wrapper:t,n=e.type,a=e.data,r=e.bubbles,s=void 0===r||r,o=document.createEvent("HTMLEvents",1,2);o.initEvent(n,s,!0),c(o,a),i.dispatchEvent(o),i===re.wrapper&&Se(n)}function Se(e,t){if(n.postMessageEvents&&window.parent!==window.self){var i={namespace:"reveal",eventName:e,state:gt()};c(i,t),window.parent.postMessage(JSON.stringify(i),"*")}}function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(re.wrapper.querySelectorAll(e)).forEach((function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Nt,!1)}))}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(re.wrapper.querySelectorAll(e)).forEach((function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Nt,!1)}))}function Ce(e){Me(),re.overlay=document.createElement("div"),re.overlay.classList.add("overlay"),re.overlay.classList.add("overlay-preview"),re.wrapper.appendChild(re.overlay),re.overlay.innerHTML='
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site\'s policy (x-frame-options).\n\t\t\t\t\n\t\t\t
'),re.overlay.querySelector("iframe").addEventListener("load",(function(e){re.overlay.classList.add("loaded")}),!1),re.overlay.querySelector(".close").addEventListener("click",(function(e){Me(),e.preventDefault()}),!1),re.overlay.querySelector(".external").addEventListener("click",(function(e){Me()}),!1)}function Pe(e){"boolean"==typeof e?e?Ne():Me():re.overlay?Me():Ne()}function Ne(){if(n.help){Me(),re.overlay=document.createElement("div"),re.overlay.classList.add("overlay"),re.overlay.classList.add("overlay-help"),re.wrapper.appendChild(re.overlay);var e='

Keyboard Shortcuts


';for(var t in e+="",$.shortcuts)e+="");for(var i in $.registeredKeyBindings)$.registeredKeyBindings[i].key&&$.registeredKeyBindings[i].description&&(e+=""));e+="
KEYACTION
".concat(t,"").concat($.shortcuts[t],"
".concat($.registeredKeyBindings[i].key,"").concat($.registeredKeyBindings[i].description,"
",re.overlay.innerHTML='\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
'.concat(e,"
\n\t\t\t\t
\n\t\t\t"),re.overlay.querySelector(".close").addEventListener("click",(function(e){Me(),e.preventDefault()}),!1)}}function Me(){return!!re.overlay&&(re.overlay.parentNode.removeChild(re.overlay),re.overlay=null,!0)}function Ie(){if(re.wrapper&&!te.isPrintingPDF()){if(!n.disableLayout){w&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");var e=Te(),t=S;De(n.width,n.height),re.slides.style.width=e.width+"px",re.slides.style.height=e.height+"px",S=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),S=Math.max(S,n.minScale),1===(S=Math.min(S,n.maxScale))?(re.slides.style.zoom="",re.slides.style.left="",re.slides.style.top="",re.slides.style.bottom="",re.slides.style.right="",Re({layout:""})):S>1&&E&&window.devicePixelRatio<2?(re.slides.style.zoom=S,re.slides.style.left="",re.slides.style.top="",re.slides.style.bottom="",re.slides.style.right="",Re({layout:""})):(re.slides.style.zoom="",re.slides.style.left="50%",re.slides.style.top="50%",re.slides.style.bottom="auto",re.slides.style.right="auto",Re({layout:"translate(-50%, -50%) scale("+S+")"}));for(var i=Array.from(re.wrapper.querySelectorAll(".slides section")),a=0,r=i.length;a .stretch").forEach((function(i){var n=y(i,t);if(/(img|video)/gi.test(i.nodeName)){var a=i.naturalWidth||i.videoWidth,r=i.naturalHeight||i.videoHeight,s=Math.min(e/a,n/r);i.style.width=a*s+"px",i.style.height=r*s+"px"}else i.style.width=e+"px",i.style.height=n+"px"}))}function Te(e,t){var i={width:n.width,height:n.height,presentationWidth:e||re.wrapper.offsetWidth,presentationHeight:t||re.wrapper.offsetHeight};return i.presentationWidth-=i.presentationWidth*n.margin,i.presentationHeight-=i.presentationHeight*n.margin,"string"==typeof i.width&&/%$/.test(i.width)&&(i.width=parseInt(i.width,10)/100*i.presentationWidth),"string"==typeof i.height&&/%$/.test(i.height)&&(i.height=parseInt(i.height,10)/100*i.presentationHeight),i}function Be(t,i){"object"===e(t)&&"function"==typeof t.setAttribute&&t.setAttribute("data-previous-indexv",i||0)}function He(t){if("object"===e(t)&&"function"==typeof t.setAttribute&&t.classList.contains("stack")){var i=t.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(t.getAttribute(i)||0,10)}return 0}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function Ue(){return!(!d||!Oe(d))&&!d.nextElementSibling}function ze(){return 0===a&&0===r}function qe(){return!!d&&(!d.nextElementSibling&&(!Oe(d)||!d.parentNode.nextElementSibling))}function je(){if(n.pause){var e=re.wrapper.classList.contains("paused");mt(),re.wrapper.classList.add("paused"),!1===e&&Ee({type:"paused"})}}function We(){var e=re.wrapper.classList.contains("paused");re.wrapper.classList.remove("paused"),pt(),e&&Ee({type:"resumed"})}function Ke(e){"boolean"==typeof e?e?je():We():Ve()?We():je()}function Ve(){return re.wrapper.classList.contains("paused")}function Fe(e){"boolean"==typeof e?e?bt():yt():de?bt():yt()}function Xe(){return!(!se||de)}function Ye(e,t,i,s){o=d;var l=re.wrapper.querySelectorAll(".slides>section");if(0!==l.length){void 0!==t||_.isActive()||(t=He(l[e])),o&&o.parentNode&&o.parentNode.classList.contains("stack")&&Be(o.parentNode,r);var c=R.concat();R.length=0;var u=a||0,h=r||0;a=Ze(".slides>section",void 0===e?a:e),r=Ze(".slides>section.present>section",void 0===t?r:t);var v=a!==u||r!==h;v||(o=null);var g=l[a],f=g.querySelectorAll("section");d=f[r]||g;var p=!1;v&&o&&d&&!_.isActive()&&o.hasAttribute("data-auto-animate")&&d.hasAttribute("data-auto-animate")&&(p=!0,re.slides.classList.add("disable-slide-transitions")),Ge(),Ie(),_.isActive()&&_.update(),void 0!==i&&Y.goto(i),o&&o!==d&&(o.classList.remove("present"),o.setAttribute("aria-hidden","true"),ze()&&setTimeout((function(){ot().forEach((function(e){Be(e,0)}))}),0));e:for(var m=0,y=R.length;m0&&void 0!==arguments[0]?arguments[0]:d;X.sync(e),Y.sync(e),C.load(e),X.update(),ne.update()}function Je(){rt().forEach((function(e){u(e,"section").forEach((function(e,t){t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))}))}))}function Qe(){rt().forEach((function(e,t,i){re.slides.insertBefore(e,i[Math.floor(Math.random()*i.length)])}))}function Ze(e,t){var i=u(re.wrapper,e),a=i.length,r=te.isPrintingPDF();if(a){n.loop&&(t%=a)<0&&(t=a+t),t=Math.max(Math.min(t,a-1),0);for(var s=0;st&&(o.classList.add(l?"past":"future"),n.fragments&&u(o,".fragment.visible").forEach((function(e){e.classList.remove("visible","current-fragment")})))}var d=i[t],c=d.classList.contains("present");d.classList.add("present"),d.removeAttribute("hidden"),d.removeAttribute("aria-hidden"),c||Ee({target:d,type:"visible",bubbles:!1});var h=d.getAttribute("data-state");h&&(R=R.concat(h.split(" ")))}else t=0;return t}function Ge(){var e,t=rt(),i=t.length;if(i&&void 0!==a){var s=_.isActive()?10:n.viewDistance;w&&(s=_.isActive()?6:n.mobileViewDistance),te.isPrintingPDF()&&(s=Number.MAX_VALUE);for(var o=0;osection"),t=re.wrapper.querySelectorAll(".slides>section.present>section"),i={left:a>0,right:a0,down:r1&&(i.left=!0,i.right=!0),t.length>1&&(i.up=!0,i.down=!0)),e.length>1&&"linear"===n.navigationMode&&(i.right=i.right||i.down,i.left=i.left||i.up),n.rtl){var s=i.left;i.left=i.right,i.right=s}return i}function tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=rt(),i=0;e:for(var n=0;n0){t+=d.querySelectorAll(".fragment.visible").length/i.length*.9}}return Math.min(t/(e-1),1)}function nt(e){var t,i=a,n=r;if(e){var s=Oe(e),o=s?e.parentNode:e,l=rt();i=Math.max(l.indexOf(o),0),n=void 0,s&&(n=Math.max(u(e.parentNode,"section").indexOf(e),0))}if(!e&&d&&d.querySelectorAll(".fragment").length>0){var c=d.querySelector(".current-fragment");t=c&&c.hasAttribute("data-fragment-index")?parseInt(c.getAttribute("data-fragment-index"),10):d.querySelectorAll(".fragment.visible").length-1}return{h:i,v:n,f:t}}function at(){return u(re.wrapper,'.slides section:not(.stack):not([data-visibility="uncounted"])')}function rt(){return u(re.wrapper,".slides>section")}function st(){return u(re.wrapper,".slides>section>section")}function ot(){return u(re.wrapper,".slides>section.stack")}function lt(){return rt().length>1}function dt(){return st().length>1}function ct(){return at().map((function(e){for(var t={},i=0;ise&&(se=1e3*e.duration/e.playbackRate+1e3)})),!se||de||Ve()||_.isActive()||qe()&&!Y.availableRoutes().next&&!0!==n.loop||(oe=setTimeout((function(){"function"==typeof n.autoSlideMethod?n.autoSlideMethod():St(),pt()}),se),le=Date.now()),g&&g.setPlaying(-1!==oe)}}function mt(){clearTimeout(oe),oe=-1}function yt(){se&&!de&&(de=!0,Ee({type:"autoslidepaused"}),clearTimeout(oe),g&&g.setPlaying(!1))}function bt(){se&&de&&(de=!1,Ee({type:"autoslideresumed"}),pt())}function kt(){A.hasNavigatedHorizontally=!0,n.rtl?(_.isActive()||!1===Y.next())&&et().left&&Ye(a+1,"grid"===n.navigationMode?r:void 0):(_.isActive()||!1===Y.prev())&&et().left&&Ye(a-1,"grid"===n.navigationMode?r:void 0)}function wt(){A.hasNavigatedHorizontally=!0,n.rtl?(_.isActive()||!1===Y.prev())&&et().right&&Ye(a-1,"grid"===n.navigationMode?r:void 0):(_.isActive()||!1===Y.next())&&et().right&&Ye(a+1,"grid"===n.navigationMode?r:void 0)}function At(){(_.isActive()||!1===Y.prev())&&et().up&&Ye(a,r-1)}function Rt(){A.hasNavigatedVertically=!0,(_.isActive()||!1===Y.next())&&et().down&&Ye(a,r+1)}function Et(){var e;if(!1===Y.prev())if(et().up)At();else if(e=n.rtl?u(re.wrapper,".slides>section.future").pop():u(re.wrapper,".slides>section.past").pop()){var t=e.querySelectorAll("section").length-1||void 0;Ye(a-1,t)}}function St(){if(A.hasNavigatedHorizontally=!0,A.hasNavigatedVertically=!0,!1===Y.next()){var e=et();e.down&&e.right&&n.loop&&Ue()&&(e.down=!1),e.down?Rt():n.rtl?kt():wt()}}function Lt(e){n.autoSlideStoppable&&yt()}function xt(e){J.readURL()}function Ct(e){Ie()}function Pt(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function Nt(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){var t=e.currentTarget.getAttribute("href");t&&(Ce(t),e.preventDefault())}}function Mt(e){qe()&&!1===n.loop?(Ye(0,0),bt()):de?bt():yt()}return c(p,{VERSION:b,initialize:ce,configure:ye,sync:_e,syncSlide:$e,syncFragments:Y.sync.bind(Y),slide:Ye,left:kt,right:wt,up:At,down:Rt,prev:Et,next:St,navigateLeft:kt,navigateRight:wt,navigateUp:At,navigateDown:Rt,navigatePrev:Et,navigateNext:St,navigateFragment:Y.goto.bind(Y),prevFragment:Y.prev.bind(Y),nextFragment:Y.next.bind(Y),on:we,off:Ae,addEventListener:we,removeEventListener:Ae,layout:Ie,shuffle:Qe,availableRoutes:et,availableFragments:Y.availableRoutes.bind(Y),toggleHelp:Pe,toggleOverview:_.toggle.bind(_),togglePause:Ke,toggleAutoSlide:Fe,isFirstSlide:ze,isLastSlide:qe,isLastVerticalSlide:Ue,isVerticalSlide:Oe,isPaused:Ve,isAutoSliding:Xe,isSpeakerNotes:ne.isSpeakerNotesWindow.bind(ne),isOverview:_.isActive.bind(_),isPrintingPDF:te.isPrintingPDF.bind(te),loadSlide:C.load.bind(C),unloadSlide:C.unload.bind(C),addEventListeners:be,removeEventListeners:ke,dispatchEvent:Ee,getState:gt,setState:ft,getSlidePastCount:tt,getProgress:it,getIndices:nt,getSlides:at,getSlidesAttributes:ct,getTotalSlides:ut,getSlide:ht,getSlideBackground:vt,getSlideNotes:ne.getSlideNotes.bind(ne),getHorizontalSlides:rt,getVerticalSlides:st,hasHorizontalSlides:lt,hasVerticalSlides:dt,hasNavigatedHorizontally:function(){return A.hasNavigatedHorizontally},hasNavigatedVertically:function(){return A.hasNavigatedVertically},addKeyBinding:$.addKeyBinding.bind($),removeKeyBinding:$.removeKeyBinding.bind($),triggerKey:$.triggerKey.bind($),registerKeyboardShortcut:$.registerKeyboardShortcut.bind($),registerPlugin:ee.registerPlugin.bind(ee),hasPlugin:ee.hasPlugin.bind(ee),getPlugin:ee.getPlugin.bind(ee),getPlugins:ee.getRegisteredPlugins.bind(ee),getComputedSlideSize:Te,getPreviousSlide:function(){return o},getCurrentSlide:function(){return d},getScale:function(){return S},getConfig:function(){return n},getQueryHash:m,getRevealElement:function(){return t},getSlidesElement:function(){return re.slides},getBackgroundsElement:function(){return X.element},isReady:function(){return k},announceStatus:ge,getStatusText:fe,print:te,progress:Z,controls:Q,location:J,overview:_,fragments:Y,slideContent:C,slideNumber:U,onUserInput:Lt,closeOverlay:Me,updateSlidesVisibility:Ge,layoutSlideContents:De,transformSlides:Re,cueAutoSlide:pt,cancelAutoSlide:mt})}window.Reveal=F;var X=[];window.Reveal.initialize=function(e){return window.Reveal=new F(document.querySelector(".reveal"),e),X.map((function(e){return e(window.Reveal)})),window.Reveal.initialize()},["on","off","addEventListener","removeEventListener","registerPlugin"].forEach((function(e){window.Reveal[e]=function(){for(var t=arguments.length,i=new Array(t),n=0;n { * queuing up early API calls and invoking all of them * when Reveal.initialize is called. */ -[ 'on', 'off', 'addEventListener', 'removeEventListener' ].forEach( method => { +[ 'on', 'off', 'addEventListener', 'removeEventListener', 'registerPlugin' ].forEach( method => { window.Reveal[method] = ( ...args ) => { enqueuedAPICalls.push( deck => deck[method].call( null, ...args ) ); } diff --git a/js/reveal.js b/js/reveal.js index 3e02904..e102ce2 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -34,7 +34,7 @@ import { /** * reveal.js - * http://revealjs.com + * https://revealjs.com * MIT licensed * * Copyright (C) 2020 Hakim El Hattab, https://hakim.se diff --git a/test/examples/auto-animate.html b/test/examples/auto-animate.html index a1c0c95..066536f 100644 --- a/test/examples/auto-animate.html +++ b/test/examples/auto-animate.html @@ -163,20 +163,15 @@ - diff --git a/test/examples/barebones.html b/test/examples/barebones.html index 29dc451..f4e9da0 100644 --- a/test/examples/barebones.html +++ b/test/examples/barebones.html @@ -30,11 +30,8 @@ - diff --git a/test/examples/embedded-media.html b/test/examples/embedded-media.html index f83405f..3c55c0e 100644 --- a/test/examples/embedded-media.html +++ b/test/examples/embedded-media.html @@ -40,13 +40,10 @@ - diff --git a/test/examples/math.html b/test/examples/math.html index 36078b9..bba4ab1 100644 --- a/test/examples/math.html +++ b/test/examples/math.html @@ -176,9 +176,7 @@ - diff --git a/test/examples/multiple-instances.html b/test/examples/multiple-instances.html index 05cb824..a3c27b5 100644 --- a/test/examples/multiple-instances.html +++ b/test/examples/multiple-instances.html @@ -40,10 +40,9 @@ - - - -