// source --> https://roter-stern.berlin/wp-content/themes/twentytwelve-child/js/childtheme-mw.js?ver=6.9.4 
jQuery(function($) {

	$( document ).ready( function() {



		// Betriebssystem erkennen -------------------------------
			var os = "";
			if (navigator.userAgent.indexOf("Win") != -1) os = "win";
			else if (navigator.userAgent.indexOf("Mac") != -1) os = "mac";
			else if (navigator.userAgent.indexOf("Linux") != -1) os = "linux";
			else if (navigator.userAgent.indexOf("Android") != -1) os = "andr";
			else if (navigator.userAgent.indexOf("like Mac") != -1) os = "ios"; // iOS Geräte melden sich oft als "like Mac"
		
		// Browser erkennen
			var browser = "";
			if (navigator.userAgent.indexOf("Chrome") != -1 && navigator.userAgent.indexOf("Edge") == -1 && navigator.userAgent.indexOf("OPR") == -1) browser = "chrome";
			else if (navigator.userAgent.indexOf("Safari") != -1 && navigator.userAgent.indexOf("Chrome") == -1) browser = "safari";
			else if (navigator.userAgent.indexOf("Firefox") != -1) browser = "firefox";
			else if (navigator.userAgent.indexOf("MSIE") != -1 || !!document.documentMode == true) browser = "ie"; // für Internet Explorer
			else if (navigator.userAgent.indexOf("Edge") != -1 || navigator.userAgent.indexOf("Edg") != -1) browser = "edge"; // für alte und neue Edge-Browser
			else if (navigator.userAgent.indexOf("OPR") != -1) browser = "opera";
			
		// Klassen zum Body hinzufügen
			if (os) $("body").addClass(os);
			if (browser) $("body").addClass(browser);
			


		// Scroll Animation Anker Links -------------------------------
			// Funktion für Scroll-Animation
			function scrollToAnchor(target) {
				if (target.length) {
				setTimeout(function() {
					$('html, body').animate({
					scrollTop: target.offset().top - 150
					}, 800);  // Dauer der Animation (1000ms = 1 Sekunde)
				}, 100);  // Verzögerung von 0,2 Sekunden (200ms)
				}
			}

			// Klick auf Links mit einem Anker
			$('a[href^="#"]').on('click', function(event) {
				event.preventDefault();  // Standard-Verhalten unterbinden

				var target = $(this.getAttribute('href'));
				
				scrollToAnchor(target);  // Scroll zur Zielposition
			});

			// Verhindern, dass der Browser direkt zu einem Anker springt
			if (window.location.hash) {
				// Temporär zum Anfang der Seite scrollen
				window.scrollTo(0, 0);

				var target = $(window.location.hash);
				scrollToAnchor(target);  // Scroll zur Zielposition nach 0,2 Sekunden
			}


	// Search Header (Elementor)) -----------------------------------------
		$('#header-search-trigger').on('click', function(){
			$('#header-search-form').toggleClass('vsbl');
			if ( $('#header-search-form').hasClass('vsbl')) {
				$('#header-search-form input').focus();
			}
		});


	// Header Fixed -----------------------------------------
		var headerHeight = $(".header-container").outerHeight();
		$("#main").css("margin-top", headerHeight);
		
		$(window).resize(function(){
			var headerHeight = $(".header-container").outerHeight();
			$("#main").css("margin-top", headerHeight);
		});

		// Scroll change Header size
			if ( $(this).scrollTop() > 200 ){
				$(".header-container").addClass("stickyHeader");
			}
			else {
				$(".header-container").removeClass("stickyHeader");
			}
			$(window).scroll(function () {
				if ( $(this).scrollTop() > 200 ){
					$(".header-container").addClass("stickyHeader");
				}
				else {
					$(".header-container").removeClass("stickyHeader");
				}
			});



	// Header Shadow -----------------------------------------
		if ( $(this).scrollTop() > 50 ){
			$("#masthead").addClass("boxShadow");
		}
		else {
			$("#masthead").removeClass("boxShadow");
		}
		$(window).scroll(function () {
			if ( $(this).scrollTop() > 50 ){
				$("#masthead").addClass("boxShadow");
			}
			else {
				$("#masthead").removeClass("boxShadow");
			}
		});


	// Mega Menu -----------------------------------------
		function megaMenuDesktopTopPosition(){
			$('.menu-wrapper-desktop ul:is(.menu, .nav-menu) li.mega-menu > ul.sub-menu').each(function(){
				let headerHeight = $(".header-container").outerHeight() - 2;
				$(this).css('top', headerHeight + 'px');
			});
		}
		megaMenuDesktopTopPosition();
		setTimeout(function(){
			megaMenuDesktopTopPosition();
		}, 550);
		$(window).resize(function(){
			megaMenuDesktopTopPosition();
			setTimeout(function(){
				megaMenuDesktopTopPosition();
			}, 550);
		});
		$(window).scroll(function(){
			megaMenuDesktopTopPosition();
			setTimeout(function(){
				megaMenuDesktopTopPosition();
			}, 550);
		});
		



	// Search Bar in Header -----------------------------------------
		// Toggle Class
			$("#searchbox").on("click", function(){
				$(".after-header").toggleClass("search-toggled-on");
				if ( $(".after-header").hasClass("search-toggled-on") ){
					$(".after-header input.search-field").focus();
				}
				$('.menuToggleBtn').removeClass("menuToggle");
				$('.menuToggleBtn').removeClass("toggled-on");
				$(".menu-wrapper").removeClass("menuToggleOn");
				$("html").removeClass("noscroll");
			});
		// Close search form
			$(".close_search").on("click", function(){
				$(".after-header").toggleClass("search-toggled-on");
			});



	// Responsive Menu Trigger Submenu -----------------------------------------

		$('#masthead ul:is(.menu, .nav-menu)').each(function(){
			$(this).find('li.menu-item-has-children').each(function(){
				$(this).children('a').each(function(){
					let thisTextMenuItem = $(this).text();
					$(this).attr('aria-expanded', 'false');
					$("<button class='trigger' aria-expanded='false'><div><span class='visuallyhidden'>show submenu for \"" + thisTextMenuItem + "\"</span></div></button>").insertAfter(this);
				});
			});
		});

		// Trigger Submenu Handler
			$('ul:is(.menu, .nav-menu) li.menu-item-has-children button.trigger').on('click', function(){
				if( !$(this).parent().hasClass('active') ){
					$(this).parent().addClass('active');
					$(this).addClass('triggerOn');
					$(this).attr('aria-expanded', 'true');
					$(this).prev().attr('aria-expanded', 'true');
				} else {
					$(this).parent().removeClass('active');
					$(this).removeClass('triggerOn');
					$(this).attr('aria-expanded', 'false');
					$(this).prev().attr('aria-expanded', 'false');
				}
				megaMenuDesktopTopPosition();
				updateHeightOfTriggerButtons();
			});

		// Height of Trigger Buttons
			function updateHeightOfTriggerButtons(){
				$('ul:is(.menu, .nav-menu) li.menu-item-has-children button.trigger').each(function(){
					let linkHeightBeforeTrigger = $(this).prev().outerHeight();
					// console.log('linkHeightBeforeTrigger: ' + linkHeightBeforeTrigger);
					$(this).css('height', updateHeightOfTriggerButtons + 'px');
				});
			}
			updateHeightOfTriggerButtons();


		// Insert Trigger Button
			// $("<a class='trigger'><div></div></a>").insertBefore("#site-navigation li.menu-item-has-children ul.sub-menu");

        // Add Hover Class to Sub Menu Layers
		// Hover Action (Desktop)
			$(".menu-wrapper-desktop li.menu-item-has-children").on("mouseenter", function(){
				$(this).toggleClass("active");
				$(this).children('.trigger').toggleClass("triggerOn");
			});
			$(".menu-wrapper-desktop li.menu-item-has-children").on("mouseleave", function(){
				$(this).toggleClass("active");
				$(this).children('.trigger').toggleClass("triggerOn");
			});
			$("#site-navigation").on("mouseleave", function(){
				$(".menu-wrapper-desktop li.menu-item-has-children").removeClass("active");
				$('.menu-wrapper-desktop .trigger').removeClass("triggerOn");
			});

		// Click Action (Smartphone)
			/* $(".menu-wrapper-mobile li.menu-item-has-children > .trigger").on("click", function(){
				$(this).parent().toggleClass("active");
				$(this).toggleClass("triggerOn");
			}); */

		// Window resize
			$(window).resize(function(){
				if ( $(window).width() > 859 ){
					$("#site-navigation .menu-wrapper").removeClass("menuToggleOn");
					$("#site-navigation .menu-wrapper").removeClass("toggled-on");
					$("button.menuToggleBtn").removeClass("menuToggle");
					$("button.menuToggleBtn").removeClass("toggled-on");
					$("html").removeClass("noscroll");
				}
				updateHeightOfTriggerButtons();
				updateMaxHeightMobileMenu();
			});

		// Disable Page Scroll when Mobile Menu is on
			$("#site-navigation button.menuToggleBtn").on("click", function(){
				$(this).toggleClass("menuToggle");
				$(".menu-wrapper").toggleClass("menuToggleOn");
				if ( $("#site-navigation .menu-wrapper").hasClass("menuToggleOn") ){
					$("html").addClass("noscroll"); // Disable Page Scroll when Mobile Menu is on
				} else {
					$("html").removeClass("noscroll"); // Enable Page Scroll when Mobile Menu is closed
				}
				$('.after-header').removeClass('search-toggled-on');
				updateMaxHeightMobileMenu();
			});

		// Max height mobile menu
			function updateMaxHeightMobileMenu(){
				/* let offsetTopMobileMenu = $('.menu-wrapper-mobile').offset().top; */
				let headerHeight = $('.header-container').outerHeight();
				let adminBarHeight = $('#wpadminbar').outerHeight();
				let offsetTopMobileMenu = headerHeight + adminBarHeight;
				/* console.log('offsetTopMobileMenu: ' + offsetTopMobileMenu); */
				$('.menu-wrapper-mobile').css('max-height', 'calc(100vh - ' + offsetTopMobileMenu + 'px)');

				// Max Height of Submenu Desktop
				$('.menu-wrapper-desktop ul.sub-menu').each(function(){
					$(this).css('max-height', 'calc(100vh - ' + offsetTopMobileMenu + 'px)');
				});
			}
			updateMaxHeightMobileMenu();

	// Consent Privacy Policy Links open in new tab -----------------------------------------
		$('.elementor-field-type-acceptance').each(function(){
			$(this).find('label a').each(function(){
				$(this).attr('target', '_blank');
			});
		});


	// Sidebar Toggle -----------------------------------------
		// Toggle Sidebar Box
			$(".sidebar-handle").on("click", function(){
				if ( $(this).hasClass('sidebarToggle') ){
					$(this).removeClass('sidebarToggle');
					$(this).parent().addClass('hideSidebar');
					$(this).parent().removeClass('showSidebar');
					setTimeout(function(){
						$(this).parent().removeClass('hideSidebar');
					}, 1000);
				} else {
					$(this).addClass('sidebarToggle');
					$(this).parent().addClass('showSidebar');
					$(this).parent().removeClass('hideSidebar');
				}
				$(this).parent().toggleClass('sidebarToggle');
			});

		/* // max height of accessibility box
			var cbcOffsetTop = $("#accessibility-box-container").position().top;
			var cbcHeight = $(".accessibility-box-content").outerHeight();
			var cbcFullHeight = cbcOffsetTop + cbcHeight;
			var windowHeight = $(window).height();
			if ( cbcFullHeight > windowHeight ){
				var cbcMaxHeight = windowHeight - cbcOffsetTop;
				$(".accessibility-box-content").css("max-height", cbcMaxHeight + "px").css("overflow-y", "scroll");
			}
		// Window Resize
			$(window).resize(function(){
				$(".accessibility-box-content").css("max-height", "none");
				var cbcOffsetTop = $("#accessibility-box-container").position().top;
				var cbcHeight = $(".accessibility-box-content").outerHeight();
				var cbcFullHeight = cbcOffsetTop + cbcHeight;
				var windowHeight = $(window).height();
				if ( cbcFullHeight > windowHeight ){
					var cbcMaxHeight = windowHeight - cbcOffsetTop;
					$(".accessibility-box-content").css("max-height", cbcMaxHeight + "px").css("overflow-y", "scroll");
				}
			}); */



	// Sidebar Contact Box -----------------------------------------
		// Toggle Sidebar Contact Box
			/* $(".contact-handle").on("click", function(){
				$("#contact-box-container").toggleClass("contactToggle");
			}); */



	// To Top Button -----------------------------------------
		// Fade In Button
		$(window).scroll(function () {
			if ( $(this).scrollTop() > 500 ){
				$("#totop").addClass("vsbl");
			}
			else {
				$("#totop").removeClass("vsbl");
			}
			updateHeightOfTriggerButtons();
			updateMaxHeightMobileMenu();
		});
	// Scroll Animation
		$("#totop").click(function () {
			$("body,html").animate({ scrollTop: 0 }, 800 );
			return false;
		});



	// E-Mail Link Onclick Event -----------------------------------------
		$(".mail-link, .mail-link a").on("click", function(){
			var newHref = $(this).attr("href").replace('MAIL','@').replace('PUNKT','.');
			console.log(newHref);
			$(this).attr("href", newHref);
		});



	// Row Full Height - Max Height (First Row on Page) -----------------------------------------
		var headerHeight = $("#masthead").outerHeight();
		var windowHeight = $( window ).height();
		var rowHeight = windowHeight - headerHeight - 150;
		//console.log("Header Height: " + headerHeight);
		//console.log("Window Height: " + windowHeight);
		if (rowHeight > 800){
			$(".entry-content > .vc_row.vc_row-o-full-height").css("min-height", "800px");
			//console.log("Row Height: 800");
		} else {
			$(".entry-content > .vc_row.vc_row-o-full-height").css("min-height", rowHeight + "px");
			//console.log("Row Height: " + rowHeight);
		}
		$(window).resize(function(){
			var headerHeight = $("#masthead").outerHeight();
			var windowHeight = $( window ).height();
			var rowHeight = windowHeight - headerHeight - 150;
			//console.log("Header Height: " + headerHeight);
			//console.log("Window Height: " + windowHeight);
			if (rowHeight > 800){
				$(".entry-content > .vc_row.vc_row-o-full-height").css("min-height", "800px");
				//console.log("Row Height: 800");
			} else {
				$(".entry-content > .vc_row.vc_row-o-full-height").css("min-height", rowHeight + "px");
				//console.log("Row Height: " + rowHeight);
			}
		});



					
		// Scroll Accessibilitybar
		if ( $(this).scrollTop() > 100 ){
			$("#accessibility-box-container").addClass("toggleVisibility");
			hideAccessibilityBox();
		}
		else {
			$("#accessibility-box-container").removeClass("toggleVisibility");
		}
		$(window).scroll(function () {
			if ( $(this).scrollTop() > 100 ){
				$("#accessibility-box-container").addClass("toggleVisibility");
				hideAccessibilityBox();
			}
			else {
				$("#accessibility-box-container").removeClass("toggleVisibility");
			}
		});

		function hideAccessibilityBox(){
			$("#accessibility-box-container").addClass('hideSidebar');
			$("#accessibility-box-container").removeClass('showSidebar');
			setTimeout(function(){
				$("#accessibility-box-container").removeClass('hideSidebar');
			}, 1000);
			$("#accessibility-box-container").removeClass('sidebarToggle');
			$(".accessibility-handle").removeClass('sidebarToggle');
		}



		// Accessibility Features ----------------------------------------------------------
		function toggleAccessibilityFeature(featureClass, sessionKey, disableOtherFeatureClass, disableOtherSessionKey) {
			var featureStatus = sessionStorage.getItem(sessionKey);
			
			featureStatus = featureStatus === "true";
			if (!featureStatus) {
				sessionStorage.setItem(sessionKey, true);
				$('html').addClass(featureClass);
			} else {
				sessionStorage.setItem(sessionKey, false);
				$('html').removeClass(featureClass);
			}
		
			if (disableOtherFeatureClass && disableOtherSessionKey) {
				$('html').removeClass(disableOtherFeatureClass);
				sessionStorage.setItem(disableOtherSessionKey, false);
			}
		}
	
	// Initialize Accessibility Features
		// Initialize High Contrast
		if (sessionStorage.getItem("mwAccHiCo") === "true") {
			$('html').addClass('mwAccHiCo');
		}
	
		// Initialize Grayscale
		if (sessionStorage.getItem("mwAccGrSc") === "true") {
			$('html').addClass('mwAccGrSc');
		}
	
		$('.high-contrast').on('click', function(){
			toggleAccessibilityFeature('mwAccHiCo', 'mwAccHiCo', 'mwAccGrSc', 'mwAccGrSc');
		});
	
		$('.grayscale').on('click', function(){
			toggleAccessibilityFeature('mwAccGrSc', 'mwAccGrSc', 'mwAccHiCo', 'mwAccHiCo');
		});
		
	// Change Font Size -----------------------------------------
		var globalFontSize = sessionStorage.getItem("globalFontSize");
		if ( globalFontSize == "NaN" || globalFontSize == "null" || globalFontSize == NaN || globalFontSize == null ){
			globalFontSize = "small";
		}
		console.log("Global Font Size On Load: " + globalFontSize);
		$("body").addClass("global-font-size-" + globalFontSize);
		//$("body").removeClass("global-font-size-NaN");
		//$("body").css("font-size", globalFontSize + "px");
		$(".change-font-size button").removeClass("current-font-size");
		$(".change-font-size button#" + globalFontSize).addClass("current-font-size");

		$(".change-font-size button").on("click", function(){

			var allVals = ["global-font-size-null", "global-font-size-NaN"];
			$(".change-font-size button").each(function(){
				var thisVal = $(this).attr("id");
				allVals.push(thisVal);
			});
			console.log(allVals);
			for ( var i = 0; i < allVals.length; i++ ){
				var getVal = allVals[i];
				$("body").removeClass("global-font-size-" + getVal);
			}

			var thisFontSize = $(this).attr("id");
			//console.log("New Font-Size: " + thisFontSize);
			$("body").addClass("global-font-size-" + thisFontSize);
			$(".change-font-size button").removeClass("current-font-size");
			$(".change-font-size button#" + thisFontSize).addClass("current-font-size");
			//$("body").css("font-size", thisFontSize + "px");

			sessionStorage.setItem("globalFontSize", thisFontSize);
		});



	// Text centered class -----------------------------------------
		$(".wpb_text_column > .wpb_wrapper > *").each(function(){
			var textAlignVal = $(this).css("text-align");
			var textColorVal = $(this).css("color");
			// console.log("Text-align: " + textAlignVal);
			console.log("textColorVal: " + textColorVal);
			if ( textAlignVal == "center" ){
				$(this).addClass("centered");
				// $(this).find("::after").css("background-color", textColorVal);
			}
		});



	// Detect Scroll Direction -----------------------------------------
		var lastScrollTop = 0, threshold = 5;
		$(window).scroll(function(){
			var nowScrollTop = $(this).scrollTop();
			if(Math.abs(lastScrollTop - nowScrollTop) >= threshold){
				$('body').removeClass("scrollDown");
				$('body').removeClass("scrollUp");
				if (nowScrollTop > lastScrollTop){
					$('body').addClass("scrollDown");
				} else {
					$('body').addClass("scrollUp");
				}
			lastScrollTop = nowScrollTop;
			}
		});



	// keepthescore -----------------------------------------
		var playerName = "Japheth Kohl";
		var newScore = 134;

		var newplayerdata = {"name": playerName};
		$(".leaderboard").on("click", function(){
			$.ajax({	// add the new player
				type: "POST", 
				cache: false,
				url: "https://keepthescore.co/api/hucjzazszae/player/",
				data: JSON.stringify(newplayerdata),
				contentType: "application/json; charset=utf-8",
				crossDomain: true,
				dataType: "json",
				success: function (data) {
					var playerId = data.player.id;
					//console.log(playerId);
					var scoredata = { "player_id": playerId, "score": newScore };
					$.ajax({	// add the score of the new player
						type: "POST",
						cache: false,
						url: "https://keepthescore.co/api/hucjzazszae/score/",
						data: JSON.stringify(scoredata),
						contentType: "application/json; charset=utf-8",
						crossDomain: true,
						dataType: "json",
						complete: function () {
							console.log("add score completed");
						}
					});
				}
			});
		});




	// TablePress responsive -----------------------------------------
		$(".dataTables_scroll").each(function(){
			var tableHead = $(this).find(".dataTables_scrollHead");
			var tableBody = $(this).find(".dataTables_scrollBody");

			//var columnTitles = [];
			var numberOfColumns = tableHead.find("th").length;
			//console.log("numberOfColumns: " + numberOfColumns);

			var headerArray = [];
			tableHead.find('table thead tr th').each(function() {
				headerArray.push($(this).text());
			});
			console.log(headerArray);

			tableBody.find("tr").each(function(){
				//console.log("tr found");
				console.log("numberOfColumns: " + numberOfColumns);
				var i = 0;
				$(this).children("td").each(function(){
					console.log("headerArray: " + headerArray[i]);
					$(this).attr("data-columntitle", headerArray[i]);
					i++;
					console.log("i = " + i);
				});
			});
		});
		
		
		
		
	// Typing Animation -----------------------------------------
		const typingContainer = $('#typing-container');
		const words = typingContainer.data('words').split(';').map(word => word.trim());

		let currentWordIndex = 0;
		let currentCharIndex = 0;
		let isDeleting = false;
		const typingSpeed = 100;
		const deletingSpeed = 50;
		const pauseAfterTyping = 2000;

		function type() {
			const currentWord = words[currentWordIndex];

			if (isDeleting) {
				typingContainer.text(currentWord.substring(0, currentCharIndex--));
				if (currentCharIndex < 0) {
					isDeleting = false;
					currentWordIndex = (currentWordIndex + 1) % words.length;
					setTimeout(type, typingSpeed);
				} else {
					setTimeout(type, deletingSpeed);
				}
			} else {
				typingContainer.text(currentWord.substring(0, currentCharIndex++));
				if (currentCharIndex > currentWord.length) {
					setTimeout(function() {
						isDeleting = true;
						setTimeout(type, deletingSpeed);
					}, pauseAfterTyping);
				} else {
					setTimeout(type, typingSpeed);
				}
			}
		}

		type();








	});
});
// source --> https://roter-stern.berlin/wp-content/themes/twentytwelve/js/navigation.js?ver=20250303 
/**
 * Handles toggling the navigation menu for small screens and
 * accessibility for submenu items.
 */
