text: /*!
   * Start Bootstrap -  v1.0.0 (https://github.com/nupfel/nupfel.github.io#readme)
   * Copyright 2013-2017 Tobias Kirschstein
   * Licensed under MIT (https://github.com/nupfel/nupfel.github.io/blob/master/LICENSE)
   */
  !function(t){"use strict";function e(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function n(t,n){this.el=t,this.options=e({},this.options),e(this.options,n),this.menus=[].slice.call(this.el.querySelectorAll(".menu__level")),this.current=0,this._init()}var i={animations:Modernizr.cssanimations},r={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"},s=r[Modernizr.prefixed("animation")],a=function(t,e){var n=function(t){if(i.animations){if(t.target!=this)return;this.removeEventListener(s,n)}e&&"function"==typeof e&&e.call()};i.animations?t.addEventListener(s,n):n()};n.prototype.options={breadcrumbsCtrl:!0,initialBreadcrumb:"all",backCtrl:!0,itemsDelayInterval:60,direction:"r2l",onItemClick:function(t,e){return!1}},n.prototype._init=function(){this.menusArr=[];var t=this;this.menus.forEach(function(e,n){var i={menuEl:e,menuItems:[].slice.call(e.querySelectorAll(".menu__item"))};t.menusArr.push(i),n===t.current&&classie.add(e,"menu__level--current")}),this.options.backCtrl&&(this.backCtrl=document.createElement("button"),this.backCtrl.className="menu__back menu__back--hidden",this.backCtrl.setAttribute("aria-label","Go back"),this.backCtrl.innerHTML='<span class="icon icon--arrow-left"></span>',this.el.insertBefore(this.backCtrl,this.el.firstChild)),t.options.breadcrumbsCtrl&&(this.breadcrumbsCtrl=document.createElement("nav"),this.breadcrumbsCtrl.className="menu__breadcrumbs",this.el.insertBefore(this.breadcrumbsCtrl,this.el.firstChild),this._addBreadcrumb(0)),this._initEvents()},n.prototype._initEvents=function(){for(var t=this,e=0,n=this.menusArr.length;e<n;++e)this.menusArr[e].menuItems.forEach(function(e,n){e.querySelector("a").addEventListener("click",function(e){var i=e.target.getAttribute("data-submenu"),r=e.target.innerHTML,s=t.el.querySelector('ul[data-menu="'+i+'"]');if(i&&s)e.preventDefault(),t._openSubMenu(s,n,r);else{var a=t.el.querySelector(".menu__link--current");a&&classie.remove(t.el.querySelector(".menu__link--current"),"menu__link--current"),classie.add(e.target,"menu__link--current"),t.options.onItemClick(e,r)}})});this.options.backCtrl&&this.backCtrl.addEventListener("click",function(){t._back()})},n.prototype._openSubMenu=function(t,e,n){return!this.isAnimating&&(this.isAnimating=!0,this.menusArr[this.menus.indexOf(t)].backIdx=this.current,this.menusArr[this.menus.indexOf(t)].name=n,this._menuOut(e),void this._menuIn(t,e))},n.prototype._back=function(){if(this.isAnimating)return!1;this.isAnimating=!0,this._menuOut();var t=this.menusArr[this.menusArr[this.current].backIdx].menuEl;this._menuIn(t),this.options.breadcrumbsCtrl&&this.breadcrumbsCtrl.removeChild(this.breadcrumbsCtrl.lastElementChild)},n.prototype._menuOut=function(t){var e=this,n=this.menusArr[this.current].menuEl,i="undefined"==typeof t;this.menusArr[this.current].menuItems.forEach(function(n,r){n.style.WebkitAnimationDelay=n.style.animationDelay=i?parseInt(r*e.options.itemsDelayInterval)+"ms":parseInt(Math.abs(t-r)*e.options.itemsDelayInterval)+"ms"}),"r2l"===this.options.direction?classie.add(n,i?"animate-outToRight":"animate-outToLeft"):classie.add(n,i?"animate-outToLeft":"animate-outToRight")},n.prototype._menuIn=function(t,e){var n=this,i=this.menusArr[this.current].menuEl,r="undefined"==typeof e,s=this.menus.indexOf(t),o=this.menusArr[s].menuItems,m=o.length;o.forEach(function(o,u){o.style.WebkitAnimationDelay=o.style.animationDelay=r?parseInt(u*n.options.itemsDelayInterval)+"ms":parseInt(Math.abs(e-u)*n.options.itemsDelayInterval)+"ms";var l=e<=m/2||r?m-1:0;u===l&&a(o,function(){"r2l"===n.options.direction?(classie.remove(i,r?"animate-outToRight":"animate-outToLeft"),classie.remove(t,r?"animate-inFromLeft":"animate-inFromRight")):(classie.remove(i,r?"animate-outToLeft":"animate-outToRight"),classie.remove(t,r?"animate-inFromRight":"animate-inFromLeft")),classie.remove(i,"menu__level--current"),classie.add(t,"menu__level--current"),n.current=s,r?0===n.current&&n.options.backCtrl&&classie.add(n.backCtrl,"menu__back--hidden"):(n.options.backCtrl&&classie.remove(n.backCtrl,"menu__back--hidden"),n._addBreadcrumb(s)),n.isAnimating=!1})}),"r2l"===this.options.direction?classie.add(t,r?"animate-inFromLeft":"animate-inFromRight"):classie.add(t,r?"animate-inFromRight":"animate-inFromLeft")},n.prototype._addBreadcrumb=function(t){if(!this.options.breadcrumbsCtrl)return!1;var e=document.createElement("a");e.innerHTML=t?this.menusArr[t].name:this.options.initialBreadcrumb,this.breadcrumbsCtrl.appendChild(e);var n=this;e.addEventListener("click",function(i){if(i.preventDefault(),!e.nextSibling||n.isAnimating)return!1;n.isAnimating=!0,n._menuOut();var r=n.menusArr[t].menuEl;n._menuIn(r);for(var s;s=e.nextSibling;)n.breadcrumbsCtrl.removeChild(s)})},t.MLMenu=n}(window);