UNPKG

material-components-vue

Version:
2 lines 48.7 kB
/*! For license information please see menu.min.js.LICENSE */ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}}(window,(function(){return n={},t.m=e={0:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"e",(function(){return r})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return a}));var 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 o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s=function(){return(s=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function r(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,s=n.call(t),r=[];try{for(;(void 0===e||0<e--)&&!(i=s.next()).done;)r.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return r}function a(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(u(arguments[e]));return t}},1:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return s}));var i={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",ROOT:"mdc-list"},o={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"]:not(:disabled), input[type="radio"]:not(:disabled)',CHECKBOX_SELECTOR:'input[type="checkbox"]:not(:disabled)',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+i.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+i.LIST_ITEM_CLASS+" a\n ",FOCUSABLE_CHILD_ELEMENTS:"\n ."+i.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+i.LIST_ITEM_CLASS+" a,\n ."+i.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+i.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]:not(:disabled)'},s={UNSET_INDEX:-1}},10:function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return s}));var i,o,s,r,u={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},a={CLOSED_EVENT:"MDCMenuSurface:closed",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},c={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67};(o=i=i||{})[o.BOTTOM=1]="BOTTOM",o[o.CENTER=2]="CENTER",o[o.RIGHT=4]="RIGHT",o[o.FLIP_RTL=8]="FLIP_RTL",(r=s=s||{})[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=4]="TOP_RIGHT",r[r.BOTTOM_LEFT=1]="BOTTOM_LEFT",r[r.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",r[r.TOP_START=8]="TOP_START",r[r.TOP_END=12]="TOP_END",r[r.BOTTOM_START=9]="BOTTOM_START",r[r.BOTTOM_END=13]="BOTTOM_END"},12:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return i}));var i,o,s={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},r={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list",SELECTED_EVENT:"MDCMenu:selected"},u={FOCUS_ROOT_INDEX:-1};(o=i=i||{})[o.NONE=0]="NONE",o[o.LIST_ROOT=1]="LIST_ROOT",o[o.FIRST_ITEM=2]="FIRST_ITEM",o[o.LAST_ITEM=3]="LAST_ITEM"},14:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i,o=n(0),s=n(3),r=n(1),u=["input","button","textarea","select"],a=(i=s.a,o.b(c,i),Object.defineProperty(c,"strings",{get:function(){return r.c},enumerable:!0,configurable:!0}),Object.defineProperty(c,"cssClasses",{get:function(){return r.a},enumerable:!0,configurable:!0}),Object.defineProperty(c,"numbers",{get:function(){return r.b},enumerable:!0,configurable:!0}),Object.defineProperty(c,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},notifyAction:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){}}},enumerable:!0,configurable:!0}),c.prototype.layout=function(){0!==this.adapter_.getListItemCount()&&(this.adapter_.hasCheckboxAtIndex(0)?this.isCheckboxList_=!0:this.adapter_.hasRadioAtIndex(0)&&(this.isRadioList_=!0))},c.prototype.setWrapFocus=function(t){this.wrapFocus_=t},c.prototype.setVerticalOrientation=function(t){this.isVertical_=t},c.prototype.setSingleSelection=function(t){this.isSingleSelectionList_=t},c.prototype.setUseActivatedClass=function(t){this.useActivatedClass_=t},c.prototype.getSelectedIndex=function(){return this.selectedIndex_},c.prototype.setSelectedIndex=function(t){this.isIndexValid_(t)&&(this.isCheckboxList_?this.setCheckboxAtIndex_(t):this.isRadioList_?this.setRadioAtIndex_(t):this.setSingleSelectionAtIndex_(t))},c.prototype.handleFocusIn=function(t,e){0<=e&&this.adapter_.setTabIndexForListItemChildren(e,"0")},c.prototype.handleFocusOut=function(t,e){var n=this;0<=e&&this.adapter_.setTabIndexForListItemChildren(e,"-1"),setTimeout((function(){n.adapter_.isFocusInsideList()||n.setTabindexToFirstSelectedItem_()}),0)},c.prototype.handleKeydown=function(t,e,n){var i="ArrowLeft"===t.key||37===t.keyCode,o="ArrowUp"===t.key||38===t.keyCode,s="ArrowRight"===t.key||39===t.keyCode,r="ArrowDown"===t.key||40===t.keyCode,u="Home"===t.key||36===t.keyCode,a="End"===t.key||35===t.keyCode,c="Enter"===t.key||13===t.keyCode,d="Space"===t.key||32===t.keyCode;if(this.adapter_.isRootFocused())o||a?(t.preventDefault(),this.focusLastElement()):(r||u)&&(t.preventDefault(),this.focusFirstElement());else{var l=this.adapter_.getFocusedElementIndex();if(!(-1===l&&(l=n)<0)){var h;if(this.isVertical_&&r||!this.isVertical_&&s)this.preventDefaultEvent_(t),h=this.focusNextElement(l);else if(this.isVertical_&&o||!this.isVertical_&&i)this.preventDefaultEvent_(t),h=this.focusPrevElement(l);else if(u)this.preventDefaultEvent_(t),h=this.focusFirstElement();else if(a)this.preventDefaultEvent_(t),h=this.focusLastElement();else if((c||d)&&e){var f=t.target;if(f&&"A"===f.tagName&&c)return;this.preventDefaultEvent_(t),this.isSelectableList_()&&this.setSelectedIndexOnAction_(l),this.adapter_.notifyAction(l)}this.focusedItemIndex_=l,void 0!==h&&(this.setTabindexAtIndex_(h),this.focusedItemIndex_=h)}}},c.prototype.handleClick=function(t,e){t!==r.b.UNSET_INDEX&&(this.isSelectableList_()&&this.setSelectedIndexOnAction_(t,e),this.adapter_.notifyAction(t),this.setTabindexAtIndex_(t),this.focusedItemIndex_=t)},c.prototype.focusNextElement=function(t){var e=t+1;if(this.adapter_.getListItemCount()<=e){if(!this.wrapFocus_)return t;e=0}return this.adapter_.focusItemAtIndex(e),e},c.prototype.focusPrevElement=function(t){var e=t-1;if(e<0){if(!this.wrapFocus_)return t;e=this.adapter_.getListItemCount()-1}return this.adapter_.focusItemAtIndex(e),e},c.prototype.focusFirstElement=function(){return this.adapter_.focusItemAtIndex(0),0},c.prototype.focusLastElement=function(){var t=this.adapter_.getListItemCount()-1;return this.adapter_.focusItemAtIndex(t),t},c.prototype.setEnabled=function(t,e){this.isIndexValid_(t)&&(e?(this.adapter_.removeClassForElementIndex(t,r.a.LIST_ITEM_DISABLED_CLASS),this.adapter_.setAttributeForElementIndex(t,r.c.ARIA_DISABLED,"false")):(this.adapter_.addClassForElementIndex(t,r.a.LIST_ITEM_DISABLED_CLASS),this.adapter_.setAttributeForElementIndex(t,r.c.ARIA_DISABLED,"true")))},c.prototype.preventDefaultEvent_=function(t){var e=(""+t.target.tagName).toLowerCase();-1===u.indexOf(e)&&t.preventDefault()},c.prototype.setSingleSelectionAtIndex_=function(t){if(this.selectedIndex_!==t){var e=r.a.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass_&&(e=r.a.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex_!==r.b.UNSET_INDEX&&this.adapter_.removeClassForElementIndex(this.selectedIndex_,e),this.adapter_.addClassForElementIndex(t,e),this.setAriaForSingleSelectionAtIndex_(t),this.selectedIndex_=t}},c.prototype.setAriaForSingleSelectionAtIndex_=function(t){this.selectedIndex_===r.b.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter_.getAttributeForElementIndex(t,r.c.ARIA_CURRENT));var e=null!==this.ariaCurrentAttrValue_,n=e?r.c.ARIA_CURRENT:r.c.ARIA_SELECTED;this.selectedIndex_!==r.b.UNSET_INDEX&&this.adapter_.setAttributeForElementIndex(this.selectedIndex_,n,"false");var i=e?this.ariaCurrentAttrValue_:"true";this.adapter_.setAttributeForElementIndex(t,n,i)},c.prototype.setRadioAtIndex_=function(t){this.adapter_.setCheckedCheckboxOrRadioAtIndex(t,!0),this.selectedIndex_!==r.b.UNSET_INDEX&&this.adapter_.setAttributeForElementIndex(this.selectedIndex_,r.c.ARIA_CHECKED,"false"),this.adapter_.setAttributeForElementIndex(t,r.c.ARIA_CHECKED,"true"),this.selectedIndex_=t},c.prototype.setCheckboxAtIndex_=function(t){for(var e=0;e<this.adapter_.getListItemCount();e++){var n=!1;0<=t.indexOf(e)&&(n=!0),this.adapter_.setCheckedCheckboxOrRadioAtIndex(e,n),this.adapter_.setAttributeForElementIndex(e,r.c.ARIA_CHECKED,n?"true":"false")}this.selectedIndex_=t},c.prototype.setTabindexAtIndex_=function(t){this.focusedItemIndex_===r.b.UNSET_INDEX&&0!==t?this.adapter_.setAttributeForElementIndex(0,"tabindex","-1"):0<=this.focusedItemIndex_&&this.focusedItemIndex_!==t&&this.adapter_.setAttributeForElementIndex(this.focusedItemIndex_,"tabindex","-1"),this.adapter_.setAttributeForElementIndex(t,"tabindex","0")},c.prototype.isSelectableList_=function(){return this.isSingleSelectionList_||this.isCheckboxList_||this.isRadioList_},c.prototype.setTabindexToFirstSelectedItem_=function(){var t=0;this.isSelectableList_()&&("number"==typeof this.selectedIndex_&&this.selectedIndex_!==r.b.UNSET_INDEX?t=this.selectedIndex_:function(t){return t instanceof Array}(this.selectedIndex_)&&0<this.selectedIndex_.length&&(t=this.selectedIndex_.reduce((function(t,e){return Math.min(t,e)})))),this.setTabindexAtIndex_(t)},c.prototype.isIndexValid_=function(t){var e=this;if(t instanceof Array){if(!this.isCheckboxList_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===t.length||t.some((function(t){return e.isIndexInRange_(t)}))}if("number"!=typeof t)return!1;if(this.isCheckboxList_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return this.isIndexInRange_(t)},c.prototype.isIndexInRange_=function(t){var e=this.adapter_.getListItemCount();return 0<=t&&t<e},c.prototype.setSelectedIndexOnAction_=function(t,e){void 0===e&&(e=!0),this.isCheckboxList_?this.toggleCheckboxAtIndex_(t,e):this.setSelectedIndex(t)},c.prototype.toggleCheckboxAtIndex_=function(t,e){var n=this.adapter_.isCheckboxCheckedAtIndex(t);e&&(n=!n,this.adapter_.setCheckedCheckboxOrRadioAtIndex(t,n)),this.adapter_.setAttributeForElementIndex(t,r.c.ARIA_CHECKED,n?"true":"false");var i=this.selectedIndex_===r.b.UNSET_INDEX?[]:this.selectedIndex_.slice();n?i.push(t):i=i.filter((function(e){return e!==t})),this.selectedIndex_=i},c);function c(t){var e=i.call(this,o.a({},c.defaultAdapter,t))||this;return e.wrapFocus_=!1,e.isVertical_=!0,e.isSingleSelectionList_=!1,e.selectedIndex_=r.b.UNSET_INDEX,e.focusedItemIndex_=r.b.UNSET_INDEX,e.useActivatedClass_=!1,e.ariaCurrentAttrValue_=null,e.isCheckboxList_=!1,e.isRadioList_=!1,e}},15:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i,o=n(0),s=n(3),r=n(10),u=(i=s.a,o.b(a,i),Object.defineProperty(a,"cssClasses",{get:function(){return r.c},enumerable:!0,configurable:!0}),Object.defineProperty(a,"strings",{get:function(){return r.e},enumerable:!0,configurable:!0}),Object.defineProperty(a,"numbers",{get:function(){return r.d},enumerable:!0,configurable:!0}),Object.defineProperty(a,"Corner",{get:function(){return r.a},enumerable:!0,configurable:!0}),Object.defineProperty(a,"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(){}}},enumerable:!0,configurable:!0}),a.prototype.init=function(){var t=a.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.isOpen_=!0)},a.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId_),clearTimeout(this.closeAnimationEndTimerId_),cancelAnimationFrame(this.animationRequestId_)},a.prototype.setAnchorCorner=function(t){this.anchorCorner_=t},a.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},a.prototype.setIsHoisted=function(t){this.isHoistedElement_=t},a.prototype.setFixedPosition=function(t){this.isFixedPosition_=t},a.prototype.setAbsolutePosition=function(t,e){this.position_.x=this.isFinite_(t)?t:0,this.position_.y=this.isFinite_(e)?e:0},a.prototype.setQuickOpen=function(t){this.isQuickOpen_=t},a.prototype.isOpen=function(){return this.isOpen_},a.prototype.open=function(){var t=this;this.adapter_.saveFocus(),this.isQuickOpen_||this.adapter_.addClass(a.cssClasses.ANIMATING_OPEN),this.animationRequestId_=requestAnimationFrame((function(){t.adapter_.addClass(a.cssClasses.OPEN),t.dimensions_=t.adapter_.getInnerDimensions(),t.autoPosition_(),t.isQuickOpen_?t.adapter_.notifyOpen():t.openAnimationEndTimerId_=setTimeout((function(){t.openAnimationEndTimerId_=0,t.adapter_.removeClass(a.cssClasses.ANIMATING_OPEN),t.adapter_.notifyOpen()}),r.d.TRANSITION_OPEN_DURATION)})),this.isOpen_=!0},a.prototype.close=function(t){var e=this;void 0===t&&(t=!1),this.isQuickOpen_||this.adapter_.addClass(a.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function(){e.adapter_.removeClass(a.cssClasses.OPEN),e.isQuickOpen_?e.adapter_.notifyClose():e.closeAnimationEndTimerId_=setTimeout((function(){e.closeAnimationEndTimerId_=0,e.adapter_.removeClass(a.cssClasses.ANIMATING_CLOSED),e.adapter_.notifyClose()}),r.d.TRANSITION_CLOSE_DURATION)})),this.isOpen_=!1,t||this.maybeRestoreFocus_()},a.prototype.handleBodyClick=function(t){var e=t.target;this.adapter_.isElementInContainer(e)||this.close()},a.prototype.handleKeydown=function(t){var e=t.keyCode;"Escape"!==t.key&&27!==e||this.close()},a.prototype.autoPosition_=function(){var t;this.measurements_=this.getAutoLayoutMeasurements_();var e=this.getOriginCorner_(),n=this.getMenuSurfaceMaxHeight_(e),i=this.hasBit_(e,r.b.BOTTOM)?"bottom":"top",o=this.hasBit_(e,r.b.RIGHT)?"right":"left",s=this.getHorizontalOriginOffset_(e),u=this.getVerticalOriginOffset_(e),a=this.measurements_,c=a.anchorSize,d=a.surfaceSize,l=((t={})[o]=s,t[i]=u,t);c.width/d.width>r.d.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(o="center"),(this.isHoistedElement_||this.isFixedPosition_)&&this.adjustPositionForHoistedElement_(l),this.adapter_.setTransformOrigin(o+" "+i),this.adapter_.setPosition(l),this.adapter_.setMaxHeight(n?n+"px":"")},a.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}},a.prototype.getOriginCorner_=function(){var t=r.a.TOP_LEFT,e=this.measurements_,n=e.viewportDistance,i=e.anchorSize,o=e.surfaceSize,s=this.hasBit_(this.anchorCorner_,r.b.BOTTOM),u=s?n.top+i.height+this.anchorMargin_.bottom:n.top+this.anchorMargin_.top,a=s?n.bottom-this.anchorMargin_.bottom:n.bottom+i.height-this.anchorMargin_.top,c=o.height-u,d=o.height-a;0<d&&c<d&&(t=this.setBit_(t,r.b.BOTTOM));var l=this.adapter_.isRtl(),h=this.hasBit_(this.anchorCorner_,r.b.FLIP_RTL),f=this.hasBit_(this.anchorCorner_,r.b.RIGHT),_=f&&!l||!f&&h&&l,p=_?n.left+i.width+this.anchorMargin_.right:n.left+this.anchorMargin_.left,m=_?n.right-this.anchorMargin_.right:n.right+i.width-this.anchorMargin_.left,E=o.width-p,I=o.width-m;return(E<0&&_&&l||f&&!_&&E<0||0<I&&E<I)&&(t=this.setBit_(t,r.b.RIGHT)),t},a.prototype.getMenuSurfaceMaxHeight_=function(t){var e=this.measurements_.viewportDistance,n=0,i=this.hasBit_(t,r.b.BOTTOM),o=this.hasBit_(this.anchorCorner_,r.b.BOTTOM),s=a.numbers.MARGIN_TO_EDGE;return i?(n=e.top+this.anchorMargin_.top-s,o||(n+=this.measurements_.anchorSize.height)):(n=e.bottom-this.anchorMargin_.bottom+this.measurements_.anchorSize.height-s,o&&(n-=this.measurements_.anchorSize.height)),n},a.prototype.getHorizontalOriginOffset_=function(t){var e=this.measurements_.anchorSize,n=this.hasBit_(t,r.b.RIGHT),i=this.hasBit_(this.anchorCorner_,r.b.RIGHT);if(n){var o=i?e.width-this.anchorMargin_.left:this.anchorMargin_.right;return this.isHoistedElement_||this.isFixedPosition_?o-(this.measurements_.viewportSize.width-this.measurements_.bodySize.width):o}return i?e.width-this.anchorMargin_.right:this.anchorMargin_.left},a.prototype.getVerticalOriginOffset_=function(t){var e=this.measurements_.anchorSize,n=this.hasBit_(t,r.b.BOTTOM),i=this.hasBit_(this.anchorCorner_,r.b.BOTTOM);return n?i?e.height-this.anchorMargin_.top:-this.anchorMargin_.bottom:i?e.height+this.anchorMargin_.bottom:this.anchorMargin_.top},a.prototype.adjustPositionForHoistedElement_=function(t){var e,n,i=this.measurements_,s=i.windowScroll,r=i.viewportDistance,u=Object.keys(t);try{for(var a=o.e(u),c=a.next();!c.done;c=a.next()){var d=c.value,l=t[d]||0;l+=r[d],this.isFixedPosition_||("top"===d?l+=s.y:"bottom"===d?l-=s.y:"left"===d?l+=s.x:l-=s.x),t[d]=l}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}},a.prototype.maybeRestoreFocus_=function(){var t=this.adapter_.isFocused(),e=document.activeElement&&this.adapter_.isElementInContainer(document.activeElement);(t||e)&&this.adapter_.restoreFocus()},a.prototype.hasBit_=function(t,e){return Boolean(t&e)},a.prototype.setBit_=function(t,e){return t|e},a.prototype.isFinite_=function(t){return"number"==typeof t&&isFinite(t)},a);function a(t){var e=i.call(this,o.a({},a.defaultAdapter,t))||this;return e.isOpen_=!1,e.isQuickOpen_=!1,e.isHoistedElement_=!1,e.isFixedPosition_=!1,e.openAnimationEndTimerId_=0,e.closeAnimationEndTimerId_=0,e.animationRequestId_=0,e.anchorCorner_=r.a.TOP_START,e.anchorMargin_={top:0,right:0,bottom:0,left:0},e.position_={x:0,y:0},e}},18:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i,o=n(0),s=n(5),r=n(8),u=n(1),a=n(14),c=(i=s.a,o.b(d,i),Object.defineProperty(d.prototype,"vertical",{set:function(t){this.foundation_.setVerticalOrientation(t)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"listElements",{get:function(){return[].slice.call(this.root_.querySelectorAll("."+u.a.LIST_ITEM_CLASS))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"wrapFocus",{set:function(t){this.foundation_.setWrapFocus(t)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"singleSelection",{set:function(t){this.foundation_.setSingleSelection(t)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"selectedIndex",{get:function(){return this.foundation_.getSelectedIndex()},set:function(t){this.foundation_.setSelectedIndex(t)},enumerable:!0,configurable:!0}),d.attachTo=function(t){return new d(t)},d.prototype.initialSyncWithDOM=function(){this.handleClick_=this.handleClickEvent_.bind(this),this.handleKeydown_=this.handleKeydownEvent_.bind(this),this.focusInEventListener_=this.handleFocusInEvent_.bind(this),this.focusOutEventListener_=this.handleFocusOutEvent_.bind(this),this.listen("keydown",this.handleKeydown_),this.listen("click",this.handleClick_),this.listen("focusin",this.focusInEventListener_),this.listen("focusout",this.focusOutEventListener_),this.layout(),this.initializeListType()},d.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown_),this.unlisten("click",this.handleClick_),this.unlisten("focusin",this.focusInEventListener_),this.unlisten("focusout",this.focusOutEventListener_)},d.prototype.layout=function(){var t=this.root_.getAttribute(u.c.ARIA_ORIENTATION);this.vertical=t!==u.c.ARIA_ORIENTATION_HORIZONTAL,[].slice.call(this.root_.querySelectorAll(".mdc-list-item:not([tabindex])")).forEach((function(t){t.setAttribute("tabindex","-1")})),[].slice.call(this.root_.querySelectorAll(u.c.FOCUSABLE_CHILD_ELEMENTS)).forEach((function(t){return t.setAttribute("tabindex","-1")})),this.foundation_.layout()},d.prototype.initializeListType=function(){var t=this,e=this.root_.querySelectorAll(u.c.ARIA_ROLE_CHECKBOX_SELECTOR),n=this.root_.querySelector("\n ."+u.a.LIST_ITEM_ACTIVATED_CLASS+",\n ."+u.a.LIST_ITEM_SELECTED_CLASS+"\n "),i=this.root_.querySelector(u.c.ARIA_CHECKED_RADIO_SELECTOR);if(e.length){var o=this.root_.querySelectorAll(u.c.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=[].map.call(o,(function(e){return t.listElements.indexOf(e)}))}else n?(n.classList.contains(u.a.LIST_ITEM_ACTIVATED_CLASS)&&this.foundation_.setUseActivatedClass(!0),this.singleSelection=!0,this.selectedIndex=this.listElements.indexOf(n)):i&&(this.selectedIndex=this.listElements.indexOf(i))},d.prototype.setEnabled=function(t,e){this.foundation_.setEnabled(t,e)},d.prototype.getDefaultFoundation=function(){var t=this,e={addClassForElementIndex:function(e,n){var i=t.listElements[e];i&&i.classList.add(n)},focusItemAtIndex:function(e){var n=t.listElements[e];n&&n.focus()},getAttributeForElementIndex:function(e,n){return t.listElements[e].getAttribute(n)},getFocusedElementIndex:function(){return t.listElements.indexOf(document.activeElement)},getListItemCount:function(){return t.listElements.length},hasCheckboxAtIndex:function(e){return!!t.listElements[e].querySelector(u.c.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(e){return!!t.listElements[e].querySelector(u.c.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(e){return t.listElements[e].querySelector(u.c.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return t.root_.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===t.root_},notifyAction:function(e){t.emit(u.c.ACTION_EVENT,{index:e},!0)},removeClassForElementIndex:function(e,n){var i=t.listElements[e];i&&i.classList.remove(n)},setAttributeForElementIndex:function(e,n,i){var o=t.listElements[e];o&&o.setAttribute(n,i)},setCheckedCheckboxOrRadioAtIndex:function(e,n){var i=t.listElements[e].querySelector(u.c.CHECKBOX_RADIO_SELECTOR);i.checked=n;var o=document.createEvent("Event");o.initEvent("change",!0,!0),i.dispatchEvent(o)},setTabIndexForListItemChildren:function(e,n){var i=t.listElements[e];[].slice.call(i.querySelectorAll(u.c.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX)).forEach((function(t){return t.setAttribute("tabindex",n)}))}};return new a.a(e)},d.prototype.getListItemIndex_=function(t){var e=t.target,n=Object(r.a)(e,"."+u.a.LIST_ITEM_CLASS+", ."+u.a.ROOT);return n&&Object(r.b)(n,"."+u.a.LIST_ITEM_CLASS)?this.listElements.indexOf(n):-1},d.prototype.handleFocusInEvent_=function(t){var e=this.getListItemIndex_(t);this.foundation_.handleFocusIn(t,e)},d.prototype.handleFocusOutEvent_=function(t){var e=this.getListItemIndex_(t);this.foundation_.handleFocusOut(t,e)},d.prototype.handleKeydownEvent_=function(t){var e=this.getListItemIndex_(t),n=t.target;this.foundation_.handleKeydown(t,n.classList.contains(u.a.LIST_ITEM_CLASS),e)},d.prototype.handleClickEvent_=function(t){var e=this.getListItemIndex_(t),n=t.target,i=!Object(r.b)(n,u.c.CHECKBOX_RADIO_SELECTOR);this.foundation_.handleClick(e,i)},d);function d(){return null!==i&&i.apply(this,arguments)||this}},2:function(t,e,n){"use strict";var i={inheritAttrs:!1},o=["primary","secondary","background","surface","on-primary","on-secondary","on-surface","primary-bg","secondary-bg","text-primary-on-light","text-secondary-on-light","text-hint-on-light","text-disabled-on-light","text-icon-on-light","text-primary-on-dark","text-secondary-on-dark","text-hint-on-dark","text-disabled-on-dark","text-icon-on-dark"],s={props:{theming:{type:String,default:""}},mounted:function(){-1<o.indexOf(this.theming)&&this.$el.classList.add("mdc-theme--"+this.theming)}};n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return s}))},24:function(t,e,n){"use strict";var i,o=n(0),s=n(5),r=n(10),u=n(15);n.d(e,"a",(function(){return c}));var a,c=(a=s.a,o.b(d,a),d.attachTo=function(t){return new d(t)},d.prototype.initialSyncWithDOM=function(){var t=this,e=this.root_.parentElement;this.anchorElement=e&&e.classList.contains(r.c.ANCHOR)?e:null,this.root_.classList.contains(r.c.FIXED)&&this.setFixedPosition(!0),this.handleKeydown_=function(e){return t.foundation_.handleKeydown(e)},this.handleBodyClick_=function(e){return t.foundation_.handleBodyClick(e)},this.registerBodyClickListener_=function(){return document.body.addEventListener("click",t.handleBodyClick_)},this.deregisterBodyClickListener_=function(){return document.body.removeEventListener("click",t.handleBodyClick_)},this.listen("keydown",this.handleKeydown_),this.listen(r.e.OPENED_EVENT,this.registerBodyClickListener_),this.listen(r.e.CLOSED_EVENT,this.deregisterBodyClickListener_)},d.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown_),this.unlisten(r.e.OPENED_EVENT,this.registerBodyClickListener_),this.unlisten(r.e.CLOSED_EVENT,this.deregisterBodyClickListener_),a.prototype.destroy.call(this)},d.prototype.isOpen=function(){return this.foundation_.isOpen()},d.prototype.open=function(){this.foundation_.open()},d.prototype.close=function(t){void 0===t&&(t=!1),this.foundation_.close(t)},Object.defineProperty(d.prototype,"quickOpen",{set:function(t){this.foundation_.setQuickOpen(t)},enumerable:!0,configurable:!0}),d.prototype.hoistMenuToBody=function(){document.body.appendChild(this.root_),this.setIsHoisted(!0)},d.prototype.setIsHoisted=function(t){this.foundation_.setIsHoisted(t)},d.prototype.setMenuSurfaceAnchorElement=function(t){this.anchorElement=t},d.prototype.setFixedPosition=function(t){t?this.root_.classList.add(r.c.FIXED):this.root_.classList.remove(r.c.FIXED),this.foundation_.setFixedPosition(t)},d.prototype.setAbsolutePosition=function(t,e){this.foundation_.setAbsolutePosition(t,e),this.setIsHoisted(!0)},d.prototype.setAnchorCorner=function(t){this.foundation_.setAnchorCorner(t)},d.prototype.setAnchorMargin=function(t){this.foundation_.setAnchorMargin(t)},d.prototype.getDefaultFoundation=function(){var t=this,e={addClass:function(e){return t.root_.classList.add(e)},removeClass:function(e){return t.root_.classList.remove(e)},hasClass:function(e){return t.root_.classList.contains(e)},hasAnchor:function(){return!!t.anchorElement},notifyClose:function(){return t.emit(u.a.strings.CLOSED_EVENT,{})},notifyOpen:function(){return t.emit(u.a.strings.OPENED_EVENT,{})},isElementInContainer:function(e){return t.root_.contains(e)},isRtl:function(){return"rtl"===getComputedStyle(t.root_).getPropertyValue("direction")},setTransformOrigin:function(e){var n=function(t,e){if(void 0===e&&(e=!1),void 0===i||e){var n=t.document.createElement("div");i="transform"in n.style?"transform":"webkitTransform"}return i}(window)+"-origin";t.root_.style.setProperty(n,e)},isFocused:function(){return document.activeElement===t.root_},saveFocus:function(){t.previousFocus_=document.activeElement},restoreFocus:function(){t.root_.contains(document.activeElement)&&t.previousFocus_&&t.previousFocus_.focus&&t.previousFocus_.focus()},getInnerDimensions:function(){return{width:t.root_.offsetWidth,height:t.root_.offsetHeight}},getAnchorDimensions:function(){return t.anchorElement?t.anchorElement.getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(e){t.root_.style.left="left"in e?e.left+"px":"",t.root_.style.right="right"in e?e.right+"px":"",t.root_.style.top="top"in e?e.top+"px":"",t.root_.style.bottom="bottom"in e?e.bottom+"px":""},setMaxHeight:function(e){t.root_.style.maxHeight=e}};return new u.a(e)},d);function d(){return null!==a&&a.apply(this,arguments)||this}},27:function(t,e,n){"use strict";var i,o=n(0),s=n(5),r=n(8),u=n(18),a=n(14),c=n(24),d=n(15),l=n(12),h=n(3),f=n(1),_=(i=h.a,o.b(p,i),Object.defineProperty(p,"cssClasses",{get:function(){return l.b},enumerable:!0,configurable:!0}),Object.defineProperty(p,"strings",{get:function(){return l.d},enumerable:!0,configurable:!0}),Object.defineProperty(p,"numbers",{get:function(){return l.c},enumerable:!0,configurable:!0}),Object.defineProperty(p,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!0,configurable:!0}),p.prototype.destroy=function(){this.closeAnimationEndTimerId_&&clearTimeout(this.closeAnimationEndTimerId_),this.adapter_.closeSurface()},p.prototype.handleKeydown=function(t){var e=t.key,n=t.keyCode;"Tab"!==e&&9!==n||this.adapter_.closeSurface(!0)},p.prototype.handleItemAction=function(t){var e=this,n=this.adapter_.getElementIndex(t);n<0||(this.adapter_.notifySelected({index:n}),this.adapter_.closeSurface(),this.closeAnimationEndTimerId_=setTimeout((function(){var n=e.adapter_.getElementIndex(t);e.adapter_.isSelectableItemAtIndex(n)&&e.setSelectedIndex(n)}),d.a.numbers.TRANSITION_CLOSE_DURATION))},p.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState_){case l.a.FIRST_ITEM:this.adapter_.focusItemAtIndex(0);break;case l.a.LAST_ITEM:this.adapter_.focusItemAtIndex(this.adapter_.getMenuItemCount()-1);break;case l.a.NONE:break;default:this.adapter_.focusListRoot()}},p.prototype.setDefaultFocusState=function(t){this.defaultFocusState_=t},p.prototype.setSelectedIndex=function(t){if(this.validatedIndex_(t),!this.adapter_.isSelectableItemAtIndex(t))throw new Error("MDCMenuFoundation: No selection group at specified index.");var e=this.adapter_.getSelectedSiblingOfItemAtIndex(t);0<=e&&(this.adapter_.removeAttributeFromElementAtIndex(e,l.d.ARIA_CHECKED_ATTR),this.adapter_.removeClassFromElementAtIndex(e,l.b.MENU_SELECTED_LIST_ITEM)),this.adapter_.addClassToElementAtIndex(t,l.b.MENU_SELECTED_LIST_ITEM),this.adapter_.addAttributeToElementAtIndex(t,l.d.ARIA_CHECKED_ATTR,"true")},p.prototype.setEnabled=function(t,e){this.validatedIndex_(t),e?(this.adapter_.removeClassFromElementAtIndex(t,f.a.LIST_ITEM_DISABLED_CLASS),this.adapter_.addAttributeToElementAtIndex(t,l.d.ARIA_DISABLED_ATTR,"false")):(this.adapter_.addClassToElementAtIndex(t,f.a.LIST_ITEM_DISABLED_CLASS),this.adapter_.addAttributeToElementAtIndex(t,l.d.ARIA_DISABLED_ATTR,"true"))},p.prototype.validatedIndex_=function(t){var e=this.adapter_.getMenuItemCount();if(!(0<=t&&t<e))throw new Error("MDCMenuFoundation: No list item at specified index.")},p);function p(t){var e=i.call(this,o.a({},p.defaultAdapter,t))||this;return e.closeAnimationEndTimerId_=0,e.defaultFocusState_=l.a.LIST_ROOT,e}n.d(e,"a",(function(){return E}));var m,E=(m=s.a,o.b(I,m),I.attachTo=function(t){return new I(t)},I.prototype.initialize=function(t,e){void 0===t&&(t=function(t){return new c.a(t)}),void 0===e&&(e=function(t){return new u.a(t)}),this.menuSurfaceFactory_=t,this.listFactory_=e},I.prototype.initialSyncWithDOM=function(){var t=this;this.menuSurface_=this.menuSurfaceFactory_(this.root_);var e=this.root_.querySelector(l.d.LIST_SELECTOR);e?(this.list_=this.listFactory_(e),this.list_.wrapFocus=!0):this.list_=null,this.handleKeydown_=function(e){return t.foundation_.handleKeydown(e)},this.handleItemAction_=function(e){return t.foundation_.handleItemAction(t.items[e.detail.index])},this.handleMenuSurfaceOpened_=function(){return t.foundation_.handleMenuSurfaceOpened()},this.menuSurface_.listen(d.a.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.listen("keydown",this.handleKeydown_),this.listen(a.a.strings.ACTION_EVENT,this.handleItemAction_)},I.prototype.destroy=function(){this.list_&&this.list_.destroy(),this.menuSurface_.destroy(),this.menuSurface_.unlisten(d.a.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.unlisten("keydown",this.handleKeydown_),this.unlisten(a.a.strings.ACTION_EVENT,this.handleItemAction_),m.prototype.destroy.call(this)},Object.defineProperty(I.prototype,"open",{get:function(){return this.menuSurface_.isOpen()},set:function(t){t?this.menuSurface_.open():this.menuSurface_.close()},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"wrapFocus",{get:function(){return!!this.list_&&this.list_.wrapFocus},set:function(t){this.list_&&(this.list_.wrapFocus=t)},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"items",{get:function(){return this.list_?this.list_.listElements:[]},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"quickOpen",{set:function(t){this.menuSurface_.quickOpen=t},enumerable:!0,configurable:!0}),I.prototype.setDefaultFocusState=function(t){this.foundation_.setDefaultFocusState(t)},I.prototype.setAnchorCorner=function(t){this.menuSurface_.setAnchorCorner(t)},I.prototype.setAnchorMargin=function(t){this.menuSurface_.setAnchorMargin(t)},I.prototype.setSelectedIndex=function(t){this.foundation_.setSelectedIndex(t)},I.prototype.setEnabled=function(t,e){this.foundation_.setEnabled(t,e)},I.prototype.getOptionByIndex=function(t){return t<this.items.length?this.items[t]:null},I.prototype.setFixedPosition=function(t){this.menuSurface_.setFixedPosition(t)},I.prototype.hoistMenuToBody=function(){this.menuSurface_.hoistMenuToBody()},I.prototype.setIsHoisted=function(t){this.menuSurface_.setIsHoisted(t)},I.prototype.setAbsolutePosition=function(t,e){this.menuSurface_.setAbsolutePosition(t,e)},I.prototype.setAnchorElement=function(t){this.menuSurface_.anchorElement=t},I.prototype.getDefaultFoundation=function(){var t=this;return new _({addClassToElementAtIndex:function(e,n){t.items[e].classList.add(n)},removeClassFromElementAtIndex:function(e,n){t.items[e].classList.remove(n)},addAttributeToElementAtIndex:function(e,n,i){t.items[e].setAttribute(n,i)},removeAttributeFromElementAtIndex:function(e,n){t.items[e].removeAttribute(n)},elementContainsClass:function(t,e){return t.classList.contains(e)},closeSurface:function(e){return t.menuSurface_.close(e)},getElementIndex:function(e){return t.items.indexOf(e)},notifySelected:function(e){return t.emit(l.d.SELECTED_EVENT,{index:e.index,item:t.items[e.index]})},getMenuItemCount:function(){return t.items.length},focusItemAtIndex:function(e){return t.items[e].focus()},focusListRoot:function(){return t.root_.querySelector(l.d.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(e){return!!Object(r.a)(t.items[e],"."+l.b.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(e){var n=Object(r.a)(t.items[e],"."+l.b.MENU_SELECTION_GROUP).querySelector("."+l.b.MENU_SELECTED_LIST_ITEM);return n?t.items.indexOf(n):-1}})},I);function I(){return null!==m&&m.apply(this,arguments)||this}},3:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=(Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o);function o(t){void 0===t&&(t={}),this.adapter_=t}},4:function(t,e,n){"use strict";function i(t,e,n,i,o,s,r,u){var a,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),r?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=a):o&&(a=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(c.functional){c._injectStyles=a;var d=c.render;c.render=function(t,e){return a.call(e),d(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:c}}n.d(e,"a",(function(){return i}))},44:function(t,e,n){},5:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n(0),o=n(3),s=(r.attachTo=function(t){return new r(t,new o.a({}))},r.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},r.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},r.prototype.initialSyncWithDOM=function(){},r.prototype.destroy=function(){this.foundation_.destroy()},r.prototype.listen=function(t,e,n){this.root_.addEventListener(t,e,n)},r.prototype.unlisten=function(t,e,n){this.root_.removeEventListener(t,e,n)},r.prototype.emit=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),this.root_.dispatchEvent(i)},r);function r(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.root_=t,this.initialize.apply(this,i.d(n)),this.foundation_=void 0===e?this.getDefaultFoundation():e,this.foundation_.init(),this.initialSyncWithDOM()}},64:function(t,e,n){"use strict";n.r(e);var i=n(10),o=n(27),s=n(12),r=n(2),u={mixins:[r.a,r.b],model:{prop:"open",event:"change"},props:{open:{type:Boolean,default:!1},quickOpen:{type:Boolean,default:!1},anchorCorner:{type:[Number,String],default:0},absolutePositionX:{type:Number,default:null},absolutePositionY:{type:Number,default:null},hoistToBody:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},wrapFocus:{type:Boolean,default:!0},defaultFocusState:{type:[Number,String],default:1},selectedIndex:{type:Number,default:-1},isHoisted:{type:Boolean,default:!1}},data:function(){return{mdcMenu:void 0,slotObserver:void 0}},computed:{model:{get:function(){return this.open},set:function(t){this.$emit("change",t)}},focusState:function(){if(!this.defaultFocusState)return null;var t=String(this.defaultFocusState).toUpperCase();if(isNaN(this.defaultFocusState))return s.a[t];var e=Number(this.defaultFocusState);return isNaN(this.defaultFocusState)?null:e},_anchorCorner:function(){if(!this.anchorCorner)return null;var t=String(this.anchorCorner).toUpperCase();if(isNaN(this.anchorCorner))return i.a[t];var e=Number(this.anchorCorner);return isNaN(this.anchorCorner)?null:e}},watch:{open:function(){this.mdcMenu.open=this.open},quickOpen:function(){this.mdcMenu.quickOpen=this.quickOpen},hoistToBody:function(){this.hoistToBody&&this.mdcMenu.hoistMenuToBody()},isHoisted:function(){this.mdcMenu.setIsHoisted(this.isHoisted)},fixed:function(){this.mdcMenu.setFixedPosition(this.fixed)},anchorCorner:function(){null!==this._anchorCorner&&this.mdcMenu.setAnchorCorner(this.anchorCorner)},absolutePositionX:function(){null!==this.absolutePositionX&&this.mdcMenu.setAbsolutePosition(this.absolutePositionX,this.absolutePositionY)},absolutePositionY:function(){null!==this.absolutePositionY&&this.mdcMenu.setAbsolutePosition(this.absolutePositionX,this.absolutePositionY)},wrapFocus:function(){this.mdcMenu.wrapFocus=this.wrapFocus},defaultFocusState:function(){null!==this.focusState&&this.mdcMenu.setDefaultFocusState(this.focusState)},"mdcMenu.open":function(){this.model=this.mdcMenu.open},selectedIndex:function(){0<=this.selectedIndex&&this.mdcMenu.setSelectedIndex(this.selectedIndex)}},mounted:function(){var t=this;this.$nextTick((function(){t.updateSlot(),t.slotObserver=new MutationObserver((function(){return t.updateSlot()})),t.slotObserver.observe(t.$el,{childList:!0,subtree:!0}),t.mdcMenu=o.a.attachTo(t.$el),t.hoistToBody&&t.mdcMenu.hoistMenuToBody(),t.mdcMenu.setFixedPosition(t.fixed),t._anchorCorner&&t.mdcMenu.setAnchorCorner(t._anchorCorner),null===t.absolutePositionX&&null===t.absolutePositionY||t.mdcMenu.setAbsolutePosition(t.absolutePositionX,t.absolutePositionY),t.mdcMenu.wrapFocus=t.wrapFocus,null!==t.focusState&&t.mdcMenu.setDefaultFocusState(t.focusState),t.mdcMenu.setIsHoisted(t.isHoisted),0<=t.selectedIndex&&t.mdcMenu.setSelectedIndex(t.selectedIndex)}))},beforeDestroy:function(){this.slotObserver.disconnect(),this.mdcMenu.destroy()},methods:{updateSlot:function(){this.$slots.default&&this.$slots.default.map((function(t){t.elm&&(t.elm.setAttribute("role","menu"),t.elm.setAttribute("aria-hidden","true"),t.elm.setAttribute("aria-orientation","vertical"),t.elm.querySelectorAll(".mdc-list-item").forEach((function(t){t.setAttribute("role","menuitem")})))}))},onSelect:function(t){this.model=!1,this.$emit("selected",t.detail)}}},a=n(4),c=Object(a.a)(u,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mdc-menu mdc-menu-surface",on:{"MDCMenu:selected":this.onSelect}},[this._t("default")],2)}),[],!1,null,null,null).exports,d=Object(a.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mdc-menu-surface--anchor"},[this._t("default")],2)}),[],!1,null,null,null).exports,l=n(24),h={model:{prop:"open",event:"change"},props:{open:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},quickOpen:{type:Boolean,default:!1},anchorCorner:{type:[Number,String],default:0},absolutePositionX:{type:Number,default:null},absolutePositionY:{type:Number,default:null},hoistToBody:{type:Boolean,default:!1},isHoisted:{type:Boolean,default:!1}},data:function(){return{mdcMenuSurface:void 0}},computed:{model:{get:function(){return this.open},set:function(t){this.$emit("change",t)}},_anchorCorner:function(){if(!this.anchorCorner)return null;var t=String(this.anchorCorner).toUpperCase();if(isNaN(this.anchorCorner))return i.a[t];var e=Number(this.anchorCorner);return isNaN(this.anchorCorner)?null:e}},watch:{open:function(){this.open?this.mdcMenuSurface.getDefaultFoundation().open():this.mdcMenuSurface.getDefaultFoundation().close()},quickOpen:function(){this.mdcMenuSurface.quickOpen=this.quickOpen},hoistToBody:function(){this.hoistToBody&&this.mdcMenuSurface.hoistMenuToBody()},isHoisted:function(){this.mdcMenuSurface.setIsHoisted(this.isHoisted)},fixed:function(){this.mdcMenuSurface.setFixedPosition(this.fixed)},anchorCorner:function(){null!==this._anchorCorner&&this.mdcMenuSurface.setAnchorCorner(this.anchorCorner)},absolutePositionX:function(){null!==this.absolutePositionX&&this.mdcMenuSurface.setAbsolutePosition(this.absolutePositionX,this.absolutePositionY)},absolutePositionY:function(){null!==this.absolutePositionY&&this.mdcMenuSurface.setAbsolutePosition(this.absolutePositionX,this.absolutePositionY)}},mounted:function(){var t=this;this.$nextTick((function(){t.mdcMenuSurface=l.a.attachTo(t.$el),t.mdcMenuSurface.setFixedPosition(t.fixed),t._anchorCorner&&t.mdcMenuSurface.setAnchorCorner(t._anchorCorner),null===t.absolutePositionX&&null===t.absolutePositionY||t.mdcMenuSurface.setAbsolutePosition(t.absolutePositionX,t.absolutePositionY),t.hoistToBody&&t.mdcMenuSurface.hoistMenuToBody(),t.mdcMenuSurface.setIsHoisted(t.isHoisted),t.open?t.mdcMenuSurface.getDefaultFoundation().open():t.mdcMenuSurface.getDefaultFoundation().close()}))},beforeDestroy:function(){this.mdcMenuSurface.destroy()},methods:{onClosed:function(){this.model=!1,this.$emit("closed")},onOpened:function(){this.model=!0,this.$emit("opened")}}},f=Object(a.a)(h,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"mdc-menu-surface",on:{"MDCMenuSurface:closed":t.onClosed,"MDCMenuSurface:opened":t.onOpened}},[t._t("default")],2)}),[],!1,null,"0aed0d36",null).exports,_={data:function(){return{slotObserver:void 0}},mounted:function(){var t=this;this.$nextTick((function(){t.updateSlot(),t.slotObserver=new MutationObserver((function(){return t.updateSlot()})),t.slotObserver.observe(t.$el,{childList:!0,subtree:!0})}))},methods:{updateSlot:function(){this.$slots.default&&this.$slots.default.forEach((function(t){t.elm instanceof Element&&t.elm.classList.contains("mdc-list-item")&&t.elm.querySelector(".mdc-list-item__graphic").classList.add("mdc-menu__selection-group-icon")}))}}},p=Object(a.a)(_,(function(){var t=this.$createElement;return(this._self._c||t)("ul",{staticClass:"mdc-menu__selection-group"},[this._t("default")],2)}),[],!1,null,"6f2d4ec2",null).exports,m=(n(44),n(7)),E={install:function(t){t.component("m-menu",c),t.component("m-menu-anchor",d),t.component("m-menu-surface",f),t.component("m-menu-selection-group",p)}};e.default=E,Object(m.a)(E)},7:function(t,e,n){"use strict";function i(t){"undefined"!=typeof window&&window.Vue&&window.Vue.use(t)}n.d(e,"a",(function(){return i}))},8:function(t,e,n){"use strict";function i(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(o(n,e))return n;n=n.parentElement}return null}function o(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}))}},t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(t){return e[t]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="",t(t.s=64);function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e,n}));