(function(){var n;function aa(a){var b=0;return function(){return bc&&(c=Math.max(c+e,0));cc&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c=g}});var za=this; function w(a,b){a=a.split(".");var c=za;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};function Aa(a,b){this.x=void 0===a?0:a;this.y=void 0===b?0:b};function Ba(a,b,c,d){this.top=a;this.b=b;this.a=c;this.left=d}Ba.prototype.contains=function(a){return this&&a?a instanceof Ba?a.left>=this.left&&a.b<=this.b&&a.top>=this.top&&a.a<=this.a:a.x>=this.left&&a.x<=this.b&&a.y>=this.top&&a.y<=this.a:!1};Ba.prototype.expand=function(a,b,c,d){"number"!==typeof a?(this.top-=a.top,this.b+=a.b,this.a+=a.a,this.left-=a.left):(this.top-=a,this.b+=Number(b),this.a+=Number(c),this.left-=Number(d));return this};function Ca(a,b){var c=new Da(a,b),d=c.b.bind(c);d.cancel=function(){c.cancel();return d}.bind(this);return d}function Da(a,b){this.f=a;this.c=b;this.a=null}Da.prototype.b=function(){clearTimeout(this.a);this.a=setTimeout(this.f,this.c)};Da.prototype.cancel=function(){clearTimeout(this.a)};function Ea(a,b,c,d,e){return b+c*e(a/d)}w("ease$$module$node_modules$$google$glue$lib$fx$easing",Ea);function Fa(a){return 0==a||1==a?a:1-Math.cos(Math.PI/2*a)}w("easeInSine$$module$node_modules$$google$glue$lib$fx$easing",Fa);function Ga(a){return 0==a||1==a?a:Math.sin(Math.PI/2*a)}w("easeOutSine$$module$node_modules$$google$glue$lib$fx$easing",Ga);function Ha(a){return 0==a||1==a?a:-.5*(Math.cos(Math.PI*a)-1)}w("easeInOutSine$$module$node_modules$$google$glue$lib$fx$easing",Ha); function Ia(a){return 0==a||1==a?a:a*a}w("easeInQuad$$module$node_modules$$google$glue$lib$fx$easing",Ia);function Ja(a){return 0==a||1==a?a:a*(2-a)}w("easeOutQuad$$module$node_modules$$google$glue$lib$fx$easing",Ja);function Ka(a){return 0==a||1==a?a:.5>a?2*a*a:-1+(4-2*a)*a}w("easeInOutQuad$$module$node_modules$$google$glue$lib$fx$easing",Ka);function La(a){return 0==a||1==a?a:a*a*a}w("easeInCubic$$module$node_modules$$google$glue$lib$fx$easing",La);function Ma(a){return 0==a||1==a?a:--a*a*a+1} w("easeOutCubic$$module$node_modules$$google$glue$lib$fx$easing",Ma);function Na(a){return 0==a||1==a?a:.5>a?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1}w("easeInOutCubic$$module$node_modules$$google$glue$lib$fx$easing",Na);function Oa(a){return 0==a||1==a?a:a*a*a*a}w("easeInQuart$$module$node_modules$$google$glue$lib$fx$easing",Oa);function Pa(a){return 0==a||1==a?a:1- --a*a*a*a}w("easeOutQuart$$module$node_modules$$google$glue$lib$fx$easing",Pa); function Qa(a){return 0==a||1==a?a:.5>a?8*a*a*a*a:1-8*--a*a*a*a}w("easeInOutQuart$$module$node_modules$$google$glue$lib$fx$easing",Qa);function Ra(a){return 0==a||1==a?a:a*a*a*a*a}w("easeInQuint$$module$node_modules$$google$glue$lib$fx$easing",Ra);function Sa(a){return 0==a||1==a?a:1+--a*a*a*a*a}w("easeOutQuint$$module$node_modules$$google$glue$lib$fx$easing",Sa);function Ta(a){return 0==a||1==a?a:.5>a?16*a*a*a*a*a:1+16*--a*a*a*a*a} w("easeInOutQuint$$module$node_modules$$google$glue$lib$fx$easing",Ta);function Ua(a){return 0==a||1==a?a:Math.pow(2,10*(a-1))}w("easeInExpo$$module$node_modules$$google$glue$lib$fx$easing",Ua);function Va(a){return 0==a||1==a?a:1-Math.pow(2,-10*a)}w("easeOutExpo$$module$node_modules$$google$glue$lib$fx$easing",Va);function Wa(a){return 0==a||1==a?a:.5>a?.5*Math.pow(2,10*(2*a-1)):.5*(2-Math.pow(2,-10*(2*a-1)))}w("easeInOutExpo$$module$node_modules$$google$glue$lib$fx$easing",Wa); function Xa(a){return 0==a||1==a?a:1-Math.sqrt(1-a*a)}w("easeInCirc$$module$node_modules$$google$glue$lib$fx$easing",Xa);function Ya(a){return 0==a||1==a?a:Math.sqrt(1-(a-1)*(a-1))}w("easeOutCirc$$module$node_modules$$google$glue$lib$fx$easing",Ya);function Za(a){return 0==a||1==a?a:.5>a?-.5*(Math.sqrt(1-a*a*4)-1):.5*(Math.sqrt(1-4*(a-1)*(a-1))+1)}w("easeInOutCirc$$module$node_modules$$google$glue$lib$fx$easing",Za);function $a(a){return 0==a||1==a?a:a*a*(2.70158*a-1.70158)} w("easeInBack$$module$node_modules$$google$glue$lib$fx$easing",$a);function cb(a){return 0==a||1==a?a:(a-1)*(a-1)*(2.70158*(a-1)+1.70158)+1}w("easeOutBack$$module$node_modules$$google$glue$lib$fx$easing",cb);function db(a){return 0==a||1==a?a:.5>a?2*a*a*(7.189819*a-2.5949095):.5*((2*a-2)*(2*a-2)*(3.5949095*(2*a-2)+2.5949095)+2)}w("easeInOutBack$$module$node_modules$$google$glue$lib$fx$easing",db);function eb(a){return 0==a||1==a?a:-1*Math.pow(2,10*(a-1))*Math.sin(2*(a-1.075)*Math.PI/.3)} w("easeInElastic$$module$node_modules$$google$glue$lib$fx$easing",eb);function fb(a){return 0==a||1==a?a:Math.pow(2,-10*a)*Math.sin(2*(a-.075)*Math.PI/.3)+1}w("easeOutElastic$$module$node_modules$$google$glue$lib$fx$easing",fb);function gb(a){return 0==a||1==a?a:.5>a?-.5*Math.pow(2,10*(2*a-1))*Math.sin(2*(2*a-1.1125)*Math.PI/.45):.5*Math.pow(2,-10*(2*a-1))*Math.sin(2*(2*a-1.1125)*Math.PI/.45)+1}w("easeInOutElastic$$module$node_modules$$google$glue$lib$fx$easing",gb); function hb(a){return 0==a||1==a?a:1-ib(1-a)}w("easeInBounce$$module$node_modules$$google$glue$lib$fx$easing",hb);function ib(a){return 0==a||1==a?a:a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-1.5/2.75)*(a-1.5/2.75)+.75:a<2.5/2.75?7.5625*(a-2.25/2.75)*(a-2.25/2.75)+.9375:7.5625*(a-2.625/2.75)*(a-2.625/2.75)+.984375}w("easeOutBounce$$module$node_modules$$google$glue$lib$fx$easing",ib);function jb(a){return 0==a||1==a?a:.5>a?.5*hb(2*a):.5*ib(2*a-1)+.5} w("easeInOutBounce$$module$node_modules$$google$glue$lib$fx$easing",jb);function kb(a){return a}w("linear$$module$node_modules$$google$glue$lib$fx$easing",kb); var lb=new Map([["ease",Ea],["easeInSine",Fa],["easeOutSine",Ga],["easeInOutSine",Ha],["easeInQuad",Ia],["easeOutQuad",Ja],["easeInOutQuad",Ka],["easeInCubic",La],["easeOutCubic",Ma],["easeInOutCubic",Na],["easeInQuart",Oa],["easeOutQuart",Pa],["easeInOutQuart",Qa],["easeInQuint",Ra],["easeOutQuint",Sa],["easeInOutQuint",Ta],["easeInExpo",Ua],["easeOutExpo",Va],["easeInOutExpo",Wa],["easeInCirc",Xa],["easeOutCirc",Ya],["easeInOutCirc",Za],["easeInBack",$a],["easeOutBack",cb],["easeInOutBack",db], ["easeInElastic",eb],["easeOutElastic",fb],["easeInOutElastic",gb],["easeInBounce",hb],["easeOutBounce",ib],["easeInOutBounce",jb],["linear",kb]]);w("easingFuncMap$$module$node_modules$$google$glue$lib$fx$easing",lb);var x={};x.Fd=Ea;x.Gd=$a;x.Hd=hb;x.Id=Xa;x.Jd=La;x.Kd=eb;x.Ld=Ua;x.Md=db;x.Nd=jb;x.Od=Za;x.Pd=Na;x.Qd=gb;x.Rd=Wa;x.Sd=Ka;x.Td=Qa;x.Ud=Ta;x.Vd=Ha;x.Wd=Ia;x.Xd=Oa;x.Yd=Ra;x.Zd=Fa;x.ae=cb;x.be=ib;x.ce=Ya;x.de=Ma;x.ee=fb;x.fe=Va;x.ge=Ja;x.he=Pa;x.ie=Sa;x.je=Ga;x.ke=lb;x.oe=kb;function mb(){this.a={}}mb.prototype.dispatchEvent=function(a,b){a=nb(this,a);for(var c=0,d;d=a[c];c++)d(b)};mb.prototype.o=function(a,b){nb(this,a).push(b)};mb.prototype.m=function(a,b){a=nb(this,a);for(var c=a.length-1;0<=c;c--)a[c]==b&&a.splice(c,1)};function nb(a,b){a.a[b]||(a.a[b]=[]);return a.a[b]};var ob='input textarea select button iframe [role="button"] a [tabindex]'.split(" ");function pb(a){return 0a.b)}function Tb(a,b){a.c=b} y.prototype.o=function(a,b){if(!this.c)throw Error("[Pagination Model] - An event adapter has not yet been defined. - Please use PaginationModel.setEventAdapter");this.c.o(a,b)};y.prototype.m=function(a,b){this.c&&this.c.m(a,b)};function Ob(a){a.timer&&!a.i&&(a.i=!0,a.j=setInterval(function(){return a.next()},a.timer))}function Ub(a){return 1a?1:a>this.totalPages?this.totalPages:a;Pb(this,"gluepaginationcurrentpage")}},totalItems:{configurable:!0,enumerable:!0,get:function(){return this.h},set:function(a){this.h=a;this.totalPages=Math.ceil(this.h/this.itemsPerPage)}},totalPages:{configurable:!0,enumerable:!0,get:function(){return this.b},set:function(a){this.b=a;Pb(this,"gluepaginationtotalpages")}}}); t.Object.defineProperties(y,{a:{configurable:!0,enumerable:!0,get:function(){return{currentPage:1,totalItems:0,itemsPerPage:1,totalPages:0,maxLength:0,timer:0,cyclical:!1,ue:[],activeEl:""}}}});y.prototype.next=y.prototype.next;y.prototype.previous=y.prototype.D;function z(a){this.a=a=void 0===a?{}:a}t.Object.defineProperties(z,{a:{configurable:!0,enumerable:!0,get:function(){return{}}},b:{configurable:!0,enumerable:!0,get:function(){return{}}},c:{configurable:!0,enumerable:!0,get:function(){return{}}}});function Wb(a,b,c,d){this.b=a;this.a=void 0!=b?b:0;this.g=void 0!=c?Math.min(Math.max(c,0),this.b.c.length-1):null;this.f=0!=d;this.c=!1}Wb.prototype.next=function(){if(this.c)return{value:void 0,done:!0};var a=this.a;this.a+=this.f?1:-1;a==this.g&&(this.c=!0);0>this.a?this.b.f?this.a=this.b.c.length-1:this.c=!0:this.a>=this.b.c.length&&(this.b.f?this.a=0:this.c=!0);return{value:a,done:!1}};function A(a,b,c,d){this.a=a;this.f=0!=d;this.b=0;if(void 0!=b.x)a=b.index,this.b=b.x;else{a=b;var e=this.a;b=e.f?Math.floor(e.a/B(e))*B(e):0;for(var g=0;g=this.f,(b=Xb(this))?this.h=new A(a,b,null,this.c):this.a=!0):this.a=!0}E.prototype.next=function(){if(this.a)return{value:void 0,done:!0};var a=this.h.next().value;a?this.c?a.x+a.width>=this.g+this.b.b&&(this.a=!0):a.x<=this.g&&(this.a=!0):this.a=!0;return{value:a,done:!1}}; function Xb(a){var b=a.f+(a.c?0:a.b.b-1);var c=0<=b?function(e){return e&&e.x+e.width-1b};a=new A(a.b,{index:0,x:0},null,0<=b);do var d=a.next().value;while(c(d));return d};function Yb(a){this.a=a;a=this.c=0;if(this.a.f&&F(this.a))for(;a>this.a.a;)a-=B(this.a);this.f=new A(this.a,{index:0,x:a},null);this.b=!1;F(this.a)||(this.b=!0)}Yb.prototype.next=function(){var a=this.f.next().value;if(!a||this.b)return{value:void 0,done:!0};var b=this.a.a+this.a.b+this.a.s;if(this.c>=this.a.c.length&&a.x>=b)return{value:void 0,done:!0};b=Zb(this.a,a.index,a.x);this.c++;return{value:{index:a.index,Lc:b},done:!1}};function $b(a,b,c){this.f=a;this.v=void 0==b||1==b;this.j=0!=c;this.h=this.a=0;this.c=[];this.l=[];this.u=!1;this.s=this.b=0;this.g=[]}function ac(a,b){a.c=Array.prototype.slice.apply(b);a.h=B(a);a.u=!a.c.every(function(c){return 0>=c});bc(a)}function B(a){for(var b=0,c=0,d=a.c.length;cI(a))){d=new A(a,c=k&&g=k&&g=e&&b=e&&c=e&&b=a?1:0}function hc(a){if(a.l.length){var b=J(a,!0);b&&(a.l=[],a.h=B(a),b=fc(a,b.index,null,!0)+b.offset,dc(a,b))}} function ic(a,b){if(b!=a.a){var c=J(a);if(c){for(var d=a.a,e=[],g=new E(a,d,b),k;k=g.next().value;){var f=Zb(a,k.index,k.x,b);0==Zb(a,k.index,k.x,d)&&0==f&&e.push(k.index)}e.length&&(a.l=e,a.h=B(a),b=fc(a,c.index)+c.offset,dc(a,b))}}}function bc(a){a.g.length=0;for(var b=new Yb(a),c;c=b.next().value;)a.g.push(c.Lc)};var jc={Yc:"glue-carousel__list",ad:"glue-is-measuring",mb:"glue-carousel__item",Ia:"glue-is-ready",wd:"glue-is-swiping",wb:"glue-carousel__wrap",tb:"glue-touch"},kc={qb:250};function lc(a,b,c){this.b=a;this.a=b;this.j=this.a.S();this.i=void 0===c?!1:c;this.c=0;this.h=[];this.g=[];this.f=null} lc.prototype.w=function(a){var b=this;a=void 0===a?function(){}:a;this.I(function(){b.a.addClass("glue-is-measuring");b.b.b=b.a.Ta();for(var c=[],d=b.a.ha(),e=b.c=0,g;g=d[e];e++){var k=b.a.cc(g),f=k.width;k=k.height;b.a.U(g,"width",f+"px");c.push(f);b.c=Math.max(b.c,k)}b.a.removeClass("glue-is-measuring");b.c=Math.round(b.c);for(e=0;g=d[e];e++)b.a.U(g,"minHeight",b.c+"px");ac(b.b,c);b.a.pa("width",cc(b.b)+"px");a()})}; function mc(a){var b=Array.prototype.slice.apply(a.b.g);a.a.ba(b,function(){var c=a.a.ha(),d=a.b.g,e=a.b.i;if(e){var g=a.b;e=e.index;if(F(g)){for(var k=null,f=0,h=g.g.length;fd.index;var e=fc(a.a,b,d);isFinite(e)&&null!=e&&(c?a.c.jump?(ic(a.a,e),b=fc(a.a,b,d),null!=b&&pc(a,b,null,function(){hc(this.a);qc(this,e)}.bind(a))):pc(a,e):(qc(a,e),gc(a.a),a.f=a.a.a))}}function qc(a,b){dc(a.a,b);mc(a.g)} function pc(a,b,c,d){a.b&&Nb(a.b);if(b!=a.a.a){a.f=b;var e={x:a.a.a};b={x:b,ease:a.c.easing,onUpdateParams:[e],onUpdate:function(g){qc(this,g.x);c&&c()}.bind(a),onComplete:function(){d&&d();gc(this.a);this.f=this.a.a}.bind(a)};a.b=new Jb(e,a.c.transitionDuration,b)}} function rc(a,b,c,d){d=void 0!=d?d:a.f;var e=0;b&&a.c.group?(b=a.a,e=b.b,e+=void 0!=d?d:b.a,d=new E(b,e),(e=d.next().value)&&b.i&&e.x==b.i.x&&(e=d.next().value),e=e?e.x:b.h-D(b,b.c.length-1)):b?(b=a.a,(d=J(b,!1,d))?(e=new A(b,d,null,!0),e.next(),d=(e=e.next().value||d)?e.x:d.x,b.j&&(d+=e.width/2-b.b/2),e=d):e=null):!b&&a.c.group?e=ec(a.a,d):b||(b=a.a,(d=J(b,!1,d))?(e=new A(b,d,null,!1),e.next(),d=(e=e.next().value||d)?e.x:d.x,b.j&&(d+=e.width/2-b.b/2),e=d):e=null);null!=e&&pc(a,e,c)} t.Object.defineProperties(nc.prototype,{h:{configurable:!0,enumerable:!0,get:function(){return this.f}}});function sc(a,b,c,d,e){this.b=a;this.a=c;this.c=b;this.K=d;this.ea=e;this.da=this.a.S();this.g=!1;this.f=this.h=this.P=this.j=this.l=0;this.v=this.Xa.bind(this);this.u=this.Wa.bind(this);this.i=this.va.bind(this);this.s=this.dc.bind(this);this.G=this.fc.bind(this);this.R=!1}n=sc.prototype;n.w=function(){this.a.zc(this.v);this.a.yc(this.u);this.a.xc(this.i);this.a.wc(this.i);this.a.uc(this.s);this.a.Bc(this.G)}; n.destroy=function(){this.a.Kb(this.v);this.a.Jb(this.u);this.a.Ib(this.i);this.a.Hb(this.i);this.a.Fb(this.s);this.a.Mb(this.G)};n.Xa=function(a){var b=this.c;b.b&&Nb(b.b);hc(this.b);this.l=+new Date;this.j=this.b.a;this.P=a.x;this.g=!0;this.a.addClass("glue-is-swiping")}; n.Wa=function(a){if(this.g){this.h=(a.x-this.P)*(this.da?-1:1);a=this.j-this.h;var b=this.a.A?this.a.A():void 0,c=b?b.totalPages:0,d=b?b.currentPage:0,e=this.c.h>a?"LEFT":"RIGHT";this.R=!(b&&b.cyclical||c!==d||"RIGHT"!==e);b=this.b;b.f?b=!1:(c=I(b),b=ac);b&&(b=this.ea.edgeFriction,a>I(this.b)+1?(a-=I(this.b),a=I(this.b)+a/b):a+new Date-this.l&&50=k||!e?f.parentNode&&f.parentNode.removeChild(f):d>=e.ja&&dd.childElementCount)throw Error(Dd.NOT_ENOUGH);}c=b.querySelector(".glue-header__deep-nav-trigger");d=b.querySelector(".glue-header__deep-nav-dialog");var e=b.parentElement.classList.contains("glue-header__deep-nav-dialog")? Cd:Bd;"A"===c.nodeName&&c.removeAttribute("href");b.classList.contains("glue-header--is-active")&&d.classList.add("glue-header__deep-nav--with-active-link");b.parentElement.classList.contains("glue-header__deep-nav-dialog")&&b.parentElement.classList.add("glue-header__deep-nav--with-subnav");a.b.push(new qd(b,e,c,d))})}Ed.prototype.destroy=function(){this.b.forEach(function(a){return a.destroy()});this.b.length=0};Ed.prototype.close=function(){this.b.forEach(function(a){return a.close()})}; function Gd(a){a.b.forEach(function(b){b.close();b.g=!1})}function Hd(a){a.b.forEach(function(b){b.g=!0})};function Id(a){R.call(this,a);this.j=1;Jd(this);Kd(this);a=this.a.parentElement.querySelector(".glue-header__link-bar");if(!a)throw Error("Stepped Nav can't find the Link Bar Header element.");(a=a.firstElementChild.cloneNode(!0))&&Ld(this,a);this.s=new Md(this.b);this.l=new Md(this.c);this.g.currentPage=this.j}r(Id,R); function Jd(a){a.b=a.a.querySelector(".glue-header__stepped-nav-menus");if(!a.b)throw Error("The container element for Stepped Nav Pages is missing");a.b.classList.add("glue-pagination__pages");a.b.setAttribute("data-glue-pagination","stepped-nav");a.g=O("stepped-nav");a.u=function(){var b=Nd(a);if(b){var c=Od(a),d=Pd(b);b.classList.remove("glue-header__stepped-nav-parent-position");c.classList.remove("glue-header__stepped-nav-parent-position");(b=Nd(a,d))&&b.classList.add("glue-header__stepped-nav-parent-position"); (d=Od(a,d))&&d.classList.add("glue-header__stepped-nav-parent-position")}};a.g.o("gluepaginationcurrentpage",a.u)} function Kd(a){a.c=a.a.querySelector(".glue-header__stepped-nav-controls-container");a.f=a.a.querySelector(".glue-header__stepped-nav-controls");a.v=a.a.querySelector(".glue-header__stepped-nav-controls-title");if(!a.c||!a.f||!a.v)throw Error("Some of the Stepped Nav controls elements are missing.");a.f.remove();a.h=a.f.querySelector(".glue-header__stepped-nav-subnav-icon");a.h&&a.h.remove();a.i=function(b){a.c.contains(b.target)&&(b=Nd(a),Od(a),a.g.currentPage=Pd(b))};a.c.addEventListener("click", a.i);a.c.setAttribute("data-glue-pagination","stepped-nav");a.f.classList.add("glue-pagination__page");a.f.setAttribute("data-glue-pagination","stepped-nav")} function Ld(a,b,c){b.classList.add("glue-pagination__page");b.setAttribute("data-glue-pagination","stepped-nav");a.b.appendChild(b);a.v.innerText=c;c=a.f.cloneNode(!0);b.classList.contains("glue-header__stepped-nav-parent-position")&&c.classList.add("glue-header__stepped-nav-parent-position");a.c.appendChild(c);new Qd(b);c=a.b.children.length;for(var d=p(b.children),e=d.next();!e.done;e=d.next()){e=e.value;var g=a,k=e,f=Rd(k,"UL"),h=Rd(k,"A");!f&&k.classList.contains("glue-header--is-active")&&(g.j= c);f&&h&&(f.remove(),f.setAttribute("data-glue-stepped-nav-parent-index",c),k=Ld(g,f,h.innerText.trim()),h.setAttribute("data-glue-pagination-page",k),(f=Rd(h,"svg"))&&f.remove(),g.h&&(g.h.setAttribute("data-glue-pagination-page",k),h.appendChild(g.h.cloneNode(!0))));e.classList.contains("glue-header--is-active")&&b.classList.add("glue-header__stepped-nav-parent-position")}return c}function Pd(a){return a.dataset.glueSteppedNavParentIndex?Number(a.dataset.glueSteppedNavParentIndex):0} function Nd(a,b){b=void 0===b?a.g.currentPage:b;return a.b.children.item(b-1)}function Od(a,b){b=void 0===b?a.g.currentPage:b;return a.c.children.item(b-1)}function Rd(a,b){return Array.from(a.children).find(function(c){return c.nodeName==b})}Id.prototype.destroy=function(){this.s&&this.s.destroy();this.l&&this.l.destroy();this.f.removeEventListener("click",this.i);this.g.m("gluepaginationcurrentpage",this.u)};function Sd(a,b){R.call(this,a,b);this.R=this.i=!1;this.P=0;this.l=!0;this.v=!1;this.ea=!0;Td(this,b)}r(Sd,R); function Td(a,b){var c=void 0;if(!a.a.classList.contains("glue-header"))throw Error(Yc.MISSING_ROOT_ELEMENT);a.c=Object.assign(Object.create(Zc),b,Ud(a));a.h=Vd(a);a.s=Vd(a,!0);a.f=Wd(a);if(a.c.drawer){b=a.a.querySelector(".glue-header__drawer");c=a.h.querySelector(".glue-header__link-bar");if(null===b)throw Error(Yc.MISSING_DRAWER_ELEMENT);if(null===c)throw Error(Yc.MISSING_LINK_BAR_ELEMENT);(new Hammer.Manager(c.parentElement)).on("swipeleft swiperight",function(){});c=new Hammer.Manager(a.h);c.add(new Hammer.Swipe({direction:Hammer.DIRECTION_HORIZONTAL})); a.u=a.a.querySelector(".glue-header__drawer-toggle-btn");if(null===a.u)throw Error(Yc.MISSING_TOGGLE_BTN_ELEMENT);a.b=new S(b,a.u)}else a.a.classList.add("glue-header-no-drawer");U(a);Xd(a);a.V=function(d){a.c.drawer&&(id(a.b)?(a.u.setAttribute("aria-expanded",!1),a.b.a.contains(d.target)?d.target.classList.contains("glue-button")&&a.b.close():a.b.close()):d.target===a.u&&(a.u.setAttribute("aria-expanded",!0),a.b.open()))};a.da=function(d){d=27===d.keyCode||13===d.keyCode;a.c.drawer&&id(a.b)&&d&& a.b.close()};a.Ea=function(){return Yd(a)};a.Da=function(){a.a.classList.add("glue-is-showing-drawer");a.a.setAttribute("aria-expanded",!0);if(a.g){var d=a.g.b;d.close();d.g=!1}a.j&&Gd(a.j)};a.Ca=function(){a.a.classList.remove("glue-is-showing-drawer");a.a.setAttribute("aria-expanded",!1);if(a.g){var d=a.g;d.b.g=!0;Ad(d)}a.j&&Hd(a.j)};a.G=function(){a.v&&(a.i=!1,a.v=!1,a.f.classList.remove("glue-is-animating"))};a.ob=function(){a.c.drawer&&id(a.b)&&a.b.close()};a.a.addEventListener("click",a.V); a.a.addEventListener("keydown",a.da);Xd(a);a.c.drawer&&a.a.addEventListener("glueHeaderDrawerOpen",a.Da);a.c.drawer&&a.a.addEventListener("glueHeaderDrawerClose",a.Ca);window.addEventListener("scroll",a.Ea);a.h.addEventListener("transitionend",a.G);a.s.addEventListener("transitionend",a.G);c&&c.on("swipe",a.ob);Zd(a);a.K.o(function(d){"sm"===d&&U(a)});if(c=a.a.querySelector(".glue-header__site-switcher"))a.g=new zd(c);a.j=new Ed(a.h);if(a.c.steppedNav&&(c=a.a.querySelector(".glue-header__stepped-nav"))){a.a.classList.add("glue-header-stepped-nav-enabled"); try{a.Ga=new Id(c)}catch(d){throw a.a.classList.remove("glue-header-stepped-nav-enabled"),d;}}} Sd.prototype.destroy=function(){var a=this;this.a.removeEventListener("click",this.V);this.a.removeEventListener("keydown",this.da);this.h.removeEventListener("transitionend",this.G);this.s.removeEventListener("transitionend",this.G);window.removeEventListener("scroll",this.Ea);window.cancelAnimationFrame(this.nb);this.K.m(function(b){"sm"===b&&U(a)});this.K.destroy();this.c.drawer&&(this.a.removeEventListener("glueHeaderDrawerOpen",this.Da),this.a.removeEventListener("glueHeaderDrawerClose",this.Ca), this.b.destroy());this.g&&this.g.destroy();this.j&&this.j.destroy();this.Ga&&this.Ga.destroy()};function Ud(a){var b={};if(a=a.a.getAttribute("glue-header-options")){var c=$d(a);b=Object.keys(Zc).filter(function(e){return typeof c[e]!==typeof Zc[e]});if(b.length){var d=[];b.forEach(function(e){var g="Incorrect data type: "+e+". "+("Found: "+typeof Zc[e])+" "+("Required: "+typeof c[e]);c[e]&&d.push(g)});d.forEach(function(e){throw Error(e);})}b=c}return b} function $d(a){var b=JSON.parse(a);Object.keys(b).forEach(function(c){b.hasOwnProperty(c)&&("true"===b[c]?b[c]=!0:"false"===b[c]&&(b[c]=!1))});return b}function Yd(a){a.R||(a.nb=window.requestAnimationFrame(function(){ae(a);a.R=!1}),a.R=!0)} function ae(a){var b=a.f.classList.contains("glue-header-is-wholly-scrolled"),c=a.P>=window.scrollY?"up":"down",d=50>=document.body.clientHeight-window.scrollY-window.innerHeight;a.l||"down"!==c||b||a.i?a.l||"up"!==c||!b||a.i||d?a.l&&!a.i&&b&&be(a):0!==a.P-window.scrollY&&be(a):window.scrollY>a.f.clientHeight&&ce(a);a.l=0>=window.scrollY;a.P=window.scrollY;de(a);a.ea=!1;a.l&&U(a);a.i&&500>=window.pageYOffset&&window.requestAnimationFrame(function(){Yd(a)})} function ee(a){"block"===window.getComputedStyle(a.s).display?(a.h.style.top="0",a.h.style.position="fixed"):a.h.style.position="static"}function U(a,b){b=void 0===b?"static":b;if(a.c.hideOnScroll){var c=a.f;"block"===window.getComputedStyle(a.s).display&&ee(a);"static"===b?c.style.top="-"+c.clientHeight+"px":setTimeout(function(){c.style.top=(0).toString()},300);c.style.position=b}} function Vd(a,b){var c=(void 0===b?0:b)?"glue-header__bar--mobile":"glue-header__bar--desktop";a=[].concat(q(a.a.querySelectorAll(".glue-header__bar"))).filter(function(d){return d.classList.contains(c)});if(!a)throw Error(Yc.MISSING_HEADER_BAR_ELEMENT);return a[0]}function Xd(a){Object.keys(ad).forEach(function(b){a.a.setAttribute(b,""+ad[b])})} function Zd(a){a.K=new tb({fa:["md","sm"],enter:function(){a.f=Wd(a);U(a);a.b&&a.b.ma()},leave:function(){a.c.drawer&&id(a.b)&&a.b.close();a.b&&a.b.a.removeAttribute("aria-hidden");a.f=Wd(a);U(a);a.g&&Ad(a.g)}})}function ce(a){a.c.hideOnScroll&&(a.i=!0,a.v=!0,a.f.classList.add("glue-header-is-wholly-scrolled","glue-is-animating"),U(a,"fixed"),a.g&&a.g.close(),a.j&&a.j.close())} function be(a){a.c.hideOnScroll&&(a.i=!0,a.v=!0,a.f.classList.add("glue-is-animating"),a.f.classList.remove("glue-header-is-wholly-scrolled"),a.g&&(a=a.g,a.b.g=!0,Ad(a)))}function de(a){a.l?a.f.classList.remove("glue-header--rewind-box-shadow"):a.l||a.i||a.ea||window.scrollY>a.f.clientHeight&&a.f.classList.add("glue-header--rewind-box-shadow")}function Wd(a){return"block"===window.getComputedStyle(a.s).display?a.s:a.h};function V(a,b){var c=this;this.a=a;this.g=document.activeElement;this.c=b;this.f=!1;this.b=[];this.j=function(d){d.stopPropagation();c.close()};this.l=function(d){d.stopPropagation();"Escape"!==d.key&&27!==d.keyCode||c.close()};this.h=function(d){c.f||(c.a.contains(d.target)?c.g=d.target:(fe(c,c.a),c.g===document.activeElement&&ge(c,c.a),c.g=document.activeElement))};this.s=function(){c.a.classList.remove("glue-modal-closing");c.c&&c.c.focus();c.a.removeEventListener("transitionend",c.s)};he(this)} function he(a){var b=a.a.querySelector(".glue-modal__close-btn");if(!b)throw Error("The close button is missing from the modal.");a.i=b;if(void 0==a.c)throw Error("The focusAfterClosed argument is missing from the constructor call.");}function fe(a,b){for(var c=0;c=c&&e<=d,k=e>=a.h&&e<=a.i;a.a.Ma(e,"focus",a.l);a.a.Ma(e,"blur",a.j);g?(a.a.Ka(e,"glue-is-shown"),a.a.Ic(e),a.a.kc(e),a.a.ab(e,"focus",a.l),a.a.ab(e,"blur",a.j)):(a.a.la(e,"glue-is-shown"),a.a.ma(e),a.a.lc(e),k?a.a.Ka(e,"glue-pagination__page--previously-shown"):a.a.la(e,"glue-pagination__page--previously-shown"))}a.h=c;a.i=d;b=a.a.ua();c=a.a.ta();if(b)for(d=0;dthis.a[c].length)b++;else for(var d in a)if(d===c)for(var e=0;e=a.a.getBoundingClientRect().top?b.classList.add(Xe):b.classList.remove(Xe);a.c.forEach(function(c){var d=c.getBoundingClientRect().top;0