var FOXIZ_MAIN_SCRIPT=(function (Module, $){
'use strict';
Module.initParams=function (){
this.yesStorage=this.isStorageAvailable();
this.themeSettings=typeof foxizParams!=='undefined' ? foxizParams:{};
this.galleriesData=typeof foxizGalleriesData!=='undefined' ? foxizGalleriesData:{};
this.ajaxURL=typeof foxizCoreParams!=='undefined' ? foxizCoreParams.ajaxurl||'':'';
this.ajaxData={};
this.siteAccessFlag=false;
this._document=$(document);
this._body=$('body');
this._window=$(window);
this.html=$('html, body');
this.outerHTML=$('html');
this.iOS=/(iPad|iPhone|iPod)/g.test(navigator.userAgent);
this.wPoint={};
this.sticky={};
this.eSticky={};
this.YTPlayers={};
this.articleData=[];
this.readIndicatorPercent=0;
this.isProgress=false;
this.readIndicator=$('#reading-progress');
this.popupNewsletterEl=$('#rb-popup-newsletter');
this.personalizeUID=(typeof FOXIZ_CORE_SCRIPT!=="undefined"&&FOXIZ_CORE_SCRIPT.personalizeUID!==undefined)
? FOXIZ_CORE_SCRIPT.personalizeUID
: 'u0';
}
Module.init=function (){
this.initParams();
this.syncLayoutLike();
this.topSpacing();
this.siteAccessDetector();
this.headerDropdown();
this.mobileCollapse();
this.initSubMenuPos();
this.privacyTrigger();
this.popupNewsletter();
this.documentClick();
this.backTop();
this.readIndicatorInit();
this.fontResizer();
this.breakingNews();
this.sequentialGalleryDisplay();
this.sliders();
this.carousels();
this.liveSearch();
this.personalizeBlocks();
this.personalizeCategories();
this.likeToggle();
this.singleInfiniteLoadNext();
this.loginPopup();
this.popupTemplate();
this.loadYoutubeIframe();
this.browserResize();
this.footerSlideUp();
this.cartNotification();
this.newsNotification();
this.tocToggle();
this.delayLoad();
this.showPostComment();
this.replyReview();
this.paginationNextPrev();
this.paginationLoadMore();
this.paginationInfinite();
this.productQuantity();
this.readingCollect();
this.liveBlog();
this.neededReloadFuncs();
}
Module.neededReloadFuncs=function (){
this.hoverTipsy();
this.scrollToComment();
this.usersRating();
this.singleGallery();
this.floatingVideo();
this.videoPreview();
this.floatingVideoRemove();
this.scrollTableContent();
this.singleScrollRefresh();
this.playerAutoPlay();
this.hoverEffects();
this.highlightShares();
this.galleryLightbox();
this.singleFeaturedLightbox();
this.accordion();
this.resIframeClassic();
this.taxBasedAccordion();
this.scrollBarSlider();
}
Module.reInitAll=function (){
this._window.trigger('load');
this.syncLayoutLike();
if(typeof FOXIZ_PERSONALIZE!=='undefined'){
FOXIZ_PERSONALIZE.syncPersonalizeLayout();
}
if(typeof RB_REACTION!=='undefined'){
RB_REACTION.syncReactLayout();
}
this.neededReloadFuncs();
Waypoint.refreshAll();
}
Module.reloadBlockFunc=function (){
this._window.trigger('load');
if(typeof FOXIZ_PERSONALIZE!=='undefined'){
FOXIZ_PERSONALIZE.syncLayoutBookmarks();
}
this.syncLayoutLike();
this.videoPreview();
this.hoverTipsy();
Waypoint.refreshAll();
}
Module.initElementor=function (){
if('undefined'!==typeof initDarkMode&&!FOXIZ_MAIN_SCRIPT.editorDarkModeInit){
FOXIZ_MAIN_SCRIPT.editorDarkModeInit=true;
initDarkMode();
}
FOXIZ_MAIN_SCRIPT.breakingNews();
FOXIZ_MAIN_SCRIPT.carousels();
FOXIZ_MAIN_SCRIPT.sliders();
}
Module.isRTL=function (){
return this._body.hasClass('rtl');
}
Module.animationFrame=function (callback){
const func=window.requestAnimationFrame||window.mozRequestAnimationFrame ||
window.webkitRequestAnimationFrame||this.animationFrameFallback
func.call(window, callback)
}
Module.animationFrameFallback=function (callback){
window.setTimeout(callback, 1000 / 60)
}
Module.isStorageAvailable=function (){
let storage;
try {
storage=window['localStorage'];
storage.setItem('__rbStorageSet', 'x');
storage.removeItem('__rbStorageSet');
return true;
} catch (e){
return false;
}}
Module.setStorage=function (key, data){
this.yesStorage&&localStorage.setItem(key, typeof data==='string' ? data:JSON.stringify(data));
}
Module.getStorage=function (key, defaultValue){
if(!this.yesStorage) return null;
const data=localStorage.getItem(key);
if(data===null) return defaultValue;
try {
return JSON.parse(data);
} catch (e){
return data;
}}
Module.deleteStorage=function (key){
this.yesStorage&&localStorage.removeItem(key);
}
Module.SetTTLStorage=function (id, value, ttl){
const data={
value: value,
ttl: Date.now() + ttl * 3600000
};
this.setStorage(id, data);
}
Module.getTTLStorage=function (id){
const data=this.getStorage(id);
if(data&&Date.now() <=data.ttl){
return data.value;
}
this.deleteStorage(id);
return null;
};
Module.delayLoad=function (){
const self=this;
setTimeout(function (){
self.stickyNavBar();
self.stickyHeaderBuilder();
}, 100)
}
Module.browserResize=function (){
const self=this;
self._window.on('resize', function (){
self.topSpacing();
self.calcSubMenuPos();
})
}
Module.hoverTipsy=function (){
if(!$.fn.rbTipsy){
return false;
}
this._body.find('[data-copy]').rbTipsy({
title: 'data-copy',
fade: true,
opacity: 1,
trigger: 'hover',
gravity: 's'
});
if(window.innerWidth > 1024){
this._body.find('#site-header [data-title]').rbTipsy({
title: 'data-title',
fade: true,
opacity: 1,
trigger: 'hover',
gravity: 'n'
});
this._body.find('.site-wrap [data-title]').rbTipsy({
title: 'data-title',
fade: true,
opacity: 1,
trigger: 'hover',
gravity: 's'
});
}}
Module.fontResizer=function (){
const self=this;
let size=self.yesStorage ? sessionStorage.getItem('rubyResizerStep'):1;
self._body.on('click', '.font-resizer-trigger', function (e){
e.preventDefault();
e.stopPropagation();
size++;
if(3 < size){
size=1;
self._body.removeClass('medium-entry-size big-entry-size')
}else{
if(2==size){
self._body.addClass('medium-entry-size').removeClass('big-entry-size');
}else{
self._body.addClass('big-entry-size').removeClass('medium-entry-size')
}}
self.yesStorage&&sessionStorage.setItem('rubyResizerStep', size);
});
}
Module.hoverEffects=function (){
const selectors=$('.effect-fadeout');
if(selectors.length===0){
return;
}
selectors.off('mouseenter mouseleave').on('mouseenter', function (e){
e.stopPropagation();
const target=$(this);
if(!target.hasClass('activated')){
target.addClass('activated');
}}).on('mouseleave', function (){
$(this).removeClass('activated');
});
}
Module.videoPreview=function (){
let playPromise;
$('.preview-trigger').on('mouseenter', function (){
const target=$(this);
const wrap=target.find('.preview-video');
if(!wrap.hasClass('video-added')){
const video='<video preload="auto" muted loop><source src="' + wrap.data('source') + '" type="' + wrap.data('type') + '"></video>';
wrap.append(video).addClass('video-added');
}
target.addClass('show-preview');
wrap.css('z-index', 3);
const el=target.find('video')[0];
if(el){
playPromise=el.play();
}}).on('mouseleave', function (){
const target=$(this);
target.find('.preview-video').css('z-index', 1);
const el=target.find('video')[0];
if(el&&playPromise!==undefined){
playPromise.then(_=> {
el.pause();
}).catch();
}});
}
Module.playerAutoPlay=function (){
const self=this;
const items=$('.is-autoplay');
const nonResIframe=$('.entry-content > iframe');
if(items!=null&&items.length > 0){
items.each(function (){
const el=$(this);
if(!el.hasClass('is-loaded')){
self.wPoint['iframe']=new Waypoint({
element: el,
handler: function (){
const iframe=el.find('iframe');
self.initAutoPlay(iframe);
el.addClass('is-loaded');
this.destroy();
},
offset: '60%'
});
}})
}
if(nonResIframe!=null&&nonResIframe.length > 0){
nonResIframe.each(function (){
const el=$(this);
if(!el.hasClass('is-loaded')){
const iURL=el.attr('src');
if(iURL.indexOf('youtube.com') > 0||iURL.indexOf('youtu.be') > 0||iURL.indexOf('vimeo.com') > 0){
el.wrap('<div class="rb-ires is-loaded"></div>');
}}
})
}}
Module.initAutoPlay=function (item){
if(item.length > 0&&undefined!==item[0]){
const src=item[0].src;
if(src.indexOf('?') > -1){
item[0].src +="&autoplay=1";
}else{
item[0].src +="?autoplay=1";
}}
}
Module.tocToggle=function (){
this._document.on('click', '.toc-toggle', function (e){
e.preventDefault();
e.stopPropagation();
const target=$(this);
const content=target.parents('.ruby-table-contents').find('.toc-content');
content.toggle(200);
target.toggleClass('activate');
});
};
Module.headerDropdown=function (){
const self=this;
$('.more-trigger').on('click', function (e){
e.preventDefault();
e.stopPropagation();
self.calcSubMenuPos();
const target=$(this);
const holder=target.parents('.header-wrap').find('.more-section-outer');
if(!holder.hasClass('dropdown-activated')){
self._body.find('.dropdown-activated').removeClass('dropdown-activated');
holder.addClass('dropdown-activated');
}else{
holder.removeClass('dropdown-activated');
}
if(target.hasClass('search-btn')){
setTimeout(function (){
holder.find('input[type="text"]').focus()
}, 150);
}
return false;
});
$('.search-trigger').on('click', function (e){
e.preventDefault();
e.stopPropagation();
const holder=$(this).parent('.header-dropdown-outer');
if(!holder.hasClass('dropdown-activated')){
self._body.find('.dropdown-activated').removeClass('dropdown-activated');
holder.addClass('dropdown-activated');
setTimeout(function (){
holder.find('input[type="text"]').focus()
}, 150);
}else{
holder.removeClass('dropdown-activated');
}
return false;
});
$('.dropdown-trigger').on('click', function (e){
e.preventDefault();
e.stopPropagation();
const holder=$(this).parent('.header-dropdown-outer');
if(!holder.hasClass('dropdown-activated')){
self._body.find('.dropdown-activated').removeClass('dropdown-activated');
holder.addClass('dropdown-activated');
}else{
holder.removeClass('dropdown-activated');
}});
}
Module.topSpacing=function (){
const self=this;
if(self._body.hasClass('top-spacing')){
const height=$('.top-site-ad').outerHeight();
$('.site-outer').css('margin-top', height);
}}
Module.documentClick=function (){
const self=this;
const wrapper=$('.more-section-outer, .header-dropdown-outer, .mobile-collapse, .mfp-wrap');
const inlineSearchForm=$('.is-form-layout');
document.addEventListener('click', function (e){
if(!wrapper.is(e.target)&&wrapper.has(e.target).length===0){
wrapper.removeClass('dropdown-activated');
self.outerHTML.removeClass('collapse-activated');
}
if(!inlineSearchForm.is(e.target)&&inlineSearchForm.has(e.target).length===0){
inlineSearchForm.find('.live-search-response').fadeOut(500);
}});
}
Module.initSubMenuPos=function (){
const self=this;
let trigger=false;
setTimeout(function (){
self.calcSubMenuPos();
}, 1000);
$('.menu-has-child-mega').on('mouseenter', function (){
if(!trigger){
self.calcSubMenuPos();
}
trigger=true;
})
}
Module.calcSubMenuPos=function (){
if(window.outerWidth < 1025){
return false;
}
const self=this;
const megaParents=$('.menu-has-child-mega');
const headerWrapper=$('#site-header');
if(megaParents.length > 0){
megaParents.each(function (){
const item=$(this);
item.find('.mega-dropdown').css({
'width': self._body.width(),
'left': -item.offset().left,
});
item.addClass('mega-menu-loaded')
})
}
if(headerWrapper.length > 0){
let headerLeftOffset=headerWrapper.offset().left;
let headerWidth=headerWrapper.width();
let headerRightOffset=headerLeftOffset + headerWidth;
const flexDropdown=$('.flex-dropdown');
const subElements=$('ul.sub-menu');
if(subElements.length > 0){
subElements.each(function (){
const item=$(this);
let itemLeftOffset=item.offset().left;
let itemRightOffset=itemLeftOffset + item.width() + 100;
if(itemRightOffset > headerRightOffset){
item.addClass('left-direction');
}})
}
if(flexDropdown.length > 0){
flexDropdown.each(function (){
const item=$(this);
const parentItem=item.parent();
if(parentItem.hasClass('is-child-wide')||item.hasClass('mega-has-left')){
return;
}
const itemWidth=item.width();
const itemHalfWidth=itemWidth / 2;
const parentItemOffset=parentItem.offset().left;
const parentHalfWidth=parentItem.width() / 2;
const parentItemCenterOffset=parentItemOffset + parentHalfWidth;
const rightSpacing=headerRightOffset - parentItemCenterOffset;
const leftSpacing=parentItemCenterOffset - headerLeftOffset;
if(itemWidth >=headerWidth){
item.css({
'width': headerWidth - 2,
'left': -parentItemOffset
});
}else if(itemHalfWidth > rightSpacing){
item.css({
'right': -rightSpacing + parentHalfWidth + 1,
'left': 'auto',
});
}else if(itemHalfWidth > leftSpacing){
item.css({
'left': -leftSpacing + parentHalfWidth + 1,
'right': 'auto',
});
}else{
item.css({
'right': 'auto',
'left': -itemHalfWidth + parentHalfWidth,
});
}});
}}
}
Module.stickyNavBar=function (){
const self=this;
if(self._body.hasClass('elementor-editor-active')){
return false;
}
self.sticky.section=$('#sticky-holder');
self.sticky.outer=$('#navbar-outer');
if((!self._body.hasClass('is-mstick')&&!self._body.hasClass('yes-tstick'))||self.sticky.outer.length < 1||self.sticky.section.length < 1){
return false;
}
self.sticky.smartSticky = !!self._body.hasClass('is-smart-sticky');
self.sticky.isSticky=false;
self.sticky.lastScroll=0;
if(self._body.hasClass('yes-tstick')){
self.sticky.isTitleSticky=true;
}else{
self.sticky.isTitleSticky=0;
}
self.sticky.additionalOffset=200;
if(window.innerWidth > 1024){
if(self.sticky.isTitleSticky){
self.sticky.additionalOffset=450;
}else{
self.sticky.additionalOffset=0;
}}
if(self._body.hasClass('admin-bar')){
self.sticky.adminBarSpacing=32;
}else{
self.sticky.adminBarSpacing=0;
}
self.sticky.topOffset=self.sticky.section.offset().top;
self.sticky.stickySectionHeight=self.sticky.section.outerHeight();
self.sticky.outer.css('min-height', self.sticky.outer.outerHeight());
self.sticky.activatePos=self.sticky.topOffset + 1 + self.sticky.stickySectionHeight + self.sticky.additionalOffset;
self.sticky.deactivePos=self.sticky.topOffset - self.sticky.adminBarSpacing + self.sticky.additionalOffset;
if(window.addEventListener){
if(self.sticky.smartSticky){
window.addEventListener('scroll', function (){
self.animationFrame(self.initSmartStickyNavBar.bind(self));
}, false);
}else{
window.addEventListener('scroll', function (){
self.animationFrame(self.initStickyNavBar.bind(self));
}, false);
}}
self._window.on('unstickMenu', function (){
self.sticky.outer.css('min-height', self.sticky.outer.outerHeight());
self.sticky.stickySectionHeight=self.sticky.section.outerHeight();
self.sticky.topOffset=self.sticky.section.offset().top;
self.sticky.activatePos=self.sticky.topOffset + 1 + self.sticky.stickySectionHeight + self.sticky.additionalOffset;
self.sticky.deactivePos=self.sticky.topOffset - self.sticky.adminBarSpacing + self.sticky.additionalOffset;
});
}
Module.initStickyNavBar=function (){
const self=this;
const scroll=self._window.scrollTop();
if(!self.sticky.isSticky&&scroll > self.sticky.activatePos){
self.sticky.isSticky=true;
self._body.addClass('stick-animated sticky-on');
self.sticky.stickAnimatedTimeout=setTimeout(function (){
self._body.removeClass('stick-animated');
}, 200);
}else if(self.sticky.isSticky&&scroll <=self.sticky.deactivePos){
self.sticky.isSticky=false;
self._body.removeClass('sticky-on stick-animated');
self._window.trigger('unstickMenu');
}}
Module.initSmartStickyNavBar=function (){
const self=this;
const scroll=self._window.scrollTop();
if(!self.sticky.isSticky&&scroll > self.sticky.activatePos&&scroll < self.sticky.lastScroll){
self.sticky.isSticky=true;
self._body.addClass('stick-animated sticky-on');
self.sticky.stickAnimatedTimeout=setTimeout(function (){
self._body.removeClass('stick-animated');
}, 200);
}else if(self.sticky.isSticky&&(scroll <=self.sticky.deactivePos||scroll > self.sticky.lastScroll)){
self.sticky.isSticky=false;
self._body.removeClass('sticky-on stick-animated');
if(scroll <=self.sticky.deactivePos){
self._window.trigger('unstickESection');
}}
self.sticky.lastScroll=scroll;
}
Module.stickyHeaderBuilder=function (){
const self=this;
if(self._body.hasClass('elementor-editor-active')){
return false;
}
let stickySection=$('.header-template .e-section-sticky').first();
const hasTitleSticky=$('body.single-post #s-title-sticky').first();
if(stickySection.length < 1){
return false;
}
if(hasTitleSticky.length > 0){
self._body.addClass('yes-tstick');
self.eSticky.isTitleSticky=true;
}else{
self.eSticky.isTitleSticky=0;
}
self.eSticky.additionalOffset=200;
if(window.innerWidth > 1024){
if(self.eSticky.isTitleSticky){
self.eSticky.additionalOffset=450;
}else{
self.eSticky.additionalOffset=0;
}}
self.eSticky.smartSticky = !!stickySection.hasClass('is-smart-sticky');
if(window.innerWidth <=1024){
stickySection.removeClass('e-section-sticky');
stickySection=$('#header-template-holder').addClass('e-section-sticky');
}
self.eSticky.section=stickySection;
self.eSticky.outer=stickySection.parent();
self.eSticky.adminBarSpacing=0;
self.eSticky.isSticky=false;
self.eSticky.lastScroll=0;
self.eSticky.stickySectionHeight=stickySection.outerHeight();
self.eSticky.topOffset=stickySection.offset().top;
if(self._body.hasClass('admin-bar')){
self.eSticky.adminBarSpacing=32;
}
self.eSticky.outer.css('min-height', self.eSticky.outer.outerHeight());
self.eSticky.activatePos=self.eSticky.topOffset + 1 + self.eSticky.stickySectionHeight + self.eSticky.additionalOffset;
self.eSticky.deactivePos=self.eSticky.topOffset - self.eSticky.adminBarSpacing + self.eSticky.additionalOffset;
if(window.addEventListener){
if(self.eSticky.smartSticky){
window.addEventListener('scroll', function (){
self.animationFrame(self.initSmartStickyESection.bind(self));
}, false);
}else{
window.addEventListener('scroll', function (){
self.animationFrame(self.initStickyESection.bind(self));
}, false);
}}
self._window.on('unstickESection', function (){
self.eSticky.outer.css('min-height', self.eSticky.outer.outerHeight());
self.eSticky.stickySectionHeight=self.eSticky.section.outerHeight();
self.eSticky.topOffset=self.eSticky.section.offset().top;
self.eSticky.activatePos=self.eSticky.topOffset + 1 + self.eSticky.stickySectionHeight + self.eSticky.additionalOffset;
self.eSticky.deactivePos=self.eSticky.topOffset - self.eSticky.adminBarSpacing + self.eSticky.additionalOffset;
});
}
Module.initStickyESection=function (){
const self=this;
const scroll=self._window.scrollTop();
if(!self.eSticky.isSticky&&scroll > self.eSticky.activatePos){
self.eSticky.isSticky=true;
self._body.addClass('stick-animated sticky-on');
self.eSticky.stickAnimatedTimeout=setTimeout(function (){
self._body.removeClass('stick-animated');
}, 200);
}else if(self.eSticky.isSticky&&scroll <=self.eSticky.deactivePos){
self.eSticky.isSticky=false;
self._body.removeClass('sticky-on stick-animated');
self._window.trigger('unstickESection');
}}
Module.initSmartStickyESection=function (){
const self=this;
const scroll=self._window.scrollTop();
if(!self.eSticky.isSticky&&scroll > self.eSticky.activatePos&&scroll < self.eSticky.lastScroll){
self.eSticky.isSticky=true;
self._body.addClass('stick-animated sticky-on');
self.eSticky.stickAnimatedTimeout=setTimeout(function (){
self._body.removeClass('stick-animated');
}, 200);
}else if(self.eSticky.isSticky&&(scroll <=self.eSticky.deactivePos||scroll > self.eSticky.lastScroll)){
self.eSticky.isSticky=false;
self._body.removeClass('sticky-on stick-animated');
if(scroll <=self.eSticky.deactivePos){
self._window.trigger('unstickESection');
}}
self.eSticky.lastScroll=scroll;
}
Module.mobileCollapse=function (){
const self=this;
const $mobileMenuTrigger=$('.mobile-menu-trigger');
const $outerHTML=self.outerHTML;
const $mobileSearchForm=$outerHTML.find('.mobile-search-form input[type="text"]');
$mobileMenuTrigger.on('click', function (e){
e.preventDefault();
e.stopPropagation();
const target=$(this);
if(target.hasClass('mobile-search-icon')){
setTimeout(function (){
$mobileSearchForm.focus();
}, 100);
}
const isCollapseActivated=$outerHTML.hasClass('collapse-activated');
$outerHTML.toggleClass('collapse-activated', !isCollapseActivated);
});
}
Module.privacyTrigger=function (){
const self=this;
$('#privacy-trigger').on('click', function (e){
e.preventDefault();
e.stopPropagation();
self.setStorage('RubyPrivacyAllowed', '1');
$('#rb-privacy').slideUp(200, function (){
$(this).remove();
});
return false;
});
}
Module.backTop=function (){
if(this._body.hasClass('is-backtop')){
$().UItoTop({
text: '<i class="rbi rbi-darrow-top"></i>',
});
}}
Module.loginPopup=function (){
const self=this;
const form=$('#rb-user-popup-form');
if(form.length < 1){
return false;
}
this._document.on('click', '.login-toggle', (e)=> {
e.preventDefault();
e.stopPropagation();
$.magnificPopup.open({
type: 'inline',
preloader: false,
removalDelay: 400,
showCloseBtn: true,
closeBtnInside: true,
closeOnBgClick: false,
items: {
src: form,
type: 'inline'
},
mainClass: 'rb-popup-center',
closeMarkup: '<span class="close-popup-btn mfp-close"><span class="close-icon"></span></span>',
fixedBgPos: true,
fixedContentPos: true,
callbacks: {open: ()=> self.reloadCaptchaPopups()}});
});
};
Module.popupTemplate=function (){
const templateCache={};
this._document.on('click', '.popup-trigger-btn', (e)=> {
e.preventDefault();
e.stopPropagation();
const target=$(e.target);
const templateID=target.data('trigger')||'';
const position=target.data('position')||'';
if(!templateCache[templateID]){
const template=$(`#tmpl-${templateID}`);
if(template.length===0){
return;
}
templateCache[templateID]=template.html();
}
$.magnificPopup.open({
type: 'inline',
preloader: false,
removalDelay: 400,
showCloseBtn: true,
closeBtnInside: true,
closeOnBgClick: true,
allowHTMLInTemplate: true,
items: {
src: templateCache[templateID],
type: 'inline'
},
mainClass: `is-template-popup popup-${templateID} ${position}`,
closeMarkup: '<span class="close-popup-btn mfp-close"><span class="close-icon"></span></span>',
fixedBgPos: true,
fixedContentPos: true,
callbacks: {open: ()=> self.reloadCaptchaPopups()},
});
});
};
Module.popupNewsletter=function (){
const self=this;
if(self.popupNewsletterEl.length > 0){
const display=self.popupNewsletterEl.data('display');
self.newsletterExpired=self.popupNewsletterEl.data('expired');
self.newsletterDisplayOffset=self.popupNewsletterEl.data('offset');
const delay=self.popupNewsletterEl.data('delay');
const oldExpired=self.getStorage('RubyNewsletterExpired');
if(self.newsletterExpired===0){
self.deleteStorage('RubyNewsletter');
}
if(!oldExpired||self.newsletterExpired!==oldExpired){
self.setStorage('RubyNewsletterExpired', self.newsletterExpired);
self.deleteStorage('RubyNewsletter');
}
if(!self.getTTLStorage('RubyNewsletter')){
if(!display||'scroll'===display){
if(window.addEventListener){
window.addEventListener('scroll', function (){
self.animationFrame(self.scrollPopupNewsletter.bind(self));
}, false);
}}else{
setTimeout(function (){
self.popupNewsletterInit();
}, delay);
}}
}}
Module.scrollPopupNewsletter=function (){
const self=this;
if(!self.newsletterPopupFlag&&self._window.scrollTop() > self.newsletterDisplayOffset){
self.newsletterPopupFlag=true;
self.popupNewsletterInit();
}}
Module.popupNewsletterInit=function (){
const self=this;
if(self.siteAccessFlag){
return;
}
if(!self.popupNewsletterEl.hasClass('is-pos-fixed')){
$.magnificPopup.open({
type: 'inline',
preloader: false,
closeBtnInside: true,
removalDelay: 400,
showCloseBtn: true,
closeOnBgClick: false,
disableOn: 1024,
items: {
src: '#rb-popup-newsletter',
type: 'inline'
},
mainClass: 'rb-popup-center',
fixedBgPos: true,
fixedContentPos: true,
closeMarkup: '<span class="close-popup-btn mfp-close"><span class="close-icon"></span></span>',
callbacks: {
open: ()=> self.reloadCaptchaPopups(),
close: function (){
if(self.siteAccessFlag){
return;
}
self.SetTTLStorage('RubyNewsletter', 1, self.newsletterExpired * 24);
}}
});
}else{
self.popupNewsletterEl.removeClass('is-hidden');
setTimeout(()=> {
self.popupNewsletterEl.addClass('yes-show');
}, 10);
const closeBtn=self.popupNewsletterEl.find('.close-popup-btn');
closeBtn.on('click', function (){
self.SetTTLStorage('RubyNewsletter', 1, self.newsletterExpired * 24);
self.popupNewsletterEl.removeClass('yes-show');
setTimeout(()=> {
self.popupNewsletterEl.addClass('is-hidden');
}, 400);
});
}}
Module.footerSlideUp=function (){
const target=$('#footer-slideup');
if(target.length > 0){
const self=this;
self.footerSlideUpExpired=target.data('expired');
const delay=target.data('delay');
const oldExpired=self.getStorage('footerSlideUpExpired');
if(!oldExpired||self.footerSlideUpExpired!=oldExpired){
self.setStorage('footerSlideUpExpired', self.footerSlideUpExpired);
self.deleteStorage('footerSlideUp');
}
if(!self.getTTLStorage('footerSlideUp')){
setTimeout(function (){
self.footerSlideUpInit();
}, delay);
}
setTimeout(function (){
self.footerSlideUpToggle();
}, delay);
}}
Module.footerSlideUpToggle=function (){
const self=this;
$('.slideup-toggle').off('click').on('click', function (e){
e.preventDefault();
e.stopPropagation();
self.footerSlideUpInit();
return false;
});
}
Module.footerSlideUpInit=function (){
if(this._body.hasClass('yes-f-slideup')){
this._body.removeClass('yes-f-slideup');
this.SetTTLStorage('footerSlideUp', 1, this.footerSlideUpExpired * 24);
}else{
this._body.addClass('yes-f-slideup');
this.deleteStorage('footerSlideUp');
}}
Module.loadYoutubeIframe=function (){
const self=this;
const blockPlaylist=$('.yt-playlist');
if(blockPlaylist.length > 0){
const tag=document.createElement('script');
tag.src="//www.youtube.com/iframe_api";
const firstScriptTag=document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
}
window.onYouTubeIframeAPIReady=function (){
$('.yt-playlist').each(function (){
const target=$(this);
const iframe=target.find('.yt-player');
const videoID=target.data('id');
const blockID=target.data('block');
self.YTPlayers[blockID]=new YT.Player(iframe.get(0), {
height: '540',
width: '960',
videoId: videoID,
events: {
'onReady': self.videoPlayToggle,
'onStateChange': self.videoPlayToggle
}});
});
$('.plist-item').on('click', function (e){
e.preventDefault();
e.stopPropagation();
const target=$(this);
const wrapper=target.closest('.yt-playlist');
const currentBlockID=wrapper.data('block');
const videoID=target.data('id');
const title=target.find('.plist-item-title').text();
const meta=target.data('index');
Object.keys(self.YTPlayers).forEach(function (id){
self.YTPlayers[id].pauseVideo();
});
self.YTPlayers[currentBlockID].loadVideoById({
'videoId': videoID
});
wrapper.find('.yt-trigger').addClass('is-playing');
wrapper.find('.play-title').hide().text(title).fadeIn(200);
wrapper.find('.video-index').text(meta);
});
}}
Module.videoPlayToggle=function (){
const players=FOXIZ_MAIN_SCRIPT.YTPlayers;
$('.yt-trigger').on('click', function (e){
e.preventDefault();
e.stopPropagation();
const target=$(this);
const currentBlockID=target.closest('.yt-playlist').data('block');
const currentState=players[currentBlockID].getPlayerState();
const isPlaying=[1, 3].includes(currentState);
if(!isPlaying){
players[currentBlockID].playVideo();
target.addClass('is-playing');
}else{
players[currentBlockID].pauseVideo();
target.removeClass('is-playing');
}});
}
Module.showPostComment=function (){
const self=this;
this._document.on('click', '.smeta-sec .meta-comment', function (e){
e.stopPropagation();
const commentBtn=$('.show-post-comment');
if(commentBtn.length > 0){
self.html.animate({scrollTop: commentBtn.offset().top}, 300);
commentBtn.trigger('click');
}});
this._document.on('click', '.show-post-comment', function (e){
e.preventDefault();
e.stopPropagation();
const target=$(this);
const wrap=target.parent();
target.fadeOut(200, function (){
target.remove();
wrap.find('.is-invisible').removeClass('is-invisible');
wrap.next('.comment-holder').removeClass('is-hidden');
})
});
}
Module.scrollTableContent=function (){
const self=this;
const behavior=self._body.hasClass('toc-smooth') ? 'smooth':'instant';
self._document.on('click', '.anchor-link', function (e){
e.stopPropagation();
const targetClass=$(this).data('index');
if(!targetClass) return;
let $scrollElement=$(`.${targetClass}`);
if(!$scrollElement.length){
const $parentContainer=$(this).closest('.s-ct');
if($parentContainer.length){
$scrollElement=$parentContainer.find('.restrict-box, .continue-reading-btn').first();
}}
if(!$scrollElement.length) return;
setTimeout(()=> {
window.scrollTo({
top: $scrollElement.offset().top,
behavior: behavior,
});
}, 10);
});
};
Module.scrollToComment=function (){
const self=this;
const hash=window.location.hash;
if(hash==='#respond'||hash.startsWith('#comment')){
const commentBtn=$('.show-post-comment').first();
if(commentBtn.length===0){
return;
}
self.html.animate({scrollTop: commentBtn.offset().top - 200}, 400);
commentBtn.trigger('click');
}}
Module.replyReview=function (){
this._document.on('click', '.comment-reply-link', function (){
const target=$(this);
const wrapper=target.parents('.rb-reviews-area');
const cancelLink=$('#cancel-comment-reply-link');
if(wrapper.length > 0){
wrapper.find('.rb-form-rating').addClass('is-hidden');
cancelLink.on('click', function (){
wrapper.find('.rb-form-rating').removeClass('is-hidden');
});
}});
}
Module.usersRating=function (){
const self=this;
const reviewsForm=self._body.find('.rb-reviews-form');
if(reviewsForm.length > 0){
reviewsForm.each(function (){
const reviewForm=$(this);
if(!reviewForm.hasClass('is-loaded')){
reviewForm.addClass('is-loaded');
const ratingForm=reviewForm.find('.rb-form-rating');
const selection=reviewForm.find('.rb-rating-selection');
const text=reviewForm.find('.rating-alert').html();
let ratingValue=null;
selection.val('');
selection.hide();
selection.before('<div class="rb-review-stars">\
<span>\
<a class="star" data-rating="1" href="#"><i class="rbi rbi-star-o"></i></a>\
<a class="star" data-rating="2" href="#"><i class="rbi rbi-star-o"></i></a>\
<a class="star" data-rating="3" href="#"><i class="rbi rbi-star-o"></i></a>\
<a class="star" data-rating="4" href="#"><i class="rbi rbi-star-o"></i></a>\
<a class="star" data-rating="5" href="#"><i class="rbi rbi-star-o"></i></a>\
</span>\
</div>'
);
ratingForm.on('click', 'a.star', function (e){
e.preventDefault();
e.stopPropagation();
const star=$(this);
ratingValue=star.data('rating');
star.siblings('a').removeClass('active');
star.addClass('active');
ratingForm.addClass('selected');
});
reviewForm.on('click', '#respond #submit', function (){
selection.val(ratingValue);
if(!selection.val()){
window.alert(text);
return false;
}});
}});
}}
Module.readIndicatorInit=function (){
const self=this;
if(!self._body.hasClass('single')||self.readIndicator.length < 1){
return false;
}
let content=$('.entry-content').first();
if(!content.length) return false;
self.indicatorTop=content.offset().top;
self.indicatorHeight=content.outerHeight(true) - self._window.height();
setTimeout(function (){
self.indicatorTop=content.offset().top;
self.indicatorHeight=content.outerHeight(true) - self._window.height();
}, 1000)
if(window.addEventListener){
window.addEventListener('scroll', function (){
self.animationFrame(self.readIndicatorCalc.bind(self));
}, false);
}}
Module.readIndicatorCalc=function (){
const self=this;
const scroll=self._window.scrollTop();
self.readIndicatorPercent=Math.min(((scroll - self.indicatorTop) / self.indicatorHeight) * 100, 100);
if(self.readIndicatorPercent <=100){
self.readIndicator.css('width', self.readIndicatorPercent + '%');
}}
Module.breakingNews=function (){
const self=this;
const breakingNews=$('.breaking-news-slider')
if(breakingNews.length < 1){
return false;
}
breakingNews.each(function (){
const el=$(this);
let params={
slidesPerView: 1,
loop: true,
}
if(el.data('play')){
params.autoplay={
delay: el.data('speed')||self.themeSettings.sliderSpeed,
stopOnLastSlide: false,
disableOnInteraction: self.isElementorEditor ? true:(window.outerWidth < 1025),
pauseOnMouseEnter: true
};}
params.navigation={
nextEl: el.find('.breaking-news-next')[0],
prevEl: el.find('.breaking-news-prev')[0]
}
new RBSwiper(this, params);
});
}
Module.sliders=function (){
const self=this;
const sliders=$('.post-slider');
if(sliders.length < 1){
return false;
}
sliders.each(function (){
const slider=$(this);
let params={
grabCursor: true,
allowTouchMove: true,
effect: self.themeSettings.sliderEffect,
loop: true,
}
if(slider.data('play')){
params.autoplay={
delay: slider.data('speed')||self.themeSettings.sliderSpeed,
stopOnLastSlide: true,
disableOnInteraction: self.isElementorEditor ? true:(window.outerWidth < 1025),
pauseOnMouseEnter: true
};}
params.pagination={
el: slider.find('.slider-pagination')[0],
clickable: true,
};
params.navigation={
nextEl: slider.find('.slider-next')[0],
prevEl: slider.find('.slider-prev')[0]
}
new RBSwiper(this, params);
});
}
Module.carousels=function (){
const self=this;
const carousels=$('.post-carousel');
if(carousels.length < 1){
return false;
}
carousels.each(function (){
const carousel=$(this);
let params={
grabCursor: true,
allowTouchMove: true,
freeMode: false,
loop: true
}
params.slidesPerView=carousel.data('mcol');
params.spaceBetween=carousel.data('mgap');
params.centeredSlides=carousel.data('centered');
params.navigation={
nextEl: carousel.find('.slider-next')[0],
prevEl: carousel.find('.slider-prev')[0]
}
if(carousel.find('.slider-pagination')[0]){
params.pagination={
el: carousel.find('.slider-pagination')[0],
type: 'bullets',
clickable: true,
};}
if(carousel.data('play')){
params.autoplay={
delay: carousel.data('speed')||self.themeSettings.sliderSpeed,
stopOnLastSlide: false,
disableOnInteraction: self.isElementorEditor ? true:(window.outerWidth < 1025),
pauseOnMouseEnter: true
};}
if(carousel.data('fmode')){
params.freeMode=true;
}
params.breakpoints={
768: {
slidesPerView: carousel.data('tcol'),
spaceBetween: carousel.data('tgap')
},
1025: {
slidesPerView: carousel.data('col'),
spaceBetween: carousel.data('gap')
},
1500: {
slidesPerView: carousel.data('wcol'),
spaceBetween: carousel.data('gap')
}};
params.on={
afterInit: function (swiper){
const wrap=$(swiper.$wrapperEl);
$(swiper.$wrapperEl).find('.p-box').css('height', wrap.height());
},
resize: function (swiper){
const wrap=$(swiper.$wrapperEl);
$(swiper.$wrapperEl).find('.p-box').css('height', wrap.height());
},
};
new RBSwiper(this, params);
});
}
Module.singleGallery=function (){
const self=this;
const gallerySections=self._body.find('.featured-gallery-wrap');
if(gallerySections.length===0){
return;
}
gallerySections.each(function (){
const section=$(this);
if(!section.hasClass('is-loaded')){
const index=section.data('gallery');
const sliderEl=section.find('.gallery-slider').attr('id');
const sliderNavEl=section.find('.gallery-slider-nav').attr('id');
const carouselEl=section.find('.gallery-carousel').attr('id');
const coverflowEL=section.find('.gallery-coverflow').attr('id');
if(sliderEl&&sliderNavEl){
const navEl=$('#' + sliderNavEl);
const navSlidesCount=navEl.find('.swiper-slide').length;
const shouldLoopNav=navSlidesCount >=6;
const viewSlides=Math.min(navSlidesCount, 6);
if(!shouldLoopNav){
navEl.css('max-width', `${navSlidesCount * 125}px`);
}
const galleryNav=new RBSwiper('#' + sliderNavEl, {
spaceBetween: 15,
slidesPerView: viewSlides,
freeMode: self.themeSettings.sliderFMode,
grabCursor: true,
loop: shouldLoopNav,
watchSlidesVisibility: shouldLoopNav,
watchSlidesProgress: true,
on: {
init: function (){
$(this.$wrapperEl).removeClass('pre-load');
},
},
});
const gallerySlider=new RBSwiper('#' + sliderEl, {
spaceBetween: 0,
grabCursor: true,
loop: true,
pagination: {
el: '.swiper-pagination-' + index,
type: 'progressbar',
clickable: true,
},
on: {
init: function (){
section.addClass('is-loaded');
},
},
thumbs: {
swiper: galleryNav
}});
gallerySlider.on('slideChange', function (){
const index=this.activeIndex;
if(index){
const label=$(this.$el).next().find('.current-slider-count');
label.fadeOut(0, function (){
$(this).html(index <=label.data('total') ? index:1).fadeIn(50);
});
}});
}
if('undefined'!==typeof carouselEl){
new RBSwiper('#' + carouselEl, {
spaceBetween: 20,
slidesPerView: 'auto',
freeMode: self.themeSettings.sliderFMode,
loop: false,
grabCursor: true,
scrollbar: {
el: '.swiper-scrollbar-' + index,
hide: true,
},
on: {
init: function (){
$(this.$wrapperEl).removeClass('pre-load');
section.addClass('is-loaded');
},
},
});
}
if('undefined'!==typeof coverflowEL){
new RBSwiper('#' + coverflowEL, {
effect: "coverflow",
grabCursor: true,
centeredSlides: true,
slidesPerView: 1.2,
coverflowEffect: {
rotate: 50,
stretch: 0,
depth: 250,
modifier: 1,
slideShadows: true,
},
breakpoints: {
768: {
slidesPerView: 3
}},
on: {
init: function (){
$(this.$wrapperEl).removeClass('pre-load');
section.addClass('is-loaded');
},
},
pagination: {
el: '.swiper-pagination-' + index,
clickable: true,
},
});
}}
});
}
Module.scrollBarSlider=function (){
const self=this;
const items=$('.gb-slider-scrollbar');
if(!items.length) return;
items.each(function (index, itemEl){
if($(itemEl).hasClass('is-loaded')) return;
const autoplay=$(itemEl).data('autoplay')===1;
const caption=$(itemEl).closest('.gb-image-slider').find('.gb-image-caption');
const scrollbarEl=$(itemEl).find('.swiper-scrollbar')[0];
$(itemEl).find('.swiper-wrapper').children().addClass('swiper-slide');
const updateCaption=(swiper)=> {
const captionText=$(swiper.slides[swiper.activeIndex]).find('.wp-element-caption').html()||'';
caption.fadeOut(150, ()=> caption.html(captionText).fadeIn(200));
};
new RBSwiper(itemEl, {
slidesPerView: 1,
loop: false,
grabCursor: true,
autoplay: autoplay ? {
delay: self.themeSettings.sliderSpeed||5000,
disableOnInteraction: self.isElementorEditor ? true:window.outerWidth < 1025,
}:false,
scrollbar: {
el: scrollbarEl,
hide: false,
},
on: {
init(){
$(itemEl).removeClass('pre-load').addClass('is-loaded');
updateCaption(this);
},
slideChange(){
updateCaption(this);
},
},
});
});
};
Module.highlightShares=function (){
const self=this;
if(!self.themeSettings.highlightShares||(window.matchMedia&&window.matchMedia('(pointer: coarse)').matches)){
return;
}
const config={
selectableElements: ['.is-highlight-shares'],
twitterUsername: self.themeSettings.twitterName,
facebook: !!self.themeSettings.highlightShareFacebook,
twitter: !!self.themeSettings.highlightShareTwitter
};
const extra=self.themeSettings.highlightShareReddit ? [{
icon: '<i class="rbi rbi-reddit"></i>',
url: 'https://reddit.com/submit?url=PAGE_URL&title=TEXT_SELECTION'
}]:[];
Sharect.config(config).appendCustomShareButtons(extra).init();
}
Module.floatingVideo=function (){
const self=this;
const floating=$('.floating-video').not('.is-loaded');
if(floating.length===0||window.outerWidth < 1025){
return false;
}
self.wPoint['Floating']=new Waypoint({
element: floating,
offset: -floating.height(),
handler: function (direction){
self._body.find('.floating-video').addClass('is-loaded').removeClass('floating-activated');
self._body.find('.floating-close').remove();
if('down'==direction){
this.element.addClass(' floating-activated');
this.element.find('.float-holder').prepend('<a class="floating-close close-popup-btn" href="#"><span class="close-icon"></span></a>');
}}
});
}
Module.floatingVideoRemove=function (){
const self=this;
self._body.on('click', '.floating-close', function (e){
e.preventDefault();
e.stopPropagation();
self._body.find('.floating-video').removeClass('floating-activated');
self.wPoint['Floating'].destroy();
})
}
Module.siteAccessDetector=function (){
const self=this;
const method=self.themeSettings?.adDetectorMethod;
if(!method||self.siteAccessFlag||self.crwDetect()){
return;
}
setTimeout(()=> {
if(self.siteAccessFlag) return;
switch (parseInt(method)){
case 1:
self.baitElementDetector();
break;
case 2:
self.externalScriptDetector();
break;
case 3:
self.combinedDetector();
break;
}}, 1500);
};
Module.baitElementDetector=function (){
const self=this;
const bait=self.createBaitElement();
document.body.appendChild(bait);
setTimeout(()=> {
const isBlocked=self.checkBaitElement(bait);
bait.remove();
if(isBlocked){
self.siteAccessFlag=true;
$.magnificPopup.close();
setTimeout(()=> {
self.siteAccessNotification();
}, 200);
}}, 100);
};
Module.externalScriptDetector=function (){
const self=this;
const testUrl='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
const script=document.createElement('script');
script.src=testUrl;
script.async=true;
let completed=false;
const complete=(blocked)=> {
if(completed) return;
completed=true;
script.remove();
if(blocked){
self.siteAccessFlag=true;
$.magnificPopup.close();
setTimeout(()=> {
self.siteAccessNotification();
}, 200);
}};
script.onerror=()=> complete(true);
script.onload=()=> complete(false);
setTimeout(()=> complete(true), 5000);
document.head.appendChild(script);
};
Module.combinedDetector=function (){
const self=this;
const bait=self.createBaitElement();
document.body.appendChild(bait);
setTimeout(()=> {
const baitBlocked=self.checkBaitElement(bait);
bait.remove();
if(baitBlocked){
self.siteAccessFlag=true;
$.magnificPopup.close();
setTimeout(()=> {
self.siteAccessNotification();
}, 200);
return;
}
self.externalScriptDetector();
}, 100);
};
Module.createBaitElement=function (){
const container=document.createElement('div');
container.id='rb-adcheck';
container.setAttribute('aria-hidden', 'true');
container.style.cssText='position:absolute;bottom:0;left:0;z-index:-1;pointer-events:none;overflow:hidden;';
const inner=document.createElement('div');
inner.id='google_ads_iframe_test';
inner.className='adsbygoogle ad-slot adbanner ads-banner banner_ad ad-placeholder pub_300x250 textads adsbox';
inner.setAttribute('data-ad-slot', 'test');
inner.style.cssText='width:300px;height:250px;background:transparent;';
container.appendChild(inner);
return container;
};
Module.checkBaitElement=function (container){
const inner=container.querySelector('.adsbygoogle');
if(!inner||!document.body.contains(inner)){
return true;
}
const style=window.getComputedStyle(inner);
const rect=inner.getBoundingClientRect();
return (
rect.height < 1 ||
rect.width < 1 ||
style.display==='none' ||
style.visibility==='hidden' ||
parseFloat(style.opacity)===0 ||
inner.offsetParent===null
);
};
Module.siteAccessNotification=function (){
$.magnificPopup.open({
type: 'inline',
preloader: false,
showCloseBtn: false,
closeBtnInside: false,
enableEscapeKey: false,
closeOnBgClick: false,
removalDelay: 9999999,
items: {
src: $('#tmpl-rb-site-access').html(),
type: 'inline'
},
mainClass: 'rb-popup-center site-access-popup',
fixedBgPos: true,
fixedContentPos: true,
});
window.addEventListener('contextmenu', event=> event.preventDefault());
}
Module.galleryLightbox=function (){
const self=this;
if(!self.galleriesData){
return;
}
$('.gallery-popup-trigger').on('click', function (e){
e.preventDefault();
e.stopPropagation();
const target=$(this);
const slideIndex=target.data('index');
$.magnificPopup.open({
type: 'inline',
mainClass: 'rb-gallery-popup rb-popup-center',
closeMarkup: '<button title="%title%" class="mfp-close mfp-button"><i class="rbi rbi-close"></i></button>',
closeOnBgClick: false,
removalDelay: 400,
showCloseBtn: true,
fixedBgPos: true,
fixedContentPos: true,
preloader: false,
gallery: {
enabled: true,
preload: [0, 2],
arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-button mfp-arrow-%dir%"><i class="rbi rbi-%dir%"></i></button>',
tCounter: '<span>%curr% / %total%</span>'
},
callbacks: {
open: function (){
let itemsArray=Object.values(self.galleriesData);
let targetIndex=itemsArray.findIndex(item=> item.key===slideIndex);
if(targetIndex!==-1){
$.magnificPopup.instance.goTo(targetIndex);
}},
change: function (){
let imgContainer=$('.gallery-popup-content');
let loader=imgContainer.find('.rb-loader');
let img=imgContainer.find('img');
loader.show();
if(!img.length){
loader.hide();
return;
}
let loaderTimeout=setTimeout(()=> {
loader.fadeIn(200);
}, 300);
img.on('load', function (){
clearTimeout(loaderTimeout);
loader.hide();
}).on('error', function (){
clearTimeout(loaderTimeout);
loader.hide();
});
},
afterClose: function (){
$.magnificPopup.instance.popupsCache={};},
buildControls: function (){
if(this.arrowLeft&&this.arrowRight){
this.contentContainer.find('.gallery-popup-nav').append(this.arrowLeft.add(this.arrowRight));
}}
},
inline: {
markup:
'<div class="gallery-popup-header light-scheme">' +
'<div class="mfp-counter"></div><div class="mfp-title h5"></div>' +
'<div class="popup-header-right"><div class="mfp-close"></div></div>' +
'</div><div class="gallery-popup-nav"></div>' +
'<div class="gallery-popup-content"><i class="rb-loader"></i>' +
'<div class="gallery-popup-image mfp-image"></div>' +
'<div class="gallery-popup-entry light-scheme">' +
'<div class="h4 mfp-excerpt"></div>' +
'<div class="description-text mfp-description"></div>' +
'</div>' +
'</div>'
},
items: Object.values(self.galleriesData)
});
return false;
});
};
Module.singleFeaturedLightbox=function (){
$('.featured-lightbox-trigger').on('click', function (e){
e.preventDefault();
e.stopPropagation();
const trigger=$(this);
const source='<img src="' + trigger.data('source') + '" alt="' + $(this).find('img').attr('alt') + '">';
const caption=trigger.data('caption');
const attribution=trigger.data('attribution');
$.magnificPopup.open({
mainClass: 'rb-popup-center popup-no-overflow',
closeOnBgClick: true,
removalDelay: 400,
showCloseBtn: true,
fixedBgPos: true,
fixedContentPos: true,
preloader: false,
closeMarkup: '<button title="%title%" class="mfp-close rb-popup-close"><i class="rbi rbi-close"></i></button>',
callbacks: {
afterClose: function (){
$.magnificPopup.instance.popupsCache={};},
},
inline: {
markup:
'<div class="featured-popup-image"><div class="mfp-source"></div>' +
'<div class="mfp-close rb-popup-close"></div></div>' +
'<div class="gallery-popup-entry light-scheme">' +
'<div class="h4 mfp-excerpt"></div>' +
'<div class="description-text mfp-description"></div>' +
'</div>'
},
items: {
source: source,
excerpt: caption,
description: attribution,
},
});
});
}
Module.paginationNextPrev=function (){
const self=this;
self._body.on('click', '.pagination-trigger', function (e){
e.preventDefault();
e.stopPropagation();
const paginationTrigger=$(this);
if(paginationTrigger.hasClass('is-disable')){
return;
}
const block=paginationTrigger.parents('.block-wrap');
const uuid=block.attr('id');
if(!self.ajaxData[uuid]){
self.ajaxData[uuid]=self.getBlockSettings(uuid);
}
if(self.ajaxData[uuid]&&self.ajaxData[uuid].processing){
return;
}
self.ajaxData[uuid].processing=true;
const type=paginationTrigger.data('type');
self.ajaxStartAnimation(block, 'replace');
self.ajaxReplaceLoad(block, uuid, type);
});
}
Module.ajaxReplaceLoad=function (block, uuid, type){
const self=this;
if(!self.ajaxData[uuid].paged){
self.ajaxData[uuid].paged=1;
}
if('prev'===type){
self.ajaxData[uuid].page_next=parseInt(self.ajaxData[uuid].paged) - 1;
}else{
self.ajaxData[uuid].page_next=parseInt(self.ajaxData[uuid].paged) + 1;
}
const cacheID=self.cacheData.getCacheID(uuid, self.ajaxData[uuid].page_next);
if(self.cacheData.exist(cacheID)){
const cache=self.cacheData.get(cacheID);
if('undefined'!==typeof cache.paged){
self.ajaxData[uuid].paged=cache.paged;
}
setTimeout(function (){
self.ajaxRenderHTML(block, uuid, cache, 'replace');
}, 200)
}else{
$.ajax({
type: 'GET',
url: self.ajaxURL,
data: {
action: 'rblivep',
data: self.ajaxData[uuid]
},
success: function (response){
response=JSON.parse(JSON.stringify(response));
if('undefined'!==typeof response.paged){
self.ajaxData[uuid].paged=response.paged;
}
self.cacheData.set(cacheID, response);
self.ajaxRenderHTML(block, uuid, response, 'replace');
}});
}}
Module.paginationLoadMore=function (){
const self=this;
self._body.on('click', '.loadmore-trigger', function (e){
e.preventDefault();
e.stopPropagation();
const paginationTrigger=$(this);
if(paginationTrigger.hasClass('is-disable')){
return;
}
const block=paginationTrigger.parents('.block-wrap');
const uuid=block.attr('id');
if(!self.ajaxData[uuid]){
self.ajaxData[uuid]=self.getBlockSettings(uuid);
}
if(self.ajaxData[uuid]&&self.ajaxData[uuid].processing){
return;
}
self.ajaxData[uuid].processing=true;
self.ajaxStartAnimation(block, 'append');
self.ajaxAppendLoad(block, uuid);
})
}
Module.paginationInfinite=function (){
const self=this;
const infiniteElements=$('.pagination-infinite');
if(infiniteElements.length > 0){
infiniteElements.each(function (){
const paginationTrigger=$(this);
if(!paginationTrigger.hasClass('is-disable')){
const block=paginationTrigger.parents('.block-wrap');
if((block.hasClass('is-hoz-scroll')||block.hasClass('is-mhoz-scroll')||block.hasClass('is-thoz-scroll'))&&window.outerWidth < 1025){
paginationTrigger.addClass('is-disable');
return;
}
const uuid=block.attr('id');
const wPointID='infinite' + uuid;
if(!self.ajaxData[uuid]){
self.ajaxData[uuid]=self.getBlockSettings(uuid);
}
const params={
element: paginationTrigger,
offset: '120%',
handler: function (direction){
if(self.ajaxData[uuid]&&self.ajaxData[uuid].processing){
return;
}
if('down'==direction){
self.ajaxData[uuid].processing=true;
self.ajaxStartAnimation(block, 'append');
self.ajaxAppendLoad(block, uuid);
}}
}
self.wPoint[wPointID]=new Waypoint(params);
}});
}}
Module.ajaxAppendLoad=function (block, uuid){
const self=this;
if(!self.ajaxData[uuid].paged){
self.ajaxData[uuid].paged=1;
}
if(self.ajaxData[uuid].paged >=self.ajaxData[uuid].page_max){
return;
}
self.ajaxData[uuid].page_next=parseInt(self.ajaxData[uuid].paged) + 1;
$.ajax({
type: 'GET',
url: self.ajaxURL,
data: {
action: 'rblivep',
data: self.ajaxData[uuid]
},
success: function (response){
response=JSON.parse(JSON.stringify(response));
if('undefined'!==typeof response.paged){
self.ajaxData[uuid].paged=response.paged;
}
if('undefined'!==typeof response.notice){
response.content=response.content + response.notice;
}
self.ajaxRenderHTML(block, uuid, response, 'append');
}});
}
Module.liveSearch=function (){
const liveSearch=$('.live-search-form');
if(liveSearch.length===0){
return;
}
const self=this;
liveSearch.each(function (){
const liveSearchEl=$(this);
const input=liveSearchEl.find('input[type="text"]');
const responseWrap=liveSearchEl.find('.live-search-response');
const animation=liveSearchEl.find('.live-search-animation');
const limit=liveSearchEl.data('limit');
const search=liveSearchEl.data('search');
const follow=liveSearchEl.data('follow');
const tax=liveSearchEl.data('tax');
const dsource=liveSearchEl.data('dsource');
const ptype=liveSearchEl.data('ptype');
input.attr('autocomplete', 'off');
input.on('focus', function (){
const param=$(this).val();
if(param&&!responseWrap.is(':empty')){
responseWrap.css('height', 'auto').fadeIn(200);
}});
const delay=(function (){
let timer=0;
return function (callback, ms){
clearTimeout(timer);
timer=setTimeout(callback, ms);
};})();
input.keyup(function (){
const param=$(this).val();
delay(function (){
if(param){
liveSearchEl.addClass('search-loading');
setTimeout(function (){
animation.fadeIn(100);
}, 120);
$.ajax({
type: 'GET',
url: self.ajaxURL,
data: {
action: 'rbsearch',
s: param,
limit: limit,
search: search,
follow: follow,
tax: tax,
dsource: dsource,
ptype: ptype,
},
success: function (data){
data=$.parseJSON(JSON.stringify(data));
animation.fadeOut(200);
setTimeout(function (){
liveSearchEl.removeClass('search-loading');
}, 200);
responseWrap.hide().empty().css('height', responseWrap.height());
responseWrap.html(data);
if('category'===search&&follow&&typeof FOXIZ_PERSONALIZE!=='undefined'){
FOXIZ_PERSONALIZE.syncLayoutCategories();
}
responseWrap.css('height', 'auto').fadeIn(200);
}});
}else{
responseWrap.fadeOut(200, function (){
responseWrap.empty().css('height', 'auto');
});
}}, 300);
})
});
}
Module.personalizeBlocks=function (){
const self=this;
const elements=$('.is-ajax-block');
if(elements.length > 0){
const blockRequests=elements.map(function (){
const block=$(this);
const uuid=block.attr('id');
if(!self.ajaxData[uuid]){
self.ajaxData[uuid]=self.getBlockSettings(uuid);
}
if(self.ajaxData[uuid].content_source &&
self.ajaxData[uuid].content_source==='recommended' &&
typeof foxizQueriedIDs!=='undefined'&&foxizQueriedIDs.data
){
self.ajaxData[uuid].post_not_in=foxizQueriedIDs.data;
}
self.ajaxData[uuid].uID=self.getStorage('RBUUID', '0');
return $.ajax({
type: 'GET',
url: self.ajaxURL,
data: {
action: 'rbpersonalizeb',
data: self.ajaxData[uuid]
}});
});
Promise.all(blockRequests).then(responses=> {
responses.forEach((response, index)=> {
const block=$(elements[index]);
block.html(response).fadeIn(200);
block.dequeue();
});
self.reloadBlockFunc();
});
}};
Module.personalizeCategories=function (){
const self=this;
const elements=$('.is-ajax-categories');
if(elements.length > 0){
const categoryRequests=elements.map(function (){
const block=$(this);
const uuid=block.attr('id');
if(!self.ajaxData[uuid]){
self.ajaxData[uuid]=self.getBlockSettings(uuid);
}
return $.ajax({
type: 'GET',
url: self.ajaxURL,
data: {
action: 'rbpersonalizecat',
data: self.ajaxData[uuid]
}});
});
Promise.all(categoryRequests).then(responses=> {
responses.forEach((response, index)=> {
const block=$(elements[index]);
block.html(response).fadeIn(200);
block.dequeue();
});
if(typeof FOXIZ_PERSONALIZE!=='undefined'){
FOXIZ_PERSONALIZE.syncLayoutCategories();
}
self.reloadBlockFunc();
});
}};
Module.readingCollect=function (){
const self=this;
if(self.themeSettings.yesReadingHis===undefined){
return;
}
$.ajax({
type: 'GET',
url: self.ajaxURL,
data: {
action: 'rbcollect',
id: self.themeSettings.yesReadingHis
}});
};
Module.newsNotification=function (){
const notificationWrapper=$('.rb-notification');
if(notificationWrapper.length < 1){
return false;
}
const self=this;
const storageKey=this.personalizeUID + '-notification';
const dot=$('.notification-info');
let reload=notificationWrapper.data('interval');
if(!reload||isNaN(reload)||reload <=0){
reload=15;
}
function countNewPosts(currentIds, viewedIds){
if(!currentIds) return 0;
if(!viewedIds) return currentIds.split(',').length;
const current=currentIds.split(',');
const viewed=viewedIds.split(',');
let count=0;
for (let i=0; i < current.length; i++){
if(viewed.indexOf(current[i])===-1){
count++;
}}
return count;
}
const cached=self.getStorage(storageKey);
if(cached&&cached.content){
notificationWrapper.append(cached.content);
const newCount=countNewPosts(cached.ids, cached.viewedIds);
if(newCount > 0){
dot.append(newCount);
dot.css('opacity', 1);
}}
$('.notification-trigger').on('click', function (){
dot.css('opacity', 0).empty();
const current=self.getStorage(storageKey);
if(current&&current.ids){
current.viewedIds=current.ids;
self.setStorage(storageKey, current);
}});
const isExpired = !cached||!cached.ttl||Date.now() > cached.ttl;
if(isExpired){
$.ajax({
type: 'GET',
url: self.ajaxURL,
data: {action: 'rbnotification'},
success: function (response){
response=$.parseJSON(JSON.stringify(response));
const newIds=response.ids||'';
const oldIds=cached ? (cached.ids||''):'';
const viewedIds=cached ? (cached.viewedIds||''):'';
self.setStorage(storageKey, {
content: response.content,
count: response.count,
ids: newIds,
viewedIds: viewedIds,
ttl: Date.now() + reload * 60000
});
if(!cached||newIds!==oldIds){
notificationWrapper.empty().append(response.content);
dot.empty();
const newCount=countNewPosts(newIds, viewedIds);
if(newCount > 0){
dot.append(newCount);
dot.css('opacity', 1);
}}
}});
}};
Module.cacheData={
data: {},
get: function (id){
return this.data[id];
},
set: function (id, data){
this.remove(id);
this.data[id]=data;
},
remove: function (id){
delete this.data[id];
},
getCacheID: function (blockID, currentPage){
return JSON.stringify('RB_' + blockID + '_' + currentPage);
},
exist: function (id){
return this.data.hasOwnProperty(id)&&this.data[id]!==null;
}}
Module.ajaxStartAnimation=function (block, action){
const inner=block.find('.block-inner');
block.find('.pagination-trigger').addClass('is-disable');
inner.stop();
if('replace'===action){
inner.css('min-height', inner.outerHeight());
inner.fadeTo('200', 0.05);
inner.after('<i class="rb-loader loader-absolute"></i>');
}else{
block.find('.loadmore-trigger').addClass('loading');
block.find('.rb-loader').css({'display': 'block'}).delay(200).animate({opacity: 1}, 200);
}}
Module.ajaxRenderHTML=function (block, uuid, response, action){
const self=this;
block.delay(50).queue(function (){
const uuid=block.attr('id');
const inner=block.find('.block-inner');
block.find('.pagination-trigger').removeClass('is-disable');
inner.stop();
if('replace'===action){
inner.html(response.content);
block.find('.rb-loader').animate({opacity: 0}, 200, function (){
$(this).remove();
})
inner.css('min-height', '');
inner.fadeTo(200, 1);
}else{
const content=$(response.content);
inner.append(content);
content.addClass('is-invisible');
content.addClass('opacity-animate');
block.find('.rb-loader').animate({opacity: 0}, 200, function (){
$(this).css({'display': 'none'});
});
setTimeout(function (){
content.removeClass('is-invisible');
}, 200);
block.find('.loadmore-trigger').removeClass('loading');
}
self.ajaxTriggerState(block, uuid);
self.ajaxData[uuid].processing=false;
block.dequeue();
self.reloadBlockFunc();
});
}
Module.ajaxTriggerState=function (block, uuid){
const self=this;
block.find('.pagination-trigger').removeClass('is-disable');
if(self.ajaxData[uuid].paged < 2){
block.find('[data-type="prev"]').addClass('is-disable');
}else if(self.ajaxData[uuid].paged >=self.ajaxData[uuid].page_max){
block.find('[data-type="next"]').addClass('is-disable');
block.find('.loadmore-trigger').addClass('is-disable').hide();
block.find('.pagination-infinite').addClass('is-disable').hide();
}}
Module.getBlockSettings=function (uuid){
const settings=typeof window[uuid]!=='undefined' ? window[uuid]:undefined;
return this.cleanNull(settings);
}
Module.cleanNull=function (data){
if(typeof data==='string'){
return data;
}
if(data&&typeof data==='object'){
Object.keys(data).forEach(key=> {
if(data[key]===''||data[key]===null){
delete data[key];
}});
}
return data;
};
Module.singleInfiniteLoadNext=function (){
const infiniteWrapper=$('#single-post-infinite');
const self=this;
if(!infiniteWrapper.length||self.disabledLoadNext()){
return;
}
self.singleLoadNextCounter=1;
self.singleLoadNextLimit=self.themeSettings?.singleLoadNextLimit ? parseInt(self.themeSettings.singleLoadNextLimit, 10):20;
const infiniteLoadPoint=$('#single-infinite-point');
const animationIcon=infiniteLoadPoint.find('.rb-loader');
const rootURL=new URL(window.location.href);
const rootGetParams=rootURL.searchParams;
const loadNextParams={
element: infiniteLoadPoint,
offset: '125%',
handler: function (direction){
if(self.ajaxData.singleProcessing||direction==='up'||self.singleLoadNextCounter > self.singleLoadNextLimit){
return;
}
const nextPostURL=new URL(infiniteWrapper.data('nextposturl'));
nextPostURL.searchParams.set('rbsnp', '1');
if(rootGetParams){
rootGetParams.forEach((value, key)=> {
if(key!=='rbsnp'&&'p'!==key){
nextPostURL.searchParams.set(key, value);
}});
}
self.ajaxData.singleProcessing=true;
animationIcon.css('display', 'block').animate({opacity: 1}, 200);
$.ajax({
type: 'GET',
url: nextPostURL.toString(),
dataType: 'html',
success: function (response){
response=$('<div id="temp-dom"></div>').append($.parseHTML(response)).find('.single-post-outer');
const nextPostURL=response.data('nextposturl');
if(nextPostURL){
infiniteWrapper.data('nextposturl', nextPostURL);
}else{
infiniteWrapper.removeAttr('id');
infiniteLoadPoint.remove();
}
animationIcon.animate({opacity: 0}, 200).delay(200).css('display', 'none');
infiniteWrapper.append(response);
self.ajaxData.singleProcessing=false;
self.singleLoadNextCounter++;
setTimeout(function (){
self.reInitAll();
if(typeof FOXIZ_CORE_SCRIPT!=='undefined'){
FOXIZ_CORE_SCRIPT.loadGoogleAds(response);
FOXIZ_CORE_SCRIPT.loadInstagram(response);
FOXIZ_CORE_SCRIPT.loadTwttr();
}}, 1);
}});
}};
self.wPoint.ajaxSingleNextPosts=new Waypoint(loadNextParams);
};
Module.singleScrollRefresh=function (){
const infiniteWrapper=$('#single-post-infinite');
if(!infiniteWrapper.length){
return;
}
const self=this;
self.articleData=[];
const articleOuter=infiniteWrapper.find('.single-post-outer');
if(articleOuter.length > 0){
self.inviewPostID=articleOuter.eq(0).data('postid');
articleOuter.each(function (){
const article=$(this);
const itemData={
postID: article.data('postid'),
postURL: article.data('postlink'),
postTitle: article.find('h1.s-title').text(),
shareList: article.find('.sticky-share-list-buffer').html(),
top: article.offset().top,
bottom: article.offset().top + article.outerHeight(true)
};
if(self.readIndicator.length > 0){
const content=article.find('.rbct').eq(0);
itemData.indicatorTop=content.offset().top;
itemData.indicatorHeight=content.outerHeight(true) - self._window.height();
}
self.articleData.push(itemData);
});
const onScroll=()=> {
self.animationFrame(self.scrollToUpdateArticle.bind(self));
};
if(window.addEventListener){
window.addEventListener('scroll', onScroll, false);
}}
}
Module.scrollToUpdateArticle=function (){
const self=this;
const scroll=self._window.scrollTop();
self.articleData.every(article=> {
if(scroll > (article.top + 5)&&scroll < (article.bottom - 5)){
if(article.indicatorTop){
self.readIndicatorPercent=Math.min(((scroll - article.indicatorTop) / article.indicatorHeight) * 100, 100);
if(self.readIndicatorPercent <=100){
self.readIndicator.css('width', `${self.readIndicatorPercent}%`);
}}
if(article.postID!==self.inviewPostID){
self.inviewPostID=article.postID;
if(article.postURL){
history.replaceState(null, null, article.postURL);
}
document.title=article.postTitle;
$('.single-post-outer').removeClass('activated');
$('[data-postid="' + article.postID + '"]').addClass('activated');
$('#s-title-sticky .sticky-title').hide().html(article.postTitle).fadeIn(300);
$('#s-title-sticky .sticky-share-list').html(article.shareList);
self._body.find('.floating-video').removeClass('floating-activated');
if(typeof FOXIZ_CORE_SCRIPT!=='undefined'){
FOXIZ_CORE_SCRIPT.updateGA(article);
}}
return false;
}
return true;
});
}
Module.crwDetect=function (){
const botPatterns=[
/alexa|altavista|ask jeeves|attentio|baiduspider|bingbot|chtml generic|crawler|fastmobilecrawl|feedfetcher-google|firefly|froogle|gigabot|googlebot|googlebot-mobile|heritrix|httrack|ia_archiver|irlbot|iescholar|infoseek|jumpbot|linkcheck|lycos|mediapartners|mediobot|motionbot|msnbot|mshots|openbot|pss-webkit-request|pythumbnail|scooter|slurp|snapbot|spider|taptubot|technoratisnoop|teoma|twiceler|yahooseeker|yahooysmcm|yammybot|ahrefsbot|pingdom.com_bot|kraken|yandexbot|twitterbot|tweetmemebot|openhosebot|queryseekerspider|linkdexbot|grokkit-crawler|livelapbot|germcrawler|domaintunocrawler|grapeshotcrawler|cloudflare-alwaysonline/i
];
const userAgent=navigator.userAgent;
return botPatterns.some(pattern=> pattern.test(userAgent));
};
Module.disabledLoadNext=function (){
if(this.themeSettings.crwLoadNext){
return false;
}
return this.crwDetect();
}
Module.productQuantity=function (){
this._document.on('click', '.quantity .quantity-btn', function (e){
e.preventDefault();
e.stopPropagation();
const button=$(this);
const input=button.parent().find('input');
let step=1;
let min=1;
let max=9999;
let value_old=parseInt(input.val());
let value_new=parseInt(input.val());
if(input.attr('step')){
step=parseInt(input.attr('step'));
}
if(input.attr('min')){
min=parseInt(input.attr('min'));
}
if(input.attr('max')){
max=parseInt(input.attr('max'));
}
if(button.hasClass('up')){
if(value_old < max){
value_new=value_old + step;
}else{
value_new=1;
}}else if(button.hasClass('down')){
if(value_old > min){
value_new=value_old - step;
}else{
value_new=0;
}}
if(!input.attr('disabled')){
input.val(value_new).change();
}});
}
Module.cartNotification=function (){
const self=this;
const element=$('#add-cart-popup');
self._body.on('added_to_cart', function (){
element.fadeIn(200);
self.cartNotificationTimeOut=setTimeout(function (){
element.fadeOut(200);
}, 5000);
self.hoveringNotification(element);
});
}
Module.hoveringNotification=function (element){
const self=this;
element.on('mouseenter', function (){
clearTimeout(self.cartNotificationTimeOut);
});
element.on('mouseleave', function (){
setTimeout(function (){
element.fadeOut(200);
}, 1500);
});
}
Module.likeToggle=function (){
const self=this;
let reaction='';
self._body.on('click', '.like-trigger, .dislike-trigger', function (e){
e.preventDefault();
e.stopPropagation();
const target=$(this);
const wrap=target.parent('[data-like]');
const pid=wrap.data('like');
if(!pid||self.isProgress) return;
self.isProgress=true;
const storageKey=self.getLikeKey(pid);
const isLike=target.hasClass('like-trigger');
const isDislike=target.hasClass('dislike-trigger');
const sibEl=target.siblings();
const likeCountEl=wrap.find('.like-count');
const dislikeCountEl=wrap.find('.dislike-count');
let likeCountText=likeCountEl.text();
let dislikeCountText=dislikeCountEl.text();
if(isLike){
if(!target.hasClass('triggered')){
reaction='like';
if(!/[kKmM]/.test(likeCountText)){
likeCountText=parseInt(likeCountText);
if(isNaN(likeCountText)){
likeCountText=0;
}
likeCountEl.text(likeCountText + 1);
}
target.addClass('triggered');
if(sibEl.hasClass('triggered')){
sibEl.removeClass('triggered');
if(!/[kKmM]/.test(dislikeCountText)){
dislikeCountText=parseInt(dislikeCountText) - 1;
if(isNaN(dislikeCountText)||dislikeCountText < 1){
dislikeCountText='';
}
dislikeCountEl.text(dislikeCountText);
}}
self.setStorage(storageKey, 'like');
}else{
reaction='rmlike';
if(!/[kKmM]/.test(likeCountText)){
likeCountText=parseInt(likeCountText) - 1;
if(isNaN(likeCountText)||likeCountText < 1){
likeCountText='';
}
likeCountEl.text(likeCountText);
}
target.removeClass('triggered');
self.deleteStorage(storageKey);
}}else if(isDislike){
if(!target.hasClass('triggered')){
reaction='dislike';
if(!/[kKmM]/.test(dislikeCountText)){
dislikeCountText=parseInt(dislikeCountText);
if(isNaN(dislikeCountText)){
dislikeCountText=0;
}
dislikeCountEl.text(dislikeCountText + 1);
}
target.addClass('triggered');
if(sibEl.hasClass('triggered')){
sibEl.removeClass('triggered');
if(!/[kKmM]/.test(likeCountText)){
likeCountText=parseInt(likeCountText) - 1;
if(isNaN(likeCountText)||likeCountText < 1){
likeCountText='';
}
likeCountEl.text(likeCountText);
}}
self.setStorage(storageKey, 'dislike');
}else{
reaction='rmdislike';
if(!/[kKmM]/.test(dislikeCountText)){
likeCountText=parseInt(likeCountText) - 1;
if(isNaN(likeCountText)||likeCountText < 1){
likeCountText='';
}
dislikeCountEl.text(likeCountText);
}
target.removeClass('triggered');
self.deleteStorage(storageKey);
}}
$.ajax({
type: 'GET',
url: self.ajaxURL,
data: {
uuid: self.personalizeUID,
action: 'rbvoting',
value: reaction,
pid: pid,
},
complete: ()=> {
self.isProgress=false;
}})
})
}
Module.syncLayoutLike=function (){
this.isProgress=true;
const likeElements=document.querySelectorAll('[data-like]:not(.loaded)');
const jsCount=this._body.hasClass('is-jscount');
let count, countEl;
for (const el of likeElements){
el.classList.add('loaded');
const key=this.getLikeKey(el.getAttribute('data-like'));
const triggered=this.getStorage(key);
if(!triggered) continue;
const likeEl=el.querySelector('.el-like');
const dislikeEl=el.querySelector('.el-dislike');
if(!likeEl||!dislikeEl) continue;
if(triggered==='like'){
likeEl.classList.add('triggered');
countEl=jsCount ? likeEl.querySelector('.like-count'):null;
if(countEl){
count=parseInt(countEl.textContent.trim())||0;
countEl.textContent=count + 1;
}}else if(triggered==='dislike'){
dislikeEl.classList.add('triggered');
countEl=jsCount ? dislikeEl.querySelector('.dislike-count'):null;
if(countEl){
count=parseInt(countEl.textContent.trim())||0;
countEl.textContent=count + 1;
}}
}
this.isProgress=false;
};
Module.getLikeKey=function (id){
return this.personalizeUID + '-like-' + id;
}
Module.liveBlog=function (){
const self=this;
const liveEntry=$('.rb-live-entry');
if(liveEntry.length===0){
return false;
}
let intervalId;
let delayTimeoutId;
const interval=Math.min(1800, Math.max(15, this.themeSettings.liveInterval||1800));
const liveSwitcher=$('#live-interval-switcher');
const storedSetting=this.getStorage('liveIntervalCheckbox');
const startInterval=()=> {
clearInterval(intervalId);
intervalId=setInterval(()=> this.updateLiveBlog(liveEntry), interval * 1000);
};
const stopAll=()=> {
clearInterval(intervalId);
clearTimeout(delayTimeoutId);
};
const handleToggle=()=> {
stopAll();
if(liveSwitcher.prop('checked')){
delayTimeoutId=setTimeout(()=> {
this.updateLiveBlog(liveEntry);
startInterval();
}, 3000);
self.setStorage('liveIntervalCheckbox', 'yes');
}else{
self.setStorage('liveIntervalCheckbox', 'no');
}};
if(storedSetting!==null){
liveSwitcher.prop('checked', storedSetting==='yes');
}else{
self.setStorage('liveIntervalCheckbox', 'yes');
}
if(liveSwitcher.prop('checked')){
startInterval();
}
liveSwitcher.on('change', handleToggle);
};
Module.updateLiveBlog=function (liveEntry){
const self=this;
const liveURL=new URL(window.location.href);
liveURL.searchParams.set('rblive', '1');
$.ajax({
type: 'GET',
url: liveURL.toString(),
dataType: 'html',
success: function (response){
response=$('<div id="temp-dom"></div>').append($.parseHTML(response)).find('#rb-live-content');
liveEntry.html(response.html());
const liveCountElement=liveEntry.prev().find('.live-count');
if(liveCountElement.length){
liveCountElement.text(response.data('total'));
}
setTimeout(function (){
self.reInitAll();
if(typeof FOXIZ_CORE_SCRIPT!=='undefined'){
FOXIZ_CORE_SCRIPT.loadGoogleAds(response);
FOXIZ_CORE_SCRIPT.loadInstagram(response);
FOXIZ_CORE_SCRIPT.loadTwttr();
}}, 1);
}});
}
Module.accordion=function (){
$('.gb-accordion').each(function (){
const accordion=$(this);
if(accordion.hasClass('yesLoaded')) return;
accordion.addClass('yesLoaded');
const accordionItems=accordion.find('.gb-accordion-item');
if(accordion.hasClass('yes-open')){
accordionItems.first().addClass('active').find('.accordion-item-content').css('display', 'block');
}
accordion.on('click', '.accordion-item-header', function (e){
e.preventDefault();
const header=$(this);
const item=header.closest('.gb-accordion-item');
const content=item.find('.accordion-item-content');
if(item.hasClass('active')){
item.removeClass('active');
content.stop().slideUp(200);
}else{
const activeItem=accordionItems.filter('.active');
activeItem.removeClass('active').find('.accordion-item-content').stop().slideUp(200);
item.addClass('active');
content.stop().slideDown(200);
}});
});
};
Module.resIframeClassic=function (){
if(!document.body.classList.contains('res-iframe-classic')) return
const iframes=document.querySelectorAll('.rbct iframe');
iframes.forEach(iframe=> {
const parent=iframe.parentElement;
const grandParent=parent.parentElement;
const greatGrandParent=grandParent.parentElement;
if([parent, grandParent, greatGrandParent].some(element=> {
const classNames=Array.from(element.classList);
return classNames.some(className=> className.indexOf('wp-block')!==-1);
})) return;
if(!iframe.parentElement.classList.contains('rb-video-ires')){
if(iframe.src.includes('youtube.com')||iframe.src.includes('youtu.be')||iframe.src.includes('vimeo.com')||iframe.src.includes('dailymotion.com')){
iframe.parentElement.classList.add('rb-video-ires');
}}
});
}
Module.taxBasedAccordion=function (){
const self=this;
$('.block-tax-accordion').each(function (){
const accordion=$(this);
if(accordion.hasClass('is-loaded')){
return;
}
accordion.addClass('is-loaded');
const accordionItems=accordion.find('.tax-accordion-item');
const lastOpenedTab=self.getStorage(accordion.attr('id') + '_lastOpenedTab', null);
if(lastOpenedTab){
const tabToOpen=accordion.find('[data-tab="' + lastOpenedTab + '"] .tax-accordion-sub');
if(tabToOpen.length!==0){
tabToOpen.show();
}}
accordionItems.each(function (){
const item=$(this);
const trigger=item.find('.tax-accordion-trigger');
const subMenu=item.find('.tax-accordion-sub');
trigger.click(function (){
if(!subMenu.is(':visible')){
accordion.find('.tax-accordion-sub').not(subMenu).slideUp();
}
subMenu.slideToggle(function (){
if(subMenu.is(':visible')){
self.setStorage(accordion.attr('id') + '_lastOpenedTab', item.attr('data-tab'));
}else{
self.deleteStorage(accordion.attr('id') + '_lastOpenedTab');
}});
});
});
});
};
Module.sequentialGalleryDisplay=function (){
const galleries=Array.from(document.querySelectorAll('.gallery-animated'));
galleries.forEach(gallery=> {
const images=Array.from(gallery.querySelectorAll('.e-gallery-item'));
new Waypoint({
element: gallery,
handler: function (direction){
if(direction==='down'){
images.forEach((image, index)=> {
requestAnimationFrame(()=> {
setTimeout(()=> {
image.classList.add('gallery-visible');
}, index * 120);
});
});
this.destroy();
}},
offset: '90%'
});
});
};
Module.reloadCaptchaPopups=function (delay=50){
setTimeout(()=> {
const $content=$($.magnificPopup?.instance?.content||[]);
if(!$content.length) return;
const removeDuplicateCaptchas=form=> {
const seen=new Set();
$(form)
.find('.g-recaptcha, .h-captcha, .cf-turnstile, .turnstile-widget, .frc-captcha, [data-arkose-public-key], .arkose-enforcement, .geetest_holder, .geetest_panel')
.each(function (){
const cls=this.className;
const type=['g-recaptcha', 'h-captcha', 'cf-turnstile', 'turnstile-widget', 'frc-captcha', 'arkose', 'geetest']
.find(t=> cls.includes(t)||$(this).data('arkose-public-key')||$(this).hasClass('arkose-enforcement'));
if(!type) return;
const key=`${type}`;
if(seen.has(key)){
$(this).remove();
}else{
seen.add(key);
}});
};
try {
$content.find('form').each(function (){
removeDuplicateCaptchas(this);
});
if(typeof grecaptcha!=='undefined'&&grecaptcha?.reset){
$content.find('.g-recaptcha').each(function (){
const wid=this.dataset.widgetId;
if(wid){
try { grecaptcha.reset(Number(wid)); } catch {}}
});
}
if(typeof turnstile!=='undefined'&&turnstile?.reset){
$content.find('.cf-turnstile, .turnstile-widget').each(function (){
const iframe=this.querySelector('iframe');
const wid=iframe?.dataset?.wid;
if(wid){
try { turnstile.reset(wid); } catch {}}
});
}
if(typeof hcaptcha!=='undefined'&&hcaptcha?.reset){
$content.find('.h-captcha').each(function (){
const wid=this.dataset.widgetId;
if(wid){
try { hcaptcha.reset(Number(wid)); } catch {}}
});
}
if(typeof friendlycaptcha!=='undefined'&&friendlycaptcha?.widget){
$content.find('.frc-captcha').each(function (){
const stored=$(this).data('frc-widget');
if(stored?.reset){
try { stored.reset(); } catch {}}
});
}
if(window?.arkose?.reset||typeof ECArkose!=='undefined'){
const $arkoseEls=$content.find('[data-arkose-public-key], .arkose-enforcement');
if($arkoseEls.length){
try {
window?.arkose?.reset?.();
ECArkose?.reset?.();
} catch {}}
}
if(typeof initGeetest!=='undefined'||typeof GeetInit!=='undefined'){
$content.find('.geetest_holder, .geetest_panel').each(function (){
const inst=this.geetestInstance;
if(inst?.reset){
try { inst.reset(); } catch {}}
});
}} catch (err){}}, delay);
};
return Module;
}(FOXIZ_MAIN_SCRIPT||{}, jQuery)
)
jQuery(document).ready(function ($){
FOXIZ_MAIN_SCRIPT.init();
});
jQuery(window).on('elementor/frontend/init', function (){
if(typeof elementorFrontend!=='undefined'&&typeof elementorFrontend.isEditMode==='function'&&elementorFrontend.isEditMode()){
FOXIZ_MAIN_SCRIPT.isElementorEditor=true;
FOXIZ_MAIN_SCRIPT.editorDarkModeInit=false;
elementorFrontend.hooks.addAction('frontend/element_ready/widget', FOXIZ_MAIN_SCRIPT.initElementor);
}});
(()=>{"use strict";var e,r,_,t,a,n={},i={};function __webpack_require__(e){var r=i[e];if(void 0!==r)return r.exports;var _=i[e]={exports:{}};return n[e].call(_.exports,_,_.exports,__webpack_require__),_.exports}__webpack_require__.m=n,e=[],__webpack_require__.O=(r,_,t,a)=>{if(!_){var n=1/0;for(b=0;b<e.length;b++){for(var[_,t,a]=e[b],i=!0,c=0;c<_.length;c++)(!1&a||n>=a)&&Object.keys(__webpack_require__.O).every(e=>__webpack_require__.O[e](_[c]))?_.splice(c--,1):(i=!1,a<n&&(n=a));if(i){e.splice(b--,1);var o=t();void 0!==o&&(r=o)}}return r}a=a||0;for(var b=e.length;b>0&&e[b-1][2]>a;b--)e[b]=e[b-1];e[b]=[_,t,a]},_=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var a=Object.create(null);__webpack_require__.r(a);var n={};r=r||[null,_({}),_([]),_(_)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~r.indexOf(i);i=_(i))Object.getOwnPropertyNames(i).forEach(r=>n[r]=()=>e[r]);return n.default=()=>e,__webpack_require__.d(a,n),a},__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((r,_)=>(__webpack_require__.f[_](e,r),r),[])),__webpack_require__.u=e=>786===e?"397f2d183c19202777d6.bundle.min.js":216===e?"lightbox.570c05c5a283cfb6b223.bundle.min.js":30===e?"text-path.a67c1f3a78d208bc7e1b.bundle.min.js":131===e?"accordion.8b0db5058afeb74622f5.bundle.min.js":707===e?"alert.42cc1d522ef5c60bf874.bundle.min.js":457===e?"counter.12335f45aaa79d244f24.bundle.min.js":234===e?"progress.0ea083b809812c0e3aa1.bundle.min.js":575===e?"tabs.18344b05d8d1ea0702bc.bundle.min.js":775===e?"toggle.2a177a3ef4785d3dfbc5.bundle.min.js":180===e?"video.86d44e46e43d0807e708.bundle.min.js":177===e?"image-carousel.6167d20b95b33386757b.bundle.min.js":212===e?"text-editor.45609661e409413f1cef.bundle.min.js":211===e?"wp-audio.c9624cb6e5dc9de86abd.bundle.min.js":215===e?"nested-tabs.a2401356d329f179475e.bundle.min.js":915===e?"nested-accordion.294d40984397351fd0f5.bundle.min.js":1===e?"contact-buttons.e98d0220ce8c38404e7e.bundle.min.js":336===e?"floating-bars.740d06d17cea5cebdb61.bundle.min.js":557===e?"shared-frontend-handlers.03caa53373b56d3bab67.bundle.min.js":396===e?"shared-editor-handlers.cacdcbed391abf4b48b0.bundle.min.js":768===e?"container-editor-handlers.a2e8e48d28c5544fb183.bundle.min.js":77===e?"section-frontend-handlers.d85ab872da118940910d.bundle.min.js":220===e?"section-editor-handlers.53ffedef32043348b99b.bundle.min.js":304===e?"nested-title-keyboard-handler.2a67d3cc630e11815acc.bundle.min.js":void 0,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},a="elementorFrontend:",__webpack_require__.l=(e,r,_,n)=>{if(t[e])t[e].push(r);else{var i,c;if(void 0!==_)for(var o=document.getElementsByTagName("script"),b=0;b<o.length;b++){var u=o[b];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==a+_){i=u;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",a+_),i.src=e),t[e]=[r];var onScriptComplete=(r,_)=>{i.onerror=i.onload=null,clearTimeout(d);var a=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(_)),r)return r(_)},d=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=onScriptComplete.bind(null,i.onerror),i.onload=onScriptComplete.bind(null,i.onload),c&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var r=__webpack_require__.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var _=r.getElementsByTagName("script");if(_.length)for(var t=_.length-1;t>-1&&(!e||!/^http(s?):/.test(e));)e=_[t--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={76:0};__webpack_require__.f.j=(r,_)=>{var t=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==t)if(t)_.push(t[2]);else if(76!=r){var a=new Promise((_,a)=>t=e[r]=[_,a]);_.push(t[2]=a);var n=__webpack_require__.p+__webpack_require__.u(r),i=new Error;__webpack_require__.l(n,_=>{if(__webpack_require__.o(e,r)&&(0!==(t=e[r])&&(e[r]=void 0),t)){var a=_&&("load"===_.type?"missing":_.type),n=_&&_.target&&_.target.src;i.message="Loading chunk "+r+" failed.\n("+a+": "+n+")",i.name="ChunkLoadError",i.type=a,i.request=n,t[1](i)}},"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=r=>0===e[r];var webpackJsonpCallback=(r,_)=>{var t,a,[n,i,c]=_,o=0;if(n.some(r=>0!==e[r])){for(t in i)__webpack_require__.o(i,t)&&(__webpack_require__.m[t]=i[t]);if(c)var b=c(__webpack_require__)}for(r&&r(_);o<n.length;o++)a=n[o],__webpack_require__.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return __webpack_require__.O(b)},r=self.webpackChunkelementorFrontend=self.webpackChunkelementorFrontend||[];r.forEach(webpackJsonpCallback.bind(null,0)),r.push=webpackJsonpCallback.bind(null,r.push.bind(r))})()})();
(self.webpackChunkelementorFrontend=self.webpackChunkelementorFrontend||[]).push([[941],{1:(e,t,r)=>{"use strict";var n=r(5578),i=r(7255),s=r(5755),o=r(1866),a=r(6029),c=r(5022),l=n.Symbol,u=i("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return s(u,e)||(u[e]=a&&s(l,e)?l[e]:p("Symbol."+e)),u[e]}},41:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},169:(e,t,r)=>{"use strict";var n=r(4762),i=r(8473),s=r(1483),o=r(5755),a=r(382),c=r(2048).CONFIGURABLE,l=r(7268),u=r(4483),p=u.enforce,d=u.get,h=String,f=Object.defineProperty,g=n("".slice),m=n("".replace),v=n([].join),y=a&&!i(function(){return 8!==f(function(){},"length",{value:8}).length}),w=String(String).split("String"),b=e.exports=function(e,t,r){"Symbol("===g(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||c&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&o(r,"arity")&&e.length!==r.arity&&f(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=p(e);return o(n,"source")||(n.source=v(w,"string"==typeof t?t:"")),e};Function.prototype.toString=b(function toString(){return s(this)&&d(this).source||l(this)},"toString")},274:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},348:(e,t,r)=>{"use strict";var n=r(1807),i=r(1483),s=r(1704),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!s(a=n(r,e)))return a;if(i(r=e.valueOf)&&!s(a=n(r,e)))return a;if("string"!==t&&i(r=e.toString)&&!s(a=n(r,e)))return a;throw new o("Can't convert object to primitive value")}},382:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},641:(e,t,r)=>{"use strict";r(5724),r(4846),r(7458),r(9655);const Module=function(){const e=jQuery,t=arguments,r=this,n={};let i;this.getItems=function(e,t){if(t){const r=t.split("."),n=r.splice(0,1);if(!r.length)return e[n];if(!e[n])return;return this.getItems(e[n],r.join("."))}return e},this.getSettings=function(e){return this.getItems(i,e)},this.setSettings=function(t,n,s){if(s||(s=i),"object"==typeof t)return e.extend(s,t),r;const o=t.split("."),a=o.splice(0,1);return o.length?(s[a]||(s[a]={}),r.setSettings(o.join("."),n,s[a])):(s[a]=n,r)},this.getErrorMessage=function(e,t){let r;if("forceMethodImplementation"===e)r=`The method '${t}' must to be implemented in the inheritor child.`;else r="An error occurs";return r},this.forceMethodImplementation=function(e){throw new Error(this.getErrorMessage("forceMethodImplementation",e))},this.on=function(t,i){if("object"==typeof t)return e.each(t,function(e){r.on(e,this)}),r;return t.split(" ").forEach(function(e){n[e]||(n[e]=[]),n[e].push(i)}),r},this.off=function(e,t){if(!n[e])return r;if(!t)return delete n[e],r;const i=n[e].indexOf(t);return-1!==i&&(delete n[e][i],n[e]=n[e].filter(e=>e)),r},this.trigger=function(t){const i="on"+t[0].toUpperCase()+t.slice(1),s=Array.prototype.slice.call(arguments,1);r[i]&&r[i].apply(r,s);const o=n[t];return o?(e.each(o,function(e,t){t.apply(r,s)}),r):r},r.__construct.apply(r,t),e.each(r,function(e){const t=r[e];"function"==typeof t&&(r[e]=function(){return t.apply(r,arguments)})}),function(){i=r.getDefaultSettings();const n=t[0];n&&e.extend(!0,i,n)}(),r.trigger("init")};Module.prototype.__construct=function(){},Module.prototype.getDefaultSettings=function(){return{}},Module.prototype.getConstructorID=function(){return this.constructor.name},Module.extend=function(e){const t=jQuery,r=this,child=function(){return r.apply(this,arguments)};return t.extend(child,r),(child.prototype=Object.create(t.extend({},r.prototype,e))).constructor=child,child.__super__=r.prototype,child},e.exports=Module},670:(e,t,r)=>{"use strict";var n=r(382),i=r(5835),s=r(7738);e.exports=function(e,t,r){n?i.f(e,t,s(0,r)):e[t]=r}},751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5724),r(4846),r(9655);class InstanceType{static[Symbol.hasInstance](e){let t=super[Symbol.hasInstance](e);if(e&&!e.constructor.getInstanceType)return t;if(e&&(e.instanceTypes||(e.instanceTypes=[]),t||this.getInstanceType()===e.constructor.getInstanceType()&&(t=!0),t)){const t=this.getInstanceType===InstanceType.getInstanceType?"BaseInstanceType":this.getInstanceType();-1===e.instanceTypes.indexOf(t)&&e.instanceTypes.push(t)}return!t&&e&&(t=e.instanceTypes&&Array.isArray(e.instanceTypes)&&-1!==e.instanceTypes.indexOf(this.getInstanceType())),t}static getInstanceType(){elementorModules.ForceMethodImplementation()}constructor(){let e=new.target;const t=[];for(;e.__proto__&&e.__proto__.name;)t.push(e.__proto__),e=e.__proto__;t.reverse().forEach(e=>this instanceof e)}}t.default=InstanceType},1091:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},1265:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(641)),s=n(r(2425)),o=n(r(2946)),a=n(r(3980)),c=n(r(2970)),l=n(r(8685)),u=r(9031),p=r(1462);const d={Module:i.default,ViewModule:s.default,ArgsObject:o.default,ForceMethodImplementation:l.default,utils:{Masonry:a.default,Scroll:c.default},importExport:{createGetInitialState:u.createGetInitialState,customizationDialogsRegistry:p.customizationDialogsRegistry}};window.elementorModules?Object.assign(window.elementorModules,d):window.elementorModules=d;t.default=window.elementorModules},1278:(e,t,r)=>{"use strict";var n=r(4762),i=n({}.toString),s=n("".slice);e.exports=function(e){return s(i(e),8,-1)}},1409:(e,t,r)=>{"use strict";var n=r(5578),i=r(1483);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},1423:(e,t,r)=>{"use strict";var n=r(1409),i=r(1483),s=r(4815),o=r(5022),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&s(t.prototype,a(e))}},1462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customizationDialogsRegistry=void 0;var n=r(7958);t.customizationDialogsRegistry=new n.BaseRegistry},1483:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},1506:(e,t,r)=>{"use strict";var n=r(2914),i=r(1807),s=r(2293),o=r(8761),a=r(5299),c=r(6960),l=r(4815),u=r(4887),p=r(6665),d=r(6721),h=TypeError,Result=function(e,t){this.stopped=e,this.result=t},f=Result.prototype;e.exports=function(e,t,r){var g,m,v,y,w,b,S,x=r&&r.that,E=!(!r||!r.AS_ENTRIES),I=!(!r||!r.IS_RECORD),_=!(!r||!r.IS_ITERATOR),C=!(!r||!r.INTERRUPTED),O=n(t,x),stop=function(e){return g&&d(g,"normal"),new Result(!0,e)},callFn=function(e){return E?(s(e),C?O(e[0],e[1],stop):O(e[0],e[1])):C?O(e,stop):O(e)};if(I)g=e.iterator;else if(_)g=e;else{if(!(m=p(e)))throw new h(o(e)+" is not iterable");if(a(m)){for(v=0,y=c(e);y>v;v++)if((w=callFn(e[v]))&&l(f,w))return w;return new Result(!1)}g=u(e,m)}for(b=I?e.next:g.next;!(S=i(b,g)).done;){try{w=callFn(S.value)}catch(e){d(g,"throw",e)}if("object"==typeof w&&w&&l(f,w))return w}return new Result(!1)}},1507:e=>{"use strict";e.exports={}},1703:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function trunc(e){var n=+e;return(n>0?r:t)(n)}},1704:(e,t,r)=>{"use strict";var n=r(1483);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},1799:(e,t,r)=>{"use strict";var n=r(382),i=r(8473),s=r(3145);e.exports=!n&&!i(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},1807:(e,t,r)=>{"use strict";var n=r(274),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},1831:(e,t,r)=>{"use strict";var n=r(9557),i=r(5578),s=r(2095),o="__core-js_shared__",a=e.exports=i[o]||s(o,{});(a.versions||(a.versions=[])).push({version:"3.46.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},1851:(e,t,r)=>{"use strict";var n,i,s,o=r(8473),a=r(1483),c=r(1704),l=r(5290),u=r(3181),p=r(7914),d=r(1),h=r(9557),f=d("iterator"),g=!1;[].keys&&("next"in(s=[].keys())?(i=u(u(s)))!==Object.prototype&&(n=i):g=!0),!c(n)||o(function(){var e={};return n[f].call(e)!==e})?n={}:h&&(n=l(n)),a(n[f])||p(n,f,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},1866:(e,t,r)=>{"use strict";var n=r(4762),i=0,s=Math.random(),o=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+s,36)}},1975:(e,t,r)=>{"use strict";var n=r(8612),i=r(1807),s=r(8120),o=r(2293),a=r(41),c=r(8660),l=r(8901),u=r(9557),p=r(6721),d=r(7486),h=r(5267),f=!u&&!d("filter",function(){}),g=!u&&!f&&h("filter",TypeError),m=u||f||g,v=c(function(){for(var e,t,r=this.iterator,n=this.predicate,s=this.next;;){if(e=o(i(s,r)),this.done=!!e.done)return;if(t=e.value,l(r,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function filter(e){o(this);try{s(e)}catch(e){p(this,"throw",e)}return g?i(g,this,e):new v(a(this),{predicate:e})}})},1983:(e,t,r)=>{"use strict";var n=r(6721);e.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{r=n(e[i].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}},2048:(e,t,r)=>{"use strict";var n=r(382),i=r(5755),s=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=i(s,"name"),c=a&&"something"===function something(){}.name,l=a&&(!n||n&&o(s,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},2095:(e,t,r)=>{"use strict";var n=r(5578),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},2121:(e,t,r)=>{"use strict";var n=r(4762),i=r(8473),s=r(1278),o=Object,a=n("".split);e.exports=i(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?a(e,""):o(e)}:o},2278:(e,t,r)=>{"use strict";var n=r(6742),i=r(4741).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return n(e,i)}},2293:(e,t,r)=>{"use strict";var n=r(1704),i=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(i(e)+" is not an object")}},2313:(e,t,r)=>{"use strict";var n=r(7914);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},2347:(e,t,r)=>{"use strict";var n=r(3312),i=Object;e.exports=function(e){return i(n(e))}},2355:(e,t,r)=>{"use strict";var n=r(1807),i=r(1704),s=r(1423),o=r(2564),a=r(348),c=r(1),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!i(e)||s(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!i(r)||s(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},2425:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(641));t.default=i.default.extend({elements:null,getDefaultElements:()=>({}),bindEvents(){},onInit(){this.initElements(),this.bindEvents()},initElements(){this.elements=this.getDefaultElements()}})},2564:(e,t,r)=>{"use strict";var n=r(8120),i=r(5983);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},2811:(e,t,r)=>{"use strict";var n=r(1409);e.exports=n("document","documentElement")},2890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(4846),r(6211);class _default extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{elements:".elementor-element",nestedDocumentElements:".elementor .elementor-element"},classes:{editMode:"elementor-edit-mode"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$elements:this.$element.find(e.elements).not(this.$element.find(e.nestedDocumentElements))}}getDocumentSettings(e){let t;if(this.isEdit){t={};const e=elementor.settings.page.model;jQuery.each(e.getActiveControls(),r=>{t[r]=e.attributes[r]})}else t=this.$element.data("elementor-settings")||{};return this.getItems(t,e)}runElementsHandlers(){this.elements.$elements.each((e,t)=>setTimeout(()=>elementorFrontend.elementsHandler.runReadyTrigger(t)))}onInit(){this.$element=this.getSettings("$element"),super.onInit(),this.isEdit=this.$element.hasClass(this.getSettings("classes.editMode")),this.isEdit?elementor.on("document:loaded",()=>{elementor.settings.page.model.on("change",this.onSettingsChange.bind(this))}):this.runElementsHandlers()}onSettingsChange(){}}t.default=_default},2914:(e,t,r)=>{"use strict";var n=r(3786),i=r(8120),s=r(274),o=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:s?o(e,t):function(){return e.apply(t,arguments)}}},2946:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(751)),s=n(r(5213));class ArgsObject extends i.default{static getInstanceType(){return"ArgsObject"}constructor(e){super(),this.args=e}requireArgument(e,t=this.args){if(!Object.prototype.hasOwnProperty.call(t,e))throw Error(`${e} is required.`)}requireArgumentType(e,t,r=this.args){if(this.requireArgument(e,r),typeof r[e]!==t)throw Error(`${e} invalid type: ${t}.`)}requireArgumentInstance(e,t,r=this.args){if(this.requireArgument(e,r),!(r[e]instanceof t||(0,s.default)(r[e],t)))throw Error(`${e} invalid instance.`)}requireArgumentConstructor(e,t,r=this.args){if(this.requireArgument(e,r),r[e].constructor.toString()!==t.prototype.constructor.toString())throw Error(`${e} invalid constructor type.`)}}t.default=ArgsObject},2970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5724);t.default=class Scroll{static scrollObserver(e){let t=0;const r={root:e.root||null,rootMargin:e.offset||"0px",threshold:((e=0)=>{const t=[];if(e>0&&e<=100){const r=100/e;for(let e=0;e<=100;e+=r)t.push(e/100)}else t.push(0);return t})(e.sensitivity)};return new IntersectionObserver(function handleIntersect(r){const n=r[0].boundingClientRect.y,i=r[0].isIntersecting,s=n<t?"down":"up",o=Math.abs(parseFloat((100*r[0].intersectionRatio).toFixed(2)));e.callback({sensitivity:e.sensitivity,isInViewport:i,scrollPercentage:o,intersectionScrollDirection:s}),t=n},r)}static getElementViewportPercentage(e,t={}){const r=e[0].getBoundingClientRect(),n=t.start||0,i=t.end||0,s=window.innerHeight*n/100,o=window.innerHeight*i/100,a=r.top-window.innerHeight,c=0-a+s,l=r.top+s+e.height()-a+o,u=Math.max(0,Math.min(c/l,1));return parseFloat((100*u).toFixed(2))}static getPageScrollPercentage(e={},t){const r=e.start||0,n=e.end||0,i=t||document.documentElement.scrollHeight-document.documentElement.clientHeight,s=i*r/100,o=i+s+i*n/100;return(document.documentElement.scrollTop+document.body.scrollTop+s)/o*100}}},3005:(e,t,r)=>{"use strict";var n=r(1703);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},3145:(e,t,r)=>{"use strict";var n=r(5578),i=r(1704),s=n.document,o=i(s)&&i(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},3181:(e,t,r)=>{"use strict";var n=r(5755),i=r(1483),s=r(2347),o=r(5409),a=r(9441),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=s(e);if(n(t,c))return t[c];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},3242:(e,t,r)=>{"use strict";var n=r(8612),i=r(1807),s=r(1506),o=r(8120),a=r(2293),c=r(41),l=r(6721),u=r(5267)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{find:function find(e){a(this);try{o(e)}catch(e){l(this,"throw",e)}if(u)return i(u,this,e);var t=c(this),r=0;return s(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},3312:(e,t,r)=>{"use strict";var n=r(5983),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},3392:(e,t,r)=>{"use strict";var n=r(3005),i=Math.max,s=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):s(r,t)}},3617:(e,t,r)=>{"use strict";var n=r(8612),i=r(5578),s=r(6021),o=r(2293),a=r(1483),c=r(3181),l=r(3864),u=r(670),p=r(8473),d=r(5755),h=r(1),f=r(1851).IteratorPrototype,g=r(382),m=r(9557),v="constructor",y="Iterator",w=h("toStringTag"),b=TypeError,S=i[y],x=m||!a(S)||S.prototype!==f||!p(function(){S({})}),E=function Iterator(){if(s(this,f),c(this)===f)throw new b("Abstract class Iterator not directly constructable")},defineIteratorPrototypeAccessor=function(e,t){g?l(f,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===f)throw new b("You can't redefine this property");d(this,e)?this[e]=t:u(this,e,t)}}):f[e]=t};d(f,w)||defineIteratorPrototypeAccessor(w,y),!x&&d(f,v)&&f[v]!==Object||defineIteratorPrototypeAccessor(v,E),E.prototype=f,n({global:!0,constructor:!0,forced:x},{Iterator:E})},3658:(e,t,r)=>{"use strict";var n=r(6742),i=r(4741);e.exports=Object.keys||function keys(e){return n(e,i)}},3786:(e,t,r)=>{"use strict";var n=r(1278),i=r(4762);e.exports=function(e){if("Function"===n(e))return i(e)}},3815:(e,t,r)=>{"use strict";var n=r(2355),i=r(1423);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},3864:(e,t,r)=>{"use strict";var n=r(169),i=r(5835);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},3896:(e,t,r)=>{"use strict";var n=r(382),i=r(8473);e.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},3980:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5724);var i=n(r(2425));t.default=i.default.extend({getDefaultSettings:()=>({container:null,items:null,columnsCount:3,verticalSpaceBetween:30}),getDefaultElements(){return{$container:jQuery(this.getSettings("container")),$items:jQuery(this.getSettings("items"))}},run(){var e=[],t=this.elements.$container.position().top,r=this.getSettings(),n=r.columnsCount;t+=parseInt(this.elements.$container.css("margin-top"),10),this.elements.$items.each(function(i){var s=Math.floor(i/n),o=jQuery(this),a=o[0].getBoundingClientRect().height+r.verticalSpaceBetween;if(s){var c=o.position(),l=i%n,u=c.top-t-e[l];u-=parseInt(o.css("margin-top"),10),u*=-1,o.css("margin-top",u+"px"),e[l]+=a}else e.push(a)})}})},3991:(e,t,r)=>{"use strict";var n=r(8612),i=r(1807),s=r(8120),o=r(2293),a=r(41),c=r(8660),l=r(8901),u=r(6721),p=r(7486),d=r(5267),h=r(9557),f=!h&&!p("map",function(){}),g=!h&&!f&&d("map",TypeError),m=h||f||g,v=c(function(){var e=this.iterator,t=o(i(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:m},{map:function map(e){o(this);try{s(e)}catch(e){u(this,"throw",e)}return g?i(g,this,e):new v(a(this),{mapper:e})}})},4338:(e,t,r)=>{"use strict";var n={};n[r(1)("toStringTag")]="z",e.exports="[object z]"===String(n)},4347:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},4364:(e,t,r)=>{"use strict";r(3991)},4483:(e,t,r)=>{"use strict";var n,i,s,o=r(4644),a=r(5578),c=r(1704),l=r(9037),u=r(5755),p=r(1831),d=r(5409),h=r(1507),f="Object already initialized",g=a.TypeError,m=a.WeakMap;if(o||p.state){var v=p.state||(p.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new g(f);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},s=function(e){return v.has(e)}}else{var y=d("state");h[y]=!0,n=function(e,t){if(u(e,y))throw new g(f);return t.facade=e,l(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},s=function(e){return u(e,y)}}e.exports={set:n,get:i,has:s,enforce:function(e){return s(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}}}},4644:(e,t,r)=>{"use strict";var n=r(5578),i=r(1483),s=n.WeakMap;e.exports=i(s)&&/native code/.test(String(s))},4741:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4762:(e,t,r)=>{"use strict";var n=r(274),i=Function.prototype,s=i.call,o=n&&i.bind.bind(s,s);e.exports=n?o:function(e){return function(){return s.apply(e,arguments)}}},4815:(e,t,r)=>{"use strict";var n=r(4762);e.exports=n({}.isPrototypeOf)},4846:(e,t,r)=>{"use strict";r(3617)},4887:(e,t,r)=>{"use strict";var n=r(1807),i=r(8120),s=r(2293),o=r(8761),a=r(6665),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(i(r))return s(n(r,e));throw new c(o(e)+" is not iterable")}},4914:(e,t,r)=>{"use strict";var n=r(1278);e.exports=Array.isArray||function isArray(e){return"Array"===n(e)}},4946:(e,t,r)=>{"use strict";var n=r(6784),i=n(r(1265)),s=n(r(2890)),o=n(r(7955)),a=n(r(8140)),c=n(r(7224)),l=n(r(5633)),u=n(r(9603));i.default.frontend={Document:s.default,tools:{StretchElement:o.default},handlers:{Base:c.default,StretchedElement:a.default,SwiperBase:l.default,CarouselBase:u.default}}},4961:(e,t,r)=>{"use strict";var n=r(382),i=r(1807),s=r(7611),o=r(7738),a=r(5599),c=r(3815),l=r(5755),u=r(1799),p=Object.getOwnPropertyDescriptor;t.f=n?p:function getOwnPropertyDescriptor(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!i(s.f,e,t),e[t])}},5022:(e,t,r)=>{"use strict";var n=r(6029);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=(e,t)=>{t=Array.isArray(t)?t:[t];for(const r of t)if(e.constructor.name===r.prototype[Symbol.toStringTag])return!0;return!1}},5247:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},5267:(e,t,r)=>{"use strict";var n=r(5578);e.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,s=i&&i[e],o=!1;if(s)try{s.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return s}},5290:(e,t,r)=>{"use strict";var n,i=r(2293),s=r(5799),o=r(4741),a=r(1507),c=r(2811),l=r(3145),u=r(5409),p="prototype",d="script",h=u("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return"<"+d+">"+e+"</"+d+">"},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObject=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;NullProtoObject="undefined"!=typeof document?document.domain&&n?NullProtoObjectViaActiveX(n):(t=l("iframe"),r="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F):NullProtoObjectViaActiveX(n);for(var i=o.length;i--;)delete NullProtoObject[p][o[i]];return NullProtoObject()};a[h]=!0,e.exports=Object.create||function create(e,t){var r;return null!==e?(EmptyConstructor[p]=i(e),r=new EmptyConstructor,EmptyConstructor[p]=null,r[h]=e):r=NullProtoObject(),void 0===t?r:s.f(r,t)}},5299:(e,t,r)=>{"use strict";var n=r(1),i=r(6775),s=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[s]===e)}},5409:(e,t,r)=>{"use strict";var n=r(7255),i=r(1866),s=n("keys");e.exports=function(e){return s[e]||(s[e]=i(e))}},5578:function(e,t,r){"use strict";var check=function(e){return e&&e.Math===Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof r.g&&r.g)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()},5599:(e,t,r)=>{"use strict";var n=r(2121),i=r(3312);e.exports=function(e){return n(i(e))}},5633:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(7224));class SwiperHandlerBase extends i.default{getInitialSlide(){const e=this.getEditSettings();return e.activeItemIndex?e.activeItemIndex-1:0}getSlidesCount(){return this.elements.$slides.length}togglePauseOnHover(e){e?this.elements.$swiperContainer.on({mouseenter:()=>{this.swiper.autoplay.stop()},mouseleave:()=>{this.swiper.autoplay.start()}}):this.elements.$swiperContainer.off("mouseenter mouseleave")}handleKenBurns(){const e=this.getSettings();this.$activeImageBg&&this.$activeImageBg.removeClass(e.classes.kenBurnsActive),this.activeItemIndex=this.swiper?this.swiper.activeIndex:this.getInitialSlide(),this.swiper?this.$activeImageBg=jQuery(this.swiper.slides[this.activeItemIndex]).children("."+e.classes.slideBackground):this.$activeImageBg=jQuery(this.elements.$slides[0]).children("."+e.classes.slideBackground),this.$activeImageBg.addClass(e.classes.kenBurnsActive)}}t.default=SwiperHandlerBase},5724:(e,t,r)=>{"use strict";var n=r(8612),i=r(2347),s=r(6960),o=r(9273),a=r(1091);n({target:"Array",proto:!0,arity:1,forced:r(8473)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function push(e){var t=i(this),r=s(t),n=arguments.length;a(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return o(t,r),r}})},5755:(e,t,r)=>{"use strict";var n=r(4762),i=r(2347),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return s(i(e),t)}},5799:(e,t,r)=>{"use strict";var n=r(382),i=r(3896),s=r(5835),o=r(2293),a=r(5599),c=r(3658);t.f=n&&!i?Object.defineProperties:function defineProperties(e,t){o(e);for(var r,n=a(t),i=c(t),l=i.length,u=0;l>u;)s.f(e,r=i[u++],n[r]);return e}},5835:(e,t,r)=>{"use strict";var n=r(382),i=r(1799),s=r(3896),o=r(2293),a=r(3815),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",d="configurable",h="writable";t.f=n?s?function defineProperty(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=u(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:p in r?r[p]:n[p],writable:!1})}return l(e,t,r)}:l:function defineProperty(e,t,r){if(o(e),t=a(t),o(r),i)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},5983:e=>{"use strict";e.exports=function(e){return null==e}},6021:(e,t,r)=>{"use strict";var n=r(4815),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},6029:(e,t,r)=>{"use strict";var n=r(6477),i=r(8473),s=r(5578).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},6145:(e,t,r)=>{"use strict";var n=r(4338),i=r(1483),s=r(1278),o=r(1)("toStringTag"),a=Object,c="Arguments"===s(function(){return arguments}());e.exports=n?s:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?s(t):"Object"===(n=s(t))&&i(t.callee)?"Arguments":n}},6211:(e,t,r)=>{"use strict";r(3242)},6477:(e,t,r)=>{"use strict";var n,i,s=r(5578),o=r(9461),a=s.process,c=s.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},6651:(e,t,r)=>{"use strict";var n=r(5599),i=r(3392),s=r(6960),createMethod=function(e){return function(t,r,o){var a=n(t),c=s(a);if(0===c)return!e&&-1;var l,u=i(o,c);if(e&&r!=r){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},6665:(e,t,r)=>{"use strict";var n=r(6145),i=r(2564),s=r(5983),o=r(6775),a=r(1)("iterator");e.exports=function(e){if(!s(e))return i(e,a)||i(e,"@@iterator")||o[n(e)]}},6721:(e,t,r)=>{"use strict";var n=r(1807),i=r(2293),s=r(2564);e.exports=function(e,t,r){var o,a;i(e);try{if(!(o=s(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return i(o),r}},6726:(e,t,r)=>{"use strict";var n=r(5755),i=r(9497),s=r(4961),o=r(5835);e.exports=function(e,t,r){for(var a=i(t),c=o.f,l=s.f,u=0;u<a.length;u++){var p=a[u];n(e,p)||r&&n(r,p)||c(e,p,l(t,p))}}},6742:(e,t,r)=>{"use strict";var n=r(4762),i=r(5755),s=r(5599),o=r(6651).indexOf,a=r(1507),c=n([].push);e.exports=function(e,t){var r,n=s(e),l=0,u=[];for(r in n)!i(a,r)&&i(n,r)&&c(u,r);for(;t.length>l;)i(n,r=t[l++])&&(~o(u,r)||c(u,r));return u}},6775:e=>{"use strict";e.exports={}},6784:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6960:(e,t,r)=>{"use strict";var n=r(8324);e.exports=function(e){return n(e.length)}},7224:(e,t,r)=>{"use strict";r(5724),r(4846),r(7458),r(6211),r(9655),e.exports=elementorModules.ViewModule.extend({$element:null,editorListeners:null,onElementChange:null,onEditSettingsChange:null,onPageSettingsChange:null,isEdit:null,__construct(e){this.isActive(e)&&(this.$element=e.$element,this.isEdit=this.$element.hasClass("elementor-element-edit-mode"),this.isEdit&&this.addEditorListeners())},isActive:()=>!0,isElementInTheCurrentDocument(){return!!elementorFrontend.isEditMode()&&elementor.documents.currentDocument.id.toString()===this.$element[0].closest(".elementor").dataset.elementorId},findElement(e){var t=this.$element;return t.find(e).filter(function(){return jQuery(this).parent().closest(".elementor-element").is(t)})},getUniqueHandlerID(e,t){return e||(e=this.getModelCID()),t||(t=this.$element),e+t.attr("data-element_type")+this.getConstructorID()},initEditorListeners(){var e=this;if(e.editorListeners=[{event:"element:destroy",to:elementor.channels.data,callback(t){t.cid===e.getModelCID()&&e.onDestroy()}}],e.onElementChange){const t=e.getWidgetType()||e.getElementType();let r="change";"global"!==t&&(r+=":"+t),e.editorListeners.push({event:r,to:elementor.channels.editor,callback(t,r){e.getUniqueHandlerID(r.model.cid,r.$el)===e.getUniqueHandlerID()&&e.onElementChange(t.model.get("name"),t,r)}})}e.onEditSettingsChange&&e.editorListeners.push({event:"change:editSettings",to:elementor.channels.editor,callback(t,r){if(r.model.cid!==e.getModelCID())return;const n=Object.keys(t.changed)[0];e.onEditSettingsChange(n,t.changed[n])}}),["page"].forEach(function(t){var r="on"+t[0].toUpperCase()+t.slice(1)+"SettingsChange";e[r]&&e.editorListeners.push({event:"change",to:elementor.settings[t].model,callback(t){e[r](t.changed)}})})},getEditorListeners(){return this.editorListeners||this.initEditorListeners(),this.editorListeners},addEditorListeners(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach(function(t){elementorFrontend.addListenerOnce(e,t.event,t.callback,t.to)})},removeEditorListeners(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach(function(t){elementorFrontend.removeListeners(e,t.event,null,t.to)})},getElementType(){return this.$element.data("element_type")},getWidgetType(){const e=this.$element.data("widget_type");if(e)return e.split(".")[0]},getID(){return this.$element.data("id")},getModelCID(){return this.$element.data("model-cid")},getElementSettings(e){let t={};const r=this.getModelCID();if(this.isEdit&&r){const e=elementorFrontend.config.elements.data[r],n=e.attributes;let i=n.widgetType||n.elType;n.isInner&&(i="inner-"+i);let s=elementorFrontend.config.elements.keys[i];s||(s=elementorFrontend.config.elements.keys[i]=[],jQuery.each(e.controls,(e,t)=>{(t.frontend_available||t.editor_available)&&s.push(e)})),jQuery.each(e.getActiveControls(),function(e){if(-1!==s.indexOf(e)){let r=n[e];r.toJSON&&(r=r.toJSON()),t[e]=r}})}else t=this.$element.data("settings")||{};return this.getItems(t,e)},getEditSettings(e){var t={};return this.isEdit&&(t=elementorFrontend.config.elements.editSettings[this.getModelCID()].attributes),this.getItems(t,e)},getCurrentDeviceSetting(e){return elementorFrontend.getCurrentDeviceSetting(this.getElementSettings(),e)},onInit(){this.isActive(this.getSettings())&&elementorModules.ViewModule.prototype.onInit.apply(this,arguments)},onDestroy(){this.isEdit&&this.removeEditorListeners(),this.unbindEvents&&this.unbindEvents()}})},7255:(e,t,r)=>{"use strict";var n=r(1831);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},7268:(e,t,r)=>{"use strict";var n=r(4762),i=r(1483),s=r(1831),o=n(Function.toString);i(s.inspectSource)||(s.inspectSource=function(e){return o(e)}),e.exports=s.inspectSource},7458:(e,t,r)=>{"use strict";r(1975)},7486:e=>{"use strict";e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},7611:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function propertyIsEnumerable(e){var t=n(this,e);return!!t&&t.enumerable}:r},7738:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7914:(e,t,r)=>{"use strict";var n=r(1483),i=r(5835),s=r(169),o=r(2095);e.exports=function(e,t,r,a){a||(a={});var c=a.enumerable,l=void 0!==a.name?a.name:t;if(n(r)&&s(r,l,a),a.global)c?e[t]=r:o(t,r);else{try{a.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},7955:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({getDefaultSettings:()=>({element:null,direction:elementorFrontend.config.is_rtl?"right":"left",selectors:{container:window},considerScrollbar:!1,cssOutput:"inline"}),getDefaultElements(){return{$element:jQuery(this.getSettings("element"))}},stretch(){const e=this.getSettings();let t;try{t=jQuery(e.selectors.container)}catch(e){}t&&t.length||(t=jQuery(this.getDefaultSettings().selectors.container)),this.reset();var r=this.elements.$element,n=t.innerWidth(),i=r.offset().left,s="fixed"===r.css("position"),o=s?0:i,a=window===t[0];if(!a){var c=t.offset().left;s&&(o=c),i>c&&(o=i-c)}if(e.considerScrollbar&&a){o-=window.innerWidth-n}s||(elementorFrontend.config.is_rtl&&(o=n-(r.outerWidth()+o)),o=-o),e.margin&&(o+=e.margin);var l={};let u=n;e.margin&&(u-=2*e.margin),l.width=u+"px",l[e.direction]=o+"px","variables"!==e.cssOutput?r.css(l):this.applyCssVariables(r,l)},reset(){const e={},t=this.getSettings(),r=this.elements.$element;"variables"!==t.cssOutput?(e.width="",e[t.direction]="",r.css(e)):this.resetCssVariables(r)},applyCssVariables(e,t){e.css("--stretch-width",t.width),t.left?e.css("--stretch-left",t.left):e.css("--stretch-right",t.right)},resetCssVariables(e){e.css({"--stretch-width":"","--stretch-left":"","--stretch-right":""})}})},7958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRegistry=void 0,r(4846),r(7458),r(9655),r(4364);t.BaseRegistry=class BaseRegistry{constructor(){this.sections=new Map}register(e){if(!e.key||!e.title)throw new Error("Template type must have key and title");const t=this.get(e.key)||this.formatSection(e);if(e.children)if(t.children){const r=new Map(t.children.map(e=>[e.key,e]));e.children.forEach(e=>{const t=this.formatSection(e);r.set(e.key,t)}),t.children=Array.from(r.values())}else t.children=e.children.map(e=>this.formatSection(e));this.sections.set(e.key,t)}formatSection({children:e,...t}){return{key:t.key,title:t.title,description:t.description||"",useParentDefault:!1!==t.useParentDefault,getInitialState:t.getInitialState||null,component:t.component||null,order:t.order||10,isAvailable:t.isAvailable||(()=>!0),...t}}getAll(){return Array.from(this.sections.values()).filter(e=>e.isAvailable()).map(e=>e.children?{...e,children:[...e.children].sort((e,t)=>e.order-t.order)}:e).sort((e,t)=>e.order-t.order)}get(e){return this.sections.get(e)}}},8120:(e,t,r)=>{"use strict";var n=r(1483),i=r(8761),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(i(e)+" is not a function")}},8140:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(4846),r(6211);var i=n(r(7224));class StretchedElement extends i.default{getStretchedClass(){return"e-stretched"}getStretchSettingName(){return"stretch_element"}getStretchActiveValue(){return"yes"}bindEvents(){const e=this.getUniqueHandlerID();elementorFrontend.addListenerOnce(e,"resize",this.stretch),elementorFrontend.addListenerOnce(e,"sticky:stick",this.stretch,this.$element),elementorFrontend.addListenerOnce(e,"sticky:unstick",this.stretch,this.$element),elementorFrontend.isEditMode()&&(this.onKitChangeStretchContainerChange=this.onKitChangeStretchContainerChange.bind(this),elementor.channels.editor.on("kit:change:stretchContainer",this.onKitChangeStretchContainerChange))}unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID(),"resize",this.stretch),elementorFrontend.isEditMode()&&elementor.channels.editor.off("kit:change:stretchContainer",this.onKitChangeStretchContainerChange)}isActive(e){return elementorFrontend.isEditMode()||e.$element.hasClass(this.getStretchedClass())}getStretchElementForConfig(e=null){return e?this.$element.find(e):this.$element}getStretchElementConfig(){return{element:this.getStretchElementForConfig(),selectors:{container:this.getStretchContainer()},considerScrollbar:elementorFrontend.isEditMode()&&elementorFrontend.config.is_rtl}}initStretch(){this.stretch=this.stretch.bind(this),this.stretchElement=new elementorModules.frontend.tools.StretchElement(this.getStretchElementConfig())}getStretchContainer(){return elementorFrontend.getKitSettings("stretched_section_container")||window}isStretchSettingEnabled(){return this.getElementSettings(this.getStretchSettingName())===this.getStretchActiveValue()}stretch(){this.isStretchSettingEnabled()&&this.stretchElement.stretch()}onInit(...e){this.isActive(this.getSettings())&&(this.initStretch(),super.onInit(...e),this.stretch())}onElementChange(e){this.getStretchSettingName()===e&&(this.isStretchSettingEnabled()?this.stretch():this.stretchElement.reset())}onKitChangeStretchContainerChange(){this.stretchElement.setSettings("selectors.container",this.getStretchContainer()),this.stretch()}}t.default=StretchedElement},8324:(e,t,r)=>{"use strict";var n=r(3005),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},8473:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},8612:(e,t,r)=>{"use strict";var n=r(5578),i=r(4961).f,s=r(9037),o=r(7914),a=r(2095),c=r(6726),l=r(8730);e.exports=function(e,t){var r,u,p,d,h,f=e.target,g=e.global,m=e.stat;if(r=g?n:m?n[f]||a(f,{}):n[f]&&n[f].prototype)for(u in t){if(d=t[u],p=e.dontCallGetSet?(h=i(r,u))&&h.value:r[u],!l(g?u:f+(m?".":"#")+u,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;c(d,p)}(e.sham||p&&p.sham)&&s(d,"sham",!0),o(r,u,d,e)}}},8660:(e,t,r)=>{"use strict";var n=r(1807),i=r(5290),s=r(9037),o=r(2313),a=r(1),c=r(4483),l=r(2564),u=r(1851).IteratorPrototype,p=r(5247),d=r(6721),h=r(1983),f=a("toStringTag"),g="IteratorHelper",m="WrapForValidIterator",v="normal",y="throw",w=c.set,createIteratorProxyPrototype=function(e){var t=c.getterFor(e?m:g);return o(i(u),{next:function next(){var r=t(this);if(e)return r.nextHandler();if(r.done)return p(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:p(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),i=r.iterator;if(r.done=!0,e){var s=l(i,"return");return s?n(s,i):p(void 0,!0)}if(r.inner)try{d(r.inner.iterator,v)}catch(e){return d(i,y,e)}if(r.openIters)try{h(r.openIters,v)}catch(e){return d(i,y,e)}return i&&d(i,v),p(void 0,!0)}})},b=createIteratorProxyPrototype(!0),S=createIteratorProxyPrototype(!1);s(S,f,"Iterator Helper"),e.exports=function(e,t,r){var n=function Iterator(n,i){i?(i.iterator=n.iterator,i.next=n.next):i=n,i.type=t?m:g,i.returnHandlerResult=!!r,i.nextHandler=e,i.counter=0,i.done=!1,w(this,i)};return n.prototype=t?b:S,n}},8685:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ForceMethodImplementation=void 0;class ForceMethodImplementation extends Error{constructor(e={},t={}){super(`${e.isStatic?"static ":""}${e.fullName}() should be implemented, please provide '${e.functionName||e.fullName}' functionality.`,t),Object.keys(t).length&&console.error(t),Error.captureStackTrace(this,ForceMethodImplementation)}}t.ForceMethodImplementation=ForceMethodImplementation;t.default=e=>{const t=Error().stack.split("\n")[2].trim(),r=t.startsWith("at new")?"constructor":t.split(" ")[1],n={};if(n.functionName=r,n.fullName=r,n.functionName.includes(".")){const e=n.functionName.split(".");n.className=e[0],n.functionName=e[1]}else n.isStatic=!0;throw new ForceMethodImplementation(n,e)}},8730:(e,t,r)=>{"use strict";var n=r(8473),i=r(1483),s=/#|\.prototype\./,isForced=function(e,t){var r=a[o(e)];return r===l||r!==c&&(i(t)?n(t):!!t)},o=isForced.normalize=function(e){return String(e).replace(s,".").toLowerCase()},a=isForced.data={},c=isForced.NATIVE="N",l=isForced.POLYFILL="P";e.exports=isForced},8761:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},8901:(e,t,r)=>{"use strict";var n=r(2293),i=r(6721);e.exports=function(e,t,r,s){try{return s?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},9031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createGetInitialState=function createGetInitialState(e,t={}){return(r,n)=>{let i=n;if(r.hasOwnProperty("uploadedData")){i=!1;const t=r.uploadedData.manifest.templates,n=elementorAppConfig?.["import-export-customization"]?.exportGroups||{};for(const r in t){if(n[t[r].doc_type]===e){i=!0;break}}}return{enabled:i,...t}}}},9037:(e,t,r)=>{"use strict";var n=r(382),i=r(5835),s=r(7738);e.exports=n?function(e,t,r){return i.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},9273:(e,t,r)=>{"use strict";var n=r(382),i=r(4914),s=TypeError,o=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(i(e)&&!o(e,"length").writable)throw new s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},9441:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n(function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})},9461:(e,t,r)=>{"use strict";var n=r(5578).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},9497:(e,t,r)=>{"use strict";var n=r(1409),i=r(4762),s=r(2278),o=r(4347),a=r(2293),c=i([].concat);e.exports=n("Reflect","ownKeys")||function ownKeys(e){var t=s.f(a(e)),r=o.f;return r?c(t,r(e)):t}},9557:e=>{"use strict";e.exports=!1},9603:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(4846),r(6211),r(9655);var i=n(r(5633));class CarouselHandlerBase extends i.default{getDefaultSettings(){return{selectors:{carousel:".swiper",swiperWrapper:".swiper-wrapper",slideContent:".swiper-slide",swiperArrow:".elementor-swiper-button",paginationWrapper:".swiper-pagination",paginationBullet:".swiper-pagination-bullet",paginationBulletWrapper:".swiper-pagination-bullets"}}}getDefaultElements(){const e=this.getSettings("selectors"),t={$swiperContainer:this.$element.find(e.carousel),$swiperWrapper:this.$element.find(e.swiperWrapper),$swiperArrows:this.$element.find(e.swiperArrow),$paginationWrapper:this.$element.find(e.paginationWrapper),$paginationBullets:this.$element.find(e.paginationBullet),$paginationBulletWrapper:this.$element.find(e.paginationBulletWrapper)};return t.$slides=t.$swiperContainer.find(e.slideContent),t}getSwiperSettings(){const e=this.getElementSettings(),t=+e.slides_to_show||3,r=1===t,n=elementorFrontend.config.responsive.activeBreakpoints,i={mobile:1,tablet:r?1:2},s={slidesPerView:t,loop:"yes"===e.infinite,speed:e.speed,handleElementorBreakpoints:!0,breakpoints:{}};let o=t;Object.keys(n).reverse().forEach(t=>{const r=i[t]?i[t]:o;s.breakpoints[n[t].value]={slidesPerView:+e["slides_to_show_"+t]||r,slidesPerGroup:+e["slides_to_scroll_"+t]||1},e.image_spacing_custom&&(s.breakpoints[n[t].value].spaceBetween=this.getSpaceBetween(t)),o=+e["slides_to_show_"+t]||r}),"yes"===e.autoplay&&(s.autoplay={delay:e.autoplay_speed,disableOnInteraction:"yes"===e.pause_on_interaction}),r?(s.effect=e.effect,"fade"===e.effect&&(s.fadeEffect={crossFade:!0})):s.slidesPerGroup=+e.slides_to_scroll||1,e.image_spacing_custom&&(s.spaceBetween=this.getSpaceBetween());const a="arrows"===e.navigation||"both"===e.navigation,c="dots"===e.navigation||"both"===e.navigation||e.pagination;return a&&(s.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),c&&(s.pagination={el:`.elementor-element-${this.getID()} .swiper-pagination`,type:e.pagination?e.pagination:"bullets",clickable:!0,renderBullet:(e,t)=>`<span class="${t}" role="button" tabindex="0" data-bullet-index="${e}" aria-label="${elementorFrontend.config.i18n.a11yCarouselPaginationBulletMessage} ${e+1}"></span>`}),"yes"===e.lazyload&&(s.lazy={loadPrevNext:!0,loadPrevNextAmount:1}),s.a11y={enabled:!0,prevSlideMessage:elementorFrontend.config.i18n.a11yCarouselPrevSlideMessage,nextSlideMessage:elementorFrontend.config.i18n.a11yCarouselNextSlideMessage,firstSlideMessage:elementorFrontend.config.i18n.a11yCarouselFirstSlideMessage,lastSlideMessage:elementorFrontend.config.i18n.a11yCarouselLastSlideMessage},s.on={slideChange:()=>{this.a11ySetPaginationTabindex(),this.handleElementHandlers(),this.a11ySetSlideAriaHidden()},init:()=>{this.a11ySetPaginationTabindex(),this.a11ySetSlideAriaHidden("initialisation")}},this.applyOffsetSettings(e,s,t),s}getOffsetWidth(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"offset_width","size",e)||0}applyOffsetSettings(e,t,r){const n=e.offset_sides;if(!(elementorFrontend.isEditMode()&&"NestedCarousel"===this.constructor.name)&&n&&"none"!==n)switch(n){case"right":this.forceSliderToShowNextSlideWhenOnLast(t,r),this.addClassToSwiperContainer("offset-right");break;case"left":this.addClassToSwiperContainer("offset-left");break;case"both":this.forceSliderToShowNextSlideWhenOnLast(t,r),this.addClassToSwiperContainer("offset-both")}}forceSliderToShowNextSlideWhenOnLast(e,t){e.slidesPerView=t+.001}addClassToSwiperContainer(e){this.getDefaultElements().$swiperContainer[0].classList.add(e)}async onInit(...e){if(super.onInit(...e),!this.elements.$swiperContainer.length||2>this.elements.$slides.length)return;await this.initSwiper();"yes"===this.getElementSettings().pause_on_hover&&this.togglePauseOnHover(!0)}async initSwiper(){const e=elementorFrontend.utils.swiper;this.swiper=await new e(this.elements.$swiperContainer,this.getSwiperSettings()),this.elements.$swiperContainer.data("swiper",this.swiper)}bindEvents(){this.elements.$swiperArrows.on("keydown",this.onDirectionArrowKeydown.bind(this)),this.elements.$paginationWrapper.on("keydown",".swiper-pagination-bullet",this.onDirectionArrowKeydown.bind(this)),this.elements.$swiperContainer.on("keydown",".swiper-slide",this.onDirectionArrowKeydown.bind(this)),this.$element.find(":focusable").on("focus",this.onFocusDisableAutoplay.bind(this)),elementorFrontend.elements.$window.on("resize",this.getSwiperSettings.bind(this))}unbindEvents(){this.elements.$swiperArrows.off(),this.elements.$paginationWrapper.off(),this.elements.$swiperContainer.off(),this.$element.find(":focusable").off(),elementorFrontend.elements.$window.off("resize")}onDirectionArrowKeydown(e){const t=elementorFrontend.config.is_rtl,r=e.originalEvent.code,n=t?"ArrowLeft":"ArrowRight";if(!(-1!==["ArrowLeft","ArrowRight"].indexOf(r)))return!0;(t?"ArrowRight":"ArrowLeft")===r?this.swiper.slidePrev():n===r&&this.swiper.slideNext()}onFocusDisableAutoplay(){this.swiper.autoplay.stop()}updateSwiperOption(e){const t=this.getElementSettings()[e],r=this.swiper.params;switch(e){case"autoplay_speed":r.autoplay.delay=t;break;case"speed":r.speed=t}this.swiper.update()}getChangeableProperties(){return{pause_on_hover:"pauseOnHover",autoplay_speed:"delay",speed:"speed",arrows_position:"arrows_position"}}onElementChange(e){if(0===e.indexOf("image_spacing_custom"))return void this.updateSpaceBetween(e);if(this.getChangeableProperties()[e])if("pause_on_hover"===e){const e=this.getElementSettings("pause_on_hover");this.togglePauseOnHover("yes"===e)}else this.updateSwiperOption(e)}onEditSettingsChange(e){"activeItemIndex"===e&&this.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1)}getSpaceBetween(e=null){const t=elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"image_spacing_custom","size",e);return Number(t)||0}updateSpaceBetween(e){const t=e.match("image_spacing_custom_(.*)"),r=t?t[1]:"desktop",n=this.getSpaceBetween(r);"desktop"!==r&&(this.swiper.params.breakpoints[elementorFrontend.config.responsive.activeBreakpoints[r].value].spaceBetween=n),this.swiper.params.spaceBetween=n,this.swiper.update()}getPaginationBullets(e="array"){const t=this.$element.find(this.getSettings("selectors").paginationBullet);return"array"===e?Array.from(t):t}a11ySetPaginationTabindex(){const e=this.swiper?.params?.pagination.bulletClass,t=this.swiper?.params?.pagination.bulletActiveClass;this.getPaginationBullets().forEach(e=>{e.classList?.contains(t)||e.removeAttribute("tabindex")});const r="ArrowLeft"===event?.code||"ArrowRight"===event?.code;event?.target?.classList?.contains(e)&&r&&this.$element.find(`.${t}`).trigger("focus")}getSwiperWrapperTranformXValue(){let e=this.elements.$swiperWrapper[0]?.style.transform;return e=e.replace("translate3d(",""),e=e.split(","),e=parseInt(e[0].replace("px","")),e||0}a11ySetSlideAriaHidden(e=""){if("number"!=typeof("initialisation"===e?0:this.swiper?.activeIndex))return;const t=this.getSwiperWrapperTranformXValue(),r=this.elements.$swiperWrapper[0].clientWidth;this.elements.$swiperContainer.find(this.getSettings("selectors").slideContent).each((e,n)=>{0<=n.offsetLeft+t&&r>n.offsetLeft+t?(n.removeAttribute("aria-hidden"),n.removeAttribute("inert")):(n.setAttribute("aria-hidden",!0),n.setAttribute("inert",""))})}handleElementHandlers(){}}t.default=CarouselHandlerBase},9655:(e,t,r)=>{"use strict";r(9930)},9930:(e,t,r)=>{"use strict";var n=r(8612),i=r(1807),s=r(1506),o=r(8120),a=r(2293),c=r(41),l=r(6721),u=r(5267)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function forEach(e){a(this);try{o(e)}catch(e){l(this,"throw",e)}if(u)return i(u,this,e);var t=c(this),r=0;s(t,function(t){e(t,r++)},{IS_RECORD:!0})}})}},e=>{var t;t=4946,e(e.s=t)}]);
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3",
x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),
x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;n<e.collisionWidth?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;o<e.collisionHeight?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})});