( function() {
	var nav = document.getElementById( 'site-navigation' ), button, menu;
	if ( ! nav ) {
		return;
	}

	button = nav.getElementsByTagName( 'button' )[0];
	menu   = nav.getElementsByTagName( 'ul' )[0];
	if ( ! button ) {
		return;
	}

	// Hide button if menu is missing or empty.
	if ( ! menu || ! menu.childNodes.length ) {
		button.style.display = 'none';
		return;
	}

	// Assign an ID for the default page list if no menu is set as Primary.
	if ( ! menu.id ) {
		menu.id = 'twentytwelve-page-list-menu';
	}

	button.setAttribute( 'aria-controls', menu.id );
	button.setAttribute( 'aria-expanded', 'false' );

	button.onclick = function() {
		if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
			menu.className = 'nav-menu';
		}

		if ( -1 !== button.className.indexOf( 'toggled-on' ) ) {
			button.setAttribute( 'aria-expanded', 'false' );
			button.className = button.className.replace( ' toggled-on', '' );
			menu.className = menu.className.replace( ' toggled-on', '' );
		} else {
			button.setAttribute( 'aria-expanded', 'true' );
			button.className += ' toggled-on';
			menu.className += ' toggled-on';
		}
	};
} )();

// Better focus for hidden submenu items for accessibility.
( function( $ ) {
	$( '.main-navigation' ).find( 'a' ).on( 'focus.twentytwelve blur.twentytwelve', function() {
		$( this ).parents( '.menu-item, .page_item' ).toggleClass( 'focus' );
	} );

  if ( 'ontouchstart' in window ) {
    $('body').on( 'touchstart.twentytwelve',  '.menu-item-has-children > a, .page_item_has_children > a', function( e ) {
      var el = $( this ).parent( 'li' );

      if ( ! el.hasClass( 'focus' ) ) {
        e.preventDefault();
        el.toggleClass( 'focus' );
        el.siblings( '.focus').removeClass( 'focus' );
      }
    } );
  }
} )( jQuery );
// source --> https://roter-stern.berlin/wp-content/plugins/elementor/assets/lib/font-awesome/js/v4-shims.min.js?ver=4.0.1 
/*!
 * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 */
