mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
36 lines
87 KiB
JavaScript
36 lines
87 KiB
JavaScript
/*!
|
|
* reveal.js 4.4.0
|
|
* https://revealjs.com
|
|
* MIT licensed
|
|
*
|
|
* Copyright (C) 2011-2022 Hakim El Hattab, https://hakim.se
|
|
*/const oe=(h,e)=>{for(let t in e)h[t]=e[t];return h},b=(h,e)=>Array.from(h.querySelectorAll(e)),Me=(h,e,t)=>{t?h.classList.add(e):h.classList.remove(e)},re=h=>{if(typeof h=="string"){if(h==="null")return null;if(h==="true")return!0;if(h==="false")return!1;if(h.match(/^-?[\d\.]+$/))return parseFloat(h)}return h},te=(h,e)=>{h.style.transform=e},ye=(h,e)=>{let t=h.matches||h.matchesSelector||h.msMatchesSelector;return!(!t||!t.call(h,e))},q=(h,e)=>{if(typeof h.closest=="function")return h.closest(e);for(;h;){if(ye(h,e))return h;h=h.parentNode}return null},Gt=(h,e,t,i="")=>{let a=h.querySelectorAll("."+t);for(let r=0;r<a.length;r++){let c=a[r];if(c.parentNode===h)return c}let o=document.createElement(e);return o.className=t,o.innerHTML=i,h.appendChild(o),o},Ie=h=>{let e=document.createElement("style");return e.type="text/css",h&&h.length>0&&(e.styleSheet?e.styleSheet.cssText=h:e.appendChild(document.createTextNode(h))),document.head.appendChild(e),e},ft=()=>{let h={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,e=>{h[e.split("=").shift()]=e.split("=").pop()});for(let e in h){let t=h[e];h[e]=re(unescape(t))}return h.dependencies!==void 0&&delete h.dependencies,h},Jt=(h,e=0)=>{if(h){let t,i=h.style.height;return h.style.height="0px",h.parentNode.style.height="auto",t=e-h.parentNode.offsetHeight,h.style.height=i+"px",h.parentNode.style.removeProperty("height"),t}return e},Qt={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},St=navigator.userAgent,le=/(iphone|ipod|ipad|android)/gi.test(St)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,At=/android/gi.test(St);var kt={};Object.defineProperty(kt,"__esModule",{value:!0});var bt=Object.assign||function(h){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(h[i]=t[i])}return h},Zt=kt.default=function(h){if(h){var e=function(u){return[].slice.call(u)},t=0,i=1,a=2,o=3,r=[],c=null,n="requestAnimationFrame"in h?function(){h.cancelAnimationFrame(c),c=h.requestAnimationFrame(function(){return S(r.filter(function(u){return u.dirty&&u.active}))})}:function(){},w=function(u){return function(){r.forEach(function(L){return L.dirty=u}),n()}},S=function(u){u.filter(function(x){return!x.styleComputed}).forEach(function(x){x.styleComputed=l(x)}),u.filter(k).forEach(I);var L=u.filter(y);L.forEach(m),L.forEach(function(x){I(x),p(x)}),L.forEach(Y)},p=function(u){return u.dirty=t},m=function(u){u.availableWidth=u.element.parentNode.clientWidth,u.currentWidth=u.element.scrollWidth,u.previousFontSize=u.currentFontSize,u.currentFontSize=Math.min(Math.max(u.minSize,u.availableWidth/u.currentWidth*u.previousFontSize),u.maxSize),u.whiteSpace=u.multiLine&&u.currentFontSize===u.minSize?"normal":"nowrap"},y=function(u){return u.dirty!==a||u.dirty===a&&u.element.parentNode.clientWidth!==u.availableWidth},l=function(u){var L=h.getComputedStyle(u.element,null);u.currentFontSize=parseFloat(L.getPropertyValue("font-size")),u.display=L.getPropertyValue("display"),u.whiteSpace=L.getPropertyValue("white-space")},k=function(u){var L=!1;return!u.preStyleTestCompleted&&(/inline-/.test(u.display)||(L=!0,u.display="inline-block"),u.whiteSpace!=="nowrap"&&(L=!0,u.whiteSpace="nowrap"),u.preStyleTestCompleted=!0,L)},I=function(u){u.element.style.whiteSpace=u.whiteSpace,u.element.style.display=u.display,u.element.style.fontSize=u.currentFontSize+"px"},Y=function(u){u.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:u.previousFontSize,newValue:u.currentFontSize,scaleFactor:u.currentFontSize/u.previousFontSize}}))},Q=function(u,L){return function(){u.dirty=L,u.active&&n()}},O=function(u){return function(){r=r.filter(function(L){return L.element!==u.element}),u.observeMutations&&u.observer.disconnect(),u.element.style.whiteSpace=u.originalStyle.whiteSpace,u.element.style.display=u.originalStyle.display,u.element.style.fontSize=u.originalStyle.fontSize}},C=function(u){return function(){u.active||(u.active=!0,n())}},N=function(u){return function(){return u.active=!1}},H=function(u){u.observeMutations&&(u.observer=new MutationObserver(Q(u,i)),u.observer.observe(u.element,u.observeMutations))},T={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in h&&{subtree:!0,childList:!0,characterData:!0}},R=null,E=function(){h.clearTimeout(R),R=h.setTimeout(w(a),B.observeWindowDelay)},F=["resize","orientationchange"];return Object.defineProperty(B,"observeWindow",{set:function(u){var L=(u?"add":"remove")+"EventListener";F.forEach(function(x){h[L](x,E)})}}),B.observeWindow=!0,B.observeWindowDelay=100,B.fitAll=w(o),B}function z(u,L){var x=bt({},T,L),V=u.map(function($){var Z=bt({},x,{element:$,active:!0});return function(M){M.originalStyle={whiteSpace:M.element.style.whiteSpace,display:M.element.style.display,fontSize:M.element.style.fontSize},H(M),M.newbie=!0,M.dirty=!0,r.push(M)}(Z),{element:$,fit:Q(Z,o),unfreeze:C(Z),freeze:N(Z),unsubscribe:O(Z)}});return n(),V}function B(u){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof u=="string"?z(e(document.querySelectorAll(u)),L):z([u],L)[0]}}(typeof window>"u"?null:window);class ei{constructor(e){this.Reveal=e,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}shouldPreload(e){let t=this.Reveal.getConfig().preloadIframes;return typeof t!="boolean"&&(t=e.hasAttribute("data-preload")),t}load(e,t={}){e.style.display=this.Reveal.getConfig().display,b(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(a=>{(a.tagName!=="IFRAME"||this.shouldPreload(a))&&(a.setAttribute("src",a.getAttribute("data-src")),a.setAttribute("data-lazy-loaded",""),a.removeAttribute("data-src"))}),b(e,"video, audio").forEach(a=>{let o=0;b(a,"source[data-src]").forEach(r=>{r.setAttribute("src",r.getAttribute("data-src")),r.removeAttribute("data-src"),r.setAttribute("data-lazy-loaded",""),o+=1}),le&&a.tagName==="VIDEO"&&a.setAttribute("playsinline",""),o>0&&a.load()});let i=e.slideBackgroundElement;if(i){i.style.display="block";let a=e.slideBackgroundContentElement,o=e.getAttribute("data-background-iframe");if(i.hasAttribute("data-loaded")===!1){i.setAttribute("data-loaded","true");let c=e.getAttribute("data-background-image"),n=e.getAttribute("data-background-video"),w=e.hasAttribute("data-background-video-loop"),S=e.hasAttribute("data-background-video-muted");if(c)/^data:/.test(c.trim())?a.style.backgroundImage=`url(${c.trim()})`:a.style.backgroundImage=c.split(",").map(p=>`url(${encodeURI(p.trim())})`).join(",");else if(n&&!this.Reveal.isSpeakerNotes()){let p=document.createElement("video");w&&p.setAttribute("loop",""),S&&(p.muted=!0),le&&(p.muted=!0,p.setAttribute("playsinline","")),n.split(",").forEach(m=>{let y=((l="")=>Qt[l.split(".").pop()])(m);p.innerHTML+=y?`<source src="${m}" type="${y}">`:`<source src="${m}">`}),a.appendChild(p)}else if(o&&t.excludeIframes!==!0){let p=document.createElement("iframe");p.setAttribute("allowfullscreen",""),p.setAttribute("mozallowfullscreen",""),p.setAttribute("webkitallowfullscreen",""),p.setAttribute("allow","autoplay"),p.setAttribute("data-src",o),p.style.width="100%",p.style.height="100%",p.style.maxHeight="100%",p.style.maxWidth="100%",a.appendChild(p)}}let r=a.querySelector("iframe[data-src]");r&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(o)&&r.getAttribute("src")!==o&&r.setAttribute("src",o)}this.layout(e)}layout(e){Array.from(e.querySelectorAll(".r-fit-text")).forEach(t=>{Zt(t,{minSize:24,maxSize:.8*this.Reveal.getConfig().height,observeMutations:!1,observeWindow:!1})})}unload(e){e.style.display="none";let t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",b(t,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),b(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),b(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let e=(t,i,a)=>{b(this.Reveal.getSlidesElement(),"iframe["+t+'*="'+i+'"]').forEach(o=>{let r=o.getAttribute(t);r&&r.indexOf(a)===-1&&o.setAttribute(t,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")}startEmbeddedContent(e){e&&!this.Reveal.isSpeakerNotes()&&(b(e,'img[src$=".gif"]').forEach(t=>{t.setAttribute("src",t.getAttribute("src"))}),b(e,"video, audio").forEach(t=>{if(q(t,".fragment")&&!q(t,".fragment.visible"))return;let i=this.Reveal.getConfig().autoPlayMedia;if(typeof i!="boolean"&&(i=t.hasAttribute("data-autoplay")||!!q(t,".slide-background")),i&&typeof t.play=="function")if(t.readyState>1)this.startEmbeddedMedia({target:t});else if(le){let a=t.play();a&&typeof a.catch=="function"&&t.controls===!1&&a.catch(()=>{t.controls=!0,t.addEventListener("play",()=>{t.controls=!1})})}else t.removeEventListener("loadeddata",this.startEmbeddedMedia),t.addEventListener("loadeddata",this.startEmbeddedMedia)}),b(e,"iframe[src]").forEach(t=>{q(t,".fragment")&&!q(t,".fragment.visible")||this.startEmbeddedIframe({target:t})}),b(e,"iframe[data-src]").forEach(t=>{q(t,".fragment")&&!q(t,".fragment.visible")||t.getAttribute("src")!==t.getAttribute("data-src")&&(t.removeEventListener("load",this.startEmbeddedIframe),t.addEventListener("load",this.startEmbeddedIframe),t.setAttribute("src",t.getAttribute("data-src")))}))}startEmbeddedMedia(e){let t=!!q(e.target,"html"),i=!!q(e.target,".present");t&&i&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(e){let t=e.target;if(t&&t.contentWindow){let i=!!q(e.target,"html"),a=!!q(e.target,".present");if(i&&a){let o=this.Reveal.getConfig().autoPlayMedia;typeof o!="boolean"&&(o=t.hasAttribute("data-autoplay")||!!q(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&o?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&o?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(e,t={}){t=oe({unloadIframes:!0},t),e&&e.parentNode&&(b(e,"video, audio").forEach(i=>{i.hasAttribute("data-ignore")||typeof i.pause!="function"||(i.setAttribute("data-paused-by-reveal",""),i.pause())}),b(e,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.startEmbeddedIframe)}),b(e,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),b(e,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),t.unloadIframes===!0&&b(e,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}}class ti{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(e,t){let i="none";e.slideNumber&&!this.Reveal.isPrintingPDF()&&(e.showSlideNumber==="all"||e.showSlideNumber==="speaker"&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(e=this.Reveal.getCurrentSlide()){let t,i=this.Reveal.getConfig(),a="h.v";if(typeof i.slideNumber=="function")t=i.slideNumber(e);else{typeof i.slideNumber=="string"&&(a=i.slideNumber),/c/.test(a)||this.Reveal.getHorizontalSlides().length!==1||(a="c");let r=e&&e.dataset.visibility==="uncounted"?0:1;switch(t=[],a){case"c":t.push(this.Reveal.getSlidePastCount(e)+r);break;case"c/t":t.push(this.Reveal.getSlidePastCount(e)+r,"/",this.Reveal.getTotalSlides());break;default:let c=this.Reveal.getIndices(e);t.push(c.h+r);let n=a==="h/v"?"/":".";this.Reveal.isVerticalSlide(e)&&t.push(n,c.v+1)}}let o="#"+this.Reveal.location.getHash(e);return this.formatNumber(t[0],t[1],t[2],o)}formatNumber(e,t,i,a="#"+this.Reveal.location.getHash()){return typeof i!="number"||isNaN(i)?`<a href="${a}">
|
|
<span class="slide-number-a">${e}</span>
|
|
</a>`:`<a href="${a}">
|
|
<span class="slide-number-a">${e}</span>
|
|
<span class="slide-number-delimiter">${t}</span>
|
|
<span class="slide-number-b">${i}</span>
|
|
</a>`}destroy(){this.element.remove()}}const De=h=>{let e=h.match(/^#([0-9a-f]{3})$/i);if(e&&e[1])return e=e[1],{r:17*parseInt(e.charAt(0),16),g:17*parseInt(e.charAt(1),16),b:17*parseInt(e.charAt(2),16)};let t=h.match(/^#([0-9a-f]{6})$/i);if(t&&t[1])return t=t[1],{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)};let i=h.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(i)return{r:parseInt(i[1],10),g:parseInt(i[2],10),b:parseInt(i[3],10)};let a=h.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return a?{r:parseInt(a[1],10),g:parseInt(a[2],10),b:parseInt(a[3],10),a:parseFloat(a[4])}:null};class ii{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(e=>{let t=this.createBackground(e,this.element);b(e,"section").forEach(i=>{this.createBackground(i,t),t.classList.add("stack")})}),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backgroundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.element.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.element.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,this.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPosition,setTimeout(()=>{this.Reveal.getRevealElement().classList.add("has-parallax-background")},1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}createBackground(e,t){let i=document.createElement("div");i.className="slide-background "+e.className.replace(/present|past|future/,"");let a=document.createElement("div");return a.className="slide-background-content",i.appendChild(a),t.appendChild(i),e.slideBackgroundElement=i,e.slideBackgroundContentElement=a,this.sync(e),i}sync(e){const t=e.slideBackgroundElement,i=e.slideBackgroundContentElement,a={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundVideo:e.getAttribute("data-background-video"),backgroundIframe:e.getAttribute("data-background-iframe"),backgroundColor:e.getAttribute("data-background-color"),backgroundGradient:e.getAttribute("data-background-gradient"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition"),backgroundOpacity:e.getAttribute("data-background-opacity")},o=e.hasAttribute("data-preload");e.classList.remove("has-dark-background"),e.classList.remove("has-light-background"),t.removeAttribute("data-loaded"),t.removeAttribute("data-background-hash"),t.removeAttribute("data-background-size"),t.removeAttribute("data-background-transition"),t.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="",a.background&&(/^(http|file|\/\/)/gi.test(a.background)||/\.(svg|png|jpg|jpeg|gif|bmp|webp)([?#\s]|$)/gi.test(a.background)?e.setAttribute("data-background-image",a.background):t.style.background=a.background),(a.background||a.backgroundColor||a.backgroundGradient||a.backgroundImage||a.backgroundVideo||a.backgroundIframe)&&t.setAttribute("data-background-hash",a.background+a.backgroundSize+a.backgroundImage+a.backgroundVideo+a.backgroundIframe+a.backgroundColor+a.backgroundGradient+a.backgroundRepeat+a.backgroundPosition+a.backgroundTransition+a.backgroundOpacity),a.backgroundSize&&t.setAttribute("data-background-size",a.backgroundSize),a.backgroundColor&&(t.style.backgroundColor=a.backgroundColor),a.backgroundGradient&&(t.style.backgroundImage=a.backgroundGradient),a.backgroundTransition&&t.setAttribute("data-background-transition",a.backgroundTransition),o&&t.setAttribute("data-preload",""),a.backgroundSize&&(i.style.backgroundSize=a.backgroundSize),a.backgroundRepeat&&(i.style.backgroundRepeat=a.backgroundRepeat),a.backgroundPosition&&(i.style.backgroundPosition=a.backgroundPosition),a.backgroundOpacity&&(i.style.opacity=a.backgroundOpacity);let r=a.backgroundColor;if(!r||!De(r)){let n=window.getComputedStyle(t);n&&n.backgroundColor&&(r=n.backgroundColor)}if(r){const n=De(r);n&&n.a!==0&&(typeof(c=r)=="string"&&(c=De(c)),(c?(299*c.r+587*c.g+114*c.b)/1e3:null)<128?e.classList.add("has-dark-background"):e.classList.add("has-light-background"))}var c}update(e=!1){let t=this.Reveal.getCurrentSlide(),i=this.Reveal.getIndices(),a=null,o=this.Reveal.getConfig().rtl?"future":"past",r=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((c,n)=>{c.classList.remove("past","present","future"),n<i.h?c.classList.add(o):n>i.h?c.classList.add(r):(c.classList.add("present"),a=c),(e||n===i.h)&&b(c,".slide-background").forEach((w,S)=>{w.classList.remove("past","present","future"),S<i.v?w.classList.add("past"):S>i.v?w.classList.add("future"):(w.classList.add("present"),n===i.h&&(a=w))})}),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a){this.Reveal.slideContent.startEmbeddedContent(a);let c=a.querySelector(".slide-background-content");if(c){let S=c.style.backgroundImage||"";/\.gif/i.test(S)&&(c.style.backgroundImage="",window.getComputedStyle(c).opacity,c.style.backgroundImage=S)}let n=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,w=a.getAttribute("data-background-hash");w&&w===n&&a!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=a}t&&["has-light-background","has-dark-background"].forEach(c=>{t.classList.contains(c)?this.Reveal.getRevealElement().classList.add(c):this.Reveal.getRevealElement().classList.remove(c)},this),setTimeout(()=>{this.element.classList.remove("no-transition")},1)}updateParallax(){let e=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let t,i,a=this.Reveal.getHorizontalSlides(),o=this.Reveal.getVerticalSlides(),r=this.element.style.backgroundSize.split(" ");r.length===1?t=i=parseInt(r[0],10):(t=parseInt(r[0],10),i=parseInt(r[1],10));let c,n,w=this.element.offsetWidth,S=a.length;c=typeof this.Reveal.getConfig().parallaxBackgroundHorizontal=="number"?this.Reveal.getConfig().parallaxBackgroundHorizontal:S>1?(t-w)/(S-1):0,n=c*e.h*-1;let p,m,y=this.element.offsetHeight,l=o.length;p=typeof this.Reveal.getConfig().parallaxBackgroundVertical=="number"?this.Reveal.getConfig().parallaxBackgroundVertical:(i-y)/(l-1),m=l>0?p*e.v:0,this.element.style.backgroundPosition=n+"px "+-m+"px"}}destroy(){this.element.remove()}}const ai=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,yt=/fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/;let wt=0;class si{constructor(e){this.Reveal=e}run(e,t){this.reset();let i=this.Reveal.getSlides(),a=i.indexOf(t),o=i.indexOf(e);if(e.hasAttribute("data-auto-animate")&&t.hasAttribute("data-auto-animate")&&e.getAttribute("data-auto-animate-id")===t.getAttribute("data-auto-animate-id")&&!(a>o?t:e).hasAttribute("data-auto-animate-restart")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||Ie();let r=this.getAutoAnimateOptions(t);e.dataset.autoAnimate="pending",t.dataset.autoAnimate="pending",r.slideDirection=a>o?"forward":"backward";let c=e.style.display==="none";c&&(e.style.display=this.Reveal.getConfig().display);let n=this.getAutoAnimatableElements(e,t).map(w=>this.autoAnimateElements(w.from,w.to,w.options||{},r,wt++));if(c&&(e.style.display="none"),t.dataset.autoAnimateUnmatched!=="false"&&this.Reveal.getConfig().autoAnimateUnmatched===!0){let w=.8*r.duration,S=.2*r.duration;this.getUnmatchedAutoAnimateElements(t).forEach(p=>{let m=this.getAutoAnimateOptions(p,r),y="unmatched";m.duration===r.duration&&m.delay===r.delay||(y="unmatched-"+wt++,n.push(`[data-auto-animate="running"] [data-auto-animate-target="${y}"] { transition: opacity ${m.duration}s ease ${m.delay}s; }`)),p.dataset.autoAnimateTarget=y},this),n.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${w}s ease ${S}s; }`)}this.autoAnimateStyleSheet.innerHTML=n.join(""),requestAnimationFrame(()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet).fontWeight,t.dataset.autoAnimate="running")}),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:e,toSlide:t,sheet:this.autoAnimateStyleSheet}})}}reset(){b(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(e=>{e.dataset.autoAnimate=""}),b(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach(e=>{delete e.dataset.autoAnimateTarget}),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(e,t,i,a,o){e.dataset.autoAnimateTarget="",t.dataset.autoAnimateTarget=o;let r=this.getAutoAnimateOptions(t,a);i.delay!==void 0&&(r.delay=i.delay),i.duration!==void 0&&(r.duration=i.duration),i.easing!==void 0&&(r.easing=i.easing);let c=this.getAutoAnimatableProperties("from",e,i),n=this.getAutoAnimatableProperties("to",t,i);if(t.classList.contains("fragment")&&(delete n.styles.opacity,e.classList.contains("fragment"))&&(e.className.match(yt)||[""])[0]===(t.className.match(yt)||[""])[0]&&a.slideDirection==="forward"&&t.classList.add("visible","disabled"),i.translate!==!1||i.scale!==!1){let p=this.Reveal.getScale(),m={x:(c.x-n.x)/p,y:(c.y-n.y)/p,scaleX:c.width/n.width,scaleY:c.height/n.height};m.x=Math.round(1e3*m.x)/1e3,m.y=Math.round(1e3*m.y)/1e3,m.scaleX=Math.round(1e3*m.scaleX)/1e3,m.scaleX=Math.round(1e3*m.scaleX)/1e3;let y=i.translate!==!1&&(m.x!==0||m.y!==0),l=i.scale!==!1&&(m.scaleX!==0||m.scaleY!==0);if(y||l){let k=[];y&&k.push(`translate(${m.x}px, ${m.y}px)`),l&&k.push(`scale(${m.scaleX}, ${m.scaleY})`),c.styles.transform=k.join(" "),c.styles["transform-origin"]="top left",n.styles.transform="none"}}for(let p in n.styles){const m=n.styles[p],y=c.styles[p];m===y?delete n.styles[p]:(m.explicitValue===!0&&(n.styles[p]=m.value),y.explicitValue===!0&&(c.styles[p]=y.value))}let w="",S=Object.keys(n.styles);return S.length>0&&(c.styles.transition="none",n.styles.transition=`all ${r.duration}s ${r.easing} ${r.delay}s`,n.styles["transition-property"]=S.join(", "),n.styles["will-change"]=S.join(", "),w='[data-auto-animate-target="'+o+'"] {'+Object.keys(c.styles).map(p=>p+": "+c.styles[p]+" !important;").join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+o+'"] {'+Object.keys(n.styles).map(p=>p+": "+n.styles[p]+" !important;").join("")+"}"),w}getAutoAnimateOptions(e,t){let i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=oe(i,t),e.parentNode){let a=q(e.parentNode,"[data-auto-animate-target]");a&&(i=this.getAutoAnimateOptions(a,i))}return e.dataset.autoAnimateEasing&&(i.easing=e.dataset.autoAnimateEasing),e.dataset.autoAnimateDuration&&(i.duration=parseFloat(e.dataset.autoAnimateDuration)),e.dataset.autoAnimateDelay&&(i.delay=parseFloat(e.dataset.autoAnimateDelay)),i}getAutoAnimatableProperties(e,t,i){let a=this.Reveal.getConfig(),o={styles:[]};if(i.translate!==!1||i.scale!==!1){let c;if(typeof i.measure=="function")c=i.measure(t);else if(a.center)c=t.getBoundingClientRect();else{let n=this.Reveal.getScale();c={x:t.offsetLeft*n,y:t.offsetTop*n,width:t.offsetWidth*n,height:t.offsetHeight*n}}o.x=c.x,o.y=c.y,o.width=c.width,o.height=c.height}const r=getComputedStyle(t);return(i.styles||a.autoAnimateStyles).forEach(c=>{let n;typeof c=="string"&&(c={property:c}),c.from!==void 0&&e==="from"?n={value:c.from,explicitValue:!0}:c.to!==void 0&&e==="to"?n={value:c.to,explicitValue:!0}:(c.property==="line-height"&&(n=parseFloat(r["line-height"])/parseFloat(r["font-size"])),isNaN(n)&&(n=r[c.property])),n!==""&&(o.styles[c.property]=n)}),o}getAutoAnimatableElements(e,t){let i=(typeof this.Reveal.getConfig().autoAnimateMatcher=="function"?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,e,t),a=[];return i.filter((o,r)=>{if(a.indexOf(o.to)===-1)return a.push(o.to),!0})}getAutoAnimatePairs(e,t){let i=[];const a="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,e,t,"[data-id]",o=>o.nodeName+":::"+o.getAttribute("data-id")),this.findAutoAnimateMatches(i,e,t,a,o=>o.nodeName+":::"+o.innerText),this.findAutoAnimateMatches(i,e,t,"img, video, iframe",o=>o.nodeName+":::"+(o.getAttribute("src")||o.getAttribute("data-src"))),this.findAutoAnimateMatches(i,e,t,"pre",o=>o.nodeName+":::"+o.innerText),i.forEach(o=>{ye(o.from,a)?o.options={scale:!1}:ye(o.from,"pre")&&(o.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,o.from,o.to,".hljs .hljs-ln-code",r=>r.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,o.from,o.to,".hljs .hljs-ln-line[data-line-number]",r=>r.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(e){const t=this.Reveal.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}}findAutoAnimateMatches(e,t,i,a,o,r){let c={},n={};[].slice.call(t.querySelectorAll(a)).forEach((w,S)=>{const p=o(w);typeof p=="string"&&p.length&&(c[p]=c[p]||[],c[p].push(w))}),[].slice.call(i.querySelectorAll(a)).forEach((w,S)=>{const p=o(w);let m;if(n[p]=n[p]||[],n[p].push(w),c[p]){const y=n[p].length-1,l=c[p].length-1;c[p][y]?(m=c[p][y],c[p][y]=null):c[p][l]&&(m=c[p][l],c[p][l]=null)}m&&e.push({from:m,to:w,options:r})})}getUnmatchedAutoAnimateElements(e){return[].slice.call(e.children).reduce((t,i)=>{const a=i.querySelector("[data-auto-animate-target]");return i.hasAttribute("data-auto-animate-target")||a||t.push(i),i.querySelector("[data-auto-animate-target]")&&(t=t.concat(this.getUnmatchedAutoAnimateElements(i))),t},[])}}class ni{constructor(e){this.Reveal=e}configure(e,t){e.fragments===!1?this.disable():t.fragments===!1&&this.enable()}disable(){b(this.Reveal.getSlidesElement(),".fragment").forEach(e=>{e.classList.add("visible"),e.classList.remove("current-fragment")})}enable(){b(this.Reveal.getSlidesElement(),".fragment").forEach(e=>{e.classList.remove("visible"),e.classList.remove("current-fragment")})}availableRoutes(){let e=this.Reveal.getCurrentSlide();if(e&&this.Reveal.getConfig().fragments){let t=e.querySelectorAll(".fragment:not(.disabled)"),i=e.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:t.length-i.length>0,next:!!i.length}}return{prev:!1,next:!1}}sort(e,t=!1){e=Array.from(e);let i=[],a=[],o=[];e.forEach(c=>{if(c.hasAttribute("data-fragment-index")){let n=parseInt(c.getAttribute("data-fragment-index"),10);i[n]||(i[n]=[]),i[n].push(c)}else a.push([c])}),i=i.concat(a);let r=0;return i.forEach(c=>{c.forEach(n=>{o.push(n),n.setAttribute("data-fragment-index",r)}),r++}),t===!0?i:o}sortAll(){this.Reveal.getHorizontalSlides().forEach(e=>{let t=b(e,"section");t.forEach((i,a)=>{this.sort(i.querySelectorAll(".fragment"))},this),t.length===0&&this.sort(e.querySelectorAll(".fragment"))})}update(e,t){let i={shown:[],hidden:[]},a=this.Reveal.getCurrentSlide();if(a&&this.Reveal.getConfig().fragments&&(t=t||this.sort(a.querySelectorAll(".fragment"))).length){let o=0;if(typeof e!="number"){let r=this.sort(a.querySelectorAll(".fragment.visible")).pop();r&&(e=parseInt(r.getAttribute("data-fragment-index")||0,10))}Array.from(t).forEach((r,c)=>{if(r.hasAttribute("data-fragment-index")&&(c=parseInt(r.getAttribute("data-fragment-index"),10)),o=Math.max(o,c),c<=e){let n=r.classList.contains("visible");r.classList.add("visible"),r.classList.remove("current-fragment"),c===e&&(this.Reveal.announceStatus(this.Reveal.getStatusText(r)),r.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(r)),n||(i.shown.push(r),this.Reveal.dispatchEvent({target:r,type:"visible",bubbles:!1}))}else{let n=r.classList.contains("visible");r.classList.remove("visible"),r.classList.remove("current-fragment"),n&&(this.Reveal.slideContent.stopEmbeddedContent(r),i.hidden.push(r),this.Reveal.dispatchEvent({target:r,type:"hidden",bubbles:!1}))}}),e=typeof e=="number"?e:-1,e=Math.max(Math.min(e,o),-1),a.setAttribute("data-fragment",e)}return i}sync(e=this.Reveal.getCurrentSlide()){return this.sort(e.querySelectorAll(".fragment"))}goto(e,t=0){let i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let a=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(a.length){if(typeof e!="number"){let r=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=r?parseInt(r.getAttribute("data-fragment-index")||0,10):-1}e+=t;let o=this.update(e,a);return o.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:o.hidden[0],fragments:o.hidden}}),o.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:o.shown[0],fragments:o.shown}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!o.shown.length&&!o.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}}class ri{constructor(e){this.Reveal=e,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),b(this.Reveal.getRevealElement(),".slides section").forEach(a=>{a.classList.contains("stack")||a.addEventListener("click",this.onSlideClicked,!0)});const e=70,t=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=t.width+e,this.overviewSlideHeight=t.height+e,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();const i=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:i.h,indexv:i.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((e,t)=>{e.setAttribute("data-index-h",t),te(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),e.classList.contains("stack")&&b(e,"section").forEach((i,a)=>{i.setAttribute("data-index-h",t),i.setAttribute("data-index-v",a),te(i,"translate3d(0, "+a*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((e,t)=>{te(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),b(e,".slide-background").forEach((i,a)=>{te(i,"translate3d(0, "+a*this.overviewSlideHeight+"px, 0)")})})}update(){const e=Math.min(window.innerWidth,window.innerHeight),t=Math.max(e/5,150)/e,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+t+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout(()=>{this.Reveal.getRevealElement().classList.remove("overview-deactivating")},1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),b(this.Reveal.getRevealElement(),".slides section").forEach(t=>{te(t,""),t.removeEventListener("click",this.onSlideClicked,!0)}),b(this.Reveal.getBackgroundsElement(),".slide-background").forEach(t=>{te(t,"")}),this.Reveal.transformSlides({overview:""});const e=this.Reveal.getIndices();this.Reveal.slide(e.h,e.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:e.h,indexv:e.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(e){typeof e=="boolean"?e?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(e){if(this.isActive()){e.preventDefault();let t=e.target;for(;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(this.deactivate(),t.nodeName.match(/section/gi))){let i=parseInt(t.getAttribute("data-index-h"),10),a=parseInt(t.getAttribute("data-index-v"),10);this.Reveal.slide(i,a)}}}}class oi{constructor(e){this.Reveal=e,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}configure(e,t){e.navigationMode==="linear"?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Alt + ←/↑/→/↓"]="Navigate without fragments",this.shortcuts["Shift + ←/↑/→/↓"]="Jump to first/last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1),document.addEventListener("keypress",this.onDocumentKeyPress,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1),document.removeEventListener("keypress",this.onDocumentKeyPress,!1)}addKeyBinding(e,t){typeof e=="object"&&e.keyCode?this.bindings[e.keyCode]={callback:t,key:e.key,description:e.description}:this.bindings[e]={callback:t,key:null,description:null}}removeKeyBinding(e){delete this.bindings[e]}triggerKey(e){this.onDocumentKeyDown({keyCode:e})}registerKeyboardShortcut(e,t){this.shortcuts[e]=t}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyPress(e){e.shiftKey&&e.charCode===63&&this.Reveal.toggleHelp()}onDocumentKeyDown(e){let t=this.Reveal.getConfig();if(typeof t.keyboardCondition=="function"&&t.keyboardCondition(e)===!1||t.keyboardCondition==="focused"&&!this.Reveal.isFocused())return!0;let i=e.keyCode,a=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(e);let o=document.activeElement&&document.activeElement.isContentEditable===!0,r=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),c=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),n=!([32,37,38,39,40,78,80].indexOf(e.keyCode)!==-1&&e.shiftKey||e.altKey)&&(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey);if(o||r||c||n)return;let w,S=[66,86,190,191];if(typeof t.keyboard=="object")for(w in t.keyboard)t.keyboard[w]==="togglePause"&&S.push(parseInt(w,10));if(this.Reveal.isPaused()&&S.indexOf(i)===-1)return!1;let p=t.navigationMode==="linear"||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),m=!1;if(typeof t.keyboard=="object"){for(w in t.keyboard)if(parseInt(w,10)===i){let y=t.keyboard[w];typeof y=="function"?y.apply(null,[e]):typeof y=="string"&&typeof this.Reveal[y]=="function"&&this.Reveal[y].call(),m=!0}}if(m===!1){for(w in this.bindings)if(parseInt(w,10)===i){let y=this.bindings[w].callback;typeof y=="function"?y.apply(null,[e]):typeof y=="string"&&typeof this.Reveal[y]=="function"&&this.Reveal[y].call(),m=!0}}m===!1&&(m=!0,i===80||i===33?this.Reveal.prev({skipFragments:e.altKey}):i===78||i===34?this.Reveal.next({skipFragments:e.altKey}):i===72||i===37?e.shiftKey?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&p?this.Reveal.prev({skipFragments:e.altKey}):this.Reveal.left({skipFragments:e.altKey}):i===76||i===39?e.shiftKey?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):!this.Reveal.overview.isActive()&&p?this.Reveal.next({skipFragments:e.altKey}):this.Reveal.right({skipFragments:e.altKey}):i===75||i===38?e.shiftKey?this.Reveal.slide(void 0,0):!this.Reveal.overview.isActive()&&p?this.Reveal.prev({skipFragments:e.altKey}):this.Reveal.up({skipFragments:e.altKey}):i===74||i===40?e.shiftKey?this.Reveal.slide(void 0,Number.MAX_VALUE):!this.Reveal.overview.isActive()&&p?this.Reveal.next({skipFragments:e.altKey}):this.Reveal.down({skipFragments:e.altKey}):i===36?this.Reveal.slide(0):i===35?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):i===32?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),e.shiftKey?this.Reveal.prev({skipFragments:e.altKey}):this.Reveal.next({skipFragments:e.altKey})):i===58||i===59||i===66||i===86||i===190||i===191?this.Reveal.togglePause():i===70?(y=>{let l=(y=y||document.documentElement).requestFullscreen||y.webkitRequestFullscreen||y.webkitRequestFullScreen||y.mozRequestFullScreen||y.msRequestFullscreen;l&&l.apply(y)})(t.embedded?this.Reveal.getViewportElement():document.documentElement):i===65?t.autoSlideStoppable&&this.Reveal.toggleAutoSlide(a):m=!1),m?e.preventDefault&&e.preventDefault():i!==27&&i!==79||(this.Reveal.closeOverlay()===!1&&this.Reveal.overview.toggle(),e.preventDefault&&e.preventDefault()),this.Reveal.cueAutoSlide()}}class li{constructor(e){var t,i,a;a=1e3,(i="MAX_REPLACE_STATE_FREQUENCY")in(t=this)?Object.defineProperty(t,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[i]=a,this.Reveal=e,this.writeURLTimeout=0,this.replaceStateTimestamp=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}getIndicesFromHash(e=window.location.hash){let t=e.replace(/^#\/?/,""),i=t.split("/");if(/^[0-9]*$/.test(i[0])||!t.length){const a=this.Reveal.getConfig();let o,r=a.hashOneBasedIndex?1:0,c=parseInt(i[0],10)-r||0,n=parseInt(i[1],10)-r||0;return a.fragmentInURL&&(o=parseInt(i[2],10),isNaN(o)&&(o=void 0)),{h:c,v:n,f:o}}{let a,o;/\/[-\d]+$/g.test(t)&&(o=parseInt(t.split("/").pop(),10),o=isNaN(o)?void 0:o,t=t.split("/").shift());try{a=document.getElementById(decodeURIComponent(t))}catch{}if(a)return{...this.Reveal.getIndices(a),f:o}}return null}readURL(){const e=this.Reveal.getIndices(),t=this.getIndicesFromHash();t?t.h===e.h&&t.v===e.v&&t.f===void 0||this.Reveal.slide(t.h,t.v,t.f):this.Reveal.slide(e.h||0,e.v||0)}writeURL(e){let t=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),typeof e=="number")this.writeURLTimeout=setTimeout(this.writeURL,e);else if(i){let a=this.getHash();t.history?window.location.hash=a:t.hash&&(a==="/"?this.debouncedReplaceState(window.location.pathname+window.location.search):this.debouncedReplaceState("#"+a))}}replaceState(e){window.history.replaceState(null,null,e),this.replaceStateTimestamp=Date.now()}debouncedReplaceState(e){clearTimeout(this.replaceStateTimeout),Date.now()-this.replaceStateTimestamp>this.MAX_REPLACE_STATE_FREQUENCY?this.replaceState(e):this.replaceStateTimeout=setTimeout(()=>this.replaceState(e),this.MAX_REPLACE_STATE_FREQUENCY)}getHash(e){let t="/",i=e||this.Reveal.getCurrentSlide(),a=i?i.getAttribute("id"):null;a&&(a=encodeURIComponent(a));let o=this.Reveal.getIndices(e);if(this.Reveal.getConfig().fragmentInURL||(o.f=void 0),typeof a=="string"&&a.length)t="/"+a,o.f>=0&&(t+="/"+o.f);else{let r=this.Reveal.getConfig().hashOneBasedIndex?1:0;(o.h>0||o.v>0||o.f>=0)&&(t+=o.h+r),(o.v>0||o.f>=0)&&(t+="/"+(o.v+r)),o.f>=0&&(t+="/"+o.f)}return t}onWindowHashChange(e){this.readURL()}}class di{constructor(e){this.Reveal=e,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this)}render(){const e=this.Reveal.getConfig().rtl,t=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`<button class="navigate-left" aria-label="${e?"next slide":"previous slide"}"><div class="controls-arrow"></div></button>
|
|
<button class="navigate-right" aria-label="${e?"previous slide":"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>`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=b(t,".navigate-left"),this.controlsRight=b(t,".navigate-right"),this.controlsUp=b(t,".navigate-up"),this.controlsDown=b(t,".navigate-down"),this.controlsPrev=b(t,".navigate-prev"),this.controlsNext=b(t,".navigate-next"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(e,t){this.element.style.display=e.controls?"block":"none",this.element.setAttribute("data-controls-layout",e.controlsLayout),this.element.setAttribute("data-controls-back-arrows",e.controlsBackArrows)}bind(){let e=["touchstart","click"];At&&(e=["touchstart"]),e.forEach(t=>{this.controlsLeft.forEach(i=>i.addEventListener(t,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(i=>i.addEventListener(t,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(i=>i.addEventListener(t,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(i=>i.addEventListener(t,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(i=>i.addEventListener(t,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(i=>i.addEventListener(t,this.onNavigateNextClicked,!1))})}unbind(){["touchstart","click"].forEach(e=>{this.controlsLeft.forEach(t=>t.removeEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(t=>t.removeEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(t=>t.removeEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(t=>t.removeEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(t=>t.removeEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(t=>t.removeEventListener(e,this.onNavigateNextClicked,!1))})}update(){let e=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(i=>{i.classList.remove("enabled","fragmented"),i.setAttribute("disabled","disabled")}),e.left&&this.controlsLeft.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),e.right&&this.controlsRight.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),e.up&&this.controlsUp.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),e.down&&this.controlsDown.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(e.left||e.up)&&this.controlsPrev.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(e.right||e.down)&&this.controlsNext.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")});let t=this.Reveal.getCurrentSlide();if(t){let i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),this.Reveal.isVerticalSlide(t)?(i.prev&&this.controlsUp.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){let i=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&e.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&e.left&&i.v===0?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&e.right&&i.v===0?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}destroy(){this.unbind(),this.element.remove()}onNavigateLeftClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.next():this.Reveal.right()}onNavigateUpClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePrevClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onNavigateNextClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}}class ci{constructor(e){this.Reveal=e,this.onProgressClicked=this.onProgressClicked.bind(this)}render(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}configure(e,t){this.element.style.display=e.progress?"block":"none"}bind(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}update(){if(this.Reveal.getConfig().progress&&this.bar){let e=this.Reveal.getProgress();this.Reveal.getTotalSlides()<2&&(e=0),this.bar.style.transform="scaleX("+e+")"}}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(e){this.Reveal.onUserInput(e),e.preventDefault();let t=this.Reveal.getSlides(),i=t.length,a=Math.floor(e.clientX/this.getMaxWidth()*i);this.Reveal.getConfig().rtl&&(a=i-a);let o=this.Reveal.getIndices(t[a]);this.Reveal.slide(o.h,o.v)}destroy(){this.element.remove()}}class hi{constructor(e){this.Reveal=e,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}configure(e,t){e.mouseWheel?(document.addEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.addEventListener("mousewheel",this.onDocumentMouseScroll,!1)):(document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1)),e.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}hideCursor(){this.cursorHidden===!1&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}destroy(){this.showCursor(),document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1)}onDocumentCursorActive(e){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(e){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let t=e.detail||-e.wheelDelta;t>0?this.Reveal.next():t<0&&this.Reveal.prev()}}}const Et=(h,e)=>{const t=document.createElement("script");t.type="text/javascript",t.async=!1,t.defer=!1,t.src=h,typeof e=="function"&&(t.onload=t.onreadystatechange=a=>{(a.type==="load"||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=t.onerror=null,e())},t.onerror=a=>{t.onload=t.onreadystatechange=t.onerror=null,e(new Error("Failed loading script: "+t.src+`
|
|
`+a))});const i=document.querySelector("head");i.insertBefore(t,i.lastChild)};class ui{constructor(e){this.Reveal=e,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}load(e,t){return this.state="loading",e.forEach(this.registerPlugin.bind(this)),new Promise(i=>{let a=[],o=0;if(t.forEach(r=>{r.condition&&!r.condition()||(r.async?this.asyncDependencies.push(r):a.push(r))}),a.length){o=a.length;const r=c=>{c&&typeof c.callback=="function"&&c.callback(),--o==0&&this.initPlugins().then(i)};a.forEach(c=>{typeof c.id=="string"?(this.registerPlugin(c),r(c)):typeof c.src=="string"?Et(c.src,()=>r(c)):(console.warn("Unrecognized plugin format",c),r())})}else this.initPlugins().then(i)})}initPlugins(){return new Promise(e=>{let t=Object.values(this.registeredPlugins),i=t.length;if(i===0)this.loadAsync().then(e);else{let a,o=()=>{--i==0?this.loadAsync().then(e):a()},r=0;a=()=>{let c=t[r++];if(typeof c.init=="function"){let n=c.init(this.Reveal);n&&typeof n.then=="function"?n.then(o):o()}else o()},a()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(e=>{Et(e.src,e.callback)}),Promise.resolve()}registerPlugin(e){arguments.length===2&&typeof arguments[0]=="string"?(e=arguments[1]).id=arguments[0]:typeof e=="function"&&(e=e());let t=e.id;typeof t!="string"?console.warn("Unrecognized plugin format; can't find plugin.id",e):this.registeredPlugins[t]===void 0?(this.registeredPlugins[t]=e,this.state==="loaded"&&typeof e.init=="function"&&e.init(this.Reveal)):console.warn('reveal.js: "'+t+'" plugin has already been registered')}hasPlugin(e){return!!this.registeredPlugins[e]}getPlugin(e){return this.registeredPlugins[e]}getRegisteredPlugins(){return this.registeredPlugins}destroy(){Object.values(this.registeredPlugins).forEach(e=>{typeof e.destroy=="function"&&e.destroy()}),this.registeredPlugins={},this.asyncDependencies=[]}}class gi{constructor(e){this.Reveal=e}async setupPDF(){const e=this.Reveal.getConfig(),t=b(this.Reveal.getRevealElement(),".slides section"),i=e.slideNumber&&/all|print/i.test(e.showSlideNumber),a=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),o=Math.floor(a.width*(1+e.margin)),r=Math.floor(a.height*(1+e.margin)),c=a.width,n=a.height;await new Promise(requestAnimationFrame),Ie("@page{size:"+o+"px "+r+"px; margin: 0px;}"),Ie(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+c+"px; max-height:"+n+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=o+"px",document.body.style.height=r+"px";const w=document.querySelector(".reveal-viewport");let S;if(w){const k=window.getComputedStyle(w);k&&k.background&&(S=k.background)}await new Promise(requestAnimationFrame),this.Reveal.layoutSlideContents(c,n),await new Promise(requestAnimationFrame);const p=t.map(k=>k.scrollHeight),m=[],y=t[0].parentNode;let l=1;t.forEach(function(k,I){if(k.classList.contains("stack")===!1){let Y=(o-c)/2,Q=(r-n)/2;const O=p[I];let C=Math.max(Math.ceil(O/r),1);C=Math.min(C,e.pdfMaxPagesPerSlide),(C===1&&e.center||k.classList.contains("center"))&&(Q=Math.max((r-O)/2,0));const N=document.createElement("div");if(m.push(N),N.className="pdf-page",N.style.height=(r+e.pdfPageHeightOffset)*C+"px",S&&(N.style.background=S),N.appendChild(k),k.style.left=Y+"px",k.style.top=Q+"px",k.style.width=c+"px",this.Reveal.slideContent.layout(k),k.slideBackgroundElement&&N.insertBefore(k.slideBackgroundElement,k),e.showNotes){const H=this.Reveal.getSlideNotes(k);if(H){const R=typeof e.showNotes=="string"?e.showNotes:"inline",E=document.createElement("div");E.classList.add("speaker-notes"),E.classList.add("speaker-notes-pdf"),E.setAttribute("data-layout",R),E.innerHTML=H,R==="separate-page"?m.push(E):(E.style.left=8+"px",E.style.bottom=8+"px",E.style.width=o-2*8+"px",N.appendChild(E))}}if(i){const H=document.createElement("div");H.classList.add("slide-number"),H.classList.add("slide-number-pdf"),H.innerHTML=l++,N.appendChild(H)}if(e.pdfSeparateFragments){const H=this.Reveal.fragments.sort(N.querySelectorAll(".fragment"),!0);let T;H.forEach(function(R,E){T&&T.forEach(function(z){z.classList.remove("current-fragment")}),R.forEach(function(z){z.classList.add("visible","current-fragment")},this);const F=N.cloneNode(!0);if(i){const z=E+1;F.querySelector(".slide-number-pdf").innerHTML+="."+z}m.push(F),T=R},this),H.forEach(function(R){R.forEach(function(E){E.classList.remove("visible","current-fragment")})})}else b(N,".fragment:not(.fade-out)").forEach(function(H){H.classList.add("visible")})}},this),await new Promise(requestAnimationFrame),m.forEach(k=>y.appendChild(k)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.dispatchEvent({type:"pdf-ready"})}isPrintingPDF(){return/print-pdf/gi.test(window.location.search)}}class vi{constructor(e){this.Reveal=e,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let e=this.Reveal.getRevealElement();"onpointerdown"in window?(e.addEventListener("pointerdown",this.onPointerDown,!1),e.addEventListener("pointermove",this.onPointerMove,!1),e.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",this.onPointerDown,!1),e.addEventListener("MSPointerMove",this.onPointerMove,!1),e.addEventListener("MSPointerUp",this.onPointerUp,!1)):(e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1))}unbind(){let e=this.Reveal.getRevealElement();e.removeEventListener("pointerdown",this.onPointerDown,!1),e.removeEventListener("pointermove",this.onPointerMove,!1),e.removeEventListener("pointerup",this.onPointerUp,!1),e.removeEventListener("MSPointerDown",this.onPointerDown,!1),e.removeEventListener("MSPointerMove",this.onPointerMove,!1),e.removeEventListener("MSPointerUp",this.onPointerUp,!1),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1)}isSwipePrevented(e){if(ye(e,"video, audio"))return!0;for(;e&&typeof e.hasAttribute=="function";){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNode}return!1}onTouchStart(e){if(this.isSwipePrevented(e.target))return!0;this.touchStartX=e.touches[0].clientX,this.touchStartY=e.touches[0].clientY,this.touchStartCount=e.touches.length}onTouchMove(e){if(this.isSwipePrevented(e.target))return!0;let t=this.Reveal.getConfig();if(this.touchCaptured)At&&e.preventDefault();else{this.Reveal.onUserInput(e);let i=e.touches[0].clientX,a=e.touches[0].clientY;if(e.touches.length===1&&this.touchStartCount!==2){let o=this.Reveal.availableRoutes({includeFragments:!0}),r=i-this.touchStartX,c=a-this.touchStartY;r>40&&Math.abs(r)>Math.abs(c)?(this.touchCaptured=!0,t.navigationMode==="linear"?t.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):r<-40&&Math.abs(r)>Math.abs(c)?(this.touchCaptured=!0,t.navigationMode==="linear"?t.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):c>40&&o.up?(this.touchCaptured=!0,t.navigationMode==="linear"?this.Reveal.prev():this.Reveal.up()):c<-40&&o.down&&(this.touchCaptured=!0,t.navigationMode==="linear"?this.Reveal.next():this.Reveal.down()),t.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&e.preventDefault():e.preventDefault()}}}onTouchEnd(e){this.touchCaptured=!1}onPointerDown(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&e.pointerType!=="touch"||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}onPointerMove(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&e.pointerType!=="touch"||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}onPointerUp(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&e.pointerType!=="touch"||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}class pi{constructor(e){this.Reveal=e,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocumentPointerDown=this.onDocumentPointerDown.bind(this)}configure(e,t){e.embedded?this.blur():(this.focus(),this.unbind())}bind(){this.Reveal.getConfig().embedded&&this.Reveal.getRevealElement().addEventListener("pointerdown",this.onRevealPointerDown,!1)}unbind(){this.Reveal.getRevealElement().removeEventListener("pointerdown",this.onRevealPointerDown,!1),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)}focus(){this.state!=="focus"&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="focus"}blur(){this.state!=="blur"&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="blur"}isFocused(){return this.state==="focus"}destroy(){this.Reveal.getRevealElement().classList.remove("focused")}onRevealPointerDown(e){this.focus()}onDocumentPointerDown(e){let t=q(e.target,".reveal");t&&t===this.Reveal.getRevealElement()||this.blur()}}class mi{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}configure(e,t){e.showNotes&&this.element.setAttribute("data-layout",typeof e.showNotes=="string"?e.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'<span class="notes-placeholder">No notes on this slide.</span>')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reveal.print.isPrintingPDF()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}hasNotes(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}isSpeakerNotesWindow(){return!!window.location.search.match(/receiver/gi)}getSlideNotes(e=this.Reveal.getCurrentSlide()){if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");let t=e.querySelectorAll("aside.notes");return t?Array.from(t).map(i=>i.innerHTML).join(`
|
|
`):null}destroy(){this.element.remove()}}class fi{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,i=this.diameter2,a=this.diameter2,o=28;this.progressOffset+=.1*(1-this.progressOffset);const r=-Math.PI/2+e*(2*Math.PI),c=-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(i,a,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(i,a,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(i,a,t,c,r,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,a-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,o),this.context.fillRect(18,0,10,o)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,o),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 bi={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,respondToHashChanges:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSlides:!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:[],plugins:[]};function Lt(h,e){arguments.length<2&&(e=arguments[0],h=document.querySelector(".reveal"));const t={};let i,a,o,r,c,n={},w=!1,S={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},p=[],m=1,y={layout:"",overview:""},l={},k="idle",I=0,Y=0,Q=-1,O=!1,C=new ei(t),N=new ti(t),H=new si(t),T=new ii(t),R=new ni(t),E=new ri(t),F=new oi(t),z=new li(t),B=new di(t),u=new ci(t),L=new hi(t),x=new ui(t),V=new gi(t),$=new pi(t),Z=new vi(t),M=new mi(t);function Ct(s){if(!h)throw'Unable to find presentation root (<div class="reveal">).';if(l.wrapper=h,l.slides=h.querySelector(".slides"),!l.slides)throw'Unable to find slides container (<div class="slides">).';return n={...bi,...n,...e,...s,...ft()},xt(),window.addEventListener("load",se,!1),x.load(n.plugins,n.dependencies).then(Pt),new Promise(d=>t.on("ready",d))}function xt(){n.embedded===!0?l.viewport=q(h,".reveal-viewport")||h:(l.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),l.viewport.classList.add("reveal-viewport")}function Pt(){w=!0,Nt(),Mt(),Ft(),It(),Tt(),Ut(),Fe(),z.readURL(),T.update(!0),setTimeout(()=>{l.slides.classList.remove("no-transition"),l.wrapper.classList.add("ready"),W({type:"ready",data:{indexh:i,indexv:a,currentSlide:r}})},1),V.isPrintingPDF()&&(ue(),document.readyState==="complete"?V.setupPDF():window.addEventListener("load",()=>{V.setupPDF()}))}function Nt(){n.showHiddenSlides||b(l.wrapper,'section[data-visibility="hidden"]').forEach(s=>{s.parentNode.removeChild(s)})}function Mt(){l.slides.classList.add("no-transition"),le?l.wrapper.classList.add("no-hover"):l.wrapper.classList.remove("no-hover"),T.render(),N.render(),B.render(),u.render(),M.render(),l.pauseOverlay=Gt(l.wrapper,"div","pause-overlay",n.controls?'<button class="resume-button">Resume presentation</button>':null),l.statusElement=Dt(),l.wrapper.setAttribute("role","application")}function Dt(){let s=l.wrapper.querySelector(".aria-status");return s||(s=document.createElement("div"),s.style.position="absolute",s.style.height="1px",s.style.width="1px",s.style.overflow="hidden",s.style.clip="rect( 1px, 1px, 1px, 1px )",s.classList.add("aria-status"),s.setAttribute("aria-live","polite"),s.setAttribute("aria-atomic","true"),l.wrapper.appendChild(s)),s}function Te(s){l.statusElement.textContent=s}function we(s){let d="";if(s.nodeType===3)d+=s.textContent;else if(s.nodeType===1){let g=s.getAttribute("aria-hidden"),v=window.getComputedStyle(s).display==="none";g==="true"||v||Array.from(s.childNodes).forEach(f=>{d+=we(f)})}return d=d.trim(),d===""?"":d+" "}function It(){setInterval(()=>{l.wrapper.scrollTop===0&&l.wrapper.scrollLeft===0||(l.wrapper.scrollTop=0,l.wrapper.scrollLeft=0)},1e3)}function Tt(){document.addEventListener("fullscreenchange",fe),document.addEventListener("webkitfullscreenchange",fe)}function Ft(){n.postMessage&&window.addEventListener("message",ct,!1)}function Fe(s){const d={...n};if(typeof s=="object"&&oe(n,s),t.isReady()===!1)return;const g=l.wrapper.querySelectorAll(".slides section").length;l.wrapper.classList.remove(d.transition),l.wrapper.classList.add(n.transition),l.wrapper.setAttribute("data-transition-speed",n.transitionSpeed),l.wrapper.setAttribute("data-background-transition",n.backgroundTransition),l.viewport.style.setProperty("--slide-width",n.width+"px"),l.viewport.style.setProperty("--slide-height",n.height+"px"),n.shuffle&&Ae(),Me(l.wrapper,"embedded",n.embedded),Me(l.wrapper,"rtl",n.rtl),Me(l.wrapper,"center",n.center),n.pause===!1&&ce(),n.previewLinks?(Oe(),Re("[data-preview-link=false]")):(Re(),Oe("[data-preview-link]:not([data-preview-link=false])")),H.reset(),c&&(c.destroy(),c=null),g>1&&n.autoSlide&&n.autoSlideStoppable&&(c=new fi(l.wrapper,()=>Math.min(Math.max((Date.now()-Q)/I,0),1)),c.on("click",Yt),O=!1),n.navigationMode!=="default"?l.wrapper.setAttribute("data-navigation-mode",n.navigationMode):l.wrapper.removeAttribute("data-navigation-mode"),M.configure(n,d),$.configure(n,d),L.configure(n,d),B.configure(n,d),u.configure(n,d),F.configure(n,d),R.configure(n,d),N.configure(n,d),Je()}function ze(){window.addEventListener("resize",gt,!1),n.touch&&Z.bind(),n.keyboard&&F.bind(),n.progress&&u.bind(),n.respondToHashChanges&&z.bind(),B.bind(),$.bind(),l.slides.addEventListener("click",ut,!1),l.slides.addEventListener("transitionend",ht,!1),l.pauseOverlay.addEventListener("click",ce,!1),n.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",vt,!1)}function ue(){Z.unbind(),$.unbind(),F.unbind(),B.unbind(),u.unbind(),z.unbind(),window.removeEventListener("resize",gt,!1),l.slides.removeEventListener("click",ut,!1),l.slides.removeEventListener("transitionend",ht,!1),l.pauseOverlay.removeEventListener("click",ce,!1)}function zt(){ue(),ge(),Re(),M.destroy(),$.destroy(),x.destroy(),L.destroy(),B.destroy(),u.destroy(),T.destroy(),N.destroy(),document.removeEventListener("fullscreenchange",fe),document.removeEventListener("webkitfullscreenchange",fe),document.removeEventListener("visibilitychange",vt,!1),window.removeEventListener("message",ct,!1),window.removeEventListener("load",se,!1),l.pauseOverlay&&l.pauseOverlay.remove(),l.statusElement&&l.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),l.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),l.wrapper.removeAttribute("data-transition-speed"),l.wrapper.removeAttribute("data-background-transition"),l.viewport.classList.remove("reveal-viewport"),l.viewport.style.removeProperty("--slide-width"),l.viewport.style.removeProperty("--slide-height"),l.slides.style.removeProperty("width"),l.slides.style.removeProperty("height"),l.slides.style.removeProperty("zoom"),l.slides.style.removeProperty("left"),l.slides.style.removeProperty("top"),l.slides.style.removeProperty("bottom"),l.slides.style.removeProperty("right"),l.slides.style.removeProperty("transform"),Array.from(l.wrapper.querySelectorAll(".slides section")).forEach(s=>{s.style.removeProperty("display"),s.style.removeProperty("top"),s.removeAttribute("hidden"),s.removeAttribute("aria-hidden")})}function He(s,d,g){h.addEventListener(s,d,g)}function qe(s,d,g){h.removeEventListener(s,d,g)}function Ee(s){typeof s.layout=="string"&&(y.layout=s.layout),typeof s.overview=="string"&&(y.overview=s.overview),y.layout?te(l.slides,y.layout+" "+y.overview):te(l.slides,y.overview)}function W({target:s=l.wrapper,type:d,data:g,bubbles:v=!0}){let f=document.createEvent("HTMLEvents",1,2);return f.initEvent(d,v,!0),oe(f,g),s.dispatchEvent(f),s===l.wrapper&&Be(d),f}function Be(s,d){if(n.postMessageEvents&&window.parent!==window.self){let g={namespace:"reveal",eventName:s,state:lt()};oe(g,d),window.parent.postMessage(JSON.stringify(g),"*")}}function Oe(s="a"){Array.from(l.wrapper.querySelectorAll(s)).forEach(d=>{/^(http|www)/gi.test(d.getAttribute("href"))&&d.addEventListener("click",pt,!1)})}function Re(s="a"){Array.from(l.wrapper.querySelectorAll(s)).forEach(d=>{/^(http|www)/gi.test(d.getAttribute("href"))&&d.removeEventListener("click",pt,!1)})}function Ue(s){_(),l.overlay=document.createElement("div"),l.overlay.classList.add("overlay"),l.overlay.classList.add("overlay-preview"),l.wrapper.appendChild(l.overlay),l.overlay.innerHTML=`<header>
|
|
<a class="close" href="#"><span class="icon"></span></a>
|
|
<a class="external" href="${s}" target="_blank"><span class="icon"></span></a>
|
|
</header>
|
|
<div class="spinner"></div>
|
|
<div class="viewport">
|
|
<iframe src="${s}"></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>`,l.overlay.querySelector("iframe").addEventListener("load",d=>{l.overlay.classList.add("loaded")},!1),l.overlay.querySelector(".close").addEventListener("click",d=>{_(),d.preventDefault()},!1),l.overlay.querySelector(".external").addEventListener("click",d=>{_()},!1)}function Ht(s){typeof s=="boolean"?s?We():_():l.overlay?_():We()}function We(){if(n.help){_(),l.overlay=document.createElement("div"),l.overlay.classList.add("overlay"),l.overlay.classList.add("overlay-help"),l.wrapper.appendChild(l.overlay);let s='<p class="title">Keyboard Shortcuts</p><br/>',d=F.getShortcuts(),g=F.getBindings();s+="<table><th>KEY</th><th>ACTION</th>";for(let v in d)s+=`<tr><td>${v}</td><td>${d[v]}</td></tr>`;for(let v in g)g[v].key&&g[v].description&&(s+=`<tr><td>${g[v].key}</td><td>${g[v].description}</td></tr>`);s+="</table>",l.overlay.innerHTML=`
|
|
<header>
|
|
<a class="close" href="#"><span class="icon"></span></a>
|
|
</header>
|
|
<div class="viewport">
|
|
<div class="viewport-inner">${s}</div>
|
|
</div>
|
|
`,l.overlay.querySelector(".close").addEventListener("click",v=>{_(),v.preventDefault()},!1)}}function _(){return!!l.overlay&&(l.overlay.parentNode.removeChild(l.overlay),l.overlay=null,!0)}function se(){if(l.wrapper&&!V.isPrintingPDF()){if(!n.disableLayout){le&&!n.embedded&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");const s=Ve(),d=m;Ke(n.width,n.height),l.slides.style.width=s.width+"px",l.slides.style.height=s.height+"px",m=Math.min(s.presentationWidth/s.width,s.presentationHeight/s.height),m=Math.max(m,n.minScale),m=Math.min(m,n.maxScale),m===1?(l.slides.style.zoom="",l.slides.style.left="",l.slides.style.top="",l.slides.style.bottom="",l.slides.style.right="",Ee({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",Ee({layout:"translate(-50%, -50%) scale("+m+")"}));const g=Array.from(l.wrapper.querySelectorAll(".slides section"));for(let v=0,f=g.length;v<f;v++){const A=g[v];A.style.display!=="none"&&(n.center||A.classList.contains("center")?A.classList.contains("stack")?A.style.top=0:A.style.top=Math.max((s.height-A.scrollHeight)/2,0)+"px":A.style.top="")}d!==m&&W({type:"resize",data:{oldScale:d,scale:m,size:s}})}l.viewport.style.setProperty("--slide-scale",m),u.update(),T.updateParallax(),E.isActive()&&E.update()}}function Ke(s,d){b(l.slides,"section > .stretch, section > .r-stretch").forEach(g=>{let v=Jt(g,d);if(/(img|video)/gi.test(g.nodeName)){const f=g.naturalWidth||g.videoWidth,A=g.naturalHeight||g.videoHeight,D=Math.min(s/f,v/A);g.style.width=f*D+"px",g.style.height=A*D+"px"}else g.style.width=s+"px",g.style.height=v+"px"})}function Ve(s,d){const g={width:n.width,height:n.height,presentationWidth:s||l.wrapper.offsetWidth,presentationHeight:d||l.wrapper.offsetHeight};return g.presentationWidth-=g.presentationWidth*n.margin,g.presentationHeight-=g.presentationHeight*n.margin,typeof g.width=="string"&&/%$/.test(g.width)&&(g.width=parseInt(g.width,10)/100*g.presentationWidth),typeof g.height=="string"&&/%$/.test(g.height)&&(g.height=parseInt(g.height,10)/100*g.presentationHeight),g}function $e(s,d){typeof s=="object"&&typeof s.setAttribute=="function"&&s.setAttribute("data-previous-indexv",d||0)}function je(s){if(typeof s=="object"&&typeof s.setAttribute=="function"&&s.classList.contains("stack")){const d=s.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(s.getAttribute(d)||0,10)}return 0}function de(s=r){return s&&s.parentNode&&!!s.parentNode.nodeName.match(/section/i)}function Xe(){return!(!r||!de(r))&&!r.nextElementSibling}function Ye(){return i===0&&a===0}function Se(){return!!r&&!r.nextElementSibling&&(!de(r)||!r.parentNode.nextElementSibling)}function _e(){if(n.pause){const s=l.wrapper.classList.contains("paused");ge(),l.wrapper.classList.add("paused"),s===!1&&W({type:"paused"})}}function ce(){const s=l.wrapper.classList.contains("paused");l.wrapper.classList.remove("paused"),ne(),s&&W({type:"resumed"})}function Ge(s){typeof s=="boolean"?s?_e():ce():he()?ce():_e()}function he(){return l.wrapper.classList.contains("paused")}function qt(s){typeof s=="boolean"?s?pe():ve():O?pe():ve()}function Bt(){return!(!I||O)}function j(s,d,g,v){if(W({type:"beforeslidechange",data:{indexh:s===void 0?i:s,indexv:d===void 0?a:d,origin:v}}).defaultPrevented)return;o=r;const f=l.wrapper.querySelectorAll(".slides>section");if(f.length===0)return;d!==void 0||E.isActive()||(d=je(f[s])),o&&o.parentNode&&o.parentNode.classList.contains("stack")&&$e(o.parentNode,a);const A=p.concat();p.length=0;let D=i||0,K=a||0;i=Qe(".slides>section",s===void 0?i:s),a=Qe(".slides>section.present>section",d===void 0?a:d);let J=i!==D||a!==K;J||(o=null);let ie=f[i];r=ie.querySelectorAll("section")[a]||ie;let P=!1;J&&o&&r&&!E.isActive()&&(o.hasAttribute("data-auto-animate")&&r.hasAttribute("data-auto-animate")&&o.getAttribute("data-auto-animate-id")===r.getAttribute("data-auto-animate-id")&&!(i>D||a>K?r:o).hasAttribute("data-auto-animate-restart")&&(P=!0,l.slides.classList.add("disable-slide-transitions")),k="running"),ke(),se(),E.isActive()&&E.update(),g!==void 0&&R.goto(g),o&&o!==r&&(o.classList.remove("present"),o.setAttribute("aria-hidden","true"),Ye()&&setTimeout(()=>{Kt().forEach(X=>{$e(X,0)})},0));e:for(let X=0,_t=p.length;X<_t;X++){for(let be=0;be<A.length;be++)if(A[be]===p[X]){A.splice(be,1);continue e}l.viewport.classList.add(p[X]),W({type:p[X]})}for(;A.length;)l.viewport.classList.remove(A.pop());J&&W({type:"slidechanged",data:{indexh:i,indexv:a,previousSlide:o,currentSlide:r,origin:v}}),!J&&o||(C.stopEmbeddedContent(o),C.startEmbeddedContent(r)),requestAnimationFrame(()=>{Te(we(r))}),u.update(),B.update(),M.update(),T.update(),T.updateParallax(),N.update(),R.update(),z.writeURL(),ne(),P&&(setTimeout(()=>{l.slides.classList.remove("disable-slide-transitions")},0),n.autoAnimate&&H.run(o,r))}function Je(){ue(),ze(),se(),I=n.autoSlide,ne(),T.create(),z.writeURL(),R.sortAll(),B.update(),u.update(),ke(),M.update(),M.updateVisibility(),T.update(!0),N.update(),C.formatEmbeddedContent(),n.autoPlayMedia===!1?C.stopEmbeddedContent(r,{unloadIframes:!1}):C.startEmbeddedContent(r),E.isActive()&&E.layout()}function Ot(s=r){T.sync(s),R.sync(s),C.load(s),T.update(),M.update()}function Ut(){ee().forEach(s=>{b(s,"section").forEach((d,g)=>{g>0&&(d.classList.remove("present"),d.classList.remove("past"),d.classList.add("future"),d.setAttribute("aria-hidden","true"))})})}function Ae(s=ee()){s.forEach((d,g)=>{let v=s[Math.floor(Math.random()*s.length)];v.parentNode===d.parentNode&&d.parentNode.insertBefore(d,v);let f=d.querySelectorAll("section");f.length&&Ae(f)})}function Qe(s,d){let g=b(l.wrapper,s),v=g.length,f=V.isPrintingPDF(),A=!1,D=!1;if(v){n.loop&&(d>=v&&(A=!0),(d%=v)<0&&(d=v+d,D=!0)),d=Math.max(Math.min(d,v-1),0);for(let U=0;U<v;U++){let P=g[U],X=n.rtl&&!de(P);P.classList.remove("past"),P.classList.remove("present"),P.classList.remove("future"),P.setAttribute("hidden",""),P.setAttribute("aria-hidden","true"),P.querySelector("section")&&P.classList.add("stack"),f?P.classList.add("present"):U<d?(P.classList.add(X?"future":"past"),n.fragments&&Ze(P)):U>d?(P.classList.add(X?"past":"future"),n.fragments&&et(P)):U===d&&n.fragments&&(A?et(P):D&&Ze(P))}let K=g[d],J=K.classList.contains("present");K.classList.add("present"),K.removeAttribute("hidden"),K.removeAttribute("aria-hidden"),J||W({target:K,type:"visible",bubbles:!1});let ie=K.getAttribute("data-state");ie&&(p=p.concat(ie.split(" ")))}else d=0;return d}function Ze(s){b(s,".fragment").forEach(d=>{d.classList.add("visible"),d.classList.remove("current-fragment")})}function et(s){b(s,".fragment.visible").forEach(d=>{d.classList.remove("visible","current-fragment")})}function ke(){let s,d,g=ee(),v=g.length;if(v&&i!==void 0){let f=E.isActive()?10:n.viewDistance;le&&(f=E.isActive()?6:n.mobileViewDistance),V.isPrintingPDF()&&(f=Number.MAX_VALUE);for(let A=0;A<v;A++){let D=g[A],K=b(D,"section"),J=K.length;if(s=Math.abs((i||0)-A)||0,n.loop&&(s=Math.abs(((i||0)-A)%(v-f))||0),s<f?C.load(D):C.unload(D),J){let ie=je(D);for(let U=0;U<J;U++){let P=K[U];d=Math.abs(A===(i||0)?(a||0)-U:U-ie),s+d<f?C.load(P):C.unload(P)}}}nt()?l.wrapper.classList.add("has-vertical-slides"):l.wrapper.classList.remove("has-vertical-slides"),st()?l.wrapper.classList.add("has-horizontal-slides"):l.wrapper.classList.remove("has-horizontal-slides")}}function G({includeFragments:s=!1}={}){let d=l.wrapper.querySelectorAll(".slides>section"),g=l.wrapper.querySelectorAll(".slides>section.present>section"),v={left:i>0,right:i<d.length-1,up:a>0,down:a<g.length-1};if(n.loop&&(d.length>1&&(v.left=!0,v.right=!0),g.length>1&&(v.up=!0,v.down=!0)),d.length>1&&n.navigationMode==="linear"&&(v.right=v.right||v.down,v.left=v.left||v.up),s===!0){let f=R.availableRoutes();v.left=v.left||f.prev,v.up=v.up||f.prev,v.down=v.down||f.next,v.right=v.right||f.next}if(n.rtl){let f=v.left;v.left=v.right,v.right=f}return v}function tt(s=r){let d=ee(),g=0;e:for(let v=0;v<d.length;v++){let f=d[v],A=f.querySelectorAll("section");for(let D=0;D<A.length;D++){if(A[D]===s)break e;A[D].dataset.visibility!=="uncounted"&&g++}if(f===s)break;f.classList.contains("stack")===!1&&f.dataset.visibility!=="uncounted"&&g++}return g}function Wt(){let s=rt(),d=tt();if(r){let g=r.querySelectorAll(".fragment");if(g.length>0){let v=.9;d+=r.querySelectorAll(".fragment.visible").length/g.length*v}}return Math.min(d/(s-1),1)}function it(s){let d,g=i,v=a;if(s){let f=de(s),A=f?s.parentNode:s,D=ee();g=Math.max(D.indexOf(A),0),v=void 0,f&&(v=Math.max(b(s.parentNode,"section").indexOf(s),0))}if(!s&&r&&r.querySelectorAll(".fragment").length>0){let f=r.querySelector(".current-fragment");d=f&&f.hasAttribute("data-fragment-index")?parseInt(f.getAttribute("data-fragment-index"),10):r.querySelectorAll(".fragment.visible").length-1}return{h:g,v,f:d}}function Le(){return b(l.wrapper,'.slides section:not(.stack):not([data-visibility="uncounted"])')}function ee(){return b(l.wrapper,".slides>section")}function at(){return b(l.wrapper,".slides>section>section")}function Kt(){return b(l.wrapper,".slides>section.stack")}function st(){return ee().length>1}function nt(){return at().length>1}function Vt(){return Le().map(s=>{let d={};for(let g=0;g<s.attributes.length;g++){let v=s.attributes[g];d[v.name]=v.value}return d})}function rt(){return Le().length}function ot(s,d){let g=ee()[s],v=g&&g.querySelectorAll("section");return v&&v.length&&typeof d=="number"?v?v[d]:void 0:g}function $t(s,d){let g=typeof s=="number"?ot(s,d):s;if(g)return g.slideBackgroundElement}function lt(){let s=it();return{indexh:s.h,indexv:s.v,indexf:s.f,paused:he(),overview:E.isActive()}}function jt(s){if(typeof s=="object"){j(re(s.indexh),re(s.indexv),re(s.indexf));let d=re(s.paused),g=re(s.overview);typeof d=="boolean"&&d!==he()&&Ge(d),typeof g=="boolean"&&g!==E.isActive()&&E.toggle(g)}}function ne(){if(ge(),r&&n.autoSlide!==!1){let s=r.querySelector(".current-fragment");s||(s=r.querySelector(".fragment"));let d=s?s.getAttribute("data-autoslide"):null,g=r.parentNode?r.parentNode.getAttribute("data-autoslide"):null,v=r.getAttribute("data-autoslide");d?I=parseInt(d,10):v?I=parseInt(v,10):g?I=parseInt(g,10):(I=n.autoSlide,r.querySelectorAll(".fragment").length===0&&b(r,"video, audio").forEach(f=>{f.hasAttribute("data-autoplay")&&I&&1e3*f.duration/f.playbackRate>I&&(I=1e3*f.duration/f.playbackRate+1e3)})),!I||O||he()||E.isActive()||Se()&&!R.availableRoutes().next&&n.loop!==!0||(Y=setTimeout(()=>{typeof n.autoSlideMethod=="function"?n.autoSlideMethod():Ne(),ne()},I),Q=Date.now()),c&&c.setPlaying(Y!==-1)}}function ge(){clearTimeout(Y),Y=-1}function ve(){I&&!O&&(O=!0,W({type:"autoslidepaused"}),clearTimeout(Y),c&&c.setPlaying(!1))}function pe(){I&&O&&(O=!1,W({type:"autoslideresumed"}),ne())}function me({skipFragments:s=!1}={}){S.hasNavigatedHorizontally=!0,n.rtl?(E.isActive()||s||R.next()===!1)&&G().left&&j(i+1,n.navigationMode==="grid"?a:void 0):(E.isActive()||s||R.prev()===!1)&&G().left&&j(i-1,n.navigationMode==="grid"?a:void 0)}function Ce({skipFragments:s=!1}={}){S.hasNavigatedHorizontally=!0,n.rtl?(E.isActive()||s||R.prev()===!1)&&G().right&&j(i-1,n.navigationMode==="grid"?a:void 0):(E.isActive()||s||R.next()===!1)&&G().right&&j(i+1,n.navigationMode==="grid"?a:void 0)}function xe({skipFragments:s=!1}={}){(E.isActive()||s||R.prev()===!1)&&G().up&&j(i,a-1)}function Pe({skipFragments:s=!1}={}){S.hasNavigatedVertically=!0,(E.isActive()||s||R.next()===!1)&&G().down&&j(i,a+1)}function dt({skipFragments:s=!1}={}){if(s||R.prev()===!1)if(G().up)xe({skipFragments:s});else{let d;if(d=n.rtl?b(l.wrapper,".slides>section.future").pop():b(l.wrapper,".slides>section.past").pop(),d&&d.classList.contains("stack")){let g=d.querySelectorAll("section").length-1||void 0;j(i-1,g)}else me({skipFragments:s})}}function Ne({skipFragments:s=!1}={}){if(S.hasNavigatedHorizontally=!0,S.hasNavigatedVertically=!0,s||R.next()===!1){let d=G();d.down&&d.right&&n.loop&&Xe()&&(d.down=!1),d.down?Pe({skipFragments:s}):n.rtl?me({skipFragments:s}):Ce({skipFragments:s})}}function Xt(s){n.autoSlideStoppable&&ve()}function ct(s){let d=s.data;if(typeof d=="string"&&d.charAt(0)==="{"&&d.charAt(d.length-1)==="}"&&(d=JSON.parse(d),d.method&&typeof t[d.method]=="function"))if(ai.test(d.method)===!1){const g=t[d.method].apply(t,d.args);Be("callback",{method:d.method,result:g})}else console.warn('reveal.js: "'+d.method+'" is is blacklisted from the postMessage API')}function ht(s){k==="running"&&/section/gi.test(s.target.nodeName)&&(k="idle",W({type:"slidetransitionend",data:{indexh:i,indexv:a,previousSlide:o,currentSlide:r}}))}function ut(s){const d=q(s.target,'a[href^="#"]');if(d){const g=d.getAttribute("href"),v=z.getIndicesFromHash(g);v&&(t.slide(v.h,v.v,v.f),s.preventDefault())}}function gt(s){se()}function vt(s){document.hidden===!1&&document.activeElement!==document.body&&(typeof document.activeElement.blur=="function"&&document.activeElement.blur(),document.body.focus())}function fe(s){(document.fullscreenElement||document.webkitFullscreenElement)===l.wrapper&&(s.stopImmediatePropagation(),setTimeout(()=>{t.layout(),t.focus.focus()},1))}function pt(s){if(s.currentTarget&&s.currentTarget.hasAttribute("href")){let d=s.currentTarget.getAttribute("href");d&&(Ue(d),s.preventDefault())}}function Yt(s){Se()&&n.loop===!1?(j(0,0),pe()):O?pe():ve()}const mt={VERSION:"4.4.0",initialize:Ct,configure:Fe,destroy:zt,sync:Je,syncSlide:Ot,syncFragments:R.sync.bind(R),slide:j,left:me,right:Ce,up:xe,down:Pe,prev:dt,next:Ne,navigateLeft:me,navigateRight:Ce,navigateUp:xe,navigateDown:Pe,navigatePrev:dt,navigateNext:Ne,navigateFragment:R.goto.bind(R),prevFragment:R.prev.bind(R),nextFragment:R.next.bind(R),on:He,off:qe,addEventListener:He,removeEventListener:qe,layout:se,shuffle:Ae,availableRoutes:G,availableFragments:R.availableRoutes.bind(R),toggleHelp:Ht,toggleOverview:E.toggle.bind(E),togglePause:Ge,toggleAutoSlide:qt,isFirstSlide:Ye,isLastSlide:Se,isLastVerticalSlide:Xe,isVerticalSlide:de,isPaused:he,isAutoSliding:Bt,isSpeakerNotes:M.isSpeakerNotesWindow.bind(M),isOverview:E.isActive.bind(E),isFocused:$.isFocused.bind($),isPrintingPDF:V.isPrintingPDF.bind(V),isReady:()=>w,loadSlide:C.load.bind(C),unloadSlide:C.unload.bind(C),showPreview:Ue,hidePreview:_,addEventListeners:ze,removeEventListeners:ue,dispatchEvent:W,getState:lt,setState:jt,getProgress:Wt,getIndices:it,getSlidesAttributes:Vt,getSlidePastCount:tt,getTotalSlides:rt,getSlide:ot,getPreviousSlide:()=>o,getCurrentSlide:()=>r,getSlideBackground:$t,getSlideNotes:M.getSlideNotes.bind(M),getSlides:Le,getHorizontalSlides:ee,getVerticalSlides:at,hasHorizontalSlides:st,hasVerticalSlides:nt,hasNavigatedHorizontally:()=>S.hasNavigatedHorizontally,hasNavigatedVertically:()=>S.hasNavigatedVertically,addKeyBinding:F.addKeyBinding.bind(F),removeKeyBinding:F.removeKeyBinding.bind(F),triggerKey:F.triggerKey.bind(F),registerKeyboardShortcut:F.registerKeyboardShortcut.bind(F),getComputedSlideSize:Ve,getScale:()=>m,getConfig:()=>n,getQueryHash:ft,getSlidePath:z.getHash.bind(z),getRevealElement:()=>h,getSlidesElement:()=>l.slides,getViewportElement:()=>l.viewport,getBackgroundsElement:()=>T.element,registerPlugin:x.registerPlugin.bind(x),hasPlugin:x.hasPlugin.bind(x),getPlugin:x.getPlugin.bind(x),getPlugins:x.getRegisteredPlugins.bind(x)};return oe(t,{...mt,announceStatus:Te,getStatusText:we,print:V,focus:$,progress:u,controls:B,location:z,overview:E,fragments:R,slideContent:C,slideNumber:N,onUserInput:Xt,closeOverlay:_,updateSlidesVisibility:ke,layoutSlideContents:Ke,transformSlides:Ee,cueAutoSlide:ne,cancelAutoSlide:ge}),mt}let ae=Lt,Rt=[];ae.initialize=h=>(Object.assign(ae,new Lt(document.querySelector(".reveal"),h)),Rt.map(e=>e(ae)),ae.initialize()),["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(h=>{ae[h]=(...e)=>{Rt.push(t=>t[h].call(null,...e))}}),ae.isReady=()=>!1,ae.VERSION="4.4.0";export{ae as default};
|