@ecl/preset-ec 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scripts/ecl-ec.js +2 -2
- package/dist/styles/ecl-ec-print.css +1 -1
- package/dist/styles/ecl-ec.css +2 -2
- package/dist/styles/ecl-ec.css.map +1 -1
- package/dist/styles/optional/ecl-ec-default-print.css +1 -1
- package/dist/styles/optional/ecl-ec-default.css +1 -1
- package/dist/styles/optional/ecl-ec-utilities.css +1 -1
- package/dist/styles/optional/ecl-reset.css +1 -1
- package/dist/styles/optional/ecl-rtl.css +1 -1
- package/package.json +81 -81
package/dist/scripts/ecl-ec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* @ecl/preset-ec - 4.1.
|
|
2
|
-
var ECL=function(e){"use strict";function t(){return(t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i,s=arguments[t];for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e}).apply(this,arguments)}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function R(e,t){var i,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=function(e,t){var i;if(e)return"string"==typeof e?n(e,t):"Map"===(i="Object"===(i=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),i=0,function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}return null});var B=0;function i(e){return"__private_"+B+++"_"+e}function d(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}function a(e,t){return void 0===t&&(t=document),[].slice.call(t.querySelectorAll(e))}function v(e,t){return(t=void 0===t?document:t).querySelector(e)}var z=["root"];class k{constructor(){this.events=new Map}on(e,t){this.events.has(e)||this.events.set(e,[]),this.events.get(e).push(t)}trigger(e,t){e=this.events.get(e);e&&e.forEach(e=>{e(t)})}getCallback(e){return this.events.get(e)||[]}}function h(e,t){void 0===t&&(t=!0);var i=null==e||null==(i=e.getAttribute)?void 0:i.call(e,"inert");return""===i||"true"===i||t&&e&&h(e.parentNode)}function S(e){if(e)return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||U(e))&&!X(e)?0:e.tabIndex;throw new Error("No node provided")}function F(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function K(e){return"INPUT"===e.tagName}function H(e){if(!e.name)return 1;function t(e){return i.querySelectorAll('input[type="radio"][name="'+e+'"]')}var i=e.form||o(e);if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)s=t(window.CSS.escape(e.name));else try{s=t(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),0}var s=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]}(s,e.form);return!s||s===e}function V(e){return K(t=e)&&"radio"===t.type&&!H(e);var t}function G(e){var t=(e=e.getBoundingClientRect()).width,e=e.height;return 0===t&&0===e}function W(e,t){var i=t.displayCheck,s=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return 1;if(t=u.call(e,"details>summary:first-of-type")?e.parentElement:e,u.call(t,"details:not([open]) *"))return 1;if(i&&"full"!==i&&"legacy-full"!==i){if("non-zero-area"===i)return G(e)}else{if("function"==typeof s){for(t=e;e;){var n=e.parentElement,l=o(e);if(n&&!n.shadowRoot&&!0===s(n))return G(e);e=e.assignedSlot||(n||l===e.ownerDocument?n:l.host)}e=t}if(function(e){var t,i=e&&o(e),s=null==(t=i)?void 0:t.host,n=!1;if(i&&i!==e)for(n=!!(null!=(t=s)&&null!=(t=t.ownerDocument)&&t.contains(s)||null!=e&&null!=(t=e.ownerDocument)&&t.contains(e));!n&&s;)var l,n=!(null==(l=s=null==(l=i=o(s))?void 0:l.host)||null==(l=l.ownerDocument)||!l.contains(s));return n}(e))return!e.getClientRects().length;if("legacy-full"!==i)return 1}}function A(e,t){if(t=t||{},e)return!1!==u.call(e,c)&&_(t,e);throw new Error("No node provided")}function O(e,t){if(t=t||{},e)return!1!==u.call(e,Q)&&x(t,e);throw new Error("No node provided")}var s=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],c=s.join(","),l="undefined"==typeof Element,u=l?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,o=!l&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},U=function(e){var t=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===t||"true"===t},j=function(e,t,i){var s;return h(e)?[]:(s=Array.prototype.slice.apply(e.querySelectorAll(c)),t&&u.call(e,c)&&s.unshift(e),s.filter(i))},q=function e(t,i,s){for(var n=[],l=Array.from(t);l.length;){var a,o,r=l.shift();h(r,!1)||("SLOT"===r.tagName?(a=e((a=r.assignedElements()).length?a:r.children,!0,s),s.flatten?n.push.apply(n,a):n.push({scopeParent:r,candidates:a})):(u.call(r,c)&&s.filter(r)&&(i||!t.includes(r))&&n.push(r),a=r.shadowRoot||"function"==typeof s.getShadowRoot&&s.getShadowRoot(r),o=!h(a,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(r)),a&&o?(o=e((!0===a?r:a).children,!0,s),s.flatten?n.push.apply(n,o):n.push({scopeParent:r,candidates:o})):l.unshift.apply(l,r.children)))}return n},X=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},x=function(e,t){var i;return!(t.disabled||h(t)||K(i=t)&&"hidden"===i.type||W(t,e)||"DETAILS"===(i=t).tagName&&Array.prototype.slice.apply(i.children).some(function(e){return"SUMMARY"===e.tagName})||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var i=0;i<t.children.length;i++){var s=t.children.item(i);if("LEGEND"===s.tagName)return!!u.call(t,"fieldset[disabled] *")||!s.contains(e)}return!0}t=t.parentElement}return!1}(t))},_=function(e,t){return!(V(t)||S(t)<0||!x(e,t))},Y=function(e){e=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(e)||0<=e)},$=function o(e){var r=[],h=[];return e.forEach(function(e,t){var i,s=!!e.scopeParent,n=s?e.scopeParent:e,l=(l=s,(i=S(a=n))<0&&l&&!X(a)?0:i),a=s?o(e.candidates):n;0===l?s?r.push.apply(r,a):r.push(n):h.push({documentOrder:t,tabIndex:l,item:e,isScope:s,content:a})}),h.sort(F).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(r)},Q=s.concat("iframe").join(",");function Z(t,e){var i,s=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,i)),s}function J(s){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(n),!0).forEach(function(e){var t,i;t=s,i=n[e=e],(e=function(e){e=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0===i)return("string"===t?String:Number)(e);i=i.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(n,e))})}return s}function ee(e){return M(e)&&!e.shiftKey}function te(e){return M(e)&&e.shiftKey}function ie(e){return setTimeout(e,0)}function se(e,i){var s=-1;return e.every(function(e,t){return!i(e)||(s=t,!1)}),s}function T(e){for(var t=arguments.length,i=new Array(1<t?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return"function"==typeof e?e.apply(void 0,i):e}function I(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target}function r(e,t){function l(e,t,i){return e&&void 0!==e[t]?e[t]:u[i||t]}function a(){if(m.containerGroups=m.containers.map(function(e){var s=function(e,t){e=(t=t||{}).getShadowRoot?q([e],t.includeContainer,{filter:_.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Y}):j(e,t.includeContainer,_.bind(null,t));return $(e)}(e,u.tabbableOptions),n=(t=e,(i=(i=u.tabbableOptions)||{}).getShadowRoot?q([t],i.includeContainer,{filter:x.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):j(t,i.includeContainer,x.bind(null,i))),t=0<s.length?s[0]:void 0,i=0<s.length?s[s.length-1]:void 0,l=n.find(function(e){return A(e)}),a=n.slice().reverse().find(function(e){return A(e)}),o=!!s.find(function(e){return 0<S(e)});return{container:e,tabbableNodes:s,focusableNodes:n,posTabIndexesFound:o,firstTabbableNode:t,lastTabbableNode:i,firstDomTabbableNode:l,lastDomTabbableNode:a,nextTabbableNode:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=s.indexOf(e);return i<0?t?n.slice(n.indexOf(e)+1).find(function(e){return A(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return A(e)}):s[i+(t?1:-1)]}}}),m.tabbableGroups=m.containerGroups.filter(function(e){return 0<e.tabbableNodes.length}),m.tabbableGroups.length<=0&&!v("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(m.containerGroups.find(function(e){return e.posTabIndexesFound})&&1<m.containerGroups.length)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}function o(e){var t=v("setReturnFocus",e);return t||!1!==t&&e}function n(){if(m.active)ne(d,k),m.delayInitialFocusTimer=u.delayInitialFocus?ie(function(){b(g())}):b(g()),c.addEventListener("focusin",y,!0),c.addEventListener("mousedown",i,{capture:!0,passive:!1}),c.addEventListener("touchstart",i,{capture:!0,passive:!1}),c.addEventListener("click",C,{capture:!0,passive:!1}),c.addEventListener("keydown",E,{capture:!0,passive:!1})}function r(){if(m.active)c.removeEventListener("focusin",y,!0),c.removeEventListener("mousedown",i,!0),c.removeEventListener("touchstart",i,!0),c.removeEventListener("click",C,!0),c.removeEventListener("keydown",E,!0)}function h(){w&&(w.disconnect(),m.active)&&!m.paused&&m.containers.map(function(e){w.observe(e,{subtree:!0,childList:!0})})}var c=(null==t?void 0:t.document)||document,d=(null==t?void 0:t.trapStack)||ae,u=J({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:ee,isKeyBackward:te},t),m={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},p=function(i,e){var s="function"==typeof(null==e?void 0:e.composedPath)?e.composedPath():void 0;return m.containerGroups.findIndex(function(e){var t=e.container,e=e.tabbableNodes;return t.contains(i)||(null==s?void 0:s.includes(t))||e.find(function(e){return e===i})})},v=function(e){var t=u[e];if("function"==typeof t){for(var i=arguments.length,s=new Array(1<i?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];t=t.apply(void 0,s)}if(!(t=!0===t?void 0:t)){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"!=typeof t||(l=c.querySelector(t)))return l;throw new Error("`".concat(e,"` as selector refers to no known node"))},g=function(){var e,t=v("initialFocus");if(!1===t)return!1;if(t=void 0!==t&&O(t,u.tabbableOptions)?t:0<=p(c.activeElement)?c.activeElement:(e=m.tabbableGroups[0])&&e.firstTabbableNode||v("fallbackFocus"))return t;throw new Error("Your focus-trap needs to have at least one focusable element")},s=function e(t){t=t.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?e(t.shadowRoot):t},b=function e(t){var i;!1!==t&&t!==s(document)&&(t&&t.focus?(t.focus({preventScroll:!!u.preventScroll}),m.mostRecentlyFocusedNode=t,(i=t).tagName&&"input"===i.tagName.toLowerCase()&&"function"==typeof i.select&&t.select()):e(g()))},f=function(e){var t,i,s=e.target,n=e.event,e=e.isBackward,e=void 0!==e&&e,s=s||I(n),l=(a(),null);return 0<m.tabbableGroups.length?(t=0<=(i=p(s,n))?m.containerGroups[i]:void 0,i<0?l=e?m.tabbableGroups[m.tabbableGroups.length-1].lastTabbableNode:m.tabbableGroups[0].firstTabbableNode:e?0<=(e=(e=se(m.tabbableGroups,function(e){e=e.firstTabbableNode;return s===e}))<0&&(t.container===s||O(s,u.tabbableOptions)&&!A(s,u.tabbableOptions)&&!t.nextTabbableNode(s,!1))?i:e)?(e=0===e?m.tabbableGroups.length-1:e-1,e=m.tabbableGroups[e],l=0<=S(s)?e.lastTabbableNode:e.lastDomTabbableNode):M(n)||(l=t.nextTabbableNode(s,!1)):0<=(e=(e=se(m.tabbableGroups,function(e){e=e.lastTabbableNode;return s===e}))<0&&(t.container===s||O(s,u.tabbableOptions)&&!A(s,u.tabbableOptions)&&!t.nextTabbableNode(s))?i:e)?(i=e===m.tabbableGroups.length-1?0:e+1,e=m.tabbableGroups[i],l=0<=S(s)?e.firstTabbableNode:e.firstDomTabbableNode):M(n)||(l=t.nextTabbableNode(s))):l=v("fallbackFocus"),l},i=function(e){var t=I(e);0<=p(t,e)||(T(u.clickOutsideDeactivates,e)?k.deactivate({returnFocus:u.returnFocusOnDeactivate}):T(u.allowOutsideClick,e)||e.preventDefault())},y=function(e){var t,i=I(e),s=0<=p(i,e);s||i instanceof Document?s&&(m.mostRecentlyFocusedNode=i):(e.stopImmediatePropagation(),s=!0,m.mostRecentlyFocusedNode?0<S(m.mostRecentlyFocusedNode)?(i=p(m.mostRecentlyFocusedNode),0<(e=m.containerGroups[i].tabbableNodes).length&&0<=(i=e.findIndex(function(e){return e===m.mostRecentlyFocusedNode}))&&(u.isKeyForward(m.recentNavEvent)?i+1<e.length&&(t=e[i+1],s=!1):0<=i-1&&(t=e[i-1],s=!1))):m.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return 0<S(e)})})||(s=!1):s=!1,s&&(t=f({target:m.mostRecentlyFocusedNode,isBackward:u.isKeyBackward(m.recentNavEvent)})),b(t||m.mostRecentlyFocusedNode||g())),m.recentNavEvent=void 0},L=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=(m.recentNavEvent=e,f({event:e,isBackward:t}));t&&(M(e)&&e.preventDefault(),b(t))},E=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===T(u.escapeDeactivates,e)?(u.isKeyForward(e)||u.isKeyBackward(e))&&L(e,u.isKeyBackward(e)):(e.preventDefault(),k.deactivate())},C=function(e){var t=I(e);0<=p(t,e)||T(u.clickOutsideDeactivates,e)||T(u.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===m.mostRecentlyFocusedNode})})&&b(g())}):void 0,k={get active(){return m.active},get paused(){return m.paused},activate:function(e){var t,i,s;return m.active||(t=l(e,"onActivate"),i=l(e,"onPostActivate"),(s=l(e,"checkCanFocusTrap"))||a(),m.active=!0,m.paused=!1,m.nodeFocusedBeforeActivation=c.activeElement,null!=t&&t(),e=function(){s&&a(),n(),h(),null!=i&&i()},s?s(m.containers.concat()).then(e,e):e()),this},deactivate:function(e){var t,i,s,n;return m.active&&(e=J({onDeactivate:u.onDeactivate,onPostDeactivate:u.onPostDeactivate,checkCanReturnFocus:u.checkCanReturnFocus},e),clearTimeout(m.delayInitialFocusTimer),m.delayInitialFocusTimer=void 0,r(),m.active=!1,m.paused=!1,h(),le(d,k),t=l(e,"onDeactivate"),i=l(e,"onPostDeactivate"),s=l(e,"checkCanReturnFocus"),n=l(e,"returnFocus","returnFocusOnDeactivate"),null!=t&&t(),e=function(){ie(function(){n&&b(o(m.nodeFocusedBeforeActivation)),null!=i&&i()})},n&&s?s(o(m.nodeFocusedBeforeActivation)).then(e,e):e()),this},pause:function(e){var t;return!m.paused&&m.active&&(t=l(e,"onPause"),e=l(e,"onPostPause"),m.paused=!0,null!=t&&t(),r(),h(),null!=e)&&e(),this},unpause:function(e){var t;return m.paused&&m.active&&(t=l(e,"onUnpause"),e=l(e,"onPostUnpause"),m.paused=!1,null!=t&&t(),a(),n(),h(),null!=e)&&e(),this},updateContainerElements:function(e){e=[].concat(e).filter(Boolean);return m.containers=e.map(function(e){return"string"==typeof e?c.querySelector(e):e}),m.active&&a(),h(),this}};return k.updateContainerElements(e),k}var ne=function(e,t){0<e.length&&(i=e[e.length-1])!==t&&i.pause();var i=e.indexOf(t);-1!==i&&e.splice(i,1),e.push(t)},le=function(e,t){t=e.indexOf(t);-1!==t&&e.splice(t,1),0<e.length&&e[e.length-1].unpause()},M=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},ae=[];var oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(e,t){return e(t={exports:{}},t.exports),t.exports}var re=m(function(e){function s(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function r(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}function h(e){return parseFloat(e)||0}function c(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t}function i(t){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");if(!(t instanceof HTMLElement))throw new Error("First argument must be HTMLElement");if(g.some(function(e){return e._node===t}))throw new Error("Stickyfill is already applied to this node");this._node=t,this._stickyMode=null,this._active=!1,g.push(this),this.refresh()}function t(){var e,t,i;function s(){d.pageXOffset!=v.left?(v.top=d.pageYOffset,v.left=d.pageXOffset,f.refreshAll()):d.pageYOffset!=v.top&&(v.top=d.pageYOffset,v.left=d.pageXOffset,g.forEach(function(e){return e._recalcPosition()}))}function n(){e=setInterval(function(){g.forEach(function(e){return e._fastCheck()})},500)}o||(o=!0,s(),d.addEventListener("scroll",s),d.addEventListener("resize",f.refreshAll),d.addEventListener("orientationchange",f.refreshAll),i=t=e=void 0,"hidden"in u?(t="hidden",i="visibilitychange"):"webkitHidden"in u&&(t="webkitHidden",i="webkitvisibilitychange"),i?(u[t]||n(),u.addEventListener(i,function(){u[t]?clearInterval(e):n()})):n())}var d,u,n,l,m,a,o,p,v,g,b,f;d=window,u=document,m=!(n=function(e,t,i){return t&&s(e.prototype,t),i&&s(e,i),e}),(a=void 0!==d)&&d.getComputedStyle&&(l=u.createElement("div"),!["","-webkit-","-moz-","-ms-"].some(function(e){try{l.style.position=e+"sticky"}catch(e){}return""!=l.style.position}))||(m=!0),o=!1,p="undefined"!=typeof ShadowRoot,v={top:null,left:null},g=[],n(i,[{key:"refresh",value:function(){var e,t,i,s,n,l,a,o;m||this._removed||(this._active&&this._deactivate(),e=this._node,t={position:(i=getComputedStyle(e)).position,top:i.top,display:i.display,marginTop:i.marginTop,marginBottom:i.marginBottom,marginLeft:i.marginLeft,marginRight:i.marginRight,cssFloat:i.cssFloat},isNaN(parseFloat(t.top)))||"table-cell"==t.display||"none"==t.display||(this._active=!0,o=e.style.position,"sticky"!=i.position&&"-webkit-sticky"!=i.position||(e.style.position="static"),i=e.parentNode,s=p&&i instanceof ShadowRoot?i.host:i,n=e.getBoundingClientRect(),a=s.getBoundingClientRect(),l=getComputedStyle(s),this._parent={node:s,styles:{position:s.style.position},offsetHeight:s.offsetHeight},this._offsetToWindow={left:n.left,right:u.documentElement.clientWidth-n.right},this._offsetToParent={top:n.top-a.top-h(l.borderTopWidth),left:n.left-a.left-h(l.borderLeftWidth),right:-n.right+a.right-h(l.borderRightWidth)},this._styles={position:o,top:e.style.top,bottom:e.style.bottom,left:e.style.left,right:e.style.right,width:e.style.width,marginTop:e.style.marginTop,marginLeft:e.style.marginLeft,marginRight:e.style.marginRight},o=h(t.top),this._limits={start:n.top+d.pageYOffset-o,end:a.top+d.pageYOffset+s.offsetHeight-h(l.borderBottomWidth)-e.offsetHeight-o-h(t.marginBottom)},"absolute"!=(a=l.position)&&"relative"!=a&&(s.style.position="relative"),this._recalcPosition(),(o=this._clone={}).node=u.createElement("div"),r(o.node.style,{width:n.right-n.left+"px",height:n.bottom-n.top+"px",marginTop:t.marginTop,marginBottom:t.marginBottom,marginLeft:t.marginLeft,marginRight:t.marginRight,cssFloat:t.cssFloat,padding:0,border:0,borderSpacing:0,fontSize:"1em",position:"static"}),i.insertBefore(o.node,e),o.docOffsetTop=c(o.node))}},{key:"_recalcPosition",value:function(){if(this._active&&!this._removed){var e=v.top<=this._limits.start?"start":v.top>=this._limits.end?"end":"middle";if(this._stickyMode!=e){switch(e){case"start":r(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:this._offsetToParent.top+"px",bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"middle":r(this._node.style,{position:"fixed",left:this._offsetToWindow.left+"px",right:this._offsetToWindow.right+"px",top:this._styles.top,bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"end":r(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:"auto",bottom:0,width:"auto",marginLeft:0,marginRight:0})}this._stickyMode=e}}}},{key:"_fastCheck",value:function(){this._active&&!this._removed&&(1<Math.abs(c(this._clone.node)-this._clone.docOffsetTop)||1<Math.abs(this._parent.node.offsetHeight-this._parent.offsetHeight))&&this.refresh()}},{key:"_deactivate",value:function(){var t=this;this._active&&!this._removed&&(this._clone.node.parentNode.removeChild(this._clone.node),delete this._clone,r(this._node.style,this._styles),delete this._styles,g.some(function(e){return e!==t&&e._parent&&e._parent.node===t._parent.node})||r(this._parent.node.style,this._parent.styles),delete this._parent,this._stickyMode=null,this._active=!1,delete this._offsetToWindow,delete this._offsetToParent,delete this._limits)}},{key:"remove",value:function(){var i=this;this._deactivate(),g.some(function(e,t){if(e._node===i._node)return g.splice(t,1),!0}),this._removed=!0}}]),f={stickies:g,Sticky:b=i,forceSticky:function(){m=!1,t(),this.refreshAll()},addOne:function(e){if(!(e instanceof HTMLElement)){if(!e.length||!e[0])return;e=e[0]}for(var t=0;t<g.length;t++)if(g[t]._node===e)return g[t];return new b(e)},add:function(i){if((i=i instanceof HTMLElement?[i]:i).length){for(var s=[],e=0;e<i.length;e++)(function(e){var t=i[e];t instanceof HTMLElement?g.some(function(e){if(e._node===t)return s.push(e),!0})||s.push(new b(t)):s.push(void 0)})(e);return s}},refreshAll:function(){g.forEach(function(e){return e.refresh()})},removeOne:function(t){if(!(t instanceof HTMLElement)){if(!t.length||!t[0])return;t=t[0]}g.some(function(e){if(e._node===t)return e.remove(),!0})},remove:function(i){if((i=i instanceof HTMLElement?[i]:i).length)for(var e=0;e<i.length;e++)!function(e){var t=i[e];g.some(function(e){if(e._node===t)return e.remove(),!0})}(e)},removeAll:function(){for(;g.length;)g[0].remove()}},m||t(),e.exports?e.exports=f:a&&(d.Stickyfill=f)}),he=m(function(e,t){function i(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}var s,c,d,u,n,m,p,l,v,a,g,b;Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){var t=this;if(document.documentElement.contains(this))do{if(t.matches(e))return t}while(null!==(t=t.parentElement));return null}),"function"!=typeof window.CustomEvent&&(i.prototype=window.Event.prototype,window.CustomEvent=i),s=0?window:oe,e.exports=(c=s,d={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},u=function(e,t,i){i.settings.events&&(e=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:i}),t.dispatchEvent(e))},n=function(e){var t=0;if(e.offsetParent)for(;e;)t+=e.offsetTop,e=e.offsetParent;return 0<=t?t:0},m=function(e){e&&e.sort(function(e,t){return n(e.content)<n(t.content)?-1:1})},p=function(e,t,i){e=e.getBoundingClientRect(),t="function"==typeof(t=t).offset?parseFloat(t.offset()):parseFloat(t.offset);return i?parseInt(e.bottom,10)<(c.innerHeight||document.documentElement.clientHeight):parseInt(e.top,10)<=t},l=function(){return c.innerHeight+c.pageYOffset>=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},v=function(e,t){return!(!l()||!p(e.content,t,!0))},a=function e(t,i){i.nested&&t.parentNode&&(t=t.parentNode.closest("li"))&&(t.classList.remove(i.nestedClass),e(t,i))},g=function(e,t){var i;e&&(i=e.nav.closest("li"))&&(i.classList.remove(t.navClass),e.content.classList.remove(t.contentClass),a(i,t),u("gumshoeDeactivate",i,{link:e.nav,content:e.content,settings:t}))},b=function e(t,i){i.nested&&(t=t.parentNode.closest("li"))&&(t.classList.add(i.nestedClass),e(t,i))},function(e,t){function i(e){o&&c.cancelAnimationFrame(o),o=c.requestAnimationFrame(h.detect)}function s(e){o&&c.cancelAnimationFrame(o),o=c.requestAnimationFrame(function(){m(l),h.detect()})}var n,l,a,o,r,h={setup:function(){n=document.querySelectorAll(e),l=[],Array.prototype.forEach.call(n,function(e){var t=document.getElementById(decodeURIComponent(e.hash.substr(1)));t&&l.push({nav:e,content:t})}),m(l)}};h.detect=function(){var e,t,i,s=function(e,t){var i=e[e.length-1];if(v(i,t))return i;for(var s=e.length-1;0<=s;s--)if(p(e[s].content,t))return e[s]}(l,r);s?a&&s.content===a.content||(g(a,r),t=r,(e=s)&&(i=e.nav.closest("li"))&&(i.classList.add(t.navClass),e.content.classList.add(t.contentClass),b(i,t),u("gumshoeActivate",i,{link:e.nav,content:e.content,settings:t})),a=s):a&&(g(a,r),a=null)},h.destroy=function(){a&&g(a,r),c.removeEventListener("scroll",i,!1),r.reflow&&c.removeEventListener("resize",s,!1),r=o=a=n=l=null};return r=function(){var i={};return Array.prototype.forEach.call(arguments,function(e){for(var t in e){if(!e.hasOwnProperty(t))return;i[t]=e[t]}}),i}(d,t||{}),h.setup(),h.detect(),c.addEventListener("scroll",i,!1),r.reflow&&c.addEventListener("resize",s,!1),h})});var l=m(function(e){function s(e){var t;return(n[e]||(t=n[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,s),t.l=!0,t)).exports}var i,n;e.exports=(i=[function(e,t,i){e.exports={BROWSER_TYPES:{CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},DEVICE_TYPES:{MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0},OS_TYPES:{IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},defaultData:{isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1}}},function(e,R,t){function i(){return g.name===r.WINDOWS&&"10"===g.version&&"string"==typeof b&&-1!==b.indexOf("Edg/")}function s(){return m.name===H}function n(){return u("iPad")}var l=t(2),a=t(0),o=a.BROWSER_TYPES,r=a.OS_TYPES,a=a.DEVICE_TYPES,t=t(4),h=t.checkType,c=t.broPayload,B=t.mobilePayload,z=t.wearPayload,F=t.consolePayload,K=t.stvPayload,d=t.getNavigatorInstance,u=t.isIOS13Check,t=new l,m=t.getBrowser(),p=t.getDevice(),v=t.getEngine(),g=t.getOS(),b=t.getUA(),l=o.CHROME,t=o.CHROMIUM,f=o.IE,y=o.INTERNET_EXPLORER,L=o.OPERA,E=o.FIREFOX,C=o.SAFARI,H=o.EDGE,w=o.YANDEX,o=o.MOBILE_SAFARI,k=a.MOBILE,S=a.TABLET,A=a.SMART_TV,O=a.BROWSER,x=a.WEARABLE,a=a.CONSOLE,_=r.ANDROID,T=r.WINDOWS_PHONE,I=r.IOS,M=r.WINDOWS,P=r.MAC_OS,A=p.type===A,a=p.type===a,x=p.type===x,V=m.name===o||n(),t=m.name===t,G=function(){switch(p.type){case k:case S:return!0;default:return!1}}()||n(),W=p.type===k,U=p.type===S||n(),O=p.type===O,_=g.name===_,T=g.name===T,I=g.name===I||n(),l=m.name===l,E=m.name===E,C=m.name===C||m.name===o,o=m.name===L,L=m.name===y||m.name===f,y=g.version||"none",f=g.name||"none",j=m.major,q=m.version,X=m.name,Y=p.vendor||"none",$=p.model||"none",Q=v.name,Z=v.version,J=b,ee=s()||i(),w=m.name===w,te=p.type,N=(N=d())&&(/iPad|iPhone|iPod/.test(N.platform)||"MacIntel"===N.platform&&1<N.maxTouchPoints)&&!window.MSStream,ie=n(),se=u("iPhone"),ne=u("iPod"),d="string"==typeof(d=(d=d())&&d.userAgent.toLowerCase())&&/electron/.test(d),le=i(),ae=s(),M=g.name===M,P=g.name===P,D=h(p.type);e.exports={deviceDetect:function(){var e=D.isBrowser,t=D.isMobile,i=D.isTablet,s=D.isSmartTV,n=D.isConsole,l=D.isWearable;return e?c(e,m,v,g,b):s?K(s,v,g,b):n?F(n,v,g,b):t||i?B(D,p,g,b):l?z(l,v,g,b):void 0},isSmartTV:A,isConsole:a,isWearable:x,isMobileSafari:V,isChromium:t,isMobile:G,isMobileOnly:W,isTablet:U,isBrowser:O,isAndroid:_,isWinPhone:T,isIOS:I,isChrome:l,isFirefox:E,isSafari:C,isOpera:o,isIE:L,osVersion:y,osName:f,fullBrowserVersion:j,browserVersion:q,browserName:X,mobileVendor:Y,mobileModel:$,engineName:Q,engineVersion:Z,getUA:J,isEdge:ee,isYandex:w,deviceType:te,isIOS13:N,isIPad13:ie,isIPhone13:se,isIPod13:ne,isElectron:d,isEdgeChromium:le,isLegacyEdge:ae,isWindows:M,isMacOs:P}},function(e,t,i){var n,d,s,u,l,a,o,r,h,c,m,p,v,g,b,f,y,L,E,C,w;function k(e,t){var i,s;return"object"==typeof e&&(t=e,e=d),this instanceof k?(i=e||(n&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),s=t?y.extend(C,t):C,this.getBrowser=function(){var e={name:d,version:d};return L.rgx.call(e,i,s.browser),e.major=y.major(e.version),e},this.getCPU=function(){var e={architecture:d};return L.rgx.call(e,i,s.cpu),e},this.getDevice=function(){var e={vendor:d,model:d,type:d};return L.rgx.call(e,i,s.device),e},this.getEngine=function(){var e={name:d,version:d};return L.rgx.call(e,i,s.engine),e},this.getOS=function(){var e={name:d,version:d};return L.rgx.call(e,i,s.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(e){return i=e,this},this):new k(e,t).getResult()}n="object"==typeof window?window:this,u="function",l="undefined",a="model",r="type",h="vendor",m="architecture",p="console",v="mobile",g="tablet",b="smarttv",f="wearable",y={extend:function(e,t){var i,s={};for(i in e)t[i]&&t[i].length%2==0?s[i]=t[i].concat(e[i]):s[i]=e[i];return s},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:d},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},C={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o="name",c="version"],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],c],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],c],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[o,c],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],c],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],c],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],c],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],c],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],c],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],c],[/(qqbrowserlite)\/([\w\.]+)/i],[o,c],[/(QQ)\/([\d\.]+)/i],[o,c],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,c],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[o,c],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,c],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[c,[o,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[c,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],c],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],c],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[c,[o,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,c],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],c],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[o,"Chrome"],c],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],c],[/fxios\/([\w\.-]+)/i],[c,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[c,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[c,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],c],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[c,(L={rgx:function(e,t){for(var i,s,n,l,a,o=0;o<t.length&&!l;){for(var r=t[o],h=t[o+1],c=i=0;c<r.length&&!l;)if(l=r[c++].exec(e))for(s=0;s<h.length;s++)a=l[++i],"object"==typeof(n=h[s])&&0<n.length?2==n.length?typeof n[1]==u?this[n[0]]=n[1].call(this,a):this[n[0]]=n[1]:3==n.length?typeof n[1]!=u||n[1].exec&&n[1].test?this[n[0]]=a?a.replace(n[1],n[2]):d:this[n[0]]=a?n[1].call(this,a,n[2]):d:4==n.length&&(this[n[0]]=a?n[3].call(this,a.replace(n[1],n[2])):d):this[n]=a||d;o+=2}},str:function(e,t){for(var i in t)if("object"==typeof t[i]&&0<t[i].length){for(var s=0;s<t[i].length;s++)if(y.has(t[i][s],e))return"?"===i?d:i}else if(y.has(t[i],e))return"?"===i?d:i;return e}}).str,(E={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}}).browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[o,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],c],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,y.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[m,/ower/,"",y.lowerize]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[m,y.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[a,h,[r,g]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[h,"Apple"],[r,g]],[/(apple\s{0,1}tv)/i],[[a,"Apple TV"],[h,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[h,a,[r,g]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[a,[h,"Amazon"],[r,g]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[a,L.str,E.device.amazon.model],[h,"Amazon"],[r,v]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[a,h,[r,v]],[/\((ip[honed|\s\w*]+);/i],[a,[h,"Apple"],[r,v]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[h,a,[r,v]],[/\(bb10;\s(\w+)/i],[a,[h,"BlackBerry"],[r,v]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[a,[h,"Asus"],[r,g]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[h,"Sony"],[a,"Xperia Tablet"],[r,g]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[a,[h,"Sony"],[r,v]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[h,a,[r,p]],[/android.+;\s(shield)\sbuild/i],[a,[h,"Nvidia"],[r,p]],[/(playstation\s[34portablevi]+)/i],[a,[h,"Sony"],[r,p]],[/(sprint\s(\w+))/i],[[h,L.str,E.device.sprint.vendor],[a,L.str,E.device.sprint.model],[r,v]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[h,a,[r,g]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[h,[a,/_/g," "],[r,v]],[/(nexus\s9)/i],[a,[h,"HTC"],[r,g]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[a,[h,"Huawei"],[r,v]],[/(microsoft);\s(lumia[\s\w]+)/i],[h,a,[r,v]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[a,[h,"Microsoft"],[r,p]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[h,"Microsoft"],[r,v]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[a,[h,"Motorola"],[r,v]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[h,"Motorola"],[r,g]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[h,y.trim],[a,y.trim],[r,b]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[h,"Samsung"],[r,b]],[/\(dtv[\);].+(aquos)/i],[a,[h,"Sharp"],[r,b]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[h,"Samsung"],a,[r,g]],[/smart-tv.+(samsung)/i],[h,[r,b],a],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[h,"Samsung"],a,[r,v]],[/sie-(\w*)/i],[a,[h,"Siemens"],[r,v]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[h,"Nokia"],a,[r,v]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[a,[h,"Acer"],[r,g]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[h,"LG"],[r,g]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[h,"LG"],a,[r,g]],[/(lg) netcast\.tv/i],[h,a,[r,b]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[a,[h,"LG"],[r,v]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[a,[h,"Lenovo"],[r,g]],[/linux;.+((jolla));/i],[h,a,[r,v]],[/((pebble))app\/[\d\.]+\s/i],[h,a,[r,f]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[h,a,[r,v]],[/crkey/i],[[a,"Chromecast"],[h,"Google"]],[/android.+;\s(glass)\s\d/i],[a,[h,"Google"],[r,f]],[/android.+;\s(pixel c)\s/i],[a,[h,"Google"],[r,g]],[/android.+;\s(pixel xl|pixel)\s/i],[a,[h,"Google"],[r,v]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[h,"Xiaomi"],[r,v]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[h,"Xiaomi"],[r,g]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[h,"Meizu"],[r,g]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[a,[h,"OnePlus"],[r,v]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[a,[h,"RCA"],[r,g]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[a,[h,"Dell"],[r,g]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[h,"Verizon"],[r,g]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[h,"Barnes & Noble"],a,[r,g]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[h,"NuVision"],[r,g]],[/android.+;\s(k88)\sbuild/i],[a,[h,"ZTE"],[r,g]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[a,[h,"Swiss"],[r,v]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[a,[h,"Swiss"],[r,g]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[h,"Zeki"],[r,g]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[h,"Dragon Touch"],a,[r,g]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[a,[h,"Insignia"],[r,g]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[a,[h,"NextBook"],[r,g]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[h,"Voice"],a,[r,v]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[h,"LvTel"],a,[r,v]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[a,[h,"Envizen"],[r,g]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[h,a,[r,g]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[a,[h,"MachSpeed"],[r,g]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[h,a,[r,g]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[h,"Rotor"],[r,g]],[/android.+(KS(.+))\s+build/i],[a,[h,"Amazon"],[r,g]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[h,a,[r,g]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[r,y.lowerize],h,a],[/(android[\w\.\s\-]{0,9});.+build/i],[a,[h,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[c,[o,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,c],[/rv\:([\w\.]{1,9}).+(gecko)/i],[c,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,c],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[o,[c,L.str,E.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[c,L.str,E.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],c],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[o,c],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],c],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],c],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[o,c],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],c],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],c],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[o,c],[/(haiku)\s(\w+)/i],[o,c],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[c,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac OS"],[c,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[o,c]]},k.VERSION="0.7.18",k.BROWSER={NAME:o,MAJOR:"major",VERSION:c},k.CPU={ARCHITECTURE:m},k.DEVICE={MODEL:a,VENDOR:h,TYPE:r,CONSOLE:p,MOBILE:v,SMARTTV:b,TABLET:g,WEARABLE:f,EMBEDDED:"embedded"},k.ENGINE={NAME:o,VERSION:c},k.OS={NAME:o,VERSION:c},typeof t!=l?(t=typeof e!=l&&e.exports?e.exports=k:t).UAParser=k:i(3)?(E=function(){return k}.call(t,i,t,e))!==d&&(e.exports=E):n&&(n.UAParser=k),typeof(w=n&&(n.jQuery||n.Zepto))!=l&&(s=new k,w.ua=s.getResult(),w.ua.get=function(){return s.getUA()},w.ua.set=function(e){s.setUA(e);var t,i=s.getResult();for(t in i)w.ua[t]=i[t]})},function(t,e){!function(e){t.exports=e}.call(e,{})},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,s=arguments[t];for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},i=i(0),s=i.DEVICE_TYPES,l=i.defaultData,a=t.getNavigatorInstance=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},i=t.isIOS13Check=function(e){var t=a();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&1<t.maxTouchPoints&&!window.MSStream)};e.exports={checkType:function(e){switch(e){case s.MOBILE:return{isMobile:!0};case s.TABLET:return{isTablet:!0};case s.SMART_TV:return{isSmartTV:!0};case s.CONSOLE:return{isConsole:!0};case s.WEARABLE:return{isWearable:!0};case s.BROWSER:return{isBrowser:!0};default:return l}},broPayload:function(e,t,i,s,n){return{isBrowser:e,browserMajorVersion:t.major,browserFullVersion:t.version,browserName:t.name,engineName:i.name||!1,engineVersion:i.version,osName:s.name,osVersion:s.version,userAgent:n}},mobilePayload:function(e,t,i,s){return n({},e,{vendor:t.vendor,model:t.model,os:i.name,osVersion:i.version,ua:s})},stvPayload:function(e,t,i,s){return{isSmartTV:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:s}},consolePayload:function(e,t,i,s){return{isConsole:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:s}},wearPayload:function(e,t,i,s){return{isWearable:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:s}},getNavigatorInstance:a,isIOS13Check:i}}],n={},s.m=i,s.c=n,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=1))}),p=(s=l)&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s;var g,b=i("createSvgIcon"),f=i("createCheckbox"),y=i("createSelectIcon"),L=i("checkCheckbox"),E=i("generateRandomId"),C=i("updateSelectionsCount"),w=i("updateCurrentValue"),P=i("moveFocus");class N{static autoInit(e,t){void 0===t&&(t={});t=new N(e,t);return t.init(),e.ECLSelect=t}constructor(e,t){var t=void 0===t?{}:t,i=t.defaultText,i=void 0===i?"":i,s=t.searchText,s=void 0===s?"":s,n=t.selectAllText,n=void 0===n?"":n,l=t.noResultsText,l=void 0===l?"":l,a=t.selectMultipleSelector,a=void 0===a?"[data-ecl-select-multiple]":a,o=t.defaultTextAttribute,o=void 0===o?"data-ecl-select-default":o,r=t.searchTextAttribute,r=void 0===r?"data-ecl-select-search":r,h=t.selectAllTextAttribute,h=void 0===h?"data-ecl-select-all":h,c=t.noResultsTextAttribute,c=void 0===c?"data-ecl-select-no-results":c,d=t.closeLabelAttribute,d=void 0===d?"data-ecl-select-close":d,u=t.clearAllLabelAttribute,u=void 0===u?"data-ecl-select-clear-all":u,m=t.selectMultiplesSelectionCountSelector,m=void 0===m?"ecl-select-multiple-selections-counter":m,p=t.closeButtonLabel,p=void 0===p?"":p,t=t.clearAllButtonLabel,t=void 0===t?"":t;if(Object.defineProperty(this,P,{value:ue}),Object.defineProperty(this,w,{value:de}),Object.defineProperty(this,C,{value:ce}),this.supportedEvents=["onToggle","onSelection","onSelectAll","onReset","onSearch"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.selectMultipleSelector=a,this.selectMultiplesSelectionCountSelector=m,this.defaultTextAttribute=o,this.searchTextAttribute=r,this.selectAllTextAttribute=h,this.noResultsTextAttribute=c,this.defaultText=i,this.searchText=s,this.selectAllText=n,this.noResultsText=l,this.clearAllButtonLabel=t,this.closeButtonLabel=p,this.closeLabelAttribute=d,this.clearAllLabelAttribute=u,this.input=null,this.search=null,this.checkboxes=null,this.select=null,this.selectAll=null,this.selectIcon=null,this.textDefault=null,this.textSearch=null,this.textSelectAll=null,this.textNoResults=null,this.selectMultiple=null,this.inputContainer=null,this.optionsContainer=null,this.visibleOptions=null,this.searchContainer=null,this.countSelections=null,this.form=null,this.formGroup=null,this.label=null,this.helper=null,this.invalid=null,this.selectMultipleId=null,this.multiple=v(this.selectMultipleSelector,this.element.parentNode)||!1,this.isOpen=!1,this.handleToggle=this.handleToggle.bind(this),this.handleClickOption=this.handleClickOption.bind(this),this.handleClickSelectAll=this.handleClickSelectAll.bind(this),this.handleEsc=this.handleEsc.bind(this),this.handleFocusout=this.handleFocusout.bind(this),this.handleSearch=this.handleSearch.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.resetForm=this.resetForm.bind(this),this.handleClickOnClearAll=this.handleClickOnClearAll.bind(this),this.handleKeyboardOnSelect=this.handleKeyboardOnSelect.bind(this),this.handleKeyboardOnSelectAll=this.handleKeyboardOnSelectAll.bind(this),this.handleKeyboardOnSearch=this.handleKeyboardOnSearch.bind(this),this.handleKeyboardOnOptions=this.handleKeyboardOnOptions.bind(this),this.handleKeyboardOnOption=this.handleKeyboardOnOption.bind(this),this.handleKeyboardOnClearAll=this.handleKeyboardOnClearAll.bind(this),this.handleKeyboardOnClose=this.handleKeyboardOnClose.bind(this),this.setCurrentValue=this.setCurrentValue.bind(this),this.update=this.update.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");var e,t;ECL.components=ECL.components||new Map,this.select=this.element,this.multiple?(e=Array.from(this.select.parentElement.classList),this.textDefault=this.defaultText||this.element.getAttribute(this.defaultTextAttribute),this.textSearch=this.searchText||this.element.getAttribute(this.searchTextAttribute),this.textSelectAll=this.selectAllText||this.element.getAttribute(this.selectAllTextAttribute),this.textNoResults=this.noResultsText||this.element.getAttribute(this.noResultsTextAttribute),this.closeButtonLabel=this.closeButtonLabel||this.element.getAttribute(this.closeLabelAttribute),this.clearAllButtonLabel=this.clearAllButtonLabel||this.element.getAttribute(this.clearAllLabelAttribute),this.selectMultipleId=this.element.id||"select-multiple-"+d(N,E)[E](4),this.element.id=this.selectMultipleId,this.formGroup=this.element.closest(".ecl-form-group"),this.formGroup&&(this.formGroup.setAttribute("role","application"),this.label=v(".ecl-form-label",this.formGroup),this.helper=v(".ecl-help-block",this.formGroup),this.invalid=v(".ecl-feedback-message",this.formGroup)),this.select.setAttribute("tabindex","-1"),this.selectMultiple=document.createElement("div"),this.selectMultiple.classList.add("ecl-select__multiple"),this.selectMultiple.addEventListener("focusout",this.handleFocusout),this.inputContainer=document.createElement("div"),this.inputContainer.classList.add(...e),this.selectMultiple.appendChild(this.inputContainer),this.input=document.createElement("button"),this.input.classList.add("ecl-select","ecl-select__multiple-toggle"),this.input.setAttribute("type","button"),this.input.setAttribute("aria-controls",this.selectMultipleId+"-dropdown"),this.input.setAttribute("id",this.selectMultipleId+"-toggle"),this.input.setAttribute("aria-expanded",!1),e.find(e=>e.includes("disabled"))&&this.input.setAttribute("disabled",!0),this.label&&(this.label.setAttribute("for",this.selectMultipleId+"-toggle"),this.input.setAttribute("aria-labelledby",this.label.id)),t="",this.helper&&(t=this.helper.id),(t=this.invalid?t?t+" "+this.invalid.id:this.invalid.id:t)&&this.input.setAttribute("aria-describedby",t),this.input.addEventListener("keydown",this.handleKeyboardOnSelect),this.input.addEventListener("click",this.handleToggle),this.selectionCount=document.createElement("div"),this.selectionCount.classList.add(this.selectMultiplesSelectionCountSelector),this.selectionCountText=document.createElement("span"),this.selectionCount.appendChild(this.selectionCountText),this.inputContainer.appendChild(this.selectionCount),this.inputContainer.appendChild(this.input),this.inputContainer.appendChild(d(N,y)[y]()),this.searchContainer=document.createElement("div"),this.searchContainer.style.display="none",this.searchContainer.classList.add("ecl-select__multiple-dropdown",...e),this.searchContainer.setAttribute("id",this.selectMultipleId+"-dropdown"),this.selectMultiple.appendChild(this.searchContainer),this.search=document.createElement("input"),this.search.classList.add("ecl-text-input"),this.search.setAttribute("type","search"),this.search.setAttribute("placeholder",this.textSearch||""),this.search.addEventListener("keyup",this.handleSearch),this.search.addEventListener("search",this.handleSearch),this.searchContainer.appendChild(this.search),this.textSelectAll&&(t=Array.from(this.select.options).filter(e=>!e.disabled).length,this.selectAll=d(N,f)[f]({id:"all-"+d(N,E)[E](4),text:this.textSelectAll+" ("+t+")",extraClass:"ecl-select__multiple-all"},this.selectMultipleId),this.selectAll.addEventListener("click",this.handleClickSelectAll),this.selectAll.addEventListener("keypress",this.handleClickSelectAll),this.selectAll.addEventListener("change",this.handleClickSelectAll),this.searchContainer.appendChild(this.selectAll)),this.search.addEventListener("keydown",this.handleKeyboardOnSearch),this.optionsContainer=document.createElement("div"),this.optionsContainer.classList.add("ecl-select__multiple-options"),this.searchContainer.appendChild(this.optionsContainer),(this.clearAllButtonLabel||this.closeButtonLabel)&&(this.dropDownToolbar=document.createElement("div"),this.dropDownToolbar.classList.add("ecl-select-multiple-toolbar"),this.closeButtonLabel&&(this.closeButton=document.createElement("button"),this.closeButton.textContent=this.closeButtonLabel,this.closeButton.classList.add("ecl-button","ecl-button--primary"),this.closeButton.addEventListener("click",this.handleEsc),this.closeButton.addEventListener("keydown",this.handleKeyboardOnClose),this.dropDownToolbar)&&(this.dropDownToolbar.appendChild(this.closeButton),this.searchContainer.appendChild(this.dropDownToolbar),this.dropDownToolbar.style.display="none"),this.clearAllButtonLabel)&&(this.clearAllButton=document.createElement("button"),this.clearAllButton.textContent=this.clearAllButtonLabel,this.clearAllButton.classList.add("ecl-button","ecl-button--secondary"),this.clearAllButton.addEventListener("click",this.handleClickOnClearAll),this.clearAllButton.addEventListener("keydown",this.handleKeyboardOnClearAll),this.dropDownToolbar.appendChild(this.clearAllButton)),this.selectAll.addEventListener("keydown",this.handleKeyboardOnSelectAll),this.optionsContainer.addEventListener("keydown",this.handleKeyboardOnOptions),this.select.options&&0<this.select.options.length?this.checkboxes=Array.from(this.select.options).map(e=>{var t,i="",s="";return"OPTGROUP"===e.parentNode.tagName&&(v('fieldset[data-ecl-multiple-group="'+e.parentNode.getAttribute("label")+'"]',this.optionsContainer)?i=v('fieldset[data-ecl-multiple-group="'+e.parentNode.getAttribute("label")+'"]',this.optionsContainer):(i=document.createElement("fieldset"),(t=document.createElement("legend")).classList.add("ecl-select__multiple-group__title"),t.innerHTML=e.parentNode.getAttribute("label"),i.appendChild(t),i.setAttribute("data-ecl-multiple-group",e.parentNode.getAttribute("label")),i.classList.add("ecl-select__multiple-group"),this.optionsContainer.appendChild(i))),e.selected&&(d(this,C)[C](1),this.dropDownToolbar)&&(this.dropDownToolbar.style.display="flex"),(s=d(N,f)[f]({id:e.value,text:e.text,disabled:e.disabled,selected:e.selected},this.selectMultipleId)).setAttribute("data-visible",!0),s.classList.contains("ecl-checkbox--disabled")||(s.addEventListener("click",this.handleClickOption),s.addEventListener("keydown",this.handleKeyboardOnOption)),(i||this.optionsContainer).appendChild(s),s}):this.checkboxes=[],this.visibleOptions=this.checkboxes,this.select.parentNode.parentNode.insertBefore(this.selectMultiple,this.select.parentNode.nextSibling),this.select.parentNode.classList.add("ecl-select__container--hidden"),d(this,w)[w](),this.form=this.element.closest("form"),this.form&&this.form.addEventListener("reset",this.resetForm)):(this.shouldHandleClick=!0,this.select.addEventListener("keydown",this.handleKeyboardOnSelect),this.select.addEventListener("blur",this.handleEsc),this.select.addEventListener("click",this.handleToggle,!0),this.select.addEventListener("mousedown",this.handleToggle,!0)),document.addEventListener("click",this.handleClickOutside),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}update(e){d(this,w)[w](),d(this,C)[C](e)}setCurrentValue(e,t){if("replace"!==(t=void 0===t?"replace":t)&&"add"!==t)throw new Error('Invalid operation mode. Use "replace" or "add".');var i="string"==typeof e?[e]:e;Array.from(this.select.options).forEach(e=>{"replace"===t&&(e.selected=!1),(i.includes(e.value)||i.includes(e.label))&&(e.selected=!0)}),this.update()}handleToggle(e){this.multiple?(e.preventDefault(),this.input.classList.toggle("ecl-select--active"),"none"===this.searchContainer.style.display?(this.searchContainer.style.display="block",this.input.setAttribute("aria-expanded",!0),this.isOpen=!0):(this.searchContainer.style.display="none",this.input.setAttribute("aria-expanded",!1),this.isOpen=!1)):"click"!==e.type||this.shouldHandleClick?("mousedown"===e.type&&this.shouldHandleClick||"keydown"===e.type)&&(this.shouldHandleClick=!1,this.select.classList.toggle("ecl-select--active")):(this.shouldHandleClick=!0,this.select.classList.toggle("ecl-select--active"));e={opened:this.isOpen,e:e};this.trigger("onToggle",e)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.multiple?(this.selectMultiple.removeEventListener("focusout",this.handleFocusout),this.input.removeEventListener("keydown",this.handleKeyboardOnSelect),this.input.removeEventListener("click",this.handleToggle),this.search.removeEventListener("keyup",this.handleSearch),this.search.removeEventListener("keydown",this.handleKeyboardOnSearch),this.selectAll.removeEventListener("click",this.handleClickSelectAll),this.selectAll.removeEventListener("keypress",this.handleClickSelectAll),this.selectAll.removeEventListener("keydown",this.handleKeyboardOnSelectAll),this.optionsContainer.removeEventListener("keydown",this.handleKeyboardOnOptions),this.checkboxes.forEach(e=>{e.removeEventListener("click",this.handleClickSelectAll),e.removeEventListener("click",this.handleClickOption),e.removeEventListener("keydown",this.handleKeyboardOnOption)}),document.removeEventListener("click",this.handleClickOutside),this.closeButton&&(this.closeButton.removeEventListener("click",this.handleEsc),this.closeButton.removeEventListener("keydown",this.handleKeyboardOnClose)),this.clearAllButton&&(this.clearAllButton.removeEventListener("click",this.handleClickOnClearAll),this.clearAllButton.removeEventListener("keydown",this.handleKeyboardOnClearAll)),this.selectMultiple&&this.selectMultiple.remove(),this.select.parentNode.classList.remove("ecl-select__container--hidden")):this.select.removeEventListener("focus",this.handleToggle),this.select.removeEventListener("blur",this.handleToggle),document.removeEventListener("click",this.handleClickOutside),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOption(e){e.preventDefault(),d(N,L)[L](e);var t=e.target.closest(".ecl-checkbox");Array.from(this.select.options).forEach(e=>{e.text===t.getAttribute("data-select-multiple-value")&&(e.getAttribute("selected")||e.selected?(e.selected=!1,this.selectAll.querySelector("input").checked=!1):e.selected=!0)}),this.update()}handleClickSelectAll(e){var i,s;e.preventDefault(),this.selectAll.querySelector("input").disabled||(i=d(N,L)[L](e),s=Array.from(this.select.options).filter(e=>!e.disabled),Array.from(this.searchContainer.querySelectorAll('[data-visible="true"]')).filter(e=>!e.querySelector("input").disabled).forEach(t=>{t.querySelector("input").checked=i;var e=s.find(e=>e.text===t.getAttribute("data-select-multiple-value"));e&&(e.selected=!!i)}),this.update(),this.trigger("onSelectAll",{selected:s}))}handleFocusout(e){e.relatedTarget&&this.selectMultiple&&!this.selectMultiple.contains(e.relatedTarget)&&"block"===this.searchContainer.style.display?(this.searchContainer.style.display="none",this.input.classList.remove("ecl-select--active"),this.input.setAttribute("aria-expanded",!1)):!e.relatedTarget||this.selectMultiple||this.select.parentNode.contains(e.relatedTarget)||this.select.blur()}handleSearch(e){for(var t,i=this.optionsContainer.offsetHeight,s=(this.visibleOptions=[],e.target.value.toLowerCase()),n={},i=(0<i&&(this.optionsContainer.style.height=i+"px"),this.checkboxes.forEach(e=>{var t;e.getAttribute("data-select-multiple-value").toLocaleLowerCase().includes(s)?(e.setAttribute("data-visible",!0),e.style.display="flex",(t=e.querySelector(".ecl-checkbox__label-text")).textContent=t.textContent.replace(".cls-1{fill:none}",""),s&&(t.innerHTML=t.textContent.replace(new RegExp(s+"(?!([^<]+)?<)","gi"),"<b>$&</b>")),this.visibleOptions.push(e)):(e.removeAttribute("data-visible"),e.style.display="none")}),this.visibleOptions.filter(e=>e.querySelector("input").checked)),i=(0===this.visibleOptions.length||this.visibleOptions.length!==i.length?this.selectAll.querySelector("input").checked=!1:this.selectAll.querySelector("input").checked=!0,this.searchContainer.querySelector(".ecl-select__multiple-no-results")),l=R(this.optionsContainer.getElementsByClassName("ecl-select__multiple-group"));!(a=l()).done;){var a=a.value;a.style.display="none",[...a.children].filter(e=>e.classList.contains("ecl-checkbox")).forEach(e=>{e.hasAttribute("data-visible")&&(e.closest(".ecl-select__multiple-group").style.display="block")})}0!==this.visibleOptions.length||i?0<this.visibleOptions.length&&null!==i&&i.parentNode.removeChild(i):(i=document.createElement("div"),t=document.createElement("span"),i.classList.add("ecl-select__multiple-no-results"),t.innerHTML=this.textNoResults,i.appendChild(t),this.optionsContainer.appendChild(i)),0===s.length?(this.checkboxes.forEach(e=>{e.setAttribute("data-visible",!0),e.style.display="flex"}),this.selectAll.classList.remove("ecl-checkbox--disabled"),this.selectAll.querySelector("input").disabled=!1):(this.selectAll.classList.add("ecl-checkbox--disabled"),this.selectAll.querySelector("input").disabled=!0),n=0<this.visibleOptions.length?{results:this.visibleOptions.map(e=>{var t=null,e=v(".ecl-checkbox__label-text",e);return(t=e?e.innerHTML.replace(/<\/?b>/g,""):t)||""}),text:e.target.value.toLowerCase()}:{results:"none",text:e.target.value.toLowerCase()},this.trigger("onSearch",n)}handleClickOutside(e){e.target&&this.selectMultiple&&!this.selectMultiple.contains(e.target)&&"block"===this.searchContainer.style.display?(this.searchContainer.style.display="none",this.input.classList.remove("ecl-select--active"),this.input.setAttribute("aria-expanded",!1)):!e.target||this.selectMultiple||this.select.parentNode.contains(e.target)||this.select.classList.remove("ecl-select--active")}handleKeyboardOnSelect(e){switch(e.key){case"Escape":e.preventDefault(),this.handleEsc(e);break;case" ":case"Enter":this.handleToggle(e),this.multiple&&(e.preventDefault(),this.search.focus());break;case"ArrowDown":this.multiple&&(e.preventDefault(),this.handleToggle(e))}}handleKeyboardOnSelectAll(e){switch(e.key){case"Escape":e.preventDefault(),this.handleEsc(e);break;case"ArrowDown":e.preventDefault(),(0<this.visibleOptions.length?this.visibleOptions[0].querySelector("input"):this.input).focus();break;case"ArrowUp":e.preventDefault(),this.search.focus();break;case"Tab":e.preventDefault(),(e.shiftKey?this.search:0<this.visibleOptions.length?this.visibleOptions[0].querySelector("input"):this.input).focus()}}handleKeyboardOnOptions(e){switch(e.key){case"Escape":e.preventDefault(),this.handleEsc(e);break;case"ArrowDown":e.preventDefault(),d(this,P)[P]("down");break;case"ArrowUp":e.preventDefault(),d(this,P)[P]("up");break;case"Tab":e.preventDefault(),e.shiftKey?d(this,P)[P]("up"):d(this,P)[P]("down")}}handleKeyboardOnSearch(e){switch(e.key){case"Escape":e.preventDefault(),this.handleEsc(e);break;case"ArrowDown":e.preventDefault(),(this.selectAll.querySelector("input").disabled?0<this.visibleOptions.length?this.visibleOptions[0].querySelector("input"):this.input:this.selectAll.querySelector("input")).focus();break;case"ArrowUp":e.preventDefault(),this.input.focus(),this.handleToggle(e)}}handleKeyboardOnOption(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleClickOption(e))}handleKeyboardOnClearAll(e){switch(e.preventDefault(),e.key){case"Enter":case" ":this.handleClickOnClearAll(e),this.trigger("onReset",e),this.input.focus();break;case"ArrowDown":this.input.focus();break;case"ArrowUp":(this.closeButton||(0<this.visibleOptions.length?this.visibleOptions[this.visibleOptions.length-1].querySelector("input"):this.search)).focus();break;case"Tab":e.shiftKey?(this.closeButton||(0<this.visibleOptions.length?this.visibleOptions[this.visibleOptions.length-1].querySelector("input"):this.search)).focus():(this.input.focus(),this.handleToggle(e))}}handleKeyboardOnClose(e){switch(e.preventDefault(),e.key){case"Enter":case" ":this.handleEsc(e),this.input.focus();break;case"ArrowUp":0<this.visibleOptions.length?this.visibleOptions[this.visibleOptions.length-1].querySelector("input").focus():(this.input.focus(),this.handleToggle(e));break;case"ArrowDown":this.clearAllButton?this.clearAllButton.focus():(this.input.focus(),this.handleToggle(e));break;case"Tab":e.shiftKey?0<this.visibleOptions.length?this.visibleOptions[this.visibleOptions.length-1].querySelector("input").focus():(this.input.focus(),this.handleToggle(e)):this.clearAllButton?this.clearAllButton.focus():(this.input.focus(),this.handleToggle(e))}}handleEsc(e){(this.multiple?(e.preventDefault(),this.searchContainer.style.display="none",this.input.setAttribute("aria-expanded",!1),this.input.blur(),this.input):this.select).classList.remove("ecl-select--active")}handleClickOnClearAll(e){e.preventDefault(),Array.from(this.select.options).forEach(e=>{this.selectMultiple.querySelector('[data-select-multiple-value="'+e.text+'"]').querySelector(".ecl-checkbox__input").checked=!1,e.selected=!1}),this.selectAll.querySelector(".ecl-checkbox__input").checked=!1,this.update(0),this.trigger("onReset",e)}resetForm(){this.multiple&&setTimeout(()=>{Array.from(this.select.options).forEach(e=>{this.selectMultiple.querySelector('[data-select-multiple-value="'+e.text+'"]').querySelector(".ecl-checkbox__input").checked?e.selected=!0:e.selected=!1}),this.update(0)},10)}}function ce(e){var t=0;0<e?this.selectionCount.querySelector("span").innerHTML+=e:t=Array.from(this.select.options).filter(e=>e.selected).length,0<t?(this.selectionCount.querySelector("span").innerHTML=t,this.selectionCount.classList.add("ecl-select-multiple-selections-counter--visible"),this.dropDownToolbar&&(this.dropDownToolbar.style.display="flex")):(this.selectionCount.classList.remove("ecl-select-multiple-selections-counter--visible"),this.dropDownToolbar&&(this.dropDownToolbar.style.display="none")),100<=t&&this.selectionCount.classList.add("ecl-select-multiple-selections-counter--xxl")}function de(){var e=Array.from(this.select.options).filter(e=>e.selected).map(e=>e.text).join(", ");this.input.innerHTML=e||this.textDefault||"",""!==e&&this.label?this.label.setAttribute("aria-label",this.label.innerText+" "+e):""===e&&this.label&&this.label.removeAttribute("aria-label"),this.trigger("onSelection",{selected:e}),this.select.dispatchEvent(new window.Event("change",{bubbles:!0}))}function ue(e){var t=document.activeElement,i=t.parentElement.parentElement.classList.contains("ecl-select__multiple-group")?Array.from(t.parentElement.parentElement.parentElement.querySelectorAll(".ecl-checkbox__input")):Array.from(t.parentElement.parentElement.querySelectorAll(".ecl-checkbox__input")),t=i.indexOf(t);("down"===e?0<(e=i.splice(t+1,i.length).filter(e=>!e.disabled&&"none"!==e.parentElement.style.display)).length?e[0]:this.dropDownToolbar&&"flex"===this.dropDownToolbar.style.display?this.dropDownToolbar.firstChild:this.input:0<(e=i.splice(0,t).filter(e=>!e.disabled&&"none"!==e.parentElement.style.display)).length?e[e.length-1]:(this.optionsContainer.scrollTop=0,this.selectAll.querySelector("input").disabled?this.search:this.selectAll.querySelector("input"))).focus()}g=N,Object.defineProperty(N,E,{value:function(e){return Math.random().toString(36).substr(2,e)}}),Object.defineProperty(N,L,{value:function(e){return(e=e.target.closest(".ecl-checkbox").querySelector("input")).checked=!e.checked,e.checked}}),Object.defineProperty(N,y,{value:function(){var e=document.createElement("div"),t=(e.classList.add("ecl-select__icon"),document.createElement("button")),i=(t.classList.add("ecl-button","ecl-button--ghost","ecl-button--icon-only"),t.setAttribute("tabindex","-1"),document.createElement("span"));i.classList.add("ecl-button__container");(s=document.createElement("span")).classList.add("ecl-button__label"),s.textContent="Toggle dropdown",i.appendChild(s);var s=d(g,b)[b]('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fill-rule="evenodd" d="m45 33.12-2.73 2.82-18.24-18.36L5.73 36 3 33.18 24.03 12z"/></svg>',"ecl-icon ecl-icon--xs ecl-icon--rotate-180");return i.appendChild(s),t.appendChild(i),e.appendChild(t),e}}),Object.defineProperty(N,f,{value:function(e,t){var i,s,n,l,a,o,r,h,c;return e&&t&&(i=e.id,s=e.text,n=e.disabled,l=e.selected,e=e.extraClass,i)&&s?(a=document.createElement("div"),o=document.createElement("input"),r=document.createElement("label"),h=document.createElement("span"),c=document.createElement("span"),e&&a.classList.add(e),l&&o.setAttribute("checked",!0),n&&(a.classList.add("ecl-checkbox--disabled"),h.classList.add("ecl-checkbox__box--disabled"),o.setAttribute("disabled",n)),a.classList.add("ecl-checkbox"),a.setAttribute("data-select-multiple-value",s),o.classList.add("ecl-checkbox__input"),o.setAttribute("type","checkbox"),o.setAttribute("id",t+"-"+i),o.setAttribute("name",t+"-"+i),a.appendChild(o),r.classList.add("ecl-checkbox__label"),r.setAttribute("for",t+"-"+i),h.classList.add("ecl-checkbox__box"),h.setAttribute("aria-hidden",!0),h.appendChild(d(g,b)[b]('<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 48 48"><path fill-rule="evenodd" d="M19.47 36.87 5.95 23.36l2.12-2.12 11.4 11.39 20.46-20.44 2.12 2.13z" clip-rule="evenodd"/></svg>',"ecl-icon ecl-icon--s ecl-checkbox__icon")),r.appendChild(h),c.classList.add("ecl-checkbox__label-text"),c.innerHTML=s,r.appendChild(c),a.appendChild(r),a):""}}),Object.defineProperty(N,b,{value:function(e,t){var i=document.createElement("div");return i.innerHTML=e,(e=i.children[0]).removeAttribute("height"),e.removeAttribute("width"),e.setAttribute("focusable",!1),e.setAttribute("aria-hidden",!0),e.setAttribute("class",t),e}});class D{static autoInit(e,t){t=(void 0===t?{}:t).TABLE,t=void 0===t?{}:t,t=new D(e,t);return t.init(),e.ECLTable=t}constructor(e,t){var t=void 0===t?{}:t,i=t.sortSelector,i=void 0===i?"[data-ecl-table-sort-toggle]":i,t=t.sortLabelSelector,t=void 0===t?"data-ecl-table-sort-label":t;if(this.handleClickOnSort=l=>e=>{e.preventDefault();for(var e=l.closest("table"),i=v("tbody",e),t=l.getAttribute("aria-sort"),s=0,n=l.previousElementSibling;n;)s+=n.getAttribute("colspan")?Number(n.getAttribute("colspan")):1,n=n.previousElementSibling;e=(s,n)=>(e,t)=>{return i=(n?e:t).children[s].textContent,t=(n?t:e).children[s].textContent,""===i||""===t||Number.isNaN(+i)||Number.isNaN(+t)?i.toString().localeCompare(t):i-t;var i},t="descending"===t?([...a("tr",i)].forEach((e,t)=>{t=v("[data-ecl-table-order='"+t+"']");i.appendChild(t)}),null):([...a("tr",i)].sort(e(s,"ascending"!==t)).forEach(e=>i.appendChild(e)),"ascending"===t?"descending":"ascending");this.sortHeadings.forEach(e=>{t&&e===l?e.setAttribute("aria-sort",t):e.removeAttribute("aria-sort")})},!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.sortSelector=i,this.sortLabelSelector=t,this.sortHeadings=null,this.handleClickOnSort=this.handleClickOnSort.bind(this)}static createSortIcon(e){var t=document.createElement("span"),t=(t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="m12 30 12-15 12 15z"/></svg>',t.children[0]);return t.removeAttribute("height"),t.removeAttribute("width"),t.setAttribute("focusable",!1),t.setAttribute("aria-hidden",!0),t.setAttribute("class","ecl-table__icon ecl-icon ecl-icon--xs "+e),t}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.sortHeadings=a(this.sortSelector,this.element),this.sortHeadings&&this.sortHeadings.forEach(t=>{var e=document.createElement("button");e.classList.add("ecl-table__arrow"),this.element.hasAttribute(this.sortLabelSelector)&&e.setAttribute("aria-label",this.element.getAttribute(this.sortLabelSelector)),e.appendChild(D.createSortIcon("ecl-table__icon-up")),e.appendChild(D.createSortIcon("ecl-table__icon-down")),t.appendChild(e),t.addEventListener("click",e=>this.handleClickOnSort(t)(e))});var e=v("tbody",this.element);[...a("tr",e)].forEach((e,t)=>{e.setAttribute("data-ecl-table-order",t)}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.sortHeadings&&this.sortHeadings.forEach(t=>{t.removeEventListener("click",e=>this.handleClickOnSort(t)(e))}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}}return e.Accordion=class me{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).ACCORDION)?{}:t,(t=new me(e,t)).init(),e.ECLAccordion=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).toggleSelector)?"[data-ecl-accordion-toggle]":i,s=void 0===(s=t.iconSelector)?"[data-ecl-accordion-icon]":s,t=void 0===(t=t.attachClickListener)||t;if(this.supportedEvents=["onToggle"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.toggleSelector=i,this.iconSelector=s,this.attachClickListener=t,this.toggles=null,this.forceClose=!1,this.target=null,this.handleClickOutside=this.handleClickOutside.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,document.addEventListener("click",this.handleClickOutside),this.toggles=a(this.toggleSelector,this.element),this.attachClickListener&&this.toggles&&this.toggles.forEach(t=>{t.addEventListener("click",e=>this.handleClickOnToggle(e,t))}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){document.removeEventListener("click",this.handleClickOutside),this.attachClickListener&&this.toggles&&this.toggles.forEach(e=>{e.replaceWith(e.cloneNode(!0))}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOutside(e){e.target&&this.toggles&&!this.element.contains(e.target)&&this.toggles.forEach(e=>e.classList.remove("ecl-accordion__toggle--active"))}handleClickOnToggle(e,t){var i=!1,s=v("#"+t.getAttribute("aria-controls"),this.element);if(!s)throw new TypeError("Target has to be provided for accordion (aria-controls)");var n,l=!0===this.forceClose||"true"===t.getAttribute("aria-expanded");t.setAttribute("aria-expanded",l?"false":"true"),l?s.hidden=!0:i=!(s.hidden=!1),this.trigger("onToggle",{item:s,isOpening:i}),(s=v(this.iconSelector,t))&&(i=v("use",s))&&(s=i.getAttribute("xlink:href"),n="",n=l?s.replace("minus","plus"):s.replace("plus","minus"),i.setAttribute("xlink:href",n)),this.toggles.forEach(e=>e.classList.remove("ecl-accordion__toggle--active")),0<e.detail&&t.classList.add("ecl-accordion__toggle--active")}},e.Banner=class pe{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).BANNER)?{}:t,(t=new pe(e,t)).init(),e.ECLBanner=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).bannerContainer)?"[data-ecl-banner-container]":i,s=void 0===(s=t.bannerVPadding)?"8":s,n=void 0===(n=t.bannerPicture)?"[data-ecl-banner-image]":n,l=void 0===(l=t.breakpoint)?"996":l,a=void 0===(a=t.attachResizeListener)||a,t=void 0===(t=t.maxIterations)?10:t;if(this.supportedEvents=["onCtaClick"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.bannerVPadding=s,this.resizeTimer=null,this.bannerContainer=v(i,this.element),this.bannerPicture=v(n,this.element),this.bannerImage=!!this.bannerPicture&&v("img",this.bannerPicture),this.bannerCTA=!!this.bannerPicture&&v(".ecl-banner__cta",this.element),this.breakpoint=l,this.attachResizeListener=a,this.maxIterations=t,this.setBannerHeight=this.setBannerHeight.bind(this),this.checkViewport=this.checkViewport.bind(this),this.resetBannerHeight=this.resetBannerHeight.bind(this),this.handleResize=this.handleResize.bind(this),this.waitForAspectRatioToBeDefined=this.waitForAspectRatioToBeDefined.bind(this),this.setHeight=this.setHeight.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.defaultRatio=()=>this.element.classList.contains("ecl-banner--xs")?"6/1":this.element.classList.contains("ecl-banner--s")?"5/1":this.element.classList.contains("ecl-banner--l")?"3/1":"4/1",this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.bannerCTA&&this.bannerCTA.addEventListener("click",e=>this.handleCtaClick(e)),this.checkViewport(),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}waitForAspectRatioToBeDefined(){this.attemptCounter=(this.attemptCounter||0)+1;var e=getComputedStyle(this.bannerImage).getPropertyValue("--css-aspect-ratio");(void 0===e||""===e)&&this.maxIterations>this.attemptCounter?setTimeout(()=>this.waitForAspectRatioToBeDefined(),100):this.setHeight(e)}setHeight(e){var t=this.bannerContainer.offsetHeight+2*parseInt(this.bannerVPadding,10),i=parseInt(getComputedStyle(this.element).getPropertyValue("width"),10),s=(e=e.split("/").map(Number))[0];i*e[1]/s<t?(this.bannerImage&&(this.bannerImage.style.aspectRatio="auto"),this.element.style.height=t+"px"):this.resetBannerHeight()}setBannerHeight(){this.bannerImage?this.waitForAspectRatioToBeDefined():this.setHeight(this.defaultRatio())}resetBannerHeight(){var e;this.bannerImage&&(e=getComputedStyle(this.bannerImage),this.bannerImage.style.aspectRatio=e.getPropertyValue("--css-aspect-ratio")),this.element.style.height="auto"}checkViewport(){window.innerWidth>this.breakpoint?this.setBannerHeight():this.resetBannerHeight()}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.checkViewport()},200)}handleCtaClick(e){var t=null,i=((i=e.target.closest("a"))&&(t=i.getAttribute("href")),{item:this.bannerCTA,target:t||e.target});this.trigger("onCtaClick",i)}destroy(){this.resetBannerHeight(),this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.bannerCTA&&this.bannerCTA.removeEventListener("click",this.handleCtaClick)}},e.Breadcrumb=class ve{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).BREADCRUMB)?{}:t,(t=new ve(e,t)).init(),e.ECLBreadcrumb=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).ellipsisButtonSelector)?"[data-ecl-breadcrumb-ellipsis-button]":i,s=void 0===(s=t.ellipsisSelector)?"[data-ecl-breadcrumb-ellipsis]":s,n=void 0===(n=t.segmentSelector)?"[data-ecl-breadcrumb-item]":n,l=void 0===(l=t.expandableItemsSelector)?'[data-ecl-breadcrumb-item="expandable"]':l,a=void 0===(a=t.staticItemsSelector)?'[data-ecl-breadcrumb-item="static"]':a,o=void 0===(o=t.onPartialExpand)?null:o,r=void 0===(r=t.onFullExpand)?null:r,h=void 0===(h=t.attachClickListener)||h,t=void 0===(t=t.attachResizeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=i,this.ellipsisSelector=s,this.segmentSelector=n,this.expandableItemsSelector=l,this.staticItemsSelector=a,this.onPartialExpand=o,this.onFullExpand=r,this.attachClickListener=h,this.attachResizeListener=t,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.resizeTimer=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this),this.handleResize=this.handleResize.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.ellipsisButton=v(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=a(this.segmentSelector,this.element),this.staticElements=a(this.staticItemsSelector,this.element),this.expandableElements=a(this.expandableItemsSelector,this.element),this.check(),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnEllipsis(){return this.handleFullExpand()}check(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))}hideEllipsis(){var e=v(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true")}showAllItems(){this.expandableElements.forEach(e=>e.setAttribute("aria-hidden","false"))}handlePartialExpand(e){var i;e&&(this.element.classList.add("ecl-breadcrumb--collapsed"),i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):767<Math.floor(this.element.getBoundingClientRect().width)?((e=v(this.ellipsisSelector,this.element))&&e.setAttribute("aria-hidden","false"),this.expandableElements.forEach((e,t)=>{e.setAttribute("aria-hidden",i[t]?"false":"true")})):this.expandableElements.forEach(e=>{e.setAttribute("aria-hidden","true")}))}handleFullExpand(){this.element.classList.remove("ecl-breadcrumb--collapsed"),this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.check()},200)}computeVisibilityMap(){var t,i,s,n;return!this.expandableElements||0===this.expandableElements.length||(t=Math.floor(this.element.getBoundingClientRect().width),1.2*this.itemsElements.map(e=>{var t=e.getBoundingClientRect().width;return 0===t&&(e.style.display="inline-flex",t=e.getBoundingClientRect().width,e.style.cssText=""),t}).reduce((e,t)=>e+t)<=t)?{expanded:!0}:(i=v(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce((e,t)=>e+t.getBoundingClientRect().width,0),t<=i?{expanded:!1,isItemVisible:[...this.expandableElements.map(()=>!1)]}:{expanded:!(n=!(s=0)),isItemVisible:[...this.expandableElements].reverse().map(e=>!!n&&((e=(s+=e.getBoundingClientRect().width)+i<=t)||(n=!1),e)).reverse()})}},e.Carousel=class ge{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).CAROUSEL)?{}:t,(t=new ge(e,t)).init(),e.ECLCarousel=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).playSelector)?".ecl-carousel__play":i,s=void 0===(s=t.pauseSelector)?".ecl-carousel__pause":s,n=void 0===(n=t.containerClass)?".ecl-carousel__container":n,l=void 0===(l=t.slidesClass)?".ecl-carousel__slides":l,a=void 0===(a=t.slideClass)?".ecl-carousel__slide":a,o=void 0===(o=t.currentSlideClass)?".ecl-carousel__current":o,r=void 0===(r=t.navigationItemsClass)?".ecl-carousel__navigation-item":r,h=void 0===(h=t.controlsClass)?".ecl-carousel__controls":h,c=void 0===(c=t.attachClickListener)||c,t=void 0===(t=t.attachResizeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.playSelector=i,this.pauseSelector=s,this.containerClass=n,this.slidesClass=l,this.slideClass=a,this.currentSlideClass=o,this.navigationItemsClass=r,this.controlsClass=h,this.attachClickListener=c,this.attachResizeListener=t,this.container=null,this.slides=null,this.btnPlay=null,this.btnPause=null,this.index=1,this.total=0,this.allowShift=!0,this.activeNav=null,this.autoPlay=null,this.autoPlayInterval=null,this.hoverAutoPlay=null,this.resizeTimer=null,this.posX1=0,this.posX2=0,this.posInitial=0,this.posFinal=0,this.threshold=80,this.navigationItems=null,this.navigation=null,this.controls=null,this.direction="ltr",this.cloneFirstSLide=null,this.cloneLastSLide=null,this.executionCount=0,this.maxExecutions=5,this.handleAutoPlay=this.handleAutoPlay.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.shiftSlide=this.shiftSlide.bind(this),this.checkIndex=this.checkIndex.bind(this),this.moveSlides=this.moveSlides.bind(this),this.handleResize=this.handleResize.bind(this),this.dragStart=this.dragStart.bind(this),this.dragEnd=this.dragEnd.bind(this),this.dragAction=this.dragAction.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyboardOnPlay=this.handleKeyboardOnPlay.bind(this),this.handleKeyboardOnBullets=this.handleKeyboardOnBullets.bind(this),this.checkBannerHeights=this.checkBannerHeights.bind(this),this.resetBannerHeights=this.resetBannerHeights.bind(this)}init(){var e,t;if(ECL)return ECL.components=ECL.components||new Map,this.btnPlay=v(this.playSelector,this.element),this.btnPause=v(this.pauseSelector,this.element),this.slidesContainer=v(this.slidesClass,this.element),this.container=v(this.containerClass,this.element),this.navigation=v(".ecl-carousel__navigation",this.element),this.navigationItems=a(this.navigationItemsClass,this.element),this.controls=v(this.controlsClass,this.element),this.currentSlide=v(this.currentSlideClass,this.element),this.direction=getComputedStyle(this.element).direction,this.slides=a(this.slideClass,this.element),this.total=this.slides.length,this.total<=1?(this.controls&&(this.controls.style.display="none"),this.slidesContainer&&(this.slidesContainer.style.display="block"),!1):(e=this.slides[0],t=this.slides[this.slides.length-1],this.cloneFirstSLide=e.cloneNode(!0),this.cloneLastSLide=t.cloneNode(!0),this.slidesContainer.appendChild(this.cloneFirstSLide),this.slidesContainer.insertBefore(this.cloneLastSLide,e),this.slides=a(this.slideClass,this.element),this.slides.forEach(e=>{e.style.width=100/this.slides.length+"%"}),this.handleResize(),this.checkIndex(),this.navigationItems&&this.navigationItems.forEach((e,t)=>{e.addEventListener("click",this.shiftSlide.bind(this,t+1,!0))}),this.navigation&&this.navigation.addEventListener("keydown",this.handleKeyboardOnBullets),this.attachClickListener&&this.btnPlay&&this.btnPause&&(this.btnPlay.addEventListener("click",this.handleAutoPlay),this.btnPause.addEventListener("click",this.handleAutoPlay)),this.btnPlay&&this.btnPlay.addEventListener("keydown",this.handleKeyboardOnPlay),this.slidesContainer&&(this.slidesContainer.addEventListener("mouseover",this.handleMouseOver),this.slidesContainer.addEventListener("mouseout",this.handleMouseOut),this.slidesContainer.addEventListener("touchstart",this.dragStart),this.slidesContainer.addEventListener("touchend",this.dragEnd),this.slidesContainer.addEventListener("touchmove",this.dragAction),this.slidesContainer.addEventListener("transitionend",this.checkIndex)),this.container&&this.container.addEventListener("focus",this.handleFocus,!0),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this),this);throw new TypeError("Called init but ECL is not present")}destroy(){this.cloneFirstSLide&&this.cloneLastSLide&&(this.cloneFirstSLide.remove(),this.cloneLastSLide.remove()),this.btnPlay&&this.btnPlay.replaceWith(this.btnPlay.cloneNode(!0)),this.btnPause&&this.btnPause.replaceWith(this.btnPause.cloneNode(!0)),this.slidesContainer&&(this.slidesContainer.removeEventListener("mouseover",this.handleMouseOver),this.slidesContainer.removeEventListener("mouseout",this.handleMouseOut),this.slidesContainer.removeEventListener("touchstart",this.dragStart),this.slidesContainer.removeEventListener("touchend",this.dragEnd),this.slidesContainer.removeEventListener("touchmove",this.dragAction),this.slidesContainer.removeEventListener("transitionend",this.checkIndex)),this.container&&this.container.removeEventListener("focus",this.handleFocus,!0),this.navigationItems&&this.navigationItems.forEach(e=>{e.replaceWith(e.cloneNode(!0))}),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.autoPlayInterval&&(clearInterval(this.autoPlayInterval),this.autoPlay=null),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}checkBannerHeights(){var e,i;this.executionCount+=1,this.executionCount>this.maxExecutions?(clearInterval(this.intervalId),this.executionCount=0):(e=this.slides.map(e=>{var e=v(".ecl-banner",e),t=parseInt(e.style.height,10);return"auto"===e.style.height?0:Number.isNaN(t)||100===t?1:t}).filter(e=>void 0!==e),i=Math.max(...e),(e.length===this.slides.length&&0===i||1<i)&&(clearInterval(this.intervalId),0<i)&&(this.executionCount=0,this.slides.forEach(e=>{var t=null;(e=v(".ecl-banner",e))&&(t=v("img",e),e.style.height=i+"px"),t&&(t.style.aspectRatio="auto")})))}resetBannerHeights(){this.slides.forEach(e=>{var e=v(".ecl-banner",e),t=null;e&&(e.style.height="",t=v("img",e))&&(t.style.aspectRatio="")})}dragStart(e){e=e||window.event,this.posInitial=this.slidesContainer.offsetLeft,"touchstart"===e.type&&(this.posX1=e.touches[0].clientX)}dragAction(e){"touchmove"===(e=e||window.event).type&&(e.preventDefault(),this.posX2=this.posX1-e.touches[0].clientX,this.posX1=e.touches[0].clientX),this.slidesContainer.style.left=this.slidesContainer.offsetLeft-this.posX2+"px"}dragEnd(){this.posFinal=this.slidesContainer.offsetLeft,this.posFinal-this.posInitial<-this.threshold?this.shiftSlide("next",!0):this.posFinal-this.posInitial>this.threshold?this.shiftSlide("prev",!0):this.slidesContainer.style.left=this.posInitial+"px"}shiftSlide(e,t){this.allowShift&&(this.index="number"==typeof e?e:"next"===e?this.index+1:this.index-1,this.moveSlides(!0)),t&&this.autoPlay&&this.handleAutoPlay(),this.allowShift=!1}moveSlides(e){var t=this.container.offsetWidth*this.index;this.slidesContainer.style.transitionDuration=e?"0.4s":"0s","rtl"===this.direction?this.slidesContainer.style.right="-"+t+"px":this.slidesContainer.style.left="-"+t+"px"}checkIndex(){0===this.index&&(this.index=this.total),this.index===this.total+1&&(this.index=1),this.moveSlides(!1),this.currentSlide&&(this.currentSlide.textContent=this.index),this.slides&&this.slides.forEach((e,t)=>{var i=v(".ecl-link--cta",e);this.index===t?(e.removeAttribute("inert","true"),i&&i.removeAttribute("tabindex",-1)):(e.setAttribute("inert","true"),i&&i.setAttribute("tabindex",-1))}),this.navigationItems&&this.navigationItems.forEach((e,t)=>{this.index===t+1?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current","true")}),this.allowShift=!0}handleAutoPlay(){var e;this.autoPlay?(clearInterval(this.autoPlayInterval),this.autoPlay=!1,e=document.activeElement===this.btnPause,this.btnPlay.style.display="flex",this.btnPause.style.display="none",e&&this.btnPlay.focus()):(this.autoPlayInterval=setInterval(()=>{this.shiftSlide("next")},5e3),this.autoPlay=!0,e=document.activeElement===this.btnPlay,this.btnPlay.style.display="none",this.btnPause.style.display="flex",e&&this.btnPause.focus())}handleMouseOver(){return this.hoverAutoPlay=this.autoPlay,this.hoverAutoPlay&&this.handleAutoPlay(),this}handleMouseOut(){return this.hoverAutoPlay&&this.handleAutoPlay(),this}handleResize(){var e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),t=(clearInterval(this.intervalId),clearTimeout(this.resizeTimer),0);this.resizeTimer=setTimeout(()=>{998<=e?this.intervalId=setInterval(this.checkBannerHeights,100):this.resetBannerHeights()},250),t=768<=e?this.container.offsetWidth:this.container.offsetWidth+15,this.slidesContainer.style.width=t*this.slides.length+"px",this.moveSlides(!1),1140<=e&&e<=1260?this.container.classList.add("ecl-carousel-container--padded"):this.container.classList.remove("ecl-carousel-container--padded"),(e<=768&&this.autoPlay||768<e&&null===this.autoPlay)&&this.handleAutoPlay()}handleKeyboardOnPlay(e){if("Tab"!==e.key||!e.shiftKey)switch(e.key){case"Tab":case"ArrowRight":e.preventDefault(),this.activeNav=v(this.navigationItemsClass+'[aria-current="true"]'),this.activeNav&&this.activeNav.focus(),this.autoPlay&&this.handleAutoPlay()}}handleKeyboardOnBullets(e){var t=document.activeElement;switch(e.key){case"Tab":e.shiftKey?(e.preventDefault(),t.previousSibling?(this.shiftSlide("prev",!0),setTimeout(()=>t.previousSibling.focus(),400)):this.btnPlay.focus()):t.nextSibling&&(e.preventDefault(),this.shiftSlide("next",!0),setTimeout(()=>t.nextSibling.focus(),400));break;case"ArrowRight":t.nextSibling&&(e.preventDefault(),this.shiftSlide("next",!0),setTimeout(()=>t.nextSibling.focus(),400));break;case"ArrowLeft":t.previousSibling?(this.shiftSlide("prev",!0),setTimeout(()=>t.previousSibling.focus(),400)):this.btnPlay.focus()}}handleFocus(e){return(e=e.target)&&e.contains(document.activeElement)&&this.autoPlay&&this.handleAutoPlay(),this}},e.CategoryFilter=class be{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).CATEGORY_FILTER)?{}:t,(t=new be(e,t)).init(),e.ECLCategoryFilter=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).itemSelector)?".ecl-category-filter__item--has-children":i,t=void 0===(t=t.attachClickListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.itemSelector=i,this.attachClickListener=t,this.items=null,this.handleClickExpand=this.handleClickExpand.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.items=a(this.itemSelector,this.element),this.attachClickListener&&this.items&&this.items.forEach(e=>e.addEventListener("click",this.handleClickExpand)),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.items&&this.items.forEach(e=>{e.removeEventListener("click",this.handleClickExpand,!1)}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickExpand(e){e.preventDefault();var t=e.target.closest(".ecl-category-filter__item");this.items.forEach(e=>{e===t?e.setAttribute("aria-current",!0):e.removeAttribute("aria-current")}),"true"===t.getAttribute("aria-expanded")?(t.setAttribute("aria-expanded","false"),t.parentElement.classList.remove("ecl-category-filter__list-item--open")):(t.setAttribute("aria-expanded","true"),t.parentElement.classList.add("ecl-category-filter__list-item--open")),t.classList.contains("ecl-category-filter__item--level-1")&&this.items.forEach(e=>{e!==t&&(e.parentElement.classList.remove("ecl-category-filter__list-item--open"),e.setAttribute("aria-expanded","false"))})}},e.ContentBlock=class fe{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).CONTENT_BLOCK)?{}:t,(t=new fe(e,t)).init(),e.ECLContentBlock=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).targetSelector)?"[data-ecl-picture-link]":i,s=void 0===(s=t.titleSelector)?"[data-ecl-title-link]":s,n=void 0===(n=t.attachClickListener)||n,l=void 0===(l=t.maxIterations)?1:l,t=void 0!==(t=t.withTitleAttr)&&t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.targetSelector=i,this.titleSelector=s,this.attachClickListener=n,this.maxIterations=l,this.withTitleAttr=t,this.linkTo=this.linkTo.bind(this),this.findElementInCommonAncestor=this.findElementInCommonAncestor.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");var e;ECL.components=ECL.components||new Map,this.picture=this.findElementInCommonAncestor(this.element,this.targetSelector,this.maxIterations),this.picture&&(this.title=v(this.titleSelector,this.element),this.linkEl=!!this.title&&v("a",this.title),this.linkEl&&(this.picture.style.cursor="pointer",(e=v("img",this.picture))&&this.withTitleAttr&&(e.title=this.constructor.convertToFullURL(this.linkEl.getAttribute("href"))),this.attachClickListener)&&this.picture.addEventListener("click",this.linkTo),this.element.setAttribute("data-ecl-auto-initialized",!0),ECL.components.set(this.element,this))}linkTo(){this.linkEl&&this.linkEl.click()}findElementInCommonAncestor(e,t,i){var s=v(t,e);return s||(e.classList.contains("ecl-card__body")&&(i+=1),e===document.documentElement||i<=0?null:this.findElementInCommonAncestor(e.parentElement,t,i-1))}static convertToFullURL(e){var t;return e.startsWith("http://")||e.startsWith("https://")?e:(t=new URL(window.location.href),new URL(e,t).href)}destroy(){this.attachClickListener&&this.picture&&this.picture.removeEventListener("click",this.linkto),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}},e.Datepicker=class ye{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).DATEPICKER)?{}:t,(t=new ye(e,t)).init(),e.ECLDatepicker=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).format)?"":i,s=void 0===(s=t.theme)?"ecl-datepicker-theme":s,n=void 0===(n=t.yearRange)?40:n,l=void 0!==(l=t.reposition)&&l,a=void 0===(a=t.i18n)?{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"]}:a,o=void 0===(o=t.showDaysInNextAndPreviousMonths)||o,t=void 0===(t=t.enableSelectionDaysInNextAndPreviousMonths)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.picker=null,this.format=i,this.theme=s,this.yearRange=n,this.i18n=a,this.showDaysInNextAndPreviousMonths=o,this.enableSelectionDaysInNextAndPreviousMonths=t,this.reposition=l,this.direction="ltr"}init(){if(void 0===window.Pikaday)throw new TypeError("Pikaday is not available. Make sure to include Pikaday in your project if you want to use the ECL datepicker");if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.direction=getComputedStyle(this.element).direction;var e={field:this.element,yearRange:this.yearRange,firstDay:1,i18n:this.i18n,theme:this.theme,reposition:this.reposition,isRTL:"rtl"===this.direction,position:"rtl"===this.direction?"bottom right":"bottom left",showDaysInNextAndPreviousMonths:this.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:this.enableSelectionDaysInNextAndPreviousMonths};return""!==this.format?e.format=this.format:e.toString=e=>("0"+e.getDate()).slice(-2)+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+e.getFullYear(),this.picker=new Pikaday(t({},e,{onOpen(){this.direction=getComputedStyle(this.el).direction;var e,t=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),i=this.el.getBoundingClientRect();"rtl"===this.direction?(e=t-i.right,this.el.style.left=t<768?e+"px":"auto"):(e=i.left,this.el.style.right=t<768?e+"px":"auto")}})),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this),this.picker}destroy(){this.picker&&(this.picker.destroy(),this.picker=null),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}},e.DescriptionList=class Le{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).DESCRIPTION_LIST)?{}:t,(t=new Le(e,t)).init(),e.ECLDescriptionList=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).listsSelector)?"[data-ecl-description-list-collapsible]":i,s=void 0===(s=t.visibleItemsSelector)?"data-ecl-description-list-visible-items":s,n=void 0===(n=t.moreItemLabelSelector)?"data-ecl-description-list-more-label":n,t=void 0===(t=t.attachClickListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.moreItemLabelSelector=n,this.listsSelector=i,this.attachClickListener=t,this.visibleItemsSelector=s,this.moreItemLabel=null,this.lists=null,this.handleClickOnMore=this.handleClickOnMore.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.moreItemLabel=this.element.getAttribute(this.moreItemLabelSelector),this.visibleItems=this.element.getAttribute(this.visibleItemsSelector),this.lists=a(this.listsSelector,this.element),this.lists[0]&&0<this.visibleItems&&this.moreItemLabel&&(this.lists.forEach(e=>{var t,i;e.children&&e.children.length>this.visibleItems&&((t=document.createElement("li")).classList.add("ecl-description-list__see_more"),(i=document.createElement("a")).classList.add("ecl-link","ecl-link--standalone"),i.href="#",i.innerHTML=this.moreItemLabel,t.appendChild(i),e.appendChild(t),this.showHide(a(".ecl-description-list__definition-item",e)),this.attachClickListener)&&i.addEventListener("click",this.handleClickOnMore)}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this))}showHide(e){if(e)for(var t=Array.from(e),i=(e="ecl-description-list__definition-item")+"--hidden",s=e+"--last-visible",n=0;n<t.length;n+=1){var l=t[n];n<this.visibleItems?(l.classList.remove(i),l.classList.remove(s)):n>=this.visibleItems&&l.classList.add(i),n===this.visibleItems-1?l.classList.add(s):l.classList.remove(s)}}destroy(){var e;this.attachClickListener&&0<this.visibleItems&&(e=a(".ecl-description-list__see_more"))[0]&&e.forEach(e=>{e.removeEventListener("click",this.handleClickOnMore)}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnMore(e){e.preventDefault();var t=(e=e.target.parentNode).parentNode;this.element.contains(t)&&(Array.from(t.children).forEach(e=>{e.classList.remove("ecl-description-list__definition-item--hidden"),e.classList.remove("ecl-description-list__definition-item--last-visible")}),e.remove())}},e.Expandable=class Ee{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).EXPANDABLE)?{}:t,(t=new Ee(e,t)).init(),e.ECLExpandable=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).toggleSelector)?"[data-ecl-expandable-toggle]":i,s=void 0===(s=t.labelSelector)?"[data-ecl-label]":s,n=void 0===(n=t.labelExpanded)?"data-ecl-label-expanded":n,l=void 0===(l=t.labelCollapsed)?"data-ecl-label-collapsed":l,t=void 0===(t=t.attachClickListener)||t;if(this.supportedEvents=["onToggle"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.toggleSelector=i,this.labelSelector=s,this.labelExpanded=n,this.labelCollapsed=l,this.attachClickListener=t,this.toggle=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,this.toggle=v(this.toggleSelector,this.element),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),this.label=v(this.labelSelector,this.element),!this.target)throw new TypeError("Target has to be provided for expandable (aria-controls)");this.attachClickListener&&this.toggle&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnToggle(e){var t=!0===this.forceClose||"true"===this.toggle.getAttribute("aria-expanded"),t=(this.toggle.setAttribute("aria-expanded",t?"false":"true"),this.target.hidden=t,this.label&&!t&&this.toggle.hasAttribute(this.labelExpanded)?this.label.innerHTML=this.toggle.getAttribute(this.labelExpanded):this.label&&t&&this.toggle.hasAttribute(this.labelCollapsed)&&(this.label.innerHTML=this.toggle.getAttribute(this.labelCollapsed)),{expanded:!t,e:e});return this.trigger("onToggle",t),this}},e.FileDownload=class Ce{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).FILE_DOWNLOAD)?{}:t,(t=new Ce(e,t)).init(),e.ECLFileDownload=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).translationToggleSelector)?"[data-ecl-file-translation-toggle]":i,s=void 0===(s=t.translationContainerSelector)?"[data-ecl-file-translation-container]":s,t=void 0===(t=t.attachClickListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.translationToggleSelector=i,this.translationContainerSelector=s,this.attachClickListener=t,this.translationToggle=null,this.translationContainer=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.translationToggle=v(this.translationToggleSelector,this.element),this.translationContainer=v(this.translationContainerSelector,this.element),this.attachClickListener&&this.translationToggle&&this.translationToggle.addEventListener("click",this.handleClickOnToggle),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.translationToggle&&this.translationToggle.removeEventListener("click",this.handleClickOnToggle),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnToggle(e){return e.preventDefault(),"true"===this.translationToggle.getAttribute("aria-expanded")?this.translationToggle.setAttribute("aria-expanded","false"):this.translationToggle.setAttribute("aria-expanded","true"),this}},e.FileUpload=class we{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).FILE_UPLOAD)?{}:t,(t=new we(e,t)).init(),e.ECLFileUpload=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).groupSelector)?"[data-ecl-file-upload-group]":i,s=void 0===(s=t.buttonSelector)?"[data-ecl-file-upload-button]":s,n=void 0===(n=t.listSelector)?"[data-ecl-file-upload-list]":n,l=void 0===(l=t.labelChoose)?"data-ecl-file-upload-label-choose":l,a=void 0===(a=t.labelReplace)?"data-ecl-file-upload-label-replace":a,t=void 0===(t=t.attachChangeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.groupSelector=i,this.buttonSelector=s,this.listSelector=n,this.labelChoose=l,this.labelReplace=a,this.attachChangeListener=t,this.fileUploadGroup=null,this.fileUploadInput=null,this.fileUploadButton=null,this.fileUploadList=null,this.handleChange=this.handleChange.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.fileUploadGroup=this.element.closest(this.groupSelector),this.fileUploadInput=this.element,this.fileUploadButton=v(this.buttonSelector,this.fileUploadGroup),this.fileUploadList=v(this.listSelector,this.fileUploadGroup),this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.addEventListener("change",this.handleChange),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.removeEventListener("change",this.handleChange),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleChange(e){var n;"files"in e.target?(n="",Array.prototype.forEach.call(e.target.files,e=>{i=e.size,s=1;var t,i=0===i?"0 Bytes":(s=s<0?0:s,t=Math.floor(Math.log(i)/Math.log(1024)),parseFloat((i/Math.pow(1024,t)).toFixed(s))+" "+["Bytes","kB","MB","GB","TB","PB","EB","ZB","YB"][t]),s=e.name.split(".").pop();n+='<li class="ecl-file-upload__item">\n <span class="ecl-file-upload__item-name">'+e.name+'</span>\n <span class="ecl-file-upload__item-meta">('+i+" - "+s+")</span>\n </li>"}),this.fileUploadList.innerHTML=n,this.fileUploadButton.hasAttribute(this.labelReplace)&&(this.fileUploadButton.innerHTML=this.fileUploadButton.getAttribute(this.labelReplace))):this.fileUploadButton.hasAttribute(this.labelChoose)&&(this.fileUploadButton.innerHTML=this.fileUploadButton.getAttribute(this.labelChoose))}},e.Gallery=class ke{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).GALLERY)?{}:t,(t=new ke(e,t)).init(),e.ECLGallery=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).expandableSelector)?"data-ecl-gallery-not-expandable":i,s=void 0===(s=t.galleryItemSelector)?"[data-ecl-gallery-item]":s,n=void 0===(n=t.descriptionSelector)?"[data-ecl-gallery-description]":n,l=void 0===(l=t.noOverlaySelector)?"data-ecl-gallery-no-overlay":l,a=void 0===(a=t.metaSelector)?"[data-ecl-gallery-meta]":a,o=void 0===(o=t.itemsLimitSelector)?"data-ecl-gallery-visible-items":o,r=void 0===(r=t.closeButtonSelector)?"[data-ecl-gallery-close]":r,h=void 0===(h=t.viewAllSelector)?"[data-ecl-gallery-all]":h,c=void 0===(c=t.viewAllLabelSelector)?"data-ecl-gallery-collapsed-label":c,d=void 0===(d=t.viewAllExpandedLabelSelector)?"data-ecl-gallery-expanded-label":d,u=void 0===(u=t.countSelector)?"[data-ecl-gallery-count]":u,m=void 0===(m=t.overlaySelector)?"[data-ecl-gallery-overlay]":m,p=void 0===(p=t.overlayHeaderSelector)?"[data-ecl-gallery-overlay-header]":p,v=void 0===(v=t.overlayFooterSelector)?"[data-ecl-gallery-overlay-footer]":v,g=void 0===(g=t.overlayMediaSelector)?"[data-ecl-gallery-overlay-media]":g,b=void 0===(b=t.overlayCounterCurrentSelector)?"[data-ecl-gallery-overlay-counter-current]":b,f=void 0===(f=t.overlayCounterMaxSelector)?"[data-ecl-gallery-overlay-counter-max]":f,y=void 0===(y=t.overlayDownloadSelector)?"[data-ecl-gallery-overlay-download]":y,L=void 0===(L=t.overlayShareSelector)?"[data-ecl-gallery-overlay-share]":L,E=void 0===(E=t.overlayDescriptionSelector)?"[data-ecl-gallery-overlay-description]":E,C=void 0===(C=t.overlayMetaSelector)?"[data-ecl-gallery-overlay-meta]":C,w=void 0===(w=t.overlayPreviousSelector)?"[data-ecl-gallery-overlay-previous]":w,k=void 0===(k=t.overlayNextSelector)?"[data-ecl-gallery-overlay-next]":k,S=void 0===(S=t.attachClickListener)||S,A=void 0===(A=t.attachKeyListener)||A,t=void 0===(t=t.attachResizeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.galleryItemSelector=s,this.descriptionSelector=n,this.metaSelector=a,this.closeButtonSelector=r,this.viewAllSelector=h,this.countSelector=u,this.itemsLimitSelector=o,this.overlaySelector=m,this.noOverlaySelector=l,this.overlayHeaderSelector=p,this.overlayFooterSelector=v,this.overlayMediaSelector=g,this.overlayCounterCurrentSelector=b,this.overlayCounterMaxSelector=f,this.overlayDownloadSelector=y,this.overlayShareSelector=L,this.overlayDescriptionSelector=E,this.overlayMetaSelector=C,this.overlayPreviousSelector=w,this.overlayNextSelector=k,this.attachClickListener=S,this.attachKeyListener=A,this.attachResizeListener=t,this.viewAllLabelSelector=c,this.viewAllExpandedLabelSelector=d,this.expandableSelector=i,this.galleryItems=null,this.meta=null,this.closeButton=null,this.viewAll=null,this.count=null,this.overlay=null,this.overlayHeader=null,this.overlayFooter=null,this.overlayMedia=null,this.overlayCounterCurrent=null,this.overlayCounterMax=null,this.overlayDownload=null,this.overlayShare=null,this.overlayDescription=null,this.overlayMeta=null,this.overlayPrevious=null,this.overlayNext=null,this.selectedItem=null,this.focusTrap=null,this.isDesktop=!1,this.resizeTimer=null,this.visibleItems=0,this.breakpointMd=768,this.breakpointLg=996,this.imageHeight=185,this.imageHeightBig=260,this.iframeResize=this.iframeResize.bind(this),this.handleClickOnCloseButton=this.handleClickOnCloseButton.bind(this),this.handleClickOnViewAll=this.handleClickOnViewAll.bind(this),this.handleClickOnItem=this.handleClickOnItem.bind(this),this.preventClickOnItem=this.preventClickOnItem.bind(this),this.handleKeyPressOnItem=this.handleKeyPressOnItem.bind(this),this.handleClickOnPreviousButton=this.handleClickOnPreviousButton.bind(this),this.handleClickOnNextButton=this.handleClickOnNextButton.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleResize=this.handleResize.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.expandable=!this.element.hasAttribute(this.expandableSelector),this.visibleItems=this.element.getAttribute(this.itemsLimitSelector),this.galleryItems=a(this.galleryItemSelector,this.element),this.closeButton=v(this.closeButtonSelector,this.element),this.noOverlay=this.element.hasAttribute(this.noOverlaySelector),this.expandable&&(this.viewAll=v(this.viewAllSelector,this.element),this.viewAllLabel=this.viewAll.getAttribute(this.viewAllLabelSelector)||this.viewAll.innerText,this.viewAllLabelExpanded=this.viewAll.getAttribute(this.viewAllExpandedLabelSelector)||this.viewAllLabel),this.count=v(this.countSelector,this.element),this.attachClickListener&&this.viewAll&&this.viewAll.addEventListener("click",this.handleClickOnViewAll),this.noOverlay?this.galleryItems.forEach(e=>{e.classList.add("ecl-gallery__item__link--frozen"),e.addEventListener("click",this.preventClickOnItem)}):(this.overlay=v(this.overlaySelector,this.element),this.overlayHeader=v(this.overlayHeaderSelector,this.overlay),this.overlayFooter=v(this.overlayFooterSelector,this.overlay),this.overlayMedia=v(this.overlayMediaSelector,this.overlay),this.overlayCounterCurrent=v(this.overlayCounterCurrentSelector,this.overlay),this.overlayCounterMax=v(this.overlayCounterMaxSelector,this.overlay),this.overlayDownload=v(this.overlayDownloadSelector,this.overlay),this.overlayShare=v(this.overlayShareSelector,this.overlay),this.overlayDescription=v(this.overlayDescriptionSelector,this.overlay),this.overlayMeta=v(this.overlayMetaSelector,this.overlay),this.overlayPrevious=v(this.overlayPreviousSelector,this.overlay),this.overlayNext=v(this.overlayNextSelector,this.overlay),this.focusTrap=r(this.overlay,{escapeDeactivates:!1,returnFocusOnDeactivate:!1}),this.isDialogSupported=!0,window.HTMLDialogElement||(this.isDialogSupported=!1),this.attachClickListener&&this.closeButton&&this.closeButton.addEventListener("click",this.handleClickOnCloseButton),this.attachClickListener&&this.galleryItems&&this.galleryItems.forEach(e=>{this.attachClickListener&&e.addEventListener("click",this.handleClickOnItem),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyPressOnItem)}),this.attachClickListener&&this.overlayPrevious&&this.overlayPrevious.addEventListener("click",this.handleClickOnPreviousButton),this.attachClickListener&&this.overlayNext&&this.overlayNext.addEventListener("click",this.handleClickOnNextButton),!this.isDialogSupported&&this.attachKeyListener&&this.overlay&&this.overlay.addEventListener("keyup",this.handleKeyboard),this.isDialogSupported&&this.overlay&&this.overlay.addEventListener("close",this.handleClickOnCloseButton)),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.expandable&&(this.checkScreen(),this.hideItems()),this.galleryItems.forEach((e,t)=>{e.setAttribute("data-ecl-gallery-item-id",t)}),this.count&&(this.count.innerHTML=this.galleryItems.length),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.closeButton&&this.closeButton.removeEventListener("click",this.handleClickOnCloseButton),this.attachClickListener&&this.viewAll&&this.viewAll.removeEventListener("click",this.handleClickOnViewAll),this.attachClickListener&&this.galleryItems&&this.galleryItems.forEach(e=>{e.removeEventListener("click",this.handleClickOnItem)}),this.attachClickListener&&this.overlayPrevious&&this.overlayPrevious.removeEventListener("click",this.handleClickOnPreviousButton),this.attachClickListener&&this.overlayNext&&this.overlayNext.removeEventListener("click",this.handleClickOnNextButton),!this.isDialogSupported&&this.attachKeyListener&&this.overlay&&this.overlay.removeEventListener("keyup",this.handleKeyboard),this.isDialogSupported&&this.overlay&&this.overlay.removeEventListener("close",this.handleClickOnCloseButton),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}checkScreen(){window.innerWidth>this.breakpointMd?this.isDesktop=!0:this.isDesktop=!1,window.innerWidth>this.breakpointLg&&(this.isLarge=!0)}iframeResize(t){var i;(t=!t&&this.overlay?v("iframe",this.overlay):t)&&(i=window.innerWidth,setTimeout(()=>{var e=this.overlay.clientHeight-this.overlayHeader.clientHeight-this.overlayFooter.clientHeight;e<i?(t.setAttribute("height",e+"px"),i<16*e/9?t.setAttribute("width",i-.05*i+"px"):t.setAttribute("width",16*e/9+"px")):(t.setAttribute("width",i+"px"),e<4*i/3?t.setAttribute("height",e-.05*e+"px"):t.setAttribute("height",4*i/3+"px"))},0))}hideItems(i){var s;void 0===i&&(i=0),this.viewAll&&!this.viewAll.expanded&&(this.isDesktop?(s=[],this.galleryItems.forEach((e,t)=>{e.parentNode.classList.remove("ecl-gallery__item--hidden"),t>=Number(this.visibleItems)+Number(i)&&(s=[...s,t])}),s.forEach(e=>{this.galleryItems[e].parentNode.classList.add("ecl-gallery__item--hidden")})):this.galleryItems.forEach((e,t)=>{t>2+Number(i)?e.parentNode.classList.add("ecl-gallery__item--hidden"):e.parentNode.classList.remove("ecl-gallery__item--hidden")}))}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.checkScreen(),this.hideItems(),this.iframeResize()},200)}updateOverlay(e){var t=(this.selectedItem=e).getAttribute("data-ecl-gallery-item-embed-src"),i=v("video",e),s=null;null!=t?((s=document.createElement("div")).classList.add("ecl-gallery__slider-embed"),(n=document.createElement("iframe")).setAttribute("src",t),n.setAttribute("frameBorder","0"),this.overlayMedia&&(s.appendChild(n),this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s)),this.iframeResize(n)):null!=i?((s=document.createElement("video")).setAttribute("poster",i.poster),s.setAttribute("controls","controls"),s.classList.add("ecl-gallery__slider-video"),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s)),a("source",i).forEach(e=>{var t=document.createElement("source");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("type",e.getAttribute("type")),s.appendChild(t)}),a("track",i).forEach(e=>{var t=document.createElement("track");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("kind",e.getAttribute("kind")),t.setAttribute("srclang",e.getAttribute("srcLang")),t.setAttribute("label",e.getAttribute("label")),s.appendChild(t)}),s.load()):(n=v("img",e),(i=v("picture",e))?(n.classList.remove("ecl-gallery__image"),s=i.cloneNode(!0)):((s=document.createElement("img")).setAttribute("src",n.getAttribute("src")),s.setAttribute("alt",n.getAttribute("alt"))),s.classList.add("ecl-gallery__slider-image"),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s))),this.overlayCounterCurrent.innerHTML=+e.getAttribute("data-ecl-gallery-item-id")+1,this.overlayCounterMax.innerHTML=this.galleryItems.length;null!=(i=this.selectedItem.getAttribute("data-ecl-gallery-item-share"))?(this.overlayShare.href=i,this.overlayShare.hidden=!1):this.overlayShare.hidden=!0,null!==this.overlayDownload&&null===t?(this.overlayDownload.href=this.selectedItem.href,this.overlayDownload.hidden=!1):null!==this.overlayDownload&&(this.overlayDownload.hidden=!0);var n=v(this.metaSelector,e),i=(this.overlayMeta.innerHTML=n.innerHTML,v(this.descriptionSelector,e));this.overlayDescription.innerHTML=i.innerHTML}handleKeyboard(e){"Escape"!==e.key&&"Esc"!==e.key||this.handleClickOnCloseButton()}handleClickOnCloseButton(){this.isDialogSupported?this.overlay.close():this.overlay.removeAttribute("open");var e=v("iframe",this.overlayMedia);e&&e.remove(),(e=v("video",this.overlayMedia))&&e.pause(),this.focusTrap.deactivate(),this.selectedItem.focus(),document.body.classList.remove("ecl-u-disablescroll")}handleKeyPressOnItem(e){32===e.keyCode&&this.handleClickOnItem(e)}handleClickOnViewAll(e){e.preventDefault(),this.viewAll&&(this.viewAll.expanded?(delete this.viewAll.expanded,this.checkScreen(),this.hideItems(),this.viewAll.textContent=this.viewAllLabel):this.galleryItems.forEach(e=>{this.viewAll.expanded=!0,e.parentNode.classList.remove("ecl-gallery__item--hidden"),this.viewAll.textContent=this.viewAllLabelExpanded}))}handleClickOnItem(e){e.preventDefault(),document.body.classList.add("ecl-u-disablescroll"),this.isDialogSupported?this.overlay.showModal():this.overlay.setAttribute("open",""),this.updateOverlay(e.currentTarget),this.focusTrap.activate()}preventClickOnItem(e){e.preventDefault(),e.stopPropagation()}handleClickOnPreviousButton(){var e=+this.selectedItem.getAttribute("data-ecl-gallery-item-id")-1,t=(e<0&&(e=this.galleryItems.length-1),v("video",this.selectedItem));return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this}handleClickOnNextButton(){var e=+this.selectedItem.getAttribute("data-ecl-gallery-item-id")+1,t=(e>=this.galleryItems.length&&(e=0),v("video",this.selectedItem));return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this}},e.InpageNavigation=class Se{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).INPAGE_NAVIGATION)?{}:t,(t=new Se(e,t)).init(),e.ECLInpageNavigation=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).stickySelector)?"[data-ecl-inpage-navigation]":i,s=void 0===(s=t.containerSelector)?"[data-ecl-inpage-navigation-container]":s,n=void 0===(n=t.inPageList)?"[data-ecl-inpage-navigation-list]":n,l=void 0===(l=t.spySelector)?"[data-ecl-inpage-navigation-link]":l,a=void 0===(a=t.toggleSelector)?"[data-ecl-inpage-navigation-trigger]":a,o=void 0===(o=t.linksSelector)?"[data-ecl-inpage-navigation-link]":o,r=void 0===(r=t.spyActiveContainer)?"ecl-inpage-navigation--visible":r,h=void 0===(h=t.spyOffset)?20:h,c=void 0===(c=t.spyClass)?"ecl-inpage-navigation__item--active":c,d=void 0===(d=t.spyTrigger)?"[data-ecl-inpage-navigation-trigger-current]":d,u=void 0===(u=t.attachClickListener)||u,t=void 0===(t=t.contentClass)?"ecl-inpage-navigation__heading--active":t;if(this.supportedEvents=["onToggle","onClick"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.attachClickListener=u,this.stickySelector=i,this.containerSelector=s,this.toggleSelector=a,this.linksSelector=o,this.inPageList=n,this.spyActiveContainer=r,this.spySelector=l,this.spyOffset=h,this.spyClass=c,this.spyTrigger=d,this.contentClass=t,this.gumshoe=null,this.observer=null,this.stickyObserver=null,this.isExpanded=!1,this.handleClickOnToggler=this.handleClickOnToggler.bind(this),this.handleClickOnLink=this.handleClickOnLink.bind(this),this.initScrollSpy=this.initScrollSpy.bind(this),this.initObserver=this.initObserver.bind(this),this.handleEsc=this.handleEsc.bind(this),this.handleShiftTab=this.handleShiftTab.bind(this),this.activateScrollSpy=this.activateScrollSpy.bind(this),this.deactivateScrollSpy=this.deactivateScrollSpy.bind(this),this.destroySticky=this.destroySticky.bind(this),this.destroyScrollSpy=this.destroyScrollSpy.bind(this),this.destroyObserver=this.destroyObserver.bind(this)}initSticky(){this.stickyInstance=new re.Sticky(this.element)}destroySticky(){this.stickyInstance&&this.stickyInstance.remove()}initScrollSpy(){var e,s,n,l;this.gumshoe=new he(this.spySelector,{navClass:this.spyClass,contentClass:this.contentClass,offset:this.spyOffset,reflow:!0}),document.addEventListener("gumshoeActivate",this.activateScrollSpy,!1),document.addEventListener("gumshoeDeactivate",this.deactivateScrollSpy,!1),"IntersectionObserver"in window&&(e=v(this.containerSelector))&&(n=s=0,l=!1,this.stickyObserver=new IntersectionObserver(e=>{var t,i;e&&e[0]&&(t=(e=e[0]).boundingClientRect.y,i=e.intersectionRatio,e=e.isIntersecting,l?t<s?n<i&&e||this.element.classList.remove(this.spyActiveContainer):s<t&&e&&n<i&&this.element.classList.add(this.spyActiveContainer):l=!0,s=t,n=i)},{root:null}),this.stickyObserver.observe(e))}activateScrollSpy(e){var t=v(this.spyTrigger);this.element.classList.add(this.spyActiveContainer),t.textContent=e.detail.content.textContent}deactivateScrollSpy(){var e=v(this.spyTrigger);this.element.classList.remove(this.spyActiveContainer),e.innerHTML=""}destroyScrollSpy(){this.stickyObserver&&this.stickyObserver.disconnect(),document.removeEventListener("gumshoeActivate",this.activateScrollSpy,!1),document.removeEventListener("gumshoeDeactivate",this.deactivateScrollSpy,!1),this.gumshoe.destroy()}initObserver(){var t;"MutationObserver"in window&&((t=this).observer=new MutationObserver(e=>{var s=v(".ecl-col-l-9"),n=v("[data-ecl-inpage-navigation-list]");e.forEach(e=>{e&&e.target&&e.target.classList&&!e.target.classList.contains("ecl-inpage-navigation__trigger-current")&&(0<e.addedNodes.length&&[].slice.call(e.addedNodes).forEach(t=>{var e,i;"H2"===t.tagName&&t.id&&(e=a("h2[id]",s).findIndex(e=>e.id===t.id),(i=n.childNodes[e-1].cloneNode(!0)).childNodes[0].textContent=t.textContent,i.childNodes[0].href="#"+t.id,n.childNodes[e-1].after(i))}),0<e.removedNodes.length&&[].slice.call(e.removedNodes).forEach(t=>{"H2"===t.tagName&&t.id&&n.childNodes.forEach(e=>{-1!==e.childNodes[0].href.indexOf(t.id)&&e.remove()})}),t.update())})}),this.observer.observe(document,{subtree:!0,childList:!0}))}destroyObserver(){this.observer&&this.observer.disconnect()}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map;var e=v(this.toggleSelector,this.element),t=a(this.linksSelector,this.element);this.initSticky(this.element),this.initScrollSpy(),this.initObserver(),this.attachClickListener&&e&&e.addEventListener("click",this.handleClickOnToggler),this.attachClickListener&&t&&(t.forEach(e=>e.addEventListener("click",this.handleClickOnLink)),this.element.addEventListener("keydown",this.handleShiftTab),e.addEventListener("click",this.handleClickOnToggler)),document.addEventListener("keydown",this.handleEsc),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}update(){this.gumshoe.setup()}handleClickOnToggler(e){var t=v(this.inPageList,this.element),i=v(this.toggleSelector,this.element);e.preventDefault(),this.isExpanded="true"===i.getAttribute("aria-expanded"),i.setAttribute("aria-expanded",this.isExpanded?"false":"true"),this.isExpanded?t.classList.remove("ecl-inpage-navigation__list--visible"):t.classList.add("ecl-inpage-navigation__list--visible"),this.trigger("onToggle",{isExpanded:this.isExpanded})}handleClickOnLink(e){var t,i=v(this.inPageList,this.element),s=v(this.toggleSelector,this.element),n=e.target.href,l=null;n&&(t=n.split("#")[1])&&(l=v("#"+t,document)),i.classList.remove("ecl-inpage-navigation__list--visible"),s.setAttribute("aria-expanded","false"),this.trigger("onClick",{target:l||n,e:e})}handleEsc(e){"Escape"===e.key&&this.handleClickOnLink()}handleShiftTab(e){var t;"Tab"===e.key&&e.shiftKey&&(t=a(this.linksSelector,this.element),Array.isArray(t))&&0<t.length&&e.target===t[0]&&this.handleClickOnLink()}destroy(){this.attachClickListener&&this.toggleElement&&this.toggleElement.removeEventListener("click",this.handleClickOnToggler),this.attachClickListener&&this.navLinks&&this.navLinks.forEach(e=>e.removeEventListener("click",this.handleClickOnLink)),this.destroyScrollSpy(),this.destroySticky(),this.destroyObserver(),document.removeEventListener("keydown",this.handleEsc),this.element&&(this.element.removeEventListener("keydown",this.handleShiftTab),this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}},e.MediaContainer=class Ae{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).MEDIA_CONTAINER)?{}:t,(t=new Ae(e,t)).init(),e.ECLMediaContainer=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).iframeSelector)?"iframe":i,t=void 0===(t=t.useAutomaticRatio)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.iframeSelector=i,this.useAutomaticRatio=t,this.iframe=null,this.calculateRatio=this.calculateRatio.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map;var e=v(".ecl-media-container__media",this.element);e&&!/ecl-media-container__media--ratio/.test(e.className)&&(this.iframe=v(this.iframeSelector,this.element),this.iframe)&&this.useAutomaticRatio&&this.calculateRatio(),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}calculateRatio(){var e=this.iframe.width,t=this.iframe.height;e&&t||(e=this.iframe.offsetWidth,t=this.iframe.offsetHeight),this.iframe.style.aspectRatio=e+"/"+t}},e.MegaMenu=class Oe{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).MEGA_MENU)?{}:t,(t=new Oe(e,t)).init(),e.ECLMegaMenu=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).openSelector)?"[data-ecl-mega-menu-open]":i,s=void 0===(s=t.backSelector)?"[data-ecl-mega-menu-back]":s,n=void 0===(n=t.innerSelector)?"[data-ecl-mega-menu-inner]":n,l=void 0===(l=t.listSelector)?"[data-ecl-mega-menu-list]":l,a=void 0===(a=t.itemSelector)?"[data-ecl-mega-menu-item]":a,o=void 0===(o=t.linkSelector)?"[data-ecl-mega-menu-link]":o,r=void 0===(r=t.megaSelector)?"[data-ecl-mega-menu-mega]":r,h=void 0===(h=t.containerSelector)?"data-ecl-has-container":h,c=void 0===(c=t.subItemSelector)?"[data-ecl-mega-menu-subitem]":c,d=void 0===(d=t.featuredAttribute)?"[data-ecl-mega-menu-featured]":d,u=void 0===(u=t.labelOpenAttribute)?"data-ecl-mega-menu-label-open":u,m=void 0===(m=t.labelCloseAttribute)?"data-ecl-mega-menu-label-close":m,p=void 0===(p=t.attachClickListener)||p,v=void 0===(v=t.attachFocusListener)||v,g=void 0===(g=t.attachKeyListener)||g,t=void 0===(t=t.attachResizeListener)||t;if(this.supportedEvents=["onOpen","onClose"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.openSelector=i,this.backSelector=s,this.innerSelector=n,this.listSelector=l,this.itemSelector=a,this.linkSelector=o,this.megaSelector=r,this.subItemSelector=c,this.containerSelector=h,this.labelOpenAttribute=u,this.labelCloseAttribute=m,this.attachClickListener=p,this.attachFocusListener=v,this.attachKeyListener=g,this.attachResizeListener=t,this.featuredAttribute=d,this.direction="ltr",this.open=null,this.toggleLabel=null,this.back=null,this.inner=null,this.itemsList=null,this.items=null,this.links=null,this.isOpen=!1,this.resizeTimer=null,this.isKeyEvent=!1,this.isDesktop=!1,this.isLarge=!1,this.lastVisibleItem=null,this.currentItem=null,this.totalItemsWidth=0,this.breakpointL=996,this.openPanel={num:0,item:{}},this.handleClickOnOpen=this.handleClickOnOpen.bind(this),this.handleClickOnClose=this.handleClickOnClose.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleClickOnBack=this.handleClickOnBack.bind(this),this.handleClickGlobal=this.handleClickGlobal.bind(this),this.handleClickOnItem=this.handleClickOnItem.bind(this),this.handleClickOnSubitem=this.handleClickOnSubitem.bind(this),this.handleFocusOut=this.handleFocusOut.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.handleResize=this.handleResize.bind(this),this.useDesktopDisplay=this.useDesktopDisplay.bind(this),this.checkMegaMenu=this.checkMegaMenu.bind(this),this.closeOpenDropdown=this.closeOpenDropdown.bind(this),this.checkDropdownHeight=this.checkDropdownHeight.bind(this),this.positionMenuOverlay=this.positionMenuOverlay.bind(this),this.resetStyles=this.resetStyles.bind(this),this.handleFirstPanel=this.handleFirstPanel.bind(this),this.handleSecondPanel=this.handleSecondPanel.bind(this),this.disableScroll=this.disableScroll.bind(this),this.enableScroll=this.enableScroll.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.open=v(this.openSelector,this.element),this.toggleLabel=v(".ecl-link__label",this.open),this.back=v(this.backSelector,this.element),this.inner=v(this.innerSelector,this.element),this.itemsList=v(this.listSelector,this.element),this.btnPrevious=v(this.buttonPreviousSelector,this.element),this.btnNext=v(this.buttonNextSelector,this.element),this.items=a(this.itemSelector,this.element),this.subItems=a(this.subItemSelector,this.element),this.links=a(this.linkSelector,this.element),this.isDesktop=this.useDesktopDisplay(),this.attachClickListener&&(this.open&&this.open.addEventListener("click",this.handleClickOnToggle),this.back&&(this.back.addEventListener("click",this.handleClickOnBack),this.back.addEventListener("keyup",this.handleKeyboard)),this.attachClickListener)&&document.addEventListener("click",this.handleClickGlobal),this.links&&this.links.forEach(e=>{this.attachFocusListener&&e.addEventListener("focusout",this.handleFocusOut),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard)}),this.subItems&&this.subItems.forEach(e=>{e=v(".ecl-mega-menu__sublink",e),this.attachKeyListener&&e&&(e.addEventListener("click",this.handleClickOnSubitem),e.addEventListener("keyup",this.handleKeyboard)),this.attachFocusListener&&e&&e.addEventListener("focusout",this.handleFocusOut)});var e=a(".ecl-mega-menu__see-all a",this.element);0<e.length&&e.forEach(e=>{e.addEventListener("keyup",this.handleKeyboard),e.addEventListener("blur",this.handleFocusOut)}),this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.items&&this.items.forEach(e=>{this.totalItemsWidth+=e.offsetWidth,(e.hasAttribute("data-ecl-has-children")||e.hasAttribute("data-ecl-has-container"))&&this.attachClickListener&&e.addEventListener("click",this.handleClickOnItem)}),this.focusTrap=r(this.element,{onActivate:()=>this.element.classList.add("ecl-mega-menu-trap-is-active"),onDeactivate:()=>this.element.classList.remove("ecl-mega-menu-trap-is-active")}),this.handleResize(),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.attachClickListener&&(this.open&&this.open.removeEventListener("click",this.handleClickOnToggle),this.back&&this.back.removeEventListener("click",this.handleClickOnBack),this.attachClickListener)&&document.removeEventListener("click",this.handleClickGlobal),this.items&&this.isDesktop&&this.items.forEach(e=>{(e.hasAttribute("data-ecl-has-children")||e.hasAttribute("data-ecl-has-container"))&&this.attachClickListener&&e.removeEventListener("click",this.handleClickOnItem)}),this.links&&this.links.forEach(e=>{this.attachFocusListener&&e.removeEventListener("focusout",this.handleFocusOut),this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard)}),this.subItems&&this.subItems.forEach(e=>{e=v(".ecl-mega-menu__sublink",e),this.attachKeyListener&&e&&e.removeEventListener("keyup",this.handleKeyboard),this.attachClickListener&&e&&e.removeEventListener("click",this.handleClickOnSubitem),this.attachFocusListener&&e&&e.removeEventListener("focusout",this.handleFocusOut)}),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.closeOpenDropdown(),this.enableScroll(),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}disableScroll(){document.body.classList.add("ecl-mega-menu-prevent-scroll")}enableScroll(){document.body.classList.remove("ecl-mega-menu-prevent-scroll")}useDesktopDisplay(){return!(p.isMobileOnly||(p.isTablet?(this.element.classList.add("ecl-mega-menu--forced-mobile"),1):window.innerWidth<this.breakpointL||(this.element.classList.remove("ecl-mega-menu--forced-mobile"),0)))}resetStyles(e){var t,i=a(".ecl-mega-menu__sublist",this.element);i&&"mobile"===e?(i.forEach(e=>{e.style.height=""}),2===this.openPanel.num&&((t=this.openPanel.item).parentNode.parentNode.firstElementChild.style.display="none",t.parentNode.classList.add("ecl-mega-menu__sublist--no-border"),t.parentNode.childNodes.forEach(e=>{e!==t&&(e.style.display="none")}))):i&&"desktop"===e&&((e=a(".ecl-mega-menu__parent-link"))&&e.forEach(e=>{e.style.display=""}),i.forEach(e=>{this.isLarge||e.parentNode.classList.remove("ecl-mega-menu__item--col2"),e.classList.remove("ecl-mega-menu__sublist--no-border"),e.childNodes.forEach(e=>{e.style.display=""})}),e=[],(i=v(".ecl-mega-menu__subitem--expanded",this.element))&&e.push(i),(i=v(".ecl-mega-menu__item--expanded",this.element))&&e.push(i),0<e.length?e.forEach(e=>{this.checkDropdownHeight(e)}):(this.element.setAttribute("aria-expanded","false"),this.element.removeAttribute("data-expanded"),this.enableScroll()))}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{var e=window.innerWidth;void 0!==this.prevScreenWidth&&(this.prevScreenWidth<=this.breakpointL&&e>this.breakpointL||this.prevScreenWidth>this.breakpointL&&e<=this.breakpointL)&&this.resetStyles(e>this.breakpointL?"desktop":"mobile"),this.isDesktop=this.useDesktopDisplay(),this.isLarge=1140<window.innerWidth,this.prevScreenWidth=e,this.element.classList.remove("ecl-mega-menu--forced-mobile"),this.direction=getComputedStyle(this.element).direction,"rtl"===this.direction?this.element.classList.add("ecl-mega-menu--rtl"):this.element.classList.remove("ecl-mega-menu--rtl"),(e=v(".ecl-mega-menu__item--expanded",this.element))&&this.isDesktop&&this.checkDropdownHeight(e),2===this.openPanel.num&&this.openPanel.item&&this.checkMegaMenu(this.openPanel.item),this.positionMenuOverlay()},200)}checkDropdownHeight(i){setTimeout(()=>{var e=window.innerHeight,t=v(".ecl-mega-menu__sublist",i);(t=t||v(".ecl-mega-menu__mega-container",i))&&(e-=t.getBoundingClientRect().top,v(".ecl-mega-menu__see-all",t)&&(e-=20),t.style.height=e+"px")},100)}positionMenuOverlay(){var s=v(".ecl-mega-menu__overlay",this.element),n=a(".ecl-mega-menu__item > .ecl-mega-menu__mega",this.element);this.isDesktop?setTimeout(()=>{var t,i,e=v(".ecl-site-header",document);e?(e=e.getBoundingClientRect().bottom,t=v(this.itemSelector,this.element).getBoundingClientRect().height+4,n&&n.forEach(e=>{e.style.top=t+"px"}),s&&(s.style.top=e+"px")):(i=this.element.getBoundingClientRect().bottom,s&&(s.style.top=i+"px"),n&&n.forEach(e=>{e.style.top=i+"px"}))},0):setTimeout(()=>{var e=v(".ecl-site-header__header",document);e&&(e=e.getBoundingClientRect(),e=Math.round(e.bottom),s&&(s.style.top=e+"px"),this.inner&&(this.inner.style.top=e+"px"),n)&&n.forEach(e=>{e.style.top=""})},0)}cloneItemInTheDrowdown(e){var t,i=v(".ecl-link",e).cloneNode(!0),s=v(".ecl-icon use",i);s&&((t=s.getAttribute("xlink:href"))&&(t=t.replace("corner-arrow","arrow-left"),s.parentElement.classList.add("ecl-icon--flip-horizontal","ecl-icon--xs"),s.parentElement.classList.remove("ecl-icon--2xs","ecl-icon--rotate-180"),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t)),i.id&&(i.id=i.id+"-parent"),(s=e.getAttribute("data-ecl-parent-aria-label"))&&i.setAttribute("aria-label",s),i.classList.add("ecl-mega-menu__parent-link"),i.addEventListener("keyup",this.handleKeyboard),t=(t=v(".ecl-mega-menu__mega",e))||v(".ecl-mega-menu__mega-container",e))&&!v(".ecl-mega-menu__parent-link",e)&&t.prepend(i)}checkMegaMenu(e){var t,i;(e=v(this.megaSelector,e))&&this.inner&&this.isLarge?(i=a(this.subItemSelector+" a",e),t=0,i.forEach(e=>{t+=e.getBoundingClientRect().height}),v(".ecl-mega-menu__see-all",e)&&(t+=150),i=this.inner.getBoundingClientRect().bottom,window.innerHeight-i<t&&e.classList.add("ecl-mega-menu__item--col2")):e&&e.classList.remove("ecl-mega-menu__item--col2")}handleKeyboard(e){var t=e.target,i=t.classList,s=this.element.getAttribute("aria-expanded");if("Escape"===e.key||"Esc"===e.key)document.activeElement===t&&t.blur(),"false"===s&&this.closeOpenDropdown();else{if(i.contains("ecl-mega-menu__parent-link")&&("ArrowUp"===e.key&&(this.isDesktop?t.closest(".ecl-mega-menu__item--expanded").firstElementChild:this.back).focus(),"ArrowDown"===e.key)&&t.nextSibling.firstElementChild.firstElementChild.focus(),t.parentElement.classList.contains("ecl-mega-menu__see-all")&&"ArrowUp"===e.key&&t.parentElement.previousSibling.firstChild.focus(),i.contains("ecl-mega-menu__back")&&("ArrowDown"===e.key&&(e.preventDefault(),s=v('[aria-expanded="true"]',t.parentElement.nextSibling))&&(n=v('[aria-expanded="true"]',s),v(".ecl-mega-menu__parent-link",n||s).focus()),"ArrowUp"===e.key)&&this.open.focus(),i.contains("ecl-mega-menu__link")){if("ArrowLeft"===e.key||"ArrowUp"===e.key){e.preventDefault();var n=t.previousSibling;if(n&&n.classList.contains("ecl-mega-menu__link"))return void n.focus();if(n=t.parentElement.previousSibling)if(s=v(".ecl-mega-menu__link",n))return void s.focus()}if("ArrowRight"===e.key||"ArrowDown"===e.key){if(e.preventDefault(),"true"===t.parentElement.getAttribute("aria-expanded")&&"ArrowDown"===e.key&&(n=v(".ecl-mega-menu__parent-link",t.parentElement)))return void n.focus();if((s=t.parentElement.nextSibling)&&(n=v(".ecl-mega-menu__link",s)))return void n.focus()}}if(i.contains("ecl-mega-menu__sublink")){if("ArrowDown"===e.key&&(e.preventDefault(),s=t.parentElement.nextSibling,n="",s)&&(n=!(n=v(".ecl-mega-menu__sublink",s))&&s.classList.contains("ecl-mega-menu__see-all")?s.firstElementChild:n))return void n.focus();"ArrowUp"===e.key&&(e.preventDefault(),(i=t.parentElement.previousSibling)?(s=v(".ecl-mega-menu__sublink",i))&&s.focus():t.parentElement.parentElement.previousSibling.focus())}"ArrowRight"===e.key&&"true"===t.parentElement.getAttribute("aria-expanded")&&(e.preventDefault(),t.nextSibling.firstElementChild.focus())}}handleKeyboardGlobal(e){var t=this.element.getAttribute("aria-expanded");"Escape"!==e.key&&"Esc"!==e.key||"true"===t&&this.closeOpenDropdown()}handleClickOnOpen(e){var t;"true"===this.element.getAttribute("aria-expanded")?this.handleClickOnClose(e):(e.preventDefault(),this.disableScroll(),this.element.setAttribute("aria-expanded","true"),this.inner.setAttribute("aria-hidden","false"),this.isOpen=!0,this.openPanel.num=1,t=this.element.getAttribute(this.labelCloseAttribute),this.toggleLabel&&t&&(this.toggleLabel.innerHTML=t),this.trigger("onOpen",e))}handleClickOnClose(e){"true"===this.element.getAttribute("aria-expanded")?(this.focusTrap.deactivate(),this.closeOpenDropdown(),this.trigger("onClose",e)):this.handleClickOnOpen(e)}handleClickOnToggle(e){e.preventDefault(),this.isOpen?this.handleClickOnClose(e):this.handleClickOnOpen(e)}handleClickOnBack(){var e,t=v(".ecl-mega-menu__subitem--expanded",this.element);t?((e=a(".ecl-mega-menu__parent-link",this.element))&&e.forEach(e=>{e.style.display=""}),(e=a(".ecl-mega-menu__sublist"))&&e.forEach(e=>{e.classList.remove("ecl-mega-menu__sublist--no-border")}),t.setAttribute("aria-expanded","false"),t.classList.remove("ecl-mega-menu__subitem--expanded","ecl-mega-menu__subitem--current"),(e=t.parentElement.childNodes)&&e.forEach(e=>{e.style.display=""}),e=v(".ecl-mega-menu__item--expanded",this.element),v(".ecl-mega-menu__parent-link",e).focus(),this.openPanel.num=1):(this.inner.classList.remove("ecl-mega-menu__inner--expanded"),this.items.forEach(e=>{e.classList.remove("ecl-mega-menu__item--expanded","ecl-mega-menu__item--current"),e.setAttribute("aria-expanded","false")}),this.items[0].firstElementChild.focus(),this.openPanel.num=0),this.trigger("onBack",{level:t?2:1})}handleFirstPanel(t,e){switch(e){case"expand":this.inner.classList.add("ecl-mega-menu__inner--expanded"),this.positionMenuOverlay(),this.cloneItemInTheDrowdown(t),this.checkDropdownHeight(t),this.element.setAttribute("data-expanded",!0),this.element.setAttribute("aria-expanded","true"),this.disableScroll(),this.items.forEach(e=>{e.hasAttribute("aria-expanded")&&(e===t?(e.classList.add("ecl-mega-menu__item--expanded","ecl-mega-menu__item--current"),e.setAttribute("aria-expanded","true")):(e.setAttribute("aria-expanded","false"),e.classList.remove("ecl-mega-menu__item--current","ecl-mega-menu__item--expanded")))}),v(".ecl-mega-menu__parent-link",t).focus(),this.trigger("OnOpenPanel",{panel:1,item:t});break;case"collapse":this.closeOpenDropdown()}}handleSecondPanel(t,e){var i;switch(e){case"expand":this.subItems.forEach(e=>{e===t?(e.hasAttribute("aria-expanded")&&(e.setAttribute("aria-expanded","true"),e.classList.add("ecl-mega-menu__subitem--expanded")),e.classList.add("ecl-mega-menu__subitem--current")):(e.hasAttribute("aria-expanded")&&(e.setAttribute("aria-expanded","false"),e.classList.remove("ecl-mega-menu__subitem--expanded")),e.classList.remove("ecl-mega-menu__subitem--current"))}),this.openPanel={num:2,item:t},i=t.parentNode.childNodes,this.isDesktop?(this.checkDropdownHeight(t),i.forEach(e=>{e!==t&&(e.style.display="")})):(t.parentNode.parentNode.firstElementChild.style.display="none",t.parentNode.classList.add("ecl-mega-menu__sublist--no-border"),i.forEach(e=>{e!==t&&(e.style.display="none")})),v(".ecl-mega-menu__parent-link",t).focus(),this.checkMegaMenu(t),this.trigger("OnOpenPanel",{panel:2,item:t});break;case"collapse":this.openPanel={num:1},t.setAttribute("aria-expanded","false"),t.classList.remove("ecl-mega-menu__subitem--expanded","ecl-mega-menu__subitem--current")}}handleClickOnItem(e){var t=!1,i=e.target.closest("li"),s=v(".ecl-mega-menu__mega-container-scrollable",i);s&&(t=s.contains(e.target)),e.target.parentNode.classList.contains("ecl-mega-menu__parent-link")||e.target.classList.contains("ecl-mega-menu__mega-container-scrollable")||t||(this.trigger("onItemClick",{item:i,event:e}),(s=i.getAttribute("aria-expanded"))&&i.classList.contains("ecl-mega-menu__item")&&(e.preventDefault(),this.isDesktop?"true"===s?this.handleFirstPanel(i,"collapse"):(this.closeOpenDropdown(),this.handleFirstPanel(i,"expand")):this.handleFirstPanel(i,"expand")))}handleClickOnSubitem(e){var t=e.target.closest(this.subItemSelector);t&&t.hasAttribute("aria-expanded")&&(e.preventDefault(),e="true"===t.getAttribute("aria-expanded"),this.cloneItemInTheDrowdown(t),e?this.handleSecondPanel(t,"collapse"):this.handleSecondPanel(t,"expand"))}closeOpenDropdown(){this.enableScroll(),this.element.setAttribute("aria-expanded","false"),this.element.removeAttribute("data-expanded"),this.inner.classList.remove("ecl-mega-menu__inner--expanded"),this.inner.setAttribute("aria-hidden","true"),this.items.forEach(e=>{e.classList.remove("ecl-mega-menu__item--current"),e.hasAttribute("aria-expanded")&&(e.setAttribute("aria-expanded","false"),e.classList.remove("ecl-mega-menu__item--expanded"))}),this.subItems.forEach(e=>{e.classList.remove("ecl-mega-menu__subitem--current"),e.hasAttribute("aria-expanded")&&(e.classList.remove("ecl-mega-menu__subitem--expanded"),e.setAttribute("aria-expanded","false"),e.style.display="")}),(e=a(".ecl-mega-menu__sublist"))&&e.forEach(e=>{e.classList.remove("ecl-mega-menu__sublist--no-border")});(e=a(".ecl-mega-menu__parent-link",this.element))&&e.forEach(e=>{e.style.display=""});var e=this.element.getAttribute(this.labelOpenAttribute);this.toggleLabel&&e&&(this.toggleLabel.innerHTML=e),this.openPanel.num=0,this.focusTrap.deactivate(),this.trigger("onFocusTrapToggle",{active:!1}),this.isOpen=!1}handleFocusOut(e){var t=e.target;"true"!==this.element.getAttribute("aria-expanded")||t.parentElement.nextSibling||(e=e.relatedTarget,this.element.contains(e))||(this.focusTrap.activate(),this.trigger("onFocusTrapToggle",{active:!0,lastFocusedEl:t.parentElement}))}handleClickGlobal(e){e.target.classList.contains("ecl-mega-menu__mega-container-scrollable")||!e.target.classList.contains("ecl-mega-menu__overlay")&&this.element.contains(e.target)||this.closeOpenDropdown()}},e.Menu=class xe{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).MENU)?{}:t,(t=new xe(e,t)).init(),e.ECLMenu=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).openSelector)?"[data-ecl-menu-open]":i,s=void 0===(s=t.closeSelector)?"[data-ecl-menu-close]":s,n=void 0===(n=t.backSelector)?"[data-ecl-menu-back]":n,l=void 0===(l=t.innerSelector)?"[data-ecl-menu-inner]":l,a=void 0===(a=t.listSelector)?"[data-ecl-menu-list]":a,o=void 0===(o=t.itemSelector)?"[data-ecl-menu-item]":o,r=void 0===(r=t.linkSelector)?"[data-ecl-menu-link]":r,h=void 0===(h=t.buttonPreviousSelector)?"[data-ecl-menu-items-previous]":h,c=void 0===(c=t.buttonNextSelector)?"[data-ecl-menu-items-next]":c,d=void 0===(d=t.caretSelector)?"[data-ecl-menu-caret]":d,u=void 0===(u=t.megaSelector)?"[data-ecl-menu-mega]":u,m=void 0===(m=t.subItemSelector)?"[data-ecl-menu-subitem]":m,p=void 0===(p=t.maxLines)?2:p,v=void 0===(v=t.maxLinesAttribute)?"data-ecl-menu-max-lines":v,g=void 0===(g=t.labelOpenAttribute)?"data-ecl-menu-label-open":g,b=void 0===(b=t.labelCloseAttribute)?"data-ecl-menu-label-close":b,f=void 0===(f=t.attachClickListener)||f,y=void 0===(y=t.attachHoverListener)||y,L=void 0===(L=t.attachFocusListener)||L,E=void 0===(E=t.attachKeyListener)||E,C=void 0===(C=t.attachResizeListener)||C,w=void 0===(w=t.onCloseCallback)?null:w,t=void 0===(t=t.onOpenCallback)?null:t;if(this.supportedEvents=["onOpen","onClose"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.openSelector=i,this.closeSelector=s,this.backSelector=n,this.innerSelector=l,this.listSelector=a,this.itemSelector=o,this.linkSelector=r,this.buttonPreviousSelector=h,this.buttonNextSelector=c,this.caretSelector=d,this.megaSelector=u,this.subItemSelector=m,this.maxLines=p,this.maxLinesAttribute=v,this.labelOpenAttribute=g,this.labelCloseAttribute=b,this.attachClickListener=f,this.attachHoverListener=y,this.attachFocusListener=L,this.attachKeyListener=E,this.attachResizeListener=C,this.onOpenCallback=t,this.onCloseCallback=w,this.direction="ltr",this.open=null,this.close=null,this.toggleLabel=null,this.back=null,this.inner=null,this.itemsList=null,this.items=null,this.links=null,this.btnPrevious=null,this.btnNext=null,this.isOpen=!1,this.resizeTimer=null,this.isKeyEvent=!1,this.isDesktop=!1,this.hasOverflow=!1,this.offsetLeft=0,this.lastVisibleItem=null,this.currentItem=null,this.totalItemsWidth=0,this.breakpointL=996,this.handleClickOnOpen=this.handleClickOnOpen.bind(this),this.handleClickOnClose=this.handleClickOnClose.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleClickOnBack=this.handleClickOnBack.bind(this),this.handleClickOnNextItems=this.handleClickOnNextItems.bind(this),this.handleClickOnPreviousItems=this.handleClickOnPreviousItems.bind(this),this.handleClickOnCaret=this.handleClickOnCaret.bind(this),this.handleClickGlobal=this.handleClickGlobal.bind(this),this.handleHoverOnItem=this.handleHoverOnItem.bind(this),this.handleHoverOffItem=this.handleHoverOffItem.bind(this),this.handleFocusIn=this.handleFocusIn.bind(this),this.handleFocusOut=this.handleFocusOut.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.handleResize=this.handleResize.bind(this),this.useDesktopDisplay=this.useDesktopDisplay.bind(this),this.checkMenuOverflow=this.checkMenuOverflow.bind(this),this.checkMenuItem=this.checkMenuItem.bind(this),this.checkMegaMenu=this.checkMegaMenu.bind(this),this.closeOpenDropdown=this.closeOpenDropdown.bind(this),this.positionMenuOverlay=this.positionMenuOverlay.bind(this),this.disableScroll=this.disableScroll.bind(this),this.enableScroll=this.enableScroll.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.direction=getComputedStyle(this.element).direction,this.open=v(this.openSelector,this.element),this.close=v(this.closeSelector,this.element),this.toggleLabel=v(".ecl-link__label",this.open),this.back=v(this.backSelector,this.element),this.inner=v(this.innerSelector,this.element),this.itemsList=v(this.listSelector,this.element),this.btnPrevious=v(this.buttonPreviousSelector,this.element),this.btnNext=v(this.buttonNextSelector,this.element),this.items=a(this.itemSelector,this.element),this.subItems=a(this.subItemSelector,this.element),this.links=a(this.linkSelector,this.element),this.carets=a(this.caretSelector,this.element);var e=this.element.getAttribute(this.maxLinesAttribute);e&&(this.maxLines=e),this.isDesktop=this.useDesktopDisplay(),this.attachClickListener&&(this.open&&this.open.addEventListener("click",this.handleClickOnToggle),this.close&&this.close.addEventListener("click",this.handleClickOnClose),this.back&&this.back.addEventListener("click",this.handleClickOnBack),this.btnPrevious&&this.btnPrevious.addEventListener("click",this.handleClickOnPreviousItems),this.btnNext&&this.btnNext.addEventListener("click",this.handleClickOnNextItems),this.attachClickListener)&&document.addEventListener("click",this.handleClickGlobal),this.links&&this.links.forEach(e=>{this.attachFocusListener&&(e.addEventListener("focusin",this.closeOpenDropdown),e.addEventListener("focusin",this.handleFocusIn),e.addEventListener("focusout",this.handleFocusOut)),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard)}),this.carets&&this.carets.forEach(e=>{this.attachFocusListener&&(e.addEventListener("focusin",this.handleFocusIn),e.addEventListener("focusout",this.handleFocusOut)),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard),this.attachClickListener&&e.addEventListener("click",this.handleClickOnCaret)}),this.subItems&&this.subItems.forEach(e=>{e=v(".ecl-menu__sublink",e),this.attachKeyListener&&e&&e.addEventListener("keyup",this.handleKeyboard),this.attachFocusListener&&e&&e.addEventListener("focusout",this.handleFocusOut)}),this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.items&&this.items.forEach(e=>{this.checkMenuItem(e),this.totalItemsWidth+=e.offsetWidth,e.hasAttribute("data-ecl-has-children")&&this.attachHoverListener&&(e.addEventListener("mouseover",this.handleHoverOnItem),e.addEventListener("mouseout",this.handleHoverOffItem))}),this.positionMenuOverlay(),this.checkMenuOverflow(),this.currentItem&&("false"===this.currentItem.getAttribute("data-ecl-menu-item-visible")?this.btnNext:this.btnPrevious).classList.add("ecl-menu__item--current"),this.stickyInstance=new re.Sticky(this.element),this.focusTrap=r(this.element,{onActivate:()=>this.element.classList.add("trap-is-active"),onDeactivate:()=>this.element.classList.remove("trap-is-active")}),"rtl"===this.direction&&this.element.classList.add("ecl-menu--rtl"),setTimeout(()=>{this.element.classList.add("ecl-menu--transition")},500),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.stickyInstance&&this.stickyInstance.remove(),this.attachClickListener&&(this.open&&this.open.removeEventListener("click",this.handleClickOnToggle),this.close&&this.close.removeEventListener("click",this.handleClickOnClose),this.back&&this.back.removeEventListener("click",this.handleClickOnBack),this.btnPrevious&&this.btnPrevious.removeEventListener("click",this.handleClickOnPreviousItems),this.btnNext&&this.btnNext.removeEventListener("click",this.handleClickOnNextItems),this.attachClickListener)&&document.removeEventListener("click",this.handleClickGlobal),this.attachKeyListener&&this.carets&&this.carets.forEach(e=>{e.removeEventListener("keyup",this.handleKeyboard)}),this.items&&this.isDesktop&&this.items.forEach(e=>{e.hasAttribute("data-ecl-has-children")&&this.attachHoverListener&&(e.removeEventListener("mouseover",this.handleHoverOnItem),e.removeEventListener("mouseout",this.handleHoverOffItem))}),this.links&&this.links.forEach(e=>{this.attachFocusListener&&(e.removeEventListener("focusin",this.closeOpenDropdown),e.removeEventListener("focusin",this.handleFocusIn),e.removeEventListener("focusout",this.handleFocusOut)),this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard)}),this.carets&&this.carets.forEach(e=>{this.attachFocusListener&&(e.removeEventListener("focusin",this.handleFocusIn),e.removeEventListener("focusout",this.handleFocusOut)),this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard),this.attachClickListener&&e.removeEventListener("click",this.handleClickOnCaret)}),this.subItems&&this.subItems.forEach(e=>{e=v(".ecl-menu__sublink",e),this.attachKeyListener&&e&&e.removeEventListener("keyup",this.handleKeyboard),this.attachFocusListener&&e&&e.removeEventListener("focusout",this.handleFocusOut)}),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}disableScroll(){document.body.classList.add("no-scroll")}enableScroll(){document.body.classList.remove("no-scroll")}useDesktopDisplay(){return!(p.isMobileOnly||(p.isTablet?(this.element.classList.add("ecl-menu--forced-mobile"),1):window.innerWidth<this.breakpointL||(this.element.classList.remove("ecl-menu--forced-mobile"),0)))}handleResize(){return document.documentElement.scrollTop=0,document.body.scrollTop=0,this.element.classList.remove("ecl-menu--transition"),"rtl"===this.direction?this.element.classList.add("ecl-menu--rtl"):this.element.classList.remove("ecl-menu--rtl"),clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.element.classList.remove("ecl-menu--forced-mobile"),this.isDesktop=this.useDesktopDisplay(),this.isDesktop&&this.focusTrap.deactivate(),this.totalItemsWidth=0,this.items&&this.items.forEach(e=>{this.checkMenuItem(e),this.totalItemsWidth+=e.offsetWidth}),this.checkMenuOverflow(),this.positionMenuOverlay(),this.element.classList.add("ecl-menu--transition")},200),this}positionMenuOverlay(){var t=v(".ecl-menu__overlay",this.element);this.isDesktop?(this.enableScroll(),this.inner&&(this.inner.style.top=""),t&&(t.style.top="")):(this.isOpen&&this.disableScroll(),setTimeout(()=>{var e=v(".ecl-site-header__header",document);e&&(e=e.getBoundingClientRect(),e=Math.round(e.bottom),t&&(t.style.top=e+"px"),this.inner)&&(this.inner.style.top=e+"px")},500))}checkMenuOverflow(){this.itemsList||(this.itemsList=v(".ecl-menu__list",this.element)),this.itemsList&&this.inner&&this.btnNext&&this.btnPrevious&&this.items&&(this.hasOverflow=this.totalItemsWidth>this.inner.offsetWidth+16,this.hasOverflow&&this.isDesktop?(this.inner&&this.inner.classList.add("ecl-menu__inner--has-overflow"),this.items&&this.items.forEach(e=>{e.removeAttribute("data-ecl-menu-item-visible")}),0===this.offsetLeft?(this.btnNext.style.display="block","rtl"===this.direction?this.items.every(e=>e.getBoundingClientRect().left<this.itemsList.getBoundingClientRect().left?(this.lastVisibleItem=e,!1):(e.setAttribute("data-ecl-menu-item-visible",!0),!0)):this.items.every(e=>e.getBoundingClientRect().right>this.itemsList.getBoundingClientRect().right?(this.lastVisibleItem=e,!1):(e.setAttribute("data-ecl-menu-item-visible",!0),!0))):"rtl"===this.direction?this.items.forEach(e=>{e.getBoundingClientRect().right<=this.inner.getBoundingClientRect().right&&e.setAttribute("data-ecl-menu-item-visible",!0)}):this.items.forEach(e=>{e.getBoundingClientRect().left>=this.inner.getBoundingClientRect().left&&e.setAttribute("data-ecl-menu-item-visible",!0)})):(this.btnPrevious&&(this.btnPrevious.style.display="none"),this.btnNext&&(this.btnNext.style.display="none"),this.itemsList&&(this.itemsList.style.left="0"),this.inner&&this.inner.classList.remove("ecl-menu__inner--has-overflow"),this.offsetLeft=0,this.totalItemsWidth=0,this.lastVisibleItem=null))}checkMenuItem(e){var t=v(this.linkSelector,e);if(e.classList.contains("ecl-menu__item--current")&&(this.currentItem=e),this.isDesktop){if(!(this.maxLines<1)){e.style.alignItems="flex-start";for(var i=t.offsetWidth,s=window.getComputedStyle(t),n=parseInt(s.lineHeight,10)*this.maxLines+parseInt(s.paddingTop,10)+parseInt(s.paddingBottom,10);t.offsetHeight>n&&(t.style.width=(i+=1)+"px",!(1e3<i)););e.style.alignItems="unset"}}else t.style.width="auto"}checkMegaMenu(e){var t=v(this.megaSelector,e);if(t&&this.inner){if((i=a(this.subItemSelector,t)).length<5)e.classList.add("ecl-menu__item--col1");else if(i.length<9)e.classList.add("ecl-menu__item--col2");else{if(!(i.length<13))return e.classList.add("ecl-menu__item--full"),void("rtl"===this.direction?t.style.right=this.offsetLeft+"px":t.style.left=this.offsetLeft+"px");e.classList.add("ecl-menu__item--col3")}var i=t.getBoundingClientRect(),s=this.inner.getBoundingClientRect(),e=e.getBoundingClientRect(),i=i.width;s.width<e.left-s.left+i?t.classList.add("ecl-menu__mega--rtl"):t.classList.remove("ecl-menu__mega--rtl")}}handleKeyboard(e){var t=e.target,i=t.classList,s=this.element.getAttribute("aria-expanded"),n=t.closest(this.itemSelector);if("Escape"===e.key||"Esc"===e.key)document.activeElement===t&&t.blur(),"false"===s&&((l=v(".ecl-menu__button-caret",n))&&l.focus(),this.closeOpenDropdown());else{if(i.contains("ecl-menu__button-caret")&&"false"===s){if(32===e.keyCode||"Enter"===e.key)return void("true"===n.getAttribute("aria-expanded")?this.handleHoverOffItem(e):this.handleHoverOnItem(e));if("ArrowDown"===e.key)if(e.preventDefault(),l=v(".ecl-menu__sublink:first-of-type",n))return this.handleHoverOnItem(e),void l.focus()}if(i.contains("ecl-menu__link")||i.contains("ecl-menu__button-caret")){if("ArrowLeft"===e.key||"ArrowUp"===e.key){if(e.preventDefault(),(s=t.previousSibling)&&s.classList.contains("ecl-menu__link"))return void s.focus();if(s=t.parentElement.previousSibling){var l,n=s.classList.contains("ecl-menu__item--has-children")?".ecl-menu__button-caret":".ecl-menu__link";if(l=v(n,s))return void l.focus()}}if("ArrowRight"===e.key||"ArrowDown"===e.key){if(e.preventDefault(),(n=t.nextSibling)&&n.classList.contains("ecl-menu__button-caret"))return void n.focus();(n=t.parentElement.nextSibling)&&(s=v(".ecl-menu__link",n))&&s.focus()}this.closeOpenDropdown()}i.contains("ecl-menu__sublink")&&("ArrowDown"===e.key&&(l=t.parentElement.nextSibling)&&(n=v(".ecl-menu__sublink",l))?n.focus():"ArrowUp"===e.key&&((s=t.parentElement.previousSibling)?(i=v(".ecl-menu__sublink",s))&&i.focus():(l=v(this.itemSelector+'[aria-expanded="true"] '+this.caretSelector,this.element))&&l.focus()))}}handleKeyboardGlobal(e){var t=this.element.getAttribute("aria-expanded");"Escape"!==e.key&&"Esc"!==e.key||("true"===t&&this.handleClickOnClose(),this.items.forEach(e=>{e.setAttribute("aria-expanded","false")}),this.carets.forEach(e=>{e.setAttribute("aria-expanded","false")}))}handleClickOnOpen(e){e.preventDefault(),this.element.setAttribute("aria-expanded","true"),this.inner.setAttribute("aria-hidden","false"),this.disableScroll(),this.isOpen=!0;var t=this.element.getAttribute(this.labelCloseAttribute);return this.toggleLabel&&t&&(this.toggleLabel.innerHTML=t),this.trigger("onOpen",e),this}handleClickOnClose(e){this.element.setAttribute("aria-expanded","false"),this.inner.classList.remove("ecl-menu__inner--expanded"),this.inner.setAttribute("aria-hidden","true"),this.items.forEach(e=>{e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false")});var t=this.element.getAttribute(this.labelOpenAttribute);return this.toggleLabel&&t&&(this.toggleLabel.innerHTML=t),this.enableScroll(),this.focusTrap.deactivate(),this.isOpen=!1,this.trigger("onClose",e),this}handleClickOnToggle(e){e.preventDefault(),this.isOpen?this.handleClickOnClose(e):this.handleClickOnOpen(e)}handleClickOnBack(){return this.inner.classList.remove("ecl-menu__inner--expanded"),this.items.forEach(e=>{e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false")}),this}handleClickOnPreviousItems(){this.itemsList&&this.btnNext&&(this.offsetLeft=0,"rtl"===this.direction?(this.itemsList.style.right="0",this.itemsList.style.left="auto"):(this.itemsList.style.left="0",this.itemsList.style.right="auto"),this.btnPrevious.style.display="none",this.btnNext.style.display="block",this.items)&&this.items.forEach(e=>{this.checkMenuItem(e),e.toggleAttribute("data-ecl-menu-item-visible")})}handleClickOnNextItems(){this.itemsList&&this.items&&this.btnPrevious&&this.lastVisibleItem&&(this.btnPrevious.style.display="block",this.btnNext.style.display="none","rtl"===this.direction?(this.offsetLeft=this.itemsList.getBoundingClientRect().right-this.lastVisibleItem.getBoundingClientRect().right-this.btnPrevious.offsetWidth,this.itemsList.style.right="-"+this.offsetLeft+"px",this.itemsList.style.left="auto"):(this.offsetLeft=this.lastVisibleItem.getBoundingClientRect().left-this.itemsList.getBoundingClientRect().left-this.btnPrevious.offsetWidth,this.itemsList.style.left="-"+this.offsetLeft+"px",this.itemsList.style.right="auto"),this.items)&&this.items.forEach(e=>{this.checkMenuItem(e),e.toggleAttribute("data-ecl-menu-item-visible")})}handleClickOnCaret(e){var t;"false"!==this.element.getAttribute("aria-expanded")&&(this.inner.classList.add("ecl-menu__inner--expanded"),t=e.target.closest(this.itemSelector),this.items.forEach(e=>{e===t?(e.classList.add("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","true")):(e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false"))}),this.checkMegaMenu(t))}handleHoverOnItem(e){var i=e.target.closest(this.itemSelector);this.hasOverflow&&!i.hasAttribute("data-ecl-menu-item-visible")||(this.items.forEach(e=>{var t=v(this.caretSelector,e);e===i?(e.setAttribute("aria-expanded","true"),t&&t.setAttribute("aria-expanded","true")):(e.setAttribute("aria-expanded","false"),t&&(t.setAttribute("aria-expanded","false"),t.blur()))}),this.checkMegaMenu(i))}handleHoverOffItem(e){return(e=e.target.closest(this.itemSelector)).setAttribute("aria-expanded","false"),(e=v(this.caretSelector,e))&&e.setAttribute("aria-expanded","false"),this}closeOpenDropdown(){var e=v(this.itemSelector+"[aria-expanded='true']",this.element);e&&(e.setAttribute("aria-expanded","false"),e=v(this.caretSelector,e))&&e.setAttribute("aria-expanded","false")}handleFocusIn(e){e=e.target,this.isDesktop&&this.hasOverflow&&(e.closest("[data-ecl-menu-item]").hasAttribute("data-ecl-menu-item-visible")||(0===this.offsetLeft?this.handleClickOnNextItems():this.handleClickOnPreviousItems()))}handleFocusOut(e){var t,e=e.target;"true"!==this.element.getAttribute("aria-expanded")||e.parentElement.nextSibling||(t=v(".ecl-menu__button-caret",e.parentElement))&&e!==t||(e=document.activeElement,this.element.contains(e))||this.focusTrap.activate()}handleClickGlobal(e){!this.isOpen||this.inner.contains(e.target)||this.open.contains(e.target)||this.handleClickOnClose(e)}},e.Modal=class _e{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).MODAL)?{}:t,(t=new _e(e,t)).init(),e.ECLModal=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).toggleSelector)?"":i,s=void 0===(s=t.closeSelector)?"[data-ecl-modal-close]":s,n=void 0===(n=t.scrollSelector)?"[data-ecl-modal-scroll]":n,l=void 0===(l=t.attachClickListener)||l,t=void 0===(t=t.attachKeyListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=i,this.closeSelector=s,this.scrollSelector=n,this.attachClickListener=l,this.attachKeyListener=t,this.toggle=null,this.close=null,this.scroll=null,this.focusTrap=null,this.openModal=this.openModal.bind(this),this.closeModal=this.closeModal.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),""===this.toggleSelector&&(this.toggleSelector="#"+this.element.getAttribute("data-ecl-modal-toggle")),this.toggle=document.querySelector(this.toggleSelector),this.toggle&&(this.toggle.setAttribute("aria-controls",this.element.id),this.toggle.getAttribute("aria-haspopup")||this.toggle.setAttribute("aria-haspopup","dialog")),this.close=a(this.closeSelector,this.element),this.scroll=v(this.scrollSelector,this.element),this.focusTrap=r(this.element),this.isDialogSupported=!0,window.HTMLDialogElement||(this.isDialogSupported=!1),this.toggle&&this.attachClickListener&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.close&&this.attachClickListener&&this.close.forEach(e=>{e.addEventListener("click",this.closeModal)}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.toggle&&this.attachClickListener&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.close&&this.attachClickListener&&this.close.forEach(e=>{e.removeEventListener("click",this.closeModal)}),this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element)}checkScroll(){this.scroll&&(this.scroll.parentNode.classList.remove("ecl-modal__body--has-scroll"),this.scroll.scrollHeight>this.scroll.clientHeight)&&this.scroll.parentNode.classList.add("ecl-modal__body--has-scroll")}handleClickOnToggle(e){e.preventDefault(),"true"===this.toggle.getAttribute("aria-expanded")?this.closeModal():this.openModal()}openModal(){this.isDialogSupported?this.element.showModal():this.element.setAttribute("open",""),this.checkScroll(),this.focusTrap.activate()}closeModal(){this.isDialogSupported?this.element.close():this.element.removeAttribute("open"),this.focusTrap.active&&this.focusTrap.deactivate()}handleKeyboardGlobal(e){"Escape"!==e.key&&"Esc"!==e.key||this.closeModal()}},e.NewsTicker=class Te{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).NEWS_TICKER)?{}:t,(t=new Te(e,t)).init(),e.ECLNewsTicker=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).playSelector)?"[data-ecl-news-ticker-play]":i,s=void 0===(s=t.pauseSelector)?"[data-ecl-news-ticker-pause]":s,n=void 0===(n=t.prevSelector)?"[data-ecl-news-ticker-prev]":n,l=void 0===(l=t.nextSelector)?"[data-ecl-news-ticker-next]":l,a=void 0===(a=t.containerClass)?".ecl-news-ticker__container":a,o=void 0===(o=t.contentClass)?".ecl-news-ticker__content":o,r=void 0===(r=t.slidesClass)?".ecl-news-ticker__slides":r,h=void 0===(h=t.slideClass)?".ecl-news-ticker__slide":h,c=void 0===(c=t.currentSlideClass)?".ecl-news-ticker__counter--current":c,d=void 0===(d=t.controlsClass)?".ecl-news-ticker__controls":d,u=void 0===(u=t.attachClickListener)||u,t=void 0===(t=t.attachResizeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.playSelector=i,this.pauseSelector=s,this.prevSelector=n,this.nextSelector=l,this.containerClass=a,this.contentClass=o,this.slidesClass=r,this.slideClass=h,this.currentSlideClass=c,this.controlsClass=d,this.attachClickListener=u,this.attachResizeListener=t,this.container=null,this.content=null,this.slides=null,this.btnPlay=null,this.btnPause=null,this.btnPrev=null,this.btnNext=null,this.index=1,this.total=0,this.allowShift=!0,this.autoPlay=null,this.autoPlayInterval=null,this.hoverAutoPlay=null,this.resizeTimer=null,this.cloneFirstSLide=null,this.cloneLastSLide=null,this.handleAutoPlay=this.handleAutoPlay.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.shiftSlide=this.shiftSlide.bind(this),this.checkIndex=this.checkIndex.bind(this),this.moveSlides=this.moveSlides.bind(this),this.handleResize=this.handleResize.bind(this),this.handleFocus=this.handleFocus.bind(this)}init(){var e,t;if(ECL)return ECL.components=ECL.components||new Map,this.btnPlay=v(this.playSelector,this.element),this.btnPause=v(this.pauseSelector,this.element),this.btnPrev=v(this.prevSelector,this.element),this.btnNext=v(this.nextSelector,this.element),this.slidesContainer=v(this.slidesClass,this.element),this.container=v(this.containerClass,this.element),this.content=v(this.contentClass,this.element),this.controls=v(this.controlsClass,this.element),this.slides=a(this.slideClass,this.element),this.total=this.slides.length,this.total<=1&&this.controls?(this.content.style.height="auto",!(this.controls.style.display="none")):(e=this.slides[0],t=this.slides[this.slides.length-1],this.cloneFirstSLide=e.cloneNode(!0),this.cloneLastSLide=t.cloneNode(!0),this.slidesContainer.appendChild(this.cloneFirstSLide),this.slidesContainer.insertBefore(this.cloneLastSLide,e),this.slides=a(this.slideClass,this.element),this.handleResize(),this.handleAutoPlay(),this.attachClickListener&&this.btnPlay&&this.btnPause&&(this.btnPlay.addEventListener("click",this.handleAutoPlay),this.btnPause.addEventListener("click",this.handleAutoPlay)),this.attachClickListener&&this.btnNext&&this.btnNext.addEventListener("click",this.shiftSlide.bind(this,1,!0)),this.attachClickListener&&this.btnPrev&&this.btnPrev.addEventListener("click",this.shiftSlide.bind(this,-1,!0)),this.slidesContainer&&(this.slidesContainer.addEventListener("transitionend",this.checkIndex),this.slidesContainer.addEventListener("mouseover",this.handleMouseOver),this.slidesContainer.addEventListener("mouseout",this.handleMouseOut)),this.container&&this.container.addEventListener("focus",this.handleFocus,!0),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this),this);throw new TypeError("Called init but ECL is not present")}destroy(){this.cloneFirstSLide&&this.cloneLastSLide&&(this.cloneFirstSLide.remove(),this.cloneLastSLide.remove()),this.btnPlay&&this.btnPlay.replaceWith(this.btnPlay.cloneNode(!0)),this.btnPause&&this.btnPause.replaceWith(this.btnPause.cloneNode(!0)),this.btnNext&&this.btnNext.replaceWith(this.btnNext.cloneNode(!0)),this.btnPrev&&this.btnPrev.replaceWith(this.btnPrev.cloneNode(!0)),this.slidesContainer&&(this.slidesContainer.removeEventListener("transitionend",this.checkIndex),this.slidesContainer.removeEventListener("mouseover",this.handleMouseOver),this.slidesContainer.removeEventListener("mouseout",this.handleMouseOut)),this.container&&this.container.removeEventListener("focus",this.handleFocus,!0),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.autoPlayInterval&&(clearInterval(this.autoPlayInterval),this.autoPlay=null),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}shiftSlide(e,t){this.allowShift&&(this.index=1===e?this.index+1:this.index-1,this.moveSlides(!0)),t&&this.autoPlay&&this.handleAutoPlay(),this.allowShift=!1}moveSlides(e){var t=this.slides[this.index].offsetTop,i=this.slides[this.index].offsetHeight;this.content.style.height=i+"px",this.slidesContainer.style.transitionDuration=e?"0.4s":"1ms",this.slidesContainer.style.transform="translate3d(0px, -"+t+"px, 0px)"}checkIndex(){0===this.index&&(this.index=this.total,this.moveSlides(!1)),this.index===this.total+1&&(this.index=1,this.moveSlides(!1)),v(this.currentSlideClass,this.element).textContent=this.index,this.slides&&this.slides.forEach((e,t)=>{var i=v(".ecl-link",e);this.index===t?(e.removeAttribute("inert","true"),i&&i.removeAttribute("tabindex",-1)):(e.setAttribute("inert","true"),i&&i.setAttribute("tabindex",-1))}),this.allowShift=!0}handleAutoPlay(){var e;this.autoPlay?(clearInterval(this.autoPlayInterval),this.autoPlay=!1,e=document.activeElement===this.btnPause,this.btnPlay.style.display="flex",this.btnPause.style.display="none",e&&this.btnPlay.focus()):(this.autoPlayInterval=setInterval(()=>{this.shiftSlide(1)},5e3),this.autoPlay=!0,e=document.activeElement===this.btnPlay,this.btnPlay.style.display="none",this.btnPause.style.display="flex",e&&this.btnPause.focus())}handleMouseOver(){return this.hoverAutoPlay=this.autoPlay,this.hoverAutoPlay&&this.handleAutoPlay(),this}handleMouseOut(){return this.hoverAutoPlay&&this.handleAutoPlay(),this}handleResize(){this.moveSlides(!1)}handleFocus(e){return(e=e.target)&&e.contains(document.activeElement)&&this.autoPlay&&this.handleAutoPlay(),this}},e.Notification=class Ie{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).NOTIFICATION)?{}:t,(t=new Ie(e,t)).init(),e.ECLNotification=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).closeSelector)?"[data-ecl-notification-close]":i,t=void 0===(t=t.attachClickListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.closeSelector=i,this.attachClickListener=t,this.close=null,this.handleClickOnClose=this.handleClickOnClose.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.close=v(this.closeSelector,this.element),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.handleClickOnClose),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnClose),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnClose(){return this.element.parentNode&&this.element.parentNode.removeChild(this.element),this}},e.Popover=class Me{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).POPOVER)?{}:t,(t=new Me(e,t)).init(),e.ECLPopover=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).toggleSelector)?"[data-ecl-popover-toggle]":i,s=void 0===(s=t.closeSelector)?"[data-ecl-popover-close]":s,n=void 0===(n=t.attachClickListener)||n,t=void 0===(t=t.attachKeyListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=i,this.closeSelector=s,this.attachClickListener=n,this.attachKeyListener=t,this.toggle=null,this.close=null,this.target=null,this.container=null,this.resizeTimer=null,this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.positionPopover=this.positionPopover.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.handleClickGlobal=this.handleClickGlobal.bind(this),this.checkPosition=this.checkPosition.bind(this),this.resetStyles=this.resetStyles.bind(this),this.POPOVER_CLASSES={TOP:"ecl-popover--top",BOTTOM:"ecl-popover--bottom",LEFT:"ecl-popover--left",RIGHT:"ecl-popover--right",PUSH_TOP:"ecl-popover--push-top",PUSH_BOTTOM:"ecl-popover--push-bottom",PUSH_LEFT:"ecl-popover--push-left",PUSH_RIGHT:"ecl-popover--push-right"}}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,this.toggle=v(this.toggleSelector,this.element),this.close=v(this.closeSelector,this.element),this.container=v(".ecl-popover__container",this.element),this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),this.attachClickListener&&(document.addEventListener("click",this.handleClickGlobal),this.close)&&this.close.addEventListener("click",this.handleClickOnToggle),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),!this.target)throw new TypeError("Target has to be provided for popover (aria-controls)");window.addEventListener("resize",this.checkPosition),document.addEventListener("scroll",this.checkPosition),this.attachClickListener&&this.toggle&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnToggle),window.removeEventListener("resize",this.checkPosition),document.removeEventListener("scroll",this.checkPosition),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.attachClickListener&&document.removeEventListener("click",this.handleClickGlobal),"true"===this.toggle.getAttribute("aria-expanded")&&this.closePopover(),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnToggle(e){e.preventDefault(),"true"===this.toggle.getAttribute("aria-expanded")?this.closePopover():(this.openPopover(),this.positionPopover())}openPopover(){this.toggle.setAttribute("aria-expanded","true"),this.target.hidden=!1}closePopover(){this.toggle.setAttribute("aria-expanded","false"),this.resetStyles(),this.target.hidden=!0}resetStyles(){Object.keys(this.POPOVER_CLASSES).forEach(e=>{Object.prototype.hasOwnProperty.call(this.POPOVER_CLASSES,e)&&this.element.classList.remove(this.POPOVER_CLASSES[e])}),this.target.style.setProperty("--ecl-popover-position",""),this.container.style.left="",this.container.style.right="",this.container.style.top="",this.container.style.bottom="",this.container.style.transform="",this.target.firstElementChild.width=""}positionPopover(){this.resetStyles();var e=this.toggle.getBoundingClientRect(),t=window.innerHeight,i=window.innerWidth,s=e.top,n=t-e.bottom,l=e.left,e=i-e.right,a="",a=n<s&&l<s&&e<s?"top":l<n&&e<n?"bottom":e<l?"left":"right",s=(this.element.classList.add("ecl-popover--"+a),this.handlePushClass(i,t,a),this.target.firstElementChild),n=window.getComputedStyle(s),t=parseInt(n.getPropertyValue("max-width"),10),o=parseInt(n.getPropertyValue("min-width"),10),n=2*parseInt(n.getPropertyValue("padding-left"),10),r="";r="left"===a||"right"===a?.9*("left"===a?l:e):.9*(i-(this.toggle.getBoundingClientRect().right-this.toggle.getBoundingClientRect().left)/2+this.target.offsetWidth/2),s.style.width=t+n<r?t+"px":r<o+n?o+"px":r-n+"px"}handlePushClass(e,t,i){var s=this.toggle.getBoundingClientRect(),n=this.target.getBoundingClientRect();"left"===i||"right"===i?n.top<0?(this.element.classList.add(this.POPOVER_CLASSES.PUSH_TOP),this.container.style.top="-"+Math.round(s.top)+"px",this.container.style.bottom="",this.container.style.transform=""):n.bottom>t&&(this.element.classList.add(this.POPOVER_CLASSES.PUSH_BOTTOM),this.container.style.bottom="-"+Math.round(t-(s.bottom+8))+"px",this.container.style.top="",this.container.style.transform=""):(n.left<0&&(this.element.classList.add(this.POPOVER_CLASSES.PUSH_LEFT),this.container.style.left="-"+s.left+"px",this.container.style.right="auto",this.container.style.transform="none"),n.right>e&&(this.element.classList.add(this.POPOVER_CLASSES.PUSH_RIGHT),this.container.style.right="-"+(e-s.right)+"px",this.container.style.left="auto",this.container.style.transform="none")),this.handleArrowPosition(i)}handleArrowPosition(e){var t=this.toggle.getBoundingClientRect(),i=this.target.getBoundingClientRect();"left"===e||"right"===e?this.element.classList.contains(this.POPOVER_CLASSES.PUSH_BOTTOM)?this.target.style.setProperty("--ecl-popover-position",Math.round(t.top-i.top+t.height/2)+"px"):this.element.classList.contains(this.POPOVER_CLASSES.PUSH_TOP)&&this.target.style.setProperty("--ecl-popover-position",Math.round(i.top+t.top+t.height/2)+"px"):this.element.classList.contains(this.POPOVER_CLASSES.PUSH_RIGHT)?this.target.style.setProperty("--ecl-popover-position",Math.round(i.right-(t.right-t.width/2))+"px"):this.element.classList.contains(this.POPOVER_CLASSES.PUSH_LEFT)&&this.target.style.setProperty("--ecl-popover-position",Math.round(i.left+t.left+t.width/2)+"px")}checkPosition(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{"true"===this.toggle.getAttribute("aria-expanded")&&this.positionPopover()},200)}handleKeyboardGlobal(e){!this.target||"Escape"!==e.key&&"Esc"!==e.key||this.closePopover()}handleClickGlobal(e){!this.target||"true"!==this.toggle.getAttribute("aria-expanded")||this.target.contains(e.target)||this.toggle.contains(e.target)||this.closePopover()}},e.Range=class Pe{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).RANGE)?{}:t,(t=new Pe(e,t)).init(),e.ECLRange=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).rangeInputSelector)?"[data-ecl-range-input]":i,s=void 0===(s=t.currentValueSelector)?"[data-ecl-range-value-current]":s,t=void 0===(t=t.attachChangeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.rangeInputSelector=i,this.currentValueSelector=s,this.attachChangeListener=t,this.rangeInput=null,this.currentValue=null,this.handleChange=this.handleChange.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.rangeInput=v(this.rangeInputSelector,this.element),this.currentValue=v(this.currentValueSelector,this.element),this.rangeInput&&this.currentValue&&(this.currentValue.innerHTML=this.rangeInput.value,this.attachChangeListener)&&this.rangeInput.addEventListener("input",this.handleChange),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachChangeListener&&this.rangeInput&&this.currentValue&&this.rangeInput.removeEventListener("input",this.handleChange),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleChange(){this.currentValue.innerHTML=this.rangeInput.value}},e.Select=N,e.SiteHeader=class Ne{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).SITE_HEADER_CORE)?{}:t,(t=new Ne(e,t)).init(),e.ECLSiteHeader=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).containerSelector)?"[data-ecl-site-header-top]":i,s=void 0===(s=t.languageLinkSelector)?"[data-ecl-language-selector]":s,n=void 0===(n=t.languageListOverlaySelector)?"[data-ecl-language-list-overlay]":n,l=void 0===(l=t.languageListEuSelector)?"[data-ecl-language-list-eu]":l,a=void 0===(a=t.languageListNonEuSelector)?"[data-ecl-language-list-non-eu]":a,o=void 0===(o=t.closeOverlaySelector)?"[data-ecl-language-list-close]":o,r=void 0===(r=t.searchToggleSelector)?"[data-ecl-search-toggle]":r,h=void 0===(h=t.searchFormSelector)?"[data-ecl-search-form]":h,c=void 0===(c=t.loginToggleSelector)?"[data-ecl-login-toggle]":c,d=void 0===(d=t.loginBoxSelector)?"[data-ecl-login-box]":d,u=void 0===(u=t.attachClickListener)||u,m=void 0===(m=t.attachKeyListener)||m,t=void 0===(t=t.attachResizeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.containerSelector=i,this.languageLinkSelector=s,this.languageListOverlaySelector=n,this.languageListEuSelector=l,this.languageListNonEuSelector=a,this.closeOverlaySelector=o,this.searchToggleSelector=r,this.searchFormSelector=h,this.loginToggleSelector=c,this.loginBoxSelector=d,this.attachClickListener=u,this.attachKeyListener=m,this.attachResizeListener=t,this.languageMaxColumnItems=8,this.languageLink=null,this.languageListOverlay=null,this.languageListEu=null,this.languageListNonEu=null,this.close=null,this.focusTrap=null,this.searchToggle=null,this.searchForm=null,this.loginToggle=null,this.loginBox=null,this.resizeTimer=null,this.openOverlay=this.openOverlay.bind(this),this.closeOverlay=this.closeOverlay.bind(this),this.toggleOverlay=this.toggleOverlay.bind(this),this.toggleSearch=this.toggleSearch.bind(this),this.toggleLogin=this.toggleLogin.bind(this),this.setLoginArrow=this.setLoginArrow.bind(this),this.setSearchArrow=this.setSearchArrow.bind(this),this.handleKeyboardLanguage=this.handleKeyboardLanguage.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.handleClickGlobal=this.handleClickGlobal.bind(this),this.handleResize=this.handleResize.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.arrowSize="0.5rem",this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),this.attachClickListener&&document.addEventListener("click",this.handleClickGlobal),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.container=v(this.containerSelector),this.languageLink=v(this.languageLinkSelector),this.languageListOverlay=v(this.languageListOverlaySelector),this.languageListEu=v(this.languageListEuSelector),this.languageListNonEu=v(this.languageListNonEuSelector),this.close=v(this.closeOverlaySelector),this.focusTrap=r(this.languageListOverlay,{onDeactivate:this.closeOverlay,allowOutsideClick:!0}),this.attachClickListener&&this.languageLink&&this.languageLink.addEventListener("click",this.toggleOverlay),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.toggleOverlay),this.attachKeyListener&&this.languageLink&&this.languageLink.addEventListener("keydown",this.handleKeyboardLanguage),this.searchToggle=v(this.searchToggleSelector),this.searchForm=v(this.searchFormSelector),this.attachClickListener&&this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=v(this.loginToggleSelector),this.loginBox=v(this.loginBoxSelector),this.attachClickListener&&this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.languageLink&&this.languageLink.removeEventListener("click",this.toggleOverlay),this.focusTrap&&this.focusTrap.deactivate(),this.attachKeyListener&&this.languageLink&&this.languageLink.removeEventListener("keydown",this.handleKeyboardLanguage),this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.toggleOverlay),this.attachClickListener&&this.searchToggle&&this.searchToggle.removeEventListener("click",this.toggleSearch),this.attachClickListener&&this.loginToggle&&this.loginToggle.removeEventListener("click",this.toggleLogin),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.attachClickListener&&document.removeEventListener("click",this.handleClickGlobal),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}updateOverlay(){var e=1,t=1,i=(this.languageListEu&&(i=a(".ecl-site-header__language-item",this.languageListEu),1<(e=Math.ceil(i.length/this.languageMaxColumnItems)))&&this.languageListEu.classList.add("ecl-site-header__language-category--"+e+"-col"),this.languageListNonEu&&(i=a(".ecl-site-header__language-item",this.languageListNonEu),1<(t=Math.ceil(i.length/this.languageMaxColumnItems)))&&this.languageListNonEu.classList.add("ecl-site-header__language-category--"+t+"-col"),this.languageListEu?this.languageListEu.parentNode.classList.remove("ecl-site-header__language-content--stack"):this.languageListNonEu&&this.languageListNonEu.parentNode.classList.remove("ecl-site-header__language-content--stack"),this.languageListOverlay.getBoundingClientRect()),s=this.container.getBoundingClientRect(),e=(i.width>s.width&&(this.languageListEu?this.languageListEu.parentNode.classList.add("ecl-site-header__language-content--stack"):this.languageListNonEu&&this.languageListNonEu.parentNode.classList.add("ecl-site-header__language-content--stack"),this.languageListNonEu)&&(this.languageListNonEu.classList.remove("ecl-site-header__language-category--"+t+"-col"),this.languageListNonEu.classList.add("ecl-site-header__language-category--"+Math.max(e,t)+"-col")),this.languageListOverlay.classList.remove("ecl-site-header__language-container--push-right"),this.languageListOverlay.classList.remove("ecl-site-header__language-container--full"),this.languageListOverlay.style.removeProperty("--ecl-language-arrow-position"),this.languageListOverlay.style.removeProperty("right"),i=this.languageListOverlay.getBoundingClientRect(),window.innerWidth);i.right>e&&(t=this.languageLink.getBoundingClientRect(),this.languageListOverlay.classList.add("ecl-site-header__language-container--push-right"),this.languageListOverlay.style.setProperty("right","-"+(s.right-t.right)+"px"),e=s.right-t.right+t.width/2,this.languageListOverlay.style.setProperty("--ecl-language-arrow-position","calc("+e+"px - "+this.arrowSize+")")),0===i.left&&(s=this.languageLink.getBoundingClientRect(),this.languageListOverlay.classList.add("ecl-site-header__language-container--full"),this.languageListOverlay.style.removeProperty("right"),t=i.right-s.right+s.width/2,this.languageListOverlay.style.setProperty("--ecl-language-arrow-position","calc("+t+"px - "+this.arrowSize+")")),this.loginBox&&this.loginBox.classList.contains("ecl-site-header__login-box--active")&&this.setLoginArrow(),this.searchForm&&this.searchForm.classList.contains("ecl-site-header__search--active")&&this.setSearchArrow()}openOverlay(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageLink.setAttribute("aria-expanded","true")}closeOverlay(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageLink.setAttribute("aria-expanded","false")}toggleOverlay(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.updateOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())}handleResize(){this.languageListOverlay&&!this.languageListOverlay.hasAttribute("hidden")&&(this.loginBox&&this.loginBox.classList.contains("ecl-site-header__login-box--active")||this.searchForm&&this.searchForm.classList.contains("ecl-site-header__search--active"))&&(clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.updateOverlay()},200))}handleKeyboardLanguage(e){32!==e.keyCode&&"Enter"!==e.key||this.toggleOverlay(e)}toggleSearch(e){var t;this.searchForm&&(e.preventDefault(),t="true"===this.searchToggle.getAttribute("aria-expanded"),this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded")&&this.toggleLogin(e),this.searchToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.searchForm.classList.remove("ecl-site-header__search--active"):(this.searchForm.classList.add("ecl-site-header__search--active"),this.setSearchArrow()))}setLoginArrow(){var e;0===this.loginBox.getBoundingClientRect().x&&(e=this.loginToggle.getBoundingClientRect(),e=window.innerWidth-e.right+e.width/2,this.loginBox.style.setProperty("--ecl-login-arrow-position","calc("+e+"px - "+this.arrowSize+")"))}setSearchArrow(){var e;0===this.searchForm.getBoundingClientRect().x&&(e=this.searchToggle.getBoundingClientRect(),e=window.innerWidth-e.right+e.width/2,this.searchForm.style.setProperty("--ecl-search-arrow-position","calc("+e+"px - "+this.arrowSize+")"))}toggleLogin(e){var t;this.loginBox&&(e.preventDefault(),t="true"===this.loginToggle.getAttribute("aria-expanded"),this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded")&&this.toggleSearch(e),this.loginToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.loginBox.classList.remove("ecl-site-header__login-box--active"):(this.loginBox.classList.add("ecl-site-header__login-box--active"),this.setLoginArrow()))}handleKeyboardGlobal(e){var t;this.languageLink&&(t=this.languageLink.getAttribute("aria-expanded"),"Escape"!==e.key&&"Esc"!==e.key||"true"===t&&this.toggleOverlay(e))}handleClickGlobal(e){var t,i,s;(this.languageLink||this.searchToggle||this.loginToggle)&&(t=this.languageLink&&this.languageLink.getAttribute("aria-expanded"),i=this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded"),s=this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded"),"true"!==t||this.languageListOverlay.contains(e.target)||this.languageLink.contains(e.target)||this.toggleOverlay(e),!i||this.loginBox.contains(e.target)||this.loginToggle.contains(e.target)||this.toggleLogin(e),!s||this.searchForm.contains(e.target)||this.searchToggle.contains(e.target)||this.toggleSearch(e))}},e.Table=D,e.Tabs=class De{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).TABS)?{}:t,(t=new De(e,t)).init(),e.ECLTabs=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).containerSelector)?".ecl-tabs__container":i,s=void 0===(s=t.listSelector)?".ecl-tabs__list":s,n=void 0===(n=t.listItemsSelector)?".ecl-tabs__item:not(.ecl-tabs__item--more)":n,l=void 0===(l=t.moreItemSelector)?".ecl-tabs__item--more":l,a=void 0===(a=t.moreButtonSelector)?".ecl-tabs__toggle":a,o=void 0===(o=t.moreLabelSelector)?".ecl-tabs__toggle .ecl-button__label":o,r=void 0===(r=t.prevSelector)?".ecl-tabs__prev":r,h=void 0===(h=t.nextSelector)?".ecl-tabs__next":h,c=void 0===(c=t.attachClickListener)||c,t=void 0===(t=t.attachResizeListener)||t;if(this.supportedEvents=["onToggle"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.containerSelector=i,this.listSelector=s,this.listItemsSelector=n,this.moreItemSelector=l,this.moreButtonSelector=a,this.moreLabelSelector=o,this.prevSelector=r,this.nextSelector=h,this.attachClickListener=c,this.attachResizeListener=t,this.container=null,this.list=null,this.listItems=null,this.moreItem=null,this.moreButton=null,this.moreButtonActive=!1,this.moreLabel=null,this.moreLabelValue=null,this.dropdown=null,this.dropdownList=null,this.dropdownItems=null,this.allowShift=!0,this.buttonNextSize=0,this.index=0,this.total=0,this.tabsKey=[],this.firstTab=null,this.lastTab=null,this.direction="ltr",this.isMobile=!1,this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleResize=this.handleResize.bind(this),this.closeMoreDropdown=this.closeMoreDropdown.bind(this),this.shiftTabs=this.shiftTabs.bind(this),this.handleKeyboardOnTabs=this.handleKeyboardOnTabs.bind(this),this.moveFocus=this.moveFocus.bind(this),this.arrowFocusToTab=this.arrowFocusToTab.bind(this),this.tabsKeyEvents=this.tabsKeyEvents.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.container=v(this.containerSelector,this.element),this.list=v(this.listSelector,this.element),this.listItems=a(this.listItemsSelector,this.element),this.moreItem=v(this.moreItemSelector,this.element),this.moreButton=v(this.moreButtonSelector,this.element),this.moreLabel=v(this.moreLabelSelector,this.element),this.moreLabelValue=this.moreLabel.innerText,this.btnPrev=v(this.prevSelector,this.element),this.btnNext=v(this.nextSelector,this.element),this.total=this.listItems.length,this.moreButton&&(this.dropdown=document.createElement("div"),this.dropdown.classList.add("ecl-tabs__dropdown"),this.dropdownList=document.createElement("div"),this.dropdownList.classList.add("ecl-tabs__dropdown-list"),this.listItems.forEach(e=>{this.dropdownList.appendChild(e.cloneNode(!0))}),this.dropdown.appendChild(this.dropdownList),this.moreItem.appendChild(this.dropdown),this.dropdownItems=a(".ecl-tabs__dropdown .ecl-tabs__item",this.element)),this.btnNext&&(this.buttonNextSize=this.btnNext.getBoundingClientRect().width),this.handleResize(),this.attachClickListener&&this.moreButton&&this.moreButton.addEventListener("click",this.handleClickOnToggle),this.attachClickListener&&document&&this.moreButton&&document.addEventListener("click",this.closeMoreDropdown),this.attachClickListener&&this.btnNext&&this.btnNext.addEventListener("click",this.shiftTabs.bind(this,"next",!0)),this.attachClickListener&&this.btnPrev&&this.btnPrev.addEventListener("click",this.shiftTabs.bind(this,"prev",!0)),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.dropdown&&this.dropdown.remove(),this.moreButton&&(this.moreLabel.textContent=this.moreLabelValue,this.moreButton.replaceWith(this.moreButton.cloneNode(!0))),this.btnNext&&this.btnNext.replaceWith(this.btnNext.cloneNode(!0)),this.btnPrev&&this.btnPrev.replaceWith(this.btnPrev.cloneNode(!0)),this.attachClickListener&&document&&this.moreButton&&document.removeEventListener("click",this.closeMoreDropdown),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.tabsKey&&this.tabsKey.forEach(e=>{e.addEventListener("keydown",this.handleKeyboardOnTabs)}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}shiftTabs(e){this.index="next"===e?this.index+1:this.index-1,1<=this.index?(this.btnPrev.style.display="block",this.container.classList.add("ecl-tabs__container--left")):(this.btnPrev.style.display="none",this.container.classList.remove("ecl-tabs__container--left")),this.index>=this.total-1?(this.btnNext.style.display="none",this.container.classList.remove("ecl-tabs__container--right")):(this.btnNext.style.display="block",this.container.classList.add("ecl-tabs__container--right"));var e=0,t=(this.direction=getComputedStyle(this.element).direction,e="rtl"===this.direction?Math.ceil(this.list.offsetWidth-this.listItems[this.index].offsetLeft-this.listItems[this.index].offsetWidth):Math.ceil(this.listItems[this.index].offsetLeft),Math.ceil(this.list.getBoundingClientRect().width-this.element.getBoundingClientRect().width));t<e&&(this.btnNext.style.display="none",this.container.classList.remove("ecl-tabs__container--right"),e=t),this.list.style.transitionDuration="0.4s","rtl"===this.direction?this.list.style.transform="translate3d("+e+"px, 0px, 0px)":this.list.style.transform="translate3d(-"+e+"px, 0px, 0px)"}handleClickOnToggle(e){this.dropdown.classList.toggle("ecl-tabs__dropdown--show"),this.moreButton.setAttribute("aria-expanded",this.dropdown.classList.contains("ecl-tabs__dropdown--show")),this.trigger("onToggle",e)}set onToggle(e){this.onToggleCallback=e}get onToggle(){return this.onToggleCallback}handleResize(){var t,i,s,n;"none"===window.getComputedStyle(this.moreButton).display&&this.closeMoreDropdown(this),this.list.style.transform="translate3d(0px, 0px, 0px)",Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<=480?(this.isMobile=!0,this.index=1,this.list.style.transitionDuration="0.4s",this.shiftTabs(this.index),this.moreItem&&this.moreItem.classList.add("ecl-tabs__item--hidden"),this.moreButton&&this.moreButton.classList.add("ecl-tabs__toggle--hidden"),t=0,this.listItems.forEach(e=>{e.classList.remove("ecl-tabs__item--hidden"),t+=Math.ceil(e.getBoundingClientRect().width)}),this.list.style.width=t+"px",this.btnNext.style.display="block",this.container.classList.add("ecl-tabs__container--right"),this.btnPrev.style.display="none",this.container.classList.remove("ecl-tabs__container--left")):(this.isMobile=!1,this.btnNext.style.display="none",this.container.classList.remove("ecl-tabs__container--right"),this.btnPrev.style.display="none",this.container.classList.remove("ecl-tabs__container--left"),this.list.style.width="auto",i=this.moreButton.getBoundingClientRect().width+25,s=[],n=this.list.getBoundingClientRect().width,this.moreButtonActive=!1,this.listItems.forEach((e,t)=>{e.classList.remove("ecl-tabs__item--hidden"),n>=i+e.getBoundingClientRect().width&&!s.includes(t-1)?i+=e.getBoundingClientRect().width:(e.classList.add("ecl-tabs__item--hidden"),e.childNodes[0].classList.contains("ecl-tabs__link--active")&&(this.moreButtonActive=!0),s.push(t))}),this.moreButtonActive?this.moreButton.classList.add("ecl-tabs__toggle--active"):this.moreButton.classList.remove("ecl-tabs__toggle--active"),s.length?(this.moreItem.classList.remove("ecl-tabs__item--hidden"),this.moreButton.classList.remove("ecl-tabs__toggle--hidden"),this.moreLabel.textContent=this.moreLabelValue.replace("%d",s.length),this.dropdownItems.forEach((e,t)=>{s.includes(t)?e.classList.remove("ecl-tabs__item--hidden"):e.classList.add("ecl-tabs__item--hidden")})):(this.moreItem.classList.add("ecl-tabs__item--hidden"),this.moreButton.classList.add("ecl-tabs__toggle--hidden"))),this.tabsKeyEvents()}tabsKeyEvents(){this.tabsKey=[],this.listItems.forEach((e,t,i)=>{var s,n=null;(n=e.classList.contains("ecl-tabs__item--hidden")?(s=this.dropdownItems[t],v(".ecl-tabs__link",s)):v(".ecl-tabs__link",e)).addEventListener("keydown",this.handleKeyboardOnTabs),this.tabsKey.push(n),0===t&&(this.firstTab=n),t===i.length-1&&(this.lastTab=n)})}closeMoreDropdown(e){for(var t=e.target;t;){if(t===this.moreButton)return;t=t.parentNode}this.moreButton.setAttribute("aria-expanded",!1),this.dropdown.classList.remove("ecl-tabs__dropdown--show")}handleKeyboardOnTabs(e){var t=e.currentTarget;switch(e.key){case"ArrowLeft":case"ArrowUp":this.arrowFocusToTab(t,"prev");break;case"ArrowRight":case"ArrowDown":this.arrowFocusToTab(t,"next");break;case"Home":this.moveFocus(this.firstTab);break;case"End":this.moveFocus(this.lastTab)}}moveFocus(e){e.closest(".ecl-tabs__dropdown")?(this.moreButton.setAttribute("aria-expanded",!0),this.dropdown.classList.add("ecl-tabs__dropdown--show")):(this.moreButton.setAttribute("aria-expanded",!1),this.dropdown.classList.remove("ecl-tabs__dropdown--show")),e.focus()}arrowFocusToTab(e,t){var i=this.tabsKey.indexOf(e),i="next"===t?i+1:i-1,s="next"===t?this.firstTab:this.lastTab,n="next"===t?this.lastTab:this.firstTab;this.isMobile?e!==n&&(this.moveFocus(this.tabsKey[i]),this.shiftTabs(t)):e===n?this.moveFocus(s):this.moveFocus(this.tabsKey[i])}},e.Timeline=class Re{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).TIMELINE)?{}:t,(t=new Re(e,t)).init(),e.ECLTimeline=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).buttonSelector)?"[data-ecl-timeline-button]":i,s=void 0===(s=t.labelSelector)?"[data-ecl-label]":s,n=void 0===(n=t.labelExpanded)?"data-ecl-label-expanded":n,l=void 0===(l=t.labelCollapsed)?"data-ecl-label-collapsed":l,t=void 0===(t=t.attachClickListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.buttonSelector=i,this.labelSelector=s,this.labelExpanded=n,this.labelCollapsed=l,this.attachClickListener=t,this.button=null,this.label=null,this.handleClickOnButton=this.handleClickOnButton.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.button=v(this.buttonSelector,this.element),this.label=v(this.labelSelector,this.element),this.attachClickListener&&this.button&&this.button.addEventListener("click",this.handleClickOnButton),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.button&&this.button.removeEventListener("click",this.handleClickOnButton),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnButton(){var e="true"===this.button.getAttribute("aria-expanded");return this.button.setAttribute("aria-expanded",e?"false":"true"),e?(this.element.removeAttribute("data-ecl-timeline-expanded"),this.button.blur(),this.button.focus()):this.element.setAttribute("data-ecl-timeline-expanded","true"),this.label&&!e&&this.button.hasAttribute(this.labelExpanded)?this.label.innerHTML=this.button.getAttribute(this.labelExpanded):this.label&&e&&this.button.hasAttribute(this.labelCollapsed)&&(this.label.innerHTML=this.button.getAttribute(this.labelCollapsed)),this}},e.autoInit=function(e){var t,i,e=void 0===e?{}:e,s=e.root,s=void 0===s?document:s,n=function(e,t){if(null==e)return{};for(var i,s={},n=Object.keys(e),l=0;l<n.length;l++)i=n[l],0<=t.indexOf(i)||(s[i]=e[i]);return s}(e,z);if(ECL)return t=a("[data-ecl-auto-init]",s),(i=()=>{t.filter(e=>"true"!==e.getAttribute("data-ecl-auto-initialized")).forEach(e=>{var t=e.getAttribute("data-ecl-auto-init");if(!t)throw new TypeError("(ecl-auto-init) "+t+" data-ecl-auto-init is empty");var i=ECL[t];if("function"!=typeof i)throw new TypeError("(ecl-auto-init) Could not find '"+t+"'");if("function"!=typeof i.autoInit)throw new TypeError("(ecl-auto-init) Could not find autoInit for '"+t+"'");i.autoInit(e,n)})})(),{update:()=>i(),destroy:()=>{ECL.components&&ECL.components.forEach((e,t)=>{e.destroy&&(e.destroy(),ECL.components.delete(t))})}};throw new TypeError("Called autoInit but ECL is not present")},e}({});
|
|
1
|
+
/* @ecl/preset-ec - 4.1.1 Built on 2024-04-09T07:21:06.492Z */
|
|
2
|
+
var ECL=function(e){"use strict";function t(){return(t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i,s=arguments[t];for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e}).apply(this,arguments)}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function B(e,t){var i,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=function(e,t){var i;if(e)return"string"==typeof e?R(e,t):"Map"===(i="Object"===(i=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?R(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),i=0,function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}return null});var z=0;function i(e){return"__private_"+z+++"_"+e}function d(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}function a(e,t){return void 0===t&&(t=document),[].slice.call(t.querySelectorAll(e))}function v(e,t){return(t=void 0===t?document:t).querySelector(e)}var F=["root"];class k{constructor(){this.events=new Map}on(e,t){this.events.has(e)||this.events.set(e,[]),this.events.get(e).push(t)}trigger(e,t){e=this.events.get(e);e&&e.forEach(e=>{e(t)})}getCallback(e){return this.events.get(e)||[]}}function h(e,t){void 0===t&&(t=!0);var i=null==e||null==(i=e.getAttribute)?void 0:i.call(e,"inert");return""===i||"true"===i||t&&e&&h(e.parentNode)}function S(e){if(e)return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||j(e))&&!Y(e)?0:e.tabIndex;throw new Error("No node provided")}function K(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function H(e){return"INPUT"===e.tagName}function G(e){if(!e.name)return 1;function t(e){return i.querySelectorAll('input[type="radio"][name="'+e+'"]')}var i=e.form||o(e);if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)s=t(window.CSS.escape(e.name));else try{s=t(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),0}var s=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]}(s,e.form);return!s||s===e}function V(e){return H(t=e)&&"radio"===t.type&&!G(e);var t}function W(e){var t=(e=e.getBoundingClientRect()).width,e=e.height;return 0===t&&0===e}function U(e,t){var i=t.displayCheck,s=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return 1;if(t=u.call(e,"details>summary:first-of-type")?e.parentElement:e,u.call(t,"details:not([open]) *"))return 1;if(i&&"full"!==i&&"legacy-full"!==i){if("non-zero-area"===i)return W(e)}else{if("function"==typeof s){for(t=e;e;){var n=e.parentElement,l=o(e);if(n&&!n.shadowRoot&&!0===s(n))return W(e);e=e.assignedSlot||(n||l===e.ownerDocument?n:l.host)}e=t}if(function(e){var t,i=e&&o(e),s=null==(t=i)?void 0:t.host,n=!1;if(i&&i!==e)for(n=!!(null!=(t=s)&&null!=(t=t.ownerDocument)&&t.contains(s)||null!=e&&null!=(t=e.ownerDocument)&&t.contains(e));!n&&s;)var l,n=!(null==(l=s=null==(l=i=o(s))?void 0:l.host)||null==(l=l.ownerDocument)||!l.contains(s));return n}(e))return!e.getClientRects().length;if("legacy-full"!==i)return 1}}function A(e,t){if(t=t||{},e)return!1!==u.call(e,c)&&_(t,e);throw new Error("No node provided")}function O(e,t){if(t=t||{},e)return!1!==u.call(e,Z)&&x(t,e);throw new Error("No node provided")}var s=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],c=s.join(","),n="undefined"==typeof Element,u=n?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,o=!n&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},j=function(e){var t=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===t||"true"===t},q=function(e,t,i){var s;return h(e)?[]:(s=Array.prototype.slice.apply(e.querySelectorAll(c)),t&&u.call(e,c)&&s.unshift(e),s.filter(i))},X=function e(t,i,s){for(var n=[],l=Array.from(t);l.length;){var a,o,r=l.shift();h(r,!1)||("SLOT"===r.tagName?(a=e((a=r.assignedElements()).length?a:r.children,!0,s),s.flatten?n.push.apply(n,a):n.push({scopeParent:r,candidates:a})):(u.call(r,c)&&s.filter(r)&&(i||!t.includes(r))&&n.push(r),a=r.shadowRoot||"function"==typeof s.getShadowRoot&&s.getShadowRoot(r),o=!h(a,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(r)),a&&o?(o=e((!0===a?r:a).children,!0,s),s.flatten?n.push.apply(n,o):n.push({scopeParent:r,candidates:o})):l.unshift.apply(l,r.children)))}return n},Y=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},x=function(e,t){var i;return!(t.disabled||h(t)||H(i=t)&&"hidden"===i.type||U(t,e)||"DETAILS"===(i=t).tagName&&Array.prototype.slice.apply(i.children).some(function(e){return"SUMMARY"===e.tagName})||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var i=0;i<t.children.length;i++){var s=t.children.item(i);if("LEGEND"===s.tagName)return!!u.call(t,"fieldset[disabled] *")||!s.contains(e)}return!0}t=t.parentElement}return!1}(t))},_=function(e,t){return!(V(t)||S(t)<0||!x(e,t))},$=function(e){e=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(e)||0<=e)},Q=function o(e){var r=[],h=[];return e.forEach(function(e,t){var i,s=!!e.scopeParent,n=s?e.scopeParent:e,l=(l=s,(i=S(a=n))<0&&l&&!Y(a)?0:i),a=s?o(e.candidates):n;0===l?s?r.push.apply(r,a):r.push(n):h.push({documentOrder:t,tabIndex:l,item:e,isScope:s,content:a})}),h.sort(K).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(r)},Z=s.concat("iframe").join(",");function J(t,e){var i,s=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,i)),s}function ee(s){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach(function(e){var t,i;t=s,i=n[e=e],(e=function(e){e=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0===i)return("string"===t?String:Number)(e);i=i.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(n,e))})}return s}function te(e){return M(e)&&!e.shiftKey}function ie(e){return M(e)&&e.shiftKey}function se(e){return setTimeout(e,0)}function ne(e,i){var s=-1;return e.every(function(e,t){return!i(e)||(s=t,!1)}),s}function T(e){for(var t=arguments.length,i=new Array(1<t?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return"function"==typeof e?e.apply(void 0,i):e}function I(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target}function l(e,t){function l(e,t,i){return e&&void 0!==e[t]?e[t]:u[i||t]}function a(){if(m.containerGroups=m.containers.map(function(e){var s=function(e,t){e=(t=t||{}).getShadowRoot?X([e],t.includeContainer,{filter:_.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:$}):q(e,t.includeContainer,_.bind(null,t));return Q(e)}(e,u.tabbableOptions),n=(t=e,(i=(i=u.tabbableOptions)||{}).getShadowRoot?X([t],i.includeContainer,{filter:x.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):q(t,i.includeContainer,x.bind(null,i))),t=0<s.length?s[0]:void 0,i=0<s.length?s[s.length-1]:void 0,l=n.find(function(e){return A(e)}),a=n.slice().reverse().find(function(e){return A(e)}),o=!!s.find(function(e){return 0<S(e)});return{container:e,tabbableNodes:s,focusableNodes:n,posTabIndexesFound:o,firstTabbableNode:t,lastTabbableNode:i,firstDomTabbableNode:l,lastDomTabbableNode:a,nextTabbableNode:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=s.indexOf(e);return i<0?t?n.slice(n.indexOf(e)+1).find(function(e){return A(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return A(e)}):s[i+(t?1:-1)]}}}),m.tabbableGroups=m.containerGroups.filter(function(e){return 0<e.tabbableNodes.length}),m.tabbableGroups.length<=0&&!v("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(m.containerGroups.find(function(e){return e.posTabIndexesFound})&&1<m.containerGroups.length)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}function o(e){var t=v("setReturnFocus",e);return t||!1!==t&&e}function n(){if(m.active)le(d,k),m.delayInitialFocusTimer=u.delayInitialFocus?se(function(){b(g())}):b(g()),c.addEventListener("focusin",y,!0),c.addEventListener("mousedown",i,{capture:!0,passive:!1}),c.addEventListener("touchstart",i,{capture:!0,passive:!1}),c.addEventListener("click",C,{capture:!0,passive:!1}),c.addEventListener("keydown",E,{capture:!0,passive:!1})}function r(){if(m.active)c.removeEventListener("focusin",y,!0),c.removeEventListener("mousedown",i,!0),c.removeEventListener("touchstart",i,!0),c.removeEventListener("click",C,!0),c.removeEventListener("keydown",E,!0)}function h(){w&&(w.disconnect(),m.active)&&!m.paused&&m.containers.map(function(e){w.observe(e,{subtree:!0,childList:!0})})}var c=(null==t?void 0:t.document)||document,d=(null==t?void 0:t.trapStack)||oe,u=ee({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:te,isKeyBackward:ie},t),m={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},p=function(i,e){var s="function"==typeof(null==e?void 0:e.composedPath)?e.composedPath():void 0;return m.containerGroups.findIndex(function(e){var t=e.container,e=e.tabbableNodes;return t.contains(i)||(null==s?void 0:s.includes(t))||e.find(function(e){return e===i})})},v=function(e){var t=u[e];if("function"==typeof t){for(var i=arguments.length,s=new Array(1<i?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];t=t.apply(void 0,s)}if(!(t=!0===t?void 0:t)){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"!=typeof t||(l=c.querySelector(t)))return l;throw new Error("`".concat(e,"` as selector refers to no known node"))},g=function(){var e,t=v("initialFocus");if(!1===t)return!1;if(t=void 0!==t&&O(t,u.tabbableOptions)?t:0<=p(c.activeElement)?c.activeElement:(e=m.tabbableGroups[0])&&e.firstTabbableNode||v("fallbackFocus"))return t;throw new Error("Your focus-trap needs to have at least one focusable element")},s=function e(t){t=t.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?e(t.shadowRoot):t},b=function e(t){var i;!1!==t&&t!==s(document)&&(t&&t.focus?(t.focus({preventScroll:!!u.preventScroll}),m.mostRecentlyFocusedNode=t,(i=t).tagName&&"input"===i.tagName.toLowerCase()&&"function"==typeof i.select&&t.select()):e(g()))},f=function(e){var t,i,s=e.target,n=e.event,e=e.isBackward,e=void 0!==e&&e,s=s||I(n),l=(a(),null);return 0<m.tabbableGroups.length?(t=0<=(i=p(s,n))?m.containerGroups[i]:void 0,i<0?l=e?m.tabbableGroups[m.tabbableGroups.length-1].lastTabbableNode:m.tabbableGroups[0].firstTabbableNode:e?0<=(e=(e=ne(m.tabbableGroups,function(e){e=e.firstTabbableNode;return s===e}))<0&&(t.container===s||O(s,u.tabbableOptions)&&!A(s,u.tabbableOptions)&&!t.nextTabbableNode(s,!1))?i:e)?(e=0===e?m.tabbableGroups.length-1:e-1,e=m.tabbableGroups[e],l=0<=S(s)?e.lastTabbableNode:e.lastDomTabbableNode):M(n)||(l=t.nextTabbableNode(s,!1)):0<=(e=(e=ne(m.tabbableGroups,function(e){e=e.lastTabbableNode;return s===e}))<0&&(t.container===s||O(s,u.tabbableOptions)&&!A(s,u.tabbableOptions)&&!t.nextTabbableNode(s))?i:e)?(i=e===m.tabbableGroups.length-1?0:e+1,e=m.tabbableGroups[i],l=0<=S(s)?e.firstTabbableNode:e.firstDomTabbableNode):M(n)||(l=t.nextTabbableNode(s))):l=v("fallbackFocus"),l},i=function(e){var t=I(e);0<=p(t,e)||(T(u.clickOutsideDeactivates,e)?k.deactivate({returnFocus:u.returnFocusOnDeactivate}):T(u.allowOutsideClick,e)||e.preventDefault())},y=function(e){var t,i=I(e),s=0<=p(i,e);s||i instanceof Document?s&&(m.mostRecentlyFocusedNode=i):(e.stopImmediatePropagation(),s=!0,m.mostRecentlyFocusedNode?0<S(m.mostRecentlyFocusedNode)?(i=p(m.mostRecentlyFocusedNode),0<(e=m.containerGroups[i].tabbableNodes).length&&0<=(i=e.findIndex(function(e){return e===m.mostRecentlyFocusedNode}))&&(u.isKeyForward(m.recentNavEvent)?i+1<e.length&&(t=e[i+1],s=!1):0<=i-1&&(t=e[i-1],s=!1))):m.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return 0<S(e)})})||(s=!1):s=!1,s&&(t=f({target:m.mostRecentlyFocusedNode,isBackward:u.isKeyBackward(m.recentNavEvent)})),b(t||m.mostRecentlyFocusedNode||g())),m.recentNavEvent=void 0},L=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=(m.recentNavEvent=e,f({event:e,isBackward:t}));t&&(M(e)&&e.preventDefault(),b(t))},E=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===T(u.escapeDeactivates,e)?(u.isKeyForward(e)||u.isKeyBackward(e))&&L(e,u.isKeyBackward(e)):(e.preventDefault(),k.deactivate())},C=function(e){var t=I(e);0<=p(t,e)||T(u.clickOutsideDeactivates,e)||T(u.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===m.mostRecentlyFocusedNode})})&&b(g())}):void 0,k={get active(){return m.active},get paused(){return m.paused},activate:function(e){var t,i,s;return m.active||(t=l(e,"onActivate"),i=l(e,"onPostActivate"),(s=l(e,"checkCanFocusTrap"))||a(),m.active=!0,m.paused=!1,m.nodeFocusedBeforeActivation=c.activeElement,null!=t&&t(),e=function(){s&&a(),n(),h(),null!=i&&i()},s?s(m.containers.concat()).then(e,e):e()),this},deactivate:function(e){var t,i,s,n;return m.active&&(e=ee({onDeactivate:u.onDeactivate,onPostDeactivate:u.onPostDeactivate,checkCanReturnFocus:u.checkCanReturnFocus},e),clearTimeout(m.delayInitialFocusTimer),m.delayInitialFocusTimer=void 0,r(),m.active=!1,m.paused=!1,h(),ae(d,k),t=l(e,"onDeactivate"),i=l(e,"onPostDeactivate"),s=l(e,"checkCanReturnFocus"),n=l(e,"returnFocus","returnFocusOnDeactivate"),null!=t&&t(),e=function(){se(function(){n&&b(o(m.nodeFocusedBeforeActivation)),null!=i&&i()})},n&&s?s(o(m.nodeFocusedBeforeActivation)).then(e,e):e()),this},pause:function(e){var t;return!m.paused&&m.active&&(t=l(e,"onPause"),e=l(e,"onPostPause"),m.paused=!0,null!=t&&t(),r(),h(),null!=e)&&e(),this},unpause:function(e){var t;return m.paused&&m.active&&(t=l(e,"onUnpause"),e=l(e,"onPostUnpause"),m.paused=!1,null!=t&&t(),a(),n(),h(),null!=e)&&e(),this},updateContainerElements:function(e){e=[].concat(e).filter(Boolean);return m.containers=e.map(function(e){return"string"==typeof e?c.querySelector(e):e}),m.active&&a(),h(),this}};return k.updateContainerElements(e),k}var le=function(e,t){0<e.length&&(i=e[e.length-1])!==t&&i.pause();var i=e.indexOf(t);-1!==i&&e.splice(i,1),e.push(t)},ae=function(e,t){t=e.indexOf(t);-1!==t&&e.splice(t,1),0<e.length&&e[e.length-1].unpause()},M=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},oe=[];var re="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,t){return e(t={exports:{}},t.exports),t.exports}var he=r(function(e){function s(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function r(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}function h(e){return parseFloat(e)||0}function c(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t}function i(t){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");if(!(t instanceof HTMLElement))throw new Error("First argument must be HTMLElement");if(g.some(function(e){return e._node===t}))throw new Error("Stickyfill is already applied to this node");this._node=t,this._stickyMode=null,this._active=!1,g.push(this),this.refresh()}function t(){var e,t,i;function s(){d.pageXOffset!=v.left?(v.top=d.pageYOffset,v.left=d.pageXOffset,f.refreshAll()):d.pageYOffset!=v.top&&(v.top=d.pageYOffset,v.left=d.pageXOffset,g.forEach(function(e){return e._recalcPosition()}))}function n(){e=setInterval(function(){g.forEach(function(e){return e._fastCheck()})},500)}o||(o=!0,s(),d.addEventListener("scroll",s),d.addEventListener("resize",f.refreshAll),d.addEventListener("orientationchange",f.refreshAll),i=t=e=void 0,"hidden"in u?(t="hidden",i="visibilitychange"):"webkitHidden"in u&&(t="webkitHidden",i="webkitvisibilitychange"),i?(u[t]||n(),u.addEventListener(i,function(){u[t]?clearInterval(e):n()})):n())}var d,u,n,l,m,a,o,p,v,g,b,f;d=window,u=document,m=!(n=function(e,t,i){return t&&s(e.prototype,t),i&&s(e,i),e}),(a=void 0!==d)&&d.getComputedStyle&&(l=u.createElement("div"),!["","-webkit-","-moz-","-ms-"].some(function(e){try{l.style.position=e+"sticky"}catch(e){}return""!=l.style.position}))||(m=!0),o=!1,p="undefined"!=typeof ShadowRoot,v={top:null,left:null},g=[],n(i,[{key:"refresh",value:function(){var e,t,i,s,n,l,a,o;m||this._removed||(this._active&&this._deactivate(),e=this._node,t={position:(i=getComputedStyle(e)).position,top:i.top,display:i.display,marginTop:i.marginTop,marginBottom:i.marginBottom,marginLeft:i.marginLeft,marginRight:i.marginRight,cssFloat:i.cssFloat},isNaN(parseFloat(t.top)))||"table-cell"==t.display||"none"==t.display||(this._active=!0,o=e.style.position,"sticky"!=i.position&&"-webkit-sticky"!=i.position||(e.style.position="static"),i=e.parentNode,s=p&&i instanceof ShadowRoot?i.host:i,n=e.getBoundingClientRect(),a=s.getBoundingClientRect(),l=getComputedStyle(s),this._parent={node:s,styles:{position:s.style.position},offsetHeight:s.offsetHeight},this._offsetToWindow={left:n.left,right:u.documentElement.clientWidth-n.right},this._offsetToParent={top:n.top-a.top-h(l.borderTopWidth),left:n.left-a.left-h(l.borderLeftWidth),right:-n.right+a.right-h(l.borderRightWidth)},this._styles={position:o,top:e.style.top,bottom:e.style.bottom,left:e.style.left,right:e.style.right,width:e.style.width,marginTop:e.style.marginTop,marginLeft:e.style.marginLeft,marginRight:e.style.marginRight},o=h(t.top),this._limits={start:n.top+d.pageYOffset-o,end:a.top+d.pageYOffset+s.offsetHeight-h(l.borderBottomWidth)-e.offsetHeight-o-h(t.marginBottom)},"absolute"!=(a=l.position)&&"relative"!=a&&(s.style.position="relative"),this._recalcPosition(),(o=this._clone={}).node=u.createElement("div"),r(o.node.style,{width:n.right-n.left+"px",height:n.bottom-n.top+"px",marginTop:t.marginTop,marginBottom:t.marginBottom,marginLeft:t.marginLeft,marginRight:t.marginRight,cssFloat:t.cssFloat,padding:0,border:0,borderSpacing:0,fontSize:"1em",position:"static"}),i.insertBefore(o.node,e),o.docOffsetTop=c(o.node))}},{key:"_recalcPosition",value:function(){if(this._active&&!this._removed){var e=v.top<=this._limits.start?"start":v.top>=this._limits.end?"end":"middle";if(this._stickyMode!=e){switch(e){case"start":r(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:this._offsetToParent.top+"px",bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"middle":r(this._node.style,{position:"fixed",left:this._offsetToWindow.left+"px",right:this._offsetToWindow.right+"px",top:this._styles.top,bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"end":r(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:"auto",bottom:0,width:"auto",marginLeft:0,marginRight:0})}this._stickyMode=e}}}},{key:"_fastCheck",value:function(){this._active&&!this._removed&&(1<Math.abs(c(this._clone.node)-this._clone.docOffsetTop)||1<Math.abs(this._parent.node.offsetHeight-this._parent.offsetHeight))&&this.refresh()}},{key:"_deactivate",value:function(){var t=this;this._active&&!this._removed&&(this._clone.node.parentNode.removeChild(this._clone.node),delete this._clone,r(this._node.style,this._styles),delete this._styles,g.some(function(e){return e!==t&&e._parent&&e._parent.node===t._parent.node})||r(this._parent.node.style,this._parent.styles),delete this._parent,this._stickyMode=null,this._active=!1,delete this._offsetToWindow,delete this._offsetToParent,delete this._limits)}},{key:"remove",value:function(){var i=this;this._deactivate(),g.some(function(e,t){if(e._node===i._node)return g.splice(t,1),!0}),this._removed=!0}}]),f={stickies:g,Sticky:b=i,forceSticky:function(){m=!1,t(),this.refreshAll()},addOne:function(e){if(!(e instanceof HTMLElement)){if(!e.length||!e[0])return;e=e[0]}for(var t=0;t<g.length;t++)if(g[t]._node===e)return g[t];return new b(e)},add:function(i){if((i=i instanceof HTMLElement?[i]:i).length){for(var s=[],e=0;e<i.length;e++)(function(e){var t=i[e];t instanceof HTMLElement?g.some(function(e){if(e._node===t)return s.push(e),!0})||s.push(new b(t)):s.push(void 0)})(e);return s}},refreshAll:function(){g.forEach(function(e){return e.refresh()})},removeOne:function(t){if(!(t instanceof HTMLElement)){if(!t.length||!t[0])return;t=t[0]}g.some(function(e){if(e._node===t)return e.remove(),!0})},remove:function(i){if((i=i instanceof HTMLElement?[i]:i).length)for(var e=0;e<i.length;e++)!function(e){var t=i[e];g.some(function(e){if(e._node===t)return e.remove(),!0})}(e)},removeAll:function(){for(;g.length;)g[0].remove()}},m||t(),e.exports?e.exports=f:a&&(d.Stickyfill=f)}),ce=r(function(e,t){function i(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}var s,c,d,u,n,m,p,l,v,a,g,b;Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){var t=this;if(document.documentElement.contains(this))do{if(t.matches(e))return t}while(null!==(t=t.parentElement));return null}),"function"!=typeof window.CustomEvent&&(i.prototype=window.Event.prototype,window.CustomEvent=i),s=0?window:re,e.exports=(c=s,d={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},u=function(e,t,i){i.settings.events&&(e=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:i}),t.dispatchEvent(e))},n=function(e){var t=0;if(e.offsetParent)for(;e;)t+=e.offsetTop,e=e.offsetParent;return 0<=t?t:0},m=function(e){e&&e.sort(function(e,t){return n(e.content)<n(t.content)?-1:1})},p=function(e,t,i){e=e.getBoundingClientRect(),t="function"==typeof(t=t).offset?parseFloat(t.offset()):parseFloat(t.offset);return i?parseInt(e.bottom,10)<(c.innerHeight||document.documentElement.clientHeight):parseInt(e.top,10)<=t},l=function(){return c.innerHeight+c.pageYOffset>=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},v=function(e,t){return!(!l()||!p(e.content,t,!0))},a=function e(t,i){i.nested&&t.parentNode&&(t=t.parentNode.closest("li"))&&(t.classList.remove(i.nestedClass),e(t,i))},g=function(e,t){var i;e&&(i=e.nav.closest("li"))&&(i.classList.remove(t.navClass),e.content.classList.remove(t.contentClass),a(i,t),u("gumshoeDeactivate",i,{link:e.nav,content:e.content,settings:t}))},b=function e(t,i){i.nested&&(t=t.parentNode.closest("li"))&&(t.classList.add(i.nestedClass),e(t,i))},function(e,t){function i(e){o&&c.cancelAnimationFrame(o),o=c.requestAnimationFrame(h.detect)}function s(e){o&&c.cancelAnimationFrame(o),o=c.requestAnimationFrame(function(){m(l),h.detect()})}var n,l,a,o,r,h={setup:function(){n=document.querySelectorAll(e),l=[],Array.prototype.forEach.call(n,function(e){var t=document.getElementById(decodeURIComponent(e.hash.substr(1)));t&&l.push({nav:e,content:t})}),m(l)}};h.detect=function(){var e,t,i,s=function(e,t){var i=e[e.length-1];if(v(i,t))return i;for(var s=e.length-1;0<=s;s--)if(p(e[s].content,t))return e[s]}(l,r);s?a&&s.content===a.content||(g(a,r),t=r,(e=s)&&(i=e.nav.closest("li"))&&(i.classList.add(t.navClass),e.content.classList.add(t.contentClass),b(i,t),u("gumshoeActivate",i,{link:e.nav,content:e.content,settings:t})),a=s):a&&(g(a,r),a=null)},h.destroy=function(){a&&g(a,r),c.removeEventListener("scroll",i,!1),r.reflow&&c.removeEventListener("resize",s,!1),r=o=a=n=l=null};return r=function(){var i={};return Array.prototype.forEach.call(arguments,function(e){for(var t in e){if(!e.hasOwnProperty(t))return;i[t]=e[t]}}),i}(d,t||{}),h.setup(),h.detect(),c.addEventListener("scroll",i,!1),r.reflow&&c.addEventListener("resize",s,!1),h})});var n=r(function(e){function s(e){var t;return(n[e]||(t=n[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,s),t.l=!0,t)).exports}var i,n;e.exports=(i=[function(e,t,i){e.exports={BROWSER_TYPES:{CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},DEVICE_TYPES:{MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0},OS_TYPES:{IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},defaultData:{isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1}}},function(e,R,t){function i(){return g.name===r.WINDOWS&&"10"===g.version&&"string"==typeof b&&-1!==b.indexOf("Edg/")}function s(){return m.name===H}function n(){return u("iPad")}var l=t(2),a=t(0),o=a.BROWSER_TYPES,r=a.OS_TYPES,a=a.DEVICE_TYPES,t=t(4),h=t.checkType,c=t.broPayload,B=t.mobilePayload,z=t.wearPayload,F=t.consolePayload,K=t.stvPayload,d=t.getNavigatorInstance,u=t.isIOS13Check,t=new l,m=t.getBrowser(),p=t.getDevice(),v=t.getEngine(),g=t.getOS(),b=t.getUA(),l=o.CHROME,t=o.CHROMIUM,f=o.IE,y=o.INTERNET_EXPLORER,L=o.OPERA,E=o.FIREFOX,C=o.SAFARI,H=o.EDGE,w=o.YANDEX,o=o.MOBILE_SAFARI,k=a.MOBILE,S=a.TABLET,A=a.SMART_TV,O=a.BROWSER,x=a.WEARABLE,a=a.CONSOLE,_=r.ANDROID,T=r.WINDOWS_PHONE,I=r.IOS,M=r.WINDOWS,P=r.MAC_OS,A=p.type===A,a=p.type===a,x=p.type===x,G=m.name===o||n(),t=m.name===t,V=function(){switch(p.type){case k:case S:return!0;default:return!1}}()||n(),W=p.type===k,U=p.type===S||n(),O=p.type===O,_=g.name===_,T=g.name===T,I=g.name===I||n(),l=m.name===l,E=m.name===E,C=m.name===C||m.name===o,o=m.name===L,L=m.name===y||m.name===f,y=g.version||"none",f=g.name||"none",j=m.major,q=m.version,X=m.name,Y=p.vendor||"none",$=p.model||"none",Q=v.name,Z=v.version,J=b,ee=s()||i(),w=m.name===w,te=p.type,N=(N=d())&&(/iPad|iPhone|iPod/.test(N.platform)||"MacIntel"===N.platform&&1<N.maxTouchPoints)&&!window.MSStream,ie=n(),se=u("iPhone"),ne=u("iPod"),d="string"==typeof(d=(d=d())&&d.userAgent.toLowerCase())&&/electron/.test(d),le=i(),ae=s(),M=g.name===M,P=g.name===P,D=h(p.type);e.exports={deviceDetect:function(){var e=D.isBrowser,t=D.isMobile,i=D.isTablet,s=D.isSmartTV,n=D.isConsole,l=D.isWearable;return e?c(e,m,v,g,b):s?K(s,v,g,b):n?F(n,v,g,b):t||i?B(D,p,g,b):l?z(l,v,g,b):void 0},isSmartTV:A,isConsole:a,isWearable:x,isMobileSafari:G,isChromium:t,isMobile:V,isMobileOnly:W,isTablet:U,isBrowser:O,isAndroid:_,isWinPhone:T,isIOS:I,isChrome:l,isFirefox:E,isSafari:C,isOpera:o,isIE:L,osVersion:y,osName:f,fullBrowserVersion:j,browserVersion:q,browserName:X,mobileVendor:Y,mobileModel:$,engineName:Q,engineVersion:Z,getUA:J,isEdge:ee,isYandex:w,deviceType:te,isIOS13:N,isIPad13:ie,isIPhone13:se,isIPod13:ne,isElectron:d,isEdgeChromium:le,isLegacyEdge:ae,isWindows:M,isMacOs:P}},function(e,t,i){var n,d,s,u,l,a,o,r,h,c,m,p,v,g,b,f,y,L,E,C,w;function k(e,t){var i,s;return"object"==typeof e&&(t=e,e=d),this instanceof k?(i=e||(n&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),s=t?y.extend(C,t):C,this.getBrowser=function(){var e={name:d,version:d};return L.rgx.call(e,i,s.browser),e.major=y.major(e.version),e},this.getCPU=function(){var e={architecture:d};return L.rgx.call(e,i,s.cpu),e},this.getDevice=function(){var e={vendor:d,model:d,type:d};return L.rgx.call(e,i,s.device),e},this.getEngine=function(){var e={name:d,version:d};return L.rgx.call(e,i,s.engine),e},this.getOS=function(){var e={name:d,version:d};return L.rgx.call(e,i,s.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(e){return i=e,this},this):new k(e,t).getResult()}n="object"==typeof window?window:this,u="function",l="undefined",a="model",r="type",h="vendor",m="architecture",p="console",v="mobile",g="tablet",b="smarttv",f="wearable",y={extend:function(e,t){var i,s={};for(i in e)t[i]&&t[i].length%2==0?s[i]=t[i].concat(e[i]):s[i]=e[i];return s},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:d},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},C={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o="name",c="version"],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],c],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],c],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[o,c],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],c],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],c],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],c],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],c],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],c],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],c],[/(qqbrowserlite)\/([\w\.]+)/i],[o,c],[/(QQ)\/([\d\.]+)/i],[o,c],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,c],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[o,c],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,c],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[c,[o,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[c,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],c],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],c],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[c,[o,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,c],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],c],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[o,"Chrome"],c],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],c],[/fxios\/([\w\.-]+)/i],[c,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[c,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[c,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],c],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[c,(L={rgx:function(e,t){for(var i,s,n,l,a,o=0;o<t.length&&!l;){for(var r=t[o],h=t[o+1],c=i=0;c<r.length&&!l;)if(l=r[c++].exec(e))for(s=0;s<h.length;s++)a=l[++i],"object"==typeof(n=h[s])&&0<n.length?2==n.length?typeof n[1]==u?this[n[0]]=n[1].call(this,a):this[n[0]]=n[1]:3==n.length?typeof n[1]!=u||n[1].exec&&n[1].test?this[n[0]]=a?a.replace(n[1],n[2]):d:this[n[0]]=a?n[1].call(this,a,n[2]):d:4==n.length&&(this[n[0]]=a?n[3].call(this,a.replace(n[1],n[2])):d):this[n]=a||d;o+=2}},str:function(e,t){for(var i in t)if("object"==typeof t[i]&&0<t[i].length){for(var s=0;s<t[i].length;s++)if(y.has(t[i][s],e))return"?"===i?d:i}else if(y.has(t[i],e))return"?"===i?d:i;return e}}).str,(E={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}}).browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[o,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],c],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,y.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[m,/ower/,"",y.lowerize]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[m,y.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[a,h,[r,g]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[h,"Apple"],[r,g]],[/(apple\s{0,1}tv)/i],[[a,"Apple TV"],[h,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[h,a,[r,g]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[a,[h,"Amazon"],[r,g]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[a,L.str,E.device.amazon.model],[h,"Amazon"],[r,v]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[a,h,[r,v]],[/\((ip[honed|\s\w*]+);/i],[a,[h,"Apple"],[r,v]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[h,a,[r,v]],[/\(bb10;\s(\w+)/i],[a,[h,"BlackBerry"],[r,v]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[a,[h,"Asus"],[r,g]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[h,"Sony"],[a,"Xperia Tablet"],[r,g]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[a,[h,"Sony"],[r,v]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[h,a,[r,p]],[/android.+;\s(shield)\sbuild/i],[a,[h,"Nvidia"],[r,p]],[/(playstation\s[34portablevi]+)/i],[a,[h,"Sony"],[r,p]],[/(sprint\s(\w+))/i],[[h,L.str,E.device.sprint.vendor],[a,L.str,E.device.sprint.model],[r,v]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[h,a,[r,g]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[h,[a,/_/g," "],[r,v]],[/(nexus\s9)/i],[a,[h,"HTC"],[r,g]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[a,[h,"Huawei"],[r,v]],[/(microsoft);\s(lumia[\s\w]+)/i],[h,a,[r,v]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[a,[h,"Microsoft"],[r,p]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[h,"Microsoft"],[r,v]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[a,[h,"Motorola"],[r,v]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[h,"Motorola"],[r,g]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[h,y.trim],[a,y.trim],[r,b]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[h,"Samsung"],[r,b]],[/\(dtv[\);].+(aquos)/i],[a,[h,"Sharp"],[r,b]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[h,"Samsung"],a,[r,g]],[/smart-tv.+(samsung)/i],[h,[r,b],a],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[h,"Samsung"],a,[r,v]],[/sie-(\w*)/i],[a,[h,"Siemens"],[r,v]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[h,"Nokia"],a,[r,v]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[a,[h,"Acer"],[r,g]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[h,"LG"],[r,g]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[h,"LG"],a,[r,g]],[/(lg) netcast\.tv/i],[h,a,[r,b]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[a,[h,"LG"],[r,v]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[a,[h,"Lenovo"],[r,g]],[/linux;.+((jolla));/i],[h,a,[r,v]],[/((pebble))app\/[\d\.]+\s/i],[h,a,[r,f]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[h,a,[r,v]],[/crkey/i],[[a,"Chromecast"],[h,"Google"]],[/android.+;\s(glass)\s\d/i],[a,[h,"Google"],[r,f]],[/android.+;\s(pixel c)\s/i],[a,[h,"Google"],[r,g]],[/android.+;\s(pixel xl|pixel)\s/i],[a,[h,"Google"],[r,v]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[h,"Xiaomi"],[r,v]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[h,"Xiaomi"],[r,g]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[h,"Meizu"],[r,g]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[a,[h,"OnePlus"],[r,v]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[a,[h,"RCA"],[r,g]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[a,[h,"Dell"],[r,g]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[h,"Verizon"],[r,g]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[h,"Barnes & Noble"],a,[r,g]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[h,"NuVision"],[r,g]],[/android.+;\s(k88)\sbuild/i],[a,[h,"ZTE"],[r,g]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[a,[h,"Swiss"],[r,v]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[a,[h,"Swiss"],[r,g]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[h,"Zeki"],[r,g]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[h,"Dragon Touch"],a,[r,g]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[a,[h,"Insignia"],[r,g]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[a,[h,"NextBook"],[r,g]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[h,"Voice"],a,[r,v]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[h,"LvTel"],a,[r,v]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[a,[h,"Envizen"],[r,g]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[h,a,[r,g]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[a,[h,"MachSpeed"],[r,g]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[h,a,[r,g]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[h,"Rotor"],[r,g]],[/android.+(KS(.+))\s+build/i],[a,[h,"Amazon"],[r,g]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[h,a,[r,g]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[r,y.lowerize],h,a],[/(android[\w\.\s\-]{0,9});.+build/i],[a,[h,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[c,[o,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,c],[/rv\:([\w\.]{1,9}).+(gecko)/i],[c,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,c],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[o,[c,L.str,E.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[c,L.str,E.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],c],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[o,c],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],c],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],c],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[o,c],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],c],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],c],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[o,c],[/(haiku)\s(\w+)/i],[o,c],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[c,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac OS"],[c,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[o,c]]},k.VERSION="0.7.18",k.BROWSER={NAME:o,MAJOR:"major",VERSION:c},k.CPU={ARCHITECTURE:m},k.DEVICE={MODEL:a,VENDOR:h,TYPE:r,CONSOLE:p,MOBILE:v,SMARTTV:b,TABLET:g,WEARABLE:f,EMBEDDED:"embedded"},k.ENGINE={NAME:o,VERSION:c},k.OS={NAME:o,VERSION:c},typeof t!=l?(t=typeof e!=l&&e.exports?e.exports=k:t).UAParser=k:i(3)?(E=function(){return k}.call(t,i,t,e))!==d&&(e.exports=E):n&&(n.UAParser=k),typeof(w=n&&(n.jQuery||n.Zepto))!=l&&(s=new k,w.ua=s.getResult(),w.ua.get=function(){return s.getUA()},w.ua.set=function(e){s.setUA(e);var t,i=s.getResult();for(t in i)w.ua[t]=i[t]})},function(t,e){!function(e){t.exports=e}.call(e,{})},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,s=arguments[t];for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},i=i(0),s=i.DEVICE_TYPES,l=i.defaultData,a=t.getNavigatorInstance=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},i=t.isIOS13Check=function(e){var t=a();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&1<t.maxTouchPoints&&!window.MSStream)};e.exports={checkType:function(e){switch(e){case s.MOBILE:return{isMobile:!0};case s.TABLET:return{isTablet:!0};case s.SMART_TV:return{isSmartTV:!0};case s.CONSOLE:return{isConsole:!0};case s.WEARABLE:return{isWearable:!0};case s.BROWSER:return{isBrowser:!0};default:return l}},broPayload:function(e,t,i,s,n){return{isBrowser:e,browserMajorVersion:t.major,browserFullVersion:t.version,browserName:t.name,engineName:i.name||!1,engineVersion:i.version,osName:s.name,osVersion:s.version,userAgent:n}},mobilePayload:function(e,t,i,s){return n({},e,{vendor:t.vendor,model:t.model,os:i.name,osVersion:i.version,ua:s})},stvPayload:function(e,t,i,s){return{isSmartTV:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:s}},consolePayload:function(e,t,i,s){return{isConsole:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:s}},wearPayload:function(e,t,i,s){return{isWearable:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:s}},getNavigatorInstance:a,isIOS13Check:i}}],n={},s.m=i,s.c=n,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=1))}),m=(s=n)&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s;var p,g=i("createSvgIcon"),b=i("createCheckbox"),f=i("createSelectIcon"),y=i("checkCheckbox"),L=i("generateRandomId"),E=i("updateSelectionsCount"),C=i("handleOptgroup"),w=i("updateCurrentValue"),P=i("moveFocus");class N{static autoInit(e,t){void 0===t&&(t={});t=new N(e,t);return t.init(),e.ECLSelect=t}constructor(e,t){var t=void 0===t?{}:t,i=t.defaultText,i=void 0===i?"":i,s=t.searchText,s=void 0===s?"":s,n=t.selectAllText,n=void 0===n?"":n,l=t.noResultsText,l=void 0===l?"":l,a=t.selectMultipleSelector,a=void 0===a?"[data-ecl-select-multiple]":a,o=t.defaultTextAttribute,o=void 0===o?"data-ecl-select-default":o,r=t.searchTextAttribute,r=void 0===r?"data-ecl-select-search":r,h=t.selectAllTextAttribute,h=void 0===h?"data-ecl-select-all":h,c=t.noResultsTextAttribute,c=void 0===c?"data-ecl-select-no-results":c,d=t.closeLabelAttribute,d=void 0===d?"data-ecl-select-close":d,u=t.clearAllLabelAttribute,u=void 0===u?"data-ecl-select-clear-all":u,m=t.selectMultiplesSelectionCountSelector,m=void 0===m?"ecl-select-multiple-selections-counter":m,p=t.closeButtonLabel,p=void 0===p?"":p,t=t.clearAllButtonLabel,t=void 0===t?"":t;if(Object.defineProperty(this,P,{value:pe}),Object.defineProperty(this,w,{value:me}),Object.defineProperty(this,C,{value:ue}),Object.defineProperty(this,E,{value:de}),this.supportedEvents=["onToggle","onSelection","onSelectAll","onReset","onSearch"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.selectMultipleSelector=a,this.selectMultiplesSelectionCountSelector=m,this.defaultTextAttribute=o,this.searchTextAttribute=r,this.selectAllTextAttribute=h,this.noResultsTextAttribute=c,this.defaultText=i,this.searchText=s,this.selectAllText=n,this.noResultsText=l,this.clearAllButtonLabel=t,this.closeButtonLabel=p,this.closeLabelAttribute=d,this.clearAllLabelAttribute=u,this.input=null,this.search=null,this.checkboxes=null,this.select=null,this.selectAll=null,this.selectIcon=null,this.textDefault=null,this.textSearch=null,this.textSelectAll=null,this.textNoResults=null,this.selectMultiple=null,this.inputContainer=null,this.optionsContainer=null,this.visibleOptions=null,this.searchContainer=null,this.countSelections=null,this.form=null,this.formGroup=null,this.label=null,this.helper=null,this.invalid=null,this.selectMultipleId=null,this.multiple=v(this.selectMultipleSelector,this.element.parentNode)||!1,this.isOpen=!1,this.handleToggle=this.handleToggle.bind(this),this.handleClickOption=this.handleClickOption.bind(this),this.handleClickSelectAll=this.handleClickSelectAll.bind(this),this.handleEsc=this.handleEsc.bind(this),this.handleFocusout=this.handleFocusout.bind(this),this.handleSearch=this.handleSearch.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.resetForm=this.resetForm.bind(this),this.handleClickOnClearAll=this.handleClickOnClearAll.bind(this),this.handleKeyboardOnSelect=this.handleKeyboardOnSelect.bind(this),this.handleKeyboardOnSelectAll=this.handleKeyboardOnSelectAll.bind(this),this.handleKeyboardOnSearch=this.handleKeyboardOnSearch.bind(this),this.handleKeyboardOnOptions=this.handleKeyboardOnOptions.bind(this),this.handleKeyboardOnOption=this.handleKeyboardOnOption.bind(this),this.handleKeyboardOnClearAll=this.handleKeyboardOnClearAll.bind(this),this.handleKeyboardOnClose=this.handleKeyboardOnClose.bind(this),this.setCurrentValue=this.setCurrentValue.bind(this),this.update=this.update.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");var e,t;ECL.components=ECL.components||new Map,this.select=this.element,this.multiple?(e=Array.from(this.select.parentElement.classList),this.textDefault=this.defaultText||this.element.getAttribute(this.defaultTextAttribute),this.textSearch=this.searchText||this.element.getAttribute(this.searchTextAttribute),this.textSelectAll=this.selectAllText||this.element.getAttribute(this.selectAllTextAttribute),this.textNoResults=this.noResultsText||this.element.getAttribute(this.noResultsTextAttribute),this.closeButtonLabel=this.closeButtonLabel||this.element.getAttribute(this.closeLabelAttribute),this.clearAllButtonLabel=this.clearAllButtonLabel||this.element.getAttribute(this.clearAllLabelAttribute),this.selectMultipleId=this.element.id||"select-multiple-"+d(N,L)[L](4),this.element.id=this.selectMultipleId,this.formGroup=this.element.closest(".ecl-form-group"),this.formGroup&&(this.formGroup.setAttribute("role","application"),this.label=v(".ecl-form-label",this.formGroup),this.helper=v(".ecl-help-block",this.formGroup),this.invalid=v(".ecl-feedback-message",this.formGroup)),this.select.setAttribute("tabindex","-1"),this.selectMultiple=document.createElement("div"),this.selectMultiple.classList.add("ecl-select__multiple"),this.selectMultiple.addEventListener("focusout",this.handleFocusout),this.inputContainer=document.createElement("div"),this.inputContainer.classList.add(...e),this.selectMultiple.appendChild(this.inputContainer),this.input=document.createElement("button"),this.input.classList.add("ecl-select","ecl-select__multiple-toggle"),this.input.setAttribute("type","button"),this.input.setAttribute("aria-controls",this.selectMultipleId+"-dropdown"),this.input.setAttribute("id",this.selectMultipleId+"-toggle"),this.input.setAttribute("aria-expanded",!1),e.find(e=>e.includes("disabled"))&&this.input.setAttribute("disabled",!0),this.label&&(this.label.setAttribute("for",this.selectMultipleId+"-toggle"),this.input.setAttribute("aria-labelledby",this.label.id)),t="",this.helper&&(t=this.helper.id),(t=this.invalid?t?t+" "+this.invalid.id:this.invalid.id:t)&&this.input.setAttribute("aria-describedby",t),this.input.addEventListener("keydown",this.handleKeyboardOnSelect),this.input.addEventListener("click",this.handleToggle),this.selectionCount=document.createElement("div"),this.selectionCount.classList.add(this.selectMultiplesSelectionCountSelector),this.selectionCountText=document.createElement("span"),this.selectionCount.appendChild(this.selectionCountText),this.inputContainer.appendChild(this.selectionCount),this.inputContainer.appendChild(this.input),this.inputContainer.appendChild(d(N,f)[f]()),this.searchContainer=document.createElement("div"),this.searchContainer.style.display="none",this.searchContainer.classList.add("ecl-select__multiple-dropdown",...e),this.searchContainer.setAttribute("id",this.selectMultipleId+"-dropdown"),this.selectMultiple.appendChild(this.searchContainer),this.search=document.createElement("input"),this.search.classList.add("ecl-text-input"),this.search.setAttribute("type","search"),this.search.setAttribute("placeholder",this.textSearch||""),this.search.addEventListener("keyup",this.handleSearch),this.search.addEventListener("search",this.handleSearch),this.searchContainer.appendChild(this.search),this.textSelectAll&&(t=Array.from(this.select.options).filter(e=>!e.disabled).length,this.selectAll=d(N,b)[b]({id:"all-"+d(N,L)[L](4),text:this.textSelectAll+" ("+t+")",extraClass:"ecl-select__multiple-all"},this.selectMultipleId),this.selectAll.addEventListener("click",this.handleClickSelectAll),this.selectAll.addEventListener("keypress",this.handleClickSelectAll),this.selectAll.addEventListener("change",this.handleClickSelectAll),this.searchContainer.appendChild(this.selectAll)),this.search.addEventListener("keydown",this.handleKeyboardOnSearch),this.optionsContainer=document.createElement("div"),this.optionsContainer.classList.add("ecl-select__multiple-options"),this.searchContainer.appendChild(this.optionsContainer),(this.clearAllButtonLabel||this.closeButtonLabel)&&(this.dropDownToolbar=document.createElement("div"),this.dropDownToolbar.classList.add("ecl-select-multiple-toolbar"),this.closeButtonLabel&&(this.closeButton=document.createElement("button"),this.closeButton.textContent=this.closeButtonLabel,this.closeButton.classList.add("ecl-button","ecl-button--primary"),this.closeButton.addEventListener("click",this.handleEsc),this.closeButton.addEventListener("keydown",this.handleKeyboardOnClose),this.dropDownToolbar)&&(this.dropDownToolbar.appendChild(this.closeButton),this.searchContainer.appendChild(this.dropDownToolbar),this.dropDownToolbar.style.display="none"),this.clearAllButtonLabel)&&(this.clearAllButton=document.createElement("button"),this.clearAllButton.textContent=this.clearAllButtonLabel,this.clearAllButton.classList.add("ecl-button","ecl-button--secondary"),this.clearAllButton.addEventListener("click",this.handleClickOnClearAll),this.clearAllButton.addEventListener("keydown",this.handleKeyboardOnClearAll),this.dropDownToolbar.appendChild(this.clearAllButton)),this.selectAll.addEventListener("keydown",this.handleKeyboardOnSelectAll),this.optionsContainer.addEventListener("keydown",this.handleKeyboardOnOptions),this.select.options&&0<this.select.options.length?this.checkboxes=Array.from(this.select.options).map(e=>{var t,i="",s="";return"OPTGROUP"===e.parentNode.tagName&&(v('fieldset[data-ecl-multiple-group="'+e.parentNode.getAttribute("label")+'"]',this.optionsContainer)?i=v('fieldset[data-ecl-multiple-group="'+e.parentNode.getAttribute("label")+'"]',this.optionsContainer):(i=document.createElement("fieldset"),(t=document.createElement("legend")).classList.add("ecl-select__multiple-group__title"),t.innerHTML=e.parentNode.getAttribute("label"),i.appendChild(t),i.setAttribute("data-ecl-multiple-group",e.parentNode.getAttribute("label")),i.classList.add("ecl-select__multiple-group"),this.optionsContainer.appendChild(i))),e.selected&&(d(this,E)[E](1),this.dropDownToolbar)&&(this.dropDownToolbar.style.display="flex"),(s=d(N,b)[b]({id:e.value,text:e.text,disabled:e.disabled,selected:e.selected},this.selectMultipleId)).setAttribute("data-visible",!0),s.classList.contains("ecl-checkbox--disabled")||(s.addEventListener("click",this.handleClickOption),s.addEventListener("keydown",this.handleKeyboardOnOption)),(i||this.optionsContainer).appendChild(s),s}):this.checkboxes=[],this.visibleOptions=this.checkboxes,this.select.parentNode.parentNode.insertBefore(this.selectMultiple,this.select.parentNode.nextSibling),this.select.parentNode.classList.add("ecl-select__container--hidden"),d(this,w)[w](),this.form=this.element.closest("form"),this.form&&this.form.addEventListener("reset",this.resetForm),document.addEventListener("click",this.handleClickOutside)):(d(this,C)[C](),this.select.addEventListener("keydown",this.handleKeyboardOnSelect)),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}update(e){d(this,w)[w](),d(this,E)[E](e)}setCurrentValue(e,t){if("replace"!==(t=void 0===t?"replace":t)&&"add"!==t)throw new Error('Invalid operation mode. Use "replace" or "add".');var i="string"==typeof e?[e]:e;Array.from(this.select.options).forEach(e=>{"replace"===t&&(e.selected=!1),(i.includes(e.value)||i.includes(e.label))&&(e.selected=!0)}),this.update()}handleToggle(e){e.preventDefault(),this.input.classList.toggle("ecl-select--active"),"none"===this.searchContainer.style.display?(this.searchContainer.style.display="block",this.input.setAttribute("aria-expanded",!0),this.isOpen=!0):(this.searchContainer.style.display="none",this.input.setAttribute("aria-expanded",!1),this.isOpen=!1);e={opened:this.isOpen,e:e};this.trigger("onToggle",e)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.input.removeEventListener("keydown",this.handleKeyboardOnSelect),this.multiple&&(document.removeEventListener("click",this.handleClickOutside),this.selectMultiple.removeEventListener("focusout",this.handleFocusout),this.input.removeEventListener("click",this.handleToggle),this.search.removeEventListener("keyup",this.handleSearch),this.search.removeEventListener("keydown",this.handleKeyboardOnSearch),this.selectAll.removeEventListener("click",this.handleClickSelectAll),this.selectAll.removeEventListener("keypress",this.handleClickSelectAll),this.selectAll.removeEventListener("keydown",this.handleKeyboardOnSelectAll),this.optionsContainer.removeEventListener("keydown",this.handleKeyboardOnOptions),this.checkboxes.forEach(e=>{e.removeEventListener("click",this.handleClickSelectAll),e.removeEventListener("click",this.handleClickOption),e.removeEventListener("keydown",this.handleKeyboardOnOption)}),this.closeButton&&(this.closeButton.removeEventListener("click",this.handleEsc),this.closeButton.removeEventListener("keydown",this.handleKeyboardOnClose)),this.clearAllButton&&(this.clearAllButton.removeEventListener("click",this.handleClickOnClearAll),this.clearAllButton.removeEventListener("keydown",this.handleKeyboardOnClearAll)),this.selectMultiple&&this.selectMultiple.remove(),this.select.parentNode.classList.remove("ecl-select__container--hidden")),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOption(e){e.preventDefault(),d(N,y)[y](e);var t=e.target.closest(".ecl-checkbox");Array.from(this.select.options).forEach(e=>{e.text===t.getAttribute("data-select-multiple-value")&&(e.getAttribute("selected")||e.selected?(e.selected=!1,this.selectAll.querySelector("input").checked=!1):e.selected=!0)}),this.update()}handleClickSelectAll(e){var i,s;e.preventDefault(),this.selectAll.querySelector("input").disabled||(i=d(N,y)[y](e),s=Array.from(this.select.options).filter(e=>!e.disabled),Array.from(this.searchContainer.querySelectorAll('[data-visible="true"]')).filter(e=>!e.querySelector("input").disabled).forEach(t=>{t.querySelector("input").checked=i;var e=s.find(e=>e.text===t.getAttribute("data-select-multiple-value"));e&&(e.selected=!!i)}),this.update(),this.trigger("onSelectAll",{selected:s}))}handleFocusout(e){e.relatedTarget&&this.selectMultiple&&!this.selectMultiple.contains(e.relatedTarget)&&"block"===this.searchContainer.style.display?(this.searchContainer.style.display="none",this.input.classList.remove("ecl-select--active"),this.input.setAttribute("aria-expanded",!1)):!e.relatedTarget||this.selectMultiple||this.select.parentNode.contains(e.relatedTarget)||this.select.blur()}handleSearch(e){for(var t,i=this.optionsContainer.offsetHeight,s=(this.visibleOptions=[],e.target.value.toLowerCase()),n={},i=(0<i&&(this.optionsContainer.style.height=i+"px"),this.checkboxes.forEach(e=>{var t;e.getAttribute("data-select-multiple-value").toLocaleLowerCase().includes(s)?(e.setAttribute("data-visible",!0),e.style.display="flex",(t=e.querySelector(".ecl-checkbox__label-text")).textContent=t.textContent.replace(".cls-1{fill:none}",""),s&&(t.innerHTML=t.textContent.replace(new RegExp(s+"(?!([^<]+)?<)","gi"),"<b>$&</b>")),this.visibleOptions.push(e)):(e.removeAttribute("data-visible"),e.style.display="none")}),this.visibleOptions.filter(e=>e.querySelector("input").checked)),i=(0===this.visibleOptions.length||this.visibleOptions.length!==i.length?this.selectAll.querySelector("input").checked=!1:this.selectAll.querySelector("input").checked=!0,this.searchContainer.querySelector(".ecl-select__multiple-no-results")),l=B(this.optionsContainer.getElementsByClassName("ecl-select__multiple-group"));!(a=l()).done;){var a=a.value;a.style.display="none",[...a.children].filter(e=>e.classList.contains("ecl-checkbox")).forEach(e=>{e.hasAttribute("data-visible")&&(e.closest(".ecl-select__multiple-group").style.display="block")})}0!==this.visibleOptions.length||i?0<this.visibleOptions.length&&null!==i&&i.parentNode.removeChild(i):(i=document.createElement("div"),t=document.createElement("span"),i.classList.add("ecl-select__multiple-no-results"),t.innerHTML=this.textNoResults,i.appendChild(t),this.optionsContainer.appendChild(i)),0===s.length?(this.checkboxes.forEach(e=>{e.setAttribute("data-visible",!0),e.style.display="flex"}),this.selectAll.classList.remove("ecl-checkbox--disabled"),this.selectAll.querySelector("input").disabled=!1):(this.selectAll.classList.add("ecl-checkbox--disabled"),this.selectAll.querySelector("input").disabled=!0),n=0<this.visibleOptions.length?{results:this.visibleOptions.map(e=>{var t=null,e=v(".ecl-checkbox__label-text",e);return(t=e?e.innerHTML.replace(/<\/?b>/g,""):t)||""}),text:e.target.value.toLowerCase()}:{results:"none",text:e.target.value.toLowerCase()},this.trigger("onSearch",n)}handleClickOutside(e){e.target&&this.selectMultiple&&!this.selectMultiple.contains(e.target)&&"block"===this.searchContainer.style.display&&(this.searchContainer.style.display="none",this.input.classList.remove("ecl-select--active"),this.input.setAttribute("aria-expanded",!1))}handleKeyboardOnSelect(e){switch(e.key){case"Escape":e.preventDefault(),this.handleEsc(e);break;case" ":case"Enter":case"ArrowDown":this.multiple&&(e.preventDefault(),this.handleToggle(e),this.search.focus())}}handleKeyboardOnSelectAll(e){switch(e.key){case"Escape":e.preventDefault(),this.handleEsc(e);break;case"ArrowDown":e.preventDefault(),(0<this.visibleOptions.length?this.visibleOptions[0].querySelector("input"):this.input).focus();break;case"ArrowUp":e.preventDefault(),this.search.focus();break;case"Tab":e.preventDefault(),(e.shiftKey?this.search:0<this.visibleOptions.length?this.visibleOptions[0].querySelector("input"):this.input).focus()}}handleKeyboardOnOptions(e){switch(e.key){case"Escape":e.preventDefault(),this.handleEsc(e);break;case"ArrowDown":e.preventDefault(),d(this,P)[P]("down",!1);break;case"ArrowUp":e.preventDefault(),d(this,P)[P]("up");break;case"Tab":e.preventDefault(),e.shiftKey?d(this,P)[P]("up"):d(this,P)[P]("down")}}handleKeyboardOnSearch(e){switch(e.key){case"Escape":e.preventDefault(),this.handleEsc(e);break;case"ArrowDown":e.preventDefault(),(this.selectAll.querySelector("input").disabled?0<this.visibleOptions.length?this.visibleOptions[0].querySelector("input"):this.input:this.selectAll.querySelector("input")).focus();break;case"ArrowUp":e.preventDefault(),this.input.focus(),this.handleToggle(e)}}handleKeyboardOnOption(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleClickOption(e))}handleKeyboardOnClearAll(e){switch(e.preventDefault(),e.key){case"Enter":case" ":this.handleClickOnClearAll(e),this.trigger("onReset",e),this.input.focus();break;case"ArrowDown":this.input.focus();break;case"ArrowUp":(this.closeButton||(0<this.visibleOptions.length?this.visibleOptions[this.visibleOptions.length-1].querySelector("input"):this.search)).focus();break;case"Tab":e.shiftKey?(this.closeButton||(0<this.visibleOptions.length?this.visibleOptions[this.visibleOptions.length-1].querySelector("input"):this.search)).focus():(this.input.focus(),this.handleToggle(e))}}handleKeyboardOnClose(e){switch(e.preventDefault(),e.key){case"Enter":case" ":this.handleEsc(e),this.input.focus();break;case"ArrowUp":0<this.visibleOptions.length?this.visibleOptions[this.visibleOptions.length-1].querySelector("input").focus():(this.input.focus(),this.handleToggle(e));break;case"ArrowDown":this.clearAllButton?this.clearAllButton.focus():(this.input.focus(),this.handleToggle(e));break;case"Tab":e.shiftKey?0<this.visibleOptions.length?this.visibleOptions[this.visibleOptions.length-1].querySelector("input").focus():(this.input.focus(),this.handleToggle(e)):this.clearAllButton?this.clearAllButton.focus():(this.input.focus(),this.handleToggle(e))}}handleEsc(e){(this.multiple?(e.preventDefault(),this.searchContainer.style.display="none",this.input.setAttribute("aria-expanded",!1),this.input.blur(),this.input):this.select).classList.remove("ecl-select--active")}handleClickOnClearAll(e){e.preventDefault(),Array.from(this.select.options).forEach(e=>{this.selectMultiple.querySelector('[data-select-multiple-value="'+e.text+'"]').querySelector(".ecl-checkbox__input").checked=!1,e.selected=!1}),this.selectAll.querySelector(".ecl-checkbox__input").checked=!1,this.update(0),this.trigger("onReset",e)}resetForm(){this.multiple&&setTimeout(()=>{Array.from(this.select.options).forEach(e=>{this.selectMultiple.querySelector('[data-select-multiple-value="'+e.text+'"]').querySelector(".ecl-checkbox__input").checked?e.selected=!0:e.selected=!1}),this.update(0)},10)}}function de(e){var t=0;0<e?this.selectionCount.querySelector("span").innerHTML+=e:t=Array.from(this.select.options).filter(e=>e.selected).length,0<t?(this.selectionCount.querySelector("span").innerHTML=t,this.selectionCount.classList.add("ecl-select-multiple-selections-counter--visible"),this.dropDownToolbar&&(this.dropDownToolbar.style.display="flex")):(this.selectionCount.classList.remove("ecl-select-multiple-selections-counter--visible"),this.dropDownToolbar&&(this.dropDownToolbar.style.display="none")),100<=t&&this.selectionCount.classList.add("ecl-select-multiple-selections-counter--xxl")}function ue(){Array.from(this.select.options).forEach(e=>{var t,i;"OPTGROUP"===e.parentNode.tagName&&(t=e.parentNode.getAttribute("label"),i=e.getAttribute("label")||e.textContent,t)&&i&&e.setAttribute("aria-label",t+": "+i)})}function me(){var e=Array.from(this.select.options).filter(e=>e.selected).map(e=>e.text).join(", ");this.input.innerHTML=e||this.textDefault||"",""!==e&&this.label?this.label.setAttribute("aria-label",this.label.innerText+" "+e):""===e&&this.label&&this.label.removeAttribute("aria-label"),this.trigger("onSelection",{selected:e}),this.select.dispatchEvent(new window.Event("change",{bubbles:!0}))}function pe(e,t){void 0===t&&(t=!0);var i=document.activeElement,s=i.parentElement.parentElement.classList.contains("ecl-select__multiple-group")?Array.from(i.parentElement.parentElement.parentElement.querySelectorAll(".ecl-checkbox__input")):Array.from(i.parentElement.parentElement.querySelectorAll(".ecl-checkbox__input")),i=s.indexOf(i);"down"===e?0<(e=s.splice(i+1,s.length).filter(e=>!e.disabled&&"none"!==e.parentElement.style.display)).length?e[0].focus():t&&(this.dropDownToolbar&&"flex"===this.dropDownToolbar.style.display?this.dropDownToolbar.firstChild:this.input).focus():(0<(e=s.splice(0,i).filter(e=>!e.disabled&&"none"!==e.parentElement.style.display)).length?e[e.length-1]:(this.optionsContainer.scrollTop=0,this.selectAll.querySelector("input").disabled?this.search:this.selectAll.querySelector("input"))).focus()}p=N,Object.defineProperty(N,L,{value:function(e){return Math.random().toString(36).substr(2,e)}}),Object.defineProperty(N,y,{value:function(e){return(e=e.target.closest(".ecl-checkbox").querySelector("input")).checked=!e.checked,e.checked}}),Object.defineProperty(N,f,{value:function(){var e=document.createElement("div"),t=(e.classList.add("ecl-select__icon"),document.createElement("button")),i=(t.classList.add("ecl-button","ecl-button--ghost","ecl-button--icon-only"),t.setAttribute("tabindex","-1"),document.createElement("span"));i.classList.add("ecl-button__container");(s=document.createElement("span")).classList.add("ecl-button__label"),s.textContent="Toggle dropdown",i.appendChild(s);var s=d(p,g)[g]('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fill-rule="evenodd" d="m45 33.12-2.73 2.82-18.24-18.36L5.73 36 3 33.18 24.03 12z"/></svg>',"ecl-icon ecl-icon--xs ecl-icon--rotate-180");return i.appendChild(s),t.appendChild(i),e.appendChild(t),e}}),Object.defineProperty(N,b,{value:function(e,t){var i,s,n,l,a,o,r,h,c;return e&&t&&(i=e.id,s=e.text,n=e.disabled,l=e.selected,e=e.extraClass,i)&&s?(a=document.createElement("div"),o=document.createElement("input"),r=document.createElement("label"),h=document.createElement("span"),c=document.createElement("span"),e&&a.classList.add(e),l&&o.setAttribute("checked",!0),n&&(a.classList.add("ecl-checkbox--disabled"),h.classList.add("ecl-checkbox__box--disabled"),o.setAttribute("disabled",n)),a.classList.add("ecl-checkbox"),a.setAttribute("data-select-multiple-value",s),o.classList.add("ecl-checkbox__input"),o.setAttribute("type","checkbox"),o.setAttribute("id",t+"-"+i),o.setAttribute("name",t+"-"+i),a.appendChild(o),r.classList.add("ecl-checkbox__label"),r.setAttribute("for",t+"-"+i),h.classList.add("ecl-checkbox__box"),h.setAttribute("aria-hidden",!0),h.appendChild(d(p,g)[g]('<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 48 48"><path fill-rule="evenodd" d="M19.47 36.87 5.95 23.36l2.12-2.12 11.4 11.39 20.46-20.44 2.12 2.13z" clip-rule="evenodd"/></svg>',"ecl-icon ecl-icon--s ecl-checkbox__icon")),r.appendChild(h),c.classList.add("ecl-checkbox__label-text"),c.innerHTML=s,r.appendChild(c),a.appendChild(r),a):""}}),Object.defineProperty(N,g,{value:function(e,t){var i=document.createElement("div");return i.innerHTML=e,(e=i.children[0]).removeAttribute("height"),e.removeAttribute("width"),e.setAttribute("focusable",!1),e.setAttribute("aria-hidden",!0),e.setAttribute("class",t),e}});class D{static autoInit(e,t){t=(void 0===t?{}:t).TABLE,t=void 0===t?{}:t,t=new D(e,t);return t.init(),e.ECLTable=t}constructor(e,t){var t=void 0===t?{}:t,i=t.sortSelector,i=void 0===i?"[data-ecl-table-sort-toggle]":i,t=t.sortLabelSelector,t=void 0===t?"data-ecl-table-sort-label":t;if(this.handleClickOnSort=l=>e=>{e.preventDefault();for(var e=l.closest("table"),i=v("tbody",e),t=l.getAttribute("aria-sort"),s=0,n=l.previousElementSibling;n;)s+=n.getAttribute("colspan")?Number(n.getAttribute("colspan")):1,n=n.previousElementSibling;e=(s,n)=>(e,t)=>{return i=(n?e:t).children[s].textContent,t=(n?t:e).children[s].textContent,""===i||""===t||Number.isNaN(+i)||Number.isNaN(+t)?i.toString().localeCompare(t):i-t;var i},t="descending"===t?([...a("tr",i)].forEach((e,t)=>{t=v("[data-ecl-table-order='"+t+"']");i.appendChild(t)}),null):([...a("tr",i)].sort(e(s,"ascending"!==t)).forEach(e=>i.appendChild(e)),"ascending"===t?"descending":"ascending");this.sortHeadings.forEach(e=>{t&&e===l?e.setAttribute("aria-sort",t):e.removeAttribute("aria-sort")})},!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.sortSelector=i,this.sortLabelSelector=t,this.sortHeadings=null,this.handleClickOnSort=this.handleClickOnSort.bind(this)}static createSortIcon(e){var t=document.createElement("span"),t=(t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="m12 30 12-15 12 15z"/></svg>',t.children[0]);return t.removeAttribute("height"),t.removeAttribute("width"),t.setAttribute("focusable",!1),t.setAttribute("aria-hidden",!0),t.setAttribute("class","ecl-table__icon ecl-icon ecl-icon--xs "+e),t}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.sortHeadings=a(this.sortSelector,this.element),this.sortHeadings&&this.sortHeadings.forEach(t=>{var e=document.createElement("button");e.classList.add("ecl-table__arrow"),this.element.hasAttribute(this.sortLabelSelector)&&e.setAttribute("aria-label",this.element.getAttribute(this.sortLabelSelector)),e.appendChild(D.createSortIcon("ecl-table__icon-up")),e.appendChild(D.createSortIcon("ecl-table__icon-down")),t.appendChild(e),t.addEventListener("click",e=>this.handleClickOnSort(t)(e))});var e=v("tbody",this.element);[...a("tr",e)].forEach((e,t)=>{e.setAttribute("data-ecl-table-order",t)}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.sortHeadings&&this.sortHeadings.forEach(t=>{t.removeEventListener("click",e=>this.handleClickOnSort(t)(e))}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}}return e.Accordion=class ve{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).ACCORDION)?{}:t,(t=new ve(e,t)).init(),e.ECLAccordion=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).toggleSelector)?"[data-ecl-accordion-toggle]":i,s=void 0===(s=t.iconSelector)?"[data-ecl-accordion-icon]":s,t=void 0===(t=t.attachClickListener)||t;if(this.supportedEvents=["onToggle"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.toggleSelector=i,this.iconSelector=s,this.attachClickListener=t,this.toggles=null,this.forceClose=!1,this.target=null,this.handleClickOutside=this.handleClickOutside.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,document.addEventListener("click",this.handleClickOutside),this.toggles=a(this.toggleSelector,this.element),this.attachClickListener&&this.toggles&&this.toggles.forEach(t=>{t.addEventListener("click",e=>this.handleClickOnToggle(e,t))}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){document.removeEventListener("click",this.handleClickOutside),this.attachClickListener&&this.toggles&&this.toggles.forEach(e=>{e.replaceWith(e.cloneNode(!0))}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOutside(e){e.target&&this.toggles&&!this.element.contains(e.target)&&this.toggles.forEach(e=>e.classList.remove("ecl-accordion__toggle--active"))}handleClickOnToggle(e,t){var i=!1,s=v("#"+t.getAttribute("aria-controls"),this.element);if(!s)throw new TypeError("Target has to be provided for accordion (aria-controls)");var n,l=!0===this.forceClose||"true"===t.getAttribute("aria-expanded");t.setAttribute("aria-expanded",l?"false":"true"),l?s.hidden=!0:i=!(s.hidden=!1),this.trigger("onToggle",{item:s,isOpening:i}),(s=v(this.iconSelector,t))&&(i=v("use",s))&&(s=i.getAttribute("xlink:href"),n="",n=l?s.replace("minus","plus"):s.replace("plus","minus"),i.setAttribute("xlink:href",n)),this.toggles.forEach(e=>e.classList.remove("ecl-accordion__toggle--active")),0<e.detail&&t.classList.add("ecl-accordion__toggle--active")}},e.Banner=class ge{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).BANNER)?{}:t,(t=new ge(e,t)).init(),e.ECLBanner=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).bannerContainer)?"[data-ecl-banner-container]":i,s=void 0===(s=t.bannerVPadding)?"8":s,n=void 0===(n=t.bannerPicture)?"[data-ecl-banner-image]":n,l=void 0===(l=t.breakpoint)?"996":l,a=void 0===(a=t.attachResizeListener)||a,t=void 0===(t=t.maxIterations)?10:t;if(this.supportedEvents=["onCtaClick"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.bannerVPadding=s,this.resizeTimer=null,this.bannerContainer=v(i,this.element),this.bannerPicture=v(n,this.element),this.bannerImage=!!this.bannerPicture&&v("img",this.bannerPicture),this.bannerCTA=!!this.bannerPicture&&v(".ecl-banner__cta",this.element),this.breakpoint=l,this.attachResizeListener=a,this.maxIterations=t,this.setBannerHeight=this.setBannerHeight.bind(this),this.checkViewport=this.checkViewport.bind(this),this.resetBannerHeight=this.resetBannerHeight.bind(this),this.handleResize=this.handleResize.bind(this),this.waitForAspectRatioToBeDefined=this.waitForAspectRatioToBeDefined.bind(this),this.setHeight=this.setHeight.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.defaultRatio=()=>this.element.classList.contains("ecl-banner--xs")?"6/1":this.element.classList.contains("ecl-banner--s")?"5/1":this.element.classList.contains("ecl-banner--l")?"3/1":"4/1",this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.bannerCTA&&this.bannerCTA.addEventListener("click",e=>this.handleCtaClick(e)),this.checkViewport(),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}waitForAspectRatioToBeDefined(){this.attemptCounter=(this.attemptCounter||0)+1;var e=getComputedStyle(this.bannerImage).getPropertyValue("--css-aspect-ratio");(void 0===e||""===e)&&this.maxIterations>this.attemptCounter?setTimeout(()=>this.waitForAspectRatioToBeDefined(),100):this.setHeight(e)}setHeight(e){var t=this.bannerContainer.offsetHeight+2*parseInt(this.bannerVPadding,10),i=parseInt(getComputedStyle(this.element).getPropertyValue("width"),10),s=(e=e.split("/").map(Number))[0];i*e[1]/s<t?(this.bannerImage&&(this.bannerImage.style.aspectRatio="auto"),this.element.style.height=t+"px"):this.resetBannerHeight()}setBannerHeight(){this.bannerImage?this.waitForAspectRatioToBeDefined():this.setHeight(this.defaultRatio())}resetBannerHeight(){var e;this.bannerImage&&(e=getComputedStyle(this.bannerImage),this.bannerImage.style.aspectRatio=e.getPropertyValue("--css-aspect-ratio")),this.element.style.height="auto"}checkViewport(){window.innerWidth>this.breakpoint?this.setBannerHeight():this.resetBannerHeight()}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.checkViewport()},200)}handleCtaClick(e){var t=null,i=((i=e.target.closest("a"))&&(t=i.getAttribute("href")),{item:this.bannerCTA,target:t||e.target});this.trigger("onCtaClick",i)}destroy(){this.resetBannerHeight(),this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.bannerCTA&&this.bannerCTA.removeEventListener("click",this.handleCtaClick)}},e.Breadcrumb=class be{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).BREADCRUMB)?{}:t,(t=new be(e,t)).init(),e.ECLBreadcrumb=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).ellipsisButtonSelector)?"[data-ecl-breadcrumb-ellipsis-button]":i,s=void 0===(s=t.ellipsisSelector)?"[data-ecl-breadcrumb-ellipsis]":s,n=void 0===(n=t.segmentSelector)?"[data-ecl-breadcrumb-item]":n,l=void 0===(l=t.expandableItemsSelector)?'[data-ecl-breadcrumb-item="expandable"]':l,a=void 0===(a=t.staticItemsSelector)?'[data-ecl-breadcrumb-item="static"]':a,o=void 0===(o=t.onPartialExpand)?null:o,r=void 0===(r=t.onFullExpand)?null:r,h=void 0===(h=t.attachClickListener)||h,t=void 0===(t=t.attachResizeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=i,this.ellipsisSelector=s,this.segmentSelector=n,this.expandableItemsSelector=l,this.staticItemsSelector=a,this.onPartialExpand=o,this.onFullExpand=r,this.attachClickListener=h,this.attachResizeListener=t,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.resizeTimer=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this),this.handleResize=this.handleResize.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.ellipsisButton=v(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=a(this.segmentSelector,this.element),this.staticElements=a(this.staticItemsSelector,this.element),this.expandableElements=a(this.expandableItemsSelector,this.element),this.check(),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnEllipsis(){return this.handleFullExpand()}check(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))}hideEllipsis(){var e=v(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true")}showAllItems(){this.expandableElements.forEach(e=>e.setAttribute("aria-hidden","false"))}handlePartialExpand(e){var i;e&&(this.element.classList.add("ecl-breadcrumb--collapsed"),i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):767<Math.floor(this.element.getBoundingClientRect().width)?((e=v(this.ellipsisSelector,this.element))&&e.setAttribute("aria-hidden","false"),this.expandableElements.forEach((e,t)=>{e.setAttribute("aria-hidden",i[t]?"false":"true")})):this.expandableElements.forEach(e=>{e.setAttribute("aria-hidden","true")}))}handleFullExpand(){this.element.classList.remove("ecl-breadcrumb--collapsed"),this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.check()},200)}computeVisibilityMap(){var t,i,s,n;return!this.expandableElements||0===this.expandableElements.length||(t=Math.floor(this.element.getBoundingClientRect().width),1.2*this.itemsElements.map(e=>{var t=e.getBoundingClientRect().width;return 0===t&&(e.style.display="inline-flex",t=e.getBoundingClientRect().width,e.style.cssText=""),t}).reduce((e,t)=>e+t)<=t)?{expanded:!0}:(i=v(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce((e,t)=>e+t.getBoundingClientRect().width,0),t<=i?{expanded:!1,isItemVisible:[...this.expandableElements.map(()=>!1)]}:{expanded:!(n=!(s=0)),isItemVisible:[...this.expandableElements].reverse().map(e=>!!n&&((e=(s+=e.getBoundingClientRect().width)+i<=t)||(n=!1),e)).reverse()})}},e.Carousel=class fe{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).CAROUSEL)?{}:t,(t=new fe(e,t)).init(),e.ECLCarousel=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).playSelector)?".ecl-carousel__play":i,s=void 0===(s=t.pauseSelector)?".ecl-carousel__pause":s,n=void 0===(n=t.containerClass)?".ecl-carousel__container":n,l=void 0===(l=t.slidesClass)?".ecl-carousel__slides":l,a=void 0===(a=t.slideClass)?".ecl-carousel__slide":a,o=void 0===(o=t.currentSlideClass)?".ecl-carousel__current":o,r=void 0===(r=t.navigationItemsClass)?".ecl-carousel__navigation-item":r,h=void 0===(h=t.controlsClass)?".ecl-carousel__controls":h,c=void 0===(c=t.attachClickListener)||c,t=void 0===(t=t.attachResizeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.playSelector=i,this.pauseSelector=s,this.containerClass=n,this.slidesClass=l,this.slideClass=a,this.currentSlideClass=o,this.navigationItemsClass=r,this.controlsClass=h,this.attachClickListener=c,this.attachResizeListener=t,this.container=null,this.slides=null,this.btnPlay=null,this.btnPause=null,this.index=1,this.total=0,this.allowShift=!0,this.activeNav=null,this.autoPlay=null,this.autoPlayInterval=null,this.hoverAutoPlay=null,this.resizeTimer=null,this.posX1=0,this.posX2=0,this.posInitial=0,this.posFinal=0,this.threshold=80,this.navigationItems=null,this.navigation=null,this.controls=null,this.direction="ltr",this.cloneFirstSLide=null,this.cloneLastSLide=null,this.executionCount=0,this.maxExecutions=5,this.handleAutoPlay=this.handleAutoPlay.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.shiftSlide=this.shiftSlide.bind(this),this.checkIndex=this.checkIndex.bind(this),this.moveSlides=this.moveSlides.bind(this),this.handleResize=this.handleResize.bind(this),this.dragStart=this.dragStart.bind(this),this.dragEnd=this.dragEnd.bind(this),this.dragAction=this.dragAction.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyboardOnPlay=this.handleKeyboardOnPlay.bind(this),this.handleKeyboardOnBullets=this.handleKeyboardOnBullets.bind(this),this.checkBannerHeights=this.checkBannerHeights.bind(this),this.resetBannerHeights=this.resetBannerHeights.bind(this)}init(){var e,t;if(ECL)return ECL.components=ECL.components||new Map,this.btnPlay=v(this.playSelector,this.element),this.btnPause=v(this.pauseSelector,this.element),this.slidesContainer=v(this.slidesClass,this.element),this.container=v(this.containerClass,this.element),this.navigation=v(".ecl-carousel__navigation",this.element),this.navigationItems=a(this.navigationItemsClass,this.element),this.controls=v(this.controlsClass,this.element),this.currentSlide=v(this.currentSlideClass,this.element),this.direction=getComputedStyle(this.element).direction,this.slides=a(this.slideClass,this.element),this.total=this.slides.length,this.total<=1?(this.controls&&(this.controls.style.display="none"),this.slidesContainer&&(this.slidesContainer.style.display="block"),!1):(e=this.slides[0],t=this.slides[this.slides.length-1],this.cloneFirstSLide=e.cloneNode(!0),this.cloneLastSLide=t.cloneNode(!0),this.slidesContainer.appendChild(this.cloneFirstSLide),this.slidesContainer.insertBefore(this.cloneLastSLide,e),this.slides=a(this.slideClass,this.element),this.slides.forEach(e=>{e.style.width=100/this.slides.length+"%"}),this.handleResize(),this.checkIndex(),this.navigationItems&&this.navigationItems.forEach((e,t)=>{e.addEventListener("click",this.shiftSlide.bind(this,t+1,!0))}),this.navigation&&this.navigation.addEventListener("keydown",this.handleKeyboardOnBullets),this.attachClickListener&&this.btnPlay&&this.btnPause&&(this.btnPlay.addEventListener("click",this.handleAutoPlay),this.btnPause.addEventListener("click",this.handleAutoPlay)),this.btnPlay&&this.btnPlay.addEventListener("keydown",this.handleKeyboardOnPlay),this.slidesContainer&&(this.slidesContainer.addEventListener("mouseover",this.handleMouseOver),this.slidesContainer.addEventListener("mouseout",this.handleMouseOut),this.slidesContainer.addEventListener("touchstart",this.dragStart),this.slidesContainer.addEventListener("touchend",this.dragEnd),this.slidesContainer.addEventListener("touchmove",this.dragAction),this.slidesContainer.addEventListener("transitionend",this.checkIndex)),this.container&&this.container.addEventListener("focus",this.handleFocus,!0),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this),this);throw new TypeError("Called init but ECL is not present")}destroy(){this.cloneFirstSLide&&this.cloneLastSLide&&(this.cloneFirstSLide.remove(),this.cloneLastSLide.remove()),this.btnPlay&&this.btnPlay.replaceWith(this.btnPlay.cloneNode(!0)),this.btnPause&&this.btnPause.replaceWith(this.btnPause.cloneNode(!0)),this.slidesContainer&&(this.slidesContainer.removeEventListener("mouseover",this.handleMouseOver),this.slidesContainer.removeEventListener("mouseout",this.handleMouseOut),this.slidesContainer.removeEventListener("touchstart",this.dragStart),this.slidesContainer.removeEventListener("touchend",this.dragEnd),this.slidesContainer.removeEventListener("touchmove",this.dragAction),this.slidesContainer.removeEventListener("transitionend",this.checkIndex)),this.container&&this.container.removeEventListener("focus",this.handleFocus,!0),this.navigationItems&&this.navigationItems.forEach(e=>{e.replaceWith(e.cloneNode(!0))}),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.autoPlayInterval&&(clearInterval(this.autoPlayInterval),this.autoPlay=null),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}checkBannerHeights(){var e,i;this.executionCount+=1,this.executionCount>this.maxExecutions?(clearInterval(this.intervalId),this.executionCount=0):(e=this.slides.map(e=>{var e=v(".ecl-banner",e),t=parseInt(e.style.height,10);return"auto"===e.style.height?0:Number.isNaN(t)||100===t?1:t}).filter(e=>void 0!==e),i=Math.max(...e),(e.length===this.slides.length&&0===i||1<i)&&(clearInterval(this.intervalId),0<i)&&(this.executionCount=0,this.slides.forEach(e=>{var t=null;(e=v(".ecl-banner",e))&&(t=v("img",e),e.style.height=i+"px"),t&&(t.style.aspectRatio="auto")})))}resetBannerHeights(){this.slides.forEach(e=>{var e=v(".ecl-banner",e),t=null;e&&(e.style.height="",t=v("img",e))&&(t.style.aspectRatio="")})}dragStart(e){e=e||window.event,this.posInitial=this.slidesContainer.offsetLeft,"touchstart"===e.type&&(this.posX1=e.touches[0].clientX)}dragAction(e){"touchmove"===(e=e||window.event).type&&(e.preventDefault(),this.posX2=this.posX1-e.touches[0].clientX,this.posX1=e.touches[0].clientX),this.slidesContainer.style.left=this.slidesContainer.offsetLeft-this.posX2+"px"}dragEnd(){this.posFinal=this.slidesContainer.offsetLeft,this.posFinal-this.posInitial<-this.threshold?this.shiftSlide("next",!0):this.posFinal-this.posInitial>this.threshold?this.shiftSlide("prev",!0):this.slidesContainer.style.left=this.posInitial+"px"}shiftSlide(e,t){this.allowShift&&(this.index="number"==typeof e?e:"next"===e?this.index+1:this.index-1,this.moveSlides(!0)),t&&this.autoPlay&&this.handleAutoPlay(),this.allowShift=!1}moveSlides(e){var t=this.container.offsetWidth*this.index;this.slidesContainer.style.transitionDuration=e?"0.4s":"0s","rtl"===this.direction?this.slidesContainer.style.right="-"+t+"px":this.slidesContainer.style.left="-"+t+"px"}checkIndex(){0===this.index&&(this.index=this.total),this.index===this.total+1&&(this.index=1),this.moveSlides(!1),this.currentSlide&&(this.currentSlide.textContent=this.index),this.slides&&this.slides.forEach((e,t)=>{var i=v(".ecl-link--cta",e);this.index===t?(e.removeAttribute("inert","true"),i&&i.removeAttribute("tabindex",-1)):(e.setAttribute("inert","true"),i&&i.setAttribute("tabindex",-1))}),this.navigationItems&&this.navigationItems.forEach((e,t)=>{this.index===t+1?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current","true")}),this.allowShift=!0}handleAutoPlay(){var e;this.autoPlay?(clearInterval(this.autoPlayInterval),this.autoPlay=!1,e=document.activeElement===this.btnPause,this.btnPlay.style.display="flex",this.btnPause.style.display="none",e&&this.btnPlay.focus()):(this.autoPlayInterval=setInterval(()=>{this.shiftSlide("next")},5e3),this.autoPlay=!0,e=document.activeElement===this.btnPlay,this.btnPlay.style.display="none",this.btnPause.style.display="flex",e&&this.btnPause.focus())}handleMouseOver(){return this.hoverAutoPlay=this.autoPlay,this.hoverAutoPlay&&this.handleAutoPlay(),this}handleMouseOut(){return this.hoverAutoPlay&&this.handleAutoPlay(),this}handleResize(){var e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),t=(clearInterval(this.intervalId),clearTimeout(this.resizeTimer),0);this.resizeTimer=setTimeout(()=>{998<=e?this.intervalId=setInterval(this.checkBannerHeights,100):this.resetBannerHeights()},250),t=768<=e?this.container.offsetWidth:this.container.offsetWidth+15,this.slidesContainer.style.width=t*this.slides.length+"px",this.moveSlides(!1),1140<=e&&e<=1260?this.container.classList.add("ecl-carousel-container--padded"):this.container.classList.remove("ecl-carousel-container--padded"),(e<=768&&this.autoPlay||768<e&&null===this.autoPlay)&&this.handleAutoPlay()}handleKeyboardOnPlay(e){if("Tab"!==e.key||!e.shiftKey)switch(e.key){case"Tab":case"ArrowRight":e.preventDefault(),this.activeNav=v(this.navigationItemsClass+'[aria-current="true"]'),this.activeNav&&this.activeNav.focus(),this.autoPlay&&this.handleAutoPlay()}}handleKeyboardOnBullets(e){var t=document.activeElement;switch(e.key){case"Tab":e.shiftKey?(e.preventDefault(),t.previousSibling?(this.shiftSlide("prev",!0),setTimeout(()=>t.previousSibling.focus(),400)):this.btnPlay.focus()):t.nextSibling&&(e.preventDefault(),this.shiftSlide("next",!0),setTimeout(()=>t.nextSibling.focus(),400));break;case"ArrowRight":t.nextSibling&&(e.preventDefault(),this.shiftSlide("next",!0),setTimeout(()=>t.nextSibling.focus(),400));break;case"ArrowLeft":t.previousSibling?(this.shiftSlide("prev",!0),setTimeout(()=>t.previousSibling.focus(),400)):this.btnPlay.focus()}}handleFocus(e){return(e=e.target)&&e.contains(document.activeElement)&&this.autoPlay&&this.handleAutoPlay(),this}},e.CategoryFilter=class ye{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).CATEGORY_FILTER)?{}:t,(t=new ye(e,t)).init(),e.ECLCategoryFilter=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).itemSelector)?".ecl-category-filter__item--has-children":i,t=void 0===(t=t.attachClickListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.itemSelector=i,this.attachClickListener=t,this.items=null,this.handleClickExpand=this.handleClickExpand.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.items=a(this.itemSelector,this.element),this.attachClickListener&&this.items&&this.items.forEach(e=>e.addEventListener("click",this.handleClickExpand)),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.items&&this.items.forEach(e=>{e.removeEventListener("click",this.handleClickExpand,!1)}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickExpand(e){e.preventDefault();var t=e.target.closest(".ecl-category-filter__item");this.items.forEach(e=>{e===t?e.setAttribute("aria-current",!0):e.removeAttribute("aria-current")}),"true"===t.getAttribute("aria-expanded")?(t.setAttribute("aria-expanded","false"),t.parentElement.classList.remove("ecl-category-filter__list-item--open")):(t.setAttribute("aria-expanded","true"),t.parentElement.classList.add("ecl-category-filter__list-item--open")),t.classList.contains("ecl-category-filter__item--level-1")&&this.items.forEach(e=>{e!==t&&(e.parentElement.classList.remove("ecl-category-filter__list-item--open"),e.setAttribute("aria-expanded","false"))})}},e.ContentBlock=class Le{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).CONTENT_BLOCK)?{}:t,(t=new Le(e,t)).init(),e.ECLContentBlock=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).targetSelector)?"[data-ecl-picture-link]":i,s=void 0===(s=t.titleSelector)?"[data-ecl-title-link]":s,n=void 0===(n=t.attachClickListener)||n,l=void 0===(l=t.maxIterations)?1:l,t=void 0!==(t=t.withTitleAttr)&&t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.targetSelector=i,this.titleSelector=s,this.attachClickListener=n,this.maxIterations=l,this.withTitleAttr=t,this.linkTo=this.linkTo.bind(this),this.findElementInCommonAncestor=this.findElementInCommonAncestor.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");var e;ECL.components=ECL.components||new Map,this.picture=this.findElementInCommonAncestor(this.element,this.targetSelector,this.maxIterations),this.picture&&(this.title=v(this.titleSelector,this.element),this.linkEl=!!this.title&&v("a",this.title),this.linkEl&&(this.picture.style.cursor="pointer",(e=v("img",this.picture))&&this.withTitleAttr&&(e.title=this.constructor.convertToFullURL(this.linkEl.getAttribute("href"))),this.attachClickListener)&&this.picture.addEventListener("click",this.linkTo),this.element.setAttribute("data-ecl-auto-initialized",!0),ECL.components.set(this.element,this))}linkTo(){this.linkEl&&this.linkEl.click()}findElementInCommonAncestor(e,t,i){var s=v(t,e);return s||(e.classList.contains("ecl-card__body")&&(i+=1),e===document.documentElement||i<=0?null:this.findElementInCommonAncestor(e.parentElement,t,i-1))}static convertToFullURL(e){var t;return e.startsWith("http://")||e.startsWith("https://")?e:(t=new URL(window.location.href),new URL(e,t).href)}destroy(){this.attachClickListener&&this.picture&&this.picture.removeEventListener("click",this.linkto),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}},e.Datepicker=class Ee{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).DATEPICKER)?{}:t,(t=new Ee(e,t)).init(),e.ECLDatepicker=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).format)?"":i,s=void 0===(s=t.theme)?"ecl-datepicker-theme":s,n=void 0===(n=t.yearRange)?40:n,l=void 0!==(l=t.reposition)&&l,a=void 0===(a=t.i18n)?{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"]}:a,o=void 0===(o=t.showDaysInNextAndPreviousMonths)||o,t=void 0===(t=t.enableSelectionDaysInNextAndPreviousMonths)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.picker=null,this.format=i,this.theme=s,this.yearRange=n,this.i18n=a,this.showDaysInNextAndPreviousMonths=o,this.enableSelectionDaysInNextAndPreviousMonths=t,this.reposition=l,this.direction="ltr"}init(){if(void 0===window.Pikaday)throw new TypeError("Pikaday is not available. Make sure to include Pikaday in your project if you want to use the ECL datepicker");if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.direction=getComputedStyle(this.element).direction;var e={field:this.element,yearRange:this.yearRange,firstDay:1,i18n:this.i18n,theme:this.theme,reposition:this.reposition,isRTL:"rtl"===this.direction,position:"rtl"===this.direction?"bottom right":"bottom left",showDaysInNextAndPreviousMonths:this.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:this.enableSelectionDaysInNextAndPreviousMonths};return""!==this.format?e.format=this.format:e.toString=e=>("0"+e.getDate()).slice(-2)+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+e.getFullYear(),this.picker=new Pikaday(t({},e,{onOpen(){this.direction=getComputedStyle(this.el).direction;var e,t=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),i=this.el.getBoundingClientRect();"rtl"===this.direction?(e=t-i.right,this.el.style.left=t<768?e+"px":"auto"):(e=i.left,this.el.style.right=t<768?e+"px":"auto")}})),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this),this.picker}destroy(){this.picker&&(this.picker.destroy(),this.picker=null),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}},e.DescriptionList=class Ce{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).DESCRIPTION_LIST)?{}:t,(t=new Ce(e,t)).init(),e.ECLDescriptionList=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).listsSelector)?"[data-ecl-description-list-collapsible]":i,s=void 0===(s=t.visibleItemsSelector)?"data-ecl-description-list-visible-items":s,n=void 0===(n=t.moreItemLabelSelector)?"data-ecl-description-list-more-label":n,t=void 0===(t=t.attachClickListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.moreItemLabelSelector=n,this.listsSelector=i,this.attachClickListener=t,this.visibleItemsSelector=s,this.moreItemLabel=null,this.lists=null,this.handleClickOnMore=this.handleClickOnMore.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.moreItemLabel=this.element.getAttribute(this.moreItemLabelSelector),this.visibleItems=this.element.getAttribute(this.visibleItemsSelector),this.lists=a(this.listsSelector,this.element),this.lists[0]&&0<this.visibleItems&&this.moreItemLabel&&(this.lists.forEach(e=>{var t,i;e.children&&e.children.length>this.visibleItems&&((t=document.createElement("li")).classList.add("ecl-description-list__see_more"),(i=document.createElement("a")).classList.add("ecl-link","ecl-link--standalone"),i.href="#",i.innerHTML=this.moreItemLabel,t.appendChild(i),e.appendChild(t),this.showHide(a(".ecl-description-list__definition-item",e)),this.attachClickListener)&&i.addEventListener("click",this.handleClickOnMore)}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this))}showHide(e){if(e)for(var t=Array.from(e),i=(e="ecl-description-list__definition-item")+"--hidden",s=e+"--last-visible",n=0;n<t.length;n+=1){var l=t[n];n<this.visibleItems?(l.classList.remove(i),l.classList.remove(s)):n>=this.visibleItems&&l.classList.add(i),n===this.visibleItems-1?l.classList.add(s):l.classList.remove(s)}}destroy(){var e;this.attachClickListener&&0<this.visibleItems&&(e=a(".ecl-description-list__see_more"))[0]&&e.forEach(e=>{e.removeEventListener("click",this.handleClickOnMore)}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnMore(e){e.preventDefault();var t=(e=e.target.parentNode).parentNode;this.element.contains(t)&&(Array.from(t.children).forEach(e=>{e.classList.remove("ecl-description-list__definition-item--hidden"),e.classList.remove("ecl-description-list__definition-item--last-visible")}),e.remove())}},e.Expandable=class we{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).EXPANDABLE)?{}:t,(t=new we(e,t)).init(),e.ECLExpandable=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).toggleSelector)?"[data-ecl-expandable-toggle]":i,s=void 0===(s=t.labelSelector)?"[data-ecl-label]":s,n=void 0===(n=t.labelExpanded)?"data-ecl-label-expanded":n,l=void 0===(l=t.labelCollapsed)?"data-ecl-label-collapsed":l,t=void 0===(t=t.attachClickListener)||t;if(this.supportedEvents=["onToggle"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.toggleSelector=i,this.labelSelector=s,this.labelExpanded=n,this.labelCollapsed=l,this.attachClickListener=t,this.toggle=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,this.toggle=v(this.toggleSelector,this.element),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),this.label=v(this.labelSelector,this.element),!this.target)throw new TypeError("Target has to be provided for expandable (aria-controls)");this.attachClickListener&&this.toggle&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnToggle(e){var t=!0===this.forceClose||"true"===this.toggle.getAttribute("aria-expanded"),t=(this.toggle.setAttribute("aria-expanded",t?"false":"true"),this.target.hidden=t,this.label&&!t&&this.toggle.hasAttribute(this.labelExpanded)?this.label.innerHTML=this.toggle.getAttribute(this.labelExpanded):this.label&&t&&this.toggle.hasAttribute(this.labelCollapsed)&&(this.label.innerHTML=this.toggle.getAttribute(this.labelCollapsed)),{expanded:!t,e:e});return this.trigger("onToggle",t),this}},e.FileDownload=class ke{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).FILE_DOWNLOAD)?{}:t,(t=new ke(e,t)).init(),e.ECLFileDownload=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).translationToggleSelector)?"[data-ecl-file-translation-toggle]":i,s=void 0===(s=t.translationContainerSelector)?"[data-ecl-file-translation-container]":s,t=void 0===(t=t.attachClickListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.translationToggleSelector=i,this.translationContainerSelector=s,this.attachClickListener=t,this.translationToggle=null,this.translationContainer=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.translationToggle=v(this.translationToggleSelector,this.element),this.translationContainer=v(this.translationContainerSelector,this.element),this.attachClickListener&&this.translationToggle&&this.translationToggle.addEventListener("click",this.handleClickOnToggle),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.translationToggle&&this.translationToggle.removeEventListener("click",this.handleClickOnToggle),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnToggle(e){return e.preventDefault(),"true"===this.translationToggle.getAttribute("aria-expanded")?this.translationToggle.setAttribute("aria-expanded","false"):this.translationToggle.setAttribute("aria-expanded","true"),this}},e.FileUpload=class Se{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).FILE_UPLOAD)?{}:t,(t=new Se(e,t)).init(),e.ECLFileUpload=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).groupSelector)?"[data-ecl-file-upload-group]":i,s=void 0===(s=t.buttonSelector)?"[data-ecl-file-upload-button]":s,n=void 0===(n=t.listSelector)?"[data-ecl-file-upload-list]":n,l=void 0===(l=t.labelChoose)?"data-ecl-file-upload-label-choose":l,a=void 0===(a=t.labelReplace)?"data-ecl-file-upload-label-replace":a,t=void 0===(t=t.attachChangeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.groupSelector=i,this.buttonSelector=s,this.listSelector=n,this.labelChoose=l,this.labelReplace=a,this.attachChangeListener=t,this.fileUploadGroup=null,this.fileUploadInput=null,this.fileUploadButton=null,this.fileUploadList=null,this.handleChange=this.handleChange.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.fileUploadGroup=this.element.closest(this.groupSelector),this.fileUploadInput=this.element,this.fileUploadButton=v(this.buttonSelector,this.fileUploadGroup),this.fileUploadList=v(this.listSelector,this.fileUploadGroup),this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.addEventListener("change",this.handleChange),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.removeEventListener("change",this.handleChange),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleChange(e){var n;"files"in e.target?(n="",Array.prototype.forEach.call(e.target.files,e=>{i=e.size,s=1;var t,i=0===i?"0 Bytes":(s=s<0?0:s,t=Math.floor(Math.log(i)/Math.log(1024)),parseFloat((i/Math.pow(1024,t)).toFixed(s))+" "+["Bytes","kB","MB","GB","TB","PB","EB","ZB","YB"][t]),s=e.name.split(".").pop();n+='<li class="ecl-file-upload__item">\n <span class="ecl-file-upload__item-name">'+e.name+'</span>\n <span class="ecl-file-upload__item-meta">('+i+" - "+s+")</span>\n </li>"}),this.fileUploadList.innerHTML=n,this.fileUploadButton.hasAttribute(this.labelReplace)&&(this.fileUploadButton.innerHTML=this.fileUploadButton.getAttribute(this.labelReplace))):this.fileUploadButton.hasAttribute(this.labelChoose)&&(this.fileUploadButton.innerHTML=this.fileUploadButton.getAttribute(this.labelChoose))}},e.Gallery=class Ae{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).GALLERY)?{}:t,(t=new Ae(e,t)).init(),e.ECLGallery=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).expandableSelector)?"data-ecl-gallery-not-expandable":i,s=void 0===(s=t.galleryItemSelector)?"[data-ecl-gallery-item]":s,n=void 0===(n=t.descriptionSelector)?"[data-ecl-gallery-description]":n,l=void 0===(l=t.noOverlaySelector)?"data-ecl-gallery-no-overlay":l,a=void 0===(a=t.metaSelector)?"[data-ecl-gallery-meta]":a,o=void 0===(o=t.itemsLimitSelector)?"data-ecl-gallery-visible-items":o,r=void 0===(r=t.closeButtonSelector)?"[data-ecl-gallery-close]":r,h=void 0===(h=t.viewAllSelector)?"[data-ecl-gallery-all]":h,c=void 0===(c=t.viewAllLabelSelector)?"data-ecl-gallery-collapsed-label":c,d=void 0===(d=t.viewAllExpandedLabelSelector)?"data-ecl-gallery-expanded-label":d,u=void 0===(u=t.countSelector)?"[data-ecl-gallery-count]":u,m=void 0===(m=t.overlaySelector)?"[data-ecl-gallery-overlay]":m,p=void 0===(p=t.overlayHeaderSelector)?"[data-ecl-gallery-overlay-header]":p,v=void 0===(v=t.overlayFooterSelector)?"[data-ecl-gallery-overlay-footer]":v,g=void 0===(g=t.overlayMediaSelector)?"[data-ecl-gallery-overlay-media]":g,b=void 0===(b=t.overlayCounterCurrentSelector)?"[data-ecl-gallery-overlay-counter-current]":b,f=void 0===(f=t.overlayCounterMaxSelector)?"[data-ecl-gallery-overlay-counter-max]":f,y=void 0===(y=t.overlayDownloadSelector)?"[data-ecl-gallery-overlay-download]":y,L=void 0===(L=t.overlayShareSelector)?"[data-ecl-gallery-overlay-share]":L,E=void 0===(E=t.overlayDescriptionSelector)?"[data-ecl-gallery-overlay-description]":E,C=void 0===(C=t.overlayMetaSelector)?"[data-ecl-gallery-overlay-meta]":C,w=void 0===(w=t.overlayPreviousSelector)?"[data-ecl-gallery-overlay-previous]":w,k=void 0===(k=t.overlayNextSelector)?"[data-ecl-gallery-overlay-next]":k,S=void 0===(S=t.attachClickListener)||S,A=void 0===(A=t.attachKeyListener)||A,t=void 0===(t=t.attachResizeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.galleryItemSelector=s,this.descriptionSelector=n,this.metaSelector=a,this.closeButtonSelector=r,this.viewAllSelector=h,this.countSelector=u,this.itemsLimitSelector=o,this.overlaySelector=m,this.noOverlaySelector=l,this.overlayHeaderSelector=p,this.overlayFooterSelector=v,this.overlayMediaSelector=g,this.overlayCounterCurrentSelector=b,this.overlayCounterMaxSelector=f,this.overlayDownloadSelector=y,this.overlayShareSelector=L,this.overlayDescriptionSelector=E,this.overlayMetaSelector=C,this.overlayPreviousSelector=w,this.overlayNextSelector=k,this.attachClickListener=S,this.attachKeyListener=A,this.attachResizeListener=t,this.viewAllLabelSelector=c,this.viewAllExpandedLabelSelector=d,this.expandableSelector=i,this.galleryItems=null,this.meta=null,this.closeButton=null,this.viewAll=null,this.count=null,this.overlay=null,this.overlayHeader=null,this.overlayFooter=null,this.overlayMedia=null,this.overlayCounterCurrent=null,this.overlayCounterMax=null,this.overlayDownload=null,this.overlayShare=null,this.overlayDescription=null,this.overlayMeta=null,this.overlayPrevious=null,this.overlayNext=null,this.selectedItem=null,this.focusTrap=null,this.isDesktop=!1,this.resizeTimer=null,this.visibleItems=0,this.breakpointMd=768,this.breakpointLg=996,this.imageHeight=185,this.imageHeightBig=260,this.iframeResize=this.iframeResize.bind(this),this.handleClickOnCloseButton=this.handleClickOnCloseButton.bind(this),this.handleClickOnViewAll=this.handleClickOnViewAll.bind(this),this.handleClickOnItem=this.handleClickOnItem.bind(this),this.preventClickOnItem=this.preventClickOnItem.bind(this),this.handleKeyPressOnItem=this.handleKeyPressOnItem.bind(this),this.handleClickOnPreviousButton=this.handleClickOnPreviousButton.bind(this),this.handleClickOnNextButton=this.handleClickOnNextButton.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleResize=this.handleResize.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.expandable=!this.element.hasAttribute(this.expandableSelector),this.visibleItems=this.element.getAttribute(this.itemsLimitSelector),this.galleryItems=a(this.galleryItemSelector,this.element),this.closeButton=v(this.closeButtonSelector,this.element),this.noOverlay=this.element.hasAttribute(this.noOverlaySelector),this.expandable&&(this.viewAll=v(this.viewAllSelector,this.element),this.viewAllLabel=this.viewAll.getAttribute(this.viewAllLabelSelector)||this.viewAll.innerText,this.viewAllLabelExpanded=this.viewAll.getAttribute(this.viewAllExpandedLabelSelector)||this.viewAllLabel),this.count=v(this.countSelector,this.element),this.attachClickListener&&this.viewAll&&this.viewAll.addEventListener("click",this.handleClickOnViewAll),this.noOverlay?this.galleryItems.forEach(e=>{e.classList.add("ecl-gallery__item__link--frozen"),e.addEventListener("click",this.preventClickOnItem)}):(this.overlay=v(this.overlaySelector,this.element),this.overlayHeader=v(this.overlayHeaderSelector,this.overlay),this.overlayFooter=v(this.overlayFooterSelector,this.overlay),this.overlayMedia=v(this.overlayMediaSelector,this.overlay),this.overlayCounterCurrent=v(this.overlayCounterCurrentSelector,this.overlay),this.overlayCounterMax=v(this.overlayCounterMaxSelector,this.overlay),this.overlayDownload=v(this.overlayDownloadSelector,this.overlay),this.overlayShare=v(this.overlayShareSelector,this.overlay),this.overlayDescription=v(this.overlayDescriptionSelector,this.overlay),this.overlayMeta=v(this.overlayMetaSelector,this.overlay),this.overlayPrevious=v(this.overlayPreviousSelector,this.overlay),this.overlayNext=v(this.overlayNextSelector,this.overlay),this.focusTrap=l(this.overlay,{escapeDeactivates:!1,returnFocusOnDeactivate:!1}),this.isDialogSupported=!0,window.HTMLDialogElement||(this.isDialogSupported=!1),this.attachClickListener&&this.closeButton&&this.closeButton.addEventListener("click",this.handleClickOnCloseButton),this.attachClickListener&&this.galleryItems&&this.galleryItems.forEach(e=>{this.attachClickListener&&e.addEventListener("click",this.handleClickOnItem),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyPressOnItem)}),this.attachClickListener&&this.overlayPrevious&&this.overlayPrevious.addEventListener("click",this.handleClickOnPreviousButton),this.attachClickListener&&this.overlayNext&&this.overlayNext.addEventListener("click",this.handleClickOnNextButton),!this.isDialogSupported&&this.attachKeyListener&&this.overlay&&this.overlay.addEventListener("keyup",this.handleKeyboard),this.isDialogSupported&&this.overlay&&this.overlay.addEventListener("close",this.handleClickOnCloseButton)),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.expandable&&(this.checkScreen(),this.hideItems()),this.galleryItems.forEach((e,t)=>{e.setAttribute("data-ecl-gallery-item-id",t)}),this.count&&(this.count.innerHTML=this.galleryItems.length),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.closeButton&&this.closeButton.removeEventListener("click",this.handleClickOnCloseButton),this.attachClickListener&&this.viewAll&&this.viewAll.removeEventListener("click",this.handleClickOnViewAll),this.attachClickListener&&this.galleryItems&&this.galleryItems.forEach(e=>{e.removeEventListener("click",this.handleClickOnItem)}),this.attachClickListener&&this.overlayPrevious&&this.overlayPrevious.removeEventListener("click",this.handleClickOnPreviousButton),this.attachClickListener&&this.overlayNext&&this.overlayNext.removeEventListener("click",this.handleClickOnNextButton),!this.isDialogSupported&&this.attachKeyListener&&this.overlay&&this.overlay.removeEventListener("keyup",this.handleKeyboard),this.isDialogSupported&&this.overlay&&this.overlay.removeEventListener("close",this.handleClickOnCloseButton),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}checkScreen(){window.innerWidth>this.breakpointMd?this.isDesktop=!0:this.isDesktop=!1,window.innerWidth>this.breakpointLg&&(this.isLarge=!0)}iframeResize(t){var i;(t=!t&&this.overlay?v("iframe",this.overlay):t)&&(i=window.innerWidth,setTimeout(()=>{var e=this.overlay.clientHeight-this.overlayHeader.clientHeight-this.overlayFooter.clientHeight;e<i?(t.setAttribute("height",e+"px"),i<16*e/9?t.setAttribute("width",i-.05*i+"px"):t.setAttribute("width",16*e/9+"px")):(t.setAttribute("width",i+"px"),e<4*i/3?t.setAttribute("height",e-.05*e+"px"):t.setAttribute("height",4*i/3+"px"))},0))}hideItems(i){var s;void 0===i&&(i=0),this.viewAll&&!this.viewAll.expanded&&(this.isDesktop?(s=[],this.galleryItems.forEach((e,t)=>{e.parentNode.classList.remove("ecl-gallery__item--hidden"),t>=Number(this.visibleItems)+Number(i)&&(s=[...s,t])}),s.forEach(e=>{this.galleryItems[e].parentNode.classList.add("ecl-gallery__item--hidden")})):this.galleryItems.forEach((e,t)=>{t>2+Number(i)?e.parentNode.classList.add("ecl-gallery__item--hidden"):e.parentNode.classList.remove("ecl-gallery__item--hidden")}))}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.checkScreen(),this.hideItems(),this.iframeResize()},200)}updateOverlay(e){var t=(this.selectedItem=e).getAttribute("data-ecl-gallery-item-embed-src"),i=v("video",e),s=null;null!=t?((s=document.createElement("div")).classList.add("ecl-gallery__slider-embed"),(n=document.createElement("iframe")).setAttribute("src",t),n.setAttribute("frameBorder","0"),this.overlayMedia&&(s.appendChild(n),this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s)),this.iframeResize(n)):null!=i?((s=document.createElement("video")).setAttribute("poster",i.poster),s.setAttribute("controls","controls"),s.classList.add("ecl-gallery__slider-video"),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s)),a("source",i).forEach(e=>{var t=document.createElement("source");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("type",e.getAttribute("type")),s.appendChild(t)}),a("track",i).forEach(e=>{var t=document.createElement("track");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("kind",e.getAttribute("kind")),t.setAttribute("srclang",e.getAttribute("srcLang")),t.setAttribute("label",e.getAttribute("label")),s.appendChild(t)}),s.load()):(n=v("img",e),(i=v("picture",e))?(n.classList.remove("ecl-gallery__image"),s=i.cloneNode(!0)):((s=document.createElement("img")).setAttribute("src",n.getAttribute("src")),s.setAttribute("alt",n.getAttribute("alt"))),s.classList.add("ecl-gallery__slider-image"),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s))),this.overlayCounterCurrent.innerHTML=+e.getAttribute("data-ecl-gallery-item-id")+1,this.overlayCounterMax.innerHTML=this.galleryItems.length;null!=(i=this.selectedItem.getAttribute("data-ecl-gallery-item-share"))?(this.overlayShare.href=i,this.overlayShare.hidden=!1):this.overlayShare.hidden=!0,null!==this.overlayDownload&&null===t?(this.overlayDownload.href=this.selectedItem.href,this.overlayDownload.hidden=!1):null!==this.overlayDownload&&(this.overlayDownload.hidden=!0);var n=v(this.metaSelector,e),i=(this.overlayMeta.innerHTML=n.innerHTML,v(this.descriptionSelector,e));this.overlayDescription.innerHTML=i.innerHTML}handleKeyboard(e){"Escape"!==e.key&&"Esc"!==e.key||this.handleClickOnCloseButton()}handleClickOnCloseButton(){this.isDialogSupported?this.overlay.close():this.overlay.removeAttribute("open");var e=v("iframe",this.overlayMedia);e&&e.remove(),(e=v("video",this.overlayMedia))&&e.pause(),this.focusTrap.deactivate(),this.selectedItem.focus(),document.body.classList.remove("ecl-u-disablescroll")}handleKeyPressOnItem(e){32===e.keyCode&&this.handleClickOnItem(e)}handleClickOnViewAll(e){e.preventDefault(),this.viewAll&&(this.viewAll.expanded?(delete this.viewAll.expanded,this.checkScreen(),this.hideItems(),this.viewAll.textContent=this.viewAllLabel):this.galleryItems.forEach(e=>{this.viewAll.expanded=!0,e.parentNode.classList.remove("ecl-gallery__item--hidden"),this.viewAll.textContent=this.viewAllLabelExpanded}))}handleClickOnItem(e){e.preventDefault(),document.body.classList.add("ecl-u-disablescroll"),this.isDialogSupported?this.overlay.showModal():this.overlay.setAttribute("open",""),this.updateOverlay(e.currentTarget),this.focusTrap.activate()}preventClickOnItem(e){e.preventDefault(),e.stopPropagation()}handleClickOnPreviousButton(){var e=+this.selectedItem.getAttribute("data-ecl-gallery-item-id")-1,t=(e<0&&(e=this.galleryItems.length-1),v("video",this.selectedItem));return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this}handleClickOnNextButton(){var e=+this.selectedItem.getAttribute("data-ecl-gallery-item-id")+1,t=(e>=this.galleryItems.length&&(e=0),v("video",this.selectedItem));return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this}},e.InpageNavigation=class Oe{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).INPAGE_NAVIGATION)?{}:t,(t=new Oe(e,t)).init(),e.ECLInpageNavigation=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).stickySelector)?"[data-ecl-inpage-navigation]":i,s=void 0===(s=t.containerSelector)?"[data-ecl-inpage-navigation-container]":s,n=void 0===(n=t.inPageList)?"[data-ecl-inpage-navigation-list]":n,l=void 0===(l=t.spySelector)?"[data-ecl-inpage-navigation-link]":l,a=void 0===(a=t.toggleSelector)?"[data-ecl-inpage-navigation-trigger]":a,o=void 0===(o=t.linksSelector)?"[data-ecl-inpage-navigation-link]":o,r=void 0===(r=t.spyActiveContainer)?"ecl-inpage-navigation--visible":r,h=void 0===(h=t.spyOffset)?20:h,c=void 0===(c=t.spyClass)?"ecl-inpage-navigation__item--active":c,d=void 0===(d=t.spyTrigger)?"[data-ecl-inpage-navigation-trigger-current]":d,u=void 0===(u=t.attachClickListener)||u,t=void 0===(t=t.contentClass)?"ecl-inpage-navigation__heading--active":t;if(this.supportedEvents=["onToggle","onClick"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.attachClickListener=u,this.stickySelector=i,this.containerSelector=s,this.toggleSelector=a,this.linksSelector=o,this.inPageList=n,this.spyActiveContainer=r,this.spySelector=l,this.spyOffset=h,this.spyClass=c,this.spyTrigger=d,this.contentClass=t,this.gumshoe=null,this.observer=null,this.stickyObserver=null,this.isExpanded=!1,this.handleClickOnToggler=this.handleClickOnToggler.bind(this),this.handleClickOnLink=this.handleClickOnLink.bind(this),this.initScrollSpy=this.initScrollSpy.bind(this),this.initObserver=this.initObserver.bind(this),this.handleEsc=this.handleEsc.bind(this),this.handleShiftTab=this.handleShiftTab.bind(this),this.activateScrollSpy=this.activateScrollSpy.bind(this),this.deactivateScrollSpy=this.deactivateScrollSpy.bind(this),this.destroySticky=this.destroySticky.bind(this),this.destroyScrollSpy=this.destroyScrollSpy.bind(this),this.destroyObserver=this.destroyObserver.bind(this)}initSticky(){this.stickyInstance=new he.Sticky(this.element)}destroySticky(){this.stickyInstance&&this.stickyInstance.remove()}initScrollSpy(){var e,s,n,l;this.gumshoe=new ce(this.spySelector,{navClass:this.spyClass,contentClass:this.contentClass,offset:this.spyOffset,reflow:!0}),document.addEventListener("gumshoeActivate",this.activateScrollSpy,!1),document.addEventListener("gumshoeDeactivate",this.deactivateScrollSpy,!1),"IntersectionObserver"in window&&(e=v(this.containerSelector))&&(n=s=0,l=!1,this.stickyObserver=new IntersectionObserver(e=>{var t,i;e&&e[0]&&(t=(e=e[0]).boundingClientRect.y,i=e.intersectionRatio,e=e.isIntersecting,l?t<s?n<i&&e||this.element.classList.remove(this.spyActiveContainer):s<t&&e&&n<i&&this.element.classList.add(this.spyActiveContainer):l=!0,s=t,n=i)},{root:null}),this.stickyObserver.observe(e))}activateScrollSpy(e){var t=v(this.spyTrigger);this.element.classList.add(this.spyActiveContainer),t.textContent=e.detail.content.textContent}deactivateScrollSpy(){var e=v(this.spyTrigger);this.element.classList.remove(this.spyActiveContainer),e.innerHTML=""}destroyScrollSpy(){this.stickyObserver&&this.stickyObserver.disconnect(),document.removeEventListener("gumshoeActivate",this.activateScrollSpy,!1),document.removeEventListener("gumshoeDeactivate",this.deactivateScrollSpy,!1),this.gumshoe.destroy()}initObserver(){var t;"MutationObserver"in window&&((t=this).observer=new MutationObserver(e=>{var s=v(".ecl-col-l-9"),n=v("[data-ecl-inpage-navigation-list]");e.forEach(e=>{e&&e.target&&e.target.classList&&!e.target.classList.contains("ecl-inpage-navigation__trigger-current")&&(0<e.addedNodes.length&&[].slice.call(e.addedNodes).forEach(t=>{var e,i;"H2"===t.tagName&&t.id&&(e=a("h2[id]",s).findIndex(e=>e.id===t.id),(i=n.childNodes[e-1].cloneNode(!0)).childNodes[0].textContent=t.textContent,i.childNodes[0].href="#"+t.id,n.childNodes[e-1].after(i))}),0<e.removedNodes.length&&[].slice.call(e.removedNodes).forEach(t=>{"H2"===t.tagName&&t.id&&n.childNodes.forEach(e=>{-1!==e.childNodes[0].href.indexOf(t.id)&&e.remove()})}),t.update())})}),this.observer.observe(document,{subtree:!0,childList:!0}))}destroyObserver(){this.observer&&this.observer.disconnect()}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map;var e=v(this.toggleSelector,this.element),t=a(this.linksSelector,this.element);this.initSticky(this.element),this.initScrollSpy(),this.initObserver(),this.attachClickListener&&e&&e.addEventListener("click",this.handleClickOnToggler),this.attachClickListener&&t&&(t.forEach(e=>e.addEventListener("click",this.handleClickOnLink)),this.element.addEventListener("keydown",this.handleShiftTab),e.addEventListener("click",this.handleClickOnToggler)),document.addEventListener("keydown",this.handleEsc),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}update(){this.gumshoe.setup()}handleClickOnToggler(e){var t=v(this.inPageList,this.element),i=v(this.toggleSelector,this.element);e.preventDefault(),this.isExpanded="true"===i.getAttribute("aria-expanded"),i.setAttribute("aria-expanded",this.isExpanded?"false":"true"),this.isExpanded?t.classList.remove("ecl-inpage-navigation__list--visible"):t.classList.add("ecl-inpage-navigation__list--visible"),this.trigger("onToggle",{isExpanded:this.isExpanded})}handleClickOnLink(e){var t,i=v(this.inPageList,this.element),s=v(this.toggleSelector,this.element),n=e.target.href,l=null;n&&(t=n.split("#")[1])&&(l=v("#"+t,document)),i.classList.remove("ecl-inpage-navigation__list--visible"),s.setAttribute("aria-expanded","false"),this.trigger("onClick",{target:l||n,e:e})}handleEsc(e){"Escape"===e.key&&this.handleClickOnLink()}handleShiftTab(e){var t;"Tab"===e.key&&e.shiftKey&&(t=a(this.linksSelector,this.element),Array.isArray(t))&&0<t.length&&e.target===t[0]&&this.handleClickOnLink()}destroy(){this.attachClickListener&&this.toggleElement&&this.toggleElement.removeEventListener("click",this.handleClickOnToggler),this.attachClickListener&&this.navLinks&&this.navLinks.forEach(e=>e.removeEventListener("click",this.handleClickOnLink)),this.destroyScrollSpy(),this.destroySticky(),this.destroyObserver(),document.removeEventListener("keydown",this.handleEsc),this.element&&(this.element.removeEventListener("keydown",this.handleShiftTab),this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}},e.MediaContainer=class xe{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).MEDIA_CONTAINER)?{}:t,(t=new xe(e,t)).init(),e.ECLMediaContainer=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).iframeSelector)?"iframe":i,t=void 0===(t=t.useAutomaticRatio)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.iframeSelector=i,this.useAutomaticRatio=t,this.iframe=null,this.calculateRatio=this.calculateRatio.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map;var e=v(".ecl-media-container__media",this.element);e&&!/ecl-media-container__media--ratio/.test(e.className)&&(this.iframe=v(this.iframeSelector,this.element),this.iframe)&&this.useAutomaticRatio&&this.calculateRatio(),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}calculateRatio(){var e=this.iframe.width,t=this.iframe.height;e&&t||(e=this.iframe.offsetWidth,t=this.iframe.offsetHeight),this.iframe.style.aspectRatio=e+"/"+t}},e.MegaMenu=class _e{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).MEGA_MENU)?{}:t,(t=new _e(e,t)).init(),e.ECLMegaMenu=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).openSelector)?"[data-ecl-mega-menu-open]":i,s=void 0===(s=t.backSelector)?"[data-ecl-mega-menu-back]":s,n=void 0===(n=t.innerSelector)?"[data-ecl-mega-menu-inner]":n,l=void 0===(l=t.listSelector)?"[data-ecl-mega-menu-list]":l,a=void 0===(a=t.itemSelector)?"[data-ecl-mega-menu-item]":a,o=void 0===(o=t.linkSelector)?"[data-ecl-mega-menu-link]":o,r=void 0===(r=t.megaSelector)?"[data-ecl-mega-menu-mega]":r,h=void 0===(h=t.containerSelector)?"data-ecl-has-container":h,c=void 0===(c=t.subItemSelector)?"[data-ecl-mega-menu-subitem]":c,d=void 0===(d=t.featuredAttribute)?"[data-ecl-mega-menu-featured]":d,u=void 0===(u=t.labelOpenAttribute)?"data-ecl-mega-menu-label-open":u,m=void 0===(m=t.labelCloseAttribute)?"data-ecl-mega-menu-label-close":m,p=void 0===(p=t.attachClickListener)||p,v=void 0===(v=t.attachFocusListener)||v,g=void 0===(g=t.attachKeyListener)||g,t=void 0===(t=t.attachResizeListener)||t;if(this.supportedEvents=["onOpen","onClose"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.openSelector=i,this.backSelector=s,this.innerSelector=n,this.listSelector=l,this.itemSelector=a,this.linkSelector=o,this.megaSelector=r,this.subItemSelector=c,this.containerSelector=h,this.labelOpenAttribute=u,this.labelCloseAttribute=m,this.attachClickListener=p,this.attachFocusListener=v,this.attachKeyListener=g,this.attachResizeListener=t,this.featuredAttribute=d,this.direction="ltr",this.open=null,this.toggleLabel=null,this.back=null,this.inner=null,this.itemsList=null,this.items=null,this.links=null,this.isOpen=!1,this.resizeTimer=null,this.isKeyEvent=!1,this.isDesktop=!1,this.isLarge=!1,this.lastVisibleItem=null,this.currentItem=null,this.totalItemsWidth=0,this.breakpointL=996,this.openPanel={num:0,item:{}},this.handleClickOnOpen=this.handleClickOnOpen.bind(this),this.handleClickOnClose=this.handleClickOnClose.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleClickOnBack=this.handleClickOnBack.bind(this),this.handleClickGlobal=this.handleClickGlobal.bind(this),this.handleClickOnItem=this.handleClickOnItem.bind(this),this.handleClickOnSubitem=this.handleClickOnSubitem.bind(this),this.handleFocusOut=this.handleFocusOut.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.handleResize=this.handleResize.bind(this),this.useDesktopDisplay=this.useDesktopDisplay.bind(this),this.checkMegaMenu=this.checkMegaMenu.bind(this),this.closeOpenDropdown=this.closeOpenDropdown.bind(this),this.checkDropdownHeight=this.checkDropdownHeight.bind(this),this.positionMenuOverlay=this.positionMenuOverlay.bind(this),this.resetStyles=this.resetStyles.bind(this),this.handleFirstPanel=this.handleFirstPanel.bind(this),this.handleSecondPanel=this.handleSecondPanel.bind(this),this.disableScroll=this.disableScroll.bind(this),this.enableScroll=this.enableScroll.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.open=v(this.openSelector,this.element),this.toggleLabel=v(".ecl-link__label",this.open),this.back=v(this.backSelector,this.element),this.inner=v(this.innerSelector,this.element),this.itemsList=v(this.listSelector,this.element),this.btnPrevious=v(this.buttonPreviousSelector,this.element),this.btnNext=v(this.buttonNextSelector,this.element),this.items=a(this.itemSelector,this.element),this.subItems=a(this.subItemSelector,this.element),this.links=a(this.linkSelector,this.element),this.isDesktop=this.useDesktopDisplay(),this.attachClickListener&&(this.open&&this.open.addEventListener("click",this.handleClickOnToggle),this.back&&(this.back.addEventListener("click",this.handleClickOnBack),this.back.addEventListener("keyup",this.handleKeyboard)),this.attachClickListener)&&document.addEventListener("click",this.handleClickGlobal),this.links&&this.links.forEach(e=>{this.attachFocusListener&&e.addEventListener("focusout",this.handleFocusOut),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard)}),this.subItems&&this.subItems.forEach(e=>{e=v(".ecl-mega-menu__sublink",e),this.attachKeyListener&&e&&(e.addEventListener("click",this.handleClickOnSubitem),e.addEventListener("keyup",this.handleKeyboard)),this.attachFocusListener&&e&&e.addEventListener("focusout",this.handleFocusOut)});var e=a(".ecl-mega-menu__see-all a",this.element);0<e.length&&e.forEach(e=>{e.addEventListener("keyup",this.handleKeyboard),e.addEventListener("blur",this.handleFocusOut)}),this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.items&&this.items.forEach(e=>{this.totalItemsWidth+=e.offsetWidth,(e.hasAttribute("data-ecl-has-children")||e.hasAttribute("data-ecl-has-container"))&&this.attachClickListener&&e.addEventListener("click",this.handleClickOnItem)}),this.focusTrap=l(this.element,{onActivate:()=>this.element.classList.add("ecl-mega-menu-trap-is-active"),onDeactivate:()=>this.element.classList.remove("ecl-mega-menu-trap-is-active")}),this.handleResize(),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.attachClickListener&&(this.open&&this.open.removeEventListener("click",this.handleClickOnToggle),this.back&&this.back.removeEventListener("click",this.handleClickOnBack),this.attachClickListener)&&document.removeEventListener("click",this.handleClickGlobal),this.items&&this.isDesktop&&this.items.forEach(e=>{(e.hasAttribute("data-ecl-has-children")||e.hasAttribute("data-ecl-has-container"))&&this.attachClickListener&&e.removeEventListener("click",this.handleClickOnItem)}),this.links&&this.links.forEach(e=>{this.attachFocusListener&&e.removeEventListener("focusout",this.handleFocusOut),this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard)}),this.subItems&&this.subItems.forEach(e=>{e=v(".ecl-mega-menu__sublink",e),this.attachKeyListener&&e&&e.removeEventListener("keyup",this.handleKeyboard),this.attachClickListener&&e&&e.removeEventListener("click",this.handleClickOnSubitem),this.attachFocusListener&&e&&e.removeEventListener("focusout",this.handleFocusOut)}),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.closeOpenDropdown(),this.enableScroll(),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}disableScroll(){document.body.classList.add("ecl-mega-menu-prevent-scroll")}enableScroll(){document.body.classList.remove("ecl-mega-menu-prevent-scroll")}useDesktopDisplay(){return!(m.isMobileOnly||(m.isTablet?(this.element.classList.add("ecl-mega-menu--forced-mobile"),1):window.innerWidth<this.breakpointL||(this.element.classList.remove("ecl-mega-menu--forced-mobile"),0)))}resetStyles(e){var t,i=a(".ecl-mega-menu__sublist",this.element);i&&"mobile"===e?(i.forEach(e=>{e.style.height=""}),2===this.openPanel.num&&((t=this.openPanel.item).parentNode.parentNode.firstElementChild.style.display="none",t.parentNode.classList.add("ecl-mega-menu__sublist--no-border"),t.parentNode.childNodes.forEach(e=>{e!==t&&(e.style.display="none")}))):i&&"desktop"===e&&((e=a(".ecl-mega-menu__parent-link"))&&e.forEach(e=>{e.style.display=""}),i.forEach(e=>{this.isLarge||e.parentNode.classList.remove("ecl-mega-menu__item--col2"),e.classList.remove("ecl-mega-menu__sublist--no-border"),e.childNodes.forEach(e=>{e.style.display=""})}),e=[],(i=v(".ecl-mega-menu__subitem--expanded",this.element))&&e.push(i),(i=v(".ecl-mega-menu__item--expanded",this.element))&&e.push(i),0<e.length?e.forEach(e=>{this.checkDropdownHeight(e)}):(this.element.setAttribute("aria-expanded","false"),this.element.removeAttribute("data-expanded"),this.enableScroll()))}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{var e=window.innerWidth;void 0!==this.prevScreenWidth&&(this.prevScreenWidth<=this.breakpointL&&e>this.breakpointL||this.prevScreenWidth>this.breakpointL&&e<=this.breakpointL)&&this.resetStyles(e>this.breakpointL?"desktop":"mobile"),this.isDesktop=this.useDesktopDisplay(),this.isLarge=1140<window.innerWidth,this.prevScreenWidth=e,this.element.classList.remove("ecl-mega-menu--forced-mobile"),this.direction=getComputedStyle(this.element).direction,"rtl"===this.direction?this.element.classList.add("ecl-mega-menu--rtl"):this.element.classList.remove("ecl-mega-menu--rtl"),(e=v(".ecl-mega-menu__item--expanded",this.element))&&this.isDesktop&&this.checkDropdownHeight(e),2===this.openPanel.num&&this.openPanel.item&&this.checkMegaMenu(this.openPanel.item),this.positionMenuOverlay()},200)}checkDropdownHeight(i){setTimeout(()=>{var e=window.innerHeight,t=v(".ecl-mega-menu__sublist",i);(t=t||v(".ecl-mega-menu__mega-container",i))&&(e-=t.getBoundingClientRect().top,v(".ecl-mega-menu__see-all",t)&&(e-=20),t.style.height=e+"px")},100)}positionMenuOverlay(){var s=v(".ecl-mega-menu__overlay",this.element),n=a(".ecl-mega-menu__item > .ecl-mega-menu__mega",this.element);this.isDesktop?setTimeout(()=>{var t,i,e=v(".ecl-site-header",document);e?(e=e.getBoundingClientRect().bottom,t=v(this.itemSelector,this.element).getBoundingClientRect().height+4,n&&n.forEach(e=>{e.style.top=t+"px"}),s&&(s.style.top=e+"px")):(i=this.element.getBoundingClientRect().bottom,s&&(s.style.top=i+"px"),n&&n.forEach(e=>{e.style.top=i+"px"}))},0):setTimeout(()=>{var e=v(".ecl-site-header__header",document);e&&(e=e.getBoundingClientRect(),e=Math.round(e.bottom),s&&(s.style.top=e+"px"),this.inner&&(this.inner.style.top=e+"px"),n)&&n.forEach(e=>{e.style.top=""})},0)}cloneItemInTheDrowdown(e){var t,i=v(".ecl-link",e).cloneNode(!0),s=v(".ecl-icon use",i);s&&((t=s.getAttribute("xlink:href"))&&(t=t.replace("corner-arrow","arrow-left"),s.parentElement.classList.add("ecl-icon--flip-horizontal","ecl-icon--xs"),s.parentElement.classList.remove("ecl-icon--2xs","ecl-icon--rotate-180"),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t)),i.id&&(i.id=i.id+"-parent"),(s=e.getAttribute("data-ecl-parent-aria-label"))&&i.setAttribute("aria-label",s),i.classList.add("ecl-mega-menu__parent-link"),i.addEventListener("keyup",this.handleKeyboard),t=(t=v(".ecl-mega-menu__mega",e))||v(".ecl-mega-menu__mega-container",e))&&!v(".ecl-mega-menu__parent-link",e)&&t.prepend(i)}checkMegaMenu(e){var t,i;(e=v(this.megaSelector,e))&&this.inner&&this.isLarge?(i=a(this.subItemSelector+" a",e),t=0,i.forEach(e=>{t+=e.getBoundingClientRect().height}),v(".ecl-mega-menu__see-all",e)&&(t+=150),i=this.inner.getBoundingClientRect().bottom,window.innerHeight-i<t&&e.classList.add("ecl-mega-menu__item--col2")):e&&e.classList.remove("ecl-mega-menu__item--col2")}handleKeyboard(e){var t=e.target,i=t.classList,s=this.element.getAttribute("aria-expanded");if("Escape"===e.key||"Esc"===e.key)document.activeElement===t&&t.blur(),"false"===s&&this.closeOpenDropdown();else{if(i.contains("ecl-mega-menu__parent-link")&&("ArrowUp"===e.key&&(this.isDesktop?t.closest(".ecl-mega-menu__item--expanded").firstElementChild:this.back).focus(),"ArrowDown"===e.key)&&t.nextSibling.firstElementChild.firstElementChild.focus(),t.parentElement.classList.contains("ecl-mega-menu__see-all")&&"ArrowUp"===e.key&&t.parentElement.previousSibling.firstChild.focus(),i.contains("ecl-mega-menu__back")&&("ArrowDown"===e.key&&(e.preventDefault(),s=v('[aria-expanded="true"]',t.parentElement.nextSibling))&&(n=v('[aria-expanded="true"]',s),v(".ecl-mega-menu__parent-link",n||s).focus()),"ArrowUp"===e.key)&&this.open.focus(),i.contains("ecl-mega-menu__link")){if("ArrowLeft"===e.key||"ArrowUp"===e.key){e.preventDefault();var n=t.previousSibling;if(n&&n.classList.contains("ecl-mega-menu__link"))return void n.focus();if(n=t.parentElement.previousSibling)if(s=v(".ecl-mega-menu__link",n))return void s.focus()}if("ArrowRight"===e.key||"ArrowDown"===e.key){if(e.preventDefault(),"true"===t.parentElement.getAttribute("aria-expanded")&&"ArrowDown"===e.key&&(n=v(".ecl-mega-menu__parent-link",t.parentElement)))return void n.focus();if((s=t.parentElement.nextSibling)&&(n=v(".ecl-mega-menu__link",s)))return void n.focus()}}if(i.contains("ecl-mega-menu__sublink")){if("ArrowDown"===e.key&&(e.preventDefault(),s=t.parentElement.nextSibling,n="",s)&&(n=!(n=v(".ecl-mega-menu__sublink",s))&&s.classList.contains("ecl-mega-menu__see-all")?s.firstElementChild:n))return void n.focus();"ArrowUp"===e.key&&(e.preventDefault(),(i=t.parentElement.previousSibling)?(s=v(".ecl-mega-menu__sublink",i))&&s.focus():t.parentElement.parentElement.previousSibling.focus())}"ArrowRight"===e.key&&"true"===t.parentElement.getAttribute("aria-expanded")&&(e.preventDefault(),t.nextSibling.firstElementChild.focus())}}handleKeyboardGlobal(e){var t=this.element.getAttribute("aria-expanded");"Escape"!==e.key&&"Esc"!==e.key||"true"===t&&this.closeOpenDropdown()}handleClickOnOpen(e){var t;"true"===this.element.getAttribute("aria-expanded")?this.handleClickOnClose(e):(e.preventDefault(),this.disableScroll(),this.element.setAttribute("aria-expanded","true"),this.inner.setAttribute("aria-hidden","false"),this.isOpen=!0,this.openPanel.num=1,t=this.element.getAttribute(this.labelCloseAttribute),this.toggleLabel&&t&&(this.toggleLabel.innerHTML=t),this.trigger("onOpen",e))}handleClickOnClose(e){"true"===this.element.getAttribute("aria-expanded")?(this.focusTrap.deactivate(),this.closeOpenDropdown(),this.trigger("onClose",e)):this.handleClickOnOpen(e)}handleClickOnToggle(e){e.preventDefault(),this.isOpen?this.handleClickOnClose(e):this.handleClickOnOpen(e)}handleClickOnBack(){var e,t=v(".ecl-mega-menu__subitem--expanded",this.element);t?((e=a(".ecl-mega-menu__parent-link",this.element))&&e.forEach(e=>{e.style.display=""}),(e=a(".ecl-mega-menu__sublist"))&&e.forEach(e=>{e.classList.remove("ecl-mega-menu__sublist--no-border")}),t.setAttribute("aria-expanded","false"),t.classList.remove("ecl-mega-menu__subitem--expanded","ecl-mega-menu__subitem--current"),(e=t.parentElement.childNodes)&&e.forEach(e=>{e.style.display=""}),e=v(".ecl-mega-menu__item--expanded",this.element),v(".ecl-mega-menu__parent-link",e).focus(),this.openPanel.num=1):(this.inner.classList.remove("ecl-mega-menu__inner--expanded"),this.items.forEach(e=>{e.classList.remove("ecl-mega-menu__item--expanded","ecl-mega-menu__item--current"),e.setAttribute("aria-expanded","false")}),this.items[0].firstElementChild.focus(),this.openPanel.num=0),this.trigger("onBack",{level:t?2:1})}handleFirstPanel(t,e){switch(e){case"expand":this.inner.classList.add("ecl-mega-menu__inner--expanded"),this.positionMenuOverlay(),this.cloneItemInTheDrowdown(t),this.checkDropdownHeight(t),this.element.setAttribute("data-expanded",!0),this.element.setAttribute("aria-expanded","true"),this.disableScroll(),this.items.forEach(e=>{e.hasAttribute("aria-expanded")&&(e===t?(e.classList.add("ecl-mega-menu__item--expanded","ecl-mega-menu__item--current"),e.setAttribute("aria-expanded","true")):(e.setAttribute("aria-expanded","false"),e.classList.remove("ecl-mega-menu__item--current","ecl-mega-menu__item--expanded")))}),v(".ecl-mega-menu__parent-link",t).focus(),this.trigger("OnOpenPanel",{panel:1,item:t});break;case"collapse":this.closeOpenDropdown()}}handleSecondPanel(t,e){var i;switch(e){case"expand":this.subItems.forEach(e=>{e===t?(e.hasAttribute("aria-expanded")&&(e.setAttribute("aria-expanded","true"),e.classList.add("ecl-mega-menu__subitem--expanded")),e.classList.add("ecl-mega-menu__subitem--current")):(e.hasAttribute("aria-expanded")&&(e.setAttribute("aria-expanded","false"),e.classList.remove("ecl-mega-menu__subitem--expanded")),e.classList.remove("ecl-mega-menu__subitem--current"))}),this.openPanel={num:2,item:t},i=t.parentNode.childNodes,this.isDesktop?(this.checkDropdownHeight(t),i.forEach(e=>{e!==t&&(e.style.display="")})):(t.parentNode.parentNode.firstElementChild.style.display="none",t.parentNode.classList.add("ecl-mega-menu__sublist--no-border"),i.forEach(e=>{e!==t&&(e.style.display="none")})),v(".ecl-mega-menu__parent-link",t).focus(),this.checkMegaMenu(t),this.trigger("OnOpenPanel",{panel:2,item:t});break;case"collapse":this.openPanel={num:1},t.setAttribute("aria-expanded","false"),t.classList.remove("ecl-mega-menu__subitem--expanded","ecl-mega-menu__subitem--current")}}handleClickOnItem(e){var t=!1,i=e.target.closest("li"),s=v(".ecl-mega-menu__mega-container-scrollable",i);s&&(t=s.contains(e.target)),e.target.parentNode.classList.contains("ecl-mega-menu__parent-link")||e.target.classList.contains("ecl-mega-menu__mega-container-scrollable")||t||(this.trigger("onItemClick",{item:i,event:e}),(s=i.getAttribute("aria-expanded"))&&i.classList.contains("ecl-mega-menu__item")&&(e.preventDefault(),this.isDesktop?"true"===s?this.handleFirstPanel(i,"collapse"):(this.closeOpenDropdown(),this.handleFirstPanel(i,"expand")):this.handleFirstPanel(i,"expand")))}handleClickOnSubitem(e){var t=e.target.closest(this.subItemSelector);t&&t.hasAttribute("aria-expanded")&&(e.preventDefault(),e="true"===t.getAttribute("aria-expanded"),this.cloneItemInTheDrowdown(t),e?this.handleSecondPanel(t,"collapse"):this.handleSecondPanel(t,"expand"))}closeOpenDropdown(){this.enableScroll(),this.element.setAttribute("aria-expanded","false"),this.element.removeAttribute("data-expanded"),this.inner.classList.remove("ecl-mega-menu__inner--expanded"),this.inner.setAttribute("aria-hidden","true"),this.items.forEach(e=>{e.classList.remove("ecl-mega-menu__item--current"),e.hasAttribute("aria-expanded")&&(e.setAttribute("aria-expanded","false"),e.classList.remove("ecl-mega-menu__item--expanded"))}),this.subItems.forEach(e=>{e.classList.remove("ecl-mega-menu__subitem--current"),e.hasAttribute("aria-expanded")&&(e.classList.remove("ecl-mega-menu__subitem--expanded"),e.setAttribute("aria-expanded","false"),e.style.display="")}),(e=a(".ecl-mega-menu__sublist"))&&e.forEach(e=>{e.classList.remove("ecl-mega-menu__sublist--no-border")});(e=a(".ecl-mega-menu__parent-link",this.element))&&e.forEach(e=>{e.style.display=""});var e=this.element.getAttribute(this.labelOpenAttribute);this.toggleLabel&&e&&(this.toggleLabel.innerHTML=e),this.openPanel.num=0,this.focusTrap.deactivate(),this.trigger("onFocusTrapToggle",{active:!1}),this.isOpen=!1}handleFocusOut(e){var t=e.target;"true"!==this.element.getAttribute("aria-expanded")||t.parentElement.nextSibling||(e=e.relatedTarget,this.element.contains(e))||(this.focusTrap.activate(),this.trigger("onFocusTrapToggle",{active:!0,lastFocusedEl:t.parentElement}))}handleClickGlobal(e){e.target.classList.contains("ecl-mega-menu__mega-container-scrollable")||!e.target.classList.contains("ecl-mega-menu__overlay")&&this.element.contains(e.target)||this.closeOpenDropdown()}},e.Menu=class Te{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).MENU)?{}:t,(t=new Te(e,t)).init(),e.ECLMenu=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).openSelector)?"[data-ecl-menu-open]":i,s=void 0===(s=t.closeSelector)?"[data-ecl-menu-close]":s,n=void 0===(n=t.backSelector)?"[data-ecl-menu-back]":n,l=void 0===(l=t.innerSelector)?"[data-ecl-menu-inner]":l,a=void 0===(a=t.listSelector)?"[data-ecl-menu-list]":a,o=void 0===(o=t.itemSelector)?"[data-ecl-menu-item]":o,r=void 0===(r=t.linkSelector)?"[data-ecl-menu-link]":r,h=void 0===(h=t.buttonPreviousSelector)?"[data-ecl-menu-items-previous]":h,c=void 0===(c=t.buttonNextSelector)?"[data-ecl-menu-items-next]":c,d=void 0===(d=t.caretSelector)?"[data-ecl-menu-caret]":d,u=void 0===(u=t.megaSelector)?"[data-ecl-menu-mega]":u,m=void 0===(m=t.subItemSelector)?"[data-ecl-menu-subitem]":m,p=void 0===(p=t.maxLines)?2:p,v=void 0===(v=t.maxLinesAttribute)?"data-ecl-menu-max-lines":v,g=void 0===(g=t.labelOpenAttribute)?"data-ecl-menu-label-open":g,b=void 0===(b=t.labelCloseAttribute)?"data-ecl-menu-label-close":b,f=void 0===(f=t.attachClickListener)||f,y=void 0===(y=t.attachHoverListener)||y,L=void 0===(L=t.attachFocusListener)||L,E=void 0===(E=t.attachKeyListener)||E,C=void 0===(C=t.attachResizeListener)||C,w=void 0===(w=t.onCloseCallback)?null:w,t=void 0===(t=t.onOpenCallback)?null:t;if(this.supportedEvents=["onOpen","onClose"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.openSelector=i,this.closeSelector=s,this.backSelector=n,this.innerSelector=l,this.listSelector=a,this.itemSelector=o,this.linkSelector=r,this.buttonPreviousSelector=h,this.buttonNextSelector=c,this.caretSelector=d,this.megaSelector=u,this.subItemSelector=m,this.maxLines=p,this.maxLinesAttribute=v,this.labelOpenAttribute=g,this.labelCloseAttribute=b,this.attachClickListener=f,this.attachHoverListener=y,this.attachFocusListener=L,this.attachKeyListener=E,this.attachResizeListener=C,this.onOpenCallback=t,this.onCloseCallback=w,this.direction="ltr",this.open=null,this.close=null,this.toggleLabel=null,this.back=null,this.inner=null,this.itemsList=null,this.items=null,this.links=null,this.btnPrevious=null,this.btnNext=null,this.isOpen=!1,this.resizeTimer=null,this.isKeyEvent=!1,this.isDesktop=!1,this.hasOverflow=!1,this.offsetLeft=0,this.lastVisibleItem=null,this.currentItem=null,this.totalItemsWidth=0,this.breakpointL=996,this.handleClickOnOpen=this.handleClickOnOpen.bind(this),this.handleClickOnClose=this.handleClickOnClose.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleClickOnBack=this.handleClickOnBack.bind(this),this.handleClickOnNextItems=this.handleClickOnNextItems.bind(this),this.handleClickOnPreviousItems=this.handleClickOnPreviousItems.bind(this),this.handleClickOnCaret=this.handleClickOnCaret.bind(this),this.handleClickGlobal=this.handleClickGlobal.bind(this),this.handleHoverOnItem=this.handleHoverOnItem.bind(this),this.handleHoverOffItem=this.handleHoverOffItem.bind(this),this.handleFocusIn=this.handleFocusIn.bind(this),this.handleFocusOut=this.handleFocusOut.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.handleResize=this.handleResize.bind(this),this.useDesktopDisplay=this.useDesktopDisplay.bind(this),this.checkMenuOverflow=this.checkMenuOverflow.bind(this),this.checkMenuItem=this.checkMenuItem.bind(this),this.checkMegaMenu=this.checkMegaMenu.bind(this),this.closeOpenDropdown=this.closeOpenDropdown.bind(this),this.positionMenuOverlay=this.positionMenuOverlay.bind(this),this.disableScroll=this.disableScroll.bind(this),this.enableScroll=this.enableScroll.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.direction=getComputedStyle(this.element).direction,this.open=v(this.openSelector,this.element),this.close=v(this.closeSelector,this.element),this.toggleLabel=v(".ecl-link__label",this.open),this.back=v(this.backSelector,this.element),this.inner=v(this.innerSelector,this.element),this.itemsList=v(this.listSelector,this.element),this.btnPrevious=v(this.buttonPreviousSelector,this.element),this.btnNext=v(this.buttonNextSelector,this.element),this.items=a(this.itemSelector,this.element),this.subItems=a(this.subItemSelector,this.element),this.links=a(this.linkSelector,this.element),this.carets=a(this.caretSelector,this.element);var e=this.element.getAttribute(this.maxLinesAttribute);e&&(this.maxLines=e),this.isDesktop=this.useDesktopDisplay(),this.attachClickListener&&(this.open&&this.open.addEventListener("click",this.handleClickOnToggle),this.close&&this.close.addEventListener("click",this.handleClickOnClose),this.back&&this.back.addEventListener("click",this.handleClickOnBack),this.btnPrevious&&this.btnPrevious.addEventListener("click",this.handleClickOnPreviousItems),this.btnNext&&this.btnNext.addEventListener("click",this.handleClickOnNextItems),this.attachClickListener)&&document.addEventListener("click",this.handleClickGlobal),this.links&&this.links.forEach(e=>{this.attachFocusListener&&(e.addEventListener("focusin",this.closeOpenDropdown),e.addEventListener("focusin",this.handleFocusIn),e.addEventListener("focusout",this.handleFocusOut)),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard)}),this.carets&&this.carets.forEach(e=>{this.attachFocusListener&&(e.addEventListener("focusin",this.handleFocusIn),e.addEventListener("focusout",this.handleFocusOut)),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard),this.attachClickListener&&e.addEventListener("click",this.handleClickOnCaret)}),this.subItems&&this.subItems.forEach(e=>{e=v(".ecl-menu__sublink",e),this.attachKeyListener&&e&&e.addEventListener("keyup",this.handleKeyboard),this.attachFocusListener&&e&&e.addEventListener("focusout",this.handleFocusOut)}),this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.items&&this.items.forEach(e=>{this.checkMenuItem(e),this.totalItemsWidth+=e.offsetWidth,e.hasAttribute("data-ecl-has-children")&&this.attachHoverListener&&(e.addEventListener("mouseover",this.handleHoverOnItem),e.addEventListener("mouseout",this.handleHoverOffItem))}),this.positionMenuOverlay(),this.checkMenuOverflow(),this.currentItem&&("false"===this.currentItem.getAttribute("data-ecl-menu-item-visible")?this.btnNext:this.btnPrevious).classList.add("ecl-menu__item--current"),this.stickyInstance=new he.Sticky(this.element),this.focusTrap=l(this.element,{onActivate:()=>this.element.classList.add("trap-is-active"),onDeactivate:()=>this.element.classList.remove("trap-is-active")}),"rtl"===this.direction&&this.element.classList.add("ecl-menu--rtl"),setTimeout(()=>{this.element.classList.add("ecl-menu--transition")},500),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.stickyInstance&&this.stickyInstance.remove(),this.attachClickListener&&(this.open&&this.open.removeEventListener("click",this.handleClickOnToggle),this.close&&this.close.removeEventListener("click",this.handleClickOnClose),this.back&&this.back.removeEventListener("click",this.handleClickOnBack),this.btnPrevious&&this.btnPrevious.removeEventListener("click",this.handleClickOnPreviousItems),this.btnNext&&this.btnNext.removeEventListener("click",this.handleClickOnNextItems),this.attachClickListener)&&document.removeEventListener("click",this.handleClickGlobal),this.attachKeyListener&&this.carets&&this.carets.forEach(e=>{e.removeEventListener("keyup",this.handleKeyboard)}),this.items&&this.isDesktop&&this.items.forEach(e=>{e.hasAttribute("data-ecl-has-children")&&this.attachHoverListener&&(e.removeEventListener("mouseover",this.handleHoverOnItem),e.removeEventListener("mouseout",this.handleHoverOffItem))}),this.links&&this.links.forEach(e=>{this.attachFocusListener&&(e.removeEventListener("focusin",this.closeOpenDropdown),e.removeEventListener("focusin",this.handleFocusIn),e.removeEventListener("focusout",this.handleFocusOut)),this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard)}),this.carets&&this.carets.forEach(e=>{this.attachFocusListener&&(e.removeEventListener("focusin",this.handleFocusIn),e.removeEventListener("focusout",this.handleFocusOut)),this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard),this.attachClickListener&&e.removeEventListener("click",this.handleClickOnCaret)}),this.subItems&&this.subItems.forEach(e=>{e=v(".ecl-menu__sublink",e),this.attachKeyListener&&e&&e.removeEventListener("keyup",this.handleKeyboard),this.attachFocusListener&&e&&e.removeEventListener("focusout",this.handleFocusOut)}),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}disableScroll(){document.body.classList.add("no-scroll")}enableScroll(){document.body.classList.remove("no-scroll")}useDesktopDisplay(){return!(m.isMobileOnly||(m.isTablet?(this.element.classList.add("ecl-menu--forced-mobile"),1):window.innerWidth<this.breakpointL||(this.element.classList.remove("ecl-menu--forced-mobile"),0)))}handleResize(){return document.documentElement.scrollTop=0,document.body.scrollTop=0,this.element.classList.remove("ecl-menu--transition"),"rtl"===this.direction?this.element.classList.add("ecl-menu--rtl"):this.element.classList.remove("ecl-menu--rtl"),clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.element.classList.remove("ecl-menu--forced-mobile"),this.isDesktop=this.useDesktopDisplay(),this.isDesktop&&this.focusTrap.deactivate(),this.totalItemsWidth=0,this.items&&this.items.forEach(e=>{this.checkMenuItem(e),this.totalItemsWidth+=e.offsetWidth}),this.checkMenuOverflow(),this.positionMenuOverlay(),this.element.classList.add("ecl-menu--transition")},200),this}positionMenuOverlay(){var t=v(".ecl-menu__overlay",this.element);this.isDesktop?(this.enableScroll(),this.inner&&(this.inner.style.top=""),t&&(t.style.top="")):(this.isOpen&&this.disableScroll(),setTimeout(()=>{var e=v(".ecl-site-header__header",document);e&&(e=e.getBoundingClientRect(),e=Math.round(e.bottom),t&&(t.style.top=e+"px"),this.inner)&&(this.inner.style.top=e+"px")},500))}checkMenuOverflow(){this.itemsList||(this.itemsList=v(".ecl-menu__list",this.element)),this.itemsList&&this.inner&&this.btnNext&&this.btnPrevious&&this.items&&(this.hasOverflow=this.totalItemsWidth>this.inner.offsetWidth+16,this.hasOverflow&&this.isDesktop?(this.inner&&this.inner.classList.add("ecl-menu__inner--has-overflow"),this.items&&this.items.forEach(e=>{e.removeAttribute("data-ecl-menu-item-visible")}),0===this.offsetLeft?(this.btnNext.style.display="block","rtl"===this.direction?this.items.every(e=>e.getBoundingClientRect().left<this.itemsList.getBoundingClientRect().left?(this.lastVisibleItem=e,!1):(e.setAttribute("data-ecl-menu-item-visible",!0),!0)):this.items.every(e=>e.getBoundingClientRect().right>this.itemsList.getBoundingClientRect().right?(this.lastVisibleItem=e,!1):(e.setAttribute("data-ecl-menu-item-visible",!0),!0))):"rtl"===this.direction?this.items.forEach(e=>{e.getBoundingClientRect().right<=this.inner.getBoundingClientRect().right&&e.setAttribute("data-ecl-menu-item-visible",!0)}):this.items.forEach(e=>{e.getBoundingClientRect().left>=this.inner.getBoundingClientRect().left&&e.setAttribute("data-ecl-menu-item-visible",!0)})):(this.btnPrevious&&(this.btnPrevious.style.display="none"),this.btnNext&&(this.btnNext.style.display="none"),this.itemsList&&(this.itemsList.style.left="0"),this.inner&&this.inner.classList.remove("ecl-menu__inner--has-overflow"),this.offsetLeft=0,this.totalItemsWidth=0,this.lastVisibleItem=null))}checkMenuItem(e){var t=v(this.linkSelector,e);if(e.classList.contains("ecl-menu__item--current")&&(this.currentItem=e),this.isDesktop){if(!(this.maxLines<1)){e.style.alignItems="flex-start";for(var i=t.offsetWidth,s=window.getComputedStyle(t),n=parseInt(s.lineHeight,10)*this.maxLines+parseInt(s.paddingTop,10)+parseInt(s.paddingBottom,10);t.offsetHeight>n&&(t.style.width=(i+=1)+"px",!(1e3<i)););e.style.alignItems="unset"}}else t.style.width="auto"}checkMegaMenu(e){var t=v(this.megaSelector,e);if(t&&this.inner){if((i=a(this.subItemSelector,t)).length<5)e.classList.add("ecl-menu__item--col1");else if(i.length<9)e.classList.add("ecl-menu__item--col2");else{if(!(i.length<13))return e.classList.add("ecl-menu__item--full"),void("rtl"===this.direction?t.style.right=this.offsetLeft+"px":t.style.left=this.offsetLeft+"px");e.classList.add("ecl-menu__item--col3")}var i=t.getBoundingClientRect(),s=this.inner.getBoundingClientRect(),e=e.getBoundingClientRect(),i=i.width;s.width<e.left-s.left+i?t.classList.add("ecl-menu__mega--rtl"):t.classList.remove("ecl-menu__mega--rtl")}}handleKeyboard(e){var t=e.target,i=t.classList,s=this.element.getAttribute("aria-expanded"),n=t.closest(this.itemSelector);if("Escape"===e.key||"Esc"===e.key)document.activeElement===t&&t.blur(),"false"===s&&((l=v(".ecl-menu__button-caret",n))&&l.focus(),this.closeOpenDropdown());else{if(i.contains("ecl-menu__button-caret")&&"false"===s){if(32===e.keyCode||"Enter"===e.key)return void("true"===n.getAttribute("aria-expanded")?this.handleHoverOffItem(e):this.handleHoverOnItem(e));if("ArrowDown"===e.key)if(e.preventDefault(),l=v(".ecl-menu__sublink:first-of-type",n))return this.handleHoverOnItem(e),void l.focus()}if(i.contains("ecl-menu__link")||i.contains("ecl-menu__button-caret")){if("ArrowLeft"===e.key||"ArrowUp"===e.key){if(e.preventDefault(),(s=t.previousSibling)&&s.classList.contains("ecl-menu__link"))return void s.focus();if(s=t.parentElement.previousSibling){var l,n=s.classList.contains("ecl-menu__item--has-children")?".ecl-menu__button-caret":".ecl-menu__link";if(l=v(n,s))return void l.focus()}}if("ArrowRight"===e.key||"ArrowDown"===e.key){if(e.preventDefault(),(n=t.nextSibling)&&n.classList.contains("ecl-menu__button-caret"))return void n.focus();(n=t.parentElement.nextSibling)&&(s=v(".ecl-menu__link",n))&&s.focus()}this.closeOpenDropdown()}i.contains("ecl-menu__sublink")&&("ArrowDown"===e.key&&(l=t.parentElement.nextSibling)&&(n=v(".ecl-menu__sublink",l))?n.focus():"ArrowUp"===e.key&&((s=t.parentElement.previousSibling)?(i=v(".ecl-menu__sublink",s))&&i.focus():(l=v(this.itemSelector+'[aria-expanded="true"] '+this.caretSelector,this.element))&&l.focus()))}}handleKeyboardGlobal(e){var t=this.element.getAttribute("aria-expanded");"Escape"!==e.key&&"Esc"!==e.key||("true"===t&&this.handleClickOnClose(),this.items.forEach(e=>{e.setAttribute("aria-expanded","false")}),this.carets.forEach(e=>{e.setAttribute("aria-expanded","false")}))}handleClickOnOpen(e){e.preventDefault(),this.element.setAttribute("aria-expanded","true"),this.inner.setAttribute("aria-hidden","false"),this.disableScroll(),this.isOpen=!0;var t=this.element.getAttribute(this.labelCloseAttribute);return this.toggleLabel&&t&&(this.toggleLabel.innerHTML=t),this.trigger("onOpen",e),this}handleClickOnClose(e){this.element.setAttribute("aria-expanded","false"),this.inner.classList.remove("ecl-menu__inner--expanded"),this.inner.setAttribute("aria-hidden","true"),this.items.forEach(e=>{e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false")});var t=this.element.getAttribute(this.labelOpenAttribute);return this.toggleLabel&&t&&(this.toggleLabel.innerHTML=t),this.enableScroll(),this.focusTrap.deactivate(),this.isOpen=!1,this.trigger("onClose",e),this}handleClickOnToggle(e){e.preventDefault(),this.isOpen?this.handleClickOnClose(e):this.handleClickOnOpen(e)}handleClickOnBack(){return this.inner.classList.remove("ecl-menu__inner--expanded"),this.items.forEach(e=>{e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false")}),this}handleClickOnPreviousItems(){this.itemsList&&this.btnNext&&(this.offsetLeft=0,"rtl"===this.direction?(this.itemsList.style.right="0",this.itemsList.style.left="auto"):(this.itemsList.style.left="0",this.itemsList.style.right="auto"),this.btnPrevious.style.display="none",this.btnNext.style.display="block",this.items)&&this.items.forEach(e=>{this.checkMenuItem(e),e.toggleAttribute("data-ecl-menu-item-visible")})}handleClickOnNextItems(){this.itemsList&&this.items&&this.btnPrevious&&this.lastVisibleItem&&(this.btnPrevious.style.display="block",this.btnNext.style.display="none","rtl"===this.direction?(this.offsetLeft=this.itemsList.getBoundingClientRect().right-this.lastVisibleItem.getBoundingClientRect().right-this.btnPrevious.offsetWidth,this.itemsList.style.right="-"+this.offsetLeft+"px",this.itemsList.style.left="auto"):(this.offsetLeft=this.lastVisibleItem.getBoundingClientRect().left-this.itemsList.getBoundingClientRect().left-this.btnPrevious.offsetWidth,this.itemsList.style.left="-"+this.offsetLeft+"px",this.itemsList.style.right="auto"),this.items)&&this.items.forEach(e=>{this.checkMenuItem(e),e.toggleAttribute("data-ecl-menu-item-visible")})}handleClickOnCaret(e){var t;"false"!==this.element.getAttribute("aria-expanded")&&(this.inner.classList.add("ecl-menu__inner--expanded"),t=e.target.closest(this.itemSelector),this.items.forEach(e=>{e===t?(e.classList.add("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","true")):(e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false"))}),this.checkMegaMenu(t))}handleHoverOnItem(e){var i=e.target.closest(this.itemSelector);this.hasOverflow&&!i.hasAttribute("data-ecl-menu-item-visible")||(this.items.forEach(e=>{var t=v(this.caretSelector,e);e===i?(e.setAttribute("aria-expanded","true"),t&&t.setAttribute("aria-expanded","true")):(e.setAttribute("aria-expanded","false"),t&&(t.setAttribute("aria-expanded","false"),t.blur()))}),this.checkMegaMenu(i))}handleHoverOffItem(e){return(e=e.target.closest(this.itemSelector)).setAttribute("aria-expanded","false"),(e=v(this.caretSelector,e))&&e.setAttribute("aria-expanded","false"),this}closeOpenDropdown(){var e=v(this.itemSelector+"[aria-expanded='true']",this.element);e&&(e.setAttribute("aria-expanded","false"),e=v(this.caretSelector,e))&&e.setAttribute("aria-expanded","false")}handleFocusIn(e){e=e.target,this.isDesktop&&this.hasOverflow&&(e.closest("[data-ecl-menu-item]").hasAttribute("data-ecl-menu-item-visible")||(0===this.offsetLeft?this.handleClickOnNextItems():this.handleClickOnPreviousItems()))}handleFocusOut(e){var t,e=e.target;"true"!==this.element.getAttribute("aria-expanded")||e.parentElement.nextSibling||(t=v(".ecl-menu__button-caret",e.parentElement))&&e!==t||(e=document.activeElement,this.element.contains(e))||this.focusTrap.activate()}handleClickGlobal(e){!this.isOpen||this.inner.contains(e.target)||this.open.contains(e.target)||this.handleClickOnClose(e)}},e.Modal=class Ie{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).MODAL)?{}:t,(t=new Ie(e,t)).init(),e.ECLModal=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).toggleSelector)?"":i,s=void 0===(s=t.closeSelector)?"[data-ecl-modal-close]":s,n=void 0===(n=t.scrollSelector)?"[data-ecl-modal-scroll]":n,l=void 0===(l=t.attachClickListener)||l,t=void 0===(t=t.attachKeyListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=i,this.closeSelector=s,this.scrollSelector=n,this.attachClickListener=l,this.attachKeyListener=t,this.toggle=null,this.close=null,this.scroll=null,this.focusTrap=null,this.openModal=this.openModal.bind(this),this.closeModal=this.closeModal.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),""===this.toggleSelector&&(this.toggleSelector="#"+this.element.getAttribute("data-ecl-modal-toggle")),this.toggle=document.querySelector(this.toggleSelector),this.toggle&&(this.toggle.setAttribute("aria-controls",this.element.id),this.toggle.getAttribute("aria-haspopup")||this.toggle.setAttribute("aria-haspopup","dialog")),this.close=a(this.closeSelector,this.element),this.scroll=v(this.scrollSelector,this.element),this.focusTrap=l(this.element),this.isDialogSupported=!0,window.HTMLDialogElement||(this.isDialogSupported=!1),this.toggle&&this.attachClickListener&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.close&&this.attachClickListener&&this.close.forEach(e=>{e.addEventListener("click",this.closeModal)}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.toggle&&this.attachClickListener&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.close&&this.attachClickListener&&this.close.forEach(e=>{e.removeEventListener("click",this.closeModal)}),this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element)}checkScroll(){this.scroll&&(this.scroll.parentNode.classList.remove("ecl-modal__body--has-scroll"),this.scroll.scrollHeight>this.scroll.clientHeight)&&this.scroll.parentNode.classList.add("ecl-modal__body--has-scroll")}handleClickOnToggle(e){e.preventDefault(),"true"===this.toggle.getAttribute("aria-expanded")?this.closeModal():this.openModal()}openModal(){this.isDialogSupported?this.element.showModal():this.element.setAttribute("open",""),this.checkScroll(),this.focusTrap.activate()}closeModal(){this.isDialogSupported?this.element.close():this.element.removeAttribute("open"),this.focusTrap.active&&this.focusTrap.deactivate()}handleKeyboardGlobal(e){"Escape"!==e.key&&"Esc"!==e.key||this.closeModal()}},e.NewsTicker=class Me{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).NEWS_TICKER)?{}:t,(t=new Me(e,t)).init(),e.ECLNewsTicker=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).playSelector)?"[data-ecl-news-ticker-play]":i,s=void 0===(s=t.pauseSelector)?"[data-ecl-news-ticker-pause]":s,n=void 0===(n=t.prevSelector)?"[data-ecl-news-ticker-prev]":n,l=void 0===(l=t.nextSelector)?"[data-ecl-news-ticker-next]":l,a=void 0===(a=t.containerClass)?".ecl-news-ticker__container":a,o=void 0===(o=t.contentClass)?".ecl-news-ticker__content":o,r=void 0===(r=t.slidesClass)?".ecl-news-ticker__slides":r,h=void 0===(h=t.slideClass)?".ecl-news-ticker__slide":h,c=void 0===(c=t.currentSlideClass)?".ecl-news-ticker__counter--current":c,d=void 0===(d=t.controlsClass)?".ecl-news-ticker__controls":d,u=void 0===(u=t.attachClickListener)||u,t=void 0===(t=t.attachResizeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.playSelector=i,this.pauseSelector=s,this.prevSelector=n,this.nextSelector=l,this.containerClass=a,this.contentClass=o,this.slidesClass=r,this.slideClass=h,this.currentSlideClass=c,this.controlsClass=d,this.attachClickListener=u,this.attachResizeListener=t,this.container=null,this.content=null,this.slides=null,this.btnPlay=null,this.btnPause=null,this.btnPrev=null,this.btnNext=null,this.index=1,this.total=0,this.allowShift=!0,this.autoPlay=null,this.autoPlayInterval=null,this.hoverAutoPlay=null,this.resizeTimer=null,this.cloneFirstSLide=null,this.cloneLastSLide=null,this.handleAutoPlay=this.handleAutoPlay.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.shiftSlide=this.shiftSlide.bind(this),this.checkIndex=this.checkIndex.bind(this),this.moveSlides=this.moveSlides.bind(this),this.handleResize=this.handleResize.bind(this),this.handleFocus=this.handleFocus.bind(this)}init(){var e,t;if(ECL)return ECL.components=ECL.components||new Map,this.btnPlay=v(this.playSelector,this.element),this.btnPause=v(this.pauseSelector,this.element),this.btnPrev=v(this.prevSelector,this.element),this.btnNext=v(this.nextSelector,this.element),this.slidesContainer=v(this.slidesClass,this.element),this.container=v(this.containerClass,this.element),this.content=v(this.contentClass,this.element),this.controls=v(this.controlsClass,this.element),this.slides=a(this.slideClass,this.element),this.total=this.slides.length,this.total<=1&&this.controls?(this.content.style.height="auto",!(this.controls.style.display="none")):(e=this.slides[0],t=this.slides[this.slides.length-1],this.cloneFirstSLide=e.cloneNode(!0),this.cloneLastSLide=t.cloneNode(!0),this.slidesContainer.appendChild(this.cloneFirstSLide),this.slidesContainer.insertBefore(this.cloneLastSLide,e),this.slides=a(this.slideClass,this.element),this.handleResize(),this.handleAutoPlay(),this.attachClickListener&&this.btnPlay&&this.btnPause&&(this.btnPlay.addEventListener("click",this.handleAutoPlay),this.btnPause.addEventListener("click",this.handleAutoPlay)),this.attachClickListener&&this.btnNext&&this.btnNext.addEventListener("click",this.shiftSlide.bind(this,1,!0)),this.attachClickListener&&this.btnPrev&&this.btnPrev.addEventListener("click",this.shiftSlide.bind(this,-1,!0)),this.slidesContainer&&(this.slidesContainer.addEventListener("transitionend",this.checkIndex),this.slidesContainer.addEventListener("mouseover",this.handleMouseOver),this.slidesContainer.addEventListener("mouseout",this.handleMouseOut)),this.container&&this.container.addEventListener("focus",this.handleFocus,!0),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this),this);throw new TypeError("Called init but ECL is not present")}destroy(){this.cloneFirstSLide&&this.cloneLastSLide&&(this.cloneFirstSLide.remove(),this.cloneLastSLide.remove()),this.btnPlay&&this.btnPlay.replaceWith(this.btnPlay.cloneNode(!0)),this.btnPause&&this.btnPause.replaceWith(this.btnPause.cloneNode(!0)),this.btnNext&&this.btnNext.replaceWith(this.btnNext.cloneNode(!0)),this.btnPrev&&this.btnPrev.replaceWith(this.btnPrev.cloneNode(!0)),this.slidesContainer&&(this.slidesContainer.removeEventListener("transitionend",this.checkIndex),this.slidesContainer.removeEventListener("mouseover",this.handleMouseOver),this.slidesContainer.removeEventListener("mouseout",this.handleMouseOut)),this.container&&this.container.removeEventListener("focus",this.handleFocus,!0),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.autoPlayInterval&&(clearInterval(this.autoPlayInterval),this.autoPlay=null),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}shiftSlide(e,t){this.allowShift&&(this.index=1===e?this.index+1:this.index-1,this.moveSlides(!0)),t&&this.autoPlay&&this.handleAutoPlay(),this.allowShift=!1}moveSlides(e){var t=this.slides[this.index].offsetTop,i=this.slides[this.index].offsetHeight;this.content.style.height=i+"px",this.slidesContainer.style.transitionDuration=e?"0.4s":"1ms",this.slidesContainer.style.transform="translate3d(0px, -"+t+"px, 0px)"}checkIndex(){0===this.index&&(this.index=this.total,this.moveSlides(!1)),this.index===this.total+1&&(this.index=1,this.moveSlides(!1)),v(this.currentSlideClass,this.element).textContent=this.index,this.slides&&this.slides.forEach((e,t)=>{var i=v(".ecl-link",e);this.index===t?(e.removeAttribute("inert","true"),i&&i.removeAttribute("tabindex",-1)):(e.setAttribute("inert","true"),i&&i.setAttribute("tabindex",-1))}),this.allowShift=!0}handleAutoPlay(){var e;this.autoPlay?(clearInterval(this.autoPlayInterval),this.autoPlay=!1,e=document.activeElement===this.btnPause,this.btnPlay.style.display="flex",this.btnPause.style.display="none",e&&this.btnPlay.focus()):(this.autoPlayInterval=setInterval(()=>{this.shiftSlide(1)},5e3),this.autoPlay=!0,e=document.activeElement===this.btnPlay,this.btnPlay.style.display="none",this.btnPause.style.display="flex",e&&this.btnPause.focus())}handleMouseOver(){return this.hoverAutoPlay=this.autoPlay,this.hoverAutoPlay&&this.handleAutoPlay(),this}handleMouseOut(){return this.hoverAutoPlay&&this.handleAutoPlay(),this}handleResize(){this.moveSlides(!1)}handleFocus(e){return(e=e.target)&&e.contains(document.activeElement)&&this.autoPlay&&this.handleAutoPlay(),this}},e.Notification=class Pe{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).NOTIFICATION)?{}:t,(t=new Pe(e,t)).init(),e.ECLNotification=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).closeSelector)?"[data-ecl-notification-close]":i,t=void 0===(t=t.attachClickListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.closeSelector=i,this.attachClickListener=t,this.close=null,this.handleClickOnClose=this.handleClickOnClose.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.close=v(this.closeSelector,this.element),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.handleClickOnClose),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnClose),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnClose(){return this.element.parentNode&&this.element.parentNode.removeChild(this.element),this}},e.Popover=class Ne{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).POPOVER)?{}:t,(t=new Ne(e,t)).init(),e.ECLPopover=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).toggleSelector)?"[data-ecl-popover-toggle]":i,s=void 0===(s=t.closeSelector)?"[data-ecl-popover-close]":s,n=void 0===(n=t.attachClickListener)||n,t=void 0===(t=t.attachKeyListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=i,this.closeSelector=s,this.attachClickListener=n,this.attachKeyListener=t,this.toggle=null,this.close=null,this.target=null,this.container=null,this.resizeTimer=null,this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.positionPopover=this.positionPopover.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.handleClickGlobal=this.handleClickGlobal.bind(this),this.checkPosition=this.checkPosition.bind(this),this.resetStyles=this.resetStyles.bind(this),this.POPOVER_CLASSES={TOP:"ecl-popover--top",BOTTOM:"ecl-popover--bottom",LEFT:"ecl-popover--left",RIGHT:"ecl-popover--right",PUSH_TOP:"ecl-popover--push-top",PUSH_BOTTOM:"ecl-popover--push-bottom",PUSH_LEFT:"ecl-popover--push-left",PUSH_RIGHT:"ecl-popover--push-right"}}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,this.toggle=v(this.toggleSelector,this.element),this.close=v(this.closeSelector,this.element),this.container=v(".ecl-popover__container",this.element),this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),this.attachClickListener&&(document.addEventListener("click",this.handleClickGlobal),this.close)&&this.close.addEventListener("click",this.handleClickOnToggle),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),!this.target)throw new TypeError("Target has to be provided for popover (aria-controls)");window.addEventListener("resize",this.checkPosition),document.addEventListener("scroll",this.checkPosition),this.attachClickListener&&this.toggle&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnToggle),window.removeEventListener("resize",this.checkPosition),document.removeEventListener("scroll",this.checkPosition),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.attachClickListener&&document.removeEventListener("click",this.handleClickGlobal),"true"===this.toggle.getAttribute("aria-expanded")&&this.closePopover(),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnToggle(e){e.preventDefault(),"true"===this.toggle.getAttribute("aria-expanded")?this.closePopover():(this.openPopover(),this.positionPopover())}openPopover(){this.toggle.setAttribute("aria-expanded","true"),this.target.hidden=!1}closePopover(){this.toggle.setAttribute("aria-expanded","false"),this.resetStyles(),this.target.hidden=!0}resetStyles(){Object.keys(this.POPOVER_CLASSES).forEach(e=>{Object.prototype.hasOwnProperty.call(this.POPOVER_CLASSES,e)&&this.element.classList.remove(this.POPOVER_CLASSES[e])}),this.target.style.setProperty("--ecl-popover-position",""),this.container.style.left="",this.container.style.right="",this.container.style.top="",this.container.style.bottom="",this.container.style.transform="",this.target.firstElementChild.width=""}positionPopover(){this.resetStyles();var e=this.toggle.getBoundingClientRect(),t=window.innerHeight,i=window.innerWidth,s=e.top,n=t-e.bottom,l=e.left,e=i-e.right,a="",a=n<s&&l<s&&e<s?"top":l<n&&e<n?"bottom":e<l?"left":"right",s=(this.element.classList.add("ecl-popover--"+a),this.handlePushClass(i,t,a),this.target.firstElementChild),n=window.getComputedStyle(s),t=parseInt(n.getPropertyValue("max-width"),10),o=parseInt(n.getPropertyValue("min-width"),10),n=2*parseInt(n.getPropertyValue("padding-left"),10),r="";r="left"===a||"right"===a?.9*("left"===a?l:e):.9*(i-(this.toggle.getBoundingClientRect().right-this.toggle.getBoundingClientRect().left)/2+this.target.offsetWidth/2),s.style.width=t+n<r?t+"px":r<o+n?o+"px":r-n+"px"}handlePushClass(e,t,i){var s=this.toggle.getBoundingClientRect(),n=this.target.getBoundingClientRect();"left"===i||"right"===i?n.top<0?(this.element.classList.add(this.POPOVER_CLASSES.PUSH_TOP),this.container.style.top="-"+Math.round(s.top)+"px",this.container.style.bottom="",this.container.style.transform=""):n.bottom>t&&(this.element.classList.add(this.POPOVER_CLASSES.PUSH_BOTTOM),this.container.style.bottom="-"+Math.round(t-(s.bottom+8))+"px",this.container.style.top="",this.container.style.transform=""):(n.left<0&&(this.element.classList.add(this.POPOVER_CLASSES.PUSH_LEFT),this.container.style.left="-"+s.left+"px",this.container.style.right="auto",this.container.style.transform="none"),n.right>e&&(this.element.classList.add(this.POPOVER_CLASSES.PUSH_RIGHT),this.container.style.right="-"+(e-s.right)+"px",this.container.style.left="auto",this.container.style.transform="none")),this.handleArrowPosition(i)}handleArrowPosition(e){var t=this.toggle.getBoundingClientRect(),i=this.target.getBoundingClientRect();"left"===e||"right"===e?this.element.classList.contains(this.POPOVER_CLASSES.PUSH_BOTTOM)?this.target.style.setProperty("--ecl-popover-position",Math.round(t.top-i.top+t.height/2)+"px"):this.element.classList.contains(this.POPOVER_CLASSES.PUSH_TOP)&&this.target.style.setProperty("--ecl-popover-position",Math.round(i.top+t.top+t.height/2)+"px"):this.element.classList.contains(this.POPOVER_CLASSES.PUSH_RIGHT)?this.target.style.setProperty("--ecl-popover-position",Math.round(i.right-(t.right-t.width/2))+"px"):this.element.classList.contains(this.POPOVER_CLASSES.PUSH_LEFT)&&this.target.style.setProperty("--ecl-popover-position",Math.round(i.left+t.left+t.width/2)+"px")}checkPosition(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{"true"===this.toggle.getAttribute("aria-expanded")&&this.positionPopover()},200)}handleKeyboardGlobal(e){!this.target||"Escape"!==e.key&&"Esc"!==e.key||this.closePopover()}handleClickGlobal(e){!this.target||"true"!==this.toggle.getAttribute("aria-expanded")||this.target.contains(e.target)||this.toggle.contains(e.target)||this.closePopover()}},e.Range=class De{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).RANGE)?{}:t,(t=new De(e,t)).init(),e.ECLRange=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).rangeInputSelector)?"[data-ecl-range-input]":i,s=void 0===(s=t.currentValueSelector)?"[data-ecl-range-value-current]":s,t=void 0===(t=t.attachChangeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.rangeInputSelector=i,this.currentValueSelector=s,this.attachChangeListener=t,this.rangeInput=null,this.currentValue=null,this.handleChange=this.handleChange.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.rangeInput=v(this.rangeInputSelector,this.element),this.currentValue=v(this.currentValueSelector,this.element),this.rangeInput&&this.currentValue&&(this.currentValue.innerHTML=this.rangeInput.value,this.attachChangeListener)&&this.rangeInput.addEventListener("input",this.handleChange),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachChangeListener&&this.rangeInput&&this.currentValue&&this.rangeInput.removeEventListener("input",this.handleChange),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleChange(){this.currentValue.innerHTML=this.rangeInput.value}},e.Select=N,e.SiteHeader=class Re{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).SITE_HEADER_CORE)?{}:t,(t=new Re(e,t)).init(),e.ECLSiteHeader=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).containerSelector)?"[data-ecl-site-header-top]":i,s=void 0===(s=t.languageLinkSelector)?"[data-ecl-language-selector]":s,n=void 0===(n=t.languageListOverlaySelector)?"[data-ecl-language-list-overlay]":n,l=void 0===(l=t.languageListEuSelector)?"[data-ecl-language-list-eu]":l,a=void 0===(a=t.languageListNonEuSelector)?"[data-ecl-language-list-non-eu]":a,o=void 0===(o=t.closeOverlaySelector)?"[data-ecl-language-list-close]":o,r=void 0===(r=t.searchToggleSelector)?"[data-ecl-search-toggle]":r,h=void 0===(h=t.searchFormSelector)?"[data-ecl-search-form]":h,c=void 0===(c=t.loginToggleSelector)?"[data-ecl-login-toggle]":c,d=void 0===(d=t.loginBoxSelector)?"[data-ecl-login-box]":d,u=void 0===(u=t.attachClickListener)||u,m=void 0===(m=t.attachKeyListener)||m,t=void 0===(t=t.attachResizeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.containerSelector=i,this.languageLinkSelector=s,this.languageListOverlaySelector=n,this.languageListEuSelector=l,this.languageListNonEuSelector=a,this.closeOverlaySelector=o,this.searchToggleSelector=r,this.searchFormSelector=h,this.loginToggleSelector=c,this.loginBoxSelector=d,this.attachClickListener=u,this.attachKeyListener=m,this.attachResizeListener=t,this.languageMaxColumnItems=8,this.languageLink=null,this.languageListOverlay=null,this.languageListEu=null,this.languageListNonEu=null,this.close=null,this.focusTrap=null,this.searchToggle=null,this.searchForm=null,this.loginToggle=null,this.loginBox=null,this.resizeTimer=null,this.openOverlay=this.openOverlay.bind(this),this.closeOverlay=this.closeOverlay.bind(this),this.toggleOverlay=this.toggleOverlay.bind(this),this.toggleSearch=this.toggleSearch.bind(this),this.toggleLogin=this.toggleLogin.bind(this),this.setLoginArrow=this.setLoginArrow.bind(this),this.setSearchArrow=this.setSearchArrow.bind(this),this.handleKeyboardLanguage=this.handleKeyboardLanguage.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.handleClickGlobal=this.handleClickGlobal.bind(this),this.handleResize=this.handleResize.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.arrowSize="0.5rem",this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),this.attachClickListener&&document.addEventListener("click",this.handleClickGlobal),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.container=v(this.containerSelector),this.languageLink=v(this.languageLinkSelector),this.languageListOverlay=v(this.languageListOverlaySelector),this.languageListEu=v(this.languageListEuSelector),this.languageListNonEu=v(this.languageListNonEuSelector),this.close=v(this.closeOverlaySelector),this.focusTrap=l(this.languageListOverlay,{onDeactivate:this.closeOverlay,allowOutsideClick:!0}),this.attachClickListener&&this.languageLink&&this.languageLink.addEventListener("click",this.toggleOverlay),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.toggleOverlay),this.attachKeyListener&&this.languageLink&&this.languageLink.addEventListener("keydown",this.handleKeyboardLanguage),this.searchToggle=v(this.searchToggleSelector),this.searchForm=v(this.searchFormSelector),this.attachClickListener&&this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=v(this.loginToggleSelector),this.loginBox=v(this.loginBoxSelector),this.attachClickListener&&this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.languageLink&&this.languageLink.removeEventListener("click",this.toggleOverlay),this.focusTrap&&this.focusTrap.deactivate(),this.attachKeyListener&&this.languageLink&&this.languageLink.removeEventListener("keydown",this.handleKeyboardLanguage),this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.toggleOverlay),this.attachClickListener&&this.searchToggle&&this.searchToggle.removeEventListener("click",this.toggleSearch),this.attachClickListener&&this.loginToggle&&this.loginToggle.removeEventListener("click",this.toggleLogin),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.attachClickListener&&document.removeEventListener("click",this.handleClickGlobal),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}updateOverlay(){var e=1,t=1,i=(this.languageListEu&&(i=a(".ecl-site-header__language-item",this.languageListEu),1<(e=Math.ceil(i.length/this.languageMaxColumnItems)))&&this.languageListEu.classList.add("ecl-site-header__language-category--"+e+"-col"),this.languageListNonEu&&(i=a(".ecl-site-header__language-item",this.languageListNonEu),1<(t=Math.ceil(i.length/this.languageMaxColumnItems)))&&this.languageListNonEu.classList.add("ecl-site-header__language-category--"+t+"-col"),this.languageListEu?this.languageListEu.parentNode.classList.remove("ecl-site-header__language-content--stack"):this.languageListNonEu&&this.languageListNonEu.parentNode.classList.remove("ecl-site-header__language-content--stack"),this.languageListOverlay.getBoundingClientRect()),s=this.container.getBoundingClientRect(),e=(i.width>s.width&&(this.languageListEu?this.languageListEu.parentNode.classList.add("ecl-site-header__language-content--stack"):this.languageListNonEu&&this.languageListNonEu.parentNode.classList.add("ecl-site-header__language-content--stack"),this.languageListNonEu)&&(this.languageListNonEu.classList.remove("ecl-site-header__language-category--"+t+"-col"),this.languageListNonEu.classList.add("ecl-site-header__language-category--"+Math.max(e,t)+"-col")),this.languageListOverlay.classList.remove("ecl-site-header__language-container--push-right"),this.languageListOverlay.classList.remove("ecl-site-header__language-container--full"),this.languageListOverlay.style.removeProperty("--ecl-language-arrow-position"),this.languageListOverlay.style.removeProperty("right"),i=this.languageListOverlay.getBoundingClientRect(),window.innerWidth);i.right>e&&(t=this.languageLink.getBoundingClientRect(),this.languageListOverlay.classList.add("ecl-site-header__language-container--push-right"),this.languageListOverlay.style.setProperty("right","-"+(s.right-t.right)+"px"),e=s.right-t.right+t.width/2,this.languageListOverlay.style.setProperty("--ecl-language-arrow-position","calc("+e+"px - "+this.arrowSize+")")),0===i.left&&(s=this.languageLink.getBoundingClientRect(),this.languageListOverlay.classList.add("ecl-site-header__language-container--full"),this.languageListOverlay.style.removeProperty("right"),t=i.right-s.right+s.width/2,this.languageListOverlay.style.setProperty("--ecl-language-arrow-position","calc("+t+"px - "+this.arrowSize+")")),this.loginBox&&this.loginBox.classList.contains("ecl-site-header__login-box--active")&&this.setLoginArrow(),this.searchForm&&this.searchForm.classList.contains("ecl-site-header__search--active")&&this.setSearchArrow()}openOverlay(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageLink.setAttribute("aria-expanded","true")}closeOverlay(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageLink.setAttribute("aria-expanded","false")}toggleOverlay(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.updateOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())}handleResize(){this.languageListOverlay&&!this.languageListOverlay.hasAttribute("hidden")&&(this.loginBox&&this.loginBox.classList.contains("ecl-site-header__login-box--active")||this.searchForm&&this.searchForm.classList.contains("ecl-site-header__search--active"))&&(clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.updateOverlay()},200))}handleKeyboardLanguage(e){32!==e.keyCode&&"Enter"!==e.key||this.toggleOverlay(e)}toggleSearch(e){var t;this.searchForm&&(e.preventDefault(),t="true"===this.searchToggle.getAttribute("aria-expanded"),this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded")&&this.toggleLogin(e),this.searchToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.searchForm.classList.remove("ecl-site-header__search--active"):(this.searchForm.classList.add("ecl-site-header__search--active"),this.setSearchArrow()))}setLoginArrow(){var e;0===this.loginBox.getBoundingClientRect().x&&(e=this.loginToggle.getBoundingClientRect(),e=window.innerWidth-e.right+e.width/2,this.loginBox.style.setProperty("--ecl-login-arrow-position","calc("+e+"px - "+this.arrowSize+")"))}setSearchArrow(){var e;0===this.searchForm.getBoundingClientRect().x&&(e=this.searchToggle.getBoundingClientRect(),e=window.innerWidth-e.right+e.width/2,this.searchForm.style.setProperty("--ecl-search-arrow-position","calc("+e+"px - "+this.arrowSize+")"))}toggleLogin(e){var t;this.loginBox&&(e.preventDefault(),t="true"===this.loginToggle.getAttribute("aria-expanded"),this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded")&&this.toggleSearch(e),this.loginToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.loginBox.classList.remove("ecl-site-header__login-box--active"):(this.loginBox.classList.add("ecl-site-header__login-box--active"),this.setLoginArrow()))}handleKeyboardGlobal(e){var t;this.languageLink&&(t=this.languageLink.getAttribute("aria-expanded"),"Escape"!==e.key&&"Esc"!==e.key||"true"===t&&this.toggleOverlay(e))}handleClickGlobal(e){var t,i,s;(this.languageLink||this.searchToggle||this.loginToggle)&&(t=this.languageLink&&this.languageLink.getAttribute("aria-expanded"),i=this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded"),s=this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded"),"true"!==t||this.languageListOverlay.contains(e.target)||this.languageLink.contains(e.target)||this.toggleOverlay(e),!i||this.loginBox.contains(e.target)||this.loginToggle.contains(e.target)||this.toggleLogin(e),!s||this.searchForm.contains(e.target)||this.searchToggle.contains(e.target)||this.toggleSearch(e))}},e.Table=D,e.Tabs=class Be{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).TABS)?{}:t,(t=new Be(e,t)).init(),e.ECLTabs=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).containerSelector)?".ecl-tabs__container":i,s=void 0===(s=t.listSelector)?".ecl-tabs__list":s,n=void 0===(n=t.listItemsSelector)?".ecl-tabs__item:not(.ecl-tabs__item--more)":n,l=void 0===(l=t.moreItemSelector)?".ecl-tabs__item--more":l,a=void 0===(a=t.moreButtonSelector)?".ecl-tabs__toggle":a,o=void 0===(o=t.moreLabelSelector)?".ecl-tabs__toggle .ecl-button__label":o,r=void 0===(r=t.prevSelector)?".ecl-tabs__prev":r,h=void 0===(h=t.nextSelector)?".ecl-tabs__next":h,c=void 0===(c=t.attachClickListener)||c,t=void 0===(t=t.attachResizeListener)||t;if(this.supportedEvents=["onToggle"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new k,this.containerSelector=i,this.listSelector=s,this.listItemsSelector=n,this.moreItemSelector=l,this.moreButtonSelector=a,this.moreLabelSelector=o,this.prevSelector=r,this.nextSelector=h,this.attachClickListener=c,this.attachResizeListener=t,this.container=null,this.list=null,this.listItems=null,this.moreItem=null,this.moreButton=null,this.moreButtonActive=!1,this.moreLabel=null,this.moreLabelValue=null,this.dropdown=null,this.dropdownList=null,this.dropdownItems=null,this.allowShift=!0,this.buttonNextSize=0,this.index=0,this.total=0,this.tabsKey=[],this.firstTab=null,this.lastTab=null,this.direction="ltr",this.isMobile=!1,this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleResize=this.handleResize.bind(this),this.closeMoreDropdown=this.closeMoreDropdown.bind(this),this.shiftTabs=this.shiftTabs.bind(this),this.handleKeyboardOnTabs=this.handleKeyboardOnTabs.bind(this),this.moveFocus=this.moveFocus.bind(this),this.arrowFocusToTab=this.arrowFocusToTab.bind(this),this.tabsKeyEvents=this.tabsKeyEvents.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.container=v(this.containerSelector,this.element),this.list=v(this.listSelector,this.element),this.listItems=a(this.listItemsSelector,this.element),this.moreItem=v(this.moreItemSelector,this.element),this.moreButton=v(this.moreButtonSelector,this.element),this.moreLabel=v(this.moreLabelSelector,this.element),this.moreLabelValue=this.moreLabel.innerText,this.btnPrev=v(this.prevSelector,this.element),this.btnNext=v(this.nextSelector,this.element),this.total=this.listItems.length,this.moreButton&&(this.dropdown=document.createElement("div"),this.dropdown.classList.add("ecl-tabs__dropdown"),this.dropdownList=document.createElement("div"),this.dropdownList.classList.add("ecl-tabs__dropdown-list"),this.listItems.forEach(e=>{this.dropdownList.appendChild(e.cloneNode(!0))}),this.dropdown.appendChild(this.dropdownList),this.moreItem.appendChild(this.dropdown),this.dropdownItems=a(".ecl-tabs__dropdown .ecl-tabs__item",this.element)),this.btnNext&&(this.buttonNextSize=this.btnNext.getBoundingClientRect().width),this.handleResize(),this.attachClickListener&&this.moreButton&&this.moreButton.addEventListener("click",this.handleClickOnToggle),this.attachClickListener&&document&&this.moreButton&&document.addEventListener("click",this.closeMoreDropdown),this.attachClickListener&&this.btnNext&&this.btnNext.addEventListener("click",this.shiftTabs.bind(this,"next",!0)),this.attachClickListener&&this.btnPrev&&this.btnPrev.addEventListener("click",this.shiftTabs.bind(this,"prev",!0)),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.dropdown&&this.dropdown.remove(),this.moreButton&&(this.moreLabel.textContent=this.moreLabelValue,this.moreButton.replaceWith(this.moreButton.cloneNode(!0))),this.btnNext&&this.btnNext.replaceWith(this.btnNext.cloneNode(!0)),this.btnPrev&&this.btnPrev.replaceWith(this.btnPrev.cloneNode(!0)),this.attachClickListener&&document&&this.moreButton&&document.removeEventListener("click",this.closeMoreDropdown),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.tabsKey&&this.tabsKey.forEach(e=>{e.addEventListener("keydown",this.handleKeyboardOnTabs)}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}shiftTabs(e){this.index="next"===e?this.index+1:this.index-1,1<=this.index?(this.btnPrev.style.display="block",this.container.classList.add("ecl-tabs__container--left")):(this.btnPrev.style.display="none",this.container.classList.remove("ecl-tabs__container--left")),this.index>=this.total-1?(this.btnNext.style.display="none",this.container.classList.remove("ecl-tabs__container--right")):(this.btnNext.style.display="block",this.container.classList.add("ecl-tabs__container--right"));var e=0,t=(this.direction=getComputedStyle(this.element).direction,e="rtl"===this.direction?Math.ceil(this.list.offsetWidth-this.listItems[this.index].offsetLeft-this.listItems[this.index].offsetWidth):Math.ceil(this.listItems[this.index].offsetLeft),Math.ceil(this.list.getBoundingClientRect().width-this.element.getBoundingClientRect().width));t<e&&(this.btnNext.style.display="none",this.container.classList.remove("ecl-tabs__container--right"),e=t),this.list.style.transitionDuration="0.4s","rtl"===this.direction?this.list.style.transform="translate3d("+e+"px, 0px, 0px)":this.list.style.transform="translate3d(-"+e+"px, 0px, 0px)"}handleClickOnToggle(e){this.dropdown.classList.toggle("ecl-tabs__dropdown--show"),this.moreButton.setAttribute("aria-expanded",this.dropdown.classList.contains("ecl-tabs__dropdown--show")),this.trigger("onToggle",e)}set onToggle(e){this.onToggleCallback=e}get onToggle(){return this.onToggleCallback}handleResize(){var t,i,s,n;"none"===window.getComputedStyle(this.moreButton).display&&this.closeMoreDropdown(this),this.list.style.transform="translate3d(0px, 0px, 0px)",Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<=480?(this.isMobile=!0,this.index=1,this.list.style.transitionDuration="0.4s",this.shiftTabs(this.index),this.moreItem&&this.moreItem.classList.add("ecl-tabs__item--hidden"),this.moreButton&&this.moreButton.classList.add("ecl-tabs__toggle--hidden"),t=0,this.listItems.forEach(e=>{e.classList.remove("ecl-tabs__item--hidden"),t+=Math.ceil(e.getBoundingClientRect().width)}),this.list.style.width=t+"px",this.btnNext.style.display="block",this.container.classList.add("ecl-tabs__container--right"),this.btnPrev.style.display="none",this.container.classList.remove("ecl-tabs__container--left")):(this.isMobile=!1,this.btnNext.style.display="none",this.container.classList.remove("ecl-tabs__container--right"),this.btnPrev.style.display="none",this.container.classList.remove("ecl-tabs__container--left"),this.list.style.width="auto",i=this.moreButton.getBoundingClientRect().width+25,s=[],n=this.list.getBoundingClientRect().width,this.moreButtonActive=!1,this.listItems.forEach((e,t)=>{e.classList.remove("ecl-tabs__item--hidden"),n>=i+e.getBoundingClientRect().width&&!s.includes(t-1)?i+=e.getBoundingClientRect().width:(e.classList.add("ecl-tabs__item--hidden"),e.childNodes[0].classList.contains("ecl-tabs__link--active")&&(this.moreButtonActive=!0),s.push(t))}),this.moreButtonActive?this.moreButton.classList.add("ecl-tabs__toggle--active"):this.moreButton.classList.remove("ecl-tabs__toggle--active"),s.length?(this.moreItem.classList.remove("ecl-tabs__item--hidden"),this.moreButton.classList.remove("ecl-tabs__toggle--hidden"),this.moreLabel.textContent=this.moreLabelValue.replace("%d",s.length),this.dropdownItems.forEach((e,t)=>{s.includes(t)?e.classList.remove("ecl-tabs__item--hidden"):e.classList.add("ecl-tabs__item--hidden")})):(this.moreItem.classList.add("ecl-tabs__item--hidden"),this.moreButton.classList.add("ecl-tabs__toggle--hidden"))),this.tabsKeyEvents()}tabsKeyEvents(){this.tabsKey=[],this.listItems.forEach((e,t,i)=>{var s,n=null;(n=e.classList.contains("ecl-tabs__item--hidden")?(s=this.dropdownItems[t],v(".ecl-tabs__link",s)):v(".ecl-tabs__link",e)).addEventListener("keydown",this.handleKeyboardOnTabs),this.tabsKey.push(n),0===t&&(this.firstTab=n),t===i.length-1&&(this.lastTab=n)})}closeMoreDropdown(e){for(var t=e.target;t;){if(t===this.moreButton)return;t=t.parentNode}this.moreButton.setAttribute("aria-expanded",!1),this.dropdown.classList.remove("ecl-tabs__dropdown--show")}handleKeyboardOnTabs(e){var t=e.currentTarget;switch(e.key){case"ArrowLeft":case"ArrowUp":this.arrowFocusToTab(t,"prev");break;case"ArrowRight":case"ArrowDown":this.arrowFocusToTab(t,"next");break;case"Home":this.moveFocus(this.firstTab);break;case"End":this.moveFocus(this.lastTab)}}moveFocus(e){e.closest(".ecl-tabs__dropdown")?(this.moreButton.setAttribute("aria-expanded",!0),this.dropdown.classList.add("ecl-tabs__dropdown--show")):(this.moreButton.setAttribute("aria-expanded",!1),this.dropdown.classList.remove("ecl-tabs__dropdown--show")),e.focus()}arrowFocusToTab(e,t){var i=this.tabsKey.indexOf(e),i="next"===t?i+1:i-1,s="next"===t?this.firstTab:this.lastTab,n="next"===t?this.lastTab:this.firstTab;this.isMobile?e!==n&&(this.moveFocus(this.tabsKey[i]),this.shiftTabs(t)):e===n?this.moveFocus(s):this.moveFocus(this.tabsKey[i])}},e.Timeline=class ze{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).TIMELINE)?{}:t,(t=new ze(e,t)).init(),e.ECLTimeline=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).buttonSelector)?"[data-ecl-timeline-button]":i,s=void 0===(s=t.labelSelector)?"[data-ecl-label]":s,n=void 0===(n=t.labelExpanded)?"data-ecl-label-expanded":n,l=void 0===(l=t.labelCollapsed)?"data-ecl-label-collapsed":l,t=void 0===(t=t.attachClickListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.buttonSelector=i,this.labelSelector=s,this.labelExpanded=n,this.labelCollapsed=l,this.attachClickListener=t,this.button=null,this.label=null,this.handleClickOnButton=this.handleClickOnButton.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.button=v(this.buttonSelector,this.element),this.label=v(this.labelSelector,this.element),this.attachClickListener&&this.button&&this.button.addEventListener("click",this.handleClickOnButton),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.button&&this.button.removeEventListener("click",this.handleClickOnButton),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnButton(){var e="true"===this.button.getAttribute("aria-expanded");return this.button.setAttribute("aria-expanded",e?"false":"true"),e?(this.element.removeAttribute("data-ecl-timeline-expanded"),this.button.blur(),this.button.focus()):this.element.setAttribute("data-ecl-timeline-expanded","true"),this.label&&!e&&this.button.hasAttribute(this.labelExpanded)?this.label.innerHTML=this.button.getAttribute(this.labelExpanded):this.label&&e&&this.button.hasAttribute(this.labelCollapsed)&&(this.label.innerHTML=this.button.getAttribute(this.labelCollapsed)),this}},e.autoInit=function(e){var t,i,e=void 0===e?{}:e,s=e.root,s=void 0===s?document:s,n=function(e,t){if(null==e)return{};for(var i,s={},n=Object.keys(e),l=0;l<n.length;l++)i=n[l],0<=t.indexOf(i)||(s[i]=e[i]);return s}(e,F);if(ECL)return t=a("[data-ecl-auto-init]",s),(i=()=>{t.filter(e=>"true"!==e.getAttribute("data-ecl-auto-initialized")).forEach(e=>{var t=e.getAttribute("data-ecl-auto-init");if(!t)throw new TypeError("(ecl-auto-init) "+t+" data-ecl-auto-init is empty");var i=ECL[t];if("function"!=typeof i)throw new TypeError("(ecl-auto-init) Could not find '"+t+"'");if("function"!=typeof i.autoInit)throw new TypeError("(ecl-auto-init) Could not find autoInit for '"+t+"'");i.autoInit(e,n)})})(),{update:()=>i(),destroy:()=>{ECL.components&&ECL.components.forEach((e,t)=>{e.destroy&&(e.destroy(),ECL.components.delete(t))})}};throw new TypeError("Called autoInit but ECL is not present")},e}({});
|