import{g as k}from"./index.js?v=undefined";import ee from"./j-autocontrast-index.js?v=undefined";import{s as te}from"./inline-styles.js?v=undefined";function Se(){import("data:text/javascript,")}var ne=function(t){return re(t)&&!se(t)};function re(e){return!!e&&typeof e=="object"}function se(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||oe(e)}var ie=typeof Symbol=="function"&&Symbol.for,ae=ie?Symbol.for("react.element"):60103;function oe(e){return e.$$typeof===ae}function le(e){return Array.isArray(e)?[]:{}}function I(e,t){return t.clone!==!1&&t.isMergeableObject(e)?j(le(e),e,t):e}function ce(e,t,n){return e.concat(t).map(function(l){return I(l,n)})}function de(e,t){if(!t.customMerge)return j;var n=t.customMerge(e);return typeof n=="function"?n:j}function ue(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function K(e){return Object.keys(e).concat(ue(e))}function X(e,t){try{return t in e}catch(n){return!1}}function fe(e,t){return X(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function me(e,t,n){var l={};return n.isMergeableObject(e)&&K(e).forEach(function(i){l[i]=I(e[i],n)}),K(t).forEach(function(i){fe(e,i)||(X(e,i)&&n.isMergeableObject(t[i])?l[i]=de(i,n)(e[i],t[i],n):l[i]=I(t[i],n))}),l}function j(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ce,n.isMergeableObject=n.isMergeableObject||ne,n.cloneUnlessOtherwiseSpecified=I;var l=Array.isArray(t),i=Array.isArray(e),$=l===i;return $?l?n.arrayMerge(e,t,n):me(e,t,n):I(t,n)}j.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(l,i){return j(l,i,n)},{})};var pe=j,he=pe;const be=k(he);function Q(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 we(e){let t=100;const n=e.className;return n&&n.split(" ").forEach(l=>{const i=/^priority_(\d+)$/gi.exec(l);i&&(t=Number(i[1]))}),t}function A(e,t,n){return"@media screen and (".concat(e,"-width:").concat(t/16,"em){").concat(n,"}")}function ye(e,t,n){return"".concat(n," ").concat(e,"{display:table-cell}").concat(n," ").concat(t,"{display:none}")}function Y(e,t,n,l=""){return e.map(([i,$])=>i===l?"":"".concat(n," ").concat(i,"{min-width:").concat(($/t*100).toFixed(5),"%}")).join("")}function G(){return Date.parse(new Date().toString())}function ge(){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,l,i,$,q,N,_,T,B,u,f;const b={};let w,z,m,O,S,M,y,P,H;const R="-hidden";let L=0;const E=[];let C=[],U,W=!1;const D=200;return t=(r={})=>{if({id:z,wrapper:m,"static-width":O,search:H,mobile:{enable:S,breakpoint:M,elements:y,label:P}}=be(e,r),y<=0&&(y=1),u=document.getElementById(z),w=document.querySelector(H),u){const{overflowMenuLabel:o}=u.dataset;if(new ee(u),o&&(P=o),f=u.querySelector(m),w){const a=w.querySelector(".searchBtn");u.classList.add("-search-enabled"),a.addEventListener("click",B)}n(),N(),u.classList.add("-activate"),f.classList.add("-even-items"),_(),$(),q();const p=document.createElement("style");p.innerHTML=te,document.head.appendChild(p)}},n=()=>{const r=document.createElement("li");let c="".concat(m," .nav-el{display:none}");c+="".concat(m," .morebtn.top-el{display:table-cell}"),Q(c),r.className="morebtn top-el -eln0",r.innerHTML=''.concat(P,"