(function(modules){
var installedModules={};
function __webpack_require__(moduleId){
if(installedModules[moduleId]){
return installedModules[moduleId].exports;
}
var module=installedModules[moduleId]={
i: moduleId,
l: false,
exports: {}
};
modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
module.l=true;
return module.exports;
}
__webpack_require__.m=modules;
__webpack_require__.c=installedModules;
__webpack_require__.d=function(exports, name, getter){
if(!__webpack_require__.o(exports, name)){
Object.defineProperty(exports, name, {
configurable: false,
enumerable: true,
get: getter
});
}
};
__webpack_require__.n=function(module){
var getter=module&&module.__esModule ?
function getDefault(){ return module['default']; } :
function getModuleExports(){ return module; };
__webpack_require__.d(getter, 'a', getter);
return getter;
};
__webpack_require__.o=function(object, property){ return Object.prototype.hasOwnProperty.call(object, property); };
__webpack_require__.p="";
return __webpack_require__(__webpack_require__.s=1);
})
([
(function(module, exports, __webpack_require__){
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var csco={
addAction: function addAction(x, y, z){
return;
}};
if('undefined'!==typeof wp&&'undefined'!==typeof wp.hooks){
csco.addAction=wp.hooks.addAction;
}
var $=jQuery;
var $window=$(window);
var $doc=$(document);
var $body=$('body');
var wndW=0;
var wndH=0;
var docH=0;
function csGetWndSize(){
exports.wndW=wndW=$window.width();
exports.wndH=wndH=$window.height();
exports.docH=docH=$doc.height();
}
$window.on('resize load orientationchange', csGetWndSize);
csGetWndSize();
var csHideOnScrollList=[];
var csDidScroll=void 0;
var csLastST=0;
$window.on('scroll load resize orientationchange', function (){
if(csHideOnScrollList.length){
csDidScroll=true;
}});
function csHasScrolled(){
var ST=$window.scrollTop();
var type=null;
if(ST > csLastST){
type='down';
}else if(ST < csLastST){
type='up';
}else{
type='none';
}
if(ST===0){
type='start';
}else if(ST >=docH - wndH){
type='end';
}
csHideOnScrollList.forEach(function (item){
if(typeof item==='function'){
item(type, ST, csLastST, $window);
}});
csLastST=ST;
}
setInterval(function (){
if(csDidScroll){
csDidScroll=false;
window.requestAnimationFrame(csHasScrolled);
}}, 250);
function csThrottleScroll(callback){
csHideOnScrollList.push(callback);
}
$.fn.isInViewport=function (){
var elementTop=$(this).offset().top;
var elementBottom=elementTop + $(this).outerHeight();
var viewportTop=$(window).scrollTop();
var viewportBottom=viewportTop + $(window).height();
return elementBottom > viewportTop&&elementTop < viewportBottom;
};
function csGetCookie(name){
var matches=document.cookie.match(new RegExp("(?:^|;)" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"));
return matches ? decodeURIComponent(matches[1]):undefined;
}
function csSetCookie(name, value){
var props=arguments.length > 2&&arguments[2]!==undefined ? arguments[2]:{};
props={
path: '/'
};
if(props.expires instanceof Date){
props.expires=props.expires.toUTCString();
}
var updatedCookie=encodeURIComponent(name) + "=" + encodeURIComponent(value);
for (var optionKey in props){
updatedCookie +="; " + optionKey;
var optionValue=props[optionKey];
if(optionValue!==true){
updatedCookie +="=" + optionValue;
}}
document.cookie=updatedCookie;
}
exports.$=$;
exports.$window=$window;
exports.$doc=$doc;
exports.$body=$body;
exports.csco=csco;
exports.wndW=wndW;
exports.wndH=wndH;
exports.docH=docH;
exports.csThrottleScroll=csThrottleScroll;
exports.csGetCookie=csGetCookie;
exports.csSetCookie=csSetCookie;
}),
(function(module, exports, __webpack_require__){
__webpack_require__(2);
__webpack_require__(3);
__webpack_require__(4);
__webpack_require__(5);
__webpack_require__(6);
__webpack_require__(7);
__webpack_require__(8);
__webpack_require__(9);
__webpack_require__(10);
__webpack_require__(11);
__webpack_require__(12);
__webpack_require__(13);
__webpack_require__(14);
__webpack_require__(15);
module.exports=__webpack_require__(16);
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
(function (){
(0, _utility.$)(document).on('click', '.cs-entry__comments-show button', function (e){
(0, _utility.$)('.cs-entry__comments-collapse').show();
(0, _utility.$)('.cs-entry__comments-show').remove();
});
})(); 
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
(function (){
var ticking=false;
var update=function update(){
(0, _utility.$)('.cs-site-primary').each(function (){
var content=(0, _utility.$)(this).find('.entry-content');
var sidebar=(0, _utility.$)(this).find('.cs-entry__metabar-inner');
var offsetTop=20;
var offsetBottom=-20;
var elements=[];
elements.push('> .alignfull');
elements.push('> .alignwide');
var layouts=(0, _utility.$)(content).find(elements.join(','));
if(0===sidebar.length){
return;
}
if(0===layouts.length){
return;
}
var disabled=false;
var sidebarTop=(0, _utility.$)(sidebar).offset().top;
var sidebarHeight=(0, _utility.$)(sidebar).outerHeight(true);
for (var i=0; i < (0, _utility.$)(layouts).length; ++i){
if('none'===(0, _utility.$)(layouts[i]).css('transform')){
continue;
}
var layoutTop=(0, _utility.$)(layouts[i]).offset().top;
var layoutHeight=(0, _utility.$)(layouts[i]).outerHeight(true);
var pointTop=layoutTop - offsetTop;
var pointBottom=layoutTop + layoutHeight + offsetBottom;
if(sidebarTop + sidebarHeight >=pointTop&&sidebarTop <=pointBottom){
disabled=true;
}}
if(disabled){
(0, _utility.$)(sidebar).css('opacity', '0');
}else{
(0, _utility.$)(sidebar).css('opacity', '1');
}});
ticking=false;
};
var requestTick=function requestTick(){
if(!ticking){
window.requestAnimationFrame(update);
ticking=true;
}};
var onProcess=function onProcess(){
requestTick();
};
(0, _utility.$)(window).on('scroll', onProcess);
(0, _utility.$)(window).on('resize', onProcess);
(0, _utility.$)(window).on('image-load', onProcess);
(0, _utility.$)(window).on('post-load', onProcess);
})(); 
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
(function (){
var $entryType=(0, _utility.$)('.cnvs-block-posts-layout-tile-type-2 .cs-entry__outer, .cnvs-block-posts-layout-tile-type-3 .cs-entry__outer'),
isHovered=false;
function process(el){
var currentWidth=_utility.$window.width(),
maxWidth=1020,
$el=null;
if(el){
$el=(0, _utility.$)(el);
}else{
$el=$entryType;
}
if(currentWidth < maxWidth){
$entryType.attr('data-scheme', 'inverse');
}else{
$entryType.removeAttr('data-scheme');
if(isHovered){
$el.attr('data-scheme', 'inverse');
}else{
$entryType.removeAttr('data-scheme');
}}
}
$entryType.hover(function (){
isHovered=true;
process(this);
}, function (){
isHovered=false;
process(this);
});
_utility.$window.resize(function (){
process();
});
process();
})(); 
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
var largeHoverBlock=(0, _utility.$)('.cnvs-block-posts-layout-large-type-8 .cs-layout-large__col, .cnvs-block-posts-layout-large-type-9 .cs-layout-large__col'); 
(function (){
largeHoverBlock.hover(function (){
(0, _utility.$)(this).addClass('active').siblings().removeClass('active').closest('.cs-layout-large__wrap').find('.cs-overlay-background').removeClass('active').eq((0, _utility.$)(this).index()).addClass('active');
}, function (){
(0, _utility.$)(this).closest('.cs-layout-large__wrap').find('.cs-overlay-background').removeClass('active').eq((0, _utility.$)(this).index()).addClass('active');
});
})();
}),
(function(module, exports, __webpack_require__){
"use strict";
var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol" ? function (obj){ return typeof obj; }:function (obj){ return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype ? "symbol":typeof obj; }; 
var _utility=__webpack_require__(0);
if('undefined'===typeof window.load_more_query){
window.load_more_query=[];
}
function csco_ajax_get_posts(object){
var container=(0, _utility.$)(object).closest('.cs-posts-area');
var settings=(0, _utility.$)(object).data('settings');
var page=(0, _utility.$)(object).data('page');
(0, _utility.$)(object).data('loading', true);
(0, _utility.$)(object).text(settings.translation.loading);
var data={
action: 'csco_ajax_load_more',
page: page,
posts_per_page: settings.posts_per_page,
query_data: settings.query_data,
attributes: settings.attributes,
options: settings.options,
_ajax_nonce: settings.nonce
};
var csco_pagination_url;
if('ajax_restapi'===settings.type){
csco_pagination_url=settings.rest_url;
}else{
csco_pagination_url=settings.url;
}
_utility.$.post(csco_pagination_url, data, function (res){
if(res.success){
var data=(0, _utility.$)(res.data.content);
if(data.length){
data.imagesLoaded(function (){
(0, _utility.$)(container).find('.cs-posts-area__main').append(data);
(0, _utility.$)(document.body).trigger('post-load');
if((0, _utility.$)('#fb-root').length&&'object'===(typeof FB==='undefined' ? 'undefined':_typeof(FB))){
FB.XFBML.parse();
}
(0, _utility.$)(object).text(settings.translation.load_more);
page=page + 1;
(0, _utility.$)(object).data('page', page);
(0, _utility.$)(object).data('loading', false);
});
}
if(res.data.posts_end||!data.length){
(0, _utility.$)(object).remove();
}}else{
}}).fail(function (xhr, textStatus, e){
});
}
function csco_load_more_init(infinite){
(0, _utility.$)('.cs-posts-area').each(function (){
if((0, _utility.$)(this).data('init')){
return false;
}
var csco_ajax_settings;
if(typeof csco_ajax_pagination!=='undefined'){
csco_ajax_settings=csco_ajax_pagination;
}
var archive_data=(0, _utility.$)(this).data('posts-area');
if(archive_data){
csco_ajax_settings=JSON.parse(window.atob(archive_data));
}
if(csco_ajax_settings){
if(!infinite&&csco_ajax_settings.infinite_load){
return false;
}
(0, _utility.$)(this).append('<div class="cs-posts-area__pagination"><button class="cs-load-more">' + csco_ajax_settings.translation.load_more + '</button></div>');
(0, _utility.$)(this).find('.cs-load-more').data('settings', csco_ajax_settings);
(0, _utility.$)(this).find('.cs-load-more').data('page', 2);
(0, _utility.$)(this).find('.cs-load-more').data('loading', false);
(0, _utility.$)(this).find('.cs-load-more').data('scrollHandling', {
allow: _utility.$.parseJSON(csco_ajax_settings.infinite_load),
delay: 400
});
}
(0, _utility.$)(this).data('init', true);
});
}
csco_load_more_init(true);
_utility.csco.addAction('canvas.components.serverSideRender.onChange', 'posts-init-loadmore', function (props){
if('canvas/posts'===props.block){
csco_load_more_init(false);
}});
(0, _utility.$)(window).scroll(function (){
(0, _utility.$)('.cs-posts-area .cs-load-more').each(function (){
var loading=(0, _utility.$)(this).data('loading');
var scrollHandling=(0, _utility.$)(this).data('scrollHandling');
if('undefined'===typeof scrollHandling){
return;
}
if((0, _utility.$)(this).length&&!loading&&scrollHandling.allow){
scrollHandling.allow=false;
(0, _utility.$)(this).data('scrollHandling', scrollHandling);
var object=this;
setTimeout(function (){
var scrollHandling=(0, _utility.$)(object).data('scrollHandling');
if('undefined'===typeof scrollHandling){
return;
}
scrollHandling.allow=true;
(0, _utility.$)(object).data('scrollHandling', scrollHandling);
}, scrollHandling.delay);
var offset=(0, _utility.$)(this).offset().top - (0, _utility.$)(window).scrollTop();
if(4000 > offset){
csco_ajax_get_posts(this);
}}
});
});
(0, _utility.$)('body').on('click', '.cs-load-more', function (){
var loading=(0, _utility.$)(this).data('loading');
if(!loading){
csco_ajax_get_posts(this);
}});
}),
(function(module, exports, __webpack_require__){
"use strict";
var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol" ? function (obj){ return typeof obj; }:function (obj){ return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype ? "symbol":typeof obj; }; 
var _utility=__webpack_require__(0);
if(typeof csco_ajax_nextpost!=='undefined'){
var objNextparent=(0, _utility.$)('.cs-site-primary > .cs-site-content'),
objNextsect='.cs-nextpost-section',
objNextpost=null,
currentNTitle=document.title,
currentNLink=window.location.href,
loadingNextpost=false,
scrollNextpost={
allow: true,
reallow: function reallow(){
scrollNextpost.allow=true;
},
delay: 400 //(milliseconds) adjust to the highest acceptable value
};
if(csco_ajax_nextpost.next_post){
(0, _utility.$)(objNextparent).after('<div class="cs-nextpost-inner"></div>');
objNextpost=(0, _utility.$)('.cs-nextpost-inner');
}}
function csco_ajax_get_nextpost(){
loadingNextpost=true;
var data={
action: 'csco_ajax_load_nextpost',
post_type: csco_ajax_nextpost.post_type,
not_in: csco_ajax_nextpost.not_in,
current_user: csco_ajax_nextpost.current_user,
nonce: csco_ajax_nextpost.nonce,
next_post: csco_ajax_nextpost.next_post
};
var csco_ajax_nextpost_url;
if('ajax_restapi'===csco_ajax_nextpost.type){
csco_ajax_nextpost_url=csco_ajax_nextpost.rest_url;
}else{
csco_ajax_nextpost_url=csco_ajax_nextpost.url;
}
_utility.$.post(csco_ajax_nextpost_url, data, function (res){
csco_ajax_nextpost.next_post=false;
if(res.success){
var data=(0, _utility.$)(res.data.content);
if(data.length){
loadingNextpost=false;
csco_ajax_nextpost.not_in=res.data.not_in;
csco_ajax_nextpost.next_post=res.data.next_post;
(0, _utility.$)(objNextpost).siblings('.cs-nextpost-loading').remove();
(0, _utility.$)(objNextpost).append(data);
if((0, _utility.$)('#fb-root').length&&'object'===(typeof FB==='undefined' ? 'undefined':_typeof(FB))){
FB.XFBML.parse();
}
(0, _utility.$)(document.body).trigger('post-load');
}}else{
}}).fail(function (xhr, textStatus, e){
});
}
if(typeof csco_ajax_nextpost!=='undefined'){
(0, _utility.$)(window).scroll(function (){
var scrollTop=(0, _utility.$)(window).scrollTop();
if(csco_ajax_nextpost.next_post){
if(objNextpost.length&&!loadingNextpost&&scrollNextpost.allow){
scrollNextpost.allow=false;
setTimeout(scrollNextpost.reallow, scrollNextpost.delay);
var offset=objNextpost.offset().top + objNextpost.innerHeight() - scrollTop;
if(4000 > offset){
(0, _utility.$)(objNextpost).after('<div class="cs-nextpost-loading"></div>');
csco_ajax_get_nextpost();
}}
}
var objFirst=(0, _utility.$)(objNextsect).first();
if(objFirst.length){
var firstTop=(0, _utility.$)(objFirst).offset().top;
if(scrollTop < firstTop&&window.location.href!==currentNLink){
document.title=currentNTitle;
window.history.pushState(null, currentNTitle, currentNLink);
}}
(0, _utility.$)(objNextsect).each(function (index, elem){
var elemTop=(0, _utility.$)(elem).offset().top;
var elemHeight=(0, _utility.$)(elem).innerHeight();
if(scrollTop > elemTop&&scrollTop < elemTop + elemHeight){
if(window.location.href!==(0, _utility.$)(elem).data('url')){
document.title=(0, _utility.$)(elem).data('title');
window.history.pushState(null, (0, _utility.$)(elem).data('title'), (0, _utility.$)(elem).data('url'));
if(typeof gtag==='function'&&_typeof(window.gaData)==='object'){
var trackingId=Object.keys(window.gaData)[0];
if(trackingId){
gtag('config', trackingId, {
'page_title': (0, _utility.$)(elem).data('title'),
'page_location': (0, _utility.$)(elem).data('url')
});
gtag('event', 'page_view', { 'send_to': trackingId });
}}
}}
});
});
}
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
(function (){
function cscoLoadMenuPosts(menuItem){
var dataTerm=menuItem.children('a').data('term'),
dataPosts=menuItem.children('a').data('posts'),
dataNumberposts=menuItem.children('a').data('numberposts'),
menuContainer,
postsContainer;
if(menuItem.hasClass('cs-mega-menu-term')){
menuContainer=menuItem;
postsContainer=menuContainer.find('.cs-mm__posts');
}
if(menuItem.hasClass('cs-mega-menu-posts')){
menuContainer=menuItem;
postsContainer=menuContainer.find('.cs-mm__posts');
}
if(menuItem.hasClass('cs-mega-menu-child-term')){
menuContainer=menuItem.closest('.sub-menu');
postsContainer=menuContainer.find('.cs-mm__posts[data-term="' + dataTerm + '"]');
}
if(!menuContainer||typeof menuContainer==='undefined'){
return false;
}
if(!postsContainer||typeof postsContainer==='undefined'){
return false;
}
menuContainer.find('.menu-item, .cs-mm__posts').removeClass('cs-active-item');
menuItem.addClass('cs-active-item');
if(postsContainer){
postsContainer.addClass('cs-active-item');
}
if(menuItem.hasClass('cs-mm-loading')||menuItem.hasClass('loaded')){
return false;
}
var data={
'term': dataTerm,
'posts': dataPosts,
'per_page': dataNumberposts
};
if('undefined'===typeof csco_mega_menu){
return;
}
_utility.$.ajax({
url: csco_mega_menu.rest_url,
type: 'GET',
data: data,
global: false,
async: true,
beforeSend: function beforeSend(){
menuItem.addClass('cs-mm-loading');
postsContainer.addClass('cs-mm-loading');
},
success: function success(res){
if(res.status&&'success'===res.status){
menuItem.addClass('loaded');
postsContainer.addClass('loaded');
if(res.content&&res.content.length){
(0, _utility.$)(res.content).imagesLoaded(function (){
postsContainer.html(res.content);
});
}}
},
complete: function complete(){
menuItem.removeClass('cs-mm-loading');
postsContainer.removeClass('cs-mm-loading');
}});
}
function cscoGetFirstTab(container){
var firstTab=false;
container.find('.cs-mega-menu-child').each(function (index, el){
if((0, _utility.$)(el).hasClass('cs-mega-menu-child')){
firstTab=(0, _utility.$)(el);
return false;
}});
return firstTab;
}
(0, _utility.$)(document).ready(function (){
(0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-posts').on('mouseenter', function (){
cscoLoadMenuPosts((0, _utility.$)(this));
});
(0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-term').on('mouseenter', function (){
cscoLoadMenuPosts((0, _utility.$)(this));
});
(0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-child').on('mouseenter', function (){
cscoLoadMenuPosts((0, _utility.$)(this));
});
(0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-terms').on('mouseenter', function (){
var tab=cscoGetFirstTab((0, _utility.$)(this));
if(tab){
cscoLoadMenuPosts(tab);
}});
});
(0, _utility.$)(document, '.cs-header__nav').ready(function (){
var tab=false;
(0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-terms').each(function (index, el){
tab=cscoGetFirstTab((0, _utility.$)(this));
if(tab){
cscoLoadMenuPosts(tab);
}});
(0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-posts').each(function (index, el){
cscoLoadMenuPosts((0, _utility.$)(this));
});
(0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-term').each(function (index, el){
cscoLoadMenuPosts((0, _utility.$)(this));
});
});
})(); 
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
var cscoNavigation={}; 
(function (){
var $this;
cscoNavigation={
init: function init(e){
if((0, _utility.$)('body').hasClass('wp-admin')){
return;
}
$this=cscoNavigation;
$this.events(e);
},
events: function events(e){
window.addEventListener('load', function (e){
$this.smartLevels(e);
$this.adaptTablet(e);
$this.stickyScroll(e);
});
window.addEventListener('resize', function (e){
$this.smartLevels(e);
$this.adaptTablet(e);
$this.stickyScroll(e);
});
},
smartLevels: function smartLevels(e){
var windowWidth=_utility.$window.width();
(0, _utility.$)('.cs-header__nav-inner li').removeClass('cs-sm__level');
(0, _utility.$)('.cs-header__nav-inner li').removeClass('cs-sm-position-left cs-sm-position-right');
(0, _utility.$)('.cs-header__nav-inner li .sub-menu').removeClass('cs-mm__position-init');
(0, _utility.$)('.cs-header__nav-inner > li.menu-item').not('.cs-mm').each(function (index, parent){
var position='cs-sm-position-right';
var objPrevWidth=0;
(0, _utility.$)(parent).find('.sub-menu').each(function (index, el){
(0, _utility.$)(el).parent().next('li').addClass('cs-sm__level');
if((0, _utility.$)(el).parent().hasClass('cs-sm__level')){
(0, _utility.$)(el).parent().removeClass('cs-mm-level');
position='cs-sm-position-right';
objPrevWidth=0;
}
var offset=(0, _utility.$)(el).offset();
var objOffset=offset.left;
if('cs-sm-position-right'===position&&(0, _utility.$)(el).outerWidth() + objOffset > windowWidth){
position='cs-sm-position-left';
}
if('cs-sm-position-left'===position&&objOffset - ((0, _utility.$)(el).outerWidth() + objPrevWidth) < 0){
position='cs-sm-position-right';
}
objPrevWidth=(0, _utility.$)(el).outerWidth();
(0, _utility.$)(el).addClass('cs-sm-position-init').parent().addClass(position);
});
});
},
adaptTablet: function adaptTablet(e){
(0, _utility.$)(document).on('touchstart', function (e){
if(!(0, _utility.$)(e.target).closest('.cs-header__nav-inner').length){
(0, _utility.$)('.cs-header__nav-inner .menu-item-has-children').removeClass('submenu-visible');
}else{
(0, _utility.$)(e.target).parents('.menu-item').siblings().find('.menu-item').removeClass('submenu-visible');
(0, _utility.$)(e.target).parents('.menu-item').siblings().closest('.menu-item').removeClass('submenu-visible');
}});
(0, _utility.$)('.cs-header__nav-inner .menu-item-has-children').each(function (e){
(0, _utility.$)(this).removeClass('submenu-visible');
(0, _utility.$)(this).find('> a > .expanded').remove();
if('ontouchstart' in document.documentElement){
(0, _utility.$)(this).find('> a').append('<span class="expanded"></span>');
}
(0, _utility.$)(this).addClass('ontouchstart' in document.documentElement ? 'touch-device':'');
(0, _utility.$)('> a .expanded', this).on('touchstart', function (e){
e.preventDefault();
(0, _utility.$)(this).closest('.menu-item-has-children').toggleClass('submenu-visible');
});
if('#'===(0, _utility.$)('> a', this).attr('href')){
(0, _utility.$)('> a', this).on('touchstart', function (e){
e.preventDefault();
if(!(0, _utility.$)(e.target).hasClass('expanded')){
(0, _utility.$)(this).closest('.menu-item-has-children').toggleClass('submenu-visible');
}});
}});
},
stickyScroll: function stickyScroll(e){
var headerLargeHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-initial-height')),
headerCompactHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height'));
var headerStick=(0, _utility.$)('.cs-navbar-sticky-enabled .cs-header'),
headerBefore=(0, _utility.$)('.cs-header-before'),
headerStretch=(0, _utility.$)('.cs-header-stretch'),
headerStretchInaccuracy=headerStretch.length > 0 ? 10:0,
headerStickHeight=(0, _utility.$)('.cs-navbar-sticky-enabled .cs-header-stretch'),
wpAdminBar=(0, _utility.$)('#wpadminbar'),
headerSearch=(0, _utility.$)('.cs-search'),
offCanvas=(0, _utility.$)('.cs-offcanvas');
var headerDelta=headerStickHeight.length > 0 ? headerLargeHeight - headerCompactHeight:0,
wpAdminBarHeight=wpAdminBar.length > 0 ? wpAdminBar.outerHeight():0,
smartStart=headerBefore.length > 0 ? headerBefore.offset().top:headerStick.length > 0 ? headerStick.offset().top + wpAdminBarHeight:wpAdminBarHeight;
var scrollPoint=200,
scrollPrev=200,
scrollUpAmount=0,
windowWidth=_utility.$window.width();
(0, _utility.$)(window).scroll(function (){
var scrolled=(0, _utility.$)(window).scrollTop(),
headerStickPosition=headerStick.length > 0 ? headerStick.offset().top:0;
if(scrolled > smartStart + headerDelta + scrollPoint + headerStretchInaccuracy&&scrolled > scrollPrev){
headerStick.addClass('cs-scroll-active');
headerSearch.slideUp();
(0, _utility.$)(document).trigger('sticky-nav-hide');
}else{
if(scrollUpAmount >=scrollPoint||scrolled===0){
headerStick.removeClass('cs-scroll-active');
(0, _utility.$)(document).trigger('sticky-nav-visible');
}}
if(headerStickHeight.length > 0){
if(headerStickPosition <=scrolled + wpAdminBarHeight&&scrolled > smartStart + headerDelta){
headerStick.addClass('cs-scroll-sticky');
(0, _utility.$)(document).trigger('stretch-nav-to-small');
}else{
if(scrolled <=smartStart){
headerStick.removeClass('cs-scroll-sticky');
(0, _utility.$)(document).trigger('stretch-nav-to-big');
}}
}else{
if(headerStickPosition <=scrolled + wpAdminBarHeight&&scrolled + wpAdminBarHeight > smartStart){
headerStick.addClass('cs-scroll-sticky');
if(headerStretch.length > 0){
(0, _utility.$)(document).trigger('stretch-nav-to-small');
}}else{
headerStick.removeClass('cs-scroll-sticky');
if(headerStretch.length > 0){
(0, _utility.$)(document).trigger('stretch-nav-to-big');
}}
}
if(scrolled < scrollPrev){
scrollUpAmount +=scrollPrev - scrolled;
}else{
scrollUpAmount=0;
}
if(wpAdminBar.length > 0&&_utility.wndW <=600&&scrolled >=wpAdminBarHeight){
offCanvas.addClass('cs-offcanvas_scrolled');
}else{
offCanvas.removeClass('cs-offcanvas_scrolled');
}
scrollPrev=scrolled;
});
}};})();
cscoNavigation.init();
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
(function (){
(0, _utility.$)('.cs-header__offcanvas-toggle, .cs-site-overlay, .cs-offcanvas__toggle').on('click', function (e){
e.preventDefault();
if(!_utility.$body.hasClass('cs-offcanvas-active')){
_utility.$body.addClass('cs-offcanvas-transition');
}else{
setTimeout(function (){
_utility.$body.removeClass('cs-offcanvas-transition');
}, 400);
}
_utility.$body.toggleClass('cs-offcanvas-active');
});
})(); 
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
(function (){
function initResponsiveEmbeds(){
var proportion, parentWidth;
(0, _utility.$)('.entry-content').find('iframe').each(function (index, iframe){
if((0, _utility.$)(iframe).closest('div').is('[data-video-start], [data-video-end]')){
return;
}
if(iframe.width&&iframe.height){
proportion=parseFloat(iframe.width) / parseFloat(iframe.height);
parentWidth=parseFloat(window.getComputedStyle(iframe.parentElement, null).width.replace('px', ''));
iframe.style.maxWidth='100%';
iframe.style.maxHeight=Math.round(parentWidth / proportion).toString() + 'px';
}});
}
_utility.$doc.ready(function (){
initResponsiveEmbeds();
});
_utility.$body.on('post-load', function (){
initResponsiveEmbeds();
});
_utility.$window.on('resize', function (){
initResponsiveEmbeds();
});
initResponsiveEmbeds();
})(); 
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
var cscoDarkMode={}; 
(function (){
var $this;
cscoDarkMode={
init: function init(e){
$this=cscoDarkMode;
$this.events(e);
},
events: function events(e){
if((0, _utility.$)('body').hasClass('wp-admin')){
return;
}
window.addEventListener('load', function (e){
$this.loadMode(e);
});
(0, _utility.$)(document).on('click', '.cs-site-scheme-toggle', function (e){
$this.changeMode(e);
});
},
detectColorScheme: function detectColorScheme(color){
var level=190;
var alpha=1;
var rgba=[255, 255, 255];
var color_rgba=false;
color=color.trim();
if('#'===color[0]){
color=color.replace('#', '').trim();
if(3===color.length){
color=color[0] + color[0] + color[1] + color[1] + color[2] + color[2];
}
rgba[0]=parseInt(color.substr(0, 2), 16);
rgba[1]=parseInt(color.substr(2, 2), 16);
rgba[2]=parseInt(color.substr(4, 2), 16);
}else if(color_rgba=color.replace(/\s/g, '').match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i)){
rgba[0]=parseInt(color_rgba[1]);
rgba[1]=parseInt(color_rgba[2]);
rgba[2]=parseInt(color_rgba[3]);
if(color_rgba[4]!==undefined){
alpha=parseFloat(color_rgba[4]);
}}
rgba.forEach(function myFunction(channel, key, stack){
stack[key]=String(channel + Math.ceil((255 - channel) * (1 - alpha))).padStart(2, '0');
});
var scheme='default';
var brightness=(rgba[0] * 299 + rgba[1] * 587 + rgba[2] * 114) / 1000;
if(rgba[0]===rgba[1]&&rgba[1]===rgba[2]){
if(brightness < level){
scheme='dark';
}}else{
if(brightness < level){
scheme='inverse';
}}
return scheme;
},
setIndividualScheme: function setIndividualScheme(){
var list={
'body': '--cs-color-site-background',
'.cs-topbar': '--cs-color-topbar-background',
'.cs-header': '--cs-color-header-background',
'.cs-header__nav-inner .sub-menu': '--cs-color-submenu-background',
'.cs-header__multi-column-container': '--cs-color-submenu-background',
'.cs-header__widgets': '--cs-color-submenu-background',
'.cs-offcanvas__header': '--cs-color-header-background',
'.cs-search': '--cs-color-search-background',
'.cs-footer': '--cs-color-footer-background'
};
for (var key in list){
if((0, _utility.$)(key).length <=0){
continue;
}
(0, _utility.$)(key).each(function (index, element){
var color=window.getComputedStyle((0, _utility.$)(element)[0]).getPropertyValue(list[key]);
var scheme=$this.detectColorScheme(color);
(0, _utility.$)(element).attr('data-scheme', scheme);
});
}},
loadMode: function loadMode(e){
if('false'===csLocalize.darkMode){
return;
}
if('dark'===(0, _utility.csGetCookie)('_color_schema')&&'dark'!==_utility.$body.attr('site-data-scheme')){
$this.changeScheme('dark', false);
}else if(window.matchMedia&&-1===document.cookie.indexOf('_color_schema=')){
var systemSchema='default';
if(window.matchMedia('(prefers-color-scheme: dark)').matches){
systemSchema='dark';
}
(0, _utility.csSetCookie)('_color_system_schema', systemSchema, { expires: 2592000 });
$this.changeScheme(systemSchema, false);
}},
changeMode: function changeMode(e){
if('dark'===_utility.$body.attr('site-data-scheme')){
$this.changeScheme('default', true);
}else{
$this.changeScheme('dark', true);
}},
changeScheme: function changeScheme(scheme, cookie){
_utility.$body.addClass('cs-scheme-toggled');
_utility.$body.attr('site-data-scheme', scheme);
$this.setIndividualScheme();
if(cookie){
(0, _utility.csSetCookie)('_color_schema', scheme, { expires: 2592000 });
(0, _utility.csSetCookie)('_color_system_schema', null, { expires: 2592000 });
}
setTimeout(function (){
_utility.$body.removeClass('cs-scheme-toggled');
}, 100);
}};})();
cscoDarkMode.init();
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
(function (){
var focusSearchTimeout=void 0;
(0, _utility.$)('.cs-header__search-toggle').click(function (e){
if(!(0, _utility.$)('.cs-search').is(":visible")){
focusSearchTimeout=setTimeout(function (){
(0, _utility.$)('.cs-search .cs-search__input').focus();
}, 300);
}else{
clearTimeout(focusSearchTimeout);
}
(0, _utility.$)('.cs-search').stop().slideToggle();
e.preventDefault();
});
(0, _utility.$)('.cs-search__close').click(function (e){
(0, _utility.$)('.cs-search').slideUp();
e.preventDefault();
clearTimeout(focusSearchTimeout);
});
})(); 
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
(function (){
var stickyElementsSmart=[],
stickyElements=[];
stickyElementsSmart.push('.cs-navbar-smart-enabled .cs-entry__metabar-inner');
stickyElementsSmart.push('.cs-sticky-sidebar-enabled.cs-navbar-smart-enabled.cs-stick-to-top .cs-sidebar__inner');
stickyElementsSmart.push('.cs-sticky-sidebar-enabled.cs-navbar-smart-enabled.cs-stick-last .cs-sidebar__inner .widget:last-child');
stickyElementsSmart.push('.cs-sticky-sidebar-enabled.cs-navbar-smart-enabled .cnvs-block-section-sidebar-sticky-top .cnvs-block-section-sidebar-inner');
stickyElementsSmart.push('.cs-sticky-sidebar-enabled.cs-navbar-smart-enabled .cnvs-block-section-sidebar-sticky-top-last-block .cnvs-block-section-sidebar-inner > :last-child');
stickyElements.push('.cs-navbar-sticky-enabled .cs-entry__metabar-inner');
stickyElements.push('.cs-sticky-sidebar-enabled.cs-navbar-sticky-enabled.cs-stick-to-top .cs-sidebar__inner');
stickyElements.push('.cs-sticky-sidebar-enabled.cs-navbar-sticky-enabled.cs-stick-last .cs-sidebar__inner .widget:last-child');
stickyElements.push('.cs-sticky-sidebar-enabled.cs-navbar-sticky-enabled .cnvs-block-section-sidebar-sticky-top .cnvs-block-section-sidebar-inner');
stickyElements.push('.cs-sticky-sidebar-enabled.cs-navbar-sticky-enabled .cnvs-block-section-sidebar-sticky-top-last-block .cnvs-block-section-sidebar-inner > :last-child');
_utility.$doc.ready(function (){
var headerStick=(0, _utility.$)('.cs-header'),
wpAdminBar=(0, _utility.$)('#wpadminbar'),
headerStickHeight=headerStick.outerHeight(),
wpAdminBarHeight=wpAdminBar.outerHeight(),
headerStretch=(0, _utility.$)('.cs-header-stretch'),
headerStretchHeight=headerStretch.outerHeight(),
allHeight=(headerStickHeight||0) + (wpAdminBarHeight||0) + 20,
windowWidth=(0, _utility.$)(window).width();
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){
stickyElementsSmart.push('.cs-sticky-sidebar-enabled.cs-stick-to-bottom .cs-sidebar__inner');
stickyElements.push('.cs-sticky-sidebar-enabled.cs-stick-to-bottom .cs-sidebar__inner');
stickyElementsSmart.push('.cnvs-block-section-sidebar-sticky-bottom .cnvs-block-section-sidebar-inner');
stickyElements.push('.cnvs-block-section-sidebar-sticky-bottom .cnvs-block-section-sidebar-inner');
}
stickyElementsSmart=stickyElementsSmart.join(',');
stickyElements=stickyElements.join(',');
_utility.$doc.on('sticky-nav-visible', function (){
headerStickHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height'));
if(headerStretchHeight){
allHeight=(headerStretchHeight||0) + (wpAdminBarHeight||0) + 20;
}else{
allHeight=(headerStickHeight||0) + (wpAdminBarHeight||0) + 20;
}
(0, _utility.$)(stickyElementsSmart).css('top', allHeight + 'px');
});
_utility.$doc.on('sticky-nav-hide', function (){
headerStickHeight=0;
allHeight=(headerStickHeight||0) + (wpAdminBarHeight||0) + 20;
(0, _utility.$)(stickyElementsSmart).css('top', allHeight + 'px');
});
_utility.$doc.on('stretch-nav-to-small', function (){
headerStretchHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height'));
if(headerStretchHeight){
allHeight=(headerStretchHeight||0) + (wpAdminBarHeight||0) + 20;
}else{
allHeight=(headerStickHeight||0) + (wpAdminBarHeight||0) + 20;
}
if(headerStretch.hasClass("cs-scroll-sticky")&&!headerStretch.hasClass("cs-scroll-active")){
(0, _utility.$)(stickyElementsSmart).css('top', allHeight + 'px');
}});
_utility.$doc.on('stretch-nav-to-big', function (){
headerStretchHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-initial-height'));
});
if(_utility.$body.hasClass('cs-navbar-smart-enabled')&&windowWidth >=1020){
if(headerStretchHeight){
allHeight=(headerStretchHeight||0) + (wpAdminBarHeight||0) + 20;
}else{
allHeight=(headerStickHeight||0) + (wpAdminBarHeight||0) + 20;
}
(0, _utility.$)(stickyElementsSmart).css('top', allHeight + 'px');
}else if(_utility.$body.hasClass('cs-navbar-sticky-enabled')&&windowWidth >=1020){
if(headerStretchHeight){
allHeight=(headerStretchHeight||0) + (wpAdminBarHeight||0) + 20;
}else{
allHeight=(headerStickHeight||0) + (wpAdminBarHeight||0) + 20;
}
(0, _utility.$)(stickyElements).css('top', allHeight + 'px');
}
_utility.$window.resize(function (){
var windowWidthResize=_utility.$window.width();
if(windowWidthResize < 1020){
(0, _utility.$)(stickyElements).removeAttr('style');
(0, _utility.$)(stickyElementsSmart).removeAttr('style');
}});
});
})(); 
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
(function (){
var initAPI=false;
var process=false;
var contex=[];
var players=[];
var attrs=[];
var YTdeferred=_utility.$.Deferred();
window.onYouTubePlayerAPIReady=function (){
YTdeferred.resolve(window.YT);
};
function embedYoutubeAPI(){
var tag=document.createElement('script');
tag.src='https://www.youtube.com/iframe_api';
var firstScriptTag=document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
}
function rescaleVideoBackground(){
(0, _utility.$)('.cs-video-init').each(function (){
var w=(0, _utility.$)(this).parent().width();
var h=(0, _utility.$)(this).parent().height();
var hideControl=400;
var id=(0, _utility.$)(this).attr('data-uid');
if(w / h > 16 / 9){
players[id].setSize(w, w / 16 * 9 + hideControl);
}else{
players[id].setSize(h / 9 * 16, h + hideControl);
}});
}
function initVideoBackground(){
if((0, _utility.$)('body').hasClass('wp-admin')){
return;
}
if(process){
return;
}
process=true;
if(!initAPI){
var elements=(0, _utility.$)('.cs-video-wrapper[data-video-id]');
if(elements.length){
embedYoutubeAPI();
initAPI=true;
}}
if(!initAPI){
process=false;
return;
}
YTdeferred.done(function (YT){
(0, _utility.$)('.cs-video-inner').each(function (){
var isInit=(0, _utility.$)(this).hasClass('cs-video-init');
var id=null;
if(!isInit){
id=Math.random().toString(36).substr(2, 9);
}else{
id=(0, _utility.$)(this).attr('data-uid');
}
contex[id]=this;
var isActive=(0, _utility.$)(contex[id]).hasClass('active');
var isInView=(0, _utility.$)(contex[id]).isInViewport();
if(isInView&&!isInit){
(0, _utility.$)(contex[id]).addClass('cs-video-init');
(0, _utility.$)(contex[id]).attr('data-uid', id);
var videoID=(0, _utility.$)(contex[id]).parent().data('video-id');
var videoStart=(0, _utility.$)(contex[id]).parent().data('video-start');
var videoEnd=(0, _utility.$)(contex[id]).parent().data('video-end');
if(typeof videoID==='undefined'||!videoID){
return;
}
attrs[id]={
'videoId': videoID,
'startSeconds': videoStart,
'endSeconds': videoEnd,
'suggestedQuality': 'hd720'
};
players[id]=new YT.Player(contex[id], {
playerVars: {
autoplay: 0,
autohide: 1,
modestbranding: 1,
rel: 0,
showinfo: 0,
controls: 0,
disablekb: 1,
enablejsapi: 0,
iv_load_policy: 3,
playsinline: 1,
loop: 1
},
events: {
'onReady': function onReady(){
players[id].loadVideoById(attrs[id]);
players[id].mute();
},
'onStateChange': function onStateChange(e){
if(e.data===1){
(0, _utility.$)(contex[id]).parents('.cs-overlay, .cs-video-wrap').addClass('cs-video-bg-init');
(0, _utility.$)(contex[id]).addClass('active');
}else if(e.data===0){
players[id].seekTo(attrs[id].startSeconds);
}}
}});
rescaleVideoBackground();
}
var control=(0, _utility.$)(contex[id]).parents('.cs-overlay, .cs-video-wrap').find('.cs-player-state');
if(isActive&&isInit&&!(0, _utility.$)(control).hasClass('cs-player-upause')){
if(isInView&&(0, _utility.$)(control).hasClass('cs-player-play')){
(0, _utility.$)(control).removeClass('cs-player-play').addClass('cs-player-pause');
players[id].playVideo();
}
if(!isInView&&(0, _utility.$)(control).hasClass('cs-player-pause')){
(0, _utility.$)(control).removeClass('cs-player-pause').addClass('cs-player-play');
players[id].pauseVideo();
}}
});
});
process=false;
}
_utility.$doc.on('click', '.cs-player-state', function (){
var container=(0, _utility.$)(this).parents('.cs-overlay, .cs-video-wrap').find('.cs-video-inner');
var id=(0, _utility.$)(container).attr('data-uid');
(0, _utility.$)(this).toggleClass('cs-player-pause cs-player-play');
if((0, _utility.$)(this).hasClass('cs-player-pause')){
(0, _utility.$)(this).removeClass('cs-player-upause');
players[id].playVideo();
}else{
(0, _utility.$)(this).addClass('cs-player-upause');
players[id].pauseVideo();
}});
_utility.$doc.on('click', '.cs-player-stop', function (){
var container=(0, _utility.$)(this).parents('.cs-overlay, .cs-video-wrap').find('.cs-video-inner');
var id=(0, _utility.$)(container).attr('data-uid');
(0, _utility.$)(this).siblings('.cs-player-state').removeClass('cs-player-pause').addClass('cs-player-play');
(0, _utility.$)(this).siblings('.cs-player-state').addClass('cs-player-upause');
players[id].pauseVideo();
});
_utility.$doc.on('click', '.cs-player-volume', function (){
var container=(0, _utility.$)(this).parents('.cs-overlay, .cs-video-wrap').find('.cs-video-inner');
var id=(0, _utility.$)(container).attr('data-uid');
(0, _utility.$)(this).toggleClass('cs-player-mute cs-player-unmute');
if((0, _utility.$)(this).hasClass('cs-player-unmute')){
players[id].unMute();
}else{
players[id].mute();
}});
_utility.$window.on('load scroll resize scrollstop', function (){
initVideoBackground();
});
_utility.$doc.ready(function (){
initVideoBackground();
});
_utility.$body.on('post-load', function (){
initVideoBackground();
});
_utility.$window.on('resize', function (){
rescaleVideoBackground();
});
initVideoBackground();
})(); 
}),
(function(module, exports, __webpack_require__){
"use strict";
var _utility=__webpack_require__(0);
(function (){
_utility.$.fn.responsiveNav=function (){
this.removeClass('menu-item-expanded');
if(this.prev().hasClass('submenu-visible')){
this.prev().removeClass('submenu-visible').slideUp(350);
this.parent().removeClass('menu-item-expanded');
}else{
this.parent().parent().find('.menu-item .sub-menu').removeClass('submenu-visible').slideUp(350);
this.parent().parent().find('.menu-item-expanded').removeClass('menu-item-expanded');
this.prev().toggleClass('submenu-visible').hide().slideToggle(350);
this.parent().toggleClass('menu-item-expanded');
}};
(0, _utility.$)(document).ready(function (e){
(0, _utility.$)('.widget_nav_menu .menu-item-has-children').each(function (e){
(0, _utility.$)(this).append('<span></span>');
(0, _utility.$)('> span', this).on('click', function (e){
e.preventDefault();
(0, _utility.$)(this).responsiveNav();
});
if('#'===(0, _utility.$)('> a', this).attr('href')){
(0, _utility.$)('> a', this).on('click', function (e){
e.preventDefault();
(0, _utility.$)(this).next().next().responsiveNav();
});
}});
});
})(); 
})
]);