blob: b711dfad22309cf0cf2e60ae1d2cc1b818ff8e98 [file] [log] [blame]
{"version":3,"sources":["src/material/material-core.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","material","core","cdk","a11y","bidi","common","coercion","rxjs","platform","operators","platformBrowser","animations","keycodes","this","i0","AnimationCurves","AnimationDurations","VERSION","Version","STANDARD_CURVE","DECELERATION_CURVE","ACCELERATION_CURVE","SHARP_CURVE","COMPLEX","ENTERING","EXITING","VERSION$1","MATERIAL_SANITY_CHECKS_FACTORY","MATERIAL_SANITY_CHECKS","InjectionToken","providedIn","MatCommonModule","highContrastModeDetector","sanityChecks","document","_hasDoneGlobalChecks","_document","_applyBodyHighContrastModeCssClasses","_sanityChecks","_checkDoctypeIsDefined","_checkThemeIsPresent","_checkCdkVersionMatch","prototype","_getWindow","win","defaultView","window","_checksAreEnabled","isDevMode","_isTestEnv","__karma__","jasmine","doctype","console","warn","theme","body","getComputedStyle","testElement","createElement","classList","add","appendChild","computedStyle","display","removeChild","version","full","decorators","type","NgModule","args","imports","BidiModule","ctorParameters","HighContrastModeDetector","undefined","Optional","Inject","DOCUMENT","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","call","__extends","TypeError","String","__","constructor","create","__read","o","n","m","Symbol","iterator","r","e","i","ar","next","done","push","value","error","__spread","arguments","length","concat","mixinDisabled","base","_super","class_1","_i","_this","apply","_disabled","defineProperty","get","set","coerceBooleanProperty","enumerable","configurable","MAT_DATE_LOCALE","MAT_DATE_LOCALE_FACTORY","inject","LOCALE_ID","SUPPORTS_INTL_API","DateAdapter","_localeChanges","Subject","localeChanges","getValidDateOrNull","obj","isDateInstance","isValid","deserialize","invalid","setLocale","locale","compareDate","first","second","getYear","getMonth","getDate","sameDate","firstValid","secondValid","clampDate","date","min","max","MAT_DATE_FORMATS","Intl","_a","DEFAULT_MONTH_NAMES","long","short","narrow","DEFAULT_DATE_NAMES","range","DEFAULT_DAY_OF_WEEK_NAMES","ISO_8601_REGEX","valueFunction","valuesArray","NativeDateAdapter","matDateLocale","useUtcForDisplay","TRIDENT","_clampDate","EDGE","getFullYear","getDayOfWeek","getDay","getMonthNames","style","dtf_1","DateTimeFormat","month","timeZone","_stripDirectionalityCharacters","_format","Date","getDateNames","dtf_2","day","getDayOfWeekNames","dtf_3","weekday","getYearName","dtf","year","getFirstDayOfWeek","getNumDaysInMonth","_createDateWithOverflow","clone","getTime","createDate","result","today","parse","format","displayFormat","Error","setFullYear","Math","assign","toDateString","addCalendarYears","years","addCalendarMonths","months","newDate","addCalendarDays","days","toIso8601","getUTCFullYear","_2digit","getUTCMonth","getUTCDate","join","test","isNaN","NaN","setHours","slice","str","replace","setUTCFullYear","setUTCHours","getHours","getMinutes","getSeconds","getMilliseconds","Injectable","Platform","NativeDateModule","MAT_NATIVE_DATE_FORMATS","dateInput","monthYearLabel","dateA11yLabel","monthYearA11yLabel","PlatformModule","providers","provide","useClass","MatNativeDateModule","ɵ0$1","useValue","ShowOnDirtyErrorStateMatcher","isErrorState","control","form","dirty","submitted","MatLine","MatLineModule","ErrorStateMatcher","touched","setClass","element","className","isAdd","nativeElement","remove","ɵprov","ɵɵdefineInjectable","ErrorStateMatcher_Factory","token","Directive","selector","host","class","declarations","MatRippleModule","MatPseudoCheckbox","MatPseudoCheckboxModule","RippleRef","_renderer","config","state","fadeOut","fadeOutRipple","defaultRippleAnimationConfig","enterDuration","exitDuration","passiveEventOptions","normalizePassiveListenerOptions","passive","pointerDownEvents","pointerUpEvents","RippleRenderer","_target","_ngZone","elementOrElementRef","_isPointerDown","_activeRipples","Set","_pointerUpEventsRegistered","isBrowser","_containerElement","coerceElement","fadeInRipple","x","y","containerRect","_containerRect","getBoundingClientRect","animationConfig","animation","centered","left","width","top","height","radius","distanceToFurthestCorner","rect","distX","abs","right","distY","bottom","sqrt","offsetX","offsetY","duration","ripple","color","backgroundColor","transitionDuration","enforceStyleRecalculation","getPropertyValue","transform","rippleRef","persistent","_mostRecentTransientRipple","_runTimeoutOutsideZone","isMostRecentTransientRipple","wasActive","delete","size","rippleEl","opacity","parentNode","fadeOutAll","forEach","fadeOutAllNonPersistent","setupTriggerEvents","_triggerElement","_removeTriggerEvents","_registerEvents","handleEvent","event","_onMousedown","_onTouchStart","_onPointerUp","isFakeMousedown","isFakeMousedownFromScreenReader","isSyntheticEvent","_lastTouchStartEvent","now","rippleDisabled","clientX","clientY","rippleConfig","isFakeTouchstartFromScreenReader","touches","changedTouches","terminateOnPointerUp","fn","delay","runOutsideAngular","setTimeout","eventTypes","addEventListener","removeEventListener","MAT_RIPPLE_GLOBAL_OPTIONS","MatRipple","_elementRef","ngZone","globalOptions","_animationMode","_isInitialized","_globalOptions","_rippleRenderer","_setupTriggerEventsIfEnabled","_trigger","trigger","ngOnInit","ngOnDestroy","disabled","launch","configOrX","exportAs","[class.mat-ripple-unbounded]","ElementRef","NgZone","ANIMATION_MODULE_TYPE","propDecorators","Input","unbounded","Component","encapsulation","ViewEncapsulation","None","changeDetection","ChangeDetectionStrategy","OnPush","template","[class.mat-pseudo-checkbox-indeterminate]","[class.mat-pseudo-checkbox-checked]","[class.mat-pseudo-checkbox-disabled]","[class._mat-animation-noopable]","styles","MAT_OPTION_PARENT_COMPONENT","_MatOptgroupMixinBase","MatOptgroupBase","_uniqueOptgroupIdCounter","_MatOptgroupBase","parent","_labelId","_inert","inertGroups","label","MAT_OPTGROUP","MatOptgroup","inputs","[attr.role]","[attr.aria-disabled]","[attr.aria-labelledby]","[class.mat-optgroup-disabled]","useExisting","_uniqueIdCounter","MatOptionSelectionChange","source","isUserInput","_MatOptionBase","_element","_changeDetectorRef","_parent","group","_selected","_active","_mostRecentViewValue","id","onSelectionChange","EventEmitter","_stateChanges","multiple","disableRipple","_getHostElement","textContent","trim","select","markForCheck","_emitSelectionChangeEvent","deselect","focus","_origin","options","setActiveStyles","setInactiveStyles","getLabel","viewValue","_handleKeydown","keyCode","ENTER","SPACE","hasModifierKey","_selectViaInteraction","preventDefault","_getAriaSelected","selected","_getTabIndex","ngAfterViewChecked","complete","emit","ChangeDetectorRef","Output","MatOptionModule","MatOption","changeDetectorRef","role","[attr.tabindex]","[class.mat-selected]","[class.mat-option-multiple]","[class.mat-active]","[id]","[attr.aria-selected]","[class.mat-option-disabled]","(click)","(keydown)","CommonModule","_countGroupLabelsBeforeOption","optionIndex","optionGroups","optionsArray","toArray","groups","groupCounter","_getOptionScrollPosition","optionOffset","optionHeight","currentScrollPosition","panelHeight","mixinColor","defaultColor","_color","colorPalette","mixinDisableRipple","Mixin","_disableRipple","mixinErrorState","errorState","stateChanges","updateErrorState","oldState","newState","errorStateMatcher","_defaultErrorStateMatcher","ngControl","_parentFormGroup","_parentForm","mixinInitialized","_pendingSubscribers","initialized","Observable","subscriber","_notifySubscriber","_markInitialized","mixinTabIndex","defaultTabIndex","_tabIndex","coerceNumberProperty","setLines","lines","prefix","changes","pipe","startWith","subscribe","ɵ0","ɵangular_material_src_material_core_core_a"],"mappings":"CAAC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,iBAAkBA,QAAQ,qBAAsBA,QAAQ,qBAAsBA,QAAQ,gBAAiBA,QAAQ,mBAAoBA,QAAQ,yBAA0BA,QAAQ,QAASA,QAAQ,yBAA0BA,QAAQ,kBAAmBA,QAAQ,wCAAyCA,QAAQ,0BAClX,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,yBAA0B,CAAC,UAAW,gBAAiB,oBAAqB,oBAAqB,eAAgB,kBAAmB,wBAAyB,OAAQ,wBAAyB,iBAAkB,uCAAwC,yBAA0BJ,GAC5SA,IAAzBD,EAASA,GAAUO,MAAsBC,GAAKR,EAAOQ,IAAM,GAAIR,EAAOQ,GAAGC,SAAWT,EAAOQ,GAAGC,UAAY,GAAIT,EAAOQ,GAAGC,SAASC,KAAO,IAAKV,EAAOQ,GAAGE,KAAMV,EAAOQ,GAAGG,IAAIC,KAAMZ,EAAOQ,GAAGG,IAAIE,KAAMb,EAAOQ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AEXhG,KAAK+gB,UAAqB,MAAT/a,EAAgBvG,EAASuhB,qBAAqBhb,GAAShG,KAAK8gB,iBAEjF5Z,YAAY,EACZC,cAAc,IAEXsY,EArBe,CAsBxBlZ,IAymDN3H,EAAQqiB,SAjgCR,SAASA,GAASC,EAAOpR,EAASqR,QACf,IAAXA,IAAqBA,EAAS,OAGlCD,EAAME,QAAQC,KAAKzhB,EAAU0hB,UAAUJ,IAAQK,WAAU,SAAUnY,GAC/D,IAAIhD,EAASgD,EAAGhD,OAChByJ,EAASC,EAASqR,EAAS,WAAW,GACtCtR,EAASC,EAASqR,EAAS,WAAW,GACtCtR,EAASC,EAASqR,EAAS,eAAe,GAC3B,IAAX/a,GAA2B,IAAXA,EAChByJ,EAASC,EAASqR,EAAS,IAAM/a,EAAS,SAAS,GAE9CA,EAAS,GACdyJ,EAASC,EAASqR,EAAS,eAAe,OAq/BtDviB,EAAQ4iB,GAAKvS,EACbrQ,EAAQ6iB,2CAA6C3gB,EAErDwD,OAAOwC,eAAelI,EAAS,aAAc,CAAEoH,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/a11y'), require('@angular/cdk/bidi'), require('@angular/cdk'), require('@angular/common'), require('@angular/cdk/coercion'), require('rxjs'), require('@angular/cdk/platform'), require('rxjs/operators'), require('@angular/platform-browser/animations'), require('@angular/cdk/keycodes')) :\n typeof define === 'function' && define.amd ? define('@angular/material/core', ['exports', '@angular/core', '@angular/cdk/a11y', '@angular/cdk/bidi', '@angular/cdk', '@angular/common', '@angular/cdk/coercion', 'rxjs', '@angular/cdk/platform', 'rxjs/operators', '@angular/platform-browser/animations', '@angular/cdk/keycodes'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.core = {}), global.ng.core, global.ng.cdk.a11y, global.ng.cdk.bidi, global.ng.cdk, global.ng.common, global.ng.cdk.coercion, global.rxjs, global.ng.cdk.platform, global.rxjs.operators, global.ng.platformBrowser.animations, global.ng.cdk.keycodes));\n}(this, (function (exports, i0, a11y, bidi, cdk, common, coercion, rxjs, platform, operators, animations, keycodes) { 'use strict';\n\n /**\n * @license\n * Copyright Google LLC 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 */\n /** Current version of Angular Material. */\n var VERSION = new i0.Version('11.2.13');\n\n /**\n * @license\n * Copyright Google LLC 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 */\n /** @docs-private */\n var AnimationCurves = /** @class */ (function () {\n function AnimationCurves() {\n }\n return 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 /** @docs-private */\n var AnimationDurations = /** @class */ (function () {\n function AnimationDurations() {\n }\n return AnimationDurations;\n }());\n AnimationDurations.COMPLEX = '375ms';\n AnimationDurations.ENTERING = '225ms';\n AnimationDurations.EXITING = '195ms';\n\n /**\n * @license\n * Copyright Google LLC 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 */\n // Private version constant to circumvent test/build issues,\n // i.e. avoid core to depend on the @angular/material primary entry-point\n // Can be removed once the Material primary entry-point no longer\n // re-exports all secondary entry-points\n var VERSION$1 = new i0.Version('11.2.13');\n /** @docs-private */\n function MATERIAL_SANITY_CHECKS_FACTORY() {\n return true;\n }\n /** Injection token that configures whether the Material sanity checks are enabled. */\n var MATERIAL_SANITY_CHECKS = new i0.InjectionToken('mat-sanity-checks', {\n providedIn: 'root',\n factory: MATERIAL_SANITY_CHECKS_FACTORY,\n });\n /**\n * Module that captures anything that should be loaded and/or run for *all* Angular Material\n * components. This includes Bidi, etc.\n *\n * This module should be imported to each top-level component module (e.g., MatTabsModule).\n */\n var MatCommonModule = /** @class */ (function () {\n function MatCommonModule(highContrastModeDetector, sanityChecks, document) {\n /** Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype). */\n this._hasDoneGlobalChecks = false;\n this._document = document;\n // While A11yModule also does this, we repeat it here to avoid importing A11yModule\n // in MatCommonModule.\n highContrastModeDetector._applyBodyHighContrastModeCssClasses();\n // Note that `_sanityChecks` is typed to `any`, because AoT\n // throws an error if we use the `SanityChecks` type directly.\n this._sanityChecks = sanityChecks;\n if (!this._hasDoneGlobalChecks) {\n this._checkDoctypeIsDefined();\n this._checkThemeIsPresent();\n this._checkCdkVersionMatch();\n this._hasDoneGlobalChecks = true;\n }\n }\n /** Use defaultView of injected document if available or fallback to global window reference */\n MatCommonModule.prototype._getWindow = function () {\n var win = this._document.defaultView || window;\n return typeof win === 'object' && win ? win : null;\n };\n /** Whether any sanity checks are enabled. */\n MatCommonModule.prototype._checksAreEnabled = function () {\n // TODO(crisbeto): we can't use `ngDevMode` here yet, because ViewEngine apps might not support\n // it. Since these checks can have performance implications and they aren't tree shakeable\n // in their current form, we can leave the `isDevMode` check in for now.\n // tslint:disable-next-line:ban\n return i0.isDevMode() && !this._isTestEnv();\n };\n /** Whether the code is running in tests. */\n MatCommonModule.prototype._isTestEnv = function () {\n var window = this._getWindow();\n return window && (window.__karma__ || window.jasmine);\n };\n MatCommonModule.prototype._checkDoctypeIsDefined = function () {\n var isEnabled = this._checksAreEnabled() &&\n (this._sanityChecks === true || this._sanityChecks.doctype);\n if (isEnabled && !this._document.doctype) {\n console.warn('Current document does not have a doctype. This may cause ' +\n 'some Angular Material components not to behave as expected.');\n }\n };\n MatCommonModule.prototype._checkThemeIsPresent = function () {\n // We need to assert that the `body` is defined, because these checks run very early\n // and the `body` won't be defined if the consumer put their scripts in the `head`.\n var isDisabled = !this._checksAreEnabled() ||\n (this._sanityChecks === false || !this._sanityChecks.theme);\n if (isDisabled || !this._document.body || typeof getComputedStyle !== 'function') {\n return;\n }\n var testElement = this._document.createElement('div');\n testElement.classList.add('mat-theme-loaded-marker');\n this._document.body.appendChild(testElement);\n var computedStyle = getComputedStyle(testElement);\n // In some situations the computed style of the test element can be null. For example in\n // Firefox, the computed style is null if an application is running inside of a hidden iframe.\n // See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n if (computedStyle && computedStyle.display !== 'none') {\n console.warn('Could not find Angular Material core theme. Most Material ' +\n 'components may not work as expected. For more info refer ' +\n 'to the theming guide: https://material.angular.io/guide/theming');\n }\n this._document.body.removeChild(testElement);\n };\n /** Checks whether the material version matches the cdk version */\n MatCommonModule.prototype._checkCdkVersionMatch = function () {\n var isEnabled = this._checksAreEnabled() &&\n (this._sanityChecks === true || this._sanityChecks.version);\n if (isEnabled && VERSION$1.full !== cdk.VERSION.full) {\n console.warn('The Angular Material version (' + VERSION$1.full + ') does not match ' +\n 'the Angular CDK version (' + cdk.VERSION.full + ').\\n' +\n 'Please ensure the versions of these two packages exactly match.');\n }\n };\n return MatCommonModule;\n }());\n MatCommonModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [bidi.BidiModule],\n exports: [bidi.BidiModule],\n },] }\n ];\n MatCommonModule.ctorParameters = function () { return [\n { type: a11y.HighContrastModeDetector },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MATERIAL_SANITY_CHECKS,] }] },\n { type: undefined, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] }\n ]; };\n\n /*! *****************************************************************************\n Copyright (c) Microsoft Corporation.\n\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or without fee is hereby granted.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n PERFORMANCE OF THIS SOFTWARE.\n ***************************************************************************** */\n /* global Reflect, Promise */\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b)\n if (Object.prototype.hasOwnProperty.call(b, p))\n d[p] = b[p]; };\n return extendStatics(d, b);\n };\n function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n }\n var __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s)\n if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };\n function __rest(s, e) {\n var t = {};\n for (var p in s)\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n }\n function __decorate(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\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n 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 }\n function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); };\n }\n function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(metadataKey, metadataValue);\n }\n function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try {\n step(generator.next(value));\n }\n catch (e) {\n reject(e);\n } }\n function rejected(value) { try {\n step(generator[\"throw\"](value));\n }\n catch (e) {\n reject(e);\n } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n }\n function __generator(thisArg, body) {\n var _ = { label: 0, sent: function () { if (t[0] & 1)\n throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f)\n throw new TypeError(\"Generator is already executing.\");\n while (_)\n try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)\n return t;\n if (y = 0, t)\n op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return { value: op[1], done: false };\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2])\n _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n }\n catch (e) {\n op = [6, e];\n y = 0;\n }\n finally {\n f = t = 0;\n }\n if (op[0] & 5)\n throw op[1];\n return { value: op[0] ? op[1] : void 0, done: true };\n }\n }\n var __createBinding = Object.create ? (function (o, m, k, k2) {\n if (k2 === undefined)\n k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });\n }) : (function (o, m, k, k2) {\n if (k2 === undefined)\n k2 = k;\n o[k2] = m[k];\n });\n function __exportStar(m, o) {\n for (var p in m)\n if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p))\n __createBinding(o, m, p);\n }\n function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m)\n return m.call(o);\n if (o && typeof o.length === \"number\")\n return {\n next: function () {\n if (o && i >= o.length)\n o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n }\n function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m)\n return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done)\n ar.push(r.value);\n }\n catch (error) {\n e = { error: error };\n }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"]))\n m.call(i);\n }\n finally {\n if (e)\n throw e.error;\n }\n }\n return ar;\n }\n /** @deprecated */\n function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n }\n /** @deprecated */\n function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++)\n s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n }\n function __spreadArray(to, from) {\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\n to[j] = from[i];\n return to;\n }\n function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n }\n function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator)\n throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n])\n i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try {\n step(g[n](v));\n }\n catch (e) {\n settle(q[0][3], e);\n } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length)\n resume(q[0][0], q[0][1]); }\n }\n function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\n }\n function __asyncValues(o) {\n if (!Symbol.asyncIterator)\n throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }\n }\n function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) {\n Object.defineProperty(cooked, \"raw\", { value: raw });\n }\n else {\n cooked.raw = raw;\n }\n return cooked;\n }\n ;\n var __setModuleDefault = Object.create ? (function (o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n }) : function (o, v) {\n o[\"default\"] = v;\n };\n function __importStar(mod) {\n if (mod && mod.__esModule)\n return mod;\n var result = {};\n if (mod != null)\n for (var k in mod)\n if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k))\n __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n }\n function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n }\n function __classPrivateFieldGet(receiver, privateMap) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to get private field on non-instance\");\n }\n return privateMap.get(receiver);\n }\n function __classPrivateFieldSet(receiver, privateMap, value) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to set private field on non-instance\");\n }\n privateMap.set(receiver, value);\n return value;\n }\n\n /** Mixin to augment a directive with a `disabled` property. */\n function mixinDisabled(base) {\n return /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _this = _super.apply(this, __spread(args)) || this;\n _this._disabled = false;\n return _this;\n }\n Object.defineProperty(class_1.prototype, \"disabled\", {\n get: function () { return this._disabled; },\n set: function (value) { this._disabled = coercion.coerceBooleanProperty(value); },\n enumerable: false,\n configurable: true\n });\n return class_1;\n }(base));\n }\n\n /**\n * @license\n * Copyright Google LLC 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 */\n /** Mixin to augment a directive with a `color` property. */\n function mixinColor(base, defaultColor) {\n return /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _this = _super.apply(this, __spread(args)) || this;\n _this.defaultColor = defaultColor;\n // Set the default color that can be specified from the mixin.\n _this.color = defaultColor;\n return _this;\n }\n Object.defineProperty(class_1.prototype, \"color\", {\n get: function () { return this._color; },\n set: function (value) {\n var colorPalette = value || this.defaultColor;\n if (colorPalette !== this._color) {\n if (this._color) {\n this._elementRef.nativeElement.classList.remove(\"mat-\" + this._color);\n }\n if (colorPalette) {\n this._elementRef.nativeElement.classList.add(\"mat-\" + colorPalette);\n }\n this._color = colorPalette;\n }\n },\n enumerable: false,\n configurable: true\n });\n return class_1;\n }(base));\n }\n\n /** Mixin to augment a directive with a `disableRipple` property. */\n function mixinDisableRipple(base) {\n var Mixin = /** @class */ (function (_super) {\n __extends(Mixin, _super);\n function Mixin() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _this = _super.apply(this, __spread(args)) || this;\n _this._disableRipple = false;\n return _this;\n }\n Object.defineProperty(Mixin.prototype, \"disableRipple\", {\n /** Whether the ripple effect is disabled or not. */\n get: function () { return this._disableRipple; },\n set: function (value) { this._disableRipple = coercion.coerceBooleanProperty(value); },\n enumerable: false,\n configurable: true\n });\n return Mixin;\n }(base));\n // Since we don't directly extend from `base` with it's original types, and we instruct\n // TypeScript that `T` actually is instantiatable through `new`, the types don't overlap.\n // This is a limitation in TS as abstract classes cannot be typed properly dynamically.\n return Mixin;\n }\n\n /** Mixin to augment a directive with a `tabIndex` property. */\n function mixinTabIndex(base, defaultTabIndex) {\n if (defaultTabIndex === void 0) { defaultTabIndex = 0; }\n // Note: We cast `base` to `unknown` and then `Constructor`. It could be an abstract class,\n // but given we `extend` it from another class, we can assume a constructor being accessible.\n var Mixin = /** @class */ (function (_super) {\n __extends(Mixin, _super);\n function Mixin() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _this = _super.apply(this, __spread(args)) || this;\n _this._tabIndex = defaultTabIndex;\n _this.defaultTabIndex = defaultTabIndex;\n return _this;\n }\n Object.defineProperty(Mixin.prototype, \"tabIndex\", {\n get: function () { return this.disabled ? -1 : this._tabIndex; },\n set: function (value) {\n // If the specified tabIndex value is null or undefined, fall back to the default value.\n this._tabIndex = value != null ? coercion.coerceNumberProperty(value) : this.defaultTabIndex;\n },\n enumerable: false,\n configurable: true\n });\n return Mixin;\n }(base));\n // Since we don't directly extend from `base` with it's original types, and we instruct\n // TypeScript that `T` actually is instantiatable through `new`, the types don't overlap.\n // This is a limitation in TS as abstract classes cannot be typed properly dynamically.\n return Mixin;\n }\n\n /**\n * Mixin to augment a directive with updateErrorState method.\n * For component with `errorState` and need to update `errorState`.\n */\n function mixinErrorState(base) {\n return /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _this = _super.apply(this, __spread(args)) || this;\n /** Whether the component is in an error state. */\n _this.errorState = false;\n /**\n * Stream that emits whenever the state of the input changes such that the wrapping\n * `MatFormField` needs to run change detection.\n */\n _this.stateChanges = new rxjs.Subject();\n return _this;\n }\n class_1.prototype.updateErrorState = function () {\n var oldState = this.errorState;\n var parent = this._parentFormGroup || this._parentForm;\n var matcher = this.errorStateMatcher || this._defaultErrorStateMatcher;\n var control = this.ngControl ? this.ngControl.control : null;\n var newState = matcher.isErrorState(control, parent);\n if (newState !== oldState) {\n this.errorState = newState;\n this.stateChanges.next();\n }\n };\n return class_1;\n }(base));\n }\n\n /** Mixin to augment a directive with an initialized property that will emits when ngOnInit ends. */\n function mixinInitialized(base) {\n return /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _this = _super.apply(this, __spread(args)) || this;\n /** Whether this directive has been marked as initialized. */\n _this._isInitialized = false;\n /**\n * List of subscribers that subscribed before the directive was initialized. Should be notified\n * during _markInitialized. Set to null after pending subscribers are notified, and should\n * not expect to be populated after.\n */\n _this._pendingSubscribers = [];\n /**\n * Observable stream that emits when the directive initializes. If already initialized, the\n * subscriber is stored to be notified once _markInitialized is called.\n */\n _this.initialized = new rxjs.Observable(function (subscriber) {\n // If initialized, immediately notify the subscriber. Otherwise store the subscriber to notify\n // when _markInitialized is called.\n if (_this._isInitialized) {\n _this._notifySubscriber(subscriber);\n }\n else {\n _this._pendingSubscribers.push(subscriber);\n }\n });\n return _this;\n }\n /**\n * Marks the state as initialized and notifies pending subscribers. Should be called at the end\n * of ngOnInit.\n * @docs-private\n */\n class_1.prototype._markInitialized = function () {\n if (this._isInitialized && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('This directive has already been marked as initialized and ' +\n 'should not be called twice.');\n }\n this._isInitialized = true;\n this._pendingSubscribers.forEach(this._notifySubscriber);\n this._pendingSubscribers = null;\n };\n /** Emits and completes the subscriber stream (should only emit once). */\n class_1.prototype._notifySubscriber = function (subscriber) {\n subscriber.next();\n subscriber.complete();\n };\n return class_1;\n }(base));\n }\n\n /**\n * @license\n * Copyright Google LLC 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 */\n\n /**\n * @license\n * Copyright Google LLC 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 */\n /** InjectionToken for datepicker that can be used to override default locale code. */\n var MAT_DATE_LOCALE = new i0.InjectionToken('MAT_DATE_LOCALE', {\n providedIn: 'root',\n factory: MAT_DATE_LOCALE_FACTORY,\n });\n /** @docs-private */\n function MAT_DATE_LOCALE_FACTORY() {\n return i0.inject(i0.LOCALE_ID);\n }\n /** Adapts type `D` to be usable as a date by cdk-based components that work with dates. */\n var DateAdapter = /** @class */ (function () {\n function DateAdapter() {\n this._localeChanges = new rxjs.Subject();\n /** A stream that emits when the locale changes. */\n this.localeChanges = this._localeChanges;\n }\n /**\n * Given a potential date object, returns that same date object if it is\n * a valid date, or `null` if it's not a valid date.\n * @param obj The object to check.\n * @returns A date or `null`.\n */\n DateAdapter.prototype.getValidDateOrNull = function (obj) {\n return this.isDateInstance(obj) && this.isValid(obj) ? obj : null;\n };\n /**\n * Attempts to deserialize a value to a valid date object. This is different from parsing in that\n * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601\n * string). The default implementation does not allow any deserialization, it simply checks that\n * the given value is already a valid date object or null. The `<mat-datepicker>` will call this\n * method on all of its `@Input()` properties that accept dates. It is therefore possible to\n * support passing values from your backend directly to these properties by overriding this method\n * to also deserialize the format used by your backend.\n * @param value The value to be deserialized into a date object.\n * @returns The deserialized date object, either a valid date, null if the value can be\n * deserialized into a null date (e.g. the empty string), or an invalid date.\n */\n DateAdapter.prototype.deserialize = function (value) {\n if (value == null || this.isDateInstance(value) && this.isValid(value)) {\n return value;\n }\n return this.invalid();\n };\n /**\n * Sets the locale used for all dates.\n * @param locale The new locale.\n */\n DateAdapter.prototype.setLocale = function (locale) {\n this.locale = locale;\n this._localeChanges.next();\n };\n /**\n * Compares two dates.\n * @param first The first date to compare.\n * @param second The second date to compare.\n * @returns 0 if the dates are equal, a number less than 0 if the first date is earlier,\n * a number greater than 0 if the first date is later.\n */\n DateAdapter.prototype.compareDate = function (first, second) {\n return this.getYear(first) - this.getYear(second) ||\n this.getMonth(first) - this.getMonth(second) ||\n this.getDate(first) - this.getDate(second);\n };\n /**\n * Checks if two dates are equal.\n * @param first The first date to check.\n * @param second The second date to check.\n * @returns Whether the two dates are equal.\n * Null dates are considered equal to other null dates.\n */\n DateAdapter.prototype.sameDate = function (first, second) {\n if (first && second) {\n var firstValid = this.isValid(first);\n var secondValid = this.isValid(second);\n if (firstValid && secondValid) {\n return !this.compareDate(first, second);\n }\n return firstValid == secondValid;\n }\n return first == second;\n };\n /**\n * Clamp the given date between min and max dates.\n * @param date The date to clamp.\n * @param min The minimum value to allow. If null or omitted no min is enforced.\n * @param max The maximum value to allow. If null or omitted no max is enforced.\n * @returns `min` if `date` is less than `min`, `max` if date is greater than `max`,\n * otherwise `date`.\n */\n DateAdapter.prototype.clampDate = function (date, min, max) {\n if (min && this.compareDate(date, min) < 0) {\n return min;\n }\n if (max && this.compareDate(date, max) > 0) {\n return max;\n }\n return date;\n };\n return DateAdapter;\n }());\n\n /**\n * @license\n * Copyright Google LLC 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 */\n var MAT_DATE_FORMATS = new i0.InjectionToken('mat-date-formats');\n\n // TODO(mmalerba): Remove when we no longer support safari 9.\n /** Whether the browser supports the Intl API. */\n var SUPPORTS_INTL_API;\n // We need a try/catch around the reference to `Intl`, because accessing it in some cases can\n // cause IE to throw. These cases are tied to particular versions of Windows and can happen if\n // the consumer is providing a polyfilled `Map`. See:\n // https://github.com/Microsoft/ChakraCore/issues/3189\n // https://github.com/angular/components/issues/15687\n try {\n SUPPORTS_INTL_API = typeof Intl != 'undefined';\n }\n catch (_a) {\n SUPPORTS_INTL_API = false;\n }\n /** The default month names to use if Intl API is not available. */\n var DEFAULT_MONTH_NAMES = {\n 'long': [\n 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',\n 'October', 'November', 'December'\n ],\n 'short': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n 'narrow': ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D']\n };\n var ɵ0 = function (i) { return String(i + 1); };\n /** The default date names to use if Intl API is not available. */\n var DEFAULT_DATE_NAMES = range(31, ɵ0);\n /** The default day of the week names to use if Intl API is not available. */\n var DEFAULT_DAY_OF_WEEK_NAMES = {\n 'long': ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n 'short': ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n 'narrow': ['S', 'M', 'T', 'W', 'T', 'F', 'S']\n };\n /**\n * Matches strings that have the form of a valid RFC 3339 string\n * (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date\n * because the regex will match strings an with out of bounds month, date, etc.\n */\n var ISO_8601_REGEX = /^\\d{4}-\\d{2}-\\d{2}(?:T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|(?:(?:\\+|-)\\d{2}:\\d{2}))?)?$/;\n /** Creates an array and fills it with values. */\n function range(length, valueFunction) {\n var valuesArray = Array(length);\n for (var i = 0; i < length; i++) {\n valuesArray[i] = valueFunction(i);\n }\n return valuesArray;\n }\n /** Adapts the native JS Date for use with cdk-based components that work with dates. */\n var NativeDateAdapter = /** @class */ (function (_super) {\n __extends(NativeDateAdapter, _super);\n function NativeDateAdapter(matDateLocale, platform) {\n var _this = _super.call(this) || this;\n /**\n * Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.\n * Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off\n * the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`\n * will produce `'8/13/1800'`.\n *\n * TODO(mmalerba): drop this variable. It's not being used in the code right now. We're now\n * getting the string representation of a Date object from its utc representation. We're keeping\n * it here for sometime, just for precaution, in case we decide to revert some of these changes\n * though.\n */\n _this.useUtcForDisplay = true;\n _super.prototype.setLocale.call(_this, matDateLocale);\n // IE does its own time zone correction, so we disable this on IE.\n _this.useUtcForDisplay = !platform.TRIDENT;\n _this._clampDate = platform.TRIDENT || platform.EDGE;\n return _this;\n }\n NativeDateAdapter.prototype.getYear = function (date) {\n return date.getFullYear();\n };\n NativeDateAdapter.prototype.getMonth = function (date) {\n return date.getMonth();\n };\n NativeDateAdapter.prototype.getDate = function (date) {\n return date.getDate();\n };\n NativeDateAdapter.prototype.getDayOfWeek = function (date) {\n return date.getDay();\n };\n NativeDateAdapter.prototype.getMonthNames = function (style) {\n var _this = this;\n if (SUPPORTS_INTL_API) {\n var dtf_1 = new Intl.DateTimeFormat(this.locale, { month: style, timeZone: 'utc' });\n return range(12, function (i) { return _this._stripDirectionalityCharacters(_this._format(dtf_1, new Date(2017, i, 1))); });\n }\n return DEFAULT_MONTH_NAMES[style];\n };\n NativeDateAdapter.prototype.getDateNames = function () {\n var _this = this;\n if (SUPPORTS_INTL_API) {\n var dtf_2 = new Intl.DateTimeFormat(this.locale, { day: 'numeric', timeZone: 'utc' });\n return range(31, function (i) { return _this._stripDirectionalityCharacters(_this._format(dtf_2, new Date(2017, 0, i + 1))); });\n }\n return DEFAULT_DATE_NAMES;\n };\n NativeDateAdapter.prototype.getDayOfWeekNames = function (style) {\n var _this = this;\n if (SUPPORTS_INTL_API) {\n var dtf_3 = new Intl.DateTimeFormat(this.locale, { weekday: style, timeZone: 'utc' });\n return range(7, function (i) { return _this._stripDirectionalityCharacters(_this._format(dtf_3, new Date(2017, 0, i + 1))); });\n }\n return DEFAULT_DAY_OF_WEEK_NAMES[style];\n };\n NativeDateAdapter.prototype.getYearName = function (date) {\n if (SUPPORTS_INTL_API) {\n var dtf = new Intl.DateTimeFormat(this.locale, { year: 'numeric', timeZone: 'utc' });\n return this._stripDirectionalityCharacters(this._format(dtf, date));\n }\n return String(this.getYear(date));\n };\n NativeDateAdapter.prototype.getFirstDayOfWeek = function () {\n // We can't tell using native JS Date what the first day of the week is, we default to Sunday.\n return 0;\n };\n NativeDateAdapter.prototype.getNumDaysInMonth = function (date) {\n return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0));\n };\n NativeDateAdapter.prototype.clone = function (date) {\n return new Date(date.getTime());\n };\n NativeDateAdapter.prototype.createDate = function (year, month, date) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Check for invalid month and date (except upper bound on date which we have to check after\n // creating the Date).\n if (month < 0 || month > 11) {\n throw Error(\"Invalid month index \\\"\" + month + \"\\\". Month index has to be between 0 and 11.\");\n }\n if (date < 1) {\n throw Error(\"Invalid date \\\"\" + date + \"\\\". Date has to be greater than 0.\");\n }\n }\n var result = this._createDateWithOverflow(year, month, date);\n // Check that the date wasn't above the upper bound for the month, causing the month to overflow\n if (result.getMonth() != month && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(\"Invalid date \\\"\" + date + \"\\\" for month with index \\\"\" + month + \"\\\".\");\n }\n return result;\n };\n NativeDateAdapter.prototype.today = function () {\n return new Date();\n };\n NativeDateAdapter.prototype.parse = function (value) {\n // We have no way using the native JS Date to set the parse format or locale, so we ignore these\n // parameters.\n if (typeof value == 'number') {\n return new Date(value);\n }\n return value ? new Date(Date.parse(value)) : null;\n };\n NativeDateAdapter.prototype.format = function (date, displayFormat) {\n if (!this.isValid(date)) {\n throw Error('NativeDateAdapter: Cannot format invalid date.');\n }\n if (SUPPORTS_INTL_API) {\n // On IE and Edge the i18n API will throw a hard error that can crash the entire app\n // if we attempt to format a date whose year is less than 1 or greater than 9999.\n if (this._clampDate && (date.getFullYear() < 1 || date.getFullYear() > 9999)) {\n date = this.clone(date);\n date.setFullYear(Math.max(1, Math.min(9999, date.getFullYear())));\n }\n displayFormat = Object.assign(Object.assign({}, displayFormat), { timeZone: 'utc' });\n var dtf = new Intl.DateTimeFormat(this.locale, displayFormat);\n return this._stripDirectionalityCharacters(this._format(dtf, date));\n }\n return this._stripDirectionalityCharacters(date.toDateString());\n };\n NativeDateAdapter.prototype.addCalendarYears = function (date, years) {\n return this.addCalendarMonths(date, years * 12);\n };\n NativeDateAdapter.prototype.addCalendarMonths = function (date, months) {\n var newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date));\n // It's possible to wind up in the wrong month if the original month has more days than the new\n // month. In this case we want to go to the last day of the desired month.\n // Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't\n // guarantee this.\n if (this.getMonth(newDate) != ((this.getMonth(date) + months) % 12 + 12) % 12) {\n newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0);\n }\n return newDate;\n };\n NativeDateAdapter.prototype.addCalendarDays = function (date, days) {\n return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days);\n };\n NativeDateAdapter.prototype.toIso8601 = function (date) {\n return [\n date.getUTCFullYear(),\n this._2digit(date.getUTCMonth() + 1),\n this._2digit(date.getUTCDate())\n ].join('-');\n };\n /**\n * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings\n * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an\n * invalid date for all other values.\n */\n NativeDateAdapter.prototype.deserialize = function (value) {\n if (typeof value === 'string') {\n if (!value) {\n return null;\n }\n // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the\n // string is the right format first.\n if (ISO_8601_REGEX.test(value)) {\n var date = new Date(value);\n if (this.isValid(date)) {\n return date;\n }\n }\n }\n return _super.prototype.deserialize.call(this, value);\n };\n NativeDateAdapter.prototype.isDateInstance = function (obj) {\n return obj instanceof Date;\n };\n NativeDateAdapter.prototype.isValid = function (date) {\n return !isNaN(date.getTime());\n };\n NativeDateAdapter.prototype.invalid = function () {\n return new Date(NaN);\n };\n /** Creates a date but allows the month and date to overflow. */\n NativeDateAdapter.prototype._createDateWithOverflow = function (year, month, date) {\n // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.\n // To work around this we use `setFullYear` and `setHours` instead.\n var d = new Date();\n d.setFullYear(year, month, date);\n d.setHours(0, 0, 0, 0);\n return d;\n };\n /**\n * Pads a number to make it two digits.\n * @param n The number to pad.\n * @returns The padded number.\n */\n NativeDateAdapter.prototype._2digit = function (n) {\n return ('00' + n).slice(-2);\n };\n /**\n * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while\n * other browsers do not. We remove them to make output consistent and because they interfere with\n * date parsing.\n * @param str The string to strip direction characters from.\n * @returns The stripped string.\n */\n NativeDateAdapter.prototype._stripDirectionalityCharacters = function (str) {\n return str.replace(/[\\u200e\\u200f]/g, '');\n };\n /**\n * When converting Date object to string, javascript built-in functions may return wrong\n * results because it applies its internal DST rules. The DST rules around the world change\n * very frequently, and the current valid rule is not always valid in previous years though.\n * We work around this problem building a new Date object which has its internal UTC\n * representation with the local date and time.\n * @param dtf Intl.DateTimeFormat object, containg the desired string format. It must have\n * timeZone set to 'utc' to work fine.\n * @param date Date from which we want to get the string representation according to dtf\n * @returns A Date object with its UTC representation based on the passed in date info\n */\n NativeDateAdapter.prototype._format = function (dtf, date) {\n // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.\n // To work around this we use `setUTCFullYear` and `setUTCHours` instead.\n var d = new Date();\n d.setUTCFullYear(date.getFullYear(), date.getMonth(), date.getDate());\n d.setUTCHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());\n return dtf.format(d);\n };\n return NativeDateAdapter;\n }(DateAdapter));\n NativeDateAdapter.decorators = [\n { type: i0.Injectable }\n ];\n NativeDateAdapter.ctorParameters = function () { return [\n { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_DATE_LOCALE,] }] },\n { type: platform.Platform }\n ]; };\n\n /**\n * @license\n * Copyright Google LLC 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 */\n var MAT_NATIVE_DATE_FORMATS = {\n parse: {\n dateInput: null,\n },\n display: {\n dateInput: { year: 'numeric', month: 'numeric', day: 'numeric' },\n monthYearLabel: { year: 'numeric', month: 'short' },\n dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' },\n monthYearA11yLabel: { year: 'numeric', month: 'long' },\n }\n };\n\n /**\n * @license\n * Copyright Google LLC 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 */\n var NativeDateModule = /** @class */ (function () {\n function NativeDateModule() {\n }\n return NativeDateModule;\n }());\n NativeDateModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [platform.PlatformModule],\n providers: [\n { provide: DateAdapter, useClass: NativeDateAdapter },\n ],\n },] }\n ];\n var ɵ0$1 = MAT_NATIVE_DATE_FORMATS;\n var MatNativeDateModule = /** @class */ (function () {\n function MatNativeDateModule() {\n }\n return MatNativeDateModule;\n }());\n MatNativeDateModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [NativeDateModule],\n providers: [{ provide: MAT_DATE_FORMATS, useValue: ɵ0$1 }],\n },] }\n ];\n\n /**\n * @license\n * Copyright Google LLC 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 */\n /** Error state matcher that matches when a control is invalid and dirty. */\n var ShowOnDirtyErrorStateMatcher = /** @class */ (function () {\n function ShowOnDirtyErrorStateMatcher() {\n }\n ShowOnDirtyErrorStateMatcher.prototype.isErrorState = function (control, form) {\n return !!(control && control.invalid && (control.dirty || (form && form.submitted)));\n };\n return ShowOnDirtyErrorStateMatcher;\n }());\n ShowOnDirtyErrorStateMatcher.decorators = [\n { type: i0.Injectable }\n ];\n /** Provider that defines how form controls behave with regards to displaying error messages. */\n var ErrorStateMatcher = /** @class */ (function () {\n function ErrorStateMatcher() {\n }\n ErrorStateMatcher.prototype.isErrorState = function (control, form) {\n return !!(control && control.invalid && (control.touched || (form && form.submitted)));\n };\n return ErrorStateMatcher;\n }());\n ErrorStateMatcher.ɵprov = i0.ɵɵdefineInjectable({ factory: function ErrorStateMatcher_Factory() { return new ErrorStateMatcher(); }, token: ErrorStateMatcher, providedIn: \"root\" });\n ErrorStateMatcher.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n\n /**\n * @license\n * Copyright Google LLC 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 */\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(MatLine) query, then\n * counted by checking the query list's length.\n */\n var MatLine = /** @class */ (function () {\n function MatLine() {\n }\n return MatLine;\n }());\n MatLine.decorators = [\n { type: i0.Directive, args: [{\n selector: '[mat-line], [matLine]',\n host: { 'class': 'mat-line' }\n },] }\n ];\n /**\n * Helper that takes a query list of lines and sets the correct class on the host.\n * @docs-private\n */\n function setLines(lines, element, prefix) {\n if (prefix === void 0) { prefix = 'mat'; }\n // Note: doesn't need to unsubscribe, because `changes`\n // gets completed by Angular when the view is destroyed.\n lines.changes.pipe(operators.startWith(lines)).subscribe(function (_a) {\n var length = _a.length;\n setClass(element, prefix + \"-2-line\", false);\n setClass(element, prefix + \"-3-line\", false);\n setClass(element, prefix + \"-multi-line\", false);\n if (length === 2 || length === 3) {\n setClass(element, prefix + \"-\" + length + \"-line\", true);\n }\n else if (length > 3) {\n setClass(element, prefix + \"-multi-line\", true);\n }\n });\n }\n /** Adds or removes a class from an element. */\n function setClass(element, className, isAdd) {\n var classList = element.nativeElement.classList;\n isAdd ? classList.add(className) : classList.remove(className);\n }\n var MatLineModule = /** @class */ (function () {\n function MatLineModule() {\n }\n return MatLineModule;\n }());\n MatLineModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [MatCommonModule],\n exports: [MatLine, MatCommonModule],\n declarations: [MatLine],\n },] }\n ];\n\n /**\n * @license\n * Copyright Google LLC 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 */\n /**\n * Reference to a previously launched ripple element.\n */\n var RippleRef = /** @class */ (function () {\n function RippleRef(_renderer, \n /** Reference to the ripple HTML element. */\n element, \n /** Ripple configuration used for the ripple. */\n config) {\n this._renderer = _renderer;\n this.element = element;\n this.config = config;\n /** Current state of the ripple. */\n this.state = 3 /* HIDDEN */;\n }\n /** Fades out the ripple element. */\n RippleRef.prototype.fadeOut = function () {\n this._renderer.fadeOutRipple(this);\n };\n return RippleRef;\n }());\n\n /**\n * Default ripple animation configuration for ripples without an explicit\n * animation config specified.\n */\n var defaultRippleAnimationConfig = {\n enterDuration: 450,\n exitDuration: 400\n };\n /**\n * Timeout for ignoring mouse events. Mouse events will be temporary ignored after touch\n * events to avoid synthetic mouse events.\n */\n var ignoreMouseEventsTimeout = 800;\n /** Options that apply to all the event listeners that are bound by the ripple renderer. */\n var passiveEventOptions = platform.normalizePassiveListenerOptions({ passive: true });\n /** Events that signal that the pointer is down. */\n var pointerDownEvents = ['mousedown', 'touchstart'];\n /** Events that signal that the pointer is up. */\n var pointerUpEvents = ['mouseup', 'mouseleave', 'touchend', 'touchcancel'];\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 */\n var RippleRenderer = /** @class */ (function () {\n function RippleRenderer(_target, _ngZone, elementOrElementRef, platform) {\n this._target = _target;\n this._ngZone = _ngZone;\n /** Whether the pointer is currently down or not. */\n this._isPointerDown = false;\n /** Set of currently active ripple references. */\n this._activeRipples = new Set();\n /** Whether pointer-up event listeners have been registered. */\n this._pointerUpEventsRegistered = false;\n // Only do anything if we're on the browser.\n if (platform.isBrowser) {\n this._containerElement = coercion.coerceElement(elementOrElementRef);\n }\n }\n /**\n * Fades in a ripple at the given coordinates.\n * @param x Coordinate within the element, along the X axis at which to start the ripple.\n * @param y Coordinate within the element, along the Y axis at which to start the ripple.\n * @param config Extra ripple options.\n */\n RippleRenderer.prototype.fadeInRipple = function (x, y, config) {\n var _this = this;\n if (config === void 0) { config = {}; }\n var containerRect = this._containerRect =\n this._containerRect || this._containerElement.getBoundingClientRect();\n var animationConfig = Object.assign(Object.assign({}, defaultRippleAnimationConfig), config.animation);\n if (config.centered) {\n x = containerRect.left + containerRect.width / 2;\n y = containerRect.top + containerRect.height / 2;\n }\n var radius = config.radius || distanceToFurthestCorner(x, y, containerRect);\n var offsetX = x - containerRect.left;\n var offsetY = y - containerRect.top;\n var duration = animationConfig.enterDuration;\n var ripple = document.createElement('div');\n ripple.classList.add('mat-ripple-element');\n ripple.style.left = offsetX - radius + \"px\";\n ripple.style.top = offsetY - radius + \"px\";\n ripple.style.height = radius * 2 + \"px\";\n ripple.style.width = radius * 2 + \"px\";\n // If a custom color has been specified, set it as inline style. If no color is\n // set, the default color will be applied through the ripple theme styles.\n if (config.color != null) {\n ripple.style.backgroundColor = config.color;\n }\n ripple.style.transitionDuration = duration + \"ms\";\n this._containerElement.appendChild(ripple);\n // By default the browser does not recalculate the styles of dynamically created\n // ripple elements. This is critical because then the `scale` would not animate properly.\n enforceStyleRecalculation(ripple);\n ripple.style.transform = 'scale(1)';\n // Exposed reference to the ripple that will be returned.\n var rippleRef = new RippleRef(this, ripple, config);\n rippleRef.state = 0 /* FADING_IN */;\n // Add the ripple reference to the list of all active ripples.\n this._activeRipples.add(rippleRef);\n if (!config.persistent) {\n this._mostRecentTransientRipple = rippleRef;\n }\n // Wait for the ripple element to be completely faded in.\n // Once it's faded in, the ripple can be hidden immediately if the mouse is released.\n this._runTimeoutOutsideZone(function () {\n var isMostRecentTransientRipple = rippleRef === _this._mostRecentTransientRipple;\n rippleRef.state = 1 /* VISIBLE */;\n // When the timer runs out while the user has kept their pointer down, we want to\n // keep only the persistent ripples and the latest transient ripple. We do this,\n // because we don't want stacked transient ripples to appear after their enter\n // animation has finished.\n if (!config.persistent && (!isMostRecentTransientRipple || !_this._isPointerDown)) {\n rippleRef.fadeOut();\n }\n }, duration);\n return rippleRef;\n };\n /** Fades out a ripple reference. */\n RippleRenderer.prototype.fadeOutRipple = function (rippleRef) {\n var wasActive = this._activeRipples.delete(rippleRef);\n if (rippleRef === this._mostRecentTransientRipple) {\n this._mostRecentTransientRipple = null;\n }\n // Clear out the cached bounding rect if we have no more ripples.\n if (!this._activeRipples.size) {\n this._containerRect = null;\n }\n // For ripples that are not active anymore, don't re-run the fade-out animation.\n if (!wasActive) {\n return;\n }\n var rippleEl = rippleRef.element;\n var animationConfig = Object.assign(Object.assign({}, defaultRippleAnimationConfig), rippleRef.config.animation);\n rippleEl.style.transitionDuration = animationConfig.exitDuration + \"ms\";\n rippleEl.style.opacity = '0';\n rippleRef.state = 2 /* FADING_OUT */;\n // Once the ripple faded out, the ripple can be safely removed from the DOM.\n this._runTimeoutOutsideZone(function () {\n rippleRef.state = 3 /* HIDDEN */;\n rippleEl.parentNode.removeChild(rippleEl);\n }, animationConfig.exitDuration);\n };\n /** Fades out all currently active ripples. */\n RippleRenderer.prototype.fadeOutAll = function () {\n this._activeRipples.forEach(function (ripple) { return ripple.fadeOut(); });\n };\n /** Fades out all currently active non-persistent ripples. */\n RippleRenderer.prototype.fadeOutAllNonPersistent = function () {\n this._activeRipples.forEach(function (ripple) {\n if (!ripple.config.persistent) {\n ripple.fadeOut();\n }\n });\n };\n /** Sets up the trigger event listeners */\n RippleRenderer.prototype.setupTriggerEvents = function (elementOrElementRef) {\n var element = coercion.coerceElement(elementOrElementRef);\n if (!element || element === this._triggerElement) {\n return;\n }\n // Remove all previously registered event listeners from the trigger element.\n this._removeTriggerEvents();\n this._triggerElement = element;\n this._registerEvents(pointerDownEvents);\n };\n /**\n * Handles all registered events.\n * @docs-private\n */\n RippleRenderer.prototype.handleEvent = function (event) {\n if (event.type === 'mousedown') {\n this._onMousedown(event);\n }\n else if (event.type === 'touchstart') {\n this._onTouchStart(event);\n }\n else {\n this._onPointerUp();\n }\n // If pointer-up events haven't been registered yet, do so now.\n // We do this on-demand in order to reduce the total number of event listeners\n // registered by the ripples, which speeds up the rendering time for large UIs.\n if (!this._pointerUpEventsRegistered) {\n this._registerEvents(pointerUpEvents);\n this._pointerUpEventsRegistered = true;\n }\n };\n /** Function being called whenever the trigger is being pressed using mouse. */\n RippleRenderer.prototype._onMousedown = function (event) {\n // Screen readers will fire fake mouse events for space/enter. Skip launching a\n // ripple in this case for consistency with the non-screen-reader experience.\n var isFakeMousedown = a11y.isFakeMousedownFromScreenReader(event);\n var isSyntheticEvent = this._lastTouchStartEvent &&\n Date.now() < this._lastTouchStartEvent + ignoreMouseEventsTimeout;\n if (!this._target.rippleDisabled && !isFakeMousedown && !isSyntheticEvent) {\n this._isPointerDown = true;\n this.fadeInRipple(event.clientX, event.clientY, this._target.rippleConfig);\n }\n };\n /** Function being called whenever the trigger is being pressed using touch. */\n RippleRenderer.prototype._onTouchStart = function (event) {\n if (!this._target.rippleDisabled && !a11y.isFakeTouchstartFromScreenReader(event)) {\n // Some browsers fire mouse events after a `touchstart` event. Those synthetic mouse\n // events will launch a second ripple if we don't ignore mouse events for a specific\n // time after a touchstart event.\n this._lastTouchStartEvent = Date.now();\n this._isPointerDown = true;\n // Use `changedTouches` so we skip any touches where the user put\n // their finger down, but used another finger to tap the element again.\n var touches = event.changedTouches;\n for (var i = 0; i < touches.length; i++) {\n this.fadeInRipple(touches[i].clientX, touches[i].clientY, this._target.rippleConfig);\n }\n }\n };\n /** Function being called whenever the trigger is being released. */\n RippleRenderer.prototype._onPointerUp = function () {\n if (!this._isPointerDown) {\n return;\n }\n this._isPointerDown = false;\n // Fade-out all ripples that are visible and not persistent.\n this._activeRipples.forEach(function (ripple) {\n // By default, only ripples that are completely visible will fade out on pointer release.\n // If the `terminateOnPointerUp` option is set, ripples that still fade in will also fade out.\n var isVisible = ripple.state === 1 /* VISIBLE */ ||\n ripple.config.terminateOnPointerUp && ripple.state === 0 /* FADING_IN */;\n if (!ripple.config.persistent && isVisible) {\n ripple.fadeOut();\n }\n });\n };\n /** Runs a timeout outside of the Angular zone to avoid triggering the change detection. */\n RippleRenderer.prototype._runTimeoutOutsideZone = function (fn, delay) {\n if (delay === void 0) { delay = 0; }\n this._ngZone.runOutsideAngular(function () { return setTimeout(fn, delay); });\n };\n /** Registers event listeners for a given list of events. */\n RippleRenderer.prototype._registerEvents = function (eventTypes) {\n var _this = this;\n this._ngZone.runOutsideAngular(function () {\n eventTypes.forEach(function (type) {\n _this._triggerElement.addEventListener(type, _this, passiveEventOptions);\n });\n });\n };\n /** Removes previously registered event listeners from the trigger element. */\n RippleRenderer.prototype._removeTriggerEvents = function () {\n var _this = this;\n if (this._triggerElement) {\n pointerDownEvents.forEach(function (type) {\n _this._triggerElement.removeEventListener(type, _this, passiveEventOptions);\n });\n if (this._pointerUpEventsRegistered) {\n pointerUpEvents.forEach(function (type) {\n _this._triggerElement.removeEventListener(type, _this, passiveEventOptions);\n });\n }\n }\n };\n return RippleRenderer;\n }());\n /** Enforces a style recalculation of a DOM element by computing its styles. */\n function enforceStyleRecalculation(element) {\n // Enforce a style recalculation by calling `getComputedStyle` and accessing any property.\n // Calling `getPropertyValue` is important to let optimizers know that this is not a noop.\n // See: https://gist.github.com/paulirish/5d52fb081b3570c81e3a\n window.getComputedStyle(element).getPropertyValue('opacity');\n }\n /**\n * Returns the distance from the point (x, y) to the furthest corner of a rectangle.\n */\n function distanceToFurthestCorner(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 /**\n * @license\n * Copyright Google LLC 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 */\n /** Injection token that can be used to specify the global ripple options. */\n var MAT_RIPPLE_GLOBAL_OPTIONS = new i0.InjectionToken('mat-ripple-global-options');\n var MatRipple = /** @class */ (function () {\n function MatRipple(_elementRef, ngZone, platform, globalOptions, _animationMode) {\n this._elementRef = _elementRef;\n this._animationMode = _animationMode;\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.radius = 0;\n this._disabled = false;\n /** Whether ripple directive is initialized and the input bindings are set. */\n this._isInitialized = false;\n this._globalOptions = globalOptions || {};\n this._rippleRenderer = new RippleRenderer(this, ngZone, _elementRef, platform);\n }\n Object.defineProperty(MatRipple.prototype, \"disabled\", {\n /**\n * Whether click events will not trigger the ripple. Ripples can be still launched manually\n * by using the `launch()` method.\n */\n get: function () { return this._disabled; },\n set: function (value) {\n if (value) {\n this.fadeOutAllNonPersistent();\n }\n this._disabled = value;\n this._setupTriggerEventsIfEnabled();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatRipple.prototype, \"trigger\", {\n /**\n * The element that triggers the ripple when click events are received.\n * Defaults to the directive's host element.\n */\n get: function () { return this._trigger || this._elementRef.nativeElement; },\n set: function (trigger) {\n this._trigger = trigger;\n this._setupTriggerEventsIfEnabled();\n },\n enumerable: false,\n configurable: true\n });\n MatRipple.prototype.ngOnInit = function () {\n this._isInitialized = true;\n this._setupTriggerEventsIfEnabled();\n };\n MatRipple.prototype.ngOnDestroy = function () {\n this._rippleRenderer._removeTriggerEvents();\n };\n /** Fades out all currently showing ripple elements. */\n MatRipple.prototype.fadeOutAll = function () {\n this._rippleRenderer.fadeOutAll();\n };\n /** Fades out all currently showing non-persistent ripple elements. */\n MatRipple.prototype.fadeOutAllNonPersistent = function () {\n this._rippleRenderer.fadeOutAllNonPersistent();\n };\n Object.defineProperty(MatRipple.prototype, \"rippleConfig\", {\n /**\n * Ripple configuration from the directive's input values.\n * @docs-private Implemented as part of RippleTarget\n */\n get: function () {\n return {\n centered: this.centered,\n radius: this.radius,\n color: this.color,\n animation: Object.assign(Object.assign(Object.assign({}, this._globalOptions.animation), (this._animationMode === 'NoopAnimations' ? { enterDuration: 0, exitDuration: 0 } : {})), this.animation),\n terminateOnPointerUp: this._globalOptions.terminateOnPointerUp,\n };\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatRipple.prototype, \"rippleDisabled\", {\n /**\n * Whether ripples on pointer-down are disabled or not.\n * @docs-private Implemented as part of RippleTarget\n */\n get: function () {\n return this.disabled || !!this._globalOptions.disabled;\n },\n enumerable: false,\n configurable: true\n });\n /** Sets up the trigger event listeners if ripples are enabled. */\n MatRipple.prototype._setupTriggerEventsIfEnabled = function () {\n if (!this.disabled && this._isInitialized) {\n this._rippleRenderer.setupTriggerEvents(this.trigger);\n }\n };\n /** Launches a manual ripple at the specified coordinated or just by the ripple config. */\n MatRipple.prototype.launch = function (configOrX, y, config) {\n if (y === void 0) { y = 0; }\n if (typeof configOrX === 'number') {\n return this._rippleRenderer.fadeInRipple(configOrX, y, Object.assign(Object.assign({}, this.rippleConfig), config));\n }\n else {\n return this._rippleRenderer.fadeInRipple(0, 0, Object.assign(Object.assign({}, this.rippleConfig), configOrX));\n }\n };\n return MatRipple;\n }());\n MatRipple.decorators = [\n { type: i0.Directive, args: [{\n selector: '[mat-ripple], [matRipple]',\n exportAs: 'matRipple',\n host: {\n 'class': 'mat-ripple',\n '[class.mat-ripple-unbounded]': 'unbounded'\n }\n },] }\n ];\n MatRipple.ctorParameters = function () { return [\n { type: i0.ElementRef },\n { type: i0.NgZone },\n { type: platform.Platform },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_RIPPLE_GLOBAL_OPTIONS,] }] },\n { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }\n ]; };\n MatRipple.propDecorators = {\n color: [{ type: i0.Input, args: ['matRippleColor',] }],\n unbounded: [{ type: i0.Input, args: ['matRippleUnbounded',] }],\n centered: [{ type: i0.Input, args: ['matRippleCentered',] }],\n radius: [{ type: i0.Input, args: ['matRippleRadius',] }],\n animation: [{ type: i0.Input, args: ['matRippleAnimation',] }],\n disabled: [{ type: i0.Input, args: ['matRippleDisabled',] }],\n trigger: [{ type: i0.Input, args: ['matRippleTrigger',] }]\n };\n\n /**\n * @license\n * Copyright Google LLC 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 */\n var MatRippleModule = /** @class */ (function () {\n function MatRippleModule() {\n }\n return MatRippleModule;\n }());\n MatRippleModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [MatCommonModule, platform.PlatformModule],\n exports: [MatRipple, MatCommonModule],\n declarations: [MatRipple],\n },] }\n ];\n\n /**\n * @license\n * Copyright Google LLC 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 */\n /**\n * Component that shows a simplified checkbox without including any kind of \"real\" checkbox.\n * Meant to be used when the checkbox is purely decorative and a large number of them will be\n * included, such as for the options in a multi-select. Uses no SVGs or complex animations.\n * Note that theming is meant to be handled by the parent element, e.g.\n * `mat-primary .mat-pseudo-checkbox`.\n *\n * Note that this component will be completely invisible to screen-reader users. This is *not*\n * interchangeable with `<mat-checkbox>` and should *not* be used if the user would directly\n * interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail\n * of more complex components that appropriately handle selected / checked state.\n * @docs-private\n */\n var MatPseudoCheckbox = /** @class */ (function () {\n function MatPseudoCheckbox(_animationMode) {\n this._animationMode = _animationMode;\n /** Display state of the checkbox. */\n this.state = 'unchecked';\n /** Whether the checkbox is disabled. */\n this.disabled = false;\n }\n return MatPseudoCheckbox;\n }());\n MatPseudoCheckbox.decorators = [\n { type: i0.Component, args: [{\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n selector: 'mat-pseudo-checkbox',\n template: '',\n host: {\n 'class': 'mat-pseudo-checkbox',\n '[class.mat-pseudo-checkbox-indeterminate]': 'state === \"indeterminate\"',\n '[class.mat-pseudo-checkbox-checked]': 'state === \"checked\"',\n '[class.mat-pseudo-checkbox-disabled]': 'disabled',\n '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n },\n styles: [\".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\\\"\\\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\\n\"]\n },] }\n ];\n MatPseudoCheckbox.ctorParameters = function () { return [\n { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }\n ]; };\n MatPseudoCheckbox.propDecorators = {\n state: [{ type: i0.Input }],\n disabled: [{ type: i0.Input }]\n };\n\n /**\n * @license\n * Copyright Google LLC 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 */\n var MatPseudoCheckboxModule = /** @class */ (function () {\n function MatPseudoCheckboxModule() {\n }\n return MatPseudoCheckboxModule;\n }());\n MatPseudoCheckboxModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [MatCommonModule],\n exports: [MatPseudoCheckbox],\n declarations: [MatPseudoCheckbox]\n },] }\n ];\n\n /**\n * @license\n * Copyright Google LLC 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 */\n /**\n * Injection token used to provide the parent component to options.\n */\n var MAT_OPTION_PARENT_COMPONENT = new i0.InjectionToken('MAT_OPTION_PARENT_COMPONENT');\n\n // Notes on the accessibility pattern used for `mat-optgroup`.\n // The option group has two different \"modes\": regular and inert. The regular mode uses the\n // recommended a11y pattern which has `role=\"group\"` on the group element with `aria-labelledby`\n // pointing to the label. This works for `mat-select`, but it seems to hit a bug for autocomplete\n // under VoiceOver where the group doesn't get read out at all. The bug appears to be that if\n // there's __any__ a11y-related attribute on the group (e.g. `role` or `aria-labelledby`),\n // VoiceOver on Safari won't read it out.\n // We've introduced the `inert` mode as a workaround. Under this mode, all a11y attributes are\n // removed from the group, and we get the screen reader to read out the group label by mirroring it\n // inside an invisible element in the option. This is sub-optimal, because the screen reader will\n // repeat the group label on each navigation, whereas the default pattern only reads the group when\n // the user enters a new group. The following alternate approaches were considered:\n // 1. Reading out the group label using the `LiveAnnouncer` solves the problem, but we can't control\n // when the text will be read out so sometimes it comes in too late or never if the user\n // navigates quickly.\n // 2. `<mat-option aria-describedby=\"groupLabel\"` - This works on Safari, but VoiceOver in Chrome\n // won't read out the description at all.\n // 3. `<mat-option aria-labelledby=\"optionLabel groupLabel\"` - This works on Chrome, but Safari\n // doesn't read out the text at all. Furthermore, on\n // Boilerplate for applying mixins to MatOptgroup.\n /** @docs-private */\n var MatOptgroupBase = /** @class */ (function () {\n function MatOptgroupBase() {\n }\n return MatOptgroupBase;\n }());\n var _MatOptgroupMixinBase = mixinDisabled(MatOptgroupBase);\n // Counter for unique group ids.\n var _uniqueOptgroupIdCounter = 0;\n var _MatOptgroupBase = /** @class */ (function (_super) {\n __extends(_MatOptgroupBase, _super);\n function _MatOptgroupBase(parent) {\n var _this = this;\n var _a;\n _this = _super.call(this) || this;\n /** Unique id for the underlying label. */\n _this._labelId = \"mat-optgroup-label-\" + _uniqueOptgroupIdCounter++;\n _this._inert = (_a = parent === null || parent === void 0 ? void 0 : parent.inertGroups) !== null && _a !== void 0 ? _a : false;\n return _this;\n }\n return _MatOptgroupBase;\n }(_MatOptgroupMixinBase));\n _MatOptgroupBase.decorators = [\n { type: i0.Directive }\n ];\n _MatOptgroupBase.ctorParameters = function () { return [\n { type: undefined, decorators: [{ type: i0.Inject, args: [MAT_OPTION_PARENT_COMPONENT,] }, { type: i0.Optional }] }\n ]; };\n _MatOptgroupBase.propDecorators = {\n label: [{ type: i0.Input }]\n };\n /**\n * Injection token that can be used to reference instances of `MatOptgroup`. It serves as\n * alternative token to the actual `MatOptgroup` class which could cause unnecessary\n * retention of the class and its component metadata.\n */\n var MAT_OPTGROUP = new i0.InjectionToken('MatOptgroup');\n /**\n * Component that is used to group instances of `mat-option`.\n */\n var MatOptgroup = /** @class */ (function (_super) {\n __extends(MatOptgroup, _super);\n function MatOptgroup() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n return MatOptgroup;\n }(_MatOptgroupBase));\n MatOptgroup.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-optgroup',\n exportAs: 'matOptgroup',\n template: \"<span class=\\\"mat-optgroup-label\\\" aria-hidden=\\\"true\\\" [id]=\\\"_labelId\\\">{{ label }} <ng-content></ng-content></span>\\n<ng-content select=\\\"mat-option, ng-container\\\"></ng-content>\\n\",\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n inputs: ['disabled'],\n host: {\n 'class': 'mat-optgroup',\n '[attr.role]': '_inert ? null : \"group\"',\n '[attr.aria-disabled]': '_inert ? null : disabled.toString()',\n '[attr.aria-labelledby]': '_inert ? null : _labelId',\n '[class.mat-optgroup-disabled]': 'disabled',\n },\n providers: [{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }],\n styles: [\".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\\n\"]\n },] }\n ];\n\n /**\n * Option IDs need to be unique across components, so this counter exists outside of\n * the component definition.\n */\n var _uniqueIdCounter = 0;\n /** Event object emitted by MatOption when selected or deselected. */\n var MatOptionSelectionChange = /** @class */ (function () {\n function MatOptionSelectionChange(\n /** Reference to the option that emitted the event. */\n source, \n /** Whether the change in the option's value was a result of a user action. */\n isUserInput) {\n if (isUserInput === void 0) { isUserInput = false; }\n this.source = source;\n this.isUserInput = isUserInput;\n }\n return MatOptionSelectionChange;\n }());\n var _MatOptionBase = /** @class */ (function () {\n function _MatOptionBase(_element, _changeDetectorRef, _parent, group) {\n this._element = _element;\n this._changeDetectorRef = _changeDetectorRef;\n this._parent = _parent;\n this.group = group;\n this._selected = false;\n this._active = false;\n this._disabled = false;\n this._mostRecentViewValue = '';\n /** The unique ID of the option. */\n this.id = \"mat-option-\" + _uniqueIdCounter++;\n /** Event emitted when the option is selected or deselected. */\n // tslint:disable-next-line:no-output-on-prefix\n this.onSelectionChange = new i0.EventEmitter();\n /** Emits when the state of the option changes and any parents have to be notified. */\n this._stateChanges = new rxjs.Subject();\n }\n Object.defineProperty(_MatOptionBase.prototype, \"multiple\", {\n /** Whether the wrapping component is in multiple selection mode. */\n get: function () { return this._parent && this._parent.multiple; },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(_MatOptionBase.prototype, \"selected\", {\n /** Whether or not the option is currently selected. */\n get: function () { return this._selected; },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(_MatOptionBase.prototype, \"disabled\", {\n /** Whether the option is disabled. */\n get: function () { return (this.group && this.group.disabled) || this._disabled; },\n set: function (value) { this._disabled = coercion.coerceBooleanProperty(value); },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(_MatOptionBase.prototype, \"disableRipple\", {\n /** Whether ripples for the option are disabled. */\n get: function () { return this._parent && this._parent.disableRipple; },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(_MatOptionBase.prototype, \"active\", {\n /**\n * Whether or not the option is currently active and ready to be selected.\n * An active option displays styles as if it is focused, but the\n * focus is actually retained somewhere else. This comes in handy\n * for components like autocomplete where focus must remain on the input.\n */\n get: function () {\n return this._active;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(_MatOptionBase.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: false,\n configurable: true\n });\n /** Selects the option. */\n _MatOptionBase.prototype.select = function () {\n if (!this._selected) {\n this._selected = true;\n this._changeDetectorRef.markForCheck();\n this._emitSelectionChangeEvent();\n }\n };\n /** Deselects the option. */\n _MatOptionBase.prototype.deselect = function () {\n if (this._selected) {\n this._selected = false;\n this._changeDetectorRef.markForCheck();\n this._emitSelectionChangeEvent();\n }\n };\n /** Sets focus onto this option. */\n _MatOptionBase.prototype.focus = function (_origin, options) {\n // Note that we aren't using `_origin`, but we need to keep it because some internal consumers\n // use `MatOption` in a `FocusKeyManager` and we need it to match `FocusableOption`.\n var element = this._getHostElement();\n if (typeof element.focus === 'function') {\n element.focus(options);\n }\n };\n /**\n * This method sets display styles on the option to make it appear\n * active. This is used by the ActiveDescendantKeyManager so key\n * events will display the proper options as active on arrow key events.\n */\n _MatOptionBase.prototype.setActiveStyles = function () {\n if (!this._active) {\n this._active = true;\n this._changeDetectorRef.markForCheck();\n }\n };\n /**\n * This method removes display styles on the option that made it appear\n * active. This is used by the ActiveDescendantKeyManager so key\n * events will display the proper options as active on arrow key events.\n */\n _MatOptionBase.prototype.setInactiveStyles = function () {\n if (this._active) {\n this._active = false;\n this._changeDetectorRef.markForCheck();\n }\n };\n /** Gets the label to be used when determining whether the option should be focused. */\n _MatOptionBase.prototype.getLabel = function () {\n return this.viewValue;\n };\n /** Ensures the option is selected when activated from the keyboard. */\n _MatOptionBase.prototype._handleKeydown = function (event) {\n if ((event.keyCode === keycodes.ENTER || event.keyCode === keycodes.SPACE) && !keycodes.hasModifierKey(event)) {\n this._selectViaInteraction();\n // Prevent the page from scrolling down and form submits.\n event.preventDefault();\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 _MatOptionBase.prototype._selectViaInteraction = function () {\n if (!this.disabled) {\n this._selected = this.multiple ? !this._selected : true;\n this._changeDetectorRef.markForCheck();\n this._emitSelectionChangeEvent(true);\n }\n };\n /**\n * Gets the `aria-selected` value for the option. We explicitly omit the `aria-selected`\n * attribute from single-selection, unselected options. Including the `aria-selected=\"false\"`\n * attributes adds a significant amount of noise to screen-reader users without providing useful\n * information.\n */\n _MatOptionBase.prototype._getAriaSelected = function () {\n return this.selected || (this.multiple ? false : null);\n };\n /** Returns the correct tabindex for the option depending on disabled state. */\n _MatOptionBase.prototype._getTabIndex = function () {\n return this.disabled ? '-1' : '0';\n };\n /** Gets the host DOM element. */\n _MatOptionBase.prototype._getHostElement = function () {\n return this._element.nativeElement;\n };\n _MatOptionBase.prototype.ngAfterViewChecked = function () {\n // Since parent components could be using the option's label to display the selected values\n // (e.g. `mat-select`) and they don't have a way of knowing if the option's label has changed\n // we have to check for changes in the DOM ourselves and dispatch an event. These checks are\n // relatively cheap, however we still limit them only to selected options in order to avoid\n // hitting the DOM too often.\n if (this._selected) {\n var viewValue = this.viewValue;\n if (viewValue !== this._mostRecentViewValue) {\n this._mostRecentViewValue = viewValue;\n this._stateChanges.next();\n }\n }\n };\n _MatOptionBase.prototype.ngOnDestroy = function () {\n this._stateChanges.complete();\n };\n /** Emits the selection change event. */\n _MatOptionBase.prototype._emitSelectionChangeEvent = function (isUserInput) {\n if (isUserInput === void 0) { isUserInput = false; }\n this.onSelectionChange.emit(new MatOptionSelectionChange(this, isUserInput));\n };\n return _MatOptionBase;\n }());\n _MatOptionBase.decorators = [\n { type: i0.Directive }\n ];\n _MatOptionBase.ctorParameters = function () { return [\n { type: i0.ElementRef },\n { type: i0.ChangeDetectorRef },\n { type: undefined },\n { type: _MatOptgroupBase }\n ]; };\n _MatOptionBase.propDecorators = {\n value: [{ type: i0.Input }],\n id: [{ type: i0.Input }],\n disabled: [{ type: i0.Input }],\n onSelectionChange: [{ type: i0.Output }]\n };\n /**\n * Single option inside of a `<mat-select>` element.\n */\n var MatOption = /** @class */ (function (_super) {\n __extends(MatOption, _super);\n function MatOption(element, changeDetectorRef, parent, group) {\n return _super.call(this, element, changeDetectorRef, parent, group) || this;\n }\n return MatOption;\n }(_MatOptionBase));\n MatOption.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-option',\n exportAs: 'matOption',\n host: {\n 'role': 'option',\n '[attr.tabindex]': '_getTabIndex()',\n '[class.mat-selected]': 'selected',\n '[class.mat-option-multiple]': 'multiple',\n '[class.mat-active]': 'active',\n '[id]': 'id',\n '[attr.aria-selected]': '_getAriaSelected()',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[class.mat-option-disabled]': 'disabled',\n '(click)': '_selectViaInteraction()',\n '(keydown)': '_handleKeydown($event)',\n 'class': 'mat-option mat-focus-indicator',\n },\n template: \"<mat-pseudo-checkbox *ngIf=\\\"multiple\\\" class=\\\"mat-option-pseudo-checkbox\\\"\\n [state]=\\\"selected ? 'checked' : 'unchecked'\\\" [disabled]=\\\"disabled\\\"></mat-pseudo-checkbox>\\n\\n<span class=\\\"mat-option-text\\\"><ng-content></ng-content></span>\\n\\n<!-- See a11y notes inside optgroup.ts for context behind this element. -->\\n<span class=\\\"cdk-visually-hidden\\\" *ngIf=\\\"group && group._inert\\\">({{ group.label }})</span>\\n\\n<div class=\\\"mat-option-ripple\\\" mat-ripple\\n [matRippleTrigger]=\\\"_getHostElement()\\\"\\n [matRippleDisabled]=\\\"disabled || disableRipple\\\">\\n</div>\\n\",\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n styles: [\".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\\n\"]\n },] }\n ];\n MatOption.ctorParameters = function () { return [\n { type: i0.ElementRef },\n { type: i0.ChangeDetectorRef },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_OPTION_PARENT_COMPONENT,] }] },\n { type: MatOptgroup, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_OPTGROUP,] }] }\n ]; };\n /**\n * Counts the amount of option group labels that precede the specified option.\n * @param optionIndex Index of the option at which to start counting.\n * @param options Flat list of all of the options.\n * @param optionGroups Flat list of all of the option groups.\n * @docs-private\n */\n function _countGroupLabelsBeforeOption(optionIndex, options, optionGroups) {\n if (optionGroups.length) {\n var optionsArray = options.toArray();\n var groups = optionGroups.toArray();\n var groupCounter = 0;\n for (var i = 0; i < optionIndex + 1; i++) {\n if (optionsArray[i].group && optionsArray[i].group === groups[groupCounter]) {\n groupCounter++;\n }\n }\n return groupCounter;\n }\n return 0;\n }\n /**\n * Determines the position to which to scroll a panel in order for an option to be into view.\n * @param optionOffset Offset of the option from the top of the panel.\n * @param optionHeight Height of the options.\n * @param currentScrollPosition Current scroll position of the panel.\n * @param panelHeight Height of the panel.\n * @docs-private\n */\n function _getOptionScrollPosition(optionOffset, optionHeight, currentScrollPosition, panelHeight) {\n if (optionOffset < currentScrollPosition) {\n return optionOffset;\n }\n if (optionOffset + optionHeight > currentScrollPosition + panelHeight) {\n return Math.max(0, optionOffset - panelHeight + optionHeight);\n }\n return currentScrollPosition;\n }\n\n /**\n * @license\n * Copyright Google LLC 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 */\n var MatOptionModule = /** @class */ (function () {\n function MatOptionModule() {\n }\n return MatOptionModule;\n }());\n MatOptionModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [MatRippleModule, common.CommonModule, MatCommonModule, MatPseudoCheckboxModule],\n exports: [MatOption, MatOptgroup],\n declarations: [MatOption, MatOptgroup]\n },] }\n ];\n\n /**\n * @license\n * Copyright Google LLC 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 */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.AnimationCurves = AnimationCurves;\n exports.AnimationDurations = AnimationDurations;\n exports.DateAdapter = DateAdapter;\n exports.ErrorStateMatcher = ErrorStateMatcher;\n exports.MATERIAL_SANITY_CHECKS = MATERIAL_SANITY_CHECKS;\n exports.MAT_DATE_FORMATS = MAT_DATE_FORMATS;\n exports.MAT_DATE_LOCALE = MAT_DATE_LOCALE;\n exports.MAT_DATE_LOCALE_FACTORY = MAT_DATE_LOCALE_FACTORY;\n exports.MAT_NATIVE_DATE_FORMATS = MAT_NATIVE_DATE_FORMATS;\n exports.MAT_OPTGROUP = MAT_OPTGROUP;\n exports.MAT_OPTION_PARENT_COMPONENT = MAT_OPTION_PARENT_COMPONENT;\n exports.MAT_RIPPLE_GLOBAL_OPTIONS = MAT_RIPPLE_GLOBAL_OPTIONS;\n exports.MatCommonModule = MatCommonModule;\n exports.MatLine = MatLine;\n exports.MatLineModule = MatLineModule;\n exports.MatNativeDateModule = MatNativeDateModule;\n exports.MatOptgroup = MatOptgroup;\n exports.MatOption = MatOption;\n exports.MatOptionModule = MatOptionModule;\n exports.MatOptionSelectionChange = MatOptionSelectionChange;\n exports.MatPseudoCheckbox = MatPseudoCheckbox;\n exports.MatPseudoCheckboxModule = MatPseudoCheckboxModule;\n exports.MatRipple = MatRipple;\n exports.MatRippleModule = MatRippleModule;\n exports.NativeDateAdapter = NativeDateAdapter;\n exports.NativeDateModule = NativeDateModule;\n exports.RippleRef = RippleRef;\n exports.RippleRenderer = RippleRenderer;\n exports.ShowOnDirtyErrorStateMatcher = ShowOnDirtyErrorStateMatcher;\n exports.VERSION = VERSION;\n exports._MatOptgroupBase = _MatOptgroupBase;\n exports._MatOptionBase = _MatOptionBase;\n exports._countGroupLabelsBeforeOption = _countGroupLabelsBeforeOption;\n exports._getOptionScrollPosition = _getOptionScrollPosition;\n exports.defaultRippleAnimationConfig = defaultRippleAnimationConfig;\n exports.mixinColor = mixinColor;\n exports.mixinDisableRipple = mixinDisableRipple;\n exports.mixinDisabled = mixinDisabled;\n exports.mixinErrorState = mixinErrorState;\n exports.mixinInitialized = mixinInitialized;\n exports.mixinTabIndex = mixinTabIndex;\n exports.setLines = setLines;\n exports.ɵ0 = ɵ0$1;\n exports.ɵangular_material_src_material_core_core_a = MATERIAL_SANITY_CHECKS_FACTORY;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=material-core.umd.js.map\n"]}