(function(){var l,a;l=this,a=function(){"use strict";var l={},a={};try{"undefined"!=typeof window&&(l=window),"undefined"!=typeof document&&(a=document)}catch(l){}var e=(l.navigator||{}).userAgent,r=void 0===e?"":e,n=l,o=a,u=(n.document,!!o.documentElement&&!!o.head&&"function"==typeof o.addEventListener&&o.createElement,~r.indexOf("MSIE")||r.indexOf("Trident/"),"___FONT_AWESOME___"),t=function(){try{return"production"===process.env.NODE_ENV}catch(l){return!1}}();var f=n||{};f[u]||(f[u]={}),f[u].styles||(f[u].styles={}),f[u].hooks||(f[u].hooks={}),f[u].shims||(f[u].shims=[]);var i=f[u],s=[["glass",null,"glass-martini"],["meetup","fab",null],["star-o","far","star"],["remove",null,"times"],["close",null,"times"],["gear",null,"cog"],["trash-o","far","trash-alt"],["file-o","far","file"],["clock-o","far","clock"],["arrow-circle-o-down","far","arrow-alt-circle-down"],["arrow-circle-o-up","far","arrow-alt-circle-up"],["play-circle-o","far","play-circle"],["repeat",null,"redo"],["rotate-right",null,"redo"],["refresh",null,"sync"],["list-alt","far",null],["dedent",null,"outdent"],["video-camera",null,"video"],["picture-o","far","image"],["photo","far","image"],["image","far","image"],["pencil",null,"pencil-alt"],["map-marker",null,"map-marker-alt"],["pencil-square-o","far","edit"],["share-square-o","far","share-square"],["check-square-o","far","check-square"],["arrows",null,"arrows-alt"],["times-circle-o","far","times-circle"],["check-circle-o","far","check-circle"],["mail-forward",null,"share"],["expand",null,"expand-alt"],["compress",null,"compress-alt"],["eye","far",null],["eye-slash","far",null],["warning",null,"exclamation-triangle"],["calendar",null,"calendar-alt"],["arrows-v",null,"arrows-alt-v"],["arrows-h",null,"arrows-alt-h"],["bar-chart","far","chart-bar"],["bar-chart-o","far","chart-bar"],["twitter-square","fab",null],["facebook-square","fab",null],["gears",null,"cogs"],["thumbs-o-up","far","thumbs-up"],["thumbs-o-down","far","thumbs-down"],["heart-o","far","heart"],["sign-out",null,"sign-out-alt"],["linkedin-square","fab","linkedin"],["thumb-tack",null,"thumbtack"],["external-link",null,"external-link-alt"],["sign-in",null,"sign-in-alt"],["github-square","fab",null],["lemon-o","far","lemon"],["square-o","far","square"],["bookmark-o","far","bookmark"],["twitter","fab",null],["facebook","fab","facebook-f"],["facebook-f","fab","facebook-f"],["github","fab",null],["credit-card","far",null],["feed",null,"rss"],["hdd-o","far","hdd"],["hand-o-right","far","hand-point-right"],["hand-o-left","far","hand-point-left"],["hand-o-up","far","hand-point-up"],["hand-o-down","far","hand-point-down"],["arrows-alt",null,"expand-arrows-alt"],["group",null,"users"],["chain",null,"link"],["scissors",null,"cut"],["files-o","far","copy"],["floppy-o","far","save"],["navicon",null,"bars"],["reorder",null,"bars"],["pinterest","fab",null],["pinterest-square","fab",null],["google-plus-square","fab",null],["google-plus","fab","google-plus-g"],["money","far","money-bill-alt"],["unsorted",null,"sort"],["sort-desc",null,"sort-down"],["sort-asc",null,"sort-up"],["linkedin","fab","linkedin-in"],["rotate-left",null,"undo"],["legal",null,"gavel"],["tachometer",null,"tachometer-alt"],["dashboard",null,"tachometer-alt"],["comment-o","far","comment"],["comments-o","far","comments"],["flash",null,"bolt"],["clipboard","far",null],["paste","far","clipboard"],["lightbulb-o","far","lightbulb"],["exchange",null,"exchange-alt"],["cloud-download",null,"cloud-download-alt"],["cloud-upload",null,"cloud-upload-alt"],["bell-o","far","bell"],["cutlery",null,"utensils"],["file-text-o","far","file-alt"],["building-o","far","building"],["hospital-o","far","hospital"],["tablet",null,"tablet-alt"],["mobile",null,"mobile-alt"],["mobile-phone",null,"mobile-alt"],["circle-o","far","circle"],["mail-reply",null,"reply"],["github-alt","fab",null],["folder-o","far","folder"],["folder-open-o","far","folder-open"],["smile-o","far","smile"],["frown-o","far","frown"],["meh-o","far","meh"],["keyboard-o","far","keyboard"],["flag-o","far","flag"],["mail-reply-all",null,"reply-all"],["star-half-o","far","star-half"],["star-half-empty","far","star-half"],["star-half-full","far","star-half"],["code-fork",null,"code-branch"],["chain-broken",null,"unlink"],["shield",null,"shield-alt"],["calendar-o","far","calendar"],["maxcdn","fab",null],["html5","fab",null],["css3","fab",null],["ticket",null,"ticket-alt"],["minus-square-o","far","minus-square"],["level-up",null,"level-up-alt"],["level-down",null,"level-down-alt"],["pencil-square",null,"pen-square"],["external-link-square",null,"external-link-square-alt"],["compass","far",null],["caret-square-o-down","far","caret-square-down"],["toggle-down","far","caret-square-down"],["caret-square-o-up","far","caret-square-up"],["toggle-up","far","caret-square-up"],["caret-square-o-right","far","caret-square-right"],["toggle-right","far","caret-square-right"],["eur",null,"euro-sign"],["euro",null,"euro-sign"],["gbp",null,"pound-sign"],["usd",null,"dollar-sign"],["dollar",null,"dollar-sign"],["inr",null,"rupee-sign"],["rupee",null,"rupee-sign"],["jpy",null,"yen-sign"],["cny",null,"yen-sign"],["rmb",null,"yen-sign"],["yen",null,"yen-sign"],["rub",null,"ruble-sign"],["ruble",null,"ruble-sign"],["rouble",null,"ruble-sign"],["krw",null,"won-sign"],["won",null,"won-sign"],["btc","fab",null],["bitcoin","fab","btc"],["file-text",null,"file-alt"],["sort-alpha-asc",null,"sort-alpha-down"],["sort-alpha-desc",null,"sort-alpha-down-alt"],["sort-amount-asc",null,"sort-amount-down"],["sort-amount-desc",null,"sort-amount-down-alt"],["sort-numeric-asc",null,"sort-numeric-down"],["sort-numeric-desc",null,"sort-numeric-down-alt"],["youtube-square","fab",null],["youtube","fab",null],["xing","fab",null],["xing-square","fab",null],["youtube-play","fab","youtube"],["dropbox","fab",null],["stack-overflow","fab",null],["instagram","fab",null],["flickr","fab",null],["adn","fab",null],["bitbucket","fab",null],["bitbucket-square","fab","bitbucket"],["tumblr","fab",null],["tumblr-square","fab",null],["long-arrow-down",null,"long-arrow-alt-down"],["long-arrow-up",null,"long-arrow-alt-up"],["long-arrow-left",null,"long-arrow-alt-left"],["long-arrow-right",null,"long-arrow-alt-right"],["apple","fab",null],["windows","fab",null],["android","fab",null],["linux","fab",null],["dribbble","fab",null],["skype","fab",null],["foursquare","fab",null],["trello","fab",null],["gratipay","fab",null],["gittip","fab","gratipay"],["sun-o","far","sun"],["moon-o","far","moon"],["vk","fab",null],["weibo","fab",null],["renren","fab",null],["pagelines","fab",null],["stack-exchange","fab",null],["arrow-circle-o-right","far","arrow-alt-circle-right"],["arrow-circle-o-left","far","arrow-alt-circle-left"],["caret-square-o-left","far","caret-square-left"],["toggle-left","far","caret-square-left"],["dot-circle-o","far","dot-circle"],["vimeo-square","fab",null],["try",null,"lira-sign"],["turkish-lira",null,"lira-sign"],["plus-square-o","far","plus-square"],["slack","fab",null],["wordpress","fab",null],["openid","fab",null],["institution",null,"university"],["bank",null,"university"],["mortar-board",null,"graduation-cap"],["yahoo","fab",null],["google","fab",null],["reddit","fab",null],["reddit-square","fab",null],["stumbleupon-circle","fab",null],["stumbleupon","fab",null],["delicious","fab",null],["digg","fab",null],["pied-piper-pp","fab",null],["pied-piper-alt","fab",null],["drupal","fab",null],["joomla","fab",null],["spoon",null,"utensil-spoon"],["behance","fab",null],["behance-square","fab",null],["steam","fab",null],["steam-square","fab",null],["automobile",null,"car"],["envelope-o","far","envelope"],["spotify","fab",null],["deviantart","fab",null],["soundcloud","fab",null],["file-pdf-o","far","file-pdf"],["file-word-o","far","file-word"],["file-excel-o","far","file-excel"],["file-powerpoint-o","far","file-powerpoint"],["file-image-o","far","file-image"],["file-photo-o","far","file-image"],["file-picture-o","far","file-image"],["file-archive-o","far","file-archive"],["file-zip-o","far","file-archive"],["file-audio-o","far","file-audio"],["file-sound-o","far","file-audio"],["file-video-o","far","file-video"],["file-movie-o","far","file-video"],["file-code-o","far","file-code"],["vine","fab",null],["codepen","fab",null],["jsfiddle","fab",null],["life-ring","far",null],["life-bouy","far","life-ring"],["life-buoy","far","life-ring"],["life-saver","far","life-ring"],["support","far","life-ring"],["circle-o-notch",null,"circle-notch"],["rebel","fab",null],["ra","fab","rebel"],["resistance","fab","rebel"],["empire","fab",null],["ge","fab","empire"],["git-square","fab",null],["git","fab",null],["hacker-news","fab",null],["y-combinator-square","fab","hacker-news"],["yc-square","fab","hacker-news"],["tencent-weibo","fab",null],["qq","fab",null],["weixin","fab",null],["wechat","fab","weixin"],["send",null,"paper-plane"],["paper-plane-o","far","paper-plane"],["send-o","far","paper-plane"],["circle-thin","far","circle"],["header",null,"heading"],["sliders",null,"sliders-h"],["futbol-o","far","futbol"],["soccer-ball-o","far","futbol"],["slideshare","fab",null],["twitch","fab",null],["yelp","fab",null],["newspaper-o","far","newspaper"],["paypal","fab",null],["google-wallet","fab",null],["cc-visa","fab",null],["cc-mastercard","fab",null],["cc-discover","fab",null],["cc-amex","fab",null],["cc-paypal","fab",null],["cc-stripe","fab",null],["bell-slash-o","far","bell-slash"],["trash",null,"trash-alt"],["copyright","far",null],["eyedropper",null,"eye-dropper"],["area-chart",null,"chart-area"],["pie-chart",null,"chart-pie"],["line-chart",null,"chart-line"],["lastfm","fab",null],["lastfm-square","fab",null],["ioxhost","fab",null],["angellist","fab",null],["cc","far","closed-captioning"],["ils",null,"shekel-sign"],["shekel",null,"shekel-sign"],["sheqel",null,"shekel-sign"],["meanpath","fab","font-awesome"],["buysellads","fab",null],["connectdevelop","fab",null],["dashcube","fab",null],["forumbee","fab",null],["leanpub","fab",null],["sellsy","fab",null],["shirtsinbulk","fab",null],["simplybuilt","fab",null],["skyatlas","fab",null],["diamond","far","gem"],["intersex",null,"transgender"],["facebook-official","fab","facebook"],["pinterest-p","fab",null],["whatsapp","fab",null],["hotel",null,"bed"],["viacoin","fab",null],["medium","fab",null],["y-combinator","fab",null],["yc","fab","y-combinator"],["optin-monster","fab",null],["opencart","fab",null],["expeditedssl","fab",null],["battery-4",null,"battery-full"],["battery",null,"battery-full"],["battery-3",null,"battery-three-quarters"],["battery-2",null,"battery-half"],["battery-1",null,"battery-quarter"],["battery-0",null,"battery-empty"],["object-group","far",null],["object-ungroup","far",null],["sticky-note-o","far","sticky-note"],["cc-jcb","fab",null],["cc-diners-club","fab",null],["clone","far",null],["hourglass-o","far","hourglass"],["hourglass-1",null,"hourglass-start"],["hourglass-2",null,"hourglass-half"],["hourglass-3",null,"hourglass-end"],["hand-rock-o","far","hand-rock"],["hand-grab-o","far","hand-rock"],["hand-paper-o","far","hand-paper"],["hand-stop-o","far","hand-paper"],["hand-scissors-o","far","hand-scissors"],["hand-lizard-o","far","hand-lizard"],["hand-spock-o","far","hand-spock"],["hand-pointer-o","far","hand-pointer"],["hand-peace-o","far","hand-peace"],["registered","far",null],["creative-commons","fab",null],["gg","fab",null],["gg-circle","fab",null],["tripadvisor","fab",null],["odnoklassniki","fab",null],["odnoklassniki-square","fab",null],["get-pocket","fab",null],["wikipedia-w","fab",null],["safari","fab",null],["chrome","fab",null],["firefox","fab",null],["opera","fab",null],["internet-explorer","fab",null],["television",null,"tv"],["contao","fab",null],["500px","fab",null],["amazon","fab",null],["calendar-plus-o","far","calendar-plus"],["calendar-minus-o","far","calendar-minus"],["calendar-times-o","far","calendar-times"],["calendar-check-o","far","calendar-check"],["map-o","far","map"],["commenting",null,"comment-dots"],["commenting-o","far","comment-dots"],["houzz","fab",null],["vimeo","fab","vimeo-v"],["black-tie","fab",null],["fonticons","fab",null],["reddit-alien","fab",null],["edge","fab",null],["credit-card-alt",null,"credit-card"],["codiepie","fab",null],["modx","fab",null],["fort-awesome","fab",null],["usb","fab",null],["product-hunt","fab",null],["mixcloud","fab",null],["scribd","fab",null],["pause-circle-o","far","pause-circle"],["stop-circle-o","far","stop-circle"],["bluetooth","fab",null],["bluetooth-b","fab",null],["gitlab","fab",null],["wpbeginner","fab",null],["wpforms","fab",null],["envira","fab",null],["wheelchair-alt","fab","accessible-icon"],["question-circle-o","far","question-circle"],["volume-control-phone",null,"phone-volume"],["asl-interpreting",null,"american-sign-language-interpreting"],["deafness",null,"deaf"],["hard-of-hearing",null,"deaf"],["glide","fab",null],["glide-g","fab",null],["signing",null,"sign-language"],["viadeo","fab",null],["viadeo-square","fab",null],["snapchat","fab",null],["snapchat-ghost","fab",null],["snapchat-square","fab",null],["pied-piper","fab",null],["first-order","fab",null],["yoast","fab",null],["themeisle","fab",null],["google-plus-official","fab","google-plus"],["google-plus-circle","fab","google-plus"],["font-awesome","fab",null],["fa","fab","font-awesome"],["handshake-o","far","handshake"],["envelope-open-o","far","envelope-open"],["linode","fab",null],["address-book-o","far","address-book"],["vcard",null,"address-card"],["address-card-o","far","address-card"],["vcard-o","far","address-card"],["user-circle-o","far","user-circle"],["user-o","far","user"],["id-badge","far",null],["drivers-license",null,"id-card"],["id-card-o","far","id-card"],["drivers-license-o","far","id-card"],["quora","fab",null],["free-code-camp","fab",null],["telegram","fab",null],["thermometer-4",null,"thermometer-full"],["thermometer",null,"thermometer-full"],["thermometer-3",null,"thermometer-three-quarters"],["thermometer-2",null,"thermometer-half"],["thermometer-1",null,"thermometer-quarter"],["thermometer-0",null,"thermometer-empty"],["bathtub",null,"bath"],["s15",null,"bath"],["window-maximize","far",null],["window-restore","far",null],["times-rectangle",null,"window-close"],["window-close-o","far","window-close"],["times-rectangle-o","far","window-close"],["bandcamp","fab",null],["grav","fab",null],["etsy","fab",null],["imdb","fab",null],["ravelry","fab",null],["eercast","fab","sellcast"],["snowflake-o","far","snowflake"],["superpowers","fab",null],["wpexplorer","fab",null],["cab",null,"taxi"]];return function(l){try{l()}catch(l){if(!t)throw l}}(function(){var l;"function"==typeof i.hooks.addShims?i.hooks.addShims(s):(l=i.shims).push.apply(l,s)}),s},"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):l["fontawesome-free-shims"]=a();})();