1function debounce(e,t,n){var r;return function(){var o=this,i=arguments,s=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(o,i)}),t),s&&e.apply(o,i)}}!function(){"use strict";document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector(".collapsible-panel__trigger");e&&(e.addEventListener("click",(n=>{n.preventDefault(),t(e,"is-open")?e.setAttribute("aria-expanded","false"):e.setAttribute("aria-expanded","true")})),e.addEventListener("keyup",(e=>{if(e&&e.target)if(13==e.keyCode)(t=e.target.querySelector(".collapsible-panel__title"))&&(t.click(),e.target.focus(),e.target.classList.add("focus-visible"));else if(32==e.keyCode){var t;(t=e.target.querySelector(".collapsible-panel__trigger"))&&(t.click(),e.target.focus(),e.target.classList.add("focus-visible"))}})));const t=(e,t)=>(" "+e.className+" ").indexOf(" "+t+" ")>-1}))}(),function(e,t){"object"==typeof exports?module.exports=t(window,document):e.SimpleScrollbar=t(window,document)}(window,(function(e,t){function n(e){Object.prototype.hasOwnProperty.call(e,"data-simple-scrollbar")||Object.defineProperty(e,"data-simple-scrollbar",{value:new s(e)})}function r(n){if(this.target=n,this.direction=e.getComputedStyle(this.target).direction,this.bar='<div class="ss-scroll">',this.wrapper=t.createElement("div"),this.wrapper.setAttribute("class","ss-wrapper"),this.scrollbar=t.querySelector(".js-custom-scrollbar"),"UL"!==this.scrollbar.tagName){for(this.el=t.createElement("div"),this.el.setAttribute("class","ss-content"),"rtl"===this.direction&&this.el.classList.add("rtl"),this.wrapper.appendChild(this.el);this.target.firstChild;)this.el.appendChild(this.target.firstChild);this.target.appendChild(this.wrapper),this.target.insertAdjacentHTML("beforeend",this.bar),this.bar=this.target.lastChild,function(e,n){function r(e){var t=e.pageY-s;s=e.pageY,i((function(){n.el.scrollTop+=t/n.scrollRatio}))}function o(){e.classList.remove("ss-grabbed"),t.body.classList.remove("ss-grabbed"),t.removeEventListener("mousemove",r),t.removeEventListener("mouseup",o)}var s;e.addEventListener("mousedown",(function(n){return s=n.pageY,e.classList.add("ss-grabbed"),t.body.classList.add("ss-grabbed"),t.addEventListener("mousemove",r),t.addEventListener("mouseup",o),!1}))}(this.bar,this),this.moveBar(),e.addEventListener("resize",this.moveBar.bind(this)),this.el.addEventListener("scroll",this.moveBar.bind(this)),this.el.addEventListener("mouseenter",this.moveBar.bind(this)),this.target.classList.add("ss-container");var r=e.getComputedStyle(n);"0px"===r.height&&"0px"!==r["max-height"]&&(n.style.height=r["max-height"])}}function o(){for(var e=t.querySelectorAll("*[ss-container]"),r=0;r<e.length;r++)n(e[r])}var i=e.requestAnimationFrame||e.setImmediate||function(e){return setTimeout(e,0)};r.prototype={moveBar:function(e){var t=this.el.scrollHeight,n=this.el.clientHeight,r=this;this.scrollRatio=n/t;var o="rtl"===r.direction?r.target.clientWidth-r.bar.clientWidth+18:-1*(r.target.clientWidth-r.bar.clientWidth);i((function(){r.scrollRatio>=1?r.bar.classList.add("ss-hidden"):(r.bar.classList.remove("ss-hidden"),r.bar.style.cssText="height:"+Math.max(100*r.scrollRatio,10)+"%; top:"+r.el.scrollTop/t*100+"%;right:"+o+"px;")}))}},t.addEventListener("DOMContentLoaded",o),r.initEl=n,r.initAll=o;var s=r;return s})),function(){"use strict";window.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".js-custom-scrollbar");Array.prototype.forEach.call(e,(function(e){SimpleScrollbar.initEl(e)}))}))}(),window.debounce=debounce 2/*! lazysizes - v5.3.2 */,function(e){var t=function(e,t,n){"use strict";var r,o;if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in o=e.lazySizesConfig||e.lazysizesConfig||{},n)t in o||(o[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var i=t.documentElement,s=e.HTMLPictureElement,a="addEventListener",c="getAttribute",l=e[a].bind(e),u=e.setTimeout,d=e.requestAnimationFrame||u,f=e.requestIdleCallback,p=/^picture$/i,m=["load","error","lazyincluded","_lazyloaded"],h={},v=Array.prototype.forEach,y=function(e,t){return h[t]||(h[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),h[t].test(e[c]("class")||"")&&h[t]},g=function(e,t){y(e,t)||e.setAttribute("class",(e[c]("class")||"").trim()+" "+t)},b=function(e,t){var n;(n=y(e,t))&&e.setAttribute("class",(e[c]("class")||"").replace(n," "))},w=function(e,t,n){var r=n?a:"removeEventListener";n&&w(e,t),m.forEach((function(n){e[r](n,t)}))},S=function(e,n,o,i,s){var a=t.createEvent("Event");return o||(o={}),o.instance=r,a.initEvent(n,!i,!s),a.detail=o,e.dispatchEvent(a),a},L=function(t,n){var r;!s&&(r=e.picturefill||o.pf)?(n&&n.src&&!t[c]("srcset")&&t.setAttribute("srcset",n.src),r({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},E=function(e,t){return(getComputedStyle(e,null)||{})[t]},A=function(e,t,n){for(n=n||e.offsetWidth;n<o.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},_=function(){var e,n,r=[],o=[],i=r,s=function(){var t=i;for(i=r.length?o:r,e=!0,n=!1;t.length;)t.shift()();e=!1},a=function(r,o){e&&!o?r.apply(this,arguments):(i.push(r),n||(n=!0,(t.hidden?u:d)(s)))};return a._lsFlush=s,a}(),q=function(e,t){return t?function(){_(e)}:function(){var t=this,n=arguments;_((function(){e.apply(t,n)}))}},k=function(e){var t,r=0,i=o.throttleDelay,s=o.ricTimeout,a=function(){t=!1,r=n.now(),e()},c=f&&s>49?function(){f(a,{timeout:s}
2),s!==o.ricTimeout&&(s=o.ricTimeout)}:q((function(){u(a)}),!0);return function(e){var o;(e=!0===e)&&(s=33),t||(t=!0,(o=i-(n.now()-r))<0&&(o=0),e||o<9?c():u(c,o))}},x=function(e){var t,r,o=function(){t=null,e()},i=function(){var e=n.now()-r;e<99?u(i,99-e):(f||o)(o)};return function(){r=n.now(),t||(t=u(i,99))}},C=function(){var s,f,m,h,A,C,T,O,D,z,R,H,$=/^img$/i,I=/^iframe$/i,j="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),P=0,N=0,W=-1,B=function(e){N--,(!e||N<0||!e.target)&&(N=0)},F=function(e){return null==H&&(H="hidden"==E(t.body,"visibility")),H||!("hidden"==E(e.parentNode,"visibility")&&"hidden"==E(e,"visibility"))},U=function(e,n){var r,o=e,s=F(e);for(O-=n,R+=n,D-=n,z+=n;s&&(o=o.offsetParent)&&o!=t.body&&o!=i;)(s=(E(o,"opacity")||1)>0)&&"visible"!=E(o,"overflow")&&(r=o.getBoundingClientRect(),s=z>r.left&&D<r.right&&R>r.top-1&&O<r.bottom+1);return s},G=function(){var e,n,a,l,u,d,p,m,v,y,g,b,w=r.elements;if((h=o.loadMode)&&N<8&&(e=w.length)){for(n=0,W++;n<e;n++)if(w[n]&&!w[n]._lazyRace)if(!j||r.prematureUnveil&&r.prematureUnveil(w[n]))Z(w[n]);else if((m=w[n][c]("data-expand"))&&(d=1*m)||(d=P),y||(y=!o.expand||o.expand<1?i.clientHeight>500&&i.clientWidth>500?500:370:o.expand,r._defEx=y,g=y*o.expFactor,b=o.hFac,H=null,P<g&&N<1&&W>2&&h>2&&!t.hidden?(P=g,W=0):P=h>1&&W>1&&N<6?y:0),v!==d&&(C=innerWidth+d*b,T=innerHeight+d,p=-1*d,v=d),a=w[n].getBoundingClientRect(),(R=a.bottom)>=p&&(O=a.top)<=T&&(z=a.right)>=p*b&&(D=a.left)<=C&&(R||z||D||O)&&(o.loadHidden||F(w[n]))&&(f&&N<3&&!m&&(h<3||W<4)||U(w[n],d))){if(Z(w[n]),u=!0,N>9)break}else!u&&f&&!l&&N<4&&W<4&&h>2&&(s[0]||o.preloadAfterLoad)&&(s[0]||!m&&(R||z||D||O||"auto"!=w[n][c](o.sizesAttr)))&&(l=s[0]||w[n]);l&&!u&&Z(l)}},V=k(G),Y=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(B(e),g(t,o.loadedClass),b(t,o.loadingClass),w(t,X),S(t,"lazyloaded"))},Q=q(Y),X=function(e){Q({target:e.target})},J=function(e){var t,n=e[c](o.srcsetAttr);(t=o.customMedia[e[c]("data-media")||e[c]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},K=q((function(e,t,n,r,i){var s,a,l,d,f,h;(f=S(e,"lazybeforeunveil",t)).defaultPrevented||(r&&(n?g(e,o.autosizesClass):e.setAttribute("sizes",r)),a=e[c](o.srcsetAttr),s=e[c](o.srcAttr),i&&(d=(l=e.parentNode)&&p.test(l.nodeName||"")),h=t.firesLoad||"src"in e&&(a||s||d),f={target:e},g(e,o.loadingClass),h&&(clearTimeout(m),m=u(B,2500),w(e,X,!0)),d&&v.call(l.getElementsByTagName("source"),J),a?e.setAttribute("srcset",a):s&&!d&&(I.test(e.nodeName)?function(e,t){var n=e.getAttribute("data-load-mode")||o.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)}(e,s):e.src=s),i&&(a||d)&&L(e,{src:s})),e._lazyRace&&delete e._lazyRace,b(e,o.lazyClass),_((function(){var t=e.complete&&e.naturalWidth>1;h&&!t||(t&&g(e,o.fastLoadedClass),Y(f),e._lazyCache=!0,u((function(){"_lazyCache"in e&&delete e._lazyCache}),9)),"lazy"==e.loading&&N--}),!0)})),Z=function(e){if(!e._lazyRace){var t,n=$.test(e.nodeName),r=n&&(e[c](o.sizesAttr)||e[c]("sizes")),i="auto"==r;(!i&&f||!n||!e[c]("src")&&!e.srcset||e.complete||y(e,o.errorClass)||!y(e,o.lazyClass))&&(t=S(e,"lazyunveilread").detail,i&&M.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,N++,K(e,t,i,r,n))}},ee=x((function(){o.loadMode=3,V()})),te=function(){3==o.loadMode&&(o.loadMode=2),ee()},ne=function(){f||(n.now()-A<999?u(ne,999):(f=!0,o.loadMode=3,V(),l("scroll",te,!0)))};return{_:function(){A=n.now(),r.elements=t.getElementsByClassName(o.lazyClass),s=t.getElementsByClassName(o.lazyClass+" "+o.preloadClass),l("scroll",V,!0),l("resize",V,!0),l("pageshow",(function(e){if(e.persisted){var n=t.querySelectorAll("."+o.loadingClass);n.length&&n.forEach&&d((function(){n.forEach((function(e){e.complete&&Z(e)}))}))}})),e.MutationObserver?new MutationObserver(V).observe(i,{childList:!0,subtree:!0,attributes:!0}):(i[a]("DOMNodeInserted",V,!0),i[a]("DOMAttrModified",V,!0),setInterval(V,999)),l("hashchange",V,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(e){t[a](e,V,!0)})),/d$|^c/.test(t.readyState)?ne():(l("load",ne),t[a]("DOMContentLoaded",V),u(ne,2e4)),r.elements.length?(G(),_._lsFlush()):V()},checkElems:V,unveil:Z,_aLSL:te}}(),M=function(){var e,n=q((function(e,t,n,r){var o,i,s;if(e._lazysizesWidth=r,r+="px",e.setAttribute("sizes",r),p.test(t.no
2deName||""))for(i=0,s=(o=t.getElementsByTagName("source")).length;i<s;i++)o[i].setAttribute("sizes",r);n.detail.dataAttr||L(e,n.detail)})),r=function(e,t,r){var o,i=e.parentNode;i&&(r=A(e,i,r),(o=S(e,"lazybeforesizes",{width:r,dataAttr:!!t})).defaultPrevented||(r=o.detail.width)&&r!==e._lazysizesWidth&&n(e,i,o,r))},i=x((function(){var t,n=e.length;if(n)for(t=0;t<n;t++)r(e[t])}));return{_:function(){e=t.getElementsByClassName(o.autosizesClass),l("resize",i)},checkElems:i,updateElem:r}}(),T=function(){!T.i&&t.getElementsByClassName&&(T.i=!0,M._(),C._())};return u((function(){o.init&&T()})),r={cfg:o,autoSizer:M,loader:C,init:T,uP:L,aC:g,rC:b,hC:y,fire:S,gW:A,rAF:_}}(e,e.document,Date);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:{}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),Array.from||(Array.from=function(e){"use strict";return[].slice.call(e)}),Array.prototype.forEach||(Array.prototype.forEach=function(e){var t,n;if(null==this)throw new TypeError("this is null or not defined");var r=Object(this),o=r.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),n=0;n<o;){var i;n in r&&(i=r[n],e.call(t,i,n,r)),n++}}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;for(var o=0|t,i=Math.max(o>=0?o:r-Math.abs(o),0);i<r;){if(n[i]===e)return!0;i++}return!1}}),String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";if(e instanceof RegExp)throw TypeError("first argument must not be a RegExp");return void 0===t&&(t=0),-1!==this.indexOf(e,t)}) 3/*! respimage - v1.4.2 - 2015-08-22 4 Licensed MIT */,function(e,t,n){"use strict";function r(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function o(e,t,n){var r=t*Math.pow(e-.4,1.9);return u||(r/=1.3),(e+=r)>n}function i(e,t){return e.res-t.res}function s(e,t,n){var r;return!n&&t&&(n=(n=e[g.ns].sets)&&n[n.length-1]),(r=a(t,n))&&(t=g.makeUrl(t),e[g.ns].curSrc=t,e[g.ns].curCan=r,r.res||X(r,r.set.sizes)),r}function a(e,t){var n,r,o;if(e&&t)for(o=g.parseSet(t),e=g.makeUrl(e),n=0;n<o.length;n++)if(e==g.makeUrl(o[n].url)){r=o[n];break}return r}var c,l,u,d,f,p,m,h,v,y,g={},b=function(){},w=t.createElement("img"),S=w.getAttribute,L=w.setAttribute,E=w.removeAttribute,A=t.documentElement,_={},q={xQuant:1,lazyFactor:.4,maxX:2},k="data-pfsrc",x=k+"set",C="webkitBackfaceVisibility"in A.style,M=navigator.userAgent,T=/rident/.test(M)||/ecko/.test(M)&&M.match(/rv\:(\d+)/)&&RegExp.$1>35,O="currentSrc",D=/\s+\+?\d+(e\d+)?w/,z=/((?:\([^)]+\)(?:\s*and\s*|\s*or\s*|\s*not\s*)?)+)?\s*(.+)/,R=/^([\+eE\d\.]+)(w|x)$/,H=/\s*\d+h\s*/,$=e.respimgCFG,I=(location.protocol,"position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)"),j="font-size:100%!important;",P=!0,N={},W={},B=e.devicePixelRatio,F={px:1,in:96},U=t.createElement("a"),G=!1,V=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Y=function(e){var t={};return function(n){return n in t||(t[n]=e(n)),t[n]}},Q=function(){var e=/^([\d\.]+)(em|vw|px)$/,t=Y((function(e){return"return "+function(){for(var e=arguments,t=0,n=e[0];++t in e;)n=n.replace(e[t],e[++t]);return n}((e||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")}));return function(n,r){var o;if(!(n in N))if(N[n]=!1,r&&(o=n.match(e)))N[n]=o[1]*F[o[2]];else try{N[n]=new Function("e",t(n))(F)}catch(e){}return N[n]}}(),X=function(e,t){return e.w?(e.cWidth=g.calcListLength(t||"100vw"),e.res=e.w/e.cWidth):e.res=e.x,e},J=function(n){var r,o,i,s=n||{};if(s.elements&&1==s.elements.nodeType&&("IMG"==s.elements.nodeName.toUpperCase()?s.elements=[s.elements]:(s.context=s.elements,s.elements=null)),s.reparse&&(s.reevaluate=!0,e.console&&console.warn&&console.warn("reparse was renamed to reevaluate!")),i=(r=s.elements||g.qsa(s.context||t,s.reevaluate||s.reselect?g.sel:g.selShort)).length){for(g.setupRun(s),G=!0,o=0;i>o;
4o++)g.fillImg(r[o],s);g.teardownRun(s)}},K=Y((function(e){var t=[1,"x"],n=r(e||"");return n&&(t=!!(n=n.replace(H,"")).match(R)&&[1*RegExp.$1,RegExp.$2]),t}));if(O in w||(O="src"),_["image/jpeg"]=!0,_["image/gif"]=!0,_["image/png"]=!0,_["image/svg+xml"]=t.implementation.hasFeature("http://wwwindow.w3.org/TR/SVG11/feature#Image","1.1"),g.ns=("ri"+(new Date).getTime()).substr(0,9),g.supSrcset="srcset"in w,g.supSizes="sizes"in w,g.supPicture=!!e.HTMLPictureElement,g.supSrcset&&g.supPicture&&!g.supSizes&&function(e){w.srcset="data:,a",e.src="data:,a",g.supSrcset=w.complete===e.complete,g.supPicture=g.supSrcset&&g.supPicture}(t.createElement("img")),g.selShort="picture>img,img[srcset]",g.sel=g.selShort,g.cfg=q,g.supSrcset&&(g.sel+=",img["+x+"]"),g.DPR=B||1,g.u=F,g.types=_,h=g.supSrcset&&!g.supSizes,g.setSize=b,g.makeUrl=Y((function(e){return U.href=e,U.href})),g.qsa=function(e,t){return e.querySelectorAll(t)},g.matchesMedia=function(){return g.matchesMedia=e.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?function(e){return!e||matchMedia(e).matches}:g.mMQ,g.matchesMedia.apply(this,arguments)},g.mMQ=function(e){return!e||Q(e)},g.calcLength=function(e){var t=Q(e,!0)||!1;return 0>t&&(t=!1),t},g.supportsType=function(e){return!e||_[e]},g.parseSize=Y((function(e){var t=(e||"").match(z);return{media:t&&t[1],length:t&&t[2]}})),g.parseSet=function(e){if(!e.cands){var t,n,r,o,i,s=e.srcset;for(e.cands=[];s;)r=null,-1!=(t=(s=s.replace(/^\s+/g,"")).search(/\s/g))?(","!=(n=s.slice(0,t)).charAt(n.length-1)&&n||(n=n.replace(/,+$/,""),r=""),s=s.slice(t+1),null==r&&(-1!=(o=s.indexOf(","))?(r=s.slice(0,o),s=s.slice(o+1)):(r=s,s=""))):(n=s,s=""),n&&(r=K(r))&&((i={url:n.replace(/^,+/,""),set:e})[r[1]]=r[0],"x"==r[1]&&1==r[0]&&(e.has1x=!0),e.cands.push(i))}return e.cands},g.getEmValue=function(){var e;if(!m&&(e=t.body)){var n=t.createElement("div"),r=A.style.cssText,o=e.style.cssText;n.style.cssText=I,A.style.cssText=j,e.style.cssText=j,e.appendChild(n),m=n.offsetWidth,e.removeChild(n),m=parseFloat(m,10),A.style.cssText=r,e.style.cssText=o}return m||16},g.calcListLength=function(e){if(!(e in W)||q.uT){var t,n,o,i,s,a,c=r(e).split(/\s*,\s*/),l=!1;for(s=0,a=c.length;a>s&&(t=c[s],o=(n=g.parseSize(t)).length,i=n.media,!o||!g.matchesMedia(i)||!1===(l=g.calcLength(o)));s++);W[e]=l||F.width}return W[e]},g.setRes=function(e){var t;if(e)for(var n=0,r=(t=g.parseSet(e)).length;r>n;n++)X(t[n],e.sizes);return t},g.setRes.res=X,g.applySetCandidate=function(e,t){if(e.length){var n,r,a,u,m,h,v,b,w,S,L,E,A,_=t[g.ns],q=y,k=d,x=p;if(b=_.curSrc||t[O],w=_.curCan||s(t,b,e[0].set),r=g.DPR,A=w&&w.res,!v&&b&&((E=T&&!t.complete&&w&&A-.2>r)||w&&!(f>A)||(w&&r>A&&A>c&&(l>A&&(k*=.8,x+=.04*r),w.res+=k*Math.pow(A-x,2)),S=!_.pic||w&&w.set==e[0].set,w&&S&&w.res>=r&&(v=w))),!v)for(A&&(w.res=w.res-(w.res-A)/2),e.sort(i),v=e[(h=e.length)-1],a=0;h>a;a++)if((n=e[a]).res>=r){v=e[u=a-1]&&(m=n.res-r)&&(E||b!=g.makeUrl(n.url))&&o(e[u].res,m,r)?e[u]:n;break}return A&&(w.res=A),v&&(L=g.makeUrl(v.url),_.curSrc=L,_.curCan=v,L!=b&&g.setSrc(t,v),g.setSize(t)),q}},g.setSrc=function(e,t){var n;e.src=t.url,C&&(n=e.style.zoom,e.style.zoom="0.999",e.style.zoom=n)},g.getSet=function(e){var t,n,r,o=!1,i=e[g.ns].sets;for(t=0;t<i.length&&!o;t++)if((n=i[t]).srcset&&g.matchesMedia(n.media)&&(r=g.supportsType(n.type))){"pending"==r&&(n=r),o=n;break}return o},g.parseSets=function(e,t,r){var o,i,s,c,l="PICTURE"==t.nodeName.toUpperCase(),u=e[g.ns];(u.src===n||r.src)&&(u.src=S.call(e,"src"),u.src?L.call(e,k,u.src):E.call(e,k)),(u.srcset===n||!g.supSrcset||e.srcset||r.srcset)&&(o=S.call(e,"srcset"),u.srcset=o,c=!0),u.sets=[],l&&(u.pic=!0,function(e,t){var n,r,o,i,s=e.getElementsByTagName("source");for(n=0,r=s.length;r>n;n++)(o=s[n])[g.ns]=!0,(i=o.getAttribute("srcset"))&&t.push({srcset:i,media:o.getAttribute("media"),type:o.getAttribute("type"),sizes:o.getAttribute("sizes")})}(t,u.sets)),u.srcset?(i={srcset:u.srcset,sizes:S.call(e,"sizes")},u.sets.push(i),(s=(h||u.src)&&D.test(u.srcset||""))||!u.src||a(u.src,i)||i.has1x||(i.srcset+=", "+u.src,i.cands.push({url:u.src,x:1,set:i}))):u.src&&u.sets.push({srcset:u.src,sizes:null}),u.curCan=null,u.curSrc=n,u.supported=!(l||i&&!g.supSrcset||s),c&&g.supSrcset&&!u.supported&&(o?(L.call(e,x,o),e.srcset=""):E.call(e,x)),u.supported&&!u.srcset&&(!u.src&&e.src||e.src!=g.makeUrl(u.src))&&(null==u.src?e.removeAttribute("src"):e.src=u.src),u.parsed=!0},g.fillImg=function(e,t){var n,r,o=t.reselect||t.reevaluate;if(e[g.ns]||(e[g.ns]={}),r=e[g.ns],o||r.evaled!=y){if(!r.parsed||t.reevaluate){if(!(n=e.parentNode))return;g.parseSets(e,n,t)}r.supported?r.evaled=y:function(e){var t,n=g.getSet(e),r=!1;
4"pending"!=n&&(r=y,n&&(t=g.setRes(n),r=g.applySetCandidate(t,e))),e[g.ns].evaled=r}(e)}},g.setupRun=function(t){(!G||P||B!=e.devicePixelRatio)&&(function(){var t;P=!1,B=e.devicePixelRatio,N={},W={},t=(B||1)*q.xQuant,q.uT||(q.maxX=Math.max(1.3,q.maxX),t=Math.min(t,q.maxX),g.DPR=t),F.width=Math.max(e.innerWidth||0,A.clientWidth),F.height=Math.max(e.innerHeight||0,A.clientHeight),F.vw=F.width/100,F.vh=F.height/100,F.em=g.getEmValue(),F.rem=F.em,d=(d=q.lazyFactor/2)*t+d,p=.4+.1*t,c=.5+.2*t,l=.5+.25*t,f=t+1.3,(u=F.width>F.height)||(d*=.9),T&&(d*=.9),y=[F.width,F.height,t].join("-")}(),t.elements||t.context||clearTimeout(v))},g.supPicture?(J=b,g.fillImg=b):(t.createElement("picture"),function(){var n,r=e.attachEvent?/d$|^c/:/d$|^c|^i/,o=function(){var e=t.readyState||"";s=setTimeout(o,"loading"==e?200:999),t.body&&(n=n||r.test(e),g.fillImgs(),n&&clearTimeout(s))},i=function(){g.fillImgs()},s=setTimeout(o,t.body?0:20);V(e,"resize",(function(){clearTimeout(v),P=!0,v=setTimeout(i,99)})),V(t,"readystatechange",o)}()),g.respimage=J,g.fillImgs=J,g.teardownRun=b,J._=g,e.respimage=e.picturefill||J,!e.picturefill)for(e.respimgCFG={ri:g,push:function(e){var t=e.shift();"function"==typeof g[t]?g[t].apply(g,e):(q[t]=e[0],G&&g.fillImgs({reselect:!0}))}};$&&$.length;)e.respimgCFG.push($.shift());e.picturefill||(e.picturefill=e.respimage,e.picturefillCFG||(e.picturefillCFG=e.respimgCFG))}(window,document),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Glide=t()}(this,(function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=a(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(this,arguments)}function d(e){console.error("[Glide warn]: ".concat(e))}function f(e){return parseInt(e)}function p(e){return"string"==typeof e}function m(e){var t=n(e);return"function"===t||"object"===t&&!!e}function h(e){return"function"==typeof e}function v(e){return void 0===e}function y(e){return e.constructor===Array}function g(e,t,n){Object.defineProperty(e,t,n)}function b(e,n){var r=Object.assign({},e,n);return n.hasOwnProperty("classes")&&(r.classes=Object.assign({},e.classes,n.classes),["direction","type","slide","arrow","nav"].forEach((function(o){n.classes.hasOwnProperty(o)&&(r.classes[o]=t(t({},e.classes[o]),n.classes[o]))}))),n.hasOwnProperty("breakpoints")&&(r.breakpoints=Object.assign({},e.breakpoints,n.breakpoints)),r}function w(){return(new Date).getTime()}function S(e,t){var n,r,o,i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=0,c=function(){a=!1===s.leading?0:w(),n=null,i=e.apply(r,o),n||(r=o=null)},l=function(){var l=w();a||!1!==s.leading||(a=l);var u=t-(l-a);return r=this,o=arguments,u<=0||u>t?(n&&(clearTimeout(n),n=null),a=l,i=e.apply(r,o),n||(r=o=null)):n||!1===s.trailing||(n=setTimeout(c,u)),i};return l.cancel=function(){clearTimeout(n),a=0,n=r=o=null},l}function L(e){if(e&&e.parentNode){for(var t=e.parentNode.firstChild,n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}return[]}function E(e){return Array.prototype.slice.call(e)}function A(e,t){return{modify:function(e){return t.Direction.is("rtl")?-e:e}}}function _(e,t){return{modify:function(e){var n=Math.floor(e/t.Sizes.slideWidth);return e+t.Gaps.value*n}}}function q(e,t){return{modify:function(e){return e+t.Clones.grow/2}}}function k(e,t){return{modify:function(n){if(e.settings.focusAt>=0){var r=t.Peek.value;return m(r)?n-r.before:n-r}return n}}}function x(e,t){return{modify:function(n){var r=t.Gaps.value,o=t.Sizes.width,i=e.settings.focusAt,s=t.Sizes.slideWidth;return"center"===i?n-(o/2-s/2):n-s*i-r*i}}}function C(e){return m(e)?(t=e,Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e[n],e}),{})):(d("Breakpoints option must be an object"),{});var t}var M={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}},T=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.events=t,this.hop=t.hasOwnProperty}return i(e,[{key:"on",value:function(e,t){if(!y(e)){this.hop.call(this.events,e)||(this.events[e]=[]);var n=this.events[e].push(t)-1;return{remove:function(){delete this.events[e][n]}}}for(var r=0;r<e.length;r++)this.on(e[r],t)}},{key:"emit",value:function(e,t){if(y(e))for(var n=0;n<e.length;
vendor: 16,877 bytes, line 4
4n++)this.emit(e[n],t);else this.hop.call(this.events,e)&&this.events[e].forEach((function(e){e(t||{})}))}}]),e}(),O=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this._c={},this._t=[],this._e=new T,this.disabled=!1,this.selector=t,this.settings=b(M,n),this.index=this.settings.startAt}return i(e,[{key:"mount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),m(e)?this._c=function(e,t,n){var r={};for(var o in t)h(t[o])?r[o]=t[o](e,r,n):d("Extension must be a function");for(var i in r)h(r[i].mount)&&r[i].mount();return r}(this,e,this._e):d("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return y(e)?this._t=e:d("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=b(this.settings,e),e.hasOwnProperty("startAt")&&(this.index=e.startAt),this._e.emit("update"),this}},{key:"go",value:function(e){return this._c.Run.make(e),this}},{key:"move",value:function(e){return this._c.Transition.disable(),this._c.Move.make(e),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&(this.settings.autoplay=e),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(e,t){return this._e.on(e,t),this}},{key:"isType",value:function(e){return this.settings.type===e}},{key:"settings",get:function(){return this._o},set:function(e){m(e)?this._o=e:d("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(e){this._i=f(e)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(e){this._d=!!e}}]),e}(),D={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]},z=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.listeners=t}return i(e,[{key:"on",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];p(e)&&(e=[e]);for(var o=0;o<e.length;o++)this.listeners[e[o]]=n,t.addEventListener(e[o],this.listeners[e[o]],r)}},{key:"off",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(e)&&(e=[e]);for(var r=0;r<e.length;r++)t.removeEventListener(e[r],this.listeners[e[r]],n)}},{key:"destroy",value:function(){delete this.listeners}}]),e}(),R=["ltr","rtl"],H={">":"<","<":">","=":"="},$=!1;try{var I=Object.defineProperty({},"passive",{get:function(){$=!0}});window.addEventListener("testPassive",null,I),window.removeEventListener("testPassive",null,I)}catch(e){}var j=$,P=["touchstart","mousedown"],N=["touchmove","mousemove"],W=["touchend","touchcancel","mouseup","mouseleave"],B=["mousedown","mousemove","mouseup","mouseleave"],F='[data-glide-el^="controls"]',U="".concat(F,' [data-glide-dir*="<"]'),G="".concat(F,' [data-glide-dir*=">"]'),V={Html:function(e,t,n){var r={mount:function(){this.root=e.selector,this.track=this.root.querySelector('[data-glide-el="track"]'),this.collectSlides()},collectSlides:function(){this.slides=E(this.wrapper.children).filter((function(t){return!t.classList.contains(e.settings.classes.slide.clone)}))}};return g(r,"root",{get:function(){return r._r},set:function(e){p(e)&&(e=document.querySelector(e)),null!==e?r._r=e:d("Root element must be a existing Html node")}}),g(r,"track",{get:function(){return r._t},set:function(e){r._t=e}}),g(r,"wrapper",{get:function(){return r.track.children[0]}}),n.on("update",(function(){r.collectSlides()})),r},Translate:function(e,t,n){var r={set:function(n){var r=function(e,t){var n=[_,q,k,x].concat(e._t,[A]);return{mutate:function(r){for(var o=0;o<n.length;o++){var i=n[o];h(i)&&h(i().modify)?r=i(e,t,undefined).modify(r):d("Transformer should be a function that returns an object with `modify()` method")}return r}}}(e,t).mutate(n),o="translate3d(".concat(-1*r,"px, 0px, 0px)");t.Html.wrapper.style.mozTransform=o,t.Html.wrapper.style.webkitTransform=o,t.Html.wrapper.style.transform=o},remove:function(){t.Html.wrapper.style.transform=""},getStartIndex:function(){var n=t.Sizes.length,r=e.index,o=e.settings.perView;return t.Run.isOffset(">")||t.Run.isOffset("|>")?n+(r-o):(r+o)%n},getTravelDistance:function(){var n=t.Sizes.slideWidth*e.settings.perView;return t.Run.isOffset(">")||t.Run.isOffset("|>")?-1*n:n}};return n.on("move",(function(o){if(!e.isType("carousel")||!t.Run.isOffset())return r.set(o.movement);t.Transition.after((function(){n.emit("translate.jump"),r.set(t.Sizes.slideWidth*e.index)}));var i=t.Sizes.slideWidth*t.Translate.getStartIndex();return r.set(i-t.Translate.getTravelDistance())})),n.on("destroy",(function(){r.remove()})),r},Transition:function(e,t,n){var r=!1,o={compose:function(t){var n=e.settings;return r?"".concat(t," 0ms ").concat(n.animationTimingFunc):"".concat(t," ").concat(this.duration,"ms ").concat(n.animationTimingFunc)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";t.Html.wrapper.style.transition=this.compose(e)},remove:function(){t.Html.wrapper.style.transition=""},after:function(e){setTimeout((function(){e()}),this.duration)},enable:function(){r=!1,this.set()},disable:function(){r=!0,this.set()}};return g(o,"duration",{get:function(){var n=e.settings;return e.isType("slider")&&t.Run.offset?n.rewindDuration:n.animationDuration}}),n.on("move",(function(){o.set()})),n.on(["build.before","resize","translate.jump"],(function(){o.disable()})),n.on("run",(function(){o.enable()})),n.on("destroy",(function(){o.remove()})),o},Direction:function(e,t,n){var r={mount:function(){this.value=e.settings.direction},resolve:function(e){var t=e.slice(0,1);return this.is("rtl")?e.split(t).join(H[t]):e},is:function(e){return this.value===e},addClass:function(){t.Html.root.classList.add(e.settings.classes.direction[this.value])},removeClass:function(){t.Html.root.classList.remove(e.settings.classes.direction[this.value])}};return g(r,"value",{get:function(){return r._v},set:function(e){R.indexOf(e)>-1?r._v=e:d("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],(function(){r.removeClass()})),n.on("update",(function(){r.mount()})),n.on(["build.before","update"],(function(){r.addClass()})),r},Peek:function(e,t,n){var r={mount:function(){this.value=e.settings.peek}};return g(r,"value",{get:function(){return r._v},set:function(e){m(e)?(e.before=f(e.before),e.after=f(e.after)):e=f(e),r._v=e}}),g(r,"reductor",{get:function(){var t=r.value,n=e.settings.perView;return m(t)?t.before/n+t.after/n:2*t/n}}),n.on(["resize","update"],(function(){r.mount()})),r},Sizes:function(e,t,n){var r={setupSlides:function(){for(var e="".concat(this.slideWidth,"px"),n=t.Html.slides,r=0;r<n.length;r++)n[r].style.width=e},setupWrapper:function(){t.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var e=t.Html.slides,n=0;n<e.length;n++)e[n].style.width="";t.Html.wrapper.style.width=""}};return g(r,"length",{get:function(){return t.Html.slides.length}}),g(r,"width",{get:function(){return t.Html.track.offsetWidth}}),g(r,"wrapperSize",{get:function(){return r.slideWidth*r.length+t.Gaps.grow+t.Clones.grow}}),g(r,"slideWidth",{get:function(){return r.width/e.settings.perView-t.Peek.reductor-t.Gaps.reductor}}),n.on(["build.before","resize","update"],(function(){r.setupSlides(),r.setupWrapper()})),n.on("destroy",(function(){r.remove()})),r},Gaps:function(e,t,n){var r={apply:function(e){for(var n=0,r=e.length;n<r;n++){var o=e[n].style,i=t.Direction.value;o[D[i][0]]=0!==n?"".concat(this.value/2,"px"):"",n!==e.length-1?o[D[i][1]]="".concat(this.value/2,"px"):o[D[i][1]]=""}},remove:function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t].style;r.marginLeft="",r.marginRight=""}}};return g(r,"value",{get:function(){return f(e.settings.gap)}}),g(r,"grow",{get:function(){return r.value*t.Sizes.length}}),g(r,"reductor",{get:function(){var t=e.settings.perView;return r.value*(t-1)/t}}),n.on(["build.after","update"],S((function(){r.apply(t.Html.wrapper.children)}),30)),n.on("destroy",(function(){r.remove(t.Html.wrapper.children)})),r},Move:function(e,t,n){var r={mount:function(){this._o=0},make:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=r,n.emit("move",{movement:this.value}),t.Transition.after((function(){n.emit("move.after",{movement:e.value})}))}};return g(r,"offset",{get:function(){return r._o},set:function(e){r._o=v(e)?0:f(e)}}),g(r,"translate",{get:function(){return t.Sizes.slideWidth*e.index}}),g(r,"value",{get:function(){var e=this.offset,n=this.translate;return t.Direction.is("rtl")?n+e:n-e}}),n.on(["build.before","run"],(function(){r.make()})),r},Clones:function(e,t,n){var r={mount:function(){this.items=[],e.isType("carousel")&&(this.items=this.collect())},collect:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=t.Html.slides,o=e.settings,i=o.perView,s=o.classes,a=o.cloningRatio;if(r.length>0)for(var c=i+ +!!e.settings.peek+Math.round(i/2),l=r.slice(0,c).reverse(),u=r.slice(-1*c),d=0;d<Math.max(a,Math.floor(i/r.length));d++){for(var f=0;f<l.length;f++){var p=l[f].cloneNode(!0);p.classList.add(s.slide.clone),n.push(p)}for(var m=0;m<u.length;m++){var h=u[m].cloneNode(!0);h.classList.add(s.slide.clone),n.unshift(h)}}return n},append:function(){for(var e=this.items,n=t.Html,r=n.wrapper,o=n.slides,i=Math.floor(e.length/2),s=e.slice(0,i).reverse(),a=e.slice(-1*i).reverse(),c="".concat(t.Sizes.slideWidth,"px"),l=0;l<a.length;l++)r.appendChild(a[l]);for(var u=0;u<s.length;u++)r.insertBefore(s[u],o[0]);for(var d=0;d<e.length;d++)e[d].style.width=c},remove:function(){for(var e=this.items,n=0;n<e.length;n++)t.Html.wrapper.removeChild(e[n])}};return g(r,"grow",{get:function(){return(t.Sizes.slideWidth+t.Gaps.value)*r.items.length}}),n.on("update",(function(){r.remove(),r.mount(),r.append()})),n.on("build.before",(function(){e.isType("carousel")&&r.append()})),n.on("destroy",(function(){r.remove()})),r},Resize:function(e,t,n){var r=new z,o={mount:function(){this.bind()},bind:function(){r.on("resize",window,S((function(){n.emit("resize")}),e.settings.throttle))},unbind:function(){r.off("resize",window)}};return n.on("destroy",(function(){o.unbind(),r.destroy()})),o},Build:function(e,t,n){var r={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){t.Html.root.classList.add(e.settings.classes.type[e.settings.type])},activeClass:function(){var n=e.settings.classes,r=t.Html.slides[e.index];r&&(r.classList.add(n.slide.active),L(r).forEach((function(e){e.classList.remove(n.slide.active)})))},removeClasses:function(){var n=e.settings.classes,r=n.type,o=n.slide;t.Html.root.classList.remove(r[e.settings.type]),t.Html.slides.forEach((function(e){e.classList.remove(o.active)}))}};return n.on(["destroy","update"],(function(){r.removeClasses()})),n.on(["resize","update"],(function(){r.mount()})),n.on("move.after",(function(){r.activeClass()})),r},Run:function(e,t,n){var r={mount:function(){this._o=!1},make:function(r){var o=this;e.disabled||(!e.settings.waitForTransition||e.disable(),this.move=r,n.emit("run.before",this.move),this.calculate(),n.emit("run",this.move),t.Transition.after((function(){o.isStart()&&n.emit("run.start",o.move),o.isEnd()&&n.emit("run.end",o.move),o.isOffset()&&(o._o=!1,n.emit("run.offset",o.move)),n.emit("run.after",o.move),e.enable()})))},calculate:function(){var t=this.move,n=this.length,o=t.steps,i=t.direction,s=1;if("="===i)return e.settings.bound&&f(o)>n?void(e.index=n):void(e.index=o);if(">"!==i||">"!==o)if("<"!==i||"<"!==o){if("|"===i&&(s=e.settings.perView||1),">"===i||"|"===i&&">"===o){var a=function(t){var n=e.index;return e.isType("carousel")?n+t:n+(t-n%t)}(s);return a>n&&(this._o=!0),void(e.index=function(t,n){var o=r.length;return t<=o?t:e.isType("carousel")?t-(o+1):e.settings.rewind?r.isBound()&&!r.isEnd()?o:0:r.isBound()?o:Math.floor(o/n)*n}(a,s))}if("<"===i||"|"===i&&"<"===o){var c=function(t){var n=e.index;return e.isType("carousel")?n-t:(Math.ceil(n/t)-1)*t}(s);return c<0&&(this._o=!0),void(e.index=function(t,n){var o=r.length;return t>=0?t:e.isType("carousel")?t+(o+1):e.settings.rewind?r.isBound()&&r.isStart()?o:Math.floor(o/n)*n:0}(c,s))}d("Invalid direction pattern [".concat(i).concat(o,"] has been used"))}else e.index=0;else e.index=n},isStart:function(){return e.index<=0},isEnd:function(){return e.index>=this.length},isOffset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return e?!!this._o&&("|>"===e?"|"===this.move.direction&&">"===this.move.steps:"|<"===e?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===e):this._o},isBound:function(){return e.isType("slider")&&"center"!==e.settings.focusAt&&e.settings.bound}};return g(r,"move",{get:function(){return this._m},set:function(e){var t=e.substr(1);this._m={direction:e.substr(0,1),steps:t?f(t)?f(t):t:0}}}),g(r,"length",{get:function(){var n=e.settings,r=t.Html.slides.length;return this.isBound()?r-1-(f(n.perView)-1)+f(n.focusAt):r-1}}),g(r,"offset",{get:function(){return this._o}}),r},Swipe:function(e,t,n){var r=new z,o=0,i=0,s=0,a=!1,c=!!j&&{passive:!0},l={mount:function(){this.bindSwipeStart()},start:function(t){if(!a&&!e.disabled){this.disable();var r=this.touches(t);o=null,i=f(r.pageX),s=f(r.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),n.emit("swipe.start")}},move:function(r){if(!e.disabled){var a=e.settings,c=a.touchAngle,l=a.touchRatio,u=a.classes,d=this.touches(r),p=f(d.pageX)-i,m=f(d.pageY)-s,h=Math.abs(p<<2),v=Math.abs(m<<2),y=Math.sqrt(h+v),g=Math.sqrt(v);if(!(180*(o=Math.asin(g/y))/Math.PI<c))return!1;r.stopPropagation(),t.Move.make(p*parseFloat(l)),t.Html.root.classList.add(u.dragging),n.emit("swipe.move")}},end:function(r){if(!e.disabled){var s=e.settings,a=s.perSwipe,c=s.touchAngle,l=s.classes,u=this.touches(r),d=this.threshold(r),f=u.pageX-i,p=180*o/Math.PI;this.enable(),f>d&&p<c?t.Run.make(t.Direction.resolve("".concat(a,"<"))):f<-d&&p<c?t.Run.make(t.Direction.resolve("".concat(a,">"))):t.Move.make(),t.Html.root.classList.remove(l.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),n.emit("swipe.end")}},bindSwipeStart:function(){var n=this,o=e.settings,i=o.swipeThreshold,s=o.dragThreshold;i&&r.on(P[0],t.Html.wrapper,(function(e){n.start(e)}),c),s&&r.on(P[1],t.Html.wrapper,(function(e){n.start(e)}),c)},unbindSwipeStart:function(){r.off(P[0],t.Html.wrapper,c),r.off(P[1],t.Html.wrapper,c)},bindSwipeMove:function(){var n=this;r.on(N,t.Html.wrapper,S((function(e){n.move(e)}),e.settings.throttle),c)},unbindSwipeMove:function(){r.off(N,t.Html.wrapper,c)},bindSwipeEnd:function(){var e=this;r.on(W,t.Html.wrapper,(function(t){e.end(t)}))},unbindSwipeEnd:function(){r.off(W,t.Html.wrapper)},touches:function(e){return B.indexOf(e.type)>-1?e:e.touches[0]||e.changedTouches[0]},threshold:function(t){var n=e.settings;return B.indexOf(t.type)>-1?n.dragThreshold:n.swipeThreshold},enable:function(){return a=!1,t.Transition.enable(),this},disable:function(){return a=!0,t.Transition.disable(),this}};return n.on("build.after",(function(){t.Html.root.classList.add(e.settings.classes.swipeable)})),n.on("destroy",(function(){l.unbindSwipeStart(),l.unbindSwipeMove(),l.unbindSwipeEnd(),r.destroy()})),l},Images:function(e,t,n){var r=new z,o={mount:function(){this.bind()},bind:function(){r.on("dragstart",t.Html.wrapper,this.dragstart)},unbind:function(){r.off("dragstart",t.Html.wrapper)},dragstart:function(e){e.preventDefault()}};return n.on("destroy",(function(){o.unbind(),r.destroy()})),o},Anchors:function(e,t,n){var r=new z,o=!1,i=!1,s={mount:function(){this._a=t.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){r.on("click",t.Html.wrapper,this.click)},unbind:function(){r.off("click",t.Html.wrapper)},click:function(e){i&&(e.stopPropagation(),e.preventDefault())},detach:function(){if(i=!0,!o){for(var e=0;e<this.items.length;e++)this.items[e].draggable=!1;o=!0}return this},attach:function(){if(i=!1,o){for(var e=0;e<this.items.length;e++)this.items[e].draggable=!0;o=!1}return this}};return g(s,"items",{get:function(){return s._a}}),n.on("swipe.move",(function(){s.detach()})),n.on("swipe.end",(function(){t.Transition.after((function(){s.attach()}))})),n.on("destroy",(function(){s.attach(),s.unbind(),r.destroy()})),s},Controls:function(e,t,n){var r=new z,o=!!j&&{passive:!0},i={mount:function(){this._n=t.Html.root.querySelectorAll('[data-glide-el="
4controls[nav]"]'),this._c=t.Html.root.querySelectorAll(F),this._arrowControls={previous:t.Html.root.querySelectorAll(U),next:t.Html.root.querySelectorAll(G)},this.addBindings()},setActive:function(){for(var e=0;e<this._n.length;e++)this.addClass(this._n[e].children)},removeActive:function(){for(var e=0;e<this._n.length;e++)this.removeClass(this._n[e].children)},addClass:function(t){var n=e.settings,r=t[e.index];r&&(r.classList.add(n.classes.nav.active),L(r).forEach((function(e){e.classList.remove(n.classes.nav.active)})))},removeClass:function(t){var n=t[e.index];null==n||n.classList.remove(e.settings.classes.nav.active)},setArrowState:function(){if(!e.settings.rewind){var n=i._arrowControls.next,r=i._arrowControls.previous;this.resetArrowState(n,r),0===e.index&&this.disableArrow(r),e.index===t.Run.length&&this.disableArrow(n)}},resetArrowState:function(){for(var t=e.settings,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach((function(e){E(e).forEach((function(e){e.classList.remove(t.classes.arrow.disabled)}))}))},disableArrow:function(){for(var t=e.settings,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach((function(e){E(e).forEach((function(e){e.classList.add(t.classes.arrow.disabled)}))}))},addBindings:function(){for(var e=0;e<this._c.length;e++)this.bind(this._c[e].children)},removeBindings:function(){for(var e=0;e<this._c.length;e++)this.unbind(this._c[e].children)},bind:function(e){for(var t=0;t<e.length;t++)r.on("click",e[t],this.click),r.on("touchstart",e[t],this.click,o)},unbind:function(e){for(var t=0;t<e.length;t++)r.off(["click","touchstart"],e[t])},click:function(e){j||"touchstart"!==e.type||e.preventDefault();var n=e.currentTarget.getAttribute("data-glide-dir");t.Run.make(t.Direction.resolve(n))}};return g(i,"items",{get:function(){return i._c}}),n.on(["mount.after","move.after"],(function(){i.setActive()})),n.on(["mount.after","run"],(function(){i.setArrowState()})),n.on("destroy",(function(){i.removeBindings(),i.removeActive(),r.destroy()})),i},Keyboard:function(e,t,n){var r=new z,o={mount:function(){e.settings.keyboard&&this.bind()},bind:function(){r.on("keyup",document,this.press)},unbind:function(){r.off("keyup",document)},press:function(n){var r=e.settings.perSwipe;["ArrowRight","ArrowLeft"].includes(n.code)&&t.Run.make(t.Direction.resolve("".concat(r).concat({ArrowRight:">",ArrowLeft:"<"}[n.code])))}};return n.on(["destroy","update"],(function(){o.unbind()})),n.on("update",(function(){o.mount()})),n.on("destroy",(function(){r.destroy()})),o},Autoplay:function(e,t,n){var r=new z,o={mount:function(){this.enable(),this.start(),e.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var r=this;this._e&&(this.enable(),e.settings.autoplay&&v(this._i)&&(this._i=setInterval((function(){r.stop(),t.Run.make(">"),r.start(),n.emit("autoplay")}),this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var e=this;r.on("mouseover",t.Html.root,(function(){e._e&&e.stop()})),r.on("mouseout",t.Html.root,(function(){e._e&&e.start()}))},unbind:function(){r.off(["mouseover","mouseout"],t.Html.root)}};return g(o,"time",{get:function(){return f(t.Html.slides[e.index].getAttribute("data-glide-autoplay")||e.settings.autoplay)}}),n.on(["destroy","update"],(function(){o.unbind()})),n.on(["run.before","swipe.start","update"],(function(){o.stop()})),n.on(["pause","destroy"],(function(){o.disable(),o.stop()})),n.on(["run.after","swipe.end"],(function(){o.start()})),n.on(["play"],(function(){o.enable(),o.start()})),n.on("update",(function(){o.mount()})),n.on("destroy",(function(){r.destroy()})),o},Breakpoints:function(e,t,n){var r=new z,o=e.settings,i=C(o.breakpoints),s=Object.assign({},o),a={match:function(e){if(void 0!==window.matchMedia)for(var t in e)if(e.hasOwnProperty(t)&&window.matchMedia("(max-width: ".concat(t,"px)")).matches)return e[t];return s}};return Object.assign(o,a.match(i)),r.on("resize",window,S((function(){e.settings=b(o,a.match(i))}),e.settings.throttle)),n.on("update",(function(){i=C(i),s=Object.assign({},o)})),n.on("destroy",(function(){r.off("resize",window)})),a}},Y=function(e){function t(){return r(this,t),n.apply(this,arguments)}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e);var n=l(t);return i(t,[{key:"mount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u(a(t.prototype),"mount",this).call(this,Object.assign({},V,e))}}]),t}(O);return Y})),function(){"use strict";const e=e=>{if(!e)return;
4[...e.querySelectorAll("a.at-icon-wrapper")].forEach((e=>{e.addEventListener("keyup",(e=>{e&&e.target&&9==e.keyCode&&e.target.classList&&e.target.classList.add("focus-visible")})),e.addEventListener("blur",(e=>{e&&e.target&&e.target.classList&&e.target.classList.remove("focus-visible")}))}))};window.addEventListener("DOMContentLoaded",(function(){[...document.querySelectorAll(".addthis")].forEach((t=>{new MutationObserver((()=>e(t))).observe(t,{childList:!0,subtree:!0})}))}))}(),function(){"use strict";const e=window.innerWidth<768;const t=t=>{let n="";if(t.classList.contains("image")){const r=t.querySelector('source[data-breakpoint="desktop"]');n+=((t,n)=>{const r=e&&t?t:n;return r?`--aspect-ratio:${r.getAttribute("data-width")}/${r.getAttribute("data-height")};`:""})(t.querySelector('source[data-breakpoint="mobile"]'),r),t.setAttribute("style",n)}if(t.classList.contains("video-wrapper")){n+=(t=>{const n=t.querySelector("iframe").getAttribute("data-video-md");return e&&n?`--aspect-ratio:${t.getAttribute("data-video-width-mobile")}/${t.getAttribute("data-video-height-mobile")};`:`--aspect-ratio:${t.getAttribute("data-video-width")}/${t.getAttribute("data-video-height")};`})(t.querySelector(".video-component__container")),t.setAttribute("style",n)}},n=()=>{document.querySelectorAll(".aspect-ratio-box").forEach((e=>{t(e)}))},r=()=>{n()};window.addEventListener("DOMContentLoaded",r),window.initAspectRatio=r}(),function(){"use strict";window.addEventListener("DOMContentLoaded",(function(){function e(){!function(e,t){function n(){var s=(performance.now()-i)/t;s>=1?window.scrollTo(0,e):(window.scrollTo(0,o+(e-o)*r(s)),requestAnimationFrame(n))}function r(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}var o=window.scrollY,i=performance.now();requestAnimationFrame(n)}(0,1e3),document.querySelector("#hw-content").focus()}window.addEventListener("scroll",(function(){const t=document.querySelector(".btt-icon");t&&(window.scrollY>window.innerHeight?(t.style.opacity="1",t.addEventListener("click",e)):(t.style.opacity="0",t.removeEventListener("click",e)))}))}))}(),function(){"use strict";let e=null;const t=function(){return window.innerWidth<768},n=(e,t)=>(" "+e.className+" ").indexOf(" "+t+" ")>-1,r=(e,t)=>{e.classList.add(t)},o=(e,t)=>{e.classList.remove(t)},i=e=>{if(e&&e.target){var i=e.target.closest(".facet-single-selection-list");i&&t()&&(n(i,"is-open")?o(i,"is-open"):r(i,"is-open"))}},s=e=>{if(e&&e.target){var t=e.which||e.keyCode;!e.target||13!=t&&32!=t||e.target.click()}},a=e=>{e&&e.target&&9==e.keyCode&&e.target.classList.add("focus-visible")},c=e=>{e&&e.target&&(e.target.classList.remove("focus-visible"),0==e.target.classList.length&&e.target.removeAttribute("class"))},l=e=>{if(e&&t()){const t=e.closest(".collapsible-panel--filters-product-grid");if(t){const e=t.querySelector(".collapsible-panel__trigger");if(e){e.removeAttribute("role"),e.removeAttribute("tabindex");const t=e.querySelector(".collapsible-panel__icon");t&&(t.setAttribute("role","button"),t.setAttribute("tabindex",0),t.addEventListener("keyup",a,!0),t.addEventListener("blur",c,!0),t.focus())}const n=t.querySelectorAll(".facet-single-selection-list");n&&Array.prototype.forEach.call(n,(e=>{var t=e.querySelector(".facet-heading");t&&(t.setAttribute("role","button"),t.setAttribute("tabindex",0),t.addEventListener("click",i,!0),t.addEventListener("keyup",s,!0),t.addEventListener("keyup",a,!0),t.addEventListener("blur",c,!0))}))}}},u=t=>{r(document.body,"modal-open");const n=t.closest(".collapsible-panel--filters-product-grid");n&&r(n,"is-open"),window.scrollTo(0,0),e=t,(()=>{const e=document.querySelector("#skip_links");e&&(e.style.display="none")})()},d=()=>{if(o(document.body,"modal-open"),e){const n=e.closest(".collapsible-panel--filters-product-grid");n&&(o(n,"is-open"),(n=>{if(n&&(t()||e)){const e=n.querySelector(".collapsible-panel__trigger");if(e){e.setAttribute("role","button"),e.setAttribute("tabindex",0);const t=e.querySelector(".collapsible-panel__icon");t&&(t.removeAttribute("role"),t.removeAttribute("tabindex"),t.removeEventListener("keyup",a,!0))}const t=n.querySelectorAll(".facet-single-selection-list");t&&Array.prototype.forEach.call(t,(e=>{var t=e.querySelector(".facet-heading");t&&(t.removeAttribute("role"),t.removeAttribute("tabindex"),t.removeEventListener("click",i,!0),t.removeEventListener("keyup",s,!0),t.removeEventListener("keyup",a,
4!0),t.removeEventListener("blur",c,!0))}))}})(n),window.scrollTo(0,n.offsetTop))}e=null,(()=>{const e=document.querySelector("#skip_links");e&&(e.style.display="block")})()};window.addEventListener("DOMContentLoaded",(function(){const r=document.querySelectorAll(".collapsible-panel--filters-product-grid");Array.prototype.forEach.call(r,(e=>{const r=e.querySelector(".collapsible-panel__trigger");r&&r.addEventListener("click",(function(e){if(t()){e.preventDefault();let t=e.target;n(t,"collapsible-panel__trigger")||(t=e.target.parentElement),n(t,"is-open")?d():(u(t),l(t))}}))})),document.addEventListener("keyup",(function(n){if(t()){27===n.keyCode&&e&&e.click()}}))})),window.addEventListener("resize",(()=>{if(t()&&!e){const e=document.querySelectorAll(".collapsible-panel--filters-product-grid");Array.prototype.forEach.call(e,(e=>{const t=e.querySelector(".collapsible-panel__trigger");t&&n(t,"is-open")&&t.click()}))}else!t()&&e&&d()}))}(),function(){"use strict";function e(e,t,n,r){const o=document.createElement(e);return o.innerHTML=t,Object.keys(n).forEach((e=>{o.setAttribute(e,n[e])})),Object.keys(r).forEach((e=>{o.dataset[e]=r[e]})),o}window.addEventListener("DOMContentLoaded",(function(){const t=[...document.querySelectorAll(".js-country-region-list")],n=document.querySelector("#salonId"),r=document.querySelector("#countryId"),o=document.querySelector("[data-sc-field-name=country]"),i=[...document.querySelectorAll(".country-salon-list")],s=n?n.value:"",a=r?r.value:"";t.forEach((t=>async function(t,n,r){const o=t.querySelector(".js-select--country-region select"),i=document.querySelector(".js-select--salon select"),s=async()=>{const n=document.querySelector("#preferredSalonId");if(!n)return;const r=t.querySelector(".js-salon-label.salonDropdown"),s=n.value,a=o.options[o.selectedIndex],c=r?r.innerHTML:"";i.innerHTML="",i.appendChild(e("option",c,{value:"",label:s},{crmName:-1})),i.setAttribute("disabled",!0);const l=document.getElementById("context_language").value,u=document.querySelector("[data-sc-field-name=zipcode]");if(a&&null===u){const e=document.querySelector('[data-sc-field-name="hw_cd_country"]'),t=document.querySelector('[data-sc-field-name="country"]'),n=a.getAttribute("data-country-iso");e&&(e.value=a.text,t.value=n)}const d=await async function(e,t){const n=await fetch(`/${e}/api/countrysalon/returnsalon?datasource=${t}`);return[...JSON.parse(await n.text())]}(l,a.value);for(const t of d){const n=e("option",t.Name,{value:t.Id.Guid},{crmName:t.CRMName,name:t.Name});i.appendChild(n)}d.length&&i.removeAttribute("disabled")},a=()=>{const e=i.options[i.selectedIndex],t=e.getAttribute("data-crm-name"),n=e.getAttribute("data-name"),r=document.querySelector('[data-sc-field-name="hw_salon"]'),o=document.querySelector('[data-sc-field-name="hw_cd_salonname"]');r&&(r.value=t),o&&(o.value=n)};if(o.addEventListener("change",s),i.addEventListener("change",a),n){const e=o.querySelector('option[value="'+n+'"]');e&&(e.selected=!0),await s()}if(r){const e=i.querySelector('option[value="'+r+'"]');e&&(e.selected=!0),a()}}(t,a,s))),i.forEach((()=>{const e=document.querySelector(".js-select--salon select");e.addEventListener("change",(function(){const t=e.options[e.selectedIndex],n=t.getAttribute("data-crm-name"),r=t.getAttribute("data-name");var o=document.querySelector('[data-sc-field-name="hw_salon"]'),i=document.querySelector('[data-sc-field-name="hw_cd_salonname"]');o&&(o.value=n),i&&(i.value=r)}))})),o&&o.addEventListener("change",(function(){var e=o.options[o.selectedIndex],t=document.querySelector('[data-sc-field-name="hw_cd_country"]');t&&(t.value=e.text)}))}))}();const deviceDetector=()=>{let e=navigator.userAgent.toLowerCase();const t=function(t){return void 0===t?t=e:e=t.toLowerCase(),/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e)||navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/macintosh/.test(e)?"tablet":/(mobi|ipod|phone|blackberry|opera mini|fennec|minimo|symbian|psp|nintendo ds|archos|skyfire|puffin|blazer|bolt|gobrowser|iris|maemo|semc|teashark|uzard)/.test(e)?"phone":"desktop"};return{device:t(),detect:t,isMobile:"desktop"!=t(),userAgent:e,isSafari:()=>/^((?!chrome|android).)*safari/i.test(e)}};!function(){"use strict";const e=e=>{const t=(e||"").replace(/\{/g,"\\{").replace(/\}/g,"\\}");return document.querySelector(`#${t}`)},t=e=>{const{persistent:t}=e?e.dataset:{};return null!=t},n=e=>{t(e)?e.close():e.requestClose()},r=t=>{try{const r=e(t.dataset.dialog);
4if(!r)return void console.warn(`Couldn't find dialog with id '${t.dataset.dialog}' for trigger button`,t);t.addEventListener("click",(()=>{r.open?n(r):r.showModal()}))}catch(e){console.error(`Couldn't attach dialog to button ${t}`,e)}},o=t=>{try{const n=e(t.dataset.dialog);if(!n)return void console.warn(`Couldn't find dialog with id '${t.dataset.dialog}' for trigger form`,t);t.addEventListener("submit",(e=>{e.preventDefault(),n.open||n.showModal()}))}catch(e){console.error(`Couldn't attach dialog to form ${t}`,e)}},i=e=>{e.addEventListener("click",(t=>{((e,t)=>{const{clientX:r,clientY:o}=t;if(0===r&&0===o)return;const i=e.getBoundingClientRect(),s=r>=i.left&&r<=i.right,a=o>=i.top&&o<=i.bottom;s&&a||n(e)})(e,t)})),e.addEventListener("cancel",(n=>{((e,n)=>{t(e)&&n.preventDefault()})(e,n)}))};window.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll("button[data-dialog]")].forEach(r),[...document.querySelectorAll("form[data-dialog]")].forEach(o),[...document.querySelectorAll("dialog")].forEach(i)}))}(),function(){"use strict";const e=function(e,t){if(e){const n=e.querySelector(".facet-dropdown-select"),r=e.querySelector(".facet-title"),o=`facet-dropdown-select--${t}`;if(n&&r){n.setAttribute("id",o),n.setAttribute("aria-labelledby",`label-for-${o}`);const e=document.createElement("label"),t=r.innerText;e.innerText=t,e.setAttribute("id",`label-for-${o}`),e.setAttribute("for",o),e.classList.add("visually-hidden"),n.parentNode.insertBefore(e,n)}}};window.addEventListener("DOMContentLoaded",(function(){const t=document.querySelectorAll(".facet-dropdown--locations");t&&Array.prototype.forEach.call(t,((t,n)=>{t&&e(t,n)}))}))}(),function(){"use strict";let e=null,t=null;const n=(n,r)=>{var o;(o="show",(" "+n.className+" ").indexOf(" "+o+" ")>-1)||(((e,t)=>{e.classList.add(t)})(n,"show"),r.setAttribute("aria-expanded",!0),e=n,t=r)},r=(n,r)=>{var o;o="show",n.classList.remove(o),r.setAttribute("aria-expanded",!1),e=null,t=r};window.addEventListener("DOMContentLoaded",(function(){const o=document.querySelectorAll('[data-toggle="dropdown"]');Array.prototype.forEach.call(o,(e=>{const t=e.parentElement;t.querySelector(".dropdown-menu");e.addEventListener("click",(r=>(r.preventDefault(),n(t,e),!1))),document.addEventListener("click",(n=>{n.target!=e&&r(t,e)}))})),document.addEventListener("keyup",(function(n){27===n.keyCode&&e&&r(e,t)}))}))}(),function(){"use strict";window.addEventListener("DOMContentLoaded",(()=>{$(document).ready((function(){$(".ddlCategory").change((function(){var e=$
4(this).val(),t=encodeURIComponent($(this).find(":selected").attr("data-language")),n=$(this).attr("data-url");$(this.parentElement.nextElementSibling).load(n+e+"&language="+t)}));var e=$(".buttonText__cta").val();$(".ddlCategory__cta").change((function(){var t=$(this).val(),n=encodeURIComponent($(this).find(":selected").attr("data-language")),r=$(this).attr("data-url");$(".dvCategoryResults__cta").load(r+t+"&link="+e+"&language="+n)}));var t=document.querySelectorAll(".hw-tabs__tab");Array.prototype.forEach.call(t,(function(e){var t="#"+e.parentElement.id.replace("tab-",""),n=document.querySelector(t).querySelector(".dvCategoryResults");if(n){n.querySelector("iframe").setAttribute("title",e.innerHTML)}}))}))}))}(),function(){"use strict";window.addEventListener("DOMContentLoaded",(function(){}))}(),function(){"use strict";window.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll(".fade-in-animation")].forEach((e=>{const t=new IntersectionObserver((n=>{n.forEach((async n=>{if(!n.isIntersecting||n.intersectionRatio<.5)return;const r=e.classList.contains("progressive"),o=[...e.querySelectorAll(".target")];r?o.forEach(((e,t)=>{setTimeout((()=>{e.classList.add("visible")}),100*t)})):o.forEach((e=>{e.classList.add("visible")})),t.unobserve(e)}))}),{threshold:.5});t.observe(e)}))}))}(),function(){const e=function(e){const t=e.dataset.videoId,n=e.dataset.videoIdMobile;let r,o;const i=(e,{matchConnectionSpeed:t=!1,matchWindowSize:n=!1}={})=>{const{Mobile:r,Medium:o,Full:i}=e;if(t&&navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"2g":return r;case"3g":return o;default:return i}if(n){if(window.innerWidth<768)return r;if(window.innerWidth<1024)return o}return i},s=async e=>{if(e){const n=await(t=e,new Promise(((e,n)=>{fetch(`/api/sitecoreextensions/returntwentythreevideo?videoId=${t}`).then((t=>{t.text().then((r=>{const o=JSON.parse(r);if(!o)throw n(t),new Error("Error fetching video");const i=o.VideoSrc,s=o.VideoPoster,a=o.MediaWidth,c=o.MediaHeight;e({videoSrc:i,videoPoster:s,mediaWidth:a,mediaHeight:c})}))}))}))),{videoSrc:r,videoPoster:o,mediaWidth:s,mediaHeight:a}=n;return{poster:o+"/test",width:s,height:a,src:i(r||{})}||null}return{};var t},a=(e,t)=>{const{poster:n,width:r,height:o,src:i}=t;i!==e.src&&(e.src=i,e.dataset.preservePoster||(e.poster=n),e.dataset.mediaWidth=r,e.dataset.mediaHeight=o,i&&(e.dataset.currentSrc=i,e.load()))},c=()=>{const i=window.innerHeight<=window.innerWidth,s=i?r:o,c=i?o:r;s&&s.src?a(e,s):c&&c.src&&(s&&console.warn(`Primary video source (${i?t:n}) missing, fallback (${i?n:t}) will be used instead.`),a(e,c))};Promise.all([s(t).then((e=>r=e)),s(n).then((e=>o=e))]).then((()=>{c()})).catch((e=>{console.error("Error fetching videos:",e)})),window.addEventListener("resize",window.debounce((()=>c()),300))};window.addEventListener("DOMContentLoaded",(function(){[...document.querySelectorAll(".dynamic-video")].forEach(e)}))}(),function(){"use strict";window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".flip-card");e.length&&e.forEach((e=>{const t=e.querySelector(".flip-card__front"),n=e.querySelector(".flip-card__back"),r=e.querySelector(".flip-card__button.-open"),o=e.querySelector(".flip-card__button.-close");o&&o.setAttribute("aria-hidden","true"),r.addEventListener("click",(()=>{t.classList.add("-hidden"),n.classList.remove("-hidden"),o&&(o.setAttribute("aria-hidden","false"),r.setAttribute("aria-hidden","true"))})),o.addEventListener("click",(()=>{t.classList.remove("-hidden"),n.classList.add("-hidden"),o.setAttribute("aria-hidden","true"),r.setAttribute("aria-hidden","false"),r.focus()}))}))}))}(),function(){"use strict";document.addEventListener("DOMContentLoaded",(function(){if(window.navigator.userAgent.indexOf("Edge")>-1){const t=function(e,t){e.classList.add("is-initiated"),e.value?t.classList.add("has-value"):t.classList.remove("has-value"),e.addEventListener("focus",(()=>{t.classList.add("is-focused")})),e.addEventListener("blur",(()=>{e.value?t.classList.add("is-focused"):(t.classList.remove("is-focused"),t.classList.remove("has-value"))}))};var e=document.querySelectorAll(".floating-label");Array.prototype.forEach.call(e,(function(e){const n=e.querySelector('input:not([type="hidden"])');null!==n&&t(n,e)})),document.addEventListener("click",(function(e){const n=e.target;if(n.tagName.includes("INPUT")&&(n.type.includes("text")||n.type.includes("email"))){const e=n.closest(".floating-label");null!==e&&t(n,e)}}))}}))}(),function(){"use strict";const e=(e,t)=>
4(" "+e.className+" ").indexOf(" "+t+" ")>-1,t=(e,t)=>(" "+e.id+" ").indexOf(" "+t+" ")>-1,n=(e,t)=>{e.classList.add(t)};window.addEventListener("DOMContentLoaded",(function(){let r=!1;if(!e(document.querySelector("body"),"on-page-editor")){const o=document.querySelectorAll("a,button,input,textarea,select,.collapsible-panel__trigger,span.navigation__toggle,.glide__bullet,.hero-side__button,.hero-header__button,.hero-large__button,.skipto li"),i=document.querySelector("body"),s=document.querySelector(".header-top .item0.odd.first>a"),a=document.querySelector(".skipto li");function c(r){(e(r.target,"onetrust-close-btn-handler")||t(r.target,"onetrust-accept-btn-handler")&&13==r.keyCode)&&n(a,"focus-visible")}o&&Array.prototype.forEach.call(o,(t=>{t&&(t.addEventListener("keyup",(t=>{t&&t.target&&9==t.keyCode&&t.target.classList&&(t.target.classList.add("focus-visible"),(e(i,"mobile-menu-is-open")||e(i,"desktop-menu-is-open"))&&(t.target.closest(".navigation")?r=!0:(r=!1,document.activeElement.closest(".icon-link-list--header")||(s.focus(),s.classList.add("focus-visible")))),e(i,"modal-open")&&(document.activeElement.closest(".search-box")||(document.querySelector("#modalGlobalSearch .close").focus(),document.querySelector("#modalGlobalSearch .close").classList.add("focus-visible"))))})),t.addEventListener("blur",(e=>{e&&e.target&&e.target.classList&&(e.target.classList.remove("focus-visible"),0==e.target.classList.length&&e.target.removeAttribute("class"))})))})),document.addEventListener("keydown",c)}}))}(),function(){"use strict";document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".glide");Array.prototype.forEach.call(e,(function(e){var t=e.querySelector("[data-glide-parameters]");if(t){new window.Glide(e,{startAt:0,type:t.getAttribute("data-glide-type"),perView:parseInt(t.getAttribute("data-glide-perview"))}).mount();var n=e.querySelectorAll(".glide__slide"),r=e.querySelectorAll(".glide__bullet");n&&r&&n.length>1&&Array.prototype.forEach.call(n,(function(e,t){e&&e.addEventListener("click",(function(e){e.preventDefault(),r[t+1]?r[t+1].click():r[0].click()}))}))}}))}))}(),function(){"use strict";const e=document.querySelectorAll(".navigation .level1 > a"),t=document.querySelectorAll(".navigation .level1 .flyout"),n=document.querySelectorAll(".navigation .level1 .flyout a"),r=document.querySelectorAll(".navigation .navigation__toggle"),o=document.querySelector(".header-bottom"),i=document.querySelectorAll(".flyout__content .flyout__link-list");let s=!1,a=window.innerWidth<1023;const c=()=>{r&&Array.prototype.forEach.call(r,(function(e){e.addEventListener("keyup",(function(e){if(13==e.keyCode||32==e.keyCode){const t=e.target.parentElement.querySelector(".flyout");if(t&&!l(t,"is-open")){const t=e.target.parentElement.querySelector("a");t&&(e.target.blur(),t.focus(),t.classList.add("focus-visible"))}}})),e.addEventListener("click",(function(t){"false"==t.target.getAttribute("aria-expanded")||null===t.target.getAttribute("aria-expanded")?(t.target.setAttribute("aria-expanded","true"),e.nextElementSibling.setAttribute("aria-hidden","false")):(t.target.setAttribute("aria-expanded","false"),e.nextElementSibling.setAttribute("aria-hidden","true"))}))}))},l=(e,t)=>(" "+e.className+" ").indexOf(" "+t+" ")>-1,u=e=>{Array.prototype.forEach.call(e,(function(e){e.classList.remove("show-mega-menu")})),s=!1},d=()=>{document.addEventListener("touchstart",(function(e){if(!a&&document.querySelectorAll(".navigation .show-mega-menu").length){let n=e.target.parentElement.classList;if(n.contains("navigation__flyout")||n.contains("flyout__content")||n.contains("level1"))return;u(t)}}))},f=()=>{Array.prototype.forEach.call(e,(function(e){e.addEventListener("touchstart",(function(n){if(!a){n.preventDefault();try{n.target.parentElement.querySelector(".flyout").classList.contains("show-mega-menu")||!1?window.location=n.target.href:(u(t),e.parentElement.querySelector(".flyout").classList.add("show-mega-menu"),e.setAttribute("aria-expanded","true"))}catch(e){window.location=n.target.href}}}))}))},p=()=>{if(Array.prototype.forEach.call(i,(function(e){""===e.querySelector(".flyout__title").textContent&&(e.querySelector(".flyout__title").classList.add("empty-collection"),e.querySelector(".flyout__title").textContent=" ")})),Array.prototype.forEach.call(e,(function(e){null!==e.getAttribute("title")&&(e.removeAttribute("title"),e.setAttribute("aria-label",e.textContent))})),!o)return;const t=o.querySelector("nav");t&&t.setAttribute("tabindex","-1")},m=()=>{o&&e&&document.addEventListener("keyup",(function(e){!(e.target.closest(".header-bottom")||!1)&&s&&u(t)}
4)),Array.prototype.forEach.call(e,(function(e){e.addEventListener("keyup",(()=>{a||(u(t),e.parentElement.querySelector(".flyout").classList.add("show-mega-menu"),e.parentElement.querySelector(".flyout").classList.contains("show-mega-menu")&&document.removeEventListener("keyup",m),s=!0)})),e.addEventListener("keydown",(e=>{27!==e.key&&27!==e.keyCode||u(t)})),e.addEventListener("mouseover",(()=>{document.removeEventListener("mouseover",m),u(t)}))})),Array.prototype.forEach.call(n,(function(e){e.addEventListener("keydown",(e=>{27!==event.key&&27!==e.keyCode||u(t)}))}))};document.addEventListener("DOMContentLoaded",(()=>{m(),f(),d(),c(),p()}))}(),function(){"use strict";window.addEventListener("DOMContentLoaded",(function(){(()=>{const e=document.querySelectorAll(".hero-header__button,.hero-large__button,.hero-side__button");e.length&&e.forEach((e=>{e.addEventListener("keyup",(e=>{13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.target.closest("a").click())}))}))})()}))}(),function(){"use strict";let e=!1;const t=e=>{const t=e.querySelector("iframe"),{vheight:n,vwidth:r}=t.dataset,o=n?parseInt(r)/parseInt(n):1;let i=t.clientWidth/o;t.style.height=i+"px"},n=()=>{const n=document.querySelectorAll(".hero-video");n.length&&(e=!0),n.forEach((e=>{t(e)}));document.querySelectorAll(".hero-video iframe").forEach((e=>{const t=e.getAttribute("src"),n=t?(e=>{const t=new URL(e),n=t.searchParams;return"fullhd"!==n.get("defaultQuality")&&n.set("defaultQuality","fullhd"),t})(t):new URL(t);t!==n.href&&e.setAttribute("src",n)}))};document.addEventListener("DOMContentLoaded",(()=>{n(),e&&window.addEventListener("resize",n)})),window.parseHeight=t}(),function(){"use strict";var e=function(e){const t=e.querySelectorAll("source"),n=window.innerWidth;let r=null;for(const e of t){const t=e.getAttribute("data-breakpoint"),o=e.getAttribute("media");if(n<=767&&"(max-width: 767px)"===o&&"mobile"===t){r=e;break}if(n>767&&"all"===o&&"desktop"===t){r=e;break}}if(r){const t=r.getAttribute("data-srcset");e.style.cssText+=`background-image: url('${t}'); opacity: 1;`}else{const t=e.querySelector('source[data-breakpoint="desktop"]');if(t){const n=t.getAttribute("data-srcset");e.style.cssText+=`background-image: url('${n}'); opacity: 1;`}else console.error("No matching source element found for the provided image wrapper.")}};window.addEventListener("DOMContentLoaded",(function(){const t=document.querySelectorAll(".image-wrapper"),n=document.querySelectorAll("[data-media-exposure-height]"),r=new IntersectionObserver(((t,n)=>{t.forEach((t=>{t.isIntersecting&&(e(t.target),n.unobserve(t.target))}))}),{root:null,rootMargin:"20px",threshold:.05});t.forEach((e=>{r.observe(e)})),n.forEach((e=>{(e=>{const t=e.getAttribute("data-media-exposure-height");let n=e.getAttribute("style")||"";n+=`height: calc(${t}vh - 60px);`,e.setAttribute("style",n)})(e)})),window.addEventListener("resize",(()=>{t.forEach((t=>{e(t)}))}))}))}(),function(){"use strict";window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".hw-tabs");if(0===e.length)return;const t=window.location.href,n=t.indexOf("#"),r=-1!==n?t.substring(n+1):null;e.forEach((e=>{function t(e){e.classList.add("active","focus-visible"),e.setAttribute("aria-selected","true")}function n(e){e.classList.remove("active","focus-visible"),e.setAttribute("aria-selected","false")}const o=Array.from(e.querySelectorAll(".hw-tabs__target")),i=Array.from(e.querySelectorAll(".hw-tabs__trigger")),s=Array.from(e.querySelectorAll("a[data-tab-nav-index]"));if(i.length>0&&(i[0].classList.add("active"),o[0].classList.add("active")),r){const e=r.split("tab-")[1];i.forEach((e=>{r===e.id?t(e):n(e)})),o.forEach((t=>{e===t.id?t.classList.add("active"):t.classList.remove("active")}))}i.forEach(((e,r)=>{["click","keydown"].forEach((r=>{e.addEventListener(r,(s=>{"click"!==r&&"Enter"!==s.key&&" "!==s.key||function(e,r,o){e.forEach(n),t(o),o.focus(),r.forEach((e=>{e.getAttribute("data-tab-index")===o.getAttribute("data-tab-nav-index")?e.classList.add("active"):e.classList.remove("active")})),window.history.pushState(null,null,"#"+o.id)}(i,o,e)}))})),e.addEventListener("focus",(()=>function(e,r){e.forEach(n),t(r)}(i,e)))}
4)),s.forEach((e=>{["click","keydown"].forEach((t=>{e.addEventListener(t,(n=>{"click"!==t&&"Enter"!==n.key&&" "!==n.key||function(e,t){e.forEach((e=>{e.getAttribute("data-tab-index")===t.getAttribute("data-tab-nav-index")?e.classList.add("active"):e.classList.remove("active")})),window.history.pushState(null,null,"#"+t.id)}(o,e)}))}))}))}))}))}(),function(){"use strict";const e="glide__slide--active",t="glide__slide--clone",n=e=>+e.dataset.index,r=e=>{try{return e._c.Html.slides||[]}catch(e){return[]}},o=function(r,o,i=!1){const s=o.selector,a=s.querySelectorAll(`.glide__slide:not(.${t})`),c=s.querySelector(`.${e}`),l=">"===r.direction,u="<"===r.direction;(()=>{if(!c)return;const t=c&&c===a[a.length-1];t&&l?a[0].classList.add(e):t&&u&&a[a.length-1].classList.add(e),c.classList.add("glide__slide--leaving");const r=l?c.nextElementSibling:c.previousElementSibling;r&&r.classList.add("glide__slide--entering"),i&&((e,t,r=2)=>{e.forEach((e=>{const o=e.querySelector(".glide__slide__bg");if(!o)return;let i=n(e)-t,s=i;i<-r?s=r:i>r&&(s=-r);const a=s/r;o.style.transform=`translateX(${-8*a-8}%)`}))})([...s.querySelectorAll(".glide__slide")],n(r||c))})()},i=(e,t,o=!0,i=!1)=>{const s=n(e),a=t.index;if(i&&e.classList.add("focus-visible"),a===s)return;const c=(e=>r(e).length)(t);t.update({animationDuration:o?800:0}),t.go(((e,t,n)=>{let r=0,o=0,i=e;for(;i!==t;)i++,r++,i>n&&(i=0);for(i=e;i!==t;)i--,o++,i<0&&(i=n);return o<r?"<":">"})(a,s,c-1))},s=e=>{(e=>[...e.selector.querySelectorAll(".glide__slide")])(e).forEach((n=>((e,n)=>{e.classList.contains(t)&&(e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1)),e.addEventListener("click",(()=>i(e,n))),e.addEventListener("focusout",(()=>{const t=[...e.querySelectorAll(".focus-visible")];e.classList.remove("focus-visible");for(let e of t)e.classList.remove("focus-visible")}))})(n,e)))},a=t=>{let n=!1;const r=e=>{n=e,n&&"carousel"===t.settings.type?t.update({type:"slider"}):n||"slider"!==t.settings.type||t.update({type:"carousel"}),n?t.selector.classList.add("keyboard"):t.selector.classList.remove("keyboard")};document.body.addEventListener("keydown",(e=>{let t=9===e.keyCode;r(n||t)})),document.addEventListener("wheel",(()=>r(!1))),document.addEventListener("mousedown",(()=>r(!1))),t.selector.addEventListener("focusin",(r=>{if(!n)return;const o=(t=>t.selector.querySelector(`.${e}`))(t);let s=o;if(t.selector.contains(r.relatedTarget))for(s=r.target;s&&!s.classList.contains("glide__slide");)s=s.parentNode;i(s,t,!1,!0)}))},c=e=>{const t="#"+e.getAttribute("id"),n=document.querySelector(`${t} > .glide`),r="true"===e.dataset.parallax&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches,i=[...n.querySelectorAll(".glide__slide")];i.forEach(((e,t)=>{e.dataset.index=t,t===i.length-1&&(e.dataset.last="true")}));const c=new Glide(n,{type:"carousel",rewind:!1,perView:4,startAt:0,focusAt:"center",peek:70,gap:35,animationDuration:800,breakpoints:{1920:{perView:3},1280:{perView:2,peek:35,gap:16},767:{perView:1,peek:24,gap:8}}});c.on("run.before",(e=>o(e,c,r))),c.on(["run.after","mount.after"],(()=>function(e){e.selector.querySelectorAll(".glide__slide").forEach((e=>{e.classList.remove("glide__slide--leaving"),e.classList.remove("glide__slide--entering");const t=e.querySelectorAll(".focus-visible");for(let e of t)e.classList.remove("focus-visible")}))}(c))),c.mount(),a(c),s(c)};window.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll(".landscapes-carousel")].forEach(c)}))}(),function(){"use strict";function e(){t.forEach((function(e){const t=e.getAttribute("data-video-lg"),n=e.getAttribute("data-video-md"),o=t&&r(t),i=(n||t)&&r(n||t),s=window.innerWidth<=767?i:o;e.getAttribute("src")!==s.href&&e.setAttribute("src",s)}))}const t=document.querySelectorAll(".video-component__container-iframe iframe"),n=window.debounce((function(){e()}),50),r=e=>{const t=new URL(e),n=t.searchParams;return"fullhd"!==n.get("defaultQuality")&&n.set("defaultQuality","fullhd"),t};window.addEventListener("DOMContentLoaded",(()=>{e(),window.addEventListener("resize",n)}))}(),function(){"use strict";let e=null;const t=(e,t)=>{e.classList.add(t)},n=(e,t)=>{e.classList.remove(t)},r=n=>{if(((e,t)=>(" "+e.className+" ").indexOf(" "+t+" ")>-1)(n,"show"))return;t(n,"show"),t(document.body,"modal-open"),n.setAttribute("aria-hidden","false"),n.setAttribute("aria-modal","true"),e=n,(()=>{const e=document.querySelector("#skip_links");e&&(e.style.display="none")})();const r=n.querySelector('[data-dismiss="modal"]'),o=n.querySelector('input[name="textBoxSearch"]');r&&o?o.focus():r&&r.focus()},o=t=>
4{n(t,"show"),n(document.body,"modal-open"),t.setAttribute("aria-hidden","true"),e=null,(()=>{const e=document.querySelector("#skip_links");e&&(e.style.display="block")})()},i=()=>{const e=document.querySelector("[data-target='#modalQRCodeWeChat']"),t=!!window.location.href.match(/#modalQRCodeWeChat/),n=document.querySelector("[data-target='#modalQRCodeLine']"),r=!!window.location.href.match(/#modalQRCodeLine/);t&&null!==e&&setTimeout((function(){e.click()}),100),r&&null!==n&&setTimeout((function(){n.click()}),100)};window.addEventListener("DOMContentLoaded",(function(){const t=document.querySelectorAll('[data-toggle="modal"]');i(),Array.prototype.forEach.call(t,(e=>{let t=e.getAttribute("data-target");if(t=t.indexOf("#")<=-1?`#${t}`:t,t&&"#"!==t&&document.querySelector(t)){const n=document.querySelector(t);e.addEventListener("click",(e=>(e.preventDefault(),r(n),!1)));const i=n.querySelectorAll('[data-dismiss="modal"]');Array.prototype.forEach.call(i,(e=>{e.addEventListener("click",(e=>(e.preventDefault(),o(n),!1)))})),n.addEventListener("click",(e=>{e.target.id===n.id&&o(n)}))}})),document.addEventListener("keyup",(function(t){27===t.keyCode&&e&&o(e)}))}))}(),function(){"use strict";const e=e=>{try{const t=e.querySelector(".newsletter-block__form"),n=e.querySelector("dialog"),r=n.querySelector("form");(e=>{if(!e)return;[...e.querySelectorAll("form")].forEach((t=>{t.addEventListener("submit",(t=>{t.preventDefault(),e.open||e.showModal(),e.classList.add("submitted"),e.focus()}))}))})(n),(e=>{if(!e)return;e.querySelector("[type=email]").addEventListener("invalid",(e=>{e.preventDefault()}))})(t),((e,t)=>{e&&t?e.addEventListener("submit",(()=>{const n=t.querySelector('input[data-sc-field-key="35B8AA406EE947DEBEAEC9D7C1058956"], input[type="text"][placeholder*="@"]'),r=new FormData(e).get("email");n&&(n.value=r)})):console.warn(`Couldn't sync newsletter forms.\nsrc: ${e}\ntarget:${t}`)})(t,r)}catch(t){console.error(`Couldn't setup newsletter block ${e}`,t)}};window.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll(".newsletter-block")].forEach(e)}))}(),function(){"use strict";window.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll(".parallax-block")].forEach((e=>{const t=+e.dataset.parallaxSpeed,n=e.querySelector(".parallax-block__bg");if(!n||!t)return void e.classList.add("parallax-block--disabled");let r;try{const t=(e.dataset.scrollReference||"").replace(/\{/g,"\\{").replace(/\}/g,"\\}");r=t&&document.querySelector(t)||e}catch(t){console.error(`Invalid parallax reference: ${e.dataset.scrollReference}`),r=e}const o="PICTURE"===n.parentElement.tagName?n.parentElement.parentElement:n.parentElement,i=()=>{const e=window.innerHeight,{top:t,bottom:i}=r.getBoundingClientRect(),{height:s}=o.getBoundingClientRect(),a=(t+(i-t)/2)/e,c=1-Math.min(Math.max(a,0),1),l=.2*s;n.style.top=-l*c+"px"};i(),window.addEventListener("scroll",i)}))}))}(),function(){"use strict";var e=function(e){const t=window.location.hash;if(t&&e&&t.indexOf("timepiece-specifications")>-1){const t=e.closest(".pdp-timepiece-specifications");t&&window.scrollTo(0,t.offsetParent.offsetTop)}};window.addEventListener("DOMContentLoaded",(function(){const t=document.querySelector(".pdp-header");if(t){const n=t.querySelector(".pdp-header__product-price"),r=t.querySelector(".pdp-header__disclaimer"),o=t.querySelector(".pdp-header__global-disclaimer"),i=t.querySelector('[href="#timepiece-specifications"]'),s=document.querySelector("#timepiece-specifications"),a=r.querySelector(".collapsible-panel__target");if(r&&o)if(null!=n){const e=n.querySelector(".pdp-header__hidden");a.innerHTML=null!=e?e.innerHTML+o.innerHTML:o.innerHTML}else a.innerHTML=o.innerHTML;i&&s&&(window.addEventListener("hashchange",(function(){e(s)})),e(s))}}))}(),function(){"use strict";const e="ipaddress",t={},n=async()=>{if(t[e])return t[e];try{const r=await fetch("/api/countrysalon/geolocationip"),o=JSON.parse(await r.text()).IpAddress||"";return t[e]=o,await n()}catch(e){return""}},r=e=>{(async e=>{const t=e.querySelector('[data-sc-field-name="ipaddress"]');t&&(t.value=await n())})(e)};window.addEventListener("DOMContentLoaded",(()=>
4{[...document.querySelectorAll("form")].forEach(r)}))}(),function(){"use strict";const e="is-visible",t=t=>{const n=t.getAttribute("id"),r=t.querySelector(".popup-detail__close"),o=document.querySelector(`[data-target="#${n}"]`);r&&r.setAttribute("aria-hidden","true"),o&&o.addEventListener("click",(n=>{const i=0===n.detail,s=t.classList.toggle(e);r&&s?r.setAttribute("aria-hidden",!s):(r&&r.setAttribute("aria-hidden","true"),o.focus(),i&&o.classList.add("focus-visible"))})),r&&r.addEventListener("click",(n=>{const i=0===n.detail;t.classList.remove(e),r.setAttribute("aria-hidden","true"),o&&(o.focus(),i&&o.classList.add("focus-visible"))}))};window.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll(".popup-detail")].forEach(t)}))}(),function(){"use strict";const e="animated",t="video-over",n=()=>window.innerWidth>=992,r=(e,t,n)=>e<t?t:e>n?n:e,o=(e,t)=>{t&&e&&Object.entries(t).forEach((([t,n])=>{e.style[t]=n}))},i=e=>{const{top:t,height:n}=e.getBoundingClientRect(),o=n/window.innerHeight;if(!(t<window.innerHeight))return 0;const i=1-t/window.innerHeight;return r(i/o,0,1)/.75},s=(t,n,i,s)=>{if(s>=1)return a(n,i),void t.classList.add(e);s<=0&&c(t),t.classList.remove(e);const l=r(s/.5,0,1),{width:u}=i.getBoundingClientRect(),d=.5*u,f=r(1-(s-.5)/.5,0,1),p=`translateY(${125*f}%)`;o(n,{opacity:l,transform:`translateX(${d*f}px)`}),o(i,{opacity:l,transform:p});[...n.querySelectorAll("button")].forEach((e=>{e.setAttribute("tabindex","-1")}))},a=(e,t)=>{o(e,{opacity:"",transform:""}),o(t,{opacity:"",transform:""});[...e.querySelectorAll("button")].forEach((e=>{e.setAttribute("tabindex","")}))},c=e=>{e.classList.remove(t);const n=e.querySelector("video");n&&n.play()},l=e=>{e.classList.contains("static")||(e=>{const t=e.querySelector(".product-details__media"),r=e.querySelector(".product-details__text");t&&r&&(window.addEventListener("scroll",(()=>{n()&&requestAnimationFrame((()=>{s(e,t,r,i(e))}))})),window.addEventListener("resize",(()=>{requestAnimationFrame((()=>{n()?s(e,t,r,i(e)):a(t,r)}))})),requestAnimationFrame((()=>{n()?s(e,t,r,i(e)):a(t,r)})))})(e),(e=>{e.classList.remove(t);const n=e.querySelector(".product-details__media video");n&&n.addEventListener("ended",(()=>{e.classList.add(t)}))})(e)};window.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll(".product-details")].forEach(l)}))}(),function(){"use strict";const e=function(){return window.document.documentMode},t=(e,t)=>{e.classList.add(t)},n=function(e){if(e){const n=e.querySelectorAll("li");n&&Array.prototype.forEach.call(n,(e=>{!function(e){e&&e.querySelector(".product__image-featured")&&t(e,"is-featured")}(e)}))}};window.addEventListener("DOMContentLoaded",(function(){const r=document.querySelectorAll(".product-grid-units");r&&Array.prototype.forEach.call(r,(r=>{if(r){let o=r.querySelector(".items");o&&(e()&&t(o,"items--ie-grid"),n(o))}}))}))}(),function(){"use strict";function e(e,t,n,r){const o=document.createElement(e);return o.innerHTML=t,Object.keys(n).forEach((e=>{o.setAttribute(e,n[e])})),Object.keys(r).forEach((e=>{o.dataset[e]=r[e]})),o}function t(e){const t=encodeURIComponent(e),n=(new TextEncoder).encode(t);return btoa(String.fromCharCode(...n))}function n(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);const o=(new TextDecoder).decode(r);return decodeURIComponent(o)}function r(){const e=document.getElementById("context_language");return e?e.value:""}async function o(n,o,i,s,a){if(!o)return;const c=document.querySelector("#preferredSalonId"),l=c?c.value:"",d=n.options[n.selectedIndex],p=document.querySelector(".js-salon-label"),m=p?p.innerHTML:"",h=document.querySelector(".js-salon-detail__address .salon-detail__details");h&&(h.innerHTML="");if(u(document.querySelector(".js-salon-detail__results"),["is-hidden"]),o.setAttribute("disabled",!0),i&&(i.value="",i.setAttribute("disabled",!0)),s&&(s.value="",s.setAttribute("disabled",!0)),d&&null===a){const e=document.querySelector('[data-sc-field-name="hw_cd_country"]'),t=document.querySelector('[data-sc-field-name="country"]'),n=f(d,"data-country-iso");e&&(e.value=d.text,t.value=n)}const v=await async function(e){const t=await fetch(`/${r()}/api/countrysalon/returnsalon?datasource=${e}`);return[...JSON.parse(await t.text())]}(d?d.value:"");o.innerHTML="",o.appendChild(e("option",m,{value:"",label:l},{crmName:-1}));for(const n of v){const r=e("option",n.Name,{value:n.Id.Guid},{crmName:n.CRMName,name:n.Name,hours:n.FormHours,address:n.Address,phone:n.Phone,salonLink:n.Link,clientCare:n.ClientCare,specialHours:t(n.SpecialHours),available:t(n.AvailableAppointment),firstAvailable:n.FirstAvailableAppointment});o.appendChild(r)}v.length&&o.removeAttribute("disabled")}async function i(e,t,o,i){const w=e.options[e.selectedIndex];if(!w)return;!function(e){if(!e)return;const t=e.getAttribute("data-address"),r=e.getAttribute("data-hours"),o=e.getAttribute("data-phone"),i=e.getAttribute("data-crm-name"),s=e.getAttribute("data-client-care"),a=e.getAttribute("data-salon-link"),c=e.getAttribute("data-name"),l=e.getAttribute("data-special-hours"),f=document.querySelector(".js-salon-detail__address"),p=document.querySelector(".js-salon-detail__hours"),m=document.querySelector(".js-salon-detail__special_hours"),h=document.querySelector(".js-salon-detail__results"),v=document.querySelector('[data-sc-field-name="hw_cd_salonaddress"]'),y=document.querySelector('[data-sc-field-name="hw_salonphone"]'),g=document.querySelector('[data-sc-field-name="hw_salon"]'),b=document.querySelector('[data-sc-field-name="hw_salon_link"]'),w=document.querySelector('[data-sc-field-name="hw_cd_salonname"]'),S=document.querySelector('[data-sc-field-name="hw_clientcare"]');f.querySelector(".salon-detail__details").innerHTML=t?t.replace(/\n/g,"</br>"):"",v&&(v.value=t);y&&(y.value=o);g&&(g.value=i);w&&(w.value=c);b&&(b.value=a);S&&(S.value=s);if(p){var L=p.querySelector(".salon-detail__details");L&&(L.innerHTML=r)}if(m&&l){var E=m.querySelector(".salon-detail__details");E&&(E.innerHTML=n(l))}t||r||l?d(h,["is-hidden"]):u(h,["is-hidden"]);f.style.display=""===t?"none":"inherit";m&&(m.style.display=""===l?"none":"inherit");p.style.display=""===r?"none":"inherit"}(w);const S=document.querySelector('[data-sc-field-name="hw_salon_first_available_appointment"]'),L=f(w,"data-available-appointment"),E=f(w,"data-first-available-appointment"),A=document.querySelector(".js-salon-detail__results"),_=document.querySelector(".default-available-appointment");
4if(L&&_&&(_.innerHTML=n(L)),S&&(S.value=E||1),o){o.value="";d(o.closest(".floating-label"),["is-focused","has-value"])}if(i){i.selectedIndex=0,i.disabled=!0,l(["is-disabled"],'label[for="'+f(i,"id")+'"]',i);u(i.closest(".o-select"),["is-disabled"])}const q=document.querySelector('label[for="'+f(o,"id")+'"]'),k=f(w,"value");o&&(o.disabled=!w),k?d(q,["is-disabled"]):(u(q,["is-disabled"]),u(A,["is-hidden"]));const x=new Date;var C=document.querySelector('[data-sc-field-name="hw_salon_first_available_appointment"]');let M=1;if(C){const e=parseInt(C.value);isNaN(e)||(M=e)}M=parseInt(M,10),x.setDate(x.getDate()+M);const T=f(w,"value");if(null!==T&&""!==T){const e=await async function(e){const t=await fetch(`/${r()}/api/countrysalon/returnsalondateexceptions?datasource=${e}&path=${window.location.pathname}`);return JSON.parse(await t.text())}(w.value),t=e.BookingWindowDays||180,n=parseInt(t,10),i=new Date;i.setDate(i.getDate()+n);[...document.querySelectorAll(".pika-single")].forEach((e=>{e.remove()}));let l=null;o&&(l=function(e,t,n,r){const o=function(e){const t=[];e.Sunday||t.push(p);e.Monday||t.push(m);e.Tuesday||t.push(h);e.Wednesday||t.push(v);e.Thursday||t.push(y);e.Friday||t.push(g);e.Saturday||t.push(b);return t}(r),i=function(e){return e.filter((e=>!!e.StartDate))}([...r.Exceptions]),s=new window.Pikaday({field:e,format:"D MMM YYYY",firstDay:m,minDate:t,maxDate:n,keyboardInput:!1,bound:!1,theme:"is-bound left-aligned bottom-aligned",disableDayFn:e=>{const t=function(e,t,n){const r=t.includes(e.getDay());let o=!1;n&&(o=[...n].some((t=>function(e,t){const n=a(e),r=a(t.StartDate),o=a(t.EndDate);if(r&&o)return n>=r&&n<=o;if(r)return n===r;return!1}(e,t))));return r||o}(e,o,i);return t},onSelect:()=>s.hide()});return s}(o,x,i,e),o.addEventListener("click",(()=>{l&&c(l.el,"is-hidden")&&(l.show(),s(l))}))),l&&l.hide(),document.addEventListener("click",(e=>{if(e&&e.target&&l){e.target.closest(".pika-single")||e.target===o||l.hide()}})),document.addEventListener("keyup",(e=>{if(e&&e.target&&l)if(27==e.code)l.hide();else{e.target.closest(".pika-single")||e.target==o||c(e.target,"pika-prev")||c(e.target,"pika-next")||l.hide()}}))}}function s(e){if(e&&e.el){const t=e.el.querySelectorAll("button");t&&Array.prototype.forEach.call(t,(t=>{c(t,"is-disabled")||c(t.parentElement,"is-disabled")?t.setAttribute("tabindex",-1):(t.setAttribute("tabindex",0),t.addEventListener("keyup",(n=>{if(n&&n.target)if(13==n.keyCode||32==n.keyCode){if(n.target.dispatchEvent(event),c(t,"pika-prev")||c(t,"pika-next")){s(e);var r=e.el.querySelector("tbody");if(r){var o=r.querySelector("td:not(.is-disabled):not(.is-empty)");if(o){var i=o.querySelector("button");i&&(i.focus(),i.classList.add("focus-visible"))}}}}else 9==n.keyCode&&n.target.classList&&n.target.classList.add("focus-visible")})),t.addEventListener("blur",(e=>{e&&e.target&&e.target.classList&&e.target.classList.remove("focus-visible")})))}))}}function a(e){if(!e)return"";if(e instanceof Date){const t=`${e.getDate()}`.padStart(2,"0"),n=`${e.getMonth()+1}`.padStart(2,"0");return[`${e.getFullYear()}`.padStart(4,"0"),n,t].join("")}return e.replace(/-/g,"")}function c(e,t){try{return e.classList.contains(t)}catch(n){return(" "+e.className+" ").indexOf(" "+t+" ")>-1}}function l(e,t,n=document){u(n.querySelector(t),e)}function u(e,t){e&&e.classList.add(...t)}function d(e,t){e&&e.classList.remove(...t)}function f(e,t){return e?e.getAttribute(t):""}const p=0,m=1,h=2,v=3,y=4,g=5,b=6;window.addEventListener("DOMContentLoaded",(async function(){const e=document.querySelector("[data-sc-field-name=zipcode]"),t=document.querySelector(".default-available-appointment"),{el:n,label:r,wrapper:s}=(t&&t.innerHTML,function(){const e=document.querySelector("select.SalonTime");if(!e)return{};e.disabled=!0;const t=document.querySelector(`label[for="${f(e,"id")}"]`);u(t,["is-disabled"]);const n=e.closest(".o-select");return u(n,["is-disabled"]),{el:e,label:t,wrapper:n}}()),{el:a}=function(e){const t=document.querySelector(".js-select--salon select");return t?(e&&t.addEventListener("change",e),{el:t}):{}}((()=>{i(a,0,c,n)})),{el:c}=function(e){const t=document.querySelector("input.pickaday.datesalon");return t?(t.disabled=!0,t.addEventListener("focus",(()=>{t.click()})),e&&t.addEventListener("change",e),l(["is-disabled"],`label[for="${f(t,"id")}"]`),{el:t}):{}}((e=>
4{if(n&&a){const t="/"+document.getElementById("context_language").value,o=encodeURI(e.target.value);$.ajax({type:"GET",url:t+"/api/countrysalon/returnsalontime",data:`datasource=${a.value}&date=${o}`,success:e=>{!function(e,t,n=null,r=null){if(!t)return;let o=r?`<option value label="${r.innerText}">${r.innerText}</option>`:"";if(e.length>0){for(var i=0;i<e.length;i++)o+=`<option value="${e[i]}">${e[i]}</option>`;t.innerHTML=o}t.disabled=!1,d(t,["is-disabled"]),d(n,["is-disabled"])}(e,n,s,r)}})}})),{el:p}=function(e){const t=document.querySelector(".js-select--country-region select");return t?(e&&t.addEventListener("change",e),{el:t}):{}}((()=>{o(p,a,c,n,e)})),m=document.querySelector("#salonId"),h=document.querySelector("#countryId");if(h){const t=h.value,r=p.querySelector('option[value="'+t+'"]');r&&(r.selected=!0),await o(p,a,c,n,e)}if(m){const e=m.value,t=a.querySelector('option[value="'+e+'"]');t&&(t.selected=!0);const n=new Event("change",{bubbles:!1,cancelable:!0});a.dispatchEvent(n)}}))}(),function(){"use strict";window.addEventListener("DOMContentLoaded",(function(){if(document.querySelector(".container--locations-dropdown-list")){var e=window.location.hash,t=window.location.pathname.split("/")[1].toLowerCase();if(!window.location.hash){switch(window.location.pathname.split("/")[1].toLowerCase()){case"en":e="salon-locator_g=true&salon-locator_location%20type=Harry%20Winston%20Salon";break;case"fr":e="salon-locator_g=true&salon-locator_location%20type=Salon%20Harry%20Winston";break;case"ja":e="salon-locator_g=true&salon-locator_location%20type=ããªã¼ã»ã¦ã£ã³ã¹ãã³%20ãµãã³";break;case"ru":e="salon-locator_g=true&salon-locator_location%20type=СалонÑ%20Harry%20Winston";break;case"zh-hans":e="salon-locator_g=true&salon-locator_location%20type=æµ·çæ¸©æ¯é¡¿ä¸é¨åº";break;case"zh-hant":e="salon-locator_g=true&salon-locator_location%20type=æµ·çæº«æ¯é åçå°éåº"}window.location.hash=e}var n=window.location.href.replace("#","?"),r=new URL(n).searchParams,o=r.get("salon-locator_area"),i=r.get("salon-locator_country"),s=r.get("salon-locator_city"),a=r.get("salon-locator_location type");o||i||s?$.ajax({type:"GET",url:"/"+t+"/api/countrysalon/verifyParameters",data:"lang="+t+"&area="+o+"&country="+i+"&city="+s+"&type="+a,cache:!1,async:!1,success:function(t){var n=encodeURIComponent(t.Country),r=encodeURIComponent(t.City),o=encodeURIComponent(t.Area),i=encodeURIComponent(t.Type),s=(e.substring(0,e.indexOf("#")),new URLSearchParams(window.location.hash.substring(1)));i&&"null"!==i&&s.set("salon-locator_location_type",i),o&&"null"!==o&&s.set("salon-locator_area",o),n&&"null"!==n&&s.set("salon-locator_country",n),r&&"null"!==r&&s.set("salon-locator_city",r);[i,o,n,r].some((e=>e&&"null"!==e))&&s.toString()},error:function(){console.log("error to get parameters")}}):$.ajax({type:"GET",url:"/"+t+"/api/countrysalon/geolocation",data:"lang="+t,cache:!1,async:!1,success:function(t){var n=encodeURIComponent(t.country),r=encodeURIComponent(t.city),o=encodeURIComponent(t.area),i=!1;o&&(e=e+"&salon-locator_area="+o,i=!0),n&&(e=e+"&salon-locator_country="+n,i=!0),r&&(e=e+"&salon-locator_city="+r,i=!0),i&&(window.location.hash=e)},error:function(){console.log("error")}})}}))}(),function(){"use strict";document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll('.navigation--tabbed a[href*="#"]'),t=window.location.hash;Array.prototype.forEach.call(e,(function(e){if(e.hash===t){const t=e.closest(".hw-tabs");if(null!==t){const n=t.querySelectorAll(".hw-tabs__triggers li"),r=t.querySelectorAll(".hw-tabs__target");Array.prototype.forEach.call(n,(function(e){e.classList.remove("active")})),Array.prototype.forEach.call(r,(function(e){e.classList.remove("active")})),e.closest("li").classList.add("active"),document.getElementById(e.hash.replace("#","")).classList.add("active")}setTimeout((()=>{let t;t=window.matchMedia("(max-width: 768px)").matches?e.getBoundingClientRect().top-60+window.pageYOffset:e.getBoundingClientRect().top-220+window.pageYOffset,$("html, body").animate({scrollTop:t},1e3)}),1e3)}e.addEventListener("click",(function(n){e.hash===t&&n.preventDefault()}))}))}))}(),function(){"use strict";const e=function(){var e;(e=document.querySelector(".facet-single-selection-list .facet-search-filter"))&&e.classList.add("active");var t=document.querySelector('.facet-selection--locations [data-facetvalue*="Salon"]');if(t){var n=t.parentElement;n.insertBefore(t,n.firstChild)}},t=function(){const e=document.querySelectorAll(".facet-single-selection-list");e&&Array.prototype.forEach.call(e,(e=>{n(e)}))},n=function(t){if(t){e();let r=t.getAttribute("data-properties");if(r){r=JSON.parse(r);let e=window.location.hash,o=null,s=null;if(e&&"#"!=e){e=e.substring(1),s=e.split("&");for(var n=0;n<s.length;n++){o=s[n];let e=decodeURIComponent(o).split("=");if(e&&e[0]&&e[1]&&e[0].toLowerCase()==(decodeURIComponent(r.searchResultsSignature)+"_"+decodeURIComponent(r.f)).toLowerCase()){const e=t.closest(".collapsible-panel--filters-product-grid");if(e&&!(window.innerWidth<768)){const t=e.querySelector(".collapsible-panel__trigger");t&&(i(t,"is-open")||t.click())}break}}}}}},r=function(e){if(e){let t=e.querySelector("label"),n=e.querySelector("span");if(!t&&!n)return!1;let r=t||n,o=r.textContent.replace(/[\d()]/g,"").trim();e.setAttribute("role","button"),e.setAttribute("tabindex",0),e.setAttribute("aria-label",o),e.setAttribute("aria-pressed","fal
4se"),r.setAttribute("aria-hidden","true"),e.addEventListener("keyup",(function(e){const t=e.keyCode;return e&&e.target&&(13==t||32==t?(e.preventDefault(),e.target.click(),e.target.focus()):9==t&&s(e.target,"focus-visible")),!1})),e.addEventListener("blur",(e=>{e&&e.target&&a(e.target,"focus-visible")}));const i=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),c=e.querySelector("label"),l=e.querySelector('input[type="checkbox"]');c&&l&&(c.setAttribute("for",i),l.setAttribute("id",i))}},o=function(e){if(e){const t=e.target,o=t.querySelector(".facet-search-filter");if(t&&o){const i=o.querySelectorAll(".facet-value");i&&Array.prototype.forEach.call(i,(e=>{!function(e,t){if(e&&t){const n=e.closest(".facet-single-selection-list");if(n){const e=n.getAttribute("data-properties"),r=n.querySelector('input[class="filterButton"]');r&&e&&-1!==e.search('"multi":true')&&(t.addEventListener("click",(()=>{r.click()})),t.querySelector("label").addEventListener("click",(()=>{t.click()})))}}}(t,e),r(e)}));const s=e.target.querySelectorAll('input[type="checkbox"]');s&&Array.prototype.forEach.call(s,(e=>{e.setAttribute("tabindex",-1)})),setTimeout((function(){n(e.target.closest(".facet-single-selection-list"))}),500)}}},i=(e,t)=>(" "+e.className+" ").indexOf(" "+t+" ")>-1,s=(e,t)=>{e.classList.add(t)},a=(e,t)=>{e.classList.remove(t)};window.addEventListener("DOMContentLoaded",(function(){const n=document.querySelectorAll(".facet-single-selection-list");n.length>0&&!i(document.querySelector("body"),"on-page-editor")&&(window.addEventListener("hashchange",(function(){e(),setTimeout((function(){t()}),500)})),Array.prototype.forEach.call(n,(e=>{new MutationObserver((e=>{e.forEach((e=>{"childList"===e.type&&e.addedNodes.length>0&&o(e)}))})).observe(e,{childList:!0,subtree:!0})})))}))}(),function(){"use strict";window.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll(".facet-summary");let t=null;Array.prototype.forEach.call(e,(e=>{t=e.querySelector(".bottom-remove-filter button"),t&&t.classList.add("btn")}))}))}(),function(){"use strict";const e=document.querySelector(".modal-global-search #modalGlobalSearch"),t=document.querySelector('.modal-global-search input[name="textBoxSearch"]'),n=document.querySelector(".modal-global-search .search-box label"),r=document.querySelector('.global-search-results input[name="textBoxSearch"]'),o=document.querySelector(".global-search-results .search-box label"),i=document.querySelector(".global-search-results"),s=document.querySelector(".global-search-results .facet-aggregated-header"),a=document.querySelector(".global-search-results .hw-title-search-header #search-term"),c=document.querySelector(".global-search-results .search-box"),l=document.querySelector(".global-search-results .filter-results-button"),u=document.querySelector(".modal-global-search .search-box .search-box-button-with-redirect"),d={attributes:!0,childList:!0,subtree:!0,characterData:!0,characterDataOldValue:!0},f=function(){return window.document.documentMode};window.addEventListener("DOMContentLoaded",(function(){!function(){t&&setTimeout((function(){const e=document.querySelectorAll('.search-box .twitter-typeahead span[role="status"]'),t=document.querySelectorAll(".search-box .twitter-typeahead .tt-menu"),n=document.querySelectorAll(".search-box .twitter-typeahead .tt-input"),r=document.querySelectorAll(".search-box .twitter-typeahead .tt-hint");e&&Array.prototype.forEach.call(e,(function(e){e.remove()})),t&&Array.prototype.forEach.call(t,(function(e){e.remove()})),r&&Array.prototype.forEach.call(r,(function(e){e.remove()})),n&&Array.prototype.forEach.call(n,(function(e){e.removeAttribute("aria-activedescendant",""),e.removeAttribute("aria-owns","undefined_listbox"),e.removeAttribute("role","combobox"),e.removeAttribute("aria-autocomplete","list"),e.removeAttribute("aria-readonly")}))}),100);var e=document.querySelector('a[data-toggle-trigger="#modalGlobalSearch"]');e&&e.removeAttribute("data-toggle-trigger")}(),(()=>{const p=function(t){Array.prototype.forEach.call(t,(function(t){let u=f()?t.target.textContent:t.target.innerText,d=r.value,p=Number(u.match(/\d+/));
4const m=document.querySelector(".global-search-results .no-results");if(e&&e.classList.contains("show")&&document.querySelector(".modal-global-search .close").click(),""!==d&&o.setAttribute("class","active"),d&&a){n.setAttribute("class","active");let e=`"${d}"`;a.textContent=e.trim()}if(i&&i.classList.add("active"),0==p){if(m){let e=m.textContent;if(i.classList.add("no-results"),s&&s.classList.add("in-active"),c&&c.classList.add("active"),l&&l.classList.remove("active"),m.textContent.indexOf("{query}")>-1)m.textContent=e.replace("{query}",`"${d}"`);else{const t=/["'][\w\s]+["']|\w+["']\w+/,n=e.match(t);m.textContent=e.replace(n,`"${d}"`)}}}else i.classList.remove("no-results"),c.classList.remove("active"),s&&s.classList.remove("in-active"),l&&l.classList.add("active")}))};let m=document.querySelector("div.results-count");m&&new MutationObserver(p).observe(m,d),r&&r.addEventListener("keyup",(e=>{""!=e.target.value?o.setAttribute("class","active"):o.removeAttribute("class","active")})),t&&u&&(""!==t.value&&n.setAttribute("class","active"),t.addEventListener("keyup",(e=>{""!=e.target.value?n.setAttribute("class","active"):n.removeAttribute("class","active")})))})()}))}(),function(){"use strict";const e=function(){return window.innerWidth<768},t=function(t){t&&(t.setAttribute("tabindex",0),t.addEventListener("keyup",(t=>{if(t&&t.target&&9==t.keyCode){t.target.classList.add("focus-visible");var n=t.target.parentElement;n&&(r(n,"global-search-results__image")||r(n,"product__wrapper")&&e())&&n.classList.add("focus-visible")}})),t.addEventListener("blur",(t=>{if(t&&t.target){t.target.classList.remove("focus-visible"),0==t.target.classList.length&&t.target.removeAttribute("class");var n=t.target.parentElement;n&&(r(n,"global-search-results__image")||r(n,"product__wrapper")&&e())&&n.classList.remove("focus-visible")}})))},n=function(e){if(e){const n=e.target.querySelector("ul");if(r(n,"search-result-list")){const e={childList:!0};new MutationObserver((e=>{e.forEach((e=>{"childList"===e.type&&e.addedNodes.length>0&&function(e){if(e&&e.target){const n=e.target.querySelectorAll("li");n&&n.forEach((e=>{const n=e.querySelector("a");n&&t(n)}))}}(e)}))})).observe(n,e),function(e){if(e){const n=e.querySelectorAll("a");n&&Array.prototype.forEach.call(n,(e=>{e&&t(e)}))}}(n)}}},r=(e,t)=>!!e&&(" "+e.className+" ").indexOf(" "+t+" ")>-1;window.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll(".search-results");e&&Array.prototype.forEach.call(e,(e=>{if(e){const t={childList:!0,subtree:!0};new MutationObserver((e=>{e.forEach((e=>{"childList"===e.type&&e.addedNodes.length>0&&n(e)}))})).observe(e,t)}}))}))}(),function(){"use strict";const e=function(e){if(e){const n=e.target;t(n,"search-result-list")&&function(e){if(e){const t=e.querySelectorAll('input[type="checkbox"]');t&&Array.prototype.forEach.call(t,(e=>{e&&e.setAttribute("tabindex",-1)}));const n=e.querySelectorAll(".collapsible-panel__trigger");n&&Array.prototype.forEach.call(n,(e=>{e&&(e.setAttribute("tabindex",0),e.setAttribute("role","button"),e.addEventListener("keyup",(e=>{if(e&&e.target)if(13==e.keyCode||32==e.keyCode){var t=e.target.querySelector(".collapsible-panel__title");t&&(t.click(),e.target.focus(),e.target.classList.add("focus-visible"))}else 9==e.keyCode&&e.target.classList.add("focus-visible")})),e.addEventListener("blur",(e=>{e&&e.target&&e.target.classList.remove("focus-visible")})))}))}}(n)}},t=(e,t)=>!!e&&(" "+e.className+" ").indexOf(" "+t+" ")>-1;window.addEventListener("DOMContentLoaded",(function(){const t=document.querySelectorAll(".search-results--locations");t&&Array.prototype.forEach.call(t,(t=>{if(t){const n={childList:!0};new MutationObserver((t=>{t.forEach((t=>{"childList"===t.type&&t.addedNodes.length>0&&e(t)}))})).observe(t,n)}}))}))}(),function(){"use strict";const e=function(){return window.innerWidth<768},t=(e,t)=>{e.classList.add(t)},n=t=>{const n=t.querySelector("iframe").getAttribute("data-video-md");return e&&n?`--aspect-ratio:${t.getAttribute("data-video-width-mobile")}/${t.getAttribute("data-video-height-mobile")};`:`--aspect-ratio:${t.getAttribute("data-video-width")}/${t.getAttribute("data-video-height")};`},r=function(e){if(e){const t=e.querySelectorAll("li.is-featured");t&&Array.prototype.forEach.call(t,(e=>{const t=e.querySelector(".video-wrapper");if(t){const e=t.querySelector(".video-component__container");let r="";r+=n(e),t.setAttribute("style",r),(e=>{const t=e.querySelector("iframe");let n=t.getAttribute("data-video-lg"),r=t.getAttribute("data-video-md");const o=t.getAttribute("src");r||(r=n),window.innerWidth<=767&&o!==r?t.setAttribute("src",r):o!==n&&t.setAttribute("src",n)})(e)}}))}},o=function(e){e&&e.querySelector(".product__image-featured")&&(t(e,"is-featured"),r(e.parentElement),e.querySelector("[data-isfeatured]")&&i(e))},i=function(e){const t=e.closest(".search-result-list"),n=e.querySelector("[data-isfeatured]"),r=n.innerHTML;let o=document.createElement("li");o.innerHTML=r,n.remove(),t.insertBefore(o,e.nextSibling)},s=function(e){if(e){const i=e.target,s=i.querySelector(".search-result-list");if(r="search-result-list",(n=s)&&(" "+n.className+" ").indexOf(" "+r+" ")>-1){const e=new MutationObserver((e=>{e.forEach((e=>{"childList"===e.type&&e.addedNodes.length>0&&function(e){const t=e.target;a(t),e&&e.target&&("LI"==e.target.tagName&&o(e.target),c())}(e)}))})),n={childList:!0,subtree:!0};e.observe(s,n),window.document.documentMode?t(i,"search-result-list--ie-grid"):a(i)}}var n,r;c()},a=function(e){if(e){const t=e.querySelectorAll("li");t&&Array.prototype.forEach.call(t,(e=>{o(e)}))}},c=()=>{const e=document.querySelectorAll(".lazy-load"),t=new IntersectionObserver(((e,t)=>{e.forEach((e=>{if(e.isIntersecting){const n=e.target,r=n.getAttribute("data-src");if(r){const e=new Image;e.src=r;let t=n.querySelector("img");t||(t=document.createElement("img"),n.appendChild(t)),e.onload=()=>{t.src=r,n.style.opacity=1,n.removeAttribute("data-src")}}t.unobserve(n)}}))}),{root:null,rootMargin:"50px",threshold:.1});e.forEach((e=>{t.observe(e)}))};window.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll(".search-results--product-grid-units");e&&Array.prototype.forEach.call(e,(e=>{if(e){const t={childList:!0,subtree:!0};new MutationObserver((e=>{e.forEach((e=>{"childList"===e.type&&s(e)}))})).observe(e,t)}}))})),window.addEventListener("resize",(function(){const e=document.querySelectorAll(".search-results--product-grid-units");let t=null;e&&Array.prototype.forEach.call(e,(e=>{e&&(t=e.querySelector("ul.search-result-list"),t&&r(t))}))}))}(),function(){"use strict";null!==document.querySelector(".sitecore-form form")&&window.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll(".sitecore-form--page"),t=document.querySelector(".sitecore-form form"),n=document.querySelector(".sitecore-form__catalog-selection"),r=document.querySelectorAll(".sitecore-form__catalog- .sitecore-form__col label"),o=document.querySelectorAll(".sitecore-form__catalog-selection select"),i=document.querySelector(".select-a-catalog-validation"),s=t.querySelector("button");null!==e&&(t.setAttribute("aria-live","polite"),o&&i&&(n.querySelector(".request-catalog-input").setAttribute("tabindex","-1"),n.querySelector(".request-catalog-input").setAttribute("aria-hidden","true"),n.querySelector(".request-catalog-input").setAttribute("autocomplete","off"),Array.prototype.forEach.call(o,(function(e){e.addEventListener("change",(function(t){let r=i.querySelector(".field-validation-error span");n.querySelector(".request-catalog-input").value=t.target.value,null!==r&&(""!==n.querySelector(".request-catalog-input").value?i.querySelector(".field-validation-error span").style.display="none":(i.querySelector(".field-validation-error span").style.display="block",e.classList.add("input-validation-error"))),""!==n.querySelector(".request-catalog-input").value&&Array.prototype.forEach.call(o,(function(e){e.classList.remove("input-validation-error")}))}))})),Array.prototype.forEach.call(r,(function(e){if(null!==e){const t=e.textContent,n=e.closest(".sitecore-form__col").querySelector(".h5").textContent;null!==n&&null!==t&&(e.textContent=t+" "+n)}})),s.addEventListener("click",(function(){""===n.querySelector(".request-catalog-input").value&&Array.prototype.forEach.call(o,(function(e){e.classList.add("input-validation-error")}))}))))}
4))}(),function(){"use strict";const e=(e,t,n=!1)=>{e.preventDefault();const r=t.dataset.anchor.replace("#",""),o=document.getElementById(r);if(!o)return;o.setAttribute("tabindex","-1");let i=o;if(n){const e=".product-details__button",t=[...o.querySelectorAll('input, select, textarea, button, a, [tabindex]:not([tabindex^="-"])')].filter((t=>!t.matches(e)&&t.checkVisibility({opacityProperty:!0}))).sort(((e,t)=>e.getBoundingClientRect().top-t.getBoundingClientRect().top)),[n]=t.splice(0,1);n&&(i=n)}(e=>{const{top:t,bottom:n,left:r,right:o}=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,s=window.innerWidth||document.documentElement.clientWidth;return t>=0&&r>=0&&n<=i&&o<=s})(i)||i.scrollIntoView({behavior:"smooth"}),i.focus()};window.addEventListener("DOMContentLoaded",(function(){const t=[...document.querySelectorAll(".skipto li")],n=[13,32];t.forEach((t=>{t.addEventListener("click",(n=>e(n,t))),t.addEventListener("keyup",(r=>{n.find((e=>r.keyCode==e))&&e(r,t)}))}))}))}(),window.stickyheader=window.stickyheader||function(){"use strict";const e={bodyElm:document.querySelector("body"),menuNavigtation:document.querySelector(".navigation--main"),menuElm:document.querySelector(".header-top .item0.odd.first>a"),mainContent:document.querySelector("#hw-content"),sitefooter:document.querySelector("footer"),cssClassToggle:"desktop-menu-is-open",cssClassToggleMobile:"mobile-menu-is-open",isScrollLocked:!1,isScrolledDown:!1,hamburgerMenuClick:!1,isIE11:!!window.MSInputMethodContext&&!!document.documentMode},t=window.debounce((function(){const t=window.innerWidth<992?e.cssClassToggle:e.cssClassToggleMobile;e.bodyElm&&e.bodyElm.classList.remove(t),e.menuElm&&(e.menuElm.classList.remove(t),e.menuElm.setAttribute("aria-expanded","false"))}),100),n=(e,t)=>(" "+e.className+" ").indexOf(" "+t+" ")>-1,r=function(){return window.innerWidth<992};return document.addEventListener("DOMContentLoaded",(()=>{window.addEventListener("resize",t);const o=n(e.bodyElm,"on-page-editor"),i=n(e.bodyElm,"preview"),s=n(e.bodyElm,"no-sticky-header"),a=!o&&!i&&!s&&e.menuElm,c=()=>{e.bodyElm.classList.add("is-scrolled-down"),e.bodyElm.classList.remove("is-scrolled-up",e.cssClassToggle),e.menuElm.classList.remove(e.cssClassToggle),e.isScrolledDown=!0,e.menuElm.setAttribute("tabindex",0)};if(a){const t=window.debounce((function(){e.isScrollLocked||window.scrollY>=1?c():(e.bodyElm.classList.remove("is-scrolled-down"),e.bodyElm.classList.add("is-scrolled-up"),e.isScrolledDown=!1,r()?e.menuElm.setAttribute("tabindex",0):e.menuElm.setAttribute("tabindex",-1))}),200);window.onscroll=()=>{let n=window.scrollY;e.hamburgerMenuClick=!1,!1===e.hamburgerMenuClick&&e.mainContent.offsetHeight-n>200&&t()},e.menuElm.addEventListener("click",(t=>{t.preventDefault(),e.hamburgerMenuClick=!0;let r=window.innerWidth<992;e.isScrolledDown&&!r&&(n(e.menuElm,e.cssClassToggle)?(e.bodyElm.classList.remove(e.cssClassToggle),e.menuElm.classList.remove(e.cssClassToggle),e.menuElm.setAttribute("aria-expanded","false"),e.isIE11&&(document.querySelector(".icon-link--Menu path:nth-of-type(1)").setAttribute("transform","rotate(0,0,0)"),document.querySelector(".icon-link--Menu path:nth-of-type(3)").setAttribute("transform","rotate(0,0,0)"))):(e.bodyElm.classList.add(e.cssClassToggle),e.menuElm.classList.add(e.cssClassToggle),e.menuElm.setAttribute("aria-expanded","true"),setTimeout((function(){e.menuNavigtation.querySelector("nav").focus()}),100),e.isIE11&&(document.querySelector(".icon-link--Menu path:nth-of-type(1)").setAttribute("transform","rotate(-45,6,22)"),document.querySelector(".icon-link--Menu path:nth-of-type(3)").setAttribute("transform","rotate(45,4,9)")))),r&&(n(e.menuElm,e.cssClassToggleMobile)?(e.bodyElm.classList.remove(e.cssClassToggleMobile),e.menuElm.classList.remove(e.cssClassToggleMobile),e.menuElm.setAttribute("aria-expanded","false"),e.mainContent.removeAttribute("aria-hidden","true"),e.sitefooter.removeAttribute("aria-hidden","true"),Array.prototype.forEach.call(e.menuNavigtation.querySelectorAll(".flyout.is-open"),(function(e){e.classList.remove("is-open")})),Array.prototype.forEach.call(e.menuNavigtation.querySelectorAll(".navigation__toggle "),(function(e){e.setAttribute("aria-expanded","fal
4se"),e.classList.remove("is-open")}))):(e.bodyElm.classList.add(e.cssClassToggleMobile),e.menuElm.classList.add(e.cssClassToggleMobile),e.menuElm.setAttribute("aria-expanded","true"),e.mainContent.setAttribute("aria-hidden","true"),e.sitefooter.setAttribute("aria-hidden","true"),setTimeout((function(){e.menuNavigtation.querySelector("nav").focus()}),100)))})),e.bodyElm.classList.add("is-scrolled-up"),t()}})),e}(),function(){"use strict";const e=(e,t)=>(" "+e.className+" ").indexOf(" "+t+" ")>-1;window.addEventListener("DOMContentLoaded",(function(){const t=document.querySelectorAll(".js-tabbed-navigation");Array.prototype.forEach.call(t,(function(t){const n=t.closest("li");e(n,"active")&&t.setAttribute("aria-expanded","true")}))}))}(),function(){"use strict";window.addEventListener("DOMContentLoaded",(function(){function e(e,n,r,o){var i=function(e,t){var n=e.parentNode.getBoundingClientRect(),r=e.getBoundingClientRect(),o={};return o.top=r.top-n.top+e.parentNode.scrollTop,o.right=r.right-n.right,o.bottom=r.bottom-n.bottom,o.left=r.left-(n.left+t),o}(n,o);t(e,s?i.left:i.top,r)}function t(e,t,r,o){var i,a,c=t-(u=e.scrollTop),l=performance.now();if(s)var u=e.scrollLeft;!function t(){i=performance.now(),a=(i-l)/1e3/r,e.scrollTop=u+c*n(a),s&&(e.scrollLeft=u+c*n(a)),a<1?window.requestAnimationFrame(t):o&&o()}()}function n(e){return e<.5?2*e*e:(4-2*e)*e-1}var r=document.querySelectorAll(".timeline"),o=document.querySelector(".timeline");var i=window.location.hash.replace("#","");const s=window.matchMedia("(max-width: 991px)").matches;Array.prototype.forEach.call(r,(function(t){function n(){Array.prototype.forEach.call(o,(function(e){e.classList.remove("active"),e.classList.remove("focus-visible"),e.blur(),e.setAttribute("aria-selected","false")})),Array.prototype.forEach.call(a,(function(e){e.classList.remove("active"),e.style.display="none"}))}const r=document.querySelector(".timeline__triggers"),o=t.querySelectorAll(".timeline__triggers li"),a=t.querySelectorAll(".timeline__slides li");o[0].classList.add("active"),a[0].style.display="flex",i&&(s?$("html, body").animate({scrollTop:"+320px"},800):$("html, body").animate({scrollTop:"+270px"},800),n(),Array.prototype.forEach.call(a,(function(e){i===e.id&&(e.classList.add("active"),e.style.display="flex")})),Array.prototype.forEach.call(o,(function(t){if(i===t.getAttribute("aria-controls")){t.classList.add("active"),t.setAttribute("aria-selected","true"),t.focus();var n=r.querySelector(".active");e(r,n,1,0)}})));for(let t=0;t<o.length;t++)o[t].addEventListener("click",(i=>{n(),i.preventDefault(),o[t].classList.add("active"),o[t].setAttribute("aria-selected","true"),o[t].focus(),a[t].classList.add("active"),a[t].style.display="flex",window.history.pushState(null,null,"#"+o[t].getAttribute("aria-controls"));var c=r.querySelector(".active");e(r,c,1,40),s?$("html, body").animate({scrollTop:"+320px"},800):$("html, body").animate({scrollTop:"+270px"},800)}))}));const a=window.debounce((function(){r.length>0&&document.querySelector(".timeline li.active").click()}),250);window.addEventListener("resize",a),o&&o.addEventListener("keydown",(e=>{if((39===e.keyCode||40===e.keyCode||!event.shiftKey&&9===e.keyCode)&&r.length>0){const t=document.querySelector(".timeline li.active").nextElementSibling;null!==t&&(e.preventDefault(),t.click(),t.classList.add("focus-visible"),t.focus())}if((37===e.keyCode||38===e.keyCode)&&r.length>0){const t=document.querySelector(".timeline li.active").previousElementSibling;null!==t&&(e.preventDefault(),t.click(),t.classList.remove("focus-visible"),t.focus())}if(event.shiftKey&&9===event.keyCode&&r.length>0){const t=document.querySelector(".timeline li.active").previousElementSibling;null!==t&&(e.preventDefault(),t.click(),t.classList.add("focus-visible"),t.focus())}}))}))}(),window.toggle=window.toggle||function(){"use strict";var e=function(e,r){try{const o=e.dataset.toggleTrigger,i=document.querySelectorAll("[data-toggle-target="+o+"], [data-toggle-trigger="+o+"]");t(e,r)?Array.prototype.forEach.call(i,(e=>{let o=event.target.closest(".collapsible-panel--filters-product-grid");!t(event.target,"collapsible-panel__icon")&&null!=o&&n()||e.classList.remove(r)})):Array.prototype.forEach.call(i,(e=>{e.classList.add(r)}))}catch(e){console.log(e)}};const t=(e,t)=>(" "+e.className+" ").indexOf(" "+t+" ")>-1,n=function(){return window.innerWidth<768};window.addEventListener("DOMContentLoaded",(function(){const t=document.querySelectorAll("[data-toggle-trigger]");Array.prototype.forEach.call(t,(t=>{t.dataset.toggleTrigger&&(t.addEventListener("click",(n=>{n.preventDefault(),e(t,"is-open")})),t.addEventListener("keyup",(e=>{e.preventDefault();var t=e.which||e.keyCode;!e.target||13!=t&&32!=t||e.target.click()})),t.setAttribute("tabindex","0"))}))}))}(),function(){"use strict";let e=!1,t=!0;const n=()=>{t=window.innerWidth<768},r=()=>{const n=[...document.querySelectorAll(".video-component__container")];e=n.length>
40,n.forEach((e=>{!function(e){const n=e.querySelector("iframe");let r=0,o=0;const i=n.hasAttribute("data-video-md");t&&i?(r=e.getAttribute("data-video-width-mobile"),o=e.getAttribute("data-video-height-mobile")):(r=e.getAttribute("data-video-width"),o=e.getAttribute("data-video-height"));const s=n.offsetWidth*(o/r);n.style.height=s+2+"px"}(e);const n=e.querySelector("iframe");o(n)}))},o=e=>{const t=e.getAttribute("src"),n=t?(e=>{const t=new URL(e),n=t.searchParams;return"fullhd"!==n.get("defaultQuality")&&n.set("defaultQuality","fullhd"),t})(t):new URL(t);t!==n.href&&e.setAttribute("src",n)};window.addEventListener("DOMContentLoaded",(function(){n(),r(),e&&window.addEventListener("resize",window.debounce((()=>{n(),r()}),400,!1))}))}(),function(){"use strict";window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".workshop-slider");e&&e.forEach((e=>{const t=e.querySelector(".workshop-slider__track"),n=e.querySelectorAll(".workshop-slider__item");let r,o,i=!1;t.addEventListener("mousedown",(e=>{i=!0,t.classList.add("active"),r=e.pageX-t.offsetLeft,o=t.scrollLeft})),t.addEventListener("mouseleave",(()=>{i=!1,t.classList.remove("active")})),t.addEventListener("mouseup",(()=>{i=!1,t.classList.remove("active")})),t.addEventListener("mousemove",(e=>{if(!i)return;e.preventDefault();const n=1*(e.pageX-t.offsetLeft-r);t.scrollLeft=o-n})),n.forEach((e=>{const t=e.firstElementChild,n=e.getBoundingClientRect();n.left<0?t.classList.add("displace-left"):n.right>window.innerWidth&&t.classList.add("displace-right");new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&t.classList.remove("displace-left","displace-right")}))}),{threshold:[0]}).observe(e)}));const s=e.querySelectorAll("video");s.length&&s.forEach((e=>{e.addEventListener("canplay",(()=>{(e=>{const t=e.parentElement;t&&(t.style.width=`${e.clientWidth}px`)})(e)}))}))}))}))}();
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.