0){let a=.9;t+=b.querySelectorAll(".fragment.visible").length/e.length*a}}return Math.min(t/(e-1),1)}function pt(){return!!window.location.search.match(/receiver/gi)}function ht(){let e=window.location.hash,t=e.slice(2).split("/"),r=e.replace(/#|\//gi,"");if(!/^[0-9]*$/.test(t[0])&&r.length){let e;try{e=document.getElementById(decodeURIComponent(r))}catch(e){}let t=!!b&&b.getAttribute("id")===r;if(e){if(!t){let t=a.getIndices(e);De(t.h,t.v)}}else De(g||0,m||0)}else{let e,a=f.hashOneBasedIndex?1:0,r=parseInt(t[0],10)-a||0,n=parseInt(t[1],10)-a||0;f.fragmentInURL&&(e=parseInt(t[2],10),isNaN(e)&&(e=void 0)),r===g&&n===m&&void 0===e||De(r,n,e)}}function ft(e){clearTimeout(H),"number"==typeof e?H=setTimeout(ft,e):b&&(f.history||!window.history?window.location.hash=Me():f.hash?window.history.replaceState(null,null,"#"+Me()):window.history.replaceState(null,null,window.location.pathname+window.location.search))}function gt(e){let t,a=g,r=m;if(e){let t=Ne(e),n=t?e.parentNode:e,i=o(C.wrapper.querySelectorAll(".slides>section"));a=Math.max(i.indexOf(n),0),r=void 0,t&&(r=Math.max(o(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&b){if(b.querySelectorAll(".fragment").length>0){let e=b.querySelector(".current-fragment");t=e&&e.hasAttribute("data-fragment-index")?parseInt(e.getAttribute("data-fragment-index"),10):b.querySelectorAll(".fragment.visible").length-1}}return{h:a,v:r,f:t}}function mt(){return o(C.wrapper.querySelectorAll('.slides section:not(.stack):not([data-visibility="uncounted"])'))}function vt(){return o(C.wrapper.querySelectorAll(".slides>section"))}function bt(){return o(C.wrapper.querySelectorAll(".slides>section>section"))}function yt(){return vt().length>1}function wt(){return bt().length>1}function At(){return mt().length}function kt(e,t){let a=vt()[e],r=a&&a.querySelectorAll("section");return r&&r.length&&"number"==typeof t?r?r[t]:void 0:a}function Et(e,t){let a="number"==typeof e?kt(e,t):e;if(a)return a.slideBackgroundElement}function St(e=b){if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");let t=e.querySelector("aside.notes");return t?t.innerHTML:null}function Lt(){let e=gt();return{indexh:e.h,indexv:e.v,indexf:e.f,paused:Oe(),overview:xe()}}function xt(e,t=!1){e=o(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 Mt(e,t){let a={shown:[],hidden:[]};if(b&&f.fragments&&(t=t||xt(b.querySelectorAll(".fragment"))).length){let r=0;if("number"!=typeof e){let t=xt(b.querySelectorAll(".fragment.visible")).pop();t&&(e=parseInt(t.getAttribute("data-fragment-index")||0,10))}o(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"),C.statusDiv.textContent=G(t),n===e&&(t.classList.add("current-fragment"),ot(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),b.setAttribute("data-fragment",e)}return a}function Nt(e,t=0){if(b&&f.fragments){let a=xt(b.querySelectorAll(".fragment"));if(a.length){if("number"!=typeof e){let t=xt(b.querySelectorAll(".fragment.visible")).pop();e=t?parseInt(t.getAttribute("data-fragment-index")||0,10):-1}let r=Mt(e+=t,a);return r.hidden.length&&de("fragmenthidden",{fragment:r.hidden[0],fragments:r.hidden}),r.shown.length&&de("fragmentshown",{fragment:r.shown[0],fragments:r.shown}),Xe(),Fe(),f.fragmentInURL&&ft(),!(!r.shown.length&&!r.hidden.length)}}return!1}function qt(){return Nt(null,1)}function It(){return Nt(null,-1)}function Pt(){if(Tt(),b&&!1!==f.autoSlide){let e=b.querySelector(".current-fragment");e||(e=b.querySelector(".fragment"));let t=e?e.getAttribute("data-autoslide"):null,r=b.parentNode?b.parentNode.getAttribute("data-autoslide"):null,n=b.getAttribute("data-autoslide");F=t?parseInt(t,10):n?parseInt(n,10):r?parseInt(r,10):f.autoSlide,0===b.querySelectorAll(".fragment").length&&o(b.querySelectorAll("video, audio")).forEach(e=>{e.hasAttribute("data-autoplay")&&F&&1e3*e.duration/e.playbackRate>F&&(F=1e3*e.duration/e.playbackRate+1e3)}),!F||X||Oe()||xe()||a.isLastSlide()&&!it().next&&!0!==f.loop||(U=setTimeout(()=>{"function"==typeof f.autoSlideMethod?f.autoSlideMethod():jt(),Pt()},F),V=Date.now()),E&&E.setPlaying(-1!==U)}}function Tt(){clearTimeout(U),U=-1}function Ct(){F&&!X&&(X=!0,de("autoslidepaused"),clearTimeout(U),E&&E.setPlaying(!1))}function Ot(){F&&X&&(X=!1,de("autoslideresumed"),Pt())}function Rt(){N=!0,f.rtl?(xe()||!1===qt())&&nt().left&&De(g+1,"grid"===f.navigationMode?m:void 0):(xe()||!1===It())&&nt().left&&De(g-1,"grid"===f.navigationMode?m:void 0)}function Dt(){N=!0,f.rtl?(xe()||!1===It())&&nt().right&&De(g-1,"grid"===f.navigationMode?m:void 0):(xe()||!1===qt())&&nt().right&&De(g+1,"grid"===f.navigationMode?m:void 0)}function Bt(){(xe()||!1===It())&&nt().up&&De(g,m-1)}function Ht(){q=!0,(xe()||!1===qt())&&nt().down&&De(g,m+1)}function zt(){if(!1===It())if(nt().up)Bt();else{let e;if(e=f.rtl?o(C.wrapper.querySelectorAll(".slides>section.future")).pop():o(C.wrapper.querySelectorAll(".slides>section.past")).pop(),e){let t=e.querySelectorAll("section").length-1||void 0;De(g-1,t)}}}function jt(){if(N=!0,q=!0,!1===qt()){let e=nt();e.down&&e.right&&f.loop&&a.isLastVerticalSlide(b)&&(e.down=!1),e.down?Ht():f.rtl?Rt():Dt()}}function $t(e){for(;e&&"function"==typeof e.hasAttribute;){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNode}return!1}function Wt(e){f.autoSlideStoppable&&Ct()}function Ft(e){qe(),clearTimeout(j),j=setTimeout(Ie,f.hideCursorTime)}function Ut(e){e.shiftKey&&63===e.charCode&&he()}function Vt(e){if("function"==typeof f.keyboardCondition&&!1===f.keyboardCondition(e))return!0;let t=e.keyCode,r=X;Wt();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=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(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(Oe()&&-1===p.indexOf(t))return!1;let h="linear"===f.navigationMode||!yt()||!wt(),g=!1;if("object"==typeof f.keyboard)for(u in f.keyboard)if(parseInt(u,10)===t){let t=f.keyboard[u];"function"==typeof t?t.apply(null,[e]):"string"==typeof t&&"function"==typeof a[t]&&a[t].call(),g=!0}if(!1===g)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(),g=!0}!1===g&&(g=!0,80===t||33===t?zt():78===t||34===t?jt():72===t||37===t?l?De(0):!xe()&&h?zt():Rt():76===t||39===t?d?De(Number.MAX_VALUE):!xe()&&h?jt():Dt():75===t||38===t?!xe()&&h?zt():Bt():74===t||40===t?!xe()&&h?jt():Ht():36===t?De(0):35===t?De(Number.MAX_VALUE):32===t?(xe()&&Se(),e.shiftKey?zt():jt()):58===t||59===t||66===t||86===t||190===t||191===t?Ce():70===t?(()=>{let e=document.documentElement,t=e.requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)})():65===t?f.autoSlideStoppable&&Re(r):g=!1),g?e.preventDefault&&e.preventDefault():27!==t&&79!==t||(C.overlay?ge():Le(),e.preventDefault&&e.preventDefault()),Pt()}function Xt(e){if($t(e.target))return!0;Y.startX=e.touches[0].clientX,Y.startY=e.touches[0].clientY,Y.startCount=e.touches.length}function Yt(e){if($t(e.target))return!0;if(Y.captured)p.match(/android/gi)&&e.preventDefault();else{Wt();let t=e.touches[0].clientX,a=e.touches[0].clientY;if(1===e.touches.length&&2!==Y.startCount){let r=t-Y.startX,n=a-Y.startY;r>Y.threshold&&Math.abs(r)>Math.abs(n)?(Y.captured=!0,"linear"===f.navigationMode?f.rtl?jt():zt():Rt()):r<-Y.threshold&&Math.abs(r)>Math.abs(n)?(Y.captured=!0,"linear"===f.navigationMode?f.rtl?zt():jt():Dt()):n>Y.threshold?(Y.captured=!0,"linear"===f.navigationMode?zt():Bt()):n<-Y.threshold&&(Y.captured=!0,"linear"===f.navigationMode?jt():Ht()),f.embedded?(Y.captured||Ne(b))&&e.preventDefault():e.preventDefault()}}}function Kt(e){Y.captured=!1}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(e))}function Qt(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Kt())}function Zt(e){if(Date.now()-B>600){B=Date.now();let t=e.detail||-e.wheelDelta;t>0?jt():t<0&&zt()}}function Gt(e){Wt(),e.preventDefault();let t=vt().length,a=Math.floor(e.clientX/C.wrapper.offsetWidth*t);f.rtl&&(a=t-a),De(a)}function ea(e){e.preventDefault(),Wt(),"linear"===f.navigationMode?zt():Rt()}function ta(e){e.preventDefault(),Wt(),"linear"===f.navigationMode?jt():Dt()}function aa(e){e.preventDefault(),Wt(),Bt()}function ra(e){e.preventDefault(),Wt(),Ht()}function na(e){e.preventDefault(),Wt(),zt()}function ia(e){e.preventDefault(),Wt(),jt()}function oa(e){ht()}function sa(e){me()}function la(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function da(e){if($&&xe()){e.preventDefault();let t=e.target;for(;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(Se(),t.nodeName.match(/section/gi))){De(parseInt(t.getAttribute("data-index-h"),10),parseInt(t.getAttribute("data-index-v"),10))}}}function ca(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){let t=e.currentTarget.getAttribute("href");t&&(!function(e){ge(),C.overlay=document.createElement("div"),C.overlay.classList.add("overlay"),C.overlay.classList.add("overlay-preview"),C.wrapper.appendChild(C.overlay),C.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
`,C.overlay.querySelector("iframe").addEventListener("load",e=>{C.overlay.classList.add("loaded")},!1),C.overlay.querySelector(".close").addEventListener("click",e=>{ge(),e.preventDefault()},!1),C.overlay.querySelector(".external").addEventListener("click",e=>{ge()},!1)}(t),e.preventDefault())}}function ua(e){a.isLastSlide()&&!1===f.loop?(De(0,0),Ot()):X?Ot():Ct()}return a={VERSION:"4.0.0-dev",configure:ne,sync:Be,syncSlide:function(e=b){re(e),He(e),at(e),Ye(),We()},syncFragments:He,slide:De,left:Rt,right:Dt,up:Bt,down:Ht,prev:zt,next:jt,navigateTo:De,navigateLeft:Rt,navigateRight:Dt,navigateUp:Bt,navigateDown:Ht,navigatePrev:zt,navigateNext:jt,navigateFragment:Nt,prevFragment:It,nextFragment:qt,layout:me,shuffle:ze,availableRoutes:nt,availableFragments:it,toggleHelp:he,toggleOverview:Le,togglePause:Ce,toggleAutoSlide:Re,isOverview:xe,isPaused:Oe,isAutoSliding:function(){return!(!F||X)},isSpeakerNotes:pt,loadSlide:at,unloadSlide:rt,addEventListeners:ie,removeEventListeners:oe,getState:Lt,setState:function(e){if("object"==typeof e){De(s(e.indexh),s(e.indexv),s(e.indexf));let t=s(e.paused),a=s(e.overview);"boolean"==typeof t&&t!==Oe()&&Ce(t),"boolean"==typeof a&&a!==xe()&&Le(a)}},getSlidePastCount:ct,getProgress:ut,getIndices:gt,getSlides:mt,getSlidesAttributes:function(){return mt().map(e=>{let t={};for(let a=0;av,getCurrentSlide:()=>b,getScale:()=>P,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]=s(unescape(a))}return e},getRevealElement:()=>C.wrapper||document.querySelector(".reveal"),getPlugins:()=>O,isFirstSlide:()=>0===g&&0===m,isLastSlide:()=>!!b&&(!b.nextElementSibling&&(!Ne(b)||!b.parentNode.nextElementSibling)),isLastVerticalSlide:()=>!(!b||!Ne(b))&&!b.nextElementSibling,isReady:()=>S,addEventListener:(e,t,r)=>{a.getRevealElement().addEventListener(e,t,r)},removeEventListener:(e,t,r)=>{a.getRevealElement().removeEventListener(e,t,r)},triggerKey:e=>Vt({keyCode:e}),registerKeyboardShortcut:(e,t)=>K[e]=t},function(){if(!e)return void console.warn("reveal.js must be instantiated with a valid .reveal element");!function(){w=/(iphone|ipod|ipad|android)/gi.test(p)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,A=/chrome/i.test(p)&&!/edge/i.test(p);let e=document.createElement("div");D.zoom="zoom"in e.style&&!w&&(A||/Version\/[\d\.]+.*Safari/.test(p))}(),C.wrapper=e,C.slides=e.querySelector(".slides"),window.addEventListener("load",me,!1);let r=a.getQueryHash();return void 0!==r.dependencies&&delete r.dependencies,f={...n,...t,...r},function(){let e=[],t=0;f.dependencies.forEach(t=>{t.condition&&!t.condition()||(t.async?R.push(t):e.push(t))}),e.length?(t=e.length,e.forEach(e=>{Z(e.src,()=>{"function"==typeof e.callback&&e.callback(),0==--t&&J()})})):J()}(),a}()};window.Reveal=p,window.Reveal.initialize=e=>{window.Reveal=new p(document.querySelector(".reveal"),e)}}]);