3 lines
50 KiB
JavaScript
3 lines
50 KiB
JavaScript
/*! Licensed under MIT License - http://github.com/impress/impress.js */
|
|
!function(e,t){"use strict";var n,r,i,o,s=(r=e.createElement("dummy").style,i="Webkit Moz O ms Khtml".split(" "),o={},function(e){if(void 0===o[e]){var t=e.charAt(0).toUpperCase()+e.substr(1),n=(e+" "+i.join(t+" ")+t).split(" ");for(var s in o[e]=null,n)if(void 0!==r[n[s]]){o[e]=n[s];break}}return o[e]}),a=function(e,t){var n="xyz",r="";if("string"==typeof e)for(var i in e.split(""))n.indexOf(e[i])>=0&&(r+=e[i],n=n.split(e[i]).join(""));return r||(void 0!==t?t:"xyz")},l=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&null!==(r=s(n))&&(e.style[r]=t[n]);return e},d=function(e){return" translate3d("+e.x+"px,"+e.y+"px,"+e.z+"px) "},u=function(e,t){var n="",r=(e.order?e.order:"xyz").split("");t&&(r=r.reverse());for(var i=0;i<r.length;i++)n+=" rotate"+r[i].toUpperCase()+"("+e[r[i]]+"deg)";return n},c=function(e){return" scale("+e+") "},p=function(e){var n=t.innerHeight/e.height,r=t.innerWidth/e.width,i=n>r?r:n;return e.maxScale&&i>e.maxScale&&(i=e.maxScale),e.minScale&&i<e.minScale&&(i=e.minScale),i},v=e.body,m=null!==s("perspective")&&v.classList&&v.dataset;m||(v.className+=" impress-not-supported ");var f={},g=[],y=[],h=1920,b=1080,x=3,E=0,L=1e3,w=1e3,z=null,k=function(){return!1},A=t.impress=function(r){if(!m)return{init:k,goto:k,prev:k,next:k,swipe:k,tear:k,lib:{}};if(f["impress-root-"+(r=r||"impress")])return f["impress-root-"+r];n=N(r),v.classList.remove("impress-not-supported"),v.classList.add("impress-supported");var i={},o=null,s=null,g=null,y=null,A=n.util.byId(r),C=e.createElement("div"),M=!1,I=null,T=function(e,t){var r=e.dataset,o={translate:{x:n.util.toNumberAdvanced(r.x),y:n.util.toNumberAdvanced(r.y),z:n.util.toNumberAdvanced(r.z)},rotate:{x:n.util.toNumber(r.rotateX),y:n.util.toNumber(r.rotateY),z:n.util.toNumber(r.rotateZ||r.rotate),order:a(r.rotateOrder)},scale:n.util.toNumber(r.scale,1),transitionDuration:n.util.toNumber(r.transitionDuration,z.transitionDuration),el:e};e.id||(e.id="step-"+(t+1)),i["impress-"+e.id]=o,l(e,{position:"absolute",transform:"translate(-50%,-50%)"+d(o.translate)+u(o.rotate)+c(o.scale),transformStyle:"preserve-3d"})},P=function(){(g=n.util.$$(".step",A)).forEach(T)},B=null,O=function(e,r,a,m){if(a=a||"goto",m=m||null,!M)return!1;if(P(),!(e=function(e){return"number"==typeof e?e=e<0?g[g.length+e]:g[e]:"string"==typeof e&&(e=n.util.byId(e)),e&&e.id&&i["impress-"+e.id]?e:null}(e)))return!1;t.scrollTo(0,0);var f=i["impress-"+e.id];if(r=void 0!==r?r:f.transitionDuration,o&&o!==e){var h={target:o,detail:{}};if(h.detail.next=e,h.detail.transitionDuration=r,h.detail.reason=a,m&&(h.origEvent=m),!1===D(h))return!1;e=h.detail.next,f=i["impress-"+e.id],r=h.detail.transitionDuration}o&&(o.classList.remove("active"),v.classList.remove("impress-on-"+o.id)),e.classList.add("active"),v.classList.add("impress-on-"+e.id);var b={rotate:{x:-f.rotate.x,y:-f.rotate.y,z:-f.rotate.z,order:f.rotate.order},translate:{x:-f.translate.x,y:-f.translate.y,z:-f.translate.z},scale:1/f.scale},x=b.scale>=s.scale,E=(r=n.util.toNumber(r,z.transitionDuration))/2;e===o&&(y=p(z));var L,w,k=b.scale*y;return o&&o!==e&&(w=e,I===(L=o)&&(n.util.triggerEvent(L,"impress:stepleave",{next:w}),I=null)),l(A,{perspective:z.perspective/k+"px",transform:c(k),transitionDuration:r+"ms",transitionDelay:(x?E:0)+"ms"}),l(C,{transform:u(b.rotate,!0)+d(b.translate),transitionDuration:r+"ms",transitionDelay:(x?0:E)+"ms"}),(s.scale===b.scale||s.rotate.x===b.rotate.x&&s.rotate.y===b.rotate.y&&s.rotate.z===b.rotate.z&&s.translate.x===b.translate.x&&s.translate.y===b.translate.y&&s.translate.z===b.translate.z)&&(E=0),s=b,o=e,t.clearTimeout(B),B=t.setTimeout((function(){!function(e){I!==e&&(n.util.triggerEvent(e,"impress:stepenter"),I=e),n.util.triggerEvent(e,"impress:steprefresh")}(o)}),r+E),e},q=function(e,t,n){return e+(t-e)*n};return n.gc.addEventListener(A,"impress:init",(function(){g.forEach((function(e){e.classList.add("future")})),n.gc.addEventListener(A,"impress:stepenter",(function(e){e.target.classList.remove("past"),e.target.classList.remove("future"),e.target.classList.add("present")}),!1),n.gc.addEventListener(A,"impress:stepleave",(function(e){e.target.classList.remove("present"),e.target.classList.add("past")}),!1)}),!1),n.gc.addEventListener(A,"impress:init",(function(){var e="";n.gc.addEventListener(A,"impress:stepenter",(function(n){t.location.hash=e="#/"+n.target.id}),!1),n.gc.addEventListener(t,"hashchange",(function(){t.location.hash!==e&&O(n.util.getElementFromHash())}),!1),O(n.util.getElementFromHash()||g[0],0)}),!1),v.classList.add("impress-disabled"),f["impress-root-"+r]={init:function(){if(!M){var t;t=A.dataset,z={width:n.util.toNumber(t.width,h),height:n.util.toNumber(t.height,b),maxScale:n.util.toNumber(t.maxScale,x),minScale:n.util.toNumber(t.minScale,E),perspective:n.util.toNumber(t.perspective,L),transitionDuration:n.util.toNumber(t.transitionDuration,w)},S(A);var i=n.util.$("meta[name='viewport']")||e.createElement("meta");i.content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no",i.parentNode!==e.head&&(i.name="viewport",e.head.appendChild(i)),y=p(z),n.util.arrayify(A.childNodes).forEach((function(e){C.appendChild(e)})),A.appendChild(C),e.documentElement.style.height="100%",l(v,{height:"100%",overflow:"hidden"});var o={position:"absolute",transformOrigin:"top left",transition:"all 0s ease-in-out",transformStyle:"preserve-3d"};l(A,o),l(A,{top:"50%",left:"50%",perspective:z.perspective/y+"px",transform:c(y)}),l(C,o),v.classList.remove("impress-disabled"),v.classList.add("impress-enabled"),P(),s={translate:{x:0,y:0,z:0},rotate:{x:0,y:0,z:0,order:"xyz"},scale:1},M=!0,n.util.triggerEvent(A,"impress:init",{api:f["impress-root-"+r]})}},goto:O,next:function(e){var t=g.indexOf(o)+1;return t=t<g.length?g[t]:g[0],O(t,void 0,"next",e)},prev:function(e){var t=g.indexOf(o)-1;return t=t>=0?g[t]:g[g.length-1],O(t,void 0,"prev",e)},swipe:function(e){if(!(Math.abs(e)>1)){var t,n={target:o,detail:{}};if(n.detail.swipe=e,n.detail.transitionDuration=z.transitionDuration,e<0)t=g.indexOf(o)+1,n.detail.next=t<g.length?g[t]:g[0],n.detail.reason="next";else{if(!(e>0))return;t=g.indexOf(o)-1,n.detail.next=t>=0?g[t]:g[g.length-1],n.detail.reason="prev"}if(!1===D(n))return!1;var r=n.detail.next,a=i["impress-"+r.id],p=a.scale*y,v=Math.abs(e),m={translate:{x:q(s.translate.x,-a.translate.x,v),y:q(s.translate.y,-a.translate.y,v),z:q(s.translate.z,-a.translate.z,v)},rotate:{x:q(s.rotate.x,-a.rotate.x,v),y:q(s.rotate.y,-a.rotate.y,v),z:q(s.rotate.z,-a.rotate.z,v),order:v<.7?s.rotate.order:a.rotate.order},scale:q(s.scale*y,p,v)};l(A,{perspective:z.perspective/m.scale+"px",transform:c(m.scale),transitionDuration:"0ms",transitionDelay:"0ms"}),l(C,{transform:u(m.rotate,!0)+d(m.translate),transitionDuration:"0ms",transitionDelay:"0ms"})}},tear:function(){n.gc.teardown(),delete f["impress-root-"+r]},lib:n}};A.supported=m;var C={};A.addLibraryFactory=function(e){for(var t in e)e.hasOwnProperty(t)&&(C[t]=e[t])};var N=function(e){var t={};for(var n in C)if(C.hasOwnProperty(n)){if(void 0!==t[n])throw"impress.js ERROR: Two libraries both tried to use libname: "+n;t[n]=C[n](e)}return t};A.addPreInitPlugin=function(e,t){if((t=parseInt(t)||10)<=0)throw"addPreInitPlugin: weight must be a positive integer";void 0===g[t]&&(g[t]=[]),g[t].push(e)};var S=function(e){for(var t=0;t<g.length;t++){var n=g[t];if(void 0!==n)for(var r=0;r<n.length;r++)n[r](e,f["impress-root-"+e.id])}};A.addPreStepLeavePlugin=function(e,t){if((t=parseInt(t)||10)<=0)throw"addPreStepLeavePlugin: weight must be a positive integer";void 0===y[t]&&(y[t]=[]),y[t].push(e)},A.getConfig=function(){return z};var D=function(e){for(var t=0;t<y.length;t++){var n=y[t];if(void 0!==n)for(var r=0;r<n.length;r++)if(!1===n[r](e))return!1}}}(document,window),function(e,t){"use strict";var n=[],r=0,i={roots:[]};t.impress.addLibraryFactory({gc:function(e){if(n[e])return n[e];var t=[],i=[],a=[];o(e);var l=function(e){t.push(e)},d=function(e,t,n){i.push({target:e,type:t,listener:n})},u=function(e){a.push(e)};u((function(e){s(e)}));var c={pushElement:l,appendChild:function(e,t){e.appendChild(t),l(t)},pushEventListener:d,addEventListener:function(e,t,n){e.addEventListener(t,n),d(e,t,n)},pushCallback:u,teardown:function(){var n;for(n=a.length-1;n>=0;n--)a[n](e);for(a=[],n=0;n<t.length;n++)t[n].parentElement.removeChild(t[n]);for(t=[],n=0;n<i.length;n++){var r=i[n].target,o=i[n].type,s=i[n].listener;r.removeEventListener(o,s)}}};return n[e]=c,r++,c}});var o=function(t){i.roots[t]={},i.roots[t].steps=[];for(var n=e.getElementById(t).querySelectorAll(".step"),o=0;o<n.length;o++){var s=n[o];i.roots[t].steps.push({el:s,id:s.getAttribute("id")})}if(0===r){i.body={},e.body.classList.contains("impress-not-supported")?i.body.impressNotSupported=!0:i.body.impressNotSupported=!1;var a=e.head.querySelectorAll("meta");for(o=0;o<a.length;o++){var l=a[o];"viewport"===l.name&&(i.meta=l.content)}}},s=function(t){e.body.classList.remove("impress-enabled"),e.body.classList.remove("impress-disabled");var o=e.getElementById(t),s=o.querySelector(".active").id;e.body.classList.remove("impress-on-"+s),e.documentElement.style.height="",e.body.style.height="",e.body.style.overflow="";for(var a,l=o.querySelectorAll(".step"),d=0;d<l.length;d++)l[d].classList.remove("future"),l[d].classList.remove("past"),l[d].classList.remove("present"),l[d].classList.remove("active"),l[d].style.position="",l[d].style.transform="",l[d].style["transform-style"]="";for(o.style.position="",o.style["transform-origin"]="",o.style.transition="",o.style["transform-style"]="",o.style.top="",o.style.left="",o.style.transform="",l=i.roots[t].steps;a=l.pop();)null===a.id?a.el.removeAttribute("id"):a.el.setAttribute("id",a.id);delete i.roots[t];var u=o.firstChild.innerHTML;if(o.innerHTML=u,void 0!==n[t]&&(delete n[t],r--),0===r){e.body.classList.remove("impress-supported"),i.body.impressNotSupported&&e.body.classList.add("impress-not-supported");var c=e.head.querySelectorAll("meta");for(d=0;d<c.length;d++){var p=c[d];"viewport"===p.name&&(void 0!==i.meta?p.content=i.meta:p.parentElement.removeChild(p))}}}}(document,window),function(e,t){"use strict";var n=[];t.impress.addLibraryFactory({util:function(r){if(n[r])return n[r];var i=function(e){return[].slice.call(e)},o=function(t){return e.getElementById(t)},s=function(e,t){return isNaN(e)?t||0:Number(e)},a={$:function(t,n){return(n=n||e).querySelector(t)},$$:function(t,n){return i((n=n||e).querySelectorAll(t))},arrayify:i,byId:o,getElementFromHash:function(){var e=t.location.hash.replace(/^#\/?/,"");return o(decodeURIComponent(e))},throttle:function(e,n){var r=null;return function(){var i=this,o=arguments;t.clearTimeout(r),r=t.setTimeout((function(){e.apply(i,o)}),n)}},toNumber:s,toNumberAdvanced:function(e,n){if("string"!=typeof e)return s(e,n);var r=e.match(/^([+-]*[\d\.]+)([wh])$/);if(null==r)return s(e,n);var i=parseFloat(r[1]),o=t.impress.getConfig();return i*("w"===r[2]?o.width:o.height)},triggerEvent:function(t,n,r){var i=e.createEvent("CustomEvent");i.initCustomEvent(n,!0,!0,r),t.dispatchEvent(i)},getUrlParamValue:function(e){var n=t.location.search.split(e+"=")[1],r=n&&n.split("&")[0];if(""!==r)return r}};return n[r]=a,a}})}(document,window),function(e,t){"use strict";var n=[];t.impress.addLibraryFactory({rotation:function(e){if(n["impress-root-"+e])return n["impress-root-"+e];var t=function(e){return Math.round(100*(e+Number.EPSILON))/100},r=function(e){return Math.sqrt(e.x*e.x+e.y*e.y+e.z*e.z)},i=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z},o=function(e,t){return{x:e.y*t.z-e.z*t.y,y:e.z*t.x-e.x*t.z,z:e.x*t.y-e.y*t.x}},s={x:{x:1,y:0,z:0},y:{x:0,y:1,z:0},z:{x:0,y:0,z:1}},a=function(e,t=0){var n=0,i=1;if(t){var o=t*Math.PI/180;n=Math.cos(o/2),i=Math.sin(o/2)/r(e)}return[n,e.x*i,e.y*i,e.z*i]},l=function(e,t){return[e[0]*t[0]-e[1]*t[1]-e[2]*t[2]-e[3]*t[3],e[1]*t[0]+e[0]*t[1]-e[3]*t[2]+e[2]*t[3],e[2]*t[0]+e[3]*t[1]+e[0]*t[2]-e[1]*t[3],e[3]*t[0]-e[2]*t[1]+e[1]*t[2]+e[0]*t[3]]},d=function(e,t){for(var n=(t.order?t.order:"xyz").split(""),r=[1,0,0,0],i=0;i<n.length;i++){var o=t[n[i]];if(o&&!(Math.abs(o)<1e-4)){var s=e;i>0&&(s={x:u(e.x,r),y:u(e.y,r),z:u(e.z,r)}),r=l(a(s[n[i]],o),r)}}return r},u=function(e,n){var r=a(e);return function(e){return{x:t(e[1]),y:t(e[2]),z:t(e[3])}}(r=l(l(n,r),function(e){return[e[0],-e[1],-e[2],-e[3]]}(n)))},c=function(e,t){var n=d(e,t);return{x:u(e.x,n),y:u(e.y,n),z:u(e.z,n)}},p=function(e,t,n){var s=r(t),a=r(n);if(!s||!a)return 0;var l=i(t,n)/s/a,d=180*Math.acos(l)/Math.PI;return function(e,t,n){return i(o(e,t),n)}(t,n,e)>0?d:-d},v=function(e,n,r){var i,s=o(e,n);return t((i=s).x)||t(i.y)||t(i.z)?90-p(e,r,s):0},m=function(e,n){var r=n[0],i=n[1],o=n[2],a=n.split("").reverse().join(""),l=v(e[o],s[r],e[r]),d={order:a};d[o]=-l;var u=c(e,d),m=p(u[i],s[r],u[r]),f=p(s[r],s[i],u[i]),g={};return g.order=n,g[r]=t(f),g[i]=t(m),g[o]=t(l),g},f=function(e,t){for(;t>e+180;)t-=360;for(;t<e-180;)t+=360;return t},g=function(e,t){return function(e,t){for(var n,r,i=0;i<t.length;++i){var o={order:t[i].order,x:f(e.x,t[i].x),y:f(e.y,t[i].y),z:f(e.z,t[i].z)},s=Math.abs(o.x-e.x)+Math.abs(o.y-e.y)+Math.abs(o.z-e.z);(!i||s<n)&&(n=s,r=o)}return r}(e,function(e){for(var t=["xyz","xzy","yxz","yzx","zxy","zyx"],n=[],r=0;r<t.length;++r)n.push(m(e,t[r]));return n}(t))},y={translateRelative:function(e,t){var n,r,i=(n=e,r=d(s,t),u(n,r));return i.rotate=function(e){if(e.length<=0)return{x:0,y:0,z:0,order:"xyz"};for(var t=s,n=0;n<e.length;n++)t=c(t,e[n]);return g(e[0],t)}([t,e.rotate]),i}};return n["impress-root-"+e]=y,y}})}(document,window),function(e){"use strict";var t,n=0,r=0,i=null,o=null;e.addEventListener("impress:init",(function(r){t=r.detail.api.lib.util,i=r.detail.api;var s=r.target.dataset,a=t.getUrlParamValue("impress-autoplay")||s.autoplay;a&&(n=t.toNumber(a,0));var l=e.querySelector("#impress-toolbar");l&&p(l),i.lib.gc.pushCallback((function(){clearTimeout(o)}))}),!1),e.addEventListener("impress:autoplay:pause",(function(e){l="paused",s(e)}),!1),e.addEventListener("impress:autoplay:play",(function(e){l="playing",s(e)}),!1);var s=function(e){var i=e.target;r=t.toNumber(i.dataset.autoplay,n),a("paused"===l?0:r)};e.addEventListener("impress:stepenter",(function(e){s(e)}),!1),e.addEventListener("impress:substep:enter",(function(e){s(e)}),!1);var a=function(e){o&&clearTimeout(o),e>0&&(o=setTimeout((function(){i.next()}),1e3*e)),c()},l="not clicked",d=null,u=function(){return r>0&&"paused"!==l?"||":"▶"},c=function(){if(d){var e=d.offsetWidth,t=d.offsetHeight;d.innerHTML=u(),d.style.width||(d.style.width=e+"px"),d.style.height||(d.style.height=t+"px")}},p=function(i){var o='<button id="impress-autoplay-playpause" title="Autoplay" class="impress-autoplay">'+u()+"</button>";(d=function(t){var n=e.createElement("div");return n.innerHTML=t,n.firstChild}(o)).addEventListener("click",(function(){"playing"===(l=r>0&&"paused"!==l?"paused":"playing")?(0===n&&(n=7),0===r&&(r=n),a(r)):"paused"===l&&a(0)})),t.triggerEvent(i,"impress:toolbar:appendChild",{group:10,element:d})}}(document),function(e){"use strict";var t,n,r,i=null,o=!1,s=null,a=null,l=null,d=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&null!==(r=u(n))&&(e.style[r]=t[n]);return e},u=(t=e.createElement("dummy").style,n="Webkit Moz O ms Khtml".split(" "),r={},function(e){if(void 0===r[e]){var i=e.charAt(0).toUpperCase()+e.substr(1),o=(e+" "+n.join(i+" ")+i).split(" ");for(var s in r[e]=null,o)if(void 0!==t[o[s]]){r[e]=o[s];break}}return r[e]}),c=function(){o&&(d(i,{display:"block"}),o=!1,s.triggerEvent(a,"impress:autoplay:play",{}))};e.addEventListener("impress:init",(function(t){l=t.detail.api,s=l.lib.util,a=t.target,i=a.firstElementChild;var n=l.lib.gc;n.addEventListener(e,"keydown",(function(e){66!==e.keyCode&&190!==e.keyCode||(e.preventDefault(),o||o?c():(d(i,{display:(o=!o)?"none":"block"}),o=!0,s.triggerEvent(a,"impress:autoplay:pause",{})))}),!1),n.addEventListener(e,"keyup",(function(e){66!==e.keyCode&&190!==e.keyCode||e.preventDefault()}),!1)}),!1),e.addEventListener("impress:stepleave",(function(){c()}),!1)}(document),function(e,t){"use strict";const n=/^-----$/m,r=function(e){var t=e.textContent,r=t.match(/^([ \t]*)\S/m);return null!==r&&(t=t.replace(new RegExp("^"+r[1],"mg"),"")),t.split(n)},i=function(n){var i=t.hasOwnProperty("marked")?function(e,t){return marked.parse(t)}:t.hasOwnProperty("markdown")?function(e,t){var n=e.dataset.markdownDialect;return markdown.toHTML(t,n)}:null;if(i)for(var o of e.querySelectorAll(n)){var s=null;o.id&&(s=o.id,o.id="");var a=null;o.title&&(a=o.title,o.title="");for(var l=r(o),d=[o],u=1;u<l.length;++u){var c=o.cloneNode(!1);c.id="",o.parentNode.insertBefore(c,d[0]),d.splice(0,0,c)}s&&(d[0].id=s);for(var p=0;p<l.length;++p)d[p].innerHTML=i(d[p],l[p]),a&&0===p&&(d[p].title=a)}};impress.addPreInitPlugin((function(){i(".markdown"),t.hljs&&hljs.initHighlightingOnLoad(),t.mermaid&&mermaid.initialize({startOnLoad:!0})}),1)}(document,window),function(e){"use strict";e.addEventListener("impress:init",(function(t){t.target;var n=t.detail.api.lib.gc;for(var r of["input","textarea","select","[contenteditable=true]"]){var i=e.querySelectorAll(r);if(i)for(var o=0;o<i.length;o++){var s=i[o];n.addEventListener(s,"keydown",(function(e){e.stopPropagation()})),n.addEventListener(s,"keyup",(function(e){e.stopPropagation()}))}}}),!1),e.addEventListener("impress:stepleave",(function(){e.activeElement.blur()}),!1)}(document),function(e){"use strict";e.addEventListener("impress:init",(function(t){var n=t.detail.api,r=t.target,i=n.lib.gc,o=n.lib.util;i.addEventListener(e,"keydown",(function(t){var n;"F5"===t.code&&(t.preventDefault(),n=e.documentElement,e.fullscreenElement||n.requestFullscreen(),o.triggerEvent(r.querySelector(".active"),"impress:steprefresh")),"Escape"!==t.key&&"F5"!==t.key||(t.preventDefault(),e.fullscreenElement&&e.exitFullscreen(),o.triggerEvent(r.querySelector(".active"),"impress:steprefresh"))}),!1),o.triggerEvent(e,"impress:help:add",{command:"F5 / ESC",text:"Fullscreen: Enter / Exit",row:200})}),!1)}(document),function(e,t){"use strict";var n;e.addEventListener("impress:init",(function(e){n=e.detail.api.lib}),!1);var r=function(e){return!isNaN(e)};impress.addPreStepLeavePlugin((function(i){if(i&&i.target){var o=i.target.dataset,s=e.querySelectorAll(".step");if(void 0!==o.gotoKeyList&&void 0!==o.gotoNextList&&void 0!==i.origEvent&&void 0!==i.origEvent.key){var a=o.gotoKeyList.split(" "),l=o.gotoNextList.split(" ");if(a.length!==l.length)t.console.log("impress goto plugin: data-goto-key-list and data-goto-next-list don't match:"),t.console.log(a),t.console.log(l);else{var d=a.indexOf(i.origEvent.key);if(d>=0){var u=l[d];if(r(u))return i.detail.next=s[u],void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));if((c=e.getElementById(u))&&c.classList.contains("step"))return i.detail.next=c,void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));t.console.log("impress goto plugin: "+u+" is not a step in this impress presentation.")}}}if(r(o.gotoNext)&&"next"===i.detail.reason)return i.detail.next=s[o.gotoNext],void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));if(o.gotoNext&&"next"===i.detail.reason){if((c=e.getElementById(o.gotoNext))&&c.classList.contains("step"))return i.detail.next=c,void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));t.console.log("impress goto plugin: "+o.gotoNext+" is not a step in this impress presentation.")}if(r(o.gotoPrev)&&"prev"===i.detail.reason)return i.detail.next=s[o.gotoPrev],void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));if(o.gotoPrev&&"prev"===i.detail.reason){if((c=e.getElementById(o.gotoPrev))&&c.classList.contains("step"))return i.detail.next=c,void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));t.console.log("impress goto plugin: "+o.gotoPrev+" is not a step in this impress presentation.")}if(r(o.goto))return i.detail.next=s[o.goto],void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));if(o.goto){var c;if((c=e.getElementById(o.goto))&&c.classList.contains("step"))return i.detail.next=c,void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));t.console.log("impress goto plugin: "+o.goto+" is not a step in this impress presentation.")}}}))}(document,window),function(e,t){"use strict";var n,r=[],i=function(){var t=e.getElementById("impress-help");if(t){var n=[];for(var i in r)for(var o in i)n.push(r[i][o]);n&&(t.innerHTML="<table>\n"+n.join("\n")+"</table>\n")}};e.addEventListener("keyup",(function(r){var i;72!==r.keyCode&&191!==r.keyCode||(r.preventDefault(),(i=e.getElementById("impress-help"))&&("block"===i.style.display?i.style.display="none":(i.style.display="block",t.clearTimeout(n))))}),!1),e.addEventListener("impress:help:add",(function(e){var t=e.detail.row;"object"==typeof r[t]&&r[t].isArray||(r[t]=[]),r[e.detail.row].push("<tr><td><strong>"+e.detail.command+"</strong></td><td>"+e.detail.text+"</td></tr>"),i()})),e.addEventListener("impress:init",(function(o){i();var s,a,l,d,u=e.getElementById("impress-help");u&&(u.style.display="block",n=t.setTimeout((function(){e.getElementById("impress-help").style.display="none"}),7e3),o.detail.api.lib.gc.pushCallback((function(){t.clearTimeout(n),u.style.display="",u.innerHTML="",r=[]})));s=e,a="impress:help:add",l={command:"H",text:"Show this help",row:0},(d=e.createEvent("CustomEvent")).initCustomEvent(a,!0,!0,l),s.dispatchEvent(d)}))}(document,window),function(e,t){"use strict";var n;switch(navigator.language){case"de":n={noNotes:'<div class="noNotes">Keine Notizen hierzu</div>',restart:"Neustart",clickToOpen:"Klicken um Sprecherkonsole zu öffnen",prev:"zurück",next:"weiter",loading:"initalisiere",ready:"Bereit",moving:"in Bewegung",useAMPM:!1};break;case"zh-CN":case"zh-cn":n={noNotes:'<div class="noNotes">当前帧没有备注</div>',restart:"重新开始",clickToOpen:"点击以打开演讲者控制界面",prev:"上一帧",next:"下一帧",loading:"加载中",ready:"就绪",moving:"移动中",useAMPM:!1};break;case"en":default:n={noNotes:'<div class="noNotes">No notes for this step</div>',restart:"Restart",clickToOpen:"Click to open speaker console",prev:"Prev",next:"Next",loading:"Loading",ready:"Ready",moving:"Moving",useAMPM:!1}}const r='<!DOCTYPE html><html id="impressconsole"><head>{{cssStyle}}{{cssLink}}</head><body><div id="console"><div id="views"><iframe id="slideView" scrolling="no"></iframe><iframe id="preView" scrolling="no"></iframe><div id="blocker"></div></div><div id="notes"></div></div><div id="controls"> <div id="prev"><a href="#" onclick="impress().prev(); return false;" />{{prev}}</a></div><div id="next"><a href="#" onclick="impress().next(); return false;" />{{next}}</a></div><div id="clock">--:--</div><div id="timer" onclick="timerReset()">00m 00s</div><div id="status">{{loading}}</div></div></body></html>';var i=void 0,o=void 0,s={},a=function(e){return(e<10?"0":"")+e},l=t.impressConsole=function(l){if(s[l=l||"impress"])return s[l];var u=e.getElementById(l),c=null,p=function(){for(var t="",r=e.querySelector(".active");!r.nextElementSibling&&r.parentNode;)r=r.parentNode;for(r=r.nextElementSibling;r;){if((t=r.attributes.class)&&-1!==t.value.indexOf("step"))return c.document.getElementById("blocker").innerHTML=n.next,r;if(r.firstElementChild)r=r.firstElementChild;else{for(;!r.nextElementSibling&&r.parentNode;)r=r.parentNode;r=r.nextElementSibling}}return c.document.getElementById("blocker").innerHTML=n.restart,e.querySelector(".step")},v=function(){if(c){var t=e.querySelector(".active").querySelector(".notes");t=t?t.innerHTML:n.noNotes,c.document.getElementById("notes").innerHTML=t;var r=e.URL.substring(0,e.URL.search("#/")),i=r+"#"+e.querySelector(".active").id,o=r+"#"+p().id,s=c.document.getElementById("slideView");s.src!==i&&(s.src=i);var a=c.document.getElementById("preView");a.src!==o&&(a.src=o),c.document.getElementById("status").innerHTML='<span class="moving">'+n.moving+"</span>"}},m=function(){if(c){var t=e.querySelector(".active").querySelector(".notes");t=t?t.innerHTML:n.noNotes;var r=c.document.getElementById("notes");r.innerHTML=t,r.scrollTop=0;var i=e.URL.substring(0,e.URL.search("#/")),o=i+"#"+e.querySelector(".active").id,s=i+"#"+p().id,a=c.document.getElementById("slideView");a.src!==o&&(a.src=o);var l=c.document.getElementById("preView");l.src!==s&&(l.src=s),c.document.getElementById("status").innerHTML='<span class="ready">'+n.ready+"</span>"}},f=function(e){c&&("next"===e.detail.reason&&g(),"prev"===e.detail.reason&&y())},g=function(){var e=c.document.getElementById("slideView");h(e,"impress:substep:show")},y=function(){var e=c.document.getElementById("slideView");h(e,"impress:substep:hide")},h=function(e,t,n){var r=e.contentDocument.createEvent("CustomEvent");r.initCustomEvent(t,!0,!0,n),e.contentDocument.dispatchEvent(r)},b=function(){var e=c.document.getElementById("notes");e.scrollTopMax-e.scrollTop>20?e.scrollTop=e.scrollTop+.8*e.clientHeight:t.impress().next()},x=function(){c.timerStart=new Date},E=function(e,t,n){void 0===n&&(n=c),n.document.addEventListener("keydown",(function(t){t.ctrlKey||t.altKey||t.shiftKey||t.metaKey||-1===e.indexOf(t.keyCode)||t.preventDefault()}),!1),n.document.addEventListener("keyup",(function(n){n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||-1===e.indexOf(n.keyCode)||(t(),n.preventDefault())}),!1)},L=function(){var e=c.document.getElementById("slideView"),t=c.document.getElementById("preView");e.contentDocument.body.classList.add("impress-console","slideView"),t.contentDocument.body.classList.add("impress-console","preView"),void 0!==o&&(e.contentDocument.head.insertAdjacentHTML("beforeend",'<link rel="stylesheet" type="text/css" href="'+o+'">'),t.contentDocument.head.insertAdjacentHTML("beforeend",'<link rel="stylesheet" type="text/css" href="'+o+'">')),e.addEventListener("load",(function(){e.contentDocument.body.classList.add("impress-console","slideView"),void 0!==o&&e.contentDocument.head.insertAdjacentHTML("beforeend",'<link rel="stylesheet" type="text/css" href="'+o+'">')})),t.addEventListener("load",(function(){t.contentDocument.body.classList.add("impress-console","preView"),void 0!==o&&t.contentDocument.head.insertAdjacentHTML("beforeend",'<link rel="stylesheet" type="text/css" href="'+o+'">')}))},w=function(){if(!top.isconsoleWindow){if(!c||c.closed){if(null==(c=t.open("","impressConsole"))){var o=e.createElement("div");o.id="impress-console-button",o.style.position="fixed",o.style.left=0,o.style.top=0,o.style.right=0,o.style.bottom=0,o.style.backgroundColor="rgba(255, 255, 255, 0.9)";var a="var x = document.getElementById('impress-console-button');x.parentNode.removeChild(x);var r = document.getElementById('"+l+"');impress('"+l+"').lib.util.triggerEvent(r, 'impress:console:open', {})";return o.innerHTML='<button style="margin: 25vh 25vw;width:50vw;height:50vh;" onclick="'+a+'">'+n.clickToOpen+"</button>",void e.body.appendChild(o)}var u="";return void 0!==i&&(u='<link rel="stylesheet" type="text/css" media="screen" href="'+i+'">'),c.document.open(),c.document.write(r.replace("{{cssStyle}}",d()).replace("{{cssLink}}",u).replace(/{{.*?}}/gi,(function(e){return n[e.substring(2,e.length-2)]}))),c.document.title="Speaker Console ("+e.title+")",c.impress=t.impress,c.isconsoleWindow=!0,c.onload=L,c.timerStart=new Date,c.timerReset=x,c.clockInterval=setInterval(s[l].clockTick,1e3),E([33,37,38],t.impress().prev),E([34,39,40],t.impress().next),E([32],b),E([82],x),c.onbeforeunload=function(){clearInterval(c.clockInterval)},m(),c.initialized=!1,c.document.close(),t.onresize=z,c.onresize=z,c}c.focus()}},z=function(){var e=c.document.getElementById("slideView"),n=c.document.getElementById("preView"),r=t.innerHeight/t.innerWidth,i=c.document.getElementById("views"),o=e.offsetWidth-e.clientWidth,s=i.clientWidth-o,a=Math.floor(s*r),l=a+4,d=Math.floor(.7*s),u=Math.floor(.7*a);i.clientHeight-o<l+u&&(u=i.clientHeight-o-l,d=Math.floor(u/r)),d<=Math.floor(.5*s)&&(s=i.clientWidth-o,l=(a=Math.floor((i.clientHeight-o-4)/1.5))+4,d=Math.floor(.5*s),u=i.clientHeight-o-l),e.style.width=s+"px",e.style.height=a+"px",n.style.top=l+"px",n.style.width=d+"px",n.style.height=u+"px"},k=function(e,n){void 0!==e?i=e:void 0!==u.dataset.consoleCss&&(i=u.dataset.consoleCss),void 0!==n?o=n:void 0!==u.dataset.consoleCssIframe&&(o=u.dataset.consoleCssIframe),u.addEventListener("impress:stepleave",v),u.addEventListener("impress:stepenter",m),u.addEventListener("impress:substep:stepleaveaborted",f),u.addEventListener("impress:substep:show",g),u.addEventListener("impress:substep:hide",y),t.onunload=function(){c&&!c.closed&&c.close()},E([80],w,t),"true"===u.dataset.consoleAutolaunch&&w()};return u.addEventListener("impress:console:open",(function(){w()})),u.addEventListener("impress:console:registerKeyEvent",(function(e){E(e.detail.keyCodes,e.detail.handler,e.detail.window)})),s[l]={init:function(e,n){void 0!==e&&"css/impressConsole.css"!==e||void 0!==n&&"css/iframe.css"!==n||t.console.log("impressConsole().init() is deprecated. impressConsole is now initialized automatically when you call impress().init()."),k(e,n)},open:w,clockTick:function(){var e=new Date,t=e.getHours(),r=e.getMinutes(),i=e.getSeconds(),o="";n.useAMPM&&(o=t<12?"AM":"PM",t=0===(t=t>12?t-12:t)?12:t);var s=a(t)+":"+a(r)+":"+a(i)+" "+o;c.document.getElementById("clock").firstChild.nodeValue=s,i=Math.floor((e-c.timerStart)/1e3),r=Math.floor(i/60),i=Math.floor(i%60),c.document.getElementById("timer").firstChild.nodeValue=a(r)+"m "+a(i)+"s",c.initialized||(c.document.getElementById("slideView").contentWindow.scrollTo(0,0),c.document.getElementById("preView").contentWindow.scrollTo(0,0),c.initialized=!0)},registerKeyEvent:E,_init:k},s[l]};e.addEventListener("impress:init",(function(t){l(t.target.id)._init(),function(t,n,r){var i=e.createEvent("CustomEvent");i.initCustomEvent(n,!0,!0,r),t.dispatchEvent(i)}(e,"impress:help:add",{command:"P",text:"Presenter console",row:10})}));var d=function(){return"<style>\n #impressconsole body {\n background-color: rgb(255, 255, 255);\n padding: 0;\n margin: 0;\n font-family: verdana, arial, sans-serif;\n font-size: 2vw;\n }\n\n #impressconsole div#console {\n position: absolute;\n top: 0.5vw;\n left: 0.5vw;\n right: 0.5vw;\n bottom: 3vw;\n margin: 0;\n }\n\n #impressconsole div#views, #impressconsole div#notes {\n position: absolute;\n top: 0;\n bottom: 0;\n }\n\n #impressconsole div#views {\n left: 0;\n right: 50vw;\n overflow: hidden;\n }\n\n #impressconsole div#blocker {\n position: absolute;\n right: 0;\n bottom: 0;\n }\n\n #impressconsole div#notes {\n left: 50vw;\n right: 0;\n overflow-x: hidden;\n overflow-y: auto;\n padding: 0.3ex;\n background-color: rgb(255, 255, 255);\n border: solid 1px rgb(120, 120, 120);\n }\n\n #impressconsole div#notes .noNotes {\n color: rgb(200, 200, 200);\n }\n\n #impressconsole div#notes p {\n margin-top: 0;\n }\n\n #impressconsole iframe {\n position: absolute;\n margin: 0;\n padding: 0;\n left: 0;\n border: solid 1px rgb(120, 120, 120);\n }\n\n #impressconsole iframe#slideView {\n top: 0;\n width: 49vw;\n height: 49vh;\n }\n\n #impressconsole iframe#preView {\n opacity: 0.7;\n top: 50vh;\n width: 30vw;\n height: 30vh;\n }\n\n #impressconsole div#controls {\n margin: 0;\n position: absolute;\n bottom: 0.25vw;\n left: 0.5vw;\n right: 0.5vw;\n height: 2.5vw;\n background-color: rgb(255, 255, 255);\n background-color: rgba(255, 255, 255, 0.6);\n }\n\n #impressconsole div#prev, div#next {\n }\n\n #impressconsole div#prev a, #impressconsole div#next a {\n display: block;\n border: solid 1px rgb(70, 70, 70);\n border-radius: 0.5vw;\n font-size: 1.5vw;\n padding: 0.25vw;\n text-decoration: none;\n background-color: rgb(220, 220, 220);\n color: rgb(0, 0, 0);\n }\n\n #impressconsole div#prev a:hover, #impressconsole div#next a:hover {\n background-color: rgb(245, 245, 245);\n }\n\n #impressconsole div#prev {\n float: left;\n }\n\n #impressconsole div#next {\n float: right;\n }\n\n #impressconsole div#status {\n margin-left: 2em;\n margin-right: 2em;\n text-align: center;\n float: right;\n }\n\n #impressconsole div#clock {\n margin-left: 2em;\n margin-right: 2em;\n text-align: center;\n float: left;\n }\n\n #impressconsole div#timer {\n margin-left: 2em;\n margin-right: 2em;\n text-align: center;\n float: left;\n }\n\n #impressconsole span.moving {\n color: rgb(255, 0, 0);\n }\n\n #impressconsole span.ready {\n color: rgb(0, 128, 0);\n }\n </style>"}}(document,window),function(e,t){"use strict";var n,r,i,o,s,a,l,d,u,c,p,v,m,f,g;o=[],e.addEventListener("impress:init",(function(e){n=e.target,r=e.detail.api,i=r.lib.gc,a(),i.pushCallback(g)}),!1),g=function(){var e,t;for(l(),t=0;t<o.length;t+=1)(e=o[t]).node.removeAttribute(e.attr);o=[]},f=function(e,t){var n,r,i,o;for(n="data-media-"+e,i=0;i<t.length;i+=1)if((o=t[i]).hasAttribute(n))return""===(r=o.getAttribute(n))||"true"===r},p=function(t){var n=t.target.nodeName.toLowerCase();e.body.classList.add("impress-media-"+n+"-playing"),e.body.classList.remove("impress-media-"+n+"-paused")},v=function(t){var n=t.target.nodeName.toLowerCase();e.body.classList.add("impress-media-"+n+"-paused"),e.body.classList.remove("impress-media-"+n+"-playing")},m=function(t){var n=t.target.nodeName.toLowerCase();e.body.classList.remove("impress-media-"+n+"-playing"),e.body.classList.remove("impress-media-"+n+"-paused")},l=function(){var t,n;for(t in n=["video","audio"])e.body.classList.remove("impress-media-"+n[t]+"-playing"),e.body.classList.remove("impress-media-"+n[t]+"-paused")},s=function(){var e,t,r,s;for(t=n.querySelectorAll("audio, video"),e=0;e<t.length;e+=1)s=t[e].nodeName.toLowerCase(),null==(r=t[e]).getAttribute("id")&&(r.setAttribute("id","media-"+s+"-"+e),o.push({node:r,attr:"id"})),i.addEventListener(r,"play",p),i.addEventListener(r,"playing",p),i.addEventListener(r,"pause",v),i.addEventListener(r,"ended",m)},a=function(){var t,n,r;for(s(),t=e.getElementsByClassName("step"),r=0;r<t.length;r+=1)n=t[r],i.addEventListener(n,"impress:stepenter",u),i.addEventListener(n,"impress:stepleave",c)},d=function(){return{preview:null!==t.frameElement&&"preView"===t.frameElement.id,slideView:null!==t.frameElement&&"slideView"===t.frameElement.id}},u=function(e){var t,r,i,o,s;if(e&&e.target)for(t=e.target,l(),r=t.querySelectorAll("audio, video"),o=0;o<r.length;o+=1)i=r[o],s=d(),f("autoplay",[i,t,n])&&!s.preview&&(s.slideView&&(i.muted=!0),i.play())},c=function(e){var t,r,i,o,s,a,d;if(e&&e.target){for(t=e.target,r=e.target.querySelectorAll("audio, video"),i=0;i<r.length;i+=1)o=r[i],s=f("autoplay",[o,t,n]),a=f("autopause",[o,t,n]),void 0===(d=f("autostop",[o,t,n]))&&void 0===a&&(d=s),(a||d)&&(o.pause(),d&&(o.currentTime=0));l()}}}(document,window),function(e){"use strict";e.addEventListener("impress:init",(function(t){var n=e.body;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&n.classList.add("impress-mobile"),t.detail.api.lib.gc.pushCallback((function(){e.body.classList.remove("impress-mobile");var t=e.getElementsByClassName("prev")[0],n=e.getElementsByClassName("next")[0];void 0!==t&&t.classList.remove("prev"),void 0!==n&&n.classList.remove("next")}))})),e.addEventListener("impress:stepenter",(function(t){var n=e.getElementsByClassName("prev")[0],r=e.getElementsByClassName("next")[0];(function(t){for(var n=e.querySelectorAll(".step"),r=n.length-1;r>=0;r--)if(n[r]===t)return r-1>=0?n[r-1]:n[n.length-1]})(t.target).classList.add("prev"),function(t){for(var n=e.querySelectorAll(".step"),r=0;r<n.length;r++)if(n[r]===t)return r+1<n.length?n[r+1]:n[0]}(t.target).classList.add("next"),void 0!==n&&n.classList.remove("prev"),void 0!==r&&r.classList.remove("next")}))}(document),function(e,t){"use strict";var n,r=function(){e.body.classList.add("impress-mouse-timeout")},i=function(){n&&t.clearTimeout(n),e.body.classList.remove("impress-mouse-timeout"),n=t.setTimeout(r,3e3)};e.addEventListener("impress:init",(function(r){var o=r.detail.api.lib.gc;o.addEventListener(e,"mousemove",i),o.addEventListener(e,"click",i),o.addEventListener(e,"touch",i),i(),o.pushCallback((function(){t.clearTimeout(n),e.body.classList.remove("impress-mouse-timeout")}))}),!1)}(document,window),function(e){"use strict";e.addEventListener("impress:init",(function(t){var n=t.detail.api,r=n.lib.gc,i=n.lib.util,o=function(e){return!(e.altKey||e.ctrlKey||e.metaKey)&&(9===e.keyCode||!e.shiftKey&&(e.keyCode>=32&&e.keyCode<=34||e.keyCode>=37&&e.keyCode<=40||void 0))};r.addEventListener(e,"keydown",(function(e){o(e)&&e.preventDefault()}),!1),r.addEventListener(e,"keyup",(function(e){if(o(e)){if(e.shiftKey)switch(e.keyCode){case 9:n.prev()}else switch(e.keyCode){case 33:case 37:case 38:n.prev(e);break;case 9:case 32:case 34:case 39:case 40:n.next(e)}e.preventDefault()}}),!1),r.addEventListener(e,"click",(function(t){var r=t.target;try{for(;"A"!==r.tagName&&r!==e.documentElement;)r=r.parentNode;if("A"===r.tagName){var i=r.getAttribute("href");i&&"#"===i[0]&&(r=e.getElementById(i.slice(1)))}n.goto(r)&&(t.stopImmediatePropagation(),t.preventDefault())}catch(e){if(e instanceof TypeError&&"target is null"===e.message)return;throw e}}),!1),r.addEventListener(e,"click",(function(t){var r=t.target;try{for(;(!r.classList.contains("step")||r.classList.contains("active"))&&r!==e.documentElement;)r=r.parentNode;n.goto(r)&&t.preventDefault()}catch(e){if(e instanceof TypeError&&"target is null"===e.message)return;throw e}}),!1),i.triggerEvent(e,"impress:help:add",{command:"Left & Right",text:"Previous & Next step",row:1})}),!1)}(document),function(e){"use strict";var t,n,r,i,o,s,a,l=[],d=function(t,n,r){var i=e.createEvent("CustomEvent");i.initCustomEvent(n,!0,!0,r),t.dispatchEvent(i)},u=function(t){var n=e.createElement("div");return n.innerHTML=t,n.firstChild},c=function(e){if(e.title)return e.title;if(e.id.startsWith("step-"))for(var t of e.innerText.split("\n"))if((t=t.trim()).length>0)return t.length<=40?t:t.slice(0,37)+"...";return e.id},p=function(){for(var e="",t=0;t<i.length;t++)l.indexOf(i[t])<0&&(e=e+'<option value="'+i[t].id+'">'+c(i[t])+"</option>\n");return e};e.addEventListener("impress:navigation-ui:hideStep",(function(e){l.push(e.target),s&&(s.innerHTML=p())}),!1),e.addEventListener("impress:init",(function(l){(t=e.querySelector("#impress-toolbar"))&&function(e){var l=(n=e.detail.api).lib.gc;r=e.target,i=r.querySelectorAll(".step");var c='<select id="impress-navigation-ui-select" title="Go to" class="impress-navigation-ui">\n'+p()+"</select>";(o=u('<button id="impress-navigation-ui-prev" title="Previous" class="impress-navigation-ui"><</button>')).addEventListener("click",(function(){n.prev()})),(s=u(c)).addEventListener("change",(function(e){n.goto(e.target.value)})),l.addEventListener(r,"impress:steprefresh",(function(e){i=r.querySelectorAll(".step"),s.innerHTML="\n"+p(),s.value=e.target.id})),(a=u('<button id="impress-navigation-ui-next" title="Next" class="impress-navigation-ui">></button>')).addEventListener("click",(function(){n.next()})),d(t,"impress:toolbar:appendChild",{group:0,element:o}),d(t,"impress:toolbar:appendChild",{group:0,element:s}),d(t,"impress:toolbar:appendChild",{group:0,element:a})}(l)}),!1)}(document),function(e){"use strict";var t,n=[],r=function(){n=[];for(var e=t.querySelectorAll(".step"),r=0;r<e.length;r++)n[r+1]=e[r].id};e.addEventListener("impress:init",(function(e){t=e.target,r(),e.detail.api.lib.gc.pushCallback((function(){n=[],i&&(i.style.width=""),o&&(o.innerHTML="")}))}));var i=e.querySelector("div.impress-progressbar div"),o=e.querySelector("div.impress-progress");function s(e){var t=n.indexOf(e);if(null!==i){var r=100/(n.length-1)*t;i.style.width=r.toFixed(2)+"%"}null!==o&&(o.innerHTML=t+"/"+(n.length-1))}null===i&&null===o||(e.addEventListener("impress:stepleave",(function(e){s(e.detail.next.id)})),e.addEventListener("impress:steprefresh",(function(e){r(),s(e.target.id)})))}(document),function(e,t){"use strict";var n,r,i,o={},s=function(o,s){var a=o.dataset;s||(s={x:0,y:0,z:0,rotate:{x:0,y:0,z:0,order:"xyz"},relative:{position:"absolute",x:0,y:0,z:0,rotate:{x:0,y:0,z:0,order:"xyz"}}});var l=s;if(a.relTo)if(l=e.getElementById(a.relTo))if(o.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_PRECEDING){s.x=i(l.getAttribute("data-x")),s.y=i(l.getAttribute("data-y")),s.z=i(l.getAttribute("data-z"));var d=l.getAttribute("data-rel-position")||"absolute";"relative"!==d?(s.rotate={x:0,y:0,z:0,order:"xyz"},s.relative={position:"absolute",x:0,y:0,z:0,rotate:{x:0,y:0,z:0,order:"xyz"}}):(s.rotate.y=r(l.getAttribute("data-rotate-y")),s.rotate.x=r(l.getAttribute("data-rotate-x")),s.rotate.z=r(l.getAttribute("data-rotate-z")||l.getAttribute("data-rotate")),s.relative={position:d,x:i(l.getAttribute("data-rel-x"),0),y:i(l.getAttribute("data-rel-y"),0),z:i(l.getAttribute("data-rel-z"),0),rotate:{x:i(l.getAttribute("data-rel-rotate-x"),0),y:i(l.getAttribute("data-rel-rotate-y"),0),z:i(l.getAttribute("data-rel-rotate-z"),0),order:l.getAttribute("data-rel-rotate-order")||"xyz"}})}else t.console.error('impress.js rel plugin: Step "'+a.relTo+'" is not defined *before* the current step. Referencing is limited to previously defined steps. Please check your markup. Ignoring data-rel-to attribute of this step. Have a look at the documentation for how to create relative positioning to later shown steps with the help of the goto plugin.');else t.console.warn('impress.js rel plugin: "'+a.relTo+'" is not a valid step in this impress.js presentation. Please check your markup. Ignoring data-rel-to attribute of this step.');var u=!0;o.hasAttribute("data-rel-reset")&&(s.relative={position:s.relative.position,x:0,y:0,z:0,rotate:{x:0,y:0,z:0,order:"xyz"}},"all"===a.relReset&&(u=!1));var c={x:i(a.x,s.x),y:i(a.y,s.y),z:i(a.z,s.z),rotate:{x:r(a.rotateX,0),y:r(a.rotateY,0),z:r(a.rotateZ||a.rotate,0),order:a.rotateOrder||"xyz"},relative:{position:a.relPosition||s.relative.position,x:i(a.relX,s.relative.x),y:i(a.relY,s.relative.y),z:i(a.relZ,s.relative.z),rotate:{x:r(a.relRotateX,s.relative.rotate.x),y:r(a.relRotateY,s.relative.rotate.y),z:r(a.relRotateZ,s.relative.rotate.z),order:a.rotateOrder||"xyz"}}},p=c.relative;return"relative"===c.relative.position&&u&&((p=n.lib.rotation.translateRelative(c.relative,s.rotate)).rotate.x-=c.rotate.x,p.rotate.y-=c.rotate.y,p.rotate.z-=c.rotate.z),void 0!==a.x&&(p.x=c.relative.x=0),void 0!==a.y&&(p.y=c.relative.y=0),void 0!==a.z&&(p.z=c.relative.z=0),void 0===a.rotateX&&u||(p.rotate.x=c.relative.rotate.x=0),void 0===a.rotateY&&u||(p.rotate.y=c.relative.rotate.y=0),void 0===a.rotateZ&&void 0===a.rotate&&u||(p.rotate.z=c.relative.rotate.z=0),c.x=c.x+p.x,c.y=c.y+p.y,c.z=c.z+p.z,c.rotate.x=c.rotate.x+p.rotate.x,c.rotate.y=c.rotate.y+p.rotate.y,c.rotate.z=c.rotate.z+p.rotate.z,c};t.impress.addPreInitPlugin((function(e,t){r=(n=t).lib.util.toNumber,i=n.lib.util.toNumberAdvanced;var a,l=e.querySelectorAll(".step");o[e.id]=[];for(var d=0;d<l.length;d++){var u=l[d];o[e.id].push({el:u,x:u.getAttribute("data-x"),y:u.getAttribute("data-y"),z:u.getAttribute("data-z"),relX:u.getAttribute("data-rel-x"),relY:u.getAttribute("data-rel-y"),relZ:u.getAttribute("data-rel-z"),rotateX:u.getAttribute("data-rotate-x"),rotateY:u.getAttribute("data-rotate-y"),rotateZ:u.getAttribute("data-rotate-z"),rotate:u.getAttribute("data-rotate"),relRotateX:u.getAttribute("data-rel-rotate-x"),relRotateY:u.getAttribute("data-rel-rotate-y"),relRotateZ:u.getAttribute("data-rel-rotate-z"),relPosition:u.getAttribute("data-rel-position"),rotateOrder:u.getAttribute("data-rotate-order")});var c=s(u,a);u.setAttribute("data-x",c.x),u.setAttribute("data-y",c.y),u.setAttribute("data-z",c.z),u.setAttribute("data-rotate-x",c.rotate.x),u.setAttribute("data-rotate-y",c.rotate.y),u.setAttribute("data-rotate-z",c.rotate.z),u.setAttribute("data-rotate-order",c.rotate.order),u.setAttribute("data-rel-position",c.relative.position),u.setAttribute("data-rel-x",c.relative.x),u.setAttribute("data-rel-y",c.relative.y),u.setAttribute("data-rel-z",c.relative.z),u.setAttribute("data-rel-rotate-x",c.relative.rotate.x),u.setAttribute("data-rel-rotate-y",c.relative.rotate.y),u.setAttribute("data-rel-rotate-z",c.relative.rotate.z),a=c}})),e.addEventListener("impress:init",(function(e){var t=e.target;e.detail.api.lib.gc.pushCallback((function(){for(var e,n=o[t.id],r=[["x","relX"],["y","relY"],["z","relZ"],["rotate-x","relRotateX"],["rotate-y","relRotateY"],["rotate-z","relRotateZ"],["rotate-order","relRotateOrder"]];e=n.pop();)for(var i=0;i<r.length;i++)null!==e[r[i][1]]&&(null===e[r[i][0]]?e.el.removeAttribute("data-"+r[i][0]):e.el.setAttribute("data-"+r[i][0],e[r[i][0]]));delete o[t.id]}))}),!1)}(document,window),function(e,t){"use strict";e.addEventListener("impress:init",(function(n){var r=n.detail.api;r.lib.gc.addEventListener(t,"resize",r.lib.util.throttle((function(){r.goto(e.querySelector(".step.active"),500)}),250),!1)}),!1)}(document,window),function(e,t){"use strict";var n;e.addEventListener("impress:init",(function(e){n=e.detail.api.lib.util}),!1);var r=function(t){t&&t.target&&t.detail.next.classList.contains("skip")&&("next"===t.detail.reason?(t.detail.next=function(t){for(var n=e.querySelectorAll(".step"),r=0;r<n.length;r++)if(n[r]===t)return r+1<n.length?n[r+1]:n[0]}(t.detail.next),r(t)):"prev"===t.detail.reason&&(t.detail.next=function(t){for(var n=e.querySelectorAll(".step"),r=n.length-1;r>=0;r--)if(n[r]===t)return r-1>=0?n[r-1]:n[n.length-1]}(t.detail.next),r(t)),t.detail.transitionDuration=n.toNumber(t.detail.next.dataset.transitionDuration,t.detail.transitionDuration))};t.impress.addPreStepLeavePlugin(r,1)}(document,window),function(e,t){"use strict";t.impress.addPreStepLeavePlugin((function(e){if(e&&e.target)return(!e.target.classList.contains("stop")||"next"!==e.detail.reason)&&void 0}),2)}(document,window),function(e,t){"use strict";var n=function(t,n,r){var i=e.createEvent("CustomEvent");i.initCustomEvent(n,!0,!0,r),t.dispatchEvent(i)},r=null;e.addEventListener("impress:stepenter",(function(e){r=e.target}),!1);var i=function(e){var t=e.querySelectorAll(".substep");if(t.length>0){var n=o(t),r=e.querySelectorAll(".substep-visible");return s(n,r)}},o=function(e){var t=Array.from(e);return t.filter(e=>e.dataset.substepOrder).sort((e,t)=>{var n=e.dataset.substepOrder,r=t.dataset.substepOrder;return parseInt(n)-parseInt(r)}).concat(t.filter(e=>void 0===e.dataset.substepOrder))},s=function(e,t){if(t.length<e.length){for(var n=0;n<e.length;n++)e[n].classList.remove("substep-active");for(var r,i,o=t.length;o<e.length&&(!i||i===e[o].dataset.substepOrder);o++)i=(r=e[o]).dataset.substepOrder,r.classList.add("substep-visible"),r.classList.add("substep-active");return r}},a=function(e){var t=e.querySelectorAll(".substep"),n=e.querySelectorAll(".substep-visible"),r=o(n);if(t.length>0)return l(r)},l=function(e){if(e.length>0){for(var t=-1,n=0;n<e.length;n++)e[n].classList.contains("substep-active")&&(t=n),e[n].classList.remove("substep-active");t>0&&e[t-1].classList.add("substep-active");var r=e[e.length-1];return r.classList.remove("substep-visible"),t>0&&e[t-1].dataset.substepOrder===e[t].dataset.substepOrder?(e.pop(),l(e)):r}};t.impress.addPreStepLeavePlugin((function(e){if(e&&e.target){var t,r=e.target;return"next"===e.detail.reason&&(t=i(r))?(n(r,"impress:substep:stepleaveaborted",{reason:"next",substep:t}),n(r,"impress:substep:enter",{reason:"next",substep:t}),!1):"prev"===e.detail.reason&&(t=a(r))?(n(r,"impress:substep:stepleaveaborted",{reason:"prev",substep:t}),n(r,"impress:substep:leave",{reason:"prev",substep:t}),!1):void 0}}),1),e.addEventListener("impress:stepenter",(function(e){for(var t=e.target.querySelectorAll(".substep-visible"),n=0;n<t.length;n++)t[n].classList.remove("substep-visible")}),!1),e.addEventListener("impress:substep:show",(function(){i(r)}),!1),e.addEventListener("impress:substep:hide",(function(){a(r)}),!1)}(document,window),function(e,t){"use strict";var n=0,r=0,i=0,o=t.innerWidth/20;e.addEventListener("touchstart",(function(e){r=n=e.touches[0].clientX})),e.addEventListener("touchmove",(function(e){var o=e.touches[0].clientX,s=o-n;i=r-o,r=o,t.impress().swipe(s/t.innerWidth)})),e.addEventListener("touchend",(function(){var s=r-n;Math.abs(s)>t.innerWidth/5&&s*i<=0?s>t.innerWidth/5&&i<=0?t.impress().prev():s<-t.innerWidth/5&&i>=0&&t.impress().next():Math.abs(i)>o?i<-o?t.impress().prev():i>o&&t.impress().next():t.impress().goto(e.querySelector("#impress .step.active"))})),e.addEventListener("touchcancel",(function(){t.impress().goto(e.querySelector("#impress .step.active"))}))}(document,window),function(e){"use strict";var t=e.getElementById("impress-toolbar"),n=[],r=function(e){for(var t=e+1;!n[t]&&t<n.length;)t++;if(t<n.length)return t};t&&(t.addEventListener("impress:toolbar:appendChild",(function(i){(function(i){var o="impress-toolbar-group-"+i;if(!n[i]){n[i]=e.createElement("span"),n[i].id=o;var s=r(i);void 0===s?t.appendChild(n[i]):t.insertBefore(n[i],n[s])}return n[i]})(i.detail.group).appendChild(i.detail.element)})),t.addEventListener("impress:toolbar:insertBefore",(function(e){t.insertBefore(e.detail.element,e.detail.before)})),t.addEventListener("impress:toolbar:removeWidget",(function(e){t.removeChild(e.detail.remove)})),e.addEventListener("impress:init",(function(e){e.detail.api.lib.gc.pushCallback((function(){t.innerHTML="",n=[]}))})))}(document);
|
|
//# sourceMappingURL=js/impress.min.js.map
|