!function(){"use strict";var t={inherits:function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}};t.createClass=function(){function t(t,e){for(var n=0;n>0),m="addEventListener",b="attached",y="Callback",g="detached",C="extends",k="attributeChanged"+y,E=b+y,_="connected"+y,A="disconnected"+y,x="created"+y,T=g+y,w="ADDITION",L="REMOVAL",I="DOMAttrModified",M="DOMContentLoaded",S="DOMSubtreeModified",D="<",N="=",O=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,P=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],H=[],R=[],z="",F=n.documentElement,V=H.indexOf||function(t){for(var e=this.length;e--&&this[e]!==t;);return e},W=i.prototype,j=W.hasOwnProperty,B=W.isPrototypeOf,q=i.defineProperty,U=[],K=i.getOwnPropertyDescriptor,Y=i.getOwnPropertyNames,X=i.getPrototypeOf,G=i.setPrototypeOf,Z=!!i.__proto__,J="__dreCEv1",$=t.customElements,Q=!/^force/.test(e.type)&&!!($&&$.define&&$.get&&$.whenDefined),tt=i.create||i,et=t.Map||function(){var t,e=[],n=[];return{get:function(t){return n[V.call(e,t)]},set:function(i,a){(t=V.call(e,i))<0?n[e.push(i)-1]=a:n[t]=a}}},nt=t.Promise||function(t){var e=[],n=!1,i={catch:function(){return i},then:function(t){return e.push(t),n&&setTimeout(a,1),i}};function a(t){for(n=!0;e.length;)e.shift()(t)}return t(a),i},it=!1,at=tt(null),rt=tt(null),st=new et,ot=function(t){return t.toLowerCase()},lt=i.create||function t(e){return e?(t.prototype=e,new t):this},ut=G||(Z?function(t,e){return t.__proto__=e,t}:Y&&K?function(){function t(t,e){for(var n,i=Y(e),a=0,r=i.length;a1)&&Zt(this)}}}),pt(s,k,{value:function(t){-1
",new ct(function(t,e){if(t[0]&&"childList"==t[0].type&&!t[0].removedNodes[0].childNodes.length){var n=(p=K(dt,"innerHTML"))&&p.set;n&&q(dt,"innerHTML",{set:function(t){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,t)}})}e.disconnect(),p=null}).observe(p,{childList:!0,subtree:!0}),p.innerHTML=""),Lt||(G||Z?(d=function(t,e){B.call(e,t)||Bt(t,e)},h=Bt):h=d=function(t,e){t[f]||(t[f]=i(!0),Bt(t,e))},ht?(St=!1,function(){var t=K(dt,m),e=t.value,n=function(t){var e=new CustomEvent(I,{bubbles:!0});e.attrName=t,e.prevValue=gt.call(this,t),e.newValue=null,e[L]=e.attrChange=2,kt.call(this,t),yt.call(this,e)},i=function(t,e){var n=Ct.call(this,t),i=n&>.call(this,t),a=new CustomEvent(I,{bubbles:!0});Et.call(this,t,e),a.attrName=t,a.prevValue=n?i:null,a.newValue=e,n?a.MODIFICATION=a.attrChange=1:a[w]=a.attrChange=0,yt.call(this,a)},a=function(t){var e,n=t.currentTarget,i=n[f],a=t.propertyName;i.hasOwnProperty(a)&&(i=i[a],(e=new CustomEvent(I,{bubbles:!0})).attrName=i.name,e.prevValue=i.value||null,e.newValue=i.value=n[a]||null,null==e.prevValue?e[w]=e.attrChange=0:e.MODIFICATION=e.attrChange=1,yt.call(n,e))};t.value=function(t,r,s){t===I&&this[k]&&this.setAttribute!==i&&(this[f]={className:{name:"class",value:this.className}},this.setAttribute=i,this.removeAttribute=n,e.call(this,"propertychange",a)),e.call(this,t,r,s)},q(dt,m,t)}()):ct||(F[m](I,Tt),F.setAttribute(f,1),F.removeAttribute(f),St&&(s=function(t){var e,n,i;if(this===t.target){for(i in e=this[f],this[f]=n=l(this),n){if(!(i in e))return o(0,this,i,e[i],n[i],w);if(n[i]!==e[i])return o(1,this,i,e[i],n[i],"MODIFICATION")}for(i in e)if(!(i in n))return o(2,this,i,e[i],n[i],L)}},o=function(t,e,n,i,a,r){var s={attrChange:t,currentTarget:e,attrName:n,prevValue:i,newValue:a};s[r]=t,Ft(s)},l=function(t){for(var e,n,i={},a=t.attributes,r=0,s=a.length;r=0}).forEach(function(e){e.setAttribute(t,e.getAttribute(t).replace("url(#","url("+n+"#"))})}),[].forEach.call(a,function(t){var e=/url\(#([^)]+)\)/g;t.textContent&&e.test(t.textContent)&&(t.textContent="/**/")}));var n,i,a;var r=D.loadListeners;if(r&&r.length){for(var s=0;sn-50?e+22+24+4+"px":n+"px"},G={init:function(t){q.document=t.document},getNextId:function(){return"deco-pill-input-"+ ++K},getTextWidth:Y,isInCompletedState:function(t){return t.isComplete},isReadonly:function(t){return t.hasAttribute("readonly")},isValueValid:function(t){return""!==t.trim()},focus:function(t){var e=t.container,n=t.input,i=t.fullWidth;this.isInCompletedState(e)||(n.style.width=i+"px",e.setAttribute("data-artdeco-focus","true"))},blur:function(t){var e=t.container,n=t.input,i=t.inputWidth,a=t.id;this.isValueValid(n.value)?this.fireCompleteEvent(e,a):this.isInCompletedState(e)||(e.style.minWidth=i+24+"px",n.style.width=i+"px",e.removeAttribute("data-artdeco-focus"),e.removeAttribute("data-artdeco-has-content"),n.value="",n.dispatchEvent(new Event("input")))},receivedInput:function(t){var e=t.container,n=t.input,i=t.fullWidth,a=n.value,r=Y(a);X(n,r,i),""!==a?e.setAttribute("data-artdeco-has-content","true"):e.removeAttribute("data-artdeco-has-content")},fireCompleteEvent:function(t,e){t.dispatchEvent(new a("complete",{detail:{id:e},bubbles:!0,cancelable:!0}))},keyup:function(t,e){var n=t.container,i=t.id,a=t.input;switch(e){case 27:a.value="",a.dispatchEvent(new Event("input"));break;case 13:a.value&&!this.isInCompletedState(n)?this.fireCompleteEvent(n,i):this.empty(t)}},inputClick:function(t,e){var n=t.container,i=t.input;this.isInCompletedState(n)&&!this.isReadonly(n)&&(e.stopPropagation(),this.edit({container:n,input:i}))},iconClick:function(t,e){this.isInCompletedState(t.container)&&(e.preventDefault(),e.stopPropagation(),this.empty(t))},edit:function(t){var e=t.container,n=t.input;e.setAttribute("data-artdeco-has-content","true"),e.isComplete=!1,e.removeAttribute("complete"),e.setAttribute("data-artdeco-focus","true"),n.removeAttribute("readonly"),n.focus()},empty:function(t){var e=t.container,n=t.input,i=t.inputWidth,r=t.fullWidth;e.dispatchEvent(new a("dismiss",{bubbles:!0,cancelable:!0})),e.isComplete=!1,e.removeAttribute("complete"),document.activeElement===n?(e.setAttribute("data-artdeco-focus","true"),n.style.width=r+"px"):(n.style.width=i+"px",e.style.minWidth=i+24+"px"),n.value="",n.removeAttribute("readonly")},complete:function(t){var e=t.container,n=t.input;n.setAttribute("readonly","true"),e.removeAttribute("data-artdeco-focus"),e.isComplete=!0,e.removeAttribute("data-artdeco-has-content"),e.setAttribute("complete","true");var i=Y(n.value);X(n,i,0),e.style.minWidth=""},install:function(){},iconWidth:22,pillPadding:24,pillBorder:4,pillFont:U},Z={},J=23,$={init:function(t){Z.document=t.document},getNextId:function(){return"deco-pill-toggle-"+ ++J},focusIn:function(t){t.setAttribute("data-artdeco-focus","true")},focusOut:function(t){t.removeAttribute("data-artdeco-focus")},change:function(t,e){e.checked?this.check(t):this.uncheck(t)},check:function(t){t.setAttribute("checked","true")},uncheck:function(t){t.removeAttribute("checked")},install:function(){}},Q={locales:{en_US:{separator:"/",dayIndex:1,monthIndex:0,yearIndex:2,startWeekday:0},ar_AE:{separator:"/",dayIndex:2,monthIndex:1,yearIndex:0,startWeekday:0},in_ID:{separator:"/",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:0},zh_CN:{separator:"/",dayIndex:2,monthIndex:1,yearIndex:0,startWeekday:0},zh_TW:{separator:"/",dayIndex:2,monthIndex:1,yearIndex:0,startWeekday:0},cs_CZ:{separator:". ",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1},da_DK:{separator:".",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1},nl_NL:{separator:"-",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1},fr_FR:{separator:"/",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1},de_DE:{separator:".",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1},it_IT:{separator:"/",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1},ja_JP:{separator:"/",dayIndex:2,monthIndex:1,yearIndex:0,startWeekday:0},ko_KR:{separator:". ",dayIndex:2,monthIndex:1,yearIndex:0,startWeekday:0},ms_MY:{separator:"/",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:0},no_NO:{separator:".",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1},pl_PL:{separator:".",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1},pt_BR:{separator:"/",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1},ro_RO:{separator:".",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1},ru_RU:{separator:".",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1},es_ES:{separator:"/",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1},sv_SE:{separator:"-",dayIndex:2,monthIndex:1,yearIndex:0,startWeekday:1},tl_PH:{separator:"/",dayIndex:1,monthIndex:0,yearIndex:2,startWeekday:0},th_TH:{separator:"/",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:0},tr_TR:{separator:".",dayIndex:0,monthIndex:1,yearIndex:2,startWeekday:1}},_constructRegex:function(t){var e=this.getLocaleInfo(t),n=e.separator,i=0===e.yearIndex;return new RegExp("(\\d{"+(i?"4":"1,2")+"})"+n+"(\\d{1,2})"+n+"(\\d{"+(i?"1,2":"4")+"})(?:"+n+")?")},parse:function(t,e){var n=this._constructRegex(e),i=this.getLocaleInfo(e),a=i.dayIndex,r=i.monthIndex,s=i.yearIndex,o=n.exec(t);if(o)return o.shift(),new Date(o[s],o[r]-1,o[a]);var l=t.split("").filter(function(t){return t.charCodeAt(0)<200}).join(""),u=new Date(l);return"invalid date"!==u.toString().toLowerCase()?new Date(u.getFullYear(),u.getMonth(),u.getDate()):null},getLocaleInfo:function(t){return t&&this.locales[t]||this.locales.en_US}},tt=[1,2,3,4,5,6,7],et=function(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.getTime())},nt=function(t){var e=arguments.length<=1||void 0===arguments[1]?1:arguments[1];return et(t)?new Date(t.getFullYear(),t.getMonth()+e,1):null},it=function(t,e){return!!(t&&e&&et(t)&&et(e))&&(t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate())},at={},rt={init:function(t){at.document=t.document,this.locale="en_US",this.firstDayOfWeek=0},install:function(){},isDate:et,setLocale:function(t){this.locale=t;var e=Q.getLocaleInfo(this.locale).startWeekday;this.firstDayOfWeek=e},getMonthByOffset:nt,getPreviousMonth:function(t){return nt(t,-1)},getNextMonth:function(t){return nt(t,1)},isSameDate:it,parseDateStr:function(t){return Q.parse(t,this.locale)},validateDateRange:function(t,e){return t<=e},getMonthDiff:function(t,e){var n=12*(e.getFullYear()-t.getFullYear());return n=n-t.getMonth()+1,n+=e.getMonth()},getCalendarModel:function(t,e){var n=function(t){return et(t)?32-new Date(t.getFullYear(),t.getMonth(),32).getDate():null}(t),i=function(t){return et(t)?new Date(t.getFullYear(),t.getMonth(),1).getDay():null}(t),a=i-this.firstDayOfWeek<0?7+i-this.firstDayOfWeek:i-this.firstDayOfWeek,r=Math.ceil((n+a)/7),s=e;Array.isArray(e)||(s=[e]);for(var o=[0,1,2,3,4,5,6],l=this.firstDayOfWeek;l>0;)o.push(o.shift()),l--;return{weeks:Array.apply(null,{length:r}).map(function(e,i){var r={previousMonthDays:[],nextMonthDays:[]};return r.days=tt.map(function(e){var o=7*i+e-a,l=function(t){return{date:t,dayOfMonth:t.getDate(),weekday:t.getDay()}}(new Date(t.getFullYear(),t.getMonth(),o));if(s[0]&&it(s[0],l.date)?(l.isSelectedStart=!0,l.isSelected=!0):s[1]&&it(s[1],l.date)&&(l.isSelectedEnd=!0,l.isSelected=!0),o<=0)r.previousMonthDays.push(l);else{if(!(o>n))return l;r.nextMonthDays.push(l)}}).filter(function(t){return t}),r}),dayNames:o}}},st={},ot="ltr";function lt(){if(!document)return ot;if(document.dir)return document.dir;var t=document.getElementsByTagName("html")[0].getAttribute("dir");return t||((t=document.getElementsByTagName("body")[0].getAttribute("dir"))||ot)}function ut(t){return t&&t.tagName&&"INPUT"===t.tagName.toUpperCase()&&"range"===t.type}function ct(t){var e={min:NaN,max:NaN,value:NaN,step:NaN,range:NaN,progress:NaN,valuetext:null,minvaluetext:null,maxvaluetext:null};return ut(t)?(e.max=parseFloat(t.max),e.min=parseFloat(t.min),e.value=parseFloat(t.value),e.step=parseFloat(t.step),isNaN(e.max)||isNaN(e.min)||isNaN(e.value)||isNaN(e.step)?e:(e.range=e.max-e.min,e.valuetext=t.valuetext||e.value,e.minvaluetext=t.minvaluetext||e.min,e.maxvaluetext=t.maxvaluetext||e.max,e.progress=(e.value-e.min)/e.range*100,e.steps=e.range/e.step,e)):e}var dt={init:function(t){st.docEl=t.document.documentElement,st.elements=document.getElementsByTagName("input"),this.onInsert=this.onInsert.bind(this),this.onInput=this.onInput.bind(this),st.isIE11=!!t.MSInputMethodContext&&!!document.documentMode,st.isIE11&&(st.docEl.addEventListener("mousemove",this.IE11InputMouseMove.bind(this)),st.docEl.addEventListener("mousedown",this.IE11InputMouseDown.bind(this)),st.docEl.addEventListener("mouseup",this.IE11InputMouseUp.bind(this)))},processAll:function(){for(var t=st.elements.length,e=0;e=s.value)return t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),e.value=s.value-r.step,o;var l=(s.progress-r.progress)/2+r.progress,u=(l-50)/50*20/2+"px",c="translateX(calc(-"+l+"% + "+u+"))",d="translateX(calc("+l+"% - "+u+"))",h="calc("+l+"% - "+u+")",p="calc("+l+"% -+"+u+")";return"rtl"===lt()?(a.style.webkitTransform=d,a.style.msTransform=d,a.style.transform=d,a.parentNode.style.right=p):(a.style.webkitTransform=c,a.style.msTransform=c,a.style.transform=c,a.parentNode.style.left=h),o}}},install:function(){this.processAll(),st.docEl.addEventListener("animationstart",this.onInsert,!1),st.docEl.addEventListener("MSAnimationStart",this.onInsert,!1),st.docEl.addEventListener("webkitAnimationStart",this.onInsert,!1),st.docEl.addEventListener("input",this.onInput)},process:function(t){if(ut(t)){var e=ct(t);"rtl"===lt()&&(e.progress=100-e.progress),e.steps>10?(t.style.backgroundSize="100%, 300% 100%, 200%",t.style.backgroundPosition="top left, 0px -100%, calc("+(100-e.progress)+"% - "+(e.progress/100*20-10)+"px)"):(t.style.backgroundSize="100%, calc("+100/e.steps+"% - "+20/e.steps+"px) 100%, 200%",t.style.backgroundPosition="top left, 10px center, calc("+(100-e.progress)+"% - "+(e.progress/100*20-10)+"px)"),t.setAttribute("value",e.value)}}},ht="function"==typeof HTMLElement?HTMLElement:function(){};"object"==typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&(ht.prototype=HTMLElement.prototype);var pt=n(function(t){t.exports={timings:{linear:[{x:.25,y:.25},{x:.75,y:.75}],easeIn:[{x:.4,y:0},{x:1,y:1}],easeOut:[{x:0,y:0},{x:.2,y:1}],easeInOut:[{x:.4,y:0},{x:.2,y:1}]},durations:{slow:834,casual:667,important:500,focused:334,quick:167,fast:83},delays:{short:25,medium:50,long:1e3}}}),vt=pt&&"object"==typeof pt&&"default"in pt?pt.default:pt,ft=(pt.timings,pt.durations,pt.delays,vt.timings),mt=vt.durations,bt={x:0,y:0},yt={x:1,y:1},gt=Math.floor(1e3/60),Ct=Math.ceil(mt.slow/gt),kt=void 0;var Et=function(){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i=n.easing,a=void 0===i?"easeIn":i,r=n.speed,s=void 0===r?"slow":r,o=n.startVal,l=void 0===o?0:o,u=n.endVal,c=void 0===u?0:u;if(t.classCallCheck(this,e),e.init(window),!kt[a])throw new Error('ArtDeco easing method "'+a+'" does not exist.');this._easingData=kt[a],this.animationSpeed=s,this.startVal=l,this.endVal=c}return t.createClass(e,[{key:"startVal",get:function(){return this._startVal},set:function(t){this._startVal=t,this._delta=this._endVal-this._startVal}},{key:"endVal",get:function(){return this._endVal},set:function(t){this._endVal=t,this._delta=this._endVal-this._startVal}},{key:"easingData",get:function(){return this._easingData}},{key:"animationSpeed",get:function(){return this._animationSpeed},set:function(t){if(mt[t])this._animationSpeed=mt[t];else{if(!function(t){return t-0==t}(t))throw new Error('Unable to set animation speed "'+t+'". Value must be a valid ArtDeco speed or a number.');this._animationSpeed=t}}},{key:"isAnimating",get:function(){var t=!1;return(this.startTime||this._animationSpeed)&&(t=(Date.now()-this.startTime)/this._animationSpeed<1),t}}]),t.createClass(e,[{key:"begin",value:function(){this.startTime=Date.now(),this.lastIndex=0}},{key:"next",value:function(){var t=(Date.now()-this.startTime)/this._animationSpeed;return this.valueAtTime(t,!0)}},{key:"valueAtTime",value:function(t){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1]?this.lastIndex:0,n=this._findIndexForValue(t,e,0);return this._startVal+this._easingData[n][1]*this._delta}},{key:"timeAtValue",value:function(t){t/=this._delta;var e=this._findIndexForValue(t,0,1);return this._easingData[e][0]}},{key:"_findIndexForValue",value:function(t,e,n){if(t<=0)return 0;if(t>=1)return this._easingData.length-1;for(var i=e;it);i++);return i-1}},{key:"_calcDelta",value:function(){this._delta=this._endVal-this._startVal}}],[{key:"init",value:function(t){(kt=t._artdecoBakedCurves)||(kt={},Object.keys(ft).forEach(function(t){kt[t]=e.bakeCurves(t)}),t._artdecoBakedCurves=kt)}},{key:"bakeCurves",value:function(t){for(var n=[[0,0]],i=0;i0?t=St:(e.scrollLeft=1,0===e.scrollLeft&&(t=Nt)),Mt.rtlScroll=t,document.documentElement.removeChild(e)}return t}function Pt(t){var e=t;for(t._isRtl=!1;e instanceof HTMLElement;){if("rtl"===(e.getAttribute("dir")||"").toLowerCase()){t._isRtl=!0;break}e=e.parentNode||null}return t._isRtl}function Ht(t){t.hasOwnProperty("_isRtl")||Pt(t);var e=t.scrollLeft;if(t._isRtl){var n=Ot(),i=t.clientWidth;switch(n){case Dt:e=t.scrollWidth-At(t)-e;break;case Nt:e=t.scrollWidth-(i-e)}}return e}function Rt(t,e){if(t.hasOwnProperty("_isRtl")||Pt(t),t._isRtl){var n=Ot();if(n===Nt||n===Dt){var i=t.scrollWidth-At(t)-e,a=n===Nt?-1:1;t.scrollLeft=i*a}else t.scrollLeft=e}else t.scrollLeft=e}var zt=Object.freeze({isRtl:Pt,getScrollLeft:Ht,setScrollLeft:Rt}),Ft=gt;var Vt=function(){function e(n){t.classCallCheck(this,e),this._contentEl=n,this._transportClick=this.handleTransportClick.bind(this),this._handleResize=this.handleResize.bind(this),this._updateScroll=this.updateScroll.bind(this),this._adjustForResize=this.adjustForResize.bind(this),this._handleScroll=this.handleScroll.bind(this),this._updateTransportControls=this.updateTransportControls.bind(this),this._scrollTimer=null,this._onTransport=null,this._scrollMotion=new Et({easing:"easeInOut",speed:"focused"}),this.createDOMStructure()}return t.createClass(e,[{key:"element",get:function(){return this._el}},{key:"previousControl",get:function(){return this._previousButton}},{key:"nextControl",get:function(){return this._nextButton}},{key:"onTransport",set:function(t){if("function"!=typeof t)throw new Error("[Scrolling Container] onTransport callback must be a function");this._onTransport=t}},{key:"maxScrollLeft",get:function(){return this._el.scrollWidth-this._el.clientWidth}}]),t.createClass(e,[{key:"createDOMStructure",value:function(){this._el=document.createElement("div"),this._el.className="artdeco-scrolling-container",this._previousButton=this.createTransportButton("previous"),this._nextButton=this.createTransportButton("next")}},{key:"createTransportButton",value:function(t){var e=new Lt(t);return e.onClick=this._transportClick,e}},{key:"handleTransportClick",value:function(t){var e=void 0;this._scrollMotion.isAnimating?e=this._scrollMotion.endVal:(e=Ht(this._el),this._isRtl?e+=At(this._el)-this._previousButton.width:e+=this._previousButton.width);var n=this.onScroll(t.direction,Math.ceil(e),this._isRtl);this.scrollTo(n)}},{key:"handleResize",value:function(){clearTimeout(this._resizeDebounce),this._resizeDebounce=setTimeout(this._adjustForResize,Ft)}},{key:"handleScroll",value:function(t){this._scrollTimer||(clearTimeout(this._scrollDebounce),this._scrollDebounce=setTimeout(this._updateTransportControls,Ft))}},{key:"scrollTo",value:function(t){if(t instanceof HTMLElement){var e=this._scrollMotion,n=t.offsetLeft-this._previousButton.width,i=this.maxScrollLeft;this._isRtl&&(n=i-(this._el.scrollWidth-(At(t)+t.offsetLeft))+this._previousButton.width),n=n>i?i:n,this.stopScroll(),e.startVal=Ht(this._el),e.endVal=n,e.begin(),this._scrollTimer=setInterval(this._updateScroll,gt),this.updateTransportControls()}}},{key:"updateScroll",value:function(){var t=this._scrollMotion.next();Rt(this._el,t),this._scrollMotion.isAnimating||(this.stopScroll(),this.updateTransportControls())}},{key:"stopScroll",value:function(){clearInterval(this._scrollTimer),this._scrollTimer=null}},{key:"insertContainer",value:function(t){t.insertBefore(this._el,this._contentEl),this._el.appendChild(this._previousButton.element),this._el.appendChild(this._nextButton.element),this._el.addEventListener("scroll",this._handleScroll),window.addEventListener("resize",this._handleResize),this._el.appendChild(this._contentEl),this._isRtl=Pt(this._el),this.handleResize()}},{key:"adjustForResize",value:function(){if(!this._initialized){var t=this._isRtl?this.maxScrollLeft:0;Rt(this._el,t),this._initialized=!0}var e=this._contentEl.clientHeight;this._previousButton.height=e,this._nextButton.height=e,this.updateTransportControls()}},{key:"updateTransportControls",value:function(){var t=this.maxScrollLeft,e=Ht(this._el);this._isRtl&&(e=Math.abs(e-t)),t?(e<=0?this._previousButton.hide():this._previousButton.show(),e>=t?this._nextButton.hide():this._nextButton.show()):(Rt(this._el,0),this._previousButton.hide(!0),this._nextButton.hide(!0))}},{key:"teardown",value:function(){this.stopScroll(),clearTimeout(this._scrollDebounce),clearTimeout(this._resizeDebounce),this._previousButton.teardown(),this._nextButton.teardown(),this._el.removeChild(this._previousButton.element),this._el.removeChild(this._nextButton.element),this._el.removeEventListener("scroll",this._handleScroll),window.removeEventListener("resize",this._handleResize),this._el&&this._el.parentNode&&this._el.parentNode.removeChild(this._el)}}]),e}(),Wt="_bootEventListeners";function jt(){var t=It();return t[Wt]||(t[Wt]={}),t[Wt]}var Bt={on:function(t,e){var n=jt();!0===n[t]?e():(n[t]||(n[t]=[]),n[t].push(e))},trigger:function(t){var e=jt();Array.isArray(e[t])&&e[t].forEach(function(t){return t()}),e[t]=!0},reset:function(){It()[Wt]={}}};function qt(t,e,n){var i=It();if(i.registeredElements||(i.registeredElements={}),!i.registeredElements[t]){i.registeredElements[t]=!0;try{customElements.define&&customElements.define(t,n,e)}catch(t){}}}var Ut="undefined"!=typeof window?window:null,Kt=Ut?Ut.document:null;Ut&&Kt&&([h,rt,E,M,P,B,G,$,dt,Et].forEach(function(t){return t.init(Ut)}),Bt.trigger("core-ready"));var Yt={contextClasses:h,datepicker:rt,floatingLabel:E,focusOutline:M,icons:P,liIcon:B,pillInput:G,pillToggle:$,rangeSlider:dt,Motion:Et,colors:z,ComponentCore:ht,triggerEvent:S,delegateEvent:_t,registerCustomElement:qt,registerArtDecoElement:function(t,e,n){var i=It();if(i.registeredElements||(i.registeredElements={}),!i.registeredElements[e]){i.registeredElements[e]=!0;try{t.registerElement&&t.registerElement(e,n)}catch(t){}}},ScrollingContainer:Vt,BoxModelHelpers:xt,RtlHelpers:zt,artdecoBoot:Bt,artdecoGlobal:It};var Xt="__ARTDECO_INVALID_DATA__",Gt={xml:function(t){var e=null;if(t)try{(e=t.responseXML?t.responseXML.firstChild:(new DOMParser).parseFromString(t.responseText,"application/xml").firstChild).getElementsByTagName("parsererror").length&&(e=Xt)}catch(t){e=Xt}return e},json:function(t){var e=null;if(t)try{e=JSON.parse(t.responseText)}catch(t){e=Xt}return e},raw:function(t){return t?t.responseText:null}};function Zt(){}var Jt=function(t){var e=t.url||null;e&&function(){e=Jt.urlResolver(e);var n="undefined"!=typeof XDomainRequest,i=t.type||"GET",a=t.data||null,r="function"==typeof t.success?t.success:Zt,s="function"==typeof t.error?t.error:Zt,o=t.dataType||"raw",l=Gt.hasOwnProperty(o)?Gt[o]:Gt.raw,u=n&&!~e.indexOf(window.location.hostname)&&!!e.match(/^([a-z]+:)|^(\/\/)|^([^/]+\.)/),c=u?"onload":"onreadystatechange",d=u?new XDomainRequest:new XMLHttpRequest;d[c]=function(){var t=null;(u||4===this.readyState)&&(u||200===this.status?(t=l(this))===Xt?s(this):r(t,this):s(this))},u&&(d.onerror=s,d.ontimeout=s),d.addEventListener=Zt,d.open(i,e,!0),"xml"===o&&d.overrideMimeType&&(d.responseType="document",d.overrideMimeType("text/xml")),d.send(a)}()};Jt.urlResolver=function(t){return t},Jt.urlResolver=function(t){t&&t.indexOf("artdeco/static");var e="",n=document.getElementById(t);return n?e=n.getAttribute("content"):window.play&&window.play.assetUrl&&(e=window.play.assetUrl(t)),e||(console.warn('[artdeco] Was unable to resolve asset URL "'+t+'"'),e=""),e};var $t="large-icon",Qt=["type","size","color"];function te(t){var e=t.getAttribute("type");e&&0===e.indexOf("large-")&&r(t,[$t])}var ee=function(e){function n(){t.classCallCheck(this,n);for(var e=arguments.length,i=Array(e),a=0;a-1&&this.update(),"a11y-text"!==t&&"a11yText"!==t&&"a11ytext"!==t||this._syncA11yCaption(),"type"!==t&&"class"!==t||te(this)}},{key:"update",value:function(){var t=this.getAttribute("type"),e=this.getAttribute("size")||"large",n=!1;t&&(this.hasAttribute("color")&&(n="false"!==this.getAttribute("color")),B.setIcon(this,t,e,n))}},{key:"_installA11yCaption",value:function(){var t=this.parentNode,e=this._a11yCaption;t&&e&&!e.parentNode&&t.insertBefore(e,this)}},{key:"_removeA11yCaption",value:function(){var t=this._a11yCaption;t&&t.parentNode&&t.parentNode.removeChild(t),this._a11yCaption=null}},{key:"_syncA11yCaption",value:function(){var t=this._a11yCaption,e=this.getAttribute("a11y-text")||this.getAttribute("a11yText")||this.getAttribute("a11ytext");e?t?t.textContent=e:(this._a11yCaption=B.createA11yCaption(e),this._installA11yCaption()):this._removeA11yCaption()}}]),n}(ht);var ne=function(e){function n(){t.classCallCheck(this,n),t.get(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}return t.inherits(n,e),t.createClass(n,[{key:"connectedCallback",value:function(){this.render(),this.dispatchEvent(new a("rendered",{bubbles:!0,cancelable:!0})),this.cacheDOMElements(),this._isInput()&&(this.setPillWidth(this.getAttribute("label")),this.apiValues={container:this,input:this.input,inputWidth:this.inputWidth,fullWidth:this.fullWidth,id:this.inputId},"true"===this.getAttribute("complete")&&this.getAttribute("value")&&this.complete()),this.addAllEventListeners()}},{key:"addAllEventListeners",value:function(){var t,e=this;this._isInput()?(t=e.apiValues,e.addEventListener("focus",function(){G.focus(t)},!0),e.addEventListener("blur",function(){G.blur(t)},!0),e.addEventListener("input",function(t){return e.handleInput(t)}),e.addEventListener("keydown",function(t){return e.handleKeydown(t)}),e.addEventListener("keyup",function(e){return G.keyup(t,e.which)}),e.input.addEventListener("click",function(e){return G.inputClick(t,e)}),e.icons.addEventListener("click",function(e){return G.iconClick(t,e)}),document.body.addEventListener("complete",function(t){e.inputId===t.detail.id&&e.complete()})):"toggle"===this.getAttribute("type")&&(this.input.addEventListener("focus",function(){$.focusIn(e)}),this.input.addEventListener("blur",function(){$.focusOut(e)}),this.addEventListener("change",function(){return $.change(e,e.input)}))}},{key:"attributeChangedCallback",value:function(t,e,n){if(e&&"label"===t){var i=this.labelText;i.removeChild(i.firstChild),i.appendChild(document.createTextNode(n)),this.setPillWidth(n)}else"value"===t&&this._isInput()&&this.handleValueChange(n)}},{key:"setPillWidth",value:function(t){var e=this.inputWidth=G.getTextWidth(t)+G.iconWidth;this.fullWidth=e+G.pillPadding,this.style.minWidth=this.fullWidth+"px",this.input.style.width=this.inputWidth+"px"}},{key:"handleValueChange",value:function(t){var e=this.apiValues;""===t?G.empty(e):(this.input!==document.activeElement&&(this.input.value=t),G.receivedInput(e))}},{key:"handleInput",value:function(t){this.setAttribute("value",t.target.value),G.receivedInput(this.apiValues)}},{key:"handleKeydown",value:function(t){13===t.which&&(t.preventDefault(),t.stopPropagation())}},{key:"complete",value:function(){G.complete(this.apiValues)}},{key:"render",value:function(){var t=document.createElement("label"),e=document.createElement("input"),n=document.createElement("span");n.setAttribute("class","artdeco-pill-icons"),["plus-icon","check-icon","cancel-icon"].map(function(t){var e=document.createElement("li-icon");e.setAttribute("type",t),e.setAttribute("size","small"),e.setAttribute("class","icon"),n.appendChild(e)});var i=document.createElement("span");i.setAttribute("class","artdeco-pill-label-text"),i.appendChild(document.createTextNode(this.getAttribute("label"))),t.appendChild(n),t.appendChild(i);var a=this.inputId=G.getNextId(),r=[["type",this._isInput()?"text":"checkbox"],["id",a],["value",this.getAttribute("value")||""]];"true"===this.getAttribute("checked")&&r.push(["checked","true"]),r.map(function(t){e.setAttribute(t[0],t[1])}),t.setAttribute("for",a),this.appendChild(t),this.appendChild(e)}},{key:"cacheDOMElements",value:function(){this.input=this.querySelector("input"),this.icons=this.querySelector(".artdeco-pill-icons"),this.labelText=this.querySelector("label .artdeco-pill-label-text")}},{key:"_isInput",value:function(){return"input"===this.getAttribute("type")}}],[{key:"observedAttributes",get:function(){return["label","value"]}}]),n}(ht);var ie=function(e){function n(){t.classCallCheck(this,n);for(var e=arguments.length,i=Array(e),a=0;a-1&&("type"===t&&this.nullPropCheck("type",this.getAttribute("type")),"size"===t&&this.nullPropCheck("size",this.getAttribute("size")),"color"===t?this.update():e&&this.update())}},{key:"update",value:function(){var t=this.getAttribute("type"),e=this.getAttribute("size"),n=this.getAttribute("color");t&&e&&(!function(t,e,n){var i=oe(e);B.setAttrs(t,{type:i.iconType,color:i.iconVariant,size:n||"14dp"})}(this.iconEl,t,e),this.setColorClassname(n))}},{key:"setColorClassname",value:function(t){var e=this,n=/^(logo-lockup-)/;if([].some.call(this.lockupTextEl.classList,function(t){n.test(t)&&e.lockupTextEl.classList.remove(t)}),[].some.call(this.iconEl.classList,function(t){n.test(t)&&e.iconEl.classList.remove(t)}),t){var i="logo-lockup-"+t;this.lockupTextEl.classList.add(i),this.iconEl.classList.add(i)}}},{key:"appendLogoEls",value:function(){this.textContent="",this.appendChild(this.iconEl),this.appendChild(this.lockupTextEl)}},{key:"createLockupTextEl",value:function(t){var e=document.createElement("span");return e.classList.add("logo-text"),e.textContent=t,e}},{key:"nullPropCheck",value:function(t,e){if(!e)return console.warn("An attribute of "+t+" is required for the linkedin-logo custom element"),!1}},{key:"validateProp",value:function(t,e){var n=re[t];n&&n.values&&-1===n.values.indexOf(e)&&console.warn(n.msg)}}],[{key:"observedAttributes",get:function(){return["type","size","color"]}}]),n}(ht);function oe(t){if(!t)return{iconType:"linkedin-bug",iconVariant:"brand"};var e=t.split("-"),n=e.length>1?e[0]:"",i=e.length>1?e[1]:e[0];return i="linkedin-"+i,se.prototype.validateProp("iconVariant",n),se.prototype.validateProp("iconType",i),{iconType:i,iconVariant:n}}var le=function(t,e){e.focus&&t.setAttribute("data-form-elem-focus","true")},ue=function(t,e){t.setAttribute("data-form-elem-focus",e.value.length?"true":"false")},ce=function(e){function n(){t.classCallCheck(this,n),t.get(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}return t.inherits(n,e),t.createClass(n,[{key:"connectedCallback",value:function(){this.render(),this.addAllEventListeners(),this.input.value&&le(this,this.input)}},{key:"addAllEventListeners",value:function(){var t=this;this.addEventListener("focus",function(){return le(t,t.input)},!0),this.addEventListener("blur",function(){return ue(t,t.input)},!0)}},{key:"render",value:function(){var t=document.createElement("label"),e=document.createElement("input");this.input=e;var n=this.getAttribute("label"),i=this.getAttribute("inputId"),a=this.getAttribute("value"),r=this.getAttribute("name")||i,s=this.getAttribute("type")||"text",o=this.getAttribute("required"),l=this.getAttribute("disabled");this.nullPropCheck("label",n),this.nullPropCheck("inputId",i),t.setAttribute("for",i),e.setAttribute("id",i),e.setAttribute("name",r),e.setAttribute("type",s),t.setAttribute("class","artdeco-label-text"),a&&e.setAttribute("value",a),l&&e.setAttribute("disabled","disabled"),o&&e.setAttribute("required","required"),t.appendChild(document.createTextNode(n)),this.appendChild(t),this.appendChild(e)}},{key:"nullPropCheck",value:function(t,e){e||console.warn(t+" is a required attribute for the artdeco-floatlabel custom element")}}]),n}(ht);var de=function(e){function n(){t.classCallCheck(this,n),t.get(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}return t.inherits(n,e),t.createClass(n,[{key:"connectedCallback",value:function(){this.render()}},{key:"render",value:function(){var t=this,e=this.getProperty("heading",!0),n=this.getProperty("subhead",!0),i=this.getProperty("url",!1),r=this.getProperty("cta",!1),s=this.getProperty("textCta",!1),o=r||s,l=document.createElement("strong"),u=document.createElement("p");if(l.classList.add("artdeco-heading"),u.classList.add("artdeco-subhead"),this.appendChild(l),this.appendChild(u),l.appendChild(document.createTextNode(e)),u.appendChild(document.createTextNode(n)),i&&o){var c=document.createElement("a");c.appendChild(document.createTextNode(o)),c.href=i,c.classList.add(s?"artdeco-textCta":"artdeco-cta"),this.appendChild(c)}else if(o){var d=document.createElement("button");d.appendChild(document.createTextNode(o)),d.classList.add(s?"artdeco-textCta":"artdeco-cta"),this.appendChild(d),this.addEventListener("click",function(){return t.dispatchEvent(new a("empty-state-cta-click",{bubbles:!0,cancelable:!0}))})}}},{key:"getProperty",value:function(t,e){var n=this.getAttribute(t);return!n&&e&&console.error(t+" is a required attribute for the artdeco-empty-state custom element"),n}}]),n}(ht);var he=function(e){function n(){t.classCallCheck(this,n),t.get(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}return t.inherits(n,e),t.createClass(n,[{key:"connectedCallback",value:function(){this.render(),this.addAllEventListeners()}},{key:"addAllEventListeners",value:function(){var t=this;this.button.addEventListener("click",function(){t.dispatchEvent(new a("dismiss",{bubbles:!0,cancelable:!0}))})}},{key:"render",value:function(){for(var t=this.label=document.createElement("label"),e=this.button=document.createElement("button"),n=document.createElement("li-icon");this.firstChild;)this.removeChild(this.firstChild);t.classList.add("artdeco-chip-text"),e.classList.add("artdeco-chip-button"),t.textContent=this.getAttribute("value")||"",n.setAttribute("type","cancel-icon"),n.setAttribute("size","small"),e.appendChild(n),this.appendChild(t),this.appendChild(e),this.isRendered=!0}},{key:"attributeChangedCallback",value:function(t,e,n){this.isRendered&&"value"===t&&(this.label.textContent=n)}}],[{key:"observedAttributes",get:function(){return["value"]}}]),n}(ht);var pe,ve={default:"blue7",pro:"teal7",positive:"green7",muted:"slate7",defaultInverse:"teal3",proInverse:"teal3",positiveInverse:"green3",mutedInverse:"slate3"},fe={small:56,default:96,large:128},me=function(e){var n=t.slicedToArray(e,3);return"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+(arguments.length<=1||void 0===arguments[1]?1:arguments[1])+")"},be=function(e){function n(){t.classCallCheck(this,n),t.get(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}return t.inherits(n,e),t.createClass(n,[{key:"connectedCallback",value:function(){this.max=parseInt(this.getAttribute("max"),10),this.value=parseInt(this.getAttribute("value"),10),this.benchmark=parseInt(this.getAttribute("benchmark"),10),this.size=this.getAttribute("size")||"default",this.type=this.getAttribute("type")||"linear",this.fillPercent=this.value/this.max,this.isCircular="circular"===this.type,this.isCircular?this.setCircleValues():this.setAttribute("type","linear"),this.render(),void 0!==this.benchmark&&this._setBenchmark()}},{key:"setCircleValues",value:function(){var t=this.size,e="large"===t?14:8,n="large"===t?6:4,i=(this.canvasSize=fe[this.size])/2,a=i-(e-n-("large"===t?1:0));this.circleValues={circleCenter:i,radius:a,benchmarkHeight:e,benchmarkWidth:2,lineWidth:n}}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"max":case"value":this[t]=n,this.fillPercent=this.value/this.max,this.isCircular&&this._drawCircularMeter(),this.setProgressValues(this.fill),this._setBenchmark();break;case"benchmark":this.benchmark=n,this._setBenchmark()}}},{key:"render",value:function(){this.isCircular?this.renderCircularMeter():this.renderLinearMeter()}},{key:"renderLinearMeter",value:function(){var t=document.createElement("div"),e=this.renderProgressEl();t.classList.add("artdeco-completeness-background"),t.appendChild(e),this.appendChild(t)}},{key:"renderCircularMeter",value:function(){var t=this.canvas=document.createElement("canvas"),e=this.renderProgressEl();t.setAttribute("class","artdeco-completeness-canvas"),t.setAttribute("height",this.canvasSize),t.setAttribute("width",this.canvasSize),this.appendChild(t),this.appendChild(e),this._drawCircularMeter()}},{key:"renderProgressEl",value:function(){var t=this.fill=document.createElement("progress");return this.setProgressValues(t),t}},{key:"setProgressValues",value:function(t){t.setAttribute("max",this.max),t.setAttribute("value",this.value),t.style.width=100*this.fillPercent+"%"}},{key:"_drawCircularMeter",value:function(){var t=this,e=this.canvas,n=e.getContext("2d"),i=e.width,a=e.height,r=this.getAttribute("inverse"),s=this.getAttribute("benchmark"),o=this.circleValues,l=o.circleCenter,u=o.radius,c=o.benchmarkHeight,d=o.benchmarkWidth,h=o.lineWidth,p=this.fillPercent,v=r?me(z.black,.25):me(z.slate1),f=r?me(z.black,.55):me(z.slate2),m=r?v:f,b=(this.getAttribute("color")||"default")+(r?"Inverse":""),y=me(z[ve[b]]),g=-.5*Math.PI,C=function(){if(n.strokeStyle=v,n.lineWidth=h,n.beginPath(),n.imageSmoothingEnabled=!1,n.arc(l,l,u,g,1.5*Math.PI,!1),n.stroke(),s){var e=g+2*Math.PI*s/t.max;n.strokeStyle=m,n.imageSmoothingEnabled=!1,n.beginPath(),n.arc(l,l,u,g,e,!1),n.stroke()}n.strokeStyle=t.value>0?y:f,n.lineWidth=d,n.beginPath(),n.imageSmoothingEnabled=!1,n.moveTo(l,0),n.lineTo(l,c),n.stroke()},k=new Et({easing:"easeInOut",speed:1e3,endVal:p});C(),k.begin(),window.requestAnimationFrame(function t(){var e=k.next();n.clearRect(0,0,i,a),C();var r=g+2*Math.PI*e;n.strokeStyle=y,n.lineWidth=h,n.imageSmoothingEnabled=!1,n.beginPath(),n.arc(l,l,u,g,r,!1),n.stroke(),e-1;if(!n&&this.tabs.some(function(t){return t.id===e.id}))throw new Error('tablist already contains a tab with the ID "'+e.id+'"');n||this.tabs.push(e),this._tabsContainer&&(e.tabsContainer=this._tabsContainer),this.tabs.sort(function(t,e){var n=0;return t.previousSibling&&t.nextSibling!==e?t.nextSibling&&t.previousSibling!==e||(n=1):n=-1,n}),this.handleResize()}},{key:"handleTabUnregister",value:function(t){this.tabs=this.tabs.filter(function(e){return e!==t.detail})}},{key:"handleKeyDown",value:function(t){var e=this;if(!this._tabsContainer||!this._tabsContainer.disabled){var n=!1,i=this._tabsContainer.activeTab;switch(t.keyCode||t.charCode){case 37:case 38:this.selectPreviousTab(),n=!0;break;case 39:case 40:this.selectNextTab(),n=!0;break;default:return}n&&(clearTimeout(this._focusTimer),this._focusTimer=setTimeout(function(){e._tabsContainer.activeTab!==i&&e._tabsContainer.activeTab.focus()},5*gt)),t.preventDefault()}}},{key:"handleResize",value:function(t){clearTimeout(this._resizeDebounce),this._resizeDebounce=setTimeout(this._resizeTabs,He)}},{key:"resizeTabs",value:function(){if(this._tabsContainer){var t=this._tabsContainer.clientWidth,e=!1;t<800&&!this.classList.contains("no-wrap")?(this.classList.add("no-wrap"),e=!0):t>=800&&this.classList.contains("no-wrap")&&(this.classList.remove("no-wrap"),e=!0),e&&window.requestAnimationFrame(this.resizeTablist.bind(this))}}},{key:"resizeTablist",value:function(){this._handleResize()}},{key:"getAdjacentFocusableTab",value:function(t,e){var n=null;if(this.tabs&&this.tabs.length){for(var i=-1,a=0;a-1)for(a=(a=i+e)<0||a>r?s:a;a!==i;){if(!this.tabs[a].disabled){n=this.tabs[a];break}a=(a+=e)<0||a>r?s:a}}return n}},{key:"selectNextTab",value:function(){if(this._tabsContainer){var t=this.getAdjacentFocusableTab(this._tabsContainer.activeTab,1);t&&S(this,Te,t)}}},{key:"selectPreviousTab",value:function(){if(this._tabsContainer){var t=this.getAdjacentFocusableTab(this._tabsContainer.activeTab,-1);t&&S(this,Te,t)}}},{key:"bindEventListeners",value:function(){this.addEventListener("keydown",this._handleKeyDown),this.addEventListener(xe,this._handleTabRegister),window.addEventListener("resize",this._handleResize),this._tabsContainer&&this._tabsContainer.addEventListener(we,this._handleTabUnregister)}},{key:"unbindEventListeners",value:function(){this.removeEventListener("keydown",this._handleKeyDown),this.removeEventListener(xe,this._handleTabRegister),window.removeEventListener("resize",this._handleResize),clearTimeout(this._resizeDebounce),clearTimeout(this._focusTimer),this._tabsContainer&&this._tabsContainer.removeEventListener(we,this._handleTabUnregister)}},{key:"tabsContainer",set:function(t){this.unbindEventListeners(),this._tabsContainer=t,this.bindEventListeners(),this.tabs.forEach(function(e){return e.tabsContainer=t}),this.resizeTabs()}},{key:"tabsWidth",get:function(){return this.tabs.length?this.tabs.reduce(function(t,e){return(t=t instanceof HTMLElement?t.width:t)+e.width}):0}}]),n}(ht);var ze=function(e){function n(){t.classCallCheck(this,n);for(var e=arguments.length,i=Array(e),a=0;a