scb-wc 0.1.147 → 0.1.149

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.
Files changed (171) hide show
  1. package/README.md +22 -41
  2. package/all.js +5 -0
  3. package/fonts/material-symbols-outlined/files/material-symbols-outlined-subset.woff2 +0 -0
  4. package/icons.json +1 -3
  5. package/index.js +95 -90
  6. package/mvc/components/all.js +5 -0
  7. package/mvc/components/scb-accordion/scb-accordion-item.js +9 -9
  8. package/mvc/components/scb-app-bar/scb-app-bar.js +6 -6
  9. package/mvc/components/scb-avatar/scb-avatar.js +2 -2
  10. package/mvc/components/scb-badge/scb-badge.js +3 -3
  11. package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +3 -3
  12. package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +12 -12
  13. package/mvc/components/scb-button/scb-button.js +3 -5
  14. package/mvc/components/scb-calendar/scb-calendar.js +8 -8
  15. package/mvc/components/scb-calendar-card/scb-calendar-card.js +9 -9
  16. package/mvc/components/scb-card/scb-card.js +39 -39
  17. package/mvc/components/scb-checkbox/scb-checkbox-group.js +5 -5
  18. package/mvc/components/scb-checkbox/scb-checkbox.js +8 -8
  19. package/mvc/{vendor → components/scb-chevron}/scb-chevron.js +1 -1
  20. package/mvc/components/scb-chip/scb-chip.js +7 -7
  21. package/mvc/components/scb-collapse/scb-collapse.js +10 -10
  22. package/mvc/components/scb-datepicker/scb-datepicker.js +132 -0
  23. package/mvc/components/scb-dialog/scb-dialog.js +2 -2
  24. package/mvc/components/scb-drop-zone/scb-drop-zone.js +2 -2
  25. package/mvc/components/scb-dropdown/scb-dropdown.js +46 -31
  26. package/mvc/components/scb-fab/scb-fab.js +6 -6
  27. package/mvc/components/scb-fact-card/scb-fact-card-content.js +3 -3
  28. package/mvc/components/scb-fact-card/scb-fact-card.js +2 -2
  29. package/mvc/components/scb-footer/scb-footer.js +8 -8
  30. package/mvc/components/scb-form-error-summary/scb-form-error-summary.js +3 -3
  31. package/mvc/components/scb-header/scb-header.js +59 -99
  32. package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +7 -7
  33. package/mvc/components/scb-icon/scb-icon.js +2 -2
  34. package/mvc/components/scb-icon-button/scb-icon-button.js +6 -6
  35. package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +4 -4
  36. package/mvc/components/scb-link/scb-link.js +4 -4
  37. package/mvc/components/scb-list/scb-list-item.js +6 -6
  38. package/mvc/components/scb-list/scb-list.js +2 -2
  39. package/mvc/components/scb-menu/scb-menu-item.js +2 -2
  40. package/mvc/components/scb-menu/scb-menu-section.js +3 -5
  41. package/mvc/components/scb-menu/scb-menu.js +4 -8
  42. package/mvc/components/scb-nav/scb-nav.js +2 -2
  43. package/mvc/components/scb-notification-card/scb-notification-card.js +12 -12
  44. package/mvc/components/scb-options-menu/scb-options-menu-item.js +2 -2
  45. package/mvc/components/scb-options-menu/scb-options-menu.js +3 -2
  46. package/mvc/components/scb-pagination/scb-pagination.js +7 -7
  47. package/mvc/components/scb-progress-stepper/scb-progress-step.js +2 -2
  48. package/mvc/components/scb-radio-button/scb-radio-button.js +7 -7
  49. package/mvc/components/scb-radio-button/scb-radio-group.js +4 -4
  50. package/mvc/components/scb-search/scb-search.js +3 -3
  51. package/mvc/components/scb-segmented-button/scb-segmented-button.js +1 -1
  52. package/mvc/components/scb-segmented-button/scb-segmented-item.js +2 -2
  53. package/mvc/components/scb-select/scb-select-option.js +2 -2
  54. package/mvc/components/scb-select/scb-select.js +14 -14
  55. package/mvc/components/scb-slider/scb-slider.js +11 -11
  56. package/mvc/components/scb-snackbar/scb-snackbar.js +7 -7
  57. package/mvc/components/scb-status-pill/scb-status-pill.js +2 -2
  58. package/mvc/components/scb-stepper/scb-step.js +2 -8
  59. package/mvc/components/scb-stepper/scb-stepper.js +2 -24
  60. package/mvc/components/scb-switch/scb-switch.js +4 -4
  61. package/mvc/components/scb-table/scb-table.js +2 -2
  62. package/mvc/components/scb-table-advanced/scb-table-advanced.js +6 -6
  63. package/mvc/components/scb-textfield/scb-textfield.js +35 -166
  64. package/mvc/components/scb-toc/scb-toc-item.js +9 -9
  65. package/mvc/components/scb-tooltip/scb-tooltip.js +5 -5
  66. package/mvc/components/scb-viz/scb-viz.js +66 -100
  67. package/mvc/components/shared/lazy-focus-ring.js +2 -0
  68. package/mvc/components/shared/lazy-ripple.js +2 -0
  69. package/mvc/components/shared/scb-icon-svg.js +11 -0
  70. package/mvc/fonts/material-symbols-outlined/files/material-symbols-outlined-subset.woff2 +0 -0
  71. package/mvc/scb-logo.svg +20 -20
  72. package/mvc/scb-typography.css +1 -1
  73. package/mvc/scb-wc-core.css +1 -1
  74. package/mvc/scb-wc-selfhost.css +1 -1
  75. package/mvc/scb-wc.css +1 -1
  76. package/mvc/scb.svg +13 -13
  77. package/mvc/vendor/scb-card-variants.internal.js +36 -26
  78. package/package.json +2 -2
  79. package/scb-accordion/scb-accordion-item.js +26 -29
  80. package/scb-app-bar/scb-app-bar.js +11 -11
  81. package/scb-avatar/scb-avatar.js +4 -4
  82. package/scb-badge/scb-badge.js +1 -1
  83. package/scb-breadcrumb/scb-breadcrumb-item.js +20 -1
  84. package/scb-breadcrumb/scb-breadcrumb.js +24 -3
  85. package/scb-button/scb-button.js +13 -20
  86. package/scb-calendar/scb-calendar.js +5 -5
  87. package/scb-calendar-card/scb-calendar-card.js +44 -35
  88. package/scb-card/scb-card-variants.internal.js +1 -1
  89. package/scb-card/scb-card.js +219 -171
  90. package/scb-checkbox/scb-checkbox-group.js +24 -25
  91. package/scb-checkbox/scb-checkbox.js +23 -22
  92. package/scb-chevron/scb-chevron.js +1 -0
  93. package/scb-chip/scb-chip.js +56 -26
  94. package/scb-collapse/scb-collapse.js +10 -10
  95. package/scb-components/index.d.ts +104 -0
  96. package/scb-components/scb-card/scb-card.d.ts +1 -0
  97. package/scb-components/scb-chevron/scb-chevron.d.ts +11 -0
  98. package/scb-components/scb-datepicker/scb-datepicker.d.ts +45 -0
  99. package/scb-components/scb-dropdown/scb-dropdown.d.ts +1 -1
  100. package/scb-components/scb-icon-button/scb-icon-button.d.ts +1 -1
  101. package/scb-components/scb-list/scb-list-item.d.ts +1 -0
  102. package/scb-components/scb-list/scb-list.d.ts +1 -0
  103. package/scb-components/scb-segmented-button/scb-segmented-button.d.ts +4 -0
  104. package/scb-components/scb-select/scb-select.d.ts +1 -0
  105. package/scb-components/scb-textfield/scb-textfield.d.ts +1 -1
  106. package/scb-components/scb-viz/scb-viz.d.ts +3 -1
  107. package/scb-components/shared/lazy-focus-ring.d.ts +4 -0
  108. package/scb-components/shared/lazy-ripple.d.ts +9 -0
  109. package/scb-components/shared/scb-icon-svg.d.ts +3 -0
  110. package/scb-datepicker/scb-datepicker.js +1 -0
  111. package/scb-dialog/scb-dialog.js +4 -4
  112. package/scb-drop-zone/scb-drop-zone.js +23 -23
  113. package/scb-dropdown/scb-dropdown.js +44 -40
  114. package/scb-fab/scb-fab.js +12 -3
  115. package/scb-fact-card/scb-fact-card-content.js +36 -27
  116. package/scb-fact-card/scb-fact-card.js +9 -33
  117. package/scb-footer/scb-footer.js +9 -9
  118. package/scb-form-error-summary/scb-form-error-summary.js +7 -7
  119. package/scb-header/scb-header.js +90 -117
  120. package/scb-horizontal-scroller/scb-horizontal-scroller.js +4 -4
  121. package/scb-icon/scb-icon.js +1 -1
  122. package/scb-icon-button/scb-icon-button.js +8 -8
  123. package/scb-keyfigure-card/scb-keyfigure-card.js +21 -37
  124. package/scb-link/scb-link.js +1 -0
  125. package/scb-list/scb-list-item.js +30 -10
  126. package/scb-list/scb-list.js +5 -2
  127. package/scb-menu/scb-menu-item.js +2 -2
  128. package/scb-menu/scb-menu-section.js +4 -9
  129. package/scb-menu/scb-menu.js +8 -22
  130. package/scb-nav/scb-nav.js +3 -3
  131. package/scb-notification-card/scb-notification-card.js +9 -41
  132. package/scb-options-menu/scb-options-menu-item.js +4 -3
  133. package/scb-options-menu/scb-options-menu.js +32 -26
  134. package/scb-pagination/scb-pagination.js +2 -2
  135. package/scb-progress-stepper/scb-progress-step.js +3 -3
  136. package/scb-radio-button/scb-radio-button.js +33 -32
  137. package/scb-radio-button/scb-radio-group.js +24 -25
  138. package/scb-search/scb-search.js +35 -39
  139. package/scb-segmented-button/scb-segmented-button.js +14 -16
  140. package/scb-segmented-button/scb-segmented-item.js +53 -29
  141. package/scb-select/scb-select-option.js +6 -6
  142. package/scb-select/scb-select.js +93 -86
  143. package/scb-slider/scb-slider.js +18 -4
  144. package/scb-snackbar/scb-snackbar.js +9 -7
  145. package/scb-status-pill/scb-status-pill.js +4 -4
  146. package/scb-stepper/scb-step.js +19 -22
  147. package/scb-stepper/scb-stepper.js +14 -36
  148. package/scb-switch/scb-switch.js +17 -10
  149. package/scb-table/scb-table.js +14 -4
  150. package/scb-table-advanced/scb-table-advanced.js +14 -4
  151. package/scb-textfield/scb-textfield.js +58 -78
  152. package/scb-toc/scb-toc-item.js +9 -36
  153. package/scb-tooltip/scb-tooltip.js +6 -6
  154. package/scb-typography.css +1 -1
  155. package/scb-viz/scb-viz.js +87 -200
  156. package/scb-wc-core.css +1 -1
  157. package/scb-wc-selfhost.css +1 -1
  158. package/scb-wc.bundle.js +2052 -2160
  159. package/scb-wc.css +1 -1
  160. package/scb-wc.d.ts +208 -198
  161. package/shared/scb-icon-svg.js +5 -2
  162. package/starters/blazor/Components/Pages/Home.razor +1 -1
  163. package/starters/blazor-service/Components/Pages/Home.razor +1 -1
  164. package/starters/html/main.js +1 -1
  165. package/starters/html-service/main.js +1 -1
  166. package/starters/react/src/App.jsx +1 -1
  167. package/starters/react-service/src/App.jsx +1 -1
  168. package/mvc/vendor/lazy-focus-ring.js +0 -2
  169. package/mvc/vendor/lazy-ripple.js +0 -2
  170. package/mvc/vendor/scb-icon-svg.js +0 -11
  171. package/scb-wc-public-entry/index.d.ts +0 -99
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/lazy-focus-ring.js","../../vendor/rolldown-runtime.js","../../vendor/preload-helper.js","../scb-drawer/scb-drawer.js","../../vendor/decorate.js","../../vendor/vendor.js","../../vendor/vendor-lit.js","../scb-divider/scb-divider.js","../../vendor/assertClassBrand.js","../scb-menu/scb-menu.js","../scb-menu/scb-menu-item.js","../../vendor/scb-chevron.js","../scb-menu/scb-menu-section.js","../scb-menu/scb-sub-menu.js","../scb-search/scb-search.js","../../vendor/icon.js","../../vendor/ripple.js","../../vendor/attachable-controller.js","../../vendor/scb-header-drawer.internal.js","../scb-button/scb-button.js","../scb-icon-button/scb-icon-button.js","../scb-skeleton/scb-skeleton.js","../scb-grid/scb-grid.js","../scb-grid/scb-grid-item.js","../scb-grid/scb-stack.js","../scb-dropdown/scb-dropdown.js","../scb-options-menu/scb-options-menu.js","../scb-options-menu/scb-options-menu-item.js","../scb-options-menu/scb-options-sub-menu.js"])))=>i.map(i=>d[i]);
2
- import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as k}from"../../vendor/preload-helper.js";import{t as l}from"../../vendor/decorate.js";(function(){try{var b=typeof globalThis<"u"?globalThis:window;if(!b.__scb_ce_guard_installed__){b.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(t,r,s){try{customElements.get(t)||e(t,r,s)}catch(o){var i=String(o||"");if(i.indexOf("already been used")===-1&&i.indexOf("NotSupportedError")===-1)throw o}}}}catch{}})();var T,E,B=0,I=[0,2,4,8,12,16,20,24,32,40,48,64,80,96,120],H=()=>{if(typeof window>"u"||typeof document>"u"||!("customElements"in window)||document.head.querySelector("style[data-scb-header-pre-upgrade]"))return;const b=document.createElement("style");b.setAttribute("data-scb-header-pre-upgrade",""),b.textContent=`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../shared/lazy-focus-ring.js","../../vendor/preload-helper.js","../scb-drawer/scb-drawer.js","../../vendor/decorate.js","../../vendor/vendor.js","../../vendor/vendor-lit.js","../scb-divider/scb-divider.js","../../vendor/assertClassBrand.js","../scb-menu/scb-menu.js","../scb-menu/scb-menu-item.js","../scb-chevron/scb-chevron.js","../scb-menu/scb-menu-section.js","../scb-menu/scb-sub-menu.js","../scb-search/scb-search.js","../../vendor/icon.js","../../vendor/rolldown-runtime.js","../../vendor/ripple.js","../../vendor/attachable-controller.js","../../vendor/scb-header-drawer.internal.js","../scb-button/scb-button.js","../scb-icon-button/scb-icon-button.js","../scb-skeleton/scb-skeleton.js","../scb-grid/scb-grid.js","../scb-grid/scb-grid-item.js","../scb-grid/scb-stack.js","../scb-dropdown/scb-dropdown.js","../scb-options-menu/scb-options-menu.js","../scb-options-menu/scb-options-menu-item.js","../scb-options-menu/scb-options-sub-menu.js"])))=>i.map(i=>d[i]);
2
+ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as S}from"../../vendor/preload-helper.js";import{t as l}from"../../vendor/decorate.js";(function(){try{var b=typeof globalThis<"u"?globalThis:window;if(!b.__scb_ce_guard_installed__){b.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(t,r,i){try{customElements.get(t)||e(t,r,i)}catch(o){var s=String(o||"");if(s.indexOf("already been used")===-1&&s.indexOf("NotSupportedError")===-1)throw o}}}}catch{}})();var z,E,B=0,I=[0,2,4,8,12,16,20,24,32,40,48,64,80,96,120],H=()=>{if(typeof window>"u"||typeof document>"u"||!("customElements"in window)||document.head.querySelector("style[data-scb-header-pre-upgrade]"))return;const b=document.createElement("style");b.setAttribute("data-scb-header-pre-upgrade",""),b.textContent=`
3
3
  scb-header:not(:defined),
4
4
  scb-header[data-upgrading] {
5
5
  display: block;
@@ -18,7 +18,7 @@ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor
18
18
  (var(--spacing-5, 16px) * 2) +
19
19
  max(
20
20
  calc(var(--scb-header-pre-logo-h) + var(--spacing-2, 4px)),
21
- var(--scb-header-pre-control-size, 48px)
21
+ var(--scb-header-pre-control-size, var(--scb-control-size-large, 56px))
22
22
  )
23
23
  );
24
24
  --scb-header-pre-divider: var(--stroke-border, 1px);
@@ -52,15 +52,15 @@ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor
52
52
  );
53
53
  }
54
54
  }
