PageSourceSearch

https://www.sloyalty.com/wp-content/plugins/bwp-minify/min/?f=wp-i…/shortcodes-scripts.min.js&ver=1790445731

js sloyalty.com collected 2026-10-02 14:42:48 UTC 175,198 bytes, 2,521 lines download raw bytes

vendor: 19,104 bytes, lines 1-116
1/*! jQuery UI - v1.13.3 - 2024-04-26
2* https://jqueryui.com
3* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
4* Copyright jQuery Foundation and other contributors; Licensed MIT */
5!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3",
6/*!
7 * jQuery UI :data 1.13.3
8 * https://jqueryui.com
9 *
10 * Copyright OpenJS Foundation and other contributors
11 * Released under the MIT license.
12 * https://jquery.org/license
13 */
14x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
15/*!
16 * jQuery UI Disable Selection 1.13.3
17 * https://jqueryui.com
18 *
19 * Copyright OpenJS Foundation and other contributors
20 * Released under the MIT license.
21 * https://jquery.org/license
22 */
23x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
24/*!
25 * jQuery UI Focusable 1.13.3
26 * https://jqueryui.com
27 *
28 * Copyright OpenJS Foundation and other contributors
29 * Released under the MIT license.
30 * https://jquery.org/license
31 */
32x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
33/*!
34 * jQuery UI Form Reset Mixin 1.13.3
35 * https://jqueryui.com
36 *
37 * Copyright OpenJS Foundation and other contributors
38 * Released under the MIT license.
39 * https://jquery.org/license
40 */
41x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
42/*!
43 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3
44 * https://jqueryui.com
45 *
46 * Copyright OpenJS Foundation and other contributors
47 * Released under the MIT license.
48 * https://jquery.org/license
49 *
50 */
51x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),
52/*!
53 * jQuery UI Keycode 1.13.3
54 * https://jqueryui.com
55 *
56 * Copyright OpenJS Foundation and other contributors
57 * Released under the MIT license.
58 * https://jquery.org/license
59 */
60x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
61/*!
62 * jQuery UI Labels 1.13.3
63 * https://jqueryui.com
64 *
65 * Copyright OpenJS Foundation and other contributors
66 * Released under the MIT license.
67 * https://jquery.org/license
68 */
69x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
70/*!
71 * jQuery UI Position 1.13.3
72 * https://jqueryui.com
73 *
74 * Copyright OpenJS Foundation and other contributors
75 * Released under the MIT license.
76 * https://jquery.org/license
77 *
78 * https://api.jqueryui.com/position/
79 */
80W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;n<e.collisionWidth?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;o<e.collisionHeight?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
81/*!
82 * jQuery UI Scroll Parent 1.13.3
83 * https://jqueryui.com
84 *
85 * Copyright OpenJS Foundation and other contributors
86 * Released under the MIT license.
87 * https://jquery.org/license
88 */
89x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
90/*!
91 * jQuery UI Tabbable 1.13.3
92 * https://jqueryui.com
93 *
94 * Copyright OpenJS Foundation and other contributors
95 * Released under the MIT license.
96 * https://jquery.org/license
97 */
98x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
99/*!
100 * jQuery UI Unique ID 1.13.3
101 * https://jqueryui.com
102 *
103 * Copyright OpenJS Foundation and other contributors
104 * Released under the MIT license.
105 * https://jquery.org/license
106 */
107x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
108/*!
109 * jQuery UI Widget 1.13.3
110 * https://jqueryui.com
111 *
112 * Copyright OpenJS Foundation and other contributors
113 * Released under the MIT license.
114 * https://jquery.org/license
115 */
116var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)}
116,_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})});
117;/*! This file is auto-generated */
118"use strict";var wp;(wp||={}).hooks=(()=>{var v=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var w=(e,n)=>{for(var s in n)v(e,s,{get:n[s],enumerable:!0})},D=(e,n,s,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of g(n))!I.call(e,t)&&t!==s&&v(e,t,{get:()=>n[t],enumerable:!(r=S(n,t))||r.enumerable});return e};var T=e=>D(v({},"__esModule",{value:!0}),e);var le={};w(le,{actions:()=>ae,addAction:()=>J,addFilter:()=>K,applyFilters:()=>N,applyFiltersAsync:()=>ee,createHooks:()=>F,currentAction:()=>te,currentFilter:()=>re,defaultHooks:()=>b,didAction:()=>ie,didFilter:()=>se,doAction:()=>X,doActionAsync:()=>Y,doingAction:()=>ne,doingFilter:()=>oe,filters:()=>ce,hasAction:()=>P,hasFilter:()=>Q,removeAction:()=>L,removeAllActions:()=>U,removeAllFilters:()=>W,removeFilter:()=>M});function z(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}var m=z;function E(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}var f=E;function Z(e,n){return function(r,t,a,i=10){let c=e[n];if(!f(r)||!m(t))return;if(typeof a!="function"){console.error("The hook callback must be a function.");return}if(typeof i!="number"){console.error("If specified, the hook priority must be a number.");return}let l={callback:a,priority:i,namespace:t};if(c[r]){let o=c[r].handlers,d;for(d=o.length;d>0&&!(i>=o[d-1].priority);d--);d===o.length?o[d]=l:o.splice(d,0,l),c.__current.forEach(h=>{h.name===r&&h.currentIndex>=d&&h.currentIndex++})}else c[r]={handlers:[l],runs:0};r!=="hookAdded"&&e.doAction("hookAdded",r,t,a,i)}}var H=Z;function C(e,n,s=!1){return function(t,a){let i=e[n];if(!f(t)||!s&&!m(a))return;if(!i[t])return 0;let c=0;if(s)c=i[t].handlers.length,i[t]={runs:i[t].runs,handlers:[]};else{let l=i[t].handlers;for(let o=l.length-1;o>=0;o--)l[o].namespace===a&&(l.splice(o,1),c++,i.__current.forEach(d=>{d.name===t&&d.currentIndex>=o&&d.currentIndex--}))}return t!=="hookRemoved"&&e.doAction("hookRemoved",t,a),c}}var p=C;function O(e,n){return function(r,t){let a=e[n];return typeof t<"u"?r in a&&a[r].handlers.some(i=>i.namespace===t):r in a}}var _=O;function j(e,n,s,r){return function(a,...i){let c=e[n];c[a]||(c[a]={handlers:[],runs:0}),c[a].runs++;let l=c[a].handlers;if(!l||!l.length)return s?i[0]:void 0;let o={name:a,currentIndex:0};async function d(){try{c.__current.add(o);let u=s?i[0]:void 0;for(;o.currentIndex<l.length;
118)u=await l[o.currentIndex].callback.apply(null,i),s&&(i[0]=u),o.currentIndex++;return s?u:void 0}finally{c.__current.delete(o)}}function h(){try{c.__current.add(o);let u=s?i[0]:void 0;for(;o.currentIndex<l.length;)u=l[o.currentIndex].callback.apply(null,i),s&&(i[0]=u),o.currentIndex++;return s?u:void 0}finally{c.__current.delete(o)}}return(r?d:h)()}}var A=j;function $(e,n){return function(){let r=e[n];return Array.from(r.__current).at(-1)?.name??null}}var y=$;function V(e,n){return function(r){let t=e[n];return typeof r>"u"?t.__current.size>0:Array.from(t.__current).some(a=>a.name===r)}}var k=V;function q(e,n){return function(r){let t=e[n];if(f(r))return t[r]&&t[r].runs?t[r].runs:0}}var x=q;var B=class{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=H(this,"actions"),this.addFilter=H(this,"filters"),this.removeAction=p(this,"actions"),this.removeFilter=p(this,"filters"),this.hasAction=_(this,"actions"),this.hasFilter=_(this,"filters"),this.removeAllActions=p(this,"actions",!0),this.removeAllFilters=p(this,"filters",!0),this.doAction=A(this,"actions",!1,!1),this.doActionAsync=A(this,"actions",!1,!0),this.applyFilters=A(this,"filters",!0,!1),this.applyFiltersAsync=A(this,"filters",!0,!0),this.currentAction=y(this,"actions"),this.currentFilter=y(this,"filters"),this.doingAction=k(this,"actions"),this.doingFilter=k(this,"filters"),this.didAction=x(this,"actions"),this.didFilter=x(this,"filters")}};function G(){return new B}var F=G;var b=F(),{addAction:J,addFilter:K,removeAction:L,removeFilter:M,hasAction:P,hasFilter:Q,removeAllActions:U,removeAllFilters:W,doAction:X,doActionAsync:Y,applyFilters:N,applyFiltersAsync:ee,currentAction:te,currentFilter:re,doingAction:ne,doingFilter:oe,didAction:ie,didFilter:se,actions:ae,filters:ce}=b;return T(le);})();
119
120;(()=>{var e={6246(){{const e="beaverbuilder",o=window.jQuery;o(document).on("ajaxComplete",function(t,n,i){if(!i.data||-1===i.data.indexOf("action=fl_builder_email")&&-1===i.data.indexOf("action=fl_builder_subscribe_form_submit"))return;let r;try{r=void 0!==n.responseJSON?n.responseJSON:JSON.parse(n.responseText)}catch(e){return}const s=r.data||{};if(!1!==s.error&&s.error)return;const a=new URLSearchParams(i.data),p=a.get("node_id");if(!p)return;const u=o(".fl-node-"+p).find(".fl-contact-form, .fl-subscribe-form").first();if(!u.length)return;const c=a.get("action");let l="unknown";"fl_builder_email"===c?l="contact":"fl_builder_subscribe_form_submit"===c&&(l="subscribe");const d=l+"_"+p,m=l+"_"+p;window.PUM.integrations.formSubmission(u,{formProvider:e,formId:d,formInstanceId:m})})}},4371(){{const e="bitform",o=window.jQuery;o(function(){document.querySelectorAll('[id^="form-bitforms"]').forEach(function(t){t.addEventListener("bf-form-submit-success",function(n){if(!n.detail||!n.detail.formId)return;const i=n.detail.formId.replace(/^bitforms_/,"").split("_"),r=i[0],s=i[2]||null;window.PUM.integrations.formSubmission(o(t),{formProvider:e,formId:r,formInstanceId:s})})})})}},507(){{const e="bricksbuilder",o=window.jQuery;o(document).on("bricks/form/success",function(t){const n=t.detail.elementId,i=t.detail.formData,r=o('[data-element-id="'+n+'"]');if(!r.length)return;const s=n,a=r.index('[data-element-id^="'+n.replace(/\d+$/,"")+'"]')+1;window.PUM.integrations.formSubmission(r,{formProvider:e,formId:s,formInstanceId:a,extras:{formData:i,elementId:n,bricksEvent:t.detail}})})}},8197(){{const e="calderaforms";let o;const t=(e,t)=>o=t.$form;(0,window.jQuery)(document).on("cf.ajax.request",t).on("cf.submission",function(t,n){if("complete"===n.data.status||"success"===n.data.status){const[t,n=null]=o.attr("id").split("_");window.PUM.integrations.formSubmission(o,{formProvider:e,formId:t,formInstanceId:n,extras:{state:Object.prototype.hasOwnProperty.call(window.cfstate,t)?window.cfstate[t]:null}})}})}},7003(){{const e="contactform7",o=window.jQuery;o(document).on("wpcf7mailsent",function(t,n){const i=t.detail.contactFormId,r=o(t.target),s=(t.detail.id||t.detail.unitTag).split("-").pop().replace("o","");window.PUM.integrations.formSubmission(r,{formProvider:e,formId:i,formInstanceId:s,extras:{details:n}});const a=r.find("input.wpcf7-pum"),p=!!a.length&&JSON.parse(a.val());"object"==typeof p&&void 0!==p.closedelay&&p.closedelay.toString().length>=3&&(p.closedelay=p.closedelay/1e3),window.PUM.forms.success(r,p)})}},4903(){{const e="elementor",o=window.jQuery;o(document).on("submit_success",".elementor-form",function(t,n){const i=o(this)[0],r=o(this).closest("[data-id]"),s=r.length?r.attr("data-id"):"unknown";window.PUM.integrations.formSubmission(i,{formProvider:e,formId:s}
120)})}},3739(){{const e="fluentforms",o=window.jQuery;o(document).on("fluentform_submission_success",function(t,n){if(!n||!n.config||!n.config.id)return;const i=n.config.id;let r=n.form;if(r&&r.length||(r=o("#fluentform_"+i)),!r||!r.length)return;const s=r.data("form_instance")||null;window.PUM.integrations.formSubmission(r,{formProvider:e,formId:i,formInstanceId:s})})}},3068(){{const e="formidableforms",o=window.jQuery;o(document).on("frmFormComplete",function(t,n,i){const r=o(n),s=r.find('input[name="form_id"]').val(),a=window.PUM.getPopup(r.find('input[name="pum_form_popup_id"]').val());window.PUM.integrations.formSubmission(r,{popup:a,formProvider:e,formId:s,extras:{response:i}})})}},6437(){{const e="forminator",o=window.jQuery;o(document).on("forminator:form:submit:success",function(t,n){const i=o(t.target),r=i.attr("data-form-id"),s=i.attr("data-render-id");window.PUM.integrations.formSubmission(i,{formProvider:e,formId:r,formInstanceId:s,extras:{formData:n}})})}},6293(){{const e="gravityforms",o=window.jQuery,t={};o(document).on("gform_confirmation_loaded",function(n,i){const r=o("#gform_confirmation_wrapper_"+i+",#gforms_confirmation_message_"+i)[0];window.PUM.integrations.formSubmission(r,{formProvider:e,formId:i}),window.PUM.forms.success(r,t[i]||{})}),o(function(){o(".gform_wrapper > form").each(function(){const e=o(this),n=e.attr("id").replace("gform_",""),i=e.find("input.gforms-pum"),r=!!i.length&&JSON.parse(i.val());r&&"object"==typeof r&&("object"==typeof r&&void 0!==r.closedelay&&r.closedelay.toString().length>=3&&(r.closedelay=r.closedelay/1e3),t[n]=r)})})}},149(){{const e="happyforms",o=window.jQuery;o(document).on("happyforms.submitted",function(t,n){if(!n||!n.success||!n.data)return;const i=o(t.target);if(!i.length)return;const r=i.find('[name="happyforms_form_id"]').val(),s=o("form.happyforms-form").filter(function(){return o(this).find('[name="happyforms_form_id"]').val()===r}).index(i)+1;window.PUM.integrations.formSubmission(i,{formProvider:e,formId:r,formInstanceId:s})})}},5606(){{const e="htmlforms",o=window.jQuery;o(()=>{void 0!==window.html_forms&&window.html_forms.on("success",function(t){const n=t.getAttribute("data-id")||t.id?.replace("hf-form-","")||"unknown",i=o(".hf-form").filter(function(){return o(this).attr("data-id")===n||o(this).attr("id")?.replace("hf-form-","")===n}).index(t)+1;window.PUM.integrations.formSubmission(o(t),{formProvider:e,formId:n,formInstanceId:i})})})}},9764(){{const e="kaliForms",o=window.jQuery;document.addEventListener("kaliformProcessCompleted",function(t){const n=t.detail;if(!n||!n.form)return;const i=o(n.form),r=i.data("form-id"),s=i.attr("id");window.PUM.integrations.formSubmission(i,{formProvider:e,formId:r,formInstanceId:s})}),o(document).on("submit","form[data-form-id]",function(t){const n=o(this),i=n.attr("class");if(!i||!i.includes("kali-form"))return;const r=n.data("form-id"),s=n.attr("id"),a=function(o){o.detail&&o.detail.formId===r&&(window.PUM.integrations.formSubmission(n,{formProvider:e,formId:r,formInstanceId:s}),document.removeEventListener("kaliFormSuccess",a))};document.addEventListener("kaliFormSuccess",a),setTimeout(function(){document.removeEventListener("kaliFormSuccess",a)},3e4)}),o(document).on("pumAfterOpen",".pum",function(){const e=o(this),t=window.PUM.getSetting(e,"id");t&&e.find("form[data-form-id]").each(function(){const e=o(this);if(e.find('input[name="pum_form_popup_id"]').length)return;const n=e.attr("class");n&&n.includes("kali-form")&&e.append(o("<input>",{type:"hidden",name:"pum_form_popup_id",value:t}))})})}},3561(){{const e="mc4wp",o=window.jQuery;o(()=>{"undefined"!=typeof mc4wp&&mc4wp.forms.on("success",function(t,n){const i=o(t.element),r=t.id,s=o(".mc4wp-form-"+t.id).index(i)+1;window.PUM.integrations.formSubmission(i,{formProvider:e,formId:r,formInstanceId:s,extras:{form:t,data:n}})})})}},331(){!function(e){const o='form.tnp-subscription, form.tnp-ajax, form[action*="newsletter"]',t=(o,t)=>{const n=o.parentElement;if(!o||o.dataset.pumNewsletterObserved)return;o.dataset.pumNewsletterObserved="true";const i=new MutationObserver(()=>{const r=(e=>!e.querySelector('input[type="text"], input[type="email"], input[type="submit"], button[type="submit"]'))(o),s=n&&!n.contains(o)&&!n.querySelector("form");if(r||s){i.disconnect(),delete o.dataset.pumNewsletterObserved;const s=r?o:n;setTimeout(()=>((o,t)=>{o.dataset.pumNewsletterHandled||(o.dataset.pumNewsletterHandled="true",window.PUM&&window.PUM.integrations&&window.PUM.integrations.formSubmission(e(o),{formProvider:"newsletter",formId:null,formInstanceId:null,extras:{popupId:t}}
120))})(s,t),50)}});i.observe(o,{childList:!0,subtree:!0}),n&&i.observe(n,{childList:!0,subtree:!1}),setTimeout(()=>{i.disconnect(),delete o.dataset.pumNewsletterObserved},3e4)},n=(n,i)=>{n.find(o).each(function(){const o=e(this);o.find('input[name="pum_form_popup_id"]').length||(o.append(e("<input>",{type:"hidden",name:"pum_form_popup_id",value:i})),t(this,i))})};e(()=>{window.PUM&&(document.querySelectorAll(o).forEach(o=>{const n=e(o).closest(".pum"),i=n.length&&window.PUM?window.PUM.getSetting(n,"id"):null;t(o,i)}),e(document).on("pumAfterOpen",".pum",function(){const o=e(this),t=window.PUM.getSetting(o,"id");t&&n(o,t)}))})}(window.jQuery)},9115(){{const e="ninjaforms",o=window.jQuery;let t=!1;const n=()=>{"undefined"!=typeof Marionette&&"undefined"!=typeof nfRadio&&!1===t&&(t=Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.popupMaker)},popupMaker:function(t,n,i,r){const s={};if(t.errors&&t.errors.length)return;const a=o("#nf-form-"+r+"-cont"),[p,u=null]=r.split("_");window.PUM.integrations.formSubmission(a,{formProvider:e,formId:p,formInstanceId:u,extras:{response:t}}),t.data&&t.data.actions&&(s.openpopup=void 0!==t.data.actions.openpopup,s.openpopup_id=s.openpopup?parseInt(t.data.actions.openpopup):0,s.closepopup=void 0!==t.data.actions.closepopup,s.closedelay=s.closepopup?parseInt(t.data.actions.closepopup):0,s.closepopup&&t.data.actions.closedelay&&(s.closedelay=parseInt(t.data.actions.closedelay))),window.PUM.forms.success(a,s)}}),new t)};o(n)}},5444(){{const e="wpforms",o=window.jQuery;o(document).on("wpformsAjaxSubmitSuccess",".wpforms-ajax-form",function(t,n){const i=o(this),r=i.data("formid"),s=o("form#"+i.attr("id")).index(i)+1;window.PUM.integrations.formSubmission(i,{formProvider:e,formId:r,formInstanceId:s})})}},3271(){{const e="wsforms",o=window.jQuery;o(document).on("wsf-submit-success wsf-save-success",function(t,n,i,r,s,a){window.PUM.integrations.formSubmission(o(s),{formProvider:e,formId:i,formInstanceId:r})})}},4409(){!function(e,o){"use strict";e.fn.popmake.version=1.21,e.fn.popmake.last_open_popup=null,window.ajaxurl=window.pum_vars.ajaxurl,window.PUM.initialized=!1,window.PUM.init=function(){e(o).trigger("pumBeforeInit"),e(".pum").popmake(),window.PUM.initialized=!0,e(o).trigger("pumInitialized"),"object"==typeof pum_vars.form_success&&(pum_vars.form_success=e.extend({popup_id:null,settings:{}}),PUM.forms.success(pum_vars.form_success.popup_id,pum_vars.form_success.settings)),PUM.integrations.init()},e(function(){if(PUM.hooks.applyFilters("pum.shouldInit",!0)){var e=PUM.hooks.applyFilters("pum.initHandler",PUM.init),o=PUM.hooks.applyFilters("pum.initPromises",[]);Promise.all(o).then(e)}}),e(".pum").on("pumInit",function(){var o=PUM.getPopup(this),t=PUM.getSetting(o,"id"),n=o.find("form");if(n.length){var i=e("<input>",{type:"hidden",name:"pum_form_popup_id",value:t});n.append(i)}}).on("pumAfterClose",window.PUM.actions.stopIframeVideosPlaying),e(".pum .pum-cta a, .pum a.pum-cta").on("click",function(){PUM.getPopup(this).trigger("pumConversion")})}(jQuery,document)},1452(){!function(e){"use strict";void 0===e.fn.on&&(e.fn.on=function(e,o,t){return this.delegate(o,e,t)}),void 0===e.fn.off&&(e.fn.off=function(e,o,t){return this.undelegate(o,e,t)}),void 0===e.fn.bindFirst&&(e.fn.bindFirst=function(o,t){var n,i,r=e(this);r.unbind(o,t),r.bind(o,t),(i=(n=e._data(r[0]).events)[o]).unshift(i.pop()),n[o]=i}),void 0===e.fn.outerHtml&&(e.fn.outerHtml=function(){var o=e(this).clone();return e("<div/>").append(o).html()}),void 0===e.fn.isInViewport&&(e.fn.isInViewport=function(){var o=e(this).offset().top,t=o+e(this).outerHeight(),n=e(window).scrollTop(),i=n+e(window).height();return t>n&&o<i}),void 0===Date.now&&(Date.now=function(){return(new Date).getTime()})}(jQuery)},4927(){var e;!function(o,t){"use strict";var n,i,r="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",s=".pum:not(.pum-accessibility-disabled)";e={forceFocus:function(o){i&&i.length&&!i[0].contains(o.target)&&(o.stopPropagation(),e.setFocusToFirstItem())},trapTabKey:function(e){if(9===e.keyCode){var t=i.find(".pum-container *").filter(r).filter(":visible"),n=o(":focus"),s=t.length,a=t.index(n);e.shiftKey?0===a&&(t.get(s-1).focus(),e.preventDefault()):a===s-1&&(t.get(0).focus(),e.preventDefault())}},setFocusToFirstItem:function(){i.find(".pum-container *").filter(r).filter(":visible").first().trigger("focus")},initiateFocusLock:function(){var r=PUM.getPopup(this),s=o(":focus");
120r.has(s).length||(n=s),i=r.on("keydown.pum_accessibility",e.trapTabKey),o(t).one("focusin.pum_accessibility",e.forceFocus),e.setFocusToFirstItem()}},o(t).on("pumInit",s,function(){PUM.getPopup(this).find("[tabindex]").each(function(){var e=o(this);e.data("tabindex",e.attr("tabindex")).prop("tabindex","0")})}).on("pumBeforeOpen",s,function(){}).on("pumAfterOpen",s,e.initiateFocusLock).on("pumAfterOpen",s,function(){var e=PUM.getPopup(this);i=e.attr("aria-modal","true")}).on("pumBeforeClose",s,function(){}).on("pumAfterClose",s,function(){PUM.getPopup(this).off("keydown.pum_accessibility").attr("aria-modal","false"),void 0!==n&&n.length&&n.trigger("focus"),i=null,o(t).off("focusin.pum_accessibility")}).on("pumSetupClose",s,function(){}).on("pumOpenPrevented",s,function(){}).on("pumClosePrevented",s,function(){}).on("pumBeforeReposition",s,function(){})}(jQuery,document)},1095(){!function(e){"use strict";e.fn.popmake.last_open_trigger=null,e.fn.popmake.last_close_trigger=null,e.fn.popmake.conversion_trigger=null;var o=!(void 0===pum_vars.analytics_api||!pum_vars.analytics_api),t=window.pum.hooks.applyFilters("pum.analyticsBeaconDebounce",400),n=[],i=[],r=null;function s(t,n){var i=function(){var e=o?pum_vars.analytics_api:pum_vars.ajaxurl;return e?(o&&(e+=window.pum.hooks.applyFilters("pum.analyticsBeaconRoute","/"+pum_vars.analytics_route+"/")),e):""}();if(!i)return!1;if(o||(t.action="pum_analytics"),"sendBeacon"in navigator)try{var r=new FormData;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var a=t[s];"object"==typeof a&&null!==a&&(a=JSON.stringify(a)),r.append(s,a)}return navigator.sendBeacon(i,r)&&"function"==typeof n&&n(),!0}catch(e){console.warn("sendBeacon failed, falling back to image beacon:",e)}var p=new Image;return e(p).on("error success load done","function"==typeof n?n:function(){}),p.src=i+"?"+e.param(t),!0}function a(){if(r&&(clearTimeout(r),r=null),n.length){var e=n,o=i;n=[],i=[];var t=function(){for(var e=0;e<o.length;e++)"function"==typeof o[e]&&o[e]()};1!==e.length?s({events:e,_cache:+new Date},t):s(e[0],t)}}window.PUM_Analytics={beacon:function(o,s){var p=window.pum.hooks.applyFilters("pum.AnalyticsBeaconData",e.extend(!0,{event:"open",pid:null,_cache:+new Date},o));n.push(p),i.push("function"==typeof s?s:null),r&&clearTimeout(r),r=setTimeout(a,t)},flush:a},window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&a()}),pum_vars.analytics_enabled&&(e(document).on("pumAfterOpen.core_analytics",".pum",function(){var o=window.PUM.getPopup(this),t={pid:parseInt(o.popmake("getSettings").id,10)||null};t.pid>0&&!e("body").hasClass("single-popup")&&window.PUM_Analytics.beacon(t)}),e(function(){window.PUM.coreFormAnalyticsHandler=function(o,t){if(!1!==t.ajax&&0!==t.popup.length){var n={pid:parseInt(t.popup.popmake("getSettings").id,10)||null,event:"conversion",eventData:{type:"form_submission",formProvider:t.formProvider||null,formId:t.formId||null,formKey:t.formKey||null,formInstanceId:t.formInstanceId||null}};n.pid>0&&!e("body").hasClass("single-popup")&&window.PUM_Analytics.beacon(n)}},window.PUM.hooks.addAction("pum.integration.form.success",window.PUM.coreFormAnalyticsHandler)}))}(jQuery)},8684(){!function(e,o,t){"use strict";function n(e){var o=e.popmake("getContainer"),t={display:"",opacity:""};e.css(t),o.css(t)}function i(e){return e.overlay_disabled?0:e.animation_speed/2}function r(e){return e.overlay_disabled?parseInt(e.animation_speed):e.animation_speed/2}e.fn.popmake.methods.animate_overlay=function(o,t,n){return PUM.getPopup(this).popmake("getSettings").overlay_disabled?e.fn.popmake.overlay_animations.none.apply(this,[t,n]):e.fn.popmake.overlay_animations[o]?e.fn.popmake.overlay_animations[o].apply(this,[t,n]):(window.console&&console.warn("Animation style "+o+" does not exist."),this)},e.fn.popmake.methods.animate=function(o){return e.fn.popmake.animations[o]?e.fn.popmake.animations[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Animation style "+o+" does not exist."),this)},e.fn.popmake.animations={none:function(e){var o=PUM.getPopup(this);return o.popmake("getContainer").css({opacity:1,display:"block"}),o.popmake("animate_overlay","none",0,function(){e!==t&&e()}),this},slide:function(e){var o=PUM.getPopup(this),s=o.popmake("getContainer"),a=o.popmake("getSettings"),p=o.popmake("animation_origin",a.animation_origin);return n(o),s.position(p),o.popmake("animate_overlay","fade",i(a),function(){s.popmake("reposition",function(o){s.animate(o,r(a),"swing",function(){e!==t&&e()})})}),this},fade:function(e){var o=PUM.getPopup(this),s=o.popmake("getContainer"),a=o.popmake("getSettings");return n(o),o.css({opacity:0,display:"block"}),s.css({opacity:0,display:"block"}),o.popmake("animate_overlay","fade",i(a),function(){s.animate({opacity:1},r(a),"swing",function(){e!==t&&e()})}),this},fadeAndSlide:function(e){var o=PUM.getPopup(this),s=o.popmake("getContainer"),a=o.popmake("getSettings"),p=o.popmake("animation_origin",a.animation_origin);return n(o),o.css({display:"block",opacity:0}
120),s.css({display:"block",opacity:0}),s.position(p),o.popmake("animate_overlay","fade",i(a),function(){s.popmake("reposition",function(o){o.opacity=1,s.animate(o,r(a),"swing",function(){e!==t&&e()})})}),this},grow:function(o){return e.fn.popmake.animations.fade.apply(this,arguments)},growAndSlide:function(o){return e.fn.popmake.animations.fadeAndSlide.apply(this,arguments)}},e.fn.popmake.overlay_animations={none:function(e,o){PUM.getPopup(this).css({opacity:1,display:"block"}),"function"==typeof o&&o()},fade:function(e,o){PUM.getPopup(this).css({opacity:0,display:"block"}).animate({opacity:1},e,"swing",o)},slide:function(e,o){PUM.getPopup(this).slideDown(e,o)}}}(jQuery,document)},4539(){!function(e,o){"use strict";e(o).on("pumInit",".pum",function(){e(this).popmake("getContainer").trigger("popmakeInit")}).on("pumBeforeOpen",".pum",function(){e(this).popmake("getContainer").addClass("active").trigger("popmakeBeforeOpen")}).on("pumAfterOpen",".pum",function(){e(this).popmake("getContainer").trigger("popmakeAfterOpen")}).on("pumBeforeClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeClose")}).on("pumAfterClose",".pum",function(){e(this).popmake("getContainer").removeClass("active").trigger("popmakeAfterClose")}).on("pumSetupClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeSetupClose")}).on("pumOpenPrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventOpen").removeClass("active")}).on("pumClosePrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventClose")}).on("pumBeforeReposition",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeReposition")})}(jQuery,document)},3263(){!function(e){"use strict";e.fn.popmake.callbacks={reposition_using:function(o){e(this).css(o)}}}(jQuery,document)},1637(){!function(e){"use strict";var o,t=function(){return void 0===o&&(o="undefined"!=typeof MobileDetect?new MobileDetect(window.navigator.userAgent):{phone:function(){return!1},tablet:function(){return!1}}),o};e.extend(e.fn.popmake.methods,{checkConditions:function(){var o,n,i,r,s,a=PUM.getPopup(this),p=a.popmake("getSettings"),u=!0;if(p.disable_on_mobile&&t().phone())return!1;if(p.disable_on_tablet&&t().tablet())return!1;if(p.conditions.length)for(n=0;p.conditions.length>n;n++){for(r=p.conditions[n],o=!1,i=0;r.length>i;i++)if("boolean"!=typeof r[i]){if((!(s=e.extend({},{not_operand:!1},r[i])).not_operand&&a.popmake("checkCondition",s)||s.not_operand&&!a.popmake("checkCondition",s))&&(o=!0),e(this).trigger("pumCheckingCondition",[o,s]),o)break}else if(r[i]){o=!0;break}o||(u=!1)}return u},checkCondition:function(o){var t=o.target||null,n=o.settings||o;if(!t)return console.warn("Condition type not set."),!1;const r=i(t);return r?r.apply(this,[n,o]):e.fn.popmake.conditions[t]?e.fn.popmake.conditions[t].apply(this,[o]):window.console?(console.warn("Condition "+t+" does not exist."),!0):void 0}});let n={};const i=e=>(Object.keys(n).length||(n=window.PUM.hooks.applyFilters("popupMaker.conditionCallbacks",{})),n)[e]??!1;e.fn.popmake=e.fn.popmake||{},e.fn.popmake.conditions=e.fn.popmake.conditions||{}}(jQuery,document)},729(){!function(e){"use strict";e.extend(e.fn.popmake,{cookie:function(o){function t(n,i,r){var s,a=new Date;if("undefined"!=typeof document){if(arguments.length>1){switch(typeof(r=e.extend({path:pum_vars.home_url},t.defaults,r)).expires){case"number":a.setMilliseconds(a.getMilliseconds()+864e5*r.expires),r.expires=a;break;case"string":a.setTime(1e3*e.fn.popmake.utilities.strtotime("+"+r.expires)),r.expires=a}try{s=JSON.stringify(i),/^[\{\[]/.test(s)&&(i=s)}catch(e){}return i=o.write?o.write(i,n):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[n,"=",i,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}n||(s={});for(var p=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,c=0;c<p.length;c++){var l=p[c].split("="),d=l.slice(1).join("=");'"'===d.charAt(0)&&(d=d.slice(1,-1));try{var m=l[0].replace(u,decodeURIComponent);if(d=o.read?o.read(d,m):o(d,m)||d.replace(u,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(e){}if(n===m){s=d;break}n||(s[m]=d)}catch(e){}}return s}}return void 0===o&&(o=function(){}),t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={domain:pum_vars.cookie_domain?pum_vars.cookie_domain:""},t.remove=function(o,n){t(o,"",e.extend({},n,{expires:-1,path:""})),t(o,"",e.extend({},n,{expires:-1}))},t.process=function(e,o,n,i){return arguments.length>3&&"object"!=typeof arguments[2]&&void 0!==o?t.apply(t,[e,o,{expires:n,path:i}]):t.apply(t,[].slice.call(arguments,[0,2]))},t.withConverter=e.fn.popmake.cookie,t}()}),window.pm_cookie=e.pm_cookie=e.fn.popmake.cookie.process,window.pm_cookie_json=e.pm_cookie_json=e.fn.popmake.cookie.getJSON,window.pm_remove_cookie=e.pm_remove_cookie=e.fn.popmake.cookie.remove}(jQuery)},5404(){!function(e,o,t){"use strict";var n=function(o){e.pm_cookie(o.name,!0,o.session?null:o.time,o.path?pum_vars.home_url||"/":null),pum.hooks.doAction("popmake.setCookie",o)};e.extend(e.fn.popmake.methods,{addCookie:function(o){return pum.hooks.doAction("popmake.addCookie",arguments),e.fn.popmake.cookies[o]?e.fn.popmake.cookies[o].apply(this,Array.prototype.slice.call(arguments,1
120)):(window.console&&console.warn("Cookie type "+o+" does not exist."),this)},setCookie:n,checkCookies:function(o){var n,i=!1;if(o.cookie_name===t||null===o.cookie_name||""===o.cookie_name)return!1;switch(typeof o.cookie_name){case"object":case"array":for(n=0;o.cookie_name.length>n;n+=1)e.pm_cookie(o.cookie_name[n])!==t&&(i=!0);break;case"string":e.pm_cookie(o.cookie_name)!==t&&(i=!0)}return pum.hooks.doAction("popmake.checkCookies",o,i),i}}),e.fn.popmake.cookies=e.fn.popmake.cookies||{},e.extend(e.fn.popmake.cookies,{on_popup_open:function(e){var o=PUM.getPopup(this);o.on("pumAfterOpen",function(){o.popmake("setCookie",e)})},on_popup_close:function(e){var o=PUM.getPopup(this);o.on("pumBeforeClose",function(){o.popmake("setCookie",e)})},on_popup_conversion:function(e){var o=PUM.getPopup(this);o.on("pumConversion",function(){o.popmake("setCookie",e)})},form_submission:function(o){var t=PUM.getPopup(this);o=e.extend({form:"",formInstanceId:"",only_in_popup:!1},o),PUM.hooks.addAction("pum.integration.form.success",function(e,n){o.form.length&&PUM.integrations.checkFormKeyMatches(o.form,o.formInstanceId,n)&&(o.only_in_popup&&n.popup.length&&n.popup.is(t)||!o.only_in_popup)&&t.popmake("setCookie",o)})},manual:function(e){var o=PUM.getPopup(this);
120o.on("pumSetCookie",function(){o.popmake("setCookie",e)})},form_success:function(e){var o=PUM.getPopup(this);o.on("pumFormSuccess",function(){o.popmake("setCookie",e)})},pum_sub_form_success:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},pum_sub_form_already_subscribed:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},ninja_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)},cf7_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)},gforms_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)}}),e(o).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings").cookies||[],n=null;if(t.length)for(e=0;t.length>e;e+=1)n=t[e],o.popmake("addCookie",n.event,n.settings)}),e(function(){var o=e(".pum-cookie");o.each(function(){var t=e(this),i=o.index(t),r=t.data("cookie-args");t.data("only-onscreen")?t.isInViewport()&&t.is(":visible")?n(r):e(window).on("scroll.pum-cookie-"+i,e.fn.popmake.utilities.throttle(function(o){t.isInViewport()&&t.is(":visible")&&(n(r),e(window).off("scroll.pum-cookie-"+i))},100)):n(r)})})}(jQuery,document)},4748(){var e,o=!1;!function(t,n){if(n=window.pum_vars||{debug_mode:!1},(o=void 0!==n.debug_mode&&n.debug_mode)||-1===window.location.href.indexOf("pum_debug")||(o=!0),o){var i=!1,r=!1,s=window.pum_debug_vars||{debug_mode_enabled:"Popup Maker: Debug Mode Enabled",debug_started_at:"Debug started at:",debug_more_info:"For more information on how to use this information visit https://wppopupmaker.com/docs/?utm_medium=js-debug-info&utm_campaign=contextual-help&utm_source=browser-console&utm_content=more-info",global_info:"Global Information",localized_vars:"Localized variables",popups_initializing:"Popups Initializing",popups_initialized:"Popups Initialized",single_popup_label:"Popup: #",theme_id:"Theme ID: ",label_method_call:"Method Call:",label_method_args:"Method Arguments:",label_popup_settings:"Settings",label_triggers:"Triggers",label_cookies:"Cookies",label_delay:"Delay:",label_conditions:"Conditions",label_cookie:"Cookie:",label_settings:"Settings:",label_selector:"Selector:",label_mobile_disabled:"Mobile Disabled:",label_tablet_disabled:"Tablet Disabled:",label_event:"Event: %s",triggers:[],cookies:[]};e={odump:function(e){return t.extend({},e)},logo:function(){console.log(" -------------------------------------------------------------\n|  ____                           __  __       _              |\n| |  _ \\ ___  _ __  _   _ _ __   |  \\/  | __ _| | _____ _ __  |\n| | |_) / _ \\| '_ \\| | | | '_ \\  | |\\/| |/ _` | |/ / _ \\ '__| |\n| |  __/ (_) | |_) | |_| | |_) | | |  | | (_| |   <  __/ |    |\n| |_|   \\___/| .__/ \\__,_| .__/  |_|  |_|\\__,_|_|\\_\\___|_|    |\n|            |_|         |_|                                  |\n -------------------------------------------------------------")},initialize:function(){i=!0,e.logo(),console.log("init popups ✔"),console.debug(s.debug_mode_enabled),console.log(s.debug_started_at,new Date),console.info(s.debug_more_info),e.divider(s.global_info),console.groupCollapsed(s.localized_vars),console.log("pum_vars:",e.odump(n)),t(document).trigger("pum_debug_initialize_localized_vars"),console.groupEnd(),t(document).trigger("pum_debug_initialize")},popup_event_header:function(o){var t=o.popmake("getSettings");r!==t.id&&(r=t.id,e.divider(s.single_popup_label+t.id+" - "+t.slug))},divider:function(e){try{var o=62,t=0,n=" "+new Array(63).join("-")+" ",i=e;"string"==typeof e?(e.length>62&&(i=i.substring(0,62)),o=62-i.length,(t={left:Math.floor(o/2),right:Math.floor(o/2)}).left+t.right===o-1&&t.right++,t.left=new Array(t.left+1).join(" "),t.right=new Array(t.right+1).join(" "),console.log(n+"\n|"+t.left+i+t.right+"|\n"+n)):console.log(n)}catch(e){console.error("Got a '"+e+"' when printing out the heading divider to the console.")}},click_trigger:function(e,o){var t,n=e.popmake("getSettings"),i=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];o.extra_selectors&&""!==o.extra_selectors&&i.push(o.extra_selectors),t=(i=pum.hooks.applyFilters("pum.trigger.click_open.selectors",i,o,e)).join(", "),console.log(s.label_selector,t)},trigger:function(o,n){if("string"==typeof s.triggers[n.type]){switch(console.groupCollapsed(s.triggers[n.type]),n.type){case"auto_open":console.log(s.label_delay,n.settings.delay),console.log(s.label_cookie,n.settings.cookie_name);break;case"click_open":e.click_trigger(o,n.settings),console.log(s.label_cookie,n.settings.cookie_name)}t(document).trigger("pum_debug_render_trigger",o,n),console.groupEnd()}},cookie:function(o,n){if("string"==typeof s.cookies[n.event]){switch(console.groupCollapsed(s.cookies[n.event]),n.event){case"on_popup_open":case"on_popup_close"
120:case"manual":case"ninja_form_success":console.log(s.label_cookie,e.odump(n.settings))}t(document).trigger("pum_debug_render_trigger",o,n),console.groupEnd()}}},t(document).on("pumInit",".pum",function(){var o=PUM.getPopup(t(this)),n=o.popmake("getSettings"),r=n.triggers||[],a=n.cookies||[],p=n.conditions||[],u=0;if(i||(e.initialize(),e.divider(s.popups_initializing)),console.groupCollapsed(s.single_popup_label+n.id+" - "+n.slug),console.log(s.theme_id,n.theme_id),r.length){for(console.groupCollapsed(s.label_triggers),u=0;r.length>u;u++)e.trigger(o,r[u]);console.groupEnd()}if(a.length){for(console.groupCollapsed(s.label_cookies),u=0;a.length>u;u+=1)e.cookie(o,a[u]);console.groupEnd()}p.length&&(console.groupCollapsed(s.label_conditions),console.log(p),console.groupEnd()),console.groupCollapsed(s.label_popup_settings),console.log(s.label_mobile_disabled,!1!==n.disable_on_mobile),console.log(s.label_tablet_disabled,!1!==n.disable_on_tablet),console.log(s.label_display_settings,e.odump(n)),o.trigger("pum_debug_popup_settings"),console.groupEnd(),console.groupEnd()}).on("pumBeforeOpen",".pum",function(){var o=PUM.getPopup(t(this)),n=t.fn.popmake.last_open_trigger;e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumBeforeOpen"));try{n=(n=t(t.fn.popmake.last_open_trigger)).length?n:t.fn.popmake.last_open_trigger.toString()}catch(e){n=""}finally{console.log(s.label_triggers,[n])}console.groupEnd()}).on("pumOpenPrevented",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumOpenPrevented")),console.groupEnd()}).on("pumAfterOpen",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumAfterOpen")),console.groupEnd()}).on("pumSetupClose",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumSetupClose")),console.groupEnd()}).on("pumClosePrevented",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumClosePrevented")),console.groupEnd()}).on("pumBeforeClose",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumBeforeClose")),console.groupEnd()}).on("pumAfterClose",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumAfterClose")),console.groupEnd()}).on("pumBeforeReposition",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumBeforeReposition")),console.groupEnd()}).on("pumAfterReposition",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumAfterReposition")),console.groupEnd()}).on("pumCheckingCondition",".pum",function(o,n,i){var r=PUM.getPopup(t(this));e.popup_event_header(r),console.groupCollapsed(s.label_event.replace("%s","pumCheckingCondition")),console.log((i.not_operand?"(!) ":"")+i.target+": "+n,i),console.groupEnd()})}}(jQuery)},6989(){!function(e){"use strict";e.fn.popmake.defaults={id:null,slug:"",theme_id:null,cookies:[],triggers:[],conditions:[],mobile_disabled:null,tablet_disabled:null,custom_height_auto:!1,scrollable_content:!1,position_from_trigger:!1,position_fixed:!1,overlay_disabled:!1,stackable:!1,disable_reposition:!1,close_on_overlay_click:!1,close_on_form_submission:!1,close_on_form_submission_delay:0,close_on_esc_press:!1,close_on_f4_press:!1,disable_on_mobile:!1,disable_on_tablet:!1,size:"medium",responsive_min_width:"0%",responsive_max_width:"100%",custom_width:"640px",custom_height:"380px",animation_type:"fade",animation_speed:"350",animation_origin:"center top",location:"center top",position_top:"100",position_bottom:"0",position_left:"0",position_right:"0",zindex:"1999999999",close_button_delay:"0",meta:{display:{stackable:!1,overlay_disabled:!1,size:"medium",responsive_max_width:"100",responsive_max_width_unit:"%",responsive_min_width:"0",responsive_min_width_unit:"%",custom_width:"640",custom_width_unit:"px",custom_height:"380",custom_height_unit:"px",custom_height_auto:!1,location:"center top",position_top:100,position_left:0,position_bottom:0,position_right:0,position_fixed:!1,animation_type:"fade",animation_speed:350,animation_origin:"center top",scrollable_content:!1,disable_reposition:!1,position_from_trigger:!1,overlay_zindex:!1,zindex:"1999999999"},close:{overlay_click:!1,esc_press:!1,f4_press:!1,text:"",button_delay:0},click_open:[]},container:{active_class:"active",attr:{class:"popmake"}},title:{attr:{class:"popmake-title"}},content:{attr:{class:"popmake-content"}},close:{close_speed:0,attr:{class:"popmake-close"}},overlay:{attr:{id:"popmake-overlay",class:"popmake-overlay"}}}}(jQuery,document)},2124(){!function(e){"use strict";var o={openpopup:!1,openpopup_id:0,closepopup:!1,closedelay:0,redirect_enabled:!1,redirect:"",cookie:!1};window.PUM=window.PUM||{},window.PUM.forms=window.PUM.forms||{},e.extend(window.PUM.forms,{form:{validation:{errors:[]},responseHandler:function(e,o){var t=o.data;o.success?window.PUM.forms.form.success(e,t):window.PUM.forms.form.errors(e,t)}
120,display_errors:function(e,o){window.PUM.forms.messages.add(e,o||this.validation.errors,"error")},beforeAjax:function(o){var t=o.find('[type="submit"]'),n=t.find(".pum-form__loader");window.PUM.forms.messages.clear_all(o),n.length||(n=e('<span class="pum-form__loader"></span>'),""!==t.attr("value")?n.insertAfter(t):t.append(n)),t.prop("disabled",!0),n.show(),o.addClass("pum-form--loading").removeClass("pum-form--errors")},afterAjax:function(e){var o=e.find('[type="submit"]'),t=o.find(".pum-form__loader");o.prop("disabled",!1),t.hide(),e.removeClass("pum-form--loading")},success:function(e,o){void 0!==o.message&&""!==o.message&&window.PUM.forms.messages.add(e,[{message:o.message}]),e.trigger("success",[o]),!e.data("noredirect")&&void 0!==e.data("redirect_enabled")&&o.redirect&&(""!==o.redirect?window.location=o.redirect:window.location.reload(!0))},errors:function(e,o){void 0!==o.errors&&o.errors.length&&(console.log(o.errors),window.PUM.forms.form.display_errors(e,o.errors),window.PUM.forms.messages.scroll_to_first(e),e.addClass("pum-form--errors").trigger("errors",[o]))},submit:function(o){var t=e(this),n=t.pumSerializeObject();o.preventDefault(),o.stopPropagation(),window.PUM.forms.form.beforeAjax(t),e.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_form",values:n}}).always(function(){window.PUM.forms.form.afterAjax(t)}).done(function(e){window.PUM.forms.form.responseHandler(t,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}},messages:{add:function(o,t,n){var i=o.find(".pum-form__messages"),r=0;if(n=n||"success",t=t||[],!i.length)switch(i=e('<div class="pum-form__messages">').hide(),pum_vars.message_position){case"bottom":o.append(i.addClass("pum-form__messages--bottom"));break;case"top":o.prepend(i.addClass("pum-form__messages--top"))}if(["bottom","top"].indexOf(pum_vars.message_position)>=0)for(;t.length>r;r++)this.add_message(i,t[r].message,n);else for(;t.length>r;r++)void 0!==t[r].field?this.add_field_error(o,t[r]):this.add_message(i,t[r].message,n);i.is(":hidden")&&e(".pum-form__message",i).length&&i.slideDown()},add_message:function(o,t,n){var i=e('<p class="pum-form__message">').html(t);n=n||"success",i.addClass("pum-form__message--"+n),o.append(i),o.is(":visible")&&i.hide().slideDown()},add_field_error:function(o,t){var n=e('[name="'+t.field+'"]',o).parents(".pum-form__field").addClass("pum-form__field--error");this.add_message(n,t.message,"error")},clear_all:function(o,t){var n=o.find(".pum-form__messages"),i=n.find(".pum-form__message"),r=o.find(".pum-form__field.pum-form__field--error");t=t||!1,n.length&&i.slideUp("fast",function(){e(this).remove(),t&&n.hide()}),r.length&&r.removeClass("pum-form__field--error").find("p.pum-form__message").remove()},scroll_to_first:function(o){window.PUM.utilities.scrollTo(e(".pum-form__field.pum-form__field--error",o).eq(0))}},success:function(t,n){if(n=e.extend({},o,n)){var i=PUM.getPopup(t),r={},s=function(){n.openpopup&&PUM.getPopup(n.openpopup_id).length?PUM.open(n.openpopup_id):n.redirect_enabled&&(""!==n.redirect?window.location=n.redirect:window.location.reload(!0))};i.length&&(i.trigger("pumFormSuccess"),n.cookie&&(r=e.extend({name:"pum-"+PUM.getSetting(i,"id"),expires:"+1 year"},"object"==typeof n.cookie?n.cookie:{}),PUM.setCookie(i,r))),i.length&&n.closepopup?setTimeout(function(){i.popmake("close",s)},1e3*parseInt(n.closedelay)):s()}}})}(jQuery)},9379(){!function(e){"use strict";e.PUM=e.PUM||{},e.PUM.hooks=e.PUM.hooks||new function(){var e=Array.prototype.slice,o={removeFilter:function(e,t){return"string"==typeof e&&n("filters",e,t),o},applyFilters:function(){var t=e.call(arguments),n=t.shift();return"string"==typeof n?r("filters",n,t):o},addFilter:function(e,t,n,r){return"string"==typeof e&&"function"==typeof t&&i("filters",e,t,n=parseInt(n||10,10),r),o},removeAction:function(e,t){return"string"==typeof e&&n("actions",e,t),o},doAction:function(){var t=e.call(arguments),n=t.shift();return"string"==typeof n&&r("actions",n,t),o},addAction:function(e,t,n,r){return"string"==typeof e&&"function"==typeof t&&i("actions",e,t,n=parseInt(n||10,10),r),o}},t={actions:{},filters:{}};function n(e,o,n,i){var r,s,a;if(t[e][o])if(n)if(r=t[e][o],i)for(a=r.length;a--;)(s=r[a]).callback===n&&s.context===i&&r.splice(a,1);else for(a=r.length;a--;)r[a].callback===n&&r.splice(a,1);else t[e][o]=[]}function i(e,o,n,i,r){var s={callback:n,priority:i,context:r},a=t[e][o];a?(a.push(s),a=function(e){for(var o,t,n,i=1,r=e.length;i<r;i++){for(o=e[i],t=i;(n=e[t-1])&&n.priority>o.priority;)e[t]=e[t-1],--t;e[t]=o}return e}(a)):a=[s],t[e][o]=a}function r(e,o,n){var i,r,s=t[e][o];if(!s)return"filters"===e&&n[0];if(r=s.length,"filters"===e)for(i=0;i<r;i++)n[0]=s[i].callback.apply(s[i].context,n);else for(i=0;i<r;i++)s[i].callback.apply(s[i].context,n);return"filters"!==e||n[0]}return o},e.pum=e.PUM}(window)},4496(){!function(e){"use strict";function o(e){return e}window.PUM=window.PUM||{},window.PUM.integrations=window.PUM.integrations||{},e.extend(window.PUM.integrations,{init:function(){if(void 0!==pum_vars.form_submission){var e=pum_vars.form_submission;e.ajax=!1,e.popup=e.popupId>0?PUM.getPopup(e.popupId):null,PUM.integrations.formSubmission(null,e)}},formSubmission:function(t,n){var i=PUM.getPopup(t);(n=e.extend({popup:i,formProvider:null,formId:null,formInstanceId:null,formKey:null,ajax:!0,tracked:!1},n)).formKey=n.formKey||[n.formProvider,n.formId,n.formInstanceId].filter(o).join("_"),n.popup&&n.popup.length&&(n.popupId=PUM.getSetting(i,"id"),i.trigger("pumConversion")),window.PUM.hooks.doAction("pum.integration.form.success",t,n)},checkFormKeyMatches:function(e,o,t){o=""===o&&o;var n=-1!==["any"===e,"pumsubform"===e&&"pumsubform"===t.formProvider,e===t.formProvider+"_any",!o&&new RegExp("^"+e+"(_[d]*)?").test(t.formKey),!!o&&e+"_"+o===t.formKey].indexOf(!0);return window.PUM.hooks.applyFilters("pum.integration.checkFormKeyMatches",n,{formIdentifier:e,formInstanceId:o,submittedFormArgs:t})}})}(window.jQuery)},136(){!function(e){"use strict";pum_vars&&void 0!==pum_vars.core_sub_forms_enabled&&!pum_vars.core_sub_forms_enabled||(window.PUM=window.PUM||{},window.PUM.newsletter=window.PUM.newsletter||{},e.extend(window.PUM.newsletter,{form:e.extend({},window.PUM.forms.form,{submit:function(o){var t=e(this),n=t.pumSerializeObject();o.preventDefault(),o.stopPropagation(),window.PUM.newsletter.form.beforeAjax(t),e.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_sub_form",values:n}}).always(function(){window.PUM.newsletter.form.afterAjax(t)}).done(function(e){window.PUM.newsletter.form.responseHandler(t,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}})}),e(document).on("submit","form.pum-sub-form",window.PUM.newsletter.form.submit).on("success","form.pum-sub-form",function(o,t){var n=e(o.target),i=n.data("settings")||{},r=n.pumSerializeObject(),s=PUM.getPopup(n),a=PUM.getSetting(s,"id"),p=e("form.pum-sub-form",s).index(n)+1;window.PUM.integrations.formSubmission(n,{formProvider:"pumsubform",formId:a,formInstanceId:p,extras:{data:t,values:r,settings:i}}),n.trigger("pumNewsletterSuccess",[t]).addClass("pum-newsletter-success"),n[0].reset(),window.PUM.hooks.doAction("pum-sub-form.success",t,n),"string"==typeof i.redirect&&""!==i.redirect&&(i.redirect=atob(i.redirect)),window.PUM.forms.success(n,i)}).on("error","form.pum-sub-form",function(o,t){var n=e(o.target);n.trigger("pumNewsletterError",[t]),window.PUM.hooks.doAction("pum-sub-form.errors",t,n)}))}(jQuery)},30(){!function(e,o){"use strict";window.PUM.getLastOpenTrigger=function(){return e.fn.popmake.last_open_trigger},window.PUM.setLastOpenTrigger=o=>{e.fn.popmake.last_open_trigger=o},e.extend(e.fn.popmake.methods,{addTrigger:function(n){return function(){if(Object.keys(t).length)return t;t=window.PUM.hooks.applyFilters("popupMaker.triggers",{auto_open:function(o){var t=PUM.getPopup(this);setTimeout(function(){t.popmake("state","isOpen")||!t.popmake("checkCookies",o)&&t.popmake("checkConditions")&&(e.fn.popmake.last_open_trigger="Auto Open - Delay: "+o.delay,t.popmake("open"))},o.delay)},click_open:function(t){var n,i=PUM.getPopup(this),r=i.popmake("getSettings"),s=[".popmake-"+r.id,".popmake-"+decodeURIComponent(r.slug),'a[href$="#popmake-'+r.id+'"]'];t.extra_selectors&&""!==t.extra_selectors&&(PUM.isValidSelector(t.extra_selectors)?s.push(t.extra_selectors):window.console&&window.console.warn&&console.warn('Popup Maker: ignoring invalid Click Open "Extra Selectors" value for popup #'+r.id+": "+t.extra_selectors)),n=(s=pum.hooks.applyFilters("pum.trigger.click_open.selectors",s,t,i)).join(", "),e(n).addClass("pum-trigger").css({cursor:"pointer"}),e(o).on("click.pumTrigger",n,function(o){var n=e(this),r=t.do_default||!1;i.has(n).length>0||i.popmake("state","isOpen")||!i.popmake("checkCookies",t)&&i.popmake("checkConditions")&&(n.data("do-default")?r=n.data("do-default"):(n.hasClass("do-default")||n.hasClass("popmake-do-default")||n.hasClass("pum-do-default"))&&(r=!0),o.ctrlKey||pum.hooks.applyFilters("pum.trigger.click_open.do_default",r,i,n)||(o.preventDefault(),o.stopPropagation()),e.fn.popmake.last_open_trigger=n,i.popmake("open"))})},form_submission:function(o){var t=PUM.getPopup(this);o=e.extend({form:"",formInstanceId:"",delay:0},o);PUM.hooks.addAction("pum.integration.form.success",function(n,i){o.form.length&&PUM.integrations.checkFormKeyMatches(o.form,o.formInstanceId,i)&&setTimeout(function(){t.popmake("state","isOpen")||!t.popmake("checkCookies",o)&&t.popmake("checkConditions")&&(e.fn.popmake.last_open_trigger="Form Submission",t.popmake("open"))},o.delay)})},admin_debug:function(){var t=PUM.getPopup(this),n=function(){t.popmake("open")};window.PUM.initialized?n():e(o).one("pumInitialized",n)}}),t=e.extend(t,e.fn.popmake.triggers),e.fn.popmake.triggers=t}(),e.fn.popmake.triggers[n]?e.fn.popmake.triggers[n].apply(this,Array.prototype.slice.call(arguments,1
120)):(window.console&&console.warn("Trigger type "+n+" does not exist."),this)}});let t={};e(o).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings").triggers||[],n=null;if(t.length)for(e=0;t.length>e;e+=1)n=t[e],o.popmake("addTrigger",n.type,n.settings)}),e.fn.popmake=e.fn.popmake||{},e.fn.popmake.triggers=e.fn.popmake.triggers||{}}(jQuery,document)},1870(){!function(e){"use strict";window.PUM=window.PUM||{},window.PUM_URLTracking={init:function(){this.addPopupOpenTracking()},addPopupOpenTracking:function(){var o=this;e(document).on("pumAfterOpen.url_tracking",".pum",function(){var e=window.PUM.getPopup(this),t=e.popmake("getSettings"),n=parseInt(t.id,10);n>0&&o.processPopupLinks(e,n)})},processPopupLinks:function(o,t){var n=this;pum_vars.disable_tracking||o.find("a[href]").each(function(){var i=e(this),r=i.attr("href");if(n.isInternalUrl(r))if(pum_vars.disable_url_params)n.shouldTrackClick(r)&&n.attachClickTracking(i,t,r);else{var s={};s[window.pum_vars?.paramNames?.popup_id||"pid"]=t,window.PUM&&window.PUM.hooks&&(s=window.PUM.hooks.applyFilters("popupMaker.popup.linkUrlParams",s,o,i));
120var a=n.appendParamsToUrl(r,s);i.attr("href",a)}else n.shouldTrackClick(r)&&n.attachClickTracking(i,t,r)})},shouldTrackClick:function(e){return!!e&&-1===e.indexOf("cta=")},getLinkType:function(e){return 0===e.indexOf("mailto:")?"mailto":0===e.indexOf("tel:")?"tel":0===e.indexOf("javascript:")?"javascript":"#"===e||0===e.indexOf("#")?"anchor":0===e.indexOf("http")||0===e.indexOf("//")?"external":"other"},attachClickTracking:function(e,o,t){var n=this;e.data("pum-click-tracked")||(e.data("pum-click-tracked",!0),e.on("click.pum_tracking",function(){if(window.PUM_Analytics&&window.pum_vars&&window.pum_vars.analytics_enabled){var i={pid:o,event:"conversion",eventData:{type:"link_click",url:t,linkType:n.getLinkType(t)}};window.PUM&&window.PUM.hooks&&(i=window.PUM.hooks.applyFilters("popupMaker.popup.linkClickData",i,e)),window.PUM_Analytics.beacon(i)}}))},isInternalUrl:function(e){if(!e||"#"===e||0===e.indexOf("#"))return!1;if(/^[a-z][a-z0-9+.-]*:/i.test(e)&&!/^https?:/i.test(e))return!1;if(0===e.indexOf("/")&&0!==e.indexOf("//"))return!0;if(0===e.indexOf("//")&&(e=window.location.protocol+e),0===e.indexOf("http"))try{return new URL(e).hostname===window.location.hostname}catch(e){return!1}return!0},appendParamsToUrl:function(e,o){try{var t=new URL(e,window.location.origin);for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&t.searchParams.set(n,o[n]);return t.toString()}catch(t){var i="";for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&(i.length>0&&(i+="&"),i+=encodeURIComponent(r)+"="+encodeURIComponent(o[r]));if(i.length>0){var s=-1!==e.indexOf("?")?"&":"?";return e+s+i}return e}}},e(function(){window.PUM_URLTracking.init()})}(jQuery)},9059(){!function(e){"use strict";var o="color,date,datetime,datetime-local,email,hidden,month,number,password,range,search,tel,text,time,url,week".split(","),t="select,textarea".split(","),n=/\[([^\]]*)\]/g;function i(e,o,t){var n=o[0];o.length>1?(e[n]||(e[n]=o[1]?{}:[]),i(e[n],o.slice(1),t)):(n||(n=e.length),e[n]=t)}Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(null==this)throw new TypeError;var o=Object(this),t=o.length>>>0;if(0===t)return-1;var n=0;if(arguments.length>0&&((n=Number(arguments[1]))!=n?n=0:0!==n&&n!==1/0&&n!==-1/0&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=t)return-1;for(var i=n>=0?n:Math.max(t-Math.abs(n),0);i<t;i++)if(i in o&&o[i]===e)return i;return-1}),window.PUM=window.PUM||{},e.fn.popmake.utilities=window.PUM.utilities={scrollTo:function(o,t){var n=e(o)||e();n.length&&e("html, body").animate({scrollTop:n.offset().top-100},1e3,"swing",function(){var e=n.find(':input:not([type="button"]):not([type="hidden"]):not(button)').eq(0);e.hasClass("wp-editor-area")?tinyMCE.execCommand("mceFocus",!1,e.attr("id")):e.focus(),"function"==typeof t&&t()})},inArray:function(e,o){return!!~o.indexOf(e)},convert_hex:function(e,o){return e=e.replace("#",""),"rgba("+parseInt(e.substring(0,2),16)+","+parseInt(e.substring(2,4),16)+","+parseInt(e.substring(4,6),16)+","+o/100+")"},debounce:function(e,o){var t;return function(){var n=this,i=arguments;window.clearTimeout(t),t=window.setTimeout(function(){e.apply(n,i)},o)}},throttle:function(e,o){var t=!1,n=function(){t=!1};return function(){t||(e.apply(this,arguments),window.setTimeout(n,o),t=!0)}},getXPath:function(o){var t,n,i,r,s,a=[];return e.each(e(o).parents(),function(o,p){if(t=e(p),n=t.attr("id")||"",i=t.attr("class")||"",r=t.get(0).tagName.toLowerCase(),s=t.parent().children(r).index(t),"body"===r)return!1;i.length>0&&(i=(i=i.split(" "))[0]),a.push(r+(n.length>0?"#"+n:i.length>0?"."+i.split(" ").join("."):":eq("+s+")"))}),a.reverse().join(" > ")},strtotime:function(e,o){var t,n,i,r,s,a,p,u,c,l,d=!1;if(!e)return d;if((n=(e=e.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase()).match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/))&&n[2]===n[4])if(n[1]>1901)switch(n[2]){case"-":case"/":return n[3]>12||n[5]>31?d:new Date(n[1],parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3;case".":return d}else if(n[5]>1901)switch(n[2]){case"-":case".":return n[3]>12||n[1]>31?d:new Date(n[5],parseInt(n[3],10)-1,n[1],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3;case"/":return n[1]>12||n[3]>31?d:new Date(n[5],parseInt(n[1],10)-1,n[3],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3}else switch(n[2]){case"-":return n[3]>12||n[5]>31||n[1]<70&&n[1]>38?d:(r=n[1]>=0&&n[1]<=38?+n[1]+2e3:n[1],new Date(r,parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3);case".":return n[5]>=70?n[3]>12||n[1]>31?d:new Date(n[5],parseInt(n[3],10)-1,n[1],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3:n[5]<60&&!n[6]?n[1]>23||n[3]>59?d:(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),n[1]||0,n[3]||0,n[5]||0,n[9]||0)/1e3):d;case"/":return n[1]>12||n[3]>31||n[5]<70&&n[5]>38?d:(r=n[5]>=0&&n[5]<=38?+n[5]+2e3:n[5],new Date(r,parseInt(n[1],10)-1,n[3],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3);case":":return n[1]>23||n[3]>59||n[5]>59?d:(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),n[1]||0,n[3]||0,n[5]||0)/1e3)}
120if("now"===e)return null===o||isNaN(o)?(new Date).getTime()/1e3||0:o||0;if(t=Date.parse(e),!isNaN(t))return t/1e3||0;function m(e){var o=e.split(" "),t=o[0],n=o[1].substring(0,3),i=/\d+/.test(t),r=("last"===t?-1:1)*("ago"===o[2]?-1:1);if(i&&(r*=parseInt(t,10)),p.hasOwnProperty(n)&&!o[1].match(/^mon(day|\.)?$/i))return s["set"+p[n]](s["get"+p[n]]()+r);if("wee"===n)return s.setDate(s.getDate()+7*r);if("next"===t||"last"===t)!function(e,o,t){var n,i=a[o];void 0!==i&&(0===(n=i-s.getDay())?n=7*t:n>0&&"last"===e?n-=7:n<0&&"next"===e&&(n+=7),s.setDate(s.getDate()+n))}(t,n,r);else if(!i)return!1;return!0}if(s=o?new Date(1e3*o):new Date,a={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},p={yea:"FullYear",mon:"Month",day:"Date",hou:"Hours",min:"Minutes",sec:"Seconds"},c="([+-]?\\d+\\s"+"(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)"+"|(last|next)\\s(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?))(\\sago)?",!(n=e.match(new RegExp(c,"gi"))))return d;for(l=0,u=n.length;l<u;l+=1)if(!m(n[l]))return d;return s.getTime()/1e3},serializeObject:function(r){e.extend({},r);var s={},a=e.extend(!0,{include:[],exclude:[],includeByClass:""},r);return this.find(":input").each(function(){var r;!this.name||this.disabled||window.PUM.utilities.inArray(this.name,a.exclude)||a.include.length&&!window.PUM.utilities.inArray(this.name,a.include)||-1===this.className.indexOf(a.includeByClass)||(r=this.name.replace(n,"[$1").split("["))[0]&&(this.checked||window.PUM.utilities.inArray(this.type,o)||window.PUM.utilities.inArray(this.nodeName.toLowerCase(),t))&&("checkbox"===this.type&&r.push(""),i(s,r,e(this).val()))}),s}},e.fn.pumSerializeObject=window.PUM.utilities.serializeObject,e.fn.popmake.utilies=e.fn.popmake.utilities}(jQuery,document)},8315(){!function(){"use strict";function e(e){var o=this.constructor;return this.then(function(t){return o.resolve(e()).then(function(){return t})},function(t){return o.resolve(e()).then(function(){return o.reject(t)})})}var o=setTimeout;function t(e){return Boolean(e&&void 0!==e.length)}function n(){}function i(e){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function r(e,o){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn(function(){var t=1===e._state?o.onFulfilled:o.onRejected;if(null!==t){var n;try{n=t(e._value)}catch(e){return void a(o.promise,e)}s(o.promise,n)}else(1===e._state?s:a)(o.promise,e._value)})):e._deferreds.push(o)}function s(e,o){try{if(o===e)throw new TypeError("A promise cannot be resolved with itself.");if(o&&("object"==typeof o||"function"==typeof o)){var t=o.then;if(o instanceof i)return e._state=3,e._value=o,void p(e);if("function"==typeof t)return void c((n=t,r=o,function(){n.apply(r,arguments)}),e)}e._state=1,e._value=o,p(e)}catch(o){a(e,o)}var n,r}function a(e,o){e._state=2,e._value=o,p(e)}function p(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var o=0,t=e._deferreds.length;o<t;o++)r(e,e._deferreds[o]);e._deferreds=null}function u(e,o,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof o?o:null,this.promise=t}function c(e,o){var t=!1;try{e(function(e){t||(t=!0,s(o,e))},function(e){t||(t=!0,a(o,e))})}catch(e){if(t)return;t=!0,a(o,e)}}i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,o){var t=new this.constructor(n);return r(this,new u(e,o,t)),t},i.prototype.finally=e,i.all=function(e){return new i(function(o,n){if(!t(e))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return o([]);var r=i.length;function s(e,t){try{if(t&&("object"==typeof t||"function"==typeof t)){var a=t.then;if("function"==typeof a)return void a.call(t,function(o){s(e,o)},n)}i[e]=t,0===--r&&o(i)}catch(e){n(e)}}for(var a=0;a<i.length;a++)s(a,i[a])})},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i(function(o){o(e)})},i.reject=function(e){return new i(function(o,t){t(e)})},i.race=function(e){return new i(function(o,n){if(!t(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,s=e.length;r<s;r++)i.resolve(e[r]).then(o,n)})},i._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){o(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof globalThis)return globalThis;throw new Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype.finally||(l.Promise.prototype.finally=e):l.Promise=i}()}},o={};function t(n){var i=o[n];if(void 0!==i)return i.exports;
120var r=o[n]={exports:{}};return e[n].call(r.exports,r,r.exports,t),r.exports}t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{"use strict";t(8315),t(1452);const e=window.jQuery,o=t.n(e)(),n={validate:/^[a-z_][a-z0-9_]*(?:\[(?:\d*|[a-z0-9_]+)\])*$/i,key:/[a-z0-9_]+|(?=\[\])/gi,push:/^$/,fixed:/^\d+$/,named:/^[a-z0-9_]+$/i};function i(e,t){var i={},r={};function s(e,o,t){return e[o]=t,e}function a(e){return void 0===r[e]&&(r[e]=0),r[e]++}function p(){return i}this.addPair=function(r){if(!n.validate.test(r.name))return this;var p=function(e,o){var t,i=e.match(n.key);try{o=JSON.parse(o)}catch(e){}for(;void 0!==(t=i.pop());)n.push.test(t)?o=s([],a(e.replace(/\[\]$/,"")),o):n.fixed.test(t)?o=s([],t,o):n.named.test(t)&&(o=s({},t,o));return o}(r.name,function(e){return"checkbox"===o('[name="'+e.name+'"]',t).attr("type")&&"1"===e.value||e.value}(r));return i=e.extend(!0,i,p),this},this.addPairs=function(o){if(!e.isArray(o))throw new Error("formSerializer.addPairs expects an Array");for(var t=0,n=o.length;t<n;t++)this.addPair(o[t]);return this},this.serialize=p,this.serializeJSON=function(){return JSON.stringify(p())}}i.patterns=n,i.serializeObject=function(){var e;return e=this.is("form")?this.serializeArray():this.find(":input").serializeArray(),new i(o,this).addPairs(e).serialize()},i.serializeJSON=function(){var e;return e=this.is("form")?this.serializeArray():this.find(":input").serializeArray(),new i(o,this).addPairs(e).serializeJSON()},o.fn.pumSerializeObject=i.serializeObject,o.fn.pumSerializeJSON=i.serializeJSON,function(e,o,t){window.pum_vars=window.pum_vars||{default_theme:"0",home_url:"/",version:1.7,pm_dir_url:"",ajaxurl:"",restapi:!1,analytics_api:!1,rest_nonce:null,debug_mode:!1,disable_tracking:!0,disable_url_params:!1,message_position:"top",core_sub_forms_enabled:!0,popups:{}},window.pum_popups=window.pum_popups||{},window.pum_vars.popups=window.pum_popups,window.PUM={get:new function(){var e={},o=function(o,n,i){"boolean"==typeof n&&(i=n,n=!1);var r=n?n.selector+" "+o:o;return(t===e[r]||i)&&(e[r]=n?n.find(o):jQuery(o)),e[r]};return o.elementCache=e,o},getPopup:function(o){var t,n;return n=o,(t=isNaN(n)||parseInt(Number(n))!==parseInt(n)||isNaN(parseInt(n,10))?"current"===o?e(".pum-overlay.pum-active:eq(0)"):"open"===o?e(".pum-overlay.pum-active"):"closed"===o?e(".pum-overlay:not(.pum-active)"):o instanceof jQuery?o:e(o):PUM.get("#pum-"+o)).hasClass("pum-overlay")?t:t.hasClass("popmake")||t.parents(".pum-overlay").length?t.parents(".pum-overlay"):e()},open:function(e,o){PUM.getPopup(e).popmake("open",o)},close:function(e,o){PUM.getPopup(e).popmake("close",o)},preventOpen:function(e){PUM.getPopup(e).addClass("preventOpen")},getSettings:function(e){return PUM.getPopup(e).popmake("getSettings")},getSetting:function(e,o,n){var i=function(e,o){function t(e,o,t){return o?e[o.slice(0,t?-1:o.length)]:e}return o.split(".").reduce(function(e,o){return o?o.split("[").reduce(t,e):e},e)}(PUM.getSettings(e),o);return void 0!==i?i:n!==t?n:null},checkConditions:function(e){return PUM.getPopup(e).popmake("checkConditions")},getCookie:function(o){return e.pm_cookie(o)},getJSONCookie:function(o){return e.pm_cookie_json(o)},setCookie:function(e,o){PUM.getPopup(e).popmake("setCookie",jQuery.extend({name:"pum-"+PUM.getSetting(e,"id"),expires:"+30 days"},o))},setCookieRaw:function(o,t,n){e.pm_cookie(o,t,n)},clearCookie:function(o,t){e.pm_remove_cookie(o),"function"==typeof t&&t()},clearCookies:function(o,n){var i,r=PUM.getPopup(o).popmake("getSettings").cookies;if(r!==t&&r.length)for(i=0;r.length>i;i+=1)e.pm_remove_cookie(r[i].settings.name);"function"==typeof n&&n()},isValidSelector:function(e){if("string"!=typeof e||""===e)return!1;try{return o.createDocumentFragment().querySelector(e),!0}catch(e){return!1}},getClickTriggerSelector:function(e,o){var t=PUM.getPopup(e),n=PUM.getSettings(e),i=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];return o.extra_selectors&&""!==o.extra_selectors&&PUM.isValidSelector(o.extra_selectors)&&i.push(o.extra_selectors),(i=pum.hooks.applyFilters("pum.trigger.click_open.selectors",i,o,t)).join(", ")}
120,disableClickTriggers:function(n,i){if(n!==t)if(i!==t){var r=PUM.getClickTriggerSelector(n,i);e(r).removeClass("pum-trigger"),e(o).off("click.pumTrigger click.popmakeOpen",r)}else{var s=PUM.getSetting(n,"triggers",[]);if(s.length)for(var a=0;s.length>a;a++)-1!==pum.hooks.applyFilters("pum.disableClickTriggers.clickTriggerTypes",["click_open"]).indexOf(s[a].type)&&(r=PUM.getClickTriggerSelector(n,s[a].settings),e(r).removeClass("pum-trigger"),e(o).off("click.pumTrigger click.popmakeOpen",r))}},actions:{stopIframeVideosPlaying:function(){var o=PUM.getPopup(this),t=o.popmake("getContainer");o.hasClass("pum-has-videos")||(t.find("iframe").filter('[src*="youtube"],[src*="vimeo"]').each(function(){var o=e(this),t=o.attr("src"),n=t.replace("autoplay=1","1=1");n!==t&&(t=n),o.prop("src",t)}),t.find("video").each(function(){this.pause()}))}}},e.fn.popmake=function(t){return e.fn.popmake.methods[t]?(e(o).trigger("pumMethodCall",arguments),e.fn.popmake.methods[t].apply(this,Array.prototype.slice.call(arguments,1))):"object"!=typeof t&&t?void(window.console&&console.warn("Method "+t+" does not exist on $.fn.popmake")):e.fn.popmake.methods.init.apply(this,arguments)},e.fn.popmake.methods={init:function(){return this.each(function(){var o=PUM.getPopup(this),n=o.popmake("getSettings");if(n.theme_id<=0&&(n.theme_id=pum_vars.default_theme),n.disable_reposition!==t&&n.disable_reposition||e(window).on("resize",function(){(o.hasClass("pum-active")||o.find(".popmake.active").length)&&e.fn.popmake.utilities.throttle(setTimeout(function(){o.popmake("reposition")},25),500,!1)}),o.find(".pum-container").data("popmake",n),o.data("popmake",n).trigger("pumInit"),n.open_sound&&"none"!==n.open_sound){var i="custom"!==n.open_sound?new Audio(pum_vars.pm_dir_url+"assets/sounds/"+n.open_sound):new Audio(n.custom_sound);i.addEventListener("canplaythrough",function(){o.data("popAudio",i)}),i.addEventListener("error",function(){console.warn("Error occurred when trying to load Popup opening sound.")}),i.load()}return this})},getOverlay:function(){return PUM.getPopup(this)},getContainer:function(){return PUM.getPopup(this).find(".pum-container")},getTitle:function(){return PUM.getPopup(this).find(".pum-title")||null},getContent:function(){return PUM.getPopup(this).find(".pum-content")||null},getClose:function(){return PUM.getPopup(this).find(".pum-content + .pum-close")||null},getSettings:function(){var o=PUM.getPopup(this);return e.extend(!0,{},e.fn.popmake.defaults,o.data("popmake")||{},"object"==typeof pum_popups&&void 0!==pum_popups[o.attr("id")]?pum_popups[o.attr("id")]:{})},state:function(e){var o=PUM.getPopup(this);if(t!==e)switch(e){case"isOpen":return o.hasClass("pum-open")||o.popmake("getContainer").hasClass("active");case"isClosed":return!o.hasClass("pum-open")&&!o.popmake("getContainer").hasClass("active")}},open:function(o){var n=PUM.getPopup(this),i=n.popmake("getContainer"),r=n.popmake("getClose"),s=n.popmake("getSettings"),a=e("html");return n.trigger("pumBeforeOpen"),PUM.hooks.applyFilters("popupMaker.popup.preventOpen",!1,n,s)||n.hasClass("preventOpen")||i.hasClass("preventOpen")?(console.log("prevented"),n.removeClass("preventOpen").removeClass("pum-active").trigger("pumOpenPrevented"),this):(s.stackable||n.popmake("close_all"),n.popmake("initializeState"),n.addClass("pum-active"),s.close_button_delay>0&&r.fadeOut(0),a.addClass("pum-open"),s.overlay_disabled?a.addClass("pum-open-overlay-disabled"):a.addClass("pum-open-overlay"),s.position_fixed?a.addClass("pum-open-fixed"):a.addClass("pum-open-scrollable"),n.popmake("setup_close").popmake("reposition").queue(function(){var o=n.popmake("getContainer");n.css({display:"block",opacity:0}
120),o.css({display:"block",opacity:0}),e(this).dequeue()}).popmake("animate",s.animation_type,function(){s.close_button_delay>0&&setTimeout(function(){r.fadeIn()},s.close_button_delay),n.trigger("pumAfterOpen"),e(window).trigger("resize"),e.fn.popmake.last_open_popup=n,o!==t&&o()}),void 0!==n.data("popAudio")&&n.data("popAudio").play().catch(function(e){console.warn("Sound was not able to play when popup opened. Reason: "+e)}),this)},initializeState:function(){var e=PUM.getPopup(this),o=e.popmake("getContainer");return e.css({display:"",opacity:"",height:"",width:""}),o.css({display:"",opacity:"",height:"",width:""}),e[0].offsetHeight,o[0].offsetHeight,this},setup_close:function(){var n=PUM.getPopup(this),i=n.popmake("getClose"),r=n.popmake("getSettings");if((i=i.add(e(".popmake-close, .pum-close",n).not(i))).off("click.pum").on("click.pum",function(o){var i=e(this);i.hasClass("pum-do-default")||i.data("do-default")!==t&&i.data("do-default")||o.preventDefault(),e.fn.popmake.last_close_trigger="Close Button",n.popmake("close")}),r.close_on_esc_press||r.close_on_f4_press){const o=`keyup.popmake-${r.id}`;e(window).off(o).on(o,function(o){27===o.keyCode&&r.close_on_esc_press&&(e.fn.popmake.last_close_trigger="ESC Key",n.popmake("close")),115===o.keyCode&&r.close_on_f4_press&&(e.fn.popmake.last_close_trigger="F4 Key",n.popmake("close"))})}return r.close_on_overlay_click&&(n.on("pumAfterOpen",function(){e(o).on(`click.popmake-${r.id}`,function(o){e(o.target).closest(".pum-container").length||(e.fn.popmake.last_close_trigger="Overlay Click",n.popmake("close"))})}),n.on("pumAfterClose",function(){e(o).off(`click.popmake-${r.id}`)})),r.close_on_form_submission&&PUM.hooks.addAction("pum.integration.form.success",function(o,t){t.popup&&t.popup[0]===n[0]&&setTimeout(function(){e.fn.popmake.last_close_trigger="Form Submission",
120n.popmake("close")},r.close_on_form_submission_delay||0)}),n.trigger("pumSetupClose"),this},close:function(o){return this.each(function(){var n=PUM.getPopup(this),i=n.popmake("getContainer"),r=n.popmake("getClose"),s=n.popmake("getSettings");return r=r.add(e(".popmake-close, .pum-close",n).not(r)),n.trigger("pumBeforeClose"),n.hasClass("preventClose")||i.hasClass("preventClose")?(n.removeClass("preventClose").trigger("pumClosePrevented"),this):(i.fadeOut("fast",function(){n.is(":visible")&&n.fadeOut("fast"),e(window).off(`keyup.popmake-${s.id}`),n.off("click.popmake"),r.off("click.popmake"),1===e(".pum-active").length&&e("html").removeClass("pum-open").removeClass("pum-open-scrollable").removeClass("pum-open-overlay").removeClass("pum-open-overlay-disabled").removeClass("pum-open-fixed"),n.removeClass("pum-active").trigger("pumAfterClose"),o!==t&&o()}),this)})},close_all:function(){return e(".pum-active").popmake("close"),this},reposition:function(o){var t=PUM.getPopup(this).trigger("pumBeforeReposition"),n=t.popmake("getContainer"),i=t.popmake("getSettings"),r=i.location,s={my:"",at:"",of:window,collision:"none",using:"function"==typeof o?o:e.fn.popmake.callbacks.reposition_using},a={overlay:null,container:null},p=null;try{p=e(e.fn.popmake.last_open_trigger)}catch(o){p=e()}i.position_from_trigger&&p.length?(s.of=p,r.indexOf("left")>=0&&(s.my+=" right",s.at+=" left"+(0!==i.position_left?"-"+i.position_left:"")),r.indexOf("right")>=0&&(s.my+=" left",s.at+=" right"+(0!==i.position_right?"+"+i.position_right:"")),r.indexOf("center")>=0&&(s.my="center"===r?"center":s.my+" center",s.at="center"===r?"center":s.at+" center"),r.indexOf("top")>=0&&(s.my+=" bottom",s.at+=" top"+(0!==i.position_top?"-"+i.position_top:"")),r.indexOf("bottom")>=0&&(s.my+=" top",s.at+=" bottom"+(0!==i.position_bottom?"+"+i.position_bottom:""))):(r.indexOf("left")>=0&&(s.my+=" left"+(0!==i.position_left?"+"+i.position_left:""),s.at+=" left"),r.indexOf("right")>=0&&(s.my+=" right"+(0!==i.position_right?"-"+i.position_right:""),s.at+=" right"),r.indexOf("center")>=0&&(s.my="center"===r?"center":s.my+" center",s.at="center"===r?"center":s.at+" center"),r.indexOf("top")>=0&&(s.my+=" top"+(0!==i.position_top?"+"+(e("body").hasClass("admin-bar")?parseInt(i.position_top,10)+32:i.position_top):""),s.at+=" top"),r.indexOf("bottom")>=0&&(s.my+=" bottom"+(0!==i.position_bottom?"-"+i.position_bottom:""),s.at+=" bottom")),s.my=s.my.trim(),s.at=s.at.trim(),t.is(":hidden")&&(a.overlay=t.css("opacity"),t.css({opacity:0}).show(0)),n.is(":hidden")&&(a.container=n.css("opacity"),n.css({opacity:0}).show(0)),i.position_fixed&&n.addClass("fixed"),"custom"===i.size?n.css({width:i.custom_width,height:i.custom_height_auto?"auto":i.custom_height}):"auto"!==i.size&&n.addClass("responsive").css({minWidth:""!==i.responsive_min_width?i.responsive_min_width:"auto",maxWidth:""!==i.responsive_max_width?i.responsive_max_width:"auto"}),t.trigger("pumAfterReposition"),n.addClass("custom-position").position(s).trigger("popmakeAfterReposition");var u=n[0].getBoundingClientRect(),c=e("body").hasClass("admin-bar")?42:10;if(u.top<c){var l=parseFloat(n.css("top"))||0;n.css({top:l+(c-u.top)})}return a.overlay&&t.css({opacity:a.overlay}).hide(0),a.container&&n.css({opacity:a.container}).hide(0),this},animation_origin:function(e){var o=PUM.getPopup(this).popmake("getContainer"),t={my:"",at:""};switch(e){case"top":t={my:"left+"+o.offset().left+" bottom-100",at:"left top"};break;case"bottom":t={my:"left+"+o.offset().left+" top+100",at:"left bottom"};break;case"left":t={my:"right top+"+o.offset().top,at:"left top"};break;case"right":t={my:"left top+"+o.offset().top,at:"right top"};break;default:e.indexOf("left")>=0&&(t={my:t.my+" right",at:t.at+" left"}),e.indexOf("right")>=0&&(t={my:t.my+" left",at:t.at+" right"}),e.indexOf("center")>=0&&(t={my:t.my+" center",at:t.at+" center"}),e.indexOf("top")>=0&&(t={my:t.my+" bottom-100",at:t.at+" top"}),e.indexOf("bottom")>=0&&(t={my:t.my+" top+100",at:t.at+" bottom"}),t.my=t.my.trim(),t.at=t.at.trim()}return t.of=window,t.collision="none",t}}}(jQuery,document),window.PUM,t(3263),t(6989),t(9379),t(9059),t(8684),t(729),t(5404),t(1637),t(1095),t(4927),t(2124),t(136),t(4496),t(30),t(1870),t(4539),t(4748),t(6246),t(4371),t(507),t(8197),t(7003),t(4903),t(3739),t(3068),t(6437),t(6293),t(149),t(5606),t(9764),t(3561),t(331),t(9115),t(5444),t(3271),t(4409)})()})();
121;(function($) {
122    'use strict';
123
124    var _toBuild = [];
125    MK.api = window.MK.api || {};
126
127    MK.component.AdvancedGMaps = function(el) {
128        var $this = $(el),
129            container = document.getElementById( 'mk-theme-container' ),
130            data = $this.data( 'advancedgmaps-config' ),
131            apikey = data.options.apikey ? ('key='+data.options.apikey+'&') : false,
132            map = null,
133            bounds = null,
134            infoWindow = null,
135            position = null;
136
137        var build = function() {
138            data.options.scrollwheel = false;
139            data.options.mapTypeId = google.maps.MapTypeId[data.options.mapTypeId];
140            data.options.styles = data.style;
141
142            bounds = new google.maps.LatLngBounds();
143            map = new google.maps.Map(el, data.options);
144            infoWindow = new google.maps.InfoWindow();
145
146            map.setOptions({
147                panControl : data.options.panControl,
148                draggable:  data.options.draggable,
149                zoomControl:  data.options.zoomControl,
150                mapTypeControl:  data.options.scaleControl,
151                scaleControl:  data.options.mapTypeControl,
152            });
153
154            var marker, i;
155
156            map.setTilt(45);
157
158            for (i = 0; i < data.places.length; i++) {
159                if(data.places[i].latitude && data.places[i].longitude) {
160                    position = new google.maps.LatLng(data.places[i].latitude, data.places[i].longitude);
161
162                    bounds.extend(position);
163
164                    marker = new google.maps.Marker({
165                        position: position,
166                        map: map,
167                        title: data.places[i].address,
168                        icon: (data.places[i].marker) ? data.places[i].marker : data.icon
169                    });
170
171
172                    google.maps.event.addListener(marker, 'click', (function(marker, i) {
173                        return function() { 
174                            if(data.places[i].address && data.places[i].address.length > 1) {
175                                infoWindow.setContent('<div class="info_content"><p>'+ data.places[i].address +'</p></div>');
176                                infoWindow.open(map, marker);
177                            } else {
178                                infoWindow.setContent('');
179                                infoWindow.close();
180                            }
181                        };
182                    })(marker, i));
183
184                    /**
185                     * If there is only one marker, map.fitBounds will zoom-in too much.
186                     * Only run map.fitBounds if the markers are more than 1. Use setCenter
187                     * instead if the the marker is only 1.
188                     */
189                    if ( i > 0 ) {
190                        map.fitBounds( bounds );
191                    } else {
192                        // Set latitude and longtitude as float.
193                        var latLang = {
194                            lat: parseFloat( data.places[i].latitude ),
195                            lng: parseFloat( data.places[i].longitude )
196                        };
197                        map.setCenter( latLang );
198                        // Need to setZoom here as we didn't trigger bounds_changed event.
199                        map.setZoom( data.options.zoom );
200                    }
201                }
202            }
203
204            var boundsListener = google.maps.event.addListener((map), 'bounds_changed', function(event) {
205                this.setZoom(data.options.zoom);
206                google.maps.event.removeListener(boundsListener);
207            });
208
209
210            var update = function() {
211                google.maps.event.trigger(map, "resize");
212                map.setCenter(position);
213            };
214            update();
215
216
217            var bindEvents = function() {
218                $( window ).on( 'resize', update );
219                window.addResizeListener( container, update );
220            };
221            bindEvents();
222        };
223
224
225        var initAll = function() {
226            for( var i = 0, l = _toBuild.length; i < l; i++ ) {
227                _toBuild[i]();
228            }
229        };
230
231        MK.api.advancedgmaps = MK.api.advancedgmaps || function() {
232            initAll();
233        };
234
235        return {
236            init : function() {
237                _toBuild.push( build );
238                MK.core.loadDependencies(['https://maps.googleapis.com/maps/api/js?'+apikey+'callback=MK.api.advancedgmaps']);
239            }
240        };
241
242    };
243
244})(jQuery);
245(function($) {
246    'use strict';
247    function mk_animated_cols() {
248        function equalheight (container){
249            var currentTallest = 0,
250                 currentRowStart = 0,
251                 rowDivs = new Array(),
252                 $el,
253                 topPosition = 0;
254             $(container).each(function() {
255
256               $el = $(this);
257               $($el).height('auto');
258               topPosition = $el.position().top;
259
260               if (currentRowStart != topPosition) {
261                 for (var currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
262                   rowDivs[currentDiv].height(currentTallest);
263                 }
264                 rowDivs.length = 0; // empty the array
265                 currentRowStart = topPosition;
266                 currentTallest = $el.height();
267                 rowDivs.push($el);
268               } else {
269                 rowDivs.push($el);
270                 currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest);
271              }
272               for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
273                 rowDivs[currentDiv].height(currentTallest);
274               }
275
276             });
277
278            // console.log('recalc' + container + ' ' + currentTallest);
279
280            return currentTallest;
281        }
282
283
284        function prepareCols(el) {
285            var $this = el.parent().parent().find('.mk-animated-columns');
286
287            var iconHeight  = equalheight('.vc_row .animated-column-icon, .animated-column-holder .mk-svg-icon'),
288                titleHeight = equalheight('.vc_row .animated-column-title'),
289                descHeight  = equalheight('.vc_row .animated-column-desc'),
290                btnHeight   = $this.find('.animated-column-btn').innerHeight();
291
292            if ($this.hasClass('full-style')) {
293                $this.find('.animated-column-item').each(function() {
294                    var $this = $(this),
295                        contentHeight = (iconHeight + 30) + (titleHeight + 10) + (descHeight + 70) + 34;
296                    /*
297                     * Fix AM-2418.
298                     *
299                     * Column height setting of VC Animated Column doesn't work when Animated Column
300                     * content is higher than the setting. So, check column height setting first.
301                     * - If the column height setting < Animated Column height, update the column
302                     *   height based on column height setting.
303                     */
304                    var $columnHeight = contentHeight * 1.5 + 50;
305                    var $minHeight = parseInt( $this.css( 'min-height' ), 10 );
306                    if ( ! isNaN( $minHeight ) ) {
307                        if ( $minHeight < $columnHeight ) {
308                            $columnHeight = $minHeight;
309                        }
310                    }
311
312                    $this.height( $columnHeight );
313
314                    var $box_height = $this.outerHeight(true),
315                        $icon_height = $this.find('.animated-column-icon, .animated-column-holder .mk-svg-icon').height();
316
317                    $this.find('.animated-column-holder').css({
318                        'paddingTop': $box_height / 2 - $icon_height
319                    });
320
321
322                    $this.animate({opacity:1}, 300);
323                });
324            } else {
325                $this.find('.animated-column-item').each(function() {
326                    var $this = $(this),
327                        halfHeight = $this.height() / 2,
328                        halfIconHeight = $this.find('.animated-column-icon, .animated-column-holder .mk-svg-icon').height()/2,
329                        halfTitleHeight = $this.find('.animated-column-simple-title').height()/2;
330
331                    $this.find('.animated-column-holder').css({
332                        'paddingTop': halfHeight - halfIconHeight
333                    });
334
335                    $this.find('.animated-column-title').css({
336                        'paddingTop': halfHeight - halfTitleHeight
337                    });
338
339                    $this.animate({
340                        opacity:1
341                    }, 300);
342
343                });
344            }
345        }
346
347        $('.mk-animated-columns').each(function() {
348            var that = this;
349            MK.core.loadDependencies([ MK.core.path.plugins + 'tweenmax.js' ], function() {
350                var $this = $(that),
351                    $parent = $this.parent().parent(),
352                    $columns = $parent.find('.column_container'),
353                    index = $columns.index($this.parent());
354                    // really bad that we cannot read it before bootstrap - needs full shortcode refactor
355
356                if($this.hasClass('full-style')) {
357                    $this.find('.animated-column-item').hover(
358                    function() {
359                        TweenLite.to($(this).find(".animated-column-holder"), 0.5, {
360                            top: '-15%',
361                            ease: Back.easeOut
362                        });
363                        TweenLite.to($(this).find(".animated-column-desc"), 0.5, {
364                            top: '50%',
365                            ease: Expo.easeOut
366                        }, 0.4);
367                        TweenLite.to($(this).find(".animated-column-btn"), 0.3, {
368                            top: '50%',
369                            ease: Expo.easeOut
370                        }, 0.6);
371                    },
372                    function() {
373
374                        TweenLite.to($(this).find(".animated-column-holder"), 0.5, {
375                            top: '0%',
376                            ease: Back.easeOut, easeParams:[3]
377                        });
378                        TweenLite.to($(this).find(".animated-column-desc"), 0.5, {
379                            top: '100%',
380                            ease: Back.easeOut
381                        }, 0.4);
382                        TweenLite.to($(this).find(".animated-column-btn"), 0.5, {
383                            top: '100%',
384                            ease: Back.easeOut
385                        }, 0.2);
386                    });
387                }
388
389                if($this.hasClass('simple-style')) {
390                    $this.find('.animated-column-item').hover(
391                    function() {
392                        TweenLite.to($(this).find(".animated-column-holder"), 0.7, {
393                            top: '100%',
394                            ease: Expo.easeOut
395                        });
396                        TweenLite.to($(this).find(".animated-column-title"), 0.7, {
397                            top: '0%',
398                            ease: Back.easeOut
399                        }, 0.2);
400                    },
401                    function() {
402                        TweenLite.to($(this).find(".animated-column-holder"), 0.7, {
403                            top: '0%',
404                            ease: Expo.easeOut
405                        });
406                        TweenLite.to($(this).find(".animated-column-title"), 0.7, {
407                            top: '-100%',
408                            ease: Back.easeOut
409                        }, 0.2);
410                    });
411                }
412
413                if($columns.length === index + 1) {
414                    prepareCols($this);
415                    $(window).on("resize", function() {
416                            setTimeout(prepareCols($this), 1000);
417                    });
418                }
419
420                MK.utils.eventManager.subscribe('iconsInsert', function() {
421                    prepareCols($this);
422                });
423            });
424
425        });
426    }
427
428    $(window).on('load vc_reload', mk_animated_cols);
429
430}(jQuery));
431
432(function($) {
433    'use strict';
434
435    var core = MK.core,
436    	path = MK.core.path;
437
438    MK.component.BannerBuilder = function( el ) {
439    	var init = function(){
440            var $this = $(el),
441                  data = $this.data( 'bannerbuilder-config' );
442
443            MK.core.loadDependencies([ MK.core.path.plugins + 'jquery.flexslider.js' ], function() {
444                $this.flexslider({
445                        selector: '.mk-banner-slides > .mk-banner-slide',
446                        animation: data.animation,
447                        smoothHeight: false,
448                        direction:'horizontal',
449                        slideshow: true,
450                        slideshowSpeed: data.slideshowSpeed,
451                        animationSpeed: data.animationSpeed,
452                        pauseOnHover: true,
453                        directionNav: data.directionNav,
454                        controlNav: false,
455                        initDelay: 2000,
456                        prevText: '',
457                        nextText: '',
458                        pauseText: '',
459                        playText: ''
460                });
461            });
462    	};
463
464    	return {
465    		init : init
466    	};
467    };
468
469})(jQuery);
470
471
472
473
474
475
476
477
478(function($) {
479    'use strict';
480
481    var zIndex = 0;
482
483    $('.mk-newspaper-wrapper').on('click', '.blog-loop-comments', function (event) {
484        event.preventDefault();
485
486        var $this = $(event.currentTarget);
487        var $parent = $this.parents('.mk-blog-newspaper-item');
488
489        $parent.css('z-index', ++zIndex);
490        $this.parents('.newspaper-item-footer').find('.newspaper-social-share').slideUp(200).end().find('.newspaper-comments-list').slideDown(200);
491        setTimeout( function() {
492          MK.utils.eventManager.publish('item-expanded');
493        }, 300);
494    });
495
496    $('.mk-newspaper-wrapper').on('click', '.newspaper-item-share', function (event) {
497        event.preventDefault();
498
499        var $this = $(event.currentTarget);
500        var $parent = $this.parents('.mk-blog-newspaper-item');
501
502        $parent.css('z-index', ++zIndex);
503        $this.parents('.newspaper-item-footer').find('.newspaper-comments-list').slideUp(200).end().find('.newspaper-social-share').slideDown(200);
504        setTimeout( function() {
505          MK.utils.eventManager.publish('item-expanded');
506        }, 300);
507    });
508
509    var init = function init() {
510
511        // setTimeout Trick to make the VC Front Editor to load the images as well
512        setTimeout( function() {
513
514            // Get All Related Layers
515            var $blog = $('.mk-blog-container');
516            var $imgs = $blog.find('img[data-mk-image-src-set]');
517
518            if ( $blog.hasClass('mk-blog-container-lazyload') && $imgs.length ) {
519
520                // Load Images if the user scrolls to them
521                $(window).on('scroll.mk_blog_lazyload', MK.utils.throttle(500, function(){
522                    $imgs.each(function(index, elem) {
523                        if ( MK.utils.isElementInViewport(elem) ) {
524                            MK.component.ResponsiveImageSetter.init( $(elem) );
525                            $imgs = $imgs.not( $(elem) );  // Remove element from the list when loaded to reduce the amount of iteration in each()
526                        }
527                    });
528                }));
529
530                $(window).trigger('scroll.mk_blog_lazyload');
531                $(window).trigger('resize')
532
533                // Handle the resize
534                MK.component.ResponsiveImageSetter.onResize($imgs);
535
536            } else {
537
538                MK.component.ResponsiveImageSetter.init($imgs);
539                MK.component.ResponsiveImageSetter.onResize($imgs);
540
541            }
542
543        }, 50);
544
545        // If in VC Editor Page, Trigger Resize after 2 second (AM-2490)
546        // This is to fix the Pagination Overlapping issue on first initial blog insert as it takes VC about 1 second to change the Blog Layout on initial stage
547        if ( $('body').hasClass('vc_editor') ) {
548            setTimeout( function() {
549                $(window).trigger('resize');
550            }, 2000)
551        }
552
553        $('.featured-image').on('click', function (event) {
554          var $this = $(event.currentTarget);
555
556          if (
557            $this.parents('.mk-jupiter-blog').length === 0 ||
558            $this.parents( '.mk-blog-spotlight-item' ).length !== 0
559          ) {
560            return;
561          }
562
563          window.location.href = $this.find('.post-type-badge').attr('href');
564        })
565    }
566
567    init();
568
569    // VC Front-End Editor
570    $(window).on('vc_reload mk-image-loaded', init);
571
572}(jQuery));
573
574(function($) {
575    'use strict';
576
577    var core = MK.core,
578    	path = MK.core.path;
579
580    // TODO: Repair after Rifat. He repeated The same code twice - other same code is in photoalbum (why by the way?!).
581    // Split it into two separate components when you see reusage
582    MK.component.Category = function( el ) {
583        var init = function(){
584			core.loadDependencies([ path.plugins + 'pixastic.js' ], function() {
585         		blurImage($('.blur-image-effect .mk-loop-item .item-holder '));
586         	});
587
588			core.loadDependencies([ path.plugins + 'minigrid.js' ], masonry);
589        };
590
591        var blurImage = function($item) {
592         	return $item.each(function() {
593				var $_this = $(this);
594
595				var img = $_this.find('.item-thumbnail');
596
597				img.clone().addClass("blur-effect item-blur-thumbnail").removeClass('item-thumbnail').prependTo(this);
598
599				var blur_this = $(".blur-effect", this);
600					blur_this.each(function(index, element){
601						if (img[index].complete === true) {
602							Pixastic.process(blur_this[index], "blurfast", {amount:0.5});
603						}
604						else {
605							blur_this.load(function () {
606								Pixastic.process(blur_this[index], "blurfast", {amount:0.5});
607							});
608						}
609					});
610			});
611        };
612
613        // TODO: find other shortcodes like this design and make it as a component
614        var masonry = function() {
615        	if(!$('.js-masonry').length) return;
616
617	        function grid() {
618	            minigrid({
619		            container: '.js-masonry',
620		            item: '.js-masonry-item',
621		            gutter: 0
622	            });
623	        }
624
625	        grid();
626	        $(window).on('resize', grid);
627        };
628
629        return {
630         	init : init
631        };
632    };
633
634})(jQuery);
635
636
637
638
639
640
641
642
643(function($) {
644    'use strict';
645
646    var core = MK.core,
647        path = core.path;
648
649    MK.component.Chart = function(el) {
650        var init = function() {
651            MK.core.loadDependencies([MK.core.path.plugins + 'jquery.easyPieChart.js'], function() {
652                $('.mk-chart__chart').each(function() {
653                    var $this = $(this),
654                        $parent_width = $(this).parent().width(),
655                        $chart_size = parseInt($this.attr('data-barSize'));
656
657                    if ($parent_width < $chart_size) {
658                        $chart_size = $parent_width !== 0 ? $parent_width : $chart_size;
659                        $this.css('line-height', $chart_size);
660                        $this.find('i').css({
661                            'line-height': $chart_size + 'px'
662                        });
663                        $this.css({
664                            'line-height': $chart_size + 'px'
665                        });
666                    }
667
668                    var build = function() {
669                        $this.easyPieChart({
670                            animate: 1300,
671                            lineCap: 'butt',
672                            lineWidth: $this.attr('data-lineWidth'),
673                            size: $chart_size,
674                            barColor: $this.attr('data-barColor'),
675                            trackColor: $this.attr('data-trackColor'),
676                            scaleColor: 'transparent',
677                            onStep: function(value) {
678                                this.$el.find('.chart-percent span').text(Math.ceil(value));
679                            }
680                        });
681                    };
682
683                    // refactored only :in-viewport logic. rest is to-do
684                    MK.utils.scrollSpy(this, {
685                        position: 'bottom',
686                        after: build
687                    });
688                });
689            });
690        };
691
692        return {
693            init: init
694        };
695    };
696
697})(jQuery);
698
699(function($) {
700    "use strict";
701
702    $('.mk-clients.column-style').each(function() {
703        var $group = $(this),
704            $listItems = $group.find('li'),
705            listItemsCount = $listItems.length,
706            listStyle = $group.find('ul').attr('style') || '',
707            fullRowColumnsCount = $group.find('ul:first-of-type li').length;
708
709        function recreateGrid() { 
710            var i;
711
712            $listItems.unwrap();
713
714            if (window.matchMedia('(max-width: 550px)').matches && fullRowColumnsCount >= 1) {
715                for (i = 0; i < listItemsCount; i += 1) {
716                    $listItems.slice(i, i + 1)
717                        .wrapAll('<ul class="mk-clients-fixed-list" style="' + listStyle + '"></ul>');
718                }
719            } else if (window.matchMedia('(max-width: 767px)').matches && fullRowColumnsCount >= 2) {
720                for (i = 0; i < listItemsCount; i += 2) {
721                    $listItems.slice(i, i + 2)
722                        .wrapAll('<ul class="mk-clients-fixed-list" style="' + listStyle + '"></ul>');
723                }
724            } else if (window.matchMedia('(max-width: 960px)').matches && fullRowColumnsCount >= 3) {
725                for (i = 0; i < listItemsCount; i += 3) {
726                    $listItems.slice(i, i + 3)
727                        .wrapAll('<ul class="mk-clients-fixed-list" style="' + listStyle + '"></ul>');
728                }
729            } else {
730                for (i = 0; i < listItemsCount; i += fullRowColumnsCount) {
731                    $listItems.slice(i, i + fullRowColumnsCount)
732                        .wrapAll('<ul style="' + listStyle + '"></ul>');
733                }
734            }
735        }
736        
737        recreateGrid();
738        $(window).on('resize', recreateGrid);
739
740    });
741
742}(jQuery));
743(function($) {
744    'use strict';
745    // Update countdown style in VC FEE - AM-2684.
746    $(window).on('vc_reload', function() {
747        $('.mk-event-countdown-ul').each(function() {
748            if ($(this).width() < 750) {
749                $(this).addClass('mk-event-countdown-ul-block');
750            } else {
751                $(this).removeClass('mk-event-countdown-ul-block');
752            }
753        });
754    });
755})(jQuery);
756(function($) {
757	'use strict';
758
759    $('.mk-edge-slider').find('video').each(function() {
760        this.pause();
761        this.currentTime = 0;
762    });
763
764	MK.component.EdgeSlider = function( el ) {
765		var self = this,
766			$this = $( el ),
767            $window = $(window),
768            $wrapper = $this.parent(),
769			config = $this.data( 'edgeslider-config' ),
770            $nav = $( config.nav ),
771            $prev = $nav.find( '.mk-edge-prev' ),
772            $prevTitle = $prev.find( '.nav-item-caption' ),
773            $prevBg = $prev.find('.edge-nav-bg'),
774            $next = $nav.find( '.mk-edge-next' ),
775            $nextTitle = $next.find( '.nav-item-caption' ),
776            $nextBg = $next.find('.edge-nav-bg'),
777            $navBtns = $nav.find( 'a' ),
778            $pagination = $( '.swiper-pagination' ),
779            $skipBtn = $( '.edge-skip-slider' ),
780            $opacityLayer = $this.find('.edge-slide-content'),
781            $videos = $this.find('video'),
782            currentSkin = null,
783            currentPoint = null,
784            winH = null,
785            opacity = null,
786            offset = null;
787
788        var callbacks = {
789    		onInitialize : function( slides ) {
790    			self.$slides = $( slides );
791
792				self.slideContents = $.map( self.$slides, function( slide ) {
793					var $slide = $( slide ),
794						title = $slide.find('.edge-slide-content .edge-title').first().text(),
795						skin = $slide.attr("data-header-skin"),
796						image = $slide.find('.mk-section-image').attr('data-thumb') ||
797								$slide.find('.mk-video-section-touch').attr('data-thumb'),
798						bgColor = $slide.find('.mk-section-image').css('background-color');
799
800
801					return {
802						skin: skin,
803						title: title,
804						image: image,
805						bgColor: bgColor
806					};
807				});
808
809                // Set position fixed here rather than css to avoid flash of strangely styled slides befor plugin init
810                if(MK.utils.isSmoothScroll) $this.css('position', 'fixed');
811
812				setNavigationContent( 1, self.$slides.length - 1 );
813				setSkin( 0 );
814                // stopVideos();
815                playVideo(0);
816
817                setTimeout( function() {
818                    $( '.edge-slider-loading' ).fadeOut( '100' );
819                }, 1000 );
820    		},
821
822            onBeforeSlide : function( id ) {
823
824            },
825
826    		onAfterSlide : function( id ) {
827    			setNavigationContent( nextFrom(id), prevFrom(id) );
828    			setSkin( id );
829                stopVideos(); // stop all others if needed
830                playVideo( id );
831    		}
832    	};
833
834
835        var nextFrom = function nextFrom(id) {
836            return ( id + 1 === self.$slides.length ) ? 0 : id + 1;
837        };
838
839
840        var prevFrom = function prevFrom(id) {
841            return ( id - 1 === -1 ) ? self.$slides.length - 1 : id - 1;
842        };
843
844
845        var setNavigationContent = function( nextId, prevId ) {
846            if(self.slideContents[ prevId ]) {
847        		$prevTitle.text( self.slideContents[ prevId ].title );
848        		$prevBg.css( 'background',
849        			self.slideContents[ prevId ].image !== 'none' ?
850        				'url(' + self.slideContents[ prevId ].image + ')' :
851        				self.slideContents[ prevId ].bgColor );
852            }
853
854            if(self.slideContents[ nextId ]) {
855        		$nextTitle.text( self.slideContents[ nextId ].title );
856        		$nextBg.css( 'background',
857        			self.slideContents[ nextId ].image !== 'none' ?
858        				'url(' + self.slideContents[ nextId ].image + ')' :
859        				self.slideContents[ nextId ].bgColor );
860            }
861        };
862
863
864        var setSkin = function setSkin( id ) {
865        	currentSkin = self.slideContents[ id ].skin;
866
867          	$navBtns.attr('data-skin', currentSkin);
868          	$pagination.attr('data-skin', currentSkin);
869         	$skipBtn.attr('data-skin', currentSkin);
870
871         	if( self.config.firstEl ) {
872         		MK.utils.eventManager.publish( 'firstElSkinChange', currentSkin );
873         	}
874        };
875
876
877        var stopVideos = function stopVideos() {
878            $videos.each(function() {
879                this.pause();
880                this.currentTime = 0;
881            });
882        };
883
884
885        var playVideo = function playVideo(id) {
886            var video = self.$slides.eq(id).find('video').get(0);
887            if(video) {
888                video.play();
889                console.log('play video in slide nr ' + id);
890            }
891
892        };
893
894
895        var onResize = function onResize() {
896            var height = $wrapper.height();
897            $this.height( height );
898
899            var width = $wrapper.width();
900            $this.width( width );
901
902            winH = $window.height();
903            offset = $this.offset().top;
904
905            if(!MK.utils.isSmoothScroll) return;
906            if(MK.utils.isResponsiveMenuState()) {
907                // Reset our parallax layers position and styles when we're in responsive mode
908                $this.css({
909                    '-webkit-transform': 'translateZ(0)',
910                    '-moz-transform': 'translateZ(0)',
911                    '-ms-transform': 'translateZ(0)',
912                    '-o-transform': 'translateZ(0)',
913                    'transform': 'translateZ(0)',
914                    'position': 'absolute'
915                });
916                $opacityLayer.css({
917                    'opacity': 1
918                });
919            } else {
920                // or proceed with scroll logic when we assume desktop screen
921                onScroll();
922            }
923        };
924
925        var onScroll = function onScroll() {
926            currentPoint = - MK.val.scroll();
927
928            if( offset + currentPoint <= 0 ) {
929                opacity = 1 + ((offset + currentPoint) / winH) * 2;
930                opacity = Math.min(opacity, 1);
931                opacity = Math.max(opacity, 0);
932
933                $opacityLayer.css({
934                    opacity: opacity
935                });
936            }
937
938            $this.css({
939                '-webkit-transform': 'translateY(' + currentPoint + 'px) translateZ(0)',
940                '-moz-transform': 'translateY(' + currentPoint + 'px) translateZ(0)',
941                '-ms-transform': 'translateY(' + currentPoint + 'px) translateZ(0)',
942                '-o-transform': 'translateY(' + currentPoint + 'px) translateZ(0)',
943                'transform': 'translateY(' + currentPoint + 'px) translateZ(0)',
944                'position': 'fixed'
945            });
946        };
947
948        onResize();
949        $window.on('load', onResize);
950        $window.on('resize', onResize);
951        window.addResizeListener( $wrapper.get(0), onResize );
952
953        if(MK.utils.isSmoothScroll) {
954            onScroll();
955            $window.on('scroll', function() {
956                if(MK.utils.isResponsiveMenuState()) return;
957                window.requestAnimationFrame(onScroll);
958            });
959        }
960
961		this.el = el;
962		this.config = $.extend( config, callbacks );
963		this.slideContents = null; // cache slide contents
964
965        // Let mk_slider know it's EdgeSlider
966        this.config.edgeSlider = true;
967	};
968
969	MK.component.EdgeSlider.prototype = {
970		init : function() {
971			// Inherit from Slider. add prototypes if needed
972			var slider = new MK.ui.Slider( this.el, this.config );
973			slider.init();
974		}
975	};
976
977})(jQuery);
978
979(function ($) {
980	'use strict';
981
982var init = function init() {
983	$('.mk-faq-wrapper').each( function() {
984		var $this = $(this);
985		var $filter = $this.find('.filter-faq');
986		var $filterItem = $filter.find('a');
987		var $faq = $this.find('.mk-faq-container > div');
988		var currentFilter = '';
989
990		$filterItem.on('click', function(e) {
991			var $this = $(this);
992
993			currentFilter = $this.data('filter');
994			$filterItem.removeClass('current');
995			$this.addClass('current');
996
997			filterItems( currentFilter );
998
999			e.preventDefault();
1000		});
1001
1002		function filterItems( cat ) {
1003			if( cat === '' ) {
1004				$faq.slideDown(200).removeClass('hidden');
1005				return;
1006			}
1007			$faq.not( '.' + cat ).slideUp(200).addClass('hidden');
1008			$faq.filter( '.' + cat ).slideDown(200).removeClass('hidden');
1009		}
1010	});
1011}
1012init();
1013$(window).on('vc_reload', init);
1014
1015}( jQuery ));
1016/* Flickr Feeds */
1017/* -------------------------------------------------------------------- */
1018(function ($) {
1019    'use strict';
1020function mk_flickr_feeds() {
1021
1022    $('.mk-flickr-feeds').each(function() {
1023        var $this = $(this),
1024            apiKey = $this.attr('data-key'),
1025            userId = $this.attr('data-userid'),
1026            perPage = $this.attr('data-count'),
1027            column = $this.attr('data-column');
1028
1029        if ( ! $( '.mk-flickr-feeds' ).is( ':empty' ) ) {
1030            return;
1031        }
1032
1033        jQuery.getJSON('https://api.flickr.com/services/rest/?format=json&method=' + 'flickr.photos.search&api_key=' + apiKey + '&user_id=' + userId + '&&per_page=' + perPage + '&jsoncallback=?', function(data) {
1034
1035            jQuery.each(data.photos.photo, function(i, rPhoto) {
1036                var basePhotoURL = 'http://farm' + rPhoto.farm + '.static.flickr.com/' + rPhoto.server + '/' + rPhoto.id + '_' + rPhoto.secret;
1037
1038                var thumbPhotoURL = basePhotoURL + '_q.jpg';
1039                var mediumPhotoURL = basePhotoURL + '.jpg';
1040
1041                var photoStringStart = '<a ';
1042                var photoStringEnd = 'title="' + rPhoto.title + '" rel="flickr-feeds" class="mk-lightbox flickr-item jupiter-donut-colitem" href="' + mediumPhotoURL + '"><img src="' + thumbPhotoURL + '" alt="' + rPhoto.title + '"/></a>;';
1043                var photoString = (i < perPage) ? photoStringStart + photoStringEnd : photoStringStart + photoStringEnd;
1044
1045                jQuery(photoString).appendTo($this);
1046            });
1047        });
1048    });
1049
1050}
1051    mk_flickr_feeds();
1052    $( window ).on( 'vc_reload', mk_flickr_feeds );
1053})(jQuery);
1054
1055jQuery(function($) {
1056
1057  'use strict';
1058
1059  // Get All Related Layers
1060  var init = function init() {
1061    var $gallery = $('.mk-gallery');
1062    var $imgs = $gallery.find('img[data-mk-image-src-set]');
1063
1064    if ( $gallery.hasClass('mk-gallery-lazyload') && $imgs.length ) {
1065
1066      // Load Images if the user scrolls to them
1067      $(window).on('scroll.mk_gallery_lazyload', MK.utils.throttle(500, function(){
1068        $imgs.each(function(index, elem) {
1069          if ( MK.utils.isElementInViewport(elem) ) {
1070            MK.component.ResponsiveImageSetter.init( $(elem) );
1071            $imgs = $imgs.not( $(elem) );  // Remove element from the list when loaded to reduce the amount of iteration in each()
1072          }
1073        });
1074      }));
1075
1076      $(window).trigger('scroll.mk_gallery_lazyload');
1077
1078      // Handle the resize
1079      MK.component.ResponsiveImageSetter.onResize($imgs);
1080
1081    } else {
1082
1083      MK.component.ResponsiveImageSetter.init($imgs);
1084      MK.component.ResponsiveImageSetter.onResize($imgs);
1085
1086    }
1087  }
1088
1089  init();
1090  $(window).on('vc_reload mk-image-loaded', init);
1091
1092});
1093
1094
1095
1096jQuery(function($) {
1097
1098  'use strict';
1099
1100  // Get All Related Layers
1101  var init = function init() {
1102    var $image = $('.mk-image');
1103    var $imgs = $image.find('img[data-mk-image-src-set]');
1104
1105    if ( $image.hasClass('mk-image-lazyload') && $imgs.length ) {
1106
1107      // Load Images if the user scrolls to them
1108      $(window).on('scroll.mk_image_lazyload', MK.utils.throttle(500, function(){
1109        $imgs.each(function(index, elem) {
1110          if ( MK.utils.isElementInViewport(elem) ) {
1111            MK.component.ResponsiveImageSetter.init( $(elem) );
1112            $imgs = $imgs.not( $(elem) );  // Remove element from the list when loaded to reduce the amount of iteration in each()
1113          }
1114        });
1115      }));
1116
1117      $(window).trigger('scroll.mk_image_lazyload');
1118
1119      // Handle the resize
1120      MK.component.ResponsiveImageSetter.onResize($imgs);
1121
1122    } else {
1123
1124      MK.component.ResponsiveImageSetter.init($imgs);
1125      MK.component.ResponsiveImageSetter.onResize($imgs);
1126
1127    }
1128  }
1129
1130  init();
1131  $(window).on('vc_reload mk-image-loaded', init);
1132
1133});
1134
1135
1136
1137(function($) {
1138  'use strict';
1139
1140  /* Page Section Intro Effects */
1141  /* -------------------------------------------------------------------- */
1142
1143  function mk_section_intro_effects() {
1144    if (!MK.utils.isMobile()) {
1145      if (!$.exists('.mk-page-section.intro-true')) return;
1146
1147      $('.mk-page-section.intro-true').each(function() {
1148        var that = this;
1149        MK.core.loadDependencies([ MK.core.path.plugins + 'jquery.sectiontrans.js', MK.core.path.plugins + 'tweenmax.js' ], function() {
1150          var $this = $(that),
1151            $pageCnt = $this.parent().nextAll('div'),
1152            windowHeight = $(window).height(),
1153            effectName = $this.attr('data-intro-effect'),
1154            $header = $('.mk-header');
1155
1156          var effect = {
1157            fade: new TimelineLite({paused: true})
1158              .set($pageCnt, { opacity: 0, y: windowHeight * 0.3 })
1159              .to($this, 1, { opacity: 0, ease:Power2.easeInOut })
1160              .to($pageCnt, 1, { opacity: 1, y: 0, ease:Power2.easeInOut}, "-=.7")
1161              .set($this, { zIndex: '-1'}),
1162
1163            zoom_out: new TimelineLite({paused: true})
1164              .set($pageCnt, { opacity: 0, y: windowHeight * 0.3})
1165              .to($this, 1.5, { opacity: .8, scale: 0.8, y: -windowHeight - 100, ease:Strong.easeInOut })
1166              .to($pageCnt, 1.5, { opacity: 1, y:  0, ease:Strong.easeInOut}, "-=1.3"),
1167
1168            shuffle: new TimelineLite({paused: true})
1169              .to($this, 1.5, { y: -windowHeight/2, ease:Strong.easeInOut })
1170              .to($pageCnt.first(), 1.5, { paddingTop: windowHeight/2, ease:Strong.easeInOut }, "-=1.3")
1171          };
1172
1173          console.log($pageCnt);
1174
1175
1176          $this.sectiontrans({
1177            effect: effectName
1178          });
1179
1180          if($this.hasClass('shuffled')) {
1181            TweenLite.set($this, { y: -windowHeight/2 });
1182            TweenLite.set($this.nextAll('div').first(), { paddingTop: windowHeight/2 });
1183          }
1184
1185          $('body').on('page_intro', function() {
1186            MK.utils.scroll.disable();
1187            $(this).data('intro', true);
1188            effect[effectName].play();
1189            setTimeout(function() {
1190              $header.addClass('pre-sticky');
1191              $header.addClass('a-sticky');
1192              $('.mk-header-padding-wrapper').addClass('enable-padding');
1193              $('body').data('intro', false);
1194              if(effectName === 'shuffle') $this.addClass('shuffled');
1195            }, 1000);
1196
1197            setTimeout(MK.utils.scroll.enable, 1500);
1198          });
1199
1200          $('body').on('page_outro', function() {
1201            MK.utils.scroll.disable();
1202            $(this).data('intro', true);
1203            effect[effectName].reverse();
1204            setTimeout(function() {
1205              $header.removeClass('pre-sticky');
1206              $header.removeClass('a-sticky');
1207              $('.mk-header-padding-wrapper').removeClass('enable-padding');
1208              $('body').data('intro', false);
1209              if($this.hasClass('shuffled')) $this.removeClass('shuffled');
1210            }, 1000);
1211
1212            setTimeout(MK.utils.scroll.enable, 1500);
1213          });
1214        });
1215      });
1216
1217    } else {
1218      $('.mk-page-section.intro-true').each(function() {
1219        $(this).attr('data-intro-effect', '');
1220      });
1221    }
1222  }
1223
1224  mk_section_intro_effects();
1225
1226  var debounceResize = null;
1227  $(window).on("resize", function() {
1228    if( debounceResize !== null ) { clearTimeout( debounceResize ); }
1229    debounceResize = setTimeout( mk_section_intro_effects, 300 );
1230  });
1231
1232  /* Page Section Adaptive Height */
1233  /* -------------------------------------------------------------------- */
1234
1235  function mk_section_adaptive_height() {
1236      $( ".mk-page-section.mk-adaptive-height" ).each( function() {
1237          var imageHeight = $( this ).find( ".mk-adaptive-image" ).height();
1238          $( this ).css( "height", imageHeight );
1239      });
1240  }
1241
1242  $( window ).on( "load resize", mk_section_adaptive_height );
1243
1244
1245  /* Page Section Image Loader */
1246  /* -------------------------------------------------------------------- */
1247
1248  // Get All Related Layers
1249  var init = function init() {
1250    var $allLayers = $('.mk-page-section .background-layer').filter(function(index) {
1251      var isLazyLoad = $(this).attr('data-mk-lazyload') === 'true';
1252      if ( !isLazyLoad ) {
1253        MK.component.BackgroundImageSetter.init( $(this) );
1254      }
1255      return isLazyLoad;
1256    });;
1257
1258    // Load BG Images if the user scroll to them
1259    if ( $allLayers.length ) {
1260
1261      $(window).on('scroll.mk_page_section_lazyload', MK.utils.throttle(500, function(){
1262        $allLayers.each(function(index, elem) {
1263          if ( MK.utils.isElementInViewport(elem) ) {
1264            MK.component.BackgroundImageSetter.init( $(elem) );
1265            $allLayers = $allLayers.not( $(elem) );  // Remove element from the list when loaded to reduce the amount of iteration in each()
1266          }
1267        });
1268      }));
1269
1270      // First init
1271      $(window).trigger('scroll.mk_page_section_lazyload');
1272
1273      // Handle the resize
1274      MK.component.BackgroundImageSetter.onResize($allLayers);
1275
1276    }
1277  }
1278  init();
1279
1280  $(window).on('vc_reload', init);
1281
1282  /* Page Section Layout */
1283  /* -------------------------------------------------------------------- */
1284
1285  function mk_section_half_layout() {
1286    $(".mk-page-section.half_boxed").each(function() {
1287      var $section = $(this);
1288      if ($(window).width() > jupiterDonutVars.gridWidth) {
1289        var margin = ($(window).width() - jupiterDonutVars.gridWidth) / 2;
1290        var $section_inner = $section.find('.mk-half-layout-inner');
1291        if($section.hasClass('half_left_layout')){
1292          $section_inner.css({
1293            marginRight: margin + 'px'
1294          });
1295        }
1296        if($section.hasClass('half_right_layout')){
1297          $section_inner.css({
1298            marginLeft: margin + 'px'
1299          });
1300        }
1301      }
1302    });
1303  }
1304
1305  $(window).on("load resize", mk_section_half_layout);
1306
1307	/* Page Section - Fluid Width Equal Height Columns */
1308	/* -------------------------------------------------------------------- */
1309	function mk_reset_section_fluid_width_equal_height_columns() {
1310		var $colWrappers = '', maxWidth = 850;
1311
1312		$colWrappers = $('.page-section-content.fluid-width-equal-height-columns');
1313
1314		$colWrappers.each(function() {
1315			var $colWrapper = '', colHeight = 0;
1316			$colWrapper = $(this);
1317			$colWrapper.find('.wpb_column.column_container').each(function() {
1318				var $col = $(this), size = $(this).children('div').length;
1319				if (size > 0) {
1320					$col.removeAttr("style");
1321					$col.children('div').each(function() {
1322						var $this = $( this );
1323						/**
1324						 * Fix Advanced Google Maps (AGM) issue on page section.
1325						 *
1326						 * Problem: AGM set the height as inline CSS property (style attribute).
1327						 * In this case, the style attribute will be removed before checking the
1328						 * elements height in each of the column. That's why AGM container will
1329						 * loose the height and the map can't be displayed properly (only 1px)
1330						 * because it overlap other row in the page. We need to check if current
1331						 * element is AGM or not before removing style attribute of the element.
1332						 */
1333						if ( ! $this.hasClass( 'mk-advanced-gmaps' ) ) {
1334							$this.removeAttr( 'style' );
1335						}
1336					});
1337				}
1338			});
1339		});
1340	}
1341
1342	function mk_section_fluid_width_equal_height_columns() {
1343		mk_reset_section_fluid_width_equal_height_columns();
1344
1345		var $colWrappers = '', maxWidth = 850, $pageSection = $('.page-section-content');
1346
1347		if ( ! $pageSection.hasClass('.fluid-width-equal-height-columns') ) {
1348			$pageSection.find('.wpb_column.column_container').removeAttr( 'style' );
1349			$pageSection.find('.wpb_column.column_container .vc_element').removeAttr( 'style' );
1350		}
1351
1352		$colWrappers = $('.page-section-content.fluid-width-equal-height-columns');
1353
1354		$colWrappers.each(function() {
1355			var $colWrapper = '', colHeight = 0;
1356			$colWrapper = $(this);
1357
1358			if ($colWrapper.length > 0) {
1359				/* Get the minimum height of the wrapper */
1360				colHeight = $colWrappers.outerHeight(true);
1361				$colWrapper.find('.wpb_column.column_container').each(function() {
1362					var $col = $(this);
1363					if ($col.length > 0) {
1364						colHeight = ($col.outerHeight(true) > colHeight) ? $col.outerHeight(true) : colHeight;
1365					}
1366				});
1367			}
1368
1369			if (colHeight > 0) {
1370				$colWrapper.find('.wpb_column.column_container').each(function() {
1371					var $col = $(this), size = $(this).children('div').length;
1372					if (size > 0) {
1373						colHeight = ($(window).width() < maxWidth) ? 'initial' : colHe
1373ight;
1374						$col.css("height", colHeight);
1375						if ($colWrapper.hasClass('vertical-align-center')) {
1376							$col.children('div').each(function() {
1377								var elHeight = ($(window).width() < maxWidth) ? 'initial' : (colHeight/size);
1378								/**
1379								 * Fix Advanced Google Maps (AGM) issue on page section.
1380								 */
1381								if ( ! $(this).hasClass( 'mk-advanced-gmaps' ) ) {
1382									$(this).css("height", elHeight);
1383								}
1384							});
1385						}
1386					}
1387				});
1388			}
1389		});
1390	}
1391	$(window).on('load vc_reload', function() {
1392		setTimeout(function() {
1393		/*
1394			Somehow the values are not correctly updated for the screens
1395			and we need to put setTimeout to fix the issue.
1396		*/
1397		mk_section_fluid_width_equal_height_columns();
1398		}, 500);
1399	});
1400
1401	var debounceResize = null;
1402	$(window).on("resize", function() {
1403		if( debounceResize !== null ) { clearTimeout( debounceResize ); }
1404		debounceResize = setTimeout( mk_section_fluid_width_equal_height_columns(), 500 );
1405	});
1406
1407}(jQuery));
1408
1409(function($) {
1410	'use strict';
1411
1412	function mk_page_title_parallax() {
1413	    if (!MK.utils.isMobile()) {
1414
1415	        $('.mk-effect-wrapper').each(function() {
1416	            var $this = $(this),
1417                	progressVal,
1418                    currentPoint,
1419                    ticking = false,
1420                    scrollY = MK.val.scroll(),
1421                    $window = $(window),
1422                    windowHeight = $(window).height(),
1423                    parentHeight = $this.outerHeight(),
1424                    startPoint = 0,
1425                    endPoint = $this.offset().top + parentHeight,
1426                    effectLayer = $this.find('.mk-effect-bg-layer'),
1427                    gradientLayer = effectLayer.find('.mk-effect-gradient-layer'),
1428                    cntLayer = $this.find('.mk-page-title-box-content'),
1429                    animation = effectLayer.attr('data-effect'),
1430                    top = $this.offset().top,
1431                    height = $this.outerHeight();
1432
1433                var parallaxSpeed = 0.7,
1434                    zoomFactor = 1.3;
1435
1436                var parallaxTopGap = function() {
1437                    var gap = top * parallaxSpeed;
1438
1439                    effectLayer.css({
1440                        height : height + gap + 'px',
1441                        top : (-gap) + 'px'
1442                    });
1443                };
1444
1445
1446                if (animation == ("parallax" || "parallaxZoomOut") ) {
1447                    parallaxTopGap();
1448                }
1449
1450                var animationSet = function() {
1451                    scrollY = MK.val.scroll();
1452
1453                    if (animation == "parallax") {
1454                        currentPoint = (startPoint + scrollY) * parallaxSpeed;
1455                        effectLayer.get(0).style.transform = 'translateY(' + currentPoint + 'px)';
1456                    }
1457
1458                    if (animation == "parallaxZoomOut") {
1459                    	console.log(effectLayer);
1460                        currentPoint = (startPoint + scrollY) * parallaxSpeed;
1461                        progressVal = (1 / (endPoint - startPoint) * (scrollY - startPoint));
1462                        var zoomCalc = zoomFactor - ((zoomFactor - 1) * progressVal);
1463
1464                        effectLayer.get(0).style.transform = 'translateY(' + currentPoint + 'px) scale(' + zoomCalc + ')';
1465                    }
1466
1467                    if (animation == "gradient") {
1468                        progressVal = (1 / (endPoint - startPoint) * (scrollY - startPoint));
1469                        gradientLayer.css({
1470                            opacity: progressVal * 2
1471                        });
1472                    }
1473
1474                    if (animation != "gradient") {
1475                        progressVal = (1 / (endPoint - startPoint) * (scrollY - startPoint));
1476                        cntLayer.css({
1477                            opacity: 1 - (progressVal * 4)
1478                        });
1479                    }
1480
1481                    // Stop ticking
1482                    ticking = false;
1483                };
1484                animationSet();
1485
1486                // This will limit the calculation of the background position to
1487                // 60fps as well as blocking it from running multiple times at once
1488                var requestTick = function() {
1489                    if (!ticking) {
1490                        window.requestAnimationFrame(animationSet);
1491                        ticking = true;
1492                    }
1493                };
1494
1495                $window.off('scroll', requestTick);
1496                $window.on('scroll', requestTick);
1497
1498	        });
1499	    }
1500	}
1501
1502
1503	var $window = $(window);
1504	var debounceResize = null;
1505
1506	$window.on('load', mk_page_title_parallax);
1507    $window.on("resize", function() {
1508        if( debounceResize !== null ) { clearTimeout( debounceResize ); }
1509        debounceResize = setTimeout( mk_page_title_parallax, 300 );
1510    });
1511
1512}(jQuery));
1513
1514(function($) {
1515    'use strict';
1516    var utils = MK.utils,
1517        core = MK.core,
1518        path = MK.core.path;
1519    MK.component.PhotoAlbum = function(el) {
1520        this.album = el;
1521        this.initialOpen = false;
1522    };
1523    MK.component.PhotoAlbum.prototype = {
1524        dom: {
1525            gallery: '.slick-slider-wrapper',
1526            title: '.slick-title',
1527            galleryContainer: '.slick-slides',
1528            closeBtn: '.slick-close-icon',
1529            thumbList: '.slick-dots',
1530            thumbs: '.slick-dots li',
1531            imagesData: 'photoalbum-images',
1532            titleData: 'photoalbum-title',
1533            idData: 'photoalbum-id',
1534            urlData: 'photoalbum-url',
1535            activeClass: 'is-active'
1536        },
1537        tpl: {
1538            gallery: '#tpl-photo-album',
1539            slide: '<div class="slick-slide"></div>'
1540        },
1541        init: function() {
1542            this.cacheElements();
1543            this.bindEvents();
1544            this.openByLink();
1545        },
1546        cacheElements: function() {
1547            this.$album = $(this.album);
1548            this.imagesSrc = this.$album.data(this.dom.imagesData);
1549            this.albumLength = this.imagesSrc.length;
1550            this.title = this.$album.data(this.dom.titleData);
1551            this.id = this.$album.data(this.dom.idData);
1552            this.url = this.$album.data(this.dom.urlData);
1553            this.images = []; // stores dom objects to insert into gallery instance
1554        },
1555        bindEvents: function() {
1556            this.$album.not('[data-photoalbum-images="[null]"]').on('click', this.albumClick.bind(this));
1557            $(document).on('click', this.dom.closeBtn, this.closeClick.bind(this));
1558            $(window).on('resize', this.thumbsVisibility.bind(this));
1559            $(window).on('resize', this.makeArrows.bind(this));
1560        },
1561        albumClick: function(e) {
1562            e.preventDefault();
1563            this.open();
1564            MK.ui.loader.add(this.album);
1565        },
1566        closeClick: function(e) {
1567            e.preventDefault();
1568            // Because one close btn rules them all
1569            if (this.slider) {
1570                this.removeGallery();
1571                this.slider.exitFullScreen();
1572            }
1573        },
1574        thumbsVisibility: function() {
1575            if (!this.thumbsWidth) return;
1576            if (window.matchMedia('(max-width:' + (this.thumbsWidth + 260) + 'px)').matches) this.hideThumbs(); // 260 is 2 * 120 - right corner buttons width + scrollbar
1577            else this.showThumbs();
1578        },
1579        hideThumbs: function() {
1580            if (!this.$thumbList) return;
1581            this.$thumbList.hide();
1582        },
1583        showThumbs: function() {
1584            if (!this.$thumbList) return;
1585            this.$thumbList.show();
1586        },
1587        open: function() {
1588            var self = this;
1589            core.loadDependencies([path.plugins + 'slick.js'], function() {
1590                self.createGallery();
1591                self.loadImages();
1592            });
1593        },
1594        createGallery: function() {
1595            // only one per page
1596            if (!$(this.dom.gallery).length) {
1597                var tpl = $(this.tpl.gallery).eq(0).html();
1598                $('body').append(tpl);
1599            }
1600            // and cache obj
1601            this.$gallery = $(this.dom.gallery);
1602            this.$closeBtn = $(this.dom.closeBtn);
1603        },
1604        createSlideshow: function() {
1605            var self = this;
1606            this.slider = new MK.ui.FullScreenGallery(this.dom.galleryContainer, {
1607                id: this.id,
1608                url: this.url
1609            });
1610            this.slider.init();
1611            $(window).trigger('resize');
1612            this.makeArrows();
1613            this.$thumbList = $(this.dom.thumbList);
1614            this.$thumbs = $(this.dom.thumbs);
1615            this.thumbsWidth = (this.$thumbs.length) * 95;
1616            this.thumbsVisibility();
1617            setTimeout(function() {
1618                MK.ui.loader.remove(self.album);
1619            }, 100);
1620            MK.utils.eventManager.publish('photoAlbum-open');
1621        },
1622        makeArrows: function() {
1623            if (this.arrowsTimeout) clearTimeout(this.arrowsTimeout);
1624            this.arrowsTimeout = setTimeout(function() {
1625                var $prev = $('.slick-prev').find('svg');
1626                var $next = $('.slick-next').find('svg');
1627                $prev.wrap('<div class="slick-nav-holder"></div>');
1628                $next.wrap('<div class="slick-nav-holder"></div>');
1629                if (matchMedia("(max-width: 1024px)").matches) {
1630                    $prev.attr({
1631                        width: 12,
1632                        height: 22
1633                    }).find('polyline').attr('points', '12,0 0,11 12,22');
1634                    $next.attr({
1635                        width: 12,
1636                        height: 22
1637                    }).find('polyline').attr('points', '0,0 12,11 0,22');
1638                } else {
1639                    $prev.attr({
1640                        width: 33,
1641                        height: 65
1642                    }).find('polyline').attr('points', '0.5,0.5 32.5,32.5 0.5,64.5');
1643                    $next.attr({
1644                        width: 33,
1645                        height: 65
1646                    }).find('polyline').attr('points', '0.5,0.5 32.5,32.5 0.5,64.5');
1647                }
1648            }, 0);
1649        },
1650        loadImages: function() {
1651            var self = this,
1652                n = 0;
1653            // cache images on first load.
1654            if (!this.images.length) {
1655                this.imagesSrc.forEach(function(src) {
1656                    if (src === null) return; // protect from nulls
1657                    var img = new Image();
1658                    img.onload = function() {
1659                        self.onLoad(n += 1);
1660                    };
1661                    img.src = src;
1662                    self.images.push(img);
1663                });
1664            } else {
1665                this.onLoad(this.albumLength);
1666            }
1667        },
1668        onLoad: function(n) {
1669            if (n === this.albumLength) {
1670                this.insertImages();
1671                this.showGallery();
1672                this.createSlideshow();
1673            }
1674        },
1675        insertImages: function() {
1676            var $galleryContainer = this.$gallery.find(this.dom.galleryContainer),
1677                $title = $(this.dom.title),
1678                slide = this.tpl.slide;
1679            // clear first
1680            $galleryContainer.html('');
1681            $title.html(this.title);
1682            this.images.forEach(function(img) {
1683                var $slide = $(slide);
1684                $slide.html(img);
1685                $galleryContainer.prepend($slide);
1686            });
1687        },
1688        showGallery: function() {
1689            var self = this;
1690            this.$gallery.addClass(this.dom.activeClass);
1691            utils.scroll.disable();
1692        },
1693        removeGallery: function() {
1694            var self = this;
1695            this.$gallery.removeClass(this.dom.activeClass);
1696            setTimeout(function() {
1697                self.$gallery.remove();
1698            }, 300);
1699            utils.scroll.enable();
1700        },
1701        openByLink: function() {
1702            var loc = window.location,
1703                hash = loc.hash,
1704                id;
1705            if (hash.length && hash.substring(1).length) {
1706                id = hash.substring(1);
1707                id = id.replace('!loading', '');
1708                if (id == this.id && !this.initialOpen) {
1709                    this.initialOpen = true;
1710                    this.open();
1711                }
1712            }
1713        }
1714    };
1715    // Barts note; Rifat duplication and coupling here. Remove it when have time
1716    MK.component.PhotoAlbumBlur = function(el) {
1717        var init = function() {
1718            core.loadDependencies([path.plugins + 'pixastic.js'], function() {
1719                blurImage($('.mk-album-item figure'));
1720            });
1721        };
1722        var blurImage = function($item) {
1723            return $item.each(function() {
1724                var $_this = $(this);
1725                var img = $_this.find('.album-cover-image');
1726                img.clone().addClass("blur-effect item-blur-thumbnail").removeClass('album-cover-image').prependTo(this);
1727                var blur_this = $(".blur-effect", this);
1728                blur_this.each(function(index, element) {
1729                    if (img[index].complete === true) {
1730                        Pixastic.process(blur_this[index], "blurfast", {
1731                            amount: 0.5
1732                        });
1733                    } else {
1734                        blur_this.load(function() {
1735                            Pixastic.process(blur_this[index], "blurfast", {
1736                                amount: 0.5
1737                            });
1738                        });
1739                    }
1740                });
1741            });
1742        };
1743        return {
1744            init: init
1745        };
1746    };
1747})(jQuery);
1748
1749jQuery(document).ready(function( $ ) {
1750
1751	// Continue only on Safari.
1752	if ( typeof window.safari === 'undefined' ) {
1753		return;
1754	}
1755
1756	// Fore redraw for Safari. This is a hack.
1757	function mkRedraw() {
1758		$('.mk-photo-roller').hide().show(0);
1759	}
1760
1761	mkRedraw();
1762
1763	$( window ).resize( function() {
1764		mkRedraw()
1765	} );
1766
1767});
1768jQuery(function($) {
1769
1770  'use strict';
1771
1772  // Get All Related Layers
1773  var init = function init() {
1774    var $portfolio = $('.portfolio-grid');
1775    var $imgs = $portfolio.find('img[data-mk-image-src-set]');
1776
1777    if ( $portfolio.hasClass('portfolio-grid-lazyload') && $imgs.length ) {
1778
1779      // Load Images if the user scrolls to them
1780      $(window).on('scroll.mk_portfolio_lazyload', MK.utils.throttle(500, function(){
1781        $imgs.each(function(index, elem) {
1782          if ( MK.utils.isElementInViewport(elem) ) {
1783            MK.component.ResponsiveImageSetter.init( $(elem) );
1784            $imgs = $imgs.not( $(elem) );  // Remove element from the list when loaded to reduce the amount of iteration in each()
1785          }
1786        });
1787      }));
1788
1789      $(window).trigger('scroll.mk_portfolio_lazyload');
1790
1791      // Handle the resize
1792      MK.component.ResponsiveImageSetter.onResize($imgs);
1793
1794    } else {
1795
1796      MK.component.ResponsiveImageSetter.init($imgs);
1797      MK.component.ResponsiveImageSetter.onResize($imgs);
1798
1799    }
1800  }
1801
1802  init();
1803  $(window).on('vc_reload mk-image-loaded', function(){
1804    init();
1805
1806    $('.mk-portfolio-container').each(function(){
1807      var id = $(this).attr('id');
1808      var el = '#' + id + '.mk-portfolio-container.js-el';
1809
1810      if($(this).data('mk-component') == 'Grid') {
1811        // Disable VC frontend component init for portfolio.
1812        $(el).data('init-Grid', true);
1813
1814        // Init Grid component on shortcode render.
1815        var component = new MK.component[ 'Grid' ]( el );
1816        component.init();
1817      }
1818    });
1819
1820  });
1821
1822});
1823
1824
1825
1826jQuery(document).ready(function($) {
1827    'use strict';
1828    /**
1829     * Get dynamic width of items for passing in `flexslider()`.
1830     * @param  string style      Style of the carousel, classic/modern
1831     * @param  integer showItems Number of items to show
1832     * @param  integer id        ID of the carousel
1833     * @return interger          The width for items
1834     */
1835    function get_item_width(style, showItems, id) {
1836        var item_width;
1837        if (style == "classic") {
1838            item_width = 275;
1839            items_to_show = 4;
1840        } else {
1841            var screen_width = $('#portfolio-carousel-' + id).width(),
1842                items_to_show = showItems;
1843            if (screen_width >= 1100) {
1844                item_width = screen_width / items_to_show;
1845            } else if (screen_width <= 1200 && screen_width >= 800) {
1846                item_width = screen_width / 3;
1847            } else if (screen_width <= 800 && screen_width >= 540) {
1848                item_width = screen_width / 2;
1849            } else {
1850                item_width = screen_width;
1851            }
1852        }
1853        return item_width;
1854    }
1855    jQuery(window).on("load vc_reload", function() {
1856        MK.core.loadDependencies([MK.core.path.plugins + 'jquery.flexslider.js'], function() {
1857
1858            $('.portfolio-carousel .mk-flexslider').each(function() {
1859            	var $this = $(this);
1860            	var $pauseOnHover = $this.attr('data-pauseOnHover') == "true" ? true : false;
1861            	var $slideshow = $this.attr('data-slideshow') == "true" ? true : false;
1862
1863                $this.flexslider({
1864                    selector: ".mk-flex-slides > li",
1865                    animation: "slide",
1866                    slideshowSpeed: parseInt($this.attr('data-slideshowSpeed')),
1867                    animationSpeed: parseInt($this.attr('data-animationSpeed')),
1868                    pauseOnHover: $pauseOnHover,
1869                    controlNav: false,
1870                    smoothHeight: false,
1871                    useCSS: false,
1872                    directionNav: $this.data('directionNav'),
1873                    prevText: "",
1874                    nextText: "",
1875                    itemWidth: get_item_width($this.data('style'), $this.data('showItems'), $this.data('id')),
1876                    itemMargin: 0,
1877                    maxItems: ($this.data('style') === 'modern') ? $this.data('showItems') : 4,
1878                    minItems: 1,
1879                    move: 1,
1880                    slideshow: $slideshow,
1881                });
1882            }); // End each().
1883        }); // End loadDependencies().
1884    }); // End on().
1885});
1886
1887(function($) {
1888   if (window.addEventListener) {
1889      window.addEventListener('load', handleLoad, false);
1890    }
1891    else if (window.attachEvent) {
1892      window.attachEvent('onload', handleLoad);
1893    }
1894
1895	function handleLoad() {
1896		$('.mk-slideshow-box').each(run);
1897	}
1898
1899	function run() {
1900		var $slider = $(this);
1901
1902		var $slides = $slider.find('.mk-slideshow-box-item');
1903		var $transition_time = $slider.data('transitionspeed');
1904		var $time_between_slides = $slider.data('slideshowspeed');
1905
1906		$slider.find('.mk-slideshow-box-content').children('p').filter(function() {
1907			if ( $.trim($(this).text()) == '' ) {
1908				return true;
1909			}
1910		}).remove();
1911
1912		// set active classes
1913		$slides.first().addClass('active').fadeIn($transition_time, function(){
1914			setTimeout(autoScroll, $time_between_slides);
1915		});
1916
1917		// auto scroll
1918		function autoScroll(){
1919			var $i = $slider.find('.active').index();
1920			$slides.eq($i).removeClass('active').fadeOut($transition_time);
1921			if ($slides.length == $i + 1) $i = -1; // loop to start
1922			$slides.eq($i + 1).addClass('active').fadeIn($transition_time, function() {
1923				setTimeout(autoScroll, $time_between_slides);
1924			});
1925		}
1926
1927		/**
1928		 * Need to set the height manually as min-height property doesn't work with display
1929		 * table and table-cell in Firefox and Safari. We use Javascript to set them only
1930		 * for Firefox and Safari to avoid any problem with Chrome users. The problem is only
1931		 * happen when the window screen size bigger than 850px.
1932		 */
1933		var browserName  = MK.utils.browser.name;
1934		if ( browserName === 'Firefox' || browserName === 'Safari' ) {
1935			var currentWidth = parseInt( $( window ).width() );
1936			if ( currentWidth >= 850 ) {
1937				var height = $slider.css( 'min-height' );
1938				if ( typeof height !== 'undefined' ) {
1939					$slider.find( '.mk-slideshow-box-items' ).height( parseInt( height ) );
1940				}
1941			} else {
1942				$slider.find( '.mk-slideshow-box-items' ).removeAttr( 'style' );
1943			}
1944		}
1945	}
1946	$(window).on('vc_reload', function(){
1947		handleLoad();
1948	});
1949
1950	// Handle resize event only for Safari and Firefox.
1951	window.addEventListener( 'resize', function(){
1952		var browserName  = MK.utils.browser.name;
1953		if ( browserName === 'Firefox' || browserName === 'Safari' ) {
1954			handleLoad();
1955		}
1956	}, true);
1957}(jQuery));
1958
1959(function($) {
1960	'use strict';
1961
1962	$(".mk-subscribe").each(function() {
1963		var $this = $(this);
1964
1965		$this.find('.mk-subscribe--form').submit(function(e){
1966			$this.addClass('form-in-progress');
1967			e.preventDefault();
1968			$.ajax({
1969				url: MK.core.path.ajaxUrl,
1970				type: "POST",
1971				data: {
1972					action: "mk_ajax_subscribe",
1973					email: $this.find(".mk-subscribe--email").val(),
1974					list_id: $this.find(".mk-subscribe--list-id").val(),
1975					optin: $this.find(".mk-subscribe--optin").val()
1976				},
1977				success: function (response) {
1978          console.log(response)
1979					$this.removeClass('form-in-progress');
1980					var data = $.parseJSON(response),
1981						$messaage_box = $this.find(".mk-subscribe--message");
1982
1983					$messaage_box.html(data.message);
1984
1985					if(data.action_status == true) {
1986						$messaage_box.addClass('success');
1987					} else {
1988						$messaage_box.addClass('error');
1989					}
1990
1991					$this.find(".mk-subscribe--email").val('');
1992
1993				}
1994			});
1995		});
1996	});
1997
1998}(jQuery));
1999
2000(function( $ ) {
2001    'use strict';
2002
2003    // If we want to get access to API of already initilised component we run a regular new conctructor.
2004    // When instance is discovered in cache object then we return exisiting instance.
2005    //
2006    // TODO move it to core functions and run logic on init
2007    // var init = function init() {
2008    var _instancesCollection = {};
2009
2010    var MK = window.MK || {};
2011    window.MK = MK;
2012    MK.component = window.MK.component || {};
2013
2014    MK.component.SwipeSlideshow = function( el ) {
2015        var $this = $( el );
2016        var id = $this.parent().attr('id');
2017
2018        this.el = el;
2019        this.id = id;
2020        this.config = $this.data( 'swipeslideshow-config' );
2021        if( this.config ) this.config.hasPagination = false;
2022    };
2023
2024    MK.component.SwipeSlideshow.prototype = {
2025        init : function() {
2026            var slider = new MK.ui.Slider( this.el, this.config );
2027            slider.init();
2028
2029            _instancesCollection[ this.id ] = slider;
2030        }
2031    };
2032
2033
2034    // Additional nav
2035    // Mostly for thumbs in woocommerce
2036    MK.component.SwipeSlideshowExtraNav = function( el ) {
2037        this.el = el;
2038    };
2039
2040    MK.component.SwipeSlideshowExtraNav.prototype = {
2041        init : function init() {
2042            this.cacheElements();
2043            this.bindEvents();
2044        },
2045
2046        cacheElements : function cacheElements() {
2047            var $this = $( this.el );
2048
2049            this.sliderId = $this.data( 'gallery' );
2050            this.slider = _instancesCollection[this.sliderId];
2051            this.$thumbs = $( '#' + this.sliderId ).find( '.thumbnails a');
2052        },
2053
2054        bindEvents : function bindEvents() {
2055            this.$thumbs.on( 'click', this.clickThumb.bind( this ) );
2056        },
2057
2058        clickThumb : function clickThumb( e ) {
2059            e.preventDefault();
2060            var $this = $( e.currentTarget ),
2061                id = $this.index();
2062
2063            this.slider.goTo( id );
2064        }
2065    };
2066
2067
2068    // Mostly for switcher in woocommerce
2069    MK.utils.eventManager.subscribe('gallery-update', function(e, config) {
2070        if(typeof _instancesCollection[config.id] === 'undefined') return;
2071        _instancesCollection[config.id].reset();
2072    });
2073
2074	function init() {
2075    // Lazy load.
2076    // Get All Related Layers
2077    var $swiper = $('.mk-slider');
2078
2079    if ( ! $swiper.hasClass('mk-slideshow') && ! $swiper.hasClass('mk-swipe-slideshow') ) {
2080      return;
2081    }
2082
2083    var $imgs = $swiper.find('img[data-mk-image-src-set]');
2084
2085    if ( $swiper.hasClass('mk-swipe-slideshow-lazyload') && $imgs.length ) {
2086
2087        // Load Images if the user scrolls to them
2088        $(window).on('scroll.mk_swipe_slideshow_lazyload', MK.utils.throttle(500, function(){
2089            $imgs.each(function(index, elem) {
2090                if ( MK.utils.isElementInViewport(elem) ) {
2091                    MK.component.ResponsiveImageSetter.init( $(elem) );
2092                    $imgs = $imgs.not( $(elem) );  // Remove element from the list when loaded to reduce the amount of iteration in each()
2093                }
2094            });
2095        }));
2096
2097        $(window).trigger('scroll.mk_swipe_slideshow_lazyload');
2098
2099        // Handle the resize
2100        MK.component.ResponsiveImageSetter.onResize($imgs);
2101
2102    } else {
2103
2104        MK.component.ResponsiveImageSetter.init($imgs);
2105        MK.component.ResponsiveImageSetter.onResize($imgs);
2106
2107    }
2108
2109      /* Why we need to reinitialize it? it causes double sliding effect
2110        $( '.mk-swiper-container' ).each( function() {
2111          new MK.component.SwipeSlideshow( this ).init();
2112        } );
2113      */
2114
2115	}
2116
2117	init();
2118	$(window).on('vc_reload mk-image-loaded', init);
2119
2120})( jQuery );
2121
2122(function($) {
2123    'use strict';
2124
2125    var core = MK.core,
2126        path = core.path;
2127
2128    MK.component.Tooltip = function(el) {
2129        var init = function() {
2130             $('.mk-tooltip').each(function() {
2131                $(this).find('.mk-tooltip--link').hover(function() {
2132                  $(this).siblings('.mk-tooltip--text').stop(true).animate({
2133                    'opacity': 1
2134                  }, 400);
2135
2136                }, function() {
2137                  $(this).siblings('.mk-tooltip--text').stop(true).animate({
2138                    'opacity': 0
2139                  }, 400);
2140                });
2141              });
2142        };
2143
2144        return {
2145            init: init
2146        };
2147    };
2148
2149})(jQuery);
2150
2151(function( $ ) {
2152	'use strict';
2153
2154	/**
2155	 * Fix issue with WC Recent Carousel classic style when SC is active.
2156	 * At the first load of shortcode, the height is not correct, only cover the image
2157	 * without product detail. This script only set the min-height.
2158	 */
2159	function mkWcCarouselSwiperHeight() {
2160		var mkWCRecentCarousel = $( '.mk-woocommerce-carousel.classic-style' );
2161		mkWCRecentCarousel.each( function() {
2162			var maxHeight = 0;
2163			var height = $( this ).height();
2164			var childs = $( this ).find( '.item' );
2165			childs.each( function(){
2166				if ( $( this ).height() > maxHeight ) {
2167					maxHeight = $( this ).height();
2168				}
2169			} );
2170			var swiperContainers = $( this ).find( '.mk-swiper-container' );
2171			swiperContainers[0].style.setProperty( 'min-height', maxHeight + 'px', 'important' );
2172		} );
2173	}
2174
2175	mkWcCarouselSwiperHeight();
2176
2177}
2177)( jQuery );
2178(function ($) {
2179  'use strict';
2180
2181	function dynamicHeight() {
2182      var $this = $( this );
2183
2184		$this.height( 'auto' );
2185
2186		if( window.matchMedia( '(max-width: 767px)' ).matches ) {
2187			return;
2188		}
2189
2190    $this.height( $this.height() );
2191	}
2192
2193	var $window = $( window );
2194	var container = document.getElementById( 'mk-theme-container' );
2195
2196  function equalColumns() {
2197    $( '.equal-columns' ).each( function() {
2198      dynamicHeight.bind( this );
2199      $window.on( 'load', dynamicHeight.bind( this ) );
2200      $window.on( 'resize', dynamicHeight.bind( this ) );
2201      $window.on( 'mk-image-loaded', dynamicHeight.bind( this ) );
2202      window.addResizeListener( container, dynamicHeight.bind( this ) );
2203    });
2204  }
2205
2206  equalColumns();
2207
2208  $window.on( 'vc_reload' , function() {
2209    equalColumns();
2210  });
2211
2212}( jQuery ));
2213
2214(function($) {
2215	'use strict';
2216
2217	function mk_video_play() {
2218
2219		var lightboxMargin = 60;
2220
2221		// Play self hosted video
2222		function playSelfHosted($video, isLightbox) {
2223			if (isLightbox === undefined || typeof isLightbox === 'undefined') {
2224				isLightbox = false;
2225			}
2226
2227			if (isLightbox) {
2228				var content = $video.parent().html();
2229				var src = $video.parent().find('source').attr('src');
2230
2231				playLightbox({
2232					content: '<div class="fancybox-video">' + $(content).attr('autoplay', 'autoplay').wrap('<div></div>').parent().html() + '</div>',
2233					src: src,
2234				});
2235
2236			} else {
2237				playTagVideo($video);
2238			}
2239		}
2240
2241		// Play social hosted video
2242		function playSocialHosted($iframe, isLightbox) {
2243
2244			if (isLightbox === undefined || typeof isLightbox === 'undefined') {
2245				isLightbox = false;
2246			}
2247
2248			if (isLightbox) {
2249				playLightbox({
2250					type: 'iframe',
2251					src: $iframe.attr('src'),
2252				});
2253
2254			} else {
2255
2256				var videoData = getSocialVideoData($iframe.attr('src'));
2257
2258				switch (videoData.source) {
2259					case 'youtube':
2260						playTagIframeYoutube(videoData.videoId, $iframe);
2261						break;
2262					case 'vimeo':
2263						playTagIframeVimeo(videoData.videoId, $iframe);
2264						break;
2265					default:
2266						playTagIframe($iframe);
2267						break;
2268				}
2269			}
2270		}
2271
2272		// Play video in lightbox
2273		function playLightbox(args) {
2274			var options = {
2275				autoSize: 0,
2276				width: getVideoboxWidth(),
2277				height: getVideoHeight(),
2278			};
2279			$.extend(options, args);
2280			$.fancybox.open(options);
2281		}
2282
2283		function playTagVideo($video) {
2284			$video.get(0).play();
2285			$video.closest('.video-container').find('.video-thumbnail').fadeOut('slow');
2286		}
2287
2288		function playTagIframe($iframe, videoId) {
2289			var video_loop = '';
2290			if (videoId !== undefined && typeof videoId !== 'undefined') {
2291				video_loop = '&playlist=' + videoId;
2292			}
2293
2294			var src = $iframe.attr('src');
2295			var separator = (src.indexOf('?') === -1) ? '?' : '&';
2296			src += separator + 'autoplay=1';
2297			separator = (src.indexOf('?') === -1) ? '?' : '&';
2298			video_loop = separator + 'loop=1' + video_loop;
2299			video_loop = ( $iframe.closest('.video-container').data('loop') == '1' ) ? video_loop : '';
2300			src += video_loop;
2301			$iframe.attr('src', src).closest('.video-container').find('.video-thumbnail').fadeOut(3000);
2302		}
2303
2304		function playTagIframeYoutube(videoId, $iframe) {
2305
2306			// Credit: https://goo.gl/ku3NgH
2307			if ( document.getElementById('mk_iframe_api') === null ) {
2308				var tag = document.createElement('script');
2309				tag.src = "https://www.youtube.com/iframe_api";
2310				tag.id = "mk_iframe_api";
2311				var firstScriptTag = document.getElementsByTagName('script')[0];
2312				firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
2313			} else {
2314				runPlayer();
2315			}
2316
2317			window.onYouTubeIframeAPIReady = function () {
2318				runPlayer();
2319			};
2320
2321			function runPlayer(){
2322				var player,
2323					isPlayed = false;
2324
2325				player = new YT.Player('video-player-' + $iframe.data('id'), {
2326					videoId: videoId,
2327					rel: false,
2328					events: {
2329						onReady: function(e) {
2330							e.target.playVideo();
2331						},
2332						onStateChange: function(e) {
2333							let $playerWrapper = $('#video-player-' + $iframe.data('id'))
2334
2335							if (e.data === 1 && !isPlayed) {
2336								$playerWrapper.closest('.video-container').find('.video-thumbnail').fadeOut('slow');
2337								isPlayed = true;
2338							}
2339
2340							if ($playerWrapper.closest('.video-container').data('loop') && e.data === YT.PlayerState.ENDED) {
2341								e.target.playVideo();
2342							}
2343						},
2344						onError: function(e) {
2345							playTagIframe($iframe, videoId);
2346						}
2347					}
2348				});
2349			}
2350		}
2351
2352		function playTagIframeVimeo(videoId, $iframe) {
2353			// Embed async the vimeo API script
2354			$.getScript('//player.vimeo.com/api/player.js', function(data, textStatus, jqxhr) {
2355				if (jqxhr.status === 200) {
2356
2357					var player,
2358						isPlayed = false;
2359
2360					player = new Vimeo.Player('video-player-' + $iframe.data('id'), {
2361						id: videoId
2362					});
2363
2364					player.play().then(function() {
2365						if (!isPlayed) {
2366							$iframe.closest('.video-container').find('.video-thumbnail').fadeOut('slow');
2367							isPlayed = true;
2368						}
2369					}).catch(function(error) {
2370						playTagIframe($iframe);
2371					});
2372
2373					if ($iframe.closest('.video-container').data('loop')) {
2374						player.setLoop(true).then(function(loop) {
2375							// Enable loop
2376						}).catch(function(error) {
2377							playTagIframe($iframe);
2378						});
2379					}
2380
2381				} else {
2382					playTagIframe($iframe);
2383				}
2384			});
2385		}
2386
2387		// Get Social Provider Video Data
2388		function getSocialVideoData(url) {
2389
2390			// Get Youtube video data
2391			var youtubeRegex = /(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i;
2392			var youtubeMatch = url.match(youtubeRegex);
2393			if (youtubeMatch && youtubeMatch != null) {
2394				return {
2395					source: 'youtube',
2396					videoId: youtubeMatch[3]
2397				};
2398			}
2399
2400			// Get Vimeo video data
2401			var vimeoRegex = /(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/i;
2402			var vimeoMatch = url.match(vimeoRegex);
2403			if (vimeoMatch && vimeoMatch != null) {
2404				return {
2405					source: 'vimeo',
2406					videoId: vimeoMatch[1]
2407				};
2408			}
2409
2410			return {
2411				source: false,
2412				videoId: false
2413			};
2414		}
2415
2416		// Get lightbox width
2417		function getVideoboxWidth() {
2418			var $width,
2419				wWidth = $(window).width(),
2420				wHeight = $(window).height();
2421
2422			if (wHeight >= wWidth) {
2423
2424				$width = wWidth - (lightboxMargin * 2);
2425
2426			} else {
2427
2428				var wHeightMax = (wHeight * 90) / 100;
2429
2430				if (wWidth > 1280) {
2431					var $width = (wHeightMax / 5768) * 10000;
2432				} else {
2433					var $width = (wHeightMax / 6120) * 10000;
2434				}
2435
2436			}
2437
2438			return Math.round($width) + 'px';
2439		}
2440
2441		// Get lightbox height
2442		function getVideoHeight() {
2443
2444			var $height,
2445				wWidth = $(window).width(),
2446				wHeight = $(window).height();
2447
2448			if (wHeight >= wWidth) {
2449				$height = ((wWidth - (lightboxMargin * 2)) * 5670) / 10000;
2450			} else {
2451				$height = ((wHeight * 90) / 100) + (lightboxMargin * 2);
2452			}
2453			return Math.round($height) + 'px';
2454		}
2455
2456		$('.video-container').each(function() {
2457
2458			var $videoContainer = $(this);
2459			var playSource = $videoContainer.data('source');
2460			var playTarget = $videoContainer.data('target');
2461			var $iframe = $videoContainer.find('iframe');
2462			var $video = $videoContainer.find('video');
2463
2464			if ($videoContainer.data('autoplay')) {
2465				switch (playSource) {
2466					case 'social_hosted':
2467						playSocialHosted($iframe);
2468						break;
2469					case 'self_hosted':
2470						playSelfHosted($video);
2471						break;
2472				}
2473			} else {
2474				var $playIcon = $videoContainer.find('.mk-svg-icon');
2475				$playIcon.bind('click', function(e) {
2476					e.preventDefault();
2477					var isLightbox = (playTarget == 'lightbox') ? true : false;
2478					if (!isLightbox) {
2479						$playIcon.hide().next('.preloader-preview-area').show();
2480					}
2481					switch (playSource) {
2482						case 'social_hosted':
2483							playSocialHosted($iframe, isLightbox);
2484							break;
2485						case 'self_hosted':
2486							playSelfHosted($video, isLightbox);
2487							break;
2488					}
2489				});
2490			}
2491		});
2492	}
2493	$(window).on('load vc_reload', mk_video_play);
2494
2495	// Resize icon size for responsive layout
2496	function mk_video_resize_play_icon() {
2497		$('.video-thumbnail-overlay').each(function() {
2498			var $thumbnailOverlay = $(this);
2499			var thumbnailWidth = $thumbnailOverlay.width();
2500			var $svg = $thumbnailOverlay.find('svg');
2501			if (typeof $svg.data('width') === 'undefined') {
2502				$svg.attr('data-width', $svg.width());
2503			}
2504			if (typeof $svg.data('height') === 'undefined') {
2505				$svg.attr('data-height', $svg.height());
2506			}
2507			if (($svg.data('width') * 4) > thumbnailWidth) {
2508				$svg.css({
2509					width: Math.round((parseInt(thumbnailWidth) / 4)) + 'px',
2510					height: Math.round((parseInt(thumbnailWidth) / 4) * $svg.data('height') / $svg.data('width')) + 'px'
2511				});
2512			} else {
2513				$svg.css({
2514					width: $svg.data('width') + 'px',
2515					height: $svg.data('height') + 'px'
2516				});
2517			}
2518		});
2519	}
2520	$(window).on('load resize orientationChange vc_reload', mk_video_resize_play_icon);
2521}(jQuery));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.