/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"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]},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={},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});
(function($){"use strict";if('undefined'===typeof $){if('console'in window){window.console.info('Too much lightness, Featherlight needs jQuery.');}
return;}
if($.fn.jquery.match(/-ajax/)){if('console'in window){window.console.info('Featherlight needs regular jQuery, not the slim version.');}
return;}
function Featherlight($content,config){if(this instanceof Featherlight){this.id=Featherlight.id++;this.setup($content,config);this.chainCallbacks(Featherlight._callbackChain);}else{var fl=new Featherlight($content,config);fl.open();return fl;}}
var opened=[],pruneOpened=function(remove){opened=$.grep(opened,function(fl){return fl!==remove&&fl.$instance.closest('body').length>0;});return opened;};function slice(obj,set){var r={};for(var key in obj){if(key in set){r[key]=obj[key];delete obj[key];}}
return r;}
var iFrameAttributeSet={allow:1,allowfullscreen:1,frameborder:1,height:1,longdesc:1,marginheight:1,marginwidth:1,mozallowfullscreen:1,name:1,referrerpolicy:1,sandbox:1,scrolling:1,src:1,srcdoc:1,style:1,webkitallowfullscreen:1,width:1};function parseAttrs(obj,prefix){var attrs={},regex=new RegExp('^'+prefix+'([A-Z])(.*)');for(var key in obj){var match=key.match(regex);if(match){var dasherized=(match[1]+match[2].replace(/([A-Z])/g,'-$1')).toLowerCase();attrs[dasherized]=obj[key];}}
return attrs;}
var eventMap={keyup:'onKeyUp',resize:'onResize'};var globalEventHandler=function(event){$.each(Featherlight.opened().reverse(),function(){if(!event.isDefaultPrevented()){if(false===this[eventMap[event.type]](event)){event.preventDefault();event.stopPropagation();return false;}}});};var toggleGlobalEvents=function(set){if(set!==Featherlight._globalHandlerInstalled){Featherlight._globalHandlerInstalled=set;var events=$.map(eventMap,function(_,name){return name+'.'+Featherlight.prototype.namespace;}).join(' ');$(window)[set?'on':'off'](events,globalEventHandler);}};Featherlight.prototype={constructor:Featherlight,namespace:'featherlight',targetAttr:'data-featherlight',variant:null,resetCss:false,background:null,openTrigger:'click',closeTrigger:'click',filter:null,root:'body',openSpeed:250,closeSpeed:250,closeOnClick:'background',closeOnEsc:true,closeIcon:'&#10005;',loading:'',persist:false,otherClose:null,beforeOpen:$.noop,beforeContent:$.noop,beforeClose:$.noop,afterOpen:$.noop,afterContent:$.noop,afterClose:$.noop,onKeyUp:$.noop,onResize:$.noop,type:null,contentFilters:['jquery','image','html','ajax','iframe','text'],setup:function(target,config){if(typeof target==='object'&&target instanceof $===false&&!config){config=target;target=undefined;}
var self=$.extend(this,config,{target:target}),css=!self.resetCss?self.namespace:self.namespace+'-reset',$background=$(self.background||['<div class="'+css+'-loading '+css+'">','<div class="'+css+'-content">','<button class="'+css+'-close-icon '+self.namespace+'-close" aria-label="Close">',self.closeIcon,'</button>','<div class="'+self.namespace+'-inner">'+self.loading+'</div>','</div>','</div>'].join('')),closeButtonSelector='.'+self.namespace+'-close'+(self.otherClose?','+self.otherClose:'');self.$instance=$background.clone().addClass(self.variant);self.$instance.on(self.closeTrigger+'.'+self.namespace,function(event){if(event.isDefaultPrevented()){return;}
var $target=$(event.target);if(('background'===self.closeOnClick&&$target.is('.'+self.namespace))||'anywhere'===self.closeOnClick||$target.closest(closeButtonSelector).length){self.close(event);event.preventDefault();}});return this;},getContent:function(){if(this.persist!==false&&this.$content){return this.$content;}
var self=this,filters=this.constructor.contentFilters,readTargetAttr=function(name){return self.$currentTarget&&self.$currentTarget.attr(name);},targetValue=readTargetAttr(self.targetAttr),data=self.target||targetValue||'';var filter=filters[self.type];if(!filter&&data in filters){filter=filters[data];data=self.target&&targetValue;}
data=data||readTargetAttr('href')||'';if(!filter){for(var filterName in filters){if(self[filterName]){filter=filters[filterName];data=self[filterName];}}}
if(!filter){var target=data;data=null;$.each(self.contentFilters,function(){filter=filters[this];if(filter.test){data=filter.test(target);}
if(!data&&filter.regex&&target.match&&target.match(filter.regex)){data=target;}
return!data;});if(!data){if('console'in window){window.console.error('Featherlight: no content filter found '+(target?' for "'+target+'"':' (no target specified)'));}
return false;}}
return filter.process.call(self,data);},setContent:function($content){this.$instance.removeClass(this.namespace+'-loading');this.$instance.toggleClass(this.namespace+'-iframe',$content.is('iframe'));this.$instance.find('.'+this.namespace+'-inner').not($content).slice(1).remove().end().replaceWith($.contains(this.$instance[0],$content[0])?'':$content);this.$content=$content.addClass(this.namespace+'-inner');return this;},open:function(event){var self=this;self.$instance.hide().appendTo(self.root);if((!event||!event.isDefaultPrevented())&&self.beforeOpen(event)!==false){if(event){event.preventDefault();}
var $content=self.getContent();if($content){opened.push(self);toggleGlobalEvents(true);self.$instance.fadeIn(self.openSpeed);self.beforeContent(event);return $.when($content).always(function($content){self.setContent($content);self.afterContent(event);}).then(self.$instance.promise()).done(function(){self.afterOpen(event);});}}
self.$instance.detach();return $.Deferred().reject().promise();},close:function(event){var self=this,deferred=$.Deferred();if(self.beforeClose(event)===false){deferred.reject();}else{if(0===pruneOpened(self).length){toggleGlobalEvents(false);}
self.$instance.fadeOut(self.closeSpeed,function(){self.$instance.detach();self.afterClose(event);deferred.resolve();});}
return deferred.promise();},resize:function(w,h){if(w&&h){this.$content.css('width','').css('height','');var ratio=Math.max(w/(this.$content.parent().width()-1),h/(this.$content.parent().height()-1));if(ratio>1){ratio=h/Math.floor(h/ratio);this.$content.css('width',''+w/ratio+'px').css('height',''+h/ratio+'px');}}},chainCallbacks:function(chain){for(var name in chain){this[name]=$.proxy(chain[name],this,$.proxy(this[name],this));}}};$.extend(Featherlight,{id:0,autoBind:'[data-featherlight]',defaults:Featherlight.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(elem){return elem instanceof $&&elem;},process:function(elem){return this.persist!==false?$(elem):$(elem).clone(true);}},image:{regex:/\.(png|jpg|jpeg|gif|tiff?|bmp|svg)(\?\S*)?$/i,process:function(url){var self=this,deferred=$.Deferred(),img=new Image(),$img=$('<img src="'+url+'" alt="" class="'+self.namespace+'-image" />');img.onload=function(){$img.naturalWidth=img.width;$img.naturalHeight=img.height;deferred.resolve($img);};img.onerror=function(){deferred.reject($img);};img.src=url;return deferred.promise();}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(html){return $(html);}},ajax:{regex:/./,process:function(url){var self=this,deferred=$.Deferred();var $container=$('<div></div>').load(url,function(response,status){if(status!=="error"){deferred.resolve($container.contents());}
deferred.fail();});return deferred.promise();}},iframe:{process:function(url){var deferred=new $.Deferred();var $content=$('<iframe/>');var css=parseAttrs(this,'iframe');var attrs=slice(css,iFrameAttributeSet);$content.hide().attr('src',url).attr(attrs).css(css).on('load',function(){deferred.resolve($content.show());}).appendTo(this.$instance.find('.'+this.namespace+'-content'));return deferred.promise();}},text:{process:function(text){return $('<div>',{text:text});}}},functionAttributes:['beforeOpen','afterOpen','beforeContent','afterContent','beforeClose','afterClose'],readElementConfig:function(element,namespace){var Klass=this,regexp=new RegExp('^data-'+namespace+'-(.*)'),config={};if(element&&element.attributes){$.each(element.attributes,function(){var match=this.name.match(regexp);if(match){var val=this.value,name=$.camelCase(match[1]);if($.inArray(name,Klass.functionAttributes)>=0){val=new Function(val);}else{try{val=JSON.parse(val);}
catch(e){}}
config[name]=val;}});}
return config;},extend:function(child,defaults){var Ctor=function(){this.constructor=child;};Ctor.prototype=this.prototype;child.prototype=new Ctor();child.__super__=this.prototype;$.extend(child,this,defaults);child.defaults=child.prototype;return child;},attach:function($source,$content,config){var Klass=this;if(typeof $content==='object'&&$content instanceof $===false&&!config){config=$content;$content=undefined;}
config=$.extend({},config);var namespace=config.namespace||Klass.defaults.namespace,tempConfig=$.extend({},Klass.defaults,Klass.readElementConfig($source[0],namespace),config),sharedPersist;var handler=function(event){var $target=$(event.currentTarget);var elemConfig=$.extend({$source:$source,$currentTarget:$target},Klass.readElementConfig($source[0],tempConfig.namespace),Klass.readElementConfig(event.currentTarget,tempConfig.namespace),config);var fl=sharedPersist||$target.data('featherlight-persisted')||new Klass($content,elemConfig);if(fl.persist==='shared'){sharedPersist=fl;}else if(fl.persist!==false){$target.data('featherlight-persisted',fl);}
if(elemConfig.$currentTarget.blur){elemConfig.$currentTarget.blur();}
fl.open(event);};$source.on(tempConfig.openTrigger+'.'+tempConfig.namespace,tempConfig.filter,handler);return{filter:tempConfig.filter,handler:handler};},current:function(){var all=this.opened();return all[all.length-1]||null;},opened:function(){var klass=this;pruneOpened();return $.grep(opened,function(fl){return fl instanceof klass;});},close:function(event){var cur=this.current();if(cur){return cur.close(event);}},_onReady:function(){var Klass=this;if(Klass.autoBind){var $autobound=$(Klass.autoBind);$autobound.each(function(){Klass.attach($(this));});$(document).on('click',Klass.autoBind,function(evt){if(evt.isDefaultPrevented()){return;}
var $cur=$(evt.currentTarget);var len=$autobound.length;$autobound=$autobound.add($cur);if(len===$autobound.length){return;}
var data=Klass.attach($cur);if(!data.filter||$(evt.target).parentsUntil($cur,data.filter).length>0){data.handler(evt);}});}},_callbackChain:{onKeyUp:function(_super,event){if(27===event.keyCode){if(this.closeOnEsc){$.featherlight.close(event);}
return false;}else{return _super(event);}},beforeOpen:function(_super,event){$(document.documentElement).addClass('with-featherlight');this._previouslyActive=document.activeElement;this._$previouslyTabbable=$("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]").not('[tabindex]').not(this.$instance.find('button'));this._$previouslyWithTabIndex=$('[tabindex]').not('[tabindex="-1"]');this._previousWithTabIndices=this._$previouslyWithTabIndex.map(function(_i,elem){return $(elem).attr('tabindex');});this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr('tabindex',-1);if(document.activeElement.blur){document.activeElement.blur();}
return _super(event);},afterClose:function(_super,event){var r=_super(event);var self=this;this._$previouslyTabbable.removeAttr('tabindex');this._$previouslyWithTabIndex.each(function(i,elem){$(elem).attr('tabindex',self._previousWithTabIndices[i]);});this._previouslyActive.focus();if(Featherlight.opened().length===0){$(document.documentElement).removeClass('with-featherlight');}
return r;},onResize:function(_super,event){this.resize(this.$content.naturalWidth,this.$content.naturalHeight);return _super(event);},afterContent:function(_super,event){var r=_super(event);this.$instance.find('[autofocus]:not([disabled])').focus();this.onResize(event);return r;}}});$.featherlight=Featherlight;$.fn.featherlight=function($content,config){Featherlight.attach(this,$content,config);return this;};$(document).ready(function(){Featherlight._onReady();});}(jQuery));
// /* ------------------------------------------------------------------------ */
// /* Javascripts
//  /* ------------------------------------------------------------------------ */
//
// (function(factory)
// {
// 	'use strict';
// 	if (typeof define === 'function' && define.amd)
// 	{
// 		define(['jquery'], factory);
// 	}
// 	else if (typeof exports !== 'undefined')
// 	{
// 		module.exports = factory(require('jquery'));
// 	}
// 	else
// 	{
// 		factory(jQuery);
// 	}
// }(function($)
// {
// 	var layers = [],
// 			world = false,
// 			lang = '',
// 			viewport = false,
// 			p = 400,
// 			worldXAngle = 0,
// 			worldYAngle = 0;
//
// 	$(document).ready(function()
// 	{
// 		if (document.getElementById('viewport'))
// 		{
// 			world = document.getElementById('world');
// 			viewport = document.getElementById('viewport');
// 			lang = $(viewport).attr('lang');
// 			viewport.style.webkitPerspective = p;
// 			viewport.style.MozPerspective = p;
// 			viewport.style.oPerspective = p;
// 			viewport.style.msPerspective = p;
//
// 			generate();
// 			update();
// 		}
// 	});
//
// 	function createCloud(className)
// 	{
// 		var stageHeight = jQuery(window).height();
// 		var stageHeightHalf = stageHeight / 2;
// 		var div = document.createElement('div');
// 		div.className = 'cloudBase ' + className + ' ' + lang;
// 		var contentSection = jQuery(world).closest('section');
// 		jQuery(div).click(function() {
// 			// var jQuery('<img>').attr('src', 'wp-content/themes/fob_child/images/' + lang + '/' + className + '.jpg')
// 			let backgroundImage = $(contentSection).find('.cloud-info-image.' + className);
// 			if(backgroundImage.length === 0)
// 				backgroundImage = jQuery('<div>')
// 					.attr('style', 'background-image: url(\'wp-content/themes/fob_child/images/' + lang + '/' + className + '.jpg\');')
// 					.addClass('cloud-info-image ' + className)
// 					.click(function()
// 					{
// 						jQuery(this).remove();
// 						jQuery('#' + className).hide();
// 					})
// 					.prependTo(contentSection);
// 			backgroundImage.fadeIn();
// 			jQuery('#' + className).fadeIn();
// 		});
//
// 		world.appendChild(div);
//
// 		for (var j = 0; j < 4; j++)
// 		{
// 			var cloud = document.createElement('img');
// 			cloud.style.opacity = 0;
// 			// var r = Math.floor(Math.random() * 5) + 1;
// 			var src = 'wp-content/themes/fob_child/images/cloud.png';
// 			(function(img)
// 			{
// 				img.addEventListener('load', function()
// 				{
// 					img.style.opacity = .8;
// 				})
// 			})(cloud);
// 			cloud.setAttribute('src', src);
// 			cloud.className = 'cloudLayer';
//
// 			var x = stageHeightHalf - ( Math.random() * stageHeight );
// 			var y = stageHeightHalf - ( Math.random() * stageHeight );
// 			// var z = 100 - ( Math.random() * 200 );
// 			var z = 0;
// 			var a = Math.random() * 360;
// 			var s = Math.random() * (0.6 - 0.3) + 0.3; //size
// 			var speed = .04 * Math.random() + 0.01;
// 			x *= .2;
// 			y *= .2;
// 			cloud.data = {
// 				x     : x,
// 				y     : y,
// 				z     : z,
// 				a     : a,
// 				s     : s,
// 				speed : speed
// 			};
// 			var t = 'translateX( ' + x + 'px ) translateY( ' + y + 'px ) translateZ( ' + z + 'px ) rotateZ( ' + a + 'deg ) scale( ' + s + ' )';
// 			cloud.style.webkitTransform = t;
// 			cloud.style.MozTransform = t;
// 			cloud.style.oTransform = t;
// 			cloud.style.msTransform = t;
//
// 			div.appendChild(cloud);
// 			layers.push(cloud);
// 		}
// 		var svgImage = document.createElement('img');
// 		svgImage.src = './wp-content/themes/fob_child/images/' + lang + '/' + className + '.svg';
// 		svgImage.className = 'wolkentext ' + 'wolkentext-' + className;
// 		div.appendChild(svgImage);
// 		return div;
// 	}
//
// 	function generate()
// 	{
// 		if (world.hasChildNodes())
// 		{
// 			while (world.childNodes.length >= 1)
// 			{
// 				world.removeChild(world.firstChild);
// 			}
// 		}
//
// 		var infoTexte = jQuery('.cloud-info-text');
// 		jQuery.each(infoTexte, function()
// 		{
//
// 			let className = jQuery(this).attr('id');
// 			let closeButton = document.createElement('div');
// 			closeButton.className = 'close';
// 			jQuery(closeButton).prependTo(this);
// 			jQuery(closeButton).click(function() {
// 						// jQuery(this).fadeOut();
// 				jQuery('.cloud-info-image.' + className).remove();
// 						jQuery('#' + className).hide();
// 					});
//
// 			createCloud(jQuery(this).attr('id'));
// 		});
// 	}
//
// 	function update()
// 	{
// 		for (var j = 0; j < layers.length; j++)
// 		{
// 			var layer = layers[j];
// 			layer.data.a += layer.data.speed;
// 			//var t = 'translateX( ' + layer.data.x + 'px ) translateY( ' + layer.data.y + 'px ) translateZ( ' + layer.data.z + 'px ) rotateY( ' + ( -worldYAngle ) + 'deg ) rotateX( ' + ( -worldXAngle ) + 'deg ) rotateZ( ' + layer.data.a + 'deg ) scale( ' + layer.data.s + ')';
// 			var t = 'translateZ( ' + layer.data.z + 'px ) rotateY( ' + ( -worldYAngle ) + 'deg ) rotateX( ' + ( -worldXAngle ) + 'deg ) rotateZ( ' + layer.data.a + 'deg ) scale( ' + layer.data.s + ')';
// 			layer.style.webkitTransform = t;
// 			layer.style.MozTransform = t;
// 			layer.style.oTransform = t;
// 			layer.style.msTransform = t;
// 		}
// 		requestAnimationFrame(update);
// 	}
// }))
// /* ------------------------------------------------------------------------ */
// /* EOF
//  /* ------------------------------------------------------------------------ */;
jQuery(document).ready(function($){let map=$('#id_map');$('#mapToggle').click(function(){map.toggleClass('hidden')
$('#mapnavitext').toggleClass('hidden');$('#mainnavitext').toggleClass('hidden');$('#id_main_nav').toggleClass('hidden');})
var navItems=$('.overlapblackbg, #id_wsmenuexpandermain .slideLeft, #id_navigation.slideLeft');var wsmenucontent=$('.wsmenucontent');var navToggle=$('#navToggle');var menuopen=function(){$(navToggle).removeClass('expanderclose').addClass('expanderopen');$(navItems).removeClass('menuclose').addClass('menuopen');}
var menuclose=function(){$(navToggle).removeClass('expanderopen').addClass('expanderclose');$(navItems).removeClass('menuopen').addClass('menuclose');}
$('#navToggle, #navToggle2').click(function(){if(wsmenucontent.hasClass('menuopen')){$(menuclose)}
else{$(menuopen)}});wsmenucontent.click(function(){if(wsmenucontent.hasClass('menuopen')){$(menuclose)}});$('#id_navigation .wsmenu-list li').has('.wsmenu-submenu, .wsmenu-submenu-sub, .wsmenu-submenu-sub-sub').prepend('<span class="wsmenu-click"><i class="wsmenu-arrow fa fa-angle-down"></i></span>');$('#id_navigation .wsmenu-list li').has('.megamenu').prepend('<span class="wsmenu-click"><i class="wsmenu-arrow fa fa-angle-down"></i></span>');$('#id_navigation .wsmenu-mobile').click(function(){$('#id_navigation .wsmenu-list').slideToggle('slow');});$('#id_navigation .wsmenu-click').click(function(){$(this).siblings('.wsmenu-submenu').slideToggle('slow');$(this).children('.wsmenu-arrow').toggleClass('wsmenu-rotate');$(this).siblings('.wsmenu-submenu-sub').slideToggle('slow');$(this).siblings('.wsmenu-submenu-sub-sub').slideToggle('slow');$(this).siblings('.megamenu').slideToggle('slow');});$('#id_navigation .menu-item-has-children .klapper-only').click(function(){$(this).siblings('.wsmenu-submenu').slideToggle('slow');$(this).prev().children('.wsmenu-arrow').toggleClass('wsmenu-rotate');$(this).siblings('.wsmenu-submenu-sub').slideToggle('slow');$(this).siblings('.wsmenu-submenu-sub-sub').slideToggle('slow');$(this).siblings('.megamenu').slideToggle('slow');});$('#id_navigation .wsmenu-list > li').has('.wsmenu-submenu').addClass('menu-arrow-1');$('#id_navigation .wsmenu-list > li > .wsmenu-submenu > li').has('.wsmenu-submenu-sub').addClass('menu-arrow-2');$('#id_navigation .wsmenu-list > li > .wsmenu-submenu > li > .wsmenu-submenu-sub > li').has('.wsmenu-submenu-sub-sub').addClass('menu-arrow-2');$('#id_navigation .wsmenu-list > li:last-child .wsmenu-submenu ul').addClass('dropleft');$('#id_navigation .wsmenu-list > li').has('.megamenu').addClass('menu-arrow-1');});
jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});;
var min_w=1500;var video_width_original=1280;var video_height_original=720;var vid_ratio=1280/720;jQuery(document).ready(function($){$('.accordion').each(function(){var acc=$(this).attr("rel")*2;$(this).find('.accordion-inner:nth-child('+acc+')').show();$(this).find('.accordion-inner:nth-child('+acc+')').prev().addClass("active");});$('.accordion .accordion-title').click(function(){if($(this).next().is(':hidden')){$(this).parent().find('.accordion-title').removeClass('active').next().slideUp(200);$(this).toggleClass('active').next().slideDown(200);}
return false;});$(".alert-message .close").click(function(){$(this).parent().animate({'opacity':'0'},300).slideUp(300);return false;});$('.skillbar').each(function(){dataperc=$(this).attr('data-perc'),$(this).find('.skill-percentage').animate({"width":dataperc+"%"},dataperc*20);});$('div.tabset').tabset();if($(".toggle .toggle-title").hasClass('active')){$(".toggle .toggle-title.active").closest('.toggle').find('.toggle-inner').show();}
$(".toggle .toggle-title").click(function(){if($(this).hasClass('active')){$(this).removeClass("active").closest('.toggle').find('.toggle-inner').slideUp(200);}
else{$(this).addClass("active").closest('.toggle').find('.toggle-inner').slideDown(200);}});});(function($){$.fn.tabset=function(){var $tabsets=$(this);$tabsets.each(function(i){var $tabs=$('li.tab a',this);$tabs.click(function(e){var $this=$(this);panels=$.map($tabs,function(val,i){return $(val).attr('href');});$(panels.join(',')).hide();$tabs.removeClass('selected');$this.addClass('selected').blur();$($this.attr('href')).show();e.preventDefault();return false;}).first().triggerHandler('click');});};})(jQuery);;
(function(e){function t(){var e=location.href;hashtag=e.indexOf("#prettyPhoto")!==-1?decodeURI(e.substring(e.indexOf("#prettyPhoto")+1,e.length)):false;return hashtag}function n(){if(typeof theRel=="undefined")return;location.hash=theRel+"/"+rel_index+"/"}function r(){if(location.href.indexOf("#prettyPhoto")!==-1)location.hash="prettyPhoto"}function i(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n="[\\?&]"+e+"=([^&#]*)";var r=new RegExp(n);var i=r.exec(t);return i==null?"":i[1]}e.prettyPhoto={version:"3.1.5"};e.fn.prettyPhoto=function(s){function g(){e(".pp_loaderIcon").hide();projectedTop=scroll_pos["scrollTop"]+(d/2-a["containerHeight"]/2);if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find(".pp_content").animate({height:a["contentHeight"],width:a["contentWidth"]},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:v/2-a["containerWidth"]/2<0?0:v/2-a["containerWidth"]/2,width:a["containerWidth"]},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(a["height"]).width(a["width"]);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);if(isSet&&S(pp_images[set_position])=="image"){$pp_pic_holder.find(".pp_hoverContainer").show()}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}if(settings.allow_expand){if(a["resized"]){e("a.pp_expand,a.pp_contract").show()}else{e("a.pp_expand").hide()}}if(settings.autoplay_slideshow&&!m&&!f)e.prettyPhoto.startSlideshow();settings.changepicturecallback();f=true});C();s.ajaxcallback()}function y(t){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){e(".pp_loaderIcon").show();t()})}function b(t){t>1?e(".pp_nav").show():e(".pp_nav").hide()}function w(e,t){resized=false;E(e,t);imageWidth=e,imageHeight=t;if((p>v||h>d)&&doresize&&settings.allow_resize&&!u){resized=true,fitting=false;while(!fitting){if(p>v){imageWidth=v-200;imageHeight=t/e*imageWidth}else if(h>d){imageHeight=d-200;imageWidth=e/t*imageHeight}else{fitting=true}h=imageHeight,p=imageWidth}if(p>v||h>d){w(p,h)}E(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(h),containerWidth:Math.floor(p)+settings.horizontal_padding*2,contentHeight:Math.floor(l),contentWidth:Math.floor(c),resized:resized}}function E(t,n){t=parseFloat(t);n=parseFloat(n);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(t);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(t).appendTo(e("body")).css({position:"absolute",top:-1e4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=34?36:detailsHeight;$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(t);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(e("body")).css({position:"absolute",top:-1e4});titleHeight+=$pp_title.height();$pp_title.remove();l=n+detailsHeight;c=t;h=l+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();p=t}function S(e){if(e.match(/youtube\.com\/watch/i)||e.match(/youtu\.be/i)){return"youtube"}else if(e.match(/vimeo\.com/i)){return"vimeo"}else if(e.match(/\b.mov\b/i)){return"quicktime"}else if(e.match(/\b.swf\b/i)){return"flash"}else if(e.match(/\biframe=true\b/i)){return"iframe"}else if(e.match(/\bajax=true\b/i)){return"ajax"}else if(e.match(/\bcustom=true\b/i)){return"custom"}else if(e.substr(0,1)=="#"){return"inline"}else{return"image"}}function x(){if(doresize&&typeof $pp_pic_holder!="undefined"){scroll_pos=T();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=d/2+scroll_pos["scrollTop"]-contentHeight/2;if(projectedTop<0)projectedTop=0;if(contentHeight>d)return;$pp_pic_holder.css({top:projectedTop,left:v/2+scroll_pos["scrollLeft"]-contentwidth/2})}}function T(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}}}function N(){d=e(window).height(),v=e(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height(e(document).height()).width(v)}function C(){if(isSet&&settings.overlay_gallery&&S(pp_images[set_position])=="image"){itemWidth=52+5;navWidth=settings.theme=="facebook"||settings.theme=="pp_default"?50:30;itemsPerPage=Math.floor((a["containerWidth"]-100-navWidth)/itemWidth);itemsPerPage=itemsPerPage<pp_images.length?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()}else{$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show()}galleryWidth=itemsPerPage*itemWidth;fullGalleryWidth=pp_images.length*itemWidth;$pp_gallery.css("margin-left",-(galleryWidth/2+navWidth/2)).find("div:first").width(galleryWidth+5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected");goToPage=Math.floor(set_position/itemsPerPage)<totalPage?Math.floor(set_position/itemsPerPage):totalPage;e.prettyPhoto.changeGalleryPage(goToPage);$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")}else{$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")}}function k(t){if(settings.social_tools)facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href));settings.markup=settings.markup.replace("{pp_social}","");e("body").append(settings.markup);$pp_pic_holder=e(".pp_pic_holder"),$ppt=e(".ppt"),$pp_overlay=e("div.pp_overlay");if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var n=0;n<pp_images.length;n++){if(!pp_images[n].match(/\b(jpg|jpeg|png|gif)\b/gi)){classname="default";img_src=""}else{classname="";img_src=pp_images[n]}toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>"}toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_gallery=e(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){e.prettyPhoto.changeGalleryPage("next");e.prettyPhoto.stopSlideshow();return false});$pp_gallery.find(".pp_arrow_previous").click(function(){e.prettyPhoto.changeGalleryPage("previous");e.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=52+5;$pp_gallery_li.each(function(t){e(this).find("a").click(function(){e.prettyPhoto.changePage(t);e.prettyPhoto.stopSlideshow();return false})})}if(settings.slideshow){$pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>');$pp_pic_holder.find(".pp_nav .pp_play").click(function(){e.prettyPhoto.startSlideshow();return false})}$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:e(document).height(),width:e(window).width()}).bind("click",function(){if(!settings.modal)e.prettyPhoto.close()});e("a.pp_close").bind("click",function(){e.prettyPhoto.close();return false});if(settings.allow_expand){e("a.pp_expand").bind("click",function(t){if(e(this).hasClass("pp_expand")){e(this).removeClass("pp_expand").addClass("pp_contract");doresize=false}else{e(this).removeClass("pp_contract").addClass("pp_expand");doresize=true}y(function(){e.prettyPhoto.open()});return false})}$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){e.prettyPhoto.changePage("previous");e.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){e.prettyPhoto.changePage("next");e.prettyPhoto.stopSlideshow();return false});x()}s=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:false,opacity:.8,show_title:true,allow_resize:true,allow_expand:true,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:false,wmode:"opaque",autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,overlay_gallery_max:30,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'<div class="pp_pic_holder"> 						<div class="ppt"> </div> 						<div class="pp_top"> 							<div class="pp_left"></div> 							<div class="pp_middle"></div> 							<div class="pp_right"></div> 						</div> 						<div class="pp_content_container"> 							<div class="pp_left"> 							<div class="pp_right"> 								<div class="pp_content"> 									<div class="pp_loaderIcon"></div> 									<div class="pp_fade"> 										<a href="#" class="pp_expand" title="Expand the image">Expand</a> 										<div class="pp_hoverContainer"> 											<a class="pp_next" href="#">next</a> 											<a class="pp_previous" href="#">previous</a> 										</div> 										<div id="pp_full_res"></div> 										<div class="pp_details"> 											<div class="pp_nav"> 												<a href="#" class="pp_arrow_previous">Previous</a> 												<p class="currentTextHolder">0/0</p> 												<a href="#" class="pp_arrow_next">Next</a> 											</div> 											<p class="pp_description"></p> 											<div class="pp_social">{pp_social}</div> 											<a class="pp_close" href="#">Close</a> 										</div> 									</div> 								</div> 							</div> 							</div> 						</div> 						<div class="pp_bottom"> 							<div class="pp_left"></div> 							<div class="pp_middle"></div> 							<div class="pp_right"></div> 						</div> 					</div> 					<div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"> 								<a href="#" class="pp_arrow_previous">Previous</a> 								<div> 									<ul> 										{gallery} 									</ul> 								</div> 								<a href="#" class="pp_arrow_next">Next</a> 							</div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:"",social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},s);var o=this,u=false,a,f,l,c,h,p,d=e(window).height(),v=e(window).width(),m;doresize=true,scroll_pos=T();e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){x();N()});if(s.keyboard_shortcuts){e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(t){if(typeof $pp_pic_holder!="undefined"){if($pp_pic_holder.is(":visible")){switch(t.keyCode){case 37:e.prettyPhoto.changePage("previous");t.preventDefault();break;case 39:e.prettyPhoto.changePage("next");t.preventDefault();break;case 27:if(!settings.modal)e.prettyPhoto.close();t.preventDefault();break}}}})}e.prettyPhoto.initialize=function(){settings=s;if(settings.theme=="pp_default")settings.horizontal_padding=16;theRel=e(this).attr(settings.hook);galleryRegExp=/\[(?:.*)\]/;isSet=galleryRegExp.exec(theRel)?true:false;pp_images=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).attr("href")}):e.makeArray(e(this).attr("href"));pp_titles=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).find("img").attr("alt")?e(t).find("img").attr("alt"):""}):e.makeArray(e(this).find("img").attr("alt"));pp_descriptions=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).attr("title")?e(t).attr("title"):""}):e.makeArray(e(this).attr("title"));if(pp_images.length>settings.overlay_gallery_max)settings.overlay_gallery=false;set_position=jQuery.inArray(e(this).attr("href"),pp_images);rel_index=isSet?set_position:e("a["+settings.hook+"^='"+theRel+"']").index(e(this));k(this);if(settings.allow_resize)e(window).bind("scroll.prettyphoto",function(){x()});e.prettyPhoto.open();return false};e.prettyPhoto.open=function(t){if(typeof settings=="undefined"){settings=s;pp_images=e.makeArray(arguments[0]);pp_titles=arguments[1]?e.makeArray(arguments[1]):e.makeArray("");pp_descriptions=arguments[2]?e.makeArray(arguments[2]):e.makeArray("");isSet=pp_images.length>1?true:false;set_position=arguments[3]?arguments[3]:0;k(t.target)}if(settings.hideflash)e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden");b(e(pp_images).size());e(".pp_loaderIcon").show();if(settings.deeplinking)n();if(settings.social_tools){facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href));$pp_pic_holder.find(".pp_social").html(facebook_like_link)}if($ppt.is(":hidden"))$ppt.css("opacity",0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+e(pp_images).size());if(typeof pp_descriptions[set_position]!="undefined"&&pp_descriptions[set_position]!=""){$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position]))}else{$pp_pic_holder.find(".pp_description").hide()}movie_width=parseFloat(i("width",pp_images[set_position]))?i("width",pp_images[set_position]):settings.default_width.toString();movie_height=parseFloat(i("height",pp_images[set_position]))?i("height",pp_images[set_position]):settings.default_height.toString();u=false;if(movie_height.indexOf("%")!=-1){movie_height=parseFloat(e(window).height()*parseFloat(movie_height)/100-150);u=true}if(movie_width.indexOf("%")!=-1){movie_width=parseFloat(e(window).width()*parseFloat(movie_width)/100-150);u=true}$pp_pic_holder.fadeIn(function(){settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined"?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(" ");imgPreloader="";skipInjection=false;switch(S(pp_images[set_position])){case"image":imgPreloader=new Image;nextImage=new Image;if(isSet&&set_position<e(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image;if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){a=w(imgPreloader.width,imgPreloader.height);g()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");e.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case"youtube":a=w(movie_width,movie_height);movie_id=i("v",pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split("youtu.be/");movie_id=movie_id[1];if(movie_id.indexOf("?")>0)movie_id=movie_id.substr(0,movie_id.indexOf("?"));if(movie_id.indexOf("&")>0)movie_id=movie_id.substr(0,movie_id.indexOf("&"))}movie="http://www.youtube.com/embed/"+movie_id;i("rel",pp_images[set_position])?movie+="?rel="+i("rel",pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":a=w(movie_width,movie_height);movie_id=pp_images[set_position];var t=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/;var n=movie_id.match(t);movie="http://player.vimeo.com/video/"+n[3]+"?title=0&byline=0&portrait=0";if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=a["width"]+"/embed/?moog_width="+a["width"];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,a["height"]).replace(/{path}/g,movie);break;case"quicktime":a=w(movie_width,movie_height);a["height"]+=15;a["contentHeight"]+=15;a["containerHeight"]+=15;toInject=settings.quicktime_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":a=w(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":a=w(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{path}/g,frame_url);break;case"ajax":doresize=false;a=w(movie_width,movie_height);doresize=true;skipInjection=true;e.get(pp_images[set_position],function(e){toInject=settings.inline_markup.replace(/{content}/g,e);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;g()});break;case"custom":a=w(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=e(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(e("body")).show();doresize=false;a=w(e(myClone).width(),e(myClone).height());doresize=true;e(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,e(pp_images[set_position]).html());break}if(!imgPreloader&&!skipInjection){$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;g()}});return false};e.prettyPhoto.changePage=function(t){currentGalleryPage=0;if(t=="previous"){set_position--;if(set_position<0)set_position=e(pp_images).size()-1}else if(t=="next"){set_position++;if(set_position>e(pp_images).size()-1)set_position=0}else{set_position=t}rel_index=set_position;if(!doresize)doresize=true;if(settings.allow_expand){e(".pp_contract").removeClass("pp_contract").addClass("pp_expand")}y(function(){e.prettyPhoto.open()})};e.prettyPhoto.changeGalleryPage=function(e){if(e=="next"){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0}else if(e=="previous"){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage}else{currentGalleryPage=e}slide_speed=e=="next"||e=="previous"?settings.animation_speed:0;slide_to=currentGalleryPage*itemsPerPage*itemWidth;$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)};e.prettyPhoto.startSlideshow=function(){if(typeof m=="undefined"){$pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){e.prettyPhoto.stopSlideshow();return false});m=setInterval(e.prettyPhoto.startSlideshow,settings.slideshow)}else{e.prettyPhoto.changePage("next")}};e.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){e.prettyPhoto.startSlideshow();return false});clearInterval(m);m=undefined};e.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;e.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find("object,embed").css("visibility","hidden");e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){e(this).remove()});$pp_overlay.fadeOut(settings.animation_speed,function(){if(settings.hideflash)e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible");e(this).remove();e(window).unbind("scroll.prettyphoto");r();settings.callback();doresize=true;f=false;delete settings})};if(!pp_alreadyInitialized&&t()){pp_alreadyInitialized=true;hashIndex=t();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf("/"));setTimeout(function(){e("a["+s.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)}return this.unbind("click.prettyphoto").bind("click.prettyphoto",e.prettyPhoto.initialize)};})(jQuery);var pp_alreadyInitialized=false;
var wpAjaxUrl='https://www.wiefuerdichgemacht.com/wp-admin/admin-ajax.php';var flBuilderUrl='https://www.wiefuerdichgemacht.com/wp-content/plugins/bb-plugin/';var FLBuilderLayoutConfig={anchorLinkAnimations:{duration:1000,easing:'swing',offset:100},paths:{pluginUrl:'https://www.wiefuerdichgemacht.com/wp-content/plugins/bb-plugin/',wpAjaxUrl:'https://www.wiefuerdichgemacht.com/wp-admin/admin-ajax.php'},breakpoints:{small:768,medium:992,large:1200},waypoint:{offset:80},emptyColWidth:'0%'};(function($){if(typeof FLBuilderLayout!='undefined'){return;}
FLBuilderLayout={init:function(){FLBuilderLayout._destroy();FLBuilderLayout._initClasses();FLBuilderLayout._initBackgrounds();FLBuilderLayout._initRowShapeLayerHeight();if(0===$('.fl-builder-edit').length){FLBuilderLayout._initModuleAnimations();FLBuilderLayout._initAnchorLinks();FLBuilderLayout._initHash();FLBuilderLayout._initForms();FLBuilderLayout._reorderMenu();}
else{FLBuilderLayout._initNestedColsWidth();}},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');}}
if(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=true;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 true;}
return false;},_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('archive')&&$('.fl-builder-content-primary').length>0){body.addClass('fl-builder');}
if(FLBuilderLayout._isTouch()){body.addClass('fl-builder-touch');}
if(FLBuilderLayout._isMobile()){body.addClass('fl-builder-mobile');}
if($(window).width()<FLBuilderLayoutConfig.breakpoints.small){body.addClass('fl-builder-breakpoint-small');}
if($(window).width()>FLBuilderLayoutConfig.breakpoints.small&&$(window).width()<FLBuilderLayoutConfig.breakpoints.medium){body.addClass('fl-builder-breakpoint-medium');}
if($(window).width()>FLBuilderLayoutConfig.breakpoints.medium&&$(window).width()<FLBuilderLayoutConfig.breakpoints.large){body.addClass('fl-builder-breakpoint-large');}
if($(window).width()>FLBuilderLayoutConfig.breakpoints.large){body.addClass('fl-builder-breakpoint-default');}
if(ua.indexOf('Trident/7.0')>-1&&ua.indexOf('rv:11.0')>-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);}
if($('.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);});}},_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';}
content.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'),fallbackTag='',videoTag=null,mp4Tag=null,webmTag=null;if(loaded){return;}
videoTag=$('<video autoplay loop muted playsinline></video>');if('undefined'!=typeof fallback&&''!=fallback){videoTag.attr('poster','data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7')
videoTag.css({backgroundImage:'url("'+fallback+'")',backgroundColor:'transparent',backgroundRepeat:'no-repeat',backgroundSize:'cover',backgroundPosition:'center center',})}
if('undefined'!=typeof mp4&&''!=mp4){mp4Tag=$('<source />');mp4Tag.attr('src',mp4);mp4Tag.attr('type',mp4Type);videoTag.append(mp4Tag);}
if('undefined'!=typeof webm&&''!=webm){webmTag=$('<source />');webmTag.attr('src',webm);webmTag.attr('type',webmType);videoTag.append(webmTag);}
if(!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);}}
else{videoTag.attr('src','')
wrap.append(videoTag);}
wrap.data('loaded',true);},_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'),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')||false
if(fallback){playerWrap.find('iframe').remove()
fallbackTag=$('<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')
playerWrap.append(fallbackTag);fallback_showing=true;}
FLBuilderLayout._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();}
playerWrap.data('YTPlayer',player);FLBuilderLayout._resizeYoutubeBgVideo.apply(playerWrap);event.target.playVideo();if(audioButton.length>0&&!FLBuilderLayout._isMobile()){audioButton.on('click',{button:audioButton,player:player},FLBuilderLayout._toggleBgVideoAudio);}},onStateChange:function(event){if(event.data===1){if(fallback_showing){$('.fl-bg-video-fallback').css('background-image','url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)')}}
if(stateCount<4){stateCount++;}
if(stateCount>1&&(-1===event.data||2===event.data)&&"yes"===enableAudio){player.mute();player.playVideo();audioButton.show();}
if(event.data===YT.PlayerState.ENDED&&1===loop){if(startTime>0){player.seekTo(startTime);}
else{player.playVideo();}}},onError:function(event){console.info('YT Error: '+event.data)
FLBuilderLayout._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')||false
if(!fallback){return false;}
playerWrap.find('iframe').remove()
fallbackTag=$('<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'),videoPlayer=playerWrap.find('.fl-bg-video-player'),enableAudio=playerWrap.data('enable-audio'),audioButton=playerWrap.find('.fl-bg-video-audio'),player,width=playerWrap.outerWidth(),ua=navigator.userAgent;if(typeof Vimeo!=='undefined'&&videoId){player=new Vimeo.Player(videoPlayer[0],{id:videoId,loop:true,title:false,portrait:false,background:true,autopause:false,muted:true});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);}}
player.play().catch(function(error){FLBuilderLayout._onErrorYoutubeVimeo(playerWrap)});if(audioButton.length>0){audioButton.on('click',{button:audioButton,player:player},FLBuilderLayout._toggleBgVideoAudio);}}},_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;}
var 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;}
if(!isRowFullHeight){if(newHeight<wrapHeight){newHeight=wrapHeight;newLeft=-((newWidth-wrapWidth)/2);newWidth=vidHeight?Math.round(vidWidth*wrapHeight/vidHeight):newWidth;}
else{newTop=-((newHeight-wrapHeight)/2);}
vidCSS={left:newLeft+'px',top:newTop+'px',height:newHeight+'px',width:newWidth+'px',}}
vid.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);}
video.parent().data('width',vidWidth);video.parent().data('height',vidHeight);video.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);}},_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+'%';}
if(bodyHeight-nodeTop<winHeight*0.2){offset='100%';}
node.waypoint({offset:offset,handler:FLBuilderLayout._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');}
if(!isNaN(delay)&&delay>0){setTimeout(function(){module.addClass('fl-animated');},delay*1000);}else{setTimeout(function(){module.addClass('fl-animated');},1);}},_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);}
if(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){}}},_initAnchorLinks:function(){$('a').each(FLBuilderLayout._initAnchorLink);},_initAnchorLink:function(){var link=$(this),href=link.attr('href'),loc=window.location,id=null,element=null,flNode=false;if('undefined'!=typeof href&&href.indexOf('#')>-1&&link.closest('svg').length<1){if(loc.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&loc.hostname==this.hostname){try{id=href.split('#').pop();if(!id){return;}
element=$('#'+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);}
if(element.hasClass('fl-accordion-item')){$(link).on('click',FLBuilderLayout._scrollToAccordionOnLinkClick);}
if(element.hasClass('fl-tabs-panel')){$(link).on('click',FLBuilderLayout._scrollToTabOnLinkClick);}}}
catch(e){}}}},_scrollToElementOnLinkClick:function(e,callback){var element=$('#'+$(this).attr('href').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;}
$('html, body').animate({scrollTop:dest},config.duration,config.easing,function(){if('undefined'!=typeof callback){callback();}
if(undefined!=element.attr('id')){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=false;}};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);}
e.preventDefault();}},_initForms:function(){if(!FLBuilderLayout._hasPlaceholderSupport){$('.fl-form-field input').each(FLBuilderLayout._initFormFieldPlaceholderFallback);}
$('.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);field.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.removeClass('fl-form-error');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;}
$(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');}
str=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);
(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>f,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>m,maxdate:()=>z,maxfilesize:()=>$,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>b,mindate:()=>A,minfilesize:()=>j,minitems:()=>w,minlength:()=>g,minnumber:()=>y,number:()=>c,required:()=>n,requiredfile:()=>a,tel:()=>l,time:()=>d,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).every((t=>{if((t=t.trim()).length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field);if(!e.every((t=>{if(""===(t=t.trim()))return!1;try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).every((t=>(t=(t=t.trim()).replaceAll(/[()/.*#\s-]+/g,""),/^[+]?[0-9]+$/.test(t)))))throw new o(this)},c=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))))throw new o(this)},f=function(t){if(!t.getAll(this.field).every((t=>{if(t=t.trim(),!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>{const e=t.trim().match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},m=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field);if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&i<parseInt(this.threshold))throw new o(this)},x=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},y=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},b=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold)))))throw new o(this)},z=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold<t)))))throw new o(this)},j=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),i<parseInt(this.threshold))throw new o(this)},$=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)<i)throw new o(this)},I=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},O=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},E=[],k=t=>[...E].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>I({ruleObj:t,options:e}))),s=k(O);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>I({ruleObj:t,options:e}))),s=k(O);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var F;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>I({ruleObj:t,options:i})));if(!n.length)return new Map;const a=k(O),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{E.push(t)},...null!==(F=window.swv)&&void 0!==F?F:{}}})();
(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return o.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:o,path:c,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),c=r?n+"/"+r:n),"string"==typeof c&&(-1!==t.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),o=t+c),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(o||c||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},o=[];function c(e,t={}){const{target:a,scope:r=e,...o}=t;if(void 0===e.wpcf7?.schema)return;const c={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where( input, textarea, select ):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(c,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const o=t.dataset.name;if(n.has(o)){const{error:t,validInputs:a}=n.get(o);i(e,o),void 0!==t&&s(e,o,t,{scope:r}),l(e,o,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{o.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...o}=null!=n?n:{},c=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",c),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",c),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const o=new FormData(e);t.submitter&&t.submitter.name&&o.append(t.submitter.name,t.submitter.value);const c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(o,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:o};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:o,wpcf7:{endpoint:"feedback",form:e,detail:c}}).then((t=>{const r=n(e,t.status);return c.status=t.status,c.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,c):["sent","failed"].includes(r)&&a(e,`mail${r}`,c),a(e,"submit",c),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:o}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),o.apiResponse=t,a(e,"reset",o)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),o=t(e.getAttribute("data-minimum-value")),c=e.classList.contains("down")?n-a.value.length:a.value.length;e.setAttribute("data-current-value",c),e.innerText=c,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),o&&a.value.length<o?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),o=e.querySelector(`[name="${r}"]`);o&&(o.value=o.defaultValue,a(n,o),t.init&&o.addEventListener("keyup",(e=>{a(n,o)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:c,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})();
var wpa_field_name,wpa_unique_id,wpa_add_test,wpa_hidden_field;jQuery(document).ready(function(){wpa_field_name=wpa_field_info.wpa_field_name;wpa_unique_id=wpa_field_info.wpa_field_value;wpa_add_test=wpa_field_info.wpa_add_test;wpa_hidden_field="<div id='altEmail_container' class='altEmail_container'><label for='alt_s'>Alternative:</label><input type='text' id='alt_s' name='alt_s' ></div><span class='wpa_hidden_field' style='display:none;height:0;width:0;'><label>WPA <input type='text' name='"+wpa_field_name+"' value='"+wpa_unique_id+"' /></label></span>";wpa_add_honeypot_field();if(typeof wpae_add_honeypot_field=='function'){wpae_add_honeypot_field();}
if(wpa_add_test=='yes'){wpa_add_test_block();}});function wpa_act_as_spam(){actiontype=jQuery('span.wpa-button').data('actiontype');if(actiontype=='remove'){wpa_remove_honeypot_field();jQuery('span.wpa-button').data('actiontype','add');jQuery('span.wpa-button').html('Acting as Spam Bot');}else{wpa_add_honeypot_field();jQuery('span.wpa-button').data('actiontype','remove');jQuery('span.wpa-button').html('Act as Spam Bot');}}
function wpa_add_honeypot_field(){jQuery('.bbp-topic-form form').append(wpa_hidden_field);jQuery('.bbp-reply-form form').append(wpa_hidden_field);var commentFormSelectors=['form#commentform','form.ast-commentform','form#fl-comment-form','form.comment-form','.review-form form','form#edd-reviews-form'];jQuery(commentFormSelectors.join(', ')).append(wpa_hidden_field);jQuery('form.wpcf7-form, .wpcf7 form').append(wpa_hidden_field);jQuery('form.wpforms-form').append(wpa_hidden_field);jQuery('.gform_wrapper form').append(wpa_hidden_field);jQuery('.frm_forms form').append(wpa_hidden_field);jQuery('.caldera-grid form').append(wpa_hidden_field);jQuery('.wp-block-toolset-cred-form form').append(wpa_hidden_field);jQuery('form.cred-user-form').append(wpa_hidden_field);jQuery('form.cred-form').append(wpa_hidden_field);jQuery('form.et_pb_contact_form').append(wpa_hidden_field);jQuery('form.fb_form').append(wpa_hidden_field);jQuery('form.elementor-form').append(wpa_hidden_field);jQuery('form.form-contribution').append(wpa_hidden_field);jQuery('form.cart').append(wpa_hidden_field);jQuery('form.frm-fluent-form').append(wpa_hidden_field);jQuery('.ff_conv_app').append(wpa_hidden_field);if(typeof fluent_forms_global_var_1!=='undefined'){fluent_forms_global_var_1.extra_inputs[wpa_field_name]=wpa_unique_id;fluent_forms_global_var_1.extra_inputs['alt_s']='';}
jQuery(wpa_hidden_field).insertAfter('input.wpa_initiator');jQuery('form.spectra-pro-login-form').append(wpa_hidden_field);jQuery('form#loginform').append(wpa_hidden_field);jQuery('form#edd_login_form').append(wpa_hidden_field);jQuery('form.uwp-login-form').append(wpa_hidden_field);}
function wpa_add_test_block(){checkingTest='<div class="wpa-test-msg"><strong>WP Armour ( Only visible to site administrators. Not visible to other users. )</strong><br />This form has a honeypot trap enabled. If you want to act as spam bot for testing purposes, please click the button below.<br/><span class="wpa-button" onclick="wpa_act_as_spam()" data-actiontype="remove">Act as Spam Bot</span></div>';jQuery('.wpa-test-msg').remove();jQuery('span.wpa_hidden_field').after(checkingTest);}
function wpa_remove_honeypot_field(){jQuery('.wpa_hidden_field').remove();jQuery('#altEmail_container, .altEmail_container').remove();if(typeof fluent_forms_global_var_1!=='undefined'){delete fluent_forms_global_var_1.extra_inputs[wpa_field_name];delete fluent_forms_global_var_1.extra_inputs['alt_s'];}};
jQuery(document).ready(function($){$('#id_infobar_toggle').click(function(){$(this).parent().toggleClass('close');});});
(()=>{var o;o=jQuery,window.BorlabsCookie=function(){"use strict";var e,t,n="#BorlabsCookieBox input[type='checkbox']",i="#BorlabsCookieBox",a="#BorlabsCookieBoxWrap",s="#BorlabsCookieBox input[type='checkbox'][name='cookieGroup[]']",c="._brlbs-btn-switch-status",r="data-borlabs-cookie-uid",l="data-borlabs-cookie-consent-history",d=".BorlabsCookie",u={},b={},h={},k={},p={scriptBlockerId:{},jsHandle:{}},f=!1,v={consents:{},expires:null,uid:"anonymous",version:null},g="borlabs-cookie",m={consentSaved:null,codeUnblocked:null,codeUnblockedAfterConsent:null},x=null,C=!1,y=null;function B(o,e){if(e){var t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),n=Array.from(t).filter((function(o){return 0!==o.offsetHeight})),i=n[0],a=n[n.length-1];("Tab"===o.key||9===o.keyCode)&&(o.shiftKey?document.activeElement===i&&(o.preventDefault(),a.focus()):document.activeElement===a&&(o.preventDefault(),i.focus()))}}function w(o){o.addEventListener("keydown",(function(e){return B(e,o)}),!0)}function O(o){o.removeEventListener("keydown",(function(e){return B(e,o)}),!0)}function L(){o(i).attr("aria-modal",!1)}var S,_=function(t){o(i).attr("aria-modal",!0),o("body").addClass("borlabs-position-fix"),w(document.querySelector(".cookie-box")),void 0===t&&(t=!1);var a=o(s),c=null;Object.keys(v.consents).length?(o("[data-borlabs-cookie-group]").each((function(){-1===Object.keys(v.consents).indexOf(this.dataset.borlabsCookieGroup)&&o(this).addClass("borlabs-hide")})),a.length&&"1"===e.boxLayoutAdvanced&&a.each((function(){c=this.value,"string"==typeof this.dataset.borlabsCookieCheckbox&&("object"==typeof v.consents[c]?o(this).prop("checked",!0):o(this).prop("checked",!1))}))):a.length&&a.each((function(){c=this.value,"1"===e.boxLayoutAdvanced&&"1"===e.ignorePreSelectStatus&&!1===f&&"essential"!==c&&(o(this).prop("checked",!1),o(n+"[name='cookies["+c+"][]']").prop("checked",!1).trigger("change"))})),e.blockContent?(o("#BorlabsCookieBox > div").addClass("_brlbs-block-content"),e.animation?(o("#BorlabsCookieBox > div").addClass("_brlbs-bg-animation"),setTimeout((function(){o("#BorlabsCookieBox > div").addClass("_brlbs-bg-dark")}),25)):o("#BorlabsCookieBox > div").addClass("_brlbs-bg-dark")):o("._brlbs-"+e.boxLayout+"-wrap").addClass("_brlbs-position-fixed"),o("#BorlabsCookieBox > div").css("display",""),o("#BorlabsCookieBox > div").addClass("show-cookie-box"),e.animation&&o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).addClass("_brlbs-animated "+e.animationIn+(t&&e.animationDelay?" delay-1s":""));const r=o("#BorlabsCookieBox > div")[0];return r.offsetWidth,r.offsetHeight,o("#CookieBoxSaveButton")[0].focus({preventScroll:!0}),y=o("._brlbs-"+e.boxLayout+"-wrap")[0].offsetWidth+"px",!0},j=function(){return L(),O(document.querySelector(".cookie-box")),e.animation&&(o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).removeClass("delay-1s "),o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).removeClass(e.animationIn),o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).addClass(e.animationOut)),o("#BorlabsCookieBox > div").addClass("borlabs-hide"),e.blockContent?o("#BorlabsCookieBox > div").removeClass("_brlbs-bg-dark"):o("._brlbs-"+e.boxLayout+"-wrap").addClass("_brlbs-position-fixed"),setTimeout((function(){o("._brlbs-"+e.boxLayout+"-wrap").removeAttr("style"),o("._brlbs-"+e.boxLayout+" .cookie-box .container").removeAttr("style"),o("._brlbs-"+e.boxLayout+" .cookie-preference .container").removeAttr("style"),e.animation&&(o("._brlbs-"+e.boxLayout).removeClass("_brlbs-animated"),o("._brlbs-"+e.boxLayout).removeClass("delay-1s"),o("._brlbs-"+e.boxLayout).removeClass(e.animationIn),o("._brlbs-"+e.boxLayout).removeClass(e.animationOut)),o("#BorlabsCookieBox > div").removeClass("show-cookie-box"),e.blockContent&&o("#BorlabsCookieBox > div").removeClass("_brlbs-block-content")}),e.animation?1e3:0),o("body").removeClass("borlabs-position-fix"),!0},D=function(){O(document.querySelector(".cookie-box")),w(document.querySelector(".cookie-preference"));var t=o(s),i=null;t.length&&t.each((function(){i=this.value,Object.keys(v.consents).length?!1===f&&(void 0!==v.consents[i]?(o(this).prop("checked",!0),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").each((function(){-1!==v.consents[i].indexOf(this.value)?o(this).prop("checked",!0):o(this).prop("checked",!1),o(this).trigger("change")}))):(o(this).prop("checked",!1),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").prop("checked",!1).trigger("change"))):("1"===e.ignorePreSelectStatus&&!1===f&&(o(this).prop("checked",!1),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").addClass("borlabs-hide")),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").each((function(){"1"===e.ignorePreSelectStatus&&!1===f&&o(this).prop("checked",!1),o(this).trigger("change")})))})),o("._brlbs-"+e.boxLayout+" .cookie-box .container").animate({height:0,opacity:0},(function(){o("._brlbs-"+e.boxLayout+" .cookie-box").attr("aria-hidden",!0),o("._brlbs-"+e.boxLayout+" .cookie-preference").attr("aria-hidden",!1),o("#CookiePrefSave")[0].focus({preventScroll:!0}),o("._brlbs-"+e.boxLayout+"-wrap").animate({width:"100vw",maxWidth:"box"===e.boxLayout?"768px":"100%"},"box"===e.boxLayout?400:0,(function(){var t=o("._brlbs-"+e.boxLayout+" .cookie-preference .container")[0].scrollHeight;o("._brlbs-"+e.boxLayout+" .cookie-preference .container").animate({height:"80vh",maxHeight:t,opacity:1})}))}))},I=function(){O(document.querySelector(".cookie-preference")),o("._brlbs-"+e.boxLayout+" .cookie-preference .container").animate({height:0,opacity:0},(function(){o("._brlbs-"+e.boxLayout+" .cookie-box").attr("aria-hidden",!1),o("._brlbs-"+e.boxLayout+" .cookie-preference").attr("aria-hidden",!0),o("._brlbs-"+e.boxLayout+"-wrap").animate({maxWidth:"box"===e.boxLayout?y:"100%"},"box"===e.boxLayout?400:0,(function(){var t=o("._brlbs-"+e.boxLayout+" .cookie-box .container")[0].scrollHeight+"px";o("._brlbs-"+e.boxLayout+" .cookie-box .container").animate({height:t,opacity:1})})),o("#CookieBoxSaveButton")[0].focus()}))},T=function(t){return void 0!==t&&t.preventDefault(),o("._brlbs-"+e.boxLayout+" .cookie-preference .container a["+"data-cookie-back]").css("display","none"),o("._brlbs-"+e.boxLayout+" .cookie-preference .container a["+"data-cookie-back] + span._brlbs-separator").css("display","none"),o("._brlbs-"+e.boxLayout+" .cookie-box .container").css("height",0),o("._brlbs-"+e.boxLayout+" .cookie-box .container").css("opacity",0),o("._brlbs-"+e.boxLayout+"-wrap").css({width:"100vw",maxWidth:"box"===e.boxLayout?"768px":"100%"}),_(!1),setTimeout((function(){D()}),500),!0},E=function(){o("[data-cookie-accordion]").on("click","[data-cookie-accordion-target]",(function(e){e.preventDefault();var t=o(this).closest("[data-cookie-accordion]");t.find("[data-cookie-accordion-parent]:visible").length&&(t.find("[data-cookie-accordion-status='hide']").addClass("borlabs-hide"),t.find("[data-cookie-accordion-status='show']").removeClass("borlabs-hide"),t.find("[data-cookie-accordion-parent]:visible").slideUp()),t.find("[data-cookie-accordion-parent='"+this.dataset.cookieAccordionTarget+"']:hidden").length&&(o(this).children("[data-cookie-accordion-status='show']").addClass("borlabs-hide"),o(this).children("[data-cookie-accordion-status='hide']").removeClass("borlabs-hide"),t.find("[data-cookie-accordion-parent='"+this.dataset.cookieAccordionTarget+"']").slideDown())}))},A=function(){var e=o(s),t=null;e.length&&e.each((function(){t=this.value,o(this).prop("checked",!0),o(this).trigger("change"),o(n+"[name='cookies["+t+"][]']").each((function(){o(this).prop("checked",!0),o(this).trigger("change")}))})),N(),j()},U=function(){o(document).on("click",s,(function(){f=!0,this.checked?(o(n+"[name='cookies["+this.value+"][]']").prop("checked",!0).trigger("change"),o(s+"[value='"+this.value+"']").prop("checked",!0),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").removeClass("borlabs-hide")):(o(n+"[name='cookies["+this.value+"][]']").prop("checked",!1).trigger("change"),o(s+"[value='"+this.value+"']").prop("checked",!1),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").addClass("borlabs-hide"))}))},P=function(){o(document).on("click",n+"[name^='cookies']",(function(){f=!0,this.checked&&(o(s+"[value='"+this.dataset.cookieGroup+"']").prop("checked",!0).trigger("change"),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.dataset.cookieGroup+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.dataset.cookieGroup+"']").removeClass("borlabs-hide"))}))},H=function(){!0===this.checked?(o(this).parent().parent().children(c).children().last().css("display","none"),o(this).parent().parent().children(c).children().first().css("display","inline-block")):(o(this).parent().parent().children(c).children().first().css("display","none"),o(this).parent().parent().children(c).children().last().css("display","inline-block"))},N=function(){var t={essential:e.cookies.essential},i=o(s+":checked"),a=o(n+"[name^='cookies']:checked");if(i.length&&(i.each((function(){this.value.length&&new RegExp(/^[a-z-_]{3,}$/).test(this.value)&&"essential"!==this.value&&(t[this.value]=[])})),a.length&&a.each((function(){this.value.length&&"string"==typeof this.dataset.cookieGroup&&new RegExp(/^[a-z-_]{3,}$/).test(this.value)&&new RegExp(/^[a-z-_]{3,}$/).test(this.dataset.cookieGroup)&&t[this.dataset.cookieGroup].push(this.value)}))),Object.keys(v.consents).length)for(var c in v.consents)if(void 0!==t[c])for(var r in v.consents[c])-1===t[c].indexOf(v.consents[c][r])&&K(v.consents[c][r]);else if(void 0!==u[c])for(var l in u[c])K(l);if(Object.keys(v.consents).length)for(var c in v.consents)if(void 0!==t[c])for(var r in v.consents[c])-1===t[c].indexOf(v.consents[c][r])&&Q(c,v.consents[c][r]);else if(void 0!==u[c])for(var l in u[c])Q(c,l);J(t,!1),"1"!==e.reloadAfterConsent&&(V(),F(),Y(),document.dispatchEvent(m.codeUnblockedAfterConsent),document.dispatchEvent(m.codeUnblocked))},R=function(){var o=!1;return"string"==typeof v.version&&(v.version===e.cookieVersion?o=!0:v.consents={}),o},G=function(){if(document.cookie.length)for(var o=document.cookie.split(";"),t=0;t<o.length;t++)try{o[t]=decodeURIComponent(o[t]);var n=o[t].split("="),i=void 0!==n[0]?n[0].trim():"",a=void 0!==n[1]?n[1].trim():"";if(i===g){var s=JSON.parse(decodeURIComponent(a));void 0!==s.domainPath?s.domainPath===e.cookieDomain+e.cookiePath&&(v=s):v=s}}catch(e){console.log("The cookie is spoiled:"),console.dir(o[t]),console.dir(e)}return v},J=function(o,t){var n={},i="",a=[],s=e.cookieLifetime;if(1===Object.keys(o).length&&void 0!==e.cookieLifetimeEssentialOnly&&(s=e.cookieLifetimeEssentialOnly),!1===t||!1===R()){var c=new Date;c.setTime(c.getTime()+24*parseInt(s)*60*60*1e3),i=c.toUTCString()}else i=v.expires;n.consents=o,n.domainPath=e.cookieDomain+e.cookiePath,n.expires=i,n.uid=v.uid,n.version=e.cookieVersion,void 0===n.consents.essential&&(n.consents.essential=e.cookies.essential);var r=!0;1===Object.keys(o).length?(n.uid="anonymous",("anonymous"!==v.uid||1===Object.keys(v.consents).length)&&(r=!1)):"anonymous"===v.uid?(n.uid=$(),1===Object.keys(v.consents).length&&(r=!1)):"anonymous"!==v.uid&&(r=!1),a.push(g+"="+encodeURIComponent(JSON.stringify(n))),""!==e.cookieDomain&&""===e.automaticCookieDomainAndPath&&a.push("domain="+e.cookieDomain),a.push("path="+e.cookiePath),a.push("expires="+i),a.push("SameSite="+e.cookieSameSite),e.cookieSecure&&a.push("secure"),document.cookie=a.join(";"),G(),no(r),ao(r),document.dispatchEvent(m.consentSaved)},M=function(o,t,n){var i,a="",s=[],c="",r=new Date;return null==t||!1===t?""!==e.cookieDomain&&""===e.automaticCookieDomainAndPath&&(a=e.cookieDomain):a=t,void 0===n&&(n=!1),i=function(o,e){var t={name:"",value:""};if(void 0===e&&(e=!1),e&&(o=o.replace("*","")),document.cookie.length)for(var n=document.cookie.split(";"),i=0;i<n.length;i++)try{n[i]=decodeURIComponent(n[i]);var a=n[i].split("="),s=void 0!==a[0]?a[0].trim():"",c=void 0!==a[1]?a[1].trim():"";e?-1!==s.indexOf(o)&&(t.name=s,t.value=c):s===o&&(t.name=s,t.value=c)}catch(o){console.log("The cookie is spoiled:"),console.dir(n[i]),console.dir(o)}return t}(o,n),i.name.length&&(s.push(i.name+"="),""!==a&&s.push("domain="+a),s.push("path="+e.cookiePath),r.setTime(r.getTime()-864e5),c=r.toUTCString(),s.push("expires="+c),document.cookie=s.join(";")),!0},z=function(o,e){return function(o,e){"string"==typeof o&&o.length&&new RegExp(/^[a-z-_]{3,}$/).test(o)&&(void 0===v.consents[o]&&(v.consents[o]=[]),"string"==typeof e&&new RegExp(/^[a-z-_]{3,}$/).test(e)&&-1===v.consents[o].indexOf(e)&&v.consents[o].push(e)),J(v.consents,!0)}(o,e),!0},W=function(o,e){return function(o,e){if("string"==typeof o&&o.length&&new RegExp(/^[a-z-_]{3,}$/).test(o)){var t=!0;"string"==typeof e&&new RegExp(/^[a-z-_]{3,}$/).test(e)&&void 0!==v.consents[o]&&-1!==v.consents[o].indexOf(e)&&(v.consents[o].splice(v.consents[o].indexOf(e),1),t=!1),!0===t&&void 0!==v.consents[o]&&delete v.consents[o]}Object.keys(v.consents).length&&J(v.consents,!0)}(o,e),K(e),Q(o,e),!0},q=function(o){var e=!1;for(var t in v.consents)-1!==v.consents[t].indexOf(o)&&(e=!0);return e},$=function(){function o(){var o="";if("object"==typeof window.crypto){var e=0,t=new Uint32Array(4);for(window.crypto.getRandomValues(t);e<4;e++)o+="abcdefhgihjklmnopqrstuvwxyz0123456789"[t[e]%37]}else o=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return o}return o()+o()+"-"+o()+o()+"-"+o()+o()+"-"+o()+o()},V=function(){for(var e in v.consents)for(var n in v.consents[e]){var i=v.consents[e][n];void 0!==u[e]&&void 0!==u[e][i]&&(void 0!==t[e]&&void 0!==t[e][i]&&(o("body").append(to(t[e][i])),delete t[e][i]),void 0!==u[e][i].optInJS&&(o("body").append(to(u[e][i].optInJS)),u[e][i].optInJS=""))}},F=function(){o("[data-borlabs-cookie-type='cookie-group']").each((function(){if(void 0!==v.consents[this.dataset.borlabsCookieId]){var t;t="javascript"===e.cookieBoxIntegration?to(this.firstChild.innerHTML):to(this.innerHTML),o(this).prev().length?o(this).prev().after(t):o(this).parent().prepend(t),this.parentNode.removeChild(this)}}))},Y=function(){o("[data-borlabs-cookie-type='cookie']").each((function(){for(var t in v.consents)if(-1!==v.consents[t].indexOf(this.dataset.borlabsCookieId)){var n;n="javascript"===e.cookieBoxIntegration?to(this.firstChild.innerHTML):to(this.innerHTML),o(this).prev().length?o(this).prev().after(n):o(this).parent().prepend(n),this.parentNode.removeChild(this)}}))},K=function(o){null===x&&(x=[],C=!0),x.push(o)},Q=function(e,t){if(void 0!==u[e]&&void 0!==u[e][t]&&void 0!==u[e][t].optOutJS){var n=to(u[e][t].optOutJS);void 0!==u[e][t].settings.asyncOptOutCode&&"1"===u[e][t].settings.asyncOptOutCode||(n+="<script>window.BorlabsCookie.optOutDone('"+t+"')<\/script>"),o("body").append(n),u[e][t].optOutJS=""}},X=function(t){t.preventDefault();var n,i,a=o(this).parents(".BorlabsCookie"),s=!1;if(n=a.find("[data-borlabs-cookie-type='content-blocker']")[0].dataset.borlabsCookieId,void 0!==b[n]&&void 0!==b[n].settings.unblockAll&&"1"===b[n].settings.unblockAll&&(s=!0),(i=a.find("input[type='checkbox'][name='unblockAll']")).length&&(s=!!i[0].checked),s)for(var c in o("[data-borlabs-cookie-type='content-blocker'][data-borlabs-cookie-id='"+n+"']").each((function(){Z(o(this).parents(".BorlabsCookie"))})),e.cookies)-1!==e.cookies[c].indexOf(n)&&z(c,n);else Z(a)},Z=function(o){var t=o.find("[data-borlabs-cookie-type='content-blocker']"),n="";if(t.length){var i;n=t[0].dataset.borlabsCookieId,void 0!==b[n].settings.executeGlobalCodeBeforeUnblocking&&"1"===b[n].settings.executeGlobalCodeBeforeUnblocking&&void 0===h[n]&&(b[n].global(b[n]),h[n]=!0),i="javascript"===e.cookieBoxIntegration?to(t[0].firstChild.innerHTML):to(t[0].innerHTML);var a=setInterval((function(){var e=!0;void 0!==k[n]&&(void 0!==k[n].scriptBlockerId&&Object.entries(k[n].scriptBlockerId).forEach((o=>{var t=o[0];!0!==eo(k[n].scriptBlockerId[t],"scriptBlockerId")&&(e=!1)})),void 0!==k[n].jsHandle&&Object.entries(k[n].jsHandle).forEach((o=>{var t=o[0];!0!==eo(k[n].jsHandle[t],"jsHandle")&&(e=!1)}))),!0===e&&(clearInterval(a),o.prev().length?o.prev().after(i):o.parent().prepend(i),void 0!==b[n].settings.executeGlobalCodeBeforeUnblocking&&"0"!==b[n].settings.executeGlobalCodeBeforeUnblocking||void 0===h[n]&&(b[n].global(b[n]),h[n]=!0),b[n].init(o.prev()[0],b[n]),o[0].parentNode.removeChild(o[0]))}),50)}},oo=function(e,t,n){var i=o(e)[0];if(void 0!==i){var a=document.createElement("script");for(var s of i.attributes)-1===s.name.indexOf("borlabs")&&-1===s.name.indexOf("type")&&a.setAttribute(s.name,s.value);"string"==typeof i.dataset.borlabsScriptBlockerSrc?(a.src=i.dataset.borlabsScriptBlockerSrc,a.onload=function(){p[n][t]--,oo(e,t,n)},i.parentNode.insertBefore(a,i),i.parentNode.removeChild(i)):(a.type="text/javascript",a.innerHTML=i.innerHTML,i.parentNode.insertBefore(a,i),i.parentNode.removeChild(i),p[n][t]--,oo(e,t,n))}return!0},eo=function(o,e){var t=!1;return void 0!==p[e][o]&&0===p[e][o]&&(t=!0),t},to=function(o){return decodeURIComponent(Array.prototype.map.call(window.atob(o),(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)})).join(""))},no=function(t){!1===/bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test(navigator.userAgent.toLowerCase())&&o.ajax(e.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"log",language:e.language,cookieData:v,essentialStatistic:t}}).done((function(){e.reloadAfterConsent&&Object.keys(v.consents).length>0&&location.reload(!0),C&&bo()}))},io=function(){o.ajax(e.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"consent_history",language:e.language,uid:v.uid}}).done((function(e){(e=o.parseJSON(e)).length&&o.each(e,(function(e,t){o("["+l+"] table").append("<tr><td>"+t.stamp+"</td><td>"+t.version+"</td><td>"+t.consent+"</td></tr>")}))}))},ao=function(t){e.crossDomainCookie.length&&Object.entries(e.crossDomainCookie).forEach((n=>{var i=e.crossDomainCookie[n[0]];o("body").append('<iframe class="borlabs-hide" src="'+i+"?__borlabsCookieCall=cDC&cookieLang="+e.language+"&cookieData="+encodeURIComponent(JSON.stringify(v))+"&essentialStatistic="+(t?1:0)+'"></iframe>')}))},so=function(){o(".BorlabsCookie [name^='borlabsCookie']").each((function(){q(this.value)?this.checked=!0:this.checked=!1,o(this).trigger("change")})),o(document).on("change",".BorlabsCookie [name^='borlabsCookie']",(function(){this.checked?z(this.dataset.cookieGroup,this.value):W(this.dataset.cookieGroup,this.value)}))},co=window.scrollY||document.documentElement.scrollTop,ro=null,lo=null,uo=document.getElementById("BorlabsCookieBoxWidget");uo&&window.addEventListener("scroll",(function(){(S=window.scrollY||document.documentElement.scrollTop)>co?ro="up":S<co&&(ro="down"),ro!==lo&&("up"===ro?(uo.classList.add("_brlbs-hide-mobile"),lo=ro):"down"===ro&&(uo.classList.remove("_brlbs-hide-mobile"),lo=ro)),co=S}));var bo=function(){C=!1,0===x.length&&(x=null,e.reloadAfterOptOut&&window.location.reload())};return{addConsent:z,allocateScriptBlockerToContentBlocker:function(o,e,t){"scriptBlockerId"!==t&&"jsHandle"!==t||(void 0===k[o]&&(k[o]={scriptBlockerId:[],jsHandle:[]}),-1===k[o][t].indexOf(e)&&k[o][t].push(e))},callWhenLoaded:function(o,e){var t=function(){!0===window.hasOwnProperty(o)?e(e):window.setTimeout(t,1e3)};t()},checkCookieConsent:q,checkCookieGroupConsent:function(o){var e=!1;return void 0!==v.consents[o]&&(e=!0),e},deleteCookie:M,getCookie:G,hideCookieBox:j,init:function(n,i,c,h){return"about:blank"!==window.location.href&&(e=o.extend({ajaxURL:"",language:"en",animation:"1",animationDelay:"",animationIn:"fadeIn",animationOut:"fadeOut",blockContent:"",boxLayout:"box",boxLayoutAdvanced:"0",automaticCookieDomainAndPath:"",cookieDomain:"",cookiePath:"",cookieSameSite:"Lax",cookieSecure:!0,cookieLifetime:"365",crossDomainCookie:[],cookieBeforeConsent:"",cookiesForBots:"1",cookieVersion:"1",hideCookieBoxOnPages:[],respectDoNotTrack:"",reloadAfterConsent:"",reloadAfterOptOut:"1",showCookieBox:"1",cookieBoxIntegration:"javascript",ignorePreSelectStatus:"1",cookies:[]},n),t=h,u=i,b=c,m.consentSaved=document.createEvent("Event"),m.consentSaved.initEvent("borlabs-cookie-consent-saved",!0,!0),m.codeUnblocked=document.createEvent("Event"),m.codeUnblocked.initEvent("borlabs-cookie-code-unblocked",!0,!0),m.codeUnblockedAfterConsent=document.createEvent("Event"),m.codeUnblockedAfterConsent.initEvent("borlabs-cookie-code-unblocked-after-consent",!0,!0),G(),function(){if(Object.keys(u).length)for(var o in u)if(Object.keys(u[o]).length)for(var e in u[o])if(void 0!==u[o][e].settings&&void 0!==u[o][e].settings.blockCookiesBeforeConsent&&"1"===u[o][e].settings.blockCookiesBeforeConsent&&void 0!==u[o][e].cookieNameList&&!1===q(e))for(var t in u[o][e].cookieNameList)M(t,null,-1!==t.indexOf("*")),M(t,"",-1!==t.indexOf("*"))}(),e.cookieBeforeConsent&&(null!==v.uid&&"anonymous"!==v.uid||(v.uid=$()),"function"==typeof Object&&(void 0===Object.entries&&(Object.entries=function(o){for(var e=Object.keys(o),t=e.length,n=new Array(t);t--;)n[t]=[e[t],o[e[t]]];return n}),0===Object.entries(v.consents).length&&null===v.expires&&(function(){var o={},t=[],n=e.cookieLifetimeEssentialOnly,i=new Date;i.setTime(i.getTime()+24*parseInt(n)*60*60*1e3);var a=i.toUTCString();o.consents={},o.domainPath=e.cookieDomain+e.cookiePath,o.expires=a,o.uid=v.uid,o.version=null,t.push(g+"="+encodeURIComponent(JSON.stringify(o))),""!==e.cookieDomain&&""===e.automaticCookieDomainAndPath&&t.push("domain="+e.cookieDomain),t.push("path="+e.cookiePath),t.push("expires="+a),t.push("SameSite="+e.cookieSameSite),e.cookieSecure&&t.push("secure"),document.cookie=t.join(";"),G()}(),no(!0)))),o(a).length&&"SCRIPT"===o(a)[0].tagName&&o(a).after(o(a).html()),o(document).on("click","[data-cookie-accept]",(function(o){o.preventDefault(),N(),j()})),o(document).on("click","[data-cookie-accept-all]",(function(o){o.preventDefault(),A()})),o(document).on("click","[data-cookie-back]",(function(o){o.preventDefault(),I()})),o(document).on("click","[data-cookie-individual]",(function(o){o.preventDefault(),D()})),o(document).on("click","[data-cookie-refuse]",(function(e){e.preventDefault();var t=[];o(s+":checked").each((function(){-1===t.indexOf(this.value)&&(o(this).trigger("click"),t.push(this.value))})),N(),j()})),E(),U(),P(),!0===R()?(V(),F(),Y(),document.dispatchEvent(m.codeUnblocked),L()):e.showCookieBox?0===e.hideCookieBoxOnPages.length||-1===e.hideCookieBoxOnPages.indexOf(window.location.protocol+"//"+window.location.host+window.location.pathname)?e.cookiesForBots&&/bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test(navigator.userAgent.toLowerCase())?(J(e.cookies,!1),V(),F(),Y(),L(),document.dispatchEvent(m.codeUnblocked)):e.respectDoNotTrack&&void 0!==navigator.doNotTrack&&"1"===navigator.doNotTrack?(J({essential:e.cookies.essential},!1),V(),F(),Y(),L(),document.dispatchEvent(m.codeUnblocked)):_(!0):(V(),F(),Y(),L(),document.dispatchEvent(m.codeUnblocked)):L(),o(document).on("click","[data-borlabs-cookie-unblock]",X),o(document).on("click","[data-borlabs-cookie-preference]",T),o(document).on("click",".borlabs-cookie-preference",T),o(document).on("change","[data-borlabs-cookie-switch]",H),o(document).on("keydown",(function(e){9===e.keyCode&&o(d).addClass("_brlbs-keyboard")})),o(document).on("mousedown",(function(e){o(d).is(":visible")&&o(d).removeClass("_brlbs-keyboard")})),o("body").on("focus",".BorlabsCookie._brlbs-keyboard input[type='checkbox']",(function(e){var t=o(e.currentTarget).closest("label");t&&o(t).addClass("_brlbs-focused")})),o(d).on("blur","input[type='checkbox']",(function(e){var t=o(e.currentTarget).closest("label");t&&o(t).removeClass("_brlbs-focused")})),o("["+l+"]").length&&io(),so(),o("["+r+"]").length&&o("["+r+"]").each((function(){o(this).html(v.uid)})),!0)},initConsentHistoryTable:io,initSwitchConsentButtonStatus:so,openCookiePreference:T,removeConsent:W,showCookieBox:_,unblockContentId:function(e){o("[data-borlabs-cookie-type='content-blocker'][data-borlabs-cookie-id='"+e+"']").each((function(){Z(o(this).parents(".BorlabsCookie"))}))},unblockScriptBlockerId:function(e){var t="[data-borlabs-script-blocker-id='"+e+"']";return o(t).length&&(p.scriptBlockerId[e]=o(t).length,oo(t,e,"scriptBlockerId")),!0},unblockScriptBlockerJSHandle:function(e){var t="[data-borlabs-script-blocker-js-handle='"+e+"']";return o(t).length&&(p.jsHandle[e]=o(t).length,oo(t,e,"jsHandle")),!0},optOutDone:function(o){null!==x?x.length!==(x=x.filter((function(e,t,n){return e!==o}))).length?0!==x.length||C||(x=null,e.reloadAfterOptOut&&window.location.reload()):console.log('No opt out found for cookie "'+o+'"'):console.log("No opt out has been initialized")}}}()})();