1!function(t){function e(e){for(var r,u,c=e[0],a=e[1],l=e[2],f=0,p=[];f<c.length;f++)u=c[f],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&p.push(o[u][0]),o[u]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r]);for(s&&s(e);p.length;)p.shift()();return i.push.apply(i,l||[]),n()}function n(){for(var t,e=0;e<i.length;e++){for(var n=i[e],r=!0,c=1;c<n.length;c++){var a=n[c];0!==o[a]&&(r=!1)}r&&(i.splice(e--,1),t=u(u.s=n[0]))}return t}var r={},o={0:0},i=[];function u(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.m=t,u.c=r,u.d=function(t,e,n){u.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},u.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},u.t=function(t,e){if(1&e&&(t=u(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)u.d(n,r,function(e){return t[e]}.bind(null,r));return n},u.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return u.d(e,"a",e),e},u.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},u.p="";var c=window.webpackJsonp=window.webpackJsonp||[],a=c.push.bind(c);c.push=e,c=c.slice();for(var l=0;l<c.length;l++)e(c[l]);var s=a;i.push([10,2]),n()}([,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Promise((function(o){r>0?setTimeout((function(){return t.style[e]=n}),r):t.style[e]=n,t.addEventListener("transitionend",(function n(r){r.propertyName===e&&(t.removeEventListener("transitionend",n),o())}))}))}},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0});var c=n(4),a=n(17),l=n(5),s=new(i((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var e,n,r=[],o=!1;function i(){n=window.pageYOffset?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop?document.body.scrollTop:0}this.add=function(t){r.push(t),window.requestAnimationFrame&&(o||function t(){o=!0,document.documentElement.classList.toggle("document-scrolled",n>0||document.documentElement.classList.contains("fixed-window")),i(),e!==n&&!1===document.documentElement.classList.contains(l.GLOBAL_CSS_CLASSES.fixedWindow)&&(e=n,a.runCallbacks(r,null));window.requestAnimationFrame((function(){return t()}))}())},this.remove=function(t){r.push(t),c.default(r,t)},this.getScrollPosition=function(){return i(),n},this.saveScrollPosition=function(){e=this.getScrollPosition()},this.scrollTo=function(t){window.scrollTo({top:t}),i()},this.scrollToLastPosition=function(){this.scrollTo(e)},this.getLastScrollPosition=function(){return e}})));e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=t.slice(0),r=n.indexOf(e);return r>-1&&n.splice(r,1),n}},function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.GLOBAL_CSS_CLASSES=void 0,e.GLOBAL_CSS_CLASSES={fixedWindow:"fixed-window"}},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0});var c=n(19),a=n(4),l=new(i((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var e,n=[],r=window.innerWidth,o=window.innerHeight;function i(){clearTimeout(e),e=setTimeout((function(){window.requestAnimationFrame?window.requestAnimationFrame(u):setTimeout(u,66)}),250)}function u(){window.innerWidth==r&&window.innerHeight==o||(r=window.innerWidth,o=window.innerHeight,n.forEach((function(t){t()})))}this.add=function(t){n.length||(window.addEventListener("orientationchange",i),window.addEventListener("resize",i)),function(t){t&&-1===n.indexOf(t)&&n.push(t)}(t)},this.remove=function(t){(n=a.default(n,t)).length||(window.removeEventListener("orientationchange",i),window.removeEventListener("resize",i))},this.isMobile=function(){return!0===matchMedia(c.MEDIA_QUERIES.mobile).matches},this.isAboveMobile=function(){return!0===matchMedia(c.MEDIA_QUERIES.aboveMobile).matches},this.isDesktop=function(){return!0===matchMedia(c.MEDIA_QUERIES.desktop).matches},this.isTablet=function(){return!0===matchMedia(c.MEDIA_QUERIES.tablet).matches},this.isAboveTabletLandscape=function(){return!0===matchMedia(c.MEDIA_QUERIES.aboveTabetLandscape).matches}})));e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(21);e.default=function t(e,n){return null==e?null:r.default(e,n)?e:t(e.parentElement,n)}},function(t,e,n){"use strict";function r(t){return(r="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 o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",u=n.toStringTag||"@@toStringTag";function c(n,r,o,u){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return i(s,"_invoke",function(n,r,o){var i,u,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,u=0,c=t,p.n=n,a}};function d(n,r){for(u=n,c=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),u=s,c=y;(e=u<2?t:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(l=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(e){i=t,u=1,c=e}finally{l=1}}return{value:e,done:f}}}(n,o,u),!0),s}var a={};function l(){}function s(){}function f(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(i(e={},r,(function(){return this})),e),d=f.prototype=l.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,i(t,u,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=f,i(d,"constructor",f),i(f,"constructor",s),s.displayName="GeneratorFunction",i(f,u,"GeneratorFunction"),i(d),i(d,u,"Generator"),i(d,r,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:c,m:y}})()}function i(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,n,r){function u(e,n){i(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(u("next",0),u("throw",1),u("return",2))})(t,e,n,r)}function u(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function a(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==r(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0}),e.pjaxService=void 0;var s=a((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.fetchPageContainers=function(){var t,e=(t=o().m((function t(e,n){return o().w((function(t){for(;;)switch(t.n){case 0:return t.a(2,fetch(e).then((function(t){var e={results:null,pagination:null,loadMore:null};return t.ok?t.text().then((function(t){var r=document.createElement("html");return r.innerHTML=t,n.results&&(e.results=r.querySelector(n.results)),n.pagination&&(e.pagination=r.querySelector(n.pagination)),n.loadMore&&(e.loadMore=r.querySelector(n.loadMore)),e})):e})))}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function c(t){u(i,r,o,c,a,"next",t)}function a(t){u(i,r,o,c,a,"throw",t)}c(void 0)}))});return function(t,n){return e.apply(this,arguments)}}()}));e.pjaxService=new s},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(11),n(12),n(13),n(15),n(16),n(20),n(22),n(23),n(24),n(25),n(26),n(28),n(29),n(30),n(34),n(35),n(36),n(37),n(38),n(39),n(40),n(41),n(42),document.addEventListener("DOMContentLoaded",(function(){var t=document.querySelector(".preload-transitions");requestAnimationFrame((function(){t.classList.remove("preload-transitions")}))}))},,,function(t,e,n){n(14)},,function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function u(t,e,n){return e=f(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return a(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}function a(t,e,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&s(o,n.prototype),o}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.SkipLinks=void 0;var p=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=u(this,e)).handleElementBlur=t.handleElementBlur.bind(t),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){var t=this,e=navigator.userAgent.toLowerCase();(e.indexOf("webkit")>-1||e.indexOf("opera")>-1||e.indexOf("msie")>-1||window.MSInputMethodContext&&document.documentMode)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",(function(){var e=document.getElementById(location.hash.substring(1));e&&(/^(?:a|select|input|button|textarea)$/i.test(e.nodeName)||(t.blurableElement=e,t.blurableElement.tabIndex=-1,t.blurableElement.addEventListener("blur",t.handleElementBlur)),e.focus())}),!1)}},{key:"handleElementBlur",value:function(){void 0!==this.blurableElement&&null!==this.blurableElement&&(this.blurableElement.removeAttribute("tabIndex"),this.blurableElement.removeEventListener("blur",this.handleElementBlur))}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(c(HTMLElement));e.SkipLinks=p,customElements.define("skip-links",p)},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==r(e)?e:e+""}function u(t,e,n){return e=f(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return a(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}function a(t,e,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&s(o,n.prototype),o}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0});var p=n(3),d=n(18),y=n(6),h="".concat("site-header"),v=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=u(this,e))._fixedWindowClass="fixed-window",t._isAnimating=!1,t._lastScrollPosition=0,t._dropdownMenuItems=[],t._backButtons=[],t._openClass="".concat("site-header","-open"),t._hideHeaderClass="".concat("site-header","-folded"),t._hasOpenMenuItemClass="has-open-menu-item",t._menuItemOpenClass="main-menu-item--open",t._secondaryStyleClass="".concat("site-header","--secondary"),t._hideThreshold=500,t._backCallback=function(e){e.stopImmediatePropagation(),t._closeMenuItem()},t._closeMenuItem=function(){if(null!=t._activeMenuItem)return document.documentElement.classList.remove(t._hasOpenMenuItemClass),t._activeMenuItem.classList.remove(t._menuItemOpenClass),t._activeMenuItem=null,t._isAnimating=!0,t.removeEventListener("click",t._handleClickOutside),d.default(t._menuElement,"transform").then((function(){t._isAnimating=!1}))},t._openMenuItem=function(e){e!=t._activeMenuItem?(t._activeMenuItem=null,e!=t._activeMenuItem&&(t._activeMenuItem=e,e.classList.add(t._menuItemOpenClass),document.documentElement.classList.add(t._hasOpenMenuItemClass),d.default(e,"transform").then((function(){return t.addEventListener("click",t._handleClickOutside)})))):t._closeMenuItem()},t._menuItemClickCallback=function(e){var n=e.target;if(0!=n.classList.contains("main-menu-item__link")){e.preventDefault();var r=n.closest(".main-menu-item--has-dropdown");null==t._activeMenuItem||t._activeMenuItem==r?t._openMenuItem(r):t._closeMenuItem().then((function(){return t._openMenuItem(r)}))}},t._handleClickOutside=function(e){var n=e.target;t._activeMenuItem.contains(n)||t._activeMenuItem==n||t._closeMenuItem()},t._init=function(){t._hideThreshold=.7*window.innerHeight,t._bindClickEvent(),t._handleFixedHeader(),window.addEventListener("wheel",t._handleWheelEvent.bind(t)),t._dropdownMenuItems.forEach((function(e){return e.addEventListener("click",t._menuItemClickCallback)})),t._backButtons.forEach((function(e){return e.addEventListener("click",t._backCallback)})),y.default.add(t._handleResizeEvent)},t._handleResizeEvent=t._handleResizeEvent.bind(t),t._menuElement=t.querySelector("[".concat(h,"-menu]")),t._backButtons=Array.from(t.querySelectorAll("[".concat(h,"-back-button]"))),t._menuToggleElement=t.querySelector("[".concat(h,"-menu-toggle]")),t._dropdownMenuItems=Array.from(t.querySelectorAll(".main-menu-item--has-dropdown")),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"closeMenu",value:function(){return this._toggleMenu(0)}},{key:"openMenu",value:function(){var t=this;this._toggleMenu(1).then((function(){return document.documentElement.classList.add(t._fixedWindowClass)}))}},{key:"menuIsOpen",get:function(){return document.documentElement.classList.contains(this._openClass)}},{key:"_bindClickEvent",value:function(){var t=this;this._menuToggleElement&&this._menuToggleElement.addEventListener("click",(function(){t.menuIsOpen?t.closeMenu():t.openMenu(),t._isAnimating||(t._isAnimating=!0)}))}},{key:"_handleFixedHeader",value:function(){var t=this;p.default.add((function(){p.default.getScrollPosition()>0?!1===t.classList.contains(t._secondaryStyleClass)&&t.classList.add(t._secondaryStyleClass):!0===t.classList.contains(t._secondaryStyleClass)&&t.classList.remove(t._secondaryStyleClass)}))}},{key:"_toggleMenu",value:function(t){var e=this;if(this._menuElement)return 0===t?(document.documentElement.classList.remove(this._fixedWindowClass),p.default.scrollTo(this._lastScrollPosition),document.documentElement.classList.remove(this._openClass)):(this._lastScrollPosition=p.default.getScrollPosition(),document.documentElement.classList.add(this._openClass)),d.default(this._menuElement,"opacity").then((function(){return e._isAnimating=!1}))}},{key:"_handleResizeEvent",value:function(){this._menuElement&&(this._hideThreshold=.7*window.innerHeight,this.menuIsOpen&&y.default.isAboveTabletLandscape()&&this._toggleMenu(0))}},{key:"_handleWheelEvent",value:function(t){var e=p.default.getScrollPosition();t.deltaY<0?document.documentElement.classList.contains(this._hideHeaderClass)&&document.documentElement.classList.remove(this._hideHeaderClass):t.deltaY>0&&e>=this._hideThreshold&&!document.documentElement.classList.contains(this._hideHeaderClass)&&document.documentElement.classList.add(this._hideHeaderClass)}},{key:"connectedCallback",value:function(){this._init()}},{key:"disconnectedCallback",value:function(){y.default.remove(this._handleResizeEvent)}}])}(c(HTMLElement));e.default=v,customElements.define("site-header",v)},function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.runCallbacks=void 0,e.runCallbacks=function(t,e){t.slice().forEach((function(t){t(e)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return new Promise((function(n){t.addEventListener("transitionend",(function r(o){o.propertyName===e&&(t.removeEventListener("transitionend",r),n())}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MEDIA_QUERIES=void 0,e.MEDIA_QUERIES={mobile:"(max-width: 767px)",aboveMobile:"(min-width: 768px)",desktop:"(min-width: 1440px)",tablet:"(max-width: 1439px) and (min-width: 768px)",aboveTabetLandscape:"(min-width: 1024px)",preferesReducedMotion:"(prefers-reduced-motion: reduce)"}},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function u(t,e,n){return e=f(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return a(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}function a(t,e,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&s(o,n.prototype),o}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.SubNav=void 0;var p=n(6),d=n(7),y=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=u(this,e))._parentElement=null,t._isOpen=!1,t.openSubNavMobile=function(){return t._container.style.height="".concat(t._list.clientHeight,"px"),t._toggle.style.transform="rotate(180deg)",!0},t.closeSubNavMobile=function(){return t._container.style.height="",t._toggle.style.transform="",!1},t.openSubNavDesktop=function(){return null!=t._parentElement?t._parentElement.classList.add("js-active"):t.classList.add("js-active"),!0},t.closeSubNavDesktop=function(){return null!=t._parentElement?t._parentElement.classList.remove("js-active"):t.classList.remove("js-active"),!1},t.toggleSubNav=function(){return p.default.isAboveTabletLandscape()?t._isOpen=t._isOpen?t.closeSubNavDesktop():t.openSubNavDesktop():t._isOpen=t._isOpen?t.closeSubNavMobile():t.openSubNavMobile()},t._handleSubNavItemFocusEvent=function(e){if(p.default.isAboveTabletLandscape())return t._isOpen=!1!==t._isOpen||t.openSubNavDesktop()},t._handleSubNavItemUnfocusEvent=function(e){if(p.default.isAboveTabletLandscape()&&!0===t._isOpen)return t._isOpen=!0===t._isOpen&&t.closeSubNavDesktop()},t._toggle=t.querySelector("[".concat("sub-nav","-toggle]")),t._container=t.querySelector("[".concat("sub-nav","-container]")),t._list=t.querySelector("[".concat("sub-nav","-list]")),t._parentElement=d.default(t,"[".concat("sub-nav","-parent]")),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){if(!this._toggle||!this._container||!this._list)return console.warn("Unable to intialise sub-nav component due to missing attribute");this._toggle.addEventListener("click",this.toggleSubNav),this.addEventListener("focus",this._handleSubNavItemFocusEvent,!0),this.addEventListener("blur",this._handleSubNavItemUnfocusEvent,!0)}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(c(HTMLElement));e.SubNav=y,customElements.define("sub-nav",y)},function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(null==t)return!1;var n=t.matches||t.msMatchesSelector;return n?n.call(t,e):(console.warn("The matches() method is not available in this browser. Returned false"),!1)}},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function u(t,e,n){return e=f(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return a(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}function a(t,e,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&s(o,n.prototype),o}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0});var p=n(5),d=n(3),y=n(2),h="".concat("yoyo-modal","__overlay--active"),v=p.GLOBAL_CSS_CLASSES.fixedWindow,b=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=u(this,e)).ignoreUtilFocusChanges=!1,t.modalActive=!1,t.removeOnClose=!1,t.validateElements=t.validateElements.bind(t),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){this.init()}},{key:"disconnectedCallback",value:function(){this.deactiveKeyboardTrap(),this.overlayEl.remove(),document.documentElement.classList.remove(v)}},{key:"init",value:function(){var t=this;this.autoOpen=this.hasAttribute("auto-open"),this.removeOnClose=this.hasAttribute("remove-on-close"),this.openEl=this.querySelector(".".concat("yoyo-modal","__open")),this.modalTemplate=this.querySelector("template"),null!==this.modalTemplate?(this.overlayEl=document.createElement("div"),this.overlayEl.innerHTML=this.modalTemplate.innerHTML,Array.prototype.slice.call(this.modalTemplate.attributes).forEach((function(e){t.overlayEl.setAttribute(e.name,e.value)})),this.closeEl=this.overlayEl.querySelector(".".concat("yoyo-modal","__close")),!0===this.validateElements()&&(this.trapFocus=this.trapFocus.bind(this),this.handleEscape=this.handleEscape.bind(this),null!==this.openEl&&this.openEl.addEventListener("click",this.openOverlay.bind(this)),!0===this.autoOpen&&this.openOverlay(),this.closeEl.addEventListener("click",this.closeOverlay.bind(this)))):console.error("No template found in mc-modal")}},{key:"openOverlay",value:function(){var t=this;!1===this.modalActive&&(this.modalActive=!0,d.default.saveScrollPosition(),new MutationObserver((function(e,n){e.forEach((function(e){"childList"===e.type&&(null!==Array.prototype.slice.call(e.addedNodes).find((function(t){return t.classList.contains("".concat("yoyo-modal","__overlay"))}))&&(document.addEventListener("keyup",t.handleEscape),document.documentElement.classList.add(v),requestAnimationFrame((function(){t.overlayEl.classList.add(h),d.default.scrollToLastPosition(),t.activeKeyboardTrap()}))),n.disconnect())}
1))})).observe(document.body,{childList:!0}),document.body.appendChild(this.overlayEl))}},{key:"closeOverlay",value:function(){var t=this;!0===this.modalActive&&(document.documentElement.classList.remove(v),d.default.scrollToLastPosition(),y.default(this.overlayEl,"opacity","0").then((function(){t.overlayEl.classList.remove(h),t.overlayEl.style.opacity="",t.deactiveKeyboardTrap(),null!==t.openEl&&t.openEl.focus(),t.modalActive=!1,document.removeEventListener("keyup",t.handleEscape),!0===t.removeOnClose&&t.overlayEl.remove()})))}},{key:"validateElements",value:function(){return!1===this.autoOpen&&null===this.openEl||null===this.closeEl?(console.warn("No button with class ".concat(null===this.openEl?'"mc-modal__open"':'"mc-modal__close"'," found in mc-model element")),!1):null!==this.overlayEl||(console.warn('No element with class "mc-modal__overlay" found in mc-model element'),!1)}},{key:"handleEscape",value:function(t){27===(t.which||t.keyCode)&&!0===this.modalActive&&(t.preventDefault(),this.closeOverlay())}},{key:"activeKeyboardTrap",value:function(){var t=document.createElement("div");this.preNode=this.overlayEl.parentNode.insertBefore(t,this.overlayEl),this.preNode.tabIndex=0;var e=document.createElement("div");this.postNode=this.overlayEl.parentNode.insertBefore(e,this.overlayEl.nextSibling),this.postNode.tabIndex=0,this.focusFirstDescendant(this.overlayEl),document.addEventListener("focus",this.trapFocus,!0)}},{key:"deactiveKeyboardTrap",value:function(){document.removeEventListener("focus",this.trapFocus,!0),this.preNode&&this.preNode.remove(),this.postNode&&this.postNode.remove()}},{key:"focusFirstDescendant",value:function(t){for(var e=0;e<t.children.length;e++){var n=t.children[e];if(this.attemptFocus(n)||this.focusFirstDescendant(n))return!0}return!1}},{key:"focusLastDescendant",value:function(t){for(var e=t.children.length-1;e>=0;e--){var n=t.children[e];if(this.attemptFocus(n)||this.focusLastDescendant(n))return!0}return!1}},{key:"attemptFocus",value:function(t){this.ignoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return this.ignoreUtilFocusChanges=!1,document.activeElement===t}},{key:"trapFocus",value:function(t){this.ignoreUtilFocusChanges||(this.overlayEl.contains(t.target)?this.lastFocus=t.target:(this.focusFirstDescendant(this.overlayEl),this.lastFocus===document.activeElement&&this.focusLastDescendant(this.overlayEl),this.lastFocus=document.activeElement))}},{key:"getLastPartOfUrl",value:function(t){var e=t.split("/");return t.lastIndexOf("/")!==t.length-1?e[e.length-1]:e[e.length-2]}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(c(HTMLElement));customElements.define("yoyo-modal",b)},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function u(t,e,n){return e=f(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return a(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}function a(t,e,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&s(o,n.prototype),o}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}
1function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0});var p=n(2),d="data-".concat("yoyo-video"),y=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=u(this,e)).intersectionObserverOptions={threshold:[0,.25,.5],rootMargin:"0px 0px 25% 0px"},t.buttonElement=t.querySelector("[".concat(d,"-button]")),t.mainVideoElement=t.querySelector("[".concat(d,"-main-video]")),t.posterElement=t.querySelector("[".concat(d,"-poster]")),t.posterVideoElement=t.querySelector("[".concat(d,"-poster-video]")),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,(r=[{key:"handlePlay",value:function(){var t=this;!0===this.mainVideoElement.paused?p.default(this.posterElement,"opacity","0").then((function(){p.default(t.mainVideoElement,"opacity","1").then((function(){t.mainVideoElement.play(),t.mainObserver=t.observe(t.mainVideoElement),t.posterVideoElement&&t.unobserve(t.posterObserver,t.posterVideoElement)}))})):p.default(this.mainVideoElement,"opacity","0").then((function(){p.default(t.posterElement,"opacity","1").then((function(){t.mainVideoElement.pause(),t.mainObserver.unobserve,t.posterVideoElement&&(t.posterObserver=t.observe(t.posterVideoElement))}))}))}},{key:"init",value:function(){this.mainVideoElement.hasAttribute("data-src")&&(this.videoLazySrc=this.mainVideoElement.getAttribute("data-src")),this.posterElement||this.posterVideoElement?this.posterVideoElement&&(this.posterObserver=this.observe(this.posterVideoElement)):this.mainObserver=this.observe(this.mainVideoElement),this.posterElement&&this.buttonElement&&this.buttonElement.addEventListener("click",this.handlePlay.bind(this))}},{key:"observe",value:function(t){var e=this;if("IntersectionObserver"in window){var n=new IntersectionObserver((function(n){n.forEach((function(n){!1===e.mainVideoElement.hasAttribute("src")&&n.isIntersecting&&void 0!==e.videoLazySrc&&e.mainVideoElement.setAttribute("src",e.videoLazySrc),n.intersectionRatio>.5?t.play():t.pause()}))}),this.intersectionObserverOptions);return n.observe(t),n}}},{key:"unobserve",value:function(t,e){t.unobserve(e),t.disconnect()}},{key:"connectedCallback",value:function(){this.mainVideoElement&&this.init()}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(c(HTMLElement));e.default=y,customElements.define("yoyo-video",y)},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,c=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){a=!0,u=t},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw u}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function c(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==r(e)?e:e+""}function a(t,e,n){return e=d(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function l(t){var e="function"==typeof Map?new Map:void 0;return(l=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return s(t,arguments,d(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p(n,t)})(t)}function s(t,e,n){if(f())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&p(o,n.prototype),o}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollTo=void 0;var y=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,e)).animateScrollTest=function(){event.preventDefault();var e=t._actionLink.getAttribute("href");return t._target=document.querySelector(e),null!=t._target&&(window.scrollTo({left:0,top:t._target.offsetTop,behavior:"smooth"}),!0)},t.showHeader=function(){return event.preventDefault(),t._siteHeader=document.querySelector(".site-header"),!!t._siteHeader.classList.contains("site-header--hidden")&&(t._siteHeader.classList.remove("site-header--hidden"),!0)},t.CheckScrollTo=function(){if(t._scrollToElm=document.querySelector(".scroll-to-me-on-load"),null!=t._scrollToElm&&null!=t._scrollToElm){var e=0;if(t._scrollToElm.getClientRects().length){var n=t._scrollToElm.getBoundingClientRect(),r=t._scrollToElm.ownerDocument.defaultView;e=n.top+r.pageYOffset}else e=0;window.scrollTo({left:0,top:e-130,behavior:"smooth"})}},t._actionLink=t.querySelector(".scroll-btn"),t._actionUpLink=t.querySelector(".scroll-btn--up"),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){var t,e=this,n=o(document.querySelectorAll('a[href^="#"]'));try{var r=function(){var n=t.value;n.addEventListener("click",(function(t){var r=n.getAttribute("href");e._clicktarget=document.querySelector(r);var o=0;if(e._clicktarget.getClientRects().length){var i=e._clicktarget.getBoundingClientRect(),u=e._clicktarget.ownerDocument.defaultView;o=i.top+u.pageYOffset}else o=0;window.scrollTo({left:0,top:o-140,behavior:"smooth"}),t.preventDefault()}))};for(n.s();!(t=n.n()).done;)r()}catch(t){n.e(t)}finally{n.f()}null!=this._actionLink&&null!=this._actionLink&&this._actionLink.addEventListener("click",this.animateScrollTest,!0),null!=this._actionUpLink&&null!=this._actionUpLink&&this._actionUpLink.addEventListener("click",this.showHeader,!0),document.addEventListener("DOMContentLoaded",(function(t){e.CheckScrollTo()}))}}])&&u(n.prototype,r),i&&u(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l(HTMLElement));e.ScrollTo=y,customElements.define("scroll-to",y)},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==r(e)?e:e+""}function u(t,e,n){return e=f(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return a(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}function a(t,e,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&s(o,n.prototype),o}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.HoverPlayVideo=void 0;var p=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=u(this,e))._isPlaying=!1,t.playVideo=function(){event.preventDefault(),t._video&&!1===t._isPlaying&&(t._isPlaying=!0,t._video.play())},t.pauseVideo=function(){event.preventDefault(),t._video&&!0===t._isPlaying&&(t._video.pause(),t._isPlaying=!1)},t._video=t.querySelector("video"),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){this.addEventListener("mouseenter",this.playVideo),this.addEventListener("mouseleave",this.pauseVideo)}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(c(HTMLElement));e.HoverPlayVideo=p,customElements.define("hover-play-video",p)},function(t,e,n){"use strict";function r(t){return(r="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 o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",u=n.toStringTag||"@@toStringTag";function c(n,r,o,u){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return i(s,"_invoke",function(n,r,o){var i,u,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,u=0,c=t,p.n=n,a}};function d(n,r){for(u=n,c=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),u=s,c=y;(e=u<2?t:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(l=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(e){i=t,u=1,c=e}finally{l=1}}return{value:e,done:f}}}(n,o,u),!0),s}var a={};function l(){}function s(){}function f(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(i(e={},r,(function(){return this})),e),d=f.prototype=l.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,i(t,u,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=f,i(d,"constructor",f),i(f,"constructor",s),s.displayName="GeneratorFunction",i(f,u,"GeneratorFunction"),i(d),i(d,u,"Generator"),i(d,r,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:c,m:y}})()}function i(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,n,r){function u(e,n){i(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(u("next",0),u("throw",1),u("return",2))})(t,e,n,r)}function u(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function c(t){u(i,r,o,c,a,"next",t)}function a(t){u(i,r,o,c,a,"throw",t)}c(void 0)}))}}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==r(e)?e:e+""}function s(t,e,n){return e=h(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function f(t){var e="function"==typeof Map?new Map:void 0;return(f=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return p(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,t)})(t)}function p(t,e,n){if(d())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&y(o,n.prototype),o}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function y(t,e){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.DialogueComponent=void 0;var v=n(7),b=n(27),m=n(2),g="dialogue-component",_=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,e))._isWorking=!1,t._questionCache=[],t._handleNextQuestionClickEvent=t._handleNextQuestionClickEvent.bind(t),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){this._init()}},{key:"_init",value:function(){if(this._startId=this.getAttribute("start-id"),!this._startId)return console.warn("No start-id found for dialogue component");this._progressEl=this.querySelector("[".concat(g,"-progress]")),this._contentEl=this.querySelector("[".concat(g,"-content]")),this._currentSectionEl=this.querySelector("[".concat(g,"-section]")),this._startButton=this.querySelector("[".concat(g,"-start]"));var t=["".concat(null==this._progressEl?"".concat(g,"-progress"):""),"".concat(null==this._contentEl?"".concat(g,"-section"):""),"".concat(null==this._startButton?"".concat(g,"-start"):"")].filter((function(t){return""!=t}));if(t.length>0)return console.error("The dialogue component is missing child elements with the following attributes: ".concat(t.join(", ")));this._startButton.addEventListener("click",this._handleNextQuestionClickEvent)}},{key:"_handleNextQuestionClickEvent",value:(f=c(o().m((function t(e){var n,r;return o().w((function(t){for(;;)switch(t.n){case 0:if(e.preventDefault(),!1!==this._isWorking){t.n=2;break}if(this._isWorking=!0,null===(n=v.default(e.target,"button"))){t.n=1;break}if(!(r=n.hasAttribute("dialogue-component-start")?this._startId:this._getSelectedAnswerRoute())){t.n=1;break}return t.n=1,this._loadSection(r);case 1:this._isWorking=!1;case 2:return t.a(2)}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"_loadSection",value:(l=c(o().m((function t(e){var n,r=this;return o().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this._fetchDialogueSectionData(e);case 1:return n=t.v,t.a(2,new Promise((function(t){var e;e=null!==n.Question?r._createQuestionSection(n.Question,n.Id):null!==n.EndDialogue?r._createEndDialogueSection(n.EndDialogue):r._createErrorDialogue(),m.default(r._currentSectionEl,"opacity","0").then((function(){new MutationObserver((function(n,r){n.forEac
1h((function(n){"childList"===n.type&&(null!==Array.prototype.slice.call(n.addedNodes).find((function(t){return t.classList.contains("".concat(g,"__section"))}))&&requestAnimationFrame(c(o().m((function n(){return o().w((function(n){for(;;)switch(n.n){case 0:return n.n=1,m.default(e,"opacity","1");case 1:t();case 2:return n.a(2)}}),n)})))),r.disconnect())}))})).observe(r._contentEl,{childList:!0}),r._currentSectionEl.remove(),r._currentSectionEl=e,r._contentEl.appendChild(r._currentSectionEl)}))})))}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"_fetchDialogueSectionData",value:(u=c(o().m((function t(e){var n,r,i;return o().w((function(t){for(;;)switch(t.n){case 0:if(e){t.n=1;break}return t.a(2,{Id:null,Question:null,EndDialogue:null,Redirect:null});case 1:if(null==(n=this._questionCache.find((function(t){return t.Id===e})))){t.n=2;break}return t.a(2,n);case 2:return r={credentials:"same-origin",headers:{"Content-Type":"application/json; charset=UTF-8"},method:"GET"},t.n=3,fetch("".concat("/api/DialogueApi","/section/").concat(e),r);case 3:if(!(i=t.v).ok){t.n=5;break}return t.n=4,i.json();case 4:return null!=(n=t.v).Redirect&&n.Redirect.length>0&&(window.location.href=n.Redirect),this._questionCache.push(n),t.a(2,n);case 5:return t.a(2,{Id:null,Question:null,EndDialogue:null,Redirect:null});case 6:return t.a(2)}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"_createQuestionSection",value:function(t,e){var n=this._createDialogueSectionEl();n.innerHTML=this._createQuestionInnerHtml(t,e);var r=this._createTextButton("Next");return r.addEventListener("click",this._handleNextQuestionClickEvent),n.appendChild(r),n}},{key:"_createEndDialogueSection",value:function(t){var e=this._createDialogueSectionEl();return e.innerHTML=this._createEndDialoqueInnerHtml(t),e}},{key:"_createErrorDialogue",value:function(){var t=this._createDialogueSectionEl();return t.innerHTML='<p class="h4">Sorry, there has been an error. Please reload the page and try again.</p>',t}},{key:"_createDialogueSectionEl",value:function(){var t=document.createElement("div");return t.classList.add("dialogue__section"),t.style.opacity="0",t}},{key:"_createQuestionInnerHtml",value:function(t,e){return'\n\t\t\t<label for="'.concat(e,'" class="h4">\n\t\t\t\t').concat(t.Question,'\n\t\t\t</label>\n\t\t\t<div class="form-input-container">\n\t\t\t').concat(t.Answers.map((function(t,n){return'\n\t\t\t\t<input type="radio" name="'.concat(e,'" id="').concat(e,"_").concat(n,'" value="').concat(t.RouteId,'" />\n\t\t\t\t<label for="').concat(e,"_").concat(n,'">\n\t\t\t\t\t<span>').concat(t.Answer,"</span>\n\t\t\t\t</label>\n\t\t\t\t").trim()})).join(""),"\n\t\t\t</div>\n\t\t")}},{key:"_createEndDialoqueInnerHtml",value:function(t){var e=this;return'\n\t\t\t<p class="h4">'.concat(t.Body,"</p>\n\n\t\t\t").concat(t.TextLinks?"<ul>\n\t\t\t\t\t".concat(t.TextLinks.map((function(t){return'\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="'.concat(t.Url,'" ').concat(e._getLinkTarget(t.Target),' class="text-link">\n\t\t\t\t\t\t\t\t\t').concat(t.Text,'\n\t\t\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="220" height="6" viewBox="0 0 220 6"><path fill-rule="evenodd" d="M135.06.52c-16.37.1-32.74.24-49.11.42A4822.77 4822.77 0 004.65 2.7c-4.05.33-5.78 2-3.88 2.67 1.87.67 6.87.6 10.41.64 4.7-.1 9.46-.2 14.41-.25 13.93-.17 27.78-.87 41.72-1.2C82.3 4.2 97.13 4.1 111.94 4c14.83-.1 29.64-.23 44.69-.6 7.67-.04 15.34-.16 23-.42 1.87-.06 3.83-.1 5.7-.08 1.11.01 6.05-.09 11.37-.19a993.8 993.8 0 0113.74-.17c3.18.01 6.04.05 9.56-.05L219.94 0c-13.44.03-26.9 0-40.35.07-14.86.07-29.54.35-44.53.45" /></svg>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t').trim()})).join(""),"\n\t\t\t\t</ul>"):"","\n\n\t\t\t").concat(t.CallToAction?'<a href="'.concat(t.CallToAction.Url,'" ').concat(this._getLinkTarget(t.CallToAction.Target),' class="button">\n\t\t\t\t\t').concat(t.CallToAction.Text,'\n\t\t\t\t\t<svg class="button__stroke" focusable="false" aria-hidden="true"><use xlink:href="#button-stroke"></use></svg>\n\t\t\t\t\t<svg class="button__stroke-bg" focusable="false" aria-hidden="true"><use xlink:href="#button-stroke-bg"></use></svg>\n\t\t\t\t</a>'):"","\n\t\t")}},{key:"_createTextButton",value:function(t){var e=document.createElement("button");return e.type="submit",e.className="text-link button-reset",e.innerHTML="\n\t\t\t".concat(t,'\n\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="220" height="6" viewBox="0 0 220 6"><path fill-rule="evenodd" d="M135.06.52c-16.37.1-32.74.24-49.11.42A4822.77 4822.77 0 004.65 2.7c-4.05.33-5.78 2-3.88 2.67 1.87.67 6.87.6 10.41.64 4.7-.1 9.46-.2 14.41-.25 13.93-.17 27.78-.87 41.72-1.2C82.3 4.2 97.13 4.1 111.94 4c14.83-.1 29.64-.23 44.69-.6 7.67-.04 15.34-.16 23-.42 1.87-.06 3.83-.1 5.7-.08 1.11.01 6.05-.09 11.37-.19a993.8 993.8 0 0113.74-.17c3.18.01 6.04.05 9.56-.05L219.94 0c-13.44.03-26.9 0-40.35.07-14.86.07-29.54.35-44.53.45" /></svg>\n\t\t'),e}},{key:"_getSelectedAnswerRoute",value:function(){var t="";return null!==this._currentSectionEl&&b.default("input[type=radio]",this._currentSectionEl).forEach((function(e){e.checked?t=e.value:"hidden"!=e.type||(t=e.value)})),t}},{key:"_getLinkTarget",value:function(t){return t&&t.length>0?"_blank"===t?'target="_blank" rel="noopener noreferrer"':'target="'.concat(t,'"'):""}}])&&a(n.prototype,r),i&&a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i,u,l,f}(f(HTMLElement));e.DialogueComponent=_,customElements.define(g,_)},function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document,n=e.querySelectorAll(t);return Array.prototype.slice.call(n)}},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function u(t,e,n){return e=f(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return a(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}function a(t,e,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&s(o,n.prototype),o}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollTo=void 0;var p=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=u(this,e)).animateScrollTest=function(){return event.preventDefault(),t._target=t.querySelector("input"),null!=t._target&&("password"===t._target.type?t._target.type="text":t._target.type="password"),!1},t._actionLink=t.querySelector(".password-show"),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){this._actionLink.addEventListener("click",this.animateScrollTest,!0)}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(c(HTMLElement));e.ScrollTo=p,customElements.define("form-show-password",p)},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==r(e)?e:e+""}function u(t,e,n){return e=f(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return a(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}function a(t,e,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&s(o,n.prototype),o}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.GaCapture=void 0;var p=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=u(this,e))._handleClickEvent=function(e){t._track("send","event",{eventCategory:t._eventCategory,eventAction:t._eventAction||"Click",eventLabel:t._eventLabel})},t._handleFormSubmitEvent=function(e){t._track("send","event",{eventCategory:t._eventCategory,eventAction:t._eventAction||"FormSubmitted",eventLabel:t._eventLabel})},t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){if(this._trackedElement=this.firstElementChild,null!==this._trackedElement)switch(this._eventCategory=this.hasAttribute("event-category")?this.getAttribute("event-category"):"Undefined",this._eventLabel=this.hasAttribute("event-label")?this.getAttribute("event-label"):"Undefined",this._eventAction=this.getAttribute("event-action"),this._trackedElement.tagName){case"A":this._trackedElement.addEventListener("click",this._handleClickEvent);break;case"FORM":this._trackedElement.addEventListener("click",this._handleFormSubmitEvent)}}},{key:"_getGaFunction",value:function(){return window.ra||window.ga}},{key:"_track",value:function(t,e,n){var r=this._getGaFunction();null!=r&&r(this._includeTrackerName(t),e,n)}},{key:"_includeTrackerName",value:function(t){var e=this._getTrackerName();return e?"".concat(e,".").concat(t):t}},{key:"_getTrackerName",value:function(){var t=this._getGaFunction();if(null!=t)try{return t.getAll()[0].get("name")}catch(t){return""}}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(c(HTMLElement));e.GaCapture=p,customElements.define("ga-capture",p)},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==r(e)?e:e+""}function c(t,e,n){return e=p(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return l(t,arguments,p(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,t)})(t)}function l(t,e,n){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&f(o,n.prototype),o}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0});var d=n(31),y=n(33),h=function(t){function e(){var t;return o(this,e),(t=c(this,e,arguments))._handleAccept=function(){y.SetCookie(e.COOKIE_NAME,e.COOKIE_VALUE,365),t._isActive.remove()},t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){this._cookieIsSet()||(this._accept=this.querySelector("[".concat(e.DATA_ATTR,"-accept]")),this._accept&&(this._isActive=new d.default(this),this._isActive.set(),this._accept.addEventListener("click",this._handleAccept)))}},{key:"_cookieIsSet",value:function(){return y.GetCookie(e.COOKIE_NAME)===e.COOKIE_VALUE}}])&&i(n.prototype,r),u&&i(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,u}(a(HTMLElement));e.default=h,h.NAME="cookie-policy",h.DATA_ATTR="data-".concat(h.NAME),h.COOKIE_NAME="rac-cookie-policy-accepted",h.COOKIE_VALUE="true",customElements.define(h.NAME,h)},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function u(t,e,n){return e=c(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
1function a(t,e){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,["is-active",t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(e,t),n=e,r&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(32).default);e.default=l},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){return t=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._attributeName=e,this._element=n},(e=[{key:"element",get:function(){return this._element}},{key:"has",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===t?this._element.hasAttribute(this._attributeName):this._element.hasAttribute(this._attributeName)&&this._element.getAttribute(this._attributeName)===t}},{key:"remove",value:function(){this._element.removeAttribute(this._attributeName)}},{key:"set",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e?this._element.setAttribute(this._attributeName,t):this.remove()}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.set(t,!1===this.has())}}])&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetCookie=e.SetCookie=void 0,e.SetCookie=function(t,e,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var o="expires="+r.toUTCString();document.cookie=t+"="+e+";"+o+";path=/"},e.GetCookie=function(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function c(t,e,n){return e=p(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}
1(t,s()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return l(t,arguments,p(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,t)})(t)}function l(t,e,n){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&f(o,n.prototype),o}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0});var d=function(t){function e(){var t;return o(this,e),(t=c(this,e,arguments)).handleDocumentClick=function(e){var n=e.target;"A"===n.nodeName&&n.host===location.host&&!1!==t.hasExtension(n.pathname)&&t.recordActivity(n.pathname,n.search)},t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"trackExtensions",get:function(){return(this.getAttribute("track-extensions")||e.DEFAULT_EXTENSIONS).split(",")}},{key:"recordActivityUrl",get:function(){return this.getAttribute("record-activity-url")}},{key:"connectedCallback",value:function(){window.document.addEventListener("click",this.handleDocumentClick),this.recordActivity(window.location.pathname,window.location.search)}},{key:"disconnectedCallback",value:function(){window.document.removeEventListener("click",this.handleDocumentClick)}},{key:"hasExtension",value:function(t){return this.trackExtensions.some((function(e){return t.endsWith(".".concat(e))}))}},{key:"recordActivity",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.recordActivityUrl;if(null!=n){var r=new Blob([JSON.stringify({path:t,queryString:e})],{type:"application/json"});navigator.sendBeacon(n,r)}else console.warn("record-activity-url must be provided")}}])&&i(n.prototype,r),u&&i(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,u}(a(HTMLElement));e.default=d,d.NAME="member-tracker",d.DEFAULT_EXTENSIONS="doc,docx,jpg,pdf,png,xls,xlsx,zip",customElements.define(d.NAME,d)},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function c(t,e,n){return e=p(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}
1(t,s()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return l(t,arguments,p(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,t)})(t)}function l(t,e,n){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&f(o,n.prototype),o}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.SwiperComponent=void 0;var d=n(46),y=function(t){function e(){var t;return o(this,e),(t=c(this,e,arguments))._setModules=function(){t._nextEl&&t._prevEl&&(t._modules.push(d.Navigation),t._navigation={enabled:!0,nextEl:t._nextEl,prevEl:t._prevEl}),t._paginationEl&&(t._modules.push(d.Pagination),t._pagination={enabled:!0,el:t._paginationEl,clickable:!0,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",bulletElement:t._paginationEl.nodeName.match("OL|UL")?"li":"span"})},t._initSwiper=function(){t._setModules(),t._swiper=new d.default(t.querySelector(".swiper"),{loop:t._loop,modules:t._modules,navigation:t._navigation,pagination:t._pagination,slidesPerView:1.3,speed:t._speed,spaceBetween:50,breakpoints:{768:{slidesPerView:2.4},1024:{slidesPerView:4},1540:{spaceBetween:80,slidesPerView:4},1920:{spaceBetween:150,slidesPerView:4}}})},t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){this._modules=[],this._speed=parseInt(this.dataset.swiperSpeed)||500,this._loop=this.hasAttribute("data-swiper-loop"),this._nextEl=this.querySelector(".swiper-button-next"),this._prevEl=this.querySelector(".swiper-button-prev"),this._paginationEl=this.querySelector(".swiper-pagination"),this._initSwiper()}},{key:"disconnectedCallback",value:function(){this._swiper.destroy()}}])&&i(n.prototype,r),u&&i(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,u}(a(HTMLElement));e.SwiperComponent=y,y.NAME="swiper-component",customElements.define(y.NAME,y)},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function c(t,e,n){return e=p(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}
1(t,s()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return l(t,arguments,p(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,t)})(t)}function l(t,e,n){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&f(o,n.prototype),o}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.ArticleFilter=void 0;var d=n(8),y=n(9),h=function(t){function e(){var t;return o(this,e),(t=c(this,e,arguments))._page=1,t._selectedValue="",t._queryElements=function(){t._pagination=document.querySelector("[".concat(e.NAME,"-pagination]")),t._pills=t.querySelectorAll("input[name='category-radio']"),t._results=document.querySelector("[".concat(e.NAME,"-results]"))},t._addEventListeners=function(){t._pagination&&t._pagination.addEventListener("click",t._paginationCallback),t._pills.forEach((function(e){e.addEventListener("click",t._handleRadioChange)}))},t._handleSelectChange=function(){var e=y.serialize(t);if(t._selectedValue!==e["category-select"]){t._selectedValue=e["category-select"];var n=t.dataset.rootUrl;"all"!==t._selectedValue&&(n="".concat(t.dataset.rootUrl,"?category=").concat(t._selectedValue)),t._fetchContent(n)}},t._handleRadioChange=function(){var e=y.serialize(t);if(t._selectedValue!==e["category-radio"]){t._selectedValue=e["category-radio"];var n=t.dataset.rootUrl;"all"!==t._selectedValue&&(n="".concat(t.dataset.rootUrl,"?category=").concat(t._selectedValue)),t._fetchContent(n)}},t._initObserver=function(){t._observer=new MutationObserver(t._mutationCallback)},t._mutationCallback=function(e){e.forEach((function(e){if(null!=e){var n=y.serialize(t);if(t._selectedValue!==n.category){t._selectedValue=n.category;var r=t.dataset.rootUrl;"all"!==t._selectedValue&&(r="".concat(t.dataset.rootUrl,"?category=").concat(t._selectedValue)),t._fetchContent(r)}}}))},t._loadMoreCallback=function(e){e.preventDefault(),t._page+=1,t._fetchMoreContent("".concat(location.origin).concat(t.dataset.rootUrl).concat(t._selectedValue,"?page=").concat(t._page))},t._fetchContent=function(n){var r=d.pjaxService.fetchPageContainers(n,{results:"[".concat(e.NAME,"-results]"),pagination:"[".concat(e.NAME,"-pagination]")});t._results.classList.add("loading"),r.then((function(e){t._results.classList.remove("loading"),window.history.pushState(null,"",n),null!=t._results&&null!=e.results&&(t._page=1,t._results.innerHTML=e.results.innerHTML),null!=t._pagination&&(t._pagination.innerHTML=null!=e.pagination?e.pagination.innerHTML:"")}))},t._fetchMoreContent=function(n){var r=d.pjaxService.fetchPageContainers(n,{results:"[".concat(e.NAME,"-results]"),pagination:"[".concat(e.NAME,"-pagination]")});t._results.classList.add("loading"),r.then((function(e){t._results.classList.remove("loading"),null!=t._results&&null!=e.results&&(t._results.innerHTML=t._results.innerHTML+e.results.innerHTML),null!=t._pagination&&(t._pagination.innerHTML=null!=e.pagination?e.pagination.innerHTML:"")}))},t._paginationCallback=function(e){e.preventDefault();var n=e.target;"A"===n.tagName&&t._fetchContent(n.href)},t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){this._queryElements(),this._addEventListeners(),this._initOb
1server()}},{key:"disconnectedCallback",value:function(){this._observer.disconnect()}}])&&i(n.prototype,r),u&&i(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,u}(a(HTMLFormElement));e.ArticleFilter=h,h.NAME="article-filter",customElements.define(h.NAME,h,{extends:"form"})},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,c=[],a=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function l(t,e,n){return e=y(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function s(t){var e="function"==typeof Map?new Map:void 0;return(s=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return f(t,arguments,y(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,t)})(t)}function f(t,e,n){if(p())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&d(o,n.prototype),o}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.SolicitorSearch=void 0;var h=n(8),v=n(9),b=function(t){function e(){var t;return u(this,e),(t=l(this,e,arguments))._autocomplete=null,t._locationInput=null,t._latitudeInput=null,t._longitudeInput=null,t._googlePlaceNameInput=null,t._submitButton=null,t._radiusSelect=null,t._results=null,t._pagination=null,t._isPlaceSelected=!1,t._googleMapsLoaded=!1,t._handlePlaceChanged=function(){var e;if(t._autocomplete){var n=t._autocomplete.getPlace();n.geometry&&n.geometry.location?t._updateCoordinates(n):t._geocodeAddress((null===(e=t._locationInput)||void 0===e?void 0:e.value)||"")}},t._handleLocationInput=function(){t._isPlaceSelected=!1,t._clearCoordinates(),t._disableSubmit()},t._handleRadiusChange=function(){t._hasValidCoordinates()&&t._enableSubmit()},t._handleSubmit=function(e){var n,r,o;e.preventDefault();var i=null===(n=t._latitudeInput)||void 0===n?void 0:n.value,u=null===(r=t._longitudeInput)||void 0===r?void 0:r.value;if(i&&u)t._submitSearch();else{var c=null===(o=t._locationInput)||void 0===o?void 0:o.value;c&&t._geocodeAndSubmit(c)}},t._handlePaginationClick=function(e){var n=e.target.closest("a");n&&(e.preventDefault(),t._fetchResults(n.href))},t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){this._queryElements(),this._addEventListeners(),this._initGooglePlaces(),this._checkInitialState()}},{key:"_queryElements",value:function(){this._locationInput=this.querySelector("input[name='LocationSearch']"),this._latitudeInput=this.querySelector("input[name='Latitude']"),this._longitudeInput=this.querySelector("input[name='Longitude']"),this._googlePlaceNameInput=this.querySelector("input[name='GooglePlaceName']"),this._submitButton=this.querySelector("button[type='submit']"),this._radiusSelect=this.querySelector("select[name='Radius']"),this._results=document.querySelector("[".concat(e.NAME,"-results]")),this._pagination=document.querySelector("[".concat(e.NAME,"-pagination]"))}},{key:"_addEventListeners",value:function(){this.addEventListener("submit",this._handleSubmit),this._locationInput&&this._locationInput.addEventListener("input",this._handleLocationInput),this._radiusSelect&&this._radiusSelect.addEventListener("change",this._handleRadiusChange),this._pagination&&this._pagination.addEventListener("click",this._handlePaginationClick)}},{key:"_initGooglePlaces",value:function(){var t=this;if("undefined"!=typeof google&&google.maps&&google.maps.places)this._setupAutocomplete();else{var e=setInterval((function(){"undefined"!=typeof google&&google.maps&&google.maps.places&&
1(clearInterval(e),t._setupAutocomplete())}),100);setTimeout((function(){clearInterval(e),t._googleMapsLoaded||console.warn("SolicitorSearch: Google Maps API failed to load within timeout")}),1e4)}}},{key:"_setupAutocomplete",value:function(){this._locationInput&&(this._googleMapsLoaded=!0,this._autocomplete=new google.maps.places.Autocomplete(this._locationInput,{types:["geocode"],componentRestrictions:{country:"gb"}}),this._autocomplete.addListener("place_changed",this._handlePlaceChanged))}},{key:"_geocodeAddress",value:function(t){var e=this;t&&(new google.maps.places.AutocompleteService).getPlacePredictions({input:t,componentRestrictions:{country:"GB"}},(function(t,n){n===google.maps.places.PlacesServiceStatus.OK&&t&&0!==t.length?(new google.maps.Geocoder).geocode({address:t[0].description},(function(t,n){"OK"===n&&t&&t[0]&&e._updateCoordinatesFromGeocode(t[0])})):console.warn("SolicitorSearch: Could not geocode address")}))}},{key:"_updateCoordinates",value:function(t){var e;(null===(e=t.geometry)||void 0===e?void 0:e.location)&&(this._isPlaceSelected=!0,this._latitudeInput&&(this._latitudeInput.value=t.geometry.location.lat().toString()),this._longitudeInput&&(this._longitudeInput.value=t.geometry.location.lng().toString()),this._googlePlaceNameInput&&(this._googlePlaceNameInput.value=t.name||""),this._locationInput&&t.formatted_address&&(this._locationInput.value=t.formatted_address),this._enableSubmit())}},{key:"_updateCoordinatesFromGeocode",value:function(t){var e,n;this._isPlaceSelected=!0,this._latitudeInput&&(this._latitudeInput.value=t.geometry.location.lat().toString()),this._longitudeInput&&(this._longitudeInput.value=t.geometry.location.lng().toString()),this._googlePlaceNameInput&&(this._googlePlaceNameInput.value=(null===(n=null===(e=t.address_components)||void 0===e?void 0:e[0])||void 0===n?void 0:n.long_name)||""),this._locationInput&&t.formatted_address&&(this._locationInput.value=t.formatted_address),this._enableSubmit()}},{key:"_checkInitialState",value:function(){this._hasValidCoordinates()&&this._enableSubmit()}},{key:"_hasValidCoordinates",value:function(){var t,e,n=null===(t=this._latitudeInput)||void 0===t?void 0:t.value,r=null===(e=this._longitudeInput)||void 0===e?void 0:e.value;return!(!n||!r||""===n.trim()||""===r.trim())}},{key:"_clearCoordinates",value:function(){this._latitudeInput&&(this._latitudeInput.value=""),this._longitudeInput&&(this._longitudeInput.value=""),this._googlePlaceNameInput&&(this._googlePlaceNameInput.value="")}},{key:"_enableSubmit",value:function(){this._submitButton&&(this._submitButton.disabled=!1)}},{key:"_disableSubmit",value:function(){this._submitButton&&(this._submitButton.disabled=!0)}},{key:"_geocodeAndSubmit",value:function(t){var e=this;(new google.maps.places.AutocompleteService).getPlacePredictions({input:t,componentRestrictions:{country:"GB"}},(function(t,n){n===google.maps.places.PlacesServiceStatus.OK&&t&&0!==t.length?(new google.maps.Geocoder).geocode({address:t[0].description},(function(t,n){"OK"===n&&t&&t[0]&&(e._updateCoordinatesFromGeocode(t[0]),e._submitSearch())})):console.warn("SolicitorSearch: Could not geocode address for submission")}))}},{key:"_submitSearch",value:function(){var t=v.serialize(this),e=new URLSearchParams;Object.entries(t).forEach((function(t){var n=o(t,2),r=n[0],i=n[1];null!=i&&""!==i&&e.set(r,String(i))})),e.set("page","1");var n="".concat(window.location.pathname,"?").concat(e.toString());this._fetchResults(n)}},{key:"_fetchResults",value:function(t){var n,r=this;this._results||(this._results=document.querySelector("[".concat(e.NAME,"-results]"))),this._pagination||(this._pagination=document.querySelector("[".concat(e.NAME,"-pagination]"))),null===(n=this._results)||void 0===n||n.classList.add("loading"),h.pjaxService.fetchPageContainers(t,{results:"[".concat(e.NAME,"-results]"),pagination:"[".concat(e.NAME,"-pagination]")}).then((function(n){var o,i;if(null===(o=r._results)||void 0===o||o.classList.remove("loading"),window.history.pushState(null,"",t),n.results)if(r._results)r._results.innerHTML=n.results.innerHTML;else{var u=n.results;null===(i=r.parentElement)||void 0===i||i.insertAdjacentElement("afterend",u),r._results=u}r._pagination&&n.pagination&&(r._pagination.innerHTML=n.pagination.innerHTML),r._pagination=document.querySelector("[".concat(e.NAME,"-pagination]")),r._pagination&&(r._pagination.removeEventListener("click",r._handlePaginationClick),r._pagination.addEventListener("click",r._handlePaginationClick)),r._scrollToResults()})).catch((function(t){var e;console.error("SolicitorSearch: Error fetching results",t),null===(e=r._results)||void 0===e||e.classList.remove("loading")}))}},{key:"_scrollToResults",value:function(){var t=this._results||document.querySelector("[".concat(e.NAME,"-results]"));t&&t.scrollIntoView({behavior:"smooth",block:"start"})}},{key:"disconnectedCallback",value:function(){this.removeEventListener("submit",this._handleSubmit),this._locationInput&&this._locationInput.removeEventListener("input",this._handleLocationInput),this._radiusSelect&&this._radiusSelect.removeEventListener("change",this._handleRadiusChange),this._pagination&&this._pagination.removeEventListener("click",this._handlePaginationClick),this._autocomplete&&google.maps.event.clearInstanceListeners(this._autocomplete)}}])&&c(n.prototype,r),i&&c(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(s(HTMLFormElement));e.SolicitorSearch=b,b.NAME="solicitor-search",customElements.define(b.NAME,b,{extends:"form"})},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==r(e)?e:e+""}function c(t,e,n){return e=p(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return l(t,arguments,p(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,t)})(t)}function l(t,e,n){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&f(o,n.prototype),o}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.CategoryDetails=void 0;var d=function(t){function e(){var t;return o(this,e),(t=c(this,e,arguments)).handleChange=function(){t.summaryText.textContent=t.activeInputText,t.open=!1},t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"activeInput",get:function(){return this.details.querySelector("input:checked")||this.details.querySelector("input")}},{key:"activeInputText",get:function(){return this.activeInput&&this.activeInput.dataset.text}},{key:"details",get:function(){return this.querySelector(e.DETAILS_SELECTOR)}},{key:"summaryText",get:function(){return this.querySelector(e.SUMMARY_TEXT_SELECTOR)}},{key:"connectedCallback",value:function(){this.handleChange(),this.addEventListener("change",this.handleChange)}}])&&i(n.prototype,r),u&&i(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,u}(a(HTMLDetailsElement));
1e.CategoryDetails=d,d.DETAILS_SELECTOR=".js-details",d.EXTENDS="details",d.NAME="category-details",d.SUMMARY_TEXT_SELECTOR=".js-summary-text",customElements.define(d.NAME,d,{extends:d.EXTENDS})},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function c(t,e,n){return e=p(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return l(t,arguments,p(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,t)})(t)}function l(t,e,n){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&f(o,n.prototype),o}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.ClipboardButton=void 0;var d=function(t){function e(){var t;return o(this,e),(t=c(this,e,arguments)).message=null,t.showMessage=function(){t.message||(t.disabled=!0,t.message=document.createElement("div"),t.message.style.position="absolute",t.message.style.left="50%",t.message.style.bottom="100%",t.message.style.transform="translateX(-50%)",t.message.style.padding="8px 16px",t.message.style.marginBottom="12px",t.message.style.borderRadius="9999px",t.message.style.color="#2c1c1c",t.message.style.whiteSpace="nowrap",t.message.style.backgroundColor="#fd8000",t.message.style.fontSize="14px",t.message.style.fontWeight="600",t.message.style.fontFamily='"work-sans", sans-serif',t.message.style.zIndex="1000",t.message.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)",t.message.innerHTML="Link copied",t.appendChild(t.message),t.message.animate([{opacity:0,transform:"translateX(-50%) translateY(100%)"},{opacity:1,transform:"translateX(-50%) translateY(0%)"}],{duration:400,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}).finished.then((function(){t.message&&t.message.animate({opacity:0,transform:"translateX(-50%) translateY(100%)"},{duration:400,delay:2e3,easing:"ease-in"}).finished.then((function(){t.message&&(t.message.remove(),t.message=null),t.disabled=!1}))})))},t.handleClick=function(){var e=window.location.href,n=navigator.clipboard;n&&"function"==typeof n.writeText&&n.writeText(e).then((function(){t.showMessage()})).catch((function(t){console.error("Failed to copy link: ",t)}))},t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){var t=navigator.clipboard;t&&t.writeText?this.addEventListener("click",this.handleClick):this.remove()}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",this.handleClick)}}])&&i(n.prototype,r),u&&i(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,u}(a(HTMLButtonElement));e.ClipboardButton=d,d.NAME="clipboard-button",customElements.define(d.NAME,d,{extends:"button"})},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,c=[],a=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(t){l=!0,o=t}
1finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=u(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){a=!0,i=t},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw i}}}}function u(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var a=r&&r.prototype instanceof c?r:c,s=Object.create(a.prototype);return l(s,"_invoke",function(n,r,o){var i,c,a,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,a=t,p.n=n,u}};function d(n,r){for(c=n,a=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(a=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return u;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,a=y;(e=c<2?t:a)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,a)):p.n=a:p.v=a);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?a:n.call(r,p))!==u)break}catch(e){i=t,c=1,a=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),s}var u={};function c(){}function s(){}function f(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(l(e={},r,(function(){return this})),e),d=f.prototype=c.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,l(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=f,l(d,"constructor",f),l(f,"constructor",s),s.displayName="GeneratorFunction",l(f,o,"GeneratorFunction"),l(d),l(d,o,"Generator"),l(d,r,(function(){return this})),l(d,"toString",(function(){return"[object Generator]"})),(a=function(){return{w:i,m:y}})()}function l(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(l=function(t,e,n,r){function i(e,n){l(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function s(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){s(i,r,o,u,c,"next",t)}function c(t){s(i,r,o,u,c,"throw",t)}u(void 0)}))}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,y(r.key),r)}}function y(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==r(e)?e:e+""}function h(t,e,n){return e=_(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,m()?Reflect.construct(e,n||[],_(t).constructor):e.apply(t,n))}function v(t){var e="function"==typeof Map?new Map:void 0;return(v=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return b(t,arguments,_(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,t)})(t)}function b(t,e,n){if(m())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&g(o,n.prototype),o}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}function g(t,e){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.FilterGroup=void 0;var w=function(t){function e(){var t;return p(this,e),(t=h(this,e,arguments)).searchDebounceTimeout=null,t.fetchResults=function(){var e=f(a().m((function e(n){var r,o,i=arguments;return a().w((function(e){for(;;)switch(e.n){case 0:return"replace"===(r=i.length>1&&void 0!==i[1]?i[1]:"replace")&&(o=Promise.all([t.target,t.prev,t.next].map((function(t){return t.animate([{opacity:0}],{duration:500,easing:"ease",fill:"both"}).finished}))).catch((function(){return Promise.resolve()}))),t.prev.toggleAttribute("inert",!0),t.next.toggleAttribute("inert",!0),e.n=1,fetch(n,{method:"get"}).then((function(t){if(!t.ok&&404!==t.status)throw new Error("".concat(t.status));return t.text()})).then((function(e){var i=(new DOMParser).parseFromString(e,"text/html"),u=i.querySelector("[data-filter-target]"),c=i.querySelector("[data-filter-prev]"),a=i.querySelector("[data-filter-next]");if(u)if(history.replaceState({},"",n),"replace"===r)o.then((function(){t.target.innerHTML=u.innerHTML,t.prev.innerHTML=c?c.innerHTML:"",t.next.innerHTML=a?a.innerHTML:"",t.reinitializeCharitySearchAnimation(),[t.target,t.prev,t.next].forEach((function(t){t.style.opacity="1",t.removeAttribute("inert");try{t.animate([{opacity:1}],{duration:300,easing:"ease",fill:"both"})}catch(e){t.style.opacity="1"}}))}));else{var l,s,f=Array.from(u.children);if("append"===r)(l=t.target).append.apply(l,f);else(s=t.target).prepend.apply(s,f);f.forEach((function(t){t.animate([{opacity:0},{opacity:1}],{duration:500,easing:"ease",fill:"none"})})),"append"===r?t.next.innerHTML=a.innerHTML:t.prev.innerHTML=c.innerHTML,t.next.toggleAttribute("inert",!1),t.prev.toggleAttribute("inert",!1)}})).catch((function(e){"replace"===r&&o.then((function(){[t.target,t.prev,t.next].forEach((function(t){t.animate([{opacity:1}],{duration:500,easing:"ease",fill:"both"})}))}))}));case 1:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.handleOpenClick=function(){t.dialog.toggle(!0)},t.handleCloseClick=function(){t.dialog.toggle(!1)},t.handleClick=function(e){var n=e.target.closest("[data-filter-clear]"),r=e.target.closest("[data-filter-reset]"),o=e.target.closest("[data-filter-prev] a"),i=e.target.closest("[data-filter-next] a");if(n)t.inputs.forEach((function(t){"type"in t&&"checkbox"===t.type?t.checked=!1:"SELECT"===t.tagName&&(t.selectedIndex=0)}));else{if(!r)return o?(e.preventDefault(),void t.fetchResults(o.href,"prepend")):i?(e.preventDefault(),void t.fetchResults(i.href,"append")):void 0;
1e.preventDefault(),t.inputs.forEach((function(t){!("type"in t)||"checkbox"!==t.type&&"radio"!==t.type?"SELECT"===t.tagName?t.selectedIndex=0:"INPUT"===t.tagName&&(t.value=""):t.checked=!1})),t.querySelectorAll("input[data-select-all]").forEach((function(t){t.checked=!0})),t.querySelectorAll(".multi-select-dropdown").forEach((function(e){t.updateDropdownText(e),t.closeDropdown(e)})),t.updateHeaderFilterCount();var u=window.location.protocol+"//"+window.location.host+window.location.pathname;t.fetchResults(u)}},t.handleInputChange=function(e){var n=e.target;if(n.matches('input[type="checkbox"], input[type="radio"], select')){var r=n.name,o=n.value;if(t.inputs.forEach((function(t){t!==n&&t.name===r&&t.value===o&&"checked"in t&&"checked"in n&&(t.checked=n.checked)})),n.matches("[data-filter-action]")&&Array.from(t.querySelectorAll("form")).forEach((function(t){t.action=n.value})),n.matches("[data-filter-auto]")&&n.closest("form").dispatchEvent(new CustomEvent("submit",{bubbles:!0,cancelable:!0,detail:{submitter:n}})),n.dataset.filterSummary){var i=n.dataset.filterSummary.split(",");if(i.length)t.querySelector(i[0]).innerHTML=i[1]}}},t.handleTextInputChange=function(e){var n=e.target;n.matches('input[type="text"], input[type="search"], input:not([type])')&&n.matches("[data-filter-auto]")&&(t.searchDebounceTimeout&&clearTimeout(t.searchDebounceTimeout),t.searchDebounceTimeout=window.setTimeout((function(){var t=n.closest("form");t&&t.dispatchEvent(new CustomEvent("submit",{bubbles:!0,cancelable:!0,detail:{submitter:n}}))}),200))},t.handleSubmit=function(){var e=f(a().m((function e(n){var r,o,i,u,c,l,s,f,p;return a().w((function(e){for(;;)switch(e.n){case 0:n.preventDefault(),(r=t.querySelectorAll("input[data-select-all]:checked")).forEach((function(t){t.disabled=!0})),o=n.target,i=new FormData(o),u=new URL(o.action),c=new URLSearchParams,i.forEach((function(t,e){var n=t.toString().trim();""!==n&&null!=n&&c.append(e,n)})),l=n.submitter||n.detail&&n.detail.submitter,s=l&&l.closest("dialog"),f=l&&l.closest("details"),s?s.toggle(!1):f&&f.toggle(!1),Array.from(o.querySelectorAll('input[name="__RequestVerificationToken"], [data-filter-action]')).forEach((function(t){c.delete(t.name)})),p="".concat(u.pathname).concat(c.toString()?"?":"").concat(c.toString()),t.fetchResults(p),r.forEach((function(t){t.disabled=!1}));case 1:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.initMultiSelectDropdowns=function(){t.querySelectorAll(".multi-select-dropdown").forEach((function(e){var n=e.querySelector(".multi-select-dropdown__trigger"),r=e.querySelector(".multi-select-dropdown__wrapper"),o=e.querySelector(".multi-select-dropdown__content"),i=e.querySelector(".multi-select-dropdown__text"),u=e.querySelectorAll('input[type="checkbox"]');if(n&&r&&o&&i){n.addEventListener("click",(function(n){n.preventDefault(),t.toggleDropdown(e)})),u.forEach((function(n){var r=n.closest("label");r&&r.addEventListener("click",(function(t){t.preventDefault(),n.checked=!n.checked,n.dispatchEvent(new Event("change",{bubbles:!0}))})),n.addEventListener("change",(function(){t.handleCheckboxChange(n,e),t.updateDropdownText(e),t.updateHeaderFilterCount()}))}));document.addEventListener("click",(function(n){var r=n.target,o=e.closest("charity-search-animation, .charity-search-form-component");e.contains(r)||o&&o.contains(r)||!n.isTrusted||t.closeDropdown(e)}),{capture:!0}),t.updateDropdownText(e),t.initializeSelectAllState(e)}}))},t.initializeSelectAllState=function(t){var e=t.querySelector("input[data-select-all]");if(e){var n=e.getAttribute("data-select-all"),r=t.querySelectorAll('input[data-group="'.concat(n,'"]:checked'));e.checked=0===r.length}},t.toggleDropdown=function(e){var n=e.classList.contains("open");t.querySelectorAll(".multi-select-dropdown.open").forEach((function(n){n!==e&&t.closeDropdown(n)})),n?t.closeDropdown(e):t.openDropdown(e)},t.openDropdown=function(t){t.classList.add("open");var e=t.querySelector(".multi-select-dropdown__wrapper"),n=t.querySelector(".multi-select-dropdown__content");e&&e.classList.add("open"),n&&n.classList.add("open")},t.closeDropdown=function(t){t.classList.remove("open");var e=t.querySelector(".multi-select-dropdown__wrapper"),n=t.querySelector(".multi-select-dropdown__content");e&&e.classList.remove("open"),n&&n.classList.remove("open")},t.handleCheckboxChange=function(e,n){var r=e.getAttribute("data-select-all"),o=e.getAttribute("data-group");if(r)e.checked?t.resetDropdownGroup(r,n):e.checked=!0;else if(o){var i=n.querySelector('input[data-select-all="'.concat(o,'"]')),u=n.querySelectorAll('input[data-group="'.concat(o,'"]')),c=n.querySelectorAll('input[data-group="'.concat(o,'"]:checked'));
1i&&(e.checked?c.length===u.length?i.checked=!0:i.checked=!1:0===c.length?i.checked=!0:i.checked=!1)}},t.resetDropdownGroup=function(e,n){n.querySelectorAll('input[data-group="'.concat(e,'"]')).forEach((function(t){t.checked=!1})),t.updateDropdownText(n),t.updateHeaderFilterCount();var r,u=t.querySelector("form"),c=new FormData(u),a=new URL(u.action),l=new URLSearchParams,s={causes:"cause",areas:"area"}[e],f=i(c.entries());try{for(f.s();!(r=f.n()).done;){var p=o(r.value,2),d=p[0],y=p[1];d===s||d.includes("-select-all")||"__RequestVerificationToken"===d||""===y.toString().trim()||l.append(d,y.toString())}}catch(t){f.e(t)}finally{f.f()}Array.from(u.querySelectorAll("[data-filter-action]")).forEach((function(t){l.delete(t.name)}));var h="".concat(a.pathname).concat(l.toString()?"?":"").concat(l.toString());t.fetchResults(h)},t.updateDropdownText=function(t){var e=t.querySelector(".multi-select-dropdown__text"),n=t.querySelectorAll('input[type="checkbox"]:checked:not([data-select-all])'),r=t.getAttribute("data-dropdown");e&&(0===n.length?(e.textContent="causes"===r?"All causes":"All areas",e.innerHTML="causes"===r?"All causes":"All areas"):e.innerHTML='Filters applied <span class="filter-count-badge">'+n.length+"</span>")},t.updateHeaderFilterCount=function(){var e=t.querySelector(".form-header-text");if(e){var n=0;n+=t.querySelectorAll('input[data-group="causes"]:checked').length,n+=t.querySelectorAll('input[data-group="areas"]:checked').length;var r=e.querySelector(".plus-icon-container"),o=e.querySelector(".filter-count-badge-header");if(n>0)if(o)o.textContent=n.toString();else{var i=document.createElement("span");i.className="filter-count-badge-header",i.textContent=n.toString(),r?e.insertBefore(i,r):e.appendChild(i);var u=Array.from(e.childNodes).filter((function(t){return t.nodeType===Node.TEXT_NODE}));u.length>0&&(u[0].textContent="Filter charities ")}else{o&&o.remove();var c=Array.from(e.childNodes).filter((function(t){return t.nodeType===Node.TEXT_NODE}));c.length>0&&(c[0].textContent="Filter charities")}}},t.handleKeydown=function(e){"Escape"===e.key&&t.querySelectorAll(".multi-select-dropdown.open").forEach((function(e){t.closeDropdown(e)}))},t.reinitializeCharitySearchAnimation=function(){t.querySelector("charity-search-animation")},t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){this.open=this.querySelector("[data-filter-open]"),this.close=this.querySelector("[data-filter-close]"),this.dialog=this.querySelector("[data-filter-dialog]"),this.target=this.querySelector("[data-filter-target]"),this.prev=this.querySelector("[data-filter-prev]"),this.next=this.querySelector("[data-filter-next]"),this.inputs=Array.from(this.querySelectorAll('input[type="checkbox"], input[type="radio"], input[type="text"], input[type="search"], input:not([type]), select')),this.addEventListener("click",this.handleClick),this.addEventListener("change",this.handleInputChange),this.addEventListener("input",this.handleTextInputChange),this.addEventListener("submit",this.handleSubmit),this.addEventListener("keydown",this.handleKeydown),this.open&&this.open.addEventListener("click",this.handleOpenClick),this.close&&this.close.addEventListener("click",this.handleCloseClick),this.initMultiSelectDropdowns(),this.updateHeaderFilterCount()}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",this.handleClick),this.removeEventListener("change",this.handleInputChange),this.removeEventListener("input",this.handleTextInputChange),this.removeEventListener("submit",this.handleSubmit),this.removeEventListener("keydown",this.handleKeydown),this.open&&this.open.removeEventListener("click",this.handleOpenClick),this.close&&this.close.removeEventListener("click",this.handleCloseClick),this.searchDebounceTimeout&&(clearTimeout(this.searchDebounceTimeout),this.searchDebounceTimeout=null)}}])&&d(n.prototype,r),u&&d(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,u}(v(HTMLElement));e.FilterGroup=w,w.NAME="filter-group",customElements.define(w.NAME,w)},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==r(e)?e:e+""}function u(t,e,n){return e=f(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return a(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}function a(t,e,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&s(o,n.prototype),o}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0});var p=n(47),d=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=u(this,e)).toggle=null,t.content=null,t.plusIcon=null,t.isExpanded=!1,t.animationTimeline=null,t.resizeTimeout=0,t.handleToggle=t.handleToggle.bind(t),t.handleKeydown=t.handleKeydown.bind(t),t.handleResize=t.handleResize.bind(t),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connectedCallback",value:function(){this.init(),this.bindEvents()}},{key:"disconnectedCallback",value:function(){this.unbindEvents(),this.animationTimeline&&this.animationTimeline.kill()}},{key:"init",value:function(){this.toggle=this.querySelector(".form-dropdown-toggle"),this.content=this.querySelector(".charity-form-content"),this.plusIcon=this.querySelector(".plus-icon"),this.toggle&&this.content?this.initializeDropdown():console.warn("CharitySearchAnimation: Required elements not found")}},{key:"bindEvents",value:function(){this.toggle&&(this.toggle.addEventListener("click",this.handleToggle),this.toggle.addEventListener("keydown",this.handleKeydown)),window.addEventListener("resize",this.handleResize)}},{key:"unbindEvents",value:function(){this.toggle&&(this.toggle.removeEventListener("click",this.handleToggle),this.toggle.removeEventListener("keydown",this.handleKeydown)),window.removeEventListener("resize",this.handleResize)}},{key:"isMobile",value:function(){return window.innerWidth<=1023}},{key:"initializeDropdown",value:function(){this.content&&this.toggle&&(this.animationTimeline&&this.animationTimeline.kill(),this.isMobile()?(this.isExpanded=!1,this.content.style.height="0px",this.content.style.opacity="0",this.content.style.overflow="hidden",this.toggle.style.paddingBottom="0px",this.toggle.setAttribute("aria-expanded","false"),this.plusIcon&&(this.plusIcon.src="/assets/icons/plus2.svg")):(this.isExpanded=!0,this.content.style.height="auto",this.content.style.opacity="1",this.content.style.overflow="visible",this.toggle.style.paddingBottom="",this.toggle.setAttribute("aria-expanded","true"),this.plusIcon&&(this.plusIcon.src="/assets/icons/plus2.svg")))}},{key:"handleToggle",value:function(){this.isMobile()&&this.toggleDropdown()}},{key:"handleKeydown",value:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleToggle())}},{key:"handleResize",value:function(){var t=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((function(){var e=t.isExpanded;t.initializeDropdown(),e&&t.isMobile()&&(t.isExpanded=!0,t.content&&t.toggle&&t.plusIcon&&(t.content.style.height="auto",t.content.style.opacity="1",t.content.style.overflow="visible",t.toggle.style.paddingBottom="1rem",t.toggle.setAttribute("aria-expanded","true"),t.plusIcon.src="/assets/icons/minus.svg"))}),100)}},{key:"toggleDropdown",value:function(){var t=this;if(this.content&&this.toggle&&this.plusIcon)if(this.animationTimeline&&this.animationTimeline.kill(),this.animationTimeline=p.gsap.timeline(),this.isExpanded)this.animationTimeline.to(this.content,{height:0,opacity:0,duration:.4,ease:"power2.inOut"}).to(this.toggle,{paddingBottom:0,duration:.4,ease:"power2.inOut"}
1,"-=0.4").to(this.plusIcon,{opacity:0,duration:.15,ease:"power2.inOut"},"-=0.3").call((function(){t.plusIcon.src="/assets/icons/plus2.svg"})).to(this.plusIcon,{opacity:1,duration:.15,ease:"power2.inOut"}).call((function(){t.content.style.overflow="hidden",t.toggle.setAttribute("aria-expanded","false")})),this.isExpanded=!1;else{var e=this.content.style.height,n=this.content.style.opacity;this.content.style.height="auto",this.content.style.opacity="1",this.content.style.overflow="visible";var r=this.content.offsetHeight;this.content.style.height=e,this.content.style.opacity=n,this.content.style.overflow="hidden",this.animationTimeline.to(this.plusIcon,{opacity:0,duration:.15,ease:"power2.inOut"}).call((function(){t.plusIcon.src="/assets/icons/minus.svg"})).to(this.plusIcon,{opacity:1,duration:.15,ease:"power2.inOut"}).to(this.content,{height:r,opacity:1,duration:.4,ease:"power2.inOut"},"-=0.2").to(this.toggle,{paddingBottom:"1rem",duration:.4,ease:"power2.inOut"},"-=0.4").call((function(){t.content.style.height="auto",t.content.style.overflow="visible",t.toggle.setAttribute("aria-expanded","true")})),this.isExpanded=!0}}}])}(c(HTMLElement));customElements.define("charity-search-animation",d),e.default=d},function(t,e,n){"use strict";function r(t){return(r="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 o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0}),e.FormsNoIndicatorSubmitState=void 0;var l=c((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}));e.FormsNoIndicatorSubmitState=l,l.NO_INDICATOR_VALUE_LOWER="NoIndicator".toLowerCase(),l.NO_INDICATOR_FORM_SELECTOR=['form[data-mark-fields-indicator="'.concat("NoIndicator",'"]'),'.umbraco-forms-form[data-mark-fields-indicator="'.concat("NoIndicator",'"] form')].join(", "),l.FORMS_SELECTOR=".umbraco-forms-form form",l.SUBMIT_SELECTOR='button[type="submit"], input[type="submit"], button[data-submit-proxy-id]',l.HOVER_SUPPRESSED_CLASS="form-submit-hover-disabled",l.init=function(){var t=new Set([].concat(o(Array.from(document.querySelectorAll(l.NO_INDICATOR_FORM_SELECTOR))),o(Array.from(document.querySelectorAll(l.FORMS_SELECTOR))))),e=new Set;t.forEach((function(t){var n=l.resolveForm(t);n&&!e.has(n)&&l.isNoIndicatorForm(n)&&(e.add(n),l.bindNoIndicatorFormState(n))}))},l.isRelevantControl=function(t){return!t.disabled&&(!(t instanceof HTMLInputElement)||!["hidden","submit","button","reset","image"].includes(t.type))},l.hasRequiredTrimmedValue=function(t){if(!l.isMarkedRequired(t))return!0;if(t instanceof HTMLInputElement){if("checkbox"===t.type)return t.form&&0!==t.name.length?Array.from(t.form.querySelectorAll('input[type="checkbox"]')).some((function(e){return!e.disabled&&e.name===t.name&&e.checked})):t.checked;if("radio"===t.type)return t.form&&0!==t.name.length?Array.from(t.form.querySelectorAll('input[type="radio"]')).some((function(e){return!e.disabled&&e.name===t.name&&e.checked})):t.checked}return t instanceof HTMLSelectElement&&t.multiple?t.selectedOptions.length>0:t.value.trim().length>0},l.isMarkedRequired=function(t){if(t.required)return!0;var e=t.getAttribute("data-rule-required"),n=t.getAttribute("aria-required");return t.hasAttribute("data-val-required")||t.hasAttribute("data-val-requiredcb")||null!==e&&"true"===e.toLowerCase()||null!==n&&"true"===n.toLowerCase()},l.isControlValid=function(t){return!l.isRelevantControl(t)||l.hasRequiredTrimmedValue(t)&&t.checkValidity()},l.isFormValid=function(t){return Array.from(t.querySelectorAll("input, select, textarea")).every(l.isControlValid)},l.toggleSubmitHoverState=function(t,e){Array.from(t.querySelectorAll(l.SUBMIT_SELECTOR)).forEac
1h((function(t){t.disabled=!e,t.classList.toggle(l.HOVER_SUPPRESSED_CLASS,!e),t.setAttribute("data-submit-hover-enabled",e?"true":"false")}))},l.removeIndicatorNodes=function(t){t.querySelectorAll(".umbraco-forms-indicator").forEach((function(t){t.remove()}))},l.removeTrailingAsterisk=function(t){for(var e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);n.nextNode();){var r=n.currentNode;r.nodeValue&&r.nodeValue.trim().length>0&&e.push(r)}var o=e[e.length-1];o&&o.nodeValue&&(o.nodeValue=o.nodeValue.replace(/\s*\*\s*$/,""))},l.normalizeNoIndicatorLabels=function(t){l.removeIndicatorNodes(t),t.querySelectorAll("label, legend").forEach((function(t){l.removeTrailingAsterisk(t)}))},l.resolveForm=function(t){if(t instanceof HTMLFormElement)return t;var e=t.querySelector("form");return e instanceof HTMLFormElement?e:null},l.bindNoIndicatorFormState=function(t){var e=function(){l.toggleSubmitHoverState(t,l.isFormValid(t))};l.normalizeNoIndicatorLabels(t),e(),t.addEventListener("input",e),t.addEventListener("change",e),t.addEventListener("blur",e,!0)},l.isNoIndicatorForm=function(t){var e=t.getAttribute("data-mark-fields-indicator");if(e&&e.toLowerCase()===l.NO_INDICATOR_VALUE_LOWER)return!0;var n=t.closest(".umbraco-forms-form"),r=null==n?void 0:n.getAttribute("data-mark-fields-indicator");if(r&&r.toLowerCase()===l.NO_INDICATOR_VALUE_LOWER)return!0;var o=Array.from(t.querySelectorAll("input, select, textarea")).some(l.isMarkedRequired),i=null!==t.querySelector(".umbraco-forms-indicator");return o&&!i},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",l.init):l.init()}]);
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.