text: /*!
   * reveal.js 3.5.0 (2017-11-06, 23:39)
   * http://lab.hakim.se/reveal-js
   * MIT licensed
   *
   * Copyright (C) 2017 Hakim El Hattab, http://hakim.se
   */
  !function(a,b){"function"==typeof define&&define.amd?define(function(){return a.Reveal=b(),a.Reveal}):"object"==typeof exports?module.exports=b():a.Reveal=b()}(this,function(){"use strict";function a(a){if(!0!==Rb)if(Rb=!0,b(),ac.transforms2d||ac.transforms3d){_b.wrapper=document.querySelector(".reveal"),_b.slides=document.querySelector(".reveal .slides"),window.addEventListener("load",N,!1);var d=Bb.getQueryHash();void 0!==d.dependencies&&delete d.dependencies,q(Qb,a),q(Qb,d),C(),c()}else{document.body.setAttribute("class","no-transforms");for(var e=r(document.getElementsByTagName("img")),f=r(document.getElementsByTagName("iframe")),g=e.concat(f),h=0,i=g.length;h<i;h++){var j=g[h];j.getAttribute("data-src")&&(j.setAttribute("src",j.getAttribute("data-src")),j.removeAttribute("data-src"))}}}function b(){Hb=/(iphone|ipod|ipad|android)/gi.test(Pb),Ib=/chrome/i.test(Pb)&&!/edge/i.test(Pb);var a=document.createElement("div");ac.transforms3d="WebkitPerspective"in a.style||"MozPerspective"in a.style||"msPerspective"in a.style||"OPerspective"in a.style||"perspective"in a.style,ac.transforms2d="WebkitTransform"in a.style||"MozTransform"in a.style||"msTransform"in a.style||"OTransform"in a.style||"transform"in a.style,ac.requestAnimationFrameMethod=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,ac.requestAnimationFrame="function"==typeof ac.requestAnimationFrameMethod,ac.canvas=!!document.createElement("canvas").getContext,ac.overviewTransitions=!/Version\/[\d\.]+.*Safari/.test(Pb),ac.zoom="zoom"in a.style&&!Hb&&(Ib||/Version\/[\d\.]+.*Safari/.test(Pb))}function c(){function a(){e.length&&head.js.apply(null,e),d()}function b(b){head.ready(b.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],function(){"function"==typeof b.callback&&b.callback.apply(this),0==--f&&a()})}for(var c=[],e=[],f=0,g=0,h=Qb.dependencies.length;g<h;g++){var i=Qb.dependencies[g];i.condition&&!i.condition()||(i.async?e.push(i.src):c.push(i.src),b(i))}c.length?(f=c.length,head.js.apply(null,c)):a()}function d(){e(),m(),i(),ga(),n(),Ga(),sa(!0),setTimeout(function(){_b.slides.classList.remove("no-transition"),Sb=!0,_b.wrapper.classList.add("ready"),E("ready",{indexh:Cb,indexv:Db,currentSlide:Fb})},1),B()&&(p(),"complete"===document.readyState?h():window.addEventListener("load",h))}function e(){_b.slides.classList.add("no-transition"),Hb?_b.wrapper.classList.add("no-hover"):_b.wrapper.classList.remove("no-hover"),/iphone/gi.test(Pb)?_b.wrapper.classList.add("ua-iphone"):_b.wrapper.classList.remove("ua-iphone"),_b.background=j(_b.wrapper,"div","backgrounds",null),_b.progress=j(_b.wrapper,"div","progress","<span></span>"),_b.progressbar=_b.progress.querySelector("span"),_b.controls=j(_b.wrapper,"aside","controls",'<button class="navigate-left" aria-label="previous slide"><div class="controls-arrow"></div></button><button class="navigate-right" aria-label="next slide"><div class="controls-arrow"></div></button><button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button><button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>'),_b.slideNumber=j(_b.wrapper,"div","slide-number",""),_b.speakerNotes=j(_b.wrapper,"div","speaker-notes",null),_b.speakerNotes.setAttribute("data-prevent-swipe",""),_b.speakerNotes.setAttribute("tabindex","0"),j(_b.wrapper,"div","pause-overlay",null),_b.wrapper.setAttribute("role","application"),_b.controlsLeft=r(document.querySelectorAll(".navigate-left")),_b.controlsRight=r(document.querySelectorAll(".navigate-right")),_b.controlsUp=r(document.querySelectorAll(".navigate-up")),_b.controlsDown=r(document.querySelectorAll(".navigate-down")),_b.controlsPrev=r(document.querySelectorAll(".navigate-prev")),_b.controlsNext=r(document.querySelectorAll(".navigate-next")),_b.controlsRightArrow=_b.controls.querySelector(".navigate-right"),_b.controlsDownArrow=_b.controls.querySelector(".navigate-down"),_b.statusDiv=f()}function f(){var a=document.getElementById("aria-status-div");return a||(a=document.createElement("div"),a.style.position="absolute",a.style.height="1px",a.style.width="1px",a.style.overflow="hidden",a.style.clip="rect( 1px, 1px, 1px, 1px )",a.setAttribute("id","aria-status-div"),a.setAttribute("aria-live","polite"),a.setAttribute("aria-atomic","true"),_b.wrapper.appendChild(a)),a}function g(a){var b="";if(3===a.nodeType)b+=a.textContent;else if(1===a.nodeType){var c=a.getAttribute("aria-hidden"),d="none"===window.getComputedStyle(a).display;"true"===c||d||r(a.childNodes).forEach(function(a){b+=g(a)})}return b}function h(){var a=P(window.innerWidth,window.innerHeight),b=Math.floor(a.width*(1+Qb.margin)),c=Math.floor(a.height*(1+Qb.margin)),d=a.width,e=a.height;w("@page{size:"+b+"px "+c+"px; margin: 0px;}"),w(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+d+"px; max-height:"+e+"px}"),document.body.classList.add("print-pdf"),document.body.style.width=b+"px",document.body.style.height=c+"px",O(d,e),r(_b.wrapper.querySelectorAll(Mb)).forEach(function(a,b){a.setAttribute("data-index-h",b),a.classList.contains("stack")&&r(a.querySelectorAll("section")).forEach(function(a,c){a.setAttribute("data-index-h",b),a.setAttribute("data-index-v",c)})}),r(_b.wrapper.querySelectorAll(Lb)).forEach(function(a){if(!1===a.classList.contains("stack")){var f=(b-d)/2,g=(c-e)/2,h=a.scrollHeight,i=Math.max(Math.ceil(h/c),1);i=Math.min(i,Qb.pdfMaxPagesPerSlide),(1===i&&Qb.center||a.classList.contains("center"))&&(g=Math.max((c-h)/2,0));var j=document.createElement("div");if(j.className="pdf-page",j.style.height=(c+Qb.pdfPageHeightOffset)*i+"px",a.parentNode.insertBefore(j,a),j.appendChild(a),a.style.left=f+"px",a.style.top=g+"px",a.style.width=d+"px",a.slideBackgroundElement&&j.insertBefore(a.slideBackgroundElement,a),Qb.showNotes){var k=Na(a);if(k){var l=8,m="string"==typeof Qb.showNotes?Qb.showNotes:"inline",n=document.createElement("div");n.classList.add("speaker-notes"),n.classList.add("speaker-notes-pdf"),n.setAttribute("data-layout",m),n.innerHTML=k,"separate-page"===m?j.parentNode.insertBefore(n,j.nextSibling):(n.style.left=l+"px",n.style.bottom=l+"px",n.style.width=b-2*l+"px",j.appendChild(n))}}if(Qb.slideNumber&&/all|print/i.test(Qb.showSlideNumber)){var o=parseInt(a.getAttribute("data-index-h"),10)+1,p=parseInt(a.getAttribute("data-index-v"),10)+1,q=document.createElement("div");q.classList.add("slide-number"),q.classList.add("slide-number-pdf"),q.innerHTML=qa(o,".",p),j.appendChild(q)}}}),r(_b.wrapper.querySelectorAll(Lb+" .fragment")).forEach(function(a){a.classList.add("visible")}),E("pdf-ready")}function i(){setInterval(function(){0===_b.wrapper.scrollTop&&0===_b.wrapper.scrollLeft||(_b.wrapper.scrollTop=0,_b.wrapper.scrollLeft=0)},1e3)}function j(a,b,c,d){for(var e=a.querySelectorAll("."+c),f=0;f<e.length;f++){var g=e[f];if(g.parentNode===a)return g}var h=document.createElement(b);return h.className=c,"string"==typeof d&&(h.innerHTML=d),a.appendChild(h),h}function k(){B();_b.background.innerHTML="",_b.background.classList.add("no-transition"),r(_b.wrapper.querySelectorAll(Mb)).forEach(function(a){var b=l(a,_b.background);r(a.querySelectorAll("section")).forEach(function(a){l(a,b),b.classList.add("stack")})}),Qb.parallaxBackgroundImage?(_b.background.style.backgroundImage='url("'+Qb.parallaxBackgroundImage+'")',_b.background.style.backgroundSize=Qb.parallaxBackgroundSize,setTimeout(function(){_b.wrapper.classList.add("has-parallax-background")},1)):(_b.background.style.backgroundImage="",_b.wrapper.classList.remove("has-parallax-background"))}function l(a,b){var c={background:a.getAttribute("data-background"),backgroundSize:a.getAttribute("data-background-size"),backgroundImage:a.getAttribute("data-background-image"),backgroundVideo:a.getAttribute("data-background-video"),backgroundIframe:a.getAttribute("data-background-iframe"),backgroundColor:a.getAttribute("data-background-color"),backgroundRepeat:a.getAttribute("data-background-repeat"),backgroundPosition:a.getAttribute("data-background-position"),backgroundTransition:a.getAttribute("data-background-transition")},d=document.createElement("div");d.className="slide-background "+a.className.replace(/present|past|future/,""),c.background&&(/^(http|file|\/\/)/gi.test(c.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#]|$)/gi.test(c.background)?a.setAttribute("data-background-image",c.background):d.style.background=c.background),(c.background||c.backgroundColor||c.backgroundImage||c.backgroundVideo||c.backgroundIframe)&&d.setAttribute("data-background-hash",c.background+c.backgroundSize+c.backgroundImage+c.backgroundVideo+c.backgroundIframe+c.backgroundColor+c.backgroundRepeat+c.backgroundPosition+c.backgroundTransition),c.backgroundSize&&(d.style.backgroundSize=c.backgroundSize),c.backgroundSize&&d.setAttribute("data-background-size",c.backgroundSize),c.backgroundColor&&(d.style.backgroundColor=c.backgroundColor),c.backgroundRepeat&&(d.style.backgroundRepeat=c.backgroundRepeat),c.backgroundPosition&&(d.style.backgroundPosition=c.backgroundPosition),c.backgroundTransition&&d.setAttribute("data-background-transition",c.backgroundTransition),b.appendChild(d),a.classList.remove("has-dark-background"),a.classList.remove("has-light-background"),a.slideBackgroundElement=d;var e=window.getComputedStyle(d);if(e&&e.backgroundColor){var f=y(e.backgroundColor);f&&0!==f.a&&(z(e.backgroundColor)<128?a.classList.add("has-dark-background"):a.classList.add("has-light-background"))}return d}function m(){Qb.postMessage&&window.addEventListener("message",function(a){var b=a.data;"string"==typeof b&&"{"===b.charAt(0)&&"}"===b.charAt(b.length-1)&&(b=JSON.parse(b),b.method&&"function"==typeof Bb[b.method]&&Bb[b.method].apply(Bb,b.args))},!1)}function n(a){var b=_b.wrapper.querySelectorAll(Lb).length;_b.wrapper.classList.remove(Qb.transition),"object"==typeof a&&q(Qb,a),!1===ac.transforms3d&&(Qb.transition="linear"),_b.wrapper.classList.add(Qb.transition),_b.wrapper.setAttribute("data-transition-speed",Qb.transitionSpeed),_b.wrapper.setAttribute("data-background-transition",Qb.backgroundTransition),_b.controls.style.display=Qb.controls?"block":"none",_b.progress.style.display=Qb.progress?"block":"none",_b.controls.setAttribute("data-controls-layout",Qb.controlsLayout),_b.controls.setAttribute("data-controls-back-arrows",Qb.controlsBackArrows),Qb.shuffle&&ia(),Qb.rtl?_b.wrapper.classList.add("rtl"):_b.wrapper.classList.remove("rtl"),Qb.center?_b.wrapper.classList.add("center"):_b.wrapper.classList.remove("center"),!1===Qb.pause&&_(),Qb.showNotes&&_b.speakerNotes.setAttribute("data-layout","string"==typeof Qb.showNotes?Qb.showNotes:"inline"),Qb.mouseWheel?(document.addEventListener("DOMMouseScroll",mb,!1),document.addEventListener("mousewheel",mb,!1)):(document.removeEventListener("DOMMouseScroll",mb,!1),document.removeEventListener("mousewheel",mb,!1)),Qb.rollingLinks?F():G(),Qb.previewLinks?(H(),I("[data-preview-link=false]")):(I(),H("[data-preview-link]:not([data-preview-link=false])")),Jb&&(Jb.destroy(),Jb=null),b>1&&Qb.autoSlide&&Qb.autoSlideStoppable&&ac.canvas&&ac.requestAnimationFrame&&(Jb=new Ab(_b.wrapper,function(){return Math.min(Math.max((Date.now()-gc)/ec,0),1)}),Jb.on("click",zb),hc=!1),!1===Qb.fragments&&r(_b.slides.querySelectorAll(".fragment")).forEach(function(a){a.classList.add("visible"),a.classList.remove("current-fragment")});var c="none";Qb.slideNumber&&!B()&&("all"===Qb.showSlideNumber?c="block":"speaker"===Qb.showSlideNumber&&Fa()&&(c="block")),_b.slideNumber.style.display=c,fa()}function o(){if(dc=!0,window.addEventListener("hashchange",ub,!1),window.addEventListener("resize",vb,!1),Qb.touch&&(_b.wrapper.addEventListener("touchstart",gb,!1),_b.wrapper.addEventListener("touchmove",hb,!1),_b.wrapper.addEventListener("touchend",ib,!1),window.navigator.pointerEnabled?(_b.wrapper.addEventListener("pointerdown",jb,!1),_b.wrapper.addEventListener("pointermove",kb,!1),_b.wrapper.addEventListener("pointerup",lb,!1)):window.navigator.msPointerEnabled&&(_b.wrapper.addEventListener("MSPointerDown",jb,!1),_b.wrapper.addEventListener("MSPointerMove",kb,!1),_b.wrapper.addEventListener("MSPointerUp",lb,!1))),Qb.keyboard&&(document.addEventListener("keydown",fb,!1),document.addEventListener("keypress",eb,!1)),Qb.progress&&_b.progress&&_b.progress.addEventListener("click",nb,!1),Qb.focusBodyOnPageVisibilityChange){var a;"hidden"in document?a="visibilitychange":"msHidden"in document?a="msvisibilitychange":"webkitHidden"in document&&(a="webkitvisibilitychange"),a&&document.addEventListener(a,wb,!1)}var b=["touchstart","click"];Pb.match(/android/gi)&&(b=["touchstart"]),b.forEach(function(a){_b.controlsLeft.forEach(function(b){b.addEventListener(a,ob,!1)}),_b.controlsRight.forEach(function(b){b.addEventListener(a,pb,!1)}),_b.controlsUp.forEach(function(b){b.addEventListener(a,qb,!1)}),_b.controlsDown.forEach(function(b){b.addEventListener(a,rb,!1)}),_b.controlsPrev.forEach(function(b){b.addEventListener(a,sb,!1)}),_b.controlsNext.forEach(function(b){b.addEventListener(a,tb,!1)})})}function p(){dc=!1,document.removeEventListener("keydown",fb,!1),document.removeEventListener("keypress",eb,!1),window.removeEventListener("hashchange",ub,!1),window.removeEventListener("resize",vb,!1),_b.wrapper.removeEventListener("touchstart",gb,!1),_b.wrapper.removeEventListener("touchmove",hb,!1),_b.wrapper.removeEventListener("touchend",ib,!1),window.navigator.pointerEnabled?(_b.wrapper.removeEventListener("pointerdown",jb,!1),_b.wrapper.removeEventListener("pointermove",kb,!1),_b.wrapper.removeEventListener("pointerup",lb,!1)):window.navigator.msPointerEnabled&&(_b.wrapper.removeEventListener("MSPointerDown",jb,!1),_b.wrapper.removeEventListener("MSPointerMove",kb,!1),_b.wrapper.removeEventListener("MSPointerUp",lb,!1)),Qb.progress&&_b.progress&&_b.progress.removeEventListener("click",nb,!1),["touchstart","click"].forEach(function(a){_b.controlsLeft.forEach(function(b){b.removeEventListener(a,ob,!1)}),_b.controlsRight.forEach(function(b){b.removeEventListener(a,pb,!1)}),_b.controlsUp.forEach(function(b){b.removeEventListener(a,qb,!1)}),_b.controlsDown.forEach(function(b){b.removeEventListener(a,rb,!1)}),_b.controlsPrev.forEach(function(b){b.removeEventListener(a,sb,!1)}),_b.controlsNext.forEach(function(b){b.removeEventListener(a,tb,!1)})})}function q(a,b){for(var c in b)a[c]=b[c]}function r(a){return Array.prototype.slice.call(a)}function s(a){if("string"==typeof a){if("null"===a)return null;if("true"===a)return!0;if("false"===a)return!1;if(a.match(/^-?[\d\.]+$/))return parseFloat(a)}return a}function t(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)}function u(a,b){a.style.WebkitTransform=b,a.style.MozTransform=b,a.style.msTransform=b,a.style.transform=b}function v(a){"string"==typeof a.layout&&($b.layout=a.layout),"string"==typeof a.overview&&($b.overview=a.overview),$b.layout?u(_b.slides,$b.layout+" "+$b.overview):u(_b.slides,$b.overview)}function w(a){var b=document.createElement("style");b.type="text/css",b.styleSheet?b.styleSheet.cssText=a:b.appendChild(document.createTextNode(a)),document.getElementsByTagName("head")[0].appendChild(b)}function x(a,b){for(var c=a.parentNode;c;){var d=c.matches||c.matchesSelector||c.msMatchesSelector;if(d&&d.call(c,b))return c;c=c.parentNode}return null}function y(a){var b=a.match(/^#([0-9a-f]{3})$/i);if(b&&b[1])return b=b[1],{r:17*parseInt(b.charAt(0),16),g:17*parseInt(b.charAt(1),16),b:17*parseInt(b.charAt(2),16)};var c=a.match(/^#([0-9a-f]{6})$/i);if(c&&c[1])return c=c[1],{r:parseInt(c.substr(0,2),16),g:parseInt(c.substr(2,2),16),b:parseInt(c.substr(4,2),16)};var d=a.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(d)return{r:parseInt(d[1],10),g:parseInt(d[2],10),b:parseInt(d[3],10)};var e=a.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return e?{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10),a:parseFloat(e[4])}:null}function z(a){return"string"==typeof a&&(a=y(a)),a?(299*a.r+587*a.g+114*a.b)/1e3:null}function A(a,b){if(b=b||0,a){var c,d=a.style.height;return a.style.height="0px",c=b-a.parentNode.offsetHeight,a.style.height=d+"px",c}return b}function B(){return/print-pdf/gi.test(window.location.search)}function C(){Qb.hideAddressBar&&Hb&&(window.addEventListener("load",D,!1),window.addEventListener("orientationchange",D,!1))}function D(){setTimeout(function(){window.scrollTo(0,1)},10)}function E(a,b){var c=document.createEvent("HTMLEvents",1,2);c.initEvent(a,!0,!0),q(c,b),_b.wrapper.dispatchEvent(c),Qb.postMessageEvents&&window.parent!==window.self&&window.parent.postMessage(JSON.stringify({namespace:"reveal",eventName:a,state:Oa()}),"*")}function F(){if(ac.transforms3d&&!("msPerspective"in document.body.style))for(var a=_b.wrapper.querySelectorAll(Lb+" a"),b=0,c=a.length;b<c;b++){var d=a[b];if(d.textContent&&!d.querySelector("*")&&(!d.className||!d.classList.contains(d,"roll"))){var e=document.createElement("span");e.setAttribute("data-title",d.text),e.innerHTML=d.innerHTML,d.classList.add("roll"),d.innerHTML="",d.appendChild(e)}}}function G(){for(var a=_b.wrapper.querySelectorAll(Lb+" a.roll"),b=0,c=a.length;b<c;b++){var d=a[b],e=d.querySelector("span");e&&(d.classList.remove("roll"),d.innerHTML=e.innerHTML)}}function H(a){r(document.querySelectorAll(a||"a")).forEach(function(a){/^(http|www)/gi.test(a.getAttribute("href"))&&a.addEventListener("click",yb,!1)})}function I(a){r(document.querySelectorAll(a||"a")).forEach(function(a){/^(http|www)/gi.test(a.getAttribute("href"))&&a.removeEventListener("click",yb,!1)})}function J(a){M(),_b.overlay=document.createElement("div"),_b.overlay.classList.add("overlay"),_b.overlay.classList.add("overlay-preview"),_b.wrapper.appendChild(_b.overlay),_b.overlay.innerHTML=["<header>",'<a class="close" href="#"><span class="icon"></span></a>','<a class="external" href="'+a+'" target="_blank"><span class="icon"></span></a>',"</header>",'<div class="spinner"></div>','<div class="viewport">','<iframe src="'+a+'"></iframe>','<small class="viewport-inner">','<span class="x-frame-error">Unable to load iframe. This is likely due to the site\'s policy (x-frame-options).</span>',"</small>","</div>"].join(""),_b.overlay.querySelector("iframe").addEventListener("load",function(a){_b.overlay.classList.add("loaded")},!1),_b.overlay.querySelector(".close").addEventListener("click",function(a){M(),a.preventDefault()},!1),_b.overlay.querySelector(".external").addEventListener("click",function(a){M()},!1),setTimeout(function(){_b.overlay.classList.add("visible")},1)}function K(a){"boolean"==typeof a?a?L():M():_b.overlay?M():L()}function L(){if(Qb.help){M(),_b.overlay=document.createElement("div"),_b.overlay.classList.add("overlay"),_b.overlay.classList.add("overlay-help"),_b.wrapper.appendChild(_b.overlay);var a='<p class="title">Keyboard Shortcuts</p><br/>';a+="<table><th>KEY</th><th>ACTION</th>";for(var b in jc)a+="<tr><td>"+b+"</td><td>"+jc[b]+"</td></tr>";a+="</table>",_b.overlay.innerHTML=["<header>",'<a class="close" href="#"><span class="icon"></span></a>',"</header>",'<div class="viewport">','<div class="viewport-inner">'+a+"</div>","</div>"].join(""),_b.overlay.querySelector(".close").addEventListener("click",function(a){M(),a.preventDefault()},!1),setTimeout(function(){_b.overlay.classList.add("visible")},1)}}function M(){_b.overlay&&(_b.overlay.parentNode.removeChild(_b.overlay),_b.overlay=null)}function N(){if(_b.wrapper&&!B()){var a=P();O(Qb.width,Qb.height),_b.slides.style.width=a.width+"px",_b.slides.style.height=a.height+"px",Zb=Math.min(a.presentationWidth/a.width,a.presentationHeight/a.height),Zb=Math.max(Zb,Qb.minScale),Zb=Math.min(Zb,Qb.maxScale),1===Zb?(_b.slides.style.zoom="",_b.slides.style.left="",_b.slides.style.top="",_b.slides.style.bottom="",_b.slides.style.right="",v({layout:""})):Zb>1&&ac.zoom?(_b.slides.style.zoom=Zb,_b.slides.style.left="",_b.slides.style.top="",_b.slides.style.bottom="",_b.slides.style.right="",v({layout:""})):(_b.slides.style.zoom="",_b.slides.style.left="50%",_b.slides.style.top="50%",_b.slides.style.bottom="auto",_b.slides.style.right="auto",v({layout:"translate(-50%, -50%) scale("+Zb+")"}));for(var b=r(_b.wrapper.querySelectorAll(Lb)),c=0,d=b.length;c<d;c++){var e=b[c];"none"!==e.style.display&&(Qb.center||e.classList.contains("center")?e.classList.contains("stack")?e.style.top=0:e.style.top=Math.max((a.height-e.scrollHeight)/2,0)+"px":e.style.top="")}oa(),ta(),X()&&U()}}function O(a,b){r(_b.slides.querySelectorAll("section > .stretch")).forEach(function(c){var d=A(c,b);if(/(img|video)/gi.test(c.nodeName)){var e=c.naturalWidth||c.videoWidth,f=c.naturalHeight||c.videoHeight,g=Math.min(a/e,d/f);c.style.width=e*g+"px",c.style.height=f*g+"px"}else c.style.width=a+"px",c.style.height=d+"px"})}function P(a,b){var c={width:Qb.width,height:Qb.height,presentationWidth:a||_b.wrapper.offsetWidth,presentationHeight:b||_b.wrapper.offsetHeight};return c.presentationWidth-=c.presentationWidth*Qb.margin,c.presentationHeight-=c.presentationHeight*Qb.margin,"string"==typeof c.width&&/%$/.test(c.width)&&(c.width=parseInt(c.width,10)/100*c.presentationWidth),"string"==typeof c.height&&/%$/.test(c.height)&&(c.height=parseInt(c.height,10)/100*c.presentationHeight),c}function Q(a,b){"object"==typeof a&&"function"==typeof a.setAttribute&&a.setAttribute("data-previous-indexv",b||0)}function R(a){if("object"==typeof a&&"function"==typeof a.setAttribute&&a.classList.contains("stack")){var b=a.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(a.getAttribute(b)||0,10)}return 0}function S(){if(Qb.overview&&!X()){Tb=!0,_b.wrapper.classList.add("overview"),_b.wrapper.classList.remove("overview-deactivating"),ac.overviewTransitions&&setTimeout(function(){_b.wrapper.classList.add("overview-animated")},1),Va(),_b.slides.appendChild(_b.background),r(_b.wrapper.querySelectorAll(Lb)).forEach(function(a){a.classList.contains("stack")||a.addEventListener("click",xb,!0)});var a=70,b=P();Ub=b.width+a,Vb=b.height+a,Qb.rtl&&(Ub=-Ub),ka(),T(),U(),N(),E("overviewshown",{indexh:Cb,indexv:Db,currentSlide:Fb})}}function T(){r(_b.wrapper.querySelectorAll(Mb)).forEach(function(a,b){a.setAttribute("data-index-h",b),u(a,"translate3d("+b*Ub+"px, 0, 0)"),a.classList.contains("stack")&&r(a.querySelectorAll("section")).forEach(function(a,c){a.setAttribute("data-index-h",b),a.setAttribute("data-index-v",c),u(a,"translate3d(0, "+c*Vb+"px, 0)")})}),r(_b.background.childNodes).forEach(function(a,b){u(a,"translate3d("+b*Ub+"px, 0, 0)"),r(a.querySelectorAll(".slide-background")).forEach(function(a,b){u(a,"translate3d(0, "+b*Vb+"px, 0)")})})}function U(){var a=Math.min(window.innerWidth,window.innerHeight);v({overview:["scale("+Math.max(a/5,150)/a+")","translateX("+-Cb*Ub+"px)","translateY("+-Db*Vb+"px)"].join(" ")})}function V(){Qb.overview&&(Tb=!1,_b.wrapper.classList.remove("overview"),_b.wrapper.classList.remove("overview-animated"),_b.wrapper.classList.add("overview-deactivating"),setTimeout(function(){_b.wrapper.classList.remove("overview-deactivating")},1),_b.wrapper.appendChild(_b.background),r(_b.wrapper.querySelectorAll(Lb)).forEach(function(a){u(a,""),a.removeEventListener("click",xb,!0)}),r(_b.background.querySelectorAll(".slide-background")).forEach(function(a){u(a,"")}),v({overview:""}),ea(Cb,Db),N(),Ua(),E("overviewhidden",{indexh:Cb,indexv:Db,currentSlide:Fb}))}function W(a){"boolean"==typeof a?a?S():V():X()?V():S()}function X(){return Tb}function Y(a){return(a=a||Fb)&&a.parentNode&&!!a.parentNode.nodeName.match(/section/i)}function Z(){var a=document.documentElement,b=a.requestFullscreen||a.webkitRequestFullscreen||a.webkitRequestFullScreen||a.mozRequestFullScreen||a.msRequestFullscreen;b&&b.apply(a)}function $(){if(Qb.pause){var a=_b.wrapper.classList.contains("paused");Va(),_b.wrapper.classList.add("paused"),!1===a&&E("paused")}}function _(){var a=_b.wrapper.classList.contains("paused");_b.wrapper.classList.remove("paused"),Ua(),a&&E("resumed")}function aa(a){"boolean"==typeof a?a?$():_():ba()?_():$()}function ba(){return _b.wrapper.classList.contains("paused")}function ca(a){"boolean"==typeof a?a?Xa():Wa():hc?Xa():Wa()}function da(){return!(!ec||hc)}function ea(a,b,c,d){Eb=Fb;var e=_b.wrapper.querySelectorAll(Mb);if(0!==e.length){void 0!==b||X()||(b=R(e[a])),Eb&&Eb.parentNode&&Eb.parentNode.classList.contains("stack")&&Q(Eb.parentNode,Db);var f=Yb.concat();Yb.length=0;var h=Cb||0,i=Db||0;Cb=ja(Mb,void 0===a?Cb:a),Db=ja(Nb,void 0===b?Db:b),ka(),N();a:for(var j=0,k=Yb.length;j<k;j++){for(var l=0;l<f.length;l++)if(f[l]===Yb[j]){f.splice(l,1);continue a}document.documentElement.classList.add(Yb[j]),E(Yb[j])}for(;f.length;)document.documentElement.classList.remove(f.pop());X()&&U();var m=e[Cb],n=m.querySelectorAll("section");Fb=n[Db]||m,void 0!==c&&Ra(c);var o=Cb!==h||Db!==i;o?E("slidechanged",{indexh:Cb,indexv:Db,previousSlide:Eb,currentSlide:Fb,origin:d}):Eb=null,Eb&&(Eb.classList.remove("present"),Eb.setAttribute("aria-hidden","true"),_b.wrapper.querySelector(Ob).classList.contains("present")&&setTimeout(function(){var a,b=r(_b.wrapper.querySelectorAll(Mb+".stack"));for(a in b)b[a]&&Q(b[a],0)},0)),!o&&Eb||(Ca(Eb),za(Fb)),_b.statusDiv.textContent=g(Fb),ra(),oa(),sa(),ta(),pa(),la(),Ha(),Ua()}}function fa(){p(),o(),N(),ec=Qb.autoSlide,Ua(),k(),Ha(),ha(),ra(),oa(),pa(),ka(),sa(!0),ma(),la(),ya(),!1===Qb.autoPlayMedia?Ca(Fb):za(Fb),X()&&T()}function ga(){r(_b.wrapper.querySelectorAll(Mb)).forEach(function(a){r(a.querySelectorAll("section")).forEach(function(a,b){b>0&&(a.classList.remove("present"),a.classList.remove("past"),a.classList.add("future"),a.setAttribute("aria-hidden","true"))})})}function ha(){r(_b.wrapper.querySelectorAll(Mb)).forEach(function(a){var b=r(a.querySelectorAll("section"));b.forEach(function(a,b){Qa(a.querySelectorAll(".fragment"))}),0===b.length&&Qa(a.querySelectorAll(".fragment"))})}function ia(){var a=r(_b.wrapper.querySelectorAll(Mb));a.forEach(function(b){_b.slides.insertBefore(b,a[Math.floor(Math.random()*a.length)])})}function ja(a,b){var c=r(_b.wrapper.querySelectorAll(a)),d=c.length,e=B();if(d){Qb.loop&&(b%=d)<0&&(b=d+b),b=Math.max(Math.min(b,d-1),0);for(var f=0;f<d;f++){var g=c[f],h=Qb.rtl&&!Y(g);if(g.classList.remove("past"),g.classList.remove("present"),g.classList.remove("future"),g.setAttribute("hidden",""),g.setAttribute("aria-hidden","true"),g.querySelector("section")&&g.classList.add("stack"),e)g.classList.add("present");else if(f<b){if(g.classList.add(h?"future":"past"),Qb.fragments)for(var i=r(g.querySelectorAll(".fragment"));i.length;){var j=i.pop();j.classList.add("visible"),j.classList.remove("current-fragment")}}else if(f>b&&(g.classList.add(h?"past":"future"),Qb.fragments))for(var k=r(g.querySelectorAll(".fragment.visible"));k.length;){var l=k.pop();l.classList.remove("visible"),l.classList.remove("current-fragment")}}c[b].classList.add("present"),c[b].removeAttribute("hidden"),c[b].removeAttribute("aria-hidden");var m=c[b].getAttribute("data-state");m&&(Yb=Yb.concat(m.split(" ")))}else b=0;return b}function ka(){var a,b,c=r(_b.wrapper.querySelectorAll(Mb)),d=c.length;if(d&&void 0!==Cb){var e=X()?10:Qb.viewDistance;Hb&&(e=X()?6:2),B()&&(e=Number.MAX_VALUE);for(var f=0;f<d;f++){var g=c[f],h=r(g.querySelectorAll("section")),i=h.length;if(a=Math.abs((Cb||0)-f)||0,Qb.loop&&(a=Math.abs(((Cb||0)-f)%(d-e))||0),a<e?ua(g):va(g),i)for(var j=R(g),k=0;k<i;k++){var l=h[k];b=f===(Cb||0)?Math.abs((Db||0)-k):Math.abs(k-j),a+b<e?ua(l):va(l)}}_b.wrapper.querySelectorAll(".slides>section>section").length?_b.wrapper.classList.add("has-vertical-slides"):_b.wrapper.classList.remove("has-vertical-slides"),_b.wrapper.querySelectorAll(".slides>section").length>1?_b.wrapper.classList.add("has-horizontal-slides"):_b.wrapper.classList.remove("has-horizontal-slides")}}function la(){Qb.showNotes&&_b.speakerNotes&&Fb&&!B()&&(_b.speakerNotes.innerHTML=Na()||'<span class="notes-placeholder">No notes on this slide.</span>')}function ma(){Qb.showNotes&&na()?_b.wrapper.classList.add("show-notes"):_b.wrapper.classList.remove("show-notes")}function na(){return _b.slides.querySelectorAll("[data-notes], aside.notes").length>0}function oa(){Qb.progress&&_b.progressbar&&(_b.progressbar.style.width=Ea()*_b.wrapper.offsetWidth+"px")}function pa(){if(Qb.slideNumber&&_b.slideNumber){var a=[],b="h.v";switch("string"==typeof Qb.slideNumber&&(b=Qb.slideNumber),b){case"c":a.push(Da()+1);break;case"c/t":a.push(Da()+1,"/",Ka());break;case"h/v":a.push(Cb+1),Y()&&a.push("/",Db+1);break;default:a.push(Cb+1),Y()&&a.push(".",Db+1)}_b.slideNumber.innerHTML=qa(a[0],a[1],a[2])}}function qa(a,b,c){return"number"!=typeof c||isNaN(c)?'<span class="slide-number-a">'+a+"</span>":'<span class="slide-number-a">'+a+'</span><span class="slide-number-delimiter">'+b+'</span><span class="slide-number-b">'+c+"</span>"}function ra(){var a=wa(),b=xa();_b.controlsLeft.concat(_b.controlsRight).concat(_b.controlsUp).concat(_b.controlsDown).concat(_b.controlsPrev).concat(_b.controlsNext).forEach(function(a){a.classList.remove("enabled"),a.classList.remove("fragmented"),a.setAttribute("disabled","disabled")}),a.left&&_b.controlsLeft.forEach(function(a){a.classList.add("enabled"),a.removeAttribute("disabled")}),a.right&&_b.controlsRight.forEach(function(a){a.classList.add("enabled"),a.removeAttribute("disabled")}),a.up&&_b.controlsUp.forEach(function(a){a.classList.add("enabled"),a.removeAttribute("disabled")}),a.down&&_b.controlsDown.forEach(function(a){a.classList.add("enabled"),a.removeAttribute("disabled")}),(a.left||a.up)&&_b.controlsPrev.forEach(function(a){a.classList.add("enabled"),a.removeAttribute("disabled")}),(a.right||a.down)&&_b.controlsNext.forEach(function(a){a.classList.add("enabled"),a.removeAttribute("disabled")}),Fb&&(b.prev&&_b.controlsPrev.forEach(function(a){a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),b.next&&_b.controlsNext.forEach(function(a){a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),Y(Fb)?(b.prev&&_b.controlsUp.forEach(function(a){a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),b.next&&_b.controlsDown.forEach(function(a){a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")})):(b.prev&&_b.controlsLeft.forEach(function(a){a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),b.next&&_b.controlsRight.forEach(function(a){a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}))),Qb.controlsTutorial&&(!Xb&&a.down?_b.controlsDownArrow.classList.add("highlight"):(_b.controlsDownArrow.classList.remove("highlight"),!Wb&&a.right&&0===Db?_b.controlsRightArrow.classList.add("highlight"):_b.controlsRightArrow.classList.remove("highlight")))}function sa(a){var b=null,c=Qb.rtl?"future":"past",d=Qb.rtl?"past":"future";if(r(_b.background.childNodes).forEach(function(e,f){e.classList.remove("past"),e.classList.remove("present"),e.classList.remove("future"),f<Cb?e.classList.add(c):f>Cb?e.classList.add(d):(e.classList.add("present"),b=e),(a||f===Cb)&&r(e.querySelectorAll(".slide-background")).forEach(function(a,c){a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),c<Db?a.classList.add("past"):c>Db?a.classList.add("future"):(a.classList.add("present"),f===Cb&&(b=a))})}),Gb&&Ca(Gb),b){za(b);var e=b.style.backgroundImage||"";/\.gif/i.test(e)&&(b.style.backgroundImage="",window.getComputedStyle(b).opacity,b.style.backgroundImage=e);var f=Gb?Gb.getAttribute("data-background-hash"):null,g=b.getAttribute("data-background-hash");g&&g===f&&b!==Gb&&_b.background.classList.add("no-transition"),Gb=b}Fb&&["has-light-background","has-dark-background"].forEach(function(a){Fb.classList.contains(a)?_b.wrapper.classList.add(a):_b.wrapper.classList.remove(a)}),setTimeout(function(){_b.background.classList.remove("no-transition")},1)}function ta(){if(Qb.parallaxBackgroundImage){
  var a,b,c=_b.wrapper.querySelectorAll(Mb),d=_b.wrapper.querySelectorAll(Nb),e=_b.background.style.backgroundSize.split(" ");1===e.length?a=b=parseInt(e[0],10):(a=parseInt(e[0],10),b=parseInt(e[1],10));var f,g,h=_b.background.offsetWidth,i=c.length;f="number"==typeof Qb.parallaxBackgroundHorizontal?Qb.parallaxBackgroundHorizontal:i>1?(a-h)/(i-1):0,g=f*Cb*-1;var j,k,l=_b.background.offsetHeight,m=d.length;j="number"==typeof Qb.parallaxBackgroundVertical?Qb.parallaxBackgroundVertical:(b-l)/(m-1),k=m>0?j*Db:0,_b.background.style.backgroundPosition=g+"px "+-k+"px"}}function ua(a){a.style.display=Qb.display,r(a.querySelectorAll("img[data-src], video[data-src], audio[data-src]")).forEach(function(a){a.setAttribute("src",a.getAttribute("data-src")),a.setAttribute("data-lazy-loaded",""),a.removeAttribute("data-src")}),r(a.querySelectorAll("video, audio")).forEach(function(a){var b=0;r(a.querySelectorAll("source[data-src]")).forEach(function(a){a.setAttribute("src",a.getAttribute("data-src")),a.removeAttribute("data-src"),a.setAttribute("data-lazy-loaded",""),b+=1}),b>0&&a.load()});var b=Ia(a),c=Ma(b.h,b.v);if(c&&(c.style.display="block",!1===c.hasAttribute("data-loaded"))){c.setAttribute("data-loaded","true");var d=a.getAttribute("data-background-image"),e=a.getAttribute("data-background-video"),f=a.hasAttribute("data-background-video-loop"),g=a.hasAttribute("data-background-video-muted"),h=a.getAttribute("data-background-iframe");if(d)c.style.backgroundImage="url("+d+")";else if(e&&!Fa()){var i=document.createElement("video");f&&i.setAttribute("loop",""),g&&(i.muted=!0),Hb&&(i.muted=!0,i.autoplay=!0,i.setAttribute("playsinline","")),e.split(",").forEach(function(a){i.innerHTML+='<source src="'+a+'">'}),c.appendChild(i)}else if(h){var j=document.createElement("iframe");j.setAttribute("allowfullscreen",""),j.setAttribute("mozallowfullscreen",""),j.setAttribute("webkitallowfullscreen",""),/autoplay=(1|true|yes)/gi.test(h)?j.setAttribute("data-src",h):j.setAttribute("src",h),j.style.width="100%",j.style.height="100%",j.style.maxHeight="100%",j.style.maxWidth="100%",c.appendChild(j)}}}function va(a){a.style.display="none";var b=Ia(a),c=Ma(b.h,b.v);c&&(c.style.display="none"),r(a.querySelectorAll("video[data-lazy-loaded][src], audio[data-lazy-loaded][src]")).forEach(function(a){a.setAttribute("data-src",a.getAttribute("src")),a.removeAttribute("src")}),r(a.querySelectorAll("video[data-lazy-loaded] source[src], audio source[src]")).forEach(function(a){a.setAttribute("data-src",a.getAttribute("src")),a.removeAttribute("src")})}function wa(){var a=_b.wrapper.querySelectorAll(Mb),b=_b.wrapper.querySelectorAll(Nb),c={left:Cb>0||Qb.loop,right:Cb<a.length-1||Qb.loop,up:Db>0,down:Db<b.length-1};if(Qb.rtl){var d=c.left;c.left=c.right,c.right=d}return c}function xa(){if(Fb&&Qb.fragments){var a=Fb.querySelectorAll(".fragment"),b=Fb.querySelectorAll(".fragment:not(.visible)");return{prev:a.length-b.length>0,next:!!b.length}}return{prev:!1,next:!1}}function ya(){var a=function(a,b,c){r(_b.slides.querySelectorAll("iframe["+a+'*="'+b+'"]')).forEach(function(b){var d=b.getAttribute(a);d&&-1===d.indexOf(c)&&b.setAttribute(a,d+(/\?/.test(d)?"&":"?")+c)})};a("src","youtube.com/embed/","enablejsapi=1"),a("data-src","youtube.com/embed/","enablejsapi=1"),a("src","player.vimeo.com/","api=1"),a("data-src","player.vimeo.com/","api=1"),Hb&&r(_b.slides.querySelectorAll("video, audio")).forEach(function(a){a.controls=!0})}function za(a){a&&!Fa()&&(r(a.querySelectorAll('img[src$=".gif"]')).forEach(function(a){a.setAttribute("src",a.getAttribute("src"))}),r(a.querySelectorAll("video, audio")).forEach(function(a){if(!x(a,".fragment")||x(a,".fragment.visible")){var b=Qb.autoPlayMedia;"boolean"!=typeof b&&(b=a.hasAttribute("data-autoplay")||!!x(a,".slide-background")),b&&"function"==typeof a.play&&(a.readyState>1?Aa({target:a}):(a.removeEventListener("loadeddata",Aa),a.addEventListener("loadeddata",Aa)))}}),r(a.querySelectorAll("iframe[src]")).forEach(function(a){x(a,".fragment")&&!x(a,".fragment.visible")||Ba({target:a})}),r(a.querySelectorAll("iframe[data-src]")).forEach(function(a){x(a,".fragment")&&!x(a,".fragment.visible")||a.getAttribute("src")!==a.getAttribute("data-src")&&(a.removeEventListener("load",Ba),a.addEventListener("load",Ba),a.setAttribute("src",a.getAttribute("data-src")))}))}function Aa(a){var b=!!x(a.target,"html"),c=!!x(a.target,".present");b&&c&&(a.target.currentTime=0,a.target.play()),a.target.removeEventListener("loadeddata",Aa)}function Ba(a){var b=a.target;if(b&&b.contentWindow){var c=!!x(a.target,"html"),d=!!x(a.target,".present");if(c&&d){var e=Qb.autoPlayMedia;"boolean"!=typeof e&&(e=b.hasAttribute("data-autoplay")||!!x(b,".slide-background")),/youtube\.com\/embed\//.test(b.getAttribute("src"))&&e?b.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(b.getAttribute("src"))&&e?b.contentWindow.postMessage('{"method":"play"}',"*"):b.contentWindow.postMessage("slide:start","*")}}}function Ca(a){a&&a.parentNode&&(r(a.querySelectorAll("video, audio")).forEach(function(a){a.hasAttribute("data-ignore")||"function"!=typeof a.pause||(a.setAttribute("data-paused-by-reveal",""),a.pause())}),r(a.querySelectorAll("iframe")).forEach(function(a){a.contentWindow&&a.contentWindow.postMessage("slide:stop","*"),a.removeEventListener("load",Ba)}),r(a.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(a){!a.hasAttribute("data-ignore")&&a.contentWindow&&"function"==typeof a.contentWindow.postMessage&&a.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),r(a.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(function(a){!a.hasAttribute("data-ignore")&&a.contentWindow&&"function"==typeof a.contentWindow.postMessage&&a.contentWindow.postMessage('{"method":"pause"}',"*")}),r(a.querySelectorAll("iframe[data-src]")).forEach(function(a){a.setAttribute("src","about:blank"),a.removeAttribute("src")}))}function Da(){var a=r(_b.wrapper.querySelectorAll(Mb)),b=0;a:for(var c=0;c<a.length;c++){for(var d=a[c],e=r(d.querySelectorAll("section")),f=0;f<e.length;f++){if(e[f].classList.contains("present"))break a;b++}if(d.classList.contains("present"))break;!1===d.classList.contains("stack")&&b++}return b}function Ea(){var a=Ka(),b=Da();if(Fb){var c=Fb.querySelectorAll(".fragment");if(c.length>0){b+=Fb.querySelectorAll(".fragment.visible").length/c.length*.9}}return b/(a-1)}function Fa(){return!!window.location.search.match(/receiver/gi)}function Ga(){var a=window.location.hash,b=a.slice(2).split("/"),c=a.replace(/#|\//gi,"");if(isNaN(parseInt(b[0],10))&&c.length){var d;if(/^[a-zA-Z][\w:.-]*$/.test(c)&&(d=document.getElementById(c)),d){var e=Bb.getIndices(d);ea(e.h,e.v)}else ea(Cb||0,Db||0)}else{var f=parseInt(b[0],10)||0,g=parseInt(b[1],10)||0;f===Cb&&g===Db||ea(f,g)}}function Ha(a){if(Qb.history)if(clearTimeout(cc),"number"==typeof a)cc=setTimeout(Ha,a);else if(Fb){var b="/",c=Fb.getAttribute("id");c&&(c=c.replace(/[^a-zA-Z0-9\-\_\:\.]/g,"")),"string"==typeof c&&c.length?b="/"+c:((Cb>0||Db>0)&&(b+=Cb),Db>0&&(b+="/"+Db)),window.location.hash=b}}function Ia(a){var b,c=Cb,d=Db;if(a){var e=Y(a),f=e?a.parentNode:a,g=r(_b.wrapper.querySelectorAll(Mb));c=Math.max(g.indexOf(f),0),d=void 0,e&&(d=Math.max(r(a.parentNode.querySelectorAll("section")).indexOf(a),0))}if(!a&&Fb){if(Fb.querySelectorAll(".fragment").length>0){var h=Fb.querySelector(".current-fragment");b=h&&h.hasAttribute("data-fragment-index")?parseInt(h.getAttribute("data-fragment-index"),10):Fb.querySelectorAll(".fragment.visible").length-1}}return{h:c,v:d,f:b}}function Ja(){return r(_b.wrapper.querySelectorAll(Lb+":not(.stack)"))}function Ka(){return Ja().length}function La(a,b){var c=_b.wrapper.querySelectorAll(Mb)[a],d=c&&c.querySelectorAll("section");return d&&d.length&&"number"==typeof b?d?d[b]:void 0:c}function Ma(a,b){if(!B()){var c=_b.wrapper.querySelectorAll(".backgrounds>.slide-background")[a],d=c&&c.querySelectorAll(".slide-background");return d&&d.length&&"number"==typeof b?d?d[b]:void 0:c}var e=La(a,b);if(e)return e.slideBackgroundElement}function Na(a){if(a=a||Fb,a.hasAttribute("data-notes"))return a.getAttribute("data-notes");var b=a.querySelector("aside.notes");return b?b.innerHTML:null}function Oa(){var a=Ia();return{indexh:a.h,indexv:a.v,indexf:a.f,paused:ba(),overview:X()}}function Pa(a){if("object"==typeof a){ea(s(a.indexh),s(a.indexv),s(a.indexf));var b=s(a.paused),c=s(a.overview);"boolean"==typeof b&&b!==ba()&&aa(b),"boolean"==typeof c&&c!==X()&&W(c)}}function Qa(a){a=r(a);var b=[],c=[],d=[];a.forEach(function(a,d){if(a.hasAttribute("data-fragment-index")){var e=parseInt(a.getAttribute("data-fragment-index"),10);b[e]||(b[e]=[]),b[e].push(a)}else c.push([a])}),b=b.concat(c);var e=0;return b.forEach(function(a){a.forEach(function(a){d.push(a),a.setAttribute("data-fragment-index",e)}),e++}),d}function Ra(a,b){if(Fb&&Qb.fragments){var c=Qa(Fb.querySelectorAll(".fragment"));if(c.length){if("number"!=typeof a){var d=Qa(Fb.querySelectorAll(".fragment.visible")).pop();a=d?parseInt(d.getAttribute("data-fragment-index")||0,10):-1}"number"==typeof b&&(a+=b);var e=[],f=[];return r(c).forEach(function(b,c){b.hasAttribute("data-fragment-index")&&(c=parseInt(b.getAttribute("data-fragment-index"),10)),c<=a?(b.classList.contains("visible")||e.push(b),b.classList.add("visible"),b.classList.remove("current-fragment"),_b.statusDiv.textContent=g(b),c===a&&(b.classList.add("current-fragment"),za(b))):(b.classList.contains("visible")&&f.push(b),b.classList.remove("visible"),b.classList.remove("current-fragment"))}),f.length&&E("fragmenthidden",{fragment:f[0],fragments:f}),e.length&&E("fragmentshown",{fragment:e[0],fragments:e}),ra(),oa(),!(!e.length&&!f.length)}}return!1}function Sa(){return Ra(null,1)}function Ta(){return Ra(null,-1)}function Ua(){if(Va(),Fb&&!1!==Qb.autoSlide){var a=Fb.querySelector(".current-fragment");a||(a=Fb.querySelector(".fragment"));var b=a?a.getAttribute("data-autoslide"):null,c=Fb.parentNode?Fb.parentNode.getAttribute("data-autoslide"):null,d=Fb.getAttribute("data-autoslide");ec=b?parseInt(b,10):d?parseInt(d,10):c?parseInt(c,10):Qb.autoSlide,0===Fb.querySelectorAll(".fragment").length&&r(Fb.querySelectorAll("video, audio")).forEach(function(a){a.hasAttribute("data-autoplay")&&ec&&1e3*a.duration/a.playbackRate>ec&&(ec=1e3*a.duration/a.playbackRate+1e3)}),!ec||hc||ba()||X()||Bb.isLastSlide()&&!xa().next&&!0!==Qb.loop||(fc=setTimeout(function(){"function"==typeof Qb.autoSlideMethod?Qb.autoSlideMethod():bb(),Ua()},ec),gc=Date.now()),Jb&&Jb.setPlaying(-1!==fc)}}function Va(){clearTimeout(fc),fc=-1}function Wa(){ec&&!hc&&(hc=!0,E("autoslidepaused"),clearTimeout(fc),Jb&&Jb.setPlaying(!1))}function Xa(){ec&&hc&&(hc=!1,E("autoslideresumed"),Ua())}function Ya(){Qb.rtl?(X()||!1===Sa())&&wa().left&&ea(Cb+1):(X()||!1===Ta())&&wa().left&&ea(Cb-1)}function Za(){Wb=!0,Qb.rtl?(X()||!1===Ta())&&wa().right&&ea(Cb-1):(X()||!1===Sa())&&wa().right&&ea(Cb+1)}function $a(){(X()||!1===Ta())&&wa().up&&ea(Cb,Db-1)}function _a(){Xb=!0,(X()||!1===Sa())&&wa().down&&ea(Cb,Db+1)}function ab(){if(!1===Ta())if(wa().up)$a();else{var a;if(a=Qb.rtl?r(_b.wrapper.querySelectorAll(Mb+".future")).pop():r(_b.wrapper.querySelectorAll(Mb+".past")).pop()){var b=a.querySelectorAll("section").length-1||void 0,c=Cb-1;ea(c,b)}}}function bb(){Wb=!0,Xb=!0,!1===Sa()&&(wa().down?_a():Qb.rtl?Ya():Za())}function cb(a){for(;a&&"function"==typeof a.hasAttribute;){if(a.hasAttribute("data-prevent-swipe"))return!0;a=a.parentNode}return!1}function db(a){Qb.autoSlideStoppable&&Wa()}function eb(a){a.shiftKey&&63===a.charCode&&K()}function fb(a){if("function"==typeof Qb.keyboardCondition&&!1===Qb.keyboardCondition())return!0;var b=hc;db(a);var c=document.activeElement&&"inherit"!==document.activeElement.contentEditable,d=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),e=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className);if(!(c||d||e||a.shiftKey&&32!==a.keyCode||a.altKey||a.ctrlKey||a.metaKey)){var f,g=[66,86,190,191];if("object"==typeof Qb.keyboard)for(f in Qb.keyboard)"togglePause"===Qb.keyboard[f]&&g.push(parseInt(f,10));if(ba()&&-1===g.indexOf(a.keyCode))return!1;var h=!1;if("object"==typeof Qb.keyboard)for(f in Qb.keyboard)if(parseInt(f,10)===a.keyCode){var i=Qb.keyboard[f];"function"==typeof i?i.apply(null,[a]):"string"==typeof i&&"function"==typeof Bb[i]&&Bb[i].call(),h=!0}if(!1===h)switch(h=!0,a.keyCode){case 80:case 33:ab();break;case 78:case 34:bb();break;case 72:case 37:Ya();break;case 76:case 39:Za();break;case 75:case 38:$a();break;case 74:case 40:_a();break;case 36:ea(0);break;case 35:ea(Number.MAX_VALUE);break;case 32:X()?V():a.shiftKey?ab():bb();break;case 13:X()?V():h=!1;break;case 58:case 59:case 66:case 86:case 190:case 191:aa();break;case 70:Z();break;case 65:Qb.autoSlideStoppable&&ca(b);break;default:h=!1}h?a.preventDefault&&a.preventDefault():27!==a.keyCode&&79!==a.keyCode||!ac.transforms3d||(_b.overlay?M():W(),a.preventDefault&&a.preventDefault()),Ua()}}function gb(a){if(cb(a.target))return!0;ic.startX=a.touches[0].clientX,ic.startY=a.touches[0].clientY,ic.startCount=a.touches.length,2===a.touches.length&&Qb.overview&&(ic.startSpan=t({x:a.touches[1].clientX,y:a.touches[1].clientY},{x:ic.startX,y:ic.startY}))}function hb(a){if(cb(a.target))return!0;if(ic.captured)Pb.match(/android/gi)&&a.preventDefault();else{db(a);var b=a.touches[0].clientX,c=a.touches[0].clientY;if(2===a.touches.length&&2===ic.startCount&&Qb.overview){var d=t({x:a.touches[1].clientX,y:a.touches[1].clientY},{x:ic.startX,y:ic.startY});Math.abs(ic.startSpan-d)>ic.threshold&&(ic.captured=!0,d<ic.startSpan?S():V()),a.preventDefault()}else if(1===a.touches.length&&2!==ic.startCount){var e=b-ic.startX,f=c-ic.startY;e>ic.threshold&&Math.abs(e)>Math.abs(f)?(ic.captured=!0,Ya()):e<-ic.threshold&&Math.abs(e)>Math.abs(f)?(ic.captured=!0,Za()):f>ic.threshold?(ic.captured=!0,$a()):f<-ic.threshold&&(ic.captured=!0,_a()),Qb.embedded?(ic.captured||Y(Fb))&&a.preventDefault():a.preventDefault()}}}function ib(a){ic.captured=!1}function jb(a){a.pointerType!==a.MSPOINTER_TYPE_TOUCH&&"touch"!==a.pointerType||(a.touches=[{clientX:a.clientX,clientY:a.clientY}],gb(a))}function kb(a){a.pointerType!==a.MSPOINTER_TYPE_TOUCH&&"touch"!==a.pointerType||(a.touches=[{clientX:a.clientX,clientY:a.clientY}],hb(a))}function lb(a){a.pointerType!==a.MSPOINTER_TYPE_TOUCH&&"touch"!==a.pointerType||(a.touches=[{clientX:a.clientX,clientY:a.clientY}],ib(a))}function mb(a){if(Date.now()-bc>600){bc=Date.now();var b=a.detail||-a.wheelDelta;b>0?bb():b<0&&ab()}}function nb(a){db(a),a.preventDefault();var b=r(_b.wrapper.querySelectorAll(Mb)).length,c=Math.floor(a.clientX/_b.wrapper.offsetWidth*b);Qb.rtl&&(c=b-c),ea(c)}function ob(a){a.preventDefault(),db(),Ya()}function pb(a){a.preventDefault(),db(),Za()}function qb(a){a.preventDefault(),db(),$a()}function rb(a){a.preventDefault(),db(),_a()}function sb(a){a.preventDefault(),db(),ab()}function tb(a){a.preventDefault(),db(),bb()}function ub(a){Ga()}function vb(a){N()}function wb(a){!1===(document.webkitHidden||document.msHidden||document.hidden)&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function xb(a){if(dc&&X()){a.preventDefault();for(var b=a.target;b&&!b.nodeName.match(/section/gi);)b=b.parentNode;if(b&&!b.classList.contains("disabled")&&(V(),b.nodeName.match(/section/gi))){ea(parseInt(b.getAttribute("data-index-h"),10),parseInt(b.getAttribute("data-index-v"),10))}}}function yb(a){if(a.currentTarget&&a.currentTarget.hasAttribute("href")){var b=a.currentTarget.getAttribute("href");b&&(J(b),a.preventDefault())}}function zb(a){Bb.isLastSlide()&&!1===Qb.loop?(ea(0,0),Xa()):hc?Xa():Wa()}function Ab(a,b){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=a,this.progressCheck=b,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()}var Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb="3.5.0",Lb=".slides section",Mb=".slides>section",Nb=".slides>section.present>section",Ob=".slides>section:first-of-type",Pb=navigator.userAgent,Qb={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",history:!1,keyboard:!0,keyboardCondition:null,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,shuffle:!1,fragments:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,autoPlayMedia:null,autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,mouseWheel:!1,rollingLinks:!1,hideAddressBar:!0,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfPageHeightOffset:-1,viewDistance:3,display:"block",dependencies:[]},Rb=!1,Sb=!1,Tb=!1,Ub=null,Vb=null,Wb=!1,Xb=!1,Yb=[],Zb=1,$b={layout:"",overview:""},_b={},ac={},bc=0,cc=0,dc=!1,ec=0,fc=0,gc=-1,hc=!1,ic={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40},jc={"N  ,  SPACE":"Next slide",P:"Previous slide","&#8592;  ,  H":"Navigate left","&#8594;  ,  L":"Navigate right","&#8593;  ,  K":"Navigate up","&#8595;  ,  J":"Navigate down",Home:"First slide",End:"Last slide","B  ,  .":"Pause",F:"Fullscreen","ESC, O":"Slide overview"};return Ab.prototype.setPlaying=function(a){var b=this.playing;this.playing=a,!b&&this.playing?this.animate():this.render()},Ab.prototype.animate=function(){var a=this.progress;this.progress=this.progressCheck(),a>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&ac.requestAnimationFrameMethod.call(window,this.animate.bind(this))},Ab.prototype.render=function(){var a=this.playing?this.progress:0,b=this.diameter2-this.thickness,c=this.diameter2,d=this.diameter2,e=28;this.progressOffset+=.1*(1-this.progressOffset);var f=-Math.PI/2+a*(2*Math.PI),g=-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(c,d,b+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(c,d,b,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(c,d,b,g,f,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(c-e/2,d-e/2),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,e/2-4,e),this.context.fillRect(e/2+4,0,e/2-4,e)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(e-4,e/2),this.context.lineTo(0,e),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()},Ab.prototype.on=function(a,b){this.canvas.addEventListener(a,b,!1)},Ab.prototype.off=function(a,b){this.canvas.removeEventListener(a,b,!1)},Ab.prototype.destroy=function(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)},Bb={VERSION:Kb,initialize:a,configure:n,sync:fa,slide:ea,left:Ya,right:Za,up:$a,down:_a,prev:ab,next:bb,navigateFragment:Ra,prevFragment:Ta,nextFragment:Sa,navigateTo:ea,navigateLeft:Ya,navigateRight:Za,navigateUp:$a,navigateDown:_a,navigatePrev:ab,navigateNext:bb,layout:N,shuffle:ia,availableRoutes:wa,availableFragments:xa,toggleHelp:K,toggleOverview:W,togglePause:aa,toggleAutoSlide:ca,isOverview:X,isPaused:ba,isAutoSliding:da,addEventListeners:o,removeEventListeners:p,getState:Oa,setState:Pa,getSlidePastCount:Da,getProgress:Ea,getIndices:Ia,getSlides:Ja,getTotalSlides:Ka,getSlide:La,getSlideBackground:Ma,getSlideNotes:Na,getPreviousSlide:function(){return Eb},getCurrentSlide:function(){return Fb},getScale:function(){return Zb},getConfig:function(){return Qb},getQueryHash:function(){var a={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,function(b){a[b.split("=").shift()]=b.split("=").pop()});for(var b in a){var c=a[b];a[b]=s(unescape(c))}return a},isFirstSlide:function(){return 0===Cb&&0===Db},isLastSlide:function(){return!!Fb&&(!Fb.nextElementSibling&&(!Y(Fb)||!Fb.parentNode.nextElementSibling))},isReady:function(){return Sb},addEventListener:function(a,b,c){"addEventListener"in window&&(_b.wrapper||document.querySelector(".reveal")).addEventListener(a,b,c)},removeEventListener:function(a,b,c){"addEventListener"in window&&(_b.wrapper||document.querySelector(".reveal")).removeEventListener(a,b,c)},triggerKey:function(a){fb({keyCode:a})},registerKeyboardShortcut:function(a,b){jc[a]=b}}});