PageSourceSearch

https://www.birmingham.gov.uk/site/dist/orbit.js?v=1.76.2

js birmingham.gov.uk collected 2026-09-24 08:44:48 UTC 87,480 bytes, 3 lines download raw bytes

1function dateInputPolyfillSiteimproveFixes(){if($forms.length&&$body.length){var a=$body.find("date-input-polyfill");if(a.length){var b=a.find(".yearSelect"),c=b.closest(".yearSelect-wrapper"),d=a.find(".monthSelect"),e=d.closest(".monthSelect-wrapper");"undefined"!=typeof b&&(b.attr("id","date-input-polyfill-year-select"),c.prepend('<label class="visually-hidden" for="date-input-polyfill-year-select">Select Year</label>')),"undefined"!=typeof d&&(d.attr("id","date-input-polyfill-month-select"),e.prepend('<label class="visually-hidden" for="date-input-polyfill-month-select">Select Month</label>')),a.appendTo($siteHeader)}}}function debounce(a,b,c){var d;return function(){var e=this,f=arguments,g=function(){d=null,c||a.apply(e,f)},h=c&&!d;clearTimeout(d),d=setTimeout(g,b),h&&a.apply(e,f)}}window.matchMedia||(window.matchMedia=function(){"use strict";var a=window.styleMedia||window.media;if(!a){var b=document.createElement("style"),c=document.getElementsByTagName("script")[0],d=null;b.type="text/css",b.id="matchmediajs-test",c?c.parentNode.insertBefore(b,c):document.head.appendChild(b),d="getComputedStyle"in window&&window.getComputedStyle(b,null)||b.currentStyle,a={matchMedium:function(a){var c="@media "+a+"{ #matchmediajs-test { width: 1px; } }";return b.styleSheet?b.styleSheet.cssText=c:b.textContent=c,"1px"===d.width}}}return function(b){return{matches:a.matchMedium(b||"all"),media:b||"all"}}}()),function(){"use strict";function a(b,d){function e(a,b){return function(){return a.apply(b,arguments)}}var f;if(d=d||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=d.touchBoundary||10,this.layer=b,this.tapDelay=d.tapDelay||200,this.tapTimeout=d.tapTimeout||700,!a.notNeeded(b)){for(var g=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],h=this,i=0,j=g.length;i<j;i++)h[g[i]]=e(h[g[i]],h);c&&(b.addEventListener("mouseover",this.onMouse,!0),b.addEventListener("mousedown",this.onMouse,!0),b.addEventListener("mouseup",this.onMouse,!0)),b.addEventListener("click",this.onClick,!0),b.addEventListener("touchstart",this.onTouchStart,!1),b.addEventListener("touchmove",this.onTouchMove,!1),b.addEventListener("touchend",this.onTouchEnd,!1),b.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(b.removeEventListener=function(a,c,d){var e=Node.prototype.removeEventListener;"click"===a?e.call(b,a,c.hijacked||c,d):e.call(b,a,c,d)},b.addEventListener=function(a,c,d){var e=Node.prototype.addEventListener;"click"===a?e.call(b,a,c.hijacked||(c.hijacked=function(a){a.prop
1agationStopped||c(a)}),d):e.call(b,a,c,d)}),"function"==typeof b.onclick&&(f=b.onclick,b.addEventListener("click",function(a){f(a)},!1),b.onclick=null)}}var b=navigator.userAgent.indexOf("Windows Phone")>=0,c=navigator.userAgent.indexOf("Android")>0&&!b,d=/iP(ad|hone|od)/.test(navigator.userAgent)&&!b,e=d&&/OS 4_\d(_\d)?/.test(navigator.userAgent),f=d&&/OS [6-7]_\d/.test(navigator.userAgent),g=navigator.userAgent.indexOf("BB10")>0;a.prototype.needsClick=function(a){switch(a.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(a.disabled)return!0;break;case"input":if(d&&"file"===a.type||a.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(a.className)},a.prototype.needsFocus=function(a){switch(a.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!c;case"input":switch(a.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!a.disabled&&!a.readOnly;default:return/\bneedsfocus\b/.test(a.className)}},a.prototype.sendClick=function(a,b){var c,d;document.activeElement&&document.activeElement!==a&&document.activeElement.blur(),d=b.changedTouches[0],c=document.createEvent("MouseEvents"),c.initMouseEvent(this.determineEventType(a),!0,!0,window,1,d.screenX,d.screenY,d.clientX,d.clientY,!1,!1,!1,!1,0,null),c.forwardedTouchEvent=!0,a.dispatchEvent(c)},a.prototype.determineEventType=function(a){return c&&"select"===a.tagName.toLowerCase()?"mousedown":"click"},a.prototype.focus=function(a){var b;d&&a.setSelectionRange&&0!==a.type.indexOf("date")&&"time"!==a.type&&"month"!==a.type?(b=a.value.length,a.setSelectionRange(b,b)):a.focus()},a.prototype.updateScrollParent=function(a){var b,c;if(b=a.fastClickScrollParent,!b||!b.contains(a)){c=a;do{if(c.scrollHeight>c.offsetHeight){b=c,a.fastClickScrollParent=c;break}c=c.parentElement}while(c)}b&&(b.fastClickLastScrollTop=b.scrollTop)},a.prototype.getTargetElementFromEventTarget=function(a){return a.nodeType===Node.TEXT_NODE?a.parentNode:a},a.prototype.onTouchStart=function(a){var b,c,f;if(a.targetTouches.length>1)return!0;if(b=this.getTargetElementFromEventTarget(a.target),c=a.targetTouches[0],d){if(f=window.getSelection(),f.rangeCount&&!f.isCollapsed)return!0;if(!e){if(c.identifier&&c.identifier===this.lastTouchIdentifier)return a.preventDefault(),!1;this.lastTouchIdentifier=c.identifier,this.updateScrollParent(b)}}return this.trackingClick=!0,this.trackingClickStart=a.timeStamp,this.targetElement=b,this.touchStartX=c.pageX,this.touchStartY=c.pageY,a.timeStamp-this.lastClickTime<this.tapDelay&&a.preventDefault(),!0},a.prototype.touchHasMoved=function(a){var b=a.changedTouches[0],c=this.touchBoundary;return Math.abs(b.pageX-this.touchStartX)>c||Math.abs(b.pageY-this.touchStartY)>c},a.prototype.onTouchMove=function(a){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(a.target)||this.touchHasMoved(a))&&(this.trackingClick=!1,this.targetElement=null),!0)},a.prototype.findControl=function(a){return void 0!==a.control?a.control:a.htmlFor?document.getElementById(a.htmlFor):a.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},a.prototype.onTouchEnd=function(a){var b,g,h,i,j,k=this.targetElement;if(!this.trackingClick)return!0;if(a.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(a.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=a.timeStamp,g=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,f&&(j=a.changedTouches[0],k=document.elementFromPoint(j.pageX-window.pageXOffset,j.pageY-window.pageYOffset)||k,k.fastClickScrollParent=this.targetElement.fastClickScrollParent),h=k.tagName.toLowerCase(),"label"===h){if(b=this.findControl(k)){if(this.focus(k),c)return!1;k=b}}else if(this.needsFocus(k))return a.timeStamp-g>100||d&&window.top!==window&&"input"===h?(this.targetElement=null,!1):(this.focus(k),this.sendClick(k,a),d&&"select"===h||(this.targetElement=null,a.preventDefault()),!1);return!(!d||e||(i=k.fastClickScrollParent,!i||i.fastClickLastScrollTop===i.scrollTop))||(this.needsClick(k)||(a.preventDefault(),this.sendClick(k,a)),!1)},a.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},a.prototype.onMouse=function(a){return!this.targetElement||(!!a.forwardedTouchEvent||(!a.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(a.stopImmediatePropagation?a.stopImmediatePropagation():a.propagationStopped=!0,a.stopPropagation(),a.preventDefault(),!1))))},a.prototype.onClick=function(a){var b;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===a.target.type&&0===a.detail||(b=this.onMouse(a),b||(this.targetElement=null),b)},a.prototype.destroy=function(){var a=this.layer;c&&(a.removeEventListener("mouseover",this.onMouse,!0),a.removeEventListener("mousedown",this.onMouse,!0),a.removeEventListener("mouseup",this.onMouse,!0)),a.removeEventListener("click",this.onClick,!0),a.removeEventListener("touchstart",this.onTouchStart,!1),a.removeEventListener("touchmove",this.onTouchMove,!1),a.removeEventListener("touchend",this.onTouchEnd,!1),a.removeEventListener("touchcancel",this.onTouchCancel,!1)},a.notNeeded=function(a){var b,d,e,f;if("undefined"==typeof window.ontouchstart)return!0;
1if(d=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!c)return!0;if(b=document.querySelector("meta[name=viewport]")){if(b.content.indexOf("user-scalable=no")!==-1)return!0;if(d>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(g&&(e=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),e[1]>=10&&e[2]>=3&&(b=document.querySelector("meta[name=viewport]")))){if(b.content.indexOf("user-scalable=no")!==-1)return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===a.style.msTouchAction||"manipulation"===a.style.touchAction||(f=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],!!(f>=27&&(b=document.querySelector("meta[name=viewport]"),b&&(b.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))||("none"===a.style.touchAction||"manipulation"===a.style.touchAction))},a.attach=function(b,c){return new a(b,c)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return a}):"undefined"!=typeof module&&module.exports?(module.exports=a.attach,module.exports.FastClick=a):window.FastClick=a}(),function(a,b,c,d){var e=function(){var e=a(this);e[d]()||(e.addClass(b),"password"===e.attr("type")&&(e.attr("type","text"),e.data(b+"-pwd",!0)),e[d](e.attr(c)))},f=function(){var e=a(this);e.removeClass(b),e.data(b+"-pwd")&&e.attr("type","password"),e[d]()===e.attr(c)&&e[d]("")},g=function(){a(this).find("["+c+"]").each(function(){a(this).data(b)&&f.call(this)})};a.fn.placeholdr=function(){return c in document.createElement("input")?this:(a(this).find("["+c+"]").each(function(){var c=a(this);c.data(b)||(c.data(b,!0),e.call(this),c.focus(f),c.blur(e))}),a(this).find("form").each(function(){var c=a(this);c.data(b)||(c.data(b,!0),c.submit(g))}),this)},a.fn[d]=a.fn.val,a.fn.val=function(g){var h=a(this);if("undefined"===a.type(g)&&h.data(b)&&h[d]()===h.attr(c))return"";var i="string"===a.type(g);i&&f.call(this);var j=a.fn[d].apply(this,arguments);return i&&!g&&e.call(this),j},a(function(){a(document).placeholdr()}),document.write("<style>.placeholdr{color:#AAA;}</style>")}(jQuery,"placeholdr","placeholder","placeholdrVal"),function(a){function b(){}function c(a){function c(b){b.prototype.option||(b.prototype.option=function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))})}function e(b,c){a.fn[b]=function(e){if("string"==typeof e){for(var g=d.call(arguments,1),h=0,i=this.length;h<i;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(a){return new RegExp("(^|\\s+)"+a+"(\\s+|$)")}function c(a,b){var c=d(a,b)?f:e;c(a,b)}var d,e,f;"classList"in document.documentElement?(d=function(a,b){return a.classList.contains(b)},e=function(a,b){a.classList.add(b)},f=function(a,b){a.classList.remove(b)}):(d=function(a,c){return b(c).test(a.className)},e=function(a,b){d(a,b)||(a.className=a.className+" "+b)},f=function(a,c){a.className=a.className.replace(b(c)," ")});var g={hasClass:d,addClass:e,removeClass:f,toggleClass:c,has:d,add:e,remove:f,toggle:c};"function"==typeof define&&define.amd?define("classie/classie",g):"object"==typeof exports?module.exports=g:a.classie=g}(window),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&b(e[d],c)===-1&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),d!==-1&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);
1else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if(a instanceof RegExp)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:e.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(a){function b(a){if(a){if("string"==typeof d[a])return a;a=a.charAt(0).toUpperCase()+a.slice(1);for(var b,e=0,f=c.length;e<f;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),function(a,b){function c(a){var b=parseFloat(a),c=a.indexOf("%")===-1&&!isNaN(b);return c&&b}function d(){}function e(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0,c=h.length;b<c;b++){var d=h[b];a[d]=0}return a}function f(b){function d(){if(!m){m=!0;var d=a.getComputedStyle;if(j=function(){var a=d?function(a){return d(a,null)}:function(a){return a.currentStyle};return function(b){var c=a(b);return c||g("Style returned "+c+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),c}}(),k=b("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[k]="border-box";var f=document.body||document.documentElement;f.appendChild(e);var h=j(e);l=200===c(h.width),f.removeChild(e)}}}function f(a){if(d(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var b=j(a);if("none"===b.display)return e();var f={};f.width=a.offsetWidth,f.height=a.offsetHeight;for(var g=f.isBorderBox=!(!k||!b[k]||"border-box"!==b[k]),m=0,n=h.length;m<n;m++){var o=h[m],p=b[o];p=i(a,p);var q=parseFloat(p);f[o]=isNaN(q)?0:q}var r=f.paddingLeft+f.paddingRight,s=f.paddingTop+f.paddingBottom,t=f.marginLeft+f.marginRight,u=f.marginTop+f.marginBottom,v=f.borderLeftWidth+f.borderRightWidth,w=f.borderTopWidth+f.borderBottomWidth,x=g&&l,y=c(b.width);y!==!1&&(f.width=y+(x?0:r+v));var z=c(b.height);return z!==!1&&(f.height=z+(x?0:s+w)),f.innerWidth=f.width-(r+v),f.innerHeight=f.height-(s+w),f.outerWidth=f.width+t,f.outerHeight=f.height+u,f}}function i(b,c){if(a.getComputedStyle||c.indexOf("%")===-1)return c;var d=b.style,e=d.left,f=b.runtimeStyle,g=f&&f.left;
1return g&&(f.left=b.currentStyle.left),d.left=c,c=d.pixelLeft,d.left=e,g&&(f.left=g),c}var j,k,l,m=!1;return f}var g="undefined"==typeof console?d:function(a){},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],f):"object"==typeof exports?module.exports=f(require("desandro-get-style-property")):a.getSize=f(a.getStyleProperty)}(window),function(a){function b(a){"function"==typeof a&&(b.isReady?a():g.push(a))}function c(a){var c="readystatechange"===a.type&&"complete"!==f.readyState;b.isReady||c||d()}function d(){b.isReady=!0;for(var a=0,c=g.length;a<c;a++){var d=g[a];d()}}function e(e){return"complete"===f.readyState?d():(e.bind(f,"DOMContentLoaded",c),e.bind(f,"readystatechange",c),e.bind(a,"load",c)),b}var f=a.document,g=[];b.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):a.docReady=e(a.eventie)}(window),function(a){"use strict";function b(a,b){return a[g](b)}function c(a){if(!a.parentNode){var b=document.createDocumentFragment();b.appendChild(a)}}function d(a,b){c(a);for(var d=a.parentNode.querySelectorAll(b),e=0,f=d.length;e<f;e++)if(d[e]===a)return!0;return!1}function e(a,d){return c(a),b(a,d)}var f,g=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0,d=b.length;c<d;c++){var e=b[c],f=e+"MatchesSelector";if(a[f])return f}}();if(g){var h=document.createElement("div"),i=b(h,"div");f=i?b:e}else f=d;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return f}):"object"==typeof exports?module.exports=f:window.matchesSelector=f}(Element.prototype),function(a,b){"use strict";"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("doc-ready"),require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.docReady,a.matchesSelector)}(window,function(a,b,c){var d={};d.extend=function(a,b){for(var c in b)a[c]=b[c];return a},d.modulo=function(a,b){return(a%b+b)%b};var e=Object.prototype.toString;d.isArray=function(a){return"[object Array]"==e.call(a)},d.makeArray=function(a){var b=[];if(d.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0,e=a.length;c<e;c++)b.push(a[c]);else b.push(a);return b},d.indexOf=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},d.removeFrom=function(a,b){var c=d.indexOf(a,b);c!=-1&&a.splice(c,1)},d.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(a){return a instanceof HTMLElement}:function(a){return a&&"object"==typeof a&&1==a.nodeType&&"string"==typeof a.nodeName},d.setText=function(){function a(a,c){b=b||(void 0!==document.documentElement.textContent?"textContent":"innerText"),a[b]=c}var b;return a}(),d.getParent=function(a,b){for(;a!=document.body;)if(a=a.parentNode,c(a,b))return a},d.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},d.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},d.filterFindElements=function(a,b){a=d.makeArray(a);for(var e=[],f=0,g=a.length;f<g;f++){var h=a[f];if(d.isElement(h))if(b){c(h,b)&&e.push(h);for(var i=h.querySelectorAll(b),j=0,k=i.length;j<k;j++)e.push(i[j])}else e.push(h)}return e},d.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},d.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var f=a.console;return d.htmlInit=function(c,e){b(function(){for(var b=d.toDashed(e),g=document.querySelectorAll(".js-"+b),h="data-"+b+"-options",i=0,j=g.length;i<j;i++){var k,l=g[i],m=l.getAttribute(h);try{k=m&&JSON.parse(m)}catch(n){f&&f.error("Error parsing "+h+" on "+l.nodeName.toLowerCase()+(l.id?"#"+l.id:"")+": "+n);continue}var o=new c(l,k),jQuery=a.jQuery;jQuery&&jQuery.data(l,e,o)}})},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(c){return b(a,c)}):"object"==typeof exports?module.exports=b(a,require("get-size")):(a.Flickity=a.Flickity||{},a.Flickity.Cell=b(a,a.getSize))}(window,function(a,b){function c(a,b){this.element=a,this.parent=b,this.create()}var d="attachEvent"in a;return c.prototype.create=function(){this.element.style.position="absolute",d&&this.element.setAttribute("unselectable","on"),this.x=0,this.shift=0},c.prototype.destroy=function(){this.element.style.position="";var a=this.parent.originSide;this.element.style[a]=""},c.prototype.getSize=function(){this.size=b(this.element)},c.prototype.setPosition=function(a){this.x=a,this.setDefaultTarget(),this.renderPosition(a)},c.prototype.setDefaultTarget=function(){var a="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[a]+this.size.width*this.parent.cellAlign},c.prototype.renderPosition=function(a){var b=this.parent.originSide;this.element.style[b]=this.parent.getPositionValue(a)},c.prototype.wrapShift=function(a){this.shift=a,this.renderPosition(this.x+this.parent.slideableWidth*a)},c.prototype.remove=function(){this.element.parentNode.removeChild(this.element)},c}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("flickity/js/animate",["get-style-property/get-style-property","fizzy-ui-utils/utils"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("desandro-get-style-property"),require("fizzy-ui-utils")):(a.Flickity=a.Flickity||{},a.Flickity.animatePrototype=b(a,a.getStyleProperty,a.fizzyUIUtils))}(window,function(a,b,c){for(var d,e=0,f="webkit moz ms o".split(" "),g=a.requestAnimationFrame,h=a.cancelAnimationFrame,i=0;i<f.length&&(!g||!h);i++)d=f[i],g=g||a[d+"RequestAnimationFrame"],h=h||a[d+"CancelAnimationFrame"]||a[d+"CancelRequestAnimationFrame"];g&&h||(g=function(b){var c=(new Date).getTime(),d=Math.max(0,16-(c-e)),f=a.setTimeout(function(){b(c+d)},d);return e=c+d,f},h=function(b){a.clearTimeout(b)});var j={};j.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},j.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var a=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(a),this.isAnimating){var b=this;g(function(){b.animate()})}};var k=b("transform"),l=!!b("perspective");return j.positionSlider=function(){var a=this.x;this.options.wrapAround&&this.cells.length>1&&(a=c.modulo(a,this.slideableWidth),a-=this.slideableWidth,this.shiftWrapCells(a)
1),a+=this.cursorPosition,a=this.options.rightToLeft&&k?-a:a;var b=this.getPositionValue(a);k?this.slider.style[k]=l&&this.isAnimating?"translate3d("+b+",0,0)":"translateX("+b+")":this.slider.style[this.originSide]=b},j.positionSliderAtSelected=function(){if(this.cells.length){var a=this.cells[this.selectedIndex];this.x=-a.target,this.positionSlider()}},j.getPositionValue=function(a){return this.options.percentPosition?.01*Math.round(a/this.size.innerWidth*1e4)+"%":Math.round(a)+"px"},j.settle=function(a){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*a)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,l&&this.positionSlider(),this.dispatchEvent("settle"))},j.shiftWrapCells=function(a){var b=this.cursorPosition+a;this._shiftCells(this.beforeShiftCells,b,-1);var c=this.size.innerWidth-(a+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,c,1)},j._shiftCells=function(a,b,c){for(var d=0,e=a.length;d<e;d++){var f=a[d],g=b>0?c:0;f.wrapShift(g),b-=f.size.outerWidth}},j._unshiftCells=function(a){if(a&&a.length)for(var b=0,c=a.length;b<c;b++)a[b].wrapShift(0)},j.integratePhysics=function(){this.velocity+=this.accel,this.x+=this.velocity,this.velocity*=this.getFrictionFactor(),this.accel=0},j.applyForce=function(a){this.accel+=a},j.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},j.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},j.applyDragForce=function(){if(this.isPointerDown){var a=this.dragX-this.x,b=a-this.velocity;this.applyForce(b)}},j.applySelectedAttraction=function(){var a=this.cells.length;if(!this.isPointerDown&&!this.isFreeScrolling&&a){var b=this.cells[this.selectedIndex],c=this.options.wrapAround&&a>1?this.slideableWidth*Math.floor(this.selectedIndex/a):0,d=(b.target+c)*-1-this.x,e=d*this.options.selectedAttraction;this.applyForce(e)}},j}),function(a,b){"use strict";if("function"==typeof define&&define.amd)define("flickity/js/flickity",["classie/classie","eventEmitter/EventEmitter","eventie/eventie","get-size/get-size","fizzy-ui-utils/utils","./cell","./animate"],function(c,d,e,f,g,h,i){return b(a,c,d,e,f,g,h,i)});else if("object"==typeof exports)module.exports=b(a,require("desandro-classie"),require("wolfy87-eventemitter"),require("eventie"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./animate"));else{var c=a.Flickity;a.Flickity=b(a,a.classie,a.EventEmitter,a.eventie,a.getSize,a.fizzyUIUtils,c.Cell,c.animatePrototype)}}(window,function(a,b,c,d,e,f,g,h){function i(a,b){for(a=f.makeArray(a);a.length;)b.appendChild(a.shift())}function j(a,b){var c=f.getQueryElement(a);return c?(this.element=c,jQuery&&(this.$element=jQuery(this.element)),this.options=f.extend({},this.constructor.defaults),this.option(b),void this._create()):void(l&&l.error("Bad element for Flickity: "+(c||a)))}var jQuery=a.jQuery,k=a.getComputedStyle,l=a.console,m=0,n={};j.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},j.createMethods=[],f.extend(j.prototype,c.prototype),j.prototype._create=function(){var b=this.guid=++m;this.element.flickityGUID=b,n[b]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.accel=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",j.setUnselectable(this.viewport),this._createSlider(),(this.options.resize||this.options.watchCSS)&&(d.bind(a,"resize",this),this.isResizeBound=!0);for(var c=0,e=j.createMethods.length;c<e;c++){var f=j.createMethods[c];this[f]()}this.options.watchCSS?this.watchCSS():this.activate()},j.prototype.option=function(a){f.extend(this.options,a)},j.prototype.activate=function(){if(!this.isActive){this.isActive=!0,b.add(this.element,"flickity-enabled"),this.options.rightToLeft&&b.add(this.element,"flickity-rtl"),this.getSize();var a=this._filterFindCellElements(this.element.children);i(a,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,d.bind(this.element,"keydown",this)),this.emit
1("activate");var c,e=this.options.initialIndex;c=this.isInitActivated?this.selectedIndex:void 0!==e&&this.cells[e]?e:0,this.select(c,!1,!0),this.isInitActivated=!0}},j.prototype._createSlider=function(){var a=document.createElement("div");a.className="flickity-slider",a.style[this.originSide]=0,this.slider=a},j.prototype._filterFindCellElements=function(a){return f.filterFindElements(a,this.options.cellSelector)},j.prototype.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},j.prototype._makeCells=function(a){for(var b=this._filterFindCellElements(a),c=[],d=0,e=b.length;d<e;d++){var f=b[d],h=new g(f,this);c.push(h)}return c},j.prototype.getLastCell=function(){return this.cells[this.cells.length-1]},j.prototype.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},j.prototype._positionCells=function(a){a=a||0,this.maxCellHeight=a?this.maxCellHeight||0:0;var b=0;if(a>0){var c=this.cells[a-1];b=c.x+c.size.outerWidth}for(var d,e=this.cells.length,f=a;f<e;f++)d=this.cells[f],d.setPosition(b),b+=d.size.outerWidth,this.maxCellHeight=Math.max(d.size.outerHeight,this.maxCellHeight);this.slideableWidth=b,this._containCells()},j.prototype._sizeCells=function(a){for(var b=0,c=a.length;b<c;b++){var d=a[b];d.getSize()}},j.prototype._init=j.prototype.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},j.prototype.getSize=function(){this.size=e(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var o={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};j.prototype.setCellAlign=function(){var a=o[this.options.cellAlign];this.cellAlign=a?a[this.originSide]:this.options.cellAlign},j.prototype.setGallerySize=function(){this.options.setGallerySize&&(this.viewport.style.height=this.maxCellHeight+"px")},j.prototype._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var a=this.cursorPosition,b=this.cells.length-1;this.beforeShiftCells=this._getGapCells(a,b,-1),a=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(a,0,1)}},j.prototype._getGapCells=function(a,b,c){for(var d=[];a>0;){var e=this.cells[b];if(!e)break;d.push(e),b+=c,a-=e.size.outerWidth}return d},j.prototype._containCells=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length)for(var a=this.options.rightToLeft?"marginRight":"marginLeft",b=this.options.rightToLeft?"marginLeft":"marginRight",c=this.cells[0].size[a],d=this.getLastCell(),e=this.slideableWidth-d.size[b],f=e-this.size.innerWidth*(1-this.cellAlign),g=e<this.size.innerWidth,h=0,i=this.cells.length;h<i;h++){var j=this.cells[h];j.setDefaultTarget(),g?j.target=e*this.cellAlign:(j.target=Math.max(j.target,this.cursorPosition+c),j.target=Math.min(j.target,f))}},j.prototype.dispatchEvent=function(a,b,c){var d=[b].concat(c);
2if(this.emitEvent(a,d),jQuery&&this.$element)if(b){var e=jQuery.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},j.prototype.select=function(a,b,c){if(this.isActive){a=parseInt(a,10);var d=this.cells.length;this.options.wrapAround&&d>1&&(a<0?this.x-=this.slideableWidth:a>=d&&(this.x+=this.slideableWidth)),(this.options.wrapAround||b)&&(a=f.modulo(a,d)),this.cells[a]&&(this.selectedIndex=a,this.setSelectedCell(),c?this.positionSliderAtSelected():this.startAnimation(),this.dispatchEvent("cellSelect"))}},j.prototype.previous=function(a){this.select(this.selectedIndex-1,a)},j.prototype.next=function(a){this.select(this.selectedIndex+1,a)},j.prototype.setSelectedCell=function(){this._removeSelectedCellClass(),this.selectedCell=this.cells[this.selectedIndex],this.selectedElement=this.selectedCell.element,b.add(this.selectedElement,"is-selected")},j.prototype._removeSelectedCellClass=function(){this.selectedCell&&b.remove(this.selectedCell.element,"is-selected")},j.prototype.getCell=function(a){for(var b=0,c=this.cells.length;b<c;b++){var d=this.cells[b];if(d.element==a)return d}},j.prototype.getCells=function(a){a=f.makeArray(a);for(var b=[],c=0,d=a.length;c<d;c++){var e=a[c],g=this.getCell(e);g&&b.push(g)}return b},j.prototype.getCellElements=function(){for(var a=[],b=0,c=this.cells.length;b<c;b++)a.push(this.cells[b].element);return a},j.prototype.getParentCell=function(a){var b=this.getCell(a);return b?b:(a=f.getParent(a,".flickity-slider > *"),this.getCell(a))},j.prototype.getAdjacentCellElements=function(a,b){if(!a)return[this.selectedElement];b=void 0===b?this.selectedIndex:b;var c=this.cells.length;if(1+2*a>=c)return this.getCellElements();for(var d=[],e=b-a;e<=b+a;e++){var g=this.options.wrapAround?f.modulo(e,c):e,h=this.cells[g];h&&d.push(h.element)}return d}
2,j.prototype.uiChange=function(){this.emit("uiChange")},j.prototype.childUIPointerDown=function(a){this.emitEvent("childUIPointerDown",[a])},j.prototype.onresize=function(){this.watchCSS(),this.resize()},f.debounceMethod(j,"onresize",150),j.prototype.resize=function(){this.isActive&&(this.getSize(),this.options.wrapAround&&(this.x=f.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.positionSliderAtSelected())};var p=j.supportsConditionalCSS=function(){var a;return function(){if(void 0!==a)return a;if(!k)return void(a=!1);var b=document.createElement("style"),c=document.createTextNode('body:after { content: "foo"; display: none; }');b.appendChild(c),document.head.appendChild(b);var d=k(document.body,":after").content;return a=d.indexOf("foo")!=-1,document.head.removeChild(b),a}}();j.prototype.watchCSS=function(){var a=this.options.watchCSS;if(a){var b=p();if(!b){var c="fallbackOn"==a?"activate":"deactivate";return void this[c]()}var d=k(this.element,":after").content;d.indexOf("flickity")!=-1?this.activate():this.deactivate()}},j.prototype.onkeydown=function(a){if(this.options.accessibility&&(!document.activeElement||document.activeElement==this.element))if(37==a.keyCode){var b=this.options.rightToLeft?"next":"previous";this.uiChange(),this[b]()}else if(39==a.keyCode){var c=this.options.rightToLeft?"previous":"next";this.uiChange(),this[c]()}},j.prototype.deactivate=function(){if(this.isActive){b.remove(this.element,"flickity-enabled"),b.remove(this.element,"flickity-rtl");for(var a=0,c=this.cells.length;a<c;a++){var e=this.cells[a];e.destroy()}this._removeSelectedCellClass(),this.element.removeChild(this.viewport),i(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),d.unbind(this.element,"keydown",this)),this.isActive=!1,this.emit("deactivate")}},j.prototype.destroy=function(){this.deactivate(),this.isResizeBound&&d.unbind(a,"resize",this),this.emit("destroy"),jQuery&&this.$element&&jQuery.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete n[this.guid]},f.extend(j.prototype,h);var q="attachEvent"in a;return j.setUnselectable=function(a){q&&a.setAttribute("unselectable","on")},j.data=function(a){a=f.getQueryElement(a);var b=a&&a.flickityGUID;return b&&n[b]},f.htmlInit(j,"flickity"),jQuery&&jQuery.bridget&&jQuery.bridget("flickity",j),j.Cell=g,j}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("unipointer/unipointer",["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.Unipointer=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(){}function e(){}e.prototype=new b,e.prototype.bindStartEvent=function(a){this._bindStartEvent(a,!0)},e.prototype.unbindStartEvent=function(a){this._bindStartEvent(a,!1)},e.prototype._bindStartEvent=function(b,d){d=void 0===d||!!d;var e=d?"bind":"unbind";a.navigator.pointerEnabled?c[e](b,"pointerdown",this):a.navigator.msPointerEnabled?c[e](b,"MSPointerDown",this):(c[e](b,"mousedown",this),c[e](b,"touchstart",this))},e.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},e.prototype.getTouch=function(a){for(var b=0,c=a.length;b<c;b++){var d=a[b];if(d.identifier==this.pointerIdentifier)return d}},e.prototype.onmousedown=function(a){var b=a.button;b&&0!==b&&1!==b||this._pointerDown(a,a)},e.prototype.ontouchstart=function(a){this._pointerDown(a,a.changedTouches[0])},e.prototype.onMSPointerDown=e.prototype.onpointerdown=function(a){this._pointerDown(a,a)},e.prototype._pointerDown=function(a,b){this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==b.pointerId?b.pointerId:b.identifier,this.pointerDown(a,b))},e.prototype.pointerDown=function(a,b){this._bindPostStartEvents(a),this.emitEvent("pointerDown",[a,b])};var f={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"],MSPointerDown:["MSPointerMove","MSPointerUp","MSPointerCancel"]};return e.prototype._bindPostStartEvents=function(b){if(b){for(var d=f[b.type],e=b.preventDefault?a:document,g=0,h=d.length;g<h;g++){var i=d[g];c.bind(e,i,this)}this._boundPointerEvents={events:d,node:e}}},e.prototype._unbindPostStartEvents=function(){var a=this._boundPointerEvents;if(a&&a.events){for(var b=0,d=a.events.length;b<d;b++){var e=a.events[b];c.unbind(a.node,e,this)}delete this._boundPointerEvents}},e.prototype.onmousemove=function(a){this._pointerMove(a,a)},e.prototype.onMSPointerMove=e.prototype.onpointermove=function(a){a.pointerId==this.pointerIdentifier&&this._pointerMove(a,a)},e.prototype.ontouchmove=function(a){var b=this.getTouch(a.changedTouches);b&&this._pointerMove(a,b)},e.prototype._pointerMove=function(a,b){this.pointerMove(a,b)},e.prototype.pointerMove=function(a,b){this.emitEvent("pointerMove",[a,b])},e.prototype.onmouseup=function(a){this._pointerUp(a,a)},e.prototype.onMSPointerUp=e.prototype.onpointerup=function(a){a.pointerId==this.pointerIdentifier&&this._pointerUp(a,a)},e.prototype.ontouchend=function(a){var b=this.getTouch(a.changedTouches);b&&this._pointerUp(a,b)},e.prototype._pointerUp=function(a,b){this._pointerDone(),this.pointerUp(a,b)},e.prototype.pointerUp=function(a,b){this.emitEvent("pointerUp",[a,b])},e.prototype._pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this._unbindPostStartEvents(),this.pointerDone()},e.prototype.pointerDone=d,e.prototype.onMSPointerCancel=e.prototype.onpointercancel=function(a){a.pointerId==this.pointerIdentifier&&this._pointerCancel(a,a)},e.prototype.ontouchcancel=function(a){var b=this.getTouch(a.changedTouches);b&&this._pointerCancel(a,b)},e.prototype._pointerCancel=function(a,b){this._pointerDone(),this.pointerCancel(a,b)},e.prototype.pointerCancel=function(a,b){this.emitEvent("pointerCancel",[a,b])},e.getPointerPoint=function(a){return{x:void 0!==a.pageX?a.pageX:a.clientX,y:void 0!==a.pageY?a.pageY:a.clientY}},e}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("unidragger/unidragger",["eventie/eventie","unipointer/unipointer"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("unipointer")):a.Unidragger=b(a,a.eventie,a.Unipointer)}(window,function(a,b,c){function d(){}function e(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function f(){}function g(){return!1}f.prototype=new c,f.prototype.bindHandles=function(){this._bindHandles(!0)},f.prototype.unbindHandles=function(){this._bindHandles(!1)};var h=a.navigator;f.prototype._bindHandles=function(a){a=void 0===a||!!a;var c;c=h.pointerEnabled?function(b){b.style.touchAction=a?"none":""}:h.msPointerEnabled?function(b){b.style.msTouchAction=a?"none":""}:function(){a&&j(g)};for(var d=a?"bind":"unbind",e=0,f=this.handles.length;e<f;e++){var g=this.handles[e];this._bindStartEvent(g,a),c(g),b[d](g,"click",this)}};var i="attachEvent"in document.documentElement,j=i?function(a){"IMG"==a.nodeName&&(a.ondragstart=g);for(var b=a.querySelectorAll("img"),c=0,d=b.length;c<d;c++){var e=b[c];e.ondragstart=g}}:d;f.prototype.pointerDown=function(c,d){if("INPUT"==c.target.nodeName&&"range"==c.target.type)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(c,d);var e=document.activeElement;e&&e.blur&&e.blur(),this._bindPostStartEvents(c),this.pointerDownScroll=f.getScrollPosition(),b.bind(a,"scroll",this),this.emitEvent("pointerDown",[c,d])},f.prototype._dragPointerDown=function(a,b){this.pointerDownPoint=c.getPointerPoint(b);var d="touchstart"==a.type,f=a.target.nodeName;d||"SELECT"==f||e(a)},f.prototype.pointerMove=function(a,b){var c=this._dragPointerMove(a,b);this.emitEvent("pointerMove",[a,b,c]),this._dragMove(a,b,c)},f.prototype._dragPointerMove=function(a,b){var d=c.getPointerPoint(b),e={x:d.x-this.pointerDownPoint.x,y:d.y-this.pointerDownPoint.y};return!this.isDragging&&this.hasDragStarted(e)&&this._dragStart(a,b),e},f.prototype.hasDragStarted=function(a){return Math.abs(a.x)>3||Math.abs(a.y)>3},f.prototype.pointerUp=function(a,b){this.emitEvent("pointerUp",[a,b]),this._dragPointerUp(a,b)},f.prototype._dragPointerUp=function(a,b){this.isDragging?this._dragEnd(a,b):this._staticClick(a,b)},f.prototype.pointerDone=function(){b.unbind(a,"scroll",this)},f.prototype._dragStart=function(a,b){this.isDragging=!0,this.dragStartPoint=f.getPointerPoint(b),this.isPreventing
2Clicks=!0,this.dragStart(a,b)},f.prototype.dragStart=function(a,b){this.emitEvent("dragStart",[a,b])},f.prototype._dragMove=function(a,b,c){this.isDragging&&this.dragMove(a,b,c)},f.prototype.dragMove=function(a,b,c){e(a),this.emitEvent("dragMove",[a,b,c])},f.prototype._dragEnd=function(a,b){this.isDragging=!1;var c=this;setTimeout(function(){delete c.isPreventingClicks}),this.dragEnd(a,b)},f.prototype.dragEnd=function(a,b){this.emitEvent("dragEnd",[a,b])},f.prototype.pointerDone=function(){b.unbind(a,"scroll",this),delete this.pointerDownScroll},f.prototype.onclick=function(a){this.isPreventingClicks&&e(a)},f.prototype._staticClick=function(a,b){if(!this.isIgnoringMouseUp||"mouseup"!=a.type){var c=a.target.nodeName;if("INPUT"!=c&&"TEXTAREA"!=c||a.target.focus(),this.staticClick(a,b),"mouseup"!=a.type){this.isIgnoringMouseUp=!0;var d=this;setTimeout(function(){delete d.isIgnoringMouseUp},400)}}},f.prototype.staticClick=function(a,b){this.emitEvent("staticClick",[a,b])},f.prototype.onscroll=function(){var a=f.getScrollPosition(),b=this.pointerDownScroll.x-a.x,c=this.pointerDownScroll.y-a.y;(Math.abs(b)>3||Math.abs(c)>3)&&this._pointerDone()},f.getPointerPoint=function(a){return{x:void 0!==a.pageX?a.pageX:a.clientX,y:void 0!==a.pageY?a.pageY:a.clientY}};var k=void 0!==a.pageYOffset;return f.getScrollPosition=function(){return{x:k?a.pageXOffset:document.body.scrollLeft,y:k?a.pageYOffset:document.body.scrollTop}},f.getPointerPoint=c.getPointerPoint,f}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("flickity/js/drag",["classie/classie","eventie/eventie","./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(c,d,e,f,g){return b(a,c,d,e,f,g)}):"object"==typeof exports?module.exports=b(a,require("desandro-classie"),require("eventie"),require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):a.Flickity=b(a,a.classie,a.eventie,a.Flickity,a.Unidragger,a.fizzyUIUtils)}(window,function(a,b,c,d,e,f){function g(a){a.preventDefault?a.preventDefault():a.returnValue=!1}f.extend(d.defaults,{draggable:!0}),d.createMethods.push("_createDrag"),f.extend(d.prototype,e.prototype),d.prototype._createDrag=function(){this.on("activate",this.bindDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.unbindDrag)},d.prototype.bindDrag=function(){this.options.draggable&&!this.isDragBound&&(b.add(this.element,"is-draggable"),this.handles=[this.viewport],this.bindHandles(),this.isDragBound=!0)},d.prototype.unbindDrag=function(){this.isDragBound&&(b.remove(this.element,"is-draggable"),this.unbindHandles(),delete this.isDragBound)},d.prototype._uiChangeDrag=function(){delete this.isFreeScrolling},d.prototype._childUIPointerDownDrag=function(a){g(a),this.pointerDownFocus(a)},d.prototype.pointerDown=function(d,f){if("INPUT"==d.target.nodeName&&"range"==d.target.type)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(d,f);var g=document.activeElement;g&&g.blur&&g!=this.element&&g!=document.body&&g.blur(),this.pointerDownFocus(d),this.dragX=this.x,b.add(this.viewport,"is-pointer-down"),this._bindPostStartEvents(d),this.pointerDownScroll=e.getScrollPosition(),c.bind(a,"scroll",this),this.dispatchEvent("pointerDown",d,[f])};var h={touchstart:!0,MSPointerDown:!0},i={INPUT:!0,SELECT:!0};return d.prototype.pointerDownFocus=function(b){if(this.options.accessibility&&!h[b.type]&&!i[b.target.nodeName]){var c=a.pageYOffset;this.element.focus(),a.pageYOffset!=c&&a.scrollTo(a.pageXOffset,c)}},d.prototype.hasDragStarted=function(a){return Math.abs(a.x)>3},d.prototype.pointerUp=function(a,c){b.remove(this.viewport,"is-pointer-down"),this.dispatchEvent("pointerUp",a,[c]),this._dragPointerUp(a,c)},d.prototype.pointerDone=function(){c.unbind(a,"scroll",this),delete this.pointerDownScroll},d.prototype.dragStart=function(a,b){this.dragStartPosition=this.x,this.startAnimation(),this.dispatchEvent("dragStart",a,[b])},d.prototype.dragMove=function(a,b,c){g(a),this.previousDragX=this.dragX;var d=this.options.rightToLeft?-1:1,e=this.dragStartPosition+c.x*d;if(!this.options.wrapAround&&this.cells.length){var f=Math.max(-this.cells[0].target,this.dragStartPosition);e=e>f?.5*(e+f):e;var h=Math.min(-this.getLastCell().target,this.dragStartPosition);e=e<h?.5*(e+h):e}this.dragX=e,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",a,[b,c])},d.prototype.dragEnd=function(a,b){this.options.freeScroll&&(this.isFreeScrolling=!0);var c=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var d=this.getRestingPosition();this.isFreeScrolling=-d>this.cells[0].target&&-d<this.getLastCell().target}else this.options.freeScroll||c!=this.selectedIndex||(c+=this.dragEndBoostSelect());delete this.previousDragX,this.select(c),this.dispatchEvent("dragEnd",a,[b])},d.prototype.dragEndRestingSelect=function(){var a=this.getRestingPosition(),b=Math.abs(this.getCellDistance(-a,this.selectedIndex)),c=this._getClosestResting(a,b,1),d=this._getClosestResting(a,b,-1),e=c.distance<d.distance?c.index:d.index;return e},d.prototype._getClosestResting=function(a,b,c){for(var d=this.selectedIndex,e=1/0,f=this.options.contain&&!this.options.wrapAround?function(a,b){return a<=b}:function(a,b){return a<b};f(b,e)&&(d+=c,e=b,b=this.getCellDistance(-a,d),null!==b);)b=Math.abs(b);return{distance:e,index:d-c}},d.prototype.getCellDistance=function(a,b){var c=this.cells.length,d=this.options.wrapAround&&c>1,e=d?f.modulo(b,c):b,g=this.cells[e];if(!g)return null;var h=d?this.slideableWidth*Math.floor(b/c):0;return a-(g.target+h)},d.prototype.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var a=this.getCellDistance(-this.dragX,this.selectedIndex),b=this.previousDragX-this.dragX;return a>0&&b>0?1:a<0&&b<0?-1:0},d.prototype.staticClick=function(a,b){var c=this.getParentCell(a.target),d=c&&c.element,e=c&&f.indexOf(this.cells,c);this.dispatchEvent("staticClick",a,[b,d,e])},d}),function(a,b){"function"==typeof define&&define.amd?define("tap-listener/tap-listener",["unipointer/unipointer"],function(c){return b(a,c)}):"object"==typeof exports?module.exports=b(a,require("unipointer")):a.TapListener=b(a,a.Unipointer)}(window,function(a,b){function c(a){this.bindTap(a)}c.prototype=new b,c.prototype.bindTap=function(a){a&&(this.unbindTap(),this.tapElement=a,this._bindStartEvent(a,!0))},c.prototype.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)};var d=void 0!==a.pageYOffset;return c.prototype.pointerUp=function(c,e){if(!this.isIgnoringMouseUp||"mouseup"!=c.type){var f=b.getPointerPoint(e),g=this.tapElement.getBoundingClientRect(),h=d?a.pageXOffset:document.body.scrollLeft,i=d?a.pageYOffset:document.body.scrollTop,j=f.x>=g.left+h&&f.x<=g.right+h&&f.y>
2=g.top+i&&f.y<=g.bottom+i;j&&this.emitEvent("tap",[c,e]),"mouseup"!=c.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),320))}},c.prototype.destroy=function(){this.pointerDone(),this.unbindTap()},c}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["eventie/eventie","./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):b(a,a.eventie,a.Flickity,a.TapListener,a.fizzyUIUtils)}(window,function(a,b,c,d,e){function f(a,b){this.direction=a,this.parent=b,this._create()}function g(a){return"string"==typeof a?a:"M "+a.x0+",50 L "+a.x1+","+(a.y1+50)+" L "+a.x2+","+(a.y2+50)+" L "+a.x3+",50  L "+a.x2+","+(50-a.y2)+" L "+a.x1+","+(50-a.y1)+" Z"}var h="http://www.w3.org/2000/svg",i=function(){function a(){if(void 0!==b)return b;var a=document.createElement("div");return a.innerHTML="<svg/>",b=(a.firstChild&&a.firstChild.namespaceURI)==h}var b;return a}();return f.prototype=new d,f.prototype._create=function(){this.isEnabled=!0,this.isPrevious=this.direction==-1;var a=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==a;var b=this.element=document.createElement("button");if(b.className="flickity-prev-next-button",b.className+=this.isPrevious?" previous":" next",b.setAttribute("type","button"),this.disable(),b.setAttribute("aria-label",this.isPrevious?"previous":"next"),c.setUnselectable(b),i()){var d=this.createSVG();b.appendChild(d)}else this.setArrowText(),b.className+=" no-svg";var e=this;this.onCellSelect=function(){e.update()},this.parent.on("cellSelect",this.onCellSelect),this.on("tap",this.onTap),this.on("pointerDown",function(a,b){e.parent.childUIPointerDown(b)})},f.prototype.activate=function(){this.bindTap(this.element),b.bind(this.element,"click",this),this.parent.element.appendChild(this.element)},f.prototype.deactivate=function(){this.parent.element.removeChild(this.element),d.prototype.destroy.call(this),b.unbind(this.element,"click",this)},f.prototype.createSVG=function(){var a=document.createElementNS(h,"svg");a.setAttribute("viewBox","0 0 100 100");var b=document.createElementNS(h,"path"),c=g(this.parent.options.arrowShape);return b.setAttribute("d",c),b.setAttribute("class","arrow"),this.isLeft||b.setAttribute("transform","translate(100, 100) rotate(180) "),a.appendChild(b),a},f.prototype.setArrowText=function(){var a=this.parent.options,b=this.isLeft?a.leftArrowText:a.rightArrowText;e.setText(this.element,b)},f.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var a=this.isPrevious?"previous":"next";this.parent[a]()}},f.prototype.handleEvent=e.handleEvent,f.prototype.onclick=function(){var a=document.activeElement;a&&a==this.element&&this.onTap()},f.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},f.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},f.prototype.update=function(){var a=this.parent.cells;if(this.parent.options.wrapAround&&a.length>1)return void this.enable();var b=a.length?a.length-1:0,c=this.isPrevious?0:b,d=this.parent.selectedIndex==c?"disable":"enable";this[d]()},f.prototype.destroy=function(){this.deactivate()},e.extend(c.defaults,{prevNextButtons:!0,leftArrowText:"‹",rightArrowText:"›",arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),c.createMethods.push("_createPrevNextButtons"),c.prototype._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new f((-1),this),this.nextButton=new f(1,this),this.on("activate",this.activatePrevNextButtons))},c.prototype.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},c.prototype.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},c.PrevNextButton=f,c}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("flickity/js/page-dots",["eventie/eventie","./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):b(a,a.eventie,a.Flickity,a.TapListener,a.fizzyUIUtils)}(window,function(a,b,c,d,e){function f(a){this.parent=a,this._create()}return f.prototype=new d,f.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",c.setUnselectable(this.holder),this.dots=[];var a=this;this.onCellSelect=function(){a.updateSelected()},this.parent.on("cellSelect",this.onCellSelect),this.on("tap",this.onTap),this.on("pointerDown",function(b,c){a.parent.childUIPointerDown(c)})},f.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},f.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),d.prototype.destroy.call(this)},f.prototype.setDots=function(){var a=this.parent.cells.length-this.dots.length;a>0?this.addDots(a):a<0&&this.removeDots(-a)},f.prototype.addDots=function(a){for(var b=document.createDocumentFragment(),c=[];a;){var d=document.createElement("li");d.className="dot",b.appendChild(d),c.push(d),a--}this.holder.appendChild(b),this.dots=this.dots.concat(c)},f.prototype.removeDots=function(a){for(var b=this.dots.splice(this.dots.length-a,a),c=0,d=b.length;c<d;c++){var e=b[c];this.holder.removeChild(e)}},f.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot"),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected")},f.prototype.onTap=function(a){var b=a.target;if("LI"==b.nodeName){this.parent.uiChange();var c=e.indexOf(this.dots,b);this.parent.select(c)}},f.prototype.destroy=function(){this.deactivate()},c.PageDots=f,e.extend(c.defaults,{pageDots:!0}),c.createMethods.push("_createPageDots"),c.prototype._createPageDots=function(){this.options.pageDots&&(this.pageDots=new f(this),this.on("activate",this.activatePageDots),this.on("cellAddedRemoved",this.onCellAddedRemovedPageDots),this.on("deactivate",this.deactivatePageDots))},c.prototype.activatePageDots=function(){this.pageDots.activate()},c.prototype.onCellAddedRemovedPageDots=function(){this.pageDots.setDots()},c.prototype.deactivatePageDots=function(){this.pageDots.deactivate()},c.PageDots=f,c}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("flickity/js/player",["eventEmitter/EventEmitter","eventie/eventie","fizzy-ui-utils/utils","./flickity"],function(a,c,d,e){return b(a,c,d,e)}):"object"==typeof exports?module.exports=b(require("wolfy87-eventemitter"),require("eventie"),require("fizzy-ui-utils"),require("./flickity")):b(a.EventEmitter,a.eventie,a.fizzyUIUtils,a.Flickity)}(window,function(a,b,c,d){function e(a){if(this.parent=a,this.state="stopped",g){var b=this;this.onVisibilityChange=function(){b.visibilityChange()}}}var f,g;return"hidden"in document?(f="hidden",g="visibilitychange"):"webkitHidden"in document&&(f="webkitHidden",g="webkitvisibilitychange"),e.prototype=new a,e.prototype.play=function(){"playing"!=this.state&&(this.state="playing",g&&document.addEventListener(g,this.onVisibilityChange,!1),this.tick())},e.prototype.tick=function(){if("playing"==this.state){var a=this.parent.options.autoPlay;a="number"==typeof a?a:3e3;var b=this;this.clear(),this.timeout=setTimeout(function(){b.parent.next(!0),b.tick()},a)}},e.prototype.stop=function(){this.state="stopped",this.clear(),g&&document.removeEventListener(g,this.onVisibilityChange,!1)},e.prototype.clear=function(){clearTimeout(this.timeout)},e.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},e.prototype.unpause=function(){"paused"==this.state&&this.play()},e.prototype.visibilityChange=function(){var a=document[f];this[a?"pause":"unpause"]()},c.extend(d.defaults,{pauseAutoPlayOnHover:!0}),d.createMethods.push("_createPlayer"),d.prototype._createPlayer=function(){this.player=new e(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},d.prototype.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),b.bind(this.element,"mouseenter",this),this.isMouseenterBound=!0)},d.prototype.playPlayer=function(){this.player.play()},d.prototype.stopPlayer=function(){this.player.stop()},d.prototype.pausePlayer=function(){this.player.pause()},d.prototype.unpausePlayer=function(){this.player.unpause()},d.prototype.deactivatePlayer=function(){this.player.stop(),this.isMouseenterBound&&(b.unbind(this.element,"mouseenter",this),delete this.isMouseenterBound)},d.prototype.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),b.bind(this.element,"mouseleave",this))},d.prototype.onmouseleave=function(){this.player.unpause(),b.unbind(this.element,"mouseleave",this)},d.Player=e,d}
2),function(a,b){"use strict";"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("./flickity"),require("fizzy-ui-utils")):b(a,a.Flickity,a.fizzyUIUtils)}(window,function(a,b,c){function d(a){for(var b=document.createDocumentFragment(),c=0,d=a.length;c<d;c++){var e=a[c];b.appendChild(e.element)}return b}return b.prototype.insert=function(a,b){var c=this._makeCells(a);if(c&&c.length){var e=this.cells.length;b=void 0===b?e:b;var f=d(c),g=b==e;if(g)this.slider.appendChild(f);else{var h=this.cells[b].element;this.slider.insertBefore(f,h)}if(0===b)this.cells=c.concat(this.cells);else if(g)this.cells=this.cells.concat(c);else{var i=this.cells.splice(b,e-b);this.cells=this.cells.concat(c).concat(i)}this._sizeCells(c);var j=b>this.selectedIndex?0:c.length;this._cellAddedRemoved(b,j)}},b.prototype.append=function(a){this.insert(a,this.cells.length)},b.prototype.prepend=function(a){this.insert(a,0)},b.prototype.remove=function(a){var b,d,e,f=this.getCells(a),g=0;for(b=0,d=f.length;b<d;b++){e=f[b];var h=c.indexOf(this.cells,e)<this.selectedIndex;g-=h?1:0}for(b=0,d=f.length;b<d;b++)e=f[b],e.remove(),c.removeFrom(this.cells,e);f.length&&this._cellAddedRemoved(0,g)},b.prototype._cellAddedRemoved=function(a,b){b=b||0,this.selectedIndex+=b,this.selectedIndex=Math.max(0,Math.min(this.cells.length-1,this.selectedIndex)),this.emitEvent("cellAddedRemoved",[a,b]),this.cellChange(a,!0)},b.prototype.cellSizeChange=function(a){var b=this.getCell(a);if(b){b.getSize();var d=c.indexOf(this.cells,b);this.cellChange(d)}},b.prototype.cellChange=function(a,b){var c=this.slideableWidth;if(this._positionCells(a),this._getWrapShiftCells(),this.setGallerySize(),this.options.freeScroll){var d=c-this.slideableWidth;this.x+=d*this.cellAlign,this.positionSlider()}else b&&this.positionSliderAtSelected(),this.select(this.selectedIndex)},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("flickity/js/lazyload",["classie/classie","eventie/eventie","./flickity","fizzy-ui-utils/utils"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof exports?module.exports=b(a,require("desandro-classie"),require("eventie"),require("./flickity"),require("fizzy-ui-utils")):b(a,a.classie,a.eventie,a.Flickity,a.fizzyUIUtils)}(window,function(a,b,c,d,e){"use strict";function f(a){if("IMG"==a.nodeName&&a.getAttribute("data-flickity-lazyload"))return[a];var b=a.querySelectorAll("img[data-flickity-lazyload]");return e.makeArray(b)}function g(a,b){this.img=a,this.flickity=b,this.load()}return d.createMethods.push("_createLazyload"),d.prototype._createLazyload=function(){this.on("cellSelect",this.lazyLoad)},d.prototype.lazyLoad=function(){var a=this.options.lazyLoad;if(a){for(var b="number"==typeof a?a:0,c=this.getAdjacentCellElements(b),d=[],e=0,h=c.length;e<h;e++){var i=c[e],j=f(i);d=d.concat(j)}for(e=0,h=d.length;e<h;e++){var k=d[e];new g(k,this)}}},g.prototype.handleEvent=e.handleEvent,g.prototype.load=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.img.getAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload")},g.prototype.onload=function(a){this.complete(a,"flickity-lazyloaded")},g.prototype.onerror=function(a){this.complete(a,"flickity-lazyerror")},g.prototype.complete=function(a,d){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this);var e=this.flickity.getParentCell(this.img),f=e&&e.element;this.flickity.cellSizeChange(f),b.add(this.img,d),this.flickity.dispatchEvent("lazyLoad",a,f)},d.LazyLoader=g,d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],b):"object"==typeof exports&&(module.exports=b(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}(window,function(a){return a}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["classie/classie","flickity/js/index","fizzy-ui-utils/utils"],function(c,d,e){return b(a,c,d,e)}):"object"==typeof exports?module.exports=b(a,require("desandro-classie"),require("flickity"),require("fizzy-ui-utils")):a.Flickity=b(a,a.classie,a.Flickity,a.fizzyUIUtils)}(window,function(a,b,c,d){return c.createMethods.push("_createAsNavFor"),c.prototype._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var a=this.options.asNavFor;if(a){var b=this;setTimeout(function(){b.setNavCompanion(a)})}},c.prototype.setNavCompanion=function(a){a=d.getQueryElement(a);var b=c.data(a);if(b&&b!=this){this.navCompanion=b;var e=this;this.onNavCompanionSelect=function(){e.navCompanionSelect()},b.on("cellSelect",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect()}},c.prototype.navCompanionSelect=function(){if(this.navCompanion){var a=this.navCompanion.selectedIndex;this.select(a),this.removeNavSelectedElement(),this.selectedIndex==a&&(this.navSelectedElement=this.cells[a].element,b.add(this.navSelectedElement,"is-nav-selected"))}},c.prototype.activateAsNavFor=function(){this.navCompanionSelect()},c.prototype.removeNavSelectedElement=function(){this.navSelectedElement&&(b.remove(this.navSelectedElement,"is-nav-selected"),
3delete this.navSelectedElement)}
3,c.prototype.onNavStaticClick=function(a,b,c,d){"number"==typeof d&&this.navCompanion.select(d)},c.prototype.deactivateAsNavFor=function(){this.removeNavSelectedElement()},c.prototype.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("cellSelect",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},c}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();
3a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(jQuery){jQuery=jQuery||a.jQuery,jQuery&&(j=jQuery,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("flickity"),require("imagesloaded")):a.Flickity=b(a,a.Flickity,a.imagesLoaded)}(window,function(a,b,c){"use strict";return b.createMethods.push("_createImagesLoaded"),b.prototype._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},b.prototype.imagesLoaded=function(){function a(a,c){var d=b.getParentCell(c.img);b.cellSizeChange(d&&d.element),b.options.freeScroll||b.positionSliderAtSelected()}if(this.options.imagesLoaded){var b=this;c(this.slider).on("progress",a)}},b}),function(){"use strict";function a(a){return Array.prototype.slice.call(document.querySelectorAll(a))}function b(a){if(a.closest)return a.closest("[data-a11y-toggle]");for(;a;){if(1===a.nodeType&&a.hasAttribute("data-a11y-toggle"))return a;a=a.parentNode}return null}function c(a){var b=a&&f[a.getAttribute("aria-controls")];if(!b)return!1;var c=e["#"+b.id],d="false"===b.getAttribute("aria-hidden");b.setAttribute("aria-hidden",d),c.forEach(function(a){a.setAttribute("aria-expanded",!d)})}var d=0,e={},f={};document.addEventListener("DOMContentLoaded",function(){e=a("[data-a11y-toggle]").reduce(function(a,b){var c="#"+b.getAttribute("data-a11y-toggle");return a[c]=a[c]||[],a[c].push(b),a},e);var b=Object.keys(e);b.length&&a(b).forEach(function(a){var b=e["#"+a.id],c=a.hasAttribute("data-a11y-toggle-open"),g=[];b.forEach(function(b){if(b.id||b.setAttribute("id","a11y-toggle-"+d++),b.setAttribute("aria-controls",a.id),b.setAttribute("aria-expanded",c),g.push(b.id),b.hasAttribute("data-a11y-callback")){var e=document.createEvent("Event");e.initEvent("a11y-toggle:"+b.getAttribute("data-a11y-callback"),!0,!0),window.dispatchEvent(e)}}),a.setAttribute("aria-hidden",!c),a.hasAttribute("aria-labelledby")||a.setAttribute("aria-labelledby",g.join(" ")),f[a.id]=a})}),document.addEventListener("click",function(a){var d=b(a.target);c(d)}),document.addEventListener("keyup",function(a){if(13===a.which||32===a.which){var d=b(a.target);d&&"button"===d.getAttribute("role")&&c(d)}})}(),function(a){"use strict";a(jQuery)}(function(a){var b=-1,c=-1,d=function(a){return parseFloat(a)||0},e=function(b){var c=1,e=a(b),f=null,g=[];return e.each(function(){var b=a(this),e=b.offset().top-d(b.css("margin-top")),h=g.length>0?g[g.length-1]:null;null===h?g.push(b):Math.floor(Math.abs(f-e))<=c?g[g.length-1]=h.add(b):g.push(b),f=e}),g},f=function(b){var c={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof b?a.extend(c,b):("boolean"==typeof b?c.byRow=b:"remove"===b&&(c.remove=!0),c)},g=a.fn.matchHeight=function(b){var c=f(b);if(c.remove){var d=this;return this.css(c.property,""),a.each(g._groups,function(a,b){b.elements=b.elements.not(d)}),this}return this.length<=1&&!c.target?this:(g._groups.push({elements:this,options:c}),g._apply(this,c),this)};g.version="0.7.0",g._groups=[],g._throttle=80,g._maintainScroll=!1,g._beforeUpdate=null,g._afterUpdate=null,g._rows=e,g._parse=d,g._parseOptions=f,g._apply=function(b,c){var h=f(c),i=a(b),j=[i],k=a(window).scrollTop(),l=a("html").outerHeight(!0),m=i.parents().filter(":hidden");return m.each(function(){var b=a(this);b.data("style-cache",b.attr("style"))}),m.css("display","block"),h.byRow&&!h.target&&(i.each(function(){var b=a(this),c=b.css("display");"inline-block"!==c&&"flex"!==c&&"inline-flex"!==c&&(c="block"),b.data("style-cache",b.attr("style")),b.css({display:c,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),j=e(i),i.each(function(){var b=a(this);b.attr("style",b.data("style-cache")||"")})),a.each(j,function(b,c){var e=a(c),f=0;if(h.target)f=h.target.outerHeight(!1);else{if(h.byRow&&e.length<=1)return void e.css(h.property,"");e.each(function(){var b=a(this),c=b.attr("style"),d=b.css("display");"inline-block"!==d&&"flex"!==d&&"inline-flex"!==d&&(d="block");var e={display:d};e[h.property]="",b.css(e),b.outerHeight(!1)>f&&(f=b.outerHeight(!1)),c?b.attr("style",c):b.css("display","")})}e.each(function(){var b=a(this),c=0;h.target&&b.is(h.target)||("border-box"!==b.css("box-sizing")&&(c+=d(b.css("border-top-width"))+d(b.css("border-bottom-width")),c+=d(b.css("padding-top"))+d(b.css("padding-bottom"))),b.css(h.property,f-c+"px"))})}),m.each(function(){var b=a(this);b.attr("style",b.data("style-cache")||null)}),g._maintainScroll&&a(window).scrollTop(k/l*a("html").outerHeight(!0)),this},g._applyDataApi=function(){var b={};a("[data-match-height], [data-mh]").each(function(){var c=a(this),d=c.attr("data-mh")||c.attr("data-match-height");d in b?b[d]=b[d].add(c):b[d]=c}),a.each(b,function(){this.matchHeight(!0)})};var h=function(b){g._beforeUpdate&&g._beforeUpdate(b,g._groups),a.each(g._groups,function(){g._apply(this.elements,this.options)}),g._afterUpdate&&g._afterUpdate(b,g._groups)};g._update=function(d,e){if(e&&"resize"===e.type){var f=a(window).width();if(f===b)return;b=f}d?c===-1&&(c=setTimeout(function(){h(e),c=-1},g._throttle)):h(e)},a(g._applyDataApi),a(window).bind("load",function(a){g._update(!1,a)}),a(window).bind("resize orientationchange",function(a){g._update(!0,a)})}),function(){var a,b;a=this.jQuery||window.jQuery,b=a(window),a.fn.stick_in_parent=function(c){var d,e,f,g,h,i,j,k,l,m,n,o;for(null==c&&(c={}),o=c.sticky_class,i=c.inner_scrolling,n=c.recalc_every,m=c.parent,l=c.offset_top,k=c.spacer,f=c.bottoming,null==l&&(l=0),null==m&&(m=void 0),null==i&&(i=!0),null==o&&(o="is_stuck"),d=a(document),null==f&&(f=!0),g=function(c,e,g,h,j,p,q,r){var s,t,u,v,w,x,y,z,A,B,C,D;if(!c.data("sticky_kit")){if(c.data("sticky_kit",!0),w=d.height(),y=c.parent(),null!=m&&(y=y.closest(m)),!y.length)throw"failed to find stick parent";if(u=!1,s=!1,C=null!=k?k&&c.closest(k):a("<div />"),C&&C.css("position",c.css("position")),z=function(){var a,b,f;if(!r)return w=d.height(),a=parseInt(y.css("border-top-width"),10),b=parseInt(y.css("padding-top"),10),e=parseInt(y.css("padding-bottom"),10),g=y.offset().top+a+b,h=y.height(),u&&(u=!1,s=!1,null==k&&(c.insertAfter(C),C.detach()),c.css({position:"",top:"",width:"",bottom:""}).removeClass(o),f=!0),j=c.offset().top-(parseInt(c.css("margin-top"),10)||0)-l,p=c.outerHeight(!0),q=c.css("float"),C&&C.css({width:c.outerWidth(!0),height:p,display:c.css("display"),"vertical-align":c.css("vertical-align"),"float":q}),f?D():void 0},z(),p!==h)return v=void 0,x=l,B=n,D=function(){var a,m,t,A,D,E;if(!r)return t=!1,null!=B&&(B-=1,B<=0&&(B=n,z(),t=!0)),t||d.height()===w||(z
3(),t=!0),A=b.scrollTop(),null!=v&&(m=A-v),v=A,u?(f&&(D=A+p+x>h+g,s&&!D&&(s=!1,c.css({position:"fixed",bottom:"",top:x}).trigger("sticky_kit:unbottom"))),A<j&&(u=!1,x=l,null==k&&("left"!==q&&"right"!==q||c.insertAfter(C),C.detach()),a={position:"",width:"",top:""},c.css(a).removeClass(o).trigger("sticky_kit:unstick")),i&&(E=b.height(),p+l>E&&(s||(x-=m,x=Math.max(E-p,x),x=Math.min(l,x),u&&c.css({top:x+"px"}))))):A>j&&(u=!0,a={position:"fixed",top:x},a.width="border-box"===c.css("box-sizing")?c.outerWidth()+"px":c.width()+"px",c.css(a).addClass(o),null==k&&(c.after(C),"left"!==q&&"right"!==q||C.append(c)),c.trigger("sticky_kit:stick")),u&&f&&(null==D&&(D=A+p+x>h+g),!s&&D)?(s=!0,"static"===y.css("position")&&y.css({position:"relative"}),c.css({position:"absolute",bottom:e,top:"auto"}).trigger("sticky_kit:bottom")):void 0},A=function(){return z(),D()},t=function(){if(r=!0,b.off("touchmove",D),b.off("scroll",D),b.off("resize",A),a(document.body).off("sticky_kit:recalc",A),c.off("sticky_kit:detach",t),c.removeData("sticky_kit"),c.css({position:"",bottom:"",top:"",width:""}),y.position("position",""),u)return null==k&&("left"!==q&&"right"!==q||c.insertAfter(C),C.remove()),c.removeClass(o)},b.on("touchmove",D),b.on("scroll",D),b.on("resize",A),a(document.body).on("sticky_kit:recalc",A),c.on("sticky_kit:detach",t),setTimeout(D,0)}},h=0,j=this.length;h<j;h++)e=this[h],g(a(e));return this}}.call(this),function(a,b){var c=function(a,b,c){var d;return function(){function e(){c||a.apply(f,g),d=null}var f=this,g=arguments;d?clearTimeout(d):c&&a.apply(f,g),d=setTimeout(e,b||100)}};jQuery.fn[b]=function(a){return a?this.bind("resize",c(a)):this.trigger(b)}}(jQuery,"smartresize"),function(a,b){"use strict";var c=function(){function b(a){var b,c,f=a.offsetHeight;for(var g in e)b=g,document.body.clientWidth>b&&b>=c&&(d=e[g],c=b);a.style.marginBottom=d-f%d+"px"}function c(c){b(c),"addEventListener"in a?a.addEventListener("resize",function(){b(c)},!1):"attachEvent"in a&&a.attachEvent("resize",function(){b(c)})}var d=0,e={};return function(a,b){var f="string"==typeof a?document.querySelectorAll(a):a,g=f.length;if("number"==typeof b)d=parseInt(b,10);else if("object"==typeof b){var h=parseInt(getComputedStyle(document.body,null).getPropertyValue("font-size"),10);for(var i in e){var j=/\d+em/.test(i)?parseInt(i,10)*h:/\d+px/.test(i)?parseInt(i,10):i;e[j]=parseInt(e[i],10)}}if(g>1)for(;g--;)c(f[g]);else c(f[0])}}();"undefined"!=typeof b?b.extend(b.fn,{baseline:function(a){return c(this,a)}}):a.baseline=c}(window,window.jQuery||window.Zepto||void 0);var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"Other",this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"Unknown"},searchString:function(a){for(var b=0;b<a.length;b++){var c=a[b].string;if(this.versionSearchString=a[b].subString,c.indexOf(a[b].subString)!==-1)return a[b].identity}},searchVersion:function(a){var b=a.indexOf(this.versionSearchString);if(b!==-1){var c=a.indexOf("rv:");return"Trident"===this.versionSearchString&&c!==-1?parseFloat(a.substring(c+3)):parseFloat(a.substring(b+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"}]};BrowserDetect.init(),"Safari"==BrowserDetect.browser?document.body.classList.add("is-safari"):"Explorer"==BrowserDetect.browser&&document.body.classList.add("is-ie");var $body=$("body"),$forms=$body.find(".form"),$siteHeader=$body.find(".site-header");!function(){function a(){$forms.find('[type="date"]').each(function(){var a,b=$(this),c=b.val(),d=/^([0-2][0-9]|(3)[0-1])(\/)(((0)[0-9])|((1)[0-2]))(\/)\d{4}$/,e=d.test(c);if(e&&null!==c){var f=c.split("/"),g=f[0],h=f[1],i=f[2];a=i+"-"+h+"-"+g,b.val(a)}})}if(!Modernizr.inputtypes.date){var b="yyyy-mm-dd",c='<span class="form__expected-format"><span class="visually-hidden">Date format: </span><span class="form__valid-format">'+b+"</span></span>";$forms.find('[type="date"]').each(function(){var d=$(this),e=d.attr("id"),f=d.closest(".form__component",".form__control"),g=f.find(".form__help");if(d.attr({"aria-describedby":"help_text_"+e}),d.on("change",function(){a()}),!f.find(".form__expected-format").length&&g.text().toLowerCase().indexOf(b)===-1){if(g.length){var h='<span class="form__expected-format-inner-wrapper">'+c+"</span>";return void("dd/mm/yyyy"===g.text()?g.html(h):g.append(" "+h))}f.append('<span class="form__help" id="help_text_'+e+'">'+c+"</span>")}}),$forms.each(function(){$(this).submit(function(){a()})})}}(),function(a){function b(){var a=k.find(".form__field"),b="182px";j.outerWidth()>m?(k.stick_in_parent({parent:".site",offset_top:0,inner_scrolling:!1,sticky_class:"is-stuck",spacer:!1}).on("sticky_kit:stick",function(a){a.target.parentNode.style.height=b}).on("sticky_kit:unstick",function(a){a.target.parentNode.style.height="auto"}),a.attr("placeholder","Search this site for information, advice and more…")):(k.trigger("sticky_kit:detach"),a.removeAttr("placeholder"))}function c(a){a.find(".flickity-prev-next-button.next").append('<span class="visually-hidden">next</span>'),a.find(".flickity-prev-next-button.previous").append('<span class="visually-hidden">previous</span>'),a.find(".flickity-prev-next-button svg").attr("focusable","false")}function d(a,b,c){if(c){var d=new Date;d.setTime(d.getTime()+24*c*60*60*1e3);var e="; expires="+d.toGMTString()}else var e="";document.cookie=a+"="+b+e+"; path=/"}function e(a){o.sort(function(b,c){var d=b.getAttribute(a),e=c.getAttribute(a);return d>e?1:d<e?-1:0}),o.detach().appendTo(n)}function f(){p||(e("data-desktop-tab-order"),p=!0)}function g(){p&&(e("data-standard-order"),p=!1)}function h(){j.outerWidth()>m?f():g()}var i="M59.71,21.29a4.17,4.17,0,0,1,2.79,7.29L38,50,62.5,71.42A4.17,4.17,0,0,1,57,77.67L28.92,53.13a4.17,4.17,0,0,1,0-6.25L57,22.33A4.17,4.17,0,0,1,59.71,21.29Z",j=a(window),k=(a(document.body),a(".site"),a(".site-search")),l=k.outerHeight(),m=1024;j.smartresize(function(){b()});var n=a(".group--homepage-bricks"),o=n.find(".group__item"),p=!1;a(function(){FastClick.attach(document.body)}),a(document).ready(function(){function e(){if(window.innerWidth>599){var b=a(E.selectedElement).attr("data-imgHeightRatio")+"%";F.css("padding-top",b)}else{var b=a(E.selectedElement).height();F.css("height",b)}}var f=a(window.location.hash);if(f.length){var g=f.offset(),k=g.top-l;a("html, body").animate({scrollTop:k},50)}a(function(){a('a[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var b=a(this.hash);b=b.length?b:a("[name="+this.hash.slice(1)+"]"),b.length&&a("html, body").animate({scrollTop:b.offset().top-l},250)}})}),b(),a(".focus-jump").on("focus",function(){var b=a(this).attr("data-href")?a(this).attr("data-href"):a(this).attr("href");a(b).focus()}),function(){var b=a(".widget--my-account-forms"),c={removeForm:b.find(".remove"),confirm:b.find('#removeForm .button[value="Yes"]')};c.removeForm.on("click",function(){c.confirm.focus()})}();var m=a("#council-services"),o=a('[data-a11y-toggle="council-services"]'),p=a("#council-services-close"),q=a("#council-services-toggle");o.on("click",function(){a(this).blur(),"true"==m.attr("aria-hidden")?setTimeout(function(){m.removeClass("is-hidden").addClass("is-visible"),p.focus()},100):setTimeout(function(){m.addClass("is-hidden").removeClass("is-visible"),q.focus()},600)});var r=a("#history"),s=a('[data-a11y-toggle="history"]'),t=a("#history-close"),u=a("#history-toggle"),v=a(".visited-pages__accept");s.on("click",function(){a(this).blur(),"true"==r.attr("aria-hidden")?setTimeout(function(){r.removeClass("is-hidden").addClass("is-visible"),t.focu
3s()},100):setTimeout(function(){r.addClass("is-hidden").removeClass("is-visible"),u.focus()},600)}),v.on("click",function(a){a.preventDefault(),d("acceptVisitedPagesMessage",1,365)}),a(".widget--next-collections").find(".list__item").matchHeight(),n.length&&(a("html").first().hasClass("touchevents")&&n.on("touchstart click",".brick--slide .brick__main-link",function(b){window.innerWidth>623&&(b.preventDefault(),a(this).closest(".brick--slide").addClass("hover"))}),h(),j.smartresize(function(){h()}));var w=a(".homepage-carousel"),x=a(".homepage-carousel__text"),y=a('<div class="homepage-carousel__images"></div>'),z=w.find(".carousel__image");z.detach(),y.append(z).prependTo(w),y.flickity({accessibility:!1,cellSelector:".carousel__image",imagesLoaded:!0,asNavFor:".homepage-carousel__text",pageDots:!1,prevNextButtons:!1,rightToLeft:!0,wrapAround:!0}),x.flickity({accessibility:!1,cellSelector:".carousel__slide",arrowShape:i,wrapAround:!0}),c(x),x.length&&(x.find(".flickity-prev-next-button").attr("tabindex",-1),x.each(function(){var b=a(this),c=b.find(".carousel__cta");b.data("flickity");b.find(".flickity-slider").prepend('<span class="focusReferencePoint" tabindex="-1"></span>');var d=b.find(".focusReferencePoint");c.on("focus",function(b){var c=a(this),e=c.closest(".carousel__slide");if(!e.hasClass("is-selected")){var f=e.index()-1;d.focus(),y.flickity("select",f,!1,!0),x.flickity("select",f,!1,!0),window.setTimeout(function(){c.focus()},10)}})}));var A=a(".js-carousel");A.length&&(A.flickity({accessibility:!1,cellSelector:".carousel__slide",imagesLoaded:!0,arrowShape:i,wrapAround:!0}),A.find(".flickity-prev-next-button").attr("tabindex",-1),A.each(function(){var b=a(this),d=b.data("flickity");if(d.cells.length>1){c(b);var e=b.find("a");b.find(".flickity-slider").prepend('<span class="focusReferencePoint" tabindex="-1"></span>');var f=b.find(".focusReferencePoint");e.on("focus",function(c){var d=a(this),e=d.closest(".carousel__slide");if(!e.hasClass("is-selected")){var g=e.index()-1;f.focus(),b.flickity("select",g,!1,!0),window.setTimeout(function(){d.focus()},10)}})}else b.find(".flickity-prev-next-button").css("visibility","hidden"),b.find(".flickity-page-dots").css("visibility","hidden")}));var B=a(".js-gallery-carousel");if(B.length){var C=a(".js-gallery-navigation"),D={arrowShape:i,cellSelector:".carousel__slide",setGallerySize:!1,pageDots:!1,lazyLoad:1,wrapAround:!0};B.flickity(D),C.find(".carousel__slide").length>4&&(C.flickity({accessibility:!1,asNavFor:".js-gallery-carousel",cellSelector:".carousel__slide",contain:!0,pageDots:!1,prevNextButtons:!1,wrapAround:!0}),C.on("click","a",function(a){a.preventDefault()})),c(B);var E=B.data("flickity"),F=B.find(".flickity-viewport");e(),j.smartresize(function(){e()}),B.on("cellSelect",e)}var G=a("[data-js-event-calendar]");G.on("click","[data-js-event-calendar-link]",function(b){b.preventDefault(),G.addClass("is-loading");var c=a(this).attr("href");a.ajax(c,{dataType:"html"}).done(function(b){var c=a(b).find(".calendar__content").html();G.find(".calendar__content").html(c),window.setTimeout(function(){G.removeClass("is-loading")},50)}).fail(function(){window.location.href=c})}),dateInputPolyfillSiteimproveFixes()}),a("table:not(.calendar)").each(function(){var b=a(this);b.wrap('<div class="table__wrapper"></div>').wrap('<div class="scroller"></div>');var c=b.closest(".table__wrapper");b.outerWidth()>c.outerWidth()&&c.addClass("table__wrapper--scroll"),a(window).on("resize orientationchange",debounce(function(){b.outerWidth()>c.outerWidth()?c.addClass("table__wrapper--scroll"):c.removeClass("table__wrapper--scroll")},100))})}(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.