PageSourceSearch

https://www.highland.gov.uk/site/dist/orbit.js?2.10.0

js highland.gov.uk collected 2026-09-24 08:49:39 UTC 86,390 bytes, 1 lines download raw bytes

1function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}(t=>{"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)})(function(r){function a(t){return parseFloat(t)||0}function l(t){var t=r(t),n=null,s=[];return t.each(function(){var t=r(this),e=t.offset().top-a(t.css("margin-top")),i=0<s.length?s[s.length-1]:null;null!==i&&Math.floor(Math.abs(n-e))<=1?s[s.length-1]=i.add(t):s.push(t),n=e}),s}function d(t){var e={byRow:!0,property:"height",target:null,remove:!1};return"object"===_typeof(t)?r.extend(e,t):("boolean"==typeof t?e.byRow=t:"remove"===t&&(e.remove=!0),e)}function n(t){c._beforeUpdate&&c._beforeUpdate(t,c._groups),r.each(c._groups,function(){c._apply(this.elements,this.options)}),c._afterUpdate&&c._afterUpdate(t,c._groups)}var s=-1,o=-1,c=r.fn.matchHeight=function(t){var i,t=d(t);return t.remove?((i=this).css(t.property,""),r.each(c._groups,function(t,e){e.elements=e.elements.not(i)})):this.length<=1&&!t.target||(c._groups.push({elements:this,options:t}),c._apply(this,t)),this},t=(c.version="0.7.2",c._groups=[],c._throttle=80,c._maintainScroll=!1,c._beforeUpdate=null,c._afterUpdate=null,c._rows=l,c._parse=a,c._parseOptions=d,c._apply=function(t,e){var s=d(e),e=r(t),t=[e],i=r(window).scrollTop(),n=r("html").outerHeight(!0),o=e.parents().filter(":hidden");return o.each(function(){var t=r(this);t.data("style-cache",t.attr("style"))}),o.css("display","block"),s.byRow&&!s.target&&(e.each(function(){var t=r(this),e=t.css("display");"inline-block"!==e&&"flex"!==e&&"inline-flex"!==e&&(e="block"),t.data("style-cache",t.attr("style")),t.css({display:e,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),t=l(e),e.each(function(){var t=r(this);t.attr("style",t.data("style-cache")||"")})),r.each(t,function(t,e){var e=r(e),n=0;if(s.target)n=s.target.outerHeight(!1);else{if(s.byRow&&e.length<=1)return void e.css(s.property,"");e.each(function(){var t=r(this),e=t.attr("style"),i=t.css("display"),i={display:i="inline-block"!==i&&"flex"!==i&&"inline-flex"!==i?"block":i};i[s.property]="",t.css(i),t.outerHeight(!1)>n&&(n=t.outerHeight(!1)),e?t.attr("style",e):t.css("display","")})}e.each(function(){var t=r(this),e=0;s.target&&t.is(s.target)||("border-box"!==t.css("box-sizing")&&(e=(e+=a(t.css("border-top-width"))+a(t.css("border-bottom-width")))+(a(t.css("padding-top"))+a(t.css("padding-bottom")))),t.css(s.property,n-e+"px"))})}),o.each(function(){var t=r(this);t.attr("style",t.data("style-cache")||null)}),c._maintainScroll&&r(window).scrollTop(i/n*r("html").outerHeight(!0)),this},c._applyDataApi=function(){var i={};r("[data-match-height], [data-mh]").each(function(){var t=r(this),e=t.attr("data-mh")||t.attr("data-match-height");e in i?i[e]=i[e].add(t):i[e]=t}),r.each(i,function(){this.matchHeight(!0)})},c._update=function(t,e){if(e&&"resize"===e.type){var i=r(window).width();if(i===s)return;s=i}t?-1===o&&(o=setTimeout(function(){n(e),o=-1},c._throttle)):n(e)},r(c._applyDataApi),r.fn.on?"on":"bind");r(window)[t]("load",function(t){c._update(!1,t)}),r(window)[t]("resize orientationchange",function(t){c._update(!0,t)})}),window.matchMedia||(window.matchMedia=(()=>{var e,t,i,n=window.styleMedia||window.media;return n||(e=document.createElement("style"),t=document.getElementsByTagName("script")[0],i=null,e.type="text/css",e.id="matchmediajs-test",t.parentNode.insertBefore(e,t),i="getComputedStyle"in window&&window.getComputedStyle(e,null)||e.currentStyle,n={matchMedium:function(t){t="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return e.styleSheet?e.styleSheet.cssText=t:e.textContent=t,"1px"===i.width}}),function(t){return{matches:n.matchMedium(t||"all"),media:t||"all"}}})()),((t,e)=>{"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(jQuery){return e(t,jQuery)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)})(window,function(t,jQuery){var i=Array.prototype.slice,e=t.console,h=void 0===e?function(){}:function(t){e.error(t)};function n(l,d,c){(c=c||jQuery||t.jQuery)&&(d.prototype.option||(
1d.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[l]=function(t){var e,n,s,o,r,a;return"string"==typeof t?(e=i.call(arguments,1),s=e,r="$()."+l+'("'+(n=t)+'")',(e=this).each(function(t,e){var i,e=c.data(e,l);e?(i=e[n])&&"_"!=n.charAt(0)?(i=i.apply(e,s),o=void 0===o?i:o):h(r+" is not a valid method"):h(l+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==o?o:e):(a=t,this.each(function(t,e){var i=c.data(e,l);i?(i.option(a),i._init()):(i=new d(e,a),c.data(e,l,i))}),this)},s(c))}function s(t){t&&!t.bridget&&(t.bridget=n)}return s(jQuery||t.jQuery),n}),((t,e)=>{"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e():t.EvEmitter=e()})(void 0!==window?window:void 0,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;if(t&&e)return-1==(i=(i=this._events=this._events||{})[t]=i[t]||[]).indexOf(e)&&i.push(e),this},e.once=function(t,e){var i;if(t&&e)return this.on(t,e),((i=this._onceEvents=this._onceEvents||{})[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++){var o=i[s];n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),((t,e)=>{"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e():t.getSize=e()})(window,function(){function m(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){},v=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],y=v.length;function b(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var w,_=!1;function x(t){if(_||(_=!0,(c=document.createElement("div")).style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style.boxSizing="border-box",(d=document.body||document.documentElement).appendChild(c),o=b(c),w=200==Math.round(m(o.width)),x.isBoxSizeOuter=w,d.removeChild(c)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==_typeof(t)&&t.nodeType){var e=b(t);if("none"==e.display){for(var i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0;n<y;n++)i[v[n]]=0;return i}for(var s={},o=(s.width=t.offsetWidth,s.height=t.offsetHeight,s.isBorderBox="border-box"==e.boxSizing),r=0;r<y;r++){var a=v[r],l=e[a],l=parseFloat(l);s[a]=isNaN(l)?0:l}var d=s.paddingLeft+s.paddingRight,c=s.paddingTop+s.paddingBottom,t=s.marginLeft+s.marginRight,h=s.marginTop+s.marginBottom,u=s.borderLeftWidth+s.borderRightWidth,f=s.borderTopWidth+s.borderBottomWidth,p=o&&w,g=m(e.width),g=(!1!==g&&(s.width=g+(p?0:d+u)),m(e.height));return!1!==g&&(s.height=g+(p?0:c+f)),s.innerWidth=s.width-(d+u),s.innerHeight=s.height-(c+f),s.outerWidth=s.width+t,s.outerHeight=s.height+h,s}}return x}),((t,e)=>{"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e():t.matchesSelector=e()})(window,function(){var i=(()=>{var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}})();return function(t,e){return t[i](e)}}),((e,i)=>{"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
1sandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)})(window,function(i,o){var a={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice,l=(a.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==_typeof(t)&&"number"==typeof t.length?e.call(t):[t]},a.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},a.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(o(t=t.parentNode,e))return t},a.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},a.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},a.filterFindElements=function(t,n){t=a.makeArray(t);var s=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){o(t,n)&&s.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)s.push(e[i])}else s.push(t)}),s},a.debounceMethod=function(t,e,n){n=n||100;var s=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o],e=(clearTimeout(t),arguments),i=this;this[o]=setTimeout(function(){s.apply(i,e),delete i[o]},n)}},a.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},a.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},i.console);return a.htmlInit=function(o,r){a.docReady(function(){var t=a.toDashed(r),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),e=a.makeArray(e).concat(a.makeArray(t)),s=n+"-options",jQuery=i.jQuery;e.forEach(function(e){var t,i=e.getAttribute(n)||e.getAttribute(s);try{t=i&&JSON.parse(i)}catch(t){return void(l&&l.error("Error parsing "+n+" on "+e.className+": "+t))}i=new o(e,t);jQuery&&jQuery.data(e,r,i)})})},a}),((t,e)=>{"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(t){return e(0,t)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e(0,require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=e(0,t.getSize))})(window,function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0,this.element.style[this.parent.originSide]=0},n.destroy=function(){this.unselect(),this.element.style.position="";var t=this.parent.originSide;this.element.style[t]="",this.element.style.transform="",this.element.removeAttribute("aria-hidden")},n.getSize=function(){this.size=e(this.element)},n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e="left"===this.parent.originSide?1:-1,t=this.parent.options.percentPosition?t*e*(this.parent.size.innerWidth/this.size.width):t*e;this.element.style.transform="translateX("+this.parent.getPositionValue(t)+")"},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}),((t,e)=>{"function"==typeof define&&define.amd?define("flickity/js/slide",e):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e())})(window,function(){function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){var e;this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length&&(this.x=t.x,e=this.isOriginLeft?"marginLeft":"marginRight",this.firstMargin=t.size[e])},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),e=e?e.size[t]:0,t=this.outerWidth-(this.firstMargin+e);this.target=this.x+this.firstMargin+t*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]}
1,e.select=function(){this.cells.forEach(function(t){t.select()})},e.unselect=function(){this.cells.forEach(function(t){t.unselect()})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t}),((t,e)=>{"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(t){return e(0,t)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e(0,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=e(0,t.fizzyUIUtils))})(window,function(t,e){var i={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t,e=this.x;this.integratePhysics(),this.positionSlider(),this.settle(e),this.isAnimating&&(t=this,requestAnimationFrame(function(){t.animate()}))},positionSlider:function(){var t=this.x;this.options.wrapAround&&1<this.cells.length&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),this.setTranslateX(t,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;t=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+t+",0,0)":"translateX("+t+")"},dispatchScrollEvent:function(){var t,e=this.slides[0];e&&(t=(e=-this.x-e.target)/this.slidesWidth,this.dispatchEvent("scroll",null,[t,e]))},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,2<this.restingFrames&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t,e=(this._shiftCells(this.beforeShiftCells,e,-1),this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition));this._shiftCells(this.afterShiftCells,e,1)},_shiftCells:function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n];s.wrapShift(0<e?i:0),e-=s.size.outerWidth}},_unshiftCells:function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){var t;this.isDraggable&&this.isPointerDown&&(t=this.dragX-this.x-this.velocity,this.applyForce(t))},applySelectedAttraction:function(){var t;this.isDraggable&&this.isPointerDown||this.isFreeScrolling||!this.slides.length||(t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction,this.applyForce(t))}};return i}),((r,a)=>{var t;"function"==typeof define&&define.amd?define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(t,e,i,n,s,o){return a(r,t,e,i,n,s,o)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=a(r,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./sli
1de"),require("./animate")):(t=r.Flickity,r.Flickity=a(r,r.EvEmitter,r.getSize,r.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype))})(window,function(n,t,e,r,i,a,s){var jQuery=n.jQuery,o=n.getComputedStyle,l=n.console;function d(t,e){for(t=r.makeArray(t);t.length;)e.appendChild(t.shift())}var c=0,h={};function u(t,e){var i,n=r.getQueryElement(t);if(n){if(this.element=n,this.element.flickityGUID)return(i=h[this.element.flickityGUID])&&i.option(e),i;jQuery&&(this.$element=jQuery(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(e),this._create()}else l&&l.error("Bad element for Flickity: "+(n||t))}u.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},u.createMethods=[];var f=u.prototype,p=(r.extend(f,t.prototype),f._create=function(){var t,e=this.guid=++c;for(t in this.element.flickityGUID=e,(h[e]=this).selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&n.addEventListener("resize",this),this.options.on){var i=this.options.on[t];this.on(t,i)}u.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},f.option=function(t){r.extend(this.options,t)},f.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),d(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready"))},f._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},f._filterFindCellElements=function(t){return r.filterFindElements(t,this.options.cellSelector)},f.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},f._makeCells=function(t){return this._filterFindCellElements(t).map(function(t){return new i(t,this)},this)},f.getLastCell=function(){return this.cells[this.cells.length-1]},f.getLastSlide=function(){return this.slides[this.slides.length-1]},f.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},f._positionCells=function(t){this.maxCellHeight=(t=t||0)&&this.maxCellHeight||0;for(var e,i=0,n=(0<t&&(i=(e=this.cells[t-1]).x+e.size.outerWidth),this.cells.length),s=t;s<n;s++){var o=this.cells[s];o.setPosition(i),i+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=i,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},f._sizeCells=function(t){t.forEach(function(t){t.getSize()})},f.updateSlides=function(){var n,s,o;this.slides=[],this.cells.length&&(n=new a(this),this.slides.push(n),s="left"==this.originSide?"marginRight":"marginLeft",o=this._getCanCellFit(),this.cells.forEach(function(t,e){var i;n.cells.length&&(i=n.outerWidth-n.firstMargin+(t.size.outerWidth-t.size[s]),o.call(this,e,i)||(n.updateTarget(),n=new a(this),this.slides.push(n))),n.addCell(t)},this),n.updateTarget(),this.updateSelectedSlide())},f._getCanCellFit=function(){var e,i,t=this.options.groupCells;return t?"number"==typeof t?(e=parseInt(t,10),function(t){return t%e!=0}):(t="string"==typeof t&&t.match(/^(\d+)%$/),i=t?parseInt(t[1],10)/100:1,function(t,e){return e<=(this.size.innerWidth+1)*i}):function(){return!1}},f._init=f.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},f.getSize=function(){this.size=e(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign},{center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}});return f.setCellAlign=function(){var t=p[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},f.setGallerySize=function(){var t;this.options.setGallerySize&&(t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight,this.viewport.style.height=t+"px")},f._getWrapShiftCells=function(){var t,e;this.options.wrapAround&&(this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells),t=this.cursorPosition,e=this.cells.length-1,this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1))}
1,f._getGapCells=function(t,e,i){for(var n=[];0<t;){var s=this.cells[e];if(!s)break;n.push(s),e+=i,t-=s.size.outerWidth}return n},f._containSlides=function(){var t,e,i,n,s,o;this.options.contain&&!this.options.wrapAround&&this.cells.length&&(t=(e=this.options.rightToLeft)?"marginRight":"marginLeft",e=e?"marginLeft":"marginRight",i=this.slideableWidth-this.getLastCell().size[e],n=i<this.size.innerWidth,s=this.cursorPosition+this.cells[0].size[t],o=i-this.size.innerWidth*(1-this.cellAlign),this.slides.forEach(function(t){n?t.target=i*this.cellAlign:(t.target=Math.max(t.target,s),t.target=Math.min(t.target,o))},this))},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),jQuery&&this.$element&&(n=t+=this.options.namespaceJQueryEvents?".flickity":"",e&&((e=new jQuery.Event(e)).type=t,n=e),this.$element.trigger(n,i))},f.select=function(t,e,i){this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=r.modulo(t,this.slides.length)),this.slides[t])&&(e=this.selectedIndex,this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=e&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect"))},f._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&1<e))return t;var i=r.modulo(t,e),n=Math.abs(i-this.selectedIndex),s=Math.abs(i+e-this.selectedIndex),i=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&s<n?t+=e:!this.isDragSelect&&i<n&&(t-=e),t<0?this.x-=this.slideableWidth:e<=t&&(this.x+=this.slideableWidth)},f.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},f.next=function(t,e){this.select(this.selectedIndex+1,t,e)},f.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),(this.selectedSlide=t).select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},f.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},f.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(t&&"string"==typeof t)if(this.queryCell(t))return void this.selectCell(t,!1,!0);var e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)}},f.selectCell=function(t,e,i){var t=this.queryCell(t);t&&(t=this.getCellSlideIndex(t),this.select(t,e,i))},f.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++)if(-1!=this.slides[e].cells.indexOf(t))return e},f.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},f.getCells=function(t){t=r.makeArray(t);var e=[];return t.forEach(function(t){t=this.getCell(t);t&&e.push(t)},this),e},f.getCellElements=function(){return this.cells.map(function(t){return t.element})},f.getParentCell=function(t){var e=this.getCell(t);return e||(t=r.getParent(t,".flickity-slider > *"),this.getCell(t))},f.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(i<=1+2*t)return this.getCellElements();for(var n=[],s=e-t;s<=e+t;s++){var o=this.options.wrapAround?r.modulo(s,i):s,o=this.slides[o];o&&(n=n.concat(o.getCellElements()))}return n},f.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#.]?[\d/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},f.uiChange=function(){this.emitEvent("uiChange")},f.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},f.onresize=function(){this.watchCSS(),this.resize()},r.debounceMethod(u,"onresize",150),f.resize=function(){var t;!this.isActive||this.isAnimating||this.isDragging||(this.getSize(),this.options.wrapAround&&(this.x=r.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize"),t=this.selectedElements&&this.selectedElements[0],this.selectCell(t,!1,!0))},f.watchCSS=function(){this.options.watchCSS&&(-1!=o(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},f.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;this.options.accessibility&&!e&&(e=u.keyboardHandlers[t.keyCode])&&e.call(this)},u.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}}
1,f.focus=function(){var t=n.pageYOffset;this.element.focus({preventScroll:!0}),n.pageYOffset!=t&&n.scrollTo(n.pageXOffset,t)},f.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),d(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},f.destroy=function(){this.deactivate(),n.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),jQuery&&this.$element&&jQuery.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete h[this.guid]},r.extend(f,s),u.data=function(t){t=(t=r.getQueryElement(t))&&t.flickityGUID;return t&&h[t]},r.htmlInit(u,"flickity"),jQuery&&jQuery.bridget&&jQuery.bridget("flickity",u),u.setJQuery=function(t){jQuery=t},u.Cell=i,u.Slide=a,u}),((e,i)=>{"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=i(e,require("ev-emitter")):e.Unipointer=i(e,e.EvEmitter)})(window,function(n,t){function e(){}var t=e.prototype=Object.create(t.prototype),i=(t.bindStartEvent=function(t){this._bindStartEvent(t,!0)},t.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},t._bindStartEvent=function(t,e){var e=(e=void 0===e||e)?"addEventListener":"removeEventListener",i="mousedown";"ontouchstart"in n?i="touchstart":n.PointerEvent&&(i="pointerdown"),t[e](i,this)},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},t.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},t.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},t.onpointerdown=function(t){this._pointerDown(t,t)},t._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},t.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])},{mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]});return t._bindPostStartEvents=function(t){t&&((t=i[t.type]).forEach(function(t){n.addEventListener(t,this)},this),this._boundPointerEvents=t)},t._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(t){n.removeEventListener(t,this)},this),delete this._boundPointerEvents)},t.onmousemove=function(t){this._pointerMove(t,t)},t.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},t.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},t._pointerMove=function(t,e){this.pointerMove(t,e)},t.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},t.onmouseup=function(t){this._pointerUp(t,t)},t.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},t.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},t._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},t.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},t._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},t._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},t.pointerDone=function(){},t.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},t.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},t._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},t.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},e.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},e}),((e,i)=>{"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(t){return i(e,t)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=i(e,require("unipointer")):e.Unidragger=i(e,e.Unipointer)})(window,function(o,t){function e(){}var i=e.prototype=Object.create(t.prototype),n=(i.bindHandles=function(){this._bindHandles(!0)},i.unbindHandles=function(){this._bindHandles(!1)},i._bindHandles=function(t){for(var e=(t=void 0===t||t)?"addEventListener":"removeEventListener",i=t?this._touchActionValue:"",n=0;n<this.handles.length;n++){var s=this.handles[n];this._bindStartEvent(s,t),s[e]("click",this),o.PointerEvent&&(s.style.touchAction=i)}},i._touchActionValue="none",i.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))},{TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0}),s={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return i.okayPointerDown=function(t){var e=n[t.target.nodeName],t=s[t.target.type],e=!e||t;
1return e||this._pointerReset(),e},i.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},i.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},i._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},i.hasDragStarted=function(t){return 3<Math.abs(t.x)||3<Math.abs(t.y)},i.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},i._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},i._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},i.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},i._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},i.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},i._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventing
1Clicks}.bind(this)),this.dragEnd(t,e)},i.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},i.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},i._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},i.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},e.getPointerPoint=t.getPointerPoint,e}),((n,s)=>{"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=s(n,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):n.Flickity=s(n,n.Flickity,n.Unidragger,n.fizzyUIUtils)})(window,function(i,t,e,o){o.extend(t.defaults,{draggable:">1",dragThreshold:3}),t.createMethods.push("_createDrag");var n=t.prototype,s=(o.extend(n,e.prototype),n._touchActionValue="pan-y",n._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable)},n.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},n.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},n.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=1<this.slides.length:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},n.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},n.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},n._uiChangeDrag=function(){delete this.isFreeScrolling},n.pointerDown=function(t,e){this.isDraggable?this.okayPointerDown(t)&&(this._pointerDownPreventDefault(t),this.pointerDownFocus(t),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=r(),i.addEventListener("scroll",this),this._pointerDownDefault(t,e)):this._pointerDownDefault(t,e)},n._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])},{INPUT:!0,TEXTAREA:!0,SELECT:!0});function r(){return{x:i.pageXOffset,y:i.pageYOffset}}return n.pointerDownFocus=function(t){s[t.target.nodeName]||this.focus()},n._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i=s[t.target.nodeName];e||"touch"==t.pointerType||i||t.preventDefault()},n.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},n.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},n.pointerDone=function(){i.removeEventListener("scroll",this),delete this.pointerDownScroll},n.dragStart=function(t,e){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),i.removeEventListener("scroll",this),this.dispatchEvent("dragStart",t,[e]))},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},n.dragMove=function(t,e,i){var n,s;this.isDraggable&&(t.preventDefault(),this.previousDragX=this.dragX,n=this.options.rightToLeft?-1:1,this.options.wrapAround&&(i.x%=this.slideableWidth),n=this.dragStartPosition+i.x*n,!this.options.wrapAround&&this.slides.length&&(n=(n=(s=Math.max(-this.slides[0].target,this.dragStartPosition))<n?.5*(n+s):n)<(s=Math.min(-this.getLastSlide().target,this.dragStartPosition))?.5*(n+s):n),this.dragX=n,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i]))},n.dragEnd=function(t,e){var i,n;this.isDraggable&&(this.options.freeScroll&&(this.isFreeScrolling=!0),i=this.dragEndRestingSelect(),this.options.freeScroll&&!this.options.wrapAround?(n=this.getRestingPosition(),this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target):this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect()),delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e]))},n.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),t=this._getClosestResting(t,e,-1);return(i.distance<t.distance?i:t).index}
1,n._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,s=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,s)&&(s=e,null!==(e=this.getSlideDistance(-t,n+=i)));)e=Math.abs(e);return{distance:s,index:n-i}},n.getSlideDistance=function(t,e){var i=this.slides.length,n=this.options.wrapAround&&1<i,s=n?o.modulo(e,i):e,s=this.slides[s];return s?(n=n?this.slideableWidth*Math.floor(e/i):0,t-(s.target+n)):null},n.dragEndBoostSelect=function(){var t,e;return void 0===this.previousDragX||!this.dragMoveTime||100<new Date-this.dragMoveTime?0:(t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX,0<t&&0<e?1:t<0&&e<0?-1:0)},n.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,i=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,i])},n.onscroll=function(){var t=r(),e=this.pointerDownScroll.x-t.x,t=this.pointerDownScroll.y-t.y;(3<Math.abs(e)||3<Math.abs(t))&&this._pointerDone()},t}),((t,n)=>{"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return n(0,t,e,i)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=n(0,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):n(0,t.Flickity,t.Unipointer,t.fizzyUIUtils)})(window,function(t,e,i,n){var s="http://www.w3.org/2000/svg";function o(t,e){this.direction=t,this.parent=e,this._create()}(o.prototype=Object.create(i.prototype))._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1,t=(this.isLeft=this.direction==t,this.element=document.createElement("button")),e=(t.className="flickity-button flickity-prev-next-button",t.className+=this.isPrevious?" previous":" next",t.setAttribute("type","button"),this.disable(),t.setAttribute("aria-label",this.isPrevious?"Previous":"Next"),this.createSVG());t.appendChild(e),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},o.prototype.createSVG=function(){var t=document.createElementNS(s,"svg"),e=(t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100"),document.createElementNS(s,"path")),i="string"!=typeof(i=this.parent.options.arrowShape)?"M "+i.x0+",50 L "+i.x1+","+(i.y1+50)+" L "+i.x2+","+(i.y2+50)+" L "+i.x3+",50  L "+i.x2+","+(50-i.y2)+" L "+i.x1+","+(50-i.y1)+" Z":i;return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},o.prototype.handleEvent=n.handleEvent,o.prototype.onclick=function(){var t;this.isEnabled&&(this.parent.uiChange(),t=this.isPrevious?"previous":"next",this.parent[t]())},o.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},o.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},o.prototype.update=function(){var t=this.parent.slides;this.parent.options.wrapAround&&1<t.length?this.enable():(t=t.length?t.length-1:0,t=this.isPrevious?0:t,this[this.parent.selectedIndex==t?"disable":"enable"]())},o.prototype.destroy=function(){this.deactivate(),this.allOff()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");i=e.prototype;return i._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new o(-1,this),this.nextButton=new o(1,this),this.on("activate",this.activatePrevNextButtons))},i.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},i.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=o,e}),((t,n)=>{"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,
1i){return n(0,t,e,i)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=n(0,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):n(0,t.Flickity,t.Unipointer,t.fizzyUIUtils)})(window,function(t,e,i,n){function s(t){this.parent=t,this._create()}(s.prototype=Object.create(i.prototype))._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},s.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},s.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;0<t?this.addDots(t):t<0&&this.removeDots(-t)},s.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,s=n+t,o=n;o<s;o++){var r=document.createElement("li");r.className="dot",r.setAttribute("aria-label","Page dot "+(o+1)),e.appendChild(r),i.push(r)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},s.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach(function(t){this.holder.removeChild(t)},this)},s.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},s.prototype.onTap=s.prototype.onClick=function(t){var t=t.target;"LI"==t.nodeName&&(this.parent.uiChange(),t=this.dots.indexOf(t),this.parent.select(t))},s.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=s,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");i=e.prototype;return i._createPageDots=function(){this.options.pageDots&&(this.pageDots=new s(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},i.activatePageDots=function(){this.pageDots.activate()},i.updateSelectedPageDots=function(){this.pageDots.updateSelected()},i.updatePageDots=function(){this.pageDots.setDots()},i.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=s,e}),((t,e)=>{"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],e):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):e(t.EvEmitter,t.fizzyUIUtils,t.Flickity)})(window,function(t,e,i){function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}(n.prototype=Object.create(t.prototype)).play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},n.prototype.tick=function(){var t,e;"playing"==this.state&&(t="number"==typeof(t=this.parent.options.autoPlay)?t:3e3,(e=this).clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t))},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");t=i.prototype;return t._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},t.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},t.playPlayer=function(){this.player.play()},t.stopPlayer=function(){this.player.stop()},t.pausePlayer=function(){this.player.pause()},t.unpausePlayer=function(){this.player.unpause()},t.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},t.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},t.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),((t,i)=>{"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(t,e){return i(0,t,e)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=i(0,require("./flickity"),require("fizzy-ui-utils")):i(0,t.Flickity,t.fizzyUIUtils)})(window,function(t,e,n){var i=e.prototype;return i.insert=function(t,e){var i,n,s,o,r,t=this._makeCells(t);t&&t.length&&(i=this.cells.length,e=void 0===e?i:e,r=t,n=document.createDocumentFragment(),r.forEach(function(t){n.appendChild(t.element)}),r=n,(s=e==i)?this.slider.appendChild(r):(o=this.cells[e].element,this.slider.insertBefore(r,o)),0===e?this.cells=t.concat(this.cells):s?this.cells=this.cells.concat(t):(r=this.cells.splice(e,i-e),this.cells=this.cells.concat(t).concat(r)),this._sizeCells(t),this.cellChange(e,!0))},i.append=function(t){this.insert(t,this.cells.length)},i.prepend=function(t){this.insert(t,0)},i.remove=function(t){var i,t=this.getCells(t);t&&t.length&&(i=this.cells.length-1,t.forEach(function(t){t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i),n.removeFrom(this.cells,t)},this),this.cellChange(i,!0))},i.cellSizeChange=function(t){var t=this.getCell(t);t&&(t.getSize(),t=this.cells.indexOf(t),this.cellChange(t))},i.cellChange=function(t,e){var i=this.selectedElement,i=(this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize(),this.getCell(i));i&&(this.selectedIndex=this.getCellSlideIndex(i)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}),((t,i)=>{"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(t,e){return i(0,t,e)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=i(0,require("./flickity"),require("fizzy-ui-utils")):i(0,t.Flickity,t.fizzyUIUtils)})(window,function(t,e,s){e.createMethods.push("_createLazyload");var i=e.prototype;function n(t,e){this.img=t,this.flickity=e,this.load()}return i._createLazyload=function(){this.on("select",this.lazyLoad)},i.lazyLoad=function(){var e,t=this.options.lazyLoad;t&&(t=this.getAdjacentCellElements("number"==typeof t?t:0),e=[],t.forEach(function(t){t=(t=>{if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),i=t.getAttribute("data-flickity-lazyload-src"),n=t.getAttribute("data-flickity-lazyload-srcset");if(e||i||n)return[t]}return e=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]"),s.makeArray(e)})(t);e=e.concat(t)}),e.forEach(function(t){new n(t,this)},this))},n.prototype.handleEvent=s.handleEvent,n.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},n.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},n.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},n.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),i=i&&i.element;this.flickity.cellSizeChange(i),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,i)},e.LazyLoader=n,e}),(t=>{"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],t):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports&&(module.exports=t(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))})(function(t){return t}),((t,e)=>{"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):t.Flickity=e(t.Flickity,t.fizzyUIUtils)})(window,function(i,n){i.createMethods.push("_createAsNavFor");var t=i.prototype;return t._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t,e=this.options.asNavFor;e&&(t=this,setTimeout(function(){t.setNavCompanion(e)}))},t.setNavCompanion=function(t){t=n.getQueryElement(t);var e,t=i.data(t);t&&t!=this&&(this.navCompanion=t,(e=this).onNavCompanionSelect=function(){e.navCompanionSelect()},t.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0))},t.navCompanionSelect=function(t){var e,i,n=this.navCompanion&&this.navCompanion.selectedCells;n&&(e=n[0],e=this.navCompanion.cells.indexOf(e),n=e+n.length-1,i=Math.floor((i=this.navCompanion.cellAlign,(n-e)*i+e)),this.selectCell(i,!1,t),this.removeNavSelectedElements(),i>=this.cells.length||(t=this.cells.slice(e,1+n),this.navSelectedElements=t.map(function(t){return t.element}),this.changeNavSelectedClass("add")))},t.changeNavSelectedClass=function(e){this.navSelectedElements.forEac
1h(function(t){t.classList[e]("is-nav-selected")})},t.activateAsNavFor=function(){this.navCompanionSelect(!0)},t.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},t.onNavStaticClick=function(t,e,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},t.deactivateAsNavFor=function(){this.removeNavSelectedElements()},t.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},i}),((e,i)=>{"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=i(e,require("ev-emitter")):e.imagesLoaded=i(e,e.EvEmitter)})(void 0!==window?window:void 0,function(t,e){var o=t.jQuery,r=t.console;function a(t,e){for(var i in e)t[i]=e[i];return t}var l=Array.prototype.slice;function d(t,e,i){if(!(this instanceof d))return new d(t,e,i);var n,s=t;(s="string"==typeof t?document.querySelectorAll(t):s)?(this.elements=(n=s,Array.isArray(n)?n:"object"==_typeof(n)&&"number"==typeof n.length?l.call(n):[n]),this.options=a({},this.options),"function"==typeof e?i=e:a(this.options,e),i&&this.on("always",i),this.getImages(),o&&(this.jqDeferred=new o.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(s||t))}(d.prototype=Object.create(e.prototype)).options={},d.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},d.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if("string"==typeof this.options.background)for(var o=t.querySelectorAll(this.options.background),n=0;n<o.length;n++){var r=o[n];this.addElementBackgroundImages(r)}}};var c={1:!0,9:!0,11:!0};function i(t){this.img=t}function n(t,e){this.url=t,this.element=e,this.img=new Image}return d.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var s=n&&n[2];s&&this.addBackground(s,t),n=i.exec(e.backgroundImage)}},d.prototype.addImage=function(t){t=new i(t);this.images.push(t)},d.prototype.addBackground=function(t,e){t=new n(t,e);this.images.push(t)},d.prototype.check=function(){var n=this;function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},d.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+i,t,e)},d.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(e.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(n.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWi
1dth,"naturalWidth"),this.unbindEvents())},n.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},n.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(d.makeJQueryPlugin=function(jQuery){(jQuery=jQuery||t.jQuery)&&((o=jQuery).fn.imagesLoaded=function(t,e){return new d(this,t,e).jqDeferred.promise(o(this))})})(),d}),((t,i)=>{"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(t,e){return i(0,t,e)}):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=i(0,require("flickity"),require("imagesloaded")):t.Flickity=i(0,t.Flickity,t.imagesLoaded)})(window,function(t,e,n){e.createMethods.push("_createImagesLoaded");var i=e.prototype;return i._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},i.imagesLoaded=function(){var i;this.options.imagesLoaded&&n((i=this).slider).on("progress",function(t,e){e=i.getParentCell(e.img),i.cellSizeChange(e&&e.element),i.options.freeScroll||i.positionSliderAtSelected()})},e}),((t,e)=>{"undefined"!=typeof module&&module.exports?module.exports=e():t.verge=e()})(this,function(){var t={},i="undefined"!=typeof window&&window,e="undefined"!=typeof document&&document,n=e&&e.documentElement,s=i.matchMedia||i.msMatchMedia,e=s?function(t){return!!s.call(i,t).matches}:function(){return!1},o=t.viewportW=function(){var t=n.clientWidth,e=i.innerWidth;return t<e?e:t},r=t.viewportH=function(){var t=n.clientHeight,e=i.innerHeight;return t<e?e:t};function a(){return{width:o(),height:r()}}function l(t,e){return!(!(t=t&&!t.nodeType?t[0]:t)||1!==t.nodeType)&&(t=t.getBoundingClientRect(),e=e,(i={}).width=(i.right=t.right+(e=+e||0))-(i.left=t.left-e),i.height=(i.bottom=t.bottom+e)-(i.top=t.top-e),i);var i}return t.mq=e,t.matchMedia=s?function(){return s.apply(i,arguments)}:function(){return{}},t.viewport=a,t.scrollX=function(){return i.pageXOffset||n.scrollLeft},t.scrollY=function(){return i.pageYOffset||n.scrollTop},t.rectangle=l,t.aspect=function(t){var e=(t=null==t?a():1===t.nodeType?l(t):t).height,i=t.width,e="function"==typeof e?e.call(t):e;return(i="function"==typeof i?i.call(t):i)/e},t.inX=function(t,e){t=l(t,e);return!!t&&0<=t.right&&t.left<=o()},t.inY=function(t,e){t=l(t,e);return!!t&&0<=t.bottom&&t.top<=r()},t.inViewport=function(t,e){t=l(t,e);return!!t&&0<=t.bottom&&0<=t.right&&t.top<=r()&&t.left<=o()},t});var html=document.getElementsByTagName("html")[0],body=document.body,breakpoints={mobile:600,tablet:760,desktop:1020},site={site:document.querySelector(".site"),header:document.querySelector(".site-header"),main:document.querySelector(".site-main"),footer:document.querySelector(".site-footer")},menu={toggle:document.querySelectorAll(".js-menu-toggle"),open:document.getElementById("js-menu-toggle"),close:document.getElementById("js-menu-toggle-inner"),navigation:document.getElementById("js-menu"),text:document.querySelector(".js-menu-toggle .button__text"),subNavToggle:document.querySelectorAll(".js-sub-toggle")},search={toggle:document.querySelectorAll(".js-search-toggle")[0],navigation:document.getElementById("js-search"),text:document.querySelector(".js-search-toggle .button__text")},pagesIn={toggle:document.querySelectorAll(".js-pages-in-toggle"),navigation:document.getElementById("pages-in-list")},headerToggles=site.header.querySelectorAll(".js-toggle"),viewports={width:verge.viewportW(),height:verge.viewportH()},iOSDevice=!!navigator.platform.match(/iPhone|iPod|iPad/),map=null,embeddedMaps=site.main.querySelectorAll(".map"),skipEmbeddedMapsForwards=site.main.querySelectorAll(".js-map-skip-forwards"),skipEmbeddedMapsBackwards=site.main.querySelectorAll(".js-map-skip-backwards"),$siteMain=$(site.main),$forms=$siteMain.find(".form"),$body=$(body),$html=$(html),$site=$(site.site);function debounce(n,s,o){var r;return function(){var t=this,e=arguments,i=o&&!r;clearTimeout(r),r=setTimeout(function(){r=null,o||n.apply(t,e)},s),i&&n.apply(t,e)}}function forEach(t,e,i){for(var n=0;n<t.length;n++)e.call(i,n,t[n])}function getHeight(t){if(t)return t.scrollHeight+"px"}var setSiteMinHeight=debounce(function(){var t=$(site.site),e=t.innerHe
1ight(),i="calc(100vh - "+(e-viewports.height)+"px)";viewports.height!==e&&(t.css({"min-height":i}),t.innerHeight()>viewports.height)&&t.css({"min-height":""})},30);function scrollLock(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];$(site.site).length&&(1==t?($(site.site).css("top",-$(window).scrollTop()),$html.attr("data-scroll-lock","true")):$html.attr("data-scroll-lock").length&&(t=-1*parseInt($(site.site).css("top")),$html.removeAttr("data-scroll-lock"),$(site.site).css("top","auto"),$("html, body").animate({scrollTop:t},0)))}function triggerMatchHeight(){$("[data-matchHeight]").each(function(){var t=$(this),e=t.attr("data-matchHeight");t.find(e).css("min-height",0),t.find(e).matchHeight({property:"min-height"})}),$("[data-matchHeight-parent]").each(function(){var t=$(this),e=t.closest(t.attr("data-matchHeight-parent")).find(t.attr("data-matchHeight-with"));e.length&&t.add(e).matchHeight()})}function getFocusableElements(t){return t.find("*").filter(function(){var t,e=this;return!(!$(e).is(":visible")||e.disabled||(t=e.tagName.toLowerCase(),!(["input","select","textarea","button"].includes(t)||("a"===t||"area"===t)&&e.href||e.hasAttribute("contenteditable")||(t=e.getAttribute("tabindex"),e=e.getAttribute("role"),null!==t&&0<=parseInt(t,10))||null!==t&&-1===parseInt(t,10)&&e&&["dialog","region","alert","tabpanel","group"].includes(e.toLowerCase()))))})}function tabPrev(e,i){e.on("keydown",function(t){getFocusableElements($navigation).last().get(0)!=e.get(0)||9!==t.which||t.shiftKey||(t.preventDefault(),i.focus())})}
1function tabNext(t,e){t.on("keydown",function(t){9===t.which&&t.shiftKey&&(t.preventDefault(),(e.is(":visible")?e:getFocusableElements($navigation).last().get(0)).focus())})}$("[data-scroll-to]").on("click",function(t){var e=$(this).attr("data-scroll-to"),e=$(e);void 0!==e.offset()&&$("html, body").animate({scrollTop:e.offset().top},500)}),$("[data-focus]").on("focus",function(){var t=$(this).attr("data-focus");$("#"+t).focus()}),triggerMatchHeight();var initA11yToggle=function(){},$searchClose=((()=>{var o=0,r={},a={};function e(t,e){return Array.prototype.slice.call((e||document).querySelectorAll(t))}initA11yToggle=function(t){r=e("[data-a11y-toggle]",t).reduce(function(t,e){var i="#"+e.getAttribute("data-a11y-toggle");return t[i]=t[i]||[],t[i].push(e),t},r);t=Object.keys(r);t.length&&e(t).forEach(function(i){var t=r["#"+i.id],n=i.hasAttribute("data-a11y-toggle-open"),s=[];t.forEach(function(t){var e;t.id||t.setAttribute("id","a11y-toggle-"+o++),t.setAttribute("aria-controls",i.id),t.setAttribute("aria-expanded",n),s.push(t.id),t.hasAttribute("data-a11y-callback")&&((e=document.createEvent("Event")).initEvent("a11y-toggle:"+t.getAttribute("data-a11y-callback"),!0,!0),window.dispatchEvent(e))}),i.setAttribute("aria-hidden",!n),i.setAttribute("a11y-toggle",!0),a[i.id]=i})},document.addEventListener("click",function(t){var e,i,n,t=(t=>{if(t.closest)return t.closest("[data-a11y-toggle]");for(;t;){if(1===t.nodeType&&t.hasAttribute("data-a11y-toggle"))return t;t=t.parentNode}return null})(t.target);(n=(t=t)&&a[t.getAttribute("aria-controls")])&&(e=r["#"+n.id],i="false"===n.getAttribute("aria-hidden"),n.setAttribute("aria-hidden",i),e.forEach(function(t){t.setAttribute("aria-expanded",!i)}),t.hasAttribute("data-a11y-callback"))&&(n=document.createEvent("Event"),i?n.initEvent("a11y-toggle-hide:"+t.getAttribute("data-a11y-callback"),!0,!0):n.initEvent("a11y-toggle-show:"+t.getAttribute("data-a11y-callback"),!0,!0),window.dispatchEvent(n))}),window&&(window.a11yToggle=initA11yToggle)})(),(()=>{function t(t){var e=t.getAttribute("data-a11y-toggle");document.getElementById(e).setAttribute("aria-hidden",!0),t.setAttribute("aria-expanded",!1)}function e(e){i.filter(function(t){return t!==(t=>{for(;!t.hasAttribute("data-a11y-toggle");)t=t.parentNode;return t})(e.target)}).forEach(t)}var i=Array.prototype.slice.call(document.querySelectorAll(".connected-toggles [data-a11y-toggle]"));i.forEach(function(t){t.addEventListener("click",e)}),$("a[data-a11y-toggle]").on("click",function(t){t.preventDefault()})})(),$forms.length&&$forms.find(".form__field--upload, .form__field--image-upload").each(function(){var t=$(this),i=t.closest(".form__control").find(".form__label"),n=i.text(),e="form__label--upload";(t.parent(".form__component--file").length||t.parent(".form__component--image-upload").length)&&($(this).hasClass("form__field--image-upload")&&(e="form__label--image-upload"),t.after(i.clone().addClass(e)),i.replaceWith(function(){return'<span class="form__label">'+this.innerHTML+"</span>"}),i=t.next(".form__label"),t.on("change",function(t){var e="";""!==(e=t.target.value?t.target.value.split("\\").pop():e)?i.text(e):i.text(n)}),t.on("focus",function(){t.addClass("has-focus")}).on("focusout",function(){t.removeClass("has-focus")}))}),$(search.toggle)),$searchNav=$(search.navigation),$searchBtn=$searchNav.find(".form__append-group .button"),$searchInput=$searchNav.find(".form__append-group .form__field"),$menuOpen=$(menu.open);function closeSearch(){$searchNav.removeClass("is-active"),$searchNav.attr("aria-hidden","true"),$searchClose.attr("aria-expanded","false"),$site.css("transform",""),$searchClose.focus(),setTimeout(function(){$searchNav.removeClass("is-open"),$site.removeClass("search-is-open")},200),$searchNav.slideToggle("100")}$body.on("keydown",function(t){var e;"true"==$searchClose.attr("aria-expanded")&&(e=getFocusableElements($searchNav),9===t.keyCode&&$searchClose.is(":focus")&&(t.preventDefault(),e.first().get(0).focus(),t.shiftKey)&&e.last().get(0).focus(),9===t.keyCode&&e.first().is(":focus")&&t.shiftKey&&(t.preventDefault(),$searchClose.focus()),9===t.keyCode&&e.last().is(":focus")&&!t.shiftKey&&(t.preventDefault(),$searchClose.focus()),27===t.keyCode)&&closeSearch()}),$searchClose.on("click",function(t){var e=window.matchMedia("(prefers-reduced-motion: reduce)").matches;$searchNav.slideToggle(e?1:200)});var $navigation=$(menu.navigation),$menuClose=$(site.header).find("#js-menu-toggle"),$menuCloseInner=$(site.header).find("#js-menu-toggle-inner"),$navigationLinks=$navigation.find("a"),$navigationLastButton=$navigation.find("button").last(),$navigationLastLink=$navigationLinks.last(),$menuOverlay=$(site.header).find(".menu-navigation__overlay"),$menuSubNav=$(menu.subNavToggle),$subMenu=$navigation.find(".list__sub-menu"),$menuOpen=$(menu.open);
1function menuClose(){$menuClose.attr("aria-expanded","false"),$navigation.attr("aria-hidden","true"),$menuOpen.focus(),setTimeout(function(){$navigation.removeClass("is-open")},200)}function toggleSubMenu(){var t=$(this),e=t.parent(),i=e.find(".list__item").first(),e=e.find(menu.subNavToggle).first().text()||e.find(".list__link").first().text(),i=i.closest(".list__sub-menu");t.toggleClass("expanded"),t.hasClass("expanded")?(t.attr("aria-expanded","true"),t.attr("aria-label","Close ".concat(e)),i.attr("aria-hidden","false")):(t.attr("aria-expanded","false"),t.attr("aria-label","Open ".concat(e)),i.attr("aria-hidden","true"))}function toggleMobileSwap(t,e,i){var n=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(t&&e)return i=void 0===i?breakpoints.mobile:i,jQuery.extend(verge),verge.viewportW()>=i?(t.setAttribute("aria-hidden","false"),t.setAttribute("data-toggle-mobile-swap","above-"+i),[].forEach.call(e,function(t){t.setAttribute("aria-expanded","true")})):(!1===n&&t.setAttribute("data-toggle-mobile-swap","below-"+i),t.getAttribute("data-toggle-mobile-swap")==="above-"+i&&(t.setAttribute("aria-hidden","true"),[].forEach.call(e,function(t){t.setAttribute("aria-expanded","false")}),t.setAttribute("data-toggle-mobile-swap","below-"+i))),debounce(function(){toggleMobileSwap(t,e,i,n)},100)}$menuSubNav.on("click",toggleSubMenu),$body.on("keydown",function(t){"true"===$menuClose.attr("aria-expanded")&&27===t.keyCode&&($body.removeClass("menu-open"),menuClose())}),tabPrev($navigationLastLink,$menuCloseInner),tabPrev($navigationLastButton,$menuCloseInner),tabNext($menuCloseInner,$navigationLastLink,$navigationLinks),$menuOverlay.on("click",function(){$body.removeClass("menu-open"),menuClose()});var navigation=(()=>{function i(t){$site.hasClass("search-is-open")&&search.toggle.click(),setTimeout(function(){t.navigation.classList.add("is-open")},50),setTimeout(function(){t!==pagesIn&&($body.addClass("menu-open"),$(menu.close).focus())},200)}function n(t){setTimeout(function(){t.navigation.classList.remove("is-open"),t!==pagesIn&&($body.removeClass("menu-open"),$(menu.open).focus())},200)}return{toggle:function(e){[].forEach.call(e.toggle,function(t){t.addEventListener("click",function(){("true"===e.navigation.getAttribute("aria-hidden")?i:n)(e)})})},searchToggle:function(){search.navigation.classList.toggle("is-active"),search.navigation.classList.contains("is-active")?setTimeout(function(){search.navigation.offsetHeight;site.site.classList.add("search-is-open"),search.navigation.classList.add("is-open"),search.navigation.ariaLabel="Site"},50):setTimeout(function(){site.site.classList.remove("search-is-open"),search.navigation.classList.remove("is-open")},200)}}})();function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function initMaps(){}function skipMaps(){var t,e;"object"===(void 0===skipEmbeddedMapsForwards?"undefined":_typeof(skipEmbeddedMapsForwards))&&"object"===(void 0===skipEmbeddedMapsBackwards?"undefined":_typeof(skipEmbeddedMapsBackwards))&&(e=$(skipEmbeddedMapsForwards),t=$(skipEmbeddedMapsBackwards),(e=e.add(t)).focus(function(){$(this).removeClass("visually-hidden")}),e.blur(function(){$(this).addClass("visually-hidden")}),e.on("click",function(t){t.preventDefault();var t=$(this),e=t.closest(".form__component--location, .form__component--google_map, .form__component--google-map, .definition__content--google-map, .in-your-area-results");(t=t.hasClass("js-map-skip-forwards")?e.find(".js-map-skip-backwards"):e.find(".js-map-skip-forwards")).length&&t.focus()}))}function pauseCurrentCarousel(t){$(t).closest(".flickity-enabled").flickity("stopPlayer")}function flickityPaginationText(t,e){t.find(".flickity-prev-next-button.next").attr("aria-label","Next slide: "+e).append('<span class="visually-hidden">Next slide: '+e+"</span>"),t.find(".flickity-prev-next-button.previous").attr("aria-label","Previous slide: "+e).append('<span class="visually-hidden">Previous slide: '+e+"</span>"),t.find(".flickity-button-icon").attr({preserveAspectRatio:"xMinYMid","aria-hidden":"true",focusable:"false"})}function wrapFlickityPageDots(n,t,e,s,o){var i;t&&n.length&&(i=(t=n.find(".flickity-page-dots")).find(".dot"),o=void 0!==o?o:".carousel__heading",t.wrap('<div class="flickity-page-dots-wrapper"></div>
1'),i.removeAttr("aria-label").each(function(t){var e=$(this),i="Slide "+(t+1),t=n.find(s+":eq("+t+")").find(o).text(),t=(t.length&&(i+=": "+t),$('<button class="flickity-page-dots__button"><span class="visually-hidden">'+i+"</span></button>"));e.append(t),t.on("click",function(t){t.preventDefault(),$(this).closest(".dot").trigger("click"),n.find(".carousel__play-pause").addClass("paused"),n.find(".carousel__play-pause .play-pause").text("Play")})}))}function wrapFlickityPrevNextButtons(t,e){var i,n;e&&t.length&&(e=t.find(".flickity-prev-next-button.previous"),i=t.find(".flickity-prev-next-button.next"),n=t.find(".flickity-viewport"),e.add(i).wrapAll('<div class="flickity-buttons-wrapper"></div>'),t.parent().hasClass("widget-carousel")?(e.insertAfter(i),t.find(".flickity-buttons-wrapper").insertAfter(n),t.parent().attr("aria-label","carousel").attr("role","region")):(e.insertAfter(i),t.find(".flickity-buttons-wrapper").insertBefore(n)))}function carouselTabbingControl(t,e,i){var n;t.length&&(n=t.find(i=void 0!==i?i:".slide"),i=t.find(i+".is-selected"),n=n.find('a, button, input:not([type="hidden"]), textarea, select'),t=t.find(".flickity-page-dots-wrapper"),n.attr("tabindex","-1"),i.find('a, button, input:not([type="hidden"]), textarea, select').removeAttr("tabindex"),t.find(".flickity-page-dots__button").removeAttr("disabled tabindex"),t.find(".dot.is-selected .flickity-page-dots__button").attr({disabled:"",tabindex:-1}))}function carouselAriaLive(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=1<arguments.length?arguments[1]:void 0,i=2<arguments.length?arguments[2]:void 0,n=3<arguments.length?arguments[3]:void 0,s=4<arguments.length?arguments[4]:void 0,o=5<arguments.length?arguments[5]:void 0,r=6<arguments.length?arguments[6]:void 0;if(s.length&&!(o<2)&&void 0!==i)return t?void 0!==r&&e.find(".js-aria-live__text").html(r.selectedIndex+1+" of "+r.slides.length):e.length||(e=$('<div class="carousel__aria-live js-aria-live" id="slideshow-'+n+'" aria-live="polite" aria-atomic="true" role="status">Now viewing slide <span class="js-aria-live__text">1 of '+o+"</span>: "+i+"</div>"),s.prepend(e)),e}function carouselInit(t,p){t=$(t),p=void 0!==p?p:".slide";t.length&&t.each(function(t){var i,e,n,s,o,r=$(this),a=t+1,l=r.find(p).length,t=void 0!==r.attr("data-carousel-autoplay")&&r.attr("data-carousel-autoplay"),d=void 0!==r.attr("data-carousel-adaptive-height")&&r.attr("data-carousel-adaptive-height"),c="false"!==r.attr("data-carousel-dots"),h="false"!==r.attr("data-carousel-arrows"),u="false"!==r.attr("data-carousel-draggable"),f=r.find(".js-aria-live");r.parent("code").length||r.parent("pre").length||(i=void 0===r.attr("data-carousel-title")?void 0===(e=r.add(r.closest(".widget")).find("h1, h2, .widget__heading").first().text().trim())?"Slideshow "+a:e:r.attr("data-carousel-title"),l<2)||(f=carouselAriaLive(!1,f,i,a,r,l),r.on("ready.flickity",function(){wrapFlickityPageDots(r,c,i),wrapFlickityPrevNextButtons(r,h),carouselTabbingControl(r,0,p)}),r.on("select.flickity",function(t,e){carouselTabbingControl(r,e,p),f=carouselAriaLive(!0,f,i,a,r,l,n),s&&($(o).removeClass("active").attr("disabled",!1),o.eq(e).addClass("active").attr("disabled",!0))}),e=!0===window.matchMedia("(prefers-reduced-motion: reduce)")||!0===window.matchMedia("(prefers-reduced-motion: reduce)").matches,r.flickity({accessibility:!1,adaptiveHeight:d,autoPlay:t,cellSelector:p,draggable:u,friction:e?.15:.8,imagesLoaded:!0,pageDots:c,prevNextButtons:h,selectedAttraction:e?.01:.2,wrapAround:!0}),n=r.data("flickity"),r.find(".flickity-slider"),r.find("a, iframe"),flickityPaginationText(r,i),s=r.parent().parent().find(".flickity-text-navigation"),o=r.parent().parent().find(".flickity-text-navigation--link"),s.length&&r.addClass("carousel-has-text-nav"),r.find(".carousel__play-pause").on("click",function(t){var e=$(this);t.preventDefault(),e.hasClass("paused")?(r.flickity("playPlayer"),e.removeClass("paused"),e.find(".play-pause").text("Pause")):(r.flickity("stopPlayer"),e.addClass("paused"),e.find(".play-pause").text("Play"))}),s=r.parent().parent().find(".flickity-text-navigation"),o=r.parent().parent().find(".flickity-text-navigation--link"),s.length&&r.addClass("carousel-has-text-nav"),r.find(".flickity-prev-next-button").on("click",function(t){t.preventDefault(),r.flickity("stopPlayer"),r.find(".carousel__play-pause").addClass("paused"),r.find(".carousel__play-pause").find(".play-pause").text("Play")}),r.find(".flickity-page-dots-wrapper").prepend(s),o.each(function(t){var e=t,i=$(this);i.on("click",function(){r.flickity("select",e),$(o).removeClass("active").attr("disabled",!1),i.addClass("active").attr("disabled",!0)})}))})}function accessibleTables(){$siteMain.find("table:not(.form__matrix)").each(function(t){var e=$
1(this),i=$(this).find("caption").html(),n=Math.floor(1e5*Math.random());i?(e.find("caption").attr("id",n),e.wrap('<div class="table-wrapper" role="region" aria-labelledby="'+n+'" tabindex="0"></div>')):e.wrap('<div class="table-wrapper" role="region" tabindex="0" aria-label="table"></div>')})}(()=>{var t=document.querySelectorAll(".editor a");[].forEach.call(t,function(t){t.classList.contains("button")||("_blank"!=t.getAttribute("target")||t.getAttribute("data-external-window-text")||(t.textContent+=" (Opens in new tab)"),"_blank"==t.getAttribute("target")&&t.setAttribute("rel","noreferrer noopener"))})})();var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"Other",this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"Unknown"},searchString:function(t){for(var e=0;e<t.length;e++){var i=t[e].string;if(this.versionSearchString=t[e].subString,-1!==i.indexOf(t[e].subString))return t[e].identity}},searchVersion:function(t){var e,i=t.indexOf(this.versionSearchString);if(-1!==i)return e=t.indexOf("rv:"),"Trident"===this.versionSearchString&&-1!==e?parseFloat(t.substring(e+3)):parseFloat(t.substring(i+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Edge",identity:"MS Edge"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer"},{string:navigator.userAgent,subString:"Trident",identity:"Explorer"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Opera",identity:"Opera"},{string:navigator.userAgent,subString:"OPR",identity:"Opera"},{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"Safari",identity:"Safari"}]},$servicesWidgets=(BrowserDetect.init(),"Safari"==BrowserDetect.browser?document.body.classList.add("is-safari"):"Explorer"==BrowserDetect.browser&&document.body.classList.add("is-ie"),$siteMain.find(".services")),windowWidth=window.innerWidth;function widgetServices(){$servicesWidgets.length&&($servicesWidgets.each(function(){var i,t,n,s,o,r,a=$(this),l=a.find(".services__grid--extra"),e=a.find(".services__button-wrapper").find(".services__button");e.length&&(t=e.attr("href").replace("#",""),s=e.html(),n=a.find(".services__button-wrapper").attr("data-button-text-show-less"),e.children(),e.is("a")&&e.replaceWith(linkToA11yToggleButton(e,t)),e=a.find(".services__button-wrapper .button"),o=(s=e.find(".button__text")).text(),r=a.find(".aria-live"),$(window).on("a11y-toggle-hide:"+t,function(t){var e;s.text(o),r.text("Content Hidden"),clearTimeout(i),l.addClass("is-animating").removeClass("js-ignore-jump-focus"),i=setTimeout(function(){l.removeClass("is-animating")},800),windowWidth<breakpoints.mobile&&(e=a.offset().top-24,$($html).add($($body)).animate({scrollTop:e},800))}),$(window).on("a11y-toggle-show:"+t,function(t){var e;s.text(n),r.text("").text("Content added above"),clearTimeout(i),l.addClass("is-animating"),i=setTimeout(function(){l.removeClass("is-animating")},10),windowWidth<breakpoints.mobile&&(e=l.offset().top-24,$($html).add($($body)).animate({scrollTop:e},800))}),e.on("keydown",function(t){9!==t.keyCode||t.shiftKey||"true"!=e.attr("aria-expanded")||l.hasClass("js-ignore-jump-focus")||(t.preventDefault(),l.addClass("js-ignore-jump-focus"),l.find(".service__link").first().focus())}))}),window.a11yToggle())}function linkToA11yToggleButton(t,e){var i,n=document.createElement("button"),n=$(n).html(t.html());return n.contents().filter(function(){return 3===this.nodeType}).wrap('<span class="button__text"></span>'),t.attr("href").length&&(i=t.attr("href").replace("#",""),n.attr("data-a11y-toggle",i).attr("data-a11y-callback",e)),n.attr("class",t.attr("class")),n}function widgetServicesResize(){var t,e,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;$servicesWidgets.length&&i-1!=windowWidth&&(i&&(windowWidth=i-1),$servicesWidgets.each(function(){var t,e=$(this),o=e.data("limit-mobile"),r=e.find(".services__grid--initial"),i=e.find(".services__grid-cell").length,a=e.find(".services__grid--extra"),n=r.find(".services__grid-cell"),e=(void 0!==e.data("limit-desktop")&&windowWidth>breakpoints.tablet?o=e.data("limit-desktop"):void 0!==e.data("limit-tablet")&&windowWidth>breakpoints.mobile&&(o=e.data("limit-tablet")),e.find(".services__button"));i<=o?e.css("display","none"):e.css("display","inline-flex"),e.removeClass("services__button--hidden"),n.each(function(t,e){var i,n,t=t+1,s=!1;"false"===a.attr("aria-hidden")&&(s=!0),o<t?(r.find(".services__grid-cell:nth-child("+t+")").addClass("services__grid-cell--hidden"),a.find('[data-nth-child="'+t+'"]').length?s||a.find('[data-nth-child="'+t+'"]').addClass("services__grid-cell--hidden"):(e=$(e).clone().attr("data-nth-child",t),i=a.find(".services__grid-cell:first-child"),n=a.find(".services__grid-cell:last-child"),s||e.addClass("services__grid-cell--hidden"),n.length?n.attr("data-nth-child")<t?e.insertAfter(n):a.find('[data-nth-child="'+(t-1)+'"]').length?e.insertAfter(a.find('[data-nth-child="'+(t-1)+'"]')):i.attr("data-nth-child")>t?e.insertBefore(i):e.insertBefore(n):e.appendTo(a))):(r.find(".services__grid-cell:nth-child("+t+")").removeClass("services__grid-cell--hidden"),a.find('[data-nth-child="'+t+'"]').length&&a.find('[data-nth-child="'+t+'"]').remove())}),clearTimeout(void 0),a.addClass("is-measuring-height").removeAttr("style"),setTimeout(function(){t=a.prop("scrollHeight"),a.css("max-height",t).removeClass("is-measuring-height")})}),i=window.matchMedia("(max-width: "+breakpoints.mobile+"px)"),t=window.matchMedia("(min-width: "+breakpoints.mobile+"px) and (max-width: "+breakpoints.tablet+"px)"),e=window.matchMedia("(min-width: "+breakpoints.desktop+"px)"),i.addEventListener("change",function(t){t.matches&&widgetServicesResize(breakpoints.mobile)}
1),t.addEventListener("change",function(t){t.matches&&widgetServicesResize(breakpoints.tablet)}),e.addEventListener("change",function(t){t.matches&&widgetServicesResize(breakpoints.desktop)}))}function dateInputPolyfillSiteimproveFixes(){var t,e,i,n,s;$forms.length&&$body.length&&(t=$body.find("date-input-polyfill")).length&&(i=(e=t.find(".yearSelect")).closest(".yearSelect-wrapper"),s=(n=t.find(".monthSelect")).closest(".monthSelect-wrapper"),void 0!==e&&(e.attr("id","date-input-polyfill-year-select"),i.prepend('<label class="visually-hidden" for="date-input-polyfill-year-select">Select Year</label>')),void 0!==n&&(n.attr("id","date-input-polyfill-month-select"),s.prepend('<label class="visually-hidden" for="date-input-polyfill-month-select">Select Month</label>')),t.appendTo($siteMain))}window.addEventListener("load",function(){widgetServicesResize()}),document.addEventListener("DOMContentLoaded",function(){widgetServices()}),window.addEventListener("resize",function(){verge.viewportW()!=viewports.width&&(viewports.height=verge.viewportH(),viewports.width=verge.viewportW(),debounce(function(){widgetServicesResize()},30)())}),(()=>{var s,o;function r(){$forms.find('[type="date"]').each(function(){var t,e=$(this),i=e.val();/^([0-2][0-9]|(3)[0-1])(\/)(((0)[0-9])|((1)[0-2]))(\/)\d{4}$/.test(i)&&null!==i&&(t=(i=i.split("/"))[0],e.val(i[2]+"-"+i[1]+"-"+t))})}Modernizr.inputtypes.date||(o='<span class="form__expected-format"><span class="visually-hidden">Date format: </span><span class="form__valid-format">'+(s="yyyy-mm-dd")+"</span></span>",$forms.find('[type="date"]').each(function(){var t=$(this),e=t.attr("id"),i=t.closest(".form__component",".form__control"),n=i.find(".form__help");t.attr({"aria-describedby":"help_text_"+e}),t.on("change",function(){r()}),i.find(".form__expected-format").length||-1!==n.text().toLowerCase().indexOf(s)||(n.length?(t='<span class="form__expected-format-inner-wrapper">'+o+"</span>","dd/mm/yyyy"===n.text()?n.html(t):n.append(" "+t)):i.append('<span class="form__help" id="help_text_'+e+'">'+o+"</span>"))}),$forms.each(function(){$(this).submit(function(){r()})}))})(),(t=>{document.addEventListener("DOMContentLoaded",function(){setSiteMinHeight(),initA11yToggle(),navigation.toggle(menu),navigation.toggle(pagesIn),void 0!==search.toggle&&search.toggle.addEventListener("click",function(){navigation.searchToggle()}),toggleMobileSwap(pagesIn.navigation,pagesIn.toggle,breakpoints.tablet),accessibleTables(),$body.find(".alert__close").each(function(){var i=t(this);i.on("click",function(t){t.preventDefault(),i.closest(".alert").remove()}),i.on("keydown",function(t){var e;13===t.keyCode&&(e=i.closest(".site-announcement"),t.preventDefault(),(e.prev().hasClass("site-announcement")?e.prev().find(".alert__close"):e.next().hasClass("site-announcement")?e.next().find(".alert__close"):$body.find(".site-header .identity__link")).focus(),e.remove())})})}),window.addEventListener("load",function(){carouselInit(".js-carousel"),skipMaps(),dateInputPolyfillSiteimproveFixes()}),window.addEventListener("resize",function(){verge.viewportW()!=viewports.width&&(viewports.height=verge.viewportH(),viewports.width=verge.viewportW(),setSiteMinHeight(),toggleMobileSwap(pagesIn.navigation,pagesIn.toggle,breakpoints.tablet,!0))})})(jQuery);

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