System.register(["./index-legacy.js","./j-autocontrast-index-legacy.js","./inline-styles-legacy.js"],(function(e,t){"use strict";var n,s,r;return{setters:[e=>{n=e.g},e=>{s=e.default},e=>{r=e.s}],execute:function(){var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function c(e,t){try{return t in e}catch(n){return!1}}function l(e,t,n){var s={};return n.isMergeableObject(e)&&o(e).forEach((function(t){s[t]=a(e[t],n)})),o(t).forEach((function(r){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(c(e,r)&&n.isMergeableObject(t[r])?s[r]=function(e,t){if(!t.customMerge)return d;var n=t.customMerge(e);return"function"==typeof n?n:d}(r,n)(e[r],t[r],n):s[r]=a(t[r],n))})),s}function d(t,n,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||e,s.cloneUnlessOtherwiseSpecified=a;var r=Array.isArray(n);return r===Array.isArray(t)?r?s.arrayMerge(t,n,s):l(t,n,s):a(n,s)}d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return d(e,n,t)}),{})};const u=n(d);function p(e=""){window.topnavInjectedCss||(window.topnavInjectedCss=document.createElement("style"),window.topnavInjectedCss.type="text/css",window.topnavInjectedCssExists=!1),window.topnavInjectedCss.styleSheet?window.topnavInjectedCss.styleSheet.cssText+=e:window.topnavInjectedCss.appendChild(document.createTextNode(e)),window.topnavInjectedCssExists||(document.head.appendChild(window.topnavInjectedCss),window.topnavInjectedCssExists=!0)}function m(e){let t=100;const n=e.className;return n?(n.split(" ").forEach((e=>{const n=/^priority_(\d+)$/gi.exec(e);n&&(t=Number(n[1]))})),t):t}function f(e,t,n){return`@media screen and (${e}-width:${t/16}em){${n}}`}function h(e,t,n,s=""){return e.map((([e,r])=>e===s?"":`${n} ${e}{min-width:${(r/t*100).toFixed(5)}%}`)).join("")}function y(){return Date.parse((new Date).toString())}const w=window.responsiveTopnav=function(){const e={id:"tnav",wrapper:"#tnav-wrap",search:"#tnav .ui-search","static-width":!0,mobile:{enable:!0,breakpoint:550,elements:3,label:"More"}};let t,n,a,i,o,c,l,d,w,b,v,g;const $={};let j,C,L,E,S,x,M,O,I;const A="-hidden";let T=0;const q=[];let N,W=[],k=!1;return t=(t={})=>{const a=u(e,t);if(({id:C,wrapper:L,"static-width":E,search:I,mobile:{enable:S,breakpoint:x,elements:M,label:O}}=a),M<=0&&(M=1),v=document.getElementById(C),j=document.querySelector(I),v){const{overflowMenuLabel:e}=v.dataset;if(new s(v),e&&(O=e),g=v.querySelector(L),j){const e=j.querySelector(".searchBtn");v.classList.add("-search-enabled"),e.addEventListener("click",b)}n(),l(),v.classList.add("-activate"),g.classList.add("-even-items"),d(),o(),c();const t=document.createElement("style");t.innerHTML=r,document.head.appendChild(t)}},n=()=>{const e=document.createElement("li");let t=`${L} .nav-el{display:none}`;t+=`${L} .morebtn.top-el{display:table-cell}`,p(t),e.className="morebtn top-el -eln0",e.innerHTML=`${O}`,g.appendChild(e),i()},a=()=>{let e="",t=0;const n=[],s=parseInt(getComputedStyle(g.parentNode).getPropertyValue("max-width"),10);for(let a=0;as){const e=parseInt(""+(t-s)/n.length,10);n.forEach(((t,s)=>{n[s]=t-e}))}for(let a=0;a ${i.innerHTML} ${t}${c.outerHTML}`}else e+=`
  • ${i.innerHTML}
  • `}return W=q.reduce(((e,t)=>[...e,...t]),[]),e},i=()=>{if(!v)return;const e=v.querySelector(".morebtn"),t=v.querySelector(".morebtn > a");$.item=e,$.itemClass=".morebtn.top-el",$.priority=0,$.width=t.offsetWidth,$.innerWidth=t.clientWidth,e.dataset.width=String($.width),E&&e.classList.add("-static"),q[0]=[$],W.unshift($)},o=()=>{if(!S)return;const e=e=>{e.matches?g.classList.add("mobile-menu"):g.classList.remove("mobile-menu")},t=window.matchMedia(`screen and (max-width: ${(x-1)/16}em)`);t.addEventListener("change",e),e({matches:t.matches})},c=()=>{const e=document.querySelector(".morebtn");e.addEventListener("click",(t=>{const n=t.target;if(n.matches(".arrow, .arrow svg, .arrow svg path")){var s;const t=Array.from(e.querySelectorAll(".-expanded"));null===(s=n.closest("li"))||void 0===s||s.classList.toggle("-expanded"),t.forEach((e=>e.classList.remove("-expanded")))}}))},l=()=>{let e="";if(E&&W.forEach((({itemClass:t,innerWidth:n})=>{e+=`${L} ${t}>a{min-width:${n}px}`})),M>1){const t=[],n=[];W.slice(1,M).forEach((e=>{t.push(`${L} ${e.itemClass}`),n.push(`${L} ${e.subClass}`)})),e+=`${t.join(",")}{display:table-cell}${n.join(",")}{display:none}`}let t=0,n=0;const s=[`${L} ${$.itemClass}{display:none}`],r=[];W.forEach(((a,i)=>{t+=a.width,n=t+25;const o=M<=i;r.push([a.itemClass,a.width]);const c=h(r,n,L);if(S||M-1!==i||(e+=c),o){let t=function(e,t,n){return`${n} ${e}{display:table-cell}${n} ${t}{display:none}`}(a.itemClass,a.subClass,L);if(nT+25)return void s.push(t);e+=f("min",n,t)}})),s.push(h(r,T,L,$.itemClass)),e+=f("min",T+25,s.join("")),S&&(e+=f("max",x-1,`${L} .top-el.-static>a{min-width:unset}`)),p(e)},d=()=>{window.addEventListener("resize",(()=>{N=y(),g.classList.add(A),!1===k&&(k=!0,setTimeout(w,200))}),!1)},w=()=>{y()-N<200?setTimeout(w,200):(k=!1,g.classList.remove(A))},b=()=>{var e,t;null===(e=j)||void 0===e||e.classList.toggle("-active"),null===(t=j)||void 0===t||null===(t=t.querySelector("input"))||void 0===t||t.focus()},{init(e){t(e)}}}();document.addEventListener("DOMContentLoaded",(function(){w.init("undefined"==typeof topnavConfig?{}:topnavConfig)}))}}}));