55
- `,document.head.appendChild(b);const e=n=>{const p=String(n??"").trim();if(p){if(/^\d+$/.test(p)){const h=Math.max(0,Math.min(14,parseInt(p,10)));return`var(--spacing-${h}, ${I[h]}px)`}return p}},t=n=>{const p=String(n??"").trim();if(!p)return!1;try{const h=JSON.parse(p);return Array.isArray(h)&&h.length>0}catch{return!1}},r=n=>n!=null&&!/^(false|0|off|no)$/i.test(n.trim()),s=n=>{for(const p of Array.from(n.children)){const h=p.tagName.toLowerCase();if(h==="scb-header-tab"||h==="scb-dropdown")return!0}return!1},i=n=>{s(n)||t(n.getAttribute("tabs"))||r(n.getAttribute("reserve-tabs"))||r(n.getAttribute("layout-pending"))?n.setAttribute("data-pre-has-tabs",""):n.removeAttribute("data-pre-has-tabs");const p=e(n.getAttribute("spacing")),h=e(n.getAttribute("spacing-top"))??p,f=e(n.getAttribute("spacing-bottom"))??p,y=e(n.getAttribute("padding-inline")),_=e(n.getAttribute("padding-inline-expanded"))??y;h?n.style.setProperty("--scb-header-spacing-block-start",h):n.style.removeProperty("--scb-header-spacing-block-start"),f?n.style.setProperty("--scb-header-spacing-block-end",f):n.style.removeProperty("--scb-header-spacing-block-end"),y?n.style.setProperty("--scb-header-padding-inline",y):n.style.removeProperty("--scb-header-padding-inline"),_?n.style.setProperty("--scb-header-padding-inline-expanded",_):n.style.removeProperty("--scb-header-padding-inline-expanded");const c=(n.getAttribute("logo-width")??"").trim();c?n.style.setProperty("--scb-header-pre-logo-w",c):n.style.removeProperty("--scb-header-pre-logo-w");const x=(n.getAttribute("logo-height")??"").trim();x?n.style.setProperty("--scb-header-pre-logo-img-h",x):n.style.removeProperty("--scb-header-pre-logo-img-h");const g=(n.getAttribute("search-height")??"").trim();g?n.style.setProperty("--scb-header-pre-control-size",g):n.style.removeProperty("--scb-header-pre-control-size")};document.querySelectorAll("scb-header").forEach(i);const u=new MutationObserver(n=>{for(const p of n){if(p.type==="attributes"){const h=p.target;h instanceof HTMLElement&&h.tagName.toLowerCase()==="scb-header"&&i(h);continue}if(p.type==="childList"){const h=[...Array.from(p.addedNodes),...Array.from(p.removedNodes)];for(const f of h){if(!(f instanceof HTMLElement))continue;if(f.tagName.toLowerCase()==="scb-header"){i(f);continue}const y=f.closest?.("scb-header");y&&i(y)}}}});u.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabs","spacing","spacing-top","spacing-bottom","padding-inline","padding-inline-expanded","logo-width","logo-height","logo-aspect-ratio","logo-alt","logotype-text","search-height","reserve-tabs","layout-pending"]}),customElements.whenDefined("scb-header").then(()=>{u.disconnect()})};H();var L={fromAttribute:b=>b==null?!0:!/^(false|0|off|no)$/i.test(b),toAttribute:b=>String(!!b)},z={fromAttribute:b=>b==null?!1:!/^(false|0|off|no)$/i.test(b),toAttribute:b=>b?"":null},W={fromAttribute:b=>b==="small"||b==="large"?b:"medium",toAttribute:b=>{const e=String(b??"");return e==="small"||e==="large"?e:null}},a=(T=class extends R{constructor(){super(),this.maxWidth="1440px",this.size="medium",this.logoText="",this.logotypeText="",this.logoAlt="",this.logoHref="/",this.logoSrc="",this.logoWidth="",this.logoHeight="",this.logoAspectRatio="",this.logoInvertDm=!1,this.banner=!1,this.tabs=[],this.activeTab=null,this.reserveTabs=!1,this.layoutPending=!1,this.utilityItems=[],this.searchButtonLabel="Sök",this.searchClearLabel="Rensa sökfält",this.searchCloseLabel="Stäng sök",this.menuButtonLabel="Meny",this.menuOpenLabel="Öppna meny",this.utilityNavigationLabel="Funktionslänkar",this.mainNavigationLabel="Huvudnavigering",this.deferDrawer=!1,this.showDrawer=!0,this.alwaysShowMenuButton=!1,this.showSearch=!0,this.includeUtilityInMenu=!1,this.drawerOverlay=!0,this.searchText="",this._drawerId="main-drawer",this._menuExpanded=!1,this._searchId="header-search",this._drawerReady=!1,this._mobileSearchOpen=!1,this._initialUpgradeComplete=!1,this._slotNavItems=[],this._slotUtils=[],this._slotMenu=[],this._measureScheduled=!1,this._scheduleMeasure=()=>{this.layoutPending||this._measureScheduled||(this._measureScheduled=!0,requestAnimationFrame(()=>{this._measureScheduled=!1,this._measure()}))},this._onWindowResize=()=>{window.innerWidth>=this.BP_SM&&this._mobileSearchOpen&&this._setMobileSearchOpen(!1),this._scheduleMeasure()},this._onMenuSelect=t=>{t.stopPropagation();const r=t.detail;this.dispatchEvent(new CustomEvent("scb-menu-select",{detail:r,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("scbmenuselect",{detail:r,bubbles:!0,composed:!0}));const s=r?.item,i=typeof r?.href=="string"?r.href:typeof r?.itemHref=="string"?r.itemHref:typeof r?.item_href=="string"?r.item_href:"",o=s?s.getAttribute("item-href")??s.getAttribute("href")??"":"";String(i||o||"").trim()&&this._closeDrawerNow()},this._onMenuSelectAlias=t=>{t.stopPropagation()},this._collapsed=!1,this._unlockAtWidth=0,this._hideLogoText=!1,this._logoTextUnlockAt=0,this._slotWatchers=[],this._harvestPending=!1,this._harvest=(t={})=>{const r=Array.from(this.children),s=[],i=[],o=[];let u=-1,n=!1;const p=c=>({label:c.getAttribute("label")??"",href:c.getAttribute("href")??void 0,icon:c.getAttribute("icon")??void 0}),h=c=>{c.hasAttribute("role")&&c.removeAttribute("role"),c.hasAttribute("hidden")||c.setAttribute("hidden",""),c.getAttribute("aria-hidden")!=="true"&&c.setAttribute("aria-hidden","true")};for(const c of r){const x=c.tagName.toLowerCase();if(this._isDrawerCloseNode(c)){this._syncDrawerCloseNode(c);continue}if(x==="scb-header-tab"){h(c);const g=c.getAttribute("label")??"",v=c.getAttribute("href"),C=v&&v.trim()!==""?v:void 0;(c.hasAttribute("selected")||c.getAttribute("selected")==="true"||c.getAttribute("active")==="true"||c.getAttribute("aria-current")==="page")&&u===-1&&(u=s.length),s.push({kind:"tab",label:g,href:C});continue}if(x==="scb-badge"){const g=c.querySelector("scb-dropdown");if(g){n=!0;const v=g.getAttribute("label")??"";(g.hasAttribute("selected")||g.getAttribute("selected")==="true"||g.getAttribute("active")==="true"||g.getAttribute("aria-current")==="page")&&u===-1&&(u=s.length);const C=`scb-header-tab-${s.length}`;c.getAttribute("slot")!==C&&c.setAttribute("slot",C),g.hasAttribute("slot")&&g.removeAttribute("slot"),g.hasAttribute("as-tab")||g.setAttribute("as-tab",""),s.push({kind:"dropdown",slotName:C,label:v});continue}}if(x==="scb-dropdown"){n=!0;const g=c.getAttribute("label")??"";(c.hasAttribute("selected")||c.getAttribute("selected")==="true"||c.getAttribute("active")==="true"||c.getAttribute("aria-current")==="page")&&u===-1&&(u=s.length);const v=`scb-header-tab-${s.length}`;c.getAttribute("slot")!==v&&c.setAttribute("slot",v),c.hasAttribute("as-tab")||c.setAttribute("as-tab",""),s.push({kind:"dropdown",slotName:v,label:g});continue}if(x==="scb-header-utility"){h(c),i.push({label:c.getAttribute("label")??"",href:c.getAttribute("href")??"#",target:c.getAttribute("target")??void 0});continue}if(x==="scb-header-menu-group"){h(c);const g={label:c.getAttribute("label")??"",icon:c.getAttribute("icon")??void 0,children:[]};c.querySelectorAll("scb-header-menu-item").forEach(v=>g.children.push(p(v))),o.push(g);continue}if(x==="scb-header-menu-item"){h(c),o.push(p(c));continue}c.hasAttribute("slot")||h(c)}const f=!this._sameNavItems(this._slotNavItems,s),y=!this._sameUtilityItems(this._slotUtils,i),_=!this._sameMenuNodes(this._slotMenu,o);f&&(this._slotNavItems=s),y&&(this._slotUtils=i),_&&(this._slotMenu=o),n&&this._ensureDropdownReady(),!this.hasAttribute("active-tab")&&u>=0&&this.activeTab!==u&&(this.activeTab=u),(t.scheduleMeasure??!0)&&queueMicrotask(()=>{this.updateComplete.then(()=>{this._scheduleMeasure()})})},this._measure=()=>{if(this.layoutPending)return;const t=this._top,r=this._logoGroup;if(!t||!r)return;const s=window.innerWidth,i=t.clientWidth,o=this._overflows(this._util),u=this._tabsOverflows(),n=s<this.BP_MD||o||u;this._collapsed?!n&&i>=this._unlockAtWidth&&this._setCollapsed(!1):n&&(this._unlockAtWidth=i+this._HYST,this._setCollapsed(!0));let p=!1;if(this.showSearch&&s>=this.BP_SM&&s<this.BP_MD&&this._searchWrap){const f=getComputedStyle(this._searchWrap),y=Math.max(this._num(f.minWidth,this._tokenPx("--scb-header-search-min",250)),this._tokenPx("--scb-header-search-min",250)),_=this._num(getComputedStyle(t).gap,this._tokenPx("--spacing-7",24)),c=this.showDrawer&&(this.alwaysShowMenuButton||s<this.BP_MD||this._collapsed)?this._menuBtn?.getBoundingClientRect().width||this._tokenPx("--icon-size-extra-extra-large",48):0;p=r.getBoundingClientRect().width+_+y+_+c+8>i+.5}this._setHideSearch(p);let h=!1;if(this.showDrawer&&(this.alwaysShowMenuButton||s<this.BP_MD||this._collapsed)&&!this._visible(this._util)&&!this._visible(this._searchWrap)){const f=this._num(getComputedStyle(t).gap,this._tokenPx("--spacing-7",24)),y=this._menuBtn?.getBoundingClientRect().width||this._tokenPx("--icon-size-extra-extra-large",48),_=(this._logoGroup?.getBoundingClientRect().width||0)+f+y;this._hideLogoText?h=!(i>=this._logoTextUnlockAt):_>i+.5&&(h=!0,this._logoTextUnlockAt=i+this._HYST)}else h=!1,this._logoTextUnlockAt=0;this._setHideLogoText(h)},this._onGlobalFocusRingKeydown=t=>{t.key==="Tab"&&(this.toggleAttribute("data-keyboard-focus",!0),this._ensureFocusRingReady())},this._onGlobalFocusRingPointerDown=()=>{this.removeAttribute("data-keyboard-focus")},this._onLocalFocusIn=t=>{const r=t.composedPath()[0];r instanceof HTMLElement&&r.matches(":focus-visible")&&this._ensureFocusRingReady()},this._onDrawerOpened=()=>{this._menuExpanded=!0,this._syncMenuBtnAria(),this.dispatchEvent(new CustomEvent("drawer-open",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("draweropen",{bubbles:!0,composed:!0}))},this._onDrawerClosed=()=>{this._menuExpanded=!1,this._syncMenuBtnAria(),this.dispatchEvent(new CustomEvent("drawer-close",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("drawerclose",{bubbles:!0,composed:!0}))},this._onMenuClick=async t=>{this.showDrawer&&(this._setMobileSearchOpen(!1),this.dispatchEvent(new CustomEvent("menu-click",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("menuclick",{bubbles:!0,composed:!0})),!this._drawerReady&&(t.stopPropagation(),await this._ensureDrawerReady(),await this.updateComplete,this._openDrawerNow()))},this._onMobileSearchToggle=()=>{const t=!this._mobileSearchOpen;this._setMobileSearchOpen(t),t&&this.updateComplete.then(()=>{this.renderRoot.querySelector(".mobile-search-panel .header-search-input")?.focus?.()})},this._onTabClick=t=>{const r=t.currentTarget;if(!r)return;const s=r.tagName.toLowerCase()==="a";if(s&&(t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey))return;const i=r.getAttribute("data-index"),o=i!=null?Number(i):0,u=this._getNavItems()[o];if(u?.kind==="dropdown")return;this.activeTab=o;const n=u?.kind==="tab"?u.href??"":"",p=new CustomEvent("tab-change",{detail:{index:o,href:n},bubbles:!0,composed:!0,cancelable:!0}),h=new CustomEvent("tabchange",{detail:{index:o,href:n},bubbles:!0,composed:!0,cancelable:!0});!(this.dispatchEvent(p)&&this.dispatchEvent(h))&&s&&t.preventDefault()},this._onDropdownTabActivate=t=>{const r=t.detail?.dataIndex,s=typeof r=="number"?r:typeof r=="string"?Number(r):this._readTabIndexFromEvent(t);if(s==null||!Number.isFinite(s))return;const i=this._getNavItems();s<0||s>=i.length||i[s]?.kind==="dropdown"&&(this.activeTab=s,this.dispatchEvent(new CustomEvent("tab-change",{detail:{index:s,href:""},bubbles:!0,composed:!0,cancelable:!0})),this.dispatchEvent(new CustomEvent("tabchange",{detail:{index:s,href:""},bubbles:!0,composed:!0,cancelable:!0})))},this._onTabsKeydown=t=>{const r=t.key;if(r!=="ArrowLeft"&&r!=="ArrowRight"&&r!=="Home"&&r!=="End")return;const s=this._getNavItems();if(!s.length)return;const i=this._readTabIndexFromEvent(t);if(i==null)return;let o=Math.max(0,Math.min(s.length-1,i));r==="ArrowRight"?o=(o+1)%s.length:r==="ArrowLeft"?o=(o-1+s.length)%s.length:r==="Home"?o=0:r==="End"&&(o=s.length-1),t.preventDefault(),this._focusTabAtIndex(o)},this._onNativeSearchInput=t=>{const r=t.currentTarget;this._emitSearchInput(r?.value??"")},this._onNativeSearchSubmit=t=>{t.preventDefault();const r=t.currentTarget?.querySelector(".header-search-input");this._emitSearchChange(r?.value??"")},this._onSearchClear=()=>{this.searchText="",this.dispatchEvent(new CustomEvent("search-text-change",{detail:{value:""},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("searchtextchange",{detail:{value:""},bubbles:!0,composed:!0}))},this._onNativeSearchClear=t=>{t.preventDefault(),this._onSearchClear(),this.updateComplete.then(()=>{const r=t.currentTarget?.closest("form")?.querySelector(".header-search-input");r&&(r.value=""),r?.focus()})};const e=++B;this._drawerId=`scb-header-drawer-${e}`,this._searchId=`scb-header-search-${e}`}requestLayout(){this.layoutPending||(this.setAttribute("data-layout-settling",""),this.updateComplete.then(()=>{this.isConnected&&(this._measure(),this.removeAttribute("data-layout-settling"))}))}get _HYST(){return this._tokenPx("--spacing-11",64)}get BP_SM(){return this._tokenPx("--bp-sm",E.BP_SM_DEFAULT)}get BP_MD(){return this._tokenPx("--bp-md",E.BP_MD_DEFAULT)}_scheduleHarvest(){this._harvestPending||(this._harvestPending=!0,queueMicrotask(()=>{this._harvestPending=!1,this._harvest()}))}get _top(){return this.renderRoot.querySelector(".top-row")}get _util(){return this.renderRoot.querySelector(".utility")}get _logoGroup(){return this.renderRoot.querySelector(".logo-wrap")||this.renderRoot.querySelector(".logo-group")}get _searchWrap(){return this.renderRoot.querySelector(".search")}get _menuBtn(){return this.renderRoot.querySelector(".menu-trigger")}get _tabsNav(){return this.renderRoot.querySelector(".tabs-nav")}_attachSlotObservers(){this._slotMo?.disconnect(),this._slotWatchers.forEach(i=>i.disconnect()),this._slotWatchers=[];const e=["label","href","icon","target","selected","aria-current","active","role"],t=i=>{const o=new MutationObserver(u=>{this._scheduleHarvest()});this._slotWatchers.push(o),o.observe(i,{attributes:!0,attributeFilter:e})},r=()=>{this._slotWatchers.forEach(o=>o.disconnect()),this._slotWatchers=[];const i=Array.from(this.children);for(const o of i){const u=o.tagName.toLowerCase();if((u==="scb-header-tab"||u==="scb-dropdown"||u==="scb-header-utility"||u==="scb-header-menu-item"||u==="scb-header-menu-group"||u==="scb-badge")&&t(o),u==="scb-badge"){const n=o,p=new MutationObserver(f=>{r(),this._scheduleHarvest()});this._slotWatchers.push(p),p.observe(n,{childList:!0});const h=n.querySelector("scb-dropdown");h&&t(h);continue}if(u==="scb-header-menu-group"){const n=o,p=new MutationObserver(h=>{r(),this._scheduleHarvest()});this._slotWatchers.push(p),p.observe(n,{childList:!0,subtree:!0}),n.querySelectorAll("scb-header-menu-item").forEach(h=>t(h))}}},s=new MutationObserver(i=>{let o=!1;for(const u of i)if(u.type==="childList"){o=!0;break}o&&r(),this._scheduleHarvest()});this._slotMo=s,s.observe(this,{childList:!0}),r()}_sameNavItems(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1){const s=e[r],i=t[r];if(!s||!i||s.kind!==i.kind||s.label!==i.label)return!1;if(s.kind==="tab"&&i.kind==="tab"){if((s.href??"")!==(i.href??""))return!1}else if(s.kind==="dropdown"&&i.kind==="dropdown"&&s.slotName!==i.slotName)return!1}return!0}_sameUtilityItems(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1){const s=e[r],i=t[r];if(!s||!i||s.label!==i.label||s.href!==i.href||(s.target??"")!==(i.target??""))return!1}return!0}_sameMenuNodes(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1){const s=e[r],i=t[r];if(!s||!i||s.label!==i.label||(s.href??"")!==(i.href??"")||(s.icon??"")!==(i.icon??"")||!this._sameMenuNodes(s.children??[],i.children??[]))return!1}return!0}_isDrawerCloseNode(e){const t=e.tagName.toLowerCase(),r=e.getAttribute("slot");if(r==="drawer-close")return!0;if(r||t!=="scb-icon-button")return!1;const s=(e.getAttribute("icon")??"").trim().toLowerCase(),i=(e.getAttribute("aria-label")??"").trim().toLowerCase();return s==="close"||i.includes("stäng")||i.includes("close")}_syncDrawerCloseNode(e){e.getAttribute("slot")!=="drawer-close"&&e.setAttribute("slot","drawer-close"),e.setAttribute("data-drawer-close",this._drawerId),e.setAttribute("aria-controls",this._drawerId),this._drawerReady?(e.removeAttribute("hidden"),e.removeAttribute("aria-hidden")):(e.hasAttribute("hidden")||e.setAttribute("hidden",""),e.getAttribute("aria-hidden")!=="true"&&e.setAttribute("aria-hidden","true"))}_syncDrawerCloseNodes(){for(const e of Array.from(this.children))this._isDrawerCloseNode(e)&&this._syncDrawerCloseNode(e)}_setCollapsed(e){this._collapsed!==e&&(this._collapsed=e,e?this.setAttribute("data-collapsed",""):this.removeAttribute("data-collapsed"))}_setHideSearch(e){e?this.setAttribute("data-hide-search",""):this.removeAttribute("data-hide-search")}_setHideLogoText(e){this._hideLogoText!==e&&(this._hideLogoText=e,e?this.setAttribute("data-hide-logo-text",""):this.removeAttribute("data-hide-logo-text"))}_setMobileSearchOpen(e){this._mobileSearchOpen!==e&&(this._mobileSearchOpen=e,this.toggleAttribute("data-mobile-search-open",e))}_num(e,t){const r=Number.parseFloat(String(e??"").trim());return Number.isFinite(r)?r:t}_tokenPx(e,t){const r=getComputedStyle(this);return this._num(r.getPropertyValue(e),t)}_visible(e){return e?getComputedStyle(e).display!=="none":!1}_overflows(e){return!e||!this._visible(e)?!1:e.scrollWidth>e.clientWidth+1}_tabsOverflows(){const e=this._tabsNav;if(!e||!this._visible(e))return!1;const t=Array.from(e.querySelectorAll(".tab-wrap"));if(t.length===0)return!1;const r=e.getBoundingClientRect();let s=r.left;for(const i of t){const o=i.getBoundingClientRect();o.width<=0||o.right>s&&(s=o.right)}return s-r.left>r.width+1}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this._onGlobalFocusRingKeydown,!0),window.addEventListener("pointerdown",this._onGlobalFocusRingPointerDown,!0),this._initialUpgradeComplete||this.setAttribute("data-upgrading",""),this._harvest({scheduleMeasure:!1}),this._attachSlotObservers()}_finishInitialUpgrade(){this._initialUpgradeComplete||(this._initialUpgradeComplete=!0,requestAnimationFrame(()=>{this.isConnected&&(this._measure(),this.removeAttribute("data-upgrading"))}))}firstUpdated(){this._syncLandmarkAttributes(),this.renderRoot.addEventListener("focusin",this._onLocalFocusIn),this.showDrawer&&!this.deferDrawer&&this._ensureDrawerReady(),this.updateComplete.then(()=>{this._harvest({scheduleMeasure:!1}),this._attachSlotObservers(),this._syncDropdownTabs(),this._finishInitialUpgrade()});const e=this._top;e&&(this._ro=new ResizeObserver(()=>this._scheduleMeasure()),this._ro.observe(e)),window.addEventListener("resize",this._onWindowResize,{passive:!0})}updated(e){e.has("searchMax")&&this.style.setProperty("--scb-header-search-max",this.searchMax??"380px"),e.has("searchMin")&&this.style.setProperty("--scb-header-search-min",this.searchMin??"250px"),e.has("searchHeight")&&(this.searchHeight&&this.searchHeight.trim()?this.style.setProperty("--scb-search-height",this.searchHeight.trim()):this.style.removeProperty("--scb-search-height")),(e.has("logoWidth")||e.has("logoHeight")||e.has("logoAspectRatio"))&&this._applyLogoSizing(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&this._applySpacing(),(e.has("paddingInline")||e.has("paddingInlineExpanded"))&&this._applyPaddingInline(),(e.has("banner")||e.has("bannerLabel"))&&this._syncLandmarkAttributes(),(e.has("utilityItems")||e.has("tabs")||e.has("logoText")||e.has("logotypeText")||e.has("logoSrc")||e.has("logoWidth")||e.has("logoHeight")||e.has("logoAspectRatio")||e.has("activeTab")||e.has("_slotNavItems")||e.has("_slotUtils")||e.has("_slotMenu")||e.has("showDrawer")||e.has("alwaysShowMenuButton")||e.has("showSearch")||e.has("layoutPending")||e.has("searchMax")||e.has("searchMin")||e.has("paddingInline")||e.has("paddingInlineExpanded")||e.has("size"))&&this.updateComplete.then(()=>{this._scheduleMeasure()}),(e.has("showDrawer")||e.has("deferDrawer"))&&this.showDrawer&&!this.deferDrawer&&this._ensureDrawerReady(),e.has("showSearch")&&!this.showSearch&&this._setMobileSearchOpen(!1),e.has("layoutPending")&&!this.layoutPending&&this.requestLayout(),(e.has("activeTab")||e.has("_slotNavItems")||e.has("tabs")||e.has("size"))&&this.updateComplete.then(()=>{this._syncDropdownTabs()})}disconnectedCallback(){this._ro?.disconnect(),this._slotMo?.disconnect(),this._slotWatchers.forEach(e=>e.disconnect()),this._slotWatchers=[],this.renderRoot.removeEventListener("focusin",this._onLocalFocusIn),window.removeEventListener("keydown",this._onGlobalFocusRingKeydown,!0),window.removeEventListener("pointerdown",this._onGlobalFocusRingPointerDown,!0),window.removeEventListener("resize",this._onWindowResize),super.disconnectedCallback()}_mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t){if(/^\d+$/.test(t)){const r=Math.max(0,Math.min(14,parseInt(t,10)));return`var(--spacing-${r}, ${I[r]}px)`}return t}}_applySpacing(){const e=this._mapSpacingToken(this.spacing),t=this._mapSpacingToken(this.spacingTop)??e,r=this._mapSpacingToken(this.spacingBottom)??e;t?this.style.setProperty("--scb-header-spacing-block-start",t):this.style.removeProperty("--scb-header-spacing-block-start"),r?this.style.setProperty("--scb-header-spacing-block-end",r):this.style.removeProperty("--scb-header-spacing-block-end")}_applyPaddingInline(){const e=this._mapSpacingToken(this.paddingInline),t=this._mapSpacingToken(this.paddingInlineExpanded)??e;e?this.style.setProperty("--scb-header-padding-inline",e):this.style.removeProperty("--scb-header-padding-inline"),t?this.style.setProperty("--scb-header-padding-inline-expanded",t):this.style.removeProperty("--scb-header-padding-inline-expanded")}_syncLandmarkAttributes(){const e=this.renderRoot.querySelector(".header-landmark");if(!e)return;if(!this.banner){e.removeAttribute("role"),e.removeAttribute("aria-label");return}e.setAttribute("role","banner");const t=(this.bannerLabel??"").trim();t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label")}_applyLogoSizing(){const e=(this.logoWidth??"").trim(),t=(this.logoHeight??"").trim(),r=(this.logoAspectRatio??"").trim();e?this.style.setProperty("--scb-header-logo-img-w",e):this.style.removeProperty("--scb-header-logo-img-w"),t?this.style.setProperty("--scb-header-logo-img-h",t):e?this.style.setProperty("--scb-header-logo-img-h","auto"):this.style.removeProperty("--scb-header-logo-img-h"),r?this.style.setProperty("--scb-header-logo-img-aspect-ratio",r):this.style.removeProperty("--scb-header-logo-img-aspect-ratio")}_closeDrawerNow(){const e=this.renderRoot.querySelector(`#${this._drawerId}`);e&&(e.open=!1)}_openDrawerNow(){const e=this.renderRoot.querySelector(`#${this._drawerId}`);e&&(e.open=!0)}_ensureFocusRingReady(){customElements.get("md-focus-ring")||(this._focusRingImportPromise??(this._focusRingImportPromise=k(()=>import("../../vendor/lazy-focus-ring.js").then(e=>e.i),__vite__mapDeps([0,1,2]),import.meta.url)),this._focusRingImportPromise.then(({ensureFocusRingReady:e})=>{e()}))}async _ensureDrawerReady(){this._drawerReady||(this._drawerImportPromise??(this._drawerImportPromise=Promise.all([k(()=>import("../scb-drawer/scb-drawer.js"),__vite__mapDeps([3,4,5,6,7,8]),import.meta.url),k(()=>import("../scb-menu/scb-menu.js"),__vite__mapDeps([9,8,4,5,6,7,10,2,11,12,13]),import.meta.url),k(()=>import("../scb-search/scb-search.js"),__vite__mapDeps([14,4,2,5,15,1,6,16,17,0]),import.meta.url),k(()=>import("../../vendor/scb-header-drawer.internal.js").then(e=>{this._drawerRenderer=e}),__vite__mapDeps([18,5,6]),import.meta.url),this._ensureDrawerSlotComponentsReady()]).then(()=>{})),await this._drawerImportPromise,this._drawerReady=!0,this._syncDrawerCloseNodes())}_drawerSlotContains(e){return[...this.querySelectorAll('[slot="drawer-menu"], [slot="drawer-close"]')].some(t=>t.matches(e)||!!t.querySelector(e))}async _ensureDrawerSlotComponentsReady(){this.querySelector('[slot="drawer-menu"], [slot="drawer-close"]')&&await Promise.all([this._drawerSlotContains("scb-button")?k(()=>import("../scb-button/scb-button.js"),__vite__mapDeps([19,8,4,2,5,6]),import.meta.url):Promise.resolve(),this._drawerSlotContains("scb-icon-button")?k(()=>import("../scb-icon-button/scb-icon-button.js"),__vite__mapDeps([20,8,4,2,5,6]),import.meta.url):Promise.resolve(),this._drawerSlotContains("scb-skeleton")?k(()=>import("../scb-skeleton/scb-skeleton.js"),__vite__mapDeps([21,4,5,6]),import.meta.url):Promise.resolve(),this._drawerSlotContains("scb-grid")?k(()=>import("../scb-grid/scb-grid.js"),__vite__mapDeps([22,8,4,5,6,23,24]),import.meta.url):Promise.resolve(),this._drawerSlotContains("scb-grid-item")?k(()=>import("../scb-grid/scb-grid-item.js"),__vite__mapDeps([23,8,4,5,6]),import.meta.url):Promise.resolve()])}async _ensureDropdownReady(){customElements.get("scb-dropdown")||(this._dropdownImportPromise??(this._dropdownImportPromise=k(()=>import("../scb-dropdown/scb-dropdown.js").then(()=>{}),__vite__mapDeps([25,4,5,15,1,6,19,8,2,11,26,27,16,17,7,0,28]),import.meta.url)),await this._dropdownImportPromise)}_syncMenuBtnAria(){this.renderRoot.querySelectorAll(".menu-trigger").forEach(e=>{e.setAttribute("aria-expanded",String(this._menuExpanded))})}_getNavItems(){return this._slotNavItems.length?this._slotNavItems:(this.tabs??[]).map(e=>({kind:"tab",...e}))}_getDropdownForSlot(e){const t=this.querySelector(`[slot="${e}"]`);return t?t.tagName.toLowerCase()==="scb-dropdown"?t:t.querySelector("scb-dropdown"):null}_syncDropdownTabs(){this._getNavItems().forEach((e,t)=>{if(e.kind!=="dropdown")return;const r=this._getDropdownForSlot(e.slotName);if(!r)return;const s=String(t);r.getAttribute("data-index")!==s&&r.setAttribute("data-index",s),r.hasAttribute("as-tab")||r.setAttribute("as-tab","");const i=this.size,o=r;o?.size!==i&&(o.size=i),t===this.activeTab?r.getAttribute("aria-current")!=="page"&&r.setAttribute("aria-current","page"):r.hasAttribute("aria-current")&&r.removeAttribute("aria-current")})}_readTabIndexFromEvent(e){const t=e.composedPath?e.composedPath():[];for(const r of t){if(!(r instanceof HTMLElement))continue;const s=r.getAttribute("data-index");if(s==null)continue;const i=Number(s);if(Number.isFinite(i))return i}return null}_focusTabAtIndex(e){const t=this._getNavItems()[e];if(t){if(t.kind==="dropdown"){this._getDropdownForSlot(t.slotName)?.focus?.();return}this.renderRoot.querySelector(`.tab-link[data-index="${e}"]`)?.focus?.()}}_syncFlags(e,t){this.toggleAttribute("data-no-utility",e),this.toggleAttribute("data-no-search",t)}_emitSearchInput(e){this.searchText=e,this.dispatchEvent(new CustomEvent("search-input",{detail:{value:this.searchText},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("searchinput",{detail:{value:this.searchText},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("search-text-change",{detail:{value:this.searchText},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("searchtextchange",{detail:{value:this.searchText},bubbles:!0,composed:!0}))}_emitSearchChange(e,t){this.searchText=e,this.dispatchEvent(new CustomEvent("search-change",{detail:{value:this.searchText,active:t},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("searchchange",{detail:{value:this.searchText,active:t},bubbles:!0,composed:!0}))}_renderMenuButton(e="",t=!1){const r=e?`menu-trigger ${e}`:"menu-trigger",s=(this.menuButtonLabel??"").trim()||"Meny",i=(this.menuOpenLabel??"").trim()||s,o=this._menuExpanded?"true":"false";return t?m`
55
+ `,document.head.appendChild(b);const e=n=>{const p=String(n??"").trim();if(p){if(/^\d+$/.test(p)){const h=Math.max(0,Math.min(14,parseInt(p,10)));return`var(--spacing-${h}, ${I[h]}px)`}return p}},t=n=>{const p=String(n??"").trim();if(!p)return!1;try{const h=JSON.parse(p);return Array.isArray(h)&&h.length>0}catch{return!1}},r=n=>n!=null&&!/^(false|0|off|no)$/i.test(n.trim()),i=n=>{for(const p of Array.from(n.children)){const h=p.tagName.toLowerCase();if(h==="scb-header-tab"||h==="scb-dropdown")return!0}return!1},s=n=>{i(n)||t(n.getAttribute("tabs"))||r(n.getAttribute("reserve-tabs"))||r(n.getAttribute("layout-pending"))?n.setAttribute("data-pre-has-tabs",""):n.removeAttribute("data-pre-has-tabs");const p=e(n.getAttribute("spacing")),h=e(n.getAttribute("spacing-top"))??p,v=e(n.getAttribute("spacing-bottom"))??p,f=e(n.getAttribute("padding-inline")),_=e(n.getAttribute("padding-inline-expanded"))??f;h?n.style.setProperty("--scb-header-spacing-block-start",h):n.style.removeProperty("--scb-header-spacing-block-start"),v?n.style.setProperty("--scb-header-spacing-block-end",v):n.style.removeProperty("--scb-header-spacing-block-end"),f?n.style.setProperty("--scb-header-padding-inline",f):n.style.removeProperty("--scb-header-padding-inline"),_?n.style.setProperty("--scb-header-padding-inline-expanded",_):n.style.removeProperty("--scb-header-padding-inline-expanded");const c=(n.getAttribute("logo-width")??"").trim();c?n.style.setProperty("--scb-header-pre-logo-w",c):n.style.removeProperty("--scb-header-pre-logo-w");const x=(n.getAttribute("logo-height")??"").trim();x?n.style.setProperty("--scb-header-pre-logo-img-h",x):n.style.removeProperty("--scb-header-pre-logo-img-h");const g=(n.getAttribute("search-height")??"").trim();g?n.style.setProperty("--scb-header-pre-control-size",g):n.style.removeProperty("--scb-header-pre-control-size")};document.querySelectorAll("scb-header").forEach(s);const u=new MutationObserver(n=>{for(const p of n){if(p.type==="attributes"){const h=p.target;h instanceof HTMLElement&&h.tagName.toLowerCase()==="scb-header"&&s(h);continue}if(p.type==="childList"){const h=[...Array.from(p.addedNodes),...Array.from(p.removedNodes)];for(const v of h){if(!(v instanceof HTMLElement))continue;if(v.tagName.toLowerCase()==="scb-header"){s(v);continue}const f=v.closest?.("scb-header");f&&s(f)}}}});u.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabs","spacing","spacing-top","spacing-bottom","padding-inline","padding-inline-expanded","logo-width","logo-height","logo-aspect-ratio","logo-alt","logotype-text","search-height","reserve-tabs","layout-pending"]}),customElements.whenDefined("scb-header").then(()=>{u.disconnect()})};H();var L={fromAttribute:b=>b==null?!0:!/^(false|0|off|no)$/i.test(b),toAttribute:b=>String(!!b)},T={fromAttribute:b=>b==null?!1:!/^(false|0|off|no)$/i.test(b),toAttribute:b=>b?"":null},W={fromAttribute:b=>b==="small"||b==="medium"||b==="large"?b:"medium",toAttribute:b=>{const e=String(b??"");return e==="small"||e==="medium"||e==="large"?e:null}},a=(z=class extends R{constructor(){super(),this.maxWidth="1440px",this.size="large",this.logoText="",this.logotypeText="",this.logoAlt="",this.logoHref="/",this.logoSrc="",this.logoWidth="",this.logoHeight="",this.logoAspectRatio="",this.logoInvertDm=!1,this.banner=!1,this.tabs=[],this.activeTab=null,this.reserveTabs=!1,this.layoutPending=!1,this.utilityItems=[],this.searchButtonLabel="Sök",this.searchClearLabel="Rensa sökfält",this.searchCloseLabel="Stäng sök",this.menuButtonLabel="Meny",this.menuOpenLabel="Öppna meny",this.utilityNavigationLabel="Funktionslänkar",this.mainNavigationLabel="Huvudnavigering",this.deferDrawer=!1,this.showDrawer=!0,this.alwaysShowMenuButton=!1,this.showSearch=!0,this.includeUtilityInMenu=!1,this.drawerOverlay=!0,this.searchText="",this._drawerId="main-drawer",this._menuExpanded=!1,this._searchId="header-search",this._drawerReady=!1,this._mobileSearchOpen=!1,this._initialUpgradeComplete=!1,this._slotNavItems=[],this._slotUtils=[],this._slotMenu=[],this._measureScheduled=!1,this._scheduleMeasure=()=>{this.layoutPending||this._measureScheduled||(this._measureScheduled=!0,requestAnimationFrame(()=>{this._measureScheduled=!1,this._measure()}))},this._onWindowResize=()=>{window.innerWidth>=this.BP_SM&&this._mobileSearchOpen&&this._setMobileSearchOpen(!1),this._scheduleMeasure()},this._onMenuSelect=t=>{t.stopPropagation();const r=t.detail;this.dispatchEvent(new CustomEvent("scb-menu-select",{detail:r,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("scbmenuselect",{detail:r,bubbles:!0,composed:!0}));const i=r?.item,s=typeof r?.href=="string"?r.href:typeof r?.itemHref=="string"?r.itemHref:typeof r?.item_href=="string"?r.item_href:"",o=i?i.getAttribute("item-href")??i.getAttribute("href")??"":"";String(s||o||"").trim()&&this._closeDrawerNow()},this._onMenuSelectAlias=t=>{t.stopPropagation()},this._collapsed=!1,this._unlockAtWidth=0,this._hideLogoText=!1,this._logoTextUnlockAt=0,this._slotWatchers=[],this._harvestPending=!1,this._harvest=(t={})=>{const r=Array.from(this.children),i=[],s=[],o=[];let u=-1,n=!1;const p=c=>({label:c.getAttribute("label")??"",href:c.getAttribute("href")??void 0,icon:c.getAttribute("icon")??void 0}),h=c=>{c.hasAttribute("role")&&c.removeAttribute("role"),c.hasAttribute("hidden")||c.setAttribute("hidden",""),c.getAttribute("aria-hidden")!=="true"&&c.setAttribute("aria-hidden","true")};for(const c of r){const x=c.tagName.toLowerCase();if(this._isDrawerCloseNode(c)){this._syncDrawerCloseNode(c);continue}if(x==="scb-header-tab"){h(c);const g=c.getAttribute("label")??"",y=c.getAttribute("href"),C=y&&y.trim()!==""?y:void 0;(c.hasAttribute("selected")||c.getAttribute("selected")==="true"||c.getAttribute("active")==="true"||c.getAttribute("aria-current")==="page")&&u===-1&&(u=i.length),i.push({kind:"tab",label:g,href:C});continue}if(x==="scb-badge"){const g=c.querySelector("scb-dropdown");if(g){n=!0;const y=g.getAttribute("label")??"";(g.hasAttribute("selected")||g.getAttribute("selected")==="true"||g.getAttribute("active")==="true"||g.getAttribute("aria-current")==="page")&&u===-1&&(u=i.length);const C=`scb-header-tab-${i.length}`;c.getAttribute("slot")!==C&&c.setAttribute("slot",C),g.hasAttribute("slot")&&g.removeAttribute("slot"),g.hasAttribute("as-tab")||g.setAttribute("as-tab",""),i.push({kind:"dropdown",slotName:C,label:y});continue}}if(x==="scb-dropdown"){n=!0;const g=c.getAttribute("label")??"";(c.hasAttribute("selected")||c.getAttribute("selected")==="true"||c.getAttribute("active")==="true"||c.getAttribute("aria-current")==="page")&&u===-1&&(u=i.length);const y=`scb-header-tab-${i.length}`;c.getAttribute("slot")!==y&&c.setAttribute("slot",y),c.hasAttribute("as-tab")||c.setAttribute("as-tab",""),i.push({kind:"dropdown",slotName:y,label:g});continue}if(x==="scb-header-utility"){h(c),s.push({label:c.getAttribute("label")??"",href:c.getAttribute("href")??"#",target:c.getAttribute("target")??void 0});continue}if(x==="scb-header-menu-group"){h(c);const g={label:c.getAttribute("label")??"",icon:c.getAttribute("icon")??void 0,children:[]};c.querySelectorAll("scb-header-menu-item").forEach(y=>g.children.push(p(y))),o.push(g);continue}if(x==="scb-header-menu-item"){h(c),o.push(p(c));continue}c.hasAttribute("slot")||h(c)}const v=!this._sameNavItems(this._slotNavItems,i),f=!this._sameUtilityItems(this._slotUtils,s),_=!this._sameMenuNodes(this._slotMenu,o);v&&(this._slotNavItems=i),f&&(this._slotUtils=s),_&&(this._slotMenu=o),n&&this._ensureDropdownReady(),!this.hasAttribute("active-tab")&&u>=0&&this.activeTab!==u&&(this.activeTab=u),(t.scheduleMeasure??!0)&&queueMicrotask(()=>{this.updateComplete.then(()=>{this._scheduleMeasure()})})},this._measure=()=>{if(this.layoutPending)return;const t=this._top,r=this._logoGroup;if(!t||!r)return;const i=window.innerWidth,s=t.clientWidth,o=this._overflows(this._util),u=this._tabsOverflows(),n=i<this.BP_MD||o||u;this._collapsed?!n&&s>=this._unlockAtWidth&&this._setCollapsed(!1):n&&(this._unlockAtWidth=s+this._HYST,this._setCollapsed(!0));let p=!1;if(this.showSearch&&i>=this.BP_SM&&i<this.BP_MD&&this._searchWrap){const v=getComputedStyle(this._searchWrap),f=Math.max(this._num(v.minWidth,this._tokenPx("--scb-header-search-min",250)),this._tokenPx("--scb-header-search-min",250)),_=this._num(getComputedStyle(t).gap,this._tokenPx("--spacing-7",24)),c=this.showDrawer&&(this.alwaysShowMenuButton||i<this.BP_MD||this._collapsed)?this._menuBtn?.getBoundingClientRect().width||this._tokenPx("--icon-size-extra-extra-large",48):0;p=r.getBoundingClientRect().width+_+f+_+c+8>s+.5}this._setHideSearch(p);let h=!1;if(this.showDrawer&&(this.alwaysShowMenuButton||i<this.BP_MD||this._collapsed)&&!this._visible(this._util)&&!this._visible(this._searchWrap)){const v=this._num(getComputedStyle(t).gap,this._tokenPx("--spacing-7",24)),f=this._menuBtn?.getBoundingClientRect().width||this._tokenPx("--icon-size-extra-extra-large",48),_=(this._logoGroup?.getBoundingClientRect().width||0)+v+f;this._hideLogoText?h=!(s>=this._logoTextUnlockAt):_>s+.5&&(h=!0,this._logoTextUnlockAt=s+this._HYST)}else h=!1,this._logoTextUnlockAt=0;this._setHideLogoText(h)},this._onGlobalFocusRingKeydown=t=>{t.key==="Tab"&&(this.toggleAttribute("data-keyboard-focus",!0),this._ensureFocusRingReady())},this._onGlobalFocusRingPointerDown=()=>{this.removeAttribute("data-keyboard-focus")},this._onLocalFocusIn=t=>{const r=t.composedPath()[0];r instanceof HTMLElement&&r.matches(":focus-visible")&&this._ensureFocusRingReady()},this._onDrawerOpened=()=>{this._menuExpanded=!0,this._syncMenuBtnAria(),this.dispatchEvent(new CustomEvent("drawer-open",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("draweropen",{bubbles:!0,composed:!0}))},this._onDrawerClosed=()=>{this._menuExpanded=!1,this._syncMenuBtnAria(),this.dispatchEvent(new CustomEvent("drawer-close",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("drawerclose",{bubbles:!0,composed:!0}))},this._onMenuClick=async t=>{this.showDrawer&&(this._setMobileSearchOpen(!1),this.dispatchEvent(new CustomEvent("menu-click",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("menuclick",{bubbles:!0,composed:!0})),!this._drawerReady&&(t.stopPropagation(),await this._ensureDrawerReady(),await this.updateComplete,this._openDrawerNow()))},this._onMobileSearchToggle=()=>{const t=!this._mobileSearchOpen;this._setMobileSearchOpen(t),t&&this.updateComplete.then(()=>{this.renderRoot.querySelector(".mobile-search-panel .header-search-input")?.focus?.()})},this._onTabClick=t=>{const r=t.currentTarget;if(!r)return;const i=r.tagName.toLowerCase()==="a";if(i&&(t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey))return;const s=r.getAttribute("data-index"),o=s!=null?Number(s):0,u=this._getNavItems()[o];if(u?.kind==="dropdown")return;this.activeTab=o;const n=u?.kind==="tab"?u.href??"":"",p=new CustomEvent("tab-change",{detail:{index:o,href:n},bubbles:!0,composed:!0,cancelable:!0}),h=new CustomEvent("tabchange",{detail:{index:o,href:n},bubbles:!0,composed:!0,cancelable:!0});!(this.dispatchEvent(p)&&this.dispatchEvent(h))&&i&&t.preventDefault()},this._onDropdownTabActivate=t=>{const r=t.detail?.dataIndex,i=typeof r=="number"?r:typeof r=="string"?Number(r):this._readTabIndexFromEvent(t);if(i==null||!Number.isFinite(i))return;const s=this._getNavItems();i<0||i>=s.length||s[i]?.kind==="dropdown"&&(this.activeTab=i,this.dispatchEvent(new CustomEvent("tab-change",{detail:{index:i,href:""},bubbles:!0,composed:!0,cancelable:!0})),this.dispatchEvent(new CustomEvent("tabchange",{detail:{index:i,href:""},bubbles:!0,composed:!0,cancelable:!0})))},this._onTabsKeydown=t=>{const r=t.key;if(r!=="ArrowLeft"&&r!=="ArrowRight"&&r!=="Home"&&r!=="End")return;const i=this._getNavItems();if(!i.length)return;const s=this._readTabIndexFromEvent(t);if(s==null)return;let o=Math.max(0,Math.min(i.length-1,s));r==="ArrowRight"?o=(o+1)%i.length:r==="ArrowLeft"?o=(o-1+i.length)%i.length:r==="Home"?o=0:r==="End"&&(o=i.length-1),t.preventDefault(),this._focusTabAtIndex(o)},this._onNativeSearchInput=t=>{const r=t.currentTarget;this._emitSearchInput(r?.value??"")},this._onNativeSearchSubmit=t=>{t.preventDefault();const r=t.currentTarget?.querySelector(".header-search-input");this._emitSearchChange(r?.value??"")},this._onSearchClear=()=>{this.searchText="",this.dispatchEvent(new CustomEvent("search-text-change",{detail:{value:""},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("searchtextchange",{detail:{value:""},bubbles:!0,composed:!0}))},this._onNativeSearchClear=t=>{t.preventDefault(),this._onSearchClear(),this.updateComplete.then(()=>{const r=t.currentTarget?.closest("form")?.querySelector(".header-search-input");r&&(r.value=""),r?.focus()})};const e=++B;this._drawerId=`scb-header-drawer-${e}`,this._searchId=`scb-header-search-${e}`}requestLayout(){this.layoutPending||(this.setAttribute("data-layout-settling",""),this.updateComplete.then(()=>{this.isConnected&&(this._measure(),this.removeAttribute("data-layout-settling"))}))}get _HYST(){return this._tokenPx("--spacing-11",64)}get BP_SM(){return this._tokenPx("--bp-sm",E.BP_SM_DEFAULT)}get BP_MD(){return this._tokenPx("--bp-md",E.BP_MD_DEFAULT)}_scheduleHarvest(){this._harvestPending||(this._harvestPending=!0,queueMicrotask(()=>{this._harvestPending=!1,this._harvest()}))}get _top(){return this.renderRoot.querySelector(".top-row")}get _util(){return this.renderRoot.querySelector(".utility")}get _logoGroup(){return this.renderRoot.querySelector(".logo-wrap")||this.renderRoot.querySelector(".logo-group")}get _searchWrap(){return this.renderRoot.querySelector(".search")}get _menuBtn(){return this.renderRoot.querySelector(".menu-trigger")}get _tabsNav(){return this.renderRoot.querySelector(".tabs-nav")}_attachSlotObservers(){this._slotMo?.disconnect(),this._slotWatchers.forEach(s=>s.disconnect()),this._slotWatchers=[];const e=["label","href","icon","target","selected","aria-current","active","role"],t=s=>{const o=new MutationObserver(u=>{this._scheduleHarvest()});this._slotWatchers.push(o),o.observe(s,{attributes:!0,attributeFilter:e})},r=()=>{this._slotWatchers.forEach(o=>o.disconnect()),this._slotWatchers=[];const s=Array.from(this.children);for(const o of s){const u=o.tagName.toLowerCase();if((u==="scb-header-tab"||u==="scb-dropdown"||u==="scb-header-utility"||u==="scb-header-menu-item"||u==="scb-header-menu-group"||u==="scb-badge")&&t(o),u==="scb-badge"){const n=o,p=new MutationObserver(v=>{r(),this._scheduleHarvest()});this._slotWatchers.push(p),p.observe(n,{childList:!0});const h=n.querySelector("scb-dropdown");h&&t(h);continue}if(u==="scb-header-menu-group"){const n=o,p=new MutationObserver(h=>{r(),this._scheduleHarvest()});this._slotWatchers.push(p),p.observe(n,{childList:!0,subtree:!0}),n.querySelectorAll("scb-header-menu-item").forEach(h=>t(h))}}},i=new MutationObserver(s=>{let o=!1;for(const u of s)if(u.type==="childList"){o=!0;break}o&&r(),this._scheduleHarvest()});this._slotMo=i,i.observe(this,{childList:!0}),r()}_sameNavItems(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1){const i=e[r],s=t[r];if(!i||!s||i.kind!==s.kind||i.label!==s.label)return!1;if(i.kind==="tab"&&s.kind==="tab"){if((i.href??"")!==(s.href??""))return!1}else if(i.kind==="dropdown"&&s.kind==="dropdown"&&i.slotName!==s.slotName)return!1}return!0}_sameUtilityItems(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1){const i=e[r],s=t[r];if(!i||!s||i.label!==s.label||i.href!==s.href||(i.target??"")!==(s.target??""))return!1}return!0}_sameMenuNodes(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1){const i=e[r],s=t[r];if(!i||!s||i.label!==s.label||(i.href??"")!==(s.href??"")||(i.icon??"")!==(s.icon??"")||!this._sameMenuNodes(i.children??[],s.children??[]))return!1}return!0}_isDrawerCloseNode(e){const t=e.tagName.toLowerCase(),r=e.getAttribute("slot");if(r==="drawer-close")return!0;if(r||t!=="scb-icon-button")return!1;const i=(e.getAttribute("icon")??"").trim().toLowerCase(),s=(e.getAttribute("aria-label")??"").trim().toLowerCase();return i==="close"||s.includes("stäng")||s.includes("close")}_syncDrawerCloseNode(e){e.getAttribute("slot")!=="drawer-close"&&e.setAttribute("slot","drawer-close"),e.setAttribute("data-drawer-close",this._drawerId),e.setAttribute("aria-controls",this._drawerId),this._drawerReady?(e.removeAttribute("hidden"),e.removeAttribute("aria-hidden")):(e.hasAttribute("hidden")||e.setAttribute("hidden",""),e.getAttribute("aria-hidden")!=="true"&&e.setAttribute("aria-hidden","true"))}_syncDrawerCloseNodes(){for(const e of Array.from(this.children))this._isDrawerCloseNode(e)&&this._syncDrawerCloseNode(e)}_setCollapsed(e){this._collapsed!==e&&(this._collapsed=e,e?this.setAttribute("data-collapsed",""):this.removeAttribute("data-collapsed"))}_setHideSearch(e){e?this.setAttribute("data-hide-search",""):this.removeAttribute("data-hide-search")}_setHideLogoText(e){this._hideLogoText!==e&&(this._hideLogoText=e,e?this.setAttribute("data-hide-logo-text",""):this.removeAttribute("data-hide-logo-text"))}_setMobileSearchOpen(e){this._mobileSearchOpen!==e&&(this._mobileSearchOpen=e,this.toggleAttribute("data-mobile-search-open",e))}_num(e,t){const r=Number.parseFloat(String(e??"").trim());return Number.isFinite(r)?r:t}_tokenPx(e,t){const r=getComputedStyle(this);return this._num(r.getPropertyValue(e),t)}_visible(e){return e?getComputedStyle(e).display!=="none":!1}_overflows(e){return!e||!this._visible(e)?!1:e.scrollWidth>e.clientWidth+1}_tabsOverflows(){const e=this._tabsNav;if(!e||!this._visible(e))return!1;const t=Array.from(e.querySelectorAll(".tab-wrap"));if(t.length===0)return!1;const r=e.getBoundingClientRect();let i=r.left;for(const s of t){const o=s.getBoundingClientRect();o.width<=0||o.right>i&&(i=o.right)}return i-r.left>r.width+1}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this._onGlobalFocusRingKeydown,!0),window.addEventListener("pointerdown",this._onGlobalFocusRingPointerDown,!0),this._initialUpgradeComplete||this.setAttribute("data-upgrading",""),this._harvest({scheduleMeasure:!1}),this._attachSlotObservers()}_finishInitialUpgrade(){this._initialUpgradeComplete||(this._initialUpgradeComplete=!0,requestAnimationFrame(()=>{this.isConnected&&(this._measure(),this.removeAttribute("data-upgrading"))}))}firstUpdated(){this._syncLandmarkAttributes(),this.renderRoot.addEventListener("focusin",this._onLocalFocusIn),this.showDrawer&&!this.deferDrawer&&this._ensureDrawerReady(),this.updateComplete.then(()=>{this._harvest({scheduleMeasure:!1}),this._attachSlotObservers(),this._syncDropdownTabs(),this._finishInitialUpgrade()});const e=this._top;e&&(this._ro=new ResizeObserver(()=>this._scheduleMeasure()),this._ro.observe(e)),window.addEventListener("resize",this._onWindowResize,{passive:!0})}updated(e){e.has("searchMax")&&this.style.setProperty("--scb-header-search-max",this.searchMax??"380px"),e.has("searchMin")&&this.style.setProperty("--scb-header-search-min",this.searchMin??"250px"),e.has("searchHeight")&&(this.searchHeight&&this.searchHeight.trim()?this.style.setProperty("--scb-search-height",this.searchHeight.trim()):this.style.removeProperty("--scb-search-height")),(e.has("logoWidth")||e.has("logoHeight")||e.has("logoAspectRatio"))&&this._applyLogoSizing(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&this._applySpacing(),(e.has("paddingInline")||e.has("paddingInlineExpanded"))&&this._applyPaddingInline(),(e.has("banner")||e.has("bannerLabel"))&&this._syncLandmarkAttributes(),(e.has("utilityItems")||e.has("tabs")||e.has("logoText")||e.has("logotypeText")||e.has("logoSrc")||e.has("logoWidth")||e.has("logoHeight")||e.has("logoAspectRatio")||e.has("activeTab")||e.has("_slotNavItems")||e.has("_slotUtils")||e.has("_slotMenu")||e.has("showDrawer")||e.has("alwaysShowMenuButton")||e.has("showSearch")||e.has("layoutPending")||e.has("searchMax")||e.has("searchMin")||e.has("paddingInline")||e.has("paddingInlineExpanded")||e.has("size"))&&this.updateComplete.then(()=>{this._scheduleMeasure()}),(e.has("showDrawer")||e.has("deferDrawer"))&&this.showDrawer&&!this.deferDrawer&&this._ensureDrawerReady(),e.has("showSearch")&&!this.showSearch&&this._setMobileSearchOpen(!1),e.has("layoutPending")&&!this.layoutPending&&this.requestLayout(),(e.has("activeTab")||e.has("_slotNavItems")||e.has("tabs")||e.has("size"))&&this.updateComplete.then(()=>{this._syncDropdownTabs()})}disconnectedCallback(){this._ro?.disconnect(),this._slotMo?.disconnect(),this._slotWatchers.forEach(e=>e.disconnect()),this._slotWatchers=[],this.renderRoot.removeEventListener("focusin",this._onLocalFocusIn),window.removeEventListener("keydown",this._onGlobalFocusRingKeydown,!0),window.removeEventListener("pointerdown",this._onGlobalFocusRingPointerDown,!0),window.removeEventListener("resize",this._onWindowResize),super.disconnectedCallback()}_mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t){if(/^\d+$/.test(t)){const r=Math.max(0,Math.min(14,parseInt(t,10)));return`var(--spacing-${r}, ${I[r]}px)`}return t}}_applySpacing(){const e=this._mapSpacingToken(this.spacing),t=this._mapSpacingToken(this.spacingTop)??e,r=this._mapSpacingToken(this.spacingBottom)??e;t?this.style.setProperty("--scb-header-spacing-block-start",t):this.style.removeProperty("--scb-header-spacing-block-start"),r?this.style.setProperty("--scb-header-spacing-block-end",r):this.style.removeProperty("--scb-header-spacing-block-end")}_applyPaddingInline(){const e=this._mapSpacingToken(this.paddingInline),t=this._mapSpacingToken(this.paddingInlineExpanded)??e;e?this.style.setProperty("--scb-header-padding-inline",e):this.style.removeProperty("--scb-header-padding-inline"),t?this.style.setProperty("--scb-header-padding-inline-expanded",t):this.style.removeProperty("--scb-header-padding-inline-expanded")}_syncLandmarkAttributes(){const e=this.renderRoot.querySelector(".header-landmark");if(!e)return;if(!this.banner){e.removeAttribute("role"),e.removeAttribute("aria-label");return}e.setAttribute("role","banner");const t=(this.bannerLabel??"").trim();t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label")}_applyLogoSizing(){const e=(this.logoWidth??"").trim(),t=(this.logoHeight??"").trim(),r=(this.logoAspectRatio??"").trim();e?this.style.setProperty("--scb-header-logo-img-w",e):this.style.removeProperty("--scb-header-logo-img-w"),t?this.style.setProperty("--scb-header-logo-img-h",t):e?this.style.setProperty("--scb-header-logo-img-h","auto"):this.style.removeProperty("--scb-header-logo-img-h"),r?this.style.setProperty("--scb-header-logo-img-aspect-ratio",r):this.style.removeProperty("--scb-header-logo-img-aspect-ratio")}_closeDrawerNow(){const e=this.renderRoot.querySelector(`#${this._drawerId}`);e&&(e.open=!1)}_openDrawerNow(){const e=this.renderRoot.querySelector(`#${this._drawerId}`);e&&(e.open=!0)}_ensureFocusRingReady(){customElements.get("md-focus-ring")||(this._focusRingImportPromise??(this._focusRingImportPromise=S(()=>import("../shared/lazy-focus-ring.js"),__vite__mapDeps([0,1]),import.meta.url)),this._focusRingImportPromise.then(({ensureFocusRingReady:e})=>{e()}))}async _ensureDrawerReady(){this._drawerReady||(this._drawerImportPromise??(this._drawerImportPromise=Promise.all([S(()=>import("../scb-drawer/scb-drawer.js"),__vite__mapDeps([2,3,4,5,6,7]),import.meta.url),S(()=>import("../scb-menu/scb-menu.js"),__vite__mapDeps([8,7,3,4,5,6,9,1,10,11,12]),import.meta.url),S(()=>import("../scb-search/scb-search.js"),__vite__mapDeps([13,3,1,4,14,15,5,16,17,0]),import.meta.url),S(()=>import("../../vendor/scb-header-drawer.internal.js").then(e=>{this._drawerRenderer=e}),__vite__mapDeps([18,4,5]),import.meta.url),this._ensureDrawerSlotComponentsReady()]).then(()=>{})),await this._drawerImportPromise,this._drawerReady=!0,this._syncDrawerCloseNodes())}_drawerSlotContains(e){return[...this.querySelectorAll('[slot="drawer-menu"], [slot="drawer-close"]')].some(t=>t.matches(e)||!!t.querySelector(e))}async _ensureDrawerSlotComponentsReady(){this.querySelector('[slot="drawer-menu"], [slot="drawer-close"]')&&await Promise.all([this._drawerSlotContains("scb-button")?S(()=>import("../scb-button/scb-button.js"),__vite__mapDeps([19,7,3,1,4,5]),import.meta.url):Promise.resolve(),this._drawerSlotContains("scb-icon-button")?S(()=>import("../scb-icon-button/scb-icon-button.js"),__vite__mapDeps([20,7,3,1,4,5]),import.meta.url):Promise.resolve(),this._drawerSlotContains("scb-skeleton")?S(()=>import("../scb-skeleton/scb-skeleton.js"),__vite__mapDeps([21,3,4,5]),import.meta.url):Promise.resolve(),this._drawerSlotContains("scb-grid")?S(()=>import("../scb-grid/scb-grid.js"),__vite__mapDeps([22,7,3,4,5,23,24]),import.meta.url):Promise.resolve(),this._drawerSlotContains("scb-grid-item")?S(()=>import("../scb-grid/scb-grid-item.js"),__vite__mapDeps([23,7,3,4,5]),import.meta.url):Promise.resolve()])}async _ensureDropdownReady(){customElements.get("scb-dropdown")||(this._dropdownImportPromise??(this._dropdownImportPromise=S(()=>import("../scb-dropdown/scb-dropdown.js").then(()=>{}),__vite__mapDeps([25,3,4,14,15,5,19,7,1,10,26,27,16,17,6,0,28]),import.meta.url)),await this._dropdownImportPromise)}_syncMenuBtnAria(){this.renderRoot.querySelectorAll(".menu-trigger").forEach(e=>{e.setAttribute("aria-expanded",String(this._menuExpanded))})}_getNavItems(){return this._slotNavItems.length?this._slotNavItems:(this.tabs??[]).map(e=>({kind:"tab",...e}))}_getDropdownForSlot(e){const t=this.querySelector(`[slot="${e}"]`);return t?t.tagName.toLowerCase()==="scb-dropdown"?t:t.querySelector("scb-dropdown"):null}_syncDropdownTabs(){this._getNavItems().forEach((e,t)=>{if(e.kind!=="dropdown")return;const r=this._getDropdownForSlot(e.slotName);if(!r)return;const i=String(t);r.getAttribute("data-index")!==i&&r.setAttribute("data-index",i),r.hasAttribute("as-tab")||r.setAttribute("as-tab","");const s=this.size,o=r;o?.size!==s&&(o.size=s),t===this.activeTab?r.getAttribute("aria-current")!=="page"&&r.setAttribute("aria-current","page"):r.hasAttribute("aria-current")&&r.removeAttribute("aria-current")})}_readTabIndexFromEvent(e){const t=e.composedPath?e.composedPath():[];for(const r of t){if(!(r instanceof HTMLElement))continue;const i=r.getAttribute("data-index");if(i==null)continue;const s=Number(i);if(Number.isFinite(s))return s}return null}_focusTabAtIndex(e){const t=this._getNavItems()[e];if(t){if(t.kind==="dropdown"){this._getDropdownForSlot(t.slotName)?.focus?.();return}this.renderRoot.querySelector(`.tab-link[data-index="${e}"]`)?.focus?.()}}_syncFlags(e,t){this.toggleAttribute("data-no-utility",e),this.toggleAttribute("data-no-search",t)}_emitSearchInput(e){this.searchText=e,this.dispatchEvent(new CustomEvent("search-input",{detail:{value:this.searchText},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("searchinput",{detail:{value:this.searchText},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("search-text-change",{detail:{value:this.searchText},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("searchtextchange",{detail:{value:this.searchText},bubbles:!0,composed:!0}))}_emitSearchChange(e,t){this.searchText=e,this.dispatchEvent(new CustomEvent("search-change",{detail:{value:this.searchText,active:t},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("searchchange",{detail:{value:this.searchText,active:t},bubbles:!0,composed:!0}))}_renderMenuButton(e="",t=!1){const r=e?`menu-trigger ${e}`:"menu-trigger",i=(this.menuButtonLabel??"").trim()||"Meny",s=(this.menuOpenLabel??"").trim()||i,o=this._menuExpanded?"true":"false";return t?m`
56
56
  <button
