jQuery(document).ready(function($){
jQuery('body').on('click','.ajax_more_projects',function(event){
event.preventDefault();
proj_more_btn=jQuery(this);
post_type=proj_more_btn.data("post_type");
cat_name=proj_more_btn.data("cat_name");
content_area=proj_more_btn.parent().prev();
offset=proj_more_btn.data('offset');
orderby=proj_more_btn.data('orderby');
sortby=proj_more_btn.data('sortby');
show_date=proj_more_btn.data('show_date');
show_cats=proj_more_btn.data('show_cats');
show_comments=proj_more_btn.data('show_comments');
show_like=proj_more_btn.data('show_like');
buttons_style=proj_more_btn.data('buttons_style');
show_ajax_expand=proj_more_btn.data('show_ajax_expand');
zoom_btn_text=proj_more_btn.data('zoom_btn_text');
more_btn_text=proj_more_btn.data('more_btn_text');
style=proj_more_btn.data('style');
ajax_btn_text=proj_more_btn.data('ajax_btn_text');
loaded_img_layout=proj_more_btn.data('layout');
all_posts=proj_more_btn.data('all-posts');
number_posts_loaded=proj_more_btn.data('loaded_num');
check_loaded=parseInt(offset)+parseInt(number_posts_loaded);
filter_wrapper=proj_more_btn.parent().parent();
jQuery.ajax({
type: "post",
url: ajax_more_projects.url,
data: "action=hm_ajax_more_projects&nonce="+ajax_more_projects.nonce+"&offset="+offset+"&cat_name="+cat_name+"&orderby="+orderby+"&sortby="+sortby+"&number_posts_loaded="+number_posts_loaded+"&show_date="+show_date+"&show_cats="+show_cats+"&show_comments="+show_comments+"&show_like="+show_like+"&buttons_style="+buttons_style+"&show_ajax_expand="+show_ajax_expand+"&zoom_btn_text="+zoom_btn_text+"&more_btn_text="+more_btn_text+"&style="+style+"&ajax_btn_text="+ajax_btn_text+"&loaded_img_layout="+loaded_img_layout+"&post_type="+post_type,
beforeSend:function (){
proj_more_btn.parent().siblings('.hm_ajax_loader_con').animate({ opacity: 1 }, 300);
proj_more_btn.css({"cursor":"no-drop","opacity":0.4});
},
success: function(data){
if(check_loaded >=all_posts||data==''){
proj_more_btn.parent().siblings('.hm_ajax_loader_con').animate({ opacity: 0 }, 300);
proj_more_btn.css({"cursor":"pointer","opacity":1});
proj_more_btn.parent().animate({ opacity: 0, height: 0 }, 300);
}
if(data!==''){
var $divajax=$('.porto_store').html(data).hide();
$divajax.imagesLoaded(function(){
var htmlll=$divajax.html();
newItems=$(htmlll).appendTo(content_area);
$(content_area).isotope('appended', newItems);
$divajax.html('');
filter_wrapper.find("#filter-by li a").each(function(index, element){
var get_class=$(this).attr("data-option-value");
var lenghty=filter_wrapper.find(".hm_filter_wrapper_con > "+get_class).length;
$(this).find(".num").html(lenghty);
});
$(".porto_galla:not(.done_porto_galla)").owlCarousel({
slideSpeed:900,
autoPlay:3000,
autoHeight:false,
singleItem:true,
stopOnHover:true,
navigation:true,
pagination:true,
navigationText:[
" ",
" "],
});
$('.porto_galla:not(.done_porto_galla)').magnificPopup({
delegate: 'a.feature_inner_ling',
type: 'image',
gallery: {
enabled: true
},
removalDelay: 500,
callbacks: {
beforeOpen: function(){
this.st.image.markup=this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
this.st.mainClass="mfp-zoom-in";
}},
closeOnContentClick: true,
});
$(".porto_galla").addClass("done_porto_galla");
$('.porto_block').each(function(index, element){
var gall_con=$(this);
var expander=$(this).find("a.expand_img");
var expander_b=$(this).find("a.icon_expand");
expander.on('click', function(){
gall_con.find("a:first").click();
return false;
});
expander_b.click(function(){
gall_con.find("a:first").click();
return false;
});
});
$(".porto_block").addClass("done_porto_block");
$(".magnific-popup:not(done_magnific), a[data-rel^='magnific-popup']:not(done_magnific)").magnificPopup({
type: 'image',
mainClass: 'mfp-with-zoom',
zoom: {
enabled: true,
duration: 300,
easing: 'ease-in-out',
opener: function(openerElement){
return openerElement.is('img') ? openerElement:openerElement.find('img');
}}
});
$(".magnific-popup, a[data-rel^='magnific-popup']").addClass("done_magnific");
$('.porto_full_desc .hm_filter_wrapper_con > .filter_item_block > .porto_block:not(.hoverdir_done)').each(function(){
$(this).hoverdir({
hoverElem:'.porto_desc'
});
$(this).addClass('hoverdir_done');
});
proj_more_btn.parent().siblings('.hm_ajax_loader_con').animate({ opacity: 0 }, 300);
proj_more_btn.css({"cursor":"pointer","opacity":1});
});
}
proj_more_btn.data('offset', offset+number_posts_loaded);
},
complete: function (data){
}});
});
});
jQuery(document).ready(function($){
jQuery(".hm_filter_wrapper.masonry_posts .centered .btn_c").click(function(event){
event.preventDefault();
more_button=jQuery(this);
content_area=more_button.parent().prev();
offset=more_button.data('offset');
all_posts=more_button.data('all-posts');
post_type_is=more_button.data('post-type');
masonry_column=more_button.data('masonry-column');
masonry_type=more_button.data('masonry-type');
number_posts_loaded=more_button.data('loaded_num');
check_loaded=parseInt(offset)+parseInt(number_posts_loaded);
jQuery.ajax({
type: "post",
url: ajax_masonry.url,
dataType: 'html',
data: "action=ajax_masonry&nonce="+ajax_masonry.nonce+"&offset="+offset+"&number_posts_loaded="+number_posts_loaded+"&post_type_is="+post_type_is+"&masonry_column="+masonry_column+"&masonry_type="+masonry_type,
beforeSend:function (){
content_area.animate({ opacity: 0.3 }, 300);
$('.hm_ajax_loader_con').animate({ opacity: 1 }, 300);
more_button.css({"cursor":"no-drop","opacity":0.4});
},
success: function(data){
if(check_loaded >=all_posts){
content_area.animate({ opacity: 1 }, 300);
$('.hm_ajax_loader_con').animate({ opacity: 0 }, 300);
more_button.css({"cursor":"pointer","opacity":1});
more_button.parent().append(''+ajax_masonry.empty+' ').hide().fadeIn();
more_button.remove();
}
if(data!==''){
var $divajax=$('.masonry_store').html(data).hide();
$divajax.imagesLoaded(function(){
var htmlll=$divajax.html();
newItems=$(htmlll).appendTo(content_area);
$(content_area).isotope('appended', newItems);
$divajax.html('');
if($.isFunction($.fn.mediaelementplayer)){
$("audio.hosted_audio:not(.self_hosted_worked)").mediaelementplayer();
$("video.hosted_video:not(.self_hosted_worked)").mediaelementplayer({
alwaysShowControls: true,
});
}
$("audio.hosted_audio:not(.self_hosted_worked), video.hosted_video:not(.self_hosted_worked)").addClass("done_porto_galla");
$(".porto_galla:not(.done_porto_galla)").owlCarousel({
slideSpeed:900,
autoPlay:3000,
autoHeight:false,
singleItem:true,
stopOnHover:true,
navigation:true,
pagination:true,
navigationText:[
" ",
" "],
});
$('.porto_galla:not(.done_porto_galla)').magnificPopup({
delegate: 'a',
type: 'image',
gallery: {
enabled: true
},
removalDelay: 500,
callbacks: {
beforeOpen: function(){
this.st.image.markup=this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
this.st.mainClass="mfp-zoom-in";
}},
closeOnContentClick: true,
});
$(".porto_galla").addClass("done_porto_galla");
$(".magnific-popup:not(done_magnific), a[data-rel^='magnific-popup']:not(done_magnific)").magnificPopup({
type: 'image',
mainClass: 'mfp-with-zoom',
zoom: {
enabled: true,
duration: 300,
easing: 'ease-in-out',
opener: function(openerElement){
return openerElement.is('img') ? openerElement:openerElement.find('img');
}}
});
$(".magnific-popup, a[data-rel^='magnific-popup']").addClass("done_magnific");
$('.expand_image').each(function(index, element){
$(this).click(function(){
$(this).parent().siblings("a").click();
$(this).parent().siblings(".porto_galla").find("a:first").click();
return false;
});
});
$('.animated').each(function(index, element){
var elem=$(this);
var animation=elem.data('animation');
if(!elem.hasClass('visible')){
var animationDelay=elem.data('animation-delay');
if(animationDelay){
setTimeout(function(){
elem.addClass(animation + " visible");
elem.removeClass('hiding');
}, animationDelay);
}else{
elem.addClass(animation + " visible");
elem.removeClass('hiding');
}}
});
content_area.animate({ opacity: 1 }, 300);
$('.hm_ajax_loader_con').animate({ opacity: 0 }, 300);
more_button.css({"cursor":"pointer","opacity":1});
});
}
more_button.data('offset', offset+number_posts_loaded);
}
,
complete: function (data){
}});
});
});
jQuery(document).ready(function($){
jQuery(".hm_filter_wrapper.masonry_grid_posts .centered .btn_c").click(function(event){
event.preventDefault();
more_button=jQuery(this);
content_area=more_button.parent().prev();
offset=more_button.data('offset');
all_posts=more_button.data('all-posts');
post_type_is=more_button.data('post-type');
number_posts_loaded=more_button.data('loaded_num');
check_loaded=parseInt(offset)+parseInt(number_posts_loaded);
jQuery.ajax({
type: "post",
url: ajax_grid.url,
dataType: 'html',
data: "action=ajax_grid&nonce="+ajax_grid.nonce+"&offset="+offset+"&number_posts_loaded="+number_posts_loaded+"&post_type_is="+post_type_is,
beforeSend:function (){
content_area.animate({ opacity: 0.3 }, 300);
$('.hm_ajax_loader_con').animate({ opacity: 1 }, 300);
more_button.css({"cursor":"no-drop","opacity":0.4});
},
success: function(data){
if(check_loaded >=all_posts){
content_area.animate({ opacity: 1 }, 300);
$('.hm_ajax_loader_con').animate({ opacity: 0 }, 300);
more_button.css({"cursor":"pointer","opacity":1});
more_button.parent().append(''+ajax_grid.empty+' ').hide().fadeIn();
more_button.remove();
}
if(data!==''){
var $divajax=$('.grid_store').html(data).hide();
$divajax.imagesLoaded(function(){
var htmlll=$divajax.html();
newItems=$(htmlll).appendTo(content_area);
$(content_area).isotope('appended', newItems);
$divajax.html('');
if($.isFunction($.fn.mediaelementplayer)){
$("audio.hosted_audio:not(.self_hosted_worked)").mediaelementplayer();
$("video.hosted_video:not(.self_hosted_worked)").mediaelementplayer({
alwaysShowControls: true,
});
}
$("audio.hosted_audio:not(.self_hosted_worked), video.hosted_video:not(.self_hosted_worked)").addClass("done_porto_galla");
$(".porto_galla:not(.done_porto_galla)").owlCarousel({
slideSpeed:900,
autoPlay:3000,
autoHeight:false,
singleItem:true,
stopOnHover:true,
navigation:true,
pagination:true,
navigationText:[
" ",
" "],
});
$('.porto_galla:not(.done_porto_galla)').magnificPopup({
delegate: 'a',
type: 'image',
gallery: {
enabled: true
},
removalDelay: 500,
callbacks: {
beforeOpen: function(){
this.st.image.markup=this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
this.st.mainClass="mfp-zoom-in";
}},
closeOnContentClick: true,
});
$(".porto_galla").addClass("done_porto_galla");
$(".magnific-popup:not(done_magnific), a[data-rel^='magnific-popup']:not(done_magnific)").magnificPopup({
type: 'image',
mainClass: 'mfp-with-zoom',
zoom: {
enabled: true,
duration: 300,
easing: 'ease-in-out',
opener: function(openerElement){
return openerElement.is('img') ? openerElement:openerElement.find('img');
}}
});
$(".magnific-popup, a[data-rel^='magnific-popup']").addClass("done_magnific");
$('.animated').each(function(index, element){
var elem=$(this);
var animation=elem.data('animation');
if(!elem.hasClass('visible')){
var animationDelay=elem.data('animation-delay');
if(animationDelay){
setTimeout(function(){
elem.addClass(animation + " visible");
elem.removeClass('hiding');
}, animationDelay);
}else{
elem.addClass(animation + " visible");
elem.removeClass('hiding');
}}
});
content_area.animate({ opacity: 1 }, 300);
$('.hm_ajax_loader_con').animate({ opacity: 0 }, 300);
more_button.css({"cursor":"pointer","opacity":1});
});
}
more_button.data('offset', offset+number_posts_loaded);
},
complete: function (data){
}});
});
});
jQuery(document).ready(function($){
jQuery(".hm_filter_wrapper.timeline .centered .btn_c").click(function(event){
event.preventDefault();
more_button=jQuery(this);
content_area=more_button.parent().prev();
offset=more_button.data('offset');
all_posts=more_button.data('all-posts');
post_type_is=more_button.data('post-type');
number_posts_loaded=more_button.data('loaded_num');
check_loaded=parseInt(offset)+parseInt(number_posts_loaded);
jQuery.ajax({
type: "post",
url: ajax_timeline.url,
dataType: 'html',
data: "action=ajax_timeline&nonce="+ajax_timeline.nonce+"&offset="+offset+"&number_posts_loaded="+number_posts_loaded+"&post_type_is="+post_type_is,
beforeSend:function (){
content_area.animate({ opacity: 0.3 }, 300);
$('.hm_ajax_loader_con').animate({ opacity: 1 }, 300);
more_button.css({"cursor":"no-drop","opacity":0.4});
},
success: function(data){
$('.hm_filter_wrapper_con').children('li').addClass('timeline_posts_loaded');
var $divajax=$('.timeline_store').html(data).hide();
var store_con=$('.timeline_store').html();
var htmlll=$divajax.html();
if(check_loaded >=all_posts){
content_area.animate({ opacity: 1 }, 300);
$('.hm_ajax_loader_con').animate({ opacity: 0 }, 300);
more_button.css({"cursor":"pointer","opacity":1});
more_button.parent().append(''+ajax_timeline.empty+' ').hide().fadeIn();
more_button.remove();
}
if(data!==''){
$divajax.imagesLoaded(function(){
newItems=$(htmlll).appendTo(content_area);
$(content_area).isotope('appended', newItems);
$divajax.html('');
if($.isFunction($.fn.mediaelementplayer)){
$("audio.hosted_audio:not(.self_hosted_worked)").mediaelementplayer();
$("video.hosted_video:not(.self_hosted_worked)").mediaelementplayer({
alwaysShowControls: true,
});
}
$("audio.hosted_audio:not(.self_hosted_worked), video.hosted_video:not(.self_hosted_worked)").addClass("done_porto_galla");
$(".porto_galla:not(.done_porto_galla)").owlCarousel({
slideSpeed:900,
autoPlay:3000,
autoHeight:false,
singleItem:true,
stopOnHover:true,
navigation:true,
pagination:true,
navigationText:[
" ",
" "],
});
$('.porto_galla:not(.done_porto_galla)').magnificPopup({
delegate: 'a',
type: 'image',
gallery: {
enabled: true
},
removalDelay: 500,
callbacks: {
beforeOpen: function(){
this.st.image.markup=this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
this.st.mainClass="mfp-zoom-in";
}},
closeOnContentClick: true,
});
$(".porto_galla").addClass("done_porto_galla");
$(".magnific-popup:not(done_magnific), a[data-rel^='magnific-popup']:not(done_magnific)").magnificPopup({
type: 'image',
mainClass: 'mfp-with-zoom',
zoom: {
enabled: true,
duration: 300,
easing: 'ease-in-out',
opener: function(openerElement){
return openerElement.is('img') ? openerElement:openerElement.find('img');
}}
});
$(".magnific-popup, a[data-rel^='magnific-popup']").addClass("done_magnific");
$('.hm_filter_wrapper_con').children('li:not(.timeline_posts_loaded)').each(function(index, element){
var li_item=$(this);
var li_item_prev=$(this).prev();
setTimeout(function(){
var last_child_offset=parseInt(li_item.css('top'));
var prev_last_offset=parseInt(li_item_prev.css('top'));
var offset_icon1=last_child_offset - prev_last_offset;
var go_top_to=0;
if(offset_icon1 <=87){
go_top_to=87 - offset_icon1;
li_item.find('.timeline_post_format').animate({
top: go_top_to,
}, 300);
}
var left_position=li_item.position().left;
if(left_position==0){
li_item.addClass('timeline_on_left');
}else{
li_item.addClass('timeline_on_right');
}}, 500);
});
$('.animated').each(function(index, element){
var elem=$(this);
var animation=elem.data('animation');
if(!elem.hasClass('visible')){
var animationDelay=elem.data('animation-delay');
if(animationDelay){
setTimeout(function(){
elem.addClass(animation + " visible");
elem.removeClass('hiding');
}, animationDelay);
}else{
elem.addClass(animation + " visible");
elem.removeClass('hiding');
}}
});
content_area.animate({ opacity: 1 }, 300);
$('.hm_ajax_loader_con').animate({ opacity: 0 }, 300);
more_button.css({"cursor":"pointer","opacity":1});
});
}
more_button.data('offset', offset+number_posts_loaded);
},
complete: function (data){
}});
});
});
(function($){
"use strict";
$(".newsletter_form").on('submit', function(event){
var news_letter_form=$(this);
var subscribe_mail=news_letter_form.find('.subscribe-mail').val();
$.ajax({
type: "post",
url: mailchimp_ajax_script.url,
data: "action=hm_newsletter_sebscribe&subs_mail="+subscribe_mail,
beforeSend: function(){
$('.newsletter_button').find(".refresh_loader").css({"opacity":"1"}).siblings("i").css({"opacity":"0"});
$('#subscribe_output').hide(300);
},
success: function(data){
$('#subscribe_output').html(data);
$('.newsletter_button').find(".subscribe_true").css({"opacity":"1"}).siblings("i").css({"opacity":"0"});
$('#subscribe_output').show(300);
setTimeout(function(){
$('#subscribe_output').hide(300);
$('.newsletter_button').find(".subscribe_btn").css({"opacity":"1"}).siblings("i").css({"opacity":"0"});
}, 4000);
$('#newsletter_form').find('.subscribe-mail').val('');
}});
event.preventDefault();
});
}(jQuery));
(function($){
'use strict';
if(typeof wpcf7==='undefined'||wpcf7===null){
return;
}
wpcf7=$.extend({
cached: 0,
inputs: []
}, wpcf7);
$(function(){
wpcf7.supportHtml5=(function(){
var features={};
var input=document.createElement('input');
features.placeholder='placeholder' in input;
var inputTypes=[ 'email', 'url', 'tel', 'number', 'range', 'date' ];
$.each(inputTypes, function(index, value){
input.setAttribute('type', value);
features[ value ]=input.type!=='text';
});
return features;
})();
$('div.wpcf7 > form').each(function(){
var $form=$(this);
wpcf7.initForm($form);
if(wpcf7.cached){
wpcf7.refill($form);
}});
});
wpcf7.getId=function(form){
return parseInt($('input[name="_wpcf7"]', form).val(), 10);
};
wpcf7.initForm=function(form){
var $form=$(form);
$form.submit(function(event){
if(! wpcf7.supportHtml5.placeholder){
$('[placeholder].placeheld', $form).each(function(i, n){
$(n).val('').removeClass('placeheld');
});
}
if(typeof window.FormData==='function'){
wpcf7.submit($form);
event.preventDefault();
}});
$('.wpcf7-submit', $form).after(' ');
wpcf7.toggleSubmit($form);
$form.on('click', '.wpcf7-acceptance', function(){
wpcf7.toggleSubmit($form);
});
$('.wpcf7-exclusive-checkbox', $form).on('click', 'input:checkbox', function(){
var name=$(this).attr('name');
$form.find('input:checkbox[name="' + name + '"]').not(this).prop('checked', false);
});
$('.wpcf7-list-item.has-free-text', $form).each(function(){
var $freetext=$(':input.wpcf7-free-text', this);
var $wrap=$(this).closest('.wpcf7-form-control');
if($(':checkbox, :radio', this).is(':checked')){
$freetext.prop('disabled', false);
}else{
$freetext.prop('disabled', true);
}
$wrap.on('change', ':checkbox, :radio', function(){
var $cb=$('.has-free-text', $wrap).find(':checkbox, :radio');
if($cb.is(':checked')){
$freetext.prop('disabled', false).focus();
}else{
$freetext.prop('disabled', true);
}});
});
if(! wpcf7.supportHtml5.placeholder){
$('[placeholder]', $form).each(function(){
$(this).val($(this).attr('placeholder'));
$(this).addClass('placeheld');
$(this).focus(function(){
if($(this).hasClass('placeheld')){
$(this).val('').removeClass('placeheld');
}});
$(this).blur(function(){
if(''===$(this).val()){
$(this).val($(this).attr('placeholder'));
$(this).addClass('placeheld');
}});
});
}
if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.date){
$form.find('input.wpcf7-date[type="date"]').each(function(){
$(this).datepicker({
dateFormat: 'yy-mm-dd',
minDate: new Date($(this).attr('min')),
maxDate: new Date($(this).attr('max'))
});
});
}
if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.number){
$form.find('input.wpcf7-number[type="number"]').each(function(){
$(this).spinner({
min: $(this).attr('min'),
max: $(this).attr('max'),
step: $(this).attr('step')
});
});
}
$('.wpcf7-character-count', $form).each(function(){
var $count=$(this);
var name=$count.attr('data-target-name');
var down=$count.hasClass('down');
var starting=parseInt($count.attr('data-starting-value'), 10);
var maximum=parseInt($count.attr('data-maximum-value'), 10);
var minimum=parseInt($count.attr('data-minimum-value'), 10);
var updateCount=function(target){
var $target=$(target);
var length=$target.val().length;
var count=down ? starting - length:length;
$count.attr('data-current-value', count);
$count.text(count);
if(maximum&&maximum < length){
$count.addClass('too-long');
}else{
$count.removeClass('too-long');
}
if(minimum&&length < minimum){
$count.addClass('too-short');
}else{
$count.removeClass('too-short');
}};
$(':input[name="' + name + '"]', $form).each(function(){
updateCount(this);
$(this).keyup(function(){
updateCount(this);
});
});
});
$form.on('change', '.wpcf7-validates-as-url', function(){
var val=$.trim($(this).val());
if(val
&& ! val.match(/^[a-z][a-z0-9.+-]*:/i)
&& -1!==val.indexOf('.')){
val=val.replace(/^\/+/, '');
val='http://' + val;
}
$(this).val(val);
});
};
wpcf7.submit=function(form){
if(typeof window.FormData!=='function'){
return;
}
var $form=$(form);
$('.ajax-loader', $form).addClass('is-active');
wpcf7.clearResponse($form);
var formData=new FormData($form.get(0));
var detail={
id: $form.closest('div.wpcf7').attr('id'),
status: 'init',
inputs: [],
formData: formData
};
$.each($form.serializeArray(), function(i, field){
if('_wpcf7'==field.name){
detail.contactFormId=field.value;
}else if('_wpcf7_version'==field.name){
detail.pluginVersion=field.value;
}else if('_wpcf7_locale'==field.name){
detail.contactFormLocale=field.value;
}else if('_wpcf7_unit_tag'==field.name){
detail.unitTag=field.value;
}else if('_wpcf7_container_post'==field.name){
detail.containerPostId=field.value;
}else if(field.name.match(/^_wpcf7_\w+_free_text_/)){
var owner=field.name.replace(/^_wpcf7_\w+_free_text_/, '');
detail.inputs.push({
name: owner + '-free-text',
value: field.value
});
}else if(field.name.match(/^_/)){
}else{
detail.inputs.push(field);
}});
wpcf7.triggerEvent($form.closest('div.wpcf7'), 'beforesubmit', detail);
var ajaxSuccess=function(data, status, xhr, $form){
detail.id=$(data.into).attr('id');
detail.status=data.status;
detail.apiResponse=data;
var $message=$('.wpcf7-response-output', $form);
switch(data.status){
case 'validation_failed':
$.each(data.invalidFields, function(i, n){
$(n.into, $form).each(function(){
wpcf7.notValidTip(this, n.message);
$('.wpcf7-form-control', this).addClass('wpcf7-not-valid');
$('[aria-invalid]', this).attr('aria-invalid', 'true');
});
});
$message.addClass('wpcf7-validation-errors');
$form.addClass('invalid');
wpcf7.triggerEvent(data.into, 'invalid', detail);
break;
case 'acceptance_missing':
$message.addClass('wpcf7-acceptance-missing');
$form.addClass('unaccepted');
wpcf7.triggerEvent(data.into, 'unaccepted', detail);
break;
case 'spam':
$message.addClass('wpcf7-spam-blocked');
$form.addClass('spam');
wpcf7.triggerEvent(data.into, 'spam', detail);
break;
case 'aborted':
$message.addClass('wpcf7-aborted');
$form.addClass('aborted');
wpcf7.triggerEvent(data.into, 'aborted', detail);
break;
case 'mail_sent':
$message.addClass('wpcf7-mail-sent-ok');
$form.addClass('sent');
wpcf7.triggerEvent(data.into, 'mailsent', detail);
break;
case 'mail_failed':
$message.addClass('wpcf7-mail-sent-ng');
$form.addClass('failed');
wpcf7.triggerEvent(data.into, 'mailfailed', detail);
break;
default:
var customStatusClass='custom-'
+ data.status.replace(/[^0-9a-z]+/i, '-');
$message.addClass('wpcf7-' + customStatusClass);
$form.addClass(customStatusClass);
}
wpcf7.refill($form, data);
wpcf7.triggerEvent(data.into, 'submit', detail);
if('mail_sent'==data.status){
$form.each(function(){
this.reset();
});
wpcf7.toggleSubmit($form);
}
if(! wpcf7.supportHtml5.placeholder){
$form.find('[placeholder].placeheld').each(function(i, n){
$(n).val($(n).attr('placeholder'));
});
}
$message.html('').append(data.message).slideDown('fast');
$message.attr('role', 'alert');
$('.screen-reader-response', $form.closest('.wpcf7')).each(function(){
var $response=$(this);
$response.html('').attr('role', '').append(data.message);
if(data.invalidFields){
var $invalids=$('
'),e("body").append(n),s=n.get(0),t=window.getComputedStyle?window.getComputedStyle(s,"").color:(s.currentStyle||s.style||{}).color,n.remove(),t.replace(/ /g,"")!==a}function p(t){return t?e("
").text(t).html():""}function m(){return navigator.cpuClass&&!navigator.product}function v(){return window.XMLHttpRequest!==void 0?!0:!1}function h(e){var t;return e[0].multiple?!0:(t=n(e,"size"),!t||1>=t?!1:!0)}function C(){return!1}function w(e,t){var n="none";s(e,t,{"selectstart dragstart mousedown":C}),e.css({MozUserSelect:n,msUserSelect:n,webkitUserSelect:n,userSelect:n})}function b(e,t,n){var s=e.val();""===s?s=n.fileDefaultHtml:(s=s.split(/[\/\\]+/),s=s[s.length-1]),t.text(s)}function y(e,t,n){var s,a;for(s=[],e.each(function(){var e;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(s.push({el:this,name:e,old:this.style[e]}),this.style[e]=t[e])}),n();s.length;)a=s.pop(),a.el.style[a.name]=a.old}function g(e,t){var n;n=e.parents(),n.push(e[0]),n=n.not(":visible"),y(n,{visibility:"hidden",display:"block",position:"absolute"},t)}function k(e,t){return function(){e.unwrap().unwrap().unbind(t.eventNamespace)}}var H=!0,x=!1,A=[{match:function(e){return e.is("a, button, :submit, :reset, input[type='button']")},apply:function(e,t){var r,l,o,d,f;return l=t.submitDefaultHtml,e.is(":reset")&&(l=t.resetDefaultHtml),d=e.is("a, button")?function(){return e.html()||l}:function(){return p(n(e,"value"))||l},o=c(e,t,{divClass:t.buttonClass,spanHtml:d()}),r=o.div,a(e,r,t),f=!1,s(r,t,{"click touchend":function(){var t,s,a,i;f||e.is(":disabled")||(f=!0,e[0].dispatchEvent?(t=document.createEvent("MouseEvents"),t.initEvent("click",!0,!0),s=e[0].dispatchEvent(t),e.is("a")&&s&&(a=n(e,"target"),i=n(e,"href"),a&&"_self"!==a?window.open(i,a):document.location.href=i)):e.click(),f=!1)}}),w(r,t),{remove:function(){return r.after(e),r.remove(),e.unbind(t.eventNamespace),e},update:function(){i(r,t),u(r,e,t),e.detach(),o.span.html(d()).append(e)}}}},{match:function(e){return e.is(":checkbox")},apply:function(e,t){var n,r,o;return n=c(e,t,{divClass:t.checkboxClass}),r=n.div,o=n.span,a(e,r,t),s(e,t,{"click touchend":function(){l(o,e,t)}}),l(o,e,t),{remove:k(e,t),update:function(){i(r,t),o.removeClass(t.checkedClass),l(o,e,t),u(r,e,t)}}}},{match:function(e){return e.is(":file")},apply:function(t,r){function l(){b(t,p,r)}var d,f,p,v;return d=c(t,r,{divClass:r.fileClass,spanClass:r.fileButtonClass,spanHtml:r.fileButtonHtml,spanWrap:"after"}),f=d.div,v=d.span,p=e("
").html(r.fileDefaultHtml),p.addClass(r.filenameClass),p=o(t,p,"after"),n(t,"size")||n(t,"size",f.width()/10),a(t,f,r),l(),m()?s(t,r,{click:function(){t.trigger("change"),setTimeout(l,0)}}):s(t,r,{change:l}),w(p,r),w(v,r),{remove:function(){return p.remove(),v.remove(),t.unwrap().unbind(r.eventNamespace)},update:function(){i(f,r),b(t,p,r),u(f,t,r)}}}},{match:function(e){if(e.is("input")){var t=(" "+n(e,"type")+" ").toLowerCase(),s=" color date datetime datetime-local email month number password search tel text time url week ";return s.indexOf(t)>=0}return!1},apply:function(e,t){var s,i;return s=n(e,"type"),e.addClass(t.inputClass),i=d(e,t),a(e,e,t),t.inputAddTypeAsClass&&e.addClass(s),{remove:function(){e.removeClass(t.inputClass),t.inputAddTypeAsClass&&e.removeClass(s),i&&e.unwrap()},update:C}}},{match:function(e){return e.is(":radio")},apply:function(t,r){var o,d,f;return o=c(t,r,{divClass:r.radioClass}),d=o.div,f=o.span,a(t,d,r),s(t,r,{"click touchend":function(){e.uniform.update(e(':radio[name="'+n(t,"name")+'"]'))}}),l(f,t,r),{remove:k(t,r),update:function(){i(d,r),l(f,t,r),u(d,t,r)}}}},{match:function(e){return e.is("select")&&!h(e)?!0:!1},apply:function(t,n){var r,l,o,d;return n.selectAutoWidth&&g(t,function(){d=t.width()}),r=c(t,n,{divClass:n.selectClass,spanHtml:(t.find(":selected:first")||t.find("option:first")).html(),spanWrap:"before"}),l=r.div,o=r.span,n.selectAutoWidth?g(t,function(){y(e([o[0],l[0]]),{display:"block"},function(){var e;e=o.outerWidth()-o.width(),l.width(d+e),o.width(d)})}):l.addClass("fixedWidth"),a(t,l,n),s(t,n,{change:function(){o.html(t.find(":selected").html()),l.removeClass(n.activeClass)},"click touchend":function(){var e=t.find(":selected").html();o.html()!==e&&t.trigger("change")},keyup:function(){o.html(t.find(":selected").html())}}),w(o,n),{remove:function(){return o.remove(),t.unwrap().unbind(n.eventNamespace),t},update:function(){n.selectAutoWidth?(e.uniform.restore(t),t.uniform(n)):(i(l,n),o.html(t.find(":selected").html()),u(l,t,n))}}}},{match:function(e){return e.is("select")&&h(e)?!0:!1},apply:function(e,t){var n;return e.addClass(t.selectMultiClass),n=d(e,t),a(e,e,t),{remove:function(){e.removeClass(t.selectMultiClass),n&&e.unwrap()},update:C}}},{match:function(e){return e.is("textarea")},apply:function(e,t){var n;return e.addClass(t.textareaClass),n=d(e,t),a(e,e,t),{remove:function(){e.removeClass(t.textareaClass),n&&e.unwrap()},update:C}}}];m()&&!v()&&(H=!1),e.uniform={defaults:{activeClass:"active",autoHide:!0,buttonClass:"button",checkboxClass:"checker",checkedClass:"checked",disabledClass:"disabled",eventNamespace:".uniform",fileButtonClass:"action",fileButtonHtml:"Choose File",fileClass:"uploader",fileDefaultHtml:"No file selected",filenameClass:"filename",focusClass:"focus",hoverClass:"hover",idPrefix:"uniform",inputAddTypeAsClass:!0,inputClass:"uniform-input",radioClass:"radio",resetDefaultHtml:"Reset",resetSelector:!1,selectAutoWidth:!0,selectClass:"selector",selectMultiClass:"uniform-multiselect",submitDefaultHtml:"Submit",textareaClass:"uniform",useID:!0,wrapperClass:null},elements:[]},e.fn.uniform=function(t){var n=this;return t=e.extend({},e.uniform.defaults,t),x||(x=!0,f()&&(H=!1)),H?(t.resetSelector&&e(t.resetSelector).mouseup(function(){window.setTimeout(function(){e.uniform.update(n)},10)}),this.each(function(){var n,s,a,i=e(this);if(i.data("uniformed"))return e.uniform.update(i),void 0;for(n=0;A.length>n;n+=1)if(s=A[n],s.match(i,t))return a=s.apply(i,t),i.data("uniformed",a),e.uniform.elements.push(i.get(0)),void 0})):this},e.uniform.restore=e.fn.uniform.restore=function(n){n===t&&(n=e.uniform.elements),e(n).each(function(){var t,n,s=e(this);n=s.data("uniformed"),n&&(n.remove(),t=e.inArray(this,e.uniform.elements),t>=0&&e.uniform.elements.splice(t,1),s.removeData("uniformed"))})},e.uniform.update=e.fn.uniform.update=function(n){n===t&&(n=e.uniform.elements),e(n).each(function(){var t,n=e(this);t=n.data("uniformed"),t&&t.update(n,t.options)})}})(jQuery);
(function($){
$(document).ready(function(){
var $locked_containers=[];
$('.inf_infusionsoft_custom_html_form input[type="radio"], .inf_infusionsoft_custom_html_form input[type="checkbox"]').uniform();
var $body=$('body');
$body.on('click', 'span.inf_infusionsoft_close_button', function(){
var container=$(this).parent().parent();
container.addClass('inf_infusionsoft_exit_animation');
if(container.hasClass('inf_infusionsoft_click_trigger')){
setTimeout(function(){
container.removeClass('inf_infusionsoft_visible');
container.removeClass('inf_infusionsoft_animated');
container.removeClass('inf_infusionsoft_exit_animation');
}, 400);
}else{
setTimeout(function(){
container.remove();
}, 400);
}
$('body').removeClass('inf_infusionsoft_popup_active');
return false;
});
function update_stats_table($type, $this_button){
var $optin_id=$this_button.data('optin_id'),
$page_id=$this_button.data('page_id'),
$list_id=$this_button.data('list_id');
var $stats_data=JSON.stringify({
'type': $type,
'optin_id': $optin_id,
'page_id': $page_id,
'list_id': $list_id
});
$.ajax({
type: 'POST',
url: infusionsoftSettings.ajaxurl,
data: {
action:'infusionsoft_handle_stats_adding',
stats_data_array:$stats_data,
update_stats_nonce:infusionsoftSettings.stats_nonce
}});
}
function setCookieExpire(days){
var ms=days*24*60*60*1000;
var date=new Date();
date.setTime(date.getTime() + ms);
return "; expires=" + date.toUTCString();
}
function checkCookieValue(cookieName, value){
return parseCookies()[cookieName]==value;
}
function parseCookies(){
var cookies=document.cookie.split('; ');
var ret={};
for(var i=cookies.length - 1; i >=0; i--){
var el=cookies[i].split('=');
ret[el[0]]=el[1];
}
return ret;
}
function set_cookie($expire, $cookie_content){
$cookie_content=''==$cookie_content ? 'etInfusionsoftCookie=true':$cookie_content;
cookieExpire=setCookieExpire($expire);
document.cookie=$cookie_content + cookieExpire + "; path=/";
}
function get_url_parameter(param_name){
var page_url=window.location.search.substring(1);
var url_variables=page_url.split('&');
for(var i=0; i < url_variables.length; i++){
var curr_param_name=url_variables[i].split('=');
if(curr_param_name[0]==param_name){
return curr_param_name[1];
}}
}
function make_popup_visible($popup, $delay, $cookie_exp, $cookie_content){
if(! $popup.hasClass('inf_infusionsoft_visible')){
$('.accept_consent').removeAttr('checked');
setTimeout(function(){
$popup.addClass('inf_infusionsoft_visible inf_infusionsoft_animated');
$stats_data_container=0!=$popup.find('.inf_infusionsoft_custom_html_form').length ? $popup.find('.inf_infusionsoft_custom_html_form'):$popup.find('.inf_infusionsoft_submit_subscription');
update_stats_table('imp', $stats_data_container);
if(''!=$cookie_exp){
set_cookie($cookie_exp, $cookie_content);
}
if($('.inf_infusionsoft_resize').length){
$('.inf_infusionsoft_resize.inf_infusionsoft_visible').each(function(){
define_popup_position($(this), true, 0);
});
}
display_image($popup);
}, $delay);
}}
function display_image($popup){
setTimeout(function(){
$popup.find('.inf_infusionsoft_image').addClass('inf_infusionsoft_visible_image');
}, 500);
}
function auto_popup($current_popup_auto, $delay){
var page_id=$current_popup_auto.find('.inf_infusionsoft_submit_subscription').data('page_id'),
optin_id=$current_popup_auto.find('.inf_infusionsoft_submit_subscription').data('optin_id'),
list_id=$current_popup_auto.find('.inf_infusionsoft_submit_subscription').data('list_id');
if(! $current_popup_auto.hasClass('inf_infusionsoft_animated')){
var $cookies_expire_auto=$current_popup_auto.data('cookie_duration') ? $current_popup_auto.data('cookie_duration'):false,
$already_subscribed=checkCookieValue('inf_infusionsoft_subscribed_to_' + optin_id + list_id, 'true');
if(((false!==$cookies_expire_auto&&! checkCookieValue('etInfusionsoftCookie_' + optin_id, 'true'))||false==$cookies_expire_auto)&&! $already_subscribed){
if(false!==$cookies_expire_auto){
make_popup_visible($current_popup_auto, $delay, $cookies_expire_auto, 'etInfusionsoftCookie_' + optin_id + '=true');
}else{
make_popup_visible($current_popup_auto, $delay, '', '');
}}
}}
$('.inf_infusionsoft_click_trigger_element').on('click', function(e){
var optin_id=$(this).data('optin_id')
$('.inf_infusionsoft_click_trigger:not(.inf_infusionsoft_visible)').each(function(){
var $this_el=$(this);
current_optin_id=$(this).find('.inf_infusionsoft_submit_subscription').data('optin_id');
e.preventDefault();
if(current_optin_id==optin_id){
make_popup_visible($this_el, 0, '', '');
}});
});
function exit_trigger($current_popup_exit){
var page_id=$current_popup_exit.find('.inf_infusionsoft_submit_subscription').data('page_id'),
optin_id=$current_popup_exit.find('.inf_infusionsoft_submit_subscription').data('optin_id'),
list_id=$current_popup_exit.find('.inf_infusionsoft_submit_subscription').data('list_id');
if(! $current_popup_exit.hasClass('inf_infusionsoft_animated')){
var $cookies_expire_auto=$current_popup_exit.data('cookie_duration') ? $current_popup_exit.data('cookie_duration'):false,
$already_subscribed=checkCookieValue('inf_infusionsoft_subscribed_to_' + optin_id + list_id, 'true');
$(document).mouseleave(function(){
if((( false!==$cookies_expire_auto&&!checkCookieValue('etInfusionsoftCookie_' + optin_id, 'true'))||false==$cookies_expire_auto)&&!$already_subscribed){
if(false!==$cookies_expire_auto){
return make_popup_visible($current_popup_exit, 0, $cookies_expire_auto, 'etInfusionsoftCookie_' + optin_id + '=true');
}else{
return make_popup_visible($current_popup_exit, 0, '', '');
}}
});
}}
function scroll_trigger(current_popup_bottom, is_bottom_trigger){
var triggered=0,
page_id=current_popup_bottom.find('.inf_infusionsoft_submit_subscription').data('page_id'),
optin_id=current_popup_bottom.find('.inf_infusionsoft_submit_subscription').data('optin_id');
list_id=current_popup_bottom.find('.inf_infusionsoft_submit_subscription').data('list_id');
if(! current_popup_bottom.hasClass('inf_infusionsoft_animated')){
var cookies_expire_bottom=current_popup_bottom.data('cookie_duration') ? current_popup_bottom.data('cookie_duration'):false,
$already_subscribed=checkCookieValue('inf_infusionsoft_subscribed_to_' + optin_id + list_id, 'true');
var scroll_trigger=undefined;
if(true==is_bottom_trigger){
var $radInfusionsoftBottomTrigger=$('.inf_infusionsoft_bottom_trigger');
scroll_trigger=$radInfusionsoftBottomTrigger.length ? $radInfusionsoftBottomTrigger.offset().top:$(document).height() - 500;
}else{
var scroll_pos=current_popup_bottom.data('scroll_pos') > 100 ? 100:current_popup_bottom.data('scroll_pos');
scroll_trigger=100==scroll_pos ? $(document).height() - 50:$(document).height() * scroll_pos / 100;
}
if($(document).height() <=$(window).height()){
setTimeout(
function(){
make_popup_visible(current_popup_bottom, 0, '', '');
}, 5000
);
}
$(window).scroll(function(){
if(((false!==cookies_expire_bottom&&! checkCookieValue('etInfusionsoftCookie_' + optin_id, 'true'))||false==cookies_expire_bottom)&&! $already_subscribed){
if($(window).scrollTop() + $(window).height() > scroll_trigger){
if(0==triggered){
if(false!==cookies_expire_bottom){
make_popup_visible(current_popup_bottom, 0, cookies_expire_bottom, 'etInfusionsoftCookie_' + optin_id + '=true');
}else{
make_popup_visible(current_popup_bottom, 0, '', '');
}
triggered++;
}}
}});
}}
if($('.inf_infusionsoft_auto_popup').length){
$('.inf_infusionsoft_auto_popup:not(.inf_infusionsoft_visible)').each(function(){
var this_el=$(this),
delay=''!==this_el.data('delay') ? this_el.data('delay') * 1000:0;
auto_popup(this_el, delay);
});
}
if($('.inf_infusionsoft_infusionbar.inf_infusionsoft_infusionbar_trigger_auto').length){
$('.inf_infusionsoft_infusionbar.inf_infusionsoft_infusionbar_trigger_auto:not(.inf_infusionsoft_visible)').each(function(){
var this_el=$(this),
delay=''!==this_el.data('delay') ? this_el.data('delay') * 1000:0;
auto_popup(this_el, delay);
});
}
if($('.inf_infusionsoft_trigger_bottom').length){
$('.inf_infusionsoft_trigger_bottom:not(.inf_infusionsoft_visible)').each(function(){
scroll_trigger($(this), true);
});
}
if($('.inf_infusionsoft_before_exit').length){
$('.inf_infusionsoft_before_exit:not(.inf_infusionsoft_visible)').each(function(){
exit_trigger($(this), false);
});
}
if($('.inf_infusionsoft_scroll').length){
$('.inf_infusionsoft_scroll:not(.inf_infusionsoft_visible)').each(function(){
scroll_trigger($(this), false);
});
}
if($('.inf_infusionsoft_trigger_idle').length){
$('.inf_infusionsoft_trigger_idle:not(.inf_infusionsoft_visible)').each(function(){
var this_el=$(this),
page_id=this_el.find('.inf_infusionsoft_submit_subscription').data('page_id'),
optin_id=this_el.find('.inf_infusionsoft_submit_subscription').data('optin_id'),
list_id=this_el.find('.inf_infusionsoft_submit_subscription').data('list_id');
if(! this_el.hasClass('inf_infusionsoft_animated')){
var $cookies_expire_idle=this_el.data('cookie_duration') ? this_el.data('cookie_duration'):false,
$already_subscribed=checkCookieValue('inf_infusionsoft_subscribed_to_' + optin_id + list_id, 'true');
var $idle_timeout=''!==this_el.data('idle_timeout') ? this_el.data('idle_timeout') * 1000:30000,
$delay=0;
if(((false!==$cookies_expire_idle&&! checkCookieValue('etInfusionsoftCookie_' + optin_id, 'true'))||false==$cookies_expire_idle)&&! $already_subscribed){
$(document).idleTimer($idle_timeout);
$(document).on('idle.idleTimer', function(){
if(false!==$cookies_expire_idle){
make_popup_visible(this_el, $delay, $cookies_expire_idle, 'etInfusionsoftCookie_' + optin_id + '=true');
}else{
make_popup_visible(this_el, $delay, '', '');
}});
}}
});
}
if('true'==get_url_parameter('inf_infusionsoft_popup')){
$('.inf_infusionsoft_after_comment').each(function(){
auto_popup($(this), 0);
});
}
if($('.inf_infusionsoft_after_order').length){
$('.inf_infusionsoft_after_purchase').each(function(){
auto_popup($(this), 0);
});
}
var $radInfusionsoftLockedContainer=$('.inf_infusionsoft_locked_container');
if($radInfusionsoftLockedContainer.length){
var $i=0;
$radInfusionsoftLockedContainer.each(function(){
var $this_el=$(this),
content=$this_el.find('.inf_infusionsoft_locked_content'),
form=$this_el.find('.inf_infusionsoft_locked_form'),
page_id=$this_el.data('page_id'),
optin_id=$this_el.data('optin_id');
$this_el.data('container_id', $i);
$locked_containers.push(content);
if(checkCookieValue('inf_infusionsoft_unlocked' + optin_id + page_id, 'true')){
content.css({'display':'block'});
form.remove();
}else{
content.remove();
update_stats_table('imp', $this_el);
}
$i++;
});
}
$body.on('click', '.inf_infusionsoft_locked_container .inf_infusionsoft_submit_subscription', function(){
var current_container=$(this).closest('.inf_infusionsoft_locked_container'),
container_id=current_container.data('container_id'),
page_id=current_container.data('page_id'),
optin_id=current_container.data('optin_id');
perform_subscription($(this), current_container, container_id, page_id, optin_id);
return false;
});
$body.on('click', '.inf_infusionsoft_locked_container .inf_infusionsoft_custom_html_form input[type="submit"], .inf_infusionsoft_locked_container .inf_infusionsoft_custom_html_form button[type="submit"]', function(){
var current_container=$(this).closest('.inf_infusionsoft_locked_container'),
container_id=current_container.data('container_id'),
page_id=current_container.data('page_id'),
optin_id=current_container.data('optin_id');
unlock_content(current_container, container_id, page_id, optin_id);
});
function unlock_content(current_container, container_id, locked_page_id, locked_optin_id){
set_cookie(365, 'inf_infusionsoft_unlocked' + locked_optin_id + locked_page_id + '=true');
current_container.find('.inf_infusionsoft_locked_form').replaceWith($locked_containers[container_id]);
current_container.find('.inf_infusionsoft_locked_content').css({ 'display':'block' });
}
var $radInfusionsoftBelowPost=$('.inf_infusionsoft_below_post');
if($radInfusionsoftBelowPost.length){
if($body.hasClass('inf_pb_pagebuilder_layout')){
var bottom_inline=$radInfusionsoftBelowPost,
divi_container='
';
if(bottom_inline.length){
$('.inf_pb_section').not('.inf_pb_fullwidth_section').last().append(divi_container).find('.inf_pb_row').last().find('.inf_pb_column').append(bottom_inline);
}}
}
function define_popup_position($this_popup, $just_loaded, $message_space){
var this_popup=$this_popup.find('.inf_infusionsoft_form_container'),
popup_max_height=this_popup.hasClass('inf_infusionsoft_popup_container') ? $(window).height() - 40:$(window).height() - 20,
real_popup_height=0,
flyin_percentage=this_popup.parent().hasClass('inf_infusionsoft_flyin') ? 0.03:0.05,
percentage=this_popup.hasClass('inf_infusionsoft_with_border') ? flyin_percentage + 0.03:flyin_percentage,
breakout_offset=this_popup.hasClass('breakout_edge') ? 0.95:1,
dashed_offset=this_popup.hasClass('inf_infusionsoft_border_dashed') ? 4:0,
form_height=this_popup.find('form').innerHeight() + $message_space,
form_add=true==$just_loaded ? 5:0;
consent_height=this_popup.find('.consent_wrapper').height();
real_form_height=form_height + consent_height;
var header_height=undefined;
if(this_popup.find('.inf_infusionsoft_form_header').hasClass('split')){
var image_height=this_popup.find('.inf_infusionsoft_form_header img').innerHeight(),
text_height=this_popup.find('.inf_infusionsoft_form_header .inf_infusionsoft_form_text').innerHeight();
header_height=image_height < text_height ? text_height + 30:image_height + 30;
}else{
header_height=this_popup.find('.inf_infusionsoft_form_header img').innerHeight() + this_popup.find('.inf_infusionsoft_form_header .inf_infusionsoft_form_text').innerHeight() + 30;
}
this_popup.css({ 'max-height':popup_max_height });
if(this_popup.hasClass('inf_infusionsoft_popup_container')){
var top_position=$(window).height() / 2 - this_popup.innerHeight() / 2;
this_popup.css({ 'top':top_position + 'px' });
}
this_popup.find('.inf_infusionsoft_form_container_wrapper').css({ 'max-height':popup_max_height - 20 });
var $body2=$('body');
if(( 768 > $body2.outerWidth() + 15)||this_popup.hasClass('inf_infusionsoft_form_bottom')){
if(this_popup.hasClass('inf_infusionsoft_form_right')||this_popup.hasClass('inf_infusionsoft_form_left')){
this_popup.find('.inf_infusionsoft_form_header').css({ 'height':'auto' });
}
real_popup_height=this_popup.find('.inf_infusionsoft_form_header').innerHeight() + this_popup.find('.inf_infusionsoft_form_content').innerHeight() + 30 + form_add;
if(this_popup.hasClass('inf_infusionsoft_form_right')||this_popup.hasClass('inf_infusionsoft_form_left')){
this_popup.find('.inf_infusionsoft_form_container_wrapper').css({ 'height':real_popup_height - 30 + dashed_offset });
}}else{
if(header_height < real_form_height){
real_popup_height=real_form_height;
$('.inf_infusionsoft .inf_infusionsoft_form_container .inf_infusionsoft_form_content').css({'padding-top':'40', 'padding-bottom': '40'});
var topFix=consent_height;
$('.inf_infusionsoft .inf_infusionsoft_form_left .inf_infusionsoft_form_content form, .inf_infusionsoft .inf_infusionsoft_form_right .inf_infusionsoft_form_content form').css({'top': '-'+topFix+'px'});
}else{
real_popup_height=header_height + 30;
}
if(this_popup.hasClass('inf_infusionsoft_form_right')||this_popup.hasClass('inf_infusionsoft_form_left')){
this_popup.find('.inf_infusionsoft_form_header').css({ 'height':real_popup_height * breakout_offset - dashed_offset });
this_popup.find('.inf_infusionsoft_form_content').css({ 'min-height':real_popup_height - dashed_offset });
this_popup.find('.inf_infusionsoft_form_container_wrapper').css({ 'height':real_popup_height });
}}
if(real_popup_height > popup_max_height){
this_popup.find('.inf_infusionsoft_form_container_wrapper').addClass('inf_infusionsoft_vertical_scroll');
}else{
this_popup.find('.inf_infusionsoft_form_container_wrapper').removeClass('inf_infusionsoft_vertical_scroll');
}
if($this_popup.hasClass('inf_infusionsoft_popup')){
$body2.addClass('inf_infusionsoft_popup_active');
}}
$body.on('click', '.inf_infusionsoft_submit_subscription', function(){
perform_subscription($(this), '', '', '', '');
return false;
});
function perform_subscription(this_button, current_container, container_id, locked_page_id, locked_optin_id){
var this_form=this_button.parent(),
list_id=this_button.data('list_id'),
account_name=this_button.data('account'),
service=this_button.data('service'),
name=this_form.find('.inf_infusionsoft_subscribe_name input').val(),
last_name=undefined!=this_form.find('.inf_infusionsoft_subscribe_last input').val() ? this_form.find('.inf_infusionsoft_subscribe_last input').val():'',
email=this_form.find('.inf_infusionsoft_subscribe_email input').val(),
page_id=this_button.data('page_id'),
webhook_url=this_button.data('center_webhook_url'),
disable_dbl_optin=this_button.data('disable_dbl_optin'),
post_name=this_button.data('post_name'),
cookie=this_button.data('cookie');
optin_id=this_button.data('optin_id');
optin_type=(this_button.data('optin_type')=='infusion' ? 'infusion':'standard');
redirectUrl=this_button.data('redirect_url');
redirectTab=this_button.data('redirect');
redirect_delay=this_button.data('success_delay') + '000';
redirect_delay=parseInt(redirect_delay);
this_form.find('.inf_infusionsoft_subscribe_email input').removeClass('inf_infusionsoft_warn_field');
if(this_button.hasClass('cursor-not-allowed')){
var parents=this_form.parents();
parents.each(function(){
if($(this).hasClass('inf_infusionsoft_optin')||$(this).hasClass('inf_infusionsoft_infusionbar')){
top_parent=$(this);
}});
var error_message=top_parent.find('.consent_error');
var consent_form=top_parent.find('.infusion_consent_form') ;
$(error_message).show();
if($(consent_form).hasClass('infusion_consent_closed')){
$(consent_form).removeClass('infusion_consent_closed');
$(consent_form).addClass('infusion_consent');
}
return;
}
if(''==email){
this_form.find('.inf_infusionsoft_subscribe_email input').addClass('inf_infusionsoft_warn_field');
}else{
$subscribe_data=JSON.stringify({ 'list_id':list_id, 'account_name':account_name, 'service':service, 'name':name, 'email':email, 'page_id':page_id, 'optin_id':optin_id, 'last_name':last_name, 'dbl_optin':disable_dbl_optin, 'post_name':post_name, 'cookie':cookie });
$.ajax({
type: 'POST',
dataType: 'json',
url: infusionsoftSettings.ajaxurl,
data: {
action:'infusionsoft_subscribe',
subscribe_data_array:$subscribe_data,
subscribe_nonce:infusionsoftSettings.subscribe_nonce
},
beforeSend: function(data){
this_button.addClass('inf_infusionsoft_button_text_loading');
this_button.find('.inf_infusionsoft_subscribe_loader').css({ 'display':'block' });
},
success: function(data){
$('.infusion_consent_form').hide();
$('.consent_wrapper').hide();
this_button.removeClass('inf_infusionsoft_button_text_loading');
this_button.find('.inf_infusionsoft_subscribe_loader').css({ 'display':'none' });
if(data){
if(''!=current_container&&(data.success||'Invalid email'!=data.error)){
unlock_content(current_container, container_id, locked_page_id, locked_optin_id);
}else{
if(data.error){
this_form.find('.inf_infusionsoft_error_message').remove();
this_form.prepend('
' + data.error + ' ');
this_form.parent().parent().find('.inf_infusionsoft_form_header').addClass('inf_infusionsoft_with_error');
}
if(data.success&&''==current_container&&optin_type=='infusion'){
var topLevel=this_form.parent().parent();
topLevel.find('.inf_infusionsoft_success_message').addClass('inf_infusionsoft_animate_message');
topLevel.find('.inf_infusionsoft_success_container').addClass('inf_infusionsoft_animate_success');
topLevel.find('.inf_infusionsoft_form_text').remove();
if(typeof(center)=="function"){
center('associate', email);
}
rapidbarSubmitPaddingNeeded=(jQuery('.inf_infusionsoft_infusionbar_form_content button').data('service')=='redirect') ? 35:50;
this_form.remove();
setTimeout(function(){
$('.inf_infusionsoft_infusionbar').remove();
}, 3000);
if(redirectUrl.length > 0){
setTimeout(function(){
if(redirectTab=='new_tab'){
window.open(redirectUrl);
}else if(redirectTab=='new_window'){
window.open(redirectUrl, '_blank', 'toolbar=1,location=0,menubar=1');
}else{
window.location.href=redirectUrl;
}}, redirect_delay);
}}
if(data.success&&''==current_container&&optin_type=='standard'){
this_form.parent().find('.inf_infusionsoft_success_message').addClass('inf_infusionsoft_animate_message');
this_form.parent().find('.inf_infusionsoft_success_container').addClass('inf_infusionsoft_animate_success');
this_form.remove();
if(typeof(center)=="function"){
center('associate', email);
}
if(redirectUrl.length > 0){
setTimeout(function(){
if(redirectTab=='new_tab'){
window.open(redirectUrl);
}else if(redirectTab=='new_window'){
window.open(redirectUrl, '_blank', 'toolbar=1,location=0,menubar=1');
}else{
window.location.href=redirectUrl;
}}, redirect_delay);
}}
}
define_popup_position(this_form.parent().parent().parent().parent(), false, 50);
}}
});
}}
function submit_center_webhook(email, name, last_name, url){
var full_name;
var first_name='';
if(name==null){
name='';
}
if(last_name==''){
full_name=name;
}else{
first_name=name;
}
var data =
{
'email': email,
'first_name': first_name,
'last_name': last_name,
'full_name': full_name,
}
var submit_data={
url: url,
data: data
}
console.log(submit_data);
$.ajax({
type: 'POST',
dataType: 'json',
url: infusionsoftSettings.ajaxurl,
data: {
action:'infusionsoft_center_webhooks',
data: submit_data,
center_nonce: infusionsoftSettings.center_nonce
},
beforeSend: function (data){
},
success: function(response){
console.log(response);
}});
}
$body.on('click', '.inf_infusionsoft_custom_html_form input[type="submit"], .inf_infusionsoft_custom_html_form button[type="submit"]', function(){
var this_button=$(this),
form_container=this_button.closest('.inf_infusionsoft_custom_html_form');
update_stats_table('con', form_container);
});
$body.on('click','.inf_infusionsoft_redirect_page',function(e){
e.preventDefault();
var this_button=$(this);
optin_id=this_button.data('optin_id');
type=this_button.data('optin_type');
var popup_id=$(this).data('popup_id');
var redirectUrl=$(this).data('redirect_url');
redirectTab=this_button.data('redirect');
redirect_delay=this_button.data('success_delay') + '000';
redirect_delay=parseInt(redirect_delay);
var container=$(this).parent().parent().parent().parent().parent();
container.addClass('inf_infusionsoft_exit_animation');
update_stats_table('con', this_button);
rapidbarSubmitPaddingNeeded=(jQuery('.inf_infusionsoft_infusionbar_form_content button').data('service')=='redirect') ? 35:50;
if(popup_id){
var optin=$('.inf_infusionsoft_' + popup_id);
make_popup_visible(optin, 0, '', '');
}else{
if(redirectTab=='new_tab'){
window.open(redirectUrl);
}else if(redirectTab=='new_window'){
window.open(redirectUrl, '_blank', 'toolbar=1,location=0,menubar=1');
}else{
window.location.href=redirectUrl;
}}
});
$body.on('click', '.accept_consent', function(){
var parent=$(this).parent().parent().parent().get(0).tagName;
var button=$(parent + ' .inf_infusionsoft_submit_subscription');
if($('.accept_consent').prop('checked')){
button.removeClass('cursor-not-allowed');
}else{
button.addClass('cursor-not-allowed');
}});
$body.on('click', '.consent_wrapper .accept_consent', function(){
var parent=$(this).parent().parent().parent().get(0).tagName;
var button=$(parent + ' .inf_infusionsoft_submit_subscription');
if($(this).prop('checked')){
button.removeClass('cursor-not-allowed');
}else{
button.addClass('cursor-not-allowed');
}});
$(window).resize(function(){
var $radInfusionsoftResize=$('.inf_infusionsoft_resize');
if($radInfusionsoftResize.length){
$radInfusionsoftResize.each(function(){
define_popup_position($(this), false, 0);
});
}});
});
})(jQuery);
(function($){
$(window).load(function(){
if(!$('body').hasClass('inf_infusionsoft')){
$('body').addClass('inf_infusionsoft');
}});
}(jQuery));
!function(a){a.idleTimer=function(b,c){var d;"object"==typeof b?(d=b,b=null):"number"==typeof b&&(d={timeout:b},b=null),c=c||document,d=a.extend({idle:!1,timeout:3e4,events:"mousemove keydown wheel DOMMouseScroll mousewheel mousedown touchstart touchmove MSPointerDown MSPointerMove"},d);var e=a(c),f=e.data("idleTimerObj")||{},g=function(b){var d=a.data(c,"idleTimerObj")||{};d.idle=!d.idle,d.olddate=+new Date;var e=a.Event((d.idle?"idle":"active")+".idleTimer");a(c).trigger(e,[c,a.extend({},d),b])},h=function(b){var d=a.data(c,"idleTimerObj")||{};if(null==d.remaining){if("mousemove"===b.type){if(b.pageX===d.pageX&&b.pageY===d.pageY)return;if("undefined"==typeof b.pageX&&"undefined"==typeof b.pageY)return;var e=+new Date-d.olddate;if(200>e)return}clearTimeout(d.tId),d.idle&&g(b),d.lastActive=+new Date,d.pageX=b.pageX,d.pageY=b.pageY,d.tId=setTimeout(g,d.timeout)}},i=function(){var b=a.data(c,"idleTimerObj")||{};b.idle=b.idleBackup,b.olddate=+new Date,b.lastActive=b.olddate,b.remaining=null,clearTimeout(b.tId),b.idle||(b.tId=setTimeout(g,b.timeout))},j=function(){var b=a.data(c,"idleTimerObj")||{};null==b.remaining&&(b.remaining=b.timeout-(+new Date-b.olddate),clearTimeout(b.tId))},k=function(){var b=a.data(c,"idleTimerObj")||{};null!=b.remaining&&(b.idle||(b.tId=setTimeout(g,b.remaining)),b.remaining=null)},l=function(){var b=a.data(c,"idleTimerObj")||{};clearTimeout(b.tId),e.removeData("idleTimerObj"),e.off("._idleTimer")},m=function(){var b=a.data(c,"idleTimerObj")||{};if(b.idle)return 0;if(null!=b.remaining)return b.remaining;var d=b.timeout-(+new Date-b.lastActive);return 0>d&&(d=0),d};if(null===b&&"undefined"!=typeof f.idle)return i(),e;if(null===b);else{if(null!==b&&"undefined"==typeof f.idle)return!1;if("destroy"===b)return l(),e;if("pause"===b)return j(),e;if("resume"===b)return k(),e;if("reset"===b)return i(),e;if("getRemainingTime"===b)return m();if("getElapsedTime"===b)return+new Date-f.olddate;if("getLastActiveTime"===b)return f.lastActive;if("isIdle"===b)return f.idle}return e.on(a.trim((d.events+" ").split(" ").join("._idleTimer ")),function(a){h(a)}),f=a.extend({},{olddate:+new Date,lastActive:+new Date,idle:d.idle,idleBackup:d.idle,timeout:d.timeout,remaining:null,tId:null,pageX:null,pageY:null}),f.idle||(f.tId=setTimeout(g,f.timeout)),a.data(c,"idleTimerObj",f),e},a.fn.idleTimer=function(b){return this[0]?a.idleTimer(b,this[0]):this}}(jQuery);
(function($){$.fn.appear=function(f,o){var s=$.extend({one:true},o);return this.each(function(){var t=$(this);t.appeared=false;if(!f){t.trigger('appear',s.data);return;}var w=$(window);var c=function(){if(!t.is(':visible')){t.appeared=false;return;}var a=w.scrollLeft();var b=w.scrollTop();var o=t.offset();var x=o.left;var y=o.top;if(y+t.height()>=b&&y<=b+w.height()&&x+t.width()>=a&&x<=a+w.width()){if(!t.appeared)t.trigger('appear',s.data);}else{t.appeared=false;}};var m=function(){t.appeared=true;if(s.one){w.unbind('scroll',c);var i=$.inArray(c,$.fn.appear.checks);if(i>=0)$.fn.appear.checks.splice(i,1);}f.apply(this,arguments);};if(s.one)t.one('appear',s.data,m);else t.bind('appear',s.data,m);w.scroll(c);$.fn.appear.checks.push(c);(c)();});};$.extend($.fn.appear,{checks:[],timeout:null,checkAll:function(){var l=$.fn.appear.checks.length;if(l>0)while(l--)($.fn.appear.checks[l])();},run:function(){if($.fn.appear.timeout)clearTimeout($.fn.appear.timeout);$.fn.appear.timeout=setTimeout($.fn.appear.checkAll,20);}});$.each(['append','prepend','after','before','attr','removeAttr','addClass','removeClass','toggleClass','remove','css','show','hide'],function(i,n){var u=$.fn[n];if(u){$.fn[n]=function(){var r=u.apply(this,arguments);$.fn.appear.run();return r;}}});})(jQuery);
!function(t){"use strict";function e(t,e){return t.toFixed(e.decimals)}t.fn.countTo=function(e){return e=e||{},t(this).each(function(){function a(){s+=l,c++,n(s),"function"==typeof o.onUpdate&&o.onUpdate.call(i,s),c>=r&&(f.removeData("countTo"),clearInterval(d.interval),s=o.to,"function"==typeof o.onComplete&&o.onComplete.call(i,s))}function n(t){var e=o.formatter.call(i,t,o);f.text(e)}var o=t.extend({},t.fn.countTo.defaults,{from:t(this).data("from"),to:t(this).data("to"),speed:t(this).data("speed"),refreshInterval:t(this).data("refresh-interval"),decimals:t(this).data("decimals")},e),r=Math.ceil(o.speed/o.refreshInterval),l=(o.to-o.from)/r,i=this,f=t(this),c=0,s=o.from,d=f.data("countTo")||{};f.data("countTo",d),d.interval&&clearInterval(d.interval),d.interval=setInterval(a,o.refreshInterval),n(s)})},t.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:e,onUpdate:null,onComplete:null}}(jQuery);
"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function(t,e,o,i){var s={init:function(e,o){var i=this;i.$elem=t(o),i.options=t.extend({},t.fn.owlCarousel.options,i.$elem.data(),e),i.userOptions=e,i.loadContent()},loadContent:function(){function e(t){if("function"==typeof o.options.jsonSuccess)o.options.jsonSuccess.apply(this,[t]);else{var e="";for(var i in t.owl)e+=t.owl[i].item;o.$elem.html(e)}o.logIn()}var o=this;if("function"==typeof o.options.beforeInit&&o.options.beforeInit.apply(this,[o.$elem]),"string"==typeof o.options.jsonPath){var i=o.options.jsonPath;t.getJSON(i,e)}else o.logIn()},logIn:function(){var t=this;t.$elem.data("owl-originalStyles",t.$elem.attr("style")).data("owl-originalClasses",t.$elem.attr("class")),t.$elem.css({opacity:0}),t.orignalItems=t.options.items,t.checkBrowser(),t.wrapperWidth=0,t.checkVisible,t.setVars()},setVars:function(){var t=this;return 0===t.$elem.children().length?!1:(t.baseClass(),t.eventTypes(),t.$userItems=t.$elem.children(),t.itemsAmount=t.$userItems.length,t.wrapItems(),t.$owlItems=t.$elem.find(".owl-item"),t.$owlWrapper=t.$elem.find(".owl-wrapper"),t.playDirection="next",t.prevItem=0,t.prevArr=[0],t.currentItem=0,t.customEvents(),void t.onStartup())},onStartup:function(){var t=this;t.updateItems(),t.calculateAll(),t.buildControls(),t.updateControls(),t.response(),t.moveEvents(),t.stopOnHover(),t.owlStatus(),t.options.transitionStyle!==!1&&t.transitionTypes(t.options.transitionStyle),t.options.autoPlay===!0&&(t.options.autoPlay=5e3),t.play(),t.$elem.find(".owl-wrapper").css("display","block"),t.$elem.is(":visible")?t.$elem.css("opacity",1):t.watchVisibility(),t.onstartup=!1,t.eachMoveUpdate(),"function"==typeof t.options.afterInit&&t.options.afterInit.apply(this,[t.$elem])},eachMoveUpdate:function(){var t=this;t.options.lazyLoad===!0&&t.lazyLoad(),t.options.autoHeight===!0&&t.autoHeight(),t.onVisibleItems(),"function"==typeof t.options.afterAction&&t.options.afterAction.apply(this,[t.$elem])},updateVars:function(){var t=this;"function"==typeof t.options.beforeUpdate&&t.options.beforeUpdate.apply(this,[t.$elem]),t.watchVisibility(),t.updateItems(),t.calculateAll(),t.updatePosition(),t.updateControls(),t.eachMoveUpdate(),"function"==typeof t.options.afterUpdate&&t.options.afterUpdate.apply(this,[t.$elem])},reload:function(){var t=this;setTimeout(function(){t.updateVars()},0)},watchVisibility:function(){var t=this;return t.$elem.is(":visible")!==!1?!1:(t.$elem.css({opacity:0}),clearInterval(t.autoPlayInterval),clearInterval(t.checkVisible),void(t.checkVisible=setInterval(function(){t.$elem.is(":visible")&&(t.reload(),t.$elem.animate({opacity:1},200),clearInterval(t.checkVisible))},500)))},wrapItems:function(){var t=this;t.$userItems.wrapAll('
').wrap('
'),t.$elem.find(".owl-wrapper").wrap('
'),t.wrapperOuter=t.$elem.find(".owl-wrapper-outer"),t.$elem.css("display","block")},baseClass:function(){var t=this,e=t.$elem.hasClass(t.options.baseClass),o=t.$elem.hasClass(t.options.theme);e||t.$elem.addClass(t.options.baseClass),o||t.$elem.addClass(t.options.theme)},updateItems:function(){var e=this;if(e.options.responsive===!1)return!1;if(e.options.singleItem===!0)return e.options.items=e.orignalItems=1,e.options.itemsCustom=!1,e.options.itemsDesktop=!1,e.options.itemsDesktopSmall=!1,e.options.itemsTablet=!1,e.options.itemsTabletSmall=!1,e.options.itemsMobile=!1,!1;var o=t(e.options.responsiveBaseWidth).width();if(o>(e.options.itemsDesktop[0]||e.orignalItems)&&(e.options.items=e.orignalItems),"undefined"!=typeof e.options.itemsCustom&&e.options.itemsCustom!==!1){e.options.itemsCustom.sort(function(t,e){return t[0]-e[0]});for(var i in e.options.itemsCustom)"undefined"!=typeof e.options.itemsCustom[i]&&e.options.itemsCustom[i][0]<=o&&(e.options.items=e.options.itemsCustom[i][1])}else o<=e.options.itemsDesktop[0]&&e.options.itemsDesktop!==!1&&(e.options.items=e.options.itemsDesktop[1]),o<=e.options.itemsDesktopSmall[0]&&e.options.itemsDesktopSmall!==!1&&(e.options.items=e.options.itemsDesktopSmall[1]),o<=e.options.itemsTablet[0]&&e.options.itemsTablet!==!1&&(e.options.items=e.options.itemsTablet[1]),o<=e.options.itemsTabletSmall[0]&&e.options.itemsTabletSmall!==!1&&(e.options.items=e.options.itemsTabletSmall[1]),o<=e.options.itemsMobile[0]&&e.options.itemsMobile!==!1&&(e.options.items=e.options.itemsMobile[1]);e.options.items>e.itemsAmount&&e.options.itemsScaleUp===!0&&(e.options.items=e.itemsAmount)},response:function(){var o,i=this;if(i.options.responsive!==!0)return!1;var s=t(e).width();i.resizer=function(){t(e).width()!==s&&(i.options.autoPlay!==!1&&clearInterval(i.autoPlayInterval),clearTimeout(o),o=setTimeout(function(){s=t(e).width(),i.updateVars()},i.options.responsiveRefreshRate))},t(e).resize(i.resizer)},updatePosition:function(){var t=this;t.jumpTo(t.currentItem),t.options.autoPlay!==!1&&t.checkAp()},appendItemsSizes:function(){var e=this,o=0,i=e.itemsAmount-e.options.items;e.$owlItems.each(function(s){var n=t(this);n.css({width:e.itemWidth}).data("owl-item",Number(s)),(s%e.options.items===0||s===i)&&(s>i||(o+=1)),n.data("owl-roundPages",o)})},appendWrapperSizes:function(){var t,e=this,o=e.$owlItems.length*e.itemWidth;t="rtl"==e.options.direction?{right:0,direction:"rtl"}:{left:0},e.$owlWrapper.css({width:o}),e.$owlWrapper.css(t),e.appendItemsSizes()},calculateAll:function(){var t=this;t.calculateWidth(),t.appendWrapperSizes(),t.loops(),t.max()},calculateWidth:function(){var t=this;t.itemWidth=Math.round(t.$elem.width()/t.options.items)},max:function(){var t=this,e=-1*(t.itemsAmount*t.itemWidth-t.options.items*t.itemWidth);return t.options.items>t.itemsAmount?(t.maximumItem=0,e=0,t.maximumPixels=0):(t.maximumItem=t.itemsAmount-t.options.items,t.maximumPixels=e),e},min:function(){return 0},loops:function(){var e=this;e.positionsInArray=[0],e.pagesInArray=[];for(var o=0,i=0,s=0;s
').toggleClass("clickable",!e.browser.isTouch).appendTo(e.$elem)),e.options.pagination===!0&&e.buildPagination(),e.options.navigation===!0&&e.buildButtons()},buildButtons:function(){var e=this,o=t('
');e.owlControls.append(o),e.buttonPrev=t("
",{"class":"owl-prev",html:e.options.navigationText[0]||""}),e.buttonNext=t("
",{"class":"owl-next",html:e.options.navigationText[1]||""}),o.append(e.buttonPrev).append(e.buttonNext),o.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(t){t.preventDefault()}),o.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(o){o.preventDefault(),t(this).hasClass("owl-next")?e.next():e.prev()})},buildPagination:function(){var e=this;e.paginationWrapper=t(''),e.owlControls.append(e.paginationWrapper),e.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(o){o.preventDefault(),Number(t(this).data("owl-page"))!==e.currentItem&&e.goTo(Number(t(this).data("owl-page")),!0)})},updatePagination:function(){var e=this;if(e.options.pagination===!1)return!1;e.paginationWrapper.html("");for(var o=0,i=e.itemsAmount-e.itemsAmount%e.options.items,s=0;s
",{"class":"owl-page"}),r=t(" ",{text:e.options.paginationNumbers===!0?o:"","class":e.options.paginationNumbers===!0?"owl-numbers":""});a.append(r),a.data("owl-page",i===s?n:s),a.data("owl-roundPages",o),e.paginationWrapper.append(a)}e.checkPagination()},checkPagination:function(){var e=this;return e.options.pagination===!1?!1:void e.paginationWrapper.find(".owl-page").each(function(){t(this).data("owl-roundPages")===t(e.$owlItems[e.currentItem]).data("owl-roundPages")&&(e.paginationWrapper.find(".owl-page").removeClass("active"),t(this).addClass("active"))})},checkNavigation:function(){var t=this;return t.options.navigation===!1?!1:void(t.options.rewindNav===!1&&(0===t.currentItem&&0===t.maximumItem?(t.buttonPrev.addClass("disabled"),t.buttonNext.addClass("disabled")):0===t.currentItem&&0!==t.maximumItem?(t.buttonPrev.addClass("disabled"),t.buttonNext.removeClass("disabled")):t.currentItem===t.maximumItem?(t.buttonPrev.removeClass("disabled"),t.buttonNext.addClass("disabled")):0!==t.currentItem&&t.currentItem!==t.maximumItem&&(t.buttonPrev.removeClass("disabled"),t.buttonNext.removeClass("disabled"))))},updateControls:function(){var t=this;t.updatePagination(),t.checkNavigation(),t.owlControls&&(t.options.items>=t.itemsAmount?t.owlControls.hide():t.owlControls.show())},destroyControls:function(){var t=this;t.owlControls&&t.owlControls.remove()},next:function(t){var e=this;if(e.isTransition)return!1;if(e.currentItem+=e.options.scrollPerPage===!0?e.options.items:1,e.currentItem>e.maximumItem+(1==e.options.scrollPerPage?e.options.items-1:0)){if(e.options.rewindNav!==!0)return e.currentItem=e.maximumItem,!1;e.currentItem=0,t="rewind"}e.goTo(e.currentItem,t)},prev:function(t){var e=this;if(e.isTransition)return!1;if(e.options.scrollPerPage===!0&&e.currentItem>0&&e.currentItem=i.maximumItem?t=i.maximumItem:0>=t&&(t=0),i.currentItem=i.owl.currentItem=t,i.options.transitionStyle!==!1&&"drag"!==o&&1===i.options.items&&i.browser.support3d===!0)return i.swapSpeed(0),i.browser.support3d===!0?i.transition3d(i.positionsInArray[t]):i.css2slide(i.positionsInArray[t],1),i.afterGo(),i.singleItemTransition(),!1;var s=i.positionsInArray[t];i.browser.support3d===!0?(i.isCss3Finish=!1,e===!0?(i.swapSpeed("paginationSpeed"),setTimeout(function(){i.isCss3Finish=!0},i.options.paginationSpeed)):"rewind"===e?(i.swapSpeed(i.options.rewindSpeed),setTimeout(function(){i.isCss3Finish=!0},i.options.rewindSpeed)):(i.swapSpeed("slideSpeed"),setTimeout(function(){i.isCss3Finish=!0},i.options.slideSpeed)),i.transition3d(s)):e===!0?i.css2slide(s,i.options.paginationSpeed):"rewind"===e?i.css2slide(s,i.options.rewindSpeed):i.css2slide(s,i.options.slideSpeed),i.afterGo()},jumpTo:function(t){var e=this;"function"==typeof e.options.beforeMove&&e.options.beforeMove.apply(this,[e.$elem]),t>=e.maximumItem||-1===t?t=e.maximumItem:0>=t&&(t=0),e.swapSpeed(0),e.browser.support3d===!0?e.transition3d(e.positionsInArray[t]):e.css2slide(e.positionsInArray[t],1),e.currentItem=e.owl.currentItem=t,e.afterGo()},afterGo:function(){var t=this;t.prevArr.push(t.currentItem),t.prevItem=t.owl.prevItem=t.prevArr[t.prevArr.length-2],t.prevArr.shift(0),t.prevItem!==t.currentItem&&(t.checkPagination(),t.checkNavigation(),t.eachMoveUpdate(),t.options.autoPlay!==!1&&t.checkAp()),"function"==typeof t.options.afterMove&&t.prevItem!==t.currentItem&&t.options.afterMove.apply(this,[t.$elem])},stop:function(){var t=this;t.apStatus="stop",clearInterval(t.autoPlayInterval)},checkAp:function(){var t=this;"stop"!==t.apStatus&&t.play()},play:function(){var t=this;return t.apStatus="play",t.options.autoPlay===!1?!1:(clearInterval(t.autoPlayInterval),void(t.autoPlayInterval=setInterval(function(){t.next(!0)},t.options.autoPlay)))},swapSpeed:function(t){var e=this;"slideSpeed"===t?e.$owlWrapper.css(e.addCssSpeed(e.options.slideSpeed)):"paginationSpeed"===t?e.$owlWrapper.css(e.addCssSpeed(e.options.paginationSpeed)):"string"!=typeof t&&e.$owlWrapper.css(e.addCssSpeed(t))},addCssSpeed:function(t){return{"-webkit-transition":"all "+t+"ms ease","-moz-transition":"all "+t+"ms ease","-o-transition":"all "+t+"ms ease",transition:"all "+t+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(t){var e=this;return t="rtl"==e.options.direction?-t:t,{"-webkit-transform":"translate3d("+t+"px, 0px, 0px)","-moz-transform":"translate3d("+t+"px, 0px, 0px)","-o-transform":"translate3d("+t+"px, 0px, 0px)","-ms-transform":"translate3d("+t+"px, 0px, 0px)",transform:"translate3d("+t+"px, 0px,0px)"}},transition3d:function(t){var e=this;e.$owlWrapper.css(e.doTranslate(t))},css2move:function(t){var e,o=this;e="rtl"==o.options.direction?{right:t}:{left:t},o.$owlWrapper.css(e)},css2slide:function(t,e){var o,i=this;o="rtl"==i.options.direction?{right:t}:{left:t},i.isCssFinish=!1,i.$owlWrapper.stop(!0,!0).animate(o,{duration:e||i.options.slideSpeed,complete:function(){i.isCssFinish=!0}})},checkBrowser:function(){var t=this,i="translate3d(0px, 0px, 0px)",s=o.createElement("div");s.style.cssText=" -moz-transform:"+i+"; -ms-transform:"+i+"; -o-transform:"+i+"; -webkit-transform:"+i+"; transform:"+i;var n=/translate3d\(0px, 0px, 0px\)/g,a=s.style.cssText.match(n),r=null!==a&&1===a.length,l="ontouchstart"in e||navigator.msMaxTouchPoints;t.browser={support3d:r,isTouch:l}},moveEvents:function(){var t=this;(t.options.mouseDrag!==!1||t.options.touchDrag!==!1)&&(t.gestures(),t.disabledEvents())},eventTypes:function(){var t=this,e=["s","e","x"];t.ev_types={},t.options.mouseDrag===!0&&t.options.touchDrag===!0?e=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:t.options.mouseDrag===!1&&t.options.touchDrag===!0?e=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:t.options.mouseDrag===!0&&t.options.touchDrag===!1&&(e=["mousedown.owl","mousemove.owl","mouseup.owl"]),t.ev_types.start=e[0],t.ev_types.move=e[1],t.ev_types.end=e[2]},disabledEvents:function(){var e=this;e.$elem.on("dragstart.owl",function(t){t.preventDefault()}),e.$elem.on("mousedown.disableTextSelect",function(e){return t(e.target).is("input, textarea, select, option")})},gestures:function(){function s(t){return t.touches?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.pageX!==i?{x:t.pageX,y:t.pageY}:{x:t.clientX,y:t.clientY}}function n(e){"on"===e?(t(o).on(p.ev_types.move,r),t(o).on(p.ev_types.end,l)):"off"===e&&(t(o).off(p.ev_types.move),t(o).off(p.ev_types.end))}function a(o){var o=o.originalEvent||o||e.event;if(3===o.which)return!1;if(!(p.itemsAmount<=p.options.items)){if(p.isCssFinish===!1&&!p.options.dragBeforeAnimFinish)return!1;if(p.isCss3Finish===!1&&!p.options.dragBeforeAnimFinish)return!1;p.options.autoPlay!==!1&&clearInterval(p.autoPlayInterval),p.browser.isTouch===!0||p.$owlWrapper.hasClass("grabbing")||p.$owlWrapper.addClass("grabbing"),p.newPosX=0,p.newRelativeX=0,t(this).css(p.removeTransition());var i=t(this).position();"rtl"==p.options.direction?(positionRight=p.$owlItems.eq(0).width()*p.currentItem,m.relativePos=positionRight,m.offsetX=-s(o).x+positionRight):(m.relativePos=i.left,m.offsetX=s(o).x-i.left),m.offsetY=s(o).y-i.top,n("on"),m.sliding=!1,m.targetElement=o.target||o.srcElement}}function r(i){var i=i.originalEvent||i||e.event;"rtl"==p.options.direction?(p.newPosX=-s(i).x-m.offsetX,p.newPosY=s(i).y-m.offsetY,p.newRelativeX=p.newPosX+m.relativePos):(p.newPosX=s(i).x-m.offsetX,p.newPosY=s(i).y-m.offsetY,p.newRelativeX=p.newPosX-m.relativePos),"function"==typeof p.options.startDragging&&m.dragging!==!0&&0!==p.newRelativeX&&(m.dragging=!0,p.options.startDragging.apply(p,[p.$elem])),(p.newRelativeX>8||p.newRelativeX<-8&&p.browser.isTouch===!0)&&(i.preventDefault?i.preventDefault():i.returnValue=!1,m.sliding=!0),(p.newPosY>10||p.newPosY<-10)&&m.sliding===!1&&t(o).off("touchmove.owl");var n=function(){return p.newRelativeX/5},a=function(){return p.maximumPixels+p.newRelativeX/5};p.newPosX=Math.max(Math.min(p.newPosX,n()),a()),p.browser.support3d===!0?p.transition3d(p.newPosX):p.css2move(p.newPosX)}function l(o){var o=o.originalEvent||o||e.event;if(o.target=o.target||o.srcElement,m.dragging=!1,p.browser.isTouch!==!0&&p.$owlWrapper.removeClass("grabbing"),p.dragDirection=p.owl.dragDirection="rtl"==p.options.direction?p.newRelativeX<0?"right":"left":p.newRelativeX<0?"left":"right",0!==p.newRelativeX){var i=p.getNewPosition();if(p.goTo(i,!1,"drag"),m.targetElement===o.target&&p.browser.isTouch!==!0){t(o.target).on("click.disable",function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t(o.target).off("click.disable")});var s=t._data(o.target,"events").click,a=s.pop();s.splice(0,0,a)}}n("off")}var p=this,m={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};p.isCssFinish=!0,p.$elem.on(p.ev_types.start,".owl-wrapper",a)},getNewPosition:function(){var t,e=this;return t=e.closestItem(),t>e.maximumItem?(e.currentItem=e.maximumItem,t=e.maximumItem):e.newPosX>=0&&(t=0,e.currentItem=0),t},closestItem:function(){var e=this,o=e.options.scrollPerPage===!0?e.pagesInArray:e.positionsInArray,i=e.newPosX,s=null;return t.each(o,function(n,a){i-e.itemWidth/20>o[n+1]&&i-e.itemWidth/20(o[n+1]||o[n]-e.itemWidth)&&"right"===e.moveDirection()&&(e.options.scrollPerPage===!0?(s=o[n+1]||o[o.length-1],e.currentItem=t.inArray(s,e.positionsInArray)):(s=o[n+1],e.currentItem=n+1))}),e.currentItem},moveDirection:function(){var t,e=this;return e.newRelativeX<0?(t="right",e.playDirection="next"):(t="left",e.playDirection="prev"),t},customEvents:function(){var t=this;t.$elem.on("owl.next",function(){t.next()}),t.$elem.on("owl.prev",function(){t.prev()}),t.$elem.on("owl.play",function(e,o){t.options.autoPlay=o,t.play(),t.hoverStatus="play"}),t.$elem.on("owl.stop",function(){t.stop(),t.hoverStatus="stop"}),t.$elem.on("owl.goTo",function(e,o){t.goTo(o)}),t.$elem.on("owl.jumpTo",function(e,o){t.jumpTo(o)})},stopOnHover:function(){var t=this;t.options.stopOnHover===!0&&t.browser.isTouch!==!0&&t.options.autoPlay!==!1&&(t.$elem.on("mouseover",function(){t.stop()}),t.$elem.on("mouseout",function(){"stop"!==t.hoverStatus&&t.play()}))},lazyLoad:function(){var e=this;if(e.options.lazyLoad===!1)return!1;for(var o=0;o=e.currentItem:!0,n&&a=n?setTimeout(o,100):i()}function i(){t.data("owl-loaded","loaded").removeClass("loading"),e.removeAttr("data-src"),"fade"===s.options.lazyEffect?e.fadeIn(400):e.show(),"function"==typeof s.options.afterLazyLoad&&s.options.afterLazyLoad.apply(this,[s.$elem])}var s=this,n=0;if("DIV"===e.prop("tagName")){e.css("background-image","url("+e.data("src")+")");var a=!0}else e[0].src=e.data("src");o()},autoHeight:function(){function e(){a+=1,s.completeImg(n.get(0))?o():100>=a?setTimeout(e,100):s.wrapperOuter.css("height","")}function o(){var e=t(s.$owlItems[s.currentItem]).height();s.wrapperOuter.css("height",e+"px"),s.wrapperOuter.hasClass("autoHeight")||setTimeout(function(){s.wrapperOuter.addClass("autoHeight")},0)}var s=this,n=t(s.$owlItems[s.currentItem]).find("img");if(n.get(0)!==i){var a=0;e()}else o()},completeImg:function(t){return t.complete?"undefined"!=typeof t.naturalWidth&&0==t.naturalWidth?!1:!0:!1},onVisibleItems:function(){var e=this;e.options.addClassActive===!0&&e.$owlItems.removeClass("active"),e.visibleItems=[];for(var o=e.currentItem;o=s.$userItems.length||-1===o?s.$userItems.eq(-1).after(t):s.$userItems.eq(o).before(t),void s.setVars()):!1},removeItem:function(t){var e,o=this;return 0===o.$elem.children().length?!1:(e=t===i||-1===t?-1:t,o.unWrap(),o.$userItems.eq(e).remove(),void o.setVars())}};t.fn.owlCarousel=function(e){return this.each(function(){if(t(this).data("owl-init")===!0)return!1;t(this).data("owl-init",!0);var o=Object.create(s);o.init(e,this),t.data(this,"owlCarousel",o)})},t.fn.owlCarousel.options={direction:"ltr",items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:e,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var i=Array.prototype.slice.call(arguments,1),s=this,e=function(){},o=function(){return s.apply(this instanceof e&&t?this:t,i.concat(Array.prototype.slice.call(arguments)))};return e.prototype=this.prototype,o.prototype=new e,o});
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith(' '):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'× ',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'
The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'
The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'
',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('
').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()});
!function(t){var e={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",responsiveWidth:!1},i=t(window),s=t(document),n=[],r=i.height(),o=function(){for(var e=i.scrollTop(),o=s.height(),a=o-r,c=e>a?a-e:0,p=0;p
=e)null!==d.currentTop&&(d.stickyElement.css("width","").css("position","").css("top",""),d.stickyElement.trigger("sticky-end",[d]).parent().removeClass(d.className),d.currentTop=null);else{var u=o-d.stickyElement.outerHeight()-d.topSpacing-d.bottomSpacing-e-c;0>u?u+=d.topSpacing:u=d.topSpacing,d.currentTop!=u&&(d.stickyElement.css("width",d.stickyElement.width()).css("position","fixed").css("top",u),"undefined"!=typeof d.getWidthFrom&&d.stickyElement.css("width",t(d.getWidthFrom).width()),d.stickyElement.trigger("sticky-start",[d]).parent().addClass(d.className),d.currentTop=u)}}},a=function(){r=i.height();for(var e=0;e ").attr("id",r+"-sticky-wrapper").addClass(s.wrapperClassName));i.wrapAll(o),s.center&&i.parent().css({width:i.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"==i.css("float")&&i.css({"float":"none"}).parent().css({"float":"right"});var a=i.parent();a.css("height",i.outerHeight()),n.push({topSpacing:s.topSpacing,bottomSpacing:s.bottomSpacing,stickyElement:i,currentTop:null,stickyWrapper:a,className:s.className,getWidthFrom:s.getWidthFrom,responsiveWidth:s.responsiveWidth})})},update:o,unstick:function(){return this.each(function(){for(var e=t(this),i=-1,s=0;st;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function f(e){this.img=e}function c(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll("img"),o=0,s=r.length;s>o;o++){var f=r[o];this.addImage(f)}}},s.prototype.addImage=function(e){var t=new f(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),f.prototype=new t,f.prototype.check=function(){var e=v[this.img.src]||new c(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},f.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return c.prototype=new t,c.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},c.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},c.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},c.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},c.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s});
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g ');
$(".top_expande").on("click", function(){
var $thiss=$(this);
var $conta=$thiss.siblings(".content");
if($thiss.hasClass("not_expanded")){
$($conta).stop().slideDown(300, function(){
$thiss.removeClass("not_expanded");
});
}else{
$($conta).stop().slideUp(300, function(){
$thiss.addClass("not_expanded");
});
}});
$("ul.sitemap li").each(function(index, element){
$(this).has("ul").addClass("has_child_sitmap");
if($(this).hasClass("has_child_sitmap")){
var num_child=$(this).find(" > ul > li").length;
$(this).append('
' + num_child +' ');
}});
$("#nav_menu").idealtheme({});
var image_menu_slide=$(".image_menu_slide");
var side_menu_res_a=$("body").hasClass("header_on_side") ? 1:4;
var side_menu_res_b=$("body").hasClass("header_on_side") ? 1:5;
image_menu_slide.owlCarousel({
direction: site_dir,
autoPlay:3000,
navigation:true,
stopOnHover:true,
itemsCustom:[
[0, 1],
[479, 2],
[768, 3],
[979, side_menu_res_a],
[1199, side_menu_res_b],
],
navigationText: [
"",
""
],
});
$(".has_sub_img").owlCarousel({
direction: site_dir,
singleItem:true,
autoPlay:3000,
autoHeight:false,
stopOnHover:true,
navigation:true,
navigationText: [
"",
""
],
});
$(".welcome_banner_slider").owlCarousel({
direction: site_dir,
slideSpeed:400,
autoPlay:3000,
autoHeight:true,
singleItem:true,
stopOnHover:true,
navigation:true,
navigationText:[
"
",
"
"
],
pagination:false,
});
$(".png_slider").each(function(index, element){
var $this_png_slider=$(this);
var owl_png_speed=$this_png_slider.data('speed');
var owl_png_duration=$this_png_slider.data('duration');
var owl_png_animation=$this_png_slider.data('animation');
var owl_png_height=$this_png_slider.data('height');
var owl_png_hover_stop=$this_png_slider.data('hover_stop');
var owl_png_navigation=$this_png_slider.data('navigation');
var owl_png_pagination=$this_png_slider.data('pagination');
$this_png_slider.owlCarousel({
direction: site_dir,
slideSpeed:(owl_png_speed!=='') ? owl_png_speed:900,
autoPlay:(owl_png_duration!=='') ? owl_png_duration:3000,
autoHeight:(owl_png_height!=='') ? owl_png_height:true,
singleItem:true,
stopOnHover:(owl_png_hover_stop!=='') ? owl_png_hover_stop:true,
navigation:(owl_png_navigation!=='') ? owl_png_navigation:true,
navigationText:[
"
",
"
"],
pagination:(owl_png_pagination!=='') ? owl_png_pagination:true,
});
if(site_dir=="ltr"&&owl_png_animation!=='slide'&&owl_png_animation!==''){
$this_png_slider.data('owlCarousel').reinit({
transitionStyle:owl_png_animation,
});
}});
$(".normal_text_slider").each(function(index, element){
var $this_txt_slider=$(this);
var owl_txt_speed=$this_txt_slider.data('speed');
var owl_txt_duration=$this_txt_slider.data('duration');
var owl_txt_animation=$this_txt_slider.data('animation');
var owl_txt_height=$this_txt_slider.data('height');
var owl_txt_hover_stop=$this_txt_slider.data('hover_stop');
var owl_txt_navigation=$this_txt_slider.data('navigation');
var owl_txt_pagination=$this_txt_slider.data('pagination');
$this_txt_slider.owlCarousel({
direction: site_dir,
slideSpeed:(owl_txt_speed!=='') ? owl_txt_speed:900,
autoPlay:(owl_txt_duration!=='') ? owl_txt_duration:3000,
autoHeight:(owl_txt_height!=='') ? owl_txt_height:true,
singleItem:true,
stopOnHover:(owl_txt_hover_stop!=='') ? owl_txt_hover_stop:true,
navigation:(owl_txt_navigation!=='') ? owl_txt_navigation:true,
navigationText:[
"
",
"
"],
pagination:(owl_txt_pagination!=='') ? owl_txt_pagination:true,
});
if(site_dir=="ltr"&&owl_txt_animation!=='slide'&&owl_txt_animation!==''){
$this_txt_slider.data('owlCarousel').reinit({
transitionStyle:owl_txt_animation,
});
}});
$(".our_client_slider").owlCarousel({
direction: site_dir,
slideSpeed:1000,
autoPlay:4000,
itemsCustom:[
[360, 2],
[450, 2],
[786, 3],
[1200, 5]
],
stopOnHover:true,
navigation:true,
navigationText:[
"
",
"
"],
pagination:false,
});
var owl_news=$(".hm_new_bar_slider");
owl_news.owlCarousel({
direction: site_dir,
loop:true,
itemsCustom:[
[0, 1],
[450, 2],
[786, 3],
[1200, 5],
[1600, 6]
],
slideSpeed:2000,
autoPlay:3000,
stopOnHover:false,
});
$('.hm_new_bar_controll_btn').on('click', function(event){
event.preventDefault();
if($(this).hasClass('pause')){
$(this).removeClass("pause").addClass("play");
owl_news.trigger('owl.play', 2000);
}else{
$(this).removeClass("play").addClass("pause");
owl_news.trigger('owl.stop', 2000);
}});
var shop_slide_sideboxed_a=4;
if($("body").hasClass("site_boxed")&&$("body").hasClass("header_on_side")){
shop_slide_sideboxed_a=3;
}
$(".shop_slider").owlCarousel({
direction: site_dir,
slideSpeed:1000,
autoPlay:4000,
autoHeight:false,
itemsCustom:[
[0, 1],
[450, 2],
[786, 3],
[1200, shop_slide_sideboxed_a],
[1600, 5]
],
stopOnHover:true,
navigation:true,
navigationText:[
"
",
"
"],
pagination:false,
});
$(".featured_slider").owlCarousel({
direction: site_dir,
slideSpeed:900,
autoPlay:4000,
itemsCustom:[
[0, 1],
[450, 2],
[786, 3],
[1000, 4],
[1200, 5]
],
autoHeight:true,
stopOnHover:true,
navigation:true,
navigationText:[
"
",
"
"],
pagination:true,
});
$(".thumbs_gall_slider_con").each(function(index, element){
var gall_con=$(this);
var sync1=$(gall_con).find(".thumbs_gall_slider_larg");
var sync2=$(gall_con).find(".gall_thumbs");
var owl_gall_speed=sync1.data('speed');
var owl_gall_duration=sync1.data('duration');
var owl_gall_animation=sync1.data('animation');
var owl_gall_height=sync1.data('height');
var owl_gall_hover_stop=sync1.data('hover_stop');
var owl_gall_navigation=sync1.data('navigation');
var owl_gall_pagination=sync1.data('pagination');
sync1.owlCarousel({
direction: site_dir,
singleItem:true,
slideSpeed:1000,
autoPlay:4000,
autoHeight:true,
navigation: true,
navigationText:[
"
",
"
"],
pagination:false,
afterAction:syncPosition,
responsiveRefreshRate:200,
});
if(site_dir=="ltr"&&owl_gall_animation!=='slide'&&owl_gall_animation!==''){
sync1.data('owlCarousel').reinit({
transitionStyle:owl_gall_animation,
});
}
sync2.owlCarousel({
direction: site_dir,
itemsCustom:[
[0, 3],
[450, 4],
[786, 6],
[1000, 6],
[1200, 8]
],
pagination:false,
afterInit:function(el){
el.find(".owl-item").eq(0).addClass("current_thumb");
}});
function syncPosition(el){
var current=this.currentItem;
$(sync2).find(".owl-item").removeClass("current_thumb").eq(current).addClass("current_thumb");
if($(sync2).data("owlCarousel")!==undefined){
center(current);
}}
$(sync2).on("click", ".owl-item", function(e){
e.preventDefault();
var number=$(this).data("owlItem");
sync1.trigger("owl.goTo",number);
});
function center(number){
var sync2visible=sync2.data("owlCarousel").owl.visibleItems;
var num=number;
var found=false;
for(var i in sync2visible){
if(num===sync2visible[i]){
found=true;
}}
if(found===false){
if(num>sync2visible[sync2visible.length-1]){
sync2.trigger("owl.goTo", num - sync2visible.length+2);
}else{
if(num - 1===-1){
num=0;
}
sync2.trigger("owl.goTo", num);
}}else if(num===sync2visible[sync2visible.length-1]){
sync2.trigger("owl.goTo", sync2visible[1]);
}else if(num===sync2visible[0]){
sync2.trigger("owl.goTo", num-1);
}}
});
var team_owl=($(".content_slider").hasClass("our_team_section")) ? 2:1;
if($(".content_slider").hasClass("testimonials_slider")){
var divs=$(".testimonials_slider > div");
for(var i=0; i < divs.length; i+=4){
divs.slice(i, i+4).wrapAll("
");
}}
$(".content_slider").owlCarousel({
direction: site_dir,
slideSpeed:800,
autoPlay:4000,
autoHeight:true,
itemsCustom:[
[0, 1],
[450, team_owl],
[786, team_owl],
[1000, team_owl],
[1200, team_owl]
],
stopOnHover:true,
navigation:false,
pagination:true,
});
$(".porto_galla").owlCarousel({
direction: site_dir,
slideSpeed:900,
autoPlay:3000,
autoHeight:true,
singleItem:true,
stopOnHover:true,
navigation:true,
pagination:true,
navigationText:[
"
",
"
"],
});
if(site_dir=="ltr"&&$('.porto_galla').length > 0){
$(".porto_galla").data('owlCarousel').reinit({
transitionStyle:"fadeUp",
});
}
$(".porto_galla").addClass("done_porto_galla");
$(".related_posts_con").owlCarousel({
direction: site_dir,
slideSpeed:900,
autoPlay:3000,
autoHeight:true,
itemsCustom:[
[0, 1],
[450, 2],
[600, 2],
[700, 3],
[1000, 3],
[1200, 4],
[1400, 4],
[1600, 5]
],
stopOnHover:true,
navigation:true,
pagination:true,
navigationText:[
"
",
"
"],
});
$(".related_slider_widget").owlCarousel({
direction: site_dir,
slideSpeed:900,
autoPlay:3000,
autoHeight:true,
singleItem:true,
stopOnHover:true,
navigation:true,
pagination:true,
navigationText:[
"
",
"
"],
});
$(".feature_icon_slider.hm_feature_slider").owlCarousel({
direction: site_dir,
slideSpeed:900,
autoPlay:5000,
autoHeight:true,
singleItem:true,
stopOnHover:true,
pagination:true,
});
if(site_dir=="ltr"&&$('.feature_icon_slider').length > 0){
$(".feature_icon_slider.hm_feature_slider").data('owlCarousel').reinit({
transitionStyle:"goDown",
});
}
var owl=$("#enar_owl_slider");
var owl_speed=owl.data('speed');
var owl_duration=owl.data('duration');
var owl_animation=owl.data('animation');
var owl_height=owl.data('height');
var owl_hover_stop=owl.data('hover_stop');
var owl_navigation=owl.data('navigation');
var owl_pagination=owl.data('pagination');
owl.owlCarousel({
direction: site_dir,
slideSpeed:owl_speed,
autoPlay:owl_duration,
autoHeight:owl_height,
singleItem:true,
afterAction:moved,
stopOnHover:owl_hover_stop,
navigation:owl_navigation,
navigationText:[
"
",
"
"
],
pagination:owl_pagination,
});
if(site_dir=="ltr"&&$('#enar_owl_slider').length > 0&&owl_animation!=='slide'&&owl_animation!==''){
owl.data('owlCarousel').reinit({
transitionStyle:owl_animation,
});
}
function moved(owl){
var o_d=owl.data('owlCarousel');
var sub_lenght=owl.find('.owl-item.active .owl_slider_con > span').length;
var sub_current=owl.find('.owl-item.active .owl_slider_con > span');
if(o_d){
owl.find('.owl-item').eq(o_d.currentItem).addClass('active').siblings().removeClass('active');
owl.find('.owl-item:not(.active) .owl_slider_con > span').removeClass('transform_owl');
owl.find('.owl-item.active .owl_slider_con > span').each(function(index, element){
setTimeout(function(){
owl.find('.owl-item.active .owl_slider_con > span').eq(index).addClass('transform_owl');
}, ((index+1)*200));
});
}else{
owl.find('.owl-item').eq(0).addClass('active').siblings().removeClass('active');
owl.find('.owl-item.active .owl_slider_con > span').each(function(index, element){
setTimeout(function(){
owl.find('.owl-item.active .owl_slider_con > span').eq(index).addClass('transform_owl');
}, ((index+1)*200));
});
}}
$(".tree_features li").each(function(index, element){
var bg_color=$(this).attr("data-bgcolor");
$(this).css({"background-color":bg_color});
$(this).find(".tree_curv").css({"background-color":bg_color});
});
if(typeof BoxesFx!=='undefined'&&$.isFunction(BoxesFx)){
var boxesfx_gall=new BoxesFx(document.getElementById('boxgallery'));
}
if(typeof SliderFx!=='undefined'&&$.isFunction(SliderFx)){
var wobbly_duration=$('#wobbly_slide').data('duration');
var wobbly_easing=$('#wobbly_slide').data('easing');
var wobbly_get_duration=(wobbly_duration!=='') ? wobbly_duration:5000;
var wobbly_get_easing=(wobbly_easing!=='') ? wobbly_easing:'cubic-bezier(0.8,0,.2,1)';
var slide_fx=new SliderFx(document.getElementById('wobbly_slide'), {
easing:wobbly_get_easing,
});
$('#wobbly_slide').addClass('wobbly_slide_con');
$('.wobbly_slide_con').each(function(){
var $prev_img=$(this).find('nav .prev');
var $next_img=$(this).find('nav .next');
var slider_lenth=0;
var chick_it=false;
var $li_childs=$(this).children('ul').find('li').length;
setInterval(function(){
if(slider_lenth==$li_childs){
chick_it=true;
}
if(slider_lenth==1){
chick_it=false;
}
if(chick_it){
slider_lenth -=1;
$prev_img.click();
}
if(!chick_it){
slider_lenth +=1;
$next_img.click();
}}, wobbly_get_duration);
});
}
if(typeof Photostack!=='undefined'&&$.isFunction(Photostack)){
var photostack_a=new Photostack(document.getElementById('photostack-1'), {
callback:function(item){
console.log(item);
}});
var photostack_b=new Photostack(document.getElementById('photostack-2'), {
callback:function(item){
}});
var photostack_c=new Photostack(document.getElementById('photostack-3'), {
callback:function(item){
}});
}
if($.isFunction($.fn.camera)){
$(".hm_camera_slider").each(function(){
var camera_slider=$(this);
var camera_animation=camera_slider.data('animation');
var camera_loader=camera_slider.data('loader');
var camera_speed=camera_slider.data('speed');
var camera_duration=camera_slider.data('duration');
var camera_thumbs=camera_slider.data('thumbs');
var camera_hover_stop=camera_slider.data('hover_stop');
var camera_navigation=camera_slider.data('navigation');
var camera_pagination=camera_slider.data('pagination');
camera_slider.camera({
loader:(camera_loader!=='') ? camera_loader :'bar',
loaderColor:(camera_loader=='bar') ? '#1CCDCA':'#eeeeee',
loaderBgColor:(camera_loader=='bar') ? 'none':'#222222',
loaderOpacity:(camera_loader=='bar') ? 0.7:0.8,
loaderPadding:(camera_loader=='bar') ? 0:2,
loaderStroke:(camera_loader=='bar') ? 5:7,
thumbnails:(camera_thumbs!=='') ? camera_thumbs:true,
pagination:(camera_pagination!=='') ? camera_pagination:true,
navigation:(camera_navigation!=='') ? camera_navigation:true,
hover:(camera_hover_stop!=='') ? camera_hover_stop:true,
fx:(camera_animation!=='') ? camera_animation:'random',
time:(camera_duration!=='') ? camera_duration:7000,
transPeriod:(camera_speed!=='') ? camera_speed:2000,
});
});
}
if($.isFunction($.fn.flexslider)){
var thumb_width=120;
if(getScreenWidth() >=1024){
thumb_width=120;
}else if(getScreenWidth() >=766){
thumb_width=100;
}else if(getScreenWidth() >=478){
thumb_width=80;
}else{
thumb_width=50;
}
$('.flex_slider_container').each(function(index, element){
var $flex_con=$(this);
var $flex_thumbs_con=$flex_con.find('#flex_thumbs');
var $flex_slider_con=$flex_con.find('#flex_carousel');
var owl_flex_speed=$flex_slider_con.data('speed');
var owl_flex_duration=$flex_slider_con.data('duration');
var owl_flex_animation=$flex_slider_con.data('animation');
var owl_flex_easing=$flex_slider_con.data('easing');
var owl_flex_hover_stop=$flex_slider_con.data('hover_stop');
var owl_flex_pagination=$flex_slider_con.data('pagination');
$flex_thumbs_con.flexslider({
animation: "slide",
controlNav: false,
directionNav: false,
animationLoop: true,
easing: owl_flex_easing,
useCSS: false,
slideshow: false,
itemWidth: thumb_width,
itemMargin: 0,
slideshowSpeed: owl_flex_duration,
animationSpeed: owl_flex_speed,
pauseOnHover: owl_flex_hover_stop,
asNavFor: $flex_slider_con
}).flexsliderManualDirectionControls({
previousElementSelector: ".flex_previous",
nextElementSelector: ".flex_next",
disabledStateClassName: "flex_disabled"
});
$flex_slider_con.flexslider({
animation: owl_flex_animation,
controlNav: owl_flex_pagination,
directionNav: false ,
direction: "horizontal",
animationLoop: true,
slideshow: true,
easing: owl_flex_easing,
useCSS: false,
slideshowSpeed: owl_flex_duration,
animationSpeed: owl_flex_speed,
pauseOnHover: owl_flex_hover_stop,
sync: $flex_thumbs_con,
start: function(slider){
}}).flexsliderManualDirectionControls({
previousElementSelector: ".flex_previous",
nextElementSelector: ".flex_next",
disabledStateClassName: "flex_disabled"
});
$('.flex_in_flex').flexslider({
animation: "fade",
controlNav: true,
selector: ".flex_in_slides > li",
directionNav: false ,
direction: "horizontal",
animationLoop: true,
slideshow: true,
easing: "swing",
slideshowSpeed: 3000,
animationSpeed: 800,
pauseOnHover: false,
});
});
}
var to_top_offset=300,
to_top_offset_opacity=1200,
scroll_top_duration=900,
$back_to_top=$('.hm_go_top');
$(window).scroll(function(){
if($(this).scrollTop() > to_top_offset){
$back_to_top.addClass('hm_go_is-visible');
}else{
$back_to_top.removeClass('hm_go_is-visible hm_go_fade-out');
}
if($(this).scrollTop() > to_top_offset_opacity){
$back_to_top.addClass('hm_go_fade-out');
}
return false;
});
$back_to_top.on('click', function(event){
event.preventDefault();
$('body,html').animate({
scrollTop: 0,
} , {queue:false, duration: scroll_top_duration, easing:"easeInOutExpo"}
);
});
$(window).scroll(function(){
if($(this).scrollTop() > 40&&$("body").hasClass("site_boxed")&&$("body").hasClass("header_on_side")){
$("#side_heder").addClass("start_side_offset");
}else{
$("#side_heder").removeClass("start_side_offset");
}});
$(".content_section:not(.bg_gray)").each(function(index, element){
var color='';
var section_bg=$(this).css('backgroundColor');
var parts=section_bg.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
if(parts!==null){
delete(parts[0]);
for (var i=1; i <=3; ++i){
parts[i]=parseInt(parts[i]).toString(16);
if(parts[i].length==1) parts[i]='0' + parts[i];
}
color='#' + parts.join('');
$(this).find(".main_title .line i").css({"background-color":color});
$(this).find(".main_title .line .dot").css({"background-color":color});
}});
$("[data-dialog]").each(function(index, element){
var dialog_btn=element,
dialog_name=document.getElementById(dialog_btn.getAttribute('data-dialog')),
my_dlg=new DialogFx(dialog_name);
dialog_btn.addEventListener('click', my_dlg.toggle.bind(my_dlg));
});
if($.isFunction($.fn.magnificPopup)){
$('.expand_image').each(function(index, element){
$(this).click(function(){
$(this).parent().siblings("a").click();
$(this).parent().siblings(".porto_galla").find("a:first").click();
$(this).parent().siblings(".embed-container").find("a").click();
return false;
});
});
$('.featured_slide_block').each(function(index, element){
var gall_con=$(this);
var expander=$(this).find("a.expand_img");
expander.click(function(){
gall_con.find("a:first").click();
return false;
});
});
$('.porto_block').each(function(index, element){
var gall_con=$(this);
var expander=$(this).find("a.expand_image");
var expander_a=$(this).find("a.expand_img");
var expander_b=$(this).find("a.expand_link");
expander.on('click', function(){
gall_con.find("a:first").click();
return false;
});
expander_a.on('click', function(){
gall_con.find("a:first").click();
return false;
});
});
$(".porto_block").addClass("done_porto_block");
$(".magnific-popup, a[data-rel^='magnific-popup']").magnificPopup({
type: 'image',
mainClass: 'mfp-with-zoom',
zoom: {
enabled: true,
duration: 300,
easing: 'ease-in-out',
opener: function(openerElement){
return openerElement.is('img') ? openerElement:openerElement.find('img');
}}
});
$(".magnific-popup, a[data-rel^='magnific-popup']").addClass("done_magnific");
$('.magnific-gallery, .thumbs_gall_slider_larg, .porto_galla').magnificPopup({
delegate: 'a.feature_inner_ling',
type: 'image',
gallery: {
enabled: true
},
removalDelay: 500,
callbacks: {
beforeOpen: function(){
this.st.image.markup=this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
this.st.mainClass= "mfp-zoom-in";
}},
closeOnContentClick: true,
midClick: true ,
retina: {
ratio: 1,
replaceSrc: function(item, ratio){
return item.src.replace(/\.\w+$/, function(m){ return '@2x' + m; });
}}
});
$('.popup-youtube, .popup-vimeo, .popup-gmaps, .vid_con, .hm_woocomm_vid').magnificPopup({
disableOn:700,
type:'iframe',
mainClass:'mfp-fade',
removalDelay:160,
preloader:false,
fixedContentPos:false
});
$('.popup-with-zoom-anim').magnificPopup({
type:'inline',
fixedContentPos:false,
fixedBgPos:true,
overflowY:'auto',
closeBtnInside:true,
preloader:false,
midClick:true,
removalDelay:300,
mainClass:'my-mfp-zoom-in'
});
$('.popup-with-move-anim').magnificPopup({
type:'inline',
fixedContentPos:false,
fixedBgPos:true,
overflowY:'auto',
closeBtnInside:true,
preloader:false,
midClick:true,
removalDelay:300,
mainClass:'my-mfp-slide-bottom'
});
}
var hm_screen_last_width=hm_screen_width();
$(window).resize(function(){
hm_screen_last_width=hm_screen_width();
hm_google_map_with_text();
});
function hm_screen_width(){
return document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth;
}
if($.isFunction($.fn.mediaelementplayer)){
$("audio.hosted_audio").mediaelementplayer();
$("video.hosted_video").mediaelementplayer({
alwaysShowControls: true,
});
$("audio.hosted_audio, video.hosted_video").addClass("self_hosted_worked");
}
hm_google_map_with_text();
function hm_google_map_with_text(){
$(".col-md-4 .google_map, .col-md-6 .google_map, .col-md-3 .google_map, .col-md-9 .google_map").each(function(index, element){
var widthy=$(this).innerWidth();
$(this).height(widthy/2);
});
}
$(".google_map").each(function(index, element){
var main_lato=$(this).attr("data-lat");
var main_longo=$(this).attr("data-long");
var enable_main=$(this).attr("data-main");
var main_texto=$(this).attr("data-text");
var map_icon_marker=$(this).attr("data-icon");
var arr=[]; var arr_con=[]; var arr_text=[];
var total=$(this).find(".location").length;
$(this).find(".location").each(function(i){
var lato=$(this).attr("data-lat");
var longo=$(this).attr("data-long");
var texto=$(this).attr("data-text");
arr_text.push(texto);
arr=[lato,longo];
arr_con.push(arr);
});
var map;
if(typeof GMaps!=='undefined'){
map=new GMaps({
el: element,
scrollwheel: false,
lat: main_lato,
lng: main_longo,
});
if(total===0||enable_main=="yes"){
map.addMarker({
lat: main_lato,
lng: main_longo,
icon: map_icon_marker,
infoWindow: {
content: main_texto
}});
}
if(total > 0){
map.getElevations({
locations:arr_con,
callback:function (result, status){
if(status==google.maps.ElevationStatus.OK){
for (var i in result){
if(result.hasOwnProperty(i)){
map.addMarker({
lat: result[i].location.lat(),
lng: result[i].location.lng(),
icon: "img/map.png",
infoWindow: {
content: arr_text[i]
}});
}}
}}
});
}}
});
$(".google_map").each(function(index){
var con_index=index + 1;
var id_name="map" + con_index;
$(this).attr('id', id_name);
});
$('.porto_full_desc .hm_filter_wrapper_con > .filter_item_block > .porto_block').each(function(){
$(this).hoverdir({
hoverElem:'.porto_desc'
});
$(this).addClass('hoverdir_done');
});
$('.has_hoverdir .featured_slide_block').each(function(){
$(this).hoverdir({
hoverElem:'.hoverdir_con'
});
});
$('.counter').appear(function(){
$(this).children('.value').countTo();
});
$(".masonry_posts.colored_masonry .blog_grid_block").each(function(index, element){
var bg_color=$(this).data("bg");
$(this).find(".blog_grid_desc, .blog_grid_format i").css({ "background":bg_color});
});
$("[data-progress-val]").each(function(){
var $this=$(this);
$this.appear(function(){
var con_width=$this.width();
var title_width=$this.find(".title").width();
var value_width=$this.find(".value").width();
var fill_percent=$this.attr("data-progress-val");
var fill_width=con_width*(fill_percent/100);
if(fill_width <=value_width + title_width){
$this.find(".fill").addClass("small_line_bar");
$this.find(".value").css({"opacity":0, "right":- title_width});
}
var delay=($this.attr("data-progress-delay") ? $this.attr("data-progress-delay"):1);
var animation_type=($this.attr("data-progress-animation") ? $this.attr("data-progress-animation"):"easeOutBounce");
var bg_color=($this.attr("data-progress-color") ? $this.attr("data-progress-color"):"");
$this.find(".fill").css({"background":bg_color});
if(delay > 1) $this.css("animation-delay", delay + "ms");
$this.find(".fill").addClass($this.attr("data-appear-animation"));
setTimeout(function(){
if(fill_width <=value_width + title_width){
$this.find(".value").animate({ opacity: 1 });
}
$this.find(".fill").animate({
width: $this.attr("data-progress-val")+'%',
}, 1500, animation_type, function(){
if(site_dir=="ltr"){
$this.find(".title").animate({
opacity: 1,
left: 0
}, 1500, animation_type);
}else{
$this.find(".title").animate({
opacity: 1,
right: 0
}, 1500, animation_type);
}});
$this.find(".value .num").countTo({
from: 0,
to: $this.attr("data-progress-val"),
speed: 1500,
refreshInterval: 50,
});
}, delay);
}, {accX: 0, accY: -50});
});
$(".hm_circle_progressbar").each(function(index, element){
var $this_this=$(this);
$(this).appear(function(){
var hm_delay=($(this).attr("data-delay") ? $(this).attr("data-delay"):1);
var hm_percenty=$(this).attr("data-percentag") ? $(this).attr("data-percentag"):100;
var hm_startColor=$(this).attr("data-start-color") ? $(this).attr("data-start-color"):'#1CCDCA';
var hm_endColor=$(this).attr("data-end-color") ? $(this).attr("data-end-color"):'#1CCDCA';
var hm_animation=$(this).attr("data-animation") ? $(this).attr("data-animation"):'easeInOut';
var hm_days_nums=$(this).attr("data-event") ? $(this).attr("data-event"):"";
var hm_hours_nums=$(this).attr("data-hours") ? $(this).attr("data-hours"):"";
function showDays(firstDate,secondDate){
var startDay=new Date(firstDate);
var endDay=new Date(secondDate);
var millisecondsPerDay=1000 * 60 * 60 * 24;
var millisBetween=startDay.getTime() - endDay.getTime();
var days=millisBetween / millisecondsPerDay;
return Math.floor(days);
}
var tdate=new Date();
var dd=tdate.getDate();
var MM=tdate.getMonth();
var yyyy=tdate.getFullYear();
var today_is=(MM+1) + "/" + dd + "/" + yyyy;
var days=showDays(hm_days_nums,today_is);
var hm_percenty_color='#666';
var hm_progress_type='';
var circle;
var iii;
if($(this).hasClass("square")&&$(this).closest(".white_section").length!==0){
hm_percenty_color='#fff';
}else if(site_dark=="yes"&&$(this).hasClass("style1")&&$(this).closest(".white_section").length!==0){
hm_percenty_color='#666';
}else if(site_dark=="no"&&$(this).hasClass("style1")&&$(this).closest(".white_section").length!==0){
hm_percenty_color='#666';
}else if(site_dark=="yes"||$(this).closest(".white_section").length!==0||($(this).hasClass("square")&&$(this).closest(".white_section").length!==0)){
hm_percenty_color='#fff';
}else{
hm_percenty_color='#666';
}
if($(this).hasClass("path")){
var scene=document.getElementsByTagName('object');
var lengh_heart=scene.length;
var path=new ProgressBar.Path(scene[0].contentDocument.querySelector('.heart-path'), {
duration: 2000,
easing: 'easeInOut',
step: function(state, path){
}});
var $path_val=$this_this.find('.path_val .num');
$path_val.countTo({
from: 0,
to: hm_percenty,
speed: 2000,
});
path.animate(hm_percenty / 100);
}else if($(this).hasClass("square")){
circle=new ProgressBar.Square(element , {
color: hm_startColor,
trailColor: 'rgba(0,0,0,.07)',
strokeWidth: 2.5,
duration: 2000,
easing: hm_animation,
from: { color: hm_startColor, width: 2.5 },
to: { color: hm_endColor, width: 2.5 },
text: {
value: '0',
color: hm_percenty_color,
},
step: function(state, circle){
circle.setText((circle.value() * 100).toFixed(0) + "%");
circle.path.setAttribute('stroke', state.color);
circle.path.setAttribute('stroke-width', state.width);
}});
}else if($this_this.hasClass("seconds")){
circle=new ProgressBar.Circle(element , {
color: hm_startColor,
trailColor: 'rgba(255,255,255,.1)',
strokeWidth: 10,
trailWidth: 2,
duration: 200,
easing: hm_animation,
from: { color: hm_startColor, width: 2 },
to: { color: hm_endColor, width: 2 },
text: {
value: ' ',
color: hm_percenty_color,
},
step: function(state, circle){
circle.path.setAttribute('stroke', state.color);
circle.path.setAttribute('stroke-width', state.width);
}});
setInterval(function(){
var second=new Date().getSeconds();
var second_minus=60 - second;
circle.animate(second_minus / 60, function(){
if(second===0){
second=60;
circle.setText(second_minus);
}else{
circle.setText(second_minus);
}});
}, 1000);
}else if($this_this.hasClass("minutes")){
circle=new ProgressBar.Circle(element , {
color: hm_startColor,
trailColor: 'rgba(255,255,255,.1)',
strokeWidth: 10,
trailWidth: 2,
duration: 800,
easing: hm_animation,
from: { color: hm_startColor, width:2 },
to: { color: hm_endColor, width: 2 },
text: {
value: ' ',
color: hm_percenty_color,
},
step: function(state, circle){
circle.path.setAttribute('stroke', state.color);
circle.path.setAttribute('stroke-width', state.width);
}});
iii=0;
setInterval(function(){
var minutes=new Date().getMinutes();
var minutes_minus=60 - minutes;
var $path_val=$this_this.find('.progressbar-text');
if(iii===0){
$path_val.countTo({
from: 0,
to: minutes_minus,
speed: 800,
});
}
iii=1;
circle.animate(minutes_minus / 60, function(){
if(minutes===0){
minutes=60;
circle.setText(minutes_minus);
}else{
circle.setText(minutes_minus);
}});
}, 1000);
}else if($this_this.hasClass("hours")){
circle=new ProgressBar.Circle(element , {
color: hm_startColor,
trailColor: 'rgba(255,255,255,.1)',
strokeWidth: 10,
trailWidth: 2,
duration: 800,
easing: hm_animation,
from: { color: hm_startColor, width: 2 },
to: { color: hm_endColor, width: 2 },
text: {
value: ' ',
color: hm_percenty_color,
},
step: function(state, circle){
circle.path.setAttribute('stroke', state.color);
circle.path.setAttribute('stroke-width', state.width);
}});
iii=0;
setInterval(function(){
var current_hours=new Date().getHours();
var real_hours=0;
if(current_hours <=hm_hours_nums){
real_hours=(24) - hm_hours_nums + current_hours;
}else{
real_hours=current_hours;
}
var hours_minus=24 - real_hours;
var $path_val=$this_this.find('.progressbar-text');
if(iii===0){
$path_val.countTo({
from: 0,
to: hours_minus,
speed: 800,
});
}
iii=1;
circle.animate(hours_minus / 24, function(){
if(current_hours===0){
current_hours=24;
circle.setText(hours_minus);
}else{
circle.setText(hours_minus);
}});
}, 1000);
}else if($this_this.hasClass("days")){
circle=new ProgressBar.Circle(element , {
color: hm_startColor,
trailColor: 'rgba(255,255,255,.1)',
strokeWidth: 10,
trailWidth: 2,
duration: 800,
easing: hm_animation,
from: { color: hm_startColor, width: 2 },
to: { color: hm_endColor, width: 2 },
text: {
value: "0",
color: hm_percenty_color,
},
step: function(state, circle){
circle.path.setAttribute('stroke', state.color);
circle.path.setAttribute('stroke-width', state.width);
}});
iii=0;
setInterval(function(){
var $path_val=$this_this.find('.progressbar-text');
if(iii===0){
$path_val.countTo({
from: 0,
to: days,
speed: 800,
});
}
iii=1;
circle.animate(days / 365, function(){
circle.setText(days);
});
}, 1000);
}else{
circle=new ProgressBar.Circle(element , {
color: hm_startColor,
trailColor: 'rgba(0,0,0,.07)',
strokeWidth: 10,
trailWidth: 2,
duration: 2000,
easing: hm_animation,
from: { color: hm_startColor, width: 2 },
to: { color: hm_endColor, width: 2 },
text: {
value: '0',
color: hm_percenty_color,
},
step: function(state, circle){
circle.setText((circle.value() * 100).toFixed(0) + "%");
circle.path.setAttribute('stroke', state.color);
circle.path.setAttribute('stroke-width', state.width);
}});
}
setTimeout(function(){
$this_this.parent().animate({
opacity: 1,
}, 1000);
$this_this.find(".progressbar-text").animate({
opacity: 1,
}, hm_delay);
if($this_this.hasClass("path")){
}else if($this_this.hasClass("seconds")||$this_this.hasClass("minutes")||$this_this.hasClass("hours")||$this_this.hasClass("days")){
}else{
circle.animate(hm_percenty / 100, function(){
});
}}, hm_delay);
});
});
$('.team_block3').each(function(){
var num=0;
$('.team-col').each(function(index){
var bg_color=$(this).attr("data-color");
num +=1;
if(num==3||num==4){
$(this).addClass("team_col_on_right");
}
if(num==4){
num=0;
}
if(typeof bg_color!==typeof undefined&&bg_color!==false){
$(this).css({ "background":bg_color});
$(this).find(".arrow").css({ "background":bg_color});
}});
});
if($.isFunction($.fn.YTPlayer)){
$(".youtube_bg_video").each(function(index, element){
var $vid_vid=$(this);
var $vid_controlls=$vid_vid.parent().find('.play_video_btn');
$vid_vid.YTPlayer();
$($vid_controlls).on('click', function(event){
event.preventDefault();
if($vid_controlls.hasClass('play_video')){
$vid_controlls.removeClass('play_video').addClass('pause_video');
$vid_controlls.find('i').removeClass().addClass('ico-pause2');
$vid_vid.playYTP();
$vid_vid.removeClass('now_pausing').addClass('now_playing');
}else{
$vid_controlls.removeClass('pause_video').addClass('play_video');
$vid_controlls.find('i').removeClass().addClass('ico-play5');
$vid_vid.pauseYTP();
}});
});
}
$('.html_video_background').each(function(index, element){
var mp4=$(this).attr("data-mp");
var webm=$(this).attr("data-webm");
var ogg=$(this).attr("data-ogg");
var poster=$(this).attr("data-poster");
var controll_pos=$(this).parent().find(".video_frame_bl");
var resize_to=$(this).parent();
$(this).videobackground({
videoSource: [
[mp4, 'video/mp4'],
[webm, 'video/webm'],
[ogg, 'video/ogg']
],
controlPosition: controll_pos,
poster: poster,
loadedCallback: function(){
$(this).videobackground('mute');
},
loop: true,
controlText:[
['
'],
['
'],
['
'],
['
']
],
resizeTo: '.html_video_background'
});
});
$('.animated').appear(function(){
var elem=$(this);
var animation=elem.data('animation');
if(!elem.hasClass('visible')){
var animationDelay=elem.data('animation-delay');
if(animationDelay){
setTimeout(function(){
elem.addClass(animation + " visible");
elem.removeClass('hiding');
}, animationDelay);
}}
});
$('.scroll').on('click', function(event){
var $anchor=$(this);
var headerH=$('#navigation_bar').outerHeight();
var my_offset=0;
if($(this).hasClass("reviews_navigate")){
var rev_tab=$("a[data-content='reviews']");
$(rev_tab).click();
}
if($(this).hasClass("onepage")&&$('#navigation_bar').hasClass("hm_sticky")){
my_offset=headerH - 2;
}
$('html, body').stop().animate({
scrollTop:$($anchor.attr('href')).offset().top - my_offset + "px"
}, 1200, 'easeInOutExpo');
event.preventDefault();
});
$(".quantity_controll").on("click", function(){
var $button=$(this);
var oldValue=$button.siblings('.input-text').val();
var newVal;
if($button.hasClass('plus')){
newVal=parseFloat(oldValue) + 1;
}else{
if(oldValue > 1){
newVal=parseFloat(oldValue) - 1;
}else{
newVal=1;
}}
$button.siblings('.input-text').val(newVal);
});
$(window).resize(function(){
hmtabswidth();
});
hmtabswidth();
function hmtabswidth(){
$('.hm-tabs').each(function(index){
var $allparent=$(this);
var all_width=$allparent.width();
var all_lis=0;
$allparent.find(".tabs-navi > li").each(function(index, element){
var li_width=$(this).outerWidth();
all_lis +=li_width;
});
if(all_lis >=all_width){
$allparent.addClass("tabs_mobile");
}else{
$allparent.removeClass("tabs_mobile");
}});
$('.sort_options').each(function(index){
var $allparent=$(this);
var all_width=$allparent.width();
var all_lis=0;
$allparent.find("#filter-by > li").each(function(index, element){
var li_width=$(this).outerWidth();
all_lis +=li_width;
});
if(all_lis >=all_width){
$allparent.addClass("filter_by_mobile");
}else{
$allparent.removeClass("filter_by_mobile");
}});
}
$('.hm-tabs').each(function(index){
var allparent=$(this);
var all_width=allparent.width();
var tabItems=allparent.find('.tabs-navi a'),
tabContentWrapper=allparent.find('.tabs-body');
allparent.find('.tabs-navi li:first-child a').addClass("selected");
tabContentWrapper.children('li:first-child').addClass("selected");
var ver_navi_height=allparent.find('.tabs-navi').innerHeight();
if(allparent.hasClass('ver_tabs')){
tabContentWrapper.css({"min-height": ver_navi_height});
}
tabItems.on('click', function(event){
event.preventDefault();
var selectedItem=$(this);
var parentlist=selectedItem.parent();
if(parentlist.index()===0){
selectedItem.parent().siblings("li").removeClass('prev_selected');
}else{
selectedItem.parent().prev().addClass('prev_selected').siblings("li").removeClass('prev_selected');
}
if(!selectedItem.hasClass('selected')){
var selectedTab=selectedItem.data('content'),
selectedContent=tabContentWrapper.find('li[data-content="'+selectedTab+'"]'),
slectedContentHeight=selectedContent.innerHeight();
tabItems.removeClass('selected');
selectedItem.addClass('selected');
selectedContent.addClass('selected').siblings('li').removeClass('selected');
}});
checkScrolling($('.hm-tabs nav'));
$(window).on('resize', function(){
checkScrolling($('.hm-tabs nav'));
tabContentWrapper.css('height', 'auto');
var ver_navi_height_re=allparent.find('.tabs-navi').innerHeight();
if(allparent.hasClass('ver_tabs')){
tabContentWrapper.css({"min-height": ver_navi_height_re});
}});
$('.hm-tabs nav').on('scroll', function(){
checkScrolling($(this));
});
function checkScrolling(tabs){
var totalTabWidth=parseInt(tabs.children('.tabs-navi').width()),
tabsViewport=parseInt(tabs.width());
if(tabs.scrollLeft() >=totalTabWidth - tabsViewport){
tabs.parent('.hm-tabs').addClass('is-ended');
}else{
tabs.parent('.hm-tabs').removeClass('is-ended');
}}
});
$(".hm_filter_wrapper").each(function(index, element){
var main_parent=$(this);
var filter_buttons=main_parent.find('#filter-by');
var filtered_parent=main_parent.find('.hm_filter_wrapper_con');
var col_width=main_parent.hasClass("masonry_porto") ? 1:0;
main_parent.find("#filter-by li a").each(function(index, element){
var get_class=$(this).attr("data-option-value");
var lenghty=main_parent.find(".hm_filter_wrapper_con > "+get_class).length;
$(this).find(".num").html(lenghty);
});
main_parent.find(".sort_list a.sort_selecter").click(function(){
return false;
});
main_parent.find("#sort-by li a").click(function(){
var this_a=$(this);
var $asc_desc=this_a.closest('.sort_list').siblings("#sort-direction");
$asc_desc.css({"opacity":"1"});
var this_text=this_a.find('.text').text();
var writed=this_a.closest('.sort_list').find('a.sort_selecter .text');
writed.html(this_text);
});
var $container=main_parent.find('.hm_filter_wrapper_con').imagesLoaded(function(){
var col_width_mobile=0;
var number_of_cols=5;
if(!main_parent.hasClass('content_filter')){
$container.isotope({
itemSelector:'.filter_item_block',
sortBy: 'original-order',
layoutMode: 'masonry',
resizable: false,
masonry: {
},
getSortData:{
name: '.name',
like_counter: '.like_counter parseInt',
number: '.number parseInt',
comm_counter: '.comm_counter parseInt',
},
});
/*$(window).resize(function(){
$('.filter_item_block').removeClass("fadeInUp animated visible");
if((main_parent.hasClass('masonry_porto'))){
$container.isotope({
masonry: { columnWidth: $container.width() / isotop_resize_cols() }});
}});*/
var $optionSets=main_parent.find('#options .option-set'),
$optionLinks=$optionSets.find('a');
$optionLinks.click(function(){
var $this=$(this);
if($this.hasClass('selected')){
return false;
}
var $optionSet=$this.parents('.option-set');
$optionSet.find('.selected').removeClass('selected');
$this.addClass('selected');
var options={},
key=$optionSet.attr('data-option-key'),
value=$this.attr('data-option-value');
value=value==='false' ? false:value;
options[ key ]=value;
if(key==='layoutMode'&&typeof changeLayoutMode==='function'){
changeLayoutMode($this, options);
}else{
$container.isotope(options);
}
return false;
});
}else{
filtered_parent.find('.content_filter_item').each(function(index, element){
var filtered_parent_item=$(this);
var item_height=filtered_parent_item.find('.enar_accordion').outerHeight();
filtered_parent_item.animate({
height:item_height+10+'px',
}, 300);
});
filter_buttons.find('li a').click(function(event){
var i_sel=$(this).attr('data-option-value');
event.preventDefault();
if(!$(this).hasClass('selected')){
filter_buttons.find('li a').removeClass('selected');
$(this).addClass('selected');
filtered_parent.children().not(i_sel).each(function(index, element){
var this_occy=$(this);
var child_occ=this_occy.find(".enar_occ_container");
this_occy.animate({ height:0 }).addClass('content_hidden');
child_occ.removeClass("occ_expanded");
child_occ.find(".enar_occ_content").stop(true, true).animate({
height:'0px',
}, 300);
});
filtered_parent.children(i_sel).each(function(index, element){
var this_occy=$(this);
var heighty=$(this).find(".enar_accordion").outerHeight()+ 10;
this_occy.animate({ height:heighty+'px' }).removeClass('content_hidden');
});
}});
}
function timeline_on_left_and_right(){
$('.hm_filter_wrapper_con.timeline').children('.filter_item_block').each(function(index, element){
var last_child=$(this);
var prev_last=$(this).prev();
var last_child_offset=parseInt(last_child.css('top'));
var prev_last_offset=parseInt(prev_last.css('top'));
var offset_icon=last_child_offset - prev_last_offset;
var go_top_to=0;
if(offset_icon){
if(offset_icon <=87){
go_top_to=87 - offset_icon;
last_child.find('.timeline_post_format').animate({
top: go_top_to,
}, 300);
}}
if($(this).position().left===0){
$(this).removeClass('timeline_on_right');
$(this).addClass('timeline_on_left');
}else{
$(this).removeClass('timeline_on_left');
$(this).addClass('timeline_on_right');
}});
}
timeline_on_left_and_right();
$(window).resize(function(){
timeline_on_left_and_right();
});
});
});
$(window).resize(function(){
$('.animated').each(function(index, element){
var elem=$(this);
if(elem.hasClass('visible')){
elem.removeClass('animated');
}});
});
$('.hm_icon_search > a, .top_add_card').on('click', function(event){
var parent=$(this).parent();
var $this_btn=$(this);
var $target_block=$this_btn.siblings('div');
event.preventDefault();
event.stopPropagation();
if(parent.hasClass('active')&&$target_block.hasClass('hm_active_prep')){
$target_block.fadeOut(function(){
parent.removeClass('active');
});
}else{
parent.addClass('active');
$('.hm_toogle_prep').removeClass('hm_active_prep');
$target_block.addClass('hm_active_prep');
$('.hm_toogle_prep:not(.hm_active_prep)').fadeOut();
$target_block.fadeIn(function(){
$target_block.on("click touchstart", function(e){
e.stopPropagation();
});
});
}
$(document).on("click touchstart", function(e){
$target_block.fadeOut();
parent.removeClass('active');
});
});
$('.languages-select > span').on('click touchstart', function(event){
var parent=$(this).parent();
var $this_btn=$(this);
var $target_block=$this_btn.siblings('div');
event.stopPropagation();
if(parent.hasClass('active')){
parent.removeClass('active');
$target_block.css({"opacity":0});
}else{
parent.addClass('active');
$target_block.css({"opacity":1});
$target_block.on("click touchstart", function(e){
e.stopPropagation();
});
$(document).on("click touchstart", function(e){
$target_block.css({"opacity":0});
parent.removeClass('active');
});
}});
});
$.fn.idealtheme=function(options){
var whatTheLastWidth=getScreenWidth();
var ifisdescktop=false;
var MqL=1170;
var settings={
duration: 300,
delayOpen: 0,
menuType: "horizontal",
position: "right",
parentArrow: true,
hideClickOut: true,
submenuTrigger: "hover",
backText: "Back to ",
clickToltipText: "Click",
};
$.extend(settings, options);
var nav_con=$(this);
var $nav_con_parent=nav_con.parent("#main_nav");
var menu=$(this).find('#navy');
function megaMenuTop(){
$(menu).find('.has_mega_menu').each(function(){
var top_space=$(this).parent('li').outerHeight();
$(this).find(' > .mega_menu').css({"top":top_space+"px", "width":"100%"});
});
}
megaMenuTop();
if(settings.menuType=="vertical"){
$(menu).addClass("vertical_menu");
if(settings.position=="right"){
$(menu).addClass("position_right");
}else{
$(menu).addClass("position_left");
}}else{
$(menu).addClass("horizontal_menu");
}
if(settings.parentArrow===true){
$(menu).find("li.normal_menu li, li.has_image_menu").each(function(){
if($(this).children("ul").length > 0){
$(this).children("a").append("");
}});
$(menu).find("ul.mega_menu li ul li, .tab_menu_list > li").each(function(){
if($(this).children("ul").length > 0){
$(this).children("a").append("
");
}});
}
function TopSearchFunc(){
$(".top_search").each(function(index, element){
var top_search=$(this);
top_search.submit(function(event){
event.stopPropagation();
if(top_search.hasClass("small_top_search")){
top_search.css({"z-index":10});
top_search.removeClass("small_top_search");
top_search.addClass("large_top_search");
return false;
}});
$(top_search).on("click touchstart", function(e){
e.stopPropagation();
});
$(document).on("click touchstart", function(e){
if(top_search.hasClass("large_top_search")){
top_search.removeClass("large_top_search");
top_search.addClass("small_top_search");
}});
});
if(getScreenWidth() < 1190){
$("#navigation_bar").find(".top_search").addClass("small_top_search");
}else{
$("#navigation_bar").find(".top_search").removeClass("small_top_search");
}}
var top_search_func=new TopSearchFunc();
$(window).resize(function(){
top_search_func=new TopSearchFunc();
megaMenuTop();
if(whatTheLastWidth > 992&&getScreenWidth() <=992&&$("body").hasClass("header_on_side")){
$(menu).slideUp();
}
if(whatTheLastWidth <=992&&getScreenWidth() > 992&&$("body").hasClass("header_on_side")){
$(menu).slideDown();
}
if(whatTheLastWidth <=992&&getScreenWidth() > 992&&!$("body").hasClass("header_on_side")){
resizeTabsMenu();
removeTrigger();
playMenuEvents();
}
if(whatTheLastWidth > 992&&getScreenWidth() <=992){
releaseTrigger();
playMobileEvents();
resizeTabsMenu();
$(menu).slideUp();
}
whatTheLastWidth=getScreenWidth();
return false;
});
function ActionAfterRefresh(){
if(getScreenWidth() <=992||$("body").hasClass("header_on_side")){
releaseTrigger();
playMobileEvents();
resizeTabsMenu();
}else{
resizeTabsMenu();
removeTrigger();
playMenuEvents();
}}
var action_after_ref=new ActionAfterRefresh();
function playMobileEvents(){
$(".nav_trigger").removeClass("nav-is-visible");
$(menu).find("li, a").unbind();
if($(nav_con).hasClass("mobile_menu")){
$(nav_con).find("li.normal_menu").each(function(){
if($(this).children("ul").length > 0){
$(this).children("a").not(':has(.parent_arrow)').append("");
}});
}
megaMenuEvents();
$(menu).find("li:not(.has-children):not(.go-back)").each(function(){
$(this).removeClass("opened_menu");
if($(this).children("ul").length > 0){
var $li_li_li=$(this);
$(this).children("a").on("click", function(event){
var curr_act=$(this);
if(!$(this).parent().hasClass("opened_menu")){
$(this).parent().addClass("opened_menu");
$(this).parent().siblings("li").removeClass("opened_menu");
if($(this).parent().hasClass("tab_menu_item")){
$(this).parent().addClass("active");
$(this).parent().siblings("li").removeClass("active");
}
$(this).siblings("ul").slideDown(settings.duration);
$(this).parent("li").siblings("li").children("ul").slideUp(settings.duration);
/*setTimeout(function(){
var curr_position=curr_act.offset().top;
$('body,html').animate({
}, {queue:false, duration: 900, easing:"easeInOutExpo"}
);
}, settings.duration);*/
return false;
}else{
$(this).parent().removeClass("opened_menu");
$(this).siblings("ul").slideUp(settings.duration);
if($li_li_li.hasClass("mobile_menu_toggle")||$li_li_li.hasClass("tab_menu_item")){
return false;
}}
});
}});
}
function megaMenuEvents(){
$(menu).find('li.has_mega_menu ul').removeClass("moves-out");
$(menu).find('.go-back, .mega_toltip').remove();
$(menu).find('li.has_mega_menu > ul').hover(function(){
$(this).find(".mega_menu_in ul").each(function(index, element){
var $mega_ul=$(this);
var its_height=0;
$mega_ul.children('li').each(function(index, element){
var ul_li_num=$(this).innerHeight();
its_height +=ul_li_num;
});
$mega_ul.attr("data-height", its_height);
});
});
$(menu).find('ul.mega_menu li li').each(function(index, element){
var $mega_element=$(this);
if($mega_element.children('ul').length > 0){
$mega_element.addClass("has-children");
$mega_element.children('ul').addClass("is-hidden");
}});
$(menu).find('ul.mega_menu li.has-children').children('ul').each(function(index, element){
var $mega_ul=$(this);
var its_height=0;
$mega_ul.children('li').each(function(index, element){
var ul_li_num=$(this).innerHeight();
its_height +=ul_li_num;
});
$mega_ul.attr("data-height", its_height);
var $mega_link=$mega_ul.parent('li').children('a');
var $mega_title=$mega_ul.parent('li').children('a').text();
$("
" + settings.clickToltipText +" ").prependTo($mega_link);
if(!$mega_link.find('.go-back').length){
$("
" + settings.backText + $mega_title +" ").prependTo($mega_ul);
}});
$(menu).find('ul.mega_menu li.has-children').children('a').on('click', function(event){
event.preventDefault();
var selected=$(this);
if(selected.next('ul').hasClass('is-hidden')){
var ul_height=parseInt(selected.next('ul').attr("data-height"));
var link_height=parseInt(selected.innerHeight());
var all_height=ul_height + link_height;
selected.addClass('selected').next('ul').removeClass('is-hidden').end().parent('.has-children').parent('ul').addClass('moves-out');
selected.closest('.mega_menu_in').animate({height: all_height});
selected.parent('.has-children').siblings('.has-children').children('ul').addClass('is-hidden').end().children('a').removeClass('selected');
if(selected.closest('#nav_menu').hasClass("mobile_menu")){
selected.parent('.has-children').removeClass("mega_parent_hidden").prevAll('li').slideUp(settings.duration);
}}
});
$('.go-back').on('click', function(){
var link_height=parseInt($(this).parent("ul").parent("li").parent("ul").attr("data-height"));
$(this).parent('ul').addClass('is-hidden').parent('.has-children').parent('ul').removeClass('moves-out');
$(this).closest('.mega_menu_in').animate({height: link_height});
if($(this).closest('#nav_menu').hasClass("mobile_menu")){
$(this).parent('ul').parent('li').removeClass("mega_parent_hidden").prevAll('li').slideDown(settings.duration);
}
return false;
});
}
function playMenuEvents(){
$(menu).children('li').children('ul').hide(0);
$(menu).find("li, a").unbind();
$(menu).slideDown(settings.duration);
$(menu).find('ul.tab_menu_list').each(function(index, element){
var tab_link=$(this).children('li').children('a');
$("
" + settings.clickToltipText +" ").prependTo(tab_link);
$(this).children('li').on('mouseover', function(){
if(!$(this).hasClass('active')){
$(this).children('ul').stop().fadeIn();
$(this).siblings().children('ul').stop().fadeOut();
$(this).addClass('active');
$(this).siblings().removeClass('active');
}});
});
megaMenuEvents();
$(menu).find('li.normal_menu, > li').hover(function(){
var li_link=$(this).children('a');
$(this).children('ul').stop().fadeIn(settings.duration);
}, function(){
$(this).children('ul').stop().fadeOut(settings.duration);
});
}
function releaseTrigger(){
$(nav_con).find(".nav_trigger").unbind();
$(nav_con).addClass('mobile_menu');
$nav_con_parent.addClass('has_mobile_menu');
$(nav_con).find('.nav_trigger').each(function(index, element){
var $trigger_mob=$(this);
$trigger_mob.on('click touchstart', function(e){
e.preventDefault();
if($(this).hasClass('nav-is-visible')){
$(this).removeClass('nav-is-visible');
$(menu).slideUp(settings.duration);
}else{
$(this).addClass('nav-is-visible');
$(document).unbind("click");
$(document).unbind("touchstart");
$(menu).slideDown(settings.duration, function(){
$(menu).on("click touchstart", function(event){
event.stopPropagation();
});
$(document).on('click touchstart', function(event){
if($trigger_mob.hasClass('nav-is-visible')&&getScreenWidth() <=992){
$trigger_mob.removeClass('nav-is-visible');
$(menu).slideUp(settings.duration);
}});
});
}});
});
}
function resizeTabsMenu(){
function thisHeight(){
return $(this).outerHeight();
}
$.fn.sandbox=function(fn){
var element=$(this).clone(), result;
element.css({visibility: 'hidden', display: 'block'}).insertAfter(this);
element.attr('style', element.attr('style').replace('block', 'block !important'));
var thisULMax=Math.max.apply(Math, $(element).find("ul:not(.image_menu)").map(thisHeight));
result=fn.apply(element);
element.remove();
return thisULMax;
};
$(".tab_menu").each(function(){
$(this).css({"height":"inherit"});
if(!$(nav_con).hasClass("mobile_menu")){
var height=$(this).sandbox(function(){ return this.height(); });
$(this).height(height);
}});
}
resizeTabsMenu();
function removeTrigger(){
$(nav_con).removeClass('mobile_menu');
$nav_con_parent.removeClass('has_mobile_menu');
}
enar_sticky();
};
var offset_header="";
get_header_offset();
ideal_accordion();
$(window).on("resize", function(){
get_header_offset();
ideal_accordion();
enar_sticky();
});
function get_header_offset(){
offset_header="";
if(getScreenWidth() <=992){
offset_header="";
}else{
offset_header="#site_header";
}}
function ideal_accordion(resize_occ){
$(".enar_accordion").each(function(index, element){
var its_type=$(this).attr("data-type");
var its_item=$(this).find(".enar_occ_container");
var its_item_lenth=its_item.length;
its_item.each(function(index, element){
var item_item=$(this);
var item_item_title=$(this).find(".enar_occ_title");
var item_title_height=$(this).find(".enar_occ_title").outerHeight();
var item_expanded=item_item.attr("data-expanded");
var item_item_content=$(this).find(".enar_occ_content");
var item_item_height=item_item_content.find(".acc_content").outerHeight();
if(item_expanded=="true"){
item_item.addClass("occ_expanded");
item_item_content.stop(true, true).animate({
height:item_item_height+'px',
}, 300);
}
item_item_title.unbind();
item_item_title.click(function(event){
if(item_item.hasClass("occ_expanded")){
item_item.removeClass("occ_expanded");
item_item_content.stop(true, true).animate({
height:'0px',
}, 300);
item_item_content.closest('.content_filter_item').stop(true, true).animate({
height:item_title_height+10+'px',
}, 300);
}else{
item_item.addClass("occ_expanded");
item_item_content.stop(true, true).animate({
height:item_item_height+'px',
}, 300);
item_item_content.closest('.content_filter_item').stop(true, true).animate({
height:item_item_height+item_title_height+10+'px',
}, 300);
if(its_type=="accordion"){
item_item.siblings().removeClass("occ_expanded");
item_item.siblings().find(".enar_occ_content").stop(true, true).animate({
height:'0px',
}, 300);
}}
});
});
});
}
function enar_sticky(){
if($.isFunction($.fn.sticky)){
var $navigation_bar=$("#navigation_bar");
if($navigation_bar.hasClass('hm_sticky')){
$navigation_bar.unstick();
var mobile_menu_len=$navigation_bar.find(".mobile_menu").length;
var side_header=$(".header_on_side").length;
if(mobile_menu_len===0&&side_header===0){
$navigation_bar.sticky({
topSpacing:0,
className:"sticky_menu",
getWidthFrom:"body"
});
}else{
$navigation_bar.unstick();
}}
}}
function getScreenWidth(){
return document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth;
}})(window.jQuery);
!function(a){function b(){}function c(a){function c(b){b.prototype.option||(b.prototype.option=function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))})}function e(b,c){a.fn[b]=function(e){if("string"==typeof e){for(var g=d.call(arguments,1),h=0,i=this.length;i>h;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){console.error(a)};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b
e;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),function(a,b){function c(a){var b=parseFloat(a),c=-1===a.indexOf("%")&&!isNaN(b);return c&&b}function d(){}function e(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0,c=h.length;c>b;b++){var d=h[b];a[d]=0}return a}function f(b){function d(){if(!m){m=!0;var d=a.getComputedStyle;if(j=function(){var a=d?function(a){return d(a,null)}:function(a){return a.currentStyle};return function(b){var c=a(b);return c||g("Style returned "+c+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),c}}(),k=b("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[k]="border-box";var f=document.body||document.documentElement;f.appendChild(e);var h=j(e);l=200===c(h.width),f.removeChild(e)}}}function f(a){if(d(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var b=j(a);if("none"===b.display)return e();var f={};f.width=a.offsetWidth,f.height=a.offsetHeight;for(var g=f.isBorderBox=!(!k||!b[k]||"border-box"!==b[k]),m=0,n=h.length;n>m;m++){var o=h[m],p=b[o];p=i(a,p);var q=parseFloat(p);f[o]=isNaN(q)?0:q}var r=f.paddingLeft+f.paddingRight,s=f.paddingTop+f.paddingBottom,t=f.marginLeft+f.marginRight,u=f.marginTop+f.marginBottom,v=f.borderLeftWidth+f.borderRightWidth,w=f.borderTopWidth+f.borderBottomWidth,x=g&&l,y=c(b.width);y!==!1&&(f.width=y+(x?0:r+v));var z=c(b.height);return z!==!1&&(f.height=z+(x?0:s+w)),f.innerWidth=f.width-(r+v),f.innerHeight=f.height-(s+w),f.outerWidth=f.width+t,f.outerHeight=f.height+u,f}}function i(b,c){if(a.getComputedStyle||-1===c.indexOf("%"))return c;var d=b.style,e=d.left,f=b.runtimeStyle,g=f&&f.left;return g&&(f.left=b.currentStyle.left),d.left=c,c=d.pixelLeft,d.left=e,g&&(f.left=g),c}var j,k,l,m=!1;return f}var g="undefined"==typeof console?d:function(a){console.error(a)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],f):"object"==typeof exports?module.exports=f(require("desandro-get-style-property")):a.getSize=f(a.getStyleProperty)}(window),function(a){function b(a){"function"==typeof a&&(b.isReady?a():g.push(a))}function c(a){var c="readystatechange"===a.type&&"complete"!==f.readyState;b.isReady||c||d()}function d(){b.isReady=!0;for(var a=0,c=g.length;c>a;a++){var d=g[a];d()}}function e(e){return"complete"===f.readyState?d():(e.bind(f,"DOMContentLoaded",c),e.bind(f,"readystatechange",c),e.bind(a,"load",c)),b}var f=a.document,g=[];b.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):a.docReady=e(a.eventie)}(window),function(a){"use strict";function b(a,b){return a[g](b)}function c(a){if(!a.parentNode){var b=document.createDocumentFragment();b.appendChild(a)}}function d(a,b){c(a);for(var d=a.parentNode.querySelectorAll(b),e=0,f=d.length;f>e;e++)if(d[e]===a)return!0;return!1}function e(a,d){return c(a),b(a,d)}var f,g=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0,d=b.length;d>c;c++){var e=b[c],f=e+"MatchesSelector";if(a[f])return f}}();if(g){var h=document.createElement("div"),i=b(h,"div");f=i?b:e}else f=d;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return f}):"object"==typeof exports?module.exports=f:window.matchesSelector=f}(Element.prototype),function(a,b){"use strict";"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("doc-ready"),require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.docReady,a.matchesSelector)}(window,function(a,b,c){var d={};d.extend=function(a,b){for(var c in b)a[c]=b[c];return a},d.modulo=function(a,b){return(a%b+b)%b};var e=Object.prototype.toString;d.isArray=function(a){return"[object Array]"==e.call(a)},d.makeArray=function(a){var b=[];if(d.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0,e=a.length;e>c;c++)b.push(a[c]);else b.push(a);return b},d.indexOf=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},d.removeFrom=function(a,b){var c=d.indexOf(a,b);-1!=c&&a.splice(c,1)},d.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(a){return a instanceof HTMLElement}:function(a){return a&&"object"==typeof a&&1==a.nodeType&&"string"==typeof a.nodeName},d.setText=function(){function a(a,c){b=b||(void 0!==document.documentElement.textContent?"textContent":"innerText"),a[b]=c}var b;return a}(),d.getParent=function(a,b){for(;a!=document.body;)if(a=a.parentNode,c(a,b))return a},d.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},d.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},d.filterFindElements=function(a,b){a=d.makeArray(a);for(var e=[],f=0,g=a.length;g>f;f++){var h=a[f];if(d.isElement(h))if(b){c(h,b)&&e.push(h);for(var i=h.querySelectorAll(b),j=0,k=i.length;k>j;j++)e.push(i[j])}else e.push(h)}return e},d.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},d.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var f=a.console;return d.htmlInit=function(c,e){b(function(){for(var b=d.toDashed(e),g=document.querySelectorAll(".js-"+b),h="data-"+b+"-options",i=0,j=g.length;j>i;i++){var k,l=g[i],m=l.getAttribute(h);try{k=m&&JSON.parse(m)}catch(n){f&&f.error("Error parsing "+h+" on "+l.nodeName.toLowerCase()+(l.id?"#"+l.id:"")+": "+n);continue}var o=new c(l,k),p=a.jQuery;p&&p.data(l,e,o)}})},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(a.Outlayer={},a.Outlayer.Item=b(a,a.EventEmitter,a.getSize,a.getStyleProperty,a.fizzyUIUtils))}(window,function(a,b,c,d,e){"use strict";function f(a){for(var b in a)return!1;return b=null,!0}function g(a,b){a&&(this.element=a,this.layout=b,this.position={x:0,y:0},this._create())}function h(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var i=a.getComputedStyle,j=i?function(a){return i(a,null)}:function(a){return a.currentStyle},k=d("transition"),l=d("transform"),m=k&&l,n=!!d("perspective"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[k],p=["transform","transition","transitionDuration","transitionProperty"],q=function(){for(var a={},b=0,c=p.length;c>b;b++){var e=p[b],f=d(e);f&&f!==e&&(a[e]=f)}return a}();e.extend(g.prototype,b.prototype),g.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.getSize=function(){this.size=c(this.element)},g.prototype.css=function(a){var b=this.element.style;for(var c in a){var d=q[c]||c;b[d]=a[c]}},g.prototype.getPosition=function(){var a=j(this.element),b=this.layout.options,c=b.isOriginLeft,d=b.isOriginTop,e=a[c?"left":"right"],f=a[d?"top":"bottom"],g=this.layout.size,h=-1!=e.indexOf("%")?parseFloat(e)/100*g.width:parseInt(e,10),i=-1!=f.indexOf("%")?parseFloat(f)/100*g.height:parseInt(f,10);h=isNaN(h)?0:h,i=isNaN(i)?0:i,h-=c?g.paddingLeft:g.paddingRight,i-=d?g.paddingTop:g.paddingBottom,this.position.x=h,this.position.y=i},g.prototype.layoutPosition=function(){var a=this.layout.size,b=this.layout.options,c={},d=b.isOriginLeft?"paddingLeft":"paddingRight",e=b.isOriginLeft?"left":"right",f=b.isOriginLeft?"right":"left",g=this.position.x+a[d];c[e]=this.getXValue(g),c[f]="";var h=b.isOriginTop?"paddingTop":"paddingBottom",i=b.isOriginTop?"top":"bottom",j=b.isOriginTop?"bottom":"top",k=this.position.y+a[h];c[i]=this.getYValue(k),c[j]="",this.css(c),this.emitEvent("layout",[this])},g.prototype.getXValue=function(a){var b=this.layout.options;return b.percentPosition&&!b.isHorizontal?a/this.layout.size.width*100+"%":a+"px"},g.prototype.getYValue=function(a){var b=this.layout.options;return b.percentPosition&&b.isHorizontal?a/this.layout.size.height*100+"%":a+"px"},g.prototype._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={};j.transform=this.getTranslate(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},g.prototype.getTranslate=function(a,b){var c=this.layout.options;return a=c.isOriginLeft?a:-a,b=c.isOriginTop?b:-b,n?"translate3d("+a+"px, "+b+"px, 0)":"translate("+a+"px, "+b+"px)"},g.prototype.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},g.prototype.moveTo=m?g.prototype._transitionTo:g.prototype.goTo,g.prototype.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},g.prototype._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},g.prototype._transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var r="opacity,"+h(q.transform||"transform");g.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:r,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(o,this,!1))},g.prototype.transition=g.prototype[k?"_transition":"_nonTransition"],g.prototype.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},g.prototype.onotransitionend=function(a){this.ontransitionend(a)};var s={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};g.prototype.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,c=s[a.propertyName]||a.propertyName;if(delete b.ingProperties[c],f(b.ingProperties)&&this.disableTransition(),c in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[c]),c in b.onEnd){var d=b.onEnd[c];d.call(this),delete b.onEnd[c]}this.emitEvent("transitionEnd",[this])}},g.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},g.prototype._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var t={transitionProperty:"",transitionDuration:""};return g.prototype.removeTransitionStyles=function(){this.css(t)},g.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},g.prototype.remove=function(){if(!k||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var a=this;this.once("transitionEnd",function(){a.removeElem()}),this.hide()},g.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("visibleStyle");b[c]=this.onRevealTransitionEnd,this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},g.prototype.getHideRevealTransitionEndProperty=function(a){var b=this.layout.options[a];if(b.opacity)return"opacity";for(var c in b)return c},g.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");b[c]=this.onHideTransitionEnd,this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},g.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,d,e,f,g){return b(a,c,d,e,f,g)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.eventie,a.EventEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,b,c,d,e,f){"use strict";function g(a,b){var c=e.getQueryElement(a);if(!c)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(c||a)));this.element=c,i&&(this.$element=i(this.element)),this.options=e.extend({},this.constructor.defaults),this.option(b);var d=++k;this.element.outlayerGUID=d,l[d]=this,this._create(),this.options.isInitLayout&&this.layout()}var h=a.console,i=a.jQuery,j=function(){},k=0,l={};return g.namespace="outlayer",g.Item=f,g.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e.extend(g.prototype,c.prototype),g.prototype.option=function(a){e.extend(this.options,a)},g.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},g.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},g.prototype._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0,f=b.length;f>e;e++){var g=b[e],h=new c(g,this);d.push(h)}return d},g.prototype._filterFindItemElements=function(a){return e.filterFindElements(a,this.options.itemSelector)},g.prototype.getItemElements=function(){for(var a=[],b=0,c=this.items.length;c>b;b++)a.push(this.items[b].element);return a},g.prototype.layout=function(){this._resetLayout(),this._manageStamps();var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,a),this._isLayoutInited=!0},g.prototype._init=g.prototype.layout,g.prototype._resetLayout=function(){this.getSize()},g.prototype.getSize=function(){this.size=d(this.element)},g.prototype._getMeasurement=function(a,b){var c,f=this.options[a];f?("string"==typeof f?c=this.element.querySelector(f):e.isElement(f)&&(c=f),this[a]=c?d(c)[b]:f):this[a]=0},g.prototype.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},g.prototype._getItemsForLayout=function(a){for(var b=[],c=0,d=a.length;d>c;c++){var e=a[c];e.isIgnored||b.push(e)}return b},g.prototype._layoutItems=function(a,b){if(this._emitCompleteOnItems("layout",a),a&&a.length){for(var c=[],d=0,e=a.length;e>d;d++){var f=a[d],g=this._getItemLayoutPosition(f);g.item=f,g.isInstant=b||f.isLayoutInstant,c.push(g)}this._processLayoutQueue(c)}},g.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},g.prototype._processLayoutQueue=function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b];this._positionItem(d.item,d.x,d.y,d.isInstant)}},g.prototype._positionItem=function(a,b,c,d){d?a.goTo(b,c):a.moveTo(b,c)},g.prototype._postLayout=function(){this.resizeContainer()},g.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var a=this._getContainerSize();a&&(this._setContainerMeasure(a.width,!0),this._setContainerMeasure(a.height,!1))}},g.prototype._getContainerSize=j,g.prototype._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},g.prototype._emitCompleteOnItems=function(a,b){function c(){e.dispatchEvent(a+"Complete",null,[b])}function d(){g++,g===f&&c()}var e=this,f=b.length;if(!b||!f)return void c();for(var g=0,h=0,i=b.length;i>h;h++){var j=b[h];j.once(a,d)}},g.prototype.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),i)if(this.$element=this.$element||i(this.element),b){var e=i.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},g.prototype.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},g.prototype.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},g.prototype.stamp=function(a){if(a=this._find(a)){this.stamps=this.stamps.concat(a);for(var b=0,c=a.length;c>b;b++){var d=a[b];this.ignore(d)}}},g.prototype.unstamp=function(a){if(a=this._find(a))for(var b=0,c=a.length;c>b;b++){var d=a[b];e.removeFrom(this.stamps,d),this.unignore(d)}},g.prototype._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=e.makeArray(a)):void 0},g.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var a=0,b=this.stamps.length;b>a;a++){var c=this.stamps[a];this._manageStamp(c)}}},g.prototype._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},g.prototype._manageStamp=j,g.prototype._getElementOffset=function(a){var b=a.getBoundingClientRect(),c=this._boundingRect,e=d(a),f={left:b.left-c.left-e.marginLeft,top:b.top-c.top-e.marginTop,right:c.right-b.right-e.marginRight,bottom:c.bottom-b.bottom-e.marginBottom};return f},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.bindResize=function(){this.isResizeBound||(b.bind(a,"resize",this),this.isResizeBound=!0)},g.prototype.unbindResize=function(){this.isResizeBound&&b.unbind(a,"resize",this),this.isResizeBound=!1},g.prototype.onresize=function(){function a(){b.resize(),delete b.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var b=this;this.resizeTimeout=setTimeout(a,100)},g.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},g.prototype.needsResizeLayout=function(){var a=d(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},g.prototype.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},g.prototype.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},g.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},g.prototype.reveal=function(a){this._emitCompleteOnItems("reveal",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.reveal()}},g.prototype.hide=function(a){this._emitCompleteOnItems("hide",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.hide()}},g.prototype.revealItemElements=function(a){var b=this.getItems(a);this.reveal(b)},g.prototype.hideItemElements=function(a){var b=this.getItems(a);this.hide(b)},g.prototype.getItem=function(a){for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];if(d.element===a)return d}},g.prototype.getItems=function(a){a=e.makeArray(a);for(var b=[],c=0,d=a.length;d>c;c++){var f=a[c],g=this.getItem(f);g&&b.push(g)}return b},g.prototype.remove=function(a){var b=this.getItems(a);if(this._emitCompleteOnItems("remove",b),b&&b.length)for(var c=0,d=b.length;d>c;c++){var f=b[c];f.remove(),e.removeFrom(this.items,f)}},g.prototype.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="";for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];d.destroy()}this.unbindResize();var e=this.element.outlayerGUID;delete l[e],delete this.element.outlayerGUID,i&&i.removeData(this.element,this.constructor.namespace)},g.data=function(a){a=e.getQueryElement(a);var b=a&&a.outlayerGUID;return b&&l[b]},g.create=function(a,b){function c(){g.apply(this,arguments)}return Object.create?c.prototype=Object.create(g.prototype):e.extend(c.prototype,g.prototype),c.prototype.constructor=c,c.defaults=e.extend({},g.defaults),e.extend(c.defaults,b),c.prototype.settings={},c.namespace=a,c.data=g.data,c.Item=function(){f.apply(this,arguments)},c.Item.prototype=new f,e.htmlInit(c,a),i&&i.bridget&&i.bridget(a,c),c},g.Item=f,g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],b):"object"==typeof exports?module.exports=b(require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.Item=b(a.Outlayer))}(window,function(a){"use strict";function b(){a.Item.apply(this,arguments)}b.prototype=new a.Item,b.prototype._create=function(){this.id=this.layout.itemGUID++,a.Item.prototype._create.call(this),this.sortData={}},b.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var a=this.layout.options.getSortData,b=this.layout._sorters;for(var c in a){var d=b[c];this.sortData[c]=d(this.element,this)}}};var c=b.prototype.destroy;return b.prototype.destroy=function(){c.apply(this,arguments),this.css({display:""})},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],b):"object"==typeof exports?module.exports=b(require("get-size"),require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.LayoutMode=b(a.getSize,a.Outlayer))}(window,function(a,b){"use strict";function c(a){this.isotope=a,a&&(this.options=a.options[this.namespace],this.element=a.element,this.items=a.filteredItems,this.size=a.size)}return function(){function a(a){return function(){return b.prototype[a].apply(this.isotope,arguments)}}for(var d=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],e=0,f=d.length;f>e;e++){var g=d[e];c.prototype[g]=a(g)}}(),c.prototype.needsVerticalResizeLayout=function(){var b=a(this.isotope.element),c=this.isotope.size&&b;return c&&b.innerHeight!=this.isotope.size.innerHeight},c.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},c.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},c.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},c.prototype.getSegmentSize=function(a,b){var c=a+b,d="outer"+b;if(this._getMeasurement(c,d),!this[c]){var e=this.getFirstItemSize();this[c]=e&&e[d]||this.isotope.size["inner"+b]}},c.prototype.getFirstItemSize=function(){var b=this.isotope.filteredItems[0];return b&&b.element&&a(b.element)},c.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},c.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},c.modes={},c.create=function(a,b){function d(){c.apply(this,arguments)}return d.prototype=new c,b&&(d.options=b),d.prototype.namespace=a,c.modes[a]=d,d},c}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],b):"object"==typeof exports?module.exports=b(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):a.Masonry=b(a.Outlayer,a.getSize,a.fizzyUIUtils)}(window,function(a,b,c){var d=a.create("masonry");return d.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var a=this.cols;for(this.colYs=[];a--;)this.colYs.push(0);this.maxY=0},d.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}var d=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,f=e/d,g=d-e%d,h=g&&1>g?"round":"floor";f=Math[h](f),this.cols=Math.max(f,1)},d.prototype.getContainerWidth=function(){var a=this.options.isFitWidth?this.element.parentNode:this.element,c=b(a);this.containerWidth=c&&c.innerWidth},d.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,d=b&&1>b?"round":"ceil",e=Math[d](a.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);for(var f=this._getColGroup(e),g=Math.min.apply(Math,f),h=c.indexOf(f,g),i={x:this.columnWidth*h,y:g},j=g+a.size.outerHeight,k=this.cols+1-f.length,l=0;k>l;l++)this.colYs[h+l]=j;return i},d.prototype._getColGroup=function(a){if(2>a)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;c>d;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},d.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this.options.isOriginLeft?d.left:d.right,f=e+c.outerWidth,g=Math.floor(e/this.columnWidth);g=Math.max(0,g);var h=Math.floor(f/this.columnWidth);h-=f%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var i=(this.options.isOriginTop?d.top:d.bottom)+c.outerHeight,j=g;h>=j;j++)this.colYs[j]=Math.max(i,this.colYs[j])},d.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this.options.isFitWidth&&(a.width=this._getContainerFitWidth()),a},d.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},d.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!==this.containerWidth},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],b):"object"==typeof exports?module.exports=b(require("../layout-mode"),require("masonry-layout")):b(a.Isotope.LayoutMode,a.Masonry)}(window,function(a,b){"use strict";function c(a,b){for(var c in b)a[c]=b[c];return a}var d=a.create("masonry"),e=d.prototype._getElementOffset,f=d.prototype.layout,g=d.prototype._getMeasurement;
c(d.prototype,b.prototype),d.prototype._getElementOffset=e,d.prototype.layout=f,d.prototype._getMeasurement=g;var h=d.prototype.measureColumns;d.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,h.call(this)};var i=d.prototype._manageStamp;return d.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,i.apply(this,arguments)},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("fitRows");return b.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth+this.gutter,c=this.isotope.size.innerWidth+this.gutter;0!==this.x&&b+this.x>c&&(this.x=0,this.y=this.maxY);var d={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+a.size.outerHeight),this.x+=b,d},b.prototype._getContainerSize=function(){return{height:this.maxY}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("vertical",{horizontalAlignment:0});return b.prototype._resetLayout=function(){this.y=0},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=(this.isotope.size.innerWidth-a.size.outerWidth)*this.options.horizontalAlignment,c=this.y;return this.y+=a.size.outerHeight,{x:b,y:c}},b.prototype._getContainerSize=function(){return{height:this.y}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(c,d,e,f,g,h){return b(a,c,d,e,f,g,h)}):"object"==typeof exports?module.exports=b(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):a.Isotope=b(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.Isotope.Item,a.Isotope.LayoutMode)}(window,function(a,b,c,d,e,f,g){function h(a,b){return function(c,d){for(var e=0,f=a.length;f>e;e++){var g=a[e],h=c.sortData[g],i=d.sortData[g];if(h>i||i>h){var j=void 0!==b[g]?b[g]:b,k=j?1:-1;return(h>i?1:-1)*k}}return 0}}var i=a.jQuery,j=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")},k=document.documentElement,l=k.textContent?function(a){return a.textContent}:function(a){return a.innerText},m=b.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});m.Item=f,m.LayoutMode=g,m.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),b.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var a in g.modes)this._initLayoutMode(a)},m.prototype.reloadItems=function(){this.itemGUID=0,b.prototype.reloadItems.call(this)},m.prototype._itemize=function(){for(var a=b.prototype._itemize.apply(this,arguments),c=0,d=a.length;d>c;c++){var e=a[c];e.id=this.itemGUID++}return this._updateItemsSortData(a),a},m.prototype._initLayoutMode=function(a){var b=g.modes[a],c=this.options[a]||{};this.options[a]=b.options?e.extend(b.options,c):c,this.modes[a]=new b(this)},m.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?void this.arrange():void this._layout()},m.prototype._layout=function(){var a=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,a),this._isLayoutInited=!0},m.prototype.arrange=function(a){function b(){d.reveal(c.needReveal),d.hide(c.needHide)}this.option(a),this._getIsInstant();var c=this._filter(this.items);this.filteredItems=c.matches;var d=this;this._bindArrangeComplete(),this._isInstant?this._noTransition(b):b(),this._sort(),this._layout()},m.prototype._init=m.prototype.arrange,m.prototype._getIsInstant=function(){var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=a,a},m.prototype._bindArrangeComplete=function(){function a(){b&&c&&d&&e.dispatchEvent("arrangeComplete",null,[e.filteredItems])}var b,c,d,e=this;this.once("layoutComplete",function(){b=!0,a()}),this.once("hideComplete",function(){c=!0,a()}),this.once("revealComplete",function(){d=!0,a()})},m.prototype._filter=function(a){var b=this.options.filter;b=b||"*";for(var c=[],d=[],e=[],f=this._getFilterTest(b),g=0,h=a.length;h>g;g++){var i=a[g];if(!i.isIgnored){var j=f(i);j&&c.push(i),j&&i.isHidden?d.push(i):j||i.isHidden||e.push(i)}}return{matches:c,needReveal:d,needHide:e}},m.prototype._getFilterTest=function(a){return i&&this.options.isJQueryFiltering?function(b){return i(b.element).is(a)}:"function"==typeof a?function(b){return a(b.element)}:function(b){return d(b.element,a)}},m.prototype.updateSortData=function(a){var b;a?(a=e.makeArray(a),b=this.getItems(a)):b=this.items,this._getSorters(),this._updateItemsSortData(b)},m.prototype._getSorters=function(){var a=this.options.getSortData;for(var b in a){var c=a[b];this._sorters[b]=n(c)}},m.prototype._updateItemsSortData=function(a){for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.updateSortData()}};var n=function(){function a(a){if("string"!=typeof a)return a;var c=j(a).split(" "),d=c[0],e=d.match(/^\[(.+)\]$/),f=e&&e[1],g=b(f,d),h=m.sortDataParsers[c[1]];return a=h?function(a){return a&&h(g(a))}:function(a){return a&&g(a)}}function b(a,b){var c;return c=a?function(b){return b.getAttribute(a)}:function(a){var c=a.querySelector(b);return c&&l(c)}}return a}();m.sortDataParsers={parseInt:function(a){return parseInt(a,10)},parseFloat:function(a){return parseFloat(a)}},m.prototype._sort=function(){var a=this.options.sortBy;if(a){var b=[].concat.apply(a,this.sortHistory),c=h(b,this.options.sortAscending);this.filteredItems.sort(c),a!=this.sortHistory[0]&&this.sortHistory.unshift(a)}},m.prototype._mode=function(){var a=this.options.layoutMode,b=this.modes[a];if(!b)throw new Error("No layout mode: "+a);return b.options=this.options[a],b},m.prototype._resetLayout=function(){b.prototype._resetLayout.call(this),this._mode()._resetLayout()},m.prototype._getItemLayoutPosition=function(a){return this._mode()._getItemLayoutPosition(a)},m.prototype._manageStamp=function(a){this._mode()._manageStamp(a)},m.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},m.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},m.prototype.appended=function(a){var b=this.addItems(a);if(b.length){var c=this._filterRevealAdded(b);this.filteredItems=this.filteredItems.concat(c)}},m.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){this._resetLayout(),this._manageStamps();var c=this._filterRevealAdded(b);this.layoutItems(this.filteredItems),this.filteredItems=c.concat(this.filteredItems),this.items=b.concat(this.items)}},m.prototype._filterRevealAdded=function(a){var b=this._filter(a);return this.hide(b.needHide),this.reveal(b.matches),this.layoutItems(b.matches,!0),b.matches},m.prototype.insert=function(a){var b=this.addItems(a);if(b.length){var c,d,e=b.length;for(c=0;e>c;c++)d=b[c],this.element.appendChild(d.element);var f=this._filter(b).matches;for(c=0;e>c;c++)b[c].isLayoutInstant=!0;for(this.arrange(),c=0;e>c;c++)delete b[c].isLayoutInstant;this.reveal(f)}};var o=m.prototype.remove;return m.prototype.remove=function(a){a=e.makeArray(a);var b=this.getItems(a);o.call(this,a);var c=b&&b.length;if(c)for(var d=0;c>d;d++){var f=b[d];e.removeFrom(this.filteredItems,f)}},m.prototype.shuffle=function(){for(var a=0,b=this.items.length;b>a;a++){var c=this.items[a];c.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},m.prototype._noTransition=function(a){var b=this.options.transitionDuration;this.options.transitionDuration=0;var c=a.call(this);return this.options.transitionDuration=b,c},m.prototype.getFilteredItemElements=function(){for(var a=[],b=0,c=this.filteredItems.length;c>b;b++)a.push(this.filteredItems[b].element);return a},m});
!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);
!function e(t,n,o){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var d=new Error("Cannot find module '"+a+"'");throw d.code="MODULE_NOT_FOUND",d}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return i(n||e)},u,u.exports,e,t,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e&&e.length){var n=void 0,i=void 0,r=s.language(),l=function(e,t,n){return"object"!==(void 0===e?"undefined":o(e))||"number"!=typeof t||"number"!=typeof n?e:[function(){return arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 0===(arguments.length<=0?void 0:arguments[0])||1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:0!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])||11===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])||12===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>0&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])>=2&&(arguments.length<=0?void 0:arguments[0])<=4?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%100==1?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100==2?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100==3||(arguments.length<=0?void 0:arguments[0])%100==4?arguments.length<=4?void 0:arguments[4]:arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<7?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])>6&&(arguments.length<=0?void 0:arguments[0])<11?arguments.length<=4?void 0:arguments[4]:arguments.length<=5?void 0:arguments[5]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100>=3&&(arguments.length<=0?void 0:arguments[0])%100<=10?arguments.length<=4?void 0:arguments[4]:(arguments.length<=0?void 0:arguments[0])%100>=11?arguments.length<=5?void 0:arguments[5]:arguments.length<=6?void 0:arguments[6]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>1&&(arguments.length<=0?void 0:arguments[0])%100<11?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100>10&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10==2?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 11!==(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:8!==(arguments.length<=0?void 0:arguments[0])&&11!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:3===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]}][n].apply(null,[t].concat(e))};return void 0!==s[r]&&(n=s[r][e],null!==t&&"number"==typeof t&&(i=s[r]["mejs.plural-form"],n=l.apply(null,[n,t,i]))),!n&&s.en&&(n=s.en[e],null!==t&&"number"==typeof t&&(i=s.en["mejs.plural-form"],n=l.apply(null,[n,t,i]))),n=n||e,null!==t&&"number"==typeof t&&(n=n.replace("%1",t)),(0,a.escapeHTML)(n)}return e},i.default.i18n=s,"undefined"!=typeof mejsL10n&&i.default.i18n.language(mejsL10n.language,mejsL10n.strings),n.default=s},{15:15,27:27,7:7}],6:[function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=o(e(3)),s=o(e(2)),l=o(e(7)),d=e(27),u=e(28),c=e(8),f=e(25),p=function e(t,n,o){var p=this;i(this,e);var m=this;o=Array.isArray(o)?o:null,m.defaults={renderers:[],fakeNodeName:"mediaelementwrapper",pluginPath:"build/",shimScriptAccess:"sameDomain"},n=Object.assign(m.defaults,n),m.mediaElement=s.default.createElement(n.fakeNodeName);var h=t,v=!1;if("string"==typeof t?m.mediaElement.originalNode=s.default.getElementById(t):(m.mediaElement.originalNode=t,h=t.id),void 0===m.mediaElement.originalNode||null===m.mediaElement.originalNode)return null;m.mediaElement.options=n,h=h||"mejs_"+Math.random().toString().slice(2),m.mediaElement.originalNode.setAttribute("id",h+"_from_mejs");var g=m.mediaElement.originalNode.tagName.toLowerCase();["video","audio"].indexOf(g)>-1&&!m.mediaElement.originalNode.getAttribute("preload")&&m.mediaElement.originalNode.setAttribute("preload","none"),m.mediaElement.originalNode.parentNode.insertBefore(m.mediaElement,m.mediaElement.originalNode),m.mediaElement.appendChild(m.mediaElement.originalNode);var y=function(e,t){if("https:"===a.default.location.protocol&&0===e.indexOf("http:")&&f.IS_IOS&&l.default.html5media.mediaTypes.indexOf(t)>-1){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===this.readyState&&200===this.status){var t=(a.default.URL||a.default.webkitURL).createObjectURL(this.response);return m.mediaElement.originalNode.setAttribute("src",t),t}return e},n.open("GET",e),n.responseType="blob",n.send()}return e},E=void 0;if(null!==o)E=o;else if(null!==m.mediaElement.originalNode)switch(E=[],m.mediaElement.originalNode.nodeName.toLowerCase()){case"iframe":E.push({type:"",src:m.mediaElement.originalNode.getAttribute("src")});break;case"audio":case"video":var b=m.mediaElement.originalNode.children.length,S=m.mediaElement.originalNode.getAttribute("src");if(S){var x=m.mediaElement.originalNode,w=(0,u.formatType)(S,x.getAttribute("type"));E.push({type:w,src:y(S,w)})}for(var P=0;P2?t[0]:t[0].src;if(void 0!==n.mediaElement.renderer&&null!==n.mediaElement.renderer&&n.mediaElement.renderer.name===e)return n.mediaElement.renderer.pause(),n.mediaElement.renderer.stop&&n.mediaElement.renderer.stop(),n.mediaElement.renderer.show(),n.mediaElement.renderer.setSrc(o),!0;void 0!==n.mediaElement.renderer&&null!==n.mediaElement.renderer&&(n.mediaElement.renderer.pause(),n.mediaElement.renderer.stop&&n.mediaElement.renderer.stop(),n.mediaElement.renderer.hide());var i=n.mediaElement.renderers[e],r=null;if(void 0!==i&&null!==i)return i.show(),i.setSrc(o),n.mediaElement.renderer=i,n.mediaElement.rendererName=e,!0;for(var a=n.mediaElement.options.renderers.length?n.mediaElement.options.renderers:c.renderer.order,s=0,l=a.length;s1&&void 0!==arguments[1]?arguments[1]:[],n=t.length;if(t=t.length?t:this.order,!n){var o=[/^(html5|native)/i,/^flash/i,/iframe$/i],i=function(e){for(var t=0,n=o.length;t',t.addControlElement(o,"fullscreen"),o.addEventListener("click",function(){d.HAS_TRUE_NATIVE_FULLSCREEN&&d.IS_FULLSCREEN||e.isFullScreen?e.exitFullScreen():e.enterFullScreen()}),e.fullscreenBtn=o,t.options.keyActions.push({keys:[70],action:function(e,t,n,o){o.ctrlKey||void 0!==e.enterFullScreen&&(e.isFullScreen?e.exitFullScreen():e.enterFullScreen())}}),t.exitFullscreenCallback=function(n){27===(n.which||n.keyCode||0)&&(d.HAS_TRUE_NATIVE_FULLSCREEN&&d.IS_FULLSCREEN||t.isFullScreen)&&e.exitFullScreen()},t.globalBind("keydown",t.exitFullscreenCallback),t.normalHeight=0,t.normalWidth=0,d.HAS_TRUE_NATIVE_FULLSCREEN){e.globalBind(d.FULLSCREEN_EVENT_NAME,function(){e.isFullScreen&&(d.isFullScreen()?(e.isNativeFullScreen=!0,e.setControlsSize()):(e.isNativeFullScreen=!1,e.exitFullScreen()))})}}},cleanfullscreen:function(e){e.exitFullScreen(),e.globalUnbind("keydown",e.exitFullscreenCallback)},detectFullscreenMode:function(){var e=this,t=null!==e.media.rendererName&&/(native|html5)/i.test(e.media.rendererName),n="";return d.HAS_TRUE_NATIVE_FULLSCREEN&&t?n="native-native":d.HAS_TRUE_NATIVE_FULLSCREEN&&!t?n="plugin-native":e.usePluginFullScreen&&d.SUPPORT_POINTER_EVENTS&&(n="plugin-click"),e.fullscreenMode=n,n},enterFullScreen:function(){var e=this,t=null!==e.media.rendererName&&/(html5|native)/i.test(e.media.rendererName),n=getComputedStyle(e.getElement(e.container));if(!1===e.options.useFakeFullscreen&&d.IS_IOS&&d.HAS_IOS_FULLSCREEN&&"function"==typeof e.media.originalNode.webkitEnterFullscreen&&e.media.originalNode.canPlayType((0,f.getTypeFromFile)(e.media.getSrc())))e.media.originalNode.webkitEnterFullscreen();else{if((0,c.addClass)(r.default.documentElement,e.options.classPrefix+"fullscreen"),(0,c.addClass)(e.getElement(e.container),e.options.classPrefix+"container-fullscreen"),e.normalHeight=parseFloat(n.height),e.normalWidth=parseFloat(n.width),"native-native"!==e.fullscreenMode&&"plugin-native"!==e.fullscreenMode||(d.requestFullScreen(e.getElement(e.container)),e.isInIframe&&setTimeout(function t(){if(e.isNativeFullScreen){var n=i.default.innerWidth||r.default.documentElement.clientWidth||r.default.body.clientWidth,o=screen.width;Math.abs(o-n)>.002*o?e.exitFullScreen():setTimeout(t,500)}},1e3)),e.getElement(e.container).style.width="100%",e.getElement(e.container).style.height="100%",e.containerSizeTimeout=setTimeout(function(){e.getElement(e.container).style.width="100%",e.getElement(e.container).style.height="100%",e.setControlsSize()},500),t)e.node.style.width="100%",e.node.style.height="100%";else for(var o=e.getElement(e.container).querySelectorAll("embed, object, video"),a=o.length,s=0;s',p.addEventListener("click",function(){a.paused?a.play():a.pause()});var m=p.querySelector("button");a.addControlElement(p,"playpause"),r("pse"),o.addEventListener("loadedmetadata",function(){-1===o.rendererName.indexOf("flash")&&r("pse")}),o.addEventListener("play",function(){r("play")}),o.addEventListener("playing",function(){r("play")}),o.addEventListener("pause",function(){r("pse")}),o.addEventListener("ended",function(){e.options.loop||((0,d.removeClass)(p,a.options.classPrefix+"pause"),(0,d.removeClass)(p,a.options.classPrefix+"play"),(0,d.addClass)(p,a.options.classPrefix+"replay"),m.setAttribute("title",c),m.setAttribute("aria-label",c))})}})},{16:16,2:2,26:26,27:27,5:5}],11:[function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var i=o(e(2)),r=e(16),a=o(r),s=o(e(5)),l=e(25),d=e(30),u=e(26);Object.assign(r.config,{enableProgressTooltip:!0,useSmoothHover:!0,forceLive:!1}),Object.assign(a.default.prototype,{buildprogress:function(e,t,n,o){var a=0,c=!1,f=!1,p=this,m=e.options.autoRewind,h=e.options.enableProgressTooltip?'00:00 ':"",v=i.default.createElement("div");v.className=p.options.classPrefix+"time-rail",v.innerHTML=' '+h+" ",p.addControlElement(v,"progress"),p.options.keyActions.push({keys:[37,227],action:function(e){if(!isNaN(e.duration)&&e.duration>0){e.isVideo&&(e.showControls(),e.startControlsTimer()),e.getElement(e.container).querySelector("."+r.config.classPrefix+"time-total").focus();var t=Math.max(e.currentTime-e.options.defaultSeekBackwardInterval(e),0);e.setCurrentTime(t)}}},{keys:[39,228],action:function(e){if(!isNaN(e.duration)&&e.duration>0){e.isVideo&&(e.showControls(),e.startControlsTimer()),e.getElement(e.container).querySelector("."+r.config.classPrefix+"time-total").focus();var t=Math.min(e.currentTime+e.options.defaultSeekForwardInterval(e),e.duration);e.setCurrentTime(t)}}}),p.rail=t.querySelector("."+p.options.classPrefix+"time-rail"),p.total=t.querySelector("."+p.options.classPrefix+"time-total"),p.loaded=t.querySelector("."+p.options.classPrefix+"time-loaded"),p.current=t.querySelector("."+p.options.classPrefix+"time-current"),p.handle=t.querySelector("."+p.options.classPrefix+"time-handle"),p.timefloat=t.querySelector("."+p.options.classPrefix+"time-float"),p.timefloatcurrent=t.querySelector("."+p.options.classPrefix+"time-float-current"),p.slider=t.querySelector("."+p.options.classPrefix+"time-slider"),p.hovered=t.querySelector("."+p.options.classPrefix+"time-hovered"),p.buffer=t.querySelector("."+p.options.classPrefix+"time-buffering"),p.newTime=0,p.forcedHandlePause=!1,p.setTransformStyle=function(e,t){e.style.transform=t,e.style.webkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t},p.buffer.style.display="none";var g=function(t){var n=getComputedStyle(p.total),o=(0,u.offset)(p.total),i=p.total.offsetWidth,r=void 0!==n.webkitTransform?"webkitTransform":void 0!==n.mozTransform?"mozTransform ":void 0!==n.oTransform?"oTransform":void 0!==n.msTransform?"msTransform":"transform",a="WebKitCSSMatrix"in window?"WebKitCSSMatrix":"MSCSSMatrix"in window?"MSCSSMatrix":"CSSMatrix"in window?"CSSMatrix":void 0,s=0,f=0,m=0,h=void 0;if(h=t.originalEvent&&t.originalEvent.changedTouches?t.originalEvent.changedTouches[0].pageX:t.changedTouches?t.changedTouches[0].pageX:t.pageX,p.getDuration()){if(hi+o.left&&(h=i+o.left),m=h-o.left,s=m/i,p.newTime=s<=.02?0:s*p.getDuration(),c&&null!==p.getCurrentTime()&&p.newTime.toFixed(4)!==p.getCurrentTime().toFixed(4)&&(p.setCurrentRailHandle(p.newTime),p.updateCurrent(p.newTime)),!l.IS_IOS&&!l.IS_ANDROID){if(m<0&&(m=0),p.options.useSmoothHover&&null!==a&&void 0!==window[a]){var v=new window[a](getComputedStyle(p.handle)[r]).m41,g=m/parseFloat(getComputedStyle(p.total).width)-v/parseFloat(getComputedStyle(p.total).width);p.hovered.style.left=v+"px",p.setTransformStyle(p.hovered,"scaleX("+g+")"),p.hovered.setAttribute("pos",m),g>=0?(0,u.removeClass)(p.hovered,"negative"):(0,u.addClass)(p.hovered,"negative")}if(p.timefloat){var y=p.timefloat.offsetWidth/2,E=mejs.Utils.offset(p.getElement(p.container)),b=getComputedStyle(p.timefloat);f=h-E.left=p.getElement(p.container).offsetWidth-y?p.total.offsetWidth-y:m,(0,u.hasClass)(p.getElement(p.container),p.options.classPrefix+"long-video")&&(f+=parseFloat(b.marginLeft)/2+p.timefloat.offsetWidth/2),p.timefloat.style.left=f+"px",p.timefloatcurrent.innerHTML=(0,d.secondsToTimeCode)(p.newTime,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat),p.timefloat.style.display="block"}}}else l.IS_IOS||l.IS_ANDROID||!p.timefloat||(f=p.timefloat.offsetWidth+i>=p.getElement(p.container).offsetWidth?p.timefloat.offsetWidth/2:0,p.timefloat.style.left=f+"px",p.timefloat.style.left=f+"px",p.timefloat.style.display="block")},y=function(){var t=p.getCurrentTime(),n=s.default.t("mejs.time-slider"),i=(0,d.secondsToTimeCode)(t,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat),r=p.getDuration();p.slider.setAttribute("role","slider"),p.slider.tabIndex=0,o.paused?(p.slider.setAttribute("aria-label",n),p.slider.setAttribute("aria-valuemin",0),p.slider.setAttribute("aria-valuemax",r),p.slider.setAttribute("aria-valuenow",t),p.slider.setAttribute("aria-valuetext",i)):(p.slider.removeAttribute("aria-label"),p.slider.removeAttribute("aria-valuemin"),p.slider.removeAttribute("aria-valuemax"),p.slider.removeAttribute("aria-valuenow"),p.slider.removeAttribute("aria-valuetext"))},E=function(){new Date-a>=1e3&&p.play()},b=function(){c&&null!==p.getCurrentTime()&&p.newTime.toFixed(4)!==p.getCurrentTime().toFixed(4)&&(p.setCurrentTime(p.newTime),p.setCurrentRail(),p.updateCurrent(p.newTime)),p.forcedHandlePause&&(p.slider.focus(),p.play()),p.forcedHandlePause=!1};p.slider.addEventListener("focus",function(){e.options.autoRewind=!1}),p.slider.addEventListener("blur",function(){e.options.autoRewind=m}),p.slider.addEventListener("keydown",function(t){if(new Date-a>=1e3&&(f=p.paused),p.options.keyActions.length){var n=t.which||t.keyCode||0,i=p.getDuration(),r=e.options.defaultSeekForwardInterval(o),s=e.options.defaultSeekBackwardInterval(o),d=p.getCurrentTime(),u=p.getElement(p.container).querySelector("."+p.options.classPrefix+"volume-slider");if(38===n||40===n){u&&(u.style.display="block"),p.isVideo&&(p.showControls(),p.startControlsTimer());var c=38===n?Math.min(p.volume+.1,1):Math.max(p.volume-.1,0),m=c<=0;return p.setVolume(c),void p.setMuted(m)}switch(u&&(u.style.display="none"),n){case 37:p.getDuration()!==1/0&&(d-=s);break;case 39:p.getDuration()!==1/0&&(d+=r);break;case 36:d=0;break;case 35:d=i;break;case 13:case 32:return void(l.IS_FIREFOX&&(p.paused?p.play():p.pause()));default:return}d=d<0?0:d>=i?i:Math.floor(d),a=new Date,f||e.pause(),d0&&n.buffered.end&&t.getDuration()?o=n.buffered.end(n.buffered.length-1)/t.getDuration():n&&void 0!==n.bytesTotal&&n.bytesTotal>0&&void 0!==n.bufferedBytes?o=n.bufferedBytes/n.bytesTotal:e&&e.lengthComputable&&0!==e.total&&(o=e.loaded/e.total),null!==o&&(o=Math.min(1,Math.max(0,o)),t.loaded&&t.setTransformStyle(t.loaded,"scaleX("+o+")"))},setCurrentRailHandle:function(e){var t=this;t.setCurrentRailMain(t,e)},setCurrentRail:function(){var e=this;e.setCurrentRailMain(e)},setCurrentRailMain:function(e,t){if(void 0!==e.getCurrentTime()&&e.getDuration()){var n=void 0===t?e.getCurrentTime():t;if(e.total&&e.handle){var o=parseFloat(getComputedStyle(e.total).width),i=Math.round(o*n/e.getDuration()),r=i-Math.round(e.handle.offsetWidth/2);if(r=r<0?0:r,e.setTransformStyle(e.current,"scaleX("+i/o+")"),e.setTransformStyle(e.handle,"translateX("+r+"px)"),e.options.useSmoothHover&&!(0,u.hasClass)(e.hovered,"no-hover")){var a=parseInt(e.hovered.getAttribute("pos"),10),s=(a=isNaN(a)?0:a)/o-r/o;e.hovered.style.left=r+"px",e.setTransformStyle(e.hovered,"scaleX("+s+")"),s>=0?(0,u.removeClass)(e.hovered,"negative"):(0,u.addClass)(e.hovered,"negative")}}}}})},{16:16,2:2,25:25,26:26,30:30,5:5}],12:[function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var i=o(e(2)),r=e(16),a=o(r),s=e(30),l=e(26);Object.assign(r.config,{duration:0,timeAndDurationSeparator:" | "}),Object.assign(a.default.prototype,{buildcurrent:function(e,t,n,o){var r=this,a=i.default.createElement("div");a.className=r.options.classPrefix+"time",a.setAttribute("role","timer"),a.setAttribute("aria-live","off"),a.innerHTML=''+(0,s.secondsToTimeCode)(0,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat)+" ",r.addControlElement(a,"current"),e.updateCurrent(),r.updateTimeCallback=function(){r.controlsAreVisible&&e.updateCurrent()},o.addEventListener("timeupdate",r.updateTimeCallback)},cleancurrent:function(e,t,n,o){o.removeEventListener("timeupdate",e.updateTimeCallback)},buildduration:function(e,t,n,o){var r=this;if(t.lastChild.querySelector("."+r.options.classPrefix+"currenttime"))t.querySelector("."+r.options.classPrefix+"time").innerHTML+=r.options.timeAndDurationSeparator+''+(0,s.secondsToTimeCode)(r.options.duration,r.options.alwaysShowHours,r.options.showTimecodeFrameCount,r.options.framesPerSecond,r.options.secondsDecimalLength,r.options.timeFormat)+" ";else{t.querySelector("."+r.options.classPrefix+"currenttime")&&(0,l.addClass)(t.querySelector("."+r.options.classPrefix+"currenttime").parentNode,r.options.classPrefix+"currenttime-container");var a=i.default.createElement("div");a.className=r.options.classPrefix+"time "+r.options.classPrefix+"duration-container",a.innerHTML=''+(0,s.secondsToTimeCode)(r.options.duration,r.options.alwaysShowHours,r.options.showTimecodeFrameCount,r.options.framesPerSecond,r.options.secondsDecimalLength,r.options.timeFormat)+" ",r.addControlElement(a,"duration")}r.updateDurationCallback=function(){r.controlsAreVisible&&e.updateDuration()},o.addEventListener("timeupdate",r.updateDurationCallback)},cleanduration:function(e,t,n,o){o.removeEventListener("timeupdate",e.updateDurationCallback)},updateCurrent:function(){var e=this,t=e.getCurrentTime();isNaN(t)&&(t=0);var n=(0,s.secondsToTimeCode)(t,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat);n.length>5?(0,l.addClass)(e.getElement(e.container),e.options.classPrefix+"long-video"):(0,l.removeClass)(e.getElement(e.container),e.options.classPrefix+"long-video"),e.getElement(e.controls).querySelector("."+e.options.classPrefix+"currenttime")&&(e.getElement(e.controls).querySelector("."+e.options.classPrefix+"currenttime").innerText=n)},updateDuration:function(){var e=this,t=e.getDuration();(isNaN(t)||t===1/0||t<0)&&(e.media.duration=e.options.duration=t=0),e.options.duration>0&&(t=e.options.duration);var n=(0,s.secondsToTimeCode)(t,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat);n.length>5?(0,l.addClass)(e.getElement(e.container),e.options.classPrefix+"long-video"):(0,l.removeClass)(e.getElement(e.container),e.options.classPrefix+"long-video"),e.getElement(e.controls).querySelector("."+e.options.classPrefix+"duration")&&t>0&&(e.getElement(e.controls).querySelector("."+e.options.classPrefix+"duration").innerHTML=n)}})},{16:16,2:2,26:26,30:30}],13:[function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var i=o(e(2)),r=o(e(7)),a=o(e(5)),s=e(16),l=o(s),d=e(30),u=e(27),c=e(26);Object.assign(s.config,{startLanguage:"",tracksText:null,chaptersText:null,tracksAriaLive:!1,hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""}),Object.assign(l.default.prototype,{hasChapters:!1,buildtracks:function(e,t,n,o){if(this.findTracks(),e.tracks.length||e.trackFiles&&0!==!e.trackFiles.length){var r=this,s=r.options.tracksAriaLive?' role="log" aria-live="assertive" aria-atomic="false"':"",l=(0,u.isString)(r.options.tracksText)?r.options.tracksText:a.default.t("mejs.captions-subtitles"),d=(0,u.isString)(r.options.chaptersText)?r.options.chaptersText:a.default.t("mejs.captions-chapters"),f=null===e.trackFiles?e.tracks.length:e.trackFiles.length;if(r.domNode.textTracks)for(var p=r.domNode.textTracks.length-1;p>=0;p--)r.domNode.textTracks[p].mode="hidden";r.cleartracks(e),e.captions=i.default.createElement("div"),e.captions.className=r.options.classPrefix+"captions-layer "+r.options.classPrefix+"layer",e.captions.innerHTML='
',e.captions.style.display="none",n.insertBefore(e.captions,n.firstChild),e.captionsText=e.captions.querySelector("."+r.options.classPrefix+"captions-text"),e.captionsButton=i.default.createElement("div"),e.captionsButton.className=r.options.classPrefix+"button "+r.options.classPrefix+"captions-button",e.captionsButton.innerHTML=' ",r.addControlElement(e.captionsButton,"tracks"),e.captionsButton.querySelector("."+r.options.classPrefix+"captions-selector-input").disabled=!1,e.chaptersButton=i.default.createElement("div"),e.chaptersButton.className=r.options.classPrefix+"button "+r.options.classPrefix+"chapters-button",e.chaptersButton.innerHTML=' ';for(var m=0,h=0;h'+n+" (loading) "},checkForTracks:function(){var e=this,t=!1;if(e.options.hideCaptionsButtonWhenEmpty){for(var n=0,o=e.tracks.length;n-1)return e.captionsText.innerHTML=function(e){var t=i.default.createElement("div");t.innerHTML=e;for(var n=t.getElementsByTagName("script"),o=n.length;o--;)n[o].remove();for(var r=t.getElementsByTagName("*"),a=0,s=r.length;a-1&&e.showSlide(n)}},drawChapters:function(e){var t=this,n=e.entries.length;if(n){t.chaptersButton.querySelector("ul").innerHTML="";for(var o=0;o'+e.entries[o].text+" ";for(var i=t.chaptersButton.querySelectorAll('input[type="radio"]'),r=t.chaptersButton.querySelectorAll("."+t.options.classPrefix+"chapters-selector-label"),a=0,s=i.length;a>1,r=e[i].start,a=e[i].stop,t>=r&&tt&&(o=i-1)}return-1}}),r.default.language={codes:{af:"mejs.afrikaans",sq:"mejs.albanian",ar:"mejs.arabic",be:"mejs.belarusian",bg:"mejs.bulgarian",ca:"mejs.catalan",zh:"mejs.chinese","zh-cn":"mejs.chinese-simplified","zh-tw":"mejs.chines-traditional",hr:"mejs.croatian",cs:"mejs.czech",da:"mejs.danish",nl:"mejs.dutch",en:"mejs.english",et:"mejs.estonian",fl:"mejs.filipino",fi:"mejs.finnish",fr:"mejs.french",gl:"mejs.galician",de:"mejs.german",el:"mejs.greek",ht:"mejs.haitian-creole",iw:"mejs.hebrew",hi:"mejs.hindi",hu:"mejs.hungarian",is:"mejs.icelandic",id:"mejs.indonesian",ga:"mejs.irish",it:"mejs.italian",ja:"mejs.japanese",ko:"mejs.korean",lv:"mejs.latvian",lt:"mejs.lithuanian",mk:"mejs.macedonian",ms:"mejs.malay",mt:"mejs.maltese",no:"mejs.norwegian",fa:"mejs.persian",pl:"mejs.polish",pt:"mejs.portuguese",ro:"mejs.romanian",ru:"mejs.russian",sr:"mejs.serbian",sk:"mejs.slovak",sl:"mejs.slovenian",es:"mejs.spanish",sw:"mejs.swahili",sv:"mejs.swedish",tl:"mejs.tagalog",th:"mejs.thai",tr:"mejs.turkish",uk:"mejs.ukrainian",vi:"mejs.vietnamese",cy:"mejs.welsh",yi:"mejs.yiddish"}},r.default.TrackFormatParser={webvtt:{pattern:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(e){for(var t=e.split(/\r?\n/),n=[],o=void 0,i=void 0,r=void 0,a=0,s=t.length;a=0&&""!==t[a-1]&&(r=t[a-1]),i=t[++a],a++;""!==t[a]&&a$1 "),n.push({identifier:r,start:0===(0,d.convertSMPTEtoSeconds)(o[1])?.2:(0,d.convertSMPTEtoSeconds)(o[1]),stop:(0,d.convertSMPTEtoSeconds)(o[3]),text:i,settings:o[5]})}r=""}return n}},dfxp:{parse:function(e){var t=(e=$(e).filter("tt")).firstChild,n=t.querySelectorAll("p"),o=e.getElementById(""+t.attr("style")),i=[],r=void 0;if(o.length){o.removeAttribute("id");var a=o.attributes;if(a.length){r={};for(var s=0,l=a.length;s$1 "),i.push(p)}return i}}}},{16:16,2:2,26:26,27:27,30:30,5:5,7:7}],14:[function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var i=o(e(2)),r=e(16),a=o(r),s=o(e(5)),l=e(25),d=e(27),u=e(26);Object.assign(r.config,{muteText:null,unmuteText:null,allyVolumeControlText:null,hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical",startVolume:.8}),Object.assign(a.default.prototype,{buildvolume:function(e,t,n,o){if(!l.IS_ANDROID&&!l.IS_IOS||!this.options.hideVolumeOnTouchDevices){var a=this,c=a.isVideo?a.options.videoVolume:a.options.audioVolume,f=(0,d.isString)(a.options.muteText)?a.options.muteText:s.default.t("mejs.mute"),p=(0,d.isString)(a.options.unmuteText)?a.options.unmuteText:s.default.t("mejs.unmute"),m=(0,d.isString)(a.options.allyVolumeControlText)?a.options.allyVolumeControlText:s.default.t("mejs.volume-help-text"),h=i.default.createElement("div");if(h.className=a.options.classPrefix+"button "+a.options.classPrefix+"volume-button "+a.options.classPrefix+"mute",h.innerHTML="horizontal"===c?' ':''+m+' ',a.addControlElement(h,"volume"),a.options.keyActions.push({keys:[38],action:function(e){var t=e.getElement(e.container).querySelector("."+r.config.classPrefix+"volume-slider");(t||e.getElement(e.container).querySelector("."+r.config.classPrefix+"volume-slider").matches(":focus"))&&(t.style.display="block"),e.isVideo&&(e.showControls(),e.startControlsTimer());var n=Math.min(e.volume+.1,1);e.setVolume(n),n>0&&e.setMuted(!1)}},{keys:[40],action:function(e){var t=e.getElement(e.container).querySelector("."+r.config.classPrefix+"volume-slider");t&&(t.style.display="block"),e.isVideo&&(e.showControls(),e.startControlsTimer());var n=Math.max(e.volume-.1,0);e.setVolume(n),n<=.1&&e.setMuted(!0)}},{keys:[77],action:function(e){e.getElement(e.container).querySelector("."+r.config.classPrefix+"volume-slider").style.display="block",e.isVideo&&(e.showControls(),e.startControlsTimer()),e.media.muted?e.setMuted(!1):e.setMuted(!0)}}),"horizontal"===c){var v=i.default.createElement("a");v.className=a.options.classPrefix+"horizontal-volume-slider",v.href="javascript:void(0);",v.setAttribute("aria-label",s.default.t("mejs.volume-slider")),v.setAttribute("aria-valuemin",0),v.setAttribute("aria-valuemax",100),v.setAttribute("role","slider"),v.innerHTML+=''+m+' ',h.parentNode.insertBefore(v,h.nextSibling)}var g=!1,y=!1,E=!1,b=function(){var e=Math.floor(100*o.volume);S.setAttribute("aria-valuenow",e),S.setAttribute("aria-valuetext",e+"%")},S="vertical"===c?a.getElement(a.container).querySelector("."+a.options.classPrefix+"volume-slider"):a.getElement(a.container).querySelector("."+a.options.classPrefix+"horizontal-volume-slider"),x="vertical"===c?a.getElement(a.container).querySelector("."+a.options.classPrefix+"volume-total"):a.getElement(a.container).querySelector("."+a.options.classPrefix+"horizontal-volume-total"),w="vertical"===c?a.getElement(a.container).querySelector("."+a.options.classPrefix+"volume-current"):a.getElement(a.container).querySelector("."+a.options.classPrefix+"horizontal-volume-current"),P="vertical"===c?a.getElement(a.container).querySelector("."+a.options.classPrefix+"volume-handle"):a.getElement(a.container).querySelector("."+a.options.classPrefix+"horizontal-volume-handle"),T=function(e){if(null!==e&&!isNaN(e)&&void 0!==e){if(e=Math.max(0,e),0===(e=Math.min(e,1))){(0,u.removeClass)(h,a.options.classPrefix+"mute"),(0,u.addClass)(h,a.options.classPrefix+"unmute");var t=h.firstElementChild;t.setAttribute("title",p),t.setAttribute("aria-label",p)}else{(0,u.removeClass)(h,a.options.classPrefix+"unmute"),(0,u.addClass)(h,a.options.classPrefix+"mute");var n=h.firstElementChild;n.setAttribute("title",f),n.setAttribute("aria-label",f)}var o=100*e+"%",i=getComputedStyle(P);"vertical"===c?(w.style.bottom=0,w.style.height=o,P.style.bottom=o,P.style.marginBottom=-parseFloat(i.height)/2+"px"):(w.style.left=0,w.style.width=o,P.style.left=o,P.style.marginLeft=-parseFloat(i.width)/2+"px")}},C=function(e){var t=(0,u.offset)(x),n=getComputedStyle(x);E=!0;var o=null;if("vertical"===c){var i=parseFloat(n.height);if(o=(i-(e.pageY-t.top))/i,0===t.top||0===t.left)return}else{var r=parseFloat(n.width);o=(e.pageX-t.left)/r}o=Math.max(0,o),o=Math.min(o,1),T(o),a.setMuted(0===o),a.setVolume(o),e.preventDefault(),e.stopPropagation()},k=function(){a.muted?(T(0),(0,u.removeClass)(h,a.options.classPrefix+"mute"),(0,u.addClass)(h,a.options.classPrefix+"unmute")):(T(o.volume),(0,u.removeClass)(h,a.options.classPrefix+"unmute"),(0,u.addClass)(h,a.options.classPrefix+"mute"))};e.getElement(e.container).addEventListener("keydown",function(e){!!e.target.closest("."+a.options.classPrefix+"container")||"vertical"!==c||(S.style.display="none")}),h.addEventListener("mouseenter",function(e){e.target===h&&(S.style.display="block",y=!0,e.preventDefault(),e.stopPropagation())}),h.addEventListener("focusin",function(){S.style.display="block",y=!0}),h.addEventListener("focusout",function(e){e.relatedTarget&&(!e.relatedTarget||e.relatedTarget.matches("."+a.options.classPrefix+"volume-slider"))||"vertical"!==c||(S.style.display="none")}),h.addEventListener("mouseleave",function(){y=!1,g||"vertical"!==c||(S.style.display="none")}),h.addEventListener("focusout",function(){y=!1}),h.addEventListener("keydown",function(e){if(a.options.keyActions.length){var t=e.which||e.keyCode||0,n=o.volume;switch(t){case 38:n=Math.min(n+.1,1);break;case 40:n=Math.max(0,n-.1);break;default:return!0}g=!1,T(n),o.setVolume(n),e.preventDefault(),e.stopPropagation()}}),h.querySelector("button").addEventListener("click",function(){o.setMuted(!o.muted);var e=(0,d.createEvent)("volumechange",o);o.dispatchEvent(e)}),S.addEventListener("dragstart",function(){return!1}),S.addEventListener("mouseover",function(){y=!0}),S.addEventListener("focusin",function(){S.style.display="block",y=!0}),S.addEventListener("focusout",function(){y=!1,g||"vertical"!==c||(S.style.display="none")}),S.addEventListener("mousedown",function(e){C(e),a.globalBind("mousemove.vol",function(e){var t=e.target;g&&(t===S||t.closest("vertical"===c?"."+a.options.classPrefix+"volume-slider":"."+a.options.classPrefix+"horizontal-volume-slider"))&&C(e)}),a.globalBind("mouseup.vol",function(){g=!1,y||"vertical"!==c||(S.style.display="none")}),g=!0,e.preventDefault(),e.stopPropagation()}),o.addEventListener("volumechange",function(e){g||k(),b()});var _=!1;o.addEventListener("rendererready",function(){E||setTimeout(function(){_=!0,(0===e.options.startVolume||o.originalNode.muted)&&(o.setMuted(!0),e.options.startVolume=0),o.setVolume(e.options.startVolume),a.setControlsSize()},250)}),o.addEventListener("loadedmetadata",function(){setTimeout(function(){E||_||((0===e.options.startVolume||o.originalNode.muted)&&(o.setMuted(!0),e.options.startVolume=0),o.setVolume(e.options.startVolume),a.setControlsSize()),_=!1},250)}),(0===e.options.startVolume||o.originalNode.muted)&&(o.setMuted(!0),e.options.startVolume=0,k()),a.getElement(a.container).addEventListener("controlsresize",function(){k()})}}})},{16:16,2:2,25:25,26:26,27:27,5:5}],15:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.EN={"mejs.plural-form":1,"mejs.download-file":"Download File","mejs.install-flash":"You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/","mejs.fullscreen":"Fullscreen","mejs.play":"Play","mejs.pause":"Pause","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.","mejs.live-broadcast":"Live Broadcast","mejs.volume-help-text":"Use Up/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.captions-subtitles":"Captions/Subtitles","mejs.captions-chapters":"Chapters","mejs.none":"None","mejs.afrikaans":"Afrikaans","mejs.albanian":"Albanian","mejs.arabic":"Arabic","mejs.belarusian":"Belarusian","mejs.bulgarian":"Bulgarian","mejs.catalan":"Catalan","mejs.chinese":"Chinese","mejs.chinese-simplified":"Chinese (Simplified)","mejs.chinese-traditional":"Chinese (Traditional)","mejs.croatian":"Croatian","mejs.czech":"Czech","mejs.danish":"Danish","mejs.dutch":"Dutch","mejs.english":"English","mejs.estonian":"Estonian","mejs.filipino":"Filipino","mejs.finnish":"Finnish","mejs.french":"French","mejs.galician":"Galician","mejs.german":"German","mejs.greek":"Greek","mejs.haitian-creole":"Haitian Creole","mejs.hebrew":"Hebrew","mejs.hindi":"Hindi","mejs.hungarian":"Hungarian","mejs.icelandic":"Icelandic","mejs.indonesian":"Indonesian","mejs.irish":"Irish","mejs.italian":"Italian","mejs.japanese":"Japanese","mejs.korean":"Korean","mejs.latvian":"Latvian","mejs.lithuanian":"Lithuanian","mejs.macedonian":"Macedonian","mejs.malay":"Malay","mejs.maltese":"Maltese","mejs.norwegian":"Norwegian","mejs.persian":"Persian","mejs.polish":"Polish","mejs.portuguese":"Portuguese","mejs.romanian":"Romanian","mejs.russian":"Russian","mejs.serbian":"Serbian","mejs.slovak":"Slovak","mejs.slovenian":"Slovenian","mejs.spanish":"Spanish","mejs.swahili":"Swahili","mejs.swedish":"Swedish","mejs.tagalog":"Tagalog","mejs.thai":"Thai","mejs.turkish":"Turkish","mejs.ukrainian":"Ukrainian","mejs.vietnamese":"Vietnamese","mejs.welsh":"Welsh","mejs.yiddish":"Yiddish"}},{}],16:[function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0}),n.config=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n
',e.getElement(e.container).addEventListener("focus",function(t){if(!e.controlsAreVisible&&!e.hasFocus&&e.controlsEnabled){e.showControls(!0);var n=(0,m.isNodeAfter)(t.relatedTarget,e.getElement(e.container))?"."+e.options.classPrefix+"controls ."+e.options.classPrefix+"button:last-child > button":"."+e.options.classPrefix+"playpause-button > button";e.getElement(e.container).querySelector(n).focus()}}),e.node.parentNode.insertBefore(e.getElement(e.container),e.node),e.options.features.length||e.options.useDefaultControls||(e.getElement(e.container).style.background="transparent",e.getElement(e.container).querySelector("."+e.options.classPrefix+"controls").style.display="none"),e.isVideo&&"fill"===e.options.stretching&&!g.hasClass(e.getElement(e.container).parentNode,e.options.classPrefix+"fill-container")){e.outerContainer=e.media.parentNode;var r=l.default.createElement("div");r.className=e.options.classPrefix+"fill-container",e.getElement(e.container).parentNode.insertBefore(r,e.getElement(e.container)),r.appendChild(e.getElement(e.container))}if(p.IS_ANDROID&&g.addClass(e.getElement(e.container),e.options.classPrefix+"android"),p.IS_IOS&&g.addClass(e.getElement(e.container),e.options.classPrefix+"ios"),p.IS_IPAD&&g.addClass(e.getElement(e.container),e.options.classPrefix+"ipad"),p.IS_IPHONE&&g.addClass(e.getElement(e.container),e.options.classPrefix+"iphone"),g.addClass(e.getElement(e.container),e.isVideo?e.options.classPrefix+"video":e.options.classPrefix+"audio"),p.IS_SAFARI&&!p.IS_IOS){g.addClass(e.getElement(e.container),e.options.classPrefix+"hide-cues");for(var a=e.node.cloneNode(),s=e.node.children,c=[],h=[],y=0,E=s.length;y
0||e.options[S+"Width"].toString().indexOf("%")>-1?e.width=e.options[S+"Width"]:""!==e.node.style.width&&null!==e.node.style.width?e.width=e.node.style.width:e.node.getAttribute("width")?e.width=e.node.getAttribute("width"):e.width=e.options["default"+x+"Width"],e.options[S+"Height"]>0||e.options[S+"Height"].toString().indexOf("%")>-1?e.height=e.options[S+"Height"]:""!==e.node.style.height&&null!==e.node.style.height?e.height=e.node.style.height:e.node.getAttribute("height")?e.height=e.node.getAttribute("height"):e.height=e.options["default"+x+"Height"],e.initialAspectRatio=e.height>=e.width?e.width/e.height:e.height/e.width,e.setPlayerSize(e.width,e.height),t.pluginWidth=e.width,t.pluginHeight=e.height}if(d.default.MepDefaults=t,new u.default(e.media,t,e.mediaFiles),void 0!==e.getElement(e.container)&&e.options.features.length&&e.controlsAreVisible&&!e.options.hideVideoControlsOnLoad){var w=(0,m.createEvent)("controlsshown",e.getElement(e.container));e.getElement(e.container).dispatchEvent(w)}}},{key:"showControls",value:function(e){var t=this;if(e=void 0===e||e,!t.controlsAreVisible&&t.isVideo){if(e)!function(){g.fadeIn(t.getElement(t.controls),200,function(){g.removeClass(t.getElement(t.controls),t.options.classPrefix+"offscreen");var e=(0,m.createEvent)("controlsshown",t.getElement(t.container));t.getElement(t.container).dispatchEvent(e)});for(var e=t.getElement(t.container).querySelectorAll("."+t.options.classPrefix+"control"),n=0,o=e.length;n0)||n.isVideo&&!n.options.hideVideoControlsOnLoad&&!n.readyState||n.ended)){if(e)!function(){g.fadeOut(n.getElement(n.controls),200,function(){g.addClass(n.getElement(n.controls),n.options.classPrefix+"offscreen"),n.getElement(n.controls).style.display="";var e=(0,m.createEvent)("controlshidden",n.getElement(n.container));n.getElement(n.container).dispatchEvent(e)});for(var e=n.getElement(n.container).querySelectorAll("."+n.options.classPrefix+"control"),t=0,o=e.length;t0&&e.currentMediaTime>0&&(e.setCurrentTime(e.currentMediaTime),p.IS_IOS||p.IS_ANDROID||e.play())})}},{key:"_meReady",value:function(e,t){var n=this,o=t.getAttribute("autoplay"),i=!(void 0===o||null===o||"false"===o),r=null!==e.rendererName&&/(native|html5)/i.test(n.media.rendererName);if(n.getElement(n.controls)&&n.enableControls(),n.getElement(n.container)&&n.getElement(n.container).querySelector("."+n.options.classPrefix+"overlay-play")&&(n.getElement(n.container).querySelector("."+n.options.classPrefix+"overlay-play").style.display=""),!n.created){if(n.created=!0,n.media=e,n.domNode=t,!(p.IS_ANDROID&&n.options.AndroidUseNativeControls||p.IS_IPAD&&n.options.iPadUseNativeControls||p.IS_IPHONE&&n.options.iPhoneUseNativeControls)){if(!n.isVideo&&!n.options.features.length&&!n.options.useDefaultControls)return i&&r&&n.play(),void(n.options.success&&("string"==typeof n.options.success?s.default[n.options.success](n.media,n.domNode,n):n.options.success(n.media,n.domNode,n)));if(n.featurePosition={},n._setDefaultPlayer(),n.buildposter(n,n.getElement(n.controls),n.getElement(n.layers),n.media),n.buildkeyboard(n,n.getElement(n.controls),n.getElement(n.layers),n.media),n.buildoverlays(n,n.getElement(n.controls),n.getElement(n.layers),n.media),n.options.useDefaultControls){var a=["playpause","current","progress","duration","tracks","volume","fullscreen"];n.options.features=a.concat(n.options.features.filter(function(e){return-1===a.indexOf(e)}))}n.buildfeatures(n,n.getElement(n.controls),n.getElement(n.layers),n.media);var u=(0,m.createEvent)("controlsready",n.getElement(n.container));n.getElement(n.container).dispatchEvent(u),n.setPlayerSize(n.width,n.height),n.setControlsSize(),n.isVideo&&(n.clickToPlayPauseCallback=function(){if(n.options.clickToPlayPause){var e=n.getElement(n.container).querySelector("."+n.options.classPrefix+"overlay-button"),t=e.getAttribute("aria-pressed");n.paused&&t?n.pause():n.paused?n.play():n.pause(),e.setAttribute("aria-pressed",!t),n.getElement(n.container).focus()}},n.createIframeLayer(),n.media.addEventListener("click",n.clickToPlayPauseCallback),!p.IS_ANDROID&&!p.IS_IOS||n.options.alwaysShowControls?(n.getElement(n.container).addEventListener("mouseenter",function(){n.controlsEnabled&&(n.options.alwaysShowControls||(n.killControlsTimer("enter"),n.showControls(),n.startControlsTimer(n.options.controlsTimeoutMouseEnter)))}),n.getElement(n.container).addEventListener("mousemove",function(){n.controlsEnabled&&(n.controlsAreVisible||n.showControls(),n.options.alwaysShowControls||n.startControlsTimer(n.options.controlsTimeoutMouseEnter))}),n.getElement(n.container).addEventListener("mouseleave",function(){n.controlsEnabled&&(n.paused||n.options.alwaysShowControls||n.startControlsTimer(n.options.controlsTimeoutMouseLeave))})):n.node.addEventListener("touchstart",function(){n.controlsAreVisible?n.hideControls(!1):n.controlsEnabled&&n.showControls(!1)},!!p.SUPPORT_PASSIVE_EVENT&&{passive:!0}),n.options.hideVideoControlsOnLoad&&n.hideControls(!1),n.options.enableAutosize&&n.media.addEventListener("loadedmetadata",function(e){var t=void 0!==e?e.detail.target||e.target:n.media;n.options.videoHeight<=0&&!n.domNode.getAttribute("height")&&!n.domNode.style.height&&null!==t&&!isNaN(t.videoHeight)&&(n.setPlayerSize(t.videoWidth,t.videoHeight),n.setControlsSize(),n.media.setSize(t.videoWidth,t.videoHeight))})),n.media.addEventListener("play",function(){n.hasFocus=!0;for(var e in d.default.players)if(d.default.players.hasOwnProperty(e)){var t=d.default.players[e];t.id===n.id||!n.options.pauseOtherPlayers||t.paused||t.ended||(t.pause(),t.hasFocus=!1)}p.IS_ANDROID||p.IS_IOS||n.options.alwaysShowControls||!n.isVideo||n.hideControls()}),n.media.addEventListener("ended",function(){if(n.options.autoRewind)try{n.setCurrentTime(0),setTimeout(function(){var e=n.getElement(n.container).querySelector("."+n.options.classPrefix+"overlay-loading");e&&e.parentNode&&(e.parentNode.style.display="none")},20)}catch(e){}"function"==typeof n.media.renderer.stop?n.media.renderer.stop():n.pause(),n.setProgressRail&&n.setProgressRail(),n.setCurrentRail&&n.setCurrentRail(),n.options.loop?n.play():!n.options.alwaysShowControls&&n.controlsEnabled&&n.showControls()}),n.media.addEventListener("loadedmetadata",function(){(0,h.calculateTimeFormat)(n.getDuration(),n.options,n.options.framesPerSecond||25),n.updateDuration&&n.updateDuration(),n.updateCurrent&&n.updateCurrent(),n.isFullScreen||(n.setPlayerSize(n.width,n.height),n.setControlsSize())});var c=null;n.media.addEventListener("timeupdate",function(){isNaN(n.getDuration())||c===n.getDuration()||(c=n.getDuration(),(0,h.calculateTimeFormat)(c,n.options,n.options.framesPerSecond||25),n.updateDuration&&n.updateDuration(),n.updateCurrent&&n.updateCurrent(),n.setControlsSize())}),n.getElement(n.container).addEventListener("click",function(e){g.addClass(e.currentTarget,n.options.classPrefix+"container-keyboard-inactive")}),n.getElement(n.container).addEventListener("focusin",function(e){g.removeClass(e.currentTarget,n.options.classPrefix+"container-keyboard-inactive"),!n.isVideo||p.IS_ANDROID||p.IS_IOS||!n.controlsEnabled||n.options.alwaysShowControls||(n.killControlsTimer("enter"),n.showControls(),n.startControlsTimer(n.options.controlsTimeoutMouseEnter))}),n.getElement(n.container).addEventListener("focusout",function(e){setTimeout(function(){e.relatedTarget&&n.keyboardAction&&!e.relatedTarget.closest("."+n.options.classPrefix+"container")&&(n.keyboardAction=!1,!n.isVideo||n.options.alwaysShowControls||n.paused||n.startControlsTimer(n.options.controlsTimeoutMouseLeave))},0)}),setTimeout(function(){n.setPlayerSize(n.width,n.height),n.setControlsSize()},0),n.globalResizeCallback=function(){n.isFullScreen||p.HAS_TRUE_NATIVE_FULLSCREEN&&l.default.webkitIsFullScreen||n.setPlayerSize(n.width,n.height),n.setControlsSize()},n.globalBind("resize",n.globalResizeCallback)}i&&r&&n.play(),n.options.success&&("string"==typeof n.options.success?s.default[n.options.success](n.media,n.domNode,n):n.options.success(n.media,n.domNode,n))}}},{key:"_handleError",value:function(e,t,n){var o=this,i=o.getElement(o.layers).querySelector("."+o.options.classPrefix+"overlay-play");i&&(i.style.display="none"),o.options.error&&o.options.error(e,t,n),o.getElement(o.container).querySelector("."+o.options.classPrefix+"cannotplay")&&o.getElement(o.container).querySelector("."+o.options.classPrefix+"cannotplay").remove();var r=l.default.createElement("div");r.className=o.options.classPrefix+"cannotplay",r.style.width="100%",r.style.height="100%";var a="function"==typeof o.options.customError?o.options.customError(o.media,o.media.originalNode):o.options.customError,s="";if(!a){var u=o.media.originalNode.getAttribute("poster");if(u&&(s=' '),e.message&&(a=""+e.message+"
"),e.urls)for(var c=0,f=e.urls.length;c'+d.default.i18n.t("mejs.download-file")+": "+p.src+" "}}a&&o.getElement(o.layers).querySelector("."+o.options.classPrefix+"overlay-error")&&(r.innerHTML=a,o.getElement(o.layers).querySelector("."+o.options.classPrefix+"overlay-error").innerHTML=""+s+r.outerHTML,o.getElement(o.layers).querySelector("."+o.options.classPrefix+"overlay-error").parentNode.style.display="block"),o.controlsEnabled&&o.disableControls()}},{key:"setPlayerSize",value:function(e,t){var n=this;if(!n.options.setDimensions)return!1;switch(void 0!==e&&(n.width=e),void 0!==t&&(n.height=t),n.options.stretching){case"fill":n.isVideo?n.setFillMode():n.setDimensions(n.width,n.height);break;case"responsive":n.setResponsiveMode();break;case"none":n.setDimensions(n.width,n.height);break;default:!0===n.hasFluidMode()?n.setResponsiveMode():n.setDimensions(n.width,n.height)}}},{key:"hasFluidMode",value:function(){var e=this;return-1!==e.height.toString().indexOf("%")||e.node&&e.node.style.maxWidth&&"none"!==e.node.style.maxWidth&&e.node.style.maxWidth!==e.width||e.node&&e.node.currentStyle&&"100%"===e.node.currentStyle.maxWidth}},{key:"setResponsiveMode",value:function(){var e=this,t=function(){for(var t=void 0,n=e.getElement(e.container);n;){try{if(p.IS_FIREFOX&&"html"===n.tagName.toLowerCase()&&s.default.self!==s.default.top&&null!==s.default.frameElement)return s.default.frameElement;t=n.parentElement}catch(e){t=n.parentElement}if(t&&g.visible(t))return t;n=t}return null}(),n=t?getComputedStyle(t,null):getComputedStyle(l.default.body,null),o=e.isVideo?e.media.videoWidth&&e.media.videoWidth>0?e.media.videoWidth:e.node.getAttribute("width")?e.node.getAttribute("width"):e.options.defaultVideoWidth:e.options.defaultAudioWidth,i=e.isVideo?e.media.videoHeight&&e.media.videoHeight>0?e.media.videoHeight:e.node.getAttribute("height")?e.node.getAttribute("height"):e.options.defaultVideoHeight:e.options.defaultAudioHeight,r=function(){var t=1;return e.isVideo?(t=e.media.videoWidth&&e.media.videoWidth>0&&e.media.videoHeight&&e.media.videoHeight>0?e.height>=e.width?e.media.videoWidth/e.media.videoHeight:e.media.videoHeight/e.media.videoWidth:e.initialAspectRatio,(isNaN(t)||t<.01||t>100)&&(t=1),t):t}(),a=parseFloat(n.height),d=void 0,u=parseFloat(n.width);if(d=e.isVideo?"100%"===e.height?parseFloat(u*i/o,10):e.height>=e.width?parseFloat(u/r,10):parseFloat(u*r,10):i,isNaN(d)&&(d=a),e.getElement(e.container).parentNode.length>0&&"body"===e.getElement(e.container).parentNode.tagName.toLowerCase()&&(u=s.default.innerWidth||l.default.documentElement.clientWidth||l.default.body.clientWidth,d=s.default.innerHeight||l.default.documentElement.clientHeight||l.default.body.clientHeight),d&&u){e.getElement(e.container).style.width=u+"px",e.getElement(e.container).style.height=d+"px",e.node.style.width="100%",e.node.style.height="100%",e.isVideo&&e.media.setSize&&e.media.setSize(u,d);for(var c=e.getElement(e.layers).children,f=0,m=c.length;fimg");a&&(a.style.display="");for(var d=e.getElement(e.container).querySelectorAll("object, embed, iframe, video"),u=e.height,c=e.width,f=i,m=u*i/c,h=c*r/u,v=r,y=h>i==!1,E=y?Math.floor(f):Math.floor(h),b=y?Math.floor(m):Math.floor(v),S=y?i+"px":E+"px",x=y?b+"px":r+"px",w=0,P=d.length;w-1?e:parseFloat(e)+"px",t=(0,m.isString)(t)&&t.indexOf("%")>-1?t:parseFloat(t)+"px",n.getElement(n.container).style.width=e,n.getElement(n.container).style.height=t;for(var o=n.getElement(n.layers).children,i=0,r=o.length;i-1&&!l.default.getElementById(e.media.id+"-iframe-overlay")){var t=l.default.createElement("div"),n=l.default.getElementById(e.media.id+"_"+e.media.rendererName);t.id=e.media.id+"-iframe-overlay",t.className=e.options.classPrefix+"iframe-overlay",t.addEventListener("click",function(t){e.options.clickToPlayPause&&(e.paused?e.play():e.pause(),t.preventDefault(),t.stopPropagation())}),n.parentNode.insertBefore(t,n)}}},{key:"resetSize",value:function(){var e=this;setTimeout(function(){e.setPlayerSize(e.width,e.height),e.setControlsSize()},50)}},{key:"setPoster",value:function(e){var t=this;if(t.getElement(t.container)){var n=t.getElement(t.container).querySelector("."+t.options.classPrefix+"poster");n||((n=l.default.createElement("div")).className=t.options.classPrefix+"poster "+t.options.classPrefix+"layer",t.getElement(t.layers).appendChild(n));var o=n.querySelector("img");!o&&e&&((o=l.default.createElement("img")).className=t.options.classPrefix+"poster-img",o.width="100%",o.height="100%",n.style.display="",n.appendChild(o)),e?(o.setAttribute("src",e),n.style.backgroundImage='url("'+e+'")',n.style.display=""):o?(n.style.backgroundImage="none",n.style.display="none",o.remove()):n.style.display="none"}else(p.IS_IPAD&&t.options.iPadUseNativeControls||p.IS_IPHONE&&t.options.iPhoneUseNativeControls||p.IS_ANDROID&&t.options.AndroidUseNativeControls)&&(t.media.originalNode.poster=e)}},{key:"changeSkin",value:function(e){var t=this;t.getElement(t.container).className=t.options.classPrefix+"container "+e,t.setPlayerSize(t.width,t.height),t.setControlsSize()}},{key:"globalBind",value:function(e,t){var n=this,o=n.node?n.node.ownerDocument:l.default;if((e=(0,m.splitEvents)(e,n.id)).d)for(var i=e.d.split(" "),r=0,a=i.length;r
',n.appendChild(r),a.style.display="none",a.className=i.options.classPrefix+"overlay "+i.options.classPrefix+"layer",a.innerHTML='