PageSourceSearch

https://garringtoneastmidlands.co.uk/wp-content/themes/garrington/assets/js/footer.js?ver=20170817

js garringtoneastmidlands.co.uk collected 2026-10-07 17:26:55 UTC 45,002 bytes, 3 lines download raw bytes

1!function(e,n){"use strict";function t(e){this.callback=e,this.ticking=!1}function o(n){return n&&"undefined"!=typeof e&&(n===e||n.nodeType)}function a(e){if(arguments.length<=0)throw new Error("Missing arguments in extend function");var n,t,i=e||{};for(t=1;t<arguments.length;t++){var r=arguments[t]||{};for(n in r)"object"!=typeof i[n]||o(i[n])?i[n]=i[n]||r[n]:i[n]=a(i[n],r[n])}return i}function i(e){return e===Object(e)?e:{down:e,up:e}}function r(e,n){n=a(n,r.options),this.lastKnownScrollY=0,this.elem=e,this.debouncer=new t(this.update.bind(this)),this.tolerance=i(n.tolerance),this.classes=n.classes,this.offset=n.offset,this.scroller=n.scroller,this.initialised=!1,this.onPin=n.onPin,this.onUnpin=n.onUnpin,this.onTop=n.onTop,this.onNotTop=n.onNotTop}var d={bind:!!function(){}.bind,classList:"classList"in n.documentElement,rAF:!!(e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame)};e.requestAnimationFrame=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame,t.prototype={constructor:t,update:function(){this.callback&&this.callback(),this.ticking=!1},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0)},handleEvent:function(){this.requestTick()}},r.prototype={constructor:r,init:function(){if(r.cutsTheMustard)return this.elem.classList.add(this.classes.initial),setTimeout(this.attachEvent.bind(this),100),this},destroy:function(){var e=this.classes;this.initialised=!1,this.elem.classList.remove(e.unpinned,e.pinned,e.top,e.initial),this.scroller.removeEventListener("scroll",this.debouncer,!1)},attachEvent:function(){this.initialised||(this.lastKnownScrollY=this.getScrollY(),this.initialised=!0,this.scroller.addEventListener("scroll",this.debouncer,!1),this.debouncer.handleEvent())},unpin:function(){var e=this.elem.classList,n=this.classes;!e.contains(n.pinned)&&e.contains(n.unpinned)||(e.add(n.unpinned),e.remove(n.pinned),this.onUnpin&&this.onUnpin.call(this))},pin:function(){var e=this.elem.classList,n=this.classes;e.contains(n.unpinned)&&(e.remove(n.unpinned),e.add(n.pinned),this.onPin&&this.onPin.call(this))},top:function(){var e=this.elem.classList,n=this.classes;e.contains(n.top)||(e.add(n.top),e.remove(n.notTop),this.onTop&&this.onTop.call(this))},notTop:function(){var e=this.elem.classList,n=this.classes;e.contains(n.notTop)||(e.add(n.notTop),e.remove(n.top),this.onNotTop&&this.onNotTop.call(this))},getScrollY:function(){return void 0!==this.scroller.pageYOffset?this.scroller.pageYOffset:void 0!==this.scroller.scrollTop?this.scroller.scrollTop:(n.documentElement||n.body.parentNode||n.body).scrollTop},getViewportHeight:function(){return e.innerHeight||n.documentElement.clientHeight||n.body.clientHeight},getDocumentHeight:function(){var e=n.body,t=n.documentElement;return Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,e.clientHeight,t.clientHeight)},getElementHeight:function(e){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},getScrollerHeight:function(){return this.scroller===e||this.scroller===n.body?this.getDocumentHeight():this.getElementHeight(this.scroller)},isOutOfBounds:function(e){var n=e<0,t=e+this.getViewportHeight()>this.getScrollerHeight();return n||t},toleranceExceeded:function(e,n){return Math.abs(e-this.lastKnownScrollY)>=this.tolerance[n]},shouldUnpin:function(e,n){var t=e>this.lastKnownScrollY,o=e>=this.offset;return t&&o&&n},shouldPin:function(e,n){var t=e<this.lastKnownScrollY,o=e<=this.offset;return t&&n||o},update:function(){var e=this.getScrollY(),n=e>this.lastKnownScrollY?"down":"up",t=this.toleranceExceeded(e,n);this.isOutOfBounds(e)||(e<=this.offset?this.top():this.notTop(),this.shouldUnpin(e,t)?this.unpin():this.shouldPin(e,t)&&this.pin(),this.lastKnownScrollY=e)}},r.options={tolerance:{up:0,down:0},offset:0,scroller:e,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",initial:"headroom"}},r.cutsTheMustard="undefined"!=typeof d&&d.rAF&&d.bind&&d.classList,e.Headroom=r}(window,document),function(e){e&&(e.fn.headroom=function(n){return this.each(function(){var t=e(this),o=t.data("headroom"),a="object"==typeof n&&n;a=e.extend(!0,{},Headroom.options,a),o||(o=new Headroom(this,a),o.init(),t.data("headroom",o)),"string"==typeof n&&o[n]()})})}(window.Zepto||window.jQuery),function(){function e(){}function n(e,n){for(var t=e.length;t--;)if(e[t].listener===n)return t;return-1}function t(e){return function(){return this[e].apply(this,arguments)}}var o=e.prototype,a=this,i=a.EventEmitter;o.getListeners=function(e){var n,t,o=this._getEvents();if("object"==typeof e){n={};for(t in o)o.hasOwnProperty(t)&&e.test(t)&&(n[t]=o[t])}else n=o[e]||(o[e]=[]);return n},o.flattenListeners=function(e){var n,t=[];for(n=0;n<e.length;n+=1)t.push(e[n].listener);return t},o.getListenersAsObject=function(e){var n,t=this.getListeners(e);return t instanceof Array&&(n={},n[e]=t),n||t},o.addListener=function(e,t){var o,a=this.getListenersAsObject(e),i="object"==typeof t;for(o in a)a.hasOwnProperty(o)&&n(a[o],t)===-1&&a[o].push(i?t:{listener:t,once:!1});return this},o.on=t("addListener"),o.addOnceListener=function(e,n){return this.addListener(e,{listener:n,once:!0})},o.once=t("addOnceListener"),o.defineEvent=function(e){return this.getListeners(e),this},o.defineEvents=function(e){for(var n=0;n<e.length;n+=1)this.defineEvent(e[n]);return this},o.removeListener=function(e,t){var o,a,i=this.getListenersAsObject(e);for(a in i)i.hasOwnProperty(a)&&(o=n(i[a],t),o!==-1&&i[a].splice(o,1));return this},o.off=t("removeListener"),o.addListeners=function(e,n){return this.manipulateListeners(!1,e,n)},o.removeListeners=function(e,n){return this.manipulateListeners(!0,e,n)},o.manipulateListeners=function(e,n,t){var o,a,i=e?this.removeListener:this.addListener,r=e?this.removeListeners:this.addListeners;if("object"!=typeof n||n instanceof RegExp)for(o=t.length;o--;)i.call(this,n,t[o]);else for(o in n)n.hasOwnProperty(o)&&(a=n[o])&&("function"==typeof a?i.call(this,o,a):r.call(this,o,a));return this},o.removeEvent=function(e){var n,t=typeof e,o=this._getEvents();if("string"===t)delete o[e];else if("object"===t)for(n in o)o.hasOwnProperty(n)&&e.test(n)&&delete o[n];else delete this._events;return this},o.removeAllListeners=t("removeEvent"),o.emitEvent=function(e,n){var t,o,a,i,r=this.getListenersAsObject(e);for(a in r)if(r.hasOwnProperty(a))for(o=r[a].length;o--;)t=r[a][o],t.once===!0&&this.removeListener(e,t.listener),i=t.listener.apply(this,n||[]),i===this._getOnceReturnValue()&&this.removeListener(e,t.listener);return this},o.trigger=t("emitEvent"),o.emit=function(e){var n=Array.prototype.slice.call(arguments,1
1);return this.emitEvent(e,n)},o.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return a.EventEmitter=i,e},function(e,n){"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],n):"object"==typeof exports?module.exports=n():e.EventEmitter=n()}(this,function(){return e})}.call(this),function(e){function n(n){var t=e.event;return t.target=t.target||t.srcElement||n,t}var t=document.documentElement,o=function(){};t.addEventListener?o=function(e,n,t){e.addEventListener(n,t,!1)}:t.attachEvent&&(o=function(e,t,o){e[t+o]=o.handleEvent?function(){var t=n(e);o.handleEvent.call(o,t)}:function(){var t=n(e);o.call(e,t)},e.attachEvent("on"+t,e[t+o])});var a=function(){};t.removeEventListener?a=function(e,n,t){e.removeEventListener(n,t,!1)}:t.detachEvent&&(a=function(e,n,t){e.detachEvent("on"+n,e[n+t]);try{delete e[n+t]}catch(o){e[n+t]=void 0}});var i={bind:o,unbind:a};!function(e,n){"function"==typeof define&&define.amd?define("eventie/eventie",[],n):"object"==typeof exports?module.exports=n():e.eventie=n()}(this,function(){return i})}(this),function(e,n){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(t,o){return n(e,t,o)}):"object"==typeof exports?module.exports=n(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=n(e,e.EventEmitter,e.eventie)}(window,function(e,n,t){function o(e,n){for(var t in n)e[t]=n[t];return e}function a(e){return"[object Array]"===u.call(e)}function i(e){var n=[];if(a(e))n=e;else if("number"==typeof e.length)for(var t=0,o=e.length;t<o;t++)n.push(e[t]);else n.push(e);return n}function r(e,n,t){if(!(this instanceof r))return new r(e,n);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=i(e),this.options=o({},this.options),"function"==typeof n?t=n:o(this.options,n),t&&this.on("always",t),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var a=this;setTimeout(function(){a.check()})}function d(e){this.img=e}function s(e,n){this.src=e,this.img=n,m[e]=this}var c=e.jQuery,l=e.console,f="undefined"!=typeof l,u=Object.prototype.toString;r.prototype=new n,r.prototype.options={},r.prototype.getImages=function(){this.images=[];for(var e=0,n=this.elements.length;e<n;e++){var t=this.elements[e];"IMG"===t.nodeName&&this.addImage(t);var o=t.nodeType;if(o&&(1===o||9===o||11===o))for(var a=t.querySelectorAll("img"),i=0,r=a.length;i<r;i++){var d=a[i];this.addImage(d)}}},r.prototype.addImage=function(e){var n=new d(e);this.images.push(n)},r.prototype.check=function(){function e(e,a){return n.options.debug&&f&&l.log("confirm",e,a),n.progress(e),t++,t===o&&n.complete(),!0}var n=this,t=0,o=this.images.length;if(this.hasAnyBroken=!1,!o)return void this.complete();for(var a=0;a<o;a++){var i=this.images[a];i.on("confirm",e),i.check()}},r.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var n=this;setTimeout(function(){n.emit("progress",n,e),n.jqDeferred&&n.jqDeferred.notify&&n.jqDeferred.notify(n,e)})},r.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var n=this;setTimeout(function(){if(n.emit(e,n),n.emit("always",n),n.jqDeferred){var t=n.hasAnyBroken?"reject":"resolve";n.jqDeferred[t](n)}})},c&&(c.fn.imagesLoaded=function(e,n){var t=new r(this,e,n);return t.jqDeferred.promise(c(this))}),d.prototype=new n,d.prototype.check=function(){var e=m[this.img.src]||new s(this.img.src,this.img);if(e.isConfirmed)return void this.confirm(e.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var n=this;e.on("confirm",function(e,t){return n.confirm(e.isLoaded,t),!0}),e.check()},d.prototype.confirm=function(e,n){this.isLoaded=e,this.emit("confirm",this,n)};var m={};return s.prototype=new n,s.prototype.check=function(){if(!this.isChecked){var e=this.img;t.bind(e,"load",this),t.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},s.prototype.handleEvent=function(e){var n="on"+e.type;this[n]&&this[n](e)},s.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},s.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},s.prototype.confirm=function(e,n){this.isConfirmed=!0,this.isLoaded=e,this.emit
1("confirm",this,n)},s.prototype.unbindProxyEvents=function(e){t.unbind(e.target,"load",this),t.unbind(e.target,"error",this)},r}),function(e){var n,t,o=e.event;n=o.special.debouncedresize={setup:function(){e(this).on("resize",n.handler)},teardown:function(){e(this).off("resize",n.handler)},handler:function(e,a){var i=this,r=arguments,d=function(){e.type="debouncedresize",o.dispatch.apply(i,r)};t&&clearTimeout(t),a?d():t=setTimeout(d,n.threshold)},threshold:150}}(jQuery),function(e){e.flexslider=function(n,t){var o=e(n);o.vars=e.extend({},e.flexslider.defaults,t);var a,i=o.vars.namespace,r=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,d=("ontouchstart"in window||r||window.DocumentTouch&&document instanceof DocumentTouch)&&o.vars.touch,s="click touchend MSPointerUp keyup",c="",l="vertical"===o.vars.direction,f=o.vars.reverse,u=o.vars.itemWidth>0,m="fade"===o.vars.animation,A=""!==o.vars.asNavFor,g={},h=!0;e.data(n,"flexslider",o),g={init:function(){o.animating=!1,o.currentSlide=parseInt(o.vars.startAt?o.vars.startAt:0,10),isNaN(o.currentSlide)&&(o.currentSlide=0),o.animatingTo=o.currentSlide,o.atEnd=0===o.currentSlide||o.currentSlide===o.last,o.containerSelector=o.vars.selector.substr(0,o.vars.selector.search(" ")),o.slides=e(o.vars.selector,o),o.container=e(o.containerSelector,o),o.count=o.slides.length,o.syncExists=e(o.vars.sync).length>0,"slide"===o.vars.animation&&(o.vars.animation="swing"),o.prop=l?"top":"marginLeft",o.args={},o.manualPause=!1,o.stopped=!1,o.started=!1,o.startTimeout=null,o.transitions=!o.vars.video&&!m&&o.vars.useCSS&&function(){var e=document.createElement("div"),n=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var t in n)if(void 0!==e.style[n[t]])return o.pfx=n[t].replace("Perspective","").toLowerCase(),o.prop="-"+o.pfx+"-transform",!0;return!1}(),o.ensureAnimationEnd="",""!==o.vars.controlsContainer&&(o.controlsContainer=e(o.vars.controlsContainer).length>0&&e(o.vars.controlsContainer)),""!==o.vars.manualControls&&(o.manualControls=e(o.vars.manualControls).length>0&&e(o.vars.manualControls)),""!==o.vars.customDirectionNav&&(o.customDirectionNav=2===e(o.vars.customDirectionNav).length&&e(o.vars.customDirectionNav)),o.vars.randomize&&(o.slides.sort(function(){return Math.round(Math.random())-.5}),o.container.empty().append(o.slides)),o.doMath(),o.setup("init"),o.vars.controlNav&&g.controlNav.setup(),o.vars.directionNav&&g.directionNav.setup(),o.vars.keyboard&&(1===e(o.containerSelector).length||o.vars.multipleKeyboard)&&e(document).bind("keyup",function(e){var n=e.keyCode;if(!o.animating&&(39===n||37===n)){var t=39===n?o.getTarget("next"):37===n&&o.getTarget("prev");o.flexAnimate(t,o.vars.pauseOnAction)}}),o.vars.mousewheel&&o.bind("mousewheel",function(e,n,t,a){e.preventDefault();var i=n<0?o.getTarget("next"):o.getTarget("prev");o.flexAnimate(i,o.vars.pauseOnAction)}),o.vars.pausePlay&&g.pausePlay.setup(),o.vars.slideshow&&o.vars.pauseInvisible&&g.pauseInvisible.init(),o.vars.slideshow&&(o.vars.pauseOnHover&&o.hover(function(){o.manualPlay||o.manualPause||o.pause()},function(){o.manualPause||o.manualPlay||o.stopped||o.play()}),o.vars.pauseInvisible&&g.pauseInvisible.isHidden()||(o.vars.initDelay>0?o.startTimeout=setTimeout(o.play,o.vars.initDelay):o.play())),A&&g.asNav.setup(),d&&o.vars.touch&&g.touch(),(!m||m&&o.vars.smoothHeight)&&e(window).bind("resize orientationchange focus",g.resize),o.find("img").attr("draggable","false"),setTimeout(function(){o.vars.start(o)},200)},asNav:{setup:function(){o.asNav=!0,o.animatingTo=Math.floor(o.currentSlide/o.move),o.currentItem=o.currentSlide,o.slides.removeClass(i+"active-slide").eq(o.currentItem).addClass(i+"active-slide"),r?(n._slider=o,o.slides.each(function(){var n=this;n._gesture=new MSGesture,n._gesture.target=n,n.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),n.addEventListener("MSGestureTap",function(n){n.preventDefault();var t=e(this),a=t.index();e(o.vars.asNavFor).data("flexslider").animating||t.hasClass("active")||(o.direction=o.currentItem<a?"next":"prev",o.flexAnimate(a,o.vars.pauseOnAction,!1,!0,!0))})})):o.slides.on(s,function(n){n.preventDefault();var t=e(this),a=t.index(),r=t.offset().left-e(o).scrollLeft();r<=0&&t.hasClass(i+"active-slide")?o.flexAnimate(o.getTarget("prev"),!0):e(o.vars.asNavFor).data("flexslider").animating||t.hasClass(i+"active-slide")||(o.direction=o.currentItem<a?"next":"prev",o.flexAnimate(a,o.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){o.manualControls?g.controlNav.setupManual():g.controlNav.setupPaging(
vendor: 15,893 bytes, line 1
1)},setupPaging:function(){var n,t,a="thumbnails"===o.vars.controlNav?"control-thumbs":"control-paging",r=1;if(o.controlNavScaffold=e('<ol class="'+i+"control-nav "+i+a+'"></ol>'),o.pagingCount>1)for(var d=0;d<o.pagingCount;d++){if(t=o.slides.eq(d),n="thumbnails"===o.vars.controlNav?'<img src="'+t.attr("data-thumb")+'"/>':"<a>"+r+"</a>","thumbnails"===o.vars.controlNav&&!0===o.vars.thumbCaptions){var l=t.attr("data-thumbcaption");""!==l&&void 0!==l&&(n+='<span class="'+i+'caption">'+l+"</span>")}o.controlNavScaffold.append("<li>"+n+"</li>"),r++}o.controlsContainer?e(o.controlsContainer).append(o.controlNavScaffold):o.append(o.controlNavScaffold),g.controlNav.set(),g.controlNav.active(),o.controlNavScaffold.delegate("a, img",s,function(n){if(n.preventDefault(),""===c||c===n.type){var t=e(this),a=o.controlNav.index(t);t.hasClass(i+"active")||(o.direction=a>o.currentSlide?"next":"prev",o.flexAnimate(a,o.vars.pauseOnAction))}""===c&&(c=n.type),g.setToClearWatchedEvent()})},setupManual:function(){o.controlNav=o.manualControls,g.controlNav.active(),o.controlNav.bind(s,function(n){if(n.preventDefault(),""===c||c===n.type){var t=e(this),a=o.controlNav.index(t);t.hasClass(i+"active")||(a>o.currentSlide?o.direction="next":o.direction="prev",o.flexAnimate(a,o.vars.pauseOnAction))}""===c&&(c=n.type),g.setToClearWatchedEvent()})},set:function(){var n="thumbnails"===o.vars.controlNav?"img":"a";o.controlNav=e("."+i+"control-nav li "+n,o.controlsContainer?o.controlsContainer:o)},active:function(){o.controlNav.removeClass(i+"active").eq(o.animatingTo).addClass(i+"active")},update:function(n,t){o.pagingCount>1&&"add"===n?o.controlNavScaffold.append(e("<li><a>"+o.count+"</a></li>")):1===o.pagingCount?o.controlNavScaffold.find("li").remove():o.controlNav.eq(t).closest("li").remove(),g.controlNav.set(),o.pagingCount>1&&o.pagingCount!==o.controlNav.length?o.update(t,n):g.controlNav.active()}},directionNav:{setup:function(){var n=e('<ul class="'+i+'direction-nav"><li class="'+i+'nav-prev"><a class="'+i+'prev" href="#">'+o.vars.prevText+'</a></li><li class="'+i+'nav-next"><a class="'+i+'next" href="#">'+o.vars.nextText+"</a></li></ul>");o.customDirectionNav?o.directionNav=o.customDirectionNav:o.controlsContainer?(e(o.controlsContainer).append(n),o.directionNav=e("."+i+"direction-nav li a",o.controlsContainer)):(o.append(n),o.directionNav=e("."+i+"direction-nav li a",o)),g.directionNav.update(),o.directionNav.bind(s,function(n){n.preventDefault();var t;""!==c&&c!==n.type||(t=e(this).hasClass(i+"next")?o.getTarget("next"):o.getTarget("prev"),o.flexAnimate(t,o.vars.pauseOnAction)),""===c&&(c=n.type),g.setToClearWatchedEvent()})},update:function(){var e=i+"disabled";1===o.pagingCount?o.directionNav.addClass(e).attr("tabindex","-1"):o.vars.animationLoop?o.directionNav.removeClass(e).removeAttr("tabindex"):0===o.animatingTo?o.directionNav.removeClass(e).filter("."+i+"prev").addClass(e).attr("tabindex","-1"):o.animatingTo===o.last?o.directionNav.removeClass(e).filter("."+i+"next").addClass(e).attr("tabindex","-1"):o.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var n=e('<div class="'+i+'pauseplay"><a></a></div>');o.controlsContainer?(o.controlsContainer.append(n),o.pausePlay=e("."+i+"pauseplay a",o.controlsContainer)):(o.append(n),o.pausePlay=e("."+i+"pauseplay a",o)),g.pausePlay.update(o.vars.slideshow?i+"pause":i+"play"),o.pausePlay.bind(s,function(n){n.preventDefault(),""!==c&&c!==n.type||(e(this).hasClass(i+"pause")?(o.manualPause=!0,o.manualPlay=!1,o.pause()):(o.manualPause=!1,o.manualPlay=!0,o.play())),""===c&&(c=n.type),g.setToClearWatchedEvent()})},update:function(e){"play"===e?o.pausePlay.removeClass(i+"pause").addClass(i+"play").html(o.vars.playText):o.pausePlay.removeClass(i+"play").addClass(i+"pause").html(o.vars.pauseText)}},touch:function(){function e(e){e.stopPropagation(),o.animating?e.preventDefault():(o.pause(),n._gesture.addPointer(e.pointerId),E=0,c=l?o.h:o.w,g=Number(new Date),s=u&&f&&o.animatingTo===o.last?0:u&&f?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:u&&o.currentSlide===o.last?o.limit:u?(o.itemW+o.vars.itemMargin)*o.move*o.currentSlide:f?(o.last-o.currentSlide+o.cloneOffset)*c:(o.currentSlide+o.cloneOffset)*c)}function t(e){e.stopPropagation();var t=e.target._slider;if(t){var o=-e.translationX,a=-e.translationY;return E+=l?a:o,A=E,v=l?Math.abs(E)<Math.abs(-o):Math.abs(E)<Math.abs(-a),e.detail===e.MSGESTURE_FLAG_INERTIA?void setImmediate(function(){n._gesture.stop()}):void((!v||Number(new Date)-g>500)&&(e.preventDefault(),!m&&t.transitions&&(t.vars.animationLoop||(A=E/(0===t.currentSlide&&E<0||t.currentSlide===t.last&&E>0?Math.abs(E)/c+2:1)),t.setProps(s+A,"setTouch"))))}}function a(e){e.stopPropagation();var n=e.target._slider;if(n){if(n.animatingTo===n.currentSlide&&!v&&null!==A){var t=f?-A:A,o=t>0?n.getTarget("next"):n.getTarget("prev");n.canAdvance(o)&&(Number(new Date)-g<550&&Math.abs(t)>50||Math.abs(t)>c/2)?n.flexAnimate(o,n.vars.pauseOnAction):m||n.flexAnimate(n.currentSlide,n.vars.pauseOnAction,!0)}i=null,d=null,A=null,s=null,E=0}}var i,d,s,c,A,g,h,w,p,v=!1,S=0,y=0,E=0;r?(n.style.msTouchAction="none",n._gesture=new MSGesture,n._gesture.target=n,n.addEventListener("MSPointerDown",e,!1),n._slider=o,n.addEventListener("MSGestureChange",t,!1),n.addEventListener("MSGestureEnd",a,!1)):(h=function(e){o.animating?e.preventDefault():(window.navigator.msPointerEnabled||1===e.touches.length)&&(o.pause(),c=l?o.h:o.w,g=Number(new Date),S=e.touches[0].pageX,y=e.touches[0].pageY,s=u&&f&&o.animatingTo===o.last?0:u&&f?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:u&&o.currentSlide===o.last?o.limit:u?(o.itemW+o.vars.itemMargin)*o.move*o.currentSlide:f?(o.last-o.currentSlide+o.cloneOffset)*c:(o.currentSlide+o.cloneOffset)*c,i=l?y:S,d=l?S:y,n.addEventListener("touchmove",w,!1),n.addEventListener("touchend",p,!1))},w=function(e){S=e.touches[0].pageX,y=e.touches[0].pageY,A=l?i-y:i-S,v=l?Math.abs(A)<Math.abs(S-d):Math.abs(A)<Math.abs(y-d);var n=500;(!v||Number(new Date)-g>n)&&(e.preventDefault(),!m&&o.transitions&&(o.vars.animationLoop||(A/=0===o.currentSlide&&A<0||o.currentSlide===o.last&&A>0?Math.abs(A)/c+2:1),o.setProps(s+A,"setTouch")))},p=function(e){if(n.removeEventListener("touchmove",w,!1),o.animatingTo===o.currentSlide&&!v&&null!==A){var t=f?-A:A,a=t>0?o.getTarget("next"):o.getTarget("prev");o.canAdvance(a)&&(Number(new Date)-g<550&&Math.abs(t)>50||Math.abs(t)>c/2)?o.flexAnimate(a,o.vars.pauseOnAction):m||o.flexAnimate(o.currentSlide,o.vars.pauseOnAction,!0)}n.removeEventListener("touchend",p,!1),i=null,d=null,A=null,s=null},n.addEventListener("touchstart",h,!1))},resize:function(){!o.animating&&o.is(":visible")&&(u||o.doMath(),m?g.smoothHeight():u?(o.slides.width(o.computedW),o.update(o.pagingCount),o.setProps()):l?(o.viewport.height(o.h),o.setProps(o.h,"setTotal")):(o.vars.smoothHeight&&g.smoothHeight(),o.newSlides.width(o.computedW),o.setProps(o.computedW,"setTotal")))},smoothHeight:function(e){if(!l||m){var n=m?o:o.viewport;e?n.animate({height:o.slides.eq(o.animatingTo).height()},e):n.height(o.slides.eq(o.animatingTo).height())}},sync:function(n){var t=e(o.vars.sync).data("flexslider"),a=o.animatingTo;switch(n){case"animate":t.flexAnimate(a,o.vars.pauseOnAction,!1,!0);break;case"play":t.playing||t.asNav||t.play();break;case"pause":t.pause()}},uniqueID:function(n){return n.filter("[id]").add(n.find("[id]")).each(function(){var n=e(this);n.attr("id",n.attr("id")+"_clone")}),n},pauseInvisible:{visProp:null,init:function(){var e=g.pauseInvisible.getHiddenProp();if(e){var n=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(n,function(){g.pauseInvisible.isHidden()?o.startTimeout?clearTimeout(o.startTimeout):o.pause():o.started?o.play():o.vars.initDelay>0?setTimeout(o.play,o.vars.initDelay):o.play()})}},isHidden:function(){var e=g.pauseInvisible.getHiddenProp();return!!e&&document[e]},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var n=0;n<e.length;n++)if(e[n]+"Hidden"in document)return e[n]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(a),a=setTimeout(function(){c=""},3e3)}},o.flexAnimate=function(n,t,a,r,s){if(o.vars.animationLoop||n===o.currentSlide||(o.direction=n>o.currentSlide?"next":"prev"),A&&1===o.pagingCount&&(o.direction=o.currentItem<n?"next":"prev"),!o.animating&&(o.canAdvance(n,s)||a)&&o.is(":visible")){if(A&&r){var c=e(o.vars.asNavFor).data("flexslider");if(o.atEnd=0===n||n===o.count-1,c.flexAnimate(n,!0,!1,!0,s),o.direction=o.currentItem<n?"next":"prev",c.direction=o.direction,Math.ceil((n+1)/o.visible)-1===o.currentSlide||0===n)return o.currentItem=n,o.slides.removeClass(i+"active-slide").eq(n).addClass(i+"active-slide"),!1;o.currentItem=n,o.slides.removeClass(i+"active-slide").eq(n).addClass(i+"active-slide"),n=Math.floor(n/o.visible)}if(o.animating=!0,o.animatingTo=n,t&&o.pause(),o.vars.before(o),o.syncExists&&!s&&g.sync("animate"),o.vars.controlNav&&g.controlNav.active(),u||o.slides.removeClass(i+"active-slide").eq(n).addClass(i+"active-slide"),o.atEnd=0===n||n===o.last,o.vars.directionNav&&g.directionNav.update(),n===o.last&&(o.vars.end(o),o.vars.animationLoop||o.pause()),m)d?(o.slides.eq(o.currentSlide).css({opacity:0,zIndex:1}),o.slides.eq(n).css({opacity:1,zIndex:2}),o.wrapup(v)):(o.slides.eq(o.currentSlide).css({zIndex:1}).animate({opacity:0},o.vars.animationSpeed,o.vars.easing),o.slides.eq(n).css({zIndex:2}).animate({opacity:1},o.vars.animationSpeed,o.vars.easing,o.wrapup));else{var h,w,p,v=l?o.slides.filter(":first").height():o.computedW;u?(h=o.vars.itemMargin,p=(o.itemW+h)*o.move*o.animatingTo,w=p>o.limit&&1!==o.visible?o.limit:p):w=0===o.currentSlide&&n===o.count-1&&o.vars.animationLoop&&"next"!==o.direction?f?(o.count+o.cloneOffset)*v:0:o.currentSlide===o.last&&0===n&&o.vars.animationLoop&&"prev"!==o.direction?f?0:(o.count+1)*v:f?(o.count-1-n+o.cloneOffset)*v:(n+o.cloneOffset)*v,o.setProps(w,"",o.vars.animationSpeed),o.transitions?(o.vars.animationLoop&&o.atEnd||(o.animating=!1,o.currentSlide=o.animatingTo),o.container.unbind("webkitTransitionEnd transitionend"),o.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(o.ensureAnimationEnd),o.wrapup(v)}),clearTimeout(o.ensureAnimationEnd),o.ensureAnimationEnd=setTimeout(function(){o.wrapup(v)},o.vars.animationSpeed+100)):o.container.animate(o.args,o.vars.animationSpeed,o.vars.easing,function(){o.wrapup(v)})}o.vars.smoothHeight&&g.smoothHeight(o.vars.animationSpeed)}},o.wrapup=function(e){m||u||(0===o.currentSlide&&o.animatingTo===o.last&&o.vars.animationLoop?o.setProps(e,"jumpEnd"):o.currentSlide===o.last&&0===o.animatingTo&&o.vars.animationLoop&&o.setProps(e,"jumpStart")),o.animating=!1,o.currentSlide=o.animatingTo,o.vars.after(o)},o.animateSlides=function(){!o.animating&&h&&o.flexAnimate(o.getTarget("next"))},o.pause=function(){clearInterval(o.animatedSlides),o.animatedSlides=null,o.playing=!1,o.vars.pausePlay&&g.pausePlay.update("play"),o.syncExists&&g.sync("pause")},o.play=function(){o.playing&&clearInterval(o.animatedSlides),o.animatedSlides=o.animatedSlides||setInterval(o.animateSlides,o.vars.slideshowSpeed),o.started=o.playing=!0,o.vars.pausePlay&&g.pausePlay.update("pause"),o.syncExists&&g.sync("play")},o.stop=function(){o.pause(),o.stopped=!0},o.canAdvance=function(e,n){var t=A?o.pagingCount-1:o.last;return!!n||(!(!A||o.currentItem!==o.count-1||0!==e||"prev"!==o.direction)||(!A||0!==o.currentItem||e!==o.pagingCount-1||"next"===o.direction)&&(!(e===o.currentSlide&&!A)&&(!!o.vars.animationLoop||(!o.atEnd||0!==o.currentSlide||e!==t||"next"===o.direction)&&(!o.atEnd||o.currentSlide!==t||0!==e||"next"!==o.direction))))},o.getTarget=function(e){return o.direction=e,"next"===e?o.currentSlide===o.last?0:o.currentSlide+1:0===o.currentSlide?o.last:o.currentSlide-1},o.setProps=function(e,n,t){var a=function(){var t=e?e:(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo,a=function(){if(u)return"setTouch"===n?e:f&&o.animatingTo===o.last?0:f?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:o.animatingTo===o.last?o.limit:t;switch(n){case"setTotal":return f?(o.count-1-o.currentSlide+o.cloneOffset)*e:(o.currentSlide+o.cloneOffset)*e;case"setTouch":return f?e:e;case"jumpEnd":return f?e:o.count*e;case"jumpStart":return f?o.count*e:e;default:return e}}();return a*-1+"px"}();o.transitions&&(a=l?"translate3d(0,"+a+",0)":"translate3d("+a+",0,0)",t=void 0!==t?t/1e3+"s":"0s",o.container.css("-"+o.pfx+"-transition-duration",t),o.container.css("transition-duration",t)),o.args[o.prop]=a,(o.transitions||void 0===t)&&o.container.css(o.args),o.container.css("transform",a)},o.setup=function(n){if(m)o.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===n&&(d?o.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+o.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(o.currentSlide).css({opacity:1,zIndex:2}):0==o.vars.fadeFirstSlide?o.slides.css({opacity:0,display:"block",zIndex:1}).eq(o.currentSlide).css({zIndex:2}).css({opacity:1}):o.slides.css({opacity:0,display:"block",zIndex:1}).eq(o.currentSlide).css({zIndex:2}).animate({opacity:1},o.vars.animationSpeed,o.vars.easing)),o.vars.smoothHeight&&g.smoothHeight();else{var t,a;"init"===n&&(o.viewport=e('<div class="'+i+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(o).append(o.container),o.cloneCount=0,o.cloneOffset=0,f&&(a=e.makeArray(o.slides).reverse(),o.slides=e(a),o.container.empty().append(o.slides))),o.vars.animationLoop&&!u&&(o.cloneCount=2,o.cloneOffset=1,"init"!==n&&o.container.find(".clone").remove(),o.container.append(g.uniqueID(o.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(g.uniqueID(o.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),o.newSlides=e(o.vars.selector,o),t=f?o.count-1-o.currentSlide+o.cloneOffset:o.currentSlide+o.cloneOffset,l&&!u?(o.container.height(200*(o.count+o.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){o.newSlides.css({display:"block"}),o.doMath(),o.viewport.height(o.h),o.setProps(t*o.h,"init")},"init"===n?100:0)):(o.container.width(200*(o.count+o.cloneCount)+"%"),o.setProps(t*o.computedW,"init"),setTimeout(function(){o.doMath(),o.newSlides.css({width:o.computedW,float:"left",display:"block"}),o.vars.smoothHeight&&g.smoothHeight()},"init"===n?100:0))}u||o.slides.removeClass(i+"active-slide").eq(o.currentSlide).addClass(i+"active-slide"),o.vars.init(o)},o.doMath=function(){var e=o.slides.first(),n=o.vars.itemMargin,t=o.vars.minItems,a=o.vars.maxItems;o.w=void 0===o.viewport?o.width():o.viewport.width(),o.h=e.height(),o.boxPadding=e.outerWidth()-e.width(),u?(o.itemT=o.vars.itemWidth+n,o.minW=t?t*o.itemT:o.w,o.maxW=a?a*o.itemT-n:o.w,o.itemW=o.minW>o.w?(o.w-n*(t-1))/t:o.maxW<o.w?(o.w-n*(a-1))/a:o.vars.itemWidth>o.w?o.w:o.vars.itemWidth,o.visible=Math.floor(o.w/o.itemW),o.move=o.vars.move>0&&o.vars.move<o.visible?o.vars.move:o.visible,o.pagingCount=Math.ceil((o.count-o.visible)/o.move+1),o.last=o.pagingCount-1,o.limit=1===o.pagingCount?0:o.vars.itemWidth>o.w?o.itemW*(o.count-1)+n*(o.count-1):(o.itemW+n)*o.count-o.w-n):(o.itemW=o.w,o.pagingCount=o.count,o.last=o.count-1),o.computedW=o.itemW-o.boxPadding},o.update=function(e,n){o.doMath(),u||(e<o.currentSlide?o.currentSlide+=1:e<=o.currentSlide&&0!==e&&(o.currentSlide-=1),o.animatingTo=o.currentSlide),o.vars.controlNav&&!o.manualControls&&("add"===n&&!u||o.pagingCount>o.controlNav.length?g.controlNav.update("add"):("remove"===n&&!u||o.pagingCount<o.controlNav.length)&&(u&&o.currentSlide>o.last&&(o.currentSlide-=1,o.animatingTo-=1),g.controlNav.update("remove",o.last))),o.vars.directionNav&&g.directionNav.update()},o.addSlide=function(n,t){var a=e(n);o.count+=1,o.last=o.count-1,l&&f?void 0!==t?o.slides.eq(o.count-t).after(a):o.container.prepend(a):void 0!==t?o.slides.eq(t).before(a):o.c
1ontainer.append(a),o.update(t,"add"),o.slides=e(o.vars.selector+":not(.clone)",o),o.setup(),o.vars.added(o)},o.removeSlide=function(n){var t=isNaN(n)?o.slides.index(e(n)):n;o.count-=1,o.last=o.count-1,
2isNaN(n)?e(n,o.slides).remove():l&&f?o.slides.eq(o.last).remove():o.slides.eq(n).remove(),o.doMath(),o.update(t,"remove"),o.slides=e(o.vars.selector+":not(.clone)",o),o.setup(),o.vars.removed(o)},g.init()},e(window).blur(function(e){focused=!1}).focus(function(e){focused=!0}),e.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},e.fn.flexslider=function(n){if(void 0===n&&(n={}),"object"==typeof n)return this.each(function(){var t=e(this),o=n.selector?n.selector:".slides > li",a=t.find(o);1===a.length&&n.allowOneSlide===!0||0===a.length?(a.fadeIn(400),n.start&&n.start(t)):void 0===t.data("flexslider")&&new e.flexslider(this,n)});var t=e(this).data("flexslider");switch(n){case"play":t.play();break;case"pause":t.pause();break;case"stop":t.stop();break;case"next":t.flexAnimate(t.getTarget("next"),!0);break;case"prev":case"previous":t.flexAnimate(t.getTarget("prev"),!0);break;default:"number"==typeof n&&t.flexAnimate(n,!0)}}}(jQuery),function(e){var n=-1,t=-1,o=function(e){return parseFloat(e)||0},a=function(n){var t=1,a=e(n),i=null,r=[];return a.each(function(){var n=e(this),a=n.offset().top-o(n.css("margin-top")),d=r.length>0?r[r.length-1]:null;null===d?r.push(n):Math.floor(Math.abs(i-a))<=t?r[r.length-1]=d.add(n):r.push(n),i=a}),r},i=function(n){var t={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof n?e.extend(t,n):("boolean"==typeof n?t.byRow=n:"remove"===n&&(t.remove=!0),t)},r=e.fn.matchHeight=function(n){var t=i(n);if(t.remove){var o=this;
2return this.css(t.property,""),e.each(r._groups,function(e,n){n.elements=n.elements.not(o)}),this}return this.length<=1&&!t.target?this:(r._groups.push({elements:this,options:t}),r._apply(this,t),this)};r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,r._afterUpdate=null,r._apply=function(n,t){var d=i(t),s=e(n),c=[s],l=e(window).scrollTop(),f=e("html").outerHeight(!0),u=s.parents().filter(":hidden");return u.each(function(){var n=e(this);n.data("style-cache",n.attr("style"))}),u.css("display","block"),d.byRow&&!d.target&&(s.each(function(){var n=e(this),t=n.css("display");"inline-block"!==t&&"inline-flex"!==t&&(t="block"),n.data("style-cache",n.attr("style")),n.css({display:t,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})}),c=a(s),s.each(function(){var n=e(this);n.attr("style",n.data("style-cache")||"")})),e.each(c,function(n,t){var a=e(t),i=0;if(d.target)i=d.target.outerHeight(!1);else{if(d.byRow&&a.length<=1)return void a.css(d.property,"");a.each(function(){var n=e(this),t=n.css("display");"inline-block"!==t&&"inline-flex"!==t&&(t="block");var o={display:t};o[d.property]="",n.css(o),n.outerHeight(!1)>i&&(i=n.outerHeight(!1)),n.css("display","")})}a.each(function(){var n=e(this),t=0;d.target&&n.is(d.target)||("border-box"!==n.css("box-sizing")&&(t+=o(n.css("border-top-width"))+o(n.css("border-bottom-width")),t+=o(n.css("padding-top"))+o(n.css("padding-bottom"))),n.css(d.property,i-t+"px"))})}),u.each(function(){var n=e(this);n.attr("style",n.data("style-cache")||null)}),r._maintainScroll&&e(window).scrollTop(l/f*e("html").outerHeight(!0)),this},r._applyDataApi=function(){var n={};e("[data-match-height], [data-mh]").each(function(){var t=e(this),o=t.attr("data-mh")||t.attr("data-match-height");o in n?n[o]=n[o].add(t):n[o]=t}),e.each(n,function(){this.matchHeight(!0)})};var d=function(n){r._beforeUpdate&&r._beforeUpdate(n,r._groups),e.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(n,r._groups)};r._update=function(o,a){if(a&&"resize"===a.type){var i=e(window).width();if(i===n)return;n=i}o?t===-1&&(t=setTimeout(function(){d(a),t=-1},r._throttle)):d(a)},e(r._applyDataApi),e(window).bind("load",function(e){r._update(!1,e)}),e(window).bind("resize orientationchange",function(e){r._update(!0,e)})}(jQuery),function(e){"use strict";e.fn.fitVids=function(n){var t={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var o=document.head||document.getElementsByTagName("head")[0],a=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",i=document.createElement("div");i.innerHTML='<p>x</p><style id="fit-vids-style">'+a+"</style>",o.appendChild(i.childNodes[1])}return n&&e.extend(t,n),this.each(function(){var n=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];t.customSelector&&n.push(t.customSelector);var o=".fitvidsignore";t.ignore&&(o=o+", "+t.ignore);var a=e(this).find(n.join(","));a=a.not("object object"),a=a.not(o),a.each(function(){var n=e(this);if(!(n.parents(o).length>0||"embed"===this.tagName.toLowerCase()&&n.parent("object").length||n.parent(".fluid-width-video-wrapper").length)){n.css("height")||n.css("width")||!isNaN(n.attr("height"))&&!isNaN(n.attr("width"))||(n.attr("height",9),n.attr("width",16));var t="object"===this.tagName.toLowerCase()||n.attr("height")&&!isNaN(parseInt(n.attr("height"),10))?parseInt(n.attr("height"),10):n.height(),a=isNaN(parseInt(n.attr("width"),10))?n.width():parseInt(n.attr("width"),10),i=t/a;if(!n.attr("name")){var r="fitvid"+e.fn.fitVids._count;n.attr("name",r),e.fn.fitVids._count++}n.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*i+"%"),n.removeAttr("height").removeAttr("width")}})})},e.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(){var e=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,n=navigator.userAgent.toLowerCase().indexOf("opera")>-1,t=navigator.userAgent.toLowerCase().indexOf("msie")>-1;(e||n||t)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e,n=location.hash.substring(1);/^[A-z0-9_-]+$/.test(n)&&(e=document.getElementById(n),e&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus()))},!1)}();var app=app||{};app.nav=function(e){var n=e("li.nav__item--parent"),t=e(".nav > li.nav__item"),o=e(".nav > li.nav__item > .nav__link"),a=e(".nav > li.nav__item--parent > .nav__link");return headroomInit=function(){e(".header").headroom({tolerance:{down:20,up:20},offset:30,classes:{initial:"headroom",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top"}})}
2,navToggle=function(){e("#nav-toggle").click(function(){e(".header__secondary").toggleClass("header__secondary--active"),n.removeClass("nav__item--active"),a.removeClass("nav__link--back"),e(this).toggleClass("header__nav-toggle--active"),document.addEventListener("click",navClickListener)})},navClickListener=function(n){var t=e(".header");e(n.target).closest(t).length||e(t).is(":visible")&&navClose()},navClose=function(){e(".header__secondary").removeClass("header__secondary--active"),n.removeClass("nav__item--active nav__item--hover"),a.removeClass("nav__link--back"),e(".header__nav-toggle--active").removeClass("header__nav-toggle--active")},headroomHash=function(){window.location.hash&&e(".header").addClass("headroom--unpinned")},navDrop=function(){a.click(function(t){var o=e(this).parent(".nav__item--parent");o.hasClass("nav__item--active")||o.hasClass("nav__item--hover")?(o.removeClass("nav__item--active nav__item--hover"),e(this).removeClass("nav__link--back")):(n.removeClass("nav__item--active"),o.addClass("nav__item--active"),e(this).addClass("nav__link--back")),t.preventDefault()})},navHover=function(){o.hover(function(){if("mobile"!=breakpoint.value&&"mobileLandscape"!=breakpoint.value&&"tablet"!=breakpoint.value){var n=e(this).parent(".nav__item--parent");t.removeClass("nav__item--hover"),n.addClass("nav__item--hover")}})},clearDropdownsOnResize=function(){e(window).on("debouncedresize",function(e){n.removeClass("nav__item--hover nav__item--active")})},init=function(){headroomInit(),navToggle(),navDrop(),headroomHash(),clearDropdownsOnResize(),document.addEventListener("click",navClickListener)},{init:init}}(jQuery,this),jQuery(app.nav.init);var app=app||{};app.flexslider=function(e){return flexsliderInit=function(){e(".flexslider").each(function(n,t){var o=e(t).data("flex-animation")||"fade",a=!!e(t).is("[data-flex-control]"),i=!!e(t).is("[data-flex-slideshow]"),r=!!e(t).is("[data-flex-direction]"),d=e(t).data("flex-speed")?e(t).data("flex-speed"):5e3;e(t).flexslider({animation:o,slideshow:i,controlNav:a,directionNav:r,slideshowSpeed:d,randomize:!1,pauseOnAction:!1,start:function(e){e.removeClass("carousel--loading")}})})},init=function(){flexsliderInit()},{init:init}}(jQuery,this),jQuery(app.flexslider.init);var app=app||{};app.fitvids=function(e){return fitVids=function(){e(".content").fitVids()},{init:fitVids}}(jQuery,this),jQuery(app.fitvids.init);var app=app||{};app.quicklinks=function(e){var n=function(e,n,t){t="undefined"!=typeof t?t:3e3,e.hasClass(n)||setTimeout(function(){e.addClass(n)},t)};return applyViewportSticky=function(e,n,t){e.hasClass(t)||e.addClass(t)},dropViewportSticky=function(e,n){e.hasClass(n)&&e.removeClass(n),e.removeAttr("style")},elementExists=function(e){return e.length>0},isVisible=function(e){if(elementExists(e))return e.filter(":visible").length>0},persistantStickyWhenVisible=function(){var t=e(".quicklinks");if(elementExists(t)){var o=e(document).scrollTop();viewportHeight=e(window).height(),viewportMiddlePoint=Math.round(viewportHeight/2);var t=e(".quicklinks"),a=t.offset().top;stickyHeight=t.outerHeight(),stickyHalfHeight=stickyHeight/2,stickyEnabled=!1,anchorPoint=0;var i=t.offset().top-o+t.height();!stickyEnabled&&isVisible(t)&&(i<=viewportMiddlePoint&&(applyViewportSticky(t,viewportMiddlePoint,"persistent"),stickyEnabled=!0,anchorPoint=Math.round(viewportMiddlePoint+stickyHalfHeight)),a+stickyHeight<viewportHeight+o&&n(t,"folded")),e(window).on("debouncedresize",function(n){viewportHeight=e(window).height(),viewportMiddlePoint=viewportHeight/2,o=e(document).scrollTop(),anchorPoint<viewportMiddlePoint&&(anchorPoint=viewportMiddlePoint),isVisible(t)&&!stickyEnabled&&o>=viewportMiddlePoint&&(applyViewportSticky(t,viewportMiddlePoint,"persistent"),stickyEnabled=!0,anchorPoint=Math.round(i+stickyHalfHeight))});var i=Math.round(t.offset().top-o+stickyHalfHeight);e(window).scroll(function(){if(isVisible(t)){o=e(document).scrollTop();var i=Math.round(t.offset().top-o+stickyHalfHeight);if(a+stickyHeight<viewportHeight+o&&n(t,"folded"),stickyEnabled){if(o<anchorPoint){t.offset().top+stickyHeight-(o-stickyHalfHeight);t.hasClass("persistent")&&dropViewportSticky(t,"persistent"),stickyEnabled=!1,anchorPoint=0}}else if(i<=viewportMiddlePoint){t.hasClass("persistent")||applyViewportSticky(t,i,"persistent"),stickyEnabled=!0;t.offset().top;anchorPoint=Math.round(i+stickyHalfHeight)}(anchorPoint<i||anchorPoint>
2viewportHeight)&&(anchorPoint=i)}})}},init=function(){persistantStickyWhenVisible()},{init:init}}(jQuery,this),jQuery(app.quicklinks.init);var app=app||{};app.imgsize=function(e){return imgSize=function(){e("#carousel").imagesLoaded().progress(function(n,t){paneHeight=e("#carousel").height(),paneWidth=e("#carousel").width(),paneRatio=paneHeight/paneWidth,imgHeight=e(t.img).height(),imgWidth=e(t.img).width(),imgRatio=imgHeight/imgWidth,paneRatio>=imgRatio?(e(t.img).css({top:"0px",height:paneHeight+"px",width:"auto"}),leftPos=(e(t.img).parent().width()-e(t.img).width())/2,e(t.img).css({left:leftPos+"px"})):(e(t.img).css({left:"0px",width:paneWidth+"px",height:"auto"}),topPos=(e(t.img).parent().height()-e(t.img).height())/2,e(t.img).css({top:topPos+"px"}))})},imgResize=function(){e(window).on("debouncedresize",function(e){imgSize()})},init=function(){imgSize(),imgResize()},{init:init}}(jQuery,this),jQuery(app.imgsize.init);var breakpoint={};breakpoint.refreshValue=function(){this.value=window.getComputedStyle(document.querySelector("body"),":before").getPropertyValue("content").replace(/\"|\'/g,"")},breakpoint.refreshValue(),jQuery(window).on("debouncedresize",function(e){breakpoint.refreshValue()});
3//# sourceMappingURL=footer.js.map

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.