PageSourceSearch

https://endlich-sicher.de/theme/4afdffe9159d4e35e5a700a7dea50e5d/j…/tcinn-theme-ware-strong.js?1791463727

js endlich-sicher.de collected 2026-10-08 22:45:12 UTC 74,799 bytes, 8 lines download raw bytes

1(()=>{"use strict";var t={59(t,e,i){i.d(e,{A:()=>s});class s{static debounce(t,e){let i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];s&&!i&&setTimeout(t.bind(t,...o),0),clearTimeout(i),i=setTimeout(t.bind(t,...o),e)}}}},156(t){var e=function(t){var e;return!!t&&"object"==typeof t&&"[object RegExp]"!==(e=Object.prototype.toString.call(t))&&"[object Date]"!==e&&t.$$typeof!==i},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(t,e){return!1!==e.clone&&e.isMergeableObject(t)?a(Array.isArray(t)?[]:{},t,e):t}function n(t,e,i){return t.concat(e).map(function(t){return s(t,i)})}function o(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[])}function r(t,e){try{return e in t}catch(t){return!1}}function a(t,i,l){(l=l||{}).arrayMerge=l.arrayMerge||n,l.isMergeableObject=l.isMergeableObject||e,l.cloneUnlessOtherwiseSpecified=s;var h,d,c=Array.isArray(i);return c!==Array.isArray(t)?s(i,l):c?l.arrayMerge(t,i,l):(d={},(h=l).isMergeableObject(t)&&o(t).forEach(function(e){d[e]=s(t[e],h)}
1),o(i).forEach(function(e){(!r(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(r(t,e)&&h.isMergeableObject(i[e])?d[e]=(function(t,e){if(!e.customMerge)return a;var i=e.customMerge(t);return"function"==typeof i?i:a})(e,h)(t[e],i[e],h):d[e]=s(i[e],h))}),d)}a.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce(function(t,i){return a(t,i,e)},{})},t.exports=a},452(t,e,i){i.d(e,{A:()=>s});class s{static isSupported(){return"undefined"!==document.cookie}static setItem(t,e,i){if(null==t)throw Error("You must specify a key to set a cookie");let s=new Date;s.setTime(s.getTime()+864e5*i);let n="";"https:"===location.protocol&&(n="secure"),document.cookie=`${t}=${e};expires=${s.toUTCString()};path=/;sameSite=lax;${n}`}static getItem(t){if(!t)return!1;let e=t+"=",i=document.cookie.split(";");for(let t=0;t<i.length;t++){let s=i[t];for(;" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(e))return s.substring(e.length,s.length)}return!1}static removeItem(t){document.cookie=`${t}= ; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/`}static key(){return""}static clear(){}}},632(t,e,i){i.d(e,{A:()=>s});class s{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return s.isIPhoneDevice()||s.isIPadDevice()}static isNativeWindowsBrowser(){return s.isIEBrowser()||s.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return -1!==navigator.userAgent.toLowerCase().indexOf("msie")||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":s.isTouchDevice(),"is-ios":s.isIOSDevice(),"is-native-windows":s.isNativeWindowsBrowser(),"is-iphone":s.isIPhoneDevice(),"is-ipad":s.isIPadDevice(),"is-ie":s.isIEBrowser(),"is-edge":s.isEdgeBrowser()}}}},707(t,e,i){i.d(e,{A:()=>s});class s{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t,e){let i=s.toUpperCamelCase(t,e);return s.lcFirst(i)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>s.ucFirst(t.toLowerCase())).join(""):s.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}},737(t,e,i){i.d(e,{A:()=>a});var s=i(156),n=i.n(s),o=i(707);class r{constructor(t=document){this._el=t,t.$emitter=this,this._listeners=[]}publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=new CustomEvent(t,{detail:e,cancelable:i});return this.el.dispatchEvent(s),s}subscribe(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this,n=t.split("."),o=i.scope?e.bind(i.scope):e;if(i.once&&!0===i.once){let e=o;o=function(i){s.unsubscribe(t),e(i)}}return this.el.addEventListener(n[0],o),this.listeners.push({splitEventName:n,opts:i,cb:o}),!0}unsubscribe(t){arguments.length>1&&"function"==typeof arguments[1]&&console.warn(`[NativeEventEmitter] Unsubscribing by passing the subscriber function as a second argument is not supported. By default, all listeners for the event will be removed. Use a suffix (separated by a dot) on the event name when subscribing/unsubscribing to identify/target your specific listener only, e.g. "${t}.MyCustomPlugin"`);let e=t.split(".");return this.listeners=this.listeners.reduce((t,i)=>([...i.splitEventName].sort().toString()===e.sort().toString()?this.el.removeEventListener(i.splitEventName[0],i.cb):t.push(i),t),[]),!0}reset(){return this.listeners.forEach(t=>{this.el.removeEventListener(t.splitEventName[0],t.cb)}),this.listeners=[],!0}get el(){return this._el}set el(t){this._el=t}get listeners(){return this._listeners}set listeners(t){this._listeners=t}}class a{constructor(t,e={},i=!1){if(!(t instanceof Node)){console.warn(`There is no valid element given while trying to create a plugin instance for "${i}".`);return}this.el=t,this.$emitter=new r(this.el),this._pluginName=this._getPluginName(i),this.options=this._mergeOptions(e),this._initialized=!1,this._registerInstance(),this._init()}init(){console.warn(`The "init" method for the plugin "${this._pluginName}" is not defined. The plugin will not be initialized.`)}update(){}destroy(){}
1_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(t){let e=[this.constructor.options,this.options,t];return e.push(this._getConfigFromDataAttribute()),e.push(this._getOptionsFromDataAttribute()),n().all(e.filter(t=>t instanceof Object&&!(t instanceof Array)).map(t=>t||{}))}_getConfigFromDataAttribute(){let t={};if("function"!=typeof this.el.getAttribute)return t;let e=o.A.toDashCase(this._pluginName),i=this.el.getAttribute(`data-${e}-config`);return i?window.PluginConfigManager.get(this._pluginName,i):t}_getOptionsFromDataAttribute(){let t={};if("function"!=typeof this.el.getAttribute)return t;let e=o.A.toDashCase(this._pluginName),i=this.el.getAttribute(`data-${e}-options`);if(i)try{return JSON.parse(i)}catch(t){console.error(`The data attribute "data-${e}-options" could not be parsed to json: ${t.message}`)}return t}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(t){return t||(t=this.constructor.name),t}}}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var o=e[s]={exports:{}};return t[s](o,o.exports,i),o.exports}i.m=t,i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.f={},i.e=t=>Promise.all(Object.keys(i.f).reduce((e,s)=>(i.f[s](t,e),e),[])),i.u=t=>"./js/tcinn-theme-ware-strong/tcinn-theme-ware-strong.twt-cookie-permission.plugin.97fb32.js",i.miniCssF=t=>{},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={},e="tcinn-theme-ware-strong:";i.l=(s,n,o,r)=>{if(t[s]){t[s].push(n);return}if(void 0!==o)for(var a,l,h=document.getElementsByTagName("script"),d=0;d<h.length;d++){var c=h[d];if(c.getAttribute("src")==s||c.getAttribute("data-webpack")==e+o){a=c;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",i.nc&&a.setAttribute("nonce",i.nc),a.setAttribute("data-webpack",e+o),a.src=s),t[s]=[n];var u=(e,i)=>{a.onerror=a.onload=null,clearTimeout(p);var n=t[s];if(delete t[s],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach(t=>t(i)),e)return e(i)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=u.bind(null,a.onerror),a.onload=u.bind(null,a.onload),l&&document.head.appendChild(a)}})(),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{i.g.importScripts&&(t=i.g.location+"");var t,e=i.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var s=e.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=s[n--].src}if(!t)throw Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t+"../../"})(),(()=>{var t={15040:0};i.f.j=(e,s)=>{var n=i.o(t,e)?t[e]:void 0;if(0!==n){if(n)s.push(n[2]);else{var o=new Promise((i,s)=>n=t[e]=[i,s]);s.push(n[2]=o);var r=i.p+i.u(e),a=Error();i.l(r,s=>{if(i.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var o=s&&("load"===s.type?"missing":s.type),r=s&&s.target&&s.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",a.name="ChunkLoadError",a.type=o,a.request=r,n[1](a)}},"chunk-"+e,e)}}};var e=(e,s)=>{var n,o,[r,a,l]=s,h=0;if(r.some(e=>0!==t[e])){for(n in a)i.o(a,n)&&(i.m[n]=a[n]);l&&l(i)}for(e&&e(s);h<r.length;h++)o=r[h],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0},s=self.webpackChunktcinn_theme_ware_strong=self.webpackChunktcinn_theme_ware_strong||[];s.forEach(e.bind(null,0)),s.push=e.bind(null,s.push.bind(s))})();var s=i(737),n=i(452);class o{constructor(){this._storage={}}setItem(t,e){return this._storage[t]=e}getItem(t){return Object.prototype.hasOwnProperty.call(this._storage,t)?this._storage[t]:null}removeItem(t){return delete this._storage[t]}key(t){return Object.values(this._storage)[t]||null}clear(){return this._storage={}}}
1class r{constructor(){this._storage=null,this._chooseStorage(),this._validateStorage()}_chooseStorage(){return r._isSupported("localStorage")?this._storage=window.localStorage:r._isSupported("sessionStorage")?this._storage=window.sessionStorage:n.A.isSupported()?this._storage=n.A:this._storage=new o}static _isSupported(t){try{let e="__storage_test";return window[t].setItem(e,"1"),window[t].removeItem(e),!0}catch(t){return!1}}_validateStorage(){if("function"!=typeof this._storage.setItem)throw Error('The storage must have a "setItem" function');if("function"!=typeof this._storage.getItem)throw Error('The storage must have a "getItem" function');if("function"!=typeof this._storage.removeItem)throw Error('The storage must have a "removeItem" function');if("function"!=typeof this._storage.key)throw Error('The storage must have a "key" function');if("function"!=typeof this._storage.clear)throw Error('The storage must have a "clear" function')}getStorage(){return this._storage}}let a=Object.freeze(new r).getStorage();var l=i(707);class h{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!h.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(e)}static getAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!1===h.hasAttribute(t,e))throw Error(`The required property "${e}" does not exist!`);if("function"!=typeof t.getAttribute){if(i)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=e.replace(/^data(|-)/,""),n=l.A.toLowerCamelCase(s,"-");if(!h.isNode(t)){if(i)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(i)throw Error("This node doesn't support the dataset attribute!");return}let o=t.dataset[n];if(void 0===o){if(i)throw Error(`The required data attribute "${e}" does not exist on ${t}!`);return o}return l.A.parsePrimitive(o)}static querySelector(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!h.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelector(e)||!1;if(i&&!1===s)throw Error(`The required element "${e}" does not exist in parent node!`);return s}static querySelectorAll(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!h.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelectorAll(e);if(0===s.length&&(s=!1),i&&!1===s)throw Error(`At least one item of "${e}" must exist in parent node!`);return s}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,e=`
2            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),
3            select:not([tabindex^="-"]):not([disabled]),
4            textarea:not([tabindex^="-"]):not([disabled]),
5            button:not([tabindex^="-"]):not([disabled]),
6            a[href]:not([tabindex^="-"]):not([disabled]),
7            [tabindex]:not([tabindex^="-"]):not([disabled])
8        `;return t.querySelectorAll(e)}static getFirstFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(t)[0]}static getLastFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=this.getFocusableElements(t);return e[e.length-1]}}class d extends s.A{static #t=this.options={cookieName:"twt-local-storage",storageKey:"twt-announcement-banner",storageLifetime:Number(new Date(Date.now()+432e5)),closeButtonSelector:".btn-close"};init(){if(this.storage=a,window.useDefaultCookieConsent&&!n.A.getItem(this.options.cookieName)){this._showBanner();return}this._initBanner()}_initBanner(){let{storageKey:t,closeButtonSelector:e}=this.options,i=window.localStorage.getItem(t),s=new Date(Date.now());i&&Number(i)>Number(s)?(this.el.style.display="none",this.el.setAttribute("aria-hidden","true")):(this.el.removeAttribute("aria-hidden"),this.el.style.display="block",this.buttonClose=h.querySelector(this.el,e),this.buttonClose.addEventListener("click",this._handleClick.bind(this)),i&&this._removeCookie(t))}_showBanner(){let{closeButtonSelector:t}=this.options;this.el.style.display="block",this.el.removeAttribute("aria-hidden"),this.buttonClose=h.querySelector(this.el,t),this.buttonClose.remove()}_handleClick(t){t.preventDefault(),t.stopPropagation(),this._setCookie(),this.init()}_setCookie(){let{storageKey:t,storageLifetime:e}=this.options;window.localStorage.setItem(t,e)}_removeCookie(t){localStorage.removeItem(t)}}class c extends s.A{static #t=this.options={actionSaleSelector:".twt-countdown-banner-action.is-sale",actionSelector:".twt-countdown-banner-action.is-preview",daysSelector:".days",hoursSelector:".hours",minutesSelector:".minutes",secondsSelector:".seconds",textSaleSelector:".twt-countdown-banner-text.is-sale",textSelector:".twt-countdown-banner-text.is-preview"};init(){var t=document.getElementById("twt-data-attributes");this._debugMode=t.getAttribute("data-twt-debug-mode"),"true"==this._debugMode&&console.info("=== Debug mode | ThemeWare® Countdown banner ==="),this._loadCountdownBanner()}_loadCountdownBanner(){if("true"===this._debugMode&&console.info("ThemeWare® Countdown banner: _loadCountdownBanner()"),this._dateFrom=this.el.getAttribute("data-twt-date-from"),this._dateUntil=this.el.getAttribute("data-twt-date-until"),this._style=this.el.getAttribute("data-twt-countdown-banner-style"),this._days=this.el.querySelector(this.options.daysSelector),this._hours=this.el.querySelector(this.options.hoursSelector),this._minutes=this.el.querySelector(this.options.minutesSelector),this._seconds=this.el.querySelector(this.options.secondsSelector),this._text=this.el.querySelector(this.options.textSelector),this._action=this.el.querySelector(this.options.actionSelector),this._textSale=this.el.querySelector(this.options.textSaleSelector),this._actionSale=this.el.querySelector(this.options.actionSaleSelector),"true"===this._debugMode){let t="Europe/Berlin",e=(t,e)=>
8new Date(Number(t)).toLocaleString("de-DE",{timeZone:e,hour12:!1}),i=Date.now(),s=Number(this._dateFrom),n=Number(this._dateUntil);console.group("ThemeWare® Countdown banner: Settings"),console.log("dateNow: %s (UTC) / %s (Berlin)",e(i,"UTC"),e(i,t)),console.log("from: %s (UTC) / %s (Berlin)",s?e(s,"UTC"):"—",s?e(s,t):"—"),console.log("until: %s (UTC) / %s (Berlin)",n?e(n,"UTC"):"—",n?e(n,t):"—"),console.log("showBlock:",+!!((isNaN(s)||i>=s)&&(isNaN(n)||i<n))),console.groupEnd()}this._setCounter()}_setCounter(){"true"===this._debugMode&&console.info("ThemeWare® Countdown banner: _setCounter()");let t=Date.now();this._status="preview";let e=Number(this._dateFrom),i=Number(this._dateUntil),s=new Date(i).toLocaleString(void 0,{timeZoneName:"short"});if("true"==this._debugMode&&(console.group("ThemeWare® Countdown banner: Status"),console.log("Expires on:",s),console.log("Remaining time:",(i-Date.now())/1e3,"seconds"),console.groupEnd()),t>=e&&t>=i){this._status="expired",this._countdownExpired();return}t<e?(this._countDownDate=e,this._status="preview"):t>=e&&t<i&&(this._countDownDate=i,this._status="sale"),this._showContent(this._status),this.timer=setInterval(this._countdown,1e3,this)}_countdown(t){let e=Date.now(),i=t._countDownDate-e,s=Math.floor(i/864e5),n=Math.floor(i%864e5/36e5),o=Math.floor(i%36e5/6e4),r=Math.floor(i%6e4/1e3);if("big-numbers"==t._style?(t._days.innerHTML=s,t._hours.innerHTML=n,t._minutes.innerHTML=o,t._seconds.innerHTML=r):(t._days.innerHTML=(s<10?"0":"")+s,t._hours.innerHTML=(n<10?"0":"")+n,t._minutes.innerHTML=(o<10?"0":"")+o,t._seconds.innerHTML=(r<10?"0":"")+r),i<=0&&"sale"==t._status){t._status="expired",t._countdownExpired(),clearInterval(t.timer);return}i<=0&&"preview"==t._status&&(t._status="sale",t._resetNumbers(),t._showContent(t._status),t._countDownDate=t._dateUntil)}_showContent(t){"true"===this._debugMode&&console.info("ThemeWare® Countdown banner: _showContent()"),"sale"==t?("true"===this._debugMode&&console.info("ThemeWare® Countdown banner => 'Sale' is active"),this._text.style.display="none",this._textSale.style.display="block",this._action.style.display="none",this._actionSale.style.display="block"):("true"===this._debugMode&&console.info("ThemeWare® Countdown banner => 'Preview' is active"),this._text.style.display="block",this._textSale.style.display="none",this._action.style.display="block",this._actionSale.style.display="none")}_countdownExpired(){"true"===this._debugMode&&console.info("ThemeWare® Countdown banner: _countdownExpired()"),this._resetNumbers(),this.el.parentNode.parentNode.parentNode.parentNode.classList.add("d-none")}_resetNumbers(){"true"===this._debugMode&&console.info("ThemeWare® Countdown banner: _resetNumbers()"),this._days.innerHTML="00",this._hours.innerHTML="00",this._minutes.innerHTML="00",this._seconds.innerHTML="00"}}class u extends s.A{static #t=this.options={title:""};init(){this._label=this.el.querySelector(".product-detail-configurator-option-label"),this._input=this.el.querySelector(".product-detail-configurator-option-input"),this._label&&this._input&&this._label.title&&window.bootstrap&&(this._tooltip=new window.bootstrap.Tooltip(this._label,{title:this.options.title||this._label.title,trigger:"manual"}),this._canHover=window.matchMedia("(hover: hover) and (pointer: fine)"),this._label.addEventListener("mouseenter",this._onMouseEnter.bind(this)),this._label.addEventListener("mouseleave",this._hide.bind(this)),this._input.addEventListener("focus",this._onFocus.bind(this)),this._input.addEventListener("blur",this._hide.bind(this)),this._input.addEventListener("change",this._hide.bind(this)))}_onMouseEnter(){this._canHover.matches&&this._tooltip.show()}_onFocus(){this._input.matches(":focus-visible")&&this._tooltip.show()}_hide(){this._tooltip.hide()}}let p="twt-top-navigation:open",m=t=>e=>{let i=!!t.closest(".dropend");return{...e,modifiers:[{name:"applyStyles",enabled:!0},{name:"flip",enabled:!0,options:{fallbackPlacements:i?["left-start"]:["bottom-end"],rootBoundary:"viewport"}},{name:"preventOverflow",enabled:!0,options:{rootBoundary:"viewport"}},{name:"offset",options:{offset:[0,0]}},{name:"computeStyles",options:{gpuAcceleration:!1}}]}};class _ extends s.A{static #t=this.options={triggerSelector:'[data-bs-toggle="dropdown"]',itemSelector:".navigation-flyout-link",topLinkSelector:'a.main-navigation-link[data-bs-toggle="dropdown"]',hoverDelay:150,activeClass:"active",ariaCurrentPageSelector:".nav-item-{id}-link"};init(){this._bootstrap=window.bootstrap,this._bootstrap&&this._bootstrap.Dropdown&&(this._topLevelTrigger=this._findTopLevelTrigger(),this._triggers=Array.from(this.el.querySelectorAll(this.options.triggerSelector)),this._closeTimers=new WeakMap,this._ensureDropdownInstance(this._topLevelTrigger),this._triggers.forEac
8h(t=>this._ensureDropdownInstance(t)),this._registerHoverTriggers(),this._registerContainerLeave(),this._registerKeyboard(),this._setCurrentPage())}destroy(){this._triggers&&this._triggers.forEach(t=>{t.removeEventListener("mouseenter",this._onEnterTrigger),t.removeEventListener("mouseleave",this._onLeaveTrigger),this._cancelClose(t)}),this._submenuListeners&&this._submenuListeners.forEach(t=>{let{submenu:e,onEnter:i,onLeave:s}=t;e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",s)}),this._onContainerLeave&&this.el.removeEventListener("mouseleave",this._onContainerLeave),this._onDocKey&&document.removeEventListener("keydown",this._onDocKey,!0),this._onNavOpen&&document.removeEventListener(p,this._onNavOpen),this._topLevelTrigger&&(this._onTopShow&&this._topLevelTrigger.removeEventListener("show.bs.dropdown",this._onTopShow),this._onTopShown&&this._topLevelTrigger.removeEventListener("shown.bs.dropdown",this._onTopShown))}_findTopLevelTrigger(){let t=this.el.parentElement;return t?t.querySelector(`:scope > ${this.options.topLinkSelector}`):null}_ensureDropdownInstance(t){t&&(this._bootstrap.Dropdown.getInstance(t)||new this._bootstrap.Dropdown(t,{popperConfig:m(t)}))}_registerHoverTriggers(){this._onEnterTrigger=t=>{let e=t.currentTarget;this._cancelClose(e),this._closeSiblings(e),this._bootstrap.Dropdown.getOrCreateInstance(e).show(),requestAnimationFrame(()=>{document.activeElement===e&&e.blur()})},this._onLeaveTrigger=t=>{this._scheduleClose(t.currentTarget)},this._submenuListeners=[],this._triggers.forEach(t=>{t.addEventListener("mouseenter",this._onEnterTrigger),t.addEventListener("mouseleave",this._onLeaveTrigger);let e=t.parentElement,i=e?e.querySelector(":scope > .dropdown-menu"):null;if(i){let e=()=>this._cancelClose(t),s=()=>this._scheduleClose(t);i.addEventListener("mouseenter",e),i.addEventListener("mouseleave",s),this._submenuListeners.push({submenu:i,onEnter:e,onLeave:s})}})}_registerContainerLeave(){this._onContainerLeave=()=>{this._triggers.forEach(t=>this._scheduleClose(t))},this.el.addEventListener("mouseleave",this._onContainerLeave)}_scheduleClose(t){this._cancelClose(t);let e=setTimeout(()=>{let e=this._bootstrap.Dropdown.getInstance(t);e&&e.hide()},this.options.hoverDelay);this._closeTimers.set(t,e)}_cancelClose(t){let e=this._closeTimers.get(t);e&&(clearTimeout(e),this._closeTimers.delete(t))}_closeSiblings(t){let e=t.closest(".dropdown-menu, .twt-top-navigation-dropdown");e&&e.querySelectorAll(':scope > .twt-top-navigation-dropdown-categories > .navigation-flyout-col > [data-bs-toggle="dropdown"]').forEach(e=>{if(e===t)return;let i=this._bootstrap.Dropdown.getInstance(e);i&&i.hide()})}_registerKeyboard(){this._onDocKey=t=>this._handleDocKey(t),this._onTopShown=()=>this._handleTopShown(),this._keyboardShowPending=null,document.addEventListener("keydown",this._onDocKey,!0),this._onNavOpen=t=>this._handleNavOpen(t),document.addEventListener(p,this._onNavOpen),this._onTopShow=()=>this._emitNavOpen(),this._topLevelTrigger&&(this._topLevelTrigger.addEventListener("show.bs.dropdown",this._onTopShow),this._topLevelTrigger.addEventListener("shown.bs.dropdown",this._onTopShown))}_emitNavOpen(){document.dispatchEvent(new CustomEvent(p,{detail:{panel:this.el}}))}_handleNavOpen(t){if((t.detail&&t.detail.panel)===this.el||!this.el.classList.contains("show"))return;let e=this._topLevelTrigger&&this._bootstrap.Dropdown.getInstance(this._topLevelTrigger);e&&e.hide()}_handleDocKey(t){let{target:e}=t;if(e===this._topLevelTrigger){this._handleTopLinkKey(t);return}this.el.contains(e)&&e.matches?.(this.options.itemSelector)&&this._handleContainerKey(t)}_handleTopLinkKey(t){let{key:e}=t;if("ArrowDown"===e||"ArrowUp"===e){if(t.preventDefault(),t.stopImmediatePropagation(),this.el.classList.contains("show")){"ArrowDown"===e?this._focusFirstItem(this.el):this._focusLastItem(this.el);return}this._keyboardShowPending=e,this._bootstrap.Dropdown.getOrCreateInstance(this._topLevelTrigger).show()}}_handleTopShown(){if(!this._keyboardShowPending)return;let t=this._keyboardShowPending;this._keyboardShowPending=null,"ArrowDown"===t?this._focusFirstItem(this.el):this._focusLastItem(this.el)}_handleContainerKey(t){let{key:e,target:i}=t;if(i.matches&&i.matches(this.options.itemSelector))switch(e){case"ArrowDown":t.preventDefault(),t.stopImmediatePropagation(),this._focusSibling(i,1);return;case"ArrowUp":t.preventDefault(),t.stopImmediatePropagation(),this._focusSibling(i,-1);return;case"Home":t.preventDefault(),this._focusFirstItem(i.closest(".dropdown-menu"));return;case"End":t.preventDefault(),this._focusLastItem(i.closest(".dropdown-menu"));return;case"ArrowRight":if(i.matches(this.options.triggerSelector)){t.preventDefault(),t.stopImmediatePropagation(),this._bootstrap.Dropdown.getOrCreateInstance(i).show();let e=i.parentElement.querySelector(":scope > .dropdown-menu");e&&requestAnimationFrame(()=>this._focusFirstItem(e))}return;case"ArrowLeft":this._closeCurrentSubmenu(i);return;case"Escape":t.preventDefault(),t.stopImmediatePropagation(),this._closeCurrentSubmenu(i,!0);return}}_closeCurrentSubmenu(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.closest(".dropdown-menu");if(!i)return;if(i===this.el){if(!e)return;let t=this._bootstrap.Dropdown.getInstance(this._topLevelTrigger);t&&t.hide(),this._topLevelTrigger?.focus();return}let s=i.parentElement.querySelector(`:scope > ${this.options.triggerSelector}`);if(s){let t=this._bootstrap.Dropdown.getInstance(s);t&&t.hide(),s.focus()}}_focusableItems(t){return t?Array.from(t.querySelectorAll(`a${this.options.itemSelector}, ${this.options.itemSelector}[tabindex]`)).filter(e=>e.closest(".dropdown-menu")===t):[]}
8_focusFirstItem(t){let e=this._focusableItems(t);e.length&&e[0].focus()}_focusLastItem(t){let e=this._focusableItems(t);e.length&&e[e.length-1].focus()}_focusSibling(t,e){let i=t.closest(".dropdown-menu"),s=this._focusableItems(i),n=s.indexOf(t);if(-1===n)return;let o=(n+e+s.length)%s.length;s[o].focus()}_setCurrentPage(){let t;if(window.activeNavigationId){let t=this.options.ariaCurrentPageSelector.replace("{id}",window.activeNavigationId),e=this.el.querySelector(t);e&&(e.setAttribute("aria-current","page"),e.classList.add(this.options.activeClass))}let e=document.getElementById("main-navigation-menu");if(!e)return;let i=e.getAttribute("data-navbar-options");if(i){try{t="string"==typeof i?JSON.parse(i):i}catch(t){return}(Array.isArray(t?.pathIdList)?t.pathIdList:[]).forEach(t=>{let e=this.options.ariaCurrentPageSelector.replace("{id}",t),i=this.el.querySelector(e);i&&i.classList.add(this.options.activeClass)})}}}var g=i(632);let w="modal-backdrop",v="modal-backdrop-open",b="no-scroll",f={ON_CLICK:"backdrop/onclick"};class y{constructor(){return y.instance||(y.instance=this),y.instance}create(t){this._removeExistingBackdrops(),document.body.insertAdjacentHTML("beforeend",this._getTemplate());let e=document.body.lastChild;document.documentElement.classList.add(b),setTimeout(function(){e.classList.add(v),"function"==typeof t&&t()},75),this._dispatchEvents()}remove(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;this._getBackdrops().forEach(t=>t.classList.remove(v)),setTimeout(this._removeExistingBackdrops.bind(this),t),document.documentElement.classList.remove(b)}_dispatchEvents(){let t=g.A.isTouchDevice()?"touchstart":"click";document.addEventListener(t,function(t){t.target.classList.contains(w)&&document.dispatchEvent(new CustomEvent(f.ON_CLICK))})}_getBackdrops(){return document.querySelectorAll(`.${w}`)}_removeExistingBackdrops(){!1!==this._exists()&&this._getBackdrops().forEach(t=>t.remove())}_exists(){return document.querySelectorAll(`.${w}`).length>0}_getTemplate(){return`<div class="${w}"></div>`}}let E=Object.freeze(new y);class S{static create(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;E.create(t)}static remove(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;E.remove(t)}static SELECTOR_CLASS(){return w}}class L extends s.A{static #t=this.options={elementSelector:"#twt-floating-widget",minWindowHeight:0,minWindowWidth:768};
8init(){this._opened="true"===this.el.getAttribute("data-twt-floating-widget-open"),this._hasBackdrop="true"===this.el.getAttribute("data-twt-floating-widget-backdrop"),this._showOnMobile="true"===this.el.getAttribute("data-twt-floating-widget-mobile"),this._isSticky="true"===this.el.getAttribute("data-twt-floating-widget-sticky"),this._button=this.el.querySelector(".twt-floating-widget-title"),this._content=this.el.querySelector(".twt-floating-widget-body"),this._widget=this.el,this._labelOpen=this._button.getAttribute("data-twt-label-open"),this._labelClose=this._button.getAttribute("data-twt-label-close"),this._widget.setAttribute("role","region"),this._widget.setAttribute("tabindex","-1"),this._updateAria(),this._updateInert(),this._trapActive=!1,this._boundTrap=this._handleTabTrap.bind(this),this._registerEvents()}_registerEvents(){this._boundInitWidget=this._initWidget.bind(this),this._boundPositionWidget=this._positionWidget.bind(this),this._boundToggleWidget=this._toggleWidget.bind(this),this._boundGlobalKey=this._handleGlobalKey.bind(this),window.addEventListener("load",this._boundInitWidget),window.addEventListener("resize",this._boundPositionWidget),this._button.addEventListener("click",this._boundToggleWidget),document.addEventListener("keydown",this._boundGlobalKey)}destroy(){this._boundInitWidget&&(window.removeEventListener("load",this._boundInitWidget),window.removeEventListener("resize",this._boundPositionWidget),document.removeEventListener("keydown",this._boundGlobalKey),this._button&&this._button.removeEventListener("click",this._boundToggleWidget)),this._trapActive&&(document.removeEventListener("keydown",this._boundTrap),this._trapActive=!1)}_initWidget(){let t=window.innerWidth;"true"===this._opened&&(this._showOnMobile||t>=this.options.minWindowWidth)&&this._openWidget(),this._positionWidget}_positionWidget(){let t=this.el.offsetHeight,e=window.innerHeight,i=window.innerWidth;if(!this._showOnMobile&&i<this.options.minWindowWidth&&this._closeWidget(),!this._isSticky)return;"none"!==window.getComputedStyle(this.el).getPropertyValue("transform")?this._elementTransformedHeight=t/2:this._elementTransformedHeight=0;let s=this.el.offsetTop+this._elementTransformedHeight;this.el.offsetTop,this._elementTransformedHeight,(this._showOnMobile||i>=this.options.minWindowWidth)&&(this._elementIsSticky?!0===this._elementIsSticky&&this.options.minWindowHeight>0&&e>this.options.minWindowHeight&&(this.el.classList.remove("is-sticky","top"),this._elementIsSticky=!1,this.options.minWindowHeight=0):s<=1&&(this.el.classList.add("is-sticky","top"),this._elementIsSticky=!0,this.options.minWindowHeight=e))}_handleGlobalKey(t){"Escape"===t.key&&this._opened&&this._closeWidget()}_toggleWidget(){this._opened?this._closeWidget():this._openWidget()}_openWidget(){this._opened=!0,this.el.setAttribute("data-twt-floating-widget-open","true"),this._updateAria(),this._updateInert(),this._addBackdrop();let t=Array.from(this._content.querySelectorAll("a, [tabindex]"));if(0===t.length){let e=this._content.querySelector(".twt-floating-widget-content");t.push(e)}this._focusable=[this._button,...t],this._focusable.length>1&&(this._firstFocusable=this._focusable[0],this._lastFocusable=this._focusable.slice(-1)[0],document.addEventListener("keydown",this._boundTrap),this._trapActive=!0),(t.length?t[0]:this._button).focus()}_closeWidget(){this._opened=!1,this.el.setAttribute("data-twt-floating-widget-open","false"),this._updateAria(),this._updateInert(),this._removeBackdrop(),this._trapActive&&(document.removeEventListener("keydown",this._boundTrap),this._trapActive=!1),this._button.focus()}_updateAria(){this._button.setAttribute("aria-expanded",String(this._opened)),this._button.setAttribute("aria-label",this._opened?this._labelClose:this._labelOpen),this._widget.setAttribute("aria-hidden",String(!this._opened))}_updateInert(){this._content.toggleAttribute("inert",!this._opened)}_handleTabTrap(t){if("Tab"!==t.key)return;let e=document.activeElement;t.shiftKey&&e===this._firstFocusable?(t.preventDefault(),this._lastFocusable.focus()):t.shiftKey||e!==this._lastFocusable||(t.preventDefault(),this._firstFocusable.focus())}_addBackdrop(){if(this._hasBackdrop){S.create();let t=document.querySelectorAll(".modal-backdrop"),e=t[t.length-1];e&&(e.classList.add("twt-floating-widget-backdrop"),document.querySelector(".modal-backdrop").addEventListener("click",this._closeWidget.bind(this)))}}_removeBackdrop(){this._hasBackdrop&&S.remove()}}class C extends s.A{static #t=this.options={headerClass:"twt-sticky-header",minWindowWidth:576,announcementBannerSelector:".twt-announcement-banner.is-header",bodySelector:"body",contentMainSelector:".content-main",headerRowSelector:"header.header-main .header-row",headerSelector:"header.header-main",navigationFlyoutsSelector:".navigation-flyouts",searchCollapseSelector:"#searchCollapse",uspBarSelector:".twt-usp-bar.is-header"};
8init(){let t=document.querySelector(this.options.headerSelector);!t||t.classList.contains("header-minimal")||(null!=document.querySelector(".twt-announcement-banner.is-header")&&(this._announcementBannerContainer=h.querySelector(document,this.options.announcementBannerSelector)),this._bodyContainer=h.querySelector(document,this.options.bodySelector),this._contentMainContainer=h.querySelector(document,this.options.contentMainSelector),this._headerContainer=h.querySelector(document,this.options.headerSelector),this._headerRowContainer=h.querySelector(document,this.options.headerRowSelector),null!=document.querySelector(".navigation-flyouts")&&(this._navigationFlyoutsContainer=h.querySelector(document,this.options.navigationFlyoutsSelector)),null!=document.querySelector(this.options.searchCollapseSelector)&&(this._searchCollapseContainer=h.querySelector(document,this.options.searchCollapseSelector)),null!=document.querySelector(".twt-usp-bar.is-header")&&(this._uspBarContainer=h.querySelector(document,this.options.uspBarSelector)),this._uspBarContainer?this._twtUspBarPosition=document.getElementById("twt-usp-bar").getAttribute("data-twt-usp-bar-position"):this._twtUspBarPosition="0",this._twtHeaderPhoneType=document.getElementById("twt-data-attributes").getAttribute("data-twt-header-phone-type"),this._twtMobileStickyHeader=document.getElementById("twt-data-attributes").getAttribute("data-twt-mobile-sticky-header"),this._twtNavMainType=document.getElementById("twt-data-attributes").getAttribute("data-twt-top-navigation-type"),this._twtSearchType=document.getElementById("twt-data-attributes").getAttribute("data-twt-search-type"),this._twtShoppingExperiencesHeader=document.getElementById("twt-data-attributes").getAttribute("data-twt-shopping-experiences-header"),this._twtHeaderPhoneType=document.getElementById("twt-data-attributes").getAttribute("data-twt-header-phone-type"),this._registerEvents())}_registerEvents(){window.addEventListener("load",this._setHeader.bind(this)),window.addEventListener("scroll",this._setHeader.bind(this)),window.addEventListener("resize",this._setHeader.bind(this))}_setHeader(t){let e=this._headerContainer.offsetHeight,i=0;this._announcementBannerContainer&&"none"!=getComputedStyle(this._announcementBannerContainer).display?i=this._announcementBannerContainer.offsetHeight:i=0;let s=0;s=this._uspBarContainer&&"3"!==this._twtUspBarPosition?this._uspBarContainer.offsetHeight:0;let n=parseInt(getComputedStyle(this._headerRowContainer).paddingBottom,10),o=0;o=i+s+(e-n);let r=0;r=e-n;let a=0;a=s+i;let l=window.pageYOffset||document.documentElement.scrollTop,h=l>a,d=window.innerWidth<this.options.minWindowWidth;
8if(this._twtShoppingExperiencesHeader&&(d?this._contentMainContainer.style.marginTop="inherit":this._contentMainContainer.style.marginTop=-e+"px"),h)this._bodyContainer.classList.add(this.options.headerClass),d?this._bodyContainer.style.paddingTop="inherit":this._bodyContainer.style.paddingTop=e+"px",Feature.isActive("ACCESSIBILITY_TWEAKS")||this._navigationFlyoutsContainer&&"2"===this._twtNavMainType&&(this._navigationFlyoutsContainer.style.top=r+"px"),d?(this._searchCollapseContainer&&"2"===this._twtMobileStickyHeader&&(this._searchCollapseContainer.style.top=e+"px"),this._searchCollapseContainer&&"2"===this._twtHeaderPhoneType&&(this._searchCollapseContainer.style.top="")):this._searchCollapseContainer&&(this._searchCollapseContainer.style.top=e+"px");else if(this._bodyContainer.classList.remove(this.options.headerClass),this._bodyContainer.style.paddingTop="inherit",Feature.isActive("ACCESSIBILITY_TWEAKS")||this._navigationFlyoutsContainer&&"2"===this._twtNavMainType&&(this._navigationFlyoutsContainer.style.top=o-l+"px"),d)this._searchCollapseContainer&&(this._searchCollapseContainer.style.top="");else if("sticky"===this._twtShoppingExperiencesHeader){let t=this._headerContainer.getBoundingClientRect(),e=t.top,i=t.height;this._searchCollapseContainer&&(this._searchCollapseContainer.style.top=e+i+"px")}else this._searchCollapseContainer&&(this._searchCollapseContainer.style.top="")}}class T extends s.A{static #t=this.activeInstance=null;static #e=this.isKeyListenerRegistered=!1;init(){let t=document.getElementById("twt-data-attributes");this._debugMode=t?t.getAttribute("data-twt-debug-mode"):"false","true"===this._debugMode&&(console.log("=== Debug mode: Hero slider ==="),console.log("twtHeroSliderPlugin: init()"),console.log("Slider:",this.el)),this._slides=parseInt(this.el.getAttribute("data-twt-hero-slider-slides"))||0,"true"===this._debugMode&&console.log("Slides:",this._slides),this._autoplay="carousel"===this.el.getAttribute("data-bs-ride"),this.el.hasAttribute("tabindex")||this.el.setAttribute("tabindex","0"),this._autoplay&&(this.buttonPause=this.el.querySelector(".btn-pause"),this.buttonPlay=this.el.querySelector(".btn-play"),this.buttonPause&&this.buttonPlay&&(this.buttonPause.setAttribute("tabindex","0"),this.buttonPlay.setAttribute("tabindex","-1"),this.buttonPause.addEventListener("click",this._pause.bind(this)),this.buttonPlay.addEventListener("click",this._play.bind(this)))),this._updateSlideTabIndexes(),this.el.addEventListener("keydown",this._handleTabNavigation.bind(this)),this._autoplay&&this.el.addEventListener("keydown",t=>{("Space"===t.code||" "===t.key)&&this.el.contains(document.activeElement)&&(t.preventDefault(),this.isPlaying?this._pause():this._play())}),this._registerFocusEvents(),T.isKeyListenerRegistered||(document.addEventListener("keydown",this._handleGlobalKeyDown.bind(this)),T.isKeyListenerRegistered=!0),this.buttonNext=this.el.querySelector(".carousel-control-next"),this.buttonPrev=this.el.querySelector(".carousel-control-prev"),this.buttonNext&&this.buttonNext.addEventListener("click",t=>{t.preventDefault(),this._manualNext()}),this.buttonPrev&&this.buttonPrev.addEventListener("click",t=>{t.preventDefault(),this._manualPrev()});let e=this.el.classList.contains("carousel")?this.el:this.el.querySelector(".carousel");if(!e){this._debugMode&&console.warn("HeroSlider: carousel not found",this.el);return}this.bsCarousel=bootstrap.Carousel.getOrCreateInstance(e,{interval:!1,ride:!1}),e.addEventListener("slid.bs.carousel",this._onSlideChanged.bind(this)),this._initAccessibilityTweaks(),this._autoplay&&(this.isPlaying=!0,this.startSlideTimer())}startSlideTimer(){let t=this.el.querySelector(".carousel-item.active"),e=t?.getAttribute("data-bs-interval"),i=e?parseInt(e,10):2e3;this.remainingTime=i,this.slideStartTime=Date.now(),this._debugMode&&console.log("HeroSlider: timer start",i),this.slideTimer=setTimeout(()=>{this.bsCarousel.next(),this.isPlaying&&this.startSlideTimer()},this.remainingTime)}_onSlideChanged(){clearTimeout(this.slideTimer);let t=this.el.querySelector(".carousel-item.active"),e=t?.getAttribute("data-bs-interval"),i=e?parseInt(e,10):7e3;this.remainingTime=i,this.slideStartTime=Date.now(),this._debugMode&&console.log("HeroSlider: slide changed",i),this.isPlaying&&this.startSlideTimer(),this._updateSlideTabIndexes()}_pause(){clearTimeout(this.slideTimer);let t=Date.now()-this.slideStartTime;this.remainingTime=Math.max(this.remainingTime-t,0),this.isPlaying=!1,this._debugMode&&console.log("HeroSlider: paused",this.remainingTime),this.buttonPause&&this.buttonPlay&&(this.buttonPause.classList.add("btn-hidden"),this.buttonPause.setAttribute("tabindex","-1"),this.buttonPlay.classList.remove("btn-hidden"),this.buttonPlay.setAttribute("tabindex","0"),this.buttonPlay.focus()),this.buttonPause.setAttribute("aria-pressed","true"),this.buttonPlay.setAttribute("aria-pressed","fal
8se")}_play(){this.isPlaying=!0,this.slideStartTime=Date.now(),this._debugMode&&console.log("HeroSlider: resume",this.remainingTime),this.slideTimer=setTimeout(()=>{this.bsCarousel.next(),this.isPlaying&&this.startSlideTimer()},this.remainingTime),this.buttonPlay&&this.buttonPause&&(this.buttonPlay.classList.add("btn-hidden"),this.buttonPlay.setAttribute("tabindex","-1"),this.buttonPause.classList.remove("btn-hidden"),this.buttonPause.setAttribute("tabindex","0"),this.buttonPause.focus()),this.buttonPlay.setAttribute("aria-pressed","true"),this.buttonPause.setAttribute("aria-pressed","false")}_manualNext(){clearTimeout(this.slideTimer),this.bsCarousel.next()}_manualPrev(){clearTimeout(this.slideTimer),this.bsCarousel.prev()}_registerFocusEvents(){this.el.addEventListener("mouseenter",()=>T.activeInstance=this),this.el.addEventListener("focusin",()=>T.activeInstance=this),this.el.addEventListener("mouseleave",()=>{T.activeInstance===this&&(T.activeInstance=null)}),this.el.addEventListener("focusout",()=>{T.activeInstance===this&&(T.activeInstance=null)})}_handleGlobalKeyDown(t){if(!["ArrowLeft","ArrowRight","Home","End"].includes(t.key))return;let e=T.activeInstance;if(!e||!e.el.contains(document.activeElement))return;t.preventDefault();let i=e.el.classList.contains("carousel")?e.el:e.el.querySelector(".carousel"),s=bootstrap.Carousel.getInstance(i)||new bootstrap.Carousel(i,{interval:!1,ride:!1});switch(t.key){case"ArrowRight":e._manualNext();break;case"ArrowLeft":e._manualPrev();break;case"Home":s.to(0);break;case"End":s.to(this._slides-1)}}_updateSlideTabIndexes(){this.el.querySelectorAll(".carousel-item").forEach(t=>{t.setAttribute("tabindex",t.classList.contains("active")?"0":"-1")})}_getFocusableElements(t){return Array.from(t.querySelectorAll('a[href], area[href],input:not([disabled]), select:not([disabled]), textarea:not([disabled]),button:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(t=>null!==t.offsetParent)}_handleTabNavigation(t){if("Tab"!==t.key)return;let e=Array.from(this.el.querySelectorAll(".carousel-inner .carousel-item")),i=e.findIndex(t=>t.classList.contains("active")),s=i===e.length-1,n=e[i],o=this._getFocusableElements(n);if(document.activeElement===this.el&&!t.shiftKey){t.preventDefault();let n=this.isPlaying?this.buttonPause:this.buttonPlay;if(n){n.focus();return}o.length?o[0].focus():s||(this._manualNext(),setTimeout(()=>{let t=e[i+1],s=this._getFocusableElements(t);s.length&&s[0].focus()},50));return}if(!t.shiftKey&&(document.activeElement===this.buttonPause||document.activeElement===this.buttonPlay)){t.preventDefault(),o.length?o[0].focus():s||(this._manualNext(),setTimeout(()=>{let t=e[i+1],s=this._getFocusableElements(t);s.length&&s[0].focus()},50));return}if(!t.shiftKey&&o.includes(document.activeElement)&&document.activeElement===o[o.length-1]){if(s)return;t.preventDefault(),this._manualNext(),setTimeout(()=>{let t=e[i+1],s=this._getFocusableElements(t);s.length?s[0].focus():this.el.focus()},50);return}if(document.activeElement===this.el&&t.shiftKey||t.shiftKey&&o.includes(document.activeElement)&&document.activeElement===o[0]){if(0===i)return;t.preventDefault(),this._manualPrev(),setTimeout(()=>{let t=e[i-1],s=this._getFocusableElements(t);s.length?s[s.length-1].focus():this.el.focus()},50);return}}_initAccessibilityTweaks(){let t=Array.from(this.el.querySelectorAll(".carousel-item")),e=this.el;e.addEventListener("scroll",t=>{t.preventDefault(),e.scrollLeft=0}),t.forEach((i,s)=>{if(i.classList.contains("tns-slide-cloned")||i.classList.contains("carousel-item-cloned")){i.querySelectorAll("a,button,img").forEach(t=>t.setAttribute("tabindex","-1"));return}i.addEventListener("keyup",i=>{"Tab"===i.key&&(this.isPlaying&&(clearTimeout(this.slideTimer),this.isPlaying=!1),e.scrollLeft=0,s!==t.findIndex(t=>t.classList.contains("active"))&&(this.bsCarousel.to(s),this._updateSlideTabIndexes()))})})}}class k extends s.A{static #t=this.options={imageSelector:".twt-image-parallax-image",areaSelector:".twt-image-parallax-area",maxShift:20,speed:5,smoothing:.08,scaleBuffer:1.05};init(){window.matchMedia("(hover: hover) and (pointer: fine)").matches&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(this._image=this.el.querySelector(this.options.imageSelector),this._image&&(this._area=this.el.closest(this.options.areaSelector)||this.el,this._current={x:0,y:0},this._target={x:0,y:0},this._running=!1,this._registerEvents()))}_registerEvents(){this._area.addEventListener("mousemove",this._onMouseMove.bind(this)),this._area.addEventListener("mouseleave",this._onMouseLeave.bind(this))}_onMouseMove(t){let e=this.options.maxShift*(this.options.speed/5),i=(this.options.scaleBuffer-1)/2,s=Math.min(e,Math.max(this._image.offsetWidth*i-1,0)),n=Math.min(e,Math.max(this._image.offsetHeight*i-1,0));this._target.x=(window.innerWidth/2-t.clientX)/(window.innerWidth/2)*s,this._target.y=(window.innerHeight/2-t.clientY)/(window.innerHeight/2)*n,this._startLoop()}_onMouseLeave(){this._target.x=0,this._target.y=0,this._startLoop()}_startLoop(){this._running||(this._running=!0,window.requestAnimationFrame(this._onFrame.bind(this)))}_onFrame(){this._current.x+=(this._target.x-this._current.x)*this.options.smoothing,this._current.y+=(this._target.y-this._current.y)*this.options.smoothing,.1>Math.abs(this._target.x-this._current.x)&&.1>Math.abs(this._target.y-this._current.y)&&(this._current.x=this._target.x,this._current.y=this._target.y,this._running=!1),this._image.style.transform=`translate3d(${this._current.x.toFixed(2)}px, ${this._current.y.toFixed(2)}
8px, 0)`,this._running&&window.requestAnimationFrame(this._onFrame.bind(this))}}class A extends s.A{init(){!document.body.classList.contains("twt-header-type-10")&&(this.twtMobileStickyHeader=$("#twt-data-attributes").attr("data-twt-mobile-sticky-header"),this.twtHeaderPhoneType=$("#twt-data-attributes").attr("data-twt-header-phone-type"),this.twtHeaderType=$("#twt-data-attributes").attr("data-twt-header-type"),"2"!=this.twtHeaderPhoneType)&&(this.headerMain=document.querySelector(".header-main"),this.searchContainer=document.querySelector(".search-container"),this.headerMain&&this.searchContainer&&(["load","scroll","resize"].forEach(t=>{window.addEventListener(t,this._updateSearchPosition.bind(this))}),this._updateSearchPosition()))}_updateSearchPosition(){if(!this.searchContainer)return;if(window.innerWidth>=576){this.searchContainer.classList.remove("fixed"),this.searchContainer.style.removeProperty("--twt-fixed-top");return}let t=this.headerMain.getBoundingClientRect();if(t.top>0){this.searchContainer.classList.remove("fixed"),this.searchContainer.style.removeProperty("--twt-fixed-top");return}let e=Math.floor(t.height);this.searchContainer.classList.add("fixed"),this.searchContainer.style.setProperty("--twt-fixed-top",`${e}px`)}}class I extends s.A{static #t=this.options={elementSelector:".twt-parallax-banner",modifier:10};init(){this._cmsElements=h.querySelectorAll(document,this.options.elementSelector,!1),this._modifier=this.options.modifier,this._registerEvents()}_registerEvents(){this._cmsElements&&this._cmsElements.forEach(t=>{window.addEventListener("load",this._animateElement.bind(this,t)),window.addEventListener("scroll",this._animateElement.bind(this,t)),window.addEventListener("resize",this._resizeWindow.bind(this,t))})}_animateElement(t){if(window.innerWidth<=768)return;let e=(t.getBoundingClientRect().top-window.innerHeight/2)/this._modifier;t.style.backgroundPosition="center calc(50% + "+e+"px)"}_resizeWindow(t){window.innerWidth<=768?t.style.backgroundPosition="center":this._animateElement(t)}}class D extends s.A{static #t=this.options={blockSelector:".twt-cms-animation",repeatAnimations:!1,fullyVisible:!1};init(){this._cmsBlocks=h.querySelectorAll(document,this.options.blockSelector,!1),this._cmsAnimationRepeating=this.options.repeatAnimations,this._cmsAnimationBlockFullyVisible=this.options.fullyVisible,this._registerEvents()}_registerEvents(){this._cmsBlocks&&this._cmsBlocks.forEach(t=>{window.addEventListener("load",this._animateBlocks.bind(this,t)),window.addEventListener("scroll",this._animateBlocks.bind(this,t))})}_animateBlocks(t){let e=t.getBoundingClientRect();this._cmsAnimationBlockFullyVisible?e.top>=0&&e.bottom<=window.innerHeight?t.classList.add("is-visible"):this._cmsAnimationRepeating&&t.classList.remove("is-visible"):e.top<window.innerHeight&&e.bottom>=0?t.classList.add("is-visible"):this._cmsAnimationRepeating&&t.classList.remove("is-visible")}}class x extends s.A{init(){null!=document.querySelector(".nav-main")&&(["load","scroll","resize"].forEach(t=>{window.addEventListener(t,this._setHeader.bind(this))}),this._setHeader())}_setHeader(){let t,e,i,s,n,o,r;let a=document.querySelector(".search-container");t=parseInt($(".twt-announcement-banner.is-header").outerHeight(!0),10),e=parseInt($(".header-main").outerHeight(!0),10),i=parseInt($(".nav-main").outerHeight(!0),10),s=parseInt($(".twt-usp-bar.is-header").outerHeight(!0),10),n=0,o=e,r=e+i,$(".twt-announcement-banner.is-header").length&&(n+=t,o+=t,r+=t),$(".twt-usp-bar.is-header").length&&(n+=s,o+=s,r+=s),window.innerWidth>568?(document.querySelector(".header-main").style.top=n+"px",document.querySelector(".nav-main").style.top=o+"px",null!=a&&(document.querySelector(".search-container").style.top=r+"px"),$(".twt-top-navigation-flyout-wrapper").length&&(document.body.classList.contains("is-sticky-nav-main")?document.querySelector(".twt-top-navigation-flyout-wrapper").style.top=i+"px":document.querySelector(".twt-top-navigation-flyout-wrapper").style.top=o+i+"px")):(document.querySelector(".header-main").style.top="",document.querySelector(".nav-main").style.top="",null!=a&&(document.querySelector(".search-container").style.top=""),$(".twt-top-navigation-flyout-wrapper").length&&(document.querySelector(".twt-top-navigation-flyout-wrapper").style.top=""))}}class P extends s.A{init(){this._elementIsSticky=!1,this._registerEvents()}_registerEvents(){window.addEventListener("load",this._positionElement.bind(this)),window.addEventListener("resize",this._positionElement.bind(this))}_positionElement(t){window.innerHeight-this.el.offsetHeight<=1?(this.el.classList.add("is-sticky"),this._elementIsSticky=!0):(this.el.classList.remove("is-sticky"),this._elementIsSticky=!1)}}var B=i(59);class M{constructor(){this.previousViewport=null,this.currentViewport=M.getCurrentViewport(),this._registerEvents()}_registerEvents(){window.addEventListener("DOMContentLoaded",this._onDOMContentLoaded.bind(this)),window.addEventListener("resize",B.A.debounce(this._onResize.bind(this),200),{capture:!0,passive:!0})}_onDOMContentLoaded(){this._dispatchEvents()}_onResize(){this._viewportHasChanged(M.getCurrentViewport())&&(this._dispatchEvents(),this._dispatchViewportEvent("Viewport/hasChanged"))}_dispatchEvents(){M.isXS()?this._dispatchViewportEvent("Viewport/isXS"):M.isSM()?this._dispatchViewportEvent("Viewport/isSM"):M.isMD()?this._dispatchViewportEvent("Viewport/isMD"):M.isLG()?this._dispatchViewportEvent("Viewport/isLG"):M.isXL()?this._dispatchViewportEvent("Viewport/isXL"):M.isXXL()&&this._dispatchViewportEvent("Viewport/isXXL")}_viewportHasChanged(t){let e=t!==this.currentViewport;return e&&(this.previousViewport=this.currentViewport,this.currentViewport=t),e}_dispatchViewportEvent(t){document.$emitter.publish(t,{previousViewport:this.previousViewport})}static isXS(){return"XS"===M.getCurrentViewport()}static isSM(){return"SM"===M.getCurrentViewport()}static isMD(){return"MD"===M.getCurrentViewport()}static isLG(){return"LG"===M.getCurrentViewport()}static isXL(){return"XL"===M.getCurrentViewport()}static isXXL(){return"XXL"===M.getCurrentViewport()}static getCurrentViewport(){return window.getComputedStyle(document.documentElement).getPropertyValue("--sw-current-breakpoint").replace(/['"]+/g,"").toUpperCase()}}class F extends s.A{init(){if(null!=document.querySelector(".nav-main")){var t=parseInt($("#twt-data-attributes").attr("data-twt-sticky-scroll-top"),10),e="is-sticky-nav-main",i=$("#twt-data-attributes").attr("data-twt-sticky-type"),s=$("#twt-data-attributes").attr("data-twt-sticky-breakpoint"),n=$("#twt-data-attributes").attr("data-twt-sticky-search"),o=$("#twt-data-attributes").attr("data-twt-sticky-cart"),r=0,a=$("body"),l=$(".nav-main"),h=$(".header-main"),d=$("div.header-cart[data-off-canvas-cart]"),
8c=$("#searchCollapse"),u=0,p=0,m=!1;$("#js-nav-main-placeholder").length||l.after('<div id="js-nav-main-placeholder" class="d-none"></div>');var _=$("#js-nav-main-placeholder");2!=o||$("#js-header-cart-placeholder").length||d.parent().prepend('<span id="js-header-cart-placeholder" class="d-none"></span>'),2!=n||$("#js-searchCollapse-placeholder").length||c.parent().prepend('<span id="js-searchCollapse-placeholder" class="d-none"></span>');var g=$("#js-header-cart-placeholder"),w=$("#js-searchCollapse-placeholder");C();var v=parseInt($("#twt-data-attributes").attr("data-twt-sticky-container-width"),10),b=null;window.addEventListener("scroll",I,{passive:!0}),window.addEventListener("load",I),document.addEventListener("Viewport/hasChanged",D),this._twtStickyTeardown=function(){window.removeEventListener("scroll",I),window.removeEventListener("load",I),document.removeEventListener("Viewport/hasChanged",D),null!==b&&(window.cancelAnimationFrame(b),b=null),k(),_.remove()}}function f(){m||(m=!0,_.removeClass("d-none").css({height:u+"px"}))}function y(){m&&(m=!1,_.addClass("d-none").css({height:""}))}function E(){2!=o||g.hasClass("is-clone")||(d.appendTo($("#js-sticky-cart-position").parent()).addClass("sticky"),g.addClass("is-clone")),2!=n||w.hasClass("is-clone")||(c.appendTo($("#js-sticky-search-position").parent()).removeClass("collapse").addClass("sticky"),w.addClass("is-clone"))}function S(){return g.hasClass("is-clone")||w.hasClass("is-clone")}function L(){2==o&&g.hasClass("is-clone")&&(d.appendTo(g.parent()).removeClass("sticky"),g.removeClass("is-clone")),2==n&&w.hasClass("is-clone")&&(c.appendTo(w.parent()).addClass("collapse").removeClass("sticky"),w.removeClass("is-clone"))}function C(){p=Math.round((m?_:l).offset().top)+t,m||S()||(u="absolute"==h.css("position")?0:l.outerHeight(!0))}function T(){if("8"==s)return document.documentElement.clientWidth>=v;var t=M.getCurrentViewport();return"7"==s?"XL"===t||"XXL"===t:"LG"===t||"XL"===t||"XXL"===t}function k(){l.removeClass("ready").removeClass("show"),a.removeClass(e),y(),L()}function A(){if(!T()){(m||S()||l.hasClass("ready"))&&k();return}if(C(),1==i)window.scrollY>p&&T()?(a.addClass(e),f(),E()):(a.removeClass(e),y(),L());else if(2==i){var t;(t=window.scrollY)>=p?T()&&(l.addClass("ready"),E()):(l.removeClass("ready").removeClass("show"),a.removeClass(e),y(),L()),l.hasClass("ready")&&(t<=p||t<r?(l.addClass("show"),a.addClass(e),f()):(l.removeClass("show"),a.removeClass(e),y())),r=t}}function I(){null===b&&(b=window.requestAnimationFrame(function(){b=null,A()}))}function D(){A()}}destroy(){this._twtStickyTeardown&&(this._twtStickyTeardown(),this._twtStickyTeardown=null)}}class q{static iterate(t,e){if(t instanceof Map||Array.isArray(t))return t.forEach(e);if(t instanceof FormData){for(var i of t.entries())e(i[1],i[0]);return}if(t instanceof NodeList)return t.forEach(e);if(t instanceof HTMLCollection)return Array.from(t).forEach(e);if(t instanceof Object)return Object.keys(t).forEach(i=>{e(t[i],i)});throw Error(`The element type ${typeof t} is not iterable!`)}}let N="twt-top-navigation:open";class H extends s.A{static #t=this.options={debounceTime:200,navItemSelector:".nav-item",ariaCurrentPageSelector:".nav-item-{id}-link",activeClass:"active",dropdownSelectorPrefix:".twt-top-navigation-flyout.nav-item-dropdown-",dropdownActiveClass:"show",dropdownHiddenClass:"d-none",scrollContainerSelector:".twt-flyout-scroll, .navigation-flyout-content",linkSelector:".main-navigation-link.root",linkActiveClass:"is-open",pathIdList:[],navRootSelector:"#main-navigation-menu"};init(){if(this.topLevelItems=document.querySelectorAll(this.options.linkSelector),this._linksArray=Array.from(this.topLevelItems),this._isTouch=g.A.isTouchDevice(),!this._linksArray.some(t=>!!this._getDropdownForItem(t)))return;this.activeDropdown=null,this.activeLink=null,this.closeTimeout=null,this.hoverTimeout=null,this.pendingItem=null,this.mousePositions=[],this.menuAimDelay=300,this.trackMouse=t=>{this.mousePositions.push({x:t.pageX,y:t.pageY,t:performance.now()}),this.mousePositions.length>5&&this.mousePositions.shift()},this._flyoutFrameId=null,this._onWindowChangeBound=this._onWindowChange.bind(this),this.topLevelItems.forEac
8h(t=>{if(t.matches('[data-bs-toggle="dropdown"]'))return;let e=!!this._getDropdownForItem(t);this._setAriaForItem(t,e)}),this._registerEvents(),this._registerKeyboardEvents(),this._onNavOpenBound=this._onNavOpen.bind(this),document.addEventListener(N,this._onNavOpenBound),this._handleResizeBound=this._handleResize.bind(this),window.addEventListener("resize",this._handleResizeBound);let t=document.getElementById("main-navigation-menu");this._pathIds=t?t.getAttribute("data-navbar-options"):null,this._onLoadBound=()=>this._setCurrentPage(),"complete"===document.readyState?this._setCurrentPage():window.addEventListener("load",this._onLoadBound,{once:!0})}destroy(){this.activeDropdown&&this._closeDropdown(),window.removeEventListener("resize",this._handleResizeBound),document.removeEventListener("keydown",this._onKeydownBound,!0),this._onNavOpenBound&&document.removeEventListener(N,this._onNavOpenBound),this._onLoadBound&&window.removeEventListener("load",this._onLoadBound),this._onBsGuardKeydownBound&&window.removeEventListener("keydown",this._onBsGuardKeydownBound,!0),q.iterate(this.topLevelItems,t=>{t.removeEventListener(this._openEvent,this._onInteractionBound,!1),this._isTouch||(t.removeEventListener("mouseleave",this._onLeaveBound,!1),t.removeEventListener("mouseenter",this._onEnterBound,!1))})}_registerEvents(){this._openEvent=this._isTouch?"touchstart":"mouseenter",this._onInteractionBound=t=>{let e=t.currentTarget;this._onInteraction(e,t)},this._onLeaveBound=this._onLeave.bind(this),this._onEnterBound=this._onEnter.bind(this),this._closeOnOutsideClickBound=this._closeOnOutsideClick.bind(this),q.iterate(this.topLevelItems,t=>{this._getDropdownForItem(t)&&(this._isTouch?t.addEventListener(this._openEvent,this._onInteractionBound,!1):(t.addEventListener("mouseenter",this._onInteractionBound,!1),t.addEventListener("mouseleave",this._onLeaveBound,!1),t.addEventListener("mouseenter",this._onEnterBound,!1)))}),document.querySelectorAll(".js-close-flyout-menu").forEach(t=>t.addEventListener("click",this._closeDropdown.bind(this)))}_registerKeyboardEvents(){this._onKeydownBound=this._onKeydown.bind(this),document.addEventListener("keydown",this._onKeydownBound,!0),this._onBsGuardKeydownBound=t=>{let e=t.key,i=document.querySelector(this.options.navRootSelector||"#main-navigation-menu");if(!(i&&i.contains(t.target)||this.el&&this.el.contains(t.target)))return;let s=t.target&&t.target.matches&&t.target.matches(this.options.linkSelector),n=!!this.activeDropdown&&(this.activeDropdown.contains(t.target)||this.activeDropdown.contains(document.activeElement)),o=s&&t.target.hasAttribute&&t.target.hasAttribute("data-bs-toggle"),r=t.target&&t.target.closest&&!!t.target.closest("[data-top-navigation-dropdown]");if(!o&&!r&&(!(t.target&&t.target.closest&&t.target.closest(".twt-top-navigation-sidebar-menu"))||"ArrowDown"!==e&&"ArrowUp"!==e)){if("ArrowDown"===e){if(t.stopImmediatePropagation(),s){let e=t.target,i=this._getDropdownForItem(e);i&&(t.preventDefault(),this.activeDropdown!==i&&this._openDropdown(i,e),this._focusItem(1));return}n&&t.preventDefault();return}if("ArrowUp"===e){if(t.stopImmediatePropagation(),s){let e=t.target;this._getDropdownForItem(e)&&t.preventDefault();return}n&&t.preventDefault();return}if("Escape"===e){t.preventDefault(),t.stopImmediatePropagation();let e=this.activeLink;this._closeDropdown(),e?.focus();return}}},window.addEventListener("keydown",this._onBsGuardKeydownBound,!0)}_setCurrentPage(){if(window.activeNavigationId){let t=this.options.ariaCurrentPageSelector.replace("{id}",window.activeNavigationId),e=this.el.querySelector(t);e&&(e.setAttribute("aria-current","page"),e.classList.add(this.options.activeClass))}let t=this._pathIds;if("string"==typeof t)try{t=JSON.parse(t)}catch{t={}}
8(Array.isArray(t?.pathIdList)?t.pathIdList:[]).forEach(t=>{let e=this.options.ariaCurrentPageSelector.replace("{id}",t),i=this.el.querySelector(e);i&&i.classList.add(this.options.activeClass)})}_onInteraction(t,e){let i="touchstart"===e.type||"click"===e.type,s=this._getDropdownForItem(t);if(i){if(!s)return;e.preventDefault(),e.stopPropagation()}if(!i&&this.activeDropdown&&this._isMovingTowardFlyout(this.activeDropdown)){this._armHoverTimeout(t,this.menuAimDelay);return}this._armHoverTimeout(t,this.options.debounceTime||200)}_armHoverTimeout(t,e){this._clearHoverTimeout(),this.pendingItem=t,this.hoverTimeout=setTimeout(()=>{if(this.pendingItem!==t)return;let e=this._getDropdownForItem(t);if(!e){this._closeDropdown(),this.pendingItem=null;return}this.activeDropdown&&this.activeDropdown!==e&&this._closeDropdown(),this._openDropdown(e,t),this.pendingItem=null},e)}_openDropdown(t,e){this._clearCloseTimeout(),this._emitNavOpen(t),t.classList.remove(this.options.dropdownHiddenClass),t.classList.add(this.options.dropdownActiveClass),this.activeDropdown=t,this._setActiveLink(e),t.addEventListener("mouseleave",this._onLeaveBound,!1),t.addEventListener("mouseenter",this._onEnterBound,!1),document.addEventListener("mousemove",this.trackMouse,{passive:!0}),document.addEventListener("click",this._closeOnOutsideClickBound,!0),window.addEventListener("scroll",this._onWindowChangeBound,{passive:!0}),this._updateFlyoutLayout(t)}_closeDropdown(){if(this.activeDropdown){this.activeDropdown.classList.add(this.options.dropdownHiddenClass),this.activeDropdown.classList.remove(this.options.dropdownActiveClass),this.activeDropdown.removeEventListener("mouseleave",this._onLeaveBound,!1),this.activeDropdown.removeEventListener("mouseenter",this._onEnterBound,!1),this.activeDropdown.style.removeProperty("--twt-flyout-top");let t=this.activeDropdown.querySelector(this.options.scrollContainerSelector);t&&t.style.removeProperty("--twt-flyout-top"),this.activeDropdown=null}document.removeEventListener("mousemove",this.trackMouse),document.removeEventListener("click",this._closeOnOutsideClickBound,!0),window.removeEventListener("scroll",this._onWindowChangeBound),this._cancelFlyoutFrame
8(),this.mousePositions.length=0,this._resetActiveLink(),this._clearCloseTimeout(),this.pendingItem=null}_emitNavOpen(t){document.dispatchEvent(new CustomEvent(N,{detail:{panel:t}}))}_onNavOpen(t){let e=t.detail&&t.detail.panel;this.activeDropdown&&this.activeDropdown!==e&&this._closeDropdown()}_closeOnOutsideClick(t){!this.activeDropdown||this.activeDropdown.contains(t.target)||t.target.closest(this.options.linkSelector)||this._closeDropdown()}_handleResize(){if(this.activeLink&&null===this.activeLink.offsetParent){this._closeDropdown();return}this.activeDropdown&&this._onWindowChange()}_updateFlyoutLayout(t){if(!t||null===t.offsetParent)return;let e=Math.max(0,t.getBoundingClientRect().top);t.style.setProperty("--twt-flyout-top",`${e}px`);let i=t.querySelector(this.options.scrollContainerSelector);if(!i||null===i.offsetParent)return;let s=Math.max(0,i.getBoundingClientRect().top);i.style.setProperty("--twt-flyout-top",`${s}px`)}_onWindowChange(){this.activeDropdown&&(this._flyoutFrameId||(this._flyoutFrameId=requestAnimationFrame(()=>{this._flyoutFrameId=null,this._updateFlyoutLayout(this.activeDropdown)})))}
8_cancelFlyoutFrame(){this._flyoutFrameId&&(cancelAnimationFrame(this._flyoutFrameId),this._flyoutFrameId=null)}_setActiveLink(t){this.activeLink&&(this.activeLink.classList.remove(this.options.linkActiveClass),this.activeLink.setAttribute("aria-expanded","false")),t.classList.add(this.options.linkActiveClass),this._getDropdownForItem(t)&&t.setAttribute("aria-expanded","true"),this.activeLink=t}_resetActiveLink(){this.activeLink&&(this.activeLink.setAttribute("aria-expanded","false"),this.activeLink.classList.remove(this.options.linkActiveClass),this.activeLink=null)}_onLeave(){this._clearHoverTimeout(),this.pendingItem=null,this._clearCloseTimeout(),this.closeTimeout=setTimeout(()=>{let t=this.activeDropdown&&this.activeDropdown.matches(":hover"),e=this.activeLink&&this.activeLink.matches(":hover");t||e||this._closeDropdown()},this.options.debounceTime)}_onEnter(){this._clearCloseTimeout()}_clearHoverTimeout(){this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null)}_clearCloseTimeout(){this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)}_onKeydown(t){let e=t.key;if("Enter"===e&&t.target.matches(this.options.linkSelector)){let e=t.target,i=this._getDropdownForItem(e);if(!i)return;t.preventDefault(),this.activeDropdown===i?this._closeDropdown():(this._openDropdown(i,e),this._focusItem(1));return}if("Tab"===e){if(t.shiftKey&&document.activeElement===this.activeLink){let e=this.activeLink,i=this._linksArray,s=e?i.indexOf(e):-1;this._closeDropdown(),s>0&&(t.preventDefault(),i[s-1]?.focus());return}if(t.shiftKey&&this.activeDropdown&&this._isFirstDropdownItem(document.activeElement)&&(t.preventDefault(),this.activeLink?.focus()),!t.shiftKey){if(document.activeElement===this.activeLink){if(t.preventDefault(),!this.activeDropdown){let t=this._getDropdownForItem(this.activeLink);t&&this._openDropdown(t,this.activeLink)}this._focusItem(1);return}if(this.activeDropdown&&this._isLastDropdownItem(document.activeElement)){let e=this.activeLink,i=this._linksArray,s=e?i.indexOf(e):-1;this._closeDropdown(),s>-1&&s<i.length-1&&(t.preventDefault(),i[s+1].focus())}}return}if((this.activeLink||this.activeDropdown)&&"Escape"===e){t.preventDefault();let e=this.activeLink;this._closeDropdown(),e?.focus()}}_getDropdownForItem(t){let e=t.closest(this.options.navItemSelector),i=this._extractNavItemId(e);return i?document.querySelector(`${this.options.dropdownSelectorPrefix}${i}`):null}_setAriaForItem(t,e){t.setAttribute("aria-haspopup",e?"true":"false"),e?t.setAttribute("aria-expanded","false"):t.removeAttribute("aria-expanded")}_isFirstDropdownItem(t){let e=this._focusableItems();return e.length&&e[0]===t}_isLastDropdownItem(t){let e=this._focusableItems();return e.length&&e[e.length-1]===t}_focusableItems(){return this.activeDropdown?Array.from(this.activeDropdown.querySelectorAll('a[href], button, [tabindex]:not([tabindex="-1"])')).filter(t=>t.getClientRects().length>0):[]}_extractNavItemId(t){if(!t)return null;let e=t.dataset?.categoryId;if(e)return e;let i=t.className.match(/nav-item-([a-f0-9]{32})/);return i?i[1]:null}_focusItem(t){let e=this._focusableItems();if(!e.length)return;let i=e.indexOf(document.activeElement);-1===i&&(i=t>0?-1:e.length);let s=(i+t+e.length)%e.length;e[s].focus()}_isMovingTowardFlyout(t){if(!t||this.mousePositions.length<2)return!1;let e=t.getBoundingClientRect(),i=this.mousePositions[this.mousePositions.length-1],s=this.mousePositions[this.mousePositions.length-2],n=i.x-s.x,o=i.y-s.y,r=e.left+e.width/2+window.scrollX,a=e.top+e.height/2+window.scrollY;return n*(r-i.x)+o*(a-i.y)>0}}class O extends s.A{static #t=this.options={itemSelector:".twt-top-navigation-sidebar-item",panelSelector:".twt-top-navigation-sidebar-panel",panelLinkSelector:'a, button, [tabindex]:not([tabindex="-1"])',targetAttr:"sidebarTarget",panelAttr:"sidebarPanel",activeClass:"is-active",hoverDelay:120};init(){this._items=Array.from(this.el.querySelectorAll(this.options.itemSelector)),this._panels=Array.from(this.el.querySelectorAll(this.options.panelSelector)),this._items.length<2||(this._isTouch=g.A.isTouchDevice(),this._hoverTimeout=null,this._onEnterBound=t=>this._onEnter(t.currentTarget),this._onFocusBound=t=>this._activate(t.currentTarget),this._onClickBound=t=>this._activate(t.currentTarget),this._onKeydownBound=t=>
8this._onKeydown(t),this._items.forEach(t=>{this._isTouch||t.addEventListener("mouseenter",this._onEnterBound,!1),t.addEventListener("focus",this._onFocusBound,!1),t.addEventListener("click",this._onClickBound,!1)}),window.addEventListener("keydown",this._onKeydownBound,!0))}_onEnter(t){clearTimeout(this._hoverTimeout),this._hoverTimeout=setTimeout(()=>this._activate(t),this.options.hoverDelay)}_activate(t){let e=t.dataset[this.options.targetAttr];e&&(this._items.forEach(e=>{e.classList.toggle(this.options.activeClass,e===t)}),this._panels.forEach(t=>{let i=t.dataset[this.options.panelAttr]===e;t.classList.toggle(this.options.activeClass,i),t.hidden=!i}))}_focusRailItem(t){let e=this._items[t];e&&(this._activate(e),e.focus())}_activePanel(){return this._panels.find(t=>!t.hidden)||null}_focusFirstPanelLink(){let t=this._activePanel(),e=t?t.querySelector(this.options.panelLinkSelector):null;e&&e.focus()}_focusActiveRailItem(){(this._items.find(t=>t.classList.contains(this.options.activeClass))||this._items[0]).focus()}_onKeydown(t){if(!this.el.contains(t.target))return;let e=t.target.closest(this.options.itemSelector);if(e&&this._items.includes(e)){let i=this._items.indexOf(e),s=this._items.length,n=!0;switch(t.key){case"ArrowDown":this._focusRailItem((i+1)%s);break;case"ArrowUp":this._focusRailItem((i-1+s)%s);break;case"Home":this._focusRailItem(0);break;case"End":this._focusRailItem(s-1);break;case"ArrowRight":this._focusFirstPanelLink();break;default:n=!1}n&&(t.preventDefault(),t.stopImmediatePropagation());return}"ArrowLeft"===t.key&&t.target.closest(this.options.panelSelector)&&(t.preventDefault(),t.stopImmediatePropagation(),this._focusActiveRailItem())}destroy(){clearTimeout(this._hoverTimeout),this._items&&this._items.forEach(t=>{t.removeEventListener("mouseenter",this._onEnterBound,!1),t.removeEventListener("focus",this._onFocusBound,!1),t.removeEventListener("click",this._onClickBound,!1)}),this._onKeydownBound&&window.removeEventListener("keydown",this._onKeydownBound,!0)}}class W extends s.A{init(){this._collapseEl=document.getElementById("searchCollapse"),this._collapseEl&&(this._mainToggleSelector="button.header-actions-btn.search-toggle-btn.js-search-toggle-btn:not(#searchCollapse button)",this._onDocumentFocusIn=this._onDocumentFocusIn.bind(this),this._onKeydown=this._onKeydown.bind(this),this._focusInput=this._focusInput.bind(this),this._collapseEl.addEventListener("shown.bs.collapse",()=>{this._focusInput(),document.addEventListener("focusin",this._onDocumentFocusIn),document.addEventListener("keydown",this._onKeydown)}),this._collapseEl.addEventListener("hidden.bs.collapse",()=>{document.removeEventListener("focusin",this._onDocumentFocusIn),document.removeEventListener("keydown",this._onKeydown),this._focusMainToggle()}),this._collapseEl.addEventListener("click",t=>{if(t.target.closest(".js-collapse-close-btn")){let t=document.querySelector(this._mainToggleSelector);t&&(t.click(),setTimeout(()=>t.focus(),0))}}))}_focusInput(){let t=this._collapseEl.querySelector("input[type=search]");t&&t.focus()}_focusMainToggle(){let t=document.querySelector(this._mainToggleSelector);t&&(window.matchMedia("(pointer: coarse), (hover: none)").matches,t.blur(),setTimeout(()=>{t.focus({preventScroll:!0})},0))}_onDocumentFocusIn(t){let e=t.target;if(!this._collapseEl.contains(e)&&this._collapseEl.classList.contains("show")){let t=document.querySelector(this._mainToggleSelector);t&&t.click()}}_onKeydown(t){if("Escape"===t.key&&this._collapseEl.classList.contains("show")){let t=document.querySelector(this._mainToggleSelector);t&&t.click()}}}let K=window.PluginManager;K.register("twtCountdownBannerPlugin",c,"[data-twt-countdown-banner]"),K.register("twtConfiguratorTooltip",u,"[data-twt-configurator-tooltip]"),K.register("twtTopNavigationDropdown",_,"[data-top-navigation-dropdown]"),K.register("twtFloatingWidget",L,'[id="twt-floating-widget"]'),K.register("twtFullWidthStickyHeader",C,"[data-twt-full-width-sticky-header]"),K.register("twtHeroSliderPlugin",T,"[data-twt-hero-slider]"),K.register("twtImageParallaxPlugin",k,"[data-twt-image-parallax]"),K.register("twtMobileStickyHeader",A,'[data-twt-mobile-sticky-header="2"]'),K.register("twtParallaxBannerPlugin",I,'div[class*="twt-parallax-banner"]'),K.register("twtScrollAnimation",D,'div[class*="twt-cms-animation"]'),K.register("twtShoppingExperiencesHeader",x,'[data-twt-shopping-experiences-header="true"]'),K.register("twtSlideoutCommunities",P,'[id="twt-slideout-communities"]'),K.register("twtStickyMainNavigation",F,"[data-twt-sticky-header]"),K.register("twtTopNavigationFlyout",H,"[data-top-navigation-flyout]"),K.register("twtTopNavigationSidebar",O,"[data-top-navigation-sidebar]"),K.register("twtFullscreenSearch",W,"[data-twt-fullscreen-search]"),window.useDefaultCookieConsent&&K.register("twtAnnouncementBannerPlugin",d,'[data-twt-announcement-banner="closable"]'),window.useDefaultCookieConsent&&window.twtCookiePermissionPositioned&&K.override("CookiePermission",()=>i.e(33571).then(i.bind(i,571)),"[data-cookie-permission]")})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.