function e$(n){return document.getElementById(n)}function getKeyCode(n){return window.event?n.keyCode:n.which}function cancelEvent(n){return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function isVisible(n){return n.is(":visible")}var log=Function.prototype.bind.call(console.log,console);jQuery.fn.tagName=function(){return this.prop("tagName")};$.urlParam=function(n){var t=new RegExp("[?&]"+n+"=([^&#]*)").exec(window.location.href);return t==null?null:t[1]||0};String.prototype.startsWith=function(n){return this.length>=n.length?n==this.substring(0,n.length):!1};String.prototype.endsWith=function(n){if(this.length>=n.length){var t=this,i=t.length-n.length;return n==t.substring(i,i+n.length)}return!1};const Page={prevSection:null,scrollParent:"html, body",init:function(n){this.initMenu(n);this.initNavbarToogle();this.initNavbarAnimate();this.initGotoTop();this.initPageLinks(n);this.initSectionLinks();this.initMailLinks();this.initShowMeLinks();TabView.init();Checkbox.init();LayoutResize.init();var t=$.urlParam("sec");t&&this.scrollToSection("#sec"+t)},initMenu:function(n){log("initMenu: "+n);var t=e$(n);t&&$(t).addClass("active")},initNavbarToogle:function(){var n=$(".navbar-toggle");n.each(function(){var n=$(this),t=$(n.attr("data-target"));t.find(".navbar-nav > li").length==0&&n.hide()});n.click(function(){var t=$(this),n=$(t.attr("data-target")),i=n.hasClass("open");i?n.slideUp(300,function(){n.removeClass("open")}):n.slideDown(300,function(){n.addClass("open")});t.attr("aria-expanded",i)})},initNavbarAnimate:function(){var t=$("#navbar-main"),n=t.find(".navbar-link, .navbar-link img, .navbar-toggle, .navbar-nav-wrapper, .navbar-nav");n=n.add(".nav-indicator span");setTimeout(function(){n.addClass("animate")},500)},initGotoTop:function(){var n=$("#goto-top");$(document).on("scroll",function(){var i=$(window),t=i.scrollTop()>250,r=isVisible(n);t!=r&&(t?n.fadeIn():n.fadeOut())});n.on("click",function(){return $("html, body").stop().animate({scrollTop:0},800),!1})},initPageLinks:function(n){var t,i;n=="mi.home"?(t="a.pageLink",i="a.homeLink"):(t="a.homeLink",i="a.pageLink");$(t).click(function(){var t=this,i=t.getAttribute("data-target"),n;return i&&(n=e$(i),n&&$(n).addClass("active")),$("#navbar-main").removeClass("navbar-main-style"),window.setTimeout(function(){Page.execPageLink(t)},300),!1})},execPageLink:function(n){if(n==null||n.href==null){alert(anchor_id+" is not a valid anchor element!");return}window.location=n.href},initSectionLinks:function(){$("a.sectionLink").bind("click.smoothscroll",function(n){var i,t,r;n.preventDefault();i=this.hash;t=$("#navbar-sub .navbar-toggle:visible");t.length>0&&(r=$(t.data("target")),r.hasClass("open")&&t.click());Page.scrollToSection(i)})},initMailLinks:function(){$("a.mailLink").each(function(){var n=$(this),t=n.data("target");n.text(t+"@empire-db.apache.org");n.click(function(){var n=$(this),t="mailto:"+n.text();window.location=t})})},initShowMeLinks:function(){$("a.showMe").each(function(){var n=$(this);n.click(function(){var t=$(this),n=t.closest(".content-block");(n.length==0&&(n=t.closest(".content")),n.length!=0)&&(t.hide(),n.find(".optional").slideDown(500,function(){n.find("a.hideMe").show()}))})});$("a.hideMe").each(function(){var n=$(this);n.click(function(){var t=$(this),n=t.closest(".content-block");(n.length==0&&(n=t.closest(".content")),n.length!=0)&&(Page.scrollIntoView(n),n.find(".optional").slideUp(500,function(){t.hide();n.find("a.showMe").show()}))});n.hide()})},scrollToSection:function(n){if($target=$(n),$target.length==0){alert("Unknown target:"+n);return}this.prevSection&&this.prevSection.removeClass("active");this.prevSection=null;var i=n.replace("#","mi."),t=e$(i);t&&(this.prevSection=$(t),this.prevSection.addClass("active"));$("html, body").stop().animate({scrollTop:$target.offset().top-121},900)},scrollToTop:function(){var n=$(Page.scrollParent);n.animate({scrollTop:0})},scrollToBottom:function(){var n=$(Page.scrollParent),t=n.children().first(),i=$(t).outerHeight(!0);n.animate({scrollTop:Math.max(i-$(n).height(),0)})},scrollIntoView:function(n){var t=$(Page.scrollParent),i=$(n).offset().top-121;if(!(i>t.scrollTop()))return t.stop().animate({scrollTop:i},600),!1},reload:function(){var n=window.location;window.location=n},resizeContent:function(){var t=$(window).height(),i=$("#pscroll"),n=t-i.offset().top;n<10&&(n=10);i.height(n);Popup.open&&Popup.repositionAll(t)},print:function(){var n=window.open("","Druckansicht","toolbar=yes, location=no, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, width=1030, height=600");n.document.open();n.document.write("");n.document.write('