!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mdc=e():t.mdc=e()}(this,function(){return i={},r.m=n=[function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=i,e.default=i},function(t,e,n){"use strict";var i=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||0=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var s,a=n(0),C=n(8),c=(s=a.MDCFoundation,r(m,s),Object.defineProperty(m,"cssClasses",{get:function(){return C.cssClasses},enumerable:!0,configurable:!0}),Object.defineProperty(m,"strings",{get:function(){return C.strings},enumerable:!0,configurable:!0}),Object.defineProperty(m,"numbers",{get:function(){return C.numbers},enumerable:!0,configurable:!0}),Object.defineProperty(m,"Corner",{get:function(){return C.Corner},enumerable:!0,configurable:!0}),Object.defineProperty(m,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyOpen:function(){},notifyClosing:function(){}}},enumerable:!0,configurable:!0}),m.prototype.init=function(){var t=m.cssClasses,e=t.ROOT,n=t.OPEN;if(!this.adapter.hasClass(e))throw new Error(e+" class required in root element.");this.adapter.hasClass(n)&&(this.isSurfaceOpen=!0)},m.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},m.prototype.setAnchorCorner=function(t){this.anchorCorner=t},m.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^C.CornerBit.RIGHT},m.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},m.prototype.setIsHoisted=function(t){this.isHoistedElement=t},m.prototype.setFixedPosition=function(t){this.isFixedPosition=t},m.prototype.setAbsolutePosition=function(t,e){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(e)?e:0},m.prototype.setQuickOpen=function(t){this.isQuickOpen=t},m.prototype.isOpen=function(){return this.isSurfaceOpen},m.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(m.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(m.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){t.adapter.addClass(m.cssClasses.OPEN),t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.openAnimationEndTimerId=setTimeout(function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(m.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()},C.numbers.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},m.prototype.close=function(t){var e=this;if(void 0===t&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(m.cssClasses.OPEN),this.adapter.removeClass(m.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(m.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){e.adapter.removeClass(m.cssClasses.OPEN),e.adapter.removeClass(m.cssClasses.IS_OPEN_BELOW),e.closeAnimationEndTimerId=setTimeout(function(){e.closeAnimationEndTimerId=0,e.adapter.removeClass(m.cssClasses.ANIMATING_CLOSED),e.adapter.notifyClose()},C.numbers.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},m.prototype.handleBodyClick=function(t){var e=t.target;this.adapter.isElementInContainer(e)||this.close()},m.prototype.handleKeydown=function(t){var e=t.keyCode;"Escape"!==t.key&&27!==e||this.close()},m.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var e=this.getoriginCorner(),n=this.getMenuSurfaceMaxHeight(e),i=this.hasBit(e,C.CornerBit.BOTTOM)?"bottom":"top",r=this.hasBit(e,C.CornerBit.RIGHT)?"right":"left",o=this.getHorizontalOriginOffset(e),s=this.getVerticalOriginOffset(e),a=this.measurements,c=a.anchorSize,u=a.surfaceSize,l=((t={})[r]=o,t[i]=s,t);c.width/u.width>C.numbers.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(l),this.adapter.setTransformOrigin(r+" "+i),this.adapter.setPosition(l),this.adapter.setMaxHeight(n?n+"px":""),this.hasBit(e,C.CornerBit.BOTTOM)||this.adapter.addClass(m.cssClasses.IS_OPEN_BELOW)},m.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),e=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),i=this.adapter.getWindowScroll();return{anchorSize:t=t||{top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0},bodySize:e,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:n.width-t.right,bottom:n.height-t.bottom,left:t.left},viewportSize:n,windowScroll:i}},m.prototype.getoriginCorner=function(){var t,e,n=this.originCorner,i=this.measurements,r=i.viewportDistance,o=i.anchorSize,s=i.surfaceSize,a=m.numbers.MARGIN_TO_EDGE;!(0<(e=this.hasBit(this.anchorCorner,C.CornerBit.BOTTOM)?(t=r.top-a+this.anchorMargin.bottom,r.bottom-a-this.anchorMargin.bottom):(t=r.top-a+this.anchorMargin.top,r.bottom-a+o.height-this.anchorMargin.top))-s.height)&&ethis.topAppBarHeight_&&(this.currentAppBarOffsetTop_=-this.topAppBarHeight_),this.moveTopAppBar_())},u.prototype.handleWindowResize=function(){var t=this;this.resizeThrottleId_||(this.resizeThrottleId_=setTimeout(function(){t.resizeThrottleId_=0,t.throttledResizeHandler_()},s.numbers.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)),this.isCurrentlyBeingResized_=!0,this.resizeDebounceId_&&clearTimeout(this.resizeDebounceId_),this.resizeDebounceId_=setTimeout(function(){t.handleTargetScroll(),t.isCurrentlyBeingResized_=!1,t.resizeDebounceId_=0},s.numbers.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)},u.prototype.checkForUpdate_=function(){var t=-this.topAppBarHeight_,e=this.currentAppBarOffsetTop_<0,n=this.currentAppBarOffsetTop_>t,i=e&&n;if(i)this.wasDocked_=!1;else{if(!this.wasDocked_)return this.wasDocked_=!0;if(this.isDockedShowing_!==n)return this.isDockedShowing_=n,!0}return i},u.prototype.moveTopAppBar_=function(){if(this.checkForUpdate_()){var t=this.currentAppBarOffsetTop_;Math.abs(t)>=this.topAppBarHeight_&&(t=-s.numbers.MAX_TOP_APP_BAR_HEIGHT),this.adapter.setStyle("top",t+"px")}},u.prototype.throttledResizeHandler_=function(){var t=this.adapter.getTopAppBarHeight();this.topAppBarHeight_!==t&&(this.wasDocked_=!1,this.currentAppBarOffsetTop_-=this.topAppBarHeight_-t,this.topAppBarHeight_=t),this.handleTargetScroll()},u);function u(t){var e=o.call(this,t)||this;return e.wasDocked_=!0,e.isDockedShowing_=!0,e.currentAppBarOffsetTop_=0,e.isCurrentlyBeingResized_=!1,e.resizeThrottleId_=0,e.resizeDebounceId_=0,e.lastScrollPosition_=e.adapter.getViewportScrollY(),e.topAppBarHeight_=e.adapter.getTopAppBarHeight(),e}e.MDCTopAppBarFoundation=c,e.default=c},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var s,c=n(10),u=n(0),l=n(56),d=(s=u.MDCFoundation,r(p,s),Object.defineProperty(p,"cssClasses",{get:function(){return l.cssClasses},enumerable:!0,configurable:!0}),Object.defineProperty(p,"strings",{get:function(){return l.strings},enumerable:!0,configurable:!0}),Object.defineProperty(p,"defaultAdapter",{get:function(){return{addClass:function(){},attachResizeObserver:function(){return null},forceLayout:function(){},getWidth:function(){return 0},hasClass:function(){return!1},setBufferBarStyle:function(){return null},setPrimaryBarStyle:function(){return null},setStyle:function(){},removeAttribute:function(){},removeClass:function(){},setAttribute:function(){}}},enumerable:!0,configurable:!0}),p.prototype.init=function(){var s=this;this.isDeterminate=!this.adapter.hasClass(l.cssClasses.INDETERMINATE_CLASS),this.adapter.addClass(l.cssClasses.ANIMATION_READY_CLASS),this.progress=0,this.buffer=1,this.observer=this.adapter.attachResizeObserver(function(t){var e,n;if(!s.isDeterminate)try{for(var i=a(t),r=i.next();!r.done;r=i.next()){var o=r.value;o.contentRect&&s.calculateAndSetDimensions(o.contentRect.width)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}),!this.isDeterminate&&this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth())},p.prototype.setDeterminate=function(t){if(this.isDeterminate=t,this.isDeterminate)return this.adapter.removeClass(l.cssClasses.INDETERMINATE_CLASS),this.adapter.setAttribute(l.strings.ARIA_VALUENOW,this.progress.toString()),this.adapter.setAttribute(l.strings.ARIA_VALUEMAX,"1"),this.adapter.setAttribute(l.strings.ARIA_VALUEMIN,"0"),this.setPrimaryBarProgress(this.progress),void this.setBufferBarProgress(this.buffer);this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth()),this.adapter.addClass(l.cssClasses.INDETERMINATE_CLASS),this.adapter.removeAttribute(l.strings.ARIA_VALUENOW),this.adapter.removeAttribute(l.strings.ARIA_VALUEMAX),this.adapter.removeAttribute(l.strings.ARIA_VALUEMIN),this.setPrimaryBarProgress(1),this.setBufferBarProgress(1)},p.prototype.getDeterminate=function(){return this.isDeterminate},p.prototype.setProgress=function(t){this.progress=t,this.isDeterminate&&(this.setPrimaryBarProgress(t),this.adapter.setAttribute(l.strings.ARIA_VALUENOW,t.toString()))},p.prototype.getProgress=function(){return this.progress},p.prototype.setBuffer=function(t){this.buffer=t,this.isDeterminate&&this.setBufferBarProgress(t)},p.prototype.open=function(){this.adapter.removeClass(l.cssClasses.CLOSED_CLASS),this.adapter.removeClass(l.cssClasses.CLOSED_ANIMATION_OFF_CLASS)},p.prototype.close=function(){this.adapter.addClass(l.cssClasses.CLOSED_CLASS)},p.prototype.handleTransitionEnd=function(){this.adapter.hasClass(l.cssClasses.CLOSED_CLASS)&&this.adapter.addClass(l.cssClasses.CLOSED_ANIMATION_OFF_CLASS)},p.prototype.destroy=function(){s.prototype.destroy.call(this),this.observer&&this.observer.disconnect()},p.prototype.restartAnimation=function(){this.adapter.removeClass(l.cssClasses.ANIMATION_READY_CLASS),this.adapter.forceLayout(),this.adapter.addClass(l.cssClasses.ANIMATION_READY_CLASS)},p.prototype.setPrimaryBarProgress=function(t){var e="scaleX("+t+")",n="undefined"!=typeof window?c.getCorrectPropertyName(window,"transform"):"transform";this.adapter.setPrimaryBarStyle(n,e)},p.prototype.setBufferBarProgress=function(t){var e=100*t+"%";this.adapter.setBufferBarStyle(l.strings.FLEX_BASIS,e)},p.prototype.calculateAndSetDimensions=function(t){var e=t*l.animationDimensionPercentages.PRIMARY_HALF,n=t*l.animationDimensionPercentages.PRIMARY_FULL,i=t*l.animationDimensionPercentages.SECONDARY_QUARTER,r=t*l.animationDimensionPercentages.SECONDARY_HALF,o=t*l.animationDimensionPercentages.SECONDARY_FULL;this.adapter.setStyle("--mdc-linear-progress-primary-half",e+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-half-neg",-e+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full",n+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full-neg",-n+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter",i+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter-neg",-i+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half",r+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half-neg",-r+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full",o+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full-neg",-o+"px"),this.restartAnimation()},p);function p(t){var e=s.call(this,o(o({},p.defaultAdapter),t))||this;return e.observer=null,e}e.MDCLinearProgressFoundation=d,e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses={CLOSED_CLASS:"mdc-linear-progress--closed",CLOSED_ANIMATION_OFF_CLASS:"mdc-linear-progress--closed-animation-off",INDETERMINATE_CLASS:"mdc-linear-progress--indeterminate",REVERSED_CLASS:"mdc-linear-progress--reversed",ANIMATION_READY_CLASS:"mdc-linear-progress--animation-ready"},e.strings={ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUENOW:"aria-valuenow",BUFFER_BAR_SELECTOR:".mdc-linear-progress__buffer-bar",FLEX_BASIS:"flex-basis",PRIMARY_BAR_SELECTOR:".mdc-linear-progress__primary-bar"},e.animationDimensionPercentages={PRIMARY_HALF:.8367142,PRIMARY_FULL:2.00611057,SECONDARY_QUARTER:.37651913,SECONDARY_HALF:.84386165,SECONDARY_FULL:1.60277782}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;ns[0]&&e[1]t.offsetHeight},e.isScrollAtTop=function(t){return!!t&&0===t.scrollTop},e.isScrollAtBottom=function(t){return!!t&&Math.ceil(t.scrollHeight-t.scrollTop)===t.clientHeight},e.areTopsMisaligned=function(t){var e=new Set;return[].forEach.call(t,function(t){return e.add(t.offsetTop)}),1 label"}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var a,c=n(0),u=n(80),l=(a=c.MDCFoundation,r(d,a),Object.defineProperty(d,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},getSegments:function(){return[]},selectSegment:function(){},unselectSegment:function(){},notifySelectedChange:function(){}}},enumerable:!0,configurable:!0}),d.prototype.selectSegment=function(t){this.adapter.selectSegment(t)},d.prototype.unselectSegment=function(t){this.adapter.unselectSegment(t)},d.prototype.getSelectedSegments=function(){return this.adapter.getSegments().filter(function(t){return t.selected})},d.prototype.isSegmentSelected=function(e){return this.adapter.getSegments().some(function(t){return(t.index===e||t.segmentId===e)&&t.selected})},d.prototype.isSingleSelect=function(){return this.adapter.hasClass(u.cssClasses.SINGLE_SELECT)},d.prototype.handleSelected=function(t){this.isSingleSelect()&&this.unselectPrevSelected(t.index),this.adapter.notifySelectedChange(t)},d.prototype.unselectPrevSelected=function(t){var e,n;try{for(var i=s(this.getSelectedSegments()),r=i.next();!r.done;r=i.next()){var o=r.value;o.index!==t&&this.unselectSegment(o.index)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},d);function d(t){return a.call(this,o(o({},d.defaultAdapter),t))||this}e.MDCSegmentedButtonFoundation=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.selectors={SEGMENT:".mdc-segmented-button__segment"},e.events={SELECTED:"selected",CHANGE:"change"},e.cssClasses={SINGLE_SELECT:"mdc-segmented-button--single-select"}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=this.adapter.getMenuItemCount()||(t===l.numbers.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(t).trim()),this.adapter.setSelectedIndex(t),e&&this.adapter.closeMenu(),n||this.lastSelectedIndex===t||this.handleChange(),this.lastSelectedIndex=t)},p.prototype.setValue=function(t,e){void 0===e&&(e=!1);var n=this.adapter.getMenuItemValues().indexOf(t);this.setSelectedIndex(n,!1,e)},p.prototype.getValue=function(){var t=this.adapter.getSelectedIndex(),e=this.adapter.getMenuItemValues();return t!==l.numbers.UNSET_INDEX?e[t]:""},p.prototype.getDisabled=function(){return this.disabled},p.prototype.setDisabled=function(t){this.disabled=t,this.disabled?(this.adapter.addClass(l.cssClasses.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(l.cssClasses.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},p.prototype.openMenu=function(){this.adapter.addClass(l.cssClasses.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},p.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},p.prototype.layout=function(){if(this.adapter.hasLabel()){var t=0= start thumb value ("+this.valueStart+")");this.updateValue(t,d.Thumb.END)},h.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},h.prototype.setValueStart=function(t){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&t>this.value)throw new Error("start thumb value ("+t+") must be <= end thumb value ("+this.value+")");this.updateValue(t,d.Thumb.START)},h.prototype.getStep=function(){return this.step},h.prototype.getDisabled=function(){return this.isDisabled},h.prototype.setDisabled=function(t){(this.isDisabled=t)?(this.adapter.addClass(c.cssClasses.DISABLED),this.isRange&&this.adapter.setInputAttribute(c.attributes.INPUT_DISABLED,"",d.Thumb.START),this.adapter.setInputAttribute(c.attributes.INPUT_DISABLED,"",d.Thumb.END)):(this.adapter.removeClass(c.cssClasses.DISABLED),this.isRange&&this.adapter.removeInputAttribute(c.attributes.INPUT_DISABLED,d.Thumb.START),this.adapter.removeInputAttribute(c.attributes.INPUT_DISABLED,d.Thumb.END))},h.prototype.getIsRange=function(){return this.isRange},h.prototype.layout=function(t){var e=(void 0===t?{}:t).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(d.Thumb.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(d.Thumb.END)),e||this.updateUI()},h.prototype.handleResize=function(){this.layout()},h.prototype.handleDown=function(t){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var e=null!=t.clientX?t.clientX:t.targetTouches[0].clientX;this.downEventClientX=e;var n=this.mapClientXOnSliderScale(e);this.thumb=this.getThumbFromDownEvent(e,n),null!==this.thumb&&(this.handleDragStart(t,n,this.thumb),this.isRange&&n>=this.valueStart&&n<=this.value||this.updateValue(n,this.thumb,{emitInputEvent:!0}))}},h.prototype.handleMove=function(t){if(!this.isDisabled){t.preventDefault();var e=null!=t.clientX?t.clientX:t.targetTouches[0].clientX,n=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(e),null!==this.thumb){var i=this.mapClientXOnSliderScale(e);n||(this.handleDragStart(t,i,this.thumb),this.adapter.emitDragStartEvent(i,this.thumb)),this.updateValue(i,this.thumb,{emitInputEvent:!0})}}},h.prototype.handleUp=function(){if(!this.isDisabled&&null!==this.thumb){var t=this.thumb===d.Thumb.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,e=this.thumb===d.Thumb.START?this.valueStart:this.value;t!==e&&this.adapter.emitChangeEvent(e,this.thumb),this.adapter.emitDragEndEvent(e,this.thumb),this.thumb=null}},h.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,d.Thumb.START),this.adapter.addThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,d.Thumb.END))},h.prototype.handleThumbMouseleave=function(){this.isDiscrete&&this.isRange&&(this.adapter.isInputFocused(d.Thumb.START)||this.adapter.isInputFocused(d.Thumb.END)||(this.adapter.removeThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,d.Thumb.START),this.adapter.removeThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,d.Thumb.END)))},h.prototype.handleMousedownOrTouchstart=function(t){var e=this,n="mousedown"===t.type?"mousemove":"touchmove";function i(){e.handleUp(),e.adapter.deregisterBodyEventHandler(n,e.moveListener),e.adapter.deregisterEventHandler("mouseup",i),e.adapter.deregisterEventHandler("touchend",i)}this.adapter.registerBodyEventHandler(n,this.moveListener),this.adapter.registerBodyEventHandler("mouseup",i),this.adapter.registerBodyEventHandler("touchend",i),this.handleDown(t)},h.prototype.handlePointerdown=function(t){this.adapter.setPointerCapture(t.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(t)},h.prototype.handleInputChange=function(t){var e=Number(this.adapter.getInputValue(t));t===d.Thumb.START?this.setValueStart(e):this.setValue(e),this.adapter.emitChangeEvent(t===d.Thumb.START?this.valueStart:this.value,t)},h.prototype.handleInputFocus=function(t){if(this.isDiscrete&&(this.adapter.addThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===d.Thumb.START?d.Thumb.END:d.Thumb.START;this.adapter.addThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,e)}},h.prototype.handleInputBlur=function(t){if(this.isDiscrete&&(this.adapter.removeThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===d.Thumb.START?d.Thumb.END:d.Thumb.START;this.adapter.removeThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,e)}},h.prototype.handleDragStart=function(t,e,n){this.adapter.focusInput(n),t.preventDefault(),this.adapter.emitDragStartEvent(e,n)},h.prototype.getThumbFromDownEvent=function(t,e){if(!this.isRange)return d.Thumb.END;var n=this.adapter.getThumbBoundingClientRect(d.Thumb.START),i=this.adapter.getThumbBoundingClientRect(d.Thumb.END),r=t>=n.left&&t<=n.right,o=t>=i.left&&t<=i.right;return r&&o?null:r?d.Thumb.START:o?d.Thumb.END:ethis.value?d.Thumb.END:null},h.prototype.getThumbFromMoveEvent=function(t){if(null!==this.thumb)return this.thumb;if(null===this.downEventClientX)throw new Error("`downEventClientX` is null after move event.");return Math.abs(this.downEventClientX-t)this.value?this.value:this.isRange&&e===d.Thumb.END&&t ',e.setAttribute(o,i),setTimeout(function(){t.setAttribute("aria-live",n),e.removeAttribute(o),e.textContent=i},r))}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var s,a=n(60),h=n(10),c=n(0),l=n(6),d=n(40),p=d.CssClasses.RICH,f=d.CssClasses.SHOWN,_=d.CssClasses.SHOWING,y=d.CssClasses.SHOWING_TRANSITION,C=d.CssClasses.HIDE,m=d.CssClasses.HIDE_TRANSITION,E=d.CssClasses.MULTILINE_TOOLTIP;(s=s||{}).POLL_ANCHOR="poll_anchor";var g,T="undefined"!=typeof window,v=(g=c.MDCFoundation,r(A,g),Object.defineProperty(A,"defaultAdapter",{get:function(){return{getAttribute:function(){return null},setAttribute:function(){},addClass:function(){},hasClass:function(){return!1},removeClass:function(){},getComputedStyleProperty:function(){return""},setStyleProperty:function(){},setSurfaceStyleProperty:function(){},getViewportWidth:function(){return 0},getViewportHeight:function(){return 0},getTooltipSize:function(){return{width:0,height:0}},getAnchorBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getParentBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getAnchorAttribute:function(){return null},setAnchorAttribute:function(){return null},isRTL:function(){return!1},anchorContainsElement:function(){return!1},tooltipContainsElement:function(){return!1},focusAnchorElement:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerDocumentEventHandler:function(){},deregisterDocumentEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){},notifyHidden:function(){}}},enumerable:!0,configurable:!0}),A.prototype.init=function(){this.richTooltip=this.adapter.hasClass(p),this.persistentTooltip="true"===this.adapter.getAttribute(d.attributes.PERSISTENT),this.interactiveTooltip=!!this.adapter.getAnchorAttribute(d.attributes.ARIA_EXPANDED)&&"dialog"===this.adapter.getAnchorAttribute(d.attributes.ARIA_HASPOPUP)},A.prototype.isShown=function(){return this.tooltipShown},A.prototype.isRich=function(){return this.richTooltip},A.prototype.isPersistent=function(){return this.persistentTooltip},A.prototype.handleAnchorMouseEnter=function(){var t=this;this.tooltipShown?this.show():(this.clearHideTimeout(),this.showTimeout=setTimeout(function(){t.show()},this.showDelayMs))},A.prototype.handleAnchorFocus=function(t){var e=this,n=t.relatedTarget;n instanceof HTMLElement&&this.adapter.tooltipContainsElement(n)||(this.showTimeout=setTimeout(function(){e.show()},this.showDelayMs))},A.prototype.handleAnchorMouseLeave=function(){var t=this;this.clearShowTimeout(),this.hideTimeout=setTimeout(function(){t.hide()},this.hideDelayMs)},A.prototype.handleAnchorBlur=function(t){this.richTooltip&&t.relatedTarget instanceof HTMLElement&&this.adapter.tooltipContainsElement(t.relatedTarget)||this.hide()},A.prototype.handleAnchorClick=function(){this.tooltipShown?this.hide():this.show()},A.prototype.handleDocumentClick=function(t){var e=t.target instanceof HTMLElement&&(this.adapter.anchorContainsElement(t.target)||this.adapter.tooltipContainsElement(t.target));this.richTooltip&&this.persistentTooltip&&e||this.hide()},A.prototype.handleKeydown=function(t){l.normalizeKey(t)===l.KEY.ESCAPE&&(document.activeElement instanceof HTMLElement&&this.adapter.tooltipContainsElement(document.activeElement)&&this.adapter.focusAnchorElement(),this.hide())},A.prototype.handleRichTooltipMouseEnter=function(){this.show()},A.prototype.handleRichTooltipMouseLeave=function(){var t=this;this.clearShowTimeout(),this.hideTimeout=setTimeout(function(){t.hide()},this.hideDelayMs)},A.prototype.handleRichTooltipFocusOut=function(t){t.relatedTarget instanceof HTMLElement&&(this.adapter.anchorContainsElement(t.relatedTarget)||this.adapter.tooltipContainsElement(t.relatedTarget))||this.hide()},A.prototype.handleWindowChangeEvent=function(){var t=this;this.animFrame.request(s.POLL_ANCHOR,function(){t.repositionTooltipOnAnchorMove()})},A.prototype.show=function(){var t=this;this.clearHideTimeout(),this.clearShowTimeout(),this.tooltipShown||(this.tooltipShown=!0,this.parseShowTooltipOptions().hideFromScreenreader||this.adapter.setAttribute("aria-hidden","false"),this.richTooltip&&(this.interactiveTooltip&&this.adapter.setAnchorAttribute("aria-expanded","true"),this.adapter.registerEventHandler("focusout",this.richTooltipFocusOutHandler),this.persistentTooltip||(this.adapter.registerEventHandler("mouseenter",this.richTooltipMouseEnterHandler),this.adapter.registerEventHandler("mouseleave",this.richTooltipMouseLeaveHandler))),this.adapter.removeClass(C),this.adapter.addClass(_),this.isTooltipMultiline()&&!this.richTooltip&&this.adapter.addClass(E),this.anchorRect=this.adapter.getAnchorBoundingRect(),this.parentRect=this.adapter.getParentBoundingRect(),this.richTooltip?this.positionRichTooltip():this.positionPlainTooltip(),this.adapter.registerDocumentEventHandler("click",this.documentClickHandler),this.adapter.registerDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.registerWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler),this.frameId=requestAnimationFrame(function(){t.clearAllAnimationClasses(),t.adapter.addClass(f),t.adapter.addClass(y)}))},A.prototype.hide=function(){this.clearHideTimeout(),this.clearShowTimeout(),this.tooltipShown&&(this.frameId&&cancelAnimationFrame(this.frameId),this.tooltipShown=!1,this.adapter.setAttribute("aria-hidden","true"),this.adapter.deregisterEventHandler("focusout",this.richTooltipFocusOutHandler),this.richTooltip&&(this.interactiveTooltip&&this.adapter.setAnchorAttribute("aria-expanded","false"),this.persistentTooltip||(this.adapter.deregisterEventHandler("mouseenter",this.richTooltipMouseEnterHandler),this.adapter.deregisterEventHandler("mouseleave",this.richTooltipMouseLeaveHandler))),this.clearAllAnimationClasses(),this.adapter.addClass(C),this.adapter.addClass(m),this.adapter.removeClass(f),this.adapter.deregisterDocumentEventHandler("click",this.documentClickHandler),this.adapter.deregisterDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.deregisterWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler))},A.prototype.handleTransitionEnd=function(){var t=this.adapter.hasClass(C);this.adapter.removeClass(_),this.adapter.removeClass(y),this.adapter.removeClass(C),this.adapter.removeClass(m),t&&this.adapter.notifyHidden()},A.prototype.clearAllAnimationClasses=function(){this.adapter.removeClass(y),this.adapter.removeClass(m)},A.prototype.setTooltipPosition=function(t){var e=t.xPos,n=t.yPos;e&&(this.xTooltipPos=e),n&&(this.yTooltipPos=n)},A.prototype.setAnchorBoundaryType=function(t){t===d.AnchorBoundaryType.UNBOUNDED?this.anchorGap=d.numbers.UNBOUNDED_ANCHOR_GAP:this.anchorGap=d.numbers.BOUNDED_ANCHOR_GAP},A.prototype.parseShowTooltipOptions=function(){return{hideFromScreenreader:Boolean(this.adapter.getAnchorAttribute("data-tooltip-id"))}},A.prototype.isTooltipMultiline=function(){var t=this.adapter.getTooltipSize();return t.height>d.numbers.MIN_HEIGHT&&t.width>=d.numbers.MAX_WIDTH},A.prototype.positionPlainTooltip=function(){var t=this.calculateTooltipStyles(this.anchorRect),e=t.top,n=t.yTransformOrigin,i=t.left,r=t.xTransformOrigin,o=T?h.getCorrectPropertyName(window,"transform"):"transform";this.adapter.setSurfaceStyleProperty(o+"-origin",n+" "+r),this.adapter.setStyleProperty("top",e+"px"),this.adapter.setStyleProperty("left",i+"px")},A.prototype.positionRichTooltip=function(){var t,e,n,i,r=this.adapter.getComputedStyleProperty("width");this.adapter.setStyleProperty("width",r);var o=this.calculateTooltipStyles(this.anchorRect),s=o.top,a=o.yTransformOrigin,c=o.left,u=o.xTransformOrigin,l=T?h.getCorrectPropertyName(window,"transform"):"transform";this.adapter.setSurfaceStyleProperty(l+"-origin",a+" "+u);var d=c-(null!==(e=null===(t=this.parentRect)||void 0===t?void 0:t.left)&&void 0!==e?e:0),p=s-(null!==(i=null===(n=this.parentRect)||void 0===n?void 0:n.top)&&void 0!==i?i:0);this.adapter.setStyleProperty("top",p+"px"),this.adapter.setStyleProperty("left",d+"px")},A.prototype.calculateTooltipStyles=function(t){if(!t)return{top:0,left:0};var e=this.adapter.getTooltipSize(),n=this.calculateYTooltipDistance(t,e.height),i=this.calculateXTooltipDistance(t,e.width);return{top:n.distance,yTransformOrigin:n.yTransformOrigin,left:i.distance,xTransformOrigin:i.xTransformOrigin}},A.prototype.calculateXTooltipDistance=function(t,e){var n,i,r,o,s,a=!this.adapter.isRTL();s=this.richTooltip?(n=a?t.left-e:t.right,i=a?t.right:t.left-e,o=a?d.strings.RIGHT:d.strings.LEFT,a?d.strings.LEFT:d.strings.RIGHT):(n=a?t.left:t.right-e,i=a?t.right-e:t.left,r=t.left+(t.width-e)/2,o=a?d.strings.LEFT:d.strings.RIGHT,a?d.strings.RIGHT:d.strings.LEFT);var c=this.richTooltip?this.determineValidPositionOptions(n,i):this.determineValidPositionOptions(r,n,i);if(this.xTooltipPos===d.XPosition.START&&c.has(n))return{distance:n,xTransformOrigin:o};if(this.xTooltipPos===d.XPosition.END&&c.has(i))return{distance:i,xTransformOrigin:s};if(this.xTooltipPos===d.XPosition.CENTER&&c.has(r))return{distance:r,xTransformOrigin:d.strings.CENTER};var u=(this.richTooltip?[{distance:i,xTransformOrigin:s},{distance:n,xTransformOrigin:o}]:[{distance:r,xTransformOrigin:d.strings.CENTER},{distance:n,xTransformOrigin:o},{distance:i,xTransformOrigin:s}]).find(function(t){var e=t.distance;return c.has(e)});return u||(t.left<0?{distance:this.minViewportTooltipThreshold,xTransformOrigin:d.strings.LEFT}:{distance:this.adapter.getViewportWidth()-(e+this.minViewportTooltipThreshold),xTransformOrigin:d.strings.RIGHT})},A.prototype.determineValidPositionOptions=function(){for(var e,t,n=[],i=0;i=this.minViewportTooltipThreshold},A.prototype.positionDoesntCollideWithViewport=function(t){var e=this.adapter.getViewportWidth();return t+this.adapter.getTooltipSize().width<=e&&0<=t},A.prototype.calculateYTooltipDistance=function(t,e){var n=t.bottom+this.anchorGap,i=t.top-(this.anchorGap+e),r=this.determineValidYPositionOptions(i,n);return this.yTooltipPos===d.YPosition.ABOVE&&r.has(i)?{distance:i,yTransformOrigin:d.strings.BOTTOM}:this.yTooltipPos===d.YPosition.BELOW&&r.has(n)?{distance:n,yTransformOrigin:d.strings.TOP}:r.has(n)?{distance:n,yTransformOrigin:d.strings.TOP}:r.has(i)?{distance:i,yTransformOrigin:d.strings.BOTTOM}:{distance:n,yTransformOrigin:d.strings.TOP}},A.prototype.determineValidYPositionOptions=function(t,e){var n=new Set,i=new Set;return this.yPositionHonorsViewportThreshold(t)?n.add(t):this.yPositionDoesntCollideWithViewport(t)&&i.add(t),this.yPositionHonorsViewportThreshold(e)?n.add(e):this.yPositionDoesntCollideWithViewport(e)&&i.add(e),n.size?n:i},A.prototype.yPositionHonorsViewportThreshold=function(t){var e=this.adapter.getViewportHeight();return t+this.adapter.getTooltipSize().height+this.minViewportTooltipThreshold<=e&&t>=this.minViewportTooltipThreshold},A.prototype.yPositionDoesntCollideWithViewport=function(t){var e=this.adapter.getViewportHeight();return t+this.adapter.getTooltipSize().height<=e&&0<=t},A.prototype.repositionTooltipOnAnchorMove=function(){var t=this.adapter.getAnchorBoundingRect();t&&this.anchorRect&&(t.top===this.anchorRect.top&&t.left===this.anchorRect.left&&t.height===this.anchorRect.height&&t.width===this.anchorRect.width||(this.anchorRect=t,this.parentRect=this.adapter.getParentBoundingRect(),this.richTooltip?this.positionRichTooltip():this.positionPlainTooltip()))},A.prototype.clearShowTimeout=function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)},A.prototype.clearHideTimeout=function(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)},A.prototype.destroy=function(){this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=null),this.clearHideTimeout(),this.clearShowTimeout(),this.adapter.removeClass(f),this.adapter.removeClass(y),this.adapter.removeClass(_),this.adapter.removeClass(C),this.adapter.removeClass(m),this.richTooltip&&(this.adapter.deregisterEventHandler("focusout",this.richTooltipFocusOutHandler),this.persistentTooltip||(this.adapter.deregisterEventHandler("mouseenter",this.richTooltipMouseEnterHandler),this.adapter.deregisterEventHandler("mouseleave",this.richTooltipMouseLeaveHandler))),this.adapter.deregisterDocumentEventHandler("click",this.documentClickHandler),this.adapter.deregisterDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.deregisterWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.animFrame.cancelAll()},A);function A(t){var e=g.call(this,o(o({},A.defaultAdapter),t))||this;return e.tooltipShown=!1,e.anchorGap=d.numbers.BOUNDED_ANCHOR_GAP,e.xTooltipPos=d.XPosition.DETECTED,e.yTooltipPos=d.YPosition.DETECTED,e.minViewportTooltipThreshold=d.numbers.MIN_VIEWPORT_TOOLTIP_THRESHOLD,e.hideDelayMs=d.numbers.HIDE_DELAY_MS,e.showDelayMs=d.numbers.SHOW_DELAY_MS,e.anchorRect=null,e.parentRect=null,e.frameId=null,e.hideTimeout=null,e.showTimeout=null,e.animFrame=new a.AnimationFrame,e.documentClickHandler=function(t){e.handleDocumentClick(t)},e.documentKeydownHandler=function(t){e.handleKeydown(t)},e.richTooltipMouseEnterHandler=function(){e.handleRichTooltipMouseEnter()},e.richTooltipMouseLeaveHandler=function(){e.handleRichTooltipMouseLeave()},e.richTooltipFocusOutHandler=function(t){e.handleRichTooltipFocusOut(t)},e.windowScrollHandler=function(){e.handleWindowChangeEvent()},e.windowResizeHandler=function(){e.handleWindowChangeEvent()},e}e.MDCTooltipFoundation=v,e.default=v},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=n(9),a=n(41),c=(o=a.MDCTopAppBarFoundation,r(u,o),u.prototype.handleTargetScroll=function(){this.adapter.getViewportScrollY()<=0?this.wasScrolled_&&(this.adapter.removeClass(s.cssClasses.FIXED_SCROLLED_CLASS),this.wasScrolled_=!1):this.wasScrolled_||(this.adapter.addClass(s.cssClasses.FIXED_SCROLLED_CLASS),this.wasScrolled_=!0)},u);function u(){var t=null!==o&&o.apply(this,arguments)||this;return t.wasScrolled_=!1,t}e.MDCFixedTopAppBarFoundation=c,e.default=c},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=n(9),a=n(42),c=(o=a.MDCTopAppBarBaseFoundation,r(u,o),Object.defineProperty(u.prototype,"isCollapsed",{get:function(){return this.isCollapsed_},enumerable:!0,configurable:!0}),u.prototype.init=function(){o.prototype.init.call(this),0=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var i=n(120),p=i.strings.AUTO_INIT_ATTR,h=i.strings.AUTO_INIT_STATE_ATTR,f=i.strings.INITIALIZED_STATE,_={},r=console.warn.bind(console);function o(t){var e,n;void 0===t&&(t=document);var i=[],r=[].slice.call(t.querySelectorAll("["+p+"]"));r=r.filter(function(t){return t.getAttribute(h)!==f});try{for(var o=d(r),s=o.next();!s.done;s=o.next()){var a=s.value,c=a.getAttribute(p);if(!c)throw new Error("(mdc-auto-init) Constructor name must be given.");var u=_[c];if("function"!=typeof u)throw new Error("(mdc-auto-init) Could not find constructor in registry for "+c);var l=u.attachTo(a);Object.defineProperty(a,c,{configurable:!0,enumerable:!1,value:l,writable:!1}),i.push(l),a.setAttribute(h,f)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),document.dispatchEvent(i)}("MDCAutoInit:End",{}),i}(e.mdcAutoInit=o).register=function(t,e,n){if(void 0===n&&(n=r),"function"!=typeof e)throw new Error("(mdc-auto-init) Invalid Constructor value: "+e+". Expected function.");var i=_[t];i&&n("(mdc-auto-init) Overriding registration for "+t+" with "+e+". Was: "+i),_[t]=e},o.deregister=function(t){delete _[t]},o.deregisterAll=function(){Object.keys(_).forEach(this.deregister,this)},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings={AUTO_INIT_ATTR:"data-mdc-auto-init",AUTO_INIT_STATE_ATTR:"data-mdc-auto-init-state",INITIALIZED_STATE:"initialized"}},function(t,n,e){"use strict";function i(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}Object.defineProperty(n,"__esModule",{value:!0}),i(e(122)),i(e(18)),i(e(43))},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=n(1),a=n(2),c=n(18),u=n(43),l=(o=s.MDCComponent,r(d,o),d.attachTo=function(t){return new d(t)},d.prototype.initialize=function(){var n=this;this.contentEl=this.root.querySelector(c.selectors.CONTENT),this.textEl=this.root.querySelector(c.selectors.TEXT),this.primaryActionEl=this.root.querySelector(c.selectors.PRIMARY_ACTION),this.secondaryActionEl=this.root.querySelector(c.selectors.SECONDARY_ACTION),this.handleContentClick=function(t){var e=t.target;a.closest(e,c.selectors.PRIMARY_ACTION)?n.foundation.handlePrimaryActionClick():a.closest(e,c.selectors.SECONDARY_ACTION)&&n.foundation.handleSecondaryActionClick()}},d.prototype.initialSyncWithDOM=function(){this.registerContentClickHandler(this.handleContentClick)},d.prototype.destroy=function(){o.prototype.destroy.call(this),this.deregisterContentClickHandler(this.handleContentClick)},d.prototype.layout=function(){this.foundation.layout()},d.prototype.open=function(){this.foundation.open()},d.prototype.close=function(t){this.foundation.close(t)},d.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){n.root.classList.add(t)},getContentHeight:function(){return n.contentEl.offsetHeight},notifyClosed:function(t){n.emit(c.events.CLOSED,{reason:t})},notifyClosing:function(t){n.emit(c.events.CLOSING,{reason:t})},notifyOpened:function(){n.emit(c.events.OPENED,{})},notifyOpening:function(){n.emit(c.events.OPENING,{})},removeClass:function(t){n.root.classList.remove(t)},setStyleProperty:function(t,e){n.root.style.setProperty(t,e)}};return new u.MDCBannerFoundation(t)},Object.defineProperty(d.prototype,"isOpen",{get:function(){return this.foundation.isOpen()},enumerable:!0,configurable:!0}),d.prototype.getText=function(){return this.textEl.textContent||""},d.prototype.setText=function(t){this.textEl.textContent=t},d.prototype.getPrimaryActionText=function(){return this.primaryActionEl.textContent||""},d.prototype.setPrimaryActionText=function(t){this.primaryActionEl.textContent=t},d.prototype.getSecondaryActionText=function(){return this.secondaryActionEl?this.secondaryActionEl.textContent||"":null},d.prototype.setSecondaryActionText=function(t){this.secondaryActionEl&&(this.secondaryActionEl.textContent=t)},d.prototype.registerContentClickHandler=function(t){this.contentEl.addEventListener("click",t)},d.prototype.deregisterContentClickHandler=function(t){this.contentEl.removeEventListener("click",t)},d);function d(){return null!==o&&o.apply(this,arguments)||this}e.MDCBanner=l},function(t,n,e){"use strict";function i(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}Object.defineProperty(n,"__esModule",{value:!0}),i(e(1)),i(e(0))},function(t,n,e){"use strict";function i(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}Object.defineProperty(n,"__esModule",{value:!0}),i(e(44)),i(e(20)),i(e(46))},function(t,n,e){"use strict";function i(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}Object.defineProperty(n,"__esModule",{value:!0}),i(e(126)),i(e(127)),i(e(128))},function(t,n,e){"use strict";function i(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}Object.defineProperty(n,"__esModule",{value:!0}),i(e(47)),i(e(48));var r=e(11);n.trailingActionStrings=r.strings},function(t,n,e){"use strict";function i(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}Object.defineProperty(n,"__esModule",{value:!0}),i(e(49)),i(e(21));var r=e(12);n.chipCssClasses=r.cssClasses,n.chipStrings=r.strings},function(t,n,e){"use strict";function i(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}Object.defineProperty(n,"__esModule",{value:!0}),i(e(129)),i(e(50));var r=e(51);n.chipSetCssClasses=r.cssClasses,n.chipSetStrings=r.strings},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=n(1),a=n(130),c=n(49),u=n(21),l=n(50),d=u.MDCChipFoundation.strings,p=d.INTERACTION_EVENT,h=d.SELECTION_EVENT,f=d.REMOVAL_EVENT,_=d.NAVIGATION_EVENT,y=l.MDCChipSetFoundation.strings.CHIP_SELECTOR,C=0,m=(o=s.MDCComponent,r(E,o),E.attachTo=function(t){return new E(t)},Object.defineProperty(E.prototype,"chips",{get:function(){return this.chips_.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"selectedChipIds",{get:function(){return this.foundation.getSelectedChipIds()},enumerable:!0,configurable:!0}),E.prototype.initialize=function(t){void 0===t&&(t=function(t){return new c.MDCChip(t)}),this.chipFactory_=t,this.chips_=this.instantiateChips_(this.chipFactory_)},E.prototype.initialSyncWithDOM=function(){var e=this;this.chips_.forEach(function(t){t.id&&t.selected&&e.foundation.select(t.id)}),this.handleChipInteraction_=function(t){return e.foundation.handleChipInteraction(t.detail)},this.handleChipSelection_=function(t){return e.foundation.handleChipSelection(t.detail)},this.handleChipRemoval_=function(t){return e.foundation.handleChipRemoval(t.detail)},this.handleChipNavigation_=function(t){return e.foundation.handleChipNavigation(t.detail)},this.listen(p,this.handleChipInteraction_),this.listen(h,this.handleChipSelection_),this.listen(f,this.handleChipRemoval_),this.listen(_,this.handleChipNavigation_)},E.prototype.destroy=function(){this.chips_.forEach(function(t){t.destroy()}),this.unlisten(p,this.handleChipInteraction_),this.unlisten(h,this.handleChipSelection_),this.unlisten(f,this.handleChipRemoval_),this.unlisten(_,this.handleChipNavigation_),o.prototype.destroy.call(this)},E.prototype.addChip=function(t){t.id=t.id||"mdc-chip-"+ ++C,this.chips_.push(this.chipFactory_(t))},E.prototype.getDefaultFoundation=function(){var i=this,t={announceMessage:function(t){a.announce(t)},focusChipPrimaryActionAtIndex:function(t){i.chips_[t].focusPrimaryAction()},focusChipTrailingActionAtIndex:function(t){i.chips_[t].focusTrailingAction()},getChipListCount:function(){return i.chips_.length},getIndexOfChipById:function(t){return i.findChipIndex_(t)},hasClass:function(t){return i.root.classList.contains(t)},isRTL:function(){return"rtl"===window.getComputedStyle(i.root).getPropertyValue("direction")},removeChipAtIndex:function(t){0<=t&&t=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var s,a=n(1),c=n(44),u=n(2),l=n(54),d=n(22),p=n(57),h=(s=a.MDCComponent,r(f,s),f.attachTo=function(t){return new f(t)},f.prototype.initialize=function(t){void 0===t&&(t=function(t){return new c.MDCCheckbox(t)}),this.checkboxFactory=t},f.prototype.initialSyncWithDOM=function(){var e=this;this.headerRow=this.root.querySelector("."+d.cssClasses.HEADER_ROW),this.handleHeaderRowCheckboxChange=function(){e.foundation.handleHeaderRowCheckboxChange()},this.headerRow.addEventListener("change",this.handleHeaderRowCheckboxChange),this.headerRowClickListener=function(t){e.handleHeaderRowClick(t)},this.headerRow.addEventListener("click",this.headerRowClickListener),this.content=this.root.querySelector("."+d.cssClasses.CONTENT),this.handleRowCheckboxChange=function(t){e.foundation.handleRowCheckboxChange(t)},this.content.addEventListener("change",this.handleRowCheckboxChange),this.layout()},f.prototype.layout=function(){this.foundation.layout()},f.prototype.getHeaderCells=function(){return[].slice.call(this.root.querySelectorAll(d.selectors.HEADER_CELL))},f.prototype.getRows=function(){return this.foundation.getRows()},f.prototype.getSelectedRowIds=function(){return this.foundation.getSelectedRowIds()},f.prototype.setSelectedRowIds=function(t){this.foundation.setSelectedRowIds(t)},f.prototype.showProgress=function(){this.getLinearProgress().open(),this.foundation.showProgress()},f.prototype.hideProgress=function(){this.foundation.hideProgress(),this.getLinearProgress().close()},f.prototype.destroy=function(){var e,t;if(this.handleHeaderRowCheckboxChange&&this.headerRow.removeEventListener("change",this.handleHeaderRowCheckboxChange),this.headerRowClickListener&&this.headerRow.removeEventListener("click",this.headerRowClickListener),this.handleRowCheckboxChange&&this.content.removeEventListener("change",this.handleRowCheckboxChange),this.headerRowCheckbox&&this.headerRowCheckbox.destroy(),this.rowCheckboxList)try{for(var n=o(this.rowCheckboxList),i=n.next();!i.done;i=n.next())i.value.destroy()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},f.prototype.getDefaultFoundation=function(){var i=this,t={addClass:function(t){i.root.classList.add(t)},removeClass:function(t){i.root.classList.remove(t)},getHeaderCellElements:function(){return i.getHeaderCells()},getHeaderCellCount:function(){return i.getHeaderCells().length},getAttributeByHeaderCellIndex:function(t,e){return i.getHeaderCells()[t].getAttribute(e)},setAttributeByHeaderCellIndex:function(t,e,n){i.getHeaderCells()[t].setAttribute(e,n)},setClassNameByHeaderCellIndex:function(t,e){i.getHeaderCells()[t].classList.add(e)},removeClassNameByHeaderCellIndex:function(t,e){i.getHeaderCells()[t].classList.remove(e)},notifySortAction:function(t){i.emit(d.events.SORTED,t,!0)},getTableContainerHeight:function(){var t=i.root.querySelector("."+d.cssClasses.TABLE_CONTAINER);if(!t)throw new Error("MDCDataTable: Table container element not found.");return t.getBoundingClientRect().height},getTableHeaderHeight:function(){var t=i.root.querySelector(d.selectors.HEADER_ROW);if(!t)throw new Error("MDCDataTable: Table header element not found.");return t.getBoundingClientRect().height},setProgressIndicatorStyles:function(t){var e=i.root.querySelector(d.selectors.PROGRESS_INDICATOR);if(!e)throw new Error("MDCDataTable: Progress indicator element not found.");e.style.setProperty("height",t.height),e.style.setProperty("top",t.top)},addClassAtRowIndex:function(t,e){i.getRows()[t].classList.add(e)},getRowCount:function(){return i.getRows().length},getRowElements:function(){return[].slice.call(i.root.querySelectorAll(d.selectors.ROW))},getRowIdAtIndex:function(t){return i.getRows()[t].getAttribute(d.dataAttributes.ROW_ID)},getRowIndexByChildElement:function(t){return i.getRows().indexOf(u.closest(t,d.selectors.ROW))},getSelectedRowCount:function(){return i.root.querySelectorAll(d.selectors.ROW_SELECTED).length},isCheckboxAtRowIndexChecked:function(t){return i.rowCheckboxList[t].checked},isHeaderRowCheckboxChecked:function(){return i.headerRowCheckbox.checked},isRowsSelectable:function(){return!!i.root.querySelector(d.selectors.ROW_CHECKBOX)||!!i.root.querySelector(d.selectors.HEADER_ROW_CHECKBOX)},notifyRowSelectionChanged:function(t){i.emit(d.events.ROW_SELECTION_CHANGED,{row:i.getRowByIndex(t.rowIndex),rowId:i.getRowIdByIndex(t.rowIndex),rowIndex:t.rowIndex,selected:t.selected},!0)},notifySelectedAll:function(){i.emit(d.events.SELECTED_ALL,{},!0)},notifyUnselectedAll:function(){i.emit(d.events.UNSELECTED_ALL,{},!0)},registerHeaderRowCheckbox:function(){i.headerRowCheckbox&&i.headerRowCheckbox.destroy();var t=i.root.querySelector(d.selectors.HEADER_ROW_CHECKBOX);i.headerRowCheckbox=i.checkboxFactory(t)},registerRowCheckboxes:function(){i.rowCheckboxList&&i.rowCheckboxList.forEach(function(t){t.destroy()}),i.rowCheckboxList=[],i.getRows().forEach(function(t){var e=i.checkboxFactory(t.querySelector(d.selectors.ROW_CHECKBOX));i.rowCheckboxList.push(e)})},removeClassAtRowIndex:function(t,e){i.getRows()[t].classList.remove(e)},setAttributeAtRowIndex:function(t,e,n){i.getRows()[t].setAttribute(e,n)},setHeaderRowCheckboxChecked:function(t){i.headerRowCheckbox.checked=t},setHeaderRowCheckboxIndeterminate:function(t){i.headerRowCheckbox.indeterminate=t},setRowCheckboxCheckedAtIndex:function(t,e){i.rowCheckboxList[t].checked=e},setSortStatusLabelByHeaderCellIndex:function(t,e){var n=i.getHeaderCells()[t].querySelector(d.selectors.SORT_STATUS_LABEL);n&&(n.textContent=i.getSortStatusMessageBySortValue(e))}};return new p.MDCDataTableFoundation(t)},f.prototype.getRowByIndex=function(t){return this.getRows()[t]},f.prototype.getRowIdByIndex=function(t){return this.getRowByIndex(t).getAttribute(d.dataAttributes.ROW_ID)},f.prototype.handleHeaderRowClick=function(t){var e=u.closest(t.target,d.selectors.HEADER_CELL_WITH_SORT);if(e){var n=e.getAttribute(d.dataAttributes.COLUMN_ID),i=this.getHeaderCells().indexOf(e);-1!==i&&this.foundation.handleSortAction({columnId:n,columnIndex:i,headerCell:e})}},f.prototype.getSortStatusMessageBySortValue=function(t){switch(t){case d.SortValue.ASCENDING:return d.messages.SORTED_IN_ASCENDING;case d.SortValue.DESCENDING:return d.messages.SORTED_IN_DESCENDING;default:return""}},f.prototype.getLinearProgressElement=function(){var t=this.root.querySelector("."+d.cssClasses.LINEAR_PROGRESS);if(!t)throw new Error("MDCDataTable: linear progress element is not found.");return t},f.prototype.getLinearProgress=function(){if(!this.linearProgress){var t=this.getLinearProgressElement();this.linearProgress=new l.MDCLinearProgress(t)}return this.linearProgress},f);function f(){return null!==s&&s.apply(this,arguments)||this}e.MDCDataTable=h},function(t,n,e){"use strict";function i(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(n,"__esModule",{value:!0});var o=r(e(58));n.util=o,i(e(136)),i(e(61)),i(e(59))},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var s,c=n(1),u=n(23),l=n(2),d=n(3),p=n(59),h=o(n(58)),f=p.MDCDialogFoundation.strings,_=(s=c.MDCComponent,r(y,s),Object.defineProperty(y.prototype,"isOpen",{get:function(){return this.foundation.isOpen()},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"escapeKeyAction",{get:function(){return this.foundation.getEscapeKeyAction()},set:function(t){this.foundation.setEscapeKeyAction(t)},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"scrimClickAction",{get:function(){return this.foundation.getScrimClickAction()},set:function(t){this.foundation.setScrimClickAction(t)},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"autoStackButtons",{get:function(){return this.foundation.getAutoStackButtons()},set:function(t){this.foundation.setAutoStackButtons(t)},enumerable:!0,configurable:!0}),y.attachTo=function(t){return new y(t)},y.prototype.initialize=function(t){var e,n;void 0===t&&(t=function(t,e){return new u.FocusTrap(t,e)});var i=this.root.querySelector(f.CONTAINER_SELECTOR);if(!i)throw new Error("Dialog component requires a "+f.CONTAINER_SELECTOR+" container element");this.container=i,this.content=this.root.querySelector(f.CONTENT_SELECTOR),this.buttons=[].slice.call(this.root.querySelectorAll(f.BUTTON_SELECTOR)),this.defaultButton=this.root.querySelector("["+f.BUTTON_DEFAULT_ATTRIBUTE+"]"),this.focusTrapFactory=t,this.buttonRipples=[];try{for(var r=a(this.buttons),o=r.next();!o.done;o=r.next()){var s=o.value;this.buttonRipples.push(new d.MDCRipple(s))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},y.prototype.initialSyncWithDOM=function(){var e=this;this.focusTrap=h.createFocusTrapInstance(this.container,this.focusTrapFactory,this.getInitialFocusEl()||void 0),this.handleClick=this.foundation.handleClick.bind(this.foundation),this.handleKeydown=this.foundation.handleKeydown.bind(this.foundation),this.handleDocumentKeydown=this.foundation.handleDocumentKeydown.bind(this.foundation),this.handleLayout=this.layout.bind(this);var t=["resize","orientationchange"];this.handleOpening=function(){t.forEach(function(t){window.addEventListener(t,e.handleLayout)}),document.addEventListener("keydown",e.handleDocumentKeydown)},this.handleClosing=function(){t.forEach(function(t){window.removeEventListener(t,e.handleLayout)}),document.removeEventListener("keydown",e.handleDocumentKeydown)},this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown),this.listen(f.OPENING_EVENT,this.handleOpening),this.listen(f.CLOSING_EVENT,this.handleClosing)},y.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.unlisten("keydown",this.handleKeydown),this.unlisten(f.OPENING_EVENT,this.handleOpening),this.unlisten(f.CLOSING_EVENT,this.handleClosing),this.handleClosing(),this.buttonRipples.forEach(function(t){t.destroy()}),s.prototype.destroy.call(this)},y.prototype.layout=function(){this.foundation.layout()},y.prototype.open=function(){this.foundation.open()},y.prototype.close=function(t){void 0===t&&(t=""),this.foundation.close(t)},y.prototype.getDefaultFoundation=function(){var n=this,t={addBodyClass:function(t){return document.body.classList.add(t)},addClass:function(t){return n.root.classList.add(t)},areButtonsStacked:function(){return h.areTopsMisaligned(n.buttons)},clickDefaultButton:function(){n.defaultButton&&n.defaultButton.click()},eventTargetMatches:function(t,e){return!!t&&l.matches(t,e)},getActionFromEvent:function(t){if(!t.target)return"";var e=l.closest(t.target,"["+f.ACTION_ATTRIBUTE+"]");return e&&e.getAttribute(f.ACTION_ATTRIBUTE)},getInitialFocusEl:function(){return n.getInitialFocusEl()},hasClass:function(t){return n.root.classList.contains(t)},isContentScrollable:function(){return h.isScrollable(n.content)},notifyClosed:function(t){return n.emit(f.CLOSED_EVENT,t?{action:t}:{})},notifyClosing:function(t){return n.emit(f.CLOSING_EVENT,t?{action:t}:{})},notifyOpened:function(){return n.emit(f.OPENED_EVENT,{})},notifyOpening:function(){return n.emit(f.OPENING_EVENT,{})},releaseFocus:function(){n.focusTrap.releaseFocus()},removeBodyClass:function(t){return document.body.classList.remove(t)},removeClass:function(t){return n.root.classList.remove(t)},reverseButtons:function(){n.buttons.reverse(),n.buttons.forEach(function(t){t.parentElement.appendChild(t)})},trapFocus:function(){n.focusTrap.trapFocus()},registerContentEventHandler:function(t,e){n.content instanceof HTMLElement&&n.content.addEventListener(t,e)},deregisterContentEventHandler:function(t,e){n.content instanceof HTMLElement&&n.content.removeEventListener(t,e)},isScrollableContentAtTop:function(){return h.isScrollAtTop(n.content)},isScrollableContentAtBottom:function(){return h.isScrollAtBottom(n.content)}};return new p.MDCDialogFoundation(t)},y.prototype.getInitialFocusEl=function(){return this.root.querySelector("["+f.INITIAL_FOCUS_ATTRIBUTE+"]")},y);function y(){return null!==s&&s.apply(this,arguments)||this}e.MDCDialog=_},function(t,e,n){"use strict";var i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(5));e.events=r;var o=i(n(23));e.focusTrap=o;var s=i(n(6));e.keyboard=s;var a=i(n(2));e.ponyfill=a},function(t,n,e){"use strict";function i(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(n,"__esModule",{value:!0});var o=r(e(62));n.util=o,i(e(139)),i(e(64)),i(e(25)),i(e(65))},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var s,a=n(1),c=n(23),u=n(24),l=n(13),d=n(25),p=n(65),h=o(n(62)),f=d.MDCDismissibleDrawerFoundation.cssClasses,_=d.MDCDismissibleDrawerFoundation.strings,y=(s=a.MDCComponent,r(C,s),C.attachTo=function(t){return new C(t)},Object.defineProperty(C.prototype,"open",{get:function(){return this.foundation.isOpen()},set:function(t){t?this.foundation.open():this.foundation.close()},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"list",{get:function(){return this.list_},enumerable:!0,configurable:!0}),C.prototype.initialize=function(t,e){void 0===t&&(t=function(t){return new c.FocusTrap(t)}),void 0===e&&(e=function(t){return new u.MDCList(t)});var n=this.root.querySelector("."+l.MDCListFoundation.cssClasses.ROOT);n&&(this.list_=e(n),this.list_.wrapFocus=!0),this.focusTrapFactory_=t},C.prototype.initialSyncWithDOM=function(){var e=this,t=f.MODAL,n=_.SCRIM_SELECTOR;this.scrim_=this.root.parentNode.querySelector(n),this.scrim_&&this.root.classList.contains(t)&&(this.handleScrimClick_=function(){return e.foundation.handleScrimClick()},this.scrim_.addEventListener("click",this.handleScrimClick_),this.focusTrap_=h.createFocusTrapInstance(this.root,this.focusTrapFactory_)),this.handleKeydown_=function(t){return e.foundation.handleKeydown(t)},this.handleTransitionEnd_=function(t){return e.foundation.handleTransitionEnd(t)},this.listen("keydown",this.handleKeydown_),this.listen("transitionend",this.handleTransitionEnd_)},C.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown_),this.unlisten("transitionend",this.handleTransitionEnd_),this.list_&&this.list_.destroy();var t=f.MODAL;this.scrim_&&this.handleScrimClick_&&this.root.classList.contains(t)&&(this.scrim_.removeEventListener("click",this.handleScrimClick_),this.open=!1)},C.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},elementHasClass:function(t,e){return t.classList.contains(e)},saveFocus:function(){return e.previousFocus_=document.activeElement},restoreFocus:function(){var t=e.previousFocus_;t&&t.focus&&e.root.contains(document.activeElement)&&t.focus()},focusActiveNavigationItem:function(){var t=e.root.querySelector("."+l.MDCListFoundation.cssClasses.LIST_ITEM_ACTIVATED_CLASS);t&&t.focus()},notifyClose:function(){return e.emit(_.CLOSE_EVENT,{},!0)},notifyOpen:function(){return e.emit(_.OPEN_EVENT,{},!0)},trapFocus:function(){return e.focusTrap_.trapFocus()},releaseFocus:function(){return e.focusTrap_.releaseFocus()}},n=f.DISMISSIBLE,i=f.MODAL;if(this.root.classList.contains(n))return new d.MDCDismissibleDrawerFoundation(t);if(this.root.classList.contains(i))return new p.MDCModalDrawerFoundation(t);throw new Error("MDCDrawer: Failed to instantiate component. Supported variants are "+n+" and "+i+".")},C);function C(){return null!==s&&s.apply(this,arguments)||this}e.MDCDrawer=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var y=n(6),u=n(7),C=n(63);function m(t,e){var n,i=t.nextChar,r=t.focusItemAtIndex,o=t.sortedIndexByFirstChar,s=t.focusedItemIndex,a=t.skipFocus,c=t.isItemAtIndexDisabled;return clearTimeout(e.bufferClearTimeout),e.bufferClearTimeout=setTimeout(function(){l(e)},u.numbers.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),e.typeaheadBuffer=e.typeaheadBuffer+i,-1===(n=1===e.typeaheadBuffer.length?function(t,e,n,i){var r=i.typeaheadBuffer[0],o=t.get(r);if(!o)return-1;if(r===i.currentFirstChar&&o[i.sortedIndexCursor].index===e){i.sortedIndexCursor=(i.sortedIndexCursor+1)%o.length;var s=o[i.sortedIndexCursor].index;if(!n(s))return s}i.currentFirstChar=r;var a,c=-1;for(a=0;ae&&!n(o[a].index)){c=a;break}return-1===c?-1:(i.sortedIndexCursor=c,o[i.sortedIndexCursor].index)}(o,s,c,e):function(t,e,n){var i=n.typeaheadBuffer[0],r=t.get(i);if(!r)return-1;var o=r[n.sortedIndexCursor];if(0===o.text.lastIndexOf(n.typeaheadBuffer,0)&&!e(o.index))return o.index;var s=(n.sortedIndexCursor+1)%r.length,a=-1;for(;s!==n.sortedIndexCursor;){var c=r[s],u=0===c.text.lastIndexOf(n.typeaheadBuffer,0),l=!e(c.index);if(u&&l){a=s;break}s=(s+1)%r.length}return-1===a?-1:(n.sortedIndexCursor=a,r[n.sortedIndexCursor].index)}(o,c,e))||a||r(n),n}function E(t){return 0