tubestats-presentation/js/reveal.min.js

8 lines
20 KiB
JavaScript

/*!
* reveal.js 2.4.0 (2013-04-27, 17:34)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
var Reveal=function(){"use strict";function e(e){return xt||qt?(window.addEventListener("load",h,!1),c(yt,e),n(),r(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(At.theme=document.querySelector("#theme"),At.wrapper=document.querySelector(".reveal"),At.slides=document.querySelector(".reveal .slides"),!At.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="<span></span>",At.wrapper.appendChild(e)}if(!At.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='<div class="navigate-left"></div><div class="navigate-right"></div><div class="navigate-up"></div><div class="navigate-down"></div>',At.wrapper.appendChild(t)}if(!At.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),At.wrapper.appendChild(n)}if(!At.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),At.wrapper.appendChild(r)}At.progress=document.querySelector(".reveal .progress"),At.progressbar=document.querySelector(".reveal .progress span"),yt.controls&&(At.controls=document.querySelector(".reveal .controls"),At.controlsLeft=l(document.querySelectorAll(".navigate-left")),At.controlsRight=l(document.querySelectorAll(".navigate-right")),At.controlsUp=l(document.querySelectorAll(".navigate-up")),At.controlsDown=l(document.querySelectorAll(".navigate-down")),At.controlsPrev=l(document.querySelectorAll(".navigate-prev")),At.controlsNext=l(document.querySelectorAll(".navigate-next")))}function n(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",u,!1),window.addEventListener("orientationchange",u,!1))}function r(){function e(){n.length&&head.js.apply(null,n),o()}for(var t=[],n=[],r=0,s=yt.dependencies.length;s>r;r++){var a=yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function o(){t(),s(),Y(),setTimeout(function(){v("ready",{indexh:wt,indexv:bt,currentSlide:ft})},1)}function s(e){if(At.wrapper.classList.remove(yt.transition),"object"==typeof e&&c(yt,e),qt===!1&&(yt.transition="linear"),At.wrapper.classList.add(yt.transition),At.wrapper.setAttribute("data-transition-speed",yt.transitionSpeed),At.controls&&(At.controls.style.display=yt.controls&&At.controls?"block":"none"),At.progress&&(At.progress.style.display=yt.progress&&At.progress?"block":"none"),yt.rtl?At.wrapper.classList.add("rtl"):At.wrapper.classList.remove("rtl"),yt.center?At.wrapper.classList.add("center"):At.wrapper.classList.remove("center"),yt.mouseWheel?(document.addEventListener("DOMMouseScroll",tt,!1),document.addEventListener("mousewheel",tt,!1)):(document.removeEventListener("DOMMouseScroll",tt,!1),document.removeEventListener("mousewheel",tt,!1)),yt.rollingLinks?f():p(),yt.theme&&At.theme){var t=At.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];yt.theme!==r&&(t=t.replace(n,yt.theme),At.theme.setAttribute("href",t))}M()}function a(){Dt=!0,window.addEventListener("hashchange",lt,!1),window.addEventListener("resize",dt,!1),yt.touch&&(At.wrapper.addEventListener("touchstart",Q,!1),At.wrapper.addEventListener("touchmove",V,!1),At.wrapper.addEventListener("touchend",B,!1),window.navigator.msPointerEnabled&&(At.wrapper.addEventListener("MSPointerDown",G,!1),At.wrapper.addEventListener("MSPointerMove",J,!1),At.wrapper.addEventListener("MSPointerUp",et,!1))),yt.keyboard&&document.addEventListener("keydown",Z,!1),yt.progress&&At.progress&&At.progress.addEventListener("click",nt,!1),yt.controls&&At.controls&&["touchstart","click"].forEach(function(e){At.controlsLeft.forEach(function(t){t.addEventListener(e,rt,!1)}),At.controlsRight.forEach(function(t){t.addEventListener(e,ot,!1)}),At.controlsUp.forEach(function(t){t.addEventListener(e,st,!1)}),At.controlsDown.forEach(function(t){t.addEventListener(e,at,!1)}),At.controlsPrev.forEach(function(t){t.addEventListener(e,it,!1)}),At.controlsNext.forEach(function(t){t.addEventListener(e,ct,!1)})})}function i(){Dt=!1,document.removeEventListener("keydown",Z,!1),window.removeEventListener("hashchange",lt,!1),window.removeEventListener("resize",dt,!1),At.wrapper.removeEventListener("touchstart",Q,!1),At.wrapper.removeEventListener("touchmove",V,!1),At.wrapper.removeEventListener("touchend",B,!1),window.navigator.msPointerEnabled&&(At.wrapper.removeEventListener("MSPointerDown",G,!1),At.wrapper.removeEventListener("MSPointerMove",J,!1),At.wrapper.removeEventListener("MSPointerUp",et,!1)),yt.progress&&At.progress&&At.progress.removeEventListener("click",nt,!1),yt.controls&&At.controls&&["touchstart","click"].forEach(function(e){At.controlsLeft.forEach(function(t){t.removeEventListener(e,rt,!1)}),At.controlsRight.forEach(function(t){t.removeEventListener(e,ot,!1)}),At.controlsUp.forEach(function(t){t.removeEventListener(e,st,!1)}),At.controlsDown.forEach(function(t){t.removeEventListener(e,at,!1)}),At.controlsPrev.forEach(function(t){t.removeEventListener(e,it,!1)}),At.controlsNext.forEach(function(t){t.removeEventListener(e,ct,!1)})})}function c(e,t){for(var n in t)e[n]=t[n]}function l(e){return Array.prototype.slice.call(e)}function d(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function u(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function v(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),c(n,t),At.wrapper.dispatchEvent(n)}function f(){if(qt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(pt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function p(){for(var e=document.querySelectorAll(pt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function m(e){var t=l(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function h(){if(At.wrapper){var e=At.wrapper.offsetWidth,t=At.wrapper.offsetHeight;e-=t*yt.margin,t-=t*yt.margin;var n=yt.width,r=yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),At.slides.style.width=n+"px",At.slides.style.height=r+"px",St=Math.min(e/n,t/r),St=Math.max(St,yt.minScale),St=Math.min(St,yt.maxScale),void 0===At.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+St+") translate(50%, 50%)";At.slides.style.WebkitTransform=o,At.slides.style.MozTransform=o,At.slides.style.msTransform=o,At.slides.style.OTransform=o,At.slides.style.transform=o}else At.slides.style.zoom=St;for(var s=l(document.querySelectorAll(pt)),a=0,i=s.length;i>a;a++){var c=s[a];"none"!==c.style.display&&(c.style.top=yt.center?c.classList.contains("stack")?0:Math.max(-(c.offsetHeight/2)-20,-r/2)+"px":"")}N()}}function g(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function y(e){return"object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")?parseInt(e.getAttribute("data-previous-indexv")||0,10):0}function L(){if(yt.overview){z();var e=At.wrapper.classList.contains("overview");At.wrapper.classList.add("overview"),At.wrapper.classList.remove("exit-overview"),clearTimeout(Pt),clearTimeout(Nt),Pt=setTimeout(function(){for(var t=document.querySelectorAll(mt),n=0,r=t.length;r>n;n++){var o=t[n],s="translateZ(-2500px) translate("+105*(n-wt)+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=s,o.style.MozTransform=s,o.style.msTransform=s,o.style.OTransform=s,o.style.transform=s,o.classList.contains("stack"))for(var a=o.querySelectorAll("section"),i=0,c=a.length;c>i;i++){var l=n===wt?bt:y(o),d=a[i],u="translate(0%, "+105*(i-l)+"%)";d.setAttribute("data-index-h",n),d.setAttribute("data-index-v",i),d.style.display="block",d.style.WebkitTransform=u,d.style.MozTransform=u,d.style.msTransform=u,d.style.OTransform=u,d.style.transform=u,d.addEventListener("click",ut,!0)}else o.addEventListener("click",ut,!0)}h(),e||v("overviewshown",{indexh:wt,indexv:bt,currentSlide:ft})},10)}}function w(){if(yt.overview){clearTimeout(Pt),clearTimeout(Nt),At.wrapper.classList.remove("overview"),At.wrapper.classList.add("exit-overview"),Nt=setTimeout(function(){At.wrapper.classList.remove("exit-overview")},10);for(var e=l(document.querySelectorAll(pt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",ut,!0)}k(wt,bt),U(),v("overviewhidden",{indexh:wt,indexv:bt,currentSlide:ft})}}function b(e){"boolean"==typeof e?e?L():w():E()?w():L()}function E(){return At.wrapper.classList.contains("overview")}function S(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function A(){var e=At.wrapper.classList.contains("paused");z(),At.wrapper.classList.add("paused"),e===!1&&v("paused")}function q(){var e=At.wrapper.classList.contains("paused");At.wrapper.classList.remove("paused"),U(),e&&v("resumed")}function x(){T()?q():A()}function T(){return At.wrapper.classList.contains("paused")}function k(e,t,n,r){vt=ft;var o=document.querySelectorAll(mt);void 0===t&&(t=y(o[e])),vt&&vt.parentNode&&vt.parentNode.classList.contains("stack")&&g(vt.parentNode,bt);var s=Et.concat();Et.length=0;var a=wt,i=bt;wt=P(mt,void 0===e?wt:e),bt=P(ht,void 0===t?bt:t),h();e:for(var c=0,d=Et.length;d>c;c++){for(var u=0;s.length>u;u++)if(s[u]===Et[c]){s.splice(u,1);continue e}document.documentElement.classList.add(Et[c]),v(Et[c])}for(;s.length;)document.documentElement.classList.remove(s.pop());E()&&L(),R(1500);var f=o[wt],p=f.querySelectorAll("section");if(ft=p[bt]||f,n!==void 0){var w=m(ft.querySelectorAll(".fragment"));l(w).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}wt!==a||bt!==i?v("slidechanged",{indexh:wt,indexv:bt,previousSlide:vt,currentSlide:ft,origin:r}):vt=null,vt&&(vt.classList.remove("present"),document.querySelector(gt).classList.contains("present")&&setTimeout(function(){var e,t=l(document.querySelectorAll(mt+".stack"));for(e in t)t[e]&&g(t[e],0)},0)),D(),N()}function M(){i(),a(),h(),Lt=yt.autoSlide,U(),D(),N()}function P(e,t){var n=l(document.querySelectorAll(e)),r=n.length;if(r){yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var s=n[o];if(E()===!1){var a=Math.abs((t-o)%(r-3))||0;s.style.display=a>3?"none":"block"}n[o].classList.remove("past"),n[o].classList.remove("present"),n[o].classList.remove("future"),t>o?n[o].classList.add("past"):o>t&&n[o].classList.add("future"),s.querySelector("section")&&n[o].classList.add("stack")}n[t].classList.add("present");var i=n[t].getAttribute("data-state");i&&(Et=Et.concat(i.split(" ")));var c=n[t].getAttribute("data-autoslide");Lt=c?parseInt(c,10):yt.autoSlide}else t=0;return t}function N(){if(yt.progress&&At.progress){var e=l(document.querySelectorAll(mt)),t=document.querySelectorAll(pt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],s=l(o.querySelectorAll("section")),a=0;s.length>a;a++){if(s[a].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}At.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function D(){if(yt.controls&&At.controls){var e=C(),t=O();if(At.controlsLeft.concat(At.controlsRight).concat(At.controlsUp).concat(At.controlsDown).concat(At.controlsPrev).concat(At.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&At.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&At.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&At.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&At.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&At.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&At.controlsNext.forEach(function(e){e.classList.add("enabled")}),ft){var n=!!ft.parentNode.nodeName.match(/section/gi);t.prev&&At.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&At.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),n?(t.prev&&At.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&At.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&At.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&At.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")}))}}}function C(){var e=document.querySelectorAll(mt),t=document.querySelectorAll(ht);return{left:wt>0||yt.loop,right:e.length-1>wt||yt.loop,up:bt>0,down:t.length-1>bt}}function O(){if(ft){var e=ft.querySelectorAll(".fragment"),t=ft.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Y(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);k(o.h,o.v)}else k(wt,bt)}else{var s=parseInt(t[0],10)||0,a=parseInt(t[1],10)||0;k(s,a)}}function R(e){if(yt.history)if(clearTimeout(Mt),"number"==typeof e)Mt=setTimeout(R,e);else{var t="/";ft&&"string"==typeof ft.getAttribute("id")?t="/"+ft.getAttribute("id"):((wt>0||bt>0)&&(t+=wt),bt>0&&(t+="/"+bt)),window.location.hash=t}}function X(e){var t,n=wt,r=bt;if(e){var o=!!e.parentNode.nodeName.match(/section/gi),s=o?e.parentNode:e,a=l(document.querySelectorAll(mt));n=Math.max(a.indexOf(s),0),o&&(r=Math.max(l(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&ft){var i=ft.querySelectorAll(".fragment.visible");i.length&&(t=i.length)}return{h:n,v:r,f:t}}function H(){if(ft){var e=m(ft.querySelectorAll(".fragment:not(.visible)"));if(e.length)return e[0].classList.add("visible"),v("fragmentshown",{fragment:e[0]}),D(),!0}return!1}function I(){if(ft){var e=m(ft.querySelectorAll(".fragment.visible"));if(e.length)return e[e.length-1].classList.remove("visible"),v("fragmenthidden",{fragment:e[e.length-1]}),D(),!0}return!1}function U(){clearTimeout(kt),!Lt||T()||E()||(kt=setTimeout($,Lt))}function z(){clearTimeout(kt)}function W(){(E()||I()===!1)&&C().left&&k(wt-1)}function F(){(E()||H()===!1)&&C().right&&k(wt+1)}function _(){(E()||I()===!1)&&C().up&&k(wt,bt-1)}function j(){(E()||H()===!1)&&C().down&&k(wt,bt+1)}function K(){if(I()===!1)if(C().up)_();else{var e=document.querySelector(mt+".past:nth-child("+wt+")");e&&(bt=e.querySelectorAll("section").length+1||void 0,wt--,k(wt,bt))}}function $(){H()===!1&&(C().down?j():F()),U()}function Z(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){var n=!0;if(T()&&-1===[66,190,191].indexOf(e.keyCode))return!1;switch(e.keyCode){case 80:case 33:K();break;case 78:case 34:$();break;case 72:case 37:W();break;case 76:case 39:F();break;case 75:case 38:_();break;case 74:case 40:j();break;case 36:k(0);break;case 35:k(Number.MAX_VALUE);break;case 32:E()?w():e.shiftKey?K():$();break;case 13:E()?w():n=!1;break;case 66:case 190:case 191:x();break;case 70:S();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&qt&&(b(),e.preventDefault()),U()}}function Q(e){Ct.startX=e.touches[0].clientX,Ct.startY=e.touches[0].clientY,Ct.startCount=e.touches.length,2===e.touches.length&&yt.overview&&(Ct.startSpan=d({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Ct.startX,y:Ct.startY}))}function V(e){if(Ct.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Ct.startCount&&yt.overview){var r=d({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Ct.startX,y:Ct.startY});Math.abs(Ct.startSpan-r)>Ct.threshold&&(Ct.handled=!0,Ct.startSpan>r?L():w()),e.preventDefault()}else if(1===e.touches.length&&2!==Ct.startCount){var o=t-Ct.startX,s=n-Ct.startY;o>Ct.threshold&&Math.abs(o)>Math.abs(s)?(Ct.handled=!0,W()):-Ct.threshold>o&&Math.abs(o)>Math.abs(s)?(Ct.handled=!0,F()):s>Ct.threshold?(Ct.handled=!0,_()):-Ct.threshold>s&&(Ct.handled=!0,j()),e.preventDefault()}}}function B(){Ct.handled=!1}function G(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Q(e))}function J(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],V(e))}function et(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],B(e))}function tt(e){clearTimeout(Tt),Tt=setTimeout(function(){var t=e.detail||-e.wheelDelta;t>0?$():K()},100)}function nt(e){e.preventDefault();var t=l(document.querySelectorAll(mt)).length,n=Math.floor(e.clientX/At.wrapper.offsetWidth*t);k(n)}function rt(e){e.preventDefault(),W()}function ot(e){e.preventDefault(),F()}function st(e){e.preventDefault(),_()}function at(e){e.preventDefault(),j()}function it(e){e.preventDefault(),K()}function ct(e){e.preventDefault(),$()}function lt(){Y()}function dt(){h()}function ut(e){if(Dt&&E()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(w(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);k(n,r)}}}var vt,ft,pt=".reveal .slides section",mt=".reveal .slides>section",ht=".reveal .slides>section.present>section",gt=".reveal .slides>section:first-child",yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!0,theme:null,transition:"default",transitionSpeed:"default",dependencies:[]},Lt=0,wt=0,bt=0,Et=[],St=1,At={},qt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,xt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Tt=0,kt=0,Mt=0,Pt=0,Nt=0,Dt=!1,Ct={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:M,slide:k,left:W,right:F,up:_,down:j,prev:K,next:$,prevFragment:I,nextFragment:H,navigateTo:k,navigateLeft:W,navigateRight:F,navigateUp:_,navigateDown:j,navigatePrev:K,navigateNext:$,layout:h,availableRoutes:C,availableFragments:O,toggleOverview:b,togglePause:x,isOverview:E,isPaused:T,addEventListeners:a,removeEventListeners:i,getIndices:X,getSlide:function(e,t){var n=document.querySelectorAll(mt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return vt},getCurrentSlide:function(){return ft},getScale:function(){return St},getConfig:function(){return yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(pt+".past")?!0:!1},isLastSlide:function(){return ft&&ft.classList.contains(".stack")?null==ft.querySelector(pt+".future")?!0:!1:null==document.querySelector(pt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(At.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(At.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();