!function(e,t){"function"==typeof define&&define.amd?define(function(){return e.Reveal=t(),e.Reveal}):"object"==typeof exports?module.exports=t():e.Reveal=t()}(this,function(){"use strict";function e(e){if(t(),Pr.transforms2d||Pr.transforms3d){Cr.wrapper=document.querySelector(".reveal"),Cr.slides=document.querySelector(".reveal .slides"),window.addEventListener("load",W,!1);var n=vr.getQueryHash();"undefined"!=typeof n.dependencies&&delete n.dependencies,h(xr,e),h(xr,n),q(),r()}else{document.body.setAttribute("class","no-transforms");for(var a=document.getElementsByTagName("img"),i=0,o=a.length;o>i;i++){var s=a[i];s.getAttribute("data-src")&&(s.setAttribute("src",s.getAttribute("data-src")),s.removeAttribute("data-src"))}}}function t(){Pr.transforms3d="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Pr.transforms2d="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Pr.requestAnimationFrameMethod=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,Pr.requestAnimationFrame="function"==typeof Pr.requestAnimationFrameMethod,Pr.canvas=!!document.createElement("canvas").getContext,Pr.touch=!!("ontouchstart"in window),Pr.overviewTransitions=!/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),wr=/(iphone|ipod|ipad|android)/gi.test(navigator.userAgent)}function r(){function e(){a.length&&head.js.apply(null,a),n()}function t(t){head.ready(t.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],function(){"function"==typeof t.callback&&t.callback.apply(this),0===--i&&e()})}for(var r=[],a=[],i=0,o=0,s=xr.dependencies.length;s>o;o++){var c=xr.dependencies[o];(!c.condition||c.condition())&&(c.async?a.push(c.src):r.push(c.src),t(c))}r.length?(i=r.length,head.js.apply(null,r)):e()}function n(){a(),u(),s(),at(),p(),kt(),ut(!0),setTimeout(function(){Cr.slides.classList.remove("no-transition"),qr=!0,T("ready",{indexh:hr,indexv:gr,currentSlide:yr})},1),x()&&(v(),"complete"===document.readyState?o():window.addEventListener("load",o))}function a(){Cr.slides.classList.add("no-transition"),Cr.background=c(Cr.wrapper,"div","backgrounds",null),Cr.progress=c(Cr.wrapper,"div","progress",""),Cr.progressbar=Cr.progress.querySelector("span"),c(Cr.wrapper,"aside","controls",'
'),Cr.slideNumber=c(Cr.wrapper,"div","slide-number",""),c(Cr.wrapper,"div","pause-overlay",null),Cr.controls=document.querySelector(".reveal .controls"),Cr.theme=document.querySelector("#theme"),Cr.wrapper.setAttribute("role","application"),Cr.controlsLeft=g(document.querySelectorAll(".navigate-left")),Cr.controlsRight=g(document.querySelectorAll(".navigate-right")),Cr.controlsUp=g(document.querySelectorAll(".navigate-up")),Cr.controlsDown=g(document.querySelectorAll(".navigate-down")),Cr.controlsPrev=g(document.querySelectorAll(".navigate-prev")),Cr.controlsNext=g(document.querySelectorAll(".navigate-next")),Cr.statusDiv=i()}function i(){var e=document.getElementById("aria-status-div");return e||(e=document.createElement("div"),e.style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.setAttribute("id","aria-status-div"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),Cr.wrapper.appendChild(e)),e}function o(){var e=z(window.innerWidth,window.innerHeight),t=Math.floor(e.width*(1+xr.margin)),r=Math.floor(e.height*(1+xr.margin)),n=e.width,a=e.height;L("@page{size:"+t+"px "+r+"px; margin: 0;}"),L(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+n+"px; max-height:"+a+"px}"),document.body.classList.add("print-pdf"),document.body.style.width=t+"px",document.body.style.height=r+"px",g(Cr.wrapper.querySelectorAll(kr)).forEach(function(e){if(e.classList.contains("stack")===!1){var i=(t-n)/2,o=(r-a)/2,s=E(e),c=Math.max(Math.ceil(s/r),1);(1===c&&xr.center||e.classList.contains("center"))&&(o=Math.max((r-s)/2,0)),e.style.left=i+"px",e.style.top=o+"px",e.style.width=n+"px";var l=e.querySelector(".slide-background");l&&(l.style.width=t+"px",l.style.height=r*c+"px",l.style.top=-o+"px",l.style.left=-i+"px")}}),g(Cr.wrapper.querySelectorAll(kr+" .fragment")).forEach(function(e){e.classList.add("visible")})}function s(){Cr.slides.querySelector("iframe")&&setInterval(function(){(0!==Cr.wrapper.scrollTop||0!==Cr.wrapper.scrollLeft)&&(Cr.wrapper.scrollTop=0,Cr.wrapper.scrollLeft=0)},500)}function c(e,t,r,n){for(var a=e.querySelectorAll("."+r),i=0;i1&&xr.autoSlide&&xr.autoSlideStoppable&&Pr.canvas&&Pr.requestAnimationFrame&&(Lr=new fr(Cr.wrapper,function(){return Math.min(Math.max((Date.now()-zr)/Wr,0),1)}),Lr.on("click",pr),Fr=!1),xr.fragments===!1&&g(Cr.slides.querySelectorAll(".fragment")).forEach(function(e){e.classList.add("visible"),e.classList.remove("current-fragment")}),nt()}function f(){if(Rr=!0,window.addEventListener("hashchange",sr,!1),window.addEventListener("resize",cr,!1),xr.touch&&(Cr.wrapper.addEventListener("touchstart",_t,!1),Cr.wrapper.addEventListener("touchmove",Kt,!1),Cr.wrapper.addEventListener("touchend",Vt,!1),window.navigator.pointerEnabled?(Cr.wrapper.addEventListener("pointerdown",Zt,!1),Cr.wrapper.addEventListener("pointermove",Jt,!1),Cr.wrapper.addEventListener("pointerup",Qt,!1)):window.navigator.msPointerEnabled&&(Cr.wrapper.addEventListener("MSPointerDown",Zt,!1),Cr.wrapper.addEventListener("MSPointerMove",Jt,!1),Cr.wrapper.addEventListener("MSPointerUp",Qt,!1))),xr.keyboard&&(document.addEventListener("keydown",$t,!1),document.addEventListener("keypress",Ut,!1)),xr.progress&&Cr.progress&&Cr.progress.addEventListener("click",er,!1),xr.focusBodyOnPageVisibilityChange){var e;"hidden"in document?e="visibilitychange":"msHidden"in document?e="msvisibilitychange":"webkitHidden"in document&&(e="webkitvisibilitychange"),e&&document.addEventListener(e,lr,!1)}var t=["touchstart","click"];navigator.userAgent.match(/android/gi)&&(t=["touchstart"]),t.forEach(function(e){Cr.controlsLeft.forEach(function(t){t.addEventListener(e,tr,!1)}),Cr.controlsRight.forEach(function(t){t.addEventListener(e,rr,!1)}),Cr.controlsUp.forEach(function(t){t.addEventListener(e,nr,!1)}),Cr.controlsDown.forEach(function(t){t.addEventListener(e,ar,!1)}),Cr.controlsPrev.forEach(function(t){t.addEventListener(e,ir,!1)}),Cr.controlsNext.forEach(function(t){t.addEventListener(e,or,!1)})})}function v(){Rr=!1,document.removeEventListener("keydown",$t,!1),document.removeEventListener("keypress",Ut,!1),window.removeEventListener("hashchange",sr,!1),window.removeEventListener("resize",cr,!1),Cr.wrapper.removeEventListener("touchstart",_t,!1),Cr.wrapper.removeEventListener("touchmove",Kt,!1),Cr.wrapper.removeEventListener("touchend",Vt,!1),window.navigator.pointerEnabled?(Cr.wrapper.removeEventListener("pointerdown",Zt,!1),Cr.wrapper.removeEventListener("pointermove",Jt,!1),Cr.wrapper.removeEventListener("pointerup",Qt,!1)):window.navigator.msPointerEnabled&&(Cr.wrapper.removeEventListener("MSPointerDown",Zt,!1),Cr.wrapper.removeEventListener("MSPointerMove",Jt,!1),Cr.wrapper.removeEventListener("MSPointerUp",Qt,!1)),xr.progress&&Cr.progress&&Cr.progress.removeEventListener("click",er,!1),["touchstart","click"].forEach(function(e){Cr.controlsLeft.forEach(function(t){t.removeEventListener(e,tr,!1)}),Cr.controlsRight.forEach(function(t){t.removeEventListener(e,rr,!1)}),Cr.controlsUp.forEach(function(t){t.removeEventListener(e,nr,!1)}),Cr.controlsDown.forEach(function(t){t.removeEventListener(e,ar,!1)}),Cr.controlsPrev.forEach(function(t){t.removeEventListener(e,ir,!1)}),Cr.controlsNext.forEach(function(t){t.removeEventListener(e,or,!1)})})}function h(e,t){for(var r in t)e[r]=t[r]}function g(e){return Array.prototype.slice.call(e)}function m(e){if("string"==typeof e){if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if(e.match(/^\d+$/))return parseFloat(e)}return e}function y(e,t){var r=e.x-t.x,n=e.y-t.y;return Math.sqrt(r*r+n*n)}function b(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.transform=t}function w(e){"string"==typeof e.layout&&(Ir.layout=e.layout),"string"==typeof e.overview&&(Ir.overview=e.overview),Ir.layout?b(Cr.slides,Ir.layout+" "+Ir.overview):b(Cr.slides,Ir.overview)}function L(e){var t=document.createElement("style");t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t)}function k(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 r=e.match(/^#([0-9a-f]{6})$/i);if(r&&r[1])return r=r[1],{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.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}function A(e){return"string"==typeof e&&(e=k(e)),e?(299*e.r+587*e.g+114*e.b)/1e3:null}function E(e){var t=0;if(e){var r=0;g(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===window.getComputedStyle(e).position&&(r+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===r&&(t=e.offsetHeight)}return t}function S(e,t){if(t=t||0,e){var r,n=e.style.height;return e.style.height="0px",r=t-e.parentNode.offsetHeight,e.style.height=n+"px",r}return t}function x(){return/print-pdf/gi.test(window.location.search)}function q(){xr.hideAddressBar&&wr&&(window.addEventListener("load",M,!1),window.addEventListener("orientationchange",M,!1))}function M(){setTimeout(function(){window.scrollTo(0,1)},10)}function T(e,t){var r=document.createEvent("HTMLEvents",1,2);r.initEvent(e,!0,!0),h(r,t),Cr.wrapper.dispatchEvent(r),xr.postMessageEvents&&window.parent!==window.self&&window.parent.postMessage(JSON.stringify({namespace:"reveal",eventName:e,state:Mt()}),"*")}function N(){if(Pr.transforms3d&&!("msPerspective"in document.body.style))for(var e=Cr.wrapper.querySelectorAll(kr+" a"),t=0,r=e.length;r>t;t++){var n=e[t];if(!(!n.textContent||n.querySelector("*")||n.className&&n.classList.contains(n,"roll"))){var a=document.createElement("span");a.setAttribute("data-title",n.text),a.innerHTML=n.innerHTML,n.classList.add("roll"),n.innerHTML="",n.appendChild(a)}}}function I(){for(var e=Cr.wrapper.querySelectorAll(kr+" a.roll"),t=0,r=e.length;r>t;t++){var n=e[t],a=n.querySelector("span");a&&(n.classList.remove("roll"),n.innerHTML=a.innerHTML)}}function C(e){var t=g(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",ur,!1)})}function P(){var e=g(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",ur,!1)})}function D(e){R(),Cr.overlay=document.createElement("div"),Cr.overlay.classList.add("overlay"),Cr.overlay.classList.add("overlay-preview"),Cr.wrapper.appendChild(Cr.overlay),Cr.overlay.innerHTML=["",'','','',"
"].join(""),Cr.overlay.querySelector("iframe").addEventListener("load",function(){Cr.overlay.classList.add("loaded")},!1),Cr.overlay.querySelector(".close").addEventListener("click",function(e){R(),e.preventDefault()},!1),Cr.overlay.querySelector(".external").addEventListener("click",function(){R()},!1),setTimeout(function(){Cr.overlay.classList.add("visible")},1)}function H(){if(xr.help){R(),Cr.overlay=document.createElement("div"),Cr.overlay.classList.add("overlay"),Cr.overlay.classList.add("overlay-help"),Cr.wrapper.appendChild(Cr.overlay);var e='Keyboard Shortcuts
';e+="KEY | ACTION | ";for(var t in Xr)e+=""+t+" | "+Xr[t]+" |
";e+="
",Cr.overlay.innerHTML=["",'"].join(""),Cr.overlay.querySelector(".close").addEventListener("click",function(e){R(),e.preventDefault()},!1),setTimeout(function(){Cr.overlay.classList.add("visible")},1)}}function R(){Cr.overlay&&(Cr.overlay.parentNode.removeChild(Cr.overlay),Cr.overlay=null)}function W(){if(Cr.wrapper&&!x()){var e=z(),t=20;O(xr.width,xr.height,t),Cr.slides.style.width=e.width+"px",Cr.slides.style.height=e.height+"px",Nr=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),Nr=Math.max(Nr,xr.minScale),Nr=Math.min(Nr,xr.maxScale),1===Nr?(Cr.slides.style.zoom="",Cr.slides.style.left="",Cr.slides.style.top="",Cr.slides.style.bottom="",Cr.slides.style.right="",w({layout:""})):!wr&&/chrome/i.test(navigator.userAgent)&&"undefined"!=typeof Cr.slides.style.zoom?(Cr.slides.style.zoom=Nr,w({layout:""})):(Cr.slides.style.left="50%",Cr.slides.style.top="50%",Cr.slides.style.bottom="auto",Cr.slides.style.right="auto",w({layout:"translate(-50%, -50%) scale("+Nr+")"}));for(var r=g(Cr.wrapper.querySelectorAll(kr)),n=0,a=r.length;a>n;n++){var i=r[n];"none"!==i.style.display&&(i.style.top=xr.center||i.classList.contains("center")?i.classList.contains("stack")?0:Math.max((e.height-E(i))/2-t,0)+"px":"")}ct(),pt()}}function O(e,t){g(Cr.slides.querySelectorAll("section > .stretch")).forEach(function(r){var n=S(r,t);if(/(img|video)/gi.test(r.nodeName)){var a=r.naturalWidth||r.videoWidth,i=r.naturalHeight||r.videoHeight,o=Math.min(e/a,n/i);r.style.width=a*o+"px",r.style.height=i*o+"px"}else r.style.width=e+"px",r.style.height=n+"px"})}function z(e,t){var r={width:xr.width,height:xr.height,presentationWidth:e||Cr.wrapper.offsetWidth,presentationHeight:t||Cr.wrapper.offsetHeight};return r.presentationWidth-=r.presentationHeight*xr.margin,r.presentationHeight-=r.presentationHeight*xr.margin,"string"==typeof r.width&&/%$/.test(r.width)&&(r.width=parseInt(r.width,10)/100*r.presentationWidth),"string"==typeof r.height&&/%$/.test(r.height)&&(r.height=parseInt(r.height,10)/100*r.presentationHeight),r}function F(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function Y(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function X(){xr.overview&&!_()&&(Mr=!0,Cr.wrapper.classList.add("overview"),Cr.wrapper.classList.remove("overview-deactivating"),Pr.overviewTransitions&&setTimeout(function(){Cr.wrapper.classList.add("overview-animated")},1),Ht(),Cr.slides.appendChild(Cr.background),g(Cr.wrapper.querySelectorAll(kr)).forEach(function(e){e.classList.contains("stack")||e.addEventListener("click",dr,!0)}),st(),j(),B(),W(),T("overviewshown",{indexh:hr,indexv:gr,currentSlide:yr}))}function j(){var e=70,t=xr.width+e,r=xr.height+e;xr.rtl&&(t=-t),g(Cr.wrapper.querySelectorAll(Ar)).forEach(function(e,n){e.setAttribute("data-index-h",n),b(e,"translate3d("+n*t+"px, 0, 0)"),e.classList.contains("stack")&&g(e.querySelectorAll("section")).forEach(function(e,t){e.setAttribute("data-index-h",n),e.setAttribute("data-index-v",t),b(e,"translate3d(0, "+t*r+"px, 0)")})}),g(Cr.background.childNodes).forEach(function(e,n){b(e,"translate3d("+n*t+"px, 0, 0)"),g(e.querySelectorAll(".slide-background")).forEach(function(e,t){b(e,"translate3d(0, "+t*r+"px, 0)")})})}function B(){var e=70,t=xr.width+e,r=xr.height+e;xr.rtl&&(t=-t),w({overview:["translateX("+-hr*t+"px)","translateY("+-gr*r+"px)","translateZ("+(window.innerWidth<400?-1e3:-2500)+"px)"].join(" ")})}function U(){xr.overview&&(Mr=!1,Cr.wrapper.classList.remove("overview"),Cr.wrapper.classList.remove("overview-animated"),Cr.wrapper.classList.add("overview-deactivating"),setTimeout(function(){Cr.wrapper.classList.remove("overview-deactivating")},1),Cr.wrapper.appendChild(Cr.background),g(Cr.wrapper.querySelectorAll(kr)).forEach(function(e){b(e,""),e.removeEventListener("click",dr,!0)}),g(Cr.background.querySelectorAll(".slide-background")).forEach(function(e){b(e,"")}),w({overview:""}),rt(hr,gr),W(),Dt(),T("overviewhidden",{indexh:hr,indexv:gr,currentSlide:yr}))}function $(e){"boolean"==typeof e?e?X():U():_()?U():X()}function _(){return Mr}function K(e){return e=e?e:yr,e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function V(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)}function Z(){if(xr.pause){var e=Cr.wrapper.classList.contains("paused");Ht(),Cr.wrapper.classList.add("paused"),e===!1&&T("paused")}}function J(){var e=Cr.wrapper.classList.contains("paused");Cr.wrapper.classList.remove("paused"),Dt(),e&&T("resumed")}function Q(e){"boolean"==typeof e?e?Z():J():G()?J():Z()}function G(){return Cr.wrapper.classList.contains("paused")}function et(e){"boolean"==typeof e?e?Wt():Rt():Fr?Wt():Rt()}function tt(){return!(!Wr||Fr)}function rt(e,t,r,n){mr=yr;var a=Cr.wrapper.querySelectorAll(Ar);void 0!==t||_()||(t=Y(a[e])),mr&&mr.parentNode&&mr.parentNode.classList.contains("stack")&&F(mr.parentNode,gr);var i=Tr.concat();Tr.length=0;var o=hr||0,s=gr||0;hr=ot(Ar,void 0===e?hr:e),gr=ot(Er,void 0===t?gr:t),st(),W();e:for(var c=0,l=Tr.length;l>c;c++){for(var d=0;d0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))})})}function it(){var e=g(Cr.wrapper.querySelectorAll(Ar));e.forEach(function(e){var t=g(e.querySelectorAll("section"));t.forEach(function(e){Nt(e.querySelectorAll(".fragment"))}),0===t.length&&Nt(e.querySelectorAll(".fragment"))})}function ot(e,t){var r=g(Cr.wrapper.querySelectorAll(e)),n=r.length,a=x();if(n){xr.loop&&(t%=n,0>t&&(t=n+t)),t=Math.max(Math.min(t,n-1),0);for(var i=0;n>i;i++){var o=r[i],s=xr.rtl&&!K(o);if(o.classList.remove("past"),o.classList.remove("present"),o.classList.remove("future"),o.setAttribute("hidden",""),o.setAttribute("aria-hidden","true"),o.querySelector("section")&&o.classList.add("stack"),a)o.classList.add("present");else if(t>i){if(o.classList.add(s?"future":"past"),xr.fragments)for(var c=g(o.querySelectorAll(".fragment"));c.length;){var l=c.pop();l.classList.add("visible"),l.classList.remove("current-fragment")}}else if(i>t&&(o.classList.add(s?"past":"future"),xr.fragments))for(var d=g(o.querySelectorAll(".fragment.visible"));d.length;){var u=d.pop();u.classList.remove("visible"),u.classList.remove("current-fragment")}}r[t].classList.add("present"),r[t].removeAttribute("hidden"),r[t].removeAttribute("aria-hidden");var p=r[t].getAttribute("data-state");p&&(Tr=Tr.concat(p.split(" ")))}else t=0;return t}function st(){var e,t,r=g(Cr.wrapper.querySelectorAll(Ar)),n=r.length;if(n&&"undefined"!=typeof hr){var a=_()?10:xr.viewDistance;wr&&(a=_()?6:2),x()&&(a=Number.MAX_VALUE);for(var i=0;n>i;i++){var o=r[i],s=g(o.querySelectorAll("section")),c=s.length;if(e=Math.abs((hr||0)-i)||0,xr.loop&&(e=Math.abs(((hr||0)-i)%(n-a))||0),a>e?ft(o):vt(o),c)for(var l=Y(o),d=0;c>d;d++){var u=s[d];t=Math.abs(i===(hr||0)?(gr||0)-d:d-l),a>e+t?ft(u):vt(u)}}}}function ct(){xr.progress&&Cr.progressbar&&(Cr.progressbar.style.width=wt()*Cr.wrapper.offsetWidth+"px")}function lt(){if(xr.slideNumber&&Cr.slideNumber){var e="c";"string"==typeof xr.slideNumber&&(e=xr.slideNumber);var t=St();Cr.slideNumber.innerHTML=e.replace(/h/g,hr).replace(/v/g,gr).replace(/c/g,Math.round(wt()*t)+1).replace(/t/g,t+1)}}function dt(){var e=ht(),t=gt();Cr.controlsLeft.concat(Cr.controlsRight).concat(Cr.controlsUp).concat(Cr.controlsDown).concat(Cr.controlsPrev).concat(Cr.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Cr.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Cr.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Cr.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Cr.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Cr.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Cr.controlsNext.forEach(function(e){e.classList.add("enabled")}),yr&&(t.prev&&Cr.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Cr.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),K(yr)?(t.prev&&Cr.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Cr.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Cr.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Cr.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}function ut(e){var t=null,r=xr.rtl?"future":"past",n=xr.rtl?"past":"future";if(g(Cr.background.childNodes).forEach(function(a,i){a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),hr>i?a.classList.add(r):i>hr?a.classList.add(n):(a.classList.add("present"),t=a),(e||i===hr)&&g(a.querySelectorAll(".slide-background")).forEach(function(e,r){e.classList.remove("past"),e.classList.remove("present"),e.classList.remove("future"),gr>r?e.classList.add("past"):r>gr?e.classList.add("future"):(e.classList.add("present"),i===hr&&(t=e))})}),br){var a=br.querySelector("video");a&&a.pause()}if(t){var i=t.querySelector("video");i&&(i.currentTime=0,i.play());var o=t.style.backgroundImage||"";/\.gif/i.test(o)&&(t.style.backgroundImage="",window.getComputedStyle(t).opacity,t.style.backgroundImage=o);var s=br?br.getAttribute("data-background-hash"):null,c=t.getAttribute("data-background-hash");c&&c===s&&t!==br&&Cr.background.classList.add("no-transition"),br=t}yr&&["has-light-background","has-dark-background"].forEach(function(e){yr.classList.contains(e)?Cr.wrapper.classList.add(e):Cr.wrapper.classList.remove(e)}),setTimeout(function(){Cr.background.classList.remove("no-transition")},1)}function pt(){if(xr.parallaxBackgroundImage){var e,t,r=Cr.wrapper.querySelectorAll(Ar),n=Cr.wrapper.querySelectorAll(Er),a=Cr.background.style.backgroundSize.split(" ");1===a.length?e=t=parseInt(a[0],10):(e=parseInt(a[0],10),t=parseInt(a[1],10));var i=Cr.background.offsetWidth,o=r.length,s=-(e-i)/(o-1)*hr,c=Cr.background.offsetHeight,l=n.length,d=l>1?-(t-c)/(l-1)*gr:0;Cr.background.style.backgroundPosition=s+"px "+d+"px"}}function ft(e){e.style.display="block",g(e.querySelectorAll("img[data-src], video[data-src], audio[data-src], iframe[data-src]")).forEach(function(e){e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src")}),g(e.querySelectorAll("video, audio")).forEach(function(e){var t=0;g(e.querySelectorAll("source[data-src]")).forEach(function(e){e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),t+=1}),t>0&&e.load()});var t=Et(e),r=qt(t.h,t.v);if(r&&(r.style.display="block",r.hasAttribute("data-loaded")===!1)){r.setAttribute("data-loaded","true");var n=e.getAttribute("data-background-image"),a=e.getAttribute("data-background-video"),i=e.getAttribute("data-background-iframe");if(n)r.style.backgroundImage="url("+n+")";else if(a&&!Lt()){var o=document.createElement("video");a.split(",").forEach(function(e){o.innerHTML+='