/*
 Copyright 2011-2016 Adobe Systems Incorporated. All Rights Reserved.
*/
(function(c){"function"===typeof define&&define.amd&&define.amd.jQuery?define(["jquery","museutils"],c):c(jQuery)})(function(c){(function(b,c){function a(){}var f={version:0.1,inherit:function(a,b){var f=function(){};f.prototype=b.prototype;a.prototype=new f;a.prototype.constructor=a;a.prototype._super=b},ensureArray:function(){var a=[],f=arguments.length;f>0&&(a=f>1||!b.isArray(arguments[0])?b.makeArray(arguments):arguments[0]);return a},hasPointerCapture:function(){return!!c.hasPointerCapture},
setPointerCapture:function(a,b){if(b.pointerId&&!c.hasPointerCapture)if(a.setPointerCapture)a.setPointerCapture(b.pointerId),c.hasPointerCapture=!0;else if(a.msSetPointerCapture)a.msSetPointerCapture(b.pointerId),c.hasPointerCapture=!0},releasePointerCapture:function(a,b){b.pointerId&&c.hasPointerCapture&&(a.releasePointerCapture?a.releasePointerCapture(b.pointerId):a.msReleasePointerCapture&&a.msReleasePointerCapture(b.pointerId),delete c.hasPointerCapture)},scopedFind:function(a,f,c,d){for(var c=
" "+c+" ",k=[],a=b(a).find(f),f=a.length,d=b(d)[0],i=0;i<f;i++)for(var m=a[i],n=m;n;){if(n.className&&(" "+n.className+" ").indexOf(c)!==-1){n===d&&k.push(m);break}n=n.parentNode}return b(k)},findInWidgetScope:function(a,f){var c=[];a.find(f).toArray().forEach(function(f){var g=b(f),f=g.parents();b.each(f,function(f,d){var n=b(d);if(n.is(a))return c.push(g),!1;else if(Muse.Utils.isTopLevelWidget(n))return!1;return!0})});return c}};b.extend(a.prototype,{bind:function(a,f,c){return b(this).bind(a,f,
c)},unbind:function(a,f){return b(this).unbind(a,f)},trigger:function(a,f){var c=b.Event(a);b(this).trigger(c,f);return c}});f.EventDispatcher=a;c.WebPro=f})(c,window,document);(function(b,c){var a=1;c.ImageLoader=function(a){c.EventDispatcher.call();var h=this;this.options=b.extend({},this.defaultOptions,a);this._currentEntry=null;this._queue=[];this._isRunning=this._needsSort=!1;this._loader=new Image;this._loadFunc=function(){h._handleLoad()};this._loadErrorFunc=function(){h._handleError()};this._timeoutFunc=
function(){h.trigger("wp-image-loader-timeout",this._currentEntry);h._loadNext()}};c.inherit(c.ImageLoader,c.EventDispatcher);b.extend(c.ImageLoader.prototype,{defaultOptions:{timeoutInterval:1E3},add:function(f,h){if(f){urls=c.ensureArray(f);for(var g=0;g<urls.length;g++){var j=b.extend({reqId:a++,src:urls[g],width:0,height:0,priority:50,callback:null,data:null},h);this._queue.push(j);this._needsSort=!0;this.trigger("wp-image-loader-add",j)}this._isRunning&&!this._currentEntry&&this._loadNext()}},
reprioritize:function(a,b){if(!(this._currentEntry&&this._currentEntry.src==a)){var g;for(g=0;g<this._queue.length;++g)if(this._queue[g].src==a)break;if(g!=0&&g<this._queue.length)this._queue=this._queue.splice(g,b?this._queue.length-g:1).concat(this._queue)}},start:function(){if(!this._isRunning)this._isRunning=!0,this._loadNext(),this.trigger("wp-image-loader-start")},stop:function(){if(this._isRunning)this._currentEntry&&this._queue.unshift(this._currentEntry),this._resetLoader(),this._isRunning=
!1,this.trigger("wp-image-loader-stop")},clearQueue:function(){var a=this._isRunning;this.stop();this._queue.length=0;a&&this.start()},isQueueEmpty:function(){return this._queue.length==0},_loadNext:function(){var d;this._resetLoader();var a=this._queue;if(a.length){if(this._needsSort)d=this._queue=a.sort(function(a,b){var f=a.priority-b.priority;return f?f:a.reqId-b.reqId}),a=d,this._needsSort=!1;this._currentEntry=a=a.shift();var b=this._loader;b.onload=this._loadFunc;b.onerror=this._loadErrorFunc;
b.src=a.src}},_resetLoader:function(){var a=this._loader;a.onload=null;a.onerror=null;this._currentEntry=a.src=null;if(this._timeoutTimerId)clearTimeout(this._timeoutTimerId),this._timeoutTimerId=0},_handleLoad:function(){var a=this._loader,b=this._currentEntry;b.width=a.width;b.height=a.height;b.callback&&b.callback(b.src,b.width,b.height,b.data);this.trigger("wp-image-loader-load-success",b);this._loadNext()},_handleError:function(){this.trigger("wp-image-loader-load-error",this._currentEntry);
this._loadNext()}})})(c,WebPro,window,document);(function(b,c){function a(){c.EventDispatcher.call(this);this._initialize.apply(this,arguments)}c.inherit(a,c.EventDispatcher);b.extend(a.prototype,{defaultOptions:{},_widgetName:"Widget",_initialize:function(){var a;this.plugins=[];var c=this.trigger("before-setup");c.isDefaultPrevented()||(a=this._setUp.apply(this,arguments),this.trigger("setup"));c=this.trigger("before-init-plugins");c.isDefaultPrevented()||(this._initializePlugins(a),this.trigger("init-plugins"));
this.options=b.extend({},this.defaultOptions,a);c=this.trigger("before-extract-data");c.isDefaultPrevented()||(this._extractData(),this.trigger("extract-data"));c=this.trigger("before-transform-markup");c.isDefaultPrevented()||(this._transformMarkup(),this.trigger("transform-markup"));c=this.trigger("before-attach-behavior");c.isDefaultPrevented()||(this._attachBehavior(),this.trigger("attach-behavior"));c=this.trigger("before-ready");c.isDefaultPrevented()||(this._ready(),this.trigger("ready"));
var g=this;b("body").on("muse_bp_activate",function(a,b,f){f.is(g.$bp)&&(g._bpActivate(),g.trigger("bp-activate"))}).on("muse_bp_deactivate",function(a,b,f){f.is(g.$bp)&&(g._bpDeactivate(),g.trigger("bp-deactivate"))})},_setUp:function(a,c){this.$element=b(a);var g=this.$element.closest(".breakpoint");if(1==g.length)this.$bp=g,this.breakpoint=this.$bp.data("bpObj");return c},_initializePlugins:function(a){for(var a=a||{},b=((typeof a.useDefaultPlugins==="undefined"||a.useDefaultPlugins)&&this.defaultPlugins?
this.defaultPlugins:[]).concat(a.plugins||[]),b=b.sort(function(a,b){a=typeof a.priority==="number"?a.priority:50;b=typeof b.priority==="number"?b.priority:50;return a-b}),g=0;g<b.length;g++){var c=b[g];c&&c.initialize&&c.initialize(this,a)}this.plugins=b},_extractData:function(){},_transformMarkup:function(){},_attachBehavior:function(){},_ready:function(){},_bpActivate:function(){},_bpDeactivate:function(){}});c.Widget=a;c.widget=function(a,h,g){var j=g&&h||c.Widget,g=g||h||{},h=function(){j.apply(this,
arguments);this._widgetName=a};c.inherit(h,j);b.extend(h.prototype,g);h.prototype.defaultOptions=b.extend({},j.prototype.defaultOptions,g.defaultOptions);var g=a.split("."),l=g.length;namespace=l>1&&g[0]||"Widget";a=g[l-1];c[namespace][a]=h}})(c,WebPro,window,document);(function(b,c){c.widget("Widget.Button",c.Widget,{defaultOptions:{hoverClass:"wp-button-hover",activeClass:"wp-button-down",disabledClass:"wp-button-disabled",disabled:!1,clickCallback:null,prevCallback:null,nextCallback:null},_attachBehavior:function(){var a=
this,f=function(c){a.$element.removeClass(a.options.activeClass);!a.options.disabled&&a.options.clickCallback&&a.options.clickCallback.call(this,c);b(a.$element).off("mouseup pointerup",f);a.pointerHandled=!1;if(c.type=="pointerup")a.completelyHandled=!0};this.pointerHandled=this.completelyHandled=!1;this.$element.on("keydown",function(b){if(!a.options.disabled){var f=b.which||b.keyCode;switch(f){case 37:case 38:b.preventDefault();a.options.prevCallback&&a.options.prevCallback.call(this,b);break;
case 39:case 40:b.preventDefault();a.options.nextCallback&&a.options.nextCallback.call(this,b);break;case 32:case 13:f===32&&b.preventDefault(),a.options.clickCallback&&a.options.clickCallback.call(this,b)}}}).on("mouseover",function(){a.options.disabled||a.$element.addClass(a.options.hoverClass+(a.mouseDown?" "+a.options.activeClass:""))}).on("mouseleave",function(){a.$element.removeClass(a.options.hoverClass+" "+a.options.activeClass);b(a.$element).off("mouseup",f)}).on("mousedown",function(){!a.options.disabled&&
!a.pointerHandled&&!a.completelyHandled?(a.$element.addClass(a.options.activeClass),b(a.$element).on("mouseup",f)):a.completelyHandled=!1}).on("pointerdown",function(){if(!a.options.disabled)a.pointerHandled=!0,a.completelyHandled=!1,a.$element.addClass(a.options.activeClass),b(a.$element).on("pointerup",f)});this.disabled(this.options.disabled)},disabled:function(a){if(typeof a==="boolean")this.options.disabled=a,this.$element[a?"addClass":"removeClass"](this.options.disabledClass);return this.options.disabled}});
b.fn.wpButton=function(a){this.each(function(){new c.Widget.Button(this,a)});return this}})(c,WebPro,window,document);(function(b,c){c.widget("Widget.RadioGroup",c.Widget,{_widgetName:"radio-group",defaultOptions:{defaultIndex:0,hoverClass:"wp-radio-hover",downClass:"wp-radio-down",disabledClass:"wp-radio-disabled",checkedClass:"wp-radio-checked",disabled:!1,toggleStateEnabled:!1},_attachBehavior:function(){var a=this;this.buttons=[];this.activeElement=null;this.activeIndex=-1;this.$element.each(function(){a.buttons.push(a._addButtonBehavior(this))});
this.disabled(this.options.disabled)},_bpActivate:function(){if(-1!=this.activeIndex){var a=this._getElement(this.activeIndex);a&&b(a).addClass(this.options.checkedClass)}},_bpDeactivate:function(){if(-1!=this.activeIndex){var a=this._getElement(this.activeIndex);a&&b(a).removeClass(this.options.checkedClass)}},_addButtonBehavior:function(a){var b=this,h=new c.Widget.Button(a,{hoverClass:this.options.hoverClass,downClass:this.options.downClass,disabledClass:this.options.disabledClass,clickCallback:function(c){return b._handleClick(c,
h,a)},prevCallback:function(c){return b._handlePrev(c,h,a)},nextCallback:function(c){return b._handleNext(c,h,a)}});return h},_handlePrev:function(){if(!this.options.disabled){if(this.activeIndex>this._getElementIndex(this.firstButton.$element[0]))this.activeIndex--;else if(this.activeIndex===this._getElementIndex(this.firstButton.$element[0])||this.activeIndex===-1)this.activeIndex=this._getElementIndex(this.lastButton.$element[0]);this._getElementByIndex(this.activeIndex).focus();this.checkButton(this.activeIndex)}},
_handleNext:function(){if(!this.options.disabled){if(this.activeIndex<this.numButtons-1)this.activeIndex++;else if(this.activeIndex===this.numButtons-1)this.activeIndex=this._getElementIndex(this.firstButton.$element[0]);this._getElementByIndex(this.activeIndex).focus();this.checkButton(this.activeIndex)}},_handleClick:function(a,b,c){this.options.disabled||this.checkButton(c)},_getElementIndex:function(a){return a?b.inArray(a,this.$element.get()):-1},_getElementByIndex:function(a){return a>=0?this.$element.eq(a)[0]:
null},_getElement:function(a){return typeof a==="number"?this._getElementByIndex(a):a},checkButton:function(a){var a=this._getElement(a),f=this.activeElement,c=this.options.checkedClass;a!==f?(f&&this.uncheckButton(f),a&&b(a).addClass(c)):this.options.toggleStateEnabled&&a&&(this.uncheckButton(a,c),a=null);this.activeElement=a;this.activeIndex=this._getElementIndex(a)},uncheckButton:function(a){b(a).removeClass(this.options.checkedClass)},disabled:function(a){if(typeof a==="boolean")this.disabled=
a,b.each(this.buttons,function(){this.disabled(a)});return this.options.disabled}});b.fn.wpRadioGroup=function(a){new c.Widget.RadioGroup(this,a);return this}})(c,WebPro,window,document);(function(b,c){c.widget("Widget.TabGroup",c.Widget.RadioGroup,{defaultOptions:{defaultIndex:0,hoverClass:"wp-tab-hover",downClass:"wp-tab-down",disabledClass:"wp-tab-disabled",checkedClass:"wp-tab-active",disabled:!1,toggleStateEnabled:!1,isPopupButtonWidget:!1,parentSelectors:[".ThumbGroup",".AccordionWidget",".TabbedPanelsWidget"]},
_attachBehavior:function(){this._super.prototype._attachBehavior.apply(this,arguments);this.isPopupButtonWidget=this.options.isPopupButtonWidget;this.numButtons=this.buttons.length;this.firstButton=this.buttons[0];this.lastButton=this.buttons[this.numButtons-1];this.configureAria()},selectTab:function(a){this.checkButton(a)},configureAria:function(){var a=this;if(this.options.isPopupButtonWidget===!0||this.numButtons===1)b.each(this.buttons,function(){this.$element.attr({role:"button",tabindex:"0",
"aria-haspopup":"true"})}),this.isPopupButtonWidget=!0;else if(this.numButtons>1)this.parentElement=this.buttons[0].$element.parents(this.options.parentSelectors.join()),this.parentElement.attr("role","tablist"),b.each(this.buttons,function(b){this.$element.attr({role:"tab",tabindex:"0"});b>0&&a.uncheckButton(this.$element)})},checkButton:function(a){var f=this._getElement(a),c=this._getElementIndex(f),c={tab:f,tabIndex:c};this.trigger("wp-tab-before-select",c);this._super.prototype.checkButton.apply(this,
arguments);b(f).attr({tabindex:"0"});this.options.contentLayout_runtime!=="lightbox"&&b(f).attr({"aria-selected":"true"});this.trigger("wp-tab-select",c)},uncheckButton:function(a){this._super.prototype.uncheckButton.apply(this,arguments);this.isPopupButtonWidget||(b(a).attr({tabindex:"-1"}),this.options.contentLayout_runtime!=="lightbox"&&b(a).attr({"aria-selected":"false"}))}});b.fn.wpTabGroup=function(a){new c.Widget.TabGroup(this,a);return this}})(c,WebPro,window,document);(function(b,c){c.widget("Widget.PanelGroup",
c.Widget,{_widgetName:"panel-group",defaultOptions:{defaultIndex:0,panelClass:"wp-panel",activeClass:"wp-panel-active",toggleStateEnabled:!1,tabGroups:null},_setUp:function(){var a=this;this.tabGroups=[];this._tabCallback=function(b,c){a._handleTabSelect(b,c)};this.showLock=0;this.tabDriver=null;return this._super.prototype._setUp.apply(this,arguments)},_bpActivate:function(){if(-1!=this.activeIndex){var a=this._getElement(this.activeIndex);a&&b(a).addClass(this.options.activeClass)}},_bpDeactivate:function(){if(-1!=
this.activeIndex){var a=this._getElement(this.activeIndex);a&&b(a).removeClass(this.options.activeClass)}},_attachBehavior:function(){this.activeElement=null;this.activeIndex=-1;this.$element.addClass(this.options.panelClass);var a=this.options.defaultIndex;typeof a==="number"&&a>=0&&this.showPanel(a);this.addTabGroup(this.options.tabGroups)},_getElementIndex:function(a){return a?b.inArray(a,this.$element.get()):-1},_getElementByIndex:function(a){return this.$element.eq(a)[0]},_getElement:function(a){return typeof a===
"number"?this._getElementByIndex(a):a},configureAria:function(a){b.each(this.$element,function(f,c){b(c).attr({role:"tabpanel","aria-labelledby":a.buttons[f].$element.attr("id")});a.buttons[f].$element.attr({"aria-controls":b(c).attr("id")})})},showPanel:function(a){if(!this.showLock){++this.showLock;var f=this._getElement(a),c=this.activeElement,g=this.options.activeClass;if(f)if(f!==c){a={panel:f,panelIndex:this._getElementIndex(f)};this.trigger("wp-panel-before-show",a);c&&this.hidePanel(c);b(f).addClass(g);
this.activeElement=f;this.activeIndex=this._getElementIndex(f);f=this.tabGroups;for(c=0;c<f.length;c++)g=f[c],g!==this.tabDriver&&g.selectTab(this.activeIndex);this.trigger("wp-panel-show",a)}else this.options.toggleStateEnabled&&this.hidePanel(f);--this.showLock}},hidePanel:function(a){if(a=typeof a==="number"?this.$element.eq(a)[0]:a){var f={panel:a,panelIndex:this._getElementIndex(a)};this.trigger("wp-panel-before-hide",f);b(a).removeClass(this.options.activeClass);if(a===this.activeElement)this.activeElement=
null,this.activeIndex=-1;this.trigger("wp-panel-hide",f)}},_handleTabSelect:function(a,b){if(!this.showLock)this.tabDriver=a.target,this.showPanel(b.tabIndex),this.tabDriver=null},addTabGroup:function(a){if(a)for(var a=c.ensureArray(a),f=a.length,h=0;h<f;h++){var g=a[h];b.inArray(this.tabGroups,g)===-1&&(this.tabGroups.push(g),g.selectTab(this.activeIndex),g.unbind("wp-tab-select").bind("wp-tab-select",this._tabCallback),this.configureAria(g))}},removeTabGroup:function(a){for(var a=c.ensureArray(a),
f=a.length,h=0;h<f;h++){var g=a[h];sets=this.tabGroups;loc=b.inArray(sets,g);loc!==-1&&sets.splice(loc,1)}}});b.fn.wpPanelGroup=function(a){new c.Widget.PanelGroup(this,a);return this}})(c,WebPro,window,document);(function(b,c){c.widget("Widget.Disclosure",c.Widget,{defaultOptions:{widgetClassName:"wp-disclosure-panels",tabClassName:"wp-disclosure-panels-tab",tabHoverClassName:"wp-disclosure-panels-tab-hover",tabDownClassName:"wp-disclosure-panels-tab-down",panelClassName:"wp-disclosure-panels-panel",
tabActiveClassName:"wp-disclosure-panels-tab-active",panelActiveClassName:"wp-disclosure-panels-panel-active",defaultIndex:0,toggleStateEnabled:!1},_attachBehavior:function(){var a=this.$element[0],b=this.options.widgetClassName,h=c.scopedFind(a,"."+this.options.tabClassName,b,a),a=c.scopedFind(a,"."+this.options.panelClassName,b,a);this.tabs=new c.Widget.TabGroup(h,{hoverClass:this.options.tabHoverClassName,downClass:this.options.tabDownClassName,checkedClass:this.options.tabActiveClassName,toggleStateEnabled:this.options.toggleStateEnabled});
this.panels=new c.Widget.PanelGroup(a,{panelClass:this.options.panelClassName,activeClass:this.options.panelActiveClassName,defaultIndex:this.options.defaultIndex,toggleStateEnabled:this.options.toggleStateEnabled});this.panels.addTabGroup(this.tabs)}});c.widget("Widget.TabbedPanels",c.Widget.Disclosure,{defaultOptions:{widgetClassName:"wp-tabbed-panels-panels",tabClassName:"wp-tabbed-panels-panels-tab",tabHoverClassName:"wp-tabbed-panels-panels-tab-hover",tabDownClassName:"wp-tabbed-panels-panels-tab-down",
tabActiveClassName:"wp-tabbed-panels-panels-tab-active",panelClassName:"wp-tabbed-panels-panels-panel",panelActiveClassName:"wp-tabbed-panels-panels-panel-active",toggleStateEnabled:!1},_transformMarkup:function(){Muse.Utils.addWidgetIDToImages(this.$element,this.$element.attr("id"))}});c.widget("Widget.Accordion",c.Widget.Disclosure,{defaultOptions:{widgetClassName:"wp-accordion",tabClassName:"wp-accordion-tab",tabHoverClassName:"wp-accordion-tab-hover",tabDownClassName:"wp-accordion-tab-down",tabActiveClassName:"wp-accordion-tab-active",
panelClassName:"wp-accordion-panel",panelActiveClassName:"wp-accordion-panel-active",toggleStateEnabled:!1},_transformMarkup:function(){Muse.Utils.addWidgetIDToImages(this.$element,this.$element.attr("id"))}})})(c,WebPro,window,document);(function(b,c){c.Widget.Disclosure.DisplayPropertyTransitionPlugin={defaultOptions:{},initialize:function(a,f){var c=this;b.extend(f,b.extend({},c.defaultOptions,f));a.bind("attach-behavior",function(){c._attachBehavior(a)})},_attachBehavior:function(a){var a=a.panels,
b=a.$element,c=a.activeIndex;a.bind("wp-panel-show",function(a,b){b.panel.style.display="block"});a.bind("wp-panel-hide",function(a,b){b.panel.style.display="none"});b.each(function(a){this.style.display=a!==c?"none":"block"})}};c.Widget.Disclosure.AccordionTransitionPlugin={defaultOptions:{transitionDirection:"vertical",transitionDuration:500,dispatchTransitionEvents:!0},initialize:function(a,f){var c=this;b.extend(f,b.extend({},c.defaultOptions,f));a.bind("attach-behavior",function(){c._attachBehavior(a)}).bind("bp-activate",
function(){c._bpActivate(a)}).bind("bp-deactivate",function(){c._bpDeactivate(a)})},_bpActivate:function(a){if(-1!=a.panels.activeIndex){var b=a.options,c=b.tabActiveClassName,b=b.transitionDirection,g=a.panels.activeIndex,a=a.panels.$element,d={overflow:"hidden"};if(b==="vertical"||b==="both")d.height="auto";if(b==="horizontal"||b==="both")d.width="auto";a.eq(g).addClass(c).css(d)}},_bpDeactivate:function(a){var f=a.options,c=f.tabActiveClassName,g=f.transitionDirection;a.panels.$element.each(function(){var a=
{overflow:"hidden"};if(g==="vertical"||g==="both")a.height="0";if(g==="horizontal"||g==="both")a.width="0";b(this).css(a).removeClass(c)})},_attachBehavior:function(a){var f=this,c=a.panels,g=c.$element,d=c.activeIndex,l=a.options.transitionDirection,k=a.options.widgetClassName==="AccordionWidget"?b(g[0]).closest("*[data-rotate]"):null;if(k&&k.length>0)a.options.marginBottom=Muse.Utils.getCSSIntValue(k,"margin-bottom"),a.options.originalHeight=k[0].scrollHeight;a.options.rotatedAccordion=k;c.bind("wp-panel-show",
function(b,c){f._showPanel(a,c)});c.bind("wp-panel-hide",function(b,c){f._hidePanel(a,c)});g.each(function(a){var a=a===d,f={};f.overflow=a?"":"hidden";if(l==="vertical"||l==="both")f.height=a?"auto":"0";if(l==="horizontal"||l==="both")f.width=a?"auto":"0";b(this).css(f)})},_updateMarginBottomForRotatedAccordion:function(a){a.options.rotatedAccordion.css("margin-bottom",Math.round(a.options.marginBottom-(a.options.rotatedAccordion[0].scrollHeight-a.options.originalHeight))+"px")},_transitionPanel:function(a,
f,c){b("body").trigger("wp-page-height-change",f-a);if((a=c.options.rotatedAccordion)&&a.length>0){if(c.options.originalHeight==0&&"undefined"!==typeof f)c.options.marginBottom=Muse.Utils.getCSSIntValue(a,"margin-bottom"),c.options.originalHeight=a[0].scrollHeight;this._updateMarginBottomForRotatedAccordion(c)}},_showPanel:function(a,f){if(!a.$bp||a.$bp.hasClass("active")){var c=a.options,g=c.transitionDirection,d=b(f.panel),l={},k=c.dispatchTransitionEvents,i=this,m=d.height(),n=function(b){b=parseInt(b.elem.style.height);
i._transitionPanel(m,b,a);m=b};if(g==="vertical"||g==="both")l.height=d[0].scrollHeight+"px";if(g==="horizontal"||g==="both")l.width=d[0].scrollWidth+"px";d.stop(!0,!0).queue("animationFrameFx",b.animationFrameFx).animate(l,{duration:c.transitionDuration,progress:k?n:null,queue:"animationFrameFx",complete:function(){var b={overflow:""};if(g==="vertical"||g==="both")b.height="auto";if(g==="horizontal"||g==="both")b.width="auto";d.css(b);(b=a.options.rotatedAccordion)&&b.length>0&&i._updateMarginBottomForRotatedAccordion(a)}}).dequeue("animationFrameFx")}},
_hidePanel:function(a,f){if(!a.$bp||a.$bp.hasClass("active")){var c=a.options,g=c.transitionDirection,d=b(f.panel),l={},k=c.dispatchTransitionEvents,i=this,m=d.height(),n=function(b){b=parseInt(b.elem.style.height);i._transitionPanel(m,b,a);m=b};if(g==="vertical"||g==="both")l.height="0";if(g==="horizontal"||g==="both")l.width="0";d.stop(!0,!0).queue("animationFrameFx",b.animationFrameFx).animate(l,{duration:c.transitionDuration,queue:"animationFrameFx",progress:k?n:null,complete:function(){d.css("overflow",
"hidden");var b=a.options.rotatedAccordion;b&&b.length>0&&i._updateMarginBottomForRotatedAccordion(a)}}).dequeue("animationFrameFx")}}}})(c,WebPro,window,document);(function(b,c){c.widget("Widget.SlideShowBase",c.Widget,{_widgetName:"slideshow-base",defaultOptions:{displayInterval:6E3,autoPlay:!1,loop:!0,playOnce:!1},_setUp:function(){var a=this;this._ssTimer=0;this._ssTimerTriggered=!1;this._ssTimerCallback=function(){a._ssTimerTriggered=!0;a.next();a._ssTimerTriggered=!1};return c.Widget.prototype._setUp.apply(this,
arguments)},_ready:function(){this.options.autoPlay&&this.play()},play:function(a){e=this.trigger("wp-slideshow-before-play");e.isDefaultPrevented()||(this._startTimer(!1,a),this.trigger("wp-slideshow-play"))},stop:function(){e=this.trigger("wp-slideshow-before-stop");e.isDefaultPrevented()||(this._stopTimer(),this.trigger("wp-slideshow-stop"))},isPlaying:function(){return this._ssTimer!==0},_startTimer:function(a,b){this._stopTimer();var c=b?0:this.options.displayInterval;a&&(c+=this.options.transitionDuration);
this._ssTimer=setTimeout(this._ssTimerCallback,c)},_stopTimer:function(){this._ssTimer&&clearTimeout(this._ssTimer);this._ssTimer=0},_executeCall:function(a,b){e=this.trigger("wp-slideshow-before-"+a);if((!this._$sslbpOverlay||!(this._$sslbpOverlay.hasClass("LightboxContent")&&this._$sslbpOverlay.css("opacity")==0))&&!e.isDefaultPrevented())this["_"+a].apply(this,b)&&this.stop(),this.isPlaying()&&this._startTimer(!0),this.trigger("wp-slideshow-"+a)},first:function(){return this._executeCall("first",
arguments)},last:function(){return this._executeCall("last",arguments)},previous:function(){return this._executeCall("previous",arguments)},next:function(){return this._executeCall("next",arguments)},goTo:function(){return this._executeCall("goTo",arguments)},close:function(){return this._executeCall("close",arguments)},_first:function(){},_last:function(){},_previous:function(){},_next:function(){},_goTo:function(){},_close:function(){}})})(c,WebPro,window,document);(function(b,c){c.widget("Widget.ContentSlideShow",
c.Widget.SlideShowBase,{_widgetName:"content-slideshow",defaultOptions:{slideshowClassName:"wp-slideshow",clipClassName:"wp-slideshow-clip",viewClassName:"wp-slideshow-view",slideClassName:"wp-slideshow-slide",slideLinkClassName:"wp-slideshow-slide-link",firstBtnClassName:"wp-slideshow-first-btn",lastBtnClassName:"wp-slideshow-last-btn",prevBtnClassName:"wp-slideshow-prev-btn",nextBtnClassName:"wp-slideshow-next-btn",playBtnClassName:"wp-slideshow-play-btn",stopBtnClassName:"wp-slideshow-stop-btn",
closeBtnClassName:"wp-slideshow-close-btn",playingClassName:"wp-slideshow-playing"},_findWidgetElements:function(a){for(var f=this.$element[0],a=c.scopedFind(f,a,this.options.slideshowClassName,f),f=!0,h=0;h<a.length;h++)if(parseInt(b(a[h]).attr("data-col-pos")||-100)===-100){f=!1;break}f&&a.sort(function(a,f){var c=parseInt(b(a).attr("data-col-pos")||-1),d=parseInt(b(f).attr("data-col-pos")||-1);if(c<d)return-1;if(c>d)return 1;return 0});return a},_attachBtnHandler:function(a,b){var c=this;this["$"+
b+"Btn"]=this._findWidgetElements("."+a).attr({tabindex:"0",role:"button","aria-label":b}).unbind("keydown").bind("keydown",function(a){var d=a.keyCode||a.which;if(d===32||d===13)c[b](),a.preventDefault()}).unbind("click").bind("click",function(a){c[b]();a.preventDefault()})},_getAjaxSrcForImage:function(a){return a.data("src")},_reprioritizeImageLoadingIfRequired:function(a){!this._isLoaded(a)&&this._cssilLoader&&!this._cssilLoader.isQueueEmpty()&&(a=b(this.slides.$element[a]),this._cssilLoader.reprioritize(this._getAjaxSrcForImage(a.is("img")?
a:a.find("img")),this.isPlaying()))},_bpActivate:function(){this.slides.bind("wp-panel-show",this._panelShowCallback)},_bpDeactivate:function(){this.slides.unbind("wp-panel-show").unbind("wp-panel-before-show").unbind("wp-panel-hide").unbind("wp-panel-before-hide");this.unbind("wp-slideshow-play").unbind("wp-slideshow-stop");this.tabs&&this.tabs.trigger("wp-panel-hide",{panelIndex:this.slides.activeIndex})},_attachBehavior:function(){var a=this,b=this.options;this._super.prototype._attachBehavior.call(this);
this._panelShowCallback=function(){a._ssTimerTriggered||a.isPlaying()&&a._startTimer(!1)};this.$element.addClass(b.slideshowClassName);var h=this.slides?this.slides.$element:this._findWidgetElements("."+b.slideClassName),g=this.tabs?this.tabs.$element:this._findWidgetElements("."+b.slideLinkClassName),j=b.event==="click"&&b.deactivationEvent==="mouseout_click";if(!this.slides&&(this.slides=new c.Widget.PanelGroup(h,{defaultIndex:this.slides&&this.slides.activeIndex||b.defaultIndex||0,toggleStateEnabled:j}),
this.slides.bind("wp-panel-show",this._panelShowCallback),this.tabs=null,g.length))this.tabs=new c.Widget.TabGroup(g,{defaultIndex:this.tabs&&this.tabs.activeIndex||b.defaultIndex||0,toggleStateEnabled:j,contentLayout_runtime:b.contentLayout_runtime}),this.slides.addTabGroup(this.tabs);this.slides.bind("wp-panel-before-show",function(b,f){a._reprioritizeImageLoadingIfRequired(f.panelIndex)});this._attachBtnHandler(b.firstBtnClassName,"first");this._attachBtnHandler(b.lastBtnClassName,"last");this._attachBtnHandler(b.prevBtnClassName,
"previous");this._attachBtnHandler(b.nextBtnClassName,"next");this._attachBtnHandler(b.playBtnClassName,"play");this._attachBtnHandler(b.stopBtnClassName,"stop");this._attachBtnHandler(b.closeBtnClassName,"close");this.bind("wp-slideshow-play",function(){this.$element.addClass(b.playingClassName)});this.bind("wp-slideshow-stop",function(){this.$element.removeClass(b.playingClassName)})},_first:function(){this.slides.showPanel(0)},_last:function(){var a=this.slides;a.showPanel(a.$element.length-1)},
_previous:function(){var a=this.slides,b=a.$element.length,c=a.activeIndex,b=(c<1?b:c)-1;!this.options.loop&&0==c?this.isPlaying()&&this.stop():a.showPanel(b)},_next:function(){var a=this.slides,b=a.activeIndex,c=(b+1)%a.$element.length;!this.options.loop&&0==c?this.isPlaying()&&this.stop():a.activeIndex!=-1&&this.options.playOnce&&0==c&&this.isPlaying()?this.stop():(!this.isPlaying()||this._isLoaded(b)&&this._isLoaded(c))&&a.showPanel(c)},_goTo:function(){var a=this.slides;a.showPanel.apply(a,arguments)},
_close:function(){var a=this.slides;a.hidePanel(a.activeElement)},_isLoaded:function(a){if(this._csspIsImageSlideShow&&(a=b(this.slides.$element[a]),a=a.is("img")?a:a.find("img"),a.length>0&&(a.hasClass(this.options.imageIncludeClassName)||!a[0].complete)))return!1;return!0}})})(c,WebPro,window,document);(function(b,c,a,f,h){c.Widget.ContentSlideShow.fadingTransitionPlugin={defaultOptions:{transitionDuration:500},initialize:function(a,f){var c=this;b.extend(f,b.extend({},c.defaultOptions,f));a.bind("attach-behavior",
function(){c.attachBehavior(a)})},attachBehavior:function(g){var j=this,l=g.slides,k=l.$element,i=l.activeIndex,m=g._findWidgetElements("."+g.options.viewClassName);0==m.length&&g._$sslbpOverlay&&(m=b("."+g.options.viewClassName,g._$sslbpOverlay));l.bind("wp-panel-show",function(a,f){j._showElement(g,b(f.panel));g.options.contentLayout_runtime==="stack"&&j._showElement(g,g.$closeBtn)}).bind("wp-panel-hide",function(a,f){j._hideElement(g,b(f.panel))});g.options.contentLayout_runtime==="stack"&&g.bind("wp-slideshow-close",
function(){j._hideElement(g,g.$closeBtn)});for(var n=0;n<k.length;n++)if(n!==i)k[n].style.display="none";if(g.options.elastic==="fullWidth"){var q=b(a),p=b(f.body),o=function(a){a===h&&(a=Math.max(q.width(),parseInt(p.css("min-width"))));g.options.contentLayout_runtime!=="lightbox"&&m.css("left",m.position().left-m.offset().left);m.width(a);j._showElement(g,b(l.activeElement))};o();for(n=0;n<k.length;n++){var r=b(k[n]);r.width("100%");r.addClass("borderbox")}if(g.options.contentLayout_runtime==="lightbox")g._fstpPositionSlides=
o;else q.on("orientationchange resize",function(){o()})}i===-1&&g.options.contentLayout_runtime==="stack"&&g.$closeBtn.hide();if(Muse.Browser.Features.Touch&&g.options.enableSwipe===!0){m.addClass("horizontalSlideShow");var t=g.options.transitionDuration;g._ftpSwipeNoInterrupt=!1;k.each(function(){var a=b(this);a.data("opacity",a.css("opacity"));var f=Muse.Utils.getCanvasDirection(a,"horizontal"),h=f.dir==="horizontal",i=f.reverse;if(f=a.swipe.defaults.excludedElements){var f=f.split(/\s*,\s*/),n=
f.indexOf("a");if(0<=n)f.splice(n,1),a.swipe.defaults.excludedElements=f.join(", ")}a.swipe({triggerOnTouchEnd:!0,allowPageScroll:h?"vertical":"horizontal",threshold:75,swipeStatus:function(b,f,n,m){if(f=="start")g.stop();else if(f=="move"&&(h&&(n=="left"||n=="right")||!h&&(n=="up"||n=="down")))!c.hasPointerCapture()&&Math.abs(m)>1&&c.setPointerCapture(a[0],b),j._scrollTo(g,-1,m*(!i&&(n=="left"||n=="up")||i&&(n=="right"||n=="down")?1:-1),0);else if(f=="cancel")j._scrollTo(g,g.slides.activeIndex,0,
t),c.releasePointerCapture(a[0],b),g.trigger("wp-swiped");else if(f=="end"){f=g.slides.activeIndex;m=-1;if(h&&(n=="right"&&!i||n=="left"&&i)||!h&&(n=="down"&&!i||n=="up"&&i))m=f-1<0?k.length-1:f-1;else if(h&&(n=="left"&&!i||n=="right"&&i)||!h&&(n=="up"&&!i||n=="down"&&i))m=f+1>k.length-1?0:f+1;m!=-1&&j._scrollTo(g,m,0,t);c.releasePointerCapture(a[0],b);g.trigger("wp-swiped")}}})})}},_showElement:function(a,b){var f=!1,c=function(){f||(f=!0,b.show().css("opacity",""))},d=setTimeout(c,a.options.transitionDuration+
10);b.stop(!1,!0).fadeIn(a.options.transitionDuration,function(){clearTimeout(d);c()})},_hideElement:function(a,b){var f=!1,c=function(){f||(f=!0,b.hide().css("opacity",""))},d=setTimeout(c,a.options.transitionDuration+10);b.stop(!1,!0).fadeOut(a.options.transitionDuration,function(){clearTimeout(d);c()})},_scrollTo:function(a,f,c,d){if(!a._ftpSwipeNoInterrupt){var h=a.slides.$element,m=a.slides.activeIndex,n=f==-1;f==-1&&(f=c<0?m-1<0?h.length-1:m-1:m+1>h.length-1?0:m+1);var q=b(h[m]),p=b(h[f]);if(!n&&
c==0||m==f){a._ftpSwipeNoInterrupt=!0;var o=0,r=!1,t=function(){if(!r&&(r=!0,p.show().css("opacity",""),f!=m&&a.slides.showPanel(f),++o==h.length))a._ftpSwipeNoInterrupt=!1};if(p.css("opacity")!=p.data("opacity")){var w=setTimeout(t,d+10);p.stop(!1,!0).animate({opacity:p.data("opacity")},d,function(){clearTimeout(w);t()})}else t();h.each(function(c){var n=b(this),m=!1,l=function(){if(!m&&(m=!0,n.hide().css("opacity",""),++o==h.length))a._ftpSwipeNoInterrupt=!1},q;c!=f&&(n.css("display")!="none"&&
n.css("opacity")!=0?(q=setTimeout(l,d+10),n.stop(!1,!0).animate({opacity:0},d,function(){clearTimeout(q);l()})):l())})}else c=Math.abs(c),n=q.width(),c>n&&(c=n),c=p.data("opacity")*(c/n),n=q.data("opacity")*(1-c),q.stop(!1,!0).animate({opacity:n},d),p.stop(!1,!0).show().animate({opacity:c},d)}}};c.Widget.ContentSlideShow.filmstripTransitionPlugin={defaultOptions:{transitionDuration:500,transitionStyle:"horizontal"},initialize:function(a,f){var c=this;b.extend(f,b.extend({},c.defaultOptions,f));a.bind("attach-behavior",
function(){c.attachBehavior(a)}).bind("bp_activate",function(){c.bpActivate(a)}).bind("bp-deactivate",function(){c.bpDeactivate(a)})},bpActivate:function(a){plugin._goToSlide(a,a.slides.activeElement,a.options.transitionDuration)},bpDeactivate:function(a){a.slides.unbind("wp-panel-show").unbind("wp-panel-hide");a.unbind("wp-slideshow-before-previous").unbind("wp-slideshow-before-next").unbind("wp-slideshow-previous").unbind("wp-slideshow-next")},attachBehavior:function(g){var j=this,l=b(a),k=b(f.body),
i=g.options,m=function(){return i.elastic==="fullWidth"?Math.max(l.width(),parseInt(k.css("min-width"))):o.width()},n=i.transitionStyle==="horizontal",q=g.slides,p=q.$element,o=g.$clip?g.$clip:g._findWidgetElements("."+i.clipClassName),r=g.$view?g.$view:g._findWidgetElements("."+i.viewClassName),t=m(),w=o.height(),x={left:1,right:1},v={up:1,down:1},s={top:"0",left:"0"};g.$clip=o;g.$view=r;var y=o.css("position");y!=="absolute"&&y!=="fixed"&&i.elastic!=="fullScreen"&&o.css("position","relative");r.css("position")!==
"absolute"&&(s.position="relative");Muse.Utils.updateSlideshow_fstpOffsetSize(g);g._fstp$Clip=o;g._fstp$View=r;g._fstpStyleProp=n?"left":"top";g._fstpStylePropZero=n?"top":"left";q.bind("wp-panel-show",function(a,b){j._goToSlide(g,b.panel,i.transitionDuration);g.options.contentLayout_runtime==="stack"&&(g.$closeBtn.css("opacity",""),g.$closeBtn.stop(!0).fadeIn(i.transitionDuration))});g.options.contentLayout_runtime==="stack"&&g.bind("wp-slideshow-close",function(){o.css({opacity:0.99}).stop(!0).animate({opacity:0},
{queue:!1,duration:i.transitionDuration,complete:function(){s[g._fstpStyleProp]=(n?o.width():o.height())+"px";s[g._fstpStylePropZero]="0";r.css(s);o.css({opacity:""})}});g.$closeBtn.stop(!0).fadeOut(i.transitionDuration)});g._fstpRequestType=null;g.bind("wp-slideshow-before-previous wp-slideshow-before-next",function(a){g._fstpRequestType=a.type.replace(/.*-/,"");g._fstpOldActiveIndex=g.slides.activeIndex}).bind("wp-slideshow-previous wp-slideshow-next",function(){g._fstpRequestType=null;g._fstpOldActiveIndex=
-1});var z=function(a,f){var c;r.parents().each(function(){c=b(this);c.css("display")=="none"&&(c.attr("data-margin-left",c.css("margin-left")),c.css("margin-left","-10000px"),c.css("display","block"),c.attr("data-display-attr-change","true"))});if(a===h||f===h)a=m(),f=o.height();i.elastic==="fullWidth"&&(f=o.height(),o.width(a),i.contentLayout_runtime!=="lightbox"&&o.css("left",o.position().left-o.offset().left),r.width(a));for(var d=0,k=n?a:f,l=g._fstpStyleProp,v=g._fstpStylePropZero,y=0;y<p.length;y++){var u=
p[y].style;u[v]="0";u[l]=d+"px";u.margin="0";u.position="absolute";d+=k}j._goToSlide(g,q.activeElement,0);i.elastic==="off"&&(s[n?"width":"height"]=n&&i.isResponsive?"100%":d+"px",s[n?"height":"width"]=n?w+"px":i.isResponsive?"100%":t+"px");r.parents().each(function(){c=b(this);c.attr("data-display-attr-change")=="true"&&(c.css("display",""),c.css("display")!="none"&&c.css("display","none"),c.css("margin-left",""),c.css("margin-left")!=c.attr("data-margin-left")&&c.css("margin-left",c.attr("data-margin-left")),
c.removeAttr("data-display-attr-change"),c.removeAttr("data-margin-left"))});return d};z();if(i.elastic==="fullWidth")for(y=0;y<p.length;y++){var u=b(p[y]);u.width("100%");u.addClass("borderbox")}g._fstpPositionSlides=z;l.on("orientationchange resize",function(){z()});if(g.$element.attr("data-inside-lightbox")==="true"||Muse.Utils.widgetInsideLightbox(g.$element.parents(".PamphletWidget")))g.$element.attr("data-inside-lightbox","true"),l.on("lightboxresize",function(){z()});q.activeElement||(s[g._fstpStyleProp]=
(n?t:w)+"px",s[g._fstpStylePropZero]="0",g.options.contentLayout_runtime==="stack"&&g.$closeBtn.hide());s.overflow="visible";r.css(s);j._goToSlide(g,q.activeElement,i.transitionDuration);Muse.Browser.Features.Touch&&g.options.enableSwipe===!0&&(b(this),n?r.addClass("horizontalSlideShow"):r.addClass("verticalSlideShow"),r.swipe({triggerOnTouchEnd:!0,allowPageScroll:n?"vertical":"horizontal",threshold:75,swipeStatus:function(a,b,f,h){var k=Muse.Utils.getCanvasDirection(r,i.transitionStyle).reverse,
k=!k&&(f=="left"||f=="up")||k&&(f=="right"||f=="down")?1:-1;switch(b){case "start":g.stop();break;case "move":if(n&&f in x||!n&&f in v)!c.hasPointerCapture()&&Math.abs(h)>1&&c.setPointerCapture(r[0],a),j._scrollBy(g,h*k);break;case "cancel":j._goToSlide(g,q.activeElement,0);c.releasePointerCapture(r[0],a);g.trigger("wp-swiped");break;case "end":j._finalizeSwipe(g,g._fstpOffsetSize*g.slides.activeIndex+h*k,k,f),c.releasePointerCapture(r[0],a)}}}))},_scrollBy:function(a,b){var f=a._fstp$View,c=a.slides.activeIndex*
-a._fstpOffsetSize,d=a._fstpStyleProp,h={};f.stop(!1,!0);h[d]=c-b+"px";f.css(h)},_finalizeSwipe:function(a,b,f){var c=a.slides,d=a._fstp$View,h=b/a._fstpOffsetSize,b=a._fstpStyleProp,n={},h=f===1?Math.ceil(h):Math.floor(h),h=Math.max(0,Math.min(h,c.$element.length-1));n[b]=-(h*a._fstpOffsetSize)+"px";d.animate(n,a.options.transitionDuration,function(){c.showPanel(h);a.trigger("wp-swiped")})},_goToSlide:function(a,f,c){if(a){var d=b(f),h=a._fstp$View,m=a._fstpStyleProp,n=m==="left"?"offsetLeft":"offsetTop",
q=m==="left"?"offsetWidth":"offsetHeight",p=f?-f[n]:a._fstp$Clip[0][q],o={};o[m]=p+"px";var r=a._fstpRequestType,t=a._fstpOldActiveIndex;if(r&&t!==-1){var w=a.slides.activeIndex,x=a.slides.$element.length-1;if(w!==t){var v=0;r==="previous"&&t===0&&w===x?v=-f[q]:r==="next"&&t===x&&w===0&&(a=a.slides.$element[t],v=a[n]+a[q]);v&&(o[m]=-v+"px",d.css(m,v+"px"))}}h.stop(!1,!0).animate(o,c,function(){v&&(d.css(m,-p+"px"),h.css(m,p+"px"))})}}};c.Widget.ContentSlideShow.alignPartsToPagePlugin={defaultOptions:{alignPartToPageClassName:"wp-slideshow-align-part-to-page"},
initialize:function(a,f){var c=this;b.extend(f,b.extend({},c.defaultOptions,f));a.bind("attach-behavior",function(){c.attachBehavior(a)})},attachBehavior:function(f){if(!("fullWidth"!==f.options.elastic||!f.$element.hasClass("align_parts_to_page")||"fixed"!==f.$element.css("position")||f.options.contentLayout_runtime==="lightbox")){var c=b(a),d=b("#page"),h=f.options,i=function(){var a=d.offset().left+"px";b("."+h.alignPartToPageClassName,f.$element).each(function(){b(this).css("margin-left",a)})};
f.$element.children().each(function(){var a=b(this);0<b("."+h.viewClassName,a).length||a.addClass(h.alignPartToPageClassName)});i();c.on("orientationchange resize",function(){i()})}}};c.Widget.ContentSlideShow.slideImageIncludePlugin={defaultOptions:{imageIncludeClassName:"wp-slideshow-slide-image-include",slideLoadingClassName:"wp-slideshow-slide-loading"},initialize:function(a,f){var h=this;b.extend(f,b.extend({},h.defaultOptions,f));a._cssilLoader=new c.ImageLoader;a.bind("attach-behavior",function(){h._attachBehavior(a)})},
_attachBehavior:function(a){var f=this,c=a._cssilLoader,d,h=a._findWidgetElements("."+a.options.slideClassName);d=a._findWidgetElements("."+a.options.slideLinkClassName);for(var m=h.length,n="."+a.options.imageIncludeClassName,q=a.options.slideLoadingClassName,p=function(b,c,d,h){f._handleImageLoad(a,b,c,d,h)},o=0;o<m;o++){var r=h.eq(a._shuffleArray?a._shuffleArray[o]:o),t=r.is("img")?r:r.find(n),w=t[0],x,v,s;d.length&&(x=b(d[o]),v=x.is("img")?x:x.find(n),s=v[0]);var y=function(b,f,d){if(d){var h=
a._getAjaxSrcForImage(f)||d.href;if(h)f={width:f.data("width"),height:f.data("height"),$ele:f,$slide:b,slideshow:a},d.style.visibility="hidden",c.add(h,{callback:p,data:f}),b.addClass(q)}};y(r,t,w);d.length&&y(x,v,s)}a._cssilLoader.start()},_handleImageLoad:function(a,f,c,d,i){var m=i.$ele,n=m[0];n.src=f;if(a.options.elastic!=="off"&&b(n).closest(".SSSlideLink").length!=1)m.data("imageWidth",c),m.data("imageHeight",d),a._csspPositionImage(n,a.options.heroFitting,a.options.elastic,c,d);else if(b(n).attr("data-heightwidthratio")==
h)n.width=i.width||c,n.height=i.height||d;n.style.visibility="";m.removeClass(a.options.imageIncludeClassName);i.$slide.removeClass(a.options.slideLoadingClassName);a.isPlaying()&&a.slides.$element[a.slides.activeIndex]==i.$slide[0]&&a._startTimer(!1)}};c.Widget.ContentSlideShow.shufflePlayPlugin={defaultOptions:{randomDefaultIndex:!0},initialize:function(a,f){var c=this;b.extend(f,b.extend({},c.defaultOptions,f));a._shuffleArray=[];a._shuffleNextDict={};a._realNext=a._next;a._next=function(){c._handleNext(a)};
a._shufflePlayCount=1;a.bind("before-attach-behavior",function(){c._reshuffle(a);if(f.randomDefaultIndex&&typeof f.defaultIndex==="undefined")a.options.defaultIndex=a._shuffleArray[0]})},_fisherYatesArrayShuffle:function(a){if(a&&a.length)for(var b=a.length;--b;){var f=Math.floor(Math.random()*(b+1)),c=a[f];a[f]=a[b];a[b]=c}},_reshuffle:function(a){var b=a._shuffleArray,f={},c=a.slides?a.slides.$element.length:a._findWidgetElements("."+a.options.slideClassName).length;if(b.length!==c)for(var d=b.length=
0;d<c;d++)b[d]=d;this._fisherYatesArrayShuffle(b);for(d=0;d<c;d++)f[b[d]]=b[(d+1)%c];a._shuffleNextDict=f;a._shufflePlayCount=1},_handleNext:function(a){if(a.isPlaying()){var b=a.slides.activeIndex,f=a._shuffleNextDict[b]||0;a._isLoaded(b)&&a._isLoaded(f)&&(a._goTo(f),++a._shufflePlayCount>=a.slides.$element.length&&(this._reshuffle(a),(!a.options.loop||a.options.playOnce)&&a.stop()))}else a._realNext()}}})(c,WebPro,window,document);(function(b,d,a){d.widget("Widget.Form",d.Widget,{_widgetName:"form",
defaultOptions:{validationEvent:"blur",errorStateSensitivity:"low",ajaxSubmit:!0,fieldWrapperClass:"field",formErrorClass:"form-error",formSubmittedClass:"form-submitted",formDeliveredClass:"form-delivered",focusClass:"focus",notEmptyClass:"not-empty",emptyClass:"empty",validClass:"valid",invalidClass:"invalid",requiredClass:"required"},validationTypes:{"always-valid":/.*/,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
alpha:/^[A-z\s]+$/,numeric:/^[0-9]+$/,phone:/^([0-9])?(\s)?(\([0-9]{3}\)|[0-9]{3}(\-)?)(\s)?[0-9]{3}(\s|\-)?[0-9]{4}(\s|\sext|\sx)?(\s)?[0-9]*$/,captcha:function(a){return a.data("captchaValid")},recaptcha:function(){if("undefined"==typeof Recaptcha)return!1;var a=Recaptcha.get_response();return a&&0<a.length},recaptcha2:function(a){if("undefined"!=typeof reCaptchaV2Manager){a=b("input[type=hidden]",a);if(1!=a.length)return!1;a=a.attr("data-recaptcha-id");return reCaptchaV2Manager.isInstanceVerified(a)}else if("undefined"!=
typeof grecaptcha&&"undefined"!=typeof muReCAPTCHA2Instances)return a=muReCAPTCHA2Instances[a.attr("id")],(a=grecaptcha.getResponse(a))&&0<a.length;return!1},checkbox:function(){return!0},checkboxgroup:function(){return!0},radio:function(){return!0},radiogroup:function(){return!0},time:function(a){var a=a.find("input, textarea"),b=a.val().replace(/[^0-9:APM]/g,"");if(b.indexOf(":")!=-1&&b.match(/:/).length==1){var c=b.split(":"),d=parseInt(c[0]),c=parseInt(c[1]);if(d<0||d>24)return!0;if(c<0||c>59)return!0}else return!1;
a.val(b);return!0}},_transformMarkup:function(){var a=this;a.hasCAPTCHA=!1;a.hasReCAPTCHA=!1;a.hasReCAPTCHA2=!1;this.$element.find("."+this.options.fieldWrapperClass).each(function(){var c=b(this);switch(c.attr("data-type")){case "captcha":a.hasCAPTCHA=!0;c.find('input[name="CaptchaV2"]').remove();c.find('input[name="muse_CaptchaV2"]').attr("name","CaptchaV2");break;case "recaptcha":a.hasReCAPTCHA=!0;break;case "recaptcha2":a.hasReCAPTCHA2=!0}})},_extractData:function(){this.event=this.options.validationEvent;
this.errorSensitivity=this.options.errorStateSensitivity;this.classNames={focus:this.options.focusClass,blur:this.options.emptyClass,keydown:this.options.notEmptyClass}},_isEmpty:function(a){var c=a.find('input[type!="hidden"], textarea');switch(a.data("type")){case "checkboxgroup":case "radiogroup":return c=c.attr("name"),b('input[name="'+c+'"]:checked').length==0;case "checkbox":case "radio":return typeof c.attr("checked")==="undefined";default:var a=!0,d;for(d=0;d<c.length;d++){var j=b(c[d]);if(!(j.is("input")&&
j.css("display")=="none")){a=j.val()=="";break}}return a}},_getGroupField:function(a){switch(a.data("type")){case "radio":return a.parent().closest("."+this.options.fieldWrapperClass).filter(function(){return"radiogroup"==b(this).data("type")});case "checkbox":return a.parent().closest("."+this.options.fieldWrapperClass).filter(function(){return"checkboxgroup"==b(this).data("type")})}return null},_updateReCaptchaChallenge:function(){var a=b("#recaptcha_response_field",this.$element);if(0!=a.length){if(0==
b("#recaptcha_challenge_field_holder",a.parent()).length){var c=b("#recaptcha_challenge_field_holder");a.before(c)}for(var a=b("#recaptcha_image",this.$element),c=["#ReCaptchaV2","#ReCaptchaAnswer","#ReCaptchaChallenge"],d=0;d<c.length;d++)if(0==b(c[d],a).length){var j=b(c[d]);a.after(j)}}},_attachBehavior:function(){var a=this;if(this._bpID=this.$element.closest(".breakpoint").attr("id"))b("body").on("muse_bp_activate",function(b,c,d){a._bpID==d.attr("id")&&a._updateReCaptchaChallenge()}),this._updateReCaptchaChallenge();
this.$element.find("."+this.options.fieldWrapperClass).each(function(){var c=b(this);a._isEmpty(c)||c.find("input, textarea").each(function(){b(this).removeClass(a.options.emptyClass)});c.attr("data-type")=="captcha"&&(c.data("captchaValid",!1),c.find('input[name="CaptchaV2"]').keyup(function(){var d=b(this).val(),j=c.find('input[name="CaptchaHV2"]').val();a._validateCaptcha(j,d,function(b){c.data("captchaValid",b);c.data("error-state")&&a.errorSensitivity=="high"&&a._validate(c)})}));a._isEmpty(c)||
c.addClass(a.classNames.keydown)});this.$element.find("input, textarea").bind("focus blur keydown change propertychange",function(c){var d=a.classNames[c.type],j=a.classNames.focus,l=a.classNames.keydown,k=a.classNames.blur,i=b(this).closest("."+a.options.fieldWrapperClass),m=a._getGroupField(i);switch(c.type){case "focus":i.addClass(d).removeClass(k);break;case "keydown":"checkbox"!=i.data("type")&&"radio"!=i.data("type")&&i.addClass(d).removeClass(k);break;case "blur":i.removeClass(j);a._isEmpty(i)&&
i.addClass(d).removeClass(l);m&&a._isEmpty(m)&&m.addClass(d).removeClass(l);break;case "change":case "propertychange":"radio"==i.data("type")&&m.find("."+a.options.fieldWrapperClass).removeClass(l),a._isEmpty(i)?i.addClass(k).removeClass(l):i.addClass(l).removeClass(k),m&&(a._isEmpty(m)?m.addClass(k).removeClass(l):m.addClass(l).removeClass(k))}});switch(this.event){case "blur":case "keyup":this.$element.find("."+this.options.fieldWrapperClass+" input, ."+this.options.fieldWrapperClass+" textarea").bind(this.event,
function(){a._validate(b(this).closest("."+a.options.fieldWrapperClass))});case "submit":this.$element.submit(function(c){var d=!0,j=a.$element.find("."+a.options.fieldWrapperClass).length-1;a.$element.find("."+a.options.fieldWrapperClass).each(function(l){if((d=a._validate(b(this))?d:!1)&&l==j)if(a.options.ajaxSubmit)c.preventDefault(),a._submitForm();else{var l=b("#ReCaptchaAnswer",a.$element),k=b("#ReCaptchaChallenge",a.$element);a.hasReCAPTCHA&&1==l.length&&1==k.length&&(l.val(Recaptcha.get_response()),
k.val(Recaptcha.get_challenge()))}d||c.preventDefault()});b("."+a.options.fieldWrapperClass,a.$element).each(function(){var a=b(this);a.attr("data-type")=="email"&&(a=a.find("input, textarea"),a.val()=="no.reply@example.com"&&a.val(""))})})}},_validateCaptcha:function(a,c,d){c.length!=6?d(!1):b.get("/ValidateCaptcha.ashx",{key:a,answer:c},function(a){d(a=="true")})},_validateReCaptcha:function(a,c){b.get("/ValidateCaptcha.ashx",{key:Recaptcha.get_challenge(),answer:Recaptcha.get_response(),imageVerificationType:"recaptcha"},
function(b){b=="true"?a():c()})},_submitForm:function(){var a=this,c=b("#ReCaptchaAnswer",a.$element),d=b("#ReCaptchaChallenge",a.$element);a.hasReCAPTCHA&&1==c.length&&1==d.length?(c.val(Recaptcha.get_response()),d.val(Recaptcha.get_challenge()),a._validateReCaptcha(function(){a._submitFormInternal()},function(){b("."+a.options.fieldWrapperClass,a.$element).each(function(){var c=b(this);c.attr("data-type")=="recaptcha"&&a._switchState("invalid",c)});Recaptcha.reload()})):a._submitFormInternal()},
_submitFormInternal:function(){var f=this,d=this.options.formSubmittedClass,g=this.options.formDeliveredClass,j=this.options.formErrorClass,l=d+" "+g+" "+j,k=this.$element.find("input[type=submit], button");b.ajax({url:this.$element.attr("action"),type:"post",data:this.$element.serialize(),beforeSend:function(){f.$element.removeClass(l);f.$element.addClass(d);f.$element.find("."+f.options.fieldWrapperClass).removeClass(f.options.focusClass);k.attr("disabled","disabled")},complete:function(i){i&&(i.status>=
400||i.responseText&&i.responseText.indexOf("<?php")>=0)&&alert("Form PHP script is missing from web server, or PHP is not configured correctly on your web hosting provider. Check if the form PHP script has been uploaded correctly, then contact your hosting provider about PHP configuration.");f.$element.removeClass(d);var m=null;if(i&&i.responseText)try{m=c.parseJSON(i.responseText),m=m.FormProcessV2Response||m.FormResponse||m.MusePHPFormResponse||m}catch(n){}if(m&&m.success){f.$element.addClass(g);
if(m.redirect){a.location.href=m.redirect;return}f.$element[0].reset();f.hasCAPTCHA&&f.$element.find("input:not([type=submit]), textarea").each(function(){b(this).attr("disabled","disabled")});f.$element.find("."+f.options.notEmptyClass).each(function(){b(this).removeClass(f.options.notEmptyClass)})}else if(i=f._getFieldsWithError(m))for(m=0;m<i.length;m++)f._switchState("invalid",i[m]);else f.$element.addClass(j);f.hasCAPTCHA||k.removeAttr("disabled");f.hasReCAPTCHA&&Recaptcha.reload();f.hasReCAPTCHA2&&
("undefined"!=typeof reCaptchaV2Manager?reCaptchaV2Manager.reloadControls():"undefined"!=typeof grecaptcha&&"undefined"!=typeof muReCAPTCHA2Instances&&b("[data-type=recaptcha2]",f.$element).each(function(){var a=muReCAPTCHA2Instances[b(this).attr("id")];grecaptcha.reset(a)}))}})},_getFieldsWithError:function(a){if(!a||!a.error||!a.error.fields||!a.error.fields.length)return null;for(var c=[],d=0;d<a.error.fields.length;d++){var j=b('[name="'+a.error.fields[d].field+'"]',this.$element).parents("."+
this.options.fieldWrapperClass);1==j.length&&c.push(j)}return c},_validate:function(a){var b=a.attr("data-type")||"always-valid",c=a.find("input, textarea"),d=this.validationTypes[b],l=a.attr("data-required")==="true",k=this._isEmpty(a),d=d instanceof RegExp?Boolean(c.val().match(d)):d(a);if(l&&k)return this._switchState("required",a);b=="email"&&k&&c.val("no.reply@example.com");if(!d&&(l||!k))return this._switchState("invalid",a);return this._switchState("valid",a)},_switchState:function(a,c){var d=
c.attr("data-type"),j=this.options.validClass,l=this.options.invalidClass,k=this.options.requiredClass,i=this,m=function(a){var a=b(a.target),c;a.length&&(c=a.closest("."+i.options.fieldWrapperClass));c&&c.length&&i._validate(c)};c.removeClass(j+" "+l+" "+k);if(a=="required"||a=="invalid")return a=="invalid"?c.addClass(l):c.addClass(k),"recaptcha"!=d&&this.errorSensitivity!="low"&&(j=this.errorSensitivity=="high"?"keyup":"blur",c.data("error-state")||(c.data("error-state",!0),c.find("input, textarea").bind(j,
m))),!1;c.data("error-state")&&(this.errorSensitivity=="high"?this.event!="keyup"&&c.data("error-state",!1).find("input, textarea").unbind("keyup",m):this.errorSensitivity=="medium"&&this.event!="blur"&&c.data("error-state",!1).find("input, textarea").unbind("blur",m));if("checkbox"==d||"radio"==d)if((m=this._getGroupField(c))&&m.hasClass(k)){c.addClass(k);return}c.addClass(j);return!0}});b.fn.wpForm=function(a){new d.Widget.Form(this,a);return this}})(c,WebPro,window,document)});
;(function(){if(!("undefined"==typeof Muse||"undefined"==typeof Muse.assets)){var a=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]==b)return c;return-1}(Muse.assets.required,"webpro.js");if(-1!=a){Muse.assets.required.splice(a,1);for(var a=document.getElementsByTagName("meta"),b=0,c=a.length;b<c;b++){var d=a[b];if("generator"==d.getAttribute("name")){"2018.0.0.379"!=d.getAttribute("content")&&Muse.assets.outOfDate.push("webpro.js");break}}}}})();
