diff --git a/dist/reveal.min.js b/dist/reveal.min.js index ad391c8..b957ef1 100644 --- a/dist/reveal.min.js +++ b/dist/reveal.min.js @@ -1,8 +1,8 @@ /*! -* reveal.js 4.0.0-dev (Fri Mar 06 2020) +* reveal.js 4.0.0-dev (Sat Mar 07 2020) * https://revealjs.com * MIT licensed * * Copyright (C) 2020 Hakim El Hattab, https://hakim.se */ -!function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,a){"use strict";a.r(t);class r{constructor(e,t){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=e,this.progressCheck=t,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()}setPlaying(e){const t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()}animate(){const 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))}render(){let e=this.playing?this.progress:0,t=this.diameter2-this.thickness,a=this.diameter2,r=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);const n=-Math.PI/2+e*(2*Math.PI),i=-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(a,r,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(a,r,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(a,r,t,i,n,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(a-14,r-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()}on(e,t){this.canvas.addEventListener(e,t,!1)}off(e,t){this.canvas.removeEventListener(e,t,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}window.Reveal=function(){let e;const t=navigator.userAgent,a=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener/;let n,i,o,s,l,d,c,u,p,f={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:[]},h=!1,g=!1,m=!1,v=null,b=null,y=!1,w=!1,A=[],k=1,E={layout:"",overview:""},S={},L={},x=[],M={},N=0,q=0,I=!1,P=0,T=!1,C=0,O=0,D=0,R=-1,B=!1,H={startX:0,startY:0,startCount:0,captured:!1,threshold:40},z={},j={};function $(){let e=Object.keys(L).length;if(0===e)W();else{let t=()=>{0==--e&&W()};for(let e in L){let a=L[e];if("function"==typeof a.init){let e=a.init();e&&"function"==typeof e.then?e.then(t):t()}else t()}}}function W(){x.length&&x.forEach(e=>{F(e.src,e.callback)}),g=!0,S.slides.classList.add("no-transition"),d?S.wrapper.classList.add("no-hover"):S.wrapper.classList.remove("no-hover"),/iphone/gi.test(t)?S.wrapper.classList.add("ua-iphone"):S.wrapper.classList.remove("ua-iphone"),S.background=X(S.wrapper,"div","backgrounds",null),S.progress=X(S.wrapper,"div","progress",""),S.progressbar=S.progress.querySelector("span"),S.controls=X(S.wrapper,"aside","controls",`\n\t\t\t\n\t\t\t\n\t\t\t`),S.slideNumber=X(S.wrapper,"div","slide-number",""),S.speakerNotes=X(S.wrapper,"div","speaker-notes",null),S.speakerNotes.setAttribute("data-prevent-swipe",""),S.speakerNotes.setAttribute("tabindex","0"),S.pauseOverlay=X(S.wrapper,"div","pause-overlay",f.controls?'':null),S.wrapper.setAttribute("role","application"),S.controlsLeft=G(document.querySelectorAll(".navigate-left")),S.controlsRight=G(document.querySelectorAll(".navigate-right")),S.controlsUp=G(document.querySelectorAll(".navigate-up")),S.controlsDown=G(document.querySelectorAll(".navigate-down")),S.controlsPrev=G(document.querySelectorAll(".navigate-prev")),S.controlsNext=G(document.querySelectorAll(".navigate-next")),S.controlsRightArrow=S.controls.querySelector(".navigate-right"),S.controlsLeftArrow=S.controls.querySelector(".navigate-left"),S.controlsDownArrow=S.controls.querySelector(".navigate-down"),S.statusDiv=function(){let 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"),S.wrapper.appendChild(e)),e}(),f.postMessage&&window.addEventListener("message",t=>{const r=t.data;if("string"==typeof r&&"{"===r.charAt(0)&&"}"===r.charAt(r.length-1)&&(r=JSON.parse(r),r.method&&"function"==typeof e[r.method]))if(!1===a.test(r.method)){var n=e[r.method].apply(e,r.args);le("callback",{method:r.method,result:n})}else console.warn('reveal.js: "'+r.method+'" is is blacklisted from the postMessage API')},!1),setInterval(()=>{0===S.wrapper.scrollTop&&0===S.wrapper.scrollLeft||(S.wrapper.scrollTop=0,S.wrapper.scrollLeft=0)},1e3),gt().forEach((function(e){G(e.querySelectorAll("section")).forEach((e,t)=>{t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))})})),_(),ut(),Ve(!0),setTimeout(()=>{S.slides.classList.remove("no-transition"),S.wrapper.classList.add("ready"),se("ready",{indexh:n,indexv:i,currentSlide:s})},1),oe()&&(Q(),"complete"===document.readyState?V():window.addEventListener("load",V))}function F(e,t){const a=document.createElement("script");a.type="text/javascript",a.async=!1,a.defer=!1,a.src=e,t&&(a.onload=a.onreadystatechange=e=>{("load"===e.type||/loaded|complete/.test(a.readyState))&&(a.onload=a.onreadystatechange=a.onerror=null,t())},a.onerror=e=>{a.onload=a.onreadystatechange=a.onerror=null,t(new Error("Failed loading script: "+a.src+"\n"+e))});const r=document.querySelector("head");r.insertBefore(a,r.lastChild)}function U(e){let t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){let a=e.getAttribute("aria-hidden"),r="none"===window.getComputedStyle(e).display;"true"===a||r||G(e.childNodes).forEach(e=>{t+=U(e)})}return t.trim()}function V(){var e=me(window.innerWidth,window.innerHeight),t=Math.floor(e.width*(1+f.margin)),a=Math.floor(e.height*(1+f.margin)),r=e.width,n=e.height;re("@page{size:"+t+"px "+a+"px; margin: 0px;}"),re(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+r+"px; max-height:"+n+"px}"),document.body.classList.add("print-pdf"),document.body.style.width=t+"px",document.body.style.height=a+"px",ge(r,n);var i=f.slideNumber&&/all|print/i.test(f.showSlideNumber);G(S.wrapper.querySelectorAll(".slides section")).forEach((function(e){e.setAttribute("data-slide-number",Fe(e))})),G(S.wrapper.querySelectorAll(".slides section")).forEach((function(e){if(!1===e.classList.contains("stack")){var o=(t-r)/2,s=(a-n)/2,l=e.scrollHeight,d=Math.max(Math.ceil(l/a),1);(1===(d=Math.min(d,f.pdfMaxPagesPerSlide))&&f.center||e.classList.contains("center"))&&(s=Math.max((a-l)/2,0));var c=document.createElement("div");if(c.className="pdf-page",c.style.height=(a+f.pdfPageHeightOffset)*d+"px",e.parentNode.insertBefore(c,e),c.appendChild(e),e.style.left=o+"px",e.style.top=s+"px",e.style.width=r+"px",e.slideBackgroundElement&&c.insertBefore(e.slideBackgroundElement,e),f.showNotes){var u=kt(e);if(u){var p="string"==typeof f.showNotes?f.showNotes:"inline",h=document.createElement("div");h.classList.add("speaker-notes"),h.classList.add("speaker-notes-pdf"),h.setAttribute("data-layout",p),h.innerHTML=u,"separate-page"===p?c.parentNode.insertBefore(h,c.nextSibling):(h.style.left="8px",h.style.bottom="8px",h.style.width=t-16+"px",c.appendChild(h))}}if(i){var g=document.createElement("div");g.classList.add("slide-number"),g.classList.add("slide-number-pdf"),g.innerHTML=e.getAttribute("data-slide-number"),c.appendChild(g)}if(f.pdfSeparateFragments){var m,v,b=St(c.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")}));var t=c.cloneNode(!0);c.parentNode.insertBefore(t,(v||c).nextSibling),m=e,v=t})),b.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else G(c.querySelectorAll(".fragment:not(.fade-out)")).forEach((function(e){e.classList.add("visible")}))}})),se("pdf-ready")}function X(e,t,a,r=""){let n=e.querySelectorAll("."+a);for(let t=0;t1&&f.autoSlide&&f.autoSlideStoppable&&(p=new r(S.wrapper,()=>Math.min(Math.max((Date.now()-R)/O,0),1)),p.on("click",da),B=!1),!1===f.fragments&&G(S.slides.querySelectorAll(".fragment")).forEach(e=>{e.classList.add("visible"),e.classList.remove("current-fragment")});let n="none";f.slideNumber&&!oe()&&("all"===f.showSlideNumber||"speaker"===f.showSlideNumber&&ct())&&(n="block"),S.slideNumber.style.display=n,"default"!==f.navigationMode?S.wrapper.setAttribute("data-navigation-mode",f.navigationMode):S.wrapper.removeAttribute("data-navigation-mode"),"linear"===f.navigationMode?(z["→ , ↓ , SPACE , N , L , J"]="Next slide",z["← , ↑ , P , H , K"]="Previous slide"):(z["N , SPACE"]="Next slide",z.P="Previous slide",z["← , H"]="Navigate left",z["→ , L"]="Navigate right",z["↑ , K"]="Navigate up",z["↓ , J"]="Navigate down"),z["Home , Shift ←"]="First slide",z["End , Shift →"]="Last slide",z["B , ."]="Pause",z.F="Fullscreen",z["ESC, O"]="Slide overview",De()}function J(){T=!0,window.addEventListener("hashchange",na,!1),window.addEventListener("resize",ia,!1),f.touch&&("onpointerdown"in window?(S.wrapper.addEventListener("pointerdown",Yt,!1),S.wrapper.addEventListener("pointermove",Kt,!1),S.wrapper.addEventListener("pointerup",_t,!1)):window.navigator.msPointerEnabled?(S.wrapper.addEventListener("MSPointerDown",Yt,!1),S.wrapper.addEventListener("MSPointerMove",Kt,!1),S.wrapper.addEventListener("MSPointerUp",_t,!1)):(S.wrapper.addEventListener("touchstart",Ut,!1),S.wrapper.addEventListener("touchmove",Vt,!1),S.wrapper.addEventListener("touchend",Xt,!1))),f.keyboard&&(document.addEventListener("keydown",Ft,!1),document.addEventListener("keypress",Wt,!1)),f.progress&&S.progress&&S.progress.addEventListener("click",Qt,!1),S.pauseOverlay.addEventListener("click",Ie,!1),f.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",oa,!1);let e=["touchstart","click"];t.match(/android/gi)&&(e=["touchstart"]),e.forEach((function(e){S.controlsLeft.forEach((function(t){t.addEventListener(e,Zt,!1)})),S.controlsRight.forEach((function(t){t.addEventListener(e,Gt,!1)})),S.controlsUp.forEach((function(t){t.addEventListener(e,ea,!1)})),S.controlsDown.forEach((function(t){t.addEventListener(e,ta,!1)})),S.controlsPrev.forEach((function(t){t.addEventListener(e,aa,!1)})),S.controlsNext.forEach((function(t){t.addEventListener(e,ra,!1)}))}))}function Q(){T=!1,document.removeEventListener("keydown",Ft,!1),document.removeEventListener("keypress",Wt,!1),window.removeEventListener("hashchange",na,!1),window.removeEventListener("resize",ia,!1),S.wrapper.removeEventListener("pointerdown",Yt,!1),S.wrapper.removeEventListener("pointermove",Kt,!1),S.wrapper.removeEventListener("pointerup",_t,!1),S.wrapper.removeEventListener("MSPointerDown",Yt,!1),S.wrapper.removeEventListener("MSPointerMove",Kt,!1),S.wrapper.removeEventListener("MSPointerUp",_t,!1),S.wrapper.removeEventListener("touchstart",Ut,!1),S.wrapper.removeEventListener("touchmove",Vt,!1),S.wrapper.removeEventListener("touchend",Xt,!1),S.pauseOverlay.removeEventListener("click",Ie,!1),f.progress&&S.progress&&S.progress.removeEventListener("click",Qt,!1),["touchstart","click"].forEach((function(e){S.controlsLeft.forEach((function(t){t.removeEventListener(e,Zt,!1)})),S.controlsRight.forEach((function(t){t.removeEventListener(e,Gt,!1)})),S.controlsUp.forEach((function(t){t.removeEventListener(e,ea,!1)})),S.controlsDown.forEach((function(t){t.removeEventListener(e,ta,!1)})),S.controlsPrev.forEach((function(t){t.removeEventListener(e,aa,!1)})),S.controlsNext.forEach((function(t){t.removeEventListener(e,ra,!1)}))}))}function Z(e,t){for(var a in t)e[a]=t[a];return e}function G(e){return Array.prototype.slice.call(e)}function ee(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 te(e,t){e.style.transform=t}function ae(e){"string"==typeof e.layout&&(E.layout=e.layout),"string"==typeof e.overview&&(E.overview=e.overview),E.layout?te(S.slides,E.layout+" "+E.overview):te(S.slides,E.overview)}function re(e){let 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 ne(e,t){let a=e.parentNode;for(;a;){let e=a.matches||a.matchesSelector||a.msMatchesSelector;if(e&&e.call(a,t))return a;a=a.parentNode}return null}function ie(e){let 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)};let a=e.match(/^#([0-9a-f]{6})$/i);if(a&&a[1])return a=a[1],{r:parseInt(a.substr(0,2),16),g:parseInt(a.substr(2,2),16),b:parseInt(a.substr(4,2),16)};let r=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(r)return{r:parseInt(r[1],10),g:parseInt(r[2],10),b:parseInt(r[3],10)};let n=e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return n?{r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10),a:parseFloat(n[4])}:null}function oe(){return/print-pdf/gi.test(window.location.search)}function se(e,t){let a=document.createEvent("HTMLEvents",1,2);a.initEvent(e,!0,!0),Z(a,t),S.wrapper.dispatchEvent(a),le(e)}function le(e,t){if(f.postMessageEvents&&window.parent!==window.self){let a={namespace:"reveal",eventName:e,state:Et()};Z(a,t),window.parent.postMessage(JSON.stringify(a),"*")}}function de(e="a"){G(document.querySelectorAll(e)).forEach(e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",la,!1)})}function ce(e="a"){G(document.querySelectorAll(e)).forEach(e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",la,!1)})}function ue(e){"boolean"==typeof e?e?pe():fe():S.overlay?fe():pe()}function pe(){if(f.help){fe(),S.overlay=document.createElement("div"),S.overlay.classList.add("overlay"),S.overlay.classList.add("overlay-help"),S.wrapper.appendChild(S.overlay);let a='

Keyboard Shortcuts


';for(var e in a+="",z)a+=``;for(var t in j)j[t].key&&j[t].description&&(a+=``);a+="
KEYACTION
${e}${z[e]}
${j[t].key}${j[t].description}
",S.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
${a}
\n\t\t\t\t
\n\t\t\t`,S.overlay.querySelector(".close").addEventListener("click",(function(e){fe(),e.preventDefault()}),!1)}}function fe(){S.overlay&&(S.overlay.parentNode.removeChild(S.overlay),S.overlay=null)}function he(){if(S.wrapper&&!oe()){if(!f.disableLayout){d&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");const a=me(),r=k;ge(f.width,f.height),S.slides.style.width=a.width+"px",S.slides.style.height=a.height+"px",k=Math.min(a.presentationWidth/a.width,a.presentationHeight/a.height),k=Math.max(k,f.minScale),k=Math.min(k,f.maxScale),1===k?(S.slides.style.zoom="",S.slides.style.left="",S.slides.style.top="",S.slides.style.bottom="",S.slides.style.right="",ae({layout:""})):k>1&&M.zoom&&window.devicePixelRatio<2?(S.slides.style.zoom=k,S.slides.style.left="",S.slides.style.top="",S.slides.style.bottom="",S.slides.style.right="",ae({layout:""})):(S.slides.style.zoom="",S.slides.style.left="50%",S.slides.style.top="50%",S.slides.style.bottom="auto",S.slides.style.right="auto",ae({layout:"translate(-50%, -50%) scale("+k+")"}));const n=G(S.wrapper.querySelectorAll(".slides section"));for(var e=0,t=n.length;e .stretch")).forEach(a=>{var r=function(e,t=0){if(e){let a,r=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",a=t-e.parentNode.offsetHeight,e.style.height=r+"px",e.parentNode.style.removeProperty("height"),a}return t}(a,t);if(/(img|video)/gi.test(a.nodeName)){const t=a.naturalWidth||a.videoWidth,n=a.naturalHeight||a.videoHeight,i=Math.min(e/t,r/n);a.style.width=t*i+"px",a.style.height=n*i+"px"}else a.style.width=e+"px",a.style.height=r+"px"})}function me(e,t){const a={width:f.width,height:f.height,presentationWidth:e||S.wrapper.offsetWidth,presentationHeight:t||S.wrapper.offsetHeight};return a.presentationWidth-=a.presentationWidth*f.margin,a.presentationHeight-=a.presentationHeight*f.margin,"string"==typeof a.width&&/%$/.test(a.width)&&(a.width=parseInt(a.width,10)/100*a.presentationWidth),"string"==typeof a.height&&/%$/.test(a.height)&&(a.height=parseInt(a.height,10)/100*a.presentationHeight),a}function ve(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function be(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){const t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function ye(){if(f.overview&&!Se()){m=!0,S.wrapper.classList.add("overview"),It(),S.slides.appendChild(S.background),G(S.wrapper.querySelectorAll(".slides section")).forEach(e=>{e.classList.contains("stack")||e.addEventListener("click",sa,!0)});const e=70,t=me();v=t.width+e,b=t.height+e,f.rtl&&(v=-v),ze(),we(),Ae(),he(),se("overviewshown",{indexh:n,indexv:i,currentSlide:s})}}function we(){G(S.wrapper.querySelectorAll(".slides>section")).forEach((e,t)=>{e.setAttribute("data-index-h",t),te(e,"translate3d("+t*v+"px, 0, 0)"),e.classList.contains("stack")&&G(e.querySelectorAll("section")).forEach((e,a)=>{e.setAttribute("data-index-h",t),e.setAttribute("data-index-v",a),te(e,"translate3d(0, "+a*b+"px, 0)")})}),G(S.background.childNodes).forEach((e,t)=>{te(e,"translate3d("+t*v+"px, 0, 0)"),G(e.querySelectorAll(".slide-background")).forEach((e,t)=>{te(e,"translate3d(0, "+t*b+"px, 0)")})})}function Ae(){const e=Math.min(window.innerWidth,window.innerHeight);ae({overview:["scale("+Math.max(e/5,150)/e+")","translateX("+-n*v+"px)","translateY("+-i*b+"px)"].join(" ")})}function ke(){f.overview&&(m=!1,S.wrapper.classList.remove("overview"),S.wrapper.classList.add("overview-deactivating"),setTimeout(()=>{S.wrapper.classList.remove("overview-deactivating")},1),S.wrapper.appendChild(S.background),G(S.wrapper.querySelectorAll(".slides section")).forEach(e=>{te(e,""),e.removeEventListener("click",sa,!0)}),G(S.background.querySelectorAll(".slide-background")).forEach(e=>{te(e,"")}),ae({overview:""}),Oe(n,i),he(),qt(),se("overviewhidden",{indexh:n,indexv:i,currentSlide:s}))}function Ee(e){"boolean"==typeof e?e?ye():ke():Se()?ke():ye()}function Se(){return m}function Le(e){let t="/",a=e||s,r=a?a.getAttribute("id"):null;r&&(r=encodeURIComponent(r));let n=ft(e);if(f.fragmentInURL||(n.f=void 0),"string"==typeof r&&r.length&&void 0===n.f)t="/"+r;else{let e=f.hashOneBasedIndex?1:0;(n.h>0||n.v>0||void 0!==n.f)&&(t+=n.h+e),(n.v>0||void 0!==n.f)&&(t+="/"+(n.v+e)),void 0!==n.f&&(t+="/"+n.f)}return t}function xe(e=s){return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function Me(){I&&(I=!1,S.wrapper.style.cursor="")}function Ne(){!1===I&&(I=!0,S.wrapper.style.cursor="none")}function qe(){if(f.pause){const e=S.wrapper.classList.contains("paused");It(),S.wrapper.classList.add("paused"),!1===e&&se("paused")}}function Ie(){const e=S.wrapper.classList.contains("paused");S.wrapper.classList.remove("paused"),qt(),e&&se("resumed")}function Pe(e){"boolean"==typeof e?e?qe():Ie():Te()?Ie():qe()}function Te(){return S.wrapper.classList.contains("paused")}function Ce(e){"boolean"==typeof e?e?Tt():Pt():B?Tt():Pt()}function Oe(t,a,r,l){o=s;const d=S.wrapper.querySelectorAll(".slides>section");if(0===d.length)return;void 0!==a||Se()||(a=be(d[t])),o&&o.parentNode&&o.parentNode.classList.contains("stack")&&ve(o.parentNode,i);const c=A.concat();A.length=0;let p=n||0,h=i||0;n=He(".slides>section",void 0===t?n:t),i=He(".slides>section.present>section",void 0===a?i:a),ze(),he(),Se()&&Ae();let g=d[n],m=g.querySelectorAll("section");s=m[i]||g,void 0!==r&&xt(r);let v=n!==p||i!==h;v||(o=null),o&&o!==s&&(o.classList.remove("present"),o.setAttribute("aria-hidden","true"),e.isFirstSlide()&&setTimeout(()=>{G(S.wrapper.querySelectorAll(".slides>section.stack")).forEach(e=>{ve(e,0)})},0));e:for(let e=0,t=A.length;e{S.slides.classList.remove("disable-slide-transitions")},0),f.autoAnimate&&function(t,a){Ye(),u&&u.parentNode&&(u.parentNode.removeChild(u),u=null);if(t.hasAttribute("data-auto-animate")&&a.hasAttribute("data-auto-animate")){u=u||document.createElement("style"),u.type="text/css",document.head.appendChild(u);let r=Ke(a);t.dataset.autoAnimate="pending",a.dataset.autoAnimate="pending";let n=function(e,t){let a=("function"==typeof f.autoAnimateMatcher?f.autoAnimateMatcher:Je)(e,t),r=[];return a.filter((e,t)=>{if(-1===r.indexOf(e.to))return r.push(e.to),!0})}(t,a).map((function(t){return function(t,a,r,n,i){t.dataset.autoAnimateTarget="",a.dataset.autoAnimateTarget=i;let o=Ke(a,n);void 0!==r.delay&&(o.delay=r.delay);void 0!==r.duration&&(o.duration=r.duration);void 0!==r.easing&&(o.easing=r.easing);let s=_e("from",t,r),l=_e("to",a,r);if(!1!==r.translate||!1!==r.scale){let t=e.getScale(),a={x:(s.x-l.x)/t,y:(s.y-l.y)/t,scaleX:s.width/l.width,scaleY:s.height/l.height};a.x=Math.round(1e3*a.x)/1e3,a.y=Math.round(1e3*a.y)/1e3,a.scaleX=Math.round(1e3*a.scaleX)/1e3,a.scaleX=Math.round(1e3*a.scaleX)/1e3;let n=!1!==r.translate&&(0!==a.x||0!==a.y),i=!1!==r.scale&&(0!==a.scaleX||0!==a.scaleY);if(n||i){let e=[];n&&e.push(`translate(${a.x}px, ${a.y}px)`),i&&e.push(`scale(${a.scaleX}, ${a.scaleY})`),s.styles.transform=e.join(" "),s.styles["transform-origin"]="top left",l.styles.transform="none"}}for(let e in l.styles){const t=l.styles[e],a=s.styles[e];t===a?delete l.styles[e]:(!0===t.explicitValue&&(l.styles[e]=t.value),!0===a.explicitValue&&(s.styles[e]=a.value))}let d="",c=Object.keys(l.styles);if(c.length>0){s.styles.transition="none",l.styles.transition=`all ${o.duration}s ${o.easing} ${o.delay}s`,l.styles["transition-property"]=c.join(", "),l.styles["will-change"]=c.join(", ");let e=Object.keys(s.styles).map((function(e){return e+": "+s.styles[e]+" !important;"})).join(""),t=Object.keys(l.styles).map((function(e){return e+": "+l.styles[e]+" !important;"})).join("");d='[data-auto-animate-target="'+i+'"] {'+e+'}[data-auto-animate="running"] [data-auto-animate-target="'+i+'"] {'+t+"}"}return d}(t.from,t.to,t.options||{},r,C++)}));"false"!==a.dataset.autoAnimateUnmatched&&!0===f.autoAnimateUnmatched&&(function e(t){return[].slice.call(t.children).reduce((t,a)=>{const r=a.querySelector("[data-auto-animate-target]");return a.hasAttribute("data-auto-animate-target")||r||t.push(a),a.querySelector("[data-auto-animate-target]")&&(t=t.concat(e(a))),t},[])}(a).forEach((function(e){e.dataset.autoAnimateTarget="unmatched"})),n.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${.8*r.duration}s ease ${.2*r.duration}s; }`)),u.innerHTML=n.join(""),requestAnimationFrame(()=>{u&&(getComputedStyle(u).fontWeight,a.dataset.autoAnimate="running")}),se("autoanimate",{fromSlide:t,toSlide:a,sheet:u})}}(o,s))}function De(){Q(),J(),he(),O=f.autoSlide,qt(),oe(),S.background.innerHTML="",S.background.classList.add("no-transition"),G(S.wrapper.querySelectorAll(".slides>section")).forEach(e=>{let t=Y(e,S.background);G(e.querySelectorAll("section")).forEach(e=>{Y(e,t),t.classList.add("stack")})}),f.parallaxBackgroundImage?(S.background.style.backgroundImage='url("'+f.parallaxBackgroundImage+'")',S.background.style.backgroundSize=f.parallaxBackgroundSize,S.background.style.backgroundRepeat=f.parallaxBackgroundRepeat,S.background.style.backgroundPosition=f.parallaxBackgroundPosition,setTimeout(()=>{S.wrapper.classList.add("has-parallax-background")},1)):(S.background.style.backgroundImage="",S.wrapper.classList.remove("has-parallax-background")),pt(),gt().forEach(e=>{let t=G(e.querySelectorAll("section"));t.forEach((e,t)=>{St(e.querySelectorAll(".fragment"))}),0===t.length&&St(e.querySelectorAll(".fragment"))}),Ue(),$e(),We(),ze(),Ve(!0),f.showNotes&&S.slides.querySelectorAll("[data-notes], aside.notes").length>0?S.wrapper.classList.add("show-notes"):S.wrapper.classList.remove("show-notes"),je(),function(){let e=(e,t,a)=>{G(S.slides.querySelectorAll("iframe["+e+'*="'+t+'"]')).forEach(t=>{var r=t.getAttribute(e);r&&-1===r.indexOf(a)&&t.setAttribute(e,r+(/\?/.test(r)?"&":"?")+a)})};e("src","youtube.com/embed/","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","player.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1")}(),!1===f.autoPlayMedia?st(s,{unloadIframes:!1}):nt(s),Se()&&we()}function Re(e=s){return St(e.querySelectorAll(".fragment"))}function Be(){gt().forEach((e,t,a)=>{S.slides.insertBefore(e,a[Math.floor(Math.random()*a.length)])})}function He(e,t){let a=G(S.wrapper.querySelectorAll(e)),r=a.length,n=oe();if(r){f.loop&&(t%=r)<0&&(t=r+t),t=Math.max(Math.min(t,r-1),0);for(let e=0;e{e.classList.add("visible"),e.classList.remove("current-fragment")})):e>t&&(r.classList.add(i?"past":"future"),f.fragments&&G(r.querySelectorAll(".fragment.visible")).forEach(e=>{e.classList.remove("visible","current-fragment")}))}a[t].classList.add("present"),a[t].removeAttribute("hidden"),a[t].removeAttribute("aria-hidden");let e=a[t].getAttribute("data-state");e&&(A=A.concat(e.split(" ")))}else t=0;return t}function ze(){let e,t,a=gt(),r=a.length;if(r&&void 0!==n){let o=Se()?10:f.viewDistance;d&&(o=Se()?6:f.mobileViewDistance),oe()&&(o=Number.MAX_VALUE);for(let s=0;sNo notes on this slide.')}function $e(){f.progress&&S.progressbar&&(S.progressbar.style.width=dt()*S.wrapper.offsetWidth+"px")}function We(){f.slideNumber&&S.slideNumber&&(S.slideNumber.innerHTML=Fe())}function Fe(e=s){let t,a="h.v";if("function"==typeof f.slideNumber)t=f.slideNumber(e);else switch("string"==typeof f.slideNumber&&(a=f.slideNumber),/c/.test(a)||1!==S.wrapper.querySelectorAll(".slides>section").length||(a="c"),t=[],a){case"c":t.push(lt(e)+1);break;case"c/t":t.push(lt(e)+1,"/",yt());break;default:let r=ft(e);t.push(r.h+1);let n="h/v"===a?"/":".";xe(e)&&t.push(n,r.v+1)}let r="#"+Le(e);return function(e,t,a,r="#"+Le()){return"number"!=typeof a||isNaN(a)?`\n\t\t\t\t\t${e}\n\t\t\t\t\t`:`\n\t\t\t\t\t${e}\n\t\t\t\t\t${t}\n\t\t\t\t\t${a}\n\t\t\t\t\t`}(t[0],t[1],t[2],r)}function Ue(){let e=at(),t=rt();[...S.controlsLeft,...S.controlsRight,...S.controlsUp,...S.controlsDown,...S.controlsPrev,...S.controlsNext].forEach(e=>{e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")}),e.left&&S.controlsLeft.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.right&&S.controlsRight.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.up&&S.controlsUp.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.down&&S.controlsDown.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.left||e.up)&&S.controlsPrev.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.right||e.down)&&S.controlsNext.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),s&&(t.prev&&S.controlsPrev.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),t.next&&S.controlsNext.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),xe(s)?(t.prev&&S.controlsUp.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),t.next&&S.controlsDown.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})):(t.prev&&S.controlsLeft.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),t.next&&S.controlsRight.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))),f.controlsTutorial&&(!w&&e.down?S.controlsDownArrow.classList.add("highlight"):(S.controlsDownArrow.classList.remove("highlight"),f.rtl?!y&&e.left&&0===i?S.controlsLeftArrow.classList.add("highlight"):S.controlsLeftArrow.classList.remove("highlight"):!y&&e.right&&0===i?S.controlsRightArrow.classList.add("highlight"):S.controlsRightArrow.classList.remove("highlight")))}function Ve(e=!1){let t=null,a=f.rtl?"future":"past",r=f.rtl?"past":"future";if(G(S.background.childNodes).forEach((o,s)=>{o.classList.remove("past","present","future"),sn?o.classList.add(r):(o.classList.add("present"),t=o),(e||s===n)&&G(o.querySelectorAll(".slide-background")).forEach((e,a)=>{e.classList.remove("past","present","future"),ai?e.classList.add("future"):(e.classList.add("present"),s===n&&(t=e))})}),l&&st(l,{unloadIframes:!Ge(l)}),t){nt(t);let e=t.querySelector(".slide-background-content");if(e){let t=e.style.backgroundImage||"";/\.gif/i.test(t)&&(e.style.backgroundImage="",window.getComputedStyle(e).opacity,e.style.backgroundImage=t)}let a=l?l.getAttribute("data-background-hash"):null,r=t.getAttribute("data-background-hash");r&&r===a&&t!==l&&S.background.classList.add("no-transition"),l=t}s&&["has-light-background","has-dark-background"].forEach(e=>{s.classList.contains(e)?S.wrapper.classList.add(e):S.wrapper.classList.remove(e)}),setTimeout(()=>{S.background.classList.remove("no-transition")},1)}function Xe(){if(f.parallaxBackgroundImage){let e,t,a=gt(),r=mt(),o=S.background.style.backgroundSize.split(" ");1===o.length?e=t=parseInt(o[0],10):(e=parseInt(o[0],10),t=parseInt(o[1],10));let s,l,d=S.background.offsetWidth,c=a.length;s="number"==typeof f.parallaxBackgroundHorizontal?f.parallaxBackgroundHorizontal:c>1?(e-d)/(c-1):0,l=s*n*-1;let u,p,h=S.background.offsetHeight,g=r.length;u="number"==typeof f.parallaxBackgroundVertical?f.parallaxBackgroundVertical:(t-h)/(g-1),p=g>0?u*i:0,S.background.style.backgroundPosition=l+"px "+-p+"px"}}function Ye(){G(S.wrapper.querySelectorAll("[data-auto-animate-target]")).forEach(e=>{delete e.dataset.autoAnimateTarget})}function Ke(e,t){let a={easing:f.autoAnimateEasing,duration:f.autoAnimateDuration,delay:0};if(a=Z(a,t),e.closest&&e.parentNode){let t=e.parentNode.closest("[data-auto-animate-target]");t&&(a=Ke(t,a))}return e.dataset.autoAnimateEasing&&(a.easing=e.dataset.autoAnimateEasing),e.dataset.autoAnimateDuration&&(a.duration=parseFloat(e.dataset.autoAnimateDuration)),e.dataset.autoAnimateDelay&&(a.delay=parseFloat(e.dataset.autoAnimateDelay)),a}function _e(e,t,a){let r={styles:[]};if(!1!==a.translate||!1!==a.scale){let e;e="function"==typeof a.measure?a.measure(t):t.getBoundingClientRect(),r.x=e.x,r.y=e.y,r.width=e.width,r.height=e.height}const n=getComputedStyle(t);return(a.styles||f.autoAnimateStyles).forEach(t=>{let a;"string"==typeof t&&(t={property:t}),a=void 0!==t.from&&"from"===e?{value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?{value:t.to,explicitValue:!0}:n[t.property],""!==a&&(r.styles[t.property]=a)}),r}function Je(e,t){let a=[];const r="h1, h2, h3, h4, h5, h6, p, li";return Ze(a,e,t,"[data-id]",e=>e.nodeName+":::"+e.getAttribute("data-id")),Ze(a,e,t,r,e=>e.nodeName+":::"+e.innerText),Ze(a,e,t,"img, video, iframe",e=>e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src"))),Ze(a,e,t,"pre",e=>e.nodeName+":::"+e.innerText),a.forEach(e=>{e.from.matches(r)?e.options={scale:!1}:e.from.matches("pre")&&(e.options={scale:!1,styles:["width","height"]},Ze(a,e.from,e.to,".hljs .hljs-ln-code",e=>e.textContent,{scale:!1,styles:[],measure:Qe}),Ze(a,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",e=>e.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:Qe}))}),a}function Qe(t){const a=e.getScale();return{x:Math.round(t.offsetLeft*a*100)/100,y:Math.round(t.offsetTop*a*100)/100,width:Math.round(t.offsetWidth*a*100)/100,height:Math.round(t.offsetHeight*a*100)/100}}function Ze(e,t,a,r,n,i){let o={},s={};[].slice.call(t.querySelectorAll(r)).forEach((e,t)=>{const a=n(e);"string"==typeof a&&a.length&&(o[a]=o[a]||[],o[a].push(e))}),[].slice.call(a.querySelectorAll(r)).forEach((t,a)=>{const r=n(t);let l;if(s[r]=s[r]||[],s[r].push(t),o[r]){const e=s[r].length-1,t=o[r].length-1;o[r][e]?(l=o[r][e],o[r][e]=null):o[r][t]&&(l=o[r][t],o[r][t]=null)}l&&e.push({from:l,to:t,options:i})})}function Ge(e){let t=f.preloadIframes;return"boolean"!=typeof t&&(t=e.hasAttribute("data-preload")),t}function et(e,t={}){e.style.display=f.display,G(e.querySelectorAll("img[data-src], video[data-src], audio[data-src], iframe[data-src]")).forEach(e=>{("IFRAME"!==e.tagName||Ge(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))}),G(e.querySelectorAll("video, audio")).forEach(e=>{var t=0;G(e.querySelectorAll("source[data-src]")).forEach(e=>{e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1}),t>0&&e.load()});let a=e.slideBackgroundElement;if(a){a.style.display="block";let r=e.slideBackgroundContentElement,n=e.getAttribute("data-background-iframe");if(!1===a.hasAttribute("data-loaded")){a.setAttribute("data-loaded","true");let i=e.getAttribute("data-background-image"),o=e.getAttribute("data-background-video"),s=e.hasAttribute("data-background-video-loop"),l=e.hasAttribute("data-background-video-muted");if(i)r.style.backgroundImage="url("+encodeURI(i)+")";else if(o&&!ct()){let e=document.createElement("video");s&&e.setAttribute("loop",""),l&&(e.muted=!0),d&&(e.muted=!0,e.autoplay=!0,e.setAttribute("playsinline","")),o.split(",").forEach(t=>{e.innerHTML+=''}),r.appendChild(e)}else if(n&&!0!==t.excludeIframes){let e=document.createElement("iframe");e.setAttribute("allowfullscreen",""),e.setAttribute("mozallowfullscreen",""),e.setAttribute("webkitallowfullscreen",""),e.setAttribute("allow","autoplay"),e.setAttribute("data-src",n),e.style.width="100%",e.style.height="100%",e.style.maxHeight="100%",e.style.maxWidth="100%",r.appendChild(e)}}let i=r.querySelector("iframe[data-src]");i&&Ge(a)&&!/autoplay=(1|true|yes)/gi.test(n)&&i.getAttribute("src")!==n&&i.setAttribute("src",n)}}function tt(e){e.style.display="none";let t=At(e);t&&(t.style.display="none",G(t.querySelectorAll("iframe[src]")).forEach(e=>{e.removeAttribute("src")})),G(e.querySelectorAll("video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]")).forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}),G(e.querySelectorAll("video[data-lazy-loaded] source[src], audio source[src]")).forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})}function at(){var e=S.wrapper.querySelectorAll(".slides>section"),t=S.wrapper.querySelectorAll(".slides>section.present>section");let a={left:n>0,right:n0,down:i1&&(a.left=!0,a.right=!0),t.length>1&&(a.up=!0,a.down=!0)),f.rtl){let e=a.left;a.left=a.right,a.right=e}return a}function rt(){if(s&&f.fragments){let e=s.querySelectorAll(".fragment"),t=s.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function nt(e){e&&!ct()&&(G(e.querySelectorAll('img[src$=".gif"]')).forEach(e=>{e.setAttribute("src",e.getAttribute("src"))}),G(e.querySelectorAll("video, audio")).forEach(e=>{if(ne(e,".fragment")&&!ne(e,".fragment.visible"))return;let t=f.autoPlayMedia;if("boolean"!=typeof t&&(t=e.hasAttribute("data-autoplay")||!!ne(e,".slide-background")),t&&"function"==typeof e.play)if(e.readyState>1)it({target:e});else if(d){let t=e.play();t&&"function"==typeof t.catch&&!1===e.controls&&t.catch((function(){e.controls=!0,e.addEventListener("play",()=>{e.controls=!1})}))}else e.removeEventListener("loadeddata",it),e.addEventListener("loadeddata",it)}),G(e.querySelectorAll("iframe[src]")).forEach(e=>{ne(e,".fragment")&&!ne(e,".fragment.visible")||ot({target:e})}),G(e.querySelectorAll("iframe[data-src]")).forEach(e=>{ne(e,".fragment")&&!ne(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",ot),e.addEventListener("load",ot),e.setAttribute("src",e.getAttribute("data-src")))}))}function it(e){let t=!!ne(e.target,"html"),a=!!ne(e.target,".present");t&&a&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",it)}function ot(e){let t=e.target;if(t&&t.contentWindow){let a=!!ne(e.target,"html"),r=!!ne(e.target,".present");if(a&&r){let e=f.autoPlayMedia;"boolean"!=typeof e&&(e=t.hasAttribute("data-autoplay")||!!ne(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&e?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&e?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}function st(e,t={}){t=Z({unloadIframes:!0},t),e&&e.parentNode&&(G(e.querySelectorAll("video, audio")).forEach(e=>{e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())}),G(e.querySelectorAll("iframe")).forEach(e=>{e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",ot)}),G(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),G(e.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===t.unloadIframes&&G(e.querySelectorAll("iframe[data-src]")).forEach(e=>{e.setAttribute("src","about:blank"),e.removeAttribute("src")}))}function lt(e=s){let t=gt(),a=0;e:for(let r=0;r0){let a=.9;t+=s.querySelectorAll(".fragment.visible").length/e.length*a}}return Math.min(t/(e-1),1)}function ct(){return!!window.location.search.match(/receiver/gi)}function ut(){let t=window.location.hash,a=t.slice(2).split("/"),r=t.replace(/#|\//gi,"");if(!/^[0-9]*$/.test(a[0])&&r.length){let t;try{t=document.getElementById(decodeURIComponent(r))}catch(e){}let a=!!s&&s.getAttribute("id")===r;if(t){if(!a){let a=e.getIndices(t);Oe(a.h,a.v)}}else Oe(n||0,i||0)}else{let e,t=f.hashOneBasedIndex?1:0,r=parseInt(a[0],10)-t||0,o=parseInt(a[1],10)-t||0;f.fragmentInURL&&(e=parseInt(a[2],10),isNaN(e)&&(e=void 0)),r===n&&o===i&&void 0===e||Oe(r,o,e)}}function pt(e){clearTimeout(q),"number"==typeof e?q=setTimeout(pt,e):s&&(f.history||!window.history?window.location.hash=Le():f.hash?window.history.replaceState(null,null,"#"+Le()):window.history.replaceState(null,null,window.location.pathname+window.location.search))}function ft(e){let t,a=n,r=i;if(e){let t=xe(e),n=t?e.parentNode:e,i=G(S.wrapper.querySelectorAll(".slides>section"));a=Math.max(i.indexOf(n),0),r=void 0,t&&(r=Math.max(G(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&s){if(s.querySelectorAll(".fragment").length>0){let e=s.querySelector(".current-fragment");t=e&&e.hasAttribute("data-fragment-index")?parseInt(e.getAttribute("data-fragment-index"),10):s.querySelectorAll(".fragment.visible").length-1}}return{h:a,v:r,f:t}}function ht(){return G(S.wrapper.querySelectorAll('.slides section:not(.stack):not([data-visibility="uncounted"])'))}function gt(){return G(S.wrapper.querySelectorAll(".slides>section"))}function mt(){return G(S.wrapper.querySelectorAll(".slides>section>section"))}function vt(){return gt().length>1}function bt(){return mt().length>1}function yt(){return ht().length}function wt(e,t){let a=gt()[e],r=a&&a.querySelectorAll("section");return r&&r.length&&"number"==typeof t?r?r[t]:void 0:a}function At(e,t){let a="number"==typeof e?wt(e,t):e;if(a)return a.slideBackgroundElement}function kt(e=s){if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");let t=e.querySelector("aside.notes");return t?t.innerHTML:null}function Et(){let e=ft();return{indexh:e.h,indexv:e.v,indexf:e.f,paused:Te(),overview:Se()}}function St(e,t=!1){e=G(e);let a=[],r=[],n=[];e.forEach(e=>{if(e.hasAttribute("data-fragment-index")){let t=parseInt(e.getAttribute("data-fragment-index"),10);a[t]||(a[t]=[]),a[t].push(e)}else r.push([e])}),a=a.concat(r);let i=0;return a.forEach(e=>{e.forEach(e=>{n.push(e),e.setAttribute("data-fragment-index",i)}),i++}),!0===t?a:n}function Lt(e,t){let a={shown:[],hidden:[]};if(s&&f.fragments&&(t=t||St(s.querySelectorAll(".fragment"))).length){let r=0;if("number"!=typeof e){let t=St(s.querySelectorAll(".fragment.visible")).pop();t&&(e=parseInt(t.getAttribute("data-fragment-index")||0,10))}G(t).forEach((t,n)=>{t.hasAttribute("data-fragment-index")&&(n=parseInt(t.getAttribute("data-fragment-index"),10)),r=Math.max(r,n),n<=e?(t.classList.contains("visible")||a.shown.push(t),t.classList.add("visible"),t.classList.remove("current-fragment"),S.statusDiv.textContent=U(t),n===e&&(t.classList.add("current-fragment"),nt(t))):(t.classList.contains("visible")&&a.hidden.push(t),t.classList.remove("visible"),t.classList.remove("current-fragment"))}),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,r),-1),s.setAttribute("data-fragment",e)}return a}function xt(e,t=0){if(s&&f.fragments){let a=St(s.querySelectorAll(".fragment"));if(a.length){if("number"!=typeof e){let t=St(s.querySelectorAll(".fragment.visible")).pop();e=t?parseInt(t.getAttribute("data-fragment-index")||0,10):-1}let r=Lt(e+=t,a);return r.hidden.length&&se("fragmenthidden",{fragment:r.hidden[0],fragments:r.hidden}),r.shown.length&&se("fragmentshown",{fragment:r.shown[0],fragments:r.shown}),Ue(),$e(),f.fragmentInURL&&pt(),!(!r.shown.length&&!r.hidden.length)}}return!1}function Mt(){return xt(null,1)}function Nt(){return xt(null,-1)}function qt(){if(It(),s&&!1!==f.autoSlide){let t=s.querySelector(".current-fragment");t||(t=s.querySelector(".fragment"));let a=t?t.getAttribute("data-autoslide"):null,r=s.parentNode?s.parentNode.getAttribute("data-autoslide"):null,n=s.getAttribute("data-autoslide");O=a?parseInt(a,10):n?parseInt(n,10):r?parseInt(r,10):f.autoSlide,0===s.querySelectorAll(".fragment").length&&G(s.querySelectorAll("video, audio")).forEach(e=>{e.hasAttribute("data-autoplay")&&O&&1e3*e.duration/e.playbackRate>O&&(O=1e3*e.duration/e.playbackRate+1e3)}),!O||B||Te()||Se()||e.isLastSlide()&&!rt().next&&!0!==f.loop||(D=setTimeout(()=>{"function"==typeof f.autoSlideMethod?f.autoSlideMethod():Ht(),qt()},O),R=Date.now()),p&&p.setPlaying(-1!==D)}}function It(){clearTimeout(D),D=-1}function Pt(){O&&!B&&(B=!0,se("autoslidepaused"),clearTimeout(D),p&&p.setPlaying(!1))}function Tt(){O&&B&&(B=!1,se("autoslideresumed"),qt())}function Ct(){y=!0,f.rtl?(Se()||!1===Mt())&&at().left&&Oe(n+1,"grid"===f.navigationMode?i:void 0):(Se()||!1===Nt())&&at().left&&Oe(n-1,"grid"===f.navigationMode?i:void 0)}function Ot(){y=!0,f.rtl?(Se()||!1===Nt())&&at().right&&Oe(n-1,"grid"===f.navigationMode?i:void 0):(Se()||!1===Mt())&&at().right&&Oe(n+1,"grid"===f.navigationMode?i:void 0)}function Dt(){(Se()||!1===Nt())&&at().up&&Oe(n,i-1)}function Rt(){w=!0,(Se()||!1===Mt())&&at().down&&Oe(n,i+1)}function Bt(){if(!1===Nt())if(at().up)Dt();else{let e;if(e=f.rtl?G(S.wrapper.querySelectorAll(".slides>section.future")).pop():G(S.wrapper.querySelectorAll(".slides>section.past")).pop(),e){let t=e.querySelectorAll("section").length-1||void 0;Oe(n-1,t)}}}function Ht(){if(y=!0,w=!0,!1===Mt()){let t=at();t.down&&t.right&&f.loop&&e.isLastVerticalSlide(s)&&(t.down=!1),t.down?Rt():f.rtl?Ct():Ot()}}function zt(e){for(;e&&"function"==typeof e.hasAttribute;){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNode}return!1}function jt(e){f.autoSlideStoppable&&Pt()}function $t(e){Me(),clearTimeout(P),P=setTimeout(Ne,f.hideCursorTime)}function Wt(e){e.shiftKey&&63===e.charCode&&ue()}function Ft(t){if("function"==typeof f.keyboardCondition&&!1===f.keyboardCondition(t))return!0;let a=t.keyCode,r=B;jt();let n=document.activeElement&&"inherit"!==document.activeElement.contentEditable,i=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),s=t.shiftKey&&32===t.keyCode,l=t.shiftKey&&37===a,d=t.shiftKey&&39===a,c=!s&&!l&&!d&&(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey);if(n||i||o||c)return;let u,p=[66,86,190,191];if("object"==typeof f.keyboard)for(u in f.keyboard)"togglePause"===f.keyboard[u]&&p.push(parseInt(u,10));if(Te()&&-1===p.indexOf(a))return!1;let h="linear"===f.navigationMode||!vt()||!bt(),g=!1;if("object"==typeof f.keyboard)for(u in f.keyboard)if(parseInt(u,10)===a){var m=f.keyboard[u];"function"==typeof m?m.apply(null,[t]):"string"==typeof m&&"function"==typeof e[m]&&e[m].call(),g=!0}if(!1===g)for(u in j)if(parseInt(u,10)===a){let a=j[u].callback;"function"==typeof a?a.apply(null,[t]):"string"==typeof a&&"function"==typeof e[a]&&e[a].call(),g=!0}!1===g&&(g=!0,80===a||33===a?Bt():78===a||34===a?Ht():72===a||37===a?l?Oe(0):!Se()&&h?Bt():Ct():76===a||39===a?d?Oe(Number.MAX_VALUE):!Se()&&h?Ht():Ot():75===a||38===a?!Se()&&h?Bt():Dt():74===a||40===a?!Se()&&h?Ht():Rt():36===a?Oe(0):35===a?Oe(Number.MAX_VALUE):32===a?(Se()&&ke(),t.shiftKey?Bt():Ht()):58===a||59===a||66===a||86===a||190===a||191===a?Pe():70===a?function(){let e=document.documentElement,t=e.requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)}():65===a?f.autoSlideStoppable&&Ce(r):g=!1),g?t.preventDefault&&t.preventDefault():27!==a&&79!==a||(S.overlay?fe():Ee(),t.preventDefault&&t.preventDefault()),qt()}function Ut(e){if(zt(e.target))return!0;H.startX=e.touches[0].clientX,H.startY=e.touches[0].clientY,H.startCount=e.touches.length}function Vt(e){if(zt(e.target))return!0;if(H.captured)t.match(/android/gi)&&e.preventDefault();else{jt();let t=e.touches[0].clientX,a=e.touches[0].clientY;if(1===e.touches.length&&2!==H.startCount){let r=t-H.startX,n=a-H.startY;r>H.threshold&&Math.abs(r)>Math.abs(n)?(H.captured=!0,"linear"===f.navigationMode?f.rtl?Ht():Bt():Ct()):r<-H.threshold&&Math.abs(r)>Math.abs(n)?(H.captured=!0,"linear"===f.navigationMode?f.rtl?Bt():Ht():Ot()):n>H.threshold?(H.captured=!0,"linear"===f.navigationMode?Bt():Dt()):n<-H.threshold&&(H.captured=!0,"linear"===f.navigationMode?Ht():Rt()),f.embedded?(H.captured||xe(s))&&e.preventDefault():e.preventDefault()}}}function Xt(e){H.captured=!1}function Yt(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Ut(e))}function Kt(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Vt(e))}function _t(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Xt())}function Jt(e){if(Date.now()-N>600){N=Date.now();let t=e.detail||-e.wheelDelta;t>0?Ht():t<0&&Bt()}}function Qt(e){jt(),e.preventDefault();let t=gt().length,a=Math.floor(e.clientX/S.wrapper.offsetWidth*t);f.rtl&&(a=t-a),Oe(a)}function Zt(e){e.preventDefault(),jt(),"linear"===f.navigationMode?Bt():Ct()}function Gt(e){e.preventDefault(),jt(),"linear"===f.navigationMode?Ht():Ot()}function ea(e){e.preventDefault(),jt(),Dt()}function ta(e){e.preventDefault(),jt(),Rt()}function aa(e){e.preventDefault(),jt(),Bt()}function ra(e){e.preventDefault(),jt(),Ht()}function na(e){ut()}function ia(e){he()}function oa(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function sa(e){if(T&&Se()){e.preventDefault();let t=e.target;for(;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled"))if(ke(),t.nodeName.match(/section/gi))Oe(parseInt(t.getAttribute("data-index-h"),10),parseInt(t.getAttribute("data-index-v"),10))}}function la(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){let t=e.currentTarget.getAttribute("href");t&&(!function(e){fe(),S.overlay=document.createElement("div"),S.overlay.classList.add("overlay"),S.overlay.classList.add("overlay-preview"),S.wrapper.appendChild(S.overlay),S.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
`,S.overlay.querySelector("iframe").addEventListener("load",e=>{S.overlay.classList.add("loaded")},!1),S.overlay.querySelector(".close").addEventListener("click",e=>{fe(),e.preventDefault()},!1),S.overlay.querySelector(".external").addEventListener("click",e=>{fe()},!1)}(t),e.preventDefault())}}function da(t){e.isLastSlide()&&!1===f.loop?(Oe(0,0),Tt()):B?Tt():Pt()}return e={VERSION:"4.0.0-dev",initialize:function(a){if(!0===h)return;h=!0,function(){d=/(iphone|ipod|ipad|android)/gi.test(t)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,c=/chrome/i.test(t)&&!/edge/i.test(t);let e=document.createElement("div");M.zoom="zoom"in e.style&&!d&&(c||/Version\/[\d\.]+.*Safari/.test(t))}(),S.wrapper=document.querySelector(".reveal"),S.slides=document.querySelector(".reveal .slides"),window.addEventListener("load",he,!1);let r=e.getQueryHash();var n,i;void 0!==r.dependencies&&delete r.dependencies,Z(f,a),Z(f,r),n=[],i=0,f.dependencies.forEach(e=>{e.condition&&!e.condition()||(e.async?x.push(e):n.push(e))}),n.length?(i=n.length,n.forEach(e=>{F(e.src,(function(){"function"==typeof e.callback&&e.callback(),0==--i&&$()}))})):$()},configure:_,sync:De,syncSlide:function(e=s){K(e),Re(e),et(e),Ve(),je()},syncFragments:Re,slide:Oe,left:Ct,right:Ot,up:Dt,down:Rt,prev:Bt,next:Ht,navigateTo:Oe,navigateLeft:Ct,navigateRight:Ot,navigateUp:Dt,navigateDown:Rt,navigatePrev:Bt,navigateNext:Ht,navigateFragment:xt,prevFragment:Nt,nextFragment:Mt,layout:he,shuffle:Be,availableRoutes:at,availableFragments:rt,toggleHelp:ue,toggleOverview:Ee,togglePause:Pe,toggleAutoSlide:Ce,isOverview:Se,isPaused:Te,isAutoSliding:function(){return!(!O||B)},isSpeakerNotes:ct,loadSlide:et,unloadSlide:tt,addEventListeners:J,removeEventListeners:Q,getState:Et,setState:function(e){if("object"==typeof e){Oe(ee(e.indexh),ee(e.indexv),ee(e.indexf));var t=ee(e.paused),a=ee(e.overview);"boolean"==typeof t&&t!==Te()&&Pe(t),"boolean"==typeof a&&a!==Se()&&Ee(a)}},getSlidePastCount:lt,getProgress:dt,getIndices:ft,getSlides:ht,getSlidesAttributes:function(){return ht().map((function(e){let t={};for(let a=0;ao,getCurrentSlide:()=>s,getScale:()=>k,getConfig:()=>f,getQueryHash:()=>{let e={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,t=>{e[t.split("=").shift()]=t.split("=").pop()});for(let t in e){let a=e[t];e[t]=ee(unescape(a))}return e},getRevealElement:()=>S.wrapper||document.querySelector(".reveal"),getPlugins:()=>L,isFirstSlide:()=>0===n&&0===i,isLastSlide:()=>!!s&&(!s.nextElementSibling&&(!xe(s)||!s.parentNode.nextElementSibling)),isLastVerticalSlide:()=>!(!s||!xe(s))&&!s.nextElementSibling,isReady:()=>g,addEventListener:(t,a,r)=>{"addEventListener"in window&&e.getRevealElement().addEventListener(t,a,r)},removeEventListener:(t,a,r)=>{"addEventListener"in window&&e.getRevealElement().removeEventListener(t,a,r)},triggerKey:e=>{Ft({keyCode:e})},registerKeyboardShortcut:(e,t)=>{z[e]=t}},e}()}]); \ No newline at end of file +!function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,a){"use strict";a.r(t);class n{constructor(e,t){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=e,this.progressCheck=t,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()}setPlaying(e){const t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()}animate(){const 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))}render(){let e=this.playing?this.progress:0,t=this.diameter2-this.thickness,a=this.diameter2,n=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);const r=-Math.PI/2+e*(2*Math.PI),i=-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(a,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(a,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(a,n,t,i,r,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(a-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()}on(e,t){this.canvas.addEventListener(e,t,!1)}off(e,t){this.canvas.removeEventListener(e,t,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}var r=function(e,t){let a;const r=navigator.userAgent,i=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener/;let o,s,l,d,c,u,p,f,h,g={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:[]},m=!1,v=!1,b=null,y=null,w=!1,A=!1,k=[],E=1,S={layout:"",overview:""},L={},x={},M=[],N={},q=0,I=0,P=!1,T=0,C=!1,O=0,R=0,D=0,B=-1,H=!1,z={startX:0,startY:0,startCount:0,captured:!1,threshold:40},j={},$={};function W(){let e=Object.keys(x).length;if(0===e)F();else{let t=()=>{0==--e&&F()};for(let e in x){let a=x[e];if("function"==typeof a.init){let e=a.init();e&&"function"==typeof e.then?e.then(t):t()}else t()}}}function F(){M.length&&M.forEach(e=>{U(e.src,e.callback)}),m=!0,L.slides.classList.add("no-transition"),u?L.wrapper.classList.add("no-hover"):L.wrapper.classList.remove("no-hover"),/iphone/gi.test(r)?L.wrapper.classList.add("ua-iphone"):L.wrapper.classList.remove("ua-iphone"),L.background=Y(L.wrapper,"div","backgrounds",null),L.progress=Y(L.wrapper,"div","progress",""),L.progressbar=L.progress.querySelector("span"),L.controls=Y(L.wrapper,"aside","controls",`\n\t\t\t\n\t\t\t\n\t\t\t`),L.slideNumber=Y(L.wrapper,"div","slide-number",""),L.speakerNotes=Y(L.wrapper,"div","speaker-notes",null),L.speakerNotes.setAttribute("data-prevent-swipe",""),L.speakerNotes.setAttribute("tabindex","0"),L.pauseOverlay=Y(L.wrapper,"div","pause-overlay",g.controls?'':null),L.wrapper.setAttribute("role","application"),L.controlsLeft=ee(document.querySelectorAll(".navigate-left")),L.controlsRight=ee(document.querySelectorAll(".navigate-right")),L.controlsUp=ee(document.querySelectorAll(".navigate-up")),L.controlsDown=ee(document.querySelectorAll(".navigate-down")),L.controlsPrev=ee(document.querySelectorAll(".navigate-prev")),L.controlsNext=ee(document.querySelectorAll(".navigate-next")),L.controlsRightArrow=L.controls.querySelector(".navigate-right"),L.controlsLeftArrow=L.controls.querySelector(".navigate-left"),L.controlsDownArrow=L.controls.querySelector(".navigate-down"),L.statusDiv=function(){let 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"),L.wrapper.appendChild(e)),e}(),g.postMessage&&window.addEventListener("message",e=>{const t=e.data;if("string"==typeof t&&"{"===t.charAt(0)&&"}"===t.charAt(t.length-1)&&(t=JSON.parse(t),t.method&&"function"==typeof a[t.method]))if(!1===i.test(t.method)){var n=a[t.method].apply(a,t.args);de("callback",{method:t.method,result:n})}else console.warn('reveal.js: "'+t.method+'" is is blacklisted from the postMessage API')},!1),setInterval(()=>{0===L.wrapper.scrollTop&&0===L.wrapper.scrollLeft||(L.wrapper.scrollTop=0,L.wrapper.scrollLeft=0)},1e3),mt().forEach((function(e){ee(e.querySelectorAll("section")).forEach((e,t)=>{t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))})})),J(),pt(),Xe(!0),setTimeout(()=>{L.slides.classList.remove("no-transition"),L.wrapper.classList.add("ready"),le("ready",{indexh:o,indexv:s,currentSlide:d})},1),se()&&(Z(),"complete"===document.readyState?X():window.addEventListener("load",X))}function U(e,t){const a=document.createElement("script");a.type="text/javascript",a.async=!1,a.defer=!1,a.src=e,t&&(a.onload=a.onreadystatechange=e=>{("load"===e.type||/loaded|complete/.test(a.readyState))&&(a.onload=a.onreadystatechange=a.onerror=null,t())},a.onerror=e=>{a.onload=a.onreadystatechange=a.onerror=null,t(new Error("Failed loading script: "+a.src+"\n"+e))});const n=document.querySelector("head");n.insertBefore(a,n.lastChild)}function V(e){let t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){let a=e.getAttribute("aria-hidden"),n="none"===window.getComputedStyle(e).display;"true"===a||n||ee(e.childNodes).forEach(e=>{t+=V(e)})}return t.trim()}function X(){var e=ve(window.innerWidth,window.innerHeight),t=Math.floor(e.width*(1+g.margin)),a=Math.floor(e.height*(1+g.margin)),n=e.width,r=e.height;re("@page{size:"+t+"px "+a+"px; margin: 0px;}"),re(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+n+"px; max-height:"+r+"px}"),document.body.classList.add("print-pdf"),document.body.style.width=t+"px",document.body.style.height=a+"px",me(n,r);var i=g.slideNumber&&/all|print/i.test(g.showSlideNumber);ee(L.wrapper.querySelectorAll(".slides section")).forEach((function(e){e.setAttribute("data-slide-number",Ue(e))})),ee(L.wrapper.querySelectorAll(".slides section")).forEach((function(e){if(!1===e.classList.contains("stack")){var o=(t-n)/2,s=(a-r)/2,l=e.scrollHeight,d=Math.max(Math.ceil(l/a),1);(1===(d=Math.min(d,g.pdfMaxPagesPerSlide))&&g.center||e.classList.contains("center"))&&(s=Math.max((a-l)/2,0));var c=document.createElement("div");if(c.className="pdf-page",c.style.height=(a+g.pdfPageHeightOffset)*d+"px",e.parentNode.insertBefore(c,e),c.appendChild(e),e.style.left=o+"px",e.style.top=s+"px",e.style.width=n+"px",e.slideBackgroundElement&&c.insertBefore(e.slideBackgroundElement,e),g.showNotes){var u=Et(e);if(u){var p="string"==typeof g.showNotes?g.showNotes:"inline",f=document.createElement("div");f.classList.add("speaker-notes"),f.classList.add("speaker-notes-pdf"),f.setAttribute("data-layout",p),f.innerHTML=u,"separate-page"===p?c.parentNode.insertBefore(f,c.nextSibling):(f.style.left="8px",f.style.bottom="8px",f.style.width=t-16+"px",c.appendChild(f))}}if(i){var h=document.createElement("div");h.classList.add("slide-number"),h.classList.add("slide-number-pdf"),h.innerHTML=e.getAttribute("data-slide-number"),c.appendChild(h)}if(g.pdfSeparateFragments){var m,v,b=Lt(c.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")}));var t=c.cloneNode(!0);c.parentNode.insertBefore(t,(v||c).nextSibling),m=e,v=t})),b.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else ee(c.querySelectorAll(".fragment:not(.fade-out)")).forEach((function(e){e.classList.add("visible")}))}})),le("pdf-ready")}function Y(e,t,a,n=""){let r=e.querySelectorAll("."+a);for(let t=0;t1&&g.autoSlide&&g.autoSlideStoppable&&(h=new n(L.wrapper,()=>Math.min(Math.max((Date.now()-B)/R,0),1)),h.on("click",ca),H=!1),!1===g.fragments&&ee(L.slides.querySelectorAll(".fragment")).forEach(e=>{e.classList.add("visible"),e.classList.remove("current-fragment")});let r="none";g.slideNumber&&!se()&&("all"===g.showSlideNumber||"speaker"===g.showSlideNumber&&ut())&&(r="block"),L.slideNumber.style.display=r,"default"!==g.navigationMode?L.wrapper.setAttribute("data-navigation-mode",g.navigationMode):L.wrapper.removeAttribute("data-navigation-mode"),"linear"===g.navigationMode?(j["→ , ↓ , SPACE , N , L , J"]="Next slide",j["← , ↑ , P , H , K"]="Previous slide"):(j["N , SPACE"]="Next slide",j.P="Previous slide",j["← , H"]="Navigate left",j["→ , L"]="Navigate right",j["↑ , K"]="Navigate up",j["↓ , J"]="Navigate down"),j["Home , Shift ←"]="First slide",j["End , Shift →"]="Last slide",j["B , ."]="Pause",j.F="Fullscreen",j["ESC, O"]="Slide overview",De()}function Q(){C=!0,window.addEventListener("hashchange",ia,!1),window.addEventListener("resize",oa,!1),g.touch&&("onpointerdown"in window?(L.wrapper.addEventListener("pointerdown",Kt,!1),L.wrapper.addEventListener("pointermove",_t,!1),L.wrapper.addEventListener("pointerup",Jt,!1)):window.navigator.msPointerEnabled?(L.wrapper.addEventListener("MSPointerDown",Kt,!1),L.wrapper.addEventListener("MSPointerMove",_t,!1),L.wrapper.addEventListener("MSPointerUp",Jt,!1)):(L.wrapper.addEventListener("touchstart",Vt,!1),L.wrapper.addEventListener("touchmove",Xt,!1),L.wrapper.addEventListener("touchend",Yt,!1))),g.keyboard&&(document.addEventListener("keydown",Ut,!1),document.addEventListener("keypress",Ft,!1)),g.progress&&L.progress&&L.progress.addEventListener("click",Zt,!1),L.pauseOverlay.addEventListener("click",Pe,!1),g.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",sa,!1);let e=["touchstart","click"];r.match(/android/gi)&&(e=["touchstart"]),e.forEach((function(e){L.controlsLeft.forEach((function(t){t.addEventListener(e,Gt,!1)})),L.controlsRight.forEach((function(t){t.addEventListener(e,ea,!1)})),L.controlsUp.forEach((function(t){t.addEventListener(e,ta,!1)})),L.controlsDown.forEach((function(t){t.addEventListener(e,aa,!1)})),L.controlsPrev.forEach((function(t){t.addEventListener(e,na,!1)})),L.controlsNext.forEach((function(t){t.addEventListener(e,ra,!1)}))}))}function Z(){C=!1,document.removeEventListener("keydown",Ut,!1),document.removeEventListener("keypress",Ft,!1),window.removeEventListener("hashchange",ia,!1),window.removeEventListener("resize",oa,!1),L.wrapper.removeEventListener("pointerdown",Kt,!1),L.wrapper.removeEventListener("pointermove",_t,!1),L.wrapper.removeEventListener("pointerup",Jt,!1),L.wrapper.removeEventListener("MSPointerDown",Kt,!1),L.wrapper.removeEventListener("MSPointerMove",_t,!1),L.wrapper.removeEventListener("MSPointerUp",Jt,!1),L.wrapper.removeEventListener("touchstart",Vt,!1),L.wrapper.removeEventListener("touchmove",Xt,!1),L.wrapper.removeEventListener("touchend",Yt,!1),L.pauseOverlay.removeEventListener("click",Pe,!1),g.progress&&L.progress&&L.progress.removeEventListener("click",Zt,!1),["touchstart","click"].forEach((function(e){L.controlsLeft.forEach((function(t){t.removeEventListener(e,Gt,!1)})),L.controlsRight.forEach((function(t){t.removeEventListener(e,ea,!1)})),L.controlsUp.forEach((function(t){t.removeEventListener(e,ta,!1)})),L.controlsDown.forEach((function(t){t.removeEventListener(e,aa,!1)})),L.controlsPrev.forEach((function(t){t.removeEventListener(e,na,!1)})),L.controlsNext.forEach((function(t){t.removeEventListener(e,ra,!1)}))}))}function G(e,t){for(var a in t)e[a]=t[a];return e}function ee(e){return Array.prototype.slice.call(e)}function te(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 ae(e,t){e.style.transform=t}function ne(e){"string"==typeof e.layout&&(S.layout=e.layout),"string"==typeof e.overview&&(S.overview=e.overview),S.layout?ae(L.slides,S.layout+" "+S.overview):ae(L.slides,S.overview)}function re(e){let 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 ie(e,t){let a=e.parentNode;for(;a;){let e=a.matches||a.matchesSelector||a.msMatchesSelector;if(e&&e.call(a,t))return a;a=a.parentNode}return null}function oe(e){let 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)};let a=e.match(/^#([0-9a-f]{6})$/i);if(a&&a[1])return a=a[1],{r:parseInt(a.substr(0,2),16),g:parseInt(a.substr(2,2),16),b:parseInt(a.substr(4,2),16)};let 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)};let r=e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return r?{r:parseInt(r[1],10),g:parseInt(r[2],10),b:parseInt(r[3],10),a:parseFloat(r[4])}:null}function se(){return/print-pdf/gi.test(window.location.search)}function le(e,t){let a=document.createEvent("HTMLEvents",1,2);a.initEvent(e,!0,!0),G(a,t),L.wrapper.dispatchEvent(a),de(e)}function de(e,t){if(g.postMessageEvents&&window.parent!==window.self){let a={namespace:"reveal",eventName:e,state:St()};G(a,t),window.parent.postMessage(JSON.stringify(a),"*")}}function ce(e="a"){ee(document.querySelectorAll(e)).forEach(e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",da,!1)})}function ue(e="a"){ee(document.querySelectorAll(e)).forEach(e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",da,!1)})}function pe(e){"boolean"==typeof e?e?fe():he():L.overlay?he():fe()}function fe(){if(g.help){he(),L.overlay=document.createElement("div"),L.overlay.classList.add("overlay"),L.overlay.classList.add("overlay-help"),L.wrapper.appendChild(L.overlay);let a='

Keyboard Shortcuts


';for(var e in a+="",j)a+=``;for(var t in $)$[t].key&&$[t].description&&(a+=``);a+="
KEYACTION
${e}${j[e]}
${$[t].key}${$[t].description}
",L.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
${a}
\n\t\t\t\t
\n\t\t\t`,L.overlay.querySelector(".close").addEventListener("click",(function(e){he(),e.preventDefault()}),!1)}}function he(){L.overlay&&(L.overlay.parentNode.removeChild(L.overlay),L.overlay=null)}function ge(){if(L.wrapper&&!se()){if(!g.disableLayout){u&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");const a=ve(),n=E;me(g.width,g.height),L.slides.style.width=a.width+"px",L.slides.style.height=a.height+"px",E=Math.min(a.presentationWidth/a.width,a.presentationHeight/a.height),E=Math.max(E,g.minScale),E=Math.min(E,g.maxScale),1===E?(L.slides.style.zoom="",L.slides.style.left="",L.slides.style.top="",L.slides.style.bottom="",L.slides.style.right="",ne({layout:""})):E>1&&N.zoom&&window.devicePixelRatio<2?(L.slides.style.zoom=E,L.slides.style.left="",L.slides.style.top="",L.slides.style.bottom="",L.slides.style.right="",ne({layout:""})):(L.slides.style.zoom="",L.slides.style.left="50%",L.slides.style.top="50%",L.slides.style.bottom="auto",L.slides.style.right="auto",ne({layout:"translate(-50%, -50%) scale("+E+")"}));const r=ee(L.wrapper.querySelectorAll(".slides section"));for(var e=0,t=r.length;e .stretch")).forEach(a=>{var n=function(e,t=0){if(e){let a,n=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",a=t-e.parentNode.offsetHeight,e.style.height=n+"px",e.parentNode.style.removeProperty("height"),a}return t}(a,t);if(/(img|video)/gi.test(a.nodeName)){const t=a.naturalWidth||a.videoWidth,r=a.naturalHeight||a.videoHeight,i=Math.min(e/t,n/r);a.style.width=t*i+"px",a.style.height=r*i+"px"}else a.style.width=e+"px",a.style.height=n+"px"})}function ve(e,t){const a={width:g.width,height:g.height,presentationWidth:e||L.wrapper.offsetWidth,presentationHeight:t||L.wrapper.offsetHeight};return a.presentationWidth-=a.presentationWidth*g.margin,a.presentationHeight-=a.presentationHeight*g.margin,"string"==typeof a.width&&/%$/.test(a.width)&&(a.width=parseInt(a.width,10)/100*a.presentationWidth),"string"==typeof a.height&&/%$/.test(a.height)&&(a.height=parseInt(a.height,10)/100*a.presentationHeight),a}function be(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function ye(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){const t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function we(){if(g.overview&&!Le()){v=!0,L.wrapper.classList.add("overview"),Pt(),L.slides.appendChild(L.background),ee(L.wrapper.querySelectorAll(".slides section")).forEach(e=>{e.classList.contains("stack")||e.addEventListener("click",la,!0)});const e=70,t=ve();b=t.width+e,y=t.height+e,g.rtl&&(b=-b),je(),Ae(),ke(),ge(),le("overviewshown",{indexh:o,indexv:s,currentSlide:d})}}function Ae(){ee(L.wrapper.querySelectorAll(".slides>section")).forEach((e,t)=>{e.setAttribute("data-index-h",t),ae(e,"translate3d("+t*b+"px, 0, 0)"),e.classList.contains("stack")&&ee(e.querySelectorAll("section")).forEach((e,a)=>{e.setAttribute("data-index-h",t),e.setAttribute("data-index-v",a),ae(e,"translate3d(0, "+a*y+"px, 0)")})}),ee(L.background.childNodes).forEach((e,t)=>{ae(e,"translate3d("+t*b+"px, 0, 0)"),ee(e.querySelectorAll(".slide-background")).forEach((e,t)=>{ae(e,"translate3d(0, "+t*y+"px, 0)")})})}function ke(){const e=Math.min(window.innerWidth,window.innerHeight);ne({overview:["scale("+Math.max(e/5,150)/e+")","translateX("+-o*b+"px)","translateY("+-s*y+"px)"].join(" ")})}function Ee(){g.overview&&(v=!1,L.wrapper.classList.remove("overview"),L.wrapper.classList.add("overview-deactivating"),setTimeout(()=>{L.wrapper.classList.remove("overview-deactivating")},1),L.wrapper.appendChild(L.background),ee(L.wrapper.querySelectorAll(".slides section")).forEach(e=>{ae(e,""),e.removeEventListener("click",la,!0)}),ee(L.background.querySelectorAll(".slide-background")).forEach(e=>{ae(e,"")}),ne({overview:""}),Re(o,s),ge(),It(),le("overviewhidden",{indexh:o,indexv:s,currentSlide:d}))}function Se(e){"boolean"==typeof e?e?we():Ee():Le()?Ee():we()}function Le(){return v}function xe(e){let t="/",a=e||d,n=a?a.getAttribute("id"):null;n&&(n=encodeURIComponent(n));let r=ht(e);if(g.fragmentInURL||(r.f=void 0),"string"==typeof n&&n.length&&void 0===r.f)t="/"+n;else{let e=g.hashOneBasedIndex?1:0;(r.h>0||r.v>0||void 0!==r.f)&&(t+=r.h+e),(r.v>0||void 0!==r.f)&&(t+="/"+(r.v+e)),void 0!==r.f&&(t+="/"+r.f)}return t}function Me(e=d){return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function Ne(){P&&(P=!1,L.wrapper.style.cursor="")}function qe(){!1===P&&(P=!0,L.wrapper.style.cursor="none")}function Ie(){if(g.pause){const e=L.wrapper.classList.contains("paused");Pt(),L.wrapper.classList.add("paused"),!1===e&&le("paused")}}function Pe(){const e=L.wrapper.classList.contains("paused");L.wrapper.classList.remove("paused"),It(),e&&le("resumed")}function Te(e){"boolean"==typeof e?e?Ie():Pe():Ce()?Pe():Ie()}function Ce(){return L.wrapper.classList.contains("paused")}function Oe(e){"boolean"==typeof e?e?Ct():Tt():H?Ct():Tt()}function Re(e,t,n,r){l=d;const i=L.wrapper.querySelectorAll(".slides>section");if(0===i.length)return;void 0!==t||Le()||(t=ye(i[e])),l&&l.parentNode&&l.parentNode.classList.contains("stack")&&be(l.parentNode,s);const c=k.concat();k.length=0;let u=o||0,p=s||0;o=ze(".slides>section",void 0===e?o:e),s=ze(".slides>section.present>section",void 0===t?s:t),je(),ge(),Le()&&ke();let h=i[o],m=h.querySelectorAll("section");d=m[s]||h,void 0!==n&&Mt(n);let v=o!==u||s!==p;v||(l=null),l&&l!==d&&(l.classList.remove("present"),l.setAttribute("aria-hidden","true"),a.isFirstSlide()&&setTimeout(()=>{ee(L.wrapper.querySelectorAll(".slides>section.stack")).forEach(e=>{be(e,0)})},0));e:for(let e=0,t=k.length;e{L.slides.classList.remove("disable-slide-transitions")},0),g.autoAnimate&&function(e,t){Ke(),f&&f.parentNode&&(f.parentNode.removeChild(f),f=null);if(e.hasAttribute("data-auto-animate")&&t.hasAttribute("data-auto-animate")){f=f||document.createElement("style"),f.type="text/css",document.head.appendChild(f);let n=_e(t);e.dataset.autoAnimate="pending",t.dataset.autoAnimate="pending";let r=function(e,t){let a=("function"==typeof g.autoAnimateMatcher?g.autoAnimateMatcher:Qe)(e,t),n=[];return a.filter((e,t)=>{if(-1===n.indexOf(e.to))return n.push(e.to),!0})}(e,t).map((function(e){return function(e,t,n,r,i){e.dataset.autoAnimateTarget="",t.dataset.autoAnimateTarget=i;let o=_e(t,r);void 0!==n.delay&&(o.delay=n.delay);void 0!==n.duration&&(o.duration=n.duration);void 0!==n.easing&&(o.easing=n.easing);let s=Je("from",e,n),l=Je("to",t,n);if(!1!==n.translate||!1!==n.scale){let e=a.getScale(),t={x:(s.x-l.x)/e,y:(s.y-l.y)/e,scaleX:s.width/l.width,scaleY:s.height/l.height};t.x=Math.round(1e3*t.x)/1e3,t.y=Math.round(1e3*t.y)/1e3,t.scaleX=Math.round(1e3*t.scaleX)/1e3,t.scaleX=Math.round(1e3*t.scaleX)/1e3;let r=!1!==n.translate&&(0!==t.x||0!==t.y),i=!1!==n.scale&&(0!==t.scaleX||0!==t.scaleY);if(r||i){let e=[];r&&e.push(`translate(${t.x}px, ${t.y}px)`),i&&e.push(`scale(${t.scaleX}, ${t.scaleY})`),s.styles.transform=e.join(" "),s.styles["transform-origin"]="top left",l.styles.transform="none"}}for(let e in l.styles){const t=l.styles[e],a=s.styles[e];t===a?delete l.styles[e]:(!0===t.explicitValue&&(l.styles[e]=t.value),!0===a.explicitValue&&(s.styles[e]=a.value))}let d="",c=Object.keys(l.styles);if(c.length>0){s.styles.transition="none",l.styles.transition=`all ${o.duration}s ${o.easing} ${o.delay}s`,l.styles["transition-property"]=c.join(", "),l.styles["will-change"]=c.join(", ");let e=Object.keys(s.styles).map((function(e){return e+": "+s.styles[e]+" !important;"})).join(""),t=Object.keys(l.styles).map((function(e){return e+": "+l.styles[e]+" !important;"})).join("");d='[data-auto-animate-target="'+i+'"] {'+e+'}[data-auto-animate="running"] [data-auto-animate-target="'+i+'"] {'+t+"}"}return d}(e.from,e.to,e.options||{},n,O++)}));"false"!==t.dataset.autoAnimateUnmatched&&!0===g.autoAnimateUnmatched&&(function e(t){return[].slice.call(t.children).reduce((t,a)=>{const n=a.querySelector("[data-auto-animate-target]");return a.hasAttribute("data-auto-animate-target")||n||t.push(a),a.querySelector("[data-auto-animate-target]")&&(t=t.concat(e(a))),t},[])}(t).forEach((function(e){e.dataset.autoAnimateTarget="unmatched"})),r.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${.8*n.duration}s ease ${.2*n.duration}s; }`)),f.innerHTML=r.join(""),requestAnimationFrame(()=>{f&&(getComputedStyle(f).fontWeight,t.dataset.autoAnimate="running")}),le("autoanimate",{fromSlide:e,toSlide:t,sheet:f})}}(l,d))}function De(){Z(),Q(),ge(),R=g.autoSlide,It(),se(),L.background.innerHTML="",L.background.classList.add("no-transition"),ee(L.wrapper.querySelectorAll(".slides>section")).forEach(e=>{let t=K(e,L.background);ee(e.querySelectorAll("section")).forEach(e=>{K(e,t),t.classList.add("stack")})}),g.parallaxBackgroundImage?(L.background.style.backgroundImage='url("'+g.parallaxBackgroundImage+'")',L.background.style.backgroundSize=g.parallaxBackgroundSize,L.background.style.backgroundRepeat=g.parallaxBackgroundRepeat,L.background.style.backgroundPosition=g.parallaxBackgroundPosition,setTimeout(()=>{L.wrapper.classList.add("has-parallax-background")},1)):(L.background.style.backgroundImage="",L.wrapper.classList.remove("has-parallax-background")),ft(),mt().forEach(e=>{let t=ee(e.querySelectorAll("section"));t.forEach((e,t)=>{Lt(e.querySelectorAll(".fragment"))}),0===t.length&&Lt(e.querySelectorAll(".fragment"))}),Ve(),We(),Fe(),je(),Xe(!0),g.showNotes&&L.slides.querySelectorAll("[data-notes], aside.notes").length>0?L.wrapper.classList.add("show-notes"):L.wrapper.classList.remove("show-notes"),$e(),function(){let e=(e,t,a)=>{ee(L.slides.querySelectorAll("iframe["+e+'*="'+t+'"]')).forEach(t=>{var n=t.getAttribute(e);n&&-1===n.indexOf(a)&&t.setAttribute(e,n+(/\?/.test(n)?"&":"?")+a)})};e("src","youtube.com/embed/","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","player.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1")}(),!1===g.autoPlayMedia?lt(d,{unloadIframes:!1}):it(d),Le()&&Ae()}function Be(e=d){return Lt(e.querySelectorAll(".fragment"))}function He(){mt().forEach((e,t,a)=>{L.slides.insertBefore(e,a[Math.floor(Math.random()*a.length)])})}function ze(e,t){let a=ee(L.wrapper.querySelectorAll(e)),n=a.length,r=se();if(n){g.loop&&(t%=n)<0&&(t=n+t),t=Math.max(Math.min(t,n-1),0);for(let e=0;e{e.classList.add("visible"),e.classList.remove("current-fragment")})):e>t&&(n.classList.add(i?"past":"future"),g.fragments&&ee(n.querySelectorAll(".fragment.visible")).forEach(e=>{e.classList.remove("visible","current-fragment")}))}a[t].classList.add("present"),a[t].removeAttribute("hidden"),a[t].removeAttribute("aria-hidden");let e=a[t].getAttribute("data-state");e&&(k=k.concat(e.split(" ")))}else t=0;return t}function je(){let e,t,a=mt(),n=a.length;if(n&&void 0!==o){let r=Le()?10:g.viewDistance;u&&(r=Le()?6:g.mobileViewDistance),se()&&(r=Number.MAX_VALUE);for(let i=0;iNo notes on this slide.')}function We(){g.progress&&L.progressbar&&(L.progressbar.style.width=ct()*L.wrapper.offsetWidth+"px")}function Fe(){g.slideNumber&&L.slideNumber&&(L.slideNumber.innerHTML=Ue())}function Ue(e=d){let t,a="h.v";if("function"==typeof g.slideNumber)t=g.slideNumber(e);else switch("string"==typeof g.slideNumber&&(a=g.slideNumber),/c/.test(a)||1!==L.wrapper.querySelectorAll(".slides>section").length||(a="c"),t=[],a){case"c":t.push(dt(e)+1);break;case"c/t":t.push(dt(e)+1,"/",wt());break;default:let n=ht(e);t.push(n.h+1);let r="h/v"===a?"/":".";Me(e)&&t.push(r,n.v+1)}let n="#"+xe(e);return function(e,t,a,n="#"+xe()){return"number"!=typeof a||isNaN(a)?`\n\t\t\t\t\t${e}\n\t\t\t\t\t`:`\n\t\t\t\t\t${e}\n\t\t\t\t\t${t}\n\t\t\t\t\t${a}\n\t\t\t\t\t`}(t[0],t[1],t[2],n)}function Ve(){let e=nt(),t=rt();[...L.controlsLeft,...L.controlsRight,...L.controlsUp,...L.controlsDown,...L.controlsPrev,...L.controlsNext].forEach(e=>{e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")}),e.left&&L.controlsLeft.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.right&&L.controlsRight.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.up&&L.controlsUp.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.down&&L.controlsDown.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.left||e.up)&&L.controlsPrev.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.right||e.down)&&L.controlsNext.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),d&&(t.prev&&L.controlsPrev.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),t.next&&L.controlsNext.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),Me(d)?(t.prev&&L.controlsUp.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),t.next&&L.controlsDown.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})):(t.prev&&L.controlsLeft.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),t.next&&L.controlsRight.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))),g.controlsTutorial&&(!A&&e.down?L.controlsDownArrow.classList.add("highlight"):(L.controlsDownArrow.classList.remove("highlight"),g.rtl?!w&&e.left&&0===s?L.controlsLeftArrow.classList.add("highlight"):L.controlsLeftArrow.classList.remove("highlight"):!w&&e.right&&0===s?L.controlsRightArrow.classList.add("highlight"):L.controlsRightArrow.classList.remove("highlight")))}function Xe(e=!1){let t=null,a=g.rtl?"future":"past",n=g.rtl?"past":"future";if(ee(L.background.childNodes).forEach((r,i)=>{r.classList.remove("past","present","future"),io?r.classList.add(n):(r.classList.add("present"),t=r),(e||i===o)&&ee(r.querySelectorAll(".slide-background")).forEach((e,a)=>{e.classList.remove("past","present","future"),as?e.classList.add("future"):(e.classList.add("present"),i===o&&(t=e))})}),c&<(c,{unloadIframes:!et(c)}),t){it(t);let e=t.querySelector(".slide-background-content");if(e){let t=e.style.backgroundImage||"";/\.gif/i.test(t)&&(e.style.backgroundImage="",window.getComputedStyle(e).opacity,e.style.backgroundImage=t)}let a=c?c.getAttribute("data-background-hash"):null,n=t.getAttribute("data-background-hash");n&&n===a&&t!==c&&L.background.classList.add("no-transition"),c=t}d&&["has-light-background","has-dark-background"].forEach(e=>{d.classList.contains(e)?L.wrapper.classList.add(e):L.wrapper.classList.remove(e)}),setTimeout(()=>{L.background.classList.remove("no-transition")},1)}function Ye(){if(g.parallaxBackgroundImage){let e,t,a=mt(),n=vt(),r=L.background.style.backgroundSize.split(" ");1===r.length?e=t=parseInt(r[0],10):(e=parseInt(r[0],10),t=parseInt(r[1],10));let i,l,d=L.background.offsetWidth,c=a.length;i="number"==typeof g.parallaxBackgroundHorizontal?g.parallaxBackgroundHorizontal:c>1?(e-d)/(c-1):0,l=i*o*-1;let u,p,f=L.background.offsetHeight,h=n.length;u="number"==typeof g.parallaxBackgroundVertical?g.parallaxBackgroundVertical:(t-f)/(h-1),p=h>0?u*s:0,L.background.style.backgroundPosition=l+"px "+-p+"px"}}function Ke(){ee(L.wrapper.querySelectorAll("[data-auto-animate-target]")).forEach(e=>{delete e.dataset.autoAnimateTarget})}function _e(e,t){let a={easing:g.autoAnimateEasing,duration:g.autoAnimateDuration,delay:0};if(a=G(a,t),e.closest&&e.parentNode){let t=e.parentNode.closest("[data-auto-animate-target]");t&&(a=_e(t,a))}return e.dataset.autoAnimateEasing&&(a.easing=e.dataset.autoAnimateEasing),e.dataset.autoAnimateDuration&&(a.duration=parseFloat(e.dataset.autoAnimateDuration)),e.dataset.autoAnimateDelay&&(a.delay=parseFloat(e.dataset.autoAnimateDelay)),a}function Je(e,t,a){let n={styles:[]};if(!1!==a.translate||!1!==a.scale){let e;e="function"==typeof a.measure?a.measure(t):t.getBoundingClientRect(),n.x=e.x,n.y=e.y,n.width=e.width,n.height=e.height}const r=getComputedStyle(t);return(a.styles||g.autoAnimateStyles).forEach(t=>{let a;"string"==typeof t&&(t={property:t}),a=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&&(n.styles[t.property]=a)}),n}function Qe(e,t){let a=[];const n="h1, h2, h3, h4, h5, h6, p, li";return Ge(a,e,t,"[data-id]",e=>e.nodeName+":::"+e.getAttribute("data-id")),Ge(a,e,t,n,e=>e.nodeName+":::"+e.innerText),Ge(a,e,t,"img, video, iframe",e=>e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src"))),Ge(a,e,t,"pre",e=>e.nodeName+":::"+e.innerText),a.forEach(e=>{e.from.matches(n)?e.options={scale:!1}:e.from.matches("pre")&&(e.options={scale:!1,styles:["width","height"]},Ge(a,e.from,e.to,".hljs .hljs-ln-code",e=>e.textContent,{scale:!1,styles:[],measure:Ze}),Ge(a,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",e=>e.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:Ze}))}),a}function Ze(e){const t=a.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}}function Ge(e,t,a,n,r,i){let o={},s={};[].slice.call(t.querySelectorAll(n)).forEach((e,t)=>{const a=r(e);"string"==typeof a&&a.length&&(o[a]=o[a]||[],o[a].push(e))}),[].slice.call(a.querySelectorAll(n)).forEach((t,a)=>{const n=r(t);let l;if(s[n]=s[n]||[],s[n].push(t),o[n]){const e=s[n].length-1,t=o[n].length-1;o[n][e]?(l=o[n][e],o[n][e]=null):o[n][t]&&(l=o[n][t],o[n][t]=null)}l&&e.push({from:l,to:t,options:i})})}function et(e){let t=g.preloadIframes;return"boolean"!=typeof t&&(t=e.hasAttribute("data-preload")),t}function tt(e,t={}){e.style.display=g.display,ee(e.querySelectorAll("img[data-src], video[data-src], audio[data-src], iframe[data-src]")).forEach(e=>{("IFRAME"!==e.tagName||et(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))}),ee(e.querySelectorAll("video, audio")).forEach(e=>{var t=0;ee(e.querySelectorAll("source[data-src]")).forEach(e=>{e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1}),t>0&&e.load()});let a=e.slideBackgroundElement;if(a){a.style.display="block";let n=e.slideBackgroundContentElement,r=e.getAttribute("data-background-iframe");if(!1===a.hasAttribute("data-loaded")){a.setAttribute("data-loaded","true");let i=e.getAttribute("data-background-image"),o=e.getAttribute("data-background-video"),s=e.hasAttribute("data-background-video-loop"),l=e.hasAttribute("data-background-video-muted");if(i)n.style.backgroundImage="url("+encodeURI(i)+")";else if(o&&!ut()){let e=document.createElement("video");s&&e.setAttribute("loop",""),l&&(e.muted=!0),u&&(e.muted=!0,e.autoplay=!0,e.setAttribute("playsinline","")),o.split(",").forEach(t=>{e.innerHTML+=''}),n.appendChild(e)}else if(r&&!0!==t.excludeIframes){let e=document.createElement("iframe");e.setAttribute("allowfullscreen",""),e.setAttribute("mozallowfullscreen",""),e.setAttribute("webkitallowfullscreen",""),e.setAttribute("allow","autoplay"),e.setAttribute("data-src",r),e.style.width="100%",e.style.height="100%",e.style.maxHeight="100%",e.style.maxWidth="100%",n.appendChild(e)}}let i=n.querySelector("iframe[data-src]");i&&et(a)&&!/autoplay=(1|true|yes)/gi.test(r)&&i.getAttribute("src")!==r&&i.setAttribute("src",r)}}function at(e){e.style.display="none";let t=kt(e);t&&(t.style.display="none",ee(t.querySelectorAll("iframe[src]")).forEach(e=>{e.removeAttribute("src")})),ee(e.querySelectorAll("video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]")).forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}),ee(e.querySelectorAll("video[data-lazy-loaded] source[src], audio source[src]")).forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})}function nt(){var e=L.wrapper.querySelectorAll(".slides>section"),t=L.wrapper.querySelectorAll(".slides>section.present>section");let a={left:o>0,right:o0,down:s1&&(a.left=!0,a.right=!0),t.length>1&&(a.up=!0,a.down=!0)),g.rtl){let e=a.left;a.left=a.right,a.right=e}return a}function rt(){if(d&&g.fragments){let e=d.querySelectorAll(".fragment"),t=d.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function it(e){e&&!ut()&&(ee(e.querySelectorAll('img[src$=".gif"]')).forEach(e=>{e.setAttribute("src",e.getAttribute("src"))}),ee(e.querySelectorAll("video, audio")).forEach(e=>{if(ie(e,".fragment")&&!ie(e,".fragment.visible"))return;let t=g.autoPlayMedia;if("boolean"!=typeof t&&(t=e.hasAttribute("data-autoplay")||!!ie(e,".slide-background")),t&&"function"==typeof e.play)if(e.readyState>1)ot({target:e});else if(u){let t=e.play();t&&"function"==typeof t.catch&&!1===e.controls&&t.catch((function(){e.controls=!0,e.addEventListener("play",()=>{e.controls=!1})}))}else e.removeEventListener("loadeddata",ot),e.addEventListener("loadeddata",ot)}),ee(e.querySelectorAll("iframe[src]")).forEach(e=>{ie(e,".fragment")&&!ie(e,".fragment.visible")||st({target:e})}),ee(e.querySelectorAll("iframe[data-src]")).forEach(e=>{ie(e,".fragment")&&!ie(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",st),e.addEventListener("load",st),e.setAttribute("src",e.getAttribute("data-src")))}))}function ot(e){let t=!!ie(e.target,"html"),a=!!ie(e.target,".present");t&&a&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",ot)}function st(e){let t=e.target;if(t&&t.contentWindow){let a=!!ie(e.target,"html"),n=!!ie(e.target,".present");if(a&&n){let e=g.autoPlayMedia;"boolean"!=typeof e&&(e=t.hasAttribute("data-autoplay")||!!ie(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&e?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&e?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}function lt(e,t={}){t=G({unloadIframes:!0},t),e&&e.parentNode&&(ee(e.querySelectorAll("video, audio")).forEach(e=>{e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())}),ee(e.querySelectorAll("iframe")).forEach(e=>{e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",st)}),ee(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),ee(e.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===t.unloadIframes&&ee(e.querySelectorAll("iframe[data-src]")).forEach(e=>{e.setAttribute("src","about:blank"),e.removeAttribute("src")}))}function dt(e=d){let t=mt(),a=0;e:for(let n=0;n0){let a=.9;t+=d.querySelectorAll(".fragment.visible").length/e.length*a}}return Math.min(t/(e-1),1)}function ut(){return!!window.location.search.match(/receiver/gi)}function pt(){let e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(!/^[0-9]*$/.test(t[0])&&n.length){let e;try{e=document.getElementById(decodeURIComponent(n))}catch(e){}let t=!!d&&d.getAttribute("id")===n;if(e){if(!t){let t=a.getIndices(e);Re(t.h,t.v)}}else Re(o||0,s||0)}else{let e,a=g.hashOneBasedIndex?1:0,n=parseInt(t[0],10)-a||0,r=parseInt(t[1],10)-a||0;g.fragmentInURL&&(e=parseInt(t[2],10),isNaN(e)&&(e=void 0)),n===o&&r===s&&void 0===e||Re(n,r,e)}}function ft(e){clearTimeout(I),"number"==typeof e?I=setTimeout(ft,e):d&&(g.history||!window.history?window.location.hash=xe():g.hash?window.history.replaceState(null,null,"#"+xe()):window.history.replaceState(null,null,window.location.pathname+window.location.search))}function ht(e){let t,a=o,n=s;if(e){let t=Me(e),r=t?e.parentNode:e,i=ee(L.wrapper.querySelectorAll(".slides>section"));a=Math.max(i.indexOf(r),0),n=void 0,t&&(n=Math.max(ee(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&d){if(d.querySelectorAll(".fragment").length>0){let e=d.querySelector(".current-fragment");t=e&&e.hasAttribute("data-fragment-index")?parseInt(e.getAttribute("data-fragment-index"),10):d.querySelectorAll(".fragment.visible").length-1}}return{h:a,v:n,f:t}}function gt(){return ee(L.wrapper.querySelectorAll('.slides section:not(.stack):not([data-visibility="uncounted"])'))}function mt(){return ee(L.wrapper.querySelectorAll(".slides>section"))}function vt(){return ee(L.wrapper.querySelectorAll(".slides>section>section"))}function bt(){return mt().length>1}function yt(){return vt().length>1}function wt(){return gt().length}function At(e,t){let a=mt()[e],n=a&&a.querySelectorAll("section");return n&&n.length&&"number"==typeof t?n?n[t]:void 0:a}function kt(e,t){let a="number"==typeof e?At(e,t):e;if(a)return a.slideBackgroundElement}function Et(e=d){if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");let t=e.querySelector("aside.notes");return t?t.innerHTML:null}function St(){let e=ht();return{indexh:e.h,indexv:e.v,indexf:e.f,paused:Ce(),overview:Le()}}function Lt(e,t=!1){e=ee(e);let a=[],n=[],r=[];e.forEach(e=>{if(e.hasAttribute("data-fragment-index")){let t=parseInt(e.getAttribute("data-fragment-index"),10);a[t]||(a[t]=[]),a[t].push(e)}else n.push([e])}),a=a.concat(n);let i=0;return a.forEach(e=>{e.forEach(e=>{r.push(e),e.setAttribute("data-fragment-index",i)}),i++}),!0===t?a:r}function xt(e,t){let a={shown:[],hidden:[]};if(d&&g.fragments&&(t=t||Lt(d.querySelectorAll(".fragment"))).length){let n=0;if("number"!=typeof e){let t=Lt(d.querySelectorAll(".fragment.visible")).pop();t&&(e=parseInt(t.getAttribute("data-fragment-index")||0,10))}ee(t).forEach((t,r)=>{t.hasAttribute("data-fragment-index")&&(r=parseInt(t.getAttribute("data-fragment-index"),10)),n=Math.max(n,r),r<=e?(t.classList.contains("visible")||a.shown.push(t),t.classList.add("visible"),t.classList.remove("current-fragment"),L.statusDiv.textContent=V(t),r===e&&(t.classList.add("current-fragment"),it(t))):(t.classList.contains("visible")&&a.hidden.push(t),t.classList.remove("visible"),t.classList.remove("current-fragment"))}),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,n),-1),d.setAttribute("data-fragment",e)}return a}function Mt(e,t=0){if(d&&g.fragments){let a=Lt(d.querySelectorAll(".fragment"));if(a.length){if("number"!=typeof e){let t=Lt(d.querySelectorAll(".fragment.visible")).pop();e=t?parseInt(t.getAttribute("data-fragment-index")||0,10):-1}let n=xt(e+=t,a);return n.hidden.length&&le("fragmenthidden",{fragment:n.hidden[0],fragments:n.hidden}),n.shown.length&&le("fragmentshown",{fragment:n.shown[0],fragments:n.shown}),Ve(),We(),g.fragmentInURL&&ft(),!(!n.shown.length&&!n.hidden.length)}}return!1}function Nt(){return Mt(null,1)}function qt(){return Mt(null,-1)}function It(){if(Pt(),d&&!1!==g.autoSlide){let e=d.querySelector(".current-fragment");e||(e=d.querySelector(".fragment"));let t=e?e.getAttribute("data-autoslide"):null,n=d.parentNode?d.parentNode.getAttribute("data-autoslide"):null,r=d.getAttribute("data-autoslide");R=t?parseInt(t,10):r?parseInt(r,10):n?parseInt(n,10):g.autoSlide,0===d.querySelectorAll(".fragment").length&&ee(d.querySelectorAll("video, audio")).forEach(e=>{e.hasAttribute("data-autoplay")&&R&&1e3*e.duration/e.playbackRate>R&&(R=1e3*e.duration/e.playbackRate+1e3)}),!R||H||Ce()||Le()||a.isLastSlide()&&!rt().next&&!0!==g.loop||(D=setTimeout(()=>{"function"==typeof g.autoSlideMethod?g.autoSlideMethod():zt(),It()},R),B=Date.now()),h&&h.setPlaying(-1!==D)}}function Pt(){clearTimeout(D),D=-1}function Tt(){R&&!H&&(H=!0,le("autoslidepaused"),clearTimeout(D),h&&h.setPlaying(!1))}function Ct(){R&&H&&(H=!1,le("autoslideresumed"),It())}function Ot(){w=!0,g.rtl?(Le()||!1===Nt())&&nt().left&&Re(o+1,"grid"===g.navigationMode?s:void 0):(Le()||!1===qt())&&nt().left&&Re(o-1,"grid"===g.navigationMode?s:void 0)}function Rt(){w=!0,g.rtl?(Le()||!1===qt())&&nt().right&&Re(o-1,"grid"===g.navigationMode?s:void 0):(Le()||!1===Nt())&&nt().right&&Re(o+1,"grid"===g.navigationMode?s:void 0)}function Dt(){(Le()||!1===qt())&&nt().up&&Re(o,s-1)}function Bt(){A=!0,(Le()||!1===Nt())&&nt().down&&Re(o,s+1)}function Ht(){if(!1===qt())if(nt().up)Dt();else{let e;if(e=g.rtl?ee(L.wrapper.querySelectorAll(".slides>section.future")).pop():ee(L.wrapper.querySelectorAll(".slides>section.past")).pop(),e){let t=e.querySelectorAll("section").length-1||void 0;Re(o-1,t)}}}function zt(){if(w=!0,A=!0,!1===Nt()){let e=nt();e.down&&e.right&&g.loop&&a.isLastVerticalSlide(d)&&(e.down=!1),e.down?Bt():g.rtl?Ot():Rt()}}function jt(e){for(;e&&"function"==typeof e.hasAttribute;){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNode}return!1}function $t(e){g.autoSlideStoppable&&Tt()}function Wt(e){Ne(),clearTimeout(T),T=setTimeout(qe,g.hideCursorTime)}function Ft(e){e.shiftKey&&63===e.charCode&&pe()}function Ut(e){if("function"==typeof g.keyboardCondition&&!1===g.keyboardCondition(e))return!0;let t=e.keyCode,n=H;$t();let r=document.activeElement&&"inherit"!==document.activeElement.contentEditable,i=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),s=e.shiftKey&&32===e.keyCode,l=e.shiftKey&&37===t,d=e.shiftKey&&39===t,c=!s&&!l&&!d&&(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey);if(r||i||o||c)return;let u,p=[66,86,190,191];if("object"==typeof g.keyboard)for(u in g.keyboard)"togglePause"===g.keyboard[u]&&p.push(parseInt(u,10));if(Ce()&&-1===p.indexOf(t))return!1;let f="linear"===g.navigationMode||!bt()||!yt(),h=!1;if("object"==typeof g.keyboard)for(u in g.keyboard)if(parseInt(u,10)===t){var m=g.keyboard[u];"function"==typeof m?m.apply(null,[e]):"string"==typeof m&&"function"==typeof a[m]&&a[m].call(),h=!0}if(!1===h)for(u in $)if(parseInt(u,10)===t){let t=$[u].callback;"function"==typeof t?t.apply(null,[e]):"string"==typeof t&&"function"==typeof a[t]&&a[t].call(),h=!0}!1===h&&(h=!0,80===t||33===t?Ht():78===t||34===t?zt():72===t||37===t?l?Re(0):!Le()&&f?Ht():Ot():76===t||39===t?d?Re(Number.MAX_VALUE):!Le()&&f?zt():Rt():75===t||38===t?!Le()&&f?Ht():Dt():74===t||40===t?!Le()&&f?zt():Bt():36===t?Re(0):35===t?Re(Number.MAX_VALUE):32===t?(Le()&&Ee(),e.shiftKey?Ht():zt()):58===t||59===t||66===t||86===t||190===t||191===t?Te():70===t?function(){let e=document.documentElement,t=e.requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)}():65===t?g.autoSlideStoppable&&Oe(n):h=!1),h?e.preventDefault&&e.preventDefault():27!==t&&79!==t||(L.overlay?he():Se(),e.preventDefault&&e.preventDefault()),It()}function Vt(e){if(jt(e.target))return!0;z.startX=e.touches[0].clientX,z.startY=e.touches[0].clientY,z.startCount=e.touches.length}function Xt(e){if(jt(e.target))return!0;if(z.captured)r.match(/android/gi)&&e.preventDefault();else{$t();let t=e.touches[0].clientX,a=e.touches[0].clientY;if(1===e.touches.length&&2!==z.startCount){let n=t-z.startX,r=a-z.startY;n>z.threshold&&Math.abs(n)>Math.abs(r)?(z.captured=!0,"linear"===g.navigationMode?g.rtl?zt():Ht():Ot()):n<-z.threshold&&Math.abs(n)>Math.abs(r)?(z.captured=!0,"linear"===g.navigationMode?g.rtl?Ht():zt():Rt()):r>z.threshold?(z.captured=!0,"linear"===g.navigationMode?Ht():Dt()):r<-z.threshold&&(z.captured=!0,"linear"===g.navigationMode?zt():Bt()),g.embedded?(z.captured||Me(d))&&e.preventDefault():e.preventDefault()}}}function Yt(e){z.captured=!1}function Kt(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Vt(e))}function _t(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Xt(e))}function Jt(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Yt())}function Qt(e){if(Date.now()-q>600){q=Date.now();let t=e.detail||-e.wheelDelta;t>0?zt():t<0&&Ht()}}function Zt(e){$t(),e.preventDefault();let t=mt().length,a=Math.floor(e.clientX/L.wrapper.offsetWidth*t);g.rtl&&(a=t-a),Re(a)}function Gt(e){e.preventDefault(),$t(),"linear"===g.navigationMode?Ht():Ot()}function ea(e){e.preventDefault(),$t(),"linear"===g.navigationMode?zt():Rt()}function ta(e){e.preventDefault(),$t(),Dt()}function aa(e){e.preventDefault(),$t(),Bt()}function na(e){e.preventDefault(),$t(),Ht()}function ra(e){e.preventDefault(),$t(),zt()}function ia(e){pt()}function oa(e){ge()}function sa(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function la(e){if(C&&Le()){e.preventDefault();let t=e.target;for(;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled"))if(Ee(),t.nodeName.match(/section/gi))Re(parseInt(t.getAttribute("data-index-h"),10),parseInt(t.getAttribute("data-index-v"),10))}}function da(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){let t=e.currentTarget.getAttribute("href");t&&(!function(e){he(),L.overlay=document.createElement("div"),L.overlay.classList.add("overlay"),L.overlay.classList.add("overlay-preview"),L.wrapper.appendChild(L.overlay),L.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
`,L.overlay.querySelector("iframe").addEventListener("load",e=>{L.overlay.classList.add("loaded")},!1),L.overlay.querySelector(".close").addEventListener("click",e=>{he(),e.preventDefault()},!1),L.overlay.querySelector(".external").addEventListener("click",e=>{he()},!1)}(t),e.preventDefault())}}function ca(e){a.isLastSlide()&&!1===g.loop?(Re(0,0),Ct()):H?Ct():Tt()}return a={VERSION:"4.0.0-dev",configure:J,sync:De,syncSlide:function(e=d){_(e),Be(e),tt(e),Xe(),$e()},syncFragments:Be,slide:Re,left:Ot,right:Rt,up:Dt,down:Bt,prev:Ht,next:zt,navigateTo:Re,navigateLeft:Ot,navigateRight:Rt,navigateUp:Dt,navigateDown:Bt,navigatePrev:Ht,navigateNext:zt,navigateFragment:Mt,prevFragment:qt,nextFragment:Nt,layout:ge,shuffle:He,availableRoutes:nt,availableFragments:rt,toggleHelp:pe,toggleOverview:Se,togglePause:Te,toggleAutoSlide:Oe,isOverview:Le,isPaused:Ce,isAutoSliding:function(){return!(!R||H)},isSpeakerNotes:ut,loadSlide:tt,unloadSlide:at,addEventListeners:Q,removeEventListeners:Z,getState:St,setState:function(e){if("object"==typeof e){Re(te(e.indexh),te(e.indexv),te(e.indexf));var t=te(e.paused),a=te(e.overview);"boolean"==typeof t&&t!==Ce()&&Te(t),"boolean"==typeof a&&a!==Le()&&Se(a)}},getSlidePastCount:dt,getProgress:ct,getIndices:ht,getSlides:gt,getSlidesAttributes:function(){return gt().map((function(e){let t={};for(let a=0;al,getCurrentSlide:()=>d,getScale:()=>E,getConfig:()=>g,getQueryHash:()=>{let e={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,t=>{e[t.split("=").shift()]=t.split("=").pop()});for(let t in e){let a=e[t];e[t]=te(unescape(a))}return e},getRevealElement:()=>L.wrapper||document.querySelector(".reveal"),getPlugins:()=>x,isFirstSlide:()=>0===o&&0===s,isLastSlide:()=>!!d&&(!d.nextElementSibling&&(!Me(d)||!d.parentNode.nextElementSibling)),isLastVerticalSlide:()=>!(!d||!Me(d))&&!d.nextElementSibling,isReady:()=>m,addEventListener:(e,t,n)=>{"addEventListener"in window&&a.getRevealElement().addEventListener(e,t,n)},removeEventListener:(e,t,n)=>{"addEventListener"in window&&a.getRevealElement().removeEventListener(e,t,n)},triggerKey:e=>{Ut({keyCode:e})},registerKeyboardShortcut:(e,t)=>{j[e]=t}},function(){if(!e)return void console.warn("reveal.js must be instantiated with a valid .reveal element");!function(){u=/(iphone|ipod|ipad|android)/gi.test(r)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,p=/chrome/i.test(r)&&!/edge/i.test(r);let e=document.createElement("div");N.zoom="zoom"in e.style&&!u&&(p||/Version\/[\d\.]+.*Safari/.test(r))}(),L.wrapper=e,L.slides=e.querySelector(".slides"),window.addEventListener("load",ge,!1);let n=a.getQueryHash();var i,o;return void 0!==n.dependencies&&delete n.dependencies,G(g,t),G(g,n),i=[],o=0,g.dependencies.forEach(e=>{e.condition&&!e.condition()||(e.async?M.push(e):i.push(e))}),i.length?(o=i.length,i.forEach(e=>{U(e.src,(function(){"function"==typeof e.callback&&e.callback(),0==--o&&W()}))})):W(),a}()};window.Reveal=r,window.Reveal.initialize=e=>{window.Reveal=new r(document.querySelector(".reveal"),e)}}]); \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 721492a..9f7fce3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -26,7 +26,7 @@ const license = `/*! */\n` -gulp.task('js', () => gulp.src(['./js/app.js']) +gulp.task('js', () => gulp.src(['./js/index.js']) .pipe(babel({ presets: ['@babel/preset-env'] })) .pipe(webpack({ mode: 'production' @@ -90,7 +90,7 @@ gulp.task('serve', () => { livereload: true }) - gulp.watch(['js/*.js'], gulp.series('js')) + gulp.watch(['js/**/*'], gulp.series('js')) gulp.watch([ 'css/theme/source/*.{sass,scss}', diff --git a/js/app.js b/js/app.js deleted file mode 100644 index 027e3e4..0000000 --- a/js/app.js +++ /dev/null @@ -1,3 +0,0 @@ -import Reveal from './reveal.js' - -window.Reveal = Reveal(); \ No newline at end of file diff --git a/js/index.js b/js/index.js new file mode 100644 index 0000000..e9286e0 --- /dev/null +++ b/js/index.js @@ -0,0 +1,12 @@ +import _reveal from './reveal.js' + +// The Reveal class can be instantiated to run multiple +// presentations on the same page +window.Reveal = _reveal; + +// Simplified way to create a reveal.js instance on +// a page with only one presentation, makes us backwards +// compatible with reveal.js pre 4.0 +window.Reveal.initialize = options => { + window.Reveal = new _reveal( document.querySelector( '.reveal' ), options ); +} \ No newline at end of file diff --git a/js/reveal.js b/js/reveal.js index 65df5a9..afa3567 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -7,7 +7,7 @@ import Playback from './components/playback.js' * * Copyright (C) 2020 Hakim El Hattab, http://hakim.se */ -export default function() { +export default function( revealElement, options ) { 'use strict'; @@ -306,9 +306,6 @@ export default function() { }, - // Flags if Reveal.initialize() has been called - initialized = false, - // Flags if reveal.js is loaded (has dispatched the 'ready' event) loaded = false, @@ -412,18 +409,18 @@ export default function() { /** * Starts up the presentation if the client is capable. */ - function initialize( options ) { + function init() { - // Make sure we only initialize once - if( initialized === true ) return; - - initialized = true; + if( !revealElement ) { + console.warn( 'reveal.js must be instantiated with a valid .reveal element' ); + return; + } checkCapabilities(); // Cache references to key DOM elements - dom.wrapper = document.querySelector( '.reveal' ); - dom.slides = document.querySelector( '.reveal .slides' ); + dom.wrapper = revealElement; + dom.slides = revealElement.querySelector( '.slides' ); // Force a layout when the whole page, incl fonts, has loaded window.addEventListener( 'load', layout, false ); @@ -441,6 +438,8 @@ export default function() { // Loads dependencies and continues to #start() once done load(); + return Reveal; + } /** @@ -6175,7 +6174,6 @@ export default function() { Reveal = { VERSION: VERSION, - initialize, configure, sync, @@ -6404,6 +6402,6 @@ export default function() { } }; - return Reveal; + return init(); }; \ No newline at end of file