1// 2// parallax 3// 4 5;(function($,window,document,undefined){(function(){var lastTime=0;var vendors=['ms','moz','webkit','o'];for(var x=0;x<vendors.length&&!window.requestAnimationFrame;++x){window.requestAnimationFrame=window[vendors[x]+'RequestAnimationFrame'];window.cancelAnimationFrame=window[vendors[x]+'CancelAnimationFrame']||window[vendors[x]+'CancelRequestAnimationFrame'];} 6if(!window.requestAnimationFrame) 7window.requestAnimationFrame=function(callback){var currTime=new Date().getTime();var timeToCall=Math.max(0,16-(currTime-lastTime));var id=window.setTimeout(function(){callback(currTime+timeToCall);},timeToCall);lastTime=currTime+timeToCall;return id;};if(!window.cancelAnimationFrame) 8window.cancelAnimationFrame=function(id){clearTimeout(id);};}());function Parallax(element,options){var self=this;this.boxWidthComp=0;if(typeof options=='object'){delete options.refresh;delete options.render;$.extend(this,options);} 9this.$element=$(element);if(!this.imageSrc&&this.$element.is('img')){this.imageSrc=this.$element.attr('src');} 10this.positionX=this.position[0];this.positionY=this.position[1];if($.isMobile()&&this.cover===false){this.$element.css({backgroundImage:'url('+this.imageSrc+')',backgroundPosition:this.touchPosition});return this;} 11this.$mirror=$('<div />').prependTo('body');this.$slider=$('<img />').hide().prependTo(this.$mirror);if(this.imageAlt)this.$slider.attr('alt',this.imageAlt);this.$mirror.addClass('parallax-mirror').css({visibility:'hidden',zIndex:this.zIndex,position:'fixed',top:0,left:0,overflow:'hidden',opacity:this.bgOpacity});this.$slider.addClass('parallax-slider').one('load',function(){if(!self.naturalHeight||!self.naturalWidth){self.naturalHeight=this.naturalHeight||this.height||1;self.naturalWidth=this.naturalWidth||this.width||1;} 12self.aspectRatio=self.naturalWidth/self.naturalHeight;Parallax.isSetup||Parallax.setup();Parallax.sliders.push(self);Parallax.isFresh=false;Parallax.requestRender();});this.$slider[0].src=this.imageSrc;if(this.$slider[0].complete){this.$slider.fadeIn('slow');} 13else{this.$slider.on("load",function(){$(this).fadeIn('slow');});} 14if(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete){this.$slider.trigger('load');}};$.extend(Parallax.prototype,{speed:0.2,bleed:0,zIndex:-100,position:['center','center'],touchPosition:'center center',bgOpacity:1,overScrollFix:false,cover:false,refresh:function(){this.boxWidth=this.$element.outerWidth();if(this.cover===true){this.boxHeight=$(document).height()+this.bleed*2;this.boxWidth=$(window).width();}else{this.boxHeight=this.$element.outerHeight()+this.bleed*2;this.boxWidth=this.$element.outerWidth();} 15this.boxOffsetTop=this.$element.offset().top-this.bleed;this.boxOffsetLeft=this.$element.offset().left;this.boxOffsetBottom=this.boxOffsetTop+this.boxHeight;var winHeight=Parallax.winHeight;var docHeight=Parallax.docHeight;var maxOffset=Math.min(this.boxOffsetTop,docHeight-winHeight);var minOffset=Math.max(this.boxOffsetTop+this.boxHeight-winHeight,0);var imageHeightMin=this.boxHeight+(maxOffset-minOffset)*(1-this.speed)|0;var imageOffsetMin=(this.boxOffsetTop-maxOffset)*(1-this.speed)|0;if(imageHeightMin*this.aspectRatio>=this.boxWidth){this.imageWidth=imageHeightMin*this.aspectRatio|0;this.imageHeight=imageHeightMin;this.offsetBaseTop=imageOffsetMin;var margin=this.imageWidth-this.boxWidth;this.boxWidthComp=margin;if(this.positionX=='left'){this.offsetLeft=0;}else if(this.positionX=='right'){this.offsetLeft=-margin;}else{this.offsetLeft=-margin/2|0;}}else{this.imageWidth=this.boxWidth;this.imageHeight=this.boxWidth/this.aspectRatio|0;this.offsetLeft=0;var margin=this.imageHeight-imageHeightMin;if(this.positionY=='top'){this.offsetBaseTop=imageOffsetMin;}else if(this.positionY=='bottom'){this.offsetBaseTop=imageOffsetMin-margin;}else{this.offsetBaseTop=imageOffsetMin-margin/2|0;}}},render:function(){var scrollTop=Parallax.scrollTop;var scrollLeft=Parallax.scrollLeft;var overScroll=this.overScrollFix?Parallax.overScroll:0;var scrollBottom=scrollTop+Parallax.winHeight;if(this.boxOffsetBottom>scrollTop&&this.boxOffsetTop<scrollBottom){this.visibility='visible';this.mirrorTop=this.boxOffsetTop-scrollTop;this.mirrorLeft=this.boxOffsetLeft-scrollLeft;this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed);}else{this.visibility='hidden';} 16this.$mirror.css({transform:'translate3d(0px, 0px, 0px)',visibility:this.visibility,top:Math.round(this.mirrorTop-overScroll),left:this.mirrorLeft,height:this.boxHeight,width:this.boxWidth+this.boxWidthComp});var transl='translate3d( 0px,'+Math.round(this.offsetTop)+'px, 0px)';this.$slider.css({position:'absolute',top:0,transform:transl,left:this.offsetLeft,height:this.imageHeight,width:this.imageWidth});}});$.extend(Parallax,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1<<30,docWidth:1<<30,sliders:[],isReady:false,isFresh:false,isBusy:false,lastTop:1,setup:function(){if(this.isReady)return;var $doc=$(document),$win=$(window);if($.isMobile()){Parallax.winHeight=$win.height();Parallax.winWidth=$win.width();Parallax.docHeight=$doc.height();Parallax.docWidth=$doc.width();Parallax.isFresh=false;Parallax.requestRender();} 17else{$win.on('scroll.px.parallax load.px.parallax',function(){var scrollTopMax=Parallax.docHeight-Parallax.winHeight;var scrollLeftMax=Parallax.docWidth-Parallax.winWidth;Parallax.scrollTop=Math.max(0,Math.min(scrollTopMax,$win.scrollTop()));Parallax.scrollLeft=Math.max(0,Math.min(scrollLeftMax,$win.scrollLeft()));Parallax.overScroll=Math.max($win.scrollTop()-scrollTopMax,Math.min($win.scrollTop(),0));Parallax.requestRender();}).on('resize.px.parallax load.px.parallax',function(){Parallax.winHeight=$win.height();Parallax.winWidth=$win.width();Parallax.docHeight=$doc.height();Parallax.docWidth=$doc.width();Parallax.isFresh=false;Parallax.requestRender();});} 18this.isReady=true;},configure:function(options){if(typeof options=='object'){delete options.refresh;delete options.render;$.extend(this.prototype,options);}},refresh:function(){$.each(this.sliders,function(){this.refresh()});this.isFresh=true;},render:function(){this.isFresh||this.refresh();$.each(this.sliders,function(){this.render()});},requestRender:function(){var self=this;if(!this.isBusy){this.isBusy=true;self.render();self.isBusy=false;}}});function Plugin(option){return this.each(function(){var $this=$(this);var options=typeof option=='object'&&option;if(this==window||this==document||$this.is('body')){Parallax.configure(options);} 19else if(!$this.data('px.parallax')){options=$.extend({},$this.data(),options);$this.data('px.parallax',new Parallax(this,options));} 20if(typeof option=='string'){Parallax[option]();}})};var old=$.fn.parallax;$.fn.parallax=Plugin;$.fn.parallax.Constructor=Parallax;$.fn.parallax.noConflict=function(){$.fn.parallax=old;return this;};$(document).on('ready.px.parallax.data-api',function(){$('[data-parallax="scroll"]').parallax();});}(jQuery,window,document)); 21 22 23// 24// jwlib-utils 25// 26 27(function($){"use strict";jQuery.fn.exists=function(){return jQuery(this).length>0;};jQuery.getParameterByName=function(name,url){if(!url)url=window.location.href;name=name.replace(/[[\]]/g,"\\$&");var regex=new RegExp("[?&]"+name+"(=([^&#]*)|&|#|$)"),results=regex.exec(url);if(!results)return null;if(!results[2])return"";return decodeURIComponent(results[2].replace(/\+/g," "));};jQuery.debug=function(){if(window.debug===true)window.debug=1;var maxlevel=parseInt($.getParameterByName("debug")||window.debug)||0;if(maxlevel===0)return;var args=Array.prototype.slice.call(arguments),group="debug",loglevel=1;if(args.length>1&&typeof(args[args.length-1])==="number"){loglevel=args.pop();} 28if(loglevel>maxlevel)return;if(args.length>
281&&typeof(args[0])==="string"){group=args.shift();} 29var debugGroup=$.getParameterByName("debugGroup")||window.debugGroup;if(debugGroup&&!group.match(debugGroup))return;console.group(group);args.forEach(function(arg){if(Array.isArray(arg)&&typeof arg[0]!=="object"){console.table(arg);} 30else{console.log(arg);}});console.groupEnd();};jQuery.isMobile=jQuery.isTouch=function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||false;};if(jQuery.isTouch())document.documentElement.classList.add("touch");jQuery.clearBrowserCache=function(){$(window).on("pageshow",function(event){if(event.originalEvent.persisted){window.location.reload();}});};jQuery.preloadImages=function(){for(var i=0;i<arguments.length;i++){$("<img />").attr("src",arguments[i]);}};var triggerWindowResize=function(){$(window).trigger("resize");};if(typeof(orientationEvent)==undefined){var orientationEvent=0;} 31$(window).on(orientationEvent,triggerWindowResize).on("load",triggerWindowResize);})(jQuery); 32 33 34// 35// vein 36// 37 38!function(e,t){"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("vein",t):this.vein=t()}(0,function(){var e=function(){},t=function(e,t,n){var s,r,l=[],i=[],u=t[document.all?"rules":"cssRules"],o=e.replace(/\s/g,"");for(s=0,r=u.length;s<r;s++)(u[s].selectorText===e||4===u[s].type&&u[s].cssText.replace(/\s/g,"").substring(0,o.length)==o)&&(null===n?i.push(s):l.push(u[s]));for(s=0,r=i.length;s<r;s++)t.deleteRule(i[s]);return l},n=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+": "+e[n]+";");return t.join("")};e.getStylesheet=function(){return this.element&&document.getElementById("vein")||(this.element=document.createElement("style"),this.element.setAttribute("type","text/css"),this.element.setAttribute("id","vein"),document.getElementsByTagName("head")[0].appendChild(this.element),this.stylesheet=this.element.sheet),this.stylesheet};var s=function(e){return e[document.all?"rules":"cssRules"]},r=function(e,t,n){var r=s(n);n.insertRule?n.insertRule(e+"{"+t+"}",r.length):n.addRule(e,t,r.length)};return e.inject=function(e,l,i){var u,o,h,f,c,a,y,d,g,p,m=(i=function(e){e=e||{};for(var t=1;t<arguments.length;t++)if(arguments[t])for(var n in arguments[t])arguments[t].hasOwnProperty(n)&&(e[n]=arguments[t][n]);return e}({},i)).stylesheet||this.getStylesheet();s(m);for("string"==typeof e&&(e=[e]),u=0,o=e.length;u<o;u++)if("object"==typeof e[u]&&m.insertRule)for(h in e[u])if(0===(f=t(h,m,l)).length)for(c=n(l),g=0,p=e[u][h].length;g<p;g++)r(h,e[u][h][g]+"{"+c+"}",m);else for(y=0,d=f.length;y<d;y++)this.inject(e[u][h],l,{stylesheet:f[y]});else{if(f=t(e[u],m,l),null===l)return;if(0===f.length)c=n(l),r(e[u],c,m);else for(y=0,d=f.length;y<d;y++)for(a in l)l.hasOwnProperty(a)&&(f[y].style.setProperty?f[y].style.setProperty(a,l[a],""):f[y].style.setAttribute(a,l[a],""))}return this},e}); 39 40 41// 42// vegas 43// 44 45!function(t){"use strict";var s={slide:0,delay:5e3,loop:!0,preload:!1,preloadImage:!1,preloadVideo:!1,timer:!0,overlay:!1,autoplay:!0,shuffle:!1,cover:!0,color:null,align:"center",valign:"center",firstTransition:null,firstTransitionDuration:null,transition:"fade",transitionDuration:1e3,transitionRegister:[],animation:null,animationDuration:"auto",animationRegister:[],slidesToKeep:1,init:function(){},play:function(){},pause:function(){},walk:function(){},slides:[]},i={},e=function(i,e){this.elmt=i,this.settings=t.extend({},s,t.vegas.defaults,e),this.slide=this.settings.slide,this.total=this.settings.slides.length,this.noshow=this.total<2,this.paused=!this.settings.autoplay||this.noshow,this.ended=!1,this.$elmt=t(i),this.$timer=null,this.$overlay=null,this.$slide=null,this.timeout=null,this.first=!0,this.transitions=["fade","fade2","blur","blur2","flash","flash2","negative","negative2","burn","burn2","slideLeft","slideLeft2","slideRight","slideRight2","slideUp","slideUp2","slideDown","slideDown2","zoomIn","zoomIn2","zoomOut","zoomOut2","swirlLeft","swirlLeft2","swirlRight","swirlRight2"],this.animations=["kenburns","kenburnsLeft","kenburnsRight","kenburnsUp","kenburnsUpLeft","kenburnsU
45pRight","kenburnsDown","kenburnsDownLeft","kenburnsDownRight"],this.settings.transitionRegister instanceof Array==!1&&(this.settings.transitionRegister=[this.settings.transitionRegister]),this.settings.animationRegister instanceof Array==!1&&(this.settings.animationRegister=[this.settings.animationRegister]),this.transitions=this.transitions.concat(this.settings.transitionRegister),this.animations=this.animations.concat(this.settings.animationRegister),this.support={objectFit:"objectFit"in document.body.style,transition:"transition"in document.body.style||"WebkitTransition"in document.body.style,video:t.vegas.isVideoCompatible()},!0===this.settings.shuffle&&this.shuffle(),this._init()};e.prototype={_init:function(){var s,i,e,n="BODY"===this.elmt.tagName,o=this.settings.timer,a=this.settings.overlay,r=this;this._preload(),n||(this.$elmt.css("height",this.$elmt.css("height")),s=t('<div class="vegas-wrapper">').css("overflow",this.$elmt.css("overflow")).css("padding",this.$elmt.css("padding")),this.$elmt.css("padding")||s.css("padding-top",this.$elmt.css("padding-top")).css("padding-bottom",this.$elmt.css("padding-bottom")).css("padding-left",this.$elmt.css("padding-left")).css("padding-right",this.$elmt.css("padding-right")),this.$elmt.clone(!0).children().appendTo(s),this.elmt.innerHTML=""),o&&this.support.transition&&(e=t('<div class="vegas-timer"><div class="vegas-timer-progress">'),this.$timer=e,this.$elmt.prepend(e)),a&&(i=t('<div class="vegas-overlay">'),"string"==typeof a&&i.css("background-image","url("+a+")"),this.$overlay=i,this.$elmt.prepend(i)),this.$elmt.addClass("vegas-container"),n||this.$elmt.append(s),setTimeout(function(){r.trigger("init"),r._goto(r.slide),r.settings.autoplay&&r.trigger("play")},1)},_preload:function(){var t;for(t=0;t<this.settings.slides.length;t++)(this.settings.preload||this.settings.preloadImages)&&this.settings.slides[t].src&&((new Image).src=this.settings.slides[t].src),(this.settings.preload||this.settings.preloadVideos)&&this.support.video&&this.settings.slides[t].video&&(this.settings.slides[t].video instanceof Array?this._video(this.settings.slides[t].video):this._video(this.settings.slides[t].video.src))},_random:function(t){return t[Math.floor(Math.random()*t.length)]},_slideShow:function(){var t=this;this.total>1&&!this.ended&&!this.paused&&!this.noshow&&(this.timeout=setTimeout(function(){t.next()},this._options("delay")))},_timer:function(t){var s=this;clearTimeout(this.timeout),this.$timer&&(this.$timer.removeClass("vegas-timer-running").find("div").css("transition-duration","0ms"),this.ended||this.paused||this.noshow||t&&setTimeout(function(){s.$timer.addClass("vegas-timer-running").find("div").css("transition-duration",s._options("delay")-100+"ms")},100))},_video:function(t){var s,e,n=t.toString();return i[n]?i[n]:(t instanceof Array==!1&&(t=[t]),(s=document.createElement("video")).preload=!0,t.forEach(function(t){(e=document.createElement("source")).src=t,s.appendChild(e)}),i[n]=s,s)},_fadeOutSound:function(t,s){var i=this,e=s/10,n=t.volume-.09;n>0?(t.volume=n,setTimeout(function(){i._fadeOutSound(t,s)},e)):t.pause()},_fadeInSound:function(t,s){var i=this,e=s/10,n=t.volume+.09;n<1&&(t.volume=n,setTimeout(function(){i._fadeInSound(t,s)},e))},_options:function(t,s){return void 0===s&&(s=this.slide),void 0!==this.settings.slides[s][t]?this.settings.slides[s][t]:this.settings[t]},_goto:function(s){void 0===this.settings.slides[s]&&(s=0),this.slide=s;var i,e,n,o,a,r=this.$elmt.children(".vegas-slide"),h=this.settings.slides[s].src,d=this.settings.slides[s].video,l=this._options("delay"),g=this._options("align"),u=this._options("valign"),c=this._options("cover"),p=this._options("color")||this.$elmt.css("background-color"),m=this,f=r.length,v=this._options("transition"),y=this._options("transitionDuration"),_=this._options("animation"),w=this._options("animationDuration");function b(){m._timer(!0),setTimeout(function(){v&&(m.support.transition?(r.css("transition","all "+y+"ms").addClass("vegas-transition-"+v+"-out"),r.each(function(){var t=r.find("video").get(0);t&&(t.volume=1,m._fadeOutSound(t,y))}),i.css("transition","all "+y+"ms").addClass("vegas-transition-"+v+"-in")):i.fadeIn(y));for(var t=0;t<r.length-m.settings.slidesToKeep;t++)r.eq(t).remove();m.trigger("walk"),m._slideShow()},100)}this.settings.firstTransition&&this.first&&(v=this.settings.firstTransition||v),this.settings.firstTransitionDuration&&this.first&&(y=this.settings.firstTransitionDuration||y),this.first&&(this.first=!1),"repeat"!==c&&(!0===c?c="cover":!1===c&&(c="contain")),("random"===v||v instanceof Array)&&(v=v instanceof Array?this._random(v):this._random(this.transitions)),("random"===_||_ instanceof Array)&&(_=_ instanceof Array?this._random(_):this._random(this.animations)),("auto"===y||y>l)&&(y=l),"auto"===w&&(w=l),i=t('<div class="vegas-slide"></div>'),this.support.transition&&v&&i.addClass("vegas-transition-"+v),this.support.video&&d?((o=d instanceof Array?this._video(d):this._video(d.src)).loop=void 0===d.loop||d.loop,o.muted=void 0===d.mute||d.mute,!1===o.muted?(o.volume=0,this._fadeInSound(o,y)):o.pause(),n=t(o).addClass("vegas-video").css("background-color",p),this.support.objectFit?n.css("object-position",g+" "+u).css("object-fit",c).css("width","100%").css("height","100%"):"contain"===c&&n.css("width","100%").css("height","100%"),i.append(n)):(a=new Image,e=t('<div class="vegas-slide-inner"></div>').css("background-image",'url("'+h+'")').css("background-color",p).css("background-position",g+" "+u),"repeat"===c?e.css("background-repeat","repeat"):e.css("background-size",c),this.support.transition&&_&&e.addClass("vegas-animation-"+_).css("animation-duration",w+"ms"),i.append(e)),this.support.transition||i.css("display","none"),f?r.eq(f-1).after(i):this.$elmt.prepend(i),r.css("transition","all 0ms").each(function(){this.className="vegas-slide","VIDEO"===this.tagName&&(this.className+=" vegas-video"),v&&(this.className+=" vegas-transition-"+v,this.className+=" vegas-transition-"+v+"-in")}),m._timer(!1),o?(4===o.readyState&&(o.currentTime=0),o.play(),b()):(a.src=h,a.complete?b():a.onload=b)},_end:function(){this.settings.autoplay?this.ended=!1:this.ended=!0,this._timer(!1),this.trigger("end")},shuffle:function(){for(var t,s,i=this.total-1;i>0;i--)s=Math.floor(Math.random()*(i+1)),t=this.settings.slides[i],this.settings.slides[i]=this.settings.slides[s],this.settings.slides[s]=t},play:function(){this.paused&&(this.paused=!1,this.next(),this.trigger("play"))},pause:function(){this._timer(!1),this.paused=!0,this.trigger("pause")},toggle:function(){this.paused?this.play():this.pause()},playing:function(){return!this.paused&&!this.noshow},current:function(t){return t?{slide:this.slide,data:this.settings.slides[this.slide]}:this.slide},jump:function(t){t<0||t>this.total-1||t===this.slide||(this.slide=t,this._goto(this.slide))},next:function(){if(this.slide++,this.slide>=this.total){if(!this.settings.loop)return this._end();this.slide=0}this._goto(this.slide)},previous:function(){if(this.slide--,this.slide<0){if(!this.settings.loop)return void this.slide++;this.slide=this.total-1}this._goto(this.slide)},trigger:function(t){var s=[];s="init"===t?[this.settings]:[this.slide,this.settings.slides[this.slide]],this.$elmt.trigger("vegas"+t,s),"function"==typeof this.settings[t]&&this.settings[t].apply(this.$elmt,s)},options:function(i,e){var n=this.settings.slides.slice();if("object"==typeof i)this.settings=t.extend({},s,t.vegas.defaults,i);else{if("string"!=typeof i)return this.settings;if(void 0===e)return this.settings[i];this.settings[i]=e}this.settings.slides!==n&&(this.total=this.settings.slides.length,this.noshow=this.total<2,this._preload())},destroy:function(){clearTimeout(this.timeout),this.$elmt.removeClass("vegas-container"),this.$elmt.find("> .vegas-slide").remove(),this.$elmt.find("> .vegas-wrapper").clone(!0).children().appendTo(this.$elmt),this.$elmt.find("> .vegas-wrapper").remove(),this.settings.timer&&this.$timer.remove(),this.settings.overlay&&this.$overlay.remove(),this.elmt._vegas=null}},t.fn.vegas=function(t){var s,i=arguments,n=!1;if(void 0===t||"object"==typeof t)return this.each(function(){this._vegas||(this._vegas=new e(this,t))});if("string"==typeof t){if(this.each(function(){var e=this._vegas;if(!e)throw new Error("No Vegas applied to this element.");"function"==typeof e[t]&&"_"!==t[0]?s=e[t].apply(e,[].slice.call(i,1)):n=!0}),n)throw new Error('No method "'+t+'" in Vegas.');return void 0!==s?s:this}},t.vegas={},t.vegas.defaults=s,t.vegas.isVideoCompatible=function(){return!/(Android|webOS|Phone|iPad|iPod|BlackBerry|W
vendor: 5,018 bytes, lines 45-49
45indows Phone)/i.test(navigator.userAgent)}}(jQuery||window.Zepto); 46 47 48/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */ 49jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",o||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):("type"===a&&i!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||"boolean"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var i;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(i=y.exec(e.trim(t)))&&i[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),i[3]&&r("$(html) HTML text after last tag is ignored"),"#"===i[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(i[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||"events"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),i)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||j.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].c
49oncat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,M=e.fn.die,S="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",C=RegExp("\\b(?:"+S+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,i){e!==document&&C.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,i)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),T?T.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),M?M.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||C.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(S.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window); 50var stacks = {}; 51stacks.jQuery = jQuery.noConflict(true); 52stacks.dev_rwpro_stack_privacy_center = {}; 53stacks.dev_rwpro_stack_privacy_center = (function(stack) { 54var jQuery = stacks.jQuery;var $ = jQuery;// -- A simple jQuery modal (http://github.com/kylefox/jquery-modal) Version 0.9.2 --// 55!function(o){"object"==typeof module&&"object"==typeof module.exports?o(require("jquery"),window,document):o(jQuery,window,document)}((function(o,t,i,e){var s=[],c=function(){return s.length?s[s.length-1]:null},l=function(){var o,t=!1;for(o=s.length-1;o>=0;o--)s[o].$pcblocker&&(s[o].$pcblocker.toggleClass("current",!t).toggleClass("behind",t),t=!0)};o.pcmodal=function(t,i){var e,l;if(this.$body=o("body"),this.options=o.extend({},o.pcmodal.defaults,i),this.options.doFade=!isNaN(parseInt(this.options.fadeDuration,10)),this.$pcblocker=null,this.options.closeExisting)for(;o.pcmodal.isActive();)o.pcmodal.close();if(s.push(this),t.is("a"))if(l=t.attr("href"),this.anchor=t,/^#/.test(l)){if(this.$elm=o(l),1!==this.$elm.length)return null;this.$body.append(this.$elm),this.open()}else this.$elm=o("<div>"),this.$body.append(this.$elm),e=function(o,t){t.elm.remove()},this.showSpinner(),t.trigger(o.pcmodal.AJAX_SEND),o.get(l).done((function(i){if(o.pcmodal.isActive()){t.trigger(o.pcmodal.AJAX_SUCCESS);var s=c();s.$elm.empty().append(i).on(o.pcmodal.CLOSE,e),s.hideSpinner(),s.open(),t.trigger(o.pcmodal.AJAX_COMPLETE)}})).fail((function(){t.trigger(o.pcmodal.AJAX_FAIL),c().hideSpinner(),s.pop(),t.trigger(o.pcmodal.AJAX_COMPLETE)}));else this.$elm=t,this.anchor=t,this.$body.append(this.$elm),this.open()},o.pcmodal.prototype={constructor:o.pcmodal,open:function(){var t=this;this.block(),this.anchor.blur(),this.options.doFade?setTimeout((function(){t.show()}),this.options.fadeDuration*this.options.fadeDelay):this.show(),o(i).off("keydown.pcmodal").on("keydown.pcmodal",(function(o){var t=c();27===o.which&&t.options.escapeClose&&t.close()})),this.options.clickClose&&this.$pcblocker.click((function(t){t.target===this&&o.pcmodal.close()}))},close:function(){s.pop(),this.unblock(),this.hide(),o.pcmodal.isActive()||o(i).off("keydown.pcmodal")},block:function(){this.$elm.trigger(o.pcmodal.BEFORE_BLOCK,[this._ctx()]),this.$body.css("overflow","hidden"),this.$pcblocker=o('<div class="'+this.options.pcblockerClass+' pcblocker current"></div>').appendTo(this.$body),l(),this.options.doFade&&this.$pcblocker.css("opacity",0).animate({opacity:1},this.options.fadeDuration),this.$elm.trigger(o.pcmodal.BLOCK,[this._ctx()])},unblock:function(t){!t&&this.options.doFade?this.$pcblocker.fadeOut(this.options.fadeDuration,this.unblock.bind(this,!0)):(this.$pcblocker.children().appendTo(this.$body),this.$pcblocker.remove(),this.$pcblocker=null,l(),o.pcmodal.isActive()||this.$body.css("overflow",""))},show:function(){this.$elm.trigger(o.pcmodal.BEFORE_OPEN,[this._ctx()]),this.options.showClose&&(this.closeButton=o('<a href="#close-pcmodal" rel="pcmodal:close" class="close-pcmodal '+this.options.closeClass+'">'+this.options.closeText+"</a>"),this.$elm.append(this.closeButton)),this.$elm.addClass(this.options.pcmodalClass).appendTo(this.$pcblocker),this.options.doFade?this.$elm.css({opacity:0,display:"inline-block"}).animate({opacity:1},this.options.fadeDuration):this.$elm.css("display","inline-block"),this.$elm.trigger(o.pcmodal.OPEN,[this._ctx()])},hide:function(){this.$elm.trigger(o.pcmodal.BEFORE_CLOSE,[this._ctx()]),this.closeButton&&this.closeButton.remove();var t=this;this.options.doFade?this.$elm.fadeOut(this.options.fadeDuration,(function(){t.$elm.trigger(o.pcmodal.AFTER_CLOSE,[t._ctx()])})):this.$elm.hide(0,(function(){t.$elm.trigger(o.pcmodal.AFTER_CLOSE,[t._ctx()])})),this.$elm.trigger(o.pcmodal.CLOSE,[this._ctx()])},showSpinner:function(){this.options.showSpinner&&(this.spinner=this.spinner||o('<div class="'+this.options.pcmodalClass+'-spinner"></div>').append(this.options.spinnerHtml),this.$body.append(this.spinner),this.spinner.show())},hideSpinner:function(){this.spinner&&this.spinner.remove()},_ctx:function(){return{elm:this.$elm,$elm:this.$elm,$pcblocker:this.$pcblocker,options:this.options,$anchor:this.anchor}}},o.pcmodal.close=function(t){if(o.pcmodal.isActive()){t&&t.preventDefault();var i=c();return i.close(),i.$elm}},o.pcmodal.isActive=function(){return s.length>0},o.pcmodal.getCurrent=c,o.pcmodal.defaults={closeExisting:!1,escapeClose:!1,clickClose:!1,closeText:"Close",closeClass:"",pcmodalClass:"pcmodal",pcblockerClass:"jquery-pcmodal",spinnerHtml:'<div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div>',showSpinner:!1,showClose:!1,fadeDuration:500,fadeDelay:1},o.pcmodal.BEFORE_BLOCK="pcmodal:before-block",o.pcmodal.BLOCK="pcmodal:block",o.pcmodal.BEFORE_OPEN="pcmodal:before-open",o.pcmodal.OPEN="pcmodal:open",o.pcmodal.BEFORE_CLOSE="pcmodal:before-close",o.pcmodal.CLOSE="pcmodal:close",o.pcmodal.AFTER_CLOSE="pcmodal:after-close",o.pcmodal.AJAX_SEND="pcmodal:ajax:send",o.pcmodal.AJAX_SUCCESS="pcmodal:ajax:success",o.pcmodal.AJAX_FAIL="pcmodal:ajax:fail",o.pcmodal.AJAX_COMPLETE="pcmodal:ajax:complete",o.fn.pcmodal=function(t){return 1===this.length&&new o.pcmodal(this,t),this},o(i).on("click.pcmodal",'a[rel~="pcmodal:close"]',o.pcmodal.close),o(i).on("click.pcmodal",'a[rel~="pcmodal:open"]',(function(t){t.preventDefault(),o(this).pcmodal()}))})); 56// -- js-cookie v2.2.1 | MIT --// 57!function(a){var b;if("function"==typeof define&&define.amd&&(define(a),b=!0),"object"==typeof exports&&(module.exports=a(),b=!0),!b){var c=window.Cookies,d=window.Cookies=a();d.noConflict=function(){return window.Cookies=c,d}}}(function(){function a(){for(var a=0,b={};a<arguments.length;a++){var c=arguments[a];for(var d in c)b[d]=c[d]}return b}function b(a){return a.replace(/(%[0-9A-Z]{2}
57)+/g,decodeURIComponent)}function c(d){function e(){}function f(b,c,f){if("undefined"!=typeof document){f=a({path:"/"},e.defaults,f),"number"==typeof f.expires&&(f.expires=new Date(1*new Date+864e5*f.expires)),f.expires=f.expires?f.expires.toUTCString():"";try{var g=JSON.stringify(c);/^[\{\[]/.test(g)&&(c=g)}catch(j){}c=d.write?d.write(c,b):encodeURIComponent(c+"").replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),b=encodeURIComponent(b+"").replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var h="";for(var i in f)f[i]&&(h+="; "+i,!0!==f[i]&&(h+="="+f[i].split(";")[0]));return document.cookie=b+"="+c+h}}function g(a,c){if("undefined"!=typeof document){for(var e={},f=document.cookie?document.cookie.split("; "):[],g=0;g<f.length;g++){var h=f[g].split("="),i=h.slice(1).join("=");c||'"'!==i.charAt(0)||(i=i.slice(1,-1));try{var j=b(h[0]);if(i=(d.read||d)(i,j)||b(i),c)try{i=JSON.parse(i)}catch(k){}if(e[j]=i,a===j)break}catch(k){}}return a?e[a]:e}}return e.set=f,e.get=function(a){return g(a,!1)},e.getJSON=function(a){return g(a,!0)},e.remove=(b, c) => { f(b, "", a(c, { expires: -1 })); },e.defaults={},e.withConverter=c,e}return c(function(){})}); 58 59return stack;})(stacks.dev_rwpro_stack_privacy_center); 60stacks.ws_foundation_styles = {}; 61stacks.ws_foundation_styles = (function(stack) { 62var jQuery = stacks.jQuery;var $ = jQuery; 63 64return stack;})(stacks.ws_foundation_styles); 65stacks.ws_foundation_form = {}; 66stacks.ws_foundation_form = (function(stack) { 67var jQuery = stacks.jQuery;var $ = jQuery; 68const urlParams=new URLSearchParams(window.location.search);const entries=Array.from(urlParams.entries());for(const entry of entries){const fieldName=entry[0];const fieldValue=entry[1];const inputs=Array.from(document.getElementsByName(fieldName));if(inputs.length>0){for(const input of inputs){if(input.classList.contains("switch-input")||input.type==="radio"||input.type==="checkbox"){input.checked=(fieldValue.split(",").indexOf(input.value)!==-1);continue;} 69input.value=fieldValue;} 70continue;} 71const checkboxes=Array.from(document.getElementsByName(`${fieldName}[]`));if(checkboxes.length>0){for(const checkbox of checkboxes){checkbox.checked=(fieldValue.split(",").indexOf(checkbox.value)!==-1);}}} 72if("undefined"==typeof stacks.forms)stacks.forms={};$.fn.serializeAndEncodeForm=function(){return $.map(this.serializeArray(),function(val){return[val.name,encodeURIComponent(val.value)].join("=");}).join("&");};$(document).on("invalid.zf.abide",function(e,el){console.warn(`Field name"${el[0].name}"is invalid`);}).on("valid.zf.abide",function(e,el){console.log(`Field name"${el[0].name}"is valid`);}).on("submit",function(e){if(e.target.classList.contains("ajax-form")){e.preventDefault();console.log(`Submit for form id"${e.target.id}"intercepted`);}}).on("forminvalid.zf.abide",function(e,form){console.warn(`Form id"${form[0].id}"is invalid`);}).on("formvalid.zf.abide",function(e,form){console.log(`Form id"${form[0].id}"is valid`);});$("select").on("change",function(){const id=$(this).attr("id");const hidden=$(`#${id}-label`);if(hidden.length>0){const text=$("option:selected",this).map(function(){return $(this).text();}).get().join(", ");hidden.val(text);}}); 73 74return stack;})(stacks.ws_foundation_form); 75stacks.ws_seohelper = {}; 76stacks.ws_seohelper = (function(stack) { 77 78return stack;})(stacks.ws_seohelper); 79stacks.stacks_in_968 = {}; 80stacks.stacks_in_968 = (function(stack) { 81var jQuery = stacks.jQuery;var $ = jQuery;$((function(){startpage="../",mode="",debug="false","custom"===mode?pwamode="custom-":pwamode="","serviceWorker"in navigator&&("true"===installable?(splashFile=startpage+pwamode+"splash.json",$.getJSON(splashFile).done((function(data){$.each(data,(function(index,array){$.each(array,(function(subindex,item){$("head").append('<link rel="apple-touch-startup-image" media="(device-width: '+item.width+"px) and (device-height: "+item.height+"px) and (-webkit-device-pixel-ratio: "+item.ratio+") and (orientation: "+item.orientation+')" href="'+item.img+'" />')}))}))})).fail((function(){console.log("PWA: Error with splash file")})),$("head").append('<meta name="mobile-web-app-capable" content="yes" />'),$("head").append('<meta name="apple-mobile-web-app-capable" content="yes" />'),manifestFile=startpage+pwamode+"manifest.json",$("head").append('<link rel="manifest" href="'+manifestFile+'">'),$.getJSON(manifestFile).done((function(data){theme_color=data.theme_color,dark_theme_color=data.dark_theme_color,$("head").append('<meta name="theme-color" media="(prefers-color-scheme: light)" content="'+theme_color+'">'),$("head").append('<meta name="theme-color" media="(prefers-color-scheme: dark)" content="'+dark_theme_color+'"></meta>')})).fail((function(){console.log("Error with Manifest File")}))):"true"===debug&&console.log("Web App is not installable"),"true"===swfile?(navigator.serviceWorker.register(startpage+pwamode+"sw.js",{scope:startpage}).then(swReg=>
81{"true"===debug&&console.log("Service Worker Registered",swReg)}).catch(error=>{console.log("There was an error!",error)}),navigator.serviceWorker.addEventListener("message",async event=>{if("workbox-broadcast-update"===event.data.meta){const{cacheName:cacheName,updatedURL:updatedURL}=event.data.payload;if("true"===debug){const cache=await caches.open(cacheName),updatedResponse=await cache.match(updatedURL),updatedText=await updatedResponse.text();console.log("Updated "+updatedURL+" in "+cacheName+": "+updatedText)}else console.log("Updated "+updatedURL+" in "+cacheName)}}),"true"===debug&&"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then(({usage:usage,quota:quota})=>{console.log("Using "+usage+" out of "+quota+" bytes.")})):console.log("Service Worker not found!"))})); 82return stack;})(stacks.stacks_in_968); 83stacks.stacks_in_887_4 = {}; 84stacks.stacks_in_887_4 = (function(stack) { 85 86return stack;})(stacks.stacks_in_887_4); 87stacks.stacks_in_918 = {}; 88stacks.stacks_in_918 = (function(stack) { 89var jQuery = stacks.jQuery;var $ = jQuery; stacks.totalRequestHeaders={'Total-Key':$.trim('')}; 90 91return stack;})(stacks.stacks_in_918); 92stacks.stacks_in_401 = {}; 93stacks.stacks_in_401 = (function(stack) { 94var jQuery = stacks.jQuery;var $ = jQuery; 95var whichImage=function(small,large){return($.isMobile()&&(small.length>0))?small:large;};$(document).ready(function(){var parallax=$("#parallax_stacks_in_401");if(parallax.length==0){return;} 96var asCover=false,parImage=whichImage(parallax.data("image-small"),parallax.data("image"));if(parallax.hasClass("type-cover")){parallax.prependTo("body");asCover=true;} 97vein.inject("#parallax_stacks_in_401:after",{"background-image":"url("+parImage+")"});if($.isMobile()){parallax.addClass("touch-device");if(asCover){$("body").vegas({slides:[{src:parImage}],transitionDuration:600,timer:false,autoplay:false});}} 98else{parallax.parallax({imageSrc:parImage,imageAlt:parallax.data("alt"),speed:0.30,bleed:0,zIndex:0,position:["center","center"],touchPosition:"center center",bgOpacity:1.00,cover:asCover});}}); 99 100return stack;})(stacks.stacks_in_401); 101stacks.stacks_in_771 = {}; 102stacks.stacks_in_771 = (function(stack) { 103var jQuery = stacks.jQuery;var $ = jQuery; 104var whichImage=function(small,large){return($.isMobile()&&(small.length>0))?small:large;};$(document).ready(function(){var parallax=$("#parallax_stacks_in_771");if(parallax.length==0){return;} 105var asCover=false,parImage=whichImage(parallax.data("image-small"),parallax.data("image"));if(parallax.hasClass("type-cover")){parallax.prependTo("body");asCover=true;} 106vein.inject("#parallax_stacks_in_771:after",{"background-image":"url("+parImage+")"});if($.isMobile()){parallax.addClass("touch-device");if(asCover){$("body").vegas({slides:[{src:parImage}],transitionDuration:600,timer:false,autoplay:false});}} 107else{parallax.parallax({imageSrc:parImage,imageAlt:parallax.data("alt"),speed:0.30,bleed:0,zIndex:0,position:["center","center"],touchPosition:"center center",bgOpacity:1.00,cover:asCover});}}); 108 109return stack;})(stacks.stacks_in_771); 110stacks.stacks_in_1029 = {}; 111stacks.stacks_in_1029 = (function(stack) { 112var jQuery = stacks.jQuery;var $ = jQuery; 113var whichImage=function(small,large){return($.isMobile()&&(small.length>0))?small:large;};$(document).ready(function(){var parallax=$("#parallax_stacks_in_1029");if(parallax.length==0){return;} 114var asCover=false,parImage=whichImage(parallax.data("image-small"),parallax.data("image"));if(parallax.hasClass("type-cover")){parallax.prependTo("body");asCover=true;} 115vein.inject("#parallax_stacks_in_1029:after",{"background-image":"url("+parImage+")"});if($.isMobile()){parallax.addClass("touch-device");if(asCover){$("body").vegas({slides:[{src:parImage}],transitionDuration:600,timer:false,autoplay:false});}} 116else{parallax.parallax({imageSrc:parImage,imageAlt:parallax.data("alt"),speed:0.30,bleed:0,zIndex:0,position:["center","center"],touchPosition:"center center",bgOpacity:1.00,cover:asCover});}}); 117 118return stack;})(stacks.stacks_in_1029); 119stacks.stacks_in_567_7 = {}; 120stacks.stacks_in_567_7 = (function(stack) { 121var jQuery = stacks.jQuery;var $ = jQuery; 122var whichImage=function(small,large){return($.isMobile()&&(small.length>0))?small:large;};$(document).ready(function(){var parallax=$("#parallax_stacks_in_567_7");if(parallax.length==0){return;} 123var asCover=false,parImage=whichImage(parallax.data("image-small"),parallax.data("image"));if(parallax.hasClass("type-cover")){parallax.prependTo("body");asCover=true;} 124vein.inject("#parallax_stacks_in_567_7:after",{"background-image":"url("+parImage+")"});if($.isMobile()){parallax.addClass("touch-device");if(asCover){$("body").vegas({slides:[{src:parImage}],transitionDuration:600,timer:false,autoplay:false});}}
125else{parallax.parallax({imageSrc:parImage,imageAlt:parallax.data("alt"),speed:0.30,bleed:0,zIndex:0,position:["center","center"],touchPosition:"center center",bgOpacity:1.00,cover:asCover});}}); 126 127return stack;})(stacks.stacks_in_567_7); 128stacks.stacks_in_567_24 = {}; 129stacks.stacks_in_567_24 = (function(stack) { 130var jQuery = stacks.jQuery;var $ = jQuery; const form=$("#stacks_in_567_24");const observer=new MutationObserver((mutationsList)=>{for(const mutation of mutationsList){if(mutation.type==='childList'&&mutation.addedNodes.length>0){form.foundation("_reflow");break;}}});if(form.length>0){observer.observe(form[0],{childList:true,subtree:true});} 131if(form.hasClass("auto-submit-on-select-change")){$("select",form).on("change",()=>form.trigger('submit'));} 132const autosubmit=form.data("autosubmit");if(autosubmit){for(const name of autosubmit.split(",")){$(`[name="${name.trim()}"]`,form).on("change",()=>form.trigger('submit'));}} 133const form_processing=(callback)=>{form.removeClass("success error").addClass("processing");if(typeof callback==="function"){callback();}};const form_success=(data,status,jqxhr)=>{setTimeout(()=>{$(form).trigger("foundation.form.success",data);form[0].reset();form.removeClass("processing").addClass("success");},1000);};const form_error=(jqxhr,status,msg)=>{setTimeout(()=>{$(form).trigger("foundation.form.error",jqxhr);form.removeClass("processing").addClass("error");console.error("Foundation Post Error: ",jqxhr);},1000);};const form_submit=(postUrl,postType="POST",jsonData=false)=>{form_processing(()=>{let formdata=new FormData(form[0]);const timeout=30*1000;const async=true;let contentType=false;if(jsonData===true){const data={};formdata.forEach((value,key)=>(data[key]=value));formdata=JSON.stringify(data);contentType="application/json";} 134$.ajax({type:postType,url:postUrl,data:formdata,async:async,contentType:contentType,processData:false,success:form_success,error:form_error,timeout:timeout});});};const form_recaptcha=(callback)=>{if(typeof grecaptcha==="undefined")return;$(".g-recaptcha iframe",form).removeClass("error");const stackid=grecaptcha.stackid;const formdata=new FormData(form[0]);if(grecaptcha.version=="v3"){formdata.append("g-recaptcha-response",grecaptcha.token);} 135$.ajax({type:"POST",url:"files/"+stackid+"_recaptcha.php",data:formdata,cache:false,async:false,contentType:false,processData:false,success:(data)=>{if(typeof callback==="function"){callback();}},error:(data)=>{console.error("Error checking reCAPTCHA");console.error(data);$(".g-recaptcha iframe",form).addClass("error");form_error();},complete:()=>{grecaptcha.reset();}});};stacks.forms.stacks_in_567_24={};stacks.forms.stacks_in_567_24.ajax_submit=(postUrl,postType="POST",jsonData=false)=>{if(typeof grecaptcha!=="undefined"){form_recaptcha(function(){form_submit(postUrl,postType,jsonData);});}else if($(".topyenoh input").length>0){if($(".topyenoh input").val().length==0){form_submit(postUrl,postType,jsonData);}else{console.warn("Failed honeypot. Release the honey badgers!");}}else{form_submit(postUrl,postType,jsonData);}}; 136 137return stack;})(stacks.stacks_in_567_24); 138stacks.stacks_in_567_74 = {}; 139stacks.stacks_in_567_74 = (function(stack) { 140var jQuery = stacks.jQuery;var $ = jQuery; const element=document.getElementById("f6-action-stacks_in_567_74");if(element==null)return;$(document).on("formvalid.zf.abide",function(e,form){if(element.parentNode.id==form[0].id){console.log(`Triggering POST AJAX Action for form id"${form[0].id}"`);stacks.forms[element.parentNode.id].ajax_submit(element.dataset.url,"POST",false);}}); 141 142return stack;})(stacks.stacks_in_567_74); 143stacks.stacks_in_567_146 = {}; 144stacks.stacks_in_567_146 = (function(stack) { 145var jQuery = stacks.jQuery;var $ = jQuery; const form=$("#stacks_in_567_146");const observer=new MutationObserver((mutationsList)=>{for(const mutation of mutationsList){if(mutation.type==='childList'&&mutation.addedNodes.length>0){form.foundation("_reflow");break;}}});if(form.length>0){observer.observe(form[0],{childList:true,subtree:true});} 146if(form.hasClass("auto-submit-on-select-change")){$("select",form).on("change",()=>form.trigger('submit'));} 147const autosubmit=form.data("autosubmit");
147if(autosubmit){for(const name of autosubmit.split(",")){$(`[name="${name.trim()}"]`,form).on("change",()=>form.trigger('submit'));}} 148const form_processing=(callback)=>{form.removeClass("success error").addClass("processing");if(typeof callback==="function"){callback();}};const form_success=(data,status,jqxhr)=>{setTimeout(()=>{$(form).trigger("foundation.form.success",data);form[0].reset();form.removeClass("processing").addClass("success");},1000);};const form_error=(jqxhr,status,msg)=>{setTimeout(()=>{$(form).trigger("foundation.form.error",jqxhr);form.removeClass("processing").addClass("error");console.error("Foundation Post Error: ",jqxhr);},1000);};const form_submit=(postUrl,postType="POST",jsonData=false)=>{form_processing(()=>{let formdata=new FormData(form[0]);const timeout=30*1000;const async=true;let contentType=false;if(jsonData===true){const data={};formdata.forEach((value,key)=>(data[key]=value));formdata=JSON.stringify(data);contentType="application/json";} 149$.ajax({type:postType,url:postUrl,data:formdata,async:async,contentType:contentType,processData:false,success:form_success,error:form_error,timeout:timeout});});};const form_recaptcha=(callback)=>{if(typeof grecaptcha==="undefined")return;$(".g-recaptcha iframe",form).removeClass("error");const stackid=grecaptcha.stackid;const formdata=new FormData(form[0]);if(grecaptcha.version=="v3"){formdata.append("g-recaptcha-response",grecaptcha.token);} 150$.ajax({type:"POST",url:"files/"+stackid+"_recaptcha.php",data:formdata,cache:false,async:false,contentType:false,processData:false,success:(data)=>{if(typeof callback==="function"){callback();}},error:(data)=>{console.error("Error checking reCAPTCHA");console.error(data);$(".g-recaptcha iframe",form).addClass("error");form_error();},complete:()=>{grecaptcha.reset();}});};stacks.forms.stacks_in_567_146={};stacks.forms.stacks_in_567_146.ajax_submit=(postUrl,postType="POST",jsonData=false)=>{if(typeof grecaptcha!=="undefined"){form_recaptcha(function(){form_submit(postUrl,postType,jsonData);});}else if($(".topyenoh input").length>0){if($(".topyenoh input").val().length==0){form_submit(postUrl,postType,jsonData);}else{console.warn("Failed honeypot. Release the honey badgers!");}}else{form_submit(postUrl,postType,jsonData);}}; 151 152return stack;})(stacks.stacks_in_567_146); 153stacks.stacks_in_567_147 = {}; 154stacks.stacks_in_567_147 = (function(stack) { 155var jQuery = stacks.jQuery;var $ = jQuery; const element=document.getElementById("f6-action-stacks_in_567_147");if(element==null)return;$(document).on("formvalid.zf.abide",function(e,form){if(element.parentNode.id==form[0].id){console.log(`Triggering POST AJAX Action for form id"${form[0].id}"`);stacks.forms[element.parentNode.id].ajax_submit(element.dataset.url,"POST",false);}}); 156 157return stack;})(stacks.stacks_in_567_147); 158stacks.stacks_in_914 = {}; 159stacks.stacks_in_914 = (function(stack) { 160var jQuery = stacks.jQuery;var $ = jQuery; 161 162return stack;})(stacks.stacks_in_914); 163stacks.stacks_in_919_8 = {}; 164stacks.stacks_in_919_8 = (function(stack) { 165var jQuery = stacks.jQuery;var $ = jQuery; 166var googleFonts = []; 167var uniqueGoogleFonts = googleFonts.filter(function(item,i,googleFonts){return i == googleFonts.indexOf(item);}); 168var langtest = 'False'; 169var enlang = 'False'; 170var cookiesOff = {'Lang':'','cat1':'On','cat2':'Off','cat3':'Off','cat4':'Off','cat5':'Off','cat6':'Off'}; 171var cookiesOn = {'Lang':'','cat1':'On','cat2':'On','cat3':'On','cat4':'On','cat5':'On','cat6':'On'}; 172var switches = '#pc_ps_cat2_cb,#pc_ps_cat3_cb,#pc_ps_cat4_cb,#pc_ps_cat5_cb,#pc_ps_cat6_cb'; 173var cookieName = 'cookieConsent'; 174var cookieLife=90; 175var extendLife=true; 176var showFor = 'GDPR'; // all, gdpr or custom 177var showDelay = '800'; // time in ms to delay opening the cc modal 178var gdpr = 'AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE, GB, GF, GP, MQ, ME, YT, RE, MF, GI, AX, PM, GL, BL, SX, AW, CW, WF, PF, NC, TF, AI, BM, IO, VG, KY, FK, MS, PN, SH, GS, TC, AD, LI, MC, SM, VA, JE, GG, GI, CH'; 179var custom = 'CA, US'; 180var consentLog = 'False'; 181var escape = 'False'; 182var fc,fe = 'button, [href], input, select, textarea, [tabindex]:not
182([tabindex="-1"])'; 183 184function getCookieConsent(){ 185 pcarray=Cookies.getJSON(cookieName); //check for existing cookie 186 if(!pcarray){ 187 pcarray=cookiesOff; 188 getLanguage(); 189 switch(showFor){ 190 case 'ALL': 191 showCookieConsent(); 192 break; 193 case 'GDPR': 194 sf = gdpr; 195 getGeoLocation(sf); 196 break; 197 case 'Custom': 198 sf = custom; 199 getGeoLocation(sf); 200 break; 201 } 202 } else { 203 extendLife ? Cookies.set(cookieName, pcarray, { expires: cookieLife, path: "/", sameSite: "Strict" }) : extendLife; 204 getLanguage(); 205 } 206} 207 208function getGeoLocation(sf){ 209 apikey = '6169ca87893c046737662b97b7deefd6a8d46cd09b549e12f6507d613b8dbdbc'; 210 url = 'https://api.ipinfodb.com/v3/ip-country/?'; 211 options = 'key='+apikey+'&format=json&callback=?'; 212 213 if(!apikey){ 214 err = 'Missing API Key'; 215 console.log("GeoLocation Request Failed: " + err); 216 geoCC = 'ALL'; 217 showCookieConsent() 218 } else { 219 $.getJSON(url+options) 220 .done(function(data){ 221 status = data.statusCode; 222 switch(status){ 223 case 'OK': 224 geoCC = data.countryCode; 225 break; 226 case 'ERROR': 227 geoCC = 'ALL' 228 console.log("GeoLocation Request Failed: " + data.statusMessage); 229 break; 230 } 231 }) 232 .fail(function(jqxhr,textStatus,error){ 233 geoCC = 'ALL'; 234 err = textStatus + ", " + error; 235 console.log("GeoLocation Request Failed: " + err); 236 }) 237 .always(function(){ 238 if ($.inArray(geoCC, sf.replace(/,\s+/g, ',').split(',')) >= 0) { 239 showCookieConsent() 240 } else { 241 if(geoCC == 'All'){ 242 showCookieConsent() 243 } else { 244 setCookiesOn() 245 } 246 } 247 }) 248 } 249} 250 251function getLanguage(){ 252 if(langtest==='True'){ 253 lang = 'EN'; 254 pcarray['Lang']=lang.toUpperCase(); 255 } else { 256 lang = pcarray['Lang']; 257 if(!lang){ 258 lang = navigator.languages ? navigator.languages[0] : navigator.language; 259 lang = lang.substr(0, 2); 260 lang = lang.toUpperCase(); 261 } 262 } 263 $('#privacy-center').attr('data-lang',lang); 264} 265 266function loadGoogleFonts(){ 267 $.each(uniqueGoogleFonts,function(i,val){ 268 $.ajax("https://fonts.googleapis.com/css?family="+val) 269 .done(function(data){ 270 var linkElement="<link rel='stylesheet' media='all' href='https://fonts.googleapis.com/css?family="+val+"'>"; 271 $('#privacy-center').append(linkElement) 272 }) 273 .fail(function(xhr,status,error){ 274 var error='Error loading Google Font: "<strong>'+val+'</strong>"', 275 alert='<div style="background:red;color:white;text-align:center;border:2px solid black;border-radius:6px;padding:16px;position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:calc( + 1)" data-alert class="alert-box alert radius">'+error+'<br>Verify that the family name is spelled correctly.</div>'; 276 console.error(error);console.error(xhr); 277 $(function(){ 278 $('body').append(alert) 279 }) 280 }) 281 }) 282} 283 284function setCookiesOn(){ 285 lang = $('#privacy-center').attr('data-lang'); 286 cookiesOn['Lang']=lang.toUpperCase(); 287 Cookies.set(cookieName, cookiesOn, { expires: cookieLife, path: "/", sameSite: "Strict" }); 288 if(consentLog==='True'){ 289 $.ajax({ 290 method:'POST', 291 url:'../rw_common/plugins/stacks/PrivacyCenter/consentlog.php', 292 data: { consent: 'Accept All' } 293 }) 294 .done(function() { 295 $.pcmodal.close(); 296 }) 297 .fail(function( msg ) { 298 console.log(msg); 299 }) 300 .always(function(){ 301 location.reload(); 302 }); 303 } else { 304 $.pcmodal.close(); 305 location.reload(); 306 } 307} 308 309function setCookiesOff(){ 310 lang = $('#privacy-center').attr('data-lang'); 311 cookiesOff['Lang']=lang.toUpperCase(); 312 pcarray = cookiesOff; 313} 314
315//combine mouse click, space bar and return key press 316function psA11yClick(e){ 317 if(e.type === 'click'){ 318 return true; 319 } 320 else if(e.type === 'keypress'){ 321 var code = e.charCode || e.keyCode; 322 if((code === 32)|| (code === 13)){ 323 return true; 324 } 325 } 326 else{ 327 return false; 328 } 329} 330function psA11yEscape(e){ 331 if(e.type === 'keydown'){ 332 var code = e.charCode || e.keyCode; 333 if(code === 27) { 334 return true; 335 } else { 336 return false; 337 } 338 } 339} 340 341// Cookie Consent Buttons 342function ccRejectAll(){ 343 Cookies.set(cookieName, pcarray, { path: "/", sameSite: "Strict" }); 344 if(consentLog==='True'){ 345 $.ajax({ 346 method:'POST', 347 url:'../rw_common/plugins/stacks/PrivacyCenter/consentlog.php', 348 data: { consent: 'Reject All' } 349 }) 350 .fail(function( msg ) { 351 console.log(msg); 352 }) 353 .always(function(){ 354 $.pcmodal.close(); 355 }); 356 } else { 357 $.pcmodal.close(); 358 } 359} 360function ccAcceptAll(){ 361 $.pcmodal.close();
362 setCookiesOn(); 363} 364 365// Privacy Settings Buttons 366function rejectAllChange(){ 367 $(switches).prop('checked', false).attr('aria-checked',false); 368 setCookiesOff(); 369} 370function allowAllChange(){ 371 pcarray=cookiesOn; 372 pcarray['Lang'] = $('#privacy-center').attr('data-lang').toUpperCase(); 373 $(switches).prop('checked', true).attr('aria-checked',true); 374} 375function cancelChange(){ 376 $.pcmodal.close(); 377 location.reload(); 378} 379 380function saveChange(){ 381 lang = $('#privacy-center').attr('data-lang'); 382 pcarray['Lang']=lang.toUpperCase(); 383 Cookies.set(cookieName, pcarray, { expires: cookieLife, path: "/", sameSite: "Strict" }); 384 if(consentLog==='True'){ 385 $.ajax({ 386 method:'POST', 387 url:'../rw_common/plugins/stacks/PrivacyCenter/consentlog.php', 388 data: { consent: 'Manage', prefer: JSON.stringify(pcarray) } 389 }) 390 .done(function() { 391 $.pcmodal.close(); 392 }) 393 .fail(function( msg ) { 394 console.log(msg); 395 }) 396 .always(function(){ 397 location.reload(); 398 }); 399 } else { 400 $.pcmodal.close(); 401 location.reload(); 402 } 403} 404 405function cat2Change(){ 406 switch(pcarray['cat2']) { 407 case "On": 408 pcarray['cat2'] = "Off"; 409 $("#pc_ps_cat2_cb").prop('checked',false).attr('aria-checked',fal
409se); 410 break; 411 case "Off": 412 pcarray['cat2'] = "On"; 413 $("#pc_ps_cat2_cb").prop('checked',true).attr('aria-checked',true); 414 break; 415 } 416} 417 418function cat3Change(){ 419 switch(pcarray['cat3']) { 420 case "On": 421 pcarray['cat3'] = "Off"; 422 $("#pc_ps_cat3_cb").prop('checked',false).attr('aria-checked',false); 423 break; 424 case "Off": 425 pcarray['cat3'] = "On"; 426 $("#pc_ps_cat3_cb").prop('checked',true).attr('aria-checked',true); 427 break; 428 } 429} 430 431function cat4Change(){ 432 switch(pcarray['cat4']) { 433 case "On": 434 pcarray['cat4'] = "Off"; 435 $("#pc_ps_cat4_cb").prop('checked',false).attr('aria-checked',false); 436 break; 437 case "Off": 438 pcarray['cat4'] = "On"; 439 $("#pc_ps_cat4_cb").prop('checked',true).attr('aria-checked',true); 440 break; 441 } 442} 443function cat5Change(){ 444 switch(pcarray['cat5']) { 445 case "On": 446 pcarray['cat5'] = "Off"; 447 $("#pc_ps_cat5_cb").prop('checked',false).attr('aria-checked',fal
447se); 448 break; 449 case "Off": 450 pcarray['cat5'] = "On"; 451 $("#pc_ps_cat5_cb").prop('checked',true).attr('aria-checked',true); 452 break; 453 } 454} 455function cat6Change(){ 456 switch(pcarray['cat6']) { 457 case "On": 458 pcarray['cat6'] = "Off"; 459 $("#pc_ps_cat6_cb").prop('checked',false).attr('aria-checked',false); 460 break; 461 case "Off": 462 pcarray['cat6'] = "On"; 463 $("#pc_ps_cat6_cb").prop('checked',true).attr('aria-checked',true); 464 break; 465 } 466} 467 468//show cookie consent modal if required 469function showCookieConsent(){ 470 if (!Cookies.get(cookieName)) { 471 if (uniqueGoogleFonts.length > 0){ 472 if (!$('link[href="https://fonts.googleapis.com"]').length) { 473 var $headlinklast=$("head").find("link[rel='stylesheet']:last"); 474 var linkElement="<link rel='preconnect' href='https://fonts.googleapis.com' crossorigin>"; 475 if($headlinklast.length){$headlinklast.after(linkElement)}else{$("head").append(linkElement)} 476 } 477 $('#pc_cc').on($.pcmodal.BEFORE_OPEN, function(){ 478 loadGoogleFonts(); 479 }) 480 } 481 if(enlang=='True'){ 482 if($('#pc_cc').attr('data-mode')=='ml'){ 483 var layout=$('#pc_cc').attr('data-layout'); 484 $.ajax({ 485 url: '../rw_common/plugins/stacks/PrivacyCenter/cookieconsent'+layout+'.html', 486 }) 487 .done(function(newHTML,textStatus,jqXHR){ 488 $(newHTML).appendTo('#pc_cc').pcmodal() 489 }) 490 .fail(function(newHTML,textStatus,error){ 491 err = textStatus + ", " + error; 492 console.log("Error Loading Cookie Consent Dialog: " + err); 493 }) 494 } else { 495 console.log('Cookie Consent Multilingual Mode not enabled.'); 496 } 497 } 498 $('#pc_cc').attr('aria-hidden','false'); 499 setTimeout(function(){ 500 $('#pc_cc').pcmodal({ 501 escapeClose: false, 502 clickClose: false, 503 showClose: false, 504 fadeDuration: 500, 505 fadeDelay: 0.5, 506 }) 507 $("#pc_cc").on($.pcmodal.OPEN, function(){ 508 fc = $(this).find(fe).filter(':visible'); 509 ffe = $(fc[0]); 510 lfe = fc[fc.length - 1]; 511 $('#pc_cc_allow').focus(); 512 $(this).on('keydown', function(e) { 513 let isTabPressed = e.key === 'Tab' || e.keyCode === 9; 514 if (!isTabPressed) { 515 return; 516 } 517 if (e.shiftKey) { 518 if (document.activeElement === ffe) { 519 lfe.focus(); 520 e.preventDefault(); 521 } 522 } else { 523 if (document.activeElement === lfe) { 524 ffe.focus(); 525 e.preventDefault(); 526 } 527 } 528 }) 529 $('#pc_cc_reject,#pc_cc_allow,#pc_cc_settings').on('click keypress', function (e){ 530 if(psA11yClick(e) === true){ 531 switch ($(this).attr('id')){ 532 case 'pc_cc_reject': 533 ccRejectAll(); 534 break; 535 case 'pc_cc_allow': 536 ccAcceptAll(); 537 break; 538 case 'pc_cc_settings': 539 showPrivacySettings(); 540 break; 541 } 542 } 543 }) 544 $('#pc_cc_lang_button').on('click',function(e){ 545 e.preventDefault(); 546 $('#pc_cc_lang_dropdown').toggleClass('pc_cc_lang_dd_show').attr('aria-expanded', 'true');
547 fbe = 'button, [tabindex]:not([tabindex="-1"])'; 548 fbc = $('#pc_cc_lang_dropdown').find(fbe).filter(':visible'); 549 fbi = $('.pc_cc_dd_item:first'); 550 fbfe = $(fbc[0]); 551 lbfe = fbc[fbc.length - 1]; 552 fbi.focus(); 553 $('#pc_cc_lang_dropdown').on('keydown', function(e) { 554 let isTabPressed = e.key === 'Tab' || e.keyCode === 9; 555 if (!isTabPressed) { 556 return; 557 } 558 if (e.shiftKey) { 559 if (document.activeElement === fbfe) { 560 lbfe.focus(); 561 e.preventDefault(); 562 } 563 } else { 564 if (document.activeElement === lbfe) { 565 fbfe.focus(); 566 e.preventDefault(); 567 } 568 } 569 }) 570 if(psA11yEscape(e) === true){ 571 $('#pc_cc_lang_dropdown').removeClass('pc_cc_lang_dd_show'); 572 $('#pc_cc_allow').focus(); 573 //return; 574 } 575 }) 576 }) 577 }, showDelay) 578 $('#pc_cc').on($.pcmodal.CLOSE, function(){ 579 $('#pc_cc').remove(); 580 }) 581 } 582} 583//show privacy settings modal 584function showPrivacySettings(){ 585 pcarray=Cookies.getJSON(cookieName); //check for existing cookie consent 586 if(!pcarray){ 587 pcarray=cookiesOff; 588 } 589 if(enlang=='True'){ 590 if($('#privacySettings').attr('data-mode')=='ml'){ 591 $.ajax({ 592 url: '../rw_common/plugins/stacks/PrivacyCenter/privacysettings.html' 593 }) 594 .done(function(newHTML, textStatus, jqXHR) { 595 $(newHTML).appendTo('#privacySettings').pcmodal(); 596 }) 597 .fail(function(jqXHR, textStatus, errorThrown){ 598 err = textStatus + ", " + error; 599 console.log("Error Loading Privacy Settings Dialog: " + err); 600 }) 601 .always(function(){ 602 $('.openprivacysettings').removeAttr("disabled"); 603 }) 604 } else { 605 console.log('Privacy Settings Multilingual Mode not enabled.'); 606 } 607 } 608 $('#privacySettings').attr('aria-hidden','false'); 609 $("#privacySettings").pcmodal({ 610 closeExisting: true, 611 escapeClose: false, 612 clickClose: false, 613 showClose: false, 614 fadeDuration: 500, 615 fadeDelay: 0.5, 616 }) 617 $('#privacySettings').on($.pcmodal.OPEN, function(){ 618 var psmodal = $('#pc_ps_titlebar, #pc_ps_body, #pc_ps_footer'); 619 $('#pc_ps_allow').focus(); 620 fc = $('#privacySettings').find(fe).filter(':visible'); 621 ffe = $(fc[0]); 622 lfe = fc[fc.length - 1]; 623 $('#privacySettings').on('keydown', function(e) { 624 let isTabPressed = e.key === 'Tab' || e.keyCode === 9; 625 if (!isTabPressed) { 626 return; 627 } 628 if (e.shiftKey) { 629 if (document.activeElement === ffe) { 630 lfe.focus(); 631 e.preventDefault(); 632 } 633 } else { 634 if (document.activeElement === lfe) { 635 ffe.focus(); 636 e.preventDefault(); 637 } 638 } 639 }) 640 if(pcarray['cat2'] == "On"){ 641 $("#pc_ps_cat2_cb").prop('checked',true).attr('aria-checked',true); 642 } 643 if(pcarray['cat3'] == "On"){ 644 $("#pc_ps_cat3_cb").prop('checked',true).attr('aria-checked',true); 645 } 646 if(pcarray['cat4'] == "On"){ 647 $("#pc_ps_cat4_cb").prop('checked',true).attr('aria-checked',true); 648 } 649 if(pcarray['cat5'] == "On"){ 650 $("#pc_ps_cat5_cb").prop('checked',true).attr('aria-checked',true); 651 } 652 if(pcarray['cat6'] == "On"){ 653 $("#pc_ps_cat6_cb").prop('checked',true).attr('aria-checked',true); 654 } 655 $('#pc_ps_lang_button').on('click',function(e){ 656 e.preventDefault(); 657 $('#pc_ps_lang_dropdown').toggleClass('pc_ps_lang_dd_show').attr('aria-expanded', 'true');
658 fbe = 'button, [tabindex]:not([tabindex="-1"])'; 659 fbc = $('#pc_ps_lang_dropdown').find(fbe).filter(':visible'); 660 fbfe = $(fbc[0]); 661 lbfe = fbc[fbc.length - 1]; 662 $('.pc_ps_dd_item:first').focus(); 663 $('#pc_ps_lang_dropdown').on('keydown', function(e) { 664 let isTabPressed = e.key === 'Tab' || e.keyCode === 9; 665 if (!isTabPressed) { 666 return; 667 } 668 if (e.shiftKey) { 669 if (document.activeElement === fbfe) { 670 lbfe.focus(); 671 e.preventDefault(); 672 } 673 } else { 674 if (document.activeElement === lbfe) { 675 fbfe.focus(); 676 e.preventDefault(); 677 } 678 } 679 }) 680 if(psA11yEscape(e) === true){ 681 $('#pc_ps_lang_dropdown').removeClass('pc_ps_lang_dd_show'); 682 $('#pc_ps_allow').focus(); 683 //return; 684 } 685 }) 686 $accordion = $('.pc_js-accordion'); 687 $accordion_header = $accordion.find('.pc_js-accordion-header'); 688 $accordion_header = $accordion_header.not('> .pc_ps_swswitch'); 689 settings = {speed: 400,oneOpen: true}; // default settings 690 accordion = { 691 // pass configurable object literal 692 init: function($settings) { 693 $accordion_header.on('click', function() { 694 accordion.toggle($(this)); 695 //setTimeout(() => { 696 $('#privacySettings .pc_ps_body').animate({ 697 scrollTop: $(this).offset().top 698 }, 1000) 699 //}, 400) 700 }).find('.pc_ps_swswitch').on('click',function(e){ 701 e.stopPropagation(); 702 }) 703 $.extend(settings, $settings); 704 // ensure only one accordion is active if oneOpen is true 705 if(settings.oneOpen && $('.pc_js-accordion-item.active').length > 1) { 706 $('.pc_js-accordion-item.active:not(:first)').removeClass('active'); 707 } 708 // reveal the active accordion bodies 709 $('.pc_js-accordion-item.active').find('> .pc_js-accordion-body').show(); 710 }, 711 toggle: function($this) { 712 if(settings.oneOpen && $($this)[0] != $($this).closest('.pc_js-accordion').find('> .pc_js-accordion-item.active > .pc_js-accordion-header')[0]) { 713 $($this).closest('.pc_js-accordion').find('> .pc_js-accordion-item').removeClass('active').find('.pc_js-accordion-body').slide
713Up() 714 } 715 // show/hide the clicked accordion item 716 $($this).closest('.pc_js-accordion-item').toggleClass('active'); 717 $($this).next().stop().slideToggle(settings.speed); 718 } 719 } 720 accordion.init({ speed: 300, oneOpen: true }); 721 //accept and reject buttons 722 $("#pc_ps_reject, #pc_ps_allow, #pc_ps_cancel, #pc_ps_save").on("click keypress", function (e){ 723 if(psA11yClick(e) === true){ 724 switch ($(this).attr('id')){ 725 case "pc_ps_reject": 726 rejectAllChange(); 727 break; 728 case "pc_ps_allow": 729 allowAllChange(); 730 break; 731 case "pc_ps_cancel": 732 cancelChange(); 733 //psmodal.remove(); 734 break; 735 case "pc_ps_save": 736 saveChange(); 737 break; 738 } 739 } 740 }) 741 //set cookie consent 742 $(switches).on("click", function (){ 743 switch ($(this).attr('id')){ 744 case "pc_ps_cat2_cb": 745 cat2Change(); 746 break; 747 case "pc_ps_cat3_cb": 748 cat3Change(); 749 break; 750 case "pc_ps_cat4_cb": 751 cat4Change() 752 break; 753 case "pc_ps_cat5_cb": 754 cat5Change() 755 break; 756 case "pc_ps_cat6_cb": 757 cat6Change() 758 break; 759 } 760 }) 761 }) 762} 763 764$(function(){ 765 if(escape == 'False'){ 766 getCookieConsent() 767 } 768 $('.openprivacysettings').on('click',function(){ 769 $(this).attr("disabled"); 770 showPrivacySettings() 771 }) 772 $('#pc_cc').on($.pcmodal.OPEN, function(){ 773 $('#pc_cc_txtlink, #pc_cc_settings').on('click',function(e){ 774 e.preventDefault(); 775 showPrivacySettings() 776 }) 777 }) 778 $('#pc_privacy-badge').appendTo(document.body); 779}) 780 781 782// -- End Privacycenter Each js Template -- // 783return stack;})(stacks.stacks_in_919_8); 784stacks.stacks_in_919_10 = {}; 785stacks.stacks_in_919_10 = (function(stack) { 786var jQuery = stacks.jQuery;var $ = jQuery;var googleFonts = ['Roboto','Roboto','Roboto']; 787var uniqueGoogleFonts=googleFonts.filter((function(o,e,n){return e==n.indexOf(o)}));function loadGoogleFonts(){$.each(uniqueGoogleFonts,(function(o,e){$.ajax("https://fonts.googleapis.com/css?family="+e).done((function(o){var n="<link rel='stylesheet' media='all' href='https://fonts.googleapis.com/css?family="+e+"'>";$("#privacy-center").append(n)})).fail((function(o,n,t){var i='<div style="background:red;color:white;text-align:center;border:2px solid black;border-radius:6px;padding:16px;position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:calc( + 1)" data-alert class="alert-box alert radius">'+('Error loading Google Font: "<strong>'+e+'</strong>"')+"<br>Verify that the family name is spelled correctly.</div>";$((function(){$("body").append(i)}))}))}))}$((function(){if(uniqueGoogleFonts.length>0){if(!$('link[href="https://fonts.googleapis.com"]').length){var o=$("head").find("link[rel='stylesheet']:last"),e="<link rel='preconnect' href='https://fonts.googleapis.com' crossorigin>";o.length?o.after(e):$("head").append(e)}$("#pc_cc").on($.pcmodal.BEFORE_OPEN,(function(){loadGoogleFonts()}))}})); 788 789 790return stack;})(stacks.stacks_in_919_10); 791stacks.stacks_in_919_19 = {}; 792stacks.stacks_in_919_19 = (function(stack) { 793var jQuery = stacks.jQuery;var $ = jQuery; 794 795return stack;})(stacks.stacks_in_919_19); 796stacks.stacks_in_919_21 = {}; 797stacks.stacks_in_919_21 = (function(stack) { 798var jQuery = stacks.jQuery;var $ = jQuery;var googleFonts = ['Roboto','Roboto','Roboto','Roboto','Roboto','Roboto']; 799var uniqueGoogleFonts=googleFonts.filter((function(o,e,n){return e==n.indexOf(o)}));function loadGoogleFonts(){$.each(uniqueGoogleFonts,(function(o,e){$.ajax("https://fonts.googleapis.com/css?family="+e).done((function(o){var n="<link rel='stylesheet' media='all' href='https://fonts.googleapis.com/css?family="+e+"'>";$("#privacy-center").append(n)})).fail((function(o,n,t){var i='<div style="background:red;color:white;text-align:center;border:2px solid black;border-radius:6px;padding:16px;position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:calc(99 + 1)" data-alert class="alert-box alert radius">'+('Error loading Google Font: "<strong>'+e+'</strong>"')+"<br>Verify that the family name is spelled correctly.</div>";$((function(){$("body").append(i)}))}))}))}$((function(){if(uniqueGoogleFonts.length>0){if(!$('link[href="https://fonts.googleapis.com"]').length){var o=$("head").find("link[rel='stylesheet']:last"),e="<link rel='preconnect' href='https://fonts.googleapis.com' crossorigin>";o.length?o.after(e):$("head").append(e)}$("#privacySettings").on($.pcmodal.BEFORE_OPEN,(function(){loadGoogleFonts()}))}})); 800 801 802return stack;})(stacks.stacks_in_919_21); 803stacks.stacks_in_919_68 = {}; 804stacks.stacks_in_919_68 = (function(stack) { 805var jQuery = stacks.jQuery;var $ = jQuery; 806 807return stack;})(stacks.stacks_in_919_68); 808stacks.stacks_in_919_53 = {}; 809stacks.stacks_in_919_53 = (function(stack) { 810var jQuery = stacks.jQuery;var $ = jQuery; 811function appendScript(){var e="Page Header";switch(e){case"Page Header":e="head";break;case"Page Body":e="body";break}$(e).append("<!-- Global site tag (gtag.js) - Google Analytics -->\r\n<script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=G-QLHFHNQCM9\"><\/script>\r\n<script>\r\n window.dataLayer = window.dataLayer || [];\r\n function gtag(){dataLayer.push(arguments);}\r\n gtag(\'js\', new Date());\r\n\r\n gtag(\'config\', \'G-QLHFHNQCM9\');\r\n<\/script>")}$((function(){if(cat="Category 2",category=cat.substr(0,3).toLowerCase()+cat.substr(-1),"cat1"==category)appendScript();
811else{if(consent=Cookies.getJSON("cookieConsent"),!consent)return;"On"==consent[category]&&appendScript()}})); 812 813 814return stack;})(stacks.stacks_in_919_53); 815stacks.stacks_in_919_33 = {}; 816stacks.stacks_in_919_33 = (function(stack) { 817var jQuery = stacks.jQuery;var $ = jQuery;function showCookie(){switch(disabled="false",cat="Category 1",category=cat.substr(0,3).toLowerCase()+cat.substr(-1),category){case"":return;case"cat1":tableid="cat1",disabled="true";break;case"cat2":tableid="cat2",$("#pc_ps_cat2_cb").attr("aria-checked")?disabled="true":disabled="false";break;case"cat3":tableid="cat3",$("#pc_ps_cat3_cb").attr("aria-checked")?disabled="true":disabled="false";break;case"cat4":tableid="cat4",$("#pc_ps_cat4_cb").attr("aria-checked")?disabled="true":disabled="false";break;case"cat5":tableid="cat5",$("#pc_ps_cat5_cb").attr("aria-checked")?disabled="true":disabled="false";break;case"cat6":tableid="cat6",$("#pc_ps_cat6_cb").attr("aria-checked")?disabled="true":disabled="false";break}table="#pc_ps_"+tableid+"_table",markup='<tr><td>cookieConsent</td><td id="stacks_in_919_33_desc">This is the default cookie that we set to store your cookie consent preferences.</td><td><div id="stacks_in_919_33_delete" class="pc_ps_ccdelete" role="button"><svg class="pc_ps_icon-trash-alt"><use xlink:href="../rw_common/plugins/stacks/PrivacyCenter/psicon-trash-alt.svg#psicon-trash-alt"></use></svg></div></td></tr>',$(table).append(markup),$("#pc_ps_"+tableid+" .pc_js-subaccordion").css("display","block"),"true"==disabled?($("#stacks_in_919_33_delete").addClass("disabled"),$("#stacks_in_919_33_delete").attr("pointer-events","none")):$("#stacks_in_919_33_delete").on("click keypress",(function(e){!0===psA11yClick(e)&&(Cookies.remove("cookieConsent",{path:"/",domain:".perkypeacock.co.uk"}),$(this).closest("tr").fadeOut(500,(function(){$(this).remove()})))}))}function psA11yClick(e){if("click"===e.type)return!0;if("keypress"!==e.type)return!1;var t=e.charCode||e.keyCode;return 32===t||13===t||void 0}$((function(){cookie=Cookies.get("cookieConsent"),cookie&&$("#privacySettings").on($.pcmodal.OPEN,(function(){setTimeout((function(){showCookie()}),1e3)}))})); 818 819return stack;})(stacks.stacks_in_919_33); 820stacks.stacks_in_919_70 = {}; 821stacks.stacks_in_919_70 = (function(stack) { 822var jQuery = stacks.jQuery;var $ = jQuery; 823function psA11yClick(t){if("click"===t.type)return!0;if("keypress"!==t.type)return!1;var e=t.charCode||t.keyCode;return 32===e||13===e||void 0}function translate(){$("#stacks_in_919_33_desc").text("Cookie Description")}$((function(){var t="";lang=$("#privacy-center").attr("data-lang"),$("#privacySettings").on($.pcmodal.OPEN,(function(){lang.toLowerCase()==t.toLowerCase()&&setTimeout((function(){translate()}),1e3),$("#pc_ps_lang_dd_"+t).on("click keypress",(function(t){!0===psA11yClick(t)&&translate()}))}))})); 824 825 826return stack;})(stacks.stacks_in_919_70); 827stacks.stacks_in_919_41 = {}; 828stacks.stacks_in_919_41 = (function(stack) { 829var jQuery = stacks.jQuery;var $ = jQuery;function showCookie(){switch(disabled="false",cat="Category 2",category=cat.substr(0,3).toLowerCase()+cat.substr(-1),category){case"":return;case"cat1":tableid="cat1",disabled="true";break;case"cat2":tableid="cat2",$("#pc_ps_cat2_cb").attr("aria-checked")?disabled="true":disabled="false";break;case"cat3":tableid="cat3",$("#pc_ps_cat3_cb").attr("aria-checked")?disabled="true":disabled="false";break;case"cat4":tableid="cat4",$("#pc_ps_cat4_cb").attr("aria-checked")?disabled="true":disabled="false";break;case"cat5":tableid="cat5",$("#pc_ps_cat5_cb").attr("aria-checked")?disabled="true":disabled="false";break;case"cat6":tableid="cat6",$("#pc_ps_cat6_cb").attr("aria-checked")?disabled="true":disabled="false";break}table="#pc_ps_"+tableid+"_table",markup='<tr><td>_ga</td><td id="stacks_in_919_41_desc">This cookie is set by Google Analytics to count and track page views anonymously.</td><td><div id="stacks_in_919_41_delete" class="pc_ps_ccdelete" role="button"><svg class="pc_ps_icon-trash-alt"><use xlink:href="../rw_common/plugins/stacks/PrivacyCenter/psicon-trash-alt.svg#psicon-trash-alt"></use></svg></div></td></tr>',$(table).append(markup),$("#pc_ps_"+tableid+" .pc_js-subaccordion").css("display","block"),"true"==disabled?($("#stacks_in_919_41_delete").addClass("disabled"),$("#stacks_in_919_41_delete").attr("pointer-events","none")):$("#stacks_in_919_41_delete").on("click keypress",(function(e){!0===psA11yClick(e)&&(Cookies.remove("_ga",{path:"/",domain:".perkypeacock.co.uk"}),$(this).closest("tr").fadeOut(500,(function(){$(this).remove()})))}))}function psA11yClick(e){if("click"===e.type)return!0;
829if("keypress"!==e.type)return!1;var t=e.charCode||e.keyCode;return 32===t||13===t||void 0}$((function(){cookie=Cookies.get("_ga"),cookie&&$("#privacySettings").on($.pcmodal.OPEN,(function(){setTimeout((function(){showCookie()}),1e3)}))})); 830 831return stack;})(stacks.stacks_in_919_41); 832stacks.stacks_in_919_72 = {}; 833stacks.stacks_in_919_72 = (function(stack) { 834var jQuery = stacks.jQuery;var $ = jQuery; 835function psA11yClick(t){if("click"===t.type)return!0;if("keypress"!==t.type)return!1;var e=t.charCode||t.keyCode;return 32===e||13===e||void 0}function translate(){$("#stacks_in_919_41_desc").text("Cookie Description")}$((function(){var t="";lang=$("#privacy-center").attr("data-lang"),$("#privacySettings").on($.pcmodal.OPEN,(function(){lang.toLowerCase()==t.toLowerCase()&&setTimeout((function(){translate()}),1e3),$("#pc_ps_lang_dd_"+t).on("click keypress",(function(t){!0===psA11yClick(t)&&translate()}))}))})); 836 837 838return stack;})(stacks.stacks_in_919_72); 839stacks.stacks_in_919_47 = {}; 840stacks.stacks_in_919_47 = (function(stack) { 841var jQuery = stacks.jQuery;var $ = jQuery;function showCookie(){switch(disabled="false",cat="Category 2",category=cat.substr(0,3).toLowerCase()+cat.substr(-1),category){case"":return;case"cat1":tableid="cat1",disabled="true";break;case"cat2":tableid="cat2",$("#pc_ps_cat2_cb").attr("aria-checked")?disabled="true":disabled="false";break;case"cat3":tableid="cat3",$("#pc_ps_cat3_cb").attr("aria-checked")?disabled="true":disabled="false";break;case"cat4":tableid="cat4",$("#pc_ps_cat4_cb").attr("aria-checked")?disabled="true":disabled="false";break;case"cat5":tableid="cat5",$("#pc_ps_cat5_cb").attr("aria-checked")?disabled="true":disabled="false";break;case"cat6":tableid="cat6",$("#pc_ps_cat6_cb").attr("aria-checked")?disabled="true":disabled="false";break}table="#pc_ps_"+tableid+"_table",markup='<tr><td>_ga_QLHFHNQCM9</td><td id="stacks_in_919_47_desc">This cookie is set by Google Analytics to store anonymized statistics.</td><td><div id="stacks_in_919_47_delete" class="pc_ps_ccdelete" role="button"><svg class="pc_ps_icon-trash-alt"><use xlink:href="../rw_common/plugins/stacks/PrivacyCenter/psicon-trash-alt.svg#psicon-trash-alt"></use></svg></div></td></tr>',$(table).append(markup),$("#pc_ps_"+tableid+" .pc_js-subaccordion").css("display","block"),"true"==disabled?($("#stacks_in_919_47_delete").addClass("disabled"),$("#stacks_in_919_47_delete").attr("pointer-events","none")):$("#stacks_in_919_47_delete").on("click keypress",(function(e){!0===psA11yClick(e)&&(Cookies.remove("_ga_QLHFHNQCM9",{path:"/",domain:".perkypeacock.co.uk"}),$(this).closest("tr").fadeOut(500,(function(){$(this).remove()})))}))}function psA11yClick(e){if("click"===e.type)return!0;if("keypress"!==e.type)return!1;var t=e.charCode||e.keyCode;return 32===t||13===t||void 0}$((function(){cookie=Cookies.get("_ga_QLHFHNQCM9"),cookie&&$("#privacySettings").on($.pcmodal.OPEN,(function(){setTimeout((function(){showCookie()}),1e3)}))})); 842 843return stack;})(stacks.stacks_in_919_47); 844stacks.stacks_in_919_74 = {}; 845stacks.stacks_in_919_74 = (function(stack) { 846var jQuery = stacks.jQuery;var $ = jQuery; 847function psA11yClick(t){if("click"===t.type)return!0;if("keypress"!==t.type)return!1;var e=t.charCode||t.keyCode;return 32===e||13===e||void 0}function translate(){$("#stacks_in_919_47_desc").text("Cookie Description")}$((function(){var t="";lang=$("#privacy-center").attr("data-lang"),$("#privacySettings").on($.pcmodal.OPEN,(function(){lang.toLowerCase()==t.toLowerCase()&&setTimeout((function(){translate()}),1e3),$("#pc_ps_lang_dd_"+t).on("click keypress",(function(t){!0===psA11yClick(t)&&translate()}))}))})); 848 849 850return stack;})(stacks.stacks_in_919_74);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.