"use strict";
//-----------------------------------------------------
// Initiate Slider (flexslider)
//-----------------------------------------------------
function themo_start_flex_slider(flex_selector,themo_autoplay,themo_flex_animation, themo_flex_easing,
themo_flex_animationloop, themo_flex_smoothheight, themo_flex_slideshowspeed, themo_flex_animationspeed,
themo_flex_randomize, themo_flex_pauseonhover, themo_flex_touch, themo_flex_directionnav,themo_flex_controlNav){
// SETUP FLEXSLIDER OPTIONS
// Remove ajax_loader.gif from Formidable Plugin
jQuery("img.frm_ajax_loading").remove();
jQuery(flex_selector).flexslider({
slideshow: themo_autoplay,
animation: themo_flex_animation,
smoothHeight: themo_flex_smoothheight,
easing: themo_flex_easing,
animationLoop: themo_flex_animationloop,
slideshowSpeed: themo_flex_slideshowspeed,
animationSpeed: themo_flex_animationspeed,
randomize: themo_flex_randomize,
pauseOnHover: themo_flex_pauseonhover,
touch: themo_flex_touch,
directionNav: themo_flex_directionnav,
controlNav: themo_flex_controlNav,
//directionNav: false,
prevText: '',
nextText: '',
start: function (slider) {
//slider.removeClass( "flexpreloader");
jQuery('body').addClass('loaded');
},
after: function (slider) {
},
before: function () {
}
});
}
//-----------------------------------------------------
// Active Lightbox
//-----------------------------------------------------
function themo_active_lightbox(){
// delegate calls to data-toggle="lightbox"
jQuery(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) {
event.preventDefault();
return jQuery(this).ekkoLightbox({
always_show_close: true,
gallery_parent_selector: '.gallery',
right_arrow_class: '.flex-next',
left_arrow_class: '.flex-prev'
});
});
}
jQuery( function ( $ ) {
// fix pricing columns
themo_adjust_pricing_table_height();
// start isotope
themo_init_isotope();
// Add class to section if parallax enabled and we detect an IOS or Andriod device .
if (navigator.userAgent.match(/(iPod|iPhone|iPad)/) || (navigator.userAgent.match(/(Android)/))) {
//console.log('IOS or Android');
$(".th-parallax").addClass( "th-mobile" );
}
//-----------------------------------------------------
// Start isotope / for masonry blog and tours filtering
//-----------------------------------------------------
function themo_init_isotope() {
// Equalize Heights
$.fn.equalizeHeights = function() {
// construct an array that contains the height of every
element
var two = $(this).map(function(i, e) {
return $(e).height();
});
return this.height( // set the height of element
element to...
Math.max.apply( // the largest value in...
this,two.get() // the array of height values
)
); // ...and finally, return the original jQuery object to enable chaining
};
// Room Grid / Portfolio
var $container = $('.th-portfolio-row').not('.elementor-element-edit-mode .th-portfolio-row');
// init
var $port_grid = $container.isotope({
// options
itemSelector: '.th-portfolio-item',
layoutMode: 'fitRows'
/*itemSelector: '.th-portfolio-item',
masonry: {
//columnWidth: 100
}*/
});
// layout Isotope after each image loads
$port_grid.imagesLoaded().progress( function() {
$port_grid.isotope('layout');
});
var $th_cardbody = $('.th-portfolio-row .th-port-card-body');
// Equalize Card Body
$($th_cardbody).equalizeHeights();
// filter items on click handler
$('.th-portfolio-filters').on( 'click', 'a', function(e) {
e.preventDefault();
// Get Data-filter value
var filterValue = $(this).attr('data-filter');
// Get Parent Class
if (filterValue == '*') {
var parent_class = $(this).closest('.th-portfolio').attr("id");
} else {
var parent_class = $(filterValue).closest('.th-portfolio').attr("id");
}
// Remove .current class from all a links inside .th-portfolio-filters
$('#'+parent_class+' .th-portfolio-filters a').removeClass( "current" );
// Add .current class to current filter link.
$(this).addClass( "current" );
// Get the container element to initialize isotope.
var $thiscontainer = $('#'+parent_class+' .th-portfolio-row');
$thiscontainer.isotope({ filter: filterValue });
});
// Masonry Blog
var $bloggrid = $('.mas-blog').isotope({
itemSelector: '.mas-blog-post',
transitionDuration: '0.2s',
percentPosition: true,
originLeft: true,
masonry: {
columnWidth: '.mas-blog-post-sizer'
//gutter: 30
}
});
// layout Isotope after each image loads
$bloggrid.imagesLoaded().progress( function() {
$bloggrid.isotope('layout');
$bloggrid.on('layoutComplete', function (event, laidOutItems) {
//console.log('layoutComplete with ' + laidOutItems.length + ' items');
});
});
}
//-----------------------------------------------------
// Adjust Pricing Table Height
//-----------------------------------------------------
function themo_adjust_pricing_table_height(){
var $tallestCol;
// For each pricing-table element
$('.th-pricing-table').each(function(){
$tallestCol = 0;
// Find the plan name
$(this).find('> div .th-pricing-title').each(function(){
($(this).height() > $tallestCol) ? $tallestCol = $(this).height() : $tallestCol = $tallestCol;
});
// Safety net increase pricing tables height couldn't be determined
if($tallestCol == 0) $tallestCol = 'auto';
// set even height
$(this).find('> div .th-pricing-title').css('height',$tallestCol);
// Button Wrap
$(this).find('> div .th-btn-wrap').each(function(){
($(this).height() > $tallestCol) ? $tallestCol = $(this).height() : $tallestCol = $tallestCol;
});
// Safety net incase pricing tables height couldn't be determined
if($tallestCol == 0) $tallestCol = 'auto';
// Set even height
$(this).find('> div .th-btn-wrap').css('height',$tallestCol);
// FEATURES UL
$(this).find('> div .th-pricing-features').each(function(){
($(this).height() > $tallestCol) ? $tallestCol = $(this).height() : $tallestCol = $tallestCol;
});
// Safety net incase pricing tables height couldn't be determined
if($tallestCol == 0) $tallestCol = 'auto';
// Set even height
$(this).find('> div .th-pricing-features').css('height',$tallestCol);
// END FEATURES UL
});
}
// Intinerary Toggles
$( '.th-itinerary' ).find( '.th-itin-single' ).each( function() {
var $$ = $( this ),
$title = $$.find( '.th-itin-title' ),
$content = $$.find( '.th-itin-content' );
$title.on( 'click', function() {
if ( $$.hasClass( 'th-itin-active' ) ) {
$content.slideUp('fast', function() {
$$.addClass( 'th-itin-inactive' );
$$.removeClass( 'th-itin-active' );
});
} else {
$content.slideDown('fast', function() {
$$.addClass( 'th-itin-active' );
$$.removeClass( 'th-itin-inactive' );
});
}
} );
} );
// tooltips
$('a[rel=tooltip]').tooltip();
// popovers
$("a[rel=popover]").popover();
} );
//======================================================================
// On Window Load - executes when complete page is fully loaded, including all frames, objects and images
//======================================================================
jQuery(window).on('load',function ($) {
"use strict";
// Initiate Lightbox
themo_active_lightbox();
});
jQuery(window).on('elementor/frontend/init', function () {
elementorFrontend.hooks.addAction( 'frontend/element_ready/image-carousel.default', function( $scope ) {
//var $carousel_wrapper = $scope.find( '.elementor-image-carousel-wrapper' );
//$carousel_wrapper.parents("div.elementor-widget-image-carousel").css("border",'red solid 5px');
//var $slick_div = $carousel_wrapper.parents("div.elementor-widget-image-carousel");
//$carousel_wrapper.parents("div.elementor-widget-image-carousel").data( "settingsNEW", "HELLO" );
//if ( $scope.find( '.elementor-image-carousel-wrapper' ) ){
//}
//$scope.find("[data-element_type='image-carousel.default']").data( "settingsNEW", { slides_to_show: "10"}) ;
//var $image_carousel_div = $scope.find( "elementor-widget-image-carousel" );
// console.log($image_carousel_div.id);
//if ( $scope.find( ".elementor-widget-image-carousel" ) ){
//console.log('FOUND IT');
//console.log($scope.find( ".elementor-widget-image-carousel" ));
//$scope.find( ".elementor-widget-image-carousel" ).data( "settingsNEW", { slides_to_show: "10"} );
//}
//console.log('HELLO');
} );
})
//-----------------------------------------------------
// Initialize Image Carousel Timeline Slick Slider
//-----------------------------------------------------
jQuery(document).ready(function ($) {
if (typeof jQuery.fn.slick === 'function' ) {
$('.th-image-carousel-timeline .elementor-image-carousel').slick();
}
// Reinitialize slick when "image carousel timeline" element changes.
if (typeof elementorFrontend !== 'undefined' && typeof elementorFrontend.hooks !== 'undefined') {
elementorFrontend.hooks.addAction('frontend/element_ready/themo-image-carousel-timeline.default', function ($scope) {
var $carousel = $scope.find('.elementor-image-carousel');
// Check if slick is not already initialized on the same element.
if (typeof jQuery.fn.slick === 'function' && ! $carousel.hasClass('slick-initialized')) {
$carousel.slick();
}
});
}
});;
(function( $ ) { 'use strict';
var html = document.querySelector( 'html' );
if ( wpa.lang ) {
var lang = html.getAttribute( 'lang' );
if ( ! lang ) {
$('html').attr( 'lang', wpa.lang );
if ( wpa.errors ) {
console.log( 'HTML language set by WP Accessibility' );
}
}
}
if ( wpa.dir ) {
var dir = html.getAttribute( 'dir' );
if ( ! dir ) {
$('html').attr( 'dir', wpa.dir );
if ( wpa.errors ) {
console.log( 'HTML language direction set by WP Accessibility' );
}
}
}
var viewport = document.querySelector( 'meta[name="viewport"]' );
if ( viewport ) {
var conditionsBefore = viewport.getAttribute( 'content' );
var conditionsAfter = viewport.getAttribute( 'content' );
if ( conditionsBefore.search(/user-scalable=no/g) ) {
conditionsAfter = conditionsBefore.replace( 'user-scalable=no', 'user-scalable=yes' );
viewport.setAttribute( 'content', conditionsAfter );
if ( wpa.errors && conditionsAfter != conditionsBefore ) {
console.log( 'Viewport made scalable by WP Accessibility' );
}
}
if ( conditionsBefore.search(/maximum-scale=1/g) ) {
conditionsAfter = conditionsBefore.replace( 'maximum-scale=1', 'maximum-scale=5' );
conditionsAfter = conditionsAfter.replace( 'maximum-scale=0', 'maximum-scale=5' );
viewport.setAttribute( 'content', conditionsAfter );
if ( wpa.errors && conditionsAfter != conditionsBefore ) {
console.log( 'Viewport maximum scale set by WP Accessibility' );
}
}
}
if ( wpa.skiplinks.enabled ) {
$('body').prepend( wpa.skiplinks.output );
if ( wpa.errors ) {
console.log( 'Skip links added by WP Accessibility' );
}
}
if ( wpa.current ) {
$(function() {
$( '.current-menu-item a, .current_page_item a' ).attr( 'aria-current', 'page' );
});
if ( wpa.errors ) {
console.log( 'ARIA current added by WP Accessibility' );
}
}
if ( wpa.labels ) {
var wpa_names = [ 's', 'author', 'email', 'url', 'comment' ];
$.each( wpa_names, function( index, value ) {
if ( value == 'comment' ) {
var field = $( 'textarea[name=' + value + ']' );
} else {
var field = $( 'input[name=' + value + ']' ).not( '#adminbar-search' );
}
if ( 0 !== field.length ) {
var field_id = field.attr( 'id' );
var implicit = $( field ).parent( 'label' );
var aria = $( field ).attr( 'aria-label' );
var ariaId = $( field ).attr( 'aria-labelledby' );
var ariaTarget = {};
if ( ariaId ) {
ariaTarget = $( '#' + ariaId );
}
var hasAria = ( '' == aria || 'undefined' == typeof( aria ) ) ? false : true;
var hasAriaId = ( '' == ariaId || 'undefined' == typeof( ariaId ) ) ? false : true;
// Add label if aria label empty, aria labelledby empty, or aria reference ID does not exist.
if ( ( ! hasAria && ! hasAriaId ) || ( ! hasAria && ( hasAriaId && 0 === ariaTarget.length ) ) ) {
if ( field_id ) {
var label = $( 'label[for=' + field_id + ']' );
if ( !label.length && !implicit.length ) {
field.before( "
" + wpa.wpalabels[value] + " " );
if ( wpa.errors ) {
console.log( 'Explicit label on ' + wpa.wpalabels[value] + 'added by WP Accessibility' );
}
}
} else {
if ( !implicit.length ) {
field.attr( 'id', 'wpa_label_' + value ).before( "
" + wpa.wpalabels[value] + " " );
if ( wpa.errors ) {
console.log( 'Implicit label on ' + wpa.wpalabels[value] + 'added by WP Accessibility' );
}
}
}
}
}
});
}
if ( wpa.titles ) {
var images = 0;
var controls = 0;
var fields = 0;
const els = document.querySelectorAll( 'img, a, input, textarea, select, button' );
els.forEach((el) => {
var title = el.getAttribute( 'title' );
if ( title && '' !== title ) {
switch ( el.tagName ) {
case 'IMG':
// If image has alt, remove title. If not, set title as alt.
var alt = el.getAttribute( 'alt' );
if ( ! alt || '' === alt ) {
el.setAttribute( 'alt', title );
el.removeAttribute( 'title' );
} else {
el.removeAttribute( 'title' );
}
images++;
break;
case 'A':
case 'BUTTON':
// If link or button has contained text or an img with alt, remove title. Otherwise, set title as aria-label unless element already has aria-label.
var linkText = wpaElementText(el);
if ( ! linkText || '' === linkText ) {
var ariaLabel = el.getAttribute( 'aria-label' );
if ( ! ariaLabel || '' === ariaLabel ) {
el.setAttribute( 'aria-label', title );
el.removeAttribute( 'title' );
}
} else {
el.removeAttribute( 'title' );
}
controls++;
break;
case 'INPUT':
case 'SELECT':
case 'TEXTAREA':
// If input field has an aria-label, aria-labelledby, associated label, or wrapping label, remove title. Else, add title as aria-label.
var ariaLabel = el.getAttribute( 'aria-label' );
var ariaLabelled = el.getAttribute( 'aria-labelledby' );
var ariaLabeller = ( ariaLabelled ) ? document.getElementById( ariaLabelled ) : false;
var labelId = el.getAttribute( 'id' );
var label = ( labelId ) ? document.querySelector( 'label[for="' + labelId + '"]' ) : false;
var parentLabel = el.closest( 'label' );
var hasAriaLabel = ( ariaLabel && '' !== ariaLabel ) ? true : false;
var hasRealLabel = ( label && '' !== wpaElementText( label ) ) ? true : false;
var hasImplicitLabel = ( parentLabel && '' !== wpaElementText( parentLabel ) ) ? true : false;
var hasAriaLabelled = ( ariaLabeller && '' !== wpaElementText( arialabeller ) ) ? true : false;
if ( hasAriaLabel || hasRealLabel || hasImplicitLabel || hasAriaLabelled ) {
// This has a label.
el.removeAttribute( 'title' );
} else {
el.setAttribute( 'aria-label', title );
el.removeAttribute( 'title' );
}
fields++;
break;
}
}
});
if ( wpa.errors ) {
if ( images > 0 ) {
console.log( images + ' title attributes removed from images by WP Accessibility' );
}
if ( controls > 0 ) {
console.log( controls + ' title attributes removed from links and buttons by WP Accessibility' );
}
if ( fields > 0 ) {
console.log( fields + ' title attributes removed from input fields by WP Accessibility' );
}
}
}
if ( wpa.target ) {
var targeted = $('a:not(.wpa-allow-target)');
var targetRemoved = 0;
targeted.each( function() {
var target = $( this ).attr( 'target' );
if ( target ) {
$( this ).removeAttr( 'target' );
targetRemoved++;
}
});
if ( targetRemoved > 0 && wpa.errors ) {
console.log( targetRemoved + ' target attributes removed from links by WP Accessibility' );
}
}
if ( wpa.tabindex ) {
// Remove tabindex from elements that should be natively focusable.
var focusable = $('input,a,select,textarea,button').not('a:not([href])');
var tabRemoved = 0;
focusable.each( function() {
var tabindex = $( this ).attr( 'tabindex' );
if ( tabindex ) {
$( this ).removeAttr('tabindex');
tabRemoved++;
}
});
if ( tabRemoved > 0 && wpa.errors ) {
console.log( tabRemoved + ' tabindex attributes removed from links, buttons and inputs by WP Accessibility' );
}
// Add tabindex to elements that appear active but are not natively focusable.
var fakeButtons = $('div[role="button"]').not('div[tabindex]' );
var buttonLinks = $('a[role="button"]').not('a[tabindex],a[href]');
fakeButtons.attr( 'tabindex', '0' ).addClass('wpa-focusable');
if ( fakeButtons.length > 0 && wpa.errors ) {
console.log( fakeButtons.length + ' tabindex attributes added to divs with the button role by WP Accessibility' );
}
buttonLinks.attr( 'tabindex', '0' ).addClass('wpa-focusable');
if ( buttonLinks.length > 0 && wpa.errors ) {
console.log( buttonLinks.length + ' tabindex attributes added to anchor elements with the button role and no href value by WP Accessibility' );
}
}
if ( wpa.underline.enabled ) {
// Underline any link not inside a `nav` region. Using JS for this avoids problems with cascade precedence.
var originalOutline = $( wpa.underline.target ).css( 'outline-width' );
var originalOffset = $( wpa.underline.target ).css( 'outline-offset' );
var textColor = $( wpa.underline.target ).css( 'color' );
var originalColor = $( wpa.underline.target ).css( 'outline-color' );
$( wpa.underline.target ).not( 'nav ' + wpa.underline.target ).css( 'text-decoration', 'underline' );
$( wpa.underline.target ).on( 'mouseenter', function() {
$( this ).css( 'text-decoration', 'none' );
});
$( wpa.underline.target ).on( 'mouseleave', function() {
// Reset visible appearance on exit.
$( this ).css( 'text-decoration', 'underline' );
});
$( wpa.underline.target ).on( 'focusin', function() {
var newOutline = '2px';
if ( originalOutline == '2px' ) {
newOutline = '4px';
}
// Ensure there's a visible change of appearance on hover or focus.
$(this).css( 'outline-width', newOutline );
$(this).css( 'outline-color', textColor );
$(this).css( 'outline-offset', '2px' );
});
$( wpa.underline.target ).on( 'focusout', function() {
// Reset visible appearance on exit.
$(this).css( 'outline-width', originalOutline );
$(this).css( 'outline-color', originalColor );
$(this).css( 'outline-offset', originalOffset );
});
}
}(jQuery));
/**
* Check whether an element contains text, including inspecting contained content for image alt attributes or aria-label attributes.
*
*
* @arg el DOM element to check.
*
* Based on work by Roger Johansson https://www.456bereastreet.com/archive/201105/get_element_text_including_alt_text_for_images_with_javascript/
*/
function wpaElementText(el) {
var text = '';
// Text node (3) or CDATA node (4) - return its text
if ( (el.nodeType === 3) || (el.nodeType === 4) ) {
text = el.nodeValue;
// If node is an element (1) and an img, input[type=image], or area element, return its alt text
} else if ( (el.nodeType === 1) && (
(el.tagName.toLowerCase() == 'img') ||
(el.tagName.toLowerCase() == 'area') ||
((el.tagName.toLowerCase() == 'input') && el.getAttribute('type') && (el.getAttribute('type').toLowerCase() == 'image'))
) ) {
text = el.getAttribute('alt') || '';
// Traverse children unless this is a script or style element
} else if ( (el.nodeType === 1) && !el.tagName.match(/^(script|style)$/i) ) {
var children = el.childNodes;
for (var i = 0, l = children.length; i < l; i++) {
// If an element has an aria-label, that will override any other contained text.
var ariaLabel = el.getAttribute( 'aria-label' );
text += ( ariaLabel ) ? ariaLabel : wpaElementText( children[i] ) + ' ';
}
}
return text;
};;
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,o=this;t(this).one(t.support.transition.end,function(){i=!0});return setTimeout(function(){i||t(o).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}()})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.prototype.close=function(e){function i(){s.trigger("closed.bs.alert").remove()}var o=t(this),n=o.attr("data-target");n||(n=(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""));var s=t(n);e&&e.preventDefault(),s.length||(s=o.hasClass("alert")?o:o.parent()),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one(t.support.transition.end,i).emulateTransitionEnd(150):i())};var o=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var o=t(this),n=o.data("bs.alert");n||o.data("bs.alert",n=new i(this)),"string"==typeof e&&n[e].call(o)})},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click.bs.alert.data-api",e,i.prototype.close)}(jQuery),function(t){"use strict";var e=function(i,o){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,o),this.isLoading=!1};e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var i="disabled",o=this.$element,n=o.is("input")?"val":"html",s=o.data();e+="Text",s.resetText||o.data("resetText",o[n]()),o[n](s[e]||this.options[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=function(i){return this.each(function(){var o=t(this),n=o.data("bs.button"),s="object"==typeof i&&i;n||o.data("bs.button",n=new e(this,s)),"toggle"==i?n.toggle():i&&n.setState(i)})},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api","[data-toggle^=button]",function(e){var i=t(e.target);i.hasClass("btn")||(i=i.closest(".btn")),i.button("toggle"),e.preventDefault()})}(jQuery),function(t){"use strict";var e=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",t.proxy(this.pause,this)).on("mouseleave",t.proxy(this.cycle,this))};e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},e.prototype.to=function(e){var i=this,o=this.getActiveIndex();return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(e)}):o==e?this.pause().cycle():this.slide(e>o?"next":"prev",t(this.$items[e]))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){return this.sliding?void 0:this.slide("next")},e.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},e.prototype.slide=function(e,i){var o=this.$element.find(".item.active"),n=i||o[e](),s=this.interval,r="next"==e?"left":"right",a="next"==e?"first":"last",l=this;if(!n.length){if(!this.options.wrap)return;n=this.$element.find(".item")[a]()}if(n.hasClass("active"))return this.sliding=!1;var h=t.Event("slide.bs.carousel",{relatedTarget:n[0],direction:r});return this.$element.trigger(h),h.isDefaultPrevented()?void 0:(this.sliding=!0,s&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var e=t(l.$indicators.children()[l.getActiveIndex()]);e&&e.addClass("active")})),t.support.transition&&this.$element.hasClass("slide")?(n.addClass(e),n[0].offsetWidth,o.addClass(r),n.addClass(r),o.one(t.support.transition.end,function(){n.removeClass([e,r].join(" ")).addClass("active"),o.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1e3*o.css("transition-duration").slice(0,-1))):(o.removeClass("active"),n.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),s&&this.cycle(),this)};var i=t.fn.carousel;t.fn.carousel=function(i){return this.each(function(){var o=t(this),n=o.data("bs.carousel"),s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof i&&i),r="string"==typeof i?i:s.slide;n||o.data("bs.carousel",n=new e(this,s)),"number"==typeof i?n.to(i):r?n[r]():s.interval&&n.pause().cycle()})},t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(e){var i,o=t(this),n=t(o.attr("data-target")||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"")),s=t.extend({},n.data(),o.data()),r=o.attr("data-slide-to");r&&(s.interval=!1),n.carousel(s),(r=o.attr("data-slide-to"))&&n.data("bs.carousel").to(r),e.preventDefault()}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var e=t(this);e.carousel(e.data())})})}(jQuery),function(t){"use strict";var e=function(i,o){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,o),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e=t.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.$parent&&this.$parent.find("> .panel > .in");if(i&&i.length){var o=i.data("bs.collapse");if(o&&o.transitioning)return;i.collapse("hide"),o||i.data("bs.collapse",null)}var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var r=t.camelCase(["scroll",n].join("-"));this.$element.one(t.support.transition.end,t.proxy(s,this)).emulateTransitionEnd(350)[n](this.$element[0][r])}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[i](0).one(t.support.transition.end,t.proxy(o,this)).emulateTransitionEnd(350):o.call(this)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var i=t.fn.collapse;t.fn.collapse=function(i){return this.each(function(){var o=t(this),n=o.data("bs.collapse"),s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof i&&i);!n&&s.toggle&&"show"==i&&(i=!i),n||o.data("bs.collapse",n=new e(this,s)),"string"==typeof i&&n[i]()})},t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(e){var i,o=t(this),n=o.attr("data-target")||e.preventDefault()||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),s=t(n),r=s.data("bs.collapse"),a=r?"toggle":o.data(),l=o.attr("data-parent"),h=l&&t(l);r&&r.transitioning||(h&&h.find('[data-toggle=collapse][data-parent="'+l+'"]').not(o).addClass("collapsed"),o[s.hasClass("in")?"addClass":"removeClass"]("collapsed")),s.collapse(a)})}(jQuery),function(t){"use strict";function e(e){t(o).remove(),t(n).each(function(){var o=i(t(this)),n={relatedTarget:this};o.hasClass("open")&&(o.trigger(e=t.Event("hide.bs.dropdown",n)),e.isDefaultPrevented()||o.removeClass("open").trigger("hidden.bs.dropdown",n))})}function i(e){var i=e.attr("data-target");i||(i=(i=e.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var o=i&&t(i);return o&&o.length?o:e.parent()}var o=".dropdown-backdrop",n="[data-toggle=dropdown]",s=function(e){t(e).on("click.bs.dropdown",this.toggle)};s.prototype.toggle=function(o){var n=t(this);if(!n.is(".disabled, :disabled")){var s=i(n),r=s.hasClass("open");if(e(),!r){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t('
').insertAfter(t(this)).on("click",e);var a={relatedTarget:this};if(s.trigger(o=t.Event("show.bs.dropdown",a)),o.isDefaultPrevented())return;s.toggleClass("open").trigger("shown.bs.dropdown",a),n.focus()}return!1}},s.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var o=t(this);if(e.preventDefault(),e.stopPropagation(),!o.is(".disabled, :disabled")){var s=i(o),r=s.hasClass("open");if(!r||r&&27==e.keyCode)return 27==e.which&&s.find(n).focus(),o.click();var a=" li:not(.divider):visible a",l=s.find("[role=menu]"+a+", [role=listbox]"+a);if(l.length){var h=l.index(l.filter(":focus"));38==e.keyCode&&h>0&&h--,40==e.keyCode&&h
').appendTo(document.body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()):e&&e()};var i=t.fn.modal;t.fn.modal=function(i,o){return this.each(function(){var n=t(this),s=n.data("bs.modal"),r=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i);s||n.data("bs.modal",s=new e(this,r)),"string"==typeof i?s[i](o):r.show&&s.show(o)})},t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var i=t(this),o=i.attr("href"),n=t(i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),s=n.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},n.data(),i.data());i.is("a")&&e.preventDefault(),n.modal(s,this).one("hide",function(){i.is(":visible")&&i.focus()})}),t(document).on("show.bs.modal",".modal",function(){t(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){t(document.body).removeClass("modal-open")})}(jQuery),function(t){"use strict";var e=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.prototype.init=function(e,i,o){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o);for(var n=this.options.trigger.split(" "),s=n.length;s--;){var r=n[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},e.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show()},e.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},e.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(e),e.isDefaultPrevented())return;var i=this,o=this.tip();this.setContent(),this.options.animation&&o.addClass("fade");var n="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,r=s.test(n);r&&(n=n.replace(s,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(n),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element);var a=this.getPosition(),l=o[0].offsetWidth,h=o[0].offsetHeight;if(r){var d=this.$element.parent(),c=n,u=document.documentElement.scrollTop||document.body.scrollTop,p="body"==this.options.container?window.innerWidth:d.outerWidth(),f="body"==this.options.container?window.innerHeight:d.outerHeight(),m="body"==this.options.container?0:d.offset().left;n="bottom"==n&&a.top+a.height+h-u>f?"top":"top"==n&&a.top-u-h<0?"bottom":"right"==n&&a.right+l>p?"left":"left"==n&&a.left-l
'}),(e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},e.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var i=t.fn.popover;t.fn.popover=function(i){return this.each(function(){var o=t(this),n=o.data("bs.popover"),s="object"==typeof i&&i;(n||"destroy"!=i)&&(n||o.data("bs.popover",n=new e(this,s)),"string"==typeof i&&n[i]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),function(t){"use strict";function e(i,o){var n,s=t.proxy(this.process,this);this.$element=t(t(i).is("body")?window:i),this.$body=t("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",s),this.options=t.extend({},e.DEFAULTS,o),this.selector=(this.options.target||(n=t(i).attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=t([]),this.targets=t([]),this.activeTarget=null,this.refresh(),this.process()}e.DEFAULTS={offset:10},e.prototype.refresh=function(){var e=this.$element[0]==window?"offset":"position";this.offsets=t([]),this.targets=t([]);var i=this;this.$body.find(this.selector).map(function(){var o=t(this),n=o.data("target")||o.attr("href"),s=/^#./.test(n)&&t(n);return s&&s.length&&s.is(":visible")&&[[s[e]().top+(!t.isWindow(i.$scrollElement.get(0))&&i.$scrollElement.scrollTop()),n]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),o=this.offsets,n=this.targets,s=this.activeTarget;if(e>=i)return s!=(t=n.last()[0])&&this.activate(t);if(s&&e<=o[0])return s!=(t=n[0])&&this.activate(t);for(t=o.length;t--;)s!=n[t]&&e>=o[t]&&(!o[t+1]||e<=o[t+1])&&this.activate(n[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',o=t(i).parents("li").addClass("active");o.parent(".dropdown-menu").length&&(o=o.closest("li.dropdown").addClass("active")),o.trigger("activate.bs.scrollspy")};var i=t.fn.scrollspy;t.fn.scrollspy=function(i){return this.each(function(){var o=t(this),n=o.data("bs.scrollspy"),s="object"==typeof i&&i;n||o.data("bs.scrollspy",n=new e(this,s)),"string"==typeof i&&n[i]()})},t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);e.scrollspy(e.data())})})}(jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};e.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),o=e.data("target");if(o||(o=(o=e.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var n=i.find(".active:last a")[0],s=t.Event("show.bs.tab",{relatedTarget:n});if(e.trigger(s),!s.isDefaultPrevented()){var r=t(o);this.activate(e.parent("li"),i),this.activate(r,r.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:n})})}}},e.prototype.activate=function(e,i,o){function n(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),o&&o()}var s=i.find("> .active"),r=o&&t.support.transition&&s.hasClass("fade");r?s.one(t.support.transition.end,n).emulateTransitionEnd(150):n(),s.removeClass("in")};var i=t.fn.tab;t.fn.tab=function(i){return this.each(function(){var o=t(this),n=o.data("bs.tab");n||o.data("bs.tab",n=new e(this)),"string"==typeof i&&n[i]()})},t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=i,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),t(this).tab("show")})}(jQuery),function(t){"use strict";var e=function(i,o){this.options=t.extend({},e.DEFAULTS,o),this.$window=t(window).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(i),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$window.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var i=t(document).height(),o=this.$window.scrollTop(),n=this.$element.offset(),s=this.options.offset,r=s.top,a=s.bottom;"top"==this.affixed&&(n.top+=o),"object"!=typeof s&&(a=r=s),"function"==typeof r&&(r=s.top(this.$element)),"function"==typeof a&&(a=s.bottom(this.$element));var l=!(null!=this.unpin&&o+this.unpin<=n.top)&&(null!=a&&n.top+this.$element.height()>=i-a?"bottom":null!=r&&r>=o&&"top");if(this.affixed!==l){this.unpin&&this.$element.css("top","");var h="affix"+(l?"-"+l:""),d=t.Event(h+".bs.affix");this.$element.trigger(d),d.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(h).trigger(t.Event(h.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:i-a-this.$element.height()}))}}};var i=t.fn.affix;t.fn.affix=function(i){return this.each(function(){var o=t(this),n=o.data("bs.affix"),s="object"==typeof i&&i;n||o.data("bs.affix",n=new e(this,s)),"string"==typeof i&&n[i]()})},t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),i=e.data();i.offset=i.offset||{},i.offsetBottom&&(i.offset.bottom=i.offsetBottom),i.offsetTop&&(i.offset.top=i.offsetTop),e.affix(i)})})}(jQuery),function(){"use strict";var t,e;t=jQuery,(e=function(e,i){var o,n;return this.options=t.extend({title:null,footer:null,remote:null},t.fn.ekkoLightbox.defaults,i||{}),this.$element=t(e),"",this.modal_id=this.options.modal_id?this.options.modal_id:"ekkoLightbox-"+Math.floor(1e3*Math.random()+1),n='",o='",t(document.body).append('
"),this.modal=t("#"+this.modal_id),this.modal_dialog=this.modal.find(".modal-dialog").first(),this.modal_content=this.modal.find(".modal-content").first(),this.modal_body=this.modal.find(".modal-body").first(),this.modal_header=this.modal.find(".modal-header").first(),this.modal_footer=this.modal.find(".modal-footer").first(),this.lightbox_container=this.modal_body.find(".ekko-lightbox-container").first(),this.lightbox_body=this.lightbox_container.find("> div:first-child").first(),this.showLoading(),this.modal_arrows=null,this.border={top:parseFloat(this.modal_dialog.css("border-top-width"))+parseFloat(this.modal_content.css("border-top-width"))+parseFloat(this.modal_body.css("border-top-width")),right:parseFloat(this.modal_dialog.css("border-right-width"))+parseFloat(this.modal_content.css("border-right-width"))+parseFloat(this.modal_body.css("border-right-width")),bottom:parseFloat(this.modal_dialog.css("border-bottom-width"))+parseFloat(this.modal_content.css("border-bottom-width"))+parseFloat(this.modal_body.css("border-bottom-width")),left:parseFloat(this.modal_dialog.css("border-left-width"))+parseFloat(this.modal_content.css("border-left-width"))+parseFloat(this.modal_body.css("border-left-width"))},this.padding={top:parseFloat(this.modal_dialog.css("padding-top"))+parseFloat(this.modal_content.css("padding-top"))+parseFloat(this.modal_body.css("padding-top")),right:parseFloat(this.modal_dialog.css("padding-right"))+parseFloat(this.modal_content.css("padding-right"))+parseFloat(this.modal_body.css("padding-right")),bottom:parseFloat(this.modal_dialog.css("padding-bottom"))+parseFloat(this.modal_content.css("padding-bottom"))+parseFloat(this.modal_body.css("padding-bottom")),left:parseFloat(this.modal_dialog.css("padding-left"))+parseFloat(this.modal_content.css("padding-left"))+parseFloat(this.modal_body.css("padding-left"))},this.modal.on("show.bs.modal",this.options.onShow.bind(this)).on("shown.bs.modal",function(t){return function(){return t.modal_shown(),t.options.onShown.call(t)}}(this)).on("hide.bs.modal",this.options.onHide.bind(this)).on("hidden.bs.modal",function(e){return function(){return e.gallery&&t(document).off("keydown.ekkoLightbox"),e.modal.remove(),e.options.onHidden.call(e)}}(this)).modal("show",i),this.modal}).prototype={modal_shown:function(){var e;return this.options.remote?(this.gallery=this.$element.data("gallery"),this.gallery&&("document.body"===this.options.gallery_parent_selector||""===this.options.gallery_parent_selector?this.gallery_items=t(document.body).find('*[data-gallery="'+this.gallery+'"]'):this.gallery_items=this.$element.parents(this.options.gallery_parent_selector).first().find('*[data-gallery="'+this.gallery+'"]'),this.gallery_index=this.gallery_items.index(this.$element),t(document).on("keydown.ekkoLightbox",this.navigate.bind(this)),this.options.directional_arrows&&this.gallery_items.length>1&&(this.lightbox_container.append('
'),this.modal_arrows=this.lightbox_container.find("div.flex-direction-nav").first(),this.lightbox_container.find("a"+this.strip_spaces(this.options.left_arrow_class)).on("click",function(t){return function(e){return e.preventDefault(),t.navigate_left()}}(this)),this.lightbox_container.find("a"+this.strip_spaces(this.options.right_arrow_class)).on("click",function(t){return function(e){return e.preventDefault(),t.navigate_right()}}(this)))),this.options.type?"image"===this.options.type?this.preloadImage(this.options.remote,!0):"youtube"===this.options.type&&(e=this.getYoutubeId(this.options.remote))?this.showYoutubeVideo(e):"vimeo"===this.options.type?this.showVimeoVideo(this.options.remote):"instagram"===this.options.type?this.showInstagramVideo(this.options.remote):"url"===this.options.type?this.loadRemoteContent(this.options.remote):"video"===this.options.type?this.showVideoIframe(this.options.remote):this.error('Could not detect remote target type. Force the type using data-type="image|youtube|vimeo|instagram|url|video"'):this.detectRemoteType(this.options.remote)):this.error("No remote target given")},strip_stops:function(t){return t.replace(/\./g,"")},strip_spaces:function(t){return t.replace(/\s/g,"")},isImage:function(t){return t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSwf:function(t){return t.match(/\.(swf)((\?|#).*)?$/i)},getYoutubeId:function(t){var e;return!(!(e=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/))||11!==e[2].length)&&e[2]},getVimeoId:function(t){return t.indexOf("vimeo")>0&&t},getInstagramId:function(t){return t.indexOf("instagram")>0&&t},navigate:function(t){if(39===(t=t||window.event).keyCode||37===t.keyCode){if(39===t.keyCode)return this.navigate_right();if(37===t.keyCode)return this.navigate_left()}},navigateTo:function(e){var i,o;return 0>e||e>this.gallery_items.length-1?this:(this.showLoading(),this.gallery_index=e,this.$element=t(this.gallery_items.get(this.gallery_index)),this.updateTitleAndFooter(),o=this.$element.attr("data-remote")||this.$element.attr("href"),this.detectRemoteType(o,this.$element.attr("data-type")||!1),this.gallery_index+1
'+this.options.loadingMessage+" "),this},showYoutubeVideo:function(t){var e,i,o;return i=null!=this.$element.attr("data-norelated")||this.options.no_related?"&rel=0":"",e=(o=this.checkDimensions(this.$element.data("width")||560))/(560/315),this.showVideoIframe("//www.youtube.com/embed/"+t+"?badge=0&autoplay=1&html5=1"+i,o,e)},showVimeoVideo:function(t){var e,i;return e=(i=this.checkDimensions(this.$element.data("width")||560))/(500/281),this.showVideoIframe(t+"?autoplay=1",i,e)},showInstagramVideo:function(t){var e,i;return i=this.checkDimensions(this.$element.data("width")||612),this.resize(i),e=i+80,this.lightbox_body.html('