if(typeof jQuery==='undefined'){
throw new Error('Bootstrap\'s JavaScript requires jQuery')
}
+function ($){
var version=$.fn.jquery.split(' ')[0].split('.')
if((version[0] < 2&&version[1] < 9)||(version[0]==1&&version[1]==9&&version[2] < 1)){
throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher')
}}(jQuery);
+function ($){
'use strict';
function transitionEnd(){
var el=document.createElement('bootstrap')
var transEndEventNames={
WebkitTransition:'webkitTransitionEnd',
MozTransition:'transitionend',
OTransition:'oTransitionEnd otransitionend',
transition:'transitionend'
}
for (var name in transEndEventNames){
if(el.style[name]!==undefined){
return { end: transEndEventNames[name] }}
}
return false
}
$.fn.emulateTransitionEnd=function (duration){
var called=false
var $el=this
$(this).one('bsTransitionEnd', function (){ called=true })
var callback=function (){ if(!called) $($el).trigger($.support.transition.end) }
setTimeout(callback, duration)
return this
}
$(function (){
$.support.transition=transitionEnd()
if(!$.support.transition) return
$.event.special.bsTransitionEnd={
bindType: $.support.transition.end,
delegateType: $.support.transition.end,
handle: function (e){
if($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
}}
})
}(jQuery);
+function ($){
'use strict';
var dismiss='[data-dismiss="alert"]'
var Alert=function (el){
$(el).on('click', dismiss, this.close)
}
Alert.VERSION='3.3.0'
Alert.TRANSITION_DURATION=150
Alert.prototype.close=function (e){
var $this=$(this)
var selector=$this.attr('data-target')
if(!selector){
selector=$this.attr('href')
selector=selector&&selector.replace(/.*(?=#[^\s]*$)/, '')
}
var $parent=$(selector)
if(e) e.preventDefault()
if(!$parent.length){
$parent=$this.closest('.alert')
}
$parent.trigger(e=$.Event('close.bs.alert'))
if(e.isDefaultPrevented()) return
$parent.removeClass('in')
function removeElement(){
$parent.detach().trigger('closed.bs.alert').remove()
}
$.support.transition&&$parent.hasClass('fade') ?
$parent
.one('bsTransitionEnd', removeElement)
.emulateTransitionEnd(Alert.TRANSITION_DURATION) :
removeElement()
}
function Plugin(option){
return this.each(function (){
var $this=$(this)
var data=$this.data('bs.alert')
if(!data) $this.data('bs.alert', (data=new Alert(this)))
if(typeof option=='string') data[option].call($this)
})
}
var old=$.fn.alert
$.fn.alert=Plugin
$.fn.alert.Constructor=Alert
$.fn.alert.noConflict=function (){
$.fn.alert=old
return this
}
$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
}(jQuery);
+function ($){
'use strict';
var Button=function (element, options){
this.$element=$(element)
this.options=$.extend({}, Button.DEFAULTS, options)
this.isLoading=false
}
Button.VERSION='3.3.0'
Button.DEFAULTS={
loadingText: 'loading...'
}
Button.prototype.setState=function (state){
var d='disabled'
var $el=this.$element
var val=$el.is('input') ? 'val':'html'
var data=$el.data()
state=state + 'Text'
if(data.resetText==null) $el.data('resetText', $el[val]())
setTimeout($.proxy(function (){
$el[val](data[state]==null ? this.options[state]:data[state])
if(state=='loadingText'){
this.isLoading=true
$el.addClass(d).attr(d, d)
}else if(this.isLoading){
this.isLoading=false
$el.removeClass(d).removeAttr(d)
}}, this), 0)
}
Button.prototype.toggle=function (){
var changed=true
var $parent=this.$element.closest('[data-toggle="buttons"]')
if($parent.length){
var $input=this.$element.find('input')
if($input.prop('type')=='radio'){
if($input.prop('checked')&&this.$element.hasClass('active')) changed=false
else $parent.find('.active').removeClass('active')
}
if(changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change')
}else{
this.$element.attr('aria-pressed', !this.$element.hasClass('active'))
}
if(changed) this.$element.toggleClass('active')
}
function Plugin(option){
return this.each(function (){
var $this=$(this)
var data=$this.data('bs.button')
var options=typeof option=='object'&&option
if(!data) $this.data('bs.button', (data=new Button(this, options)))
if(option=='toggle') data.toggle()
else if(option) data.setState(option)
})
}
var old=$.fn.button
$.fn.button=Plugin
$.fn.button.Constructor=Button
$.fn.button.noConflict=function (){
$.fn.button=old
return this
}
$(document)
.on('click.bs.button.data-api', '[data-toggle^="button"]', function (e){
var $btn=$(e.target)
if(!$btn.hasClass('btn')) $btn=$btn.closest('.btn')
Plugin.call($btn, 'toggle')
e.preventDefault()
})
.on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e){
$(e.target).closest('.btn').toggleClass('focus', e.type=='focus')
})
}(jQuery);
+function ($){
'use strict';
var Carousel=function (element, options){
this.$element=$(element)
this.$indicators=this.$element.find('.carousel-indicators')
this.options=options
this.paused      =
this.sliding     =
this.interval    =
this.$active     =
this.$items=null
this.options.keyboard&&this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))
this.options.pause=='hover'&&!('ontouchstart' in document.documentElement)&&this.$element
.on('mouseenter.bs.carousel', $.proxy(this.pause, this))
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
}
Carousel.VERSION='3.3.0'
Carousel.TRANSITION_DURATION=600
Carousel.DEFAULTS={
interval: 5000,
pause: 'hover',
wrap: true,
keyboard: true
}
Carousel.prototype.keydown=function (e){
switch (e.which){
case 37: this.prev(); break
case 39: this.next(); break
default: return
}
e.preventDefault()
}
Carousel.prototype.cycle=function (e){
e||(this.paused=false)
this.interval&&clearInterval(this.interval)
this.options.interval
&& !this.paused
&& (this.interval=setInterval($.proxy(this.next, this), this.options.interval))
return this
}
Carousel.prototype.getItemIndex=function (item){
this.$items=item.parent().children('.item')
return this.$items.index(item||this.$active)
}
Carousel.prototype.getItemForDirection=function (direction, active){
var delta=direction=='prev' ? -1:1
var activeIndex=this.getItemIndex(active)
var itemIndex=(activeIndex + delta) % this.$items.length
return this.$items.eq(itemIndex)
}
Carousel.prototype.to=function (pos){
var that=this
var activeIndex=this.getItemIndex(this.$active=this.$element.find('.item.active'))
if(pos > (this.$items.length - 1)||pos < 0) return
if(this.sliding)       return this.$element.one('slid.bs.carousel', function (){ that.to(pos) })
if(activeIndex==pos) return this.pause().cycle()
return this.slide(pos > activeIndex ? 'next':'prev', this.$items.eq(pos))
}
Carousel.prototype.pause=function (e){
e||(this.paused=true)
if(this.$element.find('.next, .prev').length&&$.support.transition){
this.$element.trigger($.support.transition.end)
this.cycle(true)
}
this.interval=clearInterval(this.interval)
return this
}
Carousel.prototype.next=function (){
if(this.sliding) return
return this.slide('next')
}
Carousel.prototype.prev=function (){
if(this.sliding) return
return this.slide('prev')
}
Carousel.prototype.slide=function (type, next){
var $active=this.$element.find('.item.active')
var $next=next||this.getItemForDirection(type, $active)
var isCycling=this.interval
var direction=type=='next' ? 'left':'right'
var fallback=type=='next' ? 'first':'last'
var that=this
if(!$next.length){
if(!this.options.wrap) return
$next=this.$element.find('.item')[fallback]()
}
if($next.hasClass('active')) return (this.sliding=false)
var relatedTarget=$next[0]
var slideEvent=$.Event('slide.bs.carousel', {
relatedTarget: relatedTarget,
direction: direction
})
this.$element.trigger(slideEvent)
if(slideEvent.isDefaultPrevented()) return
this.sliding=true
isCycling&&this.pause()
if(this.$indicators.length){
this.$indicators.find('.active').removeClass('active')
var $nextIndicator=$(this.$indicators.children()[this.getItemIndex($next)])
$nextIndicator&&$nextIndicator.addClass('active')
}
var slidEvent=$.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction })
if($.support.transition&&this.$element.hasClass('slide')){
$next.addClass(type)
$next[0].offsetWidth
$active.addClass(direction)
$next.addClass(direction)
$active
.one('bsTransitionEnd', function (){
$next.removeClass([type, direction].join(' ')).addClass('active')
$active.removeClass(['active', direction].join(' '))
that.sliding=false
setTimeout(function (){
that.$element.trigger(slidEvent)
}, 0)
})
.emulateTransitionEnd(Carousel.TRANSITION_DURATION)
}else{
$active.removeClass('active')
$next.addClass('active')
this.sliding=false
this.$element.trigger(slidEvent)
}
isCycling&&this.cycle()
return this
}
function Plugin(option){
return this.each(function (){
var $this=$(this)
var data=$this.data('bs.carousel')
var options=$.extend({}, Carousel.DEFAULTS, $this.data(), typeof option=='object'&&option)
var action=typeof option=='string' ? option:options.slide
if(!data) $this.data('bs.carousel', (data=new Carousel(this, options)))
if(typeof option=='number') data.to(option)
else if(action) data[action]()
else if(options.interval) data.pause().cycle()
})
}
var old=$.fn.carousel
$.fn.carousel=Plugin
$.fn.carousel.Constructor=Carousel
$.fn.carousel.noConflict=function (){
$.fn.carousel=old
return this
}
var clickHandler=function (e){
var href
var $this=$(this)
var $target=$($this.attr('data-target')||(href=$this.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/, ''))
if(!$target.hasClass('carousel')) return
var options=$.extend({}, $target.data(), $this.data())
var slideIndex=$this.attr('data-slide-to')
if(slideIndex) options.interval=false
Plugin.call($target, options)
if(slideIndex){
$target.data('bs.carousel').to(slideIndex)
}
e.preventDefault()
}
$(document)
.on('click.bs.carousel.data-api', '[data-slide]', clickHandler)
.on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler)
$(window).on('load', function (){
$('[data-ride="carousel"]').each(function (){
var $carousel=$(this)
Plugin.call($carousel, $carousel.data())
})
})
}(jQuery);
+function ($){
'use strict';
var Collapse=function (element, options){
this.$element=$(element)
this.options=$.extend({}, Collapse.DEFAULTS, options)
this.$trigger=$(this.options.trigger).filter('[href="#' + element.id + '"], [data-target="#' + element.id + '"]')
this.transitioning=null
if(this.options.parent){
this.$parent=this.getParent()
}else{
this.addAriaAndCollapsedClass(this.$element, this.$trigger)
}
if(this.options.toggle) this.toggle()
}
Collapse.VERSION='3.3.0'
Collapse.TRANSITION_DURATION=350
Collapse.DEFAULTS={
toggle: true,
trigger: '[data-toggle="collapse"]'
}
Collapse.prototype.dimension=function (){
var hasWidth=this.$element.hasClass('width')
return hasWidth ? 'width':'height'
}
Collapse.prototype.show=function (){
if(this.transitioning||this.$element.hasClass('in')) return
var activesData
var actives=this.$parent&&this.$parent.find('> .panel').children('.in, .collapsing')
if(actives&&actives.length){
activesData=actives.data('bs.collapse')
if(activesData&&activesData.transitioning) return
}
var startEvent=$.Event('show.bs.collapse')
this.$element.trigger(startEvent)
if(startEvent.isDefaultPrevented()) return
if(actives&&actives.length){
Plugin.call(actives, 'hide')
activesData||actives.data('bs.collapse', null)
}
var dimension=this.dimension()
this.$element
.removeClass('collapse')
.addClass('collapsing')[dimension](0)
.attr('aria-expanded', true)
this.$trigger
.removeClass('collapsed')
.attr('aria-expanded', true)
this.transitioning=1
var complete=function (){
this.$element
.removeClass('collapsing')
.addClass('collapse in')[dimension]('')
this.transitioning=0
this.$element
.trigger('shown.bs.collapse')
}
if(!$.support.transition) return complete.call(this)
var scrollSize=$.camelCase(['scroll', dimension].join('-'))
this.$element
.one('bsTransitionEnd', $.proxy(complete, this))
.emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])
}
Collapse.prototype.hide=function (){
if(this.transitioning||!this.$element.hasClass('in')) return
var startEvent=$.Event('hide.bs.collapse')
this.$element.trigger(startEvent)
if(startEvent.isDefaultPrevented()) return
var dimension=this.dimension()
this.$element[dimension](this.$element[dimension]())[0].offsetHeight
this.$element
.addClass('collapsing')
.removeClass('collapse in')
.attr('aria-expanded', false)
this.$trigger
.addClass('collapsed')
.attr('aria-expanded', false)
this.transitioning=1
var complete=function (){
this.transitioning=0
this.$element
.removeClass('collapsing')
.addClass('collapse')
.trigger('hidden.bs.collapse')
}
if(!$.support.transition) return complete.call(this)
this.$element
[dimension](0)
.one('bsTransitionEnd', $.proxy(complete, this))
.emulateTransitionEnd(Collapse.TRANSITION_DURATION)
}
Collapse.prototype.toggle=function (){
this[this.$element.hasClass('in') ? 'hide':'show']()
}
Collapse.prototype.getParent=function (){
return $(this.options.parent)
.find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
.each($.proxy(function (i, element){
var $element=$(element)
this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element)
}, this))
.end()
}
Collapse.prototype.addAriaAndCollapsedClass=function ($element, $trigger){
var isOpen=$element.hasClass('in')
$element.attr('aria-expanded', isOpen)
$trigger
.toggleClass('collapsed', !isOpen)
.attr('aria-expanded', isOpen)
}
function getTargetFromTrigger($trigger){
var href
var target=$trigger.attr('data-target')
|| (href=$trigger.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/, '')
return $(target)
}
function Plugin(option){
return this.each(function (){
var $this=$(this)
var data=$this.data('bs.collapse')
var options=$.extend({}, Collapse.DEFAULTS, $this.data(), typeof option=='object'&&option)
if(!data&&options.toggle&&option=='show') options.toggle=false
if(!data) $this.data('bs.collapse', (data=new Collapse(this, options)))
if(typeof option=='string') data[option]()
})
}
var old=$.fn.collapse
$.fn.collapse=Plugin
$.fn.collapse.Constructor=Collapse
$.fn.collapse.noConflict=function (){
$.fn.collapse=old
return this
}
$(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e){
var $this=$(this)
if(!$this.attr('data-target')) e.preventDefault()
var $target=getTargetFromTrigger($this)
var data=$target.data('bs.collapse')
var option=data ? 'toggle':$.extend({}, $this.data(), { trigger: this })
Plugin.call($target, option)
})
}(jQuery);
+function ($){
'use strict';
var backdrop='.dropdown-backdrop'
var toggle='[data-toggle="dropdown"]'
var Dropdown=function (element){
$(element).on('click.bs.dropdown', this.toggle)
}
Dropdown.VERSION='3.3.0'
Dropdown.prototype.toggle=function (e){
var $this=$(this)
if($this.is('.disabled, :disabled')) return
var $parent=getParent($this)
var isActive=$parent.hasClass('open')
clearMenus()
if(!isActive){
if('ontouchstart' in document.documentElement&&!$parent.closest('.navbar-nav').length){
$('<div class="dropdown-backdrop"/>').insertAfter($(this)).on('click', clearMenus)
}
var relatedTarget={ relatedTarget: this }
$parent.trigger(e=$.Event('show.bs.dropdown', relatedTarget))
if(e.isDefaultPrevented()) return
$this
.trigger('focus')
.attr('aria-expanded', 'true')
$parent
.toggleClass('open')
.trigger('shown.bs.dropdown', relatedTarget)
}
return false
}
Dropdown.prototype.keydown=function (e){
if(!/(38|40|27|32)/.test(e.which)) return
var $this=$(this)
e.preventDefault()
e.stopPropagation()
if($this.is('.disabled, :disabled')) return
var $parent=getParent($this)
var isActive=$parent.hasClass('open')
if((!isActive&&e.which!=27)||(isActive&&e.which==27)){
if(e.which==27) $parent.find(toggle).trigger('focus')
return $this.trigger('click')
}
var desc=' li:not(.divider):visible a'
var $items=$parent.find('[role="menu"]' + desc + ', [role="listbox"]' + desc)
if(!$items.length) return
var index=$items.index(e.target)
if(e.which==38&&index > 0)                 index--
if(e.which==40&&index < $items.length - 1) index++
if(!~index)                                      index=0
$items.eq(index).trigger('focus')
}
function clearMenus(e){
if(e&&e.which===3) return
$(backdrop).remove()
$(toggle).each(function (){
var $this=$(this)
var $parent=getParent($this)
var relatedTarget={ relatedTarget: this }
if(!$parent.hasClass('open')) return
$parent.trigger(e=$.Event('hide.bs.dropdown', relatedTarget))
if(e.isDefaultPrevented()) return
$this.attr('aria-expanded', 'false')
$parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget)
})
}
function getParent($this){
var selector=$this.attr('data-target')
if(!selector){
selector=$this.attr('href')
selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/, '')
}
var $parent=selector&&$(selector)
return $parent&&$parent.length ? $parent:$this.parent()
}
function Plugin(option){
return this.each(function (){
var $this=$(this)
var data=$this.data('bs.dropdown')
if(!data) $this.data('bs.dropdown', (data=new Dropdown(this)))
if(typeof option=='string') data[option].call($this)
})
}
var old=$.fn.dropdown
$.fn.dropdown=Plugin
$.fn.dropdown.Constructor=Dropdown
$.fn.dropdown.noConflict=function (){
$.fn.dropdown=old
return this
}
$(document)
.on('click.bs.dropdown.data-api', clearMenus)
.on('click.bs.dropdown.data-api', '.dropdown form', function (e){ e.stopPropagation() })
.on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
.on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown)
.on('keydown.bs.dropdown.data-api', '[role="menu"]', Dropdown.prototype.keydown)
.on('keydown.bs.dropdown.data-api', '[role="listbox"]', Dropdown.prototype.keydown)
}(jQuery);
+function ($){
'use strict';
var Modal=function (element, options){
this.options=options
this.$body=$(document.body)
this.$element=$(element)
this.$backdrop      =
this.isShown=null
this.scrollbarWidth=0
if(this.options.remote){
this.$element
.find('.modal-content')
.load(this.options.remote, $.proxy(function (){
this.$element.trigger('loaded.bs.modal')
}, this))
}}
Modal.VERSION='3.3.0'
Modal.TRANSITION_DURATION=300
Modal.BACKDROP_TRANSITION_DURATION=150
Modal.DEFAULTS={
backdrop: true,
keyboard: true,
show: true
}
Modal.prototype.toggle=function (_relatedTarget){
return this.isShown ? this.hide():this.show(_relatedTarget)
}
Modal.prototype.show=function (_relatedTarget){
var that=this
var e=$.Event('show.bs.modal', { relatedTarget: _relatedTarget })
this.$element.trigger(e)
if(this.isShown||e.isDefaultPrevented()) return
this.isShown=true
this.checkScrollbar()
this.$body.addClass('modal-open')
this.setScrollbar()
this.escape()
this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
this.backdrop(function (){
var transition=$.support.transition&&that.$element.hasClass('fade')
if(!that.$element.parent().length){
that.$element.appendTo(that.$body)
}
that.$element
.show()
.scrollTop(0)
if(transition){
that.$element[0].offsetWidth
}
that.$element
.addClass('in')
.attr('aria-hidden', false)
that.enforceFocus()
var e=$.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
transition ?
that.$element.find('.modal-dialog')
.one('bsTransitionEnd', function (){
that.$element.trigger('focus').trigger(e)
})
.emulateTransitionEnd(Modal.TRANSITION_DURATION) :
that.$element.trigger('focus').trigger(e)
})
}
Modal.prototype.hide=function (e){
if(e) e.preventDefault()
e=$.Event('hide.bs.modal')
this.$element.trigger(e)
if(!this.isShown||e.isDefaultPrevented()) return
this.isShown=false
this.escape()
$(document).off('focusin.bs.modal')
this.$element
.removeClass('in')
.attr('aria-hidden', true)
.off('click.dismiss.bs.modal')
$.support.transition&&this.$element.hasClass('fade') ?
this.$element
.one('bsTransitionEnd', $.proxy(this.hideModal, this))
.emulateTransitionEnd(Modal.TRANSITION_DURATION) :
this.hideModal()
}
Modal.prototype.enforceFocus=function (){
$(document)
.off('focusin.bs.modal')
.on('focusin.bs.modal', $.proxy(function (e){
if(this.$element[0]!==e.target&&!this.$element.has(e.target).length){
this.$element.trigger('focus')
}}, this))
}
Modal.prototype.escape=function (){
if(this.isShown&&this.options.keyboard){
this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e){
e.which==27&&this.hide()
}, this))
}else if(!this.isShown){
this.$element.off('keydown.dismiss.bs.modal')
}}
Modal.prototype.hideModal=function (){
var that=this
this.$element.hide()
this.backdrop(function (){
that.$body.removeClass('modal-open')
that.resetScrollbar()
that.$element.trigger('hidden.bs.modal')
})
}
Modal.prototype.removeBackdrop=function (){
this.$backdrop&&this.$backdrop.remove()
this.$backdrop=null
}
Modal.prototype.backdrop=function (callback){
var that=this
var animate=this.$element.hasClass('fade') ? 'fade':''
if(this.isShown&&this.options.backdrop){
var doAnimate=$.support.transition&&animate
this.$backdrop=$('<div class="modal-backdrop ' + animate + '" />')
.prependTo(this.$element)
.on('click.dismiss.bs.modal', $.proxy(function (e){
if(e.target!==e.currentTarget) return
this.options.backdrop=='static'
? this.$element[0].focus.call(this.$element[0])
: this.hide.call(this)
}, this))
if(doAnimate) this.$backdrop[0].offsetWidth
this.$backdrop.addClass('in')
if(!callback) return
doAnimate ?
this.$backdrop
.one('bsTransitionEnd', callback)
.emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
callback()
}else if(!this.isShown&&this.$backdrop){
this.$backdrop.removeClass('in')
var callbackRemove=function (){
that.removeBackdrop()
callback&&callback()
}
$.support.transition&&this.$element.hasClass('fade') ?
this.$backdrop
.one('bsTransitionEnd', callbackRemove)
.emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
callbackRemove()
}else if(callback){
callback()
}}
Modal.prototype.checkScrollbar=function (){
this.scrollbarWidth=this.measureScrollbar()
}
Modal.prototype.setScrollbar=function (){
var bodyPad=parseInt((this.$body.css('padding-right')||0), 10)
if(this.scrollbarWidth) this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
}
Modal.prototype.resetScrollbar=function (){
this.$body.css('padding-right', '')
}
Modal.prototype.measureScrollbar=function (){
if(document.body.clientWidth >=window.innerWidth) return 0
var scrollDiv=document.createElement('div')
scrollDiv.className='modal-scrollbar-measure'
this.$body.append(scrollDiv)
var scrollbarWidth=scrollDiv.offsetWidth - scrollDiv.clientWidth
this.$body[0].removeChild(scrollDiv)
return scrollbarWidth
}
function Plugin(option, _relatedTarget){
return this.each(function (){
var $this=$(this)
var data=$this.data('bs.modal')
var options=$.extend({}, Modal.DEFAULTS, $this.data(), typeof option=='object'&&option)
if(!data) $this.data('bs.modal', (data=new Modal(this, options)))
if(typeof option=='string') data[option](_relatedTarget)
else if(options.show) data.show(_relatedTarget)
})
}
var old=$.fn.modal
$.fn.modal=Plugin
$.fn.modal.Constructor=Modal
$.fn.modal.noConflict=function (){
$.fn.modal=old
return this
}
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e){
var $this=$(this)
var href=$this.attr('href')
var $target=$($this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/, '')))
var option=$target.data('bs.modal') ? 'toggle':$.extend({ remote: !/#/.test(href)&&href }, $target.data(), $this.data())
if($this.is('a')) e.preventDefault()
$target.one('show.bs.modal', function (showEvent){
if(showEvent.isDefaultPrevented()) return
$target.one('hidden.bs.modal', function (){
$this.is(':visible')&&$this.trigger('focus')
})
})
Plugin.call($target, option, this)
})
}(jQuery);
+function ($){
'use strict';
var Tooltip=function (element, options){
this.type       =
this.options    =
this.enabled    =
this.timeout    =
this.hoverState =
this.$element=null
this.init('tooltip', element, options)
}
Tooltip.VERSION='3.3.0'
Tooltip.TRANSITION_DURATION=150
Tooltip.DEFAULTS={
animation: true,
placement: 'top',
selector: false,
template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
trigger: 'hover focus',
title: '',
delay: 0,
html: false,
container: false,
viewport: {
selector: 'body',
padding: 0
}}
Tooltip.prototype.init=function (type, element, options){
this.enabled=true
this.type=type
this.$element=$(element)
this.options=this.getOptions(options)
this.$viewport=this.options.viewport&&$(this.options.viewport.selector||this.options.viewport)
var triggers=this.options.trigger.split(' ')
for (var i=triggers.length; i--;){
var trigger=triggers[i]
if(trigger=='click'){
this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
}else if(trigger!='manual'){
var eventIn=trigger=='hover' ? 'mouseenter':'focusin'
var eventOut=trigger=='hover' ? 'mouseleave':'focusout'
this.$element.on(eventIn  + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
}}
this.options.selector ?
(this._options=$.extend({}, this.options, { trigger: 'manual', selector: '' })) :
this.fixTitle()
}
Tooltip.prototype.getDefaults=function (){
return Tooltip.DEFAULTS
}
Tooltip.prototype.getOptions=function (options){
options=$.extend({}, this.getDefaults(), this.$element.data(), options)
if(options.delay&&typeof options.delay=='number'){
options.delay={
show: options.delay,
hide: options.delay
}}
return options
}
Tooltip.prototype.getDelegateOptions=function (){
var options={}
var defaults=this.getDefaults()
this._options&&$.each(this._options, function (key, value){
if(defaults[key]!=value) options[key]=value
})
return options
}
Tooltip.prototype.enter=function (obj){
var self=obj instanceof this.constructor ?
obj:$(obj.currentTarget).data('bs.' + this.type)
if(self&&self.$tip&&self.$tip.is(':visible')){
self.hoverState='in'
return
}
if(!self){
self=new this.constructor(obj.currentTarget, this.getDelegateOptions())
$(obj.currentTarget).data('bs.' + this.type, self)
}
clearTimeout(self.timeout)
self.hoverState='in'
if(!self.options.delay||!self.options.delay.show) return self.show()
self.timeout=setTimeout(function (){
if(self.hoverState=='in') self.show()
}, self.options.delay.show)
}
Tooltip.prototype.leave=function (obj){
var self=obj instanceof this.constructor ?
obj:$(obj.currentTarget).data('bs.' + this.type)
if(!self){
self=new this.constructor(obj.currentTarget, this.getDelegateOptions())
$(obj.currentTarget).data('bs.' + this.type, self)
}
clearTimeout(self.timeout)
self.hoverState='out'
if(!self.options.delay||!self.options.delay.hide) return self.hide()
self.timeout=setTimeout(function (){
if(self.hoverState=='out') self.hide()
}, self.options.delay.hide)
}
Tooltip.prototype.show=function (){
var e=$.Event('show.bs.' + this.type)
if(this.hasContent()&&this.enabled){
this.$element.trigger(e)
var inDom=$.contains(this.$element[0].ownerDocument.documentElement, this.$element[0])
if(e.isDefaultPrevented()||!inDom) return
var that=this
var $tip=this.tip()
var tipId=this.getUID(this.type)
this.setContent()
$tip.attr('id', tipId)
this.$element.attr('aria-describedby', tipId)
if(this.options.animation) $tip.addClass('fade')
var placement=typeof this.options.placement=='function' ?
this.options.placement.call(this, $tip[0], this.$element[0]) :
this.options.placement
var autoToken=/\s?auto?\s?/i
var autoPlace=autoToken.test(placement)
if(autoPlace) placement=placement.replace(autoToken, '')||'top'
$tip
.detach()
.css({ top: 0, left: 0, display: 'block' })
.addClass(placement)
.data('bs.' + this.type, this)
this.options.container ? $tip.appendTo(this.options.container):$tip.insertAfter(this.$element)
var pos=this.getPosition()
var actualWidth=$tip[0].offsetWidth
var actualHeight=$tip[0].offsetHeight
if(autoPlace){
var orgPlacement=placement
var $container=this.options.container ? $(this.options.container):this.$element.parent()
var containerDim=this.getPosition($container)
placement=placement=='bottom'&&pos.bottom + actualHeight > containerDim.bottom ? 'top'    :
placement=='top'&&pos.top    - actualHeight < containerDim.top    ? 'bottom' :
placement=='right'&&pos.right  + actualWidth  > containerDim.width  ? 'left'   :
placement=='left'&&pos.left   - actualWidth  < containerDim.left   ? 'right'  :
placement
$tip
.removeClass(orgPlacement)
.addClass(placement)
}
var calculatedOffset=this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
this.applyPlacement(calculatedOffset, placement)
var complete=function (){
var prevHoverState=that.hoverState
that.$element.trigger('shown.bs.' + that.type)
that.hoverState=null
if(prevHoverState=='out') that.leave(that)
}
$.support.transition&&this.$tip.hasClass('fade') ?
$tip
.one('bsTransitionEnd', complete)
.emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
complete()
}}
Tooltip.prototype.applyPlacement=function (offset, placement){
var $tip=this.tip()
var width=$tip[0].offsetWidth
var height=$tip[0].offsetHeight
var marginTop=parseInt($tip.css('margin-top'), 10)
var marginLeft=parseInt($tip.css('margin-left'), 10)
if(isNaN(marginTop))  marginTop=0
if(isNaN(marginLeft)) marginLeft=0
offset.top=offset.top  + marginTop
offset.left=offset.left + marginLeft
$.offset.setOffset($tip[0], $.extend({
using: function (props){
$tip.css({
top: Math.round(props.top),
left: Math.round(props.left)
})
}}, offset), 0)
$tip.addClass('in')
var actualWidth=$tip[0].offsetWidth
var actualHeight=$tip[0].offsetHeight
if(placement=='top'&&actualHeight!=height){
offset.top=offset.top + height - actualHeight
}
var delta=this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight)
if(delta.left) offset.left +=delta.left
else offset.top +=delta.top
var isVertical=/top|bottom/.test(placement)
var arrowDelta=isVertical ? delta.left * 2 - width + actualWidth:delta.top * 2 - height + actualHeight
var arrowOffsetPosition=isVertical ? 'offsetWidth':'offsetHeight'
$tip.offset(offset)
this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical)
}
Tooltip.prototype.replaceArrow=function (delta, dimension, isHorizontal){
this.arrow()
.css(isHorizontal ? 'left':'top', 50 * (1 - delta / dimension) + '%')
.css(isHorizontal ? 'top':'left', '')
}
Tooltip.prototype.setContent=function (){
var $tip=this.tip()
var title=this.getTitle()
$tip.find('.tooltip-inner')[this.options.html ? 'html':'text'](title)
$tip.removeClass('fade in top bottom left right')
}
Tooltip.prototype.hide=function (callback){
var that=this
var $tip=this.tip()
var e=$.Event('hide.bs.' + this.type)
function complete(){
if(that.hoverState!='in') $tip.detach()
that.$element
.removeAttr('aria-describedby')
.trigger('hidden.bs.' + that.type)
callback&&callback()
}
this.$element.trigger(e)
if(e.isDefaultPrevented()) return
$tip.removeClass('in')
$.support.transition&&this.$tip.hasClass('fade') ?
$tip
.one('bsTransitionEnd', complete)
.emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
complete()
this.hoverState=null
return this
}
Tooltip.prototype.fixTitle=function (){
var $e=this.$element
if($e.attr('title')||typeof ($e.attr('data-original-title'))!='string'){
$e.attr('data-original-title', $e.attr('title')||'').attr('title', '')
}}
Tooltip.prototype.hasContent=function (){
return this.getTitle()
}
Tooltip.prototype.getPosition=function ($element){
$element=$element||this.$element
var el=$element[0]
var isBody=el.tagName=='BODY'
var elRect=el.getBoundingClientRect()
if(elRect.width==null){
elRect=$.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top })
}
var elOffset=isBody ? { top: 0, left: 0 }:$element.offset()
var scroll={ scroll: isBody ? document.documentElement.scrollTop||document.body.scrollTop:$element.scrollTop() }
var outerDims=isBody ? { width: $(window).width(), height: $(window).height() }:null
return $.extend({}, elRect, scroll, outerDims, elOffset)
}
Tooltip.prototype.getCalculatedOffset=function (placement, pos, actualWidth, actualHeight){
return placement=='bottom' ? { top: pos.top + pos.height,   left: pos.left + pos.width / 2 - actualWidth / 2  } :
placement=='top'    ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2  } :
placement=='left'   ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
{ top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width   }}
Tooltip.prototype.getViewportAdjustedDelta=function (placement, pos, actualWidth, actualHeight){
var delta={ top: 0, left: 0 }
if(!this.$viewport) return delta
var viewportPadding=this.options.viewport&&this.options.viewport.padding||0
var viewportDimensions=this.getPosition(this.$viewport)
if(/right|left/.test(placement)){
var topEdgeOffset=pos.top - viewportPadding - viewportDimensions.scroll
var bottomEdgeOffset=pos.top + viewportPadding - viewportDimensions.scroll + actualHeight
if(topEdgeOffset < viewportDimensions.top){
delta.top=viewportDimensions.top - topEdgeOffset
}else if(bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height){
delta.top=viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset
}}else{
var leftEdgeOffset=pos.left - viewportPadding
var rightEdgeOffset=pos.left + viewportPadding + actualWidth
if(leftEdgeOffset < viewportDimensions.left){
delta.left=viewportDimensions.left - leftEdgeOffset
}else if(rightEdgeOffset > viewportDimensions.width){
delta.left=viewportDimensions.left + viewportDimensions.width - rightEdgeOffset
}}
return delta
}
Tooltip.prototype.getTitle=function (){
var title
var $e=this.$element
var o=this.options
title=$e.attr('data-original-title')
|| (typeof o.title=='function' ? o.title.call($e[0]):o.title)
return title
}
Tooltip.prototype.getUID=function (prefix){
do prefix +=~~(Math.random() * 1000000)
while (document.getElementById(prefix))
return prefix
}
Tooltip.prototype.tip=function (){
return (this.$tip=this.$tip||$(this.options.template))
}
Tooltip.prototype.arrow=function (){
return (this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow'))
}
Tooltip.prototype.enable=function (){
this.enabled=true
}
Tooltip.prototype.disable=function (){
this.enabled=false
}
Tooltip.prototype.toggleEnabled=function (){
this.enabled = !this.enabled
}
Tooltip.prototype.toggle=function (e){
var self=this
if(e){
self=$(e.currentTarget).data('bs.' + this.type)
if(!self){
self=new this.constructor(e.currentTarget, this.getDelegateOptions())
$(e.currentTarget).data('bs.' + this.type, self)
}}
self.tip().hasClass('in') ? self.leave(self):self.enter(self)
}
Tooltip.prototype.destroy=function (){
var that=this
clearTimeout(this.timeout)
this.hide(function (){
that.$element.off('.' + that.type).removeData('bs.' + that.type)
})
}
function Plugin(option){
return this.each(function (){
var $this=$(this)
var data=$this.data('bs.tooltip')
var options=typeof option=='object'&&option
var selector=options&&options.selector
if(!data&&option=='destroy') return
if(selector){
if(!data) $this.data('bs.tooltip', (data={}))
if(!data[selector]) data[selector]=new Tooltip(this, options)
}else{
if(!data) $this.data('bs.tooltip', (data=new Tooltip(this, options)))
}
if(typeof option=='string') data[option]()
})
}
var old=$.fn.tooltip
$.fn.tooltip=Plugin
$.fn.tooltip.Constructor=Tooltip
$.fn.tooltip.noConflict=function (){
$.fn.tooltip=old
return this
}}(jQuery);
+function ($){
'use strict';
var Popover=function (element, options){
this.init('popover', element, options)
}
if(!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
Popover.VERSION='3.3.0'
Popover.DEFAULTS=$.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
placement: 'right',
trigger: 'click',
content: '',
template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
})
Popover.prototype=$.extend({}, $.fn.tooltip.Constructor.prototype)
Popover.prototype.constructor=Popover
Popover.prototype.getDefaults=function (){
return Popover.DEFAULTS
}
Popover.prototype.setContent=function (){
var $tip=this.tip()
var title=this.getTitle()
var content=this.getContent()
$tip.find('.popover-title')[this.options.html ? 'html':'text'](title)
$tip.find('.popover-content').children().detach().end()[
this.options.html ? (typeof content=='string' ? 'html':'append'):'text'
](content)
$tip.removeClass('fade top bottom left right in')
if(!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()
}
Popover.prototype.hasContent=function (){
return this.getTitle()||this.getContent()
}
Popover.prototype.getContent=function (){
var $e=this.$element
var o=this.options
return $e.attr('data-content')
|| (typeof o.content=='function' ?
o.content.call($e[0]) :
o.content)
}
Popover.prototype.arrow=function (){
return (this.$arrow=this.$arrow||this.tip().find('.arrow'))
}
Popover.prototype.tip=function (){
if(!this.$tip) this.$tip=$(this.options.template)
return this.$tip
}
function Plugin(option){
return this.each(function (){
var $this=$(this)
var data=$this.data('bs.popover')
var options=typeof option=='object'&&option
var selector=options&&options.selector
if(!data&&option=='destroy') return
if(selector){
if(!data) $this.data('bs.popover', (data={}))
if(!data[selector]) data[selector]=new Popover(this, options)
}else{
if(!data) $this.data('bs.popover', (data=new Popover(this, options)))
}
if(typeof option=='string') data[option]()
})
}
var old=$.fn.popover
$.fn.popover=Plugin
$.fn.popover.Constructor=Popover
$.fn.popover.noConflict=function (){
$.fn.popover=old
return this
}}(jQuery);
+function ($){
'use strict';
function ScrollSpy(element, options){
var process=$.proxy(this.process, this)
this.$body=$('body')
this.$scrollElement=$(element).is('body') ? $(window):$(element)
this.options=$.extend({}, ScrollSpy.DEFAULTS, options)
this.selector=(this.options.target||'') + ' .nav li > a'
this.offsets=[]
this.targets=[]
this.activeTarget=null
this.scrollHeight=0
this.$scrollElement.on('scroll.bs.scrollspy', process)
this.refresh()
this.process()
}
ScrollSpy.VERSION='3.3.0'
ScrollSpy.DEFAULTS={
offset: 10
}
ScrollSpy.prototype.getScrollHeight=function (){
return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
}
ScrollSpy.prototype.refresh=function (){
var offsetMethod='offset'
var offsetBase=0
if(!$.isWindow(this.$scrollElement[0])){
offsetMethod='position'
offsetBase=this.$scrollElement.scrollTop()
}
this.offsets=[]
this.targets=[]
this.scrollHeight=this.getScrollHeight()
var self=this
this.$body
.find(this.selector)
.map(function (){
var $el=$(this)
var href=$el.data('target')||$el.attr('href')
var $href=/^#./.test(href)&&$(href)
return ($href
&& $href.length
&& $href.is(':visible')
&& [[$href[offsetMethod]().top + offsetBase, href]])||null
})
.sort(function (a, b){ return a[0] - b[0] })
.each(function (){
self.offsets.push(this[0])
self.targets.push(this[1])
})
}
ScrollSpy.prototype.process=function (){
var scrollTop=this.$scrollElement.scrollTop() + this.options.offset
var scrollHeight=this.getScrollHeight()
var maxScroll=this.options.offset + scrollHeight - this.$scrollElement.height()
var offsets=this.offsets
var targets=this.targets
var activeTarget=this.activeTarget
var i
if(this.scrollHeight!=scrollHeight){
this.refresh()
}
if(scrollTop >=maxScroll){
return activeTarget!=(i=targets[targets.length - 1])&&this.activate(i)
}
if(activeTarget&&scrollTop < offsets[0]){
this.activeTarget=null
return this.clear()
}
for (i=offsets.length; i--;){
activeTarget!=targets[i]
&& scrollTop >=offsets[i]
&& (!offsets[i + 1]||scrollTop <=offsets[i + 1])
&& this.activate(targets[i])
}}
ScrollSpy.prototype.activate=function (target){
this.activeTarget=target
this.clear()
var selector=this.selector +
'[data-target="' + target + '"],' +
this.selector + '[href="' + target + '"]'
var active=$(selector)
.parents('li')
.addClass('active')
if(active.parent('.dropdown-menu').length){
active=active
.closest('li.dropdown')
.addClass('active')
}
active.trigger('activate.bs.scrollspy')
}
ScrollSpy.prototype.clear=function (){
$(this.selector)
.parentsUntil(this.options.target, '.active')
.removeClass('active')
}
function Plugin(option){
return this.each(function (){
var $this=$(this)
var data=$this.data('bs.scrollspy')
var options=typeof option=='object'&&option
if(!data) $this.data('bs.scrollspy', (data=new ScrollSpy(this, options)))
if(typeof option=='string') data[option]()
})
}
var old=$.fn.scrollspy
$.fn.scrollspy=Plugin
$.fn.scrollspy.Constructor=ScrollSpy
$.fn.scrollspy.noConflict=function (){
$.fn.scrollspy=old
return this
}
$(window).on('load.bs.scrollspy.data-api', function (){
$('[data-spy="scroll"]').each(function (){
var $spy=$(this)
Plugin.call($spy, $spy.data())
})
})
}(jQuery);
+function ($){
'use strict';
var Tab=function (element){
this.element=$(element)
}
Tab.VERSION='3.3.0'
Tab.TRANSITION_DURATION=150
Tab.prototype.show=function (){
var $this=this.element
var $ul=$this.closest('ul:not(.dropdown-menu)')
var selector=$this.data('target')
if(!selector){
selector=$this.attr('href')
selector=selector&&selector.replace(/.*(?=#[^\s]*$)/, '')
}
if($this.parent('li').hasClass('active')) return
var $previous=$ul.find('.active:last a')
var hideEvent=$.Event('hide.bs.tab', {
relatedTarget: $this[0]
})
var showEvent=$.Event('show.bs.tab', {
relatedTarget: $previous[0]
})
$previous.trigger(hideEvent)
$this.trigger(showEvent)
if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented()) return
var $target=$(selector)
this.activate($this.closest('li'), $ul)
this.activate($target, $target.parent(), function (){
$previous.trigger({
type: 'hidden.bs.tab',
relatedTarget: $this[0]
})
$this.trigger({
type: 'shown.bs.tab',
relatedTarget: $previous[0]
})
})
}
Tab.prototype.activate=function (element, container, callback){
var $active=container.find('> .active')
var transition=callback
&& $.support.transition
&& (($active.length&&$active.hasClass('fade'))||!!container.find('> .fade').length)
function next(){
$active
.removeClass('active')
.find('> .dropdown-menu > .active')
.removeClass('active')
.end()
.find('[data-toggle="tab"]')
.attr('aria-expanded', false)
element
.addClass('active')
.find('[data-toggle="tab"]')
.attr('aria-expanded', true)
if(transition){
element[0].offsetWidth
element.addClass('in')
}else{
element.removeClass('fade')
}
if(element.parent('.dropdown-menu')){
element
.closest('li.dropdown')
.addClass('active')
.end()
.find('[data-toggle="tab"]')
.attr('aria-expanded', true)
}
callback&&callback()
}
$active.length&&transition ?
$active
.one('bsTransitionEnd', next)
.emulateTransitionEnd(Tab.TRANSITION_DURATION) :
next()
$active.removeClass('in')
}
function Plugin(option){
return this.each(function (){
var $this=$(this)
var data=$this.data('bs.tab')
if(!data) $this.data('bs.tab', (data=new Tab(this)))
if(typeof option=='string') data[option]()
})
}
var old=$.fn.tab
$.fn.tab=Plugin
$.fn.tab.Constructor=Tab
$.fn.tab.noConflict=function (){
$.fn.tab=old
return this
}
var clickHandler=function (e){
e.preventDefault()
Plugin.call($(this), 'show')
}
$(document)
.on('click.bs.tab.data-api', '[data-toggle="tab"]', clickHandler)
.on('click.bs.tab.data-api', '[data-toggle="pill"]', clickHandler)
}(jQuery);
+function ($){
'use strict';
var Affix=function (element, options){
this.options=$.extend({}, Affix.DEFAULTS, options)
this.$target=$(this.options.target)
.on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
.on('click.bs.affix.data-api',  $.proxy(this.checkPositionWithEventLoop, this))
this.$element=$(element)
this.affixed      =
this.unpin        =
this.pinnedOffset=null
this.checkPosition()
}
Affix.VERSION='3.3.0'
Affix.RESET='affix affix-top affix-bottom'
Affix.DEFAULTS={
offset: 0,
target: window
}
Affix.prototype.getState=function (scrollHeight, height, offsetTop, offsetBottom){
var scrollTop=this.$target.scrollTop()
var position=this.$element.offset()
var targetHeight=this.$target.height()
if(offsetTop!=null&&this.affixed=='top') return scrollTop < offsetTop ? 'top':false
if(this.affixed=='bottom'){
if(offsetTop!=null) return (scrollTop + this.unpin <=position.top) ? false:'bottom'
return (scrollTop + targetHeight <=scrollHeight - offsetBottom) ? false:'bottom'
}
var initializing=this.affixed==null
var colliderTop=initializing ? scrollTop:position.top
var colliderHeight=initializing ? targetHeight:height
if(offsetTop!=null&&colliderTop <=offsetTop) return 'top'
if(offsetBottom!=null&&(colliderTop + colliderHeight >=scrollHeight - offsetBottom)) return 'bottom'
return false
}
Affix.prototype.getPinnedOffset=function (){
if(this.pinnedOffset) return this.pinnedOffset
this.$element.removeClass(Affix.RESET).addClass('affix')
var scrollTop=this.$target.scrollTop()
var position=this.$element.offset()
return (this.pinnedOffset=position.top - scrollTop)
}
Affix.prototype.checkPositionWithEventLoop=function (){
setTimeout($.proxy(this.checkPosition, this), 1)
}
Affix.prototype.checkPosition=function (){
if(!this.$element.is(':visible')) return
var height=this.$element.height()
var offset=this.options.offset
var offsetTop=offset.top
var offsetBottom=offset.bottom
var scrollHeight=$('body').height()
if(typeof offset!='object')         offsetBottom=offsetTop=offset
if(typeof offsetTop=='function')    offsetTop=offset.top(this.$element)
if(typeof offsetBottom=='function') offsetBottom=offset.bottom(this.$element)
var affix=this.getState(scrollHeight, height, offsetTop, offsetBottom)
if(this.affixed!=affix){
if(this.unpin!=null) this.$element.css('top', '')
var affixType='affix' + (affix ? '-' + affix:'')
var e=$.Event(affixType + '.bs.affix')
this.$element.trigger(e)
if(e.isDefaultPrevented()) return
this.affixed=affix
this.unpin=affix=='bottom' ? this.getPinnedOffset():null
this.$element
.removeClass(Affix.RESET)
.addClass(affixType)
.trigger(affixType.replace('affix', 'affixed') + '.bs.affix')
}
if(affix=='bottom'){
this.$element.offset({
top: scrollHeight - height - offsetBottom
})
}}
function Plugin(option){
return this.each(function (){
var $this=$(this)
var data=$this.data('bs.affix')
var options=typeof option=='object'&&option
if(!data) $this.data('bs.affix', (data=new Affix(this, options)))
if(typeof option=='string') data[option]()
})
}
var old=$.fn.affix
$.fn.affix=Plugin
$.fn.affix.Constructor=Affix
$.fn.affix.noConflict=function (){
$.fn.affix=old
return this
}
$(window).on('load', function (){
$('[data-spy="affix"]').each(function (){
var $spy=$(this)
var data=$spy.data()
data.offset=data.offset||{}
if(data.offsetBottom!=null) data.offset.bottom=data.offsetBottom
if(data.offsetTop!=null) data.offset.top=data.offsetTop
Plugin.call($spy, data)
})
})
}(jQuery);
(function (){
'use strict';
if(navigator.userAgent.match(/IEMobile\/10\.0/)){
var msViewportStyle=document.createElement('style')
msViewportStyle.appendChild(document.createTextNode('@-ms-viewport{width:auto!important}'
)
)
document.querySelector('head').appendChild(msViewportStyle)
}})();
function myFunction(){
var x=document.getElementById("primary-menu");
if(x.className==="nav-menu"){
x.className +=" responsive";
}else{
x.className="nav-menu";
}}
(function ($){
$(document).ready(function (){
$('#searchsubmit, #commentform #submit').addClass('btn btn-default');
$('button, html input[type="button"], input[type="reset"], input[type="submit"]').addClass('btn btn-default');
$('input:not(button, html input[type="button"], input[type="reset"], input[type="submit"], input[type="checkbox"]), input[type="file"], select, textarea').addClass('form-control');
if($('label').parent().not('div')){
$('label:not(#searchform label,#commentform label)').wrap('<div></div>');
}
$('table').addClass('table');
$('.attachment-thumbnail').addClass('thumbnail');
$('embed-responsive-item,iframe,embed,object,video').parent().addClass('embed-responsive embed-responsive-16by9');
$('.navbar-nav').addClass('blog-nav');
$('.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus').closest('.navbar-nav').removeClass('blog-nav');
});
}) (jQuery);
document.addEventListener("DOMContentLoaded", function (){
$('.top-link').on('click', function (){
$('html, body').animate({
scrollTop: $('body').offset().top
}, 'slow');
return false;
});
displayOrNotTopLink();
$(window).scroll(function (){
displayOrNotTopLink();
});
function displayOrNotTopLink(){
posScroll=$(document).scrollTop();
var target=$('#toplink');
if(posScroll > 200){
target.css("right", '0px');
}else{
target.css("right", '-80px');
}}
});
(()=>{"use strict";const e="email",t="phone",n="name",l={[e]:["email","e-mail","mail","email address"],[t]:["phone","tel","mobile","cell","telephone","phone number"],[n]:["name","full-name","full name","full_name","fullname","first-name","first name","first_name","firstname","last-name","last name","last_name","lastname","given-name","given name","given_name","givenname","family-name","family name","family_name","familyname","fname","lname","first","last","your-name","your name"]};function r(e){return e&&"string"==typeof e?e.trim().toLowerCase():""}function a(e){const t=r(e),n=t.lastIndexOf("@");if(-1===n)return t;const l=t.slice(n+1);return["gmail.com","googlemail.com"].includes(l)?`${t.slice(0,n).replace(/\./g,"")}@${l}`:t}function i(e){const t=r(e),n=t.replace(/\D/g,"");return t.startsWith("+")?`+${n}`:n}function s(e){const t=e.filter(e=>{let{type:t}=e;return t===n}).map(e=>{let{value:t}=e;return r(t)}).filter(Boolean);if(!t.length)return;const[l,...a]=1===t.length?t[0].split(" "):t;return{first_name:l,...a?.length>0?{last_name:a.join(" ")}:{}}}function u(t){return t.find(t=>{let{type:n}=t;return n===e})?.value}function o(e){return e.find(e=>{let{type:n}=e;return n===t})?.value}globalThis.document.addEventListener("wpcf7mailsent",m=>{const c=globalThis._googlesitekit?.gtagUserData,f=c?function(m){if(!(m&&m instanceof HTMLFormElement))return;const c=new FormData(m);return function(e){const t=[["address",s(e)],["email",u(e)],["phone_number",o(e)]].filter(e=>{let[,t]=e;return t});if(0!==t.length)return Object.fromEntries(t)}(Array.from(c.entries()).map(s=>{let[u,o]=s;const c=m.querySelector(`[name='${u}']`),f=c?.type;return"hidden"===f||"submit"===f?null:function(s){let{type:u,name:o,value:m,label:c}=s||{};switch(u=r(u),o=r(o),m=r(m),c=function(e){return e&&"string"==typeof e?e.trim().toLowerCase().replace(/\s*\*+\s*$/,"").replace(/\s*\(required\)\s*$/i,"").replace(/\s*:\s*$/,"").trim():""}(c),u){case"email":return{type:e,value:a(m)};case"tel":return{type:t,value:i(m)}}return function(e){if(!e)return!1;const t=a(e);return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}(m)||l[e].includes(o)||l[e].includes(c)?{type:e,value:a(m)}:l[t].includes(o)||l[t].includes(c)?{type:t,value:i(m)}:l[n].includes(o)||l[n].includes(c)?{type:n,value:r(m)}:function(e){if(!e)return!1;if(!function(e){const t=e.replace(/\D/g,"");return!(t.length<7||t.length<e.length/2)&&/^[\s\-()+.\d]*$/.test(e)}(e))return!1;const t=i(e);if(!/^\+?\d{7,}$/.test(t))return!1;const n=/[\s\-()+.]/.test(e),l=e.trim().startsWith("+");return!(!n&&!l)}(m)?{type:t,value:i(m)}:null}({type:f,label:c?.id?m.querySelector(`label[for='${c?.id}']`)?.textContent:void 0,name:u,value:o})}).filter(Boolean))}(m.target):null;globalThis._googlesitekit?.gtagEvent?.("contact",{event_category:m.detail.contactFormId,event_label:m.detail.unitTag,...f?{user_data:f}:{}})})})();
!function(d){d.idleTimer=function(e,i){"object"==typeof e?(r=e,e=null):"number"==typeof e&&(r={timeout:e},e=null),i=i||document;function o(e){var t=d.data(i,"idleTimerObj")||{};t.idle=!t.idle,t.olddate=+new Date;var o=d.Event((t.idle?"idle":"active")+".idleTimer");d(i).trigger(o,[i,d.extend({},t),e])}function t(){var e=d.data(i,"idleTimerObj")||{};e.idle=e.idleBackup,e.olddate=+new Date,e.lastActive=e.olddate,e.remaining=null,clearTimeout(e.tId),e.idle||(e.tId=setTimeout(o,e.timeout))}var s,a,n,r=d.extend({idle:!1,timeout:3e4,events:"mousemove keydown wheel DOMMouseScroll mousewheel mousedown touchstart touchmove MSPointerDown MSPointerMove"},r),l=d(i),c=l.data("idleTimerObj")||{};if(null===e&&void 0!==c.idle)return t(),l;if(null!==e){if(null!==e&&void 0===c.idle)return!1;if("destroy"===e)return n=d.data(i,"idleTimerObj")||{},clearTimeout(n.tId),l.removeData("idleTimerObj"),l.off("._idleTimer"),l;if("pause"===e)return null==(a=d.data(i,"idleTimerObj")||{}).remaining&&(a.remaining=a.timeout-(+new Date-a.olddate),clearTimeout(a.tId)),l;if("resume"===e)return null!=(s=d.data(i,"idleTimerObj")||{}).remaining&&(s.idle||(s.tId=setTimeout(o,s.remaining)),s.remaining=null),l;if("reset"===e)return t(),l;if("getRemainingTime"===e)return function(){var e=d.data(i,"idleTimerObj")||{};if(e.idle)return 0;if(null!=e.remaining)return e.remaining;e=e.timeout-(+new Date-e.lastActive);return e=e<0?0:e}();if("getElapsedTime"===e)return+new Date-c.olddate;if("getLastActiveTime"===e)return c.lastActive;if("isIdle"===e)return c.idle}return l.on(d.trim((r.events+" ").split(" ").join("._idleTimer ")),function(e){!function(e){var t=d.data(i,"idleTimerObj")||{};if(null==t.remaining){if("mousemove"===e.type){if(e.pageX===t.pageX&&e.pageY===t.pageY)return;if(void 0===e.pageX&&void 0===e.pageY)return;if(+new Date-t.olddate<200)return}clearTimeout(t.tId),t.idle&&o(e),t.lastActive=+new Date,t.pageX=e.pageX,t.pageY=e.pageY,t.tId=setTimeout(o,t.timeout)}}(e)}),(c=d.extend({},{olddate:+new Date,lastActive:+new Date,idle:r.idle,idleBackup:r.idle,timeout:r.timeout,remaining:null,tId:null,pageX:null,pageY:null})).idle||(c.tId=setTimeout(o,c.timeout)),d.data(i,"idleTimerObj",c),l},d.fn.idleTimer=function(e){return this[0]?d.idleTimer(e,this[0]):this}}(jQuery),function i(s,a,n){function r(o,e){if(!a[o]){if(!s[o]){var t="function"==typeof require&&require;if(!e&&t)return t(o,!0);if(l)return l(o,!0);t=new Error("Cannot find module '"+o+"'");throw t.code="MODULE_NOT_FOUND",t}t=a[o]={exports:{}};s[o][0].call(t.exports,function(e){var t=s[o][1][e];return r(t||e)},t,t.exports,i,s,a,n)}return a[o].exports}for(var l="function"==typeof require&&require,e=0;e<n.length;e++)r(n[e]);return r}({1:[function(e,t,o){"use strict";e=e("../main");"function"==typeof define&&define.amd?define(e):(window.CP_PerfectScrollbar=e,void 0===window.Ps&&(window.Ps=e))},{"../main":7}],2:[function(e,t,o){"use strict";o.add=function(e,t){var o;e.classList?e.classList.add(t):(o=t,(e=(t=e).className.split(" ")).indexOf(o)<0&&e.push(o),t.className=e.join(" "))},o.remove=function(e,t){var o;e.classList?e.classList.remove(t):(o=t,e=(t=e).className.split(" "),0<=(o=e.indexOf(o))&&e.splice(o,1),t.className=e.join(" "))},o.list=function(e){return e.classList?Array.prototype.slice.apply(e.classList):e.className.split(" ")}},{}],3:[function(e,t,o){"use strict";var i={e:function(e,t){e=document.createElement(e);return e.className=t,e},appendTo:function(e,t){return t.appendChild(e),e}};i.css=function(e,t,o){return"object"==typeof t?function(e,t){for(var o in t){var i=t[o];"number"==typeof i&&(i=i.toString()+"px"),e.style[o]=i}return e}(e,t):void 0===o?(i=t,window.getComputedStyle(e)[i]):(e=e,t=t,"number"==typeof(o=o)&&(o=o.toString()+"px"),e.style[t]=o,e);var i},i.matches=function(e,t){return void 0!==e.matches?e.matches(t):void 0!==e.matchesSelector?e.matchesSelector(t):void 0!==e.webkitMatchesSelector?e.webkitMatchesSelector(t):void 0!==e.mozMatchesSelector?e.mozMatchesSelector(t):void 0!==e.msMatchesSelector?e.msMatchesSelector(t):void 0},i.remove=function(e){void 0!==e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)},i.queryChildren=function(e,t){return Array.prototype.filter.call(e.childNodes,function(e){return i.matches(e,t)})},t.exports=i},{}],4:[function(e,t,o){"use strict";function i(e){this.element=e,this.events={}}i.prototype.bind=function(e,t){void 0===this.events[e]&&(this.events[e]=[]),this.events[e].push(t),this.element.addEventListener(e,t,!1)},i.prototype.unbind=function(t,o){var i=void 0!==o;this.events[t]=this.events[t].filter(function(e){return i&&e!==o||(this.element.removeEventListener(t,e,!1),!1)},this)},i.prototype.unbindAll=function(){for(var e in this.events)this.unbind(e)};function s(){this.eventElements=[]}s.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return void 0===e&&(e=new i(t),this.eventElements.push(e)),e},s.prototype.bind=function(e,t,o){this.eventElement(e).bind(t,o)},s.prototype.unbind=function(e,t,o){this.eventElement(e).unbind(t,o)},s.prototype.unbindAll=function(){for(var e=0;e<this.eventElements.length;e++)this.eventElements[e].unbindAll()},s.prototype.once=function(e,t,o){var i=this.eventElement(e),s=function(e){i.unbind(t,s),o(e)};i.bind(t,s)},t.exports=s},{}],5:[function(e,t,o){"use strict";function i(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}t.exports=function(){return i()+i()+"-"+i()+"-"+i()+"-"+i()+"-"+i()+i()+i()}},{}],6:[function(e,t,o){"use strict";var s=e("./class"),i=e("./dom");o.toInt=function(e){return parseInt(e,10)||0},o.clone=function(e){if(null===e)return null;if("object"!=typeof e)return e;var t,o={};for(t in e)o[t]=this.clone(e[t]);return o},o.extend=function(e,t){var o,i=this.clone(e);for(o in t)i[o]=this.clone(t[o]);return i},o.isEditable=function(e){return i.matches(e,"input,[contenteditable]")||i.matches(e,"select,[contenteditable]")||i.matches(e,"textarea,[contenteditable]")||i.matches(e,"button,[contenteditable]")},o.removePsClasses=function(e){for(var t=s.list(e),o=0;o<t.length;o++){var i=t[o];0===i.indexOf("ps-")&&s.remove(e,i)}},o.outerWidth=function(e){return this.toInt(i.css(e,"width"))+this.toInt(i.css(e,"paddingLeft"))+this.toInt(i.css(e,"paddingRight"))+this.toInt(i.css(e,"borderLeftWidth"))+this.toInt(i.css(e,"borderRightWidth"))},o.startScrolling=function(e,t){s.add(e,"ps-in-scrolling"),void 0!==t?s.add(e,"ps-"+t):(s.add(e,"ps-x"),s.add(e,"ps-y"))},o.stopScrolling=function(e,t){s.remove(e,"ps-in-scrolling"),void 0!==t?s.remove(e,"ps-"+t):(s.remove(e,"ps-x"),s.remove(e,"ps-y"))},o.env={isWebKit:"WebkitAppearance"in document.documentElement.style,supportsTouch:"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,supportsIePointer:null!==window.navigator.msMaxTouchPoints}},{"./class":2,"./dom":3}],7:[function(e,t,o){"use strict";var i=e("./plugin/destroy"),s=e("./plugin/initialize"),e=e("./plugin/update");t.exports={initialize:s,update:e,destroy:i}},{"./plugin/destroy":9,"./plugin/initialize":17,"./plugin/update":21}],8:[function(e,t,o){"use strict";t.exports={maxScrollbarLength:null,minScrollbarLength:null,scrollXMarginOffset:0,scrollYMarginOffset:0,stopPropagationOnClick:!0,suppressScrollX:!1,suppressScrollY:!1,swipePropagation:!0,useBothWheelAxes:!1,useKeyboard:!0,useSelectionScroll:!1,wheelPropagation:!1,wheelSpeed:1}},{}],9:[function(e,t,o){"use strict";var i=e("../lib/dom"),s=e("../lib/helper"),a=e("./instances");t.exports=function(e){var t=a.get(e);t&&(t.event.unbindAll(),i.remove(t.scrollbarX),i.remove(t.scrollbarY),i.remove(t.scrollbarXRail),i.remove(t.scrollbarYRail),s.removePsClasses(e),a.remove(e))}},{"../lib/dom":3,"../lib/helper":6,"./instances":18}],10:[function(e,t,o){"use strict";var a=e("../../lib/helper"),n=e("../instances"),r=e("../update-geometry"),l=e("../update-scroll");t.exports=function(e){var o,i,t=n.get(e);function s(e){return e.getBoundingClientRect()}o=e,i=t,t=window.Event.prototype.stopPropagation.bind,i.settings.stopPropagationOnClick&&i.event.bind(i.scrollbarY,"click",t),i.event.bind(i.scrollbarYRail,"click",function(e){var t=a.toInt(i.scrollbarYHeight/2),t=i.railYRatio*(e.pageY-window.scrollY-s(i.scrollbarYRail).top-t)/(i.railYRatio*(i.railYHeight-i.scrollbarYHeight));t<0?t=0:1<t&&(t=1),l(o,"top",(i.contentHeight-i.containerHeight)*t),r(o),e.stopPropagation()}),i.settings.stopPropagationOnClick&&i.event.bind(i.scrollbarX,"click",t),i.event.bind(i.scrollbarXRail,"click",function(e){var t=a.toInt(i.scrollbarXWidth/2),t=i.railXRatio*(e.pageX-window.scrollX-s(i.scrollbarXRail).left-t)/(i.railXRatio*(i.railXWidth-i.scrollbarXWidth));t<0?t=0:1<t&&(t=1),l(o,"left",(i.contentWidth-i.containerWidth)*t-i.negativeScrollAdjustment),r(o),e.stopPropagation()})}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],11:[function(e,t,o){"use strict";function i(i,s){function t(e){var t,o;t=e.pageX-n,o=a+t*s.railXRatio,t=s.scrollbarXRail.getBoundingClientRect().left+s.railXRatio*(s.railXWidth-s.scrollbarXWidth),s.scrollbarXLeft=o<0?0:t<o?t:o,o=l.toInt(s.scrollbarXLeft*(s.contentWidth-s.containerWidth)/(s.containerWidth-s.railXRatio*s.scrollbarXWidth))-s.negativeScrollAdjustment,d(i,"left",o),c(i),e.stopPropagation(),e.preventDefault()}function o(){l.stopScrolling(i,"x"),s.event.unbind(s.ownerDocument,"mousemove",t)}var a=null,n=null;s.event.bind(s.scrollbarX,"mousedown",function(e){n=e.pageX,a=l.toInt(r.css(s.scrollbarX,"left"))*s.railXRatio,l.startScrolling(i,"x"),s.event.bind(s.ownerDocument,"mousemove",t),s.event.once(s.ownerDocument,"mouseup",o),e.stopPropagation(),e.preventDefault()})}function s(i,s){function t(e){var t,o;t=e.pageY-n,o=a+t*s.railYRatio,t=s.scrollbarYRail.getBoundingClientRect().top+s.railYRatio*(s.railYHeight-s.scrollbarYHeight),s.scrollbarYTop=o<0?0:t<o?t:o,o=l.toInt(s.scrollbarYTop*(s.contentHeight-s.containerHeight)/(s.containerHeight-s.railYRatio*s.scrollbarYHeight)),d(i,"top",o),c(i),e.stopPropagation(),e.preventDefault()}function o(){l.stopScrolling(i,"y"),s.event.unbind(s.ownerDocument,"mousemove",t)}var a=null,n=null;s.event.bind(s.scrollbarY,"mousedown",function(e){n=e.pageY,a=l.toInt(r.css(s.scrollbarY,"top"))*s.railYRatio,l.startScrolling(i,"y"),s.event.bind(s.ownerDocument,"mousemove",t),s.event.once(s.ownerDocument,"mouseup",o),e.stopPropagation(),e.preventDefault()})}var r=e("../../lib/dom"),l=e("../../lib/helper"),a=e("../instances"),c=e("../update-geometry"),d=e("../update-scroll");t.exports=function(e){var t=a.get(e);i(e,t),s(e,t)}},{"../../lib/dom":3,"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],12:[function(e,t,o){"use strict";function i(s,a){var n=!1;a.event.bind(s,"mouseenter",function(){n=!0}),a.event.bind(s,"mouseleave",function(){n=!1});a.event.bind(a.ownerDocument,"keydown",function(e){if((!e.isDefaultPrevented||!e.isDefaultPrevented())&&n){var t=document.activeElement||a.ownerDocument.activeElement;if(t){for(;t.shadowRoot;)t=t.shadowRoot.activeElement;if(r.isEditable(t))return}var o=0,i=0;switch(e.which){case 37:o=-30;break;case 38:i=30;break;case 39:o=30;break;case 40:i=-30;break;case 33:i=90;break;case 32:i=e.shiftKey?90:-90;break;case 34:i=-90;break;case 35:i=e.ctrlKey?-a.contentHeight:-a.containerHeight;break;case 36:i=e.ctrlKey?s.scrollTop:a.containerHeight;break;default:return}c(s,"top",s.scrollTop-i),c(s,"left",s.scrollLeft+o),l(s),function(e,t){var o=s.scrollTop;if(0===e){if(!a.scrollbarYActive)return!1;if(0===o&&0<t||o>=a.contentHeight-a.containerHeight&&t<0)return!a.settings.wheelPropagation}if(o=s.scrollLeft,0===t){if(!a.scrollbarXActive)return!1;if(0===o&&e<0||o>=a.contentWidth-a.containerWidth&&0<e)return!a.settings.wheelPropagation}return!0}(o,i)&&e.preventDefault()}})}var r=e("../../lib/helper"),s=e("../instances"),l=e("../update-geometry"),c=e("../update-scroll");t.exports=function(e){i(e,s.get(e))}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],13:[function(e,t,o){"use strict";function i(s,a){function e(e){var t,o,i;!r.env.isWebKit&&s.querySelector("select:focus")||(o=(t=e).deltaX,i=-1*t.deltaY,void 0!==o&&void 0!==i||(o=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(o*=10,i*=10),o!=o&&i!=i&&(o=0,i=t.wheelDelta),function(e,t){var o=s.querySelector("textarea:hover");if(o){var i=o.scrollHeight-o.clientHeight;if(0<i&&!(0===o.scrollTop&&0<t||o.scrollTop===i&&t<0))return 1;t=o.scrollLeft-o.clientWidth;if(0<t&&!(0===o.scrollLeft&&e<0||o.scrollLeft===t&&0<e))return 1}}(i=(o=[o,i])[0],o=o[1])||(n=!1,a.settings.useBothWheelAxes?a.scrollbarYActive&&!a.scrollbarXActive?(c(s,"top",o?s.scrollTop-o*a.settings.wheelSpeed:s.scrollTop+i*a.settings.wheelSpeed),n=!0):a.scrollbarXActive&&!a.scrollbarYActive&&(c(s,"left",i?s.scrollLeft+i*a.settings.wheelSpeed:s.scrollLeft-o*a.settings.wheelSpeed),n=!0):(c(s,"top",s.scrollTop-o*a.settings.wheelSpeed),c(s,"left",s.scrollLeft+i*a.settings.wheelSpeed)),l(s),(n=n||function(e,t){var o=s.scrollTop;if(0===e){if(!a.scrollbarYActive)return!1;if(0===o&&0<t||o>=a.contentHeight-a.containerHeight&&t<0)return!a.settings.wheelPropagation}if(o=s.scrollLeft,0===t){if(!a.scrollbarXActive)return!1;if(0===o&&e<0||o>=a.contentWidth-a.containerWidth&&0<e)return!a.settings.wheelPropagation}return!0}(i,o))&&(e.stopPropagation(),e.preventDefault())))}var n=!1;void 0!==window.onwheel?a.event.bind(s,"wheel",e):void 0!==window.onmousewheel&&a.event.bind(s,"mousewheel",e)}var r=e("../../lib/helper"),s=e("../instances"),l=e("../update-geometry"),c=e("../update-scroll");t.exports=function(e){i(e,s.get(e))}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],14:[function(e,t,o){"use strict";var i=e("../instances"),s=e("../update-geometry");t.exports=function(e){var t,o=i.get(e);t=e,o.event.bind(t,"scroll",function(){s(t)})}},{"../instances":18,"../update-geometry":19}],15:[function(e,t,o){"use strict";function i(n,e){function r(){l&&(clearInterval(l),l=null),p.stopScrolling(n)}var l=null,c={top:0,left:0},d=!1;e.event.bind(e.ownerDocument,"selectionchange",function(){var e;n.contains(0===(e=window.getSelection?window.getSelection():document.getSelection?document.getSelection():"").toString().length?null:e.getRangeAt(0).commonAncestorContainer)?d=!0:(d=!1,r())}),e.event.bind(window,"mouseup",function(){d&&(d=!1,r())}),e.event.bind(window,"mousemove",function(e){var t,o,i,s,a;d&&(t=e.pageX,o=e.pageY,i=n.offsetLeft,s=n.offsetLeft+n.offsetWidth,a=n.offsetTop,e=n.offsetTop+n.offsetHeight,t<i+3?(c.left=-5,p.startScrolling(n,"x")):s-3<t?(c.left=5,p.startScrolling(n,"x")):c.left=0,o<a+3?(c.top=a+3-o<5?-5:-20,p.startScrolling(n,"y")):e-3<o?(c.top=o-e+3<5?5:20,p.startScrolling(n,"y")):c.top=0,0===c.top&&0===c.left?r():l=l||setInterval(function(){return u.get(n)?(f(n,"top",n.scrollTop+c.top),f(n,"left",n.scrollLeft+c.left),void h(n)):void clearInterval(l)},50))})}var p=e("../../lib/helper"),u=e("../instances"),h=e("../update-geometry"),f=e("../update-scroll");t.exports=function(e){i(e,u.get(e))}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],16:[function(e,t,o){"use strict";function i(n,r,e,t){function a(e,t){_(n,"top",n.scrollTop-t),_(n,"left",n.scrollLeft-e),b(n)}function o(){y=!0}function i(){y=!1}function l(e){return e.targetTouches?e.targetTouches[0]:e}function c(e){return e.targetTouches&&1===e.targetTouches.length||!(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE)}function s(e){var t;c(e)&&(g=!0,t=l(e),u.pageX=t.pageX,u.pageY=t.pageY,h=(new Date).getTime(),null!==m&&clearInterval(m),e.stopPropagation())}function d(e){var t,o,i,s;!y&&g&&c(e)&&(a(t=(s={pageX:(i=l(e)).pageX,pageY:i.pageY}).pageX-u.pageX,o=s.pageY-u.pageY),u=s,0<(s=(i=(new Date).getTime())-h)&&(f.x=t/s,f.y=o/s,h=i),function(e,t){var o=n.scrollTop,i=n.scrollLeft,s=Math.abs(e),a=Math.abs(t);if(s<a){if(t<0&&o===r.contentHeight-r.containerHeight||0<t&&0===o)return!r.settings.swipePropagation}else if(a<s&&(e<0&&i===r.contentWidth-r.containerWidth||0<e&&0===i))return!r.settings.swipePropagation;return 1}(t,o)&&(e.stopPropagation(),e.preventDefault()))}function p(){!y&&g&&(g=!1,clearInterval(m),m=setInterval(function(){return!v.get(n)||Math.abs(f.x)<.01&&Math.abs(f.y)<.01?void clearInterval(m):(a(30*f.x,30*f.y),f.x*=.8,void(f.y*=.8))},10))}var u={},h=0,f={},m=null,y=!1,g=!1;e&&(r.event.bind(window,"touchstart",o),r.event.bind(window,"touchend",i),r.event.bind(n,"touchstart",s),r.event.bind(n,"touchmove",d),r.event.bind(n,"touchend",p)),t&&(window.PointerEvent?(r.event.bind(window,"pointerdown",o),r.event.bind(window,"pointerup",i),r.event.bind(n,"pointerdown",s),r.event.bind(n,"pointermove",d),r.event.bind(n,"pointerup",p)):window.MSPointerEvent&&(r.event.bind(window,"MSPointerDown",o),r.event.bind(window,"MSPointerUp",i),r.event.bind(n,"MSPointerDown",s),r.event.bind(n,"MSPointerMove",d),r.event.bind(n,"MSPointerUp",p)))}var v=e("../instances"),b=e("../update-geometry"),_=e("../update-scroll");t.exports=function(e,t,o){i(e,v.get(e),t,o)}},{"../instances":18,"../update-geometry":19,"../update-scroll":20}],17:[function(e,t,o){"use strict";var i=e("../lib/class"),s=e("../lib/helper"),a=e("./instances"),n=e("./update-geometry"),r=e("./handler/click-rail"),l=e("./handler/drag-scrollbar"),c=e("./handler/keyboard"),d=e("./handler/mouse-wheel"),p=e("./handler/native-scroll"),u=e("./handler/selection"),h=e("./handler/touch");t.exports=function(e,t){t="object"==typeof t?t:{},i.add(e,"ps-container");var o=a.add(e);o.settings=s.extend(o.settings,t),r(e),l(e),d(e),p(e),o.settings.useSelectionScroll&&u(e),(s.env.supportsTouch||s.env.supportsIePointer)&&h(e,s.env.supportsTouch,s.env.supportsIePointer),o.settings.useKeyboard&&c(e),n(e)}},{"../lib/class":2,"../lib/helper":6,"./handler/click-rail":10,"./handler/drag-scrollbar":11,"./handler/keyboard":12,"./handler/mouse-wheel":13,"./handler/native-scroll":14,"./handler/selection":15,"./handler/touch":16,"./instances":18,"./update-geometry":19}],18:[function(e,t,o){"use strict";function s(e){var t,o,i=this;i.settings=c.clone(n),i.containerWidth=null,i.containerHeight=null,i.contentWidth=null,i.contentHeight=null,i.isRtl="rtl"===a.css(e,"direction"),i.isNegativeScroll=(o=e.scrollLeft,e.scrollLeft=-1,t=e.scrollLeft<0,e.scrollLeft=o,t),i.negativeScrollAdjustment=i.isNegativeScroll?e.scrollWidth-e.clientWidth:0,i.event=new r,i.ownerDocument=e.ownerDocument||document,i.scrollbarXRail=a.appendTo(a.e("div","ps-scrollbar-x-rail"),e),i.scrollbarX=a.appendTo(a.e("div","ps-scrollbar-x"),i.scrollbarXRail),i.scrollbarXActive=null,i.scrollbarXWidth=null,i.scrollbarXLeft=null,i.scrollbarXBottom=c.toInt(a.css(i.scrollbarXRail,"bottom")),i.isScrollbarXUsingBottom=i.scrollbarXBottom==i.scrollbarXBottom,i.scrollbarXTop=i.isScrollbarXUsingBottom?null:c.toInt(a.css(i.scrollbarXRail,"top")),i.railBorderXWidth=c.toInt(a.css(i.scrollbarXRail,"borderLeftWidth"))+c.toInt(a.css(i.scrollbarXRail,"borderRightWidth")),a.css(i.scrollbarXRail,"display","block"),i.railXMarginWidth=c.toInt(a.css(i.scrollbarXRail,"marginLeft"))+c.toInt(a.css(i.scrollbarXRail,"marginRight")),a.css(i.scrollbarXRail,"display",""),i.railXWidth=null,i.railXRatio=null,i.scrollbarYRail=a.appendTo(a.e("div","ps-scrollbar-y-rail"),e),i.scrollbarY=a.appendTo(a.e("div","ps-scrollbar-y"),i.scrollbarYRail),i.scrollbarYActive=null,i.scrollbarYHeight=null,i.scrollbarYTop=null,i.scrollbarYRight=c.toInt(a.css(i.scrollbarYRail,"right")),i.isScrollbarYUsingRight=i.scrollbarYRight==i.scrollbarYRight,i.scrollbarYLeft=i.isScrollbarYUsingRight?null:c.toInt(a.css(i.scrollbarYRail,"left")),i.scrollbarYOuterWidth=i.isRtl?c.outerWidth(i.scrollbarY):null,i.railBorderYWidth=c.toInt(a.css(i.scrollbarYRail,"borderTopWidth"))+c.toInt(a.css(i.scrollbarYRail,"borderBottomWidth")),a.css(i.scrollbarYRail,"display","block"),i.railYMarginHeight=c.toInt(a.css(i.scrollbarYRail,"marginTop"))+c.toInt(a.css(i.scrollbarYRail,"marginBottom")),a.css(i.scrollbarYRail,"display",""),i.railYHeight=null,i.railYRatio=null}function i(e){return void 0===e.dataset?e.getAttribute("data-ps-id"):e.dataset.psId}var a=e("../lib/dom"),n=e("./default-setting"),r=e("../lib/event-manager"),l=e("../lib/guid"),c=e("../lib/helper"),d={};o.add=function(e){var t,o,i=l();return o=i,void 0===(t=e).dataset?t.setAttribute("data-ps-id",o):t.dataset.psId=o,d[i]=new s(e),d[i]},o.remove=function(e){delete d[i(e)],void 0===(e=e).dataset?e.removeAttribute("data-ps-id"):delete e.dataset.psId},o.get=function(e){return d[i(e)]}},{"../lib/dom":3,"../lib/event-manager":4,"../lib/guid":5,"../lib/helper":6,"./default-setting":8}],19:[function(e,t,o){"use strict";function a(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),t=e.settings.maxScrollbarLength?Math.min(t,e.settings.maxScrollbarLength):t}var n=e("../lib/class"),r=e("../lib/dom"),l=e("../lib/helper"),c=e("./instances"),d=e("./update-scroll");t.exports=function(e){var t,o,i,s=c.get(e);s.containerWidth=e.clientWidth,s.containerHeight=e.clientHeight,s.contentWidth=e.scrollWidth,s.contentHeight=e.scrollHeight,e.contains(s.scrollbarXRail)||(0<(i=r.queryChildren(e,".ps-scrollbar-x-rail")).length&&i.forEach(function(e){r.remove(e)}),r.appendTo(s.scrollbarXRail,e)),e.contains(s.scrollbarYRail)||(0<(i=r.queryChildren(e,".ps-scrollbar-y-rail")).length&&i.forEach(function(e){r.remove(e)}),r.appendTo(s.scrollbarYRail,e)),!s.settings.suppressScrollX&&s.containerWidth+s.settings.scrollXMarginOffset<s.contentWidth?(s.scrollbarXActive=!0,s.railXWidth=s.containerWidth-s.railXMarginWidth,s.railXRatio=s.containerWidth/s.railXWidth,s.scrollbarXWidth=a(s,l.toInt(s.railXWidth*s.containerWidth/s.contentWidth)),s.scrollbarXLeft=l.toInt((s.negativeScrollAdjustment+e.scrollLeft)*(s.railXWidth-s.scrollbarXWidth)/(s.contentWidth-s.containerWidth))):(s.scrollbarXActive=!1,s.scrollbarXWidth=0,s.scrollbarXLeft=0,e.scrollLeft=0),!s.settings.suppressScrollY&&s.containerHeight+s.settings.scrollYMarginOffset<s.contentHeight?(s.scrollbarYActive=!0,s.railYHeight=s.containerHeight-s.railYMarginHeight,s.railYRatio=s.containerHeight/s.railYHeight,s.scrollbarYHeight=a(s,l.toInt(s.railYHeight*s.containerHeight/s.contentHeight)),s.scrollbarYTop=l.toInt(e.scrollTop*(s.railYHeight-s.scrollbarYHeight)/(s.contentHeight-s.containerHeight))):(s.scrollbarYActive=!1,s.scrollbarYHeight=0,s.scrollbarYTop=0,d(e,"top",0)),s.scrollbarXLeft>=s.railXWidth-s.scrollbarXWidth&&(s.scrollbarXLeft=s.railXWidth-s.scrollbarXWidth),s.scrollbarYTop>=s.railYHeight-s.scrollbarYHeight&&(s.scrollbarYTop=s.railYHeight-s.scrollbarYHeight),t=e,i={width:(o=s).railXWidth},o.isRtl?i.left=o.negativeScrollAdjustment+t.scrollLeft+o.containerWidth-o.contentWidth:i.left=t.scrollLeft,o.isScrollbarXUsingBottom?i.bottom=o.scrollbarXBottom-t.scrollTop:i.top=o.scrollbarXTop+t.scrollTop,r.css(o.scrollbarXRail,i),i={top:t.scrollTop,height:o.railYHeight},o.isScrollbarYUsingRight?o.isRtl?i.right=o.contentWidth-(o.negativeScrollAdjustment+t.scrollLeft)-o.scrollbarYRight-o.scrollbarYOuterWidth:i.right=o.scrollbarYRight-t.scrollLeft:o.isRtl?i.left=o.negativeScrollAdjustment+t.scrollLeft+2*o.containerWidth-o.contentWidth-o.scrollbarYLeft-o.scrollbarYOuterWidth:i.left=o.scrollbarYLeft+t.scrollLeft,r.css(o.scrollbarYRail,i),r.css(o.scrollbarX,{left:o.scrollbarXLeft,width:o.scrollbarXWidth-o.railBorderXWidth}),r.css(o.scrollbarY,{top:o.scrollbarYTop,height:o.scrollbarYHeight-o.railBorderYWidth}),n[s.scrollbarXActive?"add":"remove"](e,"ps-active-x"),n[s.scrollbarYActive?"add":"remove"](e,"ps-active-y")}},{"../lib/class":2,"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-scroll":20}],20:[function(e,t,o){"use strict";var s,a,n=e("./instances"),r=document.createEvent("Event"),l=document.createEvent("Event"),c=document.createEvent("Event"),d=document.createEvent("Event"),p=document.createEvent("Event"),u=document.createEvent("Event"),h=document.createEvent("Event"),f=document.createEvent("Event"),m=document.createEvent("Event"),y=document.createEvent("Event");r.initEvent("ps-scroll-up",!0,!0),l.initEvent("ps-scroll-down",!0,!0),c.initEvent("ps-scroll-left",!0,!0),d.initEvent("ps-scroll-right",!0,!0),p.initEvent("ps-scroll-y",!0,!0),u.initEvent("ps-scroll-x",!0,!0),h.initEvent("ps-x-reach-start",!0,!0),f.initEvent("ps-x-reach-end",!0,!0),m.initEvent("ps-y-reach-start",!0,!0),y.initEvent("ps-y-reach-end",!0,!0),t.exports=function(e,t,o){if(void 0===e)throw"You must provide an element to the update-scroll function";if(void 0===t)throw"You must provide an axis to the update-scroll function";if(void 0===o)throw"You must provide a value to the update-scroll function";if("top"===t&&o<=0)return e.scrollTop=0,void e.dispatchEvent(m);if("left"===t&&o<=0)return e.scrollLeft=0,void e.dispatchEvent(h);var i=n.get(e);return"top"===t&&o>i.contentHeight-i.containerHeight?(e.scrollTop=i.contentHeight-i.containerHeight,void e.dispatchEvent(y)):"left"===t&&o>i.contentWidth-i.containerWidth?(e.scrollLeft=i.contentWidth-i.containerWidth,void e.dispatchEvent(f)):(s=s||e.scrollTop,a=a||e.scrollLeft,"top"===t&&o<s&&e.dispatchEvent(r),"top"===t&&s<o&&e.dispatchEvent(l),"left"===t&&o<a&&e.dispatchEvent(c),"left"===t&&a<o&&e.dispatchEvent(d),"top"===t&&(e.scrollTop=s=o,e.dispatchEvent(p)),void("left"===t&&(e.scrollLeft=a=o,e.dispatchEvent(u))))}},{"./instances":18}],21:[function(e,t,o){"use strict";var i=e("../lib/dom"),s=e("../lib/helper"),a=e("./instances"),n=e("./update-geometry");t.exports=function(e){var t=a.get(e);t&&(t.negativeScrollAdjustment=t.isNegativeScroll?e.scrollWidth-e.clientWidth:0,i.css(t.scrollbarXRail,"display","block"),i.css(t.scrollbarYRail,"display","block"),t.railXMarginWidth=s.toInt(i.css(t.scrollbarXRail,"marginLeft"))+s.toInt(i.css(t.scrollbarXRail,"marginRight")),t.railYMarginHeight=s.toInt(i.css(t.scrollbarYRail,"marginTop"))+s.toInt(i.css(t.scrollbarYRail,"marginBottom")),i.css(t.scrollbarXRail,"display","none"),i.css(t.scrollbarYRail,"display","none"),n(e),i.css(t.scrollbarXRail,"display",""),i.css(t.scrollbarYRail,"display",""))}},{"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-geometry":19}]},{},[1]),function(o){var i="frosty",s={attribute:"title",className:"tip",content:"",delay:0,hasArrow:!0,html:!1,offset:30,position:"left",removeTitle:!0,selector:!1,trigger:"hover,focus",onHidden:function(){},onShown:function(){}};function a(e,t){this.anchor=e,this.$anchor=o(e),this.options=o.extend({},s,t,this.$anchor.data()),this._defaults=s,this._name=i,this.init()}a.prototype={init:function(){this._createTip(),this._bindEvents()},show:function(){var e=this,t="object"==typeof this.options.delay?parseInt(this.options.delay.show):parseInt(this.options.delay);clearTimeout(this.timeout),this.timeout=0===t?this._setState("visible"):setTimeout(function(){e._setState("visible")},t)},hide:function(){var e=this;delay="object"==typeof this.options.delay?parseInt(this.options.delay.hide):parseInt(this.options.delay),clearTimeout(this.timeout),this.timeout=0===delay?this._setState("hidden"):setTimeout(function(){e._setState("hidden")},delay)},toggle:function(){"visible"===this.state?this.hide():this.show()},addClass:function(e){console.log("in"),"string"==typeof e&&this.$el.addClass(e)},removeClass:function(e){"string"==typeof e&&this.$el.removeClass(e)},_setState:function(e){switch(this.state=e){case"visible":this.$el.appendTo("body"),this._checkContent(),this._setPosition(),this.options.onShown.call(this),this.$anchor.trigger("shown");break;case"hidden":this.$el.detach(),this.options.onHidden.call(this),this.$anchor.trigger("hidden")}},_checkContent:function(){this.options.selector&&(this.tipContent=o(this.options.selector).html(),this.$el.html(this.tipContent))},_createTip:function(){this.options.html?this.tipContent=this.options.content:this.options.selector?this.tipContent=o(this.options.selector).html():(this.tipContent=this.$anchor.attr(this.options.attribute),"title"===this.options.attribute&&this.options.removeTitle&&(this.$anchor.attr("data-original-title",this.tipContent),this.$anchor.removeAttr("title"))),this.$el=o("<div />",{class:this.options.className,html:'<span class="cp_tooltip_text">'+this.tipContent+"</span>"}).css({"z-index":"9999999999",left:"-9999px",position:"absolute"}),this.$el.appendTo("body");var e=this.getPosition();this.$el.detach().css(e),this.options.hasArrow&&this._addArrowClass()},_addArrowClass:function(){switch(this.options.position){case"left":this.$el.addClass("arrow-right");break;case"right":this.$el.addClass("arrow-left");break;case"bottom":this.$el.addClass("arrow-top");break;default:this.$el.addClass("arrow-bottom")}},_bindEvents:function(){switch(this.options.trigger){case"click":this.$anchor.on("click",o.proxy(this.toggle,this));break;case"manual":break;case"focus":this.$anchor.focus(o.proxy(this.show,this)),this.$anchor.blur(o.proxy(this.hide,this));break;default:this.$anchor.on("mouseenter",o.proxy(this.show,this)).on("mouseleave",o.proxy(this.hide,this))}},getPosition:function(){var e=this.$anchor.offset();switch(this.options.position){case"left":e.left=e.left-this.$el.outerWidth()-this.options.offset,e.top=e.top+this.$anchor.outerHeight()/2-this.$el.outerHeight()/2;break;case"right":e.left=e.left+this.$anchor.outerWidth()+this.options.offset,e.top=e.top+this.$anchor.outerHeight()/2-this.$el.outerHeight()/2;break;case"bottom":e.top=e.top+this.$anchor.outerHeight()+this.options.offset,e.left=e.left+this.$anchor.outerWidth()/2-this.$el.outerWidth()/2;break;default:e.top=e.top-this.$el.outerHeight()-this.options.offset;var t=e.left+this.$anchor.outerWidth()/2-this.$el.outerWidth()/2;e.left=t=t<0?0:t}return e},_setPosition:function(){this.$el.css(this.getPosition())}},o.fn[i]=function(e,t){if("string"==typeof e)switch(e){case"show":this.each(function(){o.data(this,"plugin_"+i).show()});break;case"hide":this.each(function(){o.data(this,"plugin_"+i).hide()});break;case"toggle":this.each(function(){o.data(this,"plugin_"+i).toggle()});break;case"addClass":this.each(function(){o.data(this,"plugin_"+i).addClass(t)});break;case"removeClass":this.each(function(){o.data(this,"plugin_"+i).removeClass(t)})}return this.each(function(){o.data(this,"plugin_"+i)||o.data(this,"plugin_"+i,new a(this,e))})}}(jQuery,(window,document)),function(n){n(document).ready(function(){n(".bsf-has-tip, .has-tip").each(function(e,t){$tip=n(t);var o=void 0!==$tip.attr("data-attribute")?$tip.attr("data-attribute"):"title",i=void 0!==$tip.attr("data-offset")?$tip.attr("data-offset"):10,s=void 0!==$tip.attr("data-position")?$tip.attr("data-position"):"top",a=($tip.attr("data-trigger"),$tip.attr("data-trigger")),t=void 0!==$tip.attr("data-classes")?"tip "+$tip.attr("data-classes"):"tip";$tip.frosty({className:t,attribute:o,offset:i,position:s,trigger:a})})})}(jQuery),function(p){"use strict";let a="",w="",i="";const n=new Date;let s="",u="",r="",l="",c="",h="",d="",f="",m="",j="",e="",t,y="",g="",o=!0,v,b="",_="",C="",Q="",x="",T=!1,k=!1,S="",F="",Y=Array();const X=Array();let E="",A="",D="",I,W,R="",P="",H="",L,O="",M="",$,z=!0,B="",N=0,U="",V="";const q={init(e,t,o){switch(a=t.data("class-id"),P=t.data("module-type"),u=t.data("dev-mode"),r=t.data("exit-intent"),w=p("."+a),$=t.data("onload-delay"),l=1e3*$,c=t.data("load-on-refresh"),h=t.data("onscroll-value"),d=t.find(".cp-impress-nonce").val(),y=t.data("referrer-domain"),g=t.data("referrer-check"),i=document.referrer.toLowerCase(),b=w.find(".cp-youtube-frame").attr("data-autoplay")||"0",C=t.data("inactive-time"),Q=jQuery(".cp-load-after-post").length,x=t.data("after-content-value"),S=t.data("scroll-class"),T=t.hasClass("cp-after-post"),R=t.data("custom-class"),B=t.data("custom-selector"),F=w.find("iframe"),""!==b&&(b=w.find(".cp-youtube-continer").attr("data-autoplay")||"0"),"info-bar"===P?(m=t.data("info_bar-id"),f=t.data("parent-style"),E=t.data("info_bar-style"),A=t,D=t.data("toggle-visible"),H=A,T=t.hasClass("ib-after-post"),q._infoBarPos(A),s=q._isScheduled(A)):"modal"===P?(f=w.data("parent-style"),m=t.data("modal-id"),E=t.data("modal-style"),s=q._isScheduled(w),H=w,U=w.find(".cp-modal-body").data("custom-style"),V=w.find(".cp-modal-content").data("window-style")):"slide_in"===P&&(O=p("."+a),m=O.data("slidein-id"),D=t.data("toggle-visible"),E=O.data("slidein-style"),T=t.hasClass("si-after-post"),M=t.closest(".cp-slidein-popup-container"),H=p("."+a),s=q._isScheduled(O),f=O.data("parent-style"),U=O.find(".cp-slidein-body").data("custom-style")),"modal"===P&&H.hasClass("cp-window-size")&&w.windowSize(),void 0!==f&&(m=f),j="temp_"+m,q._removeCookie(j),o){case"load":""!==$&&this._CploadEvent(),this._CpCustomClass(),this._CpLoadImages(),this._CpIframe(),"slide_in"===P&&this._close_button_tootip();break;case"scroll":this._CpscrollEvent(e);break;case"mouseleave":this._CpmouseleaveEvent(e);break;case"closepopup":this._CpclosepopupEvent(e);break;case"idle":this._CpidleEvent()}},_hide_on_page_load(e){let t=!1;var o;return"disabled"===c?(o=e.data("load-on-count")-1,e=parseInt(q._getPageCookie(m+"pageLoads"),10),isNaN(e)||e<=0?q._setPageCookie(m+"pageLoads",1):q._setPageCookie(m+"pageLoads",e+1),o<q._getPageCookie(m+"pageLoads")&&(t=!0)):q._removeCookie(m+"pageLoads"),t},_CpclosepopupEvent(e){var t,o,i=P;let s,a,n,r,l,c,d,p,u,h,f,m,y,g;if("modal"===i&&void 0!==w){if(c=w.data("closed-cookie-time"),a=w.find(".cp-animate-container"),d=w.data("overlay-animation"),p=a.data("exit-animation"),u=a.data("disable-animationwidth"),h=jQuery(window).width(),f=w.data("parent-style"),g=w.find("iframe"),1===g.length&&void 0!==g.attr("src")&&g[0].attributes.src.value.includes("https://player.vimeo.com/")){const v=new Vimeo.Player(g);v.setVolume(0)}l=void 0!==f?f:w.data("modal-id"),q._createCookie(j,!0,1),r=q._getCookie(l),q._cpExecuteVideoAPI(w,"pause"),void 0!==e&&e.preventDefault(),r||c&&(q._createCookie(l,!0,c),q._cpExecuteVideoAPI(w,"pause")),("cp-overlay-none"===p||void 0!==u&&h<=u)&&(w.removeClass("cp-open"),w.hasClass("cp-hide-inline-style")&&(p="cp-overlay-none"),p="cp-overlay-none",jQuery(".cp-open").length<1&&jQuery("html").removeAttr("style")),a.removeClass(d),(h>=u||void 0===u)&&a.addClass(p),"cp-overlay-none"!==p&&setTimeout(function(){q._cpExecuteVideoAPI(w,"pause"),jQuery(".cp-open").length<1&&jQuery("html").removeAttr("style"),setTimeout(function(){a.removeClass(p)},500),w.removeClass("cp-open"),jQuery(".cp-overlay").removeClass("cp-open")},1e3)}else if("info-bar"===i){if(d=A.data("entry-animation"),p=A.data("exit-animation"),c=A.data("closed-cookie-time"),l=A.data("info_bar-id"),m=A.data("animate-push-page"),y=A.data("push-down")||null,f=A.data("parent-style"),jQuery("html").removeClass("cp-ib-open"),void 0!==f&&(l=f),j="temp_"+l,A.hasClass("cp-ifb-with-toggle")||(A.removeClass(d),A.addClass(p)),A.hasClass("cp-pos-top")){if(y){const b=jQuery("#cp-top-offset-container").val(),_=jQuery("#cp-top-offset-container").data("offset_def_settings");if(void 0!==_){let e=_.margin_top,t=_.top;setTimeout(function(){A.hasClass("cp-ifb-hide")&&(e=0,t=0),1===parseInt(m)?""===b?jQuery("body").animate({marginTop:e,top:t}):jQuery(b).animate({"margin-top":e,top:t}):(""===b?jQuery("body"):jQuery(b)).css({"margin-top":e,top:t})},2e3)}}1===jQuery(".ib-display").length&&(t=jQuery("#wpadminbar").outerHeight(),o=jQuery("#cp-push-down-support").val(),jQuery("#wpadminbar").length?1===parseInt(m)?jQuery(o).animate({top:t},1e3):jQuery(o).css("top",t):1===parseInt(m)?jQuery(o).animate({top:"0px"},1e3):jQuery(o).css("top","0px"))}q._createCookie(j,!0,1),c&&q._createCookie(l,!0,c),(A.hasClass("cp-hide-inline-style")||A.hasClass("cp-close-ifb"))&&(p="cp-overlay-none"),A.hasClass("cp-close-ifb")&&setTimeout(function(){A.hide(),A.removeClass("ib-display"),A.removeClass(p),A.addClass(d),jQuery("html").css("overflow-x","auto")},3e3),"cp-overlay-none"!==p?setTimeout(function(){A.hasClass("cp-ifb-with-toggle")||(A.hide(),A.removeClass("ib-display"),A.removeClass(p),A.addClass(d)),jQuery("html").css("overflow-x","auto")},3e3):setTimeout(function(){A.hasClass("cp-ifb-with-toggle")||(A.hide(),A.removeClass("ib-display"),p="cp-overlay-none",A.removeClass(p),A.addClass(d)),jQuery("html").css("overflow-x","auto")},100)}else"slide_in"===i&&(s=O.parents(".cp-slidein-popup-container"),n=s.data("template"),c=O.data("closed-cookie-time"),a=O.find(".cp-animate-container"),d=O.data("overlay-animation"),p=a.data("exit-animation"),f=O.data("parent-style"),jQuery("html").removeClass("cp-si-open"),l=void 0!==f?f:O.data("slidein-id"),j="temp_"+l,q._createCookie(j,!0,1),r=q._getCookie(l),void 0!==e&&e.preventDefault(),r||c&&q._createCookie(l,!0,c),(O.hasClass("cp-hide-inline-style")||O.hasClass("cp-close-slidein"))&&(p="cp-overlay-none"),(O.hasClass("cp-close-slidein")||O.hasClass("cp-close-after-x"))&&O.removeClass("si-open"),u=a.data("disable-animationwidth"),h=jQuery(window).width(),("cp-overlay-none"===p||void 0!==u&&h<=u)&&(O.hasClass("cp-slide-without-toggle")&&O.removeClass("si-open"),p="cp-overlay-none",jQuery(".cp-slidein-global.si-open").length<1&&jQuery("html").removeAttr("style")),n||(a.removeClass(d),u=a.data("disable-animationwidth"),h=jQuery(window).width(),(h>=u||void 0===u)&&a.addClass(p),"cp-overlay-none"!==p&&setTimeout(function(){O.hasClass("cp-slide-without-toggle")&&O.removeClass("si-open"),jQuery(".cp-slidein-global.si-open").length<1&&jQuery("html").removeAttr("style"),setTimeout(function(){O.hasClass("do_not_close")||("disappear"===O.data("form-action")?O.removeClass("si-open"):a.removeClass(p))})},1e3)));jQuery("html").removeClass("cp-mp-open"),jQuery("html").removeClass("cp-oveflow-hidden"),jQuery("html").removeClass("customize-support"),jQuery("html").removeClass("cp-exceed-viewport"),jQuery("html").removeClass("cp-exceed-vieport cp-window-viewport"),jQuery("html").removeClass("cp-custom-viewport"),jQuery("html").removeClass("cp-overflow-hidden")},_CpCustomClass(){void 0!==R&&""!==R&&(R=R.split(" "),jQuery.each(R,function(e,t){void 0!==t&&""!==t&&X.push(t)}))},_CpLoadImages(){const e=H;var t=P,o=U,i=V;"modal"===t?(void 0!==o&&(e.find(".cp-modal-body").attr("style",o),e.find(".cp-modal-body").removeAttr("data-custom-style")),void 0!==i&&(e.find(".cp-modal-content").attr("style",i),e.find(".cp-modal-content").removeAttr("data-window-style"))):"slide_in"===t&&void 0!==o&&(e.find(".cp-slidein-body").attr("style",o),e.find(".cp-slidein-body").removeAttr("data-custom-style"))},_CpIframe(){jQuery.each(F,function(e,t){let o=t.src;var i=o.search("youtube.com"),s=o.search("vimeo.com");o=o.replace("&autoplay=1",""),o=o.replace("&mute=1",""),-1!==i&&(i=-1===o.indexOf("?")?o+"?enablejsapi=1":o+"&enablejsapi=1","1"===t.dataset.autoplay?t.src=i+"&autoplay="+t.dataset.autoplay+"&mute=1":t.src=i,t.id="yt-"+a),-1!==s&&(t.src=t.src+"?api=1",t.id="vim-"+a)})},_CploadEvent(){const e=H,t=P,o=E;let i=!1,s,a=!0;"disabled"===c&&(a=q._hide_on_page_load(e)),void 0!==e&&q._canCpShow()&&a&&l&&setTimeout(function(){i=q._isOtherPopupOpen(t),"slide_in"===t&&(s=q._check_slide_open(e),s&&(i=!0)),i&&q._displayPopup(e,t,o)},parseInt(l)),"enabled"===u&&q._removeCookie(m)},_CpmouseleaveEvent(e){var t=H,o=P,i=E;let s=!1;"enabled"===r&&void 0!==t&&q._canCpShow()&&e.clientY<=0&&(s=q._isOtherPopupOpen(o),"slide_in"===o&&q._check_slide_open(t)&&(s=!0),s&&q._displayPopup(t,o,i)),"enabled"===u&&q._removeCookie(m)},_check_slide_open(e){let t=!1;return 0!==e.find(".cp-slide-in-float-on").length&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&(N=1),jQuery(".si-open").length<=N&&(t=!0),t},_CpscrollEvent(){let e=jQuery(window).scrollTop();const t=100*jQuery(window).scrollTop()/(jQuery(document).height()-jQuery(window).height()),i=H;let s,o=!1,a="disable";var n="";let r,l="";const c=E,d=P;h&&(a="enable",e=t.toFixed(0)),void 0!==S&&(l="enable"),q._canCpShow()&&(s=q._isOtherPopupOpen(d),e>=h&&"enable"===a?o=!0:T?0<Q&&(n=jQuery(".cp-load-after-post").offset().top-30,n-=jQuery(window).height()*x/100,e>=n&&(o=!0)):"enable"===l&&(S=S.split(" "),p.each(S,function(e,t){var o=jQuery(t).position();void 0!==o&&" "!==o&&(r=q._cp_modal_isOnScreen(jQuery(t)),s&&r&&q._displayPopup(i,d,c))})),s&&o&&q._displayPopup(i,d,c)),"enabled"===u&&q._removeCookie(m)},_CpidleEvent(){var e=H,t=P,o=E;q._canCpShow()&&q._isOtherPopupOpen(t)&&void 0!==C&&q._displayPopup(e,t,o)},_displayPopup(t,e,o){Y=Array();var i=q._getCookie("cp-impression-added-for"+o);if("modal"===e){p(window).trigger("modalOpen",[t]),p(document).trigger("resize");var s=t.find(".cp-youtube-frame").length;let e=!1;b=1<=s?t.find(".cp-youtube-frame").attr("data-autoplay")||"0":(e=!0,t.find(".cp-youtube-continer").attr("data-autoplay")||"0"),1===parseInt(b)&&(e?t.find(".cp-youtube-continer").trigger("click",[b]):q._cpExecuteVideoAPI(t,"play")),t.addClass("cp-open cp-visited-popup"),i||t.hasClass("cp_impression_counted")||t.hasClass("cp-disabled-impression")||(-1===Y.indexOf(o)&&Y.push(o),t.addClass("cp_impression_counted"),q._createCookie("cp-impression-added-for"+o,!0,1),0!==Y.length&&q.update_impressions(Y)),q._youtube_show_cta(t)}else"info-bar"===e?(i||t.hasClass("cp_impression_counted")||t.hasClass("cp-disabled-impression")||(-1===Y.indexOf(o)&&Y.push(o),0!==Y.length&&void 0===D&&(q.update_impressions(Y),q._createCookie("cp-impression-added-for"+o,!0,1),jQuery("[data-info_bar-style="+E+"]").each(function(){jQuery(this).addClass("cp_impression_counted")}))),t.hasClass("cp-pos-top")?jQuery("body").hasClass("admin-bar")&&(W=jQuery("#wpadminbar").outerHeight(),t.css("top",W+"px")):(L=t.find(".cp-info-bar-body").outerHeight(),t.css("min-height",L+"px")),t.addClass("ib-display"),jQuery(document).trigger("resize"),jQuery(document).trigger("infobarOpen",[t]),setTimeout(function(){I=t.find(".cp-submit").data("animation"),t.find(".cp-submit").addClass(I)},2e3)):"slide_in"===e&&(q._adjustToggleButton(M),jQuery(window).trigger("slideinOpen",[t]),t.addClass("si-open"),i||t.hasClass("cp_impression_counted")||t.hasClass("cp-disabled-impression")||(-1===Y.indexOf(o)&&Y.push(o),0!==Y.length&&void 0===D&&(q.update_impressions(Y),q._createCookie("cp-impression-added-for"+o,!0,1),jQuery("[data-slidein-style="+E+"]").each(function(){jQuery(this).addClass("cp_impression_counted")}))))},update_impressions(e){!0===z?(d=jQuery(".cp-impress-nonce").val(),_={action:"smile_update_impressions",impression:!0,styles:e,option:"smile_modal_styles",security:d},jQuery.ajax({url:smile_ajax.url,data:_,type:"POST",dataType:"HTML",security:jQuery(".cp-impress-nonce").val(),beforeSend(){z=!1}})):setTimeout(function(){d=jQuery(".cp-impress-nonce").val(),_={action:"smile_update_impressions",impression:!0,styles:e,option:"smile_modal_styles",security:d},jQuery.ajax({url:smile_ajax.url,data:_,type:"POST",dataType:"HTML",security:jQuery(".cp-impress-nonce").val(),beforeSend(){z=!1}})},2e3)},_isOtherPopupOpen(e){let t="",o,i;return"modal"===e?t=p(".cp-open").length<=0&&!w.hasClass("cp-visited-popup"):"info-bar"===e?t=jQuery(".ib-display").length<=0:"slide_in"===e&&(o=jQuery(".si-open").find(".cp-slide-in-float-on").length,i=0===o?0:1,t=jQuery(".si-open").length<=i&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&!O.hasClass("cp_impression_counted")),t},_canCpShow(){return e=q._getCookie(m),t=q._getCookie(j),e="enabled"===u&&!!t||q._getCookie(m),"slide_in"===P&&("enabled"===u?q._removeCookie(m+"-conversion"):(e&&O.hasClass("cp-always-minimize-widget")&&(O.addClass("cp-minimize-widget"),e=!1),q._getCookie(m+"-conversion")&&O.hasClass("cp-always-minimize-widget")&&(e=!0))),null===e&&(e=!1),void 0!==y&&""!==y&&(o=q._isReferrer(y,i,g)),v=q._isOtherPopupOpen(P),!e&&s&&o&&v},_isWindowSize(e){return e.hasClass("cp-window-size")},_removeCookie(e){q._createCookie(e,"",-1)},_createCookie(e,t,o){let i="";if(o){const s=new Date;s.setTime(s.getTime()+24*o*60*60*1e3),i="; expires="+s.toGMTString()}document.cookie=e+"="+t+i+"; path=/"},_getCookie(e){var o=e+"=",i=document.cookie.split(";");for(let t=0;t<i.length;t++){let e=i[t];for(;" "===e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(o))return e.substring(o.length,e.length)}return null},_setPageCookie(e,t,o){const i=new Date,s=new Date;null!==o&&0!==o||(o=1),s.setTime(i.getTime()+864e5*o),document.cookie=e+"="+escape(t)+";expires="+s.toGMTString()},_getPageCookie(e){const t=" "+document.cookie;let o=t.indexOf(" "+e+"=");if(-1===o&&(o=t.indexOf(";"+e+"=")),-1===o||""===e)return"";let i=t.indexOf(";",o+1);return-1===i&&(i=t.length),unescape(t.substring(o+e.length+2,i))},_isScheduled(e){var t=e.data("timezonename"),o=e.data("tz-offset");let i;const s=new Date;var a=s.getTime()+6e4*s.getTimezoneOffset(),a=new Date(a+36e5*o),o=e.data("scheduled");if(void 0!==o&&o){o=e.data("start"),e=e.data("end"),o=Date.parse(o),e=Date.parse(e);return i="system"===t?Date.parse(n):Date.parse(a),i>=o&&i<=e?!0:!1}return!0},_isReferrer(e,t,a){let n=!1;if(void 0!==t){const r=q._stripTrailingSlash(t.replace(/.*?:\/\//g,""));e=e.split(",");jQuery.each(e,function(e,t){let o=q._stripTrailingSlash(t),i=r.replace("www.","");var s,t="";return o=q._stripTrailingSlash(o.replace(/.*?:\/\//g,"")),o=o.replace("www.",""),s=o.split("*"),-1!==i.indexOf("reddit.com")?i="reddit.com":-1!==i.indexOf("t.co")&&(i="twitter.com"),-1!==i.indexOf("plus.google.co")?i="plus.google.com":-1!==i.indexOf("google.co")&&(i="google.com"),t=s[0],t=q._stripTrailingSlash(t),"display"===a?-1!==o.indexOf("*")?t===i||-1!==i.indexOf(t)?!(n=!0):n=!1:o===i||-1!==i.indexOf(t)?!(n=!0):void(n=!1):"hide"===a?-1!==o.indexOf("*")?t===i||-1!==i.indexOf(t)?n=!1:!(n=!0):o===i||-1!==i.indexOf(t)?n=!1:void(n=!0):void 0})}return n},_stripTrailingSlash(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},_cpExecuteVideoAPI(e,n){e=e.find("iframe");jQuery.each(e,function(e,t){let o=t.src;"1"===parseInt(b)&&(o=t.getAttribute("data_y_src"),""!==o&&null!==o||(o=t.src));var i=o.search("youtube.com");if(!0===k&&(n="play"),1<=i){const s=t.contentWindow;"play"===n?(s.postMessage('{"event":"command","func":"playVideo","args":""}',"*"),F.hasClass("cp-youtube-frame")&&(F.removeAttr("data_y_src"),F.attr("allow","autoplay"),F.attr("src",o.replace("autoplay=0","autoplay=1")))):(1===parseInt(b)&&(F.attr("data_y_src",o),F.removeAttr("src")),F.removeAttr("allow"),F.attr("data_y_src",o.replace("autoplay=0","autoplay=0")),F.removeAttr("src"),s.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),s.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"))}if(1<=o.search("vimeo.com")){const a=t.contentWindow;"play"===n?a.postMessage('{"method":"play"}',"*"):a.postMessage('{"method":"pause"}',"*")}})},_youtube_show_cta(e){const t=e.find(".cp-form-container");if(e.find(".cp-modal-body").hasClass("cp-youtube")&&!t.hasClass("cp-youtube-cta-none")){let e=t.attr("data-cta-delay")||"";""!==e&&null!==e&&(e=parseInt(1e3*e),t.slideUp("500"),setTimeout(function(){t.slideDown("500")},e))}},_check_responsive_font_sizes(){jQuery(".cp_responsive[data-font-size-init]").each(function(e,t){const o=jQuery(t),i=jQuery(this).html();0<=i.toLowerCase().indexOf("cp_font")&&i.match("^<span")&&i.match("</span>$")?o.addClass("cp-no-responsive"):o.removeClass("cp-no-responsive")})},_count_inline_impressions(e){const n=e.data("module-type");let t="";"modal"===n?t=".cp-modal-inline-end":"info-bar"===n?t=".cp-info_bar-inline-end":"slide_in"===n&&(t=".cp-slide_in-inline-end"),jQuery(t).each(function(){const e=jQuery(this);var t=q._isScrolledIntoStyleView(e),o=e.data("style"),i=q._getCookie("cp-impression-added-for"+o);let s,a;"modal"===n?(s=!jQuery(".cp-overlay[data-modal-style="+o+"]").hasClass("cp_impression_counted")&&!jQuery(".cp-overlay[data-modal-style="+o+"]").hasClass("cp-disabled-impression"),a=".cp-overlay[data-modal-style="+o+"]"):"info-bar"===n?(s=!jQuery("[data-info_bar-style="+o+"]").hasClass("cp_impression_counted")&&!jQuery("[data-info_bar-style="+o+"]").hasClass("cp-disabled-impression"),a="[data-info_bar-style="+o+"]"):"slide_in"===n&&(s=!jQuery("[data-slidein-style="+o+"]").hasClass("cp_impression_counted")&&!jQuery("[data-slidein-style="+o+"]").hasClass("cp-disabled-impression"),a="[data-slidein-style="+o+"]"),t&&!i&&(Y=Array(),s&&(Y.push(o),q.update_impressions(Y),q._createCookie("cp-impression-added-for"+o,!0,1)),jQuery(a).each(function(){e.addClass("cp_impression_counted")}))})},_close_button_tootip(){var e,t,o,i;"modal"===P&&"undefined"!==P?jQuery(".cp-overlay").each(function(){const e=jQuery(this);var t=e.find(".cp-tooltip-icon").data("classes"),o=e.find(".cp-tooltip-icon").data("color"),i=e.find(".cp-tooltip-icon").data("bgcolor"),s=e.find(".cp-tooltip-icon").data("font-family");let a="";e.find(".cp-overlay-close").hasClass("cp-adjacent-left")?a="right":e.find(".cp-overlay-close").hasClass("cp-adjacent-right")&&(a="left"),e.find(".cp-tooltip-icon").removeAttr("data-position"),e.find(".cp-tooltip-icon").attr("data-position",a);var n=a;jQuery("body").addClass("customize-support"),void 0!==t&&jQuery("."+t).remove(),jQuery("head").append('<style class="cp-tooltip-css '+t+'">.customize-support .tip.'+t+"{color: "+o+";background-color:"+i+";border-color:"+i+";font-family:"+s+"; }</style>"),"left"===n?jQuery("head").append('<style class="cp-tooltip-css '+t+'">.customize-support .tip.'+t+'[class*="arrow"]:before , .'+t+'[class*="arrow"]:before {border-left-color: '+i+" ;border-top-color:transparant}</style>"):"right"===n?jQuery("head").append('<style class="cp-tooltip-css '+t+'">.customize-support .tip.'+t+'[class*="arrow"]:before , .'+t+'[class*="arrow"]:before{border-right-color: '+i+";border-left-color:transparent }</style>"):jQuery("head").append('<style class="cp-tooltip-css '+t+'">.customize-support .tip.'+t+'[class*="arrow"]:before , .'+t+'[class*="arrow"]:before{border-top-color: '+i+";border-left-color:transparent }</style>")}):"slide_in"===P&&"undefined"!==P&&(e=H.find(".has-tip").data("classes"),t=H.find(".has-tip").data("color"),o=H.find(".has-tip").data("bgcolor"),i=H.find(".has-tip").data("position"),jQuery("body").addClass("customize-support"),jQuery("head").append('<style class="cp-tooltip-css">.customize-support .tip.'+e+"{color: "+t+";background-color:"+o+";font-size:13px;border-color:"+o+" }</style>"),"left"===i?jQuery("head").append('<style class="cp-tooltip-css">.customize-support .tip.'+e+'[class*="arrow"]:before , .'+e+'[class*="arrow"]:before {border-left-color: '+o+" ;border-top-color:transparent}</style>"):"right"===i?jQuery("head").append('<style class="cp-tooltip-css">.customize-support .tip.'+e+'[class*="arrow"]:before , .'+e+'[class*="arrow"]:before{border-right-color: '+o+";border-left-color:transparent }</style>"):jQuery("head").append('<style class="cp-tooltip-css">.customize-support .tip.'+e+'[class*="arrow"]:before , .'+e+'[class*="arrow"]:before{border-top-color: '+o+";border-left-color:transparent }</style>"))},_isScrolledIntoStyleView(e){const t=e,o=p(window),i=o.scrollTop(),s=i+o.height(),a=t.offset().top,n=a+t.height();return n<=s&&i<=a},_cp_modal_isOnScreen(e){const t=p(window),o={top:t.scrollTop(),left:t.scrollLeft()};o.right=o.left+t.width(),o.bottom=o.top+t.height();const i=e.offset();return i.right=i.left+e.outerWidth(),i.bottom=i.top+e.outerHeight(),!(o.right<i.left||o.left>i.right||o.bottom<i.top||o.top>i.bottom)},_infoBarPos(t){if(t.hasClass("cp-pos-top"))t.css("top","0");else if(t.hasClass("ib-fixed"))t.css("top","auto");else{var o=t.data("toggle");let e=jQuery("body").parent("html").height();var i=t.find(".cp-ifb-toggle-btn").outerHeight(),s=t.find(".cp-info-bar-body").outerHeight();1===parseInt(o)&&(e=e-s+i),t.hasClass("cp-info-bar-inline")||t.css("top",e+"px"),t.css("min-height",s+"px")}jQuery("body").hasClass("admin-bar")&&t.hasClass("cp-pos-top")&&(s=jQuery("#wpadminbar").outerHeight(),t.hasClass("cp-info-bar-inline")||t.css("top",s+"px"))},_windowSize(){const e=this.find(".cp-content-container"),t=this.find(".cp-info-bar"),o=this.find(".cp-info-bar-content"),i=this.find(".cp-info-bar-body");t.removeAttr("style"),o.removeAttr("style"),e.removeAttr("style"),i.removeAttr("style");var s=jQuery(window).width()+30,a=jQuery(window).height();jQuery(this).find("iframe").css("width",s),e.css({"max-width":s+"px",width:"100%",height:a+"px",padding:"0",margin:"0 auto"}),o.css({"max-width":s+"px",width:"100%"}),t.css({"max-width":s+"px",width:"100%",left:"0",right:"0"}),i.css({"max-width":s+"px",width:"100%",height:a+"px"})},_cp_set_ifb_ht(e){var t=parseInt(jQuery(e).outerHeight()),o=jQuery(window).outerWidth();const i=window.navigator.userAgent;let s=0;void 0!==i&&(s=i.indexOf("MSIE ")),(0<s||navigator.userAgent.match(/Trident.*rv\:11\./))&&(768<o?jQuery(e).find(".cp-info-bar-body").css({height:t+"px"}):jQuery(e).find(".cp-info-bar-body").css({height:"auto"}))},_cp_ifb_color_for_list_tag(e){const l=jQuery(e).data("class");jQuery(e).find("li").each(function(){if(0===jQuery(this).parents(".cp_social_networks").length){const r=jQuery(this);var i=r.parents("div").attr("class").split(" ")[0],s=r.index()+1,a=r.find(".cp_font").css("font-size");let t=r.find("span").css("color"),e=r.parent();e=e[0].nodeName.toLowerCase();let o="";"ul"===e?(o=r.closest("ul").css("list-style-type"),"none"===o&&r.closest("ul").css("list-style-type","disc")):(o=r.closest("ol").css("list-style-type"),"none"===o&&r.closest("ol").css("list-style-type","decimal")),jQuery(this).find("span").each(function(){var e=jQuery(this).css("color");0<e.length&&(t=e)});var n;jQuery(".cp-li-color-css-"+s).remove(),jQuery(".cp-li-font-css-"+s).remove(),a&&(n="font-size:"+a,jQuery("head").append('<style class="cp-li-font-css'+s+'">.'+l+" ."+i+" li:nth-child("+s+"){ "+n+"}</style>")),t&&jQuery("head").append('<style class="cp-li-color-css'+s+'">.'+l+" ."+i+" li:nth-child("+s+"){ color: "+t+";}</style>")}})},_apply_push_page_down(t){setTimeout(function(){var e=t.data("toggle-visible")||null;q._push_page_down(t,!1,e)},300)},_push_page_down(t,o,e){var i=t.data("push-down")||null,s=t.data("animate-push-page"),a=jQuery("#cp-top-offset-container").val();if(i&&!e&&t.hasClass("cp-pos-top")){let e="";o=q._cal_top_margin_push_down(t,s,o);isNaN(parseFloat(o))||(e=1===parseInt(s)?""===a?(jQuery("body").removeClass("cp_push_no_scroll").addClass("cp_push_scroll_animate"),"body.cp_push_scroll_animate{margin-top:"+o+"px!important}"):a+"{margin-top:"+o+"px}":""===a?(jQuery("body").removeClass("cp_push_scroll_animate").addClass("cp_push_no_scroll"),"body.cp_push_no_scroll{margin-top:"+o+"px!important}"):a+"{margin-top:"+o+"px}",p(".cp-push-page-css").remove(),p("head").append('<style class="cp-push-page-css">'+e+"</style>"))}},_cal_top_margin_push_down(e,t,o){var i=jQuery("#cp-top-offset-container").val();let s,a,n=jQuery("#wpadminbar").outerHeight();e=e.outerHeight();""===i&&G<=1?(a=jQuery("body").offset().top,s={margin_top:jQuery("body").css("margin-top"),top:jQuery("body").css("top")}):0<jQuery(i).length&&(a=jQuery(i).offset().top,s={margin_top:jQuery(i).css("margin-top"),top:jQuery(i).css("top")}),void 0!==s&&(i=JSON.stringify(s),jQuery("#cp-top-offset-container").attr("data-offset_def_settings",i)),void 0===a&&(a=0),void 0===n&&(n=0);let r=e+a-n,l=+(e+a);return o&&(l=n+e,r=e),1===parseInt(t)?jQuery("#cp-push-down-support").stop().animate({top:l+"px"},1200):jQuery("#cp-push-down-support").css("top",l+"px"),r},_cp_ifb_toggle(){jQuery(".cp-info-bar").each(function(e,t){const o=jQuery(t);o.find(".cp-ifb-toggle-btn").on("click",function(){const e=jQuery(this),t=e.closest(".cp-info-bar");let o="smile-slideInDown";var i=t.data("exit-animation"),s=t.data("entry-animation");const a=t.find(".cp-info-bar-body");var n=t.data("toggle-visible"),r=t.data("impression-added"),l=t.data("info_bar-id");n&&(void 0!==r||t.hasClass("cp-disabled-impression")||(Y=[l],q.update_impressions(Y),t.data("impression-added","true")));q._push_page_down(t,!1,null),t.removeClass(s),t.removeClass(i),t.hasClass("cp-pos-bottom")&&(o="smile-slideInUp");i=t.attr("class");e.removeClass("cp-ifb-show smile-animated "+o),t.attr("class",i),t.attr("class",i+" smile-animated "+s),t.removeClass("cp-ifb-hide"),e.addClass("cp-ifb-hide"),a.addClass("cp-flex"),t.find(".ib-close").css({visibility:"visible"}),q._push_page_down(A,!0)}),o.find(".ib-close").on("click",function(){const e=jQuery(this).parents(".cp-info-bar"),t=e.find(".cp-ifb-toggle-btn"),o=e.find(".cp-info-bar-body");let i="smile-slideInDown";const s=e.data("exit-animation");var a=e.data("entry-animation"),n=e.data("toggle");const r=e.find(".form-main").attr("class");1===parseInt(n)&&(e.hasClass("cp-pos-bottom")&&(i="smile-slideInUp"),e.removeClass(a),a=e.attr("class"),e.attr("class",a+" "+s),setTimeout(function(){t.removeClass("cp-ifb-hide"),t.addClass("cp-ifb-show smile-animated "+i),e.removeClass("smile-animated"),e.removeClass(s),e.addClass("cp-ifb-hide"),o.removeClass("cp-flex"),e.find(".ib-close").css({visibility:"hidden"}),void 0!==r&&(e.find(".smile-optin-form")[0].reset(),e.find(".cp-form-processing-wrap").css("display","none"),e.find(".cp-form-processing").removeAttr("style"),e.find(".cp-msg-on-submit").removeAttr("style"),e.find(".cp-m-success").remove(),e.find(".cp-m-error").remove())},1500))})})},_adjustToggleButton(e){var t;0<e.find(".cp-slidein-toggle").length&&(t=e.find(".cp-slidein-head").outerHeight(),e.find(".cp-animate-container").css({height:t+"px",opacity:"0"}))}};function K(e){var t=e.data("module-type");let o=!0;var i=e.data("class-id");let s;return"modal"===t?(w=p("."+i),o=w.hasClass("cp-open")||w.hasClass("cp-visited-popup")):"slide_in"===t?(s=p("."+i),o=s.hasClass("si-open")):"info-bar"===t&&(o=e.hasClass("ib-display")),o}p(window).on("load",function(){p(".cp-global-load").each(function(e){var t=jQuery(this).data("inactive-time");void 0!==t&&(t*=1e3,jQuery(document).idleTimer({timeout:t,idle:!1})),q.init(e,p(this),"load"),void 0!==window.orientation&&(k=!0)}),p(".cp-modal-global").each(function(){var e=p(this).data("modal-style");if(void 0!==e&&""!==e){const t=jQuery(".cp-modal-popup-container."+e);t.hasClass("cp-inline-modal-container")||(t.appendTo(document.body),p(this).appendTo(document.body))}}),jQuery("html").addClass("cp-overflow-hidden");const o=[];jQuery.each(X,function(e,t){-1===p.inArray(t,o)&&o.push(t)}),jQuery.each(o,function(e,t){if(""!==t&&"undefined"!==t&&null!==t){let c="."+t,d=!1;if(-1!==t.indexOf("#")||-1!==t.indexOf(".")){let e=t;e=e.replace(/^(?:\[[^\]]*\]|\([^()]*\))\s*|\s*(?:\[[^\]]*\]|\([^()]*\))/g,""),c=e,d=!0}jQuery("body").on("click",c,function(e){let t,o;var i,s;let a,n,r;t=d?jQuery(".cp-global-load[data-custom-selector='"+B+"']"):jQuery(".cp-global-load"+c),o=t.data("module-type");let l=!1;jQuery(this).hasClass("global_info_bar_container")&&(l=!0),"modal"===o?(i=t.data("modal-style"),jQuery(".cp-modal-popup-container."+i).find(".cp-animate-container").hasClass("cp-form-submit-success")||(e.preventDefault(),a=t.data("class-id"),n=p("."+a),n.hasClass("cp-window-size")&&n.windowSize(),p(".global_modal_container.cp-open").length<=0&&(q._displayPopup(n,o,i),i=n.find(".cp-tooltip-icon").data("classes"),p("head").append('<style class="cp-tooltip-close-css">.tip.'+i+"{ display:block; }</style>")),1<=n.find(".cp-youtube-continer").length?(s=n.find(".cp-youtube-continer").data("autoplay"),n.find(".cp-youtube-continer").trigger("click",[s])):(s=n.find(".cp-youtube-frame").attr("data_y_src"),n.find(".cp-youtube-frame").attr("src",s),n.find(".cp-youtube-frame").removeAttr("data_y_src")),0!==Y.length&&(p(this).hasClass("cp-disabled")||n.hasClass("cp-disabled-impression")||(q.update_impressions(Y),p(document).trigger("cp_custom_class_clicked",[this]))))):"info-bar"!==o||l?"slide_in"===o&&(jQuery(this).hasClass("slidein-overlay")||(e.preventDefault(),o=t.data("module-type"),a=t.data("class-id"),O=p("."+a),E=O.data("slidein-style"),jQuery(".si-open").length<=1&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&(O.find(".cp-animate-container").removeClass("cp-hide-slide"),q._displayPopup(O,o,E)))):(jQuery(this).hasClass("global_info_bar_container")||e.preventDefault(),r=t.first(),e=r.data("info_bar-id"),r.hasClass("cp-form-submit-success")||(a=r.data("custom-class"),q._isOtherPopupOpen(o)&&(r.css("display","block"),q._displayPopup(r,o,e))))})}})}),window.createCookie=function(e,t,o){let i="";if(o){const s=new Date;s.setTime(s.getTime()+24*o*60*60*1e3),i="; expires="+s.toGMTString()}document.cookie=e+"="+t+i+"; path=/"},window.isValidEmailAddress=function(e){const t=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return t.test(e)},window.validate_it=function(e,t){return!t.trim()||(e.hasClass("cp-email")?!isValidEmailAddress(t):!!e.hasClass("cp-textfeild")&&!1===/^[a-zA-Z0-9- ]*$/.test(t))},p(document).on("mouseleave",function(s){let a;p(".cp-global-load").each(function(){const e=p(this),t=e.data("exit-intent"),o=e.data("add-to-cart"),i=q._getCookie("woocommerce_items_in_cart");"enabled"===t&&1===parseInt(o)?(a=K(e),!1===a&&1===parseInt(i)&&q.init(s,e,"mouseleave")):"enabled"===t&&(a=K(e),!1===a&&q.init(s,e,"mouseleave"))})}),jQuery(document).on("idle.idleTimer",function(e){p(".cp-global-load").each(function(){q.init(e,p(this),"idle")})}),jQuery(window).on("load",function(){jQuery(".g-recaptcha-response")[0]&&(jQuery(".cp-onload ").addClass("cp-recaptcha cp-recaptcha-index-1 cp-recaptcha-index-2 cp-recaptcha-index-3 cp-recaptcha-index-4 cp-recaptcha-index-5 cp-recaptcha-index-6 cp-recaptcha-index-7 "),jQuery(".g-recaptcha-response").addClass("cp-recaptcha-required"),jQuery(".cp-recaptcha-required").prop("required",!0),jQuery(".g-recaptcha-response").parent().addClass("cp-g-recaptcha-response"));const e=jQuery(".cp-module"),t=e.data("module-type");"info-bar"===t&&1===jQuery(".g-recaptcha").parents(".cp-info-bar-container").length&&(jQuery(".cp-info-bar-body .cp-submit").addClass("cp-recaptcha-css"),jQuery(".ib-form-container .cp-form-container .cp-form-layout-3 .cp-submit .cp-recaptcha-css ").css("display","inline","!important"),jQuery(".ib-form-container .cp-form-container .cp-form-layout-3 .cp-submit-wrap").css("padding-bottom","40px"))}),jQuery(document).ready(function(){q._check_responsive_font_sizes(),jQuery(".blinking-cursor").remove(),p(".cp-global-load").each(function(){q._count_inline_impressions(p(this))}),q._cp_ifb_toggle()}),jQuery(window).on("load",function(){clearTimeout(p.data(this,"cp_check_empty_span")),p.data(this,"cp_check_empty_span",setTimeout(function(){const e=jQuery(".cp-load-after-post").parent().text().trim();void 0!==e&&0===e.trim().length&&1!==jQuery(window.parent.document).find(".cs-preview-frame-container").length&&jQuery(".cp-load-after-post").parent().addClass("cp-empty-content");const t=navigator.userAgent.toLowerCase();t.match(/(iphone|ipod|ipad)/)&&jQuery("html").addClass("cp-iphone-browser"),[].forEach.call(jQuery(".cp-module").find("img[data-src]"),function(e){e.setAttribute("src",e.getAttribute("data-src")),e.onload=function(){e.removeAttribute("data-src")}})},1e3))});let G=0,J;jQuery(window).on("resize",function(){clearTimeout(J),J=setTimeout(function(){q._close_button_tootip(),jQuery(".cp-info-bar.ib-display").each(function(){var e=jQuery(this);G++,q._apply_push_page_down(e,"resize")}),jQuery(".cp-info-bar").each(function(){q._infoBarPos(jQuery(this))})},1e3)}),jQuery(window).on("modalOpen",function(){q._close_button_tootip()}),jQuery(document).on("cp_conversion_done",function(e,t,o){var i;0<!jQuery(t).parents(".cp-form-container").find(".cp-email").length&&0<jQuery(t).parents(".cp-form-container").find('[name="only_conversion"]').length&&(i=w.data("conversion-cookie-time"),q._getCookie(o)||i&&q._createCookie(o,!0,i),jQuery(t).addClass("cp-disabled"))}),jQuery(document).on("cp_custom_class_clicked",function(e,t){jQuery(t).addClass("cp-disabled")}),jQuery(document).on("click",".cp-form-submit-error",function(){const e=jQuery(this),t=e.find(".cp-form-processing-wrap"),o=e.find(".cp-tooltip-icon").data("classes"),i=e.find(".cp-msg-on-submit");t.hide(),e.removeClass("cp-form-submit-error"),i.html(""),i.removeAttr("style"),jQuery("head").append('<style class="cp-tooltip-css">.tip.'+o+"{display:block }</style>")}),jQuery(".cp-overlay").on("idle.idleTimer",function(){const e=jQuery(".cp-overlay");jQuery(document).trigger("closeModal",[e]);const t=e.find(".cp-tooltip-icon").data("classes");setTimeout(function(){jQuery("head").append('<style id="cp-tooltip-close-css">.tip.'+t+"{ display:none; }</style>")},1e3)}),jQuery(document).on("idle.idleTimer",function(){var e;jQuery(".ib-display").hasClass("cp-close-after-x")&&(e=jQuery(".ib-display"),jQuery(document).trigger("cp_close_info_bar",[e])),jQuery(".slidein-overlay").hasClass("cp-close-after-x")&&(e=jQuery(".slidein-overlay"),jQuery(document).trigger("closeSlideIn",[e]))}),jQuery(document).on("click",".cp-close",function(){var e;jQuery(this).parents(".cp-overlay").hasClass("do_not_close")||(e=jQuery(this).parents(".cp-overlay"),jQuery(document).trigger("closeModal",[e]))}),jQuery(document).on("click",".cp-inner-close",function(){var e=jQuery(this).parents(".cp-overlay");jQuery(document).trigger("closeModal",[e])}),jQuery(document).on("closeModal",function(e,t){t=t.data("class"),t=p(".cp-global-load[data-class-id="+t+"]");q.init(e,t,"closepopup")}),jQuery(document).on("cp_close_info_bar",function(e,t){q.init(e,t,"closepopup")}),jQuery("body").on("click",".cp-slidein-head .cp-widget-open",function(){const e=jQuery(this).parents(".slidein-overlay"),t=e.data("closed-cookie-time"),o=e.data("slidein-id"),i="temp_"+o;q._createCookie(i,!0,1),q._getCookie(o)||t&&(e.addClass("cp-always-minimize-widget"),q._createCookie(o,!0,t))}),jQuery(document).on("closeSlideIn",function(e,t){t=t.data("class"),t=p(".si-onload[data-class-id="+t+"]");q.init(e,t,"closepopup")}),jQuery(".smile-optin-form").each(function(){var e=p(this).parents(".cp-module").data("module-name");p(this).find('input[name="cp_module_type"]').val(e);const t=jQuery(this).find("input.cp-input").last();t.hasClass("cp-input")&&t.addClass("cp-last-field")}),jQuery("input.cp-input").on("keydown",function(e){if(9===(window.event?e.which:e.keyCode)&&jQuery(this).hasClass("cp-last-field")){e.preventDefault();const t=jQuery(this).parents(".smile-optin-form");t.find(".cp-submit").attr("tabindex",-1).trigger("focus")}}),p(document).on("scroll",function(s){clearTimeout(p.data(this,"CP_scrollEvent")),p.data(this,"CP_scrollEvent",setTimeout(function(){p(".cp-global-load").each(function(){const e=p(this),t=e.data("onscroll-value"),o=e.data("scroll-class");var i=e.hasClass("cp-after-post")||e.hasClass("ib-after-post")||e.hasClass("si-after-post");(void 0!==o&&""!==o||""!==t||i)&&!1===K(e)&&q.init(s,e,"scroll"),q._count_inline_impressions(p(this))})},200)),clearTimeout(p.data(this,"CP_scrollTimer")),p.data(this,"CP_scrollTimer",setTimeout(function(){p(".cp-ib-onload.cp-pos-top").each(function(){let t,o,i;const s=p(this),a=s.outerHeight(),e=s.data("push-down")||null;if(e&&s.hasClass("ib-display")&&s.hasClass("ib-fixed")){var n=jQuery(".fusion-header-wrapper").find(".fusion-sticky-menu-");let e="";void 0!==n&&(e=n.length),0<e&&(t=".fusion-header",(jQuery("body").hasClass("fusion-header-layout-v4")||jQuery("body").hasClass("fusion-header-layout-v5"))&&(t=".fusion-secondary-main-menu"),o=jQuery("#wpadminbar").outerHeight(),n=a+o,jQuery(t).addClass("cp-fusion-header"),jQuery(".cp_fusion_css").remove(),i=s.find(".cp-ifb-toggle-btn").hasClass("cp-ifb-show")?".cp-fusion-header{top:"+o+"px !important}":".cp-fusion-header{top:"+n+"px !important}",p("head").append("<style class='cp_fusion_css' type='text/css'>"+i+"</style>"),jQuery(t).addClass("cp-scroll-start"))}else t=".fusion-header",(jQuery("body").hasClass("fusion-header-layout-v4")||jQuery("body").hasClass("fusion-header-layout-v5"))&&(t=".fusion-secondary-main-menu"),jQuery(t).addClass("cp-fusion-header"),o=jQuery("#wpadminbar").outerHeight(),i=".cp-fusion-header{top:"+o+"px !important}",p("head").append("<style class='cp_fusion_css' type='text/css'>"+i+"</style>")})},100))}),jQuery(document).on("infobarOpen",function(e,t){const o=t,i=o.outerHeight(),s=o.data("push-down")||null;if(jQuery(".fusion-header-wrapper").find(".fusion-sticky-menu-").length&&s){let e=".fusion-header";(jQuery("body").hasClass("fusion-header-layout-v4")||jQuery("body").hasClass("fusion-header-layout-v5"))&&(e=".fusion-secondary-main-menu");var a=i+jQuery("#wpadminbar").outerHeight(),t=jQuery(e).css("top");jQuery(e).attr("data-old-top",t),!o.data("toggle-visible")&&o.hasClass("ib-fixed")&&(jQuery(".cp_fusion_css").remove(),jQuery(e).addClass("cp-fusion-header"),a=".cp-fusion-header{top:"+a+"px !important}",p("head").append("<style class='cp_fusion_css' type='text/css'>"+a+"</style>"),jQuery(e).addClass("cp-scroll-start"))}}),jQuery(document).on("cp_close_info_bar",function(e,t){const o=t,i=o.data("push-down")||null;let s=".fusion-header";(jQuery("body").hasClass("fusion-header-layout-v4")||jQuery("body").hasClass("fusion-header-layout-v5"))&&(s=".fusion-secondary-main-menu"),i&&jQuery(".cp_fusion_css").remove(),t.addClass("cp-stop-scroll"),jQuery(s).removeClass("cp-scroll-start"),p(".cp-push-page-css").remove()}),jQuery(document).on("gform_confirmation_loaded",function(e,t){const o=jQuery("#gf_"+t),i=o.parents(".cp-module").data("style-id"),s=o.parents(".cp-module").data("module-name"),a=o.parents(".cp-module").data("close-gravity");void 0!==i&&jQuery(document).trigger("cp_custom_analytics",[i]),1===parseInt(a)&&jQuery(document).trigger("cp_custom_close_module",[o,s])}),document.addEventListener("wpcf7submit",function(e){var t=e.detail.status,o=e.detail.unitTag;if("mail_sent"===t){const i=jQuery("#"+o);e=i.parents(".cp-module").data("style-id"),t=i.parents(".cp-module").data("module-name"),o=i.parents(".cp-module").data("close-gravity");void 0!==e&&jQuery(document).trigger("cp_custom_analytics",[e]),1===parseInt(o)&&jQuery(document).trigger("cp_custom_close_module",[i,t])}},!1),jQuery(document).on("nfFormSubmitResponse",function(e,t){const o="nf-form-"+t.id+"-cont",i=jQuery("#"+o),s=i.parents(".cp-module").data("style-id"),a=i.parents(".cp-module").data("module-name"),n=i.parents(".cp-module").data("close-gravity");void 0!==s&&jQuery(document).trigger("cp_custom_analytics",[s]),1===parseInt(n)&&jQuery(document).trigger("cp_custom_close_module",[i,a])}),jQuery(window).on("cp_custom_close_module",function(e,t,o){var i;"modal"===o?(i=t.parents(".cp-open"),jQuery(document).trigger("closeModal",[i])):"slidein"===o?(i=t.parents(".slidein-overlay"),jQuery(document).trigger("closeSlideIn",[i])):"infobar"===o&&(t=t.parents(".cp-info-bar"),jQuery(document).trigger("cp_close_info_bar",[t]))}),jQuery(window).on("cp_custom_analytics",function(e,t){setTimeout(function(){var e=jQuery(".cp-impress-nonce").val();jQuery.ajax({url:smile_ajax.url,data:{action:"custom_form_update_conversions",conversion:!0,style_id:t,option:"smile_modal_styles",security:e},type:"POST",dataType:"HTML",security:jQuery(".cp-impress-nonce").val(),beforeSend(){z=!1}})},2e3)}),jQuery(".cp-youtube-continer").on("click",function(e,t){e.preventDefault();const o=jQuery("<iframe/>");let i=jQuery(this).data("custom-url");var s=jQuery(this).data("custom-css"),a=jQuery(this).data("class"),n=jQuery(this).data("width"),e=jQuery(this).data("height");i=i.replace("autoplay=0","autoplay=1"),i=null===t||"1"===t||"undefined"===t?i.replace("autoplay=0","autoplay=1"):i.replace("autoplay=1","autoplay=0"),o.attr("class",a),o.attr("frameborder","0"),o.attr("allowfullscreen","1"),o.attr("style",s),o.attr("allow","autoplay;encrypted-media;"),o.attr("src",i),""===n&&""===e||(o.attr("width",n),o.attr("height",e)),jQuery(this).html(o)})}(jQuery);
function cp_column_equilize(){setTimeout(function(){jQuery(".cp-columns-equalized").each(function(){if(jQuery(this).closest(".cp-overlay").hasClass("cp-open")||jQuery(this).closest(".global_modal_container").hasClass("cp-modal-inline")){var t=jQuery(window).width();const i=Array();jQuery(this).children(".cp-column-equalized-center").each(function(){var e=jQuery(this).outerHeight();jQuery(this).addClass("cp-center"),i.push(e)});let e=0;0<jQuery(this).find(".cp-image-container").length&&jQuery(this).find(".cp-highlight").each(function(){e++});var s=parseInt(jQuery(this).css("padding-top"))+parseInt(jQuery(this).css("padding-top")),s=Math.max.apply(Math,i)+s;s-=e,768<t?jQuery(this).css("height",s):jQuery(this).css("height","auto")}})},100)}function CPResponsiveTypoInit(){jQuery(".cp_responsive").each(function(e,t){const s=jQuery(t);let i="";var o;s.hasClass("cp_line_height")||(o=s.css("font-size"),i=s.attr("data-font-size"),i||s.attr("data-font-size-init",o)),s.hasClass("cp_font")||(o=s.css("line-height"),i=s.attr("data-line-height"),i||s.attr("data-line-height-init",o))})}function CPModelHeight(){setTimeout(function(){jQuery(".cp-overlay").parents("body").hasClass("admin_page_cp_customizer")?jQuery(".cp-modal-popup-container").each(function(e,t){const s=jQuery(t),i=s.find(".cp-modal"),o=s.find(".cp-overlay"),a=s.find(".cp-overlay").outerHeight(),c=s.find(".cp-modal-body").outerHeight();jQuery(this).find(".cp-overlay").hasClass("cp-open")&&(jQuery(this).hasClass("cp-inline-modal-container")||(a<c?(i.addClass("cp-modal-exceed"),o.each(function(e,t){jQuery(t).hasClass("cp-open")&&jQuery("html").addClass("cp-exceed-vieport"),jQuery("html").removeClass("cp-window-viewport")})):(i.removeClass("cp-modal-exceed"),jQuery("html").removeClass("cp-exceed-vieport"),i.css("height","")))),set_affiliate_link()}):jQuery(".cp-overlay").each(function(e,t){const s=jQuery(t),i=s.find(".cp-modal"),o=s,a=s.outerHeight(),c=s.find(".cp-modal-body").outerHeight();s.hasClass("cp-open")&&(s.hasClass("cp-inline-modal-container")||(a<c||650<=c?(i.addClass("cp-modal-exceed"),o.each(function(e,t){jQuery(t).hasClass("cp-open")&&jQuery("html").addClass("cp-exceed-viewport"),jQuery("html").removeClass("cp-window-viewport")})):(i.removeClass("cp-modal-exceed"),jQuery("html").removeClass("cp-exceed-vieport"),i.css("height","")))),set_affiliate_link()})},1200)}function set_affiliate_link(c){jQuery(".cp-overlay").each(function(){const e=jQuery(this).find(".cp-modal").hasClass("cp-modal-window-size"),t=jQuery(window).width(),s=jQuery(this).find(".cp-animate-container"),i=jQuery(this),o=jQuery(this).find(".cp-affilate-link");let a=jQuery(this).data("affiliate_setting");jQuery(this).hasClass("ps-container")&&(a=c),"1"===String(a)&&(e?t<=768?(o.addClass("cp-afl-for-smallscreen"),o.appendTo(s)):(o.removeClass("cp-afl-for-smallscreen"),o.appendTo(i),o.css("top","")):t<=768?(o.appendTo(s),o.addClass("cp-afl-for-smallscreen")):(o.removeClass("cp-afl-for-smallscreen"),o.appendTo(i)))})}function cp_color_for_list_tag(){jQuery(".cp-overlay").each(function(){const r=jQuery(this);jQuery(this).find("li").each(function(){if(0===jQuery(this).parents(".cp_social_networks").length&&0===jQuery(this).parents(".custom-html-form").length){var o=jQuery(r).find(".cp-modal-body").attr("class").split(" ")[1];let e=jQuery(this).parents(".cp_responsiv").attr("class");e=(null!==e&&void 0!==e?jQuery(this).parents(".cp_responsive"):jQuery(this).parents("div")).attr("class").split(" ")[0];let t=jQuery(this).find("span").css("color"),s=jQuery(this).parent(),i="";var a=jQuery(this).index()+1,c=jQuery(this).find(".cp_font").css("font-size");s=s[0].nodeName.toLowerCase(),"ul"===s?(i=jQuery(this).closest("ul").css("list-style-type"),"none"===i&&jQuery(this).closest("ul").css("list-style-type","disc")):(i=jQuery(this).closest("ol").css("list-style-type"),"none"===i&&jQuery(this).closest("ol").css("list-style-type","decimal")),jQuery(this).find("span").each(function(){var e=jQuery(this).css("color");0<e.length&&(t=e)});var n;jQuery(".cp-li-color-css-"+a).remove(),jQuery(".cp-li-font-css-"+a).remove(),c&&(n="font-size:"+c,jQuery("head").append('<style class="cp-li-font-css'+a+'">.'+o+" ."+e+" li:nth-child("+a+"){ "+n+"}</style>")),t&&jQuery("head").append('<style class="cp-li-color-css'+a+'">.'+o+" ."+e+" li:nth-child("+a+"){ color: "+t+";}</style>")}})})}function cp_modal_common(){cp_column_equilize(),cp_row_equilize(),addPaddingtoYoutubeFrame()}function cp_form_sep_setting(){jQuery(".cp-overlay").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-jugaad")){var t=jQuery(this).find(".cp-form-separator").data("form-sep-pos"),s=jQuery(this).find(".cp-form-separator").data("form-sep-part"),i=jQuery(this).find(".cp-form-separator").data("form-sep");"horizontal"===t?"part-of-content"===s?jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-modal-body > .cp-row .cp-content-section")):jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-modal-body > .cp-row .cp-form-section")):jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-modal-body > .cp-row"));let e="";e=("part-of-content"===s?jQuery(this).find(".cp-content-section-overlay"):jQuery(this).find(".cp-form-section-overlay")).css("background-color");t=cp_get_viewbox_svg(i),s=cp_get_svg(i,e,t,s);jQuery(this).find(".cp-form-separator").html(s)}}),jQuery(".cp-inline-modal-container").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-jugaad")){var t=jQuery(this).find(".cp-form-separator").data("form-sep-pos"),s=jQuery(this).find(".cp-form-separator").data("form-sep-part"),i=jQuery(this).find(".cp-form-separator").data("form-sep");"horizontal"===t?"part-of-content"===s?jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-modal-body > .cp-row .cp-content-section")):jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-modal-body > .cp-row .cp-form-section")):jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-modal-body > .cp-row"));let e="";e=("part-of-content"===s?jQuery(this).find(".cp-content-section-overlay"):jQuery(this).find(".cp-form-section-overlay")).css("background-color");t=cp_get_viewbox_svg(i),s=cp_get_svg(i,e,t,s);jQuery(this).find(".cp-form-separator").html(s)}})}function cp_get_svg(e,t,s,i){let o="",a="",c="";a="waves"===String(e)?'preserveAspectRatio="none"':"",c=0===Number(i)?" right":" left",o+='<svg class="'+e+c+'" '+a+' fill="'+t+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="100%" height="30" preserveAspectRatio="none" viewBox="'+s+'" enable-background="new 0 0 98.5 1097.757" xml:space="preserve">';let n="",r="";switch(e){case"waves":n='<path d="M0.199945 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c-0.0541102,0 -0.0981929,-0.0430079 -0.0999409,-0.0967008l0 0.0967008 0.0999409 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm2.00004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm-0.1 0.1l-0.200008 0c-0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1 -7.87402e-006,0.0552205 -0.0447874,0.1 -0.1,0.1l0.2 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm-0.400008 0l-0.200008 0c-0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1 -7.87402e-006,0.0552205 -0.0447874,0.1 -0.1,0.1l0.2 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm-0.400008 0l-0.200008 0c-0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1 -7.87402e-006,0.0552205 -0.0447874,0.1 -0.1,0.1l0.2 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm-0.400008 0l-0.200008 0c-0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1 -7.87402e-006,0.0552205 -0.0447874,0.1 -0.1,0.1l0.2 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm-0.400008 0l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm1.90004 -0.1c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.199945 0.00329921l0 0.0967008 -0.0999409 0c0.0541102,0 0.0981929,-0.0430079 0.0999409,-0.0967008z"></path>',o+=n;break;case"triangle":n='<path class="fil0" d="M-0 0.333331l4.66666 0 0 -3.93701e-006 -2.33333 0 -2.33333 0 0 3.93701e-006zm0 -0.333331l4.66666 0 0 0.166661 -4.66666 0 0 -0.166661zm4.66666 0.332618l0 -0.165953 -4.66666 0 0 0.165953 1.16162 -0.0826181 1.17171 -0.0833228 1.17171 0.0833228 1.16162 0.0826181z"></path>',o+=n;break;case"big_triangle_right":case"big_triangle_left":r='<polygon xmlns="http://www.w3.org/2000/svg" points="1600,-148 0,-148 428.067,-83.114 "/>',o+=r;break;case"clouds":o+='<path d="M369.112,0L369.112,0H0v63.065l0.032,0.559c21.29,9.47,44.537-15.028,44.537-15.028c61.847,30.504,89.625-27.994,89.625-27.994c18.674,10.285,46.32-0.138,46.32-0.138c52.377,76.808,103.636-5.729,103.636-5.729C336.792,42.609,369.104,0.009,369.112,0c22.006,15.26,55.156,1.585,55.156,1.585c19.499,33.14,52.647,32.087,52.647,32.087c42.064,2.626,60.171-11.971,60.171-11.971c37.22,28.195,71.603-12.78,71.603-12.78c19.771,29.328,55.433,2.259,55.433,2.259c28.254,73.546,83.571,19.989,83.571,19.989c20.144,40.313,79.514,47.483,99.412-9.316c11.586,28.465,39.627,23.784,52.524,20.7c29.937,64.271,88.996,43.13,110.192-25.715c17.479,34.709,54.434,16.065,59.901,0.525c21.138,56.183,74.132,32.033,79.915,30.876c3.375,11.047,21.676,45.967,57.934,41.716c36.262-4.245,43.799-39.459,47.08-58.545c33.985,10.523,54.651-15.098,54.651-15.098c59.06,69.967,101.394-1.052,101.394-1.052c31.481,16.827,55.432,1.582,55.432,1.582c16.566,31.292,41.514,38.394,41.514,38.394c36.49,8.943,62.033-28.718,62.033-28.718c11.555,7.383,30.326,7.909,30.326,7.909V0H369.112z"/>';break;case"curve_center":n='<path class="fil1" d="M4.66666 0l0 7.87402e-006 -3.93701e-006 0c0,0.0920315 -1.04489,0.166665 -2.33333,0.166665 -1.28844,0 -2.33333,-0.0746339 -2.33333,-0.166665l-3.93701e-006 0 0 -7.87402e-006 4.66666 0z"></path>',o+=n;break;case"tilt":r='<polygon points="0,172 0,262 1600,172 "></polygon>',o+=r;break;case"circle_bottom":n='<path d="M0.200004 0c-3.93701e-006,0.0552205 -0.0447795,0.1 -0.100004,0.1 -0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1l0.200004 0z"></path>',o+=n;break;case"round_split":n='<g xmlns="http://www.w3.org/2000/svg"><g><defs><rect id="SVGID_1_" y="-1" width="1600" height="90"/></defs><clipPath id="SVGID_2_"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#SVGID_1_" overflow="visible"/></clipPath><g clip-path="url(#SVGID_2_)"><g><path d="M1605,89c33,0,60-27,60-60V-7c0-33-27-60-60-60H860c-33,0-60,27-60,60v36c0,33,27,60,60,60H1605z"/></g></g></g><g><defs><rect id="SVGID_3_" y="-1" width="1600" height="90"/></defs><clipPath id="SVGID_4_"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#SVGID_3_" overflow="visible"/></clipPath><g clip-path="url(#SVGID_4_)"><g><path d="M740,89c33,0,60-27,60-60V-7c0-33-27-60-60-60H-5c-33,0-60,27-60,60v36c0,33,27,60,60,60H740z"/></g></g></g></g>',o+=n}return o+="</svg>",o}function cp_get_viewbox_svg(e){let t="";switch(e){case"triangle":t="0 0 4.66666 0.333331";break;case"big_triangle_left":case"big_triangle_right":t="0 -148 1600 90";break;case"waves":t="0 0 6 0.1";break;case"clouds":t="0 0 1600 90";break;case"curve_center":t="0 0 4.66666 0.333331";break;case"tilt":t="0 172 1600 90";break;case"circle_bottom":t="0 0 0.2 0.1";break;case"round_split":t="0 0 1600 90"}return t}function cp_form_sep_top(){setTimeout(function(){jQuery(".cp-overlay, .cp-inline-modal-container").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-jugaad")){const s=jQuery(this).find(".cp-form-separator");var e=jQuery(this).find(".cp-content-section").outerHeight()-5+"px",t=jQuery(this).find(".cp-form-section").outerHeight()-5+"px";s.hasClass("cp-fs-horizontal")&&(s.hasClass("part-of-content")?s.hasClass("upward")?s.css("bottom",e):s.css("top",e):s.hasClass("upward")?s.css("bottom",t):s.css("top",t))}})},500)}function cp_set_width_svg(){setTimeout(function(){jQuery(".cp-overlay, .cp-inline-modal-container").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-jugaad")){const t=jQuery(this).find(".cp-form-separator"),s=jQuery(window).width();if(0<t.length){const i=jQuery(this).find(".cp-content-section"),o=jQuery(this).find(".cp-form-section");var e=t.find("svg").outerHeight()+10+"px";t.hasClass("form_bottom")||t.hasClass("img_left_form_bottom")||t.hasClass("img_right_form_bottom")||t.hasClass("form_bottom_img_top")?t.hasClass("part-of-content")?(o.css("padding",e+" 15px 15px 15px"),i.css("padding","15px")):(i.css("padding","15px 15px "+e+" 15px"),o.css("padding","15px")):t.hasClass("form_left")||t.hasClass("form_left_img_botttom")||t.hasClass("form_left_img_top")?768<=s?t.hasClass("part-of-content")?(o.css("padding","15px "+e+" 15px 15px"),i.css("padding","15px")):(i.css("padding","15px 15px 15px "+e),o.css("padding","15px")):t.hasClass("part-of-content")?(o.css("padding","15px 15px "+e+" 15px"),i.css("padding","15px")):(i.css("padding",e+" 15px 15px 15px"),o.css("padding","15px")):768<=s?t.hasClass("part-of-content")?(o.css("padding","15px 15px 15px "+e),i.css("padding","15px")):(i.css("padding","15px "+e+" 15px 15px"),o.css("padding","15px")):t.hasClass("part-of-content")?(o.css("padding",e+" 15px 15px 15px"),i.css("padding","15px")):(i.css("padding","15px 15px "+e+" 15px"),o.css("padding","15px"))}e=jQuery(this).find(".cp-modal-body > .cp-row").outerHeight()+5+"px";(t.hasClass("triangle")||t.hasClass("round_split")||t.hasClass("tilt"))&&(t.hasClass("form_bottom")||t.hasClass("img_left_form_bottom")||t.hasClass("img_right_form_bottom")||t.hasClass("form_bottom_img_top")||!(768<=s)||t.hasClass("tilt")?t.find("svg").attr("width","100%"):t.find("svg").attr("width",e))}})},200)}function form_sep_position(){jQuery(".cp-overlay , .cp-inline-modal-container").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-jugaad")){const t=jQuery(this).find(".cp-form-separator");var e=jQuery(window).width();t.hasClass("form_bottom")||jQuery(".cp-form-separator").hasClass("form_bottom_img_top")||(e<768?t.hasClass("part-of-form")?(t.removeClass("cp-fs-vertical cp-fs-vertical-form").addClass("cp-fs-horizontal cp-fs-horizontal-form"),jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-form-section"))):(jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-content-section")),t.removeClass("cp-fs-vertical cp-fs-vertical-content").addClass("cp-fs-horizontal cp-fs-horizontal-content")):t.hasClass("img_left_form_bottom")||t.hasClass("img_right_form_bottom")||(jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-modal-body > .cp-row")),jQuery(this).find(".cp-form-separator").hasClass("part-of-form")?jQuery(this).find(".cp-form-separator").removeClass("cp-fs-horizontal cp-fs-horizontal-form cp-fs-vertical-content").addClass("cp-fs-vertical cp-fs-vertical-form"):jQuery(this).find(".cp-form-separator").removeClass("cp-fs-horizontal cp-fs-horizontal-content").addClass("cp-fs-vertical cp-fs-vertical-content"),jQuery(this).find(".cp-form-separator").css({bottom:"",top:""})))}})}function addPaddingtoYoutubeFrame(){var e,t;jQuery(".cp-youtube-container").length&&(jQuery(".cp-modal").hasClass("cp-modal-window-size")?(e=jQuery(".cp-form-container").outerHeight(),t=jQuery(".cp-form-container").css("display"),"none"!==String(t)?jQuery(".cp-youtube-frame").css("padding-bottom",e+"px"):jQuery(".cp-youtube-frame").css("padding-bottom","")):jQuery(".cp-youtube-frame").css("padding-bottom",""))}function cp_row_equilize(){setTimeout(function(){jQuery(".cp-row-equalized-center").each(function(){var e=jQuery(this).closest(".cp-row-equalized-center").outerHeight();jQuery(this).closest(".cp-modal-body").css("min-height").replace("px","")<e?jQuery(this).parent(".cp-row-center").addClass("cp-big-content"):jQuery(this).parent(".cp-row-center").removeClass("cp-big-content")})},200)}function cp_social_responsive(){const s=jQuery(window).width();jQuery(".cp-modal").find(".cp_social_networks").each(function(){var e=jQuery(this).data("column-no");let t="";s<768?(jQuery(this).removeClass("cp_social_networks"),jQuery(this).removeClass(e),t=jQuery(this).attr("class"),jQuery(this).attr("class","cp_social_networks cp_social_autowidth  "+t)):(jQuery(this).removeClass("cp_social_networks"),jQuery(this).removeClass("cp_social_autowidth"),jQuery(this).removeClass(e),t=jQuery(this).attr("class"),jQuery(this).attr("class","cp_social_networks  "+e+" "+t))})}!function(){var o;function e(){jQuery(".cp_responsive").each(function(e,t){const s=jQuery(window).width(),i=jQuery(t),o=i.attr("data-font-size"),a=i.attr("data-font-size-init"),c=i.attr("data-line-height"),n=i.attr("data-line-height-init");let r="",l=i.css("font-size");var p;o?l=o:a&&(l=a),c?r=c:n&&(r=n),s<=800?(i.hasClass("cp-submit")?i.css({"line-height":"1.15em"}):i.css({display:"block","line-height":"1.15em"}),p=i,t=l,"function"==typeof p.fitText&&(p.hasClass("cp-description")||p.hasClass("cp-short-description")||p.hasClass("cp-info-container")?p.fitText(1.7,{minFontSize:"12px",maxFontSize:t}):p.fitText(1.2,{minFontSize:"16px",maxFontSize:t}))):(i.css({display:"","line-height":r}),"function"==typeof i.fitText&&i.fitText(1.2,{minFontSize:l,maxFontSize:l}))})}function t(){jQuery(".cp-overlay ,.cp-modal-inline ").each(function(){var e=jQuery(window).innerWidth(),t=jQuery(this).data("hide-img-on-mobile");t&&(e<=t?jQuery(this).find(".cp-image-container").addClass("cp-hide-image"):jQuery(this).find(".cp-image-container").removeClass("cp-hide-image"))})}function s(){jQuery(".cp-overlay").each(function(){var e;jQuery(this).find(".cp-modal-body").hasClass("cp-optin-to-win")&&(jQuery(window).innerWidth()<=(e=jQuery(this).data("hide-img-on-mobile"))?768<=e&&jQuery(this).find(".cp-text-container").removeClass("col-lg-7 col-md-7 col-sm-7").addClass("col-lg-12 col-md-12 col-sm-12  cp-bigtext-container"):jQuery(this).find(".cp-text-container").removeClass("col-lg-12 col-md-12 col-sm-12  cp-bigtext-container").addClass("col-lg-7 col-md-7 col-sm-7 "))})}function i(){jQuery(".cp-overlay").each(function(){var e;jQuery(this).find(".cp-modal-body").hasClass("cp-direct-download")&&(jQuery(window).width()<=(e=jQuery(this).data("hide-img-on-mobile"))?768<=e&&jQuery(this).find(".cp-text-container").removeClass("col-lg-7 col-md-7 col-sm-7").addClass("col-lg-12 col-md-12 col-sm-12  cp-bigtext-container"):jQuery(this).find(".cp-text-container").removeClass("col-lg-12 col-md-12 col-sm-12  cp-bigtext-container").addClass("col-lg-7 col-md-7 col-sm-7 "))})}function a(){jQuery(".cp-overlay").each(function(){var e;jQuery(this).find(".cp-modal-body").hasClass("cp-free-ebook")&&(jQuery(window).outerWidth()<=(e=jQuery(this).data("hide-img-on-mobile"))?768<=e&&jQuery(this).find(".cp-text-container").removeClass("col-lg-7 col-md-7 col-sm-7").addClass("col-lg-12 col-md-12 col-sm-12  cp-bigtext-container"):jQuery(this).find(".cp-text-container").removeClass("col-lg-12 col-md-12 col-sm-12  cp-bigtext-container").addClass("col-lg-7 col-md-7 col-sm-7 "))})}(o=jQuery).fn.fitText=function(e,t){const s=e||1,i=o.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},t);return this.each(function(){const e=o(this);function t(){e.css("font-size",Math.max(Math.min(e.width()/(10*s),parseFloat(i.maxFontSize)),parseFloat(i.minFontSize)))}t(),o(window).on("resize.fittext orientationchange.fittext",t)})},jQuery(document).ready(function(){setTimeout(function(){CPResponsiveTypoInit(),cp_color_for_list_tag()},500),cp_column_equilize(),t(),s(),i(),a(),cp_form_sep_setting(),form_sep_position(),cp_set_width_svg(),cp_social_responsive()}),jQuery(window).on("resize",function(){CPModelHeight(),e(),jQuery(".cp-onload").each(function(){var e=jQuery(this).data("class-id");const t=jQuery("."+e);t.hasClass("cp-window-size")&&t.windowSize()}),t(),s(),i(),a(),setTimeout(function(){cp_row_equilize()},300),cp_column_equilize(),cp_form_sep_top(),form_sep_position(),set_affiliate_link(),cp_set_width_svg(),cp_social_responsive()}),jQuery(window).on("load",function(){set_affiliate_link()}),jQuery.fn.windowSize=function(){const e=this.find(".cp-content-container"),t=this.find(".cp-modal"),s=this.find(".cp-modal-content"),i=this.find(".cp-modal-body");t.removeAttr("style"),s.removeAttr("style"),e.removeAttr("style"),i.removeAttr("style");var o=jQuery(window).width()+30,a=jQuery(window).height();jQuery(this).find("iframe").css("width",o),e.css({"max-width":o+"px",width:"100%",height:a+"px",padding:"0",margin:"0 auto"}),s.css({"max-width":o+"px",width:"100%"}),t.css({"max-width":o+"px",width:"100%",left:"0",right:"0"}),i.css({"max-width":o+"px",width:"100%",height:a+"px"})}}(jQuery),jQuery(document).on("smile_data_continue_received",function(){addPaddingtoYoutubeFrame()}),jQuery(document).on("smile_data_received",function(e,t){cp_modal_common(t)}),jQuery(document).on("after_cp_column_equilize",function(){jQuery(".cp-overlay, .cp-inline-modal-container").each(function(){var e;jQuery(this).find(".cp-modal-body").hasClass("cp-jugaad")&&jQuery(this).find(".cp-modal-body .cp-form-separator").length&&(e=jQuery(this).find(".cp-modal-body .cp-form-separator").outerHeight(),e=jQuery(this).find(".cp-modal-body .cp-columns-equalized").outerHeight()+e,jQuery(this).find(".cp-modal-body .cp-columns-equalized").css("height",e))})}),function(n){"use strict";jQuery(document).on("click",".cp-overlay-close",function(){if(!jQuery(this).hasClass("do_not_close")){const e=n(this).parents(".cp-overlay"),t=e.find(".cp-tooltip-icon").data("classes");jQuery(document).trigger("closeModal",[e]),jQuery("head").append('<style id="cp-tooltip-close-css">.tip.'+t+"{ display:none; }</style>")}}),jQuery(document).on("click",".cp-overlay",function(){var e;!jQuery(this).hasClass("do_not_close")&&jQuery(this).hasClass("close_btn_nd_overlay")&&(e=jQuery(this),jQuery(document).trigger("closeModal",[e]))}),jQuery(document).on("click",".cp_fs_overlay",function(){var e;!jQuery(this).parents(".cp-overlay").hasClass("do_not_close")&&jQuery(this).parents(".cp-overlay").hasClass("close_btn_nd_overlay")&&(e=jQuery(this).parents(".cp-overlay"),jQuery(document).trigger("closeModal",[e]))}),jQuery(document).on("click",".cp-overlay .cp-modal",function(e){e.stopPropagation()}),jQuery(document).on("smile_customizer_field_change",function(){CPResponsiveTypoInit()}),jQuery(document).on("smile_data_received",function(){CPResponsiveTypoInit()}),jQuery(".wpcf7").on("wpcf7:invalid",function(){cp_column_equilize()}),jQuery(window).on("modalOpen",function(e,t){jQuery("html").addClass("cp-mp-open");var s=t.data("close-btnonload-delay");(s=Math.round(1e3*s))&&setTimeout(function(){t.find(".cp-overlay-close").removeClass("cp-hide-close")},s),cp_column_equilize(),CPModelHeight(),cp_form_sep_top(),cp_set_width_svg(),cp_row_equilize();const i=t.find(".cp-animate-container"),o=i.data("overlay-animation"),a=i.data("disable-animationwidth"),c=jQuery(window).width();(a<=c||void 0===a)&&jQuery(i).addClass("smile-animated "+o),jQuery("#cp-tooltip-close-css").remove(),jQuery(".cp-modal-popup-container").each(function(e,t){const s=jQuery(t),i=s.find(".cp-modal");i.hasClass("cp-modal-exceed")||(i.hasClass("cp-modal-window-size")?jQuery("html").addClass("cp-window-viewport"):jQuery("html").delay(1e3).addClass("cp-custom-viewport"))});s=t.data("close-after");n.idleTimer("destroy"),void 0!==s&&(s*=1e3,jQuery(".cp-overlay").idleTimer({timeout:s,idle:!1})),0<jQuery(".kleo-carousel-features-pager").length&&setTimeout(function(){n(window).trigger("resize")},1500),setTimeout(function(){!function(e){let t=jQuery(".cp-mp-open").height(),s="",i="";if(e.find(".cp-modal-content").attr("data-height",t),e.hasClass("cp-overlay")&&void 0!==e){var o=0;if(!e.hasClass("ps-container")){o++;const a=e.find(".cp-modal-content");o=e.attr("data-modal-id");e.attr("id",o+"-1");o=e.attr("id");if("undefined"!=typeof Ps&&Ps.initialize(document.getElementById(o)),e.hasClass("cp-window-overlay")){i=n(window).height();const c=e.find(".cp-modal-body");t=e.data("height"),s=c.height()+100,t=parseInt(t)-100,i>=s&&(s=i),e.find(".cp-modal").hasClass("cp-modal-exceed")&&(e.find(".cp-overlay-background").css("height",s+"px"),e.find(".cp_fs_overlay").css("height",s+"px"),e.find(".cp-modal-content").css("height",s+"px"))}else t=e.data("height"),t=parseInt(t)-100,s=a.height()+100,i=n(window).height(),i>=s&&(s=i),e.find(".cp-modal").hasClass("cp-modal-exceed")&&e.find(".cp-overlay-background").css("height",s+"px")}}}(t)},1500)}),jQuery(document).ready(function(){jQuery(document).on("keydown",function(e){if(27===e.which){const t=jQuery(".cp-open"),s=t;t.hasClass("close_btn_nd_overlay")&&!t.hasClass("do_not_close")&&jQuery(document).trigger("closeModal",[s])}}),set_affiliate_link(),CPResponsiveTypoInit()})}(jQuery),function(a){"use strict";function o(r){const l=jQuery(r).parents(".cp-modal-body").find(".smile-optin-form"),e=l.serialize(),p=jQuery(r).parents(".cp-animate-container").find(".cp-msg-on-submit"),d=jQuery(r).parents(".cp-animate-container").find(".cp-form-processing"),u=jQuery(r).parents(".global_modal_container "),h=jQuery(r).parents(".cp-animate-container").find(".cp-form-processing-wrap"),m=jQuery(r).parents(".cp-animate-container"),f=u.find(".cp-tooltip-icon").data("classes"),y=u.data("conversion-cookie-time"),g=jQuery(r).parents(".global_modal_container ").hasClass("do_not_close"),j=jQuery(r).parents(".global_modal_container ").data("redirect-lead-data"),Q=jQuery(r).parents(".global_modal_container ").data("redirect-to"),_=jQuery(r).parents(".global_modal_container").data("form-action");let v=jQuery(r).parents(".global_modal_container").data("form-action-time");v=parseInt(1e3*v);var t=u.data("parent-style");let w="";w=void 0!==t?t:u.data("modal-id");let C="",b,x;l.find(".cp-input").each(function(t){const s=jQuery(this);if(!s.hasClass("cp-submit-button")){const i=s.attr("name"),o=s.val();let e=i.replace(/param/gi,function(){return""});e=e.replace("[",""),e=e.replace("]",""),C+=0!==t?"&":"",C+=e+"="+o,!s.attr("required")||(validate_it(s,o)?s.addClass("cp-input-error"):s.removeClass("cp-input-error"))}});let o=0;l.find("select, textarea, input ").each(function(e,t){let s="";if(jQuery(t).prop("required")){var i;let e="";("checkbox"!==jQuery(t).attr("type")||!1!==a(this).prop("checked"))&&jQuery(t).val()||(o++,setTimeout(function(){jQuery(t).addClass("cp-error")},100),e=jQuery(t).attr("name"),s+=e+" is required \n"),jQuery(t).hasClass("cp-email")?(i=jQuery(t).val(),isValidEmailAddress(i)?jQuery(t).removeClass("cp-error"):(setTimeout(function(){jQuery(t).addClass("cp-error")},100),o++,e=jQuery(t).attr("name")||"",s+=e+" is required \n")):jQuery(t).removeClass("cp-error")}}),0===o&&(h.show(),p.fadeOut(120,function(){jQuery(this).show().css({visibility:"hidden"})}),d.hide().css({visibility:"visible"}).fadeIn(100),jQuery.ajax({url:smile_ajax.url,data:e,type:"POST",dataType:"HTML",success(t){y&&createCookie(w,!0,y);const s=JSON.parse(t);let e="",i="";void 0!==s.status&&null!==s.status&&(i=s.status),void 0!==s.cf_response&&null!==s.cf_response&&(x=s.cf_response,jQuery(document).trigger("cp_cf_response_done",[this,u,x])),s.email_status?l.find(".cp-email").removeClass("cp-error"):(setTimeout(function(){l.find(".cp-email").addClass("cp-error")},100),l.find(".cp-email").trigger("focus"));let o=void 0!==s.detailed_msg&&null!==s.detailed_msg?s.detailed_msg:"";if(""!==o&&null!==o&&(o="<h5>Here is More Information:</h5><div class='cp-detailed-message'>"+o+"</div>",o+="<div class='cp-admin-error-notice'>Read How to Fix This, click <a target='_blank' rel='noopener' href='https://www.convertplug.com/plus/docs/something-went-wrong/'>here</a></div>",o+="<div class='cp-go-back'>Go Back</div>",e+='<div class="cp-only-admin-msg">[Only you can see this message]</div>'),s.message=s.message.replace(/\\/g,""),"Invalid Secret Key for Google Recaptcha"===s.detailed_msg&&(setTimeout(function(){l.find(".g-recaptcha").addClass("cp-error")},100),l.find(".g-recaptcha").trigger("focus")),void 0!==s.message&&null!==s.message&&(p.hide().css({visibility:"visible"}).fadeIn(120),e+='<div class="cp-m-'+i+'"><div class="cp-error-msg">'+s.message+"</div>"+o+"</div>",p.html(e),m.addClass("cp-form-submit-"+i)),void 0!==s.action&&null!==s.action&&(d.fadeOut(100,function(){jQuery(this).show().css({visibility:"hidden"})}),p.hide().css({visibility:"visible"}).fadeIn(120),"success"===i)){if(jQuery("head").append('<style class="cp-tooltip-css">.tip.'+f+"{display:none }</style>"),"redirect"===s.action){h.hide();const c=s.url;let e="";e=-1<c.indexOf("?")?"&":"?";let i=c+e+decodeURI(C);if(i=1===Number(j)?i:s.url,"download"!==Q){b=Q;t=window.open(i,"_"+b);""===String(t)&&(document.location.href=i)}else if(""!==i){var a=i.split(",");const n=a.length;let s=1;jQuery.each(a,function(e,t){s+=1,i=t,function(e,t,s){const i=jQuery("<a>"),o=e.lastIndexOf("/")+1,a=e.substr(o);i.attr("href",e),i.attr("download",a),i.text("cpro_anchor_link"),i.addClass("cplus_dummy_anchor"),i.attr("target","_blank"),jQuery("body").append(i),jQuery(".cplus_dummy_anchor")[0].click(),setTimeout(function(){jQuery(".cplus_dummy_anchor").remove()},500),t===s&&(jQuery("html").removeClass("cp-custom-viewport"),jQuery("html").removeClass("cp-exceed-vieport cp-window-viewport"))}(i,s,n)})}u.removeClass("cp-open"),jQuery(document).trigger("closeModal",[u])}else{if(h.show(),0<jQuery(r).find("a").length){a=jQuery(r).find("a").attr("href");let e=jQuery(r).find("a").attr("target");""!==e&&void 0!==e||(e="_self"),""===a&&"#"===a||window.open(a,e)}"disappear"===_?(u.removeClass("cp-hide-inline-style"),setTimeout(function(){u.hasClass("cp-modal-inline")&&u.addClass("cp-hide-inline-style"),jQuery(document).trigger("closeModal",[u])},v)):"reappear"===_&&setTimeout(function(){p.empty(),h.css({display:"none"}),p.removeAttr("style"),d.removeAttr("style"),l.trigger("reset")},v)}g&&!u.hasClass("cp-do-not-close-inline")&&setTimeout(function(){jQuery(document).trigger("closeModal",[u])},3e3)}},error(){h.hide(),d.fadeOut(100,function(){jQuery(this).show().css({visibility:"hidden"})})}}))}jQuery(document).ready(function(){jQuery(".cp-modal-popup-container").find(".smile-optin-form").each(function(e,i){jQuery(i).find("input").keypress(function(e){13===e.which&&(e.preventDefault(),jQuery(this).parents(".cp-animate-container").hasClass("cp-form-submit-success")||o(this))}),jQuery(i).find(".btn-subscribe").on("click",function(e){var t,s=jQuery(this).parents(".global_modal_container").data("modal-id");jQuery(i).find(".cp-input").removeClass("cp-error"),jQuery(this).hasClass("cp-disabled")||(o(this),jQuery(document).trigger("cp_conversion_done",[this,s]),t=jQuery(this).attr("data-redirect-link")||"",s=jQuery(this).attr("data-redirect-link-target")||"_blank","undefined"!==t&&""!==t&&(navigator.userAgent.toLowerCase().match(/(ipad|iphone)/)?document.location=t:window.open(t,s))),e.preventDefault()}),jQuery(i).find(".btn-subscribe").keypress(function(e){13===e.which&&(e.preventDefault(),jQuery(this).parents(".cp-animate-container").hasClass("cp-form-submit-success")||o(this))})})})}(jQuery);