1window.flatStyles=window.flatStyles||'' 2window.lightspeedOptimizeStylesheet=function(){const currentStylesheet=document.querySelector('.tcb-lightspeed-style:not([data-ls-optimized])') 3if(currentStylesheet){try{if(currentStylesheet.sheet&¤tStylesheet.sheet.cssRules){if(window.flatStyles){if(this.optimizing){setTimeout(window.lightspeedOptimizeStylesheet.bind(this),24)}else{this.optimizing=!0;let rulesIndex=0;while(rulesIndex<currentStylesheet.sheet.cssRules.length){const rule=currentStylesheet.sheet.cssRules[rulesIndex] 4if(rule.type===CSSRule.STYLE_RULE&&window.flatStyles.includes(`${rule.selectorText}{`)){currentStylesheet.sheet.deleteRule(rulesIndex)}else{rulesIndex ++}} 5currentStylesheet.setAttribute('data-ls-optimized','1') 6window.flatStyles+=currentStylesheet.innerHTML 7this.optimizing=!1}}else{window.flatStyles=currentStylesheet.innerHTML 8currentStylesheet.setAttribute('data-ls-optimized','1')}}}catch(error){console.warn(error)} 9if(currentStylesheet.parentElement.tagName!=='HEAD'){const stylesheetID=currentStylesheet.id;if((!stylesheetID||(stylesheetID&&!document.querySelector(`head #${stylesheetID}`)))){document.head.prepend(currentStylesheet)}else{currentStylesheet.remove()}}}} 10window.lightspeedOptimizeFlat=function(styleSheetElement){if(document.querySelectorAll('link[href*="thrive_flat.css"]').length>1){styleSheetElement.setAttribute('disabled',!0)}else{if(styleSheetElement.parentElement.tagName!=='HEAD'){document.head.append(styleSheetElement)}}};/*! Thrive Headline Optimizer - 2022-02-25 11* http://www.thrivethemes.com/ 12* Copyright (c) 2022 Thrive Themes */ 13function tho_change_titles(){var a=document.getElementsByTagName(THO_Head.element_tag);for(var b in a){var c=0,d=0,e=a[b];if("object"==typeof e&&(void 0===e.className||-1===e.className.indexOf("tho_title_changed"))){for(var f in e.attributes){var g=e.attributes[f].name;void 0!==g&&(0===g.indexOf("tho-post-")?c=g.replace("tho-post-",""):0===g.indexOf("tho-test-")&&(d=g.replace("tho-test-","")))}c&&d&&void 0!==THO_Variations[c]&&(e.setAttribute("data-post-id",c),e.setAttribute("data-test-id",d),tho_output_title(e,c,THO_Variations[c].variations,THO_Variations[c].winners))}}void 0!==THO_Titles[THO_Head.post_id]&&tho_brute_search_replace()}function tho_brute_search_replace(){var a,b=THO_Variations[THO_Head.post_id].variations[THO_Titles[THO_Head.post_id]],c=document.querySelectorAll(THO_Head.woo_tag+', [class*="crumb"], [id*="crumb"], [class="woocommerce-message"], [class="product-name"]');for(var d in THO_Variations[THO_Head.post_id].variations){a=THO_Variations[THO_Head.post_id].variations[d];break}if(void 0!==a)for(d in c){var e=c[d];"object"!=typeof e||void 0!==e.className&&-1!==e.className.indexOf("tho_title_changed")||(e.innerHTML=e.innerHTML.replace(a,b),e.className+=" tho_title_changed")}}function tho_get_title_variation(a,b,c){var d=tho_random_key(b),e=tho_get_cookie("tho_post_cookie_"+a,!0);if(""===THO_Titles&&(THO_Titles={}),e.test_id&&void 0!==c[e.test_id])return c[e.test_id];if(void 0!==THO_Titles[a]){if(d=THO_Titles[a],void 0!==b[d])return b[d];d=tho_random_key(b)}return THO_Titles[a]=d,tho_set_cookie("tho_post_titles",THO_Titles,!0),b[d]}function tho_output_title(a,b,c,d){var e=tho_get_title_variation(b,c,d);""!=e&&(a.className+="tho_title_changed",a.innerHTML=e)}function tho_random_key(a){var b=Object.keys(a);return b[parseInt(b.length*Math.random())]}function tho_get_cookie(a,b){for(var c=a+"=",d=document.cookie.split(";"),e="",f=0;f<d.length;f++){for(var g=d[f];" "==g.charAt(0);)g=g.substring(1);if(0==g.indexOf(c)){e=g.substring(c.length,g.length),b&&(e=JSON.parse(decodeURIComponent(e)));break}}return e}function tho_set_cookie(a,b,c){var d,e=new Date;e.setTime(e.getTime()+314496e5),d="; expires="+e.toGMTString(),c&&(b=JSON.stringify(b)),document.cookie=a+"="+b+d+"; path=/"}var THO_Titles=tho_get_cookie("tho_post_titles",!0),THO_Head=THO_Head||{},THO_Variations=THO_Head.variations||{};window.tho_title_interval=setInterval(tho_change_titles,10);/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 14"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]}
14,n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
14,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});jQuery.uiBackCompat=!0;/*! jQuery UI - v1.14.2 - 2026-07-15 15* https://jqueryui.com 16* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js 17* Copyright OpenJS Foundation and other contributors; Licensed MIT */ 18!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";x.ui=x.ui||{};x.ui.version="1.14.2"; 19/*! 20 * jQuery UI Widget 1.14.2 21 * https://jqueryui.com 22 * 23 * Copyright OpenJS Foundation and other contributors 24 * Released under the MIT license. 25 * https://jquery.org/license 26 */var o,n,W,C,s,r,l,a,h,i,f=0,c=Array.prototype.hasOwnProperty,u=Array.prototype.slice;x.cleanData=(o=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");o(t)}),x.widget=function(t,i,e){var n,o,s,r,l={},a=t.split(".")[0];return"__proto__"===(t=t.split(".")[1])||"constructor"===t?x.error("Invalid widget name: "+t):(r=a+"-"+t,e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[r.toLowerCase()]=function(t){return!!x.data(t,r)},x[a]=x[a]||{},n=x[a][t],o=x[a][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)}l[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},l,{constructor:o,namespace:a,widgetName:t,widgetFullName:r}),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)}
vendor: 25,863 bytes, lines 26-72
26,x.widget.extend=function(t){for(var e,i,n=u.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],c.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=u.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=f++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}}),x.widget;function E(t,e,i){return[parseFloat(t[0])*(h.test(t[0])?e/100:1),parseFloat(t[1])*(h.test(t[1])?i/100:1)]}function P(t,e){return parseInt(x.css(t,e),10)||0}function H(t){return null!=t&&t===t.window} 27/*! 28 * jQuery UI Position 1.14.2 29 * https://jqueryui.com 30 * 31 * Copyright OpenJS Foundation and other contributors 32 * Released under the MIT license. 33 * https://jquery.org/license 34 * 35 * https://api.jqueryui.com/position/ 36 */ 37W=Math.max,C=Math.abs,s=/left|center|right/,r=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,h=/%$/,i=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=H(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(c){var u,d,p,g,m,v,w,y,b,_,t,e;return c&&c.of?(v="string"==typeof(c=x.extend({},c)).of?x(document).find(c.of):x(c.of),w=x.position.getWithinInfo(c.within),y=x.position.getScrollInfo(w),b=(c.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:H(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&&(c.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(c[this]||"").split(" ");(i=1===i.length?s.test(i[0])?i.concat(["center"]):r.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=s.test(i[0])?i[0]:"center",i[1]=r.test(i[1])?i[1]:"center",t=l.exec(i[0]),e=l.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],c[this]=[a.exec(i[0])[0],a.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===c.at[0]?m.left+=d:"center"===c.at[0]&&(m.left+=d/2),"bottom"===c.at[1]?m.top+=p:"center"===c.at[1]&&(m.top+=p/2),u=E(_.at,d,p),m.left+=u[0],m.top+=u[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=P(this,"marginLeft"),n=P(this,"marginTop"),o=l+e+P(this,"marginRight")+y.width,s=a+n+P(this,"marginBottom")+y.height,h=x.extend({},m),f=E(_.my,r.outerWidth(),r.outerHeight());"right"===c.my[0]?h.left-=l:"center"===c.my[0]&&(h.left-=l/2),"bottom"===c.my[1]?h.top-=a:"center"===c.my[1]&&(h.top-=a/2),h.left+=f[0],h.top+=f[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:[u[0]+f[0],u[1]+f[1]],my:c.my,at:c.at,within:w,elem:r})}),c.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",c.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):i.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)}}};var t,e; 38/*! 39 * jQuery UI :data 1.14.2 40 * https://jqueryui.com 41 * 42 * Copyright OpenJS Foundation and other contributors 43 * Released under the MIT license. 44 * https://jquery.org/license 45 */x.ui.position,x.extend(x.expr.pseudos,{data:x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}})}),x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}), 46/*! 47 * jQuery UI Focusable 1.14.2 48 * https://jqueryui.com 49 * 50 * Copyright OpenJS Foundation and other contributors 51 * Released under the MIT license. 52 * https://jquery.org/license 53 */ 54x.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")&&"visible"===x(t).css("visibility"))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.ui.focusable,x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=x(this.element.prop("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"))}}, 55/*! 56 * jQuery UI Legacy jQuery Core patches 1.14.2 57 * https://jqueryui.com 58 * 59 * Copyright OpenJS Foundation and other contributors 60 * Released under the MIT license. 61 * https://jquery.org/license 62 * 63 */ 64x.escapeSelector||(x.escapeSelector=function(t){return CSS.escape(t+"")}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+CSS.escape(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),x.fn.extend({uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});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)}}});;/*! 65 * jQuery UI Menu 1.14.2 66 * https://jqueryui.com 67 * 68 * Copyright OpenJS Foundation and other contributors 69 * Released under the MIT license. 70 * https://jquery.org/license 71 */ 72!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../unique-id","../version","../widget"],e):e(jQuery)}(function(a){"use strict";return a.widget("ui.menu",{version:"1.14.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(e){var t=a(e.target),i=a(this.document[0].activeElement);!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(e){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(e){var t,i;this.previousFilter||e.clientX===this.lastMousePosition.x&&e.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:e.clientX,y:e.clientY},t=a(e.target).closest(".ui-menu-item"),i=a(e.currentTarget),t[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=a(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var t,i,s,n=!0;switch(e.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(e);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case a.ui.keyCode.HOME:this._move("first","first",e);break;case a.ui.keyCode.END:this._move("last","last",e);break;case a.ui.keyCode.UP:this.previous(e);break;case a.ui.keyCode.DOWN:this.next(e);break;case a.ui.keyCode.LEFT:this.collapse(e);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(e);break;case a.ui.keyCode.ESCAPE:this.collapse(e);break;default:t=this.previousFilter||"",s=n=!1,i=96<=e.keyCode&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),i===t?s=!0:i=t+i,t=this._filterMenuItems(i),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(i=String.fromCharCode(e.keyCode),t=this._filterMenuItems(i)),t.length?(this.focus(e,t),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=a(this),t=e.prev(),i=a("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(e=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=a(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),t=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(t,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){var i;"icons"===e&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,s;this._hasScroll()&&(t=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,t=e.offset().top-this.activeMenu.offset().top-t-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),e=e.outerHeight(),t<0?this.activeMenu.scrollTop(i+t):s<t+e&&this.activeMenu.scrollTop(i+t-s+e))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var e=i?this.element:a(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this._removeClass(e.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=e},i?0:this.delay)},_close:function(e){(e=e||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!a(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;(s=this.active?"first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(e){var t,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(t=a(this)).offset().top-i-s<0}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var t,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHe
72ight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=a(this)).offset().top-i+s}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||a(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var e=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),t=new RegExp("^"+e,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return t.test(String.prototype.trim.call(a(this).children(".ui-menu-item-wrapper").text()))})}})});/*! This file is auto-generated */ 73(function(){"use strict";var wp;(wp||={}).domReady=(()=>{var o=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of a(t))!i.call(e,d)&&d!==n&&o(e,d,{get:()=>t[d],enumerable:!(r=u(t,d))||r.enumerable});return e};var c=e=>m(o({},"__esModule",{value:!0}),e);var p={};f(p,{default:()=>y});function y(e){if(!(typeof document>"u")){if(document.readyState==="complete"||document.readyState==="interactive")return void e();document.addEventListener("DOMContentLoaded",e)}}return c(p)})();if(typeof wp.domReady==='object'&&wp.domReady.default){wp.domReady=wp.domReady.default}(window.wp||={}).domReady=wp.domReady})();wp.i18n.setLocaleData({'text direction\u0004ltr':['ltr']});/*! This file is auto-generated */ 74(function(){"use strict";var wp;(wp||={}).a11y=(()=>{var v=Object.create;var r=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),B=(t,e)=>{for(var o in e)r(t,o,{get:e[o],enumerable:!0})},p=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of E(e))!I.call(t,n)&&n!==o&&r(t,n,{get:()=>e[n],enumerable:!(i=A(e,n))||i.enumerable});return t};var s=(t,e,o)=>(o=t!=null?v(C(t)):{},p(e||!t||!t.__esModule?r(o,"default",{value:t,enumerable:!0}):o,t)),T=t=>p(r({},"__esModule",{value:!0}),t);var c=d((P,l)=>{l.exports=window.wp.domReady});var u=d((_,m)=>{m.exports=window.wp.i18n});var N={};B(N,{setup:()=>g,speak:()=>k});var w=s(c(),1);function a(t="polite"){let e=document.createElement("div");e.id=`a11y-speak-${t}`,e.className="a11y-speak-region",e.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;word-break:normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");let{body:o}=document;return o&&o.appendChild(e),e}var f=s(u(),1);function x(){let t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=(0,f.__)("Notifications"),t.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;word-break:normal !important;"),t.setAttribute("hidden","");let{body:e}=document;return e&&e.appendChild(t),t}function y(){let t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text");for(let o=0;o<t.length;o++)t[o].textContent="";e&&e.setAttribute("hidden","hidden")}var h="";function b(t){return t=t.replace(/<[^<>]+>/g," "),h===t&&(t+="\xA0"),h=t,t}function k(t,e){y(),t=b(t);let o=document.getElementById("a11y-speak-intro-text"),i=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");i&&e==="assertive"?i.textContent=t:n&&(n.textContent=t),o&&o.removeAttribute("hidden")}function g(){let t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),o=document.getElementById("a11y-speak-polite");t===null&&x(),e===null&&a("assertive"),o===null&&a("polite")}(0,w.default)(g);return T(N)})();(window.wp||={}).a11y=wp.a11y})();/*! 75 * jQuery UI Autocomplete 1.14.2 76 * https://jqueryui.com 77 * 78 * Copyright OpenJS Foundation and other contributors 79 * Released under the MIT license. 80 * https://jquery.org/license 81 */ 82!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.14.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&"true"===this.element.prop("contentEditable"),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value(
82)},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var t=t.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=i),!1!==this._trigger("select",e,{item:t})&&this._value(t.value),this.term=this._value(),this.close(e),this.selectedItem=t}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});/*! 83 * imagesLoaded PACKAGED v4.1.4 84 * JavaScript is all like "You images are done yet or what?" 85 * MIT License 86 */ 87!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEac
vendor: 3,580 bytes, lines 87-94
87h(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});/*! This file is auto-generated */ 88/*! 89 * Masonry PACKAGED v4.2.2 90 * Cascading grid layout library 91 * https://masonry.desandro.com 92 * MIT License 93 * by David DeSandro 94 */
vendor: 23,967 bytes, lines 94-95
94 95!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,n,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*a.width),-1!=o.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
95/*! 96 * Masonry v2 shim 97 * to maintain backwards compatibility 98 * as of Masonry v3.1.2 99 * 100 * Cascading grid layout library 101 * http://masonry.desandro.com 102 * MIT License 103 * by David DeSandro 104 */ 105!function(a){"use strict";var b=a.Masonry;b.prototype._remapV2Options=function(){this._remapOption("gutterWidth","gutter"),this._remapOption("isResizable","isResizeBound"),this._remapOption("isRTL","isOriginLeft",function(a){return!a});var a=this.options.isAnimated;if(void 0!==a&&(this.options.transitionDuration=a?this.options.transitionDuration:0),void 0===a||a){var b=this.options.animationOptions,c=b&&b.duration;c&&(this.options.transitionDuration="string"==typeof c?c:c+"ms")}},b.prototype._remapOption=function(a,b,c){var d=this.options[a];void 0!==d&&(this.options[b]=c?c(d):d)};var c=b.prototype._create;b.prototype._create=function(){var a=this;this._remapV2Options(),c.apply(this,arguments),setTimeout(function(){jQuery(a.element).addClass("masonry")},0)};var d=b.prototype.layout;b.prototype.layout=function(){this._remapV2Options(),d.apply(this,arguments)};var e=b.prototype.option;b.prototype.option=function(){e.apply(this,arguments),this._remapV2Options()};var f=b.prototype._itemize;b.prototype._itemize=function(a){var b=f.apply(this,arguments);return jQuery(a).addClass("masonry-brick"),b};var g=b.prototype.measureColumns;b.prototype.measureColumns=function(){var a=this.options.columnWidth;a&&"function"==typeof a&&(this.getContainerWidth(),this.columnWidth=a(this.containerWidth)),g.apply(this,arguments)},b.prototype.reload=function(){this.reloadItems.apply(this,arguments),this.layout.apply(this)};var h=b.prototype.destroy;b.prototype.destroy=function(){var a=this.getItemElements();jQuery(this.element).removeClass("masonry"),jQuery(a).removeClass("masonry-brick"),h.apply(this,arguments)}}(window);window.addEventListener('load',function(){document.querySelectorAll('a[target="_blank"]').forEach(link=>{link.setAttribute('rel','noopener noreferrer')})});document.documentElement.className+=" js";window.OneSignalDeferred=window.OneSignalDeferred||[];OneSignalDeferred.push(function(OneSignal){var oneSignal_options={};window._oneSignalInitOptions=oneSignal_options;oneSignal_options.serviceWorkerParam={scope:'/'};oneSignal_options.serviceWorkerPath='OneSignalSDKWorker.js.php';OneSignal.Notifications.setDefaultUrl("https://bellarmineforum.org");oneSignal_options.wordpress=!0;oneSignal_options.appId='bfa86403-b897-426b-bf97-d2e5cc0d5251';oneSignal_options.allowLocalhostAsSecureOrigin=!0;oneSignal_options.welcomeNotification={};oneSignal_options.welcomeNotification.title="THE BELLARMINE FORUM";oneSignal_options.welcomeNotification.message="Thank you for Subscribing! God bless you!";oneSignal_options.path="https://bellarmineforum.org/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/";oneSignal_options.safari_web_id="web.onesignal.auto.599df49f-4478-46e8-9089-3c95d63b63cf";oneSignal_options.promptOptions={};oneSignal_options.promptOptions.actionMessage="would like to provide notifications";oneSignal_options.promptOptions.exampleNotificationTitleDesktop="New Post! How the Blessed Mother Conquered Modernism";oneSignal_options.promptOptions.exampleNotificationMessageDesktop="Notifications will appear on your computer - thanks be to God!";oneSignal_options.promptOptions.exampleNotificationTitleMobile="New Post! How the Blessed Mother Conquered Modernism";oneSignal_options.promptOptions.exampleNotificationMessageMobile="Notifications will appear on your device - thanks be to God!";oneSignal_options.promptOptions.acceptButtonText="CONTINUE";oneSignal_options.promptOptions.cancelButtonText="NO THANKS";oneSignal_options.promptOptions.siteName="https:\/\/bellarmineforum.org";oneSignal_options.promptOptions.autoAcceptTitle="Click Allow";OneSignal.init(window._oneSignalInitOptions);OneSignal.Slidedown.promptPush()});function documentInitOneSignal(){var oneSignal_elements=document.getElementsByClassName("OneSignal-prompt");var oneSignalLinkClickHandler=function(event){OneSignal.Notifications.requestPermission();event.preventDefault()};for(var i=0;i<oneSignal_elements.length;i++) 106oneSignal_elements[i].addEventListener('click',oneSignalLinkClickHandler,!1);}
107if(document.readyState==='complete'){documentInitOneSignal()}else{window.addEventListener("load",function(event){documentInitOneSignal()})};($=>{if(window.sessionStorage){$(window).on('tcb_after_dom_ready',()=>{const message=sessionStorage.getItem('tcb_toast_message');if(message){tcbToast(sessionStorage.getItem('tcb_toast_message'),!1);sessionStorage.removeItem('tcb_toast_message')}})} 108function tcbToast(message,error,callback){if(typeof message!=='string'){message=message.message||message.error||message.success} 109if(!error){error=!1} 110TCB_Front.notificationElement.toggle(message,error?'error':'success',callback)}})(typeof ThriveGlobal==='undefined'?jQuery:ThriveGlobal.$j);/*! Thrive Headline Optimizer - 2022-02-25 111* http://www.thrivethemes.com/ 112* Copyright (c) 2022 Thrive Themes */ 113var THO_Front=THO_Front||{},ThriveGlobal=ThriveGlobal||{$j:jQuery.noConflict()};window.clearInterval(window.tho_title_interval),tho_change_titles(),ThriveGlobal.$j(function(){ThriveGlobal.$j(THO_Front).on("tho_log_event",function(a,b){if(b.variation=THO_Titles[b.post_id],void 0!==THO_Titles[b.post_id]){b.referrer=document.referrer,b.is_single=THO_Front.data.is_single;THO_Front.check_user_cookie(b)&&(THO_Front.update_cookie(b),ThriveGlobal.$j.ajax({url:THO_Front.data.log_url,data:b,type:"post"}))}}),"undefiend"!=typeof THO_Front.data&&THO_Front.data.log_engagements.length>0&&THO_Front.full_fast_log(THO_Front.data.log_engagements),ThriveGlobal.$j.each(THO_Front.data.active_triggers,function(a,b){THO_Front[a](b)}),ThriveGlobal.$j(document.body).on("updated_checkout",tho_change_titles),ThriveGlobal.$j(document.body).on("wc_fragments_refreshed",tho_change_titles),ThriveGlobal.$j(document.body).on("wc_fragments_loaded",tho_change_titles),ThriveGlobal.$j(document.body).on("added_to_cart",tho_change_titles)}),THO_Front.full_fast_log=function(a){var b={post_id:THO_Front.data.post_id,test_id:THO_Front.data.test_id,referrer:document.referrer,is_single:THO_Front.data.is_single,variation:THO_Titles[THO_Front.data.post_id]},c=[];for(var d in a)b.log_type=a[d]==THO_Front.data.const._e_click?THO_Front.data.const._engagement:THO_Front.data.const._impression,b.eng_type=a[d],THO_Front.check_user_cookie(b)&&c.push(a[d]);c.length>0&&(b.eng_type=c,THO_Front.update_cookie(b),ThriveGlobal.$j.ajax({url:THO_Front.data.log_url,data:b,type:"post"}))},THO_Front.click_through=function(a){},THO_Front.viewport=function(a){var b=ThriveGlobal.$j(window),c=function(a){if(a.offset().top+80<b.height()+b.scrollTop()&&a.offset().top+a.outerHeight()>b.scrollTop()+80){if(a.addClass("tho-viewport-triggered"),d.post_id=a.attr("data-post-id"),d.test_id=a.attr("data-test-id"),void 0===a.attr("click"))return;d.post_id!=THO_Front.data.post_id&&ThriveGlobal.$j(THO_Front).trigger("tho_log_event",d)}},d={eng_type:THO_Front.data.const._e_click,log_type:THO_Front.data.const._impression};ThriveGlobal.$j(document).ready(function(){var d=ThriveGlobal.$j(a+", ."+a);d.length&&(b.scroll(function(){d.each(function(){var a=ThriveGlobal.$j(this);a.hasClass("tho-viewport-triggered")||c(a)})}),d.each(function(){c(ThriveGlobal.$j(this))}))})},THO_Front.time_on_content_signal=function(a){var b=1e3*parseInt(a),c=!1,d={eng_type:THO_Front.data.const._e_time,post_id:THO_Front.data.post_id,test_id:THO_Front.data.test_id,log_type:THO_Front.data.const._engagement};setTimeout(function(){c||(ThriveGlobal.$j(THO_Front).trigger("tho_log_event",d),c=!0)},b)},THO_Front.scrolling_signal=function(a){var b=parseInt(a)/100,c=ThriveGlobal.$j(window),d={post_id:THO_Front.data.post_id,test_id:THO_Front.data.test_id,eng_type:THO_Front.data.const._e_scroll};ThriveGlobal.$j(function(){var a=!1,e=ThriveGlobal.$j("#"+THO_Front.data.end_of_content_id),f=function(){if(!a){var f=ThriveGlobal.$j("body").height()-c.height();e.length&&(f=e.offset().top-c.height()),(c.scrollTop()/f>=b||f<0)&&(d.eng_type=THO_Front.data.const._e_scroll,d.log_type=THO_Front.data.const._engagement,ThriveGlobal.$j(THO_Front).trigger("tho_log_event",d),a=!0)}};c.scroll(f),f()})},THO_Front.update_cookie=function(a){var b,c,d="tho_post_cookie_"+a.post_id,e=tho_get_cookie(d,!0);if(""==e&&(e={no_click:THO_Front.data.is_single.length&&a.post_id==THO_Front.data.post_id?1:0,impressions:[],engagements:[]}),a.eng_type instanceof Array)for(var f in a.eng_type)c=a.eng_type[f]==THO_Front.data.const._e_click?"engagements":"impressions",e[c].push(a.eng_type[f]);else c=a.log_type==THO_Front.data.const._engagement?"engagements":"impressions",e[c].push(a.eng_type);b={post_id:a.post_id,test_id:a.test_id,no_click:e.no_click,impressions:e.impressions,engagements:e.engagements},tho_set_cookie(d,b,!0)},THO_Front.check_user_cookie=function(a){var b="tho_post_cookie_"+a.post_id,c=tho_get_cookie(b,!0);return""==c?a.log_type==THO_Front.data.const._impression:c.test_id==a.test_id&&(!(c.impressions.indexOf(a.eng_type)>=0&&a.log_type==THO_Front.data.const._impression)&&(!(c.engagements.indexOf(a.eng_type)>=0&&a.log_type==THO_Front.data.const._engagement)&&(a.eng_type!=THO_Front.data.const._e_click||!c.no_click&&-1!==c.impressions.indexOf(a.eng_type))))},THO_Front.getEngagementName=function(a){switch(parseInt(a)){case 1:return"click";case 2:return"scroll";case 3:return"time";case 4:return"viewport";default:return"undetected"}};(function(){'use strict';const settings=window.frmUsrTrkFallback;if(!settings||!settings.ajaxUrl){return} 114const url=window.location.origin+window.location.pathname+window.location.search;const formData=new FormData();formData.append('action',settings.action);formData.append('url',url);formData.append('referer',document.referrer);formData.append('title',document.title);fetch(settings.ajaxUrl,{method:'POST',body:formData,credentials:'same-origin',keepalive:!0,}).catch(()=>{})}());const AnalyticsWP=function(){function n(t,e,n={}){var i=analyticswp_vars.ajaxurl;fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"analyticswp_send_analytics",event_type:t,analyticsData:JSON.stringify(e),eventProperties:JSON.stringify(n)})}).then(t=>t.json())}function e(){var t=(t=navigator.userAgent.toLowerCase()).match(/tablet|ipad|playbook|silk/)?"tablet":t.match(/mobile|iphone|ipod|android|blackberry|mini|
114windows\sce|palm/)?"mobile":"desktop",e=function(){const n={};return new URLSearchParams(window.location.search).forEach((t,e)=>{n[e]=t}),n}();return{pageURL:window.location.href,referrer:document.referrer,deviceType:t,userAgent:navigator.userAgent,utmSource:e.utm_source||null,utmMedium:e.utm_medium||null,utmCampaign:e.utm_campaign||null,utmTerm:e.utm_term||null,utmContent:e.utm_content||null,timestamp:(new Date).toISOString()}}function i(){let e;try{e=localStorage.getItem("unique_session_id")}catch(t){}if(!(e=e||function(t){var n=t+"=",i=document.cookie.split(";");for(let e=0;e<i.length;e++){let t=i[e];for(;" "===t.charAt(0);)t=t.substring(1,t.length);if(0===t.indexOf(n))return t.substring(n.length,t.length)}return null}("unique_session_id"))){e=window.crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)});try{localStorage.setItem("unique_session_id",e)}catch(t){}{var n="unique_session_id";var i=e;var a=365;let t="";var r;a&&((r=new Date).setTime(r.getTime()+24*a*60*60*1e3),t="; expires="+r.toUTCString()),document.cookie=n+"="+(i||"")+t+"; path=/; SameSite=Lax"}}return e}return{init:function(){document.addEventListener("DOMContentLoaded",function(){AnalyticsWP.pageview()})},pageview:function(){n("pageview",this.getAnalyticsData())},event:function(t,e){"string"==typeof t&&t.trim()&&("object"!=typeof e&&(e={}),n(t,this.getAnalyticsData(),e))},getAnalyticsData:function(){var t=e();return t.unique_session_id=i(),t}}}();AnalyticsWP.init();!function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],a=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",d=document.createElement("div");d.innerHTML='<p>x</p><style id="fit-vids-style">'+a+"</style>",r.appendChild(d.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);var a=t(this).find(e.join(","));a=a.not("object object"),a=a.not(r),a.each(function(){var e=t(this);if(!(e.parents(r).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),a=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),d=i/a;if(!e.attr("name")){var o="fitvid"+t.fn.fitVids._count;e.attr("name",o),t.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*d+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto);var wpAjaxUrl='https://bellarmineforum.org/wp-admin/admin-ajax.php';var flBuilderUrl='https://bellarmineforum.org/wp-content/plugins/bb-plugin/';var FLBuilderLayoutConfig={anchorLinkAnimations:{duration:1000,easing:'swing',offset:100},paths:{pluginUrl:'https://bellarmineforum.org/wp-content/plugins/bb-plugin/',wpAjaxUrl:'https://bellarmineforum.org/wp-admin/admin-ajax.php'},breakpoints:{small:768,medium:992,large:1200},waypoint:{offset:80},emptyColWidth:'0%',i18n:{opensInNewTab:'(opens in new tab)'}};(function($){if(typeof FLBuilderLayout!='undefined'){return} 115FLBuilderLayout={init:function(){FLBuilderLayout._destroy();FLBuilderLayout._initClasses();
115FLBuilderLayout._initBackgrounds();FLBuilderLayout._initButtons();FLBuilderLayout._initRowShapeLayerHeight();FLBuilderLayout._initLinkNotices();if(0===$('.fl-builder-edit').length){FLBuilderLayout._initAnchorLinks();FLBuilderLayout._initHash();FLBuilderLayout._initForms();FLBuilderLayout._reorderMenu()}else{FLBuilderLayout._initNestedColsWidth()} 116$('body').removeClass('fl-no-js')},refreshGalleries:function(element){var $element='undefined'==typeof element?$('body'):$(element),mfContent=$element.find('.fl-mosaicflow-content'),wmContent=$element.find('.fl-gallery'),mfObject=null;if(mfContent){mfObject=mfContent.data('mosaicflow');if(mfObject){mfObject.columns=$([]);mfObject.columnsHeights=[];mfContent.data('mosaicflow',mfObject);mfContent.mosaicflow('refill')}} 117if(wmContent){wmContent.trigger('refreshWookmark')}},refreshGridLayout:function(element){var $element='undefined'==typeof element?$('body'):$(element),msnryContent=$element.find('.masonry');if(msnryContent.length){msnryContent.masonry('layout')}},reloadSlider:function(content){var $content='undefined'==typeof content?$('body'):$(content);if($content.find('.bx-viewport > div').length>0){$.each($content.find('.bx-viewport > div'),function(key,slider){setTimeout(function(){$(slider).data('bxSlider').reloadSlider()},100)})}},resizeAudio:function(element){var $element='undefined'==typeof element?$('body'):$(element),audioPlayers=$element.find('.wp-audio-shortcode.mejs-audio'),player=null,mejsPlayer=null,rail=null,railWidth=400;if(audioPlayers.length&&typeof mejs!=='undefined'){audioPlayers.each(function(){player=$(this);mejsPlayer=mejs.players[player.attr('id')];rail=player.find('.mejs-controls .mejs-time-rail');var innerMejs=player.find('.mejs-inner'),total=player.find('.mejs-controls .mejs-time-total');if(typeof mejsPlayer!=='undefined'){railWidth=Math.ceil(player.width()*0.8);if(innerMejs.length){rail.css('width',railWidth+'px!important');mejsPlayer.options.autosizeProgress=!0;setTimeout(function(){mejsPlayer.setControlsSize()},50);player.find('.mejs-inner').css({visibility:'visible',height:'inherit'})}}})}},preloadAudio:function(element){var $element='undefined'==typeof element?$('body'):$(element),contentWrap=$element.closest('.fl-accordion-item'),audioPlayers=$element.find('.wp-audio-shortcode.mejs-audio');if(!contentWrap.hasClass('fl-accordion-item-active')&&audioPlayers.find('.mejs-inner').length){audioPlayers.find('.mejs-inner').css({visibility:'hidden',height:0})}},resizeSlideshow:function(){if(typeof YUI!=='undefined'){YUI().use('node-event-simulate',function(Y){Y.one(window).simulate("resize")})}},reloadGoogleMap:function(element){var $element='undefined'==typeof element?$('body'):$(element),googleMap=$element.find('iframe[src*="google.com/maps"]');if(googleMap.length){googleMap.attr('src',function(i,val){return val})}},_destroy:function(){var win=$(window);win.off('scroll.fl-bg-parallax');win.off('resize.fl-bg-video')},_isTouch:function(){if(('ontouchstart'in window)||(window.DocumentTouch&&document instanceof DocumentTouch)){return!0} 118return!1},_isMobile:function(){return/Mobile|Android|Silk\/|Kindle|BlackBerry|Opera Mini|Opera Mobi|webOS/i.test(navigator.userAgent)},_initClasses:function(){var body=$('body'),ua=navigator.userAgent;if(!body.hasClass('fl-builder-blocks-only')&&!body.hasClass('archive')&&$('.fl-builder-content-primary').length>0){body.addClass('fl-builder')} 119if(FLBuilderLayout._isTouch()){body.addClass('fl-builder-touch')} 120if(FLBuilderLayout._isMobile()){body.addClass('fl-builder-mobile')} 121if($(window).width()<FLBuilderLayoutConfig.breakpoints.small){body.addClass('fl-builder-breakpoint-small')} 122if($(window).width()>FLBuilderLayoutConfig.breakpoints.small&&$(window).width()<FLBuilderLayoutConfig.breakpoints.medium){body.addClass('fl-builder-breakpoint-medium')} 123if($(window).width()>FLBuilderLayoutConfig.breakpoints.medium&&$(window).width()<FLBuilderLayoutConfig.breakpoints.large){body.addClass('fl-builder-breakpoint-large')} 124if($(window).width()>FLBuilderLayoutConfig.breakpoints.large){body.addClass('fl-builder-breakpoint-default')} 125if(ua.indexOf('Trident/7.0')>-1&&ua.indexOf('rv:11.0')>
125-1){body.addClass('fl-builder-ie-11')}},_initBackgrounds:function(){var win=$(window);if($('.fl-row-bg-parallax').length>0&&!FLBuilderLayout._isMobile()){FLBuilderLayout._scrollParallaxBackgrounds();FLBuilderLayout._initParallaxBackgrounds();win.on('resize.fl-bg-parallax',FLBuilderLayout._initParallaxBackgrounds);win.on('scroll.fl-bg-parallax',FLBuilderLayout._scrollParallaxBackgrounds)} 126if($('.fl-bg-video').length>0){FLBuilderLayout._initBgVideos();FLBuilderLayout._resizeBgVideos();var resizeBGTimer=null;win.on('resize.fl-bg-video',function(e){clearTimeout(resizeBGTimer);resizeBGTimer=setTimeout(function(){FLBuilderLayout._resizeBgVideos(e)},100)})}},_initButtons:function(){$('a.fl-button[role="button"]').on('keydown',function(event){if(event.key==='Enter'||event.key===' '){event.preventDefault();$(this).trigger('click')}})},_initParallaxBackgrounds:function(){$('.fl-row-bg-parallax').each(FLBuilderLayout._initParallaxBackground)},_initParallaxBackground:function(){var row=$(this),content=row.find('> .fl-row-content-wrap'),winWidth=$(window).width(),screenSize='',imageSrc={default:'',medium:'',responsive:'',};imageSrc.default=row.data('parallax-image')||'';imageSrc.medium=row.data('parallax-image-medium')||imageSrc.default;imageSrc.responsive=row.data('parallax-image-responsive')||imageSrc.medium;if(winWidth>FLBuilderLayoutConfig.breakpoints.medium){screenSize='default'}else if(winWidth>FLBuilderLayoutConfig.breakpoints.small&&winWidth<=FLBuilderLayoutConfig.breakpoints.medium){screenSize='medium'}else if(winWidth<=FLBuilderLayoutConfig.breakpoints.small){screenSize='responsive'} 127content.css('background-image','url('+imageSrc[screenSize]+')');row.data('current-image-loaded',screenSize)},_scrollParallaxBackgrounds:function(){$('.fl-row-bg-parallax').each(FLBuilderLayout._scrollParallaxBackground)},_scrollParallaxBackground:function(){var win=$(window),row=$(this),content=row.find('> .fl-row-content-wrap'),speed=row.data('parallax-speed'),offset=content.offset(),yPos=-((win.scrollTop()-offset.top)/speed),initialOffset=(row.data('parallax-offset')!=null)?row.data('parallax-offset'):0,totalOffset=yPos-initialOffset;content.css('background-position','center '+totalOffset+'px')},_initBgVideos:function(){$('.fl-bg-video').each(FLBuilderLayout._initBgVideo)},_initBgVideo:function(){var wrap=$(this),width=wrap.data('width'),height=wrap.data('height'),mp4=wrap.data('mp4'),youtube=wrap.data('youtube'),vimeo=wrap.data('vimeo'),mp4Type=wrap.data('mp4-type'),webm=wrap.data('webm'),webmType=wrap.data('webm-type'),fallback=wrap.data('fallback'),loaded=wrap.data('loaded'),videoMobile=wrap.data('video-mobile'),playPauseButton=wrap.find('.fl-bg-video-play-pause-control'),fallbackTag='',videoTag=null,mp4Tag=null,webmTag=null;if(loaded){return} 128videoTag=$('<video autoplay loop muted playsinline></video>');if('undefined'!=typeof fallback&&''!=fallback){videoTag.attr('poster','data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7') 129videoTag.css({backgroundImage:'url("'+fallback+'")',backgroundColor:'transparent',backgroundRepeat:'no-repeat',backgroundSize:'cover',backgroundPosition:'center center',})} 130if('undefined'!=typeof mp4&&''!=mp4){mp4Tag=$('<source />');mp4Tag.attr('src',mp4);mp4Tag.attr('type',mp4Type);videoTag.append(mp4Tag)} 131if('undefined'!=typeof webm&&''!=webm){webmTag=$('<source />');webmTag.attr('src',webm);webmTag.attr('type',webmType);videoTag.append(webmTag)} 132if(!FLBuilderLayout._isMobile()||(FLBuilderLayout._isMobile()&&"yes"==videoMobile)){if('undefined'!=typeof youtube){FLBuilderLayout._initYoutubeBgVideo.apply(this)}else if('undefined'!=typeof vimeo){FLBuilderLayout._initVimeoBgVideo.apply(this)}else{wrap.append(videoTag);if(playPauseButton.length>0){var video=videoTag[0];playPauseButton.on('click',{video:video},function(e){var video=e.data.video;if(video.paused){video.play()}else{video.pause()}});$(video).on('play playing',function(){playPauseButton.removeClass('fa-play').addClass('fa-pause')});$(video).on('pause ended waiting',function(){playPauseButton.removeClass('fa-pause').addClass('fa-play')})}}}else{videoTag.attr('src','') 133wrap.append(videoTag)} 134wrap.data('loaded',!0)},_initYoutubeBgVideo:function(){var playerWrap=$(this),videoId=playerWrap.data('video-id'),videoPlayer=playerWrap.find('.fl-bg-video-player'),enableAudio=playerWrap.data('enable-audio'),audioButton=playerWrap.find('.fl-bg-video-audio'),playPauseButton=playerWrap.find('.fl-bg-video-play-pause-control'),startTime='undefined'!==typeof playerWrap.data('start')?playerWrap.data('start'):0,startTime='undefined'!==typeof playerWrap.data('t')&&startTime===0?playerWrap.data('t'):startTime,endTime='undefined'!==typeof playerWrap.data('end')?playerWrap.data('end'):0,loop='undefined'!==typeof playerWrap.data('loop')?playerWrap.data('loop'):1,stateCount=0,player,fallback_showing;if(videoId){fallback=playerWrap.data('fallback')||!1 135if(fallback){playerWrap.find('iframe').remove() 136fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+playerWrap.data('fallback')+')');fallbackTag.css('background-size','cover');fallbackTag.css('transition','background-image 1s') 137playerWrap.append(fallbackTag);fallback_showing=!0} 138FLBuilderLayout._onYoutubeApiReady(function(YT){setTimeout(function(){player=new YT.Player(videoPlayer[0],{videoId:videoId,events:{onReady:function(event){if("no"===enableAudio||FLBuilderLayout._isMobile()){event.target.mute()}else if("yes"===enableAudio&&event.target.isMuted){event.target.unMute()} 139playerWrap.data('YTPlayer',player);FLBuilderLayout._resizeYoutubeBgVideo.apply(playerWrap);event.target.playVideo();if(audioButton.length>
1390&&!FLBuilderLayout._isMobile()){audioButton.on('click',{button:audioButton,player:player},FLBuilderLayout._toggleBgVideoAudio)} 140if(playPauseButton.length>0){playPauseButton.on('click',{player:player},function(e){var player=e.data.player;if(1===player.getPlayerState()){player.pauseVideo()}else{player.playVideo()}})}},onStateChange:function(event){if(event.data===1){if(fallback_showing){$('.fl-bg-video-fallback').css('background-image','url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)')}} 141if(stateCount<4){stateCount++} 142if(stateCount>1&&-1===event.data&&"yes"===enableAudio){player.mute();player.playVideo();audioButton.show()} 143if(event.data===YT.PlayerState.ENDED&&1===loop){if(startTime>0){player.seekTo(startTime)}else{player.playVideo()}} 144if(event.data===YT.PlayerState.PLAYING){playPauseButton.removeClass('fa-play').addClass('fa-pause')}else if(event.data===YT.PlayerState.PAUSED){playPauseButton.removeClass('fa-pause').addClass('fa-play')}else if(event.data===YT.PlayerState.BUFFERING){playPauseButton.removeClass('fa-play').addClass('fa-pause')}else if(event.data===YT.PlayerState.CUED){playPauseButton.removeClass('fa-pause').addClass('fa-play')}else if(event.data===YT.PlayerState.ENDED){playPauseButton.removeClass('fa-pause').addClass('fa-play')}},onError:function(event){console.info('YT Error: '+event.data) 145FLBuilderLayout._onErrorYoutubeVimeo(playerWrap)}},playerVars:{playsinline:FLBuilderLayout._isMobile()?1:0,controls:0,showinfo:0,rel:0,start:startTime,end:endTime,}})},1)})}},_onErrorYoutubeVimeo:function(playerWrap){fallback=playerWrap.data('fallback')||!1 146if(!fallback){return!1} 147playerWrap.find('iframe').remove() 148fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+playerWrap.data('fallback')+')');playerWrap.append(fallbackTag)},_onYoutubeApiReady:function(callback){if(window.YT&&YT.loaded){callback(YT)}else{setTimeout(function(){FLBuilderLayout._onYoutubeApiReady(callback)},350)}},_initVimeoBgVideo:function(){var playerWrap=$(this),videoId=playerWrap.data('video-id'),videoHash=playerWrap.data('video-hash'),videoPlayer=playerWrap.find('.fl-bg-video-player'),enableAudio=playerWrap.data('enable-audio'),audioButton=playerWrap.find('.fl-bg-video-audio'),playPauseButton=playerWrap.find('.fl-bg-video-play-pause-control'),playerState='',player,width=playerWrap.outerWidth(),ua=navigator.userAgent;if(typeof Vimeo!=='undefined'&&videoId){const vimOptions={loop:!0,title:!1,portrait:!1,background:!0,autopause:!1,muted:!0,};if(videoHash.length){vimOptions.url=`https://player.vimeo.com/video/${ videoId }?h=${ videoHash }`}else{vimOptions.id=videoId} 149player=new Vimeo.Player(videoPlayer[0],vimOptions);playerWrap.data('VMPlayer',player);if("no"===enableAudio){player.setVolume(0)}else if("yes"===enableAudio){if(ua.indexOf("Safari")>-1||ua.indexOf("Chrome")>-1||ua.indexOf("Firefox")>-1){player.setVolume(0);audioButton.show()}else{player.setVolume(1)}} 150player.play().catch(function(error){FLBuilderLayout._onErrorYoutubeVimeo(playerWrap)});if(audioButton.length>0){audioButton.on('click',{button:audioButton,player:player},FLBuilderLayout._toggleBgVideoAudio)} 151player.on('play',function(){playerState='play';playPauseButton.removeClass('fa-play').addClass('fa-pause')});player.on('pause',function(){playerState='pause';playPauseButton.removeClass('fa-pause').addClass('fa-play')});player.on('ended',function(){playerState='ended';playPauseButton.removeClass('fa-pause').addClass('fa-play')});player.on('bufferstart',function(){playerState='bufferstart';playPauseButton.removeClass('fa-play').addClass('fa-pause')});if(playPauseButton.length>0){playPauseButton.on('click',{player:player},function(e){var player=e.data.player;if(playerState==='play'){player.pause()}else{player.play()}})}}},_toggleBgVideoAudio:function(e){var player=e.data.player,control=e.data.button.find('.fl-audio-control');if(control.hasClass('fa-volume-off')){control.removeClass('fa-volume-off').addClass('fa-volume-up');e.data.button.find('.fa-times').hide();if('function'===typeof player.unMute){player.unMute()}else{player.setVolume(1)}}else{control.removeClass('fa-volume-up').addClass('fa-volume-off');e.data.button.find('.fa-times').show();if('function'===typeof player.unMute){player.mute()}else{player.setVolume(0)}}},_videoBgSourceError:function(e){var source=$(e.target),wrap=source.closest('.fl-bg-video'),vid=wrap.find('video'),fallback=wrap.data('fallback'),fallbackTag='';source.remove();if(vid.find('source').length){return}else if(''!==fallback){fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+fallback+')');wrap.append(fallbackTag);vid.remove()}},_resizeBgVideos:function(){$('.fl-bg-video').each(function(){FLBuilderLayout._resizeBgVideo.apply(this);if($(this).parent().find('img').length>0){$(this).parent().imagesLoaded($.proxy(FLBuilderLayout._resizeBgVideo,this))}})},_resizeBgVideo:function(){if(0===$(this).find('video').length&&0===$(this).find('iframe').length){return} 152var wrap=$(this),wrapHeight=wrap.outerHeight(),wrapWidth=wrap.outerWidth(),vid=wrap.find('video'),vidHeight=wrap.data('height'),vidWidth=wrap.data('width'),newWidth=wrapWidth,newHeight=Math.round(vidHeight*wrapWidth/vidWidth),newLeft=0,newTop=0,iframe=wrap.find('iframe'),isRowFullHeight=$(this).closest('.fl-row-bg-video').hasClass('fl-row-full-height'),vidCSS={top:'50%',left:'50%',transform:'translate(-50%,-50%)',};if(vid.length){if(vidHeight===''||typeof vidHeight==='undefined'||vidWidth===''||typeof vidWidth==='undefined'){vid.css({'left':'0px','top':'0px','width':newWidth+'px'});vid.on('loadedmetadata',FLBuilderLayout._resizeOnLoadedMeta);return} 153if(!isRowFullHeight){if(newHeight<wrapHeight){newHeight=wrapHeight;newWidth=vidHeight?Math.round(vidWidth*wrapHeight/vidHeight):newWidth;newLeft=-((newWidth-wrapWidth)/2)}else{newTop=-((newHeight-wrapHeight)/2)} 154vidCSS={left:newLeft+'px',top:newTop+'px',height:newHeight+'px',width:newWidth+'px',}} 155vid.css(vidCSS)}else if(iframe.length){if(typeof wrap.data('youtube')!=='undefined'){FLBuilderLayout._resizeYoutubeBgVideo.apply(this)}}},_resizeOnLoadedMeta:function(){var video=$(this),wrapHeight=video.parent().outerHeight(),wrapWidth=video.parent().outerWidth(),vidWidth=video[0].videoWidth,vidHeight=video[0].videoHeight,newHeight=Math.round(vidHeight*wrapWidth/vidWidth),newWidth=wrapWidth,newLeft=0,newTop=0;if(newHeight<wrapHeight){newHeight=wrapHeight;newWidth=Math.round(vidWidth*wrapHeight/vidHeight);newLeft=-((newWidth-wrapWidth)/2)}else{newTop=-((newHeight-wrapHeight)/2)} 156video.parent().data('width',vidWidth);video.parent().data('height',vidHeight);
156video.css({'left':newLeft+'px','top':newTop+'px','width':newWidth+'px','height':newHeight+'px'})},_resizeYoutubeBgVideo:function(){var wrap=$(this),wrapWidth=wrap.outerWidth(),wrapHeight=wrap.outerHeight(),player=wrap.data('YTPlayer'),video=player?player.getIframe():null,aspectRatioSetting='16:9',aspectRatioArray=aspectRatioSetting.split(':'),aspectRatio=aspectRatioArray[0]/aspectRatioArray[1],ratioWidth=wrapWidth/aspectRatio,ratioHeight=wrapHeight*aspectRatio,isWidthFixed=wrapWidth/wrapHeight>aspectRatio,width=isWidthFixed?wrapWidth:ratioHeight,height=isWidthFixed?ratioWidth:wrapHeight;if(video){$(video).width(width).height(height)}},_initHash:function(){var hash=window.location.hash.replace('#','').split('/').shift(),element=null,tabs=null,responsiveLabel=null,tabIndex=null,label=null;if(''!==hash){try{element=$('#'+hash);if(element.length>0){if(element.hasClass('fl-accordion-item')){setTimeout(function(){element.find('.fl-accordion-button').trigger('click')},100)} 157if(element.hasClass('fl-tabs-panel')){setTimeout(function(){tabs=element.closest('.fl-tabs');responsiveLabel=element.find('.fl-tabs-panel-label');tabIndex=responsiveLabel.data('index');label=tabs.find('.fl-tabs-labels .fl-tabs-label[data-index='+tabIndex+']');label[0].click();FLBuilderLayout._scrollToElement(element)},100)}}}catch(e){}}},_initLinkNotices:function(){$('.fl-builder-content a[target], .fl-builder-content [role="link"][data-link-target]').each(function(){var link=$(this),notice=link.children('span.fl-new-tab-notice'),target=link.attr('target')||link.attr('data-link-target');if('_blank'===target){if(0===notice.length){link.append('<span class="fl-new-tab-notice sr-only">'+FLBuilderLayoutConfig.i18n.opensInNewTab+'</span>')}}else if(notice.length>0){notice.remove()}})},_initAnchorLinks:function(){$('a, [role="link"]').each(FLBuilderLayout._initAnchorLink)},_initAnchorLink:function(){var link=$(this),href=link.data('url')?link.data('url'):link.attr('href'),target=link.data('url')?new URL(href,window.location.href):this,loc=window.location,id=null,element=null,flNode=!1;if('undefined'!=typeof href&&href.indexOf('#')>-1&&link.closest('svg').length<1){if(loc.pathname.replace(/^\//,'')==target.pathname.replace(/^\//,'')&&loc.hostname==target.hostname){try{id=href.split('#').pop();if(!id){return} 158element=$('#'+id);if(element.length>0){flNode=element.hasClass('fl-row')||element.hasClass('fl-col')||element.hasClass('fl-module');if(!element.hasClass('fl-no-scroll')&&(link.hasClass('fl-scroll-link')||flNode)){$(link).on('click',FLBuilderLayout._scrollToElementOnLinkClick)} 159if(element.hasClass('fl-accordion-item')){$(link).on('click',FLBuilderLayout._scrollToAccordionOnLinkClick)} 160if(element.hasClass('fl-tabs-panel')){$(link).on('click',FLBuilderLayout._scrollToTabOnLinkClick)}}}catch(e){}}}},_scrollToElementOnLinkClick:function(e,callback){var attribute=$(this).data('url')?$(this).data('url'):$(this).attr('href');var element=$('#'+attribute.split('#').pop());FLBuilderLayout._scrollToElement(element,callback);e.preventDefault()},_scrollToElement:function(element,callback){var config=FLBuilderLayoutConfig.anchorLinkAnimations,dest=0,win=$(window),doc=$(document);if(element.length>0){if('fixed'===element.css('position')||'fixed'===element.parent().css('position')){dest=element.position().top}else if(element.offset().top>doc.height()-win.height()){dest=doc.height()-win.height()}else{dest=element.offset().top-config.offset} 161$('html, body').stop(!0).animate({scrollTop:dest},config.duration,config.easing,function(){if('undefined'!=typeof callback){callback()} 162if(undefined!=element.attr('id')&&window.location.hash!=='#'+element.attr('id')){var firefox_version=window.navigator.userAgent.match(/Firefox\/(\d+)\./),firefox_version=firefox_version?parseInt(firefox_version[1],10):null;if(firefox_version!==null&&firefox_version<135){window.location.hash=element.attr('id')}else{if(history.pushState){history.pushState(null,null,'#'+element.attr('id'))}else{window.location.hash=element.attr('id')}}}})}},_scrollToAccordionOnLinkClick:function(e){var element=$('#'+$(this).attr('href').split('#').pop());if(element.length>0){var callback=function(){if(element){element.find('.fl-accordion-button').trigger('click');element=!1}};FLBuilderLayout._scrollToElementOnLinkClick.call(this,e,callback)}},_scrollToTabOnLinkClick:function(e){var element=$('#'+$(this).attr('href').split('#').pop()),tabs=null,label=null,responsiveLabel=null;if(element.length>0){tabs=element.closest('.fl-tabs');responsiveLabel=element.find('.fl-tabs-panel-label');tabIndex=responsiveLabel.data('index');label=tabs.find('.fl-tabs-labels .fl-tabs-label[data-index='+tabIndex+']');if(responsiveLabel.is(':visible')){var callback=function(){if(element){responsiveLabel.trigger($.Event('click',{which:1}))}};FLBuilderLayout._scrollToElementOnLinkClick.call(this,e,callback)}else{label[0].click();FLBuilderLayout._scrollToElement(element)} 163e.preventDefault()}},_initForms:function(){if(!FLBuilderLayout._hasPlaceholderSupport){$('.fl-form-field input').each(FLBuilderLayout._initFormFieldPlaceholderFallback)} 164$('.fl-form-field input').on('focus',FLBuilderLayout._clearFormFieldError)},_hasPlaceholderSupport:function(){var input=document.createElement('input');return'undefined'!=input.placeholder},_initFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if('undefined'!=placeholder&&''===val){field.val(placeholder);field.on('focus',FLBuilderLayout._hideFormFieldPlaceholderFallback);
164field.on('blur',FLBuilderLayout._showFormFieldPlaceholderFallback)}},_hideFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if(val==placeholder){field.val('')}},_showFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if(''===val){field.val(placeholder)}},_clearFormFieldError:function(){var field=$(this);field.removeAttr('aria-invalid');field.removeClass('fl-form-error');const message=field.attr('aria-describedby');message?$('#'+message).hide():field.siblings('.fl-form-error-message').hide()},_initRowShapeLayerHeight:function(){FLBuilderLayout._adjustRowShapeLayerHeight();$(window).on('resize',FLBuilderLayout._adjustRowShapeLayerHeight)},_initNestedColsWidth:function(){var nestedCols=$('.fl-col-has-cols');if(nestedCols.length<=0){return} 165$(nestedCols).each(function(index,col){if($(col).width()<=0){$(col).css('width',FLBuilderLayoutConfig.emptyColWidth)}})},_adjustRowShapeLayerHeight:function(){var rowShapeLayers=$('.fl-builder-shape-layer');$(rowShapeLayers).each(function(index){var rowShapeLayer=$(this),shape=$(rowShapeLayer).find('svg'),height=shape.height(),excludeShapes='.fl-builder-shape-circle, .fl-builder-shape-dot-cluster, .fl-builder-shape-topography, .fl-builder-shape-rect';if(!rowShapeLayer.is(excludeShapes)){$(shape).css('height',Math.ceil(height))}})},_string_to_slug:function(str){str=str.replace(/^\s+|\s+$/g,'');if('undefined'==typeof window._fl_string_to_slug_regex){regex=new RegExp('[^a-zA-Z0-9\'":() !.,-_|]','g')}else{regex=new RegExp('[^'+window._fl_string_to_slug_regex+'\'":\(\) !.,-_|\\\p{Letter}]','ug')} 166str=str.replace(regex,'').replace(/\s+/g,' ');return str},_reorderMenu:function(){if($('#wp-admin-bar-fl-builder-frontend-edit-link-default li').length>1){$('#wp-admin-bar-fl-builder-frontend-duplicate-link').appendTo('#wp-admin-bar-fl-builder-frontend-edit-link-default').css('padding-top','5px').css('border-top','2px solid #1D2125').css('margin-top','5px')}}};$(function(){FLBuilderLayout.init()})})(jQuery);(function($){if(typeof FLBuilderLayoutModules!=='undefined'){return} 167FLBuilderLayoutModules={init:function(){if(0===$('.fl-builder-edit').length){FLBuilderLayoutModules._initModuleAnimations()}},_initModuleAnimations:function(){if(typeof jQuery.fn.waypoint!=='undefined'){$('.fl-animation').each(function(){var node=$(this),nodeTop=node.offset().top,winHeight=$(window).height(),bodyHeight=$('body').height(),waypoint=FLBuilderLayoutConfig.waypoint,offset='80%';if(typeof waypoint.offset!==undefined){offset=FLBuilderLayoutConfig.waypoint.offset+'%'} 168if(bodyHeight-nodeTop<winHeight*0.2){offset='100%'} 169node.waypoint({offset:offset,handler:FLBuilderLayoutModules._doModuleAnimation})})}},_doModuleAnimation:function(){var module='undefined'==typeof this.element?$(this):$(this.element),delay=parseFloat(module.data('animation-delay')),duration=parseFloat(module.data('animation-duration'));if(!isNaN(duration)){module.css('animation-duration',duration+'s')} 170if(!isNaN(delay)&&delay>0){setTimeout(function(){module.addClass('fl-animated')},delay*1000)}else{setTimeout(function(){module.addClass('fl-animated')},1)}}};$(function(){FLBuilderLayoutModules.init()})})(jQuery);jQuery(function($){$(function(){$('.fl-node-5915ffe3156c3 .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title')}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null)})});window._fl_string_to_slug_regex='a-zA-Z0-9'});(function($){FLBuilderMenu=function(settings){this.nodeId=settings.id;this.nodeClass='.fl-node-'+settings.id;this.wrapperClass=this.nodeClass+' .fl-menu';this.type=settings.type;this.mobileToggle=settings.mobile;this.mobileBelowRow=settings.mobileBelowRow;this.mobileFlyout=settings.mobileFlyout;this.breakPoints=settings.breakPoints;this.mobileBreakpoint=settings.mobileBreakpoint;this.currentBrowserWidth=$(window).width();this.postId=settings.postId;this.mobileStacked=settings.mobileStacked;this.submenuIcon=settings.submenuIcon;this.flyoutWidth=settings.flyoutWidth;this._initMenu();$(window).on('resize',$.proxy(function(){var width=$(window).width();if(width!=this.currentBrowserWidth){this.currentBrowserWidth=width;this._initMenu(!0);this._clickOrHover(!0)} 171this._resizeFlyoutMenuPanel()},this));$(window).on('scroll',$.proxy(function(){this._resizeFlyoutMenuPanel()},this));$(this.wrapperClass).on('keydown','.fl-menu-mobile-toggle, .menu-item:first a:first',$.proxy(function(event){if(event.key!=='Tab'||!this._isMenuToggle()||!this._isMobileBelowRowEnabled()){return} 172if(event.shiftKey&&$(event.currentTarget).is('a')){event.preventDefault();$(this.wrapperClass).find('.fl-menu-mobile-toggle').trigger('focus')}else if(!event.shiftKey&&$(event.currentTarget).hasClass('fl-menu-mobile-toggle')&&$(event.currentTarget).hasClass('fl-active')){event.preventDefault();$(this.wrapperClass).find('.menu-item').first().find('a').first().trigger('focus')}},this));$(this.wrapperClass).on('focusout',$.proxy(function(event){if($(this.wrapperClass+' nav').has($(event.relatedTarget)).length===0){if(this.t
172ype==='accordion'){this._toggleSubmenu($(event.target).parents('.fl-has-submenu').last(),!1)}else{this._clickOrHover(!0)} 173const mobileToggle=$(this.wrapperClass).find('.fl-menu-mobile-toggle');if(this._isMenuToggle()&&mobileToggle.hasClass('fl-active')&&!$(event.relatedTarget).is(mobileToggle)&&'expanded'!==this.mobileToggle){mobileToggle.trigger('click')}}},this))};FLBuilderMenu.prototype={nodeClass:'',wrapperClass:'',type:'',breakPoints:{},$submenus:null,_isMobile:function(){return this.currentBrowserWidth<=this.breakPoints.small?true:!1},_isMouseAvailable:function(){return window.matchMedia("(pointer: fine) and (hover: hover)").matches},_isMedium:function(){return this.currentBrowserWidth<=this.breakPoints.medium?true:!1},_isLarge:function(){return this.currentBrowserWidth<=this.breakPoints.large?true:!1},_isMenuToggle:function(){if(('always'==this.mobileBreakpoint||(this._isMobile()&&'mobile'==this.mobileBreakpoint)||(this._isMedium()&&'medium-mobile'==this.mobileBreakpoint)||(this._isLarge()&&'large-mobile'==this.mobileBreakpoint))&&($(this.wrapperClass).find('.fl-menu-mobile-toggle').is(':visible')||'expanded'==this.mobileToggle)){return!0} 174return!1},_initMenu:function(resized=!1){this._setupSubmenu();if(!resized){this._menuOnFocus();this._menuOnClick();this._menuOnEscape()} 175if($(this.nodeClass).length&&this.type=='horizontal'){this._initMegaMenus()} 176if(this._isMenuToggle()||this.type=='accordion'){$(this.wrapperClass).off('mouseenter mouseleave');this._clickOrHover()}else{this._submenuOnRight();this._submenuRowZindexFix()} 177if(this.mobileToggle!='expanded'){this._toggleForMobile()} 178if($(this.wrapperClass).find('.fl-menu-search-item').length){this._toggleMenuSearch()} 179if($(this.wrapperClass).find('.fl-menu-cart-item').length){this._wooUpdateParams()}},_setupSubmenu:function(){if(!this._isMouseAvailable()||this._isMenuToggle()||this.type==='accordion'){$(this.wrapperClass).addClass('no-hover')}else{$(this.wrapperClass).removeClass('no-hover')}},_menuOnFocus:function(){$(this.wrapperClass).on('focus','a:not(.fl-button), .fl-menu-toggle',$.proxy(function(event){const focusedMenuItem=$(event.currentTarget).closest('.menu-item');const blurredMenuItem=$(event.relatedTarget).closest('.menu-item');if(focusedMenuItem.closest('ul').is(blurredMenuItem.closest('ul'))){if(!focusedMenuItem.is(blurredMenuItem)){this._toggleSubmenu(blurredMenuItem,!1)}}else if(focusedMenuItem.has(blurredMenuItem).length===blurredMenuItem.has(focusedMenuItem).length){blurredMenuItem.parents('.fl-has-submenu').each((_,parent)=>{if(focusedMenuItem.closest('ul').is($(parent).closest('ul'))){this._toggleSubmenu($(parent),!1);return!1}})}else if(focusedMenuItem.has(blurredMenuItem).length){if(this.type!=='accordion'&&this.submenuIcon==='none'){this._toggleSubmenu(blurredMenuItem,!1)}}},this))},_menuOnEscape:function(){$(this.wrapperClass).on('keydown',$.proxy(function(event){if(event.key!=='Escape')return;const menuItem=$(event.target).closest('.menu-item');const mobileToggle=$(this.wrapperClass).find('.fl-menu-mobile-toggle');
179if(menuItem.length||$(event.target).hasClass('fl-menu-mobile-close')){if(menuItem.hasClass('fl-menu-search-item')&&$(this.wrapperClass).find('.fl-search-form-input-wrap').is(':visible')){$(this.wrapperClass).find('.fl-menu-search-item .fl-button:is(a, button:not([type="submit"]))').trigger('focus')}else if(menuItem.hasClass('fl-has-submenu')&&menuItem.find('.sub-menu').first().is(':visible')){this._toggleSubmenu(menuItem,!1)}else{const parentMenuItem=menuItem.parents('.fl-has-submenu').not('.mega-menu.hide-heading, .mega-menu-disabled.hide-heading').first();if(parentMenuItem.length===0&&this._isMenuToggle()&&mobileToggle.hasClass('fl-active')){mobileToggle.trigger('blur').trigger('focus')}else if(parentMenuItem.length!==0){this._toggleSubmenu(parentMenuItem,!1);parentMenuItem.find('a').first().trigger('focus')}}}else if($(event.target).hasClass('fl-menu-mobile-toggle')&&mobileToggle.hasClass('fl-active')){mobileToggle.trigger('blur').trigger('focus')}},this))},_menuOnClick:function(){$(this.wrapperClass).on('keydown','a:not(.fl-button, [href]), span.fl-menu-toggle',$.proxy(function(event){if(event.key==='Enter'||event.key===' '){event.preventDefault();$(event.currentTarget).trigger('click')}},this));$(this.wrapperClass).on('click','a, .fl-menu-toggle',$.proxy(function(event){if(this._isMouseAvailable()&&!this._isMenuToggle()&&event.detail&&this.type!=='accordion')return;if($(event.currentTarget).is('a')&&(this.submenuIcon!=='none'||this.type==='accordion'))return;const menuItem=$(event.currentTarget).closest('.menu-item, .fl-menu-logo');const menuLink=menuItem.find('a').first().attr('href');const submenuHidden=menuItem.find('.sub-menu').first().is(':hidden');if(typeof menuLink==='undefined'||menuLink==='#'||submenuHidden){event.preventDefault()} 180if($(event.currentTarget).hasClass('fl-menu-toggle')||submenuHidden){this._toggleSubmenu(menuItem,submenuHidden)}},this))},_toggleSubmenu:function(menuItem,opened){const togglingClass=this._isMenuToggle()||this.type==='accordion'?'fl-active':'focus';const toggleElement=this.submenuIcon==='none'?'a':'.fl-menu-toggle';const hiddenMenu='.mega-menu.hide-heading, .mega-menu-disabled.hide-heading';if(opened&&menuItem.hasClass('fl-has-submenu')&&!menuItem.is(hiddenMenu)){menuItem.addClass(togglingClass);menuItem.find(toggleElement).first().attr('aria-expanded',!0);if(this._isMenuToggle()||this.type==='accordion'){menuItem.find('.sub-menu').first().filter(':hidden').slideDown()}}else{menuItem.parent().find('.menu-item').removeClass(togglingClass);menuItem.parent().find('.fl-has-submenu').not(hiddenMenu).find(toggleElement).attr('aria-expanded',!1);if(this._isMenuToggle()||this.type==='accordion'){menuItem.find('.sub-menu').filter(':visible').slideUp()}}},_clickOrHover:function(clear=!1){const selector=this._isMobileBelowRowEnabled()?this.nodeClass+'-clone':this.nodeClass;this.$submenus=this.$submenus||$(selector).find('.sub-menu');const className=this._isMenuToggle()||this.type==='accordion'?'fl-active':'focus';const toggleElement=this.submenuIcon==='none'?'a':'.fl-menu-toggle';const hiddenMenu='.mega-menu.hide-heading, .mega-menu-disabled.hide-heading';$(selector).find('.fl-has-submenu').not(hiddenMenu).each(function(){if(clear||!$(this).hasClass(className)){if(clear)$(this).removeClass(className);$(this).find(toggleElement).first().attr('aria-expanded',!1);if(className==='fl-active'){$(this).find('.sub-menu').fadeOut()}else if(className==='focus'){$(this).find('.sub-menu').css({'display':'','opacity':''})}}})},_submenuOnRight:function(){$(this.wrapperClass).on('mouseenter focus','.fl-has-submenu',$.proxy(function(e){if($(e.currentTarget).find('.sub-menu').length===0){return} 181var $link=$(e.currentTarget),$parent=$link.parent(),$subMenu=$link.find('.sub-menu'),subMenuWidth=$subMenu.width(),subMenuPos=0,bodyWidth=$('body').width();if($link.closest('.fl-menu-submenu-right').length!==0){$link.addClass('fl-menu-submenu-right')}else if($('body').hasClass('rtl')){subMenuPos=$parent.is('.sub-menu')?$parent.offset().left-subMenuWidth:$link.offset().left-$link.width()-subMenuWidth;if(subMenuPos<=0){$link.addClass('fl-menu-submenu-right')}}else{subMenuPos=$parent.is('.sub-menu')?$parent.offset().left+$parent.width()+subMenuWidth:$link.offset().left+$link.width()+subMenuWidth;if(subMenuPos>bodyWidth){$link.addClass('fl-menu-submenu-right')}}},this)).on('mouseleave','.fl-has-submenu',$.proxy(function(e){$(e.currentTarget).removeClass('fl-menu-submenu-right')},this))},_submenuRowZindexFix:function(){$(this.wrapperClass).on('mouseenter','ul.menu > .fl-has-submenu',$.proxy(function(e){if($(e.currentTarget).find('.sub-menu').length===0){return} 182$(this.nodeClass).closest('.fl-row').find('.fl-row-content').css('z-index','10')},this)).on('mouseleave','ul.menu > .fl-has-submenu',$.proxy(function(){$(this.nodeClass).closest('.fl-row').find('.fl-row-content').css('z-index','')},this))},_toggleForMobile:function(){var $wrapper=null,$menu=null,self=this;$(this.wrapperClass).find('.fl-menu-mobile-toggle').attr('aria-controls',$(this.wrapperClass).find('ul.menu').attr('id'));if(this._isMenuToggle()){if(this._isMobileBelowRowEnabled()){this._placeMobileMenuBelowRow();$wrapper=$(this.wrapperClass);$menu=$(this.nodeClass+'-clone');$menu.find('ul.menu').show()}else{$wrapper=$(this.wrapperClass);$menu=$wrapper.find('.menu')} 183if(!$wrapper.find('.fl-menu-mobile-toggle').hasClass('fl-active')&&!self.mobileFlyout){$menu.css({display:'none'})} 184if(self.mobileFlyout){this._initFlyoutMenu()} 185$wrapper.on('click','.fl-menu-mobile-toggle',function(e){e.stopImmediatePropagation();$(this).toggleClass('fl-active');if(self.mobileFlyout){self._toggleFlyoutMenu();const flyoutWrapper=$('.fl-menu-mobile-flyout');if($(this).hasClass('fl-active')){flyoutWrapper.attr('aria-hidden',!1);flyoutWrapper.find('a[href], button, input, select, textarea, span.fl-menu-toggle, [tabindex="-1"]').attr('tabindex',0)}else{flyoutWrapper.attr('aria-hidden',!0);flyoutWrapper.find('a[href], button, input, select, textarea, span.fl-menu-toggle, [tabindex]:not
185([tabindex="-1"])').attr('tabindex',-1)}}else{var targetMenu=null;if(self.mobileBelowRow){var $closestCol=$(this).parents('.fl-col, .fl-module-box'),$closestColGroup=$closestCol.length?$closestCol.parent('.fl-col-group'):null;targetMenu=$closestCol.length?$closestCol.last().next('.fl-menu-mobile-clone'):null;if($closestColGroup.length){if($closestColGroup.hasClass('fl-col-group-responsive-reversed')){$closestColGroup.find('.fl-menu-mobile-clone').css('order',-1)}else if($closestColGroup){$closestColGroup.find('.fl-menu-mobile-clone').css('order',2)}}}else{targetMenu=$(this).closest('.fl-menu').find('ul.menu')} 186if(targetMenu.length){$menu=$(targetMenu)} 187$menu.slideToggle()} 188e.stopPropagation()});$menu.off().on('click','.menu-item > a[href*="#"]:not([href="#"])',function(){var $href=$(this).attr('href'),$targetID=$href.split('#')[1],element=$('#'+$targetID);if($('body').find(element).length>0){$(this).toggleClass('fl-active');FLBuilderLayout._scrollToElement(element);if(!self._isMenuToggle()){$menu.slideToggle()}}})}else{if(this._isMobileBelowRowEnabled()){this._removeMenuFromBelowRow()} 189$wrapper=$(this.wrapperClass),$menu=$wrapper.find('ul.menu');$wrapper.find('.fl-menu-mobile-toggle').removeClass('fl-active');$menu.css({display:''});if(!this._isMobileBelowRowEnabled()){$menu.off('click','.menu-item > a[href*="#"]:not([href="#"])')} 190if(this.mobileFlyout&&$wrapper.find('.fl-menu-mobile-flyout').length>0){$('body').css('margin','');$('.fl-builder-ui-pinned-content-transform').css('transform','');$menu.unwrap();$wrapper.find('.fl-menu-mobile-close').remove();$wrapper.find('.fl-menu-mobile-opacity').remove()}}},_initMegaMenus:function(){var module=$(this.nodeClass),rowContent=module.closest('.fl-row-content'),rowWidth=rowContent.width(),megas=module.find('.mega-menu'),disabled=module.find('.mega-menu-disabled'),isToggle=this._isMenuToggle();if(isToggle){megas.removeClass('mega-menu').addClass('mega-menu-disabled');module.find('li.mega-menu-disabled > ul.sub-menu').css('width','');rowContent.css('position','')}else{disabled.removeClass('mega-menu-disabled').addClass('mega-menu');module.find('li.mega-menu > ul.sub-menu').css('width',rowWidth+'px');rowContent.css('position','relative')}},_isMobileBelowRowEnabled:function(){return this.mobileBelowRow&&($(this.nodeClass).parents('.fl-col, .fl-module-box').length)},_placeMobileMenuBelowRow:function(){if($(this.nodeClass+'-clone').length){return} 191var module=$(this.nodeClass),clone=null,col=module.parents('.fl-col, .fl-module-box').last();if(module.length<1){return} 192clone=(module.length>1)?$(module[0]).clone():module.clone();module.find('ul.menu').remove();clone.addClass((this.nodeClass+'-clone').replace('.',''));clone.addClass('fl-menu-mobile-clone');clone.find('.fl-menu-mobile-toggle').remove();col.after(clone);if(module.hasClass('fl-animation')){clone.removeClass('fl-animation')} 193this._menuOnFocus();this._menuOnClick();this._menuOnEscape()},_removeMenuFromBelowRow:function(){if(!$(this.nodeClass+'-clone').length){return} 194var module=$(this.nodeClass),clone=$(this.nodeClass+'-clone'),menu=clone.find('ul.menu'),nav=module.find('nav');if(nav.length){nav.append(menu)}else{module.find('.fl-menu-mobile-toggle').after(menu)} 195clone.remove();menu.find('a').each(FLBuilderLayout._initAnchorLink)},_initFlyoutMenu:function(){var wrapper=$(this.wrapperClass),menu=wrapper.find('ul.menu'),button=wrapper.find('.fl-menu-mobile-toggle');
195if(0===wrapper.find('.fl-menu-mobile-flyout').length){menu.wrap('<div class="fl-menu-mobile-flyout" aria-hidden="true"></div>')} 196if(0===wrapper.find('.fl-menu-mobile-close').length){var close=window.fl_responsive_close||'Close' 197wrapper.find('.fl-menu-mobile-flyout').prepend('<button class="fl-menu-mobile-close fl-content-ui-button" aria-label="'+close+'"><i class="fas fa-times"></i></button>')} 198if(wrapper.hasClass('fl-menu-responsive-flyout-push-opacity')&&0===wrapper.find('.fl-menu-mobile-opacity').length){wrapper.append('<div class="fl-menu-mobile-opacity"></div>')} 199wrapper.off('click','.fl-menu-mobile-opacity, .fl-menu-mobile-close').on('click','.fl-menu-mobile-opacity, .fl-menu-mobile-close',function(e){button.trigger('focus').trigger('click');e.stopPropagation()});if('undefined'!==typeof FLBuilder){FLBuilder.addHook('restartEditingSession',function(){$('.fl-builder-ui-pinned-content-transform').css('transform','');if(button.hasClass('fl-active')){button.trigger('click')}})} 200$('.fl-menu-mobile-flyout').find('a[href], button, input, select, textarea, span.fl-menu-toggle, [tabindex]:not([tabindex="-1"])').attr('tabindex',-1)},_toggleFlyoutMenu:function(){var wrapper=$(this.wrapperClass),button=wrapper.find('.fl-menu-mobile-toggle'),position=wrapper.hasClass('fl-flyout-right')?'right':'left',pushMenu=wrapper.hasClass('fl-menu-responsive-flyout-push')||wrapper.hasClass('fl-menu-responsive-flyout-push-opacity'),opacity=wrapper.find('.fl-menu-mobile-opacity'),marginPos={},fixedPos={},fixedHeader=$('header, header > div');this._resizeFlyoutMenuPanel();if($('.fl-builder-ui-pinned-content-transform').length>0&&!$('body').hasClass('fl-builder-edit')){$('.fl-builder-ui-pinned-content-transform').css('transform','none')} 201if(pushMenu){marginPos['margin-'+position]=button.hasClass('fl-active')?this.flyoutWidth+'px':'0px';$('body').animate(marginPos,200);if(fixedHeader.length>0){fixedPos[position]=button.hasClass('fl-active')?this.flyoutWidth+'px':'0px';fixedHeader.each(function(){if('fixed'==$(this).css('position')){$(this).css({'transition':'none'});$(this).animate(fixedPos,200)}})}} 202if(opacity.length>0&&button.hasClass('fl-active')){opacity.show()}else{opacity.hide()}},_resizeFlyoutMenuPanel:function(){const wrapper=$(this.wrapperClass);const wrapFlyout=wrapper.find('.fl-menu-mobile-flyout');if(wrapFlyout.length>0){wrapFlyout.css(this._getFlyoutMenuPanelPosition())}},_getFlyoutMenuPanelPosition:function(){var wrapper=$(this.wrapperClass),button=wrapper.find('.fl-menu-mobile-toggle'),side=wrapper.hasClass('fl-flyout-right')?'right':'left',winHeight=$(window).outerHeight(),winTop=$(window).scrollTop(),adminBarHeight=$('#wpadminbar').length?$('#wpadminbar').height():0,flyoutPosition={};flyoutPosition[side]='-'+(parseInt(this.flyoutWidth)+15)+'px';if(!button.hasClass('fl-active')){return flyoutPosition} 203flyoutPosition[side]='0px';flyoutPosition.height=winHeight+'px';flyoutPosition.top='0px';if(adminBarHeight>0){const diff=adminBarHeight-winTop;flyoutPosition.top=diff<=0?'0px':(diff)+'px'} 204return flyoutPosition},_toggleMenuSearch:function(){const form=$(this.wrapperClass).find('.fl-menu-search-item .fl-search-form-input-wrap');const button=$(this.wrapperClass).find('.fl-menu-search-item .fl-button:is(a, button:not([type="submit"]))');form.on('submit',()=>form.stop().fadeToggle('fast'));form.on('focusout',(event)=>{if(form.is(':visible')&&form.has($(event.relatedTarget)).length===0){button.trigger('click')}});button.attr('aria-expanded',!1);button.on('focus',(event)=>{const parentMenus=$(event.relatedTarget).parents('.menu-item.fl-has-submenu');if(event.relatedTarget&&parentMenus.length){this._toggleSubmenu(parentMenus,!1)}});button.on('click',(event)=>{if(event.detail&&event.type==='click'&&form.is(':visible'))return;form.stop().fadeToggle('fast',()=>{button.attr('aria-expanded',form.is(':visible'));if(form.is(':visible')){form.find('.fl-search-text').focus()}})})},_wooUpdateParams:function(){if('undefined'!==typeof wc_cart_fragments_params){wc_cart_fragments_params.wc_ajax_url+='&fl-menu-node='+this.nodeId+'&post-id='+this.postId} 205if('undefined'!==typeof wc_add_to_cart_params){wc_add_to_cart_params.wc_ajax_url+='&fl-menu-node='+this.nodeId+'&post-id='+this.postId}},}})(jQuery);(function($){$(function(){new FLBuilderMenu({id:'59160074eacf0',type:'horizontal',mobile:'hamburger-label',mobileBelowRow:!1,mobileFlyout:!0,breakPoints:{large:1200,medium:992,small:768},mobileBreakpoint:'mobile',postId:'757714',mobileStacked:!0,submenuIcon:'none',flyoutWidth:'250',})})})(jQuery);(function($){$(function(){if('undefined'!==typeof $.fn.fitVids){$('.fl-module-fl-post-content').fitVids({ignore:'.wp-block-embed *'})}})})(jQuery);(function($){FLBuilderPostGrid=function(settings){this.settings=settings;
205this.nodeClass='.fl-node-'+settings.id;this.matchHeight=settings.matchHeight;if('columns'==this.settings.layout){this.wrapperClass=this.nodeClass+' .fl-post-grid';this.postClass=this.nodeClass+' .fl-post-column'}else{this.wrapperClass=this.nodeClass+' .fl-post-'+this.settings.layout;this.postClass=this.wrapperClass+'-post'} 206if(this._hasPosts()){this._initLayout();this._initInfiniteScroll()}};FLBuilderPostGrid.prototype={settings:{},nodeClass:'',wrapperClass:'',postClass:'',gallery:null,currPage:1,totalPages:1,_hasPosts:function(){return $(this.postClass).length>0},_initLayout:function(){switch(this.settings.layout){case'columns':this._columnsLayout();break;case'grid':this._gridLayout();break;case'gallery':this._galleryLayout();break} 207$(this.postClass).css('visibility','visible');FLBuilderLayout._scrollToElement($(this.nodeClass+' .fl-paged-scroll-to'))},_columnsLayout:function(){$(this.wrapperClass).imagesLoaded($.proxy(function(){this._gridLayoutMatchHeight()},this));$(window).on('resize',$.proxy(function(){$(this.wrapperClass).imagesLoaded($.proxy(function(){this._gridLayoutMatchHeight()},this))},this))},_gridLayout:function(){var wrap=$(this.wrapperClass);wrap.masonry({columnWidth:this.nodeClass+' .fl-post-grid-sizer',gutter:parseInt(this.settings.postSpacing),isFitWidth:!0,itemSelector:this.postClass,transitionDuration:0,isRTL:this.settings.isRTL});wrap.imagesLoaded($.proxy(function(){this._gridLayoutMatchHeight();wrap.masonry()},this));$(window).scroll($.debounce(25,function(){wrap.masonry()}))},_gridLayoutMatchHeight:function(){var highestBox=0;if(!this._isMatchHeight()){$(this.nodeClass+' .fl-post-grid-post').css('height','');return} 208$(this.nodeClass+' .fl-post-grid-post').css('height','').each(function(){if($(this).height()>highestBox){highestBox=$(this).height()}});$(this.nodeClass+' .fl-post-grid-post').height(highestBox)},_isMatchHeight:function(){var width=$(window).width(),breakpoints=FLBuilderLayoutConfig.breakpoints,matchLarge=''!=this.matchHeight.large?this.matchHeight.large:this.matchHeight.default,matchMedium=''!=this.matchHeight.medium?this.matchHeight.medium:this.matchHeight.default,matchSmall=''!=this.matchHeight.responsive?this.matchHeight.responsive:this.matchHeight.default;return(width>breakpoints.medium&&1==this.matchHeight.default)||(width>breakpoints.medium&&width<=breakpoints.large&&1==matchLarge)||(width>breakpoints.small&&width<=breakpoints.medium&&1==matchMedium)||(width<=breakpoints.small&&1==matchSmall)},_galleryLayout:function(){this.gallery=new FLBuilderGalleryGrid({'wrapSelector':this.wrapperClass,'itemSelector':'.fl-post-gallery-post','isRTL':this.settings.isRTL})},_initInfiniteScroll:function(){var isScroll='scroll'==this.settings.pagination||'load_more'==this.settings.pagination,pages=$(this.nodeClass+' .fl-builder-pagination').find('li .page-numbers:not(.next)');if(pages.length>1){total=pages.last().text().replace(/\D/g,'') 209this.totalPages=parseInt(total)} 210if(isScroll&&this.totalPages>1&&'undefined'===typeof FLBuilder){this._infiniteScroll();if('load_more'==this.settings.pagination){this._infiniteScrollLoadMore()}}},_infiniteScroll:function(){var path=$(this.nodeClass+' .fl-builder-pagination a.next').attr('href'),pagePattern=/(.*?(\/|&|\?)paged-[0-9]{1,}(\/|=))([0-9]{1,})+(.*)/,wpPattern=/^(.*?\/?page\/?)(?:\d+)(.*?$)/,pageMatched=null,scrollData={navSelector:this.nodeClass+' .fl-builder-pagination',nextSelector:this.nodeClass+' .fl-builder-pagination a.next',itemSelector:this.postClass,prefill:!0,bufferPx:200,loading:{msgText:this.settings.loadingText,finishedMsg:'',img:FLBuilderLayoutConfig.paths.pluginUrl+'img/ajax-loader-grey.gif',speed:1}};if(pagePattern.test(path)){scrollData.path=function(currPage){pageMatched=path.match(pagePattern);path=pageMatched[1]+currPage+pageMatched[5];return path}}else if(wpPattern.test(path)){scrollData.path=path.match(wpPattern).slice(1)} 211$(this.postClass).first().parent().infinitescroll(scrollData,$.proxy(this._infiniteScrollComplete,this));setTimeout(function(){$(window).trigger('resize')},100)},_infiniteScrollComplete:function(elements){var wrap=$(this.wrapperClass);elements=$(elements);if(this.settings.layout=='columns'){wrap.imagesLoaded($.proxy(function(){$('#infscr-loading').remove();this._gridLayoutMatchHeight();elements.css('visibility','visible')},this))}else if(this.settings.layout=='grid'){wrap.imagesLoaded($.proxy(function(){this._gridLayoutMatchHeight();wrap.masonry('appended',elements);wrap.masonry();elements.css('visibility','visible')},this))}else if(this.settings.layout=='gallery'){this.gallery.resize();elements.css('visibility','visible')} 212if('load_more'==this.settings.pagination){$(this.wrapperClass+' .fl-post-grid-sizer.masonry-brick').appendTo(this.wrapperClass);
212$('#infscr-loading').appendTo(this.wrapperClass)} 213this.currPage++;this._removeLoadMoreButton();node=$(wrap).closest('.fl-module-post-grid').data('node') 214$('.fl-node-'+node).trigger('gridScrollComplete',this)},_infiniteScrollLoadMore:function(){var wrap=$(this.postClass).first().parent();$(window).unbind('.infscr');$(this.nodeClass+' .fl-builder-pagination-load-more .fl-button').on('click',function(){if($('#infscr-loading').length){$('#infscr-loading').remove()} 215wrap.infinitescroll('retrieve');return!1})},_removeLoadMoreButton:function(){if('load_more'==this.settings.pagination&&this.totalPages==this.currPage){$(this.nodeClass+' .fl-builder-pagination-load-more').remove()}}}})(jQuery);(function($){$(function(){new FLBuilderPostGrid({id:'5eb9c6bf8b65c',layout:'feed',pagination:'none',postSpacing:'60',postWidth:'300',matchHeight:{default:'0',large:'',medium:'',responsive:''},isRTL:!1,loadingText:'Loading...'})})})(jQuery);window.socialWarfare=window.socialWarfare||{};(function(window,$){'use strict';if(typeof $!=='function'){if(typeof jQuery==='function'){var $=jQuery}else{console.log('Social Warfare requires jQuery, or $ as an alias of jQuery. Please make sure your theme provides access to jQuery before activating Social Warfare.');return}} 216function isString(maybeString){return typeof maybeString==='string'&&maybeString.length>0} 217socialWarfare.paddingTop=parseInt($('body').css('padding-top'));socialWarfare.paddingBottom=parseInt($('body').css('padding-bottom'));socialWarfare.initPlugin=function(){$('body').css({paddingTop:socialWarfare.paddingTop,paddingBottom:socialWarfare.paddingBottom,});socialWarfare.establishPanels();socialWarfare.establishBreakpoint();if(!socialWarfare.panels.staticHorizontal&&!socialWarfare.panels.floatingSide&&!socialWarfare.panels.floatingHorizontal){return} 218socialWarfare.emphasizeButtons();socialWarfare.createFloatHorizontalPanel();socialWarfare.positionFloatSidePanel();socialWarfare.activateHoverStates();socialWarfare.handleButtonClicks();socialWarfare.updateFloatingButtons();socialWarfare.closeLightboxOverlay();socialWarfare.preloadPinterestImages();if(typeof swpPinIt==='object'&&swpPinIt.enabled==!0){socialWarfare.createHoverSaveButton();socialWarfare.triggerImageListeners()} 219setTimeout(function(){socialWarfare.checkListeners(0,5)},2e3);let time=Date.now();const scrollDelay=50;$(window).on('scroll',function(){if(time+scrollDelay-Date.now()<0){socialWarfare.updateFloatingButtons();time=Date.now()}})};let resizeWait;socialWarfare.onWindowResize=function(){clearTimeout(resizeWait);resizeWait=setTimeout(socialWarfare.initPlugin,100)};socialWarfare.establishPanels=function(){socialWarfare.panels={staticHorizontal:null,floatingSide:null,floatingHorizontal:null,};socialWarfare.panels.staticHorizontal=$('.swp_social_panel').not('.swp_social_panelSide');socialWarfare.panels.floatingSide=$('.swp_social_panelSide');return socialWarfare.panels};socialWarfare.emphasizeButtons=function(){if(typeof socialWarfare.variables.emphasizeIcons==='undefined'){return} 220if(socialWarfare.isMobile()){return} 221jQuery('.swp_social_panel:not(.swp_social_panelSide)').each(function(i,panel){jQuery(panel).find('.nc_tweetContainer:not(.total_shares)').each(function(index,button){if(index<socialWarfare.variables.emphasizeIcons){const shareWidth=jQuery(button).find('.swp_share').width();const iconWidth=jQuery(button).find('i.sw').outerWidth();const iconTextWidth=shareWidth+iconWidth+35;const containerWidth=jQuery(button).width();const change=1+(shareWidth+35)/containerWidth;if(change<2){jQuery(button).addClass('swp_nohover').css({flex:'2 1 0%'}).find('.iconFiller').width(iconTextWidth)}else{jQuery(button).addClass('swp_nohover').css({flex:change+' 1 0%'}).find('.iconFiller').width(iconTextWidth)}}})})};socialWarfare.activateHoverStates=function(){socialWarfare.trigger('pre_activate_buttons');$('.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer').on('mouseenter',function(){if($(this).hasClass('swp_nohover')){return} 222socialWarfare.resetStaticPanel();const termWidth=$(this).find('.swp_share').outerWidth();const iconWidth=$(this).find('i.sw').outerWidth();const containerWidth=$(this).width();const change=1+(termWidth+35)/containerWidth;$(this).find('.iconFiller').width(termWidth+iconWidth+25+'px');$(this).css('flex',change+' 1 0%')});$('.swp_social_panel:not(.swp_social_panelSide)').on('mouseleave',socialWarfare.resetStaticPanel)};
222socialWarfare.resetStaticPanel=function(){$('.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover) .iconFiller').removeAttr('style');$('.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover)').removeAttr('style')};socialWarfare.handleButtonClicks=function(){$('.nc_tweet, a.swp_CTT').off('click');$('.nc_tweet, a.swp_CTT').on('click',function(event){if($(this).parent('.swp_print').length>0){event.preventDefault();window.print();return} 223if(!0===$(this).hasClass('pinterest_multi_image_select')){event.preventDefault();socialWarfare.openMultiPinterestOverlay($(this));return} 224if($(this).parent('.swp_more').length>0){event.preventDefault();socialWarfare.openMoreOptions($(this));return} 225if($(this).hasClass('noPop')){return event} 226if('undefined'===typeof $(this).data('link')&&!1===$(this).is('.swp-hover-pin-button')){return event} 227event.preventDefault();const href=$(this).data('link').replace('’',"'");let height,width,top,left,instance,windowAttributes,network;height=270;width=500;if($(this).is('.swp_pinterest a, .buffer_link a, .flipboard a, .swp-hover-pin-button')){height=550;width=775} 228if($(this).hasClass('nc_tweet')){network=$(this).parents('.nc_tweetContainer').data('network')}else if($(this).hasClass('swp_CTT')){network='ctt'} 229top=window.screenY+(window.innerHeight-height)/2;left=window.screenX+(window.innerWidth-width)/2;windowAttributes='height='+height+',width='+width+',top='+top+',left='+left;instance=window.open(href,network,windowAttributes);socialWarfare.trackClick(network)})};socialWarfare.openMultiPinterestOverlay=function(element){if($('.pinterest-overlay').length>0){$('.pinterest-overlay').fadeIn();$('.swp-lightbox-inner').scrollTop(0);return} 230let html='';const pin_data=element.data('pins');let pin_images='';pin_data.images.forEach(function(image){const share_url='https://pinterest.com/pin/create/button/?url='+pin_data.url+'&media='+image+'&description='+encodeURIComponent(pin_data.description);let pin_html='';pin_html+='<div class="pin_image_select_wrapper">';pin_html+='<img class="pin_image" src="'+image+'" />';pin_html+='<a class="swp-hover-pin-button" href="'+share_url+'" data-link="'+share_url+'">Save</a>';pin_html+='</div>';pin_images+=pin_html});html+='<div class="swp-lightbox-wrapper pinterest-overlay"><div class="swp-lightbox-inner">';html+='<i class="sw swp_pinterest_icon top_icon"></i>';html+='<div class="swp-lightbox-close"></div>';html+='<h5>Which image would you like to pin?</h5>';html+='<div class="pin_images_wrapper">';html+=pin_images;html+='</div>';html+=socialWarfare.buildPoweredByLink();html+='</div></div>';$('body').append(html);$('.pinterest-overlay').hide().fadeIn();socialWarfare.handleButtonClicks();let max_height=999999;let iteration=0,images=$('.pinterest-overlay .pin_images_wrapper img');images.load(function(){if(++iteration===images.length){images.each(function(){if($(this).height()<max_height){max_height=$(this).height()}}).promise().done(function(){images.height(max_height+'px');const number_of_rows=Math.ceil(images.length/4);for(i=0;i<number_of_rows;i++){const current_row_images=images.slice(i*4,i*4+4);var max_allowable_width=current_row_images.length/4;var total_width=$('.pin_images_wrapper').width();var total_images_width=0;current_row_images.each(function(){total_images_width=total_images_width+$(this).width()});var ratio=total_width/total_images_width;current_row_images.each(function(){const new_width=(($(this).width()*ratio)/total_width)*100*max_allowable_width-1;$(this).parent().width(new_width+'%');$(this).height('auto')});var height=current_row_images.first().height();current_row_images.each(function(){$(this).width($(this).width()).height(height)})}})}})};socialWarfare.buildPoweredByLink=function(){let html='';if(!0===socialWarfare.variables.powered_by_toggle){let anchor_tag_open='';let anchor_tag_close='';if(!1!==socialWarfare.variables.affiliate_link){anchor_tag_open='<a href="'+socialWarfare.variables.affiliate_link+'" target="_blank">';anchor_tag_close='</a>'} 231html='<div class="swp_powered_by">'+anchor_tag_open+'<span>Powered by</span> <img src="/wp-content/plugins/social-warfare/assets/images/admin-options-page/social-warfare-pro-light.png">'+anchor_tag_close+'</div>'} 232return html};socialWarfare.preloadPinterestImages=function(){if($('.pinterest_multi_image_select').length<1){return} 233const pin_data=$('.pinterest_multi_image_select').data('pins');
233pin_data.images.forEach(function(image_url){const image_object=new Image();image_object.src=image_url})};socialWarfare.openMoreOptions=function(element){if($('.swp-more-wrapper').length>0){$('.swp-more-wrapper').fadeIn();return} 234const post_id=element.parents('.swp_social_panel').data('post-id');const data={action:'swp_buttons_panel',post_id,_ajax_nonce:swp_nonce,};jQuery.post(swp_ajax_url,data,function(response){$('body').append(response);$('.swp-lightbox-wrapper').hide().fadeIn();socialWarfare.activateHoverStates();socialWarfare.handleButtonClicks()})};socialWarfare.closeLightboxOverlay=function(){$('body').on('click','.swp-lightbox-close',function(){$('.swp-lightbox-wrapper').fadeOut()});$(document).on('keyup',function(e){if(e.key==='Escape'){$('.swp-lightbox-wrapper').fadeOut()}})};socialWarfare.createFloatHorizontalPanel=function(){if(!socialWarfare.panels.staticHorizontal.length){return} 235const floatLocation=socialWarfare.panels.staticHorizontal.data('float');const mobileFloatLocation=socialWarfare.panels.staticHorizontal.data('float-mobile');const backgroundColor=socialWarfare.panels.staticHorizontal.data('float-color');const wrapper=$('<div class="nc_wrapper swp_floating_horizontal_wrapper" style="background-color:'+backgroundColor+'"></div>');let barLocation='';if($('.nc_wrapper').length){$('.nc_wrapper').remove()} 236if($('.swp_floating_horizontal_wrapper').length){$('.swp_floating_horizontal_wrapper').remove()} 237if(floatLocation!='top'&&floatLocation!='bottom'&&mobileFloatLocation!='top'&&mobileFloatLocation!='bottom'){return} 238if(socialWarfare.isMobile()){barLocation=mobileFloatLocation}else{barLocation=floatLocation} 239wrapper.addClass(barLocation).hide().appendTo('body');socialWarfare.panels.floatingHorizontal=socialWarfare.panels.staticHorizontal.first().clone();socialWarfare.panels.floatingHorizontal.addClass('nc_floater').appendTo(wrapper);socialWarfare.updateFloatingHorizontalDimensions();$('.swp_social_panel .swp_count').css({transition:'padding .1s linear',})};socialWarfare.updateFloatingHorizontalDimensions=function(){if(!socialWarfare.panels.staticHorizontal.length){return} 240if(!socialWarfare.panels.floatingHorizontal){return} 241let width='100%';let left=0;const panel=socialWarfare.panels.staticHorizontal;let parent=panel.parent();if(parent.hasClass('swp-hidden-panel-wrap')){parent=parent.parent()} 242if('undefined'!==typeof panel.offset().left){left=panel.offset().left} 243if('undefined'!==typeof panel.width()){width=panel.width()} 244if(left==0){left=parent.offset().left} 245if(width==100||width==0){width=parent.width()} 246socialWarfare.panels.floatingHorizontal.css({width,left,})};socialWarfare.staticPanelIsVisible=function(){let visible=!1;const scrollPos=$(window).scrollTop();$('.swp_social_panel').not('.swp_social_panelSide, .nc_floater').each(function(index){const offset=$(this).offset();if(typeof socialWarfare.floatBeforeContent!=='undefined'&&'1'!=socialWarfare.floatBeforeContent){const theContent=$('.swp-content-locator').parent();if(index===0&&theContent.length&&theContent.offset().top>scrollPos+$(window).height()){visible=!0}} 247if($(this).is(':visible')&&offset.top+$(this).height()>scrollPos&&offset.top<scrollPos+$(window).height()){visible=!0}});return visible};socialWarfare.updateFloatingButtons=function(){if(socialWarfare.panels.staticHorizontal.length){var panel=socialWarfare.panels.staticHorizontal}else if(socialWarfare.panels.floatingSide.length){var panel=socialWarfare.panels.floatingSide}else{return} 248var location=panel.data('float');if(!0==socialWarfare.isMobile()){var location=panel.data('float-mobile')} 249if(location=='none'){return $('.nc_wrapper, .swp_floating_horizontal_wrapper, .swp_social_panelSide').hide()} 250if(socialWarfare.isMobile()){socialWarfare.toggleMobileButtons();socialWarfare.toggleFloatingHorizontalPanel();return} 251if(location=='right'||location=='left'){socialWarfare.toggleFloatingVerticalPanel()} 252if(location=='bottom'||location=='top'){socialWarfare.toggleFloatingHorizontalPanel()}};socialWarfare.toggleMobileButtons=function(){socialWarfare.panels.floatingSide.hide();const visibility=socialWarfare.staticPanelIsVisible()?'collapse':'visible';$('.nc_wrapper, .swp_floating_horizontal_wrapper').css('visibility',visibility)};socialWarfare.toggleFloatingVerticalPanel=function(){let direction='';const location=socialWarfare.panels.floatingSide.data('float');let visible=socialWarfare.staticPanelIsVisible();let offset='';if(socialWarfare.isMobile()){return socialWarfare.panels.floatingSide.hide()} 253if(!socialWarfare.panels.floatingSide||!socialWarfare.panels.floatingSide.length){visible=!0} 254if(socialWarfare.panels.floatingSide.data('transition')=='slide'){direction=location;offset=visible?'-150px':'5px';socialWarfare.panels.floatingSide.css(direction,offset).show()}else if(visible){socialWarfare.panels.floatingSide.css('opacity',1).fadeOut(300).css('opacity',0)}else{socialWarfare.panels.floatingSide.css('opacity',0).fadeIn(300).css('display','flex').css('opacity',1)}};socialWarfare.hasReferencePanel=function(){return(typeof socialWarfare.panels.staticHorizontal!=='undefined'&&socialWarfare.panels.staticHorizontal.length>0)};socialWarfare.toggleFloatingHorizontalPanel=function(){if(!socialWarfare.hasReferencePanel()){return} 255if(!socialWarfare.panels.floatingHorizontal){return} 256const panel=socialWarfare.panels.floatingHorizontal.first();const location=socialWarfare.isMobile()?$(panel).data('float-mobile'):$(panel).data('float');let newPadding=location=='bottom'?socialWarfare.paddingBottom:socialWarfare.paddingTop;const paddingProp='padding-'+location;if(location=='off'){return} 257if(socialWarfare.staticPanelIsVisible()){$('.nc_wrapper, .swp_floating_horizontal_wrapper').hide();
257if(socialWarfare.isMobile()&&$('#wpadminbar').length){$('#wpadminbar').css('top',0)}}else{newPadding+=50;$('.nc_wrapper, .swp_floating_horizontal_wrapper').show();if(socialWarfare.isMobile()&&location=='top'&&$('#wpadminbar').length){$('#wpadminbar').css('top',panel.parent().height())}} 258$('body').css(paddingProp,newPadding)};socialWarfare.positionFloatSidePanel=function(){let panelHeight,windowHeight,offset;const sidePanel=socialWarfare.panels.floatingSide;if(!sidePanel||!sidePanel.length){return} 259if(sidePanel.hasClass('swp_side_top')||sidePanel.hasClass('swp_side_bottom')){return} 260panelHeight=sidePanel.outerHeight();windowHeight=window.innerHeight;if(panelHeight>windowHeight){return sidePanel.css('top',0)} 261offset=(windowHeight-panelHeight)/2;sidePanel.css('top',offset)};socialWarfare.createHoverSaveButton=function(){if($('.tve_editor_page').length){$('.sw-pinit-button').remove();$('.sw-pinit').each(function(){const inner_content=$('.sw-pinit').contents();$(this).replaceWith(inner_content)});return} 262const button=$(document.createElement('a'));button.css('display: none');button.addClass('swp-hover-pin-button');button.text('Save');socialWarfare.hoverSaveButton=$(button);return button};socialWarfare.triggerImageListeners=function(){$('.swp-content-locator').parent().find('img').off('mouseenter',socialWarfare.renderPinterestSaveButton);$('.swp-content-locator').parent().find('img').on('mouseenter',socialWarfare.renderPinterestSaveButton);setTimeout(socialWarfare.triggerImageListeners,2e3)};socialWarfare.getPinMedia=function(image){if(isString(swpPinIt.image_source)){return swpPinIt.image_source} 263if(isString(image.attr('src'))){return image.attr('src')} 264const dataSources=['src','lazy-src','media'];let media='';dataSources.some(function(maybeSource){if(isString(image.data(maybeSource))){media=image.data(maybeSource);return!0}});if(media==''){return} 265const i=$('<img>');i.attr('src',media);return i.prop('src')};socialWarfare.getPinDescription=function(image){if(isString(image.data('pin-description'))){return image.data('pin-description')} 266if(isString(swpPinIt.image_description)){return swpPinIt.image_description} 267if(isString(image.attr('title'))){return image.attr('title')} 268if(isString(image.attr('alt'))){return image.attr('alt')} 269if(isString(swpPinIt.post_title)){return swpPinIt.post_title}};socialWarfare.enablePinterestSaveButtons=function(){jQuery('img').on('mouseenter',function(){const pinterestBrowserButtons=socialWarfare.findPinterestBrowserSaveButtons();if(typeof pinterestBrowserButtons!=='undefined'&&pinterestBrowserButtons){socialWarfare.removePinterestBrowserSaveButtons(pinterestBrowserButtons)}})};socialWarfare.toggleHoverSaveDisplay=function(image){let top=image.offset().top;let left=image.offset().left;const vMargin=15;const hMargin=15;const button_size=swpPinIt.button_size||1;const buttonHeight=24;const buttonWidth=120;switch(swpPinIt.vLocation){case 'top':top+=vMargin;break;case 'middle':var offset=image.height()/2-vMargin/2-buttonHeight/2;top+=offset;break;case 'bottom':top+=image.height()-vMargin-buttonHeight;break} 270switch(swpPinIt.hLocation){case 'left':left+=hMargin;break;case 'center':var offset=image.width()/2-hMargin/2-buttonWidth/2;left+=offset;break;case 'right':left+=image.width()-hMargin-buttonWidth;break} 271socialWarfare.hoverSaveButton.css({top,left,transform:'scale('+button_size+')','transform-origin':swpPinIt.vLocation+' '+swpPinIt.hLocation,});image.on('mouseleave',function(event){if(event.relatedTarget!=null&&event.relatedTarget.className=='swp-hover-pin-button'){return} 272$('.swp-hover-pin-button').remove()});$(document.body).append(socialWarfare.hoverSaveButton)};socialWarfare.renderPinterestSaveButton=function(event){if(event.relatedTarget&&event.relatedTarget.className=='swp-hover-pin-button'){return} 273if($('.swp-hover-pin-button').length>0){return} 274const image=$(event.target);if(typeof swpPinIt.disableOnAnchors!==undefined&&swpPinIt.disableOnAnchors){if(image.parents().filter('a').length){return}} 275if(image.outerHeight()<swpPinIt.minHeight||image.outerWidth()<swpPinIt.minWidth){return} 276if(image.hasClass('no_pin')||image.hasClass('no-pin')){return} 277socialWarfare.toggleHoverSaveDisplay(image);const description=socialWarfare.getPinDescription(image);const media=socialWarfare.getPinMedia(image);const shareLink='http://pinterest.com/pin/create/bookmarklet/?media='+encodeURI(media)+'&url='+encodeURI(document.URL)+'&is_video=false'+'&description='+encodeURIComponent(description);function openPinterestDialogue(event){const offsetLeft=($(window).width()-775)/2;const offsetTop=($(window).height()-550)/2;const position=',top='+offsetTop+',left='+offsetLeft;window.open(shareLink,'Pinterest','width=775,height=550,status=0,toolbar=0,menubar=0,location=1,scrollbars=1'+position);socialWarfare.trackClick('pin_image');$('.swp-hover-pin-button').remove()} 278$('.swp-hover-pin-button').on('click',openPinterestDialogue)};socialWarfare.findPinterestBrowserSaveButtons=function(){let pinterestRed,pinterestRed2019,pinterestZIndex,pinterestBackgroun
278dSize,button,style;pinterestRed='rgb(189, 8, 28)';pinterestRed2019='rgb(230, 0, 35)';pinterestZIndex='8675309';pinterestBackgroundSize='14px 14px';button=null;document.querySelectorAll('span').forEach(function(element,index){style=window.getComputedStyle(element);if(style.backgroundColor==pinterestRed||style.backgroundColor==pinterestRed2019){if(style.backgroundSize==pinterestBackgroundSize&&style.zIndex==pinterestZIndex){button=element}}});return button};socialWarfare.removePinterestBrowserSaveButtons=function(button){let pinterestSquare,style,size;pinterestSquare=button.nextSibling;if(pinterestSquare!=undefined&&pinterestSquare.nodeName=='SPAN'){style=window.getComputedStyle(pinterestSquare);size='24px';if(style.width.indexOf(size)===0&&style.height.indexOf(size)===0){pinterestSquare.remove()}} 279button.remove()};socialWarfare.fetchFacebookShares=function(){const url1='https://graph.facebook.com/v18.0/?fields=og_object{engagement}&id='+swp_post_url;const url2=swp_post_recovery_url?'https://graph.facebook.com/v18.0/?fields=og_object{engagement}&id='+swp_post_recovery_url:'';console.log('Facebook Share API: '+url1);console.log('Facebook Share API (recovery): '+url2);$.when($.get(url1),$.get(url2)).then(function(response1,response2){var shares,shares1,shares2,data;shares1=socialWarfare.parseFacebookShares(response1[0]);shares2=0;if(swp_post_recovery_url){shares2=socialWarfare.parseFacebookShares(response2[0])} 280shares=shares1;if(shares1!==shares2){shares=shares1+shares2} 281var data={action:'swp_facebook_shares_update',post_id:swp_post_id,share_counts:shares,};$.post(swp_admin_ajax,data,function(response){console.log(response)})})};socialWarfare.parseFacebookShares=function(response){if('undefined'===typeof response.og_object){console.log('Facebook Shares: 0');return 0} 282console.log('Facebook Shares: '+response.og_object.engagement.count);return parseInt(response.og_object.engagement.count)};socialWarfare.trigger=function(event){$(window).trigger($.Event(event))};socialWarfare.trackClick=function(event){if(!0===swpClickTracking){if('function'===typeof ga){ga('send','event','social_media','swp_'+event+'_share')} 283if('object'===typeof dataLayer){dataLayer.push({event:'swp_'+event+'_share'})}}};socialWarfare.checkListeners=function(count,limit){if(count>limit){return} 284const panel=$('.swp_social_panel');if(panel.length>0&&panel.find('.swp_pinterest')){socialWarfare.handleButtonClicks();return} 285setTimeout(function(){socialWarfare.checkListeners(++count,limit)}
285,2e3)};socialWarfare.establishBreakpoint=function(){const panel=$('.swp_social_panel');socialWarfare.breakpoint=1100;if((panel.length&&panel.data('min-width'))||panel.data('min-width')==0){socialWarfare.breakpoint=parseInt(panel.data('min-width'))}};socialWarfare.isMobile=function(){return $(window).width()<socialWarfare.breakpoint};$(document).ready(function(){socialWarfare.initPlugin();socialWarfare.panels.floatingSide.hide();$(window).on('resize',socialWarfare.onWindowResize);if('undefined'!==typeof swpPinIt&&swpPinIt.enabled){socialWarfare.enablePinterestSaveButtons()}});$(window).on('load',function(){if('undefined'!==typeof swpPinIt&&swpPinIt.enabled){socialWarfare.enablePinterestSaveButtons()} 286window.clearCheckID=0})})(this,jQuery);window.TL_Front=window.TL_Front||{},window.ThriveGlobal=window.ThriveGlobal||{$j:jQuery.noConflict()};const videoIframeSelector=".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe",videoSourceSelector=".thrv_responsive_video video source";let modulesFinishedLoading=!1;const VIEWPORT_BASED_FORM_PREFIXES=["shortcode_","post_footer","in_content","php_insert","widget"],VIEWPORT_IMPRESSION_RATIO=.5,VIEWPORT_UNMEASURED_THRESHOLDS=[0,.01,.05,.1,.15,.2,.25,.3,.35,.4,.45,.5];function matchTrackToken(e){for(var t,o=[/tve-leads-track-(shortcode_\d+)(\s|$)/,/tve-leads-track-(\S+?)-\d+(\s|$)/],r=0;r<o.length;r++)if(t=e.match(o[r]))return t[1];return""}function tlViewportSeenHeight(e){var t=window.innerHeight||document.documentElement.clientHeight||0,o=e.offsetHeight||e.getBoundingClientRect().height||0;return t&&o?.5*Math.min(o,t):0}function tlViewportThreshold(e){var t=e.offsetHeight||e.getBoundingClientRect().height||0,o=tlViewportSeenHeight(e);return t&&o?Math.min(.5,o/t):VIEWPORT_UNMEASURED_THRESHOLDS}TL_Front.dismissed_forms={},TL_Front.revealed_forms={},TL_Front.PASSIVE_TRIGGER_SOURCES=["page_load","time","scroll_percent","scroll_element","page_bottom","exit_intent","viewport"],TL_Front.record_dismissal=function(e){if(e&&e.length){var t=(e.attr("class")||"").match(/tve-leads-track-\S+/);t||(t=(e.find('[class*="tve-leads-track-"]').first().attr("class")||"").match(/tve-leads-track-\S+/)),t&&(TL_Front.dismissed_forms[t[0]]=!0)}},TL_Front.add_page_css=function(e){ThriveGlobal.$j.each(e,function(e,t){if(e+="-css",-1!==(t=t.replace(/^http(s)?:\/\//,"//")).indexOf("thrive_flat")){var o=document.createElement("div");if(o.classList.add("tve-cb"),document.body.append(o),"both"===getComputedStyle(o).clear)return void o.remove();o.remove()}ThriveGlobal.$j("#"+e).length||ThriveGlobal.$j('link[href="http:'+t+'"]').length||ThriveGlobal.$j('link[href="https:'+t+'"]').length||ThriveGlobal.$j('<link rel="stylesheet" id="'+e+'" type="text/css" href="'+t+'"/>').prependTo("head")})},TL_Front.lightspeed_assets=function(e){var t=function(){return ThriveGlobal.$j('link[href*="thrive_flat.css"]').length>0},o=[];if(e.css){if(e.css.files)for(var r in e.css.files){var n="flat"===r;(!t()&&n||!n)&&ThriveGlobal.$j('<link rel="stylesheet" href="'+e.css.files[r]+'"/>').prependTo("head")}e.css.inline&&e.css.inline.length&&e.css.inline.forEach(function(e){t()||ThriveGlobal.$j(e).prependTo("head")})}if(e.js)for(var i in e.js)TCB_Front&&!TCB_Front.isModuleLoaded(i)&&o.push(i);!function t(){if(o.length){var r=o.shift();TL_Front.add_head_script(e.js[r],"tl-lightspeed-"+r,t)}else modulesFinishedLoading=!0}()},TL_Front.conditional_display=function(e){void 0!==e&&e.lazy_load_conditional_preview&&tcb_condition_sets&&e.lazy_load_conditional_preview.forEach(function(e){-1===tcb_condition_sets.findIndex(function(t){return t.key===e.key})&&tcb_condition_sets.push(e)})},TL_Front.$document=ThriveGlobal.$j(document),TL_Front.extendConst=function(e){TL_Const.current_screen&&delete e.current_screen,ThriveGlobal.$j.extend(!0,TL_Const,e)},TL_Front.document_write=function(e){ThriveGlobal.$j("body").append(e)},TL_Front.add_head_script=function(e,t,o){var r=document.createElement("script"),n=ThriveGlobal.$j("head")[0];r.async=!0,"function"==typeof o&&(r.onload=r.onreadystatechange=o),void 0!==t&&(r.id=t),r.src=e,n.insertBefore(r,n.firstChild)},TL_Front.add_page_js=function(e,t){"function"!=typeof t&&(t=function(){});var o=0;ThriveGlobal.$j.each(e,function(e,t){if("tve_frontend"===e&&"undefined"!=typeof TCB_Front)return!0;
286if(e+="-js",t&&!ThriveGlobal.$j("#"+e).length&&!ThriveGlobal.$j('script[src="'+t+'"]').length){if(o++,-1!==t.indexOf("connect.facebook.net"))return TL_Front.add_head_script(t,e,function(){o--}),!0;ThriveGlobal.$j.getScript(t,function(){o--})}}),function e(){0!==o?setTimeout(e,50):t()}()},TL_Front.send_impression=function(e,t){if(e){t=t||{};var o={security:TL_Const.security,action:TL_Const.action_impression,tl_data:e,current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data,function(e,t){o[e]=t}),t.useBatching&&window.TVE_Dash&&!TVE_Dash.ajax_sent?TVE_Dash.add_load_item("tl_impression",o):ThriveGlobal.$j.post(TL_Const.ajax_url,o)}},TL_Front.isViewportBasedForm=function(e){return VIEWPORT_BASED_FORM_PREFIXES.some(function(t){return 0===e.indexOf(t)})},TL_Front.setupViewportImpressions=function(e){if(e&&0!==Object.keys(e).length){TL_Front.viewport_impressions=TL_Front.viewport_impressions||{};var t={};Object.keys(e).forEach(function(o){TL_Front.isViewportBasedForm(o)?TL_Front.viewport_impressions[o]=e[o]:t[o]=e[o]}),Object.keys(t).length>0&&TL_Front.send_impression(t,{useBatching:!0})}},TL_Front.setupTriggerImpressions=function(e){e&&0!==Object.keys(e).length&&(TL_Front.trigger_impressions=TL_Front.trigger_impressions||{},Object.keys(e).forEach(function(t){TL_Front.trigger_impressions[t]=e[t],TL_Front.revealed_forms[t]&&TL_Front.trackTriggerImpression(t)}))},TL_Front.trackTriggerImpression=function(e){if(e&&TL_Front.trigger_impressions&&TL_Front.trigger_impressions[e]&&!TL_Front.trigger_impressions[e]._tracked){TL_Front.trigger_impressions[e]._tracked=!0;var t={},o=ThriveGlobal.$j.extend({},TL_Front.trigger_impressions[e]);delete o._tracked,delete o.trigger_deferred,t[e]=o,TL_Front.send_impression(t)}},TL_Front.maybe_track_trigger_impression=function(e,t){if(e&&(!e.form_id||-1===e.form_id.indexOf("2step-"))){var o=[];e.form_id&&o.push(e.form_id.replace(/^tve-leads-track-/,"")),o.push(e.form_type||TL_Front.resolveRevealedFormType(t||e.$target)),o.forEach(function(e){e&&(TL_Front.revealed_forms[e]=!0,TL_Front.trackTriggerImpression(e))})}},TL_Front.resolveRevealedFormType=function(e){if(!e||!e.length)return"";var t=matchTrackToken(e.attr("class")||"");return t||matchTrackToken(e.closest('[class*="tve-leads-track-"]').attr("class")||"")},TL_Front.do_impression=function(){if(TL_Front.impressions_data){var e={},t={},o={};Object.keys(TL_Front.impressions_data).forEach(function(r){TL_Front.impressions_data[r].trigger_deferred?o[r]=TL_Front.impressions_data[r]:TL_Front.isViewportBasedForm(r)?t[r]=TL_Front.impressions_data[r]:e[r]=TL_Front.impressions_data[r]}),Object.keys(t).length>0&&(TL_Front.setupViewportImpressions(t),TL_Front.initViewportObservers()),Object.keys(o).length>0&&TL_Front.setupTriggerImpressions(o),Object.keys(e).length>0&&TL_Front.send_impression(e,{useBatching:!0})}},TL_Front.observeViewportElement=function(e,t){if(!TL_Front.viewportObservedElements.has(e)){TL_Front.viewportObservedElements.add(e);var o=new IntersectionObserver(function(e){e.forEach(function(e){var r=tlViewportSeenHeight(e.target);!e.isIntersecting||!r||e.intersectionRect.height+1<r||(TL_Front.trackViewportImpression(t),o.unobserve(e.target))})},{threshold:tlViewportThreshold(e)});o.observe(e)}},TL_Front.initViewportObservers=function(){TL_Front.viewport_impressions&&0!==Object.keys(TL_Front.viewport_impressions).length&&("IntersectionObserver"in window?(TL_Front.viewportObservedElements=TL_Front.viewportObservedElements||new WeakSet,Object.keys(TL_Front.viewport_impressions).forEac
286h(function(e){TL_Front.viewport_impressions[e]._tracked||ThriveGlobal.$j('.tve-leads-conversion-object[data-tl-type="'+e+'"]').each(function(){TL_Front.observeViewportElement(this,e)})})):Object.keys(TL_Front.viewport_impressions).forEach(function(e){TL_Front.trackViewportImpression(e)}))},TL_Front.refreshViewportObservers=function(){TL_Front.viewport_impressions&&0!==Object.keys(TL_Front.viewport_impressions).length&&(window.requestAnimationFrame?requestAnimationFrame(function(){TL_Front.initViewportObservers()}):TL_Front.initViewportObservers())},TL_Front.trackViewportImpression=function(e){if(e&&TL_Front.viewport_impressions&&TL_Front.viewport_impressions[e]&&!TL_Front.viewport_impressions[e]._tracked){TL_Front.viewport_impressions[e]._tracked=!0;var t={},o=ThriveGlobal.$j.extend({},TL_Front.viewport_impressions[e]);delete o._tracked,t[e]=o,TL_Front.send_impression(t)}},TL_Front.do_two_step_impression=function(e){if(TL_Const&&TL_Const.forms&&TL_Const.forms[e]){var t=TL_Const.forms[e],o={};o[e]={group_id:t.main_group_id,form_type_id:t.form_type_id,variation_key:t._key,active_test_id:t.active_test_id||null},TL_Front.send_impression(o)}},TL_Front.maybe_track_two_step_impression=function(e){if(e&&-1!==e.indexOf("2step-")&&TL_Const&&TL_Const.forms){var t=e.replace("tve-leads-track-2step-",""),o=Object.keys(TL_Const.forms).find(function(e){return 0===e.indexOf("two_step_")&&TL_Const.forms[e]._key===t});o&&TL_Front.do_two_step_impression(o)}},ThriveGlobal.$j(function(){if("undefined"!=typeof TL_Const){if(ThriveGlobal.$j(".tve-leads-screen-filler iframe, .tve-leads-ribbon iframe").not(".thrv_social_default iframe").not(".tcb-dr-done").each(function(){var e=ThriveGlobal.$j(this).addClass("tcb-dr-done");e.attr("src")&&e.attr("data-src",e.attr("src")),e.attr("src","")}),"undefined"!=typeof TCB_Front&&ThriveGlobal.$j(TCB_Front).on("content_loaded.thrive",function(e,t){t.find(".tve-tl-anim").each(function(){var e=ThriveGlobal.$j(this);ThriveGlobal.$j(TL_Front).trigger("showform.thriveleads",{$target:e})})}),ThriveGlobal.$j(window).on("tcb_after_dom_ready",function(){if(!tve_frontend_options.is_editor_page){var e=TCB_Front.queryString.get("post_type");e&&"tve_lead_2s_lightbox"===e&&setTimeout(function(){TCB_Front.handleIframes(ThriveGlobal.$j(".tve_p_lb_content"))},100)}}),ThriveGlobal.$j(TL_Front).on("showform.thriveleads",function(e,t){if(!(t.source&&t.form_id&&-1!==TL_Front.PASSIVE_TRIGGER_SOURCES.indexOf(t.source)&&TL_Front.dismissed_forms[t.form_id])){var o,r=t.$target?t.$target:ThriveGlobal.$j("."+t.form_id);r.length&&(t.TargetEvent&&"exit"===t.TargetEvent.tve_trigger&&r.data("shown-on-exit")||(t.first&&(r=r.first()),r.attr("data-s-state")&&(r=r.closest(".tl-states-root").find('[data-state="'+r.attr("data-s-state")+'"] .tl-lb-target')),t&&t.$parentStateEl&&r.closest(".tl-style").first().data("parentStateEl",t.$parentStateEl),o=r.hasClass("tve-tl-anim")?r:r.find(".tve-tl-anim"),r.css("display",""),setTimeout(function(){o.addClass("tve-leads-triggered"),TL_Front.handle_typefocus(o,"start"),ThriveGlobal.$j(".tve_post_grid_masonry").length&&TCB_Front.postGridLayout()},0),TL_Front.maybe_track_two_step_impression(t.form_id),TL_Front.maybe_track_trigger_impression(t,r),"function"==typeof TL_Front["open_"+t.form_type]?TL_Front["open_"+t.form_type](r,t.TargetEvent):r.show(),TCB_Front.resizePageSection(),r.on("switchstate",function(e,t){t.offset().top-ThriveGlobal.$j(window).scrollTop()+t.outerHeight()<0&&ThriveGlobal.$j("html, body").animate({scrollTop:t.offset().top+"px"},50),TCB_Front.resizePageSection()}),setTimeout(function(){r.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);e.attr("data-src")&&e.attr("src",e.attr("data-src"))})},200)))}}),ThriveGlobal.$j("body").on("click",".tve-ribbon-close",function(){var e=ThriveGlobal.$j(this).closest(".tve-leads-ribbon"),t=e.data("position");TL_Front.record_dismissal(e),e.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")}),e.removeClass("tve-leads-triggered"),"top"===t?ThriveGlobal.$j("body").animate({marginTop:0},200,function(){document.body.style.removeProperty("margin-top"),TCB_Front&&TCB_Front.$
286window&&TCB_Front.$window.trigger("scroll")}):"bottom"===t&&ThriveGlobal.$j("body").animate({marginBottom:"0px"},200,function(){document.body.style.removeProperty("margin-bottom")}),TL_Front.handle_typefocus(e,"pause"),setTimeout(function(){e.css(t,"")},400),ThriveGlobal.$j("#tve-lg-error-container").hide()}),ThriveGlobal.$j(window).on("conditional_display_loaded",()=>{const e=Object.keys(TL_Front.contentHtml||{});e.length&&(e.forEach(e=>{const t=ThriveGlobal.$j(`.tl-placeholder-f-type-${e}`);if(t.length){const o=ThriveGlobal.$j(TL_Front.contentHtml[e]);t.replaceWith(o),setTimeout(()=>{ThriveGlobal.$j(TL_Front).trigger("showform.thriveleads",{$target:o})})}}),TL_Front.refreshViewportObservers())}),ThriveGlobal.$j(TCB_Front).on("tl-ajax-loaded",function(){TL_Front.refreshViewportObservers()}),TL_Const.ajax_load||TL_Front.do_impression(),TL_Front.ajax_load_callback=function(t,r){if(r&&TL_Front.conditional_display(r),t&&t.res&&t.js&&t.html){if(t.trigger_impressions&&TL_Front.setupTriggerImpressions(t.trigger_impressions),TL_Front.lightspeed_assets(t.lightspeed||{}),TL_Front.add_page_css(t.res.css),TL_Front.add_page_css(t.res.fonts),t.html){t.html.widget||ThriveGlobal.$j(".tl-widget-container").remove(),ThriveGlobal.$j.each(t.html,function(e,o){if(!o)return!0;if(TL_Front.contentHtml=TL_Front.contentHtml||{},TL_Front.contentHtml[e]=o,"in_content"===e){let e=parseInt(t.in_content_pos),r="after",n=ThriveGlobal.$j(".tve-tl-cnt-wrap");n.length||(n=ThriveGlobal.$j("#tve_editor.tar-main-content")),n.length||(n=ThriveGlobal.$j("#post_content"));const i=n.find("p").filter(":visible").not(".thrv_table p, form p, .tcb-post-list p, .thrv_text_element div p, p.wp-caption-text, .thrv_responsive_video p, .thrv_header p");0===i.length&&0===e?n.prepend(o):(0===e&&(e=1,r="before"),i.eq(e-1)[r](o))}else{const n=ThriveGlobal.$j(".tl-placeholder-f-type-"+e);if(t.js[e]&&t.js[e].content_locking){const o=n.parents(".tve_content_lock").first();if(t.js[e].has_conversion)return n.remove(),o.removeClass("tve_lock_hide"),!0;"tve_lock_blur"===t.js[e].lock&&o.removeClass("tve_lock_hide").addClass(t.js[e].lock)}"widget"===e?n.hasClass("tl-preload-form")?n.first().replaceWith(ThriveGlobal.$j(o).addClass("tve-leads-triggered")):(n.replaceWith(o),ThriveGlobal.$j(".tl-widget-container").children().unwrap()):n.replaceWith(o),0===e.indexOf("two_step")&&(r=e,ThriveGlobal.$j(`.tl-2step-trigger-${r.replace("two_step_","")}`).show())}var r}),i=-1,"Microsoft Internet Explorer"==navigator.appName?(n=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(n)&&(i=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(n=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(n)&&(i=parseFloat(RegExp.$1))),i>0&&setTimeout(function(){var e="";ThriveGlobal.$j("body style.tve_custom_style").each(function(){e=this.innerText,this.innerText=e})})}var n,i;if(t.body_end){var s=ThriveGlobal.$j(t.body_end);s.find(".tve_wistia_popover").each(function(){ThriveGlobal.$j("#"+this.id).length&&this.parentNode.removeChild(this)}),s.filter("link[href]").each(function(){ThriveGlobal.$j('link[href="'+this.getAttribute("href")+'"]').length&&(s=s.not(this))}),s.filter("script[src]").each(function(){ThriveGlobal.$j('script[src="'+this.getAttribute("src")+'"]').length&&(s=s.not(this))});try{ThriveGlobal.$j("body").append(s)}catch(e){}}void 0!==t.js.TVO_Form&&(TVO_Form=t.js.TVO_Form),TL_Front.add_page_js(t.res.js,function(){e=!0}),setTimeout(function t(){e&&modulesFinishedLoading?(TCB_Front.event_triggers(ThriveGlobal.$j("body")),TCB_Front.onDOMReady(),o(),ThriveGlobal.$j(TCB_Front).trigger("tl-ajax-loaded"),TCB_Front.add_scroll_callback(function(){var e=ThriveGlobal.$j('.tve-leads-ribbon[data-position="top"]'),t=e.find(".tve_shortcode_editor"),o=e.is(":visible")&&Number(e.css("opacity"))?Math.max(e.outerHeight(),t.outerHeight()):0,r=ThriveGlobal.$j('[data-elementor-type="header"] .elementor-top-section.elementor-sticky.elementor-sticky--active');r.length||(r=ThriveGlobal.$j(".she-header")),r.length&&r[0].style.setProperty("margin-top",o+"px","important")})):setTimeout(t,50)},50),TL_Const.forms=t.js,t.deferred_impressions&&TL_Front.setupViewportImpressions(t.deferred_impressions),setTimeout(()=>{ThriveGlobal.$j(".tl-preload-form").remove()},1e3)}},TL_Const.ajax_load){var e=!1,t=(ThriveGlobal.$j(".tve-leads-two-step-trigger").hide(),{tcb_js:"undefined"!=typeof TCB_Front?1:0,main_group_id:TL_Const.main_group_id,shortcode_ids:TL_Const.shortcode_ids,two_step_ids:TL_Const.two_step_ids,action:"tve_leads_ajax_load_forms",security:TL_Const.security,display_options:TL_Const.display_options,current_screen:TL_Const.current_screen});return ThriveGlobal.$j.each(TL_Const.custom_post_data,function(e,o){t[e]=o}),void(window.TVE_Dash&&!TVE_Dash.ajax_sent?ThriveGlobal.$j(document).on("tve-dash.load",function(e){TVE_Dash.add_load_item("tl_lazy_load",t,TL_Front.ajax_load_callback)}):ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,type:"post",dataType:"json",data:t,xhrFields:{withCredentials:!0}}).done(TL_Front.ajax_load_callback))}o()}function o(){if(!TL_Const.forms)return!1;function e(e){if(e.find('[data-validation="email"]').length)return e.find('[data-validation="email"]').val();var t="";return e.find("input").each(function(){if(this.name&&this.name.match(/email/i))return t=this.value,!1}),t}ThriveGlobal.$j("body").on("submit",".tve-leads-conversion-object form",function(t){var o=ThriveGlobal.$j(this),r=o.parents(".tve-leads-conversion-object").first().attr("data-tl-type"),n={},i=o.closest(".thrv_lead_generation");if(i.length&&"0"===i.attr("data-tl-track-conversion"))return!0;
286if(o.data("tve-force-submit")||o.closest(".thrv_custom_html_shortcode").length||o.data("tl-do-submit")||!r||!TL_Const.forms[r]||function(e){var t=e.attr("id"),o=window.fluentFormVars,r=!1;return o&&o.forms&&(r=o.forms.some(function(e){return e.form_id_selector===t})),r}(o)||function(e){var t=e.attr("id");return t&&t.includes("happyforms")&&window.HappyForms}(o))return!0;o.tve_form_loading(),o.find("input").each(function(){var e=ThriveGlobal.$j(this),t=e.attr("name");void 0!==t&&-1===TL_Const.ignored_fields.indexOf(t)&&(n[e.attr("name")]=e.val())});var s={security:TL_Const.security,action:TL_Const.action_conversion,type:r,tl_data:TL_Const.forms[r],custom_fields:n,email:e(o),current_screen:TL_Const.current_screen};return ThriveGlobal.$j.each(TL_Const.custom_post_data,function(e,t){s[e]=t}),ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,data:s,type:"post",xhrFields:{withCredentials:!0}}).always(function(){void 0===o.attr("action")?location.reload():o.data("tve-force-submit",!0).submit()}),!1}),ThriveGlobal.$j("body").on("click",".tve-leads-conversion-object a",function(){var e=ThriveGlobal.$j(this).closest(".thrv-button, .thrv_button_shortcode");if(e.length&&"1"===e.attr("data-tl-track-conversion")){var t=e.closest(".tve-leads-conversion-object").first().attr("data-tl-type");if(t&&TL_Const.forms&&TL_Const.forms[t]){var o={security:TL_Const.security,action:TL_Const.action_button_conversion,type:t,tl_data:TL_Const.forms[t],current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data||{},function(e,t){o[e]=t});var r=ThriveGlobal.$j.param(o);if(!(navigator.sendBeacon&&navigator.sendBeacon(TL_Const.ajax_url,new Blob([r],{type:"application/x-www-form-urlencoded"}))))try{var n=new XMLHttpRequest;n.open("POST",TL_Const.ajax_url,!1),n.withCredentials=!0,n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.send(r)}catch(e){}}}}),ThriveGlobal.$j("body").on("form_conversion.tcb",".tve-leads-conversion-object form",function(e){var t=ThriveGlobal.$j(this),o=t.parents(".tve-leads-conversion-object").first().attr("data-tl-type"),r=t.closest(".thrv_lead_generation");if(r.length&&"0"===r.attr("data-tl-track-conversion"))return!0;if(!o||!TL_Const.hasOwnProperty("forms")||!TL_Const.forms[o])return!0;var n={type:o,tl_data:TL_Const.forms[o],current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data,function(e,t){n[e]=t}),e.post_data=e.post_data||{},e.post_data.thrive_leads=n}).on("lead_conversion_success.tcb",".tve_lead_lock_shortcode form, .tve_post_lightbox form",function(e){var t=ThriveGlobal.$j(this),o=t.parents(".tve_content_lock");if(t.closest(".tve_post_lightbox").length){var r=t.closest(".tve-leads-conversion-object").attr("data-tl-type");TL_Front.parent_state&&TL_Front.parent_state.parent().hasClass("tve-leads-track-"+r)&&(o=TL_Front.parent_state.closest(".tve_content_lock"))}o.length&&o.hasClass("tve_content_lock")&&(o.removeClass("tve_lead_lock").find(".tve_lead_lock_shortcode").remove(),o.find(".tve_lead_locked_overlay").remove(),e.content_unlocked=!0)}).on("leads_states.tcb",".tve-leads-conversion-object form",function(e,t){var o=ThriveGlobal.$j(this);switch(o.find("#_form_type").val()){case"ribbon":var r=o.parents(".tve-leads-ribbon");o.parents(".tve_shortcode_editor").empty().html(t),TL_Front.open_ribbon(r);break;case"lightbox":case"tve_lead_2s_lightbox":o.parents(".tve_p_lb_control").empty().html(t);break;case"widget":case"in-content":case"post-footer":case"php-insert":o.parents(".tve_shortcode_editor").empty().html(t);break;case"slide-in":var n=o.parents(".tve-leads-slide-in");o.parents(".tve_shortcode_editor").empty().html(t),TL_Front.open_slide_in(n);break;case"screen-filler-lightbox":var i=o.parents(".tve-leads-screen-filler");o.parents(".tve_shortcode_editor").empty().html(t),TL_Front.open_screen_filler(i);break;case"scroll-mat":r=o.parents(".tve-leads-greedy_ribbon");o.parents(".tve_shortcode_editor").empty().html(t),TL_Front.open_ribbon(r);break;case"tve_lead_shortcode":o.parents(".tve-leads-shortcode").empty().html(t);break;default:e.change_states=!1}e.change_states=!0}).on("leads_messages.tcb",".tve-leads-conversion-object form",function(e){var t=ThriveGlobal.$j(this);switch(t.find("#_form_type").val()){case"tve_lead_shortcode":e.lightbox_state&&t.parents(".tve-leads-shortcode").hide();break;case"ribbon":t.parents(".thrv-ribbon").find(".tve-ribbon-close").click();break;case"lightbox":case"tve_lead_2s_lightbox":t.parents(".tve_p_lb_content").find(".tve_p_lb_close").click(),t.parents(".tve-leads-screen-filler").find(".tve-screen-filler-close").click();break;case"slide-in":t.parents(".thrv-leads-slide-in").find(".tve-leads-close").click();break;case"screen-filler-lightbox":t.parents(".tve-leads-screen-filler").find(".tve-screen-filler-close").click();break;case"scroll-mat":t.parents(".thrv-greedy-ribbon").find(".tve_et_click").click();break;
286default:t.find('input:not(:hidden):not([type="checkbox"]):not([type="radio"])').val("")}t.parents(".tve-leads-conversion-object").find(".tve_ea_thrive_leads_form_close").click(),TL_Front.parent_state&&TL_Front.close_form(TL_Front.parent_state)}),TL_Front.$document.on("switchstate",function(e,t){t.find("script.tcb-lazyload-template").each(function(){ThriveGlobal.$j(this).replaceWith(this.innerHTML)})})}}),TL_Front.switch_lightbox_state=function(e,t){return e.find(".tve_p_lb_overlay").css("opacity","0.8"),e.find(".tve_p_lb_content").css("top",t.find(".tve_p_lb_content").css("top")).addClass("tve-leads-triggered"),window.tve_lb_switch_state=!0,TL_Front.open_lightbox(e.find(".tl-lb-target"))},TL_Front.close_lightbox=function(){var e=ThriveGlobal.$j("body"),t=ThriveGlobal.$j("html"),o="tve-o-hidden tve-l-open tve-hide-overflow",r=arguments[0]||e.data("tl-open-lightbox"),n=!1!==arguments[1];if(r&&r.length){if(n&&!window.tve_lb_switch_state){var i=r.closest(".tl-states-root");i.length||(i=r.find(".tl-states-root").first()),TL_Front.record_dismissal(i.length?i.find(".tl-lb-target").first():r)}r.find(".tve-tl-anim").removeClass("tve-leads-triggered"),window.tve_lb_switch_state||(1===ThriveGlobal.$j(".tve_lb_open").length&&(e.removeClass(o).css("padding-right",""),t.removeClass(o),r.data("doc-scroll-top")?(document.documentElement.scrollTop=r.data("doc-scroll-top"),r.data("doc-scroll-top","")):r.data("bdy-scroll-top")&&(document.body.scrollTop=r.data("bdy-scroll-top"),r.data("bdy-scroll-top",""))),t.removeClass(t.data("tl-anim-class"))),window.tve_lb_switch_state=!1,setTimeout(function(){r.addClass("tve_lb_closing"),r.removeClass("tve_lb_open tve_lb_opening tve_lb_closing tve_p_lb_background").css("display","none").find("tve_p_lb_content").trigger("tve.lightbox-close")},200),r.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);"SOURCE"===this.tagName&&e.parent("video").trigger("pause"),e.attr("data-src",e.attr("src")),e.attr("src","")}),TL_Front.handle_typefocus(r,"pause"),ThriveGlobal.$j("#tve-lg-error-container").hide()}},TL_Front.open_lightbox=function(e,t){if(!e.hasClass("tve_lb_open")&&!e.hasClass("tve_lb_opening")){var o=window.tve_lb_switch_state;ThriveGlobal.$j.fn.thrive_iphone_placeholder&&e.find("input[placeholder]").thrive_iphone_placeholder(),TL_Front.close_lightbox(ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open"),!1),e.css({visibility:"",position:"",left:"",display:""}).parents(".tl-style").css({visibility:"",position:"",left:"",display:""});var r,n,i,s,a,l=ThriveGlobal.$j("body"),c=ThriveGlobal.$j("html"),d="tve-o-hidden tve-l-open tve-hide-overflow",_=(r=ThriveGlobal.$j,n={border:"none",height:"200px",margin:"0",padding:"0",width:"200px"},i=r("<div>").css(r.extend({},n)),s=r("<div>").css(r.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},n)).append(i).appendTo("body").scrollLeft(1e3).scrollTop(1e3),a={height:s.offset().top-i.offset().top||0,width:s.offset().left-i.offset().left||0},s.remove(),a).width,v=parseInt(l.css("paddingRight")),p=ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open").length;isNaN(v)&&(v=0),e.find(".tve_p_lb_close").off().on("click",function(){return TL_Front.close_lightbox(),!1}),l.off("keyup.tve_lb_close").on("keyup.tve_lb_close",function(e){if(27==e.which)return TL_Front.close_lightbox(),!1}),e.find(".tve_p_lb_overlay").off("click.tve_lb_close").on("click.tve_lb_close",function(){return TL_Front.close_lightbox(),!1}),l.data("tl-open-lightbox",e),e.addClass("tve_p_lb_background"),e.data("doc-scroll-top",document.documentElement.scrollTop),e.data("bdy-scroll-top",document.body.scrollTop),l.addClass(d),c.addClass(d);var h=window.innerHeight<ThriveGlobal.$j(document).height();!o&&h&&l.css("padding-right",v+_+"px"),e.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=jQuery(this);e.attr("data-src")&&e.attr("src",e.attr("data-src"))}),e.find(".thrv_responsive_video").each(function(){var e=ThriveGlobal.$j(this);TCB_Front.makeAutoplayVideo(e)});var f="",T=e.parents(".tl-states-root").attr("class")||"";ThriveGlobal.$j.each(T.split(" "),function(e,t){if(0===t.indexOf("tl-anim"))return f=t,!1}),c.addClass(f).data("tl-anim-class",f),setTimeout(function(){function t(){var t=e.find(".tve_p_lb_content").outerHeight(!0)+2*parseInt(e.css("padding-top")),o=e.find(".tve_p_lb_content"),r=window.innerHeight,n=(r-t)/2;e.find(".tve_p_lb_overlay").css({height:t+80+"px","min-height":r+"px"}),p?o.animate({top:n<40?40:n},100):o.css("top",(n<40?40:n)+"px"),t+40>r&&e.addClass("tve-scroll")}setTimeout(function(){e.addClass("tve_lb_opening")},0),e.find("iframe").not(".thrv_social_default iframe").each(function(){var e=ThriveGlobal.$j(this);!e.data("tve_ifr_loaded")&&e.attr("data-src")&&e.data("tve_ifr_loaded",1).attr("src",e.attr("data-src"))}),TCB_Front.resizePageSection(),t(),ThriveGlobal.$j(window).on("resize",t)},20),setTimeout(function(){e.removeClass("tve_lb_opening").addClass("tve_lb_open").find(".tve_p_lb_content").trigger("tve.lightbox-open");e.find("form").each(function(){ThriveGlobal.$j(this).find('input[required], textarea[required], select[required], input[data-required="true"], textarea[data-required="true"], select[data-required="true"]').each(function(){const e=ThriveGlobal.$j(this);"none"===e.css("display")&&e.show(),"hidden"===e.css("visibility")&&e.css("visibility","visible");e.parentsUntil(".tve_p_lb_content").filter(function(){return"none"===ThriveGlobal.$j(this).css("display")||"hidden"===ThriveGlobal.$j(this).css("visibility")}).show().css("visibility","visible");const t=e.attr("tabindex");t&&parseInt(t)<0&&e.removeAttr("tabindex")})}),ThriveGlobal.$j(window).trigger("scroll")},300),t&&t.preventDefault&&(t.preventDefault(),t.stopPropagation()),e.parents(".tl-states-root").off("switchstate").on("switchstate",function(e,t){var o=Array.prototype.slice.call(arguments,1
286);TL_Front.switch_lightbox_state.apply(TL_Front,o)}),t&&"exit"===t.tve_trigger&&e.data("shown-on-exit",!0),TCB_Front.$window.trigger("tl_after_lightbox_open",e),setTimeout(()=>{TCB_Front.$window.trigger("tve_after_content_toggle",[e])},500)}},TL_Front.open_two_step_lightbox=TL_Front.open_lightbox,TL_Front.open_ribbon=function(e){function t(){e.addClass("tve-leads-triggered");const t=e.find(".tve_shortcode_editor"),o=t.length?t.outerHeight():0,r=e.attr("data-position")||"top";switch(r){case"above":e.css("bottom","auto");case"top":e.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px");break;case"bottom":e.css("bottom","0px"),e.css("top","auto")}let n=0,i=Math.max(e.outerHeight(),o),s=setInterval(function(){n++;const t=Math.max(e.outerHeight(),o);t==i&&10!=n||clearInterval(s),"top"===r?(ThriveGlobal.$j("body").animate({"margin-top":t+"px"},200,function(){document.body.style.setProperty("margin-top",t+"px","important")}),TCB_Front&&TCB_Front.$window&&TCB_Front.$window.trigger("scroll")):"bottom"===r&&ThriveGlobal.$j("body").animate({"margin-bottom":t+"px"},200)},100);const a=ThriveGlobal.$j("body").find(".thrv_header.tve-scroll-sticky");if(a.length&&"top"===r){const e=parseFloat(TCB_Front.inlineCssVariable(a,"--tcb-header-extra-offset"))||0;TCB_Front.inlineCssVariable(a,"--tcb-header-extra-offset",e+i+"px")}e.off("switchstate").on("switchstate",function(e,t){const o=Array.prototype.slice.call(arguments,1);TL_Front.switch_ribbon_state.apply(TL_Front,o)})}TL_Const.forms.greedy_ribbon?(TL_Const.close_callbacks=TL_Const.close_callbacks||{},TL_Const.close_callbacks.greedy_ribbon=[t]):t()},TL_Front.switch_ribbon_state=function(e){var t=e.outerHeight(!0),o={};o["top"===e.parent().attr("data-position")?"margin-top":"margin-bottom"]=t+"px",e.find(".tve-tl-anim").removeClass(function(e,t){return(t.match(/(^|\s)tl-anim-\S+/g)||[]).join(" ")}).removeClass("tve-tl-anim"),ThriveGlobal.$j("body").animate(o,200)},TL_Front.open_greedy_ribbon=function(e){const t=ThriveGlobal.$j("body"),o=ThriveGlobal.$j(window),r=t.css("position");o.scrollTop(0),t.css("position","static"),t.addClass("tve-tl-gr-anim"),TCB_Front.$window.trigger("scroll"),e.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px");const n=e.outerHeight();t[0].style.setProperty("margin-top",n+"px","important");let i=1;setTimeout(function(){ThriveGlobal.$j('.tve-leads-ribbon[data-position="top"]').removeClass("tve-leads-triggered")},50),o.scroll(function(){const s=t.hasClass("tve-tl-gr-anim");if(i&&s){const s=o.scrollTop();if(s>n){(e.find(".tve_ea_thrive_wistia").length||e.find(".tve_with_wistia_popover"))&&ThriveGlobal.$j(".wistia_placebo_close_button").trigger("click"),t.removeClass("tve-tl-gr-anim"),e.addClass("tve-no-animation");const a=s-n;e.removeClass("tve-leads-triggered"),e.find(videoIframeSelector+", "+videoSourceSelector).each(function(){const e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")}),t.css("margin-top",""),t.css("position",r),o.scrollTop(a),e.removeClass("tve-no-animation"),i=0,TL_Front.record_dismissal(e),TL_Front.form_closed("greedy_ribbon"),TL_Const.forms.greedy_ribbon.allow_callbacks=!1}}}),e.off("switchstate").on("switchstate",function(e,t){})},TL_Front.open_screen_filler=function(e,t){var o="tve-so-hidden tve-sl-open tve-s-hide-overflow",r=ThriveGlobal.$j("html,body"),n=ThriveGlobal.$j("html");if(ThriveGlobal.$j.fn.thrive_iphone_placeholder&&e.find("input[placeholder]").thrive_iphone_placeholder(),e.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px").css("visibility",""),!0===e.hasClass("stl-anim-slip_from_top")){var i=ThriveGlobal.$j(window).scrollTop();e.css("top",i).css("visibility","")}e.find(".tve-screen-filler-close").on("click",function(){a(e)}),e.data("doc-scroll-top",document.documentElement.scrollTop),e.data("bdy-scroll-top",document.body.scrollTop),"none"!==e.find(".thrv-leads-screen-filler.thrv_wrapper ").css("display")&&r.addClass(o);var s="";function a(e){e.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")}),TL_Front.record_dismissal(e),e.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(e,"pause"),ThriveGlobal.$j(document).off("keyup.close-screenfiller"),0==ThriveGlobal.$j.find(".tve-leads-ribbon").length&&ThriveGlobal.$j("body").animate({"margin-top":"0px"},200),r.removeClass(o),n.removeClass(n.data("tl-s-anim-class")),setTimeout(function(){e.css("top","").hide(),"none"===e.css("display")&&(r.removeClass(o),e.removeClass("tve-leads-triggered"))},400),e.data("doc-scroll-top")?(document.documentElement.scrollTop=e.data("doc-scroll-top"),e.data("doc-scroll-top","")):e.data("bdy-scroll-top")&&(document.body.scrollTop=e.data("bdy-scroll-top"),e.data("bdy-scroll-top","")),ThriveGlobal.$j("#tve-lg-error-container").hide()}ThriveGlobal.$j.each(e.attr("class").split(" "),function(e,t){if(0===t.indexOf("stl-anim"))return s=t,!1}),n.addClass(s).data("tl-s-anim-class",s);var l=e.find("> .tl-style").hide(),c=e.find('> .tl-style[data-form-state="already_subscribed"]');c.length?c.show():l.first().show(),TL_Front.close_screen_filler=a,t&&t.preventDefault&&(t.preventDefault(),t.stopPropagation()),ThriveGlobal.$j(document).off("keyup.close-screenfiller").on("keyup.close-screenfiller",function(t){27==t.which&&a(e)}),e.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=jQuery(this);e.attr("data-src")&&e.attr("src",e.attr("data-src"))}),setTimeout(()=>{TCB_Front.resizePageSection()},500)},TL_Front.switch_slide_in_state=function(e){e.find(".tve-tl-anim").removeClass(function(e,t){return(t.match(/(^|\s)tl-anim-\S+/g)||[]).join(" ")}).removeClass("tve-tl-anim"),TL_Front.slide_in_position(e.find(".thrv-leads-slide-in"))},TL_Front.slide_in_position=function(e){var t=ThriveGlobal.$j(window),o=e.outerHeight();if(t.width()<=782||t.height()<o){e.parents(".tve-leads-slide-in").addClass("tve-lb");var r=t.height();setTimeout(function(){let t;t=e.parents(".tve-leads-slide-in").is('[class*="bot"]')?r-o:0,e.closest(".tve-leads-slide-in").data("doc-scroll-top",document.documentElement.scrollTop).data("bdy-scroll-top",document.body.scrollTop),e.parents(".tve-leads-conversion-object").first().css({height:o+80+"px","min-height":r+"px"}),e.css("top",(t<40?40:t)+"px"),o+40>r&&e.parents(".tve-leads-slide-in").css("overflow-y","scroll")},0)}},TL_Front.open_slide_in=function(e,t){var o="tve-o-hidden tve-l-open tve-hide-overflow",r=ThriveGlobal.$j("body"),n=ThriveGlobal.$j("html");function i(t){TL_Front.record_dismissal(t),t.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(t,"pause"),ThriveGlobal.$j(document).off("keyup.close-slidein"),ThriveGlobal.$j(".tve_lb_open").length||(r.removeClass(o),n.removeClass(o)),t.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")}),ThriveGlobal.$j("#tve-lg-error-container").hide(),e.data("doc-scroll-top")?(document.documentElement.scrollTop=e.data("doc-scroll-top"),e.data("doc-scroll-top","")):e.data("bdy-scroll-top")&&(document.body.scrollTop=e.data("bdy-scroll-top"),e.data("bdy-scroll-top",""))}ThriveGlobal.$j.fn.thrive_iphone_placeholder&&e.find("input[placeholder]").thrive_iphone_placeholder(),TL_Front.slide_in_position(e.find(".thrv-leads-slide-in").filter(":visible")),e.off().on("click",".tve-leads-close",function(){i(e)}),e.find(".tve_ea_thrive_leads_form_close").on("click",function(){i(e)}),e.on("switchstate",function(e,t){var o=Array.prototype.slice.call(arguments,1
286);TL_Front.switch_slide_in_state.apply(TL_Front,o)}),ThriveGlobal.$j(document).off("keyup.close-slidein").on("keyup.close-slidein",function(t){27==t.which&&i(e)}),t&&t.preventDefault&&(t.preventDefault(),t.stopPropagation())},TL_Front.close_form=function(e,t,o,r){var n=ThriveGlobal.$j(e).parents(".tve-leads-triggered"),i=n.attr("data-tl-type");if(void 0===i&&n.hasClass("tve-leads-widget"))i="widget";else if(void 0===i&&n.hasClass("tve-leads-post-footer"))i="post-footer";else if(void 0===i&&n.hasClass("tve-leads-slide-in"))i="slide-in";else if(void 0===i&&n.hasClass("tve-leads-in-content"))i="in-content";else if(void 0===i&&n.hasClass("tve-leads-shortcode"))i="shortcode";else if(void 0===i&&n.hasClass("tve-leads-greedy_ribbon"))i="greedy_ribbon";else{if(void 0===i&&n.hasClass("tve_p_lb_content"))return TL_Front.close_lightbox(),!1;if(void 0===i&&n.hasClass("tve-leads-screen-filler"))return TL_Front.close_screen_filler(n),!1}switch(TL_Front.record_dismissal(n),n.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(n,"pause"),i){case"ribbon":let e=n.find(".tve-ribbon-close");e.length||(e=jQuery('<span class="tve-ribbon-close" style="display: none"></span>').appendTo(n)),e.trigger("click");const t=ThriveGlobal.$j("body").find(".thrv_header.tve-scroll-sticky");if(t.length&&"top"===n.attr("data-position")){const e=parseFloat(TCB_Front.inlineCssVariable(t,"--tcb-header-extra-offset"))-n.outerHeight(!0)+"px";TCB_Front.inlineCssVariable(t,"--tcb-header-extra-offset",e)}break;case"slide-in":n.find(".tve_ea_thrive_leads_form_close").trigger("click"),n.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")});break;case"post-footer":case"in-content":case"shortcode":n.fadeOut(200,function(){TL_Front.form_closed(i)});break;case"widget":n.parent().slideUp(200);break;case"greedy_ribbon":var s=ThriveGlobal.$j("body"),a=ThriveGlobal.$j(window),l=s.css("margin-top");s[0].style.removeProperty("margin-top"),n.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")}),s.css("margin-top",l),a.scrollTop(0),s.animate({"margin-top":"0px"},300,"linear",function(){TL_Front.form_closed(i)}).removeClass("tve-tl-gr-anim")}},TL_Front.form_closed=function(e){TL_Const.close_callbacks&&TL_Const.close_callbacks[e]&&ThriveGlobal.$j.each(TL_Const.close_callbacks[e],function(e,t){ThriveGlobal.$j.isFunction(t)&&t()})},TL_Front.handle_typefocus=function(e,t){e.find(".tve_typefocus").each(function(){jQuery(this).attr("data-typefocus",t)})};(()=>{if(window.TVE_Dash=window.TVE_Dash||{},!e||!e.$j){var a=window.$,e={$j:jQuery.noConflict()};a&&(window.$=a)}!function(a){TVE_Dash.ajax_sent=!1;var t={},s={};TVE_Dash.add_load_item=function(e,n,o){var r;if("function"!=typeof o&&(o=a.noop),TVE_Dash.ajax_sent){var i={},_={};return i[e]=n,_[e]=o,this.send_ajax(i,_),!0}return n?(t[e]&&"function"==typeof(null===(r=console)||void 0===r?void 0:r.warn)&&console.warn(e+" ajax action already defined"),t[e]=n,s[e]=o,!0):(console.error&&console.error("missing ajax data"),!1)},TVE_Dash.ajax_load_css=function(e){a.each(e,function(e,t){a("link#"+(e+="-css")).length||a('<link rel="stylesheet" id="'+e+'" type="text/css" href="'+t+'"/>').appendTo("head")})},TVE_Dash.ajax_load_js=function(e){var t=document.body;a.each(e,function(s,n){if(-1!==s.indexOf("_before"))return!0;var o=document.createElement("script");e[s+"_before"]&&a('<script type="text/javascript">'+e[s+"_before"]+"<\/script>").after(t.lastChild),s&&(o.id=s+"-script"),o.src=n,t.appendChild(o)})},TVE_Dash.send_ajax=function(t,s){a.ajax({url:tve_dash_front.ajaxurl,xhrFields:{withCredentials:!0},data:{post_id:tve_dash_front.post_id,action:"tve_dash_front_ajax",tve_dash_data:t},dataType:"json",type:"post"}).done(function(t){t&&a.isPlainObject(t)&&(t.__resources&&(t.__resources.css&&TVE_Dash.ajax_load_css(t.__resources.css),t.__resources.js&&TVE_Dash.ajax_load_js(t.__resources.js),delete t.__resources),a.each(t,function(a,e){if("function"!=typeof s[a])return!0;s[a].call(null,e,t)}),e.$j(window).trigger("tve_after_ajax_load"))})},TVE_Dash.forceImageLoad=function(a){Array.prototype.forEach.call(a.getElementsByTagName("img"),a=>{a.getAttribute("src").includes("data:image")&&a.setAttribute("src",a.getAttribute("data-opt-src")||a.getAttribute("data-src"))})},a(function(){window.TVE_Dash=window.TVE_Dash||TVE_Dash,setTimeout(function(){var e=new a.Event("tve-dash.load");return a(document).trigger(e),!a.isEmptyObject(t)&&!(!tve_dash_front.force_ajax_send&&tve_dash_front.is_crawler)&&(TVE_Dash.send_ajax(t,s),void(TVE_Dash.ajax_sent=!0))})})}(e.$j)})();!function(){"use strict";!function(){var e="relevanssi_live_search";function s(e){this.config=null,this.input_el=e,this.results_id=null,this.results_el=null,this.messages=null,this.parent_el=null,this.results_showing=!1,this.form_el=null,this.timer=!1,this.last_string="",this.spinner=null,this.spinner_showing=!1,this.has_results=!1,this.current_request=!1,this.results_destroy_on_blur=!0,this.a11y_keys=[27,40,13,38,9],this.init()}s.prototype={init:function(){var e=this,s=this.input_el;this.form_el=s.parents("form:eq(0)"),this.results_id=this.uniqid("relevanssi_live_search_results_");var t=!1,r=s.data("rlvconfig");if(r&&void 0!==r)for(var i in relevanssi_live_search_params.config)r===i&&(t=!0,this.config=relevanssi_live_search_params.config[i]);else for(var a in relevanssi_live_search_params.config)"default"===a&&(t=!0,this.config=relevanssi_live_search_params.config[a]);if(t){s.attr("autocomplete","off"),s.attr("aria-owns",this.results_id),s.attr("aria-autocomplete","both");var n='<div aria-expanded="false" aria-live="polite" class="relevanssi-live-search-results" id="'+this.results_id+'" role="listbox" tabindex="0">';n+='<div class="ajax-results"></div>',n+="</div>";var l=s.data("rlvparentel");l?(this.parent_el=jQuery(l),this.parent_el.html(n)):this.config.parent_el?(this.parent_el=jQuery(this.config.parent_el),this.parent_el.html(n)):jQuery("body").append(jQuery(n)),this.results_el=jQuery("#"+this.results_id),this.messages=this.results_el.find(".live-ajax-messages"),this.position_results(),jQuery(window).on("resize",(function(){setTimeout((function(){s.closest("form").is(":hidden")?e.destroy_results():e.position_results()}),100)})),void 0===this.config.abort_on_enter&&(this.config.abort_on_enter
286=!0),s.on("keyup input",(function(s){jQuery.inArray(s.keyCode,e.a11y_keys)>-1||(e.current_request&&e.config.abort_on_enter&&13===s.keyCode&&e.current_request.abort(),e.input_el.val().trim().length?e.results_showing&&s.currentTarget.value.length<e.config.input.min_chars?e.destroy_results():!e.results_showing&&s.currentTarget.value.length>=e.config.input.min_chars&&(e.position_results(),e.results_el.addClass("relevanssi-live-search-results-showing"),e.show_spinner(e.results_el),e.results_showing=!0):e.destroy_results(),e.has_results&&!e.spinner_showing&&e.last_string!==e.input_el.val().trim()&&(e.results_el.find(".ajax-results").empty(),e.results_el.find(".live-ajax-messages").replaceWith(e.messages),e.results_el.find(".live-ajax-messages").append("<p class='screen-reader-text' id='relevanssi-live-search-status' role='status' aria-live='polite'>"+relevanssi_live_search_params.msg_loading_results+"</p>"),e.show_spinner(e.results_el)))})).on("keyup input",jQuery.proxy(this.maybe_search,this)),(this.config.results_destroy_on_blur||void 0===this.config.results_destroy_on_blur)&&jQuery("html").on("click",(function(s){jQuery(s.target).parents(".relevanssi-live-search-results").length||e.destroy_results()})),s.on("click",(function(e){e.stopPropagation()}))}else alert(relevanssi_live_search_params.msg_no_config_found);this.load_ajax_messages_template()},load_ajax_messages_template:function(){relevanssi_live_search_params.messages_template?(this.results_el.prepend(relevanssi_live_search_params.messages_template),this.messages=relevanssi_live_search_params.messages_template):jQuery.ajax({url:relevanssi_live_search_params.ajaxurl,data:"action=relevanssi_live_search_messages",dataType:"json",type:"GET",complete:function(e,s){},error:function(e,s,t){},success:function(e){this.results_el.prepend(e),this.messages=e}.bind(this)})},search:function(e){var s=this,t=this.form_el,r=t.serialize(),i=t.attr("action")?t.attr("action"):"",a=this.input_el,n=this.results_el;jQuery(document).trigger("relevanssi_live_search_start",[a,n,t,i,r]),this.aria_expanded(!1),r+="&action=relevanssi_live_search&rlvquery="+encodeURIComponent(a.val()),-1!==i.indexOf("?")&&(i=i.split("?"),r+="&"+i[1]),this.last_string=a.val(),this.has_results=!0,this.current_request=jQuery.ajax({url:relevanssi_live_search_params.ajaxurl,type:"POST",data:r,complete:function(){jQuery(document).trigger("relevanssi_live_search_complete",[a,n,t,i,r]),s.spinner_showing=!1,s.hide_spinner(s.results_el),this.current_request=!1,jQuery(document).trigger("relevanssi_live_search_shutdown",[a,n,t,i,r])},success:function(e){0===e&&(e=""),jQuery(document).trigger("relevanssi_live_search_success",[a,n,t,i,r]),s.position_results(),n.find(".ajax-results").html(e),s.aria_expanded(!0),s.keyboard_navigation(),jQuery(document).trigger("relevanssi_live_search_shutdown",[a,n,t,i,r])}})},keyboard_navigation:function(){var e=this,s=this.input_el,t=this.results_el,r="relevanssi-live-search-result--focused",i=".relevanssi-live-search-result",a=this.a11y_keys;jQuery(document).off("keyup.relevanssi_a11y").on("keyup.relevanssi_a11y",(function(n){if(t.hasClass("relevanssi-live-search-results-showing")){if(-1!==jQuery.inArray(n.keyCode,a)){if(n.preventDefault(),27===n.keyCode&&!s.is(":focus"))return e.destroy_results(),jQuery(document).off("keyup.relevanssi_a11y"),s.trigger("focus"),void jQuery(document).trigger("relevanssi_live_escape_results");if(40===n.keyCode){var l=jQuery(t[0]).find("."+r);1===l.length&&1===l.next().length?l.removeClass(r).attr("aria-selected","false").next().addClass(r).attr("aria-selected","true").find("a").trigger("focus"):(l.removeClass(r).attr("aria-selected","false"),t.find(i+":first").addClass(r).attr("aria-selected","true").find("a").trigger("focus")),jQuery(document).trigger("relevanssi_live_key_arrowdown_pressed")}if(38===n.keyCode){var o=jQuery(t[0]).find("."+r);1===o.length&&1===o.prev().length?o.removeClass(r).attr("aria-selected","false").prev().addClass(r).attr("aria-selected","true").find("a").trigger("focus"):(o.removeClass(r).attr("aria-selected","false"),t.find(i+":last").addClass(r).attr("aria-selected","true").find("a").trigger("focus")),jQuery(document).trigger("relevanssi_live_key_arrowup_pressed")}13===n.keyCode&&jQuery(document).trigger("relevanssi_live_key_enter_pressed"),9===n.keyCode&&jQuery(document).trigger("relevanssi_live_key_tab_pressed")}}else jQuery(document).off("keyup.relevanssi_a11y")})),jQuery(document).trigger("relevanssi_live_keyboad_navigation")},aria_expanded:function(e){var s=this.results_el;
286e?s.attr("aria-expanded","true"):s.attr("aria-expanded","false"),jQuery(document).trigger("relevanssi_live_aria_expanded")},position_results:function(){var e=this.input_el,s=e.offset(),t=this.results_el,r=0,i=e.closest("form");if(!e.is(":hidden")&&!i.is(":hidden")){if(s.top=this.better_offset(this.config.results.static_offset,e),this.parent_el){if(s.left+=parseInt(this.config.results.offset.x,10),s.top+=parseInt(this.config.results.offset.y,10),"top"===this.config.results.position)r=0-t.height();else r=e.outerHeight();t.css("left",s.left),t.css("top",s.top+r+"px")}else{if(s.left+=parseInt(this.config.results.offset.x,10),s.top+=parseInt(this.config.results.offset.y,10),"top"===this.config.results.position)r=0-t.height();else r=e.outerHeight();t.css("left",s.left),t.css("top",s.top+r+"px")}"auto"===this.config.results.width&&t.width(e.outerWidth()-parseInt(t.css("paddingRight").replace("px",""),10)-parseInt(t.css("paddingLeft").replace("px",""),10)),jQuery(document).trigger("relevanssi_live_position_results",[t.css("left"),t.css("top"),t.width()])}},better_offset:function(e,s,t){e="boolean"!=typeof e||e,s="object"==typeof s?s:$(s),t=null!=t?"object"==typeof t?t:$(t):null;var r=jQuery(window).scrollTop(),i=s.offset().top;if(t)var a=t.offset().top,n=t.scrollTop();return e?t?i-a+n:i:t?i-a:i-r},destroy_results:function(e){this.hide_spinner(this.results_el),this.aria_expanded(!1),this.results_el.find(".ajax-results").empty(),this.results_el.removeClass("relevanssi-live-search-results-showing"),this.results_showing=!1,this.has_results=!1,jQuery(document).trigger("relevanssi_live_destroy_results")},maybe_search:function(e){jQuery.inArray(e.keyCode,this.a11y_keys)>-1||(clearTimeout(this.timer),e.currentTarget.value.length>=this.config.input.min_chars&&(this.current_request&&this.current_request.abort(),this.timer=setTimeout(jQuery.proxy(this.search,this,e),this.config.input.delay)))},show_spinner:function(e){jQuery("#relevanssi-live-ajax-search-spinner",e).addClass("rlv-has-spinner")},hide_spinner:function(e){jQuery("#relevanssi-live-ajax-search-spinner",e).removeClass("rlv-has-spinner")},uniqid:function(e,s){var t;void 0===e&&(e="");var r=function(e,s){return s<(e=parseInt(e,10).toString(16)).length?e.slice(e.length-s):s>e.length?new Array(s-e.length+1).join("0")+e:e};return this.php_js||(this.php_js={}),this.php_js.uniqidSeed||(this.php_js.uniqidSeed=Math.floor(123456789*Math.random())),this.php_js.uniqidSeed++,t=e,t+=r(parseInt((new Date).getTime()/1e3,10),8),t+=r(this.php_js.uniqidSeed,5),s&&(t+=(10*Math.random()).toFixed(8).toString()),t}},jQuery.fn[e]=function(t){return this.each((function(){jQuery.data(this,"plugin_"+e)||jQuery.data(this,"plugin_"+e,new s(jQuery(this)))})),this}}(),jQuery(document).ready((function(){"function"==typeof jQuery().relevanssi_live_search&&jQuery('input[data-rlvlive="true"]').relevanssi_live_search()}))}();(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==!0){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,!1):a(d,f,e!==!1)}})(this);!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(e){var t,n,o,i,r,a,s="Close",l="BeforeClose",c="MarkupParse",d="Open",u="Change",p="mfp",f="."+p,m="mfp-ready",g="mfp-removing",v="mfp-prevent-close",h=function(){},y=!!window.jQuery,w=e(window),C=function(e,n){t.ev.on(p+e+f,n)},b=function(t,n,o,i){var r=document.createElement("div");return r.className="mfp-"+t,o&&(r.innerHTML=o),i?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},x=function(e,n){t.ev.triggerHandler(p+e,n),t.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),t.st.callbacks[e]&&t.st.callbacks[e].apply(t,Array.isArray(n)?n:[n]))},I=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace(/%title%/g,t.st.tClose)),a=n),t.currTemplate.closeBtn},k=function(){e.magnificPopup.instance||((t=new h).init(),e.magnificPopup.instance=t)};h.prototype={constructor:h,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=e(document),t.popupsCache={}},open:function(n){var i;
286if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(i=0;i<s.length;i++)if((a=s[i]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=i;break}}else t.items=Array.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=o,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=b("bg").on("click"+f,function(){t.close()}),t.wrap=b("wrap").attr("tabindex",-1).attr("role","dialog").attr("aria-modal",!0).attr("aria-label","Popup Image").on("click"+f,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=b("container",t.wrap)),t.contentContainer=b("content"),t.st.preloader&&(t.preloader=b("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(i=0;i<l.length;i++){var u=l[i];u=u.charAt(0).toUpperCase()+u.slice(1),t["init"+u].call(t)}x("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(C(c,function(e,t,n,o){n.close_replaceWith=I(o.type)}),r+=" mfp-close-btn-in"):t.wrap.append(I())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:w.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+f,function(e){27===e.keyCode&&t.close()}),w.on("resize"+f,function(){t.updateSize()}),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var p=t.wH=w.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(p)){var v=t._getScrollbarSize();v&&(g.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),x("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(m),t._setFocus()):t.bgOverlay.addClass(m),o.on("focusin"+f,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(p),x(d),n}t.updateItemHTML()},close:function(){t.isOpen&&(x(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(g),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){x(s);var n=g+" "+m+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body, html").css("overflow",""):i.overflow="",e("html").css(i)}o.off("keyup.mfp focusin"+f),t.ev.off(f),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).trigger("focus"),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,x("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,o=window.innerHeight*n;t.wrap.css("height",o),t.wH=o}else t.wH=e||w.height();t.fixedContentPos||t.wrap.css("height",t.wH),x("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var o=n.type;if(x("BeforeChange",[t.currItem?t.currItem.type:"",o]),t.currItem=n,!t.currTemplate[o]){var r=!!t.st[o]&&t.st[o].markup;x("FirstMarkupParse",r),t.currTemplate[o]=!r||e(r)}i&&i!==n.type&&t.container.removeClass("mfp-"+i+"-holder");var a=t["get"+o.charAt(0).toUpperCase()+o.slice(1)](n,t.currTemplate[o]);t.appendContent(a,o),n.preloaded=!0,x(u,n),i=n.type,t.container.prepend(t.contentContainer),x("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(I()):t.content=e:t.content="",x("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var o,i=t.items[n];if(i.tagName?i={el:e(i)}:(o=i.type,i={data:i,src:i.src}),i.el){for(var r=t.types,a=0;a<r.length;a++)if(i.el.hasClass("mfp-"+r[a])){o=r[a];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=o||t.st.type||"inline",i.index=n,i.parsed=!0,t.items[n]=i,x("ElementParse",i),t.items[n]},addGroup:function(e,n){var o=function(o){o.mfpEl=this,t._openClick(o,e,n)};n||(n={});var i="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(i).on(i,o)):(n.isObj=!1,n.delegate?e.off(i).on(i,n.delegate,o):(n.items=e,e.off(i).on(i,o)))},_openClick:function(n,o,i){if((void 0!==i.midClick?i.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var r=void 0!==i.disableOn?i.disableOn:e.magnificPopup.defaults.disableOn;if(r)if("function"==typeof r){if(!r.call(t))return!0}else if(w.width()<r)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),i.el=e(n.mfpEl),i.delegate&&(i.items=o.find(i.delegate)),t.open(i)}},updateStatus:function(e,o){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),o||"loading"!==e||(o=t.st.tLoading);var i={status:e,text:o};x("UpdateStatus",i),e=i.status,o=i.text,t.st.allowHTMLInStatusIndicator?t.preloader.html(o):t.preloader.text(o),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).closest("."+v).length){var o=t.st.closeOnContentClick,i=t.st.closeOnBgClick;if(o&&i)return!0;
286if(!t.content||e(n).closest(".mfp-close").length||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(o)return!0}else if(i&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?o.height():document.body.scrollHeight)>(e||w.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).trigger("focus")},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(n,o,i){var r;i.data&&(o=e.extend(i.data,o)),x(c,[n,o,i]),e.each(o,function(o,i){if(void 0===i||!1===i)return!0;if((r=o.split("_")).length>1){var a=n.find(f+"-"+r[0]);if(a.length>0){var s=r[1];"replaceWith"===s?a[0]!==i[0]&&a.replaceWith(i):"img"===s?a.is("img")?a.attr("src",i):a.replaceWith(e("<img>").attr("src",i).attr("class",a.attr("class"))):a.attr(r[1],i)}}else t.st.allowHTMLInTemplate?n.find(f+"-"+o).html(i):n.find(f+"-"+o).text(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:h.prototype,modules:[],open:function(t,n){return k(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close" aria-label="%title%"><span aria-hidden="true">×</span></button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0,allowHTMLInStatusIndicator:!1,allowHTMLInTemplate:!1}},e.fn.magnificPopup=function(n){k();var o=e(this);if("string"==typeof n)if("open"===n){var i,r=y?o.data("magnificPopup"):o[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?i=r.items[a]:(i=o,r.delegate&&(i=i.find(r.delegate)),i=i.eq(a)),t._openClick({mfpEl:i},o,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),y?o.data("magnificPopup",n):o[0].magnificPopup=n,t.addGroup(o,n);return o};var T,P,_,S="inline",E=function(){_&&(P.after(_.addClass(T)).detach(),_=null)};e.magnificPopup.registerModule(S,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(S),C(s+"."+S,function(){E()})},getInline:function(n,o){if(E(),n.src){var i=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(P||(T=i.hiddenClass,P=b(T),T="mfp-"+T),_=r.after(P).detach().removeClass(T)),t.updateStatus("ready")}else t.updateStatus("error",i.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(o,{},n),o}}});var z,O="ajax",M=function(){z&&e(document.body).removeClass(z)},B=function(){M(),t.req&&t.req.abort()};e.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:"The content could not be loaded."},proto:{initAjax:function(){t.types.push(O),z=t.st.ajax.cursor,C(s+"."+O,B),C("BeforeChange."+O,B)},getAjax:function(n){z&&e(document.body).addClass(z),t.updateStatus("loading");var o=e.extend({url:n.src,success:function(o,i,r){var a={data:o,xhr:r};x("ParseAjax",a),t.appendContent(e(a.data),O),n.finished=!0,M(),t._setFocus(),setTimeout(function(){t.wrap.addClass(m)},16),t.updateStatus("ready"),x("AjaxContentAdded")},error:function(){M(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(o),""}}});var L,H=function(e){if(e.data&&void 0!==e.data.title)return e.data.title;
286var n=t.st.image.titleSrc;if(n){if("function"==typeof n)return n.call(t,e);if(e.el)return e.el.attr(n)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:"The image could not be loaded."},proto:{initImage:function(){var n=t.st.image,o=".image";t.types.push("image"),C(d+o,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),C(s+o,function(){n.cursor&&e(document.body).removeClass(n.cursor),w.off("resize"+f)}),C("Resize"+o,t.resizeImage),t.isLowIE&&C("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,L&&clearInterval(L),e.isCheckingImgSize=!1,x("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,o=e.img[0],i=function(r){L&&clearInterval(L),L=setInterval(function(){o.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(L),3===++n?i(10):40===n?i(50):100===n&&i(500))},r)};i(1)},getImage:function(n,o){var i=0,r=t.st.image,a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",r.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,x("ImageLoadComplete")):++i<200?setTimeout(s,100):a())},l=o.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",s).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(o,{title:H(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(L&&clearInterval(L),n.loadError?(o.addClass("mfp-loading"),t.updateStatus("error",r.tError.replace("%url%",n.src))):(o.removeClass("mfp-loading"),t.updateStatus("ready")),o):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,o.addClass("mfp-loading"),t.findImageSize(n)),o)}}});var A;e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,o=".zoom";if(n.enabled&&t.supportsTransition){var i,r,a=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return i["-webkit-"+r]=i["-moz-"+r]=i["-o-"+r]=i[r]=o,t.css(i),t},d=function(){t.content.css("visibility","visible")};C("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(i),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void d();(r=c(e)).css(t._getOffset()),t.wrap.append(r),i=setTimeout(function(){r.css(t._getOffset(!0)),i=setTimeout(function(){d(),setTimeout(function(){r.remove(),e=r=null,x("ZoomAnimationEnded")},16)},a)},16)}}),C(l+o,function(){if(t._allowZoom()){if(clearTimeout(i),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;r=c(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),C(s+o,function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var o,i=(o=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(o.css("padding-top"),10),a=parseInt(o.css("padding-bottom"),10);i.top-=e(window).scrollTop()-r;var s={width:o.width(),height:(y?o.innerHeight():o[0].offsetHeight)-a-r};return void 0===A&&(A=void 0!==document.createElement("p").style.MozTransform),A?s["-moz-transform"]=s.transform="translate("+i.left+"px,"+i.top+"px)":(s.left=i.left,s.top=i.top),s}}});var F="iframe",j=function(e){if(t.currTemplate[F]){var n=t.currTemplate[F].find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(F,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},youtu_be:{index:"youtu.be",id:"/",src:"//www.youtube.com/embed/%id%?autoplay=1"},youtube_nocookie:{index:"youtube-nocookie.com",id:"/",src:"//www.youtube-nocookie.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(F),C("BeforeChange",function(e,t,n){t!==n&&(t===F?j():n===F&&j(!0))}),C(s+"."+F,function(){j()})},getIframe:function(n,o){var i=n.src,r=t.st.iframe;e.each(r.patterns,function(){if(i.indexOf(this.index)>-1)return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id
286)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1});var a={};return r.srcAction&&(a[r.srcAction]=i),t._parseMarkup(o,a,n),t.updateStatus("ready"),o}}});var N=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},D=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%",langDir:null,loop:!0},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;n.langDir||(n.langDir=document.dir||"ltr"),r+=" mfp-gallery",C(d+i,function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),o.on("keydown"+i,function(e){37===e.keyCode?"rtl"===n.langDir?t.next():t.prev():39===e.keyCode&&("rtl"===n.langDir?t.prev():t.next())}),t.updateGalleryButtons()}),C("UpdateStatus"+i,function(){t.updateGalleryButtons()}
286),C("UpdateStatus"+i,function(e,n){n.text&&(n.text=D(n.text,t.currItem.index,t.items.length))}),C(c+i,function(e,o,i,r){var a=t.items.length;i.counter=a>1?D(n.tCounter,r.index,a):""}),C("BuildControls"+i,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var o,i,r,a;"rtl"===n.langDir?(o=n.tNext,i=n.tPrev,r="next",a="prev"):(o=n.tPrev,i=n.tNext,r="prev",a="next");var s=n.arrowMarkup,l=t.arrowLeft=e(s.replace(/%title%/gi,o).replace(/%action%/gi,r).replace(/%dir%/gi,"left")).attr("aria-label",o).addClass(v),c=t.arrowRight=e(s.replace(/%title%/gi,i).replace(/%action%/gi,a).replace(/%dir%/gi,"right")).attr("aria-label",i).addClass(v);"rtl"===n.langDir?(t.arrowNext=l,t.arrowPrev=c):(t.arrowNext=c,t.arrowPrev=l),l.on("click",function(){"rtl"===n.langDir?t.next():t.prev()}),c.on("click",function(){"rtl"===n.langDir?t.prev():t.next()}),t.container.append(l.add(c)),t.container.attr("role","region").attr("aria-label","carousel")}}),C(u+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),C(s+i,function(){o.off(i),t.wrap.off("click"+i),t.arrowRight=t.arrowLeft=null})},next:function(){var e=N(t.index+1);if(!t.st.gallery.loop&&0===e)return!1;t.direction=!0,t.index=e,t.updateItemHTML()},prev:function(){var e=t.index-1;if(!t.st.gallery.loop&&e<0)return!1;t.direction=!1,t.index=N(e),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,o=Math.min(n[0],t.items.length),i=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=N(n),!t.items[n].preloaded){var o=t.items[n];o.parsed||(o=t.parseEl(n)),x("LazyLoad",o),"image"===o.type&&(o.img=e('<img class="mfp-img" />').on("load.mfploader",function(){o.hasSize=!0}).on("error.mfploader",function(){o.hasSize=!0,o.loadError=!0,x("LazyLoadError",o)}).attr("src",o.src)),o.preloaded=!0}},updateGalleryButtons:function(){t.st.gallery.loop||"object"!=typeof t.arrowPrev||null===t.arrowPrev||(0===t.index?t.arrowPrev.hide():t.arrowPrev.show(),t.index===t.items.length-1?t.arrowNext.hide():t.arrowNext.show())}}});var W="retina";e.magnificPopup.registerModule(W,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(C("ImageHasSize."+W,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),C("ElementParse."+W,function(t,o){o.src=e.replaceSrc(o,n)}))}}}}),k()});!function(e){FLTheme={init:function(){this._bind()},_bind:function(){var a=this;e(".navbar-toggle").on("click",this.navbarToggleClick),0!=e(".fl-page-bar-nav ul.sub-menu").length&&(this._setupDropDowns(),this._enableTopNavDropDowns()),0!=e(".fl-page-nav ul.sub-menu").length&&(e(window).on("resize.fl-page-nav-sub-menu",e.throttle(500,this._enablePageNavDropDowns)),this._setupDropDowns(),this._enablePageNavDropDowns()),0!=e(".fl-page-nav ul.menu").length&&(e(".fl-page-nav ul.menu").find(".menu-item").on("click",'> a[href*="#"]:not([href="#"])',this._setupCurrentNavItem),this._setupCurrentNavItem()),0!=e(".fl-page-nav-search").length&&e(".fl-page-nav-search a.fa-search").on("click",this._toggleNavSearch),0!=e(".fl-nav-vertical").length&&(e(window).on("resize",e.throttle(500,this._navVertical)),this._navVertical()),0!=e(".fl-fixed-width.fl-nav-vertical-right").length&&(e(window).on("resize",e.throttle(500,this._updateVerticalRightPos)),this._updateVerticalRightPos()),0!=e(".fl-page-nav-centered-inline-logo").length&&(e(window).on("resize",e.throttle(500,this._centeredInlineLogo)),this._centeredInlineLogo()),0!=e("body.fl-nav-left").length&&(e(window).on("resize",e.throttle(500,this._navLeft)),this._navLeft()),0!=e("body.fl-shrink").length&&0==e("html.fl-builder-edit").length&&(e(window).on("resize",e.throttle(500,this._shrinkHeaderEnable)),this._shrinkHeaderInit(),this._shrinkHeaderEnable()),0!=e(".fl-page-header-fixed").length&&(e(window).on("resize.fl-page-header-fixed",e.throttle(500,this._enableFixedHeader)),this._enableFixedHeader()),0!=e("body.fl-fixed-header").length&&0==e("html.fl-builder
286-edit").length&&(e(window).on("resize",e.throttle(500,this._fixedHeader)),this._fixedHeader()),0!=e("body.fl-scroll-header").length&&0==e("html.fl-builder-edit").length&&(e(window).on("resize",e.throttle(500,this._scrollHeader)),this._scrollHeader()),0!=e(".fl-page-header-primary").find("li.mega-menu").length&&(e(window).on("resize",e.throttle(500,this._megaMenu)),this._megaMenu()),0!=e(".fl-page-header-fixed").length&&(e(window).on("scroll.fl-mega-menu-on-scroll",e.throttle(500,this._megaMenuOnScroll)),e(window).on("resize.fl-mega-menu-on-scroll",e.throttle(500,this._megaMenuOnScroll))),0!=e("html.fl-builder-edit").length&&this._fixedHeadersWhenBuilderActive(),0!=e("body.fl-nav-mobile-offcanvas").length&&0!=!e("html.fl-builder-edit").length&&(e(window).on("resize",e.throttle(500,this._setupMobileNavLayout)),this._setupMobileNavLayout(),this._toggleMobileNavLayout()),e("body").on("click",this.closeMenu),e(".fl-theme-menu > li:last-child").on("focusout",function(l){void 0!==e(l.relatedTarget)[0]&&"nav-link"===e(l.relatedTarget)[0].className||a.closeMenu(l)}),0!=e(".fl-full-width.fl-footer-effect").length&&(e(window).on("resize",e.throttle(500,this._footerEffect)),this._footerEffect()),0!=e("body.fl-scroll-to-top").length&&this._toTop(),"undefined"!=typeof e("body").magnificPopup&&this._enableLightbox(),"undefined"==typeof e.fn.fitVids||e("body").hasClass("fl-builder")||this._enableFitVids(),FLTheme._navBackiosFix(),this._initSmoothScroll()},_isMobile:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||/Mobile|Android|Silk\/|Kindle|BlackBerry|Opera Mini|Opera Mobi|webOS/i.test(navigator.userAgent)},_initRetinaImages:function(){var a=window.devicePixelRatio?window.devicePixelRatio:1;a>1&&e("img[data-retina]").each(FLTheme._convertImageToRetina)},_convertImageToRetina:function(){var a=e(this),l=new Image,n=a.attr("src"),t=a.data("retina");if("undefined"==typeof n&&(n=a.data("cfsrc")),"undefined"==typeof n)return!1;var i=n.split(".").pop();""!=t&&(l.onload=function(){var e=l.width,n=l.height;"svg"==i&&(e=a.width(),n=a.height()),a.width(e),a.attr("src",t)},l.src=n)},_initMobileHeaderLogo:function(){this._enableMobileLogo(),e(window).on("resize",e.proxy(this._enableMobileLogo,this))},_enableMobileLogo:function(){var a=e(window),l=e(".fl-page-header-logo"),n=l.find("img[data-mobile]"),t=null,i=null,o=null;0!==n.length&&e(n).each(function(){o=new Image,t=e(this),src=t.attr("src"),width=t.data("width"),height=t.data("height"),i=t.data("mobile"),mobileWidth=t.data("mobile-width"),mobileHeight=t.data("mobile-height"),t.attr("src",""),t.attr("data-src",src),a.width()<window.themeopts.mobile_breakpoint?""!=i&&(o.onload=function(){t.attr("src",i),t.attr("width",mobileWidth),t.attr("height",mobileHeight),t.css("width","")},o.src=src,t.show()):"undefined"!=typeof t.data("src")&&(t.attr("src",t.data("src")),t.attr("width",width),t.attr("height",height),t.css("width",width))})},navbarToggleClick:function(a){var l=e("body").hasClass("fl-nav-mobile-offcanvas")?"flyout":"dropdown";if("dropdown"===l){var n=e(a.target).closest(".fl-page-nav"),t=n.find(".fl-page-nav-collapse");t.toggleClass("collapse"),t.toggleClass("in")}else"flyout"===l&&e(".fl-page").toggleClass("fl-nav-offcanvas-active");a.stopPropagation()},closeMenu:function(a){var l,n=e("body").hasClass("fl-nav-mobile-offcanvas")?"flyout":"dropdown",t=e(".fl-page-nav-collapse").hasClass("in"),i=e(".fl-page").hasClass("fl-nav-offcanvas-active"),o=e(a.target).is(".mega-toggle-animated-inner, .mega-menu-toggle-animated-block, .mega-toggle-animated-box, .mega-toggle-blocks-right");void 0===a||void 0===a.target||o||("dropdown"===n&&t?(l=e(".navbar-collapse.in").closest(".fl-page-nav"),l.find(".navbar-toggle").trigger("click")):"flyout"===n&&i&&e(".fl-offcanvas-close").trigger("click"))},_setupDropDowns:function(){e("ul.sub-menu").each(function(){e(this).closest("li").find("a").first().attr("aria-haspopup","true")})},_enableTopNavDropDowns:function(){var a=e(".fl-page-bar-nav"),l=a.find(" > li"),n=a.find("> li").has("> ul.sub-menu").find(".fl-submenu-toggle-icon");FLTheme._isMobile()?!1!==/iPhone|iPad/i.test(navigator.userAgent)?l.hover(FLTheme._navItemMouseover,FLTheme._navItemMouseout):(l.hover(function(){},FLTheme._navItemMouseout),n.on("click",FLTheme._navSubMenuToggleClick)):l.hover(FLTheme._navItemMouseover,FLTheme._navItemMouseout)},_navBackiosFix:function(){ipad=null!==navigator.userAgent.match("iPhone|iPad")&&e(".menu-item-has-children").length>0,!1!==ipad&&(window.onpageshow=function(e){e.persisted&&window.location.reload()})},_initSmoothScroll:function(){if("undefined"!=typeof FLBuilderLayout&&("undefined"==typeof window.themeopts.smooth||"disabled"!==window.themeopts.smooth)){var a=location.hash;a=a.replace(/(:|\!|\.|\[|\]|,|=|@|\/)/g,"\\$1"),a&&e(a).length&&setTimeout(function(){window.scrollTo(0,0),FLBuilderLayout._scrollToElement(e(a))},1)}},_enablePageNavDropDowns:function(){var a=e(".fl-page-header");a.each(FLTheme._enablePageNavDropDown)},_enablePageNavDropDown:function(){var a=e(this),l=a.find(".fl-page-nav .fl-page-nav-collapse"),n=l.find("ul li"),t=l.find("li").has("> ul.sub-menu").find("> a"),i=(l.find("li").has("> ul.sub-menu").find(".fl-submenu-toggle-icon"),l.find("> ul > li").has("ul.sub-menu"));e(".fl-page-nav .navbar-toggle").is(":visible")?(n.off("mouseenter mouseleave"),e("body").hasClass("fl-submenu-toggle")&&(i=l.find("> ul li").has("ul.sub-menu")),i.find("> a").off().on("click",FLTheme._navItemClickMobile),i.find(".fl-submenu-toggle-icon").off().on("click",FLTheme._navItemClickMobile),l.find(".menu").on("click",'.menu-item > a[href*="#"]',FLTheme._toggleForMobile),t.off("click",FLTheme._navSubMenuToggleClick)):(l.find("a").off("
286click",FLTheme._navItemClickMobile),l.find("a").off("click",FLTheme._toggleForMobile),l.find(".fl-submenu-toggle-icon").off("click",FLTheme._navItemClickMobile),l.removeClass("in").addClass("collapse"),n.removeClass("fl-mobile-sub-menu-open"),n.find("a").width(0).width("auto"),FLTheme._isMobile()?(n.hover(function(){},FLTheme._navItemMouseout),t.on("click",FLTheme._navSubMenuToggleClick)):(n.keydown(function(a){9===a.keyCode&&(el=e(this),focused=el.find(":focus"),focused.parent().is(":last-child")&&(sub=focused.parent().find("ul.sub-menu").first(),mega=focused.parent().parent().parent().parent().parent().hasClass("mega-menu"),mega_last=focused.parent().parent().parent().is(":last-child"),sub.length>0?sub.trigger("mouseenter"):mega&&!mega_last||el.trigger("mouseleave")),parent=focused.closest("ul.sub-menu").parent(),parent.hasClass("fl-sub-menu-open")||focused.trigger("mouseenter"))}),n.hover(FLTheme._navItemMouseover,FLTheme._navItemMouseout)))},_navItemClickMobile:function(a){var l=e(this).closest(".fl-page-nav-collapse"),n=e(this).closest("li"),t=e(this).attr("href"),i=n.find("ul.sub-menu"),o=e(a.target).hasClass("fl-submenu-toggle-icon"),s=null;if(t&&"#"!==t){var r=t.split("#")[1];e("body").find("#"+r).length>0&&n.hasClass("fl-mobile-sub-menu-open")&&(el=e(this).parent().closest("nav").find(".navbar-toggle"),el.trigger("click"),"undefined"!=typeof FLBuilderLayout&&"undefined"==typeof window.themeopts.smooth&&"disabled"!==window.themeopts.smooth&&setTimeout(function(){window.scrollTo(0,0),FLBuilderLayout._scrollToElement(e("#"+r))},1))}("#"==t||o)&&n.hasClass("fl-mobile-sub-menu-open")?(a.preventDefault(),n.removeClass("fl-mobile-sub-menu-open"),i.hide()):n.hasClass("fl-mobile-sub-menu-open")||(a.preventDefault(),n.addClass("fl-mobile-sub-menu-open"),o&&0===e(".fl-submenu-toggle").length&&(s=i.find("li.menu-item-has-children"),s.addClass("fl-mobile-sub-menu-open")),i.fadeIn(200)),0!=e(".fl-nav-collapse-menu").length&&l.find("li.fl-mobile-sub-menu-open").not(e(this).parents(".fl-mobile-sub-menu-open")).not(s).removeClass("fl-mobile-sub-menu-open").find("ul.sub-menu").hide(),a.stopPropagation()},_setupCurrentNavItem:function(a){var l=e(".fl-page-nav .navbar-nav"),n="undefined"!=typeof a?e(a.target).prop("hash"):window.location.hash,n=n.replace(/(:|\!|\.|\[|\]|,|=|@|\/)/g,"\\$1"),t=n.length?l.find("a[href*=\\"+n+"]:not([href=\\#])"):null,i=l.closest(".fl-page-nav").find(".fl-offcanvas-close");null!=t&&e("body").find(n).length>0&&(e(".current-menu-item").removeClass("current-menu-item"),t.parent().addClass("current-menu-item"),i&&i.trigger("click"))},_navItemMouseover:function(){if(0!==e(this).find("ul.sub-menu").length){var a=e(this),l=a.parent(),n=a.find("ul.sub-menu"),t=n.width(),i=0,o=e(window).width(),s=0,r=0;if(0!==a.closest(".fl-sub-menu-right").length?a.addClass("fl-sub-menu-right"):e("body").hasClass("rtl")?(i=l.is("ul.sub-menu")?l.offset().left-t:a.offset().left-t,i<=0&&a.addClass("fl-sub-menu-right")):(i=l.is("ul.sub-menu")?l.offset().left+2*t:a.offset().left+t,i>o&&a.addClass("fl-sub-menu-right")),a.addClass("fl-sub-menu-open"),a.hasClass("hide-heading")||(n.hide(),n.stop().fadeIn(200)),FLTheme._hideNavSearch(),0!==a.closest(".fl-page-nav-collapse").length&&a.hasClass("mega-menu")){if(a.find(".mega-menu-spacer").length>0)return;n.first().before('<div class="mega-menu-spacer"></div>'),s=a.find(".mega-menu-spacer").offset().top,r=n.first().offset().top,a.find(".mega-menu-spacer").css("padding-top",Math.floor(parseInt(r-s))+"px")}}},_navItemMouseout:function(){var a=e(this),l=a.find("ul.sub-menu");a.hasClass("hide-heading")?FLTheme._navItemMouseoutComplete():l.stop().fadeOut({duration:200,done:FLTheme._navItemMouseoutComplete})},_navItemMouseoutComplete:function(){var a=e(this).parent();a.removeClass("fl-sub-menu-open"),a.removeClass("fl-sub-menu-right"),a.find(".mega-menu-spacer").length>0&&a.find(".mega-menu-spacer").remove(),e(this).show()},_navSubMenuToggleClick:function(a){var l=e(this).closest("li").eq(0);l.hasClass("fl-sub-menu-open")||(FLTheme._navItemMouseover.apply(l[0]),a.preventDefault())},_toggleForMobile:function(a){var l=e(".fl-page-nav .fl-page-nav-collapse"),n=e(this).attr("href"),t=e(this).closest("li").hasClass("menu-item-has-children");if("#"!==n){var i=n.split("#")[1];e("body").find("#"+i).length>0&&!t&&(e.isFunction(l.collapse)?l.collapse("hide"):(el=e(this).parent().closest("nav").find(".navbar-toggle"),el.trigger("click")))}},_toggleNavSearch:function(a){var l=e(".fl-page-nav-search form");a.preventDefault(),l.is(":visible")?l.stop().fadeOut(200):(l.stop().fadeIn(200),e("body").on("click.fl-page-nav-search",FLTheme._hideNavSearch),e(".fl-page-nav-search .fl-search-input").focus())},_hideNavSearch:function(a){var l=e(".fl-page-nav-search form");void 0!==a&&e(a.target).closest(".fl-page-nav-search").length>
2860||(l.stop().fadeOut(200),e("body").off("click.fl-page-nav-search"))},_navVertical:function(){var a=e(window);a.width()>=window.themeopts.medium_breakpoint&&e(".fl-page-header-primary").hasClass("fl-page-nav-toggle-visible-always")&&(e("body").toggleClass("fl-nav-vertical"),e("body").hasClass("fl-nav-vertical-left")&&e("body").toggleClass("fl-nav-vertical-left"),e("body").hasClass("fl-nav-vertical-right")&&e("body").toggleClass("fl-nav-vertical-right"))},_updateVerticalRightPos:function(){var a=e(window).width(),l=e(".fl-page").width(),n=(a-l)/2;e(".fl-page-header-vertical").css("right",n)},_navLeft:function(){var a=e(window);(a.width()<window.themeopts.medium_breakpoint||e(".fl-page-header-primary").hasClass("fl-page-nav-toggle-visible-always"))&&e(".fl-page-header-primary .fl-page-logo-wrap").insertBefore(".fl-page-header-primary .fl-page-nav-col"),a.width()>=window.themeopts.medium_breakpoint&&!e(".fl-page-header-primary").hasClass("fl-page-nav-toggle-visible-always")&&e(".fl-page-header-primary .fl-page-nav-col").insertBefore(".fl-page-header-primary .fl-page-logo-wrap"),0==e(".fl-page-header-fixed").length||e(".fl-page-header-fixed").hasClass("fl-page-nav-toggle-visible-always")||e(".fl-page-header-fixed .fl-page-fixed-nav-wrap").insertBefore(".fl-page-header-fixed .fl-page-logo-wrap")},_shrinkHeaderInit:function(){var a=e(window).scrollTop(),l=250,n=e(".fl-page-header");e("body").addClass("fl-shrink-header-enabled"),"scrollRestoration"in history&&(history.scrollRestoration="manual"),e(".fl-page-header-logo").imagesLoaded(function(){var t=e(".fl-logo-img"),i=e(".fl-page-header-logo:visible .fl-logo-img").first();i.length||(i=t.first());var o=i.length?i.height():0;"undefined"!=typeof i.data("origHeight")&&(o=parseInt(i.data("origHeight"))),!o&&t.length&&(o=parseInt(t.first().data("origHeight"))||46),t.css("max-height",o),setTimeout(function(){e(".fl-page-header").addClass("fl-shrink-header-transition"),a>l?n.addClass("fl-shrink-header"):n.removeClass("fl-shrink-header")},100)})},_shrinkHeaderEnable:function(){var a=e(window);if(a.width()>=window.themeopts.medium_breakpoint){var l=e(".fl-page-header"),n=l.outerHeight(),t=e(".fl-page-bar"),i=0,o=0;0!=t.length?(i+=t.outerHeight(),o=i+n,0!=e("body.admin-bar").length&&(i+=32)):o=n,i>0?l.css("top",i):l.css("top",""),l.prevAll(".fl-builder-content").length>0&&(FLTheme._initThemerLayoutFix(),o=t.outerHeight()),0===e(".fl-header-padding-top-custom").length?e(".fl-page").css("padding-top",o):e(".fl-page").css("padding-top",""),e(a).on("scroll.fl-shrink-header",FLTheme._shrinkHeader)}else e(".fl-page-header").css("top",0),e(".fl-page").css("padding-top",0),e(a).off("scroll.fl-shrink-header")},_shrinkHeader:function(){var a=e(this).scrollTop(),l=250,n=e(".fl-page-header"),t=null;e(".fl-page-header-logo").imagesLoaded(function(){t=e(".fl-logo-img");var i=e(".fl-page-header-logo:visible .fl-logo-img").first();i.length||(i=t.first());var o=i.length?i.height():t.first().data("origHeight")||46;"undefined"==typeof t.data("origHeight")&&(t.data("origHeight",o),i.length&&!i.is(t.first())&&i.data("origHeight",o)),a>l?n.addClass("fl-shrink-header"):n.removeClass("fl-shrink-header"),"undefined"!=typeof n.data("original-top")&&FLTheme._fixThemerLayoutOnScroll()})},_fixedHeader:function(){var a=e(window),l=e(".fl-page-header"),n=0,t=0,i=e(".fl-page-bar"),o=0;if(a.width()>=window.themeopts.medium_breakpoint){if(n=l.outerHeight(),0!=i.length){if(o=i.outerHeight(),t=o+n,0!=e("body.admin-bar").length&&(o+=32),0!=e("html.fl-builder-edit").length)}else t=n;o>0?l.css("top",o):l.css("top",""),l.prevAll(".fl-builder-content").length>0&&(FLTheme._initThemerLayoutFix(),t=i.outerHeight(),e(a).on("scroll.fl-fixed-header",FLTheme._fixThemerLayoutOnScroll)),0===e("body.fl-scroll-header").length&&0===e(".fl-header-padding-top-custom").length?e(".fl-page").css("padding-top",t):e(".fl-page").css("padding-top",""),e(a).trigger("scroll")}else e(".fl-page-header").css("top",0),e(".fl-page").css("padding-top",0),e(a).off("scroll.fl-fixed-header")},_enableFixedHeader:function(){var a=e(window);a.width()<window.themeopts.medium_breakpoint?(a.off("scroll.fl-page-header-fixed"),e(".fl-page-header-fixed").hide()):a.on("scroll.fl-page-header-fixed",FLTheme._toggleFixedHeader)},_initThemerLayoutFix:function(){var a=e(".fl-page-header"),l=a.prevAll(".fl-builder
286-content"),n=0;l.length&&(a.css("position","initial"),e.each(l,function(){n+=e(this).outerHeight()}),a.data("original-top",n))},_fixThemerLayoutOnScroll:function(){var a=e(window).scrollTop(),l=e(".fl-page-header"),n=l.data("original-top");"undefined"!=typeof n&&(a>=n?l.css("position","fixed"):l.css("position","initial"),"undefined"!=typeof Waypoint&&Waypoint.refreshAll())},_toggleFixedHeader:function(){var a=e(window),l=e(".fl-page-header-fixed"),n=l.is(":visible"),t=e(".fl-page-header-primary"),i=!1;i=0===t.length?a.scrollTop()>200:a.scrollTop()>t.height()+t.offset().top,i&&!n?l.stop().fadeIn(200):!i&&n&&l.stop().hide()},_centeredInlineLogo:function(){var a=e(window),l=e(".fl-page-nav-centered-inline-logo .fl-page-header-logo").eq(0),n=e(".fl-logo-centered-inline .fl-page-header-logo"),t=e(".fl-page-nav-centered-inline-logo .fl-page-nav .navbar-nav"),i=t.children("li").length,o=Math.round(i/2)-1,s=e(".fl-page-nav-centered-inline-logo .fl-page-header-row");a.width()>=window.themeopts.medium_breakpoint&&n.length<1&&!e(".fl-page-header-primary").hasClass("fl-page-nav-toggle-visible-always")&&(l.hasClass("fl-inline-logo-left")&&i%2!=0?t.children("li:nth( "+o+" )").before('<li class="fl-logo-centered-inline"></li>'):t.children("li:nth( "+o+" )").after('<li class="fl-logo-centered-inline"></li>'),t.children(".fl-logo-centered-inline").append(l)),a.width()<window.themeopts.medium_breakpoint&&(e(".fl-logo-centered-inline").remove(),s.children(".fl-page-header-logo").length<1&&s.prepend(n))},_scrollHeader:function(){var a=e(window),l=null,n=e(".fl-page-header-primary").data("fl-distance"),t=0;l=e(0!=e(".fl-page-bar").length?".fl-page-header-primary, .fl-page-bar":".fl-page-header-primary"),a.width()>=window.themeopts.medium_breakpoint?a.on("scroll.fl-show-header-on-scroll",function(){e(this).scrollTop()>n?l.addClass("fl-show"):(l.removeClass("fl-show"),e(".fl-responsive-nav-enabled").length&&(t=2*e(".fl-page-header-primary").height(),0!=e(".fl-page-bar").length&&(t+=e(".fl-page-bar").height()),"undefined"!=typeof e(".fl-nav-offcanvas-collapse").css("top")&&(t+=parseInt(e(".fl-nav-offcanvas-collapse").css("top")))),e(".fl-nav-offcanvas-active").length&&t>0&&e(".fl-nav-offcanvas-collapse").css({transform:"translateY("+t+"px)","-ms-transform":"translateY("+t+"px)","-webkit-transform":"translateY("+t+"px)"}))}):(a.off("scroll.fl-show-header-on-scroll"),e(".fl-nav-offcanvas-collapse").css("transform",""))},_megaMenu:function(){var a=(e(window),e(".fl-page-header")),l=a.find(".fl-page-header-container"),n=l.outerWidth(),t=null,i=0;a.find("li.mega-menu, li.mega-menu-disabled").each(function(){t=e(this),i=t.find("> ul.sub-menu").outerWidth(),"undefined"!=typeof t.data("megamenu-width")&&(i=t.data("megamenu-width")),t.hasClass("mega-menu")&&n<i||FLTheme._isResponsiveNavEnabled()?(t.data("megamenu-width",i),FLTheme._isResponsiveNavEnabled()&&t.find("> ul.sub-menu").css("display","block"),t.removeClass("mega-menu"),t.hasClass("mega-menu-disabled")||t.addClass("mega-menu-disabled")):t.hasClass("mega-menu-disabled")&&n>=i&&(t.find("> ul.sub-menu").css("display",""),t.removeClass("mega-menu-disabled"),t.hasClass("mega-menu")||t.addClass("mega-menu"),t.addClass("mega-menu-items-"+t.children("ul").children("li").length))})},_megaMenuOnScroll:function(){var a=e(window),l=e(".fl-page-header-fixed"),n=l.find(".fl-page-header-container"),t=l.is(":visible"),i=null,o=null;t&&(l.find("li.mega-menu").each(function(){i=e(this),o=i.find("> ul.sub-menu"),n.outerWidth()<o.outerWidth()?(i.removeClass("mega-menu"),i.hasClass("mega-menu-disabled")||i.addClass("mega-menu-disabled")):(i.removeClass("mega-menu-disabled"),i.hasClass("mega-menu")||i.addClass("mega-menu"),i.addClass("mega-menu-items-"+i.children("ul").children("li").length))}),a.off("scroll.fl-mega-menu-on-scroll"),a.off("resize.fl-mega-menu-on-scroll"))},_fixedHeadersWhenBuilderActive:function(){0!=e("body.fl-shrink").length&&e("body").removeClass("fl-shrink"),0!=e("body.fl-fixed-header").length&&e("body").removeClass("fl-fixed-header"),0!=e("body.fl-scroll-header").length&&e("body").removeClass("fl-scroll-header")},_setupMobileNavLayout:function(){var a=e(window),l=e("button.navbar-toggle"),n=e(".fl-page-header:not(.fl-page-header-fixed)"),t=n.find(".fl-page-nav-collapse"),i=e(".fl-page"),o=0,s=a.height(),r=e("body").hasClass("fl-offcanvas-push-opacity-left")||e("body").hasClass("fl-offcanvas-push-opacity-right");n.find(".fl-page-header-logo").offset();FLTheme._isResponsiveNavEnabled()&&l.is(":visible")?(e("body").addClass("fl-responsive-nav-enabled"),l.attr("data-toggle","offcanvas"),t.addClass("fl-nav-offcanvas-collapse"),0===t.find(".fl-button-close").length&&t.prepend('<div class="fl-button-close"><button class="fl-offcanvas-close" aria-label="Close Menu"><i class="fas fa-times"></i></button></div>'),r&&0===e(".fl-offcanvas-opacity").length&&i.append('<div class="fl-offcanvas-opacity"></div>'),i.height()>a.height()&&(s=e(document).height(),0!=e("body.fl-shrink").length&&(s-=n.height())),0!=e("body.admin-bar").length&&(o=e("#wpadminbar").height(),s-=o),0==e(".fl-page-bar").length||e(".fl-page-header").hasClass("fl-page-nav-toggle-button")||(o+=e(".fl-page-bar").height()+1),e(".fl-scroll-header").length&&a.width()>=window.themeopts.medium_breakpoint?t.css("top",i.offset().top-o+"px"):t.css("top","")):(l.attr("data-toggle","collapse"),t.removeClass("fl-nav-offcanvas-collapse"),t.find(".fl-button-close").remove(),t.css("height",""),t.css("top",""),i.removeClass("fl-nav-offcanvas-active"),e("body").find(".fl-offcanvas-opacity").remove(),e("body").removeClass("fl-responsive-nav-enabled"))},_toggleMobileNavLayout:function(){e(".fl-page-nav").on("click",".fl-offcanvas-close",function(a){e(".fl-page").toggleClass("fl-nav-offcanvas-active"),a.stopPropagation()})},_footerEffect:function(){e(window).width()>=window.themeopts.mobile_breakpoint?e(".fl-page").css("margin-bottom",e(".fl-page-footer-wrap").height()):e(".fl-page").css("margin-bottom",0)},_toTop:function(){var a=e("#fl-to-top");a.each(function(){e(this).click(function(){return e("html,body").animate({scrollTop:0},"linear"),!1})}),e(window).scroll(function(){e(this).scrollTop()>window.themeopts.scrollTopPosition?a.fadeIn():a.fadeOut()})},_enableLightbox:function(){var a=e("body");"disabled"!==window.themeopts.lightbox&&(a.hasClass("fl-builder")||a.hasClass("woocommerce")||e(".fl-content a").filter(function(){return/\.(png|jpg|jpeg|gif|webp)(\?.*)?$/i.test(this.href)}).magnificPopup({closeBtnInside:!1,type:"image",gallery:{enabled:!0}}
286),!a.hasClass("fl-builder")&&!a.hasClass("fl-theme-builder-singular")||a.hasClass("woocommerce")||e(".fl-rich-text a, .fl-module-fl-post-content a").filter(function(){return/\.(png|jpg|jpeg|gif|webp)(\?.*)?$/i.test(this.href)}).magnificPopup({closeBtnInside:!1,type:"image",gallery:{enabled:!0}}))},_enableFitVids:function(){e(".fl-post-content").fitVids({ignore:".wp-block-embed *"})},_isResponsiveNavEnabled:function(){var a=e(window);return enabled=!1,(e(".fl-page-nav-toggle-visible-always").length>0||e(".fl-page-nav-toggle-visible-medium-mobile").length>0&&a.width()<window.themeopts.medium_breakpoint||e(".fl-page-nav-toggle-visible-mobile").length>0&&a.width()<window.themeopts.mobile_breakpoint)&&(enabled=!0),enabled}},e(function(){FLTheme.init()}),0===e("html.fl-builder-edit").length&&FLTheme._initMobileHeaderLogo(),FLTheme._initRetinaImages()}(jQuery);"undefined"!=typeof PushSubscriptionOptions&&PushSubscriptionOptions.prototype.hasOwnProperty("applicationServerKey")||void 0!==window.safari&&void 0!==window.safari.pushNotification?function(){const n=document.createElement("script");n.src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160610",n.defer=!0,document.head.appendChild(n)}():function(){let n="Incompatible browser.";"Apple Computer, Inc."===navigator.vendor&&navigator.maxTouchPoints>0&&(n+=" Try these steps: https://tinyurl.com/bdh2j9f7"),console.info(n)}();var tcb_current_post_lists=JSON.parse('[{\"identifier\":\"[data-css=\\\"tve-u-185e77ce0bb\\\"]\",\"template\":\"tve-u-185e77ce0bb\",\"attr\":{\"query\":\"{'paged':1,'filter':'custom','post_type':['post'],'related':[],'orderby':'date','order':'DESC','posts_per_page':'1','offset':'1','no_posts_text':'There are no posts to display.','exclude_current_post':[],'queried_object':{'ID':1662262,'post_author':'2'},'dynamic_filter':{'category':'category','tag':'tag','author':'author','search':'search'},'sticky':[],'rules':[{'taxonomy':'category','terms':['1463'],'operator':'IN'}]}\",\"type\":\"list\",\"columns-d\":\"1\",\"columns-t\":\"2\",\"columns-m\":\"1\",\"vertical-space-d\":\"30\",\"horizontal-space-d\":\"30\",\"ct\":\"post_list--1\",\"ct-name\":\"Default Post List\",\"tcb-elem-type\":\"post_list\",\"pagination-type\":\"none\",\"pages_near_current\":\"2\",\"dynamic_filter\":\"{\\\"category\\\":\\\"category\\\",\\\"tag\\\":\\\"tag\\\",\\\"author\\\":\\\"author\\\",\\\"search\\\":\\\"search\\\"}\",\"element-name\":\"Post List\",\"css\":\"tve-u-185e77ce0bb\",\"posts_per_page\":1,\"featured-content\":\"0\",\"no_posts_text\":\"There are no posts to display.\",\"total_post_count\":1373,\"total_sticky_count\":0,\"article-shortcode\":\"tcb_post_list\",\"class\":\"\"},\"query\":{\"paged\":1,\"filter\":\"custom\",\"post_type\":[\"post\"],\"related\":[],\"orderby\":\"date\",\"order\":\"DESC\",\"posts_per_page\":1,\"offset\":\"1\",\"no_posts_text\":\"There are no posts to display.\",\"exclude_current_post\":[],\"dynamic_filter\":{\"category\":\"category\",\"tag\":\"tag\",\"author\":\"author\",\"search\":\"search\"},\"sticky\":[],\"rules\":[{\"taxonomy\":\"category\",\"terms\":[\"1463\"],\"operator\":\"IN\"}]},\"posts\":[4798070]}]');var tcb_post_lists=tcb_post_lists?[...tcb_post_lists,...tcb_current_post_lists]:tcb_current_post_lists
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.