57
57
  type="button"
58
58
  class=${`${r} header-icon-button`}
59
- aria-label=${s}
59
+ aria-label=${i}
60
60
  aria-controls=${this._drawerId}
61
61
  aria-haspopup="dialog"
62
62
  aria-expanded=${o}
63
- title=${i}
63
+ title=${s}
64
64
  @click=${this._onMenuClick}
65
65
  >
66
66
  <span class="header-symbol" aria-hidden="true">menu</span>
@@ -73,16 +73,16 @@ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor
73
73
  aria-controls=${this._drawerId}
74
74
  aria-haspopup="dialog"
75
75
  aria-expanded=${o}
76
- title=${i}
76
+ title=${s}
77
77
  @click=${this._onMenuClick}
78
78
  >
79
- <span>${s}</span>
79
+ <span>${i}</span>
80
80
  <span class="header-symbol" aria-hidden="true">menu</span>
81
81
  <md-focus-ring aria-hidden="true"></md-focus-ring>
82
82
  </button>
83
- `}_renderSearchForm(e,t,r=!0,s=!1){const i=this.searchPlaceholder??"",o=i.trim()||e,u=(this.searchClearLabel??"").trim()||"Rensa sökfält",n=(this.searchText??"").length>0;return m`
83
+ `}_renderSearchForm(e,t,r=!0,i=!1){const s=this.searchPlaceholder??"",o=s.trim()||e,u=(this.searchClearLabel??"").trim()||"Rensa sökfält",n=(this.searchText??"").length>0;return m`
84
84
  <form
