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AAQ,oBAhsDkB,KAisD1B,EAAQ,UAAY,GACpB,EAAQ,iBAAmB,GAC3B,EAAQ,gBAAkB,GAE1B,OAAO,eAAe,EAAS,aAAc,CAAE,OAAO,GAErD","file":"/npm/@agorapulse/material@2.0.0-beta.1-ap.24/bundles/material.umd.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@agorapulse/material@2.0.0-beta.1-ap.24/bundles/material.umd.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\n  * @license Angular Material v2.0.0-beta.1\n  * Copyright (c) 2016 Google, Inc. https://material.angular.io/\n  * License: MIT\n  */\n(function (global, factory) {\n    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs/Subject'), require('rxjs/Observable'), require('rxjs/add/observable/fromEvent'), require('@angular/common'), require('@angular/platform-browser'), require('@angular/forms'), require('@angular/http'), require('rxjs/add/observable/forkJoin'), require('rxjs/add/observable/of'), require('rxjs/add/operator/map'), require('rxjs/add/operator/filter'), require('rxjs/add/operator/do'), require('rxjs/add/operator/share'), require('rxjs/add/operator/finally'), require('rxjs/add/operator/catch'), require('rxjs/add/operator/first')) :\n    typeof define === 'function' && define.amd ? define(['exports', '@angular/core', 'rxjs/Subject', 'rxjs/Observable', 'rxjs/add/observable/fromEvent', '@angular/common', '@angular/platform-browser', '@angular/forms', '@angular/http', 'rxjs/add/observable/forkJoin', 'rxjs/add/observable/of', 'rxjs/add/operator/map', 'rxjs/add/operator/filter', 'rxjs/add/operator/do', 'rxjs/add/operator/share', 'rxjs/add/operator/finally', 'rxjs/add/operator/catch', 'rxjs/add/operator/first'], factory) :\n    (factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}),global.ng.core,global.Rx,global.Rx,global.Rx.Observable,global.ng.common,global.ng.platformBrowser,global.ng.forms,global.ng.http,global.Rx.Observable,global.Rx.Observable,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype));\n}(this, (function (exports,_angular_core,rxjs_Subject,rxjs_Observable,rxjs_add_observable_fromEvent,_angular_common,_angular_platformBrowser,_angular_forms,_angular_http,rxjs_add_observable_forkJoin,rxjs_add_observable_of,rxjs_add_operator_map,rxjs_add_operator_filter,rxjs_add_operator_do,rxjs_add_operator_share,rxjs_add_operator_finally,rxjs_add_operator_catch,rxjs_add_operator_first) { 'use strict';\n\nvar __decorate$2 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$2 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar MATERIAL_COMPATIBILITY_MODE = new _angular_core.OpaqueToken('md-compatibiility-mode');\n/** Selector that matches all elements that may have style collisions with material1. */\nvar MAT_ELEMENTS_SELECTOR = \"\\n  mat-autocomplete,\\n  mat-card,\\n  mat-card-actions,\\n  mat-card-content,\\n  mat-card-footer,\\n  mat-card-header,\\n  mat-card-subtitle,\\n  mat-card-title,\\n  mat-card-title-group,\\n  mat-checkbox,\\n  mat-chip,\\n  mat-dialog-container,\\n  mat-divider,\\n  mat-grid-list,\\n  mat-grid-tile,\\n  mat-grid-tile-footer,\\n  mat-grid-tile-header,\\n  mat-hint,\\n  mat-icon,\\n  mat-ink-bar,\\n  mat-input,\\n  mat-list,\\n  mat-list-item,\\n  mat-menu,\\n  mat-nav-list,\\n  mat-option,\\n  mat-placeholder,\\n  mat-progress-bar,\\n  mat-progress-circle,\\n  mat-radio-button,\\n  mat-radio-group,\\n  mat-select,\\n  mat-sidenav,\\n  mat-slider,\\n  mat-spinner,\\n  mat-tab,\\n  mat-toolbar\\n\";\n/** Directive that enforces that the `mat-` prefix cannot be used. */\nvar MatPrefixEnforcer = (function () {\n    function MatPrefixEnforcer(isCompatibilityMode) {\n        if (!isCompatibilityMode) {\n            throw Error('The \"mat-\" prefix cannot be used out of ng-material v1 compatibility mode.');\n        }\n    }\n    MatPrefixEnforcer = __decorate$2([\n        _angular_core.Directive({ selector: MAT_ELEMENTS_SELECTOR }),\n        __param(0, _angular_core.Inject(MATERIAL_COMPATIBILITY_MODE)), \n        __metadata$2('design:paramtypes', [Boolean])\n    ], MatPrefixEnforcer);\n    return MatPrefixEnforcer;\n}());\n/**\n * Module that enforces the default \"compatibility mode\" settings. When this module is loaded\n * without NoConflictStyleCompatibilityMode also being imported, it will throw an error if\n * there are any uses of the `mat-` prefix.\n *\n * Because the point of this directive is to *not* be used, it will be tree-shaken away by\n * optimizers when not in compatibility mode.\n */\nvar DefaultStyleCompatibilityModeModule = (function () {\n    function DefaultStyleCompatibilityModeModule() {\n    }\n    DefaultStyleCompatibilityModeModule.forRoot = function () {\n        return {\n            ngModule: DefaultStyleCompatibilityModeModule,\n            providers: [],\n        };\n    };\n    DefaultStyleCompatibilityModeModule = __decorate$2([\n        _angular_core.NgModule({\n            declarations: [MatPrefixEnforcer],\n            exports: [MatPrefixEnforcer],\n            providers: [{\n                    provide: MATERIAL_COMPATIBILITY_MODE, useValue: false,\n                }]\n        }), \n        __metadata$2('design:paramtypes', [])\n    ], DefaultStyleCompatibilityModeModule);\n    return DefaultStyleCompatibilityModeModule;\n}());\n\nvar __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$1 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Shared directive to count lines inside a text area, such as a list item.\n * Line elements can be extracted with a @ContentChildren(MdLine) query, then\n * counted by checking the query list's length.\n */\nvar MdLine = (function () {\n    function MdLine() {\n    }\n    MdLine = __decorate$1([\n        _angular_core.Directive({ selector: '[md-line], [mat-line]' }), \n        __metadata$1('design:paramtypes', [])\n    ], MdLine);\n    return MdLine;\n}());\n/**\n * Helper that takes a query list of lines and sets the correct class on the host.\n * @docs-private\n */\nvar MdLineSetter = (function () {\n    function MdLineSetter(_lines, _renderer, _element) {\n        var _this = this;\n        this._lines = _lines;\n        this._renderer = _renderer;\n        this._element = _element;\n        this._setLineClass(this._lines.length);\n        this._lines.changes.subscribe(function () {\n            _this._setLineClass(_this._lines.length);\n        });\n    }\n    MdLineSetter.prototype._setLineClass = function (count) {\n        this._resetClasses();\n        if (count === 2 || count === 3) {\n            this._setClass(\"md-\" + count + \"-line\", true);\n        }\n        else if (count > 3) {\n            this._setClass(\"md-multi-line\", true);\n        }\n    };\n    MdLineSetter.prototype._resetClasses = function () {\n        this._setClass('md-2-line', false);\n        this._setClass('md-3-line', false);\n        this._setClass('md-multi-line', false);\n    };\n    MdLineSetter.prototype._setClass = function (className, bool) {\n        this._renderer.setElementClass(this._element.nativeElement, className, bool);\n    };\n    return MdLineSetter;\n}());\nvar MdLineModule = (function () {\n    function MdLineModule() {\n    }\n    MdLineModule = __decorate$1([\n        _angular_core.NgModule({\n            imports: [DefaultStyleCompatibilityModeModule],\n            exports: [MdLine, DefaultStyleCompatibilityModeModule],\n            declarations: [MdLine],\n        }), \n        __metadata$1('design:paramtypes', [])\n    ], MdLineModule);\n    return MdLineModule;\n}());\n\nvar __decorate$3 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$3 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Directive to listen for changes of direction of part of the DOM.\n *\n * Applications should use this directive instead of the native attribute so that Material\n * components can listen on changes of direction.\n */\nvar Dir = (function () {\n    function Dir() {\n        /** Layout direction of the element. */\n        this._dir = 'ltr';\n        /** Event emitted when the direction changes. */\n        this.dirChange = new _angular_core.EventEmitter();\n    }\n    Object.defineProperty(Dir.prototype, \"dir\", {\n        /** @docs-private */\n        get: function () {\n            return this._dir;\n        },\n        set: function (v) {\n            var old = this._dir;\n            this._dir = v;\n            if (old != this._dir) {\n                this.dirChange.emit();\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(Dir.prototype, \"value\", {\n        /** Current layout direction of the element. */\n        get: function () { return this.dir; },\n        set: function (v) { this.dir = v; },\n        enumerable: true,\n        configurable: true\n    });\n    __decorate$3([\n        _angular_core.Input('dir'), \n        __metadata$3('design:type', String)\n    ], Dir.prototype, \"_dir\", void 0);\n    __decorate$3([\n        _angular_core.Output(), \n        __metadata$3('design:type', Object)\n    ], Dir.prototype, \"dirChange\", void 0);\n    __decorate$3([\n        _angular_core.HostBinding('attr.dir'), \n        __metadata$3('design:type', String)\n    ], Dir.prototype, \"dir\", null);\n    Dir = __decorate$3([\n        _angular_core.Directive({\n            selector: '[dir]',\n            // TODO(hansl): maybe `$implicit` isn't the best option here, but for now that's the best we got.\n            exportAs: '$implicit'\n        }), \n        __metadata$3('design:paramtypes', [])\n    ], Dir);\n    return Dir;\n}());\nvar RtlModule = (function () {\n    function RtlModule() {\n    }\n    RtlModule.forRoot = function () {\n        return {\n            ngModule: RtlModule,\n            providers: []\n        };\n    };\n    RtlModule = __decorate$3([\n        _angular_core.NgModule({\n            exports: [Dir],\n            declarations: [Dir]\n        }), \n        __metadata$3('design:paramtypes', [])\n    ], RtlModule);\n    return RtlModule;\n}());\n\nvar __decorate$4 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$4 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Directive that triggers a callback whenever the content of\n * its associated element has changed.\n */\nvar ObserveContent = (function () {\n    function ObserveContent(_elementRef) {\n        this._elementRef = _elementRef;\n        /** Event emitted for each change in the element's content. */\n        this.event = new _angular_core.EventEmitter();\n    }\n    ObserveContent.prototype.ngAfterContentInit = function () {\n        var _this = this;\n        this._observer = new MutationObserver(function (mutations) { return mutations.forEach(function () { return _this.event.emit(); }); });\n        this._observer.observe(this._elementRef.nativeElement, {\n            characterData: true,\n            childList: true,\n            subtree: true\n        });\n    };\n    ObserveContent.prototype.ngOnDestroy = function () {\n        if (this._observer) {\n            this._observer.disconnect();\n        }\n    };\n    __decorate$4([\n        _angular_core.Output('cdkObserveContent'), \n        __metadata$4('design:type', Object)\n    ], ObserveContent.prototype, \"event\", void 0);\n    ObserveContent = __decorate$4([\n        _angular_core.Directive({\n            selector: '[cdkObserveContent]'\n        }), \n        __metadata$4('design:paramtypes', [_angular_core.ElementRef])\n    ], ObserveContent);\n    return ObserveContent;\n}());\nvar ObserveContentModule = (function () {\n    function ObserveContentModule() {\n    }\n    ObserveContentModule.forRoot = function () {\n        return {\n            ngModule: ObserveContentModule,\n            providers: []\n        };\n    };\n    ObserveContentModule = __decorate$4([\n        _angular_core.NgModule({\n            exports: [ObserveContent],\n            declarations: [ObserveContent]\n        }), \n        __metadata$4('design:paramtypes', [])\n    ], ObserveContentModule);\n    return ObserveContentModule;\n}());\n\n/** @docs-private */\nvar ForegroundRippleState;\n(function (ForegroundRippleState) {\n    ForegroundRippleState[ForegroundRippleState[\"NEW\"] = 0] = \"NEW\";\n    ForegroundRippleState[ForegroundRippleState[\"EXPANDING\"] = 1] = \"EXPANDING\";\n    ForegroundRippleState[ForegroundRippleState[\"FADING_OUT\"] = 2] = \"FADING_OUT\";\n})(ForegroundRippleState || (ForegroundRippleState = {}));\n/**\n * Wrapper for a foreground ripple DOM element and its animation state.\n * @docs-private\n */\nvar ForegroundRipple = (function () {\n    function ForegroundRipple(rippleElement) {\n        this.rippleElement = rippleElement;\n        this.state = ForegroundRippleState.NEW;\n    }\n    return ForegroundRipple;\n}());\nvar RIPPLE_SPEED_PX_PER_SECOND = 1000;\nvar MIN_RIPPLE_FILL_TIME_SECONDS = 0.1;\nvar MAX_RIPPLE_FILL_TIME_SECONDS = 0.3;\n/**\n * Returns the distance from the point (x, y) to the furthest corner of a rectangle.\n */\nvar distanceToFurthestCorner = function (x, y, rect) {\n    var distX = Math.max(Math.abs(x - rect.left), Math.abs(x - rect.right));\n    var distY = Math.max(Math.abs(y - rect.top), Math.abs(y - rect.bottom));\n    return Math.sqrt(distX * distX + distY * distY);\n};\n/**\n * Helper service that performs DOM manipulations. Not intended to be used outside this module.\n * The constructor takes a reference to the ripple directive's host element and a map of DOM\n * event handlers to be installed on the element that triggers ripple animations.\n * This will eventually become a custom renderer once Angular support exists.\n * @docs-private\n */\nvar RippleRenderer = (function () {\n    function RippleRenderer(_elementRef, _eventHandlers, _ngZone) {\n        this._eventHandlers = _eventHandlers;\n        this._ngZone = _ngZone;\n        this._rippleElement = _elementRef.nativeElement;\n        // The background div is created in createBackgroundIfNeeded when the ripple becomes enabled.\n        // This avoids creating unneeded divs when the ripple is always disabled.\n        this._backgroundDiv = null;\n    }\n    /** Creates the div for the ripple background, if it doesn't already exist. */\n    RippleRenderer.prototype.createBackgroundIfNeeded = function () {\n        if (!this._backgroundDiv) {\n            this._backgroundDiv = document.createElement('div');\n            this._backgroundDiv.classList.add('md-ripple-background');\n            this._rippleElement.appendChild(this._backgroundDiv);\n        }\n    };\n    /**\n     * Installs event handlers on the given trigger element, and removes event handlers from the\n     * previous trigger if needed.\n     *\n     * @param newTrigger New trigger to which to attach the ripple handlers.\n     */\n    RippleRenderer.prototype.setTriggerElement = function (newTrigger) {\n        var _this = this;\n        if (this._triggerElement !== newTrigger) {\n            if (this._triggerElement) {\n                this._eventHandlers.forEach(function (eventHandler, eventName) {\n                    _this._triggerElement.removeEventListener(eventName, eventHandler);\n                });\n            }\n            this._triggerElement = newTrigger;\n            if (this._triggerElement) {\n                this._eventHandlers.forEach(function (eventHandler, eventName) {\n                    _this._triggerElement.addEventListener(eventName, eventHandler);\n                });\n            }\n        }\n    };\n    /** Installs event handlers on the host element of the md-ripple directive. */\n    RippleRenderer.prototype.setTriggerElementToHost = function () {\n        this.setTriggerElement(this._rippleElement);\n    };\n    /** Removes event handlers from the current trigger element if needed. */\n    RippleRenderer.prototype.clearTriggerElement = function () {\n        this.setTriggerElement(null);\n    };\n    /**\n     * Creates a foreground ripple and sets its animation to expand and fade in from the position\n     * given by rippleOriginLeft and rippleOriginTop (or from the center of the <md-ripple>\n     * bounding rect if centered is true).\n     *\n     * @param rippleOriginLeft Left origin of the ripple.\n     * @param rippleOriginTop Top origin of the ripple.\n     * @param color Ripple color.\n     * @param centered Whether the ripple should be centered.\n     * @param radius Radius of the ripple.\n     * @param speedFactor Speed at which the ripple expands towards the edges.\n     * @param transitionEndCallback Callback to be triggered when the ripple transition is done.\n     */\n    RippleRenderer.prototype.createForegroundRipple = function (rippleOriginLeft, rippleOriginTop, color, centered, radius, speedFactor, transitionEndCallback) {\n        var _this = this;\n        var parentRect = this._rippleElement.getBoundingClientRect();\n        // Create a foreground ripple div with the size and position of the fully expanded ripple.\n        // When the div is created, it's given a transform style that causes the ripple to be displayed\n        // small and centered on the event location (or the center of the bounding rect if the centered\n        // argument is true). Removing that transform causes the ripple to animate to its natural size.\n        var startX = centered ? (parentRect.left + parentRect.width / 2) : rippleOriginLeft;\n        var startY = centered ? (parentRect.top + parentRect.height / 2) : rippleOriginTop;\n        var offsetX = startX - parentRect.left;\n        var offsetY = startY - parentRect.top;\n        var maxRadius = radius > 0 ? radius : distanceToFurthestCorner(startX, startY, parentRect);\n        var rippleDiv = document.createElement('div');\n        this._rippleElement.appendChild(rippleDiv);\n        rippleDiv.classList.add('md-ripple-foreground');\n        rippleDiv.style.left = (offsetX - maxRadius) + \"px\";\n        rippleDiv.style.top = (offsetY - maxRadius) + \"px\";\n        rippleDiv.style.width = 2 * maxRadius + \"px\";\n        rippleDiv.style.height = rippleDiv.style.width;\n        // If color input is not set, this will default to the background color defined in CSS.\n        rippleDiv.style.backgroundColor = color;\n        // Start the ripple tiny.\n        rippleDiv.style.transform = \"scale(0.001)\";\n        var fadeInSeconds = (1 / (speedFactor || 1)) * Math.max(MIN_RIPPLE_FILL_TIME_SECONDS, Math.min(MAX_RIPPLE_FILL_TIME_SECONDS, maxRadius / RIPPLE_SPEED_PX_PER_SECOND));\n        rippleDiv.style.transitionDuration = fadeInSeconds + \"s\";\n        // https://timtaubert.de/blog/2012/09/css-transitions-for-dynamically-created-dom-elements/\n        // Store the opacity to prevent this line as being seen as a no-op by optimizers.\n        this._opacity = window.getComputedStyle(rippleDiv).opacity;\n        rippleDiv.classList.add('md-ripple-fade-in');\n        // Clearing the transform property causes the ripple to animate to its full size.\n        rippleDiv.style.transform = '';\n        var ripple = new ForegroundRipple(rippleDiv);\n        ripple.state = ForegroundRippleState.EXPANDING;\n        rippleDiv.addEventListener('transitionend', function (event) { return transitionEndCallback(ripple, event); });\n        // Ensure that ripples are always removed, even when transitionend doesn't fire.\n        // Run this outside the Angular zone because there's nothing that Angular cares about.\n        // If it were to run inside the Angular zone, every test that used ripples would have to be\n        // either async or fakeAsync.\n        this._ngZone.runOutsideAngular(function () {\n            // The ripple lasts a time equal to the sum of fade-in, transform,\n            // and fade-out (3 * fade-in time).\n            var rippleDuration = fadeInSeconds * 3 * 1000;\n            setTimeout(function () { return _this.removeRippleFromDom(ripple.rippleElement); }, rippleDuration);\n        });\n    };\n    /**\n     * Fades out a foreground ripple after it has fully expanded and faded in.\n     * @param ripple Ripple to be faded out.\n     */\n    RippleRenderer.prototype.fadeOutForegroundRipple = function (ripple) {\n        ripple.classList.remove('md-ripple-fade-in');\n        ripple.classList.add('md-ripple-fade-out');\n    };\n    /**\n     * Removes a foreground ripple from the DOM after it has faded out.\n     * @param ripple Ripple to be removed from the DOM.\n     */\n    RippleRenderer.prototype.removeRippleFromDom = function (ripple) {\n        if (ripple && ripple.parentElement) {\n            ripple.parentElement.removeChild(ripple);\n        }\n    };\n    /**\n     * Fades in the ripple background.\n     * @param color New background color for the ripple.\n     */\n    RippleRenderer.prototype.fadeInRippleBackground = function (color) {\n        this._backgroundDiv.classList.add('md-ripple-active');\n        // If color is not set, this will default to the background color defined in CSS.\n        this._backgroundDiv.style.backgroundColor = color;\n    };\n    /** Fades out the ripple background. */\n    RippleRenderer.prototype.fadeOutRippleBackground = function () {\n        if (this._backgroundDiv) {\n            this._backgroundDiv.classList.remove('md-ripple-active');\n        }\n    };\n    return RippleRenderer;\n}());\n\nvar __decorate$6 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$6 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Simple utility for getting the bounds of the browser viewport.\n * @docs-private\n */\nvar ViewportRuler = (function () {\n    function ViewportRuler() {\n    }\n    // TODO(jelbourn): cache the document's bounding rect and only update it when the window\n    // is resized (debounced).\n    /** Gets a ClientRect for the viewport's bounds. */\n    ViewportRuler.prototype.getViewportRect = function () {\n        // Use the document element's bounding rect rather than the window scroll properties\n        // (e.g. pageYOffset, scrollY) due to in issue in Chrome and IE where window scroll\n        // properties and client coordinates (boundingClientRect, clientX/Y, etc.) are in different\n        // conceptual viewports. Under most circumstances these viewports are equivalent, but they\n        // can disagree when the page is pinch-zoomed (on devices that support touch).\n        // See https://bugs.chromium.org/p/chromium/issues/detail?id=489206#c4\n        // We use the documentElement instead of the body because, by default (without a css reset)\n        // browsers typically give the document body an 8px margin, which is not included in\n        // getBoundingClientRect().\n        var documentRect = document.documentElement.getBoundingClientRect();\n        var scrollPosition = this.getViewportScrollPosition(documentRect);\n        var height = window.innerHeight;\n        var width = window.innerWidth;\n        return {\n            top: scrollPosition.top,\n            left: scrollPosition.left,\n            bottom: scrollPosition.top + height,\n            right: scrollPosition.left + width,\n            height: height,\n            width: width,\n        };\n    };\n    /**\n     * Gets the (top, left) scroll position of the viewport.\n     * @param documentRect\n     */\n    ViewportRuler.prototype.getViewportScrollPosition = function (documentRect) {\n        if (documentRect === void 0) { documentRect = document.documentElement.getBoundingClientRect(); }\n        // The top-left-corner of the viewport is determined by the scroll position of the document\n        // body, normally just (scrollLeft, scrollTop). However, Chrome and Firefox disagree about\n        // whether `document.body` or `document.documentElement` is the scrolled element, so reading\n        // `scrollTop` and `scrollLeft` is inconsistent. However, using the bounding rect of\n        // `document.documentElement` works consistently, where the `top` and `left` values will\n        // equal negative the scroll position.\n        var top = -documentRect.top || document.body.scrollTop || window.scrollY || 0;\n        var left = -documentRect.left || document.body.scrollLeft || window.scrollX || 0;\n        return { top: top, left: left };\n    };\n    ViewportRuler = __decorate$6([\n        _angular_core.Injectable(), \n        __metadata$6('design:paramtypes', [])\n    ], ViewportRuler);\n    return ViewportRuler;\n}());\n\nvar __decorate$5 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$5 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MdRipple = (function () {\n    function MdRipple(_elementRef, _ngZone, _ruler) {\n        var _this = this;\n        /**\n         * If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius\n         * will be the distance from the center of the ripple to the furthest corner of the host element's\n         * bounding rectangle.\n         */\n        this.maxRadius = 0;\n        /**\n         * If set, the normal duration of ripple animations is divided by this value. For example,\n         * setting it to 0.5 will cause the animations to take twice as long.\n         */\n        this.speedFactor = 1;\n        // These event handlers are attached to the element that triggers the ripple animations.\n        var eventHandlers = new Map();\n        eventHandlers.set('mousedown', function (event) { return _this._mouseDown(event); });\n        eventHandlers.set('click', function (event) { return _this._click(event); });\n        eventHandlers.set('mouseleave', function (event) { return _this._mouseLeave(event); });\n        this._rippleRenderer = new RippleRenderer(_elementRef, eventHandlers, _ngZone);\n        this._ruler = _ruler;\n    }\n    Object.defineProperty(MdRipple.prototype, \"_triggerDeprecated\", {\n        /** @deprecated */\n        get: function () { return this.trigger; },\n        set: function (value) { this.trigger = value; },\n        enumerable: true,\n        configurable: true\n    });\n    \n    Object.defineProperty(MdRipple.prototype, \"_centeredDeprecated\", {\n        /** @deprecated */\n        get: function () { return this.centered; },\n        set: function (value) { this.centered = value; },\n        enumerable: true,\n        configurable: true\n    });\n    \n    Object.defineProperty(MdRipple.prototype, \"_disabledDeprecated\", {\n        /** @deprecated */\n        get: function () { return this.disabled; },\n        set: function (value) { this.disabled = value; },\n        enumerable: true,\n        configurable: true\n    });\n    \n    Object.defineProperty(MdRipple.prototype, \"_maxRadiusDeprecated\", {\n        /** @deprecated */\n        get: function () { return this.maxRadius; },\n        set: function (value) { this.maxRadius = value; },\n        enumerable: true,\n        configurable: true\n    });\n    \n    Object.defineProperty(MdRipple.prototype, \"_speedFactorDeprecated\", {\n        /** @deprecated */\n        get: function () { return this.speedFactor; },\n        set: function (value) { this.speedFactor = value; },\n        enumerable: true,\n        configurable: true\n    });\n    \n    Object.defineProperty(MdRipple.prototype, \"_colorDeprecated\", {\n        /** @deprecated */\n        get: function () { return this.color; },\n        set: function (value) { this.color = value; },\n        enumerable: true,\n        configurable: true\n    });\n    \n    Object.defineProperty(MdRipple.prototype, \"_backgroundColorDeprecated\", {\n        /** @deprecated */\n        get: function () { return this.backgroundColor; },\n        set: function (value) { this.backgroundColor = value; },\n        enumerable: true,\n        configurable: true\n    });\n    \n    Object.defineProperty(MdRipple.prototype, \"_focusedDeprecated\", {\n        /** @deprecated */\n        get: function () { return this.focused; },\n        set: function (value) { this.focused = value; },\n        enumerable: true,\n        configurable: true\n    });\n    \n    Object.defineProperty(MdRipple.prototype, \"_unboundedDeprecated\", {\n        /** @deprecated */\n        get: function () { return this.unbounded; },\n        set: function (value) { this.unbounded = value; },\n        enumerable: true,\n        configurable: true\n    });\n    \n    MdRipple.prototype.ngOnInit = function () {\n        // If no trigger element was explicity set, use the host element\n        if (!this.trigger) {\n            this._rippleRenderer.setTriggerElementToHost();\n        }\n        if (!this.disabled) {\n            this._rippleRenderer.createBackgroundIfNeeded();\n        }\n    };\n    MdRipple.prototype.ngOnDestroy = function () {\n        // Remove event listeners on the trigger element.\n        this._rippleRenderer.clearTriggerElement();\n    };\n    MdRipple.prototype.ngOnChanges = function (changes) {\n        // If the trigger element changed (or is being initially set), add event listeners to it.\n        var changedInputs = Object.keys(changes);\n        if (changedInputs.indexOf('trigger') !== -1) {\n            this._rippleRenderer.setTriggerElement(this.trigger);\n        }\n        if (!this.disabled) {\n            this._rippleRenderer.createBackgroundIfNeeded();\n        }\n    };\n    /**\n     * Responds to the start of a ripple animation trigger by fading the background in.\n     */\n    MdRipple.prototype.start = function () {\n        this._rippleRenderer.createBackgroundIfNeeded();\n        this._rippleRenderer.fadeInRippleBackground(this.backgroundColor);\n    };\n    /**\n     * Responds to the end of a ripple animation trigger by fading the background out, and creating a\n     * foreground ripple that expands from the event location (or from the center of the element if\n     * the \"centered\" property is set or forceCenter is true).\n     */\n    MdRipple.prototype.end = function (left, top, forceCenter) {\n        var _this = this;\n        if (forceCenter === void 0) { forceCenter = true; }\n        this._rippleRenderer.createForegroundRipple(left, top, this.color, this.centered || forceCenter, this.maxRadius, this.speedFactor, function (ripple, e) { return _this._rippleTransitionEnded(ripple, e); });\n        this._rippleRenderer.fadeOutRippleBackground();\n    };\n    MdRipple.prototype._rippleTransitionEnded = function (ripple, event) {\n        if (event.propertyName === 'opacity') {\n            // If the ripple finished expanding, start fading it out. If it finished fading out,\n            // remove it from the DOM.\n            switch (ripple.state) {\n                case ForegroundRippleState.EXPANDING:\n                    this._rippleRenderer.fadeOutForegroundRipple(ripple.rippleElement);\n                    ripple.state = ForegroundRippleState.FADING_OUT;\n                    break;\n                case ForegroundRippleState.FADING_OUT:\n                    this._rippleRenderer.removeRippleFromDom(ripple.rippleElement);\n                    break;\n            }\n        }\n    };\n    /**\n     * Called when the trigger element receives a mousedown event. Starts the ripple animation by\n     * fading in the background.\n     */\n    MdRipple.prototype._mouseDown = function (event) {\n        if (!this.disabled && event.button === 0) {\n            this.start();\n        }\n    };\n    /**\n     * Called when the trigger element receives a click event. Creates a foreground ripple and\n     * runs its animation.\n     */\n    MdRipple.prototype._click = function (event) {\n        if (!this.disabled && event.button === 0) {\n            // If screen and page positions are all 0, this was probably triggered by a keypress.\n            // In that case, use the center of the bounding rect as the ripple origin.\n            // FIXME: This fails on IE11, which still sets pageX/Y and screenX/Y on keyboard clicks.\n            var isKeyEvent = (event.screenX === 0 && event.screenY === 0 && event.pageX === 0 && event.pageY === 0);\n            this.end(event.pageX - this._ruler.getViewportScrollPosition().left, event.pageY - this._ruler.getViewportScrollPosition().top, isKeyEvent);\n        }\n    };\n    /**\n     * Called when the trigger element receives a mouseleave event. Fades out the background.\n     */\n    MdRipple.prototype._mouseLeave = function (event) {\n        // We can always fade out the background here; It's a no-op if it was already inactive.\n        this._rippleRenderer.fadeOutRippleBackground();\n    };\n    __decorate$5([\n        _angular_core.Input('mdRippleTrigger'), \n        __metadata$5('design:type', Object)\n    ], MdRipple.prototype, \"trigger\", void 0);\n    __decorate$5([\n        _angular_core.Input('md-ripple-trigger'), \n        __metadata$5('design:type', Object)\n    ], MdRipple.prototype, \"_triggerDeprecated\", null);\n    __decorate$5([\n        _angular_core.Input('mdRippleCentered'), \n        __metadata$5('design:type', Boolean)\n    ], MdRipple.prototype, \"centered\", void 0);\n    __decorate$5([\n        _angular_core.Input('md-ripple-centered'), \n        __metadata$5('design:type', Object)\n    ], MdRipple.prototype, \"_centeredDeprecated\", null);\n    __decorate$5([\n        _angular_core.Input('mdRippleDisabled'), \n        __metadata$5('design:type', Boolean)\n    ], MdRipple.prototype, \"disabled\", void 0);\n    __decorate$5([\n        _angular_core.Input('md-ripple-disabled'), \n        __metadata$5('design:type', Object)\n    ], MdRipple.prototype, \"_disabledDeprecated\", null);\n    __decorate$5([\n        _angular_core.Input('mdRippleMaxRadius'), \n        __metadata$5('design:type', Number)\n    ], MdRipple.prototype, \"maxRadius\", void 0);\n    __decorate$5([\n        _angular_core.Input('md-ripple-max-radius'), \n        __metadata$5('design:type', Object)\n    ], MdRipple.prototype, \"_maxRadiusDeprecated\", null);\n    __decorate$5([\n        _angular_core.Input('mdRippleSpeedFactor'), \n        __metadata$5('design:type', Number)\n    ], MdRipple.prototype, \"speedFactor\", void 0);\n    __decorate$5([\n        _angular_core.Input('md-ripple-speed-factor'), \n        __metadata$5('design:type', Object)\n    ], MdRipple.prototype, \"_speedFactorDeprecated\", null);\n    __decorate$5([\n        _angular_core.Input('mdRippleColor'), \n        __metadata$5('design:type', String)\n    ], MdRipple.prototype, \"color\", void 0);\n    __decorate$5([\n        _angular_core.Input('md-ripple-color'), \n        __metadata$5('design:type', Object)\n    ], MdRipple.prototype, \"_colorDeprecated\", null);\n    __decorate$5([\n        _angular_core.Input('mdRippleBackgroundColor'), \n        __metadata$5('design:type', String)\n    ], MdRipple.prototype, \"backgroundColor\", void 0);\n    __decorate$5([\n        _angular_core.Input('md-ripple-background-color'), \n        __metadata$5('design:type', Object)\n    ], MdRipple.prototype, \"_backgroundColorDeprecated\", null);\n    __decorate$5([\n        _angular_core.HostBinding('class.md-ripple-focused'),\n        _angular_core.Input('mdRippleFocused'), \n        __metadata$5('design:type', Boolean)\n    ], MdRipple.prototype, \"focused\", void 0);\n    __decorate$5([\n        _angular_core.Input('md-ripple-focused'), \n        __metadata$5('design:type', Boolean)\n    ], MdRipple.prototype, \"_focusedDeprecated\", null);\n    __decorate$5([\n        _angular_core.HostBinding('class.md-ripple-unbounded'),\n        _angular_core.Input('mdRippleUnbounded'), \n        __metadata$5('design:type', Boolean)\n    ], MdRipple.prototype, \"unbounded\", void 0);\n    __decorate$5([\n        _angular_core.Input('md-ripple-unbounded'), \n        __metadata$5('design:type', Boolean)\n    ], MdRipple.prototype, \"_unboundedDeprecated\", null);\n    MdRipple = __decorate$5([\n        _angular_core.Directive({\n            selector: '[md-ripple], [mat-ripple]',\n        }), \n        __metadata$5('design:paramtypes', [_angular_core.ElementRef, _angular_core.NgZone, ViewportRuler])\n    ], MdRipple);\n    return MdRipple;\n}());\nvar MdRippleModule = (function () {\n    function MdRippleModule() {\n    }\n    MdRippleModule.forRoot = function () {\n        return {\n            ngModule: MdRippleModule,\n            providers: [ViewportRuler]\n        };\n    };\n    MdRippleModule = __decorate$5([\n        _angular_core.NgModule({\n            imports: [DefaultStyleCompatibilityModeModule],\n            exports: [MdRipple, DefaultStyleCompatibilityModeModule],\n            declarations: [MdRipple],\n        }), \n        __metadata$5('design:paramtypes', [])\n    ], MdRippleModule);\n    return MdRippleModule;\n}());\n\n// TODO(kara): Revisit why error messages are not being properly set.\nvar __extends$3 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * Wrapper around Error that sets the error message.\n * @docs-private\n */\nvar MdError = (function (_super) {\n    __extends$3(MdError, _super);\n    function MdError(value) {\n        _super.call(this);\n        this.message = value;\n    }\n    return MdError;\n}(Error));\n\nvar __extends$2 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * Exception thrown when attempting to attach a null portal to a host.\n * @docs-private\n */\nvar NullPortalError = (function (_super) {\n    __extends$2(NullPortalError, _super);\n    function NullPortalError() {\n        _super.call(this, 'Must provide a portal to attach');\n    }\n    return NullPortalError;\n}(MdError));\n/**\n * Exception thrown when attempting to attach a portal to a host that is already attached.\n * @docs-private\n */\nvar PortalAlreadyAttachedError = (function (_super) {\n    __extends$2(PortalAlreadyAttachedError, _super);\n    function PortalAlreadyAttachedError() {\n        _super.call(this, 'Host already has a portal attached');\n    }\n    return PortalAlreadyAttachedError;\n}(MdError));\n/**\n * Exception thrown when attempting to attach a portal to an already-disposed host.\n * @docs-private\n */\nvar PortalHostAlreadyDisposedError = (function (_super) {\n    __extends$2(PortalHostAlreadyDisposedError, _super);\n    function PortalHostAlreadyDisposedError() {\n        _super.call(this, 'This PortalHost has already been disposed');\n    }\n    return PortalHostAlreadyDisposedError;\n}(MdError));\n/**\n * Exception thrown when attempting to attach an unknown portal type.\n * @docs-private\n */\nvar UnknownPortalTypeError = (function (_super) {\n    __extends$2(UnknownPortalTypeError, _super);\n    function UnknownPortalTypeError() {\n        _super.call(this, 'Attempting to attach an unknown Portal type. ' +\n            'BasePortalHost accepts either a ComponentPortal or a TemplatePortal.');\n    }\n    return UnknownPortalTypeError;\n}(MdError));\n/**\n * Exception thrown when attempting to attach a portal to a null host.\n * @docs-private\n */\nvar NullPortalHostError = (function (_super) {\n    __extends$2(NullPortalHostError, _super);\n    function NullPortalHostError() {\n        _super.call(this, 'Attempting to attach a portal to a null PortalHost');\n    }\n    return NullPortalHostError;\n}(MdError));\n/**\n * Exception thrown when attempting to detach a portal that is not attached.\n * @docs-private\n */\nvar NoPortalAttachedError = (function (_super) {\n    __extends$2(NoPortalAttachedError, _super);\n    function NoPortalAttachedError() {\n        _super.call(this, 'Attempting to detach a portal that is not attached to a host');\n    }\n    return NoPortalAttachedError;\n}(MdError));\n\nvar __extends$1 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * A `Portal` is something that you want to render somewhere else.\n * It can be attach to / detached from a `PortalHost`.\n */\nvar Portal = (function () {\n    function Portal() {\n    }\n    /** Attach this portal to a host. */\n    Portal.prototype.attach = function (host) {\n        if (host == null) {\n            throw new NullPortalHostError();\n        }\n        if (host.hasAttached()) {\n            throw new PortalAlreadyAttachedError();\n        }\n        this._attachedHost = host;\n        return host.attach(this);\n    };\n    /** Detach this portal from its host */\n    Portal.prototype.detach = function () {\n        var host = this._attachedHost;\n        if (host == null) {\n            throw new NoPortalAttachedError();\n        }\n        this._attachedHost = null;\n        return host.detach();\n    };\n    Object.defineProperty(Portal.prototype, \"isAttached\", {\n        /** Whether this portal is attached to a host. */\n        get: function () {\n            return this._attachedHost != null;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Sets the PortalHost reference without performing `attach()`. This is used directly by\n     * the PortalHost when it is performing an `attach()` or `detach()`.\n     */\n    Portal.prototype.setAttachedHost = function (host) {\n        this._attachedHost = host;\n    };\n    return Portal;\n}());\n/**\n * A `ComponentPortal` is a portal that instantiates some Component upon attachment.\n */\nvar ComponentPortal = (function (_super) {\n    __extends$1(ComponentPortal, _super);\n    function ComponentPortal(component, viewContainerRef, injector) {\n        if (viewContainerRef === void 0) { viewContainerRef = null; }\n        if (injector === void 0) { injector = null; }\n        _super.call(this);\n        this.component = component;\n        this.viewContainerRef = viewContainerRef;\n        this.injector = injector;\n    }\n    return ComponentPortal;\n}(Portal));\n/**\n * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).\n */\nvar TemplatePortal = (function (_super) {\n    __extends$1(TemplatePortal, _super);\n    function TemplatePortal(template, viewContainerRef) {\n        _super.call(this);\n        /**\n         * Additional locals for the instantiated embedded view.\n         * These locals can be seen as \"exports\" for the template, such as how ngFor has\n         * index / event / odd.\n         * See https://angular.io/docs/ts/latest/api/core/EmbeddedViewRef-class.html\n         */\n        this.locals = new Map();\n        this.templateRef = template;\n        this.viewContainerRef = viewContainerRef;\n    }\n    Object.defineProperty(TemplatePortal.prototype, \"origin\", {\n        get: function () {\n            return this.templateRef.elementRef;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    TemplatePortal.prototype.attach = function (host, locals) {\n        this.locals = locals == null ? new Map() : locals;\n        return _super.prototype.attach.call(this, host);\n    };\n    TemplatePortal.prototype.detach = function () {\n        this.locals = new Map();\n        return _super.prototype.detach.call(this);\n    };\n    return TemplatePortal;\n}(Portal));\n/**\n * Partial implementation of PortalHost that only deals with attaching either a\n * ComponentPortal or a TemplatePortal.\n */\nvar BasePortalHost = (function () {\n    function BasePortalHost() {\n        /** Whether this host has already been permanently disposed. */\n        this._isDisposed = false;\n    }\n    /** Whether this host has an attached portal. */\n    BasePortalHost.prototype.hasAttached = function () {\n        return this._attachedPortal != null;\n    };\n    BasePortalHost.prototype.attach = function (portal) {\n        if (portal == null) {\n            throw new NullPortalError();\n        }\n        if (this.hasAttached()) {\n            throw new PortalAlreadyAttachedError();\n        }\n        if (this._isDisposed) {\n            throw new PortalHostAlreadyDisposedError();\n        }\n        if (portal instanceof ComponentPortal) {\n            this._attachedPortal = portal;\n            return this.attachComponentPortal(portal);\n        }\n        else if (portal instanceof TemplatePortal) {\n            this._attachedPortal = portal;\n            return this.attachTemplatePortal(portal);\n        }\n        throw new UnknownPortalTypeError();\n    };\n    BasePortalHost.prototype.detach = function () {\n        if (this._attachedPortal) {\n            this._attachedPortal.setAttachedHost(null);\n        }\n        this._attachedPortal = null;\n        if (this._disposeFn != null) {\n            this._disposeFn();\n            this._disposeFn = null;\n        }\n    };\n    BasePortalHost.prototype.dispose = function () {\n        if (this.hasAttached()) {\n            this.detach();\n        }\n        this._isDisposed = true;\n    };\n    BasePortalHost.prototype.setDisposeFn = function (fn) {\n        this._disposeFn = fn;\n    };\n    return BasePortalHost;\n}());\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate$7 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$7 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,\n * the directive instance itself can be attached to a host, enabling declarative use of portals.\n *\n * Usage:\n * <template portal #greeting>\n *   <p> Hello {{name}} </p>\n * </template>\n */\nvar TemplatePortalDirective = (function (_super) {\n    __extends(TemplatePortalDirective, _super);\n    function TemplatePortalDirective(templateRef, viewContainerRef) {\n        _super.call(this, templateRef, viewContainerRef);\n    }\n    TemplatePortalDirective = __decorate$7([\n        _angular_core.Directive({\n            selector: '[cdk-portal], [portal]',\n            exportAs: 'cdkPortal',\n        }), \n        __metadata$7('design:paramtypes', [_angular_core.TemplateRef, _angular_core.ViewContainerRef])\n    ], TemplatePortalDirective);\n    return TemplatePortalDirective;\n}(TemplatePortal));\n/**\n * Directive version of a PortalHost. Because the directive *is* a PortalHost, portals can be\n * directly attached to it, enabling declarative use.\n *\n * Usage:\n * <template [cdkPortalHost]=\"greeting\"></template>\n */\nvar PortalHostDirective = (function (_super) {\n    __extends(PortalHostDirective, _super);\n    function PortalHostDirective(_componentFactoryResolver, _viewContainerRef) {\n        _super.call(this);\n        this._componentFactoryResolver = _componentFactoryResolver;\n        this._viewContainerRef = _viewContainerRef;\n    }\n    Object.defineProperty(PortalHostDirective.prototype, \"_deprecatedPortal\", {\n        /** @deprecated */\n        get: function () { return this.portal; },\n        set: function (v) { this.portal = v; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(PortalHostDirective.prototype, \"portal\", {\n        /** Portal associated with the Portal host. */\n        get: function () {\n            return this._portal;\n        },\n        set: function (p) {\n            if (p) {\n                this._replaceAttachedPortal(p);\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    PortalHostDirective.prototype.ngOnDestroy = function () {\n        this.dispose();\n    };\n    /**\n     * Attach the given ComponentPortal to this PortalHost using the ComponentFactoryResolver.\n     *\n     * @param portal Portal to be attached to the portal host.\n     */\n    PortalHostDirective.prototype.attachComponentPortal = function (portal) {\n        portal.setAttachedHost(this);\n        // If the portal specifies an origin, use that as the logical location of the component\n        // in the application tree. Otherwise use the location of this PortalHost.\n        var viewContainerRef = portal.viewContainerRef != null ?\n            portal.viewContainerRef :\n            this._viewContainerRef;\n        var componentFactory = this._componentFactoryResolver.resolveComponentFactory(portal.component);\n        var ref = viewContainerRef.createComponent(componentFactory, viewContainerRef.length, portal.injector || viewContainerRef.parentInjector);\n        this.setDisposeFn(function () { return ref.destroy(); });\n        return ref;\n    };\n    /**\n     * Attach the given TemplatePortal to this PortlHost as an embedded View.\n     * @param portal Portal to be attached.\n     */\n    PortalHostDirective.prototype.attachTemplatePortal = function (portal) {\n        var _this = this;\n        portal.setAttachedHost(this);\n        this._viewContainerRef.createEmbeddedView(portal.templateRef);\n        this.setDisposeFn(function () { return _this._viewContainerRef.clear(); });\n        // TODO(jelbourn): return locals from view\n        return new Map();\n    };\n    /** Detaches the currently attached Portal (if there is one) and attaches the given Portal. */\n    PortalHostDirective.prototype._replaceAttachedPortal = function (p) {\n        if (this.hasAttached()) {\n            this.detach();\n        }\n        if (p) {\n            this.attach(p);\n            this._portal = p;\n        }\n    };\n    __decorate$7([\n        _angular_core.Input('portalHost'), \n        __metadata$7('design:type', Object)\n    ], PortalHostDirective.prototype, \"_deprecatedPortal\", null);\n    PortalHostDirective = __decorate$7([\n        _angular_core.Directive({\n            selector: '[cdkPortalHost], [portalHost]',\n            inputs: ['portal: cdkPortalHost']\n        }), \n        __metadata$7('design:paramtypes', [_angular_core.ComponentFactoryResolver, _angular_core.ViewContainerRef])\n    ], PortalHostDirective);\n    return PortalHostDirective;\n}(BasePortalHost));\nvar PortalModule = (function () {\n    function PortalModule() {\n    }\n    PortalModule.forRoot = function () {\n        return {\n            ngModule: PortalModule,\n            providers: []\n        };\n    };\n    PortalModule = __decorate$7([\n        _angular_core.NgModule({\n            exports: [TemplatePortalDirective, PortalHostDirective],\n            declarations: [TemplatePortalDirective, PortalHostDirective],\n        }), \n        __metadata$7('design:paramtypes', [])\n    ], PortalModule);\n    return PortalModule;\n}());\n\n/**\n * OverlayState is a bag of values for either the initial configuration or current state of an\n * overlay.\n */\nvar OverlayState = (function () {\n    function OverlayState() {\n        /** Whether the overlay has a backdrop. */\n        this.hasBackdrop = false;\n        /** Custom class to add to the backdrop **/\n        this.backdropClass = 'cdk-overlay-dark-backdrop';\n        /** The direction of the text in the overlay panel. */\n        this.direction = 'ltr';\n    }\n    return OverlayState;\n}());\n\nvar __extends$4 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * A PortalHost for attaching portals to an arbitrary DOM element outside of the Angular\n * application context.\n *\n * This is the only part of the portal core that directly touches the DOM.\n */\nvar DomPortalHost = (function (_super) {\n    __extends$4(DomPortalHost, _super);\n    function DomPortalHost(_hostDomElement, _componentFactoryResolver, _appRef, _defaultInjector) {\n        _super.call(this);\n        this._hostDomElement = _hostDomElement;\n        this._componentFactoryResolver = _componentFactoryResolver;\n        this._appRef = _appRef;\n        this._defaultInjector = _defaultInjector;\n    }\n    /**\n     * Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver.\n     * @param portal Portal to be attached\n     */\n    DomPortalHost.prototype.attachComponentPortal = function (portal) {\n        var _this = this;\n        var componentFactory = this._componentFactoryResolver.resolveComponentFactory(portal.component);\n        var componentRef;\n        // If the portal specifies a ViewContainerRef, we will use that as the attachment point\n        // for the component (in terms of Angular's component tree, not rendering).\n        // When the ViewContainerRef is missing, we use the factory to create the component directly\n        // and then manually attach the ChangeDetector for that component to the application (which\n        // happens automatically when using a ViewContainer).\n        if (portal.viewContainerRef) {\n            componentRef = portal.viewContainerRef.createComponent(componentFactory, portal.viewContainerRef.length, portal.injector || portal.viewContainerRef.parentInjector);\n            this.setDisposeFn(function () { return componentRef.destroy(); });\n        }\n        else {\n            componentRef = componentFactory.create(portal.injector || this._defaultInjector);\n            // ApplicationRef's attachView and detachView methods are in Angular ^2.3.0 but not before.\n            // The `else` clause here can be removed once 2.3.0 is released.\n            if (this._appRef['attachView']) {\n                this._appRef.attachView(componentRef.hostView);\n                this.setDisposeFn(function () {\n                    _this._appRef.detachView(componentRef.hostView);\n                    componentRef.destroy();\n                });\n            }\n            else {\n                // When creating a component outside of a ViewContainer, we need to manually register\n                // its ChangeDetector with the application. This API is unfortunately not published\n                // in Angular < 2.3.0. The change detector must also be deregistered when the component\n                // is destroyed to prevent memory leaks.\n                var changeDetectorRef_1 = componentRef.changeDetectorRef;\n                this._appRef.registerChangeDetector(changeDetectorRef_1);\n                this.setDisposeFn(function () {\n                    _this._appRef.unregisterChangeDetector(changeDetectorRef_1);\n                    // Normally the ViewContainer will remove the component's nodes from the DOM.\n                    // Without a ViewContainer, we need to manually remove the nodes.\n                    var componentRootNode = _this._getComponentRootNode(componentRef);\n                    if (componentRootNode.parentNode) {\n                        componentRootNode.parentNode.removeChild(componentRootNode);\n                    }\n                    componentRef.destroy();\n                });\n            }\n        }\n        // At this point the component has been instantiated, so we move it to the location in the DOM\n        // where we want it to be rendered.\n        this._hostDomElement.appendChild(this._getComponentRootNode(componentRef));\n        return componentRef;\n    };\n    /**\n     * Attaches a template portal to the DOM as an embedded view.\n     * @param portal Portal to be attached.\n     */\n    DomPortalHost.prototype.attachTemplatePortal = function (portal) {\n        var _this = this;\n        var viewContainer = portal.viewContainerRef;\n        var viewRef = viewContainer.createEmbeddedView(portal.templateRef);\n        viewRef.rootNodes.forEach(function (rootNode) { return _this._hostDomElement.appendChild(rootNode); });\n        this.setDisposeFn((function () {\n            var index = viewContainer.indexOf(viewRef);\n            if (index != -1) {\n                viewContainer.remove(index);\n            }\n        }));\n        // TODO(jelbourn): Return locals from view.\n        return new Map();\n    };\n    /**\n     * Clears out a portal from the DOM.\n     */\n    DomPortalHost.prototype.dispose = function () {\n        _super.prototype.dispose.call(this);\n        if (this._hostDomElement.parentNode != null) {\n            this._hostDomElement.parentNode.removeChild(this._hostDomElement);\n        }\n    };\n    /** Gets the root HTMLElement for an instantiated component. */\n    DomPortalHost.prototype._getComponentRootNode = function (componentRef) {\n        return componentRef.hostView.rootNodes[0];\n    };\n    return DomPortalHost;\n}(BasePortalHost));\n\n/**\n * Reference to an overlay that has been created with the Overlay service.\n * Used to manipulate or dispose of said overlay.\n */\nvar OverlayRef = (function () {\n    function OverlayRef(_portalHost, _pane, _state, _ngZone) {\n        this._portalHost = _portalHost;\n        this._pane = _pane;\n        this._state = _state;\n        this._ngZone = _ngZone;\n        this._backdropElement = null;\n        this._backdropClick = new rxjs_Subject.Subject();\n    }\n    Object.defineProperty(OverlayRef.prototype, \"overlayElement\", {\n        /** The overlay's HTML element */\n        get: function () {\n            return this._pane;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Attaches the overlay to a portal instance and adds the backdrop.\n     * @param portal Portal instance to which to attach the overlay.\n     * @returns The portal attachment result.\n     */\n    OverlayRef.prototype.attach = function (portal) {\n        if (this._state.hasBackdrop) {\n            this._attachBackdrop();\n        }\n        var attachResult = this._portalHost.attach(portal);\n        this.updateSize();\n        this.updateDirection();\n        this.updatePosition();\n        return attachResult;\n    };\n    /**\n     * Detaches an overlay from a portal.\n     * @returns Resolves when the overlay has been detached.\n     */\n    OverlayRef.prototype.detach = function () {\n        this._detachBackdrop();\n        return this._portalHost.detach();\n    };\n    /**\n     * Cleans up the overlay from the DOM.\n     */\n    OverlayRef.prototype.dispose = function () {\n        if (this._state.positionStrategy) {\n            this._state.positionStrategy.dispose();\n        }\n        this._detachBackdrop();\n        this._portalHost.dispose();\n    };\n    /**\n     * Checks whether the overlay has been attached.\n     */\n    OverlayRef.prototype.hasAttached = function () {\n        return this._portalHost.hasAttached();\n    };\n    /**\n     * Returns an observable that emits when the backdrop has been clicked.\n     */\n    OverlayRef.prototype.backdropClick = function () {\n        return this._backdropClick.asObservable();\n    };\n    /**\n     * Gets the current state config of the overlay.\n     */\n    OverlayRef.prototype.getState = function () {\n        return this._state;\n    };\n    /** Updates the position of the overlay based on the position strategy. */\n    OverlayRef.prototype.updatePosition = function () {\n        if (this._state.positionStrategy) {\n            this._state.positionStrategy.apply(this._pane);\n        }\n    };\n    /** Updates the text direction of the overlay panel. **/\n    OverlayRef.prototype.updateDirection = function () {\n        this._pane.setAttribute('dir', this._state.direction);\n    };\n    /** Updates the size of the overlay based on the overlay config. */\n    OverlayRef.prototype.updateSize = function () {\n        if (this._state.width || this._state.width === 0) {\n            this._pane.style.width = formatCssUnit(this._state.width);\n        }\n        if (this._state.height || this._state.height === 0) {\n            this._pane.style.height = formatCssUnit(this._state.height);\n        }\n        if (this._state.minWidth || this._state.minWidth === 0) {\n            this._pane.style.minWidth = formatCssUnit(this._state.minWidth);\n        }\n        if (this._state.minHeight || this._state.minHeight === 0) {\n            this._pane.style.minHeight = formatCssUnit(this._state.minHeight);\n        }\n    };\n    /** Attaches a backdrop for this overlay. */\n    OverlayRef.prototype._attachBackdrop = function () {\n        var _this = this;\n        this._backdropElement = document.createElement('div');\n        this._backdropElement.classList.add('cdk-overlay-backdrop');\n        this._backdropElement.classList.add(this._state.backdropClass);\n        // Insert the backdrop before the pane in the DOM order,\n        // in order to handle stacked overlays properly.\n        this._pane.parentElement.insertBefore(this._backdropElement, this._pane);\n        // Forward backdrop clicks such that the consumer of the overlay can perform whatever\n        // action desired when such a click occurs (usually closing the overlay).\n        this._backdropElement.addEventListener('click', function () { return _this._backdropClick.next(null); });\n        // Add class to fade-in the backdrop after one frame.\n        requestAnimationFrame(function () {\n            if (_this._backdropElement) {\n                _this._backdropElement.classList.add('cdk-overlay-backdrop-showing');\n            }\n        });\n    };\n    /** Detaches the backdrop (if any) associated with the overlay. */\n    OverlayRef.prototype._detachBackdrop = function () {\n        var _this = this;\n        var backdropToDetach = this._backdropElement;\n        if (backdropToDetach) {\n            var finishDetach_1 = function () {\n                // It may not be attached to anything in certain cases (e.g. unit tests).\n                if (backdropToDetach && backdropToDetach.parentNode) {\n                    backdropToDetach.parentNode.removeChild(backdropToDetach);\n                }\n                // It is possible that a new portal has been attached to this overlay since we started\n                // removing the backdrop. If that is the case, only clear the backdrop reference if it\n                // is still the same instance that we started to remove.\n                if (_this._backdropElement == backdropToDetach) {\n                    _this._backdropElement = null;\n                }\n            };\n            backdropToDetach.classList.remove('cdk-overlay-backdrop-showing');\n            backdropToDetach.classList.remove(this._state.backdropClass);\n            backdropToDetach.addEventListener('transitionend', finishDetach_1);\n            // If the backdrop doesn't have a transition, the `transitionend` event won't fire.\n            // In this case we make it unclickable and we try to remove it after a delay.\n            backdropToDetach.style.pointerEvents = 'none';\n            // Run this outside the Angular zone because there's nothing that Angular cares about.\n            // If it were to run inside the Angular zone, every test that used Overlay would have to be\n            // either async or fakeAsync.\n            this._ngZone.runOutsideAngular(function () {\n                setTimeout(finishDetach_1, 500);\n            });\n        }\n    };\n    return OverlayRef;\n}());\nfunction formatCssUnit(value) {\n    return typeof value === 'string' ? value : value + \"px\";\n}\n\nvar __decorate$11 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$11 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$2 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n/** The points of the origin element and the overlay element to connect. */\nvar ConnectionPositionPair = (function () {\n    function ConnectionPositionPair(origin, overlay) {\n        this.originX = origin.originX;\n        this.originY = origin.originY;\n        this.overlayX = overlay.overlayX;\n        this.overlayY = overlay.overlayY;\n    }\n    return ConnectionPositionPair;\n}());\n/**\n * Set of properties regarding the position of the origin and overlay relative to the viewport\n * with respect to the containing Scrollable elements.\n *\n * The overlay and origin are clipped if any part of their bounding client rectangle exceeds the\n * bounds of any one of the strategy's Scrollable's bounding client rectangle.\n *\n * The overlay and origin are outside view if there is no overlap between their bounding client\n * rectangle and any one of the strategy's Scrollable's bounding client rectangle.\n *\n *       -----------                    -----------\n *       | outside |                    | clipped |\n *       |  view   |              --------------------------\n *       |         |              |     |         |        |\n *       ----------               |     -----------        |\n *  --------------------------    |                        |\n *  |                        |    |      Scrollable        |\n *  |                        |    |                        |\n *  |                        |     --------------------------\n *  |      Scrollable        |\n *  |                        |\n *  --------------------------\n */\nvar ScrollableViewProperties = (function () {\n    function ScrollableViewProperties() {\n    }\n    return ScrollableViewProperties;\n}());\n/** The change event emitted by the strategy when a fallback position is used. */\nvar ConnectedOverlayPositionChange = (function () {\n    function ConnectedOverlayPositionChange(connectionPair, scrollableViewProperties) {\n        this.connectionPair = connectionPair;\n        this.scrollableViewProperties = scrollableViewProperties;\n    }\n    ConnectedOverlayPositionChange = __decorate$11([\n        __param$2(1, _angular_core.Optional()), \n        __metadata$11('design:paramtypes', [ConnectionPositionPair, ScrollableViewProperties])\n    ], ConnectedOverlayPositionChange);\n    return ConnectedOverlayPositionChange;\n}());\n\n/**\n * A strategy for positioning overlays. Using this strategy, an overlay is given an\n * implicit position relative some origin element. The relative position is defined in terms of\n * a point on the origin element that is connected to a point on the overlay element. For example,\n * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner\n * of the overlay.\n */\nvar ConnectedPositionStrategy = (function () {\n    function ConnectedPositionStrategy(_connectedTo, _originPos, _overlayPos, _viewportRuler) {\n        this._connectedTo = _connectedTo;\n        this._originPos = _originPos;\n        this._overlayPos = _overlayPos;\n        this._viewportRuler = _viewportRuler;\n        this._dir = 'ltr';\n        /** The offset in pixels for the overlay connection point on the x-axis */\n        this._offsetX = 0;\n        /** The offset in pixels for the overlay connection point on the y-axis */\n        this._offsetY = 0;\n        /** The Scrollable containers used to check scrollable view properties on position change. */\n        this.scrollables = [];\n        /** Ordered list of preferred positions, from most to least desirable. */\n        this._preferredPositions = [];\n        this._onPositionChange = new rxjs_Subject.Subject();\n        this._origin = this._connectedTo.nativeElement;\n        this.withFallbackPosition(_originPos, _overlayPos);\n    }\n    Object.defineProperty(ConnectedPositionStrategy.prototype, \"_isRtl\", {\n        /** Whether the we're dealing with an RTL context */\n        get: function () {\n            return this._dir === 'rtl';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(ConnectedPositionStrategy.prototype, \"onPositionChange\", {\n        /** Emits an event when the connection point changes. */\n        get: function () {\n            return this._onPositionChange.asObservable();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(ConnectedPositionStrategy.prototype, \"positions\", {\n        /** Ordered list of preferred positions, from most to least desirable. */\n        get: function () {\n            return this._preferredPositions;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * To be used to for any cleanup after the element gets destroyed.\n     */\n    ConnectedPositionStrategy.prototype.dispose = function () { };\n    /**\n     * Updates the position of the overlay element, using whichever preferred position relative\n     * to the origin fits on-screen.\n     * @docs-private\n     *\n     * @param element Element to which to apply the CSS styles.\n     * @returns Resolves when the styles have been applied.\n     */\n    ConnectedPositionStrategy.prototype.apply = function (element) {\n        // We need the bounding rects for the origin and the overlay to determine how to position\n        // the overlay relative to the origin.\n        var originRect = this._origin.getBoundingClientRect();\n        var overlayRect = element.getBoundingClientRect();\n        // We use the viewport rect to determine whether a position would go off-screen.\n        var viewportRect = this._viewportRuler.getViewportRect();\n        // Fallback point if none of the fallbacks fit into the viewport.\n        var fallbackPoint = null;\n        // We want to place the overlay in the first of the preferred positions such that the\n        // overlay fits on-screen.\n        for (var _i = 0, _a = this._preferredPositions; _i < _a.length; _i++) {\n            var pos = _a[_i];\n            // Get the (x, y) point of connection on the origin, and then use that to get the\n            // (top, left) coordinate for the overlay at `pos`.\n            var originPoint = this._getOriginConnectionPoint(originRect, pos);\n            var overlayPoint = this._getOverlayPoint(originPoint, overlayRect, viewportRect, pos);\n            // If the overlay in the calculated position fits on-screen, put it there and we're done.\n            if (overlayPoint.fitsInViewport) {\n                this._setElementPosition(element, overlayPoint);\n                // Notify that the position has been changed along with its change properties.\n                var scrollableViewProperties = this.getScrollableViewProperties(element);\n                var positionChange = new ConnectedOverlayPositionChange(pos, scrollableViewProperties);\n                this._onPositionChange.next(positionChange);\n                return Promise.resolve(null);\n            }\n            else if (!fallbackPoint || fallbackPoint.visibleArea < overlayPoint.visibleArea) {\n                fallbackPoint = overlayPoint;\n            }\n        }\n        // If none of the preferred positions were in the viewport, take the one\n        // with the largest visible area.\n        this._setElementPosition(element, fallbackPoint);\n        return Promise.resolve(null);\n    };\n    /**\n     * Sets the list of Scrollable containers that host the origin element so that\n     * on reposition we can evaluate if it or the overlay has been clipped or outside view. Every\n     * Scrollable must be an ancestor element of the strategy's origin element.\n     */\n    ConnectedPositionStrategy.prototype.withScrollableContainers = function (scrollables) {\n        this.scrollables = scrollables;\n    };\n    /**\n     * Adds a new preferred fallback position.\n     * @param originPos\n     * @param overlayPos\n     */\n    ConnectedPositionStrategy.prototype.withFallbackPosition = function (originPos, overlayPos) {\n        this._preferredPositions.push(new ConnectionPositionPair(originPos, overlayPos));\n        return this;\n    };\n    /**\n     * Sets the layout direction so the overlay's position can be adjusted to match.\n     * @param dir New layout direction.\n     */\n    ConnectedPositionStrategy.prototype.withDirection = function (dir) {\n        this._dir = dir;\n        return this;\n    };\n    /**\n     * Sets an offset for the overlay's connection point on the x-axis\n     * @param offset New offset in the X axis.\n     */\n    ConnectedPositionStrategy.prototype.withOffsetX = function (offset) {\n        this._offsetX = offset;\n        return this;\n    };\n    /**\n     * Sets an offset for the overlay's connection point on the y-axis\n     * @param  offset New offset in the Y axis.\n     */\n    ConnectedPositionStrategy.prototype.withOffsetY = function (offset) {\n        this._offsetY = offset;\n        return this;\n    };\n    /**\n     * Gets the horizontal (x) \"start\" dimension based on whether the overlay is in an RTL context.\n     * @param rect\n     */\n    ConnectedPositionStrategy.prototype._getStartX = function (rect) {\n        return this._isRtl ? rect.right : rect.left;\n    };\n    /**\n     * Gets the horizontal (x) \"end\" dimension based on whether the overlay is in an RTL context.\n     * @param rect\n     */\n    ConnectedPositionStrategy.prototype._getEndX = function (rect) {\n        return this._isRtl ? rect.left : rect.right;\n    };\n    /**\n     * Gets the (x, y) coordinate of a connection point on the origin based on a relative position.\n     * @param originRect\n     * @param pos\n     */\n    ConnectedPositionStrategy.prototype._getOriginConnectionPoint = function (originRect, pos) {\n        var originStartX = this._getStartX(originRect);\n        var originEndX = this._getEndX(originRect);\n        var x;\n        if (pos.originX == 'center') {\n            x = originStartX + (originRect.width / 2);\n        }\n        else {\n            x = pos.originX == 'start' ? originStartX : originEndX;\n        }\n        var y;\n        if (pos.originY == 'center') {\n            y = originRect.top + (originRect.height / 2);\n        }\n        else {\n            y = pos.originY == 'top' ? originRect.top : originRect.bottom;\n        }\n        return { x: x, y: y };\n    };\n    /**\n     * Gets the (x, y) coordinate of the top-left corner of the overlay given a given position and\n     * origin point to which the overlay should be connected, as well as how much of the element\n     * would be inside the viewport at that position.\n     */\n    ConnectedPositionStrategy.prototype._getOverlayPoint = function (originPoint, overlayRect, viewportRect, pos) {\n        // Calculate the (overlayStartX, overlayStartY), the start of the potential overlay position\n        // relative to the origin point.\n        var overlayStartX;\n        if (pos.overlayX == 'center') {\n            overlayStartX = -overlayRect.width / 2;\n        }\n        else if (pos.overlayX === 'start') {\n            overlayStartX = this._isRtl ? -overlayRect.width : 0;\n        }\n        else {\n            overlayStartX = this._isRtl ? 0 : -overlayRect.width;\n        }\n        var overlayStartY;\n        if (pos.overlayY == 'center') {\n            overlayStartY = -overlayRect.height / 2;\n        }\n        else {\n            overlayStartY = pos.overlayY == 'top' ? 0 : -overlayRect.height;\n        }\n        // The (x, y) coordinates of the overlay.\n        var x = originPoint.x + overlayStartX + this._offsetX;\n        var y = originPoint.y + overlayStartY + this._offsetY;\n        // How much the overlay would overflow at this position, on each side.\n        var leftOverflow = viewportRect.left - x;\n        var rightOverflow = (x + overlayRect.width) - viewportRect.right;\n        var topOverflow = viewportRect.top - y;\n        var bottomOverflow = (y + overlayRect.height) - viewportRect.bottom;\n        // Visible parts of the element on each axis.\n        var visibleWidth = this._subtractOverflows(overlayRect.width, leftOverflow, rightOverflow);\n        var visibleHeight = this._subtractOverflows(overlayRect.height, topOverflow, bottomOverflow);\n        // The area of the element that's within the viewport.\n        var visibleArea = visibleWidth * visibleHeight;\n        var fitsInViewport = (overlayRect.width * overlayRect.height) === visibleArea;\n        return { x: x, y: y, fitsInViewport: fitsInViewport, visibleArea: visibleArea };\n    };\n    /**\n     * Gets the view properties of the trigger and overlay, including whether they are clipped\n     * or completely outside the view of any of the strategy's scrollables.\n     */\n    ConnectedPositionStrategy.prototype.getScrollableViewProperties = function (overlay) {\n        var _this = this;\n        var originBounds = this._getElementBounds(this._origin);\n        var overlayBounds = this._getElementBounds(overlay);\n        var scrollContainerBounds = this.scrollables.map(function (scrollable) {\n            return _this._getElementBounds(scrollable.getElementRef().nativeElement);\n        });\n        return {\n            isOriginClipped: this.isElementClipped(originBounds, scrollContainerBounds),\n            isOriginOutsideView: this.isElementOutsideView(originBounds, scrollContainerBounds),\n            isOverlayClipped: this.isElementClipped(overlayBounds, scrollContainerBounds),\n            isOverlayOutsideView: this.isElementOutsideView(overlayBounds, scrollContainerBounds),\n        };\n    };\n    /** Whether the element is completely out of the view of any of the containers. */\n    ConnectedPositionStrategy.prototype.isElementOutsideView = function (elementBounds, containersBounds) {\n        return containersBounds.some(function (containerBounds) {\n            var outsideAbove = elementBounds.bottom < containerBounds.top;\n            var outsideBelow = elementBounds.top > containerBounds.bottom;\n            var outsideLeft = elementBounds.right < containerBounds.left;\n            var outsideRight = elementBounds.left > containerBounds.right;\n            return outsideAbove || outsideBelow || outsideLeft || outsideRight;\n        });\n    };\n    /** Whether the element is clipped by any of the containers. */\n    ConnectedPositionStrategy.prototype.isElementClipped = function (elementBounds, containersBounds) {\n        return containersBounds.some(function (containerBounds) {\n            var clippedAbove = elementBounds.top < containerBounds.top;\n            var clippedBelow = elementBounds.bottom > containerBounds.bottom;\n            var clippedLeft = elementBounds.left < containerBounds.left;\n            var clippedRight = elementBounds.right > containerBounds.right;\n            return clippedAbove || clippedBelow || clippedLeft || clippedRight;\n        });\n    };\n    /**\n     * Physically positions the overlay element to the given coordinate.\n     * @param element\n     * @param overlayPoint\n     */\n    ConnectedPositionStrategy.prototype._setElementPosition = function (element, overlayPoint) {\n        element.style.left = overlayPoint.x + 'px';\n        element.style.top = overlayPoint.y + 'px';\n    };\n    /** Returns the bounding positions of the provided element with respect to the viewport. */\n    ConnectedPositionStrategy.prototype._getElementBounds = function (element) {\n        var boundingClientRect = element.getBoundingClientRect();\n        return {\n            top: boundingClientRect.top,\n            right: boundingClientRect.left + boundingClientRect.width,\n            bottom: boundingClientRect.top + boundingClientRect.height,\n            left: boundingClientRect.left\n        };\n    };\n    /**\n     * Subtracts the amount that an element is overflowing on an axis from it's length.\n     */\n    ConnectedPositionStrategy.prototype._subtractOverflows = function (length) {\n        var overflows = [];\n        for (var _i = 1; _i < arguments.length; _i++) {\n            overflows[_i - 1] = arguments[_i];\n        }\n        return overflows.reduce(function (currentValue, currentOverflow) {\n            return currentValue - Math.max(currentOverflow, 0);\n        }, length);\n    };\n    return ConnectedPositionStrategy;\n}());\n\n/**\n * A strategy for positioning overlays. Using this strategy, an overlay is given an\n * explicit position relative to the browser's viewport. We use flexbox, instead of\n * transforms, in order to avoid issues with subpixel rendering which can cause the\n * element to become blurry.\n */\nvar GlobalPositionStrategy = (function () {\n    function GlobalPositionStrategy() {\n        this._cssPosition = 'static';\n        this._topOffset = '';\n        this._bottomOffset = '';\n        this._leftOffset = '';\n        this._rightOffset = '';\n        this._alignItems = '';\n        this._justifyContent = '';\n        this._width = '';\n        this._height = '';\n    }\n    /**\n     * Sets the top position of the overlay. Clears any previously set vertical position.\n     * @param value New top offset.\n     */\n    GlobalPositionStrategy.prototype.top = function (value) {\n        this._bottomOffset = '';\n        this._topOffset = value;\n        this._alignItems = 'flex-start';\n        return this;\n    };\n    /**\n     * Sets the left position of the overlay. Clears any previously set horizontal position.\n     * @param value New left offset.\n     */\n    GlobalPositionStrategy.prototype.left = function (value) {\n        this._rightOffset = '';\n        this._leftOffset = value;\n        this._justifyContent = 'flex-start';\n        return this;\n    };\n    /**\n     * Sets the bottom position of the overlay. Clears any previously set vertical position.\n     * @param value New bottom offset.\n     */\n    GlobalPositionStrategy.prototype.bottom = function (value) {\n        this._topOffset = '';\n        this._bottomOffset = value;\n        this._alignItems = 'flex-end';\n        return this;\n    };\n    /**\n     * Sets the right position of the overlay. Clears any previously set horizontal position.\n     * @param value New right offset.\n     */\n    GlobalPositionStrategy.prototype.right = function (value) {\n        this._leftOffset = '';\n        this._rightOffset = value;\n        this._justifyContent = 'flex-end';\n        return this;\n    };\n    /**\n     * Sets the overlay width and clears any previously set width.\n     * @param value New width for the overlay\n     */\n    GlobalPositionStrategy.prototype.width = function (value) {\n        this._width = value;\n        // When the width is 100%, we should reset the `left` and the offset,\n        // in order to ensure that the element is flush against the viewport edge.\n        if (value === '100%') {\n            this.left('0px');\n        }\n        return this;\n    };\n    /**\n     * Sets the overlay height and clears any previously set height.\n     * @param value New height for the overlay\n     */\n    GlobalPositionStrategy.prototype.height = function (value) {\n        this._height = value;\n        // When the height is 100%, we should reset the `top` and the offset,\n        // in order to ensure that the element is flush against the viewport edge.\n        if (value === '100%') {\n            this.top('0px');\n        }\n        return this;\n    };\n    /**\n     * Centers the overlay horizontally with an optional offset.\n     * Clears any previously set horizontal position.\n     *\n     * @param offset Overlay offset from the horizontal center.\n     */\n    GlobalPositionStrategy.prototype.centerHorizontally = function (offset) {\n        if (offset === void 0) { offset = ''; }\n        this.left(offset);\n        this._justifyContent = 'center';\n        return this;\n    };\n    /**\n     * Centers the overlay vertically with an optional offset.\n     * Clears any previously set vertical position.\n     *\n     * @param offset Overlay offset from the vertical center.\n     */\n    GlobalPositionStrategy.prototype.centerVertically = function (offset) {\n        if (offset === void 0) { offset = ''; }\n        this.top(offset);\n        this._alignItems = 'center';\n        return this;\n    };\n    /**\n     * Apply the position to the element.\n     * @docs-private\n     *\n     * @param element Element to which to apply the CSS.\n     * @returns Resolved when the styles have been applied.\n     */\n    GlobalPositionStrategy.prototype.apply = function (element) {\n        if (!this._wrapper) {\n            this._wrapper = document.createElement('div');\n            this._wrapper.classList.add('cdk-global-overlay-wrapper');\n            element.parentNode.insertBefore(this._wrapper, element);\n            this._wrapper.appendChild(element);\n        }\n        var styles = element.style;\n        var parentStyles = element.parentNode.style;\n        styles.position = this._cssPosition;\n        styles.marginTop = this._topOffset;\n        styles.marginLeft = this._leftOffset;\n        styles.marginBottom = this._bottomOffset;\n        styles.marginRight = this._rightOffset;\n        styles.width = this._width;\n        styles.height = this._height;\n        parentStyles.justifyContent = this._justifyContent;\n        parentStyles.alignItems = this._alignItems;\n        return Promise.resolve(null);\n    };\n    /**\n     * Removes the wrapper element from the DOM.\n     */\n    GlobalPositionStrategy.prototype.dispose = function () {\n        if (this._wrapper && this._wrapper.parentNode) {\n            this._wrapper.parentNode.removeChild(this._wrapper);\n            this._wrapper = null;\n        }\n    };\n    return GlobalPositionStrategy;\n}());\n\nvar __decorate$10 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$10 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/** Builder for overlay position strategy. */\nvar OverlayPositionBuilder = (function () {\n    function OverlayPositionBuilder(_viewportRuler) {\n        this._viewportRuler = _viewportRuler;\n    }\n    /**\n     * Creates a global position strategy.\n     */\n    OverlayPositionBuilder.prototype.global = function () {\n        return new GlobalPositionStrategy();\n    };\n    /**\n     * Creates a relative position strategy.\n     * @param elementRef\n     * @param originPos\n     * @param overlayPos\n     */\n    OverlayPositionBuilder.prototype.connectedTo = function (elementRef, originPos, overlayPos) {\n        return new ConnectedPositionStrategy(elementRef, originPos, overlayPos, this._viewportRuler);\n    };\n    OverlayPositionBuilder = __decorate$10([\n        _angular_core.Injectable(), \n        __metadata$10('design:paramtypes', [ViewportRuler])\n    ], OverlayPositionBuilder);\n    return OverlayPositionBuilder;\n}());\n\n/**\n * The OverlayContainer is the container in which all overlays will load.\n * It should be provided in the root component to ensure it is properly shared.\n */\nvar OverlayContainer = (function () {\n    function OverlayContainer() {\n    }\n    /**\n     * This method returns the overlay container element.  It will lazily\n     * create the element the first time  it is called to facilitate using\n     * the container in non-browser environments.\n     * @returns the container element\n     */\n    OverlayContainer.prototype.getContainerElement = function () {\n        if (!this._containerElement) {\n            this._createContainer();\n        }\n        return this._containerElement;\n    };\n    /**\n     * Create the overlay container element, which is simply a div\n     * with the 'cdk-overlay-container' class on the document body.\n     */\n    OverlayContainer.prototype._createContainer = function () {\n        var container = document.createElement('div');\n        container.classList.add('cdk-overlay-container');\n        document.body.appendChild(container);\n        this._containerElement = container;\n    };\n    return OverlayContainer;\n}());\n\nvar __decorate$12 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$12 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Service contained all registered Scrollable references and emits an event when any one of the\n * Scrollable references emit a scrolled event.\n */\nvar ScrollDispatcher = (function () {\n    function ScrollDispatcher() {\n        var _this = this;\n        /** Subject for notifying that a registered scrollable reference element has been scrolled. */\n        this._scrolled = new rxjs_Subject.Subject();\n        /**\n         * Map of all the scrollable references that are registered with the service and their\n         * scroll event subscriptions.\n         */\n        this.scrollableReferences = new Map();\n        // By default, notify a scroll event when the document is scrolled or the window is resized.\n        rxjs_Observable.Observable.fromEvent(window.document, 'scroll').subscribe(function () { return _this._notify(); });\n        rxjs_Observable.Observable.fromEvent(window, 'resize').subscribe(function () { return _this._notify(); });\n    }\n    /**\n     * Registers a Scrollable with the service and listens for its scrolled events. When the\n     * scrollable is scrolled, the service emits the event in its scrolled observable.\n     *\n     * @param scrollable Scrollable instance to be registered.\n     */\n    ScrollDispatcher.prototype.register = function (scrollable) {\n        var _this = this;\n        var scrollSubscription = scrollable.elementScrolled().subscribe(function () { return _this._notify(); });\n        this.scrollableReferences.set(scrollable, scrollSubscription);\n    };\n    /**\n     * Deregisters a Scrollable reference and unsubscribes from its scroll event observable.\n     *\n     * @param scrollable Scrollable instance to be deregistered.\n     */\n    ScrollDispatcher.prototype.deregister = function (scrollable) {\n        this.scrollableReferences.get(scrollable).unsubscribe();\n        this.scrollableReferences.delete(scrollable);\n    };\n    /**\n     * Returns an observable that emits an event whenever any of the registered Scrollable\n     * references (or window, document, or body) fire a scrolled event.\n     */\n    ScrollDispatcher.prototype.scrolled = function () {\n        // TODO: Add an event limiter that includes throttle with the leading and trailing events.\n        return this._scrolled.asObservable();\n    };\n    /** Returns all registered Scrollables that contain the provided element. */\n    ScrollDispatcher.prototype.getScrollContainers = function (elementRef) {\n        var _this = this;\n        var scrollingContainers = [];\n        this.scrollableReferences.forEach(function (subscription, scrollable) {\n            if (_this.scrollableContainsElement(scrollable, elementRef)) {\n                scrollingContainers.push(scrollable);\n            }\n        });\n        return scrollingContainers;\n    };\n    /** Returns true if the element is contained within the provided Scrollable. */\n    ScrollDispatcher.prototype.scrollableContainsElement = function (scrollable, elementRef) {\n        var element = elementRef.nativeElement;\n        var scrollableElement = scrollable.getElementRef().nativeElement;\n        // Traverse through the element parents until we reach null, checking if any of the elements\n        // are the scrollable's element.\n        do {\n            if (element == scrollableElement) {\n                return true;\n            }\n        } while (element = element.parentElement);\n    };\n    /** Sends a notification that a scroll event has been fired. */\n    ScrollDispatcher.prototype._notify = function () {\n        this._scrolled.next();\n    };\n    ScrollDispatcher = __decorate$12([\n        _angular_core.Injectable(), \n        __metadata$12('design:paramtypes', [])\n    ], ScrollDispatcher);\n    return ScrollDispatcher;\n}());\n\nvar __decorate$9 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$9 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/** Next overlay unique ID. */\nvar nextUniqueId = 0;\n/** The default state for newly created overlays. */\nvar defaultState = new OverlayState();\n/**\n * Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be\n * used as a low-level building building block for other components. Dialogs, tooltips, menus,\n * selects, etc. can all be built using overlays. The service should primarily be used by authors\n * of re-usable components rather than developers building end-user applications.\n *\n * An overlay *is* a PortalHost, so any kind of Portal can be loaded into one.\n */\nvar Overlay = (function () {\n    function Overlay(_overlayContainer, _componentFactoryResolver, _positionBuilder, _appRef, _injector, _ngZone) {\n        this._overlayContainer = _overlayContainer;\n        this._componentFactoryResolver = _componentFactoryResolver;\n        this._positionBuilder = _positionBuilder;\n        this._appRef = _appRef;\n        this._injector = _injector;\n        this._ngZone = _ngZone;\n    }\n    /**\n     * Creates an overlay.\n     * @param state State to apply to the overlay.\n     * @returns Reference to the created overlay.\n     */\n    Overlay.prototype.create = function (state$$1) {\n        if (state$$1 === void 0) { state$$1 = defaultState; }\n        return this._createOverlayRef(this._createPaneElement(), state$$1);\n    };\n    /**\n     * Returns a position builder that can be used, via fluent API,\n     * to construct and configure a position strategy.\n     */\n    Overlay.prototype.position = function () {\n        return this._positionBuilder;\n    };\n    /**\n     * Creates the DOM element for an overlay and appends it to the overlay container.\n     * @returns Newly-created pane element\n     */\n    Overlay.prototype._createPaneElement = function () {\n        var pane = document.createElement('div');\n        pane.id = \"cdk-overlay-\" + nextUniqueId++;\n        pane.classList.add('cdk-overlay-pane');\n        this._overlayContainer.getContainerElement().appendChild(pane);\n        return pane;\n    };\n    /**\n     * Create a DomPortalHost into which the overlay content can be loaded.\n     * @param pane The DOM element to turn into a portal host.\n     * @returns A portal host for the given DOM element.\n     */\n    Overlay.prototype._createPortalHost = function (pane) {\n        return new DomPortalHost(pane, this._componentFactoryResolver, this._appRef, this._injector);\n    };\n    /**\n     * Creates an OverlayRef for an overlay in the given DOM element.\n     * @param pane DOM element for the overlay\n     * @param state\n     */\n    Overlay.prototype._createOverlayRef = function (pane, state$$1) {\n        return new OverlayRef(this._createPortalHost(pane), pane, state$$1, this._ngZone);\n    };\n    Overlay = __decorate$9([\n        _angular_core.Injectable(), \n        __metadata$9('design:paramtypes', [OverlayContainer, _angular_core.ComponentFactoryResolver, OverlayPositionBuilder, _angular_core.ApplicationRef, _angular_core.Injector, _angular_core.NgZone])\n    ], Overlay);\n    return Overlay;\n}());\n/** Providers for Overlay and its related injectables. */\nvar OVERLAY_PROVIDERS = [\n    ViewportRuler,\n    OverlayPositionBuilder,\n    Overlay,\n    OverlayContainer,\n    ScrollDispatcher,\n];\n\nvar __decorate$13 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$13 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Sends an event when the directive's element is scrolled. Registers itself with the\n * ScrollDispatcher service to include itself as part of its collection of scrolling events that it\n * can be listened to through the service.\n */\nvar Scrollable = (function () {\n    function Scrollable(_elementRef, _scroll) {\n        this._elementRef = _elementRef;\n        this._scroll = _scroll;\n    }\n    Scrollable.prototype.ngOnInit = function () {\n        this._scroll.register(this);\n    };\n    Scrollable.prototype.ngOnDestroy = function () {\n        this._scroll.deregister(this);\n    };\n    /**\n     * Returns observable that emits when a scroll event is fired on the host element.\n     */\n    Scrollable.prototype.elementScrolled = function () {\n        return rxjs_Observable.Observable.fromEvent(this._elementRef.nativeElement, 'scroll');\n    };\n    Scrollable.prototype.getElementRef = function () {\n        return this._elementRef;\n    };\n    Scrollable = __decorate$13([\n        _angular_core.Directive({\n            selector: '[cdk-scrollable]'\n        }), \n        __metadata$13('design:paramtypes', [_angular_core.ElementRef, ScrollDispatcher])\n    ], Scrollable);\n    return Scrollable;\n}());\n\nvar __decorate$8 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$8 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$1 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n/** Default set of positions for the overlay. Follows the behavior of a dropdown. */\nvar defaultPositionList = [\n    new ConnectionPositionPair({ originX: 'start', originY: 'bottom' }, { overlayX: 'start', overlayY: 'top' }),\n    new ConnectionPositionPair({ originX: 'start', originY: 'top' }, { overlayX: 'start', overlayY: 'bottom' }),\n];\n/**\n * Directive applied to an element to make it usable as an origin for an Overlay using a\n * ConnectedPositionStrategy.\n */\nvar OverlayOrigin = (function () {\n    function OverlayOrigin(elementRef) {\n        this.elementRef = elementRef;\n    }\n    OverlayOrigin = __decorate$8([\n        _angular_core.Directive({\n            selector: '[cdk-overlay-origin], [overlay-origin]',\n            exportAs: 'cdkOverlayOrigin',\n        }), \n        __metadata$8('design:paramtypes', [_angular_core.ElementRef])\n    ], OverlayOrigin);\n    return OverlayOrigin;\n}());\n/**\n * Directive to facilitate declarative creation of an Overlay using a ConnectedPositionStrategy.\n */\nvar ConnectedOverlayDirective = (function () {\n    // TODO(jelbourn): inputs for size, scroll behavior, animation, etc.\n    function ConnectedOverlayDirective(_overlay, templateRef, viewContainerRef, _dir) {\n        this._overlay = _overlay;\n        this._dir = _dir;\n        this._open = false;\n        this._hasBackdrop = false;\n        this._offsetX = 0;\n        this._offsetY = 0;\n        /** Event emitted when the backdrop is clicked. */\n        this.backdropClick = new _angular_core.EventEmitter();\n        /** Event emitted when the position has changed. */\n        this.positionChange = new _angular_core.EventEmitter();\n        /** Event emitted when the overlay has been attached. */\n        this.attach = new _angular_core.EventEmitter();\n        /** Event emitted when the overlay has been detached. */\n        this.detach = new _angular_core.EventEmitter();\n        this._templatePortal = new TemplatePortal(templateRef, viewContainerRef);\n    }\n    Object.defineProperty(ConnectedOverlayDirective.prototype, \"offsetX\", {\n        /** The offset in pixels for the overlay connection point on the x-axis */\n        get: function () {\n            return this._offsetX;\n        },\n        set: function (offsetX) {\n            this._offsetX = offsetX;\n            if (this._position) {\n                this._position.withOffsetX(offsetX);\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(ConnectedOverlayDirective.prototype, \"offsetY\", {\n        /** The offset in pixels for the overlay connection point on the y-axis */\n        get: function () {\n            return this._offsetY;\n        },\n        set: function (offsetY) {\n            this._offsetY = offsetY;\n            if (this._position) {\n                this._position.withOffsetY(offsetY);\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(ConnectedOverlayDirective.prototype, \"hasBackdrop\", {\n        /** Whether or not the overlay should attach a backdrop. */\n        get: function () {\n            return this._hasBackdrop;\n        },\n        // TODO: move the boolean coercion logic to a shared function in core\n        set: function (value) {\n            this._hasBackdrop = value != null && \"\" + value !== 'false';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(ConnectedOverlayDirective.prototype, \"open\", {\n        get: function () {\n            return this._open;\n        },\n        set: function (value) {\n            value ? this._attachOverlay() : this._detachOverlay();\n            this._open = value;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(ConnectedOverlayDirective.prototype, \"overlayRef\", {\n        /** The associated overlay reference. */\n        get: function () {\n            return this._overlayRef;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(ConnectedOverlayDirective.prototype, \"dir\", {\n        /** The element's layout direction. */\n        get: function () {\n            return this._dir ? this._dir.value : 'ltr';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    ConnectedOverlayDirective.prototype.ngOnDestroy = function () {\n        this._destroyOverlay();\n    };\n    /** Creates an overlay */\n    ConnectedOverlayDirective.prototype._createOverlay = function () {\n        if (!this.positions || !this.positions.length) {\n            this.positions = defaultPositionList;\n        }\n        this._overlayRef = this._overlay.create(this._buildConfig());\n    };\n    /** Builds the overlay config based on the directive's inputs */\n    ConnectedOverlayDirective.prototype._buildConfig = function () {\n        var overlayConfig = new OverlayState();\n        if (this.width || this.width === 0) {\n            overlayConfig.width = this.width;\n        }\n        if (this.height || this.height === 0) {\n            overlayConfig.height = this.height;\n        }\n        if (this.minWidth || this.minWidth === 0) {\n            overlayConfig.minWidth = this.minWidth;\n        }\n        if (this.minHeight || this.minHeight === 0) {\n            overlayConfig.minHeight = this.minHeight;\n        }\n        overlayConfig.hasBackdrop = this.hasBackdrop;\n        if (this.backdropClass) {\n            overlayConfig.backdropClass = this.backdropClass;\n        }\n        this._position = this._createPositionStrategy();\n        overlayConfig.positionStrategy = this._position;\n        overlayConfig.direction = this.dir;\n        return overlayConfig;\n    };\n    /** Returns the position strategy of the overlay to be set on the overlay config */\n    ConnectedOverlayDirective.prototype._createPositionStrategy = function () {\n        var pos = this.positions[0];\n        var originPoint = { originX: pos.originX, originY: pos.originY };\n        var overlayPoint = { overlayX: pos.overlayX, overlayY: pos.overlayY };\n        var strategy = this._overlay.position()\n            .connectedTo(this.origin.elementRef, originPoint, overlayPoint)\n            .withDirection(this.dir)\n            .withOffsetX(this.offsetX)\n            .withOffsetY(this.offsetY);\n        this._handlePositionChanges(strategy);\n        return strategy;\n    };\n    ConnectedOverlayDirective.prototype._handlePositionChanges = function (strategy) {\n        var _this = this;\n        for (var i = 1; i < this.positions.length; i++) {\n            strategy.withFallbackPosition({ originX: this.positions[i].originX, originY: this.positions[i].originY }, { overlayX: this.positions[i].overlayX, overlayY: this.positions[i].overlayY });\n        }\n        this._positionSubscription =\n            strategy.onPositionChange.subscribe(function (pos) { return _this.positionChange.emit(pos); });\n    };\n    /** Attaches the overlay and subscribes to backdrop clicks if backdrop exists */\n    ConnectedOverlayDirective.prototype._attachOverlay = function () {\n        var _this = this;\n        if (!this._overlayRef) {\n            this._createOverlay();\n        }\n        if (!this._overlayRef.hasAttached()) {\n            this._overlayRef.attach(this._templatePortal);\n            this.attach.emit();\n        }\n        if (this.hasBackdrop) {\n            this._backdropSubscription = this._overlayRef.backdropClick().subscribe(function () {\n                _this.backdropClick.emit();\n            });\n        }\n    };\n    /** Detaches the overlay and unsubscribes to backdrop clicks if backdrop exists */\n    ConnectedOverlayDirective.prototype._detachOverlay = function () {\n        if (this._overlayRef) {\n            this._overlayRef.detach();\n            this.detach.emit();\n        }\n        if (this._backdropSubscription) {\n            this._backdropSubscription.unsubscribe();\n            this._backdropSubscription = null;\n        }\n    };\n    /** Destroys the overlay created by this directive. */\n    ConnectedOverlayDirective.prototype._destroyOverlay = function () {\n        if (this._overlayRef) {\n            this._overlayRef.dispose();\n        }\n        if (this._backdropSubscription) {\n            this._backdropSubscription.unsubscribe();\n        }\n        if (this._positionSubscription) {\n            this._positionSubscription.unsubscribe();\n        }\n    };\n    __decorate$8([\n        _angular_core.Input(), \n        __metadata$8('design:type', OverlayOrigin)\n    ], ConnectedOverlayDirective.prototype, \"origin\", void 0);\n    __decorate$8([\n        _angular_core.Input(), \n        __metadata$8('design:type', Array)\n    ], ConnectedOverlayDirective.prototype, \"positions\", void 0);\n    __decorate$8([\n        _angular_core.Input(), \n        __metadata$8('design:type', Number)\n    ], ConnectedOverlayDirective.prototype, \"offsetX\", null);\n    __decorate$8([\n        _angular_core.Input(), \n        __metadata$8('design:type', Object)\n    ], ConnectedOverlayDirective.prototype, \"offsetY\", null);\n    __decorate$8([\n        _angular_core.Input(), \n        __metadata$8('design:type', Object)\n    ], ConnectedOverlayDirective.prototype, \"width\", void 0);\n    __decorate$8([\n        _angular_core.Input(), \n        __metadata$8('design:type', Object)\n    ], ConnectedOverlayDirective.prototype, \"height\", void 0);\n    __decorate$8([\n        _angular_core.Input(), \n        __metadata$8('design:type', Object)\n    ], ConnectedOverlayDirective.prototype, \"minWidth\", void 0);\n    __decorate$8([\n        _angular_core.Input(), \n        __metadata$8('design:type', Object)\n    ], ConnectedOverlayDirective.prototype, \"minHeight\", void 0);\n    __decorate$8([\n        _angular_core.Input(), \n        __metadata$8('design:type', String)\n    ], ConnectedOverlayDirective.prototype, \"backdropClass\", void 0);\n    __decorate$8([\n        _angular_core.Input(), \n        __metadata$8('design:type', Object)\n    ], ConnectedOverlayDirective.prototype, \"hasBackdrop\", null);\n    __decorate$8([\n        _angular_core.Input(), \n        __metadata$8('design:type', Object)\n    ], ConnectedOverlayDirective.prototype, \"open\", null);\n    __decorate$8([\n        _angular_core.Output(), \n        __metadata$8('design:type', Object)\n    ], ConnectedOverlayDirective.prototype, \"backdropClick\", void 0);\n    __decorate$8([\n        _angular_core.Output(), \n        __metadata$8('design:type', Object)\n    ], ConnectedOverlayDirective.prototype, \"positionChange\", void 0);\n    __decorate$8([\n        _angular_core.Output(), \n        __metadata$8('design:type', Object)\n    ], ConnectedOverlayDirective.prototype, \"attach\", void 0);\n    __decorate$8([\n        _angular_core.Output(), \n        __metadata$8('design:type', Object)\n    ], ConnectedOverlayDirective.prototype, \"detach\", void 0);\n    ConnectedOverlayDirective = __decorate$8([\n        _angular_core.Directive({\n            selector: '[cdk-connected-overlay], [connected-overlay]',\n            exportAs: 'cdkConnectedOverlay'\n        }),\n        __param$1(3, _angular_core.Optional()), \n        __metadata$8('design:paramtypes', [Overlay, _angular_core.TemplateRef, _angular_core.ViewContainerRef, Dir])\n    ], ConnectedOverlayDirective);\n    return ConnectedOverlayDirective;\n}());\nvar OverlayModule = (function () {\n    function OverlayModule() {\n    }\n    OverlayModule.forRoot = function () {\n        return {\n            ngModule: OverlayModule,\n            providers: OVERLAY_PROVIDERS,\n        };\n    };\n    OverlayModule = __decorate$8([\n        _angular_core.NgModule({\n            imports: [PortalModule],\n            exports: [ConnectedOverlayDirective, OverlayOrigin, Scrollable],\n            declarations: [ConnectedOverlayDirective, OverlayOrigin, Scrollable],\n        }), \n        __metadata$8('design:paramtypes', [])\n    ], OverlayModule);\n    return OverlayModule;\n}());\n\nvar __decorate$17 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$17 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n// Whether the current platform supports the V8 Break Iterator. The V8 check\n// is necessary to detect all Blink based browsers.\nvar hasV8BreakIterator = typeof (window) !== 'undefined' ?\n    (window.Intl && window.Intl.v8BreakIterator) :\n    (typeof (Intl) !== 'undefined' && Intl.v8BreakIterator);\n/**\n * Service to detect the current platform by comparing the userAgent strings and\n * checking browser-specific global properties.\n * @docs-private\n */\nvar Platform = (function () {\n    function Platform() {\n        /** Layout Engines */\n        this.EDGE = /(edge)/i.test(navigator.userAgent);\n        this.TRIDENT = /(msie|trident)/i.test(navigator.userAgent);\n        // EdgeHTML and Trident mock Blink specific things and need to excluded from this check.\n        this.BLINK = !!(window.chrome || hasV8BreakIterator) && !!CSS && !this.EDGE && !this.TRIDENT;\n        // Webkit is part of the userAgent in EdgeHTML Blink and Trident, so we need to\n        // ensure that Webkit runs standalone and is not use as another engines base.\n        this.WEBKIT = /AppleWebKit/i.test(navigator.userAgent) && !this.BLINK && !this.EDGE && !this.TRIDENT;\n        /** Browsers and Platform Types */\n        this.IOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;\n        // It's difficult to detect the plain Gecko engine, because most of the browsers identify\n        // them self as Gecko-like browsers and modify the userAgent's according to that.\n        // Since we only cover one explicit Firefox case, we can simply check for Firefox\n        // instead of having an unstable check for Gecko.\n        this.FIREFOX = /(firefox|minefield)/i.test(navigator.userAgent);\n        // Trident on mobile adds the android platform to the userAgent to trick detections.\n        this.ANDROID = /android/i.test(navigator.userAgent) && !this.TRIDENT;\n    }\n    Platform = __decorate$17([\n        _angular_core.Injectable(), \n        __metadata$17('design:paramtypes', [])\n    ], Platform);\n    return Platform;\n}());\n\nvar __decorate$16 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$16 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * The InteractivityChecker leans heavily on the ally.js accessibility utilities.\n * Methods like `isTabbable` are only covering specific edge-cases for the browsers which are\n * supported.\n */\n/**\n * Utility for checking the interactivity of an element, such as whether is is focusable or\n * tabbable.\n */\nvar InteractivityChecker = (function () {\n    function InteractivityChecker(_platform) {\n        this._platform = _platform;\n    }\n    /**\n     * Gets whether an element is disabled.\n     *\n     * @param element Element to be checked.\n     * @returns Whether the element is disabled.\n     */\n    InteractivityChecker.prototype.isDisabled = function (element) {\n        // This does not capture some cases, such as a non-form control with a disabled attribute or\n        // a form control inside of a disabled form, but should capture the most common cases.\n        return element.hasAttribute('disabled');\n    };\n    /**\n     * Gets whether an element is visible for the purposes of interactivity.\n     *\n     * This will capture states like `display: none` and `visibility: hidden`, but not things like\n     * being clipped by an `overflow: hidden` parent or being outside the viewport.\n     *\n     * @returns Whether the element is visible.\n     */\n    InteractivityChecker.prototype.isVisible = function (element) {\n        return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';\n    };\n    /**\n     * Gets whether an element can be reached via Tab key.\n     * Assumes that the element has already been checked with isFocusable.\n     *\n     * @param element Element to be checked.\n     * @returns Whether the element is tabbable.\n     */\n    InteractivityChecker.prototype.isTabbable = function (element) {\n        var frameElement = getWindow(element).frameElement;\n        if (frameElement) {\n            var frameType = frameElement && frameElement.nodeName.toLowerCase();\n            // Frame elements inherit their tabindex onto all child elements.\n            if (getTabIndexValue(frameElement) === -1) {\n                return false;\n            }\n            // Webkit and Blink consider anything inside of an <object> element as non-tabbable.\n            if ((this._platform.BLINK || this._platform.WEBKIT) && frameType === 'object') {\n                return false;\n            }\n            // Webkit and Blink disable tabbing to an element inside of an invisible frame.\n            if ((this._platform.BLINK || this._platform.WEBKIT) && !this.isVisible(frameElement)) {\n                return false;\n            }\n        }\n        var nodeName = element.nodeName.toLowerCase();\n        var tabIndexValue = getTabIndexValue(element);\n        if (element.hasAttribute('contenteditable')) {\n            return tabIndexValue !== -1;\n        }\n        if (nodeName === 'iframe') {\n            // The frames may be tabbable depending on content, but it's not possibly to reliably\n            // investigate the content of the frames.\n            return false;\n        }\n        if (nodeName === 'audio') {\n            if (!element.hasAttribute('controls')) {\n                // By default an <audio> element without the controls enabled is not tabbable.\n                return false;\n            }\n            else if (this._platform.BLINK) {\n                // In Blink <audio controls> elements are always tabbable.\n                return true;\n            }\n        }\n        if (nodeName === 'video') {\n            if (!element.hasAttribute('controls') && this._platform.TRIDENT) {\n                // In Trident a <video> element without the controls enabled is not tabbable.\n                return false;\n            }\n            else if (this._platform.BLINK || this._platform.FIREFOX) {\n                // In Chrome and Firefox <video controls> elements are always tabbable.\n                return true;\n            }\n        }\n        if (nodeName === 'object' && (this._platform.BLINK || this._platform.WEBKIT)) {\n            // In all Blink and WebKit based browsers <object> elements are never tabbable.\n            return false;\n        }\n        // In iOS the browser only considers some specific elements as tabbable.\n        if (this._platform.WEBKIT && this._platform.IOS && !isPotentiallyTabbableIOS(element)) {\n            return false;\n        }\n        return element.tabIndex >= 0;\n    };\n    /**\n     * Gets whether an element can be focused by the user.\n     *\n     * @param element Element to be checked.\n     * @returns Whether the element is focusable.\n     */\n    InteractivityChecker.prototype.isFocusable = function (element) {\n        // Perform checks in order of left to most expensive.\n        // Again, naive approach that does not capture many edge cases and browser quirks.\n        return isPotentiallyFocusable(element) && !this.isDisabled(element) && this.isVisible(element);\n    };\n    InteractivityChecker = __decorate$16([\n        _angular_core.Injectable(), \n        __metadata$16('design:paramtypes', [Platform])\n    ], InteractivityChecker);\n    return InteractivityChecker;\n}());\n/** Checks whether the specified element has any geometry / rectangles. */\nfunction hasGeometry(element) {\n    // Use logic from jQuery to check for an invisible element.\n    // See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12\n    return !!(element.offsetWidth || element.offsetHeight || element.getClientRects().length);\n}\n/** Gets whether an element's  */\nfunction isNativeFormElement(element) {\n    var nodeName = element.nodeName.toLowerCase();\n    return nodeName === 'input' ||\n        nodeName === 'select' ||\n        nodeName === 'button' ||\n        nodeName === 'textarea';\n}\n/** Gets whether an element is an <input type=\"hidden\">. */\nfunction isHiddenInput(element) {\n    return isInputElement(element) && element.type == 'hidden';\n}\n/** Gets whether an element is an anchor that has an href attribute. */\nfunction isAnchorWithHref(element) {\n    return isAnchorElement(element) && element.hasAttribute('href');\n}\n/** Gets whether an element is an input element. */\nfunction isInputElement(element) {\n    return element.nodeName == 'input';\n}\n/** Gets whether an element is an anchor element. */\nfunction isAnchorElement(element) {\n    return element.nodeName.toLowerCase() == 'a';\n}\n/** Gets whether an element has a valid tabindex. */\nfunction hasValidTabIndex(element) {\n    if (!element.hasAttribute('tabindex') || element.tabIndex === undefined) {\n        return false;\n    }\n    var tabIndex = element.getAttribute('tabindex');\n    // IE11 parses tabindex=\"\" as the value \"-32768\"\n    if (tabIndex == '-32768') {\n        return false;\n    }\n    return !!(tabIndex && !isNaN(parseInt(tabIndex, 10)));\n}\n/**\n * Returns the parsed tabindex from the element attributes instead of returning the\n * evaluated tabindex from the browsers defaults.\n */\nfunction getTabIndexValue(element) {\n    if (!hasValidTabIndex(element)) {\n        return null;\n    }\n    // See browser issue in Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054\n    var tabIndex = parseInt(element.getAttribute('tabindex'), 10);\n    return isNaN(tabIndex) ? -1 : tabIndex;\n}\n/** Checks whether the specified element is potentially tabbable on iOS */\nfunction isPotentiallyTabbableIOS(element) {\n    var nodeName = element.nodeName.toLowerCase();\n    var inputType = nodeName === 'input' && element.type;\n    return inputType === 'text'\n        || inputType === 'password'\n        || nodeName === 'select'\n        || nodeName === 'textarea';\n}\n/**\n * Gets whether an element is potentially focusable without taking current visible/disabled state\n * into account.\n */\nfunction isPotentiallyFocusable(element) {\n    // Inputs are potentially focusable *unless* they're type=\"hidden\".\n    if (isHiddenInput(element)) {\n        return false;\n    }\n    return isNativeFormElement(element) ||\n        isAnchorWithHref(element) ||\n        element.hasAttribute('contenteditable') ||\n        hasValidTabIndex(element);\n}\n/** Gets the parent window of a DOM node with regards of being inside of an iframe. */\nfunction getWindow(node) {\n    return node.ownerDocument.defaultView || window;\n}\n\n/** Coerces a data-bound value (typically a string) to a boolean. */\nfunction coerceBooleanProperty(value) {\n    return value != null && \"\" + value !== 'false';\n}\n\nvar __decorate$15 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$15 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Directive for trapping focus within a region.\n *\n * NOTE: This directive currently uses a very simple (naive) approach to focus trapping.\n * It assumes that the tab order is the same as DOM order, which is not necessarily true.\n * Things like tabIndex > 0, flex `order`, and shadow roots can cause to two to misalign.\n * This will be replaced with a more intelligent solution before the library is considered stable.\n */\nvar FocusTrap = (function () {\n    function FocusTrap(_checker, _ngZone) {\n        this._checker = _checker;\n        this._ngZone = _ngZone;\n        this._disabled = false;\n    }\n    Object.defineProperty(FocusTrap.prototype, \"disabled\", {\n        /** Whether the focus trap is active. */\n        get: function () { return this._disabled; },\n        set: function (val) { this._disabled = coerceBooleanProperty(val); },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Waits for microtask queue to empty, then focuses the first tabbable element within the focus\n     * trap region.\n     */\n    FocusTrap.prototype.focusFirstTabbableElementWhenReady = function () {\n        var _this = this;\n        this._ngZone.onMicrotaskEmpty.first().subscribe(function () {\n            _this.focusFirstTabbableElement();\n        });\n    };\n    /**\n     * Waits for microtask queue to empty, then focuses the last tabbable element within the focus\n     * trap region.\n     */\n    FocusTrap.prototype.focusLastTabbableElementWhenReady = function () {\n        var _this = this;\n        this._ngZone.onMicrotaskEmpty.first().subscribe(function () {\n            _this.focusLastTabbableElement();\n        });\n    };\n    /**\n     * Focuses the first tabbable element within the focus trap region.\n     */\n    FocusTrap.prototype.focusFirstTabbableElement = function () {\n        var rootElement = this.trappedContent.nativeElement;\n        var redirectToElement = rootElement.querySelector('[cdk-focus-start]') ||\n            this._getFirstTabbableElement(rootElement);\n        if (redirectToElement) {\n            redirectToElement.focus();\n        }\n    };\n    /**\n     * Focuses the last tabbable element within the focus trap region.\n     */\n    FocusTrap.prototype.focusLastTabbableElement = function () {\n        var rootElement = this.trappedContent.nativeElement;\n        var focusTargets = rootElement.querySelectorAll('[cdk-focus-end]');\n        var redirectToElement = null;\n        if (focusTargets.length) {\n            redirectToElement = focusTargets[focusTargets.length - 1];\n        }\n        else {\n            redirectToElement = this._getLastTabbableElement(rootElement);\n        }\n        if (redirectToElement) {\n            redirectToElement.focus();\n        }\n    };\n    /** Get the first tabbable element from a DOM subtree (inclusive). */\n    FocusTrap.prototype._getFirstTabbableElement = function (root) {\n        if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {\n            return root;\n        }\n        // Iterate in DOM order.\n        var childCount = root.children.length;\n        for (var i = 0; i < childCount; i++) {\n            var tabbableChild = this._getFirstTabbableElement(root.children[i]);\n            if (tabbableChild) {\n                return tabbableChild;\n            }\n        }\n        return null;\n    };\n    /** Get the last tabbable element from a DOM subtree (inclusive). */\n    FocusTrap.prototype._getLastTabbableElement = function (root) {\n        if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {\n            return root;\n        }\n        // Iterate in reverse DOM order.\n        for (var i = root.children.length - 1; i >= 0; i--) {\n            var tabbableChild = this._getLastTabbableElement(root.children[i]);\n            if (tabbableChild) {\n                return tabbableChild;\n            }\n        }\n        return null;\n    };\n    __decorate$15([\n        _angular_core.ViewChild('trappedContent'), \n        __metadata$15('design:type', _angular_core.ElementRef)\n    ], FocusTrap.prototype, \"trappedContent\", void 0);\n    __decorate$15([\n        _angular_core.Input(), \n        __metadata$15('design:type', Boolean)\n    ], FocusTrap.prototype, \"disabled\", null);\n    FocusTrap = __decorate$15([\n        _angular_core.Component({selector: 'cdk-focus-trap, focus-trap',\n            template: \"<div *ngIf=\\\"!disabled\\\" tabindex=\\\"0\\\" (focus)=\\\"focusLastTabbableElement()\\\"></div><div #trappedContent class=\\\"cdk-focus-trap-content\\\"><ng-content></ng-content></div><div *ngIf=\\\"!disabled\\\" tabindex=\\\"0\\\" (focus)=\\\"focusFirstTabbableElement()\\\"></div>\",\n            encapsulation: _angular_core.ViewEncapsulation.None,\n        }), \n        __metadata$15('design:paramtypes', [InteractivityChecker, _angular_core.NgZone])\n    ], FocusTrap);\n    return FocusTrap;\n}());\n\nvar __decorate$18 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$18 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$3 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar LIVE_ANNOUNCER_ELEMENT_TOKEN = new _angular_core.OpaqueToken('liveAnnouncerElement');\nvar LiveAnnouncer = (function () {\n    function LiveAnnouncer(elementToken) {\n        // We inject the live element as `any` because the constructor signature cannot reference\n        // browser globals (HTMLElement) on non-browser environments, since having a class decorator\n        // causes TypeScript to preserve the constructor signature types.\n        this._liveElement = elementToken || this._createLiveElement();\n    }\n    /**\n     * Announces a message to screenreaders.\n     * @param message Message to be announced to the screenreader\n     * @param politeness The politeness of the announcer element\n     */\n    LiveAnnouncer.prototype.announce = function (message, politeness) {\n        var _this = this;\n        if (politeness === void 0) { politeness = 'polite'; }\n        this._liveElement.textContent = '';\n        // TODO: ensure changing the politeness works on all environments we support.\n        this._liveElement.setAttribute('aria-live', politeness);\n        // This 100ms timeout is necessary for some browser + screen-reader combinations:\n        // - Both JAWS and NVDA over IE11 will not announce anything without a non-zero timeout.\n        // - With Chrome and IE11 with NVDA or JAWS, a repeated (identical) message won't be read a\n        //   second time without clearing and then using a non-zero delay.\n        // (using JAWS 17 at time of this writing).\n        setTimeout(function () { return _this._liveElement.textContent = message; }, 100);\n    };\n    /** Removes the aria-live element from the DOM. */\n    LiveAnnouncer.prototype._removeLiveElement = function () {\n        if (this._liveElement && this._liveElement.parentNode) {\n            this._liveElement.parentNode.removeChild(this._liveElement);\n        }\n    };\n    LiveAnnouncer.prototype._createLiveElement = function () {\n        var liveEl = document.createElement('div');\n        liveEl.classList.add('cdk-visually-hidden');\n        liveEl.setAttribute('aria-atomic', 'true');\n        liveEl.setAttribute('aria-live', 'polite');\n        document.body.appendChild(liveEl);\n        return liveEl;\n    };\n    LiveAnnouncer = __decorate$18([\n        _angular_core.Injectable(),\n        __param$3(0, _angular_core.Optional()),\n        __param$3(0, _angular_core.Inject(LIVE_ANNOUNCER_ELEMENT_TOKEN)), \n        __metadata$18('design:paramtypes', [Object])\n    ], LiveAnnouncer);\n    return LiveAnnouncer;\n}());\n\nvar supportedInputTypes;\n/** @returns The input types supported by this browser. */\nfunction getSupportedInputTypes() {\n    if (!supportedInputTypes) {\n        var featureTestInput_1 = document.createElement('input');\n        supportedInputTypes = new Set([\n            'button',\n            'checkbox',\n            'color',\n            'date',\n            'datetime-local',\n            'email',\n            'file',\n            'hidden',\n            'image',\n            'month',\n            'number',\n            'password',\n            'radio',\n            'range',\n            'reset',\n            'search',\n            'submit',\n            'tel',\n            'text',\n            'time',\n            'url',\n            'week',\n        ].filter(function (value) {\n            featureTestInput_1.setAttribute('type', value);\n            return featureTestInput_1.type === value;\n        }));\n    }\n    return supportedInputTypes;\n}\n\nvar __decorate$19 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$19 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar PlatformModule = (function () {\n    function PlatformModule() {\n    }\n    PlatformModule.forRoot = function () {\n        return {\n            ngModule: PlatformModule,\n            providers: [Platform],\n        };\n    };\n    PlatformModule = __decorate$19([\n        _angular_core.NgModule({}), \n        __metadata$19('design:paramtypes', [])\n    ], PlatformModule);\n    return PlatformModule;\n}());\n\nvar __decorate$14 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$14 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar A11Y_PROVIDERS = [LiveAnnouncer, InteractivityChecker];\nvar A11yModule = (function () {\n    function A11yModule() {\n    }\n    A11yModule.forRoot = function () {\n        return {\n            ngModule: A11yModule,\n            providers: [\n                PlatformModule.forRoot().providers,\n                A11Y_PROVIDERS,\n            ],\n        };\n    };\n    A11yModule = __decorate$14([\n        _angular_core.NgModule({\n            imports: [_angular_common.CommonModule, PlatformModule],\n            declarations: [FocusTrap],\n            exports: [FocusTrap],\n        }), \n        __metadata$14('design:paramtypes', [])\n    ], A11yModule);\n    return A11yModule;\n}());\n\nvar __decorate$20 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$20 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n// \"Polyfill\" for `Node.replaceWith()`.\n// cf. https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/replaceWith\nfunction _replaceWith(toReplaceEl, otherEl) {\n    toReplaceEl.parentElement.replaceChild(otherEl, toReplaceEl);\n}\n/** @docs-private */\nvar DomProjectionHost = (function () {\n    function DomProjectionHost(ref) {\n        this.ref = ref;\n    }\n    DomProjectionHost = __decorate$20([\n        _angular_core.Directive({\n            selector: 'cdk-dom-projection-host'\n        }), \n        __metadata$20('design:paramtypes', [_angular_core.ElementRef])\n    ], DomProjectionHost);\n    return DomProjectionHost;\n}());\n/** @docs-private */\nvar DomProjection = (function () {\n    function DomProjection() {\n    }\n    /**\n     * Project an element into a host element.\n     * Replace a host element by another element. This also replaces the children of the element\n     * by the children of the host.\n     *\n     * It should be used like this:\n     *\n     * ```\n     *   @Component({\n     *     template: `<div>\n     *       <cdk-dom-projection-host>\n     *         <div>other</div>\n     *         <ng-content></ng-content>\n     *       </cdk-dom-projection-host>\n     *     </div>`\n     *   })\n     *   class Cmpt {\n     *     constructor(private _projector: DomProjection, private _el: ElementRef) {}\n     *     ngOnInit() { this._projector.project(this._el, this._projector); }\n     *   }\n     * ```\n     *\n     * This component will move the content of the element it's applied to in the outer div. Because\n     * `project()` also move the children of the host inside the projected element, the element will\n     * contain the `<div>other</div>` HTML as well as its own children.\n     *\n     * Note: without `<ng-content></ng-content>` the projection will project an empty element.\n     *\n     * @param ref ElementRef to be projected.\n     * @param host Projection host into which to project the `ElementRef`.\n     */\n    DomProjection.prototype.project = function (ref, host) {\n        var projectedEl = ref.nativeElement;\n        var hostEl = host.ref.nativeElement;\n        var childNodes = projectedEl.childNodes;\n        var child = childNodes[0];\n        // We hoist all of the projected element's children out into the projected elements position\n        // because we *only* want to move the projected element and not its children.\n        _replaceWith(projectedEl, child);\n        var l = childNodes.length;\n        while (l--) {\n            child.parentNode.insertBefore(childNodes[0], child.nextSibling);\n            child = child.nextSibling; // nextSibling is now the childNodes[0].\n        }\n        // Insert all host children under the projectedEl, then replace host by component.\n        l = hostEl.childNodes.length;\n        while (l--) {\n            projectedEl.appendChild(hostEl.childNodes[0]);\n        }\n        _replaceWith(hostEl, projectedEl);\n        // At this point the host is replaced by the component. Nothing else to be done.\n    };\n    DomProjection = __decorate$20([\n        _angular_core.Injectable(), \n        __metadata$20('design:paramtypes', [])\n    ], DomProjection);\n    return DomProjection;\n}());\n/** @docs-private */\nvar ProjectionModule = (function () {\n    function ProjectionModule() {\n    }\n    ProjectionModule.forRoot = function () {\n        return {\n            ngModule: ProjectionModule,\n            providers: [DomProjection]\n        };\n    };\n    ProjectionModule = __decorate$20([\n        _angular_core.NgModule({\n            exports: [DomProjectionHost],\n            declarations: [DomProjectionHost],\n        }), \n        __metadata$20('design:paramtypes', [])\n    ], ProjectionModule);\n    return ProjectionModule;\n}());\n\nvar __extends$5 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate$21 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$21 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/* Adjusts configuration of our gesture library, Hammer. */\nvar GestureConfig = (function (_super) {\n    __extends$5(GestureConfig, _super);\n    function GestureConfig() {\n        _super.call(this);\n        this._hammer = typeof window !== 'undefined' ? window.Hammer : null;\n        /* List of new event names to add to the gesture support list */\n        this.events = this._hammer ? [\n            'longpress',\n            'slide',\n            'slidestart',\n            'slideend',\n            'slideright',\n            'slideleft'\n        ] : [];\n        if (!this._hammer && _angular_core.isDevMode()) {\n            console.warn('Could not find HammerJS. Certain Angular Material ' +\n                'components may not work correctly.');\n        }\n    }\n    /**\n     * Builds Hammer instance manually to add custom recognizers that match the Material Design spec.\n     *\n     * Our gesture names come from the Material Design gestures spec:\n     * https://www.google.com/design/spec/patterns/gestures.html#gestures-touch-mechanics\n     *\n     * More information on default recognizers can be found in Hammer docs:\n     * http://hammerjs.github.io/recognizer-pan/\n     * http://hammerjs.github.io/recognizer-press/\n     *\n     * @param element Element to which to assign the new HammerJS gestures.\n     * @returns Newly-created HammerJS instance.\n     */\n    GestureConfig.prototype.buildHammer = function (element) {\n        var mc = new this._hammer(element);\n        // Default Hammer Recognizers.\n        var pan = new this._hammer.Pan();\n        var swipe = new this._hammer.Swipe();\n        var press = new this._hammer.Press();\n        // Notice that a HammerJS recognizer can only depend on one other recognizer once.\n        // Otherwise the previous `recognizeWith` will be dropped.\n        // TODO: Confirm threshold numbers with Material Design UX Team\n        var slide = this._createRecognizer(pan, { event: 'slide', threshold: 0 }, swipe);\n        var longpress = this._createRecognizer(press, { event: 'longpress', time: 500 });\n        // Overwrite the default `pan` event to use the swipe event.\n        pan.recognizeWith(swipe);\n        // Add customized gestures to Hammer manager\n        mc.add([swipe, press, pan, slide, longpress]);\n        return mc;\n    };\n    /** Creates a new recognizer, without affecting the default recognizers of HammerJS */\n    GestureConfig.prototype._createRecognizer = function (base, options) {\n        var inheritances = [];\n        for (var _i = 2; _i < arguments.length; _i++) {\n            inheritances[_i - 2] = arguments[_i];\n        }\n        var recognizer = new base.constructor(options);\n        inheritances.push(base);\n        inheritances.forEach(function (item) { return recognizer.recognizeWith(item); });\n        return recognizer;\n    };\n    GestureConfig = __decorate$21([\n        _angular_core.Injectable(), \n        __metadata$21('design:paramtypes', [])\n    ], GestureConfig);\n    return GestureConfig;\n}(_angular_platformBrowser.HammerGestureConfig));\n\n/**\n * Stripped-down HammerJS annotations to be used within Material, which are necessary,\n * because HammerJS is an optional dependency. For the full annotations see:\n * https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/hammerjs\n */\n\n/**\n * Screenreaders will often fire fake mousedown events when a focusable element\n * is activated using the keyboard. We can typically distinguish between these faked\n * mousedown events and real mousedown events using the \"buttons\" property. While\n * real mousedowns will indicate the mouse button that was pressed (e.g. \"1\" for\n * the left mouse button), faked mousedowns will usually set the property value to 0.\n */\nfunction isFakeMousedownFromScreenReader(event) {\n    return event.buttons === 0;\n}\n\nvar __decorate$22 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$22 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Class to coordinate unique selection based on name.\n * Intended to be consumed as an Angular service.\n * This service is needed because native radio change events are only fired on the item currently\n * being selected, and we still need to uncheck the previous selection.\n *\n * This service does not *store* any IDs and names because they may change at any time, so it is\n * less error-prone if they are simply passed through when the events occur.\n */\nvar UniqueSelectionDispatcher = (function () {\n    function UniqueSelectionDispatcher() {\n        this._listeners = [];\n    }\n    /**\n     * Notify other items that selection for the given name has been set.\n     * @param id ID of the item.\n     * @param name Name of the item.\n     */\n    UniqueSelectionDispatcher.prototype.notify = function (id, name) {\n        for (var _i = 0, _a = this._listeners; _i < _a.length; _i++) {\n            var listener = _a[_i];\n            listener(id, name);\n        }\n    };\n    /** Listen for future changes to item selection. */\n    UniqueSelectionDispatcher.prototype.listen = function (listener) {\n        this._listeners.push(listener);\n    };\n    UniqueSelectionDispatcher = __decorate$22([\n        _angular_core.Injectable(), \n        __metadata$22('design:paramtypes', [])\n    ], UniqueSelectionDispatcher);\n    return UniqueSelectionDispatcher;\n}());\n\n/**\n * Applies a CSS transform to an element, including browser-prefixed properties.\n * @param element\n * @param transformValue\n */\nfunction applyCssTransform(element, transformValue) {\n    // It's important to trim the result, because the browser will ignore the set operation\n    // if the string contains only whitespace.\n    var value = transformValue.trim();\n    element.style.transform = value;\n    element.style.webkitTransform = value;\n}\n\n// Due to a bug in the ChromeDriver, Angular 2 keyboard events are not triggered by `sendKeys`\n// during E2E tests when using dot notation such as `(keydown.rightArrow)`. To get around this,\n// we are temporarily using a single (keydown) handler.\n// See: https://github.com/angular/angular/issues/9419\nvar UP_ARROW = 38;\nvar DOWN_ARROW = 40;\nvar RIGHT_ARROW = 39;\nvar LEFT_ARROW = 37;\nvar PAGE_UP = 33;\nvar PAGE_DOWN = 34;\nvar HOME = 36;\nvar END = 35;\nvar ENTER = 13;\nvar SPACE = 32;\nvar TAB = 9;\nvar ESCAPE = 27;\nvar BACKSPACE = 8;\nvar DELETE = 46;\n\n/** @docs-private */\nvar AnimationCurves = (function () {\n    function AnimationCurves() {\n    }\n    AnimationCurves.STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';\n    AnimationCurves.DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';\n    AnimationCurves.ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';\n    AnimationCurves.SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';\n    return AnimationCurves;\n}());\n/** @docs-private */\nvar AnimationDurations = (function () {\n    function AnimationDurations() {\n    }\n    AnimationDurations.COMPLEX = '375ms';\n    AnimationDurations.ENTERING = '225ms';\n    AnimationDurations.EXITING = '195ms';\n    return AnimationDurations;\n}());\n\n/** Coerces a data-bound value (typically a string) to a number. */\nfunction coerceNumberProperty(value, fallbackValue) {\n    if (fallbackValue === void 0) { fallbackValue = 0; }\n    // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,\n    // and other non-number values as NaN, where Number just uses 0) but it considers the string\n    // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.\n    return isNaN(parseFloat(value)) || isNaN(Number(value)) ? fallbackValue : Number(value);\n}\n\nvar __decorate$23 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$23 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/** Selector that matches all elements that may have style collisions with material1. */\nvar MD_ELEMENTS_SELECTOR = \"\\n  md-autocomplete,\\n  md-card,\\n  md-card-actions,\\n  md-card-content,\\n  md-card-footer,\\n  md-card-header,\\n  md-card-subtitle,\\n  md-card-title,\\n  md-card-title-group,\\n  md-checkbox,\\n  md-chip,\\n  md-dialog-container,\\n  md-divider,\\n  md-grid-list,\\n  md-grid-tile,\\n  md-grid-tile-footer,\\n  md-grid-tile-header,\\n  md-hint,\\n  md-icon,\\n  md-ink-bar,\\n  md-input,\\n  md-list,\\n  md-list-item,\\n  md-menu,\\n  md-nav-list,\\n  md-option,\\n  md-placeholder,\\n  md-progress-bar,\\n  md-progress-circle,\\n  md-radio-button,\\n  md-radio-group,\\n  md-select,\\n  md-sidenav,\\n  md-slider,\\n  md-spinner,\\n  md-tab,\\n  md-toolbar\\n\";\n/** Directive that enforces that the `md-` prefix cannot be used. */\nvar MdPrefixEnforcer = (function () {\n    function MdPrefixEnforcer() {\n        throw Error('The \"md-\" prefix cannot be used in ng-material v1 compatibility mode.');\n    }\n    MdPrefixEnforcer = __decorate$23([\n        _angular_core.Directive({ selector: MD_ELEMENTS_SELECTOR }), \n        __metadata$23('design:paramtypes', [])\n    ], MdPrefixEnforcer);\n    return MdPrefixEnforcer;\n}());\nvar NoConflictStyleCompatibilityMode = (function () {\n    function NoConflictStyleCompatibilityMode() {\n    }\n    NoConflictStyleCompatibilityMode.forRoot = function () {\n        return {\n            ngModule: NoConflictStyleCompatibilityMode,\n            providers: [],\n        };\n    };\n    NoConflictStyleCompatibilityMode = __decorate$23([\n        _angular_core.NgModule({\n            declarations: [MdPrefixEnforcer],\n            exports: [MdPrefixEnforcer],\n            providers: [{\n                    provide: MATERIAL_COMPATIBILITY_MODE, useValue: true,\n                }],\n        }), \n        __metadata$23('design:paramtypes', [])\n    ], NoConflictStyleCompatibilityMode);\n    return NoConflictStyleCompatibilityMode;\n}());\n\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MdCoreModule = (function () {\n    function MdCoreModule() {\n    }\n    MdCoreModule.forRoot = function () {\n        return {\n            ngModule: MdCoreModule,\n            providers: [A11Y_PROVIDERS, OVERLAY_PROVIDERS],\n        };\n    };\n    MdCoreModule = __decorate([\n        _angular_core.NgModule({\n            imports: [\n                MdLineModule,\n                RtlModule,\n                MdRippleModule,\n                ObserveContentModule,\n                PortalModule,\n                OverlayModule,\n                A11yModule,\n            ],\n            exports: [\n                MdLineModule,\n                RtlModule,\n                MdRippleModule,\n                ObserveContentModule,\n                PortalModule,\n                OverlayModule,\n                A11yModule,\n            ],\n        }), \n        __metadata('design:paramtypes', [])\n    ], MdCoreModule);\n    return MdCoreModule;\n}());\n\nvar __decorate$25 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$25 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$4 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n/**\n * Provider Expression that allows md-button-toggle-group to register as a ControlValueAccessor.\n * This allows it to support [(ngModel)].\n * @docs-private\n */\nvar MD_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR = {\n    provide: _angular_forms.NG_VALUE_ACCESSOR,\n    useExisting: _angular_core.forwardRef(function () { return MdButtonToggleGroup; }),\n    multi: true\n};\nvar _uniqueIdCounter = 0;\n/** Change event object emitted by MdButtonToggle. */\nvar MdButtonToggleChange = (function () {\n    function MdButtonToggleChange() {\n    }\n    return MdButtonToggleChange;\n}());\n/** Exclusive selection button toggle group that behaves like a radio-button group. */\nvar MdButtonToggleGroup = (function () {\n    function MdButtonToggleGroup() {\n        /** The value for the button toggle group. Should match currently selected button toggle. */\n        this._value = null;\n        /** The HTML name attribute applied to toggles in this group. */\n        this._name = \"md-radio-group-\" + _uniqueIdCounter++;\n        /** Disables all toggles in the group. */\n        this._disabled = null;\n        /** Whether the button toggle group should be vertical. */\n        this._vertical = false;\n        /** The currently selected button toggle, should match the value. */\n        this._selected = null;\n        /** Whether the button toggle group is initialized or not. */\n        this._isInitialized = false;\n        /**\n         * The method to be called in order to update ngModel.\n         * Now `ngModel` binding is not supported in multiple selection mode.\n         */\n        this._controlValueAccessorChangeFn = function (value) { };\n        /** onTouch function registered via registerOnTouch (ControlValueAccessor). */\n        this.onTouched = function () { };\n        /** Event emitted when the group's value changes. */\n        this._change = new _angular_core.EventEmitter();\n        /** Child button toggle buttons. */\n        this._buttonToggles = null;\n    }\n    Object.defineProperty(MdButtonToggleGroup.prototype, \"change\", {\n        get: function () {\n            return this._change.asObservable();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdButtonToggleGroup.prototype.ngAfterViewInit = function () {\n        this._isInitialized = true;\n    };\n    Object.defineProperty(MdButtonToggleGroup.prototype, \"name\", {\n        /** `name` attribute for the underlying `input` element. */\n        get: function () {\n            return this._name;\n        },\n        set: function (value) {\n            this._name = value;\n            this._updateButtonToggleNames();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdButtonToggleGroup.prototype, \"disabled\", {\n        /** Whether the toggle group is disabled. */\n        get: function () {\n            return this._disabled;\n        },\n        set: function (value) {\n            this._disabled = coerceBooleanProperty(value);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdButtonToggleGroup.prototype, \"vertical\", {\n        /** Whether the toggle group is vertical. */\n        get: function () {\n            return this._vertical;\n        },\n        set: function (value) {\n            this._vertical = coerceBooleanProperty(value);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdButtonToggleGroup.prototype, \"value\", {\n        /** Value of the toggle group. */\n        get: function () {\n            return this._value;\n        },\n        set: function (newValue) {\n            if (this._value != newValue) {\n                this._value = newValue;\n                this._updateSelectedButtonToggleFromValue();\n                // Only emit a change event if the view is completely initialized.\n                // We don't want to emit a change event for the initial values.\n                if (this._isInitialized) {\n                    this._emitChangeEvent();\n                }\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdButtonToggleGroup.prototype, \"selected\", {\n        /** Whether the toggle group is selected. */\n        get: function () {\n            return this._selected;\n        },\n        set: function (selected) {\n            this._selected = selected;\n            this.value = selected ? selected.value : null;\n            if (selected && !selected.checked) {\n                selected.checked = true;\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdButtonToggleGroup.prototype._updateButtonToggleNames = function () {\n        var _this = this;\n        if (this._buttonToggles) {\n            this._buttonToggles.forEach(function (toggle) {\n                toggle.name = _this._name;\n            });\n        }\n    };\n    // TODO: Refactor into shared code with radio.\n    MdButtonToggleGroup.prototype._updateSelectedButtonToggleFromValue = function () {\n        var _this = this;\n        var isAlreadySelected = this._selected != null && this._selected.value == this._value;\n        if (this._buttonToggles != null && !isAlreadySelected) {\n            var matchingButtonToggle = this._buttonToggles.filter(function (buttonToggle) { return buttonToggle.value == _this._value; })[0];\n            if (matchingButtonToggle) {\n                this.selected = matchingButtonToggle;\n            }\n            else if (this.value == null) {\n                this.selected = null;\n                this._buttonToggles.forEach(function (buttonToggle) {\n                    buttonToggle.checked = false;\n                });\n            }\n        }\n    };\n    /** Dispatch change event with current selection and group value. */\n    MdButtonToggleGroup.prototype._emitChangeEvent = function () {\n        var event = new MdButtonToggleChange();\n        event.source = this._selected;\n        event.value = this._value;\n        this._controlValueAccessorChangeFn(event.value);\n        this._change.emit(event);\n    };\n    /**\n     * Sets the model value. Implemented as part of ControlValueAccessor.\n     * @param value Value to be set to the model.\n     */\n    MdButtonToggleGroup.prototype.writeValue = function (value) {\n        this.value = value;\n    };\n    /**\n     * Registers a callback that will be triggered when the value has changed.\n     * Implemented as part of ControlValueAccessor.\n     * @param fn On change callback function.\n     */\n    MdButtonToggleGroup.prototype.registerOnChange = function (fn) {\n        this._controlValueAccessorChangeFn = fn;\n    };\n    /**\n     * Registers a callback that will be triggered when the control has been touched.\n     * Implemented as part of ControlValueAccessor.\n     * @param fn On touch callback function.\n     */\n    MdButtonToggleGroup.prototype.registerOnTouched = function (fn) {\n        this.onTouched = fn;\n    };\n    __decorate$25([\n        _angular_core.Output(), \n        __metadata$25('design:type', rxjs_Observable.Observable)\n    ], MdButtonToggleGroup.prototype, \"change\", null);\n    __decorate$25([\n        _angular_core.ContentChildren(_angular_core.forwardRef(function () { return MdButtonToggle; })), \n        __metadata$25('design:type', _angular_core.QueryList)\n    ], MdButtonToggleGroup.prototype, \"_buttonToggles\", void 0);\n    __decorate$25([\n        _angular_core.Input(), \n        __metadata$25('design:type', String)\n    ], MdButtonToggleGroup.prototype, \"name\", null);\n    __decorate$25([\n        _angular_core.Input(), \n        __metadata$25('design:type', Boolean)\n    ], MdButtonToggleGroup.prototype, \"disabled\", null);\n    __decorate$25([\n        _angular_core.Input(), \n        __metadata$25('design:type', Boolean)\n    ], MdButtonToggleGroup.prototype, \"vertical\", null);\n    __decorate$25([\n        _angular_core.Input(), \n        __metadata$25('design:type', Object)\n    ], MdButtonToggleGroup.prototype, \"value\", null);\n    __decorate$25([\n        _angular_core.Input(), \n        __metadata$25('design:type', Object)\n    ], MdButtonToggleGroup.prototype, \"selected\", null);\n    MdButtonToggleGroup = __decorate$25([\n        _angular_core.Directive({\n            selector: 'md-button-toggle-group:not([multiple])',\n            providers: [MD_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR],\n            host: {\n                'role': 'radiogroup',\n                '[class.md-button-toggle-vertical]': 'vertical'\n            },\n            exportAs: 'mdButtonToggleGroup',\n        }), \n        __metadata$25('design:paramtypes', [])\n    ], MdButtonToggleGroup);\n    return MdButtonToggleGroup;\n}());\n/** Multiple selection button-toggle group. `ngModel` is not supported in this mode. */\nvar MdButtonToggleGroupMultiple = (function () {\n    function MdButtonToggleGroupMultiple() {\n        /** Disables all toggles in the group. */\n        this._disabled = null;\n        /** Whether the button toggle group should be vertical. */\n        this._vertical = false;\n    }\n    Object.defineProperty(MdButtonToggleGroupMultiple.prototype, \"disabled\", {\n        /** Whether the toggle group is disabled. */\n        get: function () {\n            return this._disabled;\n        },\n        set: function (value) {\n            this._disabled = (value != null && value !== false) ? true : null;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdButtonToggleGroupMultiple.prototype, \"vertical\", {\n        /** Whether the toggle group is vertical. */\n        get: function () {\n            return this._vertical;\n        },\n        set: function (value) {\n            this._vertical = coerceBooleanProperty(value);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    __decorate$25([\n        _angular_core.Input(), \n        __metadata$25('design:type', Boolean)\n    ], MdButtonToggleGroupMultiple.prototype, \"disabled\", null);\n    __decorate$25([\n        _angular_core.Input(), \n        __metadata$25('design:type', Boolean)\n    ], MdButtonToggleGroupMultiple.prototype, \"vertical\", null);\n    MdButtonToggleGroupMultiple = __decorate$25([\n        _angular_core.Directive({\n            selector: 'md-button-toggle-group[multiple]',\n            exportAs: 'mdButtonToggleGroup',\n            host: {\n                '[class.md-button-toggle-vertical]': 'vertical'\n            }\n        }), \n        __metadata$25('design:paramtypes', [])\n    ], MdButtonToggleGroupMultiple);\n    return MdButtonToggleGroupMultiple;\n}());\n/** Single button inside of a toggle group. */\nvar MdButtonToggle = (function () {\n    function MdButtonToggle(toggleGroup, toggleGroupMultiple, buttonToggleDispatcher, _renderer) {\n        var _this = this;\n        this.buttonToggleDispatcher = buttonToggleDispatcher;\n        this._renderer = _renderer;\n        /** Whether or not this button toggle is checked. */\n        this._checked = false;\n        /** Whether or not this button toggle is disabled. */\n        this._disabled = null;\n        /** Value assigned to this button toggle. */\n        this._value = null;\n        /** Whether or not the button toggle is a single selection. */\n        this._isSingleSelector = null;\n        /** Event emitted when the group value changes. */\n        this._change = new _angular_core.EventEmitter();\n        this.buttonToggleGroup = toggleGroup;\n        this.buttonToggleGroupMultiple = toggleGroupMultiple;\n        if (this.buttonToggleGroup) {\n            buttonToggleDispatcher.listen(function (id, name) {\n                if (id != _this.id && name == _this.name) {\n                    _this.checked = false;\n                }\n            });\n            this._type = 'radio';\n            this.name = this.buttonToggleGroup.name;\n            this._isSingleSelector = true;\n        }\n        else {\n            // Even if there is no group at all, treat the button toggle as a checkbox so it can be\n            // toggled on or off.\n            this._type = 'checkbox';\n            this._isSingleSelector = false;\n        }\n    }\n    Object.defineProperty(MdButtonToggle.prototype, \"change\", {\n        get: function () {\n            return this._change.asObservable();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdButtonToggle.prototype.ngOnInit = function () {\n        if (this.id == null) {\n            this.id = \"md-button-toggle-\" + _uniqueIdCounter++;\n        }\n        if (this.buttonToggleGroup && this._value == this.buttonToggleGroup.value) {\n            this._checked = true;\n        }\n    };\n    Object.defineProperty(MdButtonToggle.prototype, \"inputId\", {\n        /** Unique ID for the underlying `input` element. */\n        get: function () {\n            return this.id + \"-input\";\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdButtonToggle.prototype, \"checked\", {\n        /** Whether the button is checked. */\n        get: function () {\n            return this._checked;\n        },\n        set: function (newCheckedState) {\n            if (this._isSingleSelector) {\n                if (newCheckedState) {\n                    // Notify all button toggles with the same name (in the same group) to un-check.\n                    this.buttonToggleDispatcher.notify(this.id, this.name);\n                }\n            }\n            this._checked = newCheckedState;\n            if (newCheckedState && this._isSingleSelector && this.buttonToggleGroup.value != this.value) {\n                this.buttonToggleGroup.selected = this;\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdButtonToggle.prototype, \"value\", {\n        /** MdButtonToggleGroup reads this to assign its own value. */\n        get: function () {\n            return this._value;\n        },\n        set: function (value) {\n            if (this._value != value) {\n                if (this.buttonToggleGroup != null && this.checked) {\n                    this.buttonToggleGroup.value = value;\n                }\n                this._value = value;\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /** Dispatch change event with current value. */\n    MdButtonToggle.prototype._emitChangeEvent = function () {\n        var event = new MdButtonToggleChange();\n        event.source = this;\n        event.value = this._value;\n        this._change.emit(event);\n    };\n    Object.defineProperty(MdButtonToggle.prototype, \"disabled\", {\n        /** Whether the button is disabled. */\n        get: function () {\n            return this._disabled || (this.buttonToggleGroup != null && this.buttonToggleGroup.disabled) ||\n                (this.buttonToggleGroupMultiple != null && this.buttonToggleGroupMultiple.disabled);\n        },\n        set: function (value) {\n            this._disabled = (value != null && value !== false) ? true : null;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /** Toggle the state of the current button toggle. */\n    MdButtonToggle.prototype._toggle = function () {\n        this.checked = !this.checked;\n    };\n    /** Checks the button toggle due to an interaction with the underlying native input. */\n    MdButtonToggle.prototype._onInputChange = function (event) {\n        event.stopPropagation();\n        if (this._isSingleSelector) {\n            // Propagate the change one-way via the group, which will in turn mark this\n            // button toggle as checked.\n            this.checked = true;\n            this.buttonToggleGroup.selected = this;\n            this.buttonToggleGroup.onTouched();\n        }\n        else {\n            this._toggle();\n        }\n        // Emit a change event when the native input does.\n        this._emitChangeEvent();\n    };\n    MdButtonToggle.prototype._onInputClick = function (event) {\n        // We have to stop propagation for click events on the visual hidden input element.\n        // By default, when a user clicks on a label element, a generated click event will be\n        // dispatched on the associated input element. Since we are using a label element as our\n        // root container, the click event on the `slide-toggle` will be executed twice.\n        // The real click event will bubble up, and the generated click event also tries to bubble up.\n        // This will lead to multiple click events.\n        // Preventing bubbling for the second event will solve that issue.\n        event.stopPropagation();\n    };\n    /** Focuses the button. */\n    MdButtonToggle.prototype.focus = function () {\n        this._renderer.invokeElementMethod(this._inputElement.nativeElement, 'focus');\n    };\n    __decorate$25([\n        _angular_core.HostBinding(),\n        _angular_core.Input(), \n        __metadata$25('design:type', String)\n    ], MdButtonToggle.prototype, \"id\", void 0);\n    __decorate$25([\n        _angular_core.Input(), \n        __metadata$25('design:type', String)\n    ], MdButtonToggle.prototype, \"name\", void 0);\n    __decorate$25([\n        _angular_core.Output(), \n        __metadata$25('design:type', rxjs_Observable.Observable)\n    ], MdButtonToggle.prototype, \"change\", null);\n    __decorate$25([\n        _angular_core.ViewChild('input'), \n        __metadata$25('design:type', _angular_core.ElementRef)\n    ], MdButtonToggle.prototype, \"_inputElement\", void 0);\n    __decorate$25([\n        _angular_core.HostBinding('class.md-button-toggle-checked'),\n        _angular_core.Input(), \n        __metadata$25('design:type', Boolean)\n    ], MdButtonToggle.prototype, \"checked\", null);\n    __decorate$25([\n        _angular_core.Input(), \n        __metadata$25('design:type', Object)\n    ], MdButtonToggle.prototype, \"value\", null);\n    __decorate$25([\n        _angular_core.HostBinding('class.md-button-toggle-disabled'),\n        _angular_core.Input(), \n        __metadata$25('design:type', Boolean)\n    ], MdButtonToggle.prototype, \"disabled\", null);\n    MdButtonToggle = __decorate$25([\n        _angular_core.Component({selector: 'md-button-toggle',\n            template: \"<label [attr.for]=\\\"inputId\\\" class=\\\"md-button-toggle-label\\\"><input #input class=\\\"md-button-toggle-input cdk-visually-hidden\\\" [type]=\\\"_type\\\" [id]=\\\"inputId\\\" [checked]=\\\"checked\\\" [disabled]=\\\"disabled\\\" [name]=\\\"name\\\" (change)=\\\"_onInputChange($event)\\\" (click)=\\\"_onInputClick($event)\\\"><div class=\\\"md-button-toggle-label-content\\\"><ng-content></ng-content></div></label>\",\n            styles: [\"md-button-toggle-group{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);position:relative;display:inline-flex;flex-direction:row;border-radius:2px;cursor:pointer;white-space:nowrap}.md-button-toggle-vertical{flex-direction:column}.md-button-toggle-vertical .md-button-toggle-label-content{display:block}.md-button-toggle-disabled .md-button-toggle-label-content{cursor:default}md-button-toggle{white-space:nowrap}.md-button-toggle-label-content{display:inline-block;line-height:36px;padding:0 16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.md-button-toggle-label-content>*{vertical-align:middle}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n        }),\n        __param$4(0, _angular_core.Optional()),\n        __param$4(1, _angular_core.Optional()), \n        __metadata$25('design:paramtypes', [MdButtonToggleGroup, MdButtonToggleGroupMultiple, UniqueSelectionDispatcher, _angular_core.Renderer])\n    ], MdButtonToggle);\n    return MdButtonToggle;\n}());\nvar MdButtonToggleModule = (function () {\n    function MdButtonToggleModule() {\n    }\n    MdButtonToggleModule.forRoot = function () {\n        return {\n            ngModule: MdButtonToggleModule,\n            providers: [UniqueSelectionDispatcher]\n        };\n    };\n    MdButtonToggleModule = __decorate$25([\n        _angular_core.NgModule({\n            imports: [_angular_forms.FormsModule, DefaultStyleCompatibilityModeModule],\n            exports: [\n                MdButtonToggleGroup,\n                MdButtonToggleGroupMultiple,\n                MdButtonToggle,\n                DefaultStyleCompatibilityModeModule,\n            ],\n            declarations: [MdButtonToggleGroup, MdButtonToggleGroupMultiple, MdButtonToggle],\n        }), \n        __metadata$25('design:paramtypes', [])\n    ], MdButtonToggleModule);\n    return MdButtonToggleModule;\n}());\n\nvar __extends$6 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate$26 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$26 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n// TODO(jelbourn): Make the `isMouseDown` stuff done with one global listener.\n// TODO(kara): Convert attribute selectors to classes when attr maps become available\n/**\n * Material design button.\n */\nvar MdButton = (function () {\n    function MdButton(_elementRef, _renderer) {\n        this._elementRef = _elementRef;\n        this._renderer = _renderer;\n        /** Whether the button has focus from the keyboard (not the mouse). Used for class binding. */\n        this._isKeyboardFocused = false;\n        /** Whether a mousedown has occurred on this element in the last 100ms. */\n        this._isMouseDown = false;\n        /** Whether the ripple effect on click should be disabled. */\n        this._disableRipple = false;\n        this._disabled = null;\n    }\n    Object.defineProperty(MdButton.prototype, \"disableRipple\", {\n        /** Whether the ripple effect for this button is disabled. */\n        get: function () { return this._disableRipple; },\n        set: function (v) { this._disableRipple = coerceBooleanProperty(v); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdButton.prototype, \"disabled\", {\n        /** Whether the button is disabled. */\n        get: function () { return this._disabled; },\n        set: function (value) { this._disabled = coerceBooleanProperty(value) ? true : null; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdButton.prototype, \"color\", {\n        /** The color of the button. Can be `primary`, `accent`, or `warn`. */\n        get: function () { return this._color; },\n        set: function (value) { this._updateColor(value); },\n        enumerable: true,\n        configurable: true\n    });\n    MdButton.prototype._setMousedown = function () {\n        var _this = this;\n        // We only *show* the focus style when focus has come to the button via the keyboard.\n        // The Material Design spec is silent on this topic, and without doing this, the\n        // button continues to look :active after clicking.\n        // @see http://marcysutton.com/button-focus-hell/\n        this._isMouseDown = true;\n        setTimeout(function () { _this._isMouseDown = false; }, 100);\n    };\n    MdButton.prototype._updateColor = function (newColor) {\n        this._setElementColor(this._color, false);\n        this._setElementColor(newColor, true);\n        this._color = newColor;\n    };\n    MdButton.prototype._setElementColor = function (color, isAdd) {\n        if (color != null && color != '') {\n            this._renderer.setElementClass(this._elementRef.nativeElement, \"md-\" + color, isAdd);\n        }\n    };\n    MdButton.prototype._setKeyboardFocus = function () {\n        this._isKeyboardFocused = !this._isMouseDown;\n    };\n    MdButton.prototype._removeKeyboardFocus = function () {\n        this._isKeyboardFocused = false;\n    };\n    /** Focuses the button. */\n    MdButton.prototype.focus = function () {\n        this._renderer.invokeElementMethod(this._elementRef.nativeElement, 'focus');\n    };\n    MdButton.prototype._getHostElement = function () {\n        return this._elementRef.nativeElement;\n    };\n    MdButton.prototype._isRoundButton = function () {\n        var el = this._elementRef.nativeElement;\n        return el.hasAttribute('md-icon-button') ||\n            el.hasAttribute('md-fab') ||\n            el.hasAttribute('md-mini-fab');\n    };\n    MdButton.prototype._isRippleDisabled = function () {\n        return this.disableRipple || this.disabled;\n    };\n    __decorate$26([\n        _angular_core.Input(), \n        __metadata$26('design:type', Object)\n    ], MdButton.prototype, \"disableRipple\", null);\n    __decorate$26([\n        _angular_core.Input(), \n        __metadata$26('design:type', Object)\n    ], MdButton.prototype, \"disabled\", null);\n    __decorate$26([\n        _angular_core.Input(), \n        __metadata$26('design:type', String)\n    ], MdButton.prototype, \"color\", null);\n    MdButton = __decorate$26([\n        _angular_core.Component({selector: 'button[md-button], button[md-raised-button], button[md-icon-button], ' +\n                'button[md-fab], button[md-mini-fab]',\n            host: {\n                '[disabled]': 'disabled',\n                '[class.md-button-focus]': '_isKeyboardFocused',\n                '(mousedown)': '_setMousedown()',\n                '(focus)': '_setKeyboardFocus()',\n                '(blur)': '_removeKeyboardFocus()',\n            },\n            template: \"<span class=\\\"md-button-wrapper\\\"><ng-content></ng-content></span><div md-ripple *ngIf=\\\"!_isRippleDisabled()\\\" class=\\\"md-button-ripple\\\" [class.md-button-ripple-round]=\\\"_isRoundButton()\\\" [mdRippleTrigger]=\\\"_getHostElement()\\\" [mdRippleColor]=\\\"_isRoundButton() ? 'rgba(255, 255, 255, 0.2)' : ''\\\" mdRippleBackgroundColor=\\\"rgba(0, 0, 0, 0)\\\"></div><div class=\\\"md-button-focus-overlay\\\" (touchstart)=\\\"$event.preventDefault()\\\"></div>\",\n            styles: [\".md-button-focus[md-button] .md-button-focus-overlay,.md-button-focus[md-fab] .md-button-focus-overlay,.md-button-focus[md-icon-button] .md-button-focus-overlay,.md-button-focus[md-mini-fab] .md-button-focus-overlay,.md-button-focus[md-raised-button] .md-button-focus-overlay,[md-button]:hover .md-button-focus-overlay,[md-icon-button]:hover .md-button-focus-overlay{opacity:1}[md-icon-button],[md-mini-fab]{width:40px;height:40px}[md-button],[md-fab],[md-icon-button],[md-mini-fab],[md-raised-button]{box-sizing:border-box;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0;border:none;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;font-size:14px;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;font-weight:500;color:currentColor;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px}[disabled][md-button],[disabled][md-fab],[disabled][md-icon-button],[disabled][md-mini-fab],[disabled][md-raised-button]{cursor:default}[md-fab],[md-mini-fab],[md-raised-button]{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}[md-fab],[md-mini-fab]{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);flex-shrink:0;padding:0;min-width:0;border-radius:50%}[md-fab]:active,[md-mini-fab]:active,[md-raised-button]:active{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}[disabled][md-fab],[disabled][md-mini-fab],[disabled][md-raised-button]{box-shadow:none}[md-button][disabled]:hover .md-button-focus-overlay,[md-button][disabled]:hover.md-accent,[md-button][disabled]:hover.md-primary,[md-button][disabled]:hover.md-warn,[md-icon-button][disabled]:hover .md-button-focus-overlay,[md-icon-button][disabled]:hover.md-accent,[md-icon-button][disabled]:hover.md-primary,[md-icon-button][disabled]:hover.md-warn{background-color:transparent}[md-fab]{width:56px;height:56px}[md-fab]:active,[md-mini-fab]:active{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}[md-fab] i,[md-fab] md-icon{padding:16px 0;line-height:24px}[md-mini-fab] i,[md-mini-fab] md-icon{padding:8px 0;line-height:24px}[md-icon-button]{padding:0;min-width:0;flex-shrink:0;line-height:40px;border-radius:50%}[md-icon-button] i,[md-icon-button] md-icon{line-height:24px}[md-button] .md-button-wrapper>*,[md-icon-button] .md-button-wrapper>*,[md-raised-button] .md-button-wrapper>*{vertical-align:middle}.md-button-focus-overlay,.md-button-ripple{position:absolute;top:0;left:0;bottom:0;right:0}.md-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;pointer-events:none;opacity:0}.md-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.md-button-focus-overlay{background-color:rgba(255,255,255,.5)}[md-button],[md-fab],[md-icon-button],[md-mini-fab],[md-raised-button]{outline:solid 1px}}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n            changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,\n        }), \n        __metadata$26('design:paramtypes', [_angular_core.ElementRef, _angular_core.Renderer])\n    ], MdButton);\n    return MdButton;\n}());\n/**\n * Raised Material design button.\n */\nvar MdAnchor = (function (_super) {\n    __extends$6(MdAnchor, _super);\n    function MdAnchor(elementRef, renderer) {\n        _super.call(this, elementRef, renderer);\n    }\n    Object.defineProperty(MdAnchor.prototype, \"tabIndex\", {\n        /** @docs-private */\n        get: function () {\n            return this.disabled ? -1 : 0;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdAnchor.prototype, \"_isAriaDisabled\", {\n        get: function () {\n            return this.disabled ? 'true' : 'false';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdAnchor.prototype._haltDisabledEvents = function (event) {\n        // A disabled button shouldn't apply any actions\n        if (this.disabled) {\n            event.preventDefault();\n            event.stopImmediatePropagation();\n        }\n    };\n    __decorate$26([\n        _angular_core.HostBinding('tabIndex'), \n        __metadata$26('design:type', Number)\n    ], MdAnchor.prototype, \"tabIndex\", null);\n    MdAnchor = __decorate$26([\n        _angular_core.Component({selector: 'a[md-button], a[md-raised-button], a[md-icon-button], a[md-fab], a[md-mini-fab]',\n            inputs: ['color', 'disabled', 'disableRipple'],\n            host: {\n                '[attr.disabled]': 'disabled',\n                '[attr.aria-disabled]': '_isAriaDisabled',\n                '[class.md-button-focus]': '_isKeyboardFocused',\n                '(mousedown)': '_setMousedown()',\n                '(focus)': '_setKeyboardFocus()',\n                '(blur)': '_removeKeyboardFocus()',\n                '(click)': '_haltDisabledEvents($event)',\n            },\n            template: \"<span class=\\\"md-button-wrapper\\\"><ng-content></ng-content></span><div md-ripple *ngIf=\\\"!_isRippleDisabled()\\\" class=\\\"md-button-ripple\\\" [class.md-button-ripple-round]=\\\"_isRoundButton()\\\" [mdRippleTrigger]=\\\"_getHostElement()\\\" [mdRippleColor]=\\\"_isRoundButton() ? 'rgba(255, 255, 255, 0.2)' : ''\\\" mdRippleBackgroundColor=\\\"rgba(0, 0, 0, 0)\\\"></div><div class=\\\"md-button-focus-overlay\\\" (touchstart)=\\\"$event.preventDefault()\\\"></div>\",\n            styles: [\".md-button-focus[md-button] .md-button-focus-overlay,.md-button-focus[md-fab] .md-button-focus-overlay,.md-button-focus[md-icon-button] .md-button-focus-overlay,.md-button-focus[md-mini-fab] .md-button-focus-overlay,.md-button-focus[md-raised-button] .md-button-focus-overlay,[md-button]:hover .md-button-focus-overlay,[md-icon-button]:hover .md-button-focus-overlay{opacity:1}[md-icon-button],[md-mini-fab]{width:40px;height:40px}[md-button],[md-fab],[md-icon-button],[md-mini-fab],[md-raised-button]{box-sizing:border-box;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0;border:none;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;font-size:14px;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;font-weight:500;color:currentColor;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px}[disabled][md-button],[disabled][md-fab],[disabled][md-icon-button],[disabled][md-mini-fab],[disabled][md-raised-button]{cursor:default}[md-fab],[md-mini-fab],[md-raised-button]{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}[md-fab],[md-mini-fab]{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);flex-shrink:0;padding:0;min-width:0;border-radius:50%}[md-fab]:active,[md-mini-fab]:active,[md-raised-button]:active{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}[disabled][md-fab],[disabled][md-mini-fab],[disabled][md-raised-button]{box-shadow:none}[md-button][disabled]:hover .md-button-focus-overlay,[md-button][disabled]:hover.md-accent,[md-button][disabled]:hover.md-primary,[md-button][disabled]:hover.md-warn,[md-icon-button][disabled]:hover .md-button-focus-overlay,[md-icon-button][disabled]:hover.md-accent,[md-icon-button][disabled]:hover.md-primary,[md-icon-button][disabled]:hover.md-warn{background-color:transparent}[md-fab]{width:56px;height:56px}[md-fab]:active,[md-mini-fab]:active{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}[md-fab] i,[md-fab] md-icon{padding:16px 0;line-height:24px}[md-mini-fab] i,[md-mini-fab] md-icon{padding:8px 0;line-height:24px}[md-icon-button]{padding:0;min-width:0;flex-shrink:0;line-height:40px;border-radius:50%}[md-icon-button] i,[md-icon-button] md-icon{line-height:24px}[md-button] .md-button-wrapper>*,[md-icon-button] .md-button-wrapper>*,[md-raised-button] .md-button-wrapper>*{vertical-align:middle}.md-button-focus-overlay,.md-button-ripple{position:absolute;top:0;left:0;bottom:0;right:0}.md-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;pointer-events:none;opacity:0}.md-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.md-button-focus-overlay{background-color:rgba(255,255,255,.5)}[md-button],[md-fab],[md-icon-button],[md-mini-fab],[md-raised-button]{outline:solid 1px}}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None\n        }), \n        __metadata$26('design:paramtypes', [_angular_core.ElementRef, _angular_core.Renderer])\n    ], MdAnchor);\n    return MdAnchor;\n}(MdButton));\nvar MdButtonModule = (function () {\n    function MdButtonModule() {\n    }\n    MdButtonModule.forRoot = function () {\n        return {\n            ngModule: MdButtonModule,\n            providers: [ViewportRuler]\n        };\n    };\n    MdButtonModule = __decorate$26([\n        _angular_core.NgModule({\n            imports: [_angular_common.CommonModule, MdRippleModule, DefaultStyleCompatibilityModeModule],\n            exports: [MdButton, MdAnchor, DefaultStyleCompatibilityModeModule],\n            declarations: [MdButton, MdAnchor],\n        }), \n        __metadata$26('design:paramtypes', [])\n    ], MdButtonModule);\n    return MdButtonModule;\n}());\n\nvar __decorate$27 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$27 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/** Monotonically increasing integer used to auto-generate unique ids for checkbox components. */\nvar nextId = 0;\n/**\n * Provider Expression that allows md-checkbox to register as a ControlValueAccessor.\n * This allows it to support [(ngModel)].\n * @docs-private\n */\nvar MD_CHECKBOX_CONTROL_VALUE_ACCESSOR = {\n    provide: _angular_forms.NG_VALUE_ACCESSOR,\n    useExisting: _angular_core.forwardRef(function () { return MdCheckbox; }),\n    multi: true\n};\n/**\n * Represents the different states that require custom transitions between them.\n * @docs-private\n */\n\n(function (TransitionCheckState) {\n    /** The initial state of the component before any user interaction. */\n    TransitionCheckState[TransitionCheckState[\"Init\"] = 0] = \"Init\";\n    /** The state representing the component when it's becoming checked. */\n    TransitionCheckState[TransitionCheckState[\"Checked\"] = 1] = \"Checked\";\n    /** The state representing the component when it's becoming unchecked. */\n    TransitionCheckState[TransitionCheckState[\"Unchecked\"] = 2] = \"Unchecked\";\n    /** The state representing the component when it's becoming indeterminate. */\n    TransitionCheckState[TransitionCheckState[\"Indeterminate\"] = 3] = \"Indeterminate\";\n})(exports.TransitionCheckState || (exports.TransitionCheckState = {}));\n/** Change event object emitted by MdCheckbox. */\nvar MdCheckboxChange = (function () {\n    function MdCheckboxChange() {\n    }\n    return MdCheckboxChange;\n}());\n/**\n * A material design checkbox component. Supports all of the functionality of an HTML5 checkbox,\n * and exposes a similar API. A MdCheckbox can be either checked, unchecked, indeterminate, or\n * disabled. Note that all additional accessibility attributes are taken care of by the component,\n * so there is no need to provide them yourself. However, if you want to omit a label and still\n * have the checkbox be accessible, you may supply an [aria-label] input.\n * See: https://www.google.com/design/spec/components/selection-controls.html\n */\nvar MdCheckbox = (function () {\n    function MdCheckbox(_renderer, _elementRef, _changeDetectorRef) {\n        this._renderer = _renderer;\n        this._elementRef = _elementRef;\n        this._changeDetectorRef = _changeDetectorRef;\n        /**\n         * Attached to the aria-label attribute of the host element. In most cases, arial-labelledby will\n         * take precedence so this may be omitted.\n         */\n        this.ariaLabel = '';\n        /**\n         * Users can specify the `aria-labelledby` attribute which will be forwarded to the input element\n         */\n        this.ariaLabelledby = null;\n        /** A unique id for the checkbox. If one is not supplied, it is auto-generated. */\n        this.id = \"md-checkbox-\" + ++nextId;\n        /** Whether the label should appear after or before the checkbox. Defaults to 'after' */\n        this.labelPosition = 'after';\n        this._disabled = false;\n        /** @docs-private */\n        this.tabindex = 0;\n        /** Name value will be applied to the input element if present */\n        this.name = null;\n        /** Event emitted when the checkbox's `checked` value changes. */\n        this.change = new _angular_core.EventEmitter();\n        /**\n         * Called when the checkbox is blurred. Needed to properly implement ControlValueAccessor.\n         * @docs-private\n         */\n        this.onTouched = function () { };\n        this._currentAnimationClass = '';\n        this._currentCheckState = exports.TransitionCheckState.Init;\n        this._checked = false;\n        this._indeterminate = false;\n        this._controlValueAccessorChangeFn = function (value) { };\n        this._hasFocus = false;\n        this.color = 'accent';\n    }\n    Object.defineProperty(MdCheckbox.prototype, \"disableRipple\", {\n        /** Whether the ripple effect for this checkbox is disabled. */\n        get: function () { return this._disableRipple; },\n        set: function (value) { this._disableRipple = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdCheckbox.prototype, \"inputId\", {\n        /** ID of the native input element inside `<md-checkbox>` */\n        get: function () {\n            return \"input-\" + this.id;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdCheckbox.prototype, \"required\", {\n        /** Whether the checkbox is required. */\n        get: function () { return this._required; },\n        set: function (value) { this._required = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdCheckbox.prototype, \"align\", {\n        /**\n         * Whether or not the checkbox should appear before or after the label.\n         * @deprecated\n         */\n        get: function () {\n            // align refers to the checkbox relative to the label, while labelPosition refers to the\n            // label relative to the checkbox. As such, they are inverted.\n            return this.labelPosition == 'after' ? 'start' : 'end';\n        },\n        set: function (v) {\n            this.labelPosition = (v == 'start') ? 'after' : 'before';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdCheckbox.prototype, \"disabled\", {\n        /** Whether the checkbox is disabled. */\n        get: function () { return this._disabled; },\n        set: function (value) { this._disabled = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdCheckbox.prototype, \"checked\", {\n        /**\n         * Whether the checkbox is checked. Note that setting `checked` will immediately set\n         * `indeterminate` to false.\n         */\n        get: function () {\n            return this._checked;\n        },\n        set: function (checked) {\n            if (checked != this.checked) {\n                this._indeterminate = false;\n                this._checked = checked;\n                this._transitionCheckState(this._checked ? exports.TransitionCheckState.Checked : exports.TransitionCheckState.Unchecked);\n                this._changeDetectorRef.markForCheck();\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdCheckbox.prototype, \"indeterminate\", {\n        /**\n         * Whether the checkbox is indeterminate. This is also known as \"mixed\" mode and can be used to\n         * represent a checkbox with three states, e.g. a checkbox that represents a nested list of\n         * checkable items. Note that whenever `checked` is set, indeterminate is immediately set to\n         * false. This differs from the web platform in that indeterminate state on native\n         * checkboxes is only remove when the user manually checks the checkbox (rather than setting the\n         * `checked` property programmatically). However, we feel that this behavior is more accommodating\n         * to the way consumers would envision using this component.\n         */\n        get: function () {\n            return this._indeterminate;\n        },\n        set: function (indeterminate) {\n            this._indeterminate = indeterminate;\n            if (this._indeterminate) {\n                this._transitionCheckState(exports.TransitionCheckState.Indeterminate);\n            }\n            else {\n                this._transitionCheckState(this.checked ? exports.TransitionCheckState.Checked : exports.TransitionCheckState.Unchecked);\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdCheckbox.prototype, \"color\", {\n        /** The color of the button. Can be `primary`, `accent`, or `warn`. */\n        get: function () { return this._color; },\n        set: function (value) { this._updateColor(value); },\n        enumerable: true,\n        configurable: true\n    });\n    MdCheckbox.prototype._updateColor = function (newColor) {\n        this._setElementColor(this._color, false);\n        this._setElementColor(newColor, true);\n        this._color = newColor;\n    };\n    MdCheckbox.prototype._setElementColor = function (color, isAdd) {\n        if (color != null && color != '') {\n            this._renderer.setElementClass(this._elementRef.nativeElement, \"md-\" + color, isAdd);\n        }\n    };\n    MdCheckbox.prototype._isRippleDisabled = function () {\n        return this.disableRipple || this.disabled;\n    };\n    /**\n     * Sets the model value. Implemented as part of ControlValueAccessor.\n     * @param value Value to be set to the model.\n     */\n    MdCheckbox.prototype.writeValue = function (value) {\n        this.checked = !!value;\n    };\n    /**\n     * Registers a callback to be triggered when the value has changed.\n     * Implemented as part of ControlValueAccessor.\n     * @param fn Function to be called on change.\n     */\n    MdCheckbox.prototype.registerOnChange = function (fn) {\n        this._controlValueAccessorChangeFn = fn;\n    };\n    /**\n     * Registers a callback to be triggered when the control has been touched.\n     * Implemented as part of ControlValueAccessor.\n     * @param fn Callback to be triggered when the checkbox is touched.\n     */\n    MdCheckbox.prototype.registerOnTouched = function (fn) {\n        this.onTouched = fn;\n    };\n    /**\n     * Sets the checkbox's disabled state. Implemented as a part of ControlValueAccessor.\n     * @param isDisabled Whether the checkbox should be disabled.\n     */\n    MdCheckbox.prototype.setDisabledState = function (isDisabled) {\n        this.disabled = isDisabled;\n    };\n    MdCheckbox.prototype._transitionCheckState = function (newState) {\n        var oldState = this._currentCheckState;\n        var renderer = this._renderer;\n        var elementRef = this._elementRef;\n        if (oldState === newState) {\n            return;\n        }\n        if (this._currentAnimationClass.length > 0) {\n            renderer.setElementClass(elementRef.nativeElement, this._currentAnimationClass, false);\n        }\n        this._currentAnimationClass = this._getAnimationClassForCheckStateTransition(oldState, newState);\n        this._currentCheckState = newState;\n        if (this._currentAnimationClass.length > 0) {\n            renderer.setElementClass(elementRef.nativeElement, this._currentAnimationClass, true);\n        }\n    };\n    MdCheckbox.prototype._emitChangeEvent = function () {\n        var event = new MdCheckboxChange();\n        event.source = this;\n        event.checked = this.checked;\n        this._controlValueAccessorChangeFn(this.checked);\n        this.change.emit(event);\n    };\n    /** Informs the component when the input has focus so that we can style accordingly */\n    MdCheckbox.prototype._onInputFocus = function () {\n        this._hasFocus = true;\n    };\n    /** Informs the component when we lose focus in order to style accordingly */\n    MdCheckbox.prototype._onInputBlur = function () {\n        this._hasFocus = false;\n        this.onTouched();\n    };\n    /** Toggles the `checked` state of the checkbox. */\n    MdCheckbox.prototype.toggle = function () {\n        this.checked = !this.checked;\n    };\n    /**\n     * Event handler for checkbox input element.\n     * Toggles checked state if element is not disabled.\n     * @param event\n     */\n    MdCheckbox.prototype._onInteractionEvent = function (event) {\n        // We always have to stop propagation on the change event.\n        // Otherwise the change event, from the input element, will bubble up and\n        // emit its event object to the `change` output.\n        event.stopPropagation();\n        if (!this.disabled) {\n            this.toggle();\n            // Emit our custom change event if the native input emitted one.\n            // It is important to only emit it, if the native input triggered one, because\n            // we don't want to trigger a change event, when the `checked` variable changes for example.\n            this._emitChangeEvent();\n        }\n    };\n    /** Focuses the checkbox. */\n    MdCheckbox.prototype.focus = function () {\n        this._renderer.invokeElementMethod(this._inputElement.nativeElement, 'focus');\n        this._onInputFocus();\n    };\n    MdCheckbox.prototype._onInputClick = function (event) {\n        // We have to stop propagation for click events on the visual hidden input element.\n        // By default, when a user clicks on a label element, a generated click event will be\n        // dispatched on the associated input element. Since we are using a label element as our\n        // root container, the click event on the `checkbox` will be executed twice.\n        // The real click event will bubble up, and the generated click event also tries to bubble up.\n        // This will lead to multiple click events.\n        // Preventing bubbling for the second event will solve that issue.\n        event.stopPropagation();\n    };\n    MdCheckbox.prototype._getAnimationClassForCheckStateTransition = function (oldState, newState) {\n        var animSuffix;\n        switch (oldState) {\n            case exports.TransitionCheckState.Init:\n                // Handle edge case where user interacts with checkbox that does not have [(ngModel)] or\n                // [checked] bound to it.\n                if (newState === exports.TransitionCheckState.Checked) {\n                    animSuffix = 'unchecked-checked';\n                }\n                else {\n                    return '';\n                }\n                break;\n            case exports.TransitionCheckState.Unchecked:\n                animSuffix = newState === exports.TransitionCheckState.Checked ?\n                    'unchecked-checked' : 'unchecked-indeterminate';\n                break;\n            case exports.TransitionCheckState.Checked:\n                animSuffix = newState === exports.TransitionCheckState.Unchecked ?\n                    'checked-unchecked' : 'checked-indeterminate';\n                break;\n            case exports.TransitionCheckState.Indeterminate:\n                animSuffix = newState === exports.TransitionCheckState.Checked ?\n                    'indeterminate-checked' : 'indeterminate-unchecked';\n        }\n        return \"md-checkbox-anim-\" + animSuffix;\n    };\n    MdCheckbox.prototype._getHostElement = function () {\n        return this._elementRef.nativeElement;\n    };\n    __decorate$27([\n        _angular_core.Input('aria-label'), \n        __metadata$27('design:type', String)\n    ], MdCheckbox.prototype, \"ariaLabel\", void 0);\n    __decorate$27([\n        _angular_core.Input('aria-labelledby'), \n        __metadata$27('design:type', String)\n    ], MdCheckbox.prototype, \"ariaLabelledby\", void 0);\n    __decorate$27([\n        _angular_core.Input(), \n        __metadata$27('design:type', String)\n    ], MdCheckbox.prototype, \"id\", void 0);\n    __decorate$27([\n        _angular_core.Input(), \n        __metadata$27('design:type', Boolean)\n    ], MdCheckbox.prototype, \"disableRipple\", null);\n    __decorate$27([\n        _angular_core.Input(), \n        __metadata$27('design:type', Boolean)\n    ], MdCheckbox.prototype, \"required\", null);\n    __decorate$27([\n        _angular_core.Input(), \n        __metadata$27('design:type', Object)\n    ], MdCheckbox.prototype, \"align\", null);\n    __decorate$27([\n        _angular_core.Input(), \n        __metadata$27('design:type', Object)\n    ], MdCheckbox.prototype, \"labelPosition\", void 0);\n    __decorate$27([\n        _angular_core.Input(), \n        __metadata$27('design:type', Boolean)\n    ], MdCheckbox.prototype, \"disabled\", null);\n    __decorate$27([\n        _angular_core.Input(), \n        __metadata$27('design:type', Number)\n    ], MdCheckbox.prototype, \"tabindex\", void 0);\n    __decorate$27([\n        _angular_core.Input(), \n        __metadata$27('design:type', String)\n    ], MdCheckbox.prototype, \"name\", void 0);\n    __decorate$27([\n        _angular_core.Output(), \n        __metadata$27('design:type', _angular_core.EventEmitter)\n    ], MdCheckbox.prototype, \"change\", void 0);\n    __decorate$27([\n        _angular_core.ViewChild('input'), \n        __metadata$27('design:type', _angular_core.ElementRef)\n    ], MdCheckbox.prototype, \"_inputElement\", void 0);\n    __decorate$27([\n        _angular_core.Input(), \n        __metadata$27('design:type', Object)\n    ], MdCheckbox.prototype, \"checked\", null);\n    __decorate$27([\n        _angular_core.Input(), \n        __metadata$27('design:type', Object)\n    ], MdCheckbox.prototype, \"indeterminate\", null);\n    __decorate$27([\n        _angular_core.Input(), \n        __metadata$27('design:type', String)\n    ], MdCheckbox.prototype, \"color\", null);\n    MdCheckbox = __decorate$27([\n        _angular_core.Component({selector: 'md-checkbox, mat-checkbox',\n            template: \"<label class=\\\"md-checkbox-layout\\\"><div class=\\\"md-checkbox-inner-container\\\"><input #input class=\\\"md-checkbox-input cdk-visually-hidden\\\" type=\\\"checkbox\\\" [id]=\\\"inputId\\\" [required]=\\\"required\\\" [checked]=\\\"checked\\\" [disabled]=\\\"disabled\\\" [name]=\\\"name\\\" [tabIndex]=\\\"tabindex\\\" [indeterminate]=\\\"indeterminate\\\" [attr.aria-label]=\\\"ariaLabel\\\" [attr.aria-labelledby]=\\\"ariaLabelledby\\\" (focus)=\\\"_onInputFocus()\\\" (blur)=\\\"_onInputBlur()\\\" (change)=\\\"_onInteractionEvent($event)\\\" (click)=\\\"_onInputClick($event)\\\"><div md-ripple *ngIf=\\\"!_isRippleDisabled()\\\" class=\\\"md-checkbox-ripple\\\" [mdRippleTrigger]=\\\"_getHostElement()\\\" [mdRippleCentered]=\\\"true\\\" [mdRippleSpeedFactor]=\\\"0.3\\\" mdRippleBackgroundColor=\\\"rgba(0, 0, 0, 0)\\\"></div><div class=\\\"md-checkbox-frame\\\"></div><div class=\\\"md-checkbox-background\\\"><svg version=\\\"1.1\\\" class=\\\"md-checkbox-checkmark\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 24 24\\\" xml:space=\\\"preserve\\\"><path class=\\\"md-checkbox-checkmark-path\\\" fill=\\\"none\\\" stroke=\\\"white\\\" d=\\\"M4.1,12.7 9,17.6 20.3,6.3\\\"/></svg><div class=\\\"md-checkbox-mixedmark\\\"></div></div></div><span class=\\\"md-checkbox-label\\\"><ng-content></ng-content></span></label>\",\n            styles: [\".md-checkbox-frame,.md-checkbox-unchecked .md-checkbox-background{background-color:transparent}@keyframes md-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes md-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes md-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.91026}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}100%{stroke-dashoffset:0}}@keyframes md-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0,0,0,1)}100%{transform:scaleX(1)}}@keyframes md-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(.4,0,1,1);stroke-dashoffset:0}to{stroke-dashoffset:-22.91026}}@keyframes md-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(45deg)}}@keyframes md-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes md-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0)}}@keyframes md-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(315deg)}}@keyframes md-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}100%,32.8%{opacity:0;transform:scaleX(0)}}.md-checkbox-background,.md-checkbox-checkmark,.md-checkbox-frame{bottom:0;left:0;position:absolute;right:0;top:0}.md-checkbox-checkmark,.md-checkbox-mixedmark{width:calc(100% - 4px)}.md-checkbox-background,.md-checkbox-frame{border-radius:2px;box-sizing:border-box;pointer-events:none}md-checkbox{cursor:pointer;transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.md-checkbox-layout{cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex}.md-checkbox-inner-container{display:inline-block;height:20px;line-height:0;margin:auto 8px auto auto;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:20px;flex-shrink:0}[dir=rtl] .md-checkbox-inner-container{margin-left:8px;margin-right:auto}.md-checkbox-layout .md-checkbox-label{line-height:24px}.md-checkbox-frame{border:2px solid;transition:border-color 90ms cubic-bezier(0,0,.2,.1);will-change:border-color}.md-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0,0,.2,.1),opacity 90ms cubic-bezier(0,0,.2,.1);will-change:background-color,opacity}.md-checkbox-checkmark{width:100%}.md-checkbox-checkmark-path{stroke-dashoffset:22.91026;stroke-dasharray:22.91026;stroke-width:2.67px}.md-checkbox-checked .md-checkbox-checkmark-path,.md-checkbox-indeterminate .md-checkbox-checkmark-path{stroke-dashoffset:0}.md-checkbox-mixedmark{height:2px;opacity:0;transform:scaleX(0) rotate(0)}.md-checkbox-label-before .md-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .md-checkbox-label-before .md-checkbox-inner-container{margin-left:auto;margin-right:8px}.md-checkbox-checked .md-checkbox-checkmark{opacity:1}.md-checkbox-checked .md-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.md-checkbox-indeterminate .md-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.md-checkbox-indeterminate .md-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0)}.md-checkbox-disabled{cursor:default}.md-checkbox-anim-unchecked-checked .md-checkbox-background{animation:180ms linear 0s md-checkbox-fade-in-background}.md-checkbox-anim-unchecked-checked .md-checkbox-checkmark-path{animation:180ms linear 0s md-checkbox-unchecked-checked-checkmark-path}.md-checkbox-anim-unchecked-indeterminate .md-checkbox-background{animation:180ms linear 0s md-checkbox-fade-in-background}.md-checkbox-anim-unchecked-indeterminate .md-checkbox-mixedmark{animation:90ms linear 0s md-checkbox-unchecked-indeterminate-mixedmark}.md-checkbox-anim-checked-unchecked .md-checkbox-background{animation:180ms linear 0s md-checkbox-fade-out-background}.md-checkbox-anim-checked-unchecked .md-checkbox-checkmark-path{animation:90ms linear 0s md-checkbox-checked-unchecked-checkmark-path}.md-checkbox-anim-checked-indeterminate .md-checkbox-checkmark{animation:90ms linear 0s md-checkbox-checked-indeterminate-checkmark}.md-checkbox-anim-checked-indeterminate .md-checkbox-mixedmark{animation:90ms linear 0s md-checkbox-checked-indeterminate-mixedmark}.md-checkbox-anim-indeterminate-checked .md-checkbox-checkmark{animation:.5s linear 0s md-checkbox-indeterminate-checked-checkmark}.md-checkbox-anim-indeterminate-checked .md-checkbox-mixedmark{animation:.5s linear 0s md-checkbox-indeterminate-checked-mixedmark}.md-checkbox-anim-indeterminate-unchecked .md-checkbox-background{animation:180ms linear 0s md-checkbox-fade-out-background}.md-checkbox-anim-indeterminate-unchecked .md-checkbox-mixedmark{animation:.3s linear 0s md-checkbox-indeterminate-unchecked-mixedmark}.md-checkbox-input{bottom:0;left:50%}.md-checkbox-ripple{position:absolute;left:-15px;top:-15px;right:-15px;bottom:-15px;border-radius:50%;z-index:1;pointer-events:none}\"],\n            host: {\n                '[class.md-checkbox-indeterminate]': 'indeterminate',\n                '[class.md-checkbox-checked]': 'checked',\n                '[class.md-checkbox-disabled]': 'disabled',\n                '[class.md-checkbox-label-before]': 'labelPosition == \"before\"',\n                '[class.md-checkbox-focused]': '_hasFocus',\n            },\n            providers: [MD_CHECKBOX_CONTROL_VALUE_ACCESSOR],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n            changeDetection: _angular_core.ChangeDetectionStrategy.OnPush\n        }), \n        __metadata$27('design:paramtypes', [_angular_core.Renderer, _angular_core.ElementRef, _angular_core.ChangeDetectorRef])\n    ], MdCheckbox);\n    return MdCheckbox;\n}());\nvar MdCheckboxModule = (function () {\n    function MdCheckboxModule() {\n    }\n    MdCheckboxModule.forRoot = function () {\n        return {\n            ngModule: MdCheckboxModule,\n            providers: [ViewportRuler]\n        };\n    };\n    MdCheckboxModule = __decorate$27([\n        _angular_core.NgModule({\n            imports: [_angular_common.CommonModule, MdRippleModule, DefaultStyleCompatibilityModeModule],\n            exports: [MdCheckbox, DefaultStyleCompatibilityModeModule],\n            declarations: [MdCheckbox],\n        }), \n        __metadata$27('design:paramtypes', [])\n    ], MdCheckboxModule);\n    return MdCheckboxModule;\n}());\n\nvar __decorate$28 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$28 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$5 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n/**\n * Provider Expression that allows md-radio-group to register as a ControlValueAccessor. This\n * allows it to support [(ngModel)] and ngControl.\n * @docs-private\n */\nvar MD_RADIO_GROUP_CONTROL_VALUE_ACCESSOR = {\n    provide: _angular_forms.NG_VALUE_ACCESSOR,\n    useExisting: _angular_core.forwardRef(function () { return MdRadioGroup; }),\n    multi: true\n};\nvar _uniqueIdCounter$1 = 0;\n/** Change event object emitted by MdRadio and MdRadioGroup. */\nvar MdRadioChange = (function () {\n    function MdRadioChange() {\n    }\n    return MdRadioChange;\n}());\n/**\n * A group of radio buttons. May contain one or more `<md-radio-button>` elements.\n */\nvar MdRadioGroup = (function () {\n    function MdRadioGroup() {\n        /**\n         * Selected value for group. Should equal the value of the selected radio button if there *is*\n         * a corresponding radio button with a matching value. If there is *not* such a corresponding\n         * radio button, this value persists to be applied in case a new radio button is added with a\n         * matching value.\n         */\n        this._value = null;\n        /** The HTML name attribute applied to radio buttons in this group. */\n        this._name = \"md-radio-group-\" + _uniqueIdCounter$1++;\n        /** Disables all individual radio buttons assigned to this group. */\n        this._disabled = false;\n        /** The currently selected radio button. Should match value. */\n        this._selected = null;\n        /** Whether the `value` has been set to its initial value. */\n        this._isInitialized = false;\n        /** The method to be called in order to update ngModel */\n        this._controlValueAccessorChangeFn = function (value) { };\n        /**\n         * onTouch function registered via registerOnTouch (ControlValueAccessor).\n         * @docs-private\n         */\n        this.onTouched = function () { };\n        /**\n         * Event emitted when the group value changes.\n         * Change events are only emitted when the value changes due to user interaction with\n         * a radio button (the same behavior as `<input type-\"radio\">`).\n         */\n        this.change = new _angular_core.EventEmitter();\n        /** Child radio buttons. */\n        this._radios = null;\n        /** Whether the labels should appear after or before the radio-buttons. Defaults to 'after' */\n        this.labelPosition = 'after';\n    }\n    Object.defineProperty(MdRadioGroup.prototype, \"name\", {\n        /** Name of the radio button group. All radio buttons inside this group will use this name. */\n        get: function () { return this._name; },\n        set: function (value) {\n            this._name = value;\n            this._updateRadioButtonNames();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdRadioGroup.prototype, \"align\", {\n        /**\n         * Alignment of the radio-buttons relative to their labels. Can be 'before' or 'after'.\n         * @deprecated\n         */\n        get: function () {\n            // align refers to the checkbox relative to the label, while labelPosition refers to the\n            // label relative to the checkbox. As such, they are inverted.\n            return this.labelPosition == 'after' ? 'start' : 'end';\n        },\n        set: function (v) {\n            this.labelPosition = (v == 'start') ? 'after' : 'before';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdRadioGroup.prototype, \"disabled\", {\n        /** Whether the radio button is disabled. */\n        get: function () { return this._disabled; },\n        set: function (value) {\n            // The presence of *any* disabled value makes the component disabled, *except* for false.\n            this._disabled = (value != null && value !== false) ? true : null;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdRadioGroup.prototype, \"value\", {\n        /** Value of the radio button. */\n        get: function () { return this._value; },\n        set: function (newValue) {\n            if (this._value != newValue) {\n                // Set this before proceeding to ensure no circular loop occurs with selection.\n                this._value = newValue;\n                this._updateSelectedRadioFromValue();\n                this._checkSelectedRadioButton();\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdRadioGroup.prototype._checkSelectedRadioButton = function () {\n        if (this.selected && !this._selected.checked) {\n            this._selected.checked = true;\n        }\n    };\n    Object.defineProperty(MdRadioGroup.prototype, \"selected\", {\n        /** Whether the radio button is selected. */\n        get: function () { return this._selected; },\n        set: function (selected) {\n            this._selected = selected;\n            this.value = selected ? selected.value : null;\n            this._checkSelectedRadioButton();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Initialize properties once content children are available.\n     * This allows us to propagate relevant attributes to associated buttons.\n     */\n    MdRadioGroup.prototype.ngAfterContentInit = function () {\n        // Mark this component as initialized in AfterContentInit because the initial value can\n        // possibly be set by NgModel on MdRadioGroup, and it is possible that the OnInit of the\n        // NgModel occurs *after* the OnInit of the MdRadioGroup.\n        this._isInitialized = true;\n    };\n    /**\n     * Mark this group as being \"touched\" (for ngModel). Meant to be called by the contained\n     * radio buttons upon their blur.\n     */\n    MdRadioGroup.prototype._touch = function () {\n        if (this.onTouched) {\n            this.onTouched();\n        }\n    };\n    MdRadioGroup.prototype._updateRadioButtonNames = function () {\n        var _this = this;\n        if (this._radios) {\n            this._radios.forEach(function (radio) {\n                radio.name = _this.name;\n            });\n        }\n    };\n    /** Updates the `selected` radio button from the internal _value state. */\n    MdRadioGroup.prototype._updateSelectedRadioFromValue = function () {\n        var _this = this;\n        // If the value already matches the selected radio, do nothing.\n        var isAlreadySelected = this._selected != null && this._selected.value == this._value;\n        if (this._radios != null && !isAlreadySelected) {\n            this._selected = null;\n            this._radios.forEach(function (radio) {\n                radio.checked = _this.value == radio.value;\n                if (radio.checked) {\n                    _this._selected = radio;\n                }\n            });\n        }\n    };\n    /** Dispatch change event with current selection and group value. */\n    MdRadioGroup.prototype._emitChangeEvent = function () {\n        if (this._isInitialized) {\n            var event_1 = new MdRadioChange();\n            event_1.source = this._selected;\n            event_1.value = this._value;\n            this.change.emit(event_1);\n        }\n    };\n    /**\n     * Sets the model value. Implemented as part of ControlValueAccessor.\n     * @param value\n     */\n    MdRadioGroup.prototype.writeValue = function (value) {\n        this.value = value;\n    };\n    /**\n     * Registers a callback to be triggered when the model value changes.\n     * Implemented as part of ControlValueAccessor.\n     * @param fn Callback to be registered.\n     */\n    MdRadioGroup.prototype.registerOnChange = function (fn) {\n        this._controlValueAccessorChangeFn = fn;\n    };\n    /**\n     * Registers a callback to be triggered when the control is touched.\n     * Implemented as part of ControlValueAccessor.\n     * @param fn Callback to be registered.\n     */\n    MdRadioGroup.prototype.registerOnTouched = function (fn) {\n        this.onTouched = fn;\n    };\n    /**\n     * Sets the disabled state of the control. Implemented as a part of ControlValueAccessor.\n     * @param isDisabled Whether the control should be disabled.\n     */\n    MdRadioGroup.prototype.setDisabledState = function (isDisabled) {\n        this.disabled = isDisabled;\n    };\n    __decorate$28([\n        _angular_core.Output(), \n        __metadata$28('design:type', _angular_core.EventEmitter)\n    ], MdRadioGroup.prototype, \"change\", void 0);\n    __decorate$28([\n        _angular_core.ContentChildren(_angular_core.forwardRef(function () { return MdRadioButton; })), \n        __metadata$28('design:type', _angular_core.QueryList)\n    ], MdRadioGroup.prototype, \"_radios\", void 0);\n    __decorate$28([\n        _angular_core.Input(), \n        __metadata$28('design:type', String)\n    ], MdRadioGroup.prototype, \"name\", null);\n    __decorate$28([\n        _angular_core.Input(), \n        __metadata$28('design:type', Object)\n    ], MdRadioGroup.prototype, \"align\", null);\n    __decorate$28([\n        _angular_core.Input(), \n        __metadata$28('design:type', Object)\n    ], MdRadioGroup.prototype, \"labelPosition\", void 0);\n    __decorate$28([\n        _angular_core.Input(), \n        __metadata$28('design:type', Boolean)\n    ], MdRadioGroup.prototype, \"disabled\", null);\n    __decorate$28([\n        _angular_core.Input(), \n        __metadata$28('design:type', Object)\n    ], MdRadioGroup.prototype, \"value\", null);\n    __decorate$28([\n        _angular_core.Input(), \n        __metadata$28('design:type', Object)\n    ], MdRadioGroup.prototype, \"selected\", null);\n    MdRadioGroup = __decorate$28([\n        _angular_core.Directive({\n            selector: 'md-radio-group, mat-radio-group',\n            providers: [MD_RADIO_GROUP_CONTROL_VALUE_ACCESSOR],\n            host: {\n                'role': 'radiogroup',\n            },\n        }), \n        __metadata$28('design:paramtypes', [])\n    ], MdRadioGroup);\n    return MdRadioGroup;\n}());\n/**\n * A radio-button. May be inside of\n */\nvar MdRadioButton = (function () {\n    function MdRadioButton(radioGroup, _elementRef, _renderer, radioDispatcher) {\n        // Assertions. Ideally these should be stripped out by the compiler.\n        // TODO(jelbourn): Assert that there's no name binding AND a parent radio group.\n        var _this = this;\n        this._elementRef = _elementRef;\n        this._renderer = _renderer;\n        this.radioDispatcher = radioDispatcher;\n        /** Whether this radio is checked. */\n        this._checked = false;\n        /** The unique ID for the radio button. */\n        this.id = \"md-radio-\" + _uniqueIdCounter$1++;\n        /** Value assigned to this radio.*/\n        this._value = null;\n        /**\n         * Event emitted when the checked state of this radio button changes.\n         * Change events are only emitted when the value changes due to user interaction with\n         * the radio button (the same behavior as `<input type-\"radio\">`).\n         */\n        this.change = new _angular_core.EventEmitter();\n        this.radioGroup = radioGroup;\n        radioDispatcher.listen(function (id, name) {\n            if (id != _this.id && name == _this.name) {\n                _this.checked = false;\n            }\n        });\n    }\n    Object.defineProperty(MdRadioButton.prototype, \"disableRipple\", {\n        /** Whether the ripple effect for this radio button is disabled. */\n        get: function () { return this._disableRipple; },\n        set: function (value) { this._disableRipple = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdRadioButton.prototype, \"inputId\", {\n        /** ID of the native input element inside `<md-radio-button>` */\n        get: function () {\n            return this.id + \"-input\";\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdRadioButton.prototype, \"checked\", {\n        /** Whether this radio button is checked. */\n        get: function () {\n            return this._checked;\n        },\n        set: function (newCheckedState) {\n            if (this._checked != newCheckedState) {\n                this._checked = newCheckedState;\n                if (newCheckedState && this.radioGroup && this.radioGroup.value != this.value) {\n                    this.radioGroup.selected = this;\n                }\n                else if (!newCheckedState && this.radioGroup && this.radioGroup.value == this.value) {\n                    // When unchecking the selected radio button, update the selected radio\n                    // property on the group.\n                    this.radioGroup.selected = null;\n                }\n                if (newCheckedState) {\n                    // Notify all radio buttons with the same name to un-check.\n                    this.radioDispatcher.notify(this.id, this.name);\n                }\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdRadioButton.prototype, \"value\", {\n        /** The value of this radio button. */\n        get: function () {\n            return this._value;\n        },\n        set: function (value) {\n            if (this._value != value) {\n                this._value = value;\n                if (this.radioGroup != null) {\n                    if (!this.checked) {\n                        // Update checked when the value changed to match the radio group's value\n                        this.checked = this.radioGroup.value == value;\n                    }\n                    if (this.checked) {\n                        this.radioGroup.selected = this;\n                    }\n                }\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdRadioButton.prototype, \"align\", {\n        /**\n         * Whether or not the radio-button should appear before or after the label.\n         * @deprecated\n         */\n        get: function () {\n            // align refers to the checkbox relative to the label, while labelPosition refers to the\n            // label relative to the checkbox. As such, they are inverted.\n            return this.labelPosition == 'after' ? 'start' : 'end';\n        },\n        set: function (v) {\n            this.labelPosition = (v == 'start') ? 'after' : 'before';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdRadioButton.prototype, \"labelPosition\", {\n        /** Whether the label should appear after or before the radio button. Defaults to 'after' */\n        get: function () {\n            return this._labelPosition || (this.radioGroup && this.radioGroup.labelPosition) || 'after';\n        },\n        set: function (value) {\n            this._labelPosition = value;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdRadioButton.prototype, \"disabled\", {\n        /** Whether the radio button is disabled. */\n        get: function () {\n            return this._disabled || (this.radioGroup != null && this.radioGroup.disabled);\n        },\n        set: function (value) {\n            // The presence of *any* disabled value makes the component disabled, *except* for false.\n            this._disabled = (value != null && value !== false) ? true : null;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdRadioButton.prototype.ngOnInit = function () {\n        if (this.radioGroup) {\n            // If the radio is inside a radio group, determine if it should be checked\n            this.checked = this.radioGroup.value === this._value;\n            // Copy name from parent radio group\n            this.name = this.radioGroup.name;\n        }\n    };\n    /** Dispatch change event with current value. */\n    MdRadioButton.prototype._emitChangeEvent = function () {\n        var event = new MdRadioChange();\n        event.source = this;\n        event.value = this._value;\n        this.change.emit(event);\n    };\n    MdRadioButton.prototype._isRippleDisabled = function () {\n        return this.disableRipple || this.disabled;\n    };\n    /**\n     * We use a hidden native input field to handle changes to focus state via keyboard navigation,\n     * with visual rendering done separately. The native element is kept in sync with the overall\n     * state of the component.\n     */\n    MdRadioButton.prototype._onInputFocus = function () {\n        this._isFocused = true;\n    };\n    /** Focuses the radio button. */\n    MdRadioButton.prototype.focus = function () {\n        this._renderer.invokeElementMethod(this._inputElement.nativeElement, 'focus');\n        this._onInputFocus();\n    };\n    MdRadioButton.prototype._onInputBlur = function () {\n        this._isFocused = false;\n        if (this.radioGroup) {\n            this.radioGroup._touch();\n        }\n    };\n    MdRadioButton.prototype._onInputClick = function (event) {\n        // We have to stop propagation for click events on the visual hidden input element.\n        // By default, when a user clicks on a label element, a generated click event will be\n        // dispatched on the associated input element. Since we are using a label element as our\n        // root container, the click event on the `radio-button` will be executed twice.\n        // The real click event will bubble up, and the generated click event also tries to bubble up.\n        // This will lead to multiple click events.\n        // Preventing bubbling for the second event will solve that issue.\n        event.stopPropagation();\n    };\n    /**\n     * Triggered when the radio button received a click or the input recognized any change.\n     * Clicking on a label element, will trigger a change event on the associated input.\n     */\n    MdRadioButton.prototype._onInputChange = function (event) {\n        // We always have to stop propagation on the change event.\n        // Otherwise the change event, from the input element, will bubble up and\n        // emit its event object to the `change` output.\n        event.stopPropagation();\n        var groupValueChanged = this.radioGroup && this.value != this.radioGroup.value;\n        this.checked = true;\n        this._emitChangeEvent();\n        if (this.radioGroup) {\n            this.radioGroup._controlValueAccessorChangeFn(this.value);\n            this.radioGroup._touch();\n            if (groupValueChanged) {\n                this.radioGroup._emitChangeEvent();\n            }\n        }\n    };\n    MdRadioButton.prototype._getHostElement = function () {\n        return this._elementRef.nativeElement;\n    };\n    __decorate$28([\n        _angular_core.HostBinding('class.md-radio-focused'), \n        __metadata$28('design:type', Boolean)\n    ], MdRadioButton.prototype, \"_isFocused\", void 0);\n    __decorate$28([\n        _angular_core.HostBinding('id'),\n        _angular_core.Input(), \n        __metadata$28('design:type', String)\n    ], MdRadioButton.prototype, \"id\", void 0);\n    __decorate$28([\n        _angular_core.Input(), \n        __metadata$28('design:type', String)\n    ], MdRadioButton.prototype, \"name\", void 0);\n    __decorate$28([\n        _angular_core.Input('aria-label'), \n        __metadata$28('design:type', String)\n    ], MdRadioButton.prototype, \"ariaLabel\", void 0);\n    __decorate$28([\n        _angular_core.Input('aria-labelledby'), \n        __metadata$28('design:type', String)\n    ], MdRadioButton.prototype, \"ariaLabelledby\", void 0);\n    __decorate$28([\n        _angular_core.Input(), \n        __metadata$28('design:type', Boolean)\n    ], MdRadioButton.prototype, \"disableRipple\", null);\n    __decorate$28([\n        _angular_core.Output(), \n        __metadata$28('design:type', _angular_core.EventEmitter)\n    ], MdRadioButton.prototype, \"change\", void 0);\n    __decorate$28([\n        _angular_core.ViewChild('input'), \n        __metadata$28('design:type', _angular_core.ElementRef)\n    ], MdRadioButton.prototype, \"_inputElement\", void 0);\n    __decorate$28([\n        _angular_core.HostBinding('class.md-radio-checked'),\n        _angular_core.Input(), \n        __metadata$28('design:type', Boolean)\n    ], MdRadioButton.prototype, \"checked\", null);\n    __decorate$28([\n        _angular_core.Input(), \n        __metadata$28('design:type', Object)\n    ], MdRadioButton.prototype, \"value\", null);\n    __decorate$28([\n        _angular_core.Input(), \n        __metadata$28('design:type', Object)\n    ], MdRadioButton.prototype, \"align\", null);\n    __decorate$28([\n        _angular_core.Input(), \n        __metadata$28('design:type', Object)\n    ], MdRadioButton.prototype, \"labelPosition\", null);\n    __decorate$28([\n        _angular_core.HostBinding('class.md-radio-disabled'),\n        _angular_core.Input(), \n        __metadata$28('design:type', Boolean)\n    ], MdRadioButton.prototype, \"disabled\", null);\n    MdRadioButton = __decorate$28([\n        _angular_core.Component({selector: 'md-radio-button, mat-radio-button',\n            template: \"<label [attr.for]=\\\"inputId\\\" class=\\\"md-radio-label\\\"><div class=\\\"md-radio-container\\\"><div class=\\\"md-radio-outer-circle\\\"></div><div class=\\\"md-radio-inner-circle\\\"></div><div md-ripple *ngIf=\\\"!_isRippleDisabled()\\\" class=\\\"md-radio-ripple\\\" [mdRippleTrigger]=\\\"_getHostElement()\\\" [mdRippleCentered]=\\\"true\\\" [mdRippleSpeedFactor]=\\\"0.3\\\" mdRippleBackgroundColor=\\\"rgba(0, 0, 0, 0)\\\"></div></div><input #input class=\\\"md-radio-input cdk-visually-hidden\\\" type=\\\"radio\\\" [id]=\\\"inputId\\\" [checked]=\\\"checked\\\" [disabled]=\\\"disabled\\\" [name]=\\\"name\\\" [attr.aria-label]=\\\"ariaLabel\\\" [attr.aria-labelledby]=\\\"ariaLabelledby\\\" (change)=\\\"_onInputChange($event)\\\" (focus)=\\\"_onInputFocus()\\\" (blur)=\\\"_onInputBlur()\\\" (click)=\\\"_onInputClick($event)\\\"><div class=\\\"md-radio-label-content\\\" [class.md-radio-label-before]=\\\"labelPosition == 'before'\\\"><ng-content></ng-content></div></label>\",\n            styles: [\"md-radio-button{display:inline-block}.md-radio-label{cursor:pointer;display:inline-flex;align-items:baseline;white-space:nowrap}.md-radio-container{box-sizing:border-box;display:inline-block;height:20px;position:relative;width:20px;top:2px}.md-radio-inner-circle,.md-radio-outer-circle{box-sizing:border-box;height:20px;left:0;top:0;width:20px;position:absolute}.md-radio-outer-circle{border:2px solid;border-radius:50%;transition:border-color ease 280ms}.md-radio-inner-circle{border-radius:50%;transition:transform ease 280ms,background-color ease 280ms;transform:scale(0)}.md-radio-checked .md-radio-inner-circle{transform:scale(.5)}.md-radio-label-content{display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .md-radio-label-content{padding-right:8px;padding-left:0}.md-radio-label-content.md-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .md-radio-label-content.md-radio-label-before{padding-right:0;padding-left:8px}.md-radio-disabled,.md-radio-disabled .md-radio-label{cursor:default}.md-radio-ripple{position:absolute;left:-15px;top:-15px;right:-15px;bottom:-15px;border-radius:50%;z-index:1;pointer-events:none}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None\n        }),\n        __param$5(0, _angular_core.Optional()), \n        __metadata$28('design:paramtypes', [MdRadioGroup, _angular_core.ElementRef, _angular_core.Renderer, UniqueSelectionDispatcher])\n    ], MdRadioButton);\n    return MdRadioButton;\n}());\nvar MdRadioModule = (function () {\n    function MdRadioModule() {\n    }\n    MdRadioModule.forRoot = function () {\n        return {\n            ngModule: MdRadioModule,\n            providers: [UniqueSelectionDispatcher, ViewportRuler],\n        };\n    };\n    MdRadioModule = __decorate$28([\n        _angular_core.NgModule({\n            imports: [_angular_common.CommonModule, MdRippleModule, DefaultStyleCompatibilityModeModule],\n            exports: [MdRadioGroup, MdRadioButton, DefaultStyleCompatibilityModeModule],\n            declarations: [MdRadioGroup, MdRadioButton],\n        }), \n        __metadata$28('design:paramtypes', [])\n    ], MdRadioModule);\n    return MdRadioModule;\n}());\n\nvar __decorate$31 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$31 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Option IDs need to be unique across components, so this counter exists outside of\n * the component definition.\n */\nvar _uniqueIdCounter$2 = 0;\n/**\n * Single option inside of a `<md-select>` element.\n */\nvar MdOption = (function () {\n    function MdOption(_element, _renderer) {\n        this._element = _element;\n        this._renderer = _renderer;\n        this._selected = false;\n        /** Whether the option is disabled.  */\n        this._disabled = false;\n        this._id = \"md-select-option-\" + _uniqueIdCounter$2++;\n        /** Event emitted when the option is selected. */\n        this.onSelect = new _angular_core.EventEmitter();\n    }\n    Object.defineProperty(MdOption.prototype, \"id\", {\n        /** The unique ID of the option. */\n        get: function () { return this._id; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdOption.prototype, \"disabled\", {\n        /** Whether the option is disabled. */\n        get: function () { return this._disabled; },\n        set: function (value) { this._disabled = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdOption.prototype, \"selected\", {\n        /** Whether or not the option is currently selected. */\n        get: function () {\n            return this._selected;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdOption.prototype, \"viewValue\", {\n        /**\n         * The displayed value of the option. It is necessary to show the selected option in the\n         * select's trigger.\n         */\n        get: function () {\n            // TODO(kara): Add input property alternative for node envs.\n            return this._getHostElement().textContent.trim();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /** Selects the option. */\n    MdOption.prototype.select = function () {\n        this._selected = true;\n        this.onSelect.emit();\n    };\n    /** Deselects the option. */\n    MdOption.prototype.deselect = function () {\n        this._selected = false;\n    };\n    /** Sets focus onto this option. */\n    MdOption.prototype.focus = function () {\n        this._renderer.invokeElementMethod(this._getHostElement(), 'focus');\n    };\n    /** Ensures the option is selected when activated from the keyboard. */\n    MdOption.prototype._handleKeydown = function (event) {\n        if (event.keyCode === ENTER || event.keyCode === SPACE) {\n            this._selectViaInteraction();\n        }\n    };\n    /**\n     * Selects the option while indicating the selection came from the user. Used to\n     * determine if the select's view -> model callback should be invoked.\n     */\n    MdOption.prototype._selectViaInteraction = function () {\n        if (!this.disabled) {\n            this._selected = true;\n            this.onSelect.emit(true);\n        }\n    };\n    /** Returns the correct tabindex for the option depending on disabled state. */\n    MdOption.prototype._getTabIndex = function () {\n        return this.disabled ? '-1' : '0';\n    };\n    MdOption.prototype._getHostElement = function () {\n        return this._element.nativeElement;\n    };\n    __decorate$31([\n        _angular_core.Input(), \n        __metadata$31('design:type', Object)\n    ], MdOption.prototype, \"value\", void 0);\n    __decorate$31([\n        _angular_core.Input(), \n        __metadata$31('design:type', Object)\n    ], MdOption.prototype, \"disabled\", null);\n    __decorate$31([\n        _angular_core.Output(), \n        __metadata$31('design:type', Object)\n    ], MdOption.prototype, \"onSelect\", void 0);\n    MdOption = __decorate$31([\n        _angular_core.Component({selector: 'md-option, mat-option',\n            host: {\n                'role': 'option',\n                '[attr.tabindex]': '_getTabIndex()',\n                '[class.md-selected]': 'selected',\n                '[id]': 'id',\n                '[attr.aria-selected]': 'selected.toString()',\n                '[attr.aria-disabled]': 'disabled.toString()',\n                '[class.md-option-disabled]': 'disabled',\n                '(click)': '_selectViaInteraction()',\n                '(keydown)': '_handleKeydown($event)'\n            },\n            template: \"<ng-content></ng-content><div class=\\\"md-option-ripple\\\" *ngIf=\\\"!disabled\\\" md-ripple mdRippleBackgroundColor=\\\"rgba(0,0,0,0)\\\" [mdRippleTrigger]=\\\"_getHostElement()\\\"></div>\",\n            styles: [\".md-select-value,md-option{white-space:nowrap;text-overflow:ellipsis}md-select{display:inline-block;outline:0}.md-select-trigger{display:flex;justify-content:space-between;align-items:center;height:30px;min-width:112px;cursor:pointer;position:relative;box-sizing:border-box}[aria-disabled=true] .md-select-trigger{background-image:linear-gradient(to right,rgba(0,0,0,.26) 0,rgba(0,0,0,.26) 33%,transparent 0);background-size:4px 1px;background-repeat:repeat-x;border-bottom:transparent;background-position:0 bottom;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.md-select-placeholder{position:relative;padding:0 2px;transform-origin:left top}.md-select-placeholder.md-floating-placeholder{top:-22px;left:-2px;transform:scale(.75)}[dir=rtl] .md-select-placeholder{transform-origin:right top}[dir=rtl] .md-select-placeholder.md-floating-placeholder{left:2px}[aria-required=true] .md-select-placeholder::after{content:'*'}.md-select-value{position:absolute;overflow-x:hidden;left:0;top:6px}[dir=rtl] .md-select-value{left:auto;right:0}.md-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.md-select-panel{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px}@media screen and (-ms-high-contrast:active){.md-select-panel{outline:solid 1px}.md-option-ripple{opacity:.5}}md-option{overflow-x:hidden;display:flex;flex-direction:row;align-items:center;height:48px;padding:0 16px;font-size:16px;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;text-align:start;text-decoration:none;position:relative;cursor:pointer;outline:0}md-option[disabled]{cursor:default}md-option md-icon{margin-right:16px}[dir=rtl] md-option md-icon{margin-left:16px}md-option[aria-disabled=true]{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.md-option-ripple{position:absolute;top:0;left:0;bottom:0;right:0}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None\n        }), \n        __metadata$31('design:paramtypes', [_angular_core.ElementRef, _angular_core.Renderer])\n    ], MdOption);\n    return MdOption;\n}());\n\n/**\n * This class manages keyboard events for selectable lists. If you pass it a query list\n * of focusable items, it will focus the correct item when arrow events occur.\n */\nvar ListKeyManager = (function () {\n    function ListKeyManager(_items) {\n        this._items = _items;\n        this._tabOut = new rxjs_Subject.Subject();\n        this._wrap = false;\n    }\n    /**\n     * Turns on focus wrapping mode, which ensures that the focus will wrap to\n     * the other end of list when there are no more items in the given direction.\n     *\n     * @returns The ListKeyManager that the method was called on.\n     */\n    ListKeyManager.prototype.withFocusWrap = function () {\n        this._wrap = true;\n        return this;\n    };\n    /**\n     * Sets the focus of the list to the item at the index specified.\n     *\n     * @param index The index of the item to be focused.\n     */\n    ListKeyManager.prototype.setFocus = function (index) {\n        this._focusedItemIndex = index;\n        this._items.toArray()[index].focus();\n    };\n    /**\n     * Sets the focus depending on the key event passed in.\n     * @param event Keyboard event to be used for determining which element to focus.\n     */\n    ListKeyManager.prototype.onKeydown = function (event) {\n        switch (event.keyCode) {\n            case DOWN_ARROW:\n                this.focusNextItem();\n                break;\n            case UP_ARROW:\n                this.focusPreviousItem();\n                break;\n            case HOME:\n                this.focusFirstItem();\n                break;\n            case END:\n                this.focusLastItem();\n                break;\n            case TAB:\n                // Note that we shouldn't prevent the default action on tab.\n                this._tabOut.next(null);\n                return;\n            default:\n                return;\n        }\n        event.preventDefault();\n    };\n    /** Focuses the first enabled item in the list. */\n    ListKeyManager.prototype.focusFirstItem = function () {\n        this._setFocusByIndex(0, 1);\n    };\n    /** Focuses the last enabled item in the list. */\n    ListKeyManager.prototype.focusLastItem = function () {\n        this._setFocusByIndex(this._items.length - 1, -1);\n    };\n    /** Focuses the next enabled item in the list. */\n    ListKeyManager.prototype.focusNextItem = function () {\n        this._setFocusByDelta(1);\n    };\n    /** Focuses a previous enabled item in the list. */\n    ListKeyManager.prototype.focusPreviousItem = function () {\n        this._setFocusByDelta(-1);\n    };\n    Object.defineProperty(ListKeyManager.prototype, \"focusedItemIndex\", {\n        /** Returns the index of the currently focused item. */\n        get: function () {\n            return this._focusedItemIndex;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Allows setting of the focusedItemIndex without focusing the item.\n     * @param index The new focusedItemIndex.\n     */\n    ListKeyManager.prototype.updateFocusedItemIndex = function (index) {\n        this._focusedItemIndex = index;\n    };\n    Object.defineProperty(ListKeyManager.prototype, \"tabOut\", {\n        /**\n         * Observable that emits any time the TAB key is pressed, so components can react\n         * when focus is shifted off of the list.\n         */\n        get: function () {\n            return this._tabOut.asObservable();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * This method sets focus to the correct item, given a list of items and the delta\n     * between the currently focused item and the new item to be focused. It will calculate\n     * the proper focus differently depending on whether wrap mode is turned on.\n     */\n    ListKeyManager.prototype._setFocusByDelta = function (delta, items) {\n        if (items === void 0) { items = this._items.toArray(); }\n        this._wrap ? this._setWrapModeFocus(delta, items)\n            : this._setDefaultModeFocus(delta, items);\n    };\n    /**\n     * Sets the focus properly given \"wrap\" mode. In other words, it will continue to move\n     * down the list until it finds an item that is not disabled, and it will wrap if it\n     * encounters either end of the list.\n     */\n    ListKeyManager.prototype._setWrapModeFocus = function (delta, items) {\n        // when focus would leave menu, wrap to beginning or end\n        this._focusedItemIndex =\n            (this._focusedItemIndex + delta + items.length) % items.length;\n        // skip all disabled menu items recursively until an active one is reached\n        if (items[this._focusedItemIndex].disabled) {\n            this._setWrapModeFocus(delta, items);\n        }\n        else {\n            items[this._focusedItemIndex].focus();\n        }\n    };\n    /**\n     * Sets the focus properly given the default mode. In other words, it will\n     * continue to move down the list until it finds an item that is not disabled. If\n     * it encounters either end of the list, it will stop and not wrap.\n     */\n    ListKeyManager.prototype._setDefaultModeFocus = function (delta, items) {\n        this._setFocusByIndex(this._focusedItemIndex + delta, delta, items);\n    };\n    /**\n     * Sets the focus to the first enabled item starting at the index specified. If the\n     * item is disabled, it will move in the fallbackDelta direction until it either\n     * finds an enabled item or encounters the end of the list.\n     */\n    ListKeyManager.prototype._setFocusByIndex = function (index, fallbackDelta, items) {\n        if (items === void 0) { items = this._items.toArray(); }\n        if (!items[index]) {\n            return;\n        }\n        while (items[index].disabled) {\n            index += fallbackDelta;\n            if (!items[index]) {\n                return;\n            }\n        }\n        this.setFocus(index);\n    };\n    return ListKeyManager;\n}());\n\n/**\n * The following are all the animations for the md-select component, with each\n * const containing the metadata for one animation.\n *\n * The values below match the implementation of the Material 1 md-select animation.\n */\n/**\n * This animation shrinks the placeholder text to 75% of its normal size and translates\n * it to either the top left corner (ltr) or top right corner (rtl) of the trigger,\n * depending on the text direction of the application.\n */\nvar transformPlaceholder = _angular_core.trigger('transformPlaceholder', [\n    _angular_core.state('floating-ltr', _angular_core.style({\n        top: '-22px',\n        left: '-2px',\n        transform: \"scale(0.75)\"\n    })),\n    _angular_core.state('floating-rtl', _angular_core.style({\n        top: '-22px',\n        left: '2px',\n        transform: \"scale(0.75)\"\n    })),\n    _angular_core.transition('* => *', _angular_core.animate(\"400ms cubic-bezier(0.25, 0.8, 0.25, 1)\"))\n]);\n/**\n * This animation transforms the select's overlay panel on and off the page.\n *\n * When the panel is attached to the DOM, it expands its width 32px, scales it up to\n * 100% on the Y axis, fades in its border, and translates slightly up and to the\n * side to ensure the option text correctly overlaps the trigger text.\n *\n * When the panel is removed from the DOM, it simply fades out linearly.\n */\nvar transformPanel = _angular_core.trigger('transformPanel', [\n    _angular_core.state('showing', _angular_core.style({\n        opacity: 1,\n        minWidth: 'calc(100% + 32px)',\n        transform: \"translate3d(0,0,0) scaleY(1)\"\n    })),\n    _angular_core.transition('void => *', [\n        _angular_core.style({\n            opacity: 0,\n            minWidth: '100%',\n            transform: \"translate3d(0, 0, 0) scaleY(0)\"\n        }),\n        _angular_core.animate(\"150ms cubic-bezier(0.25, 0.8, 0.25, 1)\")\n    ]),\n    _angular_core.transition('* => void', [\n        _angular_core.animate('250ms 100ms linear', _angular_core.style({ opacity: 0 }))\n    ])\n]);\n/**\n * This animation fades in the background color and text content of the\n * select's options. It is time delayed to occur 100ms after the overlay\n * panel has transformed in.\n */\nvar fadeInContent = _angular_core.trigger('fadeInContent', [\n    _angular_core.state('showing', _angular_core.style({ opacity: 1 })),\n    _angular_core.transition('void => showing', [\n        _angular_core.style({ opacity: 0 }),\n        _angular_core.animate(\"150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)\")\n    ])\n]);\n\nvar __decorate$30 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$30 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$6 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n/**\n * The following style constants are necessary to save here in order\n * to properly calculate the alignment of the selected option over\n * the trigger element.\n */\n/** The fixed height of every option element. */\nvar SELECT_OPTION_HEIGHT = 48;\n/** The max height of the select's overlay panel */\nvar SELECT_PANEL_MAX_HEIGHT = 256;\n/** The max number of options visible at once in the select panel. */\nvar SELECT_MAX_OPTIONS_DISPLAYED = 5;\n/** The fixed height of the select's trigger element. */\nvar SELECT_TRIGGER_HEIGHT = 30;\n/**\n * Must adjust for the difference in height between the option and the trigger,\n * so the text will align on the y axis.\n * (SELECT_OPTION_HEIGHT (48) - SELECT_TRIGGER_HEIGHT (30)) / 2 = 9\n */\nvar SELECT_OPTION_HEIGHT_ADJUSTMENT = 9;\n/** The panel's padding on the x-axis */\nvar SELECT_PANEL_PADDING_X = 16;\n/**\n * The panel's padding on the y-axis. This padding indicates there are more\n * options available if you scroll.\n */\nvar SELECT_PANEL_PADDING_Y = 16;\n/**\n * The select panel will only \"fit\" inside the viewport if it is positioned at\n * this value or more away from the viewport boundary.\n */\nvar SELECT_PANEL_VIEWPORT_PADDING = 8;\nvar MdSelect = (function () {\n    function MdSelect(_element, _renderer, _viewportRuler, _dir, _control) {\n        this._element = _element;\n        this._renderer = _renderer;\n        this._viewportRuler = _viewportRuler;\n        this._dir = _dir;\n        this._control = _control;\n        /** Whether or not the overlay panel is open. */\n        this._panelOpen = false;\n        /** Subscriptions to option events. */\n        this._subscriptions = [];\n        /** Whether filling out the select is required in the form.  */\n        this._required = false;\n        /** Whether the select is disabled.  */\n        this._disabled = false;\n        /** The scroll position of the overlay panel, calculated to center the selected option. */\n        this._scrollTop = 0;\n        /** The animation state of the placeholder. */\n        this._placeholderState = '';\n        /** View -> model callback called when value changes */\n        this._onChange = function (value) { };\n        /** View -> model callback called when select has been touched */\n        this._onTouched = function () { };\n        /** The IDs of child options to be passed to the aria-owns attribute. */\n        this._optionIds = '';\n        /** The value of the select panel's transform-origin property. */\n        this._transformOrigin = 'top';\n        /**\n         * The x-offset of the overlay panel in relation to the trigger's top start corner.\n         * This must be adjusted to align the selected option text over the trigger text when\n         * the panel opens. Will change based on LTR or RTL text direction.\n         */\n        this._offsetX = 0;\n        /**\n         * The y-offset of the overlay panel in relation to the trigger's top start corner.\n         * This must be adjusted to align the selected option text over the trigger text.\n         * when the panel opens. Will change based on the y-position of the selected option.\n         */\n        this._offsetY = 0;\n        /**\n         * This position config ensures that the top \"start\" corner of the overlay\n         * is aligned with with the top \"start\" of the origin by default (overlapping\n         * the trigger completely). If the panel cannot fit below the trigger, it\n         * will fall back to a position above the trigger.\n         */\n        this._positions = [\n            {\n                originX: 'start',\n                originY: 'top',\n                overlayX: 'start',\n                overlayY: 'top',\n            },\n            {\n                originX: 'start',\n                originY: 'bottom',\n                overlayX: 'start',\n                overlayY: 'bottom',\n            },\n        ];\n        /** Event emitted when the select has been opened. */\n        this.onOpen = new _angular_core.EventEmitter();\n        /** Event emitted when the select has been closed. */\n        this.onClose = new _angular_core.EventEmitter();\n        if (this._control) {\n            this._control.valueAccessor = this;\n        }\n    }\n    Object.defineProperty(MdSelect.prototype, \"placeholder\", {\n        /** Placeholder to be shown if no value has been selected. */\n        get: function () { return this._placeholder; },\n        set: function (value) {\n            var _this = this;\n            this._placeholder = value;\n            // Must wait to record the trigger width to ensure placeholder width is included.\n            Promise.resolve(null).then(function () { return _this._triggerWidth = _this._getWidth(); });\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSelect.prototype, \"disabled\", {\n        /** Whether the component is disabled. */\n        get: function () { return this._disabled; },\n        set: function (value) {\n            this._disabled = coerceBooleanProperty(value);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSelect.prototype, \"required\", {\n        /** Whether the component is required. */\n        get: function () { return this._required; },\n        set: function (value) { this._required = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    MdSelect.prototype.ngAfterContentInit = function () {\n        var _this = this;\n        this._initKeyManager();\n        this._resetOptions();\n        this._changeSubscription = this.options.changes.subscribe(function () { return _this._resetOptions(); });\n    };\n    MdSelect.prototype.ngOnDestroy = function () {\n        this._dropSubscriptions();\n        this._changeSubscription.unsubscribe();\n        this._tabSubscription.unsubscribe();\n    };\n    /** Toggles the overlay panel open or closed. */\n    MdSelect.prototype.toggle = function () {\n        this.panelOpen ? this.close() : this.open();\n    };\n    /** Opens the overlay panel. */\n    MdSelect.prototype.open = function () {\n        if (this.disabled) {\n            return;\n        }\n        this._calculateOverlayPosition();\n        this._placeholderState = this._isRtl() ? 'floating-rtl' : 'floating-ltr';\n        this._panelOpen = true;\n    };\n    /** Closes the overlay panel and focuses the host element. */\n    MdSelect.prototype.close = function () {\n        this._panelOpen = false;\n        if (!this._selected) {\n            this._placeholderState = '';\n        }\n        this._focusHost();\n    };\n    /**\n     * Sets the select's value. Part of the ControlValueAccessor interface\n     * required to integrate with Angular's core forms API.\n     *\n     * @param value New value to be written to the model.\n     */\n    MdSelect.prototype.writeValue = function (value) {\n        var _this = this;\n        if (!this.options) {\n            // In reactive forms, writeValue() will be called synchronously before\n            // the select's child options have been created. It's necessary to call\n            // writeValue() again after the options have been created to ensure any\n            // initial view value is set.\n            Promise.resolve(null).then(function () { return _this.writeValue(value); });\n            return;\n        }\n        this._setSelectionByValue(value);\n    };\n    /**\n     * Saves a callback function to be invoked when the select's value\n     * changes from user input. Part of the ControlValueAccessor interface\n     * required to integrate with Angular's core forms API.\n     *\n     * @param fn Callback to be triggered when the value changes.\n     */\n    MdSelect.prototype.registerOnChange = function (fn) {\n        this._onChange = fn;\n    };\n    /**\n     * Saves a callback function to be invoked when the select is blurred\n     * by the user. Part of the ControlValueAccessor interface required\n     * to integrate with Angular's core forms API.\n     *\n     * @param fn Callback to be triggered when the component has been touched.\n     */\n    MdSelect.prototype.registerOnTouched = function (fn) {\n        this._onTouched = fn;\n    };\n    /**\n     * Disables the select. Part of the ControlValueAccessor interface required\n     * to integrate with Angular's core forms API.\n     *\n     * @param isDisabled Sets whether the component is disabled.\n     */\n    MdSelect.prototype.setDisabledState = function (isDisabled) {\n        this.disabled = isDisabled;\n    };\n    Object.defineProperty(MdSelect.prototype, \"panelOpen\", {\n        /** Whether or not the overlay panel is open. */\n        get: function () {\n            return this._panelOpen;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSelect.prototype, \"selected\", {\n        /** The currently selected option. */\n        get: function () {\n            return this._selected;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdSelect.prototype._isRtl = function () {\n        return this._dir ? this._dir.value === 'rtl' : false;\n    };\n    /** The width of the trigger element. This is necessary to match\n     * the overlay width to the trigger width.\n     */\n    MdSelect.prototype._getWidth = function () {\n        return this._getTriggerRect().width;\n    };\n    /** Ensures the panel opens if activated by the keyboard. */\n    MdSelect.prototype._handleKeydown = function (event) {\n        if (event.keyCode === ENTER || event.keyCode === SPACE) {\n            this.open();\n        }\n    };\n    /**\n     * When the panel is finished animating, emits an event and focuses\n     * an option if the panel is open.\n     */\n    MdSelect.prototype._onPanelDone = function () {\n        if (this.panelOpen) {\n            this._focusCorrectOption();\n            this.onOpen.emit();\n        }\n        else {\n            this.onClose.emit();\n        }\n    };\n    /**\n     * Calls the touched callback only if the panel is closed. Otherwise, the trigger will\n     * \"blur\" to the panel when it opens, causing a false positive.\n     */\n    MdSelect.prototype._onBlur = function () {\n        if (!this.panelOpen) {\n            this._onTouched();\n        }\n    };\n    /** Returns the correct tabindex for the select depending on disabled state. */\n    MdSelect.prototype._getTabIndex = function () {\n        return this.disabled ? '-1' : '0';\n    };\n    /**\n     * Sets the scroll position of the scroll container. This must be called after\n     * the overlay pane is attached or the scroll container element will not yet be\n     * present in the DOM.\n     */\n    MdSelect.prototype._setScrollTop = function () {\n        var scrollContainer = this.overlayDir.overlayRef.overlayElement.querySelector('.md-select-panel');\n        scrollContainer.scrollTop = this._scrollTop;\n    };\n    /**\n     * Sets the selected option based on a value. If no option can be\n     * found with the designated value, the select trigger is cleared.\n     */\n    MdSelect.prototype._setSelectionByValue = function (value) {\n        var options = this.options.toArray();\n        for (var i = 0; i < this.options.length; i++) {\n            if (options[i].value === value) {\n                options[i].select();\n                return;\n            }\n        }\n        // Clear selection if no item was selected.\n        this._clearSelection();\n    };\n    /** Clears the select trigger and deselects every option in the list. */\n    MdSelect.prototype._clearSelection = function () {\n        this._selected = null;\n        this._updateOptions();\n    };\n    MdSelect.prototype._getTriggerRect = function () {\n        return this.trigger.nativeElement.getBoundingClientRect();\n    };\n    /** Sets up a key manager to listen to keyboard events on the overlay panel. */\n    MdSelect.prototype._initKeyManager = function () {\n        var _this = this;\n        this._keyManager = new ListKeyManager(this.options);\n        this._tabSubscription = this._keyManager.tabOut.subscribe(function () {\n            _this.close();\n        });\n    };\n    /** Drops current option subscriptions and IDs and resets from scratch. */\n    MdSelect.prototype._resetOptions = function () {\n        this._dropSubscriptions();\n        this._listenToOptions();\n        this._setOptionIds();\n    };\n    /** Listens to selection events on each option. */\n    MdSelect.prototype._listenToOptions = function () {\n        var _this = this;\n        this.options.forEach(function (option) {\n            var sub = option.onSelect.subscribe(function (isUserInput) {\n                if (isUserInput) {\n                    _this._onChange(option.value);\n                }\n                _this._onSelect(option);\n            });\n            _this._subscriptions.push(sub);\n        });\n    };\n    /** Unsubscribes from all option subscriptions. */\n    MdSelect.prototype._dropSubscriptions = function () {\n        this._subscriptions.forEach(function (sub) { return sub.unsubscribe(); });\n        this._subscriptions = [];\n    };\n    /** Records option IDs to pass to the aria-owns property. */\n    MdSelect.prototype._setOptionIds = function () {\n        this._optionIds = this.options.map(function (option) { return option.id; }).join(' ');\n    };\n    /** When a new option is selected, deselects the others and closes the panel. */\n    MdSelect.prototype._onSelect = function (option) {\n        this._selected = option;\n        this._updateOptions();\n        this._setValueWidth();\n        this._placeholderState = '';\n        if (this.panelOpen) {\n            this.close();\n        }\n    };\n    /** Deselect each option that doesn't match the current selection. */\n    MdSelect.prototype._updateOptions = function () {\n        var _this = this;\n        this.options.forEach(function (option) {\n            if (option !== _this.selected) {\n                option.deselect();\n            }\n        });\n    };\n    /**\n     * Must set the width of the selected option's value programmatically\n     * because it is absolutely positioned and otherwise will not clip\n     * overflow. The selection arrow is 9px wide, add 4px of padding = 13\n     */\n    MdSelect.prototype._setValueWidth = function () {\n        this._selectedValueWidth = this._triggerWidth - 13;\n    };\n    /** Focuses the selected item. If no option is selected, it will focus\n     * the first item instead.\n     */\n    MdSelect.prototype._focusCorrectOption = function () {\n        if (this.selected) {\n            this._keyManager.setFocus(this._getOptionIndex(this.selected));\n        }\n        else {\n            this._keyManager.focusFirstItem();\n        }\n    };\n    /** Focuses the host element when the panel closes. */\n    MdSelect.prototype._focusHost = function () {\n        this._renderer.invokeElementMethod(this._element.nativeElement, 'focus');\n    };\n    /** Gets the index of the provided option in the option list. */\n    MdSelect.prototype._getOptionIndex = function (option) {\n        return this.options.reduce(function (result, current, index) {\n            return result === undefined ? (option === current ? index : undefined) : result;\n        }, undefined);\n    };\n    /** Calculates the scroll position and x- and y-offsets of the overlay panel. */\n    MdSelect.prototype._calculateOverlayPosition = function () {\n        this._offsetX = this._isRtl() ? SELECT_PANEL_PADDING_X : -SELECT_PANEL_PADDING_X;\n        var panelHeight = Math.min(this.options.length * SELECT_OPTION_HEIGHT, SELECT_PANEL_MAX_HEIGHT);\n        var scrollContainerHeight = this.options.length * SELECT_OPTION_HEIGHT;\n        // The farthest the panel can be scrolled before it hits the bottom\n        var maxScroll = scrollContainerHeight - panelHeight;\n        if (this.selected) {\n            var selectedIndex = this._getOptionIndex(this.selected);\n            // We must maintain a scroll buffer so the selected option will be scrolled to the\n            // center of the overlay panel rather than the top.\n            var scrollBuffer = panelHeight / 2;\n            this._scrollTop = this._calculateOverlayScroll(selectedIndex, scrollBuffer, maxScroll);\n            this._offsetY = this._calculateOverlayOffset(selectedIndex, scrollBuffer, maxScroll);\n        }\n        else {\n            // If no option is selected, the panel centers on the first option. In this case,\n            // we must only adjust for the height difference between the option element\n            // and the trigger element, then multiply it by -1 to ensure the panel moves\n            // in the correct direction up the page.\n            this._offsetY = (SELECT_OPTION_HEIGHT - SELECT_TRIGGER_HEIGHT) / 2 * -1;\n        }\n        this._checkOverlayWithinViewport(maxScroll);\n    };\n    /**\n     * Calculates the scroll position of the select's overlay panel.\n     *\n     * Attempts to center the selected option in the panel. If the option is\n     * too high or too low in the panel to be scrolled to the center, it clamps the\n     * scroll position to the min or max scroll positions respectively.\n     */\n    MdSelect.prototype._calculateOverlayScroll = function (selectedIndex, scrollBuffer, maxScroll) {\n        var optionOffsetFromScrollTop = SELECT_OPTION_HEIGHT * selectedIndex;\n        var halfOptionHeight = SELECT_OPTION_HEIGHT / 2;\n        // Starts at the optionOffsetFromScrollTop, which scrolls the option to the top of the\n        // scroll container, then subtracts the scroll buffer to scroll the option down to\n        // the center of the overlay panel. Half the option height must be re-added to the\n        // scrollTop so the option is centered based on its middle, not its top edge.\n        var optimalScrollPosition = optionOffsetFromScrollTop - scrollBuffer + halfOptionHeight;\n        return clampValue(0, optimalScrollPosition, maxScroll);\n    };\n    /**\n     * Calculates the y-offset of the select's overlay panel in relation to the\n     * top start corner of the trigger. It has to be adjusted in order for the\n     * selected option to be aligned over the trigger when the panel opens.\n     */\n    MdSelect.prototype._calculateOverlayOffset = function (selectedIndex, scrollBuffer, maxScroll) {\n        var optionOffsetFromPanelTop;\n        if (this._scrollTop === 0) {\n            optionOffsetFromPanelTop = selectedIndex * SELECT_OPTION_HEIGHT;\n        }\n        else if (this._scrollTop === maxScroll) {\n            var firstDisplayedIndex = this.options.length - SELECT_MAX_OPTIONS_DISPLAYED;\n            var selectedDisplayIndex = selectedIndex - firstDisplayedIndex;\n            // Because the panel height is longer than the height of the options alone,\n            // there is always extra padding at the top or bottom of the panel. When\n            // scrolled to the very bottom, this padding is at the top of the panel and\n            // must be added to the offset.\n            optionOffsetFromPanelTop =\n                selectedDisplayIndex * SELECT_OPTION_HEIGHT + SELECT_PANEL_PADDING_Y;\n        }\n        else {\n            // If the option was scrolled to the middle of the panel using a scroll buffer,\n            // its offset will be the scroll buffer minus the half height that was added to\n            // center it.\n            optionOffsetFromPanelTop = scrollBuffer - SELECT_OPTION_HEIGHT / 2;\n        }\n        // The final offset is the option's offset from the top, adjusted for the height\n        // difference, multiplied by -1 to ensure that the overlay moves in the correct\n        // direction up the page.\n        return optionOffsetFromPanelTop * -1 - SELECT_OPTION_HEIGHT_ADJUSTMENT;\n    };\n    /**\n     * Checks that the attempted overlay position will fit within the viewport.\n     * If it will not fit, tries to adjust the scroll position and the associated\n     * y-offset so the panel can open fully on-screen. If it still won't fit,\n     * sets the offset back to 0 to allow the fallback position to take over.\n     */\n    MdSelect.prototype._checkOverlayWithinViewport = function (maxScroll) {\n        var viewportRect = this._viewportRuler.getViewportRect();\n        var triggerRect = this._getTriggerRect();\n        var topSpaceAvailable = triggerRect.top - SELECT_PANEL_VIEWPORT_PADDING;\n        var bottomSpaceAvailable = viewportRect.height - triggerRect.bottom - SELECT_PANEL_VIEWPORT_PADDING;\n        var panelHeightTop = Math.abs(this._offsetY);\n        var totalPanelHeight = Math.min(this.options.length * SELECT_OPTION_HEIGHT, SELECT_PANEL_MAX_HEIGHT);\n        var panelHeightBottom = totalPanelHeight - panelHeightTop - triggerRect.height;\n        if (panelHeightBottom > bottomSpaceAvailable) {\n            this._adjustPanelUp(panelHeightBottom, bottomSpaceAvailable);\n        }\n        else if (panelHeightTop > topSpaceAvailable) {\n            this._adjustPanelDown(panelHeightTop, topSpaceAvailable, maxScroll);\n        }\n        else {\n            this._transformOrigin = this._getOriginBasedOnOption();\n        }\n    };\n    /** Adjusts the overlay panel up to fit in the viewport. */\n    MdSelect.prototype._adjustPanelUp = function (panelHeightBottom, bottomSpaceAvailable) {\n        var distanceBelowViewport = panelHeightBottom - bottomSpaceAvailable;\n        // Scrolls the panel up by the distance it was extending past the boundary, then\n        // adjusts the offset by that amount to move the panel up into the viewport.\n        this._scrollTop -= distanceBelowViewport;\n        this._offsetY -= distanceBelowViewport;\n        this._transformOrigin = this._getOriginBasedOnOption();\n        // If the panel is scrolled to the very top, it won't be able to fit the panel\n        // by scrolling, so set the offset to 0 to allow the fallback position to take\n        // effect.\n        if (this._scrollTop <= 0) {\n            this._scrollTop = 0;\n            this._offsetY = 0;\n            this._transformOrigin = \"50% bottom 0px\";\n        }\n    };\n    /** Adjusts the overlay panel down to fit in the viewport. */\n    MdSelect.prototype._adjustPanelDown = function (panelHeightTop, topSpaceAvailable, maxScroll) {\n        var distanceAboveViewport = panelHeightTop - topSpaceAvailable;\n        // Scrolls the panel down by the distance it was extending past the boundary, then\n        // adjusts the offset by that amount to move the panel down into the viewport.\n        this._scrollTop += distanceAboveViewport;\n        this._offsetY += distanceAboveViewport;\n        this._transformOrigin = this._getOriginBasedOnOption();\n        // If the panel is scrolled to the very bottom, it won't be able to fit the\n        // panel by scrolling, so set the offset to 0 to allow the fallback position\n        // to take effect.\n        if (this._scrollTop >= maxScroll) {\n            this._scrollTop = maxScroll;\n            this._offsetY = 0;\n            this._transformOrigin = \"50% top 0px\";\n            return;\n        }\n    };\n    /** Sets the transform origin point based on the selected option. */\n    MdSelect.prototype._getOriginBasedOnOption = function () {\n        var originY = Math.abs(this._offsetY) - SELECT_OPTION_HEIGHT_ADJUSTMENT + SELECT_OPTION_HEIGHT / 2;\n        return \"50% \" + originY + \"px 0px\";\n    };\n    __decorate$30([\n        _angular_core.ViewChild('trigger'), \n        __metadata$30('design:type', _angular_core.ElementRef)\n    ], MdSelect.prototype, \"trigger\", void 0);\n    __decorate$30([\n        _angular_core.ViewChild(ConnectedOverlayDirective), \n        __metadata$30('design:type', ConnectedOverlayDirective)\n    ], MdSelect.prototype, \"overlayDir\", void 0);\n    __decorate$30([\n        _angular_core.ContentChildren(MdOption), \n        __metadata$30('design:type', _angular_core.QueryList)\n    ], MdSelect.prototype, \"options\", void 0);\n    __decorate$30([\n        _angular_core.Input(), \n        __metadata$30('design:type', Object)\n    ], MdSelect.prototype, \"placeholder\", null);\n    __decorate$30([\n        _angular_core.Input(), \n        __metadata$30('design:type', Object)\n    ], MdSelect.prototype, \"disabled\", null);\n    __decorate$30([\n        _angular_core.Input(), \n        __metadata$30('design:type', Object)\n    ], MdSelect.prototype, \"required\", null);\n    __decorate$30([\n        _angular_core.Output(), \n        __metadata$30('design:type', Object)\n    ], MdSelect.prototype, \"onOpen\", void 0);\n    __decorate$30([\n        _angular_core.Output(), \n        __metadata$30('design:type', Object)\n    ], MdSelect.prototype, \"onClose\", void 0);\n    MdSelect = __decorate$30([\n        _angular_core.Component({selector: 'md-select, mat-select',\n            template: \"<div class=\\\"md-select-trigger\\\" cdk-overlay-origin (click)=\\\"toggle()\\\" #origin=\\\"cdkOverlayOrigin\\\" #trigger><span class=\\\"md-select-placeholder\\\" [class.md-floating-placeholder]=\\\"this.selected\\\" [@transformPlaceholder]=\\\"_placeholderState\\\" [style.width.px]=\\\"_selectedValueWidth\\\">{{ placeholder }} </span><span class=\\\"md-select-value\\\" *ngIf=\\\"selected\\\">{{ selected?.viewValue }} </span><span class=\\\"md-select-arrow\\\"></span></div><template cdk-connected-overlay [origin]=\\\"origin\\\" [open]=\\\"panelOpen\\\" hasBackdrop (backdropClick)=\\\"close()\\\" backdropClass=\\\"cdk-overlay-transparent-backdrop\\\" [positions]=\\\"_positions\\\" [minWidth]=\\\"_triggerWidth\\\" [offsetY]=\\\"_offsetY\\\" [offsetX]=\\\"_offsetX\\\" (attach)=\\\"_setScrollTop()\\\"><div class=\\\"md-select-panel\\\" [@transformPanel]=\\\"'showing'\\\" (@transformPanel.done)=\\\"_onPanelDone()\\\" (keydown)=\\\"_keyManager.onKeydown($event)\\\" [style.transformOrigin]=\\\"_transformOrigin\\\"><div class=\\\"md-select-content\\\" [@fadeInContent]=\\\"'showing'\\\"><ng-content></ng-content></div></div></template>\",\n            styles: [\".md-select-value,md-option{white-space:nowrap;text-overflow:ellipsis}md-select{display:inline-block;outline:0}.md-select-trigger{display:flex;justify-content:space-between;align-items:center;height:30px;min-width:112px;cursor:pointer;position:relative;box-sizing:border-box}[aria-disabled=true] .md-select-trigger{background-image:linear-gradient(to right,rgba(0,0,0,.26) 0,rgba(0,0,0,.26) 33%,transparent 0);background-size:4px 1px;background-repeat:repeat-x;border-bottom:transparent;background-position:0 bottom;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.md-select-placeholder{position:relative;padding:0 2px;transform-origin:left top}.md-select-placeholder.md-floating-placeholder{top:-22px;left:-2px;transform:scale(.75)}[dir=rtl] .md-select-placeholder{transform-origin:right top}[dir=rtl] .md-select-placeholder.md-floating-placeholder{left:2px}[aria-required=true] .md-select-placeholder::after{content:'*'}.md-select-value{position:absolute;overflow-x:hidden;left:0;top:6px}[dir=rtl] .md-select-value{left:auto;right:0}.md-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.md-select-panel{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px}@media screen and (-ms-high-contrast:active){.md-select-panel{outline:solid 1px}.md-option-ripple{opacity:.5}}md-option{overflow-x:hidden;display:flex;flex-direction:row;align-items:center;height:48px;padding:0 16px;font-size:16px;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;text-align:start;text-decoration:none;position:relative;cursor:pointer;outline:0}md-option[disabled]{cursor:default}md-option md-icon{margin-right:16px}[dir=rtl] md-option md-icon{margin-left:16px}md-option[aria-disabled=true]{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.md-option-ripple{position:absolute;top:0;left:0;bottom:0;right:0}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n            host: {\n                'role': 'listbox',\n                '[attr.tabindex]': '_getTabIndex()',\n                '[attr.aria-label]': 'placeholder',\n                '[attr.aria-required]': 'required.toString()',\n                '[attr.aria-disabled]': 'disabled.toString()',\n                '[attr.aria-invalid]': '_control?.invalid || \"false\"',\n                '[attr.aria-owns]': '_optionIds',\n                '[class.md-select-disabled]': 'disabled',\n                '(keydown)': '_handleKeydown($event)',\n                '(blur)': '_onBlur()'\n            },\n            animations: [\n                transformPlaceholder,\n                transformPanel,\n                fadeInContent\n            ],\n            exportAs: 'mdSelect',\n        }),\n        __param$6(3, _angular_core.Optional()),\n        __param$6(4, _angular_core.Optional()), \n        __metadata$30('design:paramtypes', [_angular_core.ElementRef, _angular_core.Renderer, ViewportRuler, Dir, _angular_forms.NgControl])\n    ], MdSelect);\n    return MdSelect;\n}());\n/** Clamps a value n between min and max values. */\nfunction clampValue(min, n, max) {\n    return Math.min(Math.max(min, n), max);\n}\n\nvar __decorate$29 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$29 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MdSelectModule = (function () {\n    function MdSelectModule() {\n    }\n    MdSelectModule.forRoot = function () {\n        return {\n            ngModule: MdSelectModule,\n            providers: [OVERLAY_PROVIDERS]\n        };\n    };\n    MdSelectModule = __decorate$29([\n        _angular_core.NgModule({\n            imports: [_angular_common.CommonModule, OverlayModule, MdRippleModule, DefaultStyleCompatibilityModeModule],\n            exports: [MdSelect, MdOption, DefaultStyleCompatibilityModeModule],\n            declarations: [MdSelect, MdOption],\n        }), \n        __metadata$29('design:paramtypes', [])\n    ], MdSelectModule);\n    return MdSelectModule;\n}());\n\nvar __decorate$32 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$32 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MD_SLIDE_TOGGLE_VALUE_ACCESSOR = {\n    provide: _angular_forms.NG_VALUE_ACCESSOR,\n    useExisting: _angular_core.forwardRef(function () { return MdSlideToggle; }),\n    multi: true\n};\n// A simple change event emitted by the MdSlideToggle component.\nvar MdSlideToggleChange = (function () {\n    function MdSlideToggleChange() {\n    }\n    return MdSlideToggleChange;\n}());\n// Increasing integer for generating unique ids for slide-toggle components.\nvar nextId$1 = 0;\n/**\n * Two-state control, which can be also called `switch`.\n */\nvar MdSlideToggle = (function () {\n    function MdSlideToggle(_elementRef, _renderer) {\n        this._elementRef = _elementRef;\n        this._renderer = _renderer;\n        this.onChange = function (_) { };\n        this.onTouched = function () { };\n        // A unique id for the slide-toggle. By default the id is auto-generated.\n        this._uniqueId = \"md-slide-toggle-\" + ++nextId$1;\n        this._checked = false;\n        this._isMousedown = false;\n        this._slideRenderer = null;\n        this._disabled = false;\n        this._required = false;\n        // Needs to be public to support AOT compilation (as host binding).\n        this._hasFocus = false;\n        /** Name value will be applied to the input element if present */\n        this.name = null;\n        /** A unique id for the slide-toggle input. If none is supplied, it will be auto-generated. */\n        this.id = this._uniqueId;\n        /** Used to specify the tabIndex value for the underlying input element. */\n        this.tabIndex = 0;\n        /** Used to set the aria-label attribute on the underlying input element. */\n        this.ariaLabel = null;\n        /** Used to set the aria-labelledby attribute on the underlying input element. */\n        this.ariaLabelledby = null;\n        this._change = new _angular_core.EventEmitter();\n        /** An event will be dispatched each time the slide-toggle changes its value. */\n        this.change = this._change.asObservable();\n    }\n    Object.defineProperty(MdSlideToggle.prototype, \"disabled\", {\n        /** Whether the slide-toggle is disabled. */\n        get: function () { return this._disabled; },\n        set: function (value) { this._disabled = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlideToggle.prototype, \"required\", {\n        /** Whether the slide-toggle is required. */\n        get: function () { return this._required; },\n        set: function (value) { this._required = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlideToggle.prototype, \"inputId\", {\n        /** Returns the unique id for the visual hidden input. */\n        get: function () { return (this.id || this._uniqueId) + \"-input\"; },\n        enumerable: true,\n        configurable: true\n    });\n    MdSlideToggle.prototype.ngAfterContentInit = function () {\n        this._slideRenderer = new SlideToggleRenderer(this._elementRef);\n    };\n    /**\n     * The onChangeEvent method will be also called on click.\n     * This is because everything for the slide-toggle is wrapped inside of a label,\n     * which triggers a onChange event on click.\n     */\n    MdSlideToggle.prototype._onChangeEvent = function (event) {\n        // We always have to stop propagation on the change event.\n        // Otherwise the change event, from the input element, will bubble up and\n        // emit its event object to the component's `change` output.\n        event.stopPropagation();\n        // Once a drag is currently in progress, we do not want to toggle the slide-toggle on a click.\n        if (!this.disabled && !this._slideRenderer.isDragging()) {\n            this.toggle();\n            // Emit our custom change event if the native input emitted one.\n            // It is important to only emit it, if the native input triggered one, because\n            // we don't want to trigger a change event, when the `checked` variable changes for example.\n            this._emitChangeEvent();\n        }\n    };\n    MdSlideToggle.prototype._onInputClick = function (event) {\n        this.onTouched();\n        // We have to stop propagation for click events on the visual hidden input element.\n        // By default, when a user clicks on a label element, a generated click event will be\n        // dispatched on the associated input element. Since we are using a label element as our\n        // root container, the click event on the `slide-toggle` will be executed twice.\n        // The real click event will bubble up, and the generated click event also tries to bubble up.\n        // This will lead to multiple click events.\n        // Preventing bubbling for the second event will solve that issue.\n        event.stopPropagation();\n    };\n    MdSlideToggle.prototype._setMousedown = function () {\n        var _this = this;\n        // We only *show* the focus style when focus has come to the button via the keyboard.\n        // The Material Design spec is silent on this topic, and without doing this, the\n        // button continues to look :active after clicking.\n        // @see http://marcysutton.com/button-focus-hell/\n        this._isMousedown = true;\n        setTimeout(function () { return _this._isMousedown = false; }, 100);\n    };\n    MdSlideToggle.prototype._onInputFocus = function () {\n        // Only show the focus / ripple indicator when the focus was not triggered by a mouse\n        // interaction on the component.\n        if (!this._isMousedown) {\n            this._hasFocus = true;\n        }\n    };\n    MdSlideToggle.prototype._onInputBlur = function () {\n        this._hasFocus = false;\n        this.onTouched();\n    };\n    /** Implemented as part of ControlValueAccessor. */\n    MdSlideToggle.prototype.writeValue = function (value) {\n        this.checked = value;\n    };\n    /** Implemented as part of ControlValueAccessor. */\n    MdSlideToggle.prototype.registerOnChange = function (fn) {\n        this.onChange = fn;\n    };\n    /** Implemented as part of ControlValueAccessor. */\n    MdSlideToggle.prototype.registerOnTouched = function (fn) {\n        this.onTouched = fn;\n    };\n    /** Implemented as a part of ControlValueAccessor. */\n    MdSlideToggle.prototype.setDisabledState = function (isDisabled) {\n        this.disabled = isDisabled;\n    };\n    /** Focuses the slide-toggle. */\n    MdSlideToggle.prototype.focus = function () {\n        this._renderer.invokeElementMethod(this._inputElement.nativeElement, 'focus');\n        this._onInputFocus();\n    };\n    Object.defineProperty(MdSlideToggle.prototype, \"checked\", {\n        /** Whether the slide-toggle is checked. */\n        get: function () { return !!this._checked; },\n        set: function (value) {\n            if (this.checked !== !!value) {\n                this._checked = value;\n                this.onChange(this._checked);\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlideToggle.prototype, \"color\", {\n        /** The color of the slide-toggle. Can be primary, accent, or warn. */\n        get: function () { return this._color; },\n        set: function (value) {\n            this._updateColor(value);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /** Toggles the checked state of the slide-toggle. */\n    MdSlideToggle.prototype.toggle = function () {\n        this.checked = !this.checked;\n    };\n    MdSlideToggle.prototype._updateColor = function (newColor) {\n        this._setElementColor(this._color, false);\n        this._setElementColor(newColor, true);\n        this._color = newColor;\n    };\n    MdSlideToggle.prototype._setElementColor = function (color, isAdd) {\n        if (color != null && color != '') {\n            this._renderer.setElementClass(this._elementRef.nativeElement, \"md-\" + color, isAdd);\n        }\n    };\n    /** Emits the change event to the `change` output EventEmitter */\n    MdSlideToggle.prototype._emitChangeEvent = function () {\n        var event = new MdSlideToggleChange();\n        event.source = this;\n        event.checked = this.checked;\n        this._change.emit(event);\n    };\n    MdSlideToggle.prototype._onDragStart = function () {\n        if (!this.disabled) {\n            this._slideRenderer.startThumbDrag(this.checked);\n        }\n    };\n    MdSlideToggle.prototype._onDrag = function (event) {\n        if (this._slideRenderer.isDragging()) {\n            this._slideRenderer.updateThumbPosition(event.deltaX);\n        }\n    };\n    MdSlideToggle.prototype._onDragEnd = function () {\n        var _this = this;\n        if (!this._slideRenderer.isDragging()) {\n            return;\n        }\n        // Notice that we have to stop outside of the current event handler,\n        // because otherwise the click event will be fired and will reset the new checked variable.\n        setTimeout(function () {\n            _this.checked = _this._slideRenderer.stopThumbDrag();\n            _this._emitChangeEvent();\n        }, 0);\n    };\n    __decorate$32([\n        _angular_core.Input(), \n        __metadata$32('design:type', String)\n    ], MdSlideToggle.prototype, \"name\", void 0);\n    __decorate$32([\n        _angular_core.Input(), \n        __metadata$32('design:type', String)\n    ], MdSlideToggle.prototype, \"id\", void 0);\n    __decorate$32([\n        _angular_core.Input(), \n        __metadata$32('design:type', Number)\n    ], MdSlideToggle.prototype, \"tabIndex\", void 0);\n    __decorate$32([\n        _angular_core.Input(), \n        __metadata$32('design:type', String)\n    ], MdSlideToggle.prototype, \"ariaLabel\", void 0);\n    __decorate$32([\n        _angular_core.Input(), \n        __metadata$32('design:type', String)\n    ], MdSlideToggle.prototype, \"ariaLabelledby\", void 0);\n    __decorate$32([\n        _angular_core.Input(), \n        __metadata$32('design:type', Boolean)\n    ], MdSlideToggle.prototype, \"disabled\", null);\n    __decorate$32([\n        _angular_core.Input(), \n        __metadata$32('design:type', Boolean)\n    ], MdSlideToggle.prototype, \"required\", null);\n    __decorate$32([\n        _angular_core.Output(), \n        __metadata$32('design:type', rxjs_Observable.Observable)\n    ], MdSlideToggle.prototype, \"change\", void 0);\n    __decorate$32([\n        _angular_core.ViewChild('input'), \n        __metadata$32('design:type', _angular_core.ElementRef)\n    ], MdSlideToggle.prototype, \"_inputElement\", void 0);\n    __decorate$32([\n        _angular_core.Input(), \n        __metadata$32('design:type', Object)\n    ], MdSlideToggle.prototype, \"checked\", null);\n    __decorate$32([\n        _angular_core.Input(), \n        __metadata$32('design:type', String)\n    ], MdSlideToggle.prototype, \"color\", null);\n    MdSlideToggle = __decorate$32([\n        _angular_core.Component({selector: 'md-slide-toggle, mat-slide-toggle',\n            host: {\n                '[class.md-checked]': 'checked',\n                '[class.md-disabled]': 'disabled',\n                // This md-slide-toggle prefix will change, once the temporary ripple is removed.\n                '[class.md-slide-toggle-focused]': '_hasFocus',\n                '(mousedown)': '_setMousedown()'\n            },\n            template: \"<label class=\\\"md-slide-toggle-label\\\"><div class=\\\"md-slide-toggle-container\\\"><div class=\\\"md-slide-toggle-bar\\\"></div><div class=\\\"md-slide-toggle-thumb-container\\\" (slidestart)=\\\"_onDragStart()\\\" (slide)=\\\"_onDrag($event)\\\" (slideend)=\\\"_onDragEnd()\\\"><div class=\\\"md-slide-toggle-thumb\\\"><div class=\\\"md-ink-ripple\\\"></div></div></div><input #input class=\\\"md-slide-toggle-input cdk-visually-hidden\\\" type=\\\"checkbox\\\" [id]=\\\"inputId\\\" [required]=\\\"required\\\" [tabIndex]=\\\"tabIndex\\\" [checked]=\\\"checked\\\" [disabled]=\\\"disabled\\\" [attr.name]=\\\"name\\\" [attr.aria-label]=\\\"ariaLabel\\\" [attr.aria-labelledby]=\\\"ariaLabelledby\\\" (blur)=\\\"_onInputBlur()\\\" (focus)=\\\"_onInputFocus()\\\" (change)=\\\"_onChangeEvent($event)\\\" (click)=\\\"_onInputClick($event)\\\"></div><span class=\\\"md-slide-toggle-content\\\"><ng-content></ng-content></span></label>\",\n            styles: [\"md-slide-toggle{display:flex;height:24px;margin:16px 0;line-height:24px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}md-slide-toggle.md-checked .md-slide-toggle-thumb-container{transform:translate3d(100%,0,0)}md-slide-toggle .md-ink-ripple{border-radius:50%;opacity:0;height:48px;left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity ease 280ms,background-color ease 280ms;width:48px}md-slide-toggle.md-slide-toggle-focused .md-ink-ripple{opacity:1}md-slide-toggle.md-slide-toggle-disabled .md-ink-ripple{background-color:#000}md-slide-toggle.md-disabled .md-slide-toggle-container,md-slide-toggle.md-disabled .md-slide-toggle-label{cursor:default}.md-slide-toggle-content{font-size:14px;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;font-weight:500}.md-slide-toggle-label{display:flex;flex:1;cursor:pointer}.md-slide-toggle-container{cursor:-webkit-grab;cursor:grab;width:36px;height:24px;position:relative;margin-right:8px}[dir=rtl] .md-slide-toggle-container{margin-left:8px;margin-right:0}.md-slide-toggle-thumb-container{position:absolute;top:2px;left:0;z-index:1;width:16px;transform:translate3d(0,0,0);transition:all 80ms linear;transition-property:transform}.md-slide-toggle-thumb-container.md-dragging{transition-duration:0s}.md-slide-toggle-thumb{position:absolute;margin:0;left:0;top:0;height:20px;width:20px;border-radius:50%;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}@media screen and (-ms-high-contrast:active){.md-slide-toggle-thumb{background:#fff;border:1px solid #000}.md-slide-toggle-bar{background:#fff}}.md-slide-toggle-bar{position:absolute;left:1px;top:5px;width:34px;height:14px;border-radius:8px}.md-slide-toggle-input{bottom:0;left:10px}.md-slide-toggle-bar,.md-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}\"],\n            providers: [MD_SLIDE_TOGGLE_VALUE_ACCESSOR],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n            changeDetection: _angular_core.ChangeDetectionStrategy.OnPush\n        }), \n        __metadata$32('design:paramtypes', [_angular_core.ElementRef, _angular_core.Renderer])\n    ], MdSlideToggle);\n    return MdSlideToggle;\n}());\n/**\n * Renderer for the Slide Toggle component, which separates DOM modification in its own class\n */\nvar SlideToggleRenderer = (function () {\n    function SlideToggleRenderer(_elementRef) {\n        this._elementRef = _elementRef;\n        this._thumbEl = _elementRef.nativeElement.querySelector('.md-slide-toggle-thumb-container');\n        this._thumbBarEl = _elementRef.nativeElement.querySelector('.md-slide-toggle-bar');\n    }\n    /** Whether the slide-toggle is currently dragging. */\n    SlideToggleRenderer.prototype.isDragging = function () {\n        return !!this._thumbBarWidth;\n    };\n    /** Initializes the drag of the slide-toggle. */\n    SlideToggleRenderer.prototype.startThumbDrag = function (checked) {\n        if (!this.isDragging()) {\n            this._thumbBarWidth = this._thumbBarEl.clientWidth - this._thumbEl.clientWidth;\n            this._checked = checked;\n            this._thumbEl.classList.add('md-dragging');\n        }\n    };\n    /** Stops the current drag and returns the new checked value. */\n    SlideToggleRenderer.prototype.stopThumbDrag = function () {\n        if (this.isDragging()) {\n            this._thumbBarWidth = null;\n            this._thumbEl.classList.remove('md-dragging');\n            applyCssTransform(this._thumbEl, '');\n            return this._percentage > 50;\n        }\n    };\n    /** Updates the thumb containers position from the specified distance. */\n    SlideToggleRenderer.prototype.updateThumbPosition = function (distance) {\n        this._percentage = this._getThumbPercentage(distance);\n        applyCssTransform(this._thumbEl, \"translate3d(\" + this._percentage + \"%, 0, 0)\");\n    };\n    /** Retrieves the percentage of thumb from the moved distance. */\n    SlideToggleRenderer.prototype._getThumbPercentage = function (distance) {\n        var percentage = (distance / this._thumbBarWidth) * 100;\n        // When the toggle was initially checked, then we have to start the drag at the end.\n        if (this._checked) {\n            percentage += 100;\n        }\n        return Math.max(0, Math.min(percentage, 100));\n    };\n    return SlideToggleRenderer;\n}());\nvar MdSlideToggleModule = (function () {\n    function MdSlideToggleModule() {\n    }\n    MdSlideToggleModule.forRoot = function () {\n        return {\n            ngModule: MdSlideToggleModule,\n            providers: [{ provide: _angular_platformBrowser.HAMMER_GESTURE_CONFIG, useClass: GestureConfig }]\n        };\n    };\n    MdSlideToggleModule = __decorate$32([\n        _angular_core.NgModule({\n            imports: [_angular_forms.FormsModule, DefaultStyleCompatibilityModeModule],\n            exports: [MdSlideToggle, DefaultStyleCompatibilityModeModule],\n            declarations: [MdSlideToggle],\n        }), \n        __metadata$32('design:paramtypes', [])\n    ], MdSlideToggleModule);\n    return MdSlideToggleModule;\n}());\n\nvar __decorate$33 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$33 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$7 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n/**\n * Visually, a 30px separation between tick marks looks best. This is very subjective but it is\n * the default separation we chose.\n */\nvar MIN_AUTO_TICK_SEPARATION = 30;\n/**\n * Provider Expression that allows md-slider to register as a ControlValueAccessor.\n * This allows it to support [(ngModel)] and [formControl].\n */\nvar MD_SLIDER_VALUE_ACCESSOR = {\n    provide: _angular_forms.NG_VALUE_ACCESSOR,\n    useExisting: _angular_core.forwardRef(function () { return MdSlider; }),\n    multi: true\n};\n/** A simple change event emitted by the MdSlider component. */\nvar MdSliderChange = (function () {\n    function MdSliderChange() {\n    }\n    return MdSliderChange;\n}());\n/**\n * Allows users to select from a range of values by moving the slider thumb. It is similar in\n * behavior to the native `<input type=\"range\">` element.\n */\nvar MdSlider = (function () {\n    function MdSlider(_dir, elementRef) {\n        this._dir = _dir;\n        /** A renderer to handle updating the slider's thumb and fill track. */\n        this._renderer = null;\n        /** The dimensions of the slider. */\n        this._sliderDimensions = null;\n        this._disabled = false;\n        this._thumbLabel = false;\n        this._controlValueAccessorChangeFn = function () { };\n        /** The last value for which a change event was emitted. */\n        this._lastEmittedValue = null;\n        /** onTouch function registered via registerOnTouch (ControlValueAccessor). */\n        this.onTouched = function () { };\n        /**\n         * Whether or not the thumb is sliding.\n         * Used to determine if there should be a transition for the thumb and fill track.\n         */\n        this._isSliding = false;\n        /**\n         * Whether or not the slider is active (clicked or sliding).\n         * Used to shrink and grow the thumb as according to the Material Design spec.\n         */\n        this._isActive = false;\n        this._step = 1;\n        this._tickInterval = 0;\n        this._tickIntervalPercent = 0;\n        this._percent = 0;\n        this._value = null;\n        this._min = 0;\n        this._max = 100;\n        this._invert = false;\n        this._vertical = false;\n        /** Event emitted when the slider value has changed. */\n        this.change = new _angular_core.EventEmitter();\n        this._renderer = new SliderRenderer(elementRef);\n    }\n    Object.defineProperty(MdSlider.prototype, \"disabled\", {\n        /** Whether or not the slider is disabled. */\n        get: function () { return this._disabled; },\n        set: function (value) { this._disabled = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"thumbLabel\", {\n        /** Whether or not to show the thumb label. */\n        get: function () { return this._thumbLabel; },\n        set: function (value) { this._thumbLabel = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"_thumbLabelDeprecated\", {\n        /** @deprecated */\n        get: function () { return this._thumbLabel; },\n        set: function (value) { this._thumbLabel = value; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"step\", {\n        /** The values at which the thumb will snap. */\n        get: function () { return this._step; },\n        set: function (v) { this._step = coerceNumberProperty(v, this._step); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"tickInterval\", {\n        /**\n         * How often to show ticks. Relative to the step so that a tick always appears on a step.\n         * Ex: Tick interval of 4 with a step of 3 will draw a tick every 4 steps (every 12 values).\n         */\n        get: function () { return this._tickInterval; },\n        set: function (v) {\n            this._tickInterval = (v == 'auto') ? v : coerceNumberProperty(v, this._tickInterval);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"_tickIntervalDeprecated\", {\n        /** @deprecated */\n        get: function () { return this.tickInterval; },\n        set: function (v) { this.tickInterval = v; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"tickIntervalPercent\", {\n        /** The size of a tick interval as a percentage of the size of the track. */\n        get: function () { return this._tickIntervalPercent; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"percent\", {\n        /** The percentage of the slider that coincides with the value. */\n        get: function () { return this._clamp(this._percent); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"value\", {\n        /** Value of the slider. */\n        get: function () {\n            // If the value needs to be read and it is still uninitialized, initialize it to the min.\n            if (this._value === null) {\n                this.value = this._min;\n            }\n            return this._value;\n        },\n        set: function (v) {\n            this._value = coerceNumberProperty(v, this._value);\n            this._percent = this._calculatePercentage(this._value);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"min\", {\n        /** The miniumum value that the slider can have. */\n        get: function () {\n            return this._min;\n        },\n        set: function (v) {\n            this._min = coerceNumberProperty(v, this._min);\n            // If the value wasn't explicitly set by the user, set it to the min.\n            if (this._value === null) {\n                this.value = this._min;\n            }\n            this._percent = this._calculatePercentage(this.value);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"max\", {\n        /** The maximum value that the slider can have. */\n        get: function () {\n            return this._max;\n        },\n        set: function (v) {\n            this._max = coerceNumberProperty(v, this._max);\n            this._percent = this._calculatePercentage(this.value);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"invert\", {\n        /** Whether the slider is inverted. */\n        get: function () { return this._invert; },\n        set: function (value) { this._invert = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"vertical\", {\n        /** Whether the slider is vertical. */\n        get: function () { return this._vertical; },\n        set: function (value) { this._vertical = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"invertAxis\", {\n        /**\n         * Whether the axis of the slider is inverted.\n         * (i.e. whether moving the thumb in the positive x or y direction decreases the slider's value).\n         */\n        get: function () {\n            // Standard non-inverted mode for a vertical slider should be dragging the thumb from bottom to\n            // top. However from a y-axis standpoint this is inverted.\n            return this.vertical ? !this.invert : this.invert;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"invertMouseCoords\", {\n        /**\n         * Whether mouse events should be converted to a slider position by calculating their distance\n         * from the right or bottom edge of the slider as opposed to the top or left.\n         */\n        get: function () {\n            return (this.direction == 'rtl' && !this.vertical) ? !this.invertAxis : this.invertAxis;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"trackFillStyles\", {\n        /** CSS styles for the track fill element. */\n        get: function () {\n            var axis = this.vertical ? 'Y' : 'X';\n            return {\n                'transform': \"scale\" + axis + \"(\" + this.percent + \")\"\n            };\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"ticksContainerStyles\", {\n        /** CSS styles for the ticks container element. */\n        get: function () {\n            var axis = this.vertical ? 'Y' : 'X';\n            // For a horizontal slider in RTL languages we push the ticks container off the left edge\n            // instead of the right edge to avoid causing a horizontal scrollbar to appear.\n            var sign = !this.vertical && this.direction == 'rtl' ? '' : '-';\n            var offset = this.tickIntervalPercent / 2 * 100;\n            return {\n                'transform': \"translate\" + axis + \"(\" + sign + offset + \"%)\"\n            };\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"ticksStyles\", {\n        /** CSS styles for the ticks element. */\n        get: function () {\n            var tickSize = this.tickIntervalPercent * 100;\n            var backgroundSize = this.vertical ? \"2px \" + tickSize + \"%\" : tickSize + \"% 2px\";\n            var axis = this.vertical ? 'Y' : 'X';\n            // Depending on the direction we pushed the ticks container, push the ticks the opposite\n            // direction to re-center them but clip off the end edge. In RTL languages we need to flip the\n            // ticks 180 degrees so we're really cutting off the end edge abd not the start.\n            var sign = !this.vertical && this.direction == 'rtl' ? '-' : '';\n            var rotate = !this.vertical && this.direction == 'rtl' ? ' rotate(180deg)' : '';\n            return {\n                'backgroundSize': backgroundSize,\n                // Without translateZ ticks sometimes jitter as the slider moves on Chrome & Firefox.\n                'transform': \"translateZ(0) translate\" + axis + \"(\" + sign + tickSize / 2 + \"%)\" + rotate\n            };\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"thumbContainerStyles\", {\n        get: function () {\n            var axis = this.vertical ? 'Y' : 'X';\n            // For a horizontal slider in RTL languages we push the thumb container off the left edge\n            // instead of the right edge to avoid causing a horizontal scrollbar to appear.\n            var invertOffset = (this.direction == 'rtl' && !this.vertical) ? !this.invertAxis : this.invertAxis;\n            var offset = (invertOffset ? this.percent : 1 - this.percent) * 100;\n            return {\n                'transform': \"translate\" + axis + \"(-\" + offset + \"%)\"\n            };\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSlider.prototype, \"direction\", {\n        /** The language direction for this slider element. */\n        get: function () {\n            return (this._dir && this._dir.value == 'rtl') ? 'rtl' : 'ltr';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdSlider.prototype._onMouseenter = function () {\n        if (this.disabled) {\n            return;\n        }\n        // We save the dimensions of the slider here so we can use them to update the spacing of the\n        // ticks and determine where on the slider click and slide events happen.\n        this._sliderDimensions = this._renderer.getSliderDimensions();\n        this._updateTickIntervalPercent();\n    };\n    MdSlider.prototype._onClick = function (event) {\n        if (this.disabled) {\n            return;\n        }\n        this._isActive = true;\n        this._isSliding = false;\n        this._renderer.addFocus();\n        this._updateValueFromPosition({ x: event.clientX, y: event.clientY });\n        this._emitValueIfChanged();\n    };\n    MdSlider.prototype._onSlide = function (event) {\n        if (this.disabled) {\n            return;\n        }\n        // Prevent the slide from selecting anything else.\n        event.preventDefault();\n        this._updateValueFromPosition({ x: event.center.x, y: event.center.y });\n    };\n    MdSlider.prototype._onSlideStart = function (event) {\n        if (this.disabled) {\n            return;\n        }\n        // Simulate mouseenter in case this is a mobile device.\n        this._onMouseenter();\n        event.preventDefault();\n        this._isSliding = true;\n        this._isActive = true;\n        this._renderer.addFocus();\n        this._updateValueFromPosition({ x: event.center.x, y: event.center.y });\n    };\n    MdSlider.prototype._onSlideEnd = function () {\n        this._isSliding = false;\n        this._emitValueIfChanged();\n    };\n    MdSlider.prototype._onBlur = function () {\n        this._isActive = false;\n        this.onTouched();\n    };\n    MdSlider.prototype._onKeydown = function (event) {\n        if (this.disabled) {\n            return;\n        }\n        switch (event.keyCode) {\n            case PAGE_UP:\n                this._increment(10);\n                break;\n            case PAGE_DOWN:\n                this._increment(-10);\n                break;\n            case END:\n                this.value = this.max;\n                break;\n            case HOME:\n                this.value = this.min;\n                break;\n            case LEFT_ARROW:\n                // NOTE: For a sighted user it would make more sense that when they press an arrow key on an\n                // inverted slider the thumb moves in that direction. However for a blind user, nothing\n                // about the slider indicates that it is inverted. They will expect left to be decrement,\n                // regardless of how it appears on the screen. For speakers ofRTL languages, they probably\n                // expect left to mean increment. Therefore we flip the meaning of the side arrow keys for\n                // RTL. For inverted sliders we prefer a good a11y experience to having it \"look right\" for\n                // sighted users, therefore we do not swap the meaning.\n                this._increment(this.direction == 'rtl' ? 1 : -1);\n                break;\n            case UP_ARROW:\n                this._increment(1);\n                break;\n            case RIGHT_ARROW:\n                // See comment on LEFT_ARROW about the conditions under which we flip the meaning.\n                this._increment(this.direction == 'rtl' ? -1 : 1);\n                break;\n            case DOWN_ARROW:\n                this._increment(-1);\n                break;\n            default:\n                // Return if the key is not one that we explicitly handle to avoid calling preventDefault on\n                // it.\n                return;\n        }\n        event.preventDefault();\n    };\n    /** Increments the slider by the given number of steps (negative number decrements). */\n    MdSlider.prototype._increment = function (numSteps) {\n        this.value = this._clamp(this.value + this.step * numSteps, this.min, this.max);\n    };\n    /** Calculate the new value from the new physical location. The value will always be snapped. */\n    MdSlider.prototype._updateValueFromPosition = function (pos) {\n        if (!this._sliderDimensions) {\n            return;\n        }\n        var offset = this.vertical ? this._sliderDimensions.top : this._sliderDimensions.left;\n        var size = this.vertical ? this._sliderDimensions.height : this._sliderDimensions.width;\n        var posComponent = this.vertical ? pos.y : pos.x;\n        // The exact value is calculated from the event and used to find the closest snap value.\n        var percent = this._clamp((posComponent - offset) / size);\n        if (this.invertMouseCoords) {\n            percent = 1 - percent;\n        }\n        var exactValue = this._calculateValue(percent);\n        // This calculation finds the closest step by finding the closest whole number divisible by the\n        // step relative to the min.\n        var closestValue = Math.round((exactValue - this.min) / this.step) * this.step + this.min;\n        // The value needs to snap to the min and max.\n        this.value = this._clamp(closestValue, this.min, this.max);\n    };\n    /** Emits a change event if the current value is different from the last emitted value. */\n    MdSlider.prototype._emitValueIfChanged = function () {\n        if (this.value != this._lastEmittedValue) {\n            var event_1 = new MdSliderChange();\n            event_1.source = this;\n            event_1.value = this.value;\n            this._lastEmittedValue = this.value;\n            this._controlValueAccessorChangeFn(this.value);\n            this.change.emit(event_1);\n        }\n    };\n    /** Updates the amount of space between ticks as a percentage of the width of the slider. */\n    MdSlider.prototype._updateTickIntervalPercent = function () {\n        if (!this.tickInterval) {\n            return;\n        }\n        if (this.tickInterval == 'auto') {\n            var trackSize = this.vertical ? this._sliderDimensions.height : this._sliderDimensions.width;\n            var pixelsPerStep = trackSize * this.step / (this.max - this.min);\n            var stepsPerTick = Math.ceil(MIN_AUTO_TICK_SEPARATION / pixelsPerStep);\n            var pixelsPerTick = stepsPerTick * this.step;\n            this._tickIntervalPercent = pixelsPerTick / trackSize;\n        }\n        else {\n            this._tickIntervalPercent = this.tickInterval * this.step / (this.max - this.min);\n        }\n    };\n    /** Calculates the percentage of the slider that a value is. */\n    MdSlider.prototype._calculatePercentage = function (value) {\n        return (value - this.min) / (this.max - this.min);\n    };\n    /** Calculates the value a percentage of the slider corresponds to. */\n    MdSlider.prototype._calculateValue = function (percentage) {\n        return this.min + percentage * (this.max - this.min);\n    };\n    /** Return a number between two numbers. */\n    MdSlider.prototype._clamp = function (value, min, max) {\n        if (min === void 0) { min = 0; }\n        if (max === void 0) { max = 1; }\n        return Math.max(min, Math.min(value, max));\n    };\n    /**\n     * Sets the model value. Implemented as part of ControlValueAccessor.\n     * @param value\n     */\n    MdSlider.prototype.writeValue = function (value) {\n        this.value = value;\n    };\n    /**\n     * Registers a callback to eb triggered when the value has changed.\n     * Implemented as part of ControlValueAccessor.\n     * @param fn Callback to be registered.\n     */\n    MdSlider.prototype.registerOnChange = function (fn) {\n        this._controlValueAccessorChangeFn = fn;\n    };\n    /**\n     * Registers a callback to be triggered when the component is touched.\n     * Implemented as part of ControlValueAccessor.\n     * @param fn Callback to be registered.\n     */\n    MdSlider.prototype.registerOnTouched = function (fn) {\n        this.onTouched = fn;\n    };\n    /**\n     * Sets whether the component should be disabled.\n     * Implemented as part of ControlValueAccessor.\n     * @param isDisabled\n     */\n    MdSlider.prototype.setDisabledState = function (isDisabled) {\n        this.disabled = isDisabled;\n    };\n    __decorate$33([\n        _angular_core.Input(), \n        __metadata$33('design:type', Boolean)\n    ], MdSlider.prototype, \"disabled\", null);\n    __decorate$33([\n        _angular_core.Input('thumbLabel'), \n        __metadata$33('design:type', Boolean)\n    ], MdSlider.prototype, \"thumbLabel\", null);\n    __decorate$33([\n        _angular_core.Input('thumb-label'), \n        __metadata$33('design:type', Boolean)\n    ], MdSlider.prototype, \"_thumbLabelDeprecated\", null);\n    __decorate$33([\n        _angular_core.Input(), \n        __metadata$33('design:type', Object)\n    ], MdSlider.prototype, \"step\", null);\n    __decorate$33([\n        _angular_core.Input(), \n        __metadata$33('design:type', Object)\n    ], MdSlider.prototype, \"tickInterval\", null);\n    __decorate$33([\n        _angular_core.Input('tick-interval'), \n        __metadata$33('design:type', Object)\n    ], MdSlider.prototype, \"_tickIntervalDeprecated\", null);\n    __decorate$33([\n        _angular_core.Input(), \n        __metadata$33('design:type', Object)\n    ], MdSlider.prototype, \"value\", null);\n    __decorate$33([\n        _angular_core.Input(), \n        __metadata$33('design:type', Object)\n    ], MdSlider.prototype, \"min\", null);\n    __decorate$33([\n        _angular_core.Input(), \n        __metadata$33('design:type', Object)\n    ], MdSlider.prototype, \"max\", null);\n    __decorate$33([\n        _angular_core.Input(), \n        __metadata$33('design:type', Object)\n    ], MdSlider.prototype, \"invert\", null);\n    __decorate$33([\n        _angular_core.Input(), \n        __metadata$33('design:type', Object)\n    ], MdSlider.prototype, \"vertical\", null);\n    __decorate$33([\n        _angular_core.Output(), \n        __metadata$33('design:type', Object)\n    ], MdSlider.prototype, \"change\", void 0);\n    MdSlider = __decorate$33([\n        _angular_core.Component({selector: 'md-slider, mat-slider',\n            providers: [MD_SLIDER_VALUE_ACCESSOR],\n            host: {\n                '(blur)': '_onBlur()',\n                '(click)': '_onClick($event)',\n                '(keydown)': '_onKeydown($event)',\n                '(mouseenter)': '_onMouseenter()',\n                '(slide)': '_onSlide($event)',\n                '(slideend)': '_onSlideEnd()',\n                '(slidestart)': '_onSlideStart($event)',\n                'role': 'slider',\n                'tabindex': '0',\n                '[attr.aria-disabled]': 'disabled',\n                '[attr.aria-valuemax]': 'max',\n                '[attr.aria-valuemin]': 'min',\n                '[attr.aria-valuenow]': 'value',\n                '[class.md-slider-active]': '_isActive',\n                '[class.md-slider-disabled]': 'disabled',\n                '[class.md-slider-has-ticks]': 'tickInterval',\n                '[class.md-slider-horizontal]': '!vertical',\n                '[class.md-slider-axis-inverted]': 'invertAxis',\n                '[class.md-slider-sliding]': '_isSliding',\n                '[class.md-slider-thumb-label-showing]': 'thumbLabel',\n                '[class.md-slider-vertical]': 'vertical',\n            },\n            template: \"<div class=\\\"md-slider-track\\\"><div class=\\\"md-slider-track-fill\\\" [ngStyle]=\\\"trackFillStyles\\\"></div><div class=\\\"md-slider-ticks-container\\\" [ngStyle]=\\\"ticksContainerStyles\\\"><div class=\\\"md-slider-ticks\\\" [ngStyle]=\\\"ticksStyles\\\"></div></div><div class=\\\"md-slider-thumb-container\\\" [ngStyle]=\\\"thumbContainerStyles\\\"><div class=\\\"md-slider-thumb\\\"></div><div class=\\\"md-slider-thumb-label\\\"><span class=\\\"md-slider-thumb-label-text\\\">{{value}}</span></div></div></div>\",\n            styles: [\"md-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:0;vertical-align:middle}.md-slider-track{position:absolute}.md-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.md-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.md-slider-ticks{opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.md-slider-thumb,.md-slider-thumb-container{transition:transform .4s cubic-bezier(.25,.8,.25,1);position:absolute}.md-slider-thumb-container{z-index:1}.md-slider-thumb{right:-10px;bottom:-10px;width:20px;height:20px;border-radius:50%;transform:scale(.7)}.md-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:.3s cubic-bezier(.35,0,.25,1);transition-property:transform,border-radius}.md-slider-thumb-label-text{z-index:1;font-size:12px;font-weight:700;opacity:0;transition:opacity .3s cubic-bezier(.35,0,.25,1)}.md-slider-sliding .md-slider-thumb-container,.md-slider-sliding .md-slider-track-fill{transition-duration:0s}.md-slider-has-ticks .md-slider-track::after{content:'';position:absolute;border:0 solid rgba(0,0,0,.6);opacity:0;transition:opacity .3s cubic-bezier(.35,0,.25,1)}.md-slider-active .md-slider-thumb-label-text,.md-slider-has-ticks.md-slider-active .md-slider-ticks,.md-slider-has-ticks.md-slider-active .md-slider-track::after,.md-slider-has-ticks:hover .md-slider-ticks,.md-slider-has-ticks:hover .md-slider-track::after{opacity:1}.md-slider-thumb-label-showing .md-slider-thumb-label{display:flex}.md-slider-axis-inverted .md-slider-track-fill{transform-origin:100% 100%}.md-slider-active .md-slider-thumb{transform:scale(1)}.md-slider-active.md-slider-thumb-label-showing .md-slider-thumb{transform:scale(0)}.md-slider-active .md-slider-thumb-label{border-radius:50% 50% 0}.md-slider-horizontal{height:48px;min-width:128px}.md-slider-horizontal .md-slider-track{height:2px;top:23px;left:8px;right:8px}.md-slider-horizontal .md-slider-track::after{height:2px;border-left-width:2px;right:0}.md-slider-horizontal .md-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.md-slider-horizontal .md-slider-ticks-container{height:2px;width:100%}.md-slider-horizontal .md-slider-ticks{background:repeating-linear-gradient(to right,rgba(0,0,0,.6),rgba(0,0,0,.6) 2px,transparent 0,transparent);background:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.6),rgba(0,0,0,.6) 2px,transparent 0,transparent);height:2px;width:100%}.md-slider-horizontal .md-slider-thumb-container{width:100%;height:0;top:50%}.md-slider-horizontal .md-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(.4) rotate(45deg)}.md-slider-horizontal .md-slider-thumb-label-text{transform:rotate(-45deg)}.md-slider-horizontal.md-slider-active .md-slider-thumb-label{transform:rotate(45deg)}.md-slider-vertical{width:48px;min-height:128px}.md-slider-vertical .md-slider-track{width:2px;top:8px;bottom:8px;left:23px}.md-slider-vertical .md-slider-track::after{width:2px;border-top-width:2px;bottom:0}.md-slider-vertical .md-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.md-slider-vertical .md-slider-ticks-container{width:2px;height:100%}.md-slider-vertical .md-slider-ticks{background:repeating-linear-gradient(to bottom,rgba(0,0,0,.6),rgba(0,0,0,.6) 2px,transparent 0,transparent);width:2px;height:100%}.md-slider-vertical .md-slider-thumb-container{height:100%;width:0;left:50%}.md-slider-vertical .md-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(.4) rotate(-45deg)}.md-slider-vertical .md-slider-thumb-label-text{transform:rotate(45deg)}.md-slider-vertical.md-slider-active .md-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .md-slider-track::after{left:0;right:auto}[dir=rtl] .md-slider-horizontal .md-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .md-slider-horizontal.md-slider-axis-inverted .md-slider-track-fill{transform-origin:0 0}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n        }),\n        __param$7(0, _angular_core.Optional()), \n        __metadata$33('design:paramtypes', [Dir, _angular_core.ElementRef])\n    ], MdSlider);\n    return MdSlider;\n}());\n/**\n * Renderer class in order to keep all dom manipulation in one place and outside of the main class.\n * @docs-private\n */\nvar SliderRenderer = (function () {\n    function SliderRenderer(elementRef) {\n        this._sliderElement = elementRef.nativeElement;\n    }\n    /**\n     * Get the bounding client rect of the slider track element.\n     * The track is used rather than the native element to ignore the extra space that the thumb can\n     * take up.\n     */\n    SliderRenderer.prototype.getSliderDimensions = function () {\n        var trackElement = this._sliderElement.querySelector('.md-slider-track');\n        return trackElement.getBoundingClientRect();\n    };\n    /**\n     * Focuses the native element.\n     * Currently only used to allow a blur event to fire but will be used with keyboard input later.\n     */\n    SliderRenderer.prototype.addFocus = function () {\n        this._sliderElement.focus();\n    };\n    return SliderRenderer;\n}());\nvar MdSliderModule = (function () {\n    function MdSliderModule() {\n    }\n    MdSliderModule.forRoot = function () {\n        return {\n            ngModule: MdSliderModule,\n            providers: [{ provide: _angular_platformBrowser.HAMMER_GESTURE_CONFIG, useClass: GestureConfig }]\n        };\n    };\n    MdSliderModule = __decorate$33([\n        _angular_core.NgModule({\n            imports: [_angular_common.CommonModule, _angular_forms.FormsModule, DefaultStyleCompatibilityModeModule],\n            exports: [MdSlider, DefaultStyleCompatibilityModeModule],\n            declarations: [MdSlider],\n            providers: [\n                { provide: _angular_platformBrowser.HAMMER_GESTURE_CONFIG, useClass: GestureConfig },\n            ],\n        }), \n        __metadata$33('design:paramtypes', [])\n    ], MdSliderModule);\n    return MdSliderModule;\n}());\n\nvar __extends$7 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate$34 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$34 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$8 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n/** Exception thrown when two MdSidenav are matching the same side. */\nvar MdDuplicatedSidenavError = (function (_super) {\n    __extends$7(MdDuplicatedSidenavError, _super);\n    function MdDuplicatedSidenavError(align) {\n        _super.call(this, \"A sidenav was already declared for 'align=\\\"\" + align + \"\\\"'\");\n    }\n    return MdDuplicatedSidenavError;\n}(MdError));\n/** Sidenav toggle promise result. */\nvar MdSidenavToggleResult = (function () {\n    function MdSidenavToggleResult(type, animationFinished) {\n        this.type = type;\n        this.animationFinished = animationFinished;\n    }\n    return MdSidenavToggleResult;\n}());\n/**\n * <md-sidenav> component.\n *\n * This component corresponds to the drawer of the sidenav.\n *\n * Please refer to README.md for examples on how to use it.\n */\nvar MdSidenav = (function () {\n    /**\n     * @param _elementRef The DOM element reference. Used for transition and width calculation.\n     *     If not available we do not hook on transitions.\n     */\n    function MdSidenav(_elementRef, _renderer) {\n        var _this = this;\n        this._elementRef = _elementRef;\n        this._renderer = _renderer;\n        /** Alignment of the sidenav (direction neutral); whether 'start' or 'end'. */\n        this._align = 'start';\n        this._valid = true;\n        /** Mode of the sidenav; whether 'over' or 'side'. */\n        this.mode = 'over';\n        /** Whether the sidenav is opened. */\n        this._opened = false;\n        /** Event emitted when the sidenav is being opened. Use this to synchronize animations. */\n        this.onOpenStart = new _angular_core.EventEmitter();\n        /** Event emitted when the sidenav is fully opened. */\n        this.onOpen = new _angular_core.EventEmitter();\n        /** Event emitted when the sidenav is being closed. Use this to synchronize animations. */\n        this.onCloseStart = new _angular_core.EventEmitter();\n        /** Event emitted when the sidenav is fully closed. */\n        this.onClose = new _angular_core.EventEmitter();\n        /** Event emitted when the sidenav alignment changes. */\n        this.onAlignChanged = new _angular_core.EventEmitter();\n        /** The current toggle animation promise. `null` if no animation is in progress. */\n        this._toggleAnimationPromise = null;\n        /**\n         * The current toggle animation promise resolution function.\n         * `null` if no animation is in progress.\n         */\n        this._resolveToggleAnimationPromise = null;\n        this._elementFocusedBeforeSidenavWasOpened = null;\n        this.onOpen.subscribe(function () {\n            _this._elementFocusedBeforeSidenavWasOpened = document.activeElement;\n            if (!_this.isFocusTrapDisabled) {\n                _this._focusTrap.focusFirstTabbableElementWhenReady();\n            }\n        });\n        this.onClose.subscribe(function () {\n            if (_this._elementFocusedBeforeSidenavWasOpened instanceof HTMLElement) {\n                _this._renderer.invokeElementMethod(_this._elementFocusedBeforeSidenavWasOpened, 'focus');\n            }\n            else {\n                _this._renderer.invokeElementMethod(_this._elementRef.nativeElement, 'blur');\n            }\n            _this._elementFocusedBeforeSidenavWasOpened = null;\n        });\n    }\n    Object.defineProperty(MdSidenav.prototype, \"valid\", {\n        /** Whether this md-sidenav is part of a valid md-sidenav-container configuration. */\n        get: function () { return this._valid; },\n        set: function (value) {\n            value = coerceBooleanProperty(value);\n            // When the drawers are not in a valid configuration we close them all until they are in a valid\n            // configuration again.\n            if (!value) {\n                this.close();\n            }\n            this._valid = value;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSidenav.prototype, \"align\", {\n        /** Direction which the sidenav is aligned in. */\n        get: function () { return this._align; },\n        set: function (value) {\n            // Make sure we have a valid value.\n            value = (value == 'end') ? 'end' : 'start';\n            if (value != this._align) {\n                this._align = value;\n                this.onAlignChanged.emit();\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSidenav.prototype, \"isFocusTrapDisabled\", {\n        get: function () {\n            // The focus trap is only enabled when the sidenav is open in any mode other than side.\n            return !this.opened || this.mode == 'side';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdSidenav.prototype.ngAfterContentInit = function () {\n        // This can happen when the sidenav is set to opened in the template and the transition\n        // isn't ended.\n        if (this._toggleAnimationPromise) {\n            this._resolveToggleAnimationPromise(true);\n            this._toggleAnimationPromise = this._resolveToggleAnimationPromise = null;\n        }\n    };\n    Object.defineProperty(MdSidenav.prototype, \"opened\", {\n        /**\n         * Whether the sidenav is opened. We overload this because we trigger an event when it\n         * starts or end.\n         */\n        get: function () { return this._opened; },\n        set: function (v) {\n            this.toggle(coerceBooleanProperty(v));\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /** Open this sidenav, and return a Promise that will resolve when it's fully opened (or get\n     * rejected if it didn't). */\n    MdSidenav.prototype.open = function () {\n        return this.toggle(true);\n    };\n    /**\n     * Close this sidenav, and return a Promise that will resolve when it's fully closed (or get\n     * rejected if it didn't).\n     */\n    MdSidenav.prototype.close = function () {\n        return this.toggle(false);\n    };\n    /**\n     * Toggle this sidenav. This is equivalent to calling open() when it's already opened, or\n     * close() when it's closed.\n     * @param isOpen Whether the sidenav should be open.\n     * @returns Resolves with the result of whether the sidenav was opened or closed.\n     */\n    MdSidenav.prototype.toggle = function (isOpen) {\n        var _this = this;\n        if (isOpen === void 0) { isOpen = !this.opened; }\n        if (!this.valid) {\n            return Promise.resolve(new MdSidenavToggleResult(isOpen ? 'open' : 'close', true));\n        }\n        // Shortcut it if we're already opened.\n        if (isOpen === this.opened) {\n            return this._toggleAnimationPromise ||\n                Promise.resolve(new MdSidenavToggleResult(isOpen ? 'open' : 'close', true));\n        }\n        this._opened = isOpen;\n        if (isOpen) {\n            this.onOpenStart.emit();\n        }\n        else {\n            this.onCloseStart.emit();\n        }\n        if (this._toggleAnimationPromise) {\n            this._resolveToggleAnimationPromise(false);\n        }\n        this._toggleAnimationPromise = new Promise(function (resolve) {\n            _this._resolveToggleAnimationPromise = function (animationFinished) {\n                return resolve(new MdSidenavToggleResult(isOpen ? 'open' : 'close', animationFinished));\n            };\n        });\n        return this._toggleAnimationPromise;\n    };\n    /**\n     * Handles the keyboard events.\n     * @docs-private\n     */\n    MdSidenav.prototype.handleKeydown = function (event) {\n        if (event.keyCode === ESCAPE) {\n            this.close();\n            event.stopPropagation();\n        }\n    };\n    /**\n     * When transition has finished, set the internal state for classes and emit the proper event.\n     * The event passed is actually of type TransitionEvent, but that type is not available in\n     * Android so we use any.\n     */\n    MdSidenav.prototype._onTransitionEnd = function (transitionEvent) {\n        if (transitionEvent.target == this._elementRef.nativeElement\n            && transitionEvent.propertyName.endsWith('transform')) {\n            if (this._opened) {\n                this.onOpen.emit();\n            }\n            else {\n                this.onClose.emit();\n            }\n            if (this._toggleAnimationPromise) {\n                this._resolveToggleAnimationPromise(true);\n                this._toggleAnimationPromise = this._resolveToggleAnimationPromise = null;\n            }\n        }\n    };\n    Object.defineProperty(MdSidenav.prototype, \"_isClosing\", {\n        get: function () {\n            return !this._opened && !!this._toggleAnimationPromise;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSidenav.prototype, \"_isOpening\", {\n        get: function () {\n            return this._opened && !!this._toggleAnimationPromise;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSidenav.prototype, \"_isClosed\", {\n        get: function () {\n            return !this._opened && !this._toggleAnimationPromise;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSidenav.prototype, \"_isOpened\", {\n        get: function () {\n            return this._opened && !this._toggleAnimationPromise;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSidenav.prototype, \"_isEnd\", {\n        get: function () {\n            return this.align == 'end';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSidenav.prototype, \"_modeSide\", {\n        get: function () {\n            return this.mode == 'side';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSidenav.prototype, \"_modeOver\", {\n        get: function () {\n            return this.mode == 'over';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSidenav.prototype, \"_modePush\", {\n        get: function () {\n            return this.mode == 'push';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSidenav.prototype, \"_width\", {\n        get: function () {\n            if (this._elementRef.nativeElement) {\n                return this._elementRef.nativeElement.offsetWidth;\n            }\n            return 0;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    __decorate$34([\n        _angular_core.ViewChild(FocusTrap), \n        __metadata$34('design:type', FocusTrap)\n    ], MdSidenav.prototype, \"_focusTrap\", void 0);\n    __decorate$34([\n        _angular_core.Input(), \n        __metadata$34('design:type', Object)\n    ], MdSidenav.prototype, \"align\", null);\n    __decorate$34([\n        _angular_core.Input(), \n        __metadata$34('design:type', Object)\n    ], MdSidenav.prototype, \"mode\", void 0);\n    __decorate$34([\n        _angular_core.Output('open-start'), \n        __metadata$34('design:type', Object)\n    ], MdSidenav.prototype, \"onOpenStart\", void 0);\n    __decorate$34([\n        _angular_core.Output('open'), \n        __metadata$34('design:type', Object)\n    ], MdSidenav.prototype, \"onOpen\", void 0);\n    __decorate$34([\n        _angular_core.Output('close-start'), \n        __metadata$34('design:type', Object)\n    ], MdSidenav.prototype, \"onCloseStart\", void 0);\n    __decorate$34([\n        _angular_core.Output('close'), \n        __metadata$34('design:type', Object)\n    ], MdSidenav.prototype, \"onClose\", void 0);\n    __decorate$34([\n        _angular_core.Output('align-changed'), \n        __metadata$34('design:type', Object)\n    ], MdSidenav.prototype, \"onAlignChanged\", void 0);\n    __decorate$34([\n        _angular_core.Input(), \n        __metadata$34('design:type', Boolean)\n    ], MdSidenav.prototype, \"opened\", null);\n    MdSidenav = __decorate$34([\n        _angular_core.Component({selector: 'md-sidenav, mat-sidenav',\n            // TODO(mmalerba): move template to separate file.\n            template: \"<cdk-focus-trap class=\\\"md-sidenav-focus-trap\\\" [disabled]=\\\"isFocusTrapDisabled\\\"><ng-content></ng-content></cdk-focus-trap>\",\n            host: {\n                '(transitionend)': '_onTransitionEnd($event)',\n                '(keydown)': 'handleKeydown($event)',\n                // must prevent the browser from aligning text based on value\n                '[attr.align]': 'null',\n                '[class.md-sidenav-closed]': '_isClosed',\n                '[class.md-sidenav-closing]': '_isClosing',\n                '[class.md-sidenav-end]': '_isEnd',\n                '[class.md-sidenav-opened]': '_isOpened',\n                '[class.md-sidenav-opening]': '_isOpening',\n                '[class.md-sidenav-over]': '_modeOver',\n                '[class.md-sidenav-push]': '_modePush',\n                '[class.md-sidenav-side]': '_modeSide',\n                '[class.md-sidenav-invalid]': '!valid',\n                'tabIndex': '-1'\n            },\n            changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,\n            encapsulation: _angular_core.ViewEncapsulation.None,\n        }), \n        __metadata$34('design:paramtypes', [_angular_core.ElementRef, _angular_core.Renderer])\n    ], MdSidenav);\n    return MdSidenav;\n}());\n/**\n * <md-sidenav-container> component.\n *\n * This is the parent component to one or two <md-sidenav>s that validates the state internally\n * and coordinates the backdrop and content styling.\n */\nvar MdSidenavContainer = (function () {\n    function MdSidenavContainer(_dir, _element, _renderer) {\n        var _this = this;\n        this._dir = _dir;\n        this._element = _element;\n        this._renderer = _renderer;\n        /** Event emitted when the sidenav backdrop is clicked. */\n        this.onBackdropClicked = new _angular_core.EventEmitter();\n        // If a `Dir` directive exists up the tree, listen direction changes and update the left/right\n        // properties to point to the proper start/end.\n        if (_dir != null) {\n            _dir.dirChange.subscribe(function () { return _this._validateDrawers(); });\n        }\n    }\n    Object.defineProperty(MdSidenavContainer.prototype, \"start\", {\n        /** The sidenav child with the `start` alignment. */\n        get: function () { return this._start; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdSidenavContainer.prototype, \"end\", {\n        /** The sidenav child with the `end` alignment. */\n        get: function () { return this._end; },\n        enumerable: true,\n        configurable: true\n    });\n    MdSidenavContainer.prototype.ngAfterContentInit = function () {\n        var _this = this;\n        // On changes, assert on consistency.\n        this._sidenavs.changes.subscribe(function () { return _this._validateDrawers(); });\n        this._sidenavs.forEach(function (sidenav) {\n            _this._watchSidenavToggle(sidenav);\n            _this._watchSidenavAlign(sidenav);\n        });\n        this._validateDrawers();\n    };\n    /**\n     * Subscribes to sidenav events in order to set a class on the main container element when the\n     * sidenav is open and the backdrop is visible. This ensures any overflow on the container element\n     * is properly hidden.\n     */\n    MdSidenavContainer.prototype._watchSidenavToggle = function (sidenav) {\n        var _this = this;\n        if (!sidenav || sidenav.mode === 'side') {\n            return;\n        }\n        sidenav.onOpen.subscribe(function () { return _this._setContainerClass(sidenav, true); });\n        sidenav.onClose.subscribe(function () { return _this._setContainerClass(sidenav, false); });\n    };\n    /**\n     * Subscribes to sidenav onAlignChanged event in order to re-validate drawers when the align\n     * changes.\n     */\n    MdSidenavContainer.prototype._watchSidenavAlign = function (sidenav) {\n        var _this = this;\n        if (!sidenav) {\n            return;\n        }\n        sidenav.onAlignChanged.subscribe(function () { return _this._validateDrawers(); });\n    };\n    /** Toggles the 'md-sidenav-opened' class on the main 'md-sidenav-container' element. */\n    MdSidenavContainer.prototype._setContainerClass = function (sidenav, bool) {\n        this._renderer.setElementClass(this._element.nativeElement, 'md-sidenav-opened', bool);\n    };\n    /** Sets the valid state of the drawers. */\n    MdSidenavContainer.prototype._setDrawersValid = function (valid) {\n        this._sidenavs.forEach(function (sidenav) {\n            sidenav.valid = valid;\n        });\n        if (!valid) {\n            this._start = this._end = this._left = this._right = null;\n        }\n    };\n    /** Validate the state of the sidenav children components. */\n    MdSidenavContainer.prototype._validateDrawers = function () {\n        this._start = this._end = null;\n        // Ensure that we have at most one start and one end sidenav.\n        // NOTE: We must call toArray on _sidenavs even though it's iterable\n        // (see https://github.com/Microsoft/TypeScript/issues/3164).\n        for (var _i = 0, _a = this._sidenavs.toArray(); _i < _a.length; _i++) {\n            var sidenav = _a[_i];\n            if (sidenav.align == 'end') {\n                if (this._end != null) {\n                    this._setDrawersValid(false);\n                    return;\n                }\n                this._end = sidenav;\n            }\n            else {\n                if (this._start != null) {\n                    this._setDrawersValid(false);\n                    return;\n                }\n                this._start = sidenav;\n            }\n        }\n        this._right = this._left = null;\n        // Detect if we're LTR or RTL.\n        if (this._dir == null || this._dir.value == 'ltr') {\n            this._left = this._start;\n            this._right = this._end;\n        }\n        else {\n            this._left = this._end;\n            this._right = this._start;\n        }\n        this._setDrawersValid(true);\n    };\n    MdSidenavContainer.prototype._onBackdropClicked = function () {\n        this.onBackdropClicked.emit();\n        this._closeModalSidenav();\n    };\n    MdSidenavContainer.prototype._closeModalSidenav = function () {\n        if (this._start != null && this._start.mode != 'side') {\n            this._start.close();\n        }\n        if (this._end != null && this._end.mode != 'side') {\n            this._end.close();\n        }\n    };\n    MdSidenavContainer.prototype._isShowingBackdrop = function () {\n        return (this._isSidenavOpen(this._start) && this._start.mode != 'side')\n            || (this._isSidenavOpen(this._end) && this._end.mode != 'side');\n    };\n    MdSidenavContainer.prototype._isSidenavOpen = function (side) {\n        return side != null && side.opened;\n    };\n    /**\n     * Return the width of the sidenav, if it's in the proper mode and opened.\n     * This may relayout the view, so do not call this often.\n     * @param sidenav\n     * @param mode\n     */\n    MdSidenavContainer.prototype._getSidenavEffectiveWidth = function (sidenav, mode) {\n        return (this._isSidenavOpen(sidenav) && sidenav.mode == mode) ? sidenav._width : 0;\n    };\n    MdSidenavContainer.prototype._getMarginLeft = function () {\n        return this._getSidenavEffectiveWidth(this._left, 'side');\n    };\n    MdSidenavContainer.prototype._getMarginRight = function () {\n        return this._getSidenavEffectiveWidth(this._right, 'side');\n    };\n    MdSidenavContainer.prototype._getPositionLeft = function () {\n        return this._getSidenavEffectiveWidth(this._left, 'push');\n    };\n    MdSidenavContainer.prototype._getPositionRight = function () {\n        return this._getSidenavEffectiveWidth(this._right, 'push');\n    };\n    /**\n     * Returns the horizontal offset for the content area.  There should never be a value for both\n     * left and right, so by subtracting the right value from the left value, we should always get\n     * the appropriate offset.\n     */\n    MdSidenavContainer.prototype._getPositionOffset = function () {\n        return this._getPositionLeft() - this._getPositionRight();\n    };\n    /**\n     * This is using [ngStyle] rather than separate [style...] properties because [style.transform]\n     * doesn't seem to work right now.\n     */\n    MdSidenavContainer.prototype._getStyles = function () {\n        return {\n            marginLeft: this._getMarginLeft() + \"px\",\n            marginRight: this._getMarginRight() + \"px\",\n            transform: \"translate3d(\" + this._getPositionOffset() + \"px, 0, 0)\"\n        };\n    };\n    __decorate$34([\n        _angular_core.ContentChildren(MdSidenav), \n        __metadata$34('design:type', _angular_core.QueryList)\n    ], MdSidenavContainer.prototype, \"_sidenavs\", void 0);\n    __decorate$34([\n        _angular_core.Output('backdrop-clicked'), \n        __metadata$34('design:type', Object)\n    ], MdSidenavContainer.prototype, \"onBackdropClicked\", void 0);\n    MdSidenavContainer = __decorate$34([\n        _angular_core.Component({selector: 'md-sidenav-container, mat-sidenav-container, md-sidenav-layout, mat-sidenav-layout',\n            // Do not use ChangeDetectionStrategy.OnPush. It does not work for this component because\n            // technically it is a sibling of MdSidenav (on the content tree) and isn't updated when MdSidenav\n            // changes its state.\n            template: \"<div class=\\\"md-sidenav-backdrop\\\" (click)=\\\"_onBackdropClicked()\\\" [class.md-sidenav-shown]=\\\"_isShowingBackdrop()\\\"></div><ng-content select=\\\"md-sidenav, mat-sidenav\\\"></ng-content><div class=\\\"md-sidenav-content\\\" [ngStyle]=\\\"_getStyles()\\\"><ng-content></ng-content></div>\",\n            styles: [\".md-sidenav-container,.md-sidenav-content{transform:translate3d(0,0,0);display:block}.md-sidenav-container{position:relative;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow:hidden}.md-sidenav-backdrop,.md-sidenav-container[fullscreen]{position:absolute;top:0;bottom:0;right:0;left:0}.md-sidenav-container[fullscreen].md-sidenav-opened{overflow:hidden}.md-sidenav-backdrop{display:block;z-index:2;visibility:hidden}.md-sidenav-backdrop.md-sidenav-shown{visibility:visible}@media screen and (-ms-high-contrast:active){.md-sidenav-backdrop{opacity:.5}}.md-sidenav-content{position:relative;height:100%;overflow:auto}md-sidenav,md-sidenav.md-sidenav-closing{transform:translate3d(-100%,0,0)}md-sidenav{display:block;position:absolute;top:0;bottom:0;z-index:3;min-width:5%;outline:0}md-sidenav.md-sidenav-closed{visibility:hidden}md-sidenav.md-sidenav-opened,md-sidenav.md-sidenav-opening{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);transform:translate3d(0,0,0)}md-sidenav.md-sidenav-opening{visibility:visible}md-sidenav.md-sidenav-end,md-sidenav.md-sidenav-end.md-sidenav-closing{transform:translate3d(100%,0,0)}md-sidenav.md-sidenav-side{z-index:1}md-sidenav.md-sidenav-end{right:0}md-sidenav.md-sidenav-end.md-sidenav-closed{visibility:hidden}md-sidenav.md-sidenav-end.md-sidenav-opened,md-sidenav.md-sidenav-end.md-sidenav-opening{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);transform:translate3d(0,0,0)}md-sidenav.md-sidenav-end.md-sidenav-opening{visibility:visible}[dir=rtl] md-sidenav,[dir=rtl] md-sidenav.md-sidenav-closing{transform:translate3d(100%,0,0)}[dir=rtl] md-sidenav.md-sidenav-closed{visibility:hidden}[dir=rtl] md-sidenav.md-sidenav-opened,[dir=rtl] md-sidenav.md-sidenav-opening{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);transform:translate3d(0,0,0)}[dir=rtl] md-sidenav.md-sidenav-opening{visibility:visible}[dir=rtl] md-sidenav.md-sidenav-end{left:0;right:auto;transform:translate3d(-100%,0,0)}[dir=rtl] md-sidenav.md-sidenav-end.md-sidenav-closed{visibility:hidden}[dir=rtl] md-sidenav.md-sidenav-end.md-sidenav-closing{transform:translate3d(-100%,0,0)}[dir=rtl] md-sidenav.md-sidenav-end.md-sidenav-opened,[dir=rtl] md-sidenav.md-sidenav-end.md-sidenav-opening{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);transform:translate3d(0,0,0)}[dir=rtl] md-sidenav.md-sidenav-end.md-sidenav-opening{visibility:visible}.md-sidenav-focus-trap{height:100%}.md-sidenav-focus-trap>.cdk-focus-trap-content{box-sizing:border-box;height:100%;overflow-y:auto;transform:translateZ(0)}.md-sidenav-invalid{display:none}\",\n\".md-sidenav-content,md-sidenav{transition:transform .4s cubic-bezier(.25,.8,.25,1)}.md-sidenav-backdrop.md-sidenav-shown{transition:background-color .4s cubic-bezier(.25,.8,.25,1)}\"],\n            host: {\n                'class': 'md-sidenav-container',\n            },\n            encapsulation: _angular_core.ViewEncapsulation.None,\n        }),\n        __param$8(0, _angular_core.Optional()), \n        __metadata$34('design:paramtypes', [Dir, _angular_core.ElementRef, _angular_core.Renderer])\n    ], MdSidenavContainer);\n    return MdSidenavContainer;\n}());\nvar MdSidenavModule = (function () {\n    function MdSidenavModule() {\n    }\n    MdSidenavModule.forRoot = function () {\n        return {\n            ngModule: MdSidenavModule,\n            providers: [InteractivityChecker]\n        };\n    };\n    MdSidenavModule = __decorate$34([\n        _angular_core.NgModule({\n            imports: [_angular_common.CommonModule, DefaultStyleCompatibilityModeModule, A11yModule, OverlayModule],\n            exports: [MdSidenavContainer, MdSidenav, DefaultStyleCompatibilityModeModule],\n            declarations: [MdSidenavContainer, MdSidenav],\n        }), \n        __metadata$34('design:paramtypes', [])\n    ], MdSidenavModule);\n    return MdSidenavModule;\n}());\n\nvar __decorate$35 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$35 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MdListDivider = (function () {\n    function MdListDivider() {\n    }\n    MdListDivider = __decorate$35([\n        _angular_core.Directive({\n            selector: 'md-divider, mat-divider'\n        }), \n        __metadata$35('design:paramtypes', [])\n    ], MdListDivider);\n    return MdListDivider;\n}());\nvar MdList = (function () {\n    function MdList() {\n    }\n    MdList = __decorate$35([\n        _angular_core.Component({selector: 'md-list, mat-list, md-nav-list, mat-nav-list',\n            host: { 'role': 'list' },\n            template: '<ng-content></ng-content>',\n            styles: [\"md-list,md-nav-list{padding-top:8px;display:block}md-list [md-subheader],md-nav-list [md-subheader]{display:block;box-sizing:border-box;height:48px;padding:16px;margin:0;font-size:14px;font-weight:500}md-list [md-subheader]:first-child,md-nav-list [md-subheader]:first-child{margin-top:-8px}md-list a[md-list-item],md-list md-list-item,md-nav-list a[md-list-item],md-nav-list md-list-item{display:block}md-list a[md-list-item] .md-list-item,md-list md-list-item .md-list-item,md-nav-list a[md-list-item] .md-list-item,md-nav-list md-list-item .md-list-item{display:flex;flex-direction:row;align-items:center;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;box-sizing:border-box;font-size:16px;height:48px;padding:0 16px}md-list a[md-list-item].md-list-avatar .md-list-item,md-list md-list-item.md-list-avatar .md-list-item,md-nav-list a[md-list-item].md-list-avatar .md-list-item,md-nav-list md-list-item.md-list-avatar .md-list-item{height:56px}md-list a[md-list-item].md-2-line .md-list-item,md-list md-list-item.md-2-line .md-list-item,md-nav-list a[md-list-item].md-2-line .md-list-item,md-nav-list md-list-item.md-2-line .md-list-item{height:72px}md-list a[md-list-item].md-3-line .md-list-item,md-list md-list-item.md-3-line .md-list-item,md-nav-list a[md-list-item].md-3-line .md-list-item,md-nav-list md-list-item.md-3-line .md-list-item{height:88px}md-list a[md-list-item].md-multi-line .md-list-item,md-list md-list-item.md-multi-line .md-list-item,md-nav-list a[md-list-item].md-multi-line .md-list-item,md-nav-list md-list-item.md-multi-line .md-list-item{height:100%;padding:8px 16px}md-list a[md-list-item] .md-list-text,md-list md-list-item .md-list-text,md-nav-list a[md-list-item] .md-list-text,md-nav-list md-list-item .md-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}md-list a[md-list-item] .md-list-text>*,md-list md-list-item .md-list-text>*,md-nav-list a[md-list-item] .md-list-text>*,md-nav-list md-list-item .md-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}md-list a[md-list-item] .md-list-text:empty,md-list md-list-item .md-list-text:empty,md-nav-list a[md-list-item] .md-list-text:empty,md-nav-list md-list-item .md-list-text:empty{display:none}md-list a[md-list-item] .md-list-text:first-child,md-list md-list-item .md-list-text:first-child,md-nav-list a[md-list-item] .md-list-text:first-child,md-nav-list md-list-item .md-list-text:first-child{padding:0}md-list a[md-list-item] [md-list-avatar],md-list md-list-item [md-list-avatar],md-nav-list a[md-list-item] [md-list-avatar],md-nav-list md-list-item [md-list-avatar]{flex-shrink:0;width:40px;height:40px;border-radius:50%}md-list a[md-list-item] [md-list-icon],md-list md-list-item [md-list-icon],md-nav-list a[md-list-item] [md-list-icon],md-nav-list md-list-item [md-list-icon]{width:24px;height:24px;border-radius:50%;padding:4px}md-list a[md-list-item] [md-line],md-list md-list-item [md-line],md-nav-list a[md-list-item] [md-line],md-nav-list md-list-item [md-line]{white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}md-list a[md-list-item] [md-line]:nth-child(n+2),md-list md-list-item [md-line]:nth-child(n+2),md-nav-list a[md-list-item] [md-line]:nth-child(n+2),md-nav-list md-list-item [md-line]:nth-child(n+2){font-size:14px}md-list[dense],md-nav-list[dense]{padding-top:4px;display:block}md-list[dense] [md-subheader],md-nav-list[dense] [md-subheader]{display:block;box-sizing:border-box;height:40px;padding:16px;margin:0;font-size:13px;font-weight:500}md-list[dense] [md-subheader]:first-child,md-nav-list[dense] [md-subheader]:first-child{margin-top:-4px}md-list[dense] a[md-list-item],md-list[dense] md-list-item,md-nav-list[dense] a[md-list-item],md-nav-list[dense] md-list-item{display:block}md-list[dense] a[md-list-item] .md-list-item,md-list[dense] md-list-item .md-list-item,md-nav-list[dense] a[md-list-item] .md-list-item,md-nav-list[dense] md-list-item .md-list-item{display:flex;flex-direction:row;align-items:center;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;box-sizing:border-box;font-size:13px;height:40px;padding:0 16px}md-list[dense] a[md-list-item].md-list-avatar .md-list-item,md-list[dense] md-list-item.md-list-avatar .md-list-item,md-nav-list[dense] a[md-list-item].md-list-avatar .md-list-item,md-nav-list[dense] md-list-item.md-list-avatar .md-list-item{height:48px}md-list[dense] a[md-list-item].md-2-line .md-list-item,md-list[dense] md-list-item.md-2-line .md-list-item,md-nav-list[dense] a[md-list-item].md-2-line .md-list-item,md-nav-list[dense] md-list-item.md-2-line .md-list-item{height:60px}md-list[dense] a[md-list-item].md-3-line .md-list-item,md-list[dense] md-list-item.md-3-line .md-list-item,md-nav-list[dense] a[md-list-item].md-3-line .md-list-item,md-nav-list[dense] md-list-item.md-3-line .md-list-item{height:76px}md-list[dense] a[md-list-item].md-multi-line .md-list-item,md-list[dense] md-list-item.md-multi-line .md-list-item,md-nav-list[dense] a[md-list-item].md-multi-line .md-list-item,md-nav-list[dense] md-list-item.md-multi-line .md-list-item{height:100%;padding:8px 16px}md-list[dense] a[md-list-item] .md-list-text,md-list[dense] md-list-item .md-list-text,md-nav-list[dense] a[md-list-item] .md-list-text,md-nav-list[dense] md-list-item .md-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}md-list[dense] a[md-list-item] .md-list-text>*,md-list[dense] md-list-item .md-list-text>*,md-nav-list[dense] a[md-list-item] .md-list-text>*,md-nav-list[dense] md-list-item .md-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}md-list[dense] a[md-list-item] .md-list-text:empty,md-list[dense] md-list-item .md-list-text:empty,md-nav-list[dense] a[md-list-item] .md-list-text:empty,md-nav-list[dense] md-list-item .md-list-text:empty{display:none}md-list[dense] a[md-list-item] .md-list-text:first-child,md-list[dense] md-list-item .md-list-text:first-child,md-nav-list[dense] a[md-list-item] .md-list-text:first-child,md-nav-list[dense] md-list-item .md-list-text:first-child{padding:0}md-list[dense] a[md-list-item] [md-list-avatar],md-list[dense] md-list-item [md-list-avatar],md-nav-list[dense] a[md-list-item] [md-list-avatar],md-nav-list[dense] md-list-item [md-list-avatar]{flex-shrink:0;width:40px;height:40px;border-radius:50%}md-list[dense] a[md-list-item] [md-list-icon],md-list[dense] md-list-item [md-list-icon],md-nav-list[dense] a[md-list-item] [md-list-icon],md-nav-list[dense] md-list-item [md-list-icon]{width:24px;height:24px;border-radius:50%;padding:4px}md-list[dense] a[md-list-item] [md-line],md-list[dense] md-list-item [md-line],md-nav-list[dense] a[md-list-item] [md-line],md-nav-list[dense] md-list-item [md-line]{white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}md-list[dense] a[md-list-item] [md-line]:nth-child(n+2),md-list[dense] md-list-item [md-line]:nth-child(n+2),md-nav-list[dense] a[md-list-item] [md-line]:nth-child(n+2),md-nav-list[dense] md-list-item [md-line]:nth-child(n+2){font-size:13px}md-divider{display:block;border-top-style:solid;border-top-width:1px;margin:0}md-nav-list a{text-decoration:none;color:inherit}md-nav-list .md-list-item{cursor:pointer}md-nav-list .md-list-item.md-list-item-focus,md-nav-list .md-list-item:hover{outline:0}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None\n        }), \n        __metadata$35('design:paramtypes', [])\n    ], MdList);\n    return MdList;\n}());\n/* Need directive for a ContentChild query in list-item */\nvar MdListAvatar = (function () {\n    function MdListAvatar() {\n    }\n    MdListAvatar = __decorate$35([\n        _angular_core.Directive({ selector: '[md-list-avatar], [mat-list-avatar]' }), \n        __metadata$35('design:paramtypes', [])\n    ], MdListAvatar);\n    return MdListAvatar;\n}());\nvar MdListItem = (function () {\n    function MdListItem(_renderer, _element) {\n        this._renderer = _renderer;\n        this._element = _element;\n        this._hasFocus = false;\n    }\n    Object.defineProperty(MdListItem.prototype, \"_hasAvatar\", {\n        set: function (avatar) {\n            this._renderer.setElementClass(this._element.nativeElement, 'md-list-avatar', avatar != null);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdListItem.prototype.ngAfterContentInit = function () {\n        this._lineSetter = new MdLineSetter(this._lines, this._renderer, this._element);\n    };\n    MdListItem.prototype._handleFocus = function () {\n        this._hasFocus = true;\n    };\n    MdListItem.prototype._handleBlur = function () {\n        this._hasFocus = false;\n    };\n    __decorate$35([\n        _angular_core.ContentChildren(MdLine), \n        __metadata$35('design:type', _angular_core.QueryList)\n    ], MdListItem.prototype, \"_lines\", void 0);\n    __decorate$35([\n        _angular_core.ContentChild(MdListAvatar), \n        __metadata$35('design:type', MdListAvatar), \n        __metadata$35('design:paramtypes', [MdListAvatar])\n    ], MdListItem.prototype, \"_hasAvatar\", null);\n    MdListItem = __decorate$35([\n        _angular_core.Component({selector: 'md-list-item, mat-list-item, a[md-list-item], a[mat-list-item]',\n            host: {\n                'role': 'listitem',\n                '(focus)': '_handleFocus()',\n                '(blur)': '_handleBlur()',\n            },\n            template: \"<div class=\\\"md-list-item\\\" [class.md-list-item-focus]=\\\"_hasFocus\\\"><ng-content select=\\\"[md-list-avatar],[md-list-icon], [mat-list-avatar], [mat-list-icon]\\\"></ng-content><div class=\\\"md-list-text\\\"><ng-content select=\\\"[md-line], [mat-line]\\\"></ng-content></div><ng-content></ng-content></div>\",\n            encapsulation: _angular_core.ViewEncapsulation.None\n        }), \n        __metadata$35('design:paramtypes', [_angular_core.Renderer, _angular_core.ElementRef])\n    ], MdListItem);\n    return MdListItem;\n}());\nvar MdListModule = (function () {\n    function MdListModule() {\n    }\n    MdListModule.forRoot = function () {\n        return {\n            ngModule: MdListModule,\n            providers: []\n        };\n    };\n    MdListModule = __decorate$35([\n        _angular_core.NgModule({\n            imports: [MdLineModule, DefaultStyleCompatibilityModeModule],\n            exports: [\n                MdList,\n                MdListItem,\n                MdListDivider,\n                MdListAvatar,\n                MdLineModule,\n                DefaultStyleCompatibilityModeModule,\n            ],\n            declarations: [MdList, MdListItem, MdListDivider, MdListAvatar],\n        }), \n        __metadata$35('design:paramtypes', [])\n    ], MdListModule);\n    return MdListModule;\n}());\n\n/**\n * Converts values into strings. Falsy values become empty strings.\n * @docs-private\n */\nfunction coerceToString(value) {\n    return \"\" + (value || '');\n}\n/**\n * Converts a value that might be a string into a number.\n * @docs-private\n */\nfunction coerceToNumber(value) {\n    return typeof value === 'string' ? parseInt(value, 10) : value;\n}\n\nvar __decorate$37 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$37 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MdGridTile = (function () {\n    function MdGridTile(_renderer, _element) {\n        this._renderer = _renderer;\n        this._element = _element;\n        this._rowspan = 1;\n        this._colspan = 1;\n    }\n    Object.defineProperty(MdGridTile.prototype, \"rowspan\", {\n        /** Amount of rows that the grid tile takes up. */\n        get: function () { return this._rowspan; },\n        set: function (value) { this._rowspan = coerceToNumber(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdGridTile.prototype, \"colspan\", {\n        /** Amount of columns that the grid tile takes up. */\n        get: function () { return this._colspan; },\n        set: function (value) { this._colspan = coerceToNumber(value); },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Sets the style of the grid-tile element.  Needs to be set manually to avoid\n     * \"Changed after checked\" errors that would occur with HostBinding.\n     */\n    MdGridTile.prototype._setStyle = function (property, value) {\n        this._renderer.setElementStyle(this._element.nativeElement, property, value);\n    };\n    __decorate$37([\n        _angular_core.Input(), \n        __metadata$37('design:type', Object)\n    ], MdGridTile.prototype, \"rowspan\", null);\n    __decorate$37([\n        _angular_core.Input(), \n        __metadata$37('design:type', Object)\n    ], MdGridTile.prototype, \"colspan\", null);\n    MdGridTile = __decorate$37([\n        _angular_core.Component({selector: 'md-grid-tile, mat-grid-tile',\n            host: { 'role': 'listitem' },\n            template: \"<figure><ng-content></ng-content></figure>\",\n            styles: [\"md-grid-list{display:block;position:relative}md-grid-tile{display:block;position:absolute;overflow:hidden}md-grid-tile figure{display:flex;position:absolute;align-items:center;justify-content:center;height:100%;top:0;right:0;bottom:0;left:0;padding:0;margin:0}md-grid-tile md-grid-tile-footer,md-grid-tile md-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;font-size:16px;position:absolute;left:0;right:0}md-grid-tile md-grid-tile-footer [md-line],md-grid-tile md-grid-tile-header [md-line]{white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}md-grid-tile md-grid-tile-footer [md-line]:nth-child(n+2),md-grid-tile md-grid-tile-header [md-line]:nth-child(n+2){font-size:12px}md-grid-tile .md-grid-list-text>*,md-grid-tile md-grid-tile-footer>*,md-grid-tile md-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}md-grid-tile md-grid-tile-footer.md-2-line,md-grid-tile md-grid-tile-header.md-2-line{height:68px}md-grid-tile .md-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}md-grid-tile .md-grid-list-text:empty,md-grid-tile [md-grid-avatar]:empty{display:none}md-grid-tile md-grid-tile-header{top:0}md-grid-tile md-grid-tile-footer{bottom:0}md-grid-tile [md-grid-avatar]{padding-right:16px}[dir=rtl] md-grid-tile [md-grid-avatar]{padding-right:0;padding-left:16px}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n        }), \n        __metadata$37('design:paramtypes', [_angular_core.Renderer, _angular_core.ElementRef])\n    ], MdGridTile);\n    return MdGridTile;\n}());\nvar MdGridTileText = (function () {\n    function MdGridTileText(_renderer, _element) {\n        this._renderer = _renderer;\n        this._element = _element;\n    }\n    MdGridTileText.prototype.ngAfterContentInit = function () {\n        this._lineSetter = new MdLineSetter(this._lines, this._renderer, this._element);\n    };\n    __decorate$37([\n        _angular_core.ContentChildren(MdLine), \n        __metadata$37('design:type', _angular_core.QueryList)\n    ], MdGridTileText.prototype, \"_lines\", void 0);\n    MdGridTileText = __decorate$37([\n        _angular_core.Component({selector: 'md-grid-tile-header, mat-grid-tile-header, md-grid-tile-footer, mat-grid-tile-footer',\n            template: \"<ng-content select=\\\"[md-grid-avatar], [mat-grid-avatar]\\\"></ng-content><div class=\\\"md-grid-list-text\\\"><ng-content select=\\\"[md-line], [mat-line]\\\"></ng-content></div><ng-content></ng-content>\"\n        }), \n        __metadata$37('design:paramtypes', [_angular_core.Renderer, _angular_core.ElementRef])\n    ], MdGridTileText);\n    return MdGridTileText;\n}());\n\nvar __extends$8 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * Exception thrown when cols property is missing from grid-list\n * @docs-private\n */\nvar MdGridListColsError = (function (_super) {\n    __extends$8(MdGridListColsError, _super);\n    function MdGridListColsError() {\n        _super.call(this, \"md-grid-list: must pass in number of columns. Example: <md-grid-list cols=\\\"3\\\">\");\n    }\n    return MdGridListColsError;\n}(MdError));\n/**\n * Exception thrown when a tile's colspan is longer than the number of cols in list\n * @docs-private\n */\nvar MdGridTileTooWideError = (function (_super) {\n    __extends$8(MdGridTileTooWideError, _super);\n    function MdGridTileTooWideError(cols, listLength) {\n        _super.call(this, \"md-grid-list: tile with colspan \" + cols + \" is wider than grid with cols=\\\"\" + listLength + \"\\\".\");\n    }\n    return MdGridTileTooWideError;\n}(MdError));\n/**\n * Exception thrown when an invalid ratio is passed in as a rowHeight\n * @docs-private\n */\nvar MdGridListBadRatioError = (function (_super) {\n    __extends$8(MdGridListBadRatioError, _super);\n    function MdGridListBadRatioError(value) {\n        _super.call(this, \"md-grid-list: invalid ratio given for row-height: \\\"\" + value + \"\\\"\");\n    }\n    return MdGridListBadRatioError;\n}(MdError));\n\n/**\n * Class for determining, from a list of tiles, the (row, col) position of each of those tiles\n * in the grid. This is necessary (rather than just rendering the tiles in normal document flow)\n * because the tiles can have a rowspan.\n *\n * The positioning algorithm greedily places each tile as soon as it encounters a gap in the grid\n * large enough to accommodate it so that the tiles still render in the same order in which they\n * are given.\n *\n * The basis of the algorithm is the use of an array to track the already placed tiles. Each\n * element of the array corresponds to a column, and the value indicates how many cells in that\n * column are already occupied; zero indicates an empty cell. Moving \"down\" to the next row\n * decrements each value in the tracking array (indicating that the column is one cell closer to\n * being free).\n *\n * @docs-private\n */\nvar TileCoordinator = (function () {\n    function TileCoordinator(numColumns, tiles) {\n        var _this = this;\n        /** Index at which the search for the next gap will start. */\n        this.columnIndex = 0;\n        /** The current row index. */\n        this.rowIndex = 0;\n        this.tracker = new Array(numColumns);\n        this.tracker.fill(0, 0, this.tracker.length);\n        this.positions = tiles.map(function (tile) { return _this._trackTile(tile); });\n    }\n    Object.defineProperty(TileCoordinator.prototype, \"rowCount\", {\n        /** Gets the total number of rows occupied by tiles */\n        get: function () { return this.rowIndex + 1; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(TileCoordinator.prototype, \"rowspan\", {\n        /** Gets the total span of rows occupied by tiles.\n         * Ex: A list with 1 row that contains a tile with rowspan 2 will have a total rowspan of 2. */\n        get: function () {\n            var lastRowMax = Math.max.apply(Math, this.tracker);\n            // if any of the tiles has a rowspan that pushes it beyond the total row count,\n            // add the difference to the rowcount\n            return lastRowMax > 1 ? this.rowCount + lastRowMax - 1 : this.rowCount;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /** Calculates the row and col position of a tile. */\n    TileCoordinator.prototype._trackTile = function (tile) {\n        // Find a gap large enough for this tile.\n        var gapStartIndex = this._findMatchingGap(tile.colspan);\n        // Place tile in the resulting gap.\n        this._markTilePosition(gapStartIndex, tile);\n        // The next time we look for a gap, the search will start at columnIndex, which should be\n        // immediately after the tile that has just been placed.\n        this.columnIndex = gapStartIndex + tile.colspan;\n        return new TilePosition(this.rowIndex, gapStartIndex);\n    };\n    /** Finds the next available space large enough to fit the tile. */\n    TileCoordinator.prototype._findMatchingGap = function (tileCols) {\n        if (tileCols > this.tracker.length) {\n            throw new MdGridTileTooWideError(tileCols, this.tracker.length);\n        }\n        // Start index is inclusive, end index is exclusive.\n        var gapStartIndex = -1;\n        var gapEndIndex = -1;\n        // Look for a gap large enough to fit the given tile. Empty spaces are marked with a zero.\n        do {\n            // If we've reached the end of the row, go to the next row.\n            if (this.columnIndex + tileCols > this.tracker.length) {\n                this._nextRow();\n                continue;\n            }\n            gapStartIndex = this.tracker.indexOf(0, this.columnIndex);\n            // If there are no more empty spaces in this row at all, move on to the next row.\n            if (gapStartIndex == -1) {\n                this._nextRow();\n                continue;\n            }\n            gapEndIndex = this._findGapEndIndex(gapStartIndex);\n            // If a gap large enough isn't found, we want to start looking immediately after the current\n            // gap on the next iteration.\n            this.columnIndex = gapStartIndex + 1;\n        } while (gapEndIndex - gapStartIndex < tileCols);\n        return gapStartIndex;\n    };\n    /** Move \"down\" to the next row. */\n    TileCoordinator.prototype._nextRow = function () {\n        this.columnIndex = 0;\n        this.rowIndex++;\n        // Decrement all spaces by one to reflect moving down one row.\n        for (var i = 0; i < this.tracker.length; i++) {\n            this.tracker[i] = Math.max(0, this.tracker[i] - 1);\n        }\n    };\n    /**\n     * Finds the end index (exclusive) of a gap given the index from which to start looking.\n     * The gap ends when a non-zero value is found.\n     */\n    TileCoordinator.prototype._findGapEndIndex = function (gapStartIndex) {\n        for (var i = gapStartIndex + 1; i < this.tracker.length; i++) {\n            if (this.tracker[i] != 0) {\n                return i;\n            }\n        }\n        // The gap ends with the end of the row.\n        return this.tracker.length;\n    };\n    /** Update the tile tracker to account for the given tile in the given space. */\n    TileCoordinator.prototype._markTilePosition = function (start, tile) {\n        for (var i = 0; i < tile.colspan; i++) {\n            this.tracker[start + i] = tile.rowspan;\n        }\n    };\n    return TileCoordinator;\n}());\n/**\n * Simple data structure for tile position (row, col).\n * @docs-private\n */\nvar TilePosition = (function () {\n    function TilePosition(row, col) {\n        this.row = row;\n        this.col = col;\n    }\n    return TilePosition;\n}());\n\nvar __extends$9 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * Sets the style properties for an individual tile, given the position calculated by the\n * Tile Coordinator.\n * @docs-private\n */\nvar TileStyler = (function () {\n    function TileStyler() {\n        this._rows = 0;\n        this._rowspan = 0;\n    }\n    /**\n     * Adds grid-list layout info once it is available. Cannot be processed in the constructor\n     * because these properties haven't been calculated by that point.\n     *\n     * @param gutterSize Size of the grid's gutter.\n     * @param tracker Instance of the TileCoordinator.\n     * @param cols Amount of columns in the grid.\n     * @param direction Layout direction of the grid.\n     */\n    TileStyler.prototype.init = function (gutterSize, tracker, cols, direction) {\n        this._gutterSize = normalizeUnits(gutterSize);\n        this._rows = tracker.rowCount;\n        this._rowspan = tracker.rowspan;\n        this._cols = cols;\n        this._direction = direction;\n    };\n    /**\n     * Computes the amount of space a single 1x1 tile would take up (width or height).\n     * Used as a basis for other calculations.\n     * @param sizePercent Percent of the total grid-list space that one 1x1 tile would take up.\n     * @param gutterFraction Fraction of the gutter size taken up by one 1x1 tile.\n     * @return The size of a 1x1 tile as an expression that can be evaluated via CSS calc().\n     */\n    TileStyler.prototype.getBaseTileSize = function (sizePercent, gutterFraction) {\n        // Take the base size percent (as would be if evenly dividing the size between cells),\n        // and then subtracting the size of one gutter. However, since there are no gutters on the\n        // edges, each tile only uses a fraction (gutterShare = numGutters / numCells) of the gutter\n        // size. (Imagine having one gutter per tile, and then breaking up the extra gutter on the\n        // edge evenly among the cells).\n        return \"(\" + sizePercent + \"% - ( \" + this._gutterSize + \" * \" + gutterFraction + \" ))\";\n    };\n    /**\n     * Gets The horizontal or vertical position of a tile, e.g., the 'top' or 'left' property value.\n     * @param offset Number of tiles that have already been rendered in the row/column.\n     * @param baseSize Base size of a 1x1 tile (as computed in getBaseTileSize).\n     * @return Position of the tile as a CSS calc() expression.\n     */\n    TileStyler.prototype.getTilePosition = function (baseSize, offset) {\n        // The position comes the size of a 1x1 tile plus gutter for each previous tile in the\n        // row/column (offset).\n        return calc(\"(\" + baseSize + \" + \" + this._gutterSize + \") * \" + offset);\n    };\n    /**\n     * Gets the actual size of a tile, e.g., width or height, taking rowspan or colspan into account.\n     * @param baseSize Base size of a 1x1 tile (as computed in getBaseTileSize).\n     * @param span The tile's rowspan or colspan.\n     * @return Size of the tile as a CSS calc() expression.\n     */\n    TileStyler.prototype.getTileSize = function (baseSize, span) {\n        return \"(\" + baseSize + \" * \" + span + \") + (\" + (span - 1) + \" * \" + this._gutterSize + \")\";\n    };\n    /**\n     * Sets the style properties to be applied to a tile for the given row and column index.\n     * @param tile Tile to which to apply the styling.\n     * @param rowIndex Index of the tile's row.\n     * @param colIndex Index of the tile's column.\n     */\n    TileStyler.prototype.setStyle = function (tile, rowIndex, colIndex) {\n        // Percent of the available horizontal space that one column takes up.\n        var percentWidthPerTile = 100 / this._cols;\n        // Fraction of the vertical gutter size that each column takes up.\n        // For example, if there are 5 columns, each column uses 4/5 = 0.8 times the gutter width.\n        var gutterWidthFractionPerTile = (this._cols - 1) / this._cols;\n        this.setColStyles(tile, colIndex, percentWidthPerTile, gutterWidthFractionPerTile);\n        this.setRowStyles(tile, rowIndex, percentWidthPerTile, gutterWidthFractionPerTile);\n    };\n    /** Sets the horizontal placement of the tile in the list. */\n    TileStyler.prototype.setColStyles = function (tile, colIndex, percentWidth, gutterWidth) {\n        // Base horizontal size of a column.\n        var baseTileWidth = this.getBaseTileSize(percentWidth, gutterWidth);\n        // The width and horizontal position of each tile is always calculated the same way, but the\n        // height and vertical position depends on the rowMode.\n        var side = this._direction === 'ltr' ? 'left' : 'right';\n        tile._setStyle(side, this.getTilePosition(baseTileWidth, colIndex));\n        tile._setStyle('width', calc(this.getTileSize(baseTileWidth, tile.colspan)));\n    };\n    /**\n     * Calculates the total size taken up by gutters across one axis of a list.\n     */\n    TileStyler.prototype.getGutterSpan = function () {\n        return this._gutterSize + \" * (\" + this._rowspan + \" - 1)\";\n    };\n    /**\n     * Calculates the total size taken up by tiles across one axis of a list.\n     * @param tileHeight Height of the tile.\n     */\n    TileStyler.prototype.getTileSpan = function (tileHeight) {\n        return this._rowspan + \" * \" + this.getTileSize(tileHeight, 1);\n    };\n    /**\n     * Sets the vertical placement of the tile in the list.\n     * This method will be implemented by each type of TileStyler.\n     * @docs-private\n     */\n    TileStyler.prototype.setRowStyles = function (tile, rowIndex, percentWidth, gutterWidth) { };\n    /**\n     * Calculates the computed height and returns the correct style property to set.\n     * This method will be implemented by each type of TileStyler.\n     * @docs-private\n     */\n    TileStyler.prototype.getComputedHeight = function () { return null; };\n    return TileStyler;\n}());\n/**\n * This type of styler is instantiated when the user passes in a fixed row height.\n * Example <md-grid-list cols=\"3\" rowHeight=\"100px\">\n * @docs-private\n */\nvar FixedTileStyler = (function (_super) {\n    __extends$9(FixedTileStyler, _super);\n    function FixedTileStyler(fixedRowHeight) {\n        _super.call(this);\n        this.fixedRowHeight = fixedRowHeight;\n    }\n    FixedTileStyler.prototype.init = function (gutterSize, tracker, cols, direction) {\n        _super.prototype.init.call(this, gutterSize, tracker, cols, direction);\n        this.fixedRowHeight = normalizeUnits(this.fixedRowHeight);\n    };\n    FixedTileStyler.prototype.setRowStyles = function (tile, rowIndex, percentWidth, gutterWidth) {\n        tile._setStyle('top', this.getTilePosition(this.fixedRowHeight, rowIndex));\n        tile._setStyle('height', calc(this.getTileSize(this.fixedRowHeight, tile.rowspan)));\n    };\n    FixedTileStyler.prototype.getComputedHeight = function () {\n        return [\n            'height', calc(this.getTileSpan(this.fixedRowHeight) + \" + \" + this.getGutterSpan())\n        ];\n    };\n    return FixedTileStyler;\n}(TileStyler));\n/**\n * This type of styler is instantiated when the user passes in a width:height ratio\n * for the row height.  Example <md-grid-list cols=\"3\" rowHeight=\"3:1\">\n * @docs-private\n */\nvar RatioTileStyler = (function (_super) {\n    __extends$9(RatioTileStyler, _super);\n    function RatioTileStyler(value) {\n        _super.call(this);\n        this._parseRatio(value);\n    }\n    RatioTileStyler.prototype.setRowStyles = function (tile, rowIndex, percentWidth, gutterWidth) {\n        var percentHeightPerTile = percentWidth / this.rowHeightRatio;\n        this.baseTileHeight = this.getBaseTileSize(percentHeightPerTile, gutterWidth);\n        // Use paddingTop and marginTop to maintain the given aspect ratio, as\n        // a percentage-based value for these properties is applied versus the *width* of the\n        // containing block. See http://www.w3.org/TR/CSS2/box.html#margin-properties\n        tile._setStyle('marginTop', this.getTilePosition(this.baseTileHeight, rowIndex));\n        tile._setStyle('paddingTop', calc(this.getTileSize(this.baseTileHeight, tile.rowspan)));\n    };\n    RatioTileStyler.prototype.getComputedHeight = function () {\n        return [\n            'paddingBottom', calc(this.getTileSpan(this.baseTileHeight) + \" + \" + this.getGutterSpan())\n        ];\n    };\n    RatioTileStyler.prototype._parseRatio = function (value) {\n        var ratioParts = value.split(':');\n        if (ratioParts.length !== 2) {\n            throw new MdGridListBadRatioError(value);\n        }\n        this.rowHeightRatio = parseFloat(ratioParts[0]) / parseFloat(ratioParts[1]);\n    };\n    return RatioTileStyler;\n}(TileStyler));\n/**\n * This type of styler is instantiated when the user selects a \"fit\" row height mode.\n * In other words, the row height will reflect the total height of the container divided\n * by the number of rows.  Example <md-grid-list cols=\"3\" rowHeight=\"fit\">\n *\n * @docs-private\n */\nvar FitTileStyler = (function (_super) {\n    __extends$9(FitTileStyler, _super);\n    function FitTileStyler() {\n        _super.apply(this, arguments);\n    }\n    FitTileStyler.prototype.setRowStyles = function (tile, rowIndex, percentWidth, gutterWidth) {\n        // Percent of the available vertical space that one row takes up.\n        var percentHeightPerTile = 100 / this._rowspan;\n        // Fraction of the horizontal gutter size that each column takes up.\n        var gutterHeightPerTile = (this._rows - 1) / this._rows;\n        // Base vertical size of a column.\n        var baseTileHeight = this.getBaseTileSize(percentHeightPerTile, gutterHeightPerTile);\n        tile._setStyle('top', this.getTilePosition(baseTileHeight, rowIndex));\n        tile._setStyle('height', calc(this.getTileSize(baseTileHeight, tile.rowspan)));\n    };\n    return FitTileStyler;\n}(TileStyler));\n/** Wraps a CSS string in a calc function */\nfunction calc(exp) { return \"calc(\" + exp + \")\"; }\n/** Appends pixels to a CSS string if no units are given. */\nfunction normalizeUnits(value) {\n    return (value.match(/px|em|rem/)) ? value : value + 'px';\n}\n\nvar __decorate$36 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$36 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$9 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n// TODO(kara): Conditional (responsive) column count / row size.\n// TODO(kara): Re-layout on window resize / media change (debounced).\n// TODO(kara): gridTileHeader and gridTileFooter.\nvar MD_FIT_MODE = 'fit';\nvar MdGridList = (function () {\n    function MdGridList(_renderer, _element, _dir) {\n        this._renderer = _renderer;\n        this._element = _element;\n        this._dir = _dir;\n        /** The amount of space between tiles. This will be something like '5px' or '2em'. */\n        this._gutter = '1px';\n    }\n    Object.defineProperty(MdGridList.prototype, \"cols\", {\n        /** Amount of columns in the grid list. */\n        get: function () { return this._cols; },\n        set: function (value) { this._cols = coerceToNumber(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdGridList.prototype, \"gutterSize\", {\n        /** Size of the grid list's gutter in pixels. */\n        get: function () { return this._gutter; },\n        set: function (value) { this._gutter = coerceToString(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdGridList.prototype, \"rowHeight\", {\n        /** Set internal representation of row height from the user-provided value. */\n        set: function (value) {\n            this._rowHeight = coerceToString(value);\n            this._setTileStyler();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdGridList.prototype.ngOnInit = function () {\n        this._checkCols();\n        this._checkRowHeight();\n    };\n    /**\n     * The layout calculation is fairly cheap if nothing changes, so there's little cost\n     * to run it frequently.\n     */\n    MdGridList.prototype.ngAfterContentChecked = function () {\n        this._layoutTiles();\n    };\n    /** Throw a friendly error if cols property is missing */\n    MdGridList.prototype._checkCols = function () {\n        if (!this.cols) {\n            throw new MdGridListColsError();\n        }\n    };\n    /** Default to equal width:height if rowHeight property is missing */\n    MdGridList.prototype._checkRowHeight = function () {\n        if (!this._rowHeight) {\n            this._tileStyler = new RatioTileStyler('1:1');\n        }\n    };\n    /** Creates correct Tile Styler subtype based on rowHeight passed in by user */\n    MdGridList.prototype._setTileStyler = function () {\n        if (this._rowHeight === MD_FIT_MODE) {\n            this._tileStyler = new FitTileStyler();\n        }\n        else if (this._rowHeight && this._rowHeight.match(/:/g)) {\n            this._tileStyler = new RatioTileStyler(this._rowHeight);\n        }\n        else {\n            this._tileStyler = new FixedTileStyler(this._rowHeight);\n        }\n    };\n    /** Computes and applies the size and position for all children grid tiles. */\n    MdGridList.prototype._layoutTiles = function () {\n        var tiles = this._tiles.toArray();\n        var tracker = new TileCoordinator(this.cols, tiles);\n        var direction = this._dir ? this._dir.value : 'ltr';\n        this._tileStyler.init(this.gutterSize, tracker, this.cols, direction);\n        for (var i = 0; i < tiles.length; i++) {\n            var pos = tracker.positions[i];\n            var tile = tiles[i];\n            this._tileStyler.setStyle(tile, pos.row, pos.col);\n        }\n        this._setListStyle(this._tileStyler.getComputedHeight());\n    };\n    /** Sets style on the main grid-list element, given the style name and value. */\n    MdGridList.prototype._setListStyle = function (style$$1) {\n        if (style$$1) {\n            this._renderer.setElementStyle(this._element.nativeElement, style$$1[0], style$$1[1]);\n        }\n    };\n    __decorate$36([\n        _angular_core.ContentChildren(MdGridTile), \n        __metadata$36('design:type', _angular_core.QueryList)\n    ], MdGridList.prototype, \"_tiles\", void 0);\n    __decorate$36([\n        _angular_core.Input(), \n        __metadata$36('design:type', Object)\n    ], MdGridList.prototype, \"cols\", null);\n    __decorate$36([\n        _angular_core.Input(), \n        __metadata$36('design:type', Object)\n    ], MdGridList.prototype, \"gutterSize\", null);\n    __decorate$36([\n        _angular_core.Input(), \n        __metadata$36('design:type', Object), \n        __metadata$36('design:paramtypes', [Object])\n    ], MdGridList.prototype, \"rowHeight\", null);\n    MdGridList = __decorate$36([\n        _angular_core.Component({selector: 'md-grid-list, mat-grid-list',\n            template: \"<div class=\\\"md-grid-list\\\"><ng-content></ng-content></div>\",\n            styles: [\"md-grid-list{display:block;position:relative}md-grid-tile{display:block;position:absolute;overflow:hidden}md-grid-tile figure{display:flex;position:absolute;align-items:center;justify-content:center;height:100%;top:0;right:0;bottom:0;left:0;padding:0;margin:0}md-grid-tile md-grid-tile-footer,md-grid-tile md-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;font-size:16px;position:absolute;left:0;right:0}md-grid-tile md-grid-tile-footer [md-line],md-grid-tile md-grid-tile-header [md-line]{white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}md-grid-tile md-grid-tile-footer [md-line]:nth-child(n+2),md-grid-tile md-grid-tile-header [md-line]:nth-child(n+2){font-size:12px}md-grid-tile .md-grid-list-text>*,md-grid-tile md-grid-tile-footer>*,md-grid-tile md-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}md-grid-tile md-grid-tile-footer.md-2-line,md-grid-tile md-grid-tile-header.md-2-line{height:68px}md-grid-tile .md-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}md-grid-tile .md-grid-list-text:empty,md-grid-tile [md-grid-avatar]:empty{display:none}md-grid-tile md-grid-tile-header{top:0}md-grid-tile md-grid-tile-footer{bottom:0}md-grid-tile [md-grid-avatar]{padding-right:16px}[dir=rtl] md-grid-tile [md-grid-avatar]{padding-right:0;padding-left:16px}\"],\n            host: {\n                'role': 'list'\n            },\n            encapsulation: _angular_core.ViewEncapsulation.None,\n        }),\n        __param$9(2, _angular_core.Optional()), \n        __metadata$36('design:paramtypes', [_angular_core.Renderer, _angular_core.ElementRef, Dir])\n    ], MdGridList);\n    return MdGridList;\n}());\nvar MdGridListModule = (function () {\n    function MdGridListModule() {\n    }\n    MdGridListModule.forRoot = function () {\n        return {\n            ngModule: MdGridListModule,\n            providers: []\n        };\n    };\n    MdGridListModule = __decorate$36([\n        _angular_core.NgModule({\n            imports: [MdLineModule, DefaultStyleCompatibilityModeModule],\n            exports: [\n                MdGridList,\n                MdGridTile,\n                MdGridTileText,\n                MdLineModule,\n                DefaultStyleCompatibilityModeModule,\n            ],\n            declarations: [MdGridList, MdGridTile, MdGridTileText],\n        }), \n        __metadata$36('design:paramtypes', [])\n    ], MdGridListModule);\n    return MdGridListModule;\n}());\n\nvar __decorate$38 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$38 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Content of a card, needed as it's used as a selector in the API.\n */\nvar MdCardContent = (function () {\n    function MdCardContent() {\n    }\n    MdCardContent = __decorate$38([\n        _angular_core.Directive({\n            selector: 'md-card-content, mat-card-content'\n        }), \n        __metadata$38('design:paramtypes', [])\n    ], MdCardContent);\n    return MdCardContent;\n}());\n/**\n * Title of a card, needed as it's used as a selector in the API.\n */\nvar MdCardTitle = (function () {\n    function MdCardTitle() {\n    }\n    MdCardTitle = __decorate$38([\n        _angular_core.Directive({\n            selector: 'md-card-title, mat-card-title'\n        }), \n        __metadata$38('design:paramtypes', [])\n    ], MdCardTitle);\n    return MdCardTitle;\n}());\n/**\n * Sub-title of a card, needed as it's used as a selector in the API.\n */\nvar MdCardSubtitle = (function () {\n    function MdCardSubtitle() {\n    }\n    MdCardSubtitle = __decorate$38([\n        _angular_core.Directive({\n            selector: 'md-card-subtitle, mat-card-subtitle'\n        }), \n        __metadata$38('design:paramtypes', [])\n    ], MdCardSubtitle);\n    return MdCardSubtitle;\n}());\n/**\n * Action section of a card, needed as it's used as a selector in the API.\n */\nvar MdCardActions = (function () {\n    function MdCardActions() {\n    }\n    MdCardActions = __decorate$38([\n        _angular_core.Directive({\n            selector: 'md-card-actions, mat-card-actions'\n        }), \n        __metadata$38('design:paramtypes', [])\n    ], MdCardActions);\n    return MdCardActions;\n}());\n/**\n * Footer of a card, needed as it's used as a selector in the API.\n */\nvar MdCardFooter = (function () {\n    function MdCardFooter() {\n    }\n    MdCardFooter = __decorate$38([\n        _angular_core.Directive({\n            selector: 'md-card-footer, mat-card-footer'\n        }), \n        __metadata$38('design:paramtypes', [])\n    ], MdCardFooter);\n    return MdCardFooter;\n}());\n/**\n * A basic content container component that adds the styles of a Material design card.\n *\n * While this component can be used alone, it also provides a number\n * of preset styles for common card sections, including:\n * - md-card-title\n * - md-card-subtitle\n * - md-card-content\n * - md-card-actions\n * - md-card-footer\n */\nvar MdCard = (function () {\n    function MdCard() {\n    }\n    MdCard = __decorate$38([\n        _angular_core.Component({selector: 'md-card, mat-card',\n            template: \"<ng-content></ng-content>\",\n            styles: [\"md-card{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);will-change:box-shadow;display:block;position:relative;padding:24px;border-radius:2px;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif}@media screen and (-ms-high-contrast:active){md-card{outline:solid 1px}}.md-card-flat{box-shadow:none}md-card-actions,md-card-content,md-card-subtitle,md-card-title{display:block;margin-bottom:16px}md-card-title{font-size:24px;font-weight:400}md-card-content,md-card-header md-card-title,md-card-subtitle{font-size:14px}md-card-actions{margin-left:-16px;margin-right:-16px;padding:8px 0}md-card-actions[align=end]{display:flex;justify-content:flex-end}[md-card-image]{width:calc(100% + 48px);margin:0 -24px 16px}[md-card-xl-image]{width:240px;height:240px;margin:-8px}md-card-footer{position:absolute;width:100%;min-height:5px;bottom:0;left:0}md-card-actions [md-button],md-card-actions [md-raised-button]{margin:0 4px}md-card-header{display:flex;flex-direction:row;height:40px;margin:-8px 0 16px}.md-card-header-text{height:40px;margin:0 8px}[md-card-avatar]{height:40px;width:40px;border-radius:50%}[md-card-lg-image],[md-card-md-image],[md-card-sm-image]{margin:-8px 0}md-card-title-group{display:flex;justify-content:space-between;margin:0 -8px}[md-card-sm-image]{width:80px;height:80px}[md-card-md-image]{width:112px;height:112px}[md-card-lg-image]{width:152px;height:152px}@media (max-width:600px){md-card{padding:24px 16px}[md-card-image]{width:calc(100% + 32px);margin:16px -16px}md-card-title-group{margin:0}[md-card-xl-image]{margin-left:0;margin-right:0}md-card-header{margin:-8px 0 0}}md-card-content>:first-child,md-card>:first-child{margin-top:0}md-card-content>:last-child,md-card>:last-child{margin-bottom:0}[md-card-image]:first-child{margin-top:-24px}md-card>md-card-actions:last-child{margin-bottom:-16px;padding-bottom:0}md-card-actions [md-button]:first-child,md-card-actions [md-raised-button]:first-child{margin-left:0;margin-right:0}md-card-subtitle:not(:first-child),md-card-title:not(:first-child){margin-top:-4px}md-card-header md-card-subtitle:not(:first-child),md-card>[md-card-xl-image]:first-child{margin-top:-8px}md-card>[md-card-xl-image]:last-child{margin-bottom:-8px}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n            changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,\n        }), \n        __metadata$38('design:paramtypes', [])\n    ], MdCard);\n    return MdCard;\n}());\n/**\n * Component intended to be used within the `<md-card>` component. It adds styles for a\n * preset header section (i.e. a title, subtitle, and avatar layout).\n */\nvar MdCardHeader = (function () {\n    function MdCardHeader() {\n    }\n    MdCardHeader = __decorate$38([\n        _angular_core.Component({selector: 'md-card-header, mat-card-header',\n            template: \"<ng-content select=\\\"[md-card-avatar], [mat-card-avatar]\\\"></ng-content><div class=\\\"md-card-header-text\\\"><ng-content select=\\\"md-card-title, mat-card-title, md-card-subtitle, mat-card-subtitle\\\"></ng-content></div><ng-content></ng-content>\",\n            encapsulation: _angular_core.ViewEncapsulation.None,\n            changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,\n        }), \n        __metadata$38('design:paramtypes', [])\n    ], MdCardHeader);\n    return MdCardHeader;\n}());\n/**\n * Component intended to be used within the <md-card> component. It adds styles for a preset\n * layout that groups an image with a title section.\n */\nvar MdCardTitleGroup = (function () {\n    function MdCardTitleGroup() {\n    }\n    MdCardTitleGroup = __decorate$38([\n        _angular_core.Component({selector: 'md-card-title-group, mat-card-title-group',\n            template: \"<div><ng-content select=\\\"md-card-title, mat-card-title, md-card-subtitle, mat-card-subtitle\\\"></ng-content></div><ng-content select=\\\"img\\\"></ng-content><ng-content></ng-content>\",\n            encapsulation: _angular_core.ViewEncapsulation.None,\n            changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,\n        }), \n        __metadata$38('design:paramtypes', [])\n    ], MdCardTitleGroup);\n    return MdCardTitleGroup;\n}());\nvar MdCardModule = (function () {\n    function MdCardModule() {\n    }\n    MdCardModule.forRoot = function () {\n        return {\n            ngModule: MdCardModule,\n            providers: []\n        };\n    };\n    MdCardModule = __decorate$38([\n        _angular_core.NgModule({\n            imports: [DefaultStyleCompatibilityModeModule],\n            exports: [\n                MdCard,\n                MdCardHeader,\n                MdCardTitleGroup,\n                MdCardContent,\n                MdCardTitle,\n                MdCardSubtitle,\n                MdCardActions,\n                MdCardFooter,\n                DefaultStyleCompatibilityModeModule,\n            ],\n            declarations: [\n                MdCard, MdCardHeader, MdCardTitleGroup, MdCardContent, MdCardTitle, MdCardSubtitle,\n                MdCardActions, MdCardFooter\n            ],\n        }), \n        __metadata$38('design:paramtypes', [])\n    ], MdCardModule);\n    return MdCardModule;\n}());\n\nvar __decorate$40 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$40 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Material design styled Chip component. Used inside the MdChipList component.\n */\nvar MdChip = (function () {\n    function MdChip(_renderer, _elementRef) {\n        this._renderer = _renderer;\n        this._elementRef = _elementRef;\n        /** Whether or not the chip is disabled. Disabled chips cannot be focused. */\n        this._disabled = null;\n        /** Whether or not the chip is selected. */\n        this._selected = false;\n        /** The palette color of selected chips. */\n        this._color = 'primary';\n        /** Emitted when the chip is focused. */\n        this.onFocus = new _angular_core.EventEmitter();\n        /** Emitted when the chip is selected. */\n        this.select = new _angular_core.EventEmitter();\n        /** Emitted when the chip is deselected. */\n        this.deselect = new _angular_core.EventEmitter();\n        /** Emitted when the chip is destroyed. */\n        this.destroy = new _angular_core.EventEmitter();\n    }\n    MdChip.prototype.ngOnInit = function () {\n        this._addDefaultCSSClass();\n        this._updateColor(this._color);\n    };\n    MdChip.prototype.ngOnDestroy = function () {\n        this.destroy.emit({ chip: this });\n    };\n    Object.defineProperty(MdChip.prototype, \"disabled\", {\n        /** Whether or not the chip is disabled. */\n        get: function () {\n            return this._disabled;\n        },\n        /** Sets the disabled state of the chip. */\n        set: function (value) {\n            this._disabled = coerceBooleanProperty(value) ? true : null;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdChip.prototype, \"_isAriaDisabled\", {\n        /** A String representation of the current disabled state. */\n        get: function () {\n            return String(coerceBooleanProperty(this.disabled));\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdChip.prototype, \"selected\", {\n        /** Whether or not this chip is selected. */\n        get: function () {\n            return this._selected;\n        },\n        set: function (value) {\n            this._selected = coerceBooleanProperty(value);\n            if (this._selected) {\n                this.select.emit({ chip: this });\n            }\n            else {\n                this.deselect.emit({ chip: this });\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Toggles the current selected state of this chip.\n     * @return Whether the chip is selected.\n     */\n    MdChip.prototype.toggleSelected = function () {\n        this.selected = !this.selected;\n        return this.selected;\n    };\n    Object.defineProperty(MdChip.prototype, \"color\", {\n        /** The color of the chip. Can be `primary`, `accent`, or `warn`. */\n        get: function () {\n            return this._color;\n        },\n        set: function (value) {\n            this._updateColor(value);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /** Allows for programmatic focusing of the chip. */\n    MdChip.prototype.focus = function () {\n        this._renderer.invokeElementMethod(this._elementRef.nativeElement, 'focus');\n        this.onFocus.emit({ chip: this });\n    };\n    /** Ensures events fire properly upon click. */\n    MdChip.prototype._handleClick = function (event) {\n        // Check disabled\n        if (this.disabled) {\n            event.preventDefault();\n            event.stopPropagation();\n        }\n        else {\n            this.focus();\n        }\n    };\n    /** Initializes the appropriate CSS classes based on the chip type (basic or standard). */\n    MdChip.prototype._addDefaultCSSClass = function () {\n        var el = this._elementRef.nativeElement;\n        // Always add the `md-chip` class\n        el.classList.add('md-chip');\n        // If we are a basic chip, also add the `md-basic-chip` class for :not() targeting\n        if (el.nodeName.toLowerCase() == 'md-basic-chip' || el.hasAttribute('md-basic-chip')) {\n            el.classList.add('md-basic-chip');\n        }\n    };\n    /** Updates the private _color variable and the native element. */\n    MdChip.prototype._updateColor = function (newColor) {\n        this._setElementColor(this._color, false);\n        this._setElementColor(newColor, true);\n        this._color = newColor;\n    };\n    /** Sets the md-color on the native element. */\n    MdChip.prototype._setElementColor = function (color, isAdd) {\n        if (color != null && color != '') {\n            this._renderer.setElementClass(this._elementRef.nativeElement, \"md-\" + color, isAdd);\n        }\n    };\n    __decorate$40([\n        _angular_core.Output(), \n        __metadata$40('design:type', Object)\n    ], MdChip.prototype, \"select\", void 0);\n    __decorate$40([\n        _angular_core.Output(), \n        __metadata$40('design:type', Object)\n    ], MdChip.prototype, \"deselect\", void 0);\n    __decorate$40([\n        _angular_core.Output(), \n        __metadata$40('design:type', Object)\n    ], MdChip.prototype, \"destroy\", void 0);\n    __decorate$40([\n        _angular_core.Input(), \n        __metadata$40('design:type', Boolean)\n    ], MdChip.prototype, \"disabled\", null);\n    __decorate$40([\n        _angular_core.Input(), \n        __metadata$40('design:type', Boolean)\n    ], MdChip.prototype, \"selected\", null);\n    __decorate$40([\n        _angular_core.Input(), \n        __metadata$40('design:type', String)\n    ], MdChip.prototype, \"color\", null);\n    MdChip = __decorate$40([\n        _angular_core.Component({\n            selector: 'md-basic-chip, [md-basic-chip], md-chip, [md-chip]',\n            template: \"<ng-content></ng-content>\",\n            host: {\n                'tabindex': '-1',\n                'role': 'option',\n                '[class.md-chip-selected]': 'selected',\n                '[attr.disabled]': 'disabled',\n                '[attr.aria-disabled]': '_isAriaDisabled',\n                '(click)': '_handleClick($event)'\n            }\n        }), \n        __metadata$40('design:paramtypes', [_angular_core.Renderer, _angular_core.ElementRef])\n    ], MdChip);\n    return MdChip;\n}());\n\nvar __decorate$39 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$39 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * A material design chips component (named ChipList for it's similarity to the List component).\n *\n * Example:\n *\n *     <md-chip-list>\n *       <md-chip>Chip 1<md-chip>\n *       <md-chip>Chip 2<md-chip>\n *     </md-chip-list>\n */\nvar MdChipList = (function () {\n    function MdChipList(_elementRef) {\n        this._elementRef = _elementRef;\n        /** Track which chips we're listening to for focus/destruction. */\n        this._subscribed = new WeakMap();\n        /** Whether or not the chip is selectable. */\n        this._selectable = true;\n    }\n    MdChipList.prototype.ngAfterContentInit = function () {\n        var _this = this;\n        this._keyManager = new ListKeyManager(this.chips).withFocusWrap();\n        // Go ahead and subscribe all of the initial chips\n        this._subscribeChips(this.chips);\n        // When the list changes, re-subscribe\n        this.chips.changes.subscribe(function (chips) {\n            _this._subscribeChips(chips);\n        });\n    };\n    Object.defineProperty(MdChipList.prototype, \"selectable\", {\n        /**\n         * Whether or not this chip is selectable. When a chip is not selectable,\n         * it's selected state is always ignored.\n         */\n        get: function () {\n            return this._selectable;\n        },\n        set: function (value) {\n            this._selectable = coerceBooleanProperty(value);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Programmatically focus the chip list. This in turn focuses the first\n     * non-disabled chip in this chip list.\n     */\n    MdChipList.prototype.focus = function () {\n        // TODO: ARIA says this should focus the first `selected` chip.\n        this._keyManager.focusFirstItem();\n    };\n    /** Passes relevant key presses to our key manager. */\n    MdChipList.prototype._keydown = function (event) {\n        var target = event.target;\n        // If they are on a chip, check for space/left/right, otherwise pass to our key manager\n        if (target && target.classList.contains('md-chip')) {\n            switch (event.keyCode) {\n                case SPACE:\n                    // If we are selectable, toggle the focused chip\n                    if (this.selectable) {\n                        this._toggleSelectOnFocusedChip();\n                    }\n                    // Always prevent space from scrolling the page since the list has focus\n                    event.preventDefault();\n                    break;\n                case LEFT_ARROW:\n                    this._keyManager.focusPreviousItem();\n                    event.preventDefault();\n                    break;\n                case RIGHT_ARROW:\n                    this._keyManager.focusNextItem();\n                    event.preventDefault();\n                    break;\n                default:\n                    this._keyManager.onKeydown(event);\n            }\n        }\n    };\n    /** Toggles the selected state of the currently focused chip. */\n    MdChipList.prototype._toggleSelectOnFocusedChip = function () {\n        // Allow disabling of chip selection\n        if (!this.selectable) {\n            return;\n        }\n        var focusedIndex = this._keyManager.focusedItemIndex;\n        if (this._isValidIndex(focusedIndex)) {\n            var focusedChip = this.chips.toArray()[focusedIndex];\n            if (focusedChip) {\n                focusedChip.toggleSelected();\n            }\n        }\n    };\n    /**\n     * Iterate through the list of chips and add them to our list of\n     * subscribed chips.\n     *\n     * @param chips The list of chips to be subscribed.\n     */\n    MdChipList.prototype._subscribeChips = function (chips) {\n        var _this = this;\n        chips.forEach(function (chip) { return _this._addChip(chip); });\n    };\n    /**\n     * Add a specific chip to our subscribed list. If the chip has\n     * already been subscribed, this ensures it is only subscribed\n     * once.\n     *\n     * @param chip The chip to be subscribed (or checked for existing\n     * subscription).\n     */\n    MdChipList.prototype._addChip = function (chip) {\n        var _this = this;\n        // If we've already been subscribed to a parent, do nothing\n        if (this._subscribed.has(chip)) {\n            return;\n        }\n        // Watch for focus events outside of the keyboard navigation\n        chip.onFocus.subscribe(function () {\n            var chipIndex = _this.chips.toArray().indexOf(chip);\n            if (_this._isValidIndex(chipIndex)) {\n                _this._keyManager.updateFocusedItemIndex(chipIndex);\n            }\n        });\n        // On destroy, remove the item from our list, and check focus\n        chip.destroy.subscribe(function () {\n            var chipIndex = _this.chips.toArray().indexOf(chip);\n            if (_this._isValidIndex(chipIndex)) {\n                // Check whether the chip is the last item\n                if (chipIndex < _this.chips.length - 1) {\n                    _this._keyManager.setFocus(chipIndex);\n                }\n                else if (chipIndex - 1 >= 0) {\n                    _this._keyManager.setFocus(chipIndex - 1);\n                }\n            }\n            _this._subscribed.delete(chip);\n            chip.destroy.unsubscribe();\n        });\n        this._subscribed.set(chip, true);\n    };\n    /**\n     * Utility to ensure all indexes are valid.\n     *\n     * @param index The index to be checked.\n     * @returns True if the index is valid for our list of chips.\n     */\n    MdChipList.prototype._isValidIndex = function (index) {\n        return index >= 0 && index < this.chips.length;\n    };\n    __decorate$39([\n        _angular_core.Input(), \n        __metadata$39('design:type', Boolean)\n    ], MdChipList.prototype, \"selectable\", null);\n    MdChipList = __decorate$39([\n        _angular_core.Component({selector: 'md-chip-list',\n            template: \"<div class=\\\"md-chip-list-wrapper\\\"><ng-content></ng-content></div>\",\n            host: {\n                // Properties\n                'tabindex': '0',\n                'role': 'listbox',\n                'class': 'md-chip-list',\n                // Events\n                '(focus)': 'focus()',\n                '(keydown)': '_keydown($event)'\n            },\n            queries: {\n                chips: new _angular_core.ContentChildren(MdChip)\n            },\n            styles: [\".md-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-start}.md-chip-list-wrapper .md-chip:not(.md-basic-chip){margin:0 3px}.md-chip-list-wrapper .md-chip:not(.md-basic-chip):first-child{margin-left:0;margin-right:3px}.md-chip-list-wrapper .md-chip:not(.md-basic-chip):last-child,[dir=rtl] .md-chip-list-wrapper .md-chip:not(.md-basic-chip):first-child{margin-left:3px;margin-right:0}[dir=rtl] .md-chip-list-wrapper .md-chip:not(.md-basic-chip):last-child{margin-left:0;margin-right:3px}.md-chip:not(.md-basic-chip){display:inline-block;padding:8px 12px;border-radius:24px;font-size:13px;line-height:16px}.md-chip-list-stacked .md-chip-list-wrapper{display:block}.md-chip-list-stacked .md-chip-list-wrapper .md-chip:not(.md-basic-chip){display:block;margin:0 0 8px}[dir=rtl] .md-chip-list-stacked .md-chip-list-wrapper .md-chip:not(.md-basic-chip){margin:0 0 8px}.md-chip-list-stacked .md-chip-list-wrapper .md-chip:not(.md-basic-chip):last-child,[dir=rtl] .md-chip-list-stacked .md-chip-list-wrapper .md-chip:not(.md-basic-chip):last-child{margin-bottom:0}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n            changeDetection: _angular_core.ChangeDetectionStrategy.OnPush\n        }), \n        __metadata$39('design:paramtypes', [_angular_core.ElementRef])\n    ], MdChipList);\n    return MdChipList;\n}());\nvar MdChipsModule = (function () {\n    function MdChipsModule() {\n    }\n    MdChipsModule.forRoot = function () {\n        return {\n            ngModule: MdChipsModule,\n            providers: []\n        };\n    };\n    MdChipsModule = __decorate$39([\n        _angular_core.NgModule({\n            imports: [],\n            exports: [MdChipList, MdChip],\n            declarations: [MdChipList, MdChip]\n        }), \n        __metadata$39('design:paramtypes', [])\n    ], MdChipsModule);\n    return MdChipsModule;\n}());\n\nvar __extends$11 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate$42 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$42 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Exception thrown when attempting to load an icon with a name that cannot be found.\n * @docs-private\n */\nvar MdIconNameNotFoundError = (function (_super) {\n    __extends$11(MdIconNameNotFoundError, _super);\n    function MdIconNameNotFoundError(iconName) {\n        _super.call(this, \"Unable to find icon with the name \\\"\" + iconName + \"\\\"\");\n    }\n    return MdIconNameNotFoundError;\n}(MdError));\n/**\n * Exception thrown when attempting to load SVG content that does not contain the expected\n * <svg> tag.\n * @docs-private\n */\nvar MdIconSvgTagNotFoundError = (function (_super) {\n    __extends$11(MdIconSvgTagNotFoundError, _super);\n    function MdIconSvgTagNotFoundError() {\n        _super.call(this, '<svg> tag not found');\n    }\n    return MdIconSvgTagNotFoundError;\n}(MdError));\n/**\n * Configuration for an icon, including the URL and possibly the cached SVG element.\n * @docs-private\n */\nvar SvgIconConfig = (function () {\n    function SvgIconConfig(url) {\n        this.url = url;\n        this.svgElement = null;\n    }\n    return SvgIconConfig;\n}());\n/** Returns the cache key to use for an icon namespace and name. */\nvar iconKey = function (namespace, name) { return namespace + ':' + name; };\n/**\n * Service to register and display icons used by the <md-icon> component.\n * - Registers icon URLs by namespace and name.\n * - Registers icon set URLs by namespace.\n * - Registers aliases for CSS classes, for use with icon fonts.\n * - Loads icons from URLs and extracts individual icons from icon sets.\n */\nvar MdIconRegistry = (function () {\n    function MdIconRegistry(_http, _sanitizer) {\n        this._http = _http;\n        this._sanitizer = _sanitizer;\n        /**\n         * URLs and cached SVG elements for individual icons. Keys are of the format \"[namespace]:[icon]\".\n         */\n        this._svgIconConfigs = new Map();\n        /**\n         * SvgIconConfig objects and cached SVG elements for icon sets, keyed by namespace.\n         * Multiple icon sets can be registered under the same namespace.\n         */\n        this._iconSetConfigs = new Map();\n        /** Cache for icons loaded by direct URLs. */\n        this._cachedIconsByUrl = new Map();\n        /** In-progress icon fetches. Used to coalesce multiple requests to the same URL. */\n        this._inProgressUrlFetches = new Map();\n        /** Map from font identifiers to their CSS class names. Used for icon fonts. */\n        this._fontCssClassesByAlias = new Map();\n        /**\n         * The CSS class to apply when an <md-icon> component has no icon name, url, or font specified.\n         * The default 'material-icons' value assumes that the material icon font has been loaded as\n         * described at http://google.github.io/material-design-icons/#icon-font-for-the-web\n         */\n        this._defaultFontSetClass = 'material-icons';\n    }\n    /**\n     * Registers an icon by URL in the default namespace.\n     * @param iconName Name under which the icon should be registered.\n     * @param url\n     */\n    MdIconRegistry.prototype.addSvgIcon = function (iconName, url) {\n        return this.addSvgIconInNamespace('', iconName, url);\n    };\n    /**\n     * Registers an icon by URL in the specified namespace.\n     * @param namespace Namespace in which the icon should be registered.\n     * @param iconName Name under which the icon should be registered.\n     * @param url\n     */\n    MdIconRegistry.prototype.addSvgIconInNamespace = function (namespace, iconName, url) {\n        var key = iconKey(namespace, iconName);\n        this._svgIconConfigs.set(key, new SvgIconConfig(url));\n        return this;\n    };\n    /**\n     * Registers an icon set by URL in the default namespace.\n     * @param url\n     */\n    MdIconRegistry.prototype.addSvgIconSet = function (url) {\n        return this.addSvgIconSetInNamespace('', url);\n    };\n    /**\n     * Registers an icon set by URL in the specified namespace.\n     * @param namespace Namespace in which to register the icon set.\n     * @param url\n     */\n    MdIconRegistry.prototype.addSvgIconSetInNamespace = function (namespace, url) {\n        var config = new SvgIconConfig(url);\n        if (this._iconSetConfigs.has(namespace)) {\n            this._iconSetConfigs.get(namespace).push(config);\n        }\n        else {\n            this._iconSetConfigs.set(namespace, [config]);\n        }\n        return this;\n    };\n    /**\n     * Defines an alias for a CSS class name to be used for icon fonts. Creating an mdIcon\n     * component with the alias as the fontSet input will cause the class name to be applied\n     * to the <md-icon> element.\n     *\n     * @param alias Alias for the font.\n     * @param className Class name override to be used instead of the alias.\n     */\n    MdIconRegistry.prototype.registerFontClassAlias = function (alias, className) {\n        if (className === void 0) { className = alias; }\n        this._fontCssClassesByAlias.set(alias, className);\n        return this;\n    };\n    /**\n     * Returns the CSS class name associated with the alias by a previous call to\n     * registerFontClassAlias. If no CSS class has been associated, returns the alias unmodified.\n     */\n    MdIconRegistry.prototype.classNameForFontAlias = function (alias) {\n        return this._fontCssClassesByAlias.get(alias) || alias;\n    };\n    /**\n     * Sets the CSS class name to be used for icon fonts when an <md-icon> component does not\n     * have a fontSet input value, and is not loading an icon by name or URL.\n     *\n     * @param className\n     */\n    MdIconRegistry.prototype.setDefaultFontSetClass = function (className) {\n        this._defaultFontSetClass = className;\n        return this;\n    };\n    /**\n     * Returns the CSS class name to be used for icon fonts when an <md-icon> component does not\n     * have a fontSet input value, and is not loading an icon by name or URL.\n     */\n    MdIconRegistry.prototype.getDefaultFontSetClass = function () {\n        return this._defaultFontSetClass;\n    };\n    /**\n     * Returns an Observable that produces the icon (as an <svg> DOM element) from the given URL.\n     * The response from the URL may be cached so this will not always cause an HTTP request, but\n     * the produced element will always be a new copy of the originally fetched icon. (That is,\n     * it will not contain any modifications made to elements previously returned).\n     *\n     * @param safeUrl URL from which to fetch the SVG icon.\n     */\n    MdIconRegistry.prototype.getSvgIconFromUrl = function (safeUrl) {\n        var _this = this;\n        var url = this._sanitizer.sanitize(_angular_core.SecurityContext.RESOURCE_URL, safeUrl);\n        if (this._cachedIconsByUrl.has(url)) {\n            return rxjs_Observable.Observable.of(cloneSvg(this._cachedIconsByUrl.get(url)));\n        }\n        return this._loadSvgIconFromConfig(new SvgIconConfig(url))\n            .do(function (svg) { return _this._cachedIconsByUrl.set(url, svg); })\n            .map(function (svg) { return cloneSvg(svg); });\n    };\n    /**\n     * Returns an Observable that produces the icon (as an <svg> DOM element) with the given name\n     * and namespace. The icon must have been previously registered with addIcon or addIconSet;\n     * if not, the Observable will throw an MdIconNameNotFoundError.\n     *\n     * @param name Name of the icon to be retrieved.\n     * @param namespace Namespace in which to look for the icon.\n     */\n    MdIconRegistry.prototype.getNamedSvgIcon = function (name, namespace) {\n        if (namespace === void 0) { namespace = ''; }\n        // Return (copy of) cached icon if possible.\n        var key = iconKey(namespace, name);\n        if (this._svgIconConfigs.has(key)) {\n            return this._getSvgFromConfig(this._svgIconConfigs.get(key));\n        }\n        // See if we have any icon sets registered for the namespace.\n        var iconSetConfigs = this._iconSetConfigs.get(namespace);\n        if (iconSetConfigs) {\n            return this._getSvgFromIconSetConfigs(name, iconSetConfigs);\n        }\n        return rxjs_Observable.Observable.throw(new MdIconNameNotFoundError(key));\n    };\n    /**\n     * Returns the cached icon for a SvgIconConfig if available, or fetches it from its URL if not.\n     */\n    MdIconRegistry.prototype._getSvgFromConfig = function (config) {\n        if (config.svgElement) {\n            // We already have the SVG element for this icon, return a copy.\n            return rxjs_Observable.Observable.of(cloneSvg(config.svgElement));\n        }\n        else {\n            // Fetch the icon from the config's URL, cache it, and return a copy.\n            return this._loadSvgIconFromConfig(config)\n                .do(function (svg) { return config.svgElement = svg; })\n                .map(function (svg) { return cloneSvg(svg); });\n        }\n    };\n    /**\n     * Attempts to find an icon with the specified name in any of the SVG icon sets.\n     * First searches the available cached icons for a nested element with a matching name, and\n     * if found copies the element to a new <svg> element. If not found, fetches all icon sets\n     * that have not been cached, and searches again after all fetches are completed.\n     * The returned Observable produces the SVG element if possible, and throws\n     * MdIconNameNotFoundError if no icon with the specified name can be found.\n     */\n    MdIconRegistry.prototype._getSvgFromIconSetConfigs = function (name, iconSetConfigs) {\n        var _this = this;\n        // For all the icon set SVG elements we've fetched, see if any contain an icon with the\n        // requested name.\n        var namedIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);\n        if (namedIcon) {\n            // We could cache namedIcon in _svgIconConfigs, but since we have to make a copy every\n            // time anyway, there's probably not much advantage compared to just always extracting\n            // it from the icon set.\n            return rxjs_Observable.Observable.of(namedIcon);\n        }\n        // Not found in any cached icon sets. If there are icon sets with URLs that we haven't\n        // fetched, fetch them now and look for iconName in the results.\n        var iconSetFetchRequests = iconSetConfigs\n            .filter(function (iconSetConfig) { return !iconSetConfig.svgElement; })\n            .map(function (iconSetConfig) {\n            return _this._loadSvgIconSetFromConfig(iconSetConfig)\n                .catch(function (err, caught) {\n                var url = _this._sanitizer.sanitize(_angular_core.SecurityContext.RESOURCE_URL, iconSetConfig.url);\n                // Swallow errors fetching individual URLs so the combined Observable won't\n                // necessarily fail.\n                console.log(\"Loading icon set URL: \" + url + \" failed: \" + err);\n                return rxjs_Observable.Observable.of(null);\n            })\n                .do(function (svg) {\n                // Cache SVG element.\n                if (svg) {\n                    iconSetConfig.svgElement = svg;\n                }\n            });\n        });\n        // Fetch all the icon set URLs. When the requests complete, every IconSet should have a\n        // cached SVG element (unless the request failed), and we can check again for the icon.\n        return rxjs_Observable.Observable.forkJoin(iconSetFetchRequests)\n            .map(function (ignoredResults) {\n            var foundIcon = _this._extractIconWithNameFromAnySet(name, iconSetConfigs);\n            if (!foundIcon) {\n                throw new MdIconNameNotFoundError(name);\n            }\n            return foundIcon;\n        });\n    };\n    /**\n     * Searches the cached SVG elements for the given icon sets for a nested icon element whose \"id\"\n     * tag matches the specified name. If found, copies the nested element to a new SVG element and\n     * returns it. Returns null if no matching element is found.\n     */\n    MdIconRegistry.prototype._extractIconWithNameFromAnySet = function (iconName, iconSetConfigs) {\n        // Iterate backwards, so icon sets added later have precedence.\n        for (var i = iconSetConfigs.length - 1; i >= 0; i--) {\n            var config = iconSetConfigs[i];\n            if (config.svgElement) {\n                var foundIcon = this._extractSvgIconFromSet(config.svgElement, iconName, config);\n                if (foundIcon) {\n                    return foundIcon;\n                }\n            }\n        }\n        return null;\n    };\n    /**\n     * Loads the content of the icon URL specified in the SvgIconConfig and creates an SVG element\n     * from it.\n     */\n    MdIconRegistry.prototype._loadSvgIconFromConfig = function (config) {\n        var _this = this;\n        return this._fetchUrl(config.url)\n            .map(function (svgText) { return _this._createSvgElementForSingleIcon(svgText, config); });\n    };\n    /**\n     * Loads the content of the icon set URL specified in the SvgIconConfig and creates an SVG element\n     * from it.\n     */\n    MdIconRegistry.prototype._loadSvgIconSetFromConfig = function (config) {\n        var _this = this;\n        // TODO: Document that icons should only be loaded from trusted sources.\n        return this._fetchUrl(config.url)\n            .map(function (svgText) { return _this._svgElementFromString(svgText); });\n    };\n    /**\n     * Creates a DOM element from the given SVG string, and adds default attributes.\n     */\n    MdIconRegistry.prototype._createSvgElementForSingleIcon = function (responseText, config) {\n        var svg = this._svgElementFromString(responseText);\n        this._setSvgAttributes(svg, config);\n        return svg;\n    };\n    /**\n     * Searches the cached element of the given SvgIconConfig for a nested icon element whose \"id\"\n     * tag matches the specified name. If found, copies the nested element to a new SVG element and\n     * returns it. Returns null if no matching element is found.\n     */\n    MdIconRegistry.prototype._extractSvgIconFromSet = function (iconSet, iconName, config) {\n        var iconNode = iconSet.querySelector('#' + iconName);\n        if (!iconNode) {\n            return null;\n        }\n        // If the icon node is itself an <svg> node, clone and return it directly. If not, set it as\n        // the content of a new <svg> node.\n        if (iconNode.tagName.toLowerCase() == 'svg') {\n            return this._setSvgAttributes(iconNode.cloneNode(true), config);\n        }\n        // createElement('SVG') doesn't work as expected; the DOM ends up with\n        // the correct nodes, but the SVG content doesn't render. Instead we\n        // have to create an empty SVG node using innerHTML and append its content.\n        // Elements created using DOMParser.parseFromString have the same problem.\n        // http://stackoverflow.com/questions/23003278/svg-innerhtml-in-firefox-can-not-display\n        var svg = this._svgElementFromString('<svg></svg>');\n        // Clone the node so we don't remove it from the parent icon set element.\n        svg.appendChild(iconNode.cloneNode(true));\n        return this._setSvgAttributes(svg, config);\n    };\n    /**\n     * Creates a DOM element from the given SVG string.\n     */\n    MdIconRegistry.prototype._svgElementFromString = function (str) {\n        // TODO: Is there a better way than innerHTML? Renderer doesn't appear to have a method for\n        // creating an element from an HTML string.\n        var div = document.createElement('DIV');\n        div.innerHTML = str;\n        var svg = div.querySelector('svg');\n        if (!svg) {\n            throw new MdIconSvgTagNotFoundError();\n        }\n        return svg;\n    };\n    /**\n     * Sets the default attributes for an SVG element to be used as an icon.\n     */\n    MdIconRegistry.prototype._setSvgAttributes = function (svg, config) {\n        if (!svg.getAttribute('xmlns')) {\n            svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\n        }\n        svg.setAttribute('fit', '');\n        svg.setAttribute('height', '100%');\n        svg.setAttribute('width', '100%');\n        svg.setAttribute('preserveAspectRatio', 'xMidYMid meet');\n        svg.setAttribute('focusable', 'false'); // Disable IE11 default behavior to make SVGs focusable.\n        return svg;\n    };\n    /**\n     * Returns an Observable which produces the string contents of the given URL. Results may be\n     * cached, so future calls with the same URL may not cause another HTTP request.\n     */\n    MdIconRegistry.prototype._fetchUrl = function (safeUrl) {\n        var _this = this;\n        var url = this._sanitizer.sanitize(_angular_core.SecurityContext.RESOURCE_URL, safeUrl);\n        // Store in-progress fetches to avoid sending a duplicate request for a URL when there is\n        // already a request in progress for that URL. It's necessary to call share() on the\n        // Observable returned by http.get() so that multiple subscribers don't cause multiple XHRs.\n        if (this._inProgressUrlFetches.has(url)) {\n            return this._inProgressUrlFetches.get(url);\n        }\n        // TODO(jelbourn): for some reason, the `finally` operator \"loses\" the generic type on the\n        // Observable. Figure out why and fix it.\n        var req = this._http.get(url)\n            .map(function (response) { return response.text(); })\n            .finally(function () {\n            _this._inProgressUrlFetches.delete(url);\n        })\n            .share();\n        this._inProgressUrlFetches.set(url, req);\n        return req;\n    };\n    MdIconRegistry = __decorate$42([\n        _angular_core.Injectable(), \n        __metadata$42('design:paramtypes', [_angular_http.Http, _angular_platformBrowser.DomSanitizer])\n    ], MdIconRegistry);\n    return MdIconRegistry;\n}());\n/** Clones an SVGElement while preserving type information. */\nfunction cloneSvg(svg) {\n    return svg.cloneNode(true);\n}\n\nvar __extends$10 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate$41 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$41 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/** Exception thrown when an invalid icon name is passed to an md-icon component. */\nvar MdIconInvalidNameError = (function (_super) {\n    __extends$10(MdIconInvalidNameError, _super);\n    function MdIconInvalidNameError(iconName) {\n        _super.call(this, \"Invalid icon name: \\\"\" + iconName + \"\\\"\");\n    }\n    return MdIconInvalidNameError;\n}(MdError));\n/**\n * Component to display an icon. It can be used in the following ways:\n * - Specify the svgSrc input to load an SVG icon from a URL. The SVG content is directly inlined\n *   as a child of the <md-icon> component, so that CSS styles can easily be applied to it.\n *   The URL is loaded via an XMLHttpRequest, so it must be on the same domain as the page or its\n *   server must be configured to allow cross-domain requests.\n *   Example:\n *     <md-icon svgSrc=\"assets/arrow.svg\"></md-icon>\n *\n * - Specify the svgIcon input to load an SVG icon from a URL previously registered with the\n *   addSvgIcon, addSvgIconInNamespace, addSvgIconSet, or addSvgIconSetInNamespace methods of\n *   MdIconRegistry. If the svgIcon value contains a colon it is assumed to be in the format\n *   \"[namespace]:[name]\", if not the value will be the name of an icon in the default namespace.\n *   Examples:\n *     <md-icon svgIcon=\"left-arrow\"></md-icon>\n *     <md-icon svgIcon=\"animals:cat\"></md-icon>\n *\n * - Use a font ligature as an icon by putting the ligature text in the content of the <md-icon>\n *   component. By default the Material icons font is used as described at\n *   http://google.github.io/material-design-icons/#icon-font-for-the-web. You can specify an\n *   alternate font by setting the fontSet input to either the CSS class to apply to use the\n *   desired font, or to an alias previously registered with MdIconRegistry.registerFontClassAlias.\n *   Examples:\n *     <md-icon>home</md-icon>\n *     <md-icon fontSet=\"myfont\">sun</md-icon>\n *\n * - Specify a font glyph to be included via CSS rules by setting the fontSet input to specify the\n *   font, and the fontIcon input to specify the icon. Typically the fontIcon will specify a\n *   CSS class which causes the glyph to be displayed via a :before selector, as in\n *   https://fortawesome.github.io/Font-Awesome/examples/\n *   Example:\n *     <md-icon fontSet=\"fa\" fontIcon=\"alarm\"></md-icon>\n */\nvar MdIcon = (function () {\n    function MdIcon(_elementRef, _renderer, _mdIconRegistry) {\n        this._elementRef = _elementRef;\n        this._renderer = _renderer;\n        this._mdIconRegistry = _mdIconRegistry;\n        /** Screenreader label for the icon. */\n        this.hostAriaLabel = '';\n    }\n    Object.defineProperty(MdIcon.prototype, \"color\", {\n        /** Color of the icon. */\n        get: function () { return this._color; },\n        set: function (value) { this._updateColor(value); },\n        enumerable: true,\n        configurable: true\n    });\n    MdIcon.prototype._updateColor = function (newColor) {\n        this._setElementColor(this._color, false);\n        this._setElementColor(newColor, true);\n        this._color = newColor;\n    };\n    MdIcon.prototype._setElementColor = function (color, isAdd) {\n        if (color != null && color != '') {\n            this._renderer.setElementClass(this._elementRef.nativeElement, \"md-\" + color, isAdd);\n        }\n    };\n    /**\n     * Splits an svgIcon binding value into its icon set and icon name components.\n     * Returns a 2-element array of [(icon set), (icon name)].\n     * The separator for the two fields is ':'. If there is no separator, an empty\n     * string is returned for the icon set and the entire value is returned for\n     * the icon name. If the argument is falsy, returns an array of two empty strings.\n     * Throws a MdIconInvalidNameError if the name contains two or more ':' separators.\n     * Examples:\n     *   'social:cake' -> ['social', 'cake']\n     *   'penguin' -> ['', 'penguin']\n     *   null -> ['', '']\n     *   'a:b:c' -> (throws MdIconInvalidNameError)\n     */\n    MdIcon.prototype._splitIconName = function (iconName) {\n        if (!iconName) {\n            return ['', ''];\n        }\n        var parts = iconName.split(':');\n        switch (parts.length) {\n            case 1:\n                // Use default namespace.\n                return ['', parts[0]];\n            case 2:\n                return parts;\n            default:\n                throw new MdIconInvalidNameError(iconName);\n        }\n    };\n    MdIcon.prototype.ngOnChanges = function (changes) {\n        var _this = this;\n        var changedInputs = Object.keys(changes);\n        // Only update the inline SVG icon if the inputs changed, to avoid unnecessary DOM operations.\n        if (changedInputs.indexOf('svgIcon') != -1 || changedInputs.indexOf('svgSrc') != -1) {\n            if (this.svgIcon) {\n                var _a = this._splitIconName(this.svgIcon), namespace = _a[0], iconName = _a[1];\n                this._mdIconRegistry.getNamedSvgIcon(iconName, namespace).first().subscribe(function (svg) { return _this._setSvgElement(svg); }, function (err) { return console.log(\"Error retrieving icon: \" + err); });\n            }\n        }\n        if (this._usingFontIcon()) {\n            this._updateFontIconClasses();\n        }\n        this._updateAriaLabel();\n    };\n    MdIcon.prototype.ngOnInit = function () {\n        // Update font classes because ngOnChanges won't be called if none of the inputs are present,\n        // e.g. <md-icon>arrow</md-icon>. In this case we need to add a CSS class for the default font.\n        if (this._usingFontIcon()) {\n            this._updateFontIconClasses();\n        }\n    };\n    MdIcon.prototype.ngAfterViewChecked = function () {\n        // Update aria label here because it may depend on the projected text content.\n        // (e.g. <md-icon>home</md-icon> should use 'home').\n        this._updateAriaLabel();\n    };\n    MdIcon.prototype._updateAriaLabel = function () {\n        var ariaLabel = this._getAriaLabel();\n        if (ariaLabel) {\n            this._renderer.setElementAttribute(this._elementRef.nativeElement, 'aria-label', ariaLabel);\n        }\n    };\n    MdIcon.prototype._getAriaLabel = function () {\n        // If the parent provided an aria-label attribute value, use it as-is. Otherwise look for a\n        // reasonable value from the alt attribute, font icon name, SVG icon name, or (for ligatures)\n        // the text content of the directive.\n        var label = this.hostAriaLabel ||\n            this.alt ||\n            this.fontIcon ||\n            this._splitIconName(this.svgIcon)[1];\n        if (label) {\n            return label;\n        }\n        // The \"content\" of an SVG icon is not a useful label.\n        if (this._usingFontIcon()) {\n            var text = this._elementRef.nativeElement.textContent;\n            if (text) {\n                return text;\n            }\n        }\n        // TODO: Warn here in dev mode.\n        return null;\n    };\n    MdIcon.prototype._usingFontIcon = function () {\n        return !this.svgIcon;\n    };\n    MdIcon.prototype._setSvgElement = function (svg) {\n        var layoutElement = this._elementRef.nativeElement;\n        // Remove existing child nodes and add the new SVG element.\n        // We would use renderer.detachView(Array.from(layoutElement.childNodes)) here,\n        // but it fails in IE11: https://github.com/angular/angular/issues/6327\n        layoutElement.innerHTML = '';\n        this._renderer.projectNodes(layoutElement, [svg]);\n    };\n    MdIcon.prototype._updateFontIconClasses = function () {\n        if (!this._usingFontIcon()) {\n            return;\n        }\n        var elem = this._elementRef.nativeElement;\n        var fontSetClass = this.fontSet ?\n            this._mdIconRegistry.classNameForFontAlias(this.fontSet) :\n            this._mdIconRegistry.getDefaultFontSetClass();\n        if (fontSetClass != this._previousFontSetClass) {\n            if (this._previousFontSetClass) {\n                this._renderer.setElementClass(elem, this._previousFontSetClass, false);\n            }\n            if (fontSetClass) {\n                this._renderer.setElementClass(elem, fontSetClass, true);\n            }\n            this._previousFontSetClass = fontSetClass;\n        }\n        if (this.fontIcon != this._previousFontIconClass) {\n            if (this._previousFontIconClass) {\n                this._renderer.setElementClass(elem, this._previousFontIconClass, false);\n            }\n            if (this.fontIcon) {\n                this._renderer.setElementClass(elem, this.fontIcon, true);\n            }\n            this._previousFontIconClass = this.fontIcon;\n        }\n    };\n    __decorate$41([\n        _angular_core.Input(), \n        __metadata$41('design:type', String)\n    ], MdIcon.prototype, \"svgIcon\", void 0);\n    __decorate$41([\n        _angular_core.Input(), \n        __metadata$41('design:type', String)\n    ], MdIcon.prototype, \"fontSet\", void 0);\n    __decorate$41([\n        _angular_core.Input(), \n        __metadata$41('design:type', String)\n    ], MdIcon.prototype, \"fontIcon\", void 0);\n    __decorate$41([\n        _angular_core.Input(), \n        __metadata$41('design:type', String)\n    ], MdIcon.prototype, \"alt\", void 0);\n    __decorate$41([\n        _angular_core.Input('aria-label'), \n        __metadata$41('design:type', String)\n    ], MdIcon.prototype, \"hostAriaLabel\", void 0);\n    __decorate$41([\n        _angular_core.Input(), \n        __metadata$41('design:type', String)\n    ], MdIcon.prototype, \"color\", null);\n    MdIcon = __decorate$41([\n        _angular_core.Component({template: '<ng-content></ng-content>',\n            selector: 'md-icon, mat-icon',\n            styles: [\"md-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}\"],\n            host: {\n                'role': 'img',\n            },\n            encapsulation: _angular_core.ViewEncapsulation.None,\n            changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,\n        }), \n        __metadata$41('design:paramtypes', [_angular_core.ElementRef, _angular_core.Renderer, MdIconRegistry])\n    ], MdIcon);\n    return MdIcon;\n}());\nvar MdIconModule = (function () {\n    function MdIconModule() {\n    }\n    MdIconModule.forRoot = function () {\n        return {\n            ngModule: MdIconModule,\n            providers: [MdIconRegistry],\n        };\n    };\n    MdIconModule = __decorate$41([\n        _angular_core.NgModule({\n            imports: [_angular_http.HttpModule, DefaultStyleCompatibilityModeModule],\n            exports: [MdIcon, DefaultStyleCompatibilityModeModule],\n            declarations: [MdIcon],\n        }), \n        __metadata$41('design:paramtypes', [])\n    ], MdIconModule);\n    return MdIconModule;\n}());\n\nvar __extends$12 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate$43 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$43 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n// TODO(josephperrott): Benchpress tests.\n/** A single degree in radians. */\nvar DEGREE_IN_RADIANS = Math.PI / 180;\n/** Duration of the indeterminate animation. */\nvar DURATION_INDETERMINATE = 667;\n/** Duration of the indeterminate animation. */\nvar DURATION_DETERMINATE = 225;\n/** Start animation value of the indeterminate animation */\nvar startIndeterminate = 3;\n/** End animation value of the indeterminate animation */\nvar endIndeterminate = 80;\n/* Maximum angle for the arc. The angle can't be exactly 360, because the arc becomes hidden. */\nvar MAX_ANGLE = 359.99 / 100;\n/**\n * <md-progress-spinner> component.\n */\nvar MdProgressSpinner = (function () {\n    function MdProgressSpinner(_changeDetectorRef, _ngZone, _elementRef) {\n        this._changeDetectorRef = _changeDetectorRef;\n        this._ngZone = _ngZone;\n        this._elementRef = _elementRef;\n        /** The id of the last requested animation. */\n        this._lastAnimationId = 0;\n        this._mode = 'determinate';\n        this.color = 'primary';\n    }\n    Object.defineProperty(MdProgressSpinner.prototype, \"_ariaValueMin\", {\n        /**\n         * Values for aria max and min are only defined as numbers when in a determinate mode.  We do this\n         * because voiceover does not report the progress indicator as indeterminate if the aria min\n         * and/or max value are number values.\n         */\n        get: function () {\n            return this.mode == 'determinate' ? 0 : null;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdProgressSpinner.prototype, \"_ariaValueMax\", {\n        get: function () {\n            return this.mode == 'determinate' ? 100 : null;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdProgressSpinner.prototype, \"interdeterminateInterval\", {\n        /** @docs-private */\n        get: function () {\n            return this._interdeterminateInterval;\n        },\n        /** @docs-private */\n        set: function (interval) {\n            clearInterval(this._interdeterminateInterval);\n            this._interdeterminateInterval = interval;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Clean up any animations that were running.\n     */\n    MdProgressSpinner.prototype.ngOnDestroy = function () {\n        this._cleanupIndeterminateAnimation();\n    };\n    Object.defineProperty(MdProgressSpinner.prototype, \"value\", {\n        get: function () {\n            if (this.mode == 'determinate') {\n                return this._value;\n            }\n        },\n        set: function (v) {\n            if (v != null && this.mode == 'determinate') {\n                var newValue = clamp(v);\n                this._animateCircle((this.value || 0), newValue, linearEase, DURATION_DETERMINATE, 0);\n                this._value = newValue;\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdProgressSpinner.prototype, \"mode\", {\n        /**\n         * Mode of the progress circle\n         *\n         * Input must be one of the values from ProgressMode, defaults to 'determinate'.\n         * mode is bound to the host as the attribute host.\n         */\n        get: function () {\n            return this._mode;\n        },\n        set: function (m) {\n            if (m == 'indeterminate') {\n                this._startIndeterminateAnimation();\n            }\n            else {\n                this._cleanupIndeterminateAnimation();\n            }\n            this._mode = m;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Animates the circle from one percentage value to another.\n     *\n     * @param animateFrom The percentage of the circle filled starting the animation.\n     * @param animateTo The percentage of the circle filled ending the animation.\n     * @param ease The easing function to manage the pace of change in the animation.\n     * @param duration The length of time to show the animation, in milliseconds.\n     * @param rotation The starting angle of the circle fill, with 0° represented at the top center\n     *    of the circle.\n     */\n    MdProgressSpinner.prototype._animateCircle = function (animateFrom, animateTo, ease, duration, rotation) {\n        var _this = this;\n        var id = ++this._lastAnimationId;\n        var startTime = Date.now();\n        var changeInValue = animateTo - animateFrom;\n        // No need to animate it if the values are the same\n        if (animateTo === animateFrom) {\n            this._renderArc(animateTo, rotation);\n        }\n        else {\n            var animation_1 = function () {\n                var elapsedTime = Math.max(0, Math.min(Date.now() - startTime, duration));\n                _this._renderArc(ease(elapsedTime, animateFrom, changeInValue, duration), rotation);\n                // Prevent overlapping animations by checking if a new animation has been called for and\n                // if the animation has lasted longer than the animation duration.\n                if (id === _this._lastAnimationId && elapsedTime < duration) {\n                    requestAnimationFrame(animation_1);\n                }\n            };\n            // Run the animation outside of Angular's zone, in order to avoid\n            // hitting ZoneJS and change detection on each frame.\n            this._ngZone.runOutsideAngular(animation_1);\n        }\n    };\n    /**\n     * Starts the indeterminate animation interval, if it is not already running.\n     */\n    MdProgressSpinner.prototype._startIndeterminateAnimation = function () {\n        var _this = this;\n        var rotationStartPoint = 0;\n        var start = startIndeterminate;\n        var end = endIndeterminate;\n        var duration = DURATION_INDETERMINATE;\n        var animate$$1 = function () {\n            _this._animateCircle(start, end, materialEase, duration, rotationStartPoint);\n            // Prevent rotation from reaching Number.MAX_SAFE_INTEGER.\n            rotationStartPoint = (rotationStartPoint + end) % 100;\n            var temp = start;\n            start = -end;\n            end = -temp;\n        };\n        if (!this.interdeterminateInterval) {\n            this._ngZone.runOutsideAngular(function () {\n                _this.interdeterminateInterval = setInterval(animate$$1, duration + 50, 0, false);\n                animate$$1();\n            });\n        }\n    };\n    /**\n     * Removes interval, ending the animation.\n     */\n    MdProgressSpinner.prototype._cleanupIndeterminateAnimation = function () {\n        this.interdeterminateInterval = null;\n    };\n    /**\n     * Renders the arc onto the SVG element. Proxies `getArc` while setting the proper\n     * DOM attribute on the `<path>`.\n     */\n    MdProgressSpinner.prototype._renderArc = function (currentValue, rotation) {\n        // Caches the path reference so it doesn't have to be looked up every time.\n        var path = this._path = this._path || this._elementRef.nativeElement.querySelector('path');\n        // Ensure that the path was found. This may not be the case if the\n        // animation function fires too early.\n        if (path) {\n            path.setAttribute('d', getSvgArc(currentValue, rotation));\n        }\n    };\n    __decorate$43([\n        _angular_core.Input(),\n        _angular_core.HostBinding('attr.aria-valuenow'), \n        __metadata$43('design:type', Object)\n    ], MdProgressSpinner.prototype, \"value\", null);\n    __decorate$43([\n        _angular_core.HostBinding('attr.mode'),\n        _angular_core.Input(), \n        __metadata$43('design:type', Object)\n    ], MdProgressSpinner.prototype, \"mode\", null);\n    __decorate$43([\n        _angular_core.Input(), \n        __metadata$43('design:type', Object)\n    ], MdProgressSpinner.prototype, \"color\", void 0);\n    MdProgressSpinner = __decorate$43([\n        _angular_core.Component({selector: 'md-progress-spinner, mat-progress-spinner, md-progress-circle, mat-progress-circle',\n            host: {\n                'role': 'progressbar',\n                '[attr.aria-valuemin]': '_ariaValueMin',\n                '[attr.aria-valuemax]': '_ariaValueMax',\n                '[class.md-primary]': 'color == \"primary\"',\n                '[class.md-accent]': 'color == \"accent\"',\n                '[class.md-warn]': 'color == \"warn\"',\n            },\n            template: \"<svg viewBox=\\\"0 0 100 100\\\" preserveAspectRatio=\\\"xMidYMid meet\\\"><path></path></svg>\",\n            styles: [\":host{display:block;height:100px;width:100px;overflow:hidden}:host svg{height:100%;width:100%;transform-origin:center}:host path{fill:transparent;stroke-width:10px}:host[mode=indeterminate] svg{animation-duration:5.25s,2.887s;animation-name:md-progress-spinner-sporadic-rotate,md-progress-spinner-linear-rotate;animation-timing-function:cubic-bezier(.35,0,.25,1),linear;animation-iteration-count:infinite;transition:none}@keyframes md-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes md-progress-spinner-sporadic-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}\"],\n            changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,\n        }), \n        __metadata$43('design:paramtypes', [_angular_core.ChangeDetectorRef, _angular_core.NgZone, _angular_core.ElementRef])\n    ], MdProgressSpinner);\n    return MdProgressSpinner;\n}());\n/**\n * <md-spinner> component.\n *\n * This is a component definition to be used as a convenience reference to create an\n * indeterminate <md-progress-spinner> instance.\n */\nvar MdSpinner = (function (_super) {\n    __extends$12(MdSpinner, _super);\n    function MdSpinner(changeDetectorRef, elementRef, ngZone) {\n        _super.call(this, changeDetectorRef, ngZone, elementRef);\n        this.mode = 'indeterminate';\n    }\n    MdSpinner.prototype.ngOnDestroy = function () {\n        // The `ngOnDestroy` from `MdProgressSpinner` should be called explicitly, because\n        // in certain cases Angular won't call it (e.g. when using AoT and in unit tests).\n        _super.prototype.ngOnDestroy.call(this);\n    };\n    MdSpinner = __decorate$43([\n        _angular_core.Component({selector: 'md-spinner, mat-spinner',\n            host: {\n                'role': 'progressbar',\n                'mode': 'indeterminate',\n            },\n            template: \"<svg viewBox=\\\"0 0 100 100\\\" preserveAspectRatio=\\\"xMidYMid meet\\\"><path></path></svg>\",\n            styles: [\":host{display:block;height:100px;width:100px;overflow:hidden}:host svg{height:100%;width:100%;transform-origin:center}:host path{fill:transparent;stroke-width:10px}:host[mode=indeterminate] svg{animation-duration:5.25s,2.887s;animation-name:md-progress-spinner-sporadic-rotate,md-progress-spinner-linear-rotate;animation-timing-function:cubic-bezier(.35,0,.25,1),linear;animation-iteration-count:infinite;transition:none}@keyframes md-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes md-progress-spinner-sporadic-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}\"],\n        }), \n        __metadata$43('design:paramtypes', [_angular_core.ChangeDetectorRef, _angular_core.ElementRef, _angular_core.NgZone])\n    ], MdSpinner);\n    return MdSpinner;\n}(MdProgressSpinner));\n/**\n * Module functions.\n */\n/** Clamps a value to be between 0 and 100. */\nfunction clamp(v) {\n    return Math.max(0, Math.min(100, v));\n}\n/**\n * Converts Polar coordinates to Cartesian.\n */\nfunction polarToCartesian(radius, pathRadius, angleInDegrees) {\n    var angleInRadians = (angleInDegrees - 90) * DEGREE_IN_RADIANS;\n    return (radius + (pathRadius * Math.cos(angleInRadians))) +\n        ',' + (radius + (pathRadius * Math.sin(angleInRadians)));\n}\n/**\n * Easing function for linear animation.\n */\nfunction linearEase(currentTime, startValue, changeInValue, duration) {\n    return changeInValue * currentTime / duration + startValue;\n}\n/**\n * Easing function to match material design indeterminate animation.\n */\nfunction materialEase(currentTime, startValue, changeInValue, duration) {\n    var time = currentTime / duration;\n    var timeCubed = Math.pow(time, 3);\n    var timeQuad = Math.pow(time, 4);\n    var timeQuint = Math.pow(time, 5);\n    return startValue + changeInValue * ((6 * timeQuint) + (-15 * timeQuad) + (10 * timeCubed));\n}\n/**\n * Determines the path value to define the arc.  Converting percentage values to to polar\n * coordinates on the circle, and then to cartesian coordinates in the viewport.\n *\n * @param currentValue The current percentage value of the progress circle, the percentage of the\n *    circle to fill.\n * @param rotation The starting point of the circle with 0 being the 0 degree point.\n * @return A string for an SVG path representing a circle filled from the starting point to the\n *    percentage value provided.\n */\nfunction getSvgArc(currentValue, rotation) {\n    var startPoint = rotation || 0;\n    var radius = 50;\n    var pathRadius = 40;\n    var startAngle = startPoint * MAX_ANGLE;\n    var endAngle = currentValue * MAX_ANGLE;\n    var start = polarToCartesian(radius, pathRadius, startAngle);\n    var end = polarToCartesian(radius, pathRadius, endAngle + startAngle);\n    var arcSweep = endAngle < 0 ? 0 : 1;\n    var largeArcFlag;\n    if (endAngle < 0) {\n        largeArcFlag = endAngle >= -180 ? 0 : 1;\n    }\n    else {\n        largeArcFlag = endAngle <= 180 ? 0 : 1;\n    }\n    return \"M\" + start + \"A\" + pathRadius + \",\" + pathRadius + \" 0 \" + largeArcFlag + \",\" + arcSweep + \" \" + end;\n}\nvar MdProgressSpinnerModule = (function () {\n    function MdProgressSpinnerModule() {\n    }\n    MdProgressSpinnerModule.forRoot = function () {\n        return {\n            ngModule: MdProgressSpinnerModule,\n            providers: []\n        };\n    };\n    MdProgressSpinnerModule = __decorate$43([\n        _angular_core.NgModule({\n            imports: [DefaultStyleCompatibilityModeModule],\n            exports: [MdProgressSpinner, MdSpinner, DefaultStyleCompatibilityModeModule],\n            declarations: [MdProgressSpinner, MdSpinner],\n        }), \n        __metadata$43('design:paramtypes', [])\n    ], MdProgressSpinnerModule);\n    return MdProgressSpinnerModule;\n}());\n\n/** @deprecated */\n\nvar __decorate$44 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$44 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n// TODO(josephperrott): Benchpress tests.\n// TODO(josephperrott): Add ARIA attributes for progressbar \"for\".\n/**\n * <md-progress-bar> component.\n */\nvar MdProgressBar = (function () {\n    function MdProgressBar() {\n        /** Color of the progress bar. */\n        this.color = 'primary';\n        this._value = 0;\n        this._bufferValue = 0;\n        /**\n         * Mode of the progress bar.\n         *\n         * Input must be one of these values: determinate, indeterminate, buffer, query, defaults to\n         * 'determinate'.\n         * Mirrored to mode attribute.\n         */\n        this.mode = 'determinate';\n    }\n    Object.defineProperty(MdProgressBar.prototype, \"value\", {\n        /** Value of the progressbar. Defaults to zero. Mirrored to aria-valuenow. */\n        get: function () { return this._value; },\n        set: function (v) { this._value = clamp$1(v || 0); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdProgressBar.prototype, \"bufferValue\", {\n        /** Buffer value of the progress bar. Defaults to zero. */\n        get: function () { return this._bufferValue; },\n        set: function (v) { this._bufferValue = clamp$1(v || 0); },\n        enumerable: true,\n        configurable: true\n    });\n    /** Gets the current transform value for the progress bar's primary indicator. */\n    MdProgressBar.prototype._primaryTransform = function () {\n        var scale = this.value / 100;\n        return { transform: \"scaleX(\" + scale + \")\" };\n    };\n    /**\n     * Gets the current transform value for the progress bar's buffer indicator.  Only used if the\n     * progress mode is set to buffer, otherwise returns an undefined, causing no transformation.\n     */\n    MdProgressBar.prototype._bufferTransform = function () {\n        if (this.mode == 'buffer') {\n            var scale = this.bufferValue / 100;\n            return { transform: \"scaleX(\" + scale + \")\" };\n        }\n    };\n    __decorate$44([\n        _angular_core.Input(), \n        __metadata$44('design:type', Object)\n    ], MdProgressBar.prototype, \"color\", void 0);\n    __decorate$44([\n        _angular_core.Input(),\n        _angular_core.HostBinding('attr.aria-valuenow'), \n        __metadata$44('design:type', Object)\n    ], MdProgressBar.prototype, \"value\", null);\n    __decorate$44([\n        _angular_core.Input(), \n        __metadata$44('design:type', Object)\n    ], MdProgressBar.prototype, \"bufferValue\", null);\n    __decorate$44([\n        _angular_core.Input(),\n        _angular_core.HostBinding('attr.mode'), \n        __metadata$44('design:type', Object)\n    ], MdProgressBar.prototype, \"mode\", void 0);\n    MdProgressBar = __decorate$44([\n        _angular_core.Component({selector: 'md-progress-bar, mat-progress-bar',\n            host: {\n                'role': 'progressbar',\n                'aria-valuemin': '0',\n                'aria-valuemax': '100',\n                '[class.md-primary]': 'color == \"primary\"',\n                '[class.md-accent]': 'color == \"accent\"',\n                '[class.md-warn]': 'color == \"warn\"',\n            },\n            template: \"<div class=\\\"md-progress-bar-background\\\"></div><div class=\\\"md-progress-bar-buffer\\\" [ngStyle]=\\\"_bufferTransform()\\\"></div><div class=\\\"md-progress-bar-primary md-progress-bar-fill\\\" [ngStyle]=\\\"_primaryTransform()\\\"></div><div class=\\\"md-progress-bar-secondary md-progress-bar-fill\\\"></div>\",\n            styles: [\":host{display:block;height:5px;overflow:hidden;position:relative;transform:translateZ(0);transition:opacity 250ms linear;width:100%}:host .md-progress-bar-background{background-repeat:repeat-x;background-size:10px 4px;height:100%;position:absolute;visibility:hidden;width:100%}:host .md-progress-bar-buffer{height:100%;position:absolute;transform-origin:top left;transition:transform 250ms ease;width:100%}:host .md-progress-bar-secondary{visibility:hidden}:host .md-progress-bar-fill{animation:none;height:100%;position:absolute;transform-origin:top left;transition:transform 250ms ease;width:100%}:host .md-progress-bar-fill::after{animation:none;content:'';display:inline-block;height:100%;position:absolute;width:100%;left:0}:host[mode=query]{transform:rotateZ(180deg)}:host[mode=query] .md-progress-bar-fill,:host[mode=indeterminate] .md-progress-bar-fill{transition:none}:host[mode=query] .md-progress-bar-primary,:host[mode=indeterminate] .md-progress-bar-primary{animation:md-progress-bar-primary-indeterminate-translate 2s infinite linear;left:-145.166611%}:host[mode=query] .md-progress-bar-primary.md-progress-bar-fill::after,:host[mode=indeterminate] .md-progress-bar-primary.md-progress-bar-fill::after{animation:md-progress-bar-primary-indeterminate-scale 2s infinite linear}:host[mode=query] .md-progress-bar-secondary,:host[mode=indeterminate] .md-progress-bar-secondary{animation:md-progress-bar-secondary-indeterminate-translate 2s infinite linear;left:-54.888891%;visibility:visible}:host[mode=query] .md-progress-bar-secondary.md-progress-bar-fill::after,:host[mode=indeterminate] .md-progress-bar-secondary.md-progress-bar-fill::after{animation:md-progress-bar-secondary-indeterminate-scale 2s infinite linear}:host[mode=buffer] .md-progress-bar-background{animation:md-progress-bar-background-scroll 250ms infinite linear;visibility:visible}:host-context([dir=rtl]){transform:rotateY(180deg)}@keyframes md-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(.5,0,.70173,.49582);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635);transform:translateX(83.67142%)}100%{transform:translateX(200.61106%)}}@keyframes md-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(.08)}36.65%{animation-timing-function:cubic-bezier(.33473,.12482,.78584,1);transform:scaleX(.08)}69.15%{animation-timing-function:cubic-bezier(.06,.11,.6,1);transform:scaleX(.66148)}100%{transform:scaleX(.08)}}@keyframes md-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:translateX(37.65191%)}48.35%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:translateX(84.38617%)}100%{transform:translateX(160.27778%)}}@keyframes md-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:scaleX(.08)}19.15%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:scaleX(.4571)}44.15%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:scaleX(.72796)}100%{transform:scaleX(.08)}}@keyframes md-progress-bar-background-scroll{to{transform:translateX(-10px)}}\"],\n            changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,\n        }), \n        __metadata$44('design:paramtypes', [])\n    ], MdProgressBar);\n    return MdProgressBar;\n}());\n/** Clamps a value to be between two numbers, by default 0 and 100. */\nfunction clamp$1(v, min, max) {\n    if (min === void 0) { min = 0; }\n    if (max === void 0) { max = 100; }\n    return Math.max(min, Math.min(max, v));\n}\nvar MdProgressBarModule = (function () {\n    function MdProgressBarModule() {\n    }\n    MdProgressBarModule.forRoot = function () {\n        return {\n            ngModule: MdProgressBarModule,\n            providers: []\n        };\n    };\n    MdProgressBarModule = __decorate$44([\n        _angular_core.NgModule({\n            imports: [_angular_common.CommonModule, DefaultStyleCompatibilityModeModule],\n            exports: [MdProgressBar, DefaultStyleCompatibilityModeModule],\n            declarations: [MdProgressBar],\n        }), \n        __metadata$44('design:paramtypes', [])\n    ], MdProgressBarModule);\n    return MdProgressBarModule;\n}());\n\nvar __decorate$45 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$45 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Directive to automatically resize a textarea to fit its content.\n */\nvar MdTextareaAutosize = (function () {\n    function MdTextareaAutosize(_elementRef) {\n        this._elementRef = _elementRef;\n    }\n    Object.defineProperty(MdTextareaAutosize.prototype, \"_minHeight\", {\n        /** The minimum height of the textarea as determined by minRows. */\n        get: function () {\n            return this.minRows ? this.minRows * this._cachedLineHeight + \"px\" : null;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdTextareaAutosize.prototype, \"_maxHeight\", {\n        /** The maximum height of the textarea as determined by maxRows. */\n        get: function () {\n            return this.maxRows ? this.maxRows * this._cachedLineHeight + \"px\" : null;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdTextareaAutosize.prototype.ngOnInit = function () {\n        this._cacheTextareaLineHeight();\n        this.resizeToFitContent();\n    };\n    /**\n     * Cache the height of a single-row textarea.\n     *\n     * We need to know how large a single \"row\" of a textarea is in order to apply minRows and\n     * maxRows. For the initial version, we will assume that the height of a single line in the\n     * textarea does not ever change.\n     */\n    MdTextareaAutosize.prototype._cacheTextareaLineHeight = function () {\n        var textarea = this._elementRef.nativeElement;\n        // Use a clone element because we have to override some styles.\n        var textareaClone = textarea.cloneNode(false);\n        textareaClone.rows = 1;\n        // Use `position: absolute` so that this doesn't cause a browser layout and use\n        // `visibility: hidden` so that nothing is rendered. Clear any other styles that\n        // would affect the height.\n        textareaClone.style.position = 'absolute';\n        textareaClone.style.visibility = 'hidden';\n        textareaClone.style.border = 'none';\n        textareaClone.style.padding = '';\n        textareaClone.style.height = '';\n        textareaClone.style.minHeight = '';\n        textareaClone.style.maxHeight = '';\n        textarea.parentNode.appendChild(textareaClone);\n        this._cachedLineHeight = textareaClone.offsetHeight;\n        textarea.parentNode.removeChild(textareaClone);\n    };\n    /** Resize the textarea to fit its content. */\n    MdTextareaAutosize.prototype.resizeToFitContent = function () {\n        var textarea = this._elementRef.nativeElement;\n        // Reset the textarea height to auto in order to shrink back to its default size.\n        textarea.style.height = 'auto';\n        // Use the scrollHeight to know how large the textarea *would* be if fit its entire value.\n        textarea.style.height = textarea.scrollHeight + \"px\";\n    };\n    __decorate$45([\n        _angular_core.Input(), \n        __metadata$45('design:type', Number)\n    ], MdTextareaAutosize.prototype, \"minRows\", void 0);\n    __decorate$45([\n        _angular_core.Input(), \n        __metadata$45('design:type', Number)\n    ], MdTextareaAutosize.prototype, \"maxRows\", void 0);\n    MdTextareaAutosize = __decorate$45([\n        _angular_core.Directive({\n            selector: 'textarea[md-autosize], textarea[mat-autosize]',\n            host: {\n                '(input)': 'resizeToFitContent()',\n                '[style.min-height]': '_minHeight',\n                '[style.max-height]': '_maxHeight',\n            },\n        }), \n        __metadata$45('design:paramtypes', [_angular_core.ElementRef])\n    ], MdTextareaAutosize);\n    return MdTextareaAutosize;\n}());\n\nvar __extends$14 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/** @docs-private */\nvar MdInputContainerPlaceholderConflictError = (function (_super) {\n    __extends$14(MdInputContainerPlaceholderConflictError, _super);\n    function MdInputContainerPlaceholderConflictError() {\n        _super.call(this, 'Placeholder attribute and child element were both specified.');\n    }\n    return MdInputContainerPlaceholderConflictError;\n}(MdError));\n/** @docs-private */\nvar MdInputContainerUnsupportedTypeError = (function (_super) {\n    __extends$14(MdInputContainerUnsupportedTypeError, _super);\n    function MdInputContainerUnsupportedTypeError(type) {\n        _super.call(this, \"Input type \\\"\" + type + \"\\\" isn't supported by md-input-container.\");\n    }\n    return MdInputContainerUnsupportedTypeError;\n}(MdError));\n/** @docs-private */\nvar MdInputContainerDuplicatedHintError = (function (_super) {\n    __extends$14(MdInputContainerDuplicatedHintError, _super);\n    function MdInputContainerDuplicatedHintError(align) {\n        _super.call(this, \"A hint was already declared for 'align=\\\"\" + align + \"\\\"'.\");\n    }\n    return MdInputContainerDuplicatedHintError;\n}(MdError));\n/** @docs-private */\nvar MdInputContainerMissingMdInputError = (function (_super) {\n    __extends$14(MdInputContainerMissingMdInputError, _super);\n    function MdInputContainerMissingMdInputError() {\n        _super.call(this, 'md-input-container must contain an md-input directive. Did you forget to add md-input ' +\n            'to the native input or textarea element?');\n    }\n    return MdInputContainerMissingMdInputError;\n}(MdError));\n\nvar __decorate$47 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$47 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$10 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n// Invalid input type. Using one of these will throw an MdInputContainerUnsupportedTypeError.\nvar MD_INPUT_INVALID_TYPES = [\n    'button',\n    'checkbox',\n    'color',\n    'file',\n    'hidden',\n    'image',\n    'radio',\n    'range',\n    'reset',\n    'submit'\n];\nvar nextUniqueId$2 = 0;\n/**\n * The placeholder directive. The content can declare this to implement more\n * complex placeholders.\n */\nvar MdPlaceholder = (function () {\n    function MdPlaceholder() {\n    }\n    MdPlaceholder = __decorate$47([\n        _angular_core.Directive({\n            selector: 'md-placeholder, mat-placeholder'\n        }), \n        __metadata$47('design:paramtypes', [])\n    ], MdPlaceholder);\n    return MdPlaceholder;\n}());\n/** The hint directive, used to tag content as hint labels (going under the input). */\nvar MdHint = (function () {\n    function MdHint() {\n        // Whether to align the hint label at the start or end of the line.\n        this.align = 'start';\n    }\n    __decorate$47([\n        _angular_core.Input(), \n        __metadata$47('design:type', Object)\n    ], MdHint.prototype, \"align\", void 0);\n    MdHint = __decorate$47([\n        _angular_core.Directive({\n            selector: 'md-hint, mat-hint',\n            host: {\n                'class': 'md-hint',\n                '[class.md-right]': 'align == \"end\"',\n            }\n        }), \n        __metadata$47('design:paramtypes', [])\n    ], MdHint);\n    return MdHint;\n}());\n/** The input directive, used to mark the input that `MdInputContainer` is wrapping. */\nvar MdInputDirective = (function () {\n    function MdInputDirective(_elementRef, _renderer, _ngControl) {\n        var _this = this;\n        this._elementRef = _elementRef;\n        this._renderer = _renderer;\n        this._ngControl = _ngControl;\n        this._disabled = false;\n        this._placeholder = '';\n        this._required = false;\n        this._type = 'text';\n        /**\n         * Emits an event when the placeholder changes so that the `md-input-container` can re-validate.\n         */\n        this._placeholderChange = new _angular_core.EventEmitter();\n        this.focused = false;\n        this._neverEmptyInputTypes = [\n            'date',\n            'datetime',\n            'datetime-local',\n            'month',\n            'time',\n            'week'\n        ].filter(function (t) { return getSupportedInputTypes().has(t); });\n        // Force setter to be called in case id was not specified.\n        this.id = this.id;\n        if (this._ngControl && this._ngControl.valueChanges) {\n            this._ngControl.valueChanges.subscribe(function (value) {\n                _this.value = value;\n            });\n        }\n    }\n    Object.defineProperty(MdInputDirective.prototype, \"disabled\", {\n        /** Whether the element is disabled. */\n        get: function () { return this._disabled; },\n        set: function (value) { this._disabled = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInputDirective.prototype, \"id\", {\n        /** Unique id of the element. */\n        get: function () { return this._id; },\n        set: function (value) { this._id = value || this._uid; },\n        enumerable: true,\n        configurable: true\n    });\n    \n    Object.defineProperty(MdInputDirective.prototype, \"placeholder\", {\n        /** Placeholder attribute of the element. */\n        get: function () { return this._placeholder; },\n        set: function (value) {\n            if (this._placeholder != value) {\n                this._placeholder = value;\n                this._placeholderChange.emit(this._placeholder);\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInputDirective.prototype, \"required\", {\n        /** Whether the element is required. */\n        get: function () { return this._required; },\n        set: function (value) { this._required = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInputDirective.prototype, \"type\", {\n        /** Input type of the element. */\n        get: function () { return this._type; },\n        set: function (value) {\n            this._type = value || 'text';\n            this._validateType();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInputDirective.prototype, \"empty\", {\n        get: function () { return (this.value == null || this.value === '') && !this._isNeverEmpty(); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInputDirective.prototype, \"_uid\", {\n        get: function () { return this._cachedUid = this._cachedUid || \"md-input-\" + nextUniqueId$2++; },\n        enumerable: true,\n        configurable: true\n    });\n    MdInputDirective.prototype.ngAfterContentInit = function () {\n        this.value = this._elementRef.nativeElement.value;\n    };\n    /** Focuses the input element. */\n    MdInputDirective.prototype.focus = function () { this._renderer.invokeElementMethod(this._elementRef.nativeElement, 'focus'); };\n    MdInputDirective.prototype._onFocus = function () { this.focused = true; };\n    MdInputDirective.prototype._onBlur = function () { this.focused = false; };\n    MdInputDirective.prototype._onInput = function () { this.value = this._elementRef.nativeElement.value; };\n    /** Make sure the input is a supported type. */\n    MdInputDirective.prototype._validateType = function () {\n        if (MD_INPUT_INVALID_TYPES.indexOf(this._type) != -1) {\n            throw new MdInputContainerUnsupportedTypeError(this._type);\n        }\n    };\n    MdInputDirective.prototype._isNeverEmpty = function () { return this._neverEmptyInputTypes.indexOf(this._type) != -1; };\n    __decorate$47([\n        _angular_core.Input(), \n        __metadata$47('design:type', Object)\n    ], MdInputDirective.prototype, \"disabled\", null);\n    __decorate$47([\n        _angular_core.Input(), \n        __metadata$47('design:type', Object)\n    ], MdInputDirective.prototype, \"id\", null);\n    __decorate$47([\n        _angular_core.Input(), \n        __metadata$47('design:type', Object)\n    ], MdInputDirective.prototype, \"placeholder\", null);\n    __decorate$47([\n        _angular_core.Input(), \n        __metadata$47('design:type', Object)\n    ], MdInputDirective.prototype, \"required\", null);\n    __decorate$47([\n        _angular_core.Input(), \n        __metadata$47('design:type', Object)\n    ], MdInputDirective.prototype, \"type\", null);\n    __decorate$47([\n        _angular_core.Output(), \n        __metadata$47('design:type', Object)\n    ], MdInputDirective.prototype, \"_placeholderChange\", void 0);\n    MdInputDirective = __decorate$47([\n        _angular_core.Directive({\n            selector: 'input[md-input], textarea[md-input], input[mat-input], textarea[mat-input]',\n            host: {\n                'class': 'md-input-element',\n                '[id]': 'id',\n                '(blur)': '_onBlur()',\n                '(focus)': '_onFocus()',\n                '(input)': '_onInput()',\n            }\n        }),\n        __param$10(2, _angular_core.Optional()), \n        __metadata$47('design:paramtypes', [_angular_core.ElementRef, _angular_core.Renderer, _angular_forms.NgControl])\n    ], MdInputDirective);\n    return MdInputDirective;\n}());\n/**\n * Component that represents a text input. It encapsulates the <input> HTMLElement and\n * improve on its behaviour, along with styling it according to the Material Design.\n */\nvar MdInputContainer = (function () {\n    function MdInputContainer() {\n        /** Alignment of the input container's content. */\n        this.align = 'start';\n        /** Color of the input divider, based on the theme. */\n        this.dividerColor = 'primary';\n        this._hintLabel = '';\n        this._floatingPlaceholder = true;\n    }\n    Object.defineProperty(MdInputContainer.prototype, \"hintLabel\", {\n        /** Text for the input hint. */\n        get: function () { return this._hintLabel; },\n        set: function (value) {\n            this._hintLabel = value;\n            this._validateHints();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInputContainer.prototype, \"floatingPlaceholder\", {\n        /** Text or the floating placeholder. */\n        get: function () { return this._floatingPlaceholder; },\n        set: function (value) { this._floatingPlaceholder = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    MdInputContainer.prototype.ngAfterContentInit = function () {\n        var _this = this;\n        if (!this._mdInputChild) {\n            throw new MdInputContainerMissingMdInputError();\n        }\n        this._validateHints();\n        this._validatePlaceholders();\n        // Re-validate when things change.\n        this._hintChildren.changes.subscribe(function () {\n            _this._validateHints();\n        });\n        this._mdInputChild._placeholderChange.subscribe(function () {\n            _this._validatePlaceholders();\n        });\n    };\n    MdInputContainer.prototype._isUntouched = function () { return this._hasNgControl() && this._mdInputChild._ngControl.untouched; };\n    MdInputContainer.prototype._isTouched = function () { return this._hasNgControl() && this._mdInputChild._ngControl.touched; };\n    MdInputContainer.prototype._isPristine = function () { return this._hasNgControl() && this._mdInputChild._ngControl.pristine; };\n    MdInputContainer.prototype._isDirty = function () { return this._hasNgControl() && this._mdInputChild._ngControl.dirty; };\n    MdInputContainer.prototype._isValid = function () { return this._hasNgControl() && this._mdInputChild._ngControl.valid; };\n    MdInputContainer.prototype._isInvalid = function () { return this._hasNgControl() && this._mdInputChild._ngControl.invalid; };\n    MdInputContainer.prototype._isPending = function () { return this._hasNgControl() && this._mdInputChild._ngControl.pending; };\n    /** Whether the input has a placeholder. */\n    MdInputContainer.prototype._hasPlaceholder = function () { return !!(this._mdInputChild.placeholder || this._placeholderChild); };\n    MdInputContainer.prototype._focusInput = function () { this._mdInputChild.focus(); };\n    MdInputContainer.prototype._hasNgControl = function () { return !!(this._mdInputChild && this._mdInputChild._ngControl); };\n    /**\n     * Ensure that there is only one placeholder (either `input` attribute or child element with the\n     * `md-placeholder` attribute.\n     */\n    MdInputContainer.prototype._validatePlaceholders = function () {\n        if (this._mdInputChild.placeholder && this._placeholderChild) {\n            throw new MdInputContainerPlaceholderConflictError();\n        }\n    };\n    /**\n     * Ensure that there is a maximum of one of each `<md-hint>` alignment specified, with the\n     * attribute being considered as `align=\"start\"`.\n     */\n    MdInputContainer.prototype._validateHints = function () {\n        var _this = this;\n        if (this._hintChildren) {\n            var startHint_1 = null;\n            var endHint_1 = null;\n            this._hintChildren.forEach(function (hint) {\n                if (hint.align == 'start') {\n                    if (startHint_1 || _this.hintLabel) {\n                        throw new MdInputContainerDuplicatedHintError('start');\n                    }\n                    startHint_1 = hint;\n                }\n                else if (hint.align == 'end') {\n                    if (endHint_1) {\n                        throw new MdInputContainerDuplicatedHintError('end');\n                    }\n                    endHint_1 = hint;\n                }\n            });\n        }\n    };\n    __decorate$47([\n        _angular_core.Input(), \n        __metadata$47('design:type', Object)\n    ], MdInputContainer.prototype, \"align\", void 0);\n    __decorate$47([\n        _angular_core.Input(), \n        __metadata$47('design:type', Object)\n    ], MdInputContainer.prototype, \"dividerColor\", void 0);\n    __decorate$47([\n        _angular_core.Input(), \n        __metadata$47('design:type', Object)\n    ], MdInputContainer.prototype, \"hintLabel\", null);\n    __decorate$47([\n        _angular_core.Input(), \n        __metadata$47('design:type', Boolean)\n    ], MdInputContainer.prototype, \"floatingPlaceholder\", null);\n    __decorate$47([\n        _angular_core.ContentChild(MdInputDirective), \n        __metadata$47('design:type', MdInputDirective)\n    ], MdInputContainer.prototype, \"_mdInputChild\", void 0);\n    __decorate$47([\n        _angular_core.ContentChild(MdPlaceholder), \n        __metadata$47('design:type', MdPlaceholder)\n    ], MdInputContainer.prototype, \"_placeholderChild\", void 0);\n    __decorate$47([\n        _angular_core.ContentChildren(MdHint), \n        __metadata$47('design:type', _angular_core.QueryList)\n    ], MdInputContainer.prototype, \"_hintChildren\", void 0);\n    MdInputContainer = __decorate$47([\n        _angular_core.Component({selector: 'md-input-container, mat-input-container',\n            template: \"<div class=\\\"md-input-wrapper\\\"><div class=\\\"md-input-table\\\"><div class=\\\"md-input-prefix\\\"><ng-content select=\\\"[md-prefix]\\\"></ng-content></div><div class=\\\"md-input-infix\\\" [class.md-end]=\\\"align == 'end'\\\"><ng-content selector=\\\"input, textarea\\\"></ng-content><label class=\\\"md-input-placeholder\\\" [attr.for]=\\\"_mdInputChild.id\\\" [class.md-empty]=\\\"_mdInputChild.empty\\\" [class.md-focused]=\\\"_mdInputChild.focused\\\" [class.md-float]=\\\"floatingPlaceholder\\\" [class.md-accent]=\\\"dividerColor == 'accent'\\\" [class.md-warn]=\\\"dividerColor == 'warn'\\\" *ngIf=\\\"_hasPlaceholder()\\\"><ng-content select=\\\"md-placeholder\\\"></ng-content>{{_mdInputChild.placeholder}} <span class=\\\"md-placeholder-required\\\" *ngIf=\\\"_mdInputChild.required\\\">*</span></label></div><div class=\\\"md-input-suffix\\\"><ng-content select=\\\"[md-suffix]\\\"></ng-content></div></div><div class=\\\"md-input-underline\\\" [class.md-disabled]=\\\"_mdInputChild.disabled\\\"><span class=\\\"md-input-ripple\\\" [class.md-focused]=\\\"_mdInputChild.focused\\\" [class.md-accent]=\\\"dividerColor == 'accent'\\\" [class.md-warn]=\\\"dividerColor == 'warn'\\\"></span></div><div *ngIf=\\\"hintLabel != ''\\\" class=\\\"md-hint\\\">{{hintLabel}}</div><ng-content select=\\\"md-hint\\\"></ng-content></div>\",\n            styles: [\"md-input,md-textarea{display:inline-block;position:relative;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;line-height:normal;text-align:left}.md-input-element.md-end,[dir=rtl] md-input,[dir=rtl] md-textarea{text-align:right}.md-input-wrapper{margin:16px 0}.md-input-table{display:inline-table;flex-flow:column;vertical-align:bottom;width:100%}.md-input-table>*{display:table-cell}.md-input-infix{position:relative}.md-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;width:100%}[dir=rtl] .md-input-element.md-end{text-align:left}.md-input-element:-moz-ui-invalid{box-shadow:none}.md-input-element:-webkit-autofill+.md-input-placeholder.md-float{display:block;padding-bottom:5px;transform:translateY(-100%) scale(.75);width:133.33333%}.md-input-placeholder{position:absolute;left:0;top:0;font-size:100%;pointer-events:none;z-index:1;width:100%;display:none;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden;transform:translateY(0);transform-origin:bottom left;transition:transform .4s cubic-bezier(.25,.8,.25,1),scale .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1)}.md-input-placeholder.md-empty{display:block;cursor:text}.md-input-placeholder.md-float.md-focused,.md-input-placeholder.md-float:not(.md-empty){display:block;padding-bottom:5px;transform:translateY(-100%) scale(.75);width:133.33333%}[dir=rtl] .md-input-placeholder{transform-origin:bottom right;left:auto;right:0}.md-input-underline{position:absolute;height:1px;width:100%;margin-top:4px;border-top-width:1px;border-top-style:solid}.md-input-underline.md-disabled{background-image:linear-gradient(to right,rgba(0,0,0,.26) 0,rgba(0,0,0,.26) 33%,transparent 0);background-size:4px 1px;background-repeat:repeat-x;border-top:0;background-position:0}.md-input-underline .md-input-ripple{position:absolute;height:2px;z-index:1;top:-1px;width:100%;transform-origin:top;opacity:0;transform:scaleY(0);transition:transform .4s cubic-bezier(.25,.8,.25,1),opacity .4s cubic-bezier(.25,.8,.25,1)}.md-input-underline .md-input-ripple.md-focused{opacity:1;transform:scaleY(1)}.md-hint{display:block;position:absolute;font-size:75%;bottom:-.5em}.md-hint.md-right{right:0}[dir=rtl] .md-hint{right:0;left:auto}[dir=rtl] .md-hint.md-right{right:auto;left:0}\",\n\"md-input-container{display:inline-block;position:relative;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;line-height:normal;text-align:left}.md-end .md-input-element,[dir=rtl] md-input-container{text-align:right}.md-input-element::-webkit-input-placeholder{color:transparent}.md-input-element::-moz-placeholder{color:transparent}.md-input-element:-ms-input-placeholder{color:transparent}.md-input-element::placeholder{color:transparent}[dir=rtl] .md-end .md-input-element{text-align:left}\"],\n            host: {\n                // Remove align attribute to prevent it from interfering with layout.\n                '[attr.align]': 'null',\n                '[class.ng-untouched]': '_isUntouched()',\n                '[class.ng-touched]': '_isTouched()',\n                '[class.ng-pristine]': '_isPristine()',\n                '[class.ng-dirty]': '_isDirty()',\n                '[class.ng-valid]': '_isValid()',\n                '[class.ng-invalid]': '_isInvalid()',\n                '[class.ng-pending]': '_isPending()',\n                '(click)': '_focusInput()',\n            },\n            encapsulation: _angular_core.ViewEncapsulation.None,\n        }), \n        __metadata$47('design:paramtypes', [])\n    ], MdInputContainer);\n    return MdInputContainer;\n}());\n\nvar __extends$13 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate$46 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$46 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar noop = function () { };\nvar MD_INPUT_CONTROL_VALUE_ACCESSOR = {\n    provide: _angular_forms.NG_VALUE_ACCESSOR,\n    useExisting: _angular_core.forwardRef(function () { return MdInput; }),\n    multi: true\n};\n// Invalid input type. Using one of these will throw an MdInputUnsupportedTypeError.\nvar MD_INPUT_INVALID_INPUT_TYPE = [\n    'file',\n    'radio',\n    'checkbox',\n];\nvar nextUniqueId$1 = 0;\n/** @docs-private */\nvar MdInputPlaceholderConflictError = (function (_super) {\n    __extends$13(MdInputPlaceholderConflictError, _super);\n    function MdInputPlaceholderConflictError() {\n        _super.call(this, 'Placeholder attribute and child element were both specified.');\n    }\n    return MdInputPlaceholderConflictError;\n}(MdError));\n/** @docs-private */\nvar MdInputUnsupportedTypeError = (function (_super) {\n    __extends$13(MdInputUnsupportedTypeError, _super);\n    function MdInputUnsupportedTypeError(type) {\n        _super.call(this, \"Input type \\\"\" + type + \"\\\" isn't supported by md-input.\");\n    }\n    return MdInputUnsupportedTypeError;\n}(MdError));\n/** @docs-private */\nvar MdInputDuplicatedHintError = (function (_super) {\n    __extends$13(MdInputDuplicatedHintError, _super);\n    function MdInputDuplicatedHintError(align) {\n        _super.call(this, \"A hint was already declared for 'align=\\\"\" + align + \"\\\"'.\");\n    }\n    return MdInputDuplicatedHintError;\n}(MdError));\n/**\n * Component that represents a text input. It encapsulates the <input> HTMLElement and\n * improve on its behaviour, along with styling it according to the Material Design.\n * @deprecated\n * @docs-private\n */\nvar MdInput = (function () {\n    function MdInput(elementRef, _renderer) {\n        this._renderer = _renderer;\n        this._focused = false;\n        this._value = '';\n        /** Callback registered via registerOnTouched (ControlValueAccessor) */\n        this._onTouchedCallback = noop;\n        /** Callback registered via registerOnChange (ControlValueAccessor) */\n        this._onChangeCallback = noop;\n        /** Alignment of the input container's content. */\n        this.align = 'start';\n        /** Color of the input divider, based on the theme. */\n        this.dividerColor = 'primary';\n        /** Text for the input hint. */\n        this.hintLabel = '';\n        /** Unique id for the input element. */\n        this.id = \"md-input-\" + nextUniqueId$1++;\n        /** Mirrors the native `list` attribute. */\n        this.list = null;\n        /** Mirrors the native `max` attribute. */\n        this.max = null;\n        /** Mirrors the native `maxlength` attribute. */\n        this.maxlength = null;\n        /** Mirrors the native `min` attribute. */\n        this.min = null;\n        /** Mirrors the native `minlength` attribute. */\n        this.minlength = null;\n        /** Mirrors the native `placeholder` attribute. */\n        this.placeholder = null;\n        /** Mirrors the native `step` attribute. */\n        this.step = null;\n        /** Mirrors the native `tabindex` attribute. */\n        this.tabindex = null;\n        /** Mirrors the native `type` attribute. */\n        this.type = 'text';\n        /** Mirrors the native `name` attribute. */\n        this.name = null;\n        // textarea-specific\n        /** Mirrors the native `rows` attribute. */\n        this.rows = null;\n        /** Mirrors the native `cols` attribute. */\n        this.cols = null;\n        /** Whether to do a soft or hard wrap of the text.. */\n        this.wrap = null;\n        this._floatingPlaceholder = true;\n        this._autofocus = false;\n        this._disabled = false;\n        this._readonly = false;\n        this._required = false;\n        this._spellcheck = false;\n        this._blurEmitter = new _angular_core.EventEmitter();\n        this._focusEmitter = new _angular_core.EventEmitter();\n        // Set the element type depending on normalized selector used(md-input / md-textarea)\n        this._elementType = elementRef.nativeElement.nodeName.toLowerCase() === 'md-input' ?\n            'input' :\n            'textarea';\n    }\n    Object.defineProperty(MdInput.prototype, \"ariaDisabled\", {\n        /** Mirrors the native `aria-disabled` attribute. */\n        get: function () { return this._ariaDisabled; },\n        set: function (value) { this._ariaDisabled = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"ariaRequired\", {\n        /** Mirrors the native `aria-required` attribute. */\n        get: function () { return this._ariaRequired; },\n        set: function (value) { this._ariaRequired = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"ariaInvalid\", {\n        /** Mirrors the native `aria-invalid` attribute. */\n        get: function () { return this._ariaInvalid; },\n        set: function (value) { this._ariaInvalid = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"focused\", {\n        /** Readonly properties. */\n        /** Whether the element is focused. */\n        get: function () { return this._focused; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"empty\", {\n        /** Whether the element is empty. */\n        get: function () { return (this._value == null || this._value === '') && this.type !== 'date'; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"characterCount\", {\n        /** Amount of characters inside the element. */\n        get: function () {\n            return this.empty ? 0 : ('' + this._value).length;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"inputId\", {\n        /** Unique element id. */\n        get: function () { return this.id + \"-input\"; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"floatingPlaceholder\", {\n        /** Text for the floating placeholder. */\n        get: function () { return this._floatingPlaceholder; },\n        set: function (value) { this._floatingPlaceholder = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"autofocus\", {\n        /** Whether to automatically focus the input. */\n        get: function () { return this._autofocus; },\n        set: function (value) { this._autofocus = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"disabled\", {\n        /** Whether the input is disabled. */\n        get: function () { return this._disabled; },\n        set: function (value) { this._disabled = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"readonly\", {\n        /** Whether the input is readonly. */\n        get: function () { return this._readonly; },\n        set: function (value) { this._readonly = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"required\", {\n        /** Whether the input is required. */\n        get: function () { return this._required; },\n        set: function (value) { this._required = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"spellcheck\", {\n        /** Whether spellchecking is enable on the input. */\n        get: function () { return this._spellcheck; },\n        set: function (value) { this._spellcheck = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"onBlur\", {\n        /** Event emitted when the input is blurred. */\n        get: function () {\n            return this._blurEmitter.asObservable();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"onFocus\", {\n        /** Event emitted when the input is focused. */\n        get: function () {\n            return this._focusEmitter.asObservable();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdInput.prototype, \"value\", {\n        /** Value of the input. */\n        get: function () { return this._value; },\n        set: function (v) {\n            v = this._convertValueForInputType(v);\n            if (v !== this._value) {\n                this._value = v;\n                this._onChangeCallback(v);\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    \n    Object.defineProperty(MdInput.prototype, \"_align\", {\n        // This is to remove the `align` property of the `md-input` itself. Otherwise HTML5\n        // might place it as RTL when we don't want to. We still want to use `align` as an\n        // Input though, so we use HostBinding.\n        get: function () { return null; },\n        enumerable: true,\n        configurable: true\n    });\n    /** Set focus on input */\n    MdInput.prototype.focus = function () {\n        this._renderer.invokeElementMethod(this._inputElement.nativeElement, 'focus');\n    };\n    MdInput.prototype._handleFocus = function (event) {\n        this._focused = true;\n        this._focusEmitter.emit(event);\n    };\n    MdInput.prototype._handleBlur = function (event) {\n        this._focused = false;\n        this._onTouchedCallback();\n        this._blurEmitter.emit(event);\n    };\n    MdInput.prototype._handleChange = function (event) {\n        this.value = event.target.value;\n        this._onTouchedCallback();\n    };\n    MdInput.prototype._hasPlaceholder = function () {\n        return !!this.placeholder || this._placeholderChild != null;\n    };\n    /**\n     * Sets the model value of the input. Implemented as part of ControlValueAccessor.\n     * @param value Value to be set.\n     */\n    MdInput.prototype.writeValue = function (value) {\n        this._value = value;\n    };\n    /**\n     * Registers a callback to be triggered when the input value has changed.\n     * Implemented as part of ControlValueAccessor.\n     * @param fn Callback to be registered.\n     */\n    MdInput.prototype.registerOnChange = function (fn) {\n        this._onChangeCallback = fn;\n    };\n    /**\n     * Registers a callback to be triggered when the input has been touched.\n     * Implemented as part of ControlValueAccessor.\n     * @param fn Callback to be registered.\n     */\n    MdInput.prototype.registerOnTouched = function (fn) {\n        this._onTouchedCallback = fn;\n    };\n    /**\n     * Sets whether the input is disabled.\n     * Implemented as a part of ControlValueAccessor.\n     * @param isDisabled Whether the input should be disabled.\n     */\n    MdInput.prototype.setDisabledState = function (isDisabled) {\n        this.disabled = isDisabled;\n    };\n    MdInput.prototype.ngAfterContentInit = function () {\n        var _this = this;\n        this._validateConstraints();\n        // Trigger validation when the hint children change.\n        this._hintChildren.changes.subscribe(function () {\n            _this._validateConstraints();\n        });\n    };\n    MdInput.prototype.ngOnChanges = function (changes) {\n        this._validateConstraints();\n    };\n    /**\n     * Convert the value passed in to a value that is expected from the type of the md-input.\n     * This is normally performed by the *_VALUE_ACCESSOR in forms, but since the type is bound\n     * on our internal input it won't work locally.\n     * @private\n     */\n    MdInput.prototype._convertValueForInputType = function (v) {\n        switch (this.type) {\n            case 'number': return parseFloat(v);\n            default: return v;\n        }\n    };\n    /**\n     * Ensure that all constraints defined by the API are validated, or throw errors otherwise.\n     * Constraints for now:\n     *   - placeholder attribute and <md-placeholder> are mutually exclusive.\n     *   - type attribute is not one of the forbidden types (see constant at the top).\n     *   - Maximum one of each `<md-hint>` alignment specified, with the attribute being\n     *     considered as align=\"start\".\n     * @private\n     */\n    MdInput.prototype._validateConstraints = function () {\n        var _this = this;\n        if (this.placeholder != '' && this.placeholder != null && this._placeholderChild != null) {\n            throw new MdInputPlaceholderConflictError();\n        }\n        if (MD_INPUT_INVALID_INPUT_TYPE.indexOf(this.type) != -1) {\n            throw new MdInputUnsupportedTypeError(this.type);\n        }\n        if (this._hintChildren) {\n            // Validate the hint labels.\n            var startHint_1 = null;\n            var endHint_1 = null;\n            this._hintChildren.forEach(function (hint) {\n                if (hint.align == 'start') {\n                    if (startHint_1 || _this.hintLabel) {\n                        throw new MdInputDuplicatedHintError('start');\n                    }\n                    startHint_1 = hint;\n                }\n                else if (hint.align == 'end') {\n                    if (endHint_1) {\n                        throw new MdInputDuplicatedHintError('end');\n                    }\n                    endHint_1 = hint;\n                }\n            });\n        }\n    };\n    __decorate$46([\n        _angular_core.Input('aria-label'), \n        __metadata$46('design:type', String)\n    ], MdInput.prototype, \"ariaLabel\", void 0);\n    __decorate$46([\n        _angular_core.Input('aria-labelledby'), \n        __metadata$46('design:type', String)\n    ], MdInput.prototype, \"ariaLabelledBy\", void 0);\n    __decorate$46([\n        _angular_core.Input('aria-disabled'), \n        __metadata$46('design:type', Boolean)\n    ], MdInput.prototype, \"ariaDisabled\", null);\n    __decorate$46([\n        _angular_core.Input('aria-required'), \n        __metadata$46('design:type', Boolean)\n    ], MdInput.prototype, \"ariaRequired\", null);\n    __decorate$46([\n        _angular_core.Input('aria-invalid'), \n        __metadata$46('design:type', Boolean)\n    ], MdInput.prototype, \"ariaInvalid\", null);\n    __decorate$46([\n        _angular_core.ContentChild(MdPlaceholder), \n        __metadata$46('design:type', MdPlaceholder)\n    ], MdInput.prototype, \"_placeholderChild\", void 0);\n    __decorate$46([\n        _angular_core.ContentChildren(MdHint), \n        __metadata$46('design:type', _angular_core.QueryList)\n    ], MdInput.prototype, \"_hintChildren\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Object)\n    ], MdInput.prototype, \"align\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Object)\n    ], MdInput.prototype, \"dividerColor\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', String)\n    ], MdInput.prototype, \"hintLabel\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', String)\n    ], MdInput.prototype, \"autocomplete\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', String)\n    ], MdInput.prototype, \"autocorrect\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', String)\n    ], MdInput.prototype, \"autocapitalize\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', String)\n    ], MdInput.prototype, \"id\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', String)\n    ], MdInput.prototype, \"list\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Object)\n    ], MdInput.prototype, \"max\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Number)\n    ], MdInput.prototype, \"maxlength\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Object)\n    ], MdInput.prototype, \"min\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Number)\n    ], MdInput.prototype, \"minlength\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', String)\n    ], MdInput.prototype, \"placeholder\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Number)\n    ], MdInput.prototype, \"step\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Number)\n    ], MdInput.prototype, \"tabindex\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', String)\n    ], MdInput.prototype, \"type\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', String)\n    ], MdInput.prototype, \"name\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Number)\n    ], MdInput.prototype, \"rows\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Number)\n    ], MdInput.prototype, \"cols\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Object)\n    ], MdInput.prototype, \"wrap\", void 0);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Boolean)\n    ], MdInput.prototype, \"floatingPlaceholder\", null);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Boolean)\n    ], MdInput.prototype, \"autofocus\", null);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Boolean)\n    ], MdInput.prototype, \"disabled\", null);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Boolean)\n    ], MdInput.prototype, \"readonly\", null);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Boolean)\n    ], MdInput.prototype, \"required\", null);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Boolean)\n    ], MdInput.prototype, \"spellcheck\", null);\n    __decorate$46([\n        _angular_core.Output('blur'), \n        __metadata$46('design:type', rxjs_Observable.Observable)\n    ], MdInput.prototype, \"onBlur\", null);\n    __decorate$46([\n        _angular_core.Output('focus'), \n        __metadata$46('design:type', rxjs_Observable.Observable)\n    ], MdInput.prototype, \"onFocus\", null);\n    __decorate$46([\n        _angular_core.Input(), \n        __metadata$46('design:type', Object)\n    ], MdInput.prototype, \"value\", null);\n    __decorate$46([\n        _angular_core.HostBinding('attr.align'), \n        __metadata$46('design:type', Object)\n    ], MdInput.prototype, \"_align\", null);\n    __decorate$46([\n        _angular_core.ViewChild('input'), \n        __metadata$46('design:type', _angular_core.ElementRef)\n    ], MdInput.prototype, \"_inputElement\", void 0);\n    MdInput = __decorate$46([\n        _angular_core.Component({selector: 'md-input, md-textarea',\n            template: \"<div class=\\\"md-input-wrapper\\\"><div class=\\\"md-input-table\\\"><div class=\\\"md-input-prefix\\\"><ng-content select=\\\"[md-prefix]\\\"></ng-content></div><div class=\\\"md-input-infix\\\"><input #input *ngIf=\\\"_elementType === 'input'\\\" class=\\\"md-input-element\\\" [class.md-end]=\\\"align == 'end'\\\" [attr.aria-label]=\\\"ariaLabel\\\" [attr.aria-labelledby]=\\\"ariaLabelledBy\\\" [attr.aria-disabled]=\\\"ariaDisabled\\\" [attr.aria-required]=\\\"ariaRequired\\\" [attr.aria-invalid]=\\\"ariaInvalid\\\" [attr.autocomplete]=\\\"autocomplete\\\" [attr.autocorrect]=\\\"autocorrect\\\" [attr.autocapitalize]=\\\"autocapitalize\\\" [autofocus]=\\\"autofocus\\\" [disabled]=\\\"disabled\\\" [id]=\\\"inputId\\\" [attr.list]=\\\"list\\\" [attr.max]=\\\"max\\\" [attr.maxlength]=\\\"maxlength\\\" [attr.min]=\\\"min\\\" [attr.minlength]=\\\"minlength\\\" [readonly]=\\\"readonly\\\" [required]=\\\"required\\\" [spellcheck]=\\\"spellcheck\\\" [attr.step]=\\\"step\\\" [attr.tabindex]=\\\"tabindex\\\" [type]=\\\"type\\\" [attr.name]=\\\"name\\\" (focus)=\\\"_handleFocus($event)\\\" (blur)=\\\"_handleBlur($event)\\\" [(ngModel)]=\\\"value\\\" (change)=\\\"_handleChange($event)\\\"><textarea #input *ngIf=\\\"_elementType === 'textarea'\\\" class=\\\"md-input-element md-input-element-textarea\\\" [class.md-end]=\\\"align == 'end'\\\" [attr.aria-label]=\\\"ariaLabel\\\" [attr.aria-labelledby]=\\\"ariaLabelledBy\\\" [attr.aria-disabled]=\\\"ariaDisabled\\\" [attr.aria-required]=\\\"ariaRequired\\\" [attr.aria-invalid]=\\\"ariaInvalid\\\" [attr.autocomplete]=\\\"autocomplete\\\" [attr.autocapitalize]=\\\"autocapitalize\\\" [attr.cols]=\\\"cols\\\" [attr.rows]=\\\"rows\\\" [attr.wrap]=\\\"wrap\\\" [autofocus]=\\\"autofocus\\\" [disabled]=\\\"disabled\\\" [id]=\\\"inputId\\\" [attr.maxlength]=\\\"maxlength\\\" [attr.minlength]=\\\"minlength\\\" [readonly]=\\\"readonly\\\" [required]=\\\"required\\\" [spellcheck]=\\\"spellcheck\\\" [attr.tabindex]=\\\"tabindex\\\" [attr.name]=\\\"name\\\" (focus)=\\\"_handleFocus($event)\\\" (blur)=\\\"_handleBlur($event)\\\" [(ngModel)]=\\\"value\\\" (change)=\\\"_handleChange($event)\\\"></textarea><label class=\\\"md-input-placeholder\\\" [attr.for]=\\\"inputId\\\" [class.md-empty]=\\\"empty\\\" [class.md-focused]=\\\"focused\\\" [class.md-float]=\\\"floatingPlaceholder\\\" [class.md-accent]=\\\"dividerColor == 'accent'\\\" [class.md-warn]=\\\"dividerColor == 'warn'\\\" *ngIf=\\\"_hasPlaceholder()\\\"><ng-content select=\\\"md-placeholder\\\"></ng-content>{{placeholder}} <span class=\\\"md-placeholder-required\\\" *ngIf=\\\"required\\\">*</span></label></div><div class=\\\"md-input-suffix\\\"><ng-content select=\\\"[md-suffix]\\\"></ng-content></div></div><div class=\\\"md-input-underline\\\" [class.md-disabled]=\\\"disabled\\\"><span class=\\\"md-input-ripple\\\" [class.md-focused]=\\\"focused\\\" [class.md-accent]=\\\"dividerColor == 'accent'\\\" [class.md-warn]=\\\"dividerColor == 'warn'\\\"></span></div><div *ngIf=\\\"hintLabel != ''\\\" class=\\\"md-hint\\\">{{hintLabel}}</div><ng-content select=\\\"md-hint\\\"></ng-content></div>\",\n            styles: [\"md-input,md-textarea{display:inline-block;position:relative;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;line-height:normal;text-align:left}.md-input-element.md-end,[dir=rtl] md-input,[dir=rtl] md-textarea{text-align:right}.md-input-wrapper{margin:16px 0}.md-input-table{display:inline-table;flex-flow:column;vertical-align:bottom;width:100%}.md-input-table>*{display:table-cell}.md-input-infix{position:relative}.md-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;width:100%}[dir=rtl] .md-input-element.md-end{text-align:left}.md-input-element:-moz-ui-invalid{box-shadow:none}.md-input-element:-webkit-autofill+.md-input-placeholder.md-float{display:block;padding-bottom:5px;transform:translateY(-100%) scale(.75);width:133.33333%}.md-input-placeholder{position:absolute;left:0;top:0;font-size:100%;pointer-events:none;z-index:1;width:100%;display:none;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden;transform:translateY(0);transform-origin:bottom left;transition:transform .4s cubic-bezier(.25,.8,.25,1),scale .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1)}.md-input-placeholder.md-empty{display:block;cursor:text}.md-input-placeholder.md-float.md-focused,.md-input-placeholder.md-float:not(.md-empty){display:block;padding-bottom:5px;transform:translateY(-100%) scale(.75);width:133.33333%}[dir=rtl] .md-input-placeholder{transform-origin:bottom right;left:auto;right:0}.md-input-underline{position:absolute;height:1px;width:100%;margin-top:4px;border-top-width:1px;border-top-style:solid}.md-input-underline.md-disabled{background-image:linear-gradient(to right,rgba(0,0,0,.26) 0,rgba(0,0,0,.26) 33%,transparent 0);background-size:4px 1px;background-repeat:repeat-x;border-top:0;background-position:0}.md-input-underline .md-input-ripple{position:absolute;height:2px;z-index:1;top:-1px;width:100%;transform-origin:top;opacity:0;transform:scaleY(0);transition:transform .4s cubic-bezier(.25,.8,.25,1),opacity .4s cubic-bezier(.25,.8,.25,1)}.md-input-underline .md-input-ripple.md-focused{opacity:1;transform:scaleY(1)}.md-hint{display:block;position:absolute;font-size:75%;bottom:-.5em}.md-hint.md-right{right:0}[dir=rtl] .md-hint{right:0;left:auto}[dir=rtl] .md-hint.md-right{right:auto;left:0}\"],\n            providers: [MD_INPUT_CONTROL_VALUE_ACCESSOR],\n            host: { '(click)': 'focus()' },\n            encapsulation: _angular_core.ViewEncapsulation.None,\n        }), \n        __metadata$46('design:paramtypes', [_angular_core.ElementRef, _angular_core.Renderer])\n    ], MdInput);\n    return MdInput;\n}());\nvar MdInputModule = (function () {\n    function MdInputModule() {\n    }\n    MdInputModule.forRoot = function () {\n        return {\n            ngModule: MdInputModule,\n            providers: PlatformModule.forRoot().providers,\n        };\n    };\n    MdInputModule = __decorate$46([\n        _angular_core.NgModule({\n            declarations: [\n                MdInput,\n                MdPlaceholder,\n                MdInputContainer,\n                MdHint,\n                MdTextareaAutosize,\n                MdInputDirective\n            ],\n            imports: [\n                _angular_common.CommonModule,\n                _angular_forms.FormsModule,\n                PlatformModule,\n            ],\n            exports: [\n                MdInput,\n                MdPlaceholder,\n                MdInputContainer,\n                MdHint,\n                MdTextareaAutosize,\n                MdInputDirective\n            ],\n        }), \n        __metadata$46('design:paramtypes', [])\n    ], MdInputModule);\n    return MdInputModule;\n}());\n\n/**\n * Configuration used when opening a snack-bar.\n */\nvar MdSnackBarConfig = (function () {\n    function MdSnackBarConfig() {\n        /** The politeness level for the MdAriaLiveAnnouncer announcement. */\n        this.politeness = 'assertive';\n        /** Message to be announced by the MdAriaLiveAnnouncer */\n        this.announcementMessage = '';\n        /** The view container to place the overlay for the snack bar into. */\n        this.viewContainerRef = null;\n        /** The length of time in milliseconds to wait before automatically dismissing the snack bar. */\n        this.duration = 0;\n    }\n    return MdSnackBarConfig;\n}());\n\n// TODO(josephperrott): Implement onAction observable.\n/**\n * Reference to a snack bar dispatched from the snack bar service.\n */\nvar MdSnackBarRef = (function () {\n    function MdSnackBarRef(instance, containerInstance, _overlayRef) {\n        var _this = this;\n        this._overlayRef = _overlayRef;\n        /** Subject for notifying the user that the snack bar has closed. */\n        this._afterClosed = new rxjs_Subject.Subject();\n        /** Subject for notifying the user that the snack bar action was called. */\n        this._onAction = new rxjs_Subject.Subject();\n        // Sets the readonly instance of the snack bar content component.\n        this._instance = instance;\n        this.containerInstance = containerInstance;\n        // Dismiss snackbar on action.\n        this.onAction().subscribe(function () { return _this.dismiss(); });\n        containerInstance._onExit().subscribe(function () { return _this._finishDismiss(); });\n    }\n    Object.defineProperty(MdSnackBarRef.prototype, \"instance\", {\n        /** The instance of the component making up the content of the snack bar. */\n        get: function () {\n            return this._instance;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /** Dismisses the snack bar. */\n    MdSnackBarRef.prototype.dismiss = function () {\n        if (!this._afterClosed.closed) {\n            this.containerInstance.exit();\n        }\n    };\n    /** Marks the snackbar action clicked. */\n    MdSnackBarRef.prototype._action = function () {\n        if (!this._onAction.closed) {\n            this._onAction.next();\n            this._onAction.complete();\n        }\n    };\n    /** Marks the snackbar as opened */\n    MdSnackBarRef.prototype._open = function () {\n        if (!this._afterOpened.closed) {\n            this._afterOpened.next();\n            this._afterOpened.complete();\n        }\n    };\n    /** Cleans up the DOM after closing. */\n    MdSnackBarRef.prototype._finishDismiss = function () {\n        this._overlayRef.dispose();\n        this._afterClosed.next();\n        this._afterClosed.complete();\n    };\n    /** Gets an observable that is notified when the snack bar is finished closing. */\n    MdSnackBarRef.prototype.afterDismissed = function () {\n        return this._afterClosed.asObservable();\n    };\n    /** Gets an observable that is notified when the snack bar has opened and appeared. */\n    MdSnackBarRef.prototype.afterOpened = function () {\n        return this.containerInstance._onEnter();\n    };\n    /** Gets an observable that is notified when the snack bar action is called. */\n    MdSnackBarRef.prototype.onAction = function () {\n        return this._onAction.asObservable();\n    };\n    return MdSnackBarRef;\n}());\n\nvar __extends$16 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * Error that is thrown when attempting to attach a snack bar that is already attached.\n * @docs-private\n */\nvar MdSnackBarContentAlreadyAttached = (function (_super) {\n    __extends$16(MdSnackBarContentAlreadyAttached, _super);\n    function MdSnackBarContentAlreadyAttached() {\n        _super.call(this, 'Attempting to attach snack bar content after content is already attached');\n    }\n    return MdSnackBarContentAlreadyAttached;\n}(MdError));\n\nvar __extends$15 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate$49 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$49 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n// TODO(jelbourn): we can't use constants from animation.ts here because you can't use\n// a text interpolation in anything that is analyzed statically with ngc (for AoT compile).\nvar SHOW_ANIMATION = '225ms cubic-bezier(0.4,0.0,1,1)';\nvar HIDE_ANIMATION = '195ms cubic-bezier(0.0,0.0,0.2,1)';\n/**\n * Internal component that wraps user-provided snack bar content.\n * @docs-private\n */\nvar MdSnackBarContainer = (function (_super) {\n    __extends$15(MdSnackBarContainer, _super);\n    function MdSnackBarContainer(_ngZone) {\n        _super.call(this);\n        this._ngZone = _ngZone;\n        /** Subject for notifying that the snack bar has exited from view. */\n        this.onExit = new rxjs_Subject.Subject();\n        /** Subject for notifying that the snack bar has finished entering the view. */\n        this.onEnter = new rxjs_Subject.Subject();\n        /** The state of the snack bar animations. */\n        this.animationState = 'initial';\n    }\n    /** Attach a component portal as content to this snack bar container. */\n    MdSnackBarContainer.prototype.attachComponentPortal = function (portal) {\n        if (this._portalHost.hasAttached()) {\n            throw new MdSnackBarContentAlreadyAttached();\n        }\n        return this._portalHost.attachComponentPortal(portal);\n    };\n    /** Attach a template portal as content to this snack bar container. */\n    MdSnackBarContainer.prototype.attachTemplatePortal = function (portal) {\n        throw Error('Not yet implemented');\n    };\n    /** Handle end of animations, updating the state of the snackbar. */\n    MdSnackBarContainer.prototype.onAnimationEnd = function (event) {\n        var _this = this;\n        if (event.toState === 'void' || event.toState === 'complete') {\n            this._ngZone.run(function () {\n                _this.onExit.next();\n                _this.onExit.complete();\n            });\n        }\n        if (event.toState === 'visible') {\n            this._ngZone.run(function () {\n                _this.onEnter.next();\n                _this.onEnter.complete();\n            });\n        }\n    };\n    /** Begin animation of snack bar entrance into view. */\n    MdSnackBarContainer.prototype.enter = function () {\n        this.animationState = 'visible';\n    };\n    /** Returns an observable resolving when the enter animation completes.  */\n    MdSnackBarContainer.prototype._onEnter = function () {\n        this.animationState = 'visible';\n        return this.onEnter.asObservable();\n    };\n    /** Begin animation of the snack bar exiting from view. */\n    MdSnackBarContainer.prototype.exit = function () {\n        this.animationState = 'complete';\n        return this._onExit();\n    };\n    /** Returns an observable that completes after the closing animation is done. */\n    MdSnackBarContainer.prototype._onExit = function () {\n        return this.onExit.asObservable();\n    };\n    /**\n     * Makes sure the exit callbacks have been invoked when the element is destroyed.\n     */\n    MdSnackBarContainer.prototype.ngOnDestroy = function () {\n        var _this = this;\n        // Wait for the zone to settle before removing the element. Helps prevent\n        // errors where we end up removing an element which is in the middle of an animation.\n        this._ngZone.onMicrotaskEmpty.first().subscribe(function () {\n            _this.onExit.next();\n            _this.onExit.complete();\n        });\n    };\n    __decorate$49([\n        _angular_core.ViewChild(PortalHostDirective), \n        __metadata$49('design:type', PortalHostDirective)\n    ], MdSnackBarContainer.prototype, \"_portalHost\", void 0);\n    MdSnackBarContainer = __decorate$49([\n        _angular_core.Component({selector: 'snack-bar-container',\n            template: \"<template cdkPortalHost></template>\",\n            styles: [\":host{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);background:#323232;border-radius:2px;box-sizing:content-box;display:block;height:20px;max-width:568px;min-width:288px;overflow:hidden;padding:14px 24px;transform:translateY(100%)}@media screen and (-ms-high-contrast:active){:host{border:1px solid}}\"],\n            host: {\n                'role': 'alert',\n                '[@state]': 'animationState',\n                '(@state.done)': 'onAnimationEnd($event)'\n            },\n            animations: [\n                _angular_core.trigger('state', [\n                    _angular_core.state('initial', _angular_core.style({ transform: 'translateY(100%)' })),\n                    _angular_core.state('visible', _angular_core.style({ transform: 'translateY(0%)' })),\n                    _angular_core.state('complete', _angular_core.style({ transform: 'translateY(100%)' })),\n                    _angular_core.transition('visible => complete', _angular_core.animate(HIDE_ANIMATION)),\n                    _angular_core.transition('initial => visible, void => visible', _angular_core.animate(SHOW_ANIMATION)),\n                ])\n            ],\n        }), \n        __metadata$49('design:paramtypes', [_angular_core.NgZone])\n    ], MdSnackBarContainer);\n    return MdSnackBarContainer;\n}(BasePortalHost));\n\nvar __decorate$50 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$50 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * A component used to open as the default snack bar, matching material spec.\n * This should only be used internally by the snack bar service.\n */\nvar SimpleSnackBar = (function () {\n    function SimpleSnackBar() {\n    }\n    /** Dismisses the snack bar. */\n    SimpleSnackBar.prototype.dismiss = function () {\n        this.snackBarRef._action();\n    };\n    Object.defineProperty(SimpleSnackBar.prototype, \"hasAction\", {\n        /** If the action button should be shown. */\n        get: function () { return !!this.action; },\n        enumerable: true,\n        configurable: true\n    });\n    SimpleSnackBar = __decorate$50([\n        _angular_core.Component({selector: 'simple-snack-bar',\n            template: \"<span class=\\\"md-simple-snackbar-message\\\">{{message}}</span> <button md-button class=\\\"md-simple-snackbar-action\\\" *ngIf=\\\"hasAction\\\" (click)=\\\"dismiss()\\\">{{action}}</button>\",\n            styles: [\"md-simple-snackbar{display:flex;justify-content:space-between}.md-simple-snackbar-message{box-sizing:border-box;border:none;color:#fff;font-family:Roboto,'Helvetica Neue',sans-serif;font-size:14px;line-height:20px;outline:0;text-decoration:none;word-break:break-all}.md-simple-snackbar-action{box-sizing:border-box;color:#fff;float:right;font-weight:600;line-height:20px;margin:-5px 0 0 48px;min-width:initial;padding:5px;text-transform:uppercase}\"],\n        }), \n        __metadata$50('design:paramtypes', [])\n    ], SimpleSnackBar);\n    return SimpleSnackBar;\n}());\n\n/**\n * Extends an object with the *enumerable* and *own* properties of one or more source objects,\n * similar to Object.assign.\n *\n * @param dest The object which will have properties copied to it.\n * @param sources The source objects from which properties will be copied.\n */\nfunction extendObject(dest) {\n    var sources = [];\n    for (var _i = 1; _i < arguments.length; _i++) {\n        sources[_i - 1] = arguments[_i];\n    }\n    if (dest == null) {\n        throw TypeError('Cannot convert undefined or null to object');\n    }\n    for (var _a = 0, sources_1 = sources; _a < sources_1.length; _a++) {\n        var source = sources_1[_a];\n        if (source != null) {\n            for (var key in source) {\n                if (source.hasOwnProperty(key)) {\n                    dest[key] = source[key];\n                }\n            }\n        }\n    }\n    return dest;\n}\n\nvar __decorate$48 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$48 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Service to dispatch Material Design snack bar messages.\n */\nvar MdSnackBar = (function () {\n    function MdSnackBar(_overlay, _live) {\n        this._overlay = _overlay;\n        this._live = _live;\n    }\n    /**\n     * Creates and dispatches a snack bar with a custom component for the content, removing any\n     * currently opened snack bars.\n     *\n     * @param component Component to be instantiated.\n     * @param config Extra configuration for the snack bar.\n     */\n    MdSnackBar.prototype.openFromComponent = function (component, config) {\n        var _this = this;\n        config = _applyConfigDefaults(config);\n        var overlayRef = this._createOverlay();\n        var snackBarContainer = this._attachSnackBarContainer(overlayRef, config);\n        var snackBarRef = this._attachSnackbarContent(component, snackBarContainer, overlayRef);\n        // When the snackbar is dismissed, clear the reference to it.\n        snackBarRef.afterDismissed().subscribe(function () {\n            // Clear the snackbar ref if it hasn't already been replaced by a newer snackbar.\n            if (_this._snackBarRef == snackBarRef) {\n                _this._snackBarRef = null;\n            }\n        });\n        // If a snack bar is already in view, dismiss it and enter the new snack bar after exit\n        // animation is complete.\n        if (this._snackBarRef) {\n            this._snackBarRef.afterDismissed().subscribe(function () {\n                snackBarRef.containerInstance.enter();\n            });\n            this._snackBarRef.dismiss();\n        }\n        else {\n            snackBarRef.containerInstance.enter();\n        }\n        // If a dismiss timeout is provided, set up dismiss based on after the snackbar is opened.\n        if (config.duration > 0) {\n            snackBarRef.afterOpened().subscribe(function () {\n                setTimeout(function () { return snackBarRef.dismiss(); }, config.duration);\n            });\n        }\n        this._live.announce(config.announcementMessage, config.politeness);\n        this._snackBarRef = snackBarRef;\n        return this._snackBarRef;\n    };\n    /**\n     * Opens a snackbar with a message and an optional action.\n     * @param message The message to show in the snackbar.\n     * @param action The label for the snackbar action.\n     * @param config Additional configuration options for the snackbar.\n     */\n    MdSnackBar.prototype.open = function (message, action, config) {\n        if (action === void 0) { action = ''; }\n        if (config === void 0) { config = {}; }\n        config.announcementMessage = message;\n        var simpleSnackBarRef = this.openFromComponent(SimpleSnackBar, config);\n        simpleSnackBarRef.instance.snackBarRef = simpleSnackBarRef;\n        simpleSnackBarRef.instance.message = message;\n        simpleSnackBarRef.instance.action = action;\n        return simpleSnackBarRef;\n    };\n    /**\n     * Attaches the snack bar container component to the overlay.\n     */\n    MdSnackBar.prototype._attachSnackBarContainer = function (overlayRef, config) {\n        var containerPortal = new ComponentPortal(MdSnackBarContainer, config.viewContainerRef);\n        var containerRef = overlayRef.attach(containerPortal);\n        containerRef.instance.snackBarConfig = config;\n        return containerRef.instance;\n    };\n    /**\n     * Places a new component as the content of the snack bar container.\n     */\n    MdSnackBar.prototype._attachSnackbarContent = function (component, container, overlayRef) {\n        var portal = new ComponentPortal(component);\n        var contentRef = container.attachComponentPortal(portal);\n        return new MdSnackBarRef(contentRef.instance, container, overlayRef);\n    };\n    /**\n     * Creates a new overlay and places it in the correct location.\n     */\n    MdSnackBar.prototype._createOverlay = function () {\n        var state$$1 = new OverlayState();\n        state$$1.positionStrategy = this._overlay.position().global()\n            .centerHorizontally()\n            .bottom('0');\n        return this._overlay.create(state$$1);\n    };\n    MdSnackBar = __decorate$48([\n        _angular_core.Injectable(), \n        __metadata$48('design:paramtypes', [Overlay, LiveAnnouncer])\n    ], MdSnackBar);\n    return MdSnackBar;\n}());\n/**\n * Applies default options to the snackbar config.\n * @param config The configuration to which the defaults will be applied.\n * @returns The new configuration object with defaults applied.\n */\nfunction _applyConfigDefaults(config) {\n    return extendObject(new MdSnackBarConfig(), config);\n}\nvar MdSnackBarModule = (function () {\n    function MdSnackBarModule() {\n    }\n    MdSnackBarModule.forRoot = function () {\n        return {\n            ngModule: MdSnackBarModule,\n            providers: [MdSnackBar, OVERLAY_PROVIDERS, LiveAnnouncer]\n        };\n    };\n    MdSnackBarModule = __decorate$48([\n        _angular_core.NgModule({\n            imports: [OverlayModule, PortalModule, _angular_common.CommonModule, DefaultStyleCompatibilityModeModule],\n            exports: [MdSnackBarContainer, DefaultStyleCompatibilityModeModule],\n            declarations: [MdSnackBarContainer, SimpleSnackBar],\n            entryComponents: [MdSnackBarContainer, SimpleSnackBar],\n        }), \n        __metadata$48('design:paramtypes', [])\n    ], MdSnackBarModule);\n    return MdSnackBarModule;\n}());\n\nvar __extends$17 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate$52 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$52 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/** Used to flag tab labels for use with the portal directive */\nvar MdTabLabel = (function (_super) {\n    __extends$17(MdTabLabel, _super);\n    function MdTabLabel(templateRef, viewContainerRef) {\n        _super.call(this, templateRef, viewContainerRef);\n    }\n    MdTabLabel = __decorate$52([\n        _angular_core.Directive({\n            selector: '[md-tab-label], [mat-tab-label]',\n        }), \n        __metadata$52('design:paramtypes', [_angular_core.TemplateRef, _angular_core.ViewContainerRef])\n    ], MdTabLabel);\n    return MdTabLabel;\n}(TemplatePortalDirective));\n\nvar __decorate$53 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$53 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/** Used in the `md-tab-group` view to display tab labels */\nvar MdTabLabelWrapper = (function () {\n    function MdTabLabelWrapper(elementRef, _renderer) {\n        this.elementRef = elementRef;\n        this._renderer = _renderer;\n        /** Whether the tab label is disabled.  */\n        this._disabled = false;\n    }\n    Object.defineProperty(MdTabLabelWrapper.prototype, \"disabled\", {\n        /** Whether the element is disabled. */\n        get: function () { return this._disabled; },\n        set: function (value) { this._disabled = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    /** Sets focus on the wrapper element */\n    MdTabLabelWrapper.prototype.focus = function () {\n        this._renderer.invokeElementMethod(this.elementRef.nativeElement, 'focus');\n    };\n    MdTabLabelWrapper.prototype.getOffsetLeft = function () {\n        return this.elementRef.nativeElement.offsetLeft;\n    };\n    MdTabLabelWrapper.prototype.getOffsetWidth = function () {\n        return this.elementRef.nativeElement.offsetWidth;\n    };\n    __decorate$53([\n        _angular_core.Input(), \n        __metadata$53('design:type', Object)\n    ], MdTabLabelWrapper.prototype, \"disabled\", null);\n    MdTabLabelWrapper = __decorate$53([\n        _angular_core.Directive({\n            selector: '[md-tab-label-wrapper], [mat-tab-label-wrapper]',\n            host: {\n                '[class.md-tab-disabled]': 'disabled'\n            }\n        }), \n        __metadata$53('design:paramtypes', [_angular_core.ElementRef, _angular_core.Renderer])\n    ], MdTabLabelWrapper);\n    return MdTabLabelWrapper;\n}());\n\nvar __decorate$55 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$55 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/** The ink-bar is used to display and animate the line underneath the current active tab label. */\nvar MdInkBar = (function () {\n    function MdInkBar(_renderer, _elementRef) {\n        this._renderer = _renderer;\n        this._elementRef = _elementRef;\n    }\n    /**\n     * Calculates the styles from the provided element in order to align the ink-bar to that element.\n     * Shows the ink bar if previously set as hidden.\n     * @param element\n     */\n    MdInkBar.prototype.alignToElement = function (element) {\n        this.show();\n        this._renderer.setElementStyle(this._elementRef.nativeElement, 'left', this._getLeftPosition(element));\n        this._renderer.setElementStyle(this._elementRef.nativeElement, 'width', this._getElementWidth(element));\n    };\n    /** Shows the ink bar. */\n    MdInkBar.prototype.show = function () {\n        this._renderer.setElementStyle(this._elementRef.nativeElement, 'visibility', 'visible');\n    };\n    /** Hides the ink bar. */\n    MdInkBar.prototype.hide = function () {\n        this._renderer.setElementStyle(this._elementRef.nativeElement, 'visibility', 'hidden');\n    };\n    /**\n     * Generates the pixel distance from the left based on the provided element in string format.\n     * @param element\n     */\n    MdInkBar.prototype._getLeftPosition = function (element) {\n        return element ? element.offsetLeft + 'px' : '0';\n    };\n    /**\n     * Generates the pixel width from the provided element in string format.\n     * @param element\n     */\n    MdInkBar.prototype._getElementWidth = function (element) {\n        return element ? element.offsetWidth + 'px' : '0';\n    };\n    MdInkBar = __decorate$55([\n        _angular_core.Directive({\n            selector: 'md-ink-bar, mat-ink-bar',\n        }), \n        __metadata$55('design:paramtypes', [_angular_core.Renderer, _angular_core.ElementRef])\n    ], MdInkBar);\n    return MdInkBar;\n}());\n\nvar __extends$18 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate$54 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$54 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Navigation component matching the styles of the tab group header.\n * Provides anchored navigation with animated ink bar.\n */\nvar MdTabNavBar = (function () {\n    function MdTabNavBar() {\n    }\n    /** Animates the ink bar to the position of the active link element. */\n    MdTabNavBar.prototype.updateActiveLink = function (element) {\n        this._inkBar.alignToElement(element);\n    };\n    __decorate$54([\n        _angular_core.ViewChild(MdInkBar), \n        __metadata$54('design:type', MdInkBar)\n    ], MdTabNavBar.prototype, \"_inkBar\", void 0);\n    MdTabNavBar = __decorate$54([\n        _angular_core.Component({selector: '[md-tab-nav-bar], [mat-tab-nav-bar]',\n            template: \"<ng-content></ng-content><md-ink-bar></md-ink-bar>\",\n            styles: [\"[md-tab-link],[md-tab-nav-bar]{position:relative;overflow:hidden}[md-tab-nav-bar]{display:flex;flex-direction:row;flex-shrink:0}[md-tab-link]{line-height:48px;height:48px;padding:0 12px;font-size:14px;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;font-weight:500;cursor:pointer;box-sizing:border-box;color:currentColor;opacity:.6;min-width:160px;text-align:center;text-decoration:none}[md-tab-link]:focus{outline:0;opacity:1}@media (max-width:600px){[md-tab-link]{min-width:72px}}md-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n        }), \n        __metadata$54('design:paramtypes', [])\n    ], MdTabNavBar);\n    return MdTabNavBar;\n}());\n/**\n * Link inside of a `md-tab-nav-bar`.\n */\nvar MdTabLink = (function () {\n    function MdTabLink(_mdTabNavBar, _element) {\n        this._mdTabNavBar = _mdTabNavBar;\n        this._element = _element;\n        this._isActive = false;\n    }\n    Object.defineProperty(MdTabLink.prototype, \"active\", {\n        /** Whether the link is active. */\n        get: function () { return this._isActive; },\n        set: function (value) {\n            this._isActive = value;\n            if (value) {\n                this._mdTabNavBar.updateActiveLink(this._element.nativeElement);\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    __decorate$54([\n        _angular_core.Input(), \n        __metadata$54('design:type', Boolean)\n    ], MdTabLink.prototype, \"active\", null);\n    MdTabLink = __decorate$54([\n        _angular_core.Directive({\n            selector: '[md-tab-link], [mat-tab-link]',\n        }), \n        __metadata$54('design:paramtypes', [MdTabNavBar, _angular_core.ElementRef])\n    ], MdTabLink);\n    return MdTabLink;\n}());\n/**\n * Simple directive that extends the ripple and matches the selector of the MdTabLink. This\n * adds the ripple behavior to nav bar labels.\n */\nvar MdTabLinkRipple = (function (_super) {\n    __extends$18(MdTabLinkRipple, _super);\n    function MdTabLinkRipple(_element, _ngZone, _ruler) {\n        _super.call(this, _element, _ngZone, _ruler);\n        this._element = _element;\n        this._ngZone = _ngZone;\n    }\n    /**\n     * In certain cases the parent destroy handler may not get called. See Angular issue #11606.\n     */\n    MdTabLinkRipple.prototype.ngOnDestroy = function () {\n        _super.prototype.ngOnDestroy.call(this);\n    };\n    MdTabLinkRipple = __decorate$54([\n        _angular_core.Directive({\n            selector: '[md-tab-link], [mat-tab-link]',\n        }), \n        __metadata$54('design:paramtypes', [_angular_core.ElementRef, _angular_core.NgZone, ViewportRuler])\n    ], MdTabLinkRipple);\n    return MdTabLinkRipple;\n}(MdRipple));\n\nvar __decorate$56 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$56 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MdTab = (function () {\n    function MdTab(_viewContainerRef) {\n        this._viewContainerRef = _viewContainerRef;\n        /** The plain text label for the tab, used when there is no template label. */\n        this.textLabel = '';\n        /** The portal that will be the hosted content of the tab */\n        this._contentPortal = null;\n        /**\n         * The relatively indexed position where 0 represents the center, negative is left, and positive\n         * represents the right.\n         */\n        this.position = null;\n        /**\n         * The initial relatively index origin of the tab if it was created and selected after there\n         * was already a selected tab. Provides context of what position the tab should originate from.\n         */\n        this.origin = null;\n        this._disabled = false;\n    }\n    Object.defineProperty(MdTab.prototype, \"content\", {\n        get: function () { return this._contentPortal; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdTab.prototype, \"disabled\", {\n        get: function () { return this._disabled; },\n        /** Whether the tab is disabled */\n        set: function (value) { this._disabled = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    MdTab.prototype.ngOnInit = function () {\n        this._contentPortal = new TemplatePortal(this._content, this._viewContainerRef);\n    };\n    __decorate$56([\n        _angular_core.ContentChild(MdTabLabel), \n        __metadata$56('design:type', MdTabLabel)\n    ], MdTab.prototype, \"templateLabel\", void 0);\n    __decorate$56([\n        _angular_core.ViewChild(_angular_core.TemplateRef), \n        __metadata$56('design:type', _angular_core.TemplateRef)\n    ], MdTab.prototype, \"_content\", void 0);\n    __decorate$56([\n        _angular_core.Input('label'), \n        __metadata$56('design:type', String)\n    ], MdTab.prototype, \"textLabel\", void 0);\n    __decorate$56([\n        _angular_core.Input(), \n        __metadata$56('design:type', Boolean), \n        __metadata$56('design:paramtypes', [Boolean])\n    ], MdTab.prototype, \"disabled\", null);\n    MdTab = __decorate$56([\n        _angular_core.Component({selector: 'md-tab',\n            template: \"<template><ng-content></ng-content></template>\",\n        }), \n        __metadata$56('design:paramtypes', [_angular_core.ViewContainerRef])\n    ], MdTab);\n    return MdTab;\n}());\n\nvar __decorate$57 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$57 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$11 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n/**\n * Wrapper for the contents of a tab.\n */\nvar MdTabBody = (function () {\n    function MdTabBody(_elementRef, _dir) {\n        this._elementRef = _elementRef;\n        this._dir = _dir;\n        /** Event emitted when the tab begins to animate towards the center as the active tab. */\n        this.onCentering = new _angular_core.EventEmitter();\n        /** Event emitted when the tab completes its animation towards the center. */\n        this.onCentered = new _angular_core.EventEmitter(true);\n    }\n    Object.defineProperty(MdTabBody.prototype, \"position\", {\n        set: function (position) {\n            if (position < 0) {\n                this._position = this._getLayoutDirection() == 'ltr' ? 'left' : 'right';\n            }\n            else if (position > 0) {\n                this._position = this._getLayoutDirection() == 'ltr' ? 'right' : 'left';\n            }\n            else {\n                this._position = 'center';\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdTabBody.prototype, \"origin\", {\n        /** The origin position from which this tab should appear when it is centered into view. */\n        set: function (origin) {\n            if (origin == null) {\n                return;\n            }\n            var dir = this._getLayoutDirection();\n            if ((dir == 'ltr' && origin <= 0) || (dir == 'rtl' && origin > 0)) {\n                this._origin = 'left';\n            }\n            else {\n                this._origin = 'right';\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * After initialized, check if the content is centered and has an origin. If so, set the\n     * special position states that transition the tab from the left or right before centering.\n     */\n    MdTabBody.prototype.ngOnInit = function () {\n        if (this._position == 'center' && this._origin) {\n            this._position = this._origin == 'left' ? 'left-origin-center' : 'right-origin-center';\n        }\n    };\n    /**\n     * After the view has been set, check if the tab content is set to the center and attach the\n     * content if it is not already attached.\n     */\n    MdTabBody.prototype.ngAfterViewChecked = function () {\n        if (this._isCenterPosition(this._position) && !this._portalHost.hasAttached()) {\n            this._portalHost.attach(this._content);\n        }\n    };\n    MdTabBody.prototype._onTranslateTabStarted = function (e) {\n        if (this._isCenterPosition(e.toState)) {\n            this.onCentering.emit(this._elementRef.nativeElement.clientHeight);\n        }\n    };\n    MdTabBody.prototype._onTranslateTabComplete = function (e) {\n        // If the end state is that the tab is not centered, then detach the content.\n        if (!this._isCenterPosition(e.toState) && !this._isCenterPosition(this._position)) {\n            this._portalHost.detach();\n        }\n        // If the transition to the center is complete, emit an event.\n        if (this._isCenterPosition(e.toState) && this._isCenterPosition(this._position)) {\n            this.onCentered.emit();\n        }\n    };\n    /** The text direction of the containing app. */\n    MdTabBody.prototype._getLayoutDirection = function () {\n        return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n    };\n    /** Whether the provided position state is considered center, regardless of origin. */\n    MdTabBody.prototype._isCenterPosition = function (position) {\n        return position == 'center' ||\n            position == 'left-origin-center' ||\n            position == 'right-origin-center';\n    };\n    __decorate$57([\n        _angular_core.ViewChild(PortalHostDirective), \n        __metadata$57('design:type', PortalHostDirective)\n    ], MdTabBody.prototype, \"_portalHost\", void 0);\n    __decorate$57([\n        _angular_core.Output(), \n        __metadata$57('design:type', _angular_core.EventEmitter)\n    ], MdTabBody.prototype, \"onCentering\", void 0);\n    __decorate$57([\n        _angular_core.Output(), \n        __metadata$57('design:type', _angular_core.EventEmitter)\n    ], MdTabBody.prototype, \"onCentered\", void 0);\n    __decorate$57([\n        _angular_core.Input('content'), \n        __metadata$57('design:type', TemplatePortal)\n    ], MdTabBody.prototype, \"_content\", void 0);\n    __decorate$57([\n        _angular_core.Input('position'), \n        __metadata$57('design:type', Number), \n        __metadata$57('design:paramtypes', [Number])\n    ], MdTabBody.prototype, \"position\", null);\n    __decorate$57([\n        _angular_core.Input('origin'), \n        __metadata$57('design:type', Number), \n        __metadata$57('design:paramtypes', [Number])\n    ], MdTabBody.prototype, \"origin\", null);\n    MdTabBody = __decorate$57([\n        _angular_core.Component({selector: 'md-tab-body',\n            template: \"<div class=\\\"md-tab-body-content\\\" #content [@translateTab]=\\\"_position\\\" (@translateTab.start)=\\\"_onTranslateTabStarted($event)\\\" (@translateTab.done)=\\\"_onTranslateTabComplete($event)\\\"><template cdkPortalHost></template></div>\",\n            animations: [\n                _angular_core.trigger('translateTab', [\n                    _angular_core.state('left', _angular_core.style({ transform: 'translate3d(-100%, 0, 0)' })),\n                    _angular_core.state('left-origin-center', _angular_core.style({ transform: 'translate3d(0, 0, 0)' })),\n                    _angular_core.state('right-origin-center', _angular_core.style({ transform: 'translate3d(0, 0, 0)' })),\n                    _angular_core.state('center', _angular_core.style({ transform: 'translate3d(0, 0, 0)' })),\n                    _angular_core.state('right', _angular_core.style({ transform: 'translate3d(100%, 0, 0)' })),\n                    _angular_core.transition('* => left, * => right, left => center, right => center', _angular_core.animate('500ms cubic-bezier(0.35, 0, 0.25, 1)')),\n                    _angular_core.transition('void => left-origin-center', [\n                        _angular_core.style({ transform: 'translate3d(-100%, 0, 0)' }),\n                        _angular_core.animate('500ms cubic-bezier(0.35, 0, 0.25, 1)')\n                    ]),\n                    _angular_core.transition('void => right-origin-center', [\n                        _angular_core.style({ transform: 'translate3d(100%, 0, 0)' }),\n                        _angular_core.animate('500ms cubic-bezier(0.35, 0, 0.25, 1)')\n                    ])\n                ])\n            ]\n        }),\n        __param$11(1, _angular_core.Optional()), \n        __metadata$57('design:paramtypes', [_angular_core.ElementRef, Dir])\n    ], MdTabBody);\n    return MdTabBody;\n}());\n\nvar __decorate$58 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$58 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$12 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n/**\n * The distance in pixels that will be overshot when scrolling a tab label into view. This helps\n * provide a small affordance to the label next to it.\n */\nvar EXAGGERATED_OVERSCROLL = 60;\n/**\n * The header of the tab group which displays a list of all the tabs in the tab group. Includes\n * an ink bar that follows the currently selected tab. When the tabs list's width exceeds the\n * width of the header container, then arrows will be displayed to allow the user to scroll\n * left and right across the header.\n */\nvar MdTabHeader = (function () {\n    function MdTabHeader(_zone, _elementRef, _dir) {\n        this._zone = _zone;\n        this._elementRef = _elementRef;\n        this._dir = _dir;\n        /** The tab index that is focused. */\n        this._focusIndex = 0;\n        /** The distance in pixels that the tab labels should be translated to the left. */\n        this._scrollDistance = 0;\n        /** Whether the header should scroll to the selected index after the view has been checked. */\n        this._selectedIndexChanged = false;\n        /** Whether the controls for pagination should be displayed */\n        this._showPaginationControls = false;\n        /** Whether the tab list can be scrolled more towards the end of the tab label list. */\n        this._disableScrollAfter = true;\n        /** Whether the tab list can be scrolled more towards the beginning of the tab label list. */\n        this._disableScrollBefore = true;\n        this._selectedIndex = 0;\n        /** Event emitted when the option is selected. */\n        this.selectFocusedIndex = new _angular_core.EventEmitter();\n        /** Event emitted when a label is focused. */\n        this.indexFocused = new _angular_core.EventEmitter();\n    }\n    Object.defineProperty(MdTabHeader.prototype, \"selectedIndex\", {\n        get: function () { return this._selectedIndex; },\n        /** The index of the active tab. */\n        set: function (value) {\n            this._selectedIndexChanged = this._selectedIndex != value;\n            this._selectedIndex = value;\n            this._focusIndex = value;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdTabHeader.prototype.ngAfterContentChecked = function () {\n        // If the number of tab labels have changed, check if scrolling should be enabled\n        if (this._tabLabelCount != this._labelWrappers.length) {\n            this._updatePagination();\n            this._tabLabelCount = this._labelWrappers.length;\n        }\n        // If the selected index has changed, scroll to the label and check if the scrolling controls\n        // should be disabled.\n        if (this._selectedIndexChanged) {\n            this._scrollToLabel(this._selectedIndex);\n            this._checkScrollingControls();\n            this._selectedIndexChanged = false;\n        }\n        // If the scroll distance has been changed (tab selected, focused, scroll controls activated),\n        // then translate the header to reflect this.\n        if (this._scrollDistanceChanged) {\n            this._updateTabScrollPosition();\n            this._scrollDistanceChanged = false;\n        }\n    };\n    /**\n     * Waits one frame for the view to update, then updates the ink bar and scroll.\n     * Note: This must be run outside of the zone or it will create an infinite change detection loop.\n     */\n    MdTabHeader.prototype.ngAfterViewChecked = function () {\n        var _this = this;\n        this._zone.runOutsideAngular(function () {\n            window.requestAnimationFrame(function () {\n                _this._alignInkBarToSelectedTab();\n            });\n        });\n    };\n    MdTabHeader.prototype._handleKeydown = function (event) {\n        switch (event.keyCode) {\n            case RIGHT_ARROW:\n                this._focusNextTab();\n                break;\n            case LEFT_ARROW:\n                this._focusPreviousTab();\n                break;\n            case ENTER:\n                this.selectFocusedIndex.emit(this.focusIndex);\n                break;\n        }\n    };\n    /**\n     * Updating the view whether pagination should be enabled or not\n     */\n    MdTabHeader.prototype._updatePagination = function () {\n        this._checkPaginationEnabled();\n        this._checkScrollingControls();\n        this._updateTabScrollPosition();\n    };\n    Object.defineProperty(MdTabHeader.prototype, \"focusIndex\", {\n        /** Tracks which element has focus; used for keyboard navigation */\n        get: function () { return this._focusIndex; },\n        /** When the focus index is set, we must manually send focus to the correct label */\n        set: function (value) {\n            if (!this._isValidIndex(value) || this._focusIndex == value) {\n                return;\n            }\n            this._focusIndex = value;\n            this.indexFocused.emit(value);\n            this._setTabFocus(value);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Determines if an index is valid.  If the tabs are not ready yet, we assume that the user is\n     * providing a valid index and return true.\n     */\n    MdTabHeader.prototype._isValidIndex = function (index) {\n        if (!this._labelWrappers) {\n            return true;\n        }\n        var tab = this._labelWrappers.toArray()[index];\n        return tab && !tab.disabled;\n    };\n    /**\n     * Sets focus on the HTML element for the label wrapper and scrolls it into the view if\n     * scrolling is enabled.\n     */\n    MdTabHeader.prototype._setTabFocus = function (tabIndex) {\n        if (this._showPaginationControls) {\n            this._scrollToLabel(tabIndex);\n        }\n        if (this._labelWrappers && this._labelWrappers.length) {\n            this._labelWrappers.toArray()[tabIndex].focus();\n            // Do not let the browser manage scrolling to focus the element, this will be handled\n            // by using translation. In LTR, the scroll left should be 0. In RTL, the scroll width\n            // should be the full width minus the offset width.\n            var containerEl = this._tabListContainer.nativeElement;\n            var dir = this._getLayoutDirection();\n            if (dir == 'ltr') {\n                containerEl.scrollLeft = 0;\n            }\n            else {\n                containerEl.scrollLeft = containerEl.scrollWidth - containerEl.offsetWidth;\n            }\n        }\n    };\n    /**\n     * Moves the focus towards the beginning or the end of the list depending on the offset provided.\n     * Valid offsets are 1 and -1.\n     */\n    MdTabHeader.prototype._moveFocus = function (offset) {\n        if (this._labelWrappers) {\n            var tabs = this._labelWrappers.toArray();\n            for (var i = this.focusIndex + offset; i < tabs.length && i >= 0; i += offset) {\n                if (this._isValidIndex(i)) {\n                    this.focusIndex = i;\n                    return;\n                }\n            }\n        }\n    };\n    /** Increment the focus index by 1 until a valid tab is found. */\n    MdTabHeader.prototype._focusNextTab = function () {\n        this._moveFocus(this._getLayoutDirection() == 'ltr' ? 1 : -1);\n    };\n    /** Decrement the focus index by 1 until a valid tab is found. */\n    MdTabHeader.prototype._focusPreviousTab = function () {\n        this._moveFocus(this._getLayoutDirection() == 'ltr' ? -1 : 1);\n    };\n    /** The layout direction of the containing app. */\n    MdTabHeader.prototype._getLayoutDirection = function () {\n        return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n    };\n    /** Performs the CSS transformation on the tab list that will cause the list to scroll. */\n    MdTabHeader.prototype._updateTabScrollPosition = function () {\n        var translateX = this.scrollDistance + 'px';\n        if (this._getLayoutDirection() == 'ltr') {\n            translateX = '-' + translateX;\n        }\n        applyCssTransform(this._tabList.nativeElement, \"translate3d(\" + translateX + \", 0, 0)\");\n    };\n    Object.defineProperty(MdTabHeader.prototype, \"scrollDistance\", {\n        get: function () { return this._scrollDistance; },\n        /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */\n        set: function (v) {\n            this._scrollDistance = Math.max(0, Math.min(this._getMaxScrollDistance(), v));\n            // Mark that the scroll distance has changed so that after the view is checked, the CSS\n            // transformation can move the header.\n            this._scrollDistanceChanged = true;\n            this._checkScrollingControls();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or\n     * the end of the list, respectively). The distance to scroll is computed to be a third of the\n     * length of the tab list view window.\n     *\n     * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n     * should be called sparingly.\n     */\n    MdTabHeader.prototype._scrollHeader = function (scrollDir) {\n        var viewLength = this._tabListContainer.nativeElement.offsetWidth;\n        // Move the scroll distance one-third the length of the tab list's viewport.\n        this.scrollDistance += (scrollDir == 'before' ? -1 : 1) * viewLength / 3;\n    };\n    /**\n     * Moves the tab list such that the desired tab label (marked by index) is moved into view.\n     *\n     * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n     * should be called sparingly.\n     */\n    MdTabHeader.prototype._scrollToLabel = function (labelIndex) {\n        var selectedLabel = this._labelWrappers.toArray()[labelIndex];\n        if (!selectedLabel) {\n            return;\n        }\n        // The view length is the visible width of the tab labels.\n        var viewLength = this._tabListContainer.nativeElement.offsetWidth;\n        var labelBeforePos, labelAfterPos;\n        if (this._getLayoutDirection() == 'ltr') {\n            labelBeforePos = selectedLabel.getOffsetLeft();\n            labelAfterPos = labelBeforePos + selectedLabel.getOffsetWidth();\n        }\n        else {\n            labelAfterPos = this._tabList.nativeElement.offsetWidth - selectedLabel.getOffsetLeft();\n            labelBeforePos = labelAfterPos - selectedLabel.getOffsetWidth();\n        }\n        var beforeVisiblePos = this.scrollDistance;\n        var afterVisiblePos = this.scrollDistance + viewLength;\n        if (labelBeforePos < beforeVisiblePos) {\n            // Scroll header to move label to the before direction\n            this.scrollDistance -= beforeVisiblePos - labelBeforePos + EXAGGERATED_OVERSCROLL;\n        }\n        else if (labelAfterPos > afterVisiblePos) {\n            // Scroll header to move label to the after direction\n            this.scrollDistance += labelAfterPos - afterVisiblePos + EXAGGERATED_OVERSCROLL;\n        }\n    };\n    /**\n     * Evaluate whether the pagination controls should be displayed. If the scroll width of the\n     * tab list is wider than the size of the header container, then the pagination controls should\n     * be shown.\n     *\n     * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n     * should be called sparingly.\n     */\n    MdTabHeader.prototype._checkPaginationEnabled = function () {\n        this._showPaginationControls =\n            this._tabList.nativeElement.scrollWidth > this._elementRef.nativeElement.offsetWidth;\n        if (!this._showPaginationControls) {\n            this.scrollDistance = 0;\n        }\n    };\n    /**\n     * Evaluate whether the before and after controls should be enabled or disabled.\n     * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the\n     * before button. If the header is at the end of the list (scroll distance is equal to the\n     * maximum distance we can scroll), then disable the after button.\n     *\n     * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n     * should be called sparingly.\n     */\n    MdTabHeader.prototype._checkScrollingControls = function () {\n        // Check if the pagination arrows should be activated.\n        this._disableScrollBefore = this.scrollDistance == 0;\n        this._disableScrollAfter = this.scrollDistance == this._getMaxScrollDistance();\n    };\n    /**\n     * Determines what is the maximum length in pixels that can be set for the scroll distance. This\n     * is equal to the difference in width between the tab list container and tab header container.\n     *\n     * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n     * should be called sparingly.\n     */\n    MdTabHeader.prototype._getMaxScrollDistance = function () {\n        var lengthOfTabList = this._tabList.nativeElement.scrollWidth;\n        var viewLength = this._tabListContainer.nativeElement.offsetWidth;\n        return lengthOfTabList - viewLength;\n    };\n    /** Tells the ink-bar to align itself to the current label wrapper */\n    MdTabHeader.prototype._alignInkBarToSelectedTab = function () {\n        var selectedLabelWrapper = this._labelWrappers && this._labelWrappers.length\n            ? this._labelWrappers.toArray()[this.selectedIndex].elementRef.nativeElement\n            : null;\n        this._inkBar.alignToElement(selectedLabelWrapper);\n    };\n    __decorate$58([\n        _angular_core.ContentChildren(MdTabLabelWrapper), \n        __metadata$58('design:type', _angular_core.QueryList)\n    ], MdTabHeader.prototype, \"_labelWrappers\", void 0);\n    __decorate$58([\n        _angular_core.ViewChild(MdInkBar), \n        __metadata$58('design:type', MdInkBar)\n    ], MdTabHeader.prototype, \"_inkBar\", void 0);\n    __decorate$58([\n        _angular_core.ViewChild('tabListContainer'), \n        __metadata$58('design:type', _angular_core.ElementRef)\n    ], MdTabHeader.prototype, \"_tabListContainer\", void 0);\n    __decorate$58([\n        _angular_core.ViewChild('tabList'), \n        __metadata$58('design:type', _angular_core.ElementRef)\n    ], MdTabHeader.prototype, \"_tabList\", void 0);\n    __decorate$58([\n        _angular_core.Input(), \n        __metadata$58('design:type', Number), \n        __metadata$58('design:paramtypes', [Number])\n    ], MdTabHeader.prototype, \"selectedIndex\", null);\n    __decorate$58([\n        _angular_core.Output(), \n        __metadata$58('design:type', Object)\n    ], MdTabHeader.prototype, \"selectFocusedIndex\", void 0);\n    __decorate$58([\n        _angular_core.Output(), \n        __metadata$58('design:type', Object)\n    ], MdTabHeader.prototype, \"indexFocused\", void 0);\n    MdTabHeader = __decorate$58([\n        _angular_core.Component({selector: 'md-tab-header',\n            template: \"<div class=\\\"md-tab-header-pagination md-tab-header-pagination-before md-elevation-z4\\\" aria-hidden=\\\"true\\\" md-ripple [mdRippleDisabled]=\\\"_disableScrollBefore\\\" [class.md-tab-header-pagination-disabled]=\\\"_disableScrollBefore\\\" (click)=\\\"_scrollHeader('before')\\\"><div class=\\\"md-tab-header-pagination-chevron\\\"></div></div><div class=\\\"md-tab-label-container\\\" #tabListContainer (keydown)=\\\"_handleKeydown($event)\\\"><div class=\\\"md-tab-list\\\" #tabList role=\\\"tablist\\\" (cdkObserveContent)=\\\"_updatePagination()\\\"><ng-content></ng-content><md-ink-bar></md-ink-bar></div></div><div class=\\\"md-tab-header-pagination md-tab-header-pagination-after md-elevation-z4\\\" aria-hidden=\\\"true\\\" md-ripple [mdRippleDisabled]=\\\"_disableScrollAfter\\\" [class.md-tab-header-pagination-disabled]=\\\"_disableScrollAfter\\\" (click)=\\\"_scrollHeader('after')\\\"><div class=\\\"md-tab-header-pagination-chevron\\\"></div></div>\",\n            styles: [\".md-tab-header{overflow:hidden;position:relative;display:flex;flex-direction:row;flex-shrink:0}.md-tab-label{line-height:48px;height:48px;padding:0 12px;font-size:14px;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;font-weight:500;cursor:pointer;box-sizing:border-box;color:currentColor;opacity:.6;min-width:160px;text-align:center;position:relative}.md-tab-label:focus{outline:0;opacity:1}@media (max-width:600px){.md-tab-label{min-width:72px}}md-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}.md-tab-header-pagination{position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2}.md-tab-header-pagination-controls-enabled .md-tab-header-pagination,.md-tab-list{display:flex}.md-tab-header-pagination-before,.md-tab-header-rtl .md-tab-header-pagination-after{padding-left:4px}.md-tab-header-pagination-before .md-tab-header-pagination-chevron,.md-tab-header-rtl .md-tab-header-pagination-after .md-tab-header-pagination-chevron{transform:rotate(-135deg)}.md-tab-header-pagination-after,.md-tab-header-rtl .md-tab-header-pagination-before{padding-right:4px}.md-tab-header-pagination-after .md-tab-header-pagination-chevron,.md-tab-header-rtl .md-tab-header-pagination-before .md-tab-header-pagination-chevron{transform:rotate(45deg)}.md-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:'';height:8px;width:8px}.md-tab-header-pagination-disabled{box-shadow:none;cursor:default}.md-tab-header-pagination-disabled .md-tab-header-pagination-chevron{border-color:#ccc}.md-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.md-tab-list{flex-grow:1;position:relative;transition:transform .5s cubic-bezier(.35,0,.25,1)}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n            host: {\n                'class': 'md-tab-header',\n                '[class.md-tab-header-pagination-controls-enabled]': '_showPaginationControls',\n                '[class.md-tab-header-rtl]': \"_getLayoutDirection() == 'rtl'\",\n            }\n        }),\n        __param$12(2, _angular_core.Optional()), \n        __metadata$58('design:paramtypes', [_angular_core.NgZone, _angular_core.ElementRef, Dir])\n    ], MdTabHeader);\n    return MdTabHeader;\n}());\n\nvar __decorate$51 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$51 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/** Used to generate unique ID's for each tab component */\nvar nextId$2 = 0;\n/** A simple change event emitted on focus or selection changes. */\nvar MdTabChangeEvent = (function () {\n    function MdTabChangeEvent() {\n    }\n    return MdTabChangeEvent;\n}());\n/**\n * Material design tab-group component.  Supports basic tab pairs (label + content) and includes\n * animated ink-bar, keyboard navigation, and screen reader.\n * See: https://www.google.com/design/spec/components/tabs.html\n */\nvar MdTabGroup = (function () {\n    function MdTabGroup(_renderer) {\n        this._renderer = _renderer;\n        /** Whether this component has been initialized. */\n        this._isInitialized = false;\n        /** The tab index that should be selected after the content has been checked. */\n        this._indexToSelect = 0;\n        /** Snapshot of the height of the tab body wrapper before another tab is activated. */\n        this._tabBodyWrapperHeight = null;\n        /** Whether the tab group should grow to the size of the active tab */\n        this._dynamicHeight = false;\n        this._selectedIndex = null;\n        this._onFocusChange = new _angular_core.EventEmitter();\n        this._onSelectChange = new _angular_core.EventEmitter(true);\n        this._groupId = nextId$2++;\n    }\n    Object.defineProperty(MdTabGroup.prototype, \"dynamicHeight\", {\n        get: function () { return this._dynamicHeight; },\n        set: function (value) { this._dynamicHeight = coerceBooleanProperty(value); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdTabGroup.prototype, \"_dynamicHeightDeprecated\", {\n        /** @deprecated */\n        get: function () { return this._dynamicHeight; },\n        set: function (value) { this._dynamicHeight = value; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdTabGroup.prototype, \"selectedIndex\", {\n        get: function () { return this._selectedIndex; },\n        /** The index of the active tab. */\n        set: function (value) { this._indexToSelect = value; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdTabGroup.prototype, \"selectedIndexChange\", {\n        /** Output to enable support for two-way binding on `selectedIndex`. */\n        get: function () {\n            return this.selectChange.map(function (event) { return event.index; });\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdTabGroup.prototype, \"focusChange\", {\n        /** Event emitted when focus has changed within a tab group. */\n        get: function () {\n            return this._onFocusChange.asObservable();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdTabGroup.prototype, \"selectChange\", {\n        /** Event emitted when the tab selection has changed. */\n        get: function () {\n            return this._onSelectChange.asObservable();\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * After the content is checked, this component knows what tabs have been defined\n     * and what the selected index should be. This is where we can know exactly what position\n     * each tab should be in according to the new selected index, and additionally we know how\n     * a new selected tab should transition in (from the left or right).\n     */\n    MdTabGroup.prototype.ngAfterContentChecked = function () {\n        var _this = this;\n        // Clamp the next selected index to the bounds of 0 and the tabs length.\n        this._indexToSelect =\n            Math.min(this._tabs.length - 1, Math.max(this._indexToSelect, 0));\n        // If there is a change in selected index, emit a change event. Should not trigger if\n        // the selected index has not yet been initialized.\n        if (this._selectedIndex != this._indexToSelect && this._selectedIndex != null) {\n            this._onSelectChange.emit(this._createChangeEvent(this._indexToSelect));\n        }\n        // Setup the position for each tab and optionally setup an origin on the next selected tab.\n        this._tabs.forEach(function (tab, index) {\n            tab.position = index - _this._indexToSelect;\n            // If there is already a selected tab, then set up an origin for the next selected tab\n            // if it doesn't have one already.\n            if (_this._selectedIndex != null && tab.position == 0 && !tab.origin) {\n                tab.origin = _this._indexToSelect - _this._selectedIndex;\n            }\n        });\n        this._selectedIndex = this._indexToSelect;\n    };\n    /**\n     * Waits one frame for the view to update, then updates the ink bar\n     * Note: This must be run outside of the zone or it will create an infinite change detection loop.\n     */\n    MdTabGroup.prototype.ngAfterViewChecked = function () {\n        this._isInitialized = true;\n    };\n    MdTabGroup.prototype._focusChanged = function (index) {\n        this._onFocusChange.emit(this._createChangeEvent(index));\n    };\n    MdTabGroup.prototype._createChangeEvent = function (index) {\n        var event = new MdTabChangeEvent;\n        event.index = index;\n        if (this._tabs && this._tabs.length) {\n            event.tab = this._tabs.toArray()[index];\n        }\n        return event;\n    };\n    /** Returns a unique id for each tab label element */\n    MdTabGroup.prototype._getTabLabelId = function (i) {\n        return \"md-tab-label-\" + this._groupId + \"-\" + i;\n    };\n    /** Returns a unique id for each tab content element */\n    MdTabGroup.prototype._getTabContentId = function (i) {\n        return \"md-tab-content-\" + this._groupId + \"-\" + i;\n    };\n    /**\n     * Sets the height of the body wrapper to the height of the activating tab if dynamic\n     * height property is true.\n     */\n    MdTabGroup.prototype._setTabBodyWrapperHeight = function (tabHeight) {\n        if (!this._dynamicHeight || !this._tabBodyWrapperHeight) {\n            return;\n        }\n        this._renderer.setElementStyle(this._tabBodyWrapper.nativeElement, 'height', this._tabBodyWrapperHeight + 'px');\n        // This conditional forces the browser to paint the height so that\n        // the animation to the new height can have an origin.\n        if (this._tabBodyWrapper.nativeElement.offsetHeight) {\n            this._renderer.setElementStyle(this._tabBodyWrapper.nativeElement, 'height', tabHeight + 'px');\n        }\n    };\n    /** Removes the height of the tab body wrapper. */\n    MdTabGroup.prototype._removeTabBodyWrapperHeight = function () {\n        this._tabBodyWrapperHeight = this._tabBodyWrapper.nativeElement.clientHeight;\n        this._renderer.setElementStyle(this._tabBodyWrapper.nativeElement, 'height', '');\n    };\n    __decorate$51([\n        _angular_core.ContentChildren(MdTab), \n        __metadata$51('design:type', _angular_core.QueryList)\n    ], MdTabGroup.prototype, \"_tabs\", void 0);\n    __decorate$51([\n        _angular_core.ViewChild('tabBodyWrapper'), \n        __metadata$51('design:type', _angular_core.ElementRef)\n    ], MdTabGroup.prototype, \"_tabBodyWrapper\", void 0);\n    __decorate$51([\n        _angular_core.Input(), \n        __metadata$51('design:type', Boolean)\n    ], MdTabGroup.prototype, \"dynamicHeight\", null);\n    __decorate$51([\n        _angular_core.Input('md-dynamic-height'), \n        __metadata$51('design:type', Boolean)\n    ], MdTabGroup.prototype, \"_dynamicHeightDeprecated\", null);\n    __decorate$51([\n        _angular_core.Input(), \n        __metadata$51('design:type', Number), \n        __metadata$51('design:paramtypes', [Number])\n    ], MdTabGroup.prototype, \"selectedIndex\", null);\n    __decorate$51([\n        _angular_core.Output(), \n        __metadata$51('design:type', rxjs_Observable.Observable)\n    ], MdTabGroup.prototype, \"selectedIndexChange\", null);\n    __decorate$51([\n        _angular_core.Output(), \n        __metadata$51('design:type', rxjs_Observable.Observable)\n    ], MdTabGroup.prototype, \"focusChange\", null);\n    __decorate$51([\n        _angular_core.Output(), \n        __metadata$51('design:type', rxjs_Observable.Observable)\n    ], MdTabGroup.prototype, \"selectChange\", null);\n    MdTabGroup = __decorate$51([\n        _angular_core.Component({selector: 'md-tab-group',\n            template: \"<md-tab-header [selectedIndex]=\\\"selectedIndex\\\" #tabHeader (indexFocused)=\\\"_focusChanged($event)\\\" (selectFocusedIndex)=\\\"selectedIndex = $event\\\"><div class=\\\"md-tab-label\\\" role=\\\"tab\\\" md-tab-label-wrapper md-ripple *ngFor=\\\"let tab of _tabs; let i = index\\\" [id]=\\\"_getTabLabelId(i)\\\" [tabIndex]=\\\"selectedIndex == i ? 0 : -1\\\" [attr.aria-controls]=\\\"_getTabContentId(i)\\\" [attr.aria-selected]=\\\"selectedIndex == i\\\" [class.md-tab-label-active]=\\\"selectedIndex == i\\\" [disabled]=\\\"tab.disabled\\\" (click)=\\\"tabHeader.focusIndex = selectedIndex = i\\\"><template [ngIf]=\\\"tab.templateLabel\\\"><template [cdkPortalHost]=\\\"tab.templateLabel\\\"></template></template><template [ngIf]=\\\"!tab.templateLabel\\\">{{tab.textLabel}}</template></div></md-tab-header><div class=\\\"md-tab-body-wrapper\\\" #tabBodyWrapper><md-tab-body role=\\\"tabpanel\\\" *ngFor=\\\"let tab of _tabs; let i = index\\\" [id]=\\\"_getTabContentId(i)\\\" [attr.aria-labelledby]=\\\"_getTabLabelId(i)\\\" [class.md-tab-body-active]=\\\"selectedIndex == i\\\" [content]=\\\"tab.content\\\" [position]=\\\"tab.position\\\" [origin]=\\\"tab.origin\\\" (onCentered)=\\\"_removeTabBodyWrapperHeight()\\\" (onCentering)=\\\"_setTabBodyWrapperHeight($event)\\\"></md-tab-body></div>\",\n            styles: [\":host{display:flex;flex-direction:column;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif}.md-tab-label{line-height:48px;height:48px;padding:0 12px;font-size:14px;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;font-weight:500;cursor:pointer;box-sizing:border-box;color:currentColor;opacity:.6;min-width:160px;text-align:center;position:relative}.md-tab-label:focus{outline:0;opacity:1}@media (max-width:600px){.md-tab-label{min-width:72px}}:host[md-stretch-tabs] .md-tab-label{flex-basis:0;flex-grow:1}.md-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height .5s cubic-bezier(.35,0,.25,1)}md-tab-body{position:absolute;top:0;left:0;right:0;bottom:0;display:block;overflow:hidden}md-tab-body.md-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}:host.md-tab-group-dynamic-height md-tab-body.md-tab-body-active{overflow-y:hidden}.md-tab-disabled{cursor:default;pointer-events:none}\"],\n            host: { '[class.md-tab-group-dynamic-height]': 'dynamicHeight' }\n        }), \n        __metadata$51('design:paramtypes', [_angular_core.Renderer])\n    ], MdTabGroup);\n    return MdTabGroup;\n}());\nvar MdTabsModule = (function () {\n    function MdTabsModule() {\n    }\n    MdTabsModule.forRoot = function () {\n        return {\n            ngModule: MdTabsModule,\n            providers: [ViewportRuler]\n        };\n    };\n    MdTabsModule = __decorate$51([\n        _angular_core.NgModule({\n            imports: [_angular_common.CommonModule, PortalModule, MdRippleModule, ObserveContentModule],\n            // Don't export all components because some are only to be used internally.\n            exports: [MdTabGroup, MdTabLabel, MdTab, MdTabNavBar, MdTabLink, MdTabLinkRipple],\n            declarations: [MdTabGroup, MdTabLabel, MdTab, MdInkBar, MdTabLabelWrapper,\n                MdTabNavBar, MdTabLink, MdTabBody, MdTabLinkRipple, MdTabHeader],\n        }), \n        __metadata$51('design:paramtypes', [])\n    ], MdTabsModule);\n    return MdTabsModule;\n}());\n\nvar __decorate$59 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$59 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MdToolbarRow = (function () {\n    function MdToolbarRow() {\n    }\n    MdToolbarRow = __decorate$59([\n        _angular_core.Directive({\n            selector: 'md-toolbar-row, mat-toolbar-row'\n        }), \n        __metadata$59('design:paramtypes', [])\n    ], MdToolbarRow);\n    return MdToolbarRow;\n}());\nvar MdToolbar = (function () {\n    function MdToolbar(elementRef, renderer) {\n        this.elementRef = elementRef;\n        this.renderer = renderer;\n    }\n    Object.defineProperty(MdToolbar.prototype, \"color\", {\n        /** The color of the toolbar. Can be primary, accent, or warn. */\n        get: function () {\n            return this._color;\n        },\n        set: function (value) {\n            this._updateColor(value);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    MdToolbar.prototype._updateColor = function (newColor) {\n        this._setElementColor(this._color, false);\n        this._setElementColor(newColor, true);\n        this._color = newColor;\n    };\n    MdToolbar.prototype._setElementColor = function (color, isAdd) {\n        if (color != null && color != '') {\n            this.renderer.setElementClass(this.elementRef.nativeElement, \"md-\" + color, isAdd);\n        }\n    };\n    __decorate$59([\n        _angular_core.Input(), \n        __metadata$59('design:type', String)\n    ], MdToolbar.prototype, \"color\", null);\n    MdToolbar = __decorate$59([\n        _angular_core.Component({selector: 'md-toolbar, mat-toolbar',\n            template: \"<div class=\\\"md-toolbar-layout\\\"><md-toolbar-row><ng-content></ng-content></md-toolbar-row><ng-content select=\\\"md-toolbar-row, mat-toolbar-row\\\"></ng-content></div>\",\n            styles: [\"md-toolbar,md-toolbar md-toolbar-row{display:flex;box-sizing:border-box;width:100%}md-toolbar{font-size:20px;font-weight:400;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;padding:0 16px;flex-direction:column;min-height:64px}md-toolbar md-toolbar-row{flex-direction:row;align-items:center}md-toolbar-row{height:64px}@media (max-width:600px) and (orientation:portrait){md-toolbar{min-height:56px}md-toolbar-row{height:56px}}@media (max-width:960px) and (orientation:landscape){md-toolbar{min-height:48px}md-toolbar-row{height:48px}}\"],\n            changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,\n            encapsulation: _angular_core.ViewEncapsulation.None\n        }), \n        __metadata$59('design:paramtypes', [_angular_core.ElementRef, _angular_core.Renderer])\n    ], MdToolbar);\n    return MdToolbar;\n}());\nvar MdToolbarModule = (function () {\n    function MdToolbarModule() {\n    }\n    MdToolbarModule.forRoot = function () {\n        return {\n            ngModule: MdToolbarModule,\n            providers: []\n        };\n    };\n    MdToolbarModule = __decorate$59([\n        _angular_core.NgModule({\n            imports: [DefaultStyleCompatibilityModeModule],\n            exports: [MdToolbar, MdToolbarRow, DefaultStyleCompatibilityModeModule],\n            declarations: [MdToolbar, MdToolbarRow],\n        }), \n        __metadata$59('design:paramtypes', [])\n    ], MdToolbarModule);\n    return MdToolbarModule;\n}());\n\nvar __extends$19 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * Exception thrown when a tooltip has an invalid position.\n * @docs-private\n */\nvar MdTooltipInvalidPositionError = (function (_super) {\n    __extends$19(MdTooltipInvalidPositionError, _super);\n    function MdTooltipInvalidPositionError(position) {\n        _super.call(this, \"Tooltip position \\\"\" + position + \"\\\" is invalid.\");\n    }\n    return MdTooltipInvalidPositionError;\n}(MdError));\n\nvar __decorate$60 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$60 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$13 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n/** Time in ms to delay before changing the tooltip visibility to hidden */\nvar TOUCHEND_HIDE_DELAY = 1500;\n/**\n * Directive that attaches a material design tooltip to the host element. Animates the showing and\n * hiding of a tooltip provided position (defaults to below the element).\n *\n * https://material.google.com/components/tooltips.html\n */\nvar MdTooltip = (function () {\n    function MdTooltip(_overlay, _elementRef, _viewContainerRef, _ngZone, _dir) {\n        this._overlay = _overlay;\n        this._elementRef = _elementRef;\n        this._viewContainerRef = _viewContainerRef;\n        this._ngZone = _ngZone;\n        this._dir = _dir;\n        this._position = 'below';\n        /** The default delay in ms before showing the tooltip after show is called */\n        this.showDelay = 0;\n        /** The default delay in ms before hiding the tooltip after hide is called */\n        this.hideDelay = 0;\n    }\n    Object.defineProperty(MdTooltip.prototype, \"position\", {\n        /** Allows the user to define the position of the tooltip relative to the parent element */\n        get: function () { return this._position; },\n        set: function (value) {\n            if (value !== this._position) {\n                this._position = value;\n                // TODO(andrewjs): When the overlay's position can be dynamically changed, do not destroy\n                // the tooltip.\n                if (this._tooltipInstance) {\n                    this._disposeTooltip();\n                }\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdTooltip.prototype, \"_positionDeprecated\", {\n        /** @deprecated */\n        get: function () { return this._position; },\n        set: function (value) { this._position = value; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdTooltip.prototype, \"message\", {\n        /** The message to be displayed in the tooltip */\n        get: function () { return this._message; },\n        set: function (value) {\n            this._message = value;\n            if (this._tooltipInstance) {\n                this._setTooltipMessage(this._message);\n            }\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdTooltip.prototype, \"_deprecatedMessage\", {\n        /** @deprecated */\n        get: function () { return this.message; },\n        set: function (v) { this.message = v; },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Dispose the tooltip when destroyed.\n     */\n    MdTooltip.prototype.ngOnDestroy = function () {\n        if (this._tooltipInstance) {\n            this._disposeTooltip();\n        }\n    };\n    /** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */\n    MdTooltip.prototype.show = function (delay) {\n        if (delay === void 0) { delay = this.showDelay; }\n        if (!this._message || !this._message.trim()) {\n            return;\n        }\n        if (!this._tooltipInstance) {\n            this._createTooltip();\n        }\n        this._setTooltipMessage(this._message);\n        this._tooltipInstance.show(this._position, delay);\n    };\n    /** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */\n    MdTooltip.prototype.hide = function (delay) {\n        if (delay === void 0) { delay = this.hideDelay; }\n        if (this._tooltipInstance) {\n            this._tooltipInstance.hide(delay);\n        }\n    };\n    /** Shows/hides the tooltip */\n    MdTooltip.prototype.toggle = function () {\n        this._isTooltipVisible() ? this.hide() : this.show();\n    };\n    /** Returns true if the tooltip is currently visible to the user */\n    MdTooltip.prototype._isTooltipVisible = function () {\n        return this._tooltipInstance && this._tooltipInstance.isVisible();\n    };\n    /** Create the tooltip to display */\n    MdTooltip.prototype._createTooltip = function () {\n        var _this = this;\n        this._createOverlay();\n        var portal = new ComponentPortal(TooltipComponent, this._viewContainerRef);\n        this._tooltipInstance = this._overlayRef.attach(portal).instance;\n        // Dispose the overlay when finished the shown tooltip.\n        this._tooltipInstance.afterHidden().subscribe(function () {\n            // Check first if the tooltip has already been removed through this components destroy.\n            if (_this._tooltipInstance) {\n                _this._disposeTooltip();\n            }\n        });\n    };\n    /** Create the overlay config and position strategy */\n    MdTooltip.prototype._createOverlay = function () {\n        var origin = this._getOrigin();\n        var position = this._getOverlayPosition();\n        var strategy = this._overlay.position().connectedTo(this._elementRef, origin, position);\n        var config = new OverlayState();\n        config.positionStrategy = strategy;\n        this._overlayRef = this._overlay.create(config);\n    };\n    /** Disposes the current tooltip and the overlay it is attached to */\n    MdTooltip.prototype._disposeTooltip = function () {\n        this._overlayRef.dispose();\n        this._overlayRef = null;\n        this._tooltipInstance = null;\n    };\n    /** Returns the origin position based on the user's position preference */\n    MdTooltip.prototype._getOrigin = function () {\n        if (this.position == 'above' || this.position == 'below') {\n            return { originX: 'center', originY: this.position == 'above' ? 'top' : 'bottom' };\n        }\n        var isDirectionLtr = !this._dir || this._dir.value == 'ltr';\n        if (this.position == 'left' ||\n            this.position == 'before' && isDirectionLtr ||\n            this.position == 'after' && !isDirectionLtr) {\n            return { originX: 'start', originY: 'center' };\n        }\n        if (this.position == 'right' ||\n            this.position == 'after' && isDirectionLtr ||\n            this.position == 'before' && !isDirectionLtr) {\n            return { originX: 'end', originY: 'center' };\n        }\n        throw new MdTooltipInvalidPositionError(this.position);\n    };\n    /** Returns the overlay position based on the user's preference */\n    MdTooltip.prototype._getOverlayPosition = function () {\n        if (this.position == 'above') {\n            return { overlayX: 'center', overlayY: 'bottom' };\n        }\n        if (this.position == 'below') {\n            return { overlayX: 'center', overlayY: 'top' };\n        }\n        var isLtr = !this._dir || this._dir.value == 'ltr';\n        if (this.position == 'left' ||\n            this.position == 'before' && isLtr ||\n            this.position == 'after' && !isLtr) {\n            return { overlayX: 'end', overlayY: 'center' };\n        }\n        if (this.position == 'right' ||\n            this.position == 'after' && isLtr ||\n            this.position == 'before' && !isLtr) {\n            return { overlayX: 'start', overlayY: 'center' };\n        }\n        throw new MdTooltipInvalidPositionError(this.position);\n    };\n    /** Updates the tooltip message and repositions the overlay according to the new message length */\n    MdTooltip.prototype._setTooltipMessage = function (message) {\n        var _this = this;\n        // Must wait for the message to be painted to the tooltip so that the overlay can properly\n        // calculate the correct positioning based on the size of the text.\n        this._tooltipInstance.message = message;\n        this._ngZone.onMicrotaskEmpty.first().subscribe(function () {\n            if (_this._tooltipInstance) {\n                _this._overlayRef.updatePosition();\n            }\n        });\n    };\n    __decorate$60([\n        _angular_core.Input('mdTooltipPosition'), \n        __metadata$60('design:type', String)\n    ], MdTooltip.prototype, \"position\", null);\n    __decorate$60([\n        _angular_core.Input('tooltip-position'), \n        __metadata$60('design:type', String)\n    ], MdTooltip.prototype, \"_positionDeprecated\", null);\n    __decorate$60([\n        _angular_core.Input('mdTooltipShowDelay'), \n        __metadata$60('design:type', Object)\n    ], MdTooltip.prototype, \"showDelay\", void 0);\n    __decorate$60([\n        _angular_core.Input('mdTooltipHideDelay'), \n        __metadata$60('design:type', Object)\n    ], MdTooltip.prototype, \"hideDelay\", void 0);\n    __decorate$60([\n        _angular_core.Input('mdTooltip'), \n        __metadata$60('design:type', Object)\n    ], MdTooltip.prototype, \"message\", null);\n    __decorate$60([\n        _angular_core.Input('md-tooltip'), \n        __metadata$60('design:type', String)\n    ], MdTooltip.prototype, \"_deprecatedMessage\", null);\n    MdTooltip = __decorate$60([\n        _angular_core.Directive({\n            selector: '[md-tooltip], [mat-tooltip], [mdTooltip]',\n            host: {\n                '(longpress)': 'show()',\n                '(touchend)': 'hide(' + TOUCHEND_HIDE_DELAY + ')',\n                '(mouseenter)': 'show()',\n                '(mouseleave)': 'hide()',\n            },\n            exportAs: 'mdTooltip',\n        }),\n        __param$13(4, _angular_core.Optional()), \n        __metadata$60('design:paramtypes', [Overlay, _angular_core.ElementRef, _angular_core.ViewContainerRef, _angular_core.NgZone, Dir])\n    ], MdTooltip);\n    return MdTooltip;\n}());\n/**\n * Internal component that wraps the tooltip's content.\n * @docs-private\n */\nvar TooltipComponent = (function () {\n    function TooltipComponent(_dir) {\n        this._dir = _dir;\n        /** Property watched by the animation framework to show or hide the tooltip */\n        this._visibility = 'initial';\n        /** Whether interactions on the page should close the tooltip */\n        this._closeOnInteraction = false;\n        /** The transform origin used in the animation for showing and hiding the tooltip */\n        this._transformOrigin = 'bottom';\n        /** Subject for notifying that the tooltip has been hidden from the view */\n        this._onHide = new rxjs_Subject.Subject();\n    }\n    /**\n     * Shows the tooltip with an animation originating from the provided origin\n     * @param position Position of the tooltip.\n     * @param delay Amount of milliseconds to the delay showing the tooltip.\n     */\n    TooltipComponent.prototype.show = function (position, delay) {\n        var _this = this;\n        // Cancel the delayed hide if it is scheduled\n        if (this._hideTimeoutId) {\n            clearTimeout(this._hideTimeoutId);\n        }\n        // Body interactions should cancel the tooltip if there is a delay in showing.\n        this._closeOnInteraction = true;\n        this._setTransformOrigin(position);\n        this._showTimeoutId = setTimeout(function () {\n            _this._visibility = 'visible';\n            // If this was set to true immediately, then a body click that triggers show() would\n            // trigger interaction and close the tooltip right after it was displayed.\n            _this._closeOnInteraction = false;\n            setTimeout(function () { _this._closeOnInteraction = true; }, 0);\n        }, delay);\n    };\n    /**\n     * Begins the animation to hide the tooltip after the provided delay in ms.\n     * @param delay Amount of milliseconds to delay showing the tooltip.\n     */\n    TooltipComponent.prototype.hide = function (delay) {\n        var _this = this;\n        // Cancel the delayed show if it is scheduled\n        if (this._showTimeoutId) {\n            clearTimeout(this._showTimeoutId);\n        }\n        this._hideTimeoutId = setTimeout(function () {\n            _this._visibility = 'hidden';\n            _this._closeOnInteraction = false;\n        }, delay);\n    };\n    /**\n     * Returns an observable that notifies when the tooltip has been hidden from view\n     */\n    TooltipComponent.prototype.afterHidden = function () {\n        return this._onHide.asObservable();\n    };\n    /**\n     * Whether the tooltip is being displayed\n     */\n    TooltipComponent.prototype.isVisible = function () {\n        return this._visibility === 'visible';\n    };\n    /** Sets the tooltip transform origin according to the tooltip position */\n    TooltipComponent.prototype._setTransformOrigin = function (value) {\n        var isLtr = !this._dir || this._dir.value == 'ltr';\n        switch (value) {\n            case 'before':\n                this._transformOrigin = isLtr ? 'right' : 'left';\n                break;\n            case 'after':\n                this._transformOrigin = isLtr ? 'left' : 'right';\n                break;\n            case 'left':\n                this._transformOrigin = 'right';\n                break;\n            case 'right':\n                this._transformOrigin = 'left';\n                break;\n            case 'above':\n                this._transformOrigin = 'bottom';\n                break;\n            case 'below':\n                this._transformOrigin = 'top';\n                break;\n            default: throw new MdTooltipInvalidPositionError(value);\n        }\n    };\n    TooltipComponent.prototype._afterVisibilityAnimation = function (e) {\n        if (e.toState === 'hidden' && !this.isVisible()) {\n            this._onHide.next();\n        }\n    };\n    /**\n     * Interactions on the HTML body should close the tooltip immediately as defined in the\n     * material design spec.\n     * https://material.google.com/components/tooltips.html#tooltips-interaction\n     */\n    TooltipComponent.prototype._handleBodyInteraction = function () {\n        if (this._closeOnInteraction) {\n            this.hide(0);\n        }\n    };\n    TooltipComponent = __decorate$60([\n        _angular_core.Component({selector: 'md-tooltip-component, mat-tooltip-component',\n            template: \"<div class=\\\"md-tooltip\\\" [style.transform-origin]=\\\"_transformOrigin\\\" [@state]=\\\"_visibility\\\" (@state.done)=\\\"_afterVisibilityAnimation($event)\\\">{{message}}</div>\",\n            styles: [\":host{pointer-events:none}.md-tooltip{color:#fff;padding:0 8px;border-radius:2px;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;font-size:10px;margin:14px;height:22px;line-height:22px}@media screen and (-ms-high-contrast:active){.md-tooltip{outline:solid 1px}}\"],\n            animations: [\n                _angular_core.trigger('state', [\n                    _angular_core.state('void', _angular_core.style({ transform: 'scale(0)' })),\n                    _angular_core.state('initial', _angular_core.style({ transform: 'scale(0)' })),\n                    _angular_core.state('visible', _angular_core.style({ transform: 'scale(1)' })),\n                    _angular_core.state('hidden', _angular_core.style({ transform: 'scale(0)' })),\n                    _angular_core.transition('* => visible', _angular_core.animate('150ms cubic-bezier(0.0, 0.0, 0.2, 1)')),\n                    _angular_core.transition('* => hidden', _angular_core.animate('150ms cubic-bezier(0.4, 0.0, 1, 1)')),\n                ])\n            ],\n            host: {\n                '(body:click)': 'this._handleBodyInteraction()'\n            }\n        }),\n        __param$13(0, _angular_core.Optional()), \n        __metadata$60('design:paramtypes', [Dir])\n    ], TooltipComponent);\n    return TooltipComponent;\n}());\nvar MdTooltipModule = (function () {\n    function MdTooltipModule() {\n    }\n    MdTooltipModule.forRoot = function () {\n        return {\n            ngModule: MdTooltipModule,\n            providers: [OVERLAY_PROVIDERS]\n        };\n    };\n    MdTooltipModule = __decorate$60([\n        _angular_core.NgModule({\n            imports: [OverlayModule, DefaultStyleCompatibilityModeModule],\n            exports: [MdTooltip, TooltipComponent, DefaultStyleCompatibilityModeModule],\n            declarations: [MdTooltip, TooltipComponent],\n            entryComponents: [TooltipComponent],\n        }), \n        __metadata$60('design:paramtypes', [])\n    ], MdTooltipModule);\n    return MdTooltipModule;\n}());\n\nvar __extends$20 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * Exception thrown when menu trigger doesn't have a valid md-menu instance\n * @docs-private\n */\nvar MdMenuMissingError = (function (_super) {\n    __extends$20(MdMenuMissingError, _super);\n    function MdMenuMissingError() {\n        _super.call(this, \"md-menu-trigger: must pass in an md-menu instance.\\n\\n    Example:\\n      <md-menu #menu=\\\"mdMenu\\\"></md-menu>\\n      <button [mdMenuTriggerFor]=\\\"menu\\\"></button>\\n    \");\n    }\n    return MdMenuMissingError;\n}(MdError));\n/**\n * Exception thrown when menu's x-position value isn't valid.\n * In other words, it doesn't match 'before' or 'after'.\n * @docs-private\n */\nvar MdMenuInvalidPositionX = (function (_super) {\n    __extends$20(MdMenuInvalidPositionX, _super);\n    function MdMenuInvalidPositionX() {\n        _super.call(this, \"x-position value must be either 'before' or after'.\\n      Example: <md-menu x-position=\\\"before\\\" #menu=\\\"mdMenu\\\"></md-menu>\\n    \");\n    }\n    return MdMenuInvalidPositionX;\n}(MdError));\n/**\n * Exception thrown when menu's y-position value isn't valid.\n * In other words, it doesn't match 'above' or 'below'.\n * @docs-private\n */\nvar MdMenuInvalidPositionY = (function (_super) {\n    __extends$20(MdMenuInvalidPositionY, _super);\n    function MdMenuInvalidPositionY() {\n        _super.call(this, \"y-position value must be either 'above' or below'.\\n      Example: <md-menu y-position=\\\"above\\\" #menu=\\\"mdMenu\\\"></md-menu>\\n    \");\n    }\n    return MdMenuInvalidPositionY;\n}(MdError));\n\nvar __decorate$63 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$63 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * This directive is intended to be used inside an md-menu tag.\n * It exists mostly to set the role attribute.\n */\nvar MdMenuItem = (function () {\n    function MdMenuItem(_renderer, _elementRef) {\n        this._renderer = _renderer;\n        this._elementRef = _elementRef;\n    }\n    MdMenuItem.prototype.focus = function () {\n        this._renderer.invokeElementMethod(this._elementRef.nativeElement, 'focus');\n    };\n    Object.defineProperty(MdMenuItem.prototype, \"disabled\", {\n        // this is necessary to support anchors\n        /** Whether the menu item is disabled. */\n        get: function () { return this._disabled; },\n        set: function (value) {\n            this._disabled = (value === false || value === undefined) ? null : true;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdMenuItem.prototype, \"isAriaDisabled\", {\n        /** Sets the aria-disabled property on the menu item. */\n        get: function () { return String(!!this.disabled); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(MdMenuItem.prototype, \"_tabindex\", {\n        get: function () { return this.disabled ? '-1' : '0'; },\n        enumerable: true,\n        configurable: true\n    });\n    MdMenuItem.prototype._getHostElement = function () {\n        return this._elementRef.nativeElement;\n    };\n    MdMenuItem.prototype._checkDisabled = function (event) {\n        if (this.disabled) {\n            event.preventDefault();\n            event.stopPropagation();\n        }\n    };\n    __decorate$63([\n        _angular_core.HostBinding('attr.disabled'),\n        _angular_core.Input(), \n        __metadata$63('design:type', Boolean)\n    ], MdMenuItem.prototype, \"disabled\", null);\n    __decorate$63([\n        _angular_core.HostBinding('attr.aria-disabled'), \n        __metadata$63('design:type', String)\n    ], MdMenuItem.prototype, \"isAriaDisabled\", null);\n    MdMenuItem = __decorate$63([\n        _angular_core.Component({selector: '[md-menu-item], [mat-menu-item]',\n            host: {\n                'role': 'menuitem',\n                '(click)': '_checkDisabled($event)',\n                '[attr.tabindex]': '_tabindex'\n            },\n            template: \"<ng-content></ng-content><div class=\\\"md-menu-ripple\\\" *ngIf=\\\"!disabled\\\" md-ripple mdRippleBackgroundColor=\\\"rgba(0,0,0,0)\\\" [mdRippleTrigger]=\\\"_getHostElement()\\\"></div>\",\n            exportAs: 'mdMenuItem'\n        }), \n        __metadata$63('design:paramtypes', [_angular_core.Renderer, _angular_core.ElementRef])\n    ], MdMenuItem);\n    return MdMenuItem;\n}());\n\n/**\n * Below are all the animations for the md-menu component.\n * Animation duration and timing values are based on Material 1.\n */\n/**\n * This animation controls the menu panel's entry and exit from the page.\n *\n * When the menu panel is added to the DOM, it scales in and fades in its border.\n *\n * When the menu panel is removed from the DOM, it simply fades out after a brief\n * delay to display the ripple.\n */\n// TODO(kara): switch to :enter and :leave once Mobile Safari is sorted out.\nvar transformMenu = _angular_core.trigger('transformMenu', [\n    _angular_core.state('showing', _angular_core.style({\n        opacity: 1,\n        transform: \"scale(1)\"\n    })),\n    _angular_core.transition('void => *', [\n        _angular_core.style({\n            opacity: 0,\n            transform: \"scale(0)\"\n        }),\n        _angular_core.animate(\"200ms cubic-bezier(0.25, 0.8, 0.25, 1)\")\n    ]),\n    _angular_core.transition('* => void', [\n        _angular_core.animate('50ms 100ms linear', _angular_core.style({ opacity: 0 }))\n    ])\n]);\n/**\n * This animation fades in the background color and content of the menu panel\n * after its containing element is scaled in.\n */\nvar fadeInItems = _angular_core.trigger('fadeInItems', [\n    _angular_core.state('showing', _angular_core.style({ opacity: 1 })),\n    _angular_core.transition('void => *', [\n        _angular_core.style({ opacity: 0 }),\n        _angular_core.animate(\"200ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)\")\n    ])\n]);\n\n// TODO(kara): prevent-close functionality\nvar __decorate$62 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$62 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$14 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar MdMenu = (function () {\n    function MdMenu(posX, posY) {\n        /** Config object to be passed into the menu's ngClass */\n        this._classList = {};\n        /** Position of the menu in the X axis. */\n        this.positionX = 'after';\n        /** Position of the menu in the Y axis. */\n        this.positionY = 'below';\n        /** Event emitted when the menu is closed. */\n        this.close = new _angular_core.EventEmitter();\n        if (posX) {\n            this._setPositionX(posX);\n        }\n        if (posY) {\n            this._setPositionY(posY);\n        }\n        this.setPositionClasses(this.positionX, this.positionY);\n    }\n    MdMenu.prototype.ngAfterContentInit = function () {\n        var _this = this;\n        this._keyManager = new ListKeyManager(this.items).withFocusWrap();\n        this._tabSubscription = this._keyManager.tabOut.subscribe(function () {\n            _this._emitCloseEvent();\n        });\n    };\n    MdMenu.prototype.ngOnDestroy = function () {\n        this._tabSubscription.unsubscribe();\n    };\n    Object.defineProperty(MdMenu.prototype, \"classList\", {\n        /**\n         * This method takes classes set on the host md-menu element and applies them on the\n         * menu template that displays in the overlay container.  Otherwise, it's difficult\n         * to style the containing menu from outside the component.\n         * @param classes list of class names\n         */\n        set: function (classes) {\n            this._classList = classes.split(' ').reduce(function (obj, className) {\n                obj[className] = true;\n                return obj;\n            }, {});\n            this.setPositionClasses(this.positionX, this.positionY);\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Focus the first item in the menu. This method is used by the menu trigger\n     * to focus the first item when the menu is opened by the ENTER key.\n     */\n    MdMenu.prototype.focusFirstItem = function () {\n        this._keyManager.focusFirstItem();\n    };\n    /**\n     * This emits a close event to which the trigger is subscribed. When emitted, the\n     * trigger will close the menu.\n     */\n    MdMenu.prototype._emitCloseEvent = function () {\n        this.close.emit();\n    };\n    MdMenu.prototype._setPositionX = function (pos) {\n        if (pos !== 'before' && pos !== 'after') {\n            throw new MdMenuInvalidPositionX();\n        }\n        this.positionX = pos;\n    };\n    MdMenu.prototype._setPositionY = function (pos) {\n        if (pos !== 'above' && pos !== 'below') {\n            throw new MdMenuInvalidPositionY();\n        }\n        this.positionY = pos;\n    };\n    /**\n     * It's necessary to set position-based classes to ensure the menu panel animation\n     * folds out from the correct direction.\n     */\n    MdMenu.prototype.setPositionClasses = function (posX, posY) {\n        this._classList['md-menu-before'] = posX == 'before';\n        this._classList['md-menu-after'] = posX == 'after';\n        this._classList['md-menu-above'] = posY == 'above';\n        this._classList['md-menu-below'] = posY == 'below';\n    };\n    __decorate$62([\n        _angular_core.ViewChild(_angular_core.TemplateRef), \n        __metadata$62('design:type', _angular_core.TemplateRef)\n    ], MdMenu.prototype, \"templateRef\", void 0);\n    __decorate$62([\n        _angular_core.ContentChildren(MdMenuItem), \n        __metadata$62('design:type', _angular_core.QueryList)\n    ], MdMenu.prototype, \"items\", void 0);\n    __decorate$62([\n        _angular_core.Input('class'), \n        __metadata$62('design:type', String), \n        __metadata$62('design:paramtypes', [String])\n    ], MdMenu.prototype, \"classList\", null);\n    __decorate$62([\n        _angular_core.Output(), \n        __metadata$62('design:type', Object)\n    ], MdMenu.prototype, \"close\", void 0);\n    MdMenu = __decorate$62([\n        _angular_core.Component({selector: 'md-menu, mat-menu',\n            host: { 'role': 'menu' },\n            template: \"<template><div class=\\\"md-menu-panel\\\" [ngClass]=\\\"_classList\\\" (keydown)=\\\"_keyManager.onKeydown($event)\\\" (click)=\\\"_emitCloseEvent()\\\" [@transformMenu]=\\\"'showing'\\\"><div class=\\\"md-menu-content\\\" [@fadeInItems]=\\\"'showing'\\\"><ng-content></ng-content></div></div></template>\",\n            styles: [\".md-menu-panel{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh + 48px)}.md-menu-panel.md-menu-after.md-menu-below{transform-origin:left top}.md-menu-panel.md-menu-after.md-menu-above{transform-origin:left bottom}.md-menu-panel.md-menu-before.md-menu-below{transform-origin:right top}.md-menu-panel.md-menu-before.md-menu-above{transform-origin:right bottom}[dir=rtl] .md-menu-panel.md-menu-after.md-menu-below{transform-origin:right top}[dir=rtl] .md-menu-panel.md-menu-after.md-menu-above{transform-origin:right bottom}[dir=rtl] .md-menu-panel.md-menu-before.md-menu-below{transform-origin:left top}[dir=rtl] .md-menu-panel.md-menu-before.md-menu-above{transform-origin:left bottom}@media screen and (-ms-high-contrast:active){.md-menu-panel{outline:solid 1px}}.md-menu-content{padding-top:8px;padding-bottom:8px}[md-menu-item]{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0;border:none;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;display:flex;flex-direction:row;align-items:center;height:48px;padding:0 16px;font-size:16px;font-family:Roboto,\\\"Helvetica Neue\\\",sans-serif;text-align:start;text-decoration:none;position:relative}[md-menu-item][disabled]{cursor:default}[md-menu-item] md-icon{margin-right:16px}[dir=rtl] [md-menu-item] md-icon{margin-left:16px}button[md-menu-item]{width:100%}.md-menu-ripple{position:absolute;top:0;left:0;bottom:0;right:0}\"],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n            animations: [\n                transformMenu,\n                fadeInItems\n            ],\n            exportAs: 'mdMenu'\n        }),\n        __param$14(0, _angular_core.Attribute('x-position')),\n        __param$14(1, _angular_core.Attribute('y-position')), \n        __metadata$62('design:paramtypes', [String, String])\n    ], MdMenu);\n    return MdMenu;\n}());\n\nvar __decorate$64 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$64 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param$15 = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n/**\n * This directive is intended to be used in conjunction with an md-menu tag.  It is\n * responsible for toggling the display of the provided menu instance.\n */\nvar MdMenuTrigger = (function () {\n    function MdMenuTrigger(_overlay, _element, _viewContainerRef, _renderer, _dir) {\n        this._overlay = _overlay;\n        this._element = _element;\n        this._viewContainerRef = _viewContainerRef;\n        this._renderer = _renderer;\n        this._dir = _dir;\n        this._menuOpen = false;\n        // tracking input type is necessary so it's possible to only auto-focus\n        // the first item of the list when the menu is opened via the keyboard\n        this._openedByMouse = false;\n        /** Event emitted when the associated menu is opened. */\n        this.onMenuOpen = new _angular_core.EventEmitter();\n        /** Event emitted when the associated menu is closed. */\n        this.onMenuClose = new _angular_core.EventEmitter();\n    }\n    Object.defineProperty(MdMenuTrigger.prototype, \"_deprecatedMenuTriggerFor\", {\n        /** @deprecated */\n        get: function () { return this.menu; },\n        set: function (v) { this.menu = v; },\n        enumerable: true,\n        configurable: true\n    });\n    MdMenuTrigger.prototype.ngAfterViewInit = function () {\n        var _this = this;\n        this._checkMenu();\n        this.menu.close.subscribe(function () { return _this.closeMenu(); });\n    };\n    MdMenuTrigger.prototype.ngOnDestroy = function () { this.destroyMenu(); };\n    Object.defineProperty(MdMenuTrigger.prototype, \"menuOpen\", {\n        /** Whether the menu is open. */\n        get: function () { return this._menuOpen; },\n        enumerable: true,\n        configurable: true\n    });\n    /** Toggles the menu between the open and closed states. */\n    MdMenuTrigger.prototype.toggleMenu = function () {\n        return this._menuOpen ? this.closeMenu() : this.openMenu();\n    };\n    /** Opens the menu. */\n    MdMenuTrigger.prototype.openMenu = function () {\n        if (!this._menuOpen) {\n            this._createOverlay();\n            this._overlayRef.attach(this._portal);\n            this._subscribeToBackdrop();\n            this._initMenu();\n        }\n    };\n    /** Closes the menu. */\n    MdMenuTrigger.prototype.closeMenu = function () {\n        if (this._overlayRef) {\n            this._overlayRef.detach();\n            this._backdropSubscription.unsubscribe();\n            this._resetMenu();\n        }\n    };\n    /** Removes the menu from the DOM. */\n    MdMenuTrigger.prototype.destroyMenu = function () {\n        if (this._overlayRef) {\n            this._overlayRef.dispose();\n            this._overlayRef = null;\n            this._cleanUpSubscriptions();\n        }\n    };\n    /** Focuses the menu trigger. */\n    MdMenuTrigger.prototype.focus = function () {\n        this._renderer.invokeElementMethod(this._element.nativeElement, 'focus');\n    };\n    Object.defineProperty(MdMenuTrigger.prototype, \"dir\", {\n        /** The text direction of the containing app. */\n        get: function () {\n            return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * This method ensures that the menu closes when the overlay backdrop is clicked.\n     * We do not use first() here because doing so would not catch clicks from within\n     * the menu, and it would fail to unsubscribe properly. Instead, we unsubscribe\n     * explicitly when the menu is closed or destroyed.\n     */\n    MdMenuTrigger.prototype._subscribeToBackdrop = function () {\n        var _this = this;\n        this._backdropSubscription = this._overlayRef.backdropClick().subscribe(function () {\n            _this.closeMenu();\n        });\n    };\n    /**\n     * This method sets the menu state to open and focuses the first item if\n     * the menu was opened via the keyboard.\n     */\n    MdMenuTrigger.prototype._initMenu = function () {\n        this._setIsMenuOpen(true);\n        // Should only set focus if opened via the keyboard, so keyboard users can\n        // can easily navigate menu items. According to spec, mouse users should not\n        // see the focus style.\n        if (!this._openedByMouse) {\n            this.menu.focusFirstItem();\n        }\n    };\n    \n    /**\n     * This method resets the menu when it's closed, most importantly restoring\n     * focus to the menu trigger if the menu was opened via the keyboard.\n     */\n    MdMenuTrigger.prototype._resetMenu = function () {\n        this._setIsMenuOpen(false);\n        // Focus only needs to be reset to the host element if the menu was opened\n        // by the keyboard and manually shifted to the first menu item.\n        if (!this._openedByMouse) {\n            this.focus();\n        }\n        this._openedByMouse = false;\n    };\n    // set state rather than toggle to support triggers sharing a menu\n    MdMenuTrigger.prototype._setIsMenuOpen = function (isOpen) {\n        this._menuOpen = isOpen;\n        this._menuOpen ? this.onMenuOpen.emit() : this.onMenuClose.emit();\n    };\n    /**\n     *  This method checks that a valid instance of MdMenu has been passed into\n     *  mdMenuTriggerFor. If not, an exception is thrown.\n     */\n    MdMenuTrigger.prototype._checkMenu = function () {\n        if (!this.menu) {\n            throw new MdMenuMissingError();\n        }\n    };\n    /**\n     *  This method creates the overlay from the provided menu's template and saves its\n     *  OverlayRef so that it can be attached to the DOM when openMenu is called.\n     */\n    MdMenuTrigger.prototype._createOverlay = function () {\n        if (!this._overlayRef) {\n            this._portal = new TemplatePortal(this.menu.templateRef, this._viewContainerRef);\n            var config = this._getOverlayConfig();\n            this._subscribeToPositions(config.positionStrategy);\n            this._overlayRef = this._overlay.create(config);\n        }\n    };\n    /**\n     * This method builds the configuration object needed to create the overlay, the OverlayState.\n     * @returns OverlayState\n     */\n    MdMenuTrigger.prototype._getOverlayConfig = function () {\n        var overlayState = new OverlayState();\n        overlayState.positionStrategy = this._getPosition()\n            .withDirection(this.dir);\n        overlayState.hasBackdrop = true;\n        overlayState.backdropClass = 'cdk-overlay-transparent-backdrop';\n        overlayState.direction = this.dir;\n        return overlayState;\n    };\n    /**\n     * Listens to changes in the position of the overlay and sets the correct classes\n     * on the menu based on the new position. This ensures the animation origin is always\n     * correct, even if a fallback position is used for the overlay.\n     */\n    MdMenuTrigger.prototype._subscribeToPositions = function (position) {\n        var _this = this;\n        this._positionSubscription = position.onPositionChange.subscribe(function (change) {\n            var posX = change.connectionPair.originX === 'start' ? 'after' : 'before';\n            var posY = change.connectionPair.originY === 'top' ? 'below' : 'above';\n            _this.menu.setPositionClasses(posX, posY);\n        });\n    };\n    /**\n     * This method builds the position strategy for the overlay, so the menu is properly connected\n     * to the trigger.\n     * @returns ConnectedPositionStrategy\n     */\n    MdMenuTrigger.prototype._getPosition = function () {\n        var _a = this.menu.positionX === 'before' ? ['end', 'start'] : ['start', 'end'], posX = _a[0], fallbackX = _a[1];\n        var _b = this.menu.positionY === 'above' ? ['bottom', 'top'] : ['top', 'bottom'], posY = _b[0], fallbackY = _b[1];\n        return this._overlay.position()\n            .connectedTo(this._element, { originX: posX, originY: posY }, { overlayX: posX, overlayY: posY })\n            .withFallbackPosition({ originX: fallbackX, originY: posY }, { overlayX: fallbackX, overlayY: posY })\n            .withFallbackPosition({ originX: posX, originY: fallbackY }, { overlayX: posX, overlayY: fallbackY })\n            .withFallbackPosition({ originX: fallbackX, originY: fallbackY }, { overlayX: fallbackX, overlayY: fallbackY });\n    };\n    MdMenuTrigger.prototype._cleanUpSubscriptions = function () {\n        if (this._backdropSubscription) {\n            this._backdropSubscription.unsubscribe();\n        }\n        if (this._positionSubscription) {\n            this._positionSubscription.unsubscribe();\n        }\n    };\n    MdMenuTrigger.prototype._handleMousedown = function (event) {\n        if (!isFakeMousedownFromScreenReader(event)) {\n            this._openedByMouse = true;\n        }\n    };\n    __decorate$64([\n        _angular_core.Input('md-menu-trigger-for'), \n        __metadata$64('design:type', Object)\n    ], MdMenuTrigger.prototype, \"_deprecatedMenuTriggerFor\", null);\n    __decorate$64([\n        _angular_core.Input('mdMenuTriggerFor'), \n        __metadata$64('design:type', Object)\n    ], MdMenuTrigger.prototype, \"menu\", void 0);\n    __decorate$64([\n        _angular_core.Output(), \n        __metadata$64('design:type', Object)\n    ], MdMenuTrigger.prototype, \"onMenuOpen\", void 0);\n    __decorate$64([\n        _angular_core.Output(), \n        __metadata$64('design:type', Object)\n    ], MdMenuTrigger.prototype, \"onMenuClose\", void 0);\n    MdMenuTrigger = __decorate$64([\n        _angular_core.Directive({\n            selector: '[md-menu-trigger-for], [mat-menu-trigger-for], [mdMenuTriggerFor]',\n            host: {\n                'aria-haspopup': 'true',\n                '(mousedown)': '_handleMousedown($event)',\n                '(click)': 'toggleMenu()',\n            },\n            exportAs: 'mdMenuTrigger'\n        }),\n        __param$15(4, _angular_core.Optional()), \n        __metadata$64('design:paramtypes', [Overlay, _angular_core.ElementRef, _angular_core.ViewContainerRef, _angular_core.Renderer, Dir])\n    ], MdMenuTrigger);\n    return MdMenuTrigger;\n}());\n\nvar __decorate$61 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$61 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MdMenuModule = (function () {\n    function MdMenuModule() {\n    }\n    MdMenuModule.forRoot = function () {\n        return {\n            ngModule: MdMenuModule,\n            providers: OVERLAY_PROVIDERS,\n        };\n    };\n    MdMenuModule = __decorate$61([\n        _angular_core.NgModule({\n            imports: [OverlayModule, _angular_common.CommonModule, MdRippleModule, DefaultStyleCompatibilityModeModule],\n            exports: [MdMenu, MdMenuItem, MdMenuTrigger, DefaultStyleCompatibilityModeModule],\n            declarations: [MdMenu, MdMenuItem, MdMenuTrigger],\n        }), \n        __metadata$61('design:paramtypes', [])\n    ], MdMenuModule);\n    return MdMenuModule;\n}());\n\n// TODO(jelbourn): resizing\n// TODO(jelbourn): afterOpen and beforeClose\n/**\n * Reference to a dialog opened via the MdDialog service.\n */\nvar MdDialogRef = (function () {\n    function MdDialogRef(_overlayRef) {\n        this._overlayRef = _overlayRef;\n        /** Subject for notifying the user that the dialog has finished closing. */\n        this._afterClosed = new rxjs_Subject.Subject();\n    }\n    /**\n     * Close the dialog.\n     * @param dialogResult Optional result to return to the dialog opener.\n     */\n    MdDialogRef.prototype.close = function (dialogResult) {\n        this._overlayRef.dispose();\n        this._afterClosed.next(dialogResult);\n        this._afterClosed.complete();\n    };\n    /**\n     * Gets an observable that is notified when the dialog is finished closing.\n     */\n    MdDialogRef.prototype.afterClosed = function () {\n        return this._afterClosed.asObservable();\n    };\n    return MdDialogRef;\n}());\n\n/** Custom injector type specifically for instantiating components with a dialog. */\nvar DialogInjector = (function () {\n    function DialogInjector(_dialogRef, _parentInjector) {\n        this._dialogRef = _dialogRef;\n        this._parentInjector = _parentInjector;\n    }\n    DialogInjector.prototype.get = function (token, notFoundValue) {\n        if (token === MdDialogRef) {\n            return this._dialogRef;\n        }\n        return this._parentInjector.get(token, notFoundValue);\n    };\n    return DialogInjector;\n}());\n\n/**\n * Configuration for opening a modal dialog with the MdDialog service.\n */\nvar MdDialogConfig = (function () {\n    function MdDialogConfig() {\n        /** The ARIA role of the dialog element. */\n        this.role = 'dialog';\n        /** Whether the user can use escape or clicking outside to close a modal. */\n        this.disableClose = false;\n        /** Width of the dialog. */\n        this.width = '';\n        /** Height of the dialog. */\n        this.height = '';\n    }\n    return MdDialogConfig;\n}());\n\nvar __extends$22 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * Exception thrown when a ComponentPortal is attached to a DomPortalHost without an origin.\n * @docs-private\n */\nvar MdDialogContentAlreadyAttachedError = (function (_super) {\n    __extends$22(MdDialogContentAlreadyAttachedError, _super);\n    function MdDialogContentAlreadyAttachedError() {\n        _super.call(this, 'Attempting to attach dialog content after content is already attached');\n    }\n    return MdDialogContentAlreadyAttachedError;\n}(MdError));\n\nvar __extends$21 = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate$67 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$67 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Internal component that wraps user-provided dialog content.\n * @docs-private\n */\nvar MdDialogContainer = (function (_super) {\n    __extends$21(MdDialogContainer, _super);\n    function MdDialogContainer(_ngZone) {\n        _super.call(this);\n        this._ngZone = _ngZone;\n        /** Element that was focused before the dialog was opened. Save this to restore upon close. */\n        this._elementFocusedBeforeDialogWasOpened = null;\n    }\n    /**\n     * Attach a portal as content to this dialog container.\n     * @param portal Portal to be attached as the dialog content.\n     */\n    MdDialogContainer.prototype.attachComponentPortal = function (portal) {\n        var _this = this;\n        if (this._portalHost.hasAttached()) {\n            throw new MdDialogContentAlreadyAttachedError();\n        }\n        var attachResult = this._portalHost.attachComponentPortal(portal);\n        // If were to attempt to focus immediately, then the content of the dialog would not yet be\n        // ready in instances where change detection has to run first. To deal with this, we simply\n        // wait for the microtask queue to be empty.\n        this._ngZone.onMicrotaskEmpty.first().subscribe(function () {\n            _this._elementFocusedBeforeDialogWasOpened = document.activeElement;\n            _this._focusTrap.focusFirstTabbableElement();\n        });\n        return attachResult;\n    };\n    /** @docs-private */\n    MdDialogContainer.prototype.attachTemplatePortal = function (portal) {\n        throw Error('Not yet implemented');\n    };\n    /**\n     * Handles the user pressing the Escape key.\n     * @docs-private\n     */\n    MdDialogContainer.prototype.handleEscapeKey = function () {\n        if (!this.dialogConfig.disableClose) {\n            this.dialogRef.close();\n        }\n    };\n    MdDialogContainer.prototype.ngOnDestroy = function () {\n        var _this = this;\n        // When the dialog is destroyed, return focus to the element that originally had it before\n        // the dialog was opened. Wait for the DOM to finish settling before changing the focus so\n        // that it doesn't end up back on the <body>.\n        this._ngZone.onMicrotaskEmpty.first().subscribe(function () {\n            _this._elementFocusedBeforeDialogWasOpened.focus();\n        });\n    };\n    __decorate$67([\n        _angular_core.ViewChild(PortalHostDirective), \n        __metadata$67('design:type', PortalHostDirective)\n    ], MdDialogContainer.prototype, \"_portalHost\", void 0);\n    __decorate$67([\n        _angular_core.ViewChild(FocusTrap), \n        __metadata$67('design:type', FocusTrap)\n    ], MdDialogContainer.prototype, \"_focusTrap\", void 0);\n    MdDialogContainer = __decorate$67([\n        _angular_core.Component({selector: 'md-dialog-container, mat-dialog-container',\n            template: \"<cdk-focus-trap><template cdkPortalHost></template></cdk-focus-trap>\",\n            styles: [\"md-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);display:block;padding:24px;border-radius:2px;box-sizing:border-box;overflow:auto;max-width:80vw;width:100%;height:100%}@media screen and (-ms-high-contrast:active){md-dialog-container{outline:solid 1px}}[mat-dialog-content],[md-dialog-content],mat-dialog-content,md-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto}[mat-dialog-title],[md-dialog-title]{font-size:20px;font-weight:700;margin:0 0 20px;display:block}[mat-dialog-actions],[md-dialog-actions],mat-dialog-actions,md-dialog-actions{padding:12px 0;display:block}[mat-dialog-actions]:last-child,[md-dialog-actions]:last-child,mat-dialog-actions:last-child,md-dialog-actions:last-child{margin-bottom:-24px}\"],\n            host: {\n                'class': 'md-dialog-container',\n                '[attr.role]': 'dialogConfig?.role',\n                '(keydown.escape)': 'handleEscapeKey()',\n            },\n            encapsulation: _angular_core.ViewEncapsulation.None,\n        }), \n        __metadata$67('design:paramtypes', [_angular_core.NgZone])\n    ], MdDialogContainer);\n    return MdDialogContainer;\n}(BasePortalHost));\n\nvar __decorate$66 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$66 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n// TODO(jelbourn): add support for opening with a TemplateRef\n// TODO(jelbourn): animations\n/**\n * Service to open Material Design modal dialogs.\n */\nvar MdDialog = (function () {\n    function MdDialog(_overlay, _injector) {\n        this._overlay = _overlay;\n        this._injector = _injector;\n        /** Keeps track of the currently-open dialogs. */\n        this._openDialogs = [];\n    }\n    /**\n     * Opens a modal dialog containing the given component.\n     * @param component Type of the component to load into the load.\n     * @param config Extra configuration options.\n     * @returns Reference to the newly-opened dialog.\n     */\n    MdDialog.prototype.open = function (component, config) {\n        var _this = this;\n        config = _applyConfigDefaults$1(config);\n        var overlayRef = this._createOverlay(config);\n        var dialogContainer = this._attachDialogContainer(overlayRef, config);\n        var dialogRef = this._attachDialogContent(component, dialogContainer, overlayRef);\n        this._openDialogs.push(dialogRef);\n        dialogRef.afterClosed().subscribe(function () { return _this._removeOpenDialog(dialogRef); });\n        return dialogRef;\n    };\n    /**\n     * Closes all of the currently-open dialogs.\n     */\n    MdDialog.prototype.closeAll = function () {\n        var i = this._openDialogs.length;\n        while (i--) {\n            // The `_openDialogs` property isn't updated after close until the rxjs subscription\n            // runs on the next microtask, in addition to modifying the array as we're going\n            // through it. We loop through all of them and call close without assuming that\n            // they'll be removed from the list instantaneously.\n            this._openDialogs[i].close();\n        }\n    };\n    /**\n     * Creates the overlay into which the dialog will be loaded.\n     * @param dialogConfig The dialog configuration.\n     * @returns A promise resolving to the OverlayRef for the created overlay.\n     */\n    MdDialog.prototype._createOverlay = function (dialogConfig) {\n        var overlayState = this._getOverlayState(dialogConfig);\n        return this._overlay.create(overlayState);\n    };\n    /**\n     * Attaches an MdDialogContainer to a dialog's already-created overlay.\n     * @param overlay Reference to the dialog's underlying overlay.\n     * @param config The dialog configuration.\n     * @returns A promise resolving to a ComponentRef for the attached container.\n     */\n    MdDialog.prototype._attachDialogContainer = function (overlay, config) {\n        var viewContainer = config ? config.viewContainerRef : null;\n        var containerPortal = new ComponentPortal(MdDialogContainer, viewContainer);\n        var containerRef = overlay.attach(containerPortal);\n        containerRef.instance.dialogConfig = config;\n        return containerRef.instance;\n    };\n    /**\n     * Attaches the user-provided component to the already-created MdDialogContainer.\n     * @param component The type of component being loaded into the dialog.\n     * @param dialogContainer Reference to the wrapping MdDialogContainer.\n     * @param overlayRef Reference to the overlay in which the dialog resides.\n     * @returns A promise resolving to the MdDialogRef that should be returned to the user.\n     */\n    MdDialog.prototype._attachDialogContent = function (component, dialogContainer, overlayRef) {\n        // Create a reference to the dialog we're creating in order to give the user a handle\n        // to modify and close it.\n        var dialogRef = new MdDialogRef(overlayRef);\n        if (!dialogContainer.dialogConfig.disableClose) {\n            // When the dialog backdrop is clicked, we want to close it.\n            overlayRef.backdropClick().first().subscribe(function () { return dialogRef.close(); });\n        }\n        // Set the dialogRef to the container so that it can use the ref to close the dialog.\n        dialogContainer.dialogRef = dialogRef;\n        // We create an injector specifically for the component we're instantiating so that it can\n        // inject the MdDialogRef. This allows a component loaded inside of a dialog to close itself\n        // and, optionally, to return a value.\n        var dialogInjector = new DialogInjector(dialogRef, this._injector);\n        var contentPortal = new ComponentPortal(component, null, dialogInjector);\n        var contentRef = dialogContainer.attachComponentPortal(contentPortal);\n        dialogRef.componentInstance = contentRef.instance;\n        return dialogRef;\n    };\n    /**\n     * Creates an overlay state from a dialog config.\n     * @param dialogConfig The dialog configuration.\n     * @returns The overlay configuration.\n     */\n    MdDialog.prototype._getOverlayState = function (dialogConfig) {\n        var state$$1 = new OverlayState();\n        var strategy = this._overlay.position().global();\n        var position = dialogConfig.position;\n        state$$1.hasBackdrop = true;\n        state$$1.positionStrategy = strategy;\n        if (position && (position.left || position.right)) {\n            position.left ? strategy.left(position.left) : strategy.right(position.right);\n        }\n        else {\n            strategy.centerHorizontally();\n        }\n        if (position && (position.top || position.bottom)) {\n            position.top ? strategy.top(position.top) : strategy.bottom(position.bottom);\n        }\n        else {\n            strategy.centerVertically();\n        }\n        strategy.width(dialogConfig.width).height(dialogConfig.height);\n        return state$$1;\n    };\n    /**\n     * Removes a dialog from the array of open dialogs.\n     * @param dialogRef Dialog to be removed.\n     */\n    MdDialog.prototype._removeOpenDialog = function (dialogRef) {\n        var index = this._openDialogs.indexOf(dialogRef);\n        if (index > -1) {\n            this._openDialogs.splice(index, 1);\n        }\n    };\n    MdDialog = __decorate$66([\n        _angular_core.Injectable(), \n        __metadata$66('design:paramtypes', [Overlay, _angular_core.Injector])\n    ], MdDialog);\n    return MdDialog;\n}());\n/**\n * Applies default options to the dialog config.\n * @param dialogConfig Config to be modified.\n * @returns The new configuration object.\n */\nfunction _applyConfigDefaults$1(dialogConfig) {\n    return extendObject(new MdDialogConfig(), dialogConfig);\n}\n\nvar __decorate$68 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$68 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n/**\n * Button that will close the current dialog.\n */\nvar MdDialogClose = (function () {\n    function MdDialogClose(dialogRef) {\n        this.dialogRef = dialogRef;\n        /** Screenreader label for the button. */\n        this.ariaLabel = 'Close dialog';\n    }\n    __decorate$68([\n        _angular_core.Input('aria-label'), \n        __metadata$68('design:type', String)\n    ], MdDialogClose.prototype, \"ariaLabel\", void 0);\n    MdDialogClose = __decorate$68([\n        _angular_core.Directive({\n            selector: 'button[md-dialog-close], button[mat-dialog-close]',\n            host: {\n                '(click)': 'dialogRef.close()',\n                '[attr.aria-label]': 'ariaLabel'\n            }\n        }), \n        __metadata$68('design:paramtypes', [MdDialogRef])\n    ], MdDialogClose);\n    return MdDialogClose;\n}());\n/**\n * Title of a dialog element. Stays fixed to the top of the dialog when scrolling.\n */\nvar MdDialogTitle = (function () {\n    function MdDialogTitle() {\n    }\n    MdDialogTitle = __decorate$68([\n        _angular_core.Directive({\n            selector: '[md-dialog-title], [mat-dialog-title]'\n        }), \n        __metadata$68('design:paramtypes', [])\n    ], MdDialogTitle);\n    return MdDialogTitle;\n}());\n/**\n * Scrollable content container of a dialog.\n */\nvar MdDialogContent = (function () {\n    function MdDialogContent() {\n    }\n    MdDialogContent = __decorate$68([\n        _angular_core.Directive({\n            selector: '[md-dialog-content], md-dialog-content, [mat-dialog-content], mat-dialog-content'\n        }), \n        __metadata$68('design:paramtypes', [])\n    ], MdDialogContent);\n    return MdDialogContent;\n}());\n/**\n * Container for the bottom action buttons in a dialog.\n * Stays fixed to the bottom when scrolling.\n */\nvar MdDialogActions = (function () {\n    function MdDialogActions() {\n    }\n    MdDialogActions = __decorate$68([\n        _angular_core.Directive({\n            selector: '[md-dialog-actions], md-dialog-actions, [mat-dialog-actions], mat-dialog-actions'\n        }), \n        __metadata$68('design:paramtypes', [])\n    ], MdDialogActions);\n    return MdDialogActions;\n}());\n\nvar __decorate$65 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$65 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MdDialogModule = (function () {\n    function MdDialogModule() {\n    }\n    MdDialogModule.forRoot = function () {\n        return {\n            ngModule: MdDialogModule,\n            providers: [MdDialog, OVERLAY_PROVIDERS, InteractivityChecker, Platform],\n        };\n    };\n    MdDialogModule = __decorate$65([\n        _angular_core.NgModule({\n            imports: [\n                OverlayModule,\n                PortalModule,\n                A11yModule,\n                DefaultStyleCompatibilityModeModule\n            ],\n            exports: [\n                MdDialogContainer,\n                MdDialogClose,\n                MdDialogTitle,\n                MdDialogContent,\n                MdDialogActions,\n                DefaultStyleCompatibilityModeModule\n            ],\n            declarations: [\n                MdDialogContainer,\n                MdDialogClose,\n                MdDialogTitle,\n                MdDialogActions,\n                MdDialogContent\n            ],\n            entryComponents: [MdDialogContainer],\n        }), \n        __metadata$65('design:paramtypes', [])\n    ], MdDialogModule);\n    return MdDialogModule;\n}());\n\nvar __decorate$70 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$70 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MdAutocomplete = (function () {\n    function MdAutocomplete() {\n    }\n    MdAutocomplete = __decorate$70([\n        _angular_core.Component({selector: 'md-autocomplete, mat-autocomplete',\n            template: \"I'm an autocomplete!\",\n            styles: [\"\"],\n            encapsulation: _angular_core.ViewEncapsulation.None,\n        }), \n        __metadata$70('design:paramtypes', [])\n    ], MdAutocomplete);\n    return MdAutocomplete;\n}());\n\nvar __decorate$69 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$69 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MdAutocompleteModule = (function () {\n    function MdAutocompleteModule() {\n    }\n    MdAutocompleteModule.forRoot = function () {\n        return {\n            ngModule: MdAutocompleteModule,\n            providers: []\n        };\n    };\n    MdAutocompleteModule = __decorate$69([\n        _angular_core.NgModule({\n            imports: [DefaultStyleCompatibilityModeModule],\n            exports: [MdAutocomplete, DefaultStyleCompatibilityModeModule],\n            declarations: [MdAutocomplete],\n        }), \n        __metadata$69('design:paramtypes', [])\n    ], MdAutocompleteModule);\n    return MdAutocompleteModule;\n}());\n\nvar __decorate$24 = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata$24 = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar MATERIAL_MODULES = [\n    MdAutocompleteModule,\n    MdButtonModule,\n    MdButtonToggleModule,\n    MdCardModule,\n    MdChipsModule,\n    MdCheckboxModule,\n    MdDialogModule,\n    MdGridListModule,\n    MdIconModule,\n    MdInputModule,\n    MdListModule,\n    MdMenuModule,\n    MdProgressBarModule,\n    MdProgressSpinnerModule,\n    MdRadioModule,\n    MdRippleModule,\n    MdSelectModule,\n    MdSidenavModule,\n    MdSliderModule,\n    MdSlideToggleModule,\n    MdSnackBarModule,\n    MdTabsModule,\n    MdToolbarModule,\n    MdTooltipModule,\n    OverlayModule,\n    PortalModule,\n    RtlModule,\n    A11yModule,\n    PlatformModule,\n    ProjectionModule,\n    DefaultStyleCompatibilityModeModule,\n    ObserveContentModule\n];\nvar MaterialRootModule = (function () {\n    function MaterialRootModule() {\n    }\n    MaterialRootModule = __decorate$24([\n        _angular_core.NgModule({\n            imports: [\n                MdAutocompleteModule.forRoot(),\n                MdButtonModule.forRoot(),\n                MdCardModule.forRoot(),\n                MdChipsModule.forRoot(),\n                MdCheckboxModule.forRoot(),\n                MdGridListModule.forRoot(),\n                MdInputModule.forRoot(),\n                MdListModule.forRoot(),\n                MdProgressBarModule.forRoot(),\n                MdProgressSpinnerModule.forRoot(),\n                MdRippleModule.forRoot(),\n                MdSelectModule.forRoot(),\n                MdSidenavModule.forRoot(),\n                MdTabsModule.forRoot(),\n                MdToolbarModule.forRoot(),\n                PortalModule.forRoot(),\n                ProjectionModule.forRoot(),\n                RtlModule.forRoot(),\n                ObserveContentModule.forRoot(),\n                // These modules include providers.\n                A11yModule.forRoot(),\n                MdButtonToggleModule.forRoot(),\n                MdDialogModule.forRoot(),\n                MdIconModule.forRoot(),\n                MdMenuModule.forRoot(),\n                MdRadioModule.forRoot(),\n                MdSliderModule.forRoot(),\n                MdSlideToggleModule.forRoot(),\n                MdSnackBarModule.forRoot(),\n                MdTooltipModule.forRoot(),\n                PlatformModule.forRoot(),\n                OverlayModule.forRoot(),\n                DefaultStyleCompatibilityModeModule.forRoot(),\n            ],\n            exports: MATERIAL_MODULES,\n        }), \n        __metadata$24('design:paramtypes', [])\n    ], MaterialRootModule);\n    return MaterialRootModule;\n}());\nvar MaterialModule = (function () {\n    function MaterialModule() {\n    }\n    MaterialModule.forRoot = function () {\n        return { ngModule: MaterialRootModule };\n    };\n    MaterialModule = __decorate$24([\n        _angular_core.NgModule({\n            imports: MATERIAL_MODULES,\n            exports: MATERIAL_MODULES,\n        }), \n        __metadata$24('design:paramtypes', [])\n    ], MaterialModule);\n    return MaterialModule;\n}());\n\nexports.MdCoreModule = MdCoreModule;\nexports.Dir = Dir;\nexports.RtlModule = RtlModule;\nexports.ObserveContentModule = ObserveContentModule;\nexports.ObserveContent = ObserveContent;\nexports.Portal = Portal;\nexports.BasePortalHost = BasePortalHost;\nexports.ComponentPortal = ComponentPortal;\nexports.TemplatePortal = TemplatePortal;\nexports.PortalHostDirective = PortalHostDirective;\nexports.TemplatePortalDirective = TemplatePortalDirective;\nexports.PortalModule = PortalModule;\nexports.DomPortalHost = DomPortalHost;\nexports.MdPlatform = Platform;\nexports.Overlay = Overlay;\nexports.OVERLAY_PROVIDERS = OVERLAY_PROVIDERS;\nexports.OverlayContainer = OverlayContainer;\nexports.OverlayRef = OverlayRef;\nexports.OverlayState = OverlayState;\nexports.ConnectedOverlayDirective = ConnectedOverlayDirective;\nexports.OverlayOrigin = OverlayOrigin;\nexports.OverlayModule = OverlayModule;\nexports.ScrollDispatcher = ScrollDispatcher;\nexports.GestureConfig = GestureConfig;\nexports.MdRipple = MdRipple;\nexports.MdRippleModule = MdRippleModule;\nexports.LiveAnnouncer = LiveAnnouncer;\nexports.LIVE_ANNOUNCER_ELEMENT_TOKEN = LIVE_ANNOUNCER_ELEMENT_TOKEN;\nexports.MdLiveAnnouncer = LiveAnnouncer;\nexports.FocusTrap = FocusTrap;\nexports.InteractivityChecker = InteractivityChecker;\nexports.isFakeMousedownFromScreenReader = isFakeMousedownFromScreenReader;\nexports.A11yModule = A11yModule;\nexports.UniqueSelectionDispatcher = UniqueSelectionDispatcher;\nexports.MdUniqueSelectionDispatcher = UniqueSelectionDispatcher;\nexports.MdLineModule = MdLineModule;\nexports.MdLine = MdLine;\nexports.MdLineSetter = MdLineSetter;\nexports.applyCssTransform = applyCssTransform;\nexports.MdError = MdError;\nexports.coerceBooleanProperty = coerceBooleanProperty;\nexports.coerceNumberProperty = coerceNumberProperty;\nexports.DefaultStyleCompatibilityModeModule = DefaultStyleCompatibilityModeModule;\nexports.NoConflictStyleCompatibilityMode = NoConflictStyleCompatibilityMode;\nexports.DomProjectionHost = DomProjectionHost;\nexports.DomProjection = DomProjection;\nexports.ProjectionModule = ProjectionModule;\nexports.PlatformModule = PlatformModule;\nexports.Platform = Platform;\nexports.getSupportedInputTypes = getSupportedInputTypes;\nexports.ConnectedPositionStrategy = ConnectedPositionStrategy;\nexports.ConnectionPositionPair = ConnectionPositionPair;\nexports.ScrollableViewProperties = ScrollableViewProperties;\nexports.ConnectedOverlayPositionChange = ConnectedOverlayPositionChange;\nexports.UP_ARROW = UP_ARROW;\nexports.DOWN_ARROW = DOWN_ARROW;\nexports.RIGHT_ARROW = RIGHT_ARROW;\nexports.LEFT_ARROW = LEFT_ARROW;\nexports.PAGE_UP = PAGE_UP;\nexports.PAGE_DOWN = PAGE_DOWN;\nexports.HOME = HOME;\nexports.END = END;\nexports.ENTER = ENTER;\nexports.SPACE = SPACE;\nexports.TAB = TAB;\nexports.ESCAPE = ESCAPE;\nexports.BACKSPACE = BACKSPACE;\nexports.DELETE = DELETE;\nexports.MATERIAL_COMPATIBILITY_MODE = MATERIAL_COMPATIBILITY_MODE;\nexports.MAT_ELEMENTS_SELECTOR = MAT_ELEMENTS_SELECTOR;\nexports.MatPrefixEnforcer = MatPrefixEnforcer;\nexports.AnimationCurves = AnimationCurves;\nexports.AnimationDurations = AnimationDurations;\nexports.MaterialRootModule = MaterialRootModule;\nexports.MaterialModule = MaterialModule;\nexports.MdButton = MdButton;\nexports.MdAnchor = MdAnchor;\nexports.MdButtonModule = MdButtonModule;\nexports.MD_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR = MD_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR;\nexports.MdButtonToggleChange = MdButtonToggleChange;\nexports.MdButtonToggleGroup = MdButtonToggleGroup;\nexports.MdButtonToggleGroupMultiple = MdButtonToggleGroupMultiple;\nexports.MdButtonToggle = MdButtonToggle;\nexports.MdButtonToggleModule = MdButtonToggleModule;\nexports.MdCardContent = MdCardContent;\nexports.MdCardTitle = MdCardTitle;\nexports.MdCardSubtitle = MdCardSubtitle;\nexports.MdCardActions = MdCardActions;\nexports.MdCardFooter = MdCardFooter;\nexports.MdCard = MdCard;\nexports.MdCardHeader = MdCardHeader;\nexports.MdCardTitleGroup = MdCardTitleGroup;\nexports.MdCardModule = MdCardModule;\nexports.MdChipList = MdChipList;\nexports.MdChipsModule = MdChipsModule;\nexports.MdChip = MdChip;\nexports.MD_CHECKBOX_CONTROL_VALUE_ACCESSOR = MD_CHECKBOX_CONTROL_VALUE_ACCESSOR;\nexports.MdCheckboxChange = MdCheckboxChange;\nexports.MdCheckbox = MdCheckbox;\nexports.MdCheckboxModule = MdCheckboxModule;\nexports.MdDialogModule = MdDialogModule;\nexports.MdDialog = MdDialog;\nexports.MdDialogContainer = MdDialogContainer;\nexports.MdDialogClose = MdDialogClose;\nexports.MdDialogTitle = MdDialogTitle;\nexports.MdDialogContent = MdDialogContent;\nexports.MdDialogActions = MdDialogActions;\nexports.MdDialogConfig = MdDialogConfig;\nexports.MdDialogRef = MdDialogRef;\nexports.MdGridList = MdGridList;\nexports.MdGridListModule = MdGridListModule;\nexports.MdIconInvalidNameError = MdIconInvalidNameError;\nexports.MdIcon = MdIcon;\nexports.MdIconModule = MdIconModule;\nexports.MdIconRegistry = MdIconRegistry;\nexports.MdTextareaAutosize = MdTextareaAutosize;\nexports.MD_INPUT_CONTROL_VALUE_ACCESSOR = MD_INPUT_CONTROL_VALUE_ACCESSOR;\nexports.MdInputPlaceholderConflictError = MdInputPlaceholderConflictError;\nexports.MdInputUnsupportedTypeError = MdInputUnsupportedTypeError;\nexports.MdInputDuplicatedHintError = MdInputDuplicatedHintError;\nexports.MdInput = MdInput;\nexports.MdInputModule = MdInputModule;\nexports.MdPlaceholder = MdPlaceholder;\nexports.MdHint = MdHint;\nexports.MdInputDirective = MdInputDirective;\nexports.MdInputContainer = MdInputContainer;\nexports.MdInputContainerPlaceholderConflictError = MdInputContainerPlaceholderConflictError;\nexports.MdInputContainerUnsupportedTypeError = MdInputContainerUnsupportedTypeError;\nexports.MdInputContainerDuplicatedHintError = MdInputContainerDuplicatedHintError;\nexports.MdInputContainerMissingMdInputError = MdInputContainerMissingMdInputError;\nexports.MdListDivider = MdListDivider;\nexports.MdList = MdList;\nexports.MdListAvatar = MdListAvatar;\nexports.MdListItem = MdListItem;\nexports.MdListModule = MdListModule;\nexports.MdMenuTrigger = MdMenuTrigger;\nexports.fadeInItems = fadeInItems;\nexports.transformMenu = transformMenu;\nexports.MdMenu = MdMenu;\nexports.MdMenuItem = MdMenuItem;\nexports.MdMenuModule = MdMenuModule;\nexports.MdProgressBar = MdProgressBar;\nexports.MdProgressBarModule = MdProgressBarModule;\nexports.MdProgressCircle = MdProgressSpinner;\nexports.MdProgressCircleModule = MdProgressSpinnerModule;\nexports.MdProgressSpinner = MdProgressSpinner;\nexports.MdSpinner = MdSpinner;\nexports.MdProgressSpinnerModule = MdProgressSpinnerModule;\nexports.MD_RADIO_GROUP_CONTROL_VALUE_ACCESSOR = MD_RADIO_GROUP_CONTROL_VALUE_ACCESSOR;\nexports.MdRadioChange = MdRadioChange;\nexports.MdRadioGroup = MdRadioGroup;\nexports.MdRadioButton = MdRadioButton;\nexports.MdRadioModule = MdRadioModule;\nexports.MdSelectModule = MdSelectModule;\nexports.MdOption = MdOption;\nexports.fadeInContent = fadeInContent;\nexports.transformPanel = transformPanel;\nexports.transformPlaceholder = transformPlaceholder;\nexports.SELECT_OPTION_HEIGHT = SELECT_OPTION_HEIGHT;\nexports.SELECT_PANEL_MAX_HEIGHT = SELECT_PANEL_MAX_HEIGHT;\nexports.SELECT_MAX_OPTIONS_DISPLAYED = SELECT_MAX_OPTIONS_DISPLAYED;\nexports.SELECT_TRIGGER_HEIGHT = SELECT_TRIGGER_HEIGHT;\nexports.SELECT_OPTION_HEIGHT_ADJUSTMENT = SELECT_OPTION_HEIGHT_ADJUSTMENT;\nexports.SELECT_PANEL_PADDING_X = SELECT_PANEL_PADDING_X;\nexports.SELECT_PANEL_PADDING_Y = SELECT_PANEL_PADDING_Y;\nexports.SELECT_PANEL_VIEWPORT_PADDING = SELECT_PANEL_VIEWPORT_PADDING;\nexports.MdSelect = MdSelect;\nexports.MdDuplicatedSidenavError = MdDuplicatedSidenavError;\nexports.MdSidenavToggleResult = MdSidenavToggleResult;\nexports.MdSidenav = MdSidenav;\nexports.MdSidenavContainer = MdSidenavContainer;\nexports.MdSidenavModule = MdSidenavModule;\nexports.MD_SLIDER_VALUE_ACCESSOR = MD_SLIDER_VALUE_ACCESSOR;\nexports.MdSliderChange = MdSliderChange;\nexports.MdSlider = MdSlider;\nexports.SliderRenderer = SliderRenderer;\nexports.MdSliderModule = MdSliderModule;\nexports.MD_SLIDE_TOGGLE_VALUE_ACCESSOR = MD_SLIDE_TOGGLE_VALUE_ACCESSOR;\nexports.MdSlideToggleChange = MdSlideToggleChange;\nexports.MdSlideToggle = MdSlideToggle;\nexports.MdSlideToggleModule = MdSlideToggleModule;\nexports.MdSnackBar = MdSnackBar;\nexports.MdSnackBarModule = MdSnackBarModule;\nexports.SHOW_ANIMATION = SHOW_ANIMATION;\nexports.HIDE_ANIMATION = HIDE_ANIMATION;\nexports.MdSnackBarContainer = MdSnackBarContainer;\nexports.MdSnackBarConfig = MdSnackBarConfig;\nexports.MdSnackBarRef = MdSnackBarRef;\nexports.MdInkBar = MdInkBar;\nexports.MdTabBody = MdTabBody;\nexports.MdTabHeader = MdTabHeader;\nexports.MdTabLabelWrapper = MdTabLabelWrapper;\nexports.MdTab = MdTab;\nexports.MdTabLabel = MdTabLabel;\nexports.MdTabChangeEvent = MdTabChangeEvent;\nexports.MdTabGroup = MdTabGroup;\nexports.MdTabsModule = MdTabsModule;\nexports.MdTabNavBar = MdTabNavBar;\nexports.MdTabLink = MdTabLink;\nexports.MdTabLinkRipple = MdTabLinkRipple;\nexports.MdToolbarRow = MdToolbarRow;\nexports.MdToolbar = MdToolbar;\nexports.MdToolbarModule = MdToolbarModule;\nexports.TOUCHEND_HIDE_DELAY = TOUCHEND_HIDE_DELAY;\nexports.MdTooltip = MdTooltip;\nexports.TooltipComponent = TooltipComponent;\nexports.MdTooltipModule = MdTooltipModule;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n"]}