http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/90759b86/node_modules/@angular/cdk/esm5/a11y.es5.js.map ---------------------------------------------------------------------- diff --git a/node_modules/@angular/cdk/esm5/a11y.es5.js.map b/node_modules/@angular/cdk/esm5/a11y.es5.js.map new file mode 100644 index 0000000..eb6b972 --- /dev/null +++ b/node_modules/@angular/cdk/esm5/a11y.es5.js.map @@ -0,0 +1 @@ +{"version":3,"file":"a11y.es5.js","sources":["../../packages/cdk/esm5/a11y/list-key-manager.js","../../packages/cdk/esm5/a11y/activedescendant-key-manager.js","../../packages/cdk/esm5/a11y/aria-reference.js","../../packages/cdk/esm5/a11y/aria-describer.js","../../packages/cdk/esm5/a11y/fake-mousedown.js","../../packages/cdk/esm5/a11y/focus-key-manager.js","../../packages/cdk/esm5/a11y/interactivity-checker.js","../../packages/cdk/esm5/a11y/focus-trap.js","../../packages/cdk/esm5/a11y/live-announcer.js","../../packages/cdk/esm5/a11y/focus-monitor.js","../../packages/cdk/esm5/a11y/a11y-module.js","../../packages/cdk/esm5/a11y/index.js"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { Subject } from 'rxjs/Subject';\nimport { Subscription } from 'rxjs/Subscription';\nimport { UP_ARROW, DOWN_ARROW, TA B, A, Z, ZERO, NINE } from '@angular/cdk/keycodes';\nimport { RxChain, debounceTime, filter, map, doOperator } from '@angular/cdk/rxjs';\n/**\n * This class manages keyboard events for selectable lists. If you pass it a query list\n * of items, it will set the active item correctly when arrow events occur.\n */\nvar ListKeyManager = (function () {\n /**\n * @param {?} _items\n */\n function ListKeyManager(_items) {\n this._items = _items;\n this._activeItemIndex = -1;\n this._wrap = false;\n this._letterKeyStream = new Subject();\n this._typeaheadSubscription = Subscription.EMPTY;\n this._pressedLetters = [];\n /**\n * Stream that emits any time the TAB key is pressed, so components can react\n * when focus is shifted off of the list.\n */\n this.tabOut = new Subject();\n }\n /**\n * Turns on wrapping mode, which ensures that the active item will wrap to\n * the other end of l ist when there are no more items in the given direction.\n * @return {?}\n */\n ListKeyManager.prototype.withWrap = function () {\n this._wrap = true;\n return this;\n };\n /**\n * Turns on typeahead mode which allows users to set the active item by typing.\n * @param {?=} debounceInterval Time to wait after the last keystroke before setting the active item.\n * @return {?}\n */\n ListKeyManager.prototype.withTypeAhead = function (debounceInterval) {\n var _this = this;\n if (debounceInterval === void 0) { debounceInterval = 200; }\n if (this._items.length && this._items.some(function (item) { return typeof item.getLabel !== 'function'; })) {\n throw Error('ListKeyManager items in typeahead mode must implement the `getLabel` method.');\n }\n this._typeaheadSubscription.unsubscribe();\n // Debounce the presses of non-navigational keys, collect the ones that correspond to letters\n // and convert those letters back into a string. Afterwards find the first item that starts\n // with that string and select it.\n this._typeaheadSubscription = RxChain.from(this._letterKeyStream)\n .call(doOperator, function (keyCode) { return _this._pressedLetters.push(keyCode); })\n .call(debounceTime, debounceInterval)\n .call(filter, function () { return _this._pressedLetters.length > 0; })\n .call(map, function () { return _this._pressedLetters.join(''); })\n .subscribe(function (inputString) {\n var /** @type {?} */ items = _this._items.toArray();\n // Start at 1 because we want to start searching at the item immediately\n // following the current active item.\n for (var /** @type {?} */ i = 1; i < items.length + 1; i++) {\n var /** @type {?} */ index = (_this._activeItemIndex + i) % items.length;\n var /** @type {?} */ item = it ems[index];\n if (!item.disabled && ((item.getLabel))().toUpperCase().trim().indexOf(inputString) === 0) {\n _this.setActiveItem(index);\n break;\n }\n }\n _this._pressedLetters = [];\n });\n return this;\n };\n /**\n * Sets the active item to the item at the index specified.\n * @param {?} index The index of the item to be set as active.\n * @return {?}\n */\n ListKeyManager.prototype.setActiveItem = function (index) {\n this._activeItemIndex = index;\n this._activeItem = this._items.toArray()[index];\n };\n /**\n * Sets the active item depending on the key event passed in.\n * @param {?} event Keyboard event to be used for determining which element should be active.\n * @return {?}\n */\n ListKeyManager.prototype.onKeydown = function (event) {\n switch (event.keyCode) {\n case DOWN_ARROW:\n this.setNextItemActive();\n break;\n case UP_ARROW:\n this.setPreviousItemActive();\n break;\n case TAB:\n this.tabOut.next();\n return;\n default:\n var /** @type {?} */ keyCode = event.keyCode;\n // Attempt to use the `event.key` which also maps it to the user's keyboard language,\n // otherwise fall back to resolving alphanumeric characters via the keyCode.\n if (event.key && event.key.length === 1) {\n this._letterKeyStream.next(event.key.toLocaleUpperCase());\n }\n else if ((keyCode >= A && keyCode <= Z) || (keyCode >= ZERO && keyCode <= NINE)) {\n this._letterKeyStream.next(String.fromCharCode(keyCode));\n }\n // Note that we return here, in order to avoid preventing\n // the default action of non-navigational keys.\n return;\n }\n this._pressedLetters = [];\n event.preventDefault();\n };\n Object.defineProperty(ListKeyManager.prototype, \"activeItemIndex\", {\n /**\n * Index of the currently active item.\n * @return {?}\n */\n get: function () {\n return this._activeItemIndex;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ListKeyManager.prototype, \"activeItem\", {\n /**\n * The active item.\n * @return {?}\n */\n get: function () {\n return this._activeItem;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Sets the active item to the first enabled item in the list.\n * @return {?}\n */\n ListKeyManager.prototype.setFirstItemActive = function () {\n this._setActiveItemByIndex(0, 1);\n };\n /**\n * Sets the active item to the last enabled item in the list.\n * @return {?}\n */\n ListKeyManager.prototype.setLastItemActive = function () {\n this._setActiveItemByIndex(this._items.length - 1, -1);\n };\n /**\n * Sets the active item to the next enabled item in the list.\n * @return {?}\n */\n ListKeyManager.prototype.setNextItemActive = function () {\n this._activeItemIndex < 0 ? this.setFirstItemActive() : this._setActiveItemByDelta(1);\n };\n /**\n * Sets the active item to a previous enabled item in the list.\n * @return {?}\n */\n ListKeyManager.prototype.setPreviousItemActive = function () {\n this._activeItemIndex < 0 && this._wrap ? this.setLastItemActive()\n : this._setActiveItemByDelta(-1);\n };\n /**\n * Allows setting of the activeItemIndex without any other effects.\n * @param {?} index The new activeItemIndex.\n * @return {?}\n */\n ListKeyManager.prototype.updateActi veItemIndex = function (index) {\n this._activeItemIndex = index;\n };\n /**\n * This method sets the active item, given a list of items and the delta between the\n * currently active item and the new active item. It will calculate differently\n * depending on whether wrap mode is turned on.\n * @param {?} delta\n * @param {?=} items\n * @return {?}\n */\n ListKeyManager.prototype._setActiveItemByDelta = function (delta, items) {\n if (items === void 0) { items = this._items.toArray(); }\n this._wrap ? this._setActiveInWrapMode(delta, items)\n : this._setActiveInDefaultMode(delta, items);\n };\n /**\n * Sets the active item 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 * @param {?} delta\n * @param {?} items\n * @return {?}\n */\n ListKeyManager.prototype._setActiveInWrapMode = function (delta, items) {\n // when active item would leave menu, wrap to beginning or end\n this._activeItemIndex =\n (this._activeItemIndex + delta + items.length) % items.length;\n // skip all disabled menu items recursively until an enabled one is reached\n if (items[this._activeItemIndex].disabled) {\n this._setActiveInWrapMode(delta, items);\n }\n else {\n this.setActiveItem(this._activeItemIndex);\n }\n };\n /**\n * Sets the active item 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 * @param {?} delta\n * @param {?} items\n * @return {?}\n */\n ListKeyManager.prototype._setActiveInDefaultMode = function (delta, items) {\n this._setActiveItemB yIndex(this._activeItemIndex + delta, delta, items);\n };\n /**\n * Sets the active item 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 * @param {?} index\n * @param {?} fallbackDelta\n * @param {?=} items\n * @return {?}\n */\n ListKeyManager.prototype._setActiveItemByIndex = 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.setActiveItem(index);\n };\n return ListKeyManager;\n}());\nexport { ListKeyManager };\nfunction ListKeyManager_tsickle_Closure_declarations() {\n /** @type {? } */\n ListKeyManager.prototype._activeItemIndex;\n /** @type {?} */\n ListKeyManager.prototype._activeItem;\n /** @type {?} */\n ListKeyManager.prototype._wrap;\n /** @type {?} */\n ListKeyManager.prototype._letterKeyStream;\n /** @type {?} */\n ListKeyManager.prototype._typeaheadSubscription;\n /** @type {?} */\n ListKeyManager.prototype._pressedLetters;\n /**\n * Stream that emits any time the TAB key is pressed, so components can react\n * when focus is shifted off of the list.\n * @type {?}\n */\n ListKeyManager.prototype.tabOut;\n /** @type {?} */\n ListKeyManager.prototype._items;\n}\n//# sourceMappingURL=list-key-manager.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as tslib_1 from \"tslib\";\nimport { ListKeyManager } from './list-key- manager';\nvar ActiveDescendantKeyManager = (function (_super) {\n tslib_1.__extends(ActiveDescendantKeyManager, _super);\n function ActiveDescendantKeyManager() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * This method sets the active item to the item at the specified index.\n * It also adds active styles to the newly active item and removes active\n * styles from the previously active item.\n * @param {?} index\n * @return {?}\n */\n ActiveDescendantKeyManager.prototype.setActiveItem = function (index) {\n if (this.activeItem) {\n this.activeItem.setInactiveStyles();\n }\n _super.prototype.setActiveItem.call(this, index);\n if (this.activeItem) {\n this.activeItem.setActiveStyles();\n }\n };\n return ActiveDescendantKeyManager;\n}(ListKeyManager));\nexport { ActiveDescendantKeyManager };\n//# sourceMappingURL=activedescendant-key-manager .js.map","/**\n * IDs are deliminated by an empty space, as per the spec.\n */\nvar ID_DELIMINATOR = ' ';\n/**\n * Adds the given ID to the specified ARIA attribute on an element.\n * Used for attributes such as aria-labelledby, aria-owns, etc.\n * @param {?} el\n * @param {?} attr\n * @param {?} id\n * @return {?}\n */\nexport function addAriaReferencedId(el, attr, id) {\n var /** @type {?} */ ids = getAriaReferenceIds(el, attr);\n if (ids.some(function (existingId) { return existingId.trim() == id.trim(); })) {\n return;\n }\n ids.push(id.trim());\n el.setAttribute(attr, ids.join(ID_DELIMINATOR));\n}\n/**\n * Removes the given ID from the specified ARIA attribute on an element.\n * Used for attributes such as aria-labelledby, aria-owns, etc.\n * @param {?} el\n * @param {?} attr\n * @param {?} id\n * @return {?}\n */\nexport function removeAriaReferencedId(el, attr, id) {\n var /** @type {?} */ ids = getAriaReferenceIds(el, attr);\n var /** @type {?} */ filteredIds = ids.filter(function (val) { return val != id.trim(); });\n el.setAttribute(attr, filteredIds.join(ID_DELIMINATOR));\n}\n/**\n * Gets the list of IDs referenced by the given ARIA attribute on an element.\n * Used for attributes such as aria-labelledby, aria-owns, etc.\n * @param {?} el\n * @param {?} attr\n * @return {?}\n */\nexport function getAriaReferenceIds(el, attr) {\n // Get string array of all individual ids (whitespace deliminated) in the attribute value\n return (el.getAttribute(attr) || '').match(/\\S+/g) || [];\n}\n//# sourceMappingURL=aria-reference.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { Injectable, Optional, SkipSelf } from '@angular/core';\nimport { Platform } from '@angular/cdk/platform';\nimport { addAriaReferencedId, getAriaReferenceIds, removeAriaReferenc edId } from './aria-reference';\n/**\n * ID used for the body container where all messages are appended.\n */\nexport var MESSAGES_CONTAINER_ID = 'cdk-describedby-message-container';\n/**\n * ID prefix used for each created message element.\n */\nexport var CDK_DESCRIBEDBY_ID_PREFIX = 'cdk-describedby-message';\n/**\n * Attribute given to each host element that is described by a message element.\n */\nexport var CDK_DESCRIBEDBY_HOST_ATTRIBUTE = 'cdk-describedby-host';\n/**\n * Global incremental identifier for each registered message element.\n */\nvar nextId = 0;\n/**\n * Global map of all registered message elements that have been placed into the document.\n */\nvar messageRegistry = new Map();\n/**\n * Container for all registered messages.\n */\nvar messagesContainer = null;\n/**\n * Utility that creates visually hidden elements with a message content. Useful for elements that\n * want to use aria-describedby to further describe themselves without adding additional visual\n * co ntent.\n * \\@docs-private\n */\nvar AriaDescriber = (function () {\n /**\n * @param {?} _platform\n */\n function AriaDescriber(_platform) {\n this._platform = _platform;\n }\n /**\n * Adds to the host element an aria-describedby reference to a hidden element that contains\n * the message. If the same message has already been registered, then it will reuse the created\n * message element.\n * @param {?} hostElement\n * @param {?} message\n * @return {?}\n */\n AriaDescriber.prototype.describe = function (hostElement, message) {\n if (!this._platform.isBrowser || !message.trim()) {\n return;\n }\n if (!messageRegistry.has(message)) {\n createMessageElement(message);\n }\n if (!isElementDescribedByMessage(hostElement, message)) {\n addMessageReference(hostElement, message);\n }\n };\n /**\n * Removes the host element's aria-describedby referen ce to the message element.\n * @param {?} hostElement\n * @param {?} message\n * @return {?}\n */\n AriaDescriber.prototype.removeDescription = function (hostElement, message) {\n if (!this._platform.isBrowser || !message.trim()) {\n return;\n }\n if (isElementDescribedByMessage(hostElement, message)) {\n removeMessageReference(hostElement, message);\n }\n var /** @type {?} */ registeredMessage = messageRegistry.get(message);\n if (registeredMessage && registeredMessage.referenceCount === 0) {\n deleteMessageElement(message);\n }\n if (messagesContainer && messagesContainer.childNodes.length === 0) {\n deleteMessagesContainer();\n }\n };\n /**\n * Unregisters all created message elements and removes the message container.\n * @return {?}\n */\n AriaDescriber.prototype.ngOnDestroy = function () {\n if (!this._platform.isBrowser) {\n return;\n }\n var /** @type {?} */ describedElements = document.querySelectorAll(\"[\" + CDK_DESCRIBEDBY_HOST_ATTRIBUTE + \"]\");\n for (var /** @type {?} */ i = 0; i < describedElements.length; i++) {\n removeCdkDescribedByReferenceIds(describedElements[i]);\n describedElements[i].removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);\n }\n if (messagesContainer) {\n deleteMessagesContainer();\n }\n messageRegistry.clear();\n };\n AriaDescriber.decorators = [\n { type: Injectable },\n ];\n /**\n * @nocollapse\n */\n AriaDescriber.ctorParameters = function () { return [\n { type: Platform, },\n ]; };\n return AriaDescriber;\n}());\nexport { AriaDescriber };\nfunction AriaDescriber_tsickle_Closure_declarations() {\n /** @type {?} */\n AriaDescriber.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n AriaDescriber.ctorParameters; \n /** @type {?} */\n AriaDescriber.prototype._platform;\n}\n/**\n * Creates a new element in the visually hidden message container element with the message\n * as its content and adds it to the message registry.\n * @param {?} message\n * @return {?}\n */\nfunction createMessageElement(message) {\n var /** @type {?} */ messageElement = document.createElement('div');\n messageElement.setAttribute('id', CDK_DESCRIBEDBY_ID_PREFIX + \"-\" + nextId++);\n messageElement.appendChild(/** @type {?} */ ((document.createTextNode(message))));\n if (!messagesContainer) {\n createMessagesContainer();\n } /** @type {?} */\n ((messagesContainer)).appendChild(messageElement);\n messageRegistry.set(message, { messageElement: messageElement, referenceCount: 0 });\n}\n/**\n * Deletes the message element from the global messages container.\n * @param {?} message\n * @return {?}\n */\nfunction deleteMessageElement(message) {\n var /** @type {?} */ registeredMessage = messageRegistry.get(message);\n var /** @type {?} */ messageElement = registeredMessage && registeredMessage.messageElement;\n if (messagesContainer && messageElement) {\n messagesContainer.removeChild(messageElement);\n }\n messageRegistry.delete(message);\n}\n/**\n * Creates the global container for all aria-describedby messages.\n * @return {?}\n */\nfunction createMessagesContainer() {\n messagesContainer = document.createElement('div');\n messagesContainer.setAttribute('id', MESSAGES_CONTAINER_ID);\n messagesContainer.setAttribute('aria-hidden', 'true');\n messagesContainer.style.display = 'none';\n document.body.appendChild(messagesContainer);\n}\n/**\n * Deletes the global messages container.\n * @return {?}\n */\nfunction deleteMessagesContainer() {\n document.body.removeChild(/** @type {?} */ ((messagesContainer)));\n messagesContainer = null;\n}\n/**\n * Removes all cdk-describedby messages that are hosted through the element.\n * @ param {?} element\n * @return {?}\n */\nfunction removeCdkDescribedByReferenceIds(element) {\n // Remove all aria-describedby reference IDs that are prefixed by CDK_DESCRIBEDBY_ID_PREFIX\n var /** @type {?} */ originalReferenceIds = getAriaReferenceIds(element, 'aria-describedby')\n .filter(function (id) { return id.indexOf(CDK_DESCRIBEDBY_ID_PREFIX) != 0; });\n element.setAttribute('aria-describedby', originalReferenceIds.join(' '));\n}\n/**\n * Adds a message reference to the element using aria-describedby and increments the registered\n * message's reference count.\n * @param {?} element\n * @param {?} message\n * @return {?}\n */\nfunction addMessageReference(element, message) {\n var /** @type {?} */ registeredMessage = ((messageRegistry.get(message)));\n // Add the aria-describedby reference and set the describedby_host attribute to mark the element.\n addAriaReferencedId(element, 'aria-describedby', registeredMessage.messageElement.id);\n element.s etAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE, '');\n registeredMessage.referenceCount++;\n}\n/**\n * Removes a message reference from the element using aria-describedby and decrements the registered\n * message's reference count.\n * @param {?} element\n * @param {?} message\n * @return {?}\n */\nfunction removeMessageReference(element, message) {\n var /** @type {?} */ registeredMessage = ((messageRegistry.get(message)));\n registeredMessage.referenceCount--;\n removeAriaReferencedId(element, 'aria-describedby', registeredMessage.messageElement.id);\n element.removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);\n}\n/**\n * Returns true if the element has been described by the provided message ID.\n * @param {?} element\n * @param {?} message\n * @return {?}\n */\nfunction isElementDescribedByMessage(element, message) {\n var /** @type {?} */ referenceIds = getAriaReferenceIds(element, 'aria-describedby');\n var /** @type {?} */ registeredMessage = messageRegistry.get (message);\n var /** @type {?} */ messageId = registeredMessage && registeredMessage.messageElement.id;\n return !!messageId && referenceIds.indexOf(messageId) != -1;\n}\n/**\n * \\@docs-private\n * @param {?} parentDispatcher\n * @param {?} platform\n * @return {?}\n */\nexport function ARIA_DESCRIBER_PROVIDER_FACTORY(parentDispatcher, platform) {\n return parentDispatcher || new AriaDescriber(platform);\n}\n/**\n * \\@docs-private\n */\nexport var ARIA_DESCRIBER_PROVIDER = {\n // If there is already an AriaDescriber available, use that. Otherwise, provide a new one.\n provide: AriaDescriber,\n deps: [\n [new Optional(), new SkipSelf(), AriaDescriber],\n Platform\n ],\n useFactory: ARIA_DESCRIBER_PROVIDER_FACTORY\n};\n//# sourceMappingURL=aria-describer.js.map","/**\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 * @param {?} event\n * @return {?}\n */\nexport function isFakeMousedownFromScreenReader(event) {\n return event.buttons === 0;\n}\n//# sourceMappingURL=fake-mousedown.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as tslib_1 from \"tslib\";\nimport { ListKeyManager } from './list-key-manager';\nvar FocusKeyManager = (function (_super) {\n tslib_1.__extends(FocusKeyManager, _super);\n function FocusKeyManager() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * This method sets the active item to the item at the specified index.\n * It also adds focuses the newly active item.\n * @param {?} index\n * @return {?}\n */\n FocusKeyManager.prototype.setActiveItem = function (index) {\n _super.prototype.setActiveItem.call(this, index);\n if (this.activeItem) {\n this.activeItem.focus();\n }\n };\n return FocusKeyManager;\n}(ListKeyManager));\nexport { FocusKeyManager };\n//# sourceMappingURL=focus-key-manager.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { Injectable } from '@angular/core';\nimport { Platform } from '@angular/cdk/platform';\n/**\n * Utility for checking the interactivity of an element, such as whether is is focusable or\n * tabbable.\n */\nvar InteractivityChecker = (function () {\n /**\n * @param {?} _platform\n */\n function In teractivityChecker(_platform) {\n this._platform = _platform;\n }\n /**\n * Gets whether an element is disabled.\n *\n * @param {?} element Element to be checked.\n * @return {?} 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 * @param {?} element\n * @return {?} 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 * @return {?} Whether the element is tabbable.\n */\n InteractivityChecker.prototype.isTabbable = function (element) {\n // Nothing is tabbable on the the server ð\n if (!this._platform.isBrowser) {\n return false;\n }\n var /** @type {?} */ frameElement = (getWindow(element).frameElement);\n if (frameElement) {\n var /** @type {?} */ 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 /** @type {?} */ nodeName = element.nodeName.toLowerCase();\n var /** @type {?} */ 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 <o bject> 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 * @return {?} 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.decorators = [\n { type: Injectable },\n ];\n /**\n * @nocollapse\n */\n Intera ctivityChecker.ctorParameters = function () { return [\n { type: Platform, },\n ]; };\n return InteractivityChecker;\n}());\nexport { InteractivityChecker };\nfunction InteractivityChecker_tsickle_Closure_declarations() {\n /** @type {?} */\n InteractivityChecker.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n InteractivityChecker.ctorParameters;\n /** @type {?} */\n InteractivityChecker.prototype._platform;\n}\n/**\n * Checks whether the specified element has any geometry / rectangles.\n * @param {?} element\n * @return {?}\n */\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/**\n * Gets whether an element's\n * @param {?} element\n * @return {?}\n */\nfunction isNativeFormElement(element) { \n var /** @type {?} */ nodeName = element.nodeName.toLowerCase();\n return nodeName === 'input' ||\n nodeName === 'select' ||\n nodeName === 'button' ||\n nodeName === 'textarea';\n}\n/**\n * Gets whether an element is an <input type=\"hidden\">.\n * @param {?} element\n * @return {?}\n */\nfunction isHiddenInput(element) {\n return isInputElement(element) && element.type == 'hidden';\n}\n/**\n * Gets whether an element is an anchor that has an href attribute.\n * @param {?} element\n * @return {?}\n */\nfunction isAnchorWithHref(element) {\n return isAnchorElement(element) && element.hasAttribute('href');\n}\n/**\n * Gets whether an element is an input element.\n * @param {?} element\n * @return {?}\n */\nfunction isInputElement(element) {\n return element.nodeName.toLowerCase() == 'input';\n}\n/**\n * Gets whether an element is an anchor element.\n * @param {?} element\n * @return {?}\n */\nfunction isAnchorElement(element) {\n return elemen t.nodeName.toLowerCase() == 'a';\n}\n/**\n * Gets whether an element has a valid tabindex.\n * @param {?} element\n * @return {?}\n */\nfunction hasValidTabIndex(element) {\n if (!element.hasAttribute('tabindex') || element.tabIndex === undefined) {\n return false;\n }\n var /** @type {?} */ 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 * @param {?} element\n * @return {?}\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 /** @type {?} */ tabIndex = parseInt(element.getAttribute('tabindex') | | '', 10);\n return isNaN(tabIndex) ? -1 : tabIndex;\n}\n/**\n * Checks whether the specified element is potentially tabbable on iOS\n * @param {?} element\n * @return {?}\n */\nfunction isPotentiallyTabbableIOS(element) {\n var /** @type {?} */ nodeName = element.nodeName.toLowerCase();\n var /** @type {?} */ 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 * @param {?} element\n * @return {?}\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/**\n * Gets the parent window of a DOM node with regards of being inside of an iframe.\n * @param {?} node\n * @return {?}\n */\nfunction getWindow(node) {\n return node.ownerDocument.defaultView || window;\n}\n//# sourceMappingURL=interactivity-checker.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { Directive, ElementRef, Input, NgZone, Injectable, } from '@angular/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Platform } from '@angular/cdk/platform';\nimport { first } from '@angular/cdk/rxjs';\nimport { InteractivityChecker } from './interactivity-checker';\n/**\n * Class that allows for trapping focus within a DOM element.\n *\n * NOTE: This class currently uses a very simple (naive) approach to focus trapping.\n * It as sumes 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 /**\n * @param {?} _element\n * @param {?} _platform\n * @param {?} _checker\n * @param {?} _ngZone\n * @param {?=} deferAnchors\n */\n function FocusTrap(_element, _platform, _checker, _ngZone, deferAnchors) {\n if (deferAnchors === void 0) { deferAnchors = false; }\n this._element = _element;\n this._platform = _platform;\n this._checker = _checker;\n this._ngZone = _ngZone;\n this._enabled = true;\n if (!deferAnchors) {\n this.attachAnchors();\n }\n }\n Object.defineProperty(FocusTrap.prototype, \"enabled\", {\n /**\n * Whether the focus trap is active.\n * @return {?}\n */\n get: function () { return this._enabled; },\n /**\n * @param {?} val\n * @return {?}\n */\n set: function (val) {\n this._enabled = val;\n if (this._startAnchor && this._endAnchor) {\n this._startAnchor.tabIndex = this._endAnchor.tabIndex = this._enabled ? 0 : -1;\n }\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Destroys the focus trap by cleaning up the anchors.\n * @return {?}\n */\n FocusTrap.prototype.destroy = function () {\n if (this._startAnchor && this._startAnchor.parentNode) {\n this._startAnchor.parentNode.removeChild(this._startAnchor);\n }\n if (this._endAnchor && this._endAnchor.parentNode) {\n this._endAnchor.parentNode.removeChild(this._endAnchor);\n }\n this._startAnchor = this._endAnchor = null;\n };\n /**\n * Inser ts the anchors into the DOM. This is usually done automatically\n * in the constructor, but can be deferred for cases like directives with `*ngIf`.\n * @return {?}\n */\n FocusTrap.prototype.attachAnchors = function () {\n var _this = this;\n // If we're not on the browser, there can be no focus to trap.\n if (!this._platform.isBrowser) {\n return;\n }\n if (!this._startAnchor) {\n this._startAnchor = this._createAnchor();\n }\n if (!this._endAnchor) {\n this._endAnchor = this._createAnchor();\n }\n this._ngZone.runOutsideAngular(function () {\n ((_this._startAnchor)).addEventListener('focus', function () {\n _this.focusLastTabbableElement();\n }); /** @type {?} */\n ((_this._endAnchor)).addEventListener('focus', function () {\n _this.focusFirstTabbableElement();\n });\n if (_this._element. parentNode) {\n _this._element.parentNode.insertBefore(/** @type {?} */ ((_this._startAnchor)), _this._element);\n _this._element.parentNode.insertBefore(/** @type {?} */ ((_this._endAnchor)), _this._element.nextSibling);\n }\n });\n };\n /**\n * Waits for the zone to stabilize, then either focuses the first element that the\n * user specified, or the first tabbable element.\n * @return {?} Returns a promise that resolves with a boolean, depending\n * on whether focus was moved successfuly.\n */\n FocusTrap.prototype.focusInitialElementWhenReady = function () {\n var _this = this;\n return new Promise(function (resolve) {\n _this._executeOnStable(function () { return resolve(_this.focusInitialElement()); });\n });\n };\n /**\n * Waits for the zone to stabilize, then focuses\n * the first tabbable element within the focus trap region.\n * @return {?} Returns a promise that resolves with a boolean, depending\n * on whether focus was moved successfuly.\n */\n FocusTrap.prototype.focusFirstTabbableElementWhenReady = function () {\n var _this = this;\n return new Promise(function (resolve) {\n _this._executeOnStable(function () { return resolve(_this.focusFirstTabbableElement()); });\n });\n };\n /**\n * Waits for the zone to stabilize, then focuses\n * the last tabbable element within the focus trap region.\n * @return {?} Returns a promise that resolves with a boolean, depending\n * on whether focus was moved successfuly.\n */\n FocusTrap.prototype.focusLastTabbableElementWhenReady = function () {\n var _this = this;\n return new Promise(function (resolve) {\n _this._executeOnStable(function () { return resolve(_this.focusLastTabbableElement()); });\n });\n };\n /**\n * Get the specified boundary element of the trapped region. \n * @param {?} bound The boundary to get (start or end of trapped region).\n * @return {?} The boundary element.\n */\n FocusTrap.prototype._getRegionBoundary = function (bound) {\n // Contains the deprecated version of selector, for temporary backwards comparability.\n var /** @type {?} */ markers = (this._element.querySelectorAll(\"[cdk-focus-region-\" + bound + \"], \" +\n (\"[cdk-focus-\" + bound + \"]\")));\n for (var /** @type {?} */ i = 0; i < markers.length; i++) {\n if (markers[i].hasAttribute(\"cdk-focus-\" + bound)) {\n console.warn(\"Found use of deprecated attribute 'cdk-focus-\" + bound + \"',\" +\n (\" use 'cdk-focus-region-\" + bound + \"' instead.\"), markers[i]);\n }\n }\n if (bound == 'start') {\n return markers.length ? markers[0] : this._getFirstTabbableElement(this._element);\n }\n return markers.length ?\n ma rkers[markers.length - 1] : this._getLastTabbableElement(this._element);\n };\n /**\n * Focuses the element that should be focused when the focus trap is initialized.\n * @return {?} Returns whether focus was moved successfuly.\n */\n FocusTrap.prototype.focusInitialElement = function () {\n var /** @type {?} */ redirectToElement = (this._element.querySelector('[cdk-focus-initial]'));\n if (redirectToElement) {\n redirectToElement.focus();\n return true;\n }\n return this.focusFirstTabbableElement();\n };\n /**\n * Focuses the first tabbable element within the focus trap region.\n * @return {?} Returns whether focus was moved successfuly.\n */\n FocusTrap.prototype.focusFirstTabbableElement = function () {\n var /** @type {?} */ redirectToElement = this._getRegionBoundary('start');\n if (redirectToElement) {\n redirectToElement.focus();\n }\n return !!re directToElement;\n };\n /**\n * Focuses the last tabbable element within the focus trap region.\n * @return {?} Returns whether focus was moved successfuly.\n */\n FocusTrap.prototype.focusLastTabbableElement = function () {\n var /** @type {?} */ redirectToElement = this._getRegionBoundary('end');\n if (redirectToElement) {\n redirectToElement.focus();\n }\n return !!redirectToElement;\n };\n /**\n * Get the first tabbable element from a DOM subtree (inclusive).\n * @param {?} root\n * @return {?}\n */\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. Note that IE doesn't have `children` for SVG so we fall\n // back to `childNodes` which includes text nodes, comments etc.\n var /** @type {?} */ children = root.childre n || root.childNodes;\n for (var /** @type {?} */ i = 0; i < children.length; i++) {\n var /** @type {?} */ tabbableChild = children[i].nodeType === Node.ELEMENT_NODE ?\n this._getFirstTabbableElement(/** @type {?} */ (children[i])) :\n null;\n if (tabbableChild) {\n return tabbableChild;\n }\n }\n return null;\n };\n /**\n * Get the last tabbable element from a DOM subtree (inclusive).\n * @param {?} root\n * @return {?}\n */\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 var /** @type {?} */ children = root.children || root.childNodes;\n for (var /** @type {?} */ i = children.length - 1; i >= 0; i--) {\n var /** @type {?} */ tabbableChild = children[i].nod eType === Node.ELEMENT_NODE ?\n this._getLastTabbableElement(/** @type {?} */ (children[i])) :\n null;\n if (tabbableChild) {\n return tabbableChild;\n }\n }\n return null;\n };\n /**\n * Creates an anchor element.\n * @return {?}\n */\n FocusTrap.prototype._createAnchor = function () {\n var /** @type {?} */ anchor = document.createElement('div');\n anchor.tabIndex = this._enabled ? 0 : -1;\n anchor.classList.add('cdk-visually-hidden');\n anchor.classList.add('cdk-focus-trap-anchor');\n return anchor;\n };\n /**\n * Executes a function when the zone is stable.\n * @param {?} fn\n * @return {?}\n */\n FocusTrap.prototype._executeOnStable = function (fn) {\n if (this._ngZone.isStable) {\n fn();\n }\n else {\n first.call(this._ngZone.onStable.asObservable()).subscribe(fn);\n } \n };\n return FocusTrap;\n}());\nexport { FocusTrap };\nfunction FocusTrap_tsickle_Closure_declarations() {\n /** @type {?} */\n FocusTrap.prototype._startAnchor;\n /** @type {?} */\n FocusTrap.prototype._endAnchor;\n /** @type {?} */\n FocusTrap.prototype._enabled;\n /** @type {?} */\n FocusTrap.prototype._element;\n /** @type {?} */\n FocusTrap.prototype._platform;\n /** @type {?} */\n FocusTrap.prototype._checker;\n /** @type {?} */\n FocusTrap.prototype._ngZone;\n}\n/**\n * Factory that allows easy instantiation of focus traps.\n */\nvar FocusTrapFactory = (function () {\n /**\n * @param {?} _checker\n * @param {?} _platform\n * @param {?} _ngZone\n */\n function FocusTrapFactory(_checker, _platform, _ngZone) {\n this._checker = _checker;\n this._platform = _platform;\n this._ngZone = _ngZone;\n }\n /**\n * @param {?} element\n * @param {?=} deferAnchors\n * @return {?}\ n */\n FocusTrapFactory.prototype.create = function (element, deferAnchors) {\n if (deferAnchors === void 0) { deferAnchors = false; }\n return new FocusTrap(element, this._platform, this._checker, this._ngZone, deferAnchors);\n };\n FocusTrapFactory.decorators = [\n { type: Injectable },\n ];\n /**\n * @nocollapse\n */\n FocusTrapFactory.ctorParameters = function () { return [\n { type: InteractivityChecker, },\n { type: Platform, },\n { type: NgZone, },\n ]; };\n return FocusTrapFactory;\n}());\nexport { FocusTrapFactory };\nfunction FocusTrapFactory_tsickle_Closure_declarations() {\n /** @type {?} */\n FocusTrapFactory.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n FocusTrapFactory.ctorParameters;\n /** @type {?} */\n FocusTrapFactory.prototype._checker;\n /** @type {?} */\n FocusTrapFactory.prototype._platform;\n /** @type {?} */\n FocusTrapFactory.prot otype._ngZone;\n}\n/**\n * Directive for trapping focus within a region.\n * @deprecated\n */\nvar FocusTrapDeprecatedDirective = (function () {\n /**\n * @param {?} _elementRef\n * @param {?} _focusTrapFactory\n */\n function FocusTrapDeprecatedDirective(_elementRef, _focusTrapFactory) {\n this._elementRef = _elementRef;\n this._focusTrapFactory = _focusTrapFactory;\n this.focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement, true);\n }\n Object.defineProperty(FocusTrapDeprecatedDirective.prototype, \"disabled\", {\n /**\n * Whether the focus trap is active.\n * @return {?}\n */\n get: function () { return !this.focusTrap.enabled; },\n /**\n * @param {?} val\n * @return {?}\n */\n set: function (val) {\n this.focusTrap.enabled = !coerceBooleanProperty(val);\n },\n enumerable: true,\n configurable: true\n });\ n /**\n * @return {?}\n */\n FocusTrapDeprecatedDirective.prototype.ngOnDestroy = function () {\n this.focusTrap.destroy();\n };\n /**\n * @return {?}\n */\n FocusTrapDeprecatedDirective.prototype.ngAfterContentInit = function () {\n this.focusTrap.attachAnchors();\n };\n FocusTrapDeprecatedDirective.decorators = [\n { type: Directive, args: [{\n selector: 'cdk-focus-trap',\n },] },\n ];\n /**\n * @nocollapse\n */\n FocusTrapDeprecatedDirective.ctorParameters = function () { return [\n { type: ElementRef, },\n { type: FocusTrapFactory, },\n ]; };\n FocusTrapDeprecatedDirective.propDecorators = {\n 'disabled': [{ type: Input },],\n };\n return FocusTrapDeprecatedDirective;\n}());\nexport { FocusTrapDeprecatedDirective };\nfunction FocusTrapDeprecatedDirective_tsickle_Closure_declarations() {\n /** @type {?} */\n FocusTrapDeprecatedDirecti ve.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n FocusTrapDeprecatedDirective.ctorParameters;\n /** @type {?} */\n FocusTrapDeprecatedDirective.propDecorators;\n /** @type {?} */\n FocusTrapDeprecatedDirective.prototype.focusTrap;\n /** @type {?} */\n FocusTrapDeprecatedDirective.prototype._elementRef;\n /** @type {?} */\n FocusTrapDeprecatedDirective.prototype._focusTrapFactory;\n}\n/**\n * Directive for trapping focus within a region.\n */\nvar FocusTrapDirective = (function () {\n /**\n * @param {?} _elementRef\n * @param {?} _focusTrapFactory\n */\n function FocusTrapDirective(_elementRef, _focusTrapFactory) {\n this._elementRef = _elementRef;\n this._focusTrapFactory = _focusTrapFactory;\n this.focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement, true);\n }\n Object.defineProperty(FocusTrapDirective.prototype, \"enabled\", {\n /**\n * Whether the f ocus trap is active.\n * @return {?}\n */\n get: function () { return this.focusTrap.enabled; },\n /**\n * @param {?} value\n * @return {?}\n */\n set: function (value) { this.focusTrap.enabled = coerceBooleanProperty(value); },\n enumerable: true,\n configurable: true\n });\n /**\n * @return {?}\n */\n FocusTrapDirective.prototype.ngOnDestroy = function () {\n this.focusTrap.destroy();\n };\n /**\n * @return {?}\n */\n FocusTrapDirective.prototype.ngAfterContentInit = function () {\n this.focusTrap.attachAnchors();\n };\n FocusTrapDirective.decorators = [\n { type: Directive, args: [{\n selector: '[cdkTrapFocus]',\n exportAs: 'cdkTrapFocus',\n },] },\n ];\n /**\n * @nocollapse\n */\n FocusTrapDirective.ctorParameters = function () { return [\n { type: ElementRef, },\n { type: FocusTrapFactory, },\n ]; };\n FocusTrapDirective.propDecorators = {\n 'enabled': [{ type: Input, args: ['cdkTrapFocus',] },],\n };\n return FocusTrapDirective;\n}());\nexport { FocusTrapDirective };\nfunction FocusTrapDirective_tsickle_Closure_declarations() {\n /** @type {?} */\n FocusTrapDirective.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n FocusTrapDirective.ctorParameters;\n /** @type {?} */\n FocusTrapDirective.propDecorators;\n /** @type {?} */\n FocusTrapDirective.prototype.focusTrap;\n /** @type {?} */\n FocusTrapDirective.prototype._elementRef;\n /** @type {?} */\n FocusTrapDirective.prototype._focusTrapFactory;\n}\n//# sourceMappingURL=focus-trap.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { Injectable, In jectionToken, Optional, Inject, SkipSelf, } from '@angular/core';\nimport { Platform } from '@angular/cdk/platform';\nexport var /** @type {?} */ LIVE_ANNOUNCER_ELEMENT_TOKEN = new InjectionToken('liveAnnouncerElement');\nvar LiveAnnouncer = (function () {\n /**\n * @param {?} elementToken\n * @param {?} platform\n */\n function LiveAnnouncer(elementToken, platform) {\n // Only do anything if we're on the browser platform.\n if (platform.isBrowser) {\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 /**\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 * @return {?}\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 /**\n * @r eturn {?}\n */\n LiveAnnouncer.prototype.ngOnDestroy = function () {\n if (this._liveElement && this._liveElement.parentNode) {\n this._liveElement.parentNode.removeChild(this._liveElement);\n }\n };\n /**\n * @return {?}\n */\n LiveAnnouncer.prototype._createLiveElement = function () {\n var /** @type {?} */ 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.decorators = [\n { type: Injectable },\n ];\n /**\n * @nocollapse\n */\n LiveAnnouncer.ctorParameters = function () { return [\n { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [LIVE_ANNOUNCER_ELEMENT_TOKEN,] },] },\n { type: Platform, },\n ]; };\n return LiveAnnou ncer;\n}());\nexport { LiveAnnouncer };\nfunction LiveAnnouncer_tsickle_Closure_declarations() {\n /** @type {?} */\n LiveAnnouncer.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n LiveAnnouncer.ctorParameters;\n /** @type {?} */\n LiveAnnouncer.prototype._liveElement;\n}\n/**\n * \\@docs-private\n * @param {?} parentDispatcher\n * @param {?} liveElement\n * @param {?} platform\n * @return {?}\n */\nexport function LIVE_ANNOUNCER_PROVIDER_FACTORY(parentDispatcher, liveElement, platform) {\n return parentDispatcher || new LiveAnnouncer(liveElement, platform);\n}\n/**\n * \\@docs-private\n */\nexport var LIVE_ANNOUNCER_PROVIDER = {\n // If there is already a LiveAnnouncer available, use that. Otherwise, provide a new one.\n provide: LiveAnnouncer,\n deps: [\n [new Optional(), new SkipSelf(), LiveAnnouncer],\n [new Optional(), new Inject(LIVE_ANNOUNCER_ELEMENT_TOKEN)],\n Platform,\n ],\n useFactory: LIVE_ANNOUNC ER_PROVIDER_FACTORY\n};\n//# sourceMappingURL=live-announcer.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { Platform } from '@angular/cdk/platform';\nimport { Directive, ElementRef, EventEmitter, Injectable, NgZone, Optional, Output, Renderer2, SkipSelf, } from '@angular/core';\nimport { of as observableOf } from 'rxjs/observable/of';\nimport { Subject } from 'rxjs/Subject';\n// This is the value used by AngularJS Material. Through trial and error (on iPhone 6S) they found\n// that a value of around 650ms seems appropriate.\nexport var /** @type {?} */ TOUCH_BUFFER_MS = 650;\n/**\n * Monitors mouse and keyboard events to determine the cause of focus events.\n */\nvar FocusMonitor = (function () {\n /**\n * @param {?} _ngZone\n * @param {?} _platform\n */\n function FocusMonitor(_ngZone, _platform) {\n var _this = this;\n this._ngZone = _ngZone;\n this._platform = _platform;\n /**\n * The focus origin that the next focus event is a result of.\n */\n this._origin = null;\n /**\n * Whether the window has just been focused.\n */\n this._windowFocused = false;\n /**\n * Weak map of elements being monitored to their info.\n */\n this._elementInfo = new WeakMap();\n this._ngZone.runOutsideAngular(function () { return _this._registerDocumentEvents(); });\n }\n /**\n * Monitors focus on an element and applies appropriate CSS classes.\n * @param {?} element The element to monitor\n * @param {?} renderer The renderer to use to apply CSS classes to the element.\n * @param {?} checkChildren Whether to count the element as focused when its children are focused.\n * @return {?} An observable that emits when the focus state of the element changes.\n * When the element is blurred, null will be emitted.\n */\n FocusMonitor.prototype.monitor = function (element, renderer, checkChildren) {\n var _this = this;\n // Do nothing if we're not on the browser platform.\n if (!this._platform.isBrowser) {\n return observableOf(null);\n }\n // Check if we're already monitoring this element.\n if (this._elementInfo.has(element)) {\n var /** @type {?} */ cachedInfo = this._elementInfo.get(element); /** @type {?} */\n ((cachedInfo)).checkChildren = checkChildren;\n return ((cachedInfo)).subject.asObservable();\n }\n // Create monitored element info.\n var /** @type {?} */ info = {\n unlisten: function () { },\n checkChildren: checkChildren,\n renderer: renderer,\n subject: new Subject()\n };\n this._elementInfo.set(element, info);\n // Start listenin g. We need to listen in capture phase since focus events don't bubble.\n var /** @type {?} */ focusListener = function (event) { return _this._onFocus(event, element); };\n var /** @type {?} */ blurListener = function (event) { return _this._onBlur(event, element); };\n this._ngZone.runOutsideAngular(function () {\n element.addEventListener('focus', focusListener, true);\n element.addEventListener('blur', blurListener, true);\n });\n // Create an unlisten function for later.\n info.unlisten = function () {\n element.removeEventListener('focus', focusListener, true);\n element.removeEventListener('blur', blurListener, true);\n };\n return info.subject.asObservable();\n };\n /**\n * Stops monitoring an element and removes all focus classes.\n * @param {?} element The element to stop monitoring.\n * @return {?}\n */\n FocusMonitor.prototype.stopMonitoring = funct ion (element) {\n var /** @type {?} */ elementInfo = this._elementInfo.get(element);\n if (elementInfo) {\n elementInfo.unlisten();\n elementInfo.subject.complete();\n this._setClasses(element);\n this._elementInfo.delete(element);\n }\n };\n /**\n * Focuses the element via the specified focus origin.\n * @param {?} element The element to focus.\n * @param {?} origin The focus origin.\n * @return {?}\n */\n FocusMonitor.prototype.focusVia = function (element, origin) {\n this._setOriginForCurrentEventQueue(origin);\n element.focus();\n };\n /**\n * Register necessary event listeners on the document and window.\n * @return {?}\n */\n FocusMonitor.prototype._registerDocumentEvents = function () {\n var _this = this;\n // Do nothing if we're not on the browser platform.\n if (!this._platform.isBrowser) {\n return;\n }\n // Note: we listen to events in the capture phase so we can detect them even if the user stops\n // propagation.\n // On keydown record the origin and clear any touch event that may be in progress.\n document.addEventListener('keydown', function () {\n _this._lastTouchTarget = null;\n _this._setOriginForCurrentEventQueue('keyboard');\n }, true);\n // On mousedown record the origin only if there is not touch target, since a mousedown can\n // happen as a result of a touch event.\n document.addEventListener('mousedown', function () {\n if (!_this._lastTouchTarget) {\n _this._setOriginForCurrentEventQueue('mouse');\n }\n }, true);\n // When the touchstart event fires the focus event is not yet in the event queue. This means\n // we can't rely on the trick used above (setting timeout of 0ms). Instead we wait 650ms to\n // see if a focus happens.\ n document.addEventListener('touchstart', function (event) {\n if (_this._touchTimeout != null) {\n clearTimeout(_this._touchTimeout);\n }\n _this._lastTouchTarget = event.target;\n _this._touchTimeout = setTimeout(function () { return _this._lastTouchTarget = null; }, TOUCH_BUFFER_MS);\n }, true);\n // Make a note of when the window regains focus, so we can restore the origin info for the\n // focused element.\n window.addEventListener('focus', function () {\n _this._windowFocused = true;\n setTimeout(function () { return _this._windowFocused = false; }, 0);\n });\n };\n /**\n * Sets the focus classes on the element based on the given focus origin.\n * @param {?} element The element to update the classes on.\n * @param {?=} origin The focus origin.\n * @return {?}\n */\n FocusMonitor.prototype._setClasses = function (element, origin ) {\n var /** @type {?} */ elementInfo = this._elementInfo.get(element);\n if (elementInfo) {\n var /** @type {?} */ toggleClass = function (className, shouldSet) {\n shouldSet ? elementInfo.renderer.addClass(element, className) :\n elementInfo.renderer.removeClass(element, className);\n };\n toggleClass('cdk-focused', !!origin);\n toggleClass('cdk-touch-focused', origin === 'touch');\n toggleClass('cdk-keyboard-focused', origin === 'keyboard');\n toggleClass('cdk-mouse-focused', origin === 'mouse');\n toggleClass('cdk-program-focused', origin === 'program');\n }\n };\n /**\n * Sets the origin and schedules an async function to clear it at the end of the event queue.\n * @param {?} origin The origin to set.\n * @return {?}\n */\n FocusMonitor.prototype._setOriginForCurrentEventQueue = function (origin) {\n var _this = thi s;\n this._origin = origin;\n setTimeout(function () { return _this._origin = null; }, 0);\n };\n /**\n * Checks whether the given focus event was caused by a touchstart event.\n * @param {?} event The focus event to check.\n * @return {?} Whether the event was caused by a touch.\n */\n FocusMonitor.prototype._wasCausedByTouch = function (event) {\n // Note(mmalerba): This implementation is not quite perfect, there is a small edge case.\n // Consider the following dom structure:\n //\n // <div #parent tabindex=\"0\" cdkFocusClasses>\n // <div #child (click)=\"#parent.focus()\"></div>\n // </div>\n //\n // If the user touches the #child element and the #parent is programmatically focused as a\n // result, this code will still consider it to have been caused by the touch event and will\n // apply the cdk-touch-focused class rather than the cdk-program-focused class. This is a \n // relatively small edge-case that can be worked around by using\n // focusVia(parentEl, renderer, 'program') to focus the parent element.\n //\n // If we decide that we absolutely must handle this case correctly, we can do so by listening\n // for the first focus event after the touchstart, and then the first blur event after that\n // focus event. When that blur event fires we know that whatever follows is not a result of the\n // touchstart.\n var /** @type {?} */ focusTarget = event.target;\n return this._lastTouchTarget instanceof Node && focusTarget instanceof Node &&\n (focusTarget === this._lastTouchTarget || focusTarget.contains(this._lastTouchTarget));\n };\n /**\n * Handles focus events on a registered element.\n * @param {?} event The focus event.\n * @param {?} element The monitored element.\n * @return {?}\n */\n FocusMonitor.prototype._onFocus = function (event, element) {\n // NOTE(mmalerba): We currently set the classes based on the focus origin of the most recent\n // focus event affecting the monitored element. If we want to use the origin of the first event\n // instead we should check for the cdk-focused class here and return if the element already has\n // it. (This only matters for elements that have includesChildren = true).\n // If we are not counting child-element-focus as focused, make sure that the event target is the\n // monitored element itself.\n var /** @type {?} */ elementInfo = this._elementInfo.get(element);\n if (!elementInfo || (!elementInfo.checkChildren && element !== event.target)) {\n return;\n }\n // If we couldn't detect a cause for the focus event, it's due to one of three reasons:\n // 1) The window has just regained focus, in which case we want to restore the focused state of\n // the element from before the wind ow blurred.\n // 2) It was caused by a touch event, in which case we mark the origin as 'touch'.\n // 3) The element was programmatically focused, in which case we should mark the origin as\n // 'program'.\n if (!this._origin) {\n if (this._windowFocused && this._lastFocusOrigin) {\n this._origin = this._lastFocusOrigin;\n }\n else if (this._wasCausedByTouch(event)) {\n this._origin = 'touch';\n }\n else {\n this._origin = 'program';\n }\n }\n this._setClasses(element, this._origin);\n elementInfo.subject.next(this._origin);\n this._lastFocusOrigin = this._origin;\n this._origin = null;\n };\n /**\n * Handles blur events on a registered element.\n * @param {?} event The blur event.\n * @param {?} element The monitored element.\n * @return {?}\n */\n FocusMonitor.prototype._onBlur = function (event, element) {\n // If we are counting child-element-focus as focused, make sure that we aren't just blurring in\n // order to focus another child of the monitored element.\n var /** @type {?} */ elementInfo = this._elementInfo.get(element);\n if (!elementInfo || (elementInfo.checkChildren && event.relatedTarget instanceof Node &&\n element.contains(event.relatedTarget))) {\n return;\n }\n this._setClasses(element);\n elementInfo.subject.next(null);\n };\n FocusMonitor.decorators = [\n { type: Injectable },\n ];\n /**\n * @nocollapse\n */\n FocusMonitor.ctorParameters = function () { return [\n { type: NgZone, },\n { type: Platform, },\n ]; };\n return FocusMonitor;\n}());\nexport { FocusMonitor };\nfunction FocusMonitor_tsickle_Closure_declarations() {\n /** @type {?} */\n FocusMonitor.decorators;\n /**\n * @nocollapse\n * @type {? }\n */\n FocusMonitor.ctorParameters;\n /**\n * The focus origin that the next focus event is a result of.\n * @type {?}\n */\n FocusMonitor.prototype._origin;\n /**\n * The FocusOrigin of the last focus event tracked by the FocusMonitor.\n * @type {?}\n */\n FocusMonitor.prototype._lastFocusOrigin;\n /**\n * Whether the window has just been focused.\n * @type {?}\n */\n FocusMonitor.prototype._windowFocused;\n /**\n * The target of the last touch event.\n * @type {?}\n */\n FocusMonitor.prototype._lastTouchTarget;\n /**\n * The timeout id of the touch timeout, used to cancel timeout later.\n * @type {?}\n */\n FocusMonitor.prototype._touchTimeout;\n /**\n * Weak map of elements being monitored to their info.\n * @type {?}\n */\n FocusMonitor.prototype._elementInfo;\n /** @type {?} */\n FocusMonitor.prototype._ngZone;\n /** @type {?} */\n FocusMonitor.protot ype._platform;\n}\n/**\n * Directive that determines how a particular element was focused (via keyboard, mouse, touch, or\n * programmatically) and adds corresponding classes to the element.\n *\n * There are two variants of this directive:\n * 1) cdkMonitorElementFocus: does not consider an element to be focused if one of its children is\n * focused.\n * 2) cdkMonitorSubtreeFocus: considers an element focused if it or any of its children are focused.\n */\nvar CdkMonitorFocus = (function () {\n /**\n * @param {?} _elementRef\n * @param {?} _focusMonitor\n * @param {?} renderer\n */\n function CdkMonitorFocus(_elementRef, _focusMonitor, renderer) {\n var _this = this;\n this._elementRef = _elementRef;\n this._focusMonitor = _focusMonitor;\n this.cdkFocusChange = new EventEmitter();\n this._monitorSubscription = this._focusMonitor.monitor(this._elementRef.nativeElement, renderer, this._elementRef.nativeElement.hasAttribute(' cdkMonitorSubtreeFocus'))\n .subscribe(function (origin) { return _this.cdkFocusChange.emit(origin); });\n }\n /**\n * @return {?}\n */\n CdkMonitorFocus.prototype.ngOnDestroy = function () {\n this._focusMonitor.stopMonitoring(this._elementRef.nativeElement);\n this._monitorSubscription.unsubscribe();\n };\n CdkMonitorFocus.decorators = [\n { type: Directive, args: [{\n selector: '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]',\n },] },\n ];\n /**\n * @nocollapse\n */\n CdkMonitorFocus.ctorParameters = function () { return [\n { type: ElementRef, },\n { type: FocusMonitor, },\n { type: Renderer2, },\n ]; };\n CdkMonitorFocus.propDecorators = {\n 'cdkFocusChange': [{ type: Output },],\n };\n return CdkMonitorFocus;\n}());\nexport { CdkMonitorFocus };\nfunction CdkMonitorFocus_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkMonitorFocus.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkMonitorFocus.ctorParameters;\n /** @type {?} */\n CdkMonitorFocus.propDecorators;\n /** @type {?} */\n CdkMonitorFocus.prototype._monitorSubscription;\n /** @type {?} */\n CdkMonitorFocus.prototype.cdkFocusChange;\n /** @type {?} */\n CdkMonitorFocus.prototype._elementRef;\n /** @type {?} */\n CdkMonitorFocus.prototype._focusMonitor;\n}\n/**\n * \\@docs-private\n * @param {?} parentDispatcher\n * @param {?} ngZone\n * @param {?} platform\n * @return {?}\n */\nexport function FOCUS_MONITOR_PROVIDER_FACTORY(parentDispatcher, ngZone, platform) {\n return parentDispatcher || new FocusMonitor(ngZone, platform);\n}\n/**\n * \\@docs-private\n */\nexport var FOCUS_MONITOR_PROVIDER = {\n // If there is already a FocusMonitor available, use that. Otherwise, provide a new one.\n provide: FocusMonitor,\n deps: [[new Optional(), new SkipSelf(), FocusMonitor], NgZ one, Platform],\n useFactory: FOCUS_MONITOR_PROVIDER_FACTORY\n};\n//# sourceMappingURL=focus-monitor.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { NgModule } from '@angular/core';\nimport { FocusTrapDeprecatedDirective, FocusTrapDirective, FocusTrapFactory } from './focus-trap';\nimport { LIVE_ANNOUNCER_PROVIDER } from './live-announcer';\nimport { InteractivityChecker } from './interactivity-checker';\nimport { CommonModule } from '@angular/common';\nimport { PlatformModule } from '@angular/cdk/platform';\nimport { AriaDescriber, ARIA_DESCRIBER_PROVIDER } from './aria-describer';\nimport { CdkMonitorFocus, FOCUS_MONITOR_PROVIDER } from './focus-monitor';\nvar A11yModule = (function () {\n function A11yModule() {\n }\n A11yModule.decorators = [\n { type: NgModule, args: [{\n imports: [CommonModule, PlatformModule],\n declarations: [FocusTrapDirective, FocusTrapDeprecatedDirective, CdkMonitorFocus],\n exports: [FocusTrapDirective, FocusTrapDeprecatedDirective, CdkMonitorFocus],\n providers: [\n InteractivityChecker,\n FocusTrapFactory,\n AriaDescriber,\n LIVE_ANNOUNCER_PROVIDER,\n ARIA_DESCRIBER_PROVIDER,\n FOCUS_MONITOR_PROVIDER,\n ]\n },] },\n ];\n /**\n * @nocollapse\n */\n A11yModule.ctorParameters = function () { return []; };\n return A11yModule;\n}());\nexport { A11yModule };\nfunction A11yModule_tsickle_Closure_declarations() {\n /** @type {?} */\n A11yModule.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n A11yModule.ctorParameters;\n}\n//# sourceMappingURL=a11y- module.js.map","/**\n * Generated bundle index. Do not edit.\n */\nexport { ActiveDescendantKeyManager, MESSAGES_CONTAINER_ID, CDK_DESCRIBEDBY_ID_PREFIX, CDK_DESCRIBEDBY_HOST_ATTRIBUTE, AriaDescriber, ARIA_DESCRIBER_PROVIDER_FACTORY, ARIA_DESCRIBER_PROVIDER, isFakeMousedownFromScreenReader, FocusKeyManager, FocusTrap, FocusTrapFactory, FocusTrapDeprecatedDirective, FocusTrapDirective, InteractivityChecker, ListKeyManager, LIVE_ANNOUNCER_ELEMENT_TOKEN, LiveAnnouncer, LIVE_ANNOUNCER_PROVIDER_FACTORY, LIVE_ANNOUNCER_PROVIDER, TOUCH_BUFFER_MS, FocusMonitor, CdkMonitorFocus, FOCUS_MONITOR_PROVIDER_FACTORY, FOCUS_MONITOR_PROVIDER, A11yModule } from './public-api';\n//# sourceMappingURL=index.js.map"],"names":["tslib_1.__extends","observableOf"],"mappings":";;;;;;;;;;;;;;;;;;;AAWA;;;;AAIA,IAAI,cAAc,IAAI,YAAY;;;;IAI9B,SAAS,cAAc,CAAC,MAAM,EAAE;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,gBAAgB,GAAG,IAAI,OA AO,EAAE,CAAC;QACtC,IAAI,CAAC,sBAAsB,GAAG,YAAY,CAAC,KAAK,CAAC;QACjD,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC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