"use strict";!function(e){function r(r){var o,n,i,t,s=window.location.hash;s.match(/^#GoSlide\d+$/)?(t=e(".slideShowLastSlide"),n=parseInt(t.attr("id").replace(/GoSlide/,""),10),o=parseInt(s.replace(/^#GoSlide/,"","g"),10),isNaN(o)&&(o=0),void 0===r||(0===r?o=1:r===Number.MAX_VALUE?o=n:o+=r),o<1&&(o=1),o>n&&(o=n),i=e("div"+(s="#GoSlide"+o))):i=e(".slideShowFirstSlide"),i.length&&(e(".slideShowPane").removeClass("slideShowCurrentSlide"),i.addClass("slideShowCurrentSlide"),window.location.hash===s?i[0].scrollIntoView(1):window.location.hash=s)}e((function(){r(),e(document).on("keydown",(function(o){switch(o.key){case"Escape":return window.location.href=window.location.href.replace(/\?.*$/,""),!1;case"PageUp":return r(-10),!1;case"PageDown":return r(10),!1;case"End":return r(Number.MAX_VALUE),!1;case"Home":return r(0),!1;case"ArrowLeft":return r(-1),!1;case" ":case"ArrowRight":return r(1),!1;case"ArrowUp":return e(".slideShowCurrentSlide").scrollTo("-=21px",0,{axis:"y"}),!1;case"ArrowDown":return e(".slideShowCurrentSlide").scrollTo("+=21px",0,{axis:"y"}),!1}})),e(".slideShowFirst").on("click",(function(){return r(0),!1})),e(".slideShowLast").on("click",(function(){return r(Number.MAX_VALUE),!1})),e(".slideShowNext").on("click",(function(){return r(1),!1})),e(".slideShowPrev").on("click",(function(){return r(-1),!1}))}))}(jQuery);