85
- class=${s?"header-search header-search--mobile":"header-search"}
85
+ class=${i?"header-search header-search--mobile":"header-search"}
86
86
  style=${t}
87
87
  role="search"
88
88
  @submit=${this._onNativeSearchSubmit}
@@ -91,11 +91,11 @@ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor
91
91
  <span class="header-search-icon header-symbol" aria-hidden="true">search</span>
92
92
  <span class="sr-only">${o}</span>
93
93
  <input
94
- id=${s?w:this._searchId}
94
+ id=${i?w:this._searchId}
95
95
  class="header-search-input"
96
96
  type="search"
97
97
  .value=${this.searchText}
98
- placeholder=${i||w}
98
+ placeholder=${s||w}
99
99
  aria-label=${o}
100
100
  @input=${this._onNativeSearchInput}
101
101
  />
@@ -118,7 +118,7 @@ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor
118
118
  </button>
119
119
  `:w}
120
120
  </form>
121
- `}render(){const e=this._getNavItems(),t=this._slotUtils.length?this._slotUtils:this.utilityItems,r=this._slotMenu.length?this._slotMenu:this.menuData??[],s=this.logoText||this.logotypeText,i=this.logoAlt||s||"Gå till startsidan",o=this.querySelector('[slot="drawer-menu"]')!==null,u=this.querySelector('[slot="drawer-close"]')!==null;this._syncFlags(t.length===0,!this.showSearch);const n=this.searchHeight&&this.searchHeight.trim()?`--scb-search-height:${this.searchHeight.trim()}`:"",p=e.length>0||this.reserveTabs||this.layoutPending,h=(this.reserveTabs||this.layoutPending)&&(this.layoutPending||e.length===0),f=this._drawerRenderer,y=this.showDrawer&&this._drawerReady&&f,_=typeof window<"u"&&window.innerWidth>=this.BP_MD,c=this.showDrawer&&(_?this.alwaysShowMenuButton||this._collapsed:!0),x=c&&!_,g=c&&_,v=(this.searchButtonLabel??"").trim()||"Sök",C=(this.searchCloseLabel??"").trim()||"Stäng sök",M=(this.utilityNavigationLabel??"").trim()||"Funktionslänkar",$=(this.mainNavigationLabel??"").trim()||"Huvudnavigering",D=this.showSearch&&!this._mobileSearchOpen;return m`
121
+ `}render(){const e=this._getNavItems(),t=this._slotUtils.length?this._slotUtils:this.utilityItems,r=this._slotMenu.length?this._slotMenu:this.menuData??[],i=this.logoText||this.logotypeText,s=this.logoAlt||i||"Gå till startsidan",o=this.querySelector('[slot="drawer-menu"]')!==null,u=this.querySelector('[slot="drawer-close"]')!==null;this._syncFlags(t.length===0,!this.showSearch);const n=this.searchHeight&&this.searchHeight.trim()?`--scb-search-height:${this.searchHeight.trim()}`:"",p=e.length>0||this.reserveTabs||this.layoutPending,h=(this.reserveTabs||this.layoutPending)&&(this.layoutPending||e.length===0),v=this._drawerRenderer,f=this.showDrawer&&this._drawerReady&&v,_=typeof window<"u"&&window.innerWidth>=this.BP_MD,c=this.showDrawer&&(_?this.alwaysShowMenuButton||this._collapsed:!0),x=c&&!_,g=c&&_,y=(this.searchButtonLabel??"").trim()||"Sök",C=(this.searchCloseLabel??"").trim()||"Stäng sök",M=(this.utilityNavigationLabel??"").trim()||"Funktionslänkar",$=(this.mainNavigationLabel??"").trim()||"Huvudnavigering",D=this.showSearch&&!this._mobileSearchOpen;return m`
122
122
  <slot
123
123
  id="data-slot"
124
124
  @slotchange=${()=>{this._harvest(),this._attachSlotObservers()}}
@@ -136,24 +136,24 @@ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor
136
136
  <a
137
137
  class="logo-group"
138
138
  href=${this.logoHref}
139
- aria-label=${i}
139
+ aria-label=${s}
140
140
  >
141
141
  ${this._renderLogo()}
142
- <span class="logo-text">${s}</span>
142
+ <span class="logo-text">${i}</span>
143
143
  </a>
144
144
  <md-focus-ring aria-hidden="true"></md-focus-ring>
145
145
  </div>
146
146
 
147
147
  <div class="actions">
148
148
  <nav class="utility" aria-label=${M}>
149
- ${t.map(S=>m`
149
+ ${t.map(k=>m`
150
150
  <a
151
151
  class="utility-link"
152
- href=${S.href}
153
- target=${S.target||w}
154
- rel=${S.target==="_blank"?"noopener noreferrer":w}
152
+ href=${k.href}
153
+ target=${k.target||w}
154
+ rel=${k.target==="_blank"?"noopener noreferrer":w}
155
155
  >
156
- ${S.label}
156
+ ${k.label}
157
157
  <md-focus-ring aria-hidden="true"></md-focus-ring>
158
158
  </a>
159
159
  `)}
@@ -161,15 +161,15 @@ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor
161
161
 
162
162
  ${this.showSearch?m`
163
163
  <div class="search" style=${n}>
164
- ${this._renderSearchForm(v,n)}
164
+ ${this._renderSearchForm(y,n)}
165
165
  </div>
166
166
  `:w}
167
167
  ${D?m`
168
168
  <button
169
169
  type="button"
170
170
  class="mobile-search-trigger header-icon-button"
171
- aria-label=${v}
172
- title=${v}
171
+ aria-label=${y}
172
+ title=${y}
173
173
  @click=${this._onMobileSearchToggle}
174
174
  >
175
175
  <span class="header-symbol" aria-hidden="true">search</span>
@@ -181,7 +181,7 @@ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor
181
181
 
182
182
  ${this.showSearch&&this._mobileSearchOpen?m`
183
183
  <div class="mobile-search-panel" style=${n}>
184
- ${this._renderSearchForm(v,n,!1,!0)}
184
+ ${this._renderSearchForm(y,n,!1,!0)}
185
185
  <button
186
186
  type="button"
187
187
  class="mobile-search-close header-icon-button"
@@ -214,20 +214,20 @@ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor
214
214
  @keydown=${this._onTabsKeydown}
215
215
  @scb-dropdown-tab-activate=${this._onDropdownTabActivate}
216
216
  >
217
- ${e.map((S,P)=>S.kind==="dropdown"?m`
217
+ ${e.map((k,P)=>k.kind==="dropdown"?m`
218
218
  <div class="tab-wrap">
219
- <slot name=${S.slotName}></slot>
219
+ <slot name=${k.slotName}></slot>
220
220
  </div>
221
- `:S.href?m`
221
+ `:k.href?m`
222
222
  <div class="tab-wrap">
223
223
  <a
224
224
  class="tab-link"
225
- href=${S.href}
225
+ href=${k.href}
226
226
  data-index=${P}
227
227
  aria-current=${P===this.activeTab?"page":"false"}
228
228
  @click=${this._onTabClick}
229
229
  >
230
- ${S.label}
230
+ ${k.label}
231
231
  </a>
232
232
  <md-focus-ring aria-hidden="true"></md-focus-ring>
233
233
  </div>
@@ -240,7 +240,7 @@ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor
240
240
  aria-current=${P===this.activeTab?"page":"false"}
241
241
  @click=${this._onTabClick}
242
242
  >
243
- ${S.label}
243
+ ${k.label}
244
244
  </button>
245
245
  <md-focus-ring aria-hidden="true"></md-focus-ring>
246
246
  </div>
@@ -256,8 +256,8 @@ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor
256
256
  <div class="divider" role="presentation"></div>
257
257
  </div>
258
258
 
259
- ${y?f.renderHeaderDrawer({drawerId:this._drawerId,drawerOverlay:this.drawerOverlay,size:this.size,drawerLabel:(this.menuLabel??"").trim()||(this.menuButtonLabel??"").trim()||"Meny",menuLabel:this.menuLabel,menuSubLabel:this.menuSubLabel,menuSearchPlaceholder:this.menuSearchPlaceholder,menuSectionLabel:this.menuSectionLabel,includeUtilityInMenu:this.includeUtilityInMenu,menu:r,utils:t,hasDrawerCloseSlot:u,hasDrawerMenuSlot:o,onDrawerOpened:this._onDrawerOpened,onDrawerClosed:this._onDrawerClosed,onMenuSelect:this._onMenuSelect,onMenuSelectAlias:this._onMenuSelectAlias,onDrawerSlotChange:()=>{this._ensureDrawerSlotComponentsReady()}}):w}
260
- `}_renderTabSkeletons(){const e=["96px","72px","88px","64px"],t=(this.reserveTabsWidths??"").split(/[\s,]+/).map(o=>o.trim()).filter(Boolean).map(o=>/^\d+(?:\.\d+)?$/.test(o)?`${o}px`:o),r=t.length>0?t:e,s=Number(this.reserveTabsCount),i=Number.isFinite(s)&&s>0?Math.floor(s):t.length>0?t.length:e.length;return m`${Array.from({length:i},(o,u)=>r[u%r.length]).map(o=>m`<span class="tab-skeleton" style=${`inline-size:${o}`}></span>`)}`}_renderLogo(){const e=(this.logoSrc??"").trim();return e?m`<img class="logo" src=${e} alt="" aria-hidden="true" />`:m`
259
+ ${f?v.renderHeaderDrawer({drawerId:this._drawerId,drawerOverlay:this.drawerOverlay,size:this.size,drawerLabel:(this.menuLabel??"").trim()||(this.menuButtonLabel??"").trim()||"Meny",menuLabel:this.menuLabel,menuSubLabel:this.menuSubLabel,menuSearchPlaceholder:this.menuSearchPlaceholder,menuSectionLabel:this.menuSectionLabel,includeUtilityInMenu:this.includeUtilityInMenu,menu:r,utils:t,hasDrawerCloseSlot:u,hasDrawerMenuSlot:o,onDrawerOpened:this._onDrawerOpened,onDrawerClosed:this._onDrawerClosed,onMenuSelect:this._onMenuSelect,onMenuSelectAlias:this._onMenuSelectAlias,onDrawerSlotChange:()=>{this._ensureDrawerSlotComponentsReady()}}):w}
260
+ `}_renderTabSkeletons(){const e=["96px","72px","88px","64px"],t=(this.reserveTabsWidths??"").split(/[\s,]+/).map(o=>o.trim()).filter(Boolean).map(o=>/^\d+(?:\.\d+)?$/.test(o)?`${o}px`:o),r=t.length>0?t:e,i=Number(this.reserveTabsCount),s=Number.isFinite(i)&&i>0?Math.floor(i):t.length>0?t.length:e.length;return m`${Array.from({length:s},(o,u)=>r[u%r.length]).map(o=>m`<span class="tab-skeleton" style=${`inline-size:${o}`}></span>`)}`}_renderLogo(){const e=(this.logoSrc??"").trim();return e?m`<img class="logo" src=${e} alt="" aria-hidden="true" />`:m`
261
261
  <svg
262
262
  class="logo"
263
263
  viewBox="0 0 48 54"
@@ -291,80 +291,40 @@ import{f as A,g as w,h as R,m as N,p as d,v as m,y as O}from"../../vendor/vendor
291
291
  </clipPath>
292
292
  </defs>
293
293
  </svg>
294
- `}},E=T,T._JSON_ARRAY={fromAttribute:b=>{if(b==null||b==="")return[];try{const e=JSON.parse(b);return Array.isArray(e)?e:[]}catch{return[]}},toAttribute:b=>b==null?null:JSON.stringify(b)},T.BP_SM_DEFAULT=600,T.BP_MD_DEFAULT=840,T.styles=O`:host{display:block;margin-block-start:var(--scb-header-spacing-block-start, 0);margin-block-end:var(--scb-header-spacing-block-end, 0);background:var(--scb-header-background, transparent);color:var(--md-sys-color-on-surface, #1b1b1f);--scb-header-search-max:380px;--scb-header-search-min:250px;--scb-header-search-padding-x:var(--spacing-4, 12px);--scb-header-search-padding-y:calc(var(--spacing-3, 8px) - var(--stroke-border, 1px));--scb-header-search-leading-size:var(--scale-10, 40px);--scb-header-search-icon-size:var(--icon-size-medium, 24px);--scb-header-search-font-size:var(--md-sys-typescale-body-medium-size, 16px);--scb-header-search-line-height:var(--md-sys-typescale-body-medium-line-height, 24px);--scb-header-search-button-padding-x:var(--spacing-5, 16px);--scb-header-search-button-font-size:var(--md-sys-typescale-label-small-size, 14px);--scb-header-search-button-line-height:var(--md-sys-typescale-label-small-line-height, 20px);--scb-header-search-button-font-weight:var(--md-sys-typescale-label-small-weight, 600);--scb-header-search-control-height:calc(
295
- var(--scb-header-search-line-height) +
296
- var(--scb-header-search-padding-y) +
297
- var(--scb-header-search-padding-y) +
298
- var(--stroke-border, 1px) +
299
- var(--stroke-border, 1px)
300
- );--scb-header-padding-inline:var(--spacing-0, 0px);--scb-header-padding-inline-expanded:var(--scb-header-padding-inline);--scb-header-logo-w:var(--icon-size-extra-extra-large, 48px);--scb-header-logo-h:calc(var(--scb-header-logo-w) * 1.125);--scb-header-logo-slot-w:var(--scb-header-logo-img-w, auto);--scb-header-logo-slot-h:var(--scb-header-logo-img-h, var(--scb-header-logo-h));--scb-header-logo-slot-aspect-ratio:var(--scb-header-logo-img-aspect-ratio, 48 / 54);--scb-header-logo-text-font-size:var(
301
- --md-sys-typescale-body-medium-size,
302
- 1rem
294
+ `}},E=z,z._JSON_ARRAY={fromAttribute:b=>{if(b==null||b==="")return[];try{const e=JSON.parse(b);return Array.isArray(e)?e:[]}catch{return[]}},toAttribute:b=>b==null?null:JSON.stringify(b)},z.BP_SM_DEFAULT=600,z.BP_MD_DEFAULT=840,z.styles=O`:host,:host([size='medium']){--scb-header-search-icon-size:var(--icon-size-medium, 24px);--scb-header-utility-padding-block:calc(var(--spacing-4, 12px) - var(--spacing-1, 2px));--scb-header-utility-padding-inline:var(--spacing-5, 16px)}:host{display:block;margin-block-start:var(--scb-header-spacing-block-start, 0);margin-block-end:var(--scb-header-spacing-block-end, 0);background:var(--scb-header-background, transparent);color:var(--md-sys-color-on-surface, #1b1b1f);--scb-header-search-max:380px;--scb-header-search-min:250px;--scb-header-search-padding-x:var(--spacing-5, 16px);--scb-header-search-padding-y:calc(var(--spacing-5, 16px) - var(--spacing-1, 2px));--scb-header-search-leading-size:var(--scb-control-size-large, var(--scale-12, 56px));--scb-header-search-font-family:var(--scb-form-control-text-font, var(--scb-typography-body-large-font, var(--md-sys-typescale-body-large-font, var(--brand-font, Inter))));--scb-header-search-font-size:var(--scb-form-control-text-size, var(--scb-typography-body-large-size, var(--md-sys-typescale-body-large-size, 18px)));--scb-header-search-line-height:var(--scb-form-control-text-line-height, var(--scb-typography-body-large-line-height, var(--md-sys-typescale-body-large-line-height, 26px)));--scb-header-search-letter-spacing:var(--scb-form-control-text-letter-spacing, var(--scb-typography-body-large-tracking, var(--md-sys-typescale-body-large-tracking, 0)));--scb-header-search-font-weight:var(--scb-form-control-text-font-weight, var(--scb-typography-body-large-weight, var(--md-sys-typescale-body-large-weight, var(--weight-regular, 400))));--scb-header-search-button-padding-x:var(--spacing-7, 24px);--scb-header-search-button-font-size:var(--scb-typography-label-medium-size, var(--md-sys-typescale-label-medium-size, 16px));--scb-header-search-button-line-height:var(--scb-typography-label-medium-line-height, var(--md-sys-typescale-label-medium-line-height, 24px));--scb-header-search-button-font-weight:var(--scb-typography-label-medium-weight, var(--md-sys-typescale-label-medium-weight, 600));--scb-header-search-control-height:var(--scb-control-size-large, var(--scale-12, 56px));--scb-header-padding-inline:var(--spacing-0, 0px);--scb-header-padding-inline-expanded:var(--scb-header-padding-inline);--scb-header-logo-w:var(--icon-size-extra-extra-large, 48px);--scb-header-logo-h:calc(var(--scb-header-logo-w) * 1.125);--scb-header-logo-slot-w:var(--scb-header-logo-img-w, auto);--scb-header-logo-slot-h:var(--scb-header-logo-img-h, var(--scb-header-logo-h));--scb-header-logo-slot-aspect-ratio:var(--scb-header-logo-img-aspect-ratio, 48 / 54);--scb-header-logo-text-font-size:var(
295
+ --scb-typography-body-large-size,
296
+ var(--md-sys-typescale-body-large-size, 1.125rem)
303
297
  );--scb-header-logo-text-line-height:var(
304
- --md-sys-typescale-body-medium-line-height,
305
- 1.5rem
306
- );--scb-header-utility-font-size:var(
307
- --md-sys-typescale-body-medium-size,
308
- 1rem
298
+ --scb-typography-body-large-line-height,
299
+ var(--md-sys-typescale-body-large-line-height, 1.625rem)
300
+ );--scb-header-logo-text-letter-spacing:var(--scb-typography-body-large-tracking, var(--md-sys-typescale-body-large-tracking, 0));--scb-header-utility-font-size:var(
301
+ --scb-typography-body-large-size,
302
+ var(--md-sys-typescale-body-large-size, 1.125rem)
309
303
  );--scb-header-utility-line-height:var(
310
- --md-sys-typescale-body-medium-line-height,
311
- 1.5rem
312
- );--scb-header-tab-font-size:var(
313
- --md-sys-typescale-title-small-size,
314
- 1rem
304
+ --scb-typography-body-large-line-height,
305
+ var(--md-sys-typescale-body-large-line-height, 1.625rem)
306
+ );--scb-header-utility-font-weight:var(--scb-typography-body-large-weight-emphasized, var(--md-sys-typescale-body-large-weight-emphasized, 600));--scb-header-utility-letter-spacing:var(--scb-typography-body-large-tracking, var(--md-sys-typescale-body-large-tracking, 0));--scb-header-tab-font-size:var(
307
+ --scb-typography-title-medium-size,
308
+ var(--md-sys-typescale-title-medium-size, 1.125rem)
315
309
  );--scb-header-tab-line-height:var(
316
- --md-sys-typescale-title-small-line-height,
317
- 1.5rem
318
- )}:host([size='small']){--scb-header-logo-text-font-size:var(
319
- --md-sys-typescale-body-small-size,
320
- 0.875rem
321
- );--scb-header-logo-text-line-height:var(
322
- --md-sys-typescale-body-small-line-height,
323
- 1.25rem
324
- );--scb-header-utility-font-size:var(
325
- --md-sys-typescale-body-small-size,
326
- 0.875rem
327
- );--scb-header-utility-line-height:var(
328
- --md-sys-typescale-body-small-line-height,
329
- 1.25rem
330
- );--scb-header-tab-font-size:var(
331
- --md-sys-typescale-label-small-size,
332
- 0.875rem
333
- );--scb-header-tab-line-height:var(
334
- --md-sys-typescale-label-small-line-height,
335
- 1.25rem
336
- );--scb-header-search-padding-x:var(--spacing-3, 8px);--scb-header-search-padding-y:calc(var(--spacing-2, 4px) + var(--stroke-border, 1px));--scb-header-search-leading-size:var(--scale-08, 32px);--scb-header-search-icon-size:var(--icon-size-small, 20px);--scb-header-search-font-size:var(--md-sys-typescale-body-small-size, 14px);--scb-header-search-line-height:var(--md-sys-typescale-body-small-line-height, 20px);--scb-header-search-button-padding-x:var(--spacing-4, 12px)}:host([size='large']){--scb-header-logo-text-font-size:var(
337
- --md-sys-typescale-body-large-size,
338
- 1.125rem
339
- );--scb-header-logo-text-line-height:var(
340
- --md-sys-typescale-body-large-line-height,
341
- 1.625rem
342
- );--scb-header-utility-font-size:var(
343
- --md-sys-typescale-body-large-size,
344
- 1.125rem
345
- );--scb-header-utility-line-height:var(
346
- --md-sys-typescale-body-large-line-height,
347
- 1.625rem
348
- );--scb-header-tab-font-size:var(
349
- --md-sys-typescale-title-medium-size,
350
- 1.125rem
351
- );--scb-header-tab-line-height:var(
352
- --md-sys-typescale-title-medium-line-height,
353
- 1.625rem
354
- );--scb-header-search-padding-x:var(--spacing-5, 16px);--scb-header-search-padding-y:calc(var(--spacing-5, 16px) - var(--spacing-1, 2px));--scb-header-search-leading-size:var(--scale-11, 48px);--scb-header-search-icon-size:var(--icon-size-medium, 24px);--scb-header-search-font-size:var(--md-sys-typescale-body-large-size, 18px);--scb-header-search-line-height:var(--md-sys-typescale-body-large-line-height, 26px);--scb-header-search-button-padding-x:var(--spacing-7, 24px);--scb-header-search-button-font-size:var(--md-sys-typescale-label-medium-size, 16px);--scb-header-search-button-line-height:var(--md-sys-typescale-label-medium-line-height, 24px);--scb-header-search-button-font-weight:var(--md-sys-typescale-label-medium-weight, 600)}.header-grid{box-sizing:border-box;inline-size:100%;max-inline-size:var(--scb-header-max-width, 1440px);margin-inline:auto;padding-inline:var(--scb-header-padding-inline)}@media (min-width:840px){.header-grid{padding-inline:var(--scb-header-padding-inline-expanded)}}.header-grid-item{min-inline-size:0}.top-row{display:flex;align-items:center;gap:var(--spacing-7, 24px);padding-block:var(--spacing-5, 16px);min-width:0;position:relative}.logo-wrap{display:inline-block;position:relative;border-radius:var(--scb-header-logo-focus-ring-radius,
310
+ --scb-typography-title-medium-line-height,
311
+ var(--md-sys-typescale-title-medium-line-height, 1.625rem)
312
+ );--scb-header-tab-font-weight:var(--scb-typography-title-medium-weight, var(--md-sys-typescale-title-medium-weight, 600));--scb-header-tab-letter-spacing:var(--scb-typography-title-medium-tracking, var(--md-sys-typescale-title-medium-tracking, 0));--scb-header-tab-min-block-size:var(--spacing-10, 40px);--scb-header-tab-indicator-gap:var(--spacing-2, 4px);--scb-header-tab-indicator-height:3px}:host([size='medium']){--scb-header-search-control-height:var(--scb-control-size-medium, var(--scale-10, 40px));--scb-header-search-padding-x:var(--spacing-4, 12px);--scb-header-search-padding-y:calc(var(--spacing-3, 8px) - var(--stroke-border, 1px));--scb-header-search-leading-size:var(--scb-control-size-medium, var(--scale-10, 40px));--scb-header-search-button-padding-x:var(--spacing-5, 16px)}:host([size='small']){--scb-header-search-control-height:var(--scb-control-size-small, var(--scale-08, 32px));--scb-header-search-padding-x:var(--spacing-3, 8px);--scb-header-search-padding-y:calc(var(--spacing-2, 4px) + var(--stroke-border, 1px));--scb-header-search-leading-size:var(--scb-control-size-small, var(--scale-08, 32px));--scb-header-search-icon-size:var(--icon-size-small, 20px);--scb-header-search-button-padding-x:var(--spacing-4, 12px);--scb-header-utility-padding-block:var(--spacing-2, 4px);--scb-header-utility-padding-inline:var(--spacing-4, 12px)}:host([size='large']){--scb-header-search-control-height:var(--scb-control-size-large, var(--scale-12, 56px));--scb-header-search-padding-x:var(--spacing-5, 16px);--scb-header-search-padding-y:calc(var(--spacing-5, 16px) - var(--spacing-1, 2px));--scb-header-search-leading-size:var(--scb-control-size-large, var(--scale-12, 56px));--scb-header-search-icon-size:var(--icon-size-medium, 24px);--scb-header-search-button-padding-x:var(--spacing-7, 24px);--scb-header-utility-padding-block:calc(var(--spacing-4, 12px) - var(--spacing-1, 2px));--scb-header-utility-padding-inline:var(--spacing-5, 16px)}.header-grid{box-sizing:border-box;inline-size:100%;max-inline-size:var(--scb-header-max-width, 1440px);margin-inline:auto;padding-inline:var(--scb-header-padding-inline)}@media (min-width:840px){.header-grid{padding-inline:var(--scb-header-padding-inline-expanded)}}.header-grid-item{min-inline-size:0}.top-row{display:flex;align-items:center;gap:var(--spacing-7, 24px);padding-block:var(--spacing-5, 16px);min-width:0;position:relative}.logo-wrap{display:inline-block;position:relative;border-radius:var(--scb-header-logo-focus-ring-radius,
355
313
  var(--md-sys-shape-corner-small, 4px)
356
314
  );margin-top:var(--spacing-2, 4px)}.logo-wrap md-focus-ring{position:absolute;inset:var(--spacing-neg-2, -4px);pointer-events:none;display:none;border-radius:inherit}.logo-group:focus-visible+md-focus-ring{display:block}.logo-group{display:inline-flex;align-items:center;gap:var(--spacing-5, 16px);text-decoration:none;color:inherit;flex-shrink:0;min-width:0}.logo-group:focus,.logo-group:focus-visible{outline:0}.logo-group img,.logo-group svg{width:var(--scb-header-logo-slot-w);height:var(--scb-header-logo-slot-h);aspect-ratio:var(--scb-header-logo-slot-aspect-ratio);display:block}.logo-group svg{color:var(--md-sys-color-on-surface)}.logo-group img{object-fit:contain}:host([logo-invert-dm]):host-context([theme='dark']) .logo-group img,:host([logo-invert-dm][theme='dark']) .logo-group img{filter:brightness(0) invert(1)}.logo-text{font-family:var(--brand-font, Inter),sans-serif;font-size:var(--scb-header-logo-text-font-size,
357
- var(--md-sys-typescale-body-medium-size, 1rem)
315
+ var(--md-sys-typescale-body-large-size, 1.125rem)
358
316
  );line-height:var(--scb-header-logo-text-line-height,
359
- var(--md-sys-typescale-body-medium-line-height, 1.5rem)
360
- );font-weight:var(--weight-regular, 400);letter-spacing:var(--md-sys-typescale-body-medium-tracking,
317
+ var(--md-sys-typescale-body-large-line-height, 1.625rem)
318
+ );font-weight:var(--weight-regular, 400);letter-spacing:var(--scb-header-logo-text-letter-spacing,
361
319
  -0.009375rem
362
- );color:var(--md-sys-color-on-surface, var(--p-20));white-space:nowrap}@media (max-width:360px){.logo-text{margin-right:calc(var(--spacing-9, 40px)*-1)}}.actions,.utility{align-items:center;min-width:0}.actions{display:flex;margin-left:auto;width:100%;gap:var(--spacing-3, 8px);justify-content:flex-end}.utility{display:none;flex-wrap:nowrap}@media (min-width:840px){.utility{display:flex}}:host([data-collapsed]) .utility,:host([layout-pending]) .utility{display:none!important}:host([data-layout-settling]) .actions,:host([layout-pending]) .actions{visibility:hidden}.menu-trigger{display:none;align-self:center;color:var(--md-sys-color-on-surface, #1b1b1f);--md-sys-color-primary:var(--md-sys-color-on-surface, #1b1b1f)}.menu-trigger--tabs-right{margin-left:auto}@media (max-width:839.98px){.menu-trigger{display:inline-flex}}@media (min-width:840px){:host([always-show-menu-button]) .menu-trigger,:host([data-collapsed]) .menu-trigger{display:inline-flex}}.header-search,.search{align-items:stretch;gap:var(--spacing-3, 8px)}.search{display:none;flex:0 1 var(--scb-header-search-max);max-width:var(--scb-header-search-max);min-width:var(--scb-header-search-min)}.header-search{display:flex;flex:1 1 auto;min-width:0}.header-search-field{position:relative;flex:1 1 auto;min-width:0}.header-search-input{box-sizing:border-box;inline-size:100%;min-block-size:var(--scb-search-height,
320
+ );color:var(--md-sys-color-on-surface, var(--p-20));white-space:nowrap}@media (max-width:360px){.logo-text{margin-right:calc(var(--spacing-9, 40px)*-1)}}.actions,.utility{align-items:center;min-width:0}.actions{display:flex;margin-left:auto;width:100%;gap:var(--spacing-3, 8px);justify-content:flex-end}.utility{display:none;flex-wrap:nowrap}@media (min-width:840px){.utility{display:flex}}:host([data-collapsed]) .utility,:host([layout-pending]) .utility{display:none!important}:host([data-layout-settling]) .actions,:host([layout-pending]) .actions{visibility:hidden}.menu-trigger{display:none;align-self:center;color:var(--md-sys-color-on-surface, #1b1b1f);--md-sys-color-primary:var(--md-sys-color-on-surface, #1b1b1f)}.menu-trigger--tabs-right{margin-left:auto}@media (max-width:839.98px){.menu-trigger{display:inline-flex}}@media (min-width:840px){:host([always-show-menu-button]) .menu-trigger,:host([data-collapsed]) .menu-trigger{display:inline-flex}}.header-search,.search{align-items:stretch;gap:var(--spacing-3, 8px)}.search{display:none;flex:0 1 var(--scb-header-search-max);max-width:var(--scb-header-search-max);min-width:var(--scb-header-search-min)}.header-search{display:flex;flex:1 1 auto;min-width:0}.header-search-field{position:relative;flex:1 1 auto;min-width:0}.header-search-input{box-sizing:border-box;inline-size:100%;block-size:var(--scb-search-height,
321
+ var(--scb-header-search-control-height)
322
+ );min-block-size:var(--scb-search-height,
363
323
  var(--scb-header-search-control-height)
364
- );padding-block:var(--scb-header-search-padding-y);padding-inline-start:calc(var(--scb-header-search-padding-x) + var(--scb-header-search-leading-size) + var(--spacing-2, 4px));padding-inline-end:calc(var(--scb-header-search-padding-x) + var(--scb-header-search-leading-size) + var(--spacing-2, 4px));border:var(--stroke-border, 1px) solid var(--md-sys-color-outline, #808080);border-radius:var(--radius-full, 1000px);background:0 0;color:var(--md-sys-color-on-surface, #1b1b1f);font-family:var(--md-sys-typescale-body-large-font, var(--brand-font, Inter), sans-serif);font-size:var(--scb-header-search-font-size);line-height:var(--scb-header-search-line-height);letter-spacing:0;-webkit-appearance:none;appearance:none}.header-search-input::placeholder{color:var(--md-sys-color-on-surface-variant, #1b1b1f);opacity:1}.header-search-input:hover{outline:var(--stroke-border, 1px) solid var(--md-sys-color-outline, #808080);outline-offset:0}.header-search-input:focus{outline:0}.header-search-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}.header-search-clear,.header-search-icon{position:absolute;inset-block-start:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;inline-size:var(--scb-header-search-leading-size);block-size:var(--scb-header-search-leading-size);color:var(--md-sys-color-on-surface-variant, #1b1b1f)}.header-search-icon{inset-inline-start:var(--scb-header-search-padding-x);pointer-events:none}.header-search-clear{inset-inline-end:var(--scb-header-search-padding-x);border:0;border-radius:var(--radius-full, 1000px);padding:0;background:0 0;cursor:pointer}.header-search-clear[hidden]{display:none}.header-search-field md-focus-ring.input-ring{position:absolute;inset:0;pointer-events:none;display:none;border-radius:var(--radius-full, 1000px);z-index:4}:host([data-keyboard-focus]) .header-search-input:focus~md-focus-ring.input-ring{display:block}.search-submit{flex:0 0 auto}@media (min-width:600px){.search{display:flex}}.mobile-search-trigger{display:inline-flex;color:var(--md-sys-color-on-surface, #1b1b1f)}@media (min-width:600px){.mobile-search-trigger{display:none}}.mobile-search-panel{display:none;position:absolute;inset:0;z-index:2;align-items:center;gap:var(--spacing-3, 8px);padding-block:var(--spacing-5, 16px);background:var(--scb-header-background, transparent)}.mobile-search-panel .header-search{flex:1 1 auto;min-width:0}@media (max-width:599.98px){:host([data-mobile-search-open]) .mobile-search-panel{display:flex}:host([data-mobile-search-open]) .actions,:host([data-mobile-search-open]) .logo-wrap{visibility:hidden;pointer-events:none}}@media (min-width:600px) and (max-width:839.98px){:host([data-hide-search]) .search{display:none!important}}:host([data-collapsed]) .actions,:host([data-no-utility]) .actions{gap:var(--spacing-5, 16px)}:host([data-no-utility]) .search{flex:1 1 var(--scb-header-search-max);max-width:var(--scb-header-search-max);min-width:var(--scb-header-search-min)}.tabs-inset{display:inline-block;width:fit-content;max-width:100%}.tabs-row{display:flex;align-items:center;min-height:calc(var(--spacing-10, 40px));gap:var(--spacing-5, 16px)}.tabs-row--empty{min-height:0}.tabs-row .tabs-inset{flex:1 1 auto;min-width:0}@media (max-width:839.98px){.tabs-inset{display:none}.tabs-row{min-height:0}}.tabs-nav{display:inline-flex;flex-wrap:nowrap;gap:var(--spacing-6, 18px);min-height:calc(var(--spacing-10, 40px));position:relative}.tabs-nav,.tabs-nav--skeleton{align-items:center}.tab-skeleton{flex:0 0 auto;display:inline-block;block-size:16px;border-radius:var(--radius-full, 1000px);background:linear-gradient(90deg,var(--md-sys-color-surface-container-low, #f5f5f5),var(--md-sys-color-surface-container, #ebf8ff),var(--md-sys-color-surface-container-low, #f5f5f5))}.tab-link,.tab-wrap{position:relative;display:inline-flex;align-items:stretch}.tab-wrap md-focus-ring{position:absolute;inset-block:var(--spacing-1, 2px);inset-inline:var(--spacing-neg-2, -4px);pointer-events:none;display:none;border-radius:5px}.tab-link{align-items:center;justify-content:center;padding-block:var(--spacing-4, 12px);padding:0;border:0;background:0 0;text-decoration:none;cursor:pointer;font-family:var(--md-sys-typescale-title-small-font,
365
- var(--brand-font, Inter)
324
+ );padding-block:var(--scb-header-search-padding-y);padding-inline-start:calc(var(--scb-header-search-padding-x) + var(--scb-header-search-leading-size) + var(--spacing-2, 4px));padding-inline-end:calc(var(--scb-header-search-padding-x) + var(--scb-header-search-leading-size) + var(--spacing-2, 4px));border:var(--stroke-border, 1px) solid var(--md-sys-color-outline, #808080);border-radius:var(--radius-full, 1000px);background:0 0;color:var(--md-sys-color-on-surface, #1b1b1f);font-family:var(--scb-header-search-font-family),sans-serif;font-size:var(--scb-header-search-font-size);line-height:var(--scb-header-search-line-height);font-weight:var(--scb-header-search-font-weight);letter-spacing:var(--scb-header-search-letter-spacing);-webkit-appearance:none;appearance:none}.header-search-input::placeholder{color:var(--md-sys-color-on-surface-variant, #1b1b1f);opacity:1}.header-search-input:hover{outline:var(--stroke-border, 1px) solid var(--md-sys-color-outline, #808080);outline-offset:0}.header-search-input:focus{outline:0}.header-search-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}.header-search-clear,.header-search-icon{position:absolute;inset-block-start:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;inline-size:var(--scb-header-search-leading-size);block-size:var(--scb-header-search-leading-size);color:var(--md-sys-color-on-surface-variant, #1b1b1f)}.header-search-icon{inset-inline-start:var(--scb-header-search-padding-x);pointer-events:none}.header-search-clear{inset-inline-end:var(--scb-header-search-padding-x);border:0;border-radius:var(--radius-full, 1000px);padding:0;background:0 0;cursor:pointer}.header-search-clear[hidden]{display:none}.header-search-field md-focus-ring.input-ring{position:absolute;inset:0;pointer-events:none;display:none;border-radius:var(--radius-full, 1000px);z-index:4}:host([data-keyboard-focus]) .header-search-input:focus~md-focus-ring.input-ring{display:block}.search-submit{flex:0 0 auto}@media (min-width:600px){.search{display:flex}}.mobile-search-trigger{display:inline-flex;color:var(--md-sys-color-on-surface, #1b1b1f)}@media (min-width:600px){.mobile-search-trigger{display:none}}.mobile-search-panel{display:none;position:absolute;inset:0;z-index:2;align-items:center;gap:var(--spacing-3, 8px);padding-block:var(--spacing-5, 16px);background:var(--scb-header-background, transparent)}.mobile-search-panel .header-search{flex:1 1 auto;min-width:0}@media (max-width:599.98px){:host([data-mobile-search-open]) .mobile-search-panel{display:flex}:host([data-mobile-search-open]) .actions,:host([data-mobile-search-open]) .logo-wrap{visibility:hidden;pointer-events:none}}@media (min-width:600px) and (max-width:839.98px){:host([data-hide-search]) .search{display:none!important}}:host([data-collapsed]) .actions,:host([data-no-utility]) .actions{gap:var(--spacing-5, 16px)}:host([data-no-utility]) .search{flex:1 1 var(--scb-header-search-max);max-width:var(--scb-header-search-max);min-width:var(--scb-header-search-min)}.tabs-inset{display:inline-block;width:fit-content;max-width:100%}.tabs-row{display:flex;align-items:center;min-height:calc(var(--spacing-10, 40px));gap:var(--spacing-5, 16px)}.tabs-row--empty{min-height:0}.tabs-row .tabs-inset{flex:1 1 auto;min-width:0}@media (max-width:839.98px){.tabs-inset{display:none}.tabs-row{min-height:0}}.tabs-nav{display:inline-flex;flex-wrap:nowrap;gap:var(--spacing-6, 18px);min-height:calc(var(--spacing-10, 40px));position:relative}.tabs-nav,.tabs-nav--skeleton{align-items:center}.tab-skeleton{flex:0 0 auto;display:inline-block;block-size:16px;border-radius:var(--radius-full, 1000px);background:linear-gradient(90deg,var(--md-sys-color-surface-container-low, #f5f5f5),var(--md-sys-color-surface-container, #ebf8ff),var(--md-sys-color-surface-container-low, #f5f5f5))}.tab-link,.tab-wrap{position:relative;display:inline-flex;align-items:stretch}.tab-wrap md-focus-ring{position:absolute;inset-block:var(--spacing-1, 2px);inset-inline:var(--spacing-neg-2, -4px);pointer-events:none;display:none;border-radius:5px}.tab-link{box-sizing:border-box;align-items:center;justify-content:center;min-block-size:var(--scb-header-tab-min-block-size, var(--spacing-10, 40px));padding-block-start:0;padding-block-end:var(--scb-header-tab-indicator-gap, var(--spacing-2, 4px));padding-inline:0;border:0;background:0 0;text-decoration:none;cursor:pointer;font-family:var(--scb-typography-title-medium-font,
325
+ var(--md-sys-typescale-title-medium-font, var(--brand-font, Inter))
366
326
  );font-size:var(--scb-header-tab-font-size,
367
- var(--md-sys-typescale-title-small-size, 1rem)
327
+ var(--md-sys-typescale-title-medium-size, 1.125rem)
368
328
  );line-height:var(--scb-header-tab-line-height,
369
- var(--md-sys-typescale-title-small-line-height, 1.5rem)
370
- );font-weight:var(--md-sys-typescale-title-small-weight, 500);letter-spacing:var(--md-sys-typescale-title-small-tracking, 0);color:var(--md-sys-color-on-surface);white-space:nowrap;border-radius:0;outline:0}.tab-link[aria-current=page]{color:var(--md-sys-color-primary)}.tab-link::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:999px 999px 0 0;background-color:transparent}.tab-link[aria-current=page]::after{background-color:var(--md-sys-color-primary)}.tab-link:focus-visible{outline:0}.header-icon-button:focus-visible md-focus-ring,.header-search-clear:focus-visible md-focus-ring,.header-text-button:focus-visible md-focus-ring,.search-submit:focus-visible md-focus-ring,.tab-link:focus-visible+md-focus-ring,.utility-link:focus-visible md-focus-ring{display:block}.header-text-button,.utility-link{position:relative}.header-icon-button,.header-text-button,.search-submit,.utility-link{border:0;font:inherit;letter-spacing:0;-webkit-tap-highlight-color:transparent}.search-submit{position:relative}.header-text-button,.search-submit,.utility-link{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-block-size:calc(var(--md-sys-typescale-label-small-line-height, 20px) + ((var(--spacing-4, 12px) - var(--spacing-1, 2px))*2));padding-block:calc(var(--spacing-4, 12px) - var(--spacing-1, 2px));padding-inline:var(--spacing-5, 16px);border-radius:var(--radius-full, 1000px);color:var(--md-sys-color-primary, var(--p-40, #1f44ff));font-family:var(--md-sys-typescale-label-small-font, var(--brand-font, Inter), sans-serif);font-size:var(--md-sys-typescale-label-small-size, 14px);line-height:var(--md-sys-typescale-label-small-line-height, 20px);font-weight:var(--md-sys-typescale-label-small-weight, 600);text-decoration:none;background:0 0;cursor:pointer;white-space:nowrap}.header-text-button:hover,.utility-link:hover{background:color-mix(in srgb,var(--md-sys-color-primary, #1f44ff) 8%,transparent)}.search-submit{block-size:var(--scb-search-height, var(--scb-header-search-control-height));min-block-size:var(--scb-search-height, var(--scb-header-search-control-height));min-inline-size:64px;padding-block:0;padding-inline:var(--scb-header-search-button-padding-x);font-size:var(--scb-header-search-button-font-size);line-height:var(--scb-header-search-button-line-height);font-weight:var(--scb-header-search-button-font-weight);color:var(--md-sys-color-on-secondary-container, var(--p-30, #1e00be));background:var(--md-sys-color-secondary-container, var(--p-90, #d6f1ff))}.search-submit:hover{background:color-mix(in srgb,var(--md-sys-color-secondary-container, #d6f1ff) 92%,var(--md-sys-color-on-secondary-container, #1e00be))}.header-icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;inline-size:calc(var(--icon-size-medium, 24px) + (var(--spacing-3, 12px)*2));block-size:calc(var(--icon-size-medium, 24px) + (var(--spacing-3, 12px)*2));padding:0;border-radius:var(--radius-full, 1000px);color:var(--md-sys-color-on-surface, #1b1b1f);background:0 0;cursor:pointer}.mobile-search-close,.mobile-search-trigger{color:var(--md-sys-color-on-secondary-container, var(--p-30, #1e00be));background:var(--md-sys-color-secondary-container, var(--p-90, #d6f1ff))}@media (min-width:600px){.mobile-search-trigger.header-icon-button{display:none}}.header-icon-button:hover,.header-search-clear:hover{background:color-mix(in srgb,currentColor 8%,transparent)}.mobile-search-close:hover,.mobile-search-trigger:hover{background:color-mix(in srgb,var(--md-sys-color-secondary-container, #d6f1ff) 92%,var(--md-sys-color-on-secondary-container, #1e00be))}.header-icon-button:focus,.header-icon-button:focus-visible,.header-search-clear:focus,.header-search-clear:focus-visible,.header-text-button:focus,.header-text-button:focus-visible,.search-submit:focus,.search-submit:focus-visible,.utility-link:focus,.utility-link:focus-visible{outline:0}.header-icon-button:focus-visible,.header-search-clear:focus-visible,.header-text-button:focus-visible,.search-submit:focus-visible,.utility-link:focus-visible{outline:0}.header-icon-button md-focus-ring,.header-search-clear md-focus-ring,.header-text-button md-focus-ring,.search-submit md-focus-ring,.utility-link md-focus-ring{position:absolute;inset:var(--spacing-neg-2, -4px);pointer-events:none;display:none;border-radius:inherit}.header-text-button{gap:var(--spacing-3, 8px)}.header-text-button .header-symbol{inline-size:var(--icon-size-small, 20px);font-size:var(--icon-size-small, 20px);line-height:var(--icon-size-small, 20px)}.header-symbol,.sr-only{overflow:hidden;white-space:nowrap}.header-symbol{display:inline-block;inline-size:1em;block-size:1em;font-family:"Material Symbols Outlined";font-size:var(--icon-size-medium, 24px);line-height:1;text-align:center;text-transform:none;word-wrap:normal;direction:ltr;font-feature-settings:"liga"1;font-variation-settings:"FILL"0,"wght"400,"GRAD"0,"opsz"24;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.header-symbol.scb-svg-icon{fill:currentColor;font:inherit}.header-search-icon.header-symbol{display:inline-flex;align-items:center;justify-content:center;inline-size:var(--scb-header-search-leading-size);font-size:var(--scb-header-search-icon-size)}.sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;clip:rect(0,0,0,0);border:0}.drawer-close{box-sizing:border-box;display:flex;justify-content:flex-end;padding-block-start:var(--spacing-4, 12px);padding-inline:var(--spacing-4, 12px);background:var(--md-sys-color-surface-container-lowest)}.drawer-close[hidden]{display:none}.drawer-close ::slotted(*){flex:0 0 auto}.divider{border-bottom:var(--stroke-border, 1px) solid var(--md-sys-color-outline-variant, #e0e0e0);position:relative;z-index:0}:host([data-hide-logo-text]) .logo-text{display:none}`,T);l([d({type:String,attribute:"max-width"})],a.prototype,"maxWidth",void 0);l([d({type:String,attribute:"padding-inline",reflect:!0})],a.prototype,"paddingInline",void 0);l([d({type:String,attribute:"padding-inline-expanded",reflect:!0})],a.prototype,"paddingInlineExpanded",void 0);l([d({type:String,reflect:!0})],a.prototype,"spacing",void 0);l([d({type:String,attribute:"spacing-top",reflect:!0})],a.prototype,"spacingTop",void 0);l([d({type:String,attribute:"spacing-bottom",reflect:!0})],a.prototype,"spacingBottom",void 0);l([d({type:String,reflect:!0,converter:W})],a.prototype,"size",void 0);l([d({type:String,attribute:"logo-text"})],a.prototype,"logoText",void 0);l([d({type:String,attribute:"logotype-text"})],a.prototype,"logotypeText",void 0);l([d({type:String,attribute:"logo-alt"})],a.prototype,"logoAlt",void 0);l([d({type:String,attribute:"logo-href"})],a.prototype,"logoHref",void 0);l([d({type:String,attribute:"logo-src"})],a.prototype,"logoSrc",void 0);l([d({type:String,attribute:"logo-width"})],a.prototype,"logoWidth",void 0);l([d({type:String,attribute:"logo-height"})],a.prototype,"logoHeight",void 0);l([d({type:String,attribute:"logo-aspect-ratio"})],a.prototype,"logoAspectRatio",void 0);l([d({type:Boolean,attribute:"logo-invert-dm",reflect:!0,converter:z})],a.prototype,"logoInvertDm",void 0);l([d({type:Boolean,reflect:!0})],a.prototype,"banner",void 0);l([d({type:String,attribute:"banner-label"})],a.prototype,"bannerLabel",void 0);l([d({type:Array,attribute:"tabs",converter:a._JSON_ARRAY})],a.prototype,"tabs",void 0);l([d({type:Number,attribute:"active-tab",reflect:!0})],a.prototype,"activeTab",void 0);l([d({type:Boolean,attribute:"reserve-tabs",reflect:!0,converter:z})],a.prototype,"reserveTabs",void 0);l([d({type:Number,attribute:"reserve-tabs-count"})],a.prototype,"reserveTabsCount",void 0);l([d({type:String,attribute:"reserve-tabs-widths"})],a.prototype,"reserveTabsWidths",void 0);l([d({type:Boolean,attribute:"layout-pending",reflect:!0,converter:z})],a.prototype,"layoutPending",void 0);l([d({type:Array,attribute:"utility-items",converter:a._JSON_ARRAY})],a.prototype,"utilityItems",void 0);l([d({type:String,attribute:"search-placeholder"})],a.prototype,"searchPlaceholder",void 0);l([d({type:String,attribute:"search-button-label"})],a.prototype,"searchButtonLabel",void 0);l([d({type:String,attribute:"search-clear-label"})],a.prototype,"searchClearLabel",void 0);l([d({type:String,attribute:"search-close-label"})],a.prototype,"searchCloseLabel",void 0);l([d({type:String,attribute:"menu-label"})],a.prototype,"menuLabel",void 0);l([d({type:String,attribute:"menu-button-label"})],a.prototype,"menuButtonLabel",void 0);l([d({type:String,attribute:"menu-open-label"})],a.prototype,"menuOpenLabel",void 0);l([d({type:String,attribute:"menu-sub-label"})],a.prototype,"menuSubLabel",void 0);l([d({type:String,attribute:"menu-section-label"})],a.prototype,"menuSectionLabel",void 0);l([d({type:String,attribute:"menu-search-placeholder"})],a.prototype,"menuSearchPlaceholder",void 0);l([d({type:String,attribute:"utility-navigation-label"})],a.prototype,"utilityNavigationLabel",void 0);l([d({type:String,attribute:"main-navigation-label"})],a.prototype,"mainNavigationLabel",void 0);l([d({type:Array,attribute:"menu-data",converter:a._JSON_ARRAY})],a.prototype,"menuData",void 0);l([d({type:Boolean,attribute:"defer-drawer",reflect:!0,converter:z})],a.prototype,"deferDrawer",void 0);l([d({type:Boolean,attribute:"show-drawer",reflect:!0,converter:L})],a.prototype,"showDrawer",void 0);l([d({type:Boolean,attribute:"always-show-menu-button",reflect:!0,converter:z})],a.prototype,"alwaysShowMenuButton",void 0);l([d({type:Boolean,attribute:"show-search",reflect:!0,converter:L})],a.prototype,"showSearch",void 0);l([d({type:Boolean,attribute:"include-utility-in-menu",reflect:!0,converter:z})],a.prototype,"includeUtilityInMenu",void 0);l([d({type:Boolean,attribute:"drawer-overlay",reflect:!0,converter:L})],a.prototype,"drawerOverlay",void 0);l([d({type:String,attribute:"search-max"})],a.prototype,"searchMax",void 0);l([d({type:String,attribute:"search-min"})],a.prototype,"searchMin",void 0);l([d({type:String,attribute:"search-height"})],a.prototype,"searchHeight",void 0);l([d({type:String,attribute:"search-text",reflect:!0})],a.prototype,"searchText",void 0);l([A()],a.prototype,"_drawerId",void 0);l([A()],a.prototype,"_menuExpanded",void 0);l([A()],a.prototype,"_searchId",void 0);l([A()],a.prototype,"_drawerReady",void 0);l([A()],a.prototype,"_mobileSearchOpen",void 0);l([A()],a.prototype,"_slotNavItems",void 0);l([A()],a.prototype,"_slotUtils",void 0);l([A()],a.prototype,"_slotMenu",void 0);l([A()],a.prototype,"_collapsed",void 0);l([A()],a.prototype,"_hideLogoText",void 0);a=E=l([N("scb-header")],a);
329
+ var(--md-sys-typescale-title-medium-line-height, 1.625rem)
330
+ );font-weight:var(--scb-header-tab-font-weight, var(--scb-typography-title-medium-weight, var(--md-sys-typescale-title-medium-weight, 600)));letter-spacing:var(--scb-header-tab-letter-spacing, var(--scb-typography-title-medium-tracking, var(--md-sys-typescale-title-medium-tracking, 0)));color:var(--md-sys-color-on-surface);white-space:nowrap;border-radius:0;outline:0}.tab-link[aria-current=page]{color:var(--md-sys-color-primary)}.tab-link::after{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--scb-header-tab-indicator-height, 3px);border-radius:999px 999px 0 0;background-color:transparent}.tab-link[aria-current=page]::after{background-color:var(--md-sys-color-primary)}.tab-link:focus-visible{outline:0}.header-icon-button:focus-visible md-focus-ring,.header-search-clear:focus-visible md-focus-ring,.header-text-button:focus-visible md-focus-ring,.search-submit:focus-visible md-focus-ring,.tab-link:focus-visible+md-focus-ring,.utility-link:focus-visible md-focus-ring{display:block}.header-text-button,.utility-link{letter-spacing:0;position:relative}.header-icon-button,.header-text-button,.search-submit,.utility-link{border:0;font:inherit;-webkit-tap-highlight-color:transparent}.header-icon-button{letter-spacing:0}.search-submit{position:relative}.header-text-button,.search-submit,.utility-link{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-block-size:calc(var(--scb-header-utility-line-height, 26px) + (var(--scb-header-utility-padding-block, 10px)*2));padding-block:var(--scb-header-utility-padding-block, 10px);padding-inline:var(--scb-header-utility-padding-inline, 16px);border-radius:var(--radius-full, 1000px);color:var(--md-sys-color-primary, var(--p-40, #1f44ff));font-family:var(--scb-typography-body-large-font, var(--md-sys-typescale-body-large-font, var(--brand-font, Inter))),sans-serif;font-size:var(--scb-header-utility-font-size);line-height:var(--scb-header-utility-line-height);font-weight:var(--scb-header-utility-font-weight);letter-spacing:var(--scb-header-utility-letter-spacing);text-decoration:none;background:0 0;cursor:pointer;white-space:nowrap}.search-submit{block-size:var(--scb-search-height, var(--scb-header-search-control-height));min-block-size:var(--scb-search-height, var(--scb-header-search-control-height));min-inline-size:64px;padding-block:0;padding-inline:var(--scb-header-search-button-padding-x);font-size:var(--scb-header-search-button-font-size);line-height:var(--scb-header-search-button-line-height);font-weight:var(--scb-header-search-button-font-weight);letter-spacing:0;color:var(--md-sys-color-on-secondary-container, var(--p-30, #1e00be));background:var(--md-sys-color-secondary-container, var(--p-90, #d6f1ff))}.header-text-button:hover,.utility-link:hover{background:color-mix(in srgb,var(--md-sys-color-primary, #1f44ff) 8%,transparent)}.search-submit:hover{background:color-mix(in srgb,var(--md-sys-color-secondary-container, #d6f1ff) 92%,var(--md-sys-color-on-secondary-container, #1e00be))}.header-icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;inline-size:calc(var(--icon-size-medium, 24px) + (var(--spacing-3, 12px)*2));block-size:calc(var(--icon-size-medium, 24px) + (var(--spacing-3, 12px)*2));padding:0;border-radius:var(--radius-full, 1000px);color:var(--md-sys-color-on-surface, #1b1b1f);background:0 0;cursor:pointer}.mobile-search-close,.mobile-search-trigger{color:var(--md-sys-color-on-secondary-container, var(--p-30, #1e00be));background:var(--md-sys-color-secondary-container, var(--p-90, #d6f1ff))}@media (min-width:600px){.mobile-search-trigger.header-icon-button{display:none}}.header-icon-button:hover,.header-search-clear:hover{background:color-mix(in srgb,currentColor 8%,transparent)}.mobile-search-close:hover,.mobile-search-trigger:hover{background:color-mix(in srgb,var(--md-sys-color-secondary-container, #d6f1ff) 92%,var(--md-sys-color-on-secondary-container, #1e00be))}.header-icon-button:focus,.header-icon-button:focus-visible,.header-search-clear:focus,.header-search-clear:focus-visible,.header-text-button:focus,.header-text-button:focus-visible,.search-submit:focus,.search-submit:focus-visible,.utility-link:focus,.utility-link:focus-visible{outline:0}.header-icon-button:focus-visible,.header-search-clear:focus-visible,.header-text-button:focus-visible,.search-submit:focus-visible,.utility-link:focus-visible{outline:0}.header-icon-button md-focus-ring,.header-search-clear md-focus-ring,.header-text-button md-focus-ring,.search-submit md-focus-ring,.utility-link md-focus-ring{position:absolute;inset:var(--spacing-neg-2, -4px);pointer-events:none;display:none;border-radius:inherit}.header-text-button{gap:var(--spacing-3, 8px)}.header-text-button .header-symbol{inline-size:var(--icon-size-small, 20px);font-size:var(--icon-size-small, 20px);line-height:var(--icon-size-small, 20px)}.header-symbol,.sr-only{overflow:hidden;white-space:nowrap}.header-symbol{display:inline-block;inline-size:1em;block-size:1em;font-family:"Material Symbols Outlined";font-size:var(--icon-size-medium, 24px);line-height:1;text-align:center;text-transform:none;word-wrap:normal;direction:ltr;font-feature-settings:"liga"1;font-variation-settings:"FILL"0,"wght"400,"GRAD"0,"opsz"24;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.header-symbol.scb-svg-icon{fill:currentColor;font:inherit}.header-search-icon.header-symbol{display:inline-flex;align-items:center;justify-content:center;inline-size:var(--scb-header-search-leading-size);font-size:var(--scb-header-search-icon-size)}.sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;clip:rect(0,0,0,0);border:0}.drawer-close{box-sizing:border-box;display:flex;justify-content:flex-end;padding-block-start:var(--spacing-4, 12px);padding-inline:var(--spacing-4, 12px);background:var(--md-sys-color-surface-container-lowest)}.drawer-close[hidden]{display:none}.drawer-close ::slotted(*){flex:0 0 auto}.divider{border-bottom:var(--stroke-border, 1px) solid var(--md-sys-color-outline-variant, #e0e0e0);position:relative;z-index:0}:host([data-hide-logo-text]) .logo-text{display:none}`,z);l([d({type:String,attribute:"max-width"})],a.prototype,"maxWidth",void 0);l([d({type:String,attribute:"padding-inline",reflect:!0})],a.prototype,"paddingInline",void 0);l([d({type:String,attribute:"padding-inline-expanded",reflect:!0})],a.prototype,"paddingInlineExpanded",void 0);l([d({type:String,reflect:!0})],a.prototype,"spacing",void 0);l([d({type:String,attribute:"spacing-top",reflect:!0})],a.prototype,"spacingTop",void 0);l([d({type:String,attribute:"spacing-bottom",reflect:!0})],a.prototype,"spacingBottom",void 0);l([d({type:String,reflect:!0,converter:W})],a.prototype,"size",void 0);l([d({type:String,attribute:"logo-text"})],a.prototype,"logoText",void 0);l([d({type:String,attribute:"logotype-text"})],a.prototype,"logotypeText",void 0);l([d({type:String,attribute:"logo-alt"})],a.prototype,"logoAlt",void 0);l([d({type:String,attribute:"logo-href"})],a.prototype,"logoHref",void 0);l([d({type:String,attribute:"logo-src"})],a.prototype,"logoSrc",void 0);l([d({type:String,attribute:"logo-width"})],a.prototype,"logoWidth",void 0);l([d({type:String,attribute:"logo-height"})],a.prototype,"logoHeight",void 0);l([d({type:String,attribute:"logo-aspect-ratio"})],a.prototype,"logoAspectRatio",void 0);l([d({type:Boolean,attribute:"logo-invert-dm",reflect:!0,converter:T})],a.prototype,"logoInvertDm",void 0);l([d({type:Boolean,reflect:!0})],a.prototype,"banner",void 0);l([d({type:String,attribute:"banner-label"})],a.prototype,"bannerLabel",void 0);l([d({type:Array,attribute:"tabs",converter:a._JSON_ARRAY})],a.prototype,"tabs",void 0);l([d({type:Number,attribute:"active-tab",reflect:!0})],a.prototype,"activeTab",void 0);l([d({type:Boolean,attribute:"reserve-tabs",reflect:!0,converter:T})],a.prototype,"reserveTabs",void 0);l([d({type:Number,attribute:"reserve-tabs-count"})],a.prototype,"reserveTabsCount",void 0);l([d({type:String,attribute:"reserve-tabs-widths"})],a.prototype,"reserveTabsWidths",void 0);l([d({type:Boolean,attribute:"layout-pending",reflect:!0,converter:T})],a.prototype,"layoutPending",void 0);l([d({type:Array,attribute:"utility-items",converter:a._JSON_ARRAY})],a.prototype,"utilityItems",void 0);l([d({type:String,attribute:"search-placeholder"})],a.prototype,"searchPlaceholder",void 0);l([d({type:String,attribute:"search-button-label"})],a.prototype,"searchButtonLabel",void 0);l([d({type:String,attribute:"search-clear-label"})],a.prototype,"searchClearLabel",void 0);l([d({type:String,attribute:"search-close-label"})],a.prototype,"searchCloseLabel",void 0);l([d({type:String,attribute:"menu-label"})],a.prototype,"menuLabel",void 0);l([d({type:String,attribute:"menu-button-label"})],a.prototype,"menuButtonLabel",void 0);l([d({type:String,attribute:"menu-open-label"})],a.prototype,"menuOpenLabel",void 0);l([d({type:String,attribute:"menu-sub-label"})],a.prototype,"menuSubLabel",void 0);l([d({type:String,attribute:"menu-section-label"})],a.prototype,"menuSectionLabel",void 0);l([d({type:String,attribute:"menu-search-placeholder"})],a.prototype,"menuSearchPlaceholder",void 0);l([d({type:String,attribute:"utility-navigation-label"})],a.prototype,"utilityNavigationLabel",void 0);l([d({type:String,attribute:"main-navigation-label"})],a.prototype,"mainNavigationLabel",void 0);l([d({type:Array,attribute:"menu-data",converter:a._JSON_ARRAY})],a.prototype,"menuData",void 0);l([d({type:Boolean,attribute:"defer-drawer",reflect:!0,converter:T})],a.prototype,"deferDrawer",void 0);l([d({type:Boolean,attribute:"show-drawer",reflect:!0,converter:L})],a.prototype,"showDrawer",void 0);l([d({type:Boolean,attribute:"always-show-menu-button",reflect:!0,converter:T})],a.prototype,"alwaysShowMenuButton",void 0);l([d({type:Boolean,attribute:"show-search",reflect:!0,converter:L})],a.prototype,"showSearch",void 0);l([d({type:Boolean,attribute:"include-utility-in-menu",reflect:!0,converter:T})],a.prototype,"includeUtilityInMenu",void 0);l([d({type:Boolean,attribute:"drawer-overlay",reflect:!0,converter:L})],a.prototype,"drawerOverlay",void 0);l([d({type:String,attribute:"search-max"})],a.prototype,"searchMax",void 0);l([d({type:String,attribute:"search-min"})],a.prototype,"searchMin",void 0);l([d({type:String,attribute:"search-height"})],a.prototype,"searchHeight",void 0);l([d({type:String,attribute:"search-text",reflect:!0})],a.prototype,"searchText",void 0);l([A()],a.prototype,"_drawerId",void 0);l([A()],a.prototype,"_menuExpanded",void 0);l([A()],a.prototype,"_searchId",void 0);l([A()],a.prototype,"_drawerReady",void 0);l([A()],a.prototype,"_mobileSearchOpen",void 0);l([A()],a.prototype,"_slotNavItems",void 0);l([A()],a.prototype,"_slotUtils",void 0);l([A()],a.prototype,"_slotMenu",void 0);l([A()],a.prototype,"_collapsed",void 0);l([A()],a.prototype,"_hideLogoText",void 0);a=E=l([N("scb-header